react-luminus-components 2.0.3-beta.r19-18 → 2.0.4-table

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 (91) hide show
  1. package/README.md +349 -349
  2. package/dist/.vite/manifest.json +46 -52
  3. package/dist/FormDisabledProvider-1MOB6N34.cjs +1 -0
  4. package/dist/FormDisabledProvider-CHZ2m_zJ.js +40 -0
  5. package/dist/ShortcutLinksContext-DEirK-v9.js +39884 -0
  6. package/dist/ShortcutLinksContext-DLi4B8z5.cjs +334 -0
  7. package/dist/components/Buttons/ContextButton/FileUploadContextButton.d.ts +3 -6
  8. package/dist/components/Documents/components/DocumentsModals/components/CreateFolderModal/hooks/useDocCreateFolderForm.d.ts +1 -4
  9. package/dist/components/Documents/components/DocumentsModals/components/EditFileModal/hooks/useEditFileForm.d.ts +1 -6
  10. package/dist/components/Documents/hooks/useDocumentsReducer.d.ts +1 -1
  11. package/dist/components/Dropdown/comps/SimpleToggle/SimpleToggle.d.ts +3 -6
  12. package/dist/components/Dropdown/comps/UserAvatarToggle/UserAvatarToggle.d.ts +1 -3
  13. package/dist/components/Flexmonster/Flexmonster.d.ts +1 -1
  14. package/dist/components/Flexmonster/hooks/useReportVersionApi.d.ts +1 -1
  15. package/dist/components/Flexmonster/utils/flexMonsterUtils.d.ts +1 -1
  16. package/dist/components/HookForm/MiniDetailWrapper/MiniDetailWrapper.d.ts +1 -1
  17. package/dist/components/HookForm/TextInput/HookFormTextInput.d.ts +17 -4
  18. package/dist/components/InputContainers/FloatingLabelInput/FloatingLabelInput.d.ts +38 -7
  19. package/dist/components/InputContainers/NoInputContainer/NoInputContainer.d.ts +38 -8
  20. package/dist/components/InputContainers/RowLabelInput/RowLabelInput.d.ts +38 -8
  21. package/dist/components/NotifCenter/Actions/NotificationActions.d.ts +3 -3
  22. package/dist/components/NotifCenter/Actions/components/HistoryTable/NotificationHistoryTable.d.ts +1 -1
  23. package/dist/components/NotifCenter/Actions/types/NotificationHistoryTableModel.d.ts +5 -0
  24. package/dist/components/ResponsiveContextDropdown/components/ResponsiveContextDropdownItem/ResponsiveContextDropdownItem.d.ts +1 -1
  25. package/dist/components/ResponsiveContextDropdown/hooks/useReponsiveContextDropdownHelpers.d.ts +2 -2
  26. package/dist/components/ResponsiveContextDropdown/utils/responsiveContextDropdownUtils.d.ts +1 -1
  27. package/dist/components/Tooltip/HtmlTooltip/HtmlTooltip.d.ts +2 -2
  28. package/dist/components/Tooltip/SimpleTooltip/SimpleTooltip.d.ts +1 -1
  29. package/dist/components/common/AuthTemplate/AuthTemplate.d.ts +1 -1
  30. package/dist/components/common/ColumnResizer/ColumnResizer.d.ts +1 -1
  31. package/dist/components/common/DisabledRowLabelLink/DisabledRowLabelLink.d.ts +1 -1
  32. package/dist/components/common/ErrorBoundary/ErrorBoundary.d.ts +3 -7
  33. package/dist/components/common/FromToDatePicker/components/FromToDatePickerDropdownToggle/FromToDatePickerDropdownToggle.d.ts +1 -3
  34. package/dist/components/common/LineChart/comps/LineChartTooltip/LineChartTooltip.d.ts +2 -2
  35. package/dist/components/common/PermissionsSubstitute/Detail/hooks/useSubstDetailForm.d.ts +1 -8
  36. package/dist/components/common/QrCode/QrCode.d.ts +1 -1
  37. package/dist/components/common/RouteLink/RouteLink.d.ts +1 -1
  38. package/dist/components/common/SimplePicker/SimplePicker.d.ts +1 -1
  39. package/dist/components/common/StrictModeDroppable/StrictModeDroppable.d.ts +5 -0
  40. package/dist/components/common/index.d.ts +1 -0
  41. package/dist/contexts.cjs.js +1 -1
  42. package/dist/contexts.es.js +941 -542
  43. package/dist/hooks/index.d.ts +0 -1
  44. package/dist/hooks/useAxios/useAxios.d.ts +2 -5
  45. package/dist/hooks/useClickOutside/useClickOutside.d.ts +1 -1
  46. package/dist/hooks/useGetApiDataBound/useGetApiDataBound.d.ts +0 -3
  47. package/dist/hooks/useGetDataBound/useGetDataBound.d.ts +2 -4
  48. package/dist/hooks/useScrollSave/useScrollSave.d.ts +1 -1
  49. package/dist/hooks.cjs.js +1 -1
  50. package/dist/hooks.es.js +136 -206
  51. package/dist/layout.cjs.js +1 -1
  52. package/dist/layout.es.js +142 -278
  53. package/dist/localStorageUtils-89Gfn6XS.cjs +1 -0
  54. package/dist/{localStorageUtils-CZ4HDRzi.js → localStorageUtils-DdeuyghB.js} +8 -18
  55. package/dist/main.cjs.js +183 -21
  56. package/dist/main.es.js +11492 -11359
  57. package/dist/models/prop-types/InputContainerProps.d.ts +12 -4
  58. package/dist/models/prop-types/InputProps/DropdownPickerProps.d.ts +1 -1
  59. package/dist/models/prop-types/InputProps/InputBaseProps.d.ts +2 -4
  60. package/dist/models/prop-types/InputProps/NumericInputProps.d.ts +1 -1
  61. package/dist/models/prop-types/InputProps/TextInputProps.d.ts +1 -1
  62. package/dist/style.css +1 -1
  63. package/dist/useLocalStorageState-B-CRodSS.cjs +1 -0
  64. package/dist/useLocalStorageState-BPYqQMTu.js +78 -0
  65. package/dist/useRenderDraggableInPortal-D0OLp7Qb.js +78 -0
  66. package/dist/useRenderDraggableInPortal-QPCaw-E_.cjs +1 -0
  67. package/dist/utils/index.d.ts +1 -1
  68. package/dist/utils/route/apiPathUtils.d.ts +1 -1
  69. package/dist/utils.cjs.js +1 -1
  70. package/dist/utils.es.js +159 -133
  71. package/dist/variables.scss +165 -165
  72. package/package.json +123 -128
  73. package/dist/FormDisabledProvider-Bi6oyt5U.js +0 -51
  74. package/dist/FormDisabledProvider-D5KzXgMJ.cjs +0 -1
  75. package/dist/components/common/HomeDashboard/comps/HomeDashboardWidget/HomeDashboardWidget.d.ts +0 -15
  76. package/dist/components/common/PhotoLightbox/comps/PhotoPreviews/PhotoPreviews.d.ts +0 -15
  77. package/dist/components/common/PhotoLightbox/comps/PhotoPreviews/comps/PhotoPreview/PhotoPreview.d.ts +0 -14
  78. package/dist/components/common/PhotoLightbox/comps/PhotoPreviews/comps/PhotoPreview/comps/PreviewShadow/PreviewShadow.d.ts +0 -5
  79. package/dist/components/common/PhotoLightbox/comps/PhotoPreviews/comps/PhotoPreview/comps/index.d.ts +0 -1
  80. package/dist/components/common/PhotoLightbox/comps/PhotoPreviews/comps/index.d.ts +0 -1
  81. package/dist/components/common/PhotoLightbox/comps/index.d.ts +0 -1
  82. package/dist/hooks/useIsFormDirty/useIsFormDirty.d.ts +0 -7
  83. package/dist/localStorageUtils-CkZslzIU.cjs +0 -1
  84. package/dist/models/bntTable/IBnfTableDefColumn.d.ts +0 -40
  85. package/dist/models/ui/notifications/NotificationHistoryTableModel.d.ts +0 -6
  86. package/dist/nivo-bar-BQGSJTnK.js +0 -41890
  87. package/dist/nivo-bar-DcaMZ1K9.cjs +0 -326
  88. package/dist/useIsFormDirty-BQU8CwxF.cjs +0 -1
  89. package/dist/useIsFormDirty-uSOXZ5g6.js +0 -123
  90. package/dist/useLocalStorageState-Ccq9rFKj.js +0 -95
  91. package/dist/useLocalStorageState-aCjv2MC6.cjs +0 -1
@@ -1,326 +0,0 @@
1
- "use strict";const y=require("react/jsx-runtime"),m=require("react"),mO=require("@azure/msal-browser"),Ps=require("react-router"),gO=require("@tanstack/react-query"),hy=require("@azure/msal-react"),mn=require("react-dom"),dn=require("react-hook-form");require("react-flexmonster");function vO(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=vO(m);var Zn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function sn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var mg={exports:{}},Up={};/**
2
- * @license React
3
- * react-compiler-runtime.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and 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 py;function bO(){if(py)return Up;py=1;var e=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return Up.c=function(t){return e.H.useMemoCache(t)},Up}var Hp={};/**
10
- * @license React
11
- * react-compiler-runtime.development.js
12
- *
13
- * Copyright (c) Meta Platforms, Inc. and 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 my;function yO(){return my||(my=1,process.env.NODE_ENV!=="production"&&function(){var e=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;Hp.c=function(t){var n=e.H;return n===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
18
- 1. You might have mismatching versions of React and the renderer (such as React DOM)
19
- 2. You might be breaking the Rules of Hooks
20
- 3. You might have more than one copy of React in the same app
21
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),n.useMemoCache(t)}}()),Hp}process.env.NODE_ENV==="production"?mg.exports=bO():mg.exports=yO();var Re=mg.exports,B4={exports:{}};/*!
22
- Copyright (c) 2018 Jed Watson.
23
- Licensed under the MIT License (MIT), see
24
- http://jedwatson.github.io/classnames
25
- */(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})()})(B4);var xO=B4.exports;const ue=sn(xO);function Vn(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 Ai(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function wO(e,t){const n=+Vn(e);return Ai(e,n+t)}const _O=365.2425,Gv=6048e5,CO=864e5,Kv=6e4,Pf=36e5,z4=3600,$O=60,Zv=z4*24,SO=Zv*7,W4=Zv*_O,U4=W4/12,TO=U4*3;function H4(e,t){return wO(e,t*Pf)}let EO={};function Lf(){return EO}function ps(e,t){var s,l,c,u;const n=Lf(),r=(t==null?void 0:t.weekStartsOn)??((l=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((u=(c=n.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??0,i=Vn(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 Md(e){return ps(e,{weekStartsOn:1})}function V4(e){const t=Vn(e),n=t.getFullYear(),r=Ai(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const i=Md(r),o=Ai(e,0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);const a=Md(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function gg(e){const t=Vn(e);return t.setHours(0,0,0,0),t}function vg(e){const t=Vn(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 q4(e,t){const n=gg(e),r=gg(t),i=+n-vg(n),o=+r-vg(r);return Math.round((i-o)/CO)}function kO(e){const t=V4(e),n=Ai(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Md(n)}function OO(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function MO(e){if(!OO(e)&&typeof e!="number")return!1;const t=Vn(e);return!isNaN(Number(t))}function AO(e){const t=Vn(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function RO(e){const t=Vn(e),n=Ai(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const jO={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"}},NO=(e,t,n)=>{let r;const i=jO[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 Vp(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const DO={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},IO={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},PO={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},LO={date:Vp({formats:DO,defaultWidth:"full"}),time:Vp({formats:IO,defaultWidth:"full"}),dateTime:Vp({formats:PO,defaultWidth:"full"})},FO={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},BO=(e,t,n,r)=>FO[e];function dl(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 zO={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},WO={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},UO={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"]},HO={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"]},VO={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"}},qO={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"}},YO=(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"},GO={ordinalNumber:YO,era:dl({values:zO,defaultWidth:"wide"}),quarter:dl({values:WO,defaultWidth:"wide",argumentCallback:e=>e-1}),month:dl({values:UO,defaultWidth:"wide"}),day:dl({values:HO,defaultWidth:"wide"}),dayPeriod:dl({values:VO,defaultWidth:"wide",formattingValues:qO,defaultFormattingWidth:"wide"})};function fl(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],l=Array.isArray(s)?ZO(s,d=>d.test(a)):KO(s,d=>d.test(a));let c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;const u=t.slice(a.length);return{value:c,rest:u}}}function KO(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function ZO(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function XO(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 QO=/^(\d+)(th|st|nd|rd)?/i,JO=/\d+/i,eM={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},tM={any:[/^b/i,/^(a|c)/i]},nM={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},rM={any:[/1/i,/2/i,/3/i,/4/i]},iM={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},oM={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]},aM={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},sM={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]},lM={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},cM={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}},uM={ordinalNumber:XO({matchPattern:QO,parsePattern:JO,valueCallback:e=>parseInt(e,10)}),era:fl({matchPatterns:eM,defaultMatchWidth:"wide",parsePatterns:tM,defaultParseWidth:"any"}),quarter:fl({matchPatterns:nM,defaultMatchWidth:"wide",parsePatterns:rM,defaultParseWidth:"any",valueCallback:e=>e+1}),month:fl({matchPatterns:iM,defaultMatchWidth:"wide",parsePatterns:oM,defaultParseWidth:"any"}),day:fl({matchPatterns:aM,defaultMatchWidth:"wide",parsePatterns:sM,defaultParseWidth:"any"}),dayPeriod:fl({matchPatterns:lM,defaultMatchWidth:"any",parsePatterns:cM,defaultParseWidth:"any"})},dM={code:"en-US",formatDistance:NO,formatLong:LO,formatRelative:BO,localize:GO,match:uM,options:{weekStartsOn:0,firstWeekContainsDate:1}};function fM(e){const t=Vn(e);return q4(t,RO(t))+1}function hM(e){const t=Vn(e),n=+Md(t)-+kO(t);return Math.round(n/Gv)+1}function Y4(e,t){var u,d,f,h;const n=Vn(e),r=n.getFullYear(),i=Lf(),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??((h=(f=i.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??1,a=Ai(e,0);a.setFullYear(r+1,0,o),a.setHours(0,0,0,0);const s=ps(a,t),l=Ai(e,0);l.setFullYear(r,0,o),l.setHours(0,0,0,0);const c=ps(l,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function pM(e,t){var s,l,c,u;const n=Lf(),r=(t==null?void 0:t.firstWeekContainsDate)??((l=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((u=(c=n.locale)==null?void 0:c.options)==null?void 0:u.firstWeekContainsDate)??1,i=Y4(e,t),o=Ai(e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),ps(o,t)}function mM(e,t){const n=Vn(e),r=+ps(n,t)-+pM(n,t);return Math.round(r/Gv)+1}function Lt(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Yi={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Lt(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Lt(n+1,2)},d(e,t){return Lt(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 Lt(e.getHours()%12||12,t.length)},H(e,t){return Lt(e.getHours(),t.length)},m(e,t){return Lt(e.getMinutes(),t.length)},s(e,t){return Lt(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return Lt(i,t.length)}},Ia={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},gy={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 Yi.y(e,t)},Y:function(e,t,n,r){const i=Y4(e,r),o=i>0?i:1-i;if(t==="YY"){const a=o%100;return Lt(a,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):Lt(o,t.length)},R:function(e,t){const n=V4(e);return Lt(n,t.length)},u:function(e,t){const n=e.getFullYear();return Lt(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 Lt(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 Lt(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 Yi.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 Lt(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=mM(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):Lt(i,t.length)},I:function(e,t,n){const r=hM(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Lt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Yi.d(e,t)},D:function(e,t,n){const r=fM(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Lt(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 Lt(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 Lt(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 Lt(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=Ia.noon:r===0?i=Ia.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=Ia.evening:r>=12?i=Ia.afternoon:r>=4?i=Ia.morning:i=Ia.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 Yi.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Yi.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Lt(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Lt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Yi.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Yi.s(e,t)},S:function(e,t){return Yi.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return by(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 by(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"+vy(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"+vy(r,":");case"zzzz":default:return"GMT"+Bo(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return Lt(r,t.length)},T:function(e,t,n){const r=e.getTime();return Lt(r,t.length)}};function vy(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+Lt(o,2)}function by(e,t){return e%60===0?(e>0?"-":"+")+Lt(Math.abs(e)/60,2):Bo(e,t)}function Bo(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Lt(Math.trunc(r/60),2),o=Lt(r%60,2);return n+i+t+o}const yy=(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"})}},G4=(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"})}},gM=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return yy(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}}",yy(r,t)).replace("{{time}}",G4(i,t))},vM={p:G4,P:gM},bM=/^D+$/,yM=/^Y+$/,xM=["D","DD","YY","YYYY"];function wM(e){return bM.test(e)}function _M(e){return yM.test(e)}function CM(e,t,n){const r=$M(e,t,n);if(console.warn(r),xM.includes(e))throw new RangeError(r)}function $M(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 SM=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,TM=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,EM=/^'([^]*?)'?$/,kM=/''/g,OM=/[a-zA-Z]/;function Xv(e,t,n){var u,d,f,h,p,g,v,x;const r=Lf(),i=(n==null?void 0:n.locale)??r.locale??dM,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??((h=(f=r.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??1,a=(n==null?void 0:n.weekStartsOn)??((g=(p=n==null?void 0:n.locale)==null?void 0:p.options)==null?void 0:g.weekStartsOn)??r.weekStartsOn??((x=(v=r.locale)==null?void 0:v.options)==null?void 0:x.weekStartsOn)??0,s=Vn(e);if(!MO(s))throw new RangeError("Invalid time value");let l=t.match(TM).map(_=>{const w=_[0];if(w==="p"||w==="P"){const $=vM[w];return $(_,i.formatLong)}return _}).join("").match(SM).map(_=>{if(_==="''")return{isToken:!1,value:"'"};const w=_[0];if(w==="'")return{isToken:!1,value:MM(_)};if(gy[w])return{isToken:!0,value:_};if(w.match(OM))throw new RangeError("Format string contains an unescaped latin alphabet character `"+w+"`");return{isToken:!1,value:_}});i.localize.preprocessor&&(l=i.localize.preprocessor(s,l));const c={firstWeekContainsDate:o,weekStartsOn:a,locale:i};return l.map(_=>{if(!_.isToken)return _.value;const w=_.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&_M(w)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&wM(w))&&CM(w,t,String(e));const $=gy[w[0]];return $(s,w,i.localize,c)}).join("")}function MM(e){const t=e.match(EM);return t?t[1].replace(kM,"'"):e}function K4(e){return+Vn(e)<Date.now()}function Ff(e,t){const r=NM(e);let i;if(r.date){const l=DM(r.date,2);i=IM(l.restDateString,l.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);const o=i.getTime();let a=0,s;if(r.time&&(a=PM(r.time),isNaN(a)))return new Date(NaN);if(r.timezone){if(s=LM(r.timezone),isNaN(s))return new Date(NaN)}else{const l=new Date(o+a),c=new Date(0);return c.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),c.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),c}return new Date(o+a+s)}const Pu={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},AM=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,RM=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,jM=/^([+-])(\d{2})(?::?(\d{2}))?$/;function NM(e){const t={},n=e.split(Pu.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],Pu.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Pu.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const i=Pu.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function DM(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 IM(e,t){if(t===null)return new Date(NaN);const n=e.match(AM);if(!n)return new Date(NaN);const r=!!n[4],i=hl(n[1]),o=hl(n[2])-1,a=hl(n[3]),s=hl(n[4]),l=hl(n[5])-1;if(r)return UM(t,s,l)?FM(t,s,l):new Date(NaN);{const c=new Date(0);return!zM(t,o,a)||!WM(t,i)?new Date(NaN):(c.setUTCFullYear(t,o,Math.max(i,a)),c)}}function hl(e){return e?parseInt(e):1}function PM(e){const t=e.match(RM);if(!t)return NaN;const n=qp(t[1]),r=qp(t[2]),i=qp(t[3]);return HM(n,r,i)?n*Pf+r*Kv+i*1e3:NaN}function qp(e){return e&&parseFloat(e.replace(",","."))||0}function LM(e){if(e==="Z")return 0;const t=e.match(jM);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return VM(r,i)?n*(r*Pf+i*Kv):NaN}function FM(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 BM=[31,null,31,30,31,30,31,31,30,31,30,31];function Z4(e){return e%400===0||e%4===0&&e%100!==0}function zM(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(BM[t]||(Z4(e)?29:28))}function WM(e,t){return t>=1&&t<=(Z4(e)?366:365)}function UM(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function HM(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function VM(e,t){return t>=0&&t<=59}function bg(){return bg=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},bg.apply(null,arguments)}function X4(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 qM=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 l;if(t===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 c=[n,r,i,o,a,s],u=0;l=new Error(t.replace(/%s/g,function(){return c[u++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},YM=qM;const xy=sn(YM);function wy(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function GM(e){var t=KM(e,"string");return typeof t=="symbol"?t:String(t)}function KM(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 Q4(e,t,n){var r=m.useRef(e!==void 0),i=m.useState(t),o=i[0],a=i[1],s=e!==void 0,l=r.current;return r.current=s,!s&&l&&o!==t&&a(t),[s?e:o,m.useCallback(function(c){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,[c].concat(d)),a(c)},[n])]}function Qv(e,t){return Object.keys(t).reduce(function(n,r){var i,o=n,a=o[wy(r)],s=o[r],l=X4(o,[wy(r),r].map(GM)),c=t[r],u=Q4(s,a,e[c]),d=u[0],f=u[1];return bg({},l,(i={},i[r]=d,i[c]=f,i))},e)}function yg(e,t){return yg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},yg(e,t)}function ZM(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,yg(e,t)}const XM=["xxl","xl","lg","md","sm","xs"],QM="xs",Yc=ie.createContext({prefixes:{},breakpoints:XM,minBreakpoint:QM}),{Consumer:gbe,Provider:vbe}=Yc;function dt(e,t){const{prefixes:n}=m.useContext(Yc);return e||n[t]||t}function J4(){const{breakpoints:e}=m.useContext(Yc);return e}function e3(){const{minBreakpoint:e}=m.useContext(Yc);return e}function Bf(){const{dir:e}=m.useContext(Yc);return e==="rtl"}function Ls(e){return e&&e.ownerDocument||document}function JM(e){var t=Ls(e);return t&&t.defaultView||window}function e8(e,t){return JM(e).getComputedStyle(e,t)}var t8=/([A-Z])/g;function n8(e){return e.replace(t8,"-$1").toLowerCase()}var r8=/^ms-/;function Lu(e){return n8(e).replace(r8,"-ms-")}var i8=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function o8(e){return!!(e&&i8.test(e))}function co(e,t){var n="",r="";if(typeof t=="string")return e.style.getPropertyValue(Lu(t))||e8(e).getPropertyValue(Lu(t));Object.keys(t).forEach(function(i){var o=t[i];!o&&o!==0?e.style.removeProperty(Lu(i)):o8(i)?r+=i+"("+o+") ":n+=Lu(i)+": "+o+";"}),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n}var xg={exports:{}},Fu={exports:{}},jt={};/** @license React v16.13.1
26
- * react-is.production.min.js
27
- *
28
- * Copyright (c) Facebook, Inc. and its affiliates.
29
- *
30
- * This source code is licensed under the MIT license found in the
31
- * LICENSE file in the root directory of this source tree.
32
- */var _y;function a8(){if(_y)return jt;_y=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,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,p=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function w(b){if(typeof b=="object"&&b!==null){var C=b.$$typeof;switch(C){case t:switch(b=b.type,b){case l:case c:case r:case o:case i:case d:return b;default:switch(b=b&&b.$$typeof,b){case s:case u:case p:case h:case a:return b;default:return C}}case n:return C}}}function $(b){return w(b)===c}return jt.AsyncMode=l,jt.ConcurrentMode=c,jt.ContextConsumer=s,jt.ContextProvider=a,jt.Element=t,jt.ForwardRef=u,jt.Fragment=r,jt.Lazy=p,jt.Memo=h,jt.Portal=n,jt.Profiler=o,jt.StrictMode=i,jt.Suspense=d,jt.isAsyncMode=function(b){return $(b)||w(b)===l},jt.isConcurrentMode=$,jt.isContextConsumer=function(b){return w(b)===s},jt.isContextProvider=function(b){return w(b)===a},jt.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===t},jt.isForwardRef=function(b){return w(b)===u},jt.isFragment=function(b){return w(b)===r},jt.isLazy=function(b){return w(b)===p},jt.isMemo=function(b){return w(b)===h},jt.isPortal=function(b){return w(b)===n},jt.isProfiler=function(b){return w(b)===o},jt.isStrictMode=function(b){return w(b)===i},jt.isSuspense=function(b){return w(b)===d},jt.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===r||b===c||b===o||b===i||b===d||b===f||typeof b=="object"&&b!==null&&(b.$$typeof===p||b.$$typeof===h||b.$$typeof===a||b.$$typeof===s||b.$$typeof===u||b.$$typeof===v||b.$$typeof===x||b.$$typeof===_||b.$$typeof===g)},jt.typeOf=w,jt}var Nt={};/** @license React v16.13.1
33
- * react-is.development.js
34
- *
35
- * Copyright (c) Facebook, Inc. and its affiliates.
36
- *
37
- * This source code is licensed under the MIT license found in the
38
- * LICENSE file in the root directory of this source tree.
39
- */var Cy;function s8(){return Cy||(Cy=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,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,p=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function w(N){return typeof N=="string"||typeof N=="function"||N===r||N===c||N===o||N===i||N===d||N===f||typeof N=="object"&&N!==null&&(N.$$typeof===p||N.$$typeof===h||N.$$typeof===a||N.$$typeof===s||N.$$typeof===u||N.$$typeof===v||N.$$typeof===x||N.$$typeof===_||N.$$typeof===g)}function $(N){if(typeof N=="object"&&N!==null){var X=N.$$typeof;switch(X){case t:var Q=N.type;switch(Q){case l:case c:case r:case o:case i:case d:return Q;default:var Z=Q&&Q.$$typeof;switch(Z){case s:case u:case p:case h:case a:return Z;default:return X}}case n:return X}}}var b=l,C=c,T=s,k=a,O=t,j=u,S=r,E=p,A=h,D=n,R=o,M=i,I=d,F=!1;function U(N){return F||(F=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),P(N)||$(N)===l}function P(N){return $(N)===c}function W(N){return $(N)===s}function q(N){return $(N)===a}function H(N){return typeof N=="object"&&N!==null&&N.$$typeof===t}function Y(N){return $(N)===u}function G(N){return $(N)===r}function J(N){return $(N)===p}function ee(N){return $(N)===h}function z(N){return $(N)===n}function L(N){return $(N)===o}function B(N){return $(N)===i}function V(N){return $(N)===d}Nt.AsyncMode=b,Nt.ConcurrentMode=C,Nt.ContextConsumer=T,Nt.ContextProvider=k,Nt.Element=O,Nt.ForwardRef=j,Nt.Fragment=S,Nt.Lazy=E,Nt.Memo=A,Nt.Portal=D,Nt.Profiler=R,Nt.StrictMode=M,Nt.Suspense=I,Nt.isAsyncMode=U,Nt.isConcurrentMode=P,Nt.isContextConsumer=W,Nt.isContextProvider=q,Nt.isElement=H,Nt.isForwardRef=Y,Nt.isFragment=G,Nt.isLazy=J,Nt.isMemo=ee,Nt.isPortal=z,Nt.isProfiler=L,Nt.isStrictMode=B,Nt.isSuspense=V,Nt.isValidElementType=w,Nt.typeOf=$}()),Nt}var $y;function t3(){return $y||($y=1,process.env.NODE_ENV==="production"?Fu.exports=a8():Fu.exports=s8()),Fu.exports}/*
40
- object-assign
41
- (c) Sindre Sorhus
42
- @license MIT
43
- */var Yp,Sy;function l8(){if(Sy)return Yp;Sy=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 l=Object.getOwnPropertyNames(a).map(function(u){return a[u]});if(l.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(u){c[u]=u}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Yp=i()?Object.assign:function(o,a){for(var s,l=r(o),c,u=1;u<arguments.length;u++){s=Object(arguments[u]);for(var d in s)t.call(s,d)&&(l[d]=s[d]);if(e){c=e(s);for(var f=0;f<c.length;f++)n.call(s,c[f])&&(l[c[f]]=s[c[f]])}}return l},Yp}var Gp,Ty;function Jv(){if(Ty)return Gp;Ty=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Gp=e,Gp}var Kp,Ey;function n3(){return Ey||(Ey=1,Kp=Function.call.bind(Object.prototype.hasOwnProperty)),Kp}var Zp,ky;function c8(){if(ky)return Zp;ky=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Jv(),n={},r=n3();e=function(o){var a="Warning: "+o;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(o,a,s,l,c){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((l||"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,l,s,null,t)}catch(p){d=p}if(d&&!(d instanceof Error)&&e((l||"React class")+": type specification of "+s+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var h=c?c():"";e("Failed "+s+" type: "+d.message+(h??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Zp=i,Zp}var Xp,Oy;function u8(){if(Oy)return Xp;Oy=1;var e=t3(),t=l8(),n=Jv(),r=n3(),i=c8(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function a(){return null}return Xp=function(s,l){var c=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function d(P){var W=P&&(c&&P[c]||P[u]);if(typeof W=="function")return W}var f="<<anonymous>>",h={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:_(),arrayOf:w,element:$(),elementType:b(),instanceOf:C,node:j(),objectOf:k,oneOf:T,oneOfType:O,shape:E,exact:A};function p(P,W){return P===W?P!==0||1/P===1/W:P!==P&&W!==W}function g(P,W){this.message=P,this.data=W&&typeof W=="object"?W:{},this.stack=""}g.prototype=Error.prototype;function v(P){if(process.env.NODE_ENV!=="production")var W={},q=0;function H(G,J,ee,z,L,B,V){if(z=z||f,B=B||ee,V!==n){if(l){var N=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 N.name="Invariant Violation",N}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var X=z+":"+ee;!W[X]&&q<3&&(o("You are manually calling a React.PropTypes validation function for the `"+B+"` prop on `"+z+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),W[X]=!0,q++)}}return J[ee]==null?G?J[ee]===null?new g("The "+L+" `"+B+"` is marked as required "+("in `"+z+"`, but its value is `null`.")):new g("The "+L+" `"+B+"` is marked as required in "+("`"+z+"`, but its value is `undefined`.")):null:P(J,ee,z,L,B)}var Y=H.bind(null,!1);return Y.isRequired=H.bind(null,!0),Y}function x(P){function W(q,H,Y,G,J,ee){var z=q[H],L=M(z);if(L!==P){var B=I(z);return new g("Invalid "+G+" `"+J+"` of type "+("`"+B+"` supplied to `"+Y+"`, expected ")+("`"+P+"`."),{expectedType:P})}return null}return v(W)}function _(){return v(a)}function w(P){function W(q,H,Y,G,J){if(typeof P!="function")return new g("Property `"+J+"` of component `"+Y+"` has invalid PropType notation inside arrayOf.");var ee=q[H];if(!Array.isArray(ee)){var z=M(ee);return new g("Invalid "+G+" `"+J+"` of type "+("`"+z+"` supplied to `"+Y+"`, expected an array."))}for(var L=0;L<ee.length;L++){var B=P(ee,L,Y,G,J+"["+L+"]",n);if(B instanceof Error)return B}return null}return v(W)}function $(){function P(W,q,H,Y,G){var J=W[q];if(!s(J)){var ee=M(J);return new g("Invalid "+Y+" `"+G+"` of type "+("`"+ee+"` supplied to `"+H+"`, expected a single ReactElement."))}return null}return v(P)}function b(){function P(W,q,H,Y,G){var J=W[q];if(!e.isValidElementType(J)){var ee=M(J);return new g("Invalid "+Y+" `"+G+"` of type "+("`"+ee+"` supplied to `"+H+"`, expected a single ReactElement type."))}return null}return v(P)}function C(P){function W(q,H,Y,G,J){if(!(q[H]instanceof P)){var ee=P.name||f,z=U(q[H]);return new g("Invalid "+G+" `"+J+"` of type "+("`"+z+"` supplied to `"+Y+"`, expected ")+("instance of `"+ee+"`."))}return null}return v(W)}function T(P){if(!Array.isArray(P))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(q,H,Y,G,J){for(var ee=q[H],z=0;z<P.length;z++)if(p(ee,P[z]))return null;var L=JSON.stringify(P,function(V,N){var X=I(N);return X==="symbol"?String(N):N});return new g("Invalid "+G+" `"+J+"` of value `"+String(ee)+"` "+("supplied to `"+Y+"`, expected one of "+L+"."))}return v(W)}function k(P){function W(q,H,Y,G,J){if(typeof P!="function")return new g("Property `"+J+"` of component `"+Y+"` has invalid PropType notation inside objectOf.");var ee=q[H],z=M(ee);if(z!=="object")return new g("Invalid "+G+" `"+J+"` of type "+("`"+z+"` supplied to `"+Y+"`, expected an object."));for(var L in ee)if(r(ee,L)){var B=P(ee,L,Y,G,J+"."+L,n);if(B instanceof Error)return B}return null}return v(W)}function O(P){if(!Array.isArray(P))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var W=0;W<P.length;W++){var q=P[W];if(typeof q!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+F(q)+" at index "+W+"."),a}function H(Y,G,J,ee,z){for(var L=[],B=0;B<P.length;B++){var V=P[B],N=V(Y,G,J,ee,z,n);if(N==null)return null;N.data&&r(N.data,"expectedType")&&L.push(N.data.expectedType)}var X=L.length>0?", expected one of type ["+L.join(", ")+"]":"";return new g("Invalid "+ee+" `"+z+"` supplied to "+("`"+J+"`"+X+"."))}return v(H)}function j(){function P(W,q,H,Y,G){return D(W[q])?null:new g("Invalid "+Y+" `"+G+"` supplied to "+("`"+H+"`, expected a ReactNode."))}return v(P)}function S(P,W,q,H,Y){return new g((P||"React class")+": "+W+" type `"+q+"."+H+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Y+"`.")}function E(P){function W(q,H,Y,G,J){var ee=q[H],z=M(ee);if(z!=="object")return new g("Invalid "+G+" `"+J+"` of type `"+z+"` "+("supplied to `"+Y+"`, expected `object`."));for(var L in P){var B=P[L];if(typeof B!="function")return S(Y,G,J,L,I(B));var V=B(ee,L,Y,G,J+"."+L,n);if(V)return V}return null}return v(W)}function A(P){function W(q,H,Y,G,J){var ee=q[H],z=M(ee);if(z!=="object")return new g("Invalid "+G+" `"+J+"` of type `"+z+"` "+("supplied to `"+Y+"`, expected `object`."));var L=t({},q[H],P);for(var B in L){var V=P[B];if(r(P,B)&&typeof V!="function")return S(Y,G,J,B,I(V));if(!V)return new g("Invalid "+G+" `"+J+"` key `"+B+"` supplied to `"+Y+"`.\nBad object: "+JSON.stringify(q[H],null," ")+`
44
- Valid keys: `+JSON.stringify(Object.keys(P),null," "));var N=V(ee,B,Y,G,J+"."+B,n);if(N)return N}return null}return v(W)}function D(P){switch(typeof P){case"number":case"string":case"undefined":return!0;case"boolean":return!P;case"object":if(Array.isArray(P))return P.every(D);if(P===null||s(P))return!0;var W=d(P);if(W){var q=W.call(P),H;if(W!==P.entries){for(;!(H=q.next()).done;)if(!D(H.value))return!1}else for(;!(H=q.next()).done;){var Y=H.value;if(Y&&!D(Y[1]))return!1}}else return!1;return!0;default:return!1}}function R(P,W){return P==="symbol"?!0:W?W["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&W instanceof Symbol:!1}function M(P){var W=typeof P;return Array.isArray(P)?"array":P instanceof RegExp?"object":R(W,P)?"symbol":W}function I(P){if(typeof P>"u"||P===null)return""+P;var W=M(P);if(W==="object"){if(P instanceof Date)return"date";if(P instanceof RegExp)return"regexp"}return W}function F(P){var W=I(P);switch(W){case"array":case"object":return"an "+W;case"boolean":case"date":case"regexp":return"a "+W;default:return W}}function U(P){return!P.constructor||!P.constructor.name?f:P.constructor.name}return h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},Xp}var Qp,My;function d8(){if(My)return Qp;My=1;var e=Jv();function t(){}function n(){}return n.resetWarningCache=t,Qp=function(){function r(a,s,l,c,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},Qp}if(process.env.NODE_ENV!=="production"){var f8=t3(),h8=!0;xg.exports=u8()(f8.isElement,h8)}else xg.exports=d8()();var p8=xg.exports;const we=sn(p8),Ay={disabled:!1};var m8=process.env.NODE_ENV!=="production"?we.oneOfType([we.number,we.shape({enter:we.number,exit:we.number,appear:we.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&we.oneOfType([we.string,we.shape({enter:we.string,exit:we.string,active:we.string}),we.shape({enter:we.string,enterDone:we.string,enterActive:we.string,exit:we.string,exitDone:we.string,exitActive:we.string})]);const r3=m.createContext(null);var g8=function(t){return t.scrollTop},Dl="unmounted",Xi="exited",xi="entering",to="entered",Ad="exiting",Bi=function(e){ZM(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,l;return o.appearStatus=null,r.in?s?(l=Xi,o.appearStatus=xi):l=to:r.unmountOnExit||r.mountOnEnter?l=Dl:l=Xi,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===Dl?{status:Xi}: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!==xi&&a!==to&&(o=xi):(a===xi||a===to)&&(o=Ad)}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===xi){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:mn.findDOMNode(this);a&&g8(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Xi&&this.setState({status:Dl})},n.performEnter=function(i){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[mn.findDOMNode(this),s],c=l[0],u=l[1],d=this.getTimeouts(),f=s?d.appear:d.enter;if(!i&&!a||Ay.disabled){this.safeSetState({status:to},function(){o.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:xi},function(){o.props.onEntering(c,u),o.onTransitionEnd(f,function(){o.safeSetState({status:to},function(){o.props.onEntered(c,u)})})})},n.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:mn.findDOMNode(this);if(!o||Ay.disabled){this.safeSetState({status:Xi},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Ad},function(){i.props.onExiting(s),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:Xi},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:mn.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===Dl)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=X4(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return m.createElement(r3.Provider,{value:null},typeof a=="function"?a(i,s):m.cloneElement(m.Children.only(a),s))},t}(m.Component);Bi.contextType=r3;Bi.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:we.shape({current:typeof Element>"u"?we.any:function(e,t,n,r,i,o){var a=e[t];return we.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,i,o)}}),children:we.oneOfType([we.func.isRequired,we.element.isRequired]).isRequired,in:we.bool,mountOnEnter:we.bool,unmountOnExit:we.bool,appear:we.bool,enter:we.bool,exit:we.bool,timeout:function(t){var n=m8;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:we.func,onEnter:we.func,onEntering:we.func,onEntered:we.func,onExit:we.func,onExiting:we.func,onExited:we.func}:{};function Pa(){}Bi.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Pa,onEntering:Pa,onEntered:Pa,onExit:Pa,onExiting:Pa,onExited:Pa};Bi.UNMOUNTED=Dl;Bi.EXITED=Xi;Bi.ENTERING=xi;Bi.ENTERED=to;Bi.EXITING=Ad;function i3(e){return e.code==="Escape"||e.keyCode===27}function v8(){const e=ie.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}function Fs(e){if(!e||typeof e=="function")return null;const{major:t}=v8();return t>=19?e.props.ref:e.ref}const Bs=!!(typeof window<"u"&&window.document&&window.document.createElement);var wg=!1,_g=!1;try{var Jp={get passive(){return wg=!0},get once(){return _g=wg=!0}};Bs&&(window.addEventListener("test",Jp,Jp),window.removeEventListener("test",Jp,!0))}catch{}function e0(e,t,n,r){if(r&&typeof r!="boolean"&&!_g){var i=r.once,o=r.capture,a=n;!_g&&i&&(a=n.__once||function s(l){this.removeEventListener(t,s,o),n.call(this,l)},n.__once=a),e.addEventListener(t,a,wg?r:o)}e.addEventListener(t,n,r)}function Cg(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 $i(e,t,n,r){return e0(e,t,n,r),function(){Cg(e,t,n,r)}}function b8(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 y8(e){var t=co(e,"transitionDuration")||"",n=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*n}function x8(e,t,n){n===void 0&&(n=5);var r=!1,i=setTimeout(function(){r||b8(e,"transitionend",!0)},t+n),o=$i(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(i),o()}}function o3(e,t,n,r){n==null&&(n=y8(e)||0);var i=x8(e,n,r),o=$i(e,"transitionend",t);return function(){i(),o()}}function Ry(e,t){const n=co(e,t)||"",r=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*r}function a3(e,t){const n=Ry(e,"transitionDuration"),r=Ry(e,"transitionDelay"),i=o3(e,o=>{o.target===e&&(i(),t(o))},n+r)}function s3(e){e.offsetHeight}const jy=e=>!e||typeof e=="function"?e:t=>{e.current=t};function w8(e,t){const n=jy(e),r=jy(t);return i=>{n&&n(i),r&&r(i)}}function wa(e,t){return m.useMemo(()=>w8(e,t),[e,t])}function Rd(e){return e&&"setState"in e?mn.findDOMNode(e):e??null}const t0=m.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:i,onExited:o,addEndListener:a,children:s,childRef:l,...c},u)=>{const d=m.useRef(null),f=wa(d,l),h=C=>{f(Rd(C))},p=C=>T=>{C&&d.current&&C(d.current,T)},g=m.useCallback(p(e),[e]),v=m.useCallback(p(t),[t]),x=m.useCallback(p(n),[n]),_=m.useCallback(p(r),[r]),w=m.useCallback(p(i),[i]),$=m.useCallback(p(o),[o]),b=m.useCallback(p(a),[a]);return y.jsx(Bi,{ref:u,...c,onEnter:g,onEntered:x,onEntering:v,onExit:_,onExited:$,onExiting:w,addEndListener:b,nodeRef:d,children:typeof s=="function"?(C,T)=>s(C,{...T,ref:h}):m.cloneElement(s,{ref:h})})});t0.displayName="TransitionWrapper";function _8(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e},[e]),t}function fo(e){const t=_8(e);return m.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const n0=e=>ie.forwardRef((t,n)=>y.jsx("div",{...t,ref:n,className:ue(t.className,e)})),l3=n0("h4");l3.displayName="DivStyledAsH4";const c3=ie.forwardRef(({className:e,bsPrefix:t,as:n=l3,...r},i)=>(t=dt(t,"alert-heading"),y.jsx(n,{ref:i,className:ue(e,t),...r})));c3.displayName="AlertHeading";function $g(){return m.useState(null)}function C8(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e},[e]),t}function En(e){const t=C8(e);return m.useCallback(function(...n){return t.current&&t.current(...n)},[t])}function $8(e,t,n,r=!1){const i=En(n);m.useEffect(()=>{const o=typeof e=="function"?e():e;return o.addEventListener(t,i,r),()=>o.removeEventListener(t,i,r)},[e])}function u3(){const e=m.useRef(!0),t=m.useRef(()=>e.current);return m.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function d3(e){const t=m.useRef(null);return m.useEffect(()=>{t.current=e}),t.current}const S8=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",T8=typeof document<"u",Ny=T8||S8?m.useLayoutEffect:m.useEffect,E8=["as","disabled"];function k8(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 O8(e){return!e||e.trim()==="#"}function r0({tagName:e,disabled:t,href:n,target:r,rel:i,role:o,onClick:a,tabIndex:s=0,type:l}){e||(n!=null||r!=null||i!=null?e="a":e="button");const c={tagName:e};if(e==="button")return[{type:l||"button",disabled:t},c];const u=f=>{if((t||e==="a"&&O8(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},c]}const i0=ie.forwardRef((e,t)=>{let{as:n,disabled:r}=e,i=k8(e,E8);const[o,{tagName:a}]=r0(Object.assign({tagName:n,disabled:r},i));return y.jsx(a,Object.assign({},i,o,{ref:t}))});i0.displayName="Button";const M8=["onKeyDown"];function A8(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 R8(e){return!e||e.trim()==="#"}const o0=ie.forwardRef((e,t)=>{let{onKeyDown:n}=e,r=A8(e,M8);const[i]=r0(Object.assign({tagName:"a"},r)),o=En(a=>{i.onKeyDown(a),n==null||n(a)});return R8(r.href)||r.role==="button"?y.jsx("a",Object.assign({ref:t},r,i,{onKeyDown:o})):y.jsx("a",Object.assign({ref:t},r,{onKeyDown:n}))});o0.displayName="Anchor";const f3=ie.forwardRef(({className:e,bsPrefix:t,as:n=o0,...r},i)=>(t=dt(t,"alert-link"),y.jsx(n,{ref:i,className:ue(e,t),...r})));f3.displayName="AlertLink";const j8={[xi]:"show",[to]:"show"},ho=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=m.useCallback((l,c)=>{s3(l),r==null||r(l,c)},[r]);return y.jsx(t0,{ref:o,addEndListener:a3,...a,onEnter:s,childRef:Fs(t),children:(l,c)=>ie.cloneElement(t,{...c,className:ue("fade",e,t.props.className,j8[l],n[l])})})});ho.displayName="Fade";const N8={"aria-label":we.string,onClick:we.func,variant:we.oneOf(["white"])},zf=ie.forwardRef(({className:e,variant:t,"aria-label":n="Close",...r},i)=>y.jsx("button",{ref:i,type:"button",className:ue("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r}));zf.displayName="CloseButton";zf.propTypes=N8;const h3=ie.forwardRef((e,t)=>{const{bsPrefix:n,show:r=!0,closeLabel:i="Close alert",closeVariant:o,className:a,children:s,variant:l="primary",onClose:c,dismissible:u,transition:d=ho,...f}=Qv(e,{show:"onClose"}),h=dt(n,"alert"),p=fo(x=>{c&&c(!1,x)}),g=d===!0?ho:d,v=y.jsxs("div",{role:"alert",...g?void 0:f,ref:t,className:ue(a,h,l&&`${h}-${l}`,u&&`${h}-dismissible`),children:[u&&y.jsx(zf,{onClick:p,"aria-label":i,variant:o}),s]});return g?y.jsx(g,{unmountOnExit:!0,...f,ref:void 0,in:r,children:v}):r?v:null});h3.displayName="Alert";const D8=Object.assign(h3,{Link:f3,Heading:c3}),a0=ie.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:r,active:i=!1,disabled:o=!1,className:a,...s},l)=>{const c=dt(t,"btn"),[u,{tagName:d}]=r0({tagName:e,disabled:o,...s}),f=d;return y.jsx(f,{...u,...s,ref:l,disabled:o,className:ue(a,c,i&&"active",n&&`${c}-${n}`,r&&`${c}-${r}`,s.href&&o&&"disabled")})});a0.displayName="Button";function I8(){const e=m.useRef(!0),t=m.useRef(()=>e.current);return m.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function P8(e){const t=m.useRef(e);return t.current=e,t}function p3(e){const t=P8(e);m.useEffect(()=>()=>t.current(),[])}const Sg=2**31-1;function m3(e,t,n){const r=n-Date.now();e.current=r<=Sg?setTimeout(t,r):setTimeout(()=>m3(e,t,n),Sg)}function L8(){const e=I8(),t=m.useRef();return p3(()=>clearTimeout(t.current)),m.useMemo(()=>{const n=()=>clearTimeout(t.current);function r(i,o=0){e()&&(n(),o<=Sg?t.current=setTimeout(i,o):m3(t,i,Date.now()+o))}return{set:r,clear:n,handleRef:t}},[])}function F8(e,t){return ie.Children.toArray(e).some(n=>ie.isValidElement(n)&&n.type===t)}function g3({as:e,bsPrefix:t,className:n,...r}){t=dt(t,"col");const i=J4(),o=e3(),a=[],s=[];return i.forEach(l=>{const c=r[l];delete r[l];let u,d,f;typeof c=="object"&&c!=null?{span:u,offset:d,order:f}=c:u=c;const h=l!==o?`-${l}`:"";u&&a.push(u===!0?`${t}${h}`:`${t}${h}-${u}`),f!=null&&s.push(`order${h}-${f}`),d!=null&&s.push(`offset${h}-${d}`)}),[{...r,className:ue(n,...a,...s)},{as:e,bsPrefix:t,spans:a}]}const s0=ie.forwardRef((e,t)=>{const[{className:n,...r},{as:i="div",bsPrefix:o,spans:a}]=g3(e);return y.jsx(i,{...r,ref:t,className:ue(n,!a.length&&o)})});s0.displayName="Col";var B8=Function.prototype.bind.call(Function.prototype.call,[].slice);function wi(e,t){return B8(e.querySelectorAll(t))}function z8(e,t,n){const r=m.useRef(e!==void 0),[i,o]=m.useState(t),a=e!==void 0,s=r.current;return r.current=a,!a&&s&&i!==t&&o(t),[a?e:i,m.useCallback((...l)=>{const[c,...u]=l;let d=n==null?void 0:n(c,...u);return o(c),d},[n])]}function v3(){const[,e]=m.useReducer(t=>t+1,0);return e}const Wf=ie.createContext(null);var Dy=Object.prototype.hasOwnProperty;function Iy(e,t,n){for(n of e.keys())if(Wl(n,t))return n}function Wl(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--&&Wl(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=Iy(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=Iy(t,i),!i)||!Wl(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(Dy.call(e,n)&&++r&&!Dy.call(t,n)||!(n in t)||!Wl(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function W8(e){const t=u3();return[e[0],m.useCallback(n=>{if(t())return e[1](n)},[t,e[1]])]}var Qn="top",wr="bottom",_r="right",Jn="left",l0="auto",Gc=[Qn,wr,_r,Jn],ms="start",nc="end",U8="clippingParents",b3="viewport",pl="popper",H8="reference",Py=Gc.reduce(function(e,t){return e.concat([t+"-"+ms,t+"-"+nc])},[]),y3=[].concat(Gc,[l0]).reduce(function(e,t){return e.concat([t,t+"-"+ms,t+"-"+nc])},[]),V8="beforeRead",q8="read",Y8="afterRead",G8="beforeMain",K8="main",Z8="afterMain",X8="beforeWrite",Q8="write",J8="afterWrite",eA=[V8,q8,Y8,G8,K8,Z8,X8,Q8,J8];function Yr(e){return e.split("-")[0]}function cr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function aa(e){var t=cr(e).Element;return e instanceof t||e instanceof Element}function Gr(e){var t=cr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function c0(e){if(typeof ShadowRoot>"u")return!1;var t=cr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var Jo=Math.max,jd=Math.min,gs=Math.round;function Tg(){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 x3(){return!/^((?!chrome|android).)*safari/i.test(Tg())}function vs(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Gr(e)&&(i=e.offsetWidth>0&&gs(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&gs(r.height)/e.offsetHeight||1);var a=aa(e)?cr(e):window,s=a.visualViewport,l=!x3()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/i,u=(r.top+(l&&s?s.offsetTop:0))/o,d=r.width/i,f=r.height/o;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c,x:c,y:u}}function u0(e){var t=vs(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 w3(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&c0(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function po(e){return e?(e.nodeName||"").toLowerCase():null}function Ri(e){return cr(e).getComputedStyle(e)}function tA(e){return["table","td","th"].indexOf(po(e))>=0}function $o(e){return((aa(e)?e.ownerDocument:e.document)||window.document).documentElement}function Uf(e){return po(e)==="html"?e:e.assignedSlot||e.parentNode||(c0(e)?e.host:null)||$o(e)}function Ly(e){return!Gr(e)||Ri(e).position==="fixed"?null:e.offsetParent}function nA(e){var t=/firefox/i.test(Tg()),n=/Trident/i.test(Tg());if(n&&Gr(e)){var r=Ri(e);if(r.position==="fixed")return null}var i=Uf(e);for(c0(i)&&(i=i.host);Gr(i)&&["html","body"].indexOf(po(i))<0;){var o=Ri(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 Kc(e){for(var t=cr(e),n=Ly(e);n&&tA(n)&&Ri(n).position==="static";)n=Ly(n);return n&&(po(n)==="html"||po(n)==="body"&&Ri(n).position==="static")?t:n||nA(e)||t}function d0(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ul(e,t,n){return Jo(e,jd(t,n))}function rA(e,t,n){var r=Ul(e,t,n);return r>n?n:r}function _3(){return{top:0,right:0,bottom:0,left:0}}function C3(e){return Object.assign({},_3(),e)}function $3(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var iA=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,C3(typeof t!="number"?t:$3(t,Gc))};function oA(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Yr(n.placement),l=d0(s),c=[Jn,_r].indexOf(s)>=0,u=c?"height":"width";if(!(!o||!a)){var d=iA(i.padding,n),f=u0(o),h=l==="y"?Qn:Jn,p=l==="y"?wr:_r,g=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],v=a[l]-n.rects.reference[l],x=Kc(o),_=x?l==="y"?x.clientHeight||0:x.clientWidth||0:0,w=g/2-v/2,$=d[h],b=_-f[u]-d[p],C=_/2-f[u]/2+w,T=Ul($,C,b),k=l;n.modifiersData[r]=(t={},t[k]=T,t.centerOffset=T-C,t)}}function aA(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)||w3(t.elements.popper,i)&&(t.elements.arrow=i))}const sA={name:"arrow",enabled:!0,phase:"main",fn:oA,effect:aA,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function bs(e){return e.split("-")[1]}var lA={top:"auto",right:"auto",bottom:"auto",left:"auto"};function cA(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:gs(n*i)/i||0,y:gs(r*i)/i||0}}function Fy(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=a.x,h=f===void 0?0:f,p=a.y,g=p===void 0?0:p,v=typeof u=="function"?u({x:h,y:g}):{x:h,y:g};h=v.x,g=v.y;var x=a.hasOwnProperty("x"),_=a.hasOwnProperty("y"),w=Jn,$=Qn,b=window;if(c){var C=Kc(n),T="clientHeight",k="clientWidth";if(C===cr(n)&&(C=$o(n),Ri(C).position!=="static"&&s==="absolute"&&(T="scrollHeight",k="scrollWidth")),C=C,i===Qn||(i===Jn||i===_r)&&o===nc){$=wr;var O=d&&C===b&&b.visualViewport?b.visualViewport.height:C[T];g-=O-r.height,g*=l?1:-1}if(i===Jn||(i===Qn||i===wr)&&o===nc){w=_r;var j=d&&C===b&&b.visualViewport?b.visualViewport.width:C[k];h-=j-r.width,h*=l?1:-1}}var S=Object.assign({position:s},c&&lA),E=u===!0?cA({x:h,y:g},cr(n)):{x:h,y:g};if(h=E.x,g=E.y,l){var A;return Object.assign({},S,(A={},A[$]=_?"0":"",A[w]=x?"0":"",A.transform=(b.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",A))}return Object.assign({},S,(t={},t[$]=_?g+"px":"",t[w]=x?h+"px":"",t.transform="",t))}function uA(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,l=s===void 0?!0:s,c={placement:Yr(t.placement),variation:bs(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,Fy(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Fy(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const dA={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:uA,data:{}};var Bu={passive:!0};function fA(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,l=cr(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(u){u.addEventListener("scroll",n.update,Bu)}),s&&l.addEventListener("resize",n.update,Bu),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Bu)}),s&&l.removeEventListener("resize",n.update,Bu)}}const hA={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:fA,data:{}};var pA={left:"right",right:"left",bottom:"top",top:"bottom"};function md(e){return e.replace(/left|right|bottom|top/g,function(t){return pA[t]})}var mA={start:"end",end:"start"};function By(e){return e.replace(/start|end/g,function(t){return mA[t]})}function f0(e){var t=cr(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function h0(e){return vs($o(e)).left+f0(e).scrollLeft}function gA(e,t){var n=cr(e),r=$o(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var c=x3();(c||!c&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+h0(e),y:l}}function vA(e){var t,n=$o(e),r=f0(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Jo(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Jo(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+h0(e),l=-r.scrollTop;return Ri(i||n).direction==="rtl"&&(s+=Jo(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function p0(e){var t=Ri(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function S3(e){return["html","body","#document"].indexOf(po(e))>=0?e.ownerDocument.body:Gr(e)&&p0(e)?e:S3(Uf(e))}function Hl(e,t){var n;t===void 0&&(t=[]);var r=S3(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=cr(r),a=i?[o].concat(o.visualViewport||[],p0(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(Hl(Uf(a)))}function Eg(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function bA(e,t){var n=vs(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 zy(e,t,n){return t===b3?Eg(gA(e,n)):aa(t)?bA(t,n):Eg(vA($o(e)))}function yA(e){var t=Hl(Uf(e)),n=["absolute","fixed"].indexOf(Ri(e).position)>=0,r=n&&Gr(e)?Kc(e):e;return aa(r)?t.filter(function(i){return aa(i)&&w3(i,r)&&po(i)!=="body"}):[]}function xA(e,t,n,r){var i=t==="clippingParents"?yA(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,c){var u=zy(e,c,r);return l.top=Jo(u.top,l.top),l.right=jd(u.right,l.right),l.bottom=jd(u.bottom,l.bottom),l.left=Jo(u.left,l.left),l},zy(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 T3(e){var t=e.reference,n=e.element,r=e.placement,i=r?Yr(r):null,o=r?bs(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case Qn:l={x:a,y:t.y-n.height};break;case wr:l={x:a,y:t.y+t.height};break;case _r:l={x:t.x+t.width,y:s};break;case Jn:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=i?d0(i):null;if(c!=null){var u=c==="y"?"height":"width";switch(o){case ms:l[c]=l[c]-(t[u]/2-n[u]/2);break;case nc:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function rc(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,l=s===void 0?U8:s,c=n.rootBoundary,u=c===void 0?b3:c,d=n.elementContext,f=d===void 0?pl:d,h=n.altBoundary,p=h===void 0?!1:h,g=n.padding,v=g===void 0?0:g,x=C3(typeof v!="number"?v:$3(v,Gc)),_=f===pl?H8:pl,w=e.rects.popper,$=e.elements[p?_:f],b=xA(aa($)?$:$.contextElement||$o(e.elements.popper),l,u,a),C=vs(e.elements.reference),T=T3({reference:C,element:w,placement:i}),k=Eg(Object.assign({},w,T)),O=f===pl?k:C,j={top:b.top-O.top+x.top,bottom:O.bottom-b.bottom+x.bottom,left:b.left-O.left+x.left,right:O.right-b.right+x.right},S=e.modifiersData.offset;if(f===pl&&S){var E=S[i];Object.keys(j).forEach(function(A){var D=[_r,wr].indexOf(A)>=0?1:-1,R=[Qn,wr].indexOf(A)>=0?"y":"x";j[A]+=E[R]*D})}return j}function wA(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?y3:l,u=bs(r),d=u?s?Py:Py.filter(function(p){return bs(p)===u}):Gc,f=d.filter(function(p){return c.indexOf(p)>=0});f.length===0&&(f=d);var h=f.reduce(function(p,g){return p[g]=rc(e,{placement:g,boundary:i,rootBoundary:o,padding:a})[Yr(g)],p},{});return Object.keys(h).sort(function(p,g){return h[p]-h[g]})}function _A(e){if(Yr(e)===l0)return[];var t=md(e);return[By(e),t,By(t)]}function CA(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,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,p=h===void 0?!0:h,g=n.allowedAutoPlacements,v=t.options.placement,x=Yr(v),_=x===v,w=l||(_||!p?[md(v)]:_A(v)),$=[v].concat(w).reduce(function(Y,G){return Y.concat(Yr(G)===l0?wA(t,{placement:G,boundary:u,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:g}):G)},[]),b=t.rects.reference,C=t.rects.popper,T=new Map,k=!0,O=$[0],j=0;j<$.length;j++){var S=$[j],E=Yr(S),A=bs(S)===ms,D=[Qn,wr].indexOf(E)>=0,R=D?"width":"height",M=rc(t,{placement:S,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),I=D?A?_r:Jn:A?wr:Qn;b[R]>C[R]&&(I=md(I));var F=md(I),U=[];if(o&&U.push(M[E]<=0),s&&U.push(M[I]<=0,M[F]<=0),U.every(function(Y){return Y})){O=S,k=!1;break}T.set(S,U)}if(k)for(var P=p?3:1,W=function(G){var J=$.find(function(ee){var z=T.get(ee);if(z)return z.slice(0,G).every(function(L){return L})});if(J)return O=J,"break"},q=P;q>0;q--){var H=W(q);if(H==="break")break}t.placement!==O&&(t.modifiersData[r]._skip=!0,t.placement=O,t.reset=!0)}}const $A={name:"flip",enabled:!0,phase:"main",fn:CA,requiresIfExists:["offset"],data:{_skip:!1}};function Wy(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 Uy(e){return[Qn,_r,wr,Jn].some(function(t){return e[t]>=0})}function SA(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=rc(t,{elementContext:"reference"}),s=rc(t,{altBoundary:!0}),l=Wy(a,r),c=Wy(s,i,o),u=Uy(l),d=Uy(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const TA={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:SA};function EA(e,t,n){var r=Yr(e),i=[Jn,Qn].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,[Jn,_r].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function kA(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=y3.reduce(function(u,d){return u[d]=EA(d,t.rects,o),u},{}),s=a[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}const OA={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:kA};function MA(e){var t=e.state,n=e.name;t.modifiersData[n]=T3({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const AA={name:"popperOffsets",enabled:!0,phase:"read",fn:MA,data:{}};function RA(e){return e==="x"?"y":"x"}function jA(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,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,h=f===void 0?!0:f,p=n.tetherOffset,g=p===void 0?0:p,v=rc(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),x=Yr(t.placement),_=bs(t.placement),w=!_,$=d0(x),b=RA($),C=t.modifiersData.popperOffsets,T=t.rects.reference,k=t.rects.popper,O=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,j=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(C){if(o){var A,D=$==="y"?Qn:Jn,R=$==="y"?wr:_r,M=$==="y"?"height":"width",I=C[$],F=I+v[D],U=I-v[R],P=h?-k[M]/2:0,W=_===ms?T[M]:k[M],q=_===ms?-k[M]:-T[M],H=t.elements.arrow,Y=h&&H?u0(H):{width:0,height:0},G=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:_3(),J=G[D],ee=G[R],z=Ul(0,T[M],Y[M]),L=w?T[M]/2-P-z-J-j.mainAxis:W-z-J-j.mainAxis,B=w?-T[M]/2+P+z+ee+j.mainAxis:q+z+ee+j.mainAxis,V=t.elements.arrow&&Kc(t.elements.arrow),N=V?$==="y"?V.clientTop||0:V.clientLeft||0:0,X=(A=S==null?void 0:S[$])!=null?A:0,Q=I+L-X-N,Z=I+B-X,le=Ul(h?jd(F,Q):F,I,h?Jo(U,Z):U);C[$]=le,E[$]=le-I}if(s){var te,re=$==="x"?Qn:Jn,se=$==="x"?wr:_r,fe=C[b],xe=b==="y"?"height":"width",ve=fe+v[re],be=fe-v[se],Te=[Qn,Jn].indexOf(x)!==-1,ce=(te=S==null?void 0:S[b])!=null?te:0,ae=Te?ve:fe-T[xe]-k[xe]-ce+j.altAxis,ye=Te?fe+T[xe]+k[xe]-ce-j.altAxis:be,De=h&&Te?rA(ae,fe,ye):Ul(h?ae:ve,fe,h?ye:be);C[b]=De,E[b]=De-fe}t.modifiersData[r]=E}}const NA={name:"preventOverflow",enabled:!0,phase:"main",fn:jA,requiresIfExists:["offset"]};function DA(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function IA(e){return e===cr(e)||!Gr(e)?f0(e):DA(e)}function PA(e){var t=e.getBoundingClientRect(),n=gs(t.width)/e.offsetWidth||1,r=gs(t.height)/e.offsetHeight||1;return n!==1||r!==1}function LA(e,t,n){n===void 0&&(n=!1);var r=Gr(t),i=Gr(t)&&PA(t),o=$o(t),a=vs(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((po(t)!=="body"||p0(o))&&(s=IA(t)),Gr(t)?(l=vs(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=h0(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function FA(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 l=t.get(s);l&&i(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function BA(e){var t=FA(e);return eA.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function zA(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function WA(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 Hy={placement:"bottom",modifiers:[],strategy:"absolute"};function Vy(){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 UA(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?Hy:i;return function(s,l,c){c===void 0&&(c=o);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Hy,o),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},d=[],f=!1,h={state:u,setOptions:function(x){var _=typeof x=="function"?x(u.options):x;g(),u.options=Object.assign({},o,u.options,_),u.scrollParents={reference:aa(s)?Hl(s):s.contextElement?Hl(s.contextElement):[],popper:Hl(l)};var w=BA(WA([].concat(r,u.options.modifiers)));return u.orderedModifiers=w.filter(function($){return $.enabled}),p(),h.update()},forceUpdate:function(){if(!f){var x=u.elements,_=x.reference,w=x.popper;if(Vy(_,w)){u.rects={reference:LA(_,Kc(w),u.options.strategy==="fixed"),popper:u0(w)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(j){return u.modifiersData[j.name]=Object.assign({},j.data)});for(var $=0;$<u.orderedModifiers.length;$++){if(u.reset===!0){u.reset=!1,$=-1;continue}var b=u.orderedModifiers[$],C=b.fn,T=b.options,k=T===void 0?{}:T,O=b.name;typeof C=="function"&&(u=C({state:u,options:k,name:O,instance:h})||u)}}}},update:zA(function(){return new Promise(function(v){h.forceUpdate(),v(u)})}),destroy:function(){g(),f=!0}};if(!Vy(s,l))return h;h.setOptions(c).then(function(v){!f&&c.onFirstUpdate&&c.onFirstUpdate(v)});function p(){u.orderedModifiers.forEach(function(v){var x=v.name,_=v.options,w=_===void 0?{}:_,$=v.effect;if(typeof $=="function"){var b=$({state:u,name:x,instance:h,options:w}),C=function(){};d.push(b||C)}})}function g(){d.forEach(function(v){return v()}),d=[]}return h}}const HA=UA({defaultModifiers:[TA,AA,dA,hA,OA,$A,NA,sA]}),VA=["enabled","placement","strategy","modifiers"];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}const YA={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},GA={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)}}},KA=[];function E3(e,t,n={}){let{enabled:r=!0,placement:i="bottom",strategy:o="absolute",modifiers:a=KA}=n,s=qA(n,VA);const l=m.useRef(a),c=m.useRef(),u=m.useCallback(()=>{var v;(v=c.current)==null||v.update()},[]),d=m.useCallback(()=>{var v;(v=c.current)==null||v.forceUpdate()},[]),[f,h]=W8(m.useState({placement:i,update:u,forceUpdate:d,attributes:{},styles:{popper:{},arrow:{}}})),p=m.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:v})=>{const x={},_={};Object.keys(v.elements).forEach(w=>{x[w]=v.styles[w],_[w]=v.attributes[w]}),h({state:v,styles:x,attributes:_,update:u,forceUpdate:d,placement:v.placement})}}),[u,d,h]),g=m.useMemo(()=>(Wl(l.current,a)||(l.current=a),l.current),[a]);return m.useEffect(()=>{!c.current||!r||c.current.setOptions({placement:i,strategy:o,modifiers:[...g,p,YA]})},[o,i,p,r,g]),m.useEffect(()=>{if(!(!r||e==null||t==null))return c.current=HA(e,t,Object.assign({},s,{placement:i,strategy:o,modifiers:[...g,GA,p]})),()=>{c.current!=null&&(c.current.destroy(),c.current=void 0,h(v=>Object.assign({},v,{attributes:{},styles:{popper:{}}})))}},[r,e,t]),f}function ic(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}var ZA=process.env.NODE_ENV!=="production",k3=function(){};if(ZA){var XA=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{}};k3=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||XA.apply(null,[t].concat(n))}}var QA=k3;const _a=sn(QA),qy=()=>{};function JA(e){return e.button===0}function eR(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const gd=e=>e&&("current"in e?e.current:e),Yy={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function O3(e,t=qy,{disabled:n,clickTrigger:r="click"}={}){const i=m.useRef(!1),o=m.useRef(!1),a=m.useCallback(c=>{const u=gd(e);_a(!!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||eR(c)||!JA(c)||!!ic(u,c.target)||o.current,o.current=!1},[e]),s=En(c=>{const u=gd(e);u&&ic(u,c.target)?o.current=!0:o.current=!1}),l=En(c=>{i.current||t(c)});m.useEffect(()=>{var c,u;if(n||e==null)return;const d=Ls(gd(e)),f=d.defaultView||window;let h=(c=f.event)!=null?c:(u=f.parent)==null?void 0:u.event,p=null;Yy[r]&&(p=$i(d,Yy[r],s,!0));const g=$i(d,r,a,!0),v=$i(d,r,_=>{if(_===h){h=void 0;return}l(_)});let x=[];return"ontouchstart"in d.documentElement&&(x=[].slice.call(d.body.children).map(_=>$i(_,"mousemove",qy))),()=>{p==null||p(),g(),v(),x.forEach(_=>_())}},[e,n,r,a,s,l])}function tR(e){const t={};return Array.isArray(e)?(e==null||e.forEach(n=>{t[n.name]=n}),t):e||t}function nR(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function M3({enabled:e,enableEvents:t,placement:n,flip:r,offset:i,fixed:o,containerPadding:a,arrowElement:s,popperConfig:l={}}){var c,u,d,f,h;const p=tR(l.modifiers);return Object.assign({},l,{placement:n,enabled:e,strategy:o?"fixed":l.strategy,modifiers:nR(Object.assign({},p,{eventListeners:{enabled:t,options:(c=p.eventListeners)==null?void 0:c.options},preventOverflow:Object.assign({},p.preventOverflow,{options:a?Object.assign({padding:a},(u=p.preventOverflow)==null?void 0:u.options):(d=p.preventOverflow)==null?void 0:d.options}),offset:{options:Object.assign({offset:i},(f=p.offset)==null?void 0:f.options)},arrow:Object.assign({},p.arrow,{enabled:!!s,options:Object.assign({},(h=p.arrow)==null?void 0:h.options,{element:s})}),flip:Object.assign({enabled:!!r},p.flip)}))})}const rR=["children","usePopper"];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}const oR=()=>{};function A3(e={}){const t=m.useContext(Wf),[n,r]=$g(),i=m.useRef(!1),{flip:o,offset:a,rootCloseEvent:s,fixed:l=!1,placement:c,popperConfig:u={},enableEventListeners:d=!0,usePopper:f=!!t}=e,h=(t==null?void 0:t.show)==null?!!e.show:t.show;h&&!i.current&&(i.current=!0);const p=C=>{t==null||t.toggle(!1,C)},{placement:g,setMenu:v,menuElement:x,toggleElement:_}=t||{},w=E3(_,x,M3({placement:c||g||"bottom-start",enabled:f,enableEvents:d??h,offset:a,flip:o,fixed:l,arrowElement:n,popperConfig:u})),$=Object.assign({ref:v||oR,"aria-labelledby":_==null?void 0:_.id},w.attributes.popper,{style:w.styles.popper}),b={show:h,placement:g,hasShown:i.current,toggle:t==null?void 0:t.toggle,popper:f?w:null,arrowProps:f?Object.assign({ref:r},w.attributes.arrow,{style:w.styles.arrow}):{}};return O3(x,p,{clickTrigger:s,disabled:!h}),[$,b]}function R3(e){let{children:t,usePopper:n=!0}=e,r=iR(e,rR);const[i,o]=A3(Object.assign({},r,{usePopper:n}));return y.jsx(y.Fragment,{children:t(i,o)})}R3.displayName="DropdownMenu";const Nd={prefix:String(Math.round(Math.random()*1e10)),current:0},j3=m.createContext(Nd),aR=m.createContext(!1);let sR=!!(typeof window<"u"&&window.document&&window.document.createElement),em=new WeakMap;function lR(e=!1){let t=m.useContext(j3),n=m.useRef(null);if(n.current===null&&!e){var r,i;let o=(i=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(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 cR(e){let t=m.useContext(j3);t===Nd&&!sR&&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=lR(!!e),r=t===Nd&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function uR(e){let t=m.useId(),[n]=m.useState(mR()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Nd.prefix}`;return e||`${r}-${t}`}const dR=typeof m.useId=="function"?uR:cR;function fR(){return!1}function hR(){return!0}function pR(e){return()=>{}}function mR(){return typeof m.useSyncExternalStore=="function"?m.useSyncExternalStore(pR,fR,hR):m.useContext(aR)}const N3=e=>{var t;return((t=e.getAttribute("role"))==null?void 0:t.toLowerCase())==="menu"},Gy=()=>{};function D3(){const e=dR(),{show:t=!1,toggle:n=Gy,setToggle:r,menuElement:i}=m.useContext(Wf)||{},o=m.useCallback(s=>{n(!t,s)},[t,n]),a={id:e,ref:r||Gy,onClick:o,"aria-expanded":!!t};return i&&N3(i)&&(a["aria-haspopup"]=!0),[a,{show:t,toggle:n}]}function I3({children:e}){const[t,n]=D3();return y.jsx(y.Fragment,{children:e(t,n)})}I3.displayName="DropdownToggle";const ys=ie.createContext(null),oc=(e,t=null)=>e!=null?String(e):t||null,Hf=ie.createContext(null);Hf.displayName="NavContext";const gR="data-rr-ui-",vR="rrUi";function zs(e){return`${gR}${e}`}function bR(e){return`${vR}${e}`}const yR=["eventKey","disabled","onClick","active","as"];function xR(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 P3({key:e,href:t,active:n,disabled:r,onClick:i}){const o=m.useContext(ys),a=m.useContext(Hf),{activeKey:s}=a||{},l=oc(e,t),c=n==null&&e!=null?oc(s)===l:n;return[{onClick:En(d=>{r||(i==null||i(d),o&&!d.isPropagationStopped()&&o(l,d))}),"aria-disabled":r||void 0,"aria-selected":c,[zs("dropdown-item")]:""},{isActive:c}]}const L3=ie.forwardRef((e,t)=>{let{eventKey:n,disabled:r,onClick:i,active:o,as:a=i0}=e,s=xR(e,yR);const[l]=P3({key:n,href:s.href,disabled:r,onClick:i,active:o});return y.jsx(a,Object.assign({},s,{ref:t},l))});L3.displayName="DropdownItem";const F3=m.createContext(Bs?window:void 0);F3.Provider;function Vf(){return m.useContext(F3)}function Ky(){const e=v3(),t=m.useRef(null),n=m.useCallback(r=>{t.current=r,e()},[e]);return[t,n]}function Zc({defaultShow:e,show:t,onSelect:n,onToggle:r,itemSelector:i=`* [${zs("dropdown-item")}]`,focusFirstItemOnShow:o,placement:a="bottom-start",children:s}){const l=Vf(),[c,u]=z8(t,e,r),[d,f]=Ky(),h=d.current,[p,g]=Ky(),v=p.current,x=d3(c),_=m.useRef(null),w=m.useRef(!1),$=m.useContext(ys),b=m.useCallback((S,E,A=E==null?void 0:E.type)=>{u(S,{originalEvent:E,source:A})},[u]),C=En((S,E)=>{n==null||n(S,E),b(!1,E,"select"),E.isPropagationStopped()||$==null||$(S,E)}),T=m.useMemo(()=>({toggle:b,placement:a,show:c,menuElement:h,toggleElement:v,setMenu:f,setToggle:g}),[b,a,c,h,v,f,g]);h&&x&&!c&&(w.current=h.contains(h.ownerDocument.activeElement));const k=En(()=>{v&&v.focus&&v.focus()}),O=En(()=>{const S=_.current;let E=o;if(E==null&&(E=d.current&&N3(d.current)?"keyboard":!1),E===!1||E==="keyboard"&&!/^key.+$/.test(S))return;const A=wi(d.current,i)[0];A&&A.focus&&A.focus()});m.useEffect(()=>{c?O():w.current&&(w.current=!1,k())},[c,w,k,O]),m.useEffect(()=>{_.current=null});const j=(S,E)=>{if(!d.current)return null;const A=wi(d.current,i);let D=A.indexOf(S)+E;return D=Math.max(0,Math.min(D,A.length)),A[D]};return $8(m.useCallback(()=>l.document,[l]),"keydown",S=>{var E,A;const{key:D}=S,R=S.target,M=(E=d.current)==null?void 0:E.contains(R),I=(A=p.current)==null?void 0:A.contains(R);if(/input|textarea/i.test(R.tagName)&&(D===" "||D!=="Escape"&&M||D==="Escape"&&R.type==="search")||!M&&!I||D==="Tab"&&(!d.current||!c))return;_.current=S.type;const U={originalEvent:S,source:S.type};switch(D){case"ArrowUp":{const P=j(R,-1);P&&P.focus&&P.focus(),S.preventDefault();return}case"ArrowDown":if(S.preventDefault(),!c)u(!0,U);else{const P=j(R,1);P&&P.focus&&P.focus()}return;case"Tab":e0(R.ownerDocument,"keyup",P=>{var W;(P.key==="Tab"&&!P.target||!((W=d.current)!=null&&W.contains(P.target)))&&u(!1,U)},{once:!0});break;case"Escape":D==="Escape"&&(S.preventDefault(),S.stopPropagation()),u(!1,U);break}}),y.jsx(ys.Provider,{value:C,children:y.jsx(Wf.Provider,{value:T,children:s})})}Zc.displayName="Dropdown";Zc.Menu=R3;Zc.Toggle=I3;Zc.Item=L3;const m0=ie.createContext({});m0.displayName="DropdownContext";const B3=ie.forwardRef(({className:e,bsPrefix:t,as:n="hr",role:r="separator",...i},o)=>(t=dt(t,"dropdown-divider"),y.jsx(n,{ref:o,className:ue(e,t),role:r,...i})));B3.displayName="DropdownDivider";const z3=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",role:r="heading",...i},o)=>(t=dt(t,"dropdown-header"),y.jsx(n,{ref:o,className:ue(e,t),role:r,...i})));z3.displayName="DropdownHeader";const W3=ie.forwardRef(({bsPrefix:e,className:t,eventKey:n,disabled:r=!1,onClick:i,active:o,as:a=o0,...s},l)=>{const c=dt(e,"dropdown-item"),[u,d]=P3({key:n,href:s.href,disabled:r,onClick:i,active:o});return y.jsx(a,{...s,...u,ref:l,className:ue(t,c,d.isActive&&"active",r&&"disabled")})});W3.displayName="DropdownItem";const U3=ie.forwardRef(({className:e,bsPrefix:t,as:n="span",...r},i)=>(t=dt(t,"dropdown-item-text"),y.jsx(n,{ref:i,className:ue(e,t),...r})));U3.displayName="DropdownItemText";const wR=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",_R=typeof document<"u",g0=_R||wR?m.useLayoutEffect:m.useEffect,qf=ie.createContext(null);qf.displayName="InputGroupContext";const H3=ie.createContext(null);H3.displayName="NavbarContext";function V3(e,t){if(process.env.NODE_ENV==="production")return e;const n=m.useCallback(r=>{r==null||!r.isReactComponent||(process.env.NODE_ENV!=="production"?xy(!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`):xy(!1))},[t]);return wa(n,e)}function q3(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",l=n?"right-end":"left-end",c=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:c:t==="start"?d=e?l:s:t==="down-centered"?d="bottom":t==="up-centered"&&(d="top"),d}const Y3=ie.forwardRef(({bsPrefix:e,className:t,align:n,rootCloseEvent:r,flip:i=!0,show:o,renderOnMount:a,as:s="div",popperConfig:l,variant:c,...u},d)=>{let f=!1;const h=m.useContext(H3),p=dt(e,"dropdown-menu"),{align:g,drop:v,isRTL:x}=m.useContext(m0);n=n||g;const _=m.useContext(qf),w=[];if(n)if(typeof n=="object"){const S=Object.keys(n);if(process.env.NODE_ENV!=="production"&&_a(S.length===1,"There should only be 1 breakpoint when passing an object to `align`"),S.length){const E=S[0],A=n[E];f=A==="start",w.push(`${p}-${E}-${A}`)}}else n==="end"&&(f=!0);const $=q3(f,v,x),[b,{hasShown:C,popper:T,show:k,toggle:O}]=A3({flip:i,rootCloseEvent:r,show:o,usePopper:!h&&w.length===0,offset:[0,2],popperConfig:l,placement:$});if(b.ref=wa(V3(d,"DropdownMenu"),b.ref),g0(()=>{k&&(T==null||T.update())},[k]),!C&&!a&&!_)return null;typeof s!="string"&&(b.show=k,b.close=()=>O==null?void 0:O(!1),b.align=n);let j=u.style;return T!=null&&T.placement&&(j={...u.style,...b.style},u["x-placement"]=T.placement),y.jsx(s,{...u,...b,style:j,...(w.length||h)&&{"data-bs-popper":"static"},className:ue(t,p,k&&"show",f&&`${p}-end`,c&&`${p}-${c}`,...w)})});Y3.displayName="DropdownMenu";const G3=ie.forwardRef(({bsPrefix:e,split:t,className:n,childBsPrefix:r,as:i=a0,...o},a)=>{const s=dt(e,"dropdown-toggle"),l=m.useContext(Wf);r!==void 0&&(o.bsPrefix=r);const[c]=D3();return c.ref=wa(c.ref,V3(a,"DropdownToggle")),y.jsx(i,{className:ue(n,s,t&&`${s}-split`,(l==null?void 0:l.show)&&"show"),...c,...o})});G3.displayName="DropdownToggle";const K3=ie.forwardRef((e,t)=>{const{bsPrefix:n,drop:r="down",show:i,className:o,align:a="start",onSelect:s,onToggle:l,focusFirstItemOnShow:c,as:u="div",navbar:d,autoClose:f=!0,...h}=Qv(e,{show:"onToggle"}),p=m.useContext(qf),g=dt(n,"dropdown"),v=Bf(),x=T=>f===!1?T==="click":f==="inside"?T!=="rootClose":f==="outside"?T!=="select":!0,_=fo((T,k)=>{var O;!((O=k.originalEvent)==null||(O=O.target)==null)&&O.classList.contains("dropdown-toggle")&&k.source==="mousedown"||(k.originalEvent.currentTarget===document&&(k.source!=="keydown"||k.originalEvent.key==="Escape")&&(k.source="rootClose"),x(k.source)&&(l==null||l(T,k)))}),$=q3(a==="end",r,v),b=m.useMemo(()=>({align:a,drop:r,isRTL:v}),[a,r,v]),C={down:g,"down-centered":`${g}-center`,up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return y.jsx(m0.Provider,{value:b,children:y.jsx(Zc,{placement:$,show:i,onSelect:s,onToggle:_,focusFirstItemOnShow:c,itemSelector:`.${g}-item:not(.disabled):not(:disabled)`,children:p?h.children:y.jsx(u,{...h,ref:t,className:ue(o,i&&"show",C[r])})})})});K3.displayName="Dropdown";const xs=Object.assign(K3,{Toggle:G3,Menu:Y3,Item:W3,ItemText:U3,Divider:B3,Header:z3}),CR={type:we.string,tooltip:we.bool,as:we.elementType},Yf=ie.forwardRef(({as:e="div",className:t,type:n="valid",tooltip:r=!1,...i},o)=>y.jsx(e,{...i,ref:o,className:ue(t,`${n}-${r?"tooltip":"feedback"}`)}));Yf.displayName="Feedback";Yf.propTypes=CR;const ji=ie.createContext({}),Gf=ie.forwardRef(({id:e,bsPrefix:t,className:n,type:r="checkbox",isValid:i=!1,isInvalid:o=!1,as:a="input",...s},l)=>{const{controlId:c}=m.useContext(ji);return t=dt(t,"form-check-input"),y.jsx(a,{...s,ref:l,type:r,id:e||c,className:ue(n,t,i&&"is-valid",o&&"is-invalid")})});Gf.displayName="FormCheckInput";const Dd=ie.forwardRef(({bsPrefix:e,className:t,htmlFor:n,...r},i)=>{const{controlId:o}=m.useContext(ji);return e=dt(e,"form-check-label"),y.jsx("label",{...r,ref:i,htmlFor:n||o,className:ue(t,e)})});Dd.displayName="FormCheckLabel";const Z3=ie.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:n,inline:r=!1,reverse:i=!1,disabled:o=!1,isValid:a=!1,isInvalid:s=!1,feedbackTooltip:l=!1,feedback:c,feedbackType:u,className:d,style:f,title:h="",type:p="checkbox",label:g,children:v,as:x="input",..._},w)=>{t=dt(t,"form-check"),n=dt(n,"form-switch");const{controlId:$}=m.useContext(ji),b=m.useMemo(()=>({controlId:e||$}),[$,e]),C=!v&&g!=null&&g!==!1||F8(v,Dd),T=y.jsx(Gf,{..._,type:p==="switch"?"checkbox":p,ref:w,isValid:a,isInvalid:s,disabled:o,as:x});return y.jsx(ji.Provider,{value:b,children:y.jsx("div",{style:f,className:ue(d,C&&t,r&&`${t}-inline`,i&&`${t}-reverse`,p==="switch"&&n),children:v||y.jsxs(y.Fragment,{children:[T,C&&y.jsx(Dd,{title:h,children:g}),c&&y.jsx(Yf,{type:u,tooltip:l,children:c})]})})})});Z3.displayName="FormCheck";const Id=Object.assign(Z3,{Input:Gf,Label:Dd}),X3=ie.forwardRef(({bsPrefix:e,type:t,size:n,htmlSize:r,id:i,className:o,isValid:a=!1,isInvalid:s=!1,plaintext:l,readOnly:c,as:u="input",...d},f)=>{const{controlId:h}=m.useContext(ji);return e=dt(e,"form-control"),process.env.NODE_ENV!=="production"&&_a(h==null||!i,"`controlId` is ignored on `<FormControl>` when `id` is specified."),y.jsx(u,{...d,type:t,size:r,ref:f,readOnly:c,id:i||h,className:ue(o,l?`${e}-plaintext`:e,n&&`${e}-${n}`,t==="color"&&`${e}-color`,a&&"is-valid",s&&"is-invalid")})});X3.displayName="FormControl";const Q3=Object.assign(X3,{Feedback:Yf}),J3=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=dt(t,"form-floating"),y.jsx(n,{ref:i,className:ue(e,t),...r})));J3.displayName="FormFloating";const v0=ie.forwardRef(({controlId:e,as:t="div",...n},r)=>{const i=m.useMemo(()=>({controlId:e}),[e]);return y.jsx(ji.Provider,{value:i,children:y.jsx(t,{...n,ref:r})})});v0.displayName="FormGroup";const eC=ie.forwardRef(({as:e="label",bsPrefix:t,column:n=!1,visuallyHidden:r=!1,className:i,htmlFor:o,...a},s)=>{const{controlId:l}=m.useContext(ji);t=dt(t,"form-label");let c="col-form-label";typeof n=="string"&&(c=`${c} ${c}-${n}`);const u=ue(i,t,r&&"visually-hidden",n&&c);return process.env.NODE_ENV!=="production"&&_a(l==null||!o,"`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified."),o=o||l,n?y.jsx(s0,{ref:s,as:"label",className:u,htmlFor:o,...a}):y.jsx(e,{ref:s,className:u,htmlFor:o,...a})});eC.displayName="FormLabel";const tC=ie.forwardRef(({bsPrefix:e,className:t,id:n,...r},i)=>{const{controlId:o}=m.useContext(ji);return e=dt(e,"form-range"),y.jsx("input",{...r,type:"range",ref:i,className:ue(t,e),id:n||o})});tC.displayName="FormRange";const b0=ie.forwardRef(({bsPrefix:e,size:t,htmlSize:n,className:r,isValid:i=!1,isInvalid:o=!1,id:a,...s},l)=>{const{controlId:c}=m.useContext(ji);return e=dt(e,"form-select"),y.jsx("select",{...s,size:n,ref:l,className:ue(r,e,t&&`${e}-${t}`,i&&"is-valid",o&&"is-invalid"),id:a||c})});b0.displayName="FormSelect";const nC=ie.forwardRef(({bsPrefix:e,className:t,as:n="small",muted:r,...i},o)=>(e=dt(e,"form-text"),y.jsx(n,{...i,ref:o,className:ue(t,e,r&&"text-muted")})));nC.displayName="FormText";const rC=ie.forwardRef((e,t)=>y.jsx(Id,{...e,ref:t,type:"switch"}));rC.displayName="Switch";const $R=Object.assign(rC,{Input:Id.Input,Label:Id.Label}),y0=ie.forwardRef(({bsPrefix:e,className:t,children:n,controlId:r,label:i,...o},a)=>(e=dt(e,"form-floating"),y.jsxs(v0,{ref:a,className:ue(t,e),controlId:r,...o,children:[n,y.jsx("label",{htmlFor:r,children:i})]})));y0.displayName="FloatingLabel";const SR={_ref:we.any,validated:we.bool,as:we.elementType},x0=ie.forwardRef(({className:e,validated:t,as:n="form",...r},i)=>y.jsx(n,{...r,ref:i,className:ue(e,t&&"was-validated")}));x0.displayName="Form";x0.propTypes=SR;const si=Object.assign(x0,{Group:v0,Control:Q3,Floating:J3,Check:Id,Switch:$R,Label:eC,Text:nC,Range:tC,Select:b0,FloatingLabel:y0}),Zy=e=>!e||typeof e=="function"?e:t=>{e.current=t};function TR(e,t){const n=Zy(e),r=Zy(t);return i=>{n&&n(i),r&&r(i)}}function Xc(e,t){return m.useMemo(()=>TR(e,t),[e,t])}const iC=ie.createContext(null),ER=["as","active","eventKey"];function kR(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 oC({key:e,onClick:t,active:n,id:r,role:i,disabled:o}){const a=m.useContext(ys),s=m.useContext(Hf),l=m.useContext(iC);let c=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[zs("event-key")]=e,u.id=d||r,c=n==null&&e!=null?s.activeKey===e:n,(c||!(l!=null&&l.unmountOnExit)&&!(l!=null&&l.mountOnEnter))&&(u["aria-controls"]=f)}return u.role==="tab"&&(u["aria-selected"]=c,c||(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:c}]}const aC=ie.forwardRef((e,t)=>{let{as:n=i0,active:r,eventKey:i}=e,o=kR(e,ER);const[a,s]=oC(Object.assign({key:oc(i,o.href),active:r},o));return a[zs("active")]=s.isActive,y.jsx(n,Object.assign({},o,a,{ref:t}))});aC.displayName="NavItem";const OR=["as","onSelect","activeKey","role","onKeyDown"];function MR(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 Xy=()=>{},Qy=zs("event-key"),sC=ie.forwardRef((e,t)=>{let{as:n="div",onSelect:r,activeKey:i,role:o,onKeyDown:a}=e,s=MR(e,OR);const l=v3(),c=m.useRef(!1),u=m.useContext(ys),d=m.useContext(iC);let f,h;d&&(o=o||"tablist",i=d.activeKey,f=d.getControlledId,h=d.getControllerId);const p=m.useRef(null),g=w=>{const $=p.current;if(!$)return null;const b=wi($,`[${Qy}]:not([aria-disabled=true])`),C=$.querySelector("[aria-selected=true]");if(!C||C!==document.activeElement)return null;const T=b.indexOf(C);if(T===-1)return null;let k=T+w;return k>=b.length&&(k=0),k<0&&(k=b.length-1),b[k]},v=(w,$)=>{w!=null&&(r==null||r(w,$),u==null||u(w,$))},x=w=>{if(a==null||a(w),!d)return;let $;switch(w.key){case"ArrowLeft":case"ArrowUp":$=g(-1);break;case"ArrowRight":case"ArrowDown":$=g(1);break;default:return}$&&(w.preventDefault(),v($.dataset[bR("EventKey")]||null,w),c.current=!0,l())};m.useEffect(()=>{if(p.current&&c.current){const w=p.current.querySelector(`[${Qy}][aria-selected=true]`);w==null||w.focus()}c.current=!1});const _=Xc(t,p);return y.jsx(ys.Provider,{value:v,children:y.jsx(Hf.Provider,{value:{role:o,activeKey:oc(i),getControlledId:f||Xy,getControllerId:h||Xy},children:y.jsx(n,Object.assign({},s,{onKeyDown:x,ref:_,role:o}))})})});sC.displayName="Nav";const AR=Object.assign(sC,{Item:aC}),Kf=ie.forwardRef(({bsPrefix:e,active:t,disabled:n,eventKey:r,className:i,variant:o,action:a,as:s,...l},c)=>{e=dt(e,"list-group-item");const[u,d]=oC({key:oc(r,l.href),active:t,...l}),f=fo(p=>{if(n){p.preventDefault(),p.stopPropagation();return}u.onClick(p)});n&&l.tabIndex===void 0&&(l.tabIndex=-1,l["aria-disabled"]=!0);const h=s||(a?l.href?"a":"button":"div");return process.env.NODE_ENV!=="production"&&_a(s||!(!a&&l.href),"`action=false` and `href` should not be used together."),y.jsx(h,{ref:c,...l,...u,onClick:f,className:ue(i,e,d.isActive&&"active",n&&"disabled",o&&`${e}-${o}`,a&&`${e}-action`)})});Kf.displayName="ListGroupItem";const lC=ie.forwardRef((e,t)=>{const{className:n,bsPrefix:r,variant:i,horizontal:o,numbered:a,as:s="div",...l}=Qv(e,{activeKey:"onSelect"}),c=dt(r,"list-group");let u;return o&&(u=o===!0?"horizontal":`horizontal-${o}`),process.env.NODE_ENV!=="production"&&_a(!(o&&i==="flush"),'`variant="flush"` and `horizontal` should not be used together.'),y.jsx(AR,{ref:t,...l,as:s,className:ue(n,c,i&&`${c}-${i}`,u&&`${c}-${u}`,a&&`${c}-numbered`)})});lC.displayName="ListGroup";const cC=Object.assign(lC,{Item:Kf});var zu;function Jy(e){if((!zu&&zu!==0||e)&&Bs){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),zu=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return zu}function RR(){return m.useState(null)}function tm(e){e===void 0&&(e=Ls());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function jR(e){const t=m.useRef(e);return t.current=e,t}function NR(e){const t=jR(e);m.useEffect(()=>()=>t.current(),[])}function DR(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const ex=zs("modal-open");class w0{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:r=!1}={}){this.handleContainerOverflow=n,this.isRTL=r,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return DR(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(co(i,r)||"0",10)+t.scrollBarWidth}px`),i.setAttribute(ex,""),co(i,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(ex),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 nm=(e,t)=>Bs?e==null?(t||Ls()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function kg(e,t){const n=Vf(),[r,i]=m.useState(()=>nm(e,n==null?void 0:n.document));if(!r){const o=nm(e);o&&i(o)}return m.useEffect(()=>{},[t,r]),m.useEffect(()=>{const o=nm(e);o!==r&&i(o)},[e,r]),r}function IR({children:e,in:t,onExited:n,mountOnEnter:r,unmountOnExit:i}){const o=m.useRef(null),a=m.useRef(t),s=En(n);m.useEffect(()=>{t?a.current=!0:s(o.current)},[t,s]);const l=Xc(o,Fs(e)),c=m.cloneElement(e,{ref:l});return t?c:i||!a.current&&r?null:c}const PR=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function LR(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 FR(e){let{onEnter:t,onEntering:n,onEntered:r,onExit:i,onExiting:o,onExited:a,addEndListener:s,children:l}=e,c=LR(e,PR);const u=m.useRef(null),d=Xc(u,Fs(l)),f=$=>b=>{$&&u.current&&$(u.current,b)},h=m.useCallback(f(t),[t]),p=m.useCallback(f(n),[n]),g=m.useCallback(f(r),[r]),v=m.useCallback(f(i),[i]),x=m.useCallback(f(o),[o]),_=m.useCallback(f(a),[a]),w=m.useCallback(f(s),[s]);return Object.assign({},c,{nodeRef:u},t&&{onEnter:h},n&&{onEntering:p},r&&{onEntered:g},i&&{onExit:v},o&&{onExiting:x},a&&{onExited:_},s&&{addEndListener:w},{children:typeof l=="function"?($,b)=>l($,Object.assign({},b,{ref:d})):m.cloneElement(l,{ref:d})})}const BR=["component"];function zR(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 WR=ie.forwardRef((e,t)=>{let{component:n}=e,r=zR(e,BR);const i=FR(r);return y.jsx(n,Object.assign({ref:t},i))});function UR({in:e,onTransition:t}){const n=m.useRef(null),r=m.useRef(!0),i=En(t);return Ny(()=>{if(!n.current)return;let o=!1;return i({in:e,element:n.current,initial:r.current,isStale:()=>o}),()=>{o=!0}},[e,i]),Ny(()=>(r.current=!1,()=>{r.current=!0}),[]),n}function HR({children:e,in:t,onExited:n,onEntered:r,transition:i}){const[o,a]=m.useState(!t);t&&o&&a(!1);const s=UR({in:!!t,onTransition:c=>{const u=()=>{c.isStale()||(c.in?r==null||r(c.element,c.initial):(a(!0),n==null||n(c.element)))};Promise.resolve(i(c)).then(u,d=>{throw c.in||a(!0),d})}}),l=Xc(s,Fs(e));return o&&!t?null:m.cloneElement(e,{ref:l})}function Og(e,t,n){return e?y.jsx(WR,Object.assign({},n,{component:e})):t?y.jsx(HR,Object.assign({},n,{transition:t})):y.jsx(IR,Object.assign({},n))}const VR=["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 qR(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 rm;function YR(e){return rm||(rm=new w0({ownerDocument:e==null?void 0:e.document})),rm}function GR(e){const t=Vf(),n=e||YR(t),r=m.useRef({dialog:null,backdrop:null});return Object.assign(r.current,{add:()=>n.add(r.current),remove:()=>n.remove(r.current),isTopModal:()=>n.isTopModal(r.current),setDialogRef:m.useCallback(i=>{r.current.dialog=i},[]),setBackdropRef:m.useCallback(i=>{r.current.backdrop=i},[])})}const uC=m.forwardRef((e,t)=>{let{show:n=!1,role:r="dialog",className:i,style:o,children:a,backdrop:s=!0,keyboard:l=!0,onBackdropClick:c,onEscapeKeyDown:u,transition:d,runTransition:f,backdropTransition:h,runBackdropTransition:p,autoFocus:g=!0,enforceFocus:v=!0,restoreFocus:x=!0,restoreFocusOptions:_,renderDialog:w,renderBackdrop:$=Z=>y.jsx("div",Object.assign({},Z)),manager:b,container:C,onShow:T,onHide:k=()=>{},onExit:O,onExited:j,onExiting:S,onEnter:E,onEntering:A,onEntered:D}=e,R=qR(e,VR);const M=Vf(),I=kg(C),F=GR(b),U=u3(),P=d3(n),[W,q]=m.useState(!n),H=m.useRef(null);m.useImperativeHandle(t,()=>F,[F]),Bs&&!P&&n&&(H.current=tm(M==null?void 0:M.document)),n&&W&&q(!1);const Y=En(()=>{if(F.add(),B.current=$i(document,"keydown",z),L.current=$i(document,"focus",()=>setTimeout(J),!0),T&&T(),g){var Z,le;const te=tm((Z=(le=F.dialog)==null?void 0:le.ownerDocument)!=null?Z:M==null?void 0:M.document);F.dialog&&te&&!ic(F.dialog,te)&&(H.current=te,F.dialog.focus())}}),G=En(()=>{if(F.remove(),B.current==null||B.current(),L.current==null||L.current(),x){var Z;(Z=H.current)==null||Z.focus==null||Z.focus(_),H.current=null}});m.useEffect(()=>{!n||!I||Y()},[n,I,Y]),m.useEffect(()=>{W&&G()},[W,G]),NR(()=>{G()});const J=En(()=>{if(!v||!U()||!F.isTopModal())return;const Z=tm(M==null?void 0:M.document);F.dialog&&Z&&!ic(F.dialog,Z)&&F.dialog.focus()}),ee=En(Z=>{Z.target===Z.currentTarget&&(c==null||c(Z),s===!0&&k())}),z=En(Z=>{l&&i3(Z)&&F.isTopModal()&&(u==null||u(Z),Z.defaultPrevented||k())}),L=m.useRef(),B=m.useRef(),V=(...Z)=>{q(!0),j==null||j(...Z)};if(!I)return null;const N=Object.assign({role:r,ref:F.setDialogRef,"aria-modal":r==="dialog"?!0:void 0},R,{style:o,className:i,tabIndex:-1});let X=w?w(N):y.jsx("div",Object.assign({},N,{children:ie.cloneElement(a,{role:"document"})}));X=Og(d,f,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:O,onExiting:S,onExited:V,onEnter:E,onEntering:A,onEntered:D,children:X});let Q=null;return s&&(Q=$({ref:F.setBackdropRef,onClick:ee}),Q=Og(h,p,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:Q})),y.jsx(y.Fragment,{children:mn.createPortal(y.jsxs(y.Fragment,{children:[Q,X]}),I)})});uC.displayName="Modal";const dC=Object.assign(uC,{Manager:w0});function Mg(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function KR(e,t){e.classList?e.classList.add(t):Mg(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function tx(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function ZR(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=tx(e.className,t):e.setAttribute("class",tx(e.className&&e.className.baseVal||"",t))}const La={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class fC extends w0{adjustAndStore(t,n,r){const i=n.style[t];n.dataset[t]=i,co(n,{[t]:`${parseFloat(co(n,t))+r}px`})}restore(t,n){const r=n.dataset[t];r!==void 0&&(delete n.dataset[t],co(n,{[t]:r}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(KR(n,"modal-open"),!t.scrollBarWidth)return;const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";wi(n,La.FIXED_CONTENT).forEach(o=>this.adjustAndStore(r,o,t.scrollBarWidth)),wi(n,La.STICKY_CONTENT).forEach(o=>this.adjustAndStore(i,o,-t.scrollBarWidth)),wi(n,La.NAVBAR_TOGGLER).forEach(o=>this.adjustAndStore(i,o,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();ZR(n,"modal-open");const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";wi(n,La.FIXED_CONTENT).forEach(o=>this.restore(r,o)),wi(n,La.STICKY_CONTENT).forEach(o=>this.restore(i,o)),wi(n,La.NAVBAR_TOGGLER).forEach(o=>this.restore(i,o))}}let im;function hC(e){return im||(im=new fC(e)),im}const pC=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=dt(t,"modal-body"),y.jsx(n,{ref:i,className:ue(e,t),...r})));pC.displayName="ModalBody";const _0=ie.createContext({onHide(){}}),C0=ie.forwardRef(({bsPrefix:e,className:t,contentClassName:n,centered:r,size:i,fullscreen:o,children:a,scrollable:s,...l},c)=>{e=dt(e,"modal");const u=`${e}-dialog`,d=typeof o=="string"?`${e}-fullscreen-${o}`:`${e}-fullscreen`;return y.jsx("div",{...l,ref:c,className:ue(u,t,i&&`${e}-${i}`,r&&`${u}-centered`,s&&`${u}-scrollable`,o&&d),children:y.jsx("div",{className:ue(`${e}-content`,n),children:a})})});C0.displayName="ModalDialog";const mC=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=dt(t,"modal-footer"),y.jsx(n,{ref:i,className:ue(e,t),...r})));mC.displayName="ModalFooter";const $0=ie.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:r,children:i,...o},a)=>{const s=m.useContext(_0),l=fo(()=>{s==null||s.onHide(),r==null||r()});return y.jsxs("div",{ref:a,...o,children:[i,n&&y.jsx(zf,{"aria-label":e,variant:t,onClick:l})]})});$0.displayName="AbstractModalHeader";const gC=ie.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...i},o)=>(e=dt(e,"modal-header"),y.jsx($0,{ref:o,...i,className:ue(t,e),closeLabel:n,closeButton:r})));gC.displayName="ModalHeader";const XR=n0("h4"),vC=ie.forwardRef(({className:e,bsPrefix:t,as:n=XR,...r},i)=>(t=dt(t,"modal-title"),y.jsx(n,{ref:i,className:ue(e,t),...r})));vC.displayName="ModalTitle";function QR(e){return y.jsx(ho,{...e,timeout:null})}function JR(e){return y.jsx(ho,{...e,timeout:null})}const bC=ie.forwardRef(({bsPrefix:e,className:t,style:n,dialogClassName:r,contentClassName:i,children:o,dialogAs:a=C0,"data-bs-theme":s,"aria-labelledby":l,"aria-describedby":c,"aria-label":u,show:d=!1,animation:f=!0,backdrop:h=!0,keyboard:p=!0,onEscapeKeyDown:g,onShow:v,onHide:x,container:_,autoFocus:w=!0,enforceFocus:$=!0,restoreFocus:b=!0,restoreFocusOptions:C,onEntered:T,onExit:k,onExiting:O,onEnter:j,onEntering:S,onExited:E,backdropClassName:A,manager:D,...R},M)=>{const[I,F]=m.useState({}),[U,P]=m.useState(!1),W=m.useRef(!1),q=m.useRef(!1),H=m.useRef(null),[Y,G]=RR(),J=wa(M,G),ee=fo(x),z=Bf();e=dt(e,"modal");const L=m.useMemo(()=>({onHide:ee}),[ee]);function B(){return D||hC({isRTL:z})}function V(ae){if(!Bs)return;const ye=B().getScrollbarWidth()>0,De=ae.scrollHeight>Ls(ae).documentElement.clientHeight;F({paddingRight:ye&&!De?Jy():void 0,paddingLeft:!ye&&De?Jy():void 0})}const N=fo(()=>{Y&&V(Y.dialog)});p3(()=>{Cg(window,"resize",N),H.current==null||H.current()});const X=()=>{W.current=!0},Q=ae=>{W.current&&Y&&ae.target===Y.dialog&&(q.current=!0),W.current=!1},Z=()=>{P(!0),H.current=o3(Y.dialog,()=>{P(!1)})},le=ae=>{ae.target===ae.currentTarget&&Z()},te=ae=>{if(h==="static"){le(ae);return}if(q.current||ae.target!==ae.currentTarget){q.current=!1;return}x==null||x()},re=ae=>{p?g==null||g(ae):(ae.preventDefault(),h==="static"&&Z())},se=(ae,ye)=>{ae&&V(ae),j==null||j(ae,ye)},fe=ae=>{H.current==null||H.current(),k==null||k(ae)},xe=(ae,ye)=>{S==null||S(ae,ye),e0(window,"resize",N)},ve=ae=>{ae&&(ae.style.display=""),E==null||E(ae),Cg(window,"resize",N)},be=m.useCallback(ae=>y.jsx("div",{...ae,className:ue(`${e}-backdrop`,A,!f&&"show")}),[f,A,e]),Te={...n,...I};Te.display="block";const ce=ae=>y.jsx("div",{role:"dialog",...ae,style:Te,className:ue(t,e,U&&`${e}-static`,!f&&"show"),onClick:h?te:void 0,onMouseUp:Q,"data-bs-theme":s,"aria-label":u,"aria-labelledby":l,"aria-describedby":c,children:y.jsx(a,{...R,onMouseDown:X,className:r,contentClassName:i,children:o})});return y.jsx(_0.Provider,{value:L,children:y.jsx(dC,{show:d,ref:J,backdrop:h,container:_,keyboard:!0,autoFocus:w,enforceFocus:$,restoreFocus:b,restoreFocusOptions:C,onEscapeKeyDown:re,onShow:v,onHide:x,onEnter:se,onEntering:xe,onEntered:T,onExit:fe,onExiting:O,onExited:ve,manager:B(),transition:f?QR:void 0,backdropTransition:f?JR:void 0,renderBackdrop:be,renderDialog:ce})})});bC.displayName="Modal";const Xn=Object.assign(bC,{Body:pC,Header:gC,Title:vC,Footer:mC,Dialog:C0,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),e7=()=>{};function t7(e,t,{disabled:n,clickTrigger:r}={}){const i=t||e7;O3(e,i,{disabled:n,clickTrigger:r});const o=En(a=>{i3(a)&&i(a)});m.useEffect(()=>{if(n||e==null)return;const a=Ls(gd(e));let s=(a.defaultView||window).event;const l=$i(a,"keyup",c=>{if(c===s){s=void 0;return}o(c)});return()=>{l()}},[e,n,o])}const yC=ie.forwardRef((e,t)=>{const{flip:n,offset:r,placement:i,containerPadding:o,popperConfig:a={},transition:s,runTransition:l}=e,[c,u]=$g(),[d,f]=$g(),h=Xc(u,t),p=kg(e.container),g=kg(e.target),[v,x]=m.useState(!e.show),_=E3(g,c,M3({placement:i,enableEvents:!!e.show,containerPadding:o||5,flip:n,offset:r,arrowElement:d,popperConfig:a}));e.show&&v&&x(!1);const w=(...S)=>{x(!0),e.onExited&&e.onExited(...S)},$=e.show||!v;if(t7(c,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!$)return null;const{onExit:b,onExiting:C,onEnter:T,onEntering:k,onEntered:O}=e;let j=e.children(Object.assign({},_.attributes.popper,{style:_.styles.popper,ref:h}),{popper:_,placement:i,show:!!e.show,arrowProps:Object.assign({},_.attributes.arrow,{style:_.styles.arrow,ref:f})});return j=Og(s,l,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:j,onExit:b,onExiting:C,onExited:w,onEnter:T,onEntering:k,onEntered:O}),p?mn.createPortal(j,p):null});yC.displayName="Overlay";const xC=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=dt(t,"popover-header"),y.jsx(n,{ref:i,className:ue(e,t),...r})));xC.displayName="PopoverHeader";const S0=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=dt(t,"popover-body"),y.jsx(n,{ref:i,className:ue(e,t),...r})));S0.displayName="PopoverBody";function wC(e,t){let n=e;return e==="left"?n=t?"end":"start":e==="right"&&(n=t?"start":"end"),n}function _C(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const CC=ie.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:i,body:o,arrowProps:a,hasDoneInitialMeasure:s,popper:l,show:c,...u},d)=>{const f=dt(e,"popover"),h=Bf(),[p]=(t==null?void 0:t.split("-"))||[],g=wC(p,h);let v=r;return c&&!s&&(v={...r,..._C(l==null?void 0:l.strategy)}),y.jsxs("div",{ref:d,role:"tooltip",style:v,"x-placement":p,className:ue(n,f,p&&`bs-popover-${g}`),...u,children:[y.jsx("div",{className:"popover-arrow",...a}),o?y.jsx(S0,{children:i}):i]})});CC.displayName="Popover";const vd=Object.assign(CC,{Header:xC,Body:S0,POPPER_OFFSET:[0,8]}),$C=ie.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:i,arrowProps:o,hasDoneInitialMeasure:a,popper:s,show:l,...c},u)=>{e=dt(e,"tooltip");const d=Bf(),[f]=(t==null?void 0:t.split("-"))||[],h=wC(f,d);let p=r;return l&&!a&&(p={...r,..._C(s==null?void 0:s.strategy)}),y.jsxs("div",{ref:u,style:p,role:"tooltip","x-placement":f,className:ue(n,e,`bs-tooltip-${h}`),...c,children:[y.jsx("div",{className:"tooltip-arrow",...o}),y.jsx("div",{className:`${e}-inner`,children:i})]})});$C.displayName="Tooltip";const SC=Object.assign($C,{TOOLTIP_OFFSET:[0,6]});function n7(e){const t=m.useRef(null),n=dt(void 0,"popover"),r=dt(void 0,"tooltip"),i=m.useMemo(()=>({name:"offset",options:{offset:()=>{if(e)return e;if(t.current){if(Mg(t.current,n))return vd.POPPER_OFFSET;if(Mg(t.current,r))return SC.TOOLTIP_OFFSET}return[0,0]}}}),[e,n,r]);return[t,[i]]}function r7(e,t){const{ref:n}=e,{ref:r}=t;e.ref=n.__wrapped||(n.__wrapped=i=>n(Rd(i))),t.ref=r.__wrapped||(r.__wrapped=i=>r(Rd(i)))}const TC=ie.forwardRef(({children:e,transition:t=ho,popperConfig:n={},rootClose:r=!1,placement:i="top",show:o=!1,...a},s)=>{const l=m.useRef({}),[c,u]=m.useState(null),[d,f]=n7(a.offset),h=wa(s,d),p=t===!0?ho:t||void 0,g=fo(v=>{u(v),n==null||n.onFirstUpdate==null||n.onFirstUpdate(v)});return g0(()=>{c&&a.target&&(l.current.scheduleUpdate==null||l.current.scheduleUpdate())},[c,a.target]),m.useEffect(()=>{o||u(null)},[o]),y.jsx(yC,{...a,ref:h,popperConfig:{...n,modifiers:f.concat(n.modifiers||[]),onFirstUpdate:g},transition:p,rootClose:r,placement:i,show:o,children:(v,{arrowProps:x,popper:_,show:w})=>{var $;r7(v,x);const b=_==null?void 0:_.placement,C=Object.assign(l.current,{state:_==null?void 0:_.state,scheduleUpdate:_==null?void 0:_.update,placement:b,outOfBoundaries:(_==null||($=_.state)==null||($=$.modifiersData.hide)==null?void 0:$.isReferenceHidden)||!1,strategy:n.strategy}),T=!!c;return typeof e=="function"?e({...v,placement:b,show:w,...!t&&w&&{className:"show"},popper:C,arrowProps:x,hasDoneInitialMeasure:T}):ie.cloneElement(e,{...v,placement:b,arrowProps:x,popper:C,hasDoneInitialMeasure:T,className:ue(e.props.className,!t&&w&&"show"),style:{...e.props.style,...v.style}})}})});TC.displayName="Overlay";function i7(e){return e&&typeof e=="object"?e:{show:e,hide:e}}function nx(e,t,n){const[r]=t,i=r.currentTarget,o=r.relatedTarget||r.nativeEvent[n];(!o||o!==i)&&!ic(i,o)&&e(...t)}we.oneOf(["click","hover","focus"]);const EC=({trigger:e=["hover","focus"],overlay:t,children:n,popperConfig:r={},show:i,defaultShow:o=!1,onToggle:a,delay:s,placement:l,flip:c=l&&l.indexOf("auto")!==-1,...u})=>{const d=m.useRef(null),f=wa(d,Fs(n)),h=L8(),p=m.useRef(""),[g,v]=Q4(i,o,a),x=i7(s),{onFocus:_,onBlur:w,onClick:$}=typeof n!="function"?ie.Children.only(n).props:{},b=R=>{f(Rd(R))},C=m.useCallback(()=>{if(h.clear(),p.current="show",!x.show){v(!0);return}h.set(()=>{p.current==="show"&&v(!0)},x.show)},[x.show,v,h]),T=m.useCallback(()=>{if(h.clear(),p.current="hide",!x.hide){v(!1);return}h.set(()=>{p.current==="hide"&&v(!1)},x.hide)},[x.hide,v,h]),k=m.useCallback((...R)=>{C(),_==null||_(...R)},[C,_]),O=m.useCallback((...R)=>{T(),w==null||w(...R)},[T,w]),j=m.useCallback((...R)=>{v(!g),$==null||$(...R)},[$,v,g]),S=m.useCallback((...R)=>{nx(C,R,"fromElement")},[C]),E=m.useCallback((...R)=>{nx(T,R,"toElement")},[T]),A=e==null?[]:[].concat(e),D={ref:b};return A.indexOf("click")!==-1&&(D.onClick=j),A.indexOf("focus")!==-1&&(D.onFocus=k,D.onBlur=O),A.indexOf("hover")!==-1&&(process.env.NODE_ENV!=="production"&&_a(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.'),D.onMouseOver=S,D.onMouseOut=E),y.jsxs(y.Fragment,{children:[typeof n=="function"?n(D):m.cloneElement(n,D),y.jsx(TC,{...u,show:g,onHide:T,flip:c,placement:l,popperConfig:r,target:d.current,children:t})]})},T0=ie.forwardRef(({bsPrefix:e,variant:t,animation:n="border",size:r,as:i="div",className:o,...a},s)=>{e=dt(e,"spinner");const l=`${e}-${n}`;return y.jsx(i,{ref:s,...a,className:ue(o,l,r&&`${l}-${r}`,t&&`text-${t}`)})});T0.displayName="Spinner";var kC={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},rx=m.createContext&&m.createContext(kC),o7=["attr","size","title"];function a7(e,t){if(e==null)return{};var n=s7(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 s7(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 Pd(){return Pd=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},Pd.apply(this,arguments)}function ix(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 Ld(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ix(Object(n),!0).forEach(function(r){l7(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ix(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function l7(e,t,n){return t=c7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c7(e){var t=u7(e,"string");return typeof t=="symbol"?t:t+""}function u7(e,t){if(typeof e!="object"||!e)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(t==="string"?String:Number)(e)}function OC(e){return e&&e.map((t,n)=>m.createElement(t.tag,Ld({key:n},t.attr),OC(t.child)))}function ft(e){return t=>m.createElement(d7,Pd({attr:Ld({},e.attr)},t),OC(e.child))}function d7(e){var t=n=>{var{attr:r,size:i,title:o}=e,a=a7(e,o7),s=i||n.size||"1em",l;return n.className&&(l=n.className),e.className&&(l=(l?l+" ":"")+e.className),m.createElement("svg",Pd({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,a,{className:l,style:Ld(Ld({color:e.color||n.color},n.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),o&&m.createElement("title",null,o),e.children)};return rx!==void 0?m.createElement(rx.Consumer,null,n=>t(n)):t(kC)}function f7(e){return ft({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 Qc(e){return ft({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 h7(e){return ft({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 p7(e){return ft({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 m7(e){return ft({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 g7(e){return ft({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 v7(e){return ft({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 b7(e){return ft({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 MC(e){return ft({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 y7(e){return ft({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 x7(e){return ft({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 w7(e){return ft({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 _7(e){return ft({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 C7(e){return ft({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 $7(e){return ft({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 S7(e){return ft({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 T7(e){return ft({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 E7(e){return ft({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 k7(e){return ft({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 O7(e){return ft({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 M7(e){return ft({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 A7(e){return ft({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 R7(e){return ft({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 j7(e){return ft({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 N7(e){return ft({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 AC(e){return ft({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 D7(e){return ft({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 RC(e){return ft({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 I7(e){return ft({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 P7(e){return ft({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 L7(e){return ft({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 ln=m.createContext({cookieDomain:"",axiosOptions:{},language:"",localizationContext:{},texts:{},ProjectIconComponent:{},chartColorPalette:void 0}),jC=m.createContext({show:!1,text:"",textSm:!1,showConfirm:(e,t)=>{},hideConfirm:()=>{}}),NC=m.createContext({isShown:!1,text:"",hidePrompt:()=>{},showPrompt:()=>{},resolveRef:{current:()=>{}},options:{input:"textarea",type:"text"},setOptions:()=>{}}),DC=()=>{const e=Re.c(12),{isShown:t,text:n,showPrompt:r,hidePrompt:i,resolveRef:o,setOptions:a}=m.useContext(NC);let s;e[0]!==i||e[1]!==o?(s=f=>{i(),o.current(f)},e[0]=i,e[1]=o,e[2]=s):s=e[2];const l=s;let c;e[3]!==o||e[4]!==a||e[5]!==r?(c=async(f,h)=>(a(p=>({...p,...h})),r(f),new Promise(p=>{o.current=p})),e[3]=o,e[4]=a,e[5]=r,e[6]=c):c=e[6];const u=c;let d;return e[7]!==t||e[8]!==l||e[9]!==u||e[10]!==n?(d={isShown:t,text:n,prompt:u,onFinish:l},e[7]=t,e[8]=l,e[9]=u,e[10]=n,e[11]=d):d=e[11],d};let F7={data:""},B7=e=>{if(typeof window=="object"){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||F7},z7=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,W7=/\/\*[^]*?\*\/| +/g,ox=/\n+/g,no=(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"?no(a,o):o+"{"+no(a,o[1]=="k"?"":t)+"}":typeof a=="object"?r+=no(a,t?t.replace(/([^,])+/g,s=>o.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,s):s?s+" "+l:l)):o):a!=null&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=no.p?no.p(o,a):o+":"+a+";")}return n+(t&&i?t+"{"+i+"}":i)+r},pi={},IC=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+IC(e[n]);return t}return e},U7=(e,t,n,r,i)=>{let o=IC(e),a=pi[o]||(pi[o]=(l=>{let c=0,u=11;for(;c<l.length;)u=101*u+l.charCodeAt(c++)>>>0;return"go"+u})(o));if(!pi[a]){let l=o!==e?e:(c=>{let u,d,f=[{}];for(;u=z7.exec(c.replace(W7,""));)u[4]?f.shift():u[3]?(d=u[3].replace(ox," ").trim(),f.unshift(f[0][d]=f[0][d]||{})):f[0][u[1]]=u[2].replace(ox," ").trim();return f[0]})(e);pi[a]=no(i?{["@keyframes "+a]:l}:l,n?"":"."+a)}let s=n&&pi.g?pi.g:null;return n&&(pi.g=pi[a]),((l,c,u,d)=>{d?c.data=c.data.replace(d,l):c.data.indexOf(l)===-1&&(c.data=u?l+c.data:c.data+l)})(pi[a],t,r,s),a},H7=(e,t,n)=>e.reduce((r,i,o)=>{let a=t[o];if(a&&a.call){let s=a(n),l=s&&s.props&&s.props.className||/^go/.test(s)&&s;a=l?"."+l:s&&typeof s=="object"?s.props?"":no(s,""):s===!1?"":s}return r+i+(a??"")},"");function Zf(e){let t=this||{},n=e.call?e(t.p):e;return U7(n.unshift?n.raw?H7(n,[].slice.call(arguments,1),t.p):n.reduce((r,i)=>Object.assign(r,i&&i.call?i(t.p):i),{}):n,B7(t.target),t.g,t.o,t.k)}let PC,Ag,Rg;Zf.bind({g:1});let Ni=Zf.bind({k:1});function V7(e,t,n,r){no.p=t,PC=e,Ag=n,Rg=r}function So(e,t){let n=this||{};return function(){let r=arguments;function i(o,a){let s=Object.assign({},o),l=s.className||i.className;n.p=Object.assign({theme:Ag&&Ag()},s),n.o=/ *go\d+/.test(l),s.className=Zf.apply(n,r)+(l?" "+l:"");let c=e;return e[0]&&(c=s.as||e,delete s.as),Rg&&c[0]&&Rg(s),PC(c,s)}return i}}var q7=e=>typeof e=="function",Fd=(e,t)=>q7(e)?e(t):e,Y7=(()=>{let e=0;return()=>(++e).toString()})(),LC=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),G7=20,E0="default",FC=(e,t)=>{let{toastLimit:n}=e.settings;switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,n)};case 1:return{...e,toasts:e.toasts.map(a=>a.id===t.toast.id?{...a,...t.toast}:a)};case 2:let{toast:r}=t;return FC(e,{type:e.toasts.find(a=>a.id===r.id)?1:0,toast:r});case 3:let{toastId:i}=t;return{...e,toasts:e.toasts.map(a=>a.id===i||i===void 0?{...a,dismissed:!0,visible:!1}:a)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(a=>a.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let o=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(a=>({...a,pauseDuration:a.pauseDuration+o}))}}},bd=[],BC={toasts:[],pausedAt:void 0,settings:{toastLimit:G7}},qr={},zC=(e,t=E0)=>{qr[t]=FC(qr[t]||BC,e),bd.forEach(([n,r])=>{n===t&&r(qr[t])})},WC=e=>Object.keys(qr).forEach(t=>zC(e,t)),K7=e=>Object.keys(qr).find(t=>qr[t].toasts.some(n=>n.id===e)),Xf=(e=E0)=>t=>{zC(t,e)},Z7={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},X7=(e={},t=E0)=>{let[n,r]=m.useState(qr[t]||BC),i=m.useRef(qr[t]);m.useEffect(()=>(i.current!==qr[t]&&r(qr[t]),bd.push([t,r]),()=>{let a=bd.findIndex(([s])=>s===t);a>-1&&bd.splice(a,1)}),[t]);let o=n.toasts.map(a=>{var s,l,c;return{...e,...e[a.type],...a,removeDelay:a.removeDelay||((s=e[a.type])==null?void 0:s.removeDelay)||(e==null?void 0:e.removeDelay),duration:a.duration||((l=e[a.type])==null?void 0:l.duration)||(e==null?void 0:e.duration)||Z7[a.type],style:{...e.style,...(c=e[a.type])==null?void 0:c.style,...a.style}}});return{...n,toasts:o}},Q7=(e,t="blank",n)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(n==null?void 0:n.id)||Y7()}),Jc=e=>(t,n)=>{let r=Q7(t,e,n);return Xf(r.toasterId||K7(r.id))({type:2,toast:r}),r.id},yn=(e,t)=>Jc("blank")(e,t);yn.error=Jc("error");yn.success=Jc("success");yn.loading=Jc("loading");yn.custom=Jc("custom");yn.dismiss=(e,t)=>{let n={type:3,toastId:e};t?Xf(t)(n):WC(n)};yn.dismissAll=e=>yn.dismiss(void 0,e);yn.remove=(e,t)=>{let n={type:4,toastId:e};t?Xf(t)(n):WC(n)};yn.removeAll=e=>yn.remove(void 0,e);yn.promise=(e,t,n)=>{let r=yn.loading(t.loading,{...n,...n==null?void 0:n.loading});return typeof e=="function"&&(e=e()),e.then(i=>{let o=t.success?Fd(t.success,i):void 0;return o?yn.success(o,{id:r,...n,...n==null?void 0:n.success}):yn.dismiss(r),i}).catch(i=>{let o=t.error?Fd(t.error,i):void 0;o?yn.error(o,{id:r,...n,...n==null?void 0:n.error}):yn.dismiss(r)}),e};var J7=1e3,e9=(e,t="default")=>{let{toasts:n,pausedAt:r}=X7(e,t),i=m.useRef(new Map).current,o=m.useCallback((d,f=J7)=>{if(i.has(d))return;let h=setTimeout(()=>{i.delete(d),a({type:4,toastId:d})},f);i.set(d,h)},[]);m.useEffect(()=>{if(r)return;let d=Date.now(),f=n.map(h=>{if(h.duration===1/0)return;let p=(h.duration||0)+h.pauseDuration-(d-h.createdAt);if(p<0){h.visible&&yn.dismiss(h.id);return}return setTimeout(()=>yn.dismiss(h.id,t),p)});return()=>{f.forEach(h=>h&&clearTimeout(h))}},[n,r,t]);let a=m.useCallback(Xf(t),[t]),s=m.useCallback(()=>{a({type:5,time:Date.now()})},[a]),l=m.useCallback((d,f)=>{a({type:1,toast:{id:d,height:f}})},[a]),c=m.useCallback(()=>{r&&a({type:6,time:Date.now()})},[r,a]),u=m.useCallback((d,f)=>{let{reverseOrder:h=!1,gutter:p=8,defaultPosition:g}=f||{},v=n.filter(w=>(w.position||g)===(d.position||g)&&w.height),x=v.findIndex(w=>w.id===d.id),_=v.filter((w,$)=>$<x&&w.visible).length;return v.filter(w=>w.visible).slice(...h?[_+1]:[0,_]).reduce((w,$)=>w+($.height||0)+p,0)},[n]);return m.useEffect(()=>{n.forEach(d=>{if(d.dismissed)o(d.id,d.removeDelay);else{let f=i.get(d.id);f&&(clearTimeout(f),i.delete(d.id))}})},[n,o]),{toasts:n,handlers:{updateHeight:l,startPause:s,endPause:c,calculateOffset:u}}},t9=Ni`
45
- from {
46
- transform: scale(0) rotate(45deg);
47
- opacity: 0;
48
- }
49
- to {
50
- transform: scale(1) rotate(45deg);
51
- opacity: 1;
52
- }`,n9=Ni`
53
- from {
54
- transform: scale(0);
55
- opacity: 0;
56
- }
57
- to {
58
- transform: scale(1);
59
- opacity: 1;
60
- }`,r9=Ni`
61
- from {
62
- transform: scale(0) rotate(90deg);
63
- opacity: 0;
64
- }
65
- to {
66
- transform: scale(1) rotate(90deg);
67
- opacity: 1;
68
- }`,i9=So("div")`
69
- width: 20px;
70
- opacity: 0;
71
- height: 20px;
72
- border-radius: 10px;
73
- background: ${e=>e.primary||"#ff4b4b"};
74
- position: relative;
75
- transform: rotate(45deg);
76
-
77
- animation: ${t9} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
78
- forwards;
79
- animation-delay: 100ms;
80
-
81
- &:after,
82
- &:before {
83
- content: '';
84
- animation: ${n9} 0.15s ease-out forwards;
85
- animation-delay: 150ms;
86
- position: absolute;
87
- border-radius: 3px;
88
- opacity: 0;
89
- background: ${e=>e.secondary||"#fff"};
90
- bottom: 9px;
91
- left: 4px;
92
- height: 2px;
93
- width: 12px;
94
- }
95
-
96
- &:before {
97
- animation: ${r9} 0.15s ease-out forwards;
98
- animation-delay: 180ms;
99
- transform: rotate(90deg);
100
- }
101
- `,o9=Ni`
102
- from {
103
- transform: rotate(0deg);
104
- }
105
- to {
106
- transform: rotate(360deg);
107
- }
108
- `,a9=So("div")`
109
- width: 12px;
110
- height: 12px;
111
- box-sizing: border-box;
112
- border: 2px solid;
113
- border-radius: 100%;
114
- border-color: ${e=>e.secondary||"#e0e0e0"};
115
- border-right-color: ${e=>e.primary||"#616161"};
116
- animation: ${o9} 1s linear infinite;
117
- `,s9=Ni`
118
- from {
119
- transform: scale(0) rotate(45deg);
120
- opacity: 0;
121
- }
122
- to {
123
- transform: scale(1) rotate(45deg);
124
- opacity: 1;
125
- }`,l9=Ni`
126
- 0% {
127
- height: 0;
128
- width: 0;
129
- opacity: 0;
130
- }
131
- 40% {
132
- height: 0;
133
- width: 6px;
134
- opacity: 1;
135
- }
136
- 100% {
137
- opacity: 1;
138
- height: 10px;
139
- }`,c9=So("div")`
140
- width: 20px;
141
- opacity: 0;
142
- height: 20px;
143
- border-radius: 10px;
144
- background: ${e=>e.primary||"#61d345"};
145
- position: relative;
146
- transform: rotate(45deg);
147
-
148
- animation: ${s9} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
149
- forwards;
150
- animation-delay: 100ms;
151
- &:after {
152
- content: '';
153
- box-sizing: border-box;
154
- animation: ${l9} 0.2s ease-out forwards;
155
- opacity: 0;
156
- animation-delay: 200ms;
157
- position: absolute;
158
- border-right: 2px solid;
159
- border-bottom: 2px solid;
160
- border-color: ${e=>e.secondary||"#fff"};
161
- bottom: 6px;
162
- left: 6px;
163
- height: 10px;
164
- width: 6px;
165
- }
166
- `,u9=So("div")`
167
- position: absolute;
168
- `,d9=So("div")`
169
- position: relative;
170
- display: flex;
171
- justify-content: center;
172
- align-items: center;
173
- min-width: 20px;
174
- min-height: 20px;
175
- `,f9=Ni`
176
- from {
177
- transform: scale(0.6);
178
- opacity: 0.4;
179
- }
180
- to {
181
- transform: scale(1);
182
- opacity: 1;
183
- }`,h9=So("div")`
184
- position: relative;
185
- transform: scale(0.6);
186
- opacity: 0.4;
187
- min-width: 20px;
188
- animation: ${f9} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
189
- forwards;
190
- `,p9=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?ie.createElement(h9,null,t):t:n==="blank"?null:ie.createElement(d9,null,ie.createElement(a9,{...r}),n!=="loading"&&ie.createElement(u9,null,n==="error"?ie.createElement(i9,{...r}):ie.createElement(c9,{...r})))},m9=e=>`
191
- 0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
192
- 100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
193
- `,g9=e=>`
194
- 0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
195
- 100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
196
- `,v9="0%{opacity:0;} 100%{opacity:1;}",b9="0%{opacity:1;} 100%{opacity:0;}",y9=So("div")`
197
- display: flex;
198
- align-items: center;
199
- background: #fff;
200
- color: #363636;
201
- line-height: 1.3;
202
- will-change: transform;
203
- box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
204
- max-width: 350px;
205
- pointer-events: auto;
206
- padding: 8px 10px;
207
- border-radius: 8px;
208
- `,x9=So("div")`
209
- display: flex;
210
- justify-content: center;
211
- margin: 4px 10px;
212
- color: inherit;
213
- flex: 1 1 auto;
214
- white-space: pre-line;
215
- `,w9=(e,t)=>{let n=e.includes("top")?1:-1,[r,i]=LC()?[v9,b9]:[m9(n),g9(n)];return{animation:t?`${Ni(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Ni(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},_9=ie.memo(({toast:e,position:t,style:n,children:r})=>{let i=e.height?w9(e.position||t||"top-center",e.visible):{opacity:0},o=ie.createElement(p9,{toast:e}),a=ie.createElement(x9,{...e.ariaProps},Fd(e.message,e));return ie.createElement(y9,{className:e.className,style:{...i,...n,...e.style}},typeof r=="function"?r({icon:o,message:a}):ie.createElement(ie.Fragment,null,o,a))});V7(ie.createElement);var C9=({id:e,className:t,style:n,onHeightUpdate:r,children:i})=>{let o=ie.useCallback(a=>{if(a){let s=()=>{let l=a.getBoundingClientRect().height;r(e,l)};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)},$9=(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:LC()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...i}},S9=Zf`
216
- z-index: 9999;
217
- > * {
218
- pointer-events: auto;
219
- }
220
- `,Wu=16,T9=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:i,toasterId:o,containerStyle:a,containerClassName:s})=>{let{toasts:l,handlers:c}=e9(n,o);return ie.createElement("div",{"data-rht-toaster":o||"",style:{position:"fixed",zIndex:9999,top:Wu,left:Wu,right:Wu,bottom:Wu,pointerEvents:"none",...a},className:s,onMouseEnter:c.startPause,onMouseLeave:c.endPause},l.map(u=>{let d=u.position||t,f=c.calculateOffset(u,{reverseOrder:e,gutter:r,defaultPosition:t}),h=$9(d,f);return ie.createElement(C9,{id:u.id,key:u.id,onHeightUpdate:c.updateHeight,className:u.visible?S9:"",style:h},u.type==="custom"?Fd(u.message,u):i?i(u):ie.createElement(_9,{toast:u,position:d}))}))},Fa=yn;const Qf=m.createContext({isLoading:!1,startLoading:e=>{},stopLoading:e=>{}});var jg;(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"})(jg||(jg={}));const UC=jg;var Ng;(function(e){e[e.Odebrano=-2]="Odebrano",e[e.Zamitnuto=-1]="Zamitnuto",e[e.Nevyrizeno=0]="Nevyrizeno",e[e.Schvaleno=1]="Schvaleno"})(Ng||(Ng={}));const E9=Ng,HC=m.createContext({user:null,userLoginState:{state:UC.LOGGED_OUT,user:null},loginUser:()=>Promise.resolve(!0),logoutUser:()=>{}}),Jf=m.createContext({useMsal:!1,msalInstance:null,msalScopes:[],msalExtraScopes:[],getToken:async()=>null}),VC=m.createContext({delegation:null,setDelegation:()=>{},availableDelegations:null,setAvailableDelegations:()=>{},refreshAvailableDelegations:async()=>{}}),Bd=e=>e==null?!0:!(typeof e=="object"||typeof e=="function"),qC=e=>{Bd(e)||Object.keys(e).forEach(t=>{const n=e[t];if(Bd(n))return;const r=Object.keys(n);r.includes("id")&&r.length===1&&n.id===null?e[t]=null:qC(n)})},YC=e=>Object.values(e).every(t=>t===null),k9=e=>{const t={};return Object.entries(e).forEach(([n,r])=>{r&&typeof r=="object"&&YC(r)?t[n]=null:t[n]=r}),t},k0=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})):[]},O9=(e,t)=>{k0(t).forEach(r=>{e.setError(r.name,{message:r.errors,type:"server"},{shouldFocus:!0}),Bd(e.getValues(r.name))||e.setError(`${r.name}.id`,{message:r.errors,type:"server"},{shouldFocus:!0})})},GC=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},KC=e=>{const t=Re.c(35);let n,r,i,o,a,s,l,c,u;t[0]!==e?({heading:o,content:r,placement:a,children:n,trigger:u,popoverClassName:s,small:c,delay:i,...l}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=s,t[7]=l,t[8]=c,t[9]=u):(n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],l=t[7],c=t[8],u=t[9]);let d;t[10]!==u?(d=u===void 0?["hover"]:u,t[10]=u,t[11]=d):d=t[11];const f=d;let h;t[12]!==f?(h=f.includes("hover")&&!f.includes("focus")?[...f,"focus"]:f,t[12]=f,t[13]=h):h=t[13];const p=h;let g;t[14]!==s||t[15]!==c?(g=ue("luminus-popover",{"luminus-popover-sm":c},s),t[14]=s,t[15]=c,t[16]=g):g=t[16];let v;t[17]!==o?(v=o&&y.jsx(vd.Header,{children:typeof o=="string"?y.jsx(zn,{variant:"h6",className:"text-primary",children:o}):o}),t[17]=o,t[18]=v):v=t[18];let x;t[19]!==r?(x=y.jsx(vd.Body,{children:r}),t[19]=r,t[20]=x):x=t[20];let _;t[21]!==g||t[22]!==v||t[23]!==x?(_=y.jsxs(vd,{className:g,onClick:M9,children:[v,x]}),t[21]=g,t[22]=v,t[23]=x,t[24]=_):_=t[24];const w=l.controlled?l.isOpen:void 0;let $;t[25]!==l?($=l.controlled?C=>l.setIsOpen(C):void 0,t[25]=l,t[26]=$):$=t[26];let b;return t[27]!==n||t[28]!==i||t[29]!==a||t[30]!==_||t[31]!==w||t[32]!==$||t[33]!==p?(b=y.jsx(EC,{placement:a,overlay:_,trigger:p,rootClose:!0,show:w,onToggle:$,delay:i,children:n}),t[27]=n,t[28]=i,t[29]=a,t[30]=_,t[31]=w,t[32]=$,t[33]=p,t[34]=b):b=t[34],b};function M9(e){return e.stopPropagation()}const A9="_h1_14r4v_1",R9="_h3_14r4v_8",j9="_h6_14r4v_15",N9="_subtitle_14r4v_22",D9="_body_14r4v_29",I9="_body2_14r4v_36",P9="_caption_14r4v_43",L9="_form-label_14r4v_50",Gi={h1:A9,h3:R9,h6:j9,subtitle:N9,body:D9,body2:I9,caption:P9,formLabel:L9},F9=e=>{const t=Re.c(42),{variant:n,className:r,children:i}=e;switch(n){case"h1":{let o;t[0]!==r?(o=ue("luminus-text-primary luminus-h1",Gi.h1,r),t[0]=r,t[1]=o):o=t[1];let a;return t[2]!==i||t[3]!==o?(a=y.jsx("h1",{className:o,children:i}),t[2]=i,t[3]=o,t[4]=a):a=t[4],a}case"h3":{let o;t[5]!==r?(o=ue("luminus-text luminus-h3",Gi.h3,r),t[5]=r,t[6]=o):o=t[6];let a;return t[7]!==i||t[8]!==o?(a=y.jsx("h3",{className:o,children:i}),t[7]=i,t[8]=o,t[9]=a):a=t[9],a}case"h6":{let o;t[10]!==r?(o=ue("luminus-text luminus-h6",Gi.h6,r),t[10]=r,t[11]=o):o=t[11];let a;return t[12]!==i||t[13]!==o?(a=y.jsx("h6",{className:o,children:i}),t[12]=i,t[13]=o,t[14]=a):a=t[14],a}case"subtitle":{let o;t[15]!==r?(o=ue("luminus-text luminus-subtitle",Gi.subtitle,r),t[15]=r,t[16]=o):o=t[16];let a;return t[17]!==i||t[18]!==o?(a=y.jsx("div",{className:o,children:i}),t[17]=i,t[18]=o,t[19]=a):a=t[19],a}case"body":{let o;t[20]!==r?(o=ue("luminus-text luminus-body",Gi.body,r),t[20]=r,t[21]=o):o=t[21];let a;return t[22]!==i||t[23]!==o?(a=y.jsx("div",{className:o,children:i}),t[22]=i,t[23]=o,t[24]=a):a=t[24],a}case"body2":{let o;t[25]!==r?(o=ue("luminus-text luminus-body2",Gi.body2,r),t[25]=r,t[26]=o):o=t[26];let a;return t[27]!==i||t[28]!==o?(a=y.jsx("div",{className:o,children:i}),t[27]=i,t[28]=o,t[29]=a):a=t[29],a}case"caption":{let o;t[30]!==r?(o=ue("luminus-text-muted luminus-caption",Gi.caption,r),t[30]=r,t[31]=o):o=t[31];let a;return t[32]!==i||t[33]!==o?(a=y.jsx("div",{className:o,children:i}),t[32]=i,t[33]=o,t[34]=a):a=t[34],a}case"form-label":{let o;t[35]!==r?(o=ue("luminus-text luminus-form-label",Gi.formLabel,r),t[35]=r,t[36]=o):o=t[36];let a;return t[37]!==i||t[38]!==o?(a=y.jsx("div",{className:o,children:i}),t[37]=i,t[38]=o,t[39]=a):a=t[39],a}default:{let o;return t[40]!==i?(o=y.jsx(y.Fragment,{children:i}),t[40]=i,t[41]=o):o=t[41],o}}},zn=e=>{const t=Re.c(4),{variant:n,className:r,children:i}=e;let o;return t[0]!==i||t[1]!==r||t[2]!==n?(o=y.jsx(F9,{variant:n,className:r,children:i}),t[0]=i,t[1]=r,t[2]=n,t[3]=o):o=t[3],o},O0=e=>{const t=Re.c(7),{text:n,placement:r,children:i,delay:o}=e;let a;t[0]!==n?(a=y.jsx(zn,{variant:"body2",className:"text-center",children:n}),t[0]=n,t[1]=a):a=t[1];let s;return t[2]!==i||t[3]!==o||t[4]!==r||t[5]!==a?(s=y.jsx(KC,{content:a,placement:r,delay:o,small:!0,children:i}),t[2]=i,t[3]=o,t[4]=r,t[5]=a,t[6]=s):s=t[6],s},ZC=e=>e.length<300?e:e.substring(0,300)+"...",ws=e=>e<1024?`${e.toFixed(2)} bytes`:e>=1024&&e<1048576?`${(e/1024).toFixed(1)} kB`:`${(e/1048576).toFixed(1)} MB`;function M0(e=" ",...t){return t.filter(n=>n!=null&&n.length>0).join(e)}const Dg=(e,t)=>e.map(n=>`&${t}=${n}`).join("").substring(1),B9=(e,t)=>e===null?null:e.length<=t?e:e.slice(0,t)+"…";function z9(e){return e==null?"":Xv(Ff(e),"dd.MM.yyyy")}function eh(e){return(e==null?void 0:e.toString().split("T")[0])??""}function W9(e){return e==null?"":Xv(Ff(e),"dd.MM.yyyy HH:mm")}function U9(e){return e&&e.charAt(0).toUpperCase()+e.slice(1)}const H9=(e,t)=>M0(" ",e?`${e},`:void 0,t),V9=(e,t)=>`${t}${e!=null?` (${e})`:""}`,q9=(e,t)=>`[${e??""}] ${t??""}`,XC=e=>decodeURIComponent(atob(e).split("").map(t=>"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)).join("")),QC=e=>{const t=Ff(e);return!Number.isNaN(t.getTime())};function Y9(){const e=new Date,t=new Date(e);return t.setHours(24,0,0,0),t.getTime()-e.getTime()}function G9(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function K9(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 Z9(e,t){const n=new Date(e),r=new Date(t);return n.getTime()-r.getTime()}function X9(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 JC(e=new Date){const t=new Date(e);return t.setUTCDate(1),t}function e$(e=new Date){return AO(e)}function Q9(e){const t=new Date;return t.setUTCMonth(t.getUTCMonth()+e),JC(t)}function J9(e){const t=new Date;return t.setUTCMonth(t.getUTCMonth()+e),e$(t)}function ej(e){const t=e??new Date().getFullYear(),n=new Date(t,0,1);return n.setMinutes(n.getMinutes()-n.getTimezoneOffset()),n}function tj(e){const t=e??new Date().getFullYear(),n=new Date(t,11,31);return n.setMinutes(n.getMinutes()-n.getTimezoneOffset()),n}function nj(e){return eh(e.toISOString())}function t$(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=XC(s):a==="Q"&&(r=s.replace(/_/g," ").replace(/=([A-Fa-f0-9]{2})/g,(l,c)=>String.fromCharCode(parseInt(c,16)))),decodeURIComponent(r)}catch(l){return console.error("Error decoding MIME encoded filename:",l),r}}try{return decodeURIComponent(r)}catch(a){return console.error("Error decoding filename:",a),r}}return null}function zd(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 rj=["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"],ij=["pdf","txt","html","xml","jpg","jpeg","png","gif","webp","svg","bmp","ico","mp3","wav","ogg","m4a","mp4","webm","ogv"],n$=e=>rj.includes(e.type),r$=e=>ij.includes(e.toLowerCase());function oj(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=t$(e.headers.get("Content-disposition"))??n)}const r=n$(e.data),i=(t==null?void 0:t.tryToOpen)===void 0?localStorage.getItem("file-download-try-opening")!=="false":t.tryToOpen;zd(e.data,n,r?i:!1)}function _s(e,t=_s.characters){return e.replace(/[^A-Za-z0-9]/g,function(n){return t[n]||n})}_s.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 Ig=(e,t)=>t?e?_s(e).toLowerCase().includes(_s(t.toLowerCase())):!1:!0,i$=(e,t)=>t?e?_s(e).toLowerCase().startsWith(_s(t.toLowerCase())):!1:!0,A0=(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("*")?Ig(o,i.substring(1)):i$(o,i):Ig(o,i):!0};function o$(e,t){return function(){return e.apply(t,arguments)}}const{toString:aj}=Object.prototype,{getPrototypeOf:R0}=Object,{iterator:th,toStringTag:a$}=Symbol,nh=(e=>t=>{const n=aj.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Fr=e=>(e=e.toLowerCase(),t=>nh(t)===e),rh=e=>t=>typeof t===e,{isArray:Ws}=Array,Cs=rh("undefined");function eu(e){return e!==null&&!Cs(e)&&e.constructor!==null&&!Cs(e.constructor)&&er(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const s$=Fr("ArrayBuffer");function sj(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&s$(e.buffer),t}const lj=rh("string"),er=rh("function"),l$=rh("number"),tu=e=>e!==null&&typeof e=="object",cj=e=>e===!0||e===!1,yd=e=>{if(nh(e)!=="object")return!1;const t=R0(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(a$ in e)&&!(th in e)},uj=e=>{if(!tu(e)||eu(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},dj=Fr("Date"),fj=Fr("File"),hj=Fr("Blob"),pj=Fr("FileList"),mj=e=>tu(e)&&er(e.pipe),gj=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||er(e.append)&&((t=nh(e))==="formdata"||t==="object"&&er(e.toString)&&e.toString()==="[object FormData]"))},vj=Fr("URLSearchParams"),[bj,yj,xj,wj]=["ReadableStream","Request","Response","Headers"].map(Fr),_j=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function nu(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Ws(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(eu(e))return;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 c$(e,t){if(eu(e))return null;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 qo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,u$=e=>!Cs(e)&&e!==qo;function Pg(){const{caseless:e,skipUndefined:t}=u$(this)&&this||{},n={},r=(i,o)=>{const a=e&&c$(n,o)||o;yd(n[a])&&yd(i)?n[a]=Pg(n[a],i):yd(i)?n[a]=Pg({},i):Ws(i)?n[a]=i.slice():(!t||!Cs(i))&&(n[a]=i)};for(let i=0,o=arguments.length;i<o;i++)arguments[i]&&nu(arguments[i],r);return n}const Cj=(e,t,n,{allOwnKeys:r}={})=>(nu(t,(i,o)=>{n&&er(i)?e[o]=o$(i,n):e[o]=i},{allOwnKeys:r}),e),$j=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Sj=(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)},Tj=(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&&R0(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Ej=(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},kj=e=>{if(!e)return null;if(Ws(e))return e;let t=e.length;if(!l$(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Oj=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&R0(Uint8Array)),Mj=(e,t)=>{const r=(e&&e[th]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},Aj=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Rj=Fr("HTMLFormElement"),jj=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),ax=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Nj=Fr("RegExp"),d$=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};nu(n,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(r[o]=a||i)}),Object.defineProperties(e,r)},Dj=e=>{d$(e,(t,n)=>{if(er(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(er(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+"'")})}})},Ij=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return Ws(e)?r(e):r(String(e).split(t)),n},Pj=()=>{},Lj=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Fj(e){return!!(e&&er(e.append)&&e[a$]==="FormData"&&e[th])}const Bj=e=>{const t=new Array(10),n=(r,i)=>{if(tu(r)){if(t.indexOf(r)>=0)return;if(eu(r))return r;if(!("toJSON"in r)){t[i]=r;const o=Ws(r)?[]:{};return nu(r,(a,s)=>{const l=n(a,i+1);!Cs(l)&&(o[s]=l)}),t[i]=void 0,o}}return r};return n(e,0)},zj=Fr("AsyncFunction"),Wj=e=>e&&(tu(e)||er(e))&&er(e.then)&&er(e.catch),f$=((e,t)=>e?setImmediate:t?((n,r)=>(qo.addEventListener("message",({source:i,data:o})=>{i===qo&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),qo.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",er(qo.postMessage)),Uj=typeof queueMicrotask<"u"?queueMicrotask.bind(qo):typeof process<"u"&&process.nextTick||f$,Hj=e=>e!=null&&er(e[th]),oe={isArray:Ws,isArrayBuffer:s$,isBuffer:eu,isFormData:gj,isArrayBufferView:sj,isString:lj,isNumber:l$,isBoolean:cj,isObject:tu,isPlainObject:yd,isEmptyObject:uj,isReadableStream:bj,isRequest:yj,isResponse:xj,isHeaders:wj,isUndefined:Cs,isDate:dj,isFile:fj,isBlob:hj,isRegExp:Nj,isFunction:er,isStream:mj,isURLSearchParams:vj,isTypedArray:Oj,isFileList:pj,forEach:nu,merge:Pg,extend:Cj,trim:_j,stripBOM:$j,inherits:Sj,toFlatObject:Tj,kindOf:nh,kindOfTest:Fr,endsWith:Ej,toArray:kj,forEachEntry:Mj,matchAll:Aj,isHTMLForm:Rj,hasOwnProperty:ax,hasOwnProp:ax,reduceDescriptors:d$,freezeMethods:Dj,toObjectSet:Ij,toCamelCase:jj,noop:Pj,toFiniteNumber:Lj,findKey:c$,global:qo,isContextDefined:u$,isSpecCompliantForm:Fj,toJSONObject:Bj,isAsyncFn:zj,isThenable:Wj,setImmediate:f$,asap:Uj,isIterable:Hj};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)}oe.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:oe.toJSONObject(this.config),code:this.code,status:this.status}}});const h$=it.prototype,p$={};["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=>{p$[e]={value:e}});Object.defineProperties(it,p$);Object.defineProperty(h$,"isAxiosError",{value:!0});it.from=(e,t,n,r,i,o)=>{const a=Object.create(h$);oe.toFlatObject(e,a,function(u){return u!==Error.prototype},c=>c!=="isAxiosError");const s=e&&e.message?e.message:"Error",l=t==null&&e?e.code:t;return it.call(a,s,l,n,r,i),e&&a.cause==null&&Object.defineProperty(a,"cause",{value:e,configurable:!0}),a.name=e&&e.name||"Error",o&&Object.assign(a,o),a};const Vj=null;function Lg(e){return oe.isPlainObject(e)||oe.isArray(e)}function m$(e){return oe.endsWith(e,"[]")?e.slice(0,-2):e}function sx(e,t,n){return e?e.concat(t).map(function(i,o){return i=m$(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function qj(e){return oe.isArray(e)&&!e.some(Lg)}const Yj=oe.toFlatObject(oe,{},null,function(t){return/^is[A-Z]/.test(t)});function ih(e,t,n){if(!oe.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=oe.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,v){return!oe.isUndefined(v[g])});const r=n.metaTokens,i=n.visitor||u,o=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&oe.isSpecCompliantForm(t);if(!oe.isFunction(i))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if(oe.isDate(p))return p.toISOString();if(oe.isBoolean(p))return p.toString();if(!l&&oe.isBlob(p))throw new it("Blob is not supported. Use a Buffer instead.");return oe.isArrayBuffer(p)||oe.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function u(p,g,v){let x=p;if(p&&!v&&typeof p=="object"){if(oe.endsWith(g,"{}"))g=r?g:g.slice(0,-2),p=JSON.stringify(p);else if(oe.isArray(p)&&qj(p)||(oe.isFileList(p)||oe.endsWith(g,"[]"))&&(x=oe.toArray(p)))return g=m$(g),x.forEach(function(w,$){!(oe.isUndefined(w)||w===null)&&t.append(a===!0?sx([g],$,o):a===null?g:g+"[]",c(w))}),!1}return Lg(p)?!0:(t.append(sx(v,g,o),c(p)),!1)}const d=[],f=Object.assign(Yj,{defaultVisitor:u,convertValue:c,isVisitable:Lg});function h(p,g){if(!oe.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+g.join("."));d.push(p),oe.forEach(p,function(x,_){(!(oe.isUndefined(x)||x===null)&&i.call(t,x,oe.isString(_)?_.trim():_,g,f))===!0&&h(x,g?g.concat(_):[_])}),d.pop()}}if(!oe.isObject(e))throw new TypeError("data must be an object");return h(e),t}function lx(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function j0(e,t){this._pairs=[],e&&ih(e,this,t)}const g$=j0.prototype;g$.append=function(t,n){this._pairs.push([t,n])};g$.toString=function(t){const n=t?function(r){return t.call(this,r,lx)}:lx;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function Gj(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function v$(e,t,n){if(!t)return e;const r=n&&n.encode||Gj;oe.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let o;if(i?o=i(t,n):o=oe.isURLSearchParams(t)?t.toString():new j0(t,n).toString(r),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class cx{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){oe.forEach(this.handlers,function(r){r!==null&&t(r)})}}const b$={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Kj=typeof URLSearchParams<"u"?URLSearchParams:j0,Zj=typeof FormData<"u"?FormData:null,Xj=typeof Blob<"u"?Blob:null,Qj={isBrowser:!0,classes:{URLSearchParams:Kj,FormData:Zj,Blob:Xj},protocols:["http","https","file","blob","url","data"]},N0=typeof window<"u"&&typeof document<"u",Fg=typeof navigator=="object"&&navigator||void 0,Jj=N0&&(!Fg||["ReactNative","NativeScript","NS"].indexOf(Fg.product)<0),eN=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",tN=N0&&window.location.href||"http://localhost",nN=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:N0,hasStandardBrowserEnv:Jj,hasStandardBrowserWebWorkerEnv:eN,navigator:Fg,origin:tN},Symbol.toStringTag,{value:"Module"})),jn={...nN,...Qj};function rN(e,t){return ih(e,new jn.classes.URLSearchParams,{visitor:function(n,r,i,o){return jn.isNode&&oe.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function iN(e){return oe.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function oN(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 y$(e){function t(n,r,i,o){let a=n[o++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),l=o>=n.length;return a=!a&&oe.isArray(i)?i.length:a,l?(oe.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!s):((!i[a]||!oe.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],o)&&oe.isArray(i[a])&&(i[a]=oN(i[a])),!s)}if(oe.isFormData(e)&&oe.isFunction(e.entries)){const n={};return oe.forEachEntry(e,(r,i)=>{t(iN(r),i,n,0)}),n}return null}function aN(e,t,n){if(oe.isString(e))try{return(t||JSON.parse)(e),oe.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const ru={transitional:b$,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=oe.isObject(t);if(o&&oe.isHTMLForm(t)&&(t=new FormData(t)),oe.isFormData(t))return i?JSON.stringify(y$(t)):t;if(oe.isArrayBuffer(t)||oe.isBuffer(t)||oe.isStream(t)||oe.isFile(t)||oe.isBlob(t)||oe.isReadableStream(t))return t;if(oe.isArrayBufferView(t))return t.buffer;if(oe.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 rN(t,this.formSerializer).toString();if((s=oe.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return ih(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),aN(t)):t}],transformResponse:[function(t){const n=this.transitional||ru.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(oe.isResponse(t)||oe.isReadableStream(t))return t;if(t&&oe.isString(t)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}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:jn.classes.FormData,Blob:jn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};oe.forEach(["delete","get","head","post","put","patch"],e=>{ru.headers[e]={}});const sN=oe.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"]),lN=e=>{const t={};let n,r,i;return e&&e.split(`
221
- `).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||t[n]&&sN[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},ux=Symbol("internals");function ml(e){return e&&String(e).trim().toLowerCase()}function xd(e){return e===!1||e==null?e:oe.isArray(e)?e.map(xd):String(e)}function cN(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 uN=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function om(e,t,n,r,i){if(oe.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!oe.isString(t)){if(oe.isString(r))return t.indexOf(r)!==-1;if(oe.isRegExp(r))return r.test(t)}}function dN(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function fN(e,t){const n=oe.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})})}let tr=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(s,l,c){const u=ml(l);if(!u)throw new Error("header name must be a non-empty string");const d=oe.findKey(i,u);(!d||i[d]===void 0||c===!0||c===void 0&&i[d]!==!1)&&(i[d||l]=xd(s))}const a=(s,l)=>oe.forEach(s,(c,u)=>o(c,u,l));if(oe.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(oe.isString(t)&&(t=t.trim())&&!uN(t))a(lN(t),n);else if(oe.isObject(t)&&oe.isIterable(t)){let s={},l,c;for(const u of t){if(!oe.isArray(u))throw TypeError("Object iterator must return a key-value pair");s[c=u[0]]=(l=s[c])?oe.isArray(l)?[...l,u[1]]:[l,u[1]]:u[1]}a(s,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=ml(t),t){const r=oe.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return cN(i);if(oe.isFunction(n))return n.call(this,i,r);if(oe.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ml(t),t){const r=oe.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||om(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(a){if(a=ml(a),a){const s=oe.findKey(r,a);s&&(!n||om(r,r[s],s,n))&&(delete r[s],i=!0)}}return oe.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||om(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return oe.forEach(this,(i,o)=>{const a=oe.findKey(r,o);if(a){n[a]=xd(i),delete n[o];return}const s=t?dN(o):String(o).trim();s!==o&&delete n[o],n[s]=xd(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return oe.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&oe.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(`
222
- `)}getSetCookie(){return this.get("set-cookie")||[]}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[ux]=this[ux]={accessors:{}}).accessors,i=this.prototype;function o(a){const s=ml(a);r[s]||(fN(i,a),r[s]=!0)}return oe.isArray(t)?t.forEach(o):o(t),this}};tr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);oe.reduceDescriptors(tr.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});oe.freezeMethods(tr);function am(e,t){const n=this||ru,r=t||n,i=tr.from(r.headers);let o=r.data;return oe.forEach(e,function(s){o=s.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function x$(e){return!!(e&&e.__CANCEL__)}function Us(e,t,n){it.call(this,e??"canceled",it.ERR_CANCELED,t,n),this.name="CanceledError"}oe.inherits(Us,it,{__CANCEL__:!0});function w$(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 hN(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function pN(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(l){const c=Date.now(),u=r[o];a||(a=c),n[i]=l,r[i]=c;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),c-a<t)return;const h=u&&c-u;return h?Math.round(f*1e3/h):void 0}}function mN(e,t){let n=0,r=1e3/t,i,o;const a=(c,u=Date.now())=>{n=u,i=null,o&&(clearTimeout(o),o=null),e(...c)};return[(...c)=>{const u=Date.now(),d=u-n;d>=r?a(c,u):(i=c,o||(o=setTimeout(()=>{o=null,a(i)},r-d)))},()=>i&&a(i)]}const Wd=(e,t,n=3)=>{let r=0;const i=pN(50,250);return mN(o=>{const a=o.loaded,s=o.lengthComputable?o.total:void 0,l=a-r,c=i(l),u=a<=s;r=a;const d={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&u?(s-a)/c:void 0,event:o,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(d)},n)},dx=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},fx=e=>(...t)=>oe.asap(()=>e(...t)),gN=jn.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,jn.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(jn.origin),jn.navigator&&/(msie|trident)/i.test(jn.navigator.userAgent)):()=>!0,vN=jn.hasStandardBrowserEnv?{write(e,t,n,r,i,o,a){if(typeof document>"u")return;const s=[`${e}=${encodeURIComponent(t)}`];oe.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),oe.isString(r)&&s.push(`path=${r}`),oe.isString(i)&&s.push(`domain=${i}`),o===!0&&s.push("secure"),oe.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function bN(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function yN(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function _$(e,t,n){let r=!bN(t);return e&&(r||n==!1)?yN(e,t):t}const hx=e=>e instanceof tr?{...e}:e;function sa(e,t){t=t||{};const n={};function r(c,u,d,f){return oe.isPlainObject(c)&&oe.isPlainObject(u)?oe.merge.call({caseless:f},c,u):oe.isPlainObject(u)?oe.merge({},u):oe.isArray(u)?u.slice():u}function i(c,u,d,f){if(oe.isUndefined(u)){if(!oe.isUndefined(c))return r(void 0,c,d,f)}else return r(c,u,d,f)}function o(c,u){if(!oe.isUndefined(u))return r(void 0,u)}function a(c,u){if(oe.isUndefined(u)){if(!oe.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function s(c,u,d){if(d in t)return r(c,u);if(d in e)return r(void 0,c)}const l={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:(c,u,d)=>i(hx(c),hx(u),d,!0)};return oe.forEach(Object.keys({...e,...t}),function(u){const d=l[u]||i,f=d(e[u],t[u],u);oe.isUndefined(f)&&d!==s||(n[u]=f)}),n}const C$=e=>{const t=sa({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:s}=t;if(t.headers=a=tr.from(a),t.url=v$(_$(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),oe.isFormData(n)){if(jn.hasStandardBrowserEnv||jn.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(oe.isFunction(n.getHeaders)){const l=n.getHeaders(),c=["content-type","content-length"];Object.entries(l).forEach(([u,d])=>{c.includes(u.toLowerCase())&&a.set(u,d)})}}if(jn.hasStandardBrowserEnv&&(r&&oe.isFunction(r)&&(r=r(t)),r||r!==!1&&gN(t.url))){const l=i&&o&&vN.read(o);l&&a.set(i,l)}return t},xN=typeof XMLHttpRequest<"u",wN=xN&&function(e){return new Promise(function(n,r){const i=C$(e);let o=i.data;const a=tr.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:c}=i,u,d,f,h,p;function g(){h&&h(),p&&p(),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 w=tr.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),b={data:!s||s==="text"||s==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:w,config:e,request:v};w$(function(T){n(T),g()},function(T){r(T),g()},b),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($){const b=$&&$.message?$.message:"Network Error",C=new it(b,it.ERR_NETWORK,e,v);C.event=$||null,r(C),v=null},v.ontimeout=function(){let $=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const b=i.transitional||b$;i.timeoutErrorMessage&&($=i.timeoutErrorMessage),r(new it($,b.clarifyTimeoutError?it.ETIMEDOUT:it.ECONNABORTED,e,v)),v=null},o===void 0&&a.setContentType(null),"setRequestHeader"in v&&oe.forEach(a.toJSON(),function($,b){v.setRequestHeader(b,$)}),oe.isUndefined(i.withCredentials)||(v.withCredentials=!!i.withCredentials),s&&s!=="json"&&(v.responseType=i.responseType),c&&([f,p]=Wd(c,!0),v.addEventListener("progress",f)),l&&v.upload&&([d,h]=Wd(l),v.upload.addEventListener("progress",d),v.upload.addEventListener("loadend",h)),(i.cancelToken||i.signal)&&(u=w=>{v&&(r(!w||w.type?new Us(null,e,v):w),v.abort(),v=null)},i.cancelToken&&i.cancelToken.subscribe(u),i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u)));const _=hN(i.url);if(_&&jn.protocols.indexOf(_)===-1){r(new it("Unsupported protocol "+_+":",it.ERR_BAD_REQUEST,e));return}v.send(o||null)})},_N=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const o=function(c){if(!i){i=!0,s();const u=c instanceof Error?c:this.reason;r.abort(u instanceof it?u:new Us(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(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),e=null)};e.forEach(c=>c.addEventListener("abort",o));const{signal:l}=r;return l.unsubscribe=()=>oe.asap(s),l}},CN=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},$N=async function*(e,t){for await(const n of SN(e))yield*CN(n,t)},SN=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()}},px=(e,t,n,r)=>{const i=$N(e,t);let o=0,a,s=l=>{a||(a=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await i.next();if(c){s(),l.close();return}let d=u.byteLength;if(n){let f=o+=d;n(f)}l.enqueue(new Uint8Array(u))}catch(c){throw s(c),c}},cancel(l){return s(l),i.return()}},{highWaterMark:2})},mx=64*1024,{isFunction:Uu}=oe,TN=(({Request:e,Response:t})=>({Request:e,Response:t}))(oe.global),{ReadableStream:gx,TextEncoder:vx}=oe.global,bx=(e,...t)=>{try{return!!e(...t)}catch{return!1}},EN=e=>{e=oe.merge.call({skipUndefined:!0},TN,e);const{fetch:t,Request:n,Response:r}=e,i=t?Uu(t):typeof fetch=="function",o=Uu(n),a=Uu(r);if(!i)return!1;const s=i&&Uu(gx),l=i&&(typeof vx=="function"?(p=>g=>p.encode(g))(new vx):async p=>new Uint8Array(await new n(p).arrayBuffer())),c=o&&s&&bx(()=>{let p=!1;const g=new n(jn.origin,{body:new gx,method:"POST",get duplex(){return p=!0,"half"}}).headers.has("Content-Type");return p&&!g}),u=a&&s&&bx(()=>oe.isReadableStream(new r("").body)),d={stream:u&&(p=>p.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(p=>{!d[p]&&(d[p]=(g,v)=>{let x=g&&g[p];if(x)return x.call(g);throw new it(`Response type '${p}' is not supported`,it.ERR_NOT_SUPPORT,v)})});const f=async p=>{if(p==null)return 0;if(oe.isBlob(p))return p.size;if(oe.isSpecCompliantForm(p))return(await new n(jn.origin,{method:"POST",body:p}).arrayBuffer()).byteLength;if(oe.isArrayBufferView(p)||oe.isArrayBuffer(p))return p.byteLength;if(oe.isURLSearchParams(p)&&(p=p+""),oe.isString(p))return(await l(p)).byteLength},h=async(p,g)=>{const v=oe.toFiniteNumber(p.getContentLength());return v??f(g)};return async p=>{let{url:g,method:v,data:x,signal:_,cancelToken:w,timeout:$,onDownloadProgress:b,onUploadProgress:C,responseType:T,headers:k,withCredentials:O="same-origin",fetchOptions:j}=C$(p),S=t||fetch;T=T?(T+"").toLowerCase():"text";let E=_N([_,w&&w.toAbortSignal()],$),A=null;const D=E&&E.unsubscribe&&(()=>{E.unsubscribe()});let R;try{if(C&&c&&v!=="get"&&v!=="head"&&(R=await h(k,x))!==0){let W=new n(g,{method:"POST",body:x,duplex:"half"}),q;if(oe.isFormData(x)&&(q=W.headers.get("content-type"))&&k.setContentType(q),W.body){const[H,Y]=dx(R,Wd(fx(C)));x=px(W.body,mx,H,Y)}}oe.isString(O)||(O=O?"include":"omit");const M=o&&"credentials"in n.prototype,I={...j,signal:E,method:v.toUpperCase(),headers:k.normalize().toJSON(),body:x,duplex:"half",credentials:M?O:void 0};A=o&&new n(g,I);let F=await(o?S(A,j):S(g,I));const U=u&&(T==="stream"||T==="response");if(u&&(b||U&&D)){const W={};["status","statusText","headers"].forEach(G=>{W[G]=F[G]});const q=oe.toFiniteNumber(F.headers.get("content-length")),[H,Y]=b&&dx(q,Wd(fx(b),!0))||[];F=new r(px(F.body,mx,H,()=>{Y&&Y(),D&&D()}),W)}T=T||"text";let P=await d[oe.findKey(d,T)||"text"](F,p);return!U&&D&&D(),await new Promise((W,q)=>{w$(W,q,{data:P,headers:tr.from(F.headers),status:F.status,statusText:F.statusText,config:p,request:A})})}catch(M){throw D&&D(),M&&M.name==="TypeError"&&/Load failed|fetch/i.test(M.message)?Object.assign(new it("Network Error",it.ERR_NETWORK,p,A),{cause:M.cause||M}):it.from(M,M&&M.code,p,A)}}},kN=new Map,$$=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:i}=t,o=[r,i,n];let a=o.length,s=a,l,c,u=kN;for(;s--;)l=o[s],c=u.get(l),c===void 0&&u.set(l,c=s?new Map:EN(t)),u=c;return c};$$();const D0={http:Vj,xhr:wN,fetch:{get:$$}};oe.forEach(D0,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const yx=e=>`- ${e}`,ON=e=>oe.isFunction(e)||e===null||e===!1;function MN(e,t){e=oe.isArray(e)?e:[e];const{length:n}=e;let r,i;const o={};for(let a=0;a<n;a++){r=e[a];let s;if(i=r,!ON(r)&&(i=D0[(s=String(r)).toLowerCase()],i===void 0))throw new it(`Unknown adapter '${s}'`);if(i&&(oe.isFunction(i)||(i=i.get(t))))break;o[s||"#"+a]=i}if(!i){const a=Object.entries(o).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=n?a.length>1?`since :
223
- `+a.map(yx).join(`
224
- `):" "+yx(a[0]):"as no adapter specified";throw new it("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return i}const S$={getAdapter:MN,adapters:D0};function sm(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Us(null,e)}function xx(e){return sm(e),e.headers=tr.from(e.headers),e.data=am.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),S$.getAdapter(e.adapter||ru.adapter,e)(e).then(function(r){return sm(e),r.data=am.call(e,e.transformResponse,r),r.headers=tr.from(r.headers),r},function(r){return x$(r)||(sm(e),r&&r.response&&(r.response.data=am.call(e,e.transformResponse,r.response),r.response.headers=tr.from(r.response.headers))),Promise.reject(r)})}const T$="1.13.2",oh={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{oh[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const wx={};oh.transitional=function(t,n,r){function i(o,a){return"[Axios v"+T$+"] 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&&!wx[a]&&(wx[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}};oh.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function AN(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],l=s===void 0||a(s,o,e);if(l!==!0)throw new it("option "+o+" must be "+l,it.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new it("Unknown option "+o,it.ERR_BAD_OPTION)}}const wd={assertOptions:AN,validators:oh},Wr=wd.validators;let ea=class{constructor(t){this.defaults=t||{},this.interceptors={request:new cx,response:new cx}}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+=`
225
- `+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=sa(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&wd.assertOptions(r,{silentJSONParsing:Wr.transitional(Wr.boolean),forcedJSONParsing:Wr.transitional(Wr.boolean),clarifyTimeoutError:Wr.transitional(Wr.boolean)},!1),i!=null&&(oe.isFunction(i)?n.paramsSerializer={serialize:i}:wd.assertOptions(i,{encode:Wr.function,serialize:Wr.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),wd.assertOptions(n,{baseUrl:Wr.spelling("baseURL"),withXsrfToken:Wr.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&oe.merge(o.common,o[n.method]);o&&oe.forEach(["delete","get","head","post","put","patch","common"],p=>{delete o[p]}),n.headers=tr.concat(a,o);const s=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(l=l&&g.synchronous,s.unshift(g.fulfilled,g.rejected))});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let u,d=0,f;if(!l){const p=[xx.bind(this),void 0];for(p.unshift(...s),p.push(...c),f=p.length,u=Promise.resolve(n);d<f;)u=u.then(p[d++],p[d++]);return u}f=s.length;let h=n;for(;d<f;){const p=s[d++],g=s[d++];try{h=p(h)}catch(v){g.call(this,v);break}}try{u=xx.call(this,h)}catch(p){return Promise.reject(p)}for(d=0,f=c.length;d<f;)u=u.then(c[d++],c[d++]);return u}getUri(t){t=sa(this.defaults,t);const n=_$(t.baseURL,t.url,t.allowAbsoluteUrls);return v$(n,t.params,t.paramsSerializer)}};oe.forEach(["delete","get","head","options"],function(t){ea.prototype[t]=function(n,r){return this.request(sa(r||{},{method:t,url:n,data:(r||{}).data}))}});oe.forEach(["post","put","patch"],function(t){function n(r){return function(o,a,s){return this.request(sa(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}ea.prototype[t]=n(),ea.prototype[t+"Form"]=n(!0)});let RN=class E${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 Us(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 E$(function(i){t=i}),cancel:t}}};function jN(e){return function(n){return e.apply(null,n)}}function NN(e){return oe.isObject(e)&&e.isAxiosError===!0}const Bg={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Bg).forEach(([e,t])=>{Bg[t]=e});function k$(e){const t=new ea(e),n=o$(ea.prototype.request,t);return oe.extend(n,ea.prototype,t,{allOwnKeys:!0}),oe.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return k$(sa(e,i))},n}const Qt=k$(ru);Qt.Axios=ea;Qt.CanceledError=Us;Qt.CancelToken=RN;Qt.isCancel=x$;Qt.VERSION=T$;Qt.toFormData=ih;Qt.AxiosError=it;Qt.Cancel=Qt.CanceledError;Qt.all=function(t){return Promise.all(t)};Qt.spread=jN;Qt.isAxiosError=NN;Qt.mergeConfig=sa;Qt.AxiosHeaders=tr;Qt.formToJSON=e=>y$(oe.isHTMLForm(e)?new FormData(e):e);Qt.getAdapter=S$.getAdapter;Qt.HttpStatusCode=Bg;Qt.default=Qt;const{Axios:xbe,AxiosError:wbe,CanceledError:_be,isCancel:Cbe,CancelToken:$be,VERSION:Sbe,all:Tbe,Cancel:Ebe,isAxiosError:kbe,spread:Obe,toFormData:Mbe,AxiosHeaders:Abe,HttpStatusCode:Rbe,formToJSON:jbe,getAdapter:Nbe,mergeConfig:Dbe}=Qt;var Hu={};/*!
226
- * cookie
227
- * Copyright(c) 2012-2014 Roman Shtylman
228
- * Copyright(c) 2015 Douglas Christopher Wilson
229
- * MIT Licensed
230
- */var _x;function DN(){if(_x)return Hu;_x=1,Hu.parse=a,Hu.serialize=c;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(h,p){if(typeof h!="string")throw new TypeError("argument str must be a string");var g={},v=h.length;if(v<2)return g;var x=p&&p.decode||u,_=0,w=0,$=0;do{if(w=h.indexOf("=",_),w===-1)break;if($=h.indexOf(";",_),$===-1)$=v;else if(w>$){_=h.lastIndexOf(";",w-1)+1;continue}var b=s(h,_,w),C=l(h,w,b),T=h.slice(b,C);if(!t.call(g,T)){var k=s(h,w+1,$),O=l(h,$,k);h.charCodeAt(k)===34&&h.charCodeAt(O-1)===34&&(k++,O--);var j=h.slice(k,O);g[T]=f(j,x)}_=$+1}while(_<v);return g}function s(h,p,g){do{var v=h.charCodeAt(p);if(v!==32&&v!==9)return p}while(++p<g);return g}function l(h,p,g){for(;p>g;){var v=h.charCodeAt(--p);if(v!==32&&v!==9)return p+1}return g}function c(h,p,g){var v=g&&g.encode||encodeURIComponent;if(typeof v!="function")throw new TypeError("option encode is invalid");if(!n.test(h))throw new TypeError("argument name is invalid");var x=v(p);if(!r.test(x))throw new TypeError("argument val is invalid");var _=h+"="+x;if(!g)return _;if(g.maxAge!=null){var w=Math.floor(g.maxAge);if(!isFinite(w))throw new TypeError("option maxAge is invalid");_+="; Max-Age="+w}if(g.domain){if(!i.test(g.domain))throw new TypeError("option domain is invalid");_+="; Domain="+g.domain}if(g.path){if(!o.test(g.path))throw new TypeError("option path is invalid");_+="; Path="+g.path}if(g.expires){var $=g.expires;if(!d($)||isNaN($.valueOf()))throw new TypeError("option expires is invalid");_+="; Expires="+$.toUTCString()}if(g.httpOnly&&(_+="; HttpOnly"),g.secure&&(_+="; Secure"),g.partitioned&&(_+="; Partitioned"),g.priority){var b=typeof g.priority=="string"?g.priority.toLowerCase():g.priority;switch(b){case"low":_+="; Priority=Low";break;case"medium":_+="; Priority=Medium";break;case"high":_+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(g.sameSite){var C=typeof g.sameSite=="string"?g.sameSite.toLowerCase():g.sameSite;switch(C){case!0:_+="; SameSite=Strict";break;case"lax":_+="; SameSite=Lax";break;case"strict":_+="; SameSite=Strict";break;case"none":_+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return _}function u(h){return h.indexOf("%")!==-1?decodeURIComponent(h):h}function d(h){return e.call(h)==="[object Date]"}function f(h,p){try{return p(h)}catch{return h}}return Hu}var _d=DN();function IN(){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 PN(e){return typeof e=="string"?_d.parse(e):typeof e=="object"&&e!==null?e:{}}function lm(e,t={}){const n=LN(e);if(!t.doNotParse)try{return JSON.parse(n)}catch{}return e}function LN(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class FN{constructor(t,n={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const i=this.cookies;this.cookies=_d.parse(document.cookie),this._checkChanges(i)};const r=typeof document>"u"?"":document.cookie;this.cookies=PN(t||r),this.defaultSetOptions=n,this.HAS_DOCUMENT_COOKIE=IN()}_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:lm(this.cookies[r])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,n={}){return n.doNotUpdate||this.update(),lm(this.cookies[t],n)}getAll(t={}){t.doNotUpdate||this.update();const n={};for(let r in this.cookies)n[r]=lm(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=_d.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=_d.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 O$=ie.createContext(new FN),{Provider:Ibe,Consumer:Pbe}=O$;var Vu={exports:{}},Dt={};/** @license React v16.13.1
231
- * react-is.production.min.js
232
- *
233
- * Copyright (c) Facebook, Inc. and its affiliates.
234
- *
235
- * This source code is licensed under the MIT license found in the
236
- * LICENSE file in the root directory of this source tree.
237
- */var Cx;function BN(){if(Cx)return Dt;Cx=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,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,p=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function w(b){if(typeof b=="object"&&b!==null){var C=b.$$typeof;switch(C){case t:switch(b=b.type,b){case l:case c:case r:case o:case i:case d:return b;default:switch(b=b&&b.$$typeof,b){case s:case u:case p:case h:case a:return b;default:return C}}case n:return C}}}function $(b){return w(b)===c}return Dt.AsyncMode=l,Dt.ConcurrentMode=c,Dt.ContextConsumer=s,Dt.ContextProvider=a,Dt.Element=t,Dt.ForwardRef=u,Dt.Fragment=r,Dt.Lazy=p,Dt.Memo=h,Dt.Portal=n,Dt.Profiler=o,Dt.StrictMode=i,Dt.Suspense=d,Dt.isAsyncMode=function(b){return $(b)||w(b)===l},Dt.isConcurrentMode=$,Dt.isContextConsumer=function(b){return w(b)===s},Dt.isContextProvider=function(b){return w(b)===a},Dt.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===t},Dt.isForwardRef=function(b){return w(b)===u},Dt.isFragment=function(b){return w(b)===r},Dt.isLazy=function(b){return w(b)===p},Dt.isMemo=function(b){return w(b)===h},Dt.isPortal=function(b){return w(b)===n},Dt.isProfiler=function(b){return w(b)===o},Dt.isStrictMode=function(b){return w(b)===i},Dt.isSuspense=function(b){return w(b)===d},Dt.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===r||b===c||b===o||b===i||b===d||b===f||typeof b=="object"&&b!==null&&(b.$$typeof===p||b.$$typeof===h||b.$$typeof===a||b.$$typeof===s||b.$$typeof===u||b.$$typeof===v||b.$$typeof===x||b.$$typeof===_||b.$$typeof===g)},Dt.typeOf=w,Dt}var It={};/** @license React v16.13.1
238
- * react-is.development.js
239
- *
240
- * Copyright (c) Facebook, Inc. and its affiliates.
241
- *
242
- * This source code is licensed under the MIT license found in the
243
- * LICENSE file in the root directory of this source tree.
244
- */var $x;function zN(){return $x||($x=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,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,p=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function w(N){return typeof N=="string"||typeof N=="function"||N===r||N===c||N===o||N===i||N===d||N===f||typeof N=="object"&&N!==null&&(N.$$typeof===p||N.$$typeof===h||N.$$typeof===a||N.$$typeof===s||N.$$typeof===u||N.$$typeof===v||N.$$typeof===x||N.$$typeof===_||N.$$typeof===g)}function $(N){if(typeof N=="object"&&N!==null){var X=N.$$typeof;switch(X){case t:var Q=N.type;switch(Q){case l:case c:case r:case o:case i:case d:return Q;default:var Z=Q&&Q.$$typeof;switch(Z){case s:case u:case p:case h:case a:return Z;default:return X}}case n:return X}}}var b=l,C=c,T=s,k=a,O=t,j=u,S=r,E=p,A=h,D=n,R=o,M=i,I=d,F=!1;function U(N){return F||(F=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),P(N)||$(N)===l}function P(N){return $(N)===c}function W(N){return $(N)===s}function q(N){return $(N)===a}function H(N){return typeof N=="object"&&N!==null&&N.$$typeof===t}function Y(N){return $(N)===u}function G(N){return $(N)===r}function J(N){return $(N)===p}function ee(N){return $(N)===h}function z(N){return $(N)===n}function L(N){return $(N)===o}function B(N){return $(N)===i}function V(N){return $(N)===d}It.AsyncMode=b,It.ConcurrentMode=C,It.ContextConsumer=T,It.ContextProvider=k,It.Element=O,It.ForwardRef=j,It.Fragment=S,It.Lazy=E,It.Memo=A,It.Portal=D,It.Profiler=R,It.StrictMode=M,It.Suspense=I,It.isAsyncMode=U,It.isConcurrentMode=P,It.isContextConsumer=W,It.isContextProvider=q,It.isElement=H,It.isForwardRef=Y,It.isFragment=G,It.isLazy=J,It.isMemo=ee,It.isPortal=z,It.isProfiler=L,It.isStrictMode=B,It.isSuspense=V,It.isValidElementType=w,It.typeOf=$}()),It}var Sx;function WN(){return Sx||(Sx=1,process.env.NODE_ENV==="production"?Vu.exports=BN():Vu.exports=zN()),Vu.exports}var cm,Tx;function UN(){if(Tx)return cm;Tx=1;var e=WN(),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(p){return e.isMemo(p)?i:o[p.$$typeof]||t}var s=Object.defineProperty,l=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,f=Object.prototype;function h(p,g,v){if(typeof g!="string"){if(f){var x=d(g);x&&x!==f&&h(p,x,v)}var _=l(g);c&&(_=_.concat(c(g)));for(var w=a(p),$=a(g),b=0;b<_.length;++b){var C=_[b];if(!n[C]&&!(v&&v[C])&&!($&&$[C])&&!(w&&w[C])){var T=u(g,C);try{s(p,C,T)}catch{}}}}return p}return cm=h,cm}UN();function HN(){return typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"}function I0(e,t){const n=m.useContext(O$);if(!n)throw new Error("Missing <CookiesProvider>");const i=Object.assign(Object.assign({},{doNotUpdate:!0}),t),[o,a]=m.useState(()=>n.getAll(i));HN()&&m.useLayoutEffect(()=>{function u(){const d=n.getAll(i);VN(e||null,d,o)&&a(d)}return n.addChangeListener(u),()=>{n.removeChangeListener(u)}},[n,o]);const s=m.useMemo(()=>n.set.bind(n),[n]),l=m.useMemo(()=>n.remove.bind(n),[n]),c=m.useMemo(()=>n.update.bind(n),[n]);return[o,s,l,c]}function VN(e,t,n){if(!e)return!0;for(let r of e)if(t[r]!==n[r])return!0;return!1}const qN=()=>{const e=Re.c(12),{axiosOptions:t,cookieDomain:n}=m.useContext(ln);let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=["Authorization"],e[0]=r):r=e[0];const[,i,o]=I0(r);let a;e[1]!==t?(a=Qt.create(t),e[1]=t,e[2]=a):a=e[2];const s=a,l=YN;let c;e[3]!==s||e[4]!==n||e[5]!==i?(c=async(p,g)=>s.post("/user/login",{kid:p,password:g}).then(v=>(localStorage.setItem("token",v.data),i("Authorization",v.data,{path:"/",secure:!0,sameSite:"none",domain:n,expires:H4(new Date(Date.now()),24)}),v.data)).catch(GN),e[3]=s,e[4]=n,e[5]=i,e[6]=c):c=e[6];const u=c;let d;e[7]!==o?(d=()=>{localStorage.removeItem("token"),localStorage.removeItem("user"),o("Authorization")},e[7]=o,e[8]=d):d=e[8];const f=d;let h;return e[9]!==u||e[10]!==f?(h={isAuthenticated:l,login:u,logout:f},e[9]=u,e[10]=f,e[11]=h):h=e[11],h};function YN(){const e=localStorage.getItem("token");return e!==null&&e.length>0}function GN(e){return console.log(e),null}const KN=()=>{const e=Re.c(18);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=["Authorization"],e[0]=t):t=e[0];const[,,n]=I0(t),{msalScopes:r,msalExtraScopes:i}=m.useContext(Jf),{instance:o,inProgress:a}=hy.useMsal(),s=hy.useIsAuthenticated();let l;e[1]!==s?(l=()=>s,e[1]=s,e[2]=l):l=e[2];const c=l;let u;e[3]!==c||e[4]!==a?(u=()=>!c()&&a!==mO.InteractionStatus.None,e[3]=c,e[4]=a,e[5]=u):u=e[5];const d=u;let f;e[6]!==o||e[7]!==i||e[8]!==r?(f=async()=>o.loginRedirect({scopes:r,extraScopesToConsent:i}).then(ZN).catch(XN),e[6]=o,e[7]=i,e[8]=r,e[9]=f):f=e[9];const h=f;let p;e[10]!==o||e[11]!==n?(p=()=>{o.logout(),localStorage.removeItem("user"),n("Authorization")},e[10]=o,e[11]=n,e[12]=p):p=e[12];const g=p;let v;return e[13]!==c||e[14]!==d||e[15]!==h||e[16]!==g?(v={isAuthenticated:c,isAuthenticating:d,login:h,logout:g},e[13]=c,e[14]=d,e[15]=h,e[16]=g,e[17]=v):v=e[17],v};function ZN(){return""}function XN(){return null}const M$=()=>{const e=Re.c(13),{useMsal:t}=m.useContext(Jf),n=gO.useQueryClient(),r=qN(),i=KN();let o;e[0]!==r||e[1]!==i||e[2]!==n||e[3]!==t?(o=(d,f)=>{const h=t?i.login():r.login(d,f);return n.invalidateQueries(),h},e[0]=r,e[1]=i,e[2]=n,e[3]=t,e[4]=o):o=e[4];const a=o,s=t?i.isAuthenticated:r.isAuthenticated;let l;e[5]!==i||e[6]!==t?(l=t?i.isAuthenticating:QN,e[5]=i,e[6]=t,e[7]=l):l=e[7];const c=t?i.logout:r.logout;let u;return e[8]!==s||e[9]!==l||e[10]!==c||e[11]!==a?(u={isAuthenticated:s,isAuthenticating:l,login:a,logout:c},e[8]=s,e[9]=l,e[10]=c,e[11]=a,e[12]=u):u=e[12],u};function QN(){return!1}const JN="_toast_1s57i_1",gl={toast:JN},eD=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}},ah=()=>{const e=Re.c(1),t=tD;let n;return e[0]===Symbol.for("react.memo_cache_sentinel")?(n={addNotification:t},e[0]=n):n=e[0],n};function tD(e,t){const n=ZC(e),r=eD(t),i=y.jsxs(y.Fragment,{children:[n,y.jsx(AC,{onClick:()=>Fa.dismiss(n),type:"button",style:{position:"absolute",fontSize:"12px",top:"calc(50% - 6px)",right:"8px"}})]});e:switch(t){case"success":{Fa(i,{id:n,duration:r,position:"top-center",icon:y.jsx(j7,{size:12}),className:ue("luminus-toast-success rounded shadow bg-success",gl.toast)});break e}case"danger":{Fa(i,{id:n,duration:r,position:"top-center",icon:y.jsx(_7,{size:12}),className:ue("luminus-toast-danger rounded shadow bg-danger",gl.toast)});break e}case"warning":{Fa(i,{id:n,duration:r,position:"top-center",icon:y.jsx(b7,{size:12}),className:ue("luminus-toast-warning rounded shadow bg-warning",gl.toast)});break e}case"info":{Fa(i,{id:n,duration:r,position:"top-center",icon:y.jsx(x7,{size:12}),className:ue("luminus-toast-info rounded shadow bg-info",gl.toast)});break e}case"prompt":{Fa(i,{id:n,duration:r,position:"top-center",icon:y.jsx(w7,{size:12}),className:ue("luminus-toast-prompt rounded shadow bg-light",gl.toast)});break e}}}const nD=Qt.CancelToken,sh=e=>{const{authenticated:t=!0,differentBaseUrl:n,silent:r=!1,customToken:i,ignoreDelegation:o,noToastOnStatus:a}={...e},{language:s,axiosOptions:l,texts:{axios:c}}=m.useContext(ln),{delegation:u}=m.useContext(VC),{getToken:d}=m.useContext(Jf),f=m.useMemo(()=>(u==null?void 0:u.id)??null,[u==null?void 0:u.id]),{addNotification:h}=ah(),{isAuthenticating:p}=M$(),g=m.useMemo(()=>Qt.create(l),[l]),v=m.useCallback(async b=>{var T,k,O;if(t&&!b.headers.Authorization){if(p())return console.log("Authentication in progress, waiting for token..."),Promise.reject(new Error("Authentication in progress"));const j=i?{token:i,expiresOn:H4(new Date(Date.now()),1)}:await d();if(!j)return console.log("No bearer token"),Promise.reject(new Error("No bearer token"));if(K4(j.expiresOn))return console.log("Token expired"),Promise.reject(new Error("Token expired"));b.headers.Authorization=`Bearer ${j.token}`}f!==null&&!o&&(b.headers.DelegationId=f.toString());const C=localStorage.getItem("search-use-asterisk")!=="false";return b.headers["Search-Use-Asterisk"]=C?"true":"false",(T=b.url)!=null&&T.includes("culture=")?b.url=(k=b.url)==null?void 0:k.replace(/culture=[a-z]{2}/,`culture=${s}`):b.url=`${b.url}${(O=b.url)!=null&&O.includes("?")?"&":"?"}culture=${s}`,b},[t,d,s,i,f,o,p]),x=m.useCallback(b=>{var k,O;if(console.log(b),Qt.isCancel(b)||b.message==="Authentication in progress"||b.message==="No bearer token"||b.message==="Token expired")return Promise.reject(b);const C=k0(b);if(C.length>0){const j=C.find(S=>S.name.toLowerCase()==="others");return j?(!r&&h(j.errors,"danger"),Promise.reject(b)):(!r&&h(c.validationError,"warning"),Promise.reject(b))}const T=GC(b);return T!==null?(!r&&h(`${c.permissionError}: ${M0(", ",...T)}`,"danger"),Promise.reject(b)):(a??[]).includes((k=b.response)==null?void 0:k.status)?Promise.reject(b):((O=b.response)==null?void 0:O.status)===403?(!r&&h(c.forbiddenError,"danger"),Promise.reject(b)):b.message&&b.message==="Network Error"?(!r&&h(c.networkError,"danger"),Promise.reject(b)):(Qt.isCancel(b)||(!r&&h(c.unexpectedError,"danger"),(b.response||b.request)&&!r&&h(c.unexpectedError,"danger")),Promise.reject(b))},[h,c.forbiddenError,c.networkError,c.permissionError,c.unexpectedError,c.validationError,r,a]),[_,w]=m.useState(!1);return m.useEffect(()=>{n&&(g.defaults.baseURL=n)},[n,g.defaults]),m.useEffect(()=>{g.interceptors.request.clear();const b=g.interceptors.request.use(v,C=>Promise.reject(C));return w(!0),()=>{g.interceptors.request.eject(b),w(!1)}},[g.interceptors.request,v]),m.useEffect(()=>{g.interceptors.response.clear();const b=g.interceptors.response.use(C=>C,x);return()=>{g.interceptors.response.eject(b)}},[g.interceptors.response,x]),m.useMemo(()=>({...g,interceptorsUsed:_}),[g,_])};let Il;const P0=()=>{const e=Re.c(15),{show:t,text:n,showConfirm:r,hideConfirm:i,textSm:o}=m.useContext(jC);let a;e[0]!==i?(a=()=>{i()},e[0]=i,e[1]=a):a=e[1];const s=a;let l;e[2]!==s?(l=()=>{s(),Il&&Il(!0)},e[2]=s,e[3]=l):l=e[3];const c=l;let u;e[4]!==s?(u=()=>{s(),Il&&Il(!1)},e[4]=s,e[5]=u):u=e[5];const d=u;let f;e[6]!==r?(f=async(g,v)=>(r(g,v),new Promise(rD)),e[6]=r,e[7]=f):f=e[7];const h=f;let p;return e[8]!==h||e[9]!==d||e[10]!==c||e[11]!==t||e[12]!==n||e[13]!==o?(p={confirm:h,onConfirm:c,onCancel:d,show:t,text:n,textSm:o},e[8]=h,e[9]=d,e[10]=c,e[11]=t,e[12]=n,e[13]=o,e[14]=p):p=e[14],p};function rD(e){Il=e}var xt;(function(e){e.assertEqual=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"&&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})(xt||(xt={}));var zg;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(zg||(zg={}));const Ce=xt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),_i=e=>{switch(typeof e){case"undefined":return Ce.undefined;case"string":return Ce.string;case"number":return Number.isNaN(e)?Ce.nan:Ce.number;case"boolean":return Ce.boolean;case"function":return Ce.function;case"bigint":return Ce.bigint;case"symbol":return Ce.symbol;case"object":return Array.isArray(e)?Ce.array:e===null?Ce.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Ce.promise:typeof Map<"u"&&e instanceof Map?Ce.map:typeof Set<"u"&&e instanceof Set?Ce.set:typeof Date<"u"&&e instanceof Date?Ce.date:Ce.object;default:return Ce.unknown}},he=xt.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"]),iD=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class lr extends Error{get errors(){return this.issues}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}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,l=0;for(;l<a.path.length;){const c=a.path[l];l===a.path.length-1?(s[c]=s[c]||{_errors:[]},s[c]._errors.push(n(a))):s[c]=s[c]||{_errors:[]},s=s[c],l++}}};return i(this),r}static assert(t){if(!(t instanceof lr))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,xt.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const i of this.issues)if(i.path.length>0){const o=i.path[0];n[o]=n[o]||[],n[o].push(t(i))}else r.push(t(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}lr.create=e=>new lr(e);const $s=(e,t)=>{let n;switch(e.code){case he.invalid_type:e.received===Ce.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case he.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,xt.jsonStringifyReplacer)}`;break;case he.unrecognized_keys:n=`Unrecognized key(s) in object: ${xt.joinValues(e.keys,", ")}`;break;case he.invalid_union:n="Invalid input";break;case he.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${xt.joinValues(e.options)}`;break;case he.invalid_enum_value:n=`Invalid enum value. Expected ${xt.joinValues(e.options)}, received '${e.received}'`;break;case he.invalid_arguments:n="Invalid function arguments";break;case he.invalid_return_type:n="Invalid function return type";break;case he.invalid_date:n="Invalid date";break;case he.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}"`:xt.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case he.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==="bigint"?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 he.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 he.custom:n="Invalid input";break;case he.invalid_intersection_types:n="Intersection results could not be merged";break;case he.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case he.not_finite:n="Number must be finite";break;default:n=t.defaultError,xt.assertNever(e)}return{message:n}};let A$=$s;function oD(e){A$=e}function Ud(){return A$}const Hd=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 l=r.filter(c=>!!c).slice().reverse();for(const c of l)s=c(a,{data:t,defaultError:s}).message;return{...i,path:o,message:s}},aD=[];function _e(e,t){const n=Ud(),r=Hd({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===$s?void 0:$s].filter(i=>!!i)});e.common.issues.push(r)}class In{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 In.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"}),es=e=>({status:"dirty",value:e}),Hn=e=>({status:"valid",value:e}),Wg=e=>e.status==="aborted",Ug=e=>e.status==="dirty",la=e=>e.status==="valid",ac=e=>typeof Promise<"u"&&e instanceof Promise;var Oe;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(Oe||(Oe={}));class ei{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||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Ex=(e,t)=>{if(la(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 lr(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)=>{const{message:l}=e;return a.code==="invalid_enum_value"?{message:l??s.defaultError}:typeof s.data>"u"?{message:l??r??s.defaultError}:a.code!=="invalid_type"?{message:s.defaultError}:{message:l??n??s.defaultError}},description:i}}class ut{get description(){return this._def.description}_getType(t){return _i(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:_i(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new In,ctx:{common:t.parent.common,data:t.data,parsedType:_i(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(ac(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){const r={common:{issues:[],async:(n==null?void 0:n.async)??!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:_i(t)},i=this._parseSync({data:t,path:r.path,parent:r});return Ex(r,i)}"~validate"(t){var r,i;const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:_i(t)};if(!this["~standard"].async)try{const o=this._parseSync({data:t,path:[],parent:n});return la(o)?{value:o.value}:{issues:n.common.issues}}catch(o){(i=(r=o==null?void 0:o.message)==null?void 0:r.toLowerCase())!=null&&i.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(o=>la(o)?{value:o.value}:{issues:n.common.issues})}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:_i(t)},i=this._parse({data:t,path:r.path,parent:r}),o=await(ac(i)?i:Promise.resolve(i));return Ex(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:he.custom,...r(i)});return typeof Promise<"u"&&a instanceof Promise?a.then(l=>l?!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 Dr({schema:this,typeName:Ue.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}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),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return Kr.create(this,this._def)}nullable(){return bo.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Nr.create(this)}promise(){return Ts.create(this,this._def)}or(t){return uc.create([this,t],this._def)}and(t){return dc.create(this,t,this._def)}transform(t){return new Dr({...ot(this._def),schema:this,typeName:Ue.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new gc({...ot(this._def),innerType:this,defaultValue:n,typeName:Ue.ZodDefault})}brand(){return new L0({typeName:Ue.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:Ue.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return iu.create(this,t)}readonly(){return bc.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const sD=/^c[^\s-]{8,}$/i,lD=/^[0-9a-z]+$/,cD=/^[0-9A-HJKMNP-TV-Z]{26}$/i,uD=/^[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,dD=/^[a-z0-9_-]{21}$/i,fD=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,hD=/^[-+]?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)?)??$/,pD=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,mD="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let um;const gD=/^(?:(?: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])$/,vD=/^(?:(?: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])\/(3[0-2]|[12]?[0-9])$/,bD=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,yD=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,xD=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,wD=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,R$="((\\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])))",_D=new RegExp(`^${R$}$`);function j$(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function CD(e){return new RegExp(`^${j$(e)}$`)}function N$(e){let t=`${R$}T${j$(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 $D(e,t){return!!((t==="v4"||!t)&&gD.test(e)||(t==="v6"||!t)&&bD.test(e))}function SD(e,t){if(!fD.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),i=JSON.parse(atob(r));return!(typeof i!="object"||i===null||"typ"in i&&(i==null?void 0:i.typ)!=="JWT"||!i.alg||t&&i.alg!==t)}catch{return!1}}function TD(e,t){return!!((t==="v4"||!t)&&vD.test(e)||(t==="v6"||!t)&&yD.test(e))}class Rr extends ut{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Ce.string){const o=this._getOrReturnCtx(t);return _e(o,{code:he.invalid_type,expected:Ce.string,received:o.parsedType}),ze}const r=new In;let i;for(const o of this._def.checks)if(o.kind==="min")t.data.length<o.value&&(i=this._getOrReturnCtx(t,i),_e(i,{code:he.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),_e(i,{code:he.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?_e(i,{code:he.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):s&&_e(i,{code:he.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),r.dirty())}else if(o.kind==="email")pD.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"email",code:he.invalid_string,message:o.message}),r.dirty());else if(o.kind==="emoji")um||(um=new RegExp(mD,"u")),um.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"emoji",code:he.invalid_string,message:o.message}),r.dirty());else if(o.kind==="uuid")uD.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"uuid",code:he.invalid_string,message:o.message}),r.dirty());else if(o.kind==="nanoid")dD.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"nanoid",code:he.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid")sD.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"cuid",code:he.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid2")lD.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"cuid2",code:he.invalid_string,message:o.message}),r.dirty());else if(o.kind==="ulid")cD.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"ulid",code:he.invalid_string,message:o.message}),r.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{i=this._getOrReturnCtx(t,i),_e(i,{validation:"url",code:he.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),_e(i,{validation:"regex",code:he.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),_e(i,{code:he.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),_e(i,{code:he.invalid_string,validation:{startsWith:o.value},message:o.message}),r.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(i=this._getOrReturnCtx(t,i),_e(i,{code:he.invalid_string,validation:{endsWith:o.value},message:o.message}),r.dirty()):o.kind==="datetime"?N$(o).test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{code:he.invalid_string,validation:"datetime",message:o.message}),r.dirty()):o.kind==="date"?_D.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{code:he.invalid_string,validation:"date",message:o.message}),r.dirty()):o.kind==="time"?CD(o).test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{code:he.invalid_string,validation:"time",message:o.message}),r.dirty()):o.kind==="duration"?hD.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"duration",code:he.invalid_string,message:o.message}),r.dirty()):o.kind==="ip"?$D(t.data,o.version)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"ip",code:he.invalid_string,message:o.message}),r.dirty()):o.kind==="jwt"?SD(t.data,o.alg)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"jwt",code:he.invalid_string,message:o.message}),r.dirty()):o.kind==="cidr"?TD(t.data,o.version)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"cidr",code:he.invalid_string,message:o.message}),r.dirty()):o.kind==="base64"?xD.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"base64",code:he.invalid_string,message:o.message}),r.dirty()):o.kind==="base64url"?wD.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"base64url",code:he.invalid_string,message:o.message}),r.dirty()):xt.assertNever(o);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(i=>t.test(i),{validation:n,code:he.invalid_string,...Oe.errToObj(r)})}_addCheck(t){return new Rr({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Oe.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Oe.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Oe.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Oe.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Oe.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Oe.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Oe.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Oe.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Oe.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...Oe.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...Oe.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Oe.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...Oe.errToObj(t)})}datetime(t){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:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...Oe.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,...Oe.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...Oe.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...Oe.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...Oe.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...Oe.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...Oe.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...Oe.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...Oe.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...Oe.errToObj(n)})}nonempty(t){return this.min(1,Oe.errToObj(t))}trim(){return new Rr({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Rr({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Rr({...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 isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}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}}Rr.create=e=>new Rr({checks:[],typeName:Ue.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...ot(e)});function ED(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,o=Number.parseInt(e.toFixed(i).replace(".","")),a=Number.parseInt(t.toFixed(i).replace(".",""));return o%a/10**i}class mo extends ut{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)!==Ce.number){const o=this._getOrReturnCtx(t);return _e(o,{code:he.invalid_type,expected:Ce.number,received:o.parsedType}),ze}let r;const i=new In;for(const o of this._def.checks)o.kind==="int"?xt.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),_e(r,{code:he.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),_e(r,{code:he.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),_e(r,{code:he.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),i.dirty()):o.kind==="multipleOf"?ED(t.data,o.value)!==0&&(r=this._getOrReturnCtx(t,r),_e(r,{code:he.not_multiple_of,multipleOf:o.value,message:o.message}),i.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),_e(r,{code:he.not_finite,message:o.message}),i.dirty()):xt.assertNever(o);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Oe.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Oe.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Oe.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Oe.toString(n))}setLimit(t,n,r,i){return new mo({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Oe.toString(i)}]})}_addCheck(t){return new mo({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Oe.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Oe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Oe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Oe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Oe.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Oe.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:Oe.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Oe.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Oe.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"&&xt.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)}}mo.create=e=>new mo({checks:[],typeName:Ue.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...ot(e)});class go extends ut{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==Ce.bigint)return this._getInvalidInput(t);let r;const i=new In;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),_e(r,{code:he.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),_e(r,{code:he.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),_e(r,{code:he.not_multiple_of,multipleOf:o.value,message:o.message}),i.dirty()):xt.assertNever(o);return{status:i.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return _e(n,{code:he.invalid_type,expected:Ce.bigint,received:n.parsedType}),ze}gte(t,n){return this.setLimit("min",t,!0,Oe.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Oe.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Oe.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Oe.toString(n))}setLimit(t,n,r,i){return new go({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Oe.toString(i)}]})}_addCheck(t){return new go({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Oe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Oe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Oe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Oe.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Oe.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}}go.create=e=>new go({checks:[],typeName:Ue.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...ot(e)});class sc extends ut{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Ce.boolean){const r=this._getOrReturnCtx(t);return _e(r,{code:he.invalid_type,expected:Ce.boolean,received:r.parsedType}),ze}return Hn(t.data)}}sc.create=e=>new sc({typeName:Ue.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...ot(e)});class ca extends ut{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Ce.date){const o=this._getOrReturnCtx(t);return _e(o,{code:he.invalid_type,expected:Ce.date,received:o.parsedType}),ze}if(Number.isNaN(t.data.getTime())){const o=this._getOrReturnCtx(t);return _e(o,{code:he.invalid_date}),ze}const r=new In;let i;for(const o of this._def.checks)o.kind==="min"?t.data.getTime()<o.value&&(i=this._getOrReturnCtx(t,i),_e(i,{code:he.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),_e(i,{code:he.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),r.dirty()):xt.assertNever(o);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new ca({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:Oe.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:Oe.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}}ca.create=e=>new ca({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Ue.ZodDate,...ot(e)});class Vd extends ut{_parse(t){if(this._getType(t)!==Ce.symbol){const r=this._getOrReturnCtx(t);return _e(r,{code:he.invalid_type,expected:Ce.symbol,received:r.parsedType}),ze}return Hn(t.data)}}Vd.create=e=>new Vd({typeName:Ue.ZodSymbol,...ot(e)});class lc extends ut{_parse(t){if(this._getType(t)!==Ce.undefined){const r=this._getOrReturnCtx(t);return _e(r,{code:he.invalid_type,expected:Ce.undefined,received:r.parsedType}),ze}return Hn(t.data)}}lc.create=e=>new lc({typeName:Ue.ZodUndefined,...ot(e)});class cc extends ut{_parse(t){if(this._getType(t)!==Ce.null){const r=this._getOrReturnCtx(t);return _e(r,{code:he.invalid_type,expected:Ce.null,received:r.parsedType}),ze}return Hn(t.data)}}cc.create=e=>new cc({typeName:Ue.ZodNull,...ot(e)});class Ss extends ut{constructor(){super(...arguments),this._any=!0}_parse(t){return Hn(t.data)}}Ss.create=e=>new Ss({typeName:Ue.ZodAny,...ot(e)});class ta extends ut{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Hn(t.data)}}ta.create=e=>new ta({typeName:Ue.ZodUnknown,...ot(e)});class Di extends ut{_parse(t){const n=this._getOrReturnCtx(t);return _e(n,{code:he.invalid_type,expected:Ce.never,received:n.parsedType}),ze}}Di.create=e=>new Di({typeName:Ue.ZodNever,...ot(e)});class qd extends ut{_parse(t){if(this._getType(t)!==Ce.undefined){const r=this._getOrReturnCtx(t);return _e(r,{code:he.invalid_type,expected:Ce.void,received:r.parsedType}),ze}return Hn(t.data)}}qd.create=e=>new qd({typeName:Ue.ZodVoid,...ot(e)});class Nr extends ut{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),i=this._def;if(n.parsedType!==Ce.array)return _e(n,{code:he.invalid_type,expected:Ce.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)&&(_e(n,{code:a?he.too_big:he.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&&(_e(n,{code:he.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&&(_e(n,{code:he.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 ei(n,a,n.path,s)))).then(a=>In.mergeArray(r,a));const o=[...n.data].map((a,s)=>i.type._parseSync(new ei(n,a,n.path,s)));return In.mergeArray(r,o)}get element(){return this._def.type}min(t,n){return new Nr({...this._def,minLength:{value:t,message:Oe.toString(n)}})}max(t,n){return new Nr({...this._def,maxLength:{value:t,message:Oe.toString(n)}})}length(t,n){return new Nr({...this._def,exactLength:{value:t,message:Oe.toString(n)}})}nonempty(t){return this.min(1,t)}}Nr.create=(e,t)=>new Nr({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Ue.ZodArray,...ot(t)});function Ja(e){if(e instanceof an){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Kr.create(Ja(r))}return new an({...e._def,shape:()=>t})}else return e instanceof Nr?new Nr({...e._def,type:Ja(e.element)}):e instanceof Kr?Kr.create(Ja(e.unwrap())):e instanceof bo?bo.create(Ja(e.unwrap())):e instanceof ti?ti.create(e.items.map(t=>Ja(t))):e}class an extends ut{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=xt.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==Ce.object){const c=this._getOrReturnCtx(t);return _e(c,{code:he.invalid_type,expected:Ce.object,received:c.parsedType}),ze}const{status:r,ctx:i}=this._processInputParams(t),{shape:o,keys:a}=this._getCached(),s=[];if(!(this._def.catchall instanceof Di&&this._def.unknownKeys==="strip"))for(const c in i.data)a.includes(c)||s.push(c);const l=[];for(const c of a){const u=o[c],d=i.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new ei(i,d,i.path,c)),alwaysSet:c in i.data})}if(this._def.catchall instanceof Di){const c=this._def.unknownKeys;if(c==="passthrough")for(const u of s)l.push({key:{status:"valid",value:u},value:{status:"valid",value:i.data[u]}});else if(c==="strict")s.length>0&&(_e(i,{code:he.unrecognized_keys,keys:s}),r.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const u of s){const d=i.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new ei(i,d,i.path,u)),alwaysSet:u in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const c=[];for(const u of l){const d=await u.key,f=await u.value;c.push({key:d,value:f,alwaysSet:u.alwaysSet})}return c}).then(c=>In.mergeObjectSync(r,c)):In.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return Oe.errToObj,new an({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var o,a;const i=((a=(o=this._def).errorMap)==null?void 0:a.call(o,n,r).message)??r.defaultError;return n.code==="unrecognized_keys"?{message:Oe.errToObj(t).message??i}:{message:i}}}:{}})}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:Ue.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new an({...this._def,catchall:t})}pick(t){const n={};for(const r of xt.objectKeys(t))t[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new an({...this._def,shape:()=>n})}omit(t){const n={};for(const r of xt.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new an({...this._def,shape:()=>n})}deepPartial(){return Ja(this)}partial(t){const n={};for(const r of xt.objectKeys(this.shape)){const i=this.shape[r];t&&!t[r]?n[r]=i:n[r]=i.optional()}return new an({...this._def,shape:()=>n})}required(t){const n={};for(const r of xt.objectKeys(this.shape))if(t&&!t[r])n[r]=this.shape[r];else{let o=this.shape[r];for(;o instanceof Kr;)o=o._def.innerType;n[r]=o}return new an({...this._def,shape:()=>n})}keyof(){return D$(xt.objectKeys(this.shape))}}an.create=(e,t)=>new an({shape:()=>e,unknownKeys:"strip",catchall:Di.create(),typeName:Ue.ZodObject,...ot(t)});an.strictCreate=(e,t)=>new an({shape:()=>e,unknownKeys:"strict",catchall:Di.create(),typeName:Ue.ZodObject,...ot(t)});an.lazycreate=(e,t)=>new an({shape:e,unknownKeys:"strip",catchall:Di.create(),typeName:Ue.ZodObject,...ot(t)});class uc extends ut{_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 lr(s.ctx.common.issues));return _e(n,{code:he.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 l of r){const c={...n,common:{...n.common,issues:[]},parent:null},u=l._parseSync({data:n.data,path:n.path,parent:c});if(u.status==="valid")return u;u.status==="dirty"&&!o&&(o={result:u,ctx:c}),c.common.issues.length&&a.push(c.common.issues)}if(o)return n.common.issues.push(...o.ctx.common.issues),o.result;const s=a.map(l=>new lr(l));return _e(n,{code:he.invalid_union,unionErrors:s}),ze}}get options(){return this._def.options}}uc.create=(e,t)=>new uc({options:e,typeName:Ue.ZodUnion,...ot(t)});const gi=e=>e instanceof hc?gi(e.schema):e instanceof Dr?gi(e.innerType()):e instanceof pc?[e.value]:e instanceof vo?e.options:e instanceof mc?xt.objectValues(e.enum):e instanceof gc?gi(e._def.innerType):e instanceof lc?[void 0]:e instanceof cc?[null]:e instanceof Kr?[void 0,...gi(e.unwrap())]:e instanceof bo?[null,...gi(e.unwrap())]:e instanceof L0||e instanceof bc?gi(e.unwrap()):e instanceof vc?gi(e._def.innerType):[];class lh extends ut{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Ce.object)return _e(n,{code:he.invalid_type,expected:Ce.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}):(_e(n,{code:he.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=gi(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 lh({typeName:Ue.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i,...ot(r)})}}function Hg(e,t){const n=_i(e),r=_i(t);if(e===t)return{valid:!0,data:e};if(n===Ce.object&&r===Ce.object){const i=xt.objectKeys(t),o=xt.objectKeys(e).filter(s=>i.indexOf(s)!==-1),a={...e,...t};for(const s of o){const l=Hg(e[s],t[s]);if(!l.valid)return{valid:!1};a[s]=l.data}return{valid:!0,data:a}}else if(n===Ce.array&&r===Ce.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],l=Hg(a,s);if(!l.valid)return{valid:!1};i.push(l.data)}return{valid:!0,data:i}}else return n===Ce.date&&r===Ce.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class dc extends ut{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=(o,a)=>{if(Wg(o)||Wg(a))return ze;const s=Hg(o.value,a.value);return s.valid?((Ug(o)||Ug(a))&&n.dirty(),{status:n.value,value:s.data}):(_e(r,{code:he.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}))}}dc.create=(e,t,n)=>new dc({left:e,right:t,typeName:Ue.ZodIntersection,...ot(n)});class ti extends ut{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Ce.array)return _e(r,{code:he.invalid_type,expected:Ce.array,received:r.parsedType}),ze;if(r.data.length<this._def.items.length)return _e(r,{code:he.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ze;!this._def.rest&&r.data.length>this._def.items.length&&(_e(r,{code:he.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const o=[...r.data].map((a,s)=>{const l=this._def.items[s]||this._def.rest;return l?l._parse(new ei(r,a,r.path,s)):null}).filter(a=>!!a);return r.common.async?Promise.all(o).then(a=>In.mergeArray(n,a)):In.mergeArray(n,o)}get items(){return this._def.items}rest(t){return new ti({...this._def,rest:t})}}ti.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ti({items:e,typeName:Ue.ZodTuple,rest:null,...ot(t)})};class fc extends ut{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!==Ce.object)return _e(r,{code:he.invalid_type,expected:Ce.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 ei(r,s,r.path,s)),value:a._parse(new ei(r,r.data[s],r.path,s)),alwaysSet:s in r.data});return r.common.async?In.mergeObjectAsync(n,i):In.mergeObjectSync(n,i)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof ut?new fc({keyType:t,valueType:n,typeName:Ue.ZodRecord,...ot(r)}):new fc({keyType:Rr.create(),valueType:t,typeName:Ue.ZodRecord,...ot(n)})}}class Yd extends ut{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!==Ce.map)return _e(r,{code:he.invalid_type,expected:Ce.map,received:r.parsedType}),ze;const i=this._def.keyType,o=this._def.valueType,a=[...r.data.entries()].map(([s,l],c)=>({key:i._parse(new ei(r,s,r.path,[c,"key"])),value:o._parse(new ei(r,l,r.path,[c,"value"]))}));if(r.common.async){const s=new Map;return Promise.resolve().then(async()=>{for(const l of a){const c=await l.key,u=await l.value;if(c.status==="aborted"||u.status==="aborted")return ze;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),s.set(c.value,u.value)}return{status:n.value,value:s}})}else{const s=new Map;for(const l of a){const c=l.key,u=l.value;if(c.status==="aborted"||u.status==="aborted")return ze;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),s.set(c.value,u.value)}return{status:n.value,value:s}}}}Yd.create=(e,t,n)=>new Yd({valueType:t,keyType:e,typeName:Ue.ZodMap,...ot(n)});class ua extends ut{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Ce.set)return _e(r,{code:he.invalid_type,expected:Ce.set,received:r.parsedType}),ze;const i=this._def;i.minSize!==null&&r.data.size<i.minSize.value&&(_e(r,{code:he.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&&(_e(r,{code:he.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(l){const c=new Set;for(const u of l){if(u.status==="aborted")return ze;u.status==="dirty"&&n.dirty(),c.add(u.value)}return{status:n.value,value:c}}const s=[...r.data.values()].map((l,c)=>o._parse(new ei(r,l,r.path,c)));return r.common.async?Promise.all(s).then(l=>a(l)):a(s)}min(t,n){return new ua({...this._def,minSize:{value:t,message:Oe.toString(n)}})}max(t,n){return new ua({...this._def,maxSize:{value:t,message:Oe.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}ua.create=(e,t)=>new ua({valueType:e,minSize:null,maxSize:null,typeName:Ue.ZodSet,...ot(t)});class as extends ut{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Ce.function)return _e(n,{code:he.invalid_type,expected:Ce.function,received:n.parsedType}),ze;function r(s,l){return Hd({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Ud(),$s].filter(c=>!!c),issueData:{code:he.invalid_arguments,argumentsError:l}})}function i(s,l){return Hd({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Ud(),$s].filter(c=>!!c),issueData:{code:he.invalid_return_type,returnTypeError:l}})}const o={errorMap:n.common.contextualErrorMap},a=n.data;if(this._def.returns instanceof Ts){const s=this;return Hn(async function(...l){const c=new lr([]),u=await s._def.args.parseAsync(l,o).catch(h=>{throw c.addIssue(r(l,h)),c}),d=await Reflect.apply(a,this,u);return await s._def.returns._def.type.parseAsync(d,o).catch(h=>{throw c.addIssue(i(d,h)),c})})}else{const s=this;return Hn(function(...l){const c=s._def.args.safeParse(l,o);if(!c.success)throw new lr([r(l,c.error)]);const u=Reflect.apply(a,this,c.data),d=s._def.returns.safeParse(u,o);if(!d.success)throw new lr([i(u,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new as({...this._def,args:ti.create(t).rest(ta.create())})}returns(t){return new as({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new as({args:t||ti.create([]).rest(ta.create()),returns:n||ta.create(),typeName:Ue.ZodFunction,...ot(r)})}}class hc extends ut{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})}}hc.create=(e,t)=>new hc({getter:e,typeName:Ue.ZodLazy,...ot(t)});class pc extends ut{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return _e(n,{received:n.data,code:he.invalid_literal,expected:this._def.value}),ze}return{status:"valid",value:t.data}}get value(){return this._def.value}}pc.create=(e,t)=>new pc({value:e,typeName:Ue.ZodLiteral,...ot(t)});function D$(e,t){return new vo({values:e,typeName:Ue.ZodEnum,...ot(t)})}class vo extends ut{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return _e(n,{expected:xt.joinValues(r),received:n.parsedType,code:he.invalid_type}),ze}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return _e(n,{received:n.data,code:he.invalid_enum_value,options:r}),ze}return Hn(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 vo.create(t,{...this._def,...n})}exclude(t,n=this._def){return vo.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}vo.create=D$;class mc extends ut{_parse(t){const n=xt.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==Ce.string&&r.parsedType!==Ce.number){const i=xt.objectValues(n);return _e(r,{expected:xt.joinValues(i),received:r.parsedType,code:he.invalid_type}),ze}if(this._cache||(this._cache=new Set(xt.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const i=xt.objectValues(n);return _e(r,{received:r.data,code:he.invalid_enum_value,options:i}),ze}return Hn(t.data)}get enum(){return this._def.values}}mc.create=(e,t)=>new mc({values:e,typeName:Ue.ZodNativeEnum,...ot(t)});class Ts extends ut{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Ce.promise&&n.common.async===!1)return _e(n,{code:he.invalid_type,expected:Ce.promise,received:n.parsedType}),ze;const r=n.parsedType===Ce.promise?n.data:Promise.resolve(n.data);return Hn(r.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Ts.create=(e,t)=>new Ts({type:e,typeName:Ue.ZodPromise,...ot(t)});class Dr extends ut{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Ue.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=>{_e(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 l=await this._def.schema._parseAsync({data:s,path:r.path,parent:r});return l.status==="aborted"?ze:l.status==="dirty"||n.value==="dirty"?es(l.value):l});{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"?es(s.value):s}}if(i.type==="refinement"){const a=s=>{const l=i.refinement(s,o);if(r.common.async)return Promise.resolve(l);if(l 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(!la(a))return ze;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=>la(a)?Promise.resolve(i.transform(a.value,o)).then(s=>({status:n.value,value:s})):ze);xt.assertNever(i)}}Dr.create=(e,t,n)=>new Dr({schema:e,typeName:Ue.ZodEffects,effect:t,...ot(n)});Dr.createWithPreprocess=(e,t,n)=>new Dr({schema:t,effect:{type:"preprocess",transform:e},typeName:Ue.ZodEffects,...ot(n)});class Kr extends ut{_parse(t){return this._getType(t)===Ce.undefined?Hn(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Kr.create=(e,t)=>new Kr({innerType:e,typeName:Ue.ZodOptional,...ot(t)});class bo extends ut{_parse(t){return this._getType(t)===Ce.null?Hn(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}bo.create=(e,t)=>new bo({innerType:e,typeName:Ue.ZodNullable,...ot(t)});class gc extends ut{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===Ce.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}gc.create=(e,t)=>new gc({innerType:e,typeName:Ue.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...ot(t)});class vc extends ut{_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 ac(i)?i.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new lr(r.common.issues)},input:r.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new lr(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}vc.create=(e,t)=>new vc({innerType:e,typeName:Ue.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...ot(t)});class Gd extends ut{_parse(t){if(this._getType(t)!==Ce.nan){const r=this._getOrReturnCtx(t);return _e(r,{code:he.invalid_type,expected:Ce.nan,received:r.parsedType}),ze}return{status:"valid",value:t.data}}}Gd.create=e=>new Gd({typeName:Ue.ZodNaN,...ot(e)});const kD=Symbol("zod_brand");class L0 extends ut{_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 iu extends ut{_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(),es(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 iu({in:t,out:n,typeName:Ue.ZodPipeline})}}class bc extends ut{_parse(t){const n=this._def.innerType._parse(t),r=i=>(la(i)&&(i.value=Object.freeze(i.value)),i);return ac(n)?n.then(i=>r(i)):r(n)}unwrap(){return this._def.innerType}}bc.create=(e,t)=>new bc({innerType:e,typeName:Ue.ZodReadonly,...ot(t)});function kx(e,t){const n=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof n=="string"?{message:n}:n}function I$(e,t={},n){return e?Ss.create().superRefine((r,i)=>{const o=e(r);if(o instanceof Promise)return o.then(a=>{if(!a){const s=kx(t,r),l=s.fatal??n??!0;i.addIssue({code:"custom",...s,fatal:l})}});if(!o){const a=kx(t,r),s=a.fatal??n??!0;i.addIssue({code:"custom",...a,fatal:s})}}):Ss.create()}const OD={object:an.lazycreate};var Ue;(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"})(Ue||(Ue={}));const MD=(e,t={message:`Input not instance of ${e.name}`})=>I$(n=>n instanceof e,t),F0=Rr.create,P$=mo.create,AD=Gd.create,RD=go.create,L$=sc.create,jD=ca.create,ND=Vd.create,DD=lc.create,ID=cc.create,F$=Ss.create,PD=ta.create,LD=Di.create,FD=qd.create,B$=Nr.create,Si=an.create,BD=an.strictCreate,zD=uc.create,WD=lh.create,UD=dc.create,HD=ti.create,VD=fc.create,qD=Yd.create,YD=ua.create,GD=as.create,KD=hc.create,ZD=pc.create,z$=vo.create,XD=mc.create,QD=Ts.create,Ox=Dr.create,JD=Kr.create,eI=bo.create,tI=Dr.createWithPreprocess,nI=iu.create,rI=()=>F0().optional(),iI=()=>P$().optional(),oI=()=>L$().optional(),Pl={string:e=>Rr.create({...e,coerce:!0}),number:e=>mo.create({...e,coerce:!0}),boolean:e=>sc.create({...e,coerce:!0}),bigint:e=>go.create({...e,coerce:!0}),date:e=>ca.create({...e,coerce:!0})},aI=ze,Ll=Object.freeze(Object.defineProperty({__proto__:null,BRAND:kD,DIRTY:es,EMPTY_PATH:aD,INVALID:ze,NEVER:aI,OK:Hn,ParseStatus:In,Schema:ut,ZodAny:Ss,ZodArray:Nr,ZodBigInt:go,ZodBoolean:sc,ZodBranded:L0,ZodCatch:vc,ZodDate:ca,ZodDefault:gc,ZodDiscriminatedUnion:lh,ZodEffects:Dr,ZodEnum:vo,ZodError:lr,get ZodFirstPartyTypeKind(){return Ue},ZodFunction:as,ZodIntersection:dc,ZodIssueCode:he,ZodLazy:hc,ZodLiteral:pc,ZodMap:Yd,ZodNaN:Gd,ZodNativeEnum:mc,ZodNever:Di,ZodNull:cc,ZodNullable:bo,ZodNumber:mo,ZodObject:an,ZodOptional:Kr,ZodParsedType:Ce,ZodPipeline:iu,ZodPromise:Ts,ZodReadonly:bc,ZodRecord:fc,ZodSchema:ut,ZodSet:ua,ZodString:Rr,ZodSymbol:Vd,ZodTransformer:Dr,ZodTuple:ti,ZodType:ut,ZodUndefined:lc,ZodUnion:uc,ZodUnknown:ta,ZodVoid:qd,addIssueToContext:_e,any:F$,array:B$,bigint:RD,boolean:L$,coerce:Pl,custom:I$,date:jD,datetimeRegex:N$,defaultErrorMap:$s,discriminatedUnion:WD,effect:Ox,enum:z$,function:GD,getErrorMap:Ud,getParsedType:_i,instanceof:MD,intersection:UD,isAborted:Wg,isAsync:ac,isDirty:Ug,isValid:la,late:OD,lazy:KD,literal:ZD,makeIssue:Hd,map:qD,nan:AD,nativeEnum:XD,never:LD,null:ID,nullable:eI,number:P$,object:Si,get objectUtil(){return zg},oboolean:oI,onumber:iI,optional:JD,ostring:rI,pipeline:nI,preprocess:tI,promise:QD,quotelessJson:iD,record:VD,set:YD,setErrorMap:oD,strictObject:BD,string:F0,symbol:ND,transformer:Ox,tuple:HD,undefined:DD,union:zD,unknown:PD,get util(){return xt},void:FD},Symbol.toStringTag,{value:"Module"})),ch=()=>{const e=Re.c(41),{texts:t}=m.useContext(ln),{formValidation:n}=t;let r;e[0]!==n?(r=R=>{let M=(R!=null&&R.useCoerce?Pl:Ll).string({invalid_type_error:n.required,required_error:n.required});return R!=null&&R.email&&(M=M.email(n.invalidEmail)),R!=null&&R.length&&(M=M.min(R.length,n.length(R.length))),R!=null&&R.minLength&&(M=M.min(R.minLength,n.minLength(R.minLength))),R!=null&&R.maxLength&&(M=M.max(R.maxLength,n.maxLength(R.maxLength))),R!=null&&R.numeric&&(M=M.regex(/^\d+$/,n.noCharactersOtherThanNumbers)),R!=null&&R.regex&&(M=M.regex(R.regex,n.invalidFormat)),M.transform(sI)},e[0]=n,e[1]=r):r=e[1];const i=r;let o;e[2]!==i?(o=R=>i(R).nullable().optional().transform(lI),e[2]=i,e[3]=o):o=e[3];const a=o;let s;e[4]!==n?(s=R=>{const M=(R==null?void 0:R.min)??Number.MIN_SAFE_INTEGER,I=(R==null?void 0:R.max)??Number.MAX_SAFE_INTEGER,F=(R!=null&&R.useCoerce?Pl:Ll).number({invalid_type_error:n.required,required_error:n.required}).min(M,n.lessThanMin(M)).max(I,n.moreThanMax(I));return F.transform(cI),F},e[4]=n,e[5]=s):s=e[5];const l=s;let c;e[6]!==l?(c=R=>l(R).nullable().optional().transform(uI),e[6]=l,e[7]=c):c=e[7];const u=c;let d;e[8]!==n.required?(d=R=>(R!=null&&R.useCoerce?Pl:Ll).boolean({invalid_type_error:n.required,required_error:n.required}).transform(dI),e[8]=n.required,e[9]=d):d=e[9];const f=d;let h;e[10]!==n.invalidDate||e[11]!==n.required?(h=R=>(R!=null&&R.useCoerce?Pl:Ll).string({invalid_type_error:n.required,required_error:n.required}).refine(QC,{message:n.invalidDate}).transform(fI),e[10]=n.invalidDate,e[11]=n.required,e[12]=h):h=e[12];const p=h;let g;e[13]!==p?(g=R=>p(R).nullable().transform(hI),e[13]=p,e[14]=g):g=e[14];const v=g;let x;e[15]!==n.required?(x=(R,M)=>z$(R,{invalid_type_error:n.required,required_error:n.required}).transform(pI),e[15]=n.required,e[16]=x):x=e[16];const _=x;let w;e[17]!==_?(w=(R,M)=>_(R,M).nullable().transform(mI),e[17]=_,e[18]=w):w=e[18];const $=w;let b;e[19]!==u?(b=R=>Si({id:u({useCoerce:!0})}).nullable().transform(gI),e[19]=u,e[20]=b):b=e[20];const C=b;let T;e[21]!==l?(T=R=>Si({id:l()}).transform(vI),e[21]=l,e[22]=T):T=e[22];const k=T;let O;e[23]!==a?(O=R=>Si({id:a({useCoerce:!0})}).nullable().transform(bI),e[23]=a,e[24]=O):O=e[24];const j=O;let S;e[25]!==i?(S=R=>Si({id:i()}).transform(yI),e[25]=i,e[26]=S):S=e[26];const E=S,A=wI;let D;return e[27]!==f||e[28]!==v||e[29]!==p||e[30]!==$||e[31]!==_||e[32]!==u||e[33]!==l||e[34]!==C||e[35]!==k||e[36]!==j||e[37]!==E||e[38]!==a||e[39]!==i?(D={zString:a,zStringRequired:i,zNumber:u,zNumberRequired:l,zBool:f,zDate:v,zDateRequired:p,zEnum:$,zEnumRequired:_,zObjectIdInt:C,zObjectIdIntRequired:k,zObjectIdStr:j,zObjectIdStrRequired:E,zFile:A},e[27]=f,e[28]=v,e[29]=p,e[30]=$,e[31]=_,e[32]=u,e[33]=l,e[34]=C,e[35]=k,e[36]=j,e[37]=E,e[38]=a,e[39]=i,e[40]=D):D=e[40],D};function sI(e){return e??null}function lI(e){return e??null}function cI(e){return e??null}function uI(e){return e??null}function dI(e){return e??null}function fI(e){return e??null}function hI(e){return e??null}function pI(e){return e??null}function mI(e){return e??null}function gI(e){return e??null}function vI(e){return e??null}function bI(e){return e??null}function yI(e){return e??null}function xI(e){return Array.from(e??[])}function wI(e){const{required:t,multiple:n,maxFileSize:r}=e;return F$().transform(xI).refine(o=>!t||(o==null?void 0:o.length)>0,"File is required.").refine(o=>n||(o==null?void 0:o.length)<=1,"Multiple files not allowed.").refine(o=>o.every(a=>a.size<=r),`Maximum file size is ${ws(r)}.`).transform(o=>(n?o:o==null?void 0:o[0])??null)}const W$=(e,t)=>{const n=Re.c(4);let r,i;n[0]!==t||n[1]!==e?(r=()=>{const o=a=>{e.some(s=>s.current&&s.current.contains(a.target))||t()};return document.addEventListener("mouseup",o),()=>{document.removeEventListener("mouseup",o)}},i=[e,t],n[0]=t,n[1]=e,n[2]=r,n[3]=i):(r=n[2],i=n[3]),m.useEffect(r,i)},U$=()=>{const e=Re.c(4),{user:t}=m.useContext(HC);let n;e[0]!==(t==null?void 0:t.permissions)?(n=(o,a)=>{const s=a===void 0?"any":a;return o.length===0?!0:s==="any"?o.some(l=>{var c;return(c=t==null?void 0:t.permissions)==null?void 0:c.includes(l)}):o.every(l=>{var c;return(c=t==null?void 0:t.permissions)==null?void 0:c.includes(l)})},e[0]=t==null?void 0:t.permissions,e[1]=n):n=e[1];const r=n;let i;return e[2]!==r?(i={checkUserHasPermissions:r},e[2]=r,e[3]=i):i=e[3],i},H$=(e,t)=>{const n=Re.c(6);let r,i;n[0]!==e?(r=()=>(document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}),i=[e],n[0]=e,n[1]=r,n[2]=i):(r=n[1],i=n[2]),m.useEffect(r,i);let o,a;n[3]!==t?(o=()=>t===void 0?_I:(document.addEventListener("keyup",t),()=>{document.removeEventListener("keyup",t)}),a=[t],n[3]=t,n[4]=o,n[5]=a):(o=n[4],a=n[5]),m.useEffect(o,a)};function _I(){}const B0=(e,t,n)=>{let r;e:{if(n){r=e;break e}if(e!=="date"&&e!=="datetime-local"&&e!=="time"){r=e;break e}if(!t){r="text";break e}r=e}return r},V$=()=>{const{addNotification:e}=ah(),{texts:{clipboard:t}}=m.useContext(ln);return{copyToClipboard:m.useCallback(async r=>{var i;try{await((i=navigator.clipboard)==null?void 0:i.writeText(r)),e(t.copySuccess(r),"prompt")}catch(o){console.error(o),e(t.copyError,"danger")}},[e,t])}},ou=()=>{const e=Re.c(7),[t,n]=m.useState(window.innerWidth),[r,i]=m.useState(window.innerHeight);let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=()=>{n(window.innerWidth),i(window.innerHeight)},e[0]=o):o=e[0];const a=o;let s,l;e[1]===Symbol.for("react.memo_cache_sentinel")?(s=()=>(window.addEventListener("resize",a),()=>window.removeEventListener("resize",a)),l=[],e[1]=s,e[2]=l):(s=e[1],l=e[2]),m.useEffect(s,l);const c=t<992;let u;return e[3]!==r||e[4]!==c||e[5]!==t?(u={width:t,height:r,isMobile:c},e[3]=r,e[4]=c,e[5]=t,e[6]=u):u=e[6],u},q$=m.createContext({addHelmet:e=>{},removeHelmet:()=>{}}),Y$=m.createContext(void 0),Mx={falseIfNotInit:!1},uh=e=>{const{falseIfNotInit:t}=e===void 0?Mx:e,n=t===void 0?Mx.falseIfNotInit:t,r=m.useContext(Y$);if(!n&&r===void 0)throw new Error("FormDisabledProvider not initilized. Probably tried to use useFormDisabledContext outside FormDisabledProvider.");return r??!1},CI="_button_1wjon_1",$I="_filled_1wjon_7",SI="_sm_1wjon_13",TI="_md_1wjon_18",EI="_lg_1wjon_23",Ba={button:CI,filled:$I,sm:SI,md:TI,lg:EI},da=e=>{const t=Re.c(24);let n,r,i,o,a,s;t[0]!==e?({variant:o,color:a,size:s,className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=s):(n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6]);const l=o===void 0?"filled":o,c=a===void 0?"primary":a,u=s===void 0?"md":s;if(i.as==="link"){const d=i.href??"/",f=`luminus-primary-button ${c} btn ${l==="outlined"?`btn-outline-${c}`:`btn-${c}`} ${r??""}`,h=Ba[l],p=Ba[u];let g;t[7]!==f||t[8]!==h||t[9]!==p?(g=ue(f,Ba.button,h,p),t[7]=f,t[8]=h,t[9]=p,t[10]=g):g=t[10];let v;return t[11]!==n||t[12]!==i||t[13]!==d||t[14]!==g?(v=y.jsx(Ps.Link,{to:d,className:g,...i,children:n}),t[11]=n,t[12]=i,t[13]=d,t[14]=g,t[15]=v):v=t[15],v}if(i.as==="button"||i.as===void 0){const d=`luminus-primary-button ${c} btn ${l==="outlined"?`btn-outline-${c}`:`btn-${c}`} ${r??""}`,f=Ba[l],h=Ba[u];let p;t[16]!==d||t[17]!==f||t[18]!==h?(p=ue(d,Ba.button,f,h),t[16]=d,t[17]=f,t[18]=h,t[19]=p):p=t[19];let g;return t[20]!==n||t[21]!==i||t[22]!==p?(g=y.jsx("button",{type:"button",className:p,...i,children:n}),t[20]=n,t[21]=i,t[22]=p,t[23]=g):g=t[23],g}return null},kI="_button_1r3i0_1",Vg={button:kI},dh=e=>{const t=Re.c(21);let n,r,i,o,a;t[0]!==e?({color:a,icon:i,className:r,children:n,...o}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a):(n=t[1],r=t[2],i=t[3],o=t[4],a=t[5]);const s=a===void 0?"primary":a;if(o.as==="link"){const l=o.href??"/",c=`luminus-context-button btn text-${s} ${r??""}`;let u;t[6]!==c?(u=ue(c,Vg.button),t[6]=c,t[7]=u):u=t[7];let d;return t[8]!==n||t[9]!==i||t[10]!==o||t[11]!==l||t[12]!==u?(d=y.jsxs(Ps.Link,{to:l,className:u,...o,children:[i,n]}),t[8]=n,t[9]=i,t[10]=o,t[11]=l,t[12]=u,t[13]=d):d=t[13],d}if(o.as==="button"||o.as===void 0){const l=`luminus-context-button btn text-${s} ${r??""}`;let c;t[14]!==l?(c=ue(l,Vg.button),t[14]=l,t[15]=c):c=t[15];let u;return t[16]!==n||t[17]!==i||t[18]!==o||t[19]!==c?(u=y.jsxs("button",{type:"button",className:c,...o,children:[i,n]}),t[16]=n,t[17]=i,t[18]=o,t[19]=c,t[20]=u):u=t[20],u}return null},OI="_icon-button_15e26_1",MI="_sm_15e26_14",AI="_md_15e26_23",RI="_lg_15e26_32",qu={"icon-button":"_icon-button_15e26_1",iconButton:OI,sm:MI,md:AI,lg:RI},au=e=>{const t=Re.c(23);let n,r,i,o,a,s;t[0]!==e?({type:o,color:a,size:s,children:n,className:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=s):(n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6]);const l=o===void 0?"button":o,c=a===void 0?"primary":a,u=s===void 0?"md":s;if(i.as==="link"){const d=i.href??"/",f=`luminus-icon-button btn text-${c} ${r??""}`,h=qu[u];let p;t[7]!==f||t[8]!==h?(p=ue(f,qu.iconButton,h),t[7]=f,t[8]=h,t[9]=p):p=t[9];let g;return t[10]!==n||t[11]!==i||t[12]!==d||t[13]!==p?(g=y.jsx(Ps.Link,{to:d,className:p,...i,children:n}),t[10]=n,t[11]=i,t[12]=d,t[13]=p,t[14]=g):g=t[14],g}if(i.as==="button"||i.as===void 0){const d=`luminus-icon-button btn text-${c} ${r??""}`,f=qu[u];let h;t[15]!==d||t[16]!==f?(h=ue(d,qu.iconButton,f),t[15]=d,t[16]=f,t[17]=h):h=t[17];let p;return t[18]!==n||t[19]!==i||t[20]!==h||t[21]!==l?(p=y.jsx("button",{type:l,className:h,...i,children:n}),t[18]=n,t[19]=i,t[20]=h,t[21]=l,t[22]=p):p=t[22],p}return null};var z0={},Kd={exports:{}};Kd.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",i=1,o=2,a=9007199254740991,s="[object Arguments]",l="[object Array]",c="[object AsyncFunction]",u="[object Boolean]",d="[object Date]",f="[object Error]",h="[object Function]",p="[object GeneratorFunction]",g="[object Map]",v="[object Number]",x="[object Null]",_="[object Object]",w="[object Promise]",$="[object Proxy]",b="[object RegExp]",C="[object Set]",T="[object String]",k="[object Symbol]",O="[object Undefined]",j="[object WeakMap]",S="[object ArrayBuffer]",E="[object DataView]",A="[object Float32Array]",D="[object Float64Array]",R="[object Int8Array]",M="[object Int16Array]",I="[object Int32Array]",F="[object Uint8Array]",U="[object Uint8ClampedArray]",P="[object Uint16Array]",W="[object Uint32Array]",q=/[\\^$.*+?()[\]{}|]/g,H=/^\[object .+?Constructor\]$/,Y=/^(?:0|[1-9]\d*)$/,G={};G[A]=G[D]=G[R]=G[M]=G[I]=G[F]=G[U]=G[P]=G[W]=!0,G[s]=G[l]=G[S]=G[u]=G[E]=G[d]=G[f]=G[h]=G[g]=G[v]=G[_]=G[b]=G[C]=G[T]=G[j]=!1;var J=typeof Zn=="object"&&Zn&&Zn.Object===Object&&Zn,ee=typeof self=="object"&&self&&self.Object===Object&&self,z=J||ee||Function("return this")(),L=t&&!t.nodeType&&t,B=L&&!0&&e&&!e.nodeType&&e,V=B&&B.exports===L,N=V&&J.process,X=function(){try{return N&&N.binding&&N.binding("util")}catch{}}(),Q=X&&X.isTypedArray;function Z(K,ne){for(var de=-1,Se=K==null?0:K.length,Jt=0,st=[];++de<Se;){var un=K[de];ne(un,de,K)&&(st[Jt++]=un)}return st}function le(K,ne){for(var de=-1,Se=ne.length,Jt=K.length;++de<Se;)K[Jt+de]=ne[de];return K}function te(K,ne){for(var de=-1,Se=K==null?0:K.length;++de<Se;)if(ne(K[de],de,K))return!0;return!1}function re(K,ne){for(var de=-1,Se=Array(K);++de<K;)Se[de]=ne(de);return Se}function se(K){return function(ne){return K(ne)}}function fe(K,ne){return K.has(ne)}function xe(K,ne){return K==null?void 0:K[ne]}function ve(K){var ne=-1,de=Array(K.size);return K.forEach(function(Se,Jt){de[++ne]=[Jt,Se]}),de}function be(K,ne){return function(de){return K(ne(de))}}function Te(K){var ne=-1,de=Array(K.size);return K.forEach(function(Se){de[++ne]=Se}),de}var ce=Array.prototype,ae=Function.prototype,ye=Object.prototype,De=z["__core-js_shared__"],Bt=ae.toString,Fe=ye.hasOwnProperty,gt=function(){var K=/[^.]+$/.exec(De&&De.keys&&De.keys.IE_PROTO||"");return K?"Symbol(src)_1."+K:""}(),_t=ye.toString,nn=RegExp("^"+Bt.call(Fe).replace(q,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ee=V?z.Buffer:void 0,je=z.Symbol,vt=z.Uint8Array,qe=ye.propertyIsEnumerable,bt=ce.splice,at=je?je.toStringTag:void 0,At=Object.getOwnPropertySymbols,Ke=Ee?Ee.isBuffer:void 0,Ie=be(Object.keys,Object),We=Da(z,"DataView"),Qe=Da(z,"Map"),Pe=Da(z,"Promise"),Je=Da(z,"Set"),ht=Da(z,"WeakMap"),nt=Da(Object,"create"),Ne=jo(We),ke=jo(Qe),He=jo(Pe),yt=jo(Je),et=jo(ht),pt=je?je.prototype:void 0,tn=pt?pt.valueOf:void 0;function zt(K){var ne=-1,de=K==null?0:K.length;for(this.clear();++ne<de;){var Se=K[ne];this.set(Se[0],Se[1])}}function Ht(){this.__data__=nt?nt(null):{},this.size=0}function vn(K){var ne=this.has(K)&&delete this.__data__[K];return this.size-=ne?1:0,ne}function Kt(K){var ne=this.__data__;if(nt){var de=ne[K];return de===r?void 0:de}return Fe.call(ne,K)?ne[K]:void 0}function $e(K){var ne=this.__data__;return nt?ne[K]!==void 0:Fe.call(ne,K)}function Ze(K,ne){var de=this.__data__;return this.size+=this.has(K)?0:1,de[K]=nt&&ne===void 0?r:ne,this}zt.prototype.clear=Ht,zt.prototype.delete=vn,zt.prototype.get=Kt,zt.prototype.has=$e,zt.prototype.set=Ze;function Ct(K){var ne=-1,de=K==null?0:K.length;for(this.clear();++ne<de;){var Se=K[ne];this.set(Se[0],Se[1])}}function cn(){this.__data__=[],this.size=0}function Zt(K){var ne=this.__data__,de=di(ne,K);if(de<0)return!1;var Se=ne.length-1;return de==Se?ne.pop():bt.call(ne,de,1),--this.size,!0}function Le(K){var ne=this.__data__,de=di(ne,K);return de<0?void 0:ne[de][1]}function Be(K){return di(this.__data__,K)>-1}function ct(K,ne){var de=this.__data__,Se=di(de,K);return Se<0?(++this.size,de.push([K,ne])):de[Se][1]=ne,this}Ct.prototype.clear=cn,Ct.prototype.delete=Zt,Ct.prototype.get=Le,Ct.prototype.has=Be,Ct.prototype.set=ct;function Rt(K){var ne=-1,de=K==null?0:K.length;for(this.clear();++ne<de;){var Se=K[ne];this.set(Se[0],Se[1])}}function $t(){this.size=0,this.__data__={hash:new zt,map:new(Qe||Ct),string:new zt}}function Xe(K){var ne=Hi(this,K).delete(K);return this.size-=ne?1:0,ne}function St(K){return Hi(this,K).get(K)}function kr(K){return Hi(this,K).has(K)}function fn(K,ne){var de=Hi(this,K),Se=de.size;return de.set(K,ne),this.size+=de.size==Se?0:1,this}Rt.prototype.clear=$t,Rt.prototype.delete=Xe,Rt.prototype.get=St,Rt.prototype.has=kr,Rt.prototype.set=fn;function hn(K){var ne=-1,de=K==null?0:K.length;for(this.__data__=new Rt;++ne<de;)this.add(K[ne])}function Pn(K){return this.__data__.set(K,r),this}function ko(K){return this.__data__.has(K)}hn.prototype.add=hn.prototype.push=Pn,hn.prototype.has=ko;function wt(K){var ne=this.__data__=new Ct(K);this.size=ne.size}function Oo(){this.__data__=new Ct,this.size=0}function Me(K){var ne=this.__data__,de=ne.delete(K);return this.size=ne.size,de}function Br(K){return this.__data__.get(K)}function Mo(K){return this.__data__.has(K)}function ja(K,ne){var de=this.__data__;if(de instanceof Ct){var Se=de.__data__;if(!Qe||Se.length<n-1)return Se.push([K,ne]),this.size=++de.size,this;de=this.__data__=new Rt(Se)}return de.set(K,ne),this.size=de.size,this}wt.prototype.clear=Oo,wt.prototype.delete=Me,wt.prototype.get=Br,wt.prototype.has=Mo,wt.prototype.set=ja;function Na(K,ne){var de=Nu(K),Se=!de&&cO(K),Jt=!de&&!Se&&Wp(K),st=!de&&!Se&&!Jt&&dy(K),un=de||Se||Jt||st,_n=un?re(K.length,String):[],Tn=_n.length;for(var rn in K)Fe.call(K,rn)&&!(un&&(rn=="length"||Jt&&(rn=="offset"||rn=="parent")||st&&(rn=="buffer"||rn=="byteLength"||rn=="byteOffset")||iO(rn,Tn)))&&_n.push(rn);return _n}function di(K,ne){for(var de=K.length;de--;)if(sy(K[de][0],ne))return de;return-1}function Au(K,ne,de){var Se=ne(K);return Nu(K)?Se:le(Se,de(K))}function fi(K){return K==null?K===void 0?O:x:at&&at in Object(K)?nO(K):lO(K)}function ll(K){return ul(K)&&fi(K)==s}function Ao(K,ne,de,Se,Jt){return K===ne?!0:K==null||ne==null||!ul(K)&&!ul(ne)?K!==K&&ne!==ne:cl(K,ne,de,Se,Ao,Jt)}function cl(K,ne,de,Se,Jt,st){var un=Nu(K),_n=Nu(ne),Tn=un?l:Vi(K),rn=_n?l:Vi(ne);Tn=Tn==s?_:Tn,rn=rn==s?_:rn;var ar=Tn==_,Or=rn==_,kn=Tn==rn;if(kn&&Wp(K)){if(!Wp(ne))return!1;un=!0,ar=!1}if(kn&&!ar)return st||(st=new wt),un||dy(K)?Ln(K,ne,de,Se,Jt,st):Bp(K,ne,Tn,de,Se,Jt,st);if(!(de&i)){var fr=ar&&Fe.call(K,"__wrapped__"),hr=Or&&Fe.call(ne,"__wrapped__");if(fr||hr){var qi=fr?K.value():K,hi=hr?ne.value():ne;return st||(st=new wt),Jt(qi,hi,de,Se,st)}}return kn?(st||(st=new wt),zp(K,ne,de,Se,Jt,st)):!1}function Ru(K){if(!uy(K)||aO(K))return!1;var ne=ly(K)?nn:H;return ne.test(jo(K))}function Ro(K){return ul(K)&&cy(K.length)&&!!G[fi(K)]}function ju(K){if(!sO(K))return Ie(K);var ne=[];for(var de in Object(K))Fe.call(K,de)&&de!="constructor"&&ne.push(de);return ne}function Ln(K,ne,de,Se,Jt,st){var un=de&i,_n=K.length,Tn=ne.length;if(_n!=Tn&&!(un&&Tn>_n))return!1;var rn=st.get(K);if(rn&&st.get(ne))return rn==ne;var ar=-1,Or=!0,kn=de&o?new hn:void 0;for(st.set(K,ne),st.set(ne,K);++ar<_n;){var fr=K[ar],hr=ne[ar];if(Se)var qi=un?Se(hr,fr,ar,ne,K,st):Se(fr,hr,ar,K,ne,st);if(qi!==void 0){if(qi)continue;Or=!1;break}if(kn){if(!te(ne,function(hi,No){if(!fe(kn,No)&&(fr===hi||Jt(fr,hi,de,Se,st)))return kn.push(No)})){Or=!1;break}}else if(!(fr===hr||Jt(fr,hr,de,Se,st))){Or=!1;break}}return st.delete(K),st.delete(ne),Or}function Bp(K,ne,de,Se,Jt,st,un){switch(de){case E:if(K.byteLength!=ne.byteLength||K.byteOffset!=ne.byteOffset)return!1;K=K.buffer,ne=ne.buffer;case S:return!(K.byteLength!=ne.byteLength||!st(new vt(K),new vt(ne)));case u:case d:case v:return sy(+K,+ne);case f:return K.name==ne.name&&K.message==ne.message;case b:case T:return K==ne+"";case g:var _n=ve;case C:var Tn=Se&i;if(_n||(_n=Te),K.size!=ne.size&&!Tn)return!1;var rn=un.get(K);if(rn)return rn==ne;Se|=o,un.set(K,ne);var ar=Ln(_n(K),_n(ne),Se,Jt,st,un);return un.delete(K),ar;case k:if(tn)return tn.call(K)==tn.call(ne)}return!1}function zp(K,ne,de,Se,Jt,st){var un=de&i,_n=zr(K),Tn=_n.length,rn=zr(ne),ar=rn.length;if(Tn!=ar&&!un)return!1;for(var Or=Tn;Or--;){var kn=_n[Or];if(!(un?kn in ne:Fe.call(ne,kn)))return!1}var fr=st.get(K);if(fr&&st.get(ne))return fr==ne;var hr=!0;st.set(K,ne),st.set(ne,K);for(var qi=un;++Or<Tn;){kn=_n[Or];var hi=K[kn],No=ne[kn];if(Se)var fy=un?Se(No,hi,kn,ne,K,st):Se(hi,No,kn,K,ne,st);if(!(fy===void 0?hi===No||Jt(hi,No,de,Se,st):fy)){hr=!1;break}qi||(qi=kn=="constructor")}if(hr&&!qi){var Du=K.constructor,Iu=ne.constructor;Du!=Iu&&"constructor"in K&&"constructor"in ne&&!(typeof Du=="function"&&Du instanceof Du&&typeof Iu=="function"&&Iu instanceof Iu)&&(hr=!1)}return st.delete(K),st.delete(ne),hr}function zr(K){return Au(K,fO,rO)}function Hi(K,ne){var de=K.__data__;return oO(ne)?de[typeof ne=="string"?"string":"hash"]:de.map}function Da(K,ne){var de=xe(K,ne);return Ru(de)?de:void 0}function nO(K){var ne=Fe.call(K,at),de=K[at];try{K[at]=void 0;var Se=!0}catch{}var Jt=_t.call(K);return Se&&(ne?K[at]=de:delete K[at]),Jt}var rO=At?function(K){return K==null?[]:(K=Object(K),Z(At(K),function(ne){return qe.call(K,ne)}))}:hO,Vi=fi;(We&&Vi(new We(new ArrayBuffer(1)))!=E||Qe&&Vi(new Qe)!=g||Pe&&Vi(Pe.resolve())!=w||Je&&Vi(new Je)!=C||ht&&Vi(new ht)!=j)&&(Vi=function(K){var ne=fi(K),de=ne==_?K.constructor:void 0,Se=de?jo(de):"";if(Se)switch(Se){case Ne:return E;case ke:return g;case He:return w;case yt:return C;case et:return j}return ne});function iO(K,ne){return ne=ne??a,!!ne&&(typeof K=="number"||Y.test(K))&&K>-1&&K%1==0&&K<ne}function oO(K){var ne=typeof K;return ne=="string"||ne=="number"||ne=="symbol"||ne=="boolean"?K!=="__proto__":K===null}function aO(K){return!!gt&&gt in K}function sO(K){var ne=K&&K.constructor,de=typeof ne=="function"&&ne.prototype||ye;return K===de}function lO(K){return _t.call(K)}function jo(K){if(K!=null){try{return Bt.call(K)}catch{}try{return K+""}catch{}}return""}function sy(K,ne){return K===ne||K!==K&&ne!==ne}var cO=ll(function(){return arguments}())?ll:function(K){return ul(K)&&Fe.call(K,"callee")&&!qe.call(K,"callee")},Nu=Array.isArray;function uO(K){return K!=null&&cy(K.length)&&!ly(K)}var Wp=Ke||pO;function dO(K,ne){return Ao(K,ne)}function ly(K){if(!uy(K))return!1;var ne=fi(K);return ne==h||ne==p||ne==c||ne==$}function cy(K){return typeof K=="number"&&K>-1&&K%1==0&&K<=a}function uy(K){var ne=typeof K;return K!=null&&(ne=="object"||ne=="function")}function ul(K){return K!=null&&typeof K=="object"}var dy=Q?se(Q):Ro;function fO(K){return uO(K)?Na(K):ju(K)}function hO(){return[]}function pO(){return!1}e.exports=dO})(Kd,Kd.exports);var jI=Kd.exports,G$={exports:{}};(function(e,t){var n=function(){var r=function(b,C){var T=236,k=17,O=b,j=o[C],S=null,E=0,A=null,D=[],R={},M=function(z,L){E=O*4+17,S=function(B){for(var V=new Array(B),N=0;N<B;N+=1){V[N]=new Array(B);for(var X=0;X<B;X+=1)V[N][X]=null}return V}(E),I(0,0),I(E-7,0),I(0,E-7),P(),U(),q(z,L),O>=7&&W(z),A==null&&(A=G(O,j,D)),H(A,L)},I=function(z,L){for(var B=-1;B<=7;B+=1)if(!(z+B<=-1||E<=z+B))for(var V=-1;V<=7;V+=1)L+V<=-1||E<=L+V||(0<=B&&B<=6&&(V==0||V==6)||0<=V&&V<=6&&(B==0||B==6)||2<=B&&B<=4&&2<=V&&V<=4?S[z+B][L+V]=!0:S[z+B][L+V]=!1)},F=function(){for(var z=0,L=0,B=0;B<8;B+=1){M(!0,B);var V=s.getLostPoint(R);(B==0||z>V)&&(z=V,L=B)}return L},U=function(){for(var z=8;z<E-8;z+=1)S[z][6]==null&&(S[z][6]=z%2==0);for(var L=8;L<E-8;L+=1)S[6][L]==null&&(S[6][L]=L%2==0)},P=function(){for(var z=s.getPatternPosition(O),L=0;L<z.length;L+=1)for(var B=0;B<z.length;B+=1){var V=z[L],N=z[B];if(S[V][N]==null)for(var X=-2;X<=2;X+=1)for(var Q=-2;Q<=2;Q+=1)X==-2||X==2||Q==-2||Q==2||X==0&&Q==0?S[V+X][N+Q]=!0:S[V+X][N+Q]=!1}},W=function(z){for(var L=s.getBCHTypeNumber(O),B=0;B<18;B+=1){var V=!z&&(L>>B&1)==1;S[Math.floor(B/3)][B%3+E-8-3]=V}for(var B=0;B<18;B+=1){var V=!z&&(L>>B&1)==1;S[B%3+E-8-3][Math.floor(B/3)]=V}},q=function(z,L){for(var B=j<<3|L,V=s.getBCHTypeInfo(B),N=0;N<15;N+=1){var X=!z&&(V>>N&1)==1;N<6?S[N][8]=X:N<8?S[N+1][8]=X:S[E-15+N][8]=X}for(var N=0;N<15;N+=1){var X=!z&&(V>>N&1)==1;N<8?S[8][E-N-1]=X:N<9?S[8][15-N-1+1]=X:S[8][15-N-1]=X}S[E-8][8]=!z},H=function(z,L){for(var B=-1,V=E-1,N=7,X=0,Q=s.getMaskFunction(L),Z=E-1;Z>0;Z-=2)for(Z==6&&(Z-=1);;){for(var le=0;le<2;le+=1)if(S[V][Z-le]==null){var te=!1;X<z.length&&(te=(z[X]>>>N&1)==1);var re=Q(V,Z-le);re&&(te=!te),S[V][Z-le]=te,N-=1,N==-1&&(X+=1,N=7)}if(V+=B,V<0||E<=V){V-=B,B=-B;break}}},Y=function(z,L){for(var B=0,V=0,N=0,X=new Array(L.length),Q=new Array(L.length),Z=0;Z<L.length;Z+=1){var le=L[Z].dataCount,te=L[Z].totalCount-le;V=Math.max(V,le),N=Math.max(N,te),X[Z]=new Array(le);for(var re=0;re<X[Z].length;re+=1)X[Z][re]=255&z.getBuffer()[re+B];B+=le;var se=s.getErrorCorrectPolynomial(te),fe=c(X[Z],se.getLength()-1),xe=fe.mod(se);Q[Z]=new Array(se.getLength()-1);for(var re=0;re<Q[Z].length;re+=1){var ve=re+xe.getLength()-Q[Z].length;Q[Z][re]=ve>=0?xe.getAt(ve):0}}for(var be=0,re=0;re<L.length;re+=1)be+=L[re].totalCount;for(var Te=new Array(be),ce=0,re=0;re<V;re+=1)for(var Z=0;Z<L.length;Z+=1)re<X[Z].length&&(Te[ce]=X[Z][re],ce+=1);for(var re=0;re<N;re+=1)for(var Z=0;Z<L.length;Z+=1)re<Q[Z].length&&(Te[ce]=Q[Z][re],ce+=1);return Te},G=function(z,L,B){for(var V=u.getRSBlocks(z,L),N=d(),X=0;X<B.length;X+=1){var Q=B[X];N.put(Q.getMode(),4),N.put(Q.getLength(),s.getLengthInBits(Q.getMode(),z)),Q.write(N)}for(var Z=0,X=0;X<V.length;X+=1)Z+=V[X].dataCount;if(N.getLengthInBits()>Z*8)throw"code length overflow. ("+N.getLengthInBits()+">"+Z*8+")";for(N.getLengthInBits()+4<=Z*8&&N.put(0,4);N.getLengthInBits()%8!=0;)N.putBit(!1);for(;!(N.getLengthInBits()>=Z*8||(N.put(T,8),N.getLengthInBits()>=Z*8));)N.put(k,8);return Y(N,V)};R.addData=function(z,L){L=L||"Byte";var B=null;switch(L){case"Numeric":B=f(z);break;case"Alphanumeric":B=h(z);break;case"Byte":B=p(z);break;case"Kanji":B=g(z);break;default:throw"mode:"+L}D.push(B),A=null},R.isDark=function(z,L){if(z<0||E<=z||L<0||E<=L)throw z+","+L;return S[z][L]},R.getModuleCount=function(){return E},R.make=function(){if(O<1){for(var z=1;z<40;z++){for(var L=u.getRSBlocks(z,j),B=d(),V=0;V<D.length;V++){var N=D[V];B.put(N.getMode(),4),B.put(N.getLength(),s.getLengthInBits(N.getMode(),z)),N.write(B)}for(var X=0,V=0;V<L.length;V++)X+=L[V].dataCount;if(B.getLengthInBits()<=X*8)break}O=z}M(!1,F())},R.createTableTag=function(z,L){z=z||2,L=typeof L>"u"?z*4:L;var B="";B+='<table style="',B+=" border-width: 0px; border-style: none;",B+=" border-collapse: collapse;",B+=" padding: 0px; margin: "+L+"px;",B+='">',B+="<tbody>";for(var V=0;V<R.getModuleCount();V+=1){B+="<tr>";for(var N=0;N<R.getModuleCount();N+=1)B+='<td style="',B+=" border-width: 0px; border-style: none;",B+=" border-collapse: collapse;",B+=" padding: 0px; margin: 0px;",B+=" width: "+z+"px;",B+=" height: "+z+"px;",B+=" background-color: ",B+=R.isDark(V,N)?"#000000":"#ffffff",B+=";",B+='"/>';B+="</tr>"}return B+="</tbody>",B+="</table>",B},R.createSvgTag=function(z,L,B,V){var N={};typeof arguments[0]=="object"&&(N=arguments[0],z=N.cellSize,L=N.margin,B=N.alt,V=N.title),z=z||2,L=typeof L>"u"?z*4:L,B=typeof B=="string"?{text:B}:B||{},B.text=B.text||null,B.id=B.text?B.id||"qrcode-description":null,V=typeof V=="string"?{text:V}:V||{},V.text=V.text||null,V.id=V.text?V.id||"qrcode-title":null;var X=R.getModuleCount()*z+L*2,Q,Z,le,te,re="",se;for(se="l"+z+",0 0,"+z+" -"+z+",0 0,-"+z+"z ",re+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',re+=N.scalable?"":' width="'+X+'px" height="'+X+'px"',re+=' viewBox="0 0 '+X+" "+X+'" ',re+=' preserveAspectRatio="xMinYMin meet"',re+=V.text||B.text?' role="img" aria-labelledby="'+J([V.id,B.id].join(" ").trim())+'"':"",re+=">",re+=V.text?'<title id="'+J(V.id)+'">'+J(V.text)+"</title>":"",re+=B.text?'<description id="'+J(B.id)+'">'+J(B.text)+"</description>":"",re+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',re+='<path d="',le=0;le<R.getModuleCount();le+=1)for(te=le*z+L,Q=0;Q<R.getModuleCount();Q+=1)R.isDark(le,Q)&&(Z=Q*z+L,re+="M"+Z+","+te+se);return re+='" stroke="transparent" fill="black"/>',re+="</svg>",re},R.createDataURL=function(z,L){z=z||2,L=typeof L>"u"?z*4:L;var B=R.getModuleCount()*z+L*2,V=L,N=B-L;return $(B,B,function(X,Q){if(V<=X&&X<N&&V<=Q&&Q<N){var Z=Math.floor((X-V)/z),le=Math.floor((Q-V)/z);return R.isDark(le,Z)?0:1}else return 1})},R.createImgTag=function(z,L,B){z=z||2,L=typeof L>"u"?z*4:L;var V=R.getModuleCount()*z+L*2,N="";return N+="<img",N+=' src="',N+=R.createDataURL(z,L),N+='"',N+=' width="',N+=V,N+='"',N+=' height="',N+=V,N+='"',B&&(N+=' alt="',N+=J(B),N+='"'),N+="/>",N};var J=function(z){for(var L="",B=0;B<z.length;B+=1){var V=z.charAt(B);switch(V){case"<":L+="&lt;";break;case">":L+="&gt;";break;case"&":L+="&amp;";break;case'"':L+="&quot;";break;default:L+=V;break}}return L},ee=function(z){var L=1;z=typeof z>"u"?L*2:z;var B=R.getModuleCount()*L+z*2,V=z,N=B-z,X,Q,Z,le,te,re={"██":"█","█ ":"▀"," █":"▄"," ":" "},se={"██":"▀","█ ":"▀"," █":" "," ":" "},fe="";for(X=0;X<B;X+=2){for(Z=Math.floor((X-V)/L),le=Math.floor((X+1-V)/L),Q=0;Q<B;Q+=1)te="█",V<=Q&&Q<N&&V<=X&&X<N&&R.isDark(Z,Math.floor((Q-V)/L))&&(te=" "),V<=Q&&Q<N&&V<=X+1&&X+1<N&&R.isDark(le,Math.floor((Q-V)/L))?te+=" ":te+="█",fe+=z<1&&X+1>=N?se[te]:re[te];fe+=`
245
- `}return B%2&&z>0?fe.substring(0,fe.length-B-1)+Array(B+1).join("▀"):fe.substring(0,fe.length-1)};return R.createASCII=function(z,L){if(z=z||1,z<2)return ee(L);z-=1,L=typeof L>"u"?z*2:L;var B=R.getModuleCount()*z+L*2,V=L,N=B-L,X,Q,Z,le,te=Array(z+1).join("██"),re=Array(z+1).join(" "),se="",fe="";for(X=0;X<B;X+=1){for(Z=Math.floor((X-V)/z),fe="",Q=0;Q<B;Q+=1)le=1,V<=Q&&Q<N&&V<=X&&X<N&&R.isDark(Z,Math.floor((Q-V)/z))&&(le=0),fe+=le?te:re;for(Z=0;Z<z;Z+=1)se+=fe+`
246
- `}return se.substring(0,se.length-1)},R.renderTo2dContext=function(z,L){L=L||2;for(var B=R.getModuleCount(),V=0;V<B;V++)for(var N=0;N<B;N++)z.fillStyle=R.isDark(V,N)?"black":"white",z.fillRect(V*L,N*L,L,L)},R};r.stringToBytesFuncs={default:function(b){for(var C=[],T=0;T<b.length;T+=1){var k=b.charCodeAt(T);C.push(k&255)}return C}},r.stringToBytes=r.stringToBytesFuncs.default,r.createStringToBytes=function(b,C){var T=function(){for(var O=_(b),j=function(){var U=O.read();if(U==-1)throw"eof";return U},S=0,E={};;){var A=O.read();if(A==-1)break;var D=j(),R=j(),M=j(),I=String.fromCharCode(A<<8|D),F=R<<8|M;E[I]=F,S+=1}if(S!=C)throw S+" != "+C;return E}(),k=63;return function(O){for(var j=[],S=0;S<O.length;S+=1){var E=O.charCodeAt(S);if(E<128)j.push(E);else{var A=T[O.charAt(S)];typeof A=="number"?(A&255)==A?j.push(A):(j.push(A>>>8),j.push(A&255)):j.push(k)}}return j}};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 b=[[],[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]],C=1335,T=7973,k=21522,O={},j=function(S){for(var E=0;S!=0;)E+=1,S>>>=1;return E};return O.getBCHTypeInfo=function(S){for(var E=S<<10;j(E)-j(C)>=0;)E^=C<<j(E)-j(C);return(S<<10|E)^k},O.getBCHTypeNumber=function(S){for(var E=S<<12;j(E)-j(T)>=0;)E^=T<<j(E)-j(T);return S<<12|E},O.getPatternPosition=function(S){return b[S-1]},O.getMaskFunction=function(S){switch(S){case a.PATTERN000:return function(E,A){return(E+A)%2==0};case a.PATTERN001:return function(E,A){return E%2==0};case a.PATTERN010:return function(E,A){return A%3==0};case a.PATTERN011:return function(E,A){return(E+A)%3==0};case a.PATTERN100:return function(E,A){return(Math.floor(E/2)+Math.floor(A/3))%2==0};case a.PATTERN101:return function(E,A){return E*A%2+E*A%3==0};case a.PATTERN110:return function(E,A){return(E*A%2+E*A%3)%2==0};case a.PATTERN111:return function(E,A){return(E*A%3+(E+A)%2)%2==0};default:throw"bad maskPattern:"+S}},O.getErrorCorrectPolynomial=function(S){for(var E=c([1],0),A=0;A<S;A+=1)E=E.multiply(c([1,l.gexp(A)],0));return E},O.getLengthInBits=function(S,E){if(1<=E&&E<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(E<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(E<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:"+E},O.getLostPoint=function(S){for(var E=S.getModuleCount(),A=0,D=0;D<E;D+=1)for(var R=0;R<E;R+=1){for(var M=0,I=S.isDark(D,R),F=-1;F<=1;F+=1)if(!(D+F<0||E<=D+F))for(var U=-1;U<=1;U+=1)R+U<0||E<=R+U||F==0&&U==0||I==S.isDark(D+F,R+U)&&(M+=1);M>5&&(A+=3+M-5)}for(var D=0;D<E-1;D+=1)for(var R=0;R<E-1;R+=1){var P=0;S.isDark(D,R)&&(P+=1),S.isDark(D+1,R)&&(P+=1),S.isDark(D,R+1)&&(P+=1),S.isDark(D+1,R+1)&&(P+=1),(P==0||P==4)&&(A+=3)}for(var D=0;D<E;D+=1)for(var R=0;R<E-6;R+=1)S.isDark(D,R)&&!S.isDark(D,R+1)&&S.isDark(D,R+2)&&S.isDark(D,R+3)&&S.isDark(D,R+4)&&!S.isDark(D,R+5)&&S.isDark(D,R+6)&&(A+=40);for(var R=0;R<E;R+=1)for(var D=0;D<E-6;D+=1)S.isDark(D,R)&&!S.isDark(D+1,R)&&S.isDark(D+2,R)&&S.isDark(D+3,R)&&S.isDark(D+4,R)&&!S.isDark(D+5,R)&&S.isDark(D+6,R)&&(A+=40);for(var W=0,R=0;R<E;R+=1)for(var D=0;D<E;D+=1)S.isDark(D,R)&&(W+=1);var q=Math.abs(100*W/E/E-50)/5;return A+=q*10,A},O}(),l=function(){for(var b=new Array(256),C=new Array(256),T=0;T<8;T+=1)b[T]=1<<T;for(var T=8;T<256;T+=1)b[T]=b[T-4]^b[T-5]^b[T-6]^b[T-8];for(var T=0;T<255;T+=1)C[b[T]]=T;var k={};return k.glog=function(O){if(O<1)throw"glog("+O+")";return C[O]},k.gexp=function(O){for(;O<0;)O+=255;for(;O>=256;)O-=255;return b[O]},k}();function c(b,C){if(typeof b.length>"u")throw b.length+"/"+C;var T=function(){for(var O=0;O<b.length&&b[O]==0;)O+=1;for(var j=new Array(b.length-O+C),S=0;S<b.length-O;S+=1)j[S]=b[S+O];return j}(),k={};return k.getAt=function(O){return T[O]},k.getLength=function(){return T.length},k.multiply=function(O){for(var j=new Array(k.getLength()+O.getLength()-1),S=0;S<k.getLength();S+=1)for(var E=0;E<O.getLength();E+=1)j[S+E]^=l.gexp(l.glog(k.getAt(S))+l.glog(O.getAt(E)));return c(j,0)},k.mod=function(O){if(k.getLength()-O.getLength()<0)return k;for(var j=l.glog(k.getAt(0))-l.glog(O.getAt(0)),S=new Array(k.getLength()),E=0;E<k.getLength();E+=1)S[E]=k.getAt(E);for(var E=0;E<O.getLength();E+=1)S[E]^=l.gexp(l.glog(O.getAt(E))+j);return c(S,0).mod(O)},k}var u=function(){var b=[[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]],C=function(O,j){var S={};return S.totalCount=O,S.dataCount=j,S},T={},k=function(O,j){switch(j){case o.L:return b[(O-1)*4+0];case o.M:return b[(O-1)*4+1];case o.Q:return b[(O-1)*4+2];case o.H:return b[(O-1)*4+3];default:return}};return T.getRSBlocks=function(O,j){var S=k(O,j);if(typeof S>"u")throw"bad rs block @ typeNumber:"+O+"/errorCorrectionLevel:"+j;for(var E=S.length/3,A=[],D=0;D<E;D+=1)for(var R=S[D*3+0],M=S[D*3+1],I=S[D*3+2],F=0;F<R;F+=1)A.push(C(M,I));return A},T}(),d=function(){var b=[],C=0,T={};return T.getBuffer=function(){return b},T.getAt=function(k){var O=Math.floor(k/8);return(b[O]>>>7-k%8&1)==1},T.put=function(k,O){for(var j=0;j<O;j+=1)T.putBit((k>>>O-j-1&1)==1)},T.getLengthInBits=function(){return C},T.putBit=function(k){var O=Math.floor(C/8);b.length<=O&&b.push(0),k&&(b[O]|=128>>>C%8),C+=1},T},f=function(b){var C=i.MODE_NUMBER,T=b,k={};k.getMode=function(){return C},k.getLength=function(S){return T.length},k.write=function(S){for(var E=T,A=0;A+2<E.length;)S.put(O(E.substring(A,A+3)),10),A+=3;A<E.length&&(E.length-A==1?S.put(O(E.substring(A,A+1)),4):E.length-A==2&&S.put(O(E.substring(A,A+2)),7))};var O=function(S){for(var E=0,A=0;A<S.length;A+=1)E=E*10+j(S.charAt(A));return E},j=function(S){if("0"<=S&&S<="9")return S.charCodeAt(0)-48;throw"illegal char :"+S};return k},h=function(b){var C=i.MODE_ALPHA_NUM,T=b,k={};k.getMode=function(){return C},k.getLength=function(j){return T.length},k.write=function(j){for(var S=T,E=0;E+1<S.length;)j.put(O(S.charAt(E))*45+O(S.charAt(E+1)),11),E+=2;E<S.length&&j.put(O(S.charAt(E)),6)};var O=function(j){if("0"<=j&&j<="9")return j.charCodeAt(0)-48;if("A"<=j&&j<="Z")return j.charCodeAt(0)-65+10;switch(j){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 :"+j}};return k},p=function(b){var C=i.MODE_8BIT_BYTE,T=r.stringToBytes(b),k={};return k.getMode=function(){return C},k.getLength=function(O){return T.length},k.write=function(O){for(var j=0;j<T.length;j+=1)O.put(T[j],8)},k},g=function(b){var C=i.MODE_KANJI,T=r.stringToBytesFuncs.SJIS;if(!T)throw"sjis not supported.";(function(j,S){var E=T(j);if(E.length!=2||(E[0]<<8|E[1])!=S)throw"sjis not supported."})("友",38726);var k=T(b),O={};return O.getMode=function(){return C},O.getLength=function(j){return~~(k.length/2)},O.write=function(j){for(var S=k,E=0;E+1<S.length;){var A=(255&S[E])<<8|255&S[E+1];if(33088<=A&&A<=40956)A-=33088;else if(57408<=A&&A<=60351)A-=49472;else throw"illegal char at "+(E+1)+"/"+A;A=(A>>>8&255)*192+(A&255),j.put(A,13),E+=2}if(E<S.length)throw"illegal char at "+(E+1)},O},v=function(){var b=[],C={};return C.writeByte=function(T){b.push(T&255)},C.writeShort=function(T){C.writeByte(T),C.writeByte(T>>>8)},C.writeBytes=function(T,k,O){k=k||0,O=O||T.length;for(var j=0;j<O;j+=1)C.writeByte(T[j+k])},C.writeString=function(T){for(var k=0;k<T.length;k+=1)C.writeByte(T.charCodeAt(k))},C.toByteArray=function(){return b},C.toString=function(){var T="";T+="[";for(var k=0;k<b.length;k+=1)k>0&&(T+=","),T+=b[k];return T+="]",T},C},x=function(){var b=0,C=0,T=0,k="",O={},j=function(E){k+=String.fromCharCode(S(E&63))},S=function(E){if(!(E<0)){if(E<26)return 65+E;if(E<52)return 97+(E-26);if(E<62)return 48+(E-52);if(E==62)return 43;if(E==63)return 47}throw"n:"+E};return O.writeByte=function(E){for(b=b<<8|E&255,C+=8,T+=1;C>=6;)j(b>>>C-6),C-=6},O.flush=function(){if(C>0&&(j(b<<6-C),b=0,C=0),T%3!=0)for(var E=3-T%3,A=0;A<E;A+=1)k+="="},O.toString=function(){return k},O},_=function(b){var C=b,T=0,k=0,O=0,j={};j.read=function(){for(;O<8;){if(T>=C.length){if(O==0)return-1;throw"unexpected end of file./"+O}var E=C.charAt(T);if(T+=1,E=="=")return O=0,-1;if(E.match(/^\s$/))continue;k=k<<6|S(E.charCodeAt(0)),O+=6}var A=k>>>O-8&255;return O-=8,A};var S=function(E){if(65<=E&&E<=90)return E-65;if(97<=E&&E<=122)return E-97+26;if(48<=E&&E<=57)return E-48+52;if(E==43)return 62;if(E==47)return 63;throw"c:"+E};return j},w=function(b,C){var T=b,k=C,O=new Array(b*C),j={};j.setPixel=function(D,R,M){O[R*T+D]=M},j.write=function(D){D.writeString("GIF87a"),D.writeShort(T),D.writeShort(k),D.writeByte(128),D.writeByte(0),D.writeByte(0),D.writeByte(0),D.writeByte(0),D.writeByte(0),D.writeByte(255),D.writeByte(255),D.writeByte(255),D.writeString(","),D.writeShort(0),D.writeShort(0),D.writeShort(T),D.writeShort(k),D.writeByte(0);var R=2,M=E(R);D.writeByte(R);for(var I=0;M.length-I>255;)D.writeByte(255),D.writeBytes(M,I,255),I+=255;D.writeByte(M.length-I),D.writeBytes(M,I,M.length-I),D.writeByte(0),D.writeString(";")};var S=function(D){var R=D,M=0,I=0,F={};return F.write=function(U,P){if(U>>>P)throw"length over";for(;M+P>=8;)R.writeByte(255&(U<<M|I)),P-=8-M,U>>>=8-M,I=0,M=0;I=U<<M|I,M=M+P},F.flush=function(){M>0&&R.writeByte(I)},F},E=function(D){for(var R=1<<D,M=(1<<D)+1,I=D+1,F=A(),U=0;U<R;U+=1)F.add(String.fromCharCode(U));F.add(String.fromCharCode(R)),F.add(String.fromCharCode(M));var P=v(),W=S(P);W.write(R,I);var q=0,H=String.fromCharCode(O[q]);for(q+=1;q<O.length;){var Y=String.fromCharCode(O[q]);q+=1,F.contains(H+Y)?H=H+Y:(W.write(F.indexOf(H),I),F.size()<4095&&(F.size()==1<<I&&(I+=1),F.add(H+Y)),H=Y)}return W.write(F.indexOf(H),I),W.write(M,I),W.flush(),P.toByteArray()},A=function(){var D={},R=0,M={};return M.add=function(I){if(M.contains(I))throw"dup key:"+I;D[I]=R,R+=1},M.size=function(){return R},M.indexOf=function(I){return D[I]},M.contains=function(I){return typeof D[I]<"u"},M};return j},$=function(b,C,T){for(var k=w(b,C),O=0;O<C;O+=1)for(var j=0;j<b;j+=1)k.setPixel(j,O,T(j,O));var S=v();k.write(S);for(var E=x(),A=S.toByteArray(),D=0;D<A.length;D+=1)E.writeByte(A[D]);return E.flush(),"data:image/gif;base64,"+E};return r}();(function(){n.stringToBytesFuncs["UTF-8"]=function(r){function i(o){for(var a=[],s=0;s<o.length;s++){var l=o.charCodeAt(s);l<128?a.push(l):l<2048?a.push(192|l>>6,128|l&63):l<55296||l>=57344?a.push(224|l>>12,128|l>>6&63,128|l&63):(s++,l=65536+((l&1023)<<10|o.charCodeAt(s)&1023),a.push(240|l>>18,128|l>>12&63,128|l>>6&63,128|l&63))}return a}return i(r)}})(),function(r){e.exports=r()}(function(){return n})})(G$);var NI=G$.exports,DI=Zn&&Zn.__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)}}(),qg=Zn&&Zn.__assign||function(){return qg=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},qg.apply(this,arguments)};Object.defineProperty(z0,"__esModule",{value:!0});exports.QRCode_1=z0.QRCode=void 0;var II=jI,PI=NI,dm=m,LI=function(e){DI(t,e);function t(n){var r=e.call(this,n)||this;return r.canvasRef=dm.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,l,c){c.lineWidth=n,c.fillStyle=a,c.strokeStyle=a,i+=n/2,r+=n/2,o-=n,Array.isArray(s)||(s=[s,s,s,s]),s=s.map(function(p){return p=Math.min(p,o/2),p<0?0:p});var u=s[0]||0,d=s[1]||0,f=s[2]||0,h=s[3]||0;c.beginPath(),c.moveTo(r+u,i),c.lineTo(r+o-d,i),d&&c.quadraticCurveTo(r+o,i,r+o,i+d),c.lineTo(r+o,i+o-f),f&&c.quadraticCurveTo(r+o,i+o,r+o-f,i+o),c.lineTo(r+h,i+o),h&&c.quadraticCurveTo(r,i+o,r,i+o-h),c.lineTo(r,i+u),u&&c.quadraticCurveTo(r,i,r+u,i),c.closePath(),c.stroke(),l&&c.fill()},t.prototype.drawPositioningPattern=function(n,r,i,o,a,s,l){l===void 0&&(l=[0,0,0,0]);var c=Math.ceil(r),u,d;typeof l!="number"&&!Array.isArray(l)?(u=l.outer||0,d=l.inner||0):(u=l,d=u);var f,h;typeof s!="string"?(f=s.outer,h=s.inner):(f=s,h=s);var p=o*r+i,g=a*r+i,v=r*7;this.drawRoundedSquare(c,g,p,v,f,u,!1,n),v=r*3,p+=r*2,g+=r*2,this.drawRoundedSquare(c,g,p,v,h,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,l,c){if(c){var u=2,d=this.transformPixelLengthIntoNumberOfCells(a,l),f=this.transformPixelLengthIntoNumberOfCells(s,l),h=this.transformPixelLengthIntoNumberOfCells(i,l)-1,p=this.transformPixelLengthIntoNumberOfCells(o,l)-1;return r>=d-u&&r<=d+h+u&&n>=f-u&&n<=f+p+u}else return!1},t.prototype.shouldComponentUpdate=function(n){return!II(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,l=r.fgColor,c=r.logoImage,u=r.logoOpacity,d=r.logoOnLoad,f=r.removeQrCodeBehindLogo,h=r.qrStyle,p=r.eyeRadius,g=r.eyeColor,v=r.logoPaddingStyle,x=+this.props.size,_=+this.props.quietZone,w=this.props.logoWidth?+this.props.logoWidth:0,$=this.props.logoHeight?+this.props.logoHeight:0,b=this.props.logoPadding?+this.props.logoPadding:0,C=PI(0,o);C.addData(this.utf16to8(i)),C.make();var T=(n=this.canvasRef)===null||n===void 0?void 0:n.current,k=T.getContext("2d"),O=x+2*_,j=C.getModuleCount(),S=x/j,E=window.devicePixelRatio||1;T.height=T.width=O*E,k.scale(E,E),k.fillStyle=s,k.fillRect(0,0,O,O);var A=_,D=[{row:0,col:0},{row:0,col:j-7},{row:j-7,col:0}];if(k.strokeStyle=l,h==="dots"){k.fillStyle=l;for(var R=S/2,M=0;M<j;M++)for(var I=0;I<j;I++)C.isDark(M,I)&&!this.isInPositioninZone(M,I,D)&&(k.beginPath(),k.arc(Math.round(I*S)+R+A,Math.round(M*S)+R+A,R/100*75,0,2*Math.PI,!1),k.closePath(),k.fill())}else if(h==="fluid"){for(var R=Math.ceil(S/2),M=0;M<j;M++)for(var I=0;I<j;I++)if(C.isDark(M,I)&&!this.isInPositioninZone(M,I,D)){var F=[!1,!1,!1,!1];M>0&&!C.isDark(M-1,I)&&I>0&&!C.isDark(M,I-1)&&(F[0]=!0),M>0&&!C.isDark(M-1,I)&&I<j-1&&!C.isDark(M,I+1)&&(F[1]=!0),M<j-1&&!C.isDark(M+1,I)&&I<j-1&&!C.isDark(M,I+1)&&(F[2]=!0),M<j-1&&!C.isDark(M+1,I)&&I>0&&!C.isDark(M,I-1)&&(F[3]=!0);var U=Math.ceil((I+1)*S)-Math.floor(I*S),P=Math.ceil((M+1)*S)-Math.floor(M*S);k.fillStyle=l,k.beginPath(),k.arc(Math.round(I*S)+R+A,Math.round(M*S)+R+A,R,0,2*Math.PI,!1),k.closePath(),k.fill(),F[0]||k.fillRect(Math.round(I*S)+A,Math.round(M*S)+A,U/2,P/2),F[1]||k.fillRect(Math.round(I*S)+A+Math.floor(U/2),Math.round(M*S)+A,U/2,P/2),F[2]||k.fillRect(Math.round(I*S)+A+Math.floor(U/2),Math.round(M*S)+A+Math.floor(P/2),U/2,P/2),F[3]||k.fillRect(Math.round(I*S)+A,Math.round(M*S)+A+Math.floor(P/2),U/2,P/2)}}else for(var M=0;M<j;M++)for(var I=0;I<j;I++)if(C.isDark(M,I)&&!this.isInPositioninZone(M,I,D)){k.fillStyle=l;var U=Math.ceil((I+1)*S)-Math.floor(I*S),P=Math.ceil((M+1)*S)-Math.floor(M*S);k.fillRect(Math.round(I*S)+A,Math.round(M*S)+A,U,P)}for(var W=0;W<3;W++){var q=D[W],M=q.row,I=q.col,H=p,Y=void 0;Array.isArray(H)&&(H=H[W]),typeof H=="number"&&(H=[H,H,H,H]),g?Array.isArray(g)?Y=g[W]:Y=g:Y=l,this.drawPositioningPattern(k,S,A,M,I,Y,H)}if(c){var G=new Image;a&&(G.crossOrigin="Anonymous"),G.onload=function(J){k.save();var ee=w||x*.2,z=$||ee,L=(x-ee)/2,B=(x-z)/2;if(f||b){k.beginPath(),k.strokeStyle=s,k.fillStyle=s;var V=ee+2*b,N=z+2*b,X=L+A-b,Q=B+A-b;if(v==="circle"){var Z=X+V/2,le=Q+N/2;k.ellipse(Z,le,V/2,N/2,0,0,2*Math.PI),k.stroke(),k.fill()}else k.fillRect(X,Q,V,N)}k.globalAlpha=u,k.drawImage(G,L+A,B+A,ee,z),k.restore(),d&&d(J)},G.src=c}},t.prototype.render=function(){var n,r=+this.props.size+2*+this.props.quietZone;return dm.createElement("canvas",{id:(n=this.props.id)!==null&&n!==void 0?n:"react-qrcode-logo",height:r,width:r,style:qg({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}(dm.Component);exports.QRCode_1=z0.QRCode=LI;const FI="_floating-label_3xm9u_1",BI="_without-label_3xm9u_21",zI="_floating-label-check_3xm9u_184",fm={floatingLabel:FI,withoutLabel:BI,floatingLabelCheck:zI},WI=e=>{const t=Re.c(3),{hint:n,children:r}=e;let i;return t[0]!==r||t[1]!==n?(i=n?y.jsx(O0,{text:n,placement:"top",children:r}):r,t[0]=r,t[1]=n,t[2]=i):i=t[2],i},fh=({ref:e,hidden:t,children:n,className:r,isInvalid:i,isForRadioInput:o,inputContainerClassName:a,isForCheckInput:s,hint:l,required:c,disabled:u,...d})=>{const{ProjectIconComponent:f}=m.useContext(ln),h=d.withoutLabel?"":y.jsxs("div",{className:"d-flex gap-1 align-items-center",children:[d.label,c?y.jsx("span",{className:ue("fw-bold",{"text-danger":!u}),style:{fontSize:"16px"},children:"*"}):null,l?y.jsx("div",{className:"d-flex align-items-center",children:y.jsx(f,{icon:"info"})}):null]});return s?y.jsx("div",{className:ue("luminus-floating-label-check",fm.floatingLabelCheck),children:n}):y.jsx(WI,{hint:l,children:y.jsx(y0,{ref:e,label:y.jsx("div",{className:"d-flex gap-1 align-items-center",children:h}),hidden:t??!1,className:ue(`luminus-floating-label ${r??""}`,fm.floatingLabel,{[a??""]:a},{[fm.withoutLabel]:d.withoutLabel}),children:n})})};fh.displayName="FloatingLabelInput";const UI="_row-label-input_i295l_1",HI="_label_i295l_4",VI="_input-container_i295l_9",qI="_keep-check-label_i295l_132",YI="_is-invalid_i295l_160",vl={rowLabelInput:UI,label:HI,inputContainer:VI,keepCheckLabel:qI,isInvalid:YI},su=({ref:e,hidden:t,children:n,required:r,disabled:i,className:o,isInvalid:a,isForRadioInput:s,isForTextAreaInput:l,inputContainerClassName:c,hint:u,...d})=>{const{ProjectIconComponent:f}=m.useContext(ln),h=d.withoutLabel?y.jsx(y.Fragment,{}):y.jsx("label",{className:ue("label col-6",{"col-12":l},vl.label),children:y.jsxs(zn,{variant:"form-label",className:ue("d-flex gap-1 align-items-center",a?"text-danger":""),children:[d.label,r?y.jsx("span",{className:ue("fw-bold",{"text-danger":!i}),style:{fontSize:"16px"},children:"*"}):null,u?y.jsx("div",{className:"d-flex align-items-center",style:{paddingTop:"2px"},children:y.jsx(f,{icon:"info"})}):null]})});return y.jsxs("div",{ref:e,className:ue("luminus-row-label row gx-0 gy-0",{"is-invalid":a},{[vl.isInvalid]:a},{[o??""]:o},{"d-none":t},vl.rowLabelInput),children:[u?y.jsx(O0,{text:u,placement:"top",children:h}):h,y.jsx("div",{className:ue("input-container",vl.inputContainer,{"col-6":!d.withoutLabel&&!l},{"col-12":d.withoutLabel||l},{[vl.keepCheckLabel]:s},{[c??""]:c}),children:n})]})};su.displayName="RowLabelInput";const K$=e=>{const t=Re.c(4),{ref:n,children:r,className:i,hidden:o}=e,a=`${o?"d-none":""} ${i}`;let s;return t[0]!==r||t[1]!==n||t[2]!==a?(s=y.jsx("div",{ref:n,className:a,children:r}),t[0]=r,t[1]=n,t[2]=a,t[3]=s):s=t[3],s};K$.displayName="NoInputContainer";const Z$=e=>{const t=Re.c(8),{currentSelection:n,selectedItemNavigateTo:r,children:i}=e;if(!n||!n.id||!r){let l;return t[0]!==i?(l=y.jsx("div",{className:"luminus-input-container position-relative w-100",children:i}),t[0]=i,t[1]=l):l=t[1],l}let o;t[2]!==n||t[3]!==r?(o=r(n),t[2]=n,t[3]=r,t[4]=o):o=t[4];const a=o;let s;return t[5]!==i||t[6]!==a?(s=y.jsx(Ps.Link,{to:a,className:"luminus-input-container position-relative w-100 text-decoration-none",children:i}),t[5]=i,t[6]=a,t[7]=s):s=t[7],s},X$=({InputContainer:e=fh,type:t,value:n,onChange:r,debounceMs:i,label:o,withoutLabel:a,placeholder:s,size:l,hidden:c,disabled:u,showClearIcon:d,clearValue:f,list:h,className:p,step:g,minLength:v,maxLength:x,noSelectOnFocus:_,hint:w,onConfirm:$,autoComplete:b})=>{var P,W,q;const C=t==="number",T=m.useCallback(()=>{if(!r)return;const H=f??null;r(C?H?Number(H):null:(H==null?void 0:H.toString())??"")},[f,C,r]),k=m.useRef(null),[O,j]=m.useState((n==null?void 0:n.toString())??""),S=m.useCallback(H=>{const Y=H;r&&r(C?Y==null||Y===""?null:Number(Y):Y||null)},[C,r]),E=m.useCallback(H=>{var G;const Y=(G=H.target)==null?void 0:G.value;if(!i){S(Y);return}j(Y),k.current!==null&&window.clearTimeout(k.current),k.current=window.setTimeout(()=>{S(Y)},i)},[i,S]),A=m.useMemo(()=>{if($!==void 0)return H=>{H.key==="Enter"&&$&&$()}},[$]);m.useEffect(()=>{j(n===null?"":n.toString())},[n]);const[D,R]=m.useState(!1),M=B0(t,n?n.toString()??null:null,D),I=m.useRef(null),F=(((P=I.current)==null?void 0:P.scrollWidth)??0)>(((W=I.current)==null?void 0:W.clientWidth)??0),U=(q=I.current)==null?void 0:q.getBoundingClientRect();return y.jsxs(e,{withoutLabel:a,label:o??"",hidden:c,className:p,hint:w,disabled:u,children:[y.jsx(si.Control,{type:M,placeholder:s??o,size:l,value:i?O:(n==null?void 0:n.toString())??"",onChange:E,className:p??"",hidden:c,disabled:u??!1,list:h,onFocus:H=>{R(!0),!_&&H.target.select()},onBlur:()=>R(!1),onKeyDown:A,step:g,minLength:v,maxLength:x,autoComplete:b,ref:I}),d&&n!==null&&r&&!u&&y.jsx("div",{className:`luminus-input-remove-icon ${t!=="text"?"inset":""}`,children:y.jsx(au,{color:"secondary",size:"sm",onClick:T,children:y.jsx(Qc,{})})}),F?y.jsx("div",{className:"luminus-overflow-tooltip",style:{opacity:0,position:"fixed",top:((U==null?void 0:U.top)??0)+((U==null?void 0:U.height)??0),left:(U==null?void 0:U.left)??0},children:i?O:(n==null?void 0:n.toString())??""}):null]})},Q$=e=>{const t=Re.c(7),{value:n,MiniDetailComponent:r,children:i,miniDetailPlacement:o}=e;if(!n||!r)return i;let a;t[0]!==n?(a=n.toString(),t[0]=n,t[1]=a):a=t[1];let s;return t[2]!==r||t[3]!==i||t[4]!==o||t[5]!==a?(s=y.jsx(r,{id:a,placement:o,children:i}),t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=s):s=t[6],s},J$=({InputContainer:e=fh,value:t,options:n,onChange:r,label:i,withoutLabel:o,isNumber:a,size:s,hidden:l,disabled:c,noSortOptions:u,className:d,suffixIdToName:f,noEmptyOption:h,appendCurrentSelectionWithName:p,dropdownWidth:g,hint:v,addNewOptionPath:x,refreshOptions:_,MiniDetailComponent:w,miniDetailPlacement:$,selectedItemNavigateTo:b,noRemoveButton:C})=>{const{texts:{customSelect:T}}=m.useContext(ln),[k,O]=m.useState(!1),[j,S]=m.useState(""),E=m.useCallback(U=>{S(U)},[]),A=m.useMemo(()=>n.find(U=>U.id===t)??null,[n,t]),D=m.useCallback(U=>{var P;return U===null?"":!U.name||U.name.length===0?((P=U.id)==null?void 0:P.toString())??"":f?`${U.name} (${U.id})`:U.name},[f]),R=m.useMemo(()=>{const U=n?[...n]:[];return p!==void 0&&t!==void 0&&t!==null&&(U.some(P=>P.id===t)||U.push({id:t,name:p})),U.map(P=>({id:P.id,name:D(P)})).filter(P=>A0(P.name,j)).sort((P,W)=>u?0:(P.name??"").localeCompare(W.name??""))},[n,u,j,D,p,t]),M=m.useCallback(U=>{var P;r&&r((U==null?void 0:U.id)===void 0||(U==null?void 0:U.id)===null?null:a?Number(U.id):(P=U.id)==null?void 0:P.toString())},[r,a]),I=m.useCallback(U=>{O(!1),M(U)},[M]),F=m.useRef(null);return y.jsx(y.Fragment,{children:y.jsxs(e,{withoutLabel:o,label:i??"",hidden:l,inputContainerClassName:ue({"luminus-dropdown-select-open":k}),className:d,hint:v,disabled:c,children:[y.jsx(Z$,{currentSelection:A,selectedItemNavigateTo:b,children:y.jsx(Q$,{value:t,MiniDetailComponent:w,miniDetailPlacement:$,children:y.jsxs(si.Select,{ref:F,size:s,value:t??"",onMouseDown:U=>{U.currentTarget.focus(),U.preventDefault()},onClick:()=>{!c&&O(!0)},onChange:()=>{},className:ue("w-100",{"luminus-dropdown-picker-disabled":c}),hidden:l,children:[h&&!(t==null||t==="")?void 0:y.jsx("option",{value:""}),t!=null&&y.jsx("option",{value:t,children:D(A)})]})})}),F.current&&y.jsx(pT,{show:k,onCancel:()=>O(!1),items:R,currentSelection:A??null,onSelectionChange:I,onSearchQueryChange:E,texts:T,disabled:c,inputRef:F,autoHideSearch:!0,allItemsLength:n.length,itemsNameWidth:g,addNewOptionPath:x,refreshOptions:_,noRemoveButton:C})]})})};function GI(e){return ft({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 KI(e){return ft({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 ZI(e){return ft({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 XI(e){return ft({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 W0=e=>{const t=Re.c(70),{InputContainer:n,formField:r,label:i,resetsFields:o,options:a,isNumber:s,size:l,showClearIcon:c,clearValue:u,noSortOptions:d,required:f,hidden:h,disabled:p,withoutLabel:g,hint:v,className:x}=e,_=n===void 0?su:n,{register:w,getFieldState:$,formState:b,getValues:C,setValue:T}=dn.useFormContext(),{isSubmitted:k}=dn.useFormState();let O;t[0]!==r||t[1]!==b||t[2]!==$?(O=$(r,b),t[0]=r,t[1]=b,t[2]=$,t[3]=O):O=t[3];const{error:j}=O;let S;t[4]===Symbol.for("react.memo_cache_sentinel")?(S={falseIfNotInit:!0},t[4]=S):S=t[4];const E=uh(S);console.log("disabled ",p),console.log("formDisabled ",E);const[A,D]=m.useState(!1);let R;if(t[5]!==d||t[6]!==a){let te;t[8]!==d?(te=(re,se)=>d?0:(re.name??"").localeCompare(se.name??""),t[8]=d,t[9]=te):te=t[9],R=a.toSorted(te),t[5]=d,t[6]=a,t[7]=R}else R=t[7];const M=R;let I;t[10]!==u||t[11]!==r||t[12]!==s||t[13]!==T||t[14]!==A?(I=()=>{const te=u??null;s?T(r,te===null?null:Number(te),{shouldDirty:!0,shouldValidate:A}):T(r,(te==null?void 0:te.toString())??"",{shouldDirty:!0,shouldValidate:A})},t[10]=u,t[11]=r,t[12]=s,t[13]=T,t[14]=A,t[15]=I):I=t[15];const F=I,U=p||E;console.log(U);let P;t[16]!==r||t[17]!==C||t[18]!==T?(P=()=>{console.log("useEffect selectOptions"),T(r,C(r))},t[16]=r,t[17]=C,t[18]=T,t[19]=P):P=t[19];let W;t[20]!==r||t[21]!==C||t[22]!==M||t[23]!==T?(W=[M,r,C,T],t[20]=r,t[21]=C,t[22]=M,t[23]=T,t[24]=W):W=t[24],m.useEffect(P,W);let q,H;t[25]!==k?(q=()=>{k&&D(!0)},H=[k],t[25]=k,t[26]=q,t[27]=H):(q=t[26],H=t[27]),m.useEffect(q,H);const Y=j!==void 0;let G;t[28]!==r?(G={name:r},t[28]=r,t[29]=G):G=t[29];const J=dn.useWatch(G),ee=i??"";let z;t[30]!==s?(z=te=>s?te==null||te===""?null:parseInt(te,10):te==null||te===""?null:te,t[30]=s,t[31]=z):z=t[31];let L;t[32]!==o||t[33]!==T||t[34]!==A?(L=()=>{o&&(console.log("resetsFields"),o.forEach(te=>T(te,null,{shouldDirty:!0,shouldValidate:A})))},t[32]=o,t[33]=T,t[34]=A,t[35]=L):L=t[35];let B;t[36]!==r||t[37]!==w||t[38]!==z||t[39]!==L?(B=w(r,{setValueAs:z,onChange:L}),t[36]=r,t[37]=w,t[38]=z,t[39]=L,t[40]=B):B=t[40];let V;t[41]===Symbol.for("react.memo_cache_sentinel")?(V=y.jsx("option",{value:""}),t[41]=V):V=t[41];let N;t[42]!==M?(N=M.map(QI),t[42]=M,t[43]=N):N=t[43];let X;t[44]!==U||t[45]!==h||t[46]!==Y||t[47]!==l||t[48]!==B||t[49]!==N?(X=y.jsxs(si.Select,{size:l,...B,isInvalid:Y,hidden:h,disabled:U,className:"w-100",children:[V,N]}),t[44]=U,t[45]=h,t[46]=Y,t[47]=l,t[48]=B,t[49]=N,t[50]=X):X=t[50];let Q;t[51]!==F||t[52]!==J||t[53]!==c?(Q=c&&J!=null&&y.jsx("div",{className:"luminus-input-remove-icon inset",children:y.jsx(au,{color:"secondary",size:"sm",onClick:F,children:y.jsx(Qc,{})})}),t[51]=F,t[52]=J,t[53]=c,t[54]=Q):Q=t[54];let Z;t[55]!==j?(Z=j&&y.jsx(Th,{message:j.message}),t[55]=j,t[56]=Z):Z=t[56];let le;return t[57]!==_||t[58]!==U||t[59]!==x||t[60]!==h||t[61]!==v||t[62]!==Y||t[63]!==f||t[64]!==ee||t[65]!==X||t[66]!==Q||t[67]!==Z||t[68]!==g?(le=y.jsx(y.Fragment,{children:y.jsxs(_,{label:ee,required:f,disabled:U,hidden:h,withoutLabel:g,isInvalid:Y,hint:v,className:x,children:[X,Q,Z]})}),t[57]=_,t[58]=U,t[59]=x,t[60]=h,t[61]=v,t[62]=Y,t[63]=f,t[64]=ee,t[65]=X,t[66]=Q,t[67]=Z,t[68]=g,t[69]=le):le=t[69],le};function QI(e){return y.jsx("option",{value:e.id??"",children:e.name},e.id)}const U0=e=>{const t=Re.c(65),{InputContainer:n,formField:r,label:i,resetsFields:o,size:a,showClearIcon:s,clearValue:l,required:c,hidden:u,disabled:d,rows:f,withoutLabel:h,customFormControlProps:p,minLength:g,maxLength:v,hint:x,onChange:_,className:w}=e,$=n===void 0?su:n,{control:b,setValue:C,getFieldState:T,formState:k}=dn.useFormContext(),{isSubmitted:O}=dn.useFormState();let j;t[0]!==r||t[1]!==k||t[2]!==T?(j=T(r,k),t[0]=r,t[1]=k,t[2]=T,t[3]=j):j=t[3];const{error:S}=j;let E;t[4]===Symbol.for("react.memo_cache_sentinel")?(E={falseIfNotInit:!0},t[4]=E):E=t[4];const A=uh(E),[D,R]=m.useState(!1);let M;t[5]!==b||t[6]!==r?(M={name:r,control:b},t[5]=b,t[6]=r,t[7]=M):M=t[7];const{field:I}=dn.useController(M),{onChange:F,onBlur:U,ref:P,value:W,name:q}=I;let H;t[8]!==p?(H=p??{},t[8]=p,t[9]=H):H=t[9];let Y,G,J;t[10]!==H?({onChange:G,onBlur:Y,...J}=H,t[10]=H,t[11]=Y,t[12]=G,t[13]=J):(Y=t[11],G=t[12],J=t[13]);let ee;t[14]!==l||t[15]!==r||t[16]!==C||t[17]!==D?(ee=()=>{const ce=l??null,ae=ce==null||ce===""?null:ce.toString();C(r,ae,{shouldDirty:!0,shouldValidate:D})},t[14]=l,t[15]=r,t[16]=C,t[17]=D,t[18]=ee):ee=t[18];const z=ee,L=d||A;let B,V;t[19]!==O?(B=()=>{O&&R(!0)},V=[O],t[19]=O,t[20]=B,t[21]=V):(B=t[20],V=t[21]),m.useEffect(B,V);const N=S!==void 0;let X;t[22]!==G||t[23]!==F||t[24]!==_||t[25]!==o||t[26]!==C||t[27]!==D?(X=ce=>{const ae=ce.target.value,ye=ae==null||ae===""?null:ae;F(ye),o&&o.forEach(De=>C(De,null,{shouldDirty:!0,shouldValidate:D})),_&&_(ye),G&&G(ce)},t[22]=G,t[23]=F,t[24]=_,t[25]=o,t[26]=C,t[27]=D,t[28]=X):X=t[28];const Q=X;let Z;t[29]!==Y||t[30]!==U?(Z=ce=>{U(),Y&&Y(ce)},t[29]=Y,t[30]=U,t[31]=Z):Z=t[31];const le=Z,te=W!=null&&W!=="",re=i??"",se=W??"",fe=f??2;let xe;t[32]!==L||t[33]!==q||t[34]!==P||t[35]!==le||t[36]!==Q||t[37]!==u||t[38]!==N||t[39]!==v||t[40]!==g||t[41]!==J||t[42]!==a||t[43]!==se||t[44]!==fe?(xe=y.jsx(si.Control,{as:"textarea",name:q,size:a,value:se,onChange:Q,onBlur:le,ref:P,isInvalid:N,hidden:u,disabled:L,rows:fe,className:"w-100",minLength:g,maxLength:v,...J}),t[32]=L,t[33]=q,t[34]=P,t[35]=le,t[36]=Q,t[37]=u,t[38]=N,t[39]=v,t[40]=g,t[41]=J,t[42]=a,t[43]=se,t[44]=fe,t[45]=xe):xe=t[45];let ve;t[46]!==z||t[47]!==te||t[48]!==s?(ve=s&&te&&y.jsx("div",{className:"luminus-input-remove-icon",children:y.jsx(au,{color:"secondary",size:"sm",onClick:z,children:y.jsx(Qc,{})})}),t[46]=z,t[47]=te,t[48]=s,t[49]=ve):ve=t[49];let be;t[50]!==S?(be=S&&y.jsx(Th,{message:S.message}),t[50]=S,t[51]=be):be=t[51];let Te;return t[52]!==$||t[53]!==L||t[54]!==w||t[55]!==u||t[56]!==x||t[57]!==N||t[58]!==c||t[59]!==re||t[60]!==xe||t[61]!==ve||t[62]!==be||t[63]!==h?(Te=y.jsxs($,{label:re,required:c,disabled:L,hidden:u,withoutLabel:h,isInvalid:N,className:w,hint:x,isForTextAreaInput:!0,children:[xe,ve,be]}),t[52]=$,t[53]=L,t[54]=w,t[55]=u,t[56]=x,t[57]=N,t[58]=c,t[59]=re,t[60]=xe,t[61]=ve,t[62]=be,t[63]=h,t[64]=Te):Te=t[64],Te},Es=({ref:e,InputContainer:t=su,type:n,formField:r,label:i,placeholder:o,size:a,resetsFields:s,showClearIcon:l,clearValue:c,required:u,hidden:d,disabled:f,withoutLabel:h,list:p,step:g,CustomOnChangeComponent:v,noSelectOnFocus:x,minLength:_,maxLength:w,hint:$,onChange:b,className:C,autoComplete:T})=>{var L,B,V,N;const{register:k,setValue:O,getFieldState:j,formState:S}=dn.useFormContext(),{isSubmitted:E}=dn.useFormState(),{error:A}=j(r,S),D=uh({falseIfNotInit:!0}),[R,M]=m.useState(!1),I=m.useCallback(()=>{const X=c??null;n==="number"?O(r,X!==null?Number(X):null,{shouldDirty:!0,shouldValidate:R}):O(r,(X==null?void 0:X.toString())??"",{shouldDirty:!0,shouldValidate:R})},[c,n,O,r,R]),F=m.useMemo(()=>f||D,[f,D]),U=A!==void 0,[P,W]=m.useState(!1),q=dn.useWatch({name:r}),H=B0(n,q??null,P),{ref:Y,...G}=k(r,{setValueAs:X=>n==="number"?X==null||X===""?null:Number(X):X==null||X===""?null:X,onChange:X=>{var Q;s&&s.forEach(Z=>O(Z,null,{shouldDirty:!0,shouldValidate:R})),b&&b((Q=X.target)!=null&&Q.value?n==="number"?Number(X.target.value)??null:X.target.value.toString():null)},onBlur:()=>W(!1)}),J=m.useRef(null),ee=(((L=J.current)==null?void 0:L.scrollWidth)??0)>(((B=J.current)==null?void 0:B.clientWidth)??0),z=(V=J.current)==null?void 0:V.getBoundingClientRect();return m.useImperativeHandle(e,()=>J.current,[J]),m.useEffect(()=>{E&&M(!0)},[E]),y.jsxs(t,{label:i,required:u,disabled:F,hidden:d,withoutLabel:h??!1,isInvalid:U,hint:$,className:C,children:[y.jsxs("div",{className:"luminus-input-container position-relative w-100",children:[y.jsx(si.Control,{type:H,placeholder:o??i,size:a,onFocus:X=>{W(!0),!x&&X.target.select()},...G,ref:X=>{Y(X),J.current=X},isInvalid:U,hidden:d,disabled:F,list:p,className:"w-100",step:g,minLength:_,maxLength:w,autoComplete:T}),v&&y.jsx("div",{className:"custom-picker-button",children:v})]}),l&&q!=null&&y.jsx("div",{className:`luminus-input-remove-icon ${n!=="text"?"inset":""}`,children:y.jsx(au,{color:"secondary",size:"sm",onClick:I,children:y.jsx(Qc,{})})}),ee?y.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,pointerEvents:"none"},children:((N=J.current)==null?void 0:N.value)??""}):null,A&&y.jsx(Th,{message:A.message})]})},JI="_item_1dy8x_1",eS={item:JI},Yo=e=>{const t=Re.c(17);let n,r,i,o,a,s,l;t[0]!==e?({color:s,icon:i,className:r,children:n,to:l,as:o,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=s,t[7]=l):(n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],l=t[7]);const u=`btn luminus-dropdown-item text-nowrap rounded text-${s===void 0?"primary":s} ${r??""}`;let d;t[8]!==u?(d=ue(u,eS.item),t[8]=u,t[9]=d):d=t[9];const f=o==="link"?Ps.Link:void 0,h=l??"";let p;return t[10]!==n||t[11]!==i||t[12]!==a||t[13]!==d||t[14]!==f||t[15]!==h?(p=y.jsxs(xs.Item,{className:d,as:f,to:h,...a,children:[i,n]}),t[10]=n,t[11]=i,t[12]=a,t[13]=d,t[14]=f,t[15]=h,t[16]=p):p=t[16],p},eP="_button_qhwih_1",tP={button:eP},H0=({ref:e,color:t="primary",icon:n=y.jsx(RC,{size:21}),text:r,onClick:i,className:o,children:a,...s})=>y.jsxs("button",{type:"button",ref:e,onClick:l=>{l.preventDefault(),i(l)},"aria-label":"dropdown toggle",className:ue(`btn luminus-context-button text-${t} ${o??""}`,tP.button),...s,children:[n,r]}),V0=e=>{const t=Re.c(2);let n;return t[0]!==e?(n=y.jsx(xs.Toggle,{...e}),t[0]=e,t[1]=n):n=t[1],n},nP="_divider_1e6rk_1",rP={divider:nP},Yg=e=>{const t=Re.c(4),{className:n}=e;let r;t[0]!==n?(r=ue("luminus-dropdown-divider",n,rP.divider),t[0]=n,t[1]=r):r=t[1];let i;return t[2]!==r?(i=y.jsx(xs.Divider,{className:r}),t[2]=r,t[3]=i):i=t[3],i},iP="_dropdown_1lk66_1",oP={dropdown:iP},q0=e=>{const t=Re.c(14);let n,r,i,o;t[0]!==e?({toggle:o,children:r,align:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o):(n=t[1],r=t[2],i=t[3],o=t[4]);let a;t[5]===Symbol.for("react.memo_cache_sentinel")?(a=ue("luminus-dropdown rounded shadow",oP.dropdown),t[5]=a):a=t[5];let s;t[6]!==n||t[7]!==r?(s=y.jsx(xs.Menu,{className:a,align:n,children:r}),t[6]=n,t[7]=r,t[8]=s):s=t[8];let l;return t[9]!==n||t[10]!==i||t[11]!==s||t[12]!==o?(l=y.jsxs(xs,{...i,align:n,children:[o,s]}),t[9]=n,t[10]=i,t[11]=s,t[12]=o,t[13]=l):l=t[13],l},aP="_wrapper_1tb6d_1",sP="_controls_1tb6d_16",lP="_explorerWindow_1tb6d_20",cP="_folderList_1tb6d_28",uP="_fileList_1tb6d_35",dP="_dndText_1tb6d_61",Do={wrapper:aP,controls:sP,explorerWindow:lP,folderList:cP,fileList:uP,dndText:dP},xn=m.createContext({apiActions:{},loadDocuments(){throw new Error("DocumentsContext was not initialized.")},reducer:[{},{}],entityType:"",entityId:-1}),fP="_defaultFolder_8tlxv_1",hP="_names_8tlxv_5",pP="_folderType_8tlxv_9",hm={defaultFolder:fP,names:hP,folderType:pP},tS=e=>{const t=Re.c(19),{isActive:n,isDefault:r,folderName:i,typeName:o}=e,{ProjectIconComponent:a}=m.useContext(ln),s=`folder${n?"-filled":""}`,l=r?hm.defaultFolder:"text-primary";let c;t[0]!==l?(c=ue("d-inline-block",l),t[0]=l,t[1]=c):c=t[1];let u;t[2]===Symbol.for("react.memo_cache_sentinel")?(u={className:"d-block"},t[2]=u):u=t[2];let d;t[3]!==a||t[4]!==s||t[5]!==c?(d=y.jsx(a,{icon:s,className:c,iconProps:u,size:18}),t[3]=a,t[4]=s,t[5]=c,t[6]=d):d=t[6];let f;t[7]===Symbol.for("react.memo_cache_sentinel")?(f=ue("d-flex flex-column gap-0 align-items-start",hm.names),t[7]=f):f=t[7];const h=n?"fw-bold":"";let p;t[8]!==i||t[9]!==h?(p=y.jsx("span",{className:h,children:i}),t[8]=i,t[9]=h,t[10]=p):p=t[10];let g;t[11]!==o?(g=o?y.jsxs("span",{className:hm.folderType,children:["(",o,")"]}):null,t[11]=o,t[12]=g):g=t[12];let v;t[13]!==p||t[14]!==g?(v=y.jsxs("div",{className:f,children:[p,g]}),t[13]=p,t[14]=g,t[15]=v):v=t[15];let x;return t[16]!==v||t[17]!==d?(x=y.jsxs("div",{className:"d-flex gap-2 align-items-center",children:[d,v]}),t[16]=v,t[17]=d,t[18]=x):x=t[18],x},mP=e=>{const t=Re.c(9),{customText:n}=e,{reducer:r}=m.useContext(xn),[i,o]=r;let a;t[0]!==o?(a=()=>{o({type:"select-folder",folderId:"root"})},t[0]=o,t[1]=a):a=t[1];const s=a;let l;t[2]===Symbol.for("react.memo_cache_sentinel")?(l=ue("border-0 bg-transparent"),t[2]=l):l=t[2];const c=n??"root",u=i.activeFolder==="root";let d;t[3]!==c||t[4]!==u?(d=y.jsx(tS,{folderName:c,isActive:u,typeName:"",isDefault:!0}),t[3]=c,t[4]=u,t[5]=d):d=t[5];let f;return t[6]!==s||t[7]!==d?(f=y.jsx("li",{children:y.jsx("button",{onClick:s,type:"button",className:l,children:d})}),t[6]=s,t[7]=d,t[8]=f):f=t[8],f};function gP(e){if(e.state!=="openned-modal")throw new Error('Not in "openned-modal" state!')}const nS=()=>{const e=sh(),{startLoading:t,stopLoading:n}=m.useContext(Qf),{reducer:[,r]}=m.useContext(xn),i=m.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=m.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}},Ax=(e,t,n)=>{if(e&&"reportValidity"in e){const r=dn.get(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},rS=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?Ax(r.ref,n,e):r.refs&&r.refs.forEach(i=>Ax(i,n,e))}},vP=(e,t)=>{t.shouldUseNativeValidation&&rS(e,t);const n={};for(const r in e){const i=dn.get(t.fields,r),o=Object.assign(e[r]||{},{ref:i&&i.ref});if(bP(t.names||Object.keys(e),r)){const a=Object.assign({},dn.get(n,r));dn.set(a,"root",o),dn.set(n,r,a)}else dn.set(n,r,o)}return n},bP=(e,t)=>e.some(n=>n.startsWith(t+"."));var yP=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 l=n[a].types,c=l&&l[r.code];n[a]=dn.appendErrors(a,t,n,i,c?[].concat(c,r.message):r.message)}e.shift()}return n},hh=function(e,t,n){return n===void 0&&(n={}),function(r,i,o){try{return Promise.resolve(function(a,s){try{var l=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(c){return o.shouldUseNativeValidation&&rS({},o),{errors:{},values:n.raw?r:c}})}catch(c){return s(c)}return l&&l.then?l.then(void 0,s):l}(0,function(a){if(function(s){return Array.isArray(s==null?void 0:s.errors)}(a))return{values:{},errors:vP(yP(a.errors,!o.shouldUseNativeValidation&&o.criteriaMode==="all"),o)};throw a}))}catch(a){return Promise.reject(a)}}};const xP=()=>{const e=Re.c(14),{reducer:t,entityId:n,entityType:r}=m.useContext(xn),[i]=t,{zNumberRequired:o,zStringRequired:a}=ch(),{createFolder:s}=nS();let l,c;if(e[0]!==o||e[1]!==a){const g=Si({name:a(),documentTypeId:o()});c=dn.useForm,l=hh(g),e[0]=o,e[1]=a,e[2]=l,e[3]=c}else l=e[2],c=e[3];let u;e[4]!==l?(u={resolver:l},e[4]=l,e[5]=u):u=e[5];const d=c(u);let f;e[6]!==s||e[7]!==n||e[8]!==r||e[9]!==i.activeFolder?(f=async g=>{const v={...g,dbObjectId:n.toString(),entity:r,parentFolderId:i.activeFolder==="root"?null:i.activeFolder};await s(v)},e[6]=s,e[7]=n,e[8]=r,e[9]=i.activeFolder,e[10]=f):f=e[10];const h=f;let p;return e[11]!==d||e[12]!==h?(p={formMethods:d,onSubmit:h},e[11]=d,e[12]=h,e[13]=p):p=e[13],p},wP=e=>{var b;const t=Re.c(38),{handleClose:n}=e,{texts:r}=m.useContext(ln),{documents:i}=r,{reducer:o,entityType:a}=m.useContext(xn),[s]=o;if(gP(s),s.modalType!=="create-folder")throw new Error("Tried to render CreateFolderModal without create-folder modal type reducer state.");const{onSubmit:l,formMethods:c}=xP();let u;t[0]!==c||t[1]!==l?(u=c.handleSubmit(l),t[0]=c,t[1]=l,t[2]=u):u=t[2];let d;if(t[3]!==i||t[4]!==a||t[5]!==s.chosenFolderId||t[6]!==s.foldersMap){let C;t[8]!==a||t[9]!==s.chosenFolderId||t[10]!==s.foldersMap?(C=((b=s.foldersMap.get(s.chosenFolderId))==null?void 0:b.name)??a,t[8]=a,t[9]=s.chosenFolderId,t[10]=s.foldersMap,t[11]=C):C=t[11],d=i.createFolderInFolder(C),t[3]=i,t[4]=a,t[5]=s.chosenFolderId,t[6]=s.foldersMap,t[7]=d}else d=t[7];let f;t[12]!==d?(f=y.jsx(Xn.Header,{closeButton:!0,children:y.jsx(Xn.Title,{children:d})}),t[12]=d,t[13]=f):f=t[13];let h;t[14]!==i.name?(h=y.jsx(Es,{formField:"name",type:"text",label:i.name,required:!0}),t[14]=i.name,t[15]=h):h=t[15];let p;t[16]!==i.folderType||t[17]!==s.documentTypes?(p=y.jsx(W0,{options:s.documentTypes,formField:"documentTypeId",label:i.folderType,isNumber:!0,required:!0}),t[16]=i.folderType,t[17]=s.documentTypes,t[18]=p):p=t[18];let g;t[19]!==h||t[20]!==p?(g=y.jsxs(Xn.Body,{children:[h,p]}),t[19]=h,t[20]=p,t[21]=g):g=t[21];let v;t[22]!==i.cancel||t[23]!==n?(v=y.jsx(da,{onClick:n,variant:"outlined",color:"secondary",children:i.cancel}),t[22]=i.cancel,t[23]=n,t[24]=v):v=t[24];let x;t[25]!==i.createFolder?(x=y.jsx(da,{type:"submit",children:i.createFolder}),t[25]=i.createFolder,t[26]=x):x=t[26];let _;t[27]!==x||t[28]!==v?(_=y.jsxs(Xn.Footer,{children:[v,x]}),t[27]=x,t[28]=v,t[29]=_):_=t[29];let w;t[30]!==_||t[31]!==u||t[32]!==f||t[33]!==g?(w=y.jsxs(si,{onSubmit:u,children:[f,g,_]}),t[30]=_,t[31]=u,t[32]=f,t[33]=g,t[34]=w):w=t[34];let $;return t[35]!==c||t[36]!==w?($=y.jsx(y.Fragment,{children:y.jsx(dn.FormProvider,{...c,children:w})}),t[35]=c,t[36]=w,t[37]=$):$=t[37],$},iS=100,_P=(e,t)=>{const n=sh(),{startLoading:r,stopLoading:i}=m.useContext(Qf),{loadDocuments:o}=m.useContext(xn),{zStringRequired:a,zString:s,zNumberRequired:l,zDateRequired:c}=ch(),u=Si({name:a(),description:s(),validToDate:c(),documentTypeId:l()}),d=dn.useForm({resolver:hh(u),defaultValues:{...e,validToDate:eh(e.validToDate)}}),f=m.useCallback(async h=>{r("documents-updateProperties");try{await n.put(`/documents/${e.id}/update-info`,h),await o(),t()}finally{i("documents-updateProperties")}},[n,e.id,t,o,r,i]);return{formMethods:d,onSubmit:f}},CP=e=>{const t=Re.c(38),{handleClose:n,file:r}=e,{texts:i}=m.useContext(ln),{documents:o}=i,{reducer:a}=m.useContext(xn),[s]=a,{formMethods:l,onSubmit:c}=_P(r,n);let u;t[0]!==o.editFileProperties?(u=y.jsx(Xn.Header,{closeButton:!0,children:y.jsx(Xn.Title,{children:o.editFileProperties})}),t[0]=o.editFileProperties,t[1]=u):u=t[1];let d;t[2]!==l||t[3]!==c?(d=l.handleSubmit(c),t[2]=l,t[3]=c,t[4]=d):d=t[4];let f;t[5]!==o.name?(f=y.jsx(Es,{formField:"name",type:"text",label:o.name,required:!0}),t[5]=o.name,t[6]=f):f=t[6];let h;t[7]!==o.validSince?(h=y.jsx(Es,{formField:"validToDate",type:"date",label:o.validSince,required:!0}),t[7]=o.validSince,t[8]=h):h=t[8];let p;t[9]!==o.category||t[10]!==s.documentTypes?(p=y.jsx(W0,{formField:"documentTypeId",label:o.category,options:s.documentTypes,isNumber:!0,required:!0}),t[9]=o.category,t[10]=s.documentTypes,t[11]=p):p=t[11];let g;t[12]===Symbol.for("react.memo_cache_sentinel")?(g={maxLength:iS},t[12]=g):g=t[12];let v;t[13]!==o.description?(v=y.jsx(U0,{formField:"description",label:o.description,customFormControlProps:g}),t[13]=o.description,t[14]=v):v=t[14];let x;t[15]!==f||t[16]!==h||t[17]!==p||t[18]!==v?(x=y.jsxs(Xn.Body,{children:[f,h,p,v]}),t[15]=f,t[16]=h,t[17]=p,t[18]=v,t[19]=x):x=t[19];let _;t[20]!==o.cancel||t[21]!==n?(_=y.jsx(da,{onClick:n,color:"secondary",variant:"outlined",children:o.cancel}),t[20]=o.cancel,t[21]=n,t[22]=_):_=t[22];let w;t[23]!==o.save?(w=y.jsx(da,{type:"submit",children:o.save}),t[23]=o.save,t[24]=w):w=t[24];let $;t[25]!==_||t[26]!==w?($=y.jsxs(Xn.Footer,{children:[_,w]}),t[25]=_,t[26]=w,t[27]=$):$=t[27];let b;t[28]!==x||t[29]!==$||t[30]!==d?(b=y.jsxs(si,{onSubmit:d,children:[x,$]}),t[28]=x,t[29]=$,t[30]=d,t[31]=b):b=t[31];let C;t[32]!==l||t[33]!==b?(C=y.jsx(dn.FormProvider,{...l,children:b}),t[32]=l,t[33]=b,t[34]=C):C=t[34];let T;return t[35]!==C||t[36]!==u?(T=y.jsxs(y.Fragment,{children:[u,C]}),t[35]=C,t[36]=u,t[37]=T):T=t[37],T},$P=e=>{const t=Re.c(9),{handleClose:n}=e,{reducer:r}=m.useContext(xn),[i]=r;let o;e:{if(i.markedFiles.length!==1){o=void 0;break e}let l;if(t[0]!==i.constantFiles||t[1]!==i.markedFiles[0]){let c;t[3]!==i.markedFiles[0]?(c=u=>u.id===i.markedFiles[0],t[3]=i.markedFiles[0],t[4]=c):c=t[4],l=i.constantFiles.find(c),t[0]=i.constantFiles,t[1]=i.markedFiles[0],t[2]=l}else l=t[2];o=l}const a=o;if(a===void 0){n();let l;return t[5]===Symbol.for("react.memo_cache_sentinel")?(l=y.jsx(y.Fragment,{}),t[5]=l):l=t[5],l}let s;return t[6]!==a||t[7]!==n?(s=y.jsx(CP,{file:a,handleClose:n}),t[6]=a,t[7]=n,t[8]=s):s=t[8],s},SP=()=>{const{reducer:[e,t]}=m.useContext(xn),n=m.useCallback(()=>{t({type:"close-modal"})},[t]),r=m.useMemo(()=>{if(e.state!=="openned-modal")return null;switch(e.modalType){case"create-folder":return y.jsx(wP,{handleClose:n});case"edit-file-properties":return y.jsx($P,{handleClose:n});default:return null}},[e.state,e.modalType]);return y.jsx(Xn,{show:e.state==="openned-modal",onHide:n,children:r})},Rx="documents_drag_image_element",Zd="drop-container-highlight-class",jx="data-drop-container-id",Nx="data-draggable-id",TP=()=>{const e=document.getElementById(Rx);if(e!==null)return e;const t=document.createElement("div");return t.id=Rx,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},Y0=()=>{const e=Re.c(12),{apiActions:t,reducer:n}=m.useContext(xn),{moveDocuments:r}=t,[i]=n;let o;e[0]!==i.markedFiles?(o=x=>{var _;if(i.markedFiles.length>0){const w=TP();w.innerHTML=i.markedFiles.length.toString(),x.dataTransfer.setDragImage(w,0,0),x.dataTransfer.clearData(),x.dataTransfer.setData("application/json",JSON.stringify(i.markedFiles)),x.dataTransfer.dropEffect="none",x.dataTransfer.effectAllowed="move"}else x.dataTransfer.setData("application/json",JSON.stringify([parseInt(((_=x.currentTarget.attributes.getNamedItem(Nx))==null?void 0:_.nodeValue)??"",10)])),x.dataTransfer.dropEffect="none",x.dataTransfer.effectAllowed="move"},e[0]=i.markedFiles,e[1]=o):o=e[1];const a=o;let s;e[2]!==a||e[3]!==i.markedFiles?(s=x=>({[Nx]:x,draggable:i.markedFiles.length===0||i.markedFiles.includes(x),onDragStart:a}),e[2]=a,e[3]=i.markedFiles,e[4]=s):s=e[4];const l=s;let c;e[5]!==r?(c=x=>_=>{var b;_.preventDefault(),_.stopPropagation(),_.currentTarget.classList.remove(Zd);const w=_.dataTransfer.files;if(x&&w&&w.length>0){x(w);return}const $=_.dataTransfer.getData("application/json");if($){const C=JSON.parse($),T=parseInt(((b=_.currentTarget.attributes.getNamedItem(jx))==null?void 0:b.value)??"",10);r(T,C)}},e[5]=r,e[6]=c):c=e[6];const u=c,d=kP,f=OP,h=MP;let p;e[7]!==u?(p=(x,_)=>({onDrop:u(_==null?void 0:_.onFilesDrop),onDragOver:d(),onDragEnter:f(_==null?void 0:_.ignoreInner),onDragLeave:h,[jx]:x}),e[7]=u,e[8]=p):p=e[8];const g=p;let v;return e[9]!==l||e[10]!==g?(v={getDraggableProps:l,getDropProps:g},e[9]=l,e[10]=g,e[11]=v):v=e[11],v};function EP(e){e.preventDefault(),e.stopPropagation()}function kP(){return EP}function OP(e){return t=>{t.preventDefault(),t.stopPropagation(),t.dataTransfer.types.includes("Files")?(t.dataTransfer.dropEffect="copy",t.currentTarget.classList.add(Zd)):!e&&t.dataTransfer.types.includes("application/json")?(t.dataTransfer.dropEffect="move",t.currentTarget.classList.add(Zd)):t.dataTransfer.dropEffect="none"}}function MP(e){e.preventDefault(),e.stopPropagation(),e.target===e.currentTarget&&(e.dataTransfer.dropEffect="none",e.currentTarget.classList.remove(Zd))}function oS(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&&oS(o,t,n))return!0}return!1}function AP(e){if(e.activeFolder==="root")return!1;const t=e.foldersMap.get(e.activeFolder);return!(t!=null&&t.onlyRead)}function aS(e,t){const n=t.get(e);return n===void 0?"":n.parentId===null?n.name:`${aS(n.parentId,t)}/${n.name}`}const RP=()=>{const e=Re.c(6),{zString:t,zStringRequired:n,zNumberRequired:r}=ch();let i;e[0]!==r||e[1]!==t||e[2]!==n?(i=Si({validToDate:n(),description:t(),name:t(),documentTypeId:r()}),e[0]=r,e[1]=t,e[2]=n,e[3]=i):i=e[3];const o=i;let a;return e[4]!==o?(a={formSchema:o},e[4]=o,e[5]=a):a=e[5],a},G0=e=>{var G;const t=Re.c(69),{handleClose:n,files:r,targetFolderId:i}=e,{texts:o}=m.useContext(ln),{documents:a}=o,{reducer:s,apiActions:l}=m.useContext(xn),[c]=s,{uploadFiles:u}=l;let d;t[0]!==r?(d=[...r],t[0]=r,t[1]=d):d=t[1];const f=d,h=i??c.activeFolder;let p;t[2]!==h||t[3]!==c.foldersMap?(p=h==="root"?void 0:c.foldersMap.get(h),t[2]=h,t[3]=c.foldersMap,t[4]=p):p=t[4];const g=p,{formSchema:v}=RP();let x;t[5]!==v?(x=hh(v),t[5]=v,t[6]=x):x=t[6];let _;t[7]===Symbol.for("react.memo_cache_sentinel")?(_=eh(new Date().toISOString()),t[7]=_):_=t[7];let w;t[8]!==h||t[9]!==c.documentTypes||t[10]!==c.foldersMap?(w=(G=c.documentTypes.find(J=>{var ee;return J.name===((ee=c.foldersMap.get(h))==null?void 0:ee.defaultDocType)}))==null?void 0:G.id,t[8]=h,t[9]=c.documentTypes,t[10]=c.foldersMap,t[11]=w):w=t[11];let $;t[12]!==w?($={validToDate:_,documentTypeId:w},t[12]=w,t[13]=$):$=t[13];let b;t[14]!==x||t[15]!==$?(b={resolver:x,defaultValues:$},t[14]=x,t[15]=$,t[16]=b):b=t[16];const C=dn.useForm(b);let T;t[17]!==r||t[18]!==h||t[19]!==n||t[20]!==u?(T=async J=>{h!=="root"&&(await u(r,{folderId:h,...J}),n())},t[17]=r,t[18]=h,t[19]=n,t[20]=u,t[21]=T):T=t[21];const k=T;let O;t[22]!==a||t[23]!==r.length||t[24]!==g.name?(O=a.uploadFilesPrompt(r.length,g.name),t[22]=a,t[23]=r.length,t[24]=g.name,t[25]=O):O=t[25];let j;t[26]!==f?(j=y.jsx("ul",{children:f.map(jP)}),t[26]=f,t[27]=j):j=t[27];let S;t[28]!==O||t[29]!==j?(S=y.jsx(Xn.Header,{closeButton:!0,children:y.jsxs("div",{children:[O,j]})}),t[28]=O,t[29]=j,t[30]=S):S=t[30];let E;t[31]!==C||t[32]!==k?(E=C.handleSubmit(k),t[31]=C,t[32]=k,t[33]=E):E=t[33];let A;t[34]!==a.documentType||t[35]!==c.documentTypes?(A=y.jsx(W0,{formField:"documentTypeId",label:a.documentType,options:c.documentTypes,isNumber:!0,required:!0}),t[34]=a.documentType,t[35]=c.documentTypes,t[36]=A):A=t[36];let D;t[37]!==a.validSince?(D=y.jsx(Es,{formField:"validToDate",label:a.validSince,type:"date",required:!0}),t[37]=a.validSince,t[38]=D):D=t[38];let R;t[39]!==a.name||t[40]!==f.length?(R=f.length===1?y.jsx(Es,{formField:"name",label:a.name,type:"text"}):null,t[39]=a.name,t[40]=f.length,t[41]=R):R=t[41];let M;t[42]===Symbol.for("react.memo_cache_sentinel")?(M={maxLength:iS},t[42]=M):M=t[42];let I;t[43]!==a.description?(I=y.jsx(U0,{formField:"description",label:a.description,customFormControlProps:M}),t[43]=a.description,t[44]=I):I=t[44];let F;t[45]!==A||t[46]!==D||t[47]!==R||t[48]!==I?(F=y.jsxs(Xn.Body,{children:[A,D,R,I]}),t[45]=A,t[46]=D,t[47]=R,t[48]=I,t[49]=F):F=t[49];let U;t[50]!==a.cancel||t[51]!==n?(U=y.jsx(da,{variant:"outlined",color:"secondary",onClick:n,children:a.cancel}),t[50]=a.cancel,t[51]=n,t[52]=U):U=t[52];let P;t[53]!==a.upload?(P=y.jsx(da,{type:"submit",children:a.upload}),t[53]=a.upload,t[54]=P):P=t[54];let W;t[55]!==U||t[56]!==P?(W=y.jsxs(Xn.Footer,{children:[U,P]}),t[55]=U,t[56]=P,t[57]=W):W=t[57];let q;t[58]!==E||t[59]!==F||t[60]!==W?(q=y.jsxs(si,{onSubmit:E,children:[F,W]}),t[58]=E,t[59]=F,t[60]=W,t[61]=q):q=t[61];let H;t[62]!==C||t[63]!==q?(H=y.jsx(dn.FormProvider,{...C,children:q}),t[62]=C,t[63]=q,t[64]=H):H=t[64];let Y;return t[65]!==n||t[66]!==S||t[67]!==H?(Y=y.jsxs(Xn,{show:!0,onHide:n,children:[S,H]}),t[65]=n,t[66]=S,t[67]=H,t[68]=Y):Y=t[68],Y};function jP(e,t){return y.jsxs("li",{children:[e.name," - ",ws(e.size)]},`${e.name}-${t}`)}const NP="_folder_1cktt_1",DP="_collapseArrowDiv_1cktt_8",IP="_button_1cktt_20",PP="_nestedList_1cktt_24",LP="_numberOfFiles_1cktt_31",FP="_collapseArrow_1cktt_8",Io={folder:NP,collapseArrowDiv:DP,button:IP,nestedList:PP,numberOfFiles:LP,collapseArrow:FP},sS=e=>{const t=Re.c(59),{dirId:n,writePermissions:r}=e,{ProjectIconComponent:i}=m.useContext(ln),{reducer:o}=m.useContext(xn),[a,s]=o,{getDropProps:l}=Y0(),[c,u]=m.useState(null),[d,f]=m.useState(!0);let h,p;t[0]!==n||t[1]!==a.foldersMap?(p=a.foldersMap.get(n),t[0]=n,t[1]=a.foldersMap,t[2]=p):p=t[2];const g=p;if(g===void 0)throw new Error(`tried to get dir with id ${n}`);h=g;const v=h;let x;t[3]!==n||t[4]!==v||t[5]!==s||t[6]!==a.activeFolder||t[7]!==a.foldersMap?(x=()=>{a.activeFolder!=="root"&&oS(v,a.activeFolder,a.foldersMap)&&s({type:"select-folder",folderId:n}),f(!0)},t[3]=n,t[4]=v,t[5]=s,t[6]=a.activeFolder,t[7]=a.foldersMap,t[8]=x):x=t[8];const _=x,w=v.childrenIds.length>0;let $;t[9]!==n||t[10]!==s?($=()=>{s({type:"select-folder",folderId:n})},t[9]=n,t[10]=s,t[11]=$):$=t[11];const b=$;let C;if(t[12]!==n||t[13]!==a.filteredFiles){let q;t[15]!==n?(q=H=>H.folderId===n&&H.archive===!1,t[15]=n,t[16]=q):q=t[16],C=a.filteredFiles.filter(q),t[12]=n,t[13]=a.filteredFiles,t[14]=C}else C=t[14];const T=C.length;let k;t[17]!==i||t[18]!==_||t[19]!==w||t[20]!==d?(k=w?d?y.jsx("button",{onClick:()=>f(!1),type:"button",children:y.jsx(i,{icon:"chevron-right",iconProps:{className:Io.collapseArrow}})}):y.jsx("button",{onClick:_,type:"button",children:y.jsx(i,{icon:"chevron-down",iconProps:{className:Io.collapseArrow}})}):null,t[17]=i,t[18]=_,t[19]=w,t[20]=d,t[21]=k):k=t[21];let O;t[22]!==k?(O=y.jsx("div",{className:Io.collapseArrowDiv,children:k}),t[22]=k,t[23]=O):O=t[23];let j;t[24]===Symbol.for("react.memo_cache_sentinel")?(j=ue(Io.button),t[24]=j):j=t[24];let S;t[25]!==n||t[26]!==v.onlyRead||t[27]!==l||t[28]!==r?(S=r&&!v.onlyRead?l(n,{onFilesDrop:q=>u(q)}):{},t[25]=n,t[26]=v.onlyRead,t[27]=l,t[28]=r,t[29]=S):S=t[29];const E=v.defaultDocType??"",A=n===a.activeFolder;let D;t[30]!==v.isDefault||t[31]!==v.name||t[32]!==E||t[33]!==A?(D=y.jsx(tS,{isDefault:v.isDefault,folderName:v.name,typeName:E,isActive:A}),t[30]=v.isDefault,t[31]=v.name,t[32]=E,t[33]=A,t[34]=D):D=t[34];let R;t[35]!==T?(R=T>0?y.jsxs("span",{className:Io.numberOfFiles,children:["[",T,"]"]}):void 0,t[35]=T,t[36]=R):R=t[36];let M;t[37]!==D||t[38]!==R?(M=y.jsxs("div",{className:"d-flex align-items-center gap-2",children:[D,R]}),t[37]=D,t[38]=R,t[39]=M):M=t[39];let I;t[40]!==b||t[41]!==S||t[42]!==M?(I=y.jsx("button",{className:j,onClick:b,type:"button",...S,children:M}),t[40]=b,t[41]=S,t[42]=M,t[43]=I):I=t[43];let F;t[44]!==v.childrenIds||t[45]!==w||t[46]!==d||t[47]!==r?(F=w?d?null:y.jsx("ul",{className:Io.nestedList,children:v==null?void 0:v.childrenIds.map(q=>y.jsx(sS,{dirId:q,writePermissions:r},q))}):void 0,t[44]=v.childrenIds,t[45]=w,t[46]=d,t[47]=r,t[48]=F):F=t[48];let U;t[49]!==I||t[50]!==F||t[51]!==O?(U=y.jsxs("li",{className:Io.folder,children:[O,I,F]}),t[49]=I,t[50]=F,t[51]=O,t[52]=U):U=t[52];let P;t[53]!==n||t[54]!==c?(P=c!==null?y.jsx(G0,{files:c,handleClose:()=>u(null),targetFolderId:n}):null,t[53]=n,t[54]=c,t[55]=P):P=t[55];let W;return t[56]!==U||t[57]!==P?(W=y.jsxs(y.Fragment,{children:[U,P]}),t[56]=U,t[57]=P,t[58]=W):W=t[58],W},BP="_wrapper_1th2u_1",zP="_downloadButton_1th2u_9",Gg={wrapper:BP,downloadButton:zP};function ph(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Dx={exports:{}};/*!
247
- Copyright (c) 2018 Jed Watson.
248
- Licensed under the MIT License (MIT), see
249
- http://jedwatson.github.io/classnames
250
- */var Ix;function WP(){return Ix||(Ix=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})()}(Dx)),Dx.exports}var UP=WP();const me=ph(UP),lS=6048e5,HP=864e5,Px=Symbol.for("constructDateFrom");function Ii(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Px in e?e[Px](t):e instanceof Date?new e.constructor(t):new Date(t)}function ur(e,t){return Ii(t||e,e)}function cS(e,t){const n=()=>Ii(t==null?void 0:t.in,NaN),r=GP(e);let i;if(r.date){const l=KP(r.date,2);i=ZP(l.restDateString,l.year)}if(!i||isNaN(+i))return n();const o=+i;let a=0,s;if(r.time&&(a=XP(r.time),isNaN(a)))return n();if(r.timezone){if(s=QP(r.timezone),isNaN(s))return n()}else{const l=new Date(o+a),c=ur(0,t==null?void 0:t.in);return c.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),c.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),c}return ur(o+a+s,t==null?void 0:t.in)}const Yu={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},VP=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,qP=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,YP=/^([+-])(\d{2})(?::?(\d{2}))?$/;function GP(e){const t={},n=e.split(Yu.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],Yu.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Yu.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const i=Yu.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function KP(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 ZP(e,t){if(t===null)return new Date(NaN);const n=e.match(VP);if(!n)return new Date(NaN);const r=!!n[4],i=bl(n[1]),o=bl(n[2])-1,a=bl(n[3]),s=bl(n[4]),l=bl(n[5])-1;if(r)return rL(t,s,l)?JP(t,s,l):new Date(NaN);{const c=new Date(0);return!tL(t,o,a)||!nL(t,i)?new Date(NaN):(c.setUTCFullYear(t,o,Math.max(i,a)),c)}}function bl(e){return e?parseInt(e):1}function XP(e){const t=e.match(qP);if(!t)return NaN;const n=pm(t[1]),r=pm(t[2]),i=pm(t[3]);return iL(n,r,i)?n*36e5+r*6e4+i*1e3:NaN}function pm(e){return e&&parseFloat(e.replace(",","."))||0}function QP(e){if(e==="Z")return 0;const t=e.match(YP);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return oL(r,i)?n*(r*36e5+i*6e4):NaN}function JP(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 eL=[31,null,31,30,31,30,31,31,30,31,30,31];function uS(e){return e%400===0||e%4===0&&e%100!==0}function tL(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(eL[t]||(uS(e)?29:28))}function nL(e,t){return t>=1&&t<=(uS(e)?366:365)}function rL(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function iL(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function oL(e,t){return t>=0&&t<=59}let aL={};function mh(){return aL}function yc(e,t){var s,l,c,u;const n=mh(),r=(t==null?void 0:t.weekStartsOn)??((l=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((u=(c=n.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??0,i=ur(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 yc(e,{...t,weekStartsOn:1})}function dS(e,t){const n=ur(e,t==null?void 0:t.in),r=n.getFullYear(),i=Ii(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const o=Xd(i),a=Ii(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 Lx(e){const t=ur(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 sL(e,...t){const n=Ii.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function Fx(e,t){const n=ur(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function lL(e,t,n){const[r,i]=sL(n==null?void 0:n.in,e,t),o=Fx(r),a=Fx(i),s=+o-Lx(o),l=+a-Lx(a);return Math.round((s-l)/HP)}function cL(e,t){const n=dS(e,t),r=Ii(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Xd(r)}function uL(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function dL(e){return!(!uL(e)&&typeof e!="number"||isNaN(+ur(e)))}function fL(e,t){const n=ur(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const hL={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"}},pL=(e,t,n)=>{let r;const i=hL[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 mm(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const mL={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},gL={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},vL={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},bL={date:mm({formats:mL,defaultWidth:"full"}),time:mm({formats:gL,defaultWidth:"full"}),dateTime:mm({formats:vL,defaultWidth:"full"})},yL={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},xL=(e,t,n,r)=>yL[e];function yl(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 wL={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},_L={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},CL={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"]},$L={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"]},SL={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"}},TL={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"}},EL=(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"},kL={ordinalNumber:EL,era:yl({values:wL,defaultWidth:"wide"}),quarter:yl({values:_L,defaultWidth:"wide",argumentCallback:e=>e-1}),month:yl({values:CL,defaultWidth:"wide"}),day:yl({values:$L,defaultWidth:"wide"}),dayPeriod:yl({values:SL,defaultWidth:"wide",formattingValues:TL,defaultFormattingWidth:"wide"})};function xl(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],l=Array.isArray(s)?ML(s,d=>d.test(a)):OL(s,d=>d.test(a));let c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;const u=t.slice(a.length);return{value:c,rest:u}}}function OL(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function ML(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function AL(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 RL=/^(\d+)(th|st|nd|rd)?/i,jL=/\d+/i,NL={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},DL={any:[/^b/i,/^(a|c)/i]},IL={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},PL={any:[/1/i,/2/i,/3/i,/4/i]},LL={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},FL={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]},BL={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},zL={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]},WL={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},UL={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}},HL={ordinalNumber:AL({matchPattern:RL,parsePattern:jL,valueCallback:e=>parseInt(e,10)}),era:xl({matchPatterns:NL,defaultMatchWidth:"wide",parsePatterns:DL,defaultParseWidth:"any"}),quarter:xl({matchPatterns:IL,defaultMatchWidth:"wide",parsePatterns:PL,defaultParseWidth:"any",valueCallback:e=>e+1}),month:xl({matchPatterns:LL,defaultMatchWidth:"wide",parsePatterns:FL,defaultParseWidth:"any"}),day:xl({matchPatterns:BL,defaultMatchWidth:"wide",parsePatterns:zL,defaultParseWidth:"any"}),dayPeriod:xl({matchPatterns:WL,defaultMatchWidth:"any",parsePatterns:UL,defaultParseWidth:"any"})},VL={code:"en-US",formatDistance:pL,formatLong:bL,formatRelative:xL,localize:kL,match:HL,options:{weekStartsOn:0,firstWeekContainsDate:1}};function qL(e,t){const n=ur(e,t==null?void 0:t.in);return lL(n,fL(n))+1}function YL(e,t){const n=ur(e,t==null?void 0:t.in),r=+Xd(n)-+cL(n);return Math.round(r/lS)+1}function fS(e,t){var u,d,f,h;const n=ur(e,t==null?void 0:t.in),r=n.getFullYear(),i=mh(),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??((h=(f=i.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??1,a=Ii((t==null?void 0:t.in)||e,0);a.setFullYear(r+1,0,o),a.setHours(0,0,0,0);const s=yc(a,t),l=Ii((t==null?void 0:t.in)||e,0);l.setFullYear(r,0,o),l.setHours(0,0,0,0);const c=yc(l,t);return+n>=+s?r+1:+n>=+c?r:r-1}function GL(e,t){var a,s,l,c;const n=mh(),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??((c=(l=n.locale)==null?void 0:l.options)==null?void 0:c.firstWeekContainsDate)??1,i=fS(e,t),o=Ii((t==null?void 0:t.in)||e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),yc(o,t)}function KL(e,t){const n=ur(e,t==null?void 0:t.in),r=+yc(n,t)-+GL(n,t);return Math.round(r/lS)+1}function Ut(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Ki={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Ut(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Ut(n+1,2)},d(e,t){return Ut(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 Ut(e.getHours()%12||12,t.length)},H(e,t){return Ut(e.getHours(),t.length)},m(e,t){return Ut(e.getMinutes(),t.length)},s(e,t){return Ut(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return Ut(i,t.length)}},za={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Bx={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 Ki.y(e,t)},Y:function(e,t,n,r){const i=fS(e,r),o=i>0?i:1-i;if(t==="YY"){const a=o%100;return Ut(a,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):Ut(o,t.length)},R:function(e,t){const n=dS(e);return Ut(n,t.length)},u:function(e,t){const n=e.getFullYear();return Ut(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 Ut(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 Ut(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 Ki.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 Ut(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=KL(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):Ut(i,t.length)},I:function(e,t,n){const r=YL(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Ut(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Ki.d(e,t)},D:function(e,t,n){const r=qL(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Ut(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 Ut(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 Ut(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 Ut(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=za.noon:r===0?i=za.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=za.evening:r>=12?i=za.afternoon:r>=4?i=za.morning:i=za.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 Ki.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Ki.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Ut(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Ut(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Ki.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Ki.s(e,t)},S:function(e,t){return Ki.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Wx(r);case"XXXX":case"XX":return zo(r);case"XXXXX":case"XXX":default:return zo(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Wx(r);case"xxxx":case"xx":return zo(r);case"xxxxx":case"xxx":default:return zo(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+zx(r,":");case"OOOO":default:return"GMT"+zo(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+zx(r,":");case"zzzz":default:return"GMT"+zo(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return Ut(r,t.length)},T:function(e,t,n){return Ut(+e,t.length)}};function zx(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+Ut(o,2)}function Wx(e,t){return e%60===0?(e>0?"-":"+")+Ut(Math.abs(e)/60,2):zo(e,t)}function zo(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Ut(Math.trunc(r/60),2),o=Ut(r%60,2);return n+i+t+o}const Ux=(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"})}},hS=(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"})}},ZL=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return Ux(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}}",Ux(r,t)).replace("{{time}}",hS(i,t))},XL={p:hS,P:ZL},QL=/^D+$/,JL=/^Y+$/,eF=["D","DD","YY","YYYY"];function tF(e){return QL.test(e)}function nF(e){return JL.test(e)}function rF(e,t,n){const r=iF(e,t,n);if(console.warn(r),eF.includes(e))throw new RangeError(r)}function iF(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 oF=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,aF=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,sF=/^'([^]*?)'?$/,lF=/''/g,cF=/[a-zA-Z]/;function pS(e,t,n){var u,d,f,h;const r=mh(),i=r.locale??VL,o=r.firstWeekContainsDate??((d=(u=r.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??1,a=r.weekStartsOn??((h=(f=r.locale)==null?void 0:f.options)==null?void 0:h.weekStartsOn)??0,s=ur(e,n==null?void 0:n.in);if(!dL(s))throw new RangeError("Invalid time value");let l=t.match(aF).map(p=>{const g=p[0];if(g==="p"||g==="P"){const v=XL[g];return v(p,i.formatLong)}return p}).join("").match(oF).map(p=>{if(p==="''")return{isToken:!1,value:"'"};const g=p[0];if(g==="'")return{isToken:!1,value:uF(p)};if(Bx[g])return{isToken:!0,value:p};if(g.match(cF))throw new RangeError("Format string contains an unescaped latin alphabet character `"+g+"`");return{isToken:!1,value:p}});i.localize.preprocessor&&(l=i.localize.preprocessor(s,l));const c={firstWeekContainsDate:o,weekStartsOn:a,locale:i};return l.map(p=>{if(!p.isToken)return p.value;const g=p.value;(nF(g)||tF(g))&&rF(g,t,String(e));const v=Bx[g[0]];return v(s,g,i.localize,c)}).join("")}function uF(e){const t=e.match(sF);return t?t[1].replace(lF,"'"):e}function mS(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 xc;(function(e){e.event="event",e.props="prop"})(xc||(xc={}));function ro(){}function dF(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 wc(e){return!!(e||"").match(/\d/)}function ss(e){return e==null}function fF(e){return typeof e=="number"&&isNaN(e)}function gS(e){return ss(e)||fF(e)||typeof e=="number"&&!isFinite(e)}function vS(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function hF(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 pF(e,t,n){var r=hF(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 mF(e){var t=m.useRef(e);t.current=e;var n=m.useRef(function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return t.current.apply(t,r)});return n.current}function K0(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 gF(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 bS(e,t,n){for(var r="",i=n?"0":"",o=0;o<=t-1;o++)r+=e[o]||i;return r}function Hx(e,t){return Array(t+1).join(e)}function yS(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."+Hx("0",Math.abs(a))+i:a>=s?i=i+Hx("0",a-s):i=(i.substring(0,a)||"0")+"."+i.substring(a),n+i}function Vx(e,t,n){if(["","-"].indexOf(e)!==-1)return e;var r=(e.indexOf(".")!==-1||n)&&t,i=K0(e),o=i.beforeDecimal,a=i.afterDecimal,s=i.hasNegation,l=parseFloat("0."+(a||"0")),c=a.length<=t?"0."+a:l.toFixed(t),u=c.split("."),d=o;o&&Number(u[0])&&(d=o.split("").reverse().reduce(function(g,v,x){return g.length>x?(Number(g[0])+Number(v)).toString()+g.substring(1,g.length):v+g},u[0]));var f=bS(u[1]||"",t,n),h=s?"-":"",p=r?".":"";return""+h+d+p+f}function Ho(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 xS=dF(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}}}),vF=function(e,t){var n=Math.min(e.selectionStart,t);return{from:{start:n,end:e.selectionEnd},to:{start:n,end:t}}};function bF(e,t,n){return Math.min(Math.max(e,t),n)}function gm(e){return Math.max(e.selectionStart,e.selectionEnd)}function yF(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function xF(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function wF(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,i=e.formattedValueIndex;return t[r]===n[i]}function _F(e,t,n,r,i,o,a){a===void 0&&(a=wF);var s=i.findIndex(function($){return $}),l=e.slice(0,s);!t&&!n.startsWith(l)&&(t=l,n=l+n,r=r+l.length);for(var c=n.length,u=e.length,d={},f=new Array(c),h=0;h<c;h++){f[h]=-1;for(var p=0,g=u;p<g;p++){var v=a({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:h,formattedValueIndex:p});if(v&&d[p]!==!0){f[h]=p,d[p]=!0;break}}}for(var x=r;x<c&&(f[x]===-1||!o(n[x]));)x++;var _=x===c||f[x]===-1?u:f[x];for(x=r-1;x>0&&f[x]===-1;)x--;var w=x===-1||f[x]===-1?0:f[x]+1;return w>_?_:r-w<_-r?w:_}function qx(e,t,n,r){var i=e.length;if(t=bF(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 CF(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),n=0,r=t.length;n<r;n++)t[n]=!!(wc(e[n])||wc(e[n-1]));return t}function wS(e,t,n,r,i,o){o===void 0&&(o=ro);var a=mF(function(p,g){var v,x;return gS(p)?(x="",v=""):typeof p=="number"||g?(x=typeof p=="number"?yS(p):p,v=r(x)):(x=i(p,void 0),v=r(x)),{formattedValue:v,numAsString:x}}),s=m.useState(function(){return a(ss(e)?t:e,n)}),l=s[0],c=s[1],u=function(p,g){p.formattedValue!==l.formattedValue&&c({formattedValue:p.formattedValue,numAsString:p.value}),o(p,g)},d=e,f=n;ss(e)&&(d=l.numAsString,f=!0);var h=a(d,f);return m.useMemo(function(){c(h)},[h.formattedValue]),[l,u]}function $F(e){return e.replace(/[^0-9]/g,"")}function SF(e){return e}function TF(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=SF);var s=e.removeFormatting;s===void 0&&(s=$F);var l=e.defaultValue,c=e.valueIsNumericString,u=e.onValueChange,d=e.isAllowed,f=e.onChange;f===void 0&&(f=ro);var h=e.onKeyDown;h===void 0&&(h=ro);var p=e.onMouseUp;p===void 0&&(p=ro);var g=e.onFocus;g===void 0&&(g=ro);var v=e.onBlur;v===void 0&&(v=ro);var x=e.value,_=e.getCaretBoundary;_===void 0&&(_=CF);var w=e.isValidInputCharacter;w===void 0&&(w=wc);var $=e.isCharacterSame,b=mS(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),C=wS(x,l,!!c,a,s,u),T=C[0],k=T.formattedValue,O=T.numAsString,j=C[1],S=m.useRef(),E=m.useRef({formattedValue:k,numAsString:O}),A=function(te,re){E.current={formattedValue:te.formattedValue,numAsString:te.value},j(te,re)},D=m.useState(!1),R=D[0],M=D[1],I=m.useRef(null),F=m.useRef({setCaretTimeout:null,focusTimeout:null});m.useEffect(function(){return M(!0),function(){clearTimeout(F.current.setCaretTimeout),clearTimeout(F.current.focusTimeout)}},[]);var U=a,P=function(te,re){var se=parseFloat(re);return{formattedValue:te,value:re,floatValue:isNaN(se)?void 0:se}},W=function(te,re,se){te.selectionStart===0&&te.selectionEnd===te.value.length||(Ho(te,re),F.current.setCaretTimeout=setTimeout(function(){te.value===se&&te.selectionStart!==re&&Ho(te,re)},0))},q=function(te,re,se){return qx(te,re,_(te),se)},H=function(te,re,se){var fe=_(re),xe=_F(re,k,te,se,fe,w,$);return xe=qx(re,xe,fe),xe},Y=function(te){var re=te.formattedValue;re===void 0&&(re="");var se=te.input,fe=te.source,xe=te.event,ve=te.numAsString,be;if(se){var Te=te.inputValue||se.value,ce=gm(se);se.value=re,be=H(Te,re,ce),be!==void 0&&W(se,be,re)}re!==k&&A(P(re,ve),{event:xe,source:fe})};m.useEffect(function(){var te=E.current,re=te.formattedValue,se=te.numAsString;(k!==re||O!==se)&&A(P(k,O),{event:void 0,source:xc.props})},[k,O]);var G=I.current?gm(I.current):void 0,J=typeof window<"u"?m.useLayoutEffect:m.useEffect;J(function(){var te=I.current;if(k!==E.current.formattedValue&&te){var re=H(E.current.formattedValue,k,G);te.value=k,W(te,re,k)}},[k]);var ee=function(te,re,se){var fe=re.target,xe=S.current?vF(S.current,fe.selectionEnd):xS(k,te),ve=Object.assign(Object.assign({},xe),{lastValue:k}),be=s(te,ve),Te=U(be);if(be=s(Te,void 0),d&&!d(P(Te,be))){var ce=re.target,ae=gm(ce),ye=H(te,k,ae);return ce.value=k,W(ce,ye,k),!1}return Y({formattedValue:Te,numAsString:be,inputValue:te,event:re,source:se,input:re.target}),!0},z=function(te,re){re===void 0&&(re=0);var se=te.selectionStart,fe=te.selectionEnd;S.current={selectionStart:se,selectionEnd:fe+re}},L=function(te){var re=te.target,se=re.value,fe=ee(se,te,xc.event);fe&&f(te),S.current=void 0},B=function(te){var re=te.target,se=te.key,fe=re.selectionStart,xe=re.selectionEnd,ve=re.value;ve===void 0&&(ve="");var be;se==="ArrowLeft"||se==="Backspace"?be=Math.max(fe-1,0):se==="ArrowRight"?be=Math.min(fe+1,ve.length):se==="Delete"&&(be=fe);var Te=0;se==="Delete"&&fe===xe&&(Te=1);var ce=se==="ArrowLeft"||se==="ArrowRight";if(be===void 0||fe!==xe&&!ce){h(te),z(re,Te);return}var ae=be;if(ce){var ye=se==="ArrowLeft"?"left":"right";ae=q(ve,be,ye),ae!==be&&te.preventDefault()}else se==="Delete"&&!w(ve[be])?ae=q(ve,be,"right"):se==="Backspace"&&!w(ve[be])&&(ae=q(ve,be,"left"));ae!==be&&W(re,ae,ve),h(te),z(re,Te)},V=function(te){var re=te.target,se=function(){var fe=re.selectionStart,xe=re.selectionEnd,ve=re.value;if(ve===void 0&&(ve=""),fe===xe){var be=q(ve,fe);be!==fe&&W(re,be,ve)}};se(),requestAnimationFrame(function(){se()}),p(te),z(re)},N=function(te){te.persist&&te.persist();var re=te.target,se=te.currentTarget;I.current=re,F.current.focusTimeout=setTimeout(function(){var fe=re.selectionStart,xe=re.selectionEnd,ve=re.value;ve===void 0&&(ve="");var be=q(ve,fe);be!==fe&&!(fe===0&&xe===ve.length)&&W(re,be,ve),g(Object.assign(Object.assign({},te),{currentTarget:se}))},0)},X=function(te){I.current=null,clearTimeout(F.current.focusTimeout),clearTimeout(F.current.setCaretTimeout),v(te)},Q=R&&yF()?"numeric":void 0,Z=Object.assign({inputMode:Q},b,{type:t,value:k,onChange:L,onKeyDown:B,onMouseUp:V,onFocus:N,onBlur:X});if(n==="text")return i?m.createElement(m.Fragment,null,i(k,b)||null):m.createElement("span",Object.assign({},b,{ref:o}),k);if(r){var le=r;return m.createElement(le,Object.assign({},Z,{ref:o}))}return m.createElement("input",Object.assign({},Z,{ref:o}))}function Yx(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 l=gh(t),c=l.thousandSeparator,u=l.decimalSeparator,d=n!==0&&e.indexOf(".")!==-1||n&&r,f=K0(e,a),h=f.beforeDecimal,p=f.afterDecimal,g=f.addNegation;return n!==void 0&&(p=bS(p,n,!!r)),c&&(h=pF(h,c,s)),i&&(h=i+h),o&&(p=p+o),g&&(h="-"+h),e=h+(d&&u||"")+p,e}function gh(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 EF(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 kF(e,t){return new RegExp("(^-)|[0-9]|"+vS(e),"g")}function OF(e,t,n){return e===""?!0:!(t!=null&&t.match(/\d/))&&!(n!=null&&n.match(/\d/))&&typeof e=="string"&&!isNaN(Number(e))}function MF(e,t,n){var r;t===void 0&&(t=xF(e));var i=n.allowNegative,o=n.prefix;o===void 0&&(o="");var a=n.suffix;a===void 0&&(a="");var s=n.decimalScale,l=t.from,c=t.to,u=c.start,d=c.end,f=gh(n),h=f.allowedDecimalSeparators,p=f.decimalSeparator,g=e[d]===p;if(wc(e)&&(e===o||e===a)&&t.lastValue==="")return e;if(d-u===1&&h.indexOf(e[u])!==-1){var v=s===0?"":p;e=e.substring(0,u)+v+e.substring(u+1,e.length)}var x=function(I,F,U){var P=!1,W=!1;o.startsWith("-")?P=!1:I.startsWith("--")?(P=!1,W=!0):a.startsWith("-")&&I.length===a.length?P=!1:I[0]==="-"&&(P=!0);var q=P?1:0;return W&&(q=2),q&&(I=I.substring(q),F-=q,U-=q),{value:I,start:F,end:U,hasNegation:P}},_=x(e,u,d),w=_.hasNegation;r=_,e=r.value,u=r.start,d=r.end;var $=x(t.lastValue,l.start,l.end),b=$.start,C=$.end,T=$.value,k=e.substring(u,d);e.length&&T.length&&(b>T.length-a.length||C<o.length)&&!(k&&a.startsWith(k))&&(e=T);var O=0;e.startsWith(o)?O+=o.length:u<o.length&&(O=u),e=e.substring(O),d-=O;var j=e.length,S=e.length-a.length;e.endsWith(a)?j=S:(d>S||d>e.length-a.length)&&(j=d),e=e.substring(0,j),e=EF(w?"-"+e:e,i),e=(e.match(kF(p))||[]).join("");var E=e.indexOf(p);e=e.replace(new RegExp(vS(p),"g"),function(I,F){return F===E?".":""});var A=K0(e,i),D=A.beforeDecimal,R=A.afterDecimal,M=A.addNegation;return c.end-c.start<l.end-l.start&&D===""&&g&&!parseFloat(R)&&(e=M?"-":""),e}function AF(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 RF(e){var t=gh(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(`
251
- Decimal separator can't be same as thousand separator.
252
- thousandSeparator: `+n+` (thousandSeparator = {true} is same as thousandSeparator = ",")
253
- decimalSeparator: `+r+` (default value for decimalSeparator is .)
254
- `);return i.startsWith("-")&&o&&(console.error(`
255
- Prefix can't start with '-' when allowNegative is true.
256
- prefix: `+i+`
257
- allowNegative: `+o+`
258
- `),o=!1),Object.assign(Object.assign({},e),{allowNegative:o})}function jF(e){e=RF(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,i=e.onKeyDown;i===void 0&&(i=ro);var o=e.onBlur;o===void 0&&(o=ro);var a=e.thousandSeparator,s=e.decimalScale,l=e.fixedDecimalScale,c=e.prefix;c===void 0&&(c="");var u=e.defaultValue,d=e.value,f=e.valueIsNumericString,h=e.onValueChange,p=mS(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),g=gh(e),v=g.decimalSeparator,x=g.allowedDecimalSeparators,_=function(M){return Yx(M,e)},w=function(M,I){return MF(M,I,e)},$=ss(d)?u:d,b=f??OF($,c,t);ss(d)?ss(u)||(b=b||typeof u=="number"):b=b||typeof d=="number";var C=function(M){return gS(M)?M:(typeof M=="number"&&(M=yS(M)),b&&typeof s=="number"?Vx(M,s,!!l):M)},T=wS(C(d),C(u),!!b,_,w,h),k=T[0],O=k.numAsString,j=k.formattedValue,S=T[1],E=function(M){var I=M.target,F=M.key,U=I.selectionStart,P=I.selectionEnd,W=I.value;if(W===void 0&&(W=""),(F==="Backspace"||F==="Delete")&&P<c.length){M.preventDefault();return}if(U!==P){i(M);return}F==="Backspace"&&W[0]==="-"&&U===c.length+1&&n&&Ho(I,1),s&&l&&(F==="Backspace"&&W[U-1]===v?(Ho(I,U-1),M.preventDefault()):F==="Delete"&&W[U]===v&&M.preventDefault()),x!=null&&x.includes(F)&&W[U]===v&&Ho(I,U+1);var q=a===!0?",":a;F==="Backspace"&&W[U-1]===q&&Ho(I,U-1),F==="Delete"&&W[U]===q&&Ho(I,U+1),i(M)},A=function(M){var I=O;if(I.match(/\d/g)||(I=""),r||(I=gF(I)),l&&s&&(I=Vx(I,s,l)),I!==O){var F=Yx(I,e);S({formattedValue:F,value:I,floatValue:parseFloat(I)},{event:M,source:xc.event})}o(M)},D=function(M){return M===v?!0:wc(M)},R=function(M){var I=M.currentValue,F=M.lastValue,U=M.formattedValue,P=M.currentValueIndex,W=M.formattedValueIndex,q=I[P],H=U[W],Y=xS(F,I),G=Y.to,J=function(ee){return w(ee).indexOf(".")+c.length};return d===0&&l&&s&&I[G.start]===v&&J(I)<P&&J(U)>W?!1:P>=G.start&&P<G.end&&x&&x.includes(q)&&H===v?!0:q===H};return Object.assign(Object.assign({},p),{value:j,valueIsNumericString:!1,isValidInputCharacter:D,isCharacterSame:R,onValueChange:S,format:_,removeFormatting:w,getCaretBoundary:function(M){return AF(M,e)},onKeyDown:E,onBlur:A})}function NF(e){var t=jF(e);return m.createElement(TF,Object.assign({},t))}const DF=(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?y.jsx(t,{className:me({"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},IF=e=>{const t=e.getValue();return t?pS(cS(t.toString()),"dd.MM.yyyy"):null},PF=e=>{const t=e.getValue();return t?pS(cS(t.toString()),"dd.MM.yyyy HH:mm"):null},LF=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:y.jsx(NF,{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()})},FF=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},BF=["xxl","xl","lg","md","sm","xs"],zF="xs",lu=ie.createContext({prefixes:{},breakpoints:BF,minBreakpoint:zF}),{Consumer:Lbe,Provider:Fbe}=lu;function Et(e,t){const{prefixes:n}=m.useContext(lu);return e||n[t]||t}function WF(){const{breakpoints:e}=m.useContext(lu);return e}function UF(){const{minBreakpoint:e}=m.useContext(lu);return e}function _S(){const{dir:e}=m.useContext(lu);return e==="rtl"}var Gu={exports:{}},vm={exports:{}},Pt={};/** @license React v16.13.1
259
- * react-is.production.min.js
260
- *
261
- * Copyright (c) Facebook, Inc. and its affiliates.
262
- *
263
- * This source code is licensed under the MIT license found in the
264
- * LICENSE file in the root directory of this source tree.
265
- */var Gx;function HF(){if(Gx)return Pt;Gx=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,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,p=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function w(b){if(typeof b=="object"&&b!==null){var C=b.$$typeof;switch(C){case t:switch(b=b.type,b){case l:case c:case r:case o:case i:case d:return b;default:switch(b=b&&b.$$typeof,b){case s:case u:case p:case h:case a:return b;default:return C}}case n:return C}}}function $(b){return w(b)===c}return Pt.AsyncMode=l,Pt.ConcurrentMode=c,Pt.ContextConsumer=s,Pt.ContextProvider=a,Pt.Element=t,Pt.ForwardRef=u,Pt.Fragment=r,Pt.Lazy=p,Pt.Memo=h,Pt.Portal=n,Pt.Profiler=o,Pt.StrictMode=i,Pt.Suspense=d,Pt.isAsyncMode=function(b){return $(b)||w(b)===l},Pt.isConcurrentMode=$,Pt.isContextConsumer=function(b){return w(b)===s},Pt.isContextProvider=function(b){return w(b)===a},Pt.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===t},Pt.isForwardRef=function(b){return w(b)===u},Pt.isFragment=function(b){return w(b)===r},Pt.isLazy=function(b){return w(b)===p},Pt.isMemo=function(b){return w(b)===h},Pt.isPortal=function(b){return w(b)===n},Pt.isProfiler=function(b){return w(b)===o},Pt.isStrictMode=function(b){return w(b)===i},Pt.isSuspense=function(b){return w(b)===d},Pt.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===r||b===c||b===o||b===i||b===d||b===f||typeof b=="object"&&b!==null&&(b.$$typeof===p||b.$$typeof===h||b.$$typeof===a||b.$$typeof===s||b.$$typeof===u||b.$$typeof===v||b.$$typeof===x||b.$$typeof===_||b.$$typeof===g)},Pt.typeOf=w,Pt}var Wt={};/** @license React v16.13.1
266
- * react-is.development.js
267
- *
268
- * Copyright (c) Facebook, Inc. and its affiliates.
269
- *
270
- * This source code is licensed under the MIT license found in the
271
- * LICENSE file in the root directory of this source tree.
272
- */var Kx;function VF(){return Kx||(Kx=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,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,p=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function w(N){return typeof N=="string"||typeof N=="function"||N===r||N===c||N===o||N===i||N===d||N===f||typeof N=="object"&&N!==null&&(N.$$typeof===p||N.$$typeof===h||N.$$typeof===a||N.$$typeof===s||N.$$typeof===u||N.$$typeof===v||N.$$typeof===x||N.$$typeof===_||N.$$typeof===g)}function $(N){if(typeof N=="object"&&N!==null){var X=N.$$typeof;switch(X){case t:var Q=N.type;switch(Q){case l:case c:case r:case o:case i:case d:return Q;default:var Z=Q&&Q.$$typeof;switch(Z){case s:case u:case p:case h:case a:return Z;default:return X}}case n:return X}}}var b=l,C=c,T=s,k=a,O=t,j=u,S=r,E=p,A=h,D=n,R=o,M=i,I=d,F=!1;function U(N){return F||(F=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),P(N)||$(N)===l}function P(N){return $(N)===c}function W(N){return $(N)===s}function q(N){return $(N)===a}function H(N){return typeof N=="object"&&N!==null&&N.$$typeof===t}function Y(N){return $(N)===u}function G(N){return $(N)===r}function J(N){return $(N)===p}function ee(N){return $(N)===h}function z(N){return $(N)===n}function L(N){return $(N)===o}function B(N){return $(N)===i}function V(N){return $(N)===d}Wt.AsyncMode=b,Wt.ConcurrentMode=C,Wt.ContextConsumer=T,Wt.ContextProvider=k,Wt.Element=O,Wt.ForwardRef=j,Wt.Fragment=S,Wt.Lazy=E,Wt.Memo=A,Wt.Portal=D,Wt.Profiler=R,Wt.StrictMode=M,Wt.Suspense=I,Wt.isAsyncMode=U,Wt.isConcurrentMode=P,Wt.isContextConsumer=W,Wt.isContextProvider=q,Wt.isElement=H,Wt.isForwardRef=Y,Wt.isFragment=G,Wt.isLazy=J,Wt.isMemo=ee,Wt.isPortal=z,Wt.isProfiler=L,Wt.isStrictMode=B,Wt.isSuspense=V,Wt.isValidElementType=w,Wt.typeOf=$}()),Wt}var Zx;function CS(){return Zx||(Zx=1,process.env.NODE_ENV==="production"?vm.exports=HF():vm.exports=VF()),vm.exports}/*
273
- object-assign
274
- (c) Sindre Sorhus
275
- @license MIT
276
- */var bm,Xx;function qF(){if(Xx)return bm;Xx=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 l=Object.getOwnPropertyNames(a).map(function(u){return a[u]});if(l.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(u){c[u]=u}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return bm=i()?Object.assign:function(o,a){for(var s,l=r(o),c,u=1;u<arguments.length;u++){s=Object(arguments[u]);for(var d in s)t.call(s,d)&&(l[d]=s[d]);if(e){c=e(s);for(var f=0;f<c.length;f++)n.call(s,c[f])&&(l[c[f]]=s[c[f]])}}return l},bm}var ym,Qx;function Z0(){if(Qx)return ym;Qx=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ym=e,ym}var Jx,e2;function $S(){return e2||(e2=1,Jx=Function.call.bind(Object.prototype.hasOwnProperty)),Jx}var xm,t2;function YF(){if(t2)return xm;t2=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Z0(),n={},r=$S();e=function(o){var a="Warning: "+o;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(o,a,s,l,c){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((l||"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,l,s,null,t)}catch(p){d=p}if(d&&!(d instanceof Error)&&e((l||"React class")+": type specification of "+s+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var h=c?c():"";e("Failed "+s+" type: "+d.message+(h??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},xm=i,xm}var wm,n2;function GF(){if(n2)return wm;n2=1;var e=CS(),t=qF(),n=Z0(),r=$S(),i=YF(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function a(){return null}return wm=function(s,l){var c=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function d(P){var W=P&&(c&&P[c]||P[u]);if(typeof W=="function")return W}var f="<<anonymous>>",h={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:_(),arrayOf:w,element:$(),elementType:b(),instanceOf:C,node:j(),objectOf:k,oneOf:T,oneOfType:O,shape:E,exact:A};function p(P,W){return P===W?P!==0||1/P===1/W:P!==P&&W!==W}function g(P,W){this.message=P,this.data=W&&typeof W=="object"?W:{},this.stack=""}g.prototype=Error.prototype;function v(P){if(process.env.NODE_ENV!=="production")var W={},q=0;function H(G,J,ee,z,L,B,V){if(z=z||f,B=B||ee,V!==n){if(l){var N=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 N.name="Invariant Violation",N}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var X=z+":"+ee;!W[X]&&q<3&&(o("You are manually calling a React.PropTypes validation function for the `"+B+"` prop on `"+z+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),W[X]=!0,q++)}}return J[ee]==null?G?J[ee]===null?new g("The "+L+" `"+B+"` is marked as required "+("in `"+z+"`, but its value is `null`.")):new g("The "+L+" `"+B+"` is marked as required in "+("`"+z+"`, but its value is `undefined`.")):null:P(J,ee,z,L,B)}var Y=H.bind(null,!1);return Y.isRequired=H.bind(null,!0),Y}function x(P){function W(q,H,Y,G,J,ee){var z=q[H],L=M(z);if(L!==P){var B=I(z);return new g("Invalid "+G+" `"+J+"` of type "+("`"+B+"` supplied to `"+Y+"`, expected ")+("`"+P+"`."),{expectedType:P})}return null}return v(W)}function _(){return v(a)}function w(P){function W(q,H,Y,G,J){if(typeof P!="function")return new g("Property `"+J+"` of component `"+Y+"` has invalid PropType notation inside arrayOf.");var ee=q[H];if(!Array.isArray(ee)){var z=M(ee);return new g("Invalid "+G+" `"+J+"` of type "+("`"+z+"` supplied to `"+Y+"`, expected an array."))}for(var L=0;L<ee.length;L++){var B=P(ee,L,Y,G,J+"["+L+"]",n);if(B instanceof Error)return B}return null}return v(W)}function $(){function P(W,q,H,Y,G){var J=W[q];if(!s(J)){var ee=M(J);return new g("Invalid "+Y+" `"+G+"` of type "+("`"+ee+"` supplied to `"+H+"`, expected a single ReactElement."))}return null}return v(P)}function b(){function P(W,q,H,Y,G){var J=W[q];if(!e.isValidElementType(J)){var ee=M(J);return new g("Invalid "+Y+" `"+G+"` of type "+("`"+ee+"` supplied to `"+H+"`, expected a single ReactElement type."))}return null}return v(P)}function C(P){function W(q,H,Y,G,J){if(!(q[H]instanceof P)){var ee=P.name||f,z=U(q[H]);return new g("Invalid "+G+" `"+J+"` of type "+("`"+z+"` supplied to `"+Y+"`, expected ")+("instance of `"+ee+"`."))}return null}return v(W)}function T(P){if(!Array.isArray(P))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(q,H,Y,G,J){for(var ee=q[H],z=0;z<P.length;z++)if(p(ee,P[z]))return null;var L=JSON.stringify(P,function(B,V){var N=I(V);return N==="symbol"?String(V):V});return new g("Invalid "+G+" `"+J+"` of value `"+String(ee)+"` "+("supplied to `"+Y+"`, expected one of "+L+"."))}return v(W)}function k(P){function W(q,H,Y,G,J){if(typeof P!="function")return new g("Property `"+J+"` of component `"+Y+"` has invalid PropType notation inside objectOf.");var ee=q[H],z=M(ee);if(z!=="object")return new g("Invalid "+G+" `"+J+"` of type "+("`"+z+"` supplied to `"+Y+"`, expected an object."));for(var L in ee)if(r(ee,L)){var B=P(ee,L,Y,G,J+"."+L,n);if(B instanceof Error)return B}return null}return v(W)}function O(P){if(!Array.isArray(P))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var W=0;W<P.length;W++){var q=P[W];if(typeof q!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+F(q)+" at index "+W+"."),a}function H(Y,G,J,ee,z){for(var L=[],B=0;B<P.length;B++){var V=P[B],N=V(Y,G,J,ee,z,n);if(N==null)return null;N.data&&r(N.data,"expectedType")&&L.push(N.data.expectedType)}var X=L.length>0?", expected one of type ["+L.join(", ")+"]":"";return new g("Invalid "+ee+" `"+z+"` supplied to "+("`"+J+"`"+X+"."))}return v(H)}function j(){function P(W,q,H,Y,G){return D(W[q])?null:new g("Invalid "+Y+" `"+G+"` supplied to "+("`"+H+"`, expected a ReactNode."))}return v(P)}function S(P,W,q,H,Y){return new g((P||"React class")+": "+W+" type `"+q+"."+H+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Y+"`.")}function E(P){function W(q,H,Y,G,J){var ee=q[H],z=M(ee);if(z!=="object")return new g("Invalid "+G+" `"+J+"` of type `"+z+"` "+("supplied to `"+Y+"`, expected `object`."));for(var L in P){var B=P[L];if(typeof B!="function")return S(Y,G,J,L,I(B));var V=B(ee,L,Y,G,J+"."+L,n);if(V)return V}return null}return v(W)}function A(P){function W(q,H,Y,G,J){var ee=q[H],z=M(ee);if(z!=="object")return new g("Invalid "+G+" `"+J+"` of type `"+z+"` "+("supplied to `"+Y+"`, expected `object`."));var L=t({},q[H],P);for(var B in L){var V=P[B];if(r(P,B)&&typeof V!="function")return S(Y,G,J,B,I(V));if(!V)return new g("Invalid "+G+" `"+J+"` key `"+B+"` supplied to `"+Y+"`.\nBad object: "+JSON.stringify(q[H],null," ")+`
277
- Valid keys: `+JSON.stringify(Object.keys(P),null," "));var N=V(ee,B,Y,G,J+"."+B,n);if(N)return N}return null}return v(W)}function D(P){switch(typeof P){case"number":case"string":case"undefined":return!0;case"boolean":return!P;case"object":if(Array.isArray(P))return P.every(D);if(P===null||s(P))return!0;var W=d(P);if(W){var q=W.call(P),H;if(W!==P.entries){for(;!(H=q.next()).done;)if(!D(H.value))return!1}else for(;!(H=q.next()).done;){var Y=H.value;if(Y&&!D(Y[1]))return!1}}else return!1;return!0;default:return!1}}function R(P,W){return P==="symbol"?!0:W?W["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&W instanceof Symbol:!1}function M(P){var W=typeof P;return Array.isArray(P)?"array":P instanceof RegExp?"object":R(W,P)?"symbol":W}function I(P){if(typeof P>"u"||P===null)return""+P;var W=M(P);if(W==="object"){if(P instanceof Date)return"date";if(P instanceof RegExp)return"regexp"}return W}function F(P){var W=I(P);switch(W){case"array":case"object":return"an "+W;case"boolean":case"date":case"regexp":return"a "+W;default:return W}}function U(P){return!P.constructor||!P.constructor.name?f:P.constructor.name}return h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},wm}var _m,r2;function KF(){if(r2)return _m;r2=1;var e=Z0();function t(){}function n(){}return n.resetWarningCache=t,_m=function(){function r(a,s,l,c,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},_m}var i2;function ZF(){if(i2)return Gu.exports;if(i2=1,process.env.NODE_ENV!=="production"){var e=CS(),t=!0;Gu.exports=GF()(e.isElement,t)}else Gu.exports=KF()();return Gu.exports}var XF=ZF();const Ye=ph(XF);function QF(e,t){return ie.Children.toArray(e).some(n=>ie.isValidElement(n)&&n.type===t)}function JF({as:e,bsPrefix:t,className:n,...r}){t=Et(t,"col");const i=WF(),o=UF(),a=[],s=[];return i.forEach(l=>{const c=r[l];delete r[l];let u,d,f;typeof c=="object"&&c!=null?{span:u,offset:d,order:f}=c:u=c;const h=l!==o?`-${l}`:"";u&&a.push(u===!0?`${t}${h}`:`${t}${h}-${u}`),f!=null&&s.push(`order${h}-${f}`),d!=null&&s.push(`offset${h}-${d}`)}),[{...r,className:me(n,...a,...s)},{as:e,bsPrefix:t,spans:a}]}const SS=ie.forwardRef((e,t)=>{const[{className:n,...r},{as:i="div",bsPrefix:o,spans:a}]=JF(e);return y.jsx(i,{...r,ref:t,className:me(n,!a.length&&o)})});SS.displayName="Col";var Cm,o2;function eB(){if(o2)return Cm;o2=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,l="Warning: "+r.replace(/%s/g,function(){return i[s++]});typeof console<"u"&&console.error(l);try{throw new Error(l)}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 Cm=t,Cm}var tB=eB();const vh=ph(tB),nB={type:Ye.string,tooltip:Ye.bool,as:Ye.elementType},bh=ie.forwardRef(({as:e="div",className:t,type:n="valid",tooltip:r=!1,...i},o)=>y.jsx(e,{...i,ref:o,className:me(t,`${n}-${r?"tooltip":"feedback"}`)}));bh.displayName="Feedback";bh.propTypes=nB;const Pi=ie.createContext({}),X0=ie.forwardRef(({id:e,bsPrefix:t,className:n,type:r="checkbox",isValid:i=!1,isInvalid:o=!1,as:a="input",...s},l)=>{const{controlId:c}=m.useContext(Pi);return t=Et(t,"form-check-input"),y.jsx(a,{...s,ref:l,type:r,id:e||c,className:me(n,t,i&&"is-valid",o&&"is-invalid")})});X0.displayName="FormCheckInput";const Qd=ie.forwardRef(({bsPrefix:e,className:t,htmlFor:n,...r},i)=>{const{controlId:o}=m.useContext(Pi);return e=Et(e,"form-check-label"),y.jsx("label",{...r,ref:i,htmlFor:n||o,className:me(t,e)})});Qd.displayName="FormCheckLabel";const TS=ie.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:n,inline:r=!1,reverse:i=!1,disabled:o=!1,isValid:a=!1,isInvalid:s=!1,feedbackTooltip:l=!1,feedback:c,feedbackType:u,className:d,style:f,title:h="",type:p="checkbox",label:g,children:v,as:x="input",..._},w)=>{t=Et(t,"form-check"),n=Et(n,"form-switch");const{controlId:$}=m.useContext(Pi),b=m.useMemo(()=>({controlId:e||$}),[$,e]),C=!v&&g!=null&&g!==!1||QF(v,Qd),T=y.jsx(X0,{..._,type:p==="switch"?"checkbox":p,ref:w,isValid:a,isInvalid:s,disabled:o,as:x});return y.jsx(Pi.Provider,{value:b,children:y.jsx("div",{style:f,className:me(d,C&&t,r&&`${t}-inline`,i&&`${t}-reverse`,p==="switch"&&n),children:v||y.jsxs(y.Fragment,{children:[T,C&&y.jsx(Qd,{title:h,children:g}),c&&y.jsx(bh,{type:u,tooltip:l,children:c})]})})})});TS.displayName="FormCheck";const Jd=Object.assign(TS,{Input:X0,Label:Qd}),ES=ie.forwardRef(({bsPrefix:e,type:t,size:n,htmlSize:r,id:i,className:o,isValid:a=!1,isInvalid:s=!1,plaintext:l,readOnly:c,as:u="input",...d},f)=>{const{controlId:h}=m.useContext(Pi);return e=Et(e,"form-control"),process.env.NODE_ENV!=="production"&&vh(h==null||!i,"`controlId` is ignored on `<FormControl>` when `id` is specified."),y.jsx(u,{...d,type:t,size:r,ref:f,readOnly:c,id:i||h,className:me(o,l?`${e}-plaintext`:e,n&&`${e}-${n}`,t==="color"&&`${e}-color`,a&&"is-valid",s&&"is-invalid")})});ES.displayName="FormControl";const rB=Object.assign(ES,{Feedback:bh}),kS=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=Et(t,"form-floating"),y.jsx(n,{ref:i,className:me(e,t),...r})));kS.displayName="FormFloating";const Q0=ie.forwardRef(({controlId:e,as:t="div",...n},r)=>{const i=m.useMemo(()=>({controlId:e}),[e]);return y.jsx(Pi.Provider,{value:i,children:y.jsx(t,{...n,ref:r})})});Q0.displayName="FormGroup";const OS=ie.forwardRef(({as:e="label",bsPrefix:t,column:n=!1,visuallyHidden:r=!1,className:i,htmlFor:o,...a},s)=>{const{controlId:l}=m.useContext(Pi);t=Et(t,"form-label");let c="col-form-label";typeof n=="string"&&(c=`${c} ${c}-${n}`);const u=me(i,t,r&&"visually-hidden",n&&c);return process.env.NODE_ENV!=="production"&&vh(l==null||!o,"`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified."),o=o||l,n?y.jsx(SS,{ref:s,as:"label",className:u,htmlFor:o,...a}):y.jsx(e,{ref:s,className:u,htmlFor:o,...a})});OS.displayName="FormLabel";const MS=ie.forwardRef(({bsPrefix:e,className:t,id:n,...r},i)=>{const{controlId:o}=m.useContext(Pi);return e=Et(e,"form-range"),y.jsx("input",{...r,type:"range",ref:i,className:me(t,e),id:n||o})});MS.displayName="FormRange";const AS=ie.forwardRef(({bsPrefix:e,size:t,htmlSize:n,className:r,isValid:i=!1,isInvalid:o=!1,id:a,...s},l)=>{const{controlId:c}=m.useContext(Pi);return e=Et(e,"form-select"),y.jsx("select",{...s,size:n,ref:l,className:me(r,e,t&&`${e}-${t}`,i&&"is-valid",o&&"is-invalid"),id:a||c})});AS.displayName="FormSelect";const RS=ie.forwardRef(({bsPrefix:e,className:t,as:n="small",muted:r,...i},o)=>(e=Et(e,"form-text"),y.jsx(n,{...i,ref:o,className:me(t,e,r&&"text-muted")})));RS.displayName="FormText";const jS=ie.forwardRef((e,t)=>y.jsx(Jd,{...e,ref:t,type:"switch"}));jS.displayName="Switch";const iB=Object.assign(jS,{Input:Jd.Input,Label:Jd.Label}),NS=ie.forwardRef(({bsPrefix:e,className:t,children:n,controlId:r,label:i,...o},a)=>(e=Et(e,"form-floating"),y.jsxs(Q0,{ref:a,className:me(t,e),controlId:r,...o,children:[n,y.jsx("label",{htmlFor:r,children:i})]})));NS.displayName="FloatingLabel";const oB={_ref:Ye.any,validated:Ye.bool,as:Ye.elementType},J0=ie.forwardRef(({className:e,validated:t,as:n="form",...r},i)=>y.jsx(n,{...r,ref:i,className:me(e,t&&"was-validated")}));J0.displayName="Form";J0.propTypes=oB;const ef=Object.assign(J0,{Group:Q0,Control:rB,Floating:kS,Check:Jd,Switch:iB,Label:OS,Text:RS,Range:MS,Select:AS,FloatingLabel:NS}),aB=({column:e,filterValue:t,IconComponent:n,texts:r})=>{const[i,o]=m.useState(t??""),[a,s]=m.useState(!1),[l,c]=m.useState(!1);m.useEffect(()=>{o(t??"")},[t]),m.useEffect(()=>{if((i||null)===(t||null))return;const d=setTimeout(()=>{e.setFilterValue(i??null)},500);return()=>clearTimeout(d)},[i,e,t]);const u=m.useMemo(()=>i==="no_value_filter_value",[i]);return y.jsx("div",{className:"w-100 h-100 position-relative",children:u?y.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(""),c(!1),s(!1)},children:r.noValue}):y.jsxs(y.Fragment,{children:[y.jsx(ef.Control,{className:me("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:y.jsx("div",{className:"position-absolute",style:{top:"calc(50% - 8px)",right:"6px",opacity:a||l?1:0,transition:"opacity 0.3s ease-in-out"},onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),children:y.jsx("div",{role:"button",onClick:()=>{o(u?"":"no_value_filter_value"),s(!1)},children:y.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 Kg(){return Kg=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},Kg.apply(null,arguments)}function DS(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 $m,a2;function sB(){if(a2)return $m;a2=1;var e=function(t,n,r,i,o,a,s,l){if(process.env.NODE_ENV!=="production"&&n===void 0)throw new Error("invariant requires an error message argument");if(!t){var c;if(n===void 0)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,i,o,a,s,l],d=0;c=new Error(n.replace(/%s/g,function(){return u[d++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}};return $m=e,$m}var lB=sB();const s2=ph(lB);function l2(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function cB(e){var t=uB(e,"string");return typeof t=="symbol"?t:String(t)}function uB(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 dB(e,t,n){var r=m.useRef(e!==void 0),i=m.useState(t),o=i[0],a=i[1],s=e!==void 0,l=r.current;return r.current=s,!s&&l&&o!==t&&a(t),[s?e:o,m.useCallback(function(c){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,[c].concat(d)),a(c)},[n])]}function IS(e,t){return Object.keys(t).reduce(function(n,r){var i,o=n,a=o[l2(r)],s=o[r],l=DS(o,[l2(r),r].map(cB)),c=t[r],u=dB(s,a,e[c]),d=u[0],f=u[1];return Kg({},l,(i={},i[r]=d,i[c]=f,i))},e)}function cu(e){return e&&e.ownerDocument||document}const Hs=!!(typeof window<"u"&&window.document&&window.document.createElement);var Zg=!1,Xg=!1;try{var Sm={get passive(){return Zg=!0},get once(){return Xg=Zg=!0}};Hs&&(window.addEventListener("test",Sm,Sm),window.removeEventListener("test",Sm,!0))}catch{}function e1(e,t,n,r){if(r&&typeof r!="boolean"&&!Xg){var i=r.once,o=r.capture,a=n;!Xg&&i&&(a=n.__once||function s(l){this.removeEventListener(t,s,o),n.call(this,l)},n.__once=a),e.addEventListener(t,a,Zg?r:o)}e.addEventListener(t,n,r)}function Qg(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 oo(e,t,n,r){return e1(e,t,n,r),function(){Qg(e,t,n,r)}}const c2=e=>!e||typeof e=="function"?e:t=>{e.current=t};function fB(e,t){const n=c2(e),r=c2(t);return i=>{n&&n(i),r&&r(i)}}function uu(e,t){return m.useMemo(()=>fB(e,t),[e,t])}function hB(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e},[e]),t}function nf(e){const t=hB(e);return m.useCallback(function(...n){return t.current&&t.current(...n)},[t])}function pB(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e},[e]),t}function Wn(e){const t=pB(e);return m.useCallback(function(...n){return t.current&&t.current(...n)},[t])}function PS(){const e=m.useRef(!0),t=m.useRef(()=>e.current);return m.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function LS(e){const t=m.useRef(null);return m.useEffect(()=>{t.current=e}),t.current}var mB=Function.prototype.bind.call(Function.prototype.call,[].slice);function Qi(e,t){return mB(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 gB="data-rr-ui-";function t1(e){return`${gB}${e}`}const FS=m.createContext(Hs?window:void 0);FS.Provider;function yh(){return m.useContext(FS)}const vB=["as","disabled"];function bB(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 yB(e){return!e||e.trim()==="#"}function n1({tagName:e,disabled:t,href:n,target:r,rel:i,role:o,onClick:a,tabIndex:s=0,type:l}){e||(n!=null||r!=null||i!=null?e="a":e="button");const c={tagName:e};if(e==="button")return[{type:l||"button",disabled:t},c];const u=f=>{if((t||e==="a"&&yB(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},c]}const BS=ie.forwardRef((e,t)=>{let{as:n,disabled:r}=e,i=bB(e,vB);const[o,{tagName:a}]=n1(Object.assign({tagName:n,disabled:r},i));return y.jsx(a,Object.assign({},i,o,{ref:t}))});BS.displayName="Button";const r1=ie.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:r,active:i=!1,disabled:o=!1,className:a,...s},l)=>{const c=Et(t,"btn"),[u,{tagName:d}]=n1({tagName:e,disabled:o,...s});return y.jsx(d,{...u,...s,ref:l,disabled:o,className:me(a,c,i&&"active",n&&`${c}-${n}`,r&&`${c}-${r}`,s.href&&o&&"disabled")})});r1.displayName="Button";function xB(){return m.useState(null)}function wB(e,t,n,r=!1){const i=Wn(n);m.useEffect(()=>{const o=typeof e=="function"?e():e;return o.addEventListener(t,i,r),()=>o.removeEventListener(t,i,r)},[e])}const _B=["onKeyDown"];function CB(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 $B(e){return!e||e.trim()==="#"}const zS=ie.forwardRef((e,t)=>{let{onKeyDown:n}=e,r=CB(e,_B);const[i]=n1(Object.assign({tagName:"a"},r)),o=Wn(a=>{i.onKeyDown(a),n==null||n(a)});return $B(r.href)||r.role==="button"?y.jsx("a",Object.assign({ref:t},r,i,{onKeyDown:o})):y.jsx("a",Object.assign({ref:t},r,{onKeyDown:n}))});zS.displayName="Anchor";function SB(e,t,n){const r=m.useRef(e!==void 0),[i,o]=m.useState(t),a=e!==void 0,s=r.current;return r.current=a,!a&&s&&i!==t&&o(t),[a?e:i,m.useCallback((...l)=>{const[c,...u]=l;let d=n==null?void 0:n(c,...u);return o(c),d},[n])]}function TB(){const[,e]=m.useReducer(t=>t+1,0);return e}const xh=ie.createContext(null);var u2=Object.prototype.hasOwnProperty;function d2(e,t,n){for(n of e.keys())if(Vl(n,t))return n}function Vl(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--&&Vl(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=d2(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=d2(t,i),!i)||!Vl(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(u2.call(e,n)&&++r&&!u2.call(t,n)||!(n in t)||!Vl(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function EB(e){const t=PS();return[e[0],m.useCallback(n=>{if(t())return e[1](n)},[t,e[1]])]}var nr="top",Cr="bottom",$r="right",rr="left",i1="auto",du=[nr,Cr,$r,rr],ks="start",_c="end",kB="clippingParents",WS="viewport",wl="popper",OB="reference",f2=du.reduce(function(e,t){return e.concat([t+"-"+ks,t+"-"+_c])},[]),US=[].concat(du,[i1]).reduce(function(e,t){return e.concat([t,t+"-"+ks,t+"-"+_c])},[]),MB="beforeRead",AB="read",RB="afterRead",jB="beforeMain",NB="main",DB="afterMain",IB="beforeWrite",PB="write",LB="afterWrite",FB=[MB,AB,RB,jB,NB,DB,IB,PB,LB];function Zr(e){return e.split("-")[0]}function dr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function fa(e){var t=dr(e).Element;return e instanceof t||e instanceof Element}function Xr(e){var t=dr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function o1(e){if(typeof ShadowRoot>"u")return!1;var t=dr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var na=Math.max,of=Math.min,Os=Math.round;function Jg(){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 HS(){return!/^((?!chrome|android).)*safari/i.test(Jg())}function Ms(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Xr(e)&&(i=e.offsetWidth>0&&Os(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Os(r.height)/e.offsetHeight||1);var a=fa(e)?dr(e):window,s=a.visualViewport,l=!HS()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/i,u=(r.top+(l&&s?s.offsetTop:0))/o,d=r.width/i,f=r.height/o;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c,x:c,y:u}}function a1(e){var t=Ms(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 VS(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&o1(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function yo(e){return e?(e.nodeName||"").toLowerCase():null}function Li(e){return dr(e).getComputedStyle(e)}function BB(e){return["table","td","th"].indexOf(yo(e))>=0}function To(e){return((fa(e)?e.ownerDocument:e.document)||window.document).documentElement}function wh(e){return yo(e)==="html"?e:e.assignedSlot||e.parentNode||(o1(e)?e.host:null)||To(e)}function h2(e){return!Xr(e)||Li(e).position==="fixed"?null:e.offsetParent}function zB(e){var t=/firefox/i.test(Jg()),n=/Trident/i.test(Jg());if(n&&Xr(e)){var r=Li(e);if(r.position==="fixed")return null}var i=wh(e);for(o1(i)&&(i=i.host);Xr(i)&&["html","body"].indexOf(yo(i))<0;){var o=Li(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 fu(e){for(var t=dr(e),n=h2(e);n&&BB(n)&&Li(n).position==="static";)n=h2(n);return n&&(yo(n)==="html"||yo(n)==="body"&&Li(n).position==="static")?t:n||zB(e)||t}function s1(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ql(e,t,n){return na(e,of(t,n))}function WB(e,t,n){var r=ql(e,t,n);return r>n?n:r}function qS(){return{top:0,right:0,bottom:0,left:0}}function YS(e){return Object.assign({},qS(),e)}function GS(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var UB=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,YS(typeof e!="number"?e:GS(e,du))};function HB(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Zr(n.placement),l=s1(s),c=[rr,$r].indexOf(s)>=0,u=c?"height":"width";if(!(!o||!a)){var d=UB(i.padding,n),f=a1(o),h=l==="y"?nr:rr,p=l==="y"?Cr:$r,g=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],v=a[l]-n.rects.reference[l],x=fu(o),_=x?l==="y"?x.clientHeight||0:x.clientWidth||0:0,w=g/2-v/2,$=d[h],b=_-f[u]-d[p],C=_/2-f[u]/2+w,T=ql($,C,b),k=l;n.modifiersData[r]=(t={},t[k]=T,t.centerOffset=T-C,t)}}function VB(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)||VS(t.elements.popper,i)&&(t.elements.arrow=i))}const qB={name:"arrow",enabled:!0,phase:"main",fn:HB,effect:VB,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function As(e){return e.split("-")[1]}var YB={top:"auto",right:"auto",bottom:"auto",left:"auto"};function GB(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Os(n*i)/i||0,y:Os(r*i)/i||0}}function p2(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=a.x,h=f===void 0?0:f,p=a.y,g=p===void 0?0:p,v=typeof u=="function"?u({x:h,y:g}):{x:h,y:g};h=v.x,g=v.y;var x=a.hasOwnProperty("x"),_=a.hasOwnProperty("y"),w=rr,$=nr,b=window;if(c){var C=fu(n),T="clientHeight",k="clientWidth";if(C===dr(n)&&(C=To(n),Li(C).position!=="static"&&s==="absolute"&&(T="scrollHeight",k="scrollWidth")),C=C,i===nr||(i===rr||i===$r)&&o===_c){$=Cr;var O=d&&C===b&&b.visualViewport?b.visualViewport.height:C[T];g-=O-r.height,g*=l?1:-1}if(i===rr||(i===nr||i===Cr)&&o===_c){w=$r;var j=d&&C===b&&b.visualViewport?b.visualViewport.width:C[k];h-=j-r.width,h*=l?1:-1}}var S=Object.assign({position:s},c&&YB),E=u===!0?GB({x:h,y:g},dr(n)):{x:h,y:g};if(h=E.x,g=E.y,l){var A;return Object.assign({},S,(A={},A[$]=_?"0":"",A[w]=x?"0":"",A.transform=(b.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",A))}return Object.assign({},S,(t={},t[$]=_?g+"px":"",t[w]=x?h+"px":"",t.transform="",t))}function KB(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,l=s===void 0?!0:s,c={placement:Zr(t.placement),variation:As(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,p2(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,p2(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const ZB={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:KB,data:{}};var Ku={passive:!0};function XB(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,l=dr(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(u){u.addEventListener("scroll",n.update,Ku)}),s&&l.addEventListener("resize",n.update,Ku),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Ku)}),s&&l.removeEventListener("resize",n.update,Ku)}}const QB={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:XB,data:{}};var JB={left:"right",right:"left",bottom:"top",top:"bottom"};function Cd(e){return e.replace(/left|right|bottom|top/g,function(t){return JB[t]})}var ez={start:"end",end:"start"};function m2(e){return e.replace(/start|end/g,function(t){return ez[t]})}function l1(e){var t=dr(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function c1(e){return Ms(To(e)).left+l1(e).scrollLeft}function tz(e,t){var n=dr(e),r=To(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var c=HS();(c||!c&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+c1(e),y:l}}function nz(e){var t,n=To(e),r=l1(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=na(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=na(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+c1(e),l=-r.scrollTop;return Li(i||n).direction==="rtl"&&(s+=na(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function u1(e){var t=Li(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function KS(e){return["html","body","#document"].indexOf(yo(e))>=0?e.ownerDocument.body:Xr(e)&&u1(e)?e:KS(wh(e))}function Yl(e,t){var n;t===void 0&&(t=[]);var r=KS(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=dr(r),a=i?[o].concat(o.visualViewport||[],u1(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(Yl(wh(a)))}function ev(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function rz(e,t){var n=Ms(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 g2(e,t,n){return t===WS?ev(tz(e,n)):fa(t)?rz(t,n):ev(nz(To(e)))}function iz(e){var t=Yl(wh(e)),n=["absolute","fixed"].indexOf(Li(e).position)>=0,r=n&&Xr(e)?fu(e):e;return fa(r)?t.filter(function(i){return fa(i)&&VS(i,r)&&yo(i)!=="body"}):[]}function oz(e,t,n,r){var i=t==="clippingParents"?iz(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,c){var u=g2(e,c,r);return l.top=na(u.top,l.top),l.right=of(u.right,l.right),l.bottom=of(u.bottom,l.bottom),l.left=na(u.left,l.left),l},g2(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 ZS(e){var t=e.reference,n=e.element,r=e.placement,i=r?Zr(r):null,o=r?As(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case nr:l={x:a,y:t.y-n.height};break;case Cr:l={x:a,y:t.y+t.height};break;case $r:l={x:t.x+t.width,y:s};break;case rr:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=i?s1(i):null;if(c!=null){var u=c==="y"?"height":"width";switch(o){case ks:l[c]=l[c]-(t[u]/2-n[u]/2);break;case _c:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function Cc(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,l=s===void 0?kB:s,c=n.rootBoundary,u=c===void 0?WS:c,d=n.elementContext,f=d===void 0?wl:d,h=n.altBoundary,p=h===void 0?!1:h,g=n.padding,v=g===void 0?0:g,x=YS(typeof v!="number"?v:GS(v,du)),_=f===wl?OB:wl,w=e.rects.popper,$=e.elements[p?_:f],b=oz(fa($)?$:$.contextElement||To(e.elements.popper),l,u,a),C=Ms(e.elements.reference),T=ZS({reference:C,element:w,placement:i}),k=ev(Object.assign({},w,T)),O=f===wl?k:C,j={top:b.top-O.top+x.top,bottom:O.bottom-b.bottom+x.bottom,left:b.left-O.left+x.left,right:O.right-b.right+x.right},S=e.modifiersData.offset;if(f===wl&&S){var E=S[i];Object.keys(j).forEach(function(A){var D=[$r,Cr].indexOf(A)>=0?1:-1,R=[nr,Cr].indexOf(A)>=0?"y":"x";j[A]+=E[R]*D})}return j}function az(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?US:l,u=As(r),d=u?s?f2:f2.filter(function(p){return As(p)===u}):du,f=d.filter(function(p){return c.indexOf(p)>=0});f.length===0&&(f=d);var h=f.reduce(function(p,g){return p[g]=Cc(e,{placement:g,boundary:i,rootBoundary:o,padding:a})[Zr(g)],p},{});return Object.keys(h).sort(function(p,g){return h[p]-h[g]})}function sz(e){if(Zr(e)===i1)return[];var t=Cd(e);return[m2(e),t,m2(t)]}function lz(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,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,p=h===void 0?!0:h,g=n.allowedAutoPlacements,v=t.options.placement,x=Zr(v),_=x===v,w=l||(_||!p?[Cd(v)]:sz(v)),$=[v].concat(w).reduce(function(Y,G){return Y.concat(Zr(G)===i1?az(t,{placement:G,boundary:u,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:g}):G)},[]),b=t.rects.reference,C=t.rects.popper,T=new Map,k=!0,O=$[0],j=0;j<$.length;j++){var S=$[j],E=Zr(S),A=As(S)===ks,D=[nr,Cr].indexOf(E)>=0,R=D?"width":"height",M=Cc(t,{placement:S,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),I=D?A?$r:rr:A?Cr:nr;b[R]>C[R]&&(I=Cd(I));var F=Cd(I),U=[];if(o&&U.push(M[E]<=0),s&&U.push(M[I]<=0,M[F]<=0),U.every(function(Y){return Y})){O=S,k=!1;break}T.set(S,U)}if(k)for(var P=p?3:1,W=function(Y){var G=$.find(function(J){var ee=T.get(J);if(ee)return ee.slice(0,Y).every(function(z){return z})});if(G)return O=G,"break"},q=P;q>0;q--){var H=W(q);if(H==="break")break}t.placement!==O&&(t.modifiersData[r]._skip=!0,t.placement=O,t.reset=!0)}}const cz={name:"flip",enabled:!0,phase:"main",fn:lz,requiresIfExists:["offset"],data:{_skip:!1}};function v2(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 b2(e){return[nr,$r,Cr,rr].some(function(t){return e[t]>=0})}function uz(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=Cc(t,{elementContext:"reference"}),s=Cc(t,{altBoundary:!0}),l=v2(a,r),c=v2(s,i,o),u=b2(l),d=b2(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const dz={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:uz};function fz(e,t,n){var r=Zr(e),i=[rr,nr].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,[rr,$r].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function hz(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=US.reduce(function(u,d){return u[d]=fz(d,t.rects,o),u},{}),s=a[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}const pz={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:hz};function mz(e){var t=e.state,n=e.name;t.modifiersData[n]=ZS({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const gz={name:"popperOffsets",enabled:!0,phase:"read",fn:mz,data:{}};function vz(e){return e==="x"?"y":"x"}function bz(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,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,h=f===void 0?!0:f,p=n.tetherOffset,g=p===void 0?0:p,v=Cc(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),x=Zr(t.placement),_=As(t.placement),w=!_,$=s1(x),b=vz($),C=t.modifiersData.popperOffsets,T=t.rects.reference,k=t.rects.popper,O=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,j=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(C){if(o){var A,D=$==="y"?nr:rr,R=$==="y"?Cr:$r,M=$==="y"?"height":"width",I=C[$],F=I+v[D],U=I-v[R],P=h?-k[M]/2:0,W=_===ks?T[M]:k[M],q=_===ks?-k[M]:-T[M],H=t.elements.arrow,Y=h&&H?a1(H):{width:0,height:0},G=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:qS(),J=G[D],ee=G[R],z=ql(0,T[M],Y[M]),L=w?T[M]/2-P-z-J-j.mainAxis:W-z-J-j.mainAxis,B=w?-T[M]/2+P+z+ee+j.mainAxis:q+z+ee+j.mainAxis,V=t.elements.arrow&&fu(t.elements.arrow),N=V?$==="y"?V.clientTop||0:V.clientLeft||0:0,X=(A=S==null?void 0:S[$])!=null?A:0,Q=I+L-X-N,Z=I+B-X,le=ql(h?of(F,Q):F,I,h?na(U,Z):U);C[$]=le,E[$]=le-I}if(s){var te,re=$==="x"?nr:rr,se=$==="x"?Cr:$r,fe=C[b],xe=b==="y"?"height":"width",ve=fe+v[re],be=fe-v[se],Te=[nr,rr].indexOf(x)!==-1,ce=(te=S==null?void 0:S[b])!=null?te:0,ae=Te?ve:fe-T[xe]-k[xe]-ce+j.altAxis,ye=Te?fe+T[xe]+k[xe]-ce-j.altAxis:be,De=h&&Te?WB(ae,fe,ye):ql(h?ae:ve,fe,h?ye:be);C[b]=De,E[b]=De-fe}t.modifiersData[r]=E}}const yz={name:"preventOverflow",enabled:!0,phase:"main",fn:bz,requiresIfExists:["offset"]};function xz(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function wz(e){return e===dr(e)||!Xr(e)?l1(e):xz(e)}function _z(e){var t=e.getBoundingClientRect(),n=Os(t.width)/e.offsetWidth||1,r=Os(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Cz(e,t,n){n===void 0&&(n=!1);var r=Xr(t),i=Xr(t)&&_z(t),o=To(t),a=Ms(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((yo(t)!=="body"||u1(o))&&(s=wz(t)),Xr(t)?(l=Ms(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=c1(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function $z(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 l=t.get(s);l&&i(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function Sz(e){var t=$z(e);return FB.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function Tz(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Ez(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 y2={placement:"bottom",modifiers:[],strategy:"absolute"};function x2(){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 kz(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?y2:i;return function(a,s,l){l===void 0&&(l=o);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},y2,o),modifiersData:{},elements:{reference:a,popper:s},attributes:{},styles:{}},u=[],d=!1,f={state:c,setOptions:function(g){var v=typeof g=="function"?g(c.options):g;p(),c.options=Object.assign({},o,c.options,v),c.scrollParents={reference:fa(a)?Yl(a):a.contextElement?Yl(a.contextElement):[],popper:Yl(s)};var x=Sz(Ez([].concat(r,c.options.modifiers)));return c.orderedModifiers=x.filter(function(_){return _.enabled}),h(),f.update()},forceUpdate:function(){if(!d){var g=c.elements,v=g.reference,x=g.popper;if(x2(v,x)){c.rects={reference:Cz(v,fu(x),c.options.strategy==="fixed"),popper:a1(x)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(k){return c.modifiersData[k.name]=Object.assign({},k.data)});for(var _=0;_<c.orderedModifiers.length;_++){if(c.reset===!0){c.reset=!1,_=-1;continue}var w=c.orderedModifiers[_],$=w.fn,b=w.options,C=b===void 0?{}:b,T=w.name;typeof $=="function"&&(c=$({state:c,options:C,name:T,instance:f})||c)}}}},update:Tz(function(){return new Promise(function(g){f.forceUpdate(),g(c)})}),destroy:function(){p(),d=!0}};if(!x2(a,s))return f;f.setOptions(l).then(function(g){!d&&l.onFirstUpdate&&l.onFirstUpdate(g)});function h(){c.orderedModifiers.forEach(function(g){var v=g.name,x=g.options,_=x===void 0?{}:x,w=g.effect;if(typeof w=="function"){var $=w({state:c,name:v,instance:f,options:_}),b=function(){};u.push($||b)}})}function p(){u.forEach(function(g){return g()}),u=[]}return f}}const Oz=kz({defaultModifiers:[dz,gz,ZB,QB,pz,cz,yz,qB]}),Mz=["enabled","placement","strategy","modifiers"];function Az(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 Rz={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},jz={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)}}},Nz=[];function Dz(e,t,n={}){let{enabled:r=!0,placement:i="bottom",strategy:o="absolute",modifiers:a=Nz}=n,s=Az(n,Mz);const l=m.useRef(a),c=m.useRef(),u=m.useCallback(()=>{var v;(v=c.current)==null||v.update()},[]),d=m.useCallback(()=>{var v;(v=c.current)==null||v.forceUpdate()},[]),[f,h]=EB(m.useState({placement:i,update:u,forceUpdate:d,attributes:{},styles:{popper:{},arrow:{}}})),p=m.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:v})=>{const x={},_={};Object.keys(v.elements).forEach(w=>{x[w]=v.styles[w],_[w]=v.attributes[w]}),h({state:v,styles:x,attributes:_,update:u,forceUpdate:d,placement:v.placement})}}),[u,d,h]),g=m.useMemo(()=>(Vl(l.current,a)||(l.current=a),l.current),[a]);return m.useEffect(()=>{!c.current||!r||c.current.setOptions({placement:i,strategy:o,modifiers:[...g,p,Rz]})},[o,i,p,r,g]),m.useEffect(()=>{if(!(!r||e==null||t==null))return c.current=Oz(e,t,Object.assign({},s,{placement:i,strategy:o,modifiers:[...g,jz,p]})),()=>{c.current!=null&&(c.current.destroy(),c.current=void 0,h(v=>Object.assign({},v,{attributes:{},styles:{popper:{}}})))}},[r,e,t]),f}const w2=()=>{};function Iz(e){return e.button===0}function Pz(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const Tm=e=>e&&("current"in e?e.current:e),_2={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function Lz(e,t=w2,{disabled:n,clickTrigger:r="click"}={}){const i=m.useRef(!1),o=m.useRef(!1),a=m.useCallback(c=>{const u=Tm(e);vh(!!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||Pz(c)||!Iz(c)||!!rf(u,c.target)||o.current,o.current=!1},[e]),s=Wn(c=>{const u=Tm(e);u&&rf(u,c.target)?o.current=!0:o.current=!1}),l=Wn(c=>{i.current||t(c)});m.useEffect(()=>{var c,u;if(n||e==null)return;const d=cu(Tm(e)),f=d.defaultView||window;let h=(c=f.event)!=null?c:(u=f.parent)==null?void 0:u.event,p=null;_2[r]&&(p=oo(d,_2[r],s,!0));const g=oo(d,r,a,!0),v=oo(d,r,_=>{if(_===h){h=void 0;return}l(_)});let x=[];return"ontouchstart"in d.documentElement&&(x=[].slice.call(d.body.children).map(_=>oo(_,"mousemove",w2))),()=>{p==null||p(),g(),v(),x.forEach(_=>_())}},[e,n,r,a,s,l])}function Fz(e){const t={};return Array.isArray(e)?(e==null||e.forEach(n=>{t[n.name]=n}),t):e||t}function Bz(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function zz({enabled:e,enableEvents:t,placement:n,flip:r,offset:i,fixed:o,containerPadding:a,arrowElement:s,popperConfig:l={}}){var c,u,d,f,h;const p=Fz(l.modifiers);return Object.assign({},l,{placement:n,enabled:e,strategy:o?"fixed":l.strategy,modifiers:Bz(Object.assign({},p,{eventListeners:{enabled:t,options:(c=p.eventListeners)==null?void 0:c.options},preventOverflow:Object.assign({},p.preventOverflow,{options:a?Object.assign({padding:a},(u=p.preventOverflow)==null?void 0:u.options):(d=p.preventOverflow)==null?void 0:d.options}),offset:{options:Object.assign({offset:i},(f=p.offset)==null?void 0:f.options)},arrow:Object.assign({},p.arrow,{enabled:!!s,options:Object.assign({},(h=p.arrow)==null?void 0:h.options,{element:s})}),flip:Object.assign({enabled:!!r},p.flip)}))})}const Wz=["children","usePopper"];function Uz(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 Hz=()=>{};function XS(e={}){const t=m.useContext(xh),[n,r]=xB(),i=m.useRef(!1),{flip:o,offset:a,rootCloseEvent:s,fixed:l=!1,placement:c,popperConfig:u={},enableEventListeners:d=!0,usePopper:f=!!t}=e,h=(t==null?void 0:t.show)==null?!!e.show:t.show;h&&!i.current&&(i.current=!0);const p=C=>{t==null||t.toggle(!1,C)},{placement:g,setMenu:v,menuElement:x,toggleElement:_}=t||{},w=Dz(_,x,zz({placement:c||g||"bottom-start",enabled:f,enableEvents:d??h,offset:a,flip:o,fixed:l,arrowElement:n,popperConfig:u})),$=Object.assign({ref:v||Hz,"aria-labelledby":_==null?void 0:_.id},w.attributes.popper,{style:w.styles.popper}),b={show:h,placement:g,hasShown:i.current,toggle:t==null?void 0:t.toggle,popper:f?w:null,arrowProps:f?Object.assign({ref:r},w.attributes.arrow,{style:w.styles.arrow}):{}};return Lz(x,p,{clickTrigger:s,disabled:!h}),[$,b]}function QS(e){let{children:t,usePopper:n=!0}=e,r=Uz(e,Wz);const[i,o]=XS(Object.assign({},r,{usePopper:n}));return y.jsx(y.Fragment,{children:t(i,o)})}QS.displayName="DropdownMenu";const af={prefix:String(Math.round(Math.random()*1e10)),current:0},JS=m.createContext(af),Vz=m.createContext(!1);let qz=!!(typeof window<"u"&&window.document&&window.document.createElement),Em=new WeakMap;function Yz(e=!1){let t=m.useContext(JS),n=m.useRef(null);if(n.current===null&&!e){var r,i;let o=(i=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(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 Gz(e){let t=m.useContext(JS);t===af&&!qz&&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=Yz(!!e),r=t===af&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function Kz(e){let t=m.useId(),[n]=m.useState(eW()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${af.prefix}`;return e||`${r}-${t}`}const Zz=typeof m.useId=="function"?Kz:Gz;function Xz(){return!1}function Qz(){return!0}function Jz(e){return()=>{}}function eW(){return typeof m.useSyncExternalStore=="function"?m.useSyncExternalStore(Jz,Xz,Qz):m.useContext(Vz)}const e6=e=>{var t;return((t=e.getAttribute("role"))==null?void 0:t.toLowerCase())==="menu"},C2=()=>{};function t6(){const e=Zz(),{show:t=!1,toggle:n=C2,setToggle:r,menuElement:i}=m.useContext(xh)||{},o=m.useCallback(s=>{n(!t,s)},[t,n]),a={id:e,ref:r||C2,onClick:o,"aria-expanded":!!t};return i&&e6(i)&&(a["aria-haspopup"]=!0),[a,{show:t,toggle:n}]}function n6({children:e}){const[t,n]=t6();return y.jsx(y.Fragment,{children:e(t,n)})}n6.displayName="DropdownToggle";const tv=ie.createContext(null),$2=(e,t=null)=>e!=null?String(e):t||null,r6=ie.createContext(null);r6.displayName="NavContext";const tW=["eventKey","disabled","onClick","active","as"];function nW(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 i6({key:e,href:t,active:n,disabled:r,onClick:i}){const o=m.useContext(tv),a=m.useContext(r6),{activeKey:s}=a||{},l=$2(e,t),c=n==null&&e!=null?$2(s)===l:n;return[{onClick:Wn(u=>{r||(i==null||i(u),o&&!u.isPropagationStopped()&&o(l,u))}),"aria-disabled":r||void 0,"aria-selected":c,[t1("dropdown-item")]:""},{isActive:c}]}const o6=ie.forwardRef((e,t)=>{let{eventKey:n,disabled:r,onClick:i,active:o,as:a=BS}=e,s=nW(e,tW);const[l]=i6({key:n,href:s.href,disabled:r,onClick:i,active:o});return y.jsx(a,Object.assign({},s,{ref:t},l))});o6.displayName="DropdownItem";function S2(){const e=TB(),t=m.useRef(null),n=m.useCallback(r=>{t.current=r,e()},[e]);return[t,n]}function hu({defaultShow:e,show:t,onSelect:n,onToggle:r,itemSelector:i=`* [${t1("dropdown-item")}]`,focusFirstItemOnShow:o,placement:a="bottom-start",children:s}){const l=yh(),[c,u]=SB(t,e,r),[d,f]=S2(),h=d.current,[p,g]=S2(),v=p.current,x=LS(c),_=m.useRef(null),w=m.useRef(!1),$=m.useContext(tv),b=m.useCallback((S,E,A=E==null?void 0:E.type)=>{u(S,{originalEvent:E,source:A})},[u]),C=Wn((S,E)=>{n==null||n(S,E),b(!1,E,"select"),E.isPropagationStopped()||($==null||$(S,E))}),T=m.useMemo(()=>({toggle:b,placement:a,show:c,menuElement:h,toggleElement:v,setMenu:f,setToggle:g}),[b,a,c,h,v,f,g]);h&&x&&!c&&(w.current=h.contains(h.ownerDocument.activeElement));const k=Wn(()=>{v&&v.focus&&v.focus()}),O=Wn(()=>{const S=_.current;let E=o;if(E==null&&(E=d.current&&e6(d.current)?"keyboard":!1),E===!1||E==="keyboard"&&!/^key.+$/.test(S))return;const A=Qi(d.current,i)[0];A&&A.focus&&A.focus()});m.useEffect(()=>{c?O():w.current&&(w.current=!1,k())},[c,w,k,O]),m.useEffect(()=>{_.current=null});const j=(S,E)=>{if(!d.current)return null;const A=Qi(d.current,i);let D=A.indexOf(S)+E;return D=Math.max(0,Math.min(D,A.length)),A[D]};return wB(m.useCallback(()=>l.document,[l]),"keydown",S=>{var E,A;const{key:D}=S,R=S.target,M=(E=d.current)==null?void 0:E.contains(R),I=(A=p.current)==null?void 0:A.contains(R);if(/input|textarea/i.test(R.tagName)&&(D===" "||D!=="Escape"&&M||D==="Escape"&&R.type==="search")||!M&&!I||D==="Tab"&&(!d.current||!c))return;_.current=S.type;const F={originalEvent:S,source:S.type};switch(D){case"ArrowUp":{const U=j(R,-1);U&&U.focus&&U.focus(),S.preventDefault();return}case"ArrowDown":if(S.preventDefault(),!c)u(!0,F);else{const U=j(R,1);U&&U.focus&&U.focus()}return;case"Tab":e1(R.ownerDocument,"keyup",U=>{var P;(U.key==="Tab"&&!U.target||!((P=d.current)!=null&&P.contains(U.target)))&&u(!1,F)},{once:!0});break;case"Escape":D==="Escape"&&(S.preventDefault(),S.stopPropagation()),u(!1,F);break}}),y.jsx(tv.Provider,{value:C,children:y.jsx(xh.Provider,{value:T,children:s})})}hu.displayName="Dropdown";hu.Menu=QS;hu.Toggle=n6;hu.Item=o6;const d1=ie.createContext({});d1.displayName="DropdownContext";const a6=ie.forwardRef(({className:e,bsPrefix:t,as:n="hr",role:r="separator",...i},o)=>(t=Et(t,"dropdown-divider"),y.jsx(n,{ref:o,className:me(e,t),role:r,...i})));a6.displayName="DropdownDivider";const s6=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",role:r="heading",...i},o)=>(t=Et(t,"dropdown-header"),y.jsx(n,{ref:o,className:me(e,t),role:r,...i})));s6.displayName="DropdownHeader";const l6=ie.forwardRef(({bsPrefix:e,className:t,eventKey:n,disabled:r=!1,onClick:i,active:o,as:a=zS,...s},l)=>{const c=Et(e,"dropdown-item"),[u,d]=i6({key:n,href:s.href,disabled:r,onClick:i,active:o});return y.jsx(a,{...s,...u,ref:l,className:me(t,c,d.isActive&&"active",r&&"disabled")})});l6.displayName="DropdownItem";const c6=ie.forwardRef(({className:e,bsPrefix:t,as:n="span",...r},i)=>(t=Et(t,"dropdown-item-text"),y.jsx(n,{ref:i,className:me(e,t),...r})));c6.displayName="DropdownItemText";const rW=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",iW=typeof document<"u",oW=iW||rW?m.useLayoutEffect:m.useEffect,f1=ie.createContext(null);f1.displayName="InputGroupContext";const u6=ie.createContext(null);u6.displayName="NavbarContext";function d6(e,t){if(process.env.NODE_ENV==="production")return e;const n=m.useCallback(r=>{r==null||!r.isReactComponent||(process.env.NODE_ENV!=="production"?s2(!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`):s2(!1))},[t]);return uu(n,e)}function f6(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",l=n?"right-end":"left-end",c=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:c:t==="start"?d=e?l:s:t==="down-centered"?d="bottom":t==="up-centered"&&(d="top"),d}const h6=ie.forwardRef(({bsPrefix:e,className:t,align:n,rootCloseEvent:r,flip:i=!0,show:o,renderOnMount:a,as:s="div",popperConfig:l,variant:c,...u},d)=>{let f=!1;const h=m.useContext(u6),p=Et(e,"dropdown-menu"),{align:g,drop:v,isRTL:x}=m.useContext(d1);n=n||g;const _=m.useContext(f1),w=[];if(n)if(typeof n=="object"){const S=Object.keys(n);if(process.env.NODE_ENV!=="production"&&vh(S.length===1,"There should only be 1 breakpoint when passing an object to `align`"),S.length){const E=S[0],A=n[E];f=A==="start",w.push(`${p}-${E}-${A}`)}}else n==="end"&&(f=!0);const $=f6(f,v,x),[b,{hasShown:C,popper:T,show:k,toggle:O}]=XS({flip:i,rootCloseEvent:r,show:o,usePopper:!h&&w.length===0,offset:[0,2],popperConfig:l,placement:$});if(b.ref=uu(d6(d,"DropdownMenu"),b.ref),oW(()=>{k&&(T==null||T.update())},[k]),!C&&!a&&!_)return null;typeof s!="string"&&(b.show=k,b.close=()=>O==null?void 0:O(!1),b.align=n);let j=u.style;return T!=null&&T.placement&&(j={...u.style,...b.style},u["x-placement"]=T.placement),y.jsx(s,{...u,...b,style:j,...(w.length||h)&&{"data-bs-popper":"static"},className:me(t,p,k&&"show",f&&`${p}-end`,c&&`${p}-${c}`,...w)})});h6.displayName="DropdownMenu";const p6=ie.forwardRef(({bsPrefix:e,split:t,className:n,childBsPrefix:r,as:i=r1,...o},a)=>{const s=Et(e,"dropdown-toggle"),l=m.useContext(xh);r!==void 0&&(o.bsPrefix=r);const[c]=t6();return c.ref=uu(c.ref,d6(a,"DropdownToggle")),y.jsx(i,{className:me(n,s,t&&`${s}-split`,(l==null?void 0:l.show)&&"show"),...c,...o})});p6.displayName="DropdownToggle";const m6=ie.forwardRef((e,t)=>{const{bsPrefix:n,drop:r="down",show:i,className:o,align:a="start",onSelect:s,onToggle:l,focusFirstItemOnShow:c,as:u="div",navbar:d,autoClose:f=!0,...h}=IS(e,{show:"onToggle"}),p=m.useContext(f1),g=Et(n,"dropdown"),v=_S(),x=C=>f===!1?C==="click":f==="inside"?C!=="rootClose":f==="outside"?C!=="select":!0,_=nf((C,T)=>{var k;!((k=T.originalEvent)==null||(k=k.target)==null)&&k.classList.contains("dropdown-toggle")&&T.source==="mousedown"||(T.originalEvent.currentTarget===document&&(T.source!=="keydown"||T.originalEvent.key==="Escape")&&(T.source="rootClose"),x(T.source)&&(l==null||l(C,T)))}),w=f6(a==="end",r,v),$=m.useMemo(()=>({align:a,drop:r,isRTL:v}),[a,r,v]),b={down:g,"down-centered":`${g}-center`,up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return y.jsx(d1.Provider,{value:$,children:y.jsx(hu,{placement:w,show:i,onSelect:s,onToggle:_,focusFirstItemOnShow:c,itemSelector:`.${g}-item:not(.disabled):not(:disabled)`,children:p?h.children:y.jsx(u,{...h,ref:t,className:me(o,i&&"show",b[r])})})})});m6.displayName="Dropdown";const Rn=Object.assign(m6,{Toggle:p6,Menu:h6,Item:l6,ItemText:c6,Divider:a6,Header:s6}),aW="_multiselect_krzom_1",sW="_multiselect-menu_krzom_34",lW="_search-item_krzom_41",cW="_special-option_krzom_45",Zu={multiselect:aW,multiselectMenu:sW,searchItem:lW,specialOption:cW},T2=10,uW=({column:e,filterValue:t,texts:n})=>{var p,g,v;const[r,i]=m.useState(""),o=m.useMemo(()=>Array.from(e.getFacetedUniqueValues().keys()).map(x=>x===!0||x===!1?x:(x==null?void 0:x.toString())??"").sort(),[e]),a=m.useMemo(()=>o.some(x=>x===""||x===null||x===void 0),[o]),s=m.useMemo(()=>(t==null?void 0:t.split(";"))??[],[t]),l=x=>{const _=x===""?[]:s.includes(x)?s.filter(w=>w!==x):[...s,x];e.setFilterValue(!_||_.length<1?"":_.join(";"))},c=m.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(_=>{x.push({value:(_==null?void 0:_.toString())||"",label:_===!0?n.booleanYes||"ano":_===!1?n.booleanNo||"ne":_,specialOption:!1})}),s.forEach(_=>{_&&_!=="no_value_filter_value"&&!o.some(w=>w.toString()===_.toString())&&x.push({value:_,label:_,specialOption:!1})}),Array.from(new Set(x.map(_=>_.value))).map(_=>x.find(w=>w.value===_))},[o,s,a,n]),u=m.useRef(null),d=m.useRef(null),[f,h]=m.useState(!1);return m.useEffect(()=>{f&&d.current&&d.current.focus()},[f]),m.useEffect(()=>{c.length<T2&&i("")},[c]),y.jsxs(Rn,{autoClose:"outside",onToggle:x=>h(x),children:[y.jsx(Rn.Toggle,{className:me("filter multiselect border",Zu.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?(p=c.find(x=>x.value===t))==null?void 0:p.label:n.multiselect.all||"vše"}),y.jsxs(Rn.Menu,{className:me("multiselect-menu shadow-sm",Zu.multiselectMenu),style:{position:"relative",left:(g=u.current)==null?void 0:g.getBoundingClientRect().left,top:(v=u.current)==null?void 0:v.getBoundingClientRect().bottom},children:[c.length>=T2?y.jsx(Rn.Item,{className:me("rounded search-item",Zu.searchItem),children:y.jsx(ef.Control,{className:"w-100",ref:d,size:"sm",type:"search",value:r,onChange:x=>i(x.target.value??"")})}):null,c.filter(x=>x.specialOption?!0:r?tf(x.value).toLowerCase().includes(tf(r.toLowerCase())):!0).map(x=>y.jsx(Rn.Item,{className:me("rounded",{"special-option":x.specialOption},{[Zu.specialOption]:x.specialOption}),onClick:()=>l(x.value),children:y.jsx(ef.Check,{checked:x.value===""?s.length<1:s.includes(x.value),label:x.label,onChange:()=>{}})},x.value))]})]})},dW=({column:e,IconComponent:t,texts:n})=>{const r=e.getFilterValue(),i=FF(e.columnDef);return["text","number","date","datetime"].includes(i)?y.jsx(aB,{column:e,filterValue:r?r.toString():null,IconComponent:t,texts:n}):y.jsx(uW,{column:e,filterValue:r?r.toString():null,IconComponent:t,texts:n})};/**
278
- * table-core
279
- *
280
- * Copyright (c) TanStack
281
- *
282
- * This source code is licensed under the MIT license found in the
283
- * LICENSE.md file in the root directory of this source tree.
284
- *
285
- * @license MIT
286
- */function fW(){return{accessor:(e,t)=>typeof e=="function"?{...t,accessorFn:e}:{...t,accessorKey:e},display:e=>e,group:e=>e}}/**
287
- * react-table
288
- *
289
- * Copyright (c) TanStack
290
- *
291
- * This source code is licensed under the MIT license found in the
292
- * LICENSE.md file in the root directory of this source tree.
293
- *
294
- * @license MIT
295
- */function g6(e,t){return e?hW(e)?ie.createElement(e,t):e:null}function hW(e){return pW(e)||typeof e=="function"||mW(e)}function pW(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function mW(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function gW(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return m.useMemo(()=>r=>{t.forEach(i=>i(r))},t)}const _h=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Vs(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function h1(e){return"nodeType"in e}function ir(e){var t,n;return e?Vs(e)?e:h1(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function p1(e){const{Document:t}=ir(e);return e instanceof t}function pu(e){return Vs(e)?!1:e instanceof ir(e).HTMLElement}function v6(e){return e instanceof ir(e).SVGElement}function qs(e){return e?Vs(e)?e.document:h1(e)?p1(e)?e:pu(e)||v6(e)?e.ownerDocument:document:document:document}const ni=_h?m.useLayoutEffect:m.useEffect;function m1(e){const t=m.useRef(e);return ni(()=>{t.current=e}),m.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 vW(){const e=m.useRef(null),t=m.useCallback((r,i)=>{e.current=setInterval(r,i)},[]),n=m.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function $c(e,t){t===void 0&&(t=[e]);const n=m.useRef(e);return ni(()=>{n.current!==e&&(n.current=e)},t),n}function mu(e,t){const n=m.useRef();return m.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function sf(e){const t=m1(e),n=m.useRef(null),r=m.useCallback(i=>{i!==n.current&&(t==null||t(i,n.current)),n.current=i},[]);return[n,r]}function nv(e){const t=m.useRef();return m.useEffect(()=>{t.current=e},[e]),t.current}let km={};function gu(e,t){return m.useMemo(()=>{if(t)return t;const n=km[e]==null?0:km[e]+1;return km[e]=n,e+"-"+n},[e,t])}function b6(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[l,c]of s){const u=o[l];u!=null&&(o[l]=u+e*c)}return o},{...t})}}const ls=b6(1),lf=b6(-1);function bW(e){return"clientX"in e&&"clientY"in e}function g1(e){if(!e)return!1;const{KeyboardEvent:t}=ir(e.target);return t&&e instanceof t}function yW(e){if(!e)return!1;const{TouchEvent:t}=ir(e.target);return t&&e instanceof t}function rv(e){if(yW(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 bW(e)?{x:e.clientX,y:e.clientY}:null}const Sc=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[Sc.Translate.toString(e),Sc.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),E2="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function xW(e){return e.matches(E2)?e:e.querySelector(E2)}const wW={display:"none"};function _W(e){let{id:t,value:n}=e;return m.createElement("div",{id:t,style:wW},n)}function CW(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 m.createElement("div",{id:t,style:i,role:"status","aria-live":r,"aria-atomic":!0},n)}function $W(){const[e,t]=m.useState("");return{announce:m.useCallback(n=>{n!=null&&t(n)},[]),announcement:e}}const y6=m.createContext(null);function SW(e){const t=m.useContext(y6);m.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function TW(){const[e]=m.useState(()=>new Set),t=m.useCallback(n=>(e.add(n),()=>e.delete(n)),[e]);return[m.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 EW={draggable:`
296
- To pick up a draggable item, press the space bar.
297
- While dragging, use the arrow keys to move the item.
298
- Press space again to drop the item in its new position, or press escape to cancel.
299
- `},kW={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 OW(e){let{announcements:t=kW,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=EW}=e;const{announce:o,announcement:a}=$W(),s=gu("DndLiveRegion"),[l,c]=m.useState(!1);if(m.useEffect(()=>{c(!0)},[]),SW(m.useMemo(()=>({onDragStart(d){let{active:f}=d;o(t.onDragStart({active:f}))},onDragMove(d){let{active:f,over:h}=d;t.onDragMove&&o(t.onDragMove({active:f,over:h}))},onDragOver(d){let{active:f,over:h}=d;o(t.onDragOver({active:f,over:h}))},onDragEnd(d){let{active:f,over:h}=d;o(t.onDragEnd({active:f,over:h}))},onDragCancel(d){let{active:f,over:h}=d;o(t.onDragCancel({active:f,over:h}))}}),[o,t])),!l)return null;const u=m.createElement(m.Fragment,null,m.createElement(_W,{id:r,value:i.draggable}),m.createElement(CW,{id:s,announcement:a}));return n?mn.createPortal(u,n):u}var bn;(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"})(bn||(bn={}));function cf(){}function Om(e,t){return m.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function MW(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return m.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const Ir=Object.freeze({x:0,y:0});function AW(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function RW(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function jW(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function NW(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function k2(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 DW=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=k2(t,t.left,t.top),o=[];for(const a of r){const{id:s}=a,l=n.get(s);if(l){const c=AW(k2(l),i);o.push({id:s,data:{droppableContainer:a,value:c}})}}return o.sort(RW)};function IW(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 l=t.width*t.height,c=e.width*e.height,u=a*s,d=u/(l+c-u);return Number(d.toFixed(4))}return 0}const PW=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 l=IW(s,t);l>0&&i.push({id:a,data:{droppableContainer:o,value:l}})}}return i.sort(jW)};function LW(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function x6(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Ir}function FW(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 BW=FW(1);function zW(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 WW(e,t,n){const r=zW(t);if(!r)return e;const{scaleX:i,scaleY:o,x:a,y:s}=r,l=e.left-a-(1-i)*parseFloat(n),c=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:c,right:l+u,bottom:c+d,left:l}}const UW={ignoreTransform:!1};function Ys(e,t){t===void 0&&(t=UW);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:c,transformOrigin:u}=ir(e).getComputedStyle(e);c&&(n=WW(n,c,u))}const{top:r,left:i,width:o,height:a,bottom:s,right:l}=n;return{top:r,left:i,width:o,height:a,bottom:s,right:l}}function O2(e){return Ys(e,{ignoreTransform:!0})}function HW(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function VW(e,t){return t===void 0&&(t=ir(e).getComputedStyle(e)),t.position==="fixed"}function qW(e,t){t===void 0&&(t=ir(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 v1(e,t){const n=[];function r(i){if(t!=null&&n.length>=t||!i)return n;if(p1(i)&&i.scrollingElement!=null&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!pu(i)||v6(i)||n.includes(i))return n;const o=ir(e).getComputedStyle(i);return i!==e&&qW(i,o)&&n.push(i),VW(i,o)?n:r(i.parentNode)}return e?r(e):n}function w6(e){const[t]=v1(e,1);return t??null}function Mm(e){return!_h||!e?null:Vs(e)?e:h1(e)?p1(e)||e===qs(e).scrollingElement?window:pu(e)?e:null:null}function _6(e){return Vs(e)?e.scrollX:e.scrollLeft}function C6(e){return Vs(e)?e.scrollY:e.scrollTop}function iv(e){return{x:_6(e),y:C6(e)}}var $n;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})($n||($n={}));function $6(e){return!_h||!e?!1:e===document.scrollingElement}function S6(e){const t={x:0,y:0},n=$6(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 YW={x:.2,y:.2};function GW(e,t,n,r,i){let{top:o,left:a,right:s,bottom:l}=n;r===void 0&&(r=10),i===void 0&&(i=YW);const{isTop:c,isBottom:u,isLeft:d,isRight:f}=S6(e),h={x:0,y:0},p={x:0,y:0},g={height:t.height*i.y,width:t.width*i.x};return!c&&o<=t.top+g.height?(h.y=$n.Backward,p.y=r*Math.abs((t.top+g.height-o)/g.height)):!u&&l>=t.bottom-g.height&&(h.y=$n.Forward,p.y=r*Math.abs((t.bottom-g.height-l)/g.height)),!f&&s>=t.right-g.width?(h.x=$n.Forward,p.x=r*Math.abs((t.right-g.width-s)/g.width)):!d&&a<=t.left+g.width&&(h.x=$n.Backward,p.x=r*Math.abs((t.left+g.width-a)/g.width)),{direction:h,speed:p}}function KW(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 T6(e){return e.reduce((t,n)=>ls(t,iv(n)),Ir)}function ZW(e){return e.reduce((t,n)=>t+_6(n),0)}function XW(e){return e.reduce((t,n)=>t+C6(n),0)}function QW(e,t){if(t===void 0&&(t=Ys),!e)return;const{top:n,left:r,bottom:i,right:o}=t(e);w6(e)&&(i<=0||o<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const JW=[["x",["left","right"],ZW],["y",["top","bottom"],XW]];class b1{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=v1(n),i=T6(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[o,a,s]of JW)for(const l of a)Object.defineProperty(this,l,{get:()=>{const c=s(r),u=i[o]-c;return this.rect[l]+u},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}let Gl=class{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 eU(e){const{EventTarget:t}=ir(e);return e instanceof t?e:qs(e)}function Am(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 pr;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(pr||(pr={}));function M2(e){e.preventDefault()}function tU(e){e.stopPropagation()}var Mt;(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"})(Mt||(Mt={}));const E6={start:[Mt.Space,Mt.Enter],cancel:[Mt.Esc],end:[Mt.Space,Mt.Enter,Mt.Tab]},nU=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Mt.Right:return{...n,x:n.x+25};case Mt.Left:return{...n,x:n.x-25};case Mt.Down:return{...n,y:n.y+25};case Mt.Up:return{...n,y:n.y-25}}};let y1=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 Gl(qs(n)),this.windowListeners=new Gl(ir(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(pr.Resize,this.handleCancel),this.windowListeners.add(pr.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(pr.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&QW(r),n(Ir)}handleKeyDown(t){if(g1(t)){const{active:n,context:r,options:i}=this.props,{keyboardCodes:o=E6,coordinateGetter:a=nU,scrollBehavior:s="smooth"}=i,{code:l}=t;if(o.end.includes(l)){this.handleEnd(t);return}if(o.cancel.includes(l)){this.handleCancel(t);return}const{collisionRect:c}=r.current,u=c?{x:c.left,y:c.top}:Ir;this.referenceCoordinates||(this.referenceCoordinates=u);const d=a(t,{active:n,context:r.current,currentCoordinates:u});if(d){const f=lf(d,u),h={x:0,y:0},{scrollableAncestors:p}=r.current;for(const g of p){const v=t.code,{isTop:x,isRight:_,isLeft:w,isBottom:$,maxScroll:b,minScroll:C}=S6(g),T=KW(g),k={x:Math.min(v===Mt.Right?T.right-T.width/2:T.right,Math.max(v===Mt.Right?T.left:T.left+T.width/2,d.x)),y:Math.min(v===Mt.Down?T.bottom-T.height/2:T.bottom,Math.max(v===Mt.Down?T.top:T.top+T.height/2,d.y))},O=v===Mt.Right&&!_||v===Mt.Left&&!w,j=v===Mt.Down&&!$||v===Mt.Up&&!x;if(O&&k.x!==d.x){const S=g.scrollLeft+f.x,E=v===Mt.Right&&S<=b.x||v===Mt.Left&&S>=C.x;if(E&&!f.y){g.scrollTo({left:S,behavior:s});return}E?h.x=g.scrollLeft-S:h.x=v===Mt.Right?g.scrollLeft-b.x:g.scrollLeft-C.x,h.x&&g.scrollBy({left:-h.x,behavior:s});break}else if(j&&k.y!==d.y){const S=g.scrollTop+f.y,E=v===Mt.Down&&S<=b.y||v===Mt.Up&&S>=C.y;if(E&&!f.x){g.scrollTo({top:S,behavior:s});return}E?h.y=g.scrollTop-S:h.y=v===Mt.Down?g.scrollTop-b.y:g.scrollTop-C.y,h.y&&g.scrollBy({top:-h.y,behavior:s});break}}this.handleMove(t,ls(lf(d,this.referenceCoordinates),h))}}}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()}};y1.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=E6,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 A2(e){return!!(e&&"distance"in e)}function R2(e){return!!(e&&"delay"in e)}class x1{constructor(t,n,r){var i;r===void 0&&(r=eU(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=qs(a),this.documentListeners=new Gl(this.document),this.listeners=new Gl(r),this.windowListeners=new Gl(ir(a)),this.initialCoordinates=(i=rv(o))!=null?i:Ir,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(pr.Resize,this.handleCancel),this.windowListeners.add(pr.DragStart,M2),this.windowListeners.add(pr.VisibilityChange,this.handleCancel),this.windowListeners.add(pr.ContextMenu,M2),this.documentListeners.add(pr.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(R2(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(A2(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(pr.Click,tU,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(pr.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 l=(n=rv(t))!=null?n:Ir,c=lf(i,l);if(!r&&s){if(A2(s)){if(s.tolerance!=null&&Am(c,s.tolerance))return this.handleCancel();if(Am(c,s.distance))return this.handleStart()}if(R2(s)&&Am(c,s.tolerance))return this.handleCancel();this.handlePending(s,c);return}t.cancelable&&t.preventDefault(),a(l)}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===Mt.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const rU={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};let k6=class extends x1{constructor(t){const{event:n}=t,r=qs(n.target);super(t,rU,r)}};k6.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 iU={move:{name:"mousemove"},end:{name:"mouseup"}};var ov;(function(e){e[e.RightClick=2]="RightClick"})(ov||(ov={}));let O6=class extends x1{constructor(t){super(t,iU,qs(t.event.target))}};O6.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===ov.RightClick?!1:(r==null||r({event:n}),!0)}}];const Rm={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};let M6=class extends x1{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(){}}};M6.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 Kl;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Kl||(Kl={}));var uf;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(uf||(uf={}));function oU(e){let{acceleration:t,activator:n=Kl.Pointer,canScroll:r,draggingRect:i,enabled:o,interval:a=5,order:s=uf.TreeOrder,pointerCoordinates:l,scrollableAncestors:c,scrollableAncestorRects:u,delta:d,threshold:f}=e;const h=sU({delta:d,disabled:!o}),[p,g]=vW(),v=m.useRef({x:0,y:0}),x=m.useRef({x:0,y:0}),_=m.useMemo(()=>{switch(n){case Kl.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case Kl.DraggableRect:return i}},[n,i,l]),w=m.useRef(null),$=m.useCallback(()=>{const C=w.current;if(!C)return;const T=v.current.x*x.current.x,k=v.current.y*x.current.y;C.scrollBy(T,k)},[]),b=m.useMemo(()=>s===uf.TreeOrder?[...c].reverse():c,[s,c]);m.useEffect(()=>{if(!o||!c.length||!_){g();return}for(const C of b){if((r==null?void 0:r(C))===!1)continue;const T=c.indexOf(C),k=u[T];if(!k)continue;const{direction:O,speed:j}=GW(C,k,_,t,f);for(const S of["x","y"])h[S][O[S]]||(j[S]=0,O[S]=0);if(j.x>0||j.y>0){g(),w.current=C,p($,a),v.current=j,x.current=O;return}}v.current={x:0,y:0},x.current={x:0,y:0},g()},[t,$,r,g,o,a,JSON.stringify(_),JSON.stringify(h),p,c,b,u,JSON.stringify(f)])}const aU={x:{[$n.Backward]:!1,[$n.Forward]:!1},y:{[$n.Backward]:!1,[$n.Forward]:!1}};function sU(e){let{delta:t,disabled:n}=e;const r=nv(t);return mu(i=>{if(n||!r||!i)return aU;const o={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[$n.Backward]:i.x[$n.Backward]||o.x===-1,[$n.Forward]:i.x[$n.Forward]||o.x===1},y:{[$n.Backward]:i.y[$n.Backward]||o.y===-1,[$n.Forward]:i.y[$n.Forward]||o.y===1}}},[n,t,r])}function lU(e,t){const n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return mu(i=>{var o;return t==null?null:(o=r??i)!=null?o:null},[r,t])}function cU(e,t){return m.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 Tc;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Tc||(Tc={}));var av;(function(e){e.Optimized="optimized"})(av||(av={}));const j2=new Map;function uU(e,t){let{dragging:n,dependencies:r,config:i}=t;const[o,a]=m.useState(null),{frequency:s,measure:l,strategy:c}=i,u=m.useRef(e),d=v(),f=$c(d),h=m.useCallback(function(x){x===void 0&&(x=[]),!f.current&&a(_=>_===null?x:_.concat(x.filter(w=>!_.includes(w))))},[f]),p=m.useRef(null),g=mu(x=>{if(d&&!n)return j2;if(!x||x===j2||u.current!==e||o!=null){const _=new Map;for(let w of e){if(!w)continue;if(o&&o.length>0&&!o.includes(w.id)&&w.rect.current){_.set(w.id,w.rect.current);continue}const $=w.node.current,b=$?new b1(l($),$):null;w.rect.current=b,b&&_.set(w.id,b)}return _}return x},[e,o,n,d,l]);return m.useEffect(()=>{u.current=e},[e]),m.useEffect(()=>{d||h()},[n,d]),m.useEffect(()=>{o&&o.length>0&&a(null)},[JSON.stringify(o)]),m.useEffect(()=>{d||typeof s!="number"||p.current!==null||(p.current=setTimeout(()=>{h(),p.current=null},s))},[s,d,h,...r]),{droppableRects:g,measureDroppableContainers:h,measuringScheduled:o!=null};function v(){switch(c){case Tc.Always:return!1;case Tc.BeforeDragging:return n;default:return!n}}}function A6(e,t){return mu(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function dU(e,t){return A6(e,t)}function fU(e){let{callback:t,disabled:n}=e;const r=m1(t),i=m.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:o}=window;return new o(r)},[r,n]);return m.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function Ch(e){let{callback:t,disabled:n}=e;const r=m1(t),i=m.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:o}=window;return new o(r)},[n]);return m.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function hU(e){return new b1(Ys(e),e)}function N2(e,t,n){t===void 0&&(t=hU);const[r,i]=m.useState(null);function o(){i(l=>{if(!e)return null;if(e.isConnected===!1){var c;return(c=l??n)!=null?c:null}const u=t(e);return JSON.stringify(l)===JSON.stringify(u)?l:u})}const a=fU({callback(l){if(e)for(const c of l){const{type:u,target:d}=c;if(u==="childList"&&d instanceof HTMLElement&&d.contains(e)){o();break}}}}),s=Ch({callback:o});return ni(()=>{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 pU(e){const t=A6(e);return x6(e,t)}const D2=[];function mU(e){const t=m.useRef(e),n=mu(r=>e?r&&r!==D2&&e&&t.current&&e.parentNode===t.current.parentNode?r:v1(e):D2,[e]);return m.useEffect(()=>{t.current=e},[e]),n}function gU(e){const[t,n]=m.useState(null),r=m.useRef(e),i=m.useCallback(o=>{const a=Mm(o.target);a&&n(s=>s?(s.set(a,iv(a)),new Map(s)):null)},[]);return m.useEffect(()=>{const o=r.current;if(e!==o){a(o);const s=e.map(l=>{const c=Mm(l);return c?(c.addEventListener("scroll",i,{passive:!0}),[c,iv(c)]):null}).filter(l=>l!=null);n(s.length?new Map(s):null),r.current=e}return()=>{a(e),a(o)};function a(s){s.forEach(l=>{const c=Mm(l);c==null||c.removeEventListener("scroll",i)})}},[i,e]),m.useMemo(()=>e.length?t?Array.from(t.values()).reduce((o,a)=>ls(o,a),Ir):T6(e):Ir,[e,t])}function I2(e,t){t===void 0&&(t=[]);const n=m.useRef(null);return m.useEffect(()=>{n.current=null},t),m.useEffect(()=>{const r=e!==Ir;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?lf(e,n.current):Ir}function vU(e){m.useEffect(()=>{if(!_h)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 bU(e,t){return m.useMemo(()=>e.reduce((n,r)=>{let{eventName:i,handler:o}=r;return n[i]=a=>{o(a,t)},n},{}),[e,t])}function R6(e){return m.useMemo(()=>e?HW(e):null,[e])}const P2=[];function yU(e,t){t===void 0&&(t=Ys);const[n]=e,r=R6(n?ir(n):null),[i,o]=m.useState(P2);function a(){o(()=>e.length?e.map(l=>$6(l)?r:new b1(t(l),l)):P2)}const s=Ch({callback:a});return ni(()=>{s==null||s.disconnect(),a(),e.forEach(l=>s==null?void 0:s.observe(l))},[e]),i}function xU(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return pu(t)?t:e}function wU(e){let{measure:t}=e;const[n,r]=m.useState(null),i=m.useCallback(c=>{for(const{target:u}of c)if(pu(u)){r(d=>{const f=t(u);return d?{...d,width:f.width,height:f.height}:f});break}},[t]),o=Ch({callback:i}),a=m.useCallback(c=>{const u=xU(c);o==null||o.disconnect(),u&&(o==null||o.observe(u)),r(u?t(u):null)},[t,o]),[s,l]=sf(a);return m.useMemo(()=>({nodeRef:s,rect:n,setRef:l}),[n,s,l])}const _U=[{sensor:k6,options:{}},{sensor:y1,options:{}}],CU={current:{}},$d={draggable:{measure:O2},droppable:{measure:O2,strategy:Tc.WhileDragging,frequency:av.Optimized},dragOverlay:{measure:Ys}};let Zl=class 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 $U={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Zl,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:cf},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:$d,measureDroppableContainers:cf,windowRect:null,measuringScheduled:!1},SU={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:cf,draggableNodes:new Map,over:null,measureDroppableContainers:cf},$h=m.createContext(SU),j6=m.createContext($U);function TU(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Zl}}}function EU(e,t){switch(t.type){case bn.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case bn.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 bn.DragEnd:case bn.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case bn.RegisterDroppable:{const{element:n}=t,{id:r}=n,i=new Zl(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case bn.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 Zl(e.droppable.containers);return a.set(n,{...o,disabled:i}),{...e,droppable:{...e.droppable,containers:a}}}case bn.UnregisterDroppable:{const{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const o=new Zl(e.droppable.containers);return o.delete(n),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function kU(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:i}=m.useContext($h),o=nv(r),a=nv(n==null?void 0:n.id);return m.useEffect(()=>{if(!t&&!r&&o&&a!=null){if(!g1(o)||document.activeElement===o.target)return;const s=i.get(a);if(!s)return;const{activatorNode:l,node:c}=s;if(!l.current&&!c.current)return;requestAnimationFrame(()=>{for(const u of[l.current,c.current]){if(!u)continue;const d=xW(u);if(d){d.focus();break}}})}},[r,t,i,a,o]),null}function OU(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((i,o)=>o({transform:i,...r}),n):n}function MU(e){return m.useMemo(()=>({draggable:{...$d.draggable,...e==null?void 0:e.draggable},droppable:{...$d.droppable,...e==null?void 0:e.droppable},dragOverlay:{...$d.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 AU(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e;const o=m.useRef(!1),{x:a,y:s}=typeof i=="boolean"?{x:i,y:i}:i;ni(()=>{if(!a&&!s||!t){o.current=!1;return}if(o.current||!r)return;const l=t==null?void 0:t.node.current;if(!l||l.isConnected===!1)return;const c=n(l),u=x6(c,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=w6(l);d&&d.scrollBy({top:u.y,left:u.x})}},[t,a,s,r,n])}const N6=m.createContext({...Ir,scaleX:1,scaleY:1});var Ji;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Ji||(Ji={}));const RU=m.memo(function(e){var t,n,r,i;let{id:o,accessibility:a,autoScroll:s=!0,children:l,sensors:c=_U,collisionDetection:u=PW,measuring:d,modifiers:f,...h}=e;const p=m.useReducer(EU,void 0,TU),[g,v]=p,[x,_]=TW(),[w,$]=m.useState(Ji.Uninitialized),b=w===Ji.Initialized,{draggable:{active:C,nodes:T,translate:k},droppable:{containers:O}}=g,j=C!=null?T.get(C):null,S=m.useRef({initial:null,translated:null}),E=m.useMemo(()=>{var Ke;return C!=null?{id:C,data:(Ke=j==null?void 0:j.data)!=null?Ke:CU,rect:S}:null},[C,j]),A=m.useRef(null),[D,R]=m.useState(null),[M,I]=m.useState(null),F=$c(h,Object.values(h)),U=gu("DndDescribedBy",o),P=m.useMemo(()=>O.getEnabled(),[O]),W=MU(d),{droppableRects:q,measureDroppableContainers:H,measuringScheduled:Y}=uU(P,{dragging:b,dependencies:[k.x,k.y],config:W.droppable}),G=lU(T,C),J=m.useMemo(()=>M?rv(M):null,[M]),ee=At(),z=dU(G,W.draggable.measure);AU({activeNode:C!=null?T.get(C):null,config:ee.layoutShiftCompensation,initialRect:z,measure:W.draggable.measure});const L=N2(G,W.draggable.measure,z),B=N2(G?G.parentElement:null),V=m.useRef({activatorEvent:null,active:null,activeNode:G,collisionRect:null,collisions:null,droppableRects:q,draggableNodes:T,draggingNode:null,draggingNodeRect:null,droppableContainers:O,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),N=O.getNodeFor((t=V.current.over)==null?void 0:t.id),X=wU({measure:W.dragOverlay.measure}),Q=(n=X.nodeRef.current)!=null?n:G,Z=b?(r=X.rect)!=null?r:L:null,le=!!(X.nodeRef.current&&X.rect),te=pU(le?null:L),re=R6(Q?ir(Q):null),se=mU(b?N??G:null),fe=yU(se),xe=OU(f,{transform:{x:k.x-te.x,y:k.y-te.y,scaleX:1,scaleY:1},activatorEvent:M,active:E,activeNodeRect:L,containerNodeRect:B,draggingNodeRect:Z,over:V.current.over,overlayNodeRect:X.rect,scrollableAncestors:se,scrollableAncestorRects:fe,windowRect:re}),ve=J?ls(J,k):null,be=gU(se),Te=I2(be),ce=I2(be,[L]),ae=ls(xe,Te),ye=Z?BW(Z,xe):null,De=E&&ye?u({active:E,collisionRect:ye,droppableRects:q,droppableContainers:P,pointerCoordinates:ve}):null,Bt=NW(De,"id"),[Fe,gt]=m.useState(null),_t=le?xe:ls(xe,ce),nn=LW(_t,(i=Fe==null?void 0:Fe.rect)!=null?i:null,L),Ee=m.useRef(null),je=m.useCallback((Ke,Ie)=>{let{sensor:We,options:Qe}=Ie;if(A.current==null)return;const Pe=T.get(A.current);if(!Pe)return;const Je=Ke.nativeEvent,ht=new We({active:A.current,activeNode:Pe,event:Je,options:Qe,context:V,onAbort(Ne){if(!T.get(Ne))return;const{onDragAbort:ke}=F.current,He={id:Ne};ke==null||ke(He),x({type:"onDragAbort",event:He})},onPending(Ne,ke,He,yt){if(!T.get(Ne))return;const{onDragPending:et}=F.current,pt={id:Ne,constraint:ke,initialCoordinates:He,offset:yt};et==null||et(pt),x({type:"onDragPending",event:pt})},onStart(Ne){const ke=A.current;if(ke==null)return;const He=T.get(ke);if(!He)return;const{onDragStart:yt}=F.current,et={activatorEvent:Je,active:{id:ke,data:He.data,rect:S}};mn.unstable_batchedUpdates(()=>{yt==null||yt(et),$(Ji.Initializing),v({type:bn.DragStart,initialCoordinates:Ne,active:ke}),x({type:"onDragStart",event:et}),R(Ee.current),I(Je)})},onMove(Ne){v({type:bn.DragMove,coordinates:Ne})},onEnd:nt(bn.DragEnd),onCancel:nt(bn.DragCancel)});Ee.current=ht;function nt(Ne){return async function(){const{active:ke,collisions:He,over:yt,scrollAdjustedTranslate:et}=V.current;let pt=null;if(ke&&et){const{cancelDrop:tn}=F.current;pt={activatorEvent:Je,active:ke,collisions:He,delta:et,over:yt},Ne===bn.DragEnd&&typeof tn=="function"&&await Promise.resolve(tn(pt))&&(Ne=bn.DragCancel)}A.current=null,mn.unstable_batchedUpdates(()=>{v({type:Ne}),$(Ji.Uninitialized),gt(null),R(null),I(null),Ee.current=null;const tn=Ne===bn.DragEnd?"onDragEnd":"onDragCancel";if(pt){const zt=F.current[tn];zt==null||zt(pt),x({type:tn,event:pt})}})}}},[T]),vt=m.useCallback((Ke,Ie)=>(We,Qe)=>{const Pe=We.nativeEvent,Je=T.get(Qe);if(A.current!==null||!Je||Pe.dndKit||Pe.defaultPrevented)return;const ht={active:Je};Ke(We,Ie.options,ht)===!0&&(Pe.dndKit={capturedBy:Ie.sensor},A.current=Qe,je(We,Ie))},[T,je]),qe=cU(c,vt);vU(c),ni(()=>{L&&w===Ji.Initializing&&$(Ji.Initialized)},[L,w]),m.useEffect(()=>{const{onDragMove:Ke}=F.current,{active:Ie,activatorEvent:We,collisions:Qe,over:Pe}=V.current;if(!Ie||!We)return;const Je={active:Ie,activatorEvent:We,collisions:Qe,delta:{x:ae.x,y:ae.y},over:Pe};mn.unstable_batchedUpdates(()=>{Ke==null||Ke(Je),x({type:"onDragMove",event:Je})})},[ae.x,ae.y]),m.useEffect(()=>{const{active:Ke,activatorEvent:Ie,collisions:We,droppableContainers:Qe,scrollAdjustedTranslate:Pe}=V.current;if(!Ke||A.current==null||!Ie||!Pe)return;const{onDragOver:Je}=F.current,ht=Qe.get(Bt),nt=ht&&ht.rect.current?{id:ht.id,rect:ht.rect.current,data:ht.data,disabled:ht.disabled}:null,Ne={active:Ke,activatorEvent:Ie,collisions:We,delta:{x:Pe.x,y:Pe.y},over:nt};mn.unstable_batchedUpdates(()=>{gt(nt),Je==null||Je(Ne),x({type:"onDragOver",event:Ne})})},[Bt]),ni(()=>{V.current={activatorEvent:M,active:E,activeNode:G,collisionRect:ye,collisions:De,droppableRects:q,draggableNodes:T,draggingNode:Q,draggingNodeRect:Z,droppableContainers:O,over:Fe,scrollableAncestors:se,scrollAdjustedTranslate:ae},S.current={initial:Z,translated:ye}},[E,G,De,ye,T,Q,Z,q,O,Fe,se,ae]),oU({...ee,delta:k,draggingRect:ye,pointerCoordinates:ve,scrollableAncestors:se,scrollableAncestorRects:fe});const bt=m.useMemo(()=>({active:E,activeNode:G,activeNodeRect:L,activatorEvent:M,collisions:De,containerNodeRect:B,dragOverlay:X,draggableNodes:T,droppableContainers:O,droppableRects:q,over:Fe,measureDroppableContainers:H,scrollableAncestors:se,scrollableAncestorRects:fe,measuringConfiguration:W,measuringScheduled:Y,windowRect:re}),[E,G,L,M,De,B,X,T,O,q,Fe,H,se,fe,W,Y,re]),at=m.useMemo(()=>({activatorEvent:M,activators:qe,active:E,activeNodeRect:L,ariaDescribedById:{draggable:U},dispatch:v,draggableNodes:T,over:Fe,measureDroppableContainers:H}),[M,qe,E,L,v,U,T,Fe,H]);return m.createElement(y6.Provider,{value:_},m.createElement($h.Provider,{value:at},m.createElement(j6.Provider,{value:bt},m.createElement(N6.Provider,{value:nn},l)),m.createElement(kU,{disabled:(a==null?void 0:a.restoreFocus)===!1})),m.createElement(OW,{...a,hiddenTextDescribedById:U}));function At(){const Ke=(D==null?void 0:D.autoScrollEnabled)===!1,Ie=typeof s=="object"?s.enabled===!1:s===!1,We=b&&!Ke&&!Ie;return typeof s=="object"?{...s,enabled:We}:{enabled:We}}}),jU=m.createContext(null),L2="button",NU="Draggable";function DU(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e;const o=gu(NU),{activators:a,activatorEvent:s,active:l,activeNodeRect:c,ariaDescribedById:u,draggableNodes:d,over:f}=m.useContext($h),{role:h=L2,roleDescription:p="draggable",tabIndex:g=0}=i??{},v=(l==null?void 0:l.id)===t,x=m.useContext(v?N6:jU),[_,w]=sf(),[$,b]=sf(),C=bU(a,t),T=$c(n);ni(()=>(d.set(t,{id:t,key:o,node:_,activatorNode:$,data:T}),()=>{const O=d.get(t);O&&O.key===o&&d.delete(t)}),[d,t]);const k=m.useMemo(()=>({role:h,tabIndex:g,"aria-disabled":r,"aria-pressed":v&&h===L2?!0:void 0,"aria-roledescription":p,"aria-describedby":u.draggable}),[r,h,g,v,p,u.draggable]);return{active:l,activatorEvent:s,activeNodeRect:c,attributes:k,isDragging:v,listeners:r?void 0:C,node:_,over:f,setNodeRef:w,setActivatorNodeRef:b,transform:x}}function IU(){return m.useContext(j6)}const PU="Droppable",LU={timeout:25};function FU(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e;const o=gu(PU),{active:a,dispatch:s,over:l,measureDroppableContainers:c}=m.useContext($h),u=m.useRef({disabled:n}),d=m.useRef(!1),f=m.useRef(null),h=m.useRef(null),{disabled:p,updateMeasurementsFor:g,timeout:v}={...LU,...i},x=$c(g??r),_=m.useCallback(()=>{if(!d.current){d.current=!0;return}h.current!=null&&clearTimeout(h.current),h.current=setTimeout(()=>{c(Array.isArray(x.current)?x.current:[x.current]),h.current=null},v)},[v]),w=Ch({callback:_,disabled:p||!a}),$=m.useCallback((k,O)=>{w&&(O&&(w.unobserve(O),d.current=!1),k&&w.observe(k))},[w]),[b,C]=sf($),T=$c(t);return m.useEffect(()=>{!w||!b.current||(w.disconnect(),d.current=!1,w.observe(b.current))},[b,w]),m.useEffect(()=>(s({type:bn.RegisterDroppable,element:{id:r,key:o,disabled:n,node:b,rect:f,data:T}}),()=>s({type:bn.UnregisterDroppable,key:o,id:r})),[r]),m.useEffect(()=>{n!==u.current.disabled&&(s({type:bn.SetDroppableDisabled,id:r,key:o,disabled:n}),u.current.disabled=n)},[r,o,n,s]),{active:a,rect:f,isOver:(l==null?void 0:l.id)===r,node:b,over:l,setNodeRef:C}}function w1(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function BU(e,t){return e.reduce((n,r,i)=>{const o=t.get(r);return o&&(n[i]=o),n},Array(e.length))}function Xu(e){return e!==null&&e>=0}function zU(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 WU(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const Qu={scaleX:1,scaleY:1},UU=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 l=HU(n,a,i);if(a===i){const c=n[o];return c?{x:i<o?c.left+c.width-(s.left+s.width):c.left-s.left,y:0,...Qu}:null}return a>i&&a<=o?{x:-s.width-l,y:0,...Qu}:a<i&&a>=o?{x:s.width+l,y:0,...Qu}:{x:0,y:0,...Qu}};function HU(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 D6=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e;const o=w1(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}},I6="Sortable",P6=m.createContext({activeIndex:-1,containerId:I6,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:D6,disabled:{draggable:!1,droppable:!1}});function VU(e){let{children:t,id:n,items:r,strategy:i=D6,disabled:o=!1}=e;const{active:a,dragOverlay:s,droppableRects:l,over:c,measureDroppableContainers:u}=IU(),d=gu(I6,n),f=s.rect!==null,h=m.useMemo(()=>r.map(C=>typeof C=="object"&&"id"in C?C.id:C),[r]),p=a!=null,g=a?h.indexOf(a.id):-1,v=c?h.indexOf(c.id):-1,x=m.useRef(h),_=!zU(h,x.current),w=v!==-1&&g===-1||_,$=WU(o);ni(()=>{_&&p&&u(h)},[_,h,p,u]),m.useEffect(()=>{x.current=h},[h]);const b=m.useMemo(()=>({activeIndex:g,containerId:d,disabled:$,disableTransforms:w,items:h,overIndex:v,useDragOverlay:f,sortedRects:BU(h,l),strategy:i}),[g,d,$.draggable,$.droppable,w,h,v,l,f,i]);return m.createElement(P6.Provider,{value:b},t)}const qU=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return w1(n,r,i).indexOf(t)},YU=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:i,items:o,newIndex:a,previousItems:s,previousContainerId:l,transition:c}=e;return!c||!r||s!==o&&i===a?!1:n?!0:a!==i&&t===l},GU={duration:200,easing:"ease"},L6="transform",KU=Sc.Transition.toString({property:L6,duration:0,easing:"linear"}),ZU={roleDescription:"sortable"};function XU(e){let{disabled:t,index:n,node:r,rect:i}=e;const[o,a]=m.useState(null),s=m.useRef(n);return ni(()=>{if(!t&&n!==s.current&&r.current){const l=i.current;if(l){const c=Ys(r.current,{ignoreTransform:!0}),u={x:l.left-c.left,y:l.top-c.top,scaleX:l.width/c.width,scaleY:l.height/c.height};(u.x||u.y)&&a(u)}}n!==s.current&&(s.current=n)},[t,n,r,i]),m.useEffect(()=>{o&&a(null)},[o]),o}function QU(e){let{animateLayoutChanges:t=YU,attributes:n,disabled:r,data:i,getNewIndex:o=qU,id:a,strategy:s,resizeObserverConfig:l,transition:c=GU}=e;const{items:u,containerId:d,activeIndex:f,disabled:h,disableTransforms:p,sortedRects:g,overIndex:v,useDragOverlay:x,strategy:_}=m.useContext(P6),w=JU(r,h),$=u.indexOf(a),b=m.useMemo(()=>({sortable:{containerId:d,index:$,items:u},...i}),[d,i,$,u]),C=m.useMemo(()=>u.slice(u.indexOf(a)),[u,a]),{rect:T,node:k,isOver:O,setNodeRef:j}=FU({id:a,data:b,disabled:w.droppable,resizeObserverConfig:{updateMeasurementsFor:C,...l}}),{active:S,activatorEvent:E,activeNodeRect:A,attributes:D,setNodeRef:R,listeners:M,isDragging:I,over:F,setActivatorNodeRef:U,transform:P}=DU({id:a,data:b,attributes:{...ZU,...n},disabled:w.draggable}),W=gW(j,R),q=!!S,H=q&&!p&&Xu(f)&&Xu(v),Y=!x&&I,G=Y&&H?P:null,J=H?G??(s??_)({rects:g,activeNodeRect:A,activeIndex:f,overIndex:v,index:$}):null,ee=Xu(f)&&Xu(v)?o({id:a,items:u,activeIndex:f,overIndex:v}):$,z=S==null?void 0:S.id,L=m.useRef({activeId:z,items:u,newIndex:ee,containerId:d}),B=u!==L.current.items,V=t({active:S,containerId:d,isDragging:I,isSorting:q,id:a,index:$,items:u,newIndex:L.current.newIndex,previousItems:L.current.items,previousContainerId:L.current.containerId,transition:c,wasDragging:L.current.activeId!=null}),N=XU({disabled:!V,index:$,node:k,rect:T});return m.useEffect(()=>{q&&L.current.newIndex!==ee&&(L.current.newIndex=ee),d!==L.current.containerId&&(L.current.containerId=d),u!==L.current.items&&(L.current.items=u)},[q,ee,d,u]),m.useEffect(()=>{if(z===L.current.activeId)return;if(z!=null&&L.current.activeId==null){L.current.activeId=z;return}const Q=setTimeout(()=>{L.current.activeId=z},50);return()=>clearTimeout(Q)},[z]),{active:S,activeIndex:f,attributes:D,data:b,rect:T,index:$,newIndex:ee,items:u,isOver:O,isSorting:q,isDragging:I,listeners:M,node:k,overIndex:v,over:F,setNodeRef:W,setActivatorNodeRef:U,setDroppableNodeRef:j,setDraggableNodeRef:R,transform:N??J,transition:X()};function X(){if(N||B&&L.current.newIndex===$)return KU;if(!(Y&&!g1(E)||!c)&&(q||V))return Sc.Transition.toString({...c,property:L6})}}function JU(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}}Mt.Down,Mt.Right,Mt.Up,Mt.Left;const eH="_table-scroll-container_8x5tv_1",tH="_full-screen_8x5tv_8",nH="_table_8x5tv_1",rH="_thead_8x5tv_24",iH="_tbody_8x5tv_25",oH="_th_8x5tv_24",aH="_pinned_8x5tv_38",sH="_sorted_8x5tv_41",lH="_resizer_8x5tv_44",cH="_resizer-bar_8x5tv_58",uH="_reorder-handle_8x5tv_64",dH="_dragging_8x5tv_69",fH="_row-selection-info_8x5tv_73",hH="_tr_8x5tv_77",pH="_td_8x5tv_85",mH="_left_8x5tv_102",gH="_center_8x5tv_106",vH="_right_8x5tv_110",bH="_first-right_8x5tv_119",yH="_grouped_8x5tv_127",xH="_expanded_8x5tv_131",wH="_selected-cell_8x5tv_135",_H="_sm_8x5tv_139",CH="_lg_8x5tv_144",$H="_clickable_8x5tv_149",SH="_cell-selected-row_8x5tv_152",TH="_cell-selection-disabled_8x5tv_160",EH="_own-click_8x5tv_179",kH="_expander-button_8x5tv_185",OH="_empty-table-alert_8x5tv_190",MH="_remove-filters-button-wrapper_8x5tv_198",AH="_remove-filters-button_8x5tv_198",RH="_bottom-bar_8x5tv_228",jH="_left-items_8x5tv_244",NH="_pagination_8x5tv_250",DH="_page-info-text_8x5tv_256",IH="_right-items_8x5tv_262",PH="_sizing-toggle_8x5tv_268",LH="_sizing-menu_8x5tv_283",FH="_sizing-menu-item_8x5tv_287",Ve={tableScrollContainer:eH,fullScreen:tH,table:nH,thead:rH,tbody:iH,th:oH,pinned:aH,sorted:sH,resizer:lH,resizerBar:cH,reorderHandle:uH,dragging:dH,rowSelectionInfo:fH,tr:hH,td:pH,left:mH,center:gH,right:vH,firstRight:bH,grouped:yH,expanded:xH,selectedCell:wH,sm:_H,lg:CH,clickable:$H,cellSelectedRow:SH,cellSelectionDisabled:TH,ownClick:EH,expanderButton:kH,emptyTableAlert:OH,removeFiltersButtonWrapper:MH,removeFiltersButton:AH,bottomBar:RH,leftItems:jH,pagination:NH,pageInfoText:DH,rightItems:IH,sizingToggle:PH,sizingMenu:LH,sizingMenuItem:FH},BH="_column-menu_1r3rf_1",zH="_column-menu-item_1r3rf_5",Ju={columnMenu:BH,columnMenuItem:zH},WH=({header:e,table:t,className:n,IconComponent:r,texts:i,columnMenuPos:o,onColumnMenu:a,dragEnabled:s,style:l})=>{var k,O;const{attributes:c,listeners:u,setNodeRef:d,transform:f,isDragging:h}=QU({id:e.id,disabled:!s}),p={...l??{},flex:`${e.column.getSize()} 1 0`,minWidth:e.column.getSize(),...s?{transform:Sc.Translate.toString(f)}:{}},g=j=>j.column.getCanSort()?"button":void 0,v=j=>{const S=j.column.getIsSorted(),E=j.column.getIsGrouped();return me("th",Ve.th,{sorted:S,[Ve.sorted]:S},{grouped:E,[Ve.grouped]:E})},x=j=>{const S=j.column.getCanSort();return me("d-flex flex-row align-items-center justify-content-between",{"cursor-pointer":S})},_=j=>{j.preventDefault(),a({id:e.id,x:j.clientX,y:j.clientY})},w=()=>a(null),$=(o==null?void 0:o.id)===e.id,b=e.column.getIsPinned(),C=e.column.getIsGrouped(),T=(O=(k=e.column.columnDef)==null?void 0:k.meta)==null?void 0:O.alwaysPinned;return y.jsxs("div",{className:me(n,v(e.getContext())),ref:d,style:p,onContextMenu:_,children:[y.jsx(Rn,{autoClose:!0,show:$,onToggle:j=>!j&&w(),children:mn.createPortal(y.jsxs(Rn.Menu,{show:!0,className:me("shadow-lg column-menu",Ju.columnMenu),style:{position:"fixed",top:$?o.y??0:0,left:$?o.x??0:0,zIndex:9999,display:$?"block":"none"},onClick:w,children:[b!=="right"&&e.column.getCanPin()&&!T?y.jsx(Rn.Item,{className:me(Ju.columnMenuItem,{"text-danger":b}),onClick:()=>e.column.pin(b==="left"?!1:"left"),children:b==="left"?i.columnUnpin:i.columnPinLeft}):null,b!=="left"&&e.column.getCanPin()&&!T?y.jsx(Rn.Item,{className:me(Ju.columnMenuItem,{"text-danger":b}),onClick:()=>e.column.pin(b==="right"?!1:"right"),children:b==="right"?i.columnUnpin:i.columnPinRight}):null,e.column.getCanGroup()?y.jsx(Rn.Item,{className:me(Ju.columnMenuItem,{"text-danger":C}),onClick:e.column.getToggleGroupingHandler(),children:C?i.columnUngroup:i.columnGroup}):null]}),document.body)}),e.isPlaceholder?null:y.jsxs("div",{children:[y.jsxs("div",{className:x(e.getContext()),role:g(e.getContext()),onClick:e.column.getToggleSortingHandler(),children:[y.jsxs("div",{className:"d-flex flex-row align-items-center gap-1",children:[s?y.jsx("div",{...u,...c,className:me("reorder-handle",Ve.reorderHandle,{dragging:h,[Ve.dragging]:h}),children:y.jsx(r,{icon:"drag-handle"})}):null,g6(e.column.columnDef.header,e.getContext())]}),e.column.getCanSort()&&e.column.getIsSorted()?y.jsx(r,{icon:`sort-${e.column.getIsSorted()||"asc"}`}):null]}),e.column.getCanFilter()?y.jsx(dW,{column:e.column,IconComponent:r,texts:i}):e.column.id==="select-col"?y.jsx("div",{className:me("row-selection-info",Ve.rowSelectionInfo),children:`[${Object.values(t.getState().rowSelection).filter(Boolean).length}]`}):null]}),e.column.getCanResize()?y.jsx("div",{onDoubleClick:()=>e.column.resetSize(),onMouseDown:e.getResizeHandler(),onTouchStart:e.getResizeHandler(),className:me("resizer",Ve.resizer,e.column.getIsResizing()?"isResizing":"",e.column.getIsResizing()?Ve.isResizing:""),style:{transform:t.options.columnResizeMode==="onEnd"&&e.column.getIsResizing()?`translateX(${(t.options.columnResizeDirection==="rtl"?-1:1)*(t.getState().columnSizingInfo.deltaOffset??0)}px)`:""},children:y.jsx("div",{className:me("resizer-bar",Ve.resizerBar)})}):null]})},UH="_icon-button_1nuxt_1",HH="_sm_1nuxt_34",VH="_lg_1nuxt_47",ed={"icon-button":"_icon-button_1nuxt_1",iconButton:UH,sm:HH,lg:VH},vi=({onClick:e,color:t="primary",disabled:n,children:r,size:i,className:o,...a})=>y.jsx("button",{"aria-disabled":n,className:me(o,"icon-button",ed.iconButton,ed[t],{"text-primary":!n&&t==="primary","text-secondary":n||t==="secondary","text-danger":!n&&t==="danger","text-success":!n&&t==="success"},{[ed.sm]:i==="sm",[ed.lg]:i==="lg"}),disabled:n,type:"button",onClick:e,...a,children:r}),qH=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:m.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 m.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},F2=({onClick:e,variant:t="primary",disabled:n,children:r,size:i,...o})=>y.jsx(r1,{disabled:n,size:i,variant:t,onClick:e,...o,children:r});function sv(e,t){return sv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},sv(e,t)}function YH(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,sv(e,t)}function GH(e){var t=cu(e);return t&&t.defaultView||window}function KH(e,t){return GH(e).getComputedStyle(e,t)}var ZH=/([A-Z])/g;function XH(e){return e.replace(ZH,"-$1").toLowerCase()}var QH=/^ms-/;function td(e){return XH(e).replace(QH,"-ms-")}var JH=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function eV(e){return!!(e&&JH.test(e))}function ki(e,t){var n="",r="";if(typeof t=="string")return e.style.getPropertyValue(td(t))||KH(e).getPropertyValue(td(t));Object.keys(t).forEach(function(i){var o=t[i];!o&&o!==0?e.style.removeProperty(td(i)):eV(i)?r+=i+"("+o+") ":n+=td(i)+": "+o+";"}),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n}const B2={disabled:!1};var tV=process.env.NODE_ENV!=="production"?Ye.oneOfType([Ye.number,Ye.shape({enter:Ye.number,exit:Ye.number,appear:Ye.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&Ye.oneOfType([Ye.string,Ye.shape({enter:Ye.string,exit:Ye.string,active:Ye.string}),Ye.shape({enter:Ye.string,enterDone:Ye.string,enterActive:Ye.string,exit:Ye.string,exitDone:Ye.string,exitActive:Ye.string})]);const F6=m.createContext(null);var nV=function(e){return e.scrollTop},Fl="unmounted",eo="exited",Ci="entering",io="entered",df="exiting",zi=function(e){YH(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,l;return o.appearStatus=null,r.in?s?(l=eo,o.appearStatus=Ci):l=io:r.unmountOnExit||r.mountOnEnter?l=Fl:l=eo,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(r,i){var o=r.in;return o&&i.status===Fl?{status:eo}: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!==Ci&&o!==io&&(i=Ci):(o===Ci||o===io)&&(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===Ci){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:mn.findDOMNode(this);o&&nV(o)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===eo&&this.setState({status:Fl})},n.performEnter=function(r){var i=this,o=this.props.enter,a=this.context?this.context.isMounting:r,s=this.props.nodeRef?[a]:[mn.findDOMNode(this),a],l=s[0],c=s[1],u=this.getTimeouts(),d=a?u.appear:u.enter;if(!r&&!o||B2.disabled){this.safeSetState({status:io},function(){i.props.onEntered(l)});return}this.props.onEnter(l,c),this.safeSetState({status:Ci},function(){i.props.onEntering(l,c),i.onTransitionEnd(d,function(){i.safeSetState({status:io},function(){i.props.onEntered(l,c)})})})},n.performExit=function(){var r=this,i=this.props.exit,o=this.getTimeouts(),a=this.props.nodeRef?void 0:mn.findDOMNode(this);if(!i||B2.disabled){this.safeSetState({status:eo},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:eo},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:mn.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],l=s[0],c=s[1];this.props.addEndListener(l,c)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===Fl)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=DS(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return m.createElement(F6.Provider,{value:null},typeof o=="function"?o(r,a):m.cloneElement(m.Children.only(o),a))},t}(m.Component);zi.contextType=F6;zi.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:Ye.shape({current:typeof Element>"u"?Ye.any:function(e,t,n,r,i,o){var a=e[t];return Ye.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,i,o)}}),children:Ye.oneOfType([Ye.func.isRequired,Ye.element.isRequired]).isRequired,in:Ye.bool,mountOnEnter:Ye.bool,unmountOnExit:Ye.bool,appear:Ye.bool,enter:Ye.bool,exit:Ye.bool,timeout:function(e){var t=tV;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:Ye.func,onEnter:Ye.func,onEntering:Ye.func,onEntered:Ye.func,onExit:Ye.func,onExiting:Ye.func,onExited:Ye.func}:{};function Wa(){}zi.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Wa,onEntering:Wa,onEntered:Wa,onExit:Wa,onExiting:Wa,onExited:Wa};zi.UNMOUNTED=Fl;zi.EXITED=eo;zi.ENTERING=Ci;zi.ENTERED=io;zi.EXITING=df;function rV(e){return e.code==="Escape"||e.keyCode===27}function iV(){const e=ie.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}function vu(e){if(!e||typeof e=="function")return null;const{major:t}=iV();return t>=19?e.props.ref:e.ref}function oV(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 aV(e){var t=ki(e,"transitionDuration")||"",n=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*n}function sV(e,t,n){n===void 0&&(n=5);var r=!1,i=setTimeout(function(){r||oV(e,"transitionend",!0)},t+n),o=oo(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(i),o()}}function B6(e,t,n,r){n==null&&(n=aV(e)||0);var i=sV(e,n,r),o=oo(e,"transitionend",t);return function(){i(),o()}}function z2(e,t){const n=ki(e,t)||"",r=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*r}function z6(e,t){const n=z2(e,"transitionDuration"),r=z2(e,"transitionDelay"),i=B6(e,o=>{o.target===e&&(i(),t(o))},n+r)}function _l(...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 W6(e){e.offsetHeight}function lV(e){return e&&"setState"in e?mn.findDOMNode(e):e??null}const _1=m.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:i,onExited:o,addEndListener:a,children:s,childRef:l,...c},u)=>{const d=m.useRef(null),f=uu(d,l),h=C=>{f(lV(C))},p=C=>T=>{C&&d.current&&C(d.current,T)},g=m.useCallback(p(e),[e]),v=m.useCallback(p(t),[t]),x=m.useCallback(p(n),[n]),_=m.useCallback(p(r),[r]),w=m.useCallback(p(i),[i]),$=m.useCallback(p(o),[o]),b=m.useCallback(p(a),[a]);return y.jsx(zi,{ref:u,...c,onEnter:g,onEntered:x,onEntering:v,onExit:_,onExited:$,onExiting:w,addEndListener:b,nodeRef:d,children:typeof s=="function"?(C,T)=>s(C,{...T,ref:h}):m.cloneElement(s,{ref:h})})});_1.displayName="TransitionWrapper";const cV={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function uV(e,t){const n=`offset${e[0].toUpperCase()}${e.slice(1)}`,r=t[n],i=cV[e];return r+parseInt(ki(t,i[0]),10)+parseInt(ki(t,i[1]),10)}const dV={[eo]:"collapse",[df]:"collapsing",[Ci]:"collapsing",[io]:"collapse show"},U6=m.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:i,className:o,children:a,dimension:s="height",in:l=!1,timeout:c=300,mountOnEnter:u=!1,unmountOnExit:d=!1,appear:f=!1,getDimensionValue:h=uV,...p},g)=>{const v=typeof s=="function"?s():s,x=m.useMemo(()=>_l(C=>{C.style[v]="0"},e),[v,e]),_=m.useMemo(()=>_l(C=>{const T=`scroll${v[0].toUpperCase()}${v.slice(1)}`;C.style[v]=`${C[T]}px`},t),[v,t]),w=m.useMemo(()=>_l(C=>{C.style[v]=null},n),[v,n]),$=m.useMemo(()=>_l(C=>{C.style[v]=`${h(v,C)}px`,W6(C)},r),[r,h,v]),b=m.useMemo(()=>_l(C=>{C.style[v]=null},i),[v,i]);return y.jsx(_1,{ref:g,addEndListener:z6,...p,"aria-expanded":p.role?l:null,onEnter:x,onEntering:_,onEntered:w,onExit:$,onExiting:b,childRef:vu(a),in:l,timeout:c,mountOnEnter:u,unmountOnExit:d,appear:f,children:(C,T)=>m.cloneElement(a,{...T,className:me(o,a.props.className,dV[C],v==="width"&&"collapse-horizontal")})})});U6.displayName="Collapse";function H6(e,t){return Array.isArray(e)?e.includes(t):e===t}const bu=ie.createContext({});bu.displayName="AccordionContext";const C1=ie.forwardRef(({as:e="div",bsPrefix:t,className:n,children:r,eventKey:i,...o},a)=>{const{activeEventKey:s}=m.useContext(bu);return t=Et(t,"accordion-collapse"),y.jsx(U6,{ref:a,in:H6(s,i),...o,className:me(n,t),children:y.jsx(e,{children:ie.Children.only(r)})})});C1.displayName="AccordionCollapse";const Sh=ie.createContext({eventKey:""});Sh.displayName="AccordionItemContext";const V6=ie.forwardRef(({as:e="div",bsPrefix:t,className:n,onEnter:r,onEntering:i,onEntered:o,onExit:a,onExiting:s,onExited:l,...c},u)=>{t=Et(t,"accordion-body");const{eventKey:d}=m.useContext(Sh);return y.jsx(C1,{eventKey:d,onEnter:r,onEntering:i,onEntered:o,onExit:a,onExiting:s,onExited:l,children:y.jsx(e,{ref:u,...c,className:me(n,t)})})});V6.displayName="AccordionBody";function fV(e,t){const{activeEventKey:n,onSelect:r,alwaysOpen:i}=m.useContext(bu);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 $1=ie.forwardRef(({as:e="button",bsPrefix:t,className:n,onClick:r,...i},o)=>{t=Et(t,"accordion-button");const{eventKey:a}=m.useContext(Sh),s=fV(a,r),{activeEventKey:l}=m.useContext(bu);return e==="button"&&(i.type="button"),y.jsx(e,{ref:o,onClick:s,...i,"aria-expanded":Array.isArray(l)?l.includes(a):a===l,className:me(n,t,!H6(l,a)&&"collapsed")})});$1.displayName="AccordionButton";const q6=ie.forwardRef(({as:e="h2","aria-controls":t,bsPrefix:n,className:r,children:i,onClick:o,...a},s)=>(n=Et(n,"accordion-header"),y.jsx(e,{ref:s,...a,className:me(r,n),children:y.jsx($1,{onClick:o,"aria-controls":t,children:i})})));q6.displayName="AccordionHeader";const Y6=ie.forwardRef(({as:e="div",bsPrefix:t,className:n,eventKey:r,...i},o)=>{t=Et(t,"accordion-item");const a=m.useMemo(()=>({eventKey:r}),[r]);return y.jsx(Sh.Provider,{value:a,children:y.jsx(e,{ref:o,...i,className:me(n,t)})})});Y6.displayName="AccordionItem";const G6=ie.forwardRef((e,t)=>{const{as:n="div",activeKey:r,bsPrefix:i,className:o,onSelect:a,flush:s,alwaysOpen:l,...c}=IS(e,{activeKey:"onSelect"}),u=Et(i,"accordion"),d=m.useMemo(()=>({activeEventKey:r,onSelect:a,alwaysOpen:l}),[r,a,l]);return y.jsx(bu.Provider,{value:d,children:y.jsx(n,{ref:t,...c,className:me(o,u,s&&`${u}-flush`)})})});G6.displayName="Accordion";const Po=Object.assign(G6,{Button:$1,Collapse:C1,Item:Y6,Header:q6,Body:V6}),hV=e=>ie.forwardRef((t,n)=>y.jsx("div",{...t,ref:n,className:me(t.className,e)})),pV=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",mV=typeof document<"u",W2=mV||pV?m.useLayoutEffect:m.useEffect,gV={[Ci]:"show",[io]:"show"},S1=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=m.useCallback((l,c)=>{W6(l),r==null||r(l,c)},[r]);return y.jsx(_1,{ref:o,addEndListener:z6,...a,onEnter:s,childRef:vu(t),children:(l,c)=>ie.cloneElement(t,{...c,className:me("fade",e,t.props.className,gV[l],n[l])})})});S1.displayName="Fade";const vV={"aria-label":Ye.string,onClick:Ye.func,variant:Ye.oneOf(["white"])},T1=ie.forwardRef(({className:e,variant:t,"aria-label":n="Close",...r},i)=>y.jsx("button",{ref:i,type:"button",className:me("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r}));T1.displayName="CloseButton";T1.propTypes=vV;function bV(e){const t=m.useRef(e);return t.current=e,t}function yV(e){const t=bV(e);m.useEffect(()=>()=>t.current(),[])}const U2=e=>!e||typeof e=="function"?e:t=>{e.current=t};function xV(e,t){const n=U2(e),r=U2(t);return i=>{n&&n(i),r&&r(i)}}function E1(e,t){return m.useMemo(()=>xV(e,t),[e,t])}var nd;function H2(e){if((!nd&&nd!==0||e)&&Hs){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),nd=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return nd}function wV(){return m.useState(null)}function jm(e){e===void 0&&(e=cu());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function _V(e){const t=m.useRef(e);return t.current=e,t}function CV(e){const t=_V(e);m.useEffect(()=>()=>t.current(),[])}function $V(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const V2=t1("modal-open");let k1=class{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:r=!1}={}){this.handleContainerOverflow=n,this.isRTL=r,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return $V(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(ki(i,r)||"0",10)+t.scrollBarWidth}px`),i.setAttribute(V2,""),ki(i,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(V2),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 Nm=(e,t)=>Hs?e==null?(t||cu()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function SV(e,t){const n=yh(),[r,i]=m.useState(()=>Nm(e,n==null?void 0:n.document));if(!r){const o=Nm(e);o&&i(o)}return m.useEffect(()=>{},[t,r]),m.useEffect(()=>{const o=Nm(e);o!==r&&i(o)},[e,r]),r}function TV({children:e,in:t,onExited:n,mountOnEnter:r,unmountOnExit:i}){const o=m.useRef(null),a=m.useRef(t),s=Wn(n);m.useEffect(()=>{t?a.current=!0:s(o.current)},[t,s]);const l=E1(o,vu(e)),c=m.cloneElement(e,{ref:l});return t?c:i||!a.current&&r?null:c}const EV=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function kV(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 OV(e){let{onEnter:t,onEntering:n,onEntered:r,onExit:i,onExiting:o,onExited:a,addEndListener:s,children:l}=e,c=kV(e,EV);const u=m.useRef(null),d=E1(u,vu(l)),f=$=>b=>{$&&u.current&&$(u.current,b)},h=m.useCallback(f(t),[t]),p=m.useCallback(f(n),[n]),g=m.useCallback(f(r),[r]),v=m.useCallback(f(i),[i]),x=m.useCallback(f(o),[o]),_=m.useCallback(f(a),[a]),w=m.useCallback(f(s),[s]);return Object.assign({},c,{nodeRef:u},t&&{onEnter:h},n&&{onEntering:p},r&&{onEntered:g},i&&{onExit:v},o&&{onExiting:x},a&&{onExited:_},s&&{addEndListener:w},{children:typeof l=="function"?($,b)=>l($,Object.assign({},b,{ref:d})):m.cloneElement(l,{ref:d})})}const MV=["component"];function AV(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 RV=ie.forwardRef((e,t)=>{let{component:n}=e,r=AV(e,MV);const i=OV(r);return y.jsx(n,Object.assign({ref:t},i))});function jV({in:e,onTransition:t}){const n=m.useRef(null),r=m.useRef(!0),i=Wn(t);return W2(()=>{if(!n.current)return;let o=!1;return i({in:e,element:n.current,initial:r.current,isStale:()=>o}),()=>{o=!0}},[e,i]),W2(()=>(r.current=!1,()=>{r.current=!0}),[]),n}function NV({children:e,in:t,onExited:n,onEntered:r,transition:i}){const[o,a]=m.useState(!t);t&&o&&a(!1);const s=jV({in:!!t,onTransition:c=>{const u=()=>{c.isStale()||(c.in?r==null||r(c.element,c.initial):(a(!0),n==null||n(c.element)))};Promise.resolve(i(c)).then(u,d=>{throw c.in||a(!0),d})}}),l=E1(s,vu(e));return o&&!t?null:m.cloneElement(e,{ref:l})}function q2(e,t,n){return e?y.jsx(RV,Object.assign({},n,{component:e})):t?y.jsx(NV,Object.assign({},n,{transition:t})):y.jsx(TV,Object.assign({},n))}const DV=["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 IV(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 Dm;function PV(e){return Dm||(Dm=new k1({ownerDocument:e==null?void 0:e.document})),Dm}function LV(e){const t=yh(),n=e||PV(t),r=m.useRef({dialog:null,backdrop:null});return Object.assign(r.current,{add:()=>n.add(r.current),remove:()=>n.remove(r.current),isTopModal:()=>n.isTopModal(r.current),setDialogRef:m.useCallback(i=>{r.current.dialog=i},[]),setBackdropRef:m.useCallback(i=>{r.current.backdrop=i},[])})}const K6=m.forwardRef((e,t)=>{let{show:n=!1,role:r="dialog",className:i,style:o,children:a,backdrop:s=!0,keyboard:l=!0,onBackdropClick:c,onEscapeKeyDown:u,transition:d,runTransition:f,backdropTransition:h,runBackdropTransition:p,autoFocus:g=!0,enforceFocus:v=!0,restoreFocus:x=!0,restoreFocusOptions:_,renderDialog:w,renderBackdrop:$=Z=>y.jsx("div",Object.assign({},Z)),manager:b,container:C,onShow:T,onHide:k=()=>{},onExit:O,onExited:j,onExiting:S,onEnter:E,onEntering:A,onEntered:D}=e,R=IV(e,DV);const M=yh(),I=SV(C),F=LV(b),U=PS(),P=LS(n),[W,q]=m.useState(!n),H=m.useRef(null);m.useImperativeHandle(t,()=>F,[F]),Hs&&!P&&n&&(H.current=jm(M==null?void 0:M.document)),n&&W&&q(!1);const Y=Wn(()=>{if(F.add(),B.current=oo(document,"keydown",z),L.current=oo(document,"focus",()=>setTimeout(J),!0),T&&T(),g){var Z,le;const te=jm((Z=(le=F.dialog)==null?void 0:le.ownerDocument)!=null?Z:M==null?void 0:M.document);F.dialog&&te&&!rf(F.dialog,te)&&(H.current=te,F.dialog.focus())}}),G=Wn(()=>{if(F.remove(),B.current==null||B.current(),L.current==null||L.current(),x){var Z;(Z=H.current)==null||Z.focus==null||Z.focus(_),H.current=null}});m.useEffect(()=>{!n||!I||Y()},[n,I,Y]),m.useEffect(()=>{W&&G()},[W,G]),CV(()=>{G()});const J=Wn(()=>{if(!v||!U()||!F.isTopModal())return;const Z=jm(M==null?void 0:M.document);F.dialog&&Z&&!rf(F.dialog,Z)&&F.dialog.focus()}),ee=Wn(Z=>{Z.target===Z.currentTarget&&(c==null||c(Z),s===!0&&k())}),z=Wn(Z=>{l&&rV(Z)&&F.isTopModal()&&(u==null||u(Z),Z.defaultPrevented||k())}),L=m.useRef(),B=m.useRef(),V=(...Z)=>{q(!0),j==null||j(...Z)};if(!I)return null;const N=Object.assign({role:r,ref:F.setDialogRef,"aria-modal":r==="dialog"?!0:void 0},R,{style:o,className:i,tabIndex:-1});let X=w?w(N):y.jsx("div",Object.assign({},N,{children:ie.cloneElement(a,{role:"document"})}));X=q2(d,f,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:O,onExiting:S,onExited:V,onEnter:E,onEntering:A,onEntered:D,children:X});let Q=null;return s&&(Q=$({ref:F.setBackdropRef,onClick:ee}),Q=q2(h,p,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:Q})),y.jsx(y.Fragment,{children:mn.createPortal(y.jsxs(y.Fragment,{children:[Q,X]}),I)})});K6.displayName="Modal";const FV=Object.assign(K6,{Manager:k1});function BV(e,t){return e.classList?e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function zV(e,t){e.classList?e.classList.add(t):BV(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Y2(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function WV(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Y2(e.className,t):e.setAttribute("class",Y2(e.className&&e.className.baseVal||"",t))}const Ua={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class UV extends k1{adjustAndStore(t,n,r){const i=n.style[t];n.dataset[t]=i,ki(n,{[t]:`${parseFloat(ki(n,t))+r}px`})}restore(t,n){const r=n.dataset[t];r!==void 0&&(delete n.dataset[t],ki(n,{[t]:r}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(zV(n,"modal-open"),!t.scrollBarWidth)return;const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";Qi(n,Ua.FIXED_CONTENT).forEach(o=>this.adjustAndStore(r,o,t.scrollBarWidth)),Qi(n,Ua.STICKY_CONTENT).forEach(o=>this.adjustAndStore(i,o,-t.scrollBarWidth)),Qi(n,Ua.NAVBAR_TOGGLER).forEach(o=>this.adjustAndStore(i,o,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();WV(n,"modal-open");const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";Qi(n,Ua.FIXED_CONTENT).forEach(o=>this.restore(r,o)),Qi(n,Ua.STICKY_CONTENT).forEach(o=>this.restore(i,o)),Qi(n,Ua.NAVBAR_TOGGLER).forEach(o=>this.restore(i,o))}}let Im;function HV(e){return Im||(Im=new UV(e)),Im}const Z6=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=Et(t,"modal-body"),y.jsx(n,{ref:i,className:me(e,t),...r})));Z6.displayName="ModalBody";const X6=ie.createContext({onHide(){}}),O1=ie.forwardRef(({bsPrefix:e,className:t,contentClassName:n,centered:r,size:i,fullscreen:o,children:a,scrollable:s,...l},c)=>{e=Et(e,"modal");const u=`${e}-dialog`,d=typeof o=="string"?`${e}-fullscreen-${o}`:`${e}-fullscreen`;return y.jsx("div",{...l,ref:c,className:me(u,t,i&&`${e}-${i}`,r&&`${u}-centered`,s&&`${u}-scrollable`,o&&d),children:y.jsx("div",{className:me(`${e}-content`,n),children:a})})});O1.displayName="ModalDialog";const Q6=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=Et(t,"modal-footer"),y.jsx(n,{ref:i,className:me(e,t),...r})));Q6.displayName="ModalFooter";const J6=ie.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:r,children:i,...o},a)=>{const s=m.useContext(X6),l=nf(()=>{s==null||s.onHide(),r==null||r()});return y.jsxs("div",{ref:a,...o,children:[i,n&&y.jsx(T1,{"aria-label":e,variant:t,onClick:l})]})});J6.displayName="AbstractModalHeader";const eT=ie.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...i},o)=>(e=Et(e,"modal-header"),y.jsx(J6,{ref:o,...i,className:me(t,e),closeLabel:n,closeButton:r})));eT.displayName="ModalHeader";const VV=hV("h4"),tT=ie.forwardRef(({className:e,bsPrefix:t,as:n=VV,...r},i)=>(t=Et(t,"modal-title"),y.jsx(n,{ref:i,className:me(e,t),...r})));tT.displayName="ModalTitle";function qV(e){return y.jsx(S1,{...e,timeout:null})}function YV(e){return y.jsx(S1,{...e,timeout:null})}const nT=ie.forwardRef(({bsPrefix:e,className:t,style:n,dialogClassName:r,contentClassName:i,children:o,dialogAs:a=O1,"data-bs-theme":s,"aria-labelledby":l,"aria-describedby":c,"aria-label":u,show:d=!1,animation:f=!0,backdrop:h=!0,keyboard:p=!0,onEscapeKeyDown:g,onShow:v,onHide:x,container:_,autoFocus:w=!0,enforceFocus:$=!0,restoreFocus:b=!0,restoreFocusOptions:C,onEntered:T,onExit:k,onExiting:O,onEnter:j,onEntering:S,onExited:E,backdropClassName:A,manager:D,...R},M)=>{const[I,F]=m.useState({}),[U,P]=m.useState(!1),W=m.useRef(!1),q=m.useRef(!1),H=m.useRef(null),[Y,G]=wV(),J=uu(M,G),ee=nf(x),z=_S();e=Et(e,"modal");const L=m.useMemo(()=>({onHide:ee}),[ee]);function B(){return D||HV({isRTL:z})}function V(ae){if(!Hs)return;const ye=B().getScrollbarWidth()>0,De=ae.scrollHeight>cu(ae).documentElement.clientHeight;F({paddingRight:ye&&!De?H2():void 0,paddingLeft:!ye&&De?H2():void 0})}const N=nf(()=>{Y&&V(Y.dialog)});yV(()=>{Qg(window,"resize",N),H.current==null||H.current()});const X=()=>{W.current=!0},Q=ae=>{W.current&&Y&&ae.target===Y.dialog&&(q.current=!0),W.current=!1},Z=()=>{P(!0),H.current=B6(Y.dialog,()=>{P(!1)})},le=ae=>{ae.target===ae.currentTarget&&Z()},te=ae=>{if(h==="static"){le(ae);return}if(q.current||ae.target!==ae.currentTarget){q.current=!1;return}x==null||x()},re=ae=>{p?g==null||g(ae):(ae.preventDefault(),h==="static"&&Z())},se=(ae,ye)=>{ae&&V(ae),j==null||j(ae,ye)},fe=ae=>{H.current==null||H.current(),k==null||k(ae)},xe=(ae,ye)=>{S==null||S(ae,ye),e1(window,"resize",N)},ve=ae=>{ae&&(ae.style.display=""),E==null||E(ae),Qg(window,"resize",N)},be=m.useCallback(ae=>y.jsx("div",{...ae,className:me(`${e}-backdrop`,A,!f&&"show")}),[f,A,e]),Te={...n,...I};Te.display="block";const ce=ae=>y.jsx("div",{role:"dialog",...ae,style:Te,className:me(t,e,U&&`${e}-static`,!f&&"show"),onClick:h?te:void 0,onMouseUp:Q,"data-bs-theme":s,"aria-label":u,"aria-labelledby":l,"aria-describedby":c,children:y.jsx(a,{...R,onMouseDown:X,className:r,contentClassName:i,children:o})});return y.jsx(X6.Provider,{value:L,children:y.jsx(FV,{show:d,ref:J,backdrop:h,container:_,keyboard:!0,autoFocus:w,enforceFocus:$,restoreFocus:b,restoreFocusOptions:C,onEscapeKeyDown:re,onShow:v,onHide:x,onEnter:se,onEntering:xe,onEntered:T,onExit:fe,onExiting:O,onExited:ve,manager:B(),transition:f?qV:void 0,backdropTransition:f?YV:void 0,renderBackdrop:be,renderDialog:ce})})});nT.displayName="Modal";const Cl=Object.assign(nT,{Body:Z6,Header:eT,Title:tT,Footer:Q6,Dialog:O1,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),GV="_modal_1sw52_1",KV="_settings-item_1sw52_1",ZV="_label_1sw52_8",XV="_content_1sw52_11",QV="_column-item_1sw52_14",JV="_is-hidden_1sw52_20",Ha={modal:GV,settingsItem:KV,label:ZV,content:XV,columnItem:QV,isHidden:JV},eq=({show:e,handleClose:t,texts:n,pageSize:r,columns:i,IconComponent:o,resetToDefault:a})=>{const[s,l]=m.useState(r.value?r.value.toString():"");m.useEffect(()=>{e&&l(r.value?r.value.toString():"")},[e,r.value]);const c=r.enabled;return y.jsxs(Cl,{className:me("settings-modal",Ha.modal),"data-testId":"settings-modal",show:e,onHide:t,children:[y.jsx(Cl.Header,{closeButton:!0,children:y.jsx(Cl.Title,{children:n==null?void 0:n.settingsModal.title})}),y.jsx(Cl.Body,{children:y.jsxs(Po,{children:[c?y.jsxs(Po.Item,{eventKey:"general-settings",children:[y.jsx(Po.Header,{children:n==null?void 0:n.settingsModal.generalSettings}),y.jsx(Po.Body,{className:"d-flex flex-column gap-1",children:r.enabled?y.jsxs("div",{className:Ha.settingsItem,children:[y.jsx("div",{className:me("text-nowrap",Ha.label),children:n==null?void 0:n.settingsModal.pageSize}),y.jsxs("div",{className:me("text-nowrap",Ha.content),children:[y.jsx(ef.Control,{"data-testId":"page-size-input",list:"pageSizes",max:1e3,min:0,size:"sm",type:"number",value:s,onChange:u=>{l(u.target.value),u.target.value&&r.onChange(Number(u.target.value))}}),y.jsxs("datalist",{id:"pageSizes",children:[y.jsx("option",{value:"10"}),y.jsx("option",{value:"20"}),y.jsx("option",{value:"30"}),y.jsx("option",{value:"50"}),y.jsx("option",{value:"100"})]})]})]}):null})]}):null,y.jsxs(Po.Item,{eventKey:"column-settings",children:[y.jsx(Po.Header,{children:n==null?void 0:n.settingsModal.columnSettings}),y.jsx(Po.Body,{className:"d-flex flex-column gap-1",children:i.allColumns.filter(u=>{var d;return u.getCanHide()&&((d=u.columnDef.meta)==null?void 0:d.hidden)!==!0}).map(u=>y.jsxs("div",{className:me("column-item rounded border",Ha.columnItem,{[Ha.isHidden]:!u.getIsVisible()}),children:[qH(u),y.jsx(vi,{color:"secondary",onClick:()=>u.toggleVisibility(),children:y.jsx(o,{icon:u.getIsVisible()?"visibility":"visibility-off"})})]},u.id))})]})]})}),y.jsxs(Cl.Footer,{className:"d-flex justify-content-between align-items-center",children:[y.jsx(F2,{variant:"outline-secondary",onClick:()=>{a(),t()},children:n==null?void 0:n.settingsModal.revertDefaultSettings}),y.jsx(F2,{onClick:t,children:n==null?void 0:n.settingsModal.done})]})]})},tq=[["ArrowUp",[0,-1]],["ArrowDown",[0,1]],["ArrowLeft",[-1,0]],["ArrowRight",[1,0]]],G2=new Map(tq),nq=(e,t,n,r,i,o)=>{const a=m.useState([0,0]),[s,l]=(e==null?void 0:e.cellSelectionState)??a,[c,u]=m.useState(),[d,f]=m.useState(),h=m.useCallback(v=>{e!=null&&e.disabled||l(v)},[e==null?void 0:e.disabled,l]),p=({fieldName:v,dataIndex:x})=>{u(v),f(x)},g=m.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 _=t.get(s[0]);if(e!=null&&e.onlyRowSelection){n[s[1]].toggleSelected();break}if(!_)return;_==="selection"&&n[s[1]].toggleSelected();break}case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":{v.preventDefault(),h(_=>{const w=[Math.min(Math.max(_[0]+G2.get(v.code)[0],0),t.size-1),Math.min(Math.max(_[1]+G2.get(v.code)[1],0),n.length-1)];if(r!==void 0){const $=Math.floor(w[1]/r);i($)}return w});break}case"Tab":if(v.preventDefault(),v.shiftKey)h(_=>_[0]<=0?_[1]<=0?_:[t.size-1,_[1]-1]:[_[0]-1,_[1]]);else{h(_=>_[0]>=t.size-1?_[1]>=n.length-1?_:[0,_[1]+1]:[_[0]+1,_[1]]);break}}},[e==null?void 0:e.disabled,e==null?void 0:e.onlyRowSelection,t,s,n,h,r,i]);return m.useEffect(()=>{if(c===void 0)return;u(void 0);const v=[...t.entries()].findIndex(x=>x[1]===c);l(x=>[v,x[1]])},[c,l,t]),m.useEffect(()=>{if(d===void 0)return;f(void 0);const v=n.findIndex(x=>x.index===d);if(l(x=>[x[0],v]),r!==void 0){const x=Math.floor(v/r);i(x)}},[i,r,d,n,l]),m.useEffect(()=>{if((e==null?void 0:e.onCellSelect)===void 0)return;const v=new AbortController;return window.addEventListener("keydown",g,{signal:v.signal}),()=>v.abort()},[g,e==null?void 0:e.onCellSelect]),m.useEffect(()=>{var v;(v=o.current)==null||v.scrollIntoView({behavior:"instant",block:"center",inline:"nearest"})},[o,s]),m.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&&h(_=>[_[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,h,n,s,t]),{selectedCoords:s,changeSelectedCoords:h,setSelectedCellByFNDI:p}},rq=e=>e.type==="number"?"sum":"uniqueCount",iq=(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):g6(e,t)},oq=(e,t,n)=>{var r;return(r=e.meta)!=null&&r.customAggregatedCellRender?e.meta.customAggregatedCellRender(t):(rq(e)==="sum"?n.aggregation.sum:n.aggregation.uniqueCount)(Number(t.getValue()))},aq=e=>{let{transform:t}=e;return{...t,y:0}},sq=({ref:e,isLink:t,to:n,children:r,LinkComponent:i,onClick:o,onCellInteraction:a,...s})=>t&&n?y.jsx(i,{ref:e,to:n,onAuxClick:l=>{l.button===1&&(a==null||a())},onClick:()=>{o==null||o(),a==null||a()},onContextMenu:()=>{a==null||a()},...s,children:r}):y.jsx("div",{ref:e,onAuxClick:o||a?l=>{l.button===1&&(a==null||a())}:void 0,onClick:o||a?()=>{o==null||o(),a==null||a()}:void 0,onContextMenu:o||a?()=>{a==null||a()}:void 0,...s,children:r}),lq=({row:e,cell:t,className:n,rowClassName:r,style:i,IconComponent:o,texts:a,formatters:s,LinkComponent:l,onRowClick:c,rowNavigation:u,onCellInteraction:d},f)=>{var g,v,x;const h=t.column.columnDef,p=m.useMemo(()=>{var _,w,$,b,C;if(!((_=h.meta)!=null&&_.disableCellClick)&&!t.getIsGrouped()&&!t.getIsAggregated()){if((w=h.meta)!=null&&w.onCellClick)return["onClickOwn",()=>{var T,k;return(k=(T=h.meta)==null?void 0:T.onCellClick)==null?void 0:k.call(T,e.original)}];if(($=h.meta)!=null&&$.cellNavigation){const T=(C=(b=h.meta)==null?void 0:b.cellNavigation)==null?void 0:C.call(b,e.original);if(T)return["navigateOwn",T]}if(c)return["onClick",()=>c==null?void 0:c(e.original)];if(u){const T=u==null?void 0:u(e.original);if(T)return["navigate",T]}}},[h,e,c,u,t]);return y.jsxs(sq,{className:me((_=>{var T,k,O,j,S,E;const w=((T=h==null?void 0:h.meta)==null?void 0:T.alignment)??"left",$=_.column.getIsSorted(),b=_.cell.getIsGrouped(),C=_.row.getIsExpanded();return me("td",Ve.td,{[Ve.left]:w==="left",[Ve.center]:w==="center",[Ve.right]:w==="right"||h.type==="number"&&((k=h.numericMeta)==null?void 0:k.noFormatting)!==!0},{sorted:$,[Ve.sorted]:$},{grouped:b,[Ve.grouped]:b},{expanded:C,[Ve.expanded]:C},{clickable:!!p,[Ve.clickable]:!!p},{"own-click":(O=p==null?void 0:p[0])==null?void 0:O.endsWith("Own"),[Ve.ownClick]:(j=p==null?void 0:p[0])==null?void 0:j.endsWith("Own")},r,(E=(S=h.meta)==null?void 0:S.className)==null?void 0:E.call(S,e.original))})(t.getContext()),n),isLink:!!((g=p==null?void 0:p[0])!=null&&g.startsWith("navigate")),LinkComponent:l,ref:f,style:{flex:`${t.column.getSize()} 1 0`,minWidth:t.column.getSize(),...i??{}},to:(v=p==null?void 0:p[0])!=null&&v.startsWith("navigate")?p[1]:void 0,onCellInteraction:d?()=>d==null?void 0:d(e.original):void 0,onClick:(x=p==null?void 0:p[0])!=null&&x.startsWith("onClick")?p[1]:void 0,children:[t.getIsGrouped()&&e.getCanExpand()?y.jsx(vi,{className:me("expander-button",Ve.expanderButton),size:"sm",onClick:e.getToggleExpandedHandler(),children:y.jsx(o,{icon:e.getIsExpanded()?"chevron-up":"chevron-down"})}):null,t.getIsAggregated()?oq(t.column.columnDef,t.getContext(),a):t.getIsPlaceholder()?null:iq(t.column.columnDef.cell,t.getContext(),s)," ",t.getIsGrouped()?`(${e.subRows.length})`:null]})},cq=m.forwardRef(lq),uq=({table:e,additionalOptions:t,IconComponent:n,texts:r,formatters:i,bottomBar:o,testId:a,LinkComponent:s,className:l,rowsClassName:c,onRowClick:u,rowNavigation:d,onCellInteraction:f,cellSelection:h,getRowProps:p},g)=>{var Y,G,J,ee,z,L,B,V,N;const v={boolean:X=>DF(X,n),date:IF,datetime:PF,number:LF,...i},[x,_]=m.useState(!1),w=!!e.options.getPaginationRowModel,$=MW(Om(O6,{}),Om(M6,{}),Om(y1,{})),b=e.getState().columnOrder,C=X=>{const{active:Q,over:Z}=X;Q&&Z&&Q.id!==Z.id&&e.setColumnOrder(le=>{const te=le.indexOf(Q.id),re=le.indexOf(Z.id);return te===-1||re===-1?le:w1(le,te,re)})},[T,k]=m.useState(null),O=X=>{k(X)},j=X=>{if(!X.getCanPin())return"";const Q=X.getIsPinned(),Z=Q==="right"&&X.getIsFirstColumn("right"),le=Q==="left"&&X.getIsLastColumn("left");return me({pinned:Q,[Ve.pinned]:Q,"first-right":Z,[Ve.firstRight]:Z,"last-left":le,[Ve.lastLeft]:le})},S=X=>{if(!X.getCanPin())return{};const Q=X.getIsPinned();return{left:Q==="left"?`${X.getStart("left")}px`:void 0,right:Q==="right"?`${X.getAfter("right")}px`:void 0}},E=e.getState().sorting;m.useEffect(()=>{var X,Q;if(E.length>0){const Z=E[0];if((X=document.activeElement)!=null&&X.classList.contains("filter"))return;(Q=document.getElementById(`filter-${Z.id}`))==null||Q.focus()}},[E]);const A=e.getPrePaginationRowModel().rows,D=new Map(e.getVisibleLeafColumns().map((X,Q)=>[Q,X.id])),R=m.useRef(null),{selectedCoords:M,changeSelectedCoords:I,setSelectedCellByFNDI:F}=nq(h,D,A,w?((Y=e.getState().pagination)==null?void 0:Y.pageSize)??0:void 0,e.setPageIndex,R);m.useImperativeHandle(g,()=>({setSelectedCell:F}));const U=X=>{var Q;return h!=null&&h.onlyRowSelection&&((Q=A[M[1]])==null?void 0:Q.index)===X.index?me(Ve.cellSelectedRow,"cell-selected-row",{[Ve.cellSelectionDisabled]:h.disabled}):""},P=(X,Q)=>{var Z;return(h==null?void 0:h.onCellSelect)===void 0||M[0]!==X||((Z=A[M[1]])==null?void 0:Z.index)!==Q||h.onlyRowSelection?"":h.disabled?"bg-primary-subtle":me("selected-cell",Ve.selectedCell)},W=t.fullScreen.canFullScreen?((G=t.fullScreen)==null?void 0:G.isFullScreen)??!1:!1,q=(J=t.sizing)!=null&&J.canSize?((ee=t.sizing)==null?void 0:ee.size)??"md":"md",H=e.getState().columnFilters;return y.jsx(RU,{collisionDetection:DW,modifiers:[aq],sensors:$,onDragEnd:C,children:y.jsxs("div",{className:me("tanstack-bnf-table-container",Ve.tableScrollContainer,{"full-screen":W,[Ve.fullScreen]:W}),children:[H&&H.length>0?y.jsx("div",{className:me("remove-filters-button-wrapper",Ve.removeFiltersButtonWrapper),children:y.jsxs("button",{className:me(Ve.removeFiltersButton,"remove-filters-button"),type:"button",onClick:()=>e.resetColumnFilters(),children:[y.jsx("div",{className:"d-flex align-items-center justify-content-center",children:y.jsx(n,{icon:"remove-filters"})}),(r==null?void 0:r.removeFilters)??"Zrušit filtry"]})}):null,y.jsxs("div",{className:me("tanstack-bnf-table",Ve.table,{sm:q==="sm",lg:q==="lg",[Ve.sm]:q==="sm",[Ve.lg]:q==="lg"},l),"data-testid":a,children:[y.jsx("div",{className:me("thead",Ve.thead),children:e.getHeaderGroups().map(X=>y.jsx("div",{className:me("tr",Ve.tr),children:y.jsx(VU,{items:b,strategy:UU,children:X.headers.map(Q=>{var Z,le;return y.jsx(WH,{className:j(Q.column),columnMenuPos:T,dragEnabled:t.enableReordering&&((le=(Z=Q.column.columnDef)==null?void 0:Z.meta)==null?void 0:le.enableReordering)!==!1,header:Q,IconComponent:n,style:S(Q.column),table:e,texts:r,onColumnMenu:O},Q.id)})})},X.id))}),y.jsxs("div",{className:me("tbody",Ve.tbody),children:[(((L=(z=e.options)==null?void 0:z.data)==null?void 0:L.length)??0)===0?y.jsx("div",{className:me("alert alert-warning empty-table-alert",Ve.emptyTableAlert),children:r.emptyTable}):null,e.getRowModel().rows.map((X,Q)=>{var Z;return y.jsx("div",{className:me("tr",Ve.tr,U(X),p?(Z=p(X.original))==null?void 0:Z.className:null),role:"data-row",...p?p(X.original):{},children:X.getVisibleCells().map((le,te)=>{var re;return y.jsx(cq,{cell:le,className:me(j(le.column),P(te,X.index)),formatters:v,IconComponent:n,LinkComponent:s,ref:(h==null?void 0:h.onCellSelect)!==void 0&&M[0]===te&&((re=A[M[1]])==null?void 0:re.index)===X.index?R:null,row:X,rowClassName:me(...(c==null?void 0:c.filter(se=>se.selector(X.original)).map(se=>se.className))??[]),rowNavigation:d,style:S(le.column),texts:r,onCellInteraction:(h==null?void 0:h.onCellSelect)===void 0?f:se=>{var fe,xe;I([te,((fe=e.getState().pagination)==null?void 0:fe.pageIndex)*((xe=e.getState().pagination)==null?void 0:xe.pageSize)+Q]),f==null||f(se)},onRowClick:u},le.id)})},X.id)})]}),y.jsx(eq,{columns:{allColumns:e.getAllColumns()},handleClose:()=>_(!1),IconComponent:n,pageSize:{enabled:w,value:((B=e.getState().pagination)==null?void 0:B.pageSize)??0,onChange:X=>e.setPageSize(X)},resetToDefault:t.resetToInitialValues,show:x,texts:r})]}),o!=null&&o.hidden?null:y.jsxs("div",{className:me("bottom-bar",Ve.bottomBar),children:[y.jsxs("div",{className:me("left-items",Ve.leftItems),children:[w?y.jsxs("div",{className:me("pagination",Ve.pagination),children:[y.jsx(vi,{disabled:!e.getCanPreviousPage(),onClick:()=>e.firstPage(),children:y.jsx(n,{icon:"page-first"})}),y.jsx(vi,{disabled:!e.getCanPreviousPage(),onClick:()=>e.previousPage(),children:y.jsx(n,{icon:"page-previous"})}),y.jsx("div",{className:me("page-info-text",Ve.pageInfoText),children:r.pagination.infoText(e.getState().pagination.pageIndex+1,e.getPageCount())}),y.jsx(vi,{disabled:!e.getCanNextPage(),onClick:()=>e.nextPage(),children:y.jsx(n,{icon:"page-next"})}),y.jsx(vi,{disabled:!e.getCanNextPage(),onClick:()=>e.lastPage(),children:y.jsx(n,{icon:"page-last"})})]}):null,y.jsx("div",{className:me("row-count-text",Ve.rowCountText),children:r.rowCountText(e.getRowCount())})]}),y.jsxs("div",{className:me("right-items",Ve.rightItems),children:[(V=t.fullScreen)!=null&&V.canFullScreen?y.jsx(vi,{color:t.fullScreen.isFullScreen?"danger":"primary","data-testId":"table-fullscreen-button",onClick:()=>t.fullScreen.toggleFullScreen(),children:y.jsx(n,{icon:t.fullScreen.isFullScreen?"fullscreen-exit":"fullscreen"})}):null,(N=t.sizing)!=null&&N.canSize?y.jsxs(Rn,{drop:"up",children:[y.jsx(Rn.Toggle,{bsPrefix:"sizing-toggle",className:me("sizing-toggle",Ve.sizingToggle),id:"table-sizing-button",size:"sm",children:y.jsx(n,{icon:"density"})}),y.jsxs(Rn.Menu,{className:me("shadow-lg sizing-menu",Ve.sizingMenu),children:[y.jsxs(Rn.Item,{className:me("sizing-menu-item",Ve.sizingMenuItem),onClick:()=>t.sizing.setSize("sm"),children:[q==="sm"?y.jsx(n,{icon:"boolean-yes"}):null," ",r.sizing.sm]}),y.jsxs(Rn.Item,{className:me("sizing-menu-item",Ve.sizingMenuItem),onClick:()=>t.sizing.setSize("md"),children:[q==="md"?y.jsx(n,{icon:"boolean-yes"}):null," ",r.sizing.md]}),y.jsxs(Rn.Item,{className:me("sizing-menu-item",Ve.sizingMenuItem),onClick:()=>t.sizing.setSize("lg"),children:[q==="lg"?y.jsx(n,{icon:"boolean-yes"}):null," ",r.sizing.lg]})]})]}):null,t.excelExport.canExport?y.jsx(vi,{"data-testId":"table-excel-export-button",onClick:()=>t.excelExport.onExport(r),children:y.jsx(n,{icon:"excel-export"})}):null,y.jsx(vi,{"data-testId":"table-settings-button",onClick:()=>_(!0),children:y.jsx(n,{icon:"settings"})})]})]})]})})};m.forwardRef(uq);const dq=(e,t)=>t.split(".").reduce((n,r)=>n&&typeof n=="object"?n[r]:void 0,e),rT=()=>{const e=fW();return{accessor:(t,n)=>{const r=i=>dq(i,t)??"";return e.accessor(r,{...n,id:t})},display:t=>e.display(t),group:t=>e.group(t)}};function fq(e){return ft({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M320 464c8.8 0 16-7.2 16-16l0-288-80 0c-17.7 0-32-14.3-32-32l0-80L64 48c-8.8 0-16 7.2-16 16l0 384c0 8.8 7.2 16 16 16l256 0zM0 64C0 28.7 28.7 0 64 0L229.5 0c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 12 18.7 28.3 18.7 45.3L384 448c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64z"},child:[]}]})(e)}function hq(e){return ft({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M448 80c8.8 0 16 7.2 16 16l0 319.8-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-.3L48 96c0-8.8 7.2-16 16-16l384 0zM64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32zm80 192a48 48 0 1 0 0-96 48 48 0 1 0 0 96z"},child:[]}]})(e)}function pq(e){return ft({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M200,24H72A16,16,0,0,0,56,40V64H40A16,16,0,0,0,24,80v96a16,16,0,0,0,16,16H56v24a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V40A16,16,0,0,0,200,24ZM72,160a8,8,0,0,1-6.15-13.12L81.59,128,65.85,109.12a8,8,0,0,1,12.3-10.24L92,115.5l13.85-16.62a8,8,0,1,1,12.3,10.24L102.41,128l15.74,18.88a8,8,0,0,1-12.3,10.24L92,140.5,78.15,157.12A8,8,0,0,1,72,160Zm56,56H72V192h56Zm0-152H72V40h56Zm72,152H144V192a16,16,0,0,0,16-16v-8h40Zm0-64H160V104h40Zm0-64H160V80a16,16,0,0,0-16-16V40h56Z"},child:[]}]})(e)}function mq(e){return ft({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M200,24H72A16,16,0,0,0,56,40V64H40A16,16,0,0,0,24,80v96a16,16,0,0,0,16,16H56v24a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V40A16,16,0,0,0,200,24ZM68.24,153.94l-12-48a8,8,0,1,1,15.52-3.88l6.76,27,6.32-12.66a8,8,0,0,1,14.32,0l6.32,12.66,6.76-27a8,8,0,0,1,15.52,3.88l-12,48a8,8,0,0,1-6.89,6,8.46,8.46,0,0,1-.87.05,8,8,0,0,1-7.16-4.42L92,137.89l-8.84,17.69a8,8,0,0,1-14.92-1.64ZM200,216H72V192h72a16,16,0,0,0,16-16v-8h40Zm0-64H160V104h40Zm0-64H160V80a16,16,0,0,0-16-16H72V40H200Z"},child:[]}]})(e)}const gq="_excel_18ggp_1",vq="_word_18ggp_5",bq="_pdf_18ggp_9",yq="_image_18ggp_13",rd={excel:gq,word:vq,pdf:bq,image:yq},iT=e=>{const t=Re.c(27);let n,r,i;switch(t[0]!==e?({fileExtension:r,className:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i):(n=t[1],r=t[2],i=t[3]),r==null?void 0:r.toUpperCase()){case"JPG":case"JPEG":case"BMP":case"PNG":{let o;t[4]!==n?(o=ue(n,rd.image),t[4]=n,t[5]=o):o=t[5];let a;t[6]!==i?(a=y.jsx(hq,{...i}),t[6]=i,t[7]=a):a=t[7];let s;return t[8]!==o||t[9]!==a?(s=y.jsx("span",{className:o,children:a}),t[8]=o,t[9]=a,t[10]=s):s=t[10],s}case"XLS":case"XLSX":case"CSV":{let o;t[11]!==n?(o=ue(n,rd.excel),t[11]=n,t[12]=o):o=t[12];let a;return t[13]!==i||t[14]!==o?(a=y.jsx(pq,{className:o,...i}),t[13]=i,t[14]=o,t[15]=a):a=t[15],a}case"DOC":case"DOCM":case"DOCX":{let o;t[16]!==n?(o=ue(n,rd.word),t[16]=n,t[17]=o):o=t[17];let a;return t[18]!==i||t[19]!==o?(a=y.jsx(mq,{className:o,...i}),t[18]=i,t[19]=o,t[20]=a):a=t[20],a}case"PDF":{let o;t[21]!==n?(o=ue(n,rd.pdf),t[21]=n,t[22]=o):o=t[22];let a;return t[23]!==i||t[24]!==o?(a=y.jsx(XI,{className:o,...i}),t[23]=i,t[24]=o,t[25]=a):a=t[25],a}default:{let o;return t[26]===Symbol.for("react.memo_cache_sentinel")?(o=y.jsx(fq,{}),t[26]=o):o=t[26],o}}},xq=()=>{const e=Re.c(47),{ProjectIconComponent:t,texts:n}=m.useContext(ln),{documents:r}=n,{apiActions:i,reducer:o}=m.useContext(xn),{downloadFile:a}=i,[s]=o,l=s.activeFolder==="root";let c;e[0]!==a?(c=(S,E,A)=>S?r$(E??"")&&localStorage.getItem("file-download-try-opening")!=="false"?y.jsx("span",{role:"button",className:"link link-primary d-flex align-items-center",onClick:R=>{R.stopPropagation(),a(A,!0)},children:S}):S:"",e[0]=a,e[1]=c):c=e[1];const u=c;let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=rT(),e[2]=d):d=e[2];const f=d;let h;e[3]===Symbol.for("react.memo_cache_sentinel")?(h=f.accessor("id",{header:"id",type:"number",meta:{hidden:!0}}),e[3]=h):h=e[3];let p;e[4]!==r.folder||e[5]!==l?(p=l?[f.accessor("folderName",{header:r.folder,type:"string"})]:[],e[4]=r.folder,e[5]=l,e[6]=p):p=e[6];let g;e[7]!==u?(g=f.accessor("--icon",{header:"",type:"string",size:36,enableSorting:!1,meta:{alignment:"center",filterVariant:"none",customCellRender:S=>{const E=S.row.getValue("fileExtension"),A=S.row.getValue("id");return u(y.jsx(iT,{fileExtension:(E==null?void 0:E.toString())??"",className:Gg.extensionIcon,size:18}),(E==null?void 0:E.toString())??"",Number((A==null?void 0:A.toString())??""))}}}),e[7]=u,e[8]=g):g=e[8];let v;if(e[9]!==r.name||e[10]!==u){let S;e[12]!==u?(S=E=>{const A=E.row.getValue("name"),D=E.row.getValue("fileExtension"),R=E.row.getValue("id");return u((A==null?void 0:A.toString())??"",(D==null?void 0:D.toString())??"",Number((R==null?void 0:R.toString())??""))},e[12]=u,e[13]=S):S=e[13],v=f.accessor("name",{header:r.name,type:"string",meta:{customCellRender:S}}),e[9]=r.name,e[10]=u,e[11]=v}else v=e[11];let x;e[14]!==r.description?(x=f.accessor("description",{header:r.description,type:"string"}),e[14]=r.description,e[15]=x):x=e[15];let _;e[16]!==r.fileExtension?(_=f.accessor("fileExtension",{header:r.fileExtension,type:"string",size:50,meta:{filterVariant:"select"}}),e[16]=r.fileExtension,e[17]=_):_=e[17];let w;e[18]!==t||e[19]!==a?(w=f.accessor("--downloadButton",{header:"",type:"number",size:38,enableSorting:!1,meta:{alignment:"center",filterVariant:"none",customCellRender:S=>{const E=S.row.getValue("id");return y.jsx(dh,{className:Gg.downloadButton,onClick:()=>a(Number((E==null?void 0:E.toString())??""),!1),children:y.jsx(t,{icon:"file-download",size:18})})}}}),e[18]=t,e[19]=a,e[20]=w):w=e[20];let $;e[21]!==r.documentType?($=f.accessor("documentTypeName",{header:r.documentType,type:"string",meta:{filterVariant:"select"}}),e[21]=r.documentType,e[22]=$):$=e[22];let b;e[23]!==r.validSince?(b=f.accessor("validToDate",{header:r.validSince,type:"date"}),e[23]=r.validSince,e[24]=b):b=e[24];let C;e[25]!==r.size?(C=f.accessor("size",{header:r.size,type:"number",meta:{filterVariant:"none",customCellRender:wq}}),e[25]=r.size,e[26]=C):C=e[26];let T;if(e[27]!==r.archived||e[28]!==r.no||e[29]!==r.yes){let S;e[31]!==r.no||e[32]!==r.yes?(S=E=>E.getValue()?r.yes[0]:r.no[0],e[31]=r.no,e[32]=r.yes,e[33]=S):S=e[33],T=f.accessor("archive",{header:r.archived,type:"boolean",meta:{filterVariant:"select",customCellRender:S}}),e[27]=r.archived,e[28]=r.no,e[29]=r.yes,e[30]=T}else T=e[30];let k;e[34]!==_||e[35]!==w||e[36]!==$||e[37]!==b||e[38]!==C||e[39]!==T||e[40]!==p||e[41]!==g||e[42]!==v||e[43]!==x?(k=[h,...p,g,v,x,_,w,$,b,C,T],e[34]=_,e[35]=w,e[36]=$,e[37]=b,e[38]=C,e[39]=T,e[40]=p,e[41]=g,e[42]=v,e[43]=x,e[44]=k):k=e[44];const O=k;let j;return e[45]!==O?(j={columns:O},e[45]=O,e[46]=j):j=e[46],j};function wq(e){var n;const t=Number(((n=e.getValue())==null?void 0:n.toString())??"");return t!==void 0?ws(t*1024*1024):""}const _q=e=>{var E;const t=Re.c(33),{BnfTableComponent:n,tableIdentifier:r,writePermissions:i}=e,{reducer:o}=m.useContext(xn),[a,s]=o,{columns:l}=xq();let c;t[0]!==s?(c=A=>{s({type:"mark-files-by-action",setStateAction:A})},t[0]=s,t[1]=c):c=t[1];const u=c,d=a.activeFolder==="root";let f;e:{if(a.activeFolder==="root"){f=!1;break e}let A;t[2]!==a.activeFolder||t[3]!==a.foldersMap?(A=((E=a.foldersMap.get(a.activeFolder))==null?void 0:E.onlyRead)??!1,t[2]=a.activeFolder,t[3]=a.foldersMap,t[4]=A):A=t[4],f=A}const h=f,p=i&&!d;let g;t[5]!==a.markedFiles?(g=Object.fromEntries(a.markedFiles.map($q)),t[5]=a.markedFiles,t[6]=g):g=t[6];let v;t[7]!==u?(v=A=>{const D=Object.keys(A).filter(R=>A[R]).map(Sq);u(D)},t[7]=u,t[8]=v):v=t[8];let x;t[9]!==p||t[10]!==g||t[11]!==v?(x={enabled:p,getRowId:Cq,selectedRows:g,setSelectedRows:v},t[9]=p,t[10]=g,t[11]=v,t[12]=x):x=t[12];const _=x;let w;e:{if(a.activeFolder==="root"){w=a.filteredFiles;break e}let A;if(t[13]!==a.activeFolder||t[14]!==a.filteredFiles){let D;t[16]!==a.activeFolder?(D=R=>R.folderId===a.activeFolder,t[16]=a.activeFolder,t[17]=D):D=t[17],A=a.filteredFiles.filter(D),t[13]=a.activeFolder,t[14]=a.filteredFiles,t[15]=A}else A=t[15];w=A}const $=w,{getDraggableProps:b}=Y0();let C;t[18]!==b||t[19]!==h||t[20]!==i?(C=A=>i===!1||h?{}:b(A.id),t[18]=b,t[19]=h,t[20]=i,t[21]=C):C=t[21];const T=C;let k;t[22]===Symbol.for("react.memo_cache_sentinel")?(k=ue(Gg.wrapper),t[22]=k):k=t[22];let O;t[23]===Symbol.for("react.memo_cache_sentinel")?(O={columnFilters:[{id:"archive",value:"false"}]},t[23]=O):O=t[23];let j;t[24]===Symbol.for("react.memo_cache_sentinel")?(j={hidden:!0},t[24]=j):j=t[24];let S;return t[25]!==n||t[26]!==l||t[27]!==$||t[28]!==T||t[29]!==_||t[30]!==a.activeFolder||t[31]!==r?(S=y.jsx("div",{className:k,children:y.jsx(n,{data:$,columns:l,rowSelection:_,getRowProps:T,initState:O,tableId:r,bottomBar:j},a.activeFolder)}),t[25]=n,t[26]=l,t[27]=$,t[28]=T,t[29]=_,t[30]=a.activeFolder,t[31]=r,t[32]=S):S=t[32],S};function Cq(e){var t;return((t=e.id)==null?void 0:t.toString())??""}function $q(e){return[e.toString(),!0]}function Sq(e){return Number(e)}const Tq="_wrapper_1q562_1",Eq="_divButtons_1q562_10",Pm={wrapper:Tq,divButtons:Eq},kq="_wrapper_1bpdd_1",Oq="_fileInput_1bpdd_5",K2={wrapper:kq,fileInput:Oq},Mq=e=>{const t=Re.c(17),{entityId:n,entityType:r,children:i,disabled:o}=e,a=m.useRef(null),[s,l]=m.useState(null),{reducer:c}=m.useContext(xn),[u]=c;let d;t[0]===Symbol.for("react.memo_cache_sentinel")?(d=T=>{var k;(((k=T.target.files)==null?void 0:k.length)??0)>0&&l(T.target.files)},t[0]=d):d=t[0];const f=d;let h;t[1]===Symbol.for("react.memo_cache_sentinel")?(h=()=>{l(null),a.current&&(a.current.value="")},t[1]=h):h=t[1];const p=h,g=`documents-upload-${r}-${n}`,v=o||u.activeFolder==="root",x=v?"disabled":void 0;let _;t[2]!==x?(_=ue("btn btn-context luminus-context-button",x),t[2]=x,t[3]=_):_=t[3];let w;t[4]!==i||t[5]!==g||t[6]!==_?(w=y.jsx("label",{htmlFor:g,className:_,children:i}),t[4]=i,t[5]=g,t[6]=_,t[7]=w):w=t[7];let $;t[8]!==g||t[9]!==v?($=y.jsx("input",{id:g,type:"file",multiple:!0,onChange:f,className:K2.fileInput,ref:a,disabled:v}),t[8]=g,t[9]=v,t[10]=$):$=t[10];let b;t[11]!==s?(b=s!==null?y.jsx(G0,{handleClose:p,files:s}):void 0,t[11]=s,t[12]=b):b=t[12];let C;return t[13]!==w||t[14]!==$||t[15]!==b?(C=y.jsxs("div",{className:K2.wrapper,children:[w,$,b]}),t[13]=w,t[14]=$,t[15]=b,t[16]=C):C=t[16],C},Ur=e=>{const t=Re.c(5),{children:n,onClick:r,className:i,disabled:o}=e,a=o===void 0?!1:o;let s;return t[0]!==n||t[1]!==i||t[2]!==a||t[3]!==r?(s=y.jsx(dh,{onClick:r,className:i,disabled:a,children:n}),t[0]=n,t[1]=i,t[2]=a,t[3]=r,t[4]=s):s=t[4],s},Aq=e=>{var P,W,q;const t=Re.c(51),{className:n,entityId:r,entityType:i}=e,{texts:o}=m.useContext(ln),{documents:a}=o,{prompt:s}=DC(),{confirm:l}=P0(),{apiActions:c,reducer:u}=m.useContext(xn),[d,f]=u,{deleteFiles:h,renameFiles:p,downloadAsZip:g,archivateFiles:v,deleteDirectory:x}=c,{renameFolder:_}=nS(),w=d.markedFiles.length===0,$=d.markedFiles.length===1;let b;t[0]!==a.enterNewFolderName||t[1]!==s||t[2]!==_||t[3]!==d.activeFolder?(b=async()=>{if(d.activeFolder==="root")return;const H=await s(a.enterNewFolderName,{input:"input"});H!==null&&_(d.activeFolder,H)},t[0]=a.enterNewFolderName,t[1]=s,t[2]=_,t[3]=d.activeFolder,t[4]=b):b=t[4];const C=b;let T;t[5]!==a.enterNewFileName||t[6]!==s||t[7]!==p||t[8]!==d.activeFolder?(T=async()=>{if(d.activeFolder==="root")return;const H=await s(a.enterNewFileName,{input:"input"});H!==null&&p(H)},t[5]=a.enterNewFileName,t[6]=s,t[7]=p,t[8]=d.activeFolder,t[9]=T):T=t[9];const k=T,O=d.activeFolder==="root";let j;e:{if(d.activeFolder==="root"){j=!1;break e}let H;t[10]!==d.activeFolder||t[11]!==d.foldersMap?(H=((P=d.foldersMap.get(d.activeFolder))==null?void 0:P.onlyRead)??!1,t[10]=d.activeFolder,t[11]=d.foldersMap,t[12]=H):H=t[12],j=H}const S=j;let E;if(t[13]!==d.constantFiles||t[14]!==d.markedFiles){let H;t[16]!==d.constantFiles?(H=Y=>{var G;return((G=d.constantFiles.find(J=>J.id===Y))==null?void 0:G.archive)===!1},t[16]=d.constantFiles,t[17]=H):H=t[17],E=d.markedFiles.every(H),t[13]=d.constantFiles,t[14]=d.markedFiles,t[15]=E}else E=t[15];const A=E;let D;if(t[18]!==d.constantFiles||t[19]!==d.markedFiles){let H;t[21]!==d.constantFiles?(H=Y=>{var G;return((G=d.constantFiles.find(J=>J.id===Y))==null?void 0:G.archive)===!0},t[21]=d.constantFiles,t[22]=H):H=t[22],D=d.markedFiles.every(H),t[18]=d.constantFiles,t[19]=d.markedFiles,t[20]=D}else D=t[20];const R=D,M=d.state==="folder-choosing"?"ignore-dim":void 0;let I;t[23]!==n||t[24]!==M?(I=ue(n,Pm.wrapper,M,"d-flex justify-content-between"),t[23]=n,t[24]=M,t[25]=I):I=t[25];let F;t[26]!==A||t[27]!==v||t[28]!==l||t[29]!==R||t[30]!==x||t[31]!==h||t[32]!==f||t[33]!==a||t[34]!==g||t[35]!==r||t[36]!==i||t[37]!==k||t[38]!==C||t[39]!==w||t[40]!==$||t[41]!==S||t[42]!==O||t[43]!==d.activeFolder||t[44]!==d.foldersMap||t[45]!==d.markedFiles||t[46]!==d.state?(F=d.state!=="folder-choosing"?y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:Pm.divButtons,children:[y.jsx(Mq,{entityId:r,entityType:i,disabled:S,children:a.uploadFiles}),y.jsx(Ur,{onClick:()=>{f({type:"open-modal",modalType:"create-folder",chosenFolderId:d.activeFolder??"root"})},disabled:S,children:a.createFolder}),y.jsx(Ur,{disabled:d.activeFolder==="root"||((W=d.foldersMap.get(d.activeFolder))==null?void 0:W.isDefault),onClick:async()=>{var Y;await l(`${a.deleteFolder} ${(Y=d.foldersMap.get(d.activeFolder))==null?void 0:Y.name}?`)&&x(d.activeFolder)},children:a.deleteFolder}),y.jsx(Ur,{disabled:d.activeFolder==="root"||((q=d.foldersMap.get(d.activeFolder))==null?void 0:q.isDefault),onClick:C,children:a.renameFolder})]}),!O&&!S?y.jsxs("div",{className:Pm.divButtons,children:[y.jsx(Ur,{onClick:()=>{f({type:"open-modal",modalType:"edit-file-properties"})},disabled:!$,children:a.editFileProperties}),y.jsx(Ur,{onClick:async()=>{await l(a.confirmDeleteFile(d.markedFiles.length))&&h(d.markedFiles)},disabled:w,children:a.delete}),R?y.jsx(Ur,{onClick:async()=>{await l(a.confirmDearchiveFile(d.markedFiles.length))&&await v(!0)},disabled:w,children:a.dearchivate}):y.jsx(Ur,{onClick:async()=>{await l(a.confirmArchiveFile(d.markedFiles.length))&&await v()},disabled:w||!A,children:a.archivate}),y.jsx(Ur,{onClick:k,disabled:w,children:a.rename}),y.jsx(Ur,{onClick:g,disabled:w,children:a.downloadZip})]}):null]}):d.state==="folder-choosing"?y.jsx(y.Fragment,{children:y.jsx(Ur,{onClick:()=>f({type:"return-from-folder-choosing"}),className:ue("ignore-dim","body-background-color"),children:a.back})}):void 0,t[26]=A,t[27]=v,t[28]=l,t[29]=R,t[30]=x,t[31]=h,t[32]=f,t[33]=a,t[34]=g,t[35]=r,t[36]=i,t[37]=k,t[38]=C,t[39]=w,t[40]=$,t[41]=S,t[42]=O,t[43]=d.activeFolder,t[44]=d.foldersMap,t[45]=d.markedFiles,t[46]=d.state,t[47]=F):F=t[47];let U;return t[48]!==F||t[49]!==I?(U=y.jsx("div",{className:I,children:F}),t[48]=F,t[49]=I,t[50]=U):U=t[50],U},Rq=e=>{const t=Re.c(25),{file:n}=e,{confirm:r}=P0(),{reducer:i,apiActions:o}=m.useContext(xn),[a]=i,{downloadFile:s}=o,{texts:l}=m.useContext(ln),{documents:c}=l;let u;t[0]!==r||t[1]!==c||t[2]!==s||t[3]!==n.id||t[4]!==n.name||t[5]!==n.size?(u=async()=>{await r(c.confirmFileDownload(n.name,n.size==null?void 0:ws(n.size*1024*1024)))&&s(n.id)},t[0]=r,t[1]=c,t[2]=s,t[3]=n.id,t[4]=n.name,t[5]=n.size,t[6]=u):u=t[6];const d=u;let f;t[7]!==n.folderId||t[8]!==a.foldersMap?(f=aS(n.folderId,a.foldersMap),t[7]=n.folderId,t[8]=a.foldersMap,t[9]=f):f=t[9];let h;t[10]!==f?(h=y.jsx(zn,{variant:"body",className:"text-muted",children:f}),t[10]=f,t[11]=h):h=t[11];let p;t[12]!==n.name?(p=y.jsx(zn,{variant:"body",children:n.name}),t[12]=n.name,t[13]=p):p=t[13];let g;t[14]!==n.size?(g=n.size==null?null:ws(n.size*1024*1024),t[14]=n.size,t[15]=g):g=t[15];let v;t[16]!==g?(v=y.jsx(zn,{variant:"body",children:g}),t[16]=g,t[17]=v):v=t[17];let x;t[18]!==p||t[19]!==v?(x=y.jsxs("div",{className:"d-flex justify-content-between gap-2",children:[p,v]}),t[18]=p,t[19]=v,t[20]=x):x=t[20];let _;return t[21]!==d||t[22]!==x||t[23]!==h?(_=y.jsxs(Kf,{action:!0,onClick:d,children:[h,x]}),t[21]=d,t[22]=x,t[23]=h,t[24]=_):_=t[24],_},jq="_typeSelect_m3myk_1",Nq={typeSelect:jq},Dq=()=>{const e=Re.c(34),{reducer:t}=m.useContext(xn),[n]=t,{texts:r}=m.useContext(ln),{documents:i}=r,[o,a]=m.useState(""),[s,l]=m.useState(null);let c;e[0]!==n.filteredFiles?(c=new Map,n.filteredFiles.forEach(k=>{c.get(k.documentTypeId)===void 0&&c.set(k.documentTypeId,k.documentTypeName)}),e[0]=n.filteredFiles,e[1]=c):c=e[1];let u;e[2]!==i.all?(u={id:null,name:i.all},e[2]=i.all,e[3]=u):u=e[3];let d;e[4]!==c?(d=Array.from(c).map(Iq),e[4]=c,e[5]=d):d=e[5];let f;e[6]!==u||e[7]!==d?(f=[u,...d],e[6]=u,e[7]=d,e[8]=f):f=e[8];const p=f;let g;if(e[9]!==o||e[10]!==s||e[11]!==n.filteredFiles){let k;e[13]!==o||e[14]!==s?(k=O=>A0(O.name,o)&&(s===null||O.documentTypeId===s),e[13]=o,e[14]=s,e[15]=k):k=e[15],g=n.filteredFiles.filter(k),e[9]=o,e[10]=s,e[11]=n.filteredFiles,e[12]=g}else g=e[12];const v=g;let x;e[16]!==i.documentType||e[17]!==p||e[18]!==s?(x=y.jsx(J$,{options:p,label:i.documentType,value:s,onChange:l,isNumber:!0,size:"sm",className:Nq.typeSelect}),e[16]=i.documentType,e[17]=p,e[18]=s,e[19]=x):x=e[19];let _;e[20]===Symbol.for("react.memo_cache_sentinel")?(_=k=>a(k===null?"":k),e[20]=_):_=e[20];let w;e[21]!==i.search||e[22]!==o?(w=y.jsx(X$,{label:i.search,type:"text",value:o,onChange:_,className:"flex-grow-1",size:"sm"}),e[21]=i.search,e[22]=o,e[23]=w):w=e[23];let $;e[24]!==x||e[25]!==w?($=y.jsxs("div",{className:"d-flex gap-1 mb-1",children:[x,w]}),e[24]=x,e[25]=w,e[26]=$):$=e[26];let b;e[27]!==v?(b=v.map(Pq),e[27]=v,e[28]=b):b=e[28];let C;e[29]!==b?(C=y.jsx(cC,{className:"overflow-y-auto",children:b}),e[29]=b,e[30]=C):C=e[30];let T;return e[31]!==C||e[32]!==$?(T=y.jsxs("div",{className:"d-flex h-100 flex-column",children:[$,C]}),e[31]=C,e[32]=$,e[33]=T):T=e[33],T};function Iq(e){return{id:e[0],name:e[1]}}function Pq(e){return y.jsx(Rq,{file:e},e.id)}function Lq(e){return{name:e.name,defaultDocType:e.defaultDocType,childrenIds:[],parentId:e.parentId??null,isDefault:e.isDefault,onlyRead:e.onlyRead}}function Fq(e){const t=[],n=new Map,r=new Map;return e.forEach(i=>{n.set(i.id,Lq(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 Z2(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 Bq(e,t){return e.map(n=>{var r;return{...n,folderName:((r=t.get(n.folderId))==null?void 0:r.name)??""}})}const zq=([e,t],n,r)=>{const{texts:{documents:i}}=m.useContext(ln),{startLoading:o,stopLoading:a}=m.useContext(Qf),{addNotification:s}=ah(),l=sh(),c=m.useCallback(async w=>{o("documentList");try{const b=(await l.get(`/documents/${n}/${r}`)).data,{dirsMap:C,rootIds:T}=Fq(b.folders),k=Bq(b.documents,C);t({type:"load-data",files:k,foldersMap:C,rootFolderIds:T,setActiveFolder:w})}finally{a("documentList")}},[l,t,r,n,o,a]);m.useEffect(()=>{c(!0)},[c]);const u=m.useCallback(async()=>{o("documents-types");try{const w=await l.get(`/documents/types/${n}`);if(w.status!==200)throw new Error(`Unexpected status code: ${w.status}`);t({type:"load-document-types",documentTypes:w.data})}finally{a("documents-types")}},[l,t,n,o,a]);m.useEffect(()=>{u()},[u]);const d=m.useCallback(async(w,$)=>{const b=$??e.markedFiles;o("documentsMove");try{await l.put(`/documents/move-to-folder?folderId=${w}`,b),t({type:"update-files",fileIds:b,newProperties:{folderId:w}}),s(i.fileMoveSuccessful(b.length,e.foldersMap.get(w).name),"success")}finally{a("documentsMove")}},[e.markedFiles,e.foldersMap,o,l,t,s,i,a]),f=m.useCallback(async w=>{const $=w??e.markedFiles;o("documentsFilesDelete");try{const b=await l.delete(`/documents/delete?${Dg($,"documentIds")}`);if(b.status!==200)throw new Error(`Unexpected status code: ${b.status}`);t({type:"delete-files",fileIds:$}),s(i.fileDeleteSuccessful($.length),"success")}finally{a("documentsFilesDelete")}},[e.markedFiles,o,l,t,s,i,a]),h=m.useCallback(async w=>{var $;if(!(w==="root"||($=e.foldersMap.get(w))!=null&&$.isDefault)){o("documentsFolderDelete");try{const b=await l.delete(`/documents/folder/${w}`);if(b.status!==200)throw new Error(`Unexpected status code: ${b.status}`);t({type:"delete-folder",folderId:w}),s(i.folderDeleteSuccessful(e.foldersMap.get(w).name),"success")}finally{a("documentsFolderDelete")}}},[e.foldersMap,o,l,t,s,i,a]),p=m.useCallback(async w=>{o("documentsRename");try{const $=await l.put("/documents/update-name",{documentIds:e.markedFiles,name:w});if($.status!==200)throw new Error(`Unexpected status code: ${$.status}`);c()}finally{a("documentsRename")}},[o,l,e.markedFiles,c,a]),g=m.useCallback(async w=>{o("documents-archivate");try{const $=await l.put(`/documents/${w?"dearchive":"archive"}`,e.markedFiles);if($.status!==200)throw new Error(`Unexpected status code: ${$.status}`);t({type:"update-files",fileIds:e.markedFiles,newProperties:{archive:!w}}),s((w?i.dearchivateSuccessful:i.archivateSuccessful)(e.markedFiles.length),"success")}finally{a("documents-archivate")}},[o,l,e.markedFiles,t,s,i.archivateSuccessful,i.dearchivateSuccessful,a]),v=m.useCallback(async()=>{var $;if(e.activeFolder==="root")return;const w=e.markedFiles.length;s(i.downloadAsZip(w),"info"),o("documents-ZIP_download");try{const b=await l.get(`/documents/download-zip?${Dg(e.markedFiles,"documentIds")}`,{responseType:"blob"});zd(b.data,((($=e.foldersMap.get(e.activeFolder))==null?void 0:$.name)??"")+"_files")}finally{a("documents-ZIP_download")}},[e.activeFolder,e.markedFiles,e.foldersMap,s,i,o,l,a]),x=m.useCallback(async(w,$)=>{s(i.downloadingFile,"info"),o("documents-downloading_file");try{const b=await l.get(`/documents/${w}?isSmall=true`,{responseType:"blob"}),C=e.constantFiles.find(k=>k.id===w),T=`${(C==null?void 0:C.name)??w.toString()}.${C!=null&&C.fileExtension?C==null?void 0:C.fileExtension.toLowerCase():"unknown"}`;zd(b.data,T,$)}finally{a("documents-downloading_file")}},[s,i.downloadingFile,o,l,e.constantFiles,a]),_=m.useCallback(async(w,$)=>{o("documents-upload"),s(i.uploadingDocuments,"info");try{await l.postForm("/documents/upload",{files:w,...$}),await c()}finally{a("documents-upload")}},[o,s,i.uploadingDocuments,l,c,a]);return{loadDocuments:c,moveDocuments:d,deleteFiles:f,deleteDirectory:h,renameFiles:p,archivateFiles:g,downloadAsZip:v,downloadFile:x,uploadFiles:_}},Wq=(e,t)=>{var n,r;switch(t.type){case"load-data":{const i={...e,constantFiles:t.files,filteredFiles:Z2(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(l=>l!==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=Z2(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.")}},Uq=()=>{const e=Re.c(3);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={state:"explorer",activeFolder:"root",searchString:"",filteredFiles:[],constantFiles:[],foldersMap:new Map,rootFolderIds:[],markedFiles:[],documentTypes:[]},e[0]=t):t=e[0];const n=t,[r,i]=m.useReducer(Wq,n);let o;return e[1]!==r?(o=[r,i],e[1]=r,e[2]=o):o=e[2],o},Hq=m.memo(e=>{const t=Re.c(86);let n,r,i,o,a,s,l,c;t[0]!==e?({entityType:a,entityId:o,className:r,BnfTableComponent:n,tableIdentifier:c,customRootFolderName:i,writePermissions:l,...s}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=s,t[7]=l,t[8]=c):(n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],l=t[7],c=t[8]);const u=l===void 0?!0:l,{isMobile:d}=ou(),{ProjectIconComponent:f,texts:h}=m.useContext(ln),{documents:p}=h,[g,v]=Uq(),[x,_]=m.useState(null);let w;t[9]!==v||t[10]!==g?(w=[g,v],t[9]=v,t[10]=g,t[11]=w):w=t[11];const $=zq(w,a,o);let b,C;t[12]!==$?({loadDocuments:C,...b}=$,t[12]=$,t[13]=b,t[14]=C):(b=t[13],C=t[14]);let T;t[15]!==v||t[16]!==g?(T=[g,v],t[15]=v,t[16]=g,t[17]=T):T=t[17];let k;t[18]!==b||t[19]!==o||t[20]!==a||t[21]!==C||t[22]!==T?(k={entityId:o,entityType:a,apiActions:b,loadDocuments:C,reducer:T},t[18]=b,t[19]=o,t[20]=a,t[21]=C,t[22]=T,t[23]=k):k=t[23];const O=k,{getDropProps:j}=Y0();if(d){let Q;t[24]===Symbol.for("react.memo_cache_sentinel")?(Q=y.jsx(Dq,{}),t[24]=Q):Q=t[24];let Z;return t[25]!==O?(Z=y.jsx(xn.Provider,{value:O,children:Q}),t[25]=O,t[26]=Z):Z=t[26],Z}let S;t[27]!==r?(S=ue(Do.wrapper,r),t[27]=r,t[28]=S):S=t[28];const E=g.state==="folder-choosing"?"dim-others":void 0;let A;t[29]!==E?(A=ue(E,Do.explorerWindow),t[29]=E,t[30]=A):A=t[30];const D=i??a;let R;t[31]!==D?(R=y.jsx(mP,{customText:D}),t[31]=D,t[32]=R):R=t[32];let M;if(t[33]!==g.rootFolderIds||t[34]!==u){let Q;t[36]!==u?(Q=Z=>y.jsx(sS,{dirId:Z,writePermissions:u},Z),t[36]=u,t[37]=Q):Q=t[37],M=g.rootFolderIds.map(Q),t[33]=g.rootFolderIds,t[34]=u,t[35]=M}else M=t[35];let I;t[38]!==R||t[39]!==M?(I=y.jsxs("ul",{className:Do.folderList,children:[R,M]}),t[38]=R,t[39]=M,t[40]=I):I=t[40];let F;t[41]!==I||t[42]!==A?(F=y.jsx("div",{className:A,children:I}),t[41]=I,t[42]=A,t[43]=F):F=t[43];let U;t[44]===Symbol.for("react.memo_cache_sentinel")?(U=ue(Do.explorerWindow,Do.fileList),t[44]=U):U=t[44];let P;t[45]!==j||t[46]!==g||t[47]!==u?(P=u&&AP(g)?j(g.activeFolder,{onFilesDrop:Q=>_(Q),ignoreInner:!0}):{},t[45]=j,t[46]=g,t[47]=u,t[48]=P):P=t[48];let W;t[49]===Symbol.for("react.memo_cache_sentinel")?(W={style:{marginRight:0}},t[49]=W):W=t[49];let q;t[50]!==f?(q=y.jsx(f,{icon:"file-upload",iconProps:W}),t[50]=f,t[51]=q):q=t[51];let H;t[52]!==p.dropToUpload?(H=y.jsx("span",{children:p.dropToUpload}),t[52]=p.dropToUpload,t[53]=H):H=t[53];let Y;t[54]!==q||t[55]!==H?(Y=y.jsxs("div",{className:Do.dndText,children:[q,H]}),t[54]=q,t[55]=H,t[56]=Y):Y=t[56];const G=g.activeFolder==="root";let J;t[57]!==G?(J=G.toString(),t[57]=G,t[58]=J):J=t[58];let ee;t[59]!==n||t[60]!==J||t[61]!==c||t[62]!==u?(ee=y.jsx(_q,{tableIdentifier:c,BnfTableComponent:n,writePermissions:u},J),t[59]=n,t[60]=J,t[61]=c,t[62]=u,t[63]=ee):ee=t[63];let z;t[64]!==P||t[65]!==Y||t[66]!==ee?(z=y.jsxs("div",{className:U,...P,children:[Y,ee]}),t[64]=P,t[65]=Y,t[66]=ee,t[67]=z):z=t[67];let L;t[68]!==o||t[69]!==a||t[70]!==u?(L=u?y.jsx(Aq,{className:Do.controls,entityType:a,entityId:o}):null,t[68]=o,t[69]=a,t[70]=u,t[71]=L):L=t[71];let B;t[72]===Symbol.for("react.memo_cache_sentinel")?(B=y.jsx(SP,{}),t[72]=B):B=t[72];let V;t[73]!==g.activeFolder||t[74]!==x?(V=x!==null?y.jsx(G0,{files:x,handleClose:()=>_(null),targetFolderId:g.activeFolder==="root"?void 0:g.activeFolder}):null,t[73]=g.activeFolder,t[74]=x,t[75]=V):V=t[75];let N;t[76]!==O||t[77]!==F||t[78]!==z||t[79]!==L||t[80]!==V?(N=y.jsxs(xn.Provider,{value:O,children:[F,z,L,B,V]}),t[76]=O,t[77]=F,t[78]=z,t[79]=L,t[80]=V,t[81]=N):N=t[81];let X;return t[82]!==s||t[83]!==N||t[84]!==S?(X=y.jsx("div",{...s,className:S,onDragOver:Vq,onDragEnter:qq,children:N}),t[82]=s,t[83]=N,t[84]=S,t[85]=X):X=t[85],X});function Vq(e){e.dataTransfer.dropEffect="none",e.stopPropagation(),e.preventDefault()}function qq(e){e.dataTransfer.dropEffect="none",e.stopPropagation(),e.preventDefault()}const Yq="Left",Gq="Right",Kq="Up",Zq="Down",ts={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},lv={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},X2="mousemove",Q2="mouseup",Xq="touchend",Qq="touchmove",Jq="touchstart";function eY(e,t,n,r){return e>t?n>0?Gq:Yq:r>0?Zq:Kq}function J2(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 tY(e,t){const n=u=>{const d="touches"in u;d&&u.touches.length>1||e((f,h)=>{h.trackMouse&&!d&&(document.addEventListener(X2,r),document.addEventListener(Q2,a));const{clientX:p,clientY:g}=d?u.touches[0]:u,v=J2([p,g],h.rotationAngle);return h.onTouchStartOrOnMouseDown&&h.onTouchStartOrOnMouseDown({event:u}),Object.assign(Object.assign(Object.assign({},f),lv),{initial:v.slice(),xy:v,start:u.timeStamp||0})})},r=u=>{e((d,f)=>{const h="touches"in u;if(h&&u.touches.length>1)return d;if(u.timeStamp-d.start>f.swipeDuration)return d.swiping?Object.assign(Object.assign({},d),{swiping:!1}):d;const{clientX:p,clientY:g}=h?u.touches[0]:u,[v,x]=J2([p,g],f.rotationAngle),_=v-d.xy[0],w=x-d.xy[1],$=Math.abs(_),b=Math.abs(w),C=(u.timeStamp||0)-d.start,T=Math.sqrt($*$+b*b)/(C||1),k=[_/(C||1),w/(C||1)],O=eY($,b,_,w),j=typeof f.delta=="number"?f.delta:f.delta[O.toLowerCase()]||ts.delta;if($<j&&b<j&&!d.swiping)return d;const S={absX:$,absY:b,deltaX:_,deltaY:w,dir:O,event:u,first:d.first,initial:d.initial,velocity:T,vxvy:k};S.first&&f.onSwipeStart&&f.onSwipeStart(S),f.onSwiping&&f.onSwiping(S);let E=!1;return(f.onSwiping||f.onSwiped||f[`onSwiped${O}`])&&(E=!0),E&&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 h;if(d.swiping&&d.eventData){if(u.timeStamp-d.start<f.swipeDuration){h=Object.assign(Object.assign({},d.eventData),{event:u}),f.onSwiped&&f.onSwiped(h);const p=f[`onSwiped${h.dir}`];p&&p(h)}}else f.onTap&&f.onTap({event:u});return f.onTouchEndOrOnMouseUp&&f.onTouchEndOrOnMouseUp({event:u}),Object.assign(Object.assign(Object.assign({},d),lv),{eventData:h})})},o=()=>{document.removeEventListener(X2,r),document.removeEventListener(Q2,a)},a=u=>{o(),i(u)},s=(u,d)=>{let f=()=>{};if(u&&u.addEventListener){const h=Object.assign(Object.assign({},ts.touchEventOptions),d.touchEventOptions),p=[[Jq,n,h],[Qq,r,Object.assign(Object.assign({},h),d.preventScrollOnSwipe?{passive:!1}:{})],[Xq,i,h]];p.forEach(([g,v,x])=>u.addEventListener(g,v,x)),f=()=>p.forEach(([g,v])=>u.removeEventListener(g,v))}return f},c={ref:u=>{u!==null&&e((d,f)=>{if(d.el===u)return d;const h={};return d.el&&d.el!==u&&d.cleanUpTouch&&(d.cleanUpTouch(),h.cleanUpTouch=void 0),f.trackTouch&&u&&(h.cleanUpTouch=s(u,f)),Object.assign(Object.assign(Object.assign({},d),{el:u}),h)})}};return t.trackMouse&&(c.onMouseDown=n),[c,s]}function nY(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 M1(e){const{trackMouse:t}=e,n=ie.useRef(Object.assign({},lv)),r=ie.useRef(Object.assign({},ts)),i=ie.useRef(Object.assign({},r.current));i.current=Object.assign({},r.current),r.current=Object.assign(Object.assign({},ts),e);let o;for(o in ts)r.current[o]===void 0&&(r.current[o]=ts[o]);const[a,s]=ie.useMemo(()=>tY(l=>n.current=l(n.current,r.current),{trackMouse:t}),[t]);return n.current=nY(n.current,r.current,i.current,s),a}const rY="_side-content-bar_16o0s_1",iY="_mobile_16o0s_12",oY="_expanded_16o0s_20",aY="_content-container_16o0s_23",sY="_resizer_16o0s_31",lY="_expander_16o0s_46",cY="_icon_16o0s_65",mi={sideContentBar:rY,mobile:iY,expanded:oY,contentContainer:aY,resizer:sY,expander:lY,icon:cY},oT=e=>{const t=Re.c(34),{width:n,children:r,isExpandedOnMobileState:i,resizeable:o,onResize:a}=e,[s,l]=i,c=o===void 0?!0:o,{ProjectIconComponent:u}=m.useContext(ln),{isMobile:d}=ou();let f;t[0]!==l?(f=j=>{j.velocity>.8&&l(!1)},t[0]=l,t[1]=f):f=t[1];let h;t[2]===Symbol.for("react.memo_cache_sentinel")?(h={delta:100},t[2]=h):h=t[2];let p;t[3]!==f?(p={onSwipedRight:f,...h},t[3]=f,t[4]=p):p=t[4];const g=M1(p),[v,x]=m.useState(null);let _;t[5]!==s||t[6]!==d?(_=ue("luminus-side-content-bar shadow",mi.sideContentBar,{[mi.mobile]:d},{[mi.expanded]:s}),t[5]=s,t[6]=d,t[7]=_):_=t[7];const w=`${n}px`;let $;t[8]!==w?($={width:w},t[8]=w,t[9]=$):$=t[9];let b;t[10]!==u||t[11]!==(v==null?void 0:v.startX)||t[12]!==(v==null?void 0:v.widthStart)||t[13]!==d||t[14]!==a||t[15]!==c||t[16]!==n?(b=c&&!d?y.jsx("div",{role:"button",className:ue(mi.resizer,"luminus-side-content-bar-resizer","shadow"),draggable:!0,onDragStart:j=>x({startX:j.clientX,widthStart:n}),onDrag:j=>a(((v==null?void 0:v.widthStart)??0)+(((v==null?void 0:v.startX)??0)-j.clientX)),onDragEnd:()=>x(null),children:y.jsx(u,{className:mi.icon,icon:"resizer-horizontal"})}):null,t[10]=u,t[11]=v==null?void 0:v.startX,t[12]=v==null?void 0:v.widthStart,t[13]=d,t[14]=a,t[15]=c,t[16]=n,t[17]=b):b=t[17];let C;t[18]!==r?(C=y.jsx("div",{className:mi.contentContainer,children:r}),t[18]=r,t[19]=C):C=t[19];let T;t[20]!==g||t[21]!==C||t[22]!==_||t[23]!==$||t[24]!==b?(T=y.jsxs("section",{className:_,style:$,...g,children:[b,C]}),t[20]=g,t[21]=C,t[22]=_,t[23]=$,t[24]=b,t[25]=T):T=t[25];let k;t[26]!==u||t[27]!==s||t[28]!==d||t[29]!==l?(k=d?y.jsx("div",{role:"button",onClick:()=>l(!s),className:ue(mi.expander,{[mi.expanded]:s},"luminus-side-content-bar-expander","shadow"),children:y.jsx(u,{className:mi.icon,icon:"chevron-left"})}):null,t[26]=u,t[27]=s,t[28]=d,t[29]=l,t[30]=k):k=t[30];let O;return t[31]!==T||t[32]!==k?(O=y.jsxs(y.Fragment,{children:[T,k]}),t[31]=T,t[32]=k,t[33]=O):O=t[33],O},uY=e=>{const t=Re.c(4),{title:n}=e;let r;t[0]!==n?(r=typeof n=="string"?y.jsx(zn,{variant:"h3",children:n}):n,t[0]=n,t[1]=r):r=t[1];let i;return t[2]!==r?(i=y.jsx("div",{className:"mb-3",children:r}),t[2]=r,t[3]=i):i=t[3],i},dY="_full-screen-container_1rm4r_1",aT={fullScreenContainer:dY},fY=ue("overflow-hidden luminus-full-screen-container",aT.fullScreenContainer),hY="container-fluid",pY=e=>{const t=Re.c(45),{title:n,children:r,sideContent:i,sideContentWidth:o,sideContentResizeable:a,noPadding:s,className:l,variant:c,helmet:u,unavailableOnMobile:d}=e,f=o===void 0?250:o,h=a===void 0?!0:a,p=c===void 0?"main":c,{addHelmet:g,removeHelmet:v}=m.useContext(q$),{texts:x}=m.useContext(ln),{container:_}=x,[w,$]=m.useState(f),[b,C]=m.useState(!1);let T;e:switch(p){case"fullScreen":{T=fY;break e}case"main":{T=hY;break e}default:throw new Error(`PageContainer got incorrect variant type: ${p}`)}const k=T;let O,j;t[0]!==g||t[1]!==u||t[2]!==v||t[3]!==n?(O=()=>(u?g(u):typeof n=="string"&&n&&g(n),()=>v()),j=[u,g,v,n],t[0]=g,t[1]=u,t[2]=v,t[3]=n,t[4]=O,t[5]=j):(O=t[4],j=t[5]),m.useEffect(O,j);let S;t[6]===Symbol.for("react.memo_cache_sentinel")?(S={onSwipedLeft:ee=>{ee.velocity>.8&&C(!0)},delta:100},t[6]=S):S=t[6];const E=M1(S),{isMobile:A}=ou(),D=A&&d;let R,M;t[7]!==f?(M=()=>{$(f)},R=[f],t[7]=f,t[8]=R,t[9]=M):(R=t[8],M=t[9]),m.useEffect(M,R);const I=s?"p-0":"p-3";let F;t[10]!==l||t[11]!==I||t[12]!==k?(F=ue(k,I,l),t[10]=l,t[11]=I,t[12]=k,t[13]=F):F=t[13];let U;t[14]!==i||t[15]!==w||t[16]!==p?(U=p==="fullScreen"?{width:i?`calc(100% - ${w}px)`:"100%"}:void 0,t[14]=i,t[15]=w,t[16]=p,t[17]=U):U=t[17];const P=p==="fullScreen"?aT.fullScreenContainer:void 0;let W;t[18]!==i||t[19]!==w||t[20]!==p?(W=p==="main"?{paddingRight:i?`${w}px`:void 0}:{height:"100%",width:"100%"},t[18]=i,t[19]=w,t[20]=p,t[21]=W):W=t[21];let q;t[22]!==D||t[23]!==r||t[24]!==_||t[25]!==n?(q=D?y.jsx(I1,{variant:"warning",children:_.unavailableOnMobile}):y.jsxs(y.Fragment,{children:[n?y.jsx(uY,{title:n}):null,r]}),t[22]=D,t[23]=r,t[24]=_,t[25]=n,t[26]=q):q=t[26];let H;t[27]!==P||t[28]!==W||t[29]!==q?(H=y.jsx("div",{className:P,style:W,children:q}),t[27]=P,t[28]=W,t[29]=q,t[30]=H):H=t[30];let Y;t[31]!==E||t[32]!==F||t[33]!==U||t[34]!==H?(Y=y.jsx("div",{className:F,style:U,...E,children:H}),t[31]=E,t[32]=F,t[33]=U,t[34]=H,t[35]=Y):Y=t[35];let G;t[36]!==D||t[37]!==b||t[38]!==i||t[39]!==h||t[40]!==w?(G=i&&!D?y.jsx(oT,{width:w,isExpandedOnMobileState:[b,C],resizeable:h,onResize:ee=>h?$(ee):{},children:i}):null,t[36]=D,t[37]=b,t[38]=i,t[39]=h,t[40]=w,t[41]=G):G=t[41];let J;return t[42]!==Y||t[43]!==G?(J=y.jsxs(y.Fragment,{children:[Y,G]}),t[42]=Y,t[43]=G,t[44]=J):J=t[44],J};var A1={};A1.match=xY;A1.parse=sT;var mY=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,gY=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,vY=/^(?:(min|max)-)?(.+)/,bY=/(em|rem|px|cm|mm|in|pt|pc)?$/,yY=/(dpi|dpcm|dppx)?$/;function xY(e,t){return sT(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,l=a.modifier,c=a.value,u=t[s];if(!u)return!1;switch(s){case"orientation":case"scan":return u.toLowerCase()===c.toLowerCase();case"width":case"height":case"device-width":case"device-height":c=nw(c),u=nw(u);break;case"resolution":c=tw(c),u=tw(u);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":c=ew(c),u=ew(u);break;case"grid":case"color":case"color-index":case"monochrome":c=parseInt(c,10)||1,u=parseInt(u,10)||0;break}switch(l){case"min":return u>=c;case"max":return u<=c;default:return u===c}});return o&&!r||!o&&r})}function sT(e){return e.split(",").map(function(t){t=t.trim();var n=t.match(mY),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 l=s.match(gY),c=l[1].toLowerCase().match(vY);return{modifier:c[1],feature:c[2],value:l[2]}}),a})}function ew(e){var t=Number(e),n;return t||(n=e.match(/^(\d+)\s*\/\s*(\d+)$/),t=n[1]/n[2]),t}function tw(e){var t=parseFloat(e),n=String(e).match(yY)[1];switch(n){case"dpcm":return t/2.54;case"dppx":return t*96;default:return t}}function nw(e){var t=parseFloat(e),n=String(e).match(bY)[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 wY=A1.match,rw=typeof window<"u"?window.matchMedia:null;function _Y(e,t,n){var r=this,i;rw&&!n&&(i=rw.call(window,e)),i?(this.matches=i.matches,this.media=i.media,i.addListener(s)):(this.matches=wY(e,t),this.media=e),this.addListener=o,this.removeListener=a,this.dispose=l;function o(c){i&&i.addListener(c)}function a(c){i&&i.removeListener(c)}function s(c){r.matches=c.matches,r.media=c.media}function l(){i&&i.removeListener(s)}}function CY(e,t,n){return new _Y(e,t,n)}var $Y=CY;const SY=sn($Y);var TY=/[A-Z]/g,EY=/^ms-/,Lm={};function kY(e){return"-"+e.toLowerCase()}function lT(e){if(Lm.hasOwnProperty(e))return Lm[e];var t=e.replace(TY,kY);return Lm[e]=EY.test(t)?"-"+t:t}function OY(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 Bn=we.oneOfType([we.string,we.number]),cT={all:we.bool,grid:we.bool,aural:we.bool,braille:we.bool,handheld:we.bool,print:we.bool,projection:we.bool,screen:we.bool,tty:we.bool,tv:we.bool,embossed:we.bool},MY={orientation:we.oneOf(["portrait","landscape"]),scan:we.oneOf(["progressive","interlace"]),aspectRatio:we.string,deviceAspectRatio:we.string,height:Bn,deviceHeight:Bn,width:Bn,deviceWidth:Bn,color:we.bool,colorIndex:we.bool,monochrome:we.bool,resolution:Bn,type:Object.keys(cT)},{type:Ybe,...AY}=MY,RY={minAspectRatio:we.string,maxAspectRatio:we.string,minDeviceAspectRatio:we.string,maxDeviceAspectRatio:we.string,minHeight:Bn,maxHeight:Bn,minDeviceHeight:Bn,maxDeviceHeight:Bn,minWidth:Bn,maxWidth:Bn,minDeviceWidth:Bn,maxDeviceWidth:Bn,minColor:we.number,maxColor:we.number,minColorIndex:we.number,maxColorIndex:we.number,minMonochrome:we.number,maxMonochrome:we.number,minResolution:Bn,maxResolution:Bn,...AY},jY={...cT,...RY};var NY={all:jY};const DY=e=>`not ${e}`,IY=(e,t)=>{const n=lT(e);return typeof t=="number"&&(t=`${t}px`),t===!0?n:t===!1?DY(n):`(${n}: ${t})`},PY=e=>e.join(" and "),LY=e=>{const t=[];return Object.keys(NY.all).forEach(n=>{const r=e[n];r!=null&&t.push(IY(n,r))}),PY(t)},FY=m.createContext(void 0),BY=e=>e.query||LY(e),iw=e=>e?Object.keys(e).reduce((n,r)=>(n[lT(r)]=e[r],n),{}):void 0,uT=()=>{const e=m.useRef(!1);return m.useEffect(()=>{e.current=!0},[]),e.current},zY=e=>{const t=m.useContext(FY),n=()=>iw(e)||iw(t),[r,i]=m.useState(n);return m.useEffect(()=>{const o=n();OY(r,o)||i(o)},[e,t]),r},WY=e=>{const t=()=>BY(e),[n,r]=m.useState(t);return m.useEffect(()=>{const i=t();n!==i&&r(i)},[e]),n},UY=(e,t)=>{const n=()=>SY(e,t||{},!!t),[r,i]=m.useState(n),o=uT();return m.useEffect(()=>{if(o){const a=n();return i(a),()=>{a&&a.dispose()}}},[e,t]),r},HY=e=>{const[t,n]=m.useState(e.matches);return m.useEffect(()=>{const r=i=>{n(i.matches)};return e.addListener(r),n(e.matches),()=>{e.removeListener(r)}},[e]),t},Fm=(e,t,n)=>{const r=zY(t),i=WY(e);if(!i)throw new Error("Invalid or missing MediaQuery!");const o=UY(i,r),a=HY(o);return uT(),m.useEffect(()=>{},[a]),m.useEffect(()=>()=>{o&&o.dispose()},[]),a},VY=["sm","md","lg","always"],dT="ResponsiveContextDropdownItem",qY=e=>e.type.displayName===dT,R1=e=>({});R1.displayName=dT;function YY(e){return e.type&&e.type===m.Fragment}const fT=e=>{const t=[];Array.isArray(e)?t.push(...e):t.push(e);const n=[];return t.forEach(r=>{if(r){if(YY(r)){n.push(...fT(r.props.children));return}n.push(r)}}),n},GY=(e,t)=>{if(t===void 0)return e;const{searchQueryString:n,...r}=t;return Ps.generatePath(e,r)+"?"+n},KY="_disabled_9mp5v_1",ZY={disabled:KY},XY=()=>{const e=Re.c(5),{ProjectIconComponent:t}=m.useContext(ln),{checkUserHasPermissions:n}=U$();let r;e[0]!==t||e[1]!==n?(r=(a,s)=>{const l=[],c=[];let u=null;const d=h=>{const{hideOn:p,children:g,cKey:v,to:x,toRoute:_,disabled:w,icon:$,pathParams:b,...C}=h.props,T=(_==null?void 0:_.permissions)!=null,k=(_==null?void 0:_.permissions)!=null&&n(_==null?void 0:_.permissions),O=(w??!1)||T&&!k,j=x??(_==null?void 0:GY(_==null?void 0:_.route,b)),S=g??(_==null?void 0:_.name),E=$??(_!=null?y.jsx(t,{icon:"link"}):void 0);if(p==="always"||VY.indexOf(p)>=s){u&&c.length>0&&c.push(u),u=null;const A=ue(C.className,{[ZY.disabled]:O});j!=null?c.push(y.jsx(Yo,{...C,as:"link",to:j,disabled:O,icon:E,className:A,children:S},v)):c.push(y.jsx(Yo,{...C,icon:E,className:A,children:S},v))}else{const A=j!=null?{as:"link",href:j}:{};l.push(y.jsx(dh,{...C,...A,icon:E,className:ue(O?"disabled":void 0,C.className),children:S},v))}};return fT(a).forEach(h=>{h&&m.isValidElement(h)&&(qY(h)?d(h):u=h)}),{buttons:l,dropdownItems:c}},e[0]=t,e[1]=n,e[2]=r):r=e[2];const i=r;let o;return e[3]!==i?(o={getProcessedChildren:i},e[3]=i,e[4]=o):o=e[4],o},hT=e=>{const t=Re.c(18),{children:n}=e,{getProcessedChildren:r}=XY();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i={maxWidth:768},t[0]=i):i=t[0];const o=Fm(i);let a;t[1]===Symbol.for("react.memo_cache_sentinel")?(a={minWidth:769,maxWidth:1200},t[1]=a):a=t[1];const s=Fm(a);let l;t[2]===Symbol.for("react.memo_cache_sentinel")?(l={minWidth:1201},t[2]=l):l=t[2];const c=Fm(l);let u;t[3]!==c||t[4]!==s||t[5]!==o?(u=[o,s,c],t[3]=c,t[4]=s,t[5]=o,t[6]=u):u=t[6];const d=u.indexOf(!0);let f;t[7]!==n||t[8]!==r||t[9]!==d?(f=r(n,d),t[7]=n,t[8]=r,t[9]=d,t[10]=f):f=t[10];const{buttons:h,dropdownItems:p}=f;let g;t[11]!==h?(g=y.jsx(y.Fragment,{children:h}),t[11]=h,t[12]=g):g=t[12];let v;t[13]!==p?(v=p.length>0?y.jsx(q0,{toggle:y.jsx(V0,{as:H0}),children:p}):null,t[13]=p,t[14]=v):v=t[14];let x;return t[15]!==g||t[16]!==v?(x=y.jsxs("div",{className:"d-flex gap-1",children:[g,v]}),t[15]=g,t[16]=v,t[17]=x):x=t[17],x};hT.Item=R1;const QY=m.createContext(void 0);function JY(e,t,n,r){var i=this,o=m.useRef(null),a=m.useRef(0),s=m.useRef(0),l=m.useRef(null),c=m.useRef([]),u=m.useRef(),d=m.useRef(),f=m.useRef(e),h=m.useRef(!0);f.current=e;var p=typeof window<"u",g=!t&&t!==0&&p;if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var v=!!(n=n||{}).leading,x=!("trailing"in n)||!!n.trailing,_="maxWait"in n,w="debounceOnServer"in n&&!!n.debounceOnServer,$=_?Math.max(+n.maxWait||0,t):null;m.useEffect(function(){return h.current=!0,function(){h.current=!1}},[]);var b=m.useMemo(function(){var C=function(A){var D=c.current,R=u.current;return c.current=u.current=null,a.current=A,s.current=s.current||A,d.current=f.current.apply(R,D)},T=function(A,D){g&&cancelAnimationFrame(l.current),l.current=g?requestAnimationFrame(A):setTimeout(A,D)},k=function(A){if(!h.current)return!1;var D=A-o.current;return!o.current||D>=t||D<0||_&&A-a.current>=$},O=function(A){return l.current=null,x&&c.current?C(A):(c.current=u.current=null,d.current)},j=function A(){var D=Date.now();if(v&&s.current===a.current&&S(),k(D))return O(D);if(h.current){var R=t-(D-o.current),M=_?Math.min(R,$-(D-a.current)):R;T(A,M)}},S=function(){r&&r({})},E=function(){if(p||w){var A=Date.now(),D=k(A);if(c.current=[].slice.call(arguments),u.current=i,o.current=A,D){if(!l.current&&h.current)return a.current=o.current,T(j,t),v?C(o.current):d.current;if(_)return T(j,t),C(o.current)}return l.current||T(j,t),d.current}};return E.cancel=function(){var A=l.current;A&&(g?cancelAnimationFrame(l.current):clearTimeout(l.current)),a.current=0,c.current=o.current=u.current=l.current=null,A&&r&&r({})},E.isPending=function(){return!!l.current},E.flush=function(){return l.current?O(Date.now()):d.current},E},[v,_,t,$,x,g,p,w,r]);return b}function eG(e,t){return e===t}function j1(e,t,n){var r=n&&n.equalityFn||eG,i=m.useRef(e),o=m.useState({})[1],a=JY(m.useCallback(function(l){i.current=l,o({})},[o]),t,n,o),s=m.useRef(e);return r(s.current,e)||(a(e),s.current=e),[i.current,a]}const tG="_feedback_esh1j_1",nG="_feedback-spacer_esh1j_8",ow={feedback:tG,feedbackSpacer:nG},Th=e=>{const t=Re.c(9),{message:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=ue("invalid-feedback luminus-invalid-feedback",ow.feedback),t[0]=r):r=t[0];let i;t[1]!==n?(i=y.jsx("div",{className:r,children:n}),t[1]=n,t[2]=i):i=t[2];let o;t[3]===Symbol.for("react.memo_cache_sentinel")?(o=ue("invalid-feedback-spacer",ow.feedbackSpacer),t[3]=o):o=t[3];let a;t[4]!==n?(a=y.jsx("div",{className:o,children:n}),t[4]=n,t[5]=a):a=t[5];let s;return t[6]!==i||t[7]!==a?(s=y.jsxs(y.Fragment,{children:[i,a]}),t[6]=i,t[7]=a,t[8]=s):s=t[8],s},rG="_wrapper_1mvyk_1",iG="_open_1mvyk_9",oG="_dropdown_1mvyk_13",aG="_search-input-container_1mvyk_19",sG="_search-input_1mvyk_19",lG="_loading-container_1mvyk_25",cG="_items-container_1mvyk_32",uG="_header-row_1mvyk_38",dG="_name_1mvyk_49",fG="_item_1mvyk_32",hG="_column-item_1mvyk_65",pG="_action-buttons-container_1mvyk_89",mG="_reverse_1mvyk_97",gG="_action-button_1mvyk_89",vG="_actions-dropdown_1mvyk_110",Cn={wrapper:rG,open:iG,dropdown:oG,searchInputContainer:aG,searchInput:sG,loadingContainer:lG,itemsContainer:cG,headerRow:uG,name:dG,item:fG,columnItem:hG,actionButtonsContainer:pG,reverse:mG,actionButton:gG,actionsDropdown:vG},pT=({show:e,onCancel:t,items:n,suggestedItems:r,suggestedItemsTitle:i,currentSelection:o,onSelectionChange:a,onSearchQueryChange:s,texts:l,itemsNameWidth:c,additionalColumns:u,displayIdAsName:d=!1,autoHideSearch:f=!1,allItemsLength:h,disabled:p,isLoading:g=!1,inputRef:v,archiveColumn:x="archive",addNewOptionPath:_,refreshOptions:w,noRemoveButton:$=!1,customEllipsisOptions:b})=>{var Te;const{texts:{customSelect:C}}=m.useContext(ln),T=m.useRef(null),k=m.useRef(null),O=m.useRef(null),j=m.useRef(null),S=m.useRef(null),[E,A]=m.useState(""),[D]=j1(E,500),[,R]=m.useState(!1),{copyToClipboard:M}=V$(),I=(Te=v.current)==null?void 0:Te.getBoundingClientRect(),F=(I==null?void 0:I.x)??0,U=((I==null?void 0:I.x)??0)+((I==null?void 0:I.width)??0),P=(I==null?void 0:I.y)??0,W=((I==null?void 0:I.y)??0)+((I==null?void 0:I.height)??0),q=(I==null?void 0:I.width)??0,H=(I==null?void 0:I.height)??0,Y=5,{isMobile:G}=ou(),J=8,ee=m.useMemo(()=>F?F>window.innerWidth/2-J:!1,[F]),z=m.useMemo(()=>P?P>window.innerHeight/2-J:!1,[P]);m.useEffect(()=>{var ce;e&&((ce=O.current)==null||ce.focus())},[O,e]),m.useEffect(()=>{e||A("")},[e]),m.useEffect(()=>{s&&s(D)},[D,s]);const[L,B]=m.useState(null);m.useEffect(()=>{e&&n.length>0?B(0):B(null)},[n,e]);const V=m.useMemo(()=>L!==null?n.at(L)??null:null,[L,n]),N=m.useCallback((ce,ae)=>{var De,Bt;const ye=document.getElementById(`item-${ce}`);if(ye){const Fe=ye.clientHeight??0;ae==="down"?(De=j.current)==null||De.scrollBy({left:0,top:Fe,behavior:"smooth"}):(Bt=j.current)==null||Bt.scrollBy({left:0,top:-Fe,behavior:"smooth"})}},[]),X=m.useCallback(ce=>{if(L===null||p)return;const ae=L+ce;ae<0||ae>=n.length||B(ye=>(ye!==null&&N(ye,ce>0?"down":"up"),ae))},[L,n,p,N]),Q=m.useCallback(ce=>{if(e)switch(ce.key){case"Escape":ce.stopPropagation(),ce.preventDefault(),t();break;case"Enter":ce.stopPropagation(),ce.preventDefault(),p||a(V);break;case"ArrowUp":ce.stopPropagation(),ce.preventDefault(),X(-1);break;case"ArrowDown":ce.stopPropagation(),ce.preventDefault(),X(1);break}},[t,e,X,V,p,a]),Z=m.useCallback(()=>{R(ce=>!ce)},[]);m.useEffect(()=>(window.addEventListener("scroll",Z),()=>{window.removeEventListener("scroll",Z)}),[Z]),m.useEffect(()=>(window.addEventListener("resize",Z),()=>{window.removeEventListener("resize",Z)}),[Z]),H$(Q),W$([T,k,S],t);const le=c??(u&&u.length>0?250:0),te=(u==null?void 0:u.reduce((ce,ae)=>ce+(ae.width??100),0))??0,re=m.useMemo(()=>(o&&e&&!p&&!$)??!1,[o,e,p,$]),se=m.useMemo(()=>(o&&e)??!1,[o,e]),fe=m.useMemo(()=>e&&(se||_!==void 0||w!==void 0||b!=null&&b.length>0),[e,se,_,w,b]),xe=32,ve=G?`calc(100vw - ${xe}px)`:`calc(max(${q}px, calc(${le}px + ${te}px)))`,be=m.useMemo(()=>(E.length<1&&r&&r.length>0?r:n).map(ce=>{var ae,ye;return d?((ae=ce.id)==null?void 0:ae.toString())??"":((ye=ce.name)==null?void 0:ye.toString())??""}).reduce((ce,ae)=>ce.length>ae.length?ce:ae,""),[E,r,n,d]);return y.jsxs(y.Fragment,{children:[y.jsx(mT,{show:e,onClick:t}),y.jsxs("div",{className:ue("luminus-dropdown-picker-actions",Cn.actionButtonsContainer,{[Cn.reverse]:ee}),style:{top:`calc(${P}px + ${H/2}px - 12px)`,left:ee?re&&se?`calc(${F}px - 24px - 8px - 24px - 4px)`:`calc(${F}px - 24px - 8px)`:`calc(${U}px + 8px)`},children:[re&&y.jsx("button",{ref:k,type:"button",className:ue("luminus-dropdown-picker-clear-button",Cn.actionButton),onClick:()=>!p&&a(null),children:y.jsx(zn,{variant:"caption",className:"text-danger",children:y.jsx(MC,{size:16})})}),fe?y.jsx("div",{ref:S,children:y.jsxs(q0,{toggle:y.jsx(V0,{as:H0,className:ue("luminus-dropdown-picker-actions-dropdown",Cn.actionsDropdown),icon:y.jsx(zn,{variant:"caption",className:"text-primary",children:y.jsx(RC,{size:16})})}),children:[se?y.jsx(Yo,{icon:y.jsx(S7,{}),onClick:()=>{var ce,ae;M(d?((ce=o==null?void 0:o.id)==null?void 0:ce.toString())??"":((ae=o==null?void 0:o.name)==null?void 0:ae.toString())??"")},children:C.copySelection}):null,se&&(_||w)?y.jsx(Yg,{}):null,_?y.jsx(Yo,{icon:y.jsx($7,{}),onClick:()=>{window.open(_,"_blank")},children:C.addNewOption}):null,w?y.jsx(Yo,{icon:y.jsx(I7,{}),onClick:()=>{w()},children:C.refreshOptions}):null,b&&b.length>0?y.jsx(Yg,{}):null,b==null?void 0:b.map(ce=>y.jsxs(Yo,{onClick:()=>{ce.onClick(),t()},children:[ce.icon??null,ce.label]},ce.label))]})}):null]}),y.jsx("div",{className:ue("luminus-dropdown-picker",Cn.wrapper,{[Cn.open]:e}),style:{top:z?`calc(${P}px - 50vh - 8px)`:`calc(${W}px + 8px)`,left:G?`${xe/2}px`:ee?`calc(${U}px - ${ve})`:F,right:G?`${xe/2}px`:ee?`${U}px`:`calc(${F}px + ${ve})`,width:ve,justifyContent:z?"flex-end":"flex-start"},children:y.jsx("div",{ref:T,className:ue("shadow rounded",Cn.dropdown),children:!p&&y.jsxs(y.Fragment,{children:[!s||f&&(h??n.length)<=Y?null:y.jsx("div",{className:ue("search-input-container border-bottom",Cn.searchInputContainer),children:y.jsx(si.Control,{ref:O,type:"search",size:"sm",className:Cn.searchInput,placeholder:l.searchPlaceholder,value:E,onChange:ce=>{var ae;return A(((ae=ce.target)==null?void 0:ae.value)??"")}})}),E.length<1&&r&&r.length>0?y.jsx(I1,{variant:"info",size:"sm",children:i??C.suggestedItemsTitle}):null,g?y.jsx("div",{className:Cn.loadingContainer,children:y.jsx(T0,{animation:"border",variant:"primary"})}):(E.length<1&&r&&(r==null?void 0:r.length)>0||n.length>0)&&y.jsxs("div",{ref:j,className:ue("items",Cn.itemsContainer),children:[u&&u.length>0&&y.jsxs("div",{className:ue("header-row border-bottom",Cn.headerRow),children:[y.jsx("div",{className:Cn.name,children:y.jsx(zn,{variant:"body2",children:be})}),u==null?void 0:u.filter(ce=>ce.key!==x).map(ce=>y.jsx("div",{className:Cn.columnItem,style:{width:`${ce.width??100}px`,minWidth:`${ce.width??100}px`,maxWidth:`${ce.width??100}px`},children:y.jsx(zn,{variant:"caption",children:ce.name})},ce.key))]}),(E.length<1&&r&&r.length>0?r:n).map((ce,ae)=>y.jsxs("button",{id:`item-${ae}`,type:"button",className:ue("item cursor-pointer",Cn.item,{[Cn.focused]:L===ae},{focused:L===ae},{archive:ce.additionalColumns?ce.additionalColumns[x]:!1}),onClick:()=>!p&&a(ce),onMouseEnter:()=>B(ae),children:[y.jsx("div",{className:Cn.name,children:y.jsx(zn,{variant:"body2",children:d?ce.id:ce.name})}),u==null?void 0:u.filter(ye=>ye.key!==x).map(ye=>y.jsx("div",{className:Cn.columnItem,style:{width:`${ye.width??100}px`,minWidth:`${ye.width??100}px`,maxWidth:`${ye.width??100}px`},children:y.jsx(zn,{variant:"caption",className:ue("text-muted"),children:ce.additionalColumns&&ce.additionalColumns[ye.key]})},ye.key))]},ce.id))]})]})})})]})},bG="_backdrop_3huvf_1",yG="_show_3huvf_11",aw={backdrop:bG,show:yG},mT=e=>{const t=Re.c(7),{show:n,onClick:r}=e;let i;t[0]!==n?(i=ue("luminus-backdrop",aw.backdrop,{[aw.show]:n}),t[0]=n,t[1]=i):i=t[1];let o;t[2]!==r?(o=()=>r&&r(),t[2]=r,t[3]=o):o=t[3];let a;return t[4]!==i||t[5]!==o?(a=y.jsx("div",{className:i,onClick:o}),t[4]=i,t[5]=o,t[6]=a):a=t[6],a};var N1={},yu={};Object.defineProperty(yu,"__esModule",{value:!0});yu.bind=void 0;function xG(e,t){var n=t.type,r=t.listener,i=t.options;return e.addEventListener(n,r,i),function(){e.removeEventListener(n,r,i)}}yu.bind=xG;var Eh={},ns=Zn&&Zn.__assign||function(){return ns=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},ns.apply(this,arguments)};Object.defineProperty(Eh,"__esModule",{value:!0});Eh.bindAll=void 0;var wG=yu;function sw(e){if(!(typeof e>"u"))return typeof e=="boolean"?{capture:e}:e}function _G(e,t){if(t==null)return e;var n=ns(ns({},e),{options:ns(ns({},sw(t)),sw(e.options))});return n}function CG(e,t,n){var r=t.map(function(i){var o=_G(i,n);return(0,wG.bind)(e,o)});return function(){r.forEach(function(o){return o()})}}Eh.bindAll=CG;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.bindAll=e.bind=void 0;var t=yu;Object.defineProperty(e,"bind",{enumerable:!0,get:function(){return t.bind}});var n=Eh;Object.defineProperty(e,"bindAll",{enumerable:!0,get:function(){return n.bindAll}})})(N1);function gT(e){var t=null;return function(){if(!t){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=e.apply(this,i);t={result:a}}return t.result}}var D1=gT(function(){if(process.env.NODE_ENV==="test")return!1;var t=navigator,n=t.userAgent;return n.includes("AppleWebKit")&&!n.includes("Chrome")}),cv={isLeavingWindow:Symbol("leaving"),isEnteringWindow:Symbol("entering")};function $G(e){var t=e.dragLeave;return D1()?t.hasOwnProperty(cv.isLeavingWindow):!1}(function(){if(typeof window>"u"||process.env.NODE_ENV==="test"||!D1())return;function t(){return{enterCount:0,isOverWindow:!1}}var n=t();function r(){n=t()}N1.bindAll(window,[{type:"dragstart",listener:function(){n.enterCount=0,n.isOverWindow=!0}},{type:"drop",listener:r},{type:"dragend",listener:r},{type:"dragenter",listener:function(o){!n.isOverWindow&&n.enterCount===0&&(o[cv.isEnteringWindow]=!0),n.isOverWindow=!0,n.enterCount++}},{type:"dragleave",listener:function(o){n.enterCount--,n.isOverWindow&&n.enterCount===0&&(o[cv.isLeavingWindow]=!0,n.isOverWindow=!1)}}],{capture:!0})})();var SG=function(t){var n=[],r=null,i=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];n=s,!r&&(r=requestAnimationFrame(function(){r=null,t.apply(void 0,n)}))};return i.cancel=function(){r&&(cancelAnimationFrame(r),r=null)},i},Bm=SG(function(e){return e()}),id=function(){var e=null;function t(r){var i=requestAnimationFrame(function(){e=null,r()});e={frameId:i,fn:r}}function n(){e&&(cancelAnimationFrame(e.frameId),e.fn(),e=null)}return{schedule:t,flush:n}}();function TG(e){var t=e.source,n=e.initial,r=e.dispatchEvent,i={dropTargets:[]};function o(s){r(s),i={dropTargets:s.payload.location.current.dropTargets}}var a={start:function(l){var c=l.nativeSetDragImage,u={current:n,previous:i,initial:n};o({eventName:"onGenerateDragPreview",payload:{source:t,location:u,nativeSetDragImage:c}}),id.schedule(function(){o({eventName:"onDragStart",payload:{source:t,location:u}})})},dragUpdate:function(l){var c=l.current;id.flush(),Bm.cancel(),o({eventName:"onDropTargetChange",payload:{source:t,location:{initial:n,previous:i,current:c}}})},drag:function(l){var c=l.current;Bm(function(){id.flush();var u={initial:n,previous:i,current:c};o({eventName:"onDrag",payload:{source:t,location:u}})})},drop:function(l){var c=l.current,u=l.updatedSourcePayload;id.flush(),Bm.cancel(),o({eventName:"onDrop",payload:{source:u??t,location:{current:c,previous:i,initial:n}}})}};return a}const I1=e=>{const{variant:t,children:n,className:r,size:i="md",typographyVariant:o=i==="sm"?"body2":"body",...a}={...e};return y.jsx(D8,{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:y.jsx(zn,{variant:o,children:n})})};var P1=wu(),tt=e=>xu(e,P1),L1=wu();tt.write=e=>xu(e,L1);var kh=wu();tt.onStart=e=>xu(e,kh);var F1=wu();tt.onFrame=e=>xu(e,F1);var B1=wu();tt.onFinish=e=>xu(e,B1);var cs=[];tt.setTimeout=(e,t)=>{const n=tt.now()+t,r=()=>{const o=cs.findIndex(a=>a.cancel==r);~o&&cs.splice(o,1),so-=~o?1:0},i={time:n,handler:e,cancel:r};return cs.splice(vT(n),0,i),so+=1,bT(),i};var vT=e=>~(~cs.findIndex(t=>t.time>e)||~cs.length);tt.cancel=e=>{kh.delete(e),F1.delete(e),B1.delete(e),P1.delete(e),L1.delete(e)};tt.sync=e=>{uv=!0,tt.batchedUpdates(e),uv=!1};tt.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...i){t=i,tt.onStart(n)}return r.handler=e,r.cancel=()=>{kh.delete(n),t=null},r};var z1=typeof window<"u"?window.requestAnimationFrame:()=>{};tt.use=e=>z1=e;tt.now=typeof performance<"u"?()=>performance.now():Date.now;tt.batchedUpdates=e=>e();tt.catch=console.error;tt.frameLoop="always";tt.advance=()=>{tt.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):xT()};var ao=-1,so=0,uv=!1;function xu(e,t){uv?(t.delete(e),e(0)):(t.add(e),bT())}function bT(){ao<0&&(ao=0,tt.frameLoop!=="demand"&&z1(yT))}function EG(){ao=-1}function yT(){~ao&&(z1(yT),tt.batchedUpdates(xT))}function xT(){const e=ao;ao=tt.now();const t=vT(ao);if(t&&(wT(cs.splice(0,t),n=>n.handler()),so-=t),!so){EG();return}kh.flush(),P1.flush(e?Math.min(64,ao-e):16.667),F1.flush(),L1.flush(),B1.flush()}function wu(){let e=new Set,t=e;return{add(n){so+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return so-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,so-=t.size,wT(t,r=>r(n)&&e.add(r)),so+=e.size,t=e)}}}function wT(e,t){e.forEach(n=>{try{t(n)}catch(r){tt.catch(r)}})}var kG=Object.defineProperty,OG=(e,t)=>{for(var n in t)kG(e,n,{get:t[n],enumerable:!0})},Pr={};OG(Pr,{assign:()=>AG,colors:()=>uo,createStringInterpolator:()=>U1,skipAnimation:()=>CT,to:()=>_T,willAdvance:()=>H1});function dv(){}var MG=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),pe={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 bi(e,t){if(pe.arr(e)){if(!pe.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 Ge=(e,t)=>e.forEach(t);function ri(e,t,n){if(pe.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 Un=e=>pe.und(e)?[]:pe.arr(e)?e:[e];function Xl(e,t){if(e.size){const n=Array.from(e);e.clear(),Ge(n,t)}}var Bl=(e,...t)=>Xl(e,n=>n(...t)),W1=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),U1,_T,uo=null,CT=!1,H1=dv,AG=e=>{e.to&&(_T=e.to),e.now&&(tt.now=e.now),e.colors!==void 0&&(uo=e.colors),e.skipAnimation!=null&&(CT=e.skipAnimation),e.createStringInterpolator&&(U1=e.createStringInterpolator),e.requestAnimationFrame&&tt.use(e.requestAnimationFrame),e.batchedUpdates&&(tt.batchedUpdates=e.batchedUpdates),e.willAdvance&&(H1=e.willAdvance),e.frameLoop&&(tt.frameLoop=e.frameLoop)},Ql=new Set,gr=[],zm=[],ff=0,Oh={get idle(){return!Ql.size&&!gr.length},start(e){ff>e.priority?(Ql.add(e),tt.onStart(RG)):($T(e),tt(fv))},advance:fv,sort(e){if(ff)tt.onFrame(()=>Oh.sort(e));else{const t=gr.indexOf(e);~t&&(gr.splice(t,1),ST(e))}},clear(){gr=[],Ql.clear()}};function RG(){Ql.forEach($T),Ql.clear(),tt(fv)}function $T(e){gr.includes(e)||ST(e)}function ST(e){gr.splice(jG(gr,t=>t.priority>e.priority),0,e)}function fv(e){const t=zm;for(let n=0;n<gr.length;n++){const r=gr[n];ff=r.priority,r.idle||(H1(r),r.advance(e),r.idle||t.push(r))}return ff=0,zm=gr,zm.length=0,gr=t,gr.length>0}function jG(e,t){const n=e.findIndex(t);return n<0?e.length:n}var NG={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},jr="[-+]?\\d*\\.?\\d+",hf=jr+"%";function Mh(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var DG=new RegExp("rgb"+Mh(jr,jr,jr)),IG=new RegExp("rgba"+Mh(jr,jr,jr,jr)),PG=new RegExp("hsl"+Mh(jr,hf,hf)),LG=new RegExp("hsla"+Mh(jr,hf,hf,jr)),FG=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,BG=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,zG=/^#([0-9a-fA-F]{6})$/,WG=/^#([0-9a-fA-F]{8})$/;function UG(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=zG.exec(e))?parseInt(t[1]+"ff",16)>>>0:uo&&uo[e]!==void 0?uo[e]:(t=DG.exec(e))?(Va(t[1])<<24|Va(t[2])<<16|Va(t[3])<<8|255)>>>0:(t=IG.exec(e))?(Va(t[1])<<24|Va(t[2])<<16|Va(t[3])<<8|uw(t[4]))>>>0:(t=FG.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=WG.exec(e))?parseInt(t[1],16)>>>0:(t=BG.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=PG.exec(e))?(lw(cw(t[1]),od(t[2]),od(t[3]))|255)>>>0:(t=LG.exec(e))?(lw(cw(t[1]),od(t[2]),od(t[3]))|uw(t[4]))>>>0:null}function Wm(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 lw(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=Wm(i,r,e+1/3),a=Wm(i,r,e),s=Wm(i,r,e-1/3);return Math.round(o*255)<<24|Math.round(a*255)<<16|Math.round(s*255)<<8}function Va(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function cw(e){return(parseFloat(e)%360+360)%360/360}function uw(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function od(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function dw(e){let t=UG(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 Ec=(e,t,n)=>{if(pe.fun(e))return e;if(pe.arr(e))return Ec({range:e,output:t,extrapolate:n});if(pe.str(e.output[0]))return U1(e);const r=e,i=r.output,o=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(c=>c);return c=>{const u=VG(c,o);return HG(c,o[u],o[u+1],i[u],i[u+1],l,a,s,r.map)}};function HG(e,t,n,r,i,o,a,s,l){let c=l?l(e):e;if(c<t){if(a==="identity")return c;a==="clamp"&&(c=t)}if(c>n){if(s==="identity")return c;s==="clamp"&&(c=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?c=-c:n===1/0?c=c-t:c=(c-t)/(n-t),c=o(c),r===-1/0?c=-c:i===1/0?c=c+r:c=c*(i-r)+r,c)}function VG(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var qG={linear:e=>e},kc=Symbol.for("FluidValue.get"),Rs=Symbol.for("FluidValue.observers"),mr=e=>!!(e&&e[kc]),Yn=e=>e&&e[kc]?e[kc]():e,fw=e=>e[Rs]||null;function YG(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Oc(e,t){const n=e[Rs];n&&n.forEach(r=>{YG(r,t)})}var TT=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");GG(this,e)}},GG=(e,t)=>ET(e,kc,t);function Gs(e,t){if(e[kc]){let n=e[Rs];n||ET(e,Rs,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Mc(e,t){const n=e[Rs];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Rs]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var ET=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Sd=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,KG=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,hw=new RegExp(`(${Sd.source})(%|[a-z]+)`,"i"),ZG=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Ah=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,kT=e=>{const[t,n]=XG(e);if(!t||W1())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&&Ah.test(n))return kT(n);if(n)return n}return e},XG=e=>{const t=Ah.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Um,QG=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,OT=e=>{Um||(Um=uo?new RegExp(`(${Object.keys(uo).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(o=>Yn(o).replace(Ah,kT).replace(KG,dw).replace(Um,dw)),n=t.map(o=>o.match(Sd).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=>Ec({...e,output:o}));return o=>{var l;const a=!hw.test(t[0])&&((l=t.find(c=>hw.test(c)))==null?void 0:l.replace(Sd,""));let s=0;return t[0].replace(Sd,()=>`${i[s++](o)}${a||""}`).replace(ZG,QG)}},V1="react-spring: ",MT=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${V1}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},JG=MT(console.warn);function eK(){JG(`${V1}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var tK=MT(console.warn);function nK(){tK(`${V1}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 Rh(e){return pe.str(e)&&(e[0]=="#"||/\d/.test(e)||!W1()&&Ah.test(e)||e in(uo||{}))}var Go=W1()?m.useEffect:m.useLayoutEffect,rK=()=>{const e=m.useRef(!1);return Go(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function q1(){const e=m.useState()[1],t=rK();return()=>{t.current&&e(Math.random())}}var Y1=e=>m.useEffect(e,iK),iK=[];function hv(e){const t=m.useRef(void 0);return m.useEffect(()=>{t.current=e}),t.current}var Ac=Symbol.for("Animated:node"),oK=e=>!!e&&e[Ac]===e,Vr=e=>e&&e[Ac],G1=(e,t)=>MG(e,Ac,t),jh=e=>e&&e[Ac]&&e[Ac].getPayload(),AT=class{constructor(){G1(this,this)}getPayload(){return this.payload||[]}},Nh=class RT extends AT{constructor(t){super(),this._value=t,this.done=!0,this.durationProgress=0,pe.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new RT(t)}getPayload(){return[this]}getValue(){return this._value}setValue(t,n){return pe.num(t)&&(this.lastPosition=t,n&&(t=Math.round(t/n)*n,this.done&&(this.lastPosition=t))),this._value===t?!1:(this._value=t,!0)}reset(){const{done:t}=this;this.done=!1,pe.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}},pf=class jT extends Nh{constructor(t){super(0),this._string=null,this._toString=Ec({output:[t,t]})}static create(t){return new jT(t)}getValue(){const t=this._string;return t??(this._string=this._toString(this._value))}setValue(t){if(pe.str(t)){if(t==this._string)return!1;this._string=t,this._value=1}else if(super.setValue(t))this._string=null;else return!1;return!0}reset(t){t&&(this._toString=Ec({output:[this.getValue(),t]})),this._value=0,super.reset()}},mf={dependencies:null},Dh=class extends AT{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return ri(this.source,(n,r)=>{oK(n)?t[r]=n.getValue(e):mr(n)?t[r]=Yn(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Ge(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return ri(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){mf.dependencies&&mr(e)&&mf.dependencies.add(e);const t=jh(e);t&&Ge(t,n=>this.add(n))}},aK=class NT extends Dh{constructor(t){super(t)}static create(t){return new NT(t)}getValue(){return this.source.map(t=>t.getValue())}setValue(t){const n=this.getPayload();return t.length==n.length?n.map((r,i)=>r.setValue(t[i])).some(Boolean):(super.setValue(t.map(sK)),!0)}};function sK(e){return(Rh(e)?pf:Nh).create(e)}function pv(e){const t=Vr(e);return t?t.constructor:pe.arr(e)?aK:Rh(e)?pf:Nh}var pw=(e,t)=>{const n=!pe.fun(e)||e.prototype&&e.prototype.isReactComponent;return m.forwardRef((r,i)=>{const o=m.useRef(null),a=n&&m.useCallback(p=>{o.current=uK(i,p)},[i]),[s,l]=cK(r,t),c=q1(),u=()=>{const p=o.current;if(n&&!p)return;(p?t.applyAnimatedValues(p,s.getValue(!0)):!1)===!1&&c()},d=new lK(u,l),f=m.useRef(void 0);Go(()=>(f.current=d,Ge(l,p=>Gs(p,d)),()=>{f.current&&(Ge(f.current.deps,p=>Mc(p,f.current)),tt.cancel(f.current.update))})),m.useEffect(u,[]),Y1(()=>()=>{const p=f.current;Ge(p.deps,g=>Mc(g,p))});const h=t.getComponentProps(s.getValue());return ie.createElement(e,{...h,ref:a})})},lK=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&tt.write(this.update)}};function cK(e,t){const n=new Set;return mf.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new Dh(e),mf.dependencies=null,[e,n]}function uK(e,t){return e&&(pe.fun(e)?e(t):e.current=t),t}var mw=Symbol.for("AnimatedComponent"),dK=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=i=>new Dh(i),getComponentProps:r=i=>i}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=a=>{const s=gw(a)||"Anonymous";return pe.str(a)?a=o[a]||(o[a]=pw(a,i)):a=a[mw]||(a[mw]=pw(a,i)),a.displayName=`Animated(${s})`,a};return ri(e,(a,s)=>{pe.arr(e)&&(s=gw(a)),o[s]=o(a)}),{animated:o}},gw=e=>pe.str(e)?e:e&&pe.str(e.displayName)?e.displayName:pe.fun(e)&&e.name||null;function Gn(e,...t){return pe.fun(e)?e(...t):e}var Jl=(e,t)=>e===!0||!!(t&&e&&(pe.fun(e)?e(t):Un(e).includes(t))),DT=(e,t)=>pe.obj(e)?t&&e[t]:e,IT=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,fK=e=>e,Ih=(e,t=fK)=>{let n=hK;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);pe.und(o)||(r[i]=o)}return r},hK=["config","onProps","onStart","onChange","onPause","onResume","onRest"],pK={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 mK(e){const t={};let n=0;if(ri(e,(r,i)=>{pK[i]||(t[i]=r,n++)}),n)return t}function K1(e){const t=mK(e);if(t){const n={to:t};return ri(e,(r,i)=>i in t||(n[i]=r)),n}return{...e}}function Rc(e){return e=Yn(e),pe.arr(e)?e.map(Rc):Rh(e)?Pr.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function PT(e){for(const t in e)return!0;return!1}function mv(e){return pe.fun(e)||pe.arr(e)&&pe.obj(e[0])}function gv(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function LT(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var FT={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}},vv={...FT.default,mass:1,damping:1,easing:qG.linear,clamp:!1},gK=class{constructor(){this.velocity=0,Object.assign(this,vv)}};function vK(e,t,n){n&&(n={...n},vw(n,t),t={...n,...t}),vw(e,t),Object.assign(e,t);for(const a in vv)e[a]==null&&(e[a]=vv[a]);let{frequency:r,damping:i}=e;const{mass:o}=e;return pe.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 vw(e,t){if(!pe.und(t.decay))e.duration=void 0;else{const n=!pe.und(t.tension)||!pe.und(t.friction);(n||!pe.und(t.frequency)||!pe.und(t.damping)||!pe.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var bw=[],bK=class{constructor(){this.changed=!1,this.values=bw,this.toValues=null,this.fromValues=bw,this.config=new gK,this.immediate=!1}};function BT(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise((a,s)=>{let l,c,u=Jl(n.cancel??(r==null?void 0:r.cancel),t);if(u)h();else{pe.und(n.pause)||(i.paused=Jl(n.pause,t));let p=r==null?void 0:r.pause;p!==!0&&(p=i.paused||Jl(p,t)),l=Gn(n.delay||0,t),p?(i.resumeQueue.add(f),o.pause()):(o.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(c),c.cancel(),l=c.time-tt.now()}function f(){l>0&&!Pr.skipAnimation?(i.delayed=!0,c=tt.setTimeout(h,l),i.pauseQueue.add(d),i.timeouts.add(c)):h()}function h(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(c),e<=(i.cancelId||0)&&(u=!0);try{o.start({...n,callId:e,cancel:u},a)}catch(p){s(p)}}})}var Z1=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?us(e.get()):t.every(n=>n.noop)?zT(e.get()):Mr(e.get(),t.every(n=>n.finished)),zT=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Mr=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),us=e=>({value:e,cancelled:!0,finished:!1});function WT(e,t,n,r){const{callId:i,parentId:o,onRest:a}=t,{asyncTo:s,promise:l}=n;return!o&&e===s&&!t.reset?l:n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;const c=Ih(t,(v,x)=>x==="onRest"?void 0:v);let u,d;const f=new Promise((v,x)=>(u=v,d=x)),h=v=>{const x=i<=(n.cancelId||0)&&us(r)||i!==n.asyncId&&Mr(r,!1);if(x)throw v.result=x,d(v),v},p=(v,x)=>{const _=new yw,w=new xw;return(async()=>{if(Pr.skipAnimation)throw jc(n),w.result=Mr(r,!1),d(w),w;h(_);const $=pe.obj(v)?{...v}:{...x,to:v};$.parentId=i,ri(c,(C,T)=>{pe.und($[T])&&($[T]=C)});const b=await r.start($);return h(_),n.paused&&await new Promise(C=>{n.resumeQueue.add(C)}),b})()};let g;if(Pr.skipAnimation)return jc(n),Mr(r,!1);try{let v;pe.arr(e)?v=(async x=>{for(const _ of x)await p(_)})(e):v=Promise.resolve(e(p,r.stop.bind(r))),await Promise.all([v.then(u),f]),g=Mr(r.get(),!0,!1)}catch(v){if(v instanceof yw)g=v.result;else if(v instanceof xw)g=v.result;else throw v}finally{i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?s:void 0,n.promise=o?l:void 0)}return pe.fun(a)&&tt.batchedUpdates(()=>{a(g,r,r.item)}),g})()}function jc(e,t){Xl(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var yw=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.")}},xw=class extends Error{constructor(){super("SkipAnimationSignal")}},bv=e=>e instanceof X1,yK=1,X1=class extends TT{constructor(){super(...arguments),this.id=yK++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Vr(this);return e&&e.getValue()}to(...e){return Pr.to(this,e)}interpolate(...e){return eK(),Pr.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){Oc(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Oh.sort(this),Oc(this,{type:"priority",parent:this,priority:e})}},ha=Symbol.for("SpringPhase"),UT=1,yv=2,xv=4,Hm=e=>(e[ha]&UT)>0,Zi=e=>(e[ha]&yv)>0,$l=e=>(e[ha]&xv)>0,ww=(e,t)=>t?e[ha]|=yv|UT:e[ha]&=~yv,_w=(e,t)=>t?e[ha]|=xv:e[ha]&=~xv,xK=class extends X1{constructor(e,t){if(super(),this.animation=new bK,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,!pe.und(e)||!pe.und(t)){const n=pe.obj(e)?{...e}:{...t,from:e};pe.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Zi(this)||this._state.asyncTo)||$l(this)}get goal(){return Yn(this.animation.to)}get velocity(){const e=Vr(this);return e instanceof Nh?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return Hm(this)}get isAnimating(){return Zi(this)}get isPaused(){return $l(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=jh(r.to);!a&&mr(r.to)&&(i=Un(Yn(r.to))),r.values.forEach((c,u)=>{if(c.done)return;const d=c.constructor==pf?1:a?a[u].lastPosition:i[u];let f=r.immediate,h=d;if(!f){if(h=c.lastPosition,o.tension<=0){c.done=!0;return}let p=c.elapsedTime+=e;const g=r.fromValues[u],v=c.v0!=null?c.v0:c.v0=pe.arr(o.velocity)?o.velocity[u]:o.velocity;let x;const _=o.precision||(g==d?.005:Math.min(1,Math.abs(d-g)*.001));if(pe.und(o.duration))if(o.decay){const w=o.decay===!0?.998:o.decay,$=Math.exp(-(1-w)*p);h=g+v/(1-w)*(1-$),f=Math.abs(c.lastPosition-h)<=_,x=v*$}else{x=c.lastVelocity==null?v:c.lastVelocity;const w=o.restVelocity||_/10,$=o.clamp?0:o.bounce,b=!pe.und($),C=g==d?c.v0>0:g<d;let T,k=!1;const O=1,j=Math.ceil(e/O);for(let S=0;S<j&&(T=Math.abs(x)>w,!(!T&&(f=Math.abs(d-h)<=_,f)));++S){b&&(k=h==d||h>d==C,k&&(x=-x*$,h=d));const E=-o.tension*1e-6*(h-d),A=-o.friction*.001*x,D=(E+A)/o.mass;x=x+D*O,h=h+x*O}}else{let w=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,c.durationProgress>0&&(c.elapsedTime=o.duration*c.durationProgress,p=c.elapsedTime+=e)),w=(o.progress||0)+p/this._memoizedDuration,w=w>1?1:w<0?0:w,c.durationProgress=w),h=g+o.easing(w)*(d-g),x=(h-c.lastPosition)/e,f=w==1}c.lastVelocity=x,Number.isNaN(h)&&(console.warn("Got NaN while animating:",this),f=!0)}a&&!a[u].done&&(f=!1),f?c.done=!0:t=!1,c.setValue(h,o.round)&&(n=!0)});const s=Vr(this),l=s.getValue();if(t){const c=Yn(r.to);(l!==c||n)&&!o.decay?(s.setValue(c),this._onChange(c)):n&&o.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return tt.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Zi(this)){const{to:e,config:t}=this.animation;tt.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 pe.und(e)?(n=this.queue||[],this.queue=[]):n=[pe.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>Z1(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),jc(this._state,e&&this._lastCallId),tt.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=pe.obj(n)?n[t]:n,(n==null||mv(n))&&(n=void 0),r=pe.obj(r)?r[t]:r,r==null&&(r=void 0);const i={to:n,from:r};return Hm(this)||(e.reverse&&([n,r]=[r,n]),r=Yn(r),pe.und(r)?Vr(this)||this._set(n):this._set(r)),i}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,Ih(e,(a,s)=>/^on/.test(s)?DT(a,n):a)),$w(this,e,"onProps"),Tl(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 BT(++this._lastCallId,{key:n,props:e,defaultProps:r,state:o,actions:{pause:()=>{$l(this)||(_w(this,!0),Bl(o.pauseQueue),Tl(this,"onPause",Mr(this,Sl(this,this.animation.to)),this))},resume:()=>{$l(this)&&(_w(this,!1),Zi(this)&&this._resume(),Bl(o.resumeQueue),Tl(this,"onResume",Mr(this,Sl(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(a=>{if(e.loop&&a.finished&&!(t&&a.noop)){const s=HT(e);if(s)return this._update(s,!0)}return a})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(us(this));const r=!pe.und(e.to),i=!pe.und(e.from);if(r||i)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(us(this));const{key:o,defaultProps:a,animation:s}=this,{to:l,from:c}=s;let{to:u=l,from:d=c}=e;i&&!r&&(!t.default||pe.und(u))&&(u=d),t.reverse&&([u,d]=[d,u]);const f=!bi(d,c);f&&(s.from=d),d=Yn(d);const h=!bi(u,l);h&&this._focus(u);const p=mv(t.to),{config:g}=s,{decay:v,velocity:x}=g;(r||i)&&(g.velocity=0),t.config&&!p&&vK(g,Gn(t.config,o),t.config!==a.config?Gn(a.config,o):void 0);let _=Vr(this);if(!_||pe.und(u))return n(Mr(this,!0));const w=pe.und(t.reset)?i&&!t.default:!pe.und(d)&&Jl(t.reset,o),$=w?d:this.get(),b=Rc(u),C=pe.num(b)||pe.arr(b)||Rh(b),T=!p&&(!C||Jl(a.immediate||t.immediate,o));if(h){const S=pv(u);if(S!==_.constructor)if(T)_=this._set(b);else throw Error(`Cannot animate between ${_.constructor.name} and ${S.name}, as the "to" prop suggests`)}const k=_.constructor;let O=mr(u),j=!1;if(!O){const S=w||!Hm(this)&&f;(h||S)&&(j=bi(Rc($),b),O=!j),(!bi(s.immediate,T)&&!T||!bi(g.decay,v)||!bi(g.velocity,x))&&(O=!0)}if(j&&Zi(this)&&(s.changed&&!w?O=!0:O||this._stop(l)),!p&&((O||mr(l))&&(s.values=_.getPayload(),s.toValues=mr(u)?null:k==pf?[1]:Un(b)),s.immediate!=T&&(s.immediate=T,!T&&!w&&this._set(l)),O)){const{onRest:S}=s;Ge(_K,A=>$w(this,t,A));const E=Mr(this,Sl(this,l));Bl(this._pendingCalls,E),this._pendingCalls.add(n),s.changed&&tt.batchedUpdates(()=>{var A;s.changed=!w,S==null||S(E,this),w?Gn(a.onRest,E):(A=s.onStart)==null||A.call(s,E,this)})}w&&this._set($),p?n(WT(t.to,t,this._state,this)):O?this._start():Zi(this)&&!h?this._pendingCalls.add(n):n(zT($))}_focus(e){const t=this.animation;e!==t.to&&(fw(this)&&this._detach(),t.to=e,fw(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;mr(t)&&(Gs(t,this),bv(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;mr(e)&&Mc(e,this)}_set(e,t=!0){const n=Yn(e);if(!pe.und(n)){const r=Vr(this);if(!r||!bi(n,r.getValue())){const i=pv(n);!r||r.constructor!=i?G1(this,i.create(n)):r.setValue(n),r&&tt.batchedUpdates(()=>{this._onChange(n,t)})}}return Vr(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Tl(this,"onStart",Mr(this,Sl(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Gn(this.animation.onChange,e,this)),Gn(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Vr(this).reset(Yn(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),Zi(this)||(ww(this,!0),$l(this)||this._resume())}_resume(){Pr.skipAnimation?this.finish():Oh.start(this)}_stop(e,t){if(Zi(this)){ww(this,!1);const n=this.animation;Ge(n.values,i=>{i.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Oc(this,{type:"idle",parent:this});const r=t?us(this.get()):Mr(this.get(),Sl(this,e??n.to));Bl(this._pendingCalls,r),n.changed&&(n.changed=!1,Tl(this,"onRest",r,this))}}};function Sl(e,t){const n=Rc(t),r=Rc(e.get());return bi(r,n)}function HT(e,t=e.loop,n=e.to){const r=Gn(t);if(r){const i=r!==!0&&K1(r),o=(i||e).reverse,a=!i||i.reset;return Nc({...e,loop:t,default:!1,pause:void 0,to:!o||mv(n)?n:void 0,from:a?e.from:void 0,reset:a,...i})}}function Nc(e){const{to:t,from:n}=e=K1(e),r=new Set;return pe.obj(t)&&Cw(t,r),pe.obj(n)&&Cw(n,r),e.keys=r.size?Array.from(r):null,e}function wK(e){const t=Nc(e);return pe.und(t.default)&&(t.default=Ih(t)),t}function Cw(e,t){ri(e,(n,r)=>n!=null&&t.add(r))}var _K=["onStart","onRest","onChange","onPause","onResume"];function $w(e,t,n){e.animation[n]=t[n]!==IT(t,n)?DT(t[n],e.key):void 0}function Tl(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 CK=["onStart","onChange","onRest"],$K=1,VT=class{constructor(e,t){this.id=$K++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];pe.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Nc(e)),this}start(e){let{queue:t}=this;return e?t=Un(e).map(Nc):this.queue=[],this._flush?this._flush(this,t):(ZT(this,t),wv(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Ge(Un(t),r=>n[r].stop(!!e))}else jc(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(pe.und(e))this.start({pause:!0});else{const t=this.springs;Ge(Un(e),n=>t[n].pause())}return this}resume(e){if(pe.und(e))this.start({pause:!1});else{const t=this.springs;Ge(Un(e),n=>t[n].resume())}return this}each(e){ri(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,Xl(e,([s,l])=>{l.value=this.get(),s(l,this,this._item)}));const o=!r&&this._started,a=i||o&&n.size?this.get():null;i&&t.size&&Xl(t,([s,l])=>{l.value=a,s(l,this,this._item)}),o&&(this._started=!1,Xl(n,([s,l])=>{l.value=a,s(l,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;tt.onFrame(this._onFrame)}};function wv(e,t){return Promise.all(t.map(n=>qT(e,n))).then(n=>Z1(e,n))}async function qT(e,t,n){const{keys:r,to:i,from:o,loop:a,onRest:s,onResolve:l}=t,c=pe.obj(t.default)&&t.default;a&&(t.loop=!1),i===!1&&(t.to=null),o===!1&&(t.from=null);const u=pe.arr(i)||pe.fun(i)?i:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):Ge(CK,g=>{const v=t[g];if(pe.fun(v)){const x=e._events[g];t[g]=({finished:_,cancelled:w})=>{const $=x.get(v);$?(_||($.finished=!1),w&&($.cancelled=!0)):x.set(v,{value:null,finished:_||!1,cancelled:w||!1})},c&&(c[g]=t[g])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,Bl(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const f=(r||Object.keys(e.springs)).map(g=>e.springs[g].start(t)),h=t.cancel===!0||IT(t,"cancel")===!0;(u||h&&d.asyncId)&&f.push(BT(++e._lastAsyncId,{props:t,state:d,actions:{pause:dv,resume:dv,start(g,v){h?(jc(d,e._lastAsyncId),v(us(e))):(g.onRest=s,v(WT(u,g,d,e)))}}})),d.paused&&await new Promise(g=>{d.resumeQueue.add(g)});const p=Z1(e,await Promise.all(f));if(a&&p.finished&&!(n&&p.noop)){const g=HT(t,a,i);if(g)return ZT(e,[g]),qT(e,g,!0)}return l&&tt.batchedUpdates(()=>l(p,e,e.item)),p}function _v(e,t){const n={...e.springs};return t&&Ge(Un(t),r=>{pe.und(r.keys)&&(r=Nc(r)),pe.obj(r.to)||(r={...r,to:void 0}),KT(n,r,i=>GT(i))}),YT(e,n),n}function YT(e,t){ri(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,Gs(n,e))})}function GT(e,t){const n=new xK;return n.key=e,t&&Gs(n,t),n}function KT(e,t,n){t.keys&&Ge(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function ZT(e,t){Ge(t,n=>{KT(e.springs,n,r=>GT(r,e))})}var XT=ie.createContext({pause:!1,immediate:!1}),QT=()=>{const e=[],t=function(r){nK();const i=[];return Ge(e,(o,a)=>{if(pe.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 Ge(e,r=>r.pause(...arguments)),this},t.resume=function(){return Ge(e,r=>r.resume(...arguments)),this},t.set=function(r){Ge(e,(i,o)=>{const a=pe.fun(r)?r(o,i):r;a&&i.set(a)})},t.start=function(r){const i=[];return Ge(e,(o,a)=>{if(pe.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 Ge(e,r=>r.stop(...arguments)),this},t.update=function(r){return Ge(e,(i,o)=>i.update(this._getProps(r,i,o))),this};const n=function(r,i,o){return pe.fun(r)?r(o,i):r};return t._getProps=n,t};function SK(e,t,n){const r=pe.fun(t)&&t;r&&!n&&(n=[]);const i=m.useMemo(()=>r||arguments.length==3?QT():void 0,[]),o=m.useRef(0),a=q1(),s=m.useMemo(()=>({ctrls:[],queue:[],flush(x,_){const w=_v(x,_);return o.current>0&&!s.queue.length&&!Object.keys(w).some(b=>!x.springs[b])?wv(x,_):new Promise(b=>{YT(x,w),s.queue.push(()=>{b(wv(x,_))}),a()})}}),[]),l=m.useRef([...s.ctrls]),c=m.useRef([]),u=hv(e)||0;m.useMemo(()=>{Ge(l.current.slice(e,u),x=>{gv(x,i),x.stop(!0)}),l.current.length=e,d(u,e)},[e]),m.useMemo(()=>{d(0,Math.min(u,e))},n);function d(x,_){for(let w=x;w<_;w++){const $=l.current[w]||(l.current[w]=new VT(null,s.flush)),b=r?r(w,$):t[w];b&&(c.current[w]=wK(b))}}const f=l.current.map((x,_)=>_v(x,c.current[_])),h=m.useContext(XT),p=hv(h),g=h!==p&&PT(h);Go(()=>{o.current++,s.ctrls=l.current;const{queue:x}=s;x.length&&(s.queue=[],Ge(x,_=>_())),Ge(l.current,(_,w)=>{i==null||i.add(_),g&&_.start({default:h});const $=c.current[w];$&&(LT(_,$.ref),_.ref?_.queue.push($):_.start($))})}),Y1(()=>()=>{Ge(s.ctrls,x=>x.stop(!0))});const v=f.map(x=>({...x}));return i?[v,i]:v}function li(e,t){const n=pe.fun(e),[[r],i]=SK(1,n?e:[e],n?[]:t);return n||arguments.length==2?[r,i]:r}function Ca(e,t,n){const r=pe.fun(t)&&t,{reset:i,sort:o,trail:a=0,expires:s=!0,exitBeforeEnter:l=!1,onDestroyed:c,ref:u,config:d}=r?r():t,f=m.useMemo(()=>r||arguments.length==3?QT():void 0,[]),h=Un(e),p=[],g=m.useRef(null),v=i?null:g.current;Go(()=>{g.current=p}),Y1(()=>(Ge(p,D=>{f==null||f.add(D.ctrl),D.ctrl.ref=f}),()=>{Ge(g.current,D=>{D.expired&&clearTimeout(D.expirationId),gv(D.ctrl,f),D.ctrl.stop(!0)})}));const x=EK(h,r?r():t,v),_=i&&g.current||[];Go(()=>Ge(_,({ctrl:D,item:R,key:M})=>{gv(D,f),Gn(c,R,M)}));const w=[];if(v&&Ge(v,(D,R)=>{D.expired?(clearTimeout(D.expirationId),_.push(D)):(R=w[R]=x.indexOf(D.key),~R&&(p[R]=D))}),Ge(h,(D,R)=>{p[R]||(p[R]={key:x[R],item:D,phase:"mount",ctrl:new VT},p[R].ctrl.item=D)}),w.length){let D=-1;const{leave:R}=r?r():t;Ge(w,(M,I)=>{const F=v[I];~M?(D=p.indexOf(F),p[D]={...F,item:h[M]}):R&&p.splice(++D,0,F)})}pe.fun(o)&&p.sort((D,R)=>o(D.item,R.item));let $=-a;const b=q1(),C=Ih(t),T=new Map,k=m.useRef(new Map),O=m.useRef(!1);Ge(p,(D,R)=>{const M=D.key,I=D.phase,F=r?r():t;let U,P;const W=Gn(F.delay||0,M);if(I=="mount")U=F.enter,P="enter";else{const G=x.indexOf(M)<0;if(I!="leave")if(G)U=F.leave,P="leave";else if(U=F.update)P="update";else return;else if(!G)U=F.enter,P="enter";else return}if(U=Gn(U,D.item,R),U=pe.obj(U)?K1(U):{to:U},!U.config){const G=d||C.config;U.config=Gn(G,D.item,R,P)}$+=a;const q={...C,delay:W+$,ref:u,immediate:F.immediate,reset:!1,...U};if(P=="enter"&&pe.und(q.from)){const G=r?r():t,J=pe.und(G.initial)||v?G.from:G.initial;q.from=Gn(J,D.item,R)}const{onResolve:H}=q;q.onResolve=G=>{Gn(H,G);const J=g.current,ee=J.find(z=>z.key===M);if(ee&&!(G.cancelled&&ee.phase!="update")&&ee.ctrl.idle){const z=J.every(L=>L.ctrl.idle);if(ee.phase=="leave"){const L=Gn(s,ee.item);if(L!==!1){const B=L===!0?0:L;if(ee.expired=!0,!z&&B>0){B<=2147483647&&(ee.expirationId=setTimeout(b,B));return}}}z&&J.some(L=>L.expired)&&(k.current.delete(ee),l&&(O.current=!0),b())}};const Y=_v(D.ctrl,q);P==="leave"&&l?k.current.set(D,{phase:P,springs:Y,payload:q}):T.set(D,{phase:P,springs:Y,payload:q})});const j=m.useContext(XT),S=hv(j),E=j!==S&&PT(j);Go(()=>{E&&Ge(p,D=>{D.ctrl.start({default:j})})},[j]),Ge(T,(D,R)=>{if(k.current.size){const M=p.findIndex(I=>I.key===R.key);p.splice(M,1)}}),Go(()=>{Ge(k.current.size?k.current:T,({phase:D,payload:R},M)=>{const{ctrl:I}=M;M.phase=D,f==null||f.add(I),E&&D=="enter"&&I.start({default:j}),R&&(LT(I,R.ref),(I.ref||f)&&!O.current?I.update(R):(I.start(R),O.current&&(O.current=!1)))})},i?void 0:n);const A=D=>ie.createElement(ie.Fragment,null,p.map((R,M)=>{const{springs:I}=T.get(R)||R.ctrl,F=D({...I},R.item,R,M),U=pe.str(R.key)||pe.num(R.key)?R.key:R.ctrl.id,P=ie.version<"19.0.0",W=(F==null?void 0:F.props)??{},q=P?F==null?void 0:F.ref:W==null?void 0:W.ref;return F&&F.type?ie.createElement(F.type,{...W,key:U,ref:q}):F}));return f?[A,f]:A}var TK=1;function EK(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):TK++})}return pe.und(n)?e:pe.fun(n)?e.map(n):Un(n)}var JT=class extends X1{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=Ec(...t);const n=this._get(),r=pv(n);G1(this,r.create(n))}advance(e){const t=this._get(),n=this.get();bi(t,n)||(Vr(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Sw(this._active)&&Vm(this)}_get(){const e=pe.arr(this.source)?this.source.map(Yn):Un(Yn(this.source));return this.calc(...e)}_start(){this.idle&&!Sw(this._active)&&(this.idle=!1,Ge(jh(this),e=>{e.done=!1}),Pr.skipAnimation?(tt.batchedUpdates(()=>this.advance()),Vm(this)):Oh.start(this))}_attach(){let e=1;Ge(Un(this.source),t=>{mr(t)&&Gs(t,this),bv(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){Ge(Un(this.source),e=>{mr(e)&&Mc(e,this)}),this._active.clear(),Vm(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=Un(this.source).reduce((t,n)=>Math.max(t,(bv(n)?n.priority:0)+1),0))}};function kK(e){return e.idle!==!1}function Sw(e){return!e.size||Array.from(e).every(kK)}function Vm(e){e.idle||(e.idle=!0,Ge(jh(e),t=>{t.done=!0}),Oc(e,{type:"idle",parent:e}))}var xo=(e,...t)=>new JT(e,t);Pr.assign({createStringInterpolator:OT,to:(e,t)=>new JT(e,t)});var eE=/^--/;function OK(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!eE.test(e)&&!(ec.hasOwnProperty(e)&&ec[e])?t+"px":(""+t).trim()}var Tw={};function MK(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:l,...c}=t,u=Object.values(c),d=Object.keys(c).map(f=>n||e.hasAttribute(f)?f:Tw[f]||(Tw[f]=f.replace(/([A-Z])/g,h=>"-"+h.toLowerCase())));o!==void 0&&(e.textContent=o);for(const f in i)if(i.hasOwnProperty(f)){const h=OK(f,i[f]);eE.test(f)?e.style.setProperty(f,h):e.style[f]=h}d.forEach((f,h)=>{e.setAttribute(f,u[h])}),r!==void 0&&(e.className=r),a!==void 0&&(e.scrollTop=a),s!==void 0&&(e.scrollLeft=s),l!==void 0&&e.setAttribute("viewBox",l)}var ec={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},AK=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),RK=["Webkit","Ms","Moz","O"];ec=Object.keys(ec).reduce((e,t)=>(RK.forEach(n=>e[AK(n,t)]=e[t]),e),ec);var jK=/^(matrix|translate|scale|rotate|skew)/,NK=/^(translate)/,DK=/^(rotate|skew)/,qm=(e,t)=>pe.num(e)&&e!==0?e+t:e,Td=(e,t)=>pe.arr(e)?e.every(n=>Td(n,t)):pe.num(e)?e===t:parseFloat(e)===t,IK=class extends Dh{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=>qm(s,"px")).join(",")})`,Td(a,0)])),ri(r,(a,s)=>{if(s==="transform")i.push([a||""]),o.push(l=>[l,l===""]);else if(jK.test(s)){if(delete r[s],pe.und(a))return;const l=NK.test(s)?"px":DK.test(s)?"deg":"";i.push(Un(a)),o.push(s==="rotate3d"?([c,u,d,f])=>[`rotate3d(${c},${u},${d},${qm(f,l)})`,Td(f,0)]:c=>[`${s}(${c.map(u=>qm(u,l)).join(",")})`,Td(c,s.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new PK(i,o)),super(r)}},PK=class extends TT{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 Ge(this.inputs,(n,r)=>{const i=Yn(n[0]),[o,a]=this.transforms[r](pe.arr(i)?i:n.map(Yn));e+=" "+o,t=t&&a}),t?"none":e}observerAdded(e){e==1&&Ge(this.inputs,t=>Ge(t,n=>mr(n)&&Gs(n,this)))}observerRemoved(e){e==0&&Ge(this.inputs,t=>Ge(t,n=>mr(n)&&Mc(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),Oc(this,e)}},LK=["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"];Pr.assign({batchedUpdates:mn.unstable_batchedUpdates,createStringInterpolator:OT,colors:NG});var FK=dK(LK,{applyAnimatedValues:MK,createAnimatedStyle:e=>new IK(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Yt=FK.animated;function BK(){this.__data__=[],this.size=0}var zK=BK;function WK(e,t){return e===t||e!==e&&t!==t}var _u=WK,UK=_u;function HK(e,t){for(var n=e.length;n--;)if(UK(e[n][0],t))return n;return-1}var Ph=HK,VK=Ph,qK=Array.prototype,YK=qK.splice;function GK(e){var t=this.__data__,n=VK(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():YK.call(t,n,1),--this.size,!0}var KK=GK,ZK=Ph;function XK(e){var t=this.__data__,n=ZK(t,e);return n<0?void 0:t[n][1]}var QK=XK,JK=Ph;function eZ(e){return JK(this.__data__,e)>-1}var tZ=eZ,nZ=Ph;function rZ(e,t){var n=this.__data__,r=nZ(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var iZ=rZ,oZ=zK,aZ=KK,sZ=QK,lZ=tZ,cZ=iZ;function Ks(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])}}Ks.prototype.clear=oZ;Ks.prototype.delete=aZ;Ks.prototype.get=sZ;Ks.prototype.has=lZ;Ks.prototype.set=cZ;var Lh=Ks,uZ=Lh;function dZ(){this.__data__=new uZ,this.size=0}var fZ=dZ;function hZ(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var pZ=hZ;function mZ(e){return this.__data__.get(e)}var gZ=mZ;function vZ(e){return this.__data__.has(e)}var bZ=vZ,yZ=typeof Zn=="object"&&Zn&&Zn.Object===Object&&Zn,tE=yZ,xZ=tE,wZ=typeof self=="object"&&self&&self.Object===Object&&self,_Z=xZ||wZ||Function("return this")(),ci=_Z,CZ=ci,$Z=CZ.Symbol,Zs=$Z,Ew=Zs,nE=Object.prototype,SZ=nE.hasOwnProperty,TZ=nE.toString,El=Ew?Ew.toStringTag:void 0;function EZ(e){var t=SZ.call(e,El),n=e[El];try{e[El]=void 0;var r=!0}catch{}var i=TZ.call(e);return r&&(t?e[El]=n:delete e[El]),i}var kZ=EZ,OZ=Object.prototype,MZ=OZ.toString;function AZ(e){return MZ.call(e)}var RZ=AZ,kw=Zs,jZ=kZ,NZ=RZ,DZ="[object Null]",IZ="[object Undefined]",Ow=kw?kw.toStringTag:void 0;function PZ(e){return e==null?e===void 0?IZ:DZ:Ow&&Ow in Object(e)?jZ(e):NZ(e)}var Wi=PZ;function LZ(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ui=LZ,FZ=Wi,BZ=ui,zZ="[object AsyncFunction]",WZ="[object Function]",UZ="[object GeneratorFunction]",HZ="[object Proxy]";function VZ(e){if(!BZ(e))return!1;var t=FZ(e);return t==WZ||t==UZ||t==zZ||t==HZ}var Fh=VZ;const Q1=sn(Fh);var qZ=ci,YZ=qZ["__core-js_shared__"],GZ=YZ,Ym=GZ,Mw=function(){var e=/[^.]+$/.exec(Ym&&Ym.keys&&Ym.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function KZ(e){return!!Mw&&Mw in e}var ZZ=KZ,XZ=Function.prototype,QZ=XZ.toString;function JZ(e){if(e!=null){try{return QZ.call(e)}catch{}try{return e+""}catch{}}return""}var rE=JZ,eX=Fh,tX=ZZ,nX=ui,rX=rE,iX=/[\\^$.*+?()[\]{}|]/g,oX=/^\[object .+?Constructor\]$/,aX=Function.prototype,sX=Object.prototype,lX=aX.toString,cX=sX.hasOwnProperty,uX=RegExp("^"+lX.call(cX).replace(iX,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function dX(e){if(!nX(e)||tX(e))return!1;var t=eX(e)?uX:oX;return t.test(rX(e))}var fX=dX;function hX(e,t){return e==null?void 0:e[t]}var pX=hX,mX=fX,gX=pX;function vX(e,t){var n=gX(e,t);return mX(n)?n:void 0}var $a=vX,bX=$a,yX=ci,xX=bX(yX,"Map"),J1=xX,wX=$a,_X=wX(Object,"create"),Bh=_X,Aw=Bh;function CX(){this.__data__=Aw?Aw(null):{},this.size=0}var $X=CX;function SX(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var TX=SX,EX=Bh,kX="__lodash_hash_undefined__",OX=Object.prototype,MX=OX.hasOwnProperty;function AX(e){var t=this.__data__;if(EX){var n=t[e];return n===kX?void 0:n}return MX.call(t,e)?t[e]:void 0}var RX=AX,jX=Bh,NX=Object.prototype,DX=NX.hasOwnProperty;function IX(e){var t=this.__data__;return jX?t[e]!==void 0:DX.call(t,e)}var PX=IX,LX=Bh,FX="__lodash_hash_undefined__";function BX(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=LX&&t===void 0?FX:t,this}var zX=BX,WX=$X,UX=TX,HX=RX,VX=PX,qX=zX;function Xs(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])}}Xs.prototype.clear=WX;Xs.prototype.delete=UX;Xs.prototype.get=HX;Xs.prototype.has=VX;Xs.prototype.set=qX;var YX=Xs,Rw=YX,GX=Lh,KX=J1;function ZX(){this.size=0,this.__data__={hash:new Rw,map:new(KX||GX),string:new Rw}}var XX=ZX;function QX(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var JX=QX,eQ=JX;function tQ(e,t){var n=e.__data__;return eQ(t)?n[typeof t=="string"?"string":"hash"]:n.map}var zh=tQ,nQ=zh;function rQ(e){var t=nQ(this,e).delete(e);return this.size-=t?1:0,t}var iQ=rQ,oQ=zh;function aQ(e){return oQ(this,e).get(e)}var sQ=aQ,lQ=zh;function cQ(e){return lQ(this,e).has(e)}var uQ=cQ,dQ=zh;function fQ(e,t){var n=dQ(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var hQ=fQ,pQ=XX,mQ=iQ,gQ=sQ,vQ=uQ,bQ=hQ;function Qs(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])}}Qs.prototype.clear=pQ;Qs.prototype.delete=mQ;Qs.prototype.get=gQ;Qs.prototype.has=vQ;Qs.prototype.set=bQ;var eb=Qs,yQ=Lh,xQ=J1,wQ=eb,_Q=200;function CQ(e,t){var n=this.__data__;if(n instanceof yQ){var r=n.__data__;if(!xQ||r.length<_Q-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new wQ(r)}return n.set(e,t),this.size=n.size,this}var $Q=CQ,SQ=Lh,TQ=fZ,EQ=pZ,kQ=gZ,OQ=bZ,MQ=$Q;function Js(e){var t=this.__data__=new SQ(e);this.size=t.size}Js.prototype.clear=TQ;Js.prototype.delete=EQ;Js.prototype.get=kQ;Js.prototype.has=OQ;Js.prototype.set=MQ;var Wh=Js,AQ=$a,RQ=function(){try{var e=AQ(Object,"defineProperty");return e({},"",{}),e}catch{}}(),iE=RQ,jw=iE;function jQ(e,t,n){t=="__proto__"&&jw?jw(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var tb=jQ,NQ=tb,DQ=_u;function IQ(e,t,n){(n!==void 0&&!DQ(e[t],n)||n===void 0&&!(t in e))&&NQ(e,t,n)}var oE=IQ;function PQ(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(n(o[l],l,o)===!1)break}return t}}var LQ=PQ,FQ=LQ,BQ=FQ(),aE=BQ,gf={exports:{}};gf.exports;(function(e,t){var n=ci,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 l(c,u){if(u)return c.slice();var d=c.length,f=s?s(d):new c.constructor(d);return c.copy(f),f}e.exports=l})(gf,gf.exports);var sE=gf.exports,zQ=ci,WQ=zQ.Uint8Array,lE=WQ,Nw=lE;function UQ(e){var t=new e.constructor(e.byteLength);return new Nw(t).set(new Nw(e)),t}var nb=UQ,HQ=nb;function VQ(e,t){var n=t?HQ(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var cE=VQ;function qQ(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var uE=qQ,YQ=ui,Dw=Object.create,GQ=function(){function e(){}return function(t){if(!YQ(t))return{};if(Dw)return Dw(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),KQ=GQ;function ZQ(e,t){return function(n){return e(t(n))}}var dE=ZQ,XQ=dE,QQ=XQ(Object.getPrototypeOf,Object),rb=QQ,JQ=Object.prototype;function eJ(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||JQ;return e===n}var ib=eJ,tJ=KQ,nJ=rb,rJ=ib;function iJ(e){return typeof e.constructor=="function"&&!rJ(e)?tJ(nJ(e)):{}}var fE=iJ;function oJ(e){return e!=null&&typeof e=="object"}var Er=oJ,aJ=Wi,sJ=Er,lJ="[object Arguments]";function cJ(e){return sJ(e)&&aJ(e)==lJ}var uJ=cJ,Iw=uJ,dJ=Er,hE=Object.prototype,fJ=hE.hasOwnProperty,hJ=hE.propertyIsEnumerable,pJ=Iw(function(){return arguments}())?Iw:function(e){return dJ(e)&&fJ.call(e,"callee")&&!hJ.call(e,"callee")},Uh=pJ,mJ=Array.isArray,or=mJ,gJ=9007199254740991;function vJ(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=gJ}var ob=vJ,bJ=Fh,yJ=ob;function xJ(e){return e!=null&&yJ(e.length)&&!bJ(e)}var el=xJ,wJ=el,_J=Er;function CJ(e){return _J(e)&&wJ(e)}var pE=CJ,vf={exports:{}};function $J(){return!1}var SJ=$J;vf.exports;(function(e,t){var n=ci,r=SJ,i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a?n.Buffer:void 0,l=s?s.isBuffer:void 0,c=l||r;e.exports=c})(vf,vf.exports);var Hh=vf.exports,TJ=Wi,EJ=rb,kJ=Er,OJ="[object Object]",MJ=Function.prototype,AJ=Object.prototype,mE=MJ.toString,RJ=AJ.hasOwnProperty,jJ=mE.call(Object);function NJ(e){if(!kJ(e)||TJ(e)!=OJ)return!1;var t=EJ(e);if(t===null)return!0;var n=RJ.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&mE.call(n)==jJ}var ab=NJ;const sb=sn(ab);var DJ=Wi,IJ=ob,PJ=Er,LJ="[object Arguments]",FJ="[object Array]",BJ="[object Boolean]",zJ="[object Date]",WJ="[object Error]",UJ="[object Function]",HJ="[object Map]",VJ="[object Number]",qJ="[object Object]",YJ="[object RegExp]",GJ="[object Set]",KJ="[object String]",ZJ="[object WeakMap]",XJ="[object ArrayBuffer]",QJ="[object DataView]",JJ="[object Float32Array]",eee="[object Float64Array]",tee="[object Int8Array]",nee="[object Int16Array]",ree="[object Int32Array]",iee="[object Uint8Array]",oee="[object Uint8ClampedArray]",aee="[object Uint16Array]",see="[object Uint32Array]",en={};en[JJ]=en[eee]=en[tee]=en[nee]=en[ree]=en[iee]=en[oee]=en[aee]=en[see]=!0;en[LJ]=en[FJ]=en[XJ]=en[BJ]=en[QJ]=en[zJ]=en[WJ]=en[UJ]=en[HJ]=en[VJ]=en[qJ]=en[YJ]=en[GJ]=en[KJ]=en[ZJ]=!1;function lee(e){return PJ(e)&&IJ(e.length)&&!!en[DJ(e)]}var cee=lee;function uee(e){return function(t){return e(t)}}var tl=uee,bf={exports:{}};bf.exports;(function(e,t){var n=tE,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 l=i&&i.require&&i.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s})(bf,bf.exports);var Vh=bf.exports,dee=cee,fee=tl,Pw=Vh,Lw=Pw&&Pw.isTypedArray,hee=Lw?fee(Lw):dee,lb=hee;function pee(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var gE=pee,mee=tb,gee=_u,vee=Object.prototype,bee=vee.hasOwnProperty;function yee(e,t,n){var r=e[t];(!(bee.call(e,t)&&gee(r,n))||n===void 0&&!(t in e))&&mee(e,t,n)}var cb=yee,xee=cb,wee=tb;function _ee(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=r?r(n[s],e[s],s,n,e):void 0;l===void 0&&(l=e[s]),i?wee(n,s,l):xee(n,s,l)}return n}var nl=_ee;function Cee(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var $ee=Cee,See=9007199254740991,Tee=/^(?:0|[1-9]\d*)$/;function Eee(e,t){var n=typeof e;return t=t??See,!!t&&(n=="number"||n!="symbol"&&Tee.test(e))&&e>-1&&e%1==0&&e<t}var qh=Eee,kee=$ee,Oee=Uh,Mee=or,Aee=Hh,Ree=qh,jee=lb,Nee=Object.prototype,Dee=Nee.hasOwnProperty;function Iee(e,t){var n=Mee(e),r=!n&&Oee(e),i=!n&&!r&&Aee(e),o=!n&&!r&&!i&&jee(e),a=n||r||i||o,s=a?kee(e.length,String):[],l=s.length;for(var c in e)(t||Dee.call(e,c))&&!(a&&(c=="length"||i&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Ree(c,l)))&&s.push(c);return s}var vE=Iee;function Pee(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Lee=Pee,Fee=ui,Bee=ib,zee=Lee,Wee=Object.prototype,Uee=Wee.hasOwnProperty;function Hee(e){if(!Fee(e))return zee(e);var t=Bee(e),n=[];for(var r in e)r=="constructor"&&(t||!Uee.call(e,r))||n.push(r);return n}var Vee=Hee,qee=vE,Yee=Vee,Gee=el;function Kee(e){return Gee(e)?qee(e,!0):Yee(e)}var Cu=Kee,Zee=nl,Xee=Cu;function Qee(e){return Zee(e,Xee(e))}var Jee=Qee,Fw=oE,ete=sE,tte=cE,nte=uE,rte=fE,Bw=Uh,zw=or,ite=pE,ote=Hh,ate=Fh,ste=ui,lte=ab,cte=lb,Ww=gE,ute=Jee;function dte(e,t,n,r,i,o,a){var s=Ww(e,n),l=Ww(t,n),c=a.get(l);if(c){Fw(e,n,c);return}var u=o?o(s,l,n+"",e,t,a):void 0,d=u===void 0;if(d){var f=zw(l),h=!f&&ote(l),p=!f&&!h&&cte(l);u=l,f||h||p?zw(s)?u=s:ite(s)?u=nte(s):h?(d=!1,u=ete(l,!0)):p?(d=!1,u=tte(l,!0)):u=[]:lte(l)||Bw(l)?(u=s,Bw(s)?u=ute(s):(!ste(s)||ate(s))&&(u=rte(l))):d=!1}d&&(a.set(l,u),i(u,l,r,o,a),a.delete(l)),Fw(e,n,u)}var fte=dte,hte=Wh,pte=oE,mte=aE,gte=fte,vte=ui,bte=Cu,yte=gE;function bE(e,t,n,r,i){e!==t&&mte(t,function(o,a){if(i||(i=new hte),vte(o))gte(e,t,a,n,bE,r,i);else{var s=r?r(yte(e,a),o,a+"",e,t,i):void 0;s===void 0&&(s=o),pte(e,a,s)}},bte)}var xte=bE;function wte(e){return e}var Yh=wte;function _te(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 Cte=_te,$te=Cte,Uw=Math.max;function Ste(e,t,n){return t=Uw(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=Uw(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),$te(e,this,s)}}var yE=Ste;function Tte(e){return function(){return e}}var Ete=Tte,kte=Ete,Hw=iE,Ote=Yh,Mte=Hw?function(e,t){return Hw(e,"toString",{configurable:!0,enumerable:!1,value:kte(t),writable:!0})}:Ote,Ate=Mte,Rte=800,jte=16,Nte=Date.now;function Dte(e){var t=0,n=0;return function(){var r=Nte(),i=jte-(r-n);if(n=r,i>0){if(++t>=Rte)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Ite=Dte,Pte=Ate,Lte=Ite,Fte=Lte(Pte),xE=Fte,Bte=Yh,zte=yE,Wte=xE;function Ute(e,t){return Wte(zte(e,t,Bte),e+"")}var ub=Ute,Hte=_u,Vte=el,qte=qh,Yte=ui;function Gte(e,t,n){if(!Yte(n))return!1;var r=typeof t;return(r=="number"?Vte(n)&&qte(t,n.length):r=="string"&&t in n)?Hte(n[t],e):!1}var wE=Gte,Kte=ub,Zte=wE;function Xte(e){return Kte(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&&Zte(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 Qte=Xte,Jte=xte,ene=Qte,tne=ene(function(e,t,n){Jte(e,t,n)}),nne=tne;const _E=sn(nne);var rne=Wi,ine=Er,one="[object Symbol]";function ane(e){return typeof e=="symbol"||ine(e)&&rne(e)==one}var Gh=ane,sne=or,lne=Gh,cne=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,une=/^\w*$/;function dne(e,t){if(sne(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||lne(e)?!0:une.test(e)||!cne.test(e)||t!=null&&e in Object(t)}var db=dne,CE=eb,fne="Expected a function";function fb(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(fne);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(fb.Cache||CE),n}fb.Cache=CE;var hne=fb,pne=hne,mne=500;function gne(e){var t=pne(e,function(r){return n.size===mne&&n.clear(),r}),n=t.cache;return t}var vne=gne,bne=vne,yne=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xne=/\\(\\)?/g,wne=bne(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(yne,function(n,r,i,o){t.push(i?o.replace(xne,"$1"):r||n)}),t}),_ne=wne;function Cne(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 Kh=Cne,Vw=Zs,$ne=Kh,Sne=or,Tne=Gh,qw=Vw?Vw.prototype:void 0,Yw=qw?qw.toString:void 0;function $E(e){if(typeof e=="string")return e;if(Sne(e))return $ne(e,$E)+"";if(Tne(e))return Yw?Yw.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Ene=$E,kne=Ene;function One(e){return e==null?"":kne(e)}var SE=One,Mne=or,Ane=db,Rne=_ne,jne=SE;function Nne(e,t){return Mne(e)?e:Ane(e,t)?[e]:Rne(jne(e))}var rl=Nne,Dne=Gh;function Ine(e){if(typeof e=="string"||Dne(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var il=Ine,Pne=rl,Lne=il;function Fne(e,t){t=Pne(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Lne(t[n++])];return n&&n==r?e:void 0}var $u=Fne,Bne=$u;function zne(e,t,n){var r=e==null?void 0:Bne(e,t);return r===void 0?n:r}var TE=zne;const ii=sn(TE);var Wne=cb,Une=rl,Hne=qh,Gw=ui,Vne=il;function qne(e,t,n,r){if(!Gw(e))return e;t=Une(t,e);for(var i=-1,o=t.length,a=o-1,s=e;s!=null&&++i<o;){var l=Vne(t[i]),c=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(i!=a){var u=s[l];c=r?r(u,l,s):void 0,c===void 0&&(c=Gw(u)?u:Hne(t[i+1])?[]:{})}Wne(s,l,c),s=s[l]}return e}var EE=qne,Yne=EE;function Gne(e,t,n){return e==null?e:Yne(e,t,n)}var Kne=Gne;const zl=sn(Kne);function Cv(){return Cv=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},Cv.apply(null,arguments)}function Zne(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 Xne=["outlineWidth","outlineColor","outlineOpacity"],Qne=function(e){return e.outlineWidth,e.outlineColor,e.outlineOpacity,Zne(e,Xne)},Jne=["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"],ere=function(e,t){return Cv({},t,e)},tre=function(e,t){var n=_E({},e,t);return Jne.forEach(function(r){zl(n,r,ere(ii(n,r),n.text))}),n},kE=function(e,t){return t?_E({},e,t):e},nre={background:"transparent",text:{fontFamily:"sans-serif",fontSize:11,fill:"#333333",outlineWidth:0,outlineColor:"#ffffff",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}}},rre=function(e){return m.useMemo(function(){return tre(nre,e)},[e])},ire=function(e,t){return m.useMemo(function(){return kE(e,t)},[e,t])},OE=m.createContext(null),ore={},are=function(e){var t=e.theme,n=t===void 0?ore:t,r=e.children,i=rre(n);return y.jsx(OE.Provider,{value:i,children:r})},Ft=function(){var e=m.useContext(OE);if(e===null)throw new Error("Unable to find the theme, did you forget to wrap your component with ThemeProvider?");return e};function pa(){return pa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pa.apply(null,arguments)}var sre=["basic","chip","container","table","tableCell","tableCellValue"],lre={pointerEvents:"none",position:"absolute",zIndex:10,top:0,left:0},Kw=function(e,t){return"translate("+e+"px, "+t+"px)"},ME=m.memo(function(e){var t,n=e.position,r=e.anchor,i=e.children,o=Ft(),a=qn(),s=a.animate,l=a.config,c=dde(),u=c[0],d=c[1],f=m.useRef(!1),h=void 0,p=!1,g=d.width>0&&d.height>0,v=Math.round(n[0]),x=Math.round(n[1]);g&&(r==="top"?(v-=d.width/2,x-=d.height+14):r==="right"?(v+=14,x-=d.height/2):r==="bottom"?(v-=d.width/2,x+=14):r==="left"?(v-=d.width+14,x-=d.height/2):r==="center"&&(v-=d.width/2,x-=d.height/2),h={transform:Kw(v,x)},f.current||(p=!0),f.current=[v,x]);var _=li({to:h,config:l,immediate:!s||p}),w=o.tooltip;w.basic,w.chip,w.container,w.table,w.tableCell,w.tableCellValue;var $=function(C,T){if(C==null)return{};var k={};for(var O in C)if({}.hasOwnProperty.call(C,O)){if(T.indexOf(O)!==-1)continue;k[O]=C[O]}return k}(w,sre),b=pa({},lre,$,{transform:(t=_.transform)!=null?t:Kw(v,x),opacity:_.transform?1:0});return y.jsx(Yt.div,{ref:u,style:b,children:i})});ME.displayName="TooltipWrapper";var AE=m.memo(function(e){var t=e.size,n=t===void 0?12:t,r=e.color,i=e.style;return y.jsx("span",{style:pa({display:"block",width:n,height:n,background:r},i===void 0?{}:i)})}),hb=m.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,l=e.renderContent,c=Ft(),u=Is(i);if(typeof l=="function")t=l();else{var d=r;u!==void 0&&d!==void 0&&(d=u(d)),t=y.jsxs("div",{style:c.tooltip.basic,children:[a&&y.jsx(AE,{color:s,style:c.tooltip.chip}),d!==void 0?y.jsxs("span",{children:[n,": ",y.jsx("strong",{children:""+d})]}):n]})}return y.jsx("div",{style:c.tooltip.container,role:"tooltip",children:t})}),cre={width:"100%",borderCollapse:"collapse"},RE=m.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():y.jsxs("div",{children:[n&&n,y.jsx("table",{style:pa({},cre,a.tooltip.table),children:y.jsx("tbody",{children:i.map(function(s,l){return y.jsx("tr",{children:s.map(function(c,u){return y.jsx("td",{style:a.tooltip.tableCell,children:c},u)})},l)})})})]}),y.jsx("div",{style:a.tooltip.container,children:t})):null});RE.displayName="TableTooltip";var $v=m.memo(function(e){var t=e.x0,n=e.x1,r=e.y0,i=e.y1,o=Ft(),a=qn(),s=a.animate,l=a.config,c=m.useMemo(function(){return pa({},o.crosshair.line,{pointerEvents:"none"})},[o.crosshair.line]),u=li({x1:t,x2:n,y1:r,y2:i,config:l,immediate:!s});return y.jsx(Yt.line,pa({},u,{fill:"none",style:c}))});$v.displayName="CrosshairLine";var Sv=m.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}),y.jsxs(y.Fragment,{children:[t&&y.jsx($v,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}),n&&y.jsx($v,{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1})]})});Sv.displayName="Crosshair";var jE=m.createContext({showTooltipAt:function(){},showTooltipFromEvent:function(){},hideTooltip:function(){}}),Tv={isVisible:!1,position:[null,null],content:null,anchor:null},NE=m.createContext(Tv),ure=function(e){var t=m.useState(Tv),n=t[0],r=t[1],i=m.useCallback(function(s,l,c){var u=l[0],d=l[1];c===void 0&&(c="top"),r({isVisible:!0,position:[u,d],anchor:c,content:s})},[r]),o=m.useCallback(function(s,l,c){c===void 0&&(c="top");var u=e.current.getBoundingClientRect(),d=e.current.offsetWidth,f=d===u.width?1:d/u.width,h="touches"in l?l.touches[0]:l,p=h.clientX,g=h.clientY,v=(p-u.left)*f,x=(g-u.top)*f;c!=="left"&&c!=="right"||(c=v<u.width/2?"right":"left"),r({isVisible:!0,position:[v,x],anchor:c,content:s})},[e,r]),a=m.useCallback(function(){r(Tv)},[r]);return{actions:m.useMemo(function(){return{showTooltipAt:i,showTooltipFromEvent:o,hideTooltip:a}},[i,o,a]),state:n}},Ui=function(){var e=m.useContext(jE);if(e===void 0)throw new Error("useTooltip must be used within a TooltipProvider");return e},dre=function(){var e=m.useContext(NE);if(e===void 0)throw new Error("useTooltipState must be used within a TooltipProvider");return e},fre=function(e){return e.isVisible},hre=function(){var e=dre();return fre(e)?y.jsx(ME,{position:e.position,anchor:e.anchor,children:e.content}):null},pre=function(e){var t=e.container,n=e.children,r=ure(t),i=r.actions,o=r.state;return y.jsx(jE.Provider,{value:i,children:y.jsx(NE.Provider,{value:o,children:n})})},mre=Wi,gre=or,vre=Er,bre="[object String]";function yre(e){return typeof e=="string"||!gre(e)&&vre(e)&&mre(e)==bre}var xre=yre;const wre=sn(xre);let yr;typeof window<"u"?yr=window:typeof self<"u"?yr=self:yr=global;let Ev=null,kv=null;const Zw=20,Gm=yr.clearTimeout,Xw=yr.setTimeout,Km=yr.cancelAnimationFrame||yr.mozCancelAnimationFrame||yr.webkitCancelAnimationFrame,Qw=yr.requestAnimationFrame||yr.mozRequestAnimationFrame||yr.webkitRequestAnimationFrame;Km==null||Qw==null?(Ev=Gm,kv=function(t){return Xw(t,Zw)}):(Ev=function([t,n]){Km(t),Gm(n)},kv=function(t){const n=Qw(function(){Gm(r),t()}),r=Xw(function(){Km(n),t()},Zw);return[n,r]});function _re(e){let t,n,r,i,o,a,s;const l=typeof document<"u"&&document.attachEvent;if(!l){a=function(x){const _=x.__resizeTriggers__,w=_.firstElementChild,$=_.lastElementChild,b=w.firstElementChild;$.scrollLeft=$.scrollWidth,$.scrollTop=$.scrollHeight,b.style.width=w.offsetWidth+1+"px",b.style.height=w.offsetHeight+1+"px",w.scrollLeft=w.scrollWidth,w.scrollTop=w.scrollHeight},o=function(x){return x.offsetWidth!==x.__resizeLast__.width||x.offsetHeight!==x.__resizeLast__.height},s=function(x){if(x.target.className&&typeof x.target.className.indexOf=="function"&&x.target.className.indexOf("contract-trigger")<0&&x.target.className.indexOf("expand-trigger")<0)return;const _=this;a(this),this.__resizeRAF__&&Ev(this.__resizeRAF__),this.__resizeRAF__=kv(function(){o(_)&&(_.__resizeLast__.width=_.offsetWidth,_.__resizeLast__.height=_.offsetHeight,_.__resizeListeners__.forEach(function(b){b.call(_,x)}))})};let f=!1,h="";r="animationstart";const p="Webkit Moz O ms".split(" ");let g="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),v="";{const x=document.createElement("fakeelement");if(x.style.animationName!==void 0&&(f=!0),f===!1){for(let _=0;_<p.length;_++)if(x.style[p[_]+"AnimationName"]!==void 0){v=p[_],h="-"+v.toLowerCase()+"-",r=g[_],f=!0;break}}}n="resizeanim",t="@"+h+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",i=h+"animation: 1ms "+n+"; "}const c=function(f){if(!f.getElementById("detectElementResize")){const h=(t||"")+".resize-triggers { "+(i||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',p=f.head||f.getElementsByTagName("head")[0],g=f.createElement("style");g.id="detectElementResize",g.type="text/css",e!=null&&g.setAttribute("nonce",e),g.styleSheet?g.styleSheet.cssText=h:g.appendChild(f.createTextNode(h)),p.appendChild(g)}};return{addResizeListener:function(f,h){if(l)f.attachEvent("onresize",h);else{if(!f.__resizeTriggers__){const p=f.ownerDocument,g=yr.getComputedStyle(f);g&&g.position==="static"&&(f.style.position="relative"),c(p),f.__resizeLast__={},f.__resizeListeners__=[],(f.__resizeTriggers__=p.createElement("div")).className="resize-triggers";const v=p.createElement("div");v.className="expand-trigger",v.appendChild(p.createElement("div"));const x=p.createElement("div");x.className="contract-trigger",f.__resizeTriggers__.appendChild(v),f.__resizeTriggers__.appendChild(x),f.appendChild(f.__resizeTriggers__),a(f),f.addEventListener("scroll",s,!0),r&&(f.__resizeTriggers__.__animationListener__=function(w){w.animationName===n&&a(f)},f.__resizeTriggers__.addEventListener(r,f.__resizeTriggers__.__animationListener__))}f.__resizeListeners__.push(h)}},removeResizeListener:function(f,h){if(l)f.detachEvent("onresize",h);else if(f.__resizeListeners__.splice(f.__resizeListeners__.indexOf(h),1),!f.__resizeListeners__.length){f.removeEventListener("scroll",s,!0),f.__resizeTriggers__.__animationListener__&&(f.__resizeTriggers__.removeEventListener(r,f.__resizeTriggers__.__animationListener__),f.__resizeTriggers__.__animationListener__=null);try{f.__resizeTriggers__=!f.removeChild(f.__resizeTriggers__)}catch{}}}}}class Cre extends m.Component{constructor(...t){super(...t),this.state={height:this.props.defaultHeight||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._didLogDeprecationWarning=!1,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:n,disableWidth:r,onResize:i}=this.props;if(this._parentNode){const o=window.getComputedStyle(this._parentNode)||{},a=parseFloat(o.paddingLeft||"0"),s=parseFloat(o.paddingRight||"0"),l=parseFloat(o.paddingTop||"0"),c=parseFloat(o.paddingBottom||"0"),u=this._parentNode.getBoundingClientRect(),d=u.height-l-c,f=u.width-a-s;if(!n&&this.state.height!==d||!r&&this.state.width!==f){this.setState({height:d,width:f});const h=()=>{this._didLogDeprecationWarning||(this._didLogDeprecationWarning=!0,console.warn("scaledWidth and scaledHeight parameters have been deprecated; use width and height instead"))};typeof i=="function"&&i({height:d,width:f,get scaledHeight(){return h(),d},get scaledWidth(){return h(),f}})}}},this._setRef=n=>{this._autoSizer=n}}componentDidMount(){const{nonce:t}=this.props,n=this._autoSizer?this._autoSizer.parentNode:null;if(n!=null&&n.ownerDocument&&n.ownerDocument.defaultView&&n instanceof n.ownerDocument.defaultView.HTMLElement){this._parentNode=n;const r=n.ownerDocument.defaultView.ResizeObserver;r!=null?(this._resizeObserver=new r(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(n)):(this._detectElementResize=_re(t),this._detectElementResize.addResizeListener(n,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),this._timeoutId!==null&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:t,defaultHeight:n,defaultWidth:r,disableHeight:i=!1,disableWidth:o=!1,doNotBailOutOnEmptyChildren:a=!1,nonce:s,onResize:l,style:c={},tagName:u="div",...d}=this.props,{height:f,width:h}=this.state,p={overflow:"visible"},g={};let v=!1;return i||(f===0&&(v=!0),p.height=0,g.height=f,g.scaledHeight=f),o||(h===0&&(v=!0),p.width=0,g.width=h,g.scaledWidth=h),a&&(v=!1),m.createElement(u,{ref:this._setRef,style:{...p,...c},...d},!v&&t(g))}}function Zh(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function pb(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ol(){}var ma=.7,js=1/ma,ds="\\s*([+-]?\\d+)\\s*",Dc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Qr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",$re=/^#([0-9a-f]{3,8})$/,Sre=new RegExp(`^rgb\\(${ds},${ds},${ds}\\)$`),Tre=new RegExp(`^rgb\\(${Qr},${Qr},${Qr}\\)$`),Ere=new RegExp(`^rgba\\(${ds},${ds},${ds},${Dc}\\)$`),kre=new RegExp(`^rgba\\(${Qr},${Qr},${Qr},${Dc}\\)$`),Ore=new RegExp(`^hsl\\(${Dc},${Qr},${Qr}\\)$`),Mre=new RegExp(`^hsla\\(${Dc},${Qr},${Qr},${Dc}\\)$`),Jw={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};Zh(ol,Ic,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:e_,formatHex:e_,formatHex8:Are,formatHsl:Rre,formatRgb:t_,toString:t_});function e_(){return this.rgb().formatHex()}function Are(){return this.rgb().formatHex8()}function Rre(){return IE(this).formatHsl()}function t_(){return this.rgb().formatRgb()}function Ic(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=$re.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?n_(t):n===3?new Nn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?ad(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?ad(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=Sre.exec(e))?new Nn(t[1],t[2],t[3],1):(t=Tre.exec(e))?new Nn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Ere.exec(e))?ad(t[1],t[2],t[3],t[4]):(t=kre.exec(e))?ad(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Ore.exec(e))?o_(t[1],t[2]/100,t[3]/100,1):(t=Mre.exec(e))?o_(t[1],t[2]/100,t[3]/100,t[4]):Jw.hasOwnProperty(e)?n_(Jw[e]):e==="transparent"?new Nn(NaN,NaN,NaN,0):null}function n_(e){return new Nn(e>>16&255,e>>8&255,e&255,1)}function ad(e,t,n,r){return r<=0&&(e=t=n=NaN),new Nn(e,t,n,r)}function DE(e){return e instanceof ol||(e=Ic(e)),e?(e=e.rgb(),new Nn(e.r,e.g,e.b,e.opacity)):new Nn}function Ns(e,t,n,r){return arguments.length===1?DE(e):new Nn(e,t,n,r??1)}function Nn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Zh(Nn,Ns,pb(ol,{brighter(e){return e=e==null?js:Math.pow(js,e),new Nn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ma:Math.pow(ma,e),new Nn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Nn(ra(this.r),ra(this.g),ra(this.b),yf(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:r_,formatHex:r_,formatHex8:jre,formatRgb:i_,toString:i_}));function r_(){return`#${Ko(this.r)}${Ko(this.g)}${Ko(this.b)}`}function jre(){return`#${Ko(this.r)}${Ko(this.g)}${Ko(this.b)}${Ko((isNaN(this.opacity)?1:this.opacity)*255)}`}function i_(){const e=yf(this.opacity);return`${e===1?"rgb(":"rgba("}${ra(this.r)}, ${ra(this.g)}, ${ra(this.b)}${e===1?")":`, ${e})`}`}function yf(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ra(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ko(e){return e=ra(e),(e<16?"0":"")+e.toString(16)}function o_(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ar(e,t,n,r)}function IE(e){if(e instanceof Ar)return new Ar(e.h,e.s,e.l,e.opacity);if(e instanceof ol||(e=Ic(e)),!e)return new Ar;if(e instanceof Ar)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,l=(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/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new Ar(a,s,l,e.opacity)}function Nre(e,t,n,r){return arguments.length===1?IE(e):new Ar(e,t,n,r??1)}function Ar(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Zh(Ar,Nre,pb(ol,{brighter(e){return e=e==null?js:Math.pow(js,e),new Ar(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ma:Math.pow(ma,e),new Ar(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 Nn(Zm(e>=240?e-240:e+120,i,r),Zm(e,i,r),Zm(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Ar(a_(this.h),sd(this.s),sd(this.l),yf(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=yf(this.opacity);return`${e===1?"hsl(":"hsla("}${a_(this.h)}, ${sd(this.s)*100}%, ${sd(this.l)*100}%${e===1?")":`, ${e})`}`}}));function a_(e){return e=(e||0)%360,e<0?e+360:e}function sd(e){return Math.max(0,Math.min(1,e||0))}function Zm(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 Dre=Math.PI/180,Ire=180/Math.PI;var PE=-.14861,mb=1.78277,gb=-.29227,Xh=-.90649,Pc=1.97294,s_=Pc*Xh,l_=Pc*mb,c_=mb*gb-Xh*PE;function Pre(e){if(e instanceof ia)return new ia(e.h,e.s,e.l,e.opacity);e instanceof Nn||(e=DE(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(c_*r+s_*t-l_*n)/(c_+s_-l_),o=r-i,a=(Pc*(n-i)-gb*o)/Xh,s=Math.sqrt(a*a+o*o)/(Pc*i*(1-i)),l=s?Math.atan2(a,o)*Ire-120:NaN;return new ia(l<0?l+360:l,s,i,e.opacity)}function oi(e,t,n,r){return arguments.length===1?Pre(e):new ia(e,t,n,r??1)}function ia(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Zh(ia,oi,pb(ol,{brighter(e){return e=e==null?js:Math.pow(js,e),new ia(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ma:Math.pow(ma,e),new ia(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*Dre,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new Nn(255*(t+n*(PE*r+mb*i)),255*(t+n*(gb*r+Xh*i)),255*(t+n*(Pc*r)),this.opacity)}}));function Lre(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 Fre(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 Lre((n-r/t)*t,a,i,o,s)}}const Qh=e=>()=>e;function LE(e,t){return function(n){return e+n*t}}function Bre(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 zre(e,t){var n=t-e;return n?LE(e,n>180||n<-180?n-360*Math.round(n/360):n):Qh(isNaN(e)?t:e)}function Wre(e){return(e=+e)==1?fs:function(t,n){return n-t?Bre(t,n,e):Qh(isNaN(t)?n:t)}}function fs(e,t){var n=t-e;return n?LE(e,n):Qh(isNaN(e)?t:e)}const u_=function e(t){var n=Wre(t);function r(i,o){var a=n((i=Ns(i)).r,(o=Ns(o)).r),s=n(i.g,o.g),l=n(i.b,o.b),c=fs(i.opacity,o.opacity);return function(u){return i.r=a(u),i.g=s(u),i.b=l(u),i.opacity=c(u),i+""}}return r.gamma=e,r}(1);function Ure(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=Ns(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(l){return s.r=r(l),s.g=i(l),s.b=o(l),s+""}}}var Hre=Ure(Fre);function Vre(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 qre(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Yre(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]=vb(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 Gre(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Lc(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Kre(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]=vb(e[i],t[i]):r[i]=t[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var Ov=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Xm=new RegExp(Ov.source,"g");function Zre(e){return function(){return e}}function Xre(e){return function(t){return e(t)+""}}function FE(e,t){var n=Ov.lastIndex=Xm.lastIndex=0,r,i,o,a=-1,s=[],l=[];for(e=e+"",t=t+"";(r=Ov.exec(e))&&(i=Xm.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,l.push({i:a,x:Lc(r,i)})),n=Xm.lastIndex;return n<t.length&&(o=t.slice(n),s[a]?s[a]+=o:s[++a]=o),s.length<2?l[0]?Xre(l[0].x):Zre(t):(t=l.length,function(c){for(var u=0,d;u<t;++u)s[(d=l[u]).i]=d.x(c);return s.join("")})}function vb(e,t){var n=typeof t,r;return t==null||n==="boolean"?Qh(t):(n==="number"?Lc:n==="string"?(r=Ic(t))?(t=r,u_):FE:t instanceof Ic?u_:t instanceof Date?Gre:qre(t)?Vre:Array.isArray(t)?Yre:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Kre:Lc)(e,t)}function BE(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function zE(e){return function t(n){n=+n;function r(i,o){var a=e((i=oi(i)).h,(o=oi(o)).h),s=fs(i.s,o.s),l=fs(i.l,o.l),c=fs(i.opacity,o.opacity);return function(u){return i.h=a(u),i.s=s(u),i.l=l(Math.pow(u,n)),i.opacity=c(u),i+""}}return r.gamma=t,r}(1)}zE(zre);var bb=zE(fs),Qre="__lodash_hash_undefined__";function Jre(e){return this.__data__.set(e,Qre),this}var eie=Jre;function tie(e){return this.__data__.has(e)}var nie=tie,rie=eb,iie=eie,oie=nie;function xf(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new rie;++t<n;)this.add(e[t])}xf.prototype.add=xf.prototype.push=iie;xf.prototype.has=oie;var yb=xf;function aie(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 sie=aie;function lie(e){return e!==e}var cie=lie;function uie(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}var die=uie,fie=sie,hie=cie,pie=die;function mie(e,t,n){return t===t?pie(e,t,n):fie(e,hie,n)}var gie=mie,vie=gie;function bie(e,t){var n=e==null?0:e.length;return!!n&&vie(e,t,0)>-1}var WE=bie;function yie(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 UE=yie;function xie(e,t){return e.has(t)}var xb=xie,wie=yb,_ie=WE,Cie=UE,$ie=Kh,Sie=tl,Tie=xb,Eie=200;function kie(e,t,n,r){var i=-1,o=_ie,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=$ie(t,Sie(n))),r?(o=Cie,a=!1):t.length>=Eie&&(o=Tie,a=!1,t=new wie(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=c;f--;)if(t[f]===d)continue e;l.push(u)}else o(t,d,r)||l.push(u)}return l}var Oie=kie,Mie=Oie,Aie=ub,Rie=pE,jie=Aie(function(e,t){return Rie(e)?Mie(e,t):[]}),Nie=jie;const HE=sn(Nie);function mt(e){return function(){return e}}const d_=Math.abs,On=Math.atan2,Lo=Math.cos,Die=Math.max,Qm=Math.min,Hr=Math.sin,rs=Math.sqrt,An=1e-12,Fc=Math.PI,wf=Fc/2,Ed=2*Fc;function Iie(e){return e>1?0:e<-1?Fc:Math.acos(e)}function f_(e){return e>=1?wf:e<=-1?-wf:Math.asin(e)}const Mv=Math.PI,Av=2*Mv,Wo=1e-6,Pie=Av-Wo;function VE(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function Lie(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return VE;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 Fie=class{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?VE:Lie(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,l=r-t,c=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>Wo)if(!(Math.abs(d*l-c*u)>Wo)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let h=r-a,p=i-s,g=l*l+c*c,v=h*h+p*p,x=Math.sqrt(g),_=Math.sqrt(f),w=o*Math.tan((Mv-Math.acos((g+f-v)/(2*x*_)))/2),$=w/_,b=w/x;Math.abs($-1)>Wo&&this._append`L${t+$*u},${n+$*d}`,this._append`A${o},${o},0,0,${+(d*h>u*p)},${this._x1=t+b*l},${this._y1=n+b*c}`}}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),l=r*Math.sin(i),c=t+s,u=n+l,d=1^a,f=a?i-o:o-i;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>Wo||Math.abs(this._y1-u)>Wo)&&this._append`L${c},${u}`,r&&(f<0&&(f=f%Av+Av),f>Pie?this._append`A${r},${r},0,1,${d},${t-s},${n-l}A${r},${r},0,1,${d},${this._x1=c},${this._y1=u}`:f>Wo&&this._append`A${r},${r},0,${+(f>=Mv)},${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 wb(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 Fie(t)}function Bie(e){return e.innerRadius}function zie(e){return e.outerRadius}function Wie(e){return e.startAngle}function Uie(e){return e.endAngle}function Hie(e){return e&&e.padAngle}function Vie(e,t,n,r,i,o,a,s){var l=n-e,c=r-t,u=a-i,d=s-o,f=d*l-u*c;if(!(f*f<An))return f=(u*(t-o)-d*(e-i))/f,[e+f*l,t+f*c]}function ld(e,t,n,r,i,o,a){var s=e-n,l=t-r,c=(a?o:-o)/rs(s*s+l*l),u=c*l,d=-c*s,f=e+u,h=t+d,p=n+u,g=r+d,v=(f+p)/2,x=(h+g)/2,_=p-f,w=g-h,$=_*_+w*w,b=i-o,C=f*g-p*h,T=(w<0?-1:1)*rs(Die(0,b*b*$-C*C)),k=(C*w-_*T)/$,O=(-C*_-w*T)/$,j=(C*w+_*T)/$,S=(-C*_+w*T)/$,E=k-v,A=O-x,D=j-v,R=S-x;return E*E+A*A>D*D+R*R&&(k=j,O=S),{cx:k,cy:O,x01:-u,y01:-d,x11:k*(i/b-1),y11:O*(i/b-1)}}function qie(){var e=Bie,t=zie,n=mt(0),r=null,i=Wie,o=Uie,a=Hie,s=null,l=wb(c);function c(){var u,d,f=+e.apply(this,arguments),h=+t.apply(this,arguments),p=i.apply(this,arguments)-wf,g=o.apply(this,arguments)-wf,v=d_(g-p),x=g>p;if(s||(s=u=l()),h<f&&(d=h,h=f,f=d),!(h>An))s.moveTo(0,0);else if(v>Ed-An)s.moveTo(h*Lo(p),h*Hr(p)),s.arc(0,0,h,p,g,!x),f>An&&(s.moveTo(f*Lo(g),f*Hr(g)),s.arc(0,0,f,g,p,x));else{var _=p,w=g,$=p,b=g,C=v,T=v,k=a.apply(this,arguments)/2,O=k>An&&(r?+r.apply(this,arguments):rs(f*f+h*h)),j=Qm(d_(h-f)/2,+n.apply(this,arguments)),S=j,E=j,A,D;if(O>An){var R=f_(O/f*Hr(k)),M=f_(O/h*Hr(k));(C-=R*2)>An?(R*=x?1:-1,$+=R,b-=R):(C=0,$=b=(p+g)/2),(T-=M*2)>An?(M*=x?1:-1,_+=M,w-=M):(T=0,_=w=(p+g)/2)}var I=h*Lo(_),F=h*Hr(_),U=f*Lo(b),P=f*Hr(b);if(j>An){var W=h*Lo(w),q=h*Hr(w),H=f*Lo($),Y=f*Hr($),G;if(v<Fc)if(G=Vie(I,F,H,Y,W,q,U,P)){var J=I-G[0],ee=F-G[1],z=W-G[0],L=q-G[1],B=1/Hr(Iie((J*z+ee*L)/(rs(J*J+ee*ee)*rs(z*z+L*L)))/2),V=rs(G[0]*G[0]+G[1]*G[1]);S=Qm(j,(f-V)/(B-1)),E=Qm(j,(h-V)/(B+1))}else S=E=0}T>An?E>An?(A=ld(H,Y,I,F,h,E,x),D=ld(W,q,U,P,h,E,x),s.moveTo(A.cx+A.x01,A.cy+A.y01),E<j?s.arc(A.cx,A.cy,E,On(A.y01,A.x01),On(D.y01,D.x01),!x):(s.arc(A.cx,A.cy,E,On(A.y01,A.x01),On(A.y11,A.x11),!x),s.arc(0,0,h,On(A.cy+A.y11,A.cx+A.x11),On(D.cy+D.y11,D.cx+D.x11),!x),s.arc(D.cx,D.cy,E,On(D.y11,D.x11),On(D.y01,D.x01),!x))):(s.moveTo(I,F),s.arc(0,0,h,_,w,!x)):s.moveTo(I,F),!(f>An)||!(C>An)?s.lineTo(U,P):S>An?(A=ld(U,P,W,q,f,-S,x),D=ld(I,F,H,Y,f,-S,x),s.lineTo(A.cx+A.x01,A.cy+A.y01),S<j?s.arc(A.cx,A.cy,S,On(A.y01,A.x01),On(D.y01,D.x01),!x):(s.arc(A.cx,A.cy,S,On(A.y01,A.x01),On(A.y11,A.x11),!x),s.arc(0,0,f,On(A.cy+A.y11,A.cx+A.x11),On(D.cy+D.y11,D.cx+D.x11),x),s.arc(D.cx,D.cy,S,On(D.y11,D.x11),On(D.y01,D.x01),!x))):s.arc(0,0,f,b,$,x)}if(s.closePath(),u)return s=null,u+""||null}return c.centroid=function(){var u=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,d=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-Fc/2;return[Lo(d)*u,Hr(d)*u]},c.innerRadius=function(u){return arguments.length?(e=typeof u=="function"?u:mt(+u),c):e},c.outerRadius=function(u){return arguments.length?(t=typeof u=="function"?u:mt(+u),c):t},c.cornerRadius=function(u){return arguments.length?(n=typeof u=="function"?u:mt(+u),c):n},c.padRadius=function(u){return arguments.length?(r=u==null?null:typeof u=="function"?u:mt(+u),c):r},c.startAngle=function(u){return arguments.length?(i=typeof u=="function"?u:mt(+u),c):i},c.endAngle=function(u){return arguments.length?(o=typeof u=="function"?u:mt(+u),c):o},c.padAngle=function(u){return arguments.length?(a=typeof u=="function"?u:mt(+u),c):a},c.context=function(u){return arguments.length?(s=u??null,c):s},c}function Jh(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function qE(e){this._context=e}qE.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 _b(e){return new qE(e)}function YE(e){return e[0]}function GE(e){return e[1]}function Cb(e,t){var n=mt(!0),r=null,i=_b,o=null,a=wb(s);e=typeof e=="function"?e:e===void 0?YE:mt(e),t=typeof t=="function"?t:t===void 0?GE:mt(t);function s(l){var c,u=(l=Jh(l)).length,d,f=!1,h;for(r==null&&(o=i(h=a())),c=0;c<=u;++c)!(c<u&&n(d=l[c],c,l))===f&&((f=!f)?o.lineStart():o.lineEnd()),f&&o.point(+e(d,c,l),+t(d,c,l));if(h)return o=null,h+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:mt(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:mt(+l),s):t},s.defined=function(l){return arguments.length?(n=typeof l=="function"?l:mt(!!l),s):n},s.curve=function(l){return arguments.length?(i=l,r!=null&&(o=i(r)),s):i},s.context=function(l){return arguments.length?(l==null?r=o=null:o=i(r=l),s):r},s}function Yie(e,t,n){var r=null,i=mt(!0),o=null,a=_b,s=null,l=wb(c);e=typeof e=="function"?e:e===void 0?YE:mt(+e),t=typeof t=="function"?t:mt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?GE:mt(+n);function c(d){var f,h,p,g=(d=Jh(d)).length,v,x=!1,_,w=new Array(g),$=new Array(g);for(o==null&&(s=a(_=l())),f=0;f<=g;++f){if(!(f<g&&i(v=d[f],f,d))===x)if(x=!x)h=f,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),p=f-1;p>=h;--p)s.point(w[p],$[p]);s.lineEnd(),s.areaEnd()}x&&(w[f]=+e(v,f,d),$[f]=+t(v,f,d),s.point(r?+r(v,f,d):w[f],n?+n(v,f,d):$[f]))}if(_)return s=null,_+""||null}function u(){return Cb().defined(i).curve(a).context(o)}return c.x=function(d){return arguments.length?(e=typeof d=="function"?d:mt(+d),r=null,c):e},c.x0=function(d){return arguments.length?(e=typeof d=="function"?d:mt(+d),c):e},c.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:mt(+d),c):r},c.y=function(d){return arguments.length?(t=typeof d=="function"?d:mt(+d),n=null,c):t},c.y0=function(d){return arguments.length?(t=typeof d=="function"?d:mt(+d),c):t},c.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:mt(+d),c):n},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(n)},c.lineX1=function(){return u().x(r).y(t)},c.defined=function(d){return arguments.length?(i=typeof d=="function"?d:mt(!!d),c):i},c.curve=function(d){return arguments.length?(a=d,o!=null&&(s=a(o)),c):a},c.context=function(d){return arguments.length?(d==null?o=s=null:s=a(o=d),c):o},c}function Gie(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function Kie(e){return e}function Zie(){var e=Kie,t=Gie,n=null,r=mt(0),i=mt(Ed),o=mt(0);function a(s){var l,c=(s=Jh(s)).length,u,d,f=0,h=new Array(c),p=new Array(c),g=+r.apply(this,arguments),v=Math.min(Ed,Math.max(-Ed,i.apply(this,arguments)-g)),x,_=Math.min(Math.abs(v)/c,o.apply(this,arguments)),w=_*(v<0?-1:1),$;for(l=0;l<c;++l)($=p[h[l]=l]=+e(s[l],l,s))>0&&(f+=$);for(t!=null?h.sort(function(b,C){return t(p[b],p[C])}):n!=null&&h.sort(function(b,C){return n(s[b],s[C])}),l=0,d=f?(v-c*w)/f:0;l<c;++l,g=x)u=h[l],$=p[u],x=g+($>0?$*d:0)+w,p[u]={data:s[u],index:l,value:$,startAngle:g,endAngle:x,padAngle:_};return p}return a.value=function(s){return arguments.length?(e=typeof s=="function"?s:mt(+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:mt(+s),a):r},a.endAngle=function(s){return arguments.length?(i=typeof s=="function"?s:mt(+s),a):i},a.padAngle=function(s){return arguments.length?(o=typeof s=="function"?s:mt(+s),a):o},a}function wo(){}function _f(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 ep(e){this._context=e}ep.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:_f(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:_f(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Xie(e){return new ep(e)}function KE(e){this._context=e}KE.prototype={areaStart:wo,areaEnd:wo,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:_f(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Qie(e){return new KE(e)}function ZE(e){this._context=e}ZE.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:_f(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Jie(e){return new ZE(e)}function XE(e,t){this._basis=new ep(e),this._beta=t}XE.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,l;++s<=n;)l=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+l*o),this._beta*t[s]+(1-this._beta)*(i+l*a));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const eoe=function e(t){function n(r){return t===1?new ep(r):new XE(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function Cf(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 $b(e,t){this._context=e,this._k=(1-t)/6}$b.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:Cf(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:Cf(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 toe=function e(t){function n(r){return new $b(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Sb(e,t){this._context=e,this._k=(1-t)/6}Sb.prototype={areaStart:wo,areaEnd:wo,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:Cf(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 noe=function e(t){function n(r){return new Sb(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Tb(e,t){this._context=e,this._k=(1-t)/6}Tb.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:Cf(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 roe=function e(t){function n(r){return new Tb(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Eb(e,t,n){var r=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>An){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>An){var c=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*c+e._x1*e._l23_2a-t*e._l12_2a)/u,a=(a*c+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,o,a,e._x2,e._y2)}function QE(e,t){this._context=e,this._alpha=t}QE.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:Eb(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 ioe=function e(t){function n(r){return t?new QE(r,t):new $b(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function JE(e,t){this._context=e,this._alpha=t}JE.prototype={areaStart:wo,areaEnd:wo,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:Eb(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 ooe=function e(t){function n(r){return t?new JE(r,t):new Sb(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function e5(e,t){this._context=e,this._alpha=t}e5.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:Eb(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 aoe=function e(t){function n(r){return t?new e5(r,t):new Tb(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function t5(e){this._context=e}t5.prototype={areaStart:wo,areaEnd:wo,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 soe(e){return new t5(e)}function h_(e){return e<0?-1:1}function p_(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(h_(o)+h_(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function m_(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Jm(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 $f(e){this._context=e}$f.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:Jm(this,this._t0,m_(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,Jm(this,m_(this,n=p_(this,e,t)),n);break;default:Jm(this,this._t0,n=p_(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function n5(e){this._context=new r5(e)}(n5.prototype=Object.create($f.prototype)).point=function(e,t){$f.prototype.point.call(this,t,e)};function r5(e){this._context=e}r5.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 loe(e){return new $f(e)}function coe(e){return new n5(e)}function i5(e){this._context=e}i5.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=g_(e),i=g_(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 g_(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 uoe(e){return new i5(e)}function tp(e,t){this._context=e,this._t=t}tp.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 doe(e){return new tp(e,.5)}function foe(e){return new tp(e,0)}function hoe(e){return new tp(e,1)}function v_(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 b_(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function poe(e,t){return e[t]}function moe(e){const t=[];return t.key=e,t}function goe(){var e=mt([]),t=b_,n=v_,r=poe;function i(o){var a=Array.from(e.apply(this,arguments),moe),s,l=a.length,c=-1,u;for(const d of o)for(s=0,++c;s<l;++s)(a[s][c]=[0,+r(d,a[s].key,c,o)]).data=d;for(s=0,u=Jh(t(a));s<l;++s)a[u[s]].index=s;return n(a,u),a}return i.keys=function(o){return arguments.length?(e=typeof o=="function"?o:mt(Array.from(o)),i):e},i.value=function(o){return arguments.length?(r=typeof o=="function"?o:mt(+o),i):r},i.order=function(o){return arguments.length?(t=o==null?b_:typeof o=="function"?o:mt(Array.from(o)),i):t},i.offset=function(o){return arguments.length?(n=o??v_,i):n},i}function voe(e,t){if((l=e.length)>0)for(var n,r=0,i,o,a,s,l,c=e[t[0]].length;r<c;++r)for(a=s=0,n=0;n<l;++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)}function kd(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function boe(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function kb(e){let t,n,r;e.length!==2?(t=kd,n=(s,l)=>kd(e(s),l),r=(s,l)=>e(s)-l):(t=e===kd||e===boe?e:yoe,n=e,r=e);function i(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;n(s[d],l)<0?c=d+1:u=d}while(c<u)}return c}function o(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;n(s[d],l)<=0?c=d+1:u=d}while(c<u)}return c}function a(s,l,c=0,u=s.length){const d=i(s,l,c,u-1);return d>c&&r(s[d-1],l)>-r(s[d],l)?d-1:d}return{left:i,center:a,right:o}}function yoe(){return 0}function xoe(e){return e===null?NaN:+e}const woe=kb(kd),_oe=woe.right;kb(xoe).center;class y_ extends Map{constructor(t,n=Soe){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(x_(this,t))}has(t){return super.has(x_(this,t))}set(t,n){return super.set(Coe(this,t),n)}delete(t){return super.delete($oe(this,t))}}function x_({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Coe({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function $oe({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function Soe(e){return e!==null&&typeof e=="object"?e.valueOf():e}const Toe=Math.sqrt(50),Eoe=Math.sqrt(10),koe=Math.sqrt(2);function Sf(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>=Toe?10:o>=Eoe?5:o>=koe?2:1;let s,l,c;return i<0?(c=Math.pow(10,-i)/a,s=Math.round(e*c),l=Math.round(t*c),s/c<e&&++s,l/c>t&&--l,c=-c):(c=Math.pow(10,i)*a,s=Math.round(e/c),l=Math.round(t/c),s*c<e&&++s,l*c>t&&--l),l<s&&.5<=n&&n<2?Sf(e,t,n*2):[s,l,c]}function Rv(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?Sf(t,e,n):Sf(e,t,n);if(!(o>=i))return[];const s=o-i+1,l=new Array(s);if(r)if(a<0)for(let c=0;c<s;++c)l[c]=(o-c)/-a;else for(let c=0;c<s;++c)l[c]=(o-c)*a;else if(a<0)for(let c=0;c<s;++c)l[c]=(i+c)/-a;else for(let c=0;c<s;++c)l[c]=(i+c)*a;return l}function jv(e,t,n){return t=+t,e=+e,n=+n,Sf(e,t,n)[2]}function Nv(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?jv(t,e,n):jv(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function Ooe(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 Sa(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}const w_=Symbol("implicit");function Zo(){var e=new y_,t=[],n=[],r=w_;function i(o){let a=e.get(o);if(a===void 0){if(r!==w_)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 y_;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 Zo(t,n).unknown(r)},Sa.apply(i,arguments),i}function Ob(){var e=Zo().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,o,a,s=!1,l=0,c=0,u=.5;delete e.unknown;function d(){var f=t().length,h=i<r,p=h?i:r,g=h?r:i;o=(g-p)/Math.max(1,f-l+c*2),s&&(o=Math.floor(o)),p+=(g-p-o*(f-l))*u,a=o*(1-l),s&&(p=Math.round(p),a=Math.round(a));var v=Ooe(f).map(function(x){return p+o*x});return n(h?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?(l=Math.min(1,c=+f),d()):l},e.paddingInner=function(f){return arguments.length?(l=Math.min(1,f),d()):l},e.paddingOuter=function(f){return arguments.length?(c=+f,d()):c},e.align=function(f){return arguments.length?(u=Math.max(0,Math.min(1,f)),d()):u},e.copy=function(){return Ob(t(),[r,i]).round(s).paddingInner(l).paddingOuter(c).align(u)},Sa.apply(d(),arguments)}function o5(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return o5(t())},e}function Moe(){return o5(Ob.apply(null,arguments).paddingInner(1))}function Aoe(e){return function(){return e}}function Roe(e){return+e}var __=[0,1];function is(e){return e}function Dv(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Aoe(isNaN(t)?NaN:.5)}function joe(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function Noe(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=Dv(i,r),o=n(a,o)):(r=Dv(r,i),o=n(o,a)),function(s){return o(r(s))}}function Doe(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]=Dv(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(s){var l=_oe(e,s,1,r)-1;return o[l](i[l](s))}}function np(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Mb(){var e=__,t=__,n=vb,r,i,o,a=is,s,l,c;function u(){var f=Math.min(e.length,t.length);return a!==is&&(a=joe(e[0],e[f-1])),s=f>2?Doe:Noe,l=c=null,d}function d(f){return f==null||isNaN(f=+f)?o:(l||(l=s(e.map(r),t,n)))(r(a(f)))}return d.invert=function(f){return a(i((c||(c=s(t,e.map(r),Lc)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,Roe),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=BE,u()},d.clamp=function(f){return arguments.length?(a=f?!0:is,u()):a!==is},d.interpolate=function(f){return arguments.length?(n=f,u()):n},d.unknown=function(f){return arguments.length?(o=f,d):o},function(f,h){return r=f,i=h,u()}}function a5(){return Mb()(is,is)}function Ioe(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Tf(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 Ds(e){return e=Tf(Math.abs(e)),e?e[1]:NaN}function Poe(e,t){return function(n,r){for(var i=n.length,o=[],a=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(n.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(t)}}function Loe(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var Foe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Bc(e){if(!(t=Foe.exec(e)))throw new Error("invalid format: "+e);var t;return new Ab({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]})}Bc.prototype=Ab.prototype;function Ab(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+""}Ab.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 Boe(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 s5;function zoe(e,t){var n=Tf(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(s5=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")+Tf(e,Math.max(0,t+o-1))[0]}function C_(e,t){var n=Tf(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 $_={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:Ioe,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 C_(e*100,t)},r:C_,s:zoe,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function S_(e){return e}var T_=Array.prototype.map,E_=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Woe(e){var t=e.grouping===void 0||e.thousands===void 0?S_:Poe(T_.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+"",o=e.numerals===void 0?S_:Loe(T_.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(d){d=Bc(d);var f=d.fill,h=d.align,p=d.sign,g=d.symbol,v=d.zero,x=d.width,_=d.comma,w=d.precision,$=d.trim,b=d.type;b==="n"?(_=!0,b="g"):$_[b]||(w===void 0&&(w=12),$=!0,b="g"),(v||f==="0"&&h==="=")&&(v=!0,f="0",h="=");var C=g==="$"?n:g==="#"&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",T=g==="$"?r:/[%p]/.test(b)?a:"",k=$_[b],O=/[defgprs%]/.test(b);w=w===void 0?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function j(S){var E=C,A=T,D,R,M;if(b==="c")A=k(S)+A,S="";else{S=+S;var I=S<0||1/S<0;if(S=isNaN(S)?l:k(Math.abs(S),w),$&&(S=Boe(S)),I&&+S==0&&p!=="+"&&(I=!1),E=(I?p==="("?p:s:p==="-"||p==="("?"":p)+E,A=(b==="s"?E_[8+s5/3]:"")+A+(I&&p==="("?")":""),O){for(D=-1,R=S.length;++D<R;)if(M=S.charCodeAt(D),48>M||M>57){A=(M===46?i+S.slice(D+1):S.slice(D))+A,S=S.slice(0,D);break}}}_&&!v&&(S=t(S,1/0));var F=E.length+S.length+A.length,U=F<x?new Array(x-F+1).join(f):"";switch(_&&v&&(S=t(U+S,U.length?x-A.length:1/0),U=""),h){case"<":S=E+S+A+U;break;case"=":S=E+U+S+A;break;case"^":S=U.slice(0,F=U.length>>1)+E+S+A+U.slice(F);break;default:S=U+E+S+A;break}return o(S)}return j.toString=function(){return d+""},j}function u(d,f){var h=c((d=Bc(d),d.type="f",d)),p=Math.max(-8,Math.min(8,Math.floor(Ds(f)/3)))*3,g=Math.pow(10,-p),v=E_[8+p/3];return function(x){return h(g*x)+v}}return{format:c,formatPrefix:u}}var cd,Su,l5;Uoe({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function Uoe(e){return cd=Woe(e),Su=cd.format,l5=cd.formatPrefix,cd}function Hoe(e){return Math.max(0,-Ds(Math.abs(e)))}function Voe(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ds(t)/3)))*3-Ds(Math.abs(e)))}function qoe(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ds(t)-Ds(e))+1}function Yoe(e,t,n,r){var i=Nv(e,t,n),o;switch(r=Bc(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=Voe(i,a))&&(r.precision=o),l5(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=qoe(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=Hoe(i))&&(r.precision=o-(r.type==="%")*2);break}}return Su(r)}function c5(e){var t=e.domain;return e.ticks=function(n){var r=t();return Rv(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return Yoe(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],l,c,u=10;for(s<a&&(c=a,a=s,s=c,c=i,i=o,o=c);u-- >0;){if(c=jv(a,s,n),c===l)return r[i]=a,r[o]=s,t(r);if(c>0)a=Math.floor(a/c)*c,s=Math.ceil(s/c)*c;else if(c<0)a=Math.ceil(a*c)/c,s=Math.floor(s*c)/c;else break;l=c}return e},e}function Ef(){var e=a5();return e.copy=function(){return np(e,Ef())},Sa.apply(e,arguments),c5(e)}function u5(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 k_(e){return Math.log(e)}function O_(e){return Math.exp(e)}function Goe(e){return-Math.log(-e)}function Koe(e){return-Math.exp(-e)}function Zoe(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Xoe(e){return e===10?Zoe:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Qoe(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 M_(e){return(t,n)=>-e(-t,n)}function Joe(e){const t=e(k_,O_),n=t.domain;let r=10,i,o;function a(){return i=Qoe(r),o=Xoe(r),n()[0]<0?(i=M_(i),o=M_(o),e(Goe,Koe)):e(k_,O_),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 l=n();let c=l[0],u=l[l.length-1];const d=u<c;d&&([c,u]=[u,c]);let f=i(c),h=i(u),p,g;const v=s==null?10:+s;let x=[];if(!(r%1)&&h-f<v){if(f=Math.floor(f),h=Math.ceil(h),c>0){for(;f<=h;++f)for(p=1;p<r;++p)if(g=f<0?p/o(-f):p*o(f),!(g<c)){if(g>u)break;x.push(g)}}else for(;f<=h;++f)for(p=r-1;p>=1;--p)if(g=f>0?p/o(-f):p*o(f),!(g<c)){if(g>u)break;x.push(g)}x.length*2<v&&(x=Rv(c,u,v))}else x=Rv(f,h,Math.min(h-f,v)).map(o);return d?x.reverse():x},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=Bc(l)).precision==null&&(l.trim=!0),l=Su(l)),s===1/0)return l;const c=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<=c?l(u):""}},t.nice=()=>n(u5(n(),{floor:s=>o(Math.floor(i(s))),ceil:s=>o(Math.ceil(i(s)))})),t}function d5(){const e=Joe(Mb()).domain([1,10]);return e.copy=()=>np(e,d5()).base(e.base()),Sa.apply(e,arguments),e}function A_(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function R_(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function eae(e){var t=1,n=e(A_(t),R_(t));return n.constant=function(r){return arguments.length?e(A_(t=+r),R_(t)):t},c5(n)}function f5(){var e=eae(Mb());return e.copy=function(){return np(e,f5()).constant(e.constant())},Sa.apply(e,arguments)}const eg=new Date,tg=new Date;function wn(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 l=[];if(o=i.ceil(o),s=s==null?1:Math.floor(s),!(o<a)||!(s>0))return l;let c;do l.push(c=new Date(+o)),t(o,s),e(o);while(c<o&&o<a);return l},i.filter=o=>wn(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)=>(eg.setTime(+o),tg.setTime(+a),e(eg),e(tg),Math.floor(n(eg,tg))),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 kf=wn(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);kf.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?wn(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):kf);kf.range;const Ti=1e3,br=Ti*60,Ei=br*60,Fi=Ei*24,Rb=Fi*7,j_=Fi*30,ng=Fi*365,Xo=wn(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Ti)},(e,t)=>(t-e)/Ti,e=>e.getUTCSeconds());Xo.range;const jb=wn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ti)},(e,t)=>{e.setTime(+e+t*br)},(e,t)=>(t-e)/br,e=>e.getMinutes());jb.range;const Nb=wn(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*br)},(e,t)=>(t-e)/br,e=>e.getUTCMinutes());Nb.range;const Db=wn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ti-e.getMinutes()*br)},(e,t)=>{e.setTime(+e+t*Ei)},(e,t)=>(t-e)/Ei,e=>e.getHours());Db.range;const Ib=wn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Ei)},(e,t)=>(t-e)/Ei,e=>e.getUTCHours());Ib.range;const Pb=wn(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*br)/Fi,e=>e.getDate()-1);Pb.range;const h5=wn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Fi,e=>e.getUTCDate()-1);h5.range;const p5=wn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Fi,e=>Math.floor(e/Fi));p5.range;function Ta(e){return wn(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())*br)/Rb)}const Lb=Ta(0),tae=Ta(1),nae=Ta(2),rae=Ta(3),iae=Ta(4),oae=Ta(5),aae=Ta(6);Lb.range;tae.range;nae.range;rae.range;iae.range;oae.range;aae.range;function Ea(e){return wn(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)/Rb)}const Fb=Ea(0),sae=Ea(1),lae=Ea(2),cae=Ea(3),uae=Ea(4),dae=Ea(5),fae=Ea(6);Fb.range;sae.range;lae.range;cae.range;uae.range;dae.range;fae.range;const Bb=wn(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());Bb.range;const zb=wn(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());zb.range;const rp=wn(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());rp.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:wn(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)});rp.range;const ip=wn(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());ip.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:wn(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)});ip.range;function m5(e,t,n,r,i,o){const a=[[Xo,1,Ti],[Xo,5,5*Ti],[Xo,15,15*Ti],[Xo,30,30*Ti],[o,1,br],[o,5,5*br],[o,15,15*br],[o,30,30*br],[i,1,Ei],[i,3,3*Ei],[i,6,6*Ei],[i,12,12*Ei],[r,1,Fi],[r,2,2*Fi],[n,1,Rb],[t,1,j_],[t,3,3*j_],[e,1,ng]];function s(c,u,d){const f=u<c;f&&([c,u]=[u,c]);const h=d&&typeof d.range=="function"?d:l(c,u,d),p=h?h.range(c,+u+1):[];return f?p.reverse():p}function l(c,u,d){const f=Math.abs(u-c)/d,h=kb(([,,v])=>v).right(a,f);if(h===a.length)return e.every(Nv(c/ng,u/ng,d));if(h===0)return kf.every(Math.max(Nv(c,u,d),1));const[p,g]=a[f/a[h-1][2]<a[h][2]/f?h-1:h];return p.every(g)}return[s,l]}const[hae,pae]=m5(ip,zb,Fb,p5,Ib,Nb),[mae,gae]=m5(rp,Bb,Lb,Pb,Db,jb);var rg=new Date,ig=new Date;function gn(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 l=[],c;if(o=i.ceil(o),s=s==null?1:Math.floor(s),!(o<a)||!(s>0))return l;do l.push(c=new Date(+o)),t(o,s),e(o);while(c<o&&o<a);return l},i.filter=function(o){return gn(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 rg.setTime(+o),ig.setTime(+a),e(rg),e(ig),Math.floor(n(rg,ig))},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 zc=gn(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});zc.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?gn(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):zc};zc.range;var Of=1e3,ga=6e4,Mf=36e5,g5=864e5,v5=6048e5,Iv=gn(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*Of)},function(e,t){return(t-e)/Of},function(e){return e.getUTCSeconds()});Iv.range;var b5=gn(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Of)},function(e,t){e.setTime(+e+t*ga)},function(e,t){return(t-e)/ga},function(e){return e.getMinutes()});b5.range;var y5=gn(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Of-e.getMinutes()*ga)},function(e,t){e.setTime(+e+t*Mf)},function(e,t){return(t-e)/Mf},function(e){return e.getHours()});y5.range;var Wb=gn(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())*ga)/g5},function(e){return e.getDate()-1});Wb.range;function ka(e){return gn(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())*ga)/v5})}var Af=ka(0),Wc=ka(1),x5=ka(2),w5=ka(3),va=ka(4),_5=ka(5),C5=ka(6);Af.range;Wc.range;x5.range;w5.range;va.range;_5.range;C5.range;var $5=gn(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()});$5.range;var _o=gn(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()});_o.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:gn(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)})};_o.range;var S5=gn(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*ga)},function(e,t){return(t-e)/ga},function(e){return e.getUTCMinutes()});S5.range;var T5=gn(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*Mf)},function(e,t){return(t-e)/Mf},function(e){return e.getUTCHours()});T5.range;var Ub=gn(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/g5},function(e){return e.getUTCDate()-1});Ub.range;function Oa(e){return gn(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)/v5})}var Rf=Oa(0),Uc=Oa(1),E5=Oa(2),k5=Oa(3),ba=Oa(4),O5=Oa(5),M5=Oa(6);Rf.range;Uc.range;E5.range;k5.range;ba.range;O5.range;M5.range;var A5=gn(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()});A5.range;var Co=gn(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()});Co.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:gn(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)})};Co.range;function og(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 ag(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 kl(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function vae(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=Ol(i),u=Ml(i),d=Ol(o),f=Ml(o),h=Ol(a),p=Ml(a),g=Ol(s),v=Ml(s),x=Ol(l),_=Ml(l),w={a:I,A:F,b:U,B:P,c:null,d:F_,e:F_,f:Bae,g:Zae,G:Qae,H:Pae,I:Lae,j:Fae,L:R5,m:zae,M:Wae,p:W,q,Q:W_,s:U_,S:Uae,u:Hae,U:Vae,V:qae,w:Yae,W:Gae,x:null,X:null,y:Kae,Y:Xae,Z:Jae,"%":z_},$={a:H,A:Y,b:G,B:J,c:null,d:B_,e:B_,f:rse,g:hse,G:mse,H:ese,I:tse,j:nse,L:N5,m:ise,M:ose,p:ee,q:z,Q:W_,s:U_,S:ase,u:sse,U:lse,V:cse,w:use,W:dse,x:null,X:null,y:fse,Y:pse,Z:gse,"%":z_},b={a:j,A:S,b:E,B:A,c:D,d:P_,e:P_,f:jae,g:I_,G:D_,H:L_,I:L_,j:Oae,L:Rae,m:kae,M:Mae,p:O,q:Eae,Q:Dae,s:Iae,S:Aae,u:_ae,U:Cae,V:$ae,w:wae,W:Sae,x:R,X:M,y:I_,Y:D_,Z:Tae,"%":Nae};w.x=C(n,w),w.X=C(r,w),w.c=C(t,w),$.x=C(n,$),$.X=C(r,$),$.c=C(t,$);function C(L,B){return function(V){var N=[],X=-1,Q=0,Z=L.length,le,te,re;for(V instanceof Date||(V=new Date(+V));++X<Z;)L.charCodeAt(X)===37&&(N.push(L.slice(Q,X)),(te=N_[le=L.charAt(++X)])!=null?le=L.charAt(++X):te=le==="e"?" ":"0",(re=B[le])&&(le=re(V,te)),N.push(le),Q=X+1);return N.push(L.slice(Q,X)),N.join("")}}function T(L,B){return function(V){var N=kl(1900,void 0,1),X=k(N,L,V+="",0),Q,Z;if(X!=V.length)return null;if("Q"in N)return new Date(N.Q);if("s"in N)return new Date(N.s*1e3+("L"in N?N.L:0));if(B&&!("Z"in N)&&(N.Z=0),"p"in N&&(N.H=N.H%12+N.p*12),N.m===void 0&&(N.m="q"in N?N.q:0),"V"in N){if(N.V<1||N.V>53)return null;"w"in N||(N.w=1),"Z"in N?(Q=ag(kl(N.y,0,1)),Z=Q.getUTCDay(),Q=Z>4||Z===0?Uc.ceil(Q):Uc(Q),Q=Ub.offset(Q,(N.V-1)*7),N.y=Q.getUTCFullYear(),N.m=Q.getUTCMonth(),N.d=Q.getUTCDate()+(N.w+6)%7):(Q=og(kl(N.y,0,1)),Z=Q.getDay(),Q=Z>4||Z===0?Wc.ceil(Q):Wc(Q),Q=Wb.offset(Q,(N.V-1)*7),N.y=Q.getFullYear(),N.m=Q.getMonth(),N.d=Q.getDate()+(N.w+6)%7)}else("W"in N||"U"in N)&&("w"in N||(N.w="u"in N?N.u%7:"W"in N?1:0),Z="Z"in N?ag(kl(N.y,0,1)).getUTCDay():og(kl(N.y,0,1)).getDay(),N.m=0,N.d="W"in N?(N.w+6)%7+N.W*7-(Z+5)%7:N.w+N.U*7-(Z+6)%7);return"Z"in N?(N.H+=N.Z/100|0,N.M+=N.Z%100,ag(N)):og(N)}}function k(L,B,V,N){for(var X=0,Q=B.length,Z=V.length,le,te;X<Q;){if(N>=Z)return-1;if(le=B.charCodeAt(X++),le===37){if(le=B.charAt(X++),te=b[le in N_?B.charAt(X++):le],!te||(N=te(L,V,N))<0)return-1}else if(le!=V.charCodeAt(N++))return-1}return N}function O(L,B,V){var N=c.exec(B.slice(V));return N?(L.p=u.get(N[0].toLowerCase()),V+N[0].length):-1}function j(L,B,V){var N=h.exec(B.slice(V));return N?(L.w=p.get(N[0].toLowerCase()),V+N[0].length):-1}function S(L,B,V){var N=d.exec(B.slice(V));return N?(L.w=f.get(N[0].toLowerCase()),V+N[0].length):-1}function E(L,B,V){var N=x.exec(B.slice(V));return N?(L.m=_.get(N[0].toLowerCase()),V+N[0].length):-1}function A(L,B,V){var N=g.exec(B.slice(V));return N?(L.m=v.get(N[0].toLowerCase()),V+N[0].length):-1}function D(L,B,V){return k(L,t,B,V)}function R(L,B,V){return k(L,n,B,V)}function M(L,B,V){return k(L,r,B,V)}function I(L){return a[L.getDay()]}function F(L){return o[L.getDay()]}function U(L){return l[L.getMonth()]}function P(L){return s[L.getMonth()]}function W(L){return i[+(L.getHours()>=12)]}function q(L){return 1+~~(L.getMonth()/3)}function H(L){return a[L.getUTCDay()]}function Y(L){return o[L.getUTCDay()]}function G(L){return l[L.getUTCMonth()]}function J(L){return s[L.getUTCMonth()]}function ee(L){return i[+(L.getUTCHours()>=12)]}function z(L){return 1+~~(L.getUTCMonth()/3)}return{format:function(L){var B=C(L+="",w);return B.toString=function(){return L},B},parse:function(L){var B=T(L+="",!1);return B.toString=function(){return L},B},utcFormat:function(L){var B=C(L+="",$);return B.toString=function(){return L},B},utcParse:function(L){var B=T(L+="",!0);return B.toString=function(){return L},B}}}var N_={"-":"",_:" ",0:"0"},Sn=/^\s*\d+/,bae=/^%/,yae=/[\\^$*+?|[\]().{}]/g;function kt(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 xae(e){return e.replace(yae,"\\$&")}function Ol(e){return new RegExp("^(?:"+e.map(xae).join("|")+")","i")}function Ml(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function wae(e,t,n){var r=Sn.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function _ae(e,t,n){var r=Sn.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Cae(e,t,n){var r=Sn.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function $ae(e,t,n){var r=Sn.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Sae(e,t,n){var r=Sn.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function D_(e,t,n){var r=Sn.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function I_(e,t,n){var r=Sn.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Tae(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 Eae(e,t,n){var r=Sn.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function kae(e,t,n){var r=Sn.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function P_(e,t,n){var r=Sn.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Oae(e,t,n){var r=Sn.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function L_(e,t,n){var r=Sn.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Mae(e,t,n){var r=Sn.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Aae(e,t,n){var r=Sn.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Rae(e,t,n){var r=Sn.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function jae(e,t,n){var r=Sn.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Nae(e,t,n){var r=bae.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Dae(e,t,n){var r=Sn.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Iae(e,t,n){var r=Sn.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function F_(e,t){return kt(e.getDate(),t,2)}function Pae(e,t){return kt(e.getHours(),t,2)}function Lae(e,t){return kt(e.getHours()%12||12,t,2)}function Fae(e,t){return kt(1+Wb.count(_o(e),e),t,3)}function R5(e,t){return kt(e.getMilliseconds(),t,3)}function Bae(e,t){return R5(e,t)+"000"}function zae(e,t){return kt(e.getMonth()+1,t,2)}function Wae(e,t){return kt(e.getMinutes(),t,2)}function Uae(e,t){return kt(e.getSeconds(),t,2)}function Hae(e){var t=e.getDay();return t===0?7:t}function Vae(e,t){return kt(Af.count(_o(e)-1,e),t,2)}function j5(e){var t=e.getDay();return t>=4||t===0?va(e):va.ceil(e)}function qae(e,t){return e=j5(e),kt(va.count(_o(e),e)+(_o(e).getDay()===4),t,2)}function Yae(e){return e.getDay()}function Gae(e,t){return kt(Wc.count(_o(e)-1,e),t,2)}function Kae(e,t){return kt(e.getFullYear()%100,t,2)}function Zae(e,t){return e=j5(e),kt(e.getFullYear()%100,t,2)}function Xae(e,t){return kt(e.getFullYear()%1e4,t,4)}function Qae(e,t){var n=e.getDay();return e=n>=4||n===0?va(e):va.ceil(e),kt(e.getFullYear()%1e4,t,4)}function Jae(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+kt(t/60|0,"0",2)+kt(t%60,"0",2)}function B_(e,t){return kt(e.getUTCDate(),t,2)}function ese(e,t){return kt(e.getUTCHours(),t,2)}function tse(e,t){return kt(e.getUTCHours()%12||12,t,2)}function nse(e,t){return kt(1+Ub.count(Co(e),e),t,3)}function N5(e,t){return kt(e.getUTCMilliseconds(),t,3)}function rse(e,t){return N5(e,t)+"000"}function ise(e,t){return kt(e.getUTCMonth()+1,t,2)}function ose(e,t){return kt(e.getUTCMinutes(),t,2)}function ase(e,t){return kt(e.getUTCSeconds(),t,2)}function sse(e){var t=e.getUTCDay();return t===0?7:t}function lse(e,t){return kt(Rf.count(Co(e)-1,e),t,2)}function D5(e){var t=e.getUTCDay();return t>=4||t===0?ba(e):ba.ceil(e)}function cse(e,t){return e=D5(e),kt(ba.count(Co(e),e)+(Co(e).getUTCDay()===4),t,2)}function use(e){return e.getUTCDay()}function dse(e,t){return kt(Uc.count(Co(e)-1,e),t,2)}function fse(e,t){return kt(e.getUTCFullYear()%100,t,2)}function hse(e,t){return e=D5(e),kt(e.getUTCFullYear()%100,t,2)}function pse(e,t){return kt(e.getUTCFullYear()%1e4,t,4)}function mse(e,t){var n=e.getUTCDay();return e=n>=4||n===0?ba(e):ba.ceil(e),kt(e.getUTCFullYear()%1e4,t,4)}function gse(){return"+0000"}function z_(){return"%"}function W_(e){return+e}function U_(e){return Math.floor(+e/1e3)}var qa,op,I5,P5,L5;vse({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 vse(e){return qa=vae(e),op=qa.format,I5=qa.parse,P5=qa.utcFormat,L5=qa.utcParse,qa}function bse(e){return new Date(e)}function yse(e){return e instanceof Date?+e:+new Date(+e)}function Hb(e,t,n,r,i,o,a,s,l,c){var u=a5(),d=u.invert,f=u.domain,h=c(".%L"),p=c(":%S"),g=c("%I:%M"),v=c("%I %p"),x=c("%a %d"),_=c("%b %d"),w=c("%B"),$=c("%Y");function b(C){return(l(C)<C?h:s(C)<C?p:a(C)<C?g:o(C)<C?v:r(C)<C?i(C)<C?x:_:n(C)<C?w:$)(C)}return u.invert=function(C){return new Date(d(C))},u.domain=function(C){return arguments.length?f(Array.from(C,yse)):f().map(bse)},u.ticks=function(C){var T=f();return e(T[0],T[T.length-1],C??10)},u.tickFormat=function(C,T){return T==null?b:c(T)},u.nice=function(C){var T=f();return(!C||typeof C.range!="function")&&(C=t(T[0],T[T.length-1],C??10)),C?f(u5(T,C)):u},u.copy=function(){return np(u,Hb(e,t,n,r,i,o,a,s,l,c))},u}function xse(){return Sa.apply(Hb(mae,gae,rp,Bb,Lb,Pb,Db,jb,Xo,op).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function wse(){return Sa.apply(Hb(hae,pae,ip,zb,Fb,h5,Ib,Nb,Xo,P5).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 _se=lt("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),Cse=lt("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),$se=lt("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),Sse=lt("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),Tse=lt("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),Ese=lt("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),kse=lt("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),Ose=lt("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),F5=lt("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),Mse=lt("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),Gt=e=>Hre(e[e.length-1]);var ap=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(lt);const Ase=Gt(ap);var sp=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(lt);const Rse=Gt(sp);var lp=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(lt);const jse=Gt(lp);var cp=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(lt);const Nse=Gt(cp);var up=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(lt);const Dse=Gt(up);var dp=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(lt);const Ise=Gt(dp);var fp=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(lt);const Pse=Gt(fp);var hp=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(lt);const Lse=Gt(hp);var pp=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(lt);const Fse=Gt(pp);var mp=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(lt);const Bse=Gt(mp);var gp=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(lt);const zse=Gt(gp);var vp=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(lt);const Wse=Gt(vp);var bp=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(lt);const Use=Gt(bp);var yp=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(lt);const Hse=Gt(yp);var xp=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(lt);const Vse=Gt(xp);var wp=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(lt);const qse=Gt(wp);var _p=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(lt);const Yse=Gt(_p);var Cp=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(lt);const Gse=Gt(Cp);var $p=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(lt);const Kse=Gt($p);var Sp=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(lt);const Zse=Gt(Sp);var Tp=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(lt);const Xse=Gt(Tp);var Ep=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(lt);const Qse=Gt(Ep);var kp=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(lt);const Jse=Gt(kp);var Op=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(lt);const ele=Gt(Op);var Mp=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(lt);const tle=Gt(Mp);var Ap=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(lt);const nle=Gt(Ap);var Rp=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(lt);const rle=Gt(Rp);function ile(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 ole=bb(oi(300,.5,0),oi(-240,.5,1));var ale=bb(oi(-100,.75,.35),oi(80,1.5,.8)),sle=bb(oi(260,.75,.35),oi(80,1.5,.8)),ud=oi();function lle(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return ud.h=360*e-100,ud.s=1.5-1.5*t,ud.l=.8-.9*t,ud+""}var dd=Ns(),cle=Math.PI/3,ule=Math.PI*2/3;function dle(e){var t;return e=(.5-e)*Math.PI,dd.r=255*(t=Math.sin(e))*t,dd.g=255*(t=Math.sin(e+cle))*t,dd.b=255*(t=Math.sin(e+ule))*t,dd+""}function fle(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 jp(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}const hle=jp(lt("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var ple=jp(lt("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),mle=jp(lt("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),gle=jp(lt("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function vle(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var B5=vle;const Ae=sn(B5);var ble=$u,yle=EE,xle=rl;function wle(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=ble(e,a);n(s,a)&&yle(o,xle(a,e),s)}return o}var _le=wle;function Cle(e,t){return e!=null&&t in Object(e)}var $le=Cle,Sle=rl,Tle=Uh,Ele=or,kle=qh,Ole=ob,Mle=il;function Ale(e,t,n){t=Sle(t,e);for(var r=-1,i=t.length,o=!1;++r<i;){var a=Mle(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&&Ole(i)&&kle(a,i)&&(Ele(e)||Tle(e)))}var Rle=Ale,jle=$le,Nle=Rle;function Dle(e,t){return e!=null&&Nle(e,t,jle)}var z5=Dle,Ile=_le,Ple=z5;function Lle(e,t){return Ile(e,t,function(n,r){return Ple(e,r)})}var Fle=Lle;function Ble(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var Vb=Ble,H_=Zs,zle=Uh,Wle=or,V_=H_?H_.isConcatSpreadable:void 0;function Ule(e){return Wle(e)||zle(e)||!!(V_&&e&&e[V_])}var Hle=Ule,Vle=Vb,qle=Hle;function W5(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=qle),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?W5(s,t-1,n,r,i):Vle(i,s):r||(i[i.length]=s)}return i}var U5=W5,Yle=U5;function Gle(e){var t=e==null?0:e.length;return t?Yle(e,1):[]}var Kle=Gle,Zle=Kle,Xle=yE,Qle=xE;function Jle(e){return Qle(Xle(e,void 0,Zle),e+"")}var H5=Jle,ece=Fle,tce=H5,nce=tce(function(e,t){return e==null?{}:ece(e,t)}),rce=nce;const ice=sn(rce);function oce(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 ace=oce,sce=yb,lce=ace,cce=xb,uce=1,dce=2;function fce(e,t,n,r,i,o){var a=n&uce,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,h=n&dce?new sce:void 0;for(o.set(e,t),o.set(t,e);++d<s;){var p=e[d],g=t[d];if(r)var v=a?r(g,p,d,t,e,o):r(p,g,d,e,t,o);if(v!==void 0){if(v)continue;f=!1;break}if(h){if(!lce(t,function(x,_){if(!cce(h,_)&&(p===x||i(p,x,n,r,o)))return h.push(_)})){f=!1;break}}else if(!(p===g||i(p,g,n,r,o))){f=!1;break}}return o.delete(e),o.delete(t),f}var V5=fce;function hce(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var pce=hce;function mce(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var qb=mce,q_=Zs,Y_=lE,gce=_u,vce=V5,bce=pce,yce=qb,xce=1,wce=2,_ce="[object Boolean]",Cce="[object Date]",$ce="[object Error]",Sce="[object Map]",Tce="[object Number]",Ece="[object RegExp]",kce="[object Set]",Oce="[object String]",Mce="[object Symbol]",Ace="[object ArrayBuffer]",Rce="[object DataView]",G_=q_?q_.prototype:void 0,sg=G_?G_.valueOf:void 0;function jce(e,t,n,r,i,o,a){switch(n){case Rce:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Ace:return!(e.byteLength!=t.byteLength||!o(new Y_(e),new Y_(t)));case _ce:case Cce:case Tce:return gce(+e,+t);case $ce:return e.name==t.name&&e.message==t.message;case Ece:case Oce:return e==t+"";case Sce:var s=bce;case kce:var l=r&xce;if(s||(s=yce),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=wce,a.set(e,t);var u=vce(s(e),s(t),r,i,o,a);return a.delete(e),u;case Mce:if(sg)return sg.call(e)==sg.call(t)}return!1}var Nce=jce,Dce=Vb,Ice=or;function Pce(e,t,n){var r=t(e);return Ice(e)?r:Dce(r,n(e))}var q5=Pce;function Lce(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 Y5=Lce;function Fce(){return[]}var G5=Fce,Bce=Y5,zce=G5,Wce=Object.prototype,Uce=Wce.propertyIsEnumerable,K_=Object.getOwnPropertySymbols,Hce=K_?function(e){return e==null?[]:(e=Object(e),Bce(K_(e),function(t){return Uce.call(e,t)}))}:zce,Yb=Hce,Vce=dE,qce=Vce(Object.keys,Object),Yce=qce,Gce=ib,Kce=Yce,Zce=Object.prototype,Xce=Zce.hasOwnProperty;function Qce(e){if(!Gce(e))return Kce(e);var t=[];for(var n in Object(e))Xce.call(e,n)&&n!="constructor"&&t.push(n);return t}var Jce=Qce,eue=vE,tue=Jce,nue=el;function rue(e){return nue(e)?eue(e):tue(e)}var Tu=rue,iue=q5,oue=Yb,aue=Tu;function sue(e){return iue(e,aue,oue)}var K5=sue,Z_=K5,lue=1,cue=Object.prototype,uue=cue.hasOwnProperty;function due(e,t,n,r,i,o){var a=n&lue,s=Z_(e),l=s.length,c=Z_(t),u=c.length;if(l!=u&&!a)return!1;for(var d=l;d--;){var f=s[d];if(!(a?f in t:uue.call(t,f)))return!1}var h=o.get(e),p=o.get(t);if(h&&p)return h==t&&p==e;var g=!0;o.set(e,t),o.set(t,e);for(var v=a;++d<l;){f=s[d];var x=e[f],_=t[f];if(r)var w=a?r(_,x,f,t,e,o):r(x,_,f,e,t,o);if(!(w===void 0?x===_||i(x,_,n,r,o):w)){g=!1;break}v||(v=f=="constructor")}if(g&&!v){var $=e.constructor,b=t.constructor;$!=b&&"constructor"in e&&"constructor"in t&&!(typeof $=="function"&&$ instanceof $&&typeof b=="function"&&b instanceof b)&&(g=!1)}return o.delete(e),o.delete(t),g}var fue=due,hue=$a,pue=ci,mue=hue(pue,"DataView"),gue=mue,vue=$a,bue=ci,yue=vue(bue,"Promise"),xue=yue,wue=$a,_ue=ci,Cue=wue(_ue,"Set"),Z5=Cue,$ue=$a,Sue=ci,Tue=$ue(Sue,"WeakMap"),Eue=Tue,Pv=gue,Lv=J1,Fv=xue,Bv=Z5,zv=Eue,X5=Wi,al=rE,X_="[object Map]",kue="[object Object]",Q_="[object Promise]",J_="[object Set]",e4="[object WeakMap]",t4="[object DataView]",Oue=al(Pv),Mue=al(Lv),Aue=al(Fv),Rue=al(Bv),jue=al(zv),Uo=X5;(Pv&&Uo(new Pv(new ArrayBuffer(1)))!=t4||Lv&&Uo(new Lv)!=X_||Fv&&Uo(Fv.resolve())!=Q_||Bv&&Uo(new Bv)!=J_||zv&&Uo(new zv)!=e4)&&(Uo=function(e){var t=X5(e),n=t==kue?e.constructor:void 0,r=n?al(n):"";if(r)switch(r){case Oue:return t4;case Mue:return X_;case Aue:return Q_;case Rue:return J_;case jue:return e4}return t});var Np=Uo,lg=Wh,Nue=V5,Due=Nce,Iue=fue,n4=Np,r4=or,i4=Hh,Pue=lb,Lue=1,o4="[object Arguments]",a4="[object Array]",fd="[object Object]",Fue=Object.prototype,s4=Fue.hasOwnProperty;function Bue(e,t,n,r,i,o){var a=r4(e),s=r4(t),l=a?a4:n4(e),c=s?a4:n4(t);l=l==o4?fd:l,c=c==o4?fd:c;var u=l==fd,d=c==fd,f=l==c;if(f&&i4(e)){if(!i4(t))return!1;a=!0,u=!1}if(f&&!u)return o||(o=new lg),a||Pue(e)?Nue(e,t,n,r,i,o):Due(e,t,l,n,r,i,o);if(!(n&Lue)){var h=u&&s4.call(e,"__wrapped__"),p=d&&s4.call(t,"__wrapped__");if(h||p){var g=h?e.value():e,v=p?t.value():t;return o||(o=new lg),i(g,v,n,r,o)}}return f?(o||(o=new lg),Iue(e,t,n,r,i,o)):!1}var zue=Bue,Wue=zue,l4=Er;function Q5(e,t,n,r,i){return e===t?!0:e==null||t==null||!l4(e)&&!l4(t)?e!==e&&t!==t:Wue(e,t,n,r,Q5,i)}var Gb=Q5,Uue=Gb;function Hue(e,t){return Uue(e,t)}var Vue=Hue;const que=sn(Vue);var J5=m.createContext(),Yue=function(e){var t=e.children,n=e.animate,r=n===void 0||n,i=e.config,o=i===void 0?"default":i,a=m.useMemo(function(){var s=wre(o)?FT[o]:o;return{animate:r,config:s}},[r,o]);return y.jsx(J5.Provider,{value:a,children:t})},qn=function(){return m.useContext(J5)},Gue=function(e){var t=e.children,n=e.condition,r=e.wrapper;return n?m.cloneElement(r,{},t):t},Kue={position:"relative"},Ma=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,l=e.motionConfig,c=m.useRef(null);return y.jsx(are,{theme:n,children:y.jsx(Yue,{animate:s,config:l,children:y.jsx(pre,{container:c,children:y.jsxs(Gue,{condition:i,wrapper:y.jsx("div",{style:Kue,ref:c}),children:[t,a&&y.jsx(hre,{})]})})})})},Zue=function(e,t){return e.width===t.width&&e.height===t.height},Xue=function(e){var t=e.children,n=e.width,r=e.height,i=e.onResize,o=e.debounceResize,a=j1({width:n,height:r},o,{equalityFn:Zue})[0];return m.useEffect(function(){i==null||i(a)},[a,i]),y.jsx(y.Fragment,{children:t(a)})},Aa=function(e){var t=e.children,n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,o=e.debounceResize,a=o===void 0?0:o;return y.jsx(Cre,{defaultWidth:n,defaultHeight:r,children:function(s){var l=s.width,c=s.height;return y.jsx(Xue,{width:l,height:c,onResize:i,debounceResize:a,children:t})}})};function c4(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Que(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 c4(i,o);var a={}.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)?c4(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.
300
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jr(){return Jr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jr.apply(null,arguments)}function ek(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 Jue=["id","colors"],ede=function(e){var t=e.id,n=e.colors,r=ek(e,Jue);return y.jsx("linearGradient",Jr({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 y.jsx("stop",{offset:o+"%",stopColor:a,stopOpacity:s!==void 0?s:1},o)})}))},tk={linearGradient:ede},Al={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1},tde=m.memo(function(e){var t=e.id,n=e.background,r=n===void 0?Al.background:n,i=e.color,o=i===void 0?Al.color:i,a=e.size,s=a===void 0?Al.size:a,l=e.padding,c=l===void 0?Al.padding:l,u=e.stagger,d=u===void 0?Al.stagger:u,f=s+c,h=s/2,p=c/2;return d===!0&&(f=2*s+2*c),y.jsxs("pattern",{id:t,width:f,height:f,patternUnits:"userSpaceOnUse",children:[y.jsx("rect",{width:f,height:f,fill:r}),y.jsx("circle",{cx:p+h,cy:p+h,r:h,fill:o}),d&&y.jsx("circle",{cx:1.5*c+s+h,cy:1.5*c+s+h,r:h,fill:o})]})}),xr=function(e){return e*Math.PI/180},Eu=function(e){return 180*e/Math.PI},nde=function(e){return e.startAngle+(e.endAngle-e.startAngle)/2},oa=function(e,t){return{x:Math.cos(e)*t,y:Math.sin(e)*t}},rde=function(e){var t=e%360;return t<0&&(t+=360),t},nk={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"}}},Rl={spacing:5,rotation:0,background:"#000000",color:"#ffffff",lineWidth:2},ide=m.memo(function(e){var t=e.id,n=e.spacing,r=n===void 0?Rl.spacing:n,i=e.rotation,o=i===void 0?Rl.rotation:i,a=e.background,s=a===void 0?Rl.background:a,l=e.color,c=l===void 0?Rl.color:l,u=e.lineWidth,d=u===void 0?Rl.lineWidth:u,f=Math.round(o)%360,h=Math.abs(r);f>180?f-=360:f>90?f-=180:f<-180?f+=360:f<-90&&(f+=180);var p,g=h,v=h;return f===0?p=`
301
- M 0 0 L `+g+` 0
302
- M 0 `+v+" L "+g+" "+v+`
303
- `:f===90?p=`
304
- M 0 0 L 0 `+v+`
305
- M `+g+" 0 L "+g+" "+v+`
306
- `:(g=Math.abs(h/Math.sin(xr(f))),v=h/Math.sin(xr(90-f)),p=f>0?`
307
- M 0 `+-v+" L "+2*g+" "+v+`
308
- M `+-g+" "+-v+" L "+g+" "+v+`
309
- M `+-g+" 0 L "+g+" "+2*v+`
310
- `:`
311
- M `+-g+" "+v+" L "+g+" "+-v+`
312
- M `+-g+" "+2*v+" L "+2*g+" "+-v+`
313
- M 0 `+2*v+" L "+2*g+` 0
314
- `),y.jsxs("pattern",{id:t,width:g,height:v,patternUnits:"userSpaceOnUse",children:[y.jsx("rect",{width:g,height:v,fill:s,stroke:"rgba(255, 0, 0, 0.1)",strokeWidth:0}),y.jsx("path",{d:p,strokeWidth:d,stroke:c,strokeLinecap:"square"})]})}),jl={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1},ode=m.memo(function(e){var t=e.id,n=e.color,r=n===void 0?jl.color:n,i=e.background,o=i===void 0?jl.background:i,a=e.size,s=a===void 0?jl.size:a,l=e.padding,c=l===void 0?jl.padding:l,u=e.stagger,d=u===void 0?jl.stagger:u,f=s+c,h=c/2;return d===!0&&(f=2*s+2*c),y.jsxs("pattern",{id:t,width:f,height:f,patternUnits:"userSpaceOnUse",children:[y.jsx("rect",{width:f,height:f,fill:o}),y.jsx("rect",{x:h,y:h,width:s,height:s,fill:r}),d&&y.jsx("rect",{x:1.5*c+s,y:1.5*c+s,width:s,height:s,fill:r})]})}),rk={patternDots:tde,patternLines:ide,patternSquares:ode},ade=["type"],u4=Jr({},tk,rk),sde=m.memo(function(e){var t=e.defs;return!t||t.length<1?null:y.jsx("defs",{"aria-hidden":!0,children:t.map(function(n){var r=n.type,i=ek(n,ade);return u4[r]?m.createElement(u4[r],Jr({key:i.id},i)):null})})}),Dp=m.forwardRef(function(e,t){var n=e.width,r=e.height,i=e.margin,o=e.defs,a=e.children,s=e.role,l=e.ariaLabel,c=e.ariaLabelledBy,u=e.ariaDescribedBy,d=e.isFocusable,f=Ft();return y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:r,role:s,"aria-label":l,"aria-labelledby":c,"aria-describedby":u,focusable:d,tabIndex:d?0:void 0,ref:t,children:[y.jsx(sde,{defs:o}),y.jsx("rect",{width:n,height:r,fill:f.background}),y.jsx("g",{transform:"translate("+i.left+","+i.top+")",children:a})]})}),lde=m.memo(function(e){var t=e.size,n=e.color,r=e.borderWidth,i=e.borderColor;return y.jsx("circle",{r:t/2,fill:n,stroke:i,strokeWidth:r,style:{pointerEvents:"none"}})}),cde=m.memo(function(e){var t=e.x,n=e.y,r=e.symbol,i=r===void 0?lde:r,o=e.size,a=e.datum,s=e.color,l=e.borderWidth,c=e.borderColor,u=e.label,d=e.labelTextAnchor,f=d===void 0?"middle":d,h=e.labelYOffset,p=h===void 0?-12:h,g=e.ariaLabel,v=e.ariaLabelledBy,x=e.ariaDescribedBy,_=e.ariaHidden,w=e.ariaDisabled,$=e.isFocusable,b=$!==void 0&&$,C=e.tabIndex,T=C===void 0?0:C,k=e.onFocus,O=e.onBlur,j=e.testId,S=Ft(),E=qn(),A=E.animate,D=E.config,R=li({transform:"translate("+t+", "+n+")",config:D,immediate:!A}),M=m.useCallback(function(F){k==null||k(a,F)},[k,a]),I=m.useCallback(function(F){O==null||O(a,F)},[O,a]);return y.jsxs(Yt.g,{transform:R.transform,style:{pointerEvents:"none"},focusable:b,tabIndex:b?T:void 0,"aria-label":g,"aria-labelledby":v,"aria-describedby":x,"aria-disabled":w,"aria-hidden":_,onFocus:b&&k?M:void 0,onBlur:b&&O?I:void 0,"data-testid":j,children:[m.createElement(i,{size:o,color:s,datum:a,borderWidth:l,borderColor:c}),u&&y.jsx("text",{textAnchor:f,y:p,style:Qne(S.dots.text),children:u})]})}),ude=m.memo(function(e){var t=e.width,n=e.height,r=e.axis,i=e.scale,o=e.value,a=e.lineStyle,s=e.textStyle,l=e.legend,c=e.legendNode,u=e.legendPosition,d=u===void 0?"top-right":u,f=e.legendOffsetX,h=f===void 0?14:f,p=e.legendOffsetY,g=p===void 0?14:p,v=e.legendOrientation,x=v===void 0?"horizontal":v,_=Ft(),w=0,$=0,b=0,C=0;if(r==="y"?(b=i(o),$=t):(w=i(o),C=n),l&&!c){var T=function(k){var O=k.axis,j=k.width,S=k.height,E=k.position,A=k.offsetX,D=k.offsetY,R=k.orientation,M=0,I=0,F=R==="vertical"?-90:0,U="start";if(O==="x")switch(E){case"top-left":M=-A,I=D,U="end";break;case"top":I=-D,U=R==="horizontal"?"middle":"start";break;case"top-right":M=A,I=D,U=R==="horizontal"?"start":"end";break;case"right":M=A,I=S/2,U=R==="horizontal"?"start":"middle";break;case"bottom-right":M=A,I=S-D,U="start";break;case"bottom":I=S+D,U=R==="horizontal"?"middle":"end";break;case"bottom-left":I=S-D,M=-A,U=R==="horizontal"?"end":"start";break;case"left":M=-A,I=S/2,U=R==="horizontal"?"end":"middle"}else switch(E){case"top-left":M=A,I=-D,U="start";break;case"top":M=j/2,I=-D,U=R==="horizontal"?"middle":"start";break;case"top-right":M=j-A,I=-D,U=R==="horizontal"?"end":"start";break;case"right":M=j+A,U=R==="horizontal"?"start":"middle";break;case"bottom-right":M=j-A,I=D,U="end";break;case"bottom":M=j/2,I=D,U=R==="horizontal"?"middle":"end";break;case"bottom-left":M=A,I=D,U=R==="horizontal"?"start":"end";break;case"left":M=-A,U=R==="horizontal"?"end":"middle"}return{x:M,y:I,rotation:F,textAnchor:U}}({axis:r,width:t,height:n,position:d,offsetX:h,offsetY:g,orientation:x});c=y.jsx("text",{transform:"translate("+T.x+", "+T.y+") rotate("+T.rotation+")",textAnchor:T.textAnchor,dominantBaseline:"central",style:s,children:l})}return y.jsxs("g",{transform:"translate("+w+", "+b+")",children:[y.jsx("line",{x1:0,x2:$,y1:0,y2:C,stroke:_.markers.lineColor,strokeWidth:_.markers.lineStrokeWidth,style:a}),c]})}),ik=m.memo(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 y.jsx(ude,Jr({},a,{width:n,height:r,scale:a.axis==="y"?o:i}),s)}):null}),Kb=function(e){var t=qn(),n=t.animate,r=t.config,i=function(s){var l=m.useRef();return m.useEffect(function(){l.current=s},[s]),l.current}(e),o=m.useMemo(function(){return FE(i,e)},[i,e]),a=li({from:{value:0},to:{value:1},reset:!0,config:r,immediate:!n}).value;return xo(a,o)};m.createContext(void 0);var Wv={basis:Xie,basisClosed:Qie,basisOpen:Jie,bundle:eoe,cardinal:toe,cardinalClosed:noe,cardinalOpen:roe,catmullRom:ioe,catmullRomClosed:ooe,catmullRomOpen:aoe,linear:_b,linearClosed:soe,monotoneX:loe,monotoneY:coe,natural:uoe,step:doe,stepAfter:hoe,stepBefore:foe},Zb=Object.keys(Wv);Zb.filter(function(e){return e.endsWith("Closed")});HE(Zb,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");HE(Zb,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");var ok=function(e){if(!Wv[e])throw new TypeError("'"+e+"', is not a valid curve interpolator identifier.");return Wv[e]};Ae(ap),Ae(sp),Ae(lp),Ae(cp),Ae(up),Ae(dp),Ae(fp),Ae(hp),Ae(pp),Ae(Ep),Ae(kp),Ae(Op),Ae(Rp),Ae(Mp),Ae(Ap),Ae(mp),Ae(gp),Ae(vp),Ae(bp),Ae(yp),Ae(xp),Ae(wp),Ae(_p),Ae(Cp),Ae($p),Ae(Sp),Ae(Tp);Ae(ap),Ae(sp),Ae(lp),Ae(cp),Ae(up),Ae(dp),Ae(fp),Ae(hp),Ae(pp),Ae(Ep),Ae(kp),Ae(Op),Ae(Rp),Ae(Mp),Ae(Ap),Ae(mp),Ae(gp),Ae(vp),Ae(bp),Ae(yp),Ae(xp),Ae(wp),Ae(_p),Ae(Cp),Ae($p),Ae(Sp),Ae(Tp);Zo(F5);var ak={top:0,right:0,bottom:0,left:0},Ra=function(e,t,n){return n===void 0&&(n={}),m.useMemo(function(){var r=Jr({},ak,n);return{margin:r,innerWidth:e-r.left-r.right,innerHeight:t-r.top-r.bottom,outerWidth:e,outerHeight:t}},[e,t,n])},dde=function(){var e=m.useRef(null),t=m.useState({left:0,top:0,width:0,height:0}),n=t[0],r=t[1],i=m.useState(function(){return typeof ResizeObserver>"u"?null:new ResizeObserver(function(o){var a=o[0];return r(a.contentRect)})})[0];return m.useEffect(function(){return e.current&&i!==null&&i.observe(e.current),function(){i!==null&&i.disconnect()}},[i]),[e,n]},fde=function(e){return typeof e=="function"?e:typeof e=="string"?e.indexOf("time:")===0?op(e.slice("5")):Su(e):function(t){return""+t}},Is=function(e){return m.useMemo(function(){return fde(e)},[e])},hde=function(e,t){var n=Q1(e)?e:function(r){return ii(r,e)};return n},sk=function(e){return Q1(e)?e:function(t){return ii(t,e)}},Oi=function(e){return m.useMemo(function(){return sk(e)},[e])},lk=function(e,t,n,r){return Math.sqrt(Math.pow(n-e,2)+Math.pow(r-t,2))},pde=function(e,t,n,r){var i=Math.atan2(r-t,n-e)-Math.PI/2;return i>0?i:2*Math.PI+i},ck=function(e,t,n,r,i,o){return e<=i&&i<=e+n&&t<=o&&o<=t+r},hs=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]},mde=Object.keys(tk),gde=Object.keys(rk),vde=function(e,t,n){if(e==="*")return!0;if(Q1(e))return e(t);if(sb(e)){var r=n?ii(t,n):t;return que(ice(r,Object.keys(e)),e)}return!1},Xb=function(e,t,n,r){var i=r===void 0?{}:r,o=i.dataKey,a=i.colorKey,s=a===void 0?"color":a,l=i.targetKey,c=l===void 0?"fill":l,u=[],d={};return e.length&&t.length&&(u=[].concat(e),t.forEach(function(f){for(var h,p=function(){var v=h.value,x=v.id,_=v.match;if(vde(_,f,o)){var w=e.find(function(S){return S.id===x});if(w){if(gde.includes(w.type))if(w.background==="inherit"||w.color==="inherit"){var $=ii(f,s),b=w.background,C=w.color,T=x;w.background==="inherit"&&(T=T+".bg."+$,b=$),w.color==="inherit"&&(T=T+".fg."+$,C=$),zl(f,c,"url(#"+T+")"),d[T]||(u.push(Jr({},w,{id:T,background:b,color:C})),d[T]=1)}else zl(f,c,"url(#"+x+")");else if(mde.includes(w.type))if(w.colors.map(function(S){return S.color}).includes("inherit")){var k=ii(f,s),O=x,j=Jr({},w,{colors:w.colors.map(function(S,E){return S.color!=="inherit"?S:(O=O+"."+E+"."+k,Jr({},S,{color:S.color==="inherit"?k:S.color}))})});j.id=O,zl(f,c,"url(#"+O+")"),d[O]||(u.push(j),d[O]=1)}else zl(f,c,"url(#"+x+")")}return 1}},g=Que(n);!(h=g()).done&&!p(););})),u};function Qb(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var i=0,o=t;i<o.length;i++){var a=o[i];typeof a=="function"?a(r):a!=null&&(a.current=r)}}}var ya=function(e,t){e.font=(t.fontWeight?t.fontWeight+" ":"")+t.fontSize+"px "+t.fontFamily},xa=function(e,t,n,r,i){r===void 0&&(r=0),i===void 0&&(i=0),t.outlineWidth>0&&(e.strokeStyle=t.outlineColor,e.lineWidth=2*t.outlineWidth,e.lineJoin="round",e.strokeText(n,r,i)),e.fillStyle=t.fill,e.fillText(n,r,i)};function tc(){return tc=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},tc.apply(null,arguments)}function d4(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 bde=["style","children"],yde=["outlineWidth","outlineColor","outlineOpacity"],sl=function(e){var t=e.style,n=e.children,r=d4(e,bde),i=t.outlineWidth,o=t.outlineColor,a=t.outlineOpacity,s=d4(t,yde);return y.jsxs(y.Fragment,{children:[i>0&&y.jsx(Yt.text,tc({},r,{style:tc({},s,{strokeWidth:2*i,stroke:o,strokeOpacity:a,strokeLinejoin:"round"}),children:n})),y.jsx(Yt.text,tc({},r,{style:s,children:n}))]})};function f4(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function xde(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 f4(i,o);var a={}.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)?f4(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.
315
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jf(){return jf=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},jf.apply(null,arguments)}var uk={nivo:["#e8c1a0","#f47560","#f1e15b","#e8a838","#61cdbb","#97e3d5"],category10:_se,accent:Cse,dark2:$se,paired:Sse,pastel1:Tse,pastel2:Ese,set1:kse,set2:Ose,set3:F5,tableau10:Mse},wde=Object.keys(uk),dk={brown_blueGreen:ap,purpleRed_green:sp,pink_yellowGreen:lp,purple_orange:cp,red_blue:up,red_grey:dp,red_yellow_blue:fp,red_yellow_green:hp,spectral:pp},_de=Object.keys(dk),Cde={brown_blueGreen:Ase,purpleRed_green:Rse,pink_yellowGreen:jse,purple_orange:Nse,red_blue:Dse,red_grey:Ise,red_yellow_blue:Pse,red_yellow_green:Lse,spectral:Fse},fk={blues:Ep,greens:kp,greys:Op,oranges:Rp,purples:Mp,reds:Ap,blue_green:mp,blue_purple:gp,green_blue:vp,orange_red:bp,purple_blue_green:yp,purple_blue:xp,purple_red:wp,red_purple:_p,yellow_green_blue:Cp,yellow_green:$p,yellow_orange_brown:Sp,yellow_orange_red:Tp},$de=Object.keys(fk),Sde={blues:Qse,greens:Jse,greys:ele,oranges:rle,purples:tle,reds:nle,turbo:fle,viridis:hle,inferno:mle,magma:ple,plasma:gle,cividis:ile,warm:ale,cool:sle,cubehelixDefault:ole,blue_green:Bse,blue_purple:zse,green_blue:Wse,orange_red:Use,purple_blue_green:Hse,purple_blue:Vse,purple_red:qse,red_purple:Yse,yellow_green_blue:Gse,yellow_green:Kse,yellow_orange_brown:Zse,yellow_orange_red:Xse},cg=jf({},uk,dk,fk),Tde=function(e){return wde.includes(e)},Ede=function(e){return _de.includes(e)},kde=function(e){return $de.includes(e)},Ode={rainbow:lle,sinebow:dle};jf({},Cde,Sde,Ode);var Mde=function(e){return e.theme!==void 0},Ade=function(e){return e.from!==void 0},Rde=function(e,t){if(typeof e=="function")return e;if(sb(e)){if(Mde(e)){if(t===void 0)throw new Error("Unable to use color from theme as no theme was provided");var n=ii(t,e.theme);if(n===void 0)throw new Error("Color from theme is undefined at path: '"+e.theme+"'");return function(){return n}}if(Ade(e)){var r=function(l){return ii(l,e.from)};if(Array.isArray(e.modifiers)){for(var i,o=[],a=function(){var l=i.value,c=l[0],u=l[1];if(c==="brighter")o.push(function(d){return d.brighter(u)});else if(c==="darker")o.push(function(d){return d.darker(u)});else{if(c!=="opacity")throw new Error("Invalid color modifier: '"+c+"', must be one of: 'brighter', 'darker', 'opacity'");o.push(function(d){return d.opacity=u,d})}},s=xde(e.modifiers);!(i=s()).done;)a();return o.length===0?r:function(l){return o.reduce(function(c,u){return u(c)},Ns(r(l))).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}},Sr=function(e,t){return m.useMemo(function(){return Rde(e,t)},[e,t])},jde=function(e,t){if(typeof e=="function")return e;var n=typeof t=="function"?t:function(d){return ii(d,t)};if(Array.isArray(e)){var r=Zo(e),i=function(d){return r(n(d))};return i.scale=r,i}if(sb(e)){if(function(d){return d.datum!==void 0}(e))return function(d){return ii(d,e.datum)};if(function(d){return d.scheme!==void 0}(e)){if(Tde(e.scheme)){var o=Zo(cg[e.scheme]),a=function(d){return o(n(d))};return a.scale=o,a}if(Ede(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=Zo(cg[e.scheme][e.size||11]),l=function(d){return s(n(d))};return l.scale=s,l}if(kde(e.scheme)){if(e.size!==void 0&&(e.size<3||e.size>9))throw new Error("Invalid size '"+e.size+"' for sequential color scheme '"+e.scheme+"', must be between 3~9");var c=Zo(cg[e.scheme][e.size||9]),u=function(d){return c(n(d))};return u.scale=c,u}}throw new Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return e}},Jb=function(e,t){return m.useMemo(function(){return jde(e,t)},[e,t])};function Ot(){return Ot=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ot.apply(null,arguments)}var Nde={pointerEvents:"none"},Dde=function(e){var t=e.label,n=e.style,r=Ft();return y.jsx(Yt.g,{transform:n.transform,opacity:n.progress,style:Nde,children:y.jsx(sl,{textAnchor:"middle",dominantBaseline:"central",style:Ot({},r.labels.text,{fill:n.textColor}),children:t})})},hk=function(e){var t=e%(2*Math.PI);return t<0&&(t+=2*Math.PI),t},pk=function(e,t){return e.filter(function(n){return Math.abs(Eu(n.arc.endAngle-n.arc.startAngle))>=t})},Ide={startAngle:{enter:function(e){return Ot({},e,{endAngle:e.startAngle})},update:function(e){return e},leave:function(e){return Ot({},e,{startAngle:e.endAngle})}},middleAngle:{enter:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return Ot({},e,{startAngle:t,endAngle:t})},update:function(e){return e},leave:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return Ot({},e,{startAngle:t,endAngle:t})}},endAngle:{enter:function(e){return Ot({},e,{startAngle:e.endAngle})},update:function(e){return e},leave:function(e){return Ot({},e,{endAngle:e.startAngle})}},innerRadius:{enter:function(e){return Ot({},e,{outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return Ot({},e,{innerRadius:e.outerRadius})}},centerRadius:{enter:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return Ot({},e,{innerRadius:t,outerRadius:t})},update:function(e){return e},leave:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return Ot({},e,{innerRadius:t,outerRadius:t})}},outerRadius:{enter:function(e){return Ot({},e,{innerRadius:e.outerRadius})},update:function(e){return e},leave:function(e){return Ot({},e,{outerRadius:e.innerRadius})}},pushIn:{enter:function(e){return Ot({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return Ot({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})}},pushOut:{enter:function(e){return Ot({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})},update:function(e){return e},leave:function(e){return Ot({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})}}},mk=function(e,t){return m.useMemo(function(){var n=Ide[e];return{enter:function(r){return Ot({progress:0},n.enter(r.arc),t?t.enter(r):{})},update:function(r){return Ot({progress:1},n.update(r.arc),t?t.update(r):{})},leave:function(r){return Ot({progress:0},n.leave(r.arc),t?t.leave(r):{})}}},[e,t])},gk=function(e,t){var n=nde(e)-Math.PI/2,r=e.innerRadius+(e.outerRadius-e.innerRadius)*t;return oa(n,r)},Pde=function(e){return function(t,n,r,i){return xo([t,n,r,i],function(o,a,s,l){var c=gk({startAngle:o,endAngle:a,innerRadius:s,outerRadius:l},e);return"translate("+c.x+","+c.y+")"})}},Lde=function(e,t,n,r){t===void 0&&(t=.5),n===void 0&&(n="innerRadius");var i=qn(),o=i.animate,a=i.config,s=mk(n,r);return{transition:Ca(e,{keys:function(l){return l.id},initial:s.update,from:s.enter,enter:s.update,update:s.update,leave:s.leave,config:a,immediate:!o}),interpolate:Pde(t)}},Fde=function(e){var t=e.data,n=e.offset,r=n===void 0?.5:n,i=e.skipAngle,o=i===void 0?0:i,a=e.computeExtraProps,s=a===void 0?function(){return{}}:a;return m.useMemo(function(){return pk(t,o).map(function(l){var c=gk(l.arc,r);return Ot({},s(l),{x:c.x,y:c.y,data:l})})},[t,r,o,s])},Bde=function(e){var t=e.center,n=e.data,r=e.transitionMode,i=e.label,o=e.radiusOffset,a=e.skipAngle,s=e.skipRadius,l=e.textColor,c=e.component,u=c===void 0?Dde:c,d=Oi(i),f=Ft(),h=Sr(l,f),p=m.useMemo(function(){return n.filter(function(w){var $=Math.abs(Eu(w.arc.endAngle-w.arc.startAngle)),b=Math.abs(w.arc.outerRadius-w.arc.innerRadius);return $>=a&&b>=s})},[n,a,s]),g=Lde(p,o,r),v=g.transition,x=g.interpolate,_=u;return y.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:v(function(w,$){return m.createElement(_,{key:$.id,datum:$,label:d($),style:{progress:w.progress,transform:x(w.startAngle,w.endAngle,w.innerRadius,w.outerRadius),textColor:h($)}})})})},zde=function(e,t,n){ya(e,n.labels.text),e.textAlign="center",e.textBaseline="middle",t.forEach(function(r){xa(e,Ot({},n.labels.text,{fill:r.textColor}),String(r.label),r.x,r.y)})},Wde=function(e){var t=e.data,n=e.offset,r=e.skipAngle,i=e.label,o=e.textColor,a=Oi(i),s=Ft(),l=Sr(o,s),c=m.useCallback(function(u){return{label:a(u),textColor:l(u)}},[a,l]);return Fde({data:t,offset:n,skipAngle:r,computeExtraProps:c})},Ude=function(e){var t=e.label,n=e.style,r=Ft();return y.jsxs(Yt.g,{opacity:n.opacity,children:[y.jsx(Yt.path,{fill:"none",stroke:n.linkColor,strokeWidth:n.thickness,d:n.path}),y.jsx(sl,{transform:n.textPosition,textAnchor:n.textAnchor,dominantBaseline:"central",style:Ot({},r.labels.text,{fill:n.textColor}),children:t})]})},Hde=function(e){var t=hk(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2);return t<Math.PI/2||t>1.5*Math.PI?"start":"end"},ey=function(e,t,n,r){var i,o,a=hk(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2),s=oa(a,e.outerRadius+t),l=oa(a,e.outerRadius+t+n);return a<Math.PI/2||a>1.5*Math.PI?(i="after",o={x:l.x+r,y:l.y}):(i="before",o={x:l.x-r,y:l.y}),{side:i,points:[s,l,o]}},Vde=Cb().x(function(e){return e.x}).y(function(e){return e.y}),qde=function(e,t,n,r,i,o,a){return xo([e,t,n,r,i,o,a],function(s,l,c,u,d,f,h){var p=ey({startAngle:s,endAngle:l,outerRadius:u},d,f,h).points;return Vde(p)})},Yde=function(e,t,n,r){return xo([e,t,n,r],function(i,o,a,s){return Hde({startAngle:i,endAngle:o})})},Gde=function(e,t,n,r,i,o,a,s){return xo([e,t,n,r,i,o,a,s],function(l,c,u,d,f,h,p,g){var v=ey({startAngle:l,endAngle:c,outerRadius:d},f,h,p),x=v.points,_=v.side,w=x[2];return _==="before"?w.x-=g:w.x+=g,"translate("+w.x+","+w.y+")"})},Kde=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,l=e.textOffset,c=e.linkColor,u=e.textColor,d=qn(),f=d.animate,h=d.config,p=Ft(),g=Sr(c,p),v=Sr(u,p),x=function(w,$){return m.useMemo(function(){return pk(w,$)},[w,$])}(t,s),_=function(w){var $=w.offset,b=w.diagonalLength,C=w.straightLength,T=w.textOffset,k=w.getLinkColor,O=w.getTextColor;return m.useMemo(function(){return{enter:function(j){return{startAngle:j.arc.startAngle,endAngle:j.arc.endAngle,innerRadius:j.arc.innerRadius,outerRadius:j.arc.outerRadius,offset:$,diagonalLength:0,straightLength:0,textOffset:T,linkColor:k(j),textColor:O(j),opacity:0}},update:function(j){return{startAngle:j.arc.startAngle,endAngle:j.arc.endAngle,innerRadius:j.arc.innerRadius,outerRadius:j.arc.outerRadius,offset:$,diagonalLength:b,straightLength:C,textOffset:T,linkColor:k(j),textColor:O(j),opacity:1}},leave:function(j){return{startAngle:j.arc.startAngle,endAngle:j.arc.endAngle,innerRadius:j.arc.innerRadius,outerRadius:j.arc.outerRadius,offset:$,diagonalLength:0,straightLength:0,textOffset:T,linkColor:k(j),textColor:O(j),opacity:0}}}},[b,C,T,k,O,$])}({offset:r,diagonalLength:i,straightLength:o,textOffset:l,getLinkColor:g,getTextColor:v});return{transition:Ca(x,{keys:function(w){return w.id},initial:_.update,from:_.enter,enter:_.update,update:_.update,leave:_.leave,config:h,immediate:!f}),interpolateLink:qde,interpolateTextAnchor:Yde,interpolateTextPosition:Gde}},Zde=function(e){var t=e.center,n=e.data,r=e.label,i=e.skipAngle,o=e.offset,a=e.diagonalLength,s=e.straightLength,l=e.strokeWidth,c=e.textOffset,u=e.textColor,d=e.linkColor,f=e.component,h=f===void 0?Ude:f,p=Oi(r),g=Kde({data:n,skipAngle:i,offset:o,diagonalLength:a,straightLength:s,textOffset:c,linkColor:d,textColor:u}),v=g.transition,x=g.interpolateLink,_=g.interpolateTextAnchor,w=g.interpolateTextPosition,$=h;return y.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:v(function(b,C){return m.createElement($,{key:C.id,datum:C,label:p(C),style:Ot({},b,{thickness:l,path:x(b.startAngle,b.endAngle,b.innerRadius,b.outerRadius,b.offset,b.diagonalLength,b.straightLength),textAnchor:_(b.startAngle,b.endAngle,b.innerRadius,b.outerRadius),textPosition:w(b.startAngle,b.endAngle,b.innerRadius,b.outerRadius,b.offset,b.diagonalLength,b.straightLength,b.textOffset)})})})})},Xde=function(e,t,n,r){e.textBaseline="middle",ya(e,n.labels.text),t.forEach(function(i){e.textAlign=nk.canvas.align[i.textAnchor],xa(e,Ot({},n.labels.text,{fill:i.textColor}),String(i.label),i.x,i.y),e.beginPath(),e.strokeStyle=i.linkColor,e.lineWidth=r,i.points.forEach(function(o,a){a===0?e.moveTo(o.x,o.y):e.lineTo(o.x,o.y)}),e.stroke()})},Qde=function(e){var t=e.data,n=e.skipAngle,r=n===void 0?0:n,i=e.offset,o=i===void 0?.5:i,a=e.diagonalLength,s=e.straightLength,l=e.computeExtraProps,c=l===void 0?function(){return{}}:l,u=m.useMemo(function(){return t.filter(function(d){return Math.abs(Eu(d.arc.endAngle-d.arc.startAngle))>=r}).map(function(d){return Ot({},ey(d.arc,o,a,s),{data:d})})},[t,r,o,a,s]);return m.useMemo(function(){return u.map(function(d){return Ot({},c(d),d)})},[u,c])},Jde=function(e){var t=e.data,n=e.skipAngle,r=e.offset,i=e.diagonalLength,o=e.straightLength,a=e.textOffset,s=a===void 0?0:a,l=e.label,c=e.linkColor,u=e.textColor,d=Oi(l),f=Ft(),h=Sr(c,f),p=Sr(u,f),g=m.useCallback(function(v){var x,_={x:v.points[2].x,y:v.points[2].y};return v.side==="before"?(_.x-=s,x="end"):(_.x+=s,x="start"),Ot({},_,{label:d(v.data),linkColor:h(v.data),textAnchor:x,textColor:p(v.data)})},[d,h,p,s]);return Qde({data:t,skipAngle:n,offset:r,diagonalLength:i,straightLength:o,computeExtraProps:g})},efe=function(e){var t=e.datum,n=e.style,r=e.onClick,i=e.onMouseEnter,o=e.onMouseMove,a=e.onMouseLeave,s=m.useCallback(function(d){return r==null?void 0:r(t,d)},[r,t]),l=m.useCallback(function(d){return i==null?void 0:i(t,d)},[i,t]),c=m.useCallback(function(d){return o==null?void 0:o(t,d)},[o,t]),u=m.useCallback(function(d){return a==null?void 0:a(t,d)},[a,t]);return y.jsx(Yt.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?l:void 0,onMouseMove:o?c:void 0,onMouseLeave:a?u:void 0,"data-testid":"arc."+t.id})},tfe=function(e,t,n,r,i){return xo([e,t,n,r],function(o,a,s,l){return i({startAngle:o,endAngle:a,innerRadius:Math.max(0,s),outerRadius:Math.max(0,l)})})},nfe=function(e,t,n){t===void 0&&(t="innerRadius");var r=qn(),i=r.animate,o=r.config,a=mk(t,n);return{transition:Ca(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:tfe}},rfe=function(e){var t=e.center,n=e.data,r=e.arcGenerator,i=e.borderWidth,o=e.borderColor,a=e.onClick,s=e.onMouseEnter,l=e.onMouseMove,c=e.onMouseLeave,u=e.transitionMode,d=e.component,f=d===void 0?efe:d,h=Ft(),p=Sr(o,h),g=nfe(n,u,{enter:function(w){return{opacity:0,color:w.color,borderColor:p(w)}},update:function(w){return{opacity:1,color:w.color,borderColor:p(w)}},leave:function(w){return{opacity:0,color:w.color,borderColor:p(w)}}}),v=g.transition,x=g.interpolate,_=f;return y.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:v(function(w,$){return m.createElement(_,{key:$.id,datum:$,style:Ot({},w,{borderWidth:i,path:x(w.startAngle,w.endAngle,w.innerRadius,w.outerRadius,r)}),onClick:a,onMouseEnter:s,onMouseMove:l,onMouseLeave:c})})})},ife=function(e,t,n,r,i,o){o===void 0&&(o=!0);var a=[],s=oa(xr(r),n);a.push([s.x,s.y]);var l=oa(xr(i),n);a.push([l.x,l.y]);for(var c=Math.round(Math.min(r,i));c<=Math.round(Math.max(r,i));c++)if(c%90==0){var u=oa(xr(c),n);a.push([u.x,u.y])}a=a.map(function(v){var x=v[0],_=v[1];return[e+x,t+_]}),o&&a.push([e,t]);var d=a.map(function(v){return v[0]}),f=a.map(function(v){return v[1]}),h=Math.min.apply(Math,d),p=Math.max.apply(Math,d),g=Math.min.apply(Math,f);return{points:a,x:h,y:g,width:p-h,height:Math.max.apply(Math,f)-g}},ofe=function(e,t,n,r,i,o){var a=lk(i,o,e,t);return a<n&&a>r},afe=function(e,t,n,r,i,o,a){if(ofe(e,t,n,r,o,a)){var s=pde(o,a,e,t);return i.find(function(l){var c=l.startAngle,u=l.endAngle;return s>=c&&s<u})}},sfe=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 m.useMemo(function(){return qie().innerRadius(function(a){return a.innerRadius}).outerRadius(function(a){return a.outerRadius}).cornerRadius(r).padAngle(o)},[r,o])},lfe=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,l=s===void 0?0:s,c=e.borderColor;return y.jsx("circle",{r:r/2,cx:t+r/2,cy:n+r/2,fill:i,opacity:a,strokeWidth:l,stroke:c===void 0?"transparent":c,style:{pointerEvents:"none"}})},cfe=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,l=s===void 0?0:s,c=e.borderColor;return y.jsx("g",{transform:"translate("+t+","+n+")",children:y.jsx("path",{d:`
316
- M`+r/2+` 0
317
- L`+.8*r+" "+r/2+`
318
- L`+r/2+" "+r+`
319
- L`+.2*r+" "+r/2+`
320
- L`+r/2+` 0
321
- `,fill:i,opacity:a,strokeWidth:l,stroke:c===void 0?"transparent":c,style:{pointerEvents:"none"}})})},ufe=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,l=s===void 0?0:s,c=e.borderColor;return y.jsx("rect",{x:t,y:n,fill:i,opacity:a,strokeWidth:l,stroke:c===void 0?"transparent":c,width:r,height:r,style:{pointerEvents:"none"}})},dfe=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,l=s===void 0?0:s,c=e.borderColor;return y.jsx("g",{transform:"translate("+t+","+n+")",children:y.jsx("path",{d:`
322
- M`+r/2+` 0
323
- L`+r+" "+r+`
324
- L0 `+r+`
325
- L`+r/2+` 0
326
- `,fill:i,opacity:a,strokeWidth:l,stroke:c===void 0?"transparent":c,style:{pointerEvents:"none"}})})};function lo(){return lo=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},lo.apply(null,arguments)}var vr={translateX:0,translateY:0,padding:0,itemsSpacing:0,itemDirection:"left-to-right",justify:!1,symbolShape:"square",symbolSize:16,symbolSpacing:8},ffe={top:0,right:0,bottom:0,left:0},ty=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 l=typeof i=="number"?{top:i,right:i,bottom:i,left:i}:lo({},ffe,i),c=l.left+l.right,u=l.top+l.bottom,d=a+c,f=s+u,h=(o-1)*r;return n==="row"?d=a*o+h+c:n==="column"&&(f=s*o+h+u),{width:d,height:f,padding:l}},vk=function(e){var t=e.anchor,n=e.translateX,r=e.translateY,i=e.containerWidth,o=e.containerHeight,a=e.width,s=e.height,l=n,c=r;switch(t){case"top":l+=(i-a)/2;break;case"top-right":l+=i-a;break;case"right":l+=i-a,c+=(o-s)/2;break;case"bottom-right":l+=i-a,c+=o-s;break;case"bottom":l+=(i-a)/2,c+=o-s;break;case"bottom-left":c+=o-s;break;case"left":c+=(o-s)/2;break;case"center":l+=(i-a)/2,c+=(o-s)/2}return{x:l,y:c}},bk=function(e){var t,n,r,i,o,a,s=e.direction,l=e.justify,c=e.symbolSize,u=e.symbolSpacing,d=e.width,f=e.height;switch(s){case"left-to-right":t=0,n=(f-c)/2,i=f/2,a="central",l?(r=d,o="end"):(r=c+u,o="start");break;case"right-to-left":t=d-c,n=(f-c)/2,i=f/2,a="central",l?(r=0,o="start"):(r=d-c-u,o="end");break;case"top-to-bottom":t=(d-c)/2,n=0,r=d/2,o="middle",l?(i=f,a="alphabetic"):(i=c+u,a="text-before-edge");break;case"bottom-to-top":t=(d-c)/2,n=f-c,r=d/2,o="middle",l?(i=0,a="text-before-edge"):(i=f-c-u,a="alphabetic")}return{symbolX:t,symbolY:n,labelX:r,labelY:i,labelAnchor:o,labelAlignment:a}},hfe={circle:lfe,diamond:cfe,square:ufe,triangle:dfe},pfe=function(e){var t,n,r,i,o,a,s,l,c,u,d,f=e.x,h=e.y,p=e.width,g=e.height,v=e.data,x=e.direction,_=x===void 0?vr.itemDirection:x,w=e.justify,$=w===void 0?vr.justify:w,b=e.textColor,C=e.background,T=C===void 0?"transparent":C,k=e.opacity,O=k===void 0?1:k,j=e.symbolShape,S=j===void 0?vr.symbolShape:j,E=e.symbolSize,A=E===void 0?vr.symbolSize:E,D=e.symbolSpacing,R=D===void 0?vr.symbolSpacing:D,M=e.symbolBorderWidth,I=M===void 0?0:M,F=e.symbolBorderColor,U=F===void 0?"transparent":F,P=e.onClick,W=e.onMouseEnter,q=e.onMouseLeave,H=e.toggleSerie,Y=e.effects,G=m.useState({}),J=G[0],ee=G[1],z=Ft(),L=m.useCallback(function(fe){if(Y){var xe=Y.filter(function(ve){return ve.on==="hover"}).reduce(function(ve,be){return lo({},ve,be.style)},{});ee(xe)}W==null||W(v,fe)},[W,v,Y]),B=m.useCallback(function(fe){if(Y){var xe=Y.filter(function(ve){return ve.on!=="hover"}).reduce(function(ve,be){return lo({},ve,be.style)},{});ee(xe)}q==null||q(v,fe)},[q,v,Y]),V=bk({direction:_,justify:$,symbolSize:(t=J.symbolSize)!=null?t:A,symbolSpacing:R,width:p,height:g}),N=V.symbolX,X=V.symbolY,Q=V.labelX,Z=V.labelY,le=V.labelAnchor,te=V.labelAlignment,re=[P,W,q,H].some(function(fe){return fe!==void 0}),se=typeof S=="function"?S:hfe[S];return y.jsxs("g",{transform:"translate("+f+","+h+")",style:{opacity:(n=J.itemOpacity)!=null?n:O},children:[y.jsx("rect",{width:p,height:g,fill:(r=J.itemBackground)!=null?r:T,style:{cursor:re?"pointer":"auto"},onClick:function(fe){P==null||P(v,fe),H==null||H(v.id)},onMouseEnter:L,onMouseLeave:B}),ie.createElement(se,lo({id:v.id,x:N,y:X,size:(i=J.symbolSize)!=null?i:A,fill:(o=(a=v.fill)!=null?a:v.color)!=null?o:"black",borderWidth:(s=J.symbolBorderWidth)!=null?s:I,borderColor:(l=J.symbolBorderColor)!=null?l:U},v.hidden?z.legends.hidden.symbol:void 0)),y.jsx(sl,{textAnchor:le,style:lo({},z.legends.text,{fill:(c=(u=(d=J.itemTextColor)!=null?d:b)!=null?u:z.legends.text.fill)!=null?c:"black",dominantBaseline:te,pointerEvents:"none",userSelect:"none"},v.hidden?z.legends.hidden.text:void 0),x:Q,y:Z,children:v.label})]})},mfe=function(e){var t=e.data,n=e.x,r=e.y,i=e.direction,o=e.padding,a=o===void 0?vr.padding:o,s=e.justify,l=e.effects,c=e.itemWidth,u=e.itemHeight,d=e.itemDirection,f=d===void 0?vr.itemDirection:d,h=e.itemsSpacing,p=h===void 0?vr.itemsSpacing:h,g=e.itemTextColor,v=e.itemBackground,x=v===void 0?"transparent":v,_=e.itemOpacity,w=_===void 0?1:_,$=e.symbolShape,b=e.symbolSize,C=e.symbolSpacing,T=e.symbolBorderWidth,k=e.symbolBorderColor,O=e.onClick,j=e.onMouseEnter,S=e.onMouseLeave,E=e.toggleSerie,A=ty({itemCount:t.length,itemWidth:c,itemHeight:u,itemsSpacing:p,direction:i,padding:a}).padding,D=i==="row"?c+p:0,R=i==="column"?u+p:0;return y.jsx("g",{transform:"translate("+n+","+r+")",children:t.map(function(M,I){return y.jsx(pfe,{data:M,x:I*D+A.left,y:I*R+A.top,width:c,height:u,direction:f,justify:s,effects:l,textColor:g,background:x,opacity:w,symbolShape:$,symbolSize:b,symbolSpacing:C,symbolBorderWidth:T,symbolBorderColor:k,onClick:O,onMouseEnter:j,onMouseLeave:S,toggleSerie:E},I)})})},ny=function(e){var t=e.data,n=e.containerWidth,r=e.containerHeight,i=e.translateX,o=i===void 0?vr.translateX:i,a=e.translateY,s=a===void 0?vr.translateY:a,l=e.anchor,c=e.direction,u=e.padding,d=u===void 0?vr.padding:u,f=e.justify,h=e.itemsSpacing,p=h===void 0?vr.itemsSpacing:h,g=e.itemWidth,v=e.itemHeight,x=e.itemDirection,_=e.itemTextColor,w=e.itemBackground,$=e.itemOpacity,b=e.symbolShape,C=e.symbolSize,T=e.symbolSpacing,k=e.symbolBorderWidth,O=e.symbolBorderColor,j=e.onClick,S=e.onMouseEnter,E=e.onMouseLeave,A=e.toggleSerie,D=e.effects,R=ty({itemCount:t.length,itemsSpacing:p,itemWidth:g,itemHeight:v,direction:c,padding:d}),M=R.width,I=R.height,F=vk({anchor:l,translateX:o,translateY:s,containerWidth:n,containerHeight:r,width:M,height:I}),U=F.x,P=F.y;return y.jsx(mfe,{data:t,x:U,y:P,direction:c,padding:d,justify:f,effects:D,itemsSpacing:p,itemWidth:g,itemHeight:v,itemDirection:x,itemTextColor:_,itemBackground:w,itemOpacity:$,symbolShape:b,symbolSize:C,symbolSpacing:T,symbolBorderWidth:k,symbolBorderColor:O,onClick:j,onMouseEnter:S,onMouseLeave:E,toggleSerie:typeof A=="boolean"?void 0:A})},gfe={start:"left",middle:"center",end:"right"},ry=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,l=s===void 0?0:s,c=t.anchor,u=t.direction,d=t.padding,f=d===void 0?0:d,h=t.justify,p=h!==void 0&&h,g=t.itemsSpacing,v=g===void 0?0:g,x=t.itemWidth,_=t.itemHeight,w=t.itemDirection,$=w===void 0?"left-to-right":w,b=t.itemTextColor,C=t.symbolSize,T=C===void 0?16:C,k=t.symbolSpacing,O=k===void 0?8:k,j=t.theme,S=ty({itemCount:n.length,itemWidth:x,itemHeight:_,itemsSpacing:v,direction:u,padding:f}),E=S.width,A=S.height,D=S.padding,R=vk({anchor:c,translateX:a,translateY:l,containerWidth:r,containerHeight:i,width:E,height:A}),M=R.x,I=R.y,F=u==="row"?x+v:0,U=u==="column"?_+v:0;e.save(),e.translate(M,I),ya(e,j.legends.text),n.forEach(function(P,W){var q,H=W*F+D.left,Y=W*U+D.top,G=bk({direction:$,justify:p,symbolSize:T,symbolSpacing:O,width:x,height:_}),J=G.symbolX,ee=G.symbolY,z=G.labelX,L=G.labelY,B=G.labelAnchor,V=G.labelAlignment;e.fillStyle=(q=P.color)!=null?q:"black",e.fillRect(H+J,Y+ee,T,T),e.textAlign=gfe[B],V==="central"&&(e.textBaseline="middle"),xa(e,lo({},j.legends.text,{fill:b??j.legends.text.fill}),String(P.label),H+z,Y+L)}),e.restore()};function Tr(){return Tr=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},Tr.apply(null,arguments)}function ku(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 h4,vfe=function(e){var t=e.width,n=e.height,r=e.legends,i=e.data,o=e.toggleSerie;return y.jsx(y.Fragment,{children:r.map(function(a,s){var l;return y.jsx(ny,Tr({},a,{containerWidth:t,containerHeight:n,data:(l=a.data)!=null?l:i,toggleSerie:a.toggleSerie?o:void 0}),s)})})},ge={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,arcLabelsSkipRadius:0,arcLabelsRadiusOffset:.5,arcLabelsTextColor:{theme:"labels.text.fill"},enableArcLinkLabels:!0,arcLinkLabel:"id",arcLinkLabelsSkipAngle:0,arcLinkLabelsOffset:0,arcLinkLabelsDiagonalLength:16,arcLinkLabelsStraightLength:24,arcLinkLabelsThickness:1,arcLinkLabelsTextOffset:6,arcLinkLabelsTextColor:{theme:"labels.text.fill"},arcLinkLabelsColor:{theme:"axis.ticks.line.stroke"},colors:{scheme:"nivo"},defs:[],fill:[],isInteractive:!0,animate:!0,motionConfig:"gentle",transitionMode:"innerRadius",tooltip:function(e){var t=e.datum;return y.jsx(hb,{id:t.id,value:t.formattedValue,enableChip:!0,color:t.color})},legends:[],role:"img",pixelRatio:typeof window<"u"&&(h4=window.devicePixelRatio)!=null?h4:1},bfe=["points"],yk=function(e){var t=e.data,n=e.id,r=n===void 0?ge.id:n,i=e.value,o=i===void 0?ge.value:i,a=e.valueFormat,s=e.colors,l=s===void 0?ge.colors:s,c=Oi(r),u=Oi(o),d=Is(a),f=Jb(l,"id");return m.useMemo(function(){return t.map(function(h){var p,g=c(h),v=u(h),x={id:g,label:(p=h.label)!=null?p:g,hidden:!1,value:v,formattedValue:d(v),data:h};return Tr({},x,{color:f(x)})})},[t,c,u,d,f])},yfe=function(e){var t=e.data,n=e.startAngle,r=e.endAngle,i=e.innerRadius,o=e.outerRadius,a=e.padAngle,s=e.sortByValue,l=e.activeId,c=e.activeInnerRadiusOffset,u=e.activeOuterRadiusOffset,d=e.hiddenIds,f=e.forwardLegendData,h=m.useMemo(function(){var x=Zie().value(function(_){return _.value}).startAngle(xr(n)).endAngle(xr(r)).padAngle(xr(a));return s||x.sortValues(null),x},[n,r,a,s]),p=m.useMemo(function(){var x=t.filter(function(_){return!d.includes(_.id)});return{dataWithArc:h(x).map(function(_){var w=Math.abs(_.endAngle-_.startAngle);return Tr({},_.data,{arc:{index:_.index,startAngle:_.startAngle,endAngle:_.endAngle,innerRadius:l===_.data.id?i-c:i,outerRadius:l===_.data.id?o+u:o,thickness:o-i,padAngle:_.padAngle,angle:w,angleDeg:Eu(w)}})}),legendData:t.map(function(_){return{id:_.id,label:_.label,color:_.color,hidden:d.includes(_.id),data:_}})}},[h,t,d,l,i,c,o,u]),g=p.legendData,v=m.useRef(f);return m.useEffect(function(){typeof v.current=="function"&&v.current(g)},[v,g]),p},xfe=function(e){var t=e.activeId,n=e.onActiveIdChange,r=e.defaultActiveId,i=t!==void 0,o=m.useState(i||r===void 0?null:r),a=o[0],s=o[1];return{activeId:i?t:a,setActiveId:m.useCallback(function(l){n&&n(l),i||s(l)},[i,n,s])}},xk=function(e){var t=e.data,n=e.width,r=e.height,i=e.innerRadius,o=i===void 0?ge.innerRadius:i,a=e.startAngle,s=a===void 0?ge.startAngle:a,l=e.endAngle,c=l===void 0?ge.endAngle:l,u=e.padAngle,d=u===void 0?ge.padAngle:u,f=e.sortByValue,h=f===void 0?ge.sortByValue:f,p=e.cornerRadius,g=p===void 0?ge.cornerRadius:p,v=e.fit,x=v===void 0?ge.fit:v,_=e.activeInnerRadiusOffset,w=_===void 0?ge.activeInnerRadiusOffset:_,$=e.activeOuterRadiusOffset,b=$===void 0?ge.activeOuterRadiusOffset:$,C=e.activeId,T=e.onActiveIdChange,k=e.defaultActiveId,O=e.forwardLegendData,j=xfe({activeId:C,onActiveIdChange:T,defaultActiveId:k}),S=j.activeId,E=j.setActiveId,A=m.useState([]),D=A[0],R=A[1],M=m.useMemo(function(){var U,P=Math.min(n,r)/2,W=P*Math.min(o,1),q=n/2,H=r/2;if(x){var Y=ife(q,H,P,s-90,c-90),G=Y.points,J=ku(Y,bfe),ee=Math.min(n/J.width,r/J.height),z={width:J.width*ee,height:J.height*ee};z.x=(n-z.width)/2,z.y=(r-z.height)/2,q=(q-J.x)/J.width*J.width*ee+z.x,H=(H-J.y)/J.height*J.height*ee+z.y,U={box:J,ratio:ee,points:G},P*=ee,W*=ee}return{centerX:q,centerY:H,radius:P,innerRadius:W,debug:U}},[n,r,o,s,c,x]),I=yfe({data:t,startAngle:s,endAngle:c,innerRadius:M.innerRadius,outerRadius:M.radius,padAngle:d,sortByValue:h,activeId:S,activeInnerRadiusOffset:w,activeOuterRadiusOffset:b,hiddenIds:D,forwardLegendData:O}),F=m.useCallback(function(U){R(function(P){return P.indexOf(U)>-1?P.filter(function(W){return W!==U}):[].concat(P,[U])})},[]);return Tr({arcGenerator:sfe({cornerRadius:g,padAngle:xr(d)}),activeId:S,setActiveId:E,toggleSerie:F},I,M)},wfe=function(e){var t=e.dataWithArc,n=e.arcGenerator,r=e.centerX,i=e.centerY,o=e.radius,a=e.innerRadius;return m.useMemo(function(){return{dataWithArc:t,arcGenerator:n,centerX:r,centerY:i,radius:o,innerRadius:a}},[t,n,r,i,o,a])},_fe=function(e){var t=e.center,n=e.data,r=e.arcGenerator,i=e.borderWidth,o=e.borderColor,a=e.isInteractive,s=e.onClick,l=e.onMouseEnter,c=e.onMouseMove,u=e.onMouseLeave,d=e.setActiveId,f=e.tooltip,h=e.transitionMode,p=Ui(),g=p.showTooltipFromEvent,v=p.hideTooltip,x=m.useMemo(function(){if(a)return function(b,C){s==null||s(b,C)}},[a,s]),_=m.useMemo(function(){if(a)return function(b,C){g(m.createElement(f,{datum:b}),C),d(b.id),l==null||l(b,C)}},[a,g,d,l,f]),w=m.useMemo(function(){if(a)return function(b,C){g(m.createElement(f,{datum:b}),C),c==null||c(b,C)}},[a,g,c,f]),$=m.useMemo(function(){if(a)return function(b,C){v(),d(null),u==null||u(b,C)}},[a,v,d,u]);return y.jsx(rfe,{center:t,data:n,arcGenerator:r,borderWidth:i,borderColor:o,transitionMode:h,onClick:x,onMouseEnter:_,onMouseMove:w,onMouseLeave:$})},Cfe=["isInteractive","animate","motionConfig","theme","renderWrapper"],$fe=function(e){var t=e.data,n=e.id,r=n===void 0?ge.id:n,i=e.value,o=i===void 0?ge.value:i,a=e.valueFormat,s=e.sortByValue,l=s===void 0?ge.sortByValue:s,c=e.layers,u=c===void 0?ge.layers:c,d=e.startAngle,f=d===void 0?ge.startAngle:d,h=e.endAngle,p=h===void 0?ge.endAngle:h,g=e.padAngle,v=g===void 0?ge.padAngle:g,x=e.fit,_=x===void 0?ge.fit:x,w=e.innerRadius,$=w===void 0?ge.innerRadius:w,b=e.cornerRadius,C=b===void 0?ge.cornerRadius:b,T=e.activeInnerRadiusOffset,k=T===void 0?ge.activeInnerRadiusOffset:T,O=e.activeOuterRadiusOffset,j=O===void 0?ge.activeOuterRadiusOffset:O,S=e.width,E=e.height,A=e.margin,D=e.colors,R=D===void 0?ge.colors:D,M=e.borderWidth,I=M===void 0?ge.borderWidth:M,F=e.borderColor,U=F===void 0?ge.borderColor:F,P=e.enableArcLabels,W=P===void 0?ge.enableArcLabels:P,q=e.arcLabel,H=q===void 0?ge.arcLabel:q,Y=e.arcLabelsSkipAngle,G=Y===void 0?ge.arcLabelsSkipAngle:Y,J=e.arcLabelsSkipRadius,ee=J===void 0?ge.arcLabelsSkipRadius:J,z=e.arcLabelsTextColor,L=z===void 0?ge.arcLabelsTextColor:z,B=e.arcLabelsRadiusOffset,V=B===void 0?ge.arcLabelsRadiusOffset:B,N=e.arcLabelsComponent,X=e.enableArcLinkLabels,Q=X===void 0?ge.enableArcLinkLabels:X,Z=e.arcLinkLabel,le=Z===void 0?ge.arcLinkLabel:Z,te=e.arcLinkLabelsSkipAngle,re=te===void 0?ge.arcLinkLabelsSkipAngle:te,se=e.arcLinkLabelsOffset,fe=se===void 0?ge.arcLinkLabelsOffset:se,xe=e.arcLinkLabelsDiagonalLength,ve=xe===void 0?ge.arcLinkLabelsDiagonalLength:xe,be=e.arcLinkLabelsStraightLength,Te=be===void 0?ge.arcLinkLabelsStraightLength:be,ce=e.arcLinkLabelsThickness,ae=ce===void 0?ge.arcLinkLabelsThickness:ce,ye=e.arcLinkLabelsTextOffset,De=ye===void 0?ge.arcLinkLabelsTextOffset:ye,Bt=e.arcLinkLabelsTextColor,Fe=Bt===void 0?ge.arcLinkLabelsTextColor:Bt,gt=e.arcLinkLabelsColor,_t=gt===void 0?ge.arcLinkLabelsColor:gt,nn=e.arcLinkLabelComponent,Ee=e.defs,je=Ee===void 0?ge.defs:Ee,vt=e.fill,qe=vt===void 0?ge.fill:vt,bt=e.isInteractive,at=bt===void 0?ge.isInteractive:bt,At=e.onClick,Ke=e.onMouseEnter,Ie=e.onMouseMove,We=e.onMouseLeave,Qe=e.tooltip,Pe=Qe===void 0?ge.tooltip:Qe,Je=e.activeId,ht=e.onActiveIdChange,nt=e.defaultActiveId,Ne=e.transitionMode,ke=Ne===void 0?ge.transitionMode:Ne,He=e.legends,yt=He===void 0?ge.legends:He,et=e.forwardLegendData,pt=e.role,tn=pt===void 0?ge.role:pt,zt=e.forwardedRef,Ht=Ra(S,E,A),vn=Ht.outerWidth,Kt=Ht.outerHeight,$e=Ht.margin,Ze=Ht.innerWidth,Ct=Ht.innerHeight,cn=yk({data:t,id:r,value:o,valueFormat:a,colors:R}),Zt=xk({data:cn,width:Ze,height:Ct,fit:_,innerRadius:$,startAngle:f,endAngle:p,padAngle:v,sortByValue:l,cornerRadius:C,activeInnerRadiusOffset:k,activeOuterRadiusOffset:j,activeId:Je,onActiveIdChange:ht,defaultActiveId:nt,forwardLegendData:et}),Le=Zt.dataWithArc,Be=Zt.legendData,ct=Zt.arcGenerator,Rt=Zt.centerX,$t=Zt.centerY,Xe=Zt.radius,St=Zt.innerRadius,kr=Zt.setActiveId,fn=Zt.toggleSerie,hn=Xb(je,Le,qe),Pn={arcs:null,arcLinkLabels:null,arcLabels:null,legends:null};u.includes("arcs")&&(Pn.arcs=y.jsx(_fe,{center:[Rt,$t],data:Le,arcGenerator:ct,borderWidth:I,borderColor:U,isInteractive:at,onClick:At,onMouseEnter:Ke,onMouseMove:Ie,onMouseLeave:We,setActiveId:kr,tooltip:Pe,transitionMode:ke},"arcs")),Q&&u.includes("arcLinkLabels")&&(Pn.arcLinkLabels=y.jsx(Zde,{center:[Rt,$t],data:Le,label:le,skipAngle:re,offset:fe,diagonalLength:ve,straightLength:Te,strokeWidth:ae,textOffset:De,textColor:Fe,linkColor:_t,component:nn},"arcLinkLabels")),W&&u.includes("arcLabels")&&(Pn.arcLabels=y.jsx(Bde,{center:[Rt,$t],data:Le,label:H,radiusOffset:V,skipAngle:G,skipRadius:ee,textColor:L,transitionMode:ke,component:N},"arcLabels")),yt.length>0&&u.includes("legends")&&(Pn.legends=y.jsx(vfe,{width:Ze,height:Ct,data:Be,legends:yt,toggleSerie:fn},"legends"));var ko=wfe({dataWithArc:Le,arcGenerator:ct,centerX:Rt,centerY:$t,radius:Xe,innerRadius:St});return y.jsx(Dp,{width:vn,height:Kt,margin:$e,defs:hn,role:tn,ref:zt,children:u.map(function(wt,Oo){return Pn[wt]!==void 0?Pn[wt]:typeof wt=="function"?y.jsx(m.Fragment,{children:m.createElement(wt,ko)},Oo):null})})},Sfe=m.forwardRef(function(e,t){var n=e.isInteractive,r=n===void 0?ge.isInteractive:n,i=e.animate,o=i===void 0?ge.animate:i,a=e.motionConfig,s=a===void 0?ge.motionConfig:a,l=e.theme,c=e.renderWrapper,u=ku(e,Cfe);return y.jsx(Ma,{animate:o,isInteractive:r,motionConfig:s,renderWrapper:c,theme:l,children:y.jsx($fe,Tr({isInteractive:r},u,{forwardedRef:t}))})}),Tfe=["defaultWidth","defaultHeight","onResize","debounceResize"],Efe=m.forwardRef(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,o=e.debounceResize,a=ku(e,Tfe);return y.jsx(Aa,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:o,children:function(s){var l=s.width,c=s.height;return y.jsx(Sfe,Tr({width:l,height:c},a,{ref:t}))}})}),kfe=["isInteractive","theme","renderWrapper"],Ofe=function(e){var t=e.data,n=e.id,r=n===void 0?ge.id:n,i=e.value,o=i===void 0?ge.value:i,a=e.valueFormat,s=e.sortByValue,l=s===void 0?ge.sortByValue:s,c=e.startAngle,u=c===void 0?ge.startAngle:c,d=e.endAngle,f=d===void 0?ge.endAngle:d,h=e.padAngle,p=h===void 0?ge.padAngle:h,g=e.fit,v=g===void 0?ge.fit:g,x=e.innerRadius,_=x===void 0?ge.innerRadius:x,w=e.cornerRadius,$=w===void 0?ge.cornerRadius:w,b=e.activeInnerRadiusOffset,C=b===void 0?ge.activeInnerRadiusOffset:b,T=e.activeOuterRadiusOffset,k=T===void 0?ge.activeOuterRadiusOffset:T,O=e.width,j=e.height,S=e.margin,E=e.pixelRatio,A=E===void 0?ge.pixelRatio:E,D=e.colors,R=D===void 0?ge.colors:D,M=e.borderWidth,I=M===void 0?ge.borderWidth:M,F=e.borderColor,U=F===void 0?ge.borderColor:F,P=e.enableArcLabels,W=P===void 0?ge.enableArcLabels:P,q=e.arcLabel,H=q===void 0?ge.arcLabel:q,Y=e.arcLabelsSkipAngle,G=Y===void 0?ge.arcLabelsSkipAngle:Y,J=e.arcLabelsTextColor,ee=J===void 0?ge.arcLabelsTextColor:J,z=e.arcLabelsRadiusOffset,L=z===void 0?ge.arcLabelsRadiusOffset:z,B=e.enableArcLinkLabels,V=B===void 0?ge.enableArcLinkLabels:B,N=e.arcLinkLabel,X=N===void 0?ge.arcLinkLabel:N,Q=e.arcLinkLabelsSkipAngle,Z=Q===void 0?ge.arcLinkLabelsSkipAngle:Q,le=e.arcLinkLabelsOffset,te=le===void 0?ge.arcLinkLabelsOffset:le,re=e.arcLinkLabelsDiagonalLength,se=re===void 0?ge.arcLinkLabelsDiagonalLength:re,fe=e.arcLinkLabelsStraightLength,xe=fe===void 0?ge.arcLinkLabelsStraightLength:fe,ve=e.arcLinkLabelsThickness,be=ve===void 0?ge.arcLinkLabelsThickness:ve,Te=e.arcLinkLabelsTextOffset,ce=Te===void 0?ge.arcLinkLabelsTextOffset:Te,ae=e.arcLinkLabelsTextColor,ye=ae===void 0?ge.arcLinkLabelsTextColor:ae,De=e.arcLinkLabelsColor,Bt=De===void 0?ge.arcLinkLabelsColor:De,Fe=e.isInteractive,gt=Fe===void 0?ge.isInteractive:Fe,_t=e.onClick,nn=e.onMouseMove,Ee=e.tooltip,je=Ee===void 0?ge.tooltip:Ee,vt=e.activeId,qe=e.onActiveIdChange,bt=e.defaultActiveId,at=e.legends,At=at===void 0?ge.legends:at,Ke=e.forwardLegendData,Ie=e.role,We=e.forwardedRef,Qe=m.useRef(null),Pe=Ft(),Je=Ra(O,j,S),ht=Je.margin,nt=Je.innerWidth,Ne=Je.innerHeight,ke=Je.outerWidth,He=Je.outerHeight,yt=yk({data:t,id:r,value:o,valueFormat:a,colors:R}),et=xk({data:yt,width:nt,height:Ne,fit:v,innerRadius:_,startAngle:u,endAngle:f,padAngle:p,sortByValue:l,cornerRadius:$,activeInnerRadiusOffset:C,activeOuterRadiusOffset:k,activeId:vt,onActiveIdChange:qe,defaultActiveId:bt,forwardLegendData:Ke}),pt=et.dataWithArc,tn=et.arcGenerator,zt=et.centerX,Ht=et.centerY,vn=et.radius,Kt=et.innerRadius,$e=et.setActiveId,Ze=Sr(U,Pe),Ct=Wde({data:pt,label:H,skipAngle:G,offset:L,textColor:ee}),cn=Jde({data:pt,skipAngle:Z,offset:te,diagonalLength:se,straightLength:xe,label:X,linkColor:Bt,textOffset:ce,textColor:ye});m.useEffect(function(){if(Qe.current){Qe.current.width=ke*A,Qe.current.height=He*A;var Xe=Qe.current.getContext("2d");Xe.scale(A,A),Xe.fillStyle=Pe.background,Xe.fillRect(0,0,ke,He),Xe.save(),Xe.translate(ht.left,ht.top),tn.context(Xe),Xe.save(),Xe.translate(zt,Ht),pt.forEach(function(St){Xe.beginPath(),Xe.fillStyle=St.color,Xe.strokeStyle=Ze(St),Xe.lineWidth=I,tn(St.arc),Xe.fill(),I>0&&Xe.stroke()}),V===!0&&Xde(Xe,cn,Pe,be),W===!0&&zde(Xe,Ct,Pe),Xe.restore(),At.forEach(function(St){ry(Xe,Tr({},St,{data:pt,containerWidth:nt,containerHeight:Ne,theme:Pe}))})}},[Qe,nt,Ne,ke,He,ht.top,ht.left,A,zt,Ht,tn,pt,I,Ze,W,Ct,V,cn,be,At,Pe]);var Zt=m.useMemo(function(){return pt.map(function(Xe){return Tr({id:Xe.id},Xe.arc)})},[pt]),Le=function(Xe){if(!Qe.current)return null;var St=hs(Qe.current,Xe),kr=St[0],fn=St[1],hn=afe(ht.left+zt,ht.top+Ht,vn,Kt,Zt,kr,fn);return hn?pt.find(function(Pn){return Pn.id===hn.id}):null},Be=Ui(),ct=Be.showTooltipFromEvent,Rt=Be.hideTooltip,$t=function(Xe){var St=Le(Xe);St?(nn==null||nn(St,Xe),$e(St.id),ct(m.createElement(je,{datum:St}),Xe)):($e(null),Rt())};return y.jsx("canvas",{ref:Qb(Qe,We),width:ke*A,height:He*A,style:{width:ke,height:He,cursor:gt?"auto":"normal"},onMouseEnter:gt?$t:void 0,onMouseMove:gt?$t:void 0,onMouseLeave:gt?function(){Rt()}:void 0,onClick:gt?function(Xe){if(_t){var St=Le(Xe);St&&_t(St,Xe)}}:void 0,role:Ie})},Mfe=m.forwardRef(function(e,t){var n=e.isInteractive,r=n===void 0?ge.isInteractive:n,i=e.theme,o=e.renderWrapper,a=ku(e,kfe);return y.jsx(Ma,{isInteractive:r,renderWrapper:o,theme:i,children:y.jsx(Ofe,Tr({isInteractive:r},a,{forwardedRef:t}))})}),Afe=["defaultWidth","defaultHeight","onResize","debounceResize"];m.forwardRef(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,o=e.debounceResize,a=ku(e,Afe);return y.jsx(Aa,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:o,children:function(s){var l=s.width,c=s.height;return y.jsx(Mfe,Tr({width:l,height:c},a,{ref:t}))}})});function Rfe(){}var jfe=Rfe,ug=Z5,Nfe=jfe,Dfe=qb,Ife=1/0,Pfe=ug&&1/Dfe(new ug([,-0]))[1]==Ife?function(e){return new ug(e)}:Nfe,Lfe=Pfe,Ffe=yb,Bfe=WE,zfe=UE,Wfe=xb,Ufe=Lfe,Hfe=qb,Vfe=200;function qfe(e,t,n){var r=-1,i=Bfe,o=e.length,a=!0,s=[],l=s;if(n)a=!1,i=zfe;else if(o>=Vfe){var c=t?null:Ufe(e);if(c)return Hfe(c);a=!1,i=Wfe,l=new Ffe}else l=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=l.length;f--;)if(l[f]===d)continue e;t&&l.push(d),s.push(u)}else i(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s}var wk=qfe,Yfe=wk;function Gfe(e){return e&&e.length?Yfe(e):[]}var Kfe=Gfe;const p4=sn(Kfe);var Zfe=Wh,Xfe=Gb,Qfe=1,Jfe=2;function ehe(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 l=s[0],c=e[l],u=s[1];if(a&&s[2]){if(c===void 0&&!(l in e))return!1}else{var d=new Zfe;if(r)var f=r(c,u,l,e,t,d);if(!(f===void 0?Xfe(u,c,Qfe|Jfe,r,d):f))return!1}}return!0}var the=ehe,nhe=ui;function rhe(e){return e===e&&!nhe(e)}var _k=rhe,ihe=_k,ohe=Tu;function ahe(e){for(var t=ohe(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,ihe(i)]}return t}var she=ahe;function lhe(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var Ck=lhe,che=the,uhe=she,dhe=Ck;function fhe(e){var t=uhe(e);return t.length==1&&t[0][2]?dhe(t[0][0],t[0][1]):function(n){return n===e||che(n,e,t)}}var hhe=fhe,phe=Gb,mhe=TE,ghe=z5,vhe=db,bhe=_k,yhe=Ck,xhe=il,whe=1,_he=2;function Che(e,t){return vhe(e)&&bhe(t)?yhe(xhe(e),t):function(n){var r=mhe(n,e);return r===void 0&&r===t?ghe(n,e):phe(t,r,whe|_he)}}var $he=Che;function She(e){return function(t){return t==null?void 0:t[e]}}var The=She,Ehe=$u;function khe(e){return function(t){return Ehe(t,e)}}var Ohe=khe,Mhe=The,Ahe=Ohe,Rhe=db,jhe=il;function Nhe(e){return Rhe(e)?Mhe(jhe(e)):Ahe(e)}var Dhe=Nhe,Ihe=hhe,Phe=$he,Lhe=Yh,Fhe=or,Bhe=Dhe;function zhe(e){return typeof e=="function"?e:e==null?Lhe:typeof e=="object"?Fhe(e)?Phe(e[0],e[1]):Ihe(e):Bhe(e)}var iy=zhe,Whe=iy,Uhe=wk;function Hhe(e,t){return e&&e.length?Uhe(e,Whe(t)):[]}var Vhe=Hhe;const Uv=sn(Vhe);var qhe=aE,Yhe=Tu;function Ghe(e,t){return e&&qhe(e,t,Yhe)}var Khe=Ghe,Zhe=el;function Xhe(e,t){return function(n,r){if(n==null)return n;if(!Zhe(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 Qhe=Xhe,Jhe=Khe,epe=Qhe,tpe=epe(Jhe),$k=tpe,npe=$k,rpe=el;function ipe(e,t){var n=-1,r=rpe(e)?Array(e.length):[];return npe(e,function(i,o,a){r[++n]=t(i,o,a)}),r}var ope=ipe;function ape(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var spe=ape,m4=Gh;function lpe(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,o=m4(e),a=t!==void 0,s=t===null,l=t===t,c=m4(t);if(!s&&!c&&!o&&e>t||o&&a&&l&&!s&&!c||r&&a&&l||!n&&l||!i)return 1;if(!r&&!o&&!c&&e<t||c&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!l)return-1}return 0}var cpe=lpe,upe=cpe;function dpe(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var l=upe(i[r],o[r]);if(l){if(r>=s)return l;var c=n[r];return l*(c=="desc"?-1:1)}}return e.index-t.index}var fpe=dpe,dg=Kh,hpe=$u,ppe=iy,mpe=ope,gpe=spe,vpe=tl,bpe=fpe,ype=Yh,xpe=or;function wpe(e,t,n){t.length?t=dg(t,function(o){return xpe(o)?function(a){return hpe(a,o.length===1?o[0]:o)}:o}):t=[ype];var r=-1;t=dg(t,vpe(ppe));var i=mpe(e,function(o,a,s){var l=dg(t,function(c){return c(o)});return{criteria:l,index:++r,value:o}});return gpe(i,function(o,a){return bpe(o,a,n)})}var _pe=wpe,Cpe=U5,$pe=_pe,Spe=ub,g4=wE,Tpe=Spe(function(e,t){if(e==null)return[];var n=t.length;return n>1&&g4(e,t[0],t[1])?t=[]:n>2&&g4(t[0],t[1],t[2])&&(t=[t[0]]),$pe(e,Cpe(t,1),[])}),Epe=Tpe;const kpe=sn(Epe);var Ope=Wi,Mpe=Er,Ape="[object Date]";function Rpe(e){return Mpe(e)&&Ope(e)==Ape}var jpe=Rpe,Npe=jpe,Dpe=tl,v4=Vh,b4=v4&&v4.isDate,Ipe=b4?Dpe(b4):Npe,Ppe=Ipe;const Lpe=sn(Ppe);function Vo(){return Vo=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},Vo.apply(null,arguments)}var Ya=[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)}],Fpe={millisecond:[],second:Ya.slice(0,1),minute:Ya.slice(0,2),hour:Ya.slice(0,3),day:Ya.slice(0,4),month:Ya.slice(0,5),year:Ya.slice(0,6)},Bpe=function(e){return function(t){return Fpe[e].forEach(function(n){n(t)}),t}},Sk=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=Bpe(i);return function(l){if(l===void 0)return l;if(n==="native"||l instanceof Date)return s(l);var c=a?L5(n):I5(n);return s(c(l))}},Fo={min:0,max:"auto",stacked:!1,reverse:!1,clamp:!1,nice:!0,round:!1},zpe=function(e,t,n,r){var i,o,a,s,l=e.min,c=l===void 0?Fo.min:l,u=e.max,d=u===void 0?Fo.max:u,f=e.stacked,h=f===void 0?Fo.stacked:f,p=e.reverse,g=p===void 0?Fo.reverse:p,v=e.clamp,x=v===void 0?Fo.clamp:v,_=e.nice,w=_===void 0?Fo.nice:_,$=e.round,b=$===void 0?Fo.round:$;c==="auto"?i=h===!0?(o=t.minStacked)!=null?o:0:t.min:i=c,d==="auto"?a=h===!0?(s=t.maxStacked)!=null?s:0:t.max:a=d;var C=Ef().range(r==="x"?[0,n]:[n,0]).interpolate(b?BE:Lc).domain(g?[a,i]:[i,a]).clamp(x);return w===!0?C.nice():typeof w=="number"&&C.nice(w),Wpe(C,h)},Wpe=function(e,t){t===void 0&&(t=!1);var n=e;return n.type="linear",n.stacked=t,n},Upe=function(e,t,n){var r=Moe().range([0,n]).domain(t.all);return r.type="point",r},Hpe={round:!1},Vpe=function(e,t,n,r){var i=e.round,o=i===void 0?Hpe.round:i,a=Ob().range(r==="x"?[0,n]:[n,0]).domain(t.all).round(o);return qpe(a)},qpe=function(e){var t=e;return t.type="band",t},Ga={format:"native",precision:"millisecond",min:"auto",max:"auto",useUTC:!0,nice:!1},Ype=function(e,t,n){var r,i,o=e.format,a=o===void 0?Ga.format:o,s=e.precision,l=s===void 0?Ga.precision:s,c=e.min,u=c===void 0?Ga.min:c,d=e.max,f=d===void 0?Ga.max:d,h=e.useUTC,p=h===void 0?Ga.useUTC:h,g=e.nice,v=g===void 0?Ga.nice:g,x=Sk({format:a,precision:l,useUTC:p});r=u==="auto"?x(t.min):a!=="native"?x(u):u,i=f==="auto"?x(t.max):a!=="native"?x(f):f;var _=p?wse():xse();_.range([0,n]),r&&i&&_.domain([r,i]),v===!0?_.nice():typeof v!="object"&&typeof v!="number"||_.nice(v);var w=_;return w.type="time",w.useUTC=p,w},Ka={base:10,min:"auto",max:"auto",round:!1,reverse:!1,nice:!0},Gpe=function(e,t,n,r){var i,o=e.base,a=o===void 0?Ka.base:o,s=e.min,l=s===void 0?Ka.min:s,c=e.max,u=c===void 0?Ka.max:c,d=e.round,f=d===void 0?Ka.round:d,h=e.reverse,p=h===void 0?Ka.reverse:h,g=e.nice,v=g===void 0?Ka.nice:g;if(t.all.some(function(T){return T===0}))throw new Error("a log scale domain must not include or cross zero");var x,_,w=!1;if(t.all.filter(function(T){return T!=null}).forEach(function(T){w||(i===void 0?i=Math.sign(T):Math.sign(T)!==i&&(w=!0))}),w)throw new Error("a log scale domain must be strictly-positive or strictly-negative");x=l==="auto"?t.min:l,_=u==="auto"?t.max:u;var $=d5().base(a),b=r==="x"?[0,n]:[n,0];f===!0?$.rangeRound(b):$.range(b),p===!0?$.domain([_,x]):$.domain([x,_]),v===!0?$.nice():typeof v=="number"&&$.nice(v);var C=$;return C.type="log",C},Za={constant:1,min:"auto",max:"auto",round:!1,reverse:!1,nice:!0},Kpe=function(e,t,n,r){var i,o,a=e.constant,s=a===void 0?Za.constant:a,l=e.min,c=l===void 0?Za.min:l,u=e.max,d=u===void 0?Za.max:u,f=e.round,h=f===void 0?Za.round:f,p=e.reverse,g=p===void 0?Za.reverse:p,v=e.nice,x=v===void 0?Za.nice:v;i=c==="auto"?t.min:c,o=d==="auto"?t.max:d;var _=f5().constant(s),w=r==="x"?[0,n]:[n,0];h===!0?_.rangeRound(w):_.range(w),g===!0?_.domain([o,i]):_.domain([i,o]),x===!0?_.nice():typeof x=="number"&&_.nice(x);var $=_;return $.type="symlog",$},Zpe=function(e){return e==="x"?"y":"x"},Xpe=function(e,t){return e===t},Qpe=function(e,t){return e.getTime()===t.getTime()};function Hc(e,t,n,r){switch(e.type){case"linear":return zpe(e,t,n,r);case"point":return Upe(0,t,n);case"band":return Vpe(e,t,n,r);case"time":return Ype(e,t,n);case"log":return Gpe(e,t,n,r);case"symlog":return Kpe(e,t,n,r);default:throw new Error("invalid scale spec")}}var y4=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},Jpe=function(e,t,n,r,i){var o=e.map(function(u){return function(d){return Vo({},d,{data:d.data.map(function(f){return{data:Vo({},f)}})})}(u)}),a=eme(o,t,n);"stacked"in t&&t.stacked===!0&&tme(a,o),"stacked"in n&&n.stacked===!0&&nme(a,o);var s=Hc(t,a.x,r,"x"),l=Hc(n,a.y,i,"y"),c=o.map(function(u){return Vo({},u,{data:u.data.map(function(d){return Vo({},d,{position:{x:y4(d,"x",s),y:y4(d,"y",l)}})})})});return Vo({},a,{series:c,xScale:s,yScale:l})},eme=function(e,t,n){return{x:x4(e,"x",t),y:x4(e,"y",n)}},x4=function(e,t,n,r){var i={},o=i.getValue,a=o===void 0?function(p){return p.data[t]}:o,s=i.setValue,l=s===void 0?function(p,g){p.data[t]=g}:s;if(n.type==="linear")e.forEach(function(p){p.data.forEach(function(g){var v=a(g);v&&l(g,parseFloat(String(v)))})});else if(n.type==="time"&&n.format!=="native"){var c=Sk(n);e.forEach(function(p){p.data.forEach(function(g){var v=a(g);v&&l(g,c(v))})})}var u=[];switch(e.forEach(function(p){p.data.forEach(function(g){u.push(a(g))})}),n.type){case"linear":var d=kpe(p4(u).filter(function(p){return p!==null}),function(p){return p});return{all:d,min:Math.min.apply(Math,d),max:Math.max.apply(Math,d)};case"time":var f=Uv(u,function(p){return p.getTime()}).slice(0).sort(function(p,g){return g.getTime()-p.getTime()}).reverse();return{all:f,min:f[0],max:Ae(f)};default:var h=p4(u);return{all:h,min:h[0],max:Ae(h)}}},Tk=function(e,t,n){var r=Zpe(e),i=[];t[r].all.forEach(function(o){var a=Lpe(o)?Qpe:Xpe,s=[];n.forEach(function(l){var c=l.data.find(function(h){return a(h.data[r],o)}),u=null,d=null;if(c!==void 0){if((u=c.data[e])!==null){var f=Ae(s);f===void 0?d=u:f!==null&&(d=f+u)}c.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)},tme=function(e,t){return Tk("x",e,t)},nme=function(e,t){return Tk("y",e,t)},Ek=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}},kk={millisecond:[zc,zc],second:[Iv,Iv],minute:[b5,S5],hour:[y5,T5],day:[gn(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)}),gn(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:[Af,Rf],sunday:[Af,Rf],monday:[Wc,Uc],tuesday:[x5,E5],wednesday:[w5,k5],thursday:[va,ba],friday:[_5,O5],saturday:[C5,M5],month:[$5,A5],year:[_o,Co]},rme=Object.keys(kk),ime=new RegExp("^every\\s*(\\d+)?\\s*("+rme.join("|")+")s?$","i"),Ok=function(e,t){if(Array.isArray(t))return t;if(typeof t=="string"&&"useUTC"in e){var n=t.match(ime);if(n){var r=n[1],i=n[2],o=kk[i][e.useUTC?1:0];if(i==="day"){var a,s,l=e.domain(),c=l[0],u=l[1],d=new Date(u);return d.setDate(d.getDate()+1),(a=(s=o.every(Number(r??1)))==null?void 0:s.range(c,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(h=t)=="number"&&isFinite(h)&&Math.floor(h)===h)return e.ticks(t)}var h;return e.domain()};function Lr(){return Lr=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},Lr.apply(null,arguments)}var Mk=function(e){var t,n=e.axis,r=e.scale,i=e.ticksPosition,o=e.tickValues,a=e.tickSize,s=e.tickPadding,l=e.tickRotation,c=e.truncateTickAt,u=e.engine,d=u===void 0?"svg":u,f=Ok(r,o),h=nk[d],p="bandwidth"in r?Ek(r):r,g={lineX:0,lineY:0},v={textX:0,textY:0},x=typeof document=="object"&&document.dir==="rtl",_=h.align.center,w=h.baseline.center;return n==="x"?(t=function($){var b;return{x:(b=p($))!=null?b:0,y:0}},g.lineY=a*(i==="after"?1:-1),v.textY=(a+s)*(i==="after"?1:-1),w=i==="after"?h.baseline.top:h.baseline.bottom,l===0?_=h.align.center:i==="after"&&l<0||i==="before"&&l>0?(_=h.align[x?"left":"right"],w=h.baseline.center):(i==="after"&&l>0||i==="before"&&l<0)&&(_=h.align[x?"right":"left"],w=h.baseline.center)):(t=function($){var b;return{x:0,y:(b=p($))!=null?b:0}},g.lineX=a*(i==="after"?1:-1),v.textX=(a+s)*(i==="after"?1:-1),_=i==="after"?h.align.left:h.align.right),{ticks:f.map(function($){var b=typeof $=="string"?function(C){var T=String(C).length;return c&&c>0&&T>c?""+String(C).slice(0,c).concat("..."):""+C}($):$;return Lr({key:$ instanceof Date?""+$.valueOf():""+$,value:b},t($),g,v)}),textAlign:_,textBaseline:w}},Ak=function(e,t){if(e===void 0||typeof e=="function")return e;if(t.type==="time"){var n=op(e);return function(r){return n(r instanceof Date?r:new Date(r))}}return Su(e)},Hv=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)||Ok(i,a)),l="bandwidth"in i?Ek(i):i,c=o==="x"?s.map(function(u){var d,f;return{key:u instanceof Date?""+u.valueOf():""+u,x1:(d=l(u))!=null?d:0,x2:(f=l(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=l(u))!=null?d:0,y2:(f=l(u))!=null?f:0}});return c},ome=m.memo(function(e){var t,n=e.value,r=e.format,i=e.lineX,o=e.lineY,a=e.onClick,s=e.textBaseline,l=e.textAnchor,c=e.theme,u=e.animatedProps,d=(t=r==null?void 0:r(n))!=null?t:n,f=m.useMemo(function(){var h={opacity:u.opacity};return a?{style:Lr({},h,{cursor:"pointer"}),onClick:function(p){return a(p,d)}}:{style:h}},[u.opacity,a,d]);return y.jsxs(Yt.g,Lr({transform:u.transform},f,{children:[y.jsx("line",{x1:0,x2:i,y1:0,y2:o,style:c.line}),y.jsx(sl,{dominantBaseline:s,textAnchor:l,transform:u.textTransform,style:c.text,children:""+d})]}))}),Kn={tickSize:5,tickPadding:5,tickRotation:0,legendPosition:"middle",legendOffset:0},ame=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,l=e.ticksPosition,c=e.tickValues,u=e.tickSize,d=u===void 0?Kn.tickSize:u,f=e.tickPadding,h=f===void 0?Kn.tickPadding:f,p=e.tickRotation,g=p===void 0?Kn.tickRotation:p,v=e.format,x=e.renderTick,_=x===void 0?ome:x,w=e.truncateTickAt,$=e.legend,b=e.legendPosition,C=b===void 0?Kn.legendPosition:b,T=e.legendOffset,k=T===void 0?Kn.legendOffset:T,O=e.style,j=e.onClick,S=e.ariaHidden,E=Ft(),A=ire(E.axis,O),D=m.useMemo(function(){return Ak(v,n)},[v,n]),R=Mk({axis:t,scale:n,ticksPosition:l,tickValues:c,tickSize:d,tickPadding:h,tickRotation:g,truncateTickAt:w}),M=R.ticks,I=R.textAlign,F=R.textBaseline,U=null;if($!==void 0){var P,W=0,q=0,H=0;t==="y"?(H=-90,W=k,C==="start"?(P="start",q=s):C==="middle"?(P="middle",q=s/2):C==="end"&&(P="end")):(q=k,C==="start"?P="start":C==="middle"?(P="middle",W=s/2):C==="end"&&(P="end",W=s)),U=y.jsx(y.Fragment,{children:y.jsx(sl,{transform:"translate("+W+", "+q+") rotate("+H+")",textAnchor:P,style:Lr({},A.legend.text,{dominantBaseline:"central"}),children:$})})}var Y=qn(),G=Y.animate,J=Y.config,ee=li({transform:"translate("+i+","+a+")",lineX2:t==="x"?s:0,lineY2:t==="x"?0:s,config:J,immediate:!G}),z=m.useCallback(function(V){return{opacity:1,transform:"translate("+V.x+","+V.y+")",textTransform:"translate("+V.textX+","+V.textY+") rotate("+g+")"}},[g]),L=m.useCallback(function(V){return{opacity:0,transform:"translate("+V.x+","+V.y+")",textTransform:"translate("+V.textX+","+V.textY+") rotate("+g+")"}},[g]),B=Ca(M,{keys:function(V){return V.key},initial:z,from:L,enter:z,update:z,leave:{opacity:0},config:J,immediate:!G});return y.jsxs(Yt.g,{transform:ee.transform,"aria-hidden":S,children:[B(function(V,N,X,Q){return ie.createElement(_,Lr({tickIndex:Q,format:D,rotate:g,textBaseline:F,textAnchor:I,truncateTickAt:w,animatedProps:V,theme:A.ticks},N,j?{onClick:j}:{}))}),y.jsx(Yt.line,{style:A.domain.line,x1:0,x2:ee.lineX2,y1:0,y2:ee.lineY2}),U]})},sme=m.memo(ame),Rk=["top","right","bottom","left"],jk=m.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 y.jsx(y.Fragment,{children:Rk.map(function(a){var s=o[a];if(!s)return null;var l=a==="top"||a==="bottom";return y.jsx(sme,Lr({},s,{axis:l?"x":"y",x:a==="right"?r:0,y:a==="bottom"?i:0,scale:l?t:n,length:l?r:i,ticksPosition:a==="top"||a==="left"?"before":"after",truncateTickAt:s.truncateTickAt}),a)})})}),lme=m.memo(function(e){var t=e.animatedProps,n=Ft();return y.jsx(Yt.line,Lr({},t,n.grid.line))}),w4=m.memo(function(e){var t=e.lines,n=qn(),r=n.animate,i=n.config,o=Ca(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 y.jsx("g",{children:o(function(a,s){return m.createElement(lme,Lr({},s,{key:s.key,animatedProps:a}))})})}),Nk=m.memo(function(e){var t=e.width,n=e.height,r=e.xScale,i=e.yScale,o=e.xValues,a=e.yValues,s=m.useMemo(function(){return!!r&&Hv({width:t,height:n,scale:r,axis:"x",values:o})},[r,o,t,n]),l=m.useMemo(function(){return!!i&&Hv({width:t,height:n,scale:i,axis:"y",values:a})},[n,t,i,a]);return y.jsxs(y.Fragment,{children:[s&&y.jsx(w4,{lines:s}),l&&y.jsx(w4,{lines:l})]})}),cme=function(e,t){var n,r,i=t.axis,o=t.scale,a=t.x,s=a===void 0?0:a,l=t.y,c=l===void 0?0:l,u=t.length,d=t.ticksPosition,f=t.tickValues,h=t.tickSize,p=h===void 0?Kn.tickSize:h,g=t.tickPadding,v=g===void 0?Kn.tickPadding:g,x=t.tickRotation,_=x===void 0?Kn.tickRotation:x,w=t.format,$=t.legend,b=t.legendPosition,C=b===void 0?Kn.legendPosition:b,T=t.legendOffset,k=T===void 0?Kn.legendOffset:T,O=t.theme,j=t.style,S=Mk({axis:i,scale:o,ticksPosition:d,tickValues:f,tickSize:p,tickPadding:v,tickRotation:_,engine:"canvas"}),E=S.ticks,A=S.textAlign,D=S.textBaseline;e.save(),e.translate(s,c);var R=kE(O.axis,j);e.textAlign=A,e.textBaseline=D,ya(e,R.ticks.text);var M=(n=R.domain.line.strokeWidth)!=null?n:0;typeof M!="string"&&M>0&&(e.lineWidth=M,e.lineCap="square",R.domain.line.stroke&&(e.strokeStyle=R.domain.line.stroke),e.beginPath(),e.moveTo(0,0),e.lineTo(i==="x"?u:0,i==="x"?0:u),e.stroke());var I=typeof w=="function"?w:function(Y){return""+Y},F=(r=R.ticks.line.strokeWidth)!=null?r:0,U=typeof F!="string"&&F>0;if(E.forEach(function(Y){U&&(e.lineWidth=F,e.lineCap="square",R.ticks.line.stroke&&(e.strokeStyle=R.ticks.line.stroke),e.beginPath(),e.moveTo(Y.x,Y.y),e.lineTo(Y.x+Y.lineX,Y.y+Y.lineY),e.stroke());var G=I(Y.value);e.save(),e.translate(Y.x+Y.textX,Y.y+Y.textY),e.rotate(xr(_)),xa(e,R.ticks.text,""+G),e.fillText(""+G,0,0),e.restore()}),$!==void 0){var P=0,W=0,q=0,H="center";i==="y"?(q=-90,P=k,C==="start"?(H="start",W=u):C==="middle"?(H="center",W=u/2):C==="end"&&(H="end")):(W=k,C==="start"?H="start":C==="middle"?(H="center",P=u/2):C==="end"&&(H="end",P=u)),e.translate(P,W),e.rotate(xr(q)),ya(e,R.legend.text),R.legend.text.fill&&(e.fillStyle=R.legend.text.fill),e.textAlign=H,e.textBaseline="middle",xa(e,R.legend.text,$)}e.restore()},Dk=function(e,t){var n=t.xScale,r=t.yScale,i=t.width,o=t.height,a=t.top,s=t.right,l=t.bottom,c=t.left,u=t.theme,d={top:a,right:s,bottom:l,left:c};Rk.forEach(function(f){var h=d[f];if(!h)return null;var p=f==="top"||f==="bottom",g=f==="top"||f==="left"?"before":"after",v=p?n:r,x=Ak(h.format,v);cme(e,Lr({},h,{axis:p?"x":"y",x:f==="right"?i:0,y:f==="bottom"?o:0,scale:v,format:x,length:p?i:o,ticksPosition:g,theme:u}))})},Nf=function(e,t){var n=t.width,r=t.height,i=t.scale,o=t.axis,a=t.values;Hv({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()})},ume=SE,dme=0;function fme(e){var t=++dme;return ume(e)+t}var hme=fme;const pme=sn(hme),Mi=11102230246251565e-32,Mn=134217729,mme=(3+8*Mi)*Mi;function fg(e,t,n,r,i){let o,a,s,l,c=t[0],u=r[0],d=0,f=0;u>c==u>-c?(o=c,c=t[++d]):(o=u,u=r[++f]);let h=0;if(d<e&&f<n)for(u>c==u>-c?(a=c+o,s=o-(a-c),c=t[++d]):(a=u+o,s=o-(a-u),u=r[++f]),o=a,s!==0&&(i[h++]=s);d<e&&f<n;)u>c==u>-c?(a=o+c,l=a-o,s=o-(a-l)+(c-l),c=t[++d]):(a=o+u,l=a-o,s=o-(a-l)+(u-l),u=r[++f]),o=a,s!==0&&(i[h++]=s);for(;d<e;)a=o+c,l=a-o,s=o-(a-l)+(c-l),c=t[++d],o=a,s!==0&&(i[h++]=s);for(;f<n;)a=o+u,l=a-o,s=o-(a-l)+(u-l),u=r[++f],o=a,s!==0&&(i[h++]=s);return(o!==0||h===0)&&(i[h++]=o),h}function gme(e,t){let n=t[0];for(let r=1;r<e;r++)n+=t[r];return n}function Ou(e){return new Float64Array(e)}const vme=(3+16*Mi)*Mi,bme=(2+12*Mi)*Mi,yme=(9+64*Mi)*Mi*Mi,Xa=Ou(4),_4=Ou(8),C4=Ou(12),$4=Ou(16),Fn=Ou(4);function xme(e,t,n,r,i,o,a){let s,l,c,u,d,f,h,p,g,v,x,_,w,$,b,C,T,k;const O=e-i,j=n-i,S=t-o,E=r-o;$=O*E,f=Mn*O,h=f-(f-O),p=O-h,f=Mn*E,g=f-(f-E),v=E-g,b=p*v-($-h*g-p*g-h*v),C=S*j,f=Mn*S,h=f-(f-S),p=S-h,f=Mn*j,g=f-(f-j),v=j-g,T=p*v-(C-h*g-p*g-h*v),x=b-T,d=b-x,Xa[0]=b-(x+d)+(d-T),_=$+x,d=_-$,w=$-(_-d)+(x-d),x=w-C,d=w-x,Xa[1]=w-(x+d)+(d-C),k=_+x,d=k-_,Xa[2]=_-(k-d)+(x-d),Xa[3]=k;let A=gme(4,Xa),D=bme*a;if(A>=D||-A>=D||(d=e-O,s=e-(O+d)+(d-i),d=n-j,c=n-(j+d)+(d-i),d=t-S,l=t-(S+d)+(d-o),d=r-E,u=r-(E+d)+(d-o),s===0&&l===0&&c===0&&u===0)||(D=yme*a+mme*Math.abs(A),A+=O*u+E*s-(S*c+j*l),A>=D||-A>=D))return A;$=s*E,f=Mn*s,h=f-(f-s),p=s-h,f=Mn*E,g=f-(f-E),v=E-g,b=p*v-($-h*g-p*g-h*v),C=l*j,f=Mn*l,h=f-(f-l),p=l-h,f=Mn*j,g=f-(f-j),v=j-g,T=p*v-(C-h*g-p*g-h*v),x=b-T,d=b-x,Fn[0]=b-(x+d)+(d-T),_=$+x,d=_-$,w=$-(_-d)+(x-d),x=w-C,d=w-x,Fn[1]=w-(x+d)+(d-C),k=_+x,d=k-_,Fn[2]=_-(k-d)+(x-d),Fn[3]=k;const R=fg(4,Xa,4,Fn,_4);$=O*u,f=Mn*O,h=f-(f-O),p=O-h,f=Mn*u,g=f-(f-u),v=u-g,b=p*v-($-h*g-p*g-h*v),C=S*c,f=Mn*S,h=f-(f-S),p=S-h,f=Mn*c,g=f-(f-c),v=c-g,T=p*v-(C-h*g-p*g-h*v),x=b-T,d=b-x,Fn[0]=b-(x+d)+(d-T),_=$+x,d=_-$,w=$-(_-d)+(x-d),x=w-C,d=w-x,Fn[1]=w-(x+d)+(d-C),k=_+x,d=k-_,Fn[2]=_-(k-d)+(x-d),Fn[3]=k;const M=fg(R,_4,4,Fn,C4);$=s*u,f=Mn*s,h=f-(f-s),p=s-h,f=Mn*u,g=f-(f-u),v=u-g,b=p*v-($-h*g-p*g-h*v),C=l*c,f=Mn*l,h=f-(f-l),p=l-h,f=Mn*c,g=f-(f-c),v=c-g,T=p*v-(C-h*g-p*g-h*v),x=b-T,d=b-x,Fn[0]=b-(x+d)+(d-T),_=$+x,d=_-$,w=$-(_-d)+(x-d),x=w-C,d=w-x,Fn[1]=w-(x+d)+(d-C),k=_+x,d=k-_,Fn[2]=_-(k-d)+(x-d),Fn[3]=k;const I=fg(M,C4,4,Fn,$4);return $4[I-1]}function hd(e,t,n,r,i,o){const a=(t-o)*(n-i),s=(e-i)*(r-o),l=a-s,c=Math.abs(a+s);return Math.abs(l)>=vme*c?l:-xme(e,t,n,r,i,o,c)}const S4=Math.pow(2,-52),pd=new Uint32Array(512);class Df{static from(t,n=Sme,r=Tme){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 Df(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,l=1/0,c=-1/0,u=-1/0;for(let O=0;O<a;O++){const j=t[2*O],S=t[2*O+1];j<s&&(s=j),S<l&&(l=S),j>c&&(c=j),S>u&&(u=S),this._ids[O]=O}const d=(s+c)/2,f=(l+u)/2;let h,p,g;for(let O=0,j=1/0;O<a;O++){const S=hg(d,f,t[2*O],t[2*O+1]);S<j&&(h=O,j=S)}const v=t[2*h],x=t[2*h+1];for(let O=0,j=1/0;O<a;O++){if(O===h)continue;const S=hg(v,x,t[2*O],t[2*O+1]);S<j&&S>0&&(p=O,j=S)}let _=t[2*p],w=t[2*p+1],$=1/0;for(let O=0;O<a;O++){if(O===h||O===p)continue;const j=Cme(v,x,_,w,t[2*O],t[2*O+1]);j<$&&(g=O,$=j)}let b=t[2*g],C=t[2*g+1];if($===1/0){for(let S=0;S<a;S++)this._dists[S]=t[2*S]-t[0]||t[2*S+1]-t[1];os(this._ids,this._dists,0,a-1);const O=new Uint32Array(a);let j=0;for(let S=0,E=-1/0;S<a;S++){const A=this._ids[S],D=this._dists[A];D>E&&(O[j++]=A,E=D)}this.hull=O.subarray(0,j),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(hd(v,x,_,w,b,C)<0){const O=p,j=_,S=w;p=g,_=b,w=C,g=O,b=j,C=S}const T=$me(v,x,_,w,b,C);this._cx=T.x,this._cy=T.y;for(let O=0;O<a;O++)this._dists[O]=hg(t[2*O],t[2*O+1],T.x,T.y);os(this._ids,this._dists,0,a-1),this._hullStart=h;let k=3;r[h]=n[g]=p,r[p]=n[h]=g,r[g]=n[p]=h,i[h]=0,i[p]=1,i[g]=2,o.fill(-1),o[this._hashKey(v,x)]=h,o[this._hashKey(_,w)]=p,o[this._hashKey(b,C)]=g,this.trianglesLen=0,this._addTriangle(h,p,g,-1,-1,-1);for(let O=0,j,S;O<this._ids.length;O++){const E=this._ids[O],A=t[2*E],D=t[2*E+1];if(O>0&&Math.abs(A-j)<=S4&&Math.abs(D-S)<=S4||(j=A,S=D,E===h||E===p||E===g))continue;let R=0;for(let P=0,W=this._hashKey(A,D);P<this._hashSize&&(R=o[(W+P)%this._hashSize],!(R!==-1&&R!==r[R]));P++);R=n[R];let M=R,I;for(;I=r[M],hd(A,D,t[2*M],t[2*M+1],t[2*I],t[2*I+1])>=0;)if(M=I,M===R){M=-1;break}if(M===-1)continue;let F=this._addTriangle(M,E,r[M],-1,-1,i[M]);i[E]=this._legalize(F+2),i[M]=F,k++;let U=r[M];for(;I=r[U],hd(A,D,t[2*U],t[2*U+1],t[2*I],t[2*I+1])<0;)F=this._addTriangle(U,E,I,i[E],-1,i[U]),i[E]=this._legalize(F+2),r[U]=U,k--,U=I;if(M===R)for(;I=n[M],hd(A,D,t[2*I],t[2*I+1],t[2*M],t[2*M+1])<0;)F=this._addTriangle(I,E,M,-1,i[M],i[I]),this._legalize(F+2),i[I]=F,r[M]=M,k--,M=I;this._hullStart=n[E]=M,r[M]=n[U]=E,r[E]=U,o[this._hashKey(A,D)]=E,o[this._hashKey(t[2*M],t[2*M+1])]=M}this.hull=new Uint32Array(k);for(let O=0,j=this._hullStart;O<k;O++)this.hull[O]=j,j=r[j];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(t,n){return Math.floor(wme(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],l=t-t%3;if(a=l+(t+2)%3,s===-1){if(o===0)break;t=pd[--o];continue}const c=s-s%3,u=l+(t+1)%3,d=c+(s+2)%3,f=n[a],h=n[t],p=n[u],g=n[d];if(_me(i[2*f],i[2*f+1],i[2*h],i[2*h+1],i[2*p],i[2*p+1],i[2*g],i[2*g+1])){n[t]=g,n[s]=f;const x=r[d];if(x===-1){let w=this._hullStart;do{if(this._hullTri[w]===d){this._hullTri[w]=t;break}w=this._hullPrev[w]}while(w!==this._hullStart)}this._link(t,x),this._link(s,r[a]),this._link(a,d);const _=c+(s+1)%3;o<pd.length&&(pd[o++]=_)}else{if(o===0)break;t=pd[--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 wme(e,t){const n=e/(Math.abs(e)+Math.abs(t));return(t>0?3-n:1+n)/4}function hg(e,t,n,r){const i=e-n,o=t-r;return i*i+o*o}function _me(e,t,n,r,i,o,a,s){const l=e-a,c=t-s,u=n-a,d=r-s,f=i-a,h=o-s,p=l*l+c*c,g=u*u+d*d,v=f*f+h*h;return l*(d*v-g*h)-c*(u*v-g*f)+p*(u*h-d*f)<0}function Cme(e,t,n,r,i,o){const a=n-e,s=r-t,l=i-e,c=o-t,u=a*a+s*s,d=l*l+c*c,f=.5/(a*c-s*l),h=(c*u-s*d)*f,p=(a*d-l*u)*f;return h*h+p*p}function $me(e,t,n,r,i,o){const a=n-e,s=r-t,l=i-e,c=o-t,u=a*a+s*s,d=l*l+c*c,f=.5/(a*c-s*l),h=e+(c*u-s*d)*f,p=t+(a*d-l*u)*f;return{x:h,y:p}}function os(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;Nl(e,i,o),t[e[n]]>t[e[r]]&&Nl(e,n,r),t[e[o]]>t[e[r]]&&Nl(e,o,r),t[e[n]]>t[e[o]]&&Nl(e,n,o);const s=e[o],l=t[s];for(;;){do o++;while(t[e[o]]<l);do a--;while(t[e[a]]>l);if(a<o)break;Nl(e,o,a)}e[n+1]=e[a],e[a]=s,r-o+1>=a-n?(os(e,t,o,r),os(e,t,n,a-1)):(os(e,t,n,a-1),os(e,t,o,r))}}function Nl(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function Sme(e){return e[0]}function Tme(e){return e[1]}const T4=1e-6;class Qo{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)>T4||Math.abs(this._y1-o)>T4)&&(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 Vv{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 Eme{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 g=0,v=0,x=r.length,_,w;g<x;g+=3,v+=2){const $=r[g]*2,b=r[g+1]*2,C=r[g+2]*2,T=t[$],k=t[$+1],O=t[b],j=t[b+1],S=t[C],E=t[C+1],A=O-T,D=j-k,R=S-T,M=E-k,I=(A*M-D*R)*2;if(Math.abs(I)<1e-9){if(o===void 0){o=a=0;for(const U of n)o+=t[U*2],a+=t[U*2+1];o/=n.length,a/=n.length}const F=1e9*Math.sign((o-T)*M-(a-k)*R);_=(T+S)/2-F*M,w=(k+E)/2+F*R}else{const F=1/I,U=A*A+D*D,P=R*R+M*M;_=T+(M*U-D*P)*F,w=k+(A*P-R*U)*F}s[v]=_,s[v+1]=w}let l=n[n.length-1],c,u=l*4,d,f=t[2*l],h,p=t[2*l+1];i.fill(0);for(let g=0;g<n.length;++g)l=n[g],c=u,d=f,h=p,u=l*4,f=t[2*l],p=t[2*l+1],i[c+2]=i[u]=h-p,i[c+3]=i[u+1]=f-d}render(t){const n=t==null?t=new Qo: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 h=Math.floor(u/3)*2,p=Math.floor(f/3)*2,g=a[h],v=a[h+1],x=a[p],_=a[p+1];this._renderSegment(g,v,x,_,t)}let l,c=o[o.length-1];for(let u=0;u<o.length;++u){l=c,c=o[u];const d=Math.floor(i[c]/3)*2,f=a[d],h=a[d+1],p=l*4,g=this._project(f,h,s[p+2],s[p+3]);g&&this._renderSegment(f,h,g[0],g[1],t)}return n&&n.value()}renderBounds(t){const n=t==null?t=new Qo: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 Qo: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 Vv;return this.renderCell(t,n),n.value()}_renderSegment(t,n,r,i,o){let a;const s=this._regioncode(t,n),l=this._regioncode(r,i);s===0&&l===0?(o.moveTo(t,n),o.lineTo(r,i)):(a=this._clipSegment(t,n,r,i,s,l))&&(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,l=i.length;s<l;s+=2)if(n[o]===i[s]&&n[o+1]===i[s+1]&&n[(o+2)%a]===i[(s+l-2)%l]&&n[(o+3)%a]===i[(s+l-1)%l]){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 l=a;do{const c=Math.floor(l/3);if(s.push(n[c*2],n[c*2+1]),l=l%3===2?l-2:l+1,o[l]!==t)break;l=i[l]}while(l!==a&&l!==-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],l=n[r-1],c,u=this._regioncode(s,l),d,f=0;for(let h=0;h<r;h+=2)if(o=s,a=l,s=n[h],l=n[h+1],c=u,u=this._regioncode(s,l),c===0&&u===0)d=f,f=0,i?i.push(s,l):i=[s,l];else{let p,g,v,x,_;if(c===0){if((p=this._clipSegment(o,a,s,l,c,u))===null)continue;[g,v,x,_]=p}else{if((p=this._clipSegment(s,l,o,a,u,c))===null)continue;[x,_,g,v]=p,d=f,f=this._edgecode(g,v),d&&f&&this._edge(t,d,f,i,i.length),i?i.push(g,v):i=[g,v]}d=f,f=this._edgecode(x,_),d&&f&&this._edge(t,d,f,i,i.length),i?i.push(x,_):i=[x,_]}if(i)d=f,f=this._edgecode(i[0],i[1]),d&&f&&this._edge(t,d,f,i,i.length);else if(this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return i}_clipSegment(t,n,r,i,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 l,c,u=o||a;u&8?(l=t+(r-t)*(this.ymax-n)/(i-n),c=this.ymax):u&4?(l=t+(r-t)*(this.ymin-n)/(i-n),c=this.ymin):u&2?(c=n+(i-n)*(this.xmax-t)/(r-t),l=this.xmax):(c=n+(i-n)*(this.xmin-t)/(r-t),l=this.xmin),o?(t=l,n=c,o=this._regioncode(t,n)):(r=l,i=c,a=this._regioncode(r,i))}}_clipInfinite(t,n,r,i,o,a){let s=Array.from(n),l;if((l=this._project(s[0],s[1],r,i))&&s.unshift(l[0],l[1]),(l=this._project(s[s.length-2],s[s.length-1],o,a))&&s.push(l[0],l[1]),s=this._clipFinite(t,s))for(let c=0,u=s.length,d,f=this._edgecode(s[u-2],s[u-1]);c<u;c+=2)d=f,f=this._edgecode(s[c],s[c+1]),d&&f&&(c=this._edge(t,d,f,s,c),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,l;if(i<0){if(n<=this.ymin)return null;(a=(this.ymin-n)/i)<o&&(l=this.ymin,s=t+(o=a)*r)}else if(i>0){if(n>=this.ymax)return null;(a=(this.ymax-n)/i)<o&&(l=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,l=n+(o=a)*i)}else if(r<0){if(t<=this.xmin)return null;(a=(this.xmin-t)/r)<o&&(s=this.xmin,l=n+(o=a)*i)}return[s,l]}_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 kme=2*Math.PI,Qa=Math.pow;function Ome(e){return e[0]}function Mme(e){return e[1]}function Ame(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 Rme(e,t,n){return[e+Math.sin(e+t)*n,t+Math.cos(e-t)*n]}class Ip{static from(t,n=Ome,r=Mme,i){return new Ip("length"in t?jme(t,n,r,i):Float64Array.from(Nme(t,n,r,i)))}constructor(t){this._delaunator=new Df(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&&Ame(t)){this.collinear=Int32Array.from({length:n.length/2},(f,h)=>h).sort((f,h)=>n[2*f]-n[2*h]||n[2*f+1]-n[2*h+1]);const l=this.collinear[0],c=this.collinear[this.collinear.length-1],u=[n[2*l],n[2*l+1],n[2*c],n[2*c+1]],d=1e-8*Math.hypot(u[3]-u[1],u[2]-u[0]);for(let f=0,h=n.length/2;f<h;++f){const p=Rme(n[2*f],n[2*f+1],d);n[2*f]=p[0],n[2*f+1]=p[1]}this._delaunator=new Df(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 l=0,c=r.length;l<c;++l){const u=o[l%3===2?l-2:l+1];(r[l]===-1||a[u]===-1)&&(a[u]=l)}for(let l=0,c=i.length;l<c;++l)s[i[l]]=l;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 Eme(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 l=n[t];if(l===-1)return;let c=l,u=-1;do{if(yield u=a[c],c=c%3===2?c-2:c+1,a[c]!==t)return;if(c=o[c],c===-1){const d=r[(i[t]+1)%r.length];d!==u&&(yield d);return}}while(c!==l)}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:l,points:c}=this;if(i[t]===-1||!c.length)return(t+1)%(c.length>>1);let u=t,d=Qa(n-c[t*2],2)+Qa(r-c[t*2+1],2);const f=i[t];let h=f;do{let p=l[h];const g=Qa(n-c[p*2],2)+Qa(r-c[p*2+1],2);if(g<d&&(d=g,u=p),h=h%3===2?h-2:h+1,l[h]!==t)break;if(h=s[h],h===-1){if(h=o[(a[t]+1)%o.length],h!==p&&Qa(n-c[h*2],2)+Qa(r-c[h*2+1],2)<d)return h;break}}while(h!==f);return u}render(t){const n=t==null?t=new Qo:void 0,{points:r,halfedges:i,triangles:o}=this;for(let a=0,s=i.length;a<s;++a){const l=i[a];if(l<a)continue;const c=o[a]*2,u=o[l]*2;t.moveTo(r[c],r[c+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 Qo:void 0,{points:i}=this;for(let o=0,a=i.length;o<a;o+=2){const s=i[o],l=i[o+1];t.moveTo(s+n,l),t.arc(s,l,n,0,kme)}return r&&r.value()}renderHull(t){const n=t==null?t=new Qo: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 l=2*r[s];t.lineTo(i[l],i[l+1])}return t.closePath(),n&&n.value()}hullPolygon(){const t=new Vv;return this.renderHull(t),t.value()}renderTriangle(t,n){const r=n==null?n=new Qo:void 0,{points:i,triangles:o}=this,a=o[t*=3]*2,s=o[t+1]*2,l=o[t+2]*2;return n.moveTo(i[a],i[a+1]),n.lineTo(i[s],i[s+1]),n.lineTo(i[l],i[l+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 Vv;return this.renderTriangle(t,n),n.value()}}function jme(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*Nme(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}function If(){return If=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},If.apply(null,arguments)}function Ik(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 sr={xDomain:[0,1],yDomain:[0,1],layers:["links","cells","points","bounds"],enableLinks:!1,linkLineWidth:1,linkLineColor:"#bbbbbb",enableCells:!0,cellLineWidth:2,cellLineColor:"#000000",pointSize:4,pointColor:"#666666",role:"img"},oy=function(e){return[e.x,e.y]},Mu=ak,Pk="cursor",Lk="top",Dme=function(e){var t=e.points,n=e.getNodePosition,r=n===void 0?oy:n,i=e.margin,o=i===void 0?Mu:i;return t.map(function(a){var s=r(a),l=s[0],c=s[1];return[l+o.left,c+o.top]})},Ime=function(e){var t=e.points,n=e.width,r=e.height,i=e.margin,o=i===void 0?Mu:i,a=e.debug,s=Ip.from(t),l=a?s.voronoi([0,0,o.left+n+o.right,o.top+r+o.bottom]):void 0;return{points:t,delaunay:s,voronoi:l}},Fk=function(e){var t=e.points,n=e.getNodePosition,r=n===void 0?oy:n,i=e.width,o=e.height,a=e.margin,s=a===void 0?Mu:a,l=e.debug;return m.useMemo(function(){return Ime({points:Dme({points:t,margin:s,getNodePosition:r}),width:i,height:o,margin:s,debug:l})},[r,t,i,o,s,l])},Pme=function(e){var t=e.data,n=e.width,r=e.height,i=e.xDomain,o=e.yDomain,a=m.useMemo(function(){return Ef().domain(i).range([0,n])},[i,n]),s=m.useMemo(function(){return Ef().domain(o).range([0,r])},[o,r]),l=m.useMemo(function(){return t.map(function(c){return{x:a(c.x),y:s(c.y),data:c}})},[t,a,s]);return m.useMemo(function(){var c=Ip.from(l.map(function(d){return[d.x,d.y]})),u=c.voronoi([0,0,n,r]);return{points:l,delaunay:c,voronoi:u}},[l,n,r])},Lme=function(e){var t=e.points,n=e.delaunay,r=e.voronoi;return m.useMemo(function(){return{points:t,delaunay:n,voronoi:r}},[t,n,r])},Fme=function(e){var t=e.elementRef,n=e.nodes,r=e.getNodePosition,i=r===void 0?oy:r,o=e.delaunay,a=e.setCurrent,s=e.margin,l=s===void 0?Mu:s,c=e.detectionRadius,u=c===void 0?1/0:c,d=e.isInteractive,f=d===void 0||d,h=e.onMouseEnter,p=e.onMouseMove,g=e.onMouseLeave,v=e.onMouseDown,x=e.onMouseUp,_=e.onClick,w=e.onDoubleClick,$=e.onTouchStart,b=e.onTouchMove,C=e.onTouchEnd,T=e.enableTouchCrosshair,k=T!==void 0&&T,O=e.tooltip,j=e.tooltipPosition,S=j===void 0?Pk:j,E=e.tooltipAnchor,A=E===void 0?Lk:E,D=m.useState(null),R=D[0],M=D[1],I=m.useRef(null);m.useEffect(function(){I.current=R},[I,R]);var F=m.useCallback(function(Q){if(!t.current||n.length===0)return null;var Z=hs(t.current,Q),le=Z[0],te=Z[1],re=o.find(le,te),se=re!==void 0?n[re]:null;if(se&&u!==1/0){var fe=i(se),xe=fe[0],ve=fe[1];lk(le,te,xe+l.left,ve+l.top)>u&&(re=null,se=null)}return re===null||se===null?null:[re,se]},[t,o,n,i,l,u]),U=Ui(),P=U.showTooltipAt,W=U.showTooltipFromEvent,q=U.hideTooltip,H=m.useMemo(function(){if(O)return S==="cursor"?function(Q,Z){W(O(Q),Z,A)}:function(Q){var Z=i(Q),le=Z[0],te=Z[1];P(O(Q),[le+l.left,te+l.top],A)}},[P,W,O,S,A,i,l]),Y=m.useCallback(function(Q){var Z=F(Q);if(M(Z),a==null||a(Z?Z[1]:null),Z){var le=Z[1];H==null||H(le,Q),h==null||h(Z[1],Q)}},[F,M,a,H,h]),G=m.useCallback(function(Q){var Z=F(Q);if(M(Z),Z){var le=Z[0],te=Z[1];if(a==null||a(te),H==null||H(te,Q),I.current){var re=I.current,se=re[0],fe=re[1];le!==se?g==null||g(fe,Q):p==null||p(te,Q)}else h==null||h(te,Q)}else a==null||a(null),q==null||q(),I.current&&(g==null||g(I.current[1],Q))},[F,M,a,I,h,p,g,H,q]),J=m.useCallback(function(Q){M(null),a==null||a(null),q(),g&&I.current&&g(I.current[1],Q)},[M,a,I,q,g]),ee=m.useCallback(function(Q){var Z=F(Q);M(Z),Z&&(v==null||v(Z[1],Q))},[F,M,v]),z=m.useCallback(function(Q){var Z=F(Q);M(Z),Z&&(x==null||x(Z[1],Q))},[F,M,x]),L=m.useCallback(function(Q){var Z=F(Q);M(Z),Z&&(_==null||_(Z[1],Q))},[F,M,_]),B=m.useCallback(function(Q){var Z=F(Q);M(Z),Z&&(w==null||w(Z[1],Q))},[F,M,w]),V=m.useCallback(function(Q){var Z=F(Q);k&&(M(Z),a==null||a(Z?Z[1]:null)),Z&&($==null||$(Z[1],Q))},[F,M,a,k,$]),N=m.useCallback(function(Q){var Z=F(Q);k&&(M(Z),a==null||a(Z?Z[1]:null)),Z&&(b==null||b(Z[1],Q))},[F,M,a,k,b]),X=m.useCallback(function(Q){k&&(M(null),a==null||a(null)),C&&I.current&&C(I.current[1],Q)},[k,M,a,C,I]);return{current:R,handleMouseEnter:f?Y:void 0,handleMouseMove:f?G:void 0,handleMouseLeave:f?J:void 0,handleMouseDown:f?ee:void 0,handleMouseUp:f?z:void 0,handleClick:f?L:void 0,handleDoubleClick:f?B:void 0,handleTouchStart:f?V:void 0,handleTouchMove:f?N:void 0,handleTouchEnd:f?X:void 0}},Bme=["theme"],zme=function(e){var t=e.data,n=e.width,r=e.height,i=e.margin,o=e.layers,a=o===void 0?sr.layers:o,s=e.xDomain,l=s===void 0?sr.xDomain:s,c=e.yDomain,u=c===void 0?sr.yDomain:c,d=e.enableLinks,f=d===void 0?sr.enableLinks:d,h=e.linkLineWidth,p=h===void 0?sr.linkLineWidth:h,g=e.linkLineColor,v=g===void 0?sr.linkLineColor:g,x=e.enableCells,_=x===void 0?sr.enableCells:x,w=e.cellLineWidth,$=w===void 0?sr.cellLineWidth:w,b=e.cellLineColor,C=b===void 0?sr.cellLineColor:b,T=e.enablePoints,k=T===void 0?sr.enableCells:T,O=e.pointSize,j=O===void 0?sr.pointSize:O,S=e.pointColor,E=S===void 0?sr.pointColor:S,A=e.role,D=A===void 0?sr.role:A,R=e.forwardedRef,M=Ra(n,r,i),I=M.outerWidth,F=M.outerHeight,U=M.margin,P=M.innerWidth,W=M.innerHeight,q=Pme({data:t,width:P,height:W,xDomain:l,yDomain:u}),H=q.points,Y=q.delaunay,G=q.voronoi,J={links:null,cells:null,points:null,bounds:null};f&&a.includes("links")&&(J.links=y.jsx("path",{stroke:v,strokeWidth:p,fill:"none",d:Y.render()},"links")),_&&a.includes("cells")&&(J.cells=y.jsx("path",{d:G.render(),fill:"none",stroke:C,strokeWidth:$},"cells")),k&&a.includes("points")&&(J.points=y.jsx("path",{stroke:"none",fill:E,d:Y.renderPoints(void 0,j/2)},"points")),a.includes("bounds")&&(J.bounds=y.jsx("path",{fill:"none",stroke:C,strokeWidth:$,d:G.renderBounds()},"bounds"));var ee=Lme({points:H,delaunay:Y,voronoi:G});return y.jsx(Dp,{width:I,height:F,margin:U,role:D,ref:R,children:a.map(function(z,L){return J[z]!==void 0?J[z]:typeof z=="function"?y.jsx(m.Fragment,{children:m.createElement(z,ee)},L):null})})},Wme=m.forwardRef(function(e,t){var n=e.theme,r=Ik(e,Bme);return y.jsx(Ma,{isInteractive:!1,animate:!1,theme:n,children:y.jsx(zme,If({},r,{forwardedRef:t}))})}),Ume=["defaultWidth","defaultHeight","onResize","debounceResize"];m.forwardRef(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,o=e.debounceResize,a=Ik(e,Ume);return y.jsx(Aa,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:o,children:function(s){var l=s.width,c=s.height;return y.jsx(Wme,If({},a,{width:l,height:c,ref:t}))}})});var Hme=function(e){var t=e.nodes,n=e.width,r=e.height,i=e.margin,o=i===void 0?Mu:i,a=e.getNodePosition,s=e.setCurrent,l=e.onMouseEnter,c=e.onMouseMove,u=e.onMouseLeave,d=e.onMouseDown,f=e.onMouseUp,h=e.onClick,p=e.onDoubleClick,g=e.onTouchStart,v=e.onTouchMove,x=e.onTouchEnd,_=e.enableTouchCrosshair,w=_!==void 0&&_,$=e.detectionRadius,b=$===void 0?1/0:$,C=e.tooltip,T=e.tooltipPosition,k=T===void 0?Pk:T,O=e.tooltipAnchor,j=O===void 0?Lk:O,S=e.debug,E=m.useRef(null),A=Fk({points:t,getNodePosition:a,width:n,height:r,margin:o,debug:S}),D=A.delaunay,R=A.voronoi,M=Fme({elementRef:E,nodes:t,delaunay:D,margin:o,detectionRadius:b,setCurrent:s,onMouseEnter:l,onMouseMove:c,onMouseLeave:u,onMouseDown:d,onMouseUp:f,onClick:h,onDoubleClick:p,onTouchStart:g,onTouchMove:v,onTouchEnd:x,enableTouchCrosshair:w,tooltip:C,tooltipPosition:k,tooltipAnchor:j}),I=M.current,F=M.handleMouseEnter,U=M.handleMouseMove,P=M.handleMouseLeave,W=M.handleMouseDown,q=M.handleMouseUp,H=M.handleClick,Y=M.handleDoubleClick,G=M.handleTouchStart,J=M.handleTouchMove,ee=M.handleTouchEnd,z=m.useMemo(function(){if(S&&R)return R.render()},[S,R]);return y.jsxs("g",{ref:E,transform:"translate("+-o.left+","+-o.top+")",children:[S&&R&&y.jsxs(y.Fragment,{children:[y.jsx("path",{d:z,stroke:"red",strokeWidth:1,opacity:.75}),b<1/0&&y.jsx("path",{stroke:"red",strokeWidth:.35,fill:"none",d:D.renderPoints(void 0,b)}),I&&y.jsx("path",{fill:"pink",opacity:.35,d:R.renderCell(I[0])})]}),y.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:F,onMouseMove:U,onMouseLeave:P,onMouseDown:W,onMouseUp:q,onTouchStart:G,onTouchMove:J,onTouchEnd:ee,onClick:H,onDoubleClick:Y})]})},Vme=function(e,t){e.save(),e.globalAlpha=.75,e.beginPath(),t.render(e),e.strokeStyle="red",e.lineWidth=1,e.stroke(),e.restore()},qme=function(e,t,n){e.save(),e.globalAlpha=.35,e.beginPath(),t.renderCell(n,e),e.fillStyle="pink",e.fill(),e.restore()};function Dn(){return Dn=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},Dn.apply(null,arguments)}function Pp(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 E4,yi={xScale:{type:"point"},yScale:{type:"linear",min:0,max:"auto"},curve:"linear",colors:{scheme:"nivo"},lineWidth:2,layers:["grid","markers","axes","areas","crosshair","lines","points","slices","mesh","legends"],enablePoints:!0,pointSize:6,pointColor:{from:"series.color"},pointBorderWidth:0,pointBorderColor:{theme:"background"},enableArea:!1,areaBaselineValue:0,areaOpacity:.2,enableGridX:!0,enableGridY:!0,legends:[],isInteractive:!0,tooltip:m.memo(function(e){var t=e.point;return y.jsx(hb,{id:y.jsxs("span",{children:["x: ",y.jsx("strong",{children:t.data.xFormatted}),", y:"," ",y.jsx("strong",{children:t.data.yFormatted})]}),enableChip:!0,color:t.seriesColor})}),sliceTooltip:m.memo(function(e){var t=e.slice,n=e.axis,r=Ft(),i=n==="x"?"y":"x";return y.jsx(RE,{rows:t.points.map(function(o){return[y.jsx(AE,{color:o.seriesColor,style:r.tooltip.chip},"chip"),o.seriesId,y.jsx("span",{style:r.tooltip.tableCellValue,children:o.data[i+"Formatted"]},"value")]})})}),debugMesh:!1,renderWrapper:!0},rt=Dn({},yi,{defs:[],fill:[],enablePointLabel:!1,pointLabel:"data.yFormatted",areaBlendMode:"normal",axisTop:null,axisRight:null,axisBottom:Kn,axisLeft:Kn,useMesh:!1,enableSlices:!1,debugSlices:!1,enableCrosshair:!0,crosshairType:"bottom-left",enableTouchCrosshair:!1,initialHiddenIds:[],animate:!0,motionConfig:"gentle",role:"img",isFocusable:!1}),on=Dn({},yi,{pixelRatio:typeof window<"u"&&(E4=window.devicePixelRatio)!=null?E4:1,axisTop:null,axisRight:null,axisBottom:Kn,axisLeft:Kn});function Yme(e){return m.useMemo(function(){return Cb().defined(function(t){return t.x!==null&&t.y!==null}).x(function(t){return t.x}).y(function(t){return t.y}).curve(ok(e))},[e])}function Gme(e){var t=e.curve,n=e.yScale,r=e.areaBaselineValue;return m.useMemo(function(){return Yie().defined(function(i){return i.x!==null&&i.y!==null}).x(function(i){return i.x}).y1(function(i){return i.y}).curve(ok(t)).y0(n(r))},[t,n,r])}var Kme=function(e){var t=e.componentId,n=e.enableSlices,r=e.points,i=e.width,o=e.height;return m.useMemo(function(){if(n==="x"){var a=new Map;return r.forEach(function(l){l.data.x!==null&&l.data.y!==null&&(a.has(l.x)?a.get(l.x).push(l):a.set(l.x,[l]))}),Array.from(a.entries()).sort(function(l,c){return l[0]-c[0]}).map(function(l,c,u){var d,f,h=l[0],p=l[1],g=u[c-1],v=u[c+1];return d=g?h-(h-g[0])/2:h,f=v?h-d+(v[0]-h)/2:i-d,{id:"slice:"+t+":"+h,x0:d,x:h,y0:0,y:0,width:f,height:o,points:p.reverse()}})}if(n==="y"){var s=new Map;return r.forEach(function(l){l.data.x!==null&&l.data.y!==null&&(s.has(l.y)?s.get(l.y).push(l):s.set(l.y,[l]))}),Array.from(s.entries()).sort(function(l,c){return l[0]-c[0]}).map(function(l,c,u){var d,f,h=l[0],p=l[1],g=u[c-1],v=u[c+1];return d=g?h-(h-g[0])/2:h,f=v?h-d+(v[0]-h)/2:o-d,{id:h,x0:0,x:0,y0:d,y:h,width:i,height:f,points:p.reverse()}})}return[]},[t,n,o,r,i])},Zme="line",Bk=function(e){var t=e.data,n=e.xScale,r=n===void 0?yi.xScale:n,i=e.xFormat,o=e.yScale,a=o===void 0?yi.yScale:o,s=e.yFormat,l=e.width,c=e.height,u=e.colors,d=u===void 0?yi.colors:u,f=e.curve,h=f===void 0?yi.curve:f,p=e.areaBaselineValue,g=p===void 0?yi.areaBaselineValue:p,v=e.pointColor,x=v===void 0?yi.pointColor:v,_=e.pointBorderColor,w=_===void 0?yi.pointBorderColor:_,$=e.enableSlices,b=$===void 0?rt.enableSlices:$,C=e.initialHiddenIds,T=C===void 0?rt.initialHiddenIds:C,k=m.useState(pme(Zme))[0],O=Is(i),j=Is(s),S=Jb(d,"id"),E=Ft(),A=Sr(x,E),D=Sr(w,E),R=m.useState(T??[]),M=R[0],I=R[1],F=m.useMemo(function(){return Jpe(t.filter(function(z){return M.indexOf(z.id)===-1}),r,a,l,c)},[t,M,r,a,l,c]),U=F.xScale,P=F.yScale,W=F.series,q=m.useMemo(function(){var z=t.map(function(B){return{id:B.id,label:""+B.id,color:S(B)}}),L=z.map(function(B){return Dn({},W.find(function(V){return V.id===B.id}),{color:B.color})}).filter(function(B){return!!B.id});return{legendData:z.map(function(B){return Dn({},B,{hidden:!L.find(function(V){return V.id===B.id})})}).reverse(),series:L}},[t,W,S]),H=q.legendData,Y=q.series,G=m.useCallback(function(z){I(function(L){return L.indexOf(z)>-1?L.filter(function(B){return B!==z}):[].concat(L,[z])})},[]),J=function(z){var L=z.series,B=z.getPointColor,V=z.getPointBorderColor,N=z.formatX,X=z.formatY;return m.useMemo(function(){return L.reduce(function(Q,Z,le){return[].concat(Q,Z.data.filter(function(te){return te.position.x!==null&&te.position.y!==null}).map(function(te,re){var se={id:Z.id+"."+re,indexInSeries:re,absIndex:Q.length+re,seriesIndex:le,seriesId:Z.id,seriesColor:Z.color,x:te.position.x,y:te.position.y,data:Dn({},te.data,{xFormatted:N(te.data.x),yFormatted:X(te.data.y)})};return se.color=B({series:Z,point:se}),se.borderColor=V(se),se}))},[])},[L,B,V,N,X])}({series:Y,getPointColor:A,getPointBorderColor:D,formatX:O,formatY:j}),ee=Kme({componentId:k,enableSlices:b,points:J,width:l,height:c});return{legendData:H,toggleSeries:G,lineGenerator:Yme(h),areaGenerator:Gme({curve:h,yScale:P,areaBaselineValue:g}),getColor:S,series:Y,xScale:U,yScale:P,slices:ee,points:J}},Xme=function(e){var t=e.areaBlendMode,n=e.areaOpacity,r=e.color,i=e.fill,o=e.path,a=qn(),s=a.animate,l=a.config,c=Kb(o),u=li({color:r,config:l,immediate:!s});return y.jsx(Yt.path,{d:c,fill:i||u.color,fillOpacity:n,strokeWidth:0,style:{mixBlendMode:t}})},Qme=m.memo(function(e){var t=e.areaGenerator,n=e.areaOpacity,r=e.areaBlendMode,i=e.series.slice(0).reverse();return y.jsx("g",{children:i.map(function(o){return y.jsx(Xme,Dn({path:t(o.data.map(function(a){return a.position}))},Dn({areaOpacity:n,areaBlendMode:r},o)),""+o.id)})})}),Jme=m.memo(function(e){var t=e.lineGenerator,n=e.points,r=e.color,i=e.thickness,o=m.useMemo(function(){return t(n)},[t,n]),a=Kb(o);return y.jsx(Yt.path,{d:a,fill:"none",strokeWidth:i,stroke:r})}),ege=m.memo(function(e){var t=e.series,n=e.lineGenerator,r=e.lineWidth;return y.jsx(y.Fragment,{children:t.slice(0).reverse().map(function(i){var o=i.id,a=i.data,s=i.color;return y.jsx(Jme,{points:a.map(function(l){return l.position}),lineGenerator:n,color:s,thickness:r},o)})})}),tge=m.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,l=e.onMouseEnter,c=e.onMouseMove,u=e.onMouseLeave,d=e.onMouseDown,f=e.onMouseUp,h=e.onClick,p=e.onDoubleClick,g=e.onTouchStart,v=e.onTouchMove,x=e.onTouchEnd,_=Ui(),w=_.showTooltipFromEvent,$=_.hideTooltip,b=m.useCallback(function(R){w(m.createElement(o,{slice:t,axis:r}),R,"right"),s(t),l==null||l(t,R)},[w,o,t,r,s,l]),C=m.useCallback(function(R){w(m.createElement(o,{slice:t,axis:r}),R,"right"),c==null||c(t,R)},[w,o,t,r,c]),T=m.useCallback(function(R){$(),s(null),u==null||u(t,R)},[$,s,u,t]),k=m.useCallback(function(R){d==null||d(t,R)},[t,d]),O=m.useCallback(function(R){f==null||f(t,R)},[t,f]),j=m.useCallback(function(R){h==null||h(t,R)},[t,h]),S=m.useCallback(function(R){p==null||p(t,R)},[t,p]),E=m.useCallback(function(R){w(m.createElement(o,{slice:t,axis:r}),R,"right"),s(t),g==null||g(t,R)},[r,g,s,w,t,o]),A=m.useCallback(function(R){var M=R.touches[0],I=document.elementFromPoint(M.clientX,M.clientY),F=I==null?void 0:I.getAttribute("data-ref");if(F){var U=n.find(function(P){return P.id===F});U&&(w(m.createElement(o,{slice:U,axis:r}),R,"right"),s(U))}v==null||v(t,R)},[r,v,s,w,t,n,o]),D=m.useCallback(function(R){$(),s(null),x==null||x(t,R)},[$,s,x,t]);return y.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:b,onMouseMove:C,onMouseLeave:T,onMouseDown:k,onMouseUp:O,onClick:j,onDoubleClick:S,onTouchStart:E,onTouchMove:A,onTouchEnd:D,"data-ref":t.id})}),nge=m.memo(function(e){var t=e.slices,n=e.axis,r=e.debug,i=e.tooltip,o=e.current,a=e.setCurrent,s=e.onMouseEnter,l=e.onMouseMove,c=e.onMouseLeave,u=e.onMouseDown,d=e.onMouseUp,f=e.onClick,h=e.onDoubleClick,p=e.onTouchStart,g=e.onTouchMove,v=e.onTouchEnd;return y.jsx(y.Fragment,{children:t.map(function(x){return y.jsx(tge,{slice:x,slices:t,axis:n,debug:r,tooltip:i,setCurrent:a,isCurrent:o!==null&&o.id===x.id,onMouseEnter:s,onMouseMove:l,onMouseLeave:c,onMouseDown:u,onMouseUp:d,onClick:f,onDoubleClick:h,onTouchStart:p,onTouchMove:g,onTouchEnd:v},x.id)})})}),rge=m.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,l=e.isFocusable,c=e.setCurrentPoint,u=e.tooltip,d=e.margin,f=e.ariaLabel,h=e.ariaLabelledBy,p=e.ariaDescribedBy,g=e.ariaHidden,v=e.ariaDisabled,x=hde(a),_=Ui(),w=_.showTooltipAt,$=_.hideTooltip,b=t.slice(0).sort(function(C,T){return C.indexInSeries-T.indexInSeries}).sort(function(C,T){return T.seriesIndex-C.seriesIndex}).map(function(C){return{id:C.id,x:C.x,y:C.y,datum:C.data,fill:C.color,stroke:C.borderColor,label:o?x(C):null,ariaLabel:f?f(C):void 0,ariaLabelledBy:h?h(C):void 0,ariaDescribedBy:p?p(C):void 0,ariaHidden:g?g(C):void 0,ariaDisabled:v?v(C):void 0,onFocus:l?function(){c(C),w(m.createElement(u,{point:C}),[d.left+C.x,d.top+C.y],"top")}:void 0,onBlur:l?function(){c(null),$()}:void 0}});return y.jsx("g",{children:b.map(function(C){return y.jsx(cde,{x:C.x,y:C.y,datum:C.datum,symbol:n,size:r,color:C.fill,borderWidth:i,borderColor:C.stroke,label:C.label,labelYOffset:s,ariaLabel:C.ariaLabel,ariaLabelledBy:C.ariaLabelledBy,ariaDescribedBy:C.ariaDescribedBy,ariaHidden:C.ariaHidden,ariaDisabled:C.ariaDisabled,isFocusable:l,onFocus:C.onFocus,onBlur:C.onBlur,testId:"line.point."+C.id},C.id)})})}),ige=m.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,l=e.onMouseLeave,c=e.onMouseDown,u=e.onMouseUp,d=e.onClick,f=e.onDoubleClick,h=e.onTouchStart,p=e.onTouchMove,g=e.onTouchEnd,v=e.tooltip,x=e.debug,_=e.enableTouchCrosshair,w=Ui(),$=w.showTooltipAt,b=w.hideTooltip,C=m.useCallback(function(M,I){$(m.createElement(v,{point:M}),[M.x+i.left,M.y+i.top],"top"),a==null||a(M,I)},[$,v,a,i]),T=m.useCallback(function(M,I){$(m.createElement(v,{point:M}),[M.x+i.left,M.y+i.top],"top"),s==null||s(M,I)},[$,v,i.left,i.top,s]),k=m.useCallback(function(M,I){b(),l==null||l(M,I)},[b,l]),O=m.useCallback(function(M,I){c==null||c(M,I)},[c]),j=m.useCallback(function(M,I){u==null||u(M,I)},[u]),S=m.useCallback(function(M,I){d==null||d(M,I)},[d]),E=m.useCallback(function(M,I){f==null||f(M,I)},[f]),A=m.useCallback(function(M,I){$(m.createElement(v,{point:M}),[M.x+i.left,M.y+i.top],"top"),h==null||h(M,I)},[i.left,i.top,h,$,v]),D=m.useCallback(function(M,I){$(m.createElement(v,{point:M}),[M.x+i.left,M.y+i.top],"top"),p==null||p(M,I)},[i.left,i.top,p,$,v]),R=m.useCallback(function(M,I){b(),g==null||g(M,I)},[g,b]);return y.jsx(Hme,{nodes:t,width:n,height:r,setCurrent:o,onMouseEnter:C,onMouseMove:T,onMouseLeave:k,onMouseDown:O,onMouseUp:j,onClick:S,onDoubleClick:E,onTouchStart:A,onTouchMove:D,onTouchEnd:R,enableTouchCrosshair:_,debug:x})}),oge=["isInteractive","animate","motionConfig","theme","renderWrapper"];function age(e){var t=e.data,n=e.xScale,r=n===void 0?rt.xScale:n,i=e.xFormat,o=e.yScale,a=o===void 0?rt.yScale:o,s=e.yFormat,l=e.curve,c=l===void 0?rt.curve:l,u=e.margin,d=e.width,f=e.height,h=e.colors,p=h===void 0?rt.colors:h,g=e.lineWidth,v=g===void 0?rt.lineWidth:g,x=e.layers,_=x===void 0?rt.layers:x,w=e.enableArea,$=w===void 0?rt.enableArea:w,b=e.areaBaselineValue,C=b===void 0?rt.areaBaselineValue:b,T=e.areaOpacity,k=T===void 0?rt.areaOpacity:T,O=e.areaBlendMode,j=O===void 0?rt.areaBlendMode:O,S=e.enablePoints,E=S===void 0?rt.enablePoints:S,A=e.pointSymbol,D=e.pointSize,R=D===void 0?rt.pointSize:D,M=e.pointColor,I=M===void 0?rt.pointColor:M,F=e.pointBorderWidth,U=F===void 0?rt.pointBorderWidth:F,P=e.pointBorderColor,W=P===void 0?rt.pointBorderColor:P,q=e.enablePointLabel,H=q===void 0?rt.enablePointLabel:q,Y=e.pointLabel,G=Y===void 0?rt.pointLabel:Y,J=e.pointLabelYOffset,ee=e.enableGridX,z=ee===void 0?rt.enableGridX:ee,L=e.gridXValues,B=e.enableGridY,V=B===void 0?rt.enableGridY:B,N=e.gridYValues,X=e.axisTop,Q=e.axisRight,Z=e.axisBottom,le=Z===void 0?rt.axisBottom:Z,te=e.axisLeft,re=te===void 0?rt.axisLeft:te,se=e.defs,fe=se===void 0?rt.defs:se,xe=e.fill,ve=xe===void 0?rt.fill:xe,be=e.markers,Te=e.legends,ce=Te===void 0?rt.legends:Te,ae=e.isInteractive,ye=ae===void 0?rt.isInteractive:ae,De=e.useMesh,Bt=De===void 0?rt.useMesh:De,Fe=e.debugMesh,gt=Fe===void 0?rt.debugMesh:Fe,_t=e.onMouseEnter,nn=e.onMouseMove,Ee=e.onMouseLeave,je=e.onMouseDown,vt=e.onMouseUp,qe=e.onClick,bt=e.onDoubleClick,at=e.onTouchStart,At=e.onTouchMove,Ke=e.onTouchEnd,Ie=e.tooltip,We=Ie===void 0?rt.tooltip:Ie,Qe=e.enableSlices,Pe=Qe===void 0?rt.enableSlices:Qe,Je=e.debugSlices,ht=Je===void 0?rt.debugSlices:Je,nt=e.sliceTooltip,Ne=nt===void 0?rt.sliceTooltip:nt,ke=e.enableCrosshair,He=ke===void 0?rt.enableCrosshair:ke,yt=e.crosshairType,et=yt===void 0?rt.crosshairType:yt,pt=e.enableTouchCrosshair,tn=pt===void 0?rt.enableTouchCrosshair:pt,zt=e.role,Ht=zt===void 0?rt.role:zt,vn=e.ariaLabel,Kt=e.ariaLabelledBy,$e=e.ariaDescribedBy,Ze=e.isFocusable,Ct=Ze===void 0?rt.isFocusable:Ze,cn=e.pointAriaLabel,Zt=e.pointAriaLabelledBy,Le=e.pointAriaDescribedBy,Be=e.pointAriaHidden,ct=e.pointAriaDisabled,Rt=e.initialHiddenIds,$t=Rt===void 0?rt.initialHiddenIds:Rt,Xe=e.forwardedRef,St=Ra(d,f,u),kr=St.margin,fn=St.innerWidth,hn=St.innerHeight,Pn=St.outerWidth,ko=St.outerHeight,wt=Bk({data:t,xScale:r,xFormat:i,yScale:a,yFormat:s,width:fn,height:hn,colors:p,curve:c,areaBaselineValue:C,pointColor:I,pointBorderColor:W,enableSlices:Pe,initialHiddenIds:$t}),Oo=wt.legendData,Me=wt.toggleSeries,Br=wt.lineGenerator,Mo=wt.areaGenerator,ja=wt.series,Na=wt.xScale,di=wt.yScale,Au=wt.slices,fi=wt.points,ll=m.useState(null),Ao=ll[0],cl=ll[1],Ru=m.useState(null),Ro=Ru[0],ju=Ru[1],Ln={grid:null,markers:null,axes:null,areas:null,crosshair:null,lines:null,points:null,slices:null,mesh:null,legends:null};_.includes("grid")&&(z||V)&&(Ln.grid=y.jsx(Nk,{width:fn,height:hn,xScale:z?Na:null,yScale:V?di:null,xValues:L,yValues:N},"grid")),_.includes("markers")&&Array.isArray(be)&&be.length>0&&(Ln.markers=y.jsx(ik,{markers:be,width:fn,height:hn,xScale:Na,yScale:di},"markers")),_.includes("axes")&&(Ln.axes=y.jsx(jk,{xScale:Na,yScale:di,width:fn,height:hn,top:X,right:Q,bottom:le,left:re},"axes")),_.includes("lines")&&(Ln.lines=y.jsx(ege,{series:ja,lineGenerator:Br,lineWidth:v},"lines")),_.includes("legends")&&ce.length>0&&(Ln.legends=y.jsx(m.Fragment,{children:ce.map(function(zr,Hi){return y.jsx(ny,Dn({},zr,{containerWidth:fn,containerHeight:hn,data:zr.data||Oo,toggleSerie:zr.toggleSerie?Me:void 0}),Hi)})},"legends"));var Bp=Xb(fe,ja,ve);$&&(Ln.areas=y.jsx(Qme,{areaGenerator:Mo,areaOpacity:k,areaBlendMode:j,series:ja},"areas")),ye&&Pe!==!1&&(Ln.slices=y.jsx(nge,{slices:Au,axis:Pe,debug:ht,tooltip:Ne,current:Ro,setCurrent:ju,onMouseEnter:_t,onMouseMove:nn,onMouseLeave:Ee,onMouseDown:je,onMouseUp:vt,onClick:qe,onDoubleClick:bt,onTouchStart:at,onTouchMove:At,onTouchEnd:Ke},"slices")),E&&(Ln.points=y.jsx(rge,{points:fi,symbol:A,size:R,borderWidth:U,enableLabel:H,label:G,labelYOffset:J,isFocusable:Ct,setCurrentPoint:cl,tooltip:We,margin:kr,ariaLabel:cn,ariaLabelledBy:Zt,ariaDescribedBy:Le,ariaHidden:Be,ariaDisabled:ct},"points")),ye&&He&&(Ao!==null&&(Ln.crosshair=y.jsx(Sv,{width:fn,height:hn,x:Ao.x,y:Ao.y,type:et},"crosshair")),Ro!==null&&Pe&&(Ln.crosshair=y.jsx(Sv,{width:fn,height:hn,x:Ro.x,y:Ro.y,type:Pe},"crosshair"))),ye&&Bt&&Pe===!1&&(Ln.mesh=y.jsx(ige,{points:fi,width:fn,height:hn,margin:kr,setCurrent:cl,onMouseEnter:_t,onMouseMove:nn,onMouseLeave:Ee,onMouseDown:je,onMouseUp:vt,onClick:qe,onDoubleClick:bt,onTouchStart:at,onTouchMove:At,onTouchEnd:Ke,tooltip:We,enableTouchCrosshair:tn,debug:gt},"mesh"));var zp=Dn({},e,{innerWidth:fn,innerHeight:hn,series:ja,slices:Au,points:fi,xScale:Na,yScale:di,lineGenerator:Br,areaGenerator:Mo,currentPoint:Ao,setCurrentPoint:cl,currentSlice:Ro,setCurrentSlice:ju});return y.jsx(Dp,{defs:Bp,width:Pn,height:ko,margin:kr,role:Ht,ariaLabel:vn,ariaLabelledBy:Kt,ariaDescribedBy:$e,isFocusable:Ct,ref:Xe,children:_.map(function(zr,Hi){return typeof zr=="function"?y.jsx(m.Fragment,{children:zr(zp)},Hi):Ln[zr]})})}var sge=m.forwardRef(function(e,t){var n=e.isInteractive,r=n===void 0?rt.isInteractive:n,i=e.animate,o=i===void 0?rt.animate:i,a=e.motionConfig,s=a===void 0?rt.motionConfig:a,l=e.theme,c=e.renderWrapper,u=Pp(e,oge);return y.jsx(Ma,{animate:o,isInteractive:r,motionConfig:s,renderWrapper:c,theme:l,children:y.jsx(age,Dn({isInteractive:r},u,{forwardedRef:t}))})}),lge=["defaultWidth","defaultHeight","onResize","debounceResize"],cge=m.forwardRef(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,o=e.debounceResize,a=Pp(e,lge);return y.jsx(Aa,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:o,children:function(s){var l=s.width,c=s.height;return y.jsx(sge,Dn({width:l,height:c},a,{ref:t}))}})}),uge=["isInteractive","renderWrapper","theme"],dge=function(e){var t=e.width,n=e.height,r=e.margin,i=e.pixelRatio,o=i===void 0?on.pixelRatio:i,a=e.data,s=e.xScale,l=s===void 0?on.xScale:s,c=e.xFormat,u=e.yScale,d=u===void 0?on.yScale:u,f=e.yFormat,h=e.curve,p=h===void 0?on.curve:h,g=e.layers,v=g===void 0?on.layers:g,x=e.colors,_=x===void 0?on.colors:x,w=e.lineWidth,$=w===void 0?on.lineWidth:w,b=e.enableArea,C=b===void 0?on.enableArea:b,T=e.areaBaselineValue,k=T===void 0?on.areaBaselineValue:T,O=e.areaOpacity,j=O===void 0?on.areaOpacity:O,S=e.enablePoints,E=S===void 0?on.enablePoints:S,A=e.pointSize,D=A===void 0?on.pointSize:A,R=e.pointColor,M=R===void 0?on.pointColor:R,I=e.pointBorderWidth,F=I===void 0?on.pointBorderWidth:I,U=e.pointBorderColor,P=U===void 0?on.pointBorderColor:U,W=e.enableGridX,q=W===void 0?on.enableGridX:W,H=e.gridXValues,Y=e.enableGridY,G=Y===void 0?on.enableGridY:Y,J=e.gridYValues,ee=e.axisTop,z=e.axisRight,L=e.axisBottom,B=L===void 0?on.axisBottom:L,V=e.axisLeft,N=V===void 0?on.axisLeft:V,X=e.legends,Q=X===void 0?on.legends:X,Z=e.isInteractive,le=Z===void 0?on.isInteractive:Z,te=e.debugMesh,re=te===void 0?on.debugMesh:te,se=e.onMouseLeave,fe=e.onMouseDown,xe=e.onMouseUp,ve=e.onClick,be=e.onDoubleClick,Te=e.tooltip,ce=Te===void 0?on.tooltip:Te,ae=e.role,ye=e.forwardedRef,De=m.useRef(null),Bt=Ra(t,n,r),Fe=Bt.margin,gt=Bt.innerWidth,_t=Bt.innerHeight,nn=Bt.outerWidth,Ee=Bt.outerHeight,je=Ft(),vt=m.useState(null),qe=vt[0],bt=vt[1],at=Bk({data:a,xScale:l,xFormat:c,yScale:d,yFormat:f,width:gt,height:_t,colors:_,curve:p,areaBaselineValue:k,pointColor:M,pointBorderColor:P}),At=at.lineGenerator,Ke=at.areaGenerator,Ie=at.series,We=at.xScale,Qe=at.yScale,Pe=at.points,Je=m.useMemo(function(){return{innerWidth:gt,innerHeight:_t,series:Ie,points:Pe,xScale:We,yScale:Qe,lineWidth:$,lineGenerator:At,areaGenerator:Ke,currentPoint:qe,setCurrentPoint:bt}},[gt,_t,Ie,Pe,We,Qe,$,At,Ke,qe,bt]),ht=Fk({points:Pe,width:gt,height:_t,debug:re}),nt=ht.delaunay,Ne=ht.voronoi;m.useEffect(function(){if(De.current!==null){De.current.width=nn*o,De.current.height=Ee*o;var $e=De.current.getContext("2d");$e.scale(o,o),$e.fillStyle=je.background,$e.fillRect(0,0,nn,Ee),$e.translate(Fe.left,Fe.top),v.forEach(function(Ze){var Ct;typeof Ze=="function"&&Ze($e,Je);var cn=(Ct=je.grid.line.strokeWidth)!=null?Ct:0;if(Ze==="grid"&&typeof cn!="string"&&cn>0&&($e.lineWidth=cn,$e.strokeStyle=je.grid.line.stroke,q&&Nf($e,{width:gt,height:_t,scale:We,axis:"x",values:H}),G&&Nf($e,{width:gt,height:_t,scale:Qe,axis:"y",values:J})),Ze==="axes"&&Dk($e,{xScale:We,yScale:Qe,width:gt,height:_t,top:ee,right:z,bottom:B,left:N,theme:je}),Ze==="areas"&&C===!0){$e.save(),$e.globalAlpha=j,Ke.context($e);for(var Zt=Ie.length-1;Zt>=0;Zt--)$e.fillStyle=Ie[Zt].color,$e.beginPath(),Ke(Ie[Zt].data.map(function(Be){return Be.position})),$e.fill();$e.restore()}if(Ze==="lines"&&(At.context($e),Ie.forEach(function(Be){$e.strokeStyle=Be.color,$e.lineWidth=$,$e.beginPath(),At(Be.data.map(function(ct){return ct.position})),$e.stroke()})),Ze==="points"&&E===!0&&D>0&&Pe.forEach(function(Be){$e.fillStyle=Be.color,$e.beginPath(),$e.arc(Be.x,Be.y,D/2,0,2*Math.PI),$e.fill(),F>0&&($e.strokeStyle=Be.borderColor,$e.lineWidth=F,$e.stroke())}),Ze==="mesh"&&re===!0&&Ne!==void 0&&(Vme($e,Ne),qe&&qme($e,Ne,qe.absIndex)),Ze==="legends"){var Le=Ie.map(function(Be){return{id:Be.id,label:Be.id,color:Be.color}}).reverse();Q.forEach(function(Be){ry($e,Dn({},Be,{data:Be.data||Le,containerWidth:gt,containerHeight:_t,theme:je}))})}})}},[De,gt,nn,_t,Ee,Fe.left,Fe.top,o,v,je,At,Ie,We,Qe,q,H,G,J,ee,z,B,N,Q,Pe,E,D,F,qe,Je,re,C,Ke,j,$,Ne]);var ke=m.useCallback(function($e){if(!De.current)return null;var Ze=hs(De.current,$e),Ct=Ze[0],cn=Ze[1];if(!ck(Fe.left,Fe.top,gt,_t,Ct,cn))return null;var Zt=nt.find(Ct-Fe.left,cn-Fe.top);return Pe[Zt]},[De,Fe,gt,_t,nt,Pe]),He=Ui(),yt=He.showTooltipFromEvent,et=He.hideTooltip,pt=m.useCallback(function($e){var Ze=ke($e);bt(Ze),Ze?yt(m.createElement(ce,{point:Ze}),$e):et()},[ke,bt,yt,et,ce]),tn=m.useCallback(function($e){et(),bt(null),qe&&(se==null||se(qe,$e))},[et,bt,se,qe]),zt=m.useCallback(function($e){if(fe){var Ze=ke($e);Ze&&fe(Ze,$e)}},[ke,fe]),Ht=m.useCallback(function($e){if(xe){var Ze=ke($e);Ze&&xe(Ze,$e)}},[ke,xe]),vn=m.useCallback(function($e){if(ve){var Ze=ke($e);Ze&&ve(Ze,$e)}},[ke,ve]),Kt=m.useCallback(function($e){if(be){var Ze=ke($e);Ze&&be(Ze,$e)}},[ke,be]);return y.jsx("canvas",{ref:Qb(De,ye),width:nn*o,height:Ee*o,style:{width:nn,height:Ee,cursor:le?"auto":"normal"},onMouseEnter:le?pt:void 0,onMouseMove:le?pt:void 0,onMouseLeave:le?tn:void 0,onMouseDown:le?zt:void 0,onMouseUp:le?Ht:void 0,onClick:le?vn:void 0,onDoubleClick:le?Kt:void 0,role:ae})},fge=m.forwardRef(function(e,t){var n=e.isInteractive,r=e.renderWrapper,i=e.theme,o=Pp(e,uge);return y.jsx(Ma,{isInteractive:n,renderWrapper:r,theme:i,animate:!1,children:y.jsx(dge,Dn({},o,{forwardedRef:t}))})}),hge=["defaultWidth","defaultHeight","onResize","debounceResize"];m.forwardRef(function(e,t){var n=e.defaultWidth;e.defaultHeight;var r=e.onResize,i=e.debounceResize,o=Pp(e,hge);return y.jsx(Aa,{defaultWidth:n,defaultHeight:n,onResize:r,debounceResize:i,children:function(a){var s=a.width,l=a.height;return y.jsx(fge,Dn({width:s,height:l},o,{ref:t}))}})});var pge=$k;function mge(e,t){var n=[];return pge(e,function(r,i,o){t(r,i,o)&&n.push(r)}),n}var gge=mge,vge=Y5,bge=gge,yge=iy,xge=or;function wge(e,t){var n=xge(e)?vge:bge;return n(e,yge(t))}var _ge=wge;const Cge=sn(_ge);var $ge=Wi,Sge=Er,Tge="[object Number]";function Ege(e){return typeof e=="number"||Sge(e)&&$ge(e)==Tge}var kge=Ege;const k4=sn(kge);function Oge(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var Mge=Oge,Age=nl,Rge=Tu;function jge(e,t){return e&&Age(t,Rge(t),e)}var Nge=jge,Dge=nl,Ige=Cu;function Pge(e,t){return e&&Dge(t,Ige(t),e)}var Lge=Pge,Fge=nl,Bge=Yb;function zge(e,t){return Fge(e,Bge(e),t)}var Wge=zge,Uge=Vb,Hge=rb,Vge=Yb,qge=G5,Yge=Object.getOwnPropertySymbols,Gge=Yge?function(e){for(var t=[];e;)Uge(t,Vge(e)),e=Hge(e);return t}:qge,zk=Gge,Kge=nl,Zge=zk;function Xge(e,t){return Kge(e,Zge(e),t)}var Qge=Xge,Jge=q5,eve=zk,tve=Cu;function nve(e){return Jge(e,tve,eve)}var Wk=nve,rve=Object.prototype,ive=rve.hasOwnProperty;function ove(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&ive.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var ave=ove,sve=nb;function lve(e,t){var n=t?sve(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var cve=lve,uve=/\w*$/;function dve(e){var t=new e.constructor(e.source,uve.exec(e));return t.lastIndex=e.lastIndex,t}var fve=dve,O4=Zs,M4=O4?O4.prototype:void 0,A4=M4?M4.valueOf:void 0;function hve(e){return A4?Object(A4.call(e)):{}}var pve=hve,mve=nb,gve=cve,vve=fve,bve=pve,yve=cE,xve="[object Boolean]",wve="[object Date]",_ve="[object Map]",Cve="[object Number]",$ve="[object RegExp]",Sve="[object Set]",Tve="[object String]",Eve="[object Symbol]",kve="[object ArrayBuffer]",Ove="[object DataView]",Mve="[object Float32Array]",Ave="[object Float64Array]",Rve="[object Int8Array]",jve="[object Int16Array]",Nve="[object Int32Array]",Dve="[object Uint8Array]",Ive="[object Uint8ClampedArray]",Pve="[object Uint16Array]",Lve="[object Uint32Array]";function Fve(e,t,n){var r=e.constructor;switch(t){case kve:return mve(e);case xve:case wve:return new r(+e);case Ove:return gve(e,n);case Mve:case Ave:case Rve:case jve:case Nve:case Dve:case Ive:case Pve:case Lve:return yve(e,n);case _ve:return new r;case Cve:case Tve:return new r(e);case $ve:return vve(e);case Sve:return new r;case Eve:return bve(e)}}var Bve=Fve,zve=Np,Wve=Er,Uve="[object Map]";function Hve(e){return Wve(e)&&zve(e)==Uve}var Vve=Hve,qve=Vve,Yve=tl,R4=Vh,j4=R4&&R4.isMap,Gve=j4?Yve(j4):qve,Kve=Gve,Zve=Np,Xve=Er,Qve="[object Set]";function Jve(e){return Xve(e)&&Zve(e)==Qve}var e0e=Jve,t0e=e0e,n0e=tl,N4=Vh,D4=N4&&N4.isSet,r0e=D4?n0e(D4):t0e,i0e=r0e,o0e=Wh,a0e=Mge,s0e=cb,l0e=Nge,c0e=Lge,u0e=sE,d0e=uE,f0e=Wge,h0e=Qge,p0e=K5,m0e=Wk,g0e=Np,v0e=ave,b0e=Bve,y0e=fE,x0e=or,w0e=Hh,_0e=Kve,C0e=ui,$0e=i0e,S0e=Tu,T0e=Cu,E0e=1,k0e=2,O0e=4,Uk="[object Arguments]",M0e="[object Array]",A0e="[object Boolean]",R0e="[object Date]",j0e="[object Error]",Hk="[object Function]",N0e="[object GeneratorFunction]",D0e="[object Map]",I0e="[object Number]",Vk="[object Object]",P0e="[object RegExp]",L0e="[object Set]",F0e="[object String]",B0e="[object Symbol]",z0e="[object WeakMap]",W0e="[object ArrayBuffer]",U0e="[object DataView]",H0e="[object Float32Array]",V0e="[object Float64Array]",q0e="[object Int8Array]",Y0e="[object Int16Array]",G0e="[object Int32Array]",K0e="[object Uint8Array]",Z0e="[object Uint8ClampedArray]",X0e="[object Uint16Array]",Q0e="[object Uint32Array]",Xt={};Xt[Uk]=Xt[M0e]=Xt[W0e]=Xt[U0e]=Xt[A0e]=Xt[R0e]=Xt[H0e]=Xt[V0e]=Xt[q0e]=Xt[Y0e]=Xt[G0e]=Xt[D0e]=Xt[I0e]=Xt[Vk]=Xt[P0e]=Xt[L0e]=Xt[F0e]=Xt[B0e]=Xt[K0e]=Xt[Z0e]=Xt[X0e]=Xt[Q0e]=!0;Xt[j0e]=Xt[Hk]=Xt[z0e]=!1;function Od(e,t,n,r,i,o){var a,s=t&E0e,l=t&k0e,c=t&O0e;if(n&&(a=i?n(e,r,i,o):n(e)),a!==void 0)return a;if(!C0e(e))return e;var u=x0e(e);if(u){if(a=v0e(e),!s)return d0e(e,a)}else{var d=g0e(e),f=d==Hk||d==N0e;if(w0e(e))return u0e(e,s);if(d==Vk||d==Uk||f&&!i){if(a=l||f?{}:y0e(e),!s)return l?h0e(e,c0e(a,e)):f0e(e,l0e(a,e))}else{if(!Xt[d])return i?e:{};a=b0e(e,d,s)}}o||(o=new o0e);var h=o.get(e);if(h)return h;o.set(e,a),$0e(e)?e.forEach(function(v){a.add(Od(v,t,n,v,e,o))}):_0e(e)&&e.forEach(function(v,x){a.set(x,Od(v,t,n,x,e,o))});var p=c?l?m0e:p0e:l?T0e:S0e,g=u?void 0:p(e);return a0e(g||e,function(v,x){g&&(x=v,v=e[x]),s0e(a,x,Od(v,t,n,x,e,o))}),a}var J0e=Od;function e1e(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 t1e=e1e,n1e=$u,r1e=t1e;function i1e(e,t){return t.length<2?e:n1e(e,r1e(t,0,-1))}var o1e=i1e,a1e=rl,s1e=B5,l1e=o1e,c1e=il;function u1e(e,t){return t=a1e(t,e),e=l1e(e,t),e==null||delete e[c1e(s1e(t))]}var d1e=u1e,f1e=ab;function h1e(e){return f1e(e)?void 0:e}var p1e=h1e,m1e=Kh,g1e=J0e,v1e=d1e,b1e=rl,y1e=nl,x1e=p1e,w1e=H5,_1e=Wk,C1e=1,$1e=2,S1e=4,T1e=w1e(function(e,t){var n={};if(e==null)return n;var r=!1;t=m1e(t,function(o){return o=b1e(o,e),r||(r=o.length>1),o}),y1e(e,_1e(e),n),r&&(n=g1e(n,C1e|$1e|S1e,x1e));for(var i=t.length;i--;)v1e(n,t[i]);return n}),E1e=T1e;const qk=sn(E1e);function ai(){return ai=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},ai.apply(null,arguments)}var qv={dotSize:4,noteWidth:120,noteTextOffset:8},k1e=function(e){var t=typeof e;return m.isValidElement(e)||t==="string"||t==="function"||t==="object"},O1e=function(e){var t=typeof e;return t==="string"||t==="function"},Vc=function(e){return e.type==="circle"},Yv=function(e){return e.type==="dot"},qc=function(e){return e.type==="rect"},M1e=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,Cge(t,a.match).map(function(l){var c=r(l),u=i(l);return(Vc(a)||qc(a))&&(u.size=u.size+2*s,u.width=u.width+2*s,u.height=u.height+2*s),ai({},qk(a,["match","offset"]),c,u,{size:a.size||u.size,datum:l})}))},[])},A1e=function(e,t,n,r){var i=Math.atan2(r-t,n-e);return rde(Eu(i))},Yk=function(e){var t,n,r=e.x,i=e.y,o=e.noteX,a=e.noteY,s=e.noteWidth,l=s===void 0?qv.noteWidth:s,c=e.noteTextOffset,u=c===void 0?qv.noteTextOffset:c;if(k4(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(k4(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,h=A1e(r,i,t,n);if(Vc(e)){var p=oa(xr(h),e.size/2);d+=p.x,f+=p.y}if(qc(e)){var g=Math.round((h+90)/45)%8;g===0&&(f-=e.height/2),g===1&&(d+=e.width/2,f-=e.height/2),g===2&&(d+=e.width/2),g===3&&(d+=e.width/2,f+=e.height/2),g===4&&(f+=e.height/2),g===5&&(d-=e.width/2,f+=e.height/2),g===6&&(d-=e.width/2),g===7&&(d-=e.width/2,f-=e.height/2)}var v=t,x=t;return(h+90)%360>180?(v-=l,x-=l):x+=l,{points:[[d,f],[t,n],[x,n]],text:[v,n-u],angle:h+90}},Gk=function(e){var t=e.data,n=e.annotations,r=e.getPosition,i=e.getDimensions;return m.useMemo(function(){return M1e({data:t,annotations:n,getPosition:r,getDimensions:i})},[t,n,r,i])},R1e=function(e){var t=e.annotations;return m.useMemo(function(){return t.map(function(n){return ai({},n,{computed:Yk(ai({},n))})})},[t])},j1e=function(e){return m.useMemo(function(){return Yk(e)},[e])},N1e=function(e){var t=e.datum,n=e.x,r=e.y,i=e.note,o=Ft(),a=qn(),s=a.animate,l=a.config,c=li({x:n,y:r,config:l,immediate:!s});return typeof i=="function"?m.createElement(i,{x:n,y:r,datum:t}):y.jsxs(y.Fragment,{children:[o.annotations.text.outlineWidth>0&&y.jsx(Yt.text,{x:c.x,y:c.y,style:ai({},o.annotations.text,{strokeLinejoin:"round",strokeWidth:2*o.annotations.text.outlineWidth,stroke:o.annotations.text.outlineColor}),children:i}),y.jsx(Yt.text,{x:c.x,y:c.y,style:qk(o.annotations.text,["outlineWidth","outlineColor"]),children:i})]})},I4=function(e){var t=e.points,n=e.isOutline,r=n!==void 0&&n,i=Ft(),o=m.useMemo(function(){var l=t[0];return t.slice(1).reduce(function(c,u){return c+" L"+u[0]+","+u[1]},"M"+l[0]+","+l[1])},[t]),a=Kb(o);if(r&&i.annotations.link.outlineWidth<=0)return null;var s=ai({},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),y.jsx(Yt.path,{fill:"none",d:a,style:s})},D1e=function(e){var t=e.x,n=e.y,r=e.size,i=Ft(),o=qn(),a=o.animate,s=o.config,l=li({x:t,y:n,radius:r/2,config:s,immediate:!a});return y.jsxs(y.Fragment,{children:[i.annotations.outline.outlineWidth>0&&y.jsx(Yt.circle,{cx:l.x,cy:l.y,r:l.radius,style:ai({},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})}),y.jsx(Yt.circle,{cx:l.x,cy:l.y,r:l.radius,style:i.annotations.outline})]})},I1e=function(e){var t=e.x,n=e.y,r=e.size,i=r===void 0?qv.dotSize:r,o=Ft(),a=qn(),s=a.animate,l=a.config,c=li({x:t,y:n,radius:i/2,config:l,immediate:!s});return y.jsxs(y.Fragment,{children:[o.annotations.outline.outlineWidth>0&&y.jsx(Yt.circle,{cx:c.x,cy:c.y,r:c.radius,style:ai({},o.annotations.outline,{fill:"none",strokeWidth:2*o.annotations.outline.outlineWidth,stroke:o.annotations.outline.outlineColor,opacity:o.annotations.outline.outlineOpacity})}),y.jsx(Yt.circle,{cx:c.x,cy:c.y,r:c.radius,style:o.annotations.symbol})]})},P1e=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(),l=qn(),c=l.animate,u=l.config,d=li({x:t-r/2,y:n-i/2,width:r,height:i,config:u,immediate:!c});return y.jsxs(y.Fragment,{children:[s.annotations.outline.outlineWidth>0&&y.jsx(Yt.rect,{x:d.x,y:d.y,rx:a,ry:a,width:d.width,height:d.height,style:ai({},s.annotations.outline,{fill:"none",strokeWidth:s.annotations.outline.strokeWidth+2*s.annotations.outline.outlineWidth,stroke:s.annotations.outline.outlineColor,opacity:s.annotations.outline.outlineOpacity})}),y.jsx(Yt.rect,{x:d.x,y:d.y,rx:a,ry:a,width:d.width,height:d.height,style:s.annotations.outline})]})},L1e=function(e){var t=e.datum,n=e.x,r=e.y,i=e.note,o=j1e(e);if(!k1e(i))throw new Error("note should be a valid react element");return y.jsxs(y.Fragment,{children:[y.jsx(I4,{points:o.points,isOutline:!0}),Vc(e)&&y.jsx(D1e,{x:n,y:r,size:e.size}),Yv(e)&&y.jsx(I1e,{x:n,y:r,size:e.size}),qc(e)&&y.jsx(P1e,{x:n,y:r,width:e.width,height:e.height,borderRadius:e.borderRadius}),y.jsx(I4,{points:o.points}),y.jsx(N1e,{datum:t,x:o.text[0],y:o.text[1],note:i})]})},P4=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)})},F1e=function(e,t){var n=t.annotations,r=t.theme;n.length!==0&&(e.save(),n.forEach(function(i){if(!O1e(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(),P4(e,i.computed.points),e.stroke(),e.lineCap="butt"),Vc(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()),Yv(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()),qc(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(),P4(e,i.computed.points),e.stroke(),Vc(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()),Yv(i)&&(e.fillStyle=r.annotations.symbol.fill,e.beginPath(),e.arc(i.x,i.y,i.size/2,0,2*Math.PI),e.fill()),qc(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())},B1e=function(e,t,n,r,i,o){o>0?(e.moveTo(t+o,n),e.lineTo(t+r-o,n),e.quadraticCurveTo(t+r,n,t+r,n+o),e.lineTo(t+r,n+i-o),e.quadraticCurveTo(t+r,n+i,t+r-o,n+i),e.lineTo(t+o,n+i),e.quadraticCurveTo(t,n+i,t,n+i-o),e.lineTo(t,n+o),e.quadraticCurveTo(t,n,t+o,n),e.closePath()):e.rect(t,n,r,i)};function Tt(){return Tt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tt.apply(null,arguments)}function Eo(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 L4,z1e=function(e){var t=e.bars,n=e.annotations,r=Gk({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 y.jsx(y.Fragment,{children:r.map(function(i,o){return y.jsx(L1e,Tt({},i),o)})})},W1e=function(e){var t=e.width,n=e.height,r=e.legends,i=e.toggleSerie;return y.jsx(y.Fragment,{children:r.map(function(o,a){var s,l=o[0],c=o[1];return y.jsx(ny,Tt({},l,{containerWidth:t,containerHeight:n,data:(s=l.data)!=null?s:c,toggleSerie:l.toggleSerie&&l.dataFrom==="keys"?i:void 0}),a)})})},U1e=["data"],H1e=function(e){var t,n=e.bar,r=n.data,i=Eo(n,U1e),o=e.style,a=o.borderColor,s=o.color,l=o.height,c=o.labelColor,u=o.labelOpacity,d=o.labelX,f=o.labelY,h=o.transform,p=o.width,g=o.textAnchor,v=e.borderRadius,x=e.borderWidth,_=e.label,w=e.shouldRenderLabel,$=e.isInteractive,b=e.onClick,C=e.onMouseEnter,T=e.onMouseLeave,k=e.tooltip,O=e.isFocusable,j=e.ariaLabel,S=e.ariaLabelledBy,E=e.ariaDescribedBy,A=e.ariaDisabled,D=e.ariaHidden,R=Ft(),M=Ui(),I=M.showTooltipFromEvent,F=M.showTooltipAt,U=M.hideTooltip,P=m.useMemo(function(){return function(){return m.createElement(k,Tt({},i,r))}},[k,i,r]),W=m.useCallback(function(ee){b==null||b(Tt({color:i.color},r),ee)},[i,r,b]),q=m.useCallback(function(ee){return I(P(),ee)},[I,P]),H=m.useCallback(function(ee){C==null||C(r,ee),I(P(),ee)},[r,C,I,P]),Y=m.useCallback(function(ee){T==null||T(r,ee),U()},[r,U,T]),G=m.useCallback(function(){F(P(),[i.absX+i.width/2,i.absY])},[F,P,i]),J=m.useCallback(function(){U()},[U]);return y.jsxs(Yt.g,{transform:h,children:[y.jsx(Yt.rect,{width:xo(p,function(ee){return Math.max(ee,0)}),height:xo(l,function(ee){return Math.max(ee,0)}),rx:v,ry:v,fill:(t=r.fill)!=null?t:s,strokeWidth:x,stroke:a,focusable:O,tabIndex:O?0:void 0,"aria-label":j?j(r):void 0,"aria-labelledby":S?S(r):void 0,"aria-describedby":E?E(r):void 0,"aria-disabled":A?A(r):void 0,"aria-hidden":D?D(r):void 0,onMouseEnter:$?H:void 0,onMouseMove:$?q:void 0,onMouseLeave:$?Y:void 0,onClick:$?W:void 0,onFocus:$&&O?G:void 0,onBlur:$&&O?J:void 0,"data-testid":"bar.item."+r.id+"."+r.index}),w&&y.jsx(sl,{x:d,y:f,textAnchor:g,dominantBaseline:"central",fillOpacity:u,style:Tt({},R.labels.text,{pointerEvents:"none",fill:c}),children:_})]})},V1e=["color","label"],q1e=function(e){var t=e.color,n=e.label,r=Eo(e,V1e);return y.jsx(hb,{id:n,value:r.formattedValue,enableChip:!0,color:t})},qt={indexBy:"id",keys:["value"],groupMode:"stacked",layout:"vertical",valueScale:{type:"linear",nice:!0,round:!1},indexScale:{type:"band",round:!1},padding:.1,innerPadding:0,enableGridX:!1,enableGridY:!0,enableLabel:!0,label:"formattedValue",labelPosition:"middle",labelOffset:0,labelSkipWidth:0,labelSkipHeight:0,labelTextColor:{theme:"labels.text.fill"},colorBy:"id",colors:{scheme:"nivo"},borderRadius:0,borderWidth:0,borderColor:{from:"color"},isInteractive:!0,tooltip:q1e,tooltipLabel:function(e){return e.id+" - "+e.indexValue},legends:[],initialHiddenIds:[],annotations:[],enableTotals:!1,totalsOffset:10},Vt=Tt({},qt,{layers:["grid","axes","bars","totals","markers","legends","annotations"],axisTop:null,axisRight:null,axisBottom:{},axisLeft:{},barComponent:H1e,defs:[],fill:[],markers:[],animate:!0,animateOnMount:!1,motionConfig:"default",role:"img",isFocusable:!1}),pn=Tt({},qt,{layers:["grid","axes","bars","totals","legends","annotations"],axisTop:null,axisRight:null,axisBottom:{},axisLeft:{},renderBar:function(e,t){var n=t.bar,r=n.color,i=n.height,o=n.width,a=n.x,s=n.y,l=t.borderColor,c=t.borderRadius,u=t.borderWidth,d=t.label,f=t.shouldRenderLabel,h=t.labelStyle,p=t.labelX,g=t.labelY,v=t.textAnchor;e.fillStyle=r,u>0&&(e.strokeStyle=l,e.lineWidth=u),e.beginPath(),B1e(e,a,s,o,i,Math.min(c,i)),e.fill(),u>0&&e.stroke(),f&&(e.textBaseline="middle",e.textAlign=v==="middle"?"center":v,xa(e,h,d,a+p,s+g))},pixelRatio:typeof window<"u"&&(L4=window.devicePixelRatio)!=null?L4:1}),Kk=function(e,t,n,r,i,o){return Hc(r,{all:e.map(t),min:0,max:0},i,o).padding(n)},Zk=function(e,t){return e.map(function(n){return Tt({},t.reduce(function(r,i){return r[i]=null,r},{}),n)})},Lp=function(e){return Object.keys(e).reduce(function(t,n){return e[n]&&(t[n]=e[n]),t},{})},Fp=function(e){return[e,Number(e)]};function Xk(e,t,n,r){return e===void 0&&(e=qt.layout),n===void 0&&(n=qt.labelPosition),r===void 0&&(r=qt.labelOffset),function(i,o){var a=r*(t?-1:1);if(e==="horizontal"){var s=i/2;return n==="start"?s=t?i:0:n==="end"&&(s=t?0:i),{labelX:s+a,labelY:o/2,textAnchor:n==="middle"?"middle":t?"end":"start"}}var l=o/2;return n==="start"?l=t?0:o:n==="end"&&(l=t?o:0),{labelX:i/2,labelY:l-a,textAnchor:"middle"}}}var Y1e=["layout","width","height","padding","innerPadding","valueScale","indexScale","hiddenIds"],ay=function(e,t){return e>t},Qk=function(e,t){return e<t},Jk=function(e,t){return Array.from(" ".repeat(t-e),function(n,r){return e+r})},G1e=function(e){return ay(e,0)?0:e},K1e=function(e,t,n,r){var i=e.data,o=e.formatValue,a=e.getColor,s=e.getIndex,l=e.getTooltipLabel,c=e.innerPadding,u=c===void 0?0:c,d=e.keys,f=e.xScale,h=e.yScale,p=e.margin,g=n?Qk:ay,v=i.map(Lp),x=[];return d.forEach(function(_,w){return Jk(0,f.domain().length).forEach(function($){var b,C,T,k=Fp(i[$][_]),O=k[0],j=k[1],S=s(i[$]),E=((b=f(S))!=null?b:0)+t*w+u*w,A=g(C=j,0)?(T=h(C))!=null?T:0:r,D=function(M,I){var F;return g(M,0)?r-I:((F=h(M))!=null?F:0)-r}(j,A),R={id:_,value:O===null?O:j,formattedValue:o(j),hidden:!1,index:$,indexValue:S,data:v[$]};x.push({key:_+"."+R.indexValue,index:x.length,data:R,x:E,y:A,absX:p.left+E,absY:p.top+A,width:t,height:D,color:a(R),label:l(R)})})}),x},Z1e=function(e,t,n,r){var i=e.data,o=e.formatValue,a=e.getIndex,s=e.getColor,l=e.getTooltipLabel,c=e.keys,u=e.innerPadding,d=u===void 0?0:u,f=e.xScale,h=e.yScale,p=e.margin,g=n?Qk:ay,v=i.map(Lp),x=[];return c.forEach(function(_,w){return Jk(0,h.domain().length).forEach(function($){var b,C,T,k=Fp(i[$][_]),O=k[0],j=k[1],S=a(i[$]),E=g(C=j,0)?r:(T=f(C))!=null?T:0,A=((b=h(S))!=null?b:0)+t*w+d*w,D=function(M,I){var F;return g(M,0)?((F=f(M))!=null?F:0)-r:r-I}(j,E),R={id:_,value:O===null?O:j,formattedValue:o(j),hidden:!1,index:$,indexValue:S,data:v[$]};x.push({key:_+"."+R.indexValue,index:x.length,data:R,x:E,y:A,absX:p.left+E,absY:p.top+A,width:D,height:t,color:s(R),label:l(R)})})}),x},X1e=function(e){var t,n,r,i=e.layout,o=e.width,a=e.height,s=e.padding,l=s===void 0?0:s,c=e.innerPadding,u=c===void 0?0:c,d=e.valueScale,f=e.indexScale,h=e.hiddenIds,p=h===void 0?[]:h,g=Eo(e,Y1e),v=g.keys.filter(function(I){return!p.includes(I)}),x=Zk(g.data,v),_=i==="vertical"?["y","x",o]:["x","y",a],w=_[0],$=_[1],b=_[2],C=Kk(x,g.getIndex,l,f,b,$),T=d.min==="auto"?G1e:function(I){return I},k=x.reduce(function(I,F){return[].concat(I,v.map(function(U){return F[U]}))},[]).filter(Boolean),O=T(Math.min.apply(Math,k)),j=(r=Math.max.apply(Math,k),isFinite(r)?r:0),S=Hc(d,{all:k,min:O,max:j},w==="x"?o:a,w),E=i==="vertical"?[C,S]:[S,C],A=E[0],D=E[1],R=(C.bandwidth()-u*(v.length-1))/v.length,M=[Tt({},g,{data:x,keys:v,innerPadding:u,xScale:A,yScale:D}),R,(t=d.reverse)!=null&&t,(n=S(0))!=null?n:0];return{xScale:A,yScale:D,bars:R>0?i==="vertical"?K1e.apply(void 0,M):Z1e.apply(void 0,M):[]}},Q1e=["data","layout","width","height","padding","valueScale","indexScale","hiddenIds"],eO=function(e){var t;return e.some(Array.isArray)?eO((t=[]).concat.apply(t,e)):e},J1e=function(e,t,n){var r=e.formatValue,i=e.getColor,o=e.getIndex,a=e.getTooltipLabel,s=e.innerPadding,l=e.stackedData,c=e.xScale,u=e.yScale,d=e.margin,f=[];return l.forEach(function(h){return c.domain().forEach(function(p,g){var v,x,_=h[g],w=(v=c(o(_.data)))!=null?v:0,$=((x=function(j){return u(j[n?0:1])}(_))!=null?x:0)+.5*s,b=function(j,S){var E;return((E=u(j[n?1:0]))!=null?E:0)-S}(_,$)-s,C=Fp(_.data[h.key]),T=C[0],k=C[1],O={id:h.key,value:T===null?T:k,formattedValue:r(k),hidden:!1,index:g,indexValue:p,data:Lp(_.data)};f.push({key:h.key+"."+p,index:f.length,data:O,x:w,y:$,absX:d.left+w,absY:d.top+$,width:t,height:b,color:i(O),label:a(O)})})}),f},ebe=function(e,t,n){var r=e.formatValue,i=e.getColor,o=e.getIndex,a=e.getTooltipLabel,s=e.innerPadding,l=e.stackedData,c=e.xScale,u=e.yScale,d=e.margin,f=[];return l.forEach(function(h){return u.domain().forEach(function(p,g){var v,x,_=h[g],w=(v=u(o(_.data)))!=null?v:0,$=((x=function(j){return c(j[n?1:0])}(_))!=null?x:0)+.5*s,b=function(j,S){var E;return((E=c(j[n?0:1]))!=null?E:0)-S}(_,$)-s,C=Fp(_.data[h.key]),T=C[0],k=C[1],O={id:h.key,value:T===null?T:k,formattedValue:r(k),hidden:!1,index:g,indexValue:p,data:Lp(_.data)};f.push({key:h.key+"."+p,index:f.length,data:O,x:$,y:w,absX:d.left+$,absY:d.top+w,width:b,height:t,color:i(O),label:a(O)})})}),f},tbe=function(e){var t,n,r=e.data,i=e.layout,o=e.width,a=e.height,s=e.padding,l=s===void 0?0:s,c=e.valueScale,u=e.indexScale,d=e.hiddenIds,f=d===void 0?[]:d,h=Eo(e,Q1e),p=h.keys.filter(function(R){return!f.includes(R)}),g=goe().keys(p).offset(voe)(Zk(r,p)),v=i==="vertical"?["y","x",o]:["x","y",a],x=v[0],_=v[1],w=v[2],$=Kk(r,h.getIndex,l,u,w,_),b=(n=eO(g),c.type==="log"?n.filter(function(R){return R!==0}):n),C=Math.min.apply(Math,b),T=Math.max.apply(Math,b),k=Hc(c,{all:b,min:C,max:T},x==="x"?o:a,x),O=i==="vertical"?[$,k]:[k,$],j=O[0],S=O[1],E=h.innerPadding>0?h.innerPadding:0,A=$.bandwidth(),D=[Tt({},h,{innerPadding:E,stackedData:g,xScale:j,yScale:S}),A,(t=c.reverse)!=null&&t];return{xScale:j,yScale:S,bars:A>0?i==="vertical"?J1e.apply(void 0,D):ebe.apply(void 0,D):[]}},nbe=function(e){var t=e.bars,n=e.direction,r=e.from,i=e.groupMode,o=e.layout,a=e.legendLabel,s=e.reverse,l=sk(a??(r==="indexes"?"indexValue":"id"));return r==="indexes"?function(c,u,d){var f=Uv(c.map(function(h){var p,g;return{id:(p=h.data.indexValue)!=null?p:"",label:d(h.data),hidden:h.data.hidden,color:(g=h.color)!=null?g:"#000"}}),function(h){return h.id});return u==="horizontal"&&f.reverse(),f}(t,o,l):function(c,u,d,f,h,p){var g=Uv(c.map(function(v){var x;return{id:v.data.id,label:p(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"&&h!==!0||u==="horizontal"&&f==="stacked"&&h===!0)&&g.reverse(),g}(t,o,n,i,s,l)},F4=function(e,t,n){var r=e.get(t)||0;e.set(t,r+n)},rbe=function(e,t,n){var r=e.get(t)||0;e.set(t,r+(n>0?n:0))},ibe=function(e,t,n){var r=e.get(t)||0;e.set(t,Math.max(r,Number(n)))},obe=function(e,t){var n=e.get(t)||0;e.set(t,n+1)},tO=function(e){var t,n=e.indexBy,r=n===void 0?qt.indexBy:n,i=e.keys,o=i===void 0?qt.keys:i,a=e.label,s=a===void 0?qt.label:a,l=e.tooltipLabel,c=l===void 0?qt.tooltipLabel:l,u=e.valueFormat,d=e.colors,f=d===void 0?qt.colors:d,h=e.colorBy,p=h===void 0?qt.colorBy:h,g=e.borderColor,v=g===void 0?qt.borderColor:g,x=e.labelTextColor,_=x===void 0?qt.labelTextColor:x,w=e.groupMode,$=w===void 0?qt.groupMode:w,b=e.layout,C=b===void 0?qt.layout:b,T=e.data,k=e.margin,O=e.width,j=e.height,S=e.padding,E=S===void 0?qt.padding:S,A=e.innerPadding,D=A===void 0?qt.innerPadding:A,R=e.valueScale,M=R===void 0?qt.valueScale:R,I=e.indexScale,F=I===void 0?qt.indexScale:I,U=e.initialHiddenIds,P=U===void 0?qt.initialHiddenIds:U,W=e.enableLabel,q=W===void 0?qt.enableLabel:W,H=e.labelSkipWidth,Y=H===void 0?qt.labelSkipWidth:H,G=e.labelSkipHeight,J=G===void 0?qt.labelSkipHeight:G,ee=e.legends,z=ee===void 0?qt.legends:ee,L=e.legendLabel,B=e.totalsOffset,V=B===void 0?qt.totalsOffset:B,N=m.useState(P??[]),X=N[0],Q=N[1],Z=m.useCallback(function(Ee){Q(function(je){return je.indexOf(Ee)>-1?je.filter(function(vt){return vt!==Ee}):[].concat(je,[Ee])})},[]),le=Oi(r),te=Oi(s),re=Oi(c),se=Is(u),fe=Ft(),xe=Jb(f,p),ve=Sr(v,fe),be=Sr(_,fe),Te=($==="grouped"?X1e:tbe)({layout:C,data:T,getIndex:le,keys:o,width:O,height:j,getColor:xe,padding:E,innerPadding:D,valueScale:M,indexScale:F,hiddenIds:X,formatValue:se,getTooltipLabel:re,margin:k}),ce=Te.bars,ae=Te.xScale,ye=Te.yScale,De=m.useMemo(function(){return ce.filter(function(Ee){return Ee.data.value!==null}).map(function(Ee,je){return Tt({},Ee,{index:je})})},[ce]),Bt=m.useCallback(function(Ee){var je=Ee.width,vt=Ee.height;return!!q&&!(Y>0&&je<Y)&&!(J>0&&vt<J)},[q,Y,J]),Fe=m.useMemo(function(){return o.map(function(Ee){var je=ce.find(function(vt){return vt.data.id===Ee});return Tt({},je,{data:Tt({id:Ee},je==null?void 0:je.data,{hidden:X.includes(Ee)})})})},[X,o,ce]),gt=(t=M.reverse)!=null&&t,_t=m.useMemo(function(){return z.map(function(Ee){return[Ee,nbe({bars:Ee.dataFrom==="keys"?Fe:ce,direction:Ee.direction,from:Ee.dataFrom,groupMode:$,layout:C,legendLabel:L,reverse:gt})]})},[z,Fe,ce,$,C,L,gt]),nn=m.useMemo(function(){return function(Ee,je,vt,qe,bt,at,At){qe===void 0&&(qe=qt.layout),bt===void 0&&(bt=qt.groupMode);var Ke=[];if(Ee.length===0)return Ke;var Ie=new Map,We=Ee[0].width,Qe=Ee[0].height;if(bt==="stacked"){var Pe=new Map;Ee.forEach(function(nt){var Ne=nt.data,ke=Ne.indexValue,He=Ne.value;F4(Ie,ke,Number(He)),rbe(Pe,ke,Number(He))}),Pe.forEach(function(nt,Ne){var ke,He,yt,et=Ie.get(Ne)||0;qe==="vertical"?(ke=je(Ne),He=vt(nt),yt=vt(nt/2)):(ke=je(nt),He=vt(Ne),yt=je(nt/2)),ke+=qe==="vertical"?We/2:at,He+=qe==="vertical"?-at:Qe/2,Ke.push({key:"total_"+Ne,x:ke,y:He,value:et,formattedValue:At(et),animationOffset:yt})})}else if(bt==="grouped"){var Je=new Map,ht=new Map;Ee.forEach(function(nt){var Ne=nt.data,ke=Ne.indexValue,He=Ne.value;F4(Ie,ke,Number(He)),ibe(Je,ke,Number(He)),obe(ht,ke)}),Je.forEach(function(nt,Ne){var ke,He,yt,et=Ie.get(Ne)||0,pt=ht.get(Ne);qe==="vertical"?(ke=je(Ne),He=vt(nt),yt=vt(nt/2)):(ke=je(nt),He=vt(Ne),yt=je(nt/2)),ke+=qe==="vertical"?pt*We/2:at,He+=qe==="vertical"?-at:pt*Qe/2,Ke.push({key:"total_"+Ne,x:ke,y:He,value:et,formattedValue:At(et),animationOffset:yt})})}return Ke}(ce,ae,ye,C,$,V,se)},[ce,ae,ye,C,$,V,se]);return{bars:ce,barsWithValue:De,xScale:ae,yScale:ye,getIndex:le,getLabel:te,getTooltipLabel:re,formatValue:se,getColor:xe,getBorderColor:ve,getLabelColor:be,shouldRenderBarLabel:Bt,hiddenIds:X,toggleSerie:Z,legendsWithData:_t,barTotals:nn}},abe=function(e){var t=e.data,n=e.springConfig,r=e.animate,i=e.layout,o=i===void 0?Vt.layout:i,a=Ft();return Ca(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,l){return y.jsx(Yt.text,{x:s.x,y:s.y,fillOpacity:s.labelOpacity,style:Tt({},a.labels.text,{pointerEvents:"none"}),fontWeight:"bold",fontSize:a.labels.text.fontSize,fontFamily:a.labels.text.fontFamily,textAnchor:o==="vertical"?"middle":"start",alignmentBaseline:o==="vertical"?"alphabetic":"middle",children:l.formattedValue},l.key)})},sbe=["isInteractive","animate","motionConfig","theme","renderWrapper"],lbe=function(e){var t,n=e.data,r=e.indexBy,i=e.keys,o=e.margin,a=e.width,s=e.height,l=e.groupMode,c=e.layout,u=e.valueScale,d=e.indexScale,f=e.padding,h=e.innerPadding,p=e.axisTop,g=e.axisRight,v=e.axisBottom,x=v===void 0?Vt.axisBottom:v,_=e.axisLeft,w=_===void 0?Vt.axisLeft:_,$=e.enableGridX,b=$===void 0?Vt.enableGridX:$,C=e.enableGridY,T=C===void 0?Vt.enableGridY:C,k=e.gridXValues,O=e.gridYValues,j=e.layers,S=j===void 0?Vt.layers:j,E=e.barComponent,A=E===void 0?Vt.barComponent:E,D=e.enableLabel,R=D===void 0?Vt.enableLabel:D,M=e.label,I=e.labelSkipWidth,F=I===void 0?Vt.labelSkipWidth:I,U=e.labelSkipHeight,P=U===void 0?Vt.labelSkipHeight:U,W=e.labelTextColor,q=e.labelPosition,H=q===void 0?Vt.labelPosition:q,Y=e.labelOffset,G=Y===void 0?Vt.labelOffset:Y,J=e.markers,ee=J===void 0?Vt.markers:J,z=e.colorBy,L=e.colors,B=e.defs,V=B===void 0?Vt.defs:B,N=e.fill,X=N===void 0?Vt.fill:N,Q=e.borderRadius,Z=Q===void 0?Vt.borderRadius:Q,le=e.borderWidth,te=le===void 0?Vt.borderWidth:le,re=e.borderColor,se=e.annotations,fe=se===void 0?Vt.annotations:se,xe=e.legendLabel,ve=e.tooltipLabel,be=e.valueFormat,Te=e.isInteractive,ce=Te===void 0?Vt.isInteractive:Te,ae=e.tooltip,ye=ae===void 0?Vt.tooltip:ae,De=e.onClick,Bt=e.onMouseEnter,Fe=e.onMouseLeave,gt=e.legends,_t=e.role,nn=_t===void 0?Vt.role:_t,Ee=e.ariaLabel,je=e.ariaLabelledBy,vt=e.ariaDescribedBy,qe=e.isFocusable,bt=qe===void 0?Vt.isFocusable:qe,at=e.barAriaLabel,At=e.barAriaLabelledBy,Ke=e.barAriaDescribedBy,Ie=e.barAriaHidden,We=e.barAriaDisabled,Qe=e.initialHiddenIds,Pe=e.enableTotals,Je=Pe===void 0?Vt.enableTotals:Pe,ht=e.totalsOffset,nt=ht===void 0?Vt.totalsOffset:ht,Ne=e.forwardedRef,ke=qn(),He=ke.animate,yt=ke.config,et=Ra(a,s,o),pt=et.outerWidth,tn=et.outerHeight,zt=et.margin,Ht=et.innerWidth,vn=et.innerHeight,Kt=tO({indexBy:r,label:M,tooltipLabel:ve,valueFormat:be,colors:L,colorBy:z,borderColor:re,labelTextColor:W,groupMode:l,layout:c,data:n,keys:i,margin:zt,width:Ht,height:vn,padding:f,innerPadding:h,valueScale:u,indexScale:d,enableLabel:R,labelSkipWidth:F,labelSkipHeight:P,legends:gt,legendLabel:xe,initialHiddenIds:Qe,totalsOffset:nt}),$e=Kt.bars,Ze=Kt.barsWithValue,Ct=Kt.xScale,cn=Kt.yScale,Zt=Kt.getLabel,Le=Kt.getTooltipLabel,Be=Kt.getBorderColor,ct=Kt.getLabelColor,Rt=Kt.shouldRenderBarLabel,$t=Kt.toggleSerie,Xe=Kt.legendsWithData,St=Kt.barTotals,kr=Kt.getColor,fn=Xk(c,(t=u==null?void 0:u.reverse)!=null&&t,H,G),hn=Ca(Ze,{keys:function(Me){return Me.key},from:function(Me){return Tt({borderColor:Be(Me),color:Me.color,height:0,labelColor:ct(Me),labelOpacity:0},fn(Me.width,Me.height),{transform:"translate("+Me.x+", "+(Me.y+Me.height)+")",width:Me.width},c==="vertical"?{}:{height:Me.height,transform:"translate("+Me.x+", "+Me.y+")",width:0})},enter:function(Me){return Tt({borderColor:Be(Me),color:Me.color,height:Me.height,labelColor:ct(Me),labelOpacity:1},fn(Me.width,Me.height),{transform:"translate("+Me.x+", "+Me.y+")",width:Me.width})},update:function(Me){return Tt({borderColor:Be(Me),color:Me.color,height:Me.height,labelColor:ct(Me),labelOpacity:1},fn(Me.width,Me.height),{transform:"translate("+Me.x+", "+Me.y+")",width:Me.width})},leave:function(Me){return Tt({borderColor:Be(Me),color:Me.color,height:0,labelColor:ct(Me),labelOpacity:0},fn(Me.width,Me.height),{labelY:0,transform:"translate("+Me.x+", "+(Me.y+Me.height)+")",width:Me.width},c==="vertical"?{}:Tt({},fn(Me.width,Me.height),{labelX:0,height:Me.height,transform:"translate("+Me.x+", "+Me.y+")",width:0}))},config:yt,immediate:!He,initial:He?void 0:null}),Pn=m.useMemo(function(){return{borderRadius:Z,borderWidth:te,enableLabel:R,isInteractive:ce,labelSkipWidth:F,labelSkipHeight:P,onClick:De,onMouseEnter:Bt,onMouseLeave:Fe,getTooltipLabel:Le,tooltip:ye,isFocusable:bt,ariaLabel:at,ariaLabelledBy:At,ariaDescribedBy:Ke,ariaHidden:Ie,ariaDisabled:We}},[Z,te,R,Le,ce,P,F,De,Bt,Fe,ye,bt,at,At,Ke,Ie,We]),ko=Xb(V,$e,X,{dataKey:"data",targetKey:"data.fill"}),wt={annotations:null,axes:null,bars:null,grid:null,legends:null,markers:null,totals:null};S.includes("annotations")&&(wt.annotations=y.jsx(z1e,{bars:$e,annotations:fe},"annotations")),S.includes("axes")&&(wt.axes=y.jsx(jk,{xScale:Ct,yScale:cn,width:Ht,height:vn,top:p,right:g,bottom:x,left:w},"axes")),S.includes("bars")&&(wt.bars=y.jsx(m.Fragment,{children:hn(function(Me,Br){return m.createElement(A,Tt({},Pn,{bar:Br,style:Me,shouldRenderLabel:Rt(Br),label:Zt(Br.data)}))})},"bars")),S.includes("grid")&&(wt.grid=y.jsx(Nk,{width:Ht,height:vn,xScale:b?Ct:null,yScale:T?cn:null,xValues:k,yValues:O},"grid")),S.includes("legends")&&(wt.legends=y.jsx(W1e,{width:Ht,height:vn,legends:Xe,toggleSerie:$t},"legends")),S.includes("markers")&&(wt.markers=y.jsx(ik,{markers:ee,width:Ht,height:vn,xScale:Ct,yScale:cn},"markers")),S.includes("totals")&&Je&&(wt.totals=y.jsx(abe,{data:St,springConfig:yt,animate:He,layout:c},"totals"));var Oo=Tt({},Pn,{margin:zt,width:a,height:s,innerWidth:Ht,innerHeight:vn,bars:$e,legendData:Xe,enableLabel:R,xScale:Ct,yScale:cn,tooltip:ye,getTooltipLabel:Le,onClick:De,onMouseEnter:Bt,onMouseLeave:Fe,getColor:kr});return y.jsx(Dp,{width:pt,height:tn,margin:zt,defs:ko,role:nn,ariaLabel:Ee,ariaLabelledBy:je,ariaDescribedBy:vt,isFocusable:bt,ref:Ne,children:S.map(function(Me,Br){var Mo;return typeof Me=="function"?y.jsx(m.Fragment,{children:m.createElement(Me,Oo)},Br):(Mo=wt==null?void 0:wt[Me])!=null?Mo:null})})},cbe=m.forwardRef(function(e,t){var n=e.isInteractive,r=n===void 0?Vt.isInteractive:n,i=e.animate,o=i===void 0?Vt.animate:i,a=e.motionConfig,s=a===void 0?Vt.motionConfig:a,l=e.theme,c=e.renderWrapper,u=Eo(e,sbe);return y.jsx(Ma,{animate:o,isInteractive:r,motionConfig:s,renderWrapper:c,theme:l,children:y.jsx(lbe,Tt({},u,{isInteractive:r,forwardedRef:t}))})}),ube=["isInteractive","renderWrapper","theme"],pg=function(e,t,n,r){return e.find(function(i){return ck(i.x+t.left,i.y+t.top,i.width,i.height,n,r)})},dbe=function(e){var t,n=e.data,r=e.indexBy,i=e.keys,o=e.margin,a=e.width,s=e.height,l=e.groupMode,c=e.layout,u=e.valueScale,d=e.indexScale,f=e.padding,h=e.innerPadding,p=e.axisTop,g=e.axisRight,v=e.axisBottom,x=v===void 0?pn.axisBottom:v,_=e.axisLeft,w=_===void 0?pn.axisLeft:_,$=e.enableGridX,b=$===void 0?pn.enableGridX:$,C=e.enableGridY,T=C===void 0?pn.enableGridY:C,k=e.gridXValues,O=e.gridYValues,j=e.labelPosition,S=j===void 0?pn.labelPosition:j,E=e.labelOffset,A=E===void 0?pn.labelOffset:E,D=e.layers,R=D===void 0?pn.layers:D,M=e.renderBar,I=M===void 0?pn.renderBar:M,F=e.enableLabel,U=F===void 0?pn.enableLabel:F,P=e.label,W=e.labelSkipWidth,q=W===void 0?pn.labelSkipWidth:W,H=e.labelSkipHeight,Y=H===void 0?pn.labelSkipHeight:H,G=e.labelTextColor,J=e.colorBy,ee=e.colors,z=e.borderRadius,L=z===void 0?pn.borderRadius:z,B=e.borderWidth,V=B===void 0?pn.borderWidth:B,N=e.borderColor,X=e.annotations,Q=X===void 0?pn.annotations:X,Z=e.legendLabel,le=e.tooltipLabel,te=e.valueFormat,re=e.isInteractive,se=re===void 0?pn.isInteractive:re,fe=e.tooltip,xe=fe===void 0?pn.tooltip:fe,ve=e.onClick,be=e.onMouseEnter,Te=e.onMouseLeave,ce=e.legends,ae=e.pixelRatio,ye=ae===void 0?pn.pixelRatio:ae,De=e.role,Bt=e.forwardedRef,Fe=e.enableTotals,gt=Fe===void 0?pn.enableTotals:Fe,_t=e.totalsOffset,nn=_t===void 0?pn.totalsOffset:_t,Ee=m.useRef(null),je=Ft(),vt=Ra(a,s,o),qe=vt.margin,bt=vt.innerWidth,at=vt.innerHeight,At=vt.outerWidth,Ke=vt.outerHeight,Ie=tO({indexBy:r,label:P,tooltipLabel:le,valueFormat:te,colors:ee,colorBy:J,borderColor:N,labelTextColor:G,groupMode:l,layout:c,data:n,keys:i,margin:qe,width:bt,height:at,padding:f,innerPadding:h,valueScale:u,indexScale:d,enableLabel:U,labelSkipWidth:q,labelSkipHeight:Y,legends:ce,legendLabel:Z,totalsOffset:nn}),We=Ie.bars,Qe=Ie.barsWithValue,Pe=Ie.xScale,Je=Ie.yScale,ht=Ie.getLabel,nt=Ie.getTooltipLabel,Ne=Ie.getBorderColor,ke=Ie.getLabelColor,He=Ie.shouldRenderBarLabel,yt=Ie.legendsWithData,et=Ie.barTotals,pt=Ie.getColor,tn=Ui(),zt=tn.showTooltipFromEvent,Ht=tn.hideTooltip,vn=R1e({annotations:Gk({data:We,annotations:Q,getPosition:function(Le){return{x:Le.x,y:Le.y}},getDimensions:function(Le){var Be=Le.width,ct=Le.height;return{width:Be,height:ct,size:Math.max(Be,ct)}}})}),Kt=m.useMemo(function(){return{borderRadius:L,borderWidth:V,isInteractive:se,isFocusable:!1,labelSkipWidth:q,labelSkipHeight:Y,margin:qe,width:a,height:s,innerWidth:bt,innerHeight:at,bars:We,legendData:yt,enableLabel:U,xScale:Pe,yScale:Je,tooltip:xe,getTooltipLabel:nt,onClick:ve,onMouseEnter:be,onMouseLeave:Te,getColor:pt}},[L,V,se,q,Y,qe,a,s,bt,at,We,yt,U,Pe,Je,xe,nt,ve,be,Te,pt]),$e=Is(te),Ze=Xk(c,(t=u==null?void 0:u.reverse)!=null&&t,S,A);m.useEffect(function(){if(Ee.current){Ee.current.width=At*ye,Ee.current.height=Ke*ye;var Le=Ee.current.getContext("2d");Le.scale(ye,ye),Le.fillStyle=je.background,Le.fillRect(0,0,At,Ke),Le.translate(qe.left,qe.top),R.forEach(function(Be){Be==="grid"?typeof je.grid.line.strokeWidth=="number"&&je.grid.line.strokeWidth>0&&(Le.lineWidth=je.grid.line.strokeWidth,Le.strokeStyle=je.grid.line.stroke,b&&Nf(Le,{width:bt,height:at,scale:Pe,axis:"x",values:k}),T&&Nf(Le,{width:bt,height:at,scale:Je,axis:"y",values:O})):Be==="axes"?Dk(Le,{xScale:Pe,yScale:Je,width:bt,height:at,top:p,right:g,bottom:x,left:w,theme:je}):Be==="bars"?(ya(Le,je.text),Qe.forEach(function(ct){I(Le,Tt({bar:ct,borderColor:Ne(ct),borderRadius:L,borderWidth:V,label:ht(ct.data),shouldRenderLabel:He(ct),labelStyle:Tt({},je.labels.text,{fill:ke(ct)})},Ze(ct.width,ct.height)))})):Be==="legends"?yt.forEach(function(ct){var Rt=ct[0],$t=ct[1];ry(Le,Tt({},Rt,{data:$t,containerWidth:bt,containerHeight:at,theme:je}))}):Be==="annotations"?F1e(Le,{annotations:vn,theme:je}):Be==="totals"&&gt?function(ct,Rt,$t,Xe){Xe===void 0&&(Xe=pn.layout),ya(ct,$t.labels.text),ct.textBaseline=Xe==="vertical"?"alphabetic":"middle",ct.textAlign=Xe==="vertical"?"center":"start",Rt.forEach(function(St){xa(ct,$t.labels.text,St.formattedValue,St.x,St.y)})}(Le,et,je,c):typeof Be=="function"&&Be(Le,Kt)}),Le.save()}},[x,w,g,p,Qe,L,V,vn,b,T,Ne,ht,ke,k,O,l,s,at,bt,Kt,R,c,yt,qe.left,qe.top,Ke,At,ye,I,Pe,Je,He,je,a,et,gt,$e,Ze]);var Ct=m.useCallback(function(Le){if(We&&Ee.current){var Be=hs(Ee.current,Le),ct=Be[0],Rt=Be[1],$t=pg(We,qe,ct,Rt);$t!==void 0?(zt(m.createElement(xe,Tt({},$t.data,{color:$t.color,label:$t.label,value:Number($t.data.value)})),Le),Le.type==="mouseenter"&&(be==null||be($t.data,Le))):Ht()}},[Ht,qe,be,We,zt,xe]),cn=m.useCallback(function(Le){if(We&&Ee.current){Ht();var Be=hs(Ee.current,Le),ct=Be[0],Rt=Be[1],$t=pg(We,qe,ct,Rt);$t&&(Te==null||Te($t.data,Le))}},[Ht,qe,Te,We]),Zt=m.useCallback(function(Le){if(We&&Ee.current){var Be=hs(Ee.current,Le),ct=Be[0],Rt=Be[1],$t=pg(We,qe,ct,Rt);$t!==void 0&&(ve==null||ve(Tt({},$t.data,{color:$t.color}),Le))}},[qe,ve,We]);return y.jsx("canvas",{ref:Qb(Ee,Bt),width:At*ye,height:Ke*ye,style:{width:At,height:Ke,cursor:se?"auto":"normal"},onMouseEnter:se?Ct:void 0,onMouseMove:se?Ct:void 0,onMouseLeave:se?cn:void 0,onClick:se?Zt:void 0,role:De})},fbe=m.forwardRef(function(e,t){var n=e.isInteractive,r=e.renderWrapper,i=e.theme,o=Eo(e,ube);return y.jsx(Ma,{isInteractive:n,renderWrapper:r,theme:i,animate:!1,children:y.jsx(dbe,Tt({},o,{isInteractive:n,forwardedRef:t}))})}),hbe=["defaultWidth","defaultHeight","onResize","debounceResize"],pbe=m.forwardRef(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,o=e.debounceResize,a=Eo(e,hbe);return y.jsx(Aa,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:o,children:function(s){var l=s.width,c=s.height;return y.jsx(cbe,Tt({},a,{width:l,height:c,ref:t}))}})}),mbe=["defaultWidth","defaultHeight","onResize","debounceResize"];m.forwardRef(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,o=e.debounceResize,a=Eo(e,mbe);return y.jsx(Aa,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:o,children:function(s){var l=s.width,c=s.height;return y.jsx(fbe,Tt({},a,{width:l,height:c,ref:t}))}})});exports.AbstractModalHeader=$0;exports.Alert=I1;exports.ApprovalState=E9;exports.AuthContext=Jf;exports.Backdrop=mT;exports.BaseModal=dC;exports.BootstrapModalManager=fC;exports.Button=a0;exports.Col=s0;exports.ConfirmContext=jC;exports.ContextButton=dh;exports.CustomSelectInput=J$;exports.DelegationContext=VC;exports.Documents=Hq;exports.Dropdown=q0;exports.Dropdown$1=xs;exports.DropdownDivider=Yg;exports.DropdownItem=Yo;exports.DropdownToggle=V0;exports.ENTERED=to;exports.ENTERING=xi;exports.EXITED=Xi;exports.EXITING=Ad;exports.FaMinus=GI;exports.FaPlus=KI;exports.FaSearch=ZI;exports.Fade=ho;exports.Fe=T9;exports.FileExtensionIcon=iT;exports.FloatingLabelInput=fh;exports.Form=si;exports.FormCheckInput=Gf;exports.FormControl=Q3;exports.FormDisabledContext=Y$;exports.FormSelect=b0;exports.HelmetContext=q$;exports.HookFormTextAreaInput=U0;exports.HookFormTextInput=Es;exports.HtmlTooltip=KC;exports.IconButton=au;exports.InputAnchorContainer=Z$;exports.InvalidFeedback=Th;exports.ListGroup=cC;exports.ListGroupItem=Kf;exports.LoadingContext=Qf;exports.LoginState=UC;exports.LuminusComponentsContext=ln;exports.MdCheck=g7;exports.MdCircle=m7;exports.MdClear=Qc;exports.MdOutlineAddCircleOutline=C7;exports.MdOutlineArrowOutward=v7;exports.MdOutlineCameraAlt=M7;exports.MdOutlineChevronRight=N7;exports.MdOutlineClose=AC;exports.MdOutlineDelete=MC;exports.MdOutlineEdit=A7;exports.MdOutlineExpand=y7;exports.MdOutlineFileUpload=T7;exports.MdOutlineKeyboardArrowLeft=E7;exports.MdOutlineKeyboardArrowRight=k7;exports.MdOutlineKeyboardDoubleArrowLeft=O7;exports.MdOutlineMenu=D7;exports.MdOutlinePhotoLibrary=R7;exports.MdOutlineStar=L7;exports.MdOutlineSubdirectoryArrowRight=P7;exports.MdSave=p7;exports.MdSaveAs=h7;exports.MdSearch=f7;exports.Me=cge;exports.MiniDetailWrapper=Q$;exports.Modal=Xn;exports.ModalContext=_0;exports.NoInputContainer=K$;exports.OverlayTrigger=EC;exports.PageContainer=pY;exports.PrimaryButton=da;exports.PromptContext=NC;exports.PropTypes=we;exports.ResponsiveContextDropdown=hT;exports.ResponsiveContextDropdownItem=R1;exports.RowLabelInput=su;exports.ShortcutLinksContext=QY;exports.SideContentBar=oT;exports.SimpleDropdownToggle=H0;exports.SimplePicker=pT;exports.SimpleTooltip=O0;exports.Spinner=T0;exports.TextInput=X$;exports.Tooltip=SC;exports.TransitionWrapper=t0;exports.Typography=zn;exports.UserContext=HC;exports.Xe=pbe;exports.a=j1;exports.addLeadingZeros=Lt;exports.arrayType=B$;exports.atobUtf8=XC;exports.axios=Qt;exports.buildEmployeeNameString=V9;exports.buildOrgUnitString=q9;exports.buildVehicleNameString=H9;exports.cancelToken=nD;exports.capitalizeFirstLetter=U9;exports.classNames=ue;exports.classes=Vg;exports.classes$1=eS;exports.compareDate=K9;exports.compareDateTime=Z9;exports.compilerRuntimeExports=Re;exports.constructFrom=Ai;exports.context=qf;exports.differenceInCalendarDays=q4;exports.dist=N1;exports.divWithClassName=n0;exports.extractErrorsFromResponse=k0;exports.extractFilename=t$;exports.extractPermissionsFromResponse=GC;exports.fixNameIdNulls=qC;exports.format=Xv;exports.formatDate=z9;exports.formatDateTime=W9;exports.formatFileSize=ws;exports.getChildRef=Fs;exports.getDateString=nj;exports.getDaysDifference=X9;exports.getFirstDayOfMonth=JC;exports.getFirstDayOfOffsetMonth=Q9;exports.getFirstDayOfYear=ej;exports.getLastDayOfMonth=e$;exports.getLastDayOfOffsetMonth=J9;exports.getLastDayOfYear=tj;exports.getSharedManager=hC;exports.getTimezoneOffsetInMilliseconds=vg;exports.hasOnlyNullValues=YC;exports.hookFormSetServerErrors=O9;exports.isExtensionOpenable=r$;exports.isFileOpenable=n$;exports.isISODate=QC;exports.isLeavingWindowInSafari=$G;exports.isPast=K4;exports.isPrimitive=Bd;exports.isSafari=D1;exports.isValidDate=G9;exports.joinStrings=M0;exports.makeDispatch=TG;exports.millisecondsInHour=Pf;exports.millisecondsInMinute=Kv;exports.millisecondsInWeek=Gv;exports.msToStartOfNextDay=Y9;exports.objectType=Si;exports.once=gT;exports.parseISO=Ff;exports.replaceNullValuesOnlyObjectsWithNulls=k9;exports.saveFile=zd;exports.saveFileFromResponse=oj;exports.secondsInDay=Zv;exports.secondsInHour=z4;exports.secondsInMinute=$O;exports.secondsInMonth=U4;exports.secondsInQuarter=TO;exports.secondsInWeek=SO;exports.secondsInYear=W4;exports.shortenText=B9;exports.startOfDay=gg;exports.startOfWeek=ps;exports.stringContains=Ig;exports.stringSearchWithin=A0;exports.stringStartsWith=i$;exports.stringType=F0;exports.style=co;exports.t=hh;exports.te=Efe;exports.toDate=Vn;exports.transitionEndListener=a3;exports.triggerBrowserReflow=s3;exports.trimIsoDate=eh;exports.truncateText=ZC;exports.u=rT;exports.urlfyArray=Dg;exports.useAuth=M$;exports.useAxios=sh;exports.useBootstrapBreakpoints=J4;exports.useBootstrapMinBreakpoint=e3;exports.useBootstrapPrefix=dt;exports.useClickOutside=W$;exports.useClipboard=V$;exports.useCol=g3;exports.useConfirm=P0;exports.useCookies=I0;exports.useEventCallback=fo;exports.useFormControlType=B0;exports.useFormDisabledContext=uh;exports.useIsomorphicEffect=g0;exports.useKeyPress=H$;exports.useNotifications=ah;exports.usePermissions=U$;exports.usePrompt=DC;exports.useSwipeable=M1;exports.useWindowSize=ou;exports.useZodSchemaTypes=ch;exports.z=Ll;