react-luminus-components 2.0.5-beta.r19-21 → 2.0.5-beta.r19-22

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.
@@ -0,0 +1,285 @@
1
+ "use strict";const y=require("react/jsx-runtime"),v=require("react"),sT=require("@azure/msal-browser"),ss=require("react-router"),n1=require("@azure/msal-react"),Un=require("react-dom"),sn=require("react-hook-form");require("react-flexmonster");function lT(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 fe=lT(v);var Hn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Lp={exports:{}},kh={};/**
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 r1;function cT(){if(r1)return kh;r1=1;var e=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return kh.c=function(t){return e.H.useMemoCache(t)},kh}var Mh={};/**
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 i1;function uT(){return i1||(i1=1,process.env.NODE_ENV!=="production"&&function(){var e=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;Mh.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)}}()),Mh}process.env.NODE_ENV==="production"?Lp.exports=cT():Lp.exports=uT();var Ie=Lp.exports,Ux={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 a="",o=0;o<arguments.length;o++){var s=arguments[o];s&&(a=i(a,r(s)))}return a}function r(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return n.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var o="";for(var s in a)t.call(a,s)&&a[s]&&(o=i(o,s));return o}function i(a,o){return o?a?a+" "+o:a+o:a}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Ux);var dT=Ux.exports;const se=nn(dT);function Ln(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function gi(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function fT(e,t){const n=+Ln(e);return gi(e,n+t)}const hT=365.2425,cg=6048e5,pT=864e5,ug=6e4,$d=36e5,Hx=3600,mT=60,dg=Hx*24,gT=dg*7,Vx=dg*hT,qx=Vx/12,vT=qx*3;function Yx(e,t){return fT(e,t*$d)}let bT={};function kd(){return bT}function zo(e,t){var s,l,c,u;const n=kd(),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=Ln(e),a=i.getDay(),o=(a<r?7:0)+a-r;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function Eu(e){return zo(e,{weekStartsOn:1})}function Gx(e){const t=Ln(e),n=t.getFullYear(),r=gi(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const i=Eu(r),a=gi(e,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);const o=Eu(a);return t.getTime()>=i.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function Fp(e){const t=Ln(e);return t.setHours(0,0,0,0),t}function Bp(e){const t=Ln(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Zx(e,t){const n=Fp(e),r=Fp(t),i=+n-Bp(n),a=+r-Bp(r);return Math.round((i-a)/pT)}function yT(e){const t=Gx(e),n=gi(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Eu(n)}function xT(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function wT(e){if(!xT(e)&&typeof e!="number")return!1;const t=Ln(e);return!isNaN(Number(t))}function _T(e){const t=Ln(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function CT(e){const t=Ln(e),n=gi(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const ST={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"}},TT=(e,t,n)=>{let r;const i=ST[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 Eh(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const $T={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},kT={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},MT={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ET={date:Eh({formats:$T,defaultWidth:"full"}),time:Eh({formats:kT,defaultWidth:"full"}),dateTime:Eh({formats:MT,defaultWidth:"full"})},OT={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},AT=(e,t,n,r)=>OT[e];function js(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):o;i=e.formattingValues[s]||e.formattingValues[o]}else{const o=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[s]||e.values[o]}const a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}const RT={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},DT={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},jT={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"]},IT={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"]},NT={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"}},PT={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"}},LT=(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"},FT={ordinalNumber:LT,era:js({values:RT,defaultWidth:"wide"}),quarter:js({values:DT,defaultWidth:"wide",argumentCallback:e=>e-1}),month:js({values:jT,defaultWidth:"wide"}),day:js({values:IT,defaultWidth:"wide"}),dayPeriod:js({values:NT,defaultWidth:"wide",formattingValues:PT,defaultFormattingWidth:"wide"})};function Is(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;const o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?zT(s,d=>d.test(o)):BT(s,d=>d.test(o));let c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;const u=t.slice(o.length);return{value:c,rest:u}}}function BT(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function zT(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function WT(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;const s=t.slice(i.length);return{value:o,rest:s}}}const UT=/^(\d+)(th|st|nd|rd)?/i,HT=/\d+/i,VT={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},qT={any:[/^b/i,/^(a|c)/i]},YT={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},GT={any:[/1/i,/2/i,/3/i,/4/i]},ZT={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},XT={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]},KT={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},JT={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]},QT={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},e$={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}},t$={ordinalNumber:WT({matchPattern:UT,parsePattern:HT,valueCallback:e=>parseInt(e,10)}),era:Is({matchPatterns:VT,defaultMatchWidth:"wide",parsePatterns:qT,defaultParseWidth:"any"}),quarter:Is({matchPatterns:YT,defaultMatchWidth:"wide",parsePatterns:GT,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Is({matchPatterns:ZT,defaultMatchWidth:"wide",parsePatterns:XT,defaultParseWidth:"any"}),day:Is({matchPatterns:KT,defaultMatchWidth:"wide",parsePatterns:JT,defaultParseWidth:"any"}),dayPeriod:Is({matchPatterns:QT,defaultMatchWidth:"any",parsePatterns:e$,defaultParseWidth:"any"})},n$={code:"en-US",formatDistance:TT,formatLong:ET,formatRelative:AT,localize:FT,match:t$,options:{weekStartsOn:0,firstWeekContainsDate:1}};function r$(e){const t=Ln(e);return Zx(t,CT(t))+1}function i$(e){const t=Ln(e),n=+Eu(t)-+yT(t);return Math.round(n/cg)+1}function Xx(e,t){var u,d,f,h;const n=Ln(e),r=n.getFullYear(),i=kd(),a=(t==null?void 0:t.firstWeekContainsDate)??((d=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??i.firstWeekContainsDate??((h=(f=i.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??1,o=gi(e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);const s=zo(o,t),l=gi(e,0);l.setFullYear(r,0,a),l.setHours(0,0,0,0);const c=zo(l,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function a$(e,t){var s,l,c,u;const n=kd(),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=Xx(e,t),a=gi(e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),zo(a,t)}function o$(e,t){const n=Ln(e),r=+zo(n,t)-+a$(n,t);return Math.round(r/cg)+1}function Pt(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Ei={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Pt(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Pt(n+1,2)},d(e,t){return Pt(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Pt(e.getHours()%12||12,t.length)},H(e,t){return Pt(e.getHours(),t.length)},m(e,t){return Pt(e.getMinutes(),t.length)},s(e,t){return Pt(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return Pt(i,t.length)}},uo={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},a1={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 Ei.y(e,t)},Y:function(e,t,n,r){const i=Xx(e,r),a=i>0?i:1-i;if(t==="YY"){const o=a%100;return Pt(o,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):Pt(a,t.length)},R:function(e,t){const n=Gx(e);return Pt(n,t.length)},u:function(e,t){const n=e.getFullYear();return Pt(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Pt(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Pt(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Ei.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Pt(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=o$(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):Pt(i,t.length)},I:function(e,t,n){const r=i$(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Pt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Ei.d(e,t)},D:function(e,t,n){const r=r$(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Pt(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return Pt(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return Pt(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return Pt(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=uo.noon:r===0?i=uo.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=uo.evening:r>=12?i=uo.afternoon:r>=4?i=uo.morning:i=uo.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 Ei.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Ei.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Pt(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Pt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Ei.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Ei.s(e,t)},S:function(e,t){return Ei.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return s1(r);case"XXXX":case"XX":return ga(r);case"XXXXX":case"XXX":default:return ga(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return s1(r);case"xxxx":case"xx":return ga(r);case"xxxxx":case"xxx":default:return ga(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+o1(r,":");case"OOOO":default:return"GMT"+ga(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+o1(r,":");case"zzzz":default:return"GMT"+ga(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return Pt(r,t.length)},T:function(e,t,n){const r=e.getTime();return Pt(r,t.length)}};function o1(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+Pt(a,2)}function s1(e,t){return e%60===0?(e>0?"-":"+")+Pt(Math.abs(e)/60,2):ga(e,t)}function ga(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Pt(Math.trunc(r/60),2),a=Pt(r%60,2);return n+i+t+a}const l1=(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"})}},Kx=(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"})}},s$=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return l1(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",l1(r,t)).replace("{{time}}",Kx(i,t))},l$={p:Kx,P:s$},c$=/^D+$/,u$=/^Y+$/,d$=["D","DD","YY","YYYY"];function f$(e){return c$.test(e)}function h$(e){return u$.test(e)}function p$(e,t,n){const r=m$(e,t,n);if(console.warn(r),d$.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 g$=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,v$=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,b$=/^'([^]*?)'?$/,y$=/''/g,x$=/[a-zA-Z]/;function fg(e,t,n){var u,d,f,h,p,m,g,x;const r=kd(),i=(n==null?void 0:n.locale)??r.locale??n$,a=(n==null?void 0:n.firstWeekContainsDate)??((d=(u=n==null?void 0:n.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??r.firstWeekContainsDate??((h=(f=r.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??1,o=(n==null?void 0:n.weekStartsOn)??((m=(p=n==null?void 0:n.locale)==null?void 0:p.options)==null?void 0:m.weekStartsOn)??r.weekStartsOn??((x=(g=r.locale)==null?void 0:g.options)==null?void 0:x.weekStartsOn)??0,s=Ln(e);if(!wT(s))throw new RangeError("Invalid time value");let l=t.match(v$).map(_=>{const w=_[0];if(w==="p"||w==="P"){const C=l$[w];return C(_,i.formatLong)}return _}).join("").match(g$).map(_=>{if(_==="''")return{isToken:!1,value:"'"};const w=_[0];if(w==="'")return{isToken:!1,value:w$(_)};if(a1[w])return{isToken:!0,value:_};if(w.match(x$))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:a,weekStartsOn:o,locale:i};return l.map(_=>{if(!_.isToken)return _.value;const w=_.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&h$(w)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&f$(w))&&p$(w,t,String(e));const C=a1[w[0]];return C(s,w,i.localize,c)}).join("")}function w$(e){const t=e.match(b$);return t?t[1].replace(y$,"'"):e}function Jx(e){return+Ln(e)<Date.now()}function Md(e,t){const r=T$(e);let i;if(r.date){const l=$$(r.date,2);i=k$(l.restDateString,l.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);const a=i.getTime();let o=0,s;if(r.time&&(o=M$(r.time),isNaN(o)))return new Date(NaN);if(r.timezone){if(s=E$(r.timezone),isNaN(s))return new Date(NaN)}else{const l=new Date(a+o),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(a+o+s)}const Uc={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},_$=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,C$=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,S$=/^([+-])(\d{2})(?::?(\d{2}))?$/;function T$(e){const t={},n=e.split(Uc.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],Uc.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Uc.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const i=Uc.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function $$(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const i=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:a===null?i:a*100,restDateString:e.slice((r[1]||r[2]).length)}}function k$(e,t){if(t===null)return new Date(NaN);const n=e.match(_$);if(!n)return new Date(NaN);const r=!!n[4],i=Ns(n[1]),a=Ns(n[2])-1,o=Ns(n[3]),s=Ns(n[4]),l=Ns(n[5])-1;if(r)return j$(t,s,l)?O$(t,s,l):new Date(NaN);{const c=new Date(0);return!R$(t,a,o)||!D$(t,i)?new Date(NaN):(c.setUTCFullYear(t,a,Math.max(i,o)),c)}}function Ns(e){return e?parseInt(e):1}function M$(e){const t=e.match(C$);if(!t)return NaN;const n=Oh(t[1]),r=Oh(t[2]),i=Oh(t[3]);return I$(n,r,i)?n*$d+r*ug+i*1e3:NaN}function Oh(e){return e&&parseFloat(e.replace(",","."))||0}function E$(e){if(e==="Z")return 0;const t=e.match(S$);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return N$(r,i)?n*(r*$d+i*ug):NaN}function O$(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const i=r.getUTCDay()||7,a=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+a),r}const A$=[31,null,31,30,31,30,31,31,30,31,30,31];function Qx(e){return e%400===0||e%4===0&&e%100!==0}function R$(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(A$[t]||(Qx(e)?29:28))}function D$(e,t){return t>=1&&t<=(Qx(e)?366:365)}function j$(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function I$(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function N$(e,t){return t>=0&&t<=59}function zp(){return zp=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},zp.apply(null,arguments)}function ew(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 P$=function(e,t,n,r,i,a,o,s){if(process.env.NODE_ENV!=="production"&&t===void 0)throw new Error("invariant requires an error message argument");if(!e){var 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,a,o,s],u=0;l=new Error(t.replace(/%s/g,function(){return c[u++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},L$=P$;const c1=nn(L$);function u1(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function F$(e){var t=B$(e,"string");return typeof t=="symbol"?t:String(t)}function B$(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 tw(e,t,n){var r=v.useRef(e!==void 0),i=v.useState(t),a=i[0],o=i[1],s=e!==void 0,l=r.current;return r.current=s,!s&&l&&a!==t&&o(t),[s?e:a,v.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)),o(c)},[n])]}function hg(e,t){return Object.keys(t).reduce(function(n,r){var i,a=n,o=a[u1(r)],s=a[r],l=ew(a,[u1(r),r].map(F$)),c=t[r],u=tw(s,o,e[c]),d=u[0],f=u[1];return zp({},l,(i={},i[r]=d,i[c]=f,i))},e)}function Wp(e,t){return Wp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Wp(e,t)}function z$(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Wp(e,t)}const W$=["xxl","xl","lg","md","sm","xs"],U$="xs",sc=fe.createContext({prefixes:{},breakpoints:W$,minBreakpoint:U$}),{Consumer:the,Provider:nhe}=sc;function gt(e,t){const{prefixes:n}=v.useContext(sc);return e||n[t]||t}function nw(){const{breakpoints:e}=v.useContext(sc);return e}function rw(){const{minBreakpoint:e}=v.useContext(sc);return e}function Ed(){const{dir:e}=v.useContext(sc);return e==="rtl"}function ls(e){return e&&e.ownerDocument||document}function H$(e){var t=ls(e);return t&&t.defaultView||window}function V$(e,t){return H$(e).getComputedStyle(e,t)}var q$=/([A-Z])/g;function Y$(e){return e.replace(q$,"-$1").toLowerCase()}var G$=/^ms-/;function Hc(e){return Y$(e).replace(G$,"-ms-")}var Z$=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function X$(e){return!!(e&&Z$.test(e))}function Wi(e,t){var n="",r="";if(typeof t=="string")return e.style.getPropertyValue(Hc(t))||V$(e).getPropertyValue(Hc(t));Object.keys(t).forEach(function(i){var a=t[i];!a&&a!==0?e.style.removeProperty(Hc(i)):X$(i)?r+=i+"("+a+") ":n+=Hc(i)+": "+a+";"}),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n}var Up={exports:{}},Vc={exports:{}},Dt={};/** @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 d1;function K$(){if(d1)return Dt;d1=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,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,m=e?Symbol.for("react.block"):60121,g=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 S=b.$$typeof;switch(S){case t:switch(b=b.type,b){case l:case c:case r:case a:case i:case d:return b;default:switch(b=b&&b.$$typeof,b){case s:case u:case p:case h:case o:return b;default:return S}}case n:return S}}}function C(b){return w(b)===c}return Dt.AsyncMode=l,Dt.ConcurrentMode=c,Dt.ContextConsumer=s,Dt.ContextProvider=o,Dt.Element=t,Dt.ForwardRef=u,Dt.Fragment=r,Dt.Lazy=p,Dt.Memo=h,Dt.Portal=n,Dt.Profiler=a,Dt.StrictMode=i,Dt.Suspense=d,Dt.isAsyncMode=function(b){return C(b)||w(b)===l},Dt.isConcurrentMode=C,Dt.isContextConsumer=function(b){return w(b)===s},Dt.isContextProvider=function(b){return w(b)===o},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)===a},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===a||b===i||b===d||b===f||typeof b=="object"&&b!==null&&(b.$$typeof===p||b.$$typeof===h||b.$$typeof===o||b.$$typeof===s||b.$$typeof===u||b.$$typeof===g||b.$$typeof===x||b.$$typeof===_||b.$$typeof===m)},Dt.typeOf=w,Dt}var jt={};/** @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 f1;function J$(){return f1||(f1=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,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,m=e?Symbol.for("react.block"):60121,g=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===a||N===i||N===d||N===f||typeof N=="object"&&N!==null&&(N.$$typeof===p||N.$$typeof===h||N.$$typeof===o||N.$$typeof===s||N.$$typeof===u||N.$$typeof===g||N.$$typeof===x||N.$$typeof===_||N.$$typeof===m)}function C(N){if(typeof N=="object"&&N!==null){var te=N.$$typeof;switch(te){case t:var K=N.type;switch(K){case l:case c:case r:case a:case i:case d:return K;default:var G=K&&K.$$typeof;switch(G){case s:case u:case p:case h:case o:return G;default:return te}}case n:return te}}}var b=l,S=c,M=s,$=o,k=t,D=u,T=r,E=p,R=h,j=n,O=a,A=i,I=d,F=!1;function z(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.")),L(N)||C(N)===l}function L(N){return C(N)===c}function H(N){return C(N)===s}function Y(N){return C(N)===o}function q(N){return typeof N=="object"&&N!==null&&N.$$typeof===t}function Z(N){return C(N)===u}function X(N){return C(N)===r}function J(N){return C(N)===p}function ee(N){return C(N)===h}function W(N){return C(N)===n}function P(N){return C(N)===a}function B(N){return C(N)===i}function V(N){return C(N)===d}jt.AsyncMode=b,jt.ConcurrentMode=S,jt.ContextConsumer=M,jt.ContextProvider=$,jt.Element=k,jt.ForwardRef=D,jt.Fragment=T,jt.Lazy=E,jt.Memo=R,jt.Portal=j,jt.Profiler=O,jt.StrictMode=A,jt.Suspense=I,jt.isAsyncMode=z,jt.isConcurrentMode=L,jt.isContextConsumer=H,jt.isContextProvider=Y,jt.isElement=q,jt.isForwardRef=Z,jt.isFragment=X,jt.isLazy=J,jt.isMemo=ee,jt.isPortal=W,jt.isProfiler=P,jt.isStrictMode=B,jt.isSuspense=V,jt.isValidElementType=w,jt.typeOf=C}()),jt}var h1;function iw(){return h1||(h1=1,process.env.NODE_ENV==="production"?Vc.exports=K$():Vc.exports=J$()),Vc.exports}/*
40
+ object-assign
41
+ (c) Sindre Sorhus
42
+ @license MIT
43
+ */var Ah,p1;function Q$(){if(p1)return Ah;p1=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var l=Object.getOwnPropertyNames(o).map(function(u){return o[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 Ah=i()?Object.assign:function(a,o){for(var s,l=r(a),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},Ah}var Rh,m1;function pg(){if(m1)return Rh;m1=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Rh=e,Rh}var Dh,g1;function aw(){return g1||(g1=1,Dh=Function.call.bind(Object.prototype.hasOwnProperty)),Dh}var jh,v1;function ek(){if(v1)return jh;v1=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=pg(),n={},r=aw();e=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(a,o,s,l,c){if(process.env.NODE_ENV!=="production"){for(var u in a)if(r(a,u)){var d;try{if(typeof a[u]!="function"){var f=Error((l||"React class")+": "+s+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}d=a[u](o,u,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={})},jh=i,jh}var Ih,b1;function tk(){if(b1)return Ih;b1=1;var e=iw(),t=Q$(),n=pg(),r=aw(),i=ek(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function o(){return null}return Ih=function(s,l){var c=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function d(L){var H=L&&(c&&L[c]||L[u]);if(typeof H=="function")return H}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:C(),elementType:b(),instanceOf:S,node:D(),objectOf:$,oneOf:M,oneOfType:k,shape:E,exact:R};function p(L,H){return L===H?L!==0||1/L===1/H:L!==L&&H!==H}function m(L,H){this.message=L,this.data=H&&typeof H=="object"?H:{},this.stack=""}m.prototype=Error.prototype;function g(L){if(process.env.NODE_ENV!=="production")var H={},Y=0;function q(X,J,ee,W,P,B,V){if(W=W||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 te=W+":"+ee;!H[te]&&Y<3&&(a("You are manually calling a React.PropTypes validation function for the `"+B+"` prop on `"+W+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),H[te]=!0,Y++)}}return J[ee]==null?X?J[ee]===null?new m("The "+P+" `"+B+"` is marked as required "+("in `"+W+"`, but its value is `null`.")):new m("The "+P+" `"+B+"` is marked as required in "+("`"+W+"`, but its value is `undefined`.")):null:L(J,ee,W,P,B)}var Z=q.bind(null,!1);return Z.isRequired=q.bind(null,!0),Z}function x(L){function H(Y,q,Z,X,J,ee){var W=Y[q],P=A(W);if(P!==L){var B=I(W);return new m("Invalid "+X+" `"+J+"` of type "+("`"+B+"` supplied to `"+Z+"`, expected ")+("`"+L+"`."),{expectedType:L})}return null}return g(H)}function _(){return g(o)}function w(L){function H(Y,q,Z,X,J){if(typeof L!="function")return new m("Property `"+J+"` of component `"+Z+"` has invalid PropType notation inside arrayOf.");var ee=Y[q];if(!Array.isArray(ee)){var W=A(ee);return new m("Invalid "+X+" `"+J+"` of type "+("`"+W+"` supplied to `"+Z+"`, expected an array."))}for(var P=0;P<ee.length;P++){var B=L(ee,P,Z,X,J+"["+P+"]",n);if(B instanceof Error)return B}return null}return g(H)}function C(){function L(H,Y,q,Z,X){var J=H[Y];if(!s(J)){var ee=A(J);return new m("Invalid "+Z+" `"+X+"` of type "+("`"+ee+"` supplied to `"+q+"`, expected a single ReactElement."))}return null}return g(L)}function b(){function L(H,Y,q,Z,X){var J=H[Y];if(!e.isValidElementType(J)){var ee=A(J);return new m("Invalid "+Z+" `"+X+"` of type "+("`"+ee+"` supplied to `"+q+"`, expected a single ReactElement type."))}return null}return g(L)}function S(L){function H(Y,q,Z,X,J){if(!(Y[q]instanceof L)){var ee=L.name||f,W=z(Y[q]);return new m("Invalid "+X+" `"+J+"` of type "+("`"+W+"` supplied to `"+Z+"`, expected ")+("instance of `"+ee+"`."))}return null}return g(H)}function M(L){if(!Array.isArray(L))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function H(Y,q,Z,X,J){for(var ee=Y[q],W=0;W<L.length;W++)if(p(ee,L[W]))return null;var P=JSON.stringify(L,function(V,N){var te=I(N);return te==="symbol"?String(N):N});return new m("Invalid "+X+" `"+J+"` of value `"+String(ee)+"` "+("supplied to `"+Z+"`, expected one of "+P+"."))}return g(H)}function $(L){function H(Y,q,Z,X,J){if(typeof L!="function")return new m("Property `"+J+"` of component `"+Z+"` has invalid PropType notation inside objectOf.");var ee=Y[q],W=A(ee);if(W!=="object")return new m("Invalid "+X+" `"+J+"` of type "+("`"+W+"` supplied to `"+Z+"`, expected an object."));for(var P in ee)if(r(ee,P)){var B=L(ee,P,Z,X,J+"."+P,n);if(B instanceof Error)return B}return null}return g(H)}function k(L){if(!Array.isArray(L))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var H=0;H<L.length;H++){var Y=L[H];if(typeof Y!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+F(Y)+" at index "+H+"."),o}function q(Z,X,J,ee,W){for(var P=[],B=0;B<L.length;B++){var V=L[B],N=V(Z,X,J,ee,W,n);if(N==null)return null;N.data&&r(N.data,"expectedType")&&P.push(N.data.expectedType)}var te=P.length>0?", expected one of type ["+P.join(", ")+"]":"";return new m("Invalid "+ee+" `"+W+"` supplied to "+("`"+J+"`"+te+"."))}return g(q)}function D(){function L(H,Y,q,Z,X){return j(H[Y])?null:new m("Invalid "+Z+" `"+X+"` supplied to "+("`"+q+"`, expected a ReactNode."))}return g(L)}function T(L,H,Y,q,Z){return new m((L||"React class")+": "+H+" type `"+Y+"."+q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Z+"`.")}function E(L){function H(Y,q,Z,X,J){var ee=Y[q],W=A(ee);if(W!=="object")return new m("Invalid "+X+" `"+J+"` of type `"+W+"` "+("supplied to `"+Z+"`, expected `object`."));for(var P in L){var B=L[P];if(typeof B!="function")return T(Z,X,J,P,I(B));var V=B(ee,P,Z,X,J+"."+P,n);if(V)return V}return null}return g(H)}function R(L){function H(Y,q,Z,X,J){var ee=Y[q],W=A(ee);if(W!=="object")return new m("Invalid "+X+" `"+J+"` of type `"+W+"` "+("supplied to `"+Z+"`, expected `object`."));var P=t({},Y[q],L);for(var B in P){var V=L[B];if(r(L,B)&&typeof V!="function")return T(Z,X,J,B,I(V));if(!V)return new m("Invalid "+X+" `"+J+"` key `"+B+"` supplied to `"+Z+"`.\nBad object: "+JSON.stringify(Y[q],null," ")+`
44
+ Valid keys: `+JSON.stringify(Object.keys(L),null," "));var N=V(ee,B,Z,X,J+"."+B,n);if(N)return N}return null}return g(H)}function j(L){switch(typeof L){case"number":case"string":case"undefined":return!0;case"boolean":return!L;case"object":if(Array.isArray(L))return L.every(j);if(L===null||s(L))return!0;var H=d(L);if(H){var Y=H.call(L),q;if(H!==L.entries){for(;!(q=Y.next()).done;)if(!j(q.value))return!1}else for(;!(q=Y.next()).done;){var Z=q.value;if(Z&&!j(Z[1]))return!1}}else return!1;return!0;default:return!1}}function O(L,H){return L==="symbol"?!0:H?H["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&H instanceof Symbol:!1}function A(L){var H=typeof L;return Array.isArray(L)?"array":L instanceof RegExp?"object":O(H,L)?"symbol":H}function I(L){if(typeof L>"u"||L===null)return""+L;var H=A(L);if(H==="object"){if(L instanceof Date)return"date";if(L instanceof RegExp)return"regexp"}return H}function F(L){var H=I(L);switch(H){case"array":case"object":return"an "+H;case"boolean":case"date":case"regexp":return"a "+H;default:return H}}function z(L){return!L.constructor||!L.constructor.name?f:L.constructor.name}return h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},Ih}var Nh,y1;function nk(){if(y1)return Nh;y1=1;var e=pg();function t(){}function n(){}return n.resetWarningCache=t,Nh=function(){function r(o,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 a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},Nh}if(process.env.NODE_ENV!=="production"){var rk=iw(),ik=!0;Up.exports=tk()(rk.isElement,ik)}else Up.exports=nk()();var ak=Up.exports;const xe=nn(ak),x1={disabled:!1};var ok=process.env.NODE_ENV!=="production"?xe.oneOfType([xe.number,xe.shape({enter:xe.number,exit:xe.number,appear:xe.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&xe.oneOfType([xe.string,xe.shape({enter:xe.string,exit:xe.string,active:xe.string}),xe.shape({enter:xe.string,enterDone:xe.string,enterActive:xe.string,exit:xe.string,exitDone:xe.string,exitActive:xe.string})]);const ow=v.createContext(null);var sk=function(t){return t.scrollTop},tl="unmounted",ji="exited",si="entering",Ni="entered",Ou="exiting",Ci=function(e){z$(t,e);function t(r,i){var a;a=e.call(this,r,i)||this;var o=i,s=o&&!o.isMounting?r.enter:r.appear,l;return a.appearStatus=null,r.in?s?(l=ji,a.appearStatus=si):l=Ni:r.unmountOnExit||r.mountOnEnter?l=tl:l=ji,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var o=i.in;return o&&a.status===tl?{status:ji}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var a=null;if(i!==this.props){var o=this.state.status;this.props.in?o!==si&&o!==Ni&&(a=si):(o===si||o===Ni)&&(a=Ou)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,a,o,s;return a=o=s=i,i!=null&&typeof i!="number"&&(a=i.exit,o=i.enter,s=i.appear!==void 0?i.appear:o),{exit:a,enter:o,appear:s}},n.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===si){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:Un.findDOMNode(this);o&&sk(o)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ji&&this.setState({status:tl})},n.performEnter=function(i){var a=this,o=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[Un.findDOMNode(this),s],c=l[0],u=l[1],d=this.getTimeouts(),f=s?d.appear:d.enter;if(!i&&!o||x1.disabled){this.safeSetState({status:Ni},function(){a.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:si},function(){a.props.onEntering(c,u),a.onTransitionEnd(f,function(){a.safeSetState({status:Ni},function(){a.props.onEntered(c,u)})})})},n.performExit=function(){var i=this,a=this.props.exit,o=this.getTimeouts(),s=this.props.nodeRef?void 0:Un.findDOMNode(this);if(!a||x1.disabled){this.safeSetState({status:ji},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Ou},function(){i.props.onExiting(s),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:ji},function(){i.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},n.setNextCallback=function(i){var a=this,o=!0;return this.nextCallback=function(s){o&&(o=!1,a.nextCallback=null,i(s))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},n.onTransitionEnd=function(i,a){this.setNextCallback(a);var o=this.props.nodeRef?this.props.nodeRef.current:Un.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!o||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[o,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===tl)return null;var a=this.props,o=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var s=ew(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return v.createElement(ow.Provider,{value:null},typeof o=="function"?o(i,s):v.cloneElement(v.Children.only(o),s))},t}(v.Component);Ci.contextType=ow;Ci.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:xe.shape({current:typeof Element>"u"?xe.any:function(e,t,n,r,i,a){var o=e[t];return xe.instanceOf(o&&"ownerDocument"in o?o.ownerDocument.defaultView.Element:Element)(e,t,n,r,i,a)}}),children:xe.oneOfType([xe.func.isRequired,xe.element.isRequired]).isRequired,in:xe.bool,mountOnEnter:xe.bool,unmountOnExit:xe.bool,appear:xe.bool,enter:xe.bool,exit:xe.bool,timeout:function(t){var n=ok;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];return n.apply(void 0,[t].concat(i))},addEndListener:xe.func,onEnter:xe.func,onEntering:xe.func,onEntered:xe.func,onExit:xe.func,onExiting:xe.func,onExited:xe.func}:{};function fo(){}Ci.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:fo,onEntering:fo,onEntered:fo,onExit:fo,onExiting:fo,onExited:fo};Ci.UNMOUNTED=tl;Ci.EXITED=ji;Ci.ENTERING=si;Ci.ENTERED=Ni;Ci.EXITING=Ou;function sw(e){return e.code==="Escape"||e.keyCode===27}function lk(){const e=fe.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}function cs(e){if(!e||typeof e=="function")return null;const{major:t}=lk();return t>=19?e.props.ref:e.ref}const us=!!(typeof window<"u"&&window.document&&window.document.createElement);var Hp=!1,Vp=!1;try{var Ph={get passive(){return Hp=!0},get once(){return Vp=Hp=!0}};us&&(window.addEventListener("test",Ph,Ph),window.removeEventListener("test",Ph,!0))}catch{}function mg(e,t,n,r){if(r&&typeof r!="boolean"&&!Vp){var i=r.once,a=r.capture,o=n;!Vp&&i&&(o=n.__once||function s(l){this.removeEventListener(t,s,a),n.call(this,l)},n.__once=o),e.addEventListener(t,o,Hp?r:a)}e.addEventListener(t,n,r)}function qp(e,t,n,r){var i=r&&typeof r!="boolean"?r.capture:r;e.removeEventListener(t,n,i),n.__once&&e.removeEventListener(t,n.__once,i)}function ui(e,t,n,r){return mg(e,t,n,r),function(){qp(e,t,n,r)}}function ck(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 uk(e){var t=Wi(e,"transitionDuration")||"",n=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*n}function dk(e,t,n){n===void 0&&(n=5);var r=!1,i=setTimeout(function(){r||ck(e,"transitionend",!0)},t+n),a=ui(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(i),a()}}function lw(e,t,n,r){n==null&&(n=uk(e)||0);var i=dk(e,n,r),a=ui(e,"transitionend",t);return function(){i(),a()}}function w1(e,t){const n=Wi(e,t)||"",r=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*r}function cw(e,t){const n=w1(e,"transitionDuration"),r=w1(e,"transitionDelay"),i=lw(e,a=>{a.target===e&&(i(),t(a))},n+r)}function uw(e){e.offsetHeight}const _1=e=>!e||typeof e=="function"?e:t=>{e.current=t};function fk(e,t){const n=_1(e),r=_1(t);return i=>{n&&n(i),r&&r(i)}}function Za(e,t){return v.useMemo(()=>fk(e,t),[e,t])}function Au(e){return e&&"setState"in e?Un.findDOMNode(e):e??null}const gg=v.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:i,onExited:a,addEndListener:o,children:s,childRef:l,...c},u)=>{const d=v.useRef(null),f=Za(d,l),h=S=>{f(Au(S))},p=S=>M=>{S&&d.current&&S(d.current,M)},m=v.useCallback(p(e),[e]),g=v.useCallback(p(t),[t]),x=v.useCallback(p(n),[n]),_=v.useCallback(p(r),[r]),w=v.useCallback(p(i),[i]),C=v.useCallback(p(a),[a]),b=v.useCallback(p(o),[o]);return y.jsx(Ci,{ref:u,...c,onEnter:m,onEntered:x,onEntering:g,onExit:_,onExited:C,onExiting:w,addEndListener:b,nodeRef:d,children:typeof s=="function"?(S,M)=>s(S,{...M,ref:h}):v.cloneElement(s,{ref:h})})});gg.displayName="TransitionWrapper";function hk(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e},[e]),t}function Hi(e){const t=hk(e);return v.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const vg=e=>fe.forwardRef((t,n)=>y.jsx("div",{...t,ref:n,className:se(t.className,e)})),dw=vg("h4");dw.displayName="DivStyledAsH4";const fw=fe.forwardRef(({className:e,bsPrefix:t,as:n=dw,...r},i)=>(t=gt(t,"alert-heading"),y.jsx(n,{ref:i,className:se(e,t),...r})));fw.displayName="AlertHeading";function Yp(){return v.useState(null)}function pk(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e},[e]),t}function _n(e){const t=pk(e);return v.useCallback(function(...n){return t.current&&t.current(...n)},[t])}function mk(e,t,n,r=!1){const i=_n(n);v.useEffect(()=>{const a=typeof e=="function"?e():e;return a.addEventListener(t,i,r),()=>a.removeEventListener(t,i,r)},[e])}function hw(){const e=v.useRef(!0),t=v.useRef(()=>e.current);return v.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function pw(e){const t=v.useRef(null);return v.useEffect(()=>{t.current=e}),t.current}const gk=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",vk=typeof document<"u",C1=vk||gk?v.useLayoutEffect:v.useEffect,bk=["as","disabled"];function yk(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 xk(e){return!e||e.trim()==="#"}function bg({tagName:e,disabled:t,href:n,target:r,rel:i,role:a,onClick:o,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"&&xk(n))&&f.preventDefault(),t){f.stopPropagation();return}o==null||o(f)},d=f=>{f.key===" "&&(f.preventDefault(),u(f))};return e==="a"&&(n||(n="#"),t&&(n=void 0)),[{role:a??"button",disabled:void 0,tabIndex:t?void 0:s,href:n,target:e==="a"?r:void 0,"aria-disabled":t||void 0,rel:e==="a"?i:void 0,onClick:u,onKeyDown:d},c]}const yg=fe.forwardRef((e,t)=>{let{as:n,disabled:r}=e,i=yk(e,bk);const[a,{tagName:o}]=bg(Object.assign({tagName:n,disabled:r},i));return y.jsx(o,Object.assign({},i,a,{ref:t}))});yg.displayName="Button";const wk=["onKeyDown"];function _k(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 Ck(e){return!e||e.trim()==="#"}const xg=fe.forwardRef((e,t)=>{let{onKeyDown:n}=e,r=_k(e,wk);const[i]=bg(Object.assign({tagName:"a"},r)),a=_n(o=>{i.onKeyDown(o),n==null||n(o)});return Ck(r.href)||r.role==="button"?y.jsx("a",Object.assign({ref:t},r,i,{onKeyDown:a})):y.jsx("a",Object.assign({ref:t},r,{onKeyDown:n}))});xg.displayName="Anchor";const mw=fe.forwardRef(({className:e,bsPrefix:t,as:n=xg,...r},i)=>(t=gt(t,"alert-link"),y.jsx(n,{ref:i,className:se(e,t),...r})));mw.displayName="AlertLink";const Sk={[si]:"show",[Ni]:"show"},Vi=fe.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:r,...i},a)=>{const o={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...i},s=v.useCallback((l,c)=>{uw(l),r==null||r(l,c)},[r]);return y.jsx(gg,{ref:a,addEndListener:cw,...o,onEnter:s,childRef:cs(t),children:(l,c)=>fe.cloneElement(t,{...c,className:se("fade",e,t.props.className,Sk[l],n[l])})})});Vi.displayName="Fade";const Tk={"aria-label":xe.string,onClick:xe.func,variant:xe.oneOf(["white"])},Od=fe.forwardRef(({className:e,variant:t,"aria-label":n="Close",...r},i)=>y.jsx("button",{ref:i,type:"button",className:se("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r}));Od.displayName="CloseButton";Od.propTypes=Tk;const gw=fe.forwardRef((e,t)=>{const{bsPrefix:n,show:r=!0,closeLabel:i="Close alert",closeVariant:a,className:o,children:s,variant:l="primary",onClose:c,dismissible:u,transition:d=Vi,...f}=hg(e,{show:"onClose"}),h=gt(n,"alert"),p=Hi(x=>{c&&c(!1,x)}),m=d===!0?Vi:d,g=y.jsxs("div",{role:"alert",...m?void 0:f,ref:t,className:se(o,h,l&&`${h}-${l}`,u&&`${h}-dismissible`),children:[u&&y.jsx(Od,{onClick:p,"aria-label":i,variant:a}),s]});return m?y.jsx(m,{unmountOnExit:!0,...f,ref:void 0,in:r,children:g}):r?g:null});gw.displayName="Alert";const $k=Object.assign(gw,{Link:mw,Heading:fw}),wg=fe.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:r,active:i=!1,disabled:a=!1,className:o,...s},l)=>{const c=gt(t,"btn"),[u,{tagName:d}]=bg({tagName:e,disabled:a,...s}),f=d;return y.jsx(f,{...u,...s,ref:l,disabled:a,className:se(o,c,i&&"active",n&&`${c}-${n}`,r&&`${c}-${r}`,s.href&&a&&"disabled")})});wg.displayName="Button";function kk(){const e=v.useRef(!0),t=v.useRef(()=>e.current);return v.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function Mk(e){const t=v.useRef(e);return t.current=e,t}function vw(e){const t=Mk(e);v.useEffect(()=>()=>t.current(),[])}const Gp=2**31-1;function bw(e,t,n){const r=n-Date.now();e.current=r<=Gp?setTimeout(t,r):setTimeout(()=>bw(e,t,n),Gp)}function Ek(){const e=kk(),t=v.useRef();return vw(()=>clearTimeout(t.current)),v.useMemo(()=>{const n=()=>clearTimeout(t.current);function r(i,a=0){e()&&(n(),a<=Gp?t.current=setTimeout(i,a):bw(t,i,Date.now()+a))}return{set:r,clear:n,handleRef:t}},[])}function Ok(e,t){return fe.Children.toArray(e).some(n=>fe.isValidElement(n)&&n.type===t)}function yw({as:e,bsPrefix:t,className:n,...r}){t=gt(t,"col");const i=nw(),a=rw(),o=[],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!==a?`-${l}`:"";u&&o.push(u===!0?`${t}${h}`:`${t}${h}-${u}`),f!=null&&s.push(`order${h}-${f}`),d!=null&&s.push(`offset${h}-${d}`)}),[{...r,className:se(n,...o,...s)},{as:e,bsPrefix:t,spans:o}]}const _g=fe.forwardRef((e,t)=>{const[{className:n,...r},{as:i="div",bsPrefix:a,spans:o}]=yw(e);return y.jsx(i,{...r,ref:t,className:se(n,!o.length&&a)})});_g.displayName="Col";var Ak=Function.prototype.bind.call(Function.prototype.call,[].slice);function li(e,t){return Ak(e.querySelectorAll(t))}function Rk(e,t,n){const r=v.useRef(e!==void 0),[i,a]=v.useState(t),o=e!==void 0,s=r.current;return r.current=o,!o&&s&&i!==t&&a(t),[o?e:i,v.useCallback((...l)=>{const[c,...u]=l;let d=n==null?void 0:n(c,...u);return a(c),d},[n])]}function xw(){const[,e]=v.useReducer(t=>t+1,0);return e}const Ad=fe.createContext(null);var S1=Object.prototype.hasOwnProperty;function T1(e,t,n){for(n of e.keys())if(sl(n,t))return n}function sl(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--&&sl(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=T1(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=T1(t,i),!i)||!sl(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(S1.call(e,n)&&++r&&!S1.call(t,n)||!(n in t)||!sl(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function Dk(e){const t=hw();return[e[0],v.useCallback(n=>{if(t())return e[1](n)},[t,e[1]])]}var qn="top",fr="bottom",hr="right",Yn="left",Cg="auto",lc=[qn,fr,hr,Yn],Wo="start",bl="end",jk="clippingParents",ww="viewport",Ps="popper",Ik="reference",$1=lc.reduce(function(e,t){return e.concat([t+"-"+Wo,t+"-"+bl])},[]),_w=[].concat(lc,[Cg]).reduce(function(e,t){return e.concat([t,t+"-"+Wo,t+"-"+bl])},[]),Nk="beforeRead",Pk="read",Lk="afterRead",Fk="beforeMain",Bk="main",zk="afterMain",Wk="beforeWrite",Uk="write",Hk="afterWrite",Vk=[Nk,Pk,Lk,Fk,Bk,zk,Wk,Uk,Hk];function Nr(e){return e.split("-")[0]}function tr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ia(e){var t=tr(e).Element;return e instanceof t||e instanceof Element}function Pr(e){var t=tr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Sg(e){if(typeof ShadowRoot>"u")return!1;var t=tr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var Ea=Math.max,Ru=Math.min,Uo=Math.round;function Zp(){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 Cw(){return!/^((?!chrome|android).)*safari/i.test(Zp())}function Ho(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&Pr(e)&&(i=e.offsetWidth>0&&Uo(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Uo(r.height)/e.offsetHeight||1);var o=Ia(e)?tr(e):window,s=o.visualViewport,l=!Cw()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/i,u=(r.top+(l&&s?s.offsetTop:0))/a,d=r.width/i,f=r.height/a;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c,x:c,y:u}}function Tg(e){var t=Ho(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 Sw(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Sg(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function qi(e){return e?(e.nodeName||"").toLowerCase():null}function vi(e){return tr(e).getComputedStyle(e)}function qk(e){return["table","td","th"].indexOf(qi(e))>=0}function ta(e){return((Ia(e)?e.ownerDocument:e.document)||window.document).documentElement}function Rd(e){return qi(e)==="html"?e:e.assignedSlot||e.parentNode||(Sg(e)?e.host:null)||ta(e)}function k1(e){return!Pr(e)||vi(e).position==="fixed"?null:e.offsetParent}function Yk(e){var t=/firefox/i.test(Zp()),n=/Trident/i.test(Zp());if(n&&Pr(e)){var r=vi(e);if(r.position==="fixed")return null}var i=Rd(e);for(Sg(i)&&(i=i.host);Pr(i)&&["html","body"].indexOf(qi(i))<0;){var a=vi(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function cc(e){for(var t=tr(e),n=k1(e);n&&qk(n)&&vi(n).position==="static";)n=k1(n);return n&&(qi(n)==="html"||qi(n)==="body"&&vi(n).position==="static")?t:n||Yk(e)||t}function $g(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ll(e,t,n){return Ea(e,Ru(t,n))}function Gk(e,t,n){var r=ll(e,t,n);return r>n?n:r}function Tw(){return{top:0,right:0,bottom:0,left:0}}function $w(e){return Object.assign({},Tw(),e)}function kw(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Zk=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,$w(typeof t!="number"?t:kw(t,lc))};function Xk(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=Nr(n.placement),l=$g(s),c=[Yn,hr].indexOf(s)>=0,u=c?"height":"width";if(!(!a||!o)){var d=Zk(i.padding,n),f=Tg(a),h=l==="y"?qn:Yn,p=l==="y"?fr:hr,m=n.rects.reference[u]+n.rects.reference[l]-o[l]-n.rects.popper[u],g=o[l]-n.rects.reference[l],x=cc(a),_=x?l==="y"?x.clientHeight||0:x.clientWidth||0:0,w=m/2-g/2,C=d[h],b=_-f[u]-d[p],S=_/2-f[u]/2+w,M=ll(C,S,b),$=l;n.modifiersData[r]=(t={},t[$]=M,t.centerOffset=M-S,t)}}function Kk(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)||Sw(t.elements.popper,i)&&(t.elements.arrow=i))}const Jk={name:"arrow",enabled:!0,phase:"main",fn:Xk,effect:Kk,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Vo(e){return e.split("-")[1]}var Qk={top:"auto",right:"auto",bottom:"auto",left:"auto"};function eM(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Uo(n*i)/i||0,y:Uo(r*i)/i||0}}function M1(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=o.x,h=f===void 0?0:f,p=o.y,m=p===void 0?0:p,g=typeof u=="function"?u({x:h,y:m}):{x:h,y:m};h=g.x,m=g.y;var x=o.hasOwnProperty("x"),_=o.hasOwnProperty("y"),w=Yn,C=qn,b=window;if(c){var S=cc(n),M="clientHeight",$="clientWidth";if(S===tr(n)&&(S=ta(n),vi(S).position!=="static"&&s==="absolute"&&(M="scrollHeight",$="scrollWidth")),S=S,i===qn||(i===Yn||i===hr)&&a===bl){C=fr;var k=d&&S===b&&b.visualViewport?b.visualViewport.height:S[M];m-=k-r.height,m*=l?1:-1}if(i===Yn||(i===qn||i===fr)&&a===bl){w=hr;var D=d&&S===b&&b.visualViewport?b.visualViewport.width:S[$];h-=D-r.width,h*=l?1:-1}}var T=Object.assign({position:s},c&&Qk),E=u===!0?eM({x:h,y:m},tr(n)):{x:h,y:m};if(h=E.x,m=E.y,l){var R;return Object.assign({},T,(R={},R[C]=_?"0":"",R[w]=x?"0":"",R.transform=(b.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",R))}return Object.assign({},T,(t={},t[C]=_?m+"px":"",t[w]=x?h+"px":"",t.transform="",t))}function tM(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,o=a===void 0?!0:a,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:Nr(t.placement),variation:Vo(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,M1(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,M1(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 nM={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:tM,data:{}};var qc={passive:!0};function rM(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0?!0:i,o=r.resize,s=o===void 0?!0:o,l=tr(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(u){u.addEventListener("scroll",n.update,qc)}),s&&l.addEventListener("resize",n.update,qc),function(){a&&c.forEach(function(u){u.removeEventListener("scroll",n.update,qc)}),s&&l.removeEventListener("resize",n.update,qc)}}const iM={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:rM,data:{}};var aM={left:"right",right:"left",bottom:"top",top:"bottom"};function mu(e){return e.replace(/left|right|bottom|top/g,function(t){return aM[t]})}var oM={start:"end",end:"start"};function E1(e){return e.replace(/start|end/g,function(t){return oM[t]})}function kg(e){var t=tr(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Mg(e){return Ho(ta(e)).left+kg(e).scrollLeft}function sM(e,t){var n=tr(e),r=ta(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;var c=Cw();(c||!c&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:a,height:o,x:s+Mg(e),y:l}}function lM(e){var t,n=ta(e),r=kg(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=Ea(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=Ea(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+Mg(e),l=-r.scrollTop;return vi(i||n).direction==="rtl"&&(s+=Ea(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:l}}function Eg(e){var t=vi(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Mw(e){return["html","body","#document"].indexOf(qi(e))>=0?e.ownerDocument.body:Pr(e)&&Eg(e)?e:Mw(Rd(e))}function cl(e,t){var n;t===void 0&&(t=[]);var r=Mw(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=tr(r),o=i?[a].concat(a.visualViewport||[],Eg(r)?r:[]):r,s=t.concat(o);return i?s:s.concat(cl(Rd(o)))}function Xp(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function cM(e,t){var n=Ho(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 O1(e,t,n){return t===ww?Xp(sM(e,n)):Ia(t)?cM(t,n):Xp(lM(ta(e)))}function uM(e){var t=cl(Rd(e)),n=["absolute","fixed"].indexOf(vi(e).position)>=0,r=n&&Pr(e)?cc(e):e;return Ia(r)?t.filter(function(i){return Ia(i)&&Sw(i,r)&&qi(i)!=="body"}):[]}function dM(e,t,n,r){var i=t==="clippingParents"?uM(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(l,c){var u=O1(e,c,r);return l.top=Ea(u.top,l.top),l.right=Ru(u.right,l.right),l.bottom=Ru(u.bottom,l.bottom),l.left=Ea(u.left,l.left),l},O1(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Ew(e){var t=e.reference,n=e.element,r=e.placement,i=r?Nr(r):null,a=r?Vo(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case qn:l={x:o,y:t.y-n.height};break;case fr:l={x:o,y:t.y+t.height};break;case hr:l={x:t.x+t.width,y:s};break;case Yn:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=i?$g(i):null;if(c!=null){var u=c==="y"?"height":"width";switch(a){case Wo:l[c]=l[c]-(t[u]/2-n[u]/2);break;case bl:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function yl(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,s=n.boundary,l=s===void 0?jk:s,c=n.rootBoundary,u=c===void 0?ww:c,d=n.elementContext,f=d===void 0?Ps:d,h=n.altBoundary,p=h===void 0?!1:h,m=n.padding,g=m===void 0?0:m,x=$w(typeof g!="number"?g:kw(g,lc)),_=f===Ps?Ik:Ps,w=e.rects.popper,C=e.elements[p?_:f],b=dM(Ia(C)?C:C.contextElement||ta(e.elements.popper),l,u,o),S=Ho(e.elements.reference),M=Ew({reference:S,element:w,placement:i}),$=Xp(Object.assign({},w,M)),k=f===Ps?$:S,D={top:b.top-k.top+x.top,bottom:k.bottom-b.bottom+x.bottom,left:b.left-k.left+x.left,right:k.right-b.right+x.right},T=e.modifiersData.offset;if(f===Ps&&T){var E=T[i];Object.keys(D).forEach(function(R){var j=[hr,fr].indexOf(R)>=0?1:-1,O=[qn,fr].indexOf(R)>=0?"y":"x";D[R]+=E[O]*j})}return D}function fM(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?_w:l,u=Vo(r),d=u?s?$1:$1.filter(function(p){return Vo(p)===u}):lc,f=d.filter(function(p){return c.indexOf(p)>=0});f.length===0&&(f=d);var h=f.reduce(function(p,m){return p[m]=yl(e,{placement:m,boundary:i,rootBoundary:a,padding:o})[Nr(m)],p},{});return Object.keys(h).sort(function(p,m){return h[p]-h[m]})}function hM(e){if(Nr(e)===Cg)return[];var t=mu(e);return[E1(e),t,E1(t)]}function pM(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!0:o,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,p=h===void 0?!0:h,m=n.allowedAutoPlacements,g=t.options.placement,x=Nr(g),_=x===g,w=l||(_||!p?[mu(g)]:hM(g)),C=[g].concat(w).reduce(function(Z,X){return Z.concat(Nr(X)===Cg?fM(t,{placement:X,boundary:u,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:m}):X)},[]),b=t.rects.reference,S=t.rects.popper,M=new Map,$=!0,k=C[0],D=0;D<C.length;D++){var T=C[D],E=Nr(T),R=Vo(T)===Wo,j=[qn,fr].indexOf(E)>=0,O=j?"width":"height",A=yl(t,{placement:T,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),I=j?R?hr:Yn:R?fr:qn;b[O]>S[O]&&(I=mu(I));var F=mu(I),z=[];if(a&&z.push(A[E]<=0),s&&z.push(A[I]<=0,A[F]<=0),z.every(function(Z){return Z})){k=T,$=!1;break}M.set(T,z)}if($)for(var L=p?3:1,H=function(X){var J=C.find(function(ee){var W=M.get(ee);if(W)return W.slice(0,X).every(function(P){return P})});if(J)return k=J,"break"},Y=L;Y>0;Y--){var q=H(Y);if(q==="break")break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}}const mM={name:"flip",enabled:!0,phase:"main",fn:pM,requiresIfExists:["offset"],data:{_skip:!1}};function A1(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 R1(e){return[qn,hr,fr,Yn].some(function(t){return e[t]>=0})}function gM(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=yl(t,{elementContext:"reference"}),s=yl(t,{altBoundary:!0}),l=A1(o,r),c=A1(s,i,a),u=R1(l),d=R1(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 vM={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:gM};function bM(e,t,n){var r=Nr(e),i=[Yn,qn].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o=o||0,s=(s||0)*i,[Yn,hr].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function yM(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=_w.reduce(function(u,d){return u[d]=bM(d,t.rects,a),u},{}),s=o[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]=o}const xM={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:yM};function wM(e){var t=e.state,n=e.name;t.modifiersData[n]=Ew({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const _M={name:"popperOffsets",enabled:!0,phase:"read",fn:wM,data:{}};function CM(e){return e==="x"?"y":"x"}function SM(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!1:o,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,h=f===void 0?!0:f,p=n.tetherOffset,m=p===void 0?0:p,g=yl(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),x=Nr(t.placement),_=Vo(t.placement),w=!_,C=$g(x),b=CM(C),S=t.modifiersData.popperOffsets,M=t.rects.reference,$=t.rects.popper,k=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,D=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(S){if(a){var R,j=C==="y"?qn:Yn,O=C==="y"?fr:hr,A=C==="y"?"height":"width",I=S[C],F=I+g[j],z=I-g[O],L=h?-$[A]/2:0,H=_===Wo?M[A]:$[A],Y=_===Wo?-$[A]:-M[A],q=t.elements.arrow,Z=h&&q?Tg(q):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Tw(),J=X[j],ee=X[O],W=ll(0,M[A],Z[A]),P=w?M[A]/2-L-W-J-D.mainAxis:H-W-J-D.mainAxis,B=w?-M[A]/2+L+W+ee+D.mainAxis:Y+W+ee+D.mainAxis,V=t.elements.arrow&&cc(t.elements.arrow),N=V?C==="y"?V.clientTop||0:V.clientLeft||0:0,te=(R=T==null?void 0:T[C])!=null?R:0,K=I+P-te-N,G=I+B-te,oe=ll(h?Ru(F,K):F,I,h?Ea(z,G):z);S[C]=oe,E[C]=oe-I}if(s){var ne,re=C==="x"?qn:Yn,ae=C==="x"?fr:hr,le=S[b],ye=b==="y"?"height":"width",ge=le+g[re],be=le-g[ae],Me=[qn,Yn].indexOf(x)!==-1,ce=(ne=T==null?void 0:T[b])!=null?ne:0,de=Me?ge:le-M[ye]-$[ye]-ce+D.altAxis,Ce=Me?le+M[ye]+$[ye]-ce-D.altAxis:be,Ge=h&&Me?Gk(de,le,Ce):ll(h?de:ge,le,h?Ce:be);S[b]=Ge,E[b]=Ge-le}t.modifiersData[r]=E}}const TM={name:"preventOverflow",enabled:!0,phase:"main",fn:SM,requiresIfExists:["offset"]};function $M(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function kM(e){return e===tr(e)||!Pr(e)?kg(e):$M(e)}function MM(e){var t=e.getBoundingClientRect(),n=Uo(t.width)/e.offsetWidth||1,r=Uo(t.height)/e.offsetHeight||1;return n!==1||r!==1}function EM(e,t,n){n===void 0&&(n=!1);var r=Pr(t),i=Pr(t)&&MM(t),a=ta(t),o=Ho(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((qi(t)!=="body"||Eg(a))&&(s=kM(t)),Pr(t)?(l=Ho(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=Mg(a))),{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function OM(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function i(a){n.add(a.name);var o=[].concat(a.requires||[],a.requiresIfExists||[]);o.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&i(l)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||i(a)}),r}function AM(e){var t=OM(e);return Vk.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function RM(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function DM(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 D1={placement:"bottom",modifiers:[],strategy:"absolute"};function j1(){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 jM(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?D1:i;return function(s,l,c){c===void 0&&(c=a);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},D1,a),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;m(),u.options=Object.assign({},a,u.options,_),u.scrollParents={reference:Ia(s)?cl(s):s.contextElement?cl(s.contextElement):[],popper:cl(l)};var w=AM(DM([].concat(r,u.options.modifiers)));return u.orderedModifiers=w.filter(function(C){return C.enabled}),p(),h.update()},forceUpdate:function(){if(!f){var x=u.elements,_=x.reference,w=x.popper;if(j1(_,w)){u.rects={reference:EM(_,cc(w),u.options.strategy==="fixed"),popper:Tg(w)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(D){return u.modifiersData[D.name]=Object.assign({},D.data)});for(var C=0;C<u.orderedModifiers.length;C++){if(u.reset===!0){u.reset=!1,C=-1;continue}var b=u.orderedModifiers[C],S=b.fn,M=b.options,$=M===void 0?{}:M,k=b.name;typeof S=="function"&&(u=S({state:u,options:$,name:k,instance:h})||u)}}}},update:RM(function(){return new Promise(function(g){h.forceUpdate(),g(u)})}),destroy:function(){m(),f=!0}};if(!j1(s,l))return h;h.setOptions(c).then(function(g){!f&&c.onFirstUpdate&&c.onFirstUpdate(g)});function p(){u.orderedModifiers.forEach(function(g){var x=g.name,_=g.options,w=_===void 0?{}:_,C=g.effect;if(typeof C=="function"){var b=C({state:u,name:x,instance:h,options:w}),S=function(){};d.push(b||S)}})}function m(){d.forEach(function(g){return g()}),d=[]}return h}}const IM=jM({defaultModifiers:[vM,_M,nM,iM,xM,mM,TM,Jk]}),NM=["enabled","placement","strategy","modifiers"];function PM(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 LM={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},FM={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:n}=e.elements;if("removeAttribute"in t){const r=(t.getAttribute("aria-describedby")||"").split(",").filter(i=>i.trim()!==n.id);r.length?t.setAttribute("aria-describedby",r.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:n,reference:r}=e.elements,i=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();if(n.id&&i==="tooltip"&&"setAttribute"in r){const a=r.getAttribute("aria-describedby");if(a&&a.split(",").indexOf(n.id)!==-1)return;r.setAttribute("aria-describedby",a?`${a},${n.id}`:n.id)}}},BM=[];function Ow(e,t,n={}){let{enabled:r=!0,placement:i="bottom",strategy:a="absolute",modifiers:o=BM}=n,s=PM(n,NM);const l=v.useRef(o),c=v.useRef(),u=v.useCallback(()=>{var g;(g=c.current)==null||g.update()},[]),d=v.useCallback(()=>{var g;(g=c.current)==null||g.forceUpdate()},[]),[f,h]=Dk(v.useState({placement:i,update:u,forceUpdate:d,attributes:{},styles:{popper:{},arrow:{}}})),p=v.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:g})=>{const x={},_={};Object.keys(g.elements).forEach(w=>{x[w]=g.styles[w],_[w]=g.attributes[w]}),h({state:g,styles:x,attributes:_,update:u,forceUpdate:d,placement:g.placement})}}),[u,d,h]),m=v.useMemo(()=>(sl(l.current,o)||(l.current=o),l.current),[o]);return v.useEffect(()=>{!c.current||!r||c.current.setOptions({placement:i,strategy:a,modifiers:[...m,p,LM]})},[a,i,p,r,m]),v.useEffect(()=>{if(!(!r||e==null||t==null))return c.current=IM(e,t,Object.assign({},s,{placement:i,strategy:a,modifiers:[...m,FM,p]})),()=>{c.current!=null&&(c.current.destroy(),c.current=void 0,h(g=>Object.assign({},g,{attributes:{},styles:{popper:{}}})))}},[r,e,t]),f}function xl(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}var zM=process.env.NODE_ENV!=="production",Aw=function(){};if(zM){var WM=function(t,n){var r=arguments.length;n=new Array(r>1?r-1:0);for(var i=1;i<r;i++)n[i-1]=arguments[i];var a=0,o="Warning: "+t.replace(/%s/g,function(){return n[a++]});typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}};Aw=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||WM.apply(null,[t].concat(n))}}var UM=Aw;const Xa=nn(UM),I1=()=>{};function HM(e){return e.button===0}function VM(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const gu=e=>e&&("current"in e?e.current:e),N1={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function Rw(e,t=I1,{disabled:n,clickTrigger:r="click"}={}){const i=v.useRef(!1),a=v.useRef(!1),o=v.useCallback(c=>{const u=gu(e);Xa(!!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||VM(c)||!HM(c)||!!xl(u,c.target)||a.current,a.current=!1},[e]),s=_n(c=>{const u=gu(e);u&&xl(u,c.target)?a.current=!0:a.current=!1}),l=_n(c=>{i.current||t(c)});v.useEffect(()=>{var c,u;if(n||e==null)return;const d=ls(gu(e)),f=d.defaultView||window;let h=(c=f.event)!=null?c:(u=f.parent)==null?void 0:u.event,p=null;N1[r]&&(p=ui(d,N1[r],s,!0));const m=ui(d,r,o,!0),g=ui(d,r,_=>{if(_===h){h=void 0;return}l(_)});let x=[];return"ontouchstart"in d.documentElement&&(x=[].slice.call(d.body.children).map(_=>ui(_,"mousemove",I1))),()=>{p==null||p(),m(),g(),x.forEach(_=>_())}},[e,n,r,o,s,l])}function qM(e){const t={};return Array.isArray(e)?(e==null||e.forEach(n=>{t[n.name]=n}),t):e||t}function YM(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function Dw({enabled:e,enableEvents:t,placement:n,flip:r,offset:i,fixed:a,containerPadding:o,arrowElement:s,popperConfig:l={}}){var c,u,d,f,h;const p=qM(l.modifiers);return Object.assign({},l,{placement:n,enabled:e,strategy:a?"fixed":l.strategy,modifiers:YM(Object.assign({},p,{eventListeners:{enabled:t,options:(c=p.eventListeners)==null?void 0:c.options},preventOverflow:Object.assign({},p.preventOverflow,{options:o?Object.assign({padding:o},(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 GM=["children","usePopper"];function ZM(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 XM=()=>{};function jw(e={}){const t=v.useContext(Ad),[n,r]=Yp(),i=v.useRef(!1),{flip:a,offset:o,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=S=>{t==null||t.toggle(!1,S)},{placement:m,setMenu:g,menuElement:x,toggleElement:_}=t||{},w=Ow(_,x,Dw({placement:c||m||"bottom-start",enabled:f,enableEvents:d??h,offset:o,flip:a,fixed:l,arrowElement:n,popperConfig:u})),C=Object.assign({ref:g||XM,"aria-labelledby":_==null?void 0:_.id},w.attributes.popper,{style:w.styles.popper}),b={show:h,placement:m,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 Rw(x,p,{clickTrigger:s,disabled:!h}),[C,b]}function Iw(e){let{children:t,usePopper:n=!0}=e,r=ZM(e,GM);const[i,a]=jw(Object.assign({},r,{usePopper:n}));return y.jsx(y.Fragment,{children:t(i,a)})}Iw.displayName="DropdownMenu";const Du={prefix:String(Math.round(Math.random()*1e10)),current:0},Nw=v.createContext(Du),KM=v.createContext(!1);let JM=!!(typeof window<"u"&&window.document&&window.document.createElement),Lh=new WeakMap;function QM(e=!1){let t=v.useContext(Nw),n=v.useRef(null);if(n.current===null&&!e){var r,i;let a=(i=v.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(a){let o=Lh.get(a);o==null?Lh.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==o.state&&(t.current=o.id,Lh.delete(a))}n.current=++t.current}return n.current}function e8(e){let t=v.useContext(Nw);t===Du&&!JM&&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=QM(!!e),r=t===Du&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function t8(e){let t=v.useId(),[n]=v.useState(o8()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Du.prefix}`;return e||`${r}-${t}`}const n8=typeof v.useId=="function"?t8:e8;function r8(){return!1}function i8(){return!0}function a8(e){return()=>{}}function o8(){return typeof v.useSyncExternalStore=="function"?v.useSyncExternalStore(a8,r8,i8):v.useContext(KM)}const Pw=e=>{var t;return((t=e.getAttribute("role"))==null?void 0:t.toLowerCase())==="menu"},P1=()=>{};function Lw(){const e=n8(),{show:t=!1,toggle:n=P1,setToggle:r,menuElement:i}=v.useContext(Ad)||{},a=v.useCallback(s=>{n(!t,s)},[t,n]),o={id:e,ref:r||P1,onClick:a,"aria-expanded":!!t};return i&&Pw(i)&&(o["aria-haspopup"]=!0),[o,{show:t,toggle:n}]}function Fw({children:e}){const[t,n]=Lw();return y.jsx(y.Fragment,{children:e(t,n)})}Fw.displayName="DropdownToggle";const qo=fe.createContext(null),wl=(e,t=null)=>e!=null?String(e):t||null,Dd=fe.createContext(null);Dd.displayName="NavContext";const s8="data-rr-ui-",l8="rrUi";function ds(e){return`${s8}${e}`}function c8(e){return`${l8}${e}`}const u8=["eventKey","disabled","onClick","active","as"];function d8(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 Bw({key:e,href:t,active:n,disabled:r,onClick:i}){const a=v.useContext(qo),o=v.useContext(Dd),{activeKey:s}=o||{},l=wl(e,t),c=n==null&&e!=null?wl(s)===l:n;return[{onClick:_n(d=>{r||(i==null||i(d),a&&!d.isPropagationStopped()&&a(l,d))}),"aria-disabled":r||void 0,"aria-selected":c,[ds("dropdown-item")]:""},{isActive:c}]}const zw=fe.forwardRef((e,t)=>{let{eventKey:n,disabled:r,onClick:i,active:a,as:o=yg}=e,s=d8(e,u8);const[l]=Bw({key:n,href:s.href,disabled:r,onClick:i,active:a});return y.jsx(o,Object.assign({},s,{ref:t},l))});zw.displayName="DropdownItem";const Ww=v.createContext(us?window:void 0);Ww.Provider;function jd(){return v.useContext(Ww)}function L1(){const e=xw(),t=v.useRef(null),n=v.useCallback(r=>{t.current=r,e()},[e]);return[t,n]}function uc({defaultShow:e,show:t,onSelect:n,onToggle:r,itemSelector:i=`* [${ds("dropdown-item")}]`,focusFirstItemOnShow:a,placement:o="bottom-start",children:s}){const l=jd(),[c,u]=Rk(t,e,r),[d,f]=L1(),h=d.current,[p,m]=L1(),g=p.current,x=pw(c),_=v.useRef(null),w=v.useRef(!1),C=v.useContext(qo),b=v.useCallback((T,E,R=E==null?void 0:E.type)=>{u(T,{originalEvent:E,source:R})},[u]),S=_n((T,E)=>{n==null||n(T,E),b(!1,E,"select"),E.isPropagationStopped()||C==null||C(T,E)}),M=v.useMemo(()=>({toggle:b,placement:o,show:c,menuElement:h,toggleElement:g,setMenu:f,setToggle:m}),[b,o,c,h,g,f,m]);h&&x&&!c&&(w.current=h.contains(h.ownerDocument.activeElement));const $=_n(()=>{g&&g.focus&&g.focus()}),k=_n(()=>{const T=_.current;let E=a;if(E==null&&(E=d.current&&Pw(d.current)?"keyboard":!1),E===!1||E==="keyboard"&&!/^key.+$/.test(T))return;const R=li(d.current,i)[0];R&&R.focus&&R.focus()});v.useEffect(()=>{c?k():w.current&&(w.current=!1,$())},[c,w,$,k]),v.useEffect(()=>{_.current=null});const D=(T,E)=>{if(!d.current)return null;const R=li(d.current,i);let j=R.indexOf(T)+E;return j=Math.max(0,Math.min(j,R.length)),R[j]};return mk(v.useCallback(()=>l.document,[l]),"keydown",T=>{var E,R;const{key:j}=T,O=T.target,A=(E=d.current)==null?void 0:E.contains(O),I=(R=p.current)==null?void 0:R.contains(O);if(/input|textarea/i.test(O.tagName)&&(j===" "||j!=="Escape"&&A||j==="Escape"&&O.type==="search")||!A&&!I||j==="Tab"&&(!d.current||!c))return;_.current=T.type;const z={originalEvent:T,source:T.type};switch(j){case"ArrowUp":{const L=D(O,-1);L&&L.focus&&L.focus(),T.preventDefault();return}case"ArrowDown":if(T.preventDefault(),!c)u(!0,z);else{const L=D(O,1);L&&L.focus&&L.focus()}return;case"Tab":mg(O.ownerDocument,"keyup",L=>{var H;(L.key==="Tab"&&!L.target||!((H=d.current)!=null&&H.contains(L.target)))&&u(!1,z)},{once:!0});break;case"Escape":j==="Escape"&&(T.preventDefault(),T.stopPropagation()),u(!1,z);break}}),y.jsx(qo.Provider,{value:S,children:y.jsx(Ad.Provider,{value:M,children:s})})}uc.displayName="Dropdown";uc.Menu=Iw;uc.Toggle=Fw;uc.Item=zw;const Og=fe.createContext({});Og.displayName="DropdownContext";const Uw=fe.forwardRef(({className:e,bsPrefix:t,as:n="hr",role:r="separator",...i},a)=>(t=gt(t,"dropdown-divider"),y.jsx(n,{ref:a,className:se(e,t),role:r,...i})));Uw.displayName="DropdownDivider";const Hw=fe.forwardRef(({className:e,bsPrefix:t,as:n="div",role:r="heading",...i},a)=>(t=gt(t,"dropdown-header"),y.jsx(n,{ref:a,className:se(e,t),role:r,...i})));Hw.displayName="DropdownHeader";const Vw=fe.forwardRef(({bsPrefix:e,className:t,eventKey:n,disabled:r=!1,onClick:i,active:a,as:o=xg,...s},l)=>{const c=gt(e,"dropdown-item"),[u,d]=Bw({key:n,href:s.href,disabled:r,onClick:i,active:a});return y.jsx(o,{...s,...u,ref:l,className:se(t,c,d.isActive&&"active",r&&"disabled")})});Vw.displayName="DropdownItem";const qw=fe.forwardRef(({className:e,bsPrefix:t,as:n="span",...r},i)=>(t=gt(t,"dropdown-item-text"),y.jsx(n,{ref:i,className:se(e,t),...r})));qw.displayName="DropdownItemText";const f8=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",h8=typeof document<"u",Ag=h8||f8?v.useLayoutEffect:v.useEffect,Id=fe.createContext(null);Id.displayName="InputGroupContext";const Yw=fe.createContext(null);Yw.displayName="NavbarContext";function Gw(e,t){if(process.env.NODE_ENV==="production")return e;const n=v.useCallback(r=>{r==null||!r.isReactComponent||(process.env.NODE_ENV!=="production"?c1(!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`):c1(!1))},[t]);return Za(n,e)}function Zw(e,t,n){const r=n?"top-end":"top-start",i=n?"top-start":"top-end",a=n?"bottom-end":"bottom-start",o=n?"bottom-start":"bottom-end",s=n?"right-start":"left-start",l=n?"right-end":"left-end",c=n?"left-start":"right-start",u=n?"left-end":"right-end";let d=e?o:a;return t==="up"?d=e?i:r:t==="end"?d=e?u:c:t==="start"?d=e?l:s:t==="down-centered"?d="bottom":t==="up-centered"&&(d="top"),d}const Xw=fe.forwardRef(({bsPrefix:e,className:t,align:n,rootCloseEvent:r,flip:i=!0,show:a,renderOnMount:o,as:s="div",popperConfig:l,variant:c,...u},d)=>{let f=!1;const h=v.useContext(Yw),p=gt(e,"dropdown-menu"),{align:m,drop:g,isRTL:x}=v.useContext(Og);n=n||m;const _=v.useContext(Id),w=[];if(n)if(typeof n=="object"){const T=Object.keys(n);if(process.env.NODE_ENV!=="production"&&Xa(T.length===1,"There should only be 1 breakpoint when passing an object to `align`"),T.length){const E=T[0],R=n[E];f=R==="start",w.push(`${p}-${E}-${R}`)}}else n==="end"&&(f=!0);const C=Zw(f,g,x),[b,{hasShown:S,popper:M,show:$,toggle:k}]=jw({flip:i,rootCloseEvent:r,show:a,usePopper:!h&&w.length===0,offset:[0,2],popperConfig:l,placement:C});if(b.ref=Za(Gw(d,"DropdownMenu"),b.ref),Ag(()=>{$&&(M==null||M.update())},[$]),!S&&!o&&!_)return null;typeof s!="string"&&(b.show=$,b.close=()=>k==null?void 0:k(!1),b.align=n);let D=u.style;return M!=null&&M.placement&&(D={...u.style,...b.style},u["x-placement"]=M.placement),y.jsx(s,{...u,...b,style:D,...(w.length||h)&&{"data-bs-popper":"static"},className:se(t,p,$&&"show",f&&`${p}-end`,c&&`${p}-${c}`,...w)})});Xw.displayName="DropdownMenu";const Kw=fe.forwardRef(({bsPrefix:e,split:t,className:n,childBsPrefix:r,as:i=wg,...a},o)=>{const s=gt(e,"dropdown-toggle"),l=v.useContext(Ad);r!==void 0&&(a.bsPrefix=r);const[c]=Lw();return c.ref=Za(c.ref,Gw(o,"DropdownToggle")),y.jsx(i,{className:se(n,s,t&&`${s}-split`,(l==null?void 0:l.show)&&"show"),...c,...a})});Kw.displayName="DropdownToggle";const Jw=fe.forwardRef((e,t)=>{const{bsPrefix:n,drop:r="down",show:i,className:a,align:o="start",onSelect:s,onToggle:l,focusFirstItemOnShow:c,as:u="div",navbar:d,autoClose:f=!0,...h}=hg(e,{show:"onToggle"}),p=v.useContext(Id),m=gt(n,"dropdown"),g=Ed(),x=M=>f===!1?M==="click":f==="inside"?M!=="rootClose":f==="outside"?M!=="select":!0,_=Hi((M,$)=>{var k;!((k=$.originalEvent)==null||(k=k.target)==null)&&k.classList.contains("dropdown-toggle")&&$.source==="mousedown"||($.originalEvent.currentTarget===document&&($.source!=="keydown"||$.originalEvent.key==="Escape")&&($.source="rootClose"),x($.source)&&(l==null||l(M,$)))}),C=Zw(o==="end",r,g),b=v.useMemo(()=>({align:o,drop:r,isRTL:g}),[o,r,g]),S={down:m,"down-centered":`${m}-center`,up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return y.jsx(Og.Provider,{value:b,children:y.jsx(uc,{placement:C,show:i,onSelect:s,onToggle:_,focusFirstItemOnShow:c,itemSelector:`.${m}-item:not(.disabled):not(:disabled)`,children:p?h.children:y.jsx(u,{...h,ref:t,className:se(a,i&&"show",S[r])})})})});Jw.displayName="Dropdown";const Yo=Object.assign(Jw,{Toggle:Kw,Menu:Xw,Item:Vw,ItemText:qw,Divider:Uw,Header:Hw}),p8={type:xe.string,tooltip:xe.bool,as:xe.elementType},Nd=fe.forwardRef(({as:e="div",className:t,type:n="valid",tooltip:r=!1,...i},a)=>y.jsx(e,{...i,ref:a,className:se(t,`${n}-${r?"tooltip":"feedback"}`)}));Nd.displayName="Feedback";Nd.propTypes=p8;const bi=fe.createContext({}),Pd=fe.forwardRef(({id:e,bsPrefix:t,className:n,type:r="checkbox",isValid:i=!1,isInvalid:a=!1,as:o="input",...s},l)=>{const{controlId:c}=v.useContext(bi);return t=gt(t,"form-check-input"),y.jsx(o,{...s,ref:l,type:r,id:e||c,className:se(n,t,i&&"is-valid",a&&"is-invalid")})});Pd.displayName="FormCheckInput";const ju=fe.forwardRef(({bsPrefix:e,className:t,htmlFor:n,...r},i)=>{const{controlId:a}=v.useContext(bi);return e=gt(e,"form-check-label"),y.jsx("label",{...r,ref:i,htmlFor:n||a,className:se(t,e)})});ju.displayName="FormCheckLabel";const Qw=fe.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:n,inline:r=!1,reverse:i=!1,disabled:a=!1,isValid:o=!1,isInvalid:s=!1,feedbackTooltip:l=!1,feedback:c,feedbackType:u,className:d,style:f,title:h="",type:p="checkbox",label:m,children:g,as:x="input",..._},w)=>{t=gt(t,"form-check"),n=gt(n,"form-switch");const{controlId:C}=v.useContext(bi),b=v.useMemo(()=>({controlId:e||C}),[C,e]),S=!g&&m!=null&&m!==!1||Ok(g,ju),M=y.jsx(Pd,{..._,type:p==="switch"?"checkbox":p,ref:w,isValid:o,isInvalid:s,disabled:a,as:x});return y.jsx(bi.Provider,{value:b,children:y.jsx("div",{style:f,className:se(d,S&&t,r&&`${t}-inline`,i&&`${t}-reverse`,p==="switch"&&n),children:g||y.jsxs(y.Fragment,{children:[M,S&&y.jsx(ju,{title:h,children:m}),c&&y.jsx(Nd,{type:u,tooltip:l,children:c})]})})})});Qw.displayName="FormCheck";const Iu=Object.assign(Qw,{Input:Pd,Label:ju}),e_=fe.forwardRef(({bsPrefix:e,type:t,size:n,htmlSize:r,id:i,className:a,isValid:o=!1,isInvalid:s=!1,plaintext:l,readOnly:c,as:u="input",...d},f)=>{const{controlId:h}=v.useContext(bi);return e=gt(e,"form-control"),process.env.NODE_ENV!=="production"&&Xa(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:se(a,l?`${e}-plaintext`:e,n&&`${e}-${n}`,t==="color"&&`${e}-color`,o&&"is-valid",s&&"is-invalid")})});e_.displayName="FormControl";const t_=Object.assign(e_,{Feedback:Nd}),n_=fe.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=gt(t,"form-floating"),y.jsx(n,{ref:i,className:se(e,t),...r})));n_.displayName="FormFloating";const Rg=fe.forwardRef(({controlId:e,as:t="div",...n},r)=>{const i=v.useMemo(()=>({controlId:e}),[e]);return y.jsx(bi.Provider,{value:i,children:y.jsx(t,{...n,ref:r})})});Rg.displayName="FormGroup";const r_=fe.forwardRef(({as:e="label",bsPrefix:t,column:n=!1,visuallyHidden:r=!1,className:i,htmlFor:a,...o},s)=>{const{controlId:l}=v.useContext(bi);t=gt(t,"form-label");let c="col-form-label";typeof n=="string"&&(c=`${c} ${c}-${n}`);const u=se(i,t,r&&"visually-hidden",n&&c);return process.env.NODE_ENV!=="production"&&Xa(l==null||!a,"`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified."),a=a||l,n?y.jsx(_g,{ref:s,as:"label",className:u,htmlFor:a,...o}):y.jsx(e,{ref:s,className:u,htmlFor:a,...o})});r_.displayName="FormLabel";const i_=fe.forwardRef(({bsPrefix:e,className:t,id:n,...r},i)=>{const{controlId:a}=v.useContext(bi);return e=gt(e,"form-range"),y.jsx("input",{...r,type:"range",ref:i,className:se(t,e),id:n||a})});i_.displayName="FormRange";const Dg=fe.forwardRef(({bsPrefix:e,size:t,htmlSize:n,className:r,isValid:i=!1,isInvalid:a=!1,id:o,...s},l)=>{const{controlId:c}=v.useContext(bi);return e=gt(e,"form-select"),y.jsx("select",{...s,size:n,ref:l,className:se(r,e,t&&`${e}-${t}`,i&&"is-valid",a&&"is-invalid"),id:o||c})});Dg.displayName="FormSelect";const a_=fe.forwardRef(({bsPrefix:e,className:t,as:n="small",muted:r,...i},a)=>(e=gt(e,"form-text"),y.jsx(n,{...i,ref:a,className:se(t,e,r&&"text-muted")})));a_.displayName="FormText";const o_=fe.forwardRef((e,t)=>y.jsx(Iu,{...e,ref:t,type:"switch"}));o_.displayName="Switch";const m8=Object.assign(o_,{Input:Iu.Input,Label:Iu.Label}),jg=fe.forwardRef(({bsPrefix:e,className:t,children:n,controlId:r,label:i,...a},o)=>(e=gt(e,"form-floating"),y.jsxs(Rg,{ref:o,className:se(t,e),controlId:r,...a,children:[n,y.jsx("label",{htmlFor:r,children:i})]})));jg.displayName="FloatingLabel";const g8={_ref:xe.any,validated:xe.bool,as:xe.elementType},Ig=fe.forwardRef(({className:e,validated:t,as:n="form",...r},i)=>y.jsx(n,{...r,ref:i,className:se(e,t&&"was-validated")}));Ig.displayName="Form";Ig.propTypes=g8;const Gr=Object.assign(Ig,{Group:Rg,Control:t_,Floating:n_,Check:Iu,Switch:m8,Label:r_,Text:a_,Range:i_,Select:Dg,FloatingLabel:jg}),F1=e=>!e||typeof e=="function"?e:t=>{e.current=t};function v8(e,t){const n=F1(e),r=F1(t);return i=>{n&&n(i),r&&r(i)}}function dc(e,t){return v.useMemo(()=>v8(e,t),[e,t])}const s_=fe.createContext(null),b8=["as","active","eventKey"];function y8(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 l_({key:e,onClick:t,active:n,id:r,role:i,disabled:a}){const o=v.useContext(qo),s=v.useContext(Dd),l=v.useContext(s_);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[ds("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),a&&(u.tabIndex=-1,u["aria-disabled"]=!0)),u.onClick=_n(d=>{a||(t==null||t(d),e!=null&&o&&!d.isPropagationStopped()&&o(e,d))}),[u,{isActive:c}]}const c_=fe.forwardRef((e,t)=>{let{as:n=yg,active:r,eventKey:i}=e,a=y8(e,b8);const[o,s]=l_(Object.assign({key:wl(i,a.href),active:r},a));return o[ds("active")]=s.isActive,y.jsx(n,Object.assign({},a,o,{ref:t}))});c_.displayName="NavItem";const x8=["as","onSelect","activeKey","role","onKeyDown"];function w8(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 B1=()=>{},z1=ds("event-key"),u_=fe.forwardRef((e,t)=>{let{as:n="div",onSelect:r,activeKey:i,role:a,onKeyDown:o}=e,s=w8(e,x8);const l=xw(),c=v.useRef(!1),u=v.useContext(qo),d=v.useContext(s_);let f,h;d&&(a=a||"tablist",i=d.activeKey,f=d.getControlledId,h=d.getControllerId);const p=v.useRef(null),m=w=>{const C=p.current;if(!C)return null;const b=li(C,`[${z1}]:not([aria-disabled=true])`),S=C.querySelector("[aria-selected=true]");if(!S||S!==document.activeElement)return null;const M=b.indexOf(S);if(M===-1)return null;let $=M+w;return $>=b.length&&($=0),$<0&&($=b.length-1),b[$]},g=(w,C)=>{w!=null&&(r==null||r(w,C),u==null||u(w,C))},x=w=>{if(o==null||o(w),!d)return;let C;switch(w.key){case"ArrowLeft":case"ArrowUp":C=m(-1);break;case"ArrowRight":case"ArrowDown":C=m(1);break;default:return}C&&(w.preventDefault(),g(C.dataset[c8("EventKey")]||null,w),c.current=!0,l())};v.useEffect(()=>{if(p.current&&c.current){const w=p.current.querySelector(`[${z1}][aria-selected=true]`);w==null||w.focus()}c.current=!1});const _=dc(t,p);return y.jsx(qo.Provider,{value:g,children:y.jsx(Dd.Provider,{value:{role:a,activeKey:wl(i),getControlledId:f||B1,getControllerId:h||B1},children:y.jsx(n,Object.assign({},s,{onKeyDown:x,ref:_,role:a}))})})});u_.displayName="Nav";const _8=Object.assign(u_,{Item:c_}),Ld=fe.forwardRef(({bsPrefix:e,active:t,disabled:n,eventKey:r,className:i,variant:a,action:o,as:s,...l},c)=>{e=gt(e,"list-group-item");const[u,d]=l_({key:wl(r,l.href),active:t,...l}),f=Hi(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||(o?l.href?"a":"button":"div");return process.env.NODE_ENV!=="production"&&Xa(s||!(!o&&l.href),"`action=false` and `href` should not be used together."),y.jsx(h,{ref:c,...l,...u,onClick:f,className:se(i,e,d.isActive&&"active",n&&"disabled",a&&`${e}-${a}`,o&&`${e}-action`)})});Ld.displayName="ListGroupItem";const d_=fe.forwardRef((e,t)=>{const{className:n,bsPrefix:r,variant:i,horizontal:a,numbered:o,as:s="div",...l}=hg(e,{activeKey:"onSelect"}),c=gt(r,"list-group");let u;return a&&(u=a===!0?"horizontal":`horizontal-${a}`),process.env.NODE_ENV!=="production"&&Xa(!(a&&i==="flush"),'`variant="flush"` and `horizontal` should not be used together.'),y.jsx(_8,{ref:t,...l,as:s,className:se(n,c,i&&`${c}-${i}`,u&&`${c}-${u}`,o&&`${c}-numbered`)})});d_.displayName="ListGroup";const f_=Object.assign(d_,{Item:Ld});var Yc;function W1(e){if((!Yc&&Yc!==0||e)&&us){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),Yc=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Yc}function C8(){return v.useState(null)}function Fh(e){e===void 0&&(e=ls());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function S8(e){const t=v.useRef(e);return t.current=e,t}function T8(e){const t=S8(e);v.useEffect(()=>()=>t.current(),[])}function $8(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const U1=ds("modal-open");class Ng{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:r=!1}={}){this.handleContainerOverflow=n,this.isRTL=r,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return $8(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(Wi(i,r)||"0",10)+t.scrollBarWidth}px`),i.setAttribute(U1,""),Wi(i,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(U1),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 Bh=(e,t)=>us?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 Kp(e,t){const n=jd(),[r,i]=v.useState(()=>Bh(e,n==null?void 0:n.document));if(!r){const a=Bh(e);a&&i(a)}return v.useEffect(()=>{},[t,r]),v.useEffect(()=>{const a=Bh(e);a!==r&&i(a)},[e,r]),r}function k8({children:e,in:t,onExited:n,mountOnEnter:r,unmountOnExit:i}){const a=v.useRef(null),o=v.useRef(t),s=_n(n);v.useEffect(()=>{t?o.current=!0:s(a.current)},[t,s]);const l=dc(a,cs(e)),c=v.cloneElement(e,{ref:l});return t?c:i||!o.current&&r?null:c}const M8=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function E8(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){let{onEnter:t,onEntering:n,onEntered:r,onExit:i,onExiting:a,onExited:o,addEndListener:s,children:l}=e,c=E8(e,M8);const u=v.useRef(null),d=dc(u,cs(l)),f=C=>b=>{C&&u.current&&C(u.current,b)},h=v.useCallback(f(t),[t]),p=v.useCallback(f(n),[n]),m=v.useCallback(f(r),[r]),g=v.useCallback(f(i),[i]),x=v.useCallback(f(a),[a]),_=v.useCallback(f(o),[o]),w=v.useCallback(f(s),[s]);return Object.assign({},c,{nodeRef:u},t&&{onEnter:h},n&&{onEntering:p},r&&{onEntered:m},i&&{onExit:g},a&&{onExiting:x},o&&{onExited:_},s&&{addEndListener:w},{children:typeof l=="function"?(C,b)=>l(C,Object.assign({},b,{ref:d})):v.cloneElement(l,{ref:d})})}const A8=["component"];function R8(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 D8=fe.forwardRef((e,t)=>{let{component:n}=e,r=R8(e,A8);const i=O8(r);return y.jsx(n,Object.assign({ref:t},i))});function j8({in:e,onTransition:t}){const n=v.useRef(null),r=v.useRef(!0),i=_n(t);return C1(()=>{if(!n.current)return;let a=!1;return i({in:e,element:n.current,initial:r.current,isStale:()=>a}),()=>{a=!0}},[e,i]),C1(()=>(r.current=!1,()=>{r.current=!0}),[]),n}function I8({children:e,in:t,onExited:n,onEntered:r,transition:i}){const[a,o]=v.useState(!t);t&&a&&o(!1);const s=j8({in:!!t,onTransition:c=>{const u=()=>{c.isStale()||(c.in?r==null||r(c.element,c.initial):(o(!0),n==null||n(c.element)))};Promise.resolve(i(c)).then(u,d=>{throw c.in||o(!0),d})}}),l=dc(s,cs(e));return a&&!t?null:v.cloneElement(e,{ref:l})}function Jp(e,t,n){return e?y.jsx(D8,Object.assign({},n,{component:e})):t?y.jsx(I8,Object.assign({},n,{transition:t})):y.jsx(k8,Object.assign({},n))}const N8=["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 P8(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 zh;function L8(e){return zh||(zh=new Ng({ownerDocument:e==null?void 0:e.document})),zh}function F8(e){const t=jd(),n=e||L8(t),r=v.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:v.useCallback(i=>{r.current.dialog=i},[]),setBackdropRef:v.useCallback(i=>{r.current.backdrop=i},[])})}const h_=v.forwardRef((e,t)=>{let{show:n=!1,role:r="dialog",className:i,style:a,children:o,backdrop:s=!0,keyboard:l=!0,onBackdropClick:c,onEscapeKeyDown:u,transition:d,runTransition:f,backdropTransition:h,runBackdropTransition:p,autoFocus:m=!0,enforceFocus:g=!0,restoreFocus:x=!0,restoreFocusOptions:_,renderDialog:w,renderBackdrop:C=G=>y.jsx("div",Object.assign({},G)),manager:b,container:S,onShow:M,onHide:$=()=>{},onExit:k,onExited:D,onExiting:T,onEnter:E,onEntering:R,onEntered:j}=e,O=P8(e,N8);const A=jd(),I=Kp(S),F=F8(b),z=hw(),L=pw(n),[H,Y]=v.useState(!n),q=v.useRef(null);v.useImperativeHandle(t,()=>F,[F]),us&&!L&&n&&(q.current=Fh(A==null?void 0:A.document)),n&&H&&Y(!1);const Z=_n(()=>{if(F.add(),B.current=ui(document,"keydown",W),P.current=ui(document,"focus",()=>setTimeout(J),!0),M&&M(),m){var G,oe;const ne=Fh((G=(oe=F.dialog)==null?void 0:oe.ownerDocument)!=null?G:A==null?void 0:A.document);F.dialog&&ne&&!xl(F.dialog,ne)&&(q.current=ne,F.dialog.focus())}}),X=_n(()=>{if(F.remove(),B.current==null||B.current(),P.current==null||P.current(),x){var G;(G=q.current)==null||G.focus==null||G.focus(_),q.current=null}});v.useEffect(()=>{!n||!I||Z()},[n,I,Z]),v.useEffect(()=>{H&&X()},[H,X]),T8(()=>{X()});const J=_n(()=>{if(!g||!z()||!F.isTopModal())return;const G=Fh(A==null?void 0:A.document);F.dialog&&G&&!xl(F.dialog,G)&&F.dialog.focus()}),ee=_n(G=>{G.target===G.currentTarget&&(c==null||c(G),s===!0&&$())}),W=_n(G=>{l&&sw(G)&&F.isTopModal()&&(u==null||u(G),G.defaultPrevented||$())}),P=v.useRef(),B=v.useRef(),V=(...G)=>{Y(!0),D==null||D(...G)};if(!I)return null;const N=Object.assign({role:r,ref:F.setDialogRef,"aria-modal":r==="dialog"?!0:void 0},O,{style:a,className:i,tabIndex:-1});let te=w?w(N):y.jsx("div",Object.assign({},N,{children:fe.cloneElement(o,{role:"document"})}));te=Jp(d,f,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:k,onExiting:T,onExited:V,onEnter:E,onEntering:R,onEntered:j,children:te});let K=null;return s&&(K=C({ref:F.setBackdropRef,onClick:ee}),K=Jp(h,p,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:K})),y.jsx(y.Fragment,{children:Un.createPortal(y.jsxs(y.Fragment,{children:[K,te]}),I)})});h_.displayName="Modal";const p_=Object.assign(h_,{Manager:Ng});function Qp(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function B8(e,t){e.classList?e.classList.add(t):Qp(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function H1(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function z8(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=H1(e.className,t):e.setAttribute("class",H1(e.className&&e.className.baseVal||"",t))}const ho={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class m_ extends Ng{adjustAndStore(t,n,r){const i=n.style[t];n.dataset[t]=i,Wi(n,{[t]:`${parseFloat(Wi(n,t))+r}px`})}restore(t,n){const r=n.dataset[t];r!==void 0&&(delete n.dataset[t],Wi(n,{[t]:r}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(B8(n,"modal-open"),!t.scrollBarWidth)return;const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";li(n,ho.FIXED_CONTENT).forEach(a=>this.adjustAndStore(r,a,t.scrollBarWidth)),li(n,ho.STICKY_CONTENT).forEach(a=>this.adjustAndStore(i,a,-t.scrollBarWidth)),li(n,ho.NAVBAR_TOGGLER).forEach(a=>this.adjustAndStore(i,a,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();z8(n,"modal-open");const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";li(n,ho.FIXED_CONTENT).forEach(a=>this.restore(r,a)),li(n,ho.STICKY_CONTENT).forEach(a=>this.restore(i,a)),li(n,ho.NAVBAR_TOGGLER).forEach(a=>this.restore(i,a))}}let Wh;function g_(e){return Wh||(Wh=new m_(e)),Wh}const v_=fe.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=gt(t,"modal-body"),y.jsx(n,{ref:i,className:se(e,t),...r})));v_.displayName="ModalBody";const Pg=fe.createContext({onHide(){}}),Lg=fe.forwardRef(({bsPrefix:e,className:t,contentClassName:n,centered:r,size:i,fullscreen:a,children:o,scrollable:s,...l},c)=>{e=gt(e,"modal");const u=`${e}-dialog`,d=typeof a=="string"?`${e}-fullscreen-${a}`:`${e}-fullscreen`;return y.jsx("div",{...l,ref:c,className:se(u,t,i&&`${e}-${i}`,r&&`${u}-centered`,s&&`${u}-scrollable`,a&&d),children:y.jsx("div",{className:se(`${e}-content`,n),children:o})})});Lg.displayName="ModalDialog";const b_=fe.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=gt(t,"modal-footer"),y.jsx(n,{ref:i,className:se(e,t),...r})));b_.displayName="ModalFooter";const Fg=fe.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:r,children:i,...a},o)=>{const s=v.useContext(Pg),l=Hi(()=>{s==null||s.onHide(),r==null||r()});return y.jsxs("div",{ref:o,...a,children:[i,n&&y.jsx(Od,{"aria-label":e,variant:t,onClick:l})]})});Fg.displayName="AbstractModalHeader";const y_=fe.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...i},a)=>(e=gt(e,"modal-header"),y.jsx(Fg,{ref:a,...i,className:se(t,e),closeLabel:n,closeButton:r})));y_.displayName="ModalHeader";const W8=vg("h4"),x_=fe.forwardRef(({className:e,bsPrefix:t,as:n=W8,...r},i)=>(t=gt(t,"modal-title"),y.jsx(n,{ref:i,className:se(e,t),...r})));x_.displayName="ModalTitle";function U8(e){return y.jsx(Vi,{...e,timeout:null})}function H8(e){return y.jsx(Vi,{...e,timeout:null})}const w_=fe.forwardRef(({bsPrefix:e,className:t,style:n,dialogClassName:r,contentClassName:i,children:a,dialogAs:o=Lg,"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:m,onShow:g,onHide:x,container:_,autoFocus:w=!0,enforceFocus:C=!0,restoreFocus:b=!0,restoreFocusOptions:S,onEntered:M,onExit:$,onExiting:k,onEnter:D,onEntering:T,onExited:E,backdropClassName:R,manager:j,...O},A)=>{const[I,F]=v.useState({}),[z,L]=v.useState(!1),H=v.useRef(!1),Y=v.useRef(!1),q=v.useRef(null),[Z,X]=C8(),J=Za(A,X),ee=Hi(x),W=Ed();e=gt(e,"modal");const P=v.useMemo(()=>({onHide:ee}),[ee]);function B(){return j||g_({isRTL:W})}function V(de){if(!us)return;const Ce=B().getScrollbarWidth()>0,Ge=de.scrollHeight>ls(de).documentElement.clientHeight;F({paddingRight:Ce&&!Ge?W1():void 0,paddingLeft:!Ce&&Ge?W1():void 0})}const N=Hi(()=>{Z&&V(Z.dialog)});vw(()=>{qp(window,"resize",N),q.current==null||q.current()});const te=()=>{H.current=!0},K=de=>{H.current&&Z&&de.target===Z.dialog&&(Y.current=!0),H.current=!1},G=()=>{L(!0),q.current=lw(Z.dialog,()=>{L(!1)})},oe=de=>{de.target===de.currentTarget&&G()},ne=de=>{if(h==="static"){oe(de);return}if(Y.current||de.target!==de.currentTarget){Y.current=!1;return}x==null||x()},re=de=>{p?m==null||m(de):(de.preventDefault(),h==="static"&&G())},ae=(de,Ce)=>{de&&V(de),D==null||D(de,Ce)},le=de=>{q.current==null||q.current(),$==null||$(de)},ye=(de,Ce)=>{T==null||T(de,Ce),mg(window,"resize",N)},ge=de=>{de&&(de.style.display=""),E==null||E(de),qp(window,"resize",N)},be=v.useCallback(de=>y.jsx("div",{...de,className:se(`${e}-backdrop`,R,!f&&"show")}),[f,R,e]),Me={...n,...I};Me.display="block";const ce=de=>y.jsx("div",{role:"dialog",...de,style:Me,className:se(t,e,z&&`${e}-static`,!f&&"show"),onClick:h?ne:void 0,onMouseUp:K,"data-bs-theme":s,"aria-label":u,"aria-labelledby":l,"aria-describedby":c,children:y.jsx(o,{...O,onMouseDown:te,className:r,contentClassName:i,children:a})});return y.jsx(Pg.Provider,{value:P,children:y.jsx(p_,{show:d,ref:J,backdrop:h,container:_,keyboard:!0,autoFocus:w,enforceFocus:C,restoreFocus:b,restoreFocusOptions:S,onEscapeKeyDown:re,onShow:g,onHide:x,onEnter:ae,onEntering:ye,onEntered:M,onExit:le,onExiting:k,onExited:ge,manager:B(),transition:f?U8:void 0,backdropTransition:f?H8:void 0,renderBackdrop:be,renderDialog:ce})})});w_.displayName="Modal";const Vn=Object.assign(w_,{Body:v_,Header:y_,Title:x_,Footer:b_,Dialog:Lg,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),V8=()=>{};function q8(e,t,{disabled:n,clickTrigger:r}={}){const i=t||V8;Rw(e,i,{disabled:n,clickTrigger:r});const a=_n(o=>{sw(o)&&i(o)});v.useEffect(()=>{if(n||e==null)return;const o=ls(gu(e));let s=(o.defaultView||window).event;const l=ui(o,"keyup",c=>{if(c===s){s=void 0;return}a(c)});return()=>{l()}},[e,n,a])}const __=fe.forwardRef((e,t)=>{const{flip:n,offset:r,placement:i,containerPadding:a,popperConfig:o={},transition:s,runTransition:l}=e,[c,u]=Yp(),[d,f]=Yp(),h=dc(u,t),p=Kp(e.container),m=Kp(e.target),[g,x]=v.useState(!e.show),_=Ow(m,c,Dw({placement:i,enableEvents:!!e.show,containerPadding:a||5,flip:n,offset:r,arrowElement:d,popperConfig:o}));e.show&&g&&x(!1);const w=(...T)=>{x(!0),e.onExited&&e.onExited(...T)},C=e.show||!g;if(q8(c,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!C)return null;const{onExit:b,onExiting:S,onEnter:M,onEntering:$,onEntered:k}=e;let D=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 D=Jp(s,l,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:D,onExit:b,onExiting:S,onExited:w,onEnter:M,onEntering:$,onEntered:k}),p?Un.createPortal(D,p):null});__.displayName="Overlay";const C_=fe.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=gt(t,"popover-header"),y.jsx(n,{ref:i,className:se(e,t),...r})));C_.displayName="PopoverHeader";const Bg=fe.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=gt(t,"popover-body"),y.jsx(n,{ref:i,className:se(e,t),...r})));Bg.displayName="PopoverBody";function S_(e,t){let n=e;return e==="left"?n=t?"end":"start":e==="right"&&(n=t?"start":"end"),n}function T_(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const $_=fe.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:i,body:a,arrowProps:o,hasDoneInitialMeasure:s,popper:l,show:c,...u},d)=>{const f=gt(e,"popover"),h=Ed(),[p]=(t==null?void 0:t.split("-"))||[],m=S_(p,h);let g=r;return c&&!s&&(g={...r,...T_(l==null?void 0:l.strategy)}),y.jsxs("div",{ref:d,role:"tooltip",style:g,"x-placement":p,className:se(n,f,p&&`bs-popover-${m}`),...u,children:[y.jsx("div",{className:"popover-arrow",...o}),a?y.jsx(Bg,{children:i}):i]})});$_.displayName="Popover";const vu=Object.assign($_,{Header:C_,Body:Bg,POPPER_OFFSET:[0,8]}),k_=fe.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:i,arrowProps:a,hasDoneInitialMeasure:o,popper:s,show:l,...c},u)=>{e=gt(e,"tooltip");const d=Ed(),[f]=(t==null?void 0:t.split("-"))||[],h=S_(f,d);let p=r;return l&&!o&&(p={...r,...T_(s==null?void 0:s.strategy)}),y.jsxs("div",{ref:u,style:p,role:"tooltip","x-placement":f,className:se(n,e,`bs-tooltip-${h}`),...c,children:[y.jsx("div",{className:"tooltip-arrow",...a}),y.jsx("div",{className:`${e}-inner`,children:i})]})});k_.displayName="Tooltip";const M_=Object.assign(k_,{TOOLTIP_OFFSET:[0,6]});function Y8(e){const t=v.useRef(null),n=gt(void 0,"popover"),r=gt(void 0,"tooltip"),i=v.useMemo(()=>({name:"offset",options:{offset:()=>{if(e)return e;if(t.current){if(Qp(t.current,n))return vu.POPPER_OFFSET;if(Qp(t.current,r))return M_.TOOLTIP_OFFSET}return[0,0]}}}),[e,n,r]);return[t,[i]]}function G8(e,t){const{ref:n}=e,{ref:r}=t;e.ref=n.__wrapped||(n.__wrapped=i=>n(Au(i))),t.ref=r.__wrapped||(r.__wrapped=i=>r(Au(i)))}const E_=fe.forwardRef(({children:e,transition:t=Vi,popperConfig:n={},rootClose:r=!1,placement:i="top",show:a=!1,...o},s)=>{const l=v.useRef({}),[c,u]=v.useState(null),[d,f]=Y8(o.offset),h=Za(s,d),p=t===!0?Vi:t||void 0,m=Hi(g=>{u(g),n==null||n.onFirstUpdate==null||n.onFirstUpdate(g)});return Ag(()=>{c&&o.target&&(l.current.scheduleUpdate==null||l.current.scheduleUpdate())},[c,o.target]),v.useEffect(()=>{a||u(null)},[a]),y.jsx(__,{...o,ref:h,popperConfig:{...n,modifiers:f.concat(n.modifiers||[]),onFirstUpdate:m},transition:p,rootClose:r,placement:i,show:a,children:(g,{arrowProps:x,popper:_,show:w})=>{var C;G8(g,x);const b=_==null?void 0:_.placement,S=Object.assign(l.current,{state:_==null?void 0:_.state,scheduleUpdate:_==null?void 0:_.update,placement:b,outOfBoundaries:(_==null||(C=_.state)==null||(C=C.modifiersData.hide)==null?void 0:C.isReferenceHidden)||!1,strategy:n.strategy}),M=!!c;return typeof e=="function"?e({...g,placement:b,show:w,...!t&&w&&{className:"show"},popper:S,arrowProps:x,hasDoneInitialMeasure:M}):fe.cloneElement(e,{...g,placement:b,arrowProps:x,popper:S,hasDoneInitialMeasure:M,className:se(e.props.className,!t&&w&&"show"),style:{...e.props.style,...g.style}})}})});E_.displayName="Overlay";function Z8(e){return e&&typeof e=="object"?e:{show:e,hide:e}}function V1(e,t,n){const[r]=t,i=r.currentTarget,a=r.relatedTarget||r.nativeEvent[n];(!a||a!==i)&&!xl(i,a)&&e(...t)}xe.oneOf(["click","hover","focus"]);const O_=({trigger:e=["hover","focus"],overlay:t,children:n,popperConfig:r={},show:i,defaultShow:a=!1,onToggle:o,delay:s,placement:l,flip:c=l&&l.indexOf("auto")!==-1,...u})=>{const d=v.useRef(null),f=Za(d,cs(n)),h=Ek(),p=v.useRef(""),[m,g]=tw(i,a,o),x=Z8(s),{onFocus:_,onBlur:w,onClick:C}=typeof n!="function"?fe.Children.only(n).props:{},b=O=>{f(Au(O))},S=v.useCallback(()=>{if(h.clear(),p.current="show",!x.show){g(!0);return}h.set(()=>{p.current==="show"&&g(!0)},x.show)},[x.show,g,h]),M=v.useCallback(()=>{if(h.clear(),p.current="hide",!x.hide){g(!1);return}h.set(()=>{p.current==="hide"&&g(!1)},x.hide)},[x.hide,g,h]),$=v.useCallback((...O)=>{S(),_==null||_(...O)},[S,_]),k=v.useCallback((...O)=>{M(),w==null||w(...O)},[M,w]),D=v.useCallback((...O)=>{g(!m),C==null||C(...O)},[C,g,m]),T=v.useCallback((...O)=>{V1(S,O,"fromElement")},[S]),E=v.useCallback((...O)=>{V1(M,O,"toElement")},[M]),R=e==null?[]:[].concat(e),j={ref:b};return R.indexOf("click")!==-1&&(j.onClick=D),R.indexOf("focus")!==-1&&(j.onFocus=$,j.onBlur=k),R.indexOf("hover")!==-1&&(process.env.NODE_ENV!=="production"&&Xa(R.length>1,'[react-bootstrap] Specifying only the `"hover"` trigger limits the visibility of the overlay to just mouse users. Consider also including the `"focus"` trigger so that touch and keyboard only users can see the overlay as well.'),j.onMouseOver=T,j.onMouseOut=E),y.jsxs(y.Fragment,{children:[typeof n=="function"?n(j):v.cloneElement(n,j),y.jsx(E_,{...u,show:m,onHide:M,flip:c,placement:l,popperConfig:r,target:d.current,children:t})]})},zg=fe.forwardRef(({bsPrefix:e,variant:t,animation:n="border",size:r,as:i="div",className:a,...o},s)=>{e=gt(e,"spinner");const l=`${e}-${n}`;return y.jsx(i,{ref:s,...o,className:se(a,l,r&&`${l}-${r}`,t&&`text-${t}`)})});zg.displayName="Spinner";var A_={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},q1=v.createContext&&v.createContext(A_),X8=["attr","size","title"];function K8(e,t){if(e==null)return{};var n=J8(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function J8(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 Nu(){return Nu=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},Nu.apply(this,arguments)}function Y1(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 Pu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Y1(Object(n),!0).forEach(function(r){Q8(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Q8(e,t,n){return t=eE(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eE(e){var t=tE(e,"string");return typeof t=="symbol"?t:t+""}function tE(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 R_(e){return e&&e.map((t,n)=>v.createElement(t.tag,Pu({key:n},t.attr),R_(t.child)))}function pt(e){return t=>v.createElement(nE,Nu({attr:Pu({},e.attr)},t),R_(e.child))}function nE(e){var t=n=>{var{attr:r,size:i,title:a}=e,o=K8(e,X8),s=i||n.size||"1em",l;return n.className&&(l=n.className),e.className&&(l=(l?l+" ":"")+e.className),v.createElement("svg",Nu({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,o,{className:l,style:Pu(Pu({color:e.color||n.color},n.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),a&&v.createElement("title",null,a),e.children)};return q1!==void 0?v.createElement(q1.Consumer,null,n=>t(n)):t(A_)}function rE(e){return pt({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 fc(e){return pt({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 iE(e){return pt({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 aE(e){return pt({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 oE(e){return pt({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 sE(e){return pt({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 lE(e){return pt({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 cE(e){return pt({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 D_(e){return pt({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 uE(e){return pt({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 dE(e){return pt({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 fE(e){return pt({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 hE(e){return pt({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 pE(e){return pt({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 mE(e){return pt({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 gE(e){return pt({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 vE(e){return pt({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 bE(e){return pt({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 yE(e){return pt({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 xE(e){return pt({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 wE(e){return pt({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 _E(e){return pt({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 CE(e){return pt({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 SE(e){return pt({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 j_(e){return pt({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 TE(e){return pt({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 I_(e){return pt({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 $E(e){return pt({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 kE(e){return pt({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 ME(e){return pt({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 rn=v.createContext({cookieDomain:"",axiosOptions:{},language:"",localizationContext:{},texts:{},ProjectIconComponent:{},chartColorPalette:void 0}),N_=v.createContext({show:!1,text:"",textSm:!1,showConfirm:(e,t)=>{},hideConfirm:()=>{}}),P_=v.createContext({isShown:!1,text:"",hidePrompt:()=>{},showPrompt:()=>{},resolveRef:{current:()=>{}},options:{input:"textarea",type:"text"},setOptions:()=>{}}),L_=()=>{const e=Ie.c(12),{isShown:t,text:n,showPrompt:r,hidePrompt:i,resolveRef:a,setOptions:o}=v.useContext(P_);let s;e[0]!==i||e[1]!==a?(s=f=>{i(),a.current(f)},e[0]=i,e[1]=a,e[2]=s):s=e[2];const l=s;let c;e[3]!==a||e[4]!==o||e[5]!==r?(c=async(f,h)=>(o(p=>({...p,...h})),r(f),new Promise(p=>{a.current=p})),e[3]=a,e[4]=o,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 EE={data:""},OE=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||EE},AE=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,RE=/\/\*[^]*?\*\/| +/g,G1=/\n+/g,Pi=(e,t)=>{let n="",r="",i="";for(let a in e){let o=e[a];a[0]=="@"?a[1]=="i"?n=a+" "+o+";":r+=a[1]=="f"?Pi(o,a):a+"{"+Pi(o,a[1]=="k"?"":t)+"}":typeof o=="object"?r+=Pi(o,t?t.replace(/([^,])+/g,s=>a.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,s):s?s+" "+l:l)):a):o!=null&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=Pi.p?Pi.p(a,o):a+":"+o+";")}return n+(t&&i?t+"{"+i+"}":i)+r},ti={},F_=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+F_(e[n]);return t}return e},DE=(e,t,n,r,i)=>{let a=F_(e),o=ti[a]||(ti[a]=(l=>{let c=0,u=11;for(;c<l.length;)u=101*u+l.charCodeAt(c++)>>>0;return"go"+u})(a));if(!ti[o]){let l=a!==e?e:(c=>{let u,d,f=[{}];for(;u=AE.exec(c.replace(RE,""));)u[4]?f.shift():u[3]?(d=u[3].replace(G1," ").trim(),f.unshift(f[0][d]=f[0][d]||{})):f[0][u[1]]=u[2].replace(G1," ").trim();return f[0]})(e);ti[o]=Pi(i?{["@keyframes "+o]:l}:l,n?"":"."+o)}let s=n&&ti.g?ti.g:null;return n&&(ti.g=ti[o]),((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)})(ti[o],t,r,s),o},jE=(e,t,n)=>e.reduce((r,i,a)=>{let o=t[a];if(o&&o.call){let s=o(n),l=s&&s.props&&s.props.className||/^go/.test(s)&&s;o=l?"."+l:s&&typeof s=="object"?s.props?"":Pi(s,""):s===!1?"":s}return r+i+(o??"")},"");function Fd(e){let t=this||{},n=e.call?e(t.p):e;return DE(n.unshift?n.raw?jE(n,[].slice.call(arguments,1),t.p):n.reduce((r,i)=>Object.assign(r,i&&i.call?i(t.p):i),{}):n,OE(t.target),t.g,t.o,t.k)}let B_,em,tm;Fd.bind({g:1});let yi=Fd.bind({k:1});function IE(e,t,n,r){Pi.p=t,B_=e,em=n,tm=r}function na(e,t){let n=this||{};return function(){let r=arguments;function i(a,o){let s=Object.assign({},a),l=s.className||i.className;n.p=Object.assign({theme:em&&em()},s),n.o=/ *go\d+/.test(l),s.className=Fd.apply(n,r)+(l?" "+l:"");let c=e;return e[0]&&(c=s.as||e,delete s.as),tm&&c[0]&&tm(s),B_(c,s)}return i}}var NE=e=>typeof e=="function",Lu=(e,t)=>NE(e)?e(t):e,PE=(()=>{let e=0;return()=>(++e).toString()})(),z_=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),LE=20,Wg="default",W_=(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(o=>o.id===t.toast.id?{...o,...t.toast}:o)};case 2:let{toast:r}=t;return W_(e,{type:e.toasts.find(o=>o.id===r.id)?1:0,toast:r});case 3:let{toastId:i}=t;return{...e,toasts:e.toasts.map(o=>o.id===i||i===void 0?{...o,dismissed:!0,visible:!1}:o)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(o=>o.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let a=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(o=>({...o,pauseDuration:o.pauseDuration+a}))}}},bu=[],U_={toasts:[],pausedAt:void 0,settings:{toastLimit:LE}},Ir={},H_=(e,t=Wg)=>{Ir[t]=W_(Ir[t]||U_,e),bu.forEach(([n,r])=>{n===t&&r(Ir[t])})},V_=e=>Object.keys(Ir).forEach(t=>H_(e,t)),FE=e=>Object.keys(Ir).find(t=>Ir[t].toasts.some(n=>n.id===e)),Bd=(e=Wg)=>t=>{H_(t,e)},BE={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},zE=(e={},t=Wg)=>{let[n,r]=v.useState(Ir[t]||U_),i=v.useRef(Ir[t]);v.useEffect(()=>(i.current!==Ir[t]&&r(Ir[t]),bu.push([t,r]),()=>{let o=bu.findIndex(([s])=>s===t);o>-1&&bu.splice(o,1)}),[t]);let a=n.toasts.map(o=>{var s,l,c;return{...e,...e[o.type],...o,removeDelay:o.removeDelay||((s=e[o.type])==null?void 0:s.removeDelay)||(e==null?void 0:e.removeDelay),duration:o.duration||((l=e[o.type])==null?void 0:l.duration)||(e==null?void 0:e.duration)||BE[o.type],style:{...e.style,...(c=e[o.type])==null?void 0:c.style,...o.style}}});return{...n,toasts:a}},WE=(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)||PE()}),hc=e=>(t,n)=>{let r=WE(t,e,n);return Bd(r.toasterId||FE(r.id))({type:2,toast:r}),r.id},pn=(e,t)=>hc("blank")(e,t);pn.error=hc("error");pn.success=hc("success");pn.loading=hc("loading");pn.custom=hc("custom");pn.dismiss=(e,t)=>{let n={type:3,toastId:e};t?Bd(t)(n):V_(n)};pn.dismissAll=e=>pn.dismiss(void 0,e);pn.remove=(e,t)=>{let n={type:4,toastId:e};t?Bd(t)(n):V_(n)};pn.removeAll=e=>pn.remove(void 0,e);pn.promise=(e,t,n)=>{let r=pn.loading(t.loading,{...n,...n==null?void 0:n.loading});return typeof e=="function"&&(e=e()),e.then(i=>{let a=t.success?Lu(t.success,i):void 0;return a?pn.success(a,{id:r,...n,...n==null?void 0:n.success}):pn.dismiss(r),i}).catch(i=>{let a=t.error?Lu(t.error,i):void 0;a?pn.error(a,{id:r,...n,...n==null?void 0:n.error}):pn.dismiss(r)}),e};var UE=1e3,HE=(e,t="default")=>{let{toasts:n,pausedAt:r}=zE(e,t),i=v.useRef(new Map).current,a=v.useCallback((d,f=UE)=>{if(i.has(d))return;let h=setTimeout(()=>{i.delete(d),o({type:4,toastId:d})},f);i.set(d,h)},[]);v.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&&pn.dismiss(h.id);return}return setTimeout(()=>pn.dismiss(h.id,t),p)});return()=>{f.forEach(h=>h&&clearTimeout(h))}},[n,r,t]);let o=v.useCallback(Bd(t),[t]),s=v.useCallback(()=>{o({type:5,time:Date.now()})},[o]),l=v.useCallback((d,f)=>{o({type:1,toast:{id:d,height:f}})},[o]),c=v.useCallback(()=>{r&&o({type:6,time:Date.now()})},[r,o]),u=v.useCallback((d,f)=>{let{reverseOrder:h=!1,gutter:p=8,defaultPosition:m}=f||{},g=n.filter(w=>(w.position||m)===(d.position||m)&&w.height),x=g.findIndex(w=>w.id===d.id),_=g.filter((w,C)=>C<x&&w.visible).length;return g.filter(w=>w.visible).slice(...h?[_+1]:[0,_]).reduce((w,C)=>w+(C.height||0)+p,0)},[n]);return v.useEffect(()=>{n.forEach(d=>{if(d.dismissed)a(d.id,d.removeDelay);else{let f=i.get(d.id);f&&(clearTimeout(f),i.delete(d.id))}})},[n,a]),{toasts:n,handlers:{updateHeight:l,startPause:s,endPause:c,calculateOffset:u}}},VE=yi`
45
+ from {
46
+ transform: scale(0) rotate(45deg);
47
+ opacity: 0;
48
+ }
49
+ to {
50
+ transform: scale(1) rotate(45deg);
51
+ opacity: 1;
52
+ }`,qE=yi`
53
+ from {
54
+ transform: scale(0);
55
+ opacity: 0;
56
+ }
57
+ to {
58
+ transform: scale(1);
59
+ opacity: 1;
60
+ }`,YE=yi`
61
+ from {
62
+ transform: scale(0) rotate(90deg);
63
+ opacity: 0;
64
+ }
65
+ to {
66
+ transform: scale(1) rotate(90deg);
67
+ opacity: 1;
68
+ }`,GE=na("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: ${VE} 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: ${qE} 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: ${YE} 0.15s ease-out forwards;
98
+ animation-delay: 180ms;
99
+ transform: rotate(90deg);
100
+ }
101
+ `,ZE=yi`
102
+ from {
103
+ transform: rotate(0deg);
104
+ }
105
+ to {
106
+ transform: rotate(360deg);
107
+ }
108
+ `,XE=na("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: ${ZE} 1s linear infinite;
117
+ `,KE=yi`
118
+ from {
119
+ transform: scale(0) rotate(45deg);
120
+ opacity: 0;
121
+ }
122
+ to {
123
+ transform: scale(1) rotate(45deg);
124
+ opacity: 1;
125
+ }`,JE=yi`
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
+ }`,QE=na("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: ${KE} 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: ${JE} 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
+ `,eO=na("div")`
167
+ position: absolute;
168
+ `,tO=na("div")`
169
+ position: relative;
170
+ display: flex;
171
+ justify-content: center;
172
+ align-items: center;
173
+ min-width: 20px;
174
+ min-height: 20px;
175
+ `,nO=yi`
176
+ from {
177
+ transform: scale(0.6);
178
+ opacity: 0.4;
179
+ }
180
+ to {
181
+ transform: scale(1);
182
+ opacity: 1;
183
+ }`,rO=na("div")`
184
+ position: relative;
185
+ transform: scale(0.6);
186
+ opacity: 0.4;
187
+ min-width: 20px;
188
+ animation: ${nO} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
189
+ forwards;
190
+ `,iO=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?fe.createElement(rO,null,t):t:n==="blank"?null:fe.createElement(tO,null,fe.createElement(XE,{...r}),n!=="loading"&&fe.createElement(eO,null,n==="error"?fe.createElement(GE,{...r}):fe.createElement(QE,{...r})))},aO=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
+ `,oO=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
+ `,sO="0%{opacity:0;} 100%{opacity:1;}",lO="0%{opacity:1;} 100%{opacity:0;}",cO=na("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
+ `,uO=na("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
+ `,dO=(e,t)=>{let n=e.includes("top")?1:-1,[r,i]=z_()?[sO,lO]:[aO(n),oO(n)];return{animation:t?`${yi(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${yi(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},fO=fe.memo(({toast:e,position:t,style:n,children:r})=>{let i=e.height?dO(e.position||t||"top-center",e.visible):{opacity:0},a=fe.createElement(iO,{toast:e}),o=fe.createElement(uO,{...e.ariaProps},Lu(e.message,e));return fe.createElement(cO,{className:e.className,style:{...i,...n,...e.style}},typeof r=="function"?r({icon:a,message:o}):fe.createElement(fe.Fragment,null,a,o))});IE(fe.createElement);var hO=({id:e,className:t,style:n,onHeightUpdate:r,children:i})=>{let a=fe.useCallback(o=>{if(o){let s=()=>{let l=o.getBoundingClientRect().height;r(e,l)};s(),new MutationObserver(s).observe(o,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return fe.createElement("div",{ref:a,className:t,style:n},i)},pO=(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:z_()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...i}},mO=Fd`
216
+ z-index: 9999;
217
+ > * {
218
+ pointer-events: auto;
219
+ }
220
+ `,Gc=16,gO=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:i,toasterId:a,containerStyle:o,containerClassName:s})=>{let{toasts:l,handlers:c}=HE(n,a);return fe.createElement("div",{"data-rht-toaster":a||"",style:{position:"fixed",zIndex:9999,top:Gc,left:Gc,right:Gc,bottom:Gc,pointerEvents:"none",...o},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=pO(d,f);return fe.createElement(hO,{id:u.id,key:u.id,onHeightUpdate:c.updateHeight,className:u.visible?mO:"",style:h},u.type==="custom"?Lu(u.message,u):i?i(u):fe.createElement(fO,{toast:u,position:d}))}))},po=pn;const zd=v.createContext({isLoading:!1,startLoading:e=>{},stopLoading:e=>{}});var nm;(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"})(nm||(nm={}));const q_=nm;var rm;(function(e){e[e.Odebrano=-2]="Odebrano",e[e.Zamitnuto=-1]="Zamitnuto",e[e.Nevyrizeno=0]="Nevyrizeno",e[e.Schvaleno=1]="Schvaleno"})(rm||(rm={}));const vO=rm,Y_=v.createContext({user:null,userLoginState:{state:q_.LOGGED_OUT,user:null},loginUser:()=>Promise.resolve(!0),logoutUser:()=>{}}),Wd=v.createContext({useMsal:!1,msalInstance:null,msalScopes:[],msalExtraScopes:[],getToken:async()=>null}),G_=v.createContext({delegation:null,setDelegation:()=>{},availableDelegations:null,setAvailableDelegations:()=>{},refreshAvailableDelegations:async()=>{}}),Fu=e=>e==null?!0:!(typeof e=="object"||typeof e=="function"),Z_=e=>{Fu(e)||Object.keys(e).forEach(t=>{const n=e[t];if(Fu(n))return;const r=Object.keys(n);r.includes("id")&&r.length===1&&n.id===null?e[t]=null:Z_(n)})},X_=e=>Object.values(e).every(t=>t===null),bO=e=>{const t={};return Object.entries(e).forEach(([n,r])=>{r&&typeof r=="object"&&X_(r)?t[n]=null:t[n]=r}),t},Ud=e=>e&&e.errorFields&&e.errorFields.length>0?e.errorFields.map(t=>({name:t.name.split(".").map(r=>`${r.charAt(0).toLowerCase()}${r.slice(1)}`).join("."),errors:t.errors})):[],K_=async e=>{if(e.type==null||!e.type.includes("json"))return[];try{const t=await e.text(),n=JSON.parse(t);return Ud(n)}catch(t){return console.error("Error parsing blob response:",t),[]}},yO=(e,t)=>{Ud(t.response.data).forEach(r=>{e.setError(r.name,{message:r.errors,type:"server"},{shouldFocus:!0}),Fu(e.getValues(r.name))||e.setError(`${r.name}.id`,{message:r.errors,type:"server"},{shouldFocus:!0})})},J_=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},Q_=e=>{const t=Ie.c(35);let n,r,i,a,o,s,l,c,u;t[0]!==e?({heading:a,content:r,placement:o,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]=a,t[5]=o,t[6]=s,t[7]=l,t[8]=c,t[9]=u):(n=t[1],r=t[2],i=t[3],a=t[4],o=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 m;t[14]!==s||t[15]!==c?(m=se("luminus-popover",{"luminus-popover-sm":c},s),t[14]=s,t[15]=c,t[16]=m):m=t[16];let g;t[17]!==a?(g=a&&y.jsx(vu.Header,{children:typeof a=="string"?y.jsx(In,{variant:"h6",className:"text-primary",children:a}):a}),t[17]=a,t[18]=g):g=t[18];let x;t[19]!==r?(x=y.jsx(vu.Body,{children:r}),t[19]=r,t[20]=x):x=t[20];let _;t[21]!==m||t[22]!==g||t[23]!==x?(_=y.jsxs(vu,{className:m,onClick:xO,children:[g,x]}),t[21]=m,t[22]=g,t[23]=x,t[24]=_):_=t[24];const w=l.controlled?l.isOpen:void 0;let C;t[25]!==l?(C=l.controlled?S=>l.setIsOpen(S):void 0,t[25]=l,t[26]=C):C=t[26];let b;return t[27]!==n||t[28]!==i||t[29]!==o||t[30]!==_||t[31]!==w||t[32]!==C||t[33]!==p?(b=y.jsx(O_,{placement:o,overlay:_,trigger:p,rootClose:!0,show:w,onToggle:C,delay:i,children:n}),t[27]=n,t[28]=i,t[29]=o,t[30]=_,t[31]=w,t[32]=C,t[33]=p,t[34]=b):b=t[34],b};function xO(e){return e.stopPropagation()}const wO="_h1_14r4v_1",_O="_h3_14r4v_8",CO="_h6_14r4v_15",SO="_subtitle_14r4v_22",TO="_body_14r4v_29",$O="_body2_14r4v_36",kO="_caption_14r4v_43",MO="_form-label_14r4v_50",Oi={h1:wO,h3:_O,h6:CO,subtitle:SO,body:TO,body2:$O,caption:kO,formLabel:MO},EO=e=>{const t=Ie.c(42),{variant:n,className:r,children:i}=e;switch(n){case"h1":{let a;t[0]!==r?(a=se("luminus-text-primary luminus-h1",Oi.h1,r),t[0]=r,t[1]=a):a=t[1];let o;return t[2]!==i||t[3]!==a?(o=y.jsx("h1",{className:a,children:i}),t[2]=i,t[3]=a,t[4]=o):o=t[4],o}case"h3":{let a;t[5]!==r?(a=se("luminus-text luminus-h3",Oi.h3,r),t[5]=r,t[6]=a):a=t[6];let o;return t[7]!==i||t[8]!==a?(o=y.jsx("h3",{className:a,children:i}),t[7]=i,t[8]=a,t[9]=o):o=t[9],o}case"h6":{let a;t[10]!==r?(a=se("luminus-text luminus-h6",Oi.h6,r),t[10]=r,t[11]=a):a=t[11];let o;return t[12]!==i||t[13]!==a?(o=y.jsx("h6",{className:a,children:i}),t[12]=i,t[13]=a,t[14]=o):o=t[14],o}case"subtitle":{let a;t[15]!==r?(a=se("luminus-text luminus-subtitle",Oi.subtitle,r),t[15]=r,t[16]=a):a=t[16];let o;return t[17]!==i||t[18]!==a?(o=y.jsx("div",{className:a,children:i}),t[17]=i,t[18]=a,t[19]=o):o=t[19],o}case"body":{let a;t[20]!==r?(a=se("luminus-text luminus-body",Oi.body,r),t[20]=r,t[21]=a):a=t[21];let o;return t[22]!==i||t[23]!==a?(o=y.jsx("div",{className:a,children:i}),t[22]=i,t[23]=a,t[24]=o):o=t[24],o}case"body2":{let a;t[25]!==r?(a=se("luminus-text luminus-body2",Oi.body2,r),t[25]=r,t[26]=a):a=t[26];let o;return t[27]!==i||t[28]!==a?(o=y.jsx("div",{className:a,children:i}),t[27]=i,t[28]=a,t[29]=o):o=t[29],o}case"caption":{let a;t[30]!==r?(a=se("luminus-text-muted luminus-caption",Oi.caption,r),t[30]=r,t[31]=a):a=t[31];let o;return t[32]!==i||t[33]!==a?(o=y.jsx("div",{className:a,children:i}),t[32]=i,t[33]=a,t[34]=o):o=t[34],o}case"form-label":{let a;t[35]!==r?(a=se("luminus-text luminus-form-label",Oi.formLabel,r),t[35]=r,t[36]=a):a=t[36];let o;return t[37]!==i||t[38]!==a?(o=y.jsx("div",{className:a,children:i}),t[37]=i,t[38]=a,t[39]=o):o=t[39],o}default:{let a;return t[40]!==i?(a=y.jsx(y.Fragment,{children:i}),t[40]=i,t[41]=a):a=t[41],a}}},In=e=>{const t=Ie.c(4),{variant:n,className:r,children:i}=e;let a;return t[0]!==i||t[1]!==r||t[2]!==n?(a=y.jsx(EO,{variant:n,className:r,children:i}),t[0]=i,t[1]=r,t[2]=n,t[3]=a):a=t[3],a},Ug=e=>{const t=Ie.c(7),{text:n,placement:r,children:i,delay:a}=e;let o;t[0]!==n?(o=y.jsx(In,{variant:"body2",className:"text-center",children:n}),t[0]=n,t[1]=o):o=t[1];let s;return t[2]!==i||t[3]!==a||t[4]!==r||t[5]!==o?(s=y.jsx(Q_,{content:o,placement:r,delay:a,small:!0,children:i}),t[2]=i,t[3]=a,t[4]=r,t[5]=o,t[6]=s):s=t[6],s},e4=e=>e.length<300?e:e.substring(0,300)+"...",Go=e=>e<1024?`${e.toFixed(2)} bytes`:e>=1024&&e<1048576?`${(e/1024).toFixed(1)} kB`:`${(e/1048576).toFixed(1)} MB`;function Hg(e=" ",...t){return t.filter(n=>n!=null&&n.length>0).join(e)}const im=(e,t)=>e.map(n=>`&${t}=${n}`).join("").substring(1),OO=(e,t)=>e===null?null:e.length<=t?e:e.slice(0,t)+"…";function AO(e){return e==null?"":fg(Md(e),"dd.MM.yyyy")}function Hd(e){return(e==null?void 0:e.toString().split("T")[0])??""}function RO(e){return e==null?"":fg(Md(e),"dd.MM.yyyy HH:mm")}function DO(e){return e&&e.charAt(0).toUpperCase()+e.slice(1)}const jO=(e,t)=>Hg(" ",e?`${e},`:void 0,t),IO=(e,t)=>`${t}${e!=null?` (${e})`:""}`,NO=(e,t)=>`[${e??""}] ${t??""}`,t4=e=>decodeURIComponent(atob(e).split("").map(t=>"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)).join("")),n4=e=>{const t=Md(e);return!Number.isNaN(t.getTime())};function PO(){const e=new Date,t=new Date(e);return t.setHours(24,0,0,0),t.getTime()-e.getTime()}function LO(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function FO(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 BO(e,t){const n=new Date(e),r=new Date(t);return n.getTime()-r.getTime()}function zO(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 r4(e=new Date){const t=new Date(e);return t.setUTCDate(1),t}function i4(e=new Date){return _T(e)}function WO(e){const t=new Date;return t.setUTCMonth(t.getUTCMonth()+e),r4(t)}function UO(e){const t=new Date;return t.setUTCMonth(t.getUTCMonth()+e),i4(t)}function HO(e){const t=e??new Date().getFullYear(),n=new Date(t,0,1);return n.setMinutes(n.getMinutes()-n.getTimezoneOffset()),n}function VO(e){const t=e??new Date().getFullYear(),n=new Date(t,11,31);return n.setMinutes(n.getMinutes()-n.getTimezoneOffset()),n}function qO(e){return Hd(e.toISOString())}function a4(e){const t=/filename\*?=(?:UTF-8''|")?(.*?)(?:''|")?(?:;|$)/i,n=e.match(t);if(n&&n[1]){let r=n[1];const i=/=\?([^?]+)\?([BbQq])\?([^?]+)\?=/,a=r.match(i);if(a){const o=a[2].toUpperCase(),s=a[3];try{return o==="B"?r=t4(s):o==="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(o){return console.error("Error decoding filename:",o),r}}return null}function Bu(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 YO=["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"],GO=["pdf","txt","html","xml","jpg","jpeg","png","gif","webp","svg","bmp","ico","mp3","wav","ogg","m4a","mp4","webm","ogv"],o4=e=>YO.includes(e.type),s4=e=>GO.includes(e.toLowerCase());function ZO(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 a=e.headers.get("Content-disposition");typeof a=="string"&&a.length>0&&(n=a4(e.headers.get("Content-disposition"))??n)}const r=o4(e.data),i=(t==null?void 0:t.tryToOpen)===void 0?localStorage.getItem("file-download-try-opening")!=="false":t.tryToOpen;Bu(e.data,n,r?i:!1)}function Zo(e,t=Zo.characters){return e.replace(/[^A-Za-z0-9]/g,function(n){return t[n]||n})}Zo.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 am=(e,t)=>t?e?Zo(e).toLowerCase().includes(Zo(t.toLowerCase())):!1:!0,l4=(e,t)=>t?e?Zo(e).toLowerCase().startsWith(Zo(t.toLowerCase())):!1:!0,Vg=(e,t,n)=>{const r=localStorage.getItem("search-use-asterisk")!=="false",i=n!=null&&n.trimSpaces?t==null?void 0:t.replaceAll(" ",""):t,a=n!=null&&n.trimSpaces?e==null?void 0:e.replaceAll(" ",""):e;return i?r?i.startsWith("*")?am(a,i.substring(1)):l4(a,i):am(a,i):!0};function c4(e,t){return function(){return e.apply(t,arguments)}}const{toString:XO}=Object.prototype,{getPrototypeOf:qg}=Object,{iterator:Vd,toStringTag:u4}=Symbol,qd=(e=>t=>{const n=XO.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Mr=e=>(e=e.toLowerCase(),t=>qd(t)===e),Yd=e=>t=>typeof t===e,{isArray:fs}=Array,Xo=Yd("undefined");function pc(e){return e!==null&&!Xo(e)&&e.constructor!==null&&!Xo(e.constructor)&&Gn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const d4=Mr("ArrayBuffer");function KO(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&d4(e.buffer),t}const JO=Yd("string"),Gn=Yd("function"),f4=Yd("number"),mc=e=>e!==null&&typeof e=="object",QO=e=>e===!0||e===!1,yu=e=>{if(qd(e)!=="object")return!1;const t=qg(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(u4 in e)&&!(Vd in e)},e7=e=>{if(!mc(e)||pc(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},t7=Mr("Date"),n7=Mr("File"),r7=Mr("Blob"),i7=Mr("FileList"),a7=e=>mc(e)&&Gn(e.pipe),o7=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Gn(e.append)&&((t=qd(e))==="formdata"||t==="object"&&Gn(e.toString)&&e.toString()==="[object FormData]"))},s7=Mr("URLSearchParams"),[l7,c7,u7,d7]=["ReadableStream","Request","Response","Headers"].map(Mr),f7=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function gc(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),fs(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(pc(e))return;const a=n?Object.getOwnPropertyNames(e):Object.keys(e),o=a.length;let s;for(r=0;r<o;r++)s=a[r],t.call(null,e[s],s,e)}}function h4(e,t){if(pc(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 _a=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,p4=e=>!Xo(e)&&e!==_a;function om(){const{caseless:e,skipUndefined:t}=p4(this)&&this||{},n={},r=(i,a)=>{const o=e&&h4(n,a)||a;yu(n[o])&&yu(i)?n[o]=om(n[o],i):yu(i)?n[o]=om({},i):fs(i)?n[o]=i.slice():(!t||!Xo(i))&&(n[o]=i)};for(let i=0,a=arguments.length;i<a;i++)arguments[i]&&gc(arguments[i],r);return n}const h7=(e,t,n,{allOwnKeys:r}={})=>(gc(t,(i,a)=>{n&&Gn(i)?e[a]=c4(i,n):e[a]=i},{allOwnKeys:r}),e),p7=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),m7=(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)},g7=(e,t,n,r)=>{let i,a,o;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&qg(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},v7=(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},b7=e=>{if(!e)return null;if(fs(e))return e;let t=e.length;if(!f4(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},y7=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&qg(Uint8Array)),x7=(e,t)=>{const r=(e&&e[Vd]).call(e);let i;for(;(i=r.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},w7=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},_7=Mr("HTMLFormElement"),C7=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),Z1=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),S7=Mr("RegExp"),m4=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};gc(n,(i,a)=>{let o;(o=t(i,a,e))!==!1&&(r[a]=o||i)}),Object.defineProperties(e,r)},T7=e=>{m4(e,(t,n)=>{if(Gn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Gn(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+"'")})}})},$7=(e,t)=>{const n={},r=i=>{i.forEach(a=>{n[a]=!0})};return fs(e)?r(e):r(String(e).split(t)),n},k7=()=>{},M7=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function E7(e){return!!(e&&Gn(e.append)&&e[u4]==="FormData"&&e[Vd])}const O7=e=>{const t=new Array(10),n=(r,i)=>{if(mc(r)){if(t.indexOf(r)>=0)return;if(pc(r))return r;if(!("toJSON"in r)){t[i]=r;const a=fs(r)?[]:{};return gc(r,(o,s)=>{const l=n(o,i+1);!Xo(l)&&(a[s]=l)}),t[i]=void 0,a}}return r};return n(e,0)},A7=Mr("AsyncFunction"),R7=e=>e&&(mc(e)||Gn(e))&&Gn(e.then)&&Gn(e.catch),g4=((e,t)=>e?setImmediate:t?((n,r)=>(_a.addEventListener("message",({source:i,data:a})=>{i===_a&&a===n&&r.length&&r.shift()()},!1),i=>{r.push(i),_a.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Gn(_a.postMessage)),D7=typeof queueMicrotask<"u"?queueMicrotask.bind(_a):typeof process<"u"&&process.nextTick||g4,j7=e=>e!=null&&Gn(e[Vd]),ie={isArray:fs,isArrayBuffer:d4,isBuffer:pc,isFormData:o7,isArrayBufferView:KO,isString:JO,isNumber:f4,isBoolean:QO,isObject:mc,isPlainObject:yu,isEmptyObject:e7,isReadableStream:l7,isRequest:c7,isResponse:u7,isHeaders:d7,isUndefined:Xo,isDate:t7,isFile:n7,isBlob:r7,isRegExp:S7,isFunction:Gn,isStream:a7,isURLSearchParams:s7,isTypedArray:y7,isFileList:i7,forEach:gc,merge:om,extend:h7,trim:f7,stripBOM:p7,inherits:m7,toFlatObject:g7,kindOf:qd,kindOfTest:Mr,endsWith:v7,toArray:b7,forEachEntry:x7,matchAll:w7,isHTMLForm:_7,hasOwnProperty:Z1,hasOwnProp:Z1,reduceDescriptors:m4,freezeMethods:T7,toObjectSet:$7,toCamelCase:C7,noop:k7,toFiniteNumber:M7,findKey:h4,global:_a,isContextDefined:p4,isSpecCompliantForm:E7,toJSONObject:O7,isAsyncFn:A7,isThenable:R7,setImmediate:g4,asap:D7,isIterable:j7};function st(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)}ie.inherits(st,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:ie.toJSONObject(this.config),code:this.code,status:this.status}}});const v4=st.prototype,b4={};["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=>{b4[e]={value:e}});Object.defineProperties(st,b4);Object.defineProperty(v4,"isAxiosError",{value:!0});st.from=(e,t,n,r,i,a)=>{const o=Object.create(v4);ie.toFlatObject(e,o,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 st.call(o,s,l,n,r,i),e&&o.cause==null&&Object.defineProperty(o,"cause",{value:e,configurable:!0}),o.name=e&&e.name||"Error",a&&Object.assign(o,a),o};const I7=null;function sm(e){return ie.isPlainObject(e)||ie.isArray(e)}function y4(e){return ie.endsWith(e,"[]")?e.slice(0,-2):e}function X1(e,t,n){return e?e.concat(t).map(function(i,a){return i=y4(i),!n&&a?"["+i+"]":i}).join(n?".":""):t}function N7(e){return ie.isArray(e)&&!e.some(sm)}const P7=ie.toFlatObject(ie,{},null,function(t){return/^is[A-Z]/.test(t)});function Gd(e,t,n){if(!ie.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ie.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,g){return!ie.isUndefined(g[m])});const r=n.metaTokens,i=n.visitor||u,a=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&ie.isSpecCompliantForm(t);if(!ie.isFunction(i))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if(ie.isDate(p))return p.toISOString();if(ie.isBoolean(p))return p.toString();if(!l&&ie.isBlob(p))throw new st("Blob is not supported. Use a Buffer instead.");return ie.isArrayBuffer(p)||ie.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function u(p,m,g){let x=p;if(p&&!g&&typeof p=="object"){if(ie.endsWith(m,"{}"))m=r?m:m.slice(0,-2),p=JSON.stringify(p);else if(ie.isArray(p)&&N7(p)||(ie.isFileList(p)||ie.endsWith(m,"[]"))&&(x=ie.toArray(p)))return m=y4(m),x.forEach(function(w,C){!(ie.isUndefined(w)||w===null)&&t.append(o===!0?X1([m],C,a):o===null?m:m+"[]",c(w))}),!1}return sm(p)?!0:(t.append(X1(g,m,a),c(p)),!1)}const d=[],f=Object.assign(P7,{defaultVisitor:u,convertValue:c,isVisitable:sm});function h(p,m){if(!ie.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(p),ie.forEach(p,function(x,_){(!(ie.isUndefined(x)||x===null)&&i.call(t,x,ie.isString(_)?_.trim():_,m,f))===!0&&h(x,m?m.concat(_):[_])}),d.pop()}}if(!ie.isObject(e))throw new TypeError("data must be an object");return h(e),t}function K1(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Yg(e,t){this._pairs=[],e&&Gd(e,this,t)}const x4=Yg.prototype;x4.append=function(t,n){this._pairs.push([t,n])};x4.toString=function(t){const n=t?function(r){return t.call(this,r,K1)}:K1;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function L7(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function w4(e,t,n){if(!t)return e;const r=n&&n.encode||L7;ie.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let a;if(i?a=i(t,n):a=ie.isURLSearchParams(t)?t.toString():new Yg(t,n).toString(r),a){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class J1{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){ie.forEach(this.handlers,function(r){r!==null&&t(r)})}}const _4={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},F7=typeof URLSearchParams<"u"?URLSearchParams:Yg,B7=typeof FormData<"u"?FormData:null,z7=typeof Blob<"u"?Blob:null,W7={isBrowser:!0,classes:{URLSearchParams:F7,FormData:B7,Blob:z7},protocols:["http","https","file","blob","url","data"]},Gg=typeof window<"u"&&typeof document<"u",lm=typeof navigator=="object"&&navigator||void 0,U7=Gg&&(!lm||["ReactNative","NativeScript","NS"].indexOf(lm.product)<0),H7=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",V7=Gg&&window.location.href||"http://localhost",q7=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Gg,hasStandardBrowserEnv:U7,hasStandardBrowserWebWorkerEnv:H7,navigator:lm,origin:V7},Symbol.toStringTag,{value:"Module"})),kn={...q7,...W7};function Y7(e,t){return Gd(e,new kn.classes.URLSearchParams,{visitor:function(n,r,i,a){return kn.isNode&&ie.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}function G7(e){return ie.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Z7(e){const t={},n=Object.keys(e);let r;const i=n.length;let a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}function C4(e){function t(n,r,i,a){let o=n[a++];if(o==="__proto__")return!0;const s=Number.isFinite(+o),l=a>=n.length;return o=!o&&ie.isArray(i)?i.length:o,l?(ie.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!s):((!i[o]||!ie.isObject(i[o]))&&(i[o]=[]),t(n,r,i[o],a)&&ie.isArray(i[o])&&(i[o]=Z7(i[o])),!s)}if(ie.isFormData(e)&&ie.isFunction(e.entries)){const n={};return ie.forEachEntry(e,(r,i)=>{t(G7(r),i,n,0)}),n}return null}function X7(e,t,n){if(ie.isString(e))try{return(t||JSON.parse)(e),ie.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const vc={transitional:_4,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,a=ie.isObject(t);if(a&&ie.isHTMLForm(t)&&(t=new FormData(t)),ie.isFormData(t))return i?JSON.stringify(C4(t)):t;if(ie.isArrayBuffer(t)||ie.isBuffer(t)||ie.isStream(t)||ie.isFile(t)||ie.isBlob(t)||ie.isReadableStream(t))return t;if(ie.isArrayBufferView(t))return t.buffer;if(ie.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Y7(t,this.formSerializer).toString();if((s=ie.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Gd(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return a||i?(n.setContentType("application/json",!1),X7(t)):t}],transformResponse:[function(t){const n=this.transitional||vc.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(ie.isResponse(t)||ie.isReadableStream(t))return t;if(t&&ie.isString(t)&&(r&&!this.responseType||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(s){if(o)throw s.name==="SyntaxError"?st.from(s,st.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:kn.classes.FormData,Blob:kn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ie.forEach(["delete","get","head","post","put","patch"],e=>{vc.headers[e]={}});const K7=ie.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"]),J7=e=>{const t={};let n,r,i;return e&&e.split(`
221
+ `).forEach(function(o){i=o.indexOf(":"),n=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!n||t[n]&&K7[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Q1=Symbol("internals");function Ls(e){return e&&String(e).trim().toLowerCase()}function xu(e){return e===!1||e==null?e:ie.isArray(e)?e.map(xu):String(e)}function Q7(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 eA=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Uh(e,t,n,r,i){if(ie.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!ie.isString(t)){if(ie.isString(r))return t.indexOf(r)!==-1;if(ie.isRegExp(r))return r.test(t)}}function tA(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function nA(e,t){const n=ie.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,a,o){return this[r].call(this,t,i,a,o)},configurable:!0})})}let Zn=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function a(s,l,c){const u=Ls(l);if(!u)throw new Error("header name must be a non-empty string");const d=ie.findKey(i,u);(!d||i[d]===void 0||c===!0||c===void 0&&i[d]!==!1)&&(i[d||l]=xu(s))}const o=(s,l)=>ie.forEach(s,(c,u)=>a(c,u,l));if(ie.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(ie.isString(t)&&(t=t.trim())&&!eA(t))o(J7(t),n);else if(ie.isObject(t)&&ie.isIterable(t)){let s={},l,c;for(const u of t){if(!ie.isArray(u))throw TypeError("Object iterator must return a key-value pair");s[c=u[0]]=(l=s[c])?ie.isArray(l)?[...l,u[1]]:[l,u[1]]:u[1]}o(s,n)}else t!=null&&a(n,t,r);return this}get(t,n){if(t=Ls(t),t){const r=ie.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return Q7(i);if(ie.isFunction(n))return n.call(this,i,r);if(ie.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ls(t),t){const r=ie.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Uh(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function a(o){if(o=Ls(o),o){const s=ie.findKey(r,o);s&&(!n||Uh(r,r[s],s,n))&&(delete r[s],i=!0)}}return ie.isArray(t)?t.forEach(a):a(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const a=n[r];(!t||Uh(this,this[a],a,t,!0))&&(delete this[a],i=!0)}return i}normalize(t){const n=this,r={};return ie.forEach(this,(i,a)=>{const o=ie.findKey(r,a);if(o){n[o]=xu(i),delete n[a];return}const s=t?tA(a):String(a).trim();s!==a&&delete n[a],n[s]=xu(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ie.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&ie.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[Q1]=this[Q1]={accessors:{}}).accessors,i=this.prototype;function a(o){const s=Ls(o);r[s]||(nA(i,o),r[s]=!0)}return ie.isArray(t)?t.forEach(a):a(t),this}};Zn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ie.reduceDescriptors(Zn.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});ie.freezeMethods(Zn);function Hh(e,t){const n=this||vc,r=t||n,i=Zn.from(r.headers);let a=r.data;return ie.forEach(e,function(s){a=s.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function S4(e){return!!(e&&e.__CANCEL__)}function hs(e,t,n){st.call(this,e??"canceled",st.ERR_CANCELED,t,n),this.name="CanceledError"}ie.inherits(hs,st,{__CANCEL__:!0});function T4(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new st("Request failed with status code "+n.status,[st.ERR_BAD_REQUEST,st.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function rA(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function iA(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,a=0,o;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[a];o||(o=c),n[i]=l,r[i]=c;let d=a,f=0;for(;d!==i;)f+=n[d++],d=d%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;const h=u&&c-u;return h?Math.round(f*1e3/h):void 0}}function aA(e,t){let n=0,r=1e3/t,i,a;const o=(c,u=Date.now())=>{n=u,i=null,a&&(clearTimeout(a),a=null),e(...c)};return[(...c)=>{const u=Date.now(),d=u-n;d>=r?o(c,u):(i=c,a||(a=setTimeout(()=>{a=null,o(i)},r-d)))},()=>i&&o(i)]}const zu=(e,t,n=3)=>{let r=0;const i=iA(50,250);return aA(a=>{const o=a.loaded,s=a.lengthComputable?a.total:void 0,l=o-r,c=i(l),u=o<=s;r=o;const d={loaded:o,total:s,progress:s?o/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&u?(s-o)/c:void 0,event:a,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(d)},n)},eb=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},tb=e=>(...t)=>ie.asap(()=>e(...t)),oA=kn.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,kn.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(kn.origin),kn.navigator&&/(msie|trident)/i.test(kn.navigator.userAgent)):()=>!0,sA=kn.hasStandardBrowserEnv?{write(e,t,n,r,i,a,o){if(typeof document>"u")return;const s=[`${e}=${encodeURIComponent(t)}`];ie.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),ie.isString(r)&&s.push(`path=${r}`),ie.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push("secure"),ie.isString(o)&&s.push(`SameSite=${o}`),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 lA(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function cA(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function $4(e,t,n){let r=!lA(t);return e&&(r||n==!1)?cA(e,t):t}const nb=e=>e instanceof Zn?{...e}:e;function Na(e,t){t=t||{};const n={};function r(c,u,d,f){return ie.isPlainObject(c)&&ie.isPlainObject(u)?ie.merge.call({caseless:f},c,u):ie.isPlainObject(u)?ie.merge({},u):ie.isArray(u)?u.slice():u}function i(c,u,d,f){if(ie.isUndefined(u)){if(!ie.isUndefined(c))return r(void 0,c,d,f)}else return r(c,u,d,f)}function a(c,u){if(!ie.isUndefined(u))return r(void 0,u)}function o(c,u){if(ie.isUndefined(u)){if(!ie.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:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(c,u,d)=>i(nb(c),nb(u),d,!0)};return ie.forEach(Object.keys({...e,...t}),function(u){const d=l[u]||i,f=d(e[u],t[u],u);ie.isUndefined(f)&&d!==s||(n[u]=f)}),n}const k4=e=>{const t=Na({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:s}=t;if(t.headers=o=Zn.from(o),t.url=w4($4(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),ie.isFormData(n)){if(kn.hasStandardBrowserEnv||kn.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(ie.isFunction(n.getHeaders)){const l=n.getHeaders(),c=["content-type","content-length"];Object.entries(l).forEach(([u,d])=>{c.includes(u.toLowerCase())&&o.set(u,d)})}}if(kn.hasStandardBrowserEnv&&(r&&ie.isFunction(r)&&(r=r(t)),r||r!==!1&&oA(t.url))){const l=i&&a&&sA.read(a);l&&o.set(i,l)}return t},uA=typeof XMLHttpRequest<"u",dA=uA&&function(e){return new Promise(function(n,r){const i=k4(e);let a=i.data;const o=Zn.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:c}=i,u,d,f,h,p;function m(){h&&h(),p&&p(),i.cancelToken&&i.cancelToken.unsubscribe(u),i.signal&&i.signal.removeEventListener("abort",u)}let g=new XMLHttpRequest;g.open(i.method.toUpperCase(),i.url,!0),g.timeout=i.timeout;function x(){if(!g)return;const w=Zn.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),b={data:!s||s==="text"||s==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:w,config:e,request:g};T4(function(M){n(M),m()},function(M){r(M),m()},b),g=null}"onloadend"in g?g.onloadend=x:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(x)},g.onabort=function(){g&&(r(new st("Request aborted",st.ECONNABORTED,e,g)),g=null)},g.onerror=function(C){const b=C&&C.message?C.message:"Network Error",S=new st(b,st.ERR_NETWORK,e,g);S.event=C||null,r(S),g=null},g.ontimeout=function(){let C=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const b=i.transitional||_4;i.timeoutErrorMessage&&(C=i.timeoutErrorMessage),r(new st(C,b.clarifyTimeoutError?st.ETIMEDOUT:st.ECONNABORTED,e,g)),g=null},a===void 0&&o.setContentType(null),"setRequestHeader"in g&&ie.forEach(o.toJSON(),function(C,b){g.setRequestHeader(b,C)}),ie.isUndefined(i.withCredentials)||(g.withCredentials=!!i.withCredentials),s&&s!=="json"&&(g.responseType=i.responseType),c&&([f,p]=zu(c,!0),g.addEventListener("progress",f)),l&&g.upload&&([d,h]=zu(l),g.upload.addEventListener("progress",d),g.upload.addEventListener("loadend",h)),(i.cancelToken||i.signal)&&(u=w=>{g&&(r(!w||w.type?new hs(null,e,g):w),g.abort(),g=null)},i.cancelToken&&i.cancelToken.subscribe(u),i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u)));const _=rA(i.url);if(_&&kn.protocols.indexOf(_)===-1){r(new st("Unsupported protocol "+_+":",st.ERR_BAD_REQUEST,e));return}g.send(a||null)})},fA=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const a=function(c){if(!i){i=!0,s();const u=c instanceof Error?c:this.reason;r.abort(u instanceof st?u:new hs(u instanceof Error?u.message:u))}};let o=t&&setTimeout(()=>{o=null,a(new st(`timeout ${t} of ms exceeded`,st.ETIMEDOUT))},t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(a):c.removeEventListener("abort",a)}),e=null)};e.forEach(c=>c.addEventListener("abort",a));const{signal:l}=r;return l.unsubscribe=()=>ie.asap(s),l}},hA=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},pA=async function*(e,t){for await(const n of mA(e))yield*hA(n,t)},mA=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()}},rb=(e,t,n,r)=>{const i=pA(e,t);let a=0,o,s=l=>{o||(o=!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=a+=d;n(f)}l.enqueue(new Uint8Array(u))}catch(c){throw s(c),c}},cancel(l){return s(l),i.return()}},{highWaterMark:2})},ib=64*1024,{isFunction:Zc}=ie,gA=(({Request:e,Response:t})=>({Request:e,Response:t}))(ie.global),{ReadableStream:ab,TextEncoder:ob}=ie.global,sb=(e,...t)=>{try{return!!e(...t)}catch{return!1}},vA=e=>{e=ie.merge.call({skipUndefined:!0},gA,e);const{fetch:t,Request:n,Response:r}=e,i=t?Zc(t):typeof fetch=="function",a=Zc(n),o=Zc(r);if(!i)return!1;const s=i&&Zc(ab),l=i&&(typeof ob=="function"?(p=>m=>p.encode(m))(new ob):async p=>new Uint8Array(await new n(p).arrayBuffer())),c=a&&s&&sb(()=>{let p=!1;const m=new n(kn.origin,{body:new ab,method:"POST",get duplex(){return p=!0,"half"}}).headers.has("Content-Type");return p&&!m}),u=o&&s&&sb(()=>ie.isReadableStream(new r("").body)),d={stream:u&&(p=>p.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(p=>{!d[p]&&(d[p]=(m,g)=>{let x=m&&m[p];if(x)return x.call(m);throw new st(`Response type '${p}' is not supported`,st.ERR_NOT_SUPPORT,g)})});const f=async p=>{if(p==null)return 0;if(ie.isBlob(p))return p.size;if(ie.isSpecCompliantForm(p))return(await new n(kn.origin,{method:"POST",body:p}).arrayBuffer()).byteLength;if(ie.isArrayBufferView(p)||ie.isArrayBuffer(p))return p.byteLength;if(ie.isURLSearchParams(p)&&(p=p+""),ie.isString(p))return(await l(p)).byteLength},h=async(p,m)=>{const g=ie.toFiniteNumber(p.getContentLength());return g??f(m)};return async p=>{let{url:m,method:g,data:x,signal:_,cancelToken:w,timeout:C,onDownloadProgress:b,onUploadProgress:S,responseType:M,headers:$,withCredentials:k="same-origin",fetchOptions:D}=k4(p),T=t||fetch;M=M?(M+"").toLowerCase():"text";let E=fA([_,w&&w.toAbortSignal()],C),R=null;const j=E&&E.unsubscribe&&(()=>{E.unsubscribe()});let O;try{if(S&&c&&g!=="get"&&g!=="head"&&(O=await h($,x))!==0){let H=new n(m,{method:"POST",body:x,duplex:"half"}),Y;if(ie.isFormData(x)&&(Y=H.headers.get("content-type"))&&$.setContentType(Y),H.body){const[q,Z]=eb(O,zu(tb(S)));x=rb(H.body,ib,q,Z)}}ie.isString(k)||(k=k?"include":"omit");const A=a&&"credentials"in n.prototype,I={...D,signal:E,method:g.toUpperCase(),headers:$.normalize().toJSON(),body:x,duplex:"half",credentials:A?k:void 0};R=a&&new n(m,I);let F=await(a?T(R,D):T(m,I));const z=u&&(M==="stream"||M==="response");if(u&&(b||z&&j)){const H={};["status","statusText","headers"].forEach(X=>{H[X]=F[X]});const Y=ie.toFiniteNumber(F.headers.get("content-length")),[q,Z]=b&&eb(Y,zu(tb(b),!0))||[];F=new r(rb(F.body,ib,q,()=>{Z&&Z(),j&&j()}),H)}M=M||"text";let L=await d[ie.findKey(d,M)||"text"](F,p);return!z&&j&&j(),await new Promise((H,Y)=>{T4(H,Y,{data:L,headers:Zn.from(F.headers),status:F.status,statusText:F.statusText,config:p,request:R})})}catch(A){throw j&&j(),A&&A.name==="TypeError"&&/Load failed|fetch/i.test(A.message)?Object.assign(new st("Network Error",st.ERR_NETWORK,p,R),{cause:A.cause||A}):st.from(A,A&&A.code,p,R)}}},bA=new Map,M4=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:i}=t,a=[r,i,n];let o=a.length,s=o,l,c,u=bA;for(;s--;)l=a[s],c=u.get(l),c===void 0&&u.set(l,c=s?new Map:vA(t)),u=c;return c};M4();const Zg={http:I7,xhr:dA,fetch:{get:M4}};ie.forEach(Zg,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const lb=e=>`- ${e}`,yA=e=>ie.isFunction(e)||e===null||e===!1;function xA(e,t){e=ie.isArray(e)?e:[e];const{length:n}=e;let r,i;const a={};for(let o=0;o<n;o++){r=e[o];let s;if(i=r,!yA(r)&&(i=Zg[(s=String(r)).toLowerCase()],i===void 0))throw new st(`Unknown adapter '${s}'`);if(i&&(ie.isFunction(i)||(i=i.get(t))))break;a[s||"#"+o]=i}if(!i){const o=Object.entries(a).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=n?o.length>1?`since :
223
+ `+o.map(lb).join(`
224
+ `):" "+lb(o[0]):"as no adapter specified";throw new st("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return i}const E4={getAdapter:xA,adapters:Zg};function Vh(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new hs(null,e)}function cb(e){return Vh(e),e.headers=Zn.from(e.headers),e.data=Hh.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),E4.getAdapter(e.adapter||vc.adapter,e)(e).then(function(r){return Vh(e),r.data=Hh.call(e,e.transformResponse,r),r.headers=Zn.from(r.headers),r},function(r){return S4(r)||(Vh(e),r&&r.response&&(r.response.data=Hh.call(e,e.transformResponse,r.response),r.response.headers=Zn.from(r.response.headers))),Promise.reject(r)})}const O4="1.13.2",Zd={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Zd[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const ub={};Zd.transitional=function(t,n,r){function i(a,o){return"[Axios v"+O4+"] Transitional option '"+a+"'"+o+(r?". "+r:"")}return(a,o,s)=>{if(t===!1)throw new st(i(o," has been removed"+(n?" in "+n:"")),st.ERR_DEPRECATED);return n&&!ub[o]&&(ub[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,o,s):!0}};Zd.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function wA(e,t,n){if(typeof e!="object")throw new st("options must be an object",st.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const a=r[i],o=t[a];if(o){const s=e[a],l=s===void 0||o(s,a,e);if(l!==!0)throw new st("option "+a+" must be "+l,st.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new st("Unknown option "+a,st.ERR_BAD_OPTION)}}const wu={assertOptions:wA,validators:Zd},Ar=wu.validators;let Oa=class{constructor(t){this.defaults=t||{},this.interceptors={request:new J1,response:new J1}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=`
225
+ `+a):r.stack=a}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Na(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:a}=n;r!==void 0&&wu.assertOptions(r,{silentJSONParsing:Ar.transitional(Ar.boolean),forcedJSONParsing:Ar.transitional(Ar.boolean),clarifyTimeoutError:Ar.transitional(Ar.boolean)},!1),i!=null&&(ie.isFunction(i)?n.paramsSerializer={serialize:i}:wu.assertOptions(i,{encode:Ar.function,serialize:Ar.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),wu.assertOptions(n,{baseUrl:Ar.spelling("baseURL"),withXsrfToken:Ar.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=a&&ie.merge(a.common,a[n.method]);a&&ie.forEach(["delete","get","head","post","put","patch","common"],p=>{delete a[p]}),n.headers=Zn.concat(o,a);const s=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(l=l&&m.synchronous,s.unshift(m.fulfilled,m.rejected))});const c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let u,d=0,f;if(!l){const p=[cb.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++],m=s[d++];try{h=p(h)}catch(g){m.call(this,g);break}}try{u=cb.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=Na(this.defaults,t);const n=$4(t.baseURL,t.url,t.allowAbsoluteUrls);return w4(n,t.params,t.paramsSerializer)}};ie.forEach(["delete","get","head","options"],function(t){Oa.prototype[t]=function(n,r){return this.request(Na(r||{},{method:t,url:n,data:(r||{}).data}))}});ie.forEach(["post","put","patch"],function(t){function n(r){return function(a,o,s){return this.request(Na(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}Oa.prototype[t]=n(),Oa.prototype[t+"Form"]=n(!0)});let _A=class A4{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const r=this;this.promise.then(i=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](i);r._listeners=null}),this.promise.then=i=>{let a;const o=new Promise(s=>{r.subscribe(s),a=s}).then(i);return o.cancel=function(){r.unsubscribe(a)},o},t(function(a,o,s){r.reason||(r.reason=new hs(a,o,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new A4(function(i){t=i}),cancel:t}}};function CA(e){return function(n){return e.apply(null,n)}}function SA(e){return ie.isObject(e)&&e.isAxiosError===!0}const cm={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(cm).forEach(([e,t])=>{cm[t]=e});function R4(e){const t=new Oa(e),n=c4(Oa.prototype.request,t);return ie.extend(n,Oa.prototype,t,{allOwnKeys:!0}),ie.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return R4(Na(e,i))},n}const Zt=R4(vc);Zt.Axios=Oa;Zt.CanceledError=hs;Zt.CancelToken=_A;Zt.isCancel=S4;Zt.VERSION=O4;Zt.toFormData=Gd;Zt.AxiosError=st;Zt.Cancel=Zt.CanceledError;Zt.all=function(t){return Promise.all(t)};Zt.spread=CA;Zt.isAxiosError=SA;Zt.mergeConfig=Na;Zt.AxiosHeaders=Zn;Zt.formToJSON=e=>C4(ie.isHTMLForm(e)?new FormData(e):e);Zt.getAdapter=E4.getAdapter;Zt.HttpStatusCode=cm;Zt.default=Zt;const{Axios:ahe,AxiosError:ohe,CanceledError:she,isCancel:lhe,CancelToken:che,VERSION:uhe,all:dhe,Cancel:fhe,isAxiosError:hhe,spread:phe,toFormData:mhe,AxiosHeaders:ghe,HttpStatusCode:vhe,formToJSON:bhe,getAdapter:yhe,mergeConfig:xhe}=Zt;var Xc={};/*!
226
+ * cookie
227
+ * Copyright(c) 2012-2014 Roman Shtylman
228
+ * Copyright(c) 2015 Douglas Christopher Wilson
229
+ * MIT Licensed
230
+ */var db;function TA(){if(db)return Xc;db=1,Xc.parse=o,Xc.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,a=/^[\u0020-\u003A\u003D-\u007E]*$/;function o(h,p){if(typeof h!="string")throw new TypeError("argument str must be a string");var m={},g=h.length;if(g<2)return m;var x=p&&p.decode||u,_=0,w=0,C=0;do{if(w=h.indexOf("=",_),w===-1)break;if(C=h.indexOf(";",_),C===-1)C=g;else if(w>C){_=h.lastIndexOf(";",w-1)+1;continue}var b=s(h,_,w),S=l(h,w,b),M=h.slice(b,S);if(!t.call(m,M)){var $=s(h,w+1,C),k=l(h,C,$);h.charCodeAt($)===34&&h.charCodeAt(k-1)===34&&($++,k--);var D=h.slice($,k);m[M]=f(D,x)}_=C+1}while(_<g);return m}function s(h,p,m){do{var g=h.charCodeAt(p);if(g!==32&&g!==9)return p}while(++p<m);return m}function l(h,p,m){for(;p>m;){var g=h.charCodeAt(--p);if(g!==32&&g!==9)return p+1}return m}function c(h,p,m){var g=m&&m.encode||encodeURIComponent;if(typeof g!="function")throw new TypeError("option encode is invalid");if(!n.test(h))throw new TypeError("argument name is invalid");var x=g(p);if(!r.test(x))throw new TypeError("argument val is invalid");var _=h+"="+x;if(!m)return _;if(m.maxAge!=null){var w=Math.floor(m.maxAge);if(!isFinite(w))throw new TypeError("option maxAge is invalid");_+="; Max-Age="+w}if(m.domain){if(!i.test(m.domain))throw new TypeError("option domain is invalid");_+="; Domain="+m.domain}if(m.path){if(!a.test(m.path))throw new TypeError("option path is invalid");_+="; Path="+m.path}if(m.expires){var C=m.expires;if(!d(C)||isNaN(C.valueOf()))throw new TypeError("option expires is invalid");_+="; Expires="+C.toUTCString()}if(m.httpOnly&&(_+="; HttpOnly"),m.secure&&(_+="; Secure"),m.partitioned&&(_+="; Partitioned"),m.priority){var b=typeof m.priority=="string"?m.priority.toLowerCase():m.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(m.sameSite){var S=typeof m.sameSite=="string"?m.sameSite.toLowerCase():m.sameSite;switch(S){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 Xc}var _u=TA();function $A(){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 kA(e){return typeof e=="string"?_u.parse(e):typeof e=="object"&&e!==null?e:{}}function qh(e,t={}){const n=MA(e);if(!t.doNotParse)try{return JSON.parse(n)}catch{}return e}function MA(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class EA{constructor(t,n={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const i=this.cookies;this.cookies=_u.parse(document.cookie),this._checkChanges(i)};const r=typeof document>"u"?"":document.cookie;this.cookies=kA(t||r),this.defaultSetOptions=n,this.HAS_DOCUMENT_COOKIE=$A()}_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:qh(this.cookies[r])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,n={}){return n.doNotUpdate||this.update(),qh(this.cookies[t],n)}getAll(t={}){t.doNotUpdate||this.update();const n={};for(let r in this.cookies)n[r]=qh(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=_u.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=_u.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 D4=fe.createContext(new EA),{Provider:whe,Consumer:_he}=D4;var Kc={exports:{}},It={};/** @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 fb;function OA(){if(fb)return It;fb=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,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,m=e?Symbol.for("react.block"):60121,g=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 S=b.$$typeof;switch(S){case t:switch(b=b.type,b){case l:case c:case r:case a:case i:case d:return b;default:switch(b=b&&b.$$typeof,b){case s:case u:case p:case h:case o:return b;default:return S}}case n:return S}}}function C(b){return w(b)===c}return It.AsyncMode=l,It.ConcurrentMode=c,It.ContextConsumer=s,It.ContextProvider=o,It.Element=t,It.ForwardRef=u,It.Fragment=r,It.Lazy=p,It.Memo=h,It.Portal=n,It.Profiler=a,It.StrictMode=i,It.Suspense=d,It.isAsyncMode=function(b){return C(b)||w(b)===l},It.isConcurrentMode=C,It.isContextConsumer=function(b){return w(b)===s},It.isContextProvider=function(b){return w(b)===o},It.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===t},It.isForwardRef=function(b){return w(b)===u},It.isFragment=function(b){return w(b)===r},It.isLazy=function(b){return w(b)===p},It.isMemo=function(b){return w(b)===h},It.isPortal=function(b){return w(b)===n},It.isProfiler=function(b){return w(b)===a},It.isStrictMode=function(b){return w(b)===i},It.isSuspense=function(b){return w(b)===d},It.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===r||b===c||b===a||b===i||b===d||b===f||typeof b=="object"&&b!==null&&(b.$$typeof===p||b.$$typeof===h||b.$$typeof===o||b.$$typeof===s||b.$$typeof===u||b.$$typeof===g||b.$$typeof===x||b.$$typeof===_||b.$$typeof===m)},It.typeOf=w,It}var Nt={};/** @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 hb;function AA(){return hb||(hb=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,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,m=e?Symbol.for("react.block"):60121,g=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===a||N===i||N===d||N===f||typeof N=="object"&&N!==null&&(N.$$typeof===p||N.$$typeof===h||N.$$typeof===o||N.$$typeof===s||N.$$typeof===u||N.$$typeof===g||N.$$typeof===x||N.$$typeof===_||N.$$typeof===m)}function C(N){if(typeof N=="object"&&N!==null){var te=N.$$typeof;switch(te){case t:var K=N.type;switch(K){case l:case c:case r:case a:case i:case d:return K;default:var G=K&&K.$$typeof;switch(G){case s:case u:case p:case h:case o:return G;default:return te}}case n:return te}}}var b=l,S=c,M=s,$=o,k=t,D=u,T=r,E=p,R=h,j=n,O=a,A=i,I=d,F=!1;function z(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.")),L(N)||C(N)===l}function L(N){return C(N)===c}function H(N){return C(N)===s}function Y(N){return C(N)===o}function q(N){return typeof N=="object"&&N!==null&&N.$$typeof===t}function Z(N){return C(N)===u}function X(N){return C(N)===r}function J(N){return C(N)===p}function ee(N){return C(N)===h}function W(N){return C(N)===n}function P(N){return C(N)===a}function B(N){return C(N)===i}function V(N){return C(N)===d}Nt.AsyncMode=b,Nt.ConcurrentMode=S,Nt.ContextConsumer=M,Nt.ContextProvider=$,Nt.Element=k,Nt.ForwardRef=D,Nt.Fragment=T,Nt.Lazy=E,Nt.Memo=R,Nt.Portal=j,Nt.Profiler=O,Nt.StrictMode=A,Nt.Suspense=I,Nt.isAsyncMode=z,Nt.isConcurrentMode=L,Nt.isContextConsumer=H,Nt.isContextProvider=Y,Nt.isElement=q,Nt.isForwardRef=Z,Nt.isFragment=X,Nt.isLazy=J,Nt.isMemo=ee,Nt.isPortal=W,Nt.isProfiler=P,Nt.isStrictMode=B,Nt.isSuspense=V,Nt.isValidElementType=w,Nt.typeOf=C}()),Nt}var pb;function RA(){return pb||(pb=1,process.env.NODE_ENV==="production"?Kc.exports=OA():Kc.exports=AA()),Kc.exports}var Yh,mb;function DA(){if(mb)return Yh;mb=1;var e=RA(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};a[e.ForwardRef]=r,a[e.Memo]=i;function o(p){return e.isMemo(p)?i:a[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,m,g){if(typeof m!="string"){if(f){var x=d(m);x&&x!==f&&h(p,x,g)}var _=l(m);c&&(_=_.concat(c(m)));for(var w=o(p),C=o(m),b=0;b<_.length;++b){var S=_[b];if(!n[S]&&!(g&&g[S])&&!(C&&C[S])&&!(w&&w[S])){var M=u(m,S);try{s(p,S,M)}catch{}}}}return p}return Yh=h,Yh}DA();function jA(){return typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"}function Xg(e,t){const n=v.useContext(D4);if(!n)throw new Error("Missing <CookiesProvider>");const i=Object.assign(Object.assign({},{doNotUpdate:!0}),t),[a,o]=v.useState(()=>n.getAll(i));jA()&&v.useLayoutEffect(()=>{function u(){const d=n.getAll(i);IA(e||null,d,a)&&o(d)}return n.addChangeListener(u),()=>{n.removeChangeListener(u)}},[n,a]);const s=v.useMemo(()=>n.set.bind(n),[n]),l=v.useMemo(()=>n.remove.bind(n),[n]),c=v.useMemo(()=>n.update.bind(n),[n]);return[a,s,l,c]}function IA(e,t,n){if(!e)return!0;for(let r of e)if(t[r]!==n[r])return!0;return!1}const NA=()=>{const e=Ie.c(12),{axiosOptions:t,cookieDomain:n}=v.useContext(rn);let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=["Authorization"],e[0]=r):r=e[0];const[,i,a]=Xg(r);let o;e[1]!==t?(o=Zt.create(t),e[1]=t,e[2]=o):o=e[2];const s=o,l=PA;let c;e[3]!==s||e[4]!==n||e[5]!==i?(c=async(p,m)=>s.post("/user/login",{kid:p,password:m}).then(g=>(localStorage.setItem("token",g.data),i("Authorization",g.data,{path:"/",secure:!0,sameSite:"none",domain:n,expires:Yx(new Date(Date.now()),24)}),g.data)).catch(LA),e[3]=s,e[4]=n,e[5]=i,e[6]=c):c=e[6];const u=c;let d;e[7]!==a?(d=()=>{localStorage.removeItem("token"),localStorage.removeItem("user"),a("Authorization")},e[7]=a,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 PA(){const e=localStorage.getItem("token");return e!==null&&e.length>0}function LA(e){return console.log(e),null}const FA=()=>{const e=Ie.c(18);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=["Authorization"],e[0]=t):t=e[0];const[,,n]=Xg(t),{msalScopes:r,msalExtraScopes:i}=v.useContext(Wd),{instance:a,inProgress:o}=n1.useMsal(),s=n1.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]!==o?(u=()=>!c()&&o!==sT.InteractionStatus.None,e[3]=c,e[4]=o,e[5]=u):u=e[5];const d=u;let f;e[6]!==a||e[7]!==i||e[8]!==r?(f=async()=>a.loginRedirect({scopes:r,extraScopesToConsent:i}).then(BA).catch(zA),e[6]=a,e[7]=i,e[8]=r,e[9]=f):f=e[9];const h=f;let p;e[10]!==a||e[11]!==n?(p=()=>{a.logout(),localStorage.removeItem("user"),n("Authorization")},e[10]=a,e[11]=n,e[12]=p):p=e[12];const m=p;let g;return e[13]!==c||e[14]!==d||e[15]!==h||e[16]!==m?(g={isAuthenticated:c,isAuthenticating:d,login:h,logout:m},e[13]=c,e[14]=d,e[15]=h,e[16]=m,e[17]=g):g=e[17],g};function BA(){return""}function zA(){return null}const j4=()=>{const e=Ie.c(12),{useMsal:t}=v.useContext(Wd),n=NA(),r=FA();let i;e[0]!==n||e[1]!==r||e[2]!==t?(i=(u,d)=>t?r.login():n.login(u,d),e[0]=n,e[1]=r,e[2]=t,e[3]=i):i=e[3];const a=i,o=t?r.isAuthenticated:n.isAuthenticated;let s;e[4]!==r||e[5]!==t?(s=t?r.isAuthenticating:WA,e[4]=r,e[5]=t,e[6]=s):s=e[6];const l=t?r.logout:n.logout;let c;return e[7]!==o||e[8]!==s||e[9]!==l||e[10]!==a?(c={isAuthenticated:o,isAuthenticating:s,login:a,logout:l},e[7]=o,e[8]=s,e[9]=l,e[10]=a,e[11]=c):c=e[11],c};function WA(){return!1}const UA="_toast_1s57i_1",Fs={toast:UA},HA=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}},Xd=()=>{const e=Ie.c(1),t=VA;let n;return e[0]===Symbol.for("react.memo_cache_sentinel")?(n={addNotification:t},e[0]=n):n=e[0],n};function VA(e,t){const n=e4(e),r=HA(t),i=y.jsxs(y.Fragment,{children:[n,y.jsx(j_,{onClick:()=>po.dismiss(n),type:"button",style:{position:"absolute",fontSize:"12px",top:"calc(50% - 6px)",right:"8px"}})]});e:switch(t){case"success":{po(i,{id:n,duration:r,position:"top-center",icon:y.jsx(CE,{size:12}),className:se("luminus-toast-success rounded shadow bg-success",Fs.toast)});break e}case"danger":{po(i,{id:n,duration:r,position:"top-center",icon:y.jsx(hE,{size:12}),className:se("luminus-toast-danger rounded shadow bg-danger",Fs.toast)});break e}case"warning":{po(i,{id:n,duration:r,position:"top-center",icon:y.jsx(cE,{size:12}),className:se("luminus-toast-warning rounded shadow bg-warning",Fs.toast)});break e}case"info":{po(i,{id:n,duration:r,position:"top-center",icon:y.jsx(dE,{size:12}),className:se("luminus-toast-info rounded shadow bg-info",Fs.toast)});break e}case"prompt":{po(i,{id:n,duration:r,position:"top-center",icon:y.jsx(fE,{size:12}),className:se("luminus-toast-prompt rounded shadow bg-light",Fs.toast)});break e}}}const qA=Zt.CancelToken,Kd=e=>{const{authenticated:t=!0,differentBaseUrl:n,silent:r=!1,customToken:i,ignoreDelegation:a,noToastOnStatus:o}={...e},{language:s,axiosOptions:l,texts:{axios:c}}=v.useContext(rn),{delegation:u}=v.useContext(G_),{getToken:d}=v.useContext(Wd),f=v.useMemo(()=>(u==null?void 0:u.id)??null,[u==null?void 0:u.id]),{addNotification:h}=Xd(),{isAuthenticating:p,isAuthenticated:m}=j4(),g=v.useMemo(()=>Zt.create(l),[l]),x=v.useCallback(async b=>{var M,$,k;if(t&&!b.headers.Authorization){if(p())return Promise.reject(new Error("Authentication in progress"));if(!m())return Promise.reject(new Error("Not authenticated"));const D=i?{token:i,expiresOn:Yx(new Date(Date.now()),1)}:await d();if(!D)return console.log("No bearer token"),Promise.reject(new Error("No bearer token"));if(Jx(D.expiresOn))return console.log("Token expired"),Promise.reject(new Error("Token expired"));b.headers.Authorization=`Bearer ${D.token}`}f!==null&&!a&&(b.headers.DelegationId=f.toString());const S=localStorage.getItem("search-use-asterisk")!=="false";return b.headers["Search-Use-Asterisk"]=S?"true":"false",(M=b.url)!=null&&M.includes("culture=")?b.url=($=b.url)==null?void 0:$.replace(/culture=[a-z]{2}/,`culture=${s}`):b.url=`${b.url}${(k=b.url)!=null&&k.includes("?")?"&":"?"}culture=${s}`,b},[t,d,s,i,f,a,p,m]),_=v.useCallback(async b=>{var $,k;if(Zt.isCancel(b)||b.message==="Authentication in progress"||b.message==="No bearer token"||b.message==="Token expired")return Promise.reject(b);let S;if(b.response.data instanceof Blob?S=await K_(b.response.data):S=Ud(b.response.data),S.length>0){const D=S.find(T=>T.name.toLowerCase()==="others");return D?(!r&&h(D.errors,"danger"),Promise.reject(b)):(!r&&h(c.validationError,"warning"),Promise.reject(b))}const M=J_(b);return M!==null?(!r&&h(`${c.permissionError}: ${Hg(", ",...M)}`,"danger"),Promise.reject(b)):(o??[]).includes(($=b.response)==null?void 0:$.status)?Promise.reject(b):((k=b.response)==null?void 0:k.status)===403?(!r&&h(c.forbiddenError,"danger"),Promise.reject(b)):b.message&&b.message==="Network Error"?(!r&&h(c.networkError,"danger"),Promise.reject(b)):(Zt.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,o]),[w,C]=v.useState(!1);return v.useEffect(()=>{n&&(g.defaults.baseURL=n)},[n,g.defaults]),v.useEffect(()=>{g.interceptors.request.clear();const b=g.interceptors.request.use(x,S=>Promise.reject(S));return C(!0),console.log("useAxios: setting interceptors"),()=>{C(!1),console.log("useAxios: ejecting interceptors"),g.interceptors.request.eject(b)}},[g.interceptors.request,x]),v.useEffect(()=>{g.interceptors.response.clear();const b=g.interceptors.response.use(S=>S,_);return()=>{g.interceptors.response.eject(b)}},[g.interceptors.response,_]),g.interceptorsUsed=w,g};let nl;const Kg=()=>{const e=Ie.c(15),{show:t,text:n,showConfirm:r,hideConfirm:i,textSm:a}=v.useContext(N_);let o;e[0]!==i?(o=()=>{i()},e[0]=i,e[1]=o):o=e[1];const s=o;let l;e[2]!==s?(l=()=>{s(),nl&&nl(!0)},e[2]=s,e[3]=l):l=e[3];const c=l;let u;e[4]!==s?(u=()=>{s(),nl&&nl(!1)},e[4]=s,e[5]=u):u=e[5];const d=u;let f;e[6]!==r?(f=async(m,g)=>(r(m,g),new Promise(YA)),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]!==a?(p={confirm:h,onConfirm:c,onCancel:d,show:t,text:n,textSm:a},e[8]=h,e[9]=d,e[10]=c,e[11]=t,e[12]=n,e[13]=a,e[14]=p):p=e[14],p};function YA(e){nl=e}var wt;(function(e){e.assertEqual=i=>{};function t(i){}e.assertIs=t;function n(i){throw new Error}e.assertNever=n,e.arrayToEnum=i=>{const a={};for(const o of i)a[o]=o;return a},e.getValidEnumValues=i=>{const a=e.objectKeys(i).filter(s=>typeof i[i[s]]!="number"),o={};for(const s of a)o[s]=i[s];return e.objectValues(o)},e.objectValues=i=>e.objectKeys(i).map(function(a){return i[a]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const a=[];for(const o in i)Object.prototype.hasOwnProperty.call(i,o)&&a.push(o);return a},e.find=(i,a)=>{for(const o of i)if(a(o))return o},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&Number.isFinite(i)&&Math.floor(i)===i;function r(i,a=" | "){return i.map(o=>typeof o=="string"?`'${o}'`:o).join(a)}e.joinValues=r,e.jsonStringifyReplacer=(i,a)=>typeof a=="bigint"?a.toString():a})(wt||(wt={}));var um;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(um||(um={}));const Se=wt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),ci=e=>{switch(typeof e){case"undefined":return Se.undefined;case"string":return Se.string;case"number":return Number.isNaN(e)?Se.nan:Se.number;case"boolean":return Se.boolean;case"function":return Se.function;case"bigint":return Se.bigint;case"symbol":return Se.symbol;case"object":return Array.isArray(e)?Se.array:e===null?Se.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Se.promise:typeof Map<"u"&&e instanceof Map?Se.map:typeof Set<"u"&&e instanceof Set?Se.set:typeof Date<"u"&&e instanceof Date?Se.date:Se.object;default:return Se.unknown}},he=wt.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),GA=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class er 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(a){return a.message},r={_errors:[]},i=a=>{for(const o of a.issues)if(o.code==="invalid_union")o.unionErrors.map(i);else if(o.code==="invalid_return_type")i(o.returnTypeError);else if(o.code==="invalid_arguments")i(o.argumentsError);else if(o.path.length===0)r._errors.push(n(o));else{let s=r,l=0;for(;l<o.path.length;){const c=o.path[l];l===o.path.length-1?(s[c]=s[c]||{_errors:[]},s[c]._errors.push(n(o))):s[c]=s[c]||{_errors:[]},s=s[c],l++}}};return i(this),r}static assert(t){if(!(t instanceof er))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,wt.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const i of this.issues)if(i.path.length>0){const a=i.path[0];n[a]=n[a]||[],n[a].push(t(i))}else r.push(t(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}er.create=e=>new er(e);const Ko=(e,t)=>{let n;switch(e.code){case he.invalid_type:e.received===Se.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case he.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,wt.jsonStringifyReplacer)}`;break;case he.unrecognized_keys:n=`Unrecognized key(s) in object: ${wt.joinValues(e.keys,", ")}`;break;case he.invalid_union:n="Invalid input";break;case he.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${wt.joinValues(e.options)}`;break;case he.invalid_enum_value:n=`Invalid enum value. Expected ${wt.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}"`:wt.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,wt.assertNever(e)}return{message:n}};let I4=Ko;function ZA(e){I4=e}function Wu(){return I4}const Uu=e=>{const{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],o={...i,path:a};if(i.message!==void 0)return{...i,path:a,message:i.message};let s="";const l=r.filter(c=>!!c).slice().reverse();for(const c of l)s=c(o,{data:t,defaultError:s}).message;return{...i,path:a,message:s}},XA=[];function _e(e,t){const n=Wu(),r=Uu({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Ko?void 0:Ko].filter(i=>!!i)});e.common.issues.push(r)}class On{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const i of n){if(i.status==="aborted")return He;i.status==="dirty"&&t.dirty(),r.push(i.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const i of n){const a=await i.key,o=await i.value;r.push({key:a,value:o})}return On.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const i of n){const{key:a,value:o}=i;if(a.status==="aborted"||o.status==="aborted")return He;a.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),a.value!=="__proto__"&&(typeof o.value<"u"||i.alwaysSet)&&(r[a.value]=o.value)}return{status:t.value,value:r}}}const He=Object.freeze({status:"aborted"}),ko=e=>({status:"dirty",value:e}),Pn=e=>({status:"valid",value:e}),dm=e=>e.status==="aborted",fm=e=>e.status==="dirty",Pa=e=>e.status==="valid",_l=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 zr{constructor(t,n,r,i){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=i}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const gb=(e,t)=>{if(Pa(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new er(e.common.issues);return this._error=n,this._error}}};function lt(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(o,s)=>{const{message:l}=e;return o.code==="invalid_enum_value"?{message:l??s.defaultError}:typeof s.data>"u"?{message:l??r??s.defaultError}:o.code!=="invalid_type"?{message:s.defaultError}:{message:l??n??s.defaultError}},description:i}}class ht{get description(){return this._def.description}_getType(t){return ci(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:ci(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new On,ctx:{common:t.parent.common,data:t.data,parsedType:ci(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(_l(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:ci(t)},i=this._parseSync({data:t,path:r.path,parent:r});return gb(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:ci(t)};if(!this["~standard"].async)try{const a=this._parseSync({data:t,path:[],parent:n});return Pa(a)?{value:a.value}:{issues:n.common.issues}}catch(a){(i=(r=a==null?void 0:a.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(a=>Pa(a)?{value:a.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:ci(t)},i=this._parse({data:t,path:r.path,parent:r}),a=await(_l(i)?i:Promise.resolve(i));return gb(r,a)}refine(t,n){const r=i=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(i):n;return this._refinement((i,a)=>{const o=t(i),s=()=>a.addIssue({code:he.custom,...r(i)});return typeof Promise<"u"&&o instanceof Promise?o.then(l=>l?!0:(s(),!1)):o?!0:(s(),!1)})}refinement(t,n){return this._refinement((r,i)=>t(r)?!0:(i.addIssue(typeof n=="function"?n(r,i):n),!1))}_refinement(t){return new Sr({schema:this,typeName:qe.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 Lr.create(this,this._def)}nullable(){return Xi.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Cr.create(this)}promise(){return Qo.create(this,this._def)}or(t){return $l.create([this,t],this._def)}and(t){return kl.create(this,t,this._def)}transform(t){return new Sr({...lt(this._def),schema:this,typeName:qe.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Rl({...lt(this._def),innerType:this,defaultValue:n,typeName:qe.ZodDefault})}brand(){return new Jg({typeName:qe.ZodBranded,type:this,...lt(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Dl({...lt(this._def),innerType:this,catchValue:n,typeName:qe.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return bc.create(this,t)}readonly(){return jl.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const KA=/^c[^\s-]{8,}$/i,JA=/^[0-9a-z]+$/,QA=/^[0-9A-HJKMNP-TV-Z]{26}$/i,e9=/^[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,t9=/^[a-z0-9_-]{21}$/i,n9=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,r9=/^[-+]?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)?)??$/,i9=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,a9="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Gh;const o9=/^(?:(?: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])$/,s9=/^(?:(?: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])$/,l9=/^(([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]))$/,c9=/^(([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])$/,u9=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,d9=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,N4="((\\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])))",f9=new RegExp(`^${N4}$`);function P4(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 h9(e){return new RegExp(`^${P4(e)}$`)}function L4(e){let t=`${N4}T${P4(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 p9(e,t){return!!((t==="v4"||!t)&&o9.test(e)||(t==="v6"||!t)&&l9.test(e))}function m9(e,t){if(!n9.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 g9(e,t){return!!((t==="v4"||!t)&&s9.test(e)||(t==="v6"||!t)&&c9.test(e))}class wr extends ht{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Se.string){const a=this._getOrReturnCtx(t);return _e(a,{code:he.invalid_type,expected:Se.string,received:a.parsedType}),He}const r=new On;let i;for(const a of this._def.checks)if(a.kind==="min")t.data.length<a.value&&(i=this._getOrReturnCtx(t,i),_e(i,{code:he.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),r.dirty());else if(a.kind==="max")t.data.length>a.value&&(i=this._getOrReturnCtx(t,i),_e(i,{code:he.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),r.dirty());else if(a.kind==="length"){const o=t.data.length>a.value,s=t.data.length<a.value;(o||s)&&(i=this._getOrReturnCtx(t,i),o?_e(i,{code:he.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):s&&_e(i,{code:he.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),r.dirty())}else if(a.kind==="email")i9.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"email",code:he.invalid_string,message:a.message}),r.dirty());else if(a.kind==="emoji")Gh||(Gh=new RegExp(a9,"u")),Gh.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"emoji",code:he.invalid_string,message:a.message}),r.dirty());else if(a.kind==="uuid")e9.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"uuid",code:he.invalid_string,message:a.message}),r.dirty());else if(a.kind==="nanoid")t9.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"nanoid",code:he.invalid_string,message:a.message}),r.dirty());else if(a.kind==="cuid")KA.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"cuid",code:he.invalid_string,message:a.message}),r.dirty());else if(a.kind==="cuid2")JA.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"cuid2",code:he.invalid_string,message:a.message}),r.dirty());else if(a.kind==="ulid")QA.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"ulid",code:he.invalid_string,message:a.message}),r.dirty());else if(a.kind==="url")try{new URL(t.data)}catch{i=this._getOrReturnCtx(t,i),_e(i,{validation:"url",code:he.invalid_string,message:a.message}),r.dirty()}else a.kind==="regex"?(a.regex.lastIndex=0,a.regex.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"regex",code:he.invalid_string,message:a.message}),r.dirty())):a.kind==="trim"?t.data=t.data.trim():a.kind==="includes"?t.data.includes(a.value,a.position)||(i=this._getOrReturnCtx(t,i),_e(i,{code:he.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),r.dirty()):a.kind==="toLowerCase"?t.data=t.data.toLowerCase():a.kind==="toUpperCase"?t.data=t.data.toUpperCase():a.kind==="startsWith"?t.data.startsWith(a.value)||(i=this._getOrReturnCtx(t,i),_e(i,{code:he.invalid_string,validation:{startsWith:a.value},message:a.message}),r.dirty()):a.kind==="endsWith"?t.data.endsWith(a.value)||(i=this._getOrReturnCtx(t,i),_e(i,{code:he.invalid_string,validation:{endsWith:a.value},message:a.message}),r.dirty()):a.kind==="datetime"?L4(a).test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{code:he.invalid_string,validation:"datetime",message:a.message}),r.dirty()):a.kind==="date"?f9.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{code:he.invalid_string,validation:"date",message:a.message}),r.dirty()):a.kind==="time"?h9(a).test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{code:he.invalid_string,validation:"time",message:a.message}),r.dirty()):a.kind==="duration"?r9.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"duration",code:he.invalid_string,message:a.message}),r.dirty()):a.kind==="ip"?p9(t.data,a.version)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"ip",code:he.invalid_string,message:a.message}),r.dirty()):a.kind==="jwt"?m9(t.data,a.alg)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"jwt",code:he.invalid_string,message:a.message}),r.dirty()):a.kind==="cidr"?g9(t.data,a.version)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"cidr",code:he.invalid_string,message:a.message}),r.dirty()):a.kind==="base64"?u9.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"base64",code:he.invalid_string,message:a.message}),r.dirty()):a.kind==="base64url"?d9.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"base64url",code:he.invalid_string,message:a.message}),r.dirty()):wt.assertNever(a);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 wr({...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 wr({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new wr({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new wr({...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}}wr.create=e=>new wr({checks:[],typeName:qe.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...lt(e)});function v9(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,a=Number.parseInt(e.toFixed(i).replace(".","")),o=Number.parseInt(t.toFixed(i).replace(".",""));return a%o/10**i}class Yi extends ht{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)!==Se.number){const a=this._getOrReturnCtx(t);return _e(a,{code:he.invalid_type,expected:Se.number,received:a.parsedType}),He}let r;const i=new On;for(const a of this._def.checks)a.kind==="int"?wt.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),_e(r,{code:he.invalid_type,expected:"integer",received:"float",message:a.message}),i.dirty()):a.kind==="min"?(a.inclusive?t.data<a.value:t.data<=a.value)&&(r=this._getOrReturnCtx(t,r),_e(r,{code:he.too_small,minimum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(r=this._getOrReturnCtx(t,r),_e(r,{code:he.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):a.kind==="multipleOf"?v9(t.data,a.value)!==0&&(r=this._getOrReturnCtx(t,r),_e(r,{code:he.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):a.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),_e(r,{code:he.not_finite,message:a.message}),i.dirty()):wt.assertNever(a);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 Yi({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Oe.toString(i)}]})}_addCheck(t){return new Yi({...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"&&wt.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}Yi.create=e=>new Yi({checks:[],typeName:qe.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...lt(e)});class Gi extends ht{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)!==Se.bigint)return this._getInvalidInput(t);let r;const i=new On;for(const a of this._def.checks)a.kind==="min"?(a.inclusive?t.data<a.value:t.data<=a.value)&&(r=this._getOrReturnCtx(t,r),_e(r,{code:he.too_small,type:"bigint",minimum:a.value,inclusive:a.inclusive,message:a.message}),i.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(r=this._getOrReturnCtx(t,r),_e(r,{code:he.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),i.dirty()):a.kind==="multipleOf"?t.data%a.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),_e(r,{code:he.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):wt.assertNever(a);return{status:i.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return _e(n,{code:he.invalid_type,expected:Se.bigint,received:n.parsedType}),He}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 Gi({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Oe.toString(i)}]})}_addCheck(t){return new Gi({...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}}Gi.create=e=>new Gi({checks:[],typeName:qe.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...lt(e)});class Cl extends ht{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Se.boolean){const r=this._getOrReturnCtx(t);return _e(r,{code:he.invalid_type,expected:Se.boolean,received:r.parsedType}),He}return Pn(t.data)}}Cl.create=e=>new Cl({typeName:qe.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...lt(e)});class La extends ht{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Se.date){const a=this._getOrReturnCtx(t);return _e(a,{code:he.invalid_type,expected:Se.date,received:a.parsedType}),He}if(Number.isNaN(t.data.getTime())){const a=this._getOrReturnCtx(t);return _e(a,{code:he.invalid_date}),He}const r=new On;let i;for(const a of this._def.checks)a.kind==="min"?t.data.getTime()<a.value&&(i=this._getOrReturnCtx(t,i),_e(i,{code:he.too_small,message:a.message,inclusive:!0,exact:!1,minimum:a.value,type:"date"}),r.dirty()):a.kind==="max"?t.data.getTime()>a.value&&(i=this._getOrReturnCtx(t,i),_e(i,{code:he.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),r.dirty()):wt.assertNever(a);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new La({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message: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}}La.create=e=>new La({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:qe.ZodDate,...lt(e)});class Hu extends ht{_parse(t){if(this._getType(t)!==Se.symbol){const r=this._getOrReturnCtx(t);return _e(r,{code:he.invalid_type,expected:Se.symbol,received:r.parsedType}),He}return Pn(t.data)}}Hu.create=e=>new Hu({typeName:qe.ZodSymbol,...lt(e)});class Sl extends ht{_parse(t){if(this._getType(t)!==Se.undefined){const r=this._getOrReturnCtx(t);return _e(r,{code:he.invalid_type,expected:Se.undefined,received:r.parsedType}),He}return Pn(t.data)}}Sl.create=e=>new Sl({typeName:qe.ZodUndefined,...lt(e)});class Tl extends ht{_parse(t){if(this._getType(t)!==Se.null){const r=this._getOrReturnCtx(t);return _e(r,{code:he.invalid_type,expected:Se.null,received:r.parsedType}),He}return Pn(t.data)}}Tl.create=e=>new Tl({typeName:qe.ZodNull,...lt(e)});class Jo extends ht{constructor(){super(...arguments),this._any=!0}_parse(t){return Pn(t.data)}}Jo.create=e=>new Jo({typeName:qe.ZodAny,...lt(e)});class Aa extends ht{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Pn(t.data)}}Aa.create=e=>new Aa({typeName:qe.ZodUnknown,...lt(e)});class xi extends ht{_parse(t){const n=this._getOrReturnCtx(t);return _e(n,{code:he.invalid_type,expected:Se.never,received:n.parsedType}),He}}xi.create=e=>new xi({typeName:qe.ZodNever,...lt(e)});class Vu extends ht{_parse(t){if(this._getType(t)!==Se.undefined){const r=this._getOrReturnCtx(t);return _e(r,{code:he.invalid_type,expected:Se.void,received:r.parsedType}),He}return Pn(t.data)}}Vu.create=e=>new Vu({typeName:qe.ZodVoid,...lt(e)});class Cr extends ht{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),i=this._def;if(n.parsedType!==Se.array)return _e(n,{code:he.invalid_type,expected:Se.array,received:n.parsedType}),He;if(i.exactLength!==null){const o=n.data.length>i.exactLength.value,s=n.data.length<i.exactLength.value;(o||s)&&(_e(n,{code:o?he.too_big:he.too_small,minimum:s?i.exactLength.value:void 0,maximum:o?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),r.dirty())}if(i.minLength!==null&&n.data.length<i.minLength.value&&(_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((o,s)=>i.type._parseAsync(new zr(n,o,n.path,s)))).then(o=>On.mergeArray(r,o));const a=[...n.data].map((o,s)=>i.type._parseSync(new zr(n,o,n.path,s)));return On.mergeArray(r,a)}get element(){return this._def.type}min(t,n){return new Cr({...this._def,minLength:{value:t,message:Oe.toString(n)}})}max(t,n){return new Cr({...this._def,maxLength:{value:t,message:Oe.toString(n)}})}length(t,n){return new Cr({...this._def,exactLength:{value:t,message:Oe.toString(n)}})}nonempty(t){return this.min(1,t)}}Cr.create=(e,t)=>new Cr({type:e,minLength:null,maxLength:null,exactLength:null,typeName:qe.ZodArray,...lt(t)});function $o(e){if(e instanceof tn){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Lr.create($o(r))}return new tn({...e._def,shape:()=>t})}else return e instanceof Cr?new Cr({...e._def,type:$o(e.element)}):e instanceof Lr?Lr.create($o(e.unwrap())):e instanceof Xi?Xi.create($o(e.unwrap())):e instanceof Wr?Wr.create(e.items.map(t=>$o(t))):e}class tn extends ht{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=wt.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==Se.object){const c=this._getOrReturnCtx(t);return _e(c,{code:he.invalid_type,expected:Se.object,received:c.parsedType}),He}const{status:r,ctx:i}=this._processInputParams(t),{shape:a,keys:o}=this._getCached(),s=[];if(!(this._def.catchall instanceof xi&&this._def.unknownKeys==="strip"))for(const c in i.data)o.includes(c)||s.push(c);const l=[];for(const c of o){const u=a[c],d=i.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new zr(i,d,i.path,c)),alwaysSet:c in i.data})}if(this._def.catchall instanceof xi){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 zr(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=>On.mergeObjectSync(r,c)):On.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return Oe.errToObj,new tn({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var a,o;const i=((o=(a=this._def).errorMap)==null?void 0:o.call(a,n,r).message)??r.defaultError;return n.code==="unrecognized_keys"?{message:Oe.errToObj(t).message??i}:{message:i}}}:{}})}strip(){return new tn({...this._def,unknownKeys:"strip"})}passthrough(){return new tn({...this._def,unknownKeys:"passthrough"})}extend(t){return new tn({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new tn({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:qe.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new tn({...this._def,catchall:t})}pick(t){const n={};for(const r of wt.objectKeys(t))t[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new tn({...this._def,shape:()=>n})}omit(t){const n={};for(const r of wt.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new tn({...this._def,shape:()=>n})}deepPartial(){return $o(this)}partial(t){const n={};for(const r of wt.objectKeys(this.shape)){const i=this.shape[r];t&&!t[r]?n[r]=i:n[r]=i.optional()}return new tn({...this._def,shape:()=>n})}required(t){const n={};for(const r of wt.objectKeys(this.shape))if(t&&!t[r])n[r]=this.shape[r];else{let a=this.shape[r];for(;a instanceof Lr;)a=a._def.innerType;n[r]=a}return new tn({...this._def,shape:()=>n})}keyof(){return F4(wt.objectKeys(this.shape))}}tn.create=(e,t)=>new tn({shape:()=>e,unknownKeys:"strip",catchall:xi.create(),typeName:qe.ZodObject,...lt(t)});tn.strictCreate=(e,t)=>new tn({shape:()=>e,unknownKeys:"strict",catchall:xi.create(),typeName:qe.ZodObject,...lt(t)});tn.lazycreate=(e,t)=>new tn({shape:e,unknownKeys:"strip",catchall:xi.create(),typeName:qe.ZodObject,...lt(t)});class $l extends ht{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function i(a){for(const s of a)if(s.result.status==="valid")return s.result;for(const s of a)if(s.result.status==="dirty")return n.common.issues.push(...s.ctx.common.issues),s.result;const o=a.map(s=>new er(s.ctx.common.issues));return _e(n,{code:he.invalid_union,unionErrors:o}),He}if(n.common.async)return Promise.all(r.map(async a=>{const o={...n,common:{...n.common,issues:[]},parent:null};return{result:await a._parseAsync({data:n.data,path:n.path,parent:o}),ctx:o}})).then(i);{let a;const o=[];for(const 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"&&!a&&(a={result:u,ctx:c}),c.common.issues.length&&o.push(c.common.issues)}if(a)return n.common.issues.push(...a.ctx.common.issues),a.result;const s=o.map(l=>new er(l));return _e(n,{code:he.invalid_union,unionErrors:s}),He}}get options(){return this._def.options}}$l.create=(e,t)=>new $l({options:e,typeName:qe.ZodUnion,...lt(t)});const ii=e=>e instanceof El?ii(e.schema):e instanceof Sr?ii(e.innerType()):e instanceof Ol?[e.value]:e instanceof Zi?e.options:e instanceof Al?wt.objectValues(e.enum):e instanceof Rl?ii(e._def.innerType):e instanceof Sl?[void 0]:e instanceof Tl?[null]:e instanceof Lr?[void 0,...ii(e.unwrap())]:e instanceof Xi?[null,...ii(e.unwrap())]:e instanceof Jg||e instanceof jl?ii(e.unwrap()):e instanceof Dl?ii(e._def.innerType):[];class Jd extends ht{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Se.object)return _e(n,{code:he.invalid_type,expected:Se.object,received:n.parsedType}),He;const r=this.discriminator,i=n.data[r],a=this.optionsMap.get(i);return a?n.common.async?a._parseAsync({data:n.data,path:n.path,parent:n}):a._parseSync({data:n.data,path:n.path,parent:n}):(_e(n,{code:he.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),He)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const i=new Map;for(const a of n){const o=ii(a.shape[t]);if(!o.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const s of o){if(i.has(s))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(s)}`);i.set(s,a)}}return new Jd({typeName:qe.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i,...lt(r)})}}function hm(e,t){const n=ci(e),r=ci(t);if(e===t)return{valid:!0,data:e};if(n===Se.object&&r===Se.object){const i=wt.objectKeys(t),a=wt.objectKeys(e).filter(s=>i.indexOf(s)!==-1),o={...e,...t};for(const s of a){const l=hm(e[s],t[s]);if(!l.valid)return{valid:!1};o[s]=l.data}return{valid:!0,data:o}}else if(n===Se.array&&r===Se.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let a=0;a<e.length;a++){const o=e[a],s=t[a],l=hm(o,s);if(!l.valid)return{valid:!1};i.push(l.data)}return{valid:!0,data:i}}else return n===Se.date&&r===Se.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class kl extends ht{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=(a,o)=>{if(dm(a)||dm(o))return He;const s=hm(a.value,o.value);return s.valid?((fm(a)||fm(o))&&n.dirty(),{status:n.value,value:s.data}):(_e(r,{code:he.invalid_intersection_types}),He)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([a,o])=>i(a,o)):i(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}kl.create=(e,t,n)=>new kl({left:e,right:t,typeName:qe.ZodIntersection,...lt(n)});class Wr extends ht{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Se.array)return _e(r,{code:he.invalid_type,expected:Se.array,received:r.parsedType}),He;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"}),He;!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 a=[...r.data].map((o,s)=>{const l=this._def.items[s]||this._def.rest;return l?l._parse(new zr(r,o,r.path,s)):null}).filter(o=>!!o);return r.common.async?Promise.all(a).then(o=>On.mergeArray(n,o)):On.mergeArray(n,a)}get items(){return this._def.items}rest(t){return new Wr({...this._def,rest:t})}}Wr.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Wr({items:e,typeName:qe.ZodTuple,rest:null,...lt(t)})};class Ml extends ht{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!==Se.object)return _e(r,{code:he.invalid_type,expected:Se.object,received:r.parsedType}),He;const i=[],a=this._def.keyType,o=this._def.valueType;for(const s in r.data)i.push({key:a._parse(new zr(r,s,r.path,s)),value:o._parse(new zr(r,r.data[s],r.path,s)),alwaysSet:s in r.data});return r.common.async?On.mergeObjectAsync(n,i):On.mergeObjectSync(n,i)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof ht?new Ml({keyType:t,valueType:n,typeName:qe.ZodRecord,...lt(r)}):new Ml({keyType:wr.create(),valueType:t,typeName:qe.ZodRecord,...lt(n)})}}class qu extends ht{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!==Se.map)return _e(r,{code:he.invalid_type,expected:Se.map,received:r.parsedType}),He;const i=this._def.keyType,a=this._def.valueType,o=[...r.data.entries()].map(([s,l],c)=>({key:i._parse(new zr(r,s,r.path,[c,"key"])),value:a._parse(new zr(r,l,r.path,[c,"value"]))}));if(r.common.async){const s=new Map;return Promise.resolve().then(async()=>{for(const l of o){const c=await l.key,u=await l.value;if(c.status==="aborted"||u.status==="aborted")return He;(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 o){const c=l.key,u=l.value;if(c.status==="aborted"||u.status==="aborted")return He;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),s.set(c.value,u.value)}return{status:n.value,value:s}}}}qu.create=(e,t,n)=>new qu({valueType:t,keyType:e,typeName:qe.ZodMap,...lt(n)});class Fa extends ht{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Se.set)return _e(r,{code:he.invalid_type,expected:Se.set,received:r.parsedType}),He;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 a=this._def.valueType;function o(l){const c=new Set;for(const u of l){if(u.status==="aborted")return He;u.status==="dirty"&&n.dirty(),c.add(u.value)}return{status:n.value,value:c}}const s=[...r.data.values()].map((l,c)=>a._parse(new zr(r,l,r.path,c)));return r.common.async?Promise.all(s).then(l=>o(l)):o(s)}min(t,n){return new Fa({...this._def,minSize:{value:t,message:Oe.toString(n)}})}max(t,n){return new Fa({...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)}}Fa.create=(e,t)=>new Fa({valueType:e,minSize:null,maxSize:null,typeName:qe.ZodSet,...lt(t)});class Do extends ht{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Se.function)return _e(n,{code:he.invalid_type,expected:Se.function,received:n.parsedType}),He;function r(s,l){return Uu({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Wu(),Ko].filter(c=>!!c),issueData:{code:he.invalid_arguments,argumentsError:l}})}function i(s,l){return Uu({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Wu(),Ko].filter(c=>!!c),issueData:{code:he.invalid_return_type,returnTypeError:l}})}const a={errorMap:n.common.contextualErrorMap},o=n.data;if(this._def.returns instanceof Qo){const s=this;return Pn(async function(...l){const c=new er([]),u=await s._def.args.parseAsync(l,a).catch(h=>{throw c.addIssue(r(l,h)),c}),d=await Reflect.apply(o,this,u);return await s._def.returns._def.type.parseAsync(d,a).catch(h=>{throw c.addIssue(i(d,h)),c})})}else{const s=this;return Pn(function(...l){const c=s._def.args.safeParse(l,a);if(!c.success)throw new er([r(l,c.error)]);const u=Reflect.apply(o,this,c.data),d=s._def.returns.safeParse(u,a);if(!d.success)throw new er([i(u,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new Do({...this._def,args:Wr.create(t).rest(Aa.create())})}returns(t){return new Do({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new Do({args:t||Wr.create([]).rest(Aa.create()),returns:n||Aa.create(),typeName:qe.ZodFunction,...lt(r)})}}class El extends ht{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})}}El.create=(e,t)=>new El({getter:e,typeName:qe.ZodLazy,...lt(t)});class Ol extends ht{_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}),He}return{status:"valid",value:t.data}}get value(){return this._def.value}}Ol.create=(e,t)=>new Ol({value:e,typeName:qe.ZodLiteral,...lt(t)});function F4(e,t){return new Zi({values:e,typeName:qe.ZodEnum,...lt(t)})}class Zi extends ht{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return _e(n,{expected:wt.joinValues(r),received:n.parsedType,code:he.invalid_type}),He}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}),He}return Pn(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Zi.create(t,{...this._def,...n})}exclude(t,n=this._def){return Zi.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}Zi.create=F4;class Al extends ht{_parse(t){const n=wt.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==Se.string&&r.parsedType!==Se.number){const i=wt.objectValues(n);return _e(r,{expected:wt.joinValues(i),received:r.parsedType,code:he.invalid_type}),He}if(this._cache||(this._cache=new Set(wt.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const i=wt.objectValues(n);return _e(r,{received:r.data,code:he.invalid_enum_value,options:i}),He}return Pn(t.data)}get enum(){return this._def.values}}Al.create=(e,t)=>new Al({values:e,typeName:qe.ZodNativeEnum,...lt(t)});class Qo extends ht{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Se.promise&&n.common.async===!1)return _e(n,{code:he.invalid_type,expected:Se.promise,received:n.parsedType}),He;const r=n.parsedType===Se.promise?n.data:Promise.resolve(n.data);return Pn(r.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Qo.create=(e,t)=>new Qo({type:e,typeName:qe.ZodPromise,...lt(t)});class Sr extends ht{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===qe.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=this._def.effect||null,a={addIssue:o=>{_e(r,o),o.fatal?n.abort():n.dirty()},get path(){return r.path}};if(a.addIssue=a.addIssue.bind(a),i.type==="preprocess"){const o=i.transform(r.data,a);if(r.common.async)return Promise.resolve(o).then(async s=>{if(n.value==="aborted")return He;const l=await this._def.schema._parseAsync({data:s,path:r.path,parent:r});return l.status==="aborted"?He:l.status==="dirty"||n.value==="dirty"?ko(l.value):l});{if(n.value==="aborted")return He;const s=this._def.schema._parseSync({data:o,path:r.path,parent:r});return s.status==="aborted"?He:s.status==="dirty"||n.value==="dirty"?ko(s.value):s}}if(i.type==="refinement"){const o=s=>{const l=i.refinement(s,a);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"?He:(s.status==="dirty"&&n.dirty(),o(s.value),{status:n.value,value:s.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>s.status==="aborted"?He:(s.status==="dirty"&&n.dirty(),o(s.value).then(()=>({status:n.value,value:s.value}))))}if(i.type==="transform")if(r.common.async===!1){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Pa(o))return He;const s=i.transform(o.value,a);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:s}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(o=>Pa(o)?Promise.resolve(i.transform(o.value,a)).then(s=>({status:n.value,value:s})):He);wt.assertNever(i)}}Sr.create=(e,t,n)=>new Sr({schema:e,typeName:qe.ZodEffects,effect:t,...lt(n)});Sr.createWithPreprocess=(e,t,n)=>new Sr({schema:t,effect:{type:"preprocess",transform:e},typeName:qe.ZodEffects,...lt(n)});class Lr extends ht{_parse(t){return this._getType(t)===Se.undefined?Pn(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Lr.create=(e,t)=>new Lr({innerType:e,typeName:qe.ZodOptional,...lt(t)});class Xi extends ht{_parse(t){return this._getType(t)===Se.null?Pn(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Xi.create=(e,t)=>new Xi({innerType:e,typeName:qe.ZodNullable,...lt(t)});class Rl extends ht{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===Se.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Rl.create=(e,t)=>new Rl({innerType:e,typeName:qe.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...lt(t)});class Dl extends ht{_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 _l(i)?i.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new er(r.common.issues)},input:r.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new er(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Dl.create=(e,t)=>new Dl({innerType:e,typeName:qe.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...lt(t)});class Yu extends ht{_parse(t){if(this._getType(t)!==Se.nan){const r=this._getOrReturnCtx(t);return _e(r,{code:he.invalid_type,expected:Se.nan,received:r.parsedType}),He}return{status:"valid",value:t.data}}}Yu.create=e=>new Yu({typeName:qe.ZodNaN,...lt(e)});const b9=Symbol("zod_brand");class Jg extends ht{_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 bc extends ht{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const a=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?He:a.status==="dirty"?(n.dirty(),ko(a.value)):this._def.out._parseAsync({data:a.value,path:r.path,parent:r})})();{const i=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?He: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 bc({in:t,out:n,typeName:qe.ZodPipeline})}}class jl extends ht{_parse(t){const n=this._def.innerType._parse(t),r=i=>(Pa(i)&&(i.value=Object.freeze(i.value)),i);return _l(n)?n.then(i=>r(i)):r(n)}unwrap(){return this._def.innerType}}jl.create=(e,t)=>new jl({innerType:e,typeName:qe.ZodReadonly,...lt(t)});function vb(e,t){const n=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof n=="string"?{message:n}:n}function B4(e,t={},n){return e?Jo.create().superRefine((r,i)=>{const a=e(r);if(a instanceof Promise)return a.then(o=>{if(!o){const s=vb(t,r),l=s.fatal??n??!0;i.addIssue({code:"custom",...s,fatal:l})}});if(!a){const o=vb(t,r),s=o.fatal??n??!0;i.addIssue({code:"custom",...o,fatal:s})}}):Jo.create()}const y9={object:tn.lazycreate};var qe;(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"})(qe||(qe={}));const x9=(e,t={message:`Input not instance of ${e.name}`})=>B4(n=>n instanceof e,t),Qg=wr.create,z4=Yi.create,w9=Yu.create,_9=Gi.create,W4=Cl.create,C9=La.create,S9=Hu.create,T9=Sl.create,$9=Tl.create,U4=Jo.create,k9=Aa.create,M9=xi.create,E9=Vu.create,H4=Cr.create,di=tn.create,O9=tn.strictCreate,A9=$l.create,R9=Jd.create,D9=kl.create,j9=Wr.create,I9=Ml.create,N9=qu.create,P9=Fa.create,L9=Do.create,F9=El.create,B9=Ol.create,V4=Zi.create,z9=Al.create,W9=Qo.create,bb=Sr.create,U9=Lr.create,H9=Xi.create,V9=Sr.createWithPreprocess,q9=bc.create,Y9=()=>Qg().optional(),G9=()=>z4().optional(),Z9=()=>W4().optional(),rl={string:e=>wr.create({...e,coerce:!0}),number:e=>Yi.create({...e,coerce:!0}),boolean:e=>Cl.create({...e,coerce:!0}),bigint:e=>Gi.create({...e,coerce:!0}),date:e=>La.create({...e,coerce:!0})},X9=He,il=Object.freeze(Object.defineProperty({__proto__:null,BRAND:b9,DIRTY:ko,EMPTY_PATH:XA,INVALID:He,NEVER:X9,OK:Pn,ParseStatus:On,Schema:ht,ZodAny:Jo,ZodArray:Cr,ZodBigInt:Gi,ZodBoolean:Cl,ZodBranded:Jg,ZodCatch:Dl,ZodDate:La,ZodDefault:Rl,ZodDiscriminatedUnion:Jd,ZodEffects:Sr,ZodEnum:Zi,ZodError:er,get ZodFirstPartyTypeKind(){return qe},ZodFunction:Do,ZodIntersection:kl,ZodIssueCode:he,ZodLazy:El,ZodLiteral:Ol,ZodMap:qu,ZodNaN:Yu,ZodNativeEnum:Al,ZodNever:xi,ZodNull:Tl,ZodNullable:Xi,ZodNumber:Yi,ZodObject:tn,ZodOptional:Lr,ZodParsedType:Se,ZodPipeline:bc,ZodPromise:Qo,ZodReadonly:jl,ZodRecord:Ml,ZodSchema:ht,ZodSet:Fa,ZodString:wr,ZodSymbol:Hu,ZodTransformer:Sr,ZodTuple:Wr,ZodType:ht,ZodUndefined:Sl,ZodUnion:$l,ZodUnknown:Aa,ZodVoid:Vu,addIssueToContext:_e,any:U4,array:H4,bigint:_9,boolean:W4,coerce:rl,custom:B4,date:C9,datetimeRegex:L4,defaultErrorMap:Ko,discriminatedUnion:R9,effect:bb,enum:V4,function:L9,getErrorMap:Wu,getParsedType:ci,instanceof:x9,intersection:D9,isAborted:dm,isAsync:_l,isDirty:fm,isValid:Pa,late:y9,lazy:F9,literal:B9,makeIssue:Uu,map:N9,nan:w9,nativeEnum:z9,never:M9,null:$9,nullable:H9,number:z4,object:di,get objectUtil(){return um},oboolean:Z9,onumber:G9,optional:U9,ostring:Y9,pipeline:q9,preprocess:V9,promise:W9,quotelessJson:GA,record:I9,set:P9,setErrorMap:ZA,strictObject:O9,string:Qg,symbol:S9,transformer:bb,tuple:j9,undefined:T9,union:A9,unknown:k9,get util(){return wt},void:E9},Symbol.toStringTag,{value:"Module"})),Qd=()=>{const e=Ie.c(41),{texts:t}=v.useContext(rn),{formValidation:n}=t;let r;e[0]!==n?(r=O=>{let A=(O!=null&&O.useCoerce?rl:il).string({invalid_type_error:n.required,required_error:n.required});return O!=null&&O.email&&(A=A.email(n.invalidEmail)),O!=null&&O.length&&(A=A.min(O.length,n.length(O.length))),O!=null&&O.minLength&&(A=A.min(O.minLength,n.minLength(O.minLength))),O!=null&&O.maxLength&&(A=A.max(O.maxLength,n.maxLength(O.maxLength))),O!=null&&O.numeric&&(A=A.regex(/^\d+$/,n.noCharactersOtherThanNumbers)),O!=null&&O.regex&&(A=A.regex(O.regex,n.invalidFormat)),A.transform(K9)},e[0]=n,e[1]=r):r=e[1];const i=r;let a;e[2]!==i?(a=O=>i(O).nullable().optional().transform(J9),e[2]=i,e[3]=a):a=e[3];const o=a;let s;e[4]!==n?(s=O=>{const A=(O==null?void 0:O.min)??Number.MIN_SAFE_INTEGER,I=(O==null?void 0:O.max)??Number.MAX_SAFE_INTEGER,F=(O!=null&&O.useCoerce?rl:il).number({invalid_type_error:n.required,required_error:n.required}).min(A,n.lessThanMin(A)).max(I,n.moreThanMax(I));return F.transform(Q9),F},e[4]=n,e[5]=s):s=e[5];const l=s;let c;e[6]!==l?(c=O=>l(O).nullable().optional().transform(eR),e[6]=l,e[7]=c):c=e[7];const u=c;let d;e[8]!==n.required?(d=O=>(O!=null&&O.useCoerce?rl:il).boolean({invalid_type_error:n.required,required_error:n.required}).transform(tR),e[8]=n.required,e[9]=d):d=e[9];const f=d;let h;e[10]!==n.invalidDate||e[11]!==n.required?(h=O=>(O!=null&&O.useCoerce?rl:il).string({invalid_type_error:n.required,required_error:n.required}).refine(n4,{message:n.invalidDate}).transform(nR),e[10]=n.invalidDate,e[11]=n.required,e[12]=h):h=e[12];const p=h;let m;e[13]!==p?(m=O=>p(O).nullable().optional().transform(rR),e[13]=p,e[14]=m):m=e[14];const g=m;let x;e[15]!==n.required?(x=(O,A)=>V4(O,{invalid_type_error:n.required,required_error:n.required}).transform(iR),e[15]=n.required,e[16]=x):x=e[16];const _=x;let w;e[17]!==_?(w=(O,A)=>_(O,A).nullable().transform(aR),e[17]=_,e[18]=w):w=e[18];const C=w;let b;e[19]!==u?(b=O=>di({id:u({useCoerce:!0})}).nullable().transform(oR),e[19]=u,e[20]=b):b=e[20];const S=b;let M;e[21]!==l?(M=O=>di({id:l()}).transform(sR),e[21]=l,e[22]=M):M=e[22];const $=M;let k;e[23]!==o?(k=O=>di({id:o({useCoerce:!0})}).nullable().transform(lR),e[23]=o,e[24]=k):k=e[24];const D=k;let T;e[25]!==i?(T=O=>di({id:i()}).transform(cR),e[25]=i,e[26]=T):T=e[26];const E=T,R=dR;let j;return e[27]!==f||e[28]!==g||e[29]!==p||e[30]!==C||e[31]!==_||e[32]!==u||e[33]!==l||e[34]!==S||e[35]!==$||e[36]!==D||e[37]!==E||e[38]!==o||e[39]!==i?(j={zString:o,zStringRequired:i,zNumber:u,zNumberRequired:l,zBool:f,zDate:g,zDateRequired:p,zEnum:C,zEnumRequired:_,zObjectIdInt:S,zObjectIdIntRequired:$,zObjectIdStr:D,zObjectIdStrRequired:E,zFile:R},e[27]=f,e[28]=g,e[29]=p,e[30]=C,e[31]=_,e[32]=u,e[33]=l,e[34]=S,e[35]=$,e[36]=D,e[37]=E,e[38]=o,e[39]=i,e[40]=j):j=e[40],j};function K9(e){return e??null}function J9(e){return e??null}function Q9(e){return e??null}function eR(e){return e??null}function tR(e){return e??null}function nR(e){return e??null}function rR(e){return e??null}function iR(e){return e??null}function aR(e){return e??null}function oR(e){return e??null}function sR(e){return e??null}function lR(e){return e??null}function cR(e){return e??null}function uR(e){return Array.from(e??[])}function dR(e){const{required:t,multiple:n,maxFileSize:r}=e;return U4().transform(uR).refine(a=>!t||(a==null?void 0:a.length)>0,"File is required.").refine(a=>n||(a==null?void 0:a.length)<=1,"Multiple files not allowed.").refine(a=>a.every(o=>o.size<=r),`Maximum file size is ${Go(r)}.`).transform(a=>(n?a:a==null?void 0:a[0])??null)}const q4=(e,t)=>{const n=Ie.c(4);let r,i;n[0]!==t||n[1]!==e?(r=()=>{const a=o=>{e.some(s=>s.current&&s.current.contains(o.target))||t()};return document.addEventListener("mouseup",a),()=>{document.removeEventListener("mouseup",a)}},i=[e,t],n[0]=t,n[1]=e,n[2]=r,n[3]=i):(r=n[2],i=n[3]),v.useEffect(r,i)},Y4=()=>{const e=Ie.c(4),{user:t}=v.useContext(Y_);let n;e[0]!==(t==null?void 0:t.permissions)?(n=(a,o)=>{const s=o===void 0?"any":o;return a.length===0?!0:s==="any"?a.some(l=>{var c;return(c=t==null?void 0:t.permissions)==null?void 0:c.includes(l)}):a.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},G4=(e,t)=>{const n=Ie.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]),v.useEffect(r,i);let a,o;n[3]!==t?(a=()=>t===void 0?fR:(document.addEventListener("keyup",t),()=>{document.removeEventListener("keyup",t)}),o=[t],n[3]=t,n[4]=a,n[5]=o):(a=n[4],o=n[5]),v.useEffect(a,o)};function fR(){}const e0=(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},Z4=()=>{const{addNotification:e}=Xd(),{texts:{clipboard:t}}=v.useContext(rn);return{copyToClipboard:v.useCallback(async r=>{var i;try{await((i=navigator.clipboard)==null?void 0:i.writeText(r)),e(t.copySuccess(r),"prompt")}catch(a){console.error(a),e(t.copyError,"danger")}},[e,t])}},yc=()=>{const e=Ie.c(7),[t,n]=v.useState(window.innerWidth),[r,i]=v.useState(window.innerHeight);let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=()=>{n(window.innerWidth),i(window.innerHeight)},e[0]=a):a=e[0];const o=a;let s,l;e[1]===Symbol.for("react.memo_cache_sentinel")?(s=()=>(window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)),l=[],e[1]=s,e[2]=l):(s=e[1],l=e[2]),v.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},X4=v.createContext({addHelmet:e=>{},removeHelmet:()=>{}}),K4=v.createContext(void 0),yb={falseIfNotInit:!1},ef=e=>{const{falseIfNotInit:t}=e===void 0?yb:e,n=t===void 0?yb.falseIfNotInit:t,r=v.useContext(K4);if(!n&&r===void 0)throw new Error("FormDisabledProvider not initilized. Probably tried to use useFormDisabledContext outside FormDisabledProvider.");return r??!1},hR="_button_1wjon_1",pR="_filled_1wjon_7",mR="_sm_1wjon_13",gR="_md_1wjon_18",vR="_lg_1wjon_23",mo={button:hR,filled:pR,sm:mR,md:gR,lg:vR},Ba=e=>{const t=Ie.c(24);let n,r,i,a,o,s;t[0]!==e?({variant:a,color:o,size:s,className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s):(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6]);const l=a===void 0?"filled":a,c=o===void 0?"primary":o,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=mo[l],p=mo[u];let m;t[7]!==f||t[8]!==h||t[9]!==p?(m=se(f,mo.button,h,p),t[7]=f,t[8]=h,t[9]=p,t[10]=m):m=t[10];let g;return t[11]!==n||t[12]!==i||t[13]!==d||t[14]!==m?(g=y.jsx(ss.Link,{to:d,className:m,...i,children:n}),t[11]=n,t[12]=i,t[13]=d,t[14]=m,t[15]=g):g=t[15],g}if(i.as==="button"||i.as===void 0){const d=`luminus-primary-button ${c} btn ${l==="outlined"?`btn-outline-${c}`:`btn-${c}`} ${r??""}`,f=mo[l],h=mo[u];let p;t[16]!==d||t[17]!==f||t[18]!==h?(p=se(d,mo.button,f,h),t[16]=d,t[17]=f,t[18]=h,t[19]=p):p=t[19];let m;return t[20]!==n||t[21]!==i||t[22]!==p?(m=y.jsx("button",{type:"button",className:p,...i,children:n}),t[20]=n,t[21]=i,t[22]=p,t[23]=m):m=t[23],m}return null},bR="_button_1r3i0_1",pm={button:bR},tf=e=>{const t=Ie.c(21);let n,r,i,a,o;t[0]!==e?({color:o,icon:i,className:r,children:n,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o):(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5]);const s=o===void 0?"primary":o;if(a.as==="link"){const l=a.href??"/",c=`luminus-context-button btn text-${s} ${r??""}`;let u;t[6]!==c?(u=se(c,pm.button),t[6]=c,t[7]=u):u=t[7];let d;return t[8]!==n||t[9]!==i||t[10]!==a||t[11]!==l||t[12]!==u?(d=y.jsxs(ss.Link,{to:l,className:u,...a,children:[i,n]}),t[8]=n,t[9]=i,t[10]=a,t[11]=l,t[12]=u,t[13]=d):d=t[13],d}if(a.as==="button"||a.as===void 0){const l=`luminus-context-button btn text-${s} ${r??""}`;let c;t[14]!==l?(c=se(l,pm.button),t[14]=l,t[15]=c):c=t[15];let u;return t[16]!==n||t[17]!==i||t[18]!==a||t[19]!==c?(u=y.jsxs("button",{type:"button",className:c,...a,children:[i,n]}),t[16]=n,t[17]=i,t[18]=a,t[19]=c,t[20]=u):u=t[20],u}return null},yR="_icon-button_15e26_1",xR="_sm_15e26_14",wR="_md_15e26_23",_R="_lg_15e26_32",Jc={"icon-button":"_icon-button_15e26_1",iconButton:yR,sm:xR,md:wR,lg:_R},xc=e=>{const t=Ie.c(23);let n,r,i,a,o,s;t[0]!==e?({type:a,color:o,size:s,children:n,className:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s):(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6]);const l=a===void 0?"button":a,c=o===void 0?"primary":o,u=s===void 0?"md":s;if(i.as==="link"){const d=i.href??"/",f=`luminus-icon-button btn text-${c} ${r??""}`,h=Jc[u];let p;t[7]!==f||t[8]!==h?(p=se(f,Jc.iconButton,h),t[7]=f,t[8]=h,t[9]=p):p=t[9];let m;return t[10]!==n||t[11]!==i||t[12]!==d||t[13]!==p?(m=y.jsx(ss.Link,{to:d,className:p,...i,children:n}),t[10]=n,t[11]=i,t[12]=d,t[13]=p,t[14]=m):m=t[14],m}if(i.as==="button"||i.as===void 0){const d=`luminus-icon-button btn text-${c} ${r??""}`,f=Jc[u];let h;t[15]!==d||t[16]!==f?(h=se(d,Jc.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 t0={},Gu={exports:{}};Gu.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",i=1,a=2,o=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]",m="[object Map]",g="[object Number]",x="[object Null]",_="[object Object]",w="[object Promise]",C="[object Proxy]",b="[object RegExp]",S="[object Set]",M="[object String]",$="[object Symbol]",k="[object Undefined]",D="[object WeakMap]",T="[object ArrayBuffer]",E="[object DataView]",R="[object Float32Array]",j="[object Float64Array]",O="[object Int8Array]",A="[object Int16Array]",I="[object Int32Array]",F="[object Uint8Array]",z="[object Uint8ClampedArray]",L="[object Uint16Array]",H="[object Uint32Array]",Y=/[\\^$.*+?()[\]{}|]/g,q=/^\[object .+?Constructor\]$/,Z=/^(?:0|[1-9]\d*)$/,X={};X[R]=X[j]=X[O]=X[A]=X[I]=X[F]=X[z]=X[L]=X[H]=!0,X[s]=X[l]=X[T]=X[u]=X[E]=X[d]=X[f]=X[h]=X[m]=X[g]=X[_]=X[b]=X[S]=X[M]=X[D]=!1;var J=typeof Hn=="object"&&Hn&&Hn.Object===Object&&Hn,ee=typeof self=="object"&&self&&self.Object===Object&&self,W=J||ee||Function("return this")(),P=t&&!t.nodeType&&t,B=P&&!0&&e&&!e.nodeType&&e,V=B&&B.exports===P,N=V&&J.process,te=function(){try{return N&&N.binding&&N.binding("util")}catch{}}(),K=te&&te.isTypedArray;function G(U,Q){for(var ue=-1,ke=U==null?0:U.length,Xt=0,ut=[];++ue<ke;){var on=U[ue];Q(on,ue,U)&&(ut[Xt++]=on)}return ut}function oe(U,Q){for(var ue=-1,ke=Q.length,Xt=U.length;++ue<ke;)U[Xt+ue]=Q[ue];return U}function ne(U,Q){for(var ue=-1,ke=U==null?0:U.length;++ue<ke;)if(Q(U[ue],ue,U))return!0;return!1}function re(U,Q){for(var ue=-1,ke=Array(U);++ue<U;)ke[ue]=Q(ue);return ke}function ae(U){return function(Q){return U(Q)}}function le(U,Q){return U.has(Q)}function ye(U,Q){return U==null?void 0:U[Q]}function ge(U){var Q=-1,ue=Array(U.size);return U.forEach(function(ke,Xt){ue[++Q]=[Xt,ke]}),ue}function be(U,Q){return function(ue){return U(Q(ue))}}function Me(U){var Q=-1,ue=Array(U.size);return U.forEach(function(ke){ue[++Q]=ke}),ue}var ce=Array.prototype,de=Function.prototype,Ce=Object.prototype,Ge=W["__core-js_shared__"],we=de.toString,ve=Ce.hasOwnProperty,Pe=function(){var U=/[^.]+$/.exec(Ge&&Ge.keys&&Ge.keys.IE_PROTO||"");return U?"Symbol(src)_1."+U:""}(),Ze=Ce.toString,_t=RegExp("^"+we.call(ve).replace(Y,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Te=V?W.Buffer:void 0,Re=W.Symbol,it=W.Uint8Array,Ue=Ce.propertyIsEnumerable,mt=ce.splice,ct=Re?Re.toStringTag:void 0,At=Object.getOwnPropertySymbols,Ke=Te?Te.isBuffer:void 0,Le=be(Object.keys,Object),Ve=co(W,"DataView"),et=co(W,"Map"),Fe=co(W,"Promise"),tt=co(W,"Set"),vt=co(W,"WeakMap"),at=co(Object,"create"),Ne=ca(Ve),Ee=ca(et),Ye=ca(Fe),xt=ca(tt),nt=ca(vt),bt=Re?Re.prototype:void 0,Jt=bt?bt.valueOf:void 0;function Ft(U){var Q=-1,ue=U==null?0:U.length;for(this.clear();++Q<ue;){var ke=U[Q];this.set(ke[0],ke[1])}}function zt(){this.__data__=at?at(null):{},this.size=0}function fn(U){var Q=this.has(U)&&delete this.__data__[U];return this.size-=Q?1:0,Q}function qt(U){var Q=this.__data__;if(at){var ue=Q[U];return ue===r?void 0:ue}return ve.call(Q,U)?Q[U]:void 0}function $e(U){var Q=this.__data__;return at?Q[U]!==void 0:ve.call(Q,U)}function Je(U,Q){var ue=this.__data__;return this.size+=this.has(U)?0:1,ue[U]=at&&Q===void 0?r:Q,this}Ft.prototype.clear=zt,Ft.prototype.delete=fn,Ft.prototype.get=qt,Ft.prototype.has=$e,Ft.prototype.set=Je;function St(U){var Q=-1,ue=U==null?0:U.length;for(this.clear();++Q<ue;){var ke=U[Q];this.set(ke[0],ke[1])}}function an(){this.__data__=[],this.size=0}function Yt(U){var Q=this.__data__,ue=Jr(Q,U);if(ue<0)return!1;var ke=Q.length-1;return ue==ke?Q.pop():mt.call(Q,ue,1),--this.size,!0}function Be(U){var Q=this.__data__,ue=Jr(Q,U);return ue<0?void 0:Q[ue][1]}function ze(U){return Jr(this.__data__,U)>-1}function ft(U,Q){var ue=this.__data__,ke=Jr(ue,U);return ke<0?(++this.size,ue.push([U,Q])):ue[ke][1]=Q,this}St.prototype.clear=an,St.prototype.delete=Yt,St.prototype.get=Be,St.prototype.has=ze,St.prototype.set=ft;function Rt(U){var Q=-1,ue=U==null?0:U.length;for(this.clear();++Q<ue;){var ke=U[Q];this.set(ke[0],ke[1])}}function Tt(){this.size=0,this.__data__={hash:new Ft,map:new(et||St),string:new Ft}}function Qe(U){var Q=$i(this,U).delete(U);return this.size-=Q?1:0,Q}function $t(U){return $i(this,U).get(U)}function vr(U){return $i(this,U).has(U)}function ln(U,Q){var ue=$i(this,U),ke=ue.size;return ue.set(U,Q),this.size+=ue.size==ke?0:1,this}Rt.prototype.clear=Tt,Rt.prototype.delete=Qe,Rt.prototype.get=$t,Rt.prototype.has=vr,Rt.prototype.set=ln;function cn(U){var Q=-1,ue=U==null?0:U.length;for(this.__data__=new Rt;++Q<ue;)this.add(U[Q])}function An(U){return this.__data__.set(U,r),this}function ia(U){return this.__data__.has(U)}cn.prototype.add=cn.prototype.push=An,cn.prototype.has=ia;function Ct(U){var Q=this.__data__=new St(U);this.size=Q.size}function aa(){this.__data__=new St,this.size=0}function Ae(U){var Q=this.__data__,ue=Q.delete(U);return this.size=Q.size,ue}function Er(U){return this.__data__.get(U)}function oa(U){return this.__data__.has(U)}function so(U,Q){var ue=this.__data__;if(ue instanceof St){var ke=ue.__data__;if(!et||ke.length<n-1)return ke.push([U,Q]),this.size=++ue.size,this;ue=this.__data__=new Rt(ke)}return ue.set(U,Q),this.size=ue.size,this}Ct.prototype.clear=aa,Ct.prototype.delete=Ae,Ct.prototype.get=Er,Ct.prototype.has=oa,Ct.prototype.set=so;function lo(U,Q){var ue=Bc(U),ke=!ue&&tT(U),Xt=!ue&&!ke&&$h(U),ut=!ue&&!ke&&!Xt&&e1(U),on=ue||ke||Xt||ut,vn=on?re(U.length,String):[],wn=vn.length;for(var Qt in U)ve.call(U,Qt)&&!(on&&(Qt=="length"||Xt&&(Qt=="offset"||Qt=="parent")||ut&&(Qt=="buffer"||Qt=="byteLength"||Qt=="byteOffset")||X5(Qt,wn)))&&vn.push(Qt);return vn}function Jr(U,Q){for(var ue=U.length;ue--;)if(Xv(U[ue][0],Q))return ue;return-1}function Pc(U,Q,ue){var ke=Q(U);return Bc(U)?ke:oe(ke,ue(U))}function Qr(U){return U==null?U===void 0?k:x:ct&&ct in Object(U)?G5(U):eT(U)}function As(U){return Ds(U)&&Qr(U)==s}function sa(U,Q,ue,ke,Xt){return U===Q?!0:U==null||Q==null||!Ds(U)&&!Ds(Q)?U!==U&&Q!==Q:Rs(U,Q,ue,ke,sa,Xt)}function Rs(U,Q,ue,ke,Xt,ut){var on=Bc(U),vn=Bc(Q),wn=on?l:ki(U),Qt=vn?l:ki(Q);wn=wn==s?_:wn,Qt=Qt==s?_:Qt;var Jn=wn==_,br=Qt==_,Cn=wn==Qt;if(Cn&&$h(U)){if(!$h(Q))return!1;on=!0,Jn=!1}if(Cn&&!Jn)return ut||(ut=new Ct),on||e1(U)?Rn(U,Q,ue,ke,Xt,ut):Sh(U,Q,wn,ue,ke,Xt,ut);if(!(ue&i)){var rr=Jn&&ve.call(U,"__wrapped__"),ir=br&&ve.call(Q,"__wrapped__");if(rr||ir){var Mi=rr?U.value():U,ei=ir?Q.value():Q;return ut||(ut=new Ct),Xt(Mi,ei,ue,ke,ut)}}return Cn?(ut||(ut=new Ct),Th(U,Q,ue,ke,Xt,ut)):!1}function Lc(U){if(!Qv(U)||J5(U))return!1;var Q=Kv(U)?_t:q;return Q.test(ca(U))}function la(U){return Ds(U)&&Jv(U.length)&&!!X[Qr(U)]}function Fc(U){if(!Q5(U))return Le(U);var Q=[];for(var ue in Object(U))ve.call(U,ue)&&ue!="constructor"&&Q.push(ue);return Q}function Rn(U,Q,ue,ke,Xt,ut){var on=ue&i,vn=U.length,wn=Q.length;if(vn!=wn&&!(on&&wn>vn))return!1;var Qt=ut.get(U);if(Qt&&ut.get(Q))return Qt==Q;var Jn=-1,br=!0,Cn=ue&a?new cn:void 0;for(ut.set(U,Q),ut.set(Q,U);++Jn<vn;){var rr=U[Jn],ir=Q[Jn];if(ke)var Mi=on?ke(ir,rr,Jn,Q,U,ut):ke(rr,ir,Jn,U,Q,ut);if(Mi!==void 0){if(Mi)continue;br=!1;break}if(Cn){if(!ne(Q,function(ei,ua){if(!le(Cn,ua)&&(rr===ei||Xt(rr,ei,ue,ke,ut)))return Cn.push(ua)})){br=!1;break}}else if(!(rr===ir||Xt(rr,ir,ue,ke,ut))){br=!1;break}}return ut.delete(U),ut.delete(Q),br}function Sh(U,Q,ue,ke,Xt,ut,on){switch(ue){case E:if(U.byteLength!=Q.byteLength||U.byteOffset!=Q.byteOffset)return!1;U=U.buffer,Q=Q.buffer;case T:return!(U.byteLength!=Q.byteLength||!ut(new it(U),new it(Q)));case u:case d:case g:return Xv(+U,+Q);case f:return U.name==Q.name&&U.message==Q.message;case b:case M:return U==Q+"";case m:var vn=ge;case S:var wn=ke&i;if(vn||(vn=Me),U.size!=Q.size&&!wn)return!1;var Qt=on.get(U);if(Qt)return Qt==Q;ke|=a,on.set(U,Q);var Jn=Rn(vn(U),vn(Q),ke,Xt,ut,on);return on.delete(U),Jn;case $:if(Jt)return Jt.call(U)==Jt.call(Q)}return!1}function Th(U,Q,ue,ke,Xt,ut){var on=ue&i,vn=Or(U),wn=vn.length,Qt=Or(Q),Jn=Qt.length;if(wn!=Jn&&!on)return!1;for(var br=wn;br--;){var Cn=vn[br];if(!(on?Cn in Q:ve.call(Q,Cn)))return!1}var rr=ut.get(U);if(rr&&ut.get(Q))return rr==Q;var ir=!0;ut.set(U,Q),ut.set(Q,U);for(var Mi=on;++br<wn;){Cn=vn[br];var ei=U[Cn],ua=Q[Cn];if(ke)var t1=on?ke(ua,ei,Cn,Q,U,ut):ke(ei,ua,Cn,U,Q,ut);if(!(t1===void 0?ei===ua||Xt(ei,ua,ue,ke,ut):t1)){ir=!1;break}Mi||(Mi=Cn=="constructor")}if(ir&&!Mi){var zc=U.constructor,Wc=Q.constructor;zc!=Wc&&"constructor"in U&&"constructor"in Q&&!(typeof zc=="function"&&zc instanceof zc&&typeof Wc=="function"&&Wc instanceof Wc)&&(ir=!1)}return ut.delete(U),ut.delete(Q),ir}function Or(U){return Pc(U,iT,Z5)}function $i(U,Q){var ue=U.__data__;return K5(Q)?ue[typeof Q=="string"?"string":"hash"]:ue.map}function co(U,Q){var ue=ye(U,Q);return Lc(ue)?ue:void 0}function G5(U){var Q=ve.call(U,ct),ue=U[ct];try{U[ct]=void 0;var ke=!0}catch{}var Xt=Ze.call(U);return ke&&(Q?U[ct]=ue:delete U[ct]),Xt}var Z5=At?function(U){return U==null?[]:(U=Object(U),G(At(U),function(Q){return Ue.call(U,Q)}))}:aT,ki=Qr;(Ve&&ki(new Ve(new ArrayBuffer(1)))!=E||et&&ki(new et)!=m||Fe&&ki(Fe.resolve())!=w||tt&&ki(new tt)!=S||vt&&ki(new vt)!=D)&&(ki=function(U){var Q=Qr(U),ue=Q==_?U.constructor:void 0,ke=ue?ca(ue):"";if(ke)switch(ke){case Ne:return E;case Ee:return m;case Ye:return w;case xt:return S;case nt:return D}return Q});function X5(U,Q){return Q=Q??o,!!Q&&(typeof U=="number"||Z.test(U))&&U>-1&&U%1==0&&U<Q}function K5(U){var Q=typeof U;return Q=="string"||Q=="number"||Q=="symbol"||Q=="boolean"?U!=="__proto__":U===null}function J5(U){return!!Pe&&Pe in U}function Q5(U){var Q=U&&U.constructor,ue=typeof Q=="function"&&Q.prototype||Ce;return U===ue}function eT(U){return Ze.call(U)}function ca(U){if(U!=null){try{return we.call(U)}catch{}try{return U+""}catch{}}return""}function Xv(U,Q){return U===Q||U!==U&&Q!==Q}var tT=As(function(){return arguments}())?As:function(U){return Ds(U)&&ve.call(U,"callee")&&!Ue.call(U,"callee")},Bc=Array.isArray;function nT(U){return U!=null&&Jv(U.length)&&!Kv(U)}var $h=Ke||oT;function rT(U,Q){return sa(U,Q)}function Kv(U){if(!Qv(U))return!1;var Q=Qr(U);return Q==h||Q==p||Q==c||Q==C}function Jv(U){return typeof U=="number"&&U>-1&&U%1==0&&U<=o}function Qv(U){var Q=typeof U;return U!=null&&(Q=="object"||Q=="function")}function Ds(U){return U!=null&&typeof U=="object"}var e1=K?ae(K):la;function iT(U){return nT(U)?lo(U):Fc(U)}function aT(){return[]}function oT(){return!1}e.exports=rT})(Gu,Gu.exports);var CR=Gu.exports,J4={exports:{}};(function(e,t){var n=function(){var r=function(b,S){var M=236,$=17,k=b,D=a[S],T=null,E=0,R=null,j=[],O={},A=function(W,P){E=k*4+17,T=function(B){for(var V=new Array(B),N=0;N<B;N+=1){V[N]=new Array(B);for(var te=0;te<B;te+=1)V[N][te]=null}return V}(E),I(0,0),I(E-7,0),I(0,E-7),L(),z(),Y(W,P),k>=7&&H(W),R==null&&(R=X(k,D,j)),q(R,P)},I=function(W,P){for(var B=-1;B<=7;B+=1)if(!(W+B<=-1||E<=W+B))for(var V=-1;V<=7;V+=1)P+V<=-1||E<=P+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?T[W+B][P+V]=!0:T[W+B][P+V]=!1)},F=function(){for(var W=0,P=0,B=0;B<8;B+=1){A(!0,B);var V=s.getLostPoint(O);(B==0||W>V)&&(W=V,P=B)}return P},z=function(){for(var W=8;W<E-8;W+=1)T[W][6]==null&&(T[W][6]=W%2==0);for(var P=8;P<E-8;P+=1)T[6][P]==null&&(T[6][P]=P%2==0)},L=function(){for(var W=s.getPatternPosition(k),P=0;P<W.length;P+=1)for(var B=0;B<W.length;B+=1){var V=W[P],N=W[B];if(T[V][N]==null)for(var te=-2;te<=2;te+=1)for(var K=-2;K<=2;K+=1)te==-2||te==2||K==-2||K==2||te==0&&K==0?T[V+te][N+K]=!0:T[V+te][N+K]=!1}},H=function(W){for(var P=s.getBCHTypeNumber(k),B=0;B<18;B+=1){var V=!W&&(P>>B&1)==1;T[Math.floor(B/3)][B%3+E-8-3]=V}for(var B=0;B<18;B+=1){var V=!W&&(P>>B&1)==1;T[B%3+E-8-3][Math.floor(B/3)]=V}},Y=function(W,P){for(var B=D<<3|P,V=s.getBCHTypeInfo(B),N=0;N<15;N+=1){var te=!W&&(V>>N&1)==1;N<6?T[N][8]=te:N<8?T[N+1][8]=te:T[E-15+N][8]=te}for(var N=0;N<15;N+=1){var te=!W&&(V>>N&1)==1;N<8?T[8][E-N-1]=te:N<9?T[8][15-N-1+1]=te:T[8][15-N-1]=te}T[E-8][8]=!W},q=function(W,P){for(var B=-1,V=E-1,N=7,te=0,K=s.getMaskFunction(P),G=E-1;G>0;G-=2)for(G==6&&(G-=1);;){for(var oe=0;oe<2;oe+=1)if(T[V][G-oe]==null){var ne=!1;te<W.length&&(ne=(W[te]>>>N&1)==1);var re=K(V,G-oe);re&&(ne=!ne),T[V][G-oe]=ne,N-=1,N==-1&&(te+=1,N=7)}if(V+=B,V<0||E<=V){V-=B,B=-B;break}}},Z=function(W,P){for(var B=0,V=0,N=0,te=new Array(P.length),K=new Array(P.length),G=0;G<P.length;G+=1){var oe=P[G].dataCount,ne=P[G].totalCount-oe;V=Math.max(V,oe),N=Math.max(N,ne),te[G]=new Array(oe);for(var re=0;re<te[G].length;re+=1)te[G][re]=255&W.getBuffer()[re+B];B+=oe;var ae=s.getErrorCorrectPolynomial(ne),le=c(te[G],ae.getLength()-1),ye=le.mod(ae);K[G]=new Array(ae.getLength()-1);for(var re=0;re<K[G].length;re+=1){var ge=re+ye.getLength()-K[G].length;K[G][re]=ge>=0?ye.getAt(ge):0}}for(var be=0,re=0;re<P.length;re+=1)be+=P[re].totalCount;for(var Me=new Array(be),ce=0,re=0;re<V;re+=1)for(var G=0;G<P.length;G+=1)re<te[G].length&&(Me[ce]=te[G][re],ce+=1);for(var re=0;re<N;re+=1)for(var G=0;G<P.length;G+=1)re<K[G].length&&(Me[ce]=K[G][re],ce+=1);return Me},X=function(W,P,B){for(var V=u.getRSBlocks(W,P),N=d(),te=0;te<B.length;te+=1){var K=B[te];N.put(K.getMode(),4),N.put(K.getLength(),s.getLengthInBits(K.getMode(),W)),K.write(N)}for(var G=0,te=0;te<V.length;te+=1)G+=V[te].dataCount;if(N.getLengthInBits()>G*8)throw"code length overflow. ("+N.getLengthInBits()+">"+G*8+")";for(N.getLengthInBits()+4<=G*8&&N.put(0,4);N.getLengthInBits()%8!=0;)N.putBit(!1);for(;!(N.getLengthInBits()>=G*8||(N.put(M,8),N.getLengthInBits()>=G*8));)N.put($,8);return Z(N,V)};O.addData=function(W,P){P=P||"Byte";var B=null;switch(P){case"Numeric":B=f(W);break;case"Alphanumeric":B=h(W);break;case"Byte":B=p(W);break;case"Kanji":B=m(W);break;default:throw"mode:"+P}j.push(B),R=null},O.isDark=function(W,P){if(W<0||E<=W||P<0||E<=P)throw W+","+P;return T[W][P]},O.getModuleCount=function(){return E},O.make=function(){if(k<1){for(var W=1;W<40;W++){for(var P=u.getRSBlocks(W,D),B=d(),V=0;V<j.length;V++){var N=j[V];B.put(N.getMode(),4),B.put(N.getLength(),s.getLengthInBits(N.getMode(),W)),N.write(B)}for(var te=0,V=0;V<P.length;V++)te+=P[V].dataCount;if(B.getLengthInBits()<=te*8)break}k=W}A(!1,F())},O.createTableTag=function(W,P){W=W||2,P=typeof P>"u"?W*4:P;var B="";B+='<table style="',B+=" border-width: 0px; border-style: none;",B+=" border-collapse: collapse;",B+=" padding: 0px; margin: "+P+"px;",B+='">',B+="<tbody>";for(var V=0;V<O.getModuleCount();V+=1){B+="<tr>";for(var N=0;N<O.getModuleCount();N+=1)B+='<td style="',B+=" border-width: 0px; border-style: none;",B+=" border-collapse: collapse;",B+=" padding: 0px; margin: 0px;",B+=" width: "+W+"px;",B+=" height: "+W+"px;",B+=" background-color: ",B+=O.isDark(V,N)?"#000000":"#ffffff",B+=";",B+='"/>';B+="</tr>"}return B+="</tbody>",B+="</table>",B},O.createSvgTag=function(W,P,B,V){var N={};typeof arguments[0]=="object"&&(N=arguments[0],W=N.cellSize,P=N.margin,B=N.alt,V=N.title),W=W||2,P=typeof P>"u"?W*4:P,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 te=O.getModuleCount()*W+P*2,K,G,oe,ne,re="",ae;for(ae="l"+W+",0 0,"+W+" -"+W+",0 0,-"+W+"z ",re+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',re+=N.scalable?"":' width="'+te+'px" height="'+te+'px"',re+=' viewBox="0 0 '+te+" "+te+'" ',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="',oe=0;oe<O.getModuleCount();oe+=1)for(ne=oe*W+P,K=0;K<O.getModuleCount();K+=1)O.isDark(oe,K)&&(G=K*W+P,re+="M"+G+","+ne+ae);return re+='" stroke="transparent" fill="black"/>',re+="</svg>",re},O.createDataURL=function(W,P){W=W||2,P=typeof P>"u"?W*4:P;var B=O.getModuleCount()*W+P*2,V=P,N=B-P;return C(B,B,function(te,K){if(V<=te&&te<N&&V<=K&&K<N){var G=Math.floor((te-V)/W),oe=Math.floor((K-V)/W);return O.isDark(oe,G)?0:1}else return 1})},O.createImgTag=function(W,P,B){W=W||2,P=typeof P>"u"?W*4:P;var V=O.getModuleCount()*W+P*2,N="";return N+="<img",N+=' src="',N+=O.createDataURL(W,P),N+='"',N+=' width="',N+=V,N+='"',N+=' height="',N+=V,N+='"',B&&(N+=' alt="',N+=J(B),N+='"'),N+="/>",N};var J=function(W){for(var P="",B=0;B<W.length;B+=1){var V=W.charAt(B);switch(V){case"<":P+="&lt;";break;case">":P+="&gt;";break;case"&":P+="&amp;";break;case'"':P+="&quot;";break;default:P+=V;break}}return P},ee=function(W){var P=1;W=typeof W>"u"?P*2:W;var B=O.getModuleCount()*P+W*2,V=W,N=B-W,te,K,G,oe,ne,re={"██":"█","█ ":"▀"," █":"▄"," ":" "},ae={"██":"▀","█ ":"▀"," █":" "," ":" "},le="";for(te=0;te<B;te+=2){for(G=Math.floor((te-V)/P),oe=Math.floor((te+1-V)/P),K=0;K<B;K+=1)ne="█",V<=K&&K<N&&V<=te&&te<N&&O.isDark(G,Math.floor((K-V)/P))&&(ne=" "),V<=K&&K<N&&V<=te+1&&te+1<N&&O.isDark(oe,Math.floor((K-V)/P))?ne+=" ":ne+="█",le+=W<1&&te+1>=N?ae[ne]:re[ne];le+=`
245
+ `}return B%2&&W>0?le.substring(0,le.length-B-1)+Array(B+1).join("▀"):le.substring(0,le.length-1)};return O.createASCII=function(W,P){if(W=W||1,W<2)return ee(P);W-=1,P=typeof P>"u"?W*2:P;var B=O.getModuleCount()*W+P*2,V=P,N=B-P,te,K,G,oe,ne=Array(W+1).join("██"),re=Array(W+1).join(" "),ae="",le="";for(te=0;te<B;te+=1){for(G=Math.floor((te-V)/W),le="",K=0;K<B;K+=1)oe=1,V<=K&&K<N&&V<=te&&te<N&&O.isDark(G,Math.floor((K-V)/W))&&(oe=0),le+=oe?ne:re;for(G=0;G<W;G+=1)ae+=le+`
246
+ `}return ae.substring(0,ae.length-1)},O.renderTo2dContext=function(W,P){P=P||2;for(var B=O.getModuleCount(),V=0;V<B;V++)for(var N=0;N<B;N++)W.fillStyle=O.isDark(V,N)?"black":"white",W.fillRect(V*P,N*P,P,P)},O};r.stringToBytesFuncs={default:function(b){for(var S=[],M=0;M<b.length;M+=1){var $=b.charCodeAt(M);S.push($&255)}return S}},r.stringToBytes=r.stringToBytesFuncs.default,r.createStringToBytes=function(b,S){var M=function(){for(var k=_(b),D=function(){var z=k.read();if(z==-1)throw"eof";return z},T=0,E={};;){var R=k.read();if(R==-1)break;var j=D(),O=D(),A=D(),I=String.fromCharCode(R<<8|j),F=O<<8|A;E[I]=F,T+=1}if(T!=S)throw T+" != "+S;return E}(),$=63;return function(k){for(var D=[],T=0;T<k.length;T+=1){var E=k.charCodeAt(T);if(E<128)D.push(E);else{var R=M[k.charAt(T)];typeof R=="number"?(R&255)==R?D.push(R):(D.push(R>>>8),D.push(R&255)):D.push($)}}return D}};var i={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},a={L:1,M:0,Q:3,H:2},o={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]],S=1335,M=7973,$=21522,k={},D=function(T){for(var E=0;T!=0;)E+=1,T>>>=1;return E};return k.getBCHTypeInfo=function(T){for(var E=T<<10;D(E)-D(S)>=0;)E^=S<<D(E)-D(S);return(T<<10|E)^$},k.getBCHTypeNumber=function(T){for(var E=T<<12;D(E)-D(M)>=0;)E^=M<<D(E)-D(M);return T<<12|E},k.getPatternPosition=function(T){return b[T-1]},k.getMaskFunction=function(T){switch(T){case o.PATTERN000:return function(E,R){return(E+R)%2==0};case o.PATTERN001:return function(E,R){return E%2==0};case o.PATTERN010:return function(E,R){return R%3==0};case o.PATTERN011:return function(E,R){return(E+R)%3==0};case o.PATTERN100:return function(E,R){return(Math.floor(E/2)+Math.floor(R/3))%2==0};case o.PATTERN101:return function(E,R){return E*R%2+E*R%3==0};case o.PATTERN110:return function(E,R){return(E*R%2+E*R%3)%2==0};case o.PATTERN111:return function(E,R){return(E*R%3+(E+R)%2)%2==0};default:throw"bad maskPattern:"+T}},k.getErrorCorrectPolynomial=function(T){for(var E=c([1],0),R=0;R<T;R+=1)E=E.multiply(c([1,l.gexp(R)],0));return E},k.getLengthInBits=function(T,E){if(1<=E&&E<10)switch(T){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:"+T}else if(E<27)switch(T){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:"+T}else if(E<41)switch(T){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:"+T}else throw"type:"+E},k.getLostPoint=function(T){for(var E=T.getModuleCount(),R=0,j=0;j<E;j+=1)for(var O=0;O<E;O+=1){for(var A=0,I=T.isDark(j,O),F=-1;F<=1;F+=1)if(!(j+F<0||E<=j+F))for(var z=-1;z<=1;z+=1)O+z<0||E<=O+z||F==0&&z==0||I==T.isDark(j+F,O+z)&&(A+=1);A>5&&(R+=3+A-5)}for(var j=0;j<E-1;j+=1)for(var O=0;O<E-1;O+=1){var L=0;T.isDark(j,O)&&(L+=1),T.isDark(j+1,O)&&(L+=1),T.isDark(j,O+1)&&(L+=1),T.isDark(j+1,O+1)&&(L+=1),(L==0||L==4)&&(R+=3)}for(var j=0;j<E;j+=1)for(var O=0;O<E-6;O+=1)T.isDark(j,O)&&!T.isDark(j,O+1)&&T.isDark(j,O+2)&&T.isDark(j,O+3)&&T.isDark(j,O+4)&&!T.isDark(j,O+5)&&T.isDark(j,O+6)&&(R+=40);for(var O=0;O<E;O+=1)for(var j=0;j<E-6;j+=1)T.isDark(j,O)&&!T.isDark(j+1,O)&&T.isDark(j+2,O)&&T.isDark(j+3,O)&&T.isDark(j+4,O)&&!T.isDark(j+5,O)&&T.isDark(j+6,O)&&(R+=40);for(var H=0,O=0;O<E;O+=1)for(var j=0;j<E;j+=1)T.isDark(j,O)&&(H+=1);var Y=Math.abs(100*H/E/E-50)/5;return R+=Y*10,R},k}(),l=function(){for(var b=new Array(256),S=new Array(256),M=0;M<8;M+=1)b[M]=1<<M;for(var M=8;M<256;M+=1)b[M]=b[M-4]^b[M-5]^b[M-6]^b[M-8];for(var M=0;M<255;M+=1)S[b[M]]=M;var $={};return $.glog=function(k){if(k<1)throw"glog("+k+")";return S[k]},$.gexp=function(k){for(;k<0;)k+=255;for(;k>=256;)k-=255;return b[k]},$}();function c(b,S){if(typeof b.length>"u")throw b.length+"/"+S;var M=function(){for(var k=0;k<b.length&&b[k]==0;)k+=1;for(var D=new Array(b.length-k+S),T=0;T<b.length-k;T+=1)D[T]=b[T+k];return D}(),$={};return $.getAt=function(k){return M[k]},$.getLength=function(){return M.length},$.multiply=function(k){for(var D=new Array($.getLength()+k.getLength()-1),T=0;T<$.getLength();T+=1)for(var E=0;E<k.getLength();E+=1)D[T+E]^=l.gexp(l.glog($.getAt(T))+l.glog(k.getAt(E)));return c(D,0)},$.mod=function(k){if($.getLength()-k.getLength()<0)return $;for(var D=l.glog($.getAt(0))-l.glog(k.getAt(0)),T=new Array($.getLength()),E=0;E<$.getLength();E+=1)T[E]=$.getAt(E);for(var E=0;E<k.getLength();E+=1)T[E]^=l.gexp(l.glog(k.getAt(E))+D);return c(T,0).mod(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]],S=function(k,D){var T={};return T.totalCount=k,T.dataCount=D,T},M={},$=function(k,D){switch(D){case a.L:return b[(k-1)*4+0];case a.M:return b[(k-1)*4+1];case a.Q:return b[(k-1)*4+2];case a.H:return b[(k-1)*4+3];default:return}};return M.getRSBlocks=function(k,D){var T=$(k,D);if(typeof T>"u")throw"bad rs block @ typeNumber:"+k+"/errorCorrectionLevel:"+D;for(var E=T.length/3,R=[],j=0;j<E;j+=1)for(var O=T[j*3+0],A=T[j*3+1],I=T[j*3+2],F=0;F<O;F+=1)R.push(S(A,I));return R},M}(),d=function(){var b=[],S=0,M={};return M.getBuffer=function(){return b},M.getAt=function($){var k=Math.floor($/8);return(b[k]>>>7-$%8&1)==1},M.put=function($,k){for(var D=0;D<k;D+=1)M.putBit(($>>>k-D-1&1)==1)},M.getLengthInBits=function(){return S},M.putBit=function($){var k=Math.floor(S/8);b.length<=k&&b.push(0),$&&(b[k]|=128>>>S%8),S+=1},M},f=function(b){var S=i.MODE_NUMBER,M=b,$={};$.getMode=function(){return S},$.getLength=function(T){return M.length},$.write=function(T){for(var E=M,R=0;R+2<E.length;)T.put(k(E.substring(R,R+3)),10),R+=3;R<E.length&&(E.length-R==1?T.put(k(E.substring(R,R+1)),4):E.length-R==2&&T.put(k(E.substring(R,R+2)),7))};var k=function(T){for(var E=0,R=0;R<T.length;R+=1)E=E*10+D(T.charAt(R));return E},D=function(T){if("0"<=T&&T<="9")return T.charCodeAt(0)-48;throw"illegal char :"+T};return $},h=function(b){var S=i.MODE_ALPHA_NUM,M=b,$={};$.getMode=function(){return S},$.getLength=function(D){return M.length},$.write=function(D){for(var T=M,E=0;E+1<T.length;)D.put(k(T.charAt(E))*45+k(T.charAt(E+1)),11),E+=2;E<T.length&&D.put(k(T.charAt(E)),6)};var k=function(D){if("0"<=D&&D<="9")return D.charCodeAt(0)-48;if("A"<=D&&D<="Z")return D.charCodeAt(0)-65+10;switch(D){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 :"+D}};return $},p=function(b){var S=i.MODE_8BIT_BYTE,M=r.stringToBytes(b),$={};return $.getMode=function(){return S},$.getLength=function(k){return M.length},$.write=function(k){for(var D=0;D<M.length;D+=1)k.put(M[D],8)},$},m=function(b){var S=i.MODE_KANJI,M=r.stringToBytesFuncs.SJIS;if(!M)throw"sjis not supported.";(function(D,T){var E=M(D);if(E.length!=2||(E[0]<<8|E[1])!=T)throw"sjis not supported."})("友",38726);var $=M(b),k={};return k.getMode=function(){return S},k.getLength=function(D){return~~($.length/2)},k.write=function(D){for(var T=$,E=0;E+1<T.length;){var R=(255&T[E])<<8|255&T[E+1];if(33088<=R&&R<=40956)R-=33088;else if(57408<=R&&R<=60351)R-=49472;else throw"illegal char at "+(E+1)+"/"+R;R=(R>>>8&255)*192+(R&255),D.put(R,13),E+=2}if(E<T.length)throw"illegal char at "+(E+1)},k},g=function(){var b=[],S={};return S.writeByte=function(M){b.push(M&255)},S.writeShort=function(M){S.writeByte(M),S.writeByte(M>>>8)},S.writeBytes=function(M,$,k){$=$||0,k=k||M.length;for(var D=0;D<k;D+=1)S.writeByte(M[D+$])},S.writeString=function(M){for(var $=0;$<M.length;$+=1)S.writeByte(M.charCodeAt($))},S.toByteArray=function(){return b},S.toString=function(){var M="";M+="[";for(var $=0;$<b.length;$+=1)$>0&&(M+=","),M+=b[$];return M+="]",M},S},x=function(){var b=0,S=0,M=0,$="",k={},D=function(E){$+=String.fromCharCode(T(E&63))},T=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 k.writeByte=function(E){for(b=b<<8|E&255,S+=8,M+=1;S>=6;)D(b>>>S-6),S-=6},k.flush=function(){if(S>0&&(D(b<<6-S),b=0,S=0),M%3!=0)for(var E=3-M%3,R=0;R<E;R+=1)$+="="},k.toString=function(){return $},k},_=function(b){var S=b,M=0,$=0,k=0,D={};D.read=function(){for(;k<8;){if(M>=S.length){if(k==0)return-1;throw"unexpected end of file./"+k}var E=S.charAt(M);if(M+=1,E=="=")return k=0,-1;if(E.match(/^\s$/))continue;$=$<<6|T(E.charCodeAt(0)),k+=6}var R=$>>>k-8&255;return k-=8,R};var T=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 D},w=function(b,S){var M=b,$=S,k=new Array(b*S),D={};D.setPixel=function(j,O,A){k[O*M+j]=A},D.write=function(j){j.writeString("GIF87a"),j.writeShort(M),j.writeShort($),j.writeByte(128),j.writeByte(0),j.writeByte(0),j.writeByte(0),j.writeByte(0),j.writeByte(0),j.writeByte(255),j.writeByte(255),j.writeByte(255),j.writeString(","),j.writeShort(0),j.writeShort(0),j.writeShort(M),j.writeShort($),j.writeByte(0);var O=2,A=E(O);j.writeByte(O);for(var I=0;A.length-I>255;)j.writeByte(255),j.writeBytes(A,I,255),I+=255;j.writeByte(A.length-I),j.writeBytes(A,I,A.length-I),j.writeByte(0),j.writeString(";")};var T=function(j){var O=j,A=0,I=0,F={};return F.write=function(z,L){if(z>>>L)throw"length over";for(;A+L>=8;)O.writeByte(255&(z<<A|I)),L-=8-A,z>>>=8-A,I=0,A=0;I=z<<A|I,A=A+L},F.flush=function(){A>0&&O.writeByte(I)},F},E=function(j){for(var O=1<<j,A=(1<<j)+1,I=j+1,F=R(),z=0;z<O;z+=1)F.add(String.fromCharCode(z));F.add(String.fromCharCode(O)),F.add(String.fromCharCode(A));var L=g(),H=T(L);H.write(O,I);var Y=0,q=String.fromCharCode(k[Y]);for(Y+=1;Y<k.length;){var Z=String.fromCharCode(k[Y]);Y+=1,F.contains(q+Z)?q=q+Z:(H.write(F.indexOf(q),I),F.size()<4095&&(F.size()==1<<I&&(I+=1),F.add(q+Z)),q=Z)}return H.write(F.indexOf(q),I),H.write(A,I),H.flush(),L.toByteArray()},R=function(){var j={},O=0,A={};return A.add=function(I){if(A.contains(I))throw"dup key:"+I;j[I]=O,O+=1},A.size=function(){return O},A.indexOf=function(I){return j[I]},A.contains=function(I){return typeof j[I]<"u"},A};return D},C=function(b,S,M){for(var $=w(b,S),k=0;k<S;k+=1)for(var D=0;D<b;D+=1)$.setPixel(D,k,M(D,k));var T=g();$.write(T);for(var E=x(),R=T.toByteArray(),j=0;j<R.length;j+=1)E.writeByte(R[j]);return E.flush(),"data:image/gif;base64,"+E};return r}();(function(){n.stringToBytesFuncs["UTF-8"]=function(r){function i(a){for(var o=[],s=0;s<a.length;s++){var l=a.charCodeAt(s);l<128?o.push(l):l<2048?o.push(192|l>>6,128|l&63):l<55296||l>=57344?o.push(224|l>>12,128|l>>6&63,128|l&63):(s++,l=65536+((l&1023)<<10|a.charCodeAt(s)&1023),o.push(240|l>>18,128|l>>12&63,128|l>>6&63,128|l&63))}return o}return i(r)}})(),function(r){e.exports=r()}(function(){return n})})(J4);var SR=J4.exports,TR=Hn&&Hn.__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 a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},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)}}(),mm=Hn&&Hn.__assign||function(){return mm=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},mm.apply(this,arguments)};Object.defineProperty(t0,"__esModule",{value:!0});exports.QRCode_1=t0.QRCode=void 0;var $R=CR,kR=SR,Zh=v,MR=function(e){TR(t,e);function t(n){var r=e.call(this,n)||this;return r.canvasRef=Zh.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 a=this.canvasRef.current.toDataURL(i,1),o=document.createElement("a");o.download=r??"react-qrcode-logo",o.href=a,o.click()}},t.prototype.utf16to8=function(n){var r="",i,a,o=n.length;for(i=0;i<o;i++)a=n.charCodeAt(i),a>=1&&a<=127?r+=n.charAt(i):a>2047?(r+=String.fromCharCode(224|a>>12&15),r+=String.fromCharCode(128|a>>6&63),r+=String.fromCharCode(128|a>>0&63)):(r+=String.fromCharCode(192|a>>6&31),r+=String.fromCharCode(128|a>>0&63));return r},t.prototype.drawRoundedSquare=function(n,r,i,a,o,s,l,c){c.lineWidth=n,c.fillStyle=o,c.strokeStyle=o,i+=n/2,r+=n/2,a-=n,Array.isArray(s)||(s=[s,s,s,s]),s=s.map(function(p){return p=Math.min(p,a/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+a-d,i),d&&c.quadraticCurveTo(r+a,i,r+a,i+d),c.lineTo(r+a,i+a-f),f&&c.quadraticCurveTo(r+a,i+a,r+a-f,i+a),c.lineTo(r+h,i+a),h&&c.quadraticCurveTo(r,i+a,r,i+a-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,a,o,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=a*r+i,m=o*r+i,g=r*7;this.drawRoundedSquare(c,m,p,g,f,u,!1,n),g=r*3,p+=r*2,m+=r*2,this.drawRoundedSquare(c,m,p,g,h,d,!0,n)},t.prototype.isInPositioninZone=function(n,r,i){return i.some(function(a){return r>=a.row&&r<=a.row+7&&n>=a.col&&n<=a.col+7})},t.prototype.transformPixelLengthIntoNumberOfCells=function(n,r){return n/r},t.prototype.isCoordinateInImage=function(n,r,i,a,o,s,l,c){if(c){var u=2,d=this.transformPixelLengthIntoNumberOfCells(o,l),f=this.transformPixelLengthIntoNumberOfCells(s,l),h=this.transformPixelLengthIntoNumberOfCells(i,l)-1,p=this.transformPixelLengthIntoNumberOfCells(a,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!$R(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,a=r.ecLevel,o=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,m=r.eyeColor,g=r.logoPaddingStyle,x=+this.props.size,_=+this.props.quietZone,w=this.props.logoWidth?+this.props.logoWidth:0,C=this.props.logoHeight?+this.props.logoHeight:0,b=this.props.logoPadding?+this.props.logoPadding:0,S=kR(0,a);S.addData(this.utf16to8(i)),S.make();var M=(n=this.canvasRef)===null||n===void 0?void 0:n.current,$=M.getContext("2d"),k=x+2*_,D=S.getModuleCount(),T=x/D,E=window.devicePixelRatio||1;M.height=M.width=k*E,$.scale(E,E),$.fillStyle=s,$.fillRect(0,0,k,k);var R=_,j=[{row:0,col:0},{row:0,col:D-7},{row:D-7,col:0}];if($.strokeStyle=l,h==="dots"){$.fillStyle=l;for(var O=T/2,A=0;A<D;A++)for(var I=0;I<D;I++)S.isDark(A,I)&&!this.isInPositioninZone(A,I,j)&&($.beginPath(),$.arc(Math.round(I*T)+O+R,Math.round(A*T)+O+R,O/100*75,0,2*Math.PI,!1),$.closePath(),$.fill())}else if(h==="fluid"){for(var O=Math.ceil(T/2),A=0;A<D;A++)for(var I=0;I<D;I++)if(S.isDark(A,I)&&!this.isInPositioninZone(A,I,j)){var F=[!1,!1,!1,!1];A>0&&!S.isDark(A-1,I)&&I>0&&!S.isDark(A,I-1)&&(F[0]=!0),A>0&&!S.isDark(A-1,I)&&I<D-1&&!S.isDark(A,I+1)&&(F[1]=!0),A<D-1&&!S.isDark(A+1,I)&&I<D-1&&!S.isDark(A,I+1)&&(F[2]=!0),A<D-1&&!S.isDark(A+1,I)&&I>0&&!S.isDark(A,I-1)&&(F[3]=!0);var z=Math.ceil((I+1)*T)-Math.floor(I*T),L=Math.ceil((A+1)*T)-Math.floor(A*T);$.fillStyle=l,$.beginPath(),$.arc(Math.round(I*T)+O+R,Math.round(A*T)+O+R,O,0,2*Math.PI,!1),$.closePath(),$.fill(),F[0]||$.fillRect(Math.round(I*T)+R,Math.round(A*T)+R,z/2,L/2),F[1]||$.fillRect(Math.round(I*T)+R+Math.floor(z/2),Math.round(A*T)+R,z/2,L/2),F[2]||$.fillRect(Math.round(I*T)+R+Math.floor(z/2),Math.round(A*T)+R+Math.floor(L/2),z/2,L/2),F[3]||$.fillRect(Math.round(I*T)+R,Math.round(A*T)+R+Math.floor(L/2),z/2,L/2)}}else for(var A=0;A<D;A++)for(var I=0;I<D;I++)if(S.isDark(A,I)&&!this.isInPositioninZone(A,I,j)){$.fillStyle=l;var z=Math.ceil((I+1)*T)-Math.floor(I*T),L=Math.ceil((A+1)*T)-Math.floor(A*T);$.fillRect(Math.round(I*T)+R,Math.round(A*T)+R,z,L)}for(var H=0;H<3;H++){var Y=j[H],A=Y.row,I=Y.col,q=p,Z=void 0;Array.isArray(q)&&(q=q[H]),typeof q=="number"&&(q=[q,q,q,q]),m?Array.isArray(m)?Z=m[H]:Z=m:Z=l,this.drawPositioningPattern($,T,R,A,I,Z,q)}if(c){var X=new Image;o&&(X.crossOrigin="Anonymous"),X.onload=function(J){$.save();var ee=w||x*.2,W=C||ee,P=(x-ee)/2,B=(x-W)/2;if(f||b){$.beginPath(),$.strokeStyle=s,$.fillStyle=s;var V=ee+2*b,N=W+2*b,te=P+R-b,K=B+R-b;if(g==="circle"){var G=te+V/2,oe=K+N/2;$.ellipse(G,oe,V/2,N/2,0,0,2*Math.PI),$.stroke(),$.fill()}else $.fillRect(te,K,V,N)}$.globalAlpha=u,$.drawImage(X,P+R,B+R,ee,W),$.restore(),d&&d(J)},X.src=c}},t.prototype.render=function(){var n,r=+this.props.size+2*+this.props.quietZone;return Zh.createElement("canvas",{id:(n=this.props.id)!==null&&n!==void 0?n:"react-qrcode-logo",height:r,width:r,style:mm({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}(Zh.Component);exports.QRCode_1=t0.QRCode=MR;const ER="_floating-label_3xm9u_1",OR="_without-label_3xm9u_21",AR="_floating-label-check_3xm9u_184",Xh={floatingLabel:ER,withoutLabel:OR,floatingLabelCheck:AR},RR=e=>{const t=Ie.c(3),{hint:n,children:r}=e;let i;return t[0]!==r||t[1]!==n?(i=n?y.jsx(Ug,{text:n,placement:"top",children:r}):r,t[0]=r,t[1]=n,t[2]=i):i=t[2],i},nf=({ref:e,hidden:t,children:n,className:r,isInvalid:i,isForRadioInput:a,inputContainerClassName:o,isForCheckInput:s,hint:l,required:c,disabled:u,...d})=>{const{ProjectIconComponent:f}=v.useContext(rn),h=d.withoutLabel?"":y.jsxs("div",{className:"d-flex gap-1 align-items-center",children:[d.label,c?y.jsx("span",{className:se("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:se("luminus-floating-label-check",Xh.floatingLabelCheck),children:n}):y.jsx(RR,{hint:l,children:y.jsx(jg,{ref:e,label:y.jsx("div",{className:"d-flex gap-1 align-items-center",children:h}),hidden:t??!1,className:se(`luminus-floating-label ${r??""}`,Xh.floatingLabel,{[o??""]:o},{[Xh.withoutLabel]:d.withoutLabel}),children:n})})};nf.displayName="FloatingLabelInput";const DR="_row-label-input_i295l_1",jR="_label_i295l_4",IR="_input-container_i295l_9",NR="_keep-check-label_i295l_132",PR="_is-invalid_i295l_160",Bs={rowLabelInput:DR,label:jR,inputContainer:IR,keepCheckLabel:NR,isInvalid:PR},wc=({ref:e,hidden:t,children:n,required:r,disabled:i,className:a,isInvalid:o,isForRadioInput:s,isForTextAreaInput:l,inputContainerClassName:c,hint:u,...d})=>{const{ProjectIconComponent:f}=v.useContext(rn),h=d.withoutLabel?y.jsx(y.Fragment,{}):y.jsx("label",{className:se("label col-6",{"col-12":l},Bs.label),children:y.jsxs(In,{variant:"form-label",className:se("d-flex gap-1 align-items-center",o?"text-danger":""),children:[d.label,r?y.jsx("span",{className:se("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:se("luminus-row-label row gx-0 gy-0",{"is-invalid":o},{[Bs.isInvalid]:o},{[a??""]:a},{"d-none":t},Bs.rowLabelInput),children:[u?y.jsx(Ug,{text:u,placement:"top",children:h}):h,y.jsx("div",{className:se("input-container",Bs.inputContainer,{"col-6":!d.withoutLabel&&!l},{"col-12":d.withoutLabel||l},{[Bs.keepCheckLabel]:s},{[c??""]:c}),children:n})]})};wc.displayName="RowLabelInput";const Q4=e=>{const t=Ie.c(4),{ref:n,children:r,className:i,hidden:a}=e,o=`${a?"d-none":""} ${i}`;let s;return t[0]!==r||t[1]!==n||t[2]!==o?(s=y.jsx("div",{ref:n,className:o,children:r}),t[0]=r,t[1]=n,t[2]=o,t[3]=s):s=t[3],s};Q4.displayName="NoInputContainer";const e3=e=>{const t=Ie.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 a;t[2]!==n||t[3]!==r?(a=r(n),t[2]=n,t[3]=r,t[4]=a):a=t[4];const o=a;let s;return t[5]!==i||t[6]!==o?(s=y.jsx(ss.Link,{to:o,className:"luminus-input-container position-relative w-100 text-decoration-none",children:i}),t[5]=i,t[6]=o,t[7]=s):s=t[7],s},t3=({InputContainer:e=nf,type:t,value:n,onChange:r,debounceMs:i,label:a,withoutLabel:o,placeholder:s,size:l,hidden:c,disabled:u,showClearIcon:d,clearValue:f,list:h,className:p,step:m,minLength:g,maxLength:x,noSelectOnFocus:_,hint:w,onConfirm:C,autoComplete:b})=>{var L,H,Y;const S=t==="number",M=v.useCallback(()=>{if(!r)return;const q=f??null;r(S?q?Number(q):null:(q==null?void 0:q.toString())??"")},[f,S,r]),$=v.useRef(null),[k,D]=v.useState((n==null?void 0:n.toString())??""),T=v.useCallback(q=>{const Z=q;r&&r(S?Z==null||Z===""?null:Number(Z):Z||null)},[S,r]),E=v.useCallback(q=>{var X;const Z=(X=q.target)==null?void 0:X.value;if(!i){T(Z);return}D(Z),$.current!==null&&window.clearTimeout($.current),$.current=window.setTimeout(()=>{T(Z)},i)},[i,T]),R=v.useMemo(()=>{if(C!==void 0)return q=>{q.key==="Enter"&&C&&C()}},[C]);v.useEffect(()=>{D(n===null?"":n.toString())},[n]);const[j,O]=v.useState(!1),A=e0(t,n?n.toString()??null:null,j),I=v.useRef(null),F=(((L=I.current)==null?void 0:L.scrollWidth)??0)>(((H=I.current)==null?void 0:H.clientWidth)??0),z=(Y=I.current)==null?void 0:Y.getBoundingClientRect();return y.jsxs(e,{withoutLabel:o,label:a??"",hidden:c,className:p,hint:w,disabled:u,children:[y.jsx(Gr.Control,{type:A,placeholder:s??a,size:l,value:i?k:(n==null?void 0:n.toString())??"",onChange:E,className:p??"",hidden:c,disabled:u??!1,list:h,onFocus:q=>{O(!0),!_&&q.target.select()},onBlur:()=>O(!1),onKeyDown:R,step:m,minLength:g,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(xc,{color:"secondary",size:"sm",onClick:M,children:y.jsx(fc,{})})}),F?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},children:i?k:(n==null?void 0:n.toString())??""}):null]})},n3=e=>{const t=Ie.c(7),{value:n,MiniDetailComponent:r,children:i,miniDetailPlacement:a}=e;if(!n||!r)return i;let o;t[0]!==n?(o=n.toString(),t[0]=n,t[1]=o):o=t[1];let s;return t[2]!==r||t[3]!==i||t[4]!==a||t[5]!==o?(s=y.jsx(r,{id:o,placement:a,children:i}),t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s):s=t[6],s},r3=({InputContainer:e=nf,value:t,options:n,onChange:r,label:i,withoutLabel:a,isNumber:o,size:s,hidden:l,disabled:c,noSortOptions:u,className:d,suffixIdToName:f,noEmptyOption:h,appendCurrentSelectionWithName:p,dropdownWidth:m,hint:g,addNewOptionPath:x,refreshOptions:_,MiniDetailComponent:w,miniDetailPlacement:C,selectedItemNavigateTo:b,noRemoveButton:S})=>{const{texts:{customSelect:M}}=v.useContext(rn),[$,k]=v.useState(!1),[D,T]=v.useState(""),E=v.useCallback(z=>{T(z)},[]),R=v.useMemo(()=>n.find(z=>z.id===t)??null,[n,t]),j=v.useCallback(z=>{var L;return z===null?"":!z.name||z.name.length===0?((L=z.id)==null?void 0:L.toString())??"":f?`${z.name} (${z.id})`:z.name},[f]),O=v.useMemo(()=>{const z=n?[...n]:[];return p!==void 0&&t!==void 0&&t!==null&&(z.some(L=>L.id===t)||z.push({id:t,name:p})),z.map(L=>({id:L.id,name:j(L)})).filter(L=>Vg(L.name,D)).sort((L,H)=>u?0:(L.name??"").localeCompare(H.name??""))},[n,u,D,j,p,t]),A=v.useCallback(z=>{var L;r&&r((z==null?void 0:z.id)===void 0||(z==null?void 0:z.id)===null?null:o?Number(z.id):(L=z.id)==null?void 0:L.toString())},[r,o]),I=v.useCallback(z=>{k(!1),A(z)},[A]),F=v.useRef(null);return y.jsx(y.Fragment,{children:y.jsxs(e,{withoutLabel:a,label:i??"",hidden:l,inputContainerClassName:se({"luminus-dropdown-select-open":$}),className:d,hint:g,disabled:c,children:[y.jsx(e3,{currentSelection:R,selectedItemNavigateTo:b,children:y.jsx(n3,{value:t,MiniDetailComponent:w,miniDetailPlacement:C,children:y.jsxs(Gr.Select,{ref:F,size:s,value:t??"",onMouseDown:z=>{z.currentTarget.focus(),z.preventDefault()},onClick:()=>{!c&&k(!0)},onChange:()=>{},className:se("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:j(R)})]})})}),F.current&&y.jsx(oC,{show:$,onCancel:()=>k(!1),items:O,currentSelection:R??null,onSelectionChange:I,onSearchQueryChange:E,texts:M,disabled:c,inputRef:F,autoHideSearch:!0,allItemsLength:n.length,itemsNameWidth:m,addNewOptionPath:x,refreshOptions:_,noRemoveButton:S})]})})};function LR(e){return pt({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 FR(e){return pt({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 BR(e){return pt({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 zR(e){return pt({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 n0=e=>{const t=Ie.c(66),{InputContainer:n,formField:r,label:i,resetsFields:a,options:o,isNumber:s,size:l,showClearIcon:c,clearValue:u,noSortOptions:d,required:f,hidden:h,disabled:p,withoutLabel:m,hint:g,className:x}=e,_=n===void 0?wc:n,{control:w,getValues:C,setValue:b}=sn.useFormContext(),{isSubmitted:S}=sn.useFormState();let M;t[0]===Symbol.for("react.memo_cache_sentinel")?(M={falseIfNotInit:!0},t[0]=M):M=t[0];const $=ef(M);let k;t[1]!==w||t[2]!==r?(k={name:r,control:w},t[1]=w,t[2]=r,t[3]=k):k=t[3];const{field:D,fieldState:T}=sn.useController(k),{value:E,onChange:R,onBlur:j,ref:O,name:A}=D,{error:I}=T,[F,z]=v.useState(!1);let L;if(t[4]!==d||t[5]!==o){let le;t[7]!==d?(le=(ye,ge)=>d?0:(ye.name??"").localeCompare(ge.name??""),t[7]=d,t[8]=le):le=t[8],L=o.toSorted(le),t[4]=d,t[5]=o,t[6]=L}else L=t[6];const H=L;let Y;t[9]!==u||t[10]!==r||t[11]!==s||t[12]!==b||t[13]!==F?(Y=()=>{const le=u??null;s?b(r,le===null?null:Number(le),{shouldDirty:!0,shouldValidate:F}):b(r,(le==null?void 0:le.toString())??"",{shouldDirty:!0,shouldValidate:F})},t[9]=u,t[10]=r,t[11]=s,t[12]=b,t[13]=F,t[14]=Y):Y=t[14];const q=Y,Z=p||$;let X;t[15]!==r||t[16]!==C||t[17]!==b?(X=()=>{b(r,C(r))},t[15]=r,t[16]=C,t[17]=b,t[18]=X):X=t[18];let J;t[19]!==r||t[20]!==C||t[21]!==H||t[22]!==b?(J=[H,r,C,b],t[19]=r,t[20]=C,t[21]=H,t[22]=b,t[23]=J):J=t[23],v.useEffect(X,J);let ee,W;t[24]!==S?(ee=()=>{S&&z(!0)},W=[S],t[24]=S,t[25]=ee,t[26]=W):(ee=t[25],W=t[26]),v.useEffect(ee,W);const P=I!==void 0;let B;t[27]!==R||t[28]!==s||t[29]!==a||t[30]!==b||t[31]!==F?(B=le=>{const ye=le.target.value;let ge;s?ge=ye===""?null:parseInt(ye,10):ge=ye===""?null:ye,R(ge),a&&a.forEach(be=>b(be,null,{shouldDirty:!0,shouldValidate:F}))},t[27]=R,t[28]=s,t[29]=a,t[30]=b,t[31]=F,t[32]=B):B=t[32];const V=B,N=i??"",te=E??"";let K;t[33]===Symbol.for("react.memo_cache_sentinel")?(K=y.jsx("option",{value:""}),t[33]=K):K=t[33];let G;t[34]!==H?(G=H.map(WR),t[34]=H,t[35]=G):G=t[35];let oe;t[36]!==Z||t[37]!==A||t[38]!==j||t[39]!==O||t[40]!==V||t[41]!==h||t[42]!==P||t[43]!==l||t[44]!==te||t[45]!==G?(oe=y.jsxs(Gr.Select,{size:l,name:A,value:te,onChange:V,onBlur:j,ref:O,isInvalid:P,hidden:h,disabled:Z,className:"w-100",children:[K,G]}),t[36]=Z,t[37]=A,t[38]=j,t[39]=O,t[40]=V,t[41]=h,t[42]=P,t[43]=l,t[44]=te,t[45]=G,t[46]=oe):oe=t[46];let ne;t[47]!==q||t[48]!==E||t[49]!==c?(ne=c&&E!=null&&y.jsx("div",{className:"luminus-input-remove-icon inset",children:y.jsx(xc,{color:"secondary",size:"sm",onClick:q,children:y.jsx(fc,{})})}),t[47]=q,t[48]=E,t[49]=c,t[50]=ne):ne=t[50];let re;t[51]!==I?(re=I&&y.jsx(uf,{message:I.message}),t[51]=I,t[52]=re):re=t[52];let ae;return t[53]!==_||t[54]!==Z||t[55]!==x||t[56]!==h||t[57]!==g||t[58]!==P||t[59]!==f||t[60]!==N||t[61]!==oe||t[62]!==ne||t[63]!==re||t[64]!==m?(ae=y.jsx(y.Fragment,{children:y.jsxs(_,{label:N,required:f,disabled:Z,hidden:h,withoutLabel:m,isInvalid:P,hint:g,className:x,children:[oe,ne,re]})}),t[53]=_,t[54]=Z,t[55]=x,t[56]=h,t[57]=g,t[58]=P,t[59]=f,t[60]=N,t[61]=oe,t[62]=ne,t[63]=re,t[64]=m,t[65]=ae):ae=t[65],ae};function WR(e){return y.jsx("option",{value:e.id??"",children:e.name},e.id)}const r0=e=>{const t=Ie.c(61),{InputContainer:n,formField:r,label:i,resetsFields:a,size:o,showClearIcon:s,clearValue:l,required:c,hidden:u,disabled:d,rows:f,withoutLabel:h,customFormControlProps:p,minLength:m,maxLength:g,hint:x,onChange:_,className:w}=e,C=n===void 0?wc:n,{control:b,setValue:S}=sn.useFormContext(),{isSubmitted:M}=sn.useFormState();let $;t[0]===Symbol.for("react.memo_cache_sentinel")?($={falseIfNotInit:!0},t[0]=$):$=t[0];const k=ef($),[D,T]=v.useState(!1);let E;t[1]!==b||t[2]!==r?(E={name:r,control:b},t[1]=b,t[2]=r,t[3]=E):E=t[3];const{field:R,fieldState:j}=sn.useController(E),{onChange:O,onBlur:A,ref:I,value:F,name:z}=R,{error:L}=j;let H;t[4]!==p?(H=p??{},t[4]=p,t[5]=H):H=t[5];let Y,q,Z;t[6]!==H?({onChange:q,onBlur:Y,...Z}=H,t[6]=H,t[7]=Y,t[8]=q,t[9]=Z):(Y=t[7],q=t[8],Z=t[9]);let X;t[10]!==l||t[11]!==r||t[12]!==S||t[13]!==D?(X=()=>{const be=l??null,Me=be==null||be===""?null:be.toString();S(r,Me,{shouldDirty:!0,shouldValidate:D})},t[10]=l,t[11]=r,t[12]=S,t[13]=D,t[14]=X):X=t[14];const J=X,ee=d||k;let W,P;t[15]!==M?(W=()=>{M&&T(!0)},P=[M],t[15]=M,t[16]=W,t[17]=P):(W=t[16],P=t[17]),v.useEffect(W,P);const B=L!==void 0;let V;t[18]!==q||t[19]!==O||t[20]!==_||t[21]!==a||t[22]!==S||t[23]!==D?(V=be=>{const Me=be.target.value,ce=Me==null||Me===""?null:Me;O(ce),a&&a.forEach(de=>S(de,null,{shouldDirty:!0,shouldValidate:D})),_&&_(ce),q&&q(be)},t[18]=q,t[19]=O,t[20]=_,t[21]=a,t[22]=S,t[23]=D,t[24]=V):V=t[24];const N=V;let te;t[25]!==Y||t[26]!==A?(te=be=>{A(),Y&&Y(be)},t[25]=Y,t[26]=A,t[27]=te):te=t[27];const K=te,G=F!=null&&F!=="",oe=i??"",ne=F??"",re=f??2;let ae;t[28]!==ee||t[29]!==z||t[30]!==I||t[31]!==K||t[32]!==N||t[33]!==u||t[34]!==B||t[35]!==g||t[36]!==m||t[37]!==Z||t[38]!==o||t[39]!==ne||t[40]!==re?(ae=y.jsx(Gr.Control,{as:"textarea",name:z,size:o,value:ne,onChange:N,onBlur:K,ref:I,isInvalid:B,hidden:u,disabled:ee,rows:re,className:"w-100",minLength:m,maxLength:g,...Z}),t[28]=ee,t[29]=z,t[30]=I,t[31]=K,t[32]=N,t[33]=u,t[34]=B,t[35]=g,t[36]=m,t[37]=Z,t[38]=o,t[39]=ne,t[40]=re,t[41]=ae):ae=t[41];let le;t[42]!==J||t[43]!==G||t[44]!==s?(le=s&&G&&y.jsx("div",{className:"luminus-input-remove-icon",children:y.jsx(xc,{color:"secondary",size:"sm",onClick:J,children:y.jsx(fc,{})})}),t[42]=J,t[43]=G,t[44]=s,t[45]=le):le=t[45];let ye;t[46]!==L?(ye=L&&y.jsx(uf,{message:L.message}),t[46]=L,t[47]=ye):ye=t[47];let ge;return t[48]!==C||t[49]!==ee||t[50]!==w||t[51]!==u||t[52]!==x||t[53]!==B||t[54]!==c||t[55]!==oe||t[56]!==ae||t[57]!==le||t[58]!==ye||t[59]!==h?(ge=y.jsxs(C,{label:oe,required:c,disabled:ee,hidden:u,withoutLabel:h,isInvalid:B,className:w,hint:x,isForTextAreaInput:!0,children:[ae,le,ye]}),t[48]=C,t[49]=ee,t[50]=w,t[51]=u,t[52]=x,t[53]=B,t[54]=c,t[55]=oe,t[56]=ae,t[57]=le,t[58]=ye,t[59]=h,t[60]=ge):ge=t[60],ge},es=({ref:e,InputContainer:t=wc,type:n,formField:r,label:i,placeholder:a,size:o,resetsFields:s,showClearIcon:l,clearValue:c,required:u,hidden:d,disabled:f,withoutLabel:h,list:p,step:m,CustomOnChangeComponent:g,noSelectOnFocus:x,minLength:_,maxLength:w,hint:C,onChange:b,className:S,autoComplete:M})=>{var V,N,te,K;const{control:$,setValue:k}=sn.useFormContext(),{isSubmitted:D}=sn.useFormState(),T=ef({falseIfNotInit:!0}),{field:{value:E,onChange:R,onBlur:j,ref:O,name:A},fieldState:{error:I}}=sn.useController({name:r,control:$}),[F,z]=v.useState(!1),L=v.useCallback(()=>{const G=c??null;n==="number"?k(r,G!==null?Number(G):null,{shouldDirty:!0,shouldValidate:F}):k(r,(G==null?void 0:G.toString())??"",{shouldDirty:!0,shouldValidate:F})},[c,n,k,r,F]),H=v.useMemo(()=>f||T,[f,T]),Y=I!==void 0,[q,Z]=v.useState(!1),X=e0(n,E??null,q),J=v.useCallback(G=>{const oe=G.target.value;let ne=oe;n==="number"?ne=oe===""?null:Number(oe):ne=oe===""?null:oe,R(ne),s&&s.forEach(re=>k(re,null,{shouldDirty:!0,shouldValidate:F})),b&&b(ne===null?null:n==="number"?ne??null:ne.toString())},[R,b,s,k,F,n]),ee=v.useCallback(()=>{Z(!1),j()},[j]),W=v.useRef(null),P=(((V=W.current)==null?void 0:V.scrollWidth)??0)>(((N=W.current)==null?void 0:N.clientWidth)??0),B=(te=W.current)==null?void 0:te.getBoundingClientRect();return v.useImperativeHandle(e,()=>W.current,[W]),v.useEffect(()=>{D&&z(!0)},[D]),y.jsxs(t,{label:i,required:u,disabled:H,hidden:d,withoutLabel:h??!1,isInvalid:Y,hint:C,className:S,children:[y.jsxs("div",{className:"luminus-input-container position-relative w-100",children:[y.jsx(Gr.Control,{type:X,placeholder:a??i,size:o,name:A,value:E??"",onChange:J,onBlur:ee,onFocus:G=>{Z(!0),!x&&G.target.select()},ref:G=>{O(G),W.current=G},isInvalid:Y,hidden:d,disabled:H,list:p,className:"w-100",step:m,minLength:_,maxLength:w,autoComplete:M}),g&&y.jsx("div",{className:"custom-picker-button",children:g})]}),l&&E!=null&&y.jsx("div",{className:`luminus-input-remove-icon ${n!=="text"?"inset":""}`,children:y.jsx(xc,{color:"secondary",size:"sm",onClick:L,children:y.jsx(fc,{})})}),P?y.jsx("div",{className:"luminus-overflow-tooltip",style:{opacity:0,position:"fixed",top:((B==null?void 0:B.top)??0)+((B==null?void 0:B.height)??0),left:(B==null?void 0:B.left)??0,pointerEvents:"none"},children:((K=W.current)==null?void 0:K.value)??""}):null,I&&y.jsx(uf,{message:I.message})]})},UR="_item_1dy8x_1",i3={item:UR},Ca=e=>{const t=Ie.c(17);let n,r,i,a,o,s,l;t[0]!==e?({color:s,icon:i,className:r,children:n,to:l,as:a,...o}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=l):(n=t[1],r=t[2],i=t[3],a=t[4],o=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=se(u,i3.item),t[8]=u,t[9]=d):d=t[9];const f=a==="link"?ss.Link:void 0,h=l??"";let p;return t[10]!==n||t[11]!==i||t[12]!==o||t[13]!==d||t[14]!==f||t[15]!==h?(p=y.jsxs(Yo.Item,{className:d,as:f,to:h,...o,children:[i,n]}),t[10]=n,t[11]=i,t[12]=o,t[13]=d,t[14]=f,t[15]=h,t[16]=p):p=t[16],p},HR="_button_qhwih_1",VR={button:HR},i0=({ref:e,color:t="primary",icon:n=y.jsx(I_,{size:21}),text:r,onClick:i,className:a,children:o,...s})=>y.jsxs("button",{type:"button",ref:e,onClick:l=>{l.preventDefault(),i(l)},"aria-label":"dropdown toggle",className:se(`btn luminus-context-button text-${t} ${a??""}`,VR.button),...s,children:[n,r]}),a0=e=>{const t=Ie.c(2);let n;return t[0]!==e?(n=y.jsx(Yo.Toggle,{...e}),t[0]=e,t[1]=n):n=t[1],n},qR="_divider_1e6rk_1",YR={divider:qR},gm=e=>{const t=Ie.c(4),{className:n}=e;let r;t[0]!==n?(r=se("luminus-dropdown-divider",n,YR.divider),t[0]=n,t[1]=r):r=t[1];let i;return t[2]!==r?(i=y.jsx(Yo.Divider,{className:r}),t[2]=r,t[3]=i):i=t[3],i},GR="_dropdown_1lk66_1",ZR={dropdown:GR},o0=e=>{const t=Ie.c(14);let n,r,i,a;t[0]!==e?({toggle:a,children:r,align:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a):(n=t[1],r=t[2],i=t[3],a=t[4]);let o;t[5]===Symbol.for("react.memo_cache_sentinel")?(o=se("luminus-dropdown rounded shadow",ZR.dropdown),t[5]=o):o=t[5];let s;t[6]!==n||t[7]!==r?(s=y.jsx(Yo.Menu,{className:o,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]!==a?(l=y.jsxs(Yo,{...i,align:n,children:[a,s]}),t[9]=n,t[10]=i,t[11]=s,t[12]=a,t[13]=l):l=t[13],l},XR="_wrapper_1tb6d_1",KR="_controls_1tb6d_16",JR="_explorerWindow_1tb6d_20",QR="_folderList_1tb6d_28",eD="_fileList_1tb6d_35",tD="_dndText_1tb6d_61",da={wrapper:XR,controls:KR,explorerWindow:JR,folderList:QR,fileList:eD,dndText:tD},mn=v.createContext({apiActions:{},loadDocuments(){throw new Error("DocumentsContext was not initialized.")},reducer:[{},{}],entityType:"",entityId:-1}),nD="_defaultFolder_8tlxv_1",rD="_names_8tlxv_5",iD="_folderType_8tlxv_9",Kh={defaultFolder:nD,names:rD,folderType:iD},a3=e=>{const t=Ie.c(19),{isActive:n,isDefault:r,folderName:i,typeName:a}=e,{ProjectIconComponent:o}=v.useContext(rn),s=`folder${n?"-filled":""}`,l=r?Kh.defaultFolder:"text-primary";let c;t[0]!==l?(c=se("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]!==o||t[4]!==s||t[5]!==c?(d=y.jsx(o,{icon:s,className:c,iconProps:u,size:18}),t[3]=o,t[4]=s,t[5]=c,t[6]=d):d=t[6];let f;t[7]===Symbol.for("react.memo_cache_sentinel")?(f=se("d-flex flex-column gap-0 align-items-start",Kh.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 m;t[11]!==a?(m=a?y.jsxs("span",{className:Kh.folderType,children:["(",a,")"]}):null,t[11]=a,t[12]=m):m=t[12];let g;t[13]!==p||t[14]!==m?(g=y.jsxs("div",{className:f,children:[p,m]}),t[13]=p,t[14]=m,t[15]=g):g=t[15];let x;return t[16]!==g||t[17]!==d?(x=y.jsxs("div",{className:"d-flex gap-2 align-items-center",children:[d,g]}),t[16]=g,t[17]=d,t[18]=x):x=t[18],x},aD=e=>{const t=Ie.c(9),{customText:n}=e,{reducer:r}=v.useContext(mn),[i,a]=r;let o;t[0]!==a?(o=()=>{a({type:"select-folder",folderId:"root"})},t[0]=a,t[1]=o):o=t[1];const s=o;let l;t[2]===Symbol.for("react.memo_cache_sentinel")?(l=se("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(a3,{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 oD(e){if(e.state!=="openned-modal")throw new Error('Not in "openned-modal" state!')}const o3=()=>{const e=Kd(),{startLoading:t,stopLoading:n}=v.useContext(zd),{reducer:[,r]}=v.useContext(mn),i=v.useCallback(async(o,s)=>{t("documents-renameFolder");try{await e.put("/documents/folder/rename",{folderId:o,name:s}),r({type:"update-folders",folderIds:[o],newProperties:{name:s}})}finally{n("documents-renameFolder")}},[e,r,t,n]),a=v.useCallback(async o=>{t("documentsFolderCreate");try{const s=await e.post("/documents/folder",o);r({type:"create-folder",folderData:o,folderId:s.data.id,isOnlyRead:s.data.onlyRead})}finally{n("documentsFolderCreate")}},[e,r,t,n]);return{renameFolder:i,createFolder:a}},xb=(e,t,n)=>{if(e&&"reportValidity"in e){const r=sn.get(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},s3=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?xb(r.ref,n,e):r.refs&&r.refs.forEach(i=>xb(i,n,e))}},sD=(e,t)=>{t.shouldUseNativeValidation&&s3(e,t);const n={};for(const r in e){const i=sn.get(t.fields,r),a=Object.assign(e[r]||{},{ref:i&&i.ref});if(lD(t.names||Object.keys(e),r)){const o=Object.assign({},sn.get(n,r));sn.set(o,"root",a),sn.set(n,r,o)}else sn.set(n,r,a)}return n},lD=(e,t)=>e.some(n=>n.startsWith(t+"."));var cD=function(e,t){for(var n={};e.length;){var r=e[0],i=r.code,a=r.message,o=r.path.join(".");if(!n[o])if("unionErrors"in r){var s=r.unionErrors[0].errors[0];n[o]={message:s.message,type:s.code}}else n[o]={message:a,type:i};if("unionErrors"in r&&r.unionErrors.forEach(function(u){return u.errors.forEach(function(d){return e.push(d)})}),t){var l=n[o].types,c=l&&l[r.code];n[o]=sn.appendErrors(o,t,n,i,c?[].concat(c,r.message):r.message)}e.shift()}return n},rf=function(e,t,n){return n===void 0&&(n={}),function(r,i,a){try{return Promise.resolve(function(o,s){try{var l=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(c){return a.shouldUseNativeValidation&&s3({},a),{errors:{},values:n.raw?r:c}})}catch(c){return s(c)}return l&&l.then?l.then(void 0,s):l}(0,function(o){if(function(s){return Array.isArray(s==null?void 0:s.errors)}(o))return{values:{},errors:sD(cD(o.errors,!a.shouldUseNativeValidation&&a.criteriaMode==="all"),a)};throw o}))}catch(o){return Promise.reject(o)}}};const uD=()=>{const e=Ie.c(14),{reducer:t,entityId:n,entityType:r}=v.useContext(mn),[i]=t,{zNumberRequired:a,zStringRequired:o}=Qd(),{createFolder:s}=o3();let l,c;if(e[0]!==a||e[1]!==o){const m=di({name:o(),documentTypeId:a()});c=sn.useForm,l=rf(m),e[0]=a,e[1]=o,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 m=>{const g={...m,dbObjectId:n.toString(),entity:r,parentFolderId:i.activeFolder==="root"?null:i.activeFolder};await s(g)},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},dD=e=>{var b;const t=Ie.c(38),{handleClose:n}=e,{texts:r}=v.useContext(rn),{documents:i}=r,{reducer:a,entityType:o}=v.useContext(mn),[s]=a;if(oD(s),s.modalType!=="create-folder")throw new Error("Tried to render CreateFolderModal without create-folder modal type reducer state.");const{onSubmit:l,formMethods:c}=uD();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]!==o||t[5]!==s.chosenFolderId||t[6]!==s.foldersMap){let S;t[8]!==o||t[9]!==s.chosenFolderId||t[10]!==s.foldersMap?(S=((b=s.foldersMap.get(s.chosenFolderId))==null?void 0:b.name)??o,t[8]=o,t[9]=s.chosenFolderId,t[10]=s.foldersMap,t[11]=S):S=t[11],d=i.createFolderInFolder(S),t[3]=i,t[4]=o,t[5]=s.chosenFolderId,t[6]=s.foldersMap,t[7]=d}else d=t[7];let f;t[12]!==d?(f=y.jsx(Vn.Header,{closeButton:!0,children:y.jsx(Vn.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(n0,{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 m;t[19]!==h||t[20]!==p?(m=y.jsxs(Vn.Body,{children:[h,p]}),t[19]=h,t[20]=p,t[21]=m):m=t[21];let g;t[22]!==i.cancel||t[23]!==n?(g=y.jsx(Ba,{onClick:n,variant:"outlined",color:"secondary",children:i.cancel}),t[22]=i.cancel,t[23]=n,t[24]=g):g=t[24];let x;t[25]!==i.createFolder?(x=y.jsx(Ba,{type:"submit",children:i.createFolder}),t[25]=i.createFolder,t[26]=x):x=t[26];let _;t[27]!==x||t[28]!==g?(_=y.jsxs(Vn.Footer,{children:[g,x]}),t[27]=x,t[28]=g,t[29]=_):_=t[29];let w;t[30]!==_||t[31]!==u||t[32]!==f||t[33]!==m?(w=y.jsxs(Gr,{onSubmit:u,children:[f,m,_]}),t[30]=_,t[31]=u,t[32]=f,t[33]=m,t[34]=w):w=t[34];let C;return t[35]!==c||t[36]!==w?(C=y.jsx(y.Fragment,{children:y.jsx(sn.FormProvider,{...c,children:w})}),t[35]=c,t[36]=w,t[37]=C):C=t[37],C},l3=100,fD=(e,t)=>{const n=Kd(),{startLoading:r,stopLoading:i}=v.useContext(zd),{loadDocuments:a}=v.useContext(mn),{zStringRequired:o,zString:s,zNumberRequired:l,zDateRequired:c}=Qd(),u=di({name:o(),description:s(),validToDate:c(),documentTypeId:l()}),d=sn.useForm({resolver:rf(u),defaultValues:{...e,validToDate:Hd(e.validToDate)}}),f=v.useCallback(async h=>{r("documents-updateProperties");try{await n.put(`/documents/${e.id}/update-info`,h),await a(),t()}finally{i("documents-updateProperties")}},[n,e.id,t,a,r,i]);return{formMethods:d,onSubmit:f}},hD=e=>{const t=Ie.c(38),{handleClose:n,file:r}=e,{texts:i}=v.useContext(rn),{documents:a}=i,{reducer:o}=v.useContext(mn),[s]=o,{formMethods:l,onSubmit:c}=fD(r,n);let u;t[0]!==a.editFileProperties?(u=y.jsx(Vn.Header,{closeButton:!0,children:y.jsx(Vn.Title,{children:a.editFileProperties})}),t[0]=a.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]!==a.name?(f=y.jsx(es,{formField:"name",type:"text",label:a.name,required:!0}),t[5]=a.name,t[6]=f):f=t[6];let h;t[7]!==a.validSince?(h=y.jsx(es,{formField:"validToDate",type:"date",label:a.validSince,required:!0}),t[7]=a.validSince,t[8]=h):h=t[8];let p;t[9]!==a.category||t[10]!==s.documentTypes?(p=y.jsx(n0,{formField:"documentTypeId",label:a.category,options:s.documentTypes,isNumber:!0,required:!0}),t[9]=a.category,t[10]=s.documentTypes,t[11]=p):p=t[11];let m;t[12]===Symbol.for("react.memo_cache_sentinel")?(m={maxLength:l3},t[12]=m):m=t[12];let g;t[13]!==a.description?(g=y.jsx(r0,{formField:"description",label:a.description,customFormControlProps:m}),t[13]=a.description,t[14]=g):g=t[14];let x;t[15]!==f||t[16]!==h||t[17]!==p||t[18]!==g?(x=y.jsxs(Vn.Body,{children:[f,h,p,g]}),t[15]=f,t[16]=h,t[17]=p,t[18]=g,t[19]=x):x=t[19];let _;t[20]!==a.cancel||t[21]!==n?(_=y.jsx(Ba,{onClick:n,color:"secondary",variant:"outlined",children:a.cancel}),t[20]=a.cancel,t[21]=n,t[22]=_):_=t[22];let w;t[23]!==a.save?(w=y.jsx(Ba,{type:"submit",children:a.save}),t[23]=a.save,t[24]=w):w=t[24];let C;t[25]!==_||t[26]!==w?(C=y.jsxs(Vn.Footer,{children:[_,w]}),t[25]=_,t[26]=w,t[27]=C):C=t[27];let b;t[28]!==x||t[29]!==C||t[30]!==d?(b=y.jsxs(Gr,{onSubmit:d,children:[x,C]}),t[28]=x,t[29]=C,t[30]=d,t[31]=b):b=t[31];let S;t[32]!==l||t[33]!==b?(S=y.jsx(sn.FormProvider,{...l,children:b}),t[32]=l,t[33]=b,t[34]=S):S=t[34];let M;return t[35]!==S||t[36]!==u?(M=y.jsxs(y.Fragment,{children:[u,S]}),t[35]=S,t[36]=u,t[37]=M):M=t[37],M},pD=e=>{const t=Ie.c(9),{handleClose:n}=e,{reducer:r}=v.useContext(mn),[i]=r;let a;e:{if(i.markedFiles.length!==1){a=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];a=l}const o=a;if(o===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]!==o||t[7]!==n?(s=y.jsx(hD,{file:o,handleClose:n}),t[6]=o,t[7]=n,t[8]=s):s=t[8],s},mD=()=>{const{reducer:[e,t]}=v.useContext(mn),n=v.useCallback(()=>{t({type:"close-modal"})},[t]),r=v.useMemo(()=>{if(e.state!=="openned-modal")return null;switch(e.modalType){case"create-folder":return y.jsx(dD,{handleClose:n});case"edit-file-properties":return y.jsx(pD,{handleClose:n});default:return null}},[e.state,e.modalType]);return y.jsx(Vn,{show:e.state==="openned-modal",onHide:n,children:r})},wb="documents_drag_image_element",Zu="drop-container-highlight-class",_b="data-drop-container-id",Cb="data-draggable-id",gD=()=>{const e=document.getElementById(wb);if(e!==null)return e;const t=document.createElement("div");return t.id=wb,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},s0=()=>{const e=Ie.c(12),{apiActions:t,reducer:n}=v.useContext(mn),{moveDocuments:r}=t,[i]=n;let a;e[0]!==i.markedFiles?(a=x=>{var _;if(i.markedFiles.length>0){const w=gD();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(Cb))==null?void 0:_.nodeValue)??"",10)])),x.dataTransfer.dropEffect="none",x.dataTransfer.effectAllowed="move"},e[0]=i.markedFiles,e[1]=a):a=e[1];const o=a;let s;e[2]!==o||e[3]!==i.markedFiles?(s=x=>({[Cb]:x,draggable:i.markedFiles.length===0||i.markedFiles.includes(x),onDragStart:o}),e[2]=o,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(Zu);const w=_.dataTransfer.files;if(x&&w&&w.length>0){x(w);return}const C=_.dataTransfer.getData("application/json");if(C){const S=JSON.parse(C),M=parseInt(((b=_.currentTarget.attributes.getNamedItem(_b))==null?void 0:b.value)??"",10);r(M,S)}},e[5]=r,e[6]=c):c=e[6];const u=c,d=bD,f=yD,h=xD;let p;e[7]!==u?(p=(x,_)=>({onDrop:u(_==null?void 0:_.onFilesDrop),onDragOver:d(),onDragEnter:f(_==null?void 0:_.ignoreInner),onDragLeave:h,[_b]:x}),e[7]=u,e[8]=p):p=e[8];const m=p;let g;return e[9]!==l||e[10]!==m?(g={getDraggableProps:l,getDropProps:m},e[9]=l,e[10]=m,e[11]=g):g=e[11],g};function vD(e){e.preventDefault(),e.stopPropagation()}function bD(){return vD}function yD(e){return t=>{t.preventDefault(),t.stopPropagation(),t.dataTransfer.types.includes("Files")?(t.dataTransfer.dropEffect="copy",t.currentTarget.classList.add(Zu)):!e&&t.dataTransfer.types.includes("application/json")?(t.dataTransfer.dropEffect="move",t.currentTarget.classList.add(Zu)):t.dataTransfer.dropEffect="none"}}function xD(e){e.preventDefault(),e.stopPropagation(),e.target===e.currentTarget&&(e.dataTransfer.dropEffect="none",e.currentTarget.classList.remove(Zu))}function c3(e,t,n){for(let r=0;r<e.childrenIds.length;r++){const i=e.childrenIds[r];if(i===t)return!0;const a=n.get(i);if(a&&c3(a,t,n))return!0}return!1}function wD(e){if(e.activeFolder==="root")return!1;const t=e.foldersMap.get(e.activeFolder);return!(t!=null&&t.onlyRead)}function u3(e,t){const n=t.get(e);return n===void 0?"":n.parentId===null?n.name:`${u3(n.parentId,t)}/${n.name}`}const _D=()=>{const e=Ie.c(6),{zString:t,zStringRequired:n,zNumberRequired:r}=Qd();let i;e[0]!==r||e[1]!==t||e[2]!==n?(i=di({validToDate:n(),description:t(),name:t(),documentTypeId:r()}),e[0]=r,e[1]=t,e[2]=n,e[3]=i):i=e[3];const a=i;let o;return e[4]!==a?(o={formSchema:a},e[4]=a,e[5]=o):o=e[5],o},l0=e=>{var X;const t=Ie.c(69),{handleClose:n,files:r,targetFolderId:i}=e,{texts:a}=v.useContext(rn),{documents:o}=a,{reducer:s,apiActions:l}=v.useContext(mn),[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 m=p,{formSchema:g}=_D();let x;t[5]!==g?(x=rf(g),t[5]=g,t[6]=x):x=t[6];let _;t[7]===Symbol.for("react.memo_cache_sentinel")?(_=Hd(new Date().toISOString()),t[7]=_):_=t[7];let w;t[8]!==h||t[9]!==c.documentTypes||t[10]!==c.foldersMap?(w=(X=c.documentTypes.find(J=>{var ee;return J.name===((ee=c.foldersMap.get(h))==null?void 0:ee.defaultDocType)}))==null?void 0:X.id,t[8]=h,t[9]=c.documentTypes,t[10]=c.foldersMap,t[11]=w):w=t[11];let C;t[12]!==w?(C={validToDate:_,documentTypeId:w},t[12]=w,t[13]=C):C=t[13];let b;t[14]!==x||t[15]!==C?(b={resolver:x,defaultValues:C},t[14]=x,t[15]=C,t[16]=b):b=t[16];const S=sn.useForm(b);let M;t[17]!==r||t[18]!==h||t[19]!==n||t[20]!==u?(M=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]=M):M=t[21];const $=M;let k;t[22]!==o||t[23]!==r.length||t[24]!==m.name?(k=o.uploadFilesPrompt(r.length,m.name),t[22]=o,t[23]=r.length,t[24]=m.name,t[25]=k):k=t[25];let D;t[26]!==f?(D=y.jsx("ul",{children:f.map(CD)}),t[26]=f,t[27]=D):D=t[27];let T;t[28]!==k||t[29]!==D?(T=y.jsx(Vn.Header,{closeButton:!0,children:y.jsxs("div",{children:[k,D]})}),t[28]=k,t[29]=D,t[30]=T):T=t[30];let E;t[31]!==S||t[32]!==$?(E=S.handleSubmit($),t[31]=S,t[32]=$,t[33]=E):E=t[33];let R;t[34]!==o.documentType||t[35]!==c.documentTypes?(R=y.jsx(n0,{formField:"documentTypeId",label:o.documentType,options:c.documentTypes,isNumber:!0,required:!0}),t[34]=o.documentType,t[35]=c.documentTypes,t[36]=R):R=t[36];let j;t[37]!==o.validSince?(j=y.jsx(es,{formField:"validToDate",label:o.validSince,type:"date",required:!0}),t[37]=o.validSince,t[38]=j):j=t[38];let O;t[39]!==o.name||t[40]!==f.length?(O=f.length===1?y.jsx(es,{formField:"name",label:o.name,type:"text"}):null,t[39]=o.name,t[40]=f.length,t[41]=O):O=t[41];let A;t[42]===Symbol.for("react.memo_cache_sentinel")?(A={maxLength:l3},t[42]=A):A=t[42];let I;t[43]!==o.description?(I=y.jsx(r0,{formField:"description",label:o.description,customFormControlProps:A}),t[43]=o.description,t[44]=I):I=t[44];let F;t[45]!==R||t[46]!==j||t[47]!==O||t[48]!==I?(F=y.jsxs(Vn.Body,{children:[R,j,O,I]}),t[45]=R,t[46]=j,t[47]=O,t[48]=I,t[49]=F):F=t[49];let z;t[50]!==o.cancel||t[51]!==n?(z=y.jsx(Ba,{variant:"outlined",color:"secondary",onClick:n,children:o.cancel}),t[50]=o.cancel,t[51]=n,t[52]=z):z=t[52];let L;t[53]!==o.upload?(L=y.jsx(Ba,{type:"submit",children:o.upload}),t[53]=o.upload,t[54]=L):L=t[54];let H;t[55]!==z||t[56]!==L?(H=y.jsxs(Vn.Footer,{children:[z,L]}),t[55]=z,t[56]=L,t[57]=H):H=t[57];let Y;t[58]!==E||t[59]!==F||t[60]!==H?(Y=y.jsxs(Gr,{onSubmit:E,children:[F,H]}),t[58]=E,t[59]=F,t[60]=H,t[61]=Y):Y=t[61];let q;t[62]!==S||t[63]!==Y?(q=y.jsx(sn.FormProvider,{...S,children:Y}),t[62]=S,t[63]=Y,t[64]=q):q=t[64];let Z;return t[65]!==n||t[66]!==T||t[67]!==q?(Z=y.jsxs(Vn,{show:!0,onHide:n,children:[T,q]}),t[65]=n,t[66]=T,t[67]=q,t[68]=Z):Z=t[68],Z};function CD(e,t){return y.jsxs("li",{children:[e.name," - ",Go(e.size)]},`${e.name}-${t}`)}const SD="_folder_1cktt_1",TD="_collapseArrowDiv_1cktt_8",$D="_button_1cktt_20",kD="_nestedList_1cktt_24",MD="_numberOfFiles_1cktt_31",ED="_collapseArrow_1cktt_8",fa={folder:SD,collapseArrowDiv:TD,button:$D,nestedList:kD,numberOfFiles:MD,collapseArrow:ED},d3=e=>{const t=Ie.c(59),{dirId:n,writePermissions:r}=e,{ProjectIconComponent:i}=v.useContext(rn),{reducer:a}=v.useContext(mn),[o,s]=a,{getDropProps:l}=s0(),[c,u]=v.useState(null),[d,f]=v.useState(!0);let h,p;t[0]!==n||t[1]!==o.foldersMap?(p=o.foldersMap.get(n),t[0]=n,t[1]=o.foldersMap,t[2]=p):p=t[2];const m=p;if(m===void 0)throw new Error(`tried to get dir with id ${n}`);h=m;const g=h;let x;t[3]!==n||t[4]!==g||t[5]!==s||t[6]!==o.activeFolder||t[7]!==o.foldersMap?(x=()=>{o.activeFolder!=="root"&&c3(g,o.activeFolder,o.foldersMap)&&s({type:"select-folder",folderId:n}),f(!0)},t[3]=n,t[4]=g,t[5]=s,t[6]=o.activeFolder,t[7]=o.foldersMap,t[8]=x):x=t[8];const _=x,w=g.childrenIds.length>0;let C;t[9]!==n||t[10]!==s?(C=()=>{s({type:"select-folder",folderId:n})},t[9]=n,t[10]=s,t[11]=C):C=t[11];const b=C;let S;if(t[12]!==n||t[13]!==o.filteredFiles){let Y;t[15]!==n?(Y=q=>q.folderId===n&&q.archive===!1,t[15]=n,t[16]=Y):Y=t[16],S=o.filteredFiles.filter(Y),t[12]=n,t[13]=o.filteredFiles,t[14]=S}else S=t[14];const M=S.length;let $;t[17]!==i||t[18]!==_||t[19]!==w||t[20]!==d?($=w?d?y.jsx("button",{onClick:()=>f(!1),type:"button",children:y.jsx(i,{icon:"chevron-right",iconProps:{className:fa.collapseArrow}})}):y.jsx("button",{onClick:_,type:"button",children:y.jsx(i,{icon:"chevron-down",iconProps:{className:fa.collapseArrow}})}):null,t[17]=i,t[18]=_,t[19]=w,t[20]=d,t[21]=$):$=t[21];let k;t[22]!==$?(k=y.jsx("div",{className:fa.collapseArrowDiv,children:$}),t[22]=$,t[23]=k):k=t[23];let D;t[24]===Symbol.for("react.memo_cache_sentinel")?(D=se(fa.button),t[24]=D):D=t[24];let T;t[25]!==n||t[26]!==g.onlyRead||t[27]!==l||t[28]!==r?(T=r&&!g.onlyRead?l(n,{onFilesDrop:Y=>u(Y)}):{},t[25]=n,t[26]=g.onlyRead,t[27]=l,t[28]=r,t[29]=T):T=t[29];const E=g.defaultDocType??"",R=n===o.activeFolder;let j;t[30]!==g.isDefault||t[31]!==g.name||t[32]!==E||t[33]!==R?(j=y.jsx(a3,{isDefault:g.isDefault,folderName:g.name,typeName:E,isActive:R}),t[30]=g.isDefault,t[31]=g.name,t[32]=E,t[33]=R,t[34]=j):j=t[34];let O;t[35]!==M?(O=M>0?y.jsxs("span",{className:fa.numberOfFiles,children:["[",M,"]"]}):void 0,t[35]=M,t[36]=O):O=t[36];let A;t[37]!==j||t[38]!==O?(A=y.jsxs("div",{className:"d-flex align-items-center gap-2",children:[j,O]}),t[37]=j,t[38]=O,t[39]=A):A=t[39];let I;t[40]!==b||t[41]!==T||t[42]!==A?(I=y.jsx("button",{className:D,onClick:b,type:"button",...T,children:A}),t[40]=b,t[41]=T,t[42]=A,t[43]=I):I=t[43];let F;t[44]!==g.childrenIds||t[45]!==w||t[46]!==d||t[47]!==r?(F=w?d?null:y.jsx("ul",{className:fa.nestedList,children:g==null?void 0:g.childrenIds.map(Y=>y.jsx(d3,{dirId:Y,writePermissions:r},Y))}):void 0,t[44]=g.childrenIds,t[45]=w,t[46]=d,t[47]=r,t[48]=F):F=t[48];let z;t[49]!==I||t[50]!==F||t[51]!==k?(z=y.jsxs("li",{className:fa.folder,children:[k,I,F]}),t[49]=I,t[50]=F,t[51]=k,t[52]=z):z=t[52];let L;t[53]!==n||t[54]!==c?(L=c!==null?y.jsx(l0,{files:c,handleClose:()=>u(null),targetFolderId:n}):null,t[53]=n,t[54]=c,t[55]=L):L=t[55];let H;return t[56]!==z||t[57]!==L?(H=y.jsxs(y.Fragment,{children:[z,L]}),t[56]=z,t[57]=L,t[58]=H):H=t[58],H},OD="_wrapper_1th2u_1",AD="_downloadButton_1th2u_9",vm={wrapper:OD,downloadButton:AD},f3=6048e5,RD=864e5,Sb=Symbol.for("constructDateFrom");function wi(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Sb in e?e[Sb](t):e instanceof Date?new e.constructor(t):new Date(t)}function nr(e,t){return wi(t||e,e)}function h3(e,t){const n=()=>wi(t==null?void 0:t.in,NaN),r=ND(e);let i;if(r.date){const l=PD(r.date,2);i=LD(l.restDateString,l.year)}if(!i||isNaN(+i))return n();const a=+i;let o=0,s;if(r.time&&(o=FD(r.time),isNaN(o)))return n();if(r.timezone){if(s=BD(r.timezone),isNaN(s))return n()}else{const l=new Date(a+o),c=nr(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 nr(a+o+s,t==null?void 0:t.in)}const Qc={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},DD=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,jD=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,ID=/^([+-])(\d{2})(?::?(\d{2}))?$/;function ND(e){const t={},n=e.split(Qc.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],Qc.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Qc.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const i=Qc.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function PD(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const i=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:a===null?i:a*100,restDateString:e.slice((r[1]||r[2]).length)}}function LD(e,t){if(t===null)return new Date(NaN);const n=e.match(DD);if(!n)return new Date(NaN);const r=!!n[4],i=zs(n[1]),a=zs(n[2])-1,o=zs(n[3]),s=zs(n[4]),l=zs(n[5])-1;if(r)return VD(t,s,l)?zD(t,s,l):new Date(NaN);{const c=new Date(0);return!UD(t,a,o)||!HD(t,i)?new Date(NaN):(c.setUTCFullYear(t,a,Math.max(i,o)),c)}}function zs(e){return e?parseInt(e):1}function FD(e){const t=e.match(jD);if(!t)return NaN;const n=Jh(t[1]),r=Jh(t[2]),i=Jh(t[3]);return qD(n,r,i)?n*36e5+r*6e4+i*1e3:NaN}function Jh(e){return e&&parseFloat(e.replace(",","."))||0}function BD(e){if(e==="Z")return 0;const t=e.match(ID);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return YD(r,i)?n*(r*36e5+i*6e4):NaN}function zD(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const i=r.getUTCDay()||7,a=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+a),r}const WD=[31,null,31,30,31,30,31,31,30,31,30,31];function p3(e){return e%400===0||e%4===0&&e%100!==0}function UD(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(WD[t]||(p3(e)?29:28))}function HD(e,t){return t>=1&&t<=(p3(e)?366:365)}function VD(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function qD(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function YD(e,t){return t>=0&&t<=59}let GD={};function af(){return GD}function Il(e,t){var s,l,c,u;const n=af(),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=nr(e,t==null?void 0:t.in),a=i.getDay(),o=(a<r?7:0)+a-r;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function Xu(e,t){return Il(e,{...t,weekStartsOn:1})}function m3(e,t){const n=nr(e,t==null?void 0:t.in),r=n.getFullYear(),i=wi(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const a=Xu(i),o=wi(n,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);const s=Xu(o);return n.getTime()>=a.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function Tb(e){const t=nr(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function ZD(e,...t){const n=wi.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function $b(e,t){const n=nr(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function XD(e,t,n){const[r,i]=ZD(n==null?void 0:n.in,e,t),a=$b(r),o=$b(i),s=+a-Tb(a),l=+o-Tb(o);return Math.round((s-l)/RD)}function KD(e,t){const n=m3(e,t),r=wi(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Xu(r)}function JD(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function QD(e){return!(!JD(e)&&typeof e!="number"||isNaN(+nr(e)))}function ej(e,t){const n=nr(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const tj={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"}},nj=(e,t,n)=>{let r;const i=tj[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 Qh(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const rj={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},ij={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},aj={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},oj={date:Qh({formats:rj,defaultWidth:"full"}),time:Qh({formats:ij,defaultWidth:"full"}),dateTime:Qh({formats:aj,defaultWidth:"full"})},sj={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},lj=(e,t,n,r)=>sj[e];function Ws(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):o;i=e.formattingValues[s]||e.formattingValues[o]}else{const o=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[s]||e.values[o]}const a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}const cj={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},uj={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},dj={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"]},fj={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"]},hj={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"}},pj={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"}},mj=(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"},gj={ordinalNumber:mj,era:Ws({values:cj,defaultWidth:"wide"}),quarter:Ws({values:uj,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ws({values:dj,defaultWidth:"wide"}),day:Ws({values:fj,defaultWidth:"wide"}),dayPeriod:Ws({values:hj,defaultWidth:"wide",formattingValues:pj,defaultFormattingWidth:"wide"})};function Us(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;const o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?bj(s,d=>d.test(o)):vj(s,d=>d.test(o));let c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;const u=t.slice(o.length);return{value:c,rest:u}}}function vj(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function bj(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function yj(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;const s=t.slice(i.length);return{value:o,rest:s}}}const xj=/^(\d+)(th|st|nd|rd)?/i,wj=/\d+/i,_j={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},Cj={any:[/^b/i,/^(a|c)/i]},Sj={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Tj={any:[/1/i,/2/i,/3/i,/4/i]},$j={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},kj={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]},Mj={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},Ej={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]},Oj={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},Aj={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}},Rj={ordinalNumber:yj({matchPattern:xj,parsePattern:wj,valueCallback:e=>parseInt(e,10)}),era:Us({matchPatterns:_j,defaultMatchWidth:"wide",parsePatterns:Cj,defaultParseWidth:"any"}),quarter:Us({matchPatterns:Sj,defaultMatchWidth:"wide",parsePatterns:Tj,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Us({matchPatterns:$j,defaultMatchWidth:"wide",parsePatterns:kj,defaultParseWidth:"any"}),day:Us({matchPatterns:Mj,defaultMatchWidth:"wide",parsePatterns:Ej,defaultParseWidth:"any"}),dayPeriod:Us({matchPatterns:Oj,defaultMatchWidth:"any",parsePatterns:Aj,defaultParseWidth:"any"})},Dj={code:"en-US",formatDistance:nj,formatLong:oj,formatRelative:lj,localize:gj,match:Rj,options:{weekStartsOn:0,firstWeekContainsDate:1}};function jj(e,t){const n=nr(e,t==null?void 0:t.in);return XD(n,ej(n))+1}function Ij(e,t){const n=nr(e,t==null?void 0:t.in),r=+Xu(n)-+KD(n);return Math.round(r/f3)+1}function g3(e,t){var u,d,f,h;const n=nr(e,t==null?void 0:t.in),r=n.getFullYear(),i=af(),a=(t==null?void 0:t.firstWeekContainsDate)??((d=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??i.firstWeekContainsDate??((h=(f=i.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??1,o=wi((t==null?void 0:t.in)||e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);const s=Il(o,t),l=wi((t==null?void 0:t.in)||e,0);l.setFullYear(r,0,a),l.setHours(0,0,0,0);const c=Il(l,t);return+n>=+s?r+1:+n>=+c?r:r-1}function Nj(e,t){var o,s,l,c;const n=af(),r=(t==null?void 0:t.firstWeekContainsDate)??((s=(o=t==null?void 0:t.locale)==null?void 0:o.options)==null?void 0:s.firstWeekContainsDate)??n.firstWeekContainsDate??((c=(l=n.locale)==null?void 0:l.options)==null?void 0:c.firstWeekContainsDate)??1,i=g3(e,t),a=wi((t==null?void 0:t.in)||e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),Il(a,t)}function Pj(e,t){const n=nr(e,t==null?void 0:t.in),r=+Il(n,t)-+Nj(n,t);return Math.round(r/f3)+1}function Bt(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Ai={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Bt(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Bt(n+1,2)},d(e,t){return Bt(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 Bt(e.getHours()%12||12,t.length)},H(e,t){return Bt(e.getHours(),t.length)},m(e,t){return Bt(e.getMinutes(),t.length)},s(e,t){return Bt(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return Bt(i,t.length)}},go={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},kb={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 Ai.y(e,t)},Y:function(e,t,n,r){const i=g3(e,r),a=i>0?i:1-i;if(t==="YY"){const o=a%100;return Bt(o,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):Bt(a,t.length)},R:function(e,t){const n=m3(e);return Bt(n,t.length)},u:function(e,t){const n=e.getFullYear();return Bt(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 Bt(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 Bt(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 Ai.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 Bt(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=Pj(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):Bt(i,t.length)},I:function(e,t,n){const r=Ij(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Bt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Ai.d(e,t)},D:function(e,t,n){const r=jj(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Bt(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return Bt(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return Bt(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return Bt(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=go.noon:r===0?i=go.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=go.evening:r>=12?i=go.afternoon:r>=4?i=go.morning:i=go.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 Ai.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Ai.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Bt(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Bt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Ai.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Ai.s(e,t)},S:function(e,t){return Ai.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Eb(r);case"XXXX":case"XX":return va(r);case"XXXXX":case"XXX":default:return va(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Eb(r);case"xxxx":case"xx":return va(r);case"xxxxx":case"xxx":default:return va(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Mb(r,":");case"OOOO":default:return"GMT"+va(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Mb(r,":");case"zzzz":default:return"GMT"+va(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return Bt(r,t.length)},T:function(e,t,n){return Bt(+e,t.length)}};function Mb(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+Bt(a,2)}function Eb(e,t){return e%60===0?(e>0?"-":"+")+Bt(Math.abs(e)/60,2):va(e,t)}function va(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Bt(Math.trunc(r/60),2),a=Bt(r%60,2);return n+i+t+a}const Ob=(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"})}},v3=(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"})}},Lj=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return Ob(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",Ob(r,t)).replace("{{time}}",v3(i,t))},Fj={p:v3,P:Lj},Bj=/^D+$/,zj=/^Y+$/,Wj=["D","DD","YY","YYYY"];function Uj(e){return Bj.test(e)}function Hj(e){return zj.test(e)}function Vj(e,t,n){const r=qj(e,t,n);if(console.warn(r),Wj.includes(e))throw new RangeError(r)}function qj(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 Yj=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Gj=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Zj=/^'([^]*?)'?$/,Xj=/''/g,Kj=/[a-zA-Z]/;function b3(e,t,n){var u,d,f,h;const r=af(),i=r.locale??Dj,a=r.firstWeekContainsDate??((d=(u=r.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??1,o=r.weekStartsOn??((h=(f=r.locale)==null?void 0:f.options)==null?void 0:h.weekStartsOn)??0,s=nr(e,n==null?void 0:n.in);if(!QD(s))throw new RangeError("Invalid time value");let l=t.match(Gj).map(p=>{const m=p[0];if(m==="p"||m==="P"){const g=Fj[m];return g(p,i.formatLong)}return p}).join("").match(Yj).map(p=>{if(p==="''")return{isToken:!1,value:"'"};const m=p[0];if(m==="'")return{isToken:!1,value:Jj(p)};if(kb[m])return{isToken:!0,value:p};if(m.match(Kj))throw new RangeError("Format string contains an unescaped latin alphabet character `"+m+"`");return{isToken:!1,value:p}});i.localize.preprocessor&&(l=i.localize.preprocessor(s,l));const c={firstWeekContainsDate:a,weekStartsOn:o,locale:i};return l.map(p=>{if(!p.isToken)return p.value;const m=p.value;(Hj(m)||Uj(m))&&Vj(m,t,String(e));const g=kb[m[0]];return g(s,m,i.localize,c)}).join("")}function Jj(e){const t=e.match(Zj);return t?t[1].replace(Xj,"'"):e}function y3(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 Nl;(function(e){e.event="event",e.props="prop"})(Nl||(Nl={}));function Li(){}function Qj(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(a,o){return a===t[o]})||(t=r,n=e.apply(void 0,r)),n}}function Pl(e){return!!(e||"").match(/\d/)}function jo(e){return e==null}function eI(e){return typeof e=="number"&&isNaN(e)}function x3(e){return jo(e)||eI(e)||typeof e=="number"&&!isFinite(e)}function w3(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function tI(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 nI(e,t,n){var r=tI(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 rI(e){var t=v.useRef(e);t.current=e;var n=v.useRef(function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return t.current.apply(t,r)});return n.current}function c0(e,t){t===void 0&&(t=!0);var n=e[0]==="-",r=n&&t;e=e.replace("-","");var i=e.split("."),a=i[0],o=i[1]||"";return{beforeDecimal:a,afterDecimal:o,hasNegation:n,addNegation:r}}function iI(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 _3(e,t,n){for(var r="",i=n?"0":"",a=0;a<=t-1;a++)r+=e[a]||i;return r}function Ab(e,t){return Array(t+1).join(e)}function C3(e){var t=e+"",n=t[0]==="-"?"-":"";n&&(t=t.substring(1));var r=t.split(/[eE]/g),i=r[0],a=r[1];if(a=Number(a),!a)return n+i;i=i.replace(".","");var o=1+a,s=i.length;return o<0?i="0."+Ab("0",Math.abs(o))+i:o>=s?i=i+Ab("0",o-s):i=(i.substring(0,o)||"0")+"."+i.substring(o),n+i}function Rb(e,t,n){if(["","-"].indexOf(e)!==-1)return e;var r=(e.indexOf(".")!==-1||n)&&t,i=c0(e),a=i.beforeDecimal,o=i.afterDecimal,s=i.hasNegation,l=parseFloat("0."+(o||"0")),c=o.length<=t?"0."+o:l.toFixed(t),u=c.split("."),d=a;a&&Number(u[0])&&(d=a.split("").reverse().reduce(function(m,g,x){return m.length>x?(Number(m[0])+Number(g)).toString()+m.substring(1,m.length):g+m},u[0]));var f=_3(u[1]||"",t,n),h=s?"-":"",p=r?".":"";return""+h+d+p+f}function xa(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 S3=Qj(function(e,t){for(var n=0,r=0,i=e.length,a=t.length;e[n]===t[n]&&n<i;)n++;for(;e[i-1-r]===t[a-1-r]&&a-r>n&&i-r>n;)r++;return{from:{start:n,end:i-r},to:{start:n,end:a-r}}}),aI=function(e,t){var n=Math.min(e.selectionStart,t);return{from:{start:n,end:e.selectionEnd},to:{start:n,end:t}}};function oI(e,t,n){return Math.min(Math.max(e,t),n)}function ep(e){return Math.max(e.selectionStart,e.selectionEnd)}function sI(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function lI(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function cI(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,i=e.formattedValueIndex;return t[r]===n[i]}function uI(e,t,n,r,i,a,o){o===void 0&&(o=cI);var s=i.findIndex(function(C){return C}),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,m=u;p<m;p++){var g=o({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:h,formattedValueIndex:p});if(g&&d[p]!==!0){f[h]=p,d[p]=!0;break}}}for(var x=r;x<c&&(f[x]===-1||!a(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 Db(e,t,n,r){var i=e.length;if(t=oI(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 dI(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),n=0,r=t.length;n<r;n++)t[n]=!!(Pl(e[n])||Pl(e[n-1]));return t}function T3(e,t,n,r,i,a){a===void 0&&(a=Li);var o=rI(function(p,m){var g,x;return x3(p)?(x="",g=""):typeof p=="number"||m?(x=typeof p=="number"?C3(p):p,g=r(x)):(x=i(p,void 0),g=r(x)),{formattedValue:g,numAsString:x}}),s=v.useState(function(){return o(jo(e)?t:e,n)}),l=s[0],c=s[1],u=function(p,m){p.formattedValue!==l.formattedValue&&c({formattedValue:p.formattedValue,numAsString:p.value}),a(p,m)},d=e,f=n;jo(e)&&(d=l.numAsString,f=!0);var h=o(d,f);return v.useMemo(function(){c(h)},[h.formattedValue]),[l,u]}function fI(e){return e.replace(/[^0-9]/g,"")}function hI(e){return e}function pI(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,a=e.getInputRef,o=e.format;o===void 0&&(o=hI);var s=e.removeFormatting;s===void 0&&(s=fI);var l=e.defaultValue,c=e.valueIsNumericString,u=e.onValueChange,d=e.isAllowed,f=e.onChange;f===void 0&&(f=Li);var h=e.onKeyDown;h===void 0&&(h=Li);var p=e.onMouseUp;p===void 0&&(p=Li);var m=e.onFocus;m===void 0&&(m=Li);var g=e.onBlur;g===void 0&&(g=Li);var x=e.value,_=e.getCaretBoundary;_===void 0&&(_=dI);var w=e.isValidInputCharacter;w===void 0&&(w=Pl);var C=e.isCharacterSame,b=y3(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),S=T3(x,l,!!c,o,s,u),M=S[0],$=M.formattedValue,k=M.numAsString,D=S[1],T=v.useRef(),E=v.useRef({formattedValue:$,numAsString:k}),R=function(ne,re){E.current={formattedValue:ne.formattedValue,numAsString:ne.value},D(ne,re)},j=v.useState(!1),O=j[0],A=j[1],I=v.useRef(null),F=v.useRef({setCaretTimeout:null,focusTimeout:null});v.useEffect(function(){return A(!0),function(){clearTimeout(F.current.setCaretTimeout),clearTimeout(F.current.focusTimeout)}},[]);var z=o,L=function(ne,re){var ae=parseFloat(re);return{formattedValue:ne,value:re,floatValue:isNaN(ae)?void 0:ae}},H=function(ne,re,ae){ne.selectionStart===0&&ne.selectionEnd===ne.value.length||(xa(ne,re),F.current.setCaretTimeout=setTimeout(function(){ne.value===ae&&ne.selectionStart!==re&&xa(ne,re)},0))},Y=function(ne,re,ae){return Db(ne,re,_(ne),ae)},q=function(ne,re,ae){var le=_(re),ye=uI(re,$,ne,ae,le,w,C);return ye=Db(re,ye,le),ye},Z=function(ne){var re=ne.formattedValue;re===void 0&&(re="");var ae=ne.input,le=ne.source,ye=ne.event,ge=ne.numAsString,be;if(ae){var Me=ne.inputValue||ae.value,ce=ep(ae);ae.value=re,be=q(Me,re,ce),be!==void 0&&H(ae,be,re)}re!==$&&R(L(re,ge),{event:ye,source:le})};v.useEffect(function(){var ne=E.current,re=ne.formattedValue,ae=ne.numAsString;($!==re||k!==ae)&&R(L($,k),{event:void 0,source:Nl.props})},[$,k]);var X=I.current?ep(I.current):void 0,J=typeof window<"u"?v.useLayoutEffect:v.useEffect;J(function(){var ne=I.current;if($!==E.current.formattedValue&&ne){var re=q(E.current.formattedValue,$,X);ne.value=$,H(ne,re,$)}},[$]);var ee=function(ne,re,ae){var le=re.target,ye=T.current?aI(T.current,le.selectionEnd):S3($,ne),ge=Object.assign(Object.assign({},ye),{lastValue:$}),be=s(ne,ge),Me=z(be);if(be=s(Me,void 0),d&&!d(L(Me,be))){var ce=re.target,de=ep(ce),Ce=q(ne,$,de);return ce.value=$,H(ce,Ce,$),!1}return Z({formattedValue:Me,numAsString:be,inputValue:ne,event:re,source:ae,input:re.target}),!0},W=function(ne,re){re===void 0&&(re=0);var ae=ne.selectionStart,le=ne.selectionEnd;T.current={selectionStart:ae,selectionEnd:le+re}},P=function(ne){var re=ne.target,ae=re.value,le=ee(ae,ne,Nl.event);le&&f(ne),T.current=void 0},B=function(ne){var re=ne.target,ae=ne.key,le=re.selectionStart,ye=re.selectionEnd,ge=re.value;ge===void 0&&(ge="");var be;ae==="ArrowLeft"||ae==="Backspace"?be=Math.max(le-1,0):ae==="ArrowRight"?be=Math.min(le+1,ge.length):ae==="Delete"&&(be=le);var Me=0;ae==="Delete"&&le===ye&&(Me=1);var ce=ae==="ArrowLeft"||ae==="ArrowRight";if(be===void 0||le!==ye&&!ce){h(ne),W(re,Me);return}var de=be;if(ce){var Ce=ae==="ArrowLeft"?"left":"right";de=Y(ge,be,Ce),de!==be&&ne.preventDefault()}else ae==="Delete"&&!w(ge[be])?de=Y(ge,be,"right"):ae==="Backspace"&&!w(ge[be])&&(de=Y(ge,be,"left"));de!==be&&H(re,de,ge),h(ne),W(re,Me)},V=function(ne){var re=ne.target,ae=function(){var le=re.selectionStart,ye=re.selectionEnd,ge=re.value;if(ge===void 0&&(ge=""),le===ye){var be=Y(ge,le);be!==le&&H(re,be,ge)}};ae(),requestAnimationFrame(function(){ae()}),p(ne),W(re)},N=function(ne){ne.persist&&ne.persist();var re=ne.target,ae=ne.currentTarget;I.current=re,F.current.focusTimeout=setTimeout(function(){var le=re.selectionStart,ye=re.selectionEnd,ge=re.value;ge===void 0&&(ge="");var be=Y(ge,le);be!==le&&!(le===0&&ye===ge.length)&&H(re,be,ge),m(Object.assign(Object.assign({},ne),{currentTarget:ae}))},0)},te=function(ne){I.current=null,clearTimeout(F.current.focusTimeout),clearTimeout(F.current.setCaretTimeout),g(ne)},K=O&&sI()?"numeric":void 0,G=Object.assign({inputMode:K},b,{type:t,value:$,onChange:P,onKeyDown:B,onMouseUp:V,onFocus:N,onBlur:te});if(n==="text")return i?v.createElement(v.Fragment,null,i($,b)||null):v.createElement("span",Object.assign({},b,{ref:a}),$);if(r){var oe=r;return v.createElement(oe,Object.assign({},G,{ref:a}))}return v.createElement("input",Object.assign({},G,{ref:a}))}function jb(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,i=t.prefix;i===void 0&&(i="");var a=t.suffix;a===void 0&&(a="");var o=t.allowNegative,s=t.thousandsGroupStyle;if(s===void 0&&(s="thousand"),e===""||e==="-")return e;var l=of(t),c=l.thousandSeparator,u=l.decimalSeparator,d=n!==0&&e.indexOf(".")!==-1||n&&r,f=c0(e,o),h=f.beforeDecimal,p=f.afterDecimal,m=f.addNegation;return n!==void 0&&(p=_3(p,n,!!r)),c&&(h=nI(h,c,s)),i&&(h=i+h),a&&(p=p+a),m&&(h="-"+h),e=h+(d&&u||"")+p,e}function of(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 mI(e,t){e===void 0&&(e="");var n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),i=n.test(e),a=r.test(e);return e=e.replace(/-/g,""),i&&!a&&t&&(e="-"+e),e}function gI(e,t){return new RegExp("(^-)|[0-9]|"+w3(e),"g")}function vI(e,t,n){return e===""?!0:!(t!=null&&t.match(/\d/))&&!(n!=null&&n.match(/\d/))&&typeof e=="string"&&!isNaN(Number(e))}function bI(e,t,n){var r;t===void 0&&(t=lI(e));var i=n.allowNegative,a=n.prefix;a===void 0&&(a="");var o=n.suffix;o===void 0&&(o="");var s=n.decimalScale,l=t.from,c=t.to,u=c.start,d=c.end,f=of(n),h=f.allowedDecimalSeparators,p=f.decimalSeparator,m=e[d]===p;if(Pl(e)&&(e===a||e===o)&&t.lastValue==="")return e;if(d-u===1&&h.indexOf(e[u])!==-1){var g=s===0?"":p;e=e.substring(0,u)+g+e.substring(u+1,e.length)}var x=function(I,F,z){var L=!1,H=!1;a.startsWith("-")?L=!1:I.startsWith("--")?(L=!1,H=!0):o.startsWith("-")&&I.length===o.length?L=!1:I[0]==="-"&&(L=!0);var Y=L?1:0;return H&&(Y=2),Y&&(I=I.substring(Y),F-=Y,z-=Y),{value:I,start:F,end:z,hasNegation:L}},_=x(e,u,d),w=_.hasNegation;r=_,e=r.value,u=r.start,d=r.end;var C=x(t.lastValue,l.start,l.end),b=C.start,S=C.end,M=C.value,$=e.substring(u,d);e.length&&M.length&&(b>M.length-o.length||S<a.length)&&!($&&o.startsWith($))&&(e=M);var k=0;e.startsWith(a)?k+=a.length:u<a.length&&(k=u),e=e.substring(k),d-=k;var D=e.length,T=e.length-o.length;e.endsWith(o)?D=T:(d>T||d>e.length-o.length)&&(D=d),e=e.substring(0,D),e=mI(w?"-"+e:e,i),e=(e.match(gI(p))||[]).join("");var E=e.indexOf(p);e=e.replace(new RegExp(w3(p),"g"),function(I,F){return F===E?".":""});var R=c0(e,i),j=R.beforeDecimal,O=R.afterDecimal,A=R.addNegation;return c.end-c.start<l.end-l.start&&j===""&&m&&!parseFloat(O)&&(e=A?"-":""),e}function yI(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}),a=e[0]==="-";i.fill(!1,0,n.length+(a?1:0));var o=e.length;return i.fill(!1,o-r.length+1,o+1),i}function xI(e){var t=of(e),n=t.thousandSeparator,r=t.decimalSeparator,i=e.prefix;i===void 0&&(i="");var a=e.allowNegative;if(a===void 0&&(a=!0),n===r)throw new Error(`
247
+ Decimal separator can't be same as thousand separator.
248
+ thousandSeparator: `+n+` (thousandSeparator = {true} is same as thousandSeparator = ",")
249
+ decimalSeparator: `+r+` (default value for decimalSeparator is .)
250
+ `);return i.startsWith("-")&&a&&(console.error(`
251
+ Prefix can't start with '-' when allowNegative is true.
252
+ prefix: `+i+`
253
+ allowNegative: `+a+`
254
+ `),a=!1),Object.assign(Object.assign({},e),{allowNegative:a})}function wI(e){e=xI(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,i=e.onKeyDown;i===void 0&&(i=Li);var a=e.onBlur;a===void 0&&(a=Li);var o=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=y3(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),m=of(e),g=m.decimalSeparator,x=m.allowedDecimalSeparators,_=function(A){return jb(A,e)},w=function(A,I){return bI(A,I,e)},C=jo(d)?u:d,b=f??vI(C,c,t);jo(d)?jo(u)||(b=b||typeof u=="number"):b=b||typeof d=="number";var S=function(A){return x3(A)?A:(typeof A=="number"&&(A=C3(A)),b&&typeof s=="number"?Rb(A,s,!!l):A)},M=T3(S(d),S(u),!!b,_,w,h),$=M[0],k=$.numAsString,D=$.formattedValue,T=M[1],E=function(A){var I=A.target,F=A.key,z=I.selectionStart,L=I.selectionEnd,H=I.value;if(H===void 0&&(H=""),(F==="Backspace"||F==="Delete")&&L<c.length){A.preventDefault();return}if(z!==L){i(A);return}F==="Backspace"&&H[0]==="-"&&z===c.length+1&&n&&xa(I,1),s&&l&&(F==="Backspace"&&H[z-1]===g?(xa(I,z-1),A.preventDefault()):F==="Delete"&&H[z]===g&&A.preventDefault()),x!=null&&x.includes(F)&&H[z]===g&&xa(I,z+1);var Y=o===!0?",":o;F==="Backspace"&&H[z-1]===Y&&xa(I,z-1),F==="Delete"&&H[z]===Y&&xa(I,z+1),i(A)},R=function(A){var I=k;if(I.match(/\d/g)||(I=""),r||(I=iI(I)),l&&s&&(I=Rb(I,s,l)),I!==k){var F=jb(I,e);T({formattedValue:F,value:I,floatValue:parseFloat(I)},{event:A,source:Nl.event})}a(A)},j=function(A){return A===g?!0:Pl(A)},O=function(A){var I=A.currentValue,F=A.lastValue,z=A.formattedValue,L=A.currentValueIndex,H=A.formattedValueIndex,Y=I[L],q=z[H],Z=S3(F,I),X=Z.to,J=function(ee){return w(ee).indexOf(".")+c.length};return d===0&&l&&s&&I[X.start]===g&&J(I)<L&&J(z)>H?!1:L>=X.start&&L<X.end&&x&&x.includes(Y)&&q===g?!0:Y===q};return Object.assign(Object.assign({},p),{value:D,valueIsNumericString:!1,isValidInputCharacter:j,isCharacterSame:O,onValueChange:T,format:_,removeFormatting:w,getCaretBoundary:function(A){return yI(A,e)},onKeyDown:E,onBlur:R})}function _I(e){var t=wI(e);return v.createElement(pI,Object.assign({},t))}const CI=(e,t)=>{var i,a;const n=e.getValue(),r=((a=(i=e.column.columnDef)==null?void 0:i.meta)==null?void 0:a.alignment)??"center";return n===!0||n===!1?y.jsx(t,{align:r,color:n?"success":"secondary",icon:n?"boolean-yes":"boolean-no"}):null},SI=e=>{const t=e.getValue();return t?b3(h3(t.toString()),"dd.MM.yyyy"):null},TI=e=>{const t=e.getValue();return t?b3(h3(t.toString()),"dd.MM.yyyy HH:mm"):null},$I=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(_I,{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()})},kI=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};function MI(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ib={exports:{}},Nb;function EI(){return Nb||(Nb=1,function(e){(function(){var t={}.hasOwnProperty;function n(){for(var a="",o=0;o<arguments.length;o++){var s=arguments[o];s&&(a=i(a,r(s)))}return a}function r(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return n.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var o="";for(var s in a)t.call(a,s)&&a[s]&&(o=i(o,s));return o}function i(a,o){return o?a?a+" "+o:a+o:a}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}(Ib)),Ib.exports}var OI=EI();const je=MI(OI),AI="_container_1jre8_1",RI="_no-value_1jre8_6",DI="_input_1jre8_21",jI="_no-value-button-container_1jre8_24",eu={container:AI,noValue:RI,input:DI,noValueButtonContainer:jI},II=({column:e,filterValue:t,IconComponent:n,InputComponent:r,texts:i})=>{const[a,o]=v.useState(t??""),[s,l]=v.useState(!1),[c,u]=v.useState(!1);v.useEffect(()=>{o(t??"")},[t]),v.useEffect(()=>{if((a||null)===(t||null))return;const f=setTimeout(()=>{e.setFilterValue(a??null)},500);return()=>clearTimeout(f)},[a,e,t]);const d=v.useMemo(()=>a==="no_value_filter_value",[a]);return y.jsx("div",{className:eu.container,children:d?y.jsx("div",{className:eu.noValue,role:"button",onClick:()=>{o(""),u(!1),l(!1)},children:i.noValue}):y.jsxs(y.Fragment,{children:[y.jsx(r,{className:je("filter",eu.input,{filtered:!!t}),"data-testId":`filter-${e.id}`,id:`filter-${e.id}`,role:"filter-input",size:"sm",type:"text",value:a,onChange:f=>{o(f.target.value??"")},onKeyDown:f=>{f.key==="Escape"&&o("")},onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1)}),d?null:y.jsx("div",{className:je(eu.noValueButtonContainer),style:{opacity:s||c?1:0},onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:y.jsx("div",{role:"button",onClick:()=>{o(d?"":"no_value_filter_value"),l(!1)},children:y.jsx(n,{className:"no-value-icon",icon:"no-value",iconProps:{style:{fontSize:"13px",background:"transparent"}}})})})]})})};function ts(e,t=ts.characters){return e.replace(/[^A-Za-z0-9]/g,function(n){return t[n]||n})}ts.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 NI="_multiselect_1gflo_1",PI="_multiselect-menu_1gflo_35",LI="_dropdown-menu-item_1gflo_42",FI="_search-item_1gflo_45",BI="_search-input_1gflo_49",zI="_special-option_1gflo_52",ha={multiselect:NI,multiselectMenu:PI,dropdownMenuItem:LI,searchItem:FI,searchInput:BI,specialOption:zI},Pb=10,WI=({column:e,filterValue:t,texts:n,InputComponent:r,DropdownMenuComponent:i,DropdownMenuContentComponent:a,DropdownMenuItemComponent:o,CheckComponent:s,DropdownTriggerComponent:l})=>{var b,S,M;const[c,u]=v.useState(""),d=e.getFacetedUniqueValues().keys(),f=v.useMemo(()=>Array.from(d).map($=>$===!0||$===!1?$:($==null?void 0:$.toString())??"").sort(),[d]),h=v.useMemo(()=>f.some($=>$===""||$===null||$===void 0),[f]),p=v.useMemo(()=>(t==null?void 0:t.split(";"))??[],[t]),m=$=>{const k=$===""?[]:p.includes($)?p.filter(D=>D!==$):[...p,$];e.setFilterValue(!k||k.length<1?"":k.join(";"))},g=v.useMemo(()=>{const $=[{value:"",label:n.multiselect.all||"vše",specialOption:!0}];return h&&$.push({value:"no_value_filter_value",label:n.multiselect.noValue||"bez hodnoty",specialOption:!0}),f.forEach(k=>{$.push({value:(k==null?void 0:k.toString())||"",label:k===!0?n.booleanYes||"ano":k===!1?n.booleanNo||"ne":k,specialOption:!1})}),p.forEach(k=>{k&&k!=="no_value_filter_value"&&!f.some(D=>D.toString()===k.toString())&&$.push({value:k,label:k,specialOption:!1})}),Array.from(new Set($.map(k=>k.value))).map(k=>$.find(D=>D.value===k))},[f,p,h,n]),x=v.useRef(null),_=v.useRef(null),[w,C]=v.useState(!1);return v.useEffect(()=>{w&&_.current&&_.current.focus()},[w]),v.useEffect(()=>{g.length<Pb&&u("")},[g]),y.jsxs(i,{onToggleOpen:$=>C($),children:[y.jsx(l,{className:je("filter multiselect",ha.multiselect,{filtered:t}),"data-testId":`filter-${e.id}`,id:`filter-${e.id}`,ref:x,role:"filter-input",onKeyDown:$=>{$.key==="Escape"&&e.setFilterValue("")},children:p.length>1?n.multiselect.xValues?n.multiselect.xValues(p.length):`${p.length} hodnoty`:p.length===1?(b=g.find($=>$.value===t))==null?void 0:b.label:n.multiselect.all||"vše"}),y.jsxs(a,{className:je("multiselect-menu",ha.multiselectMenu),style:{position:"relative",left:(S=x.current)==null?void 0:S.getBoundingClientRect().left,top:(M=x.current)==null?void 0:M.getBoundingClientRect().bottom},children:[g.length>=Pb?y.jsx(o,{className:je("search-item",ha.dropdownMenuItem,ha.searchItem),children:y.jsx(r,{className:ha.searchInput,ref:_,size:"sm",type:"search",value:c,onChange:$=>u($.target.value??"")})}):null,g.filter($=>$.specialOption?!0:c?ts($.value).toLowerCase().includes(ts(c.toLowerCase())):!0).map($=>y.jsx(o,{className:je(ha.dropdownMenuItem,{"special-option":$.specialOption},{[ha.specialOption]:$.specialOption}),onClick:k=>{k.preventDefault(),k.stopPropagation(),m($.value)},children:y.jsx(s,{checked:$.value===""?p.length<1:p.includes($.value),label:$.label,onChange:()=>{}})},$.value))]})]})},UI=({column:e,IconComponent:t,InputComponent:n,DropdownMenuComponent:r,DropdownMenuContentComponent:i,DropdownMenuItemComponent:a,DropdownTriggerComponent:o,CheckComponent:s,texts:l})=>{const c=e.getFilterValue(),u=kI(e.columnDef);return["text","number","date","datetime"].includes(u)?y.jsx(II,{column:e,filterValue:c?c.toString():null,IconComponent:t,InputComponent:n,texts:l}):y.jsx(WI,{CheckComponent:s,column:e,DropdownMenuComponent:r,DropdownMenuContentComponent:i,DropdownMenuItemComponent:a,DropdownTriggerComponent:o,filterValue:c?c.toString():null,IconComponent:t,InputComponent:n,texts:l})};function HI(){return{accessor:(e,t)=>typeof e=="function"?{...t,accessorFn:e}:{...t,accessorKey:e},display:e=>e,group:e=>e}}function $3(e,t){return e?VI(e)?fe.createElement(e,t):e:null}function VI(e){return qI(e)||typeof e=="function"||YI(e)}function qI(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function YI(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}const GI="_table-scroll-container_wu79d_1",ZI="_full-screen_wu79d_8",XI="_table_wu79d_1",KI="_thead_wu79d_24",JI="_tbody_wu79d_25",QI="_th_wu79d_24",eN="_pinned_wu79d_38",tN="_sorted_wu79d_41",nN="_heading_wu79d_44",rN="_can-sort_wu79d_50",iN="_content_wu79d_53",aN="_resizer_wu79d_59",oN="_resizer-bar_wu79d_73",sN="_reorder-handle_wu79d_79",lN="_dragging_wu79d_84",cN="_row-selection-info_wu79d_88",uN="_tr_wu79d_92",dN="_td_wu79d_100",fN="_left_wu79d_117",hN="_center_wu79d_121",pN="_right_wu79d_125",mN="_first-right_wu79d_134",gN="_grouped_wu79d_142",vN="_expanded_wu79d_147",bN="_selected-cell_wu79d_151",yN="_sm_wu79d_155",xN="_lg_wu79d_160",wN="_clickable_wu79d_168",_N="_cell-selected-row_wu79d_172",CN="_cell-selection-disabled_wu79d_180",SN="_own-click_wu79d_203",TN="_expander-button_wu79d_211",$N="_empty-table-alert_wu79d_217",kN="_remove-filters-button-wrapper_wu79d_225",MN="_remove-filters-button_wu79d_225",EN="_bottom-bar_wu79d_255",ON="_left-items_wu79d_271",AN="_pagination_wu79d_277",RN="_page-info-text_wu79d_283",DN="_right-items_wu79d_289",jN="_sizing-menu_wu79d_310",IN="_sizing-menu-item_wu79d_315",We={tableScrollContainer:GI,fullScreen:ZI,table:XI,thead:KI,tbody:JI,th:QI,pinned:eN,sorted:tN,heading:nN,canSort:rN,content:iN,resizer:aN,resizerBar:oN,reorderHandle:sN,dragging:lN,rowSelectionInfo:cN,tr:uN,td:dN,left:fN,center:hN,right:pN,firstRight:mN,grouped:gN,expanded:vN,selectedCell:bN,sm:yN,lg:xN,clickable:wN,cellSelectedRow:_N,cellSelectionDisabled:CN,ownClick:SN,expanderButton:TN,emptyTableAlert:$N,removeFiltersButtonWrapper:kN,removeFiltersButton:MN,bottomBar:EN,leftItems:ON,pagination:AN,pageInfoText:RN,rightItems:DN,sizingMenu:jN,sizingMenuItem:IN};function NN(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.useMemo(()=>r=>{t.forEach(i=>i(r))},t)}const sf=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function ps(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function u0(e){return"nodeType"in e}function Xn(e){var t,n;return e?ps(e)?e:u0(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function d0(e){const{Document:t}=Xn(e);return e instanceof t}function _c(e){return ps(e)?!1:e instanceof Xn(e).HTMLElement}function k3(e){return e instanceof Xn(e).SVGElement}function ms(e){return e?ps(e)?e.document:u0(e)?d0(e)?e:_c(e)||k3(e)?e.ownerDocument:document:document:document}const Ur=sf?v.useLayoutEffect:v.useEffect;function f0(e){const t=v.useRef(e);return Ur(()=>{t.current=e}),v.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 PN(){const e=v.useRef(null),t=v.useCallback((r,i)=>{e.current=setInterval(r,i)},[]),n=v.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function Ll(e,t){t===void 0&&(t=[e]);const n=v.useRef(e);return Ur(()=>{n.current!==e&&(n.current=e)},t),n}function Cc(e,t){const n=v.useRef();return v.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function Ku(e){const t=f0(e),n=v.useRef(null),r=v.useCallback(i=>{i!==n.current&&(t==null||t(i,n.current)),n.current=i},[]);return[n,r]}function bm(e){const t=v.useRef();return v.useEffect(()=>{t.current=e},[e]),t.current}let tp={};function Sc(e,t){return v.useMemo(()=>{if(t)return t;const n=tp[e]==null?0:tp[e]+1;return tp[e]=n,e+"-"+n},[e,t])}function M3(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((a,o)=>{const s=Object.entries(o);for(const[l,c]of s){const u=a[l];u!=null&&(a[l]=u+e*c)}return a},{...t})}}const Io=M3(1),Ju=M3(-1);function LN(e){return"clientX"in e&&"clientY"in e}function h0(e){if(!e)return!1;const{KeyboardEvent:t}=Xn(e.target);return t&&e instanceof t}function FN(e){if(!e)return!1;const{TouchEvent:t}=Xn(e.target);return t&&e instanceof t}function ym(e){if(FN(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 LN(e)?{x:e.clientX,y:e.clientY}:null}const Fl=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[Fl.Translate.toString(e),Fl.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),Lb="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function BN(e){return e.matches(Lb)?e:e.querySelector(Lb)}const zN={display:"none"};function WN(e){let{id:t,value:n}=e;return v.createElement("div",{id:t,style:zN},n)}function UN(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 v.createElement("div",{id:t,style:i,role:"status","aria-live":r,"aria-atomic":!0},n)}function HN(){const[e,t]=v.useState("");return{announce:v.useCallback(n=>{n!=null&&t(n)},[]),announcement:e}}const E3=v.createContext(null);function VN(e){const t=v.useContext(E3);v.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function qN(){const[e]=v.useState(()=>new Set),t=v.useCallback(n=>(e.add(n),()=>e.delete(n)),[e]);return[v.useCallback(n=>{let{type:r,event:i}=n;e.forEach(a=>{var o;return(o=a[r])==null?void 0:o.call(a,i)})},[e]),t]}const YN={draggable:`
255
+ To pick up a draggable item, press the space bar.
256
+ While dragging, use the arrow keys to move the item.
257
+ Press space again to drop the item in its new position, or press escape to cancel.
258
+ `},GN={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 ZN(e){let{announcements:t=GN,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=YN}=e;const{announce:a,announcement:o}=HN(),s=Sc("DndLiveRegion"),[l,c]=v.useState(!1);if(v.useEffect(()=>{c(!0)},[]),VN(v.useMemo(()=>({onDragStart(d){let{active:f}=d;a(t.onDragStart({active:f}))},onDragMove(d){let{active:f,over:h}=d;t.onDragMove&&a(t.onDragMove({active:f,over:h}))},onDragOver(d){let{active:f,over:h}=d;a(t.onDragOver({active:f,over:h}))},onDragEnd(d){let{active:f,over:h}=d;a(t.onDragEnd({active:f,over:h}))},onDragCancel(d){let{active:f,over:h}=d;a(t.onDragCancel({active:f,over:h}))}}),[a,t])),!l)return null;const u=v.createElement(v.Fragment,null,v.createElement(WN,{id:r,value:i.draggable}),v.createElement(UN,{id:s,announcement:o}));return n?Un.createPortal(u,n):u}var hn;(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"})(hn||(hn={}));function Qu(){}function np(e,t){return v.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function XN(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const Tr=Object.freeze({x:0,y:0});function KN(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function JN(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function QN(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function eP(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function Fb(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 tP=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=Fb(t,t.left,t.top),a=[];for(const o of r){const{id:s}=o,l=n.get(s);if(l){const c=KN(Fb(l),i);a.push({id:s,data:{droppableContainer:o,value:c}})}}return a.sort(JN)};function nP(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),a=Math.min(t.top+t.height,e.top+e.height),o=i-r,s=a-n;if(r<i&&n<a){const l=t.width*t.height,c=e.width*e.height,u=o*s,d=u/(l+c-u);return Number(d.toFixed(4))}return 0}const rP=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=[];for(const a of r){const{id:o}=a,s=n.get(o);if(s){const l=nP(s,t);l>0&&i.push({id:o,data:{droppableContainer:a,value:l}})}}return i.sort(QN)};function iP(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function O3(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Tr}function aP(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((a,o)=>({...a,top:a.top+e*o.y,bottom:a.bottom+e*o.y,left:a.left+e*o.x,right:a.right+e*o.x}),{...t})}}const oP=aP(1);function sP(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 lP(e,t,n){const r=sP(t);if(!r)return e;const{scaleX:i,scaleY:a,x:o,y:s}=r,l=e.left-o-(1-i)*parseFloat(n),c=e.top-s-(1-a)*parseFloat(n.slice(n.indexOf(" ")+1)),u=i?e.width/i:e.width,d=a?e.height/a:e.height;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l}}const cP={ignoreTransform:!1};function gs(e,t){t===void 0&&(t=cP);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:c,transformOrigin:u}=Xn(e).getComputedStyle(e);c&&(n=lP(n,c,u))}const{top:r,left:i,width:a,height:o,bottom:s,right:l}=n;return{top:r,left:i,width:a,height:o,bottom:s,right:l}}function Bb(e){return gs(e,{ignoreTransform:!0})}function uP(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function dP(e,t){return t===void 0&&(t=Xn(e).getComputedStyle(e)),t.position==="fixed"}function fP(e,t){t===void 0&&(t=Xn(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 p0(e,t){const n=[];function r(i){if(t!=null&&n.length>=t||!i)return n;if(d0(i)&&i.scrollingElement!=null&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!_c(i)||k3(i)||n.includes(i))return n;const a=Xn(e).getComputedStyle(i);return i!==e&&fP(i,a)&&n.push(i),dP(i,a)?n:r(i.parentNode)}return e?r(e):n}function A3(e){const[t]=p0(e,1);return t??null}function rp(e){return!sf||!e?null:ps(e)?e:u0(e)?d0(e)||e===ms(e).scrollingElement?window:_c(e)?e:null:null}function R3(e){return ps(e)?e.scrollX:e.scrollLeft}function D3(e){return ps(e)?e.scrollY:e.scrollTop}function xm(e){return{x:R3(e),y:D3(e)}}var yn;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(yn||(yn={}));function j3(e){return!sf||!e?!1:e===document.scrollingElement}function I3(e){const t={x:0,y:0},n=j3(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,a=e.scrollLeft<=t.x,o=e.scrollTop>=r.y,s=e.scrollLeft>=r.x;return{isTop:i,isLeft:a,isBottom:o,isRight:s,maxScroll:r,minScroll:t}}const hP={x:.2,y:.2};function pP(e,t,n,r,i){let{top:a,left:o,right:s,bottom:l}=n;r===void 0&&(r=10),i===void 0&&(i=hP);const{isTop:c,isBottom:u,isLeft:d,isRight:f}=I3(e),h={x:0,y:0},p={x:0,y:0},m={height:t.height*i.y,width:t.width*i.x};return!c&&a<=t.top+m.height?(h.y=yn.Backward,p.y=r*Math.abs((t.top+m.height-a)/m.height)):!u&&l>=t.bottom-m.height&&(h.y=yn.Forward,p.y=r*Math.abs((t.bottom-m.height-l)/m.height)),!f&&s>=t.right-m.width?(h.x=yn.Forward,p.x=r*Math.abs((t.right-m.width-s)/m.width)):!d&&o<=t.left+m.width&&(h.x=yn.Backward,p.x=r*Math.abs((t.left+m.width-o)/m.width)),{direction:h,speed:p}}function mP(e){if(e===document.scrollingElement){const{innerWidth:a,innerHeight:o}=window;return{top:0,left:0,right:a,bottom:o,width:a,height:o}}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 N3(e){return e.reduce((t,n)=>Io(t,xm(n)),Tr)}function gP(e){return e.reduce((t,n)=>t+R3(n),0)}function vP(e){return e.reduce((t,n)=>t+D3(n),0)}function bP(e,t){if(t===void 0&&(t=gs),!e)return;const{top:n,left:r,bottom:i,right:a}=t(e);A3(e)&&(i<=0||a<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const yP=[["x",["left","right"],gP],["y",["top","bottom"],vP]];class m0{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=p0(n),i=N3(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[a,o,s]of yP)for(const l of o)Object.defineProperty(this,l,{get:()=>{const c=s(r),u=i[a]-c;return this.rect[l]+u},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}let ul=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 xP(e){const{EventTarget:t}=Xn(e);return e instanceof t?e:ms(e)}function ip(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var ar;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(ar||(ar={}));function zb(e){e.preventDefault()}function wP(e){e.stopPropagation()}var Ot;(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"})(Ot||(Ot={}));const P3={start:[Ot.Space,Ot.Enter],cancel:[Ot.Esc],end:[Ot.Space,Ot.Enter,Ot.Tab]},_P=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Ot.Right:return{...n,x:n.x+25};case Ot.Left:return{...n,x:n.x-25};case Ot.Down:return{...n,y:n.y+25};case Ot.Up:return{...n,y:n.y-25}}};let g0=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 ul(ms(n)),this.windowListeners=new ul(Xn(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(ar.Resize,this.handleCancel),this.windowListeners.add(ar.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(ar.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&bP(r),n(Tr)}handleKeyDown(t){if(h0(t)){const{active:n,context:r,options:i}=this.props,{keyboardCodes:a=P3,coordinateGetter:o=_P,scrollBehavior:s="smooth"}=i,{code:l}=t;if(a.end.includes(l)){this.handleEnd(t);return}if(a.cancel.includes(l)){this.handleCancel(t);return}const{collisionRect:c}=r.current,u=c?{x:c.left,y:c.top}:Tr;this.referenceCoordinates||(this.referenceCoordinates=u);const d=o(t,{active:n,context:r.current,currentCoordinates:u});if(d){const f=Ju(d,u),h={x:0,y:0},{scrollableAncestors:p}=r.current;for(const m of p){const g=t.code,{isTop:x,isRight:_,isLeft:w,isBottom:C,maxScroll:b,minScroll:S}=I3(m),M=mP(m),$={x:Math.min(g===Ot.Right?M.right-M.width/2:M.right,Math.max(g===Ot.Right?M.left:M.left+M.width/2,d.x)),y:Math.min(g===Ot.Down?M.bottom-M.height/2:M.bottom,Math.max(g===Ot.Down?M.top:M.top+M.height/2,d.y))},k=g===Ot.Right&&!_||g===Ot.Left&&!w,D=g===Ot.Down&&!C||g===Ot.Up&&!x;if(k&&$.x!==d.x){const T=m.scrollLeft+f.x,E=g===Ot.Right&&T<=b.x||g===Ot.Left&&T>=S.x;if(E&&!f.y){m.scrollTo({left:T,behavior:s});return}E?h.x=m.scrollLeft-T:h.x=g===Ot.Right?m.scrollLeft-b.x:m.scrollLeft-S.x,h.x&&m.scrollBy({left:-h.x,behavior:s});break}else if(D&&$.y!==d.y){const T=m.scrollTop+f.y,E=g===Ot.Down&&T<=b.y||g===Ot.Up&&T>=S.y;if(E&&!f.x){m.scrollTo({top:T,behavior:s});return}E?h.y=m.scrollTop-T:h.y=g===Ot.Down?m.scrollTop-b.y:m.scrollTop-S.y,h.y&&m.scrollBy({top:-h.y,behavior:s});break}}this.handleMove(t,Io(Ju(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()}};g0.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=P3,onActivation:i}=t,{active:a}=n;const{code:o}=e.nativeEvent;if(r.start.includes(o)){const s=a.activatorNode.current;return s&&e.target!==s?!1:(e.preventDefault(),i==null||i({event:e.nativeEvent}),!0)}return!1}}];function Wb(e){return!!(e&&"distance"in e)}function Ub(e){return!!(e&&"delay"in e)}let v0=class{constructor(t,n,r){var i;r===void 0&&(r=xP(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:a}=t,{target:o}=a;this.props=t,this.events=n,this.document=ms(o),this.documentListeners=new ul(this.document),this.listeners=new ul(r),this.windowListeners=new ul(Xn(o)),this.initialCoordinates=(i=ym(a))!=null?i:Tr,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(ar.Resize,this.handleCancel),this.windowListeners.add(ar.DragStart,zb),this.windowListeners.add(ar.VisibilityChange,this.handleCancel),this.windowListeners.add(ar.ContextMenu,zb),this.documentListeners.add(ar.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Ub(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(Wb(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){const{active:r,onPending:i}=this.props;i(r,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(ar.Click,wP,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(ar.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:i,props:a}=this,{onMove:o,options:{activationConstraint:s}}=a;if(!i)return;const l=(n=ym(t))!=null?n:Tr,c=Ju(i,l);if(!r&&s){if(Wb(s)){if(s.tolerance!=null&&ip(c,s.tolerance))return this.handleCancel();if(ip(c,s.distance))return this.handleStart()}if(Ub(s)&&ip(c,s.tolerance))return this.handleCancel();this.handlePending(s,c);return}t.cancelable&&t.preventDefault(),o(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===Ot.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}};const CP={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};let L3=class extends v0{constructor(t){const{event:n}=t,r=ms(n.target);super(t,CP,r)}};L3.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 SP={move:{name:"mousemove"},end:{name:"mouseup"}};var wm;(function(e){e[e.RightClick=2]="RightClick"})(wm||(wm={}));let F3=class extends v0{constructor(t){super(t,SP,ms(t.event.target))}};F3.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===wm.RightClick?!1:(r==null||r({event:n}),!0)}}];const ap={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};let B3=class extends v0{constructor(t){super(t,ap)}static setup(){return window.addEventListener(ap.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(ap.move.name,t)};function t(){}}};B3.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 dl;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(dl||(dl={}));var ed;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(ed||(ed={}));function TP(e){let{acceleration:t,activator:n=dl.Pointer,canScroll:r,draggingRect:i,enabled:a,interval:o=5,order:s=ed.TreeOrder,pointerCoordinates:l,scrollableAncestors:c,scrollableAncestorRects:u,delta:d,threshold:f}=e;const h=kP({delta:d,disabled:!a}),[p,m]=PN(),g=v.useRef({x:0,y:0}),x=v.useRef({x:0,y:0}),_=v.useMemo(()=>{switch(n){case dl.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case dl.DraggableRect:return i}},[n,i,l]),w=v.useRef(null),C=v.useCallback(()=>{const S=w.current;if(!S)return;const M=g.current.x*x.current.x,$=g.current.y*x.current.y;S.scrollBy(M,$)},[]),b=v.useMemo(()=>s===ed.TreeOrder?[...c].reverse():c,[s,c]);v.useEffect(()=>{if(!a||!c.length||!_){m();return}for(const S of b){if((r==null?void 0:r(S))===!1)continue;const M=c.indexOf(S),$=u[M];if(!$)continue;const{direction:k,speed:D}=pP(S,$,_,t,f);for(const T of["x","y"])h[T][k[T]]||(D[T]=0,k[T]=0);if(D.x>0||D.y>0){m(),w.current=S,p(C,o),g.current=D,x.current=k;return}}g.current={x:0,y:0},x.current={x:0,y:0},m()},[t,C,r,m,a,o,JSON.stringify(_),JSON.stringify(h),p,c,b,u,JSON.stringify(f)])}const $P={x:{[yn.Backward]:!1,[yn.Forward]:!1},y:{[yn.Backward]:!1,[yn.Forward]:!1}};function kP(e){let{delta:t,disabled:n}=e;const r=bm(t);return Cc(i=>{if(n||!r||!i)return $P;const a={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[yn.Backward]:i.x[yn.Backward]||a.x===-1,[yn.Forward]:i.x[yn.Forward]||a.x===1},y:{[yn.Backward]:i.y[yn.Backward]||a.y===-1,[yn.Forward]:i.y[yn.Forward]||a.y===1}}},[n,t,r])}function MP(e,t){const n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return Cc(i=>{var a;return t==null?null:(a=r??i)!=null?a:null},[r,t])}function EP(e,t){return v.useMemo(()=>e.reduce((n,r)=>{const{sensor:i}=r,a=i.activators.map(o=>({eventName:o.eventName,handler:t(o.handler,r)}));return[...n,...a]},[]),[e,t])}var Bl;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Bl||(Bl={}));var _m;(function(e){e.Optimized="optimized"})(_m||(_m={}));const Hb=new Map;function OP(e,t){let{dragging:n,dependencies:r,config:i}=t;const[a,o]=v.useState(null),{frequency:s,measure:l,strategy:c}=i,u=v.useRef(e),d=g(),f=Ll(d),h=v.useCallback(function(x){x===void 0&&(x=[]),!f.current&&o(_=>_===null?x:_.concat(x.filter(w=>!_.includes(w))))},[f]),p=v.useRef(null),m=Cc(x=>{if(d&&!n)return Hb;if(!x||x===Hb||u.current!==e||a!=null){const _=new Map;for(let w of e){if(!w)continue;if(a&&a.length>0&&!a.includes(w.id)&&w.rect.current){_.set(w.id,w.rect.current);continue}const C=w.node.current,b=C?new m0(l(C),C):null;w.rect.current=b,b&&_.set(w.id,b)}return _}return x},[e,a,n,d,l]);return v.useEffect(()=>{u.current=e},[e]),v.useEffect(()=>{d||h()},[n,d]),v.useEffect(()=>{a&&a.length>0&&o(null)},[JSON.stringify(a)]),v.useEffect(()=>{d||typeof s!="number"||p.current!==null||(p.current=setTimeout(()=>{h(),p.current=null},s))},[s,d,h,...r]),{droppableRects:m,measureDroppableContainers:h,measuringScheduled:a!=null};function g(){switch(c){case Bl.Always:return!1;case Bl.BeforeDragging:return n;default:return!n}}}function z3(e,t){return Cc(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function AP(e,t){return z3(e,t)}function RP(e){let{callback:t,disabled:n}=e;const r=f0(t),i=v.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:a}=window;return new a(r)},[r,n]);return v.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function lf(e){let{callback:t,disabled:n}=e;const r=f0(t),i=v.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:a}=window;return new a(r)},[n]);return v.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function DP(e){return new m0(gs(e),e)}function Vb(e,t,n){t===void 0&&(t=DP);const[r,i]=v.useState(null);function a(){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 o=RP({callback(l){if(e)for(const c of l){const{type:u,target:d}=c;if(u==="childList"&&d instanceof HTMLElement&&d.contains(e)){a();break}}}}),s=lf({callback:a});return Ur(()=>{a(),e?(s==null||s.observe(e),o==null||o.observe(document.body,{childList:!0,subtree:!0})):(s==null||s.disconnect(),o==null||o.disconnect())},[e]),r}function jP(e){const t=z3(e);return O3(e,t)}const qb=[];function IP(e){const t=v.useRef(e),n=Cc(r=>e?r&&r!==qb&&e&&t.current&&e.parentNode===t.current.parentNode?r:p0(e):qb,[e]);return v.useEffect(()=>{t.current=e},[e]),n}function NP(e){const[t,n]=v.useState(null),r=v.useRef(e),i=v.useCallback(a=>{const o=rp(a.target);o&&n(s=>s?(s.set(o,xm(o)),new Map(s)):null)},[]);return v.useEffect(()=>{const a=r.current;if(e!==a){o(a);const s=e.map(l=>{const c=rp(l);return c?(c.addEventListener("scroll",i,{passive:!0}),[c,xm(c)]):null}).filter(l=>l!=null);n(s.length?new Map(s):null),r.current=e}return()=>{o(e),o(a)};function o(s){s.forEach(l=>{const c=rp(l);c==null||c.removeEventListener("scroll",i)})}},[i,e]),v.useMemo(()=>e.length?t?Array.from(t.values()).reduce((a,o)=>Io(a,o),Tr):N3(e):Tr,[e,t])}function Yb(e,t){t===void 0&&(t=[]);const n=v.useRef(null);return v.useEffect(()=>{n.current=null},t),v.useEffect(()=>{const r=e!==Tr;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?Ju(e,n.current):Tr}function PP(e){v.useEffect(()=>{if(!sf)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 LP(e,t){return v.useMemo(()=>e.reduce((n,r)=>{let{eventName:i,handler:a}=r;return n[i]=o=>{a(o,t)},n},{}),[e,t])}function W3(e){return v.useMemo(()=>e?uP(e):null,[e])}const Gb=[];function FP(e,t){t===void 0&&(t=gs);const[n]=e,r=W3(n?Xn(n):null),[i,a]=v.useState(Gb);function o(){a(()=>e.length?e.map(l=>j3(l)?r:new m0(t(l),l)):Gb)}const s=lf({callback:o});return Ur(()=>{s==null||s.disconnect(),o(),e.forEach(l=>s==null?void 0:s.observe(l))},[e]),i}function BP(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return _c(t)?t:e}function zP(e){let{measure:t}=e;const[n,r]=v.useState(null),i=v.useCallback(c=>{for(const{target:u}of c)if(_c(u)){r(d=>{const f=t(u);return d?{...d,width:f.width,height:f.height}:f});break}},[t]),a=lf({callback:i}),o=v.useCallback(c=>{const u=BP(c);a==null||a.disconnect(),u&&(a==null||a.observe(u)),r(u?t(u):null)},[t,a]),[s,l]=Ku(o);return v.useMemo(()=>({nodeRef:s,rect:n,setRef:l}),[n,s,l])}const WP=[{sensor:L3,options:{}},{sensor:g0,options:{}}],UP={current:{}},Cu={draggable:{measure:Bb},droppable:{measure:Bb,strategy:Bl.WhileDragging,frequency:_m.Optimized},dragOverlay:{measure:gs}};let fl=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 HP={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new fl,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Qu},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Cu,measureDroppableContainers:Qu,windowRect:null,measuringScheduled:!1},VP={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Qu,draggableNodes:new Map,over:null,measureDroppableContainers:Qu},cf=v.createContext(VP),U3=v.createContext(HP);function qP(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new fl}}}function YP(e,t){switch(t.type){case hn.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case hn.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 hn.DragEnd:case hn.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case hn.RegisterDroppable:{const{element:n}=t,{id:r}=n,i=new fl(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case hn.SetDroppableDisabled:{const{id:n,key:r,disabled:i}=t,a=e.droppable.containers.get(n);if(!a||r!==a.key)return e;const o=new fl(e.droppable.containers);return o.set(n,{...a,disabled:i}),{...e,droppable:{...e.droppable,containers:o}}}case hn.UnregisterDroppable:{const{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const a=new fl(e.droppable.containers);return a.delete(n),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function GP(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:i}=v.useContext(cf),a=bm(r),o=bm(n==null?void 0:n.id);return v.useEffect(()=>{if(!t&&!r&&a&&o!=null){if(!h0(a)||document.activeElement===a.target)return;const s=i.get(o);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=BN(u);if(d){d.focus();break}}})}},[r,t,i,o,a]),null}function ZP(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((i,a)=>a({transform:i,...r}),n):n}function XP(e){return v.useMemo(()=>({draggable:{...Cu.draggable,...e==null?void 0:e.draggable},droppable:{...Cu.droppable,...e==null?void 0:e.droppable},dragOverlay:{...Cu.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 KP(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e;const a=v.useRef(!1),{x:o,y:s}=typeof i=="boolean"?{x:i,y:i}:i;Ur(()=>{if(!o&&!s||!t){a.current=!1;return}if(a.current||!r)return;const l=t==null?void 0:t.node.current;if(!l||l.isConnected===!1)return;const c=n(l),u=O3(c,r);if(o||(u.x=0),s||(u.y=0),a.current=!0,Math.abs(u.x)>0||Math.abs(u.y)>0){const d=A3(l);d&&d.scrollBy({top:u.y,left:u.x})}},[t,o,s,r,n])}const H3=v.createContext({...Tr,scaleX:1,scaleY:1});var Ii;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Ii||(Ii={}));const JP=v.memo(function(e){var t,n,r,i;let{id:a,accessibility:o,autoScroll:s=!0,children:l,sensors:c=WP,collisionDetection:u=rP,measuring:d,modifiers:f,...h}=e;const p=v.useReducer(YP,void 0,qP),[m,g]=p,[x,_]=qN(),[w,C]=v.useState(Ii.Uninitialized),b=w===Ii.Initialized,{draggable:{active:S,nodes:M,translate:$},droppable:{containers:k}}=m,D=S!=null?M.get(S):null,T=v.useRef({initial:null,translated:null}),E=v.useMemo(()=>{var Ke;return S!=null?{id:S,data:(Ke=D==null?void 0:D.data)!=null?Ke:UP,rect:T}:null},[S,D]),R=v.useRef(null),[j,O]=v.useState(null),[A,I]=v.useState(null),F=Ll(h,Object.values(h)),z=Sc("DndDescribedBy",a),L=v.useMemo(()=>k.getEnabled(),[k]),H=XP(d),{droppableRects:Y,measureDroppableContainers:q,measuringScheduled:Z}=OP(L,{dragging:b,dependencies:[$.x,$.y],config:H.droppable}),X=MP(M,S),J=v.useMemo(()=>A?ym(A):null,[A]),ee=At(),W=AP(X,H.draggable.measure);KP({activeNode:S!=null?M.get(S):null,config:ee.layoutShiftCompensation,initialRect:W,measure:H.draggable.measure});const P=Vb(X,H.draggable.measure,W),B=Vb(X?X.parentElement:null),V=v.useRef({activatorEvent:null,active:null,activeNode:X,collisionRect:null,collisions:null,droppableRects:Y,draggableNodes:M,draggingNode:null,draggingNodeRect:null,droppableContainers:k,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),N=k.getNodeFor((t=V.current.over)==null?void 0:t.id),te=zP({measure:H.dragOverlay.measure}),K=(n=te.nodeRef.current)!=null?n:X,G=b?(r=te.rect)!=null?r:P:null,oe=!!(te.nodeRef.current&&te.rect),ne=jP(oe?null:P),re=W3(K?Xn(K):null),ae=IP(b?N??X:null),le=FP(ae),ye=ZP(f,{transform:{x:$.x-ne.x,y:$.y-ne.y,scaleX:1,scaleY:1},activatorEvent:A,active:E,activeNodeRect:P,containerNodeRect:B,draggingNodeRect:G,over:V.current.over,overlayNodeRect:te.rect,scrollableAncestors:ae,scrollableAncestorRects:le,windowRect:re}),ge=J?Io(J,$):null,be=NP(ae),Me=Yb(be),ce=Yb(be,[P]),de=Io(ye,Me),Ce=G?oP(G,ye):null,Ge=E&&Ce?u({active:E,collisionRect:Ce,droppableRects:Y,droppableContainers:L,pointerCoordinates:ge}):null,we=eP(Ge,"id"),[ve,Pe]=v.useState(null),Ze=oe?ye:Io(ye,ce),_t=iP(Ze,(i=ve==null?void 0:ve.rect)!=null?i:null,P),Te=v.useRef(null),Re=v.useCallback((Ke,Le)=>{let{sensor:Ve,options:et}=Le;if(R.current==null)return;const Fe=M.get(R.current);if(!Fe)return;const tt=Ke.nativeEvent,vt=new Ve({active:R.current,activeNode:Fe,event:tt,options:et,context:V,onAbort(Ne){if(!M.get(Ne))return;const{onDragAbort:Ee}=F.current,Ye={id:Ne};Ee==null||Ee(Ye),x({type:"onDragAbort",event:Ye})},onPending(Ne,Ee,Ye,xt){if(!M.get(Ne))return;const{onDragPending:nt}=F.current,bt={id:Ne,constraint:Ee,initialCoordinates:Ye,offset:xt};nt==null||nt(bt),x({type:"onDragPending",event:bt})},onStart(Ne){const Ee=R.current;if(Ee==null)return;const Ye=M.get(Ee);if(!Ye)return;const{onDragStart:xt}=F.current,nt={activatorEvent:tt,active:{id:Ee,data:Ye.data,rect:T}};Un.unstable_batchedUpdates(()=>{xt==null||xt(nt),C(Ii.Initializing),g({type:hn.DragStart,initialCoordinates:Ne,active:Ee}),x({type:"onDragStart",event:nt}),O(Te.current),I(tt)})},onMove(Ne){g({type:hn.DragMove,coordinates:Ne})},onEnd:at(hn.DragEnd),onCancel:at(hn.DragCancel)});Te.current=vt;function at(Ne){return async function(){const{active:Ee,collisions:Ye,over:xt,scrollAdjustedTranslate:nt}=V.current;let bt=null;if(Ee&&nt){const{cancelDrop:Jt}=F.current;bt={activatorEvent:tt,active:Ee,collisions:Ye,delta:nt,over:xt},Ne===hn.DragEnd&&typeof Jt=="function"&&await Promise.resolve(Jt(bt))&&(Ne=hn.DragCancel)}R.current=null,Un.unstable_batchedUpdates(()=>{g({type:Ne}),C(Ii.Uninitialized),Pe(null),O(null),I(null),Te.current=null;const Jt=Ne===hn.DragEnd?"onDragEnd":"onDragCancel";if(bt){const Ft=F.current[Jt];Ft==null||Ft(bt),x({type:Jt,event:bt})}})}}},[M]),it=v.useCallback((Ke,Le)=>(Ve,et)=>{const Fe=Ve.nativeEvent,tt=M.get(et);if(R.current!==null||!tt||Fe.dndKit||Fe.defaultPrevented)return;const vt={active:tt};Ke(Ve,Le.options,vt)===!0&&(Fe.dndKit={capturedBy:Le.sensor},R.current=et,Re(Ve,Le))},[M,Re]),Ue=EP(c,it);PP(c),Ur(()=>{P&&w===Ii.Initializing&&C(Ii.Initialized)},[P,w]),v.useEffect(()=>{const{onDragMove:Ke}=F.current,{active:Le,activatorEvent:Ve,collisions:et,over:Fe}=V.current;if(!Le||!Ve)return;const tt={active:Le,activatorEvent:Ve,collisions:et,delta:{x:de.x,y:de.y},over:Fe};Un.unstable_batchedUpdates(()=>{Ke==null||Ke(tt),x({type:"onDragMove",event:tt})})},[de.x,de.y]),v.useEffect(()=>{const{active:Ke,activatorEvent:Le,collisions:Ve,droppableContainers:et,scrollAdjustedTranslate:Fe}=V.current;if(!Ke||R.current==null||!Le||!Fe)return;const{onDragOver:tt}=F.current,vt=et.get(we),at=vt&&vt.rect.current?{id:vt.id,rect:vt.rect.current,data:vt.data,disabled:vt.disabled}:null,Ne={active:Ke,activatorEvent:Le,collisions:Ve,delta:{x:Fe.x,y:Fe.y},over:at};Un.unstable_batchedUpdates(()=>{Pe(at),tt==null||tt(Ne),x({type:"onDragOver",event:Ne})})},[we]),Ur(()=>{V.current={activatorEvent:A,active:E,activeNode:X,collisionRect:Ce,collisions:Ge,droppableRects:Y,draggableNodes:M,draggingNode:K,draggingNodeRect:G,droppableContainers:k,over:ve,scrollableAncestors:ae,scrollAdjustedTranslate:de},T.current={initial:G,translated:Ce}},[E,X,Ge,Ce,M,K,G,Y,k,ve,ae,de]),TP({...ee,delta:$,draggingRect:Ce,pointerCoordinates:ge,scrollableAncestors:ae,scrollableAncestorRects:le});const mt=v.useMemo(()=>({active:E,activeNode:X,activeNodeRect:P,activatorEvent:A,collisions:Ge,containerNodeRect:B,dragOverlay:te,draggableNodes:M,droppableContainers:k,droppableRects:Y,over:ve,measureDroppableContainers:q,scrollableAncestors:ae,scrollableAncestorRects:le,measuringConfiguration:H,measuringScheduled:Z,windowRect:re}),[E,X,P,A,Ge,B,te,M,k,Y,ve,q,ae,le,H,Z,re]),ct=v.useMemo(()=>({activatorEvent:A,activators:Ue,active:E,activeNodeRect:P,ariaDescribedById:{draggable:z},dispatch:g,draggableNodes:M,over:ve,measureDroppableContainers:q}),[A,Ue,E,P,g,z,M,ve,q]);return v.createElement(E3.Provider,{value:_},v.createElement(cf.Provider,{value:ct},v.createElement(U3.Provider,{value:mt},v.createElement(H3.Provider,{value:_t},l)),v.createElement(GP,{disabled:(o==null?void 0:o.restoreFocus)===!1})),v.createElement(ZN,{...o,hiddenTextDescribedById:z}));function At(){const Ke=(j==null?void 0:j.autoScrollEnabled)===!1,Le=typeof s=="object"?s.enabled===!1:s===!1,Ve=b&&!Ke&&!Le;return typeof s=="object"?{...s,enabled:Ve}:{enabled:Ve}}}),QP=v.createContext(null),Zb="button",eL="Draggable";function tL(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e;const a=Sc(eL),{activators:o,activatorEvent:s,active:l,activeNodeRect:c,ariaDescribedById:u,draggableNodes:d,over:f}=v.useContext(cf),{role:h=Zb,roleDescription:p="draggable",tabIndex:m=0}=i??{},g=(l==null?void 0:l.id)===t,x=v.useContext(g?H3:QP),[_,w]=Ku(),[C,b]=Ku(),S=LP(o,t),M=Ll(n);Ur(()=>(d.set(t,{id:t,key:a,node:_,activatorNode:C,data:M}),()=>{const k=d.get(t);k&&k.key===a&&d.delete(t)}),[d,t]);const $=v.useMemo(()=>({role:h,tabIndex:m,"aria-disabled":r,"aria-pressed":g&&h===Zb?!0:void 0,"aria-roledescription":p,"aria-describedby":u.draggable}),[r,h,m,g,p,u.draggable]);return{active:l,activatorEvent:s,activeNodeRect:c,attributes:$,isDragging:g,listeners:r?void 0:S,node:_,over:f,setNodeRef:w,setActivatorNodeRef:b,transform:x}}function nL(){return v.useContext(U3)}const rL="Droppable",iL={timeout:25};function aL(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e;const a=Sc(rL),{active:o,dispatch:s,over:l,measureDroppableContainers:c}=v.useContext(cf),u=v.useRef({disabled:n}),d=v.useRef(!1),f=v.useRef(null),h=v.useRef(null),{disabled:p,updateMeasurementsFor:m,timeout:g}={...iL,...i},x=Ll(m??r),_=v.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},g)},[g]),w=lf({callback:_,disabled:p||!o}),C=v.useCallback(($,k)=>{w&&(k&&(w.unobserve(k),d.current=!1),$&&w.observe($))},[w]),[b,S]=Ku(C),M=Ll(t);return v.useEffect(()=>{!w||!b.current||(w.disconnect(),d.current=!1,w.observe(b.current))},[b,w]),v.useEffect(()=>(s({type:hn.RegisterDroppable,element:{id:r,key:a,disabled:n,node:b,rect:f,data:M}}),()=>s({type:hn.UnregisterDroppable,key:a,id:r})),[r]),v.useEffect(()=>{n!==u.current.disabled&&(s({type:hn.SetDroppableDisabled,id:r,key:a,disabled:n}),u.current.disabled=n)},[r,a,n,s]),{active:o,rect:f,isOver:(l==null?void 0:l.id)===r,node:b,over:l,setNodeRef:S}}function b0(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function oL(e,t){return e.reduce((n,r,i)=>{const a=t.get(r);return a&&(n[i]=a),n},Array(e.length))}function tu(e){return e!==null&&e>=0}function sL(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 lL(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const nu={scaleX:1,scaleY:1},cL=e=>{var t;let{rects:n,activeNodeRect:r,activeIndex:i,overIndex:a,index:o}=e;const s=(t=n[i])!=null?t:r;if(!s)return null;const l=uL(n,o,i);if(o===i){const c=n[a];return c?{x:i<a?c.left+c.width-(s.left+s.width):c.left-s.left,y:0,...nu}:null}return o>i&&o<=a?{x:-s.width-l,y:0,...nu}:o<i&&o>=a?{x:s.width+l,y:0,...nu}:{x:0,y:0,...nu}};function uL(e,t,n){const r=e[t],i=e[t-1],a=e[t+1];return!r||!i&&!a?0:n<t?i?r.left-(i.left+i.width):a.left-(r.left+r.width):a?a.left-(r.left+r.width):r.left-(i.left+i.width)}const V3=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e;const a=b0(t,r,n),o=t[i],s=a[i];return!s||!o?null:{x:s.left-o.left,y:s.top-o.top,scaleX:s.width/o.width,scaleY:s.height/o.height}},q3="Sortable",Y3=v.createContext({activeIndex:-1,containerId:q3,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:V3,disabled:{draggable:!1,droppable:!1}});function dL(e){let{children:t,id:n,items:r,strategy:i=V3,disabled:a=!1}=e;const{active:o,dragOverlay:s,droppableRects:l,over:c,measureDroppableContainers:u}=nL(),d=Sc(q3,n),f=s.rect!==null,h=v.useMemo(()=>r.map(S=>typeof S=="object"&&"id"in S?S.id:S),[r]),p=o!=null,m=o?h.indexOf(o.id):-1,g=c?h.indexOf(c.id):-1,x=v.useRef(h),_=!sL(h,x.current),w=g!==-1&&m===-1||_,C=lL(a);Ur(()=>{_&&p&&u(h)},[_,h,p,u]),v.useEffect(()=>{x.current=h},[h]);const b=v.useMemo(()=>({activeIndex:m,containerId:d,disabled:C,disableTransforms:w,items:h,overIndex:g,useDragOverlay:f,sortedRects:oL(h,l),strategy:i}),[m,d,C.draggable,C.droppable,w,h,g,l,f,i]);return v.createElement(Y3.Provider,{value:b},t)}const fL=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return b0(n,r,i).indexOf(t)},hL=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:i,items:a,newIndex:o,previousItems:s,previousContainerId:l,transition:c}=e;return!c||!r||s!==a&&i===o?!1:n?!0:o!==i&&t===l},pL={duration:200,easing:"ease"},G3="transform",mL=Fl.Transition.toString({property:G3,duration:0,easing:"linear"}),gL={roleDescription:"sortable"};function vL(e){let{disabled:t,index:n,node:r,rect:i}=e;const[a,o]=v.useState(null),s=v.useRef(n);return Ur(()=>{if(!t&&n!==s.current&&r.current){const l=i.current;if(l){const c=gs(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)&&o(u)}}n!==s.current&&(s.current=n)},[t,n,r,i]),v.useEffect(()=>{a&&o(null)},[a]),a}function bL(e){let{animateLayoutChanges:t=hL,attributes:n,disabled:r,data:i,getNewIndex:a=fL,id:o,strategy:s,resizeObserverConfig:l,transition:c=pL}=e;const{items:u,containerId:d,activeIndex:f,disabled:h,disableTransforms:p,sortedRects:m,overIndex:g,useDragOverlay:x,strategy:_}=v.useContext(Y3),w=yL(r,h),C=u.indexOf(o),b=v.useMemo(()=>({sortable:{containerId:d,index:C,items:u},...i}),[d,i,C,u]),S=v.useMemo(()=>u.slice(u.indexOf(o)),[u,o]),{rect:M,node:$,isOver:k,setNodeRef:D}=aL({id:o,data:b,disabled:w.droppable,resizeObserverConfig:{updateMeasurementsFor:S,...l}}),{active:T,activatorEvent:E,activeNodeRect:R,attributes:j,setNodeRef:O,listeners:A,isDragging:I,over:F,setActivatorNodeRef:z,transform:L}=tL({id:o,data:b,attributes:{...gL,...n},disabled:w.draggable}),H=NN(D,O),Y=!!T,q=Y&&!p&&tu(f)&&tu(g),Z=!x&&I,X=Z&&q?L:null,J=q?X??(s??_)({rects:m,activeNodeRect:R,activeIndex:f,overIndex:g,index:C}):null,ee=tu(f)&&tu(g)?a({id:o,items:u,activeIndex:f,overIndex:g}):C,W=T==null?void 0:T.id,P=v.useRef({activeId:W,items:u,newIndex:ee,containerId:d}),B=u!==P.current.items,V=t({active:T,containerId:d,isDragging:I,isSorting:Y,id:o,index:C,items:u,newIndex:P.current.newIndex,previousItems:P.current.items,previousContainerId:P.current.containerId,transition:c,wasDragging:P.current.activeId!=null}),N=vL({disabled:!V,index:C,node:$,rect:M});return v.useEffect(()=>{Y&&P.current.newIndex!==ee&&(P.current.newIndex=ee),d!==P.current.containerId&&(P.current.containerId=d),u!==P.current.items&&(P.current.items=u)},[Y,ee,d,u]),v.useEffect(()=>{if(W===P.current.activeId)return;if(W!=null&&P.current.activeId==null){P.current.activeId=W;return}const K=setTimeout(()=>{P.current.activeId=W},50);return()=>clearTimeout(K)},[W]),{active:T,activeIndex:f,attributes:j,data:b,rect:M,index:C,newIndex:ee,items:u,isOver:k,isSorting:Y,isDragging:I,listeners:A,node:$,overIndex:g,over:F,setNodeRef:H,setActivatorNodeRef:z,setDroppableNodeRef:D,setDraggableNodeRef:O,transform:N??J,transition:te()};function te(){if(N||B&&P.current.newIndex===C)return mL;if(!(Z&&!h0(E)||!c)&&(Y||V))return Fl.Transition.toString({...c,property:G3})}}function yL(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}}Ot.Down,Ot.Right,Ot.Up,Ot.Left;const xL="_column-menu_wt2wp_1",wL="_column-menu-item_wt2wp_4",_L="_danger_wt2wp_8",Ri={columnMenu:xL,columnMenuItem:wL,danger:_L},CL=({header:e,table:t,className:n,IconComponent:r,DropdownMenuComponent:i,DropdownMenuContentComponent:a,DropdownMenuItemComponent:o,DropdownTriggerComponent:s,InputComponent:l,CheckComponent:c,texts:u,columnMenuPos:d,onColumnMenu:f,dragEnabled:h,style:p})=>{var j,O,A;const{attributes:m,listeners:g,setNodeRef:x,transform:_,isDragging:w}=bL({id:e.id,disabled:!h}),C={...p??{},flex:`${e.column.getSize()} 1 0`,minWidth:e.column.getSize(),...h?{transform:Fl.Translate.toString(_)}:{}},b=I=>I.column.getCanSort()?"button":void 0,S=I=>{var L,H;const F=I.column.getIsSorted(),z=I.column.getIsGrouped();return je("th",We.th,{sorted:F,[We.sorted]:F},{grouped:z,[We.grouped]:z},(L=I.column.columnDef.meta)==null?void 0:L.className,(H=I.column.columnDef.meta)==null?void 0:H.headerClassName)},M=I=>{const F=I.column.getCanSort();return je(We.heading,"heading",{[We.canSort]:F})},$=I=>{I.preventDefault(),f({id:e.id,x:I.clientX,y:I.clientY})},k=()=>f(null),D=(d==null?void 0:d.id)===e.id,T=e.column.getIsPinned(),E=e.column.getIsGrouped(),R=(O=(j=e.column.columnDef)==null?void 0:j.meta)==null?void 0:O.alwaysPinned;return y.jsxs("div",{className:je(n,S(e.getContext())),ref:x,style:C,onContextMenu:$,children:[Un.createPortal(y.jsxs(i,{isOpen:D,onToggleOpen:I=>!I&&k(),children:[y.jsx(s,{style:{position:"fixed",top:D?d.y??0:0,left:D?d.x??0:0,display:D?"block":"none",transform:"none",opacity:0}}),y.jsxs(a,{className:je("column-menu",Ri.columnMenu),style:{position:"fixed",top:D?d.y??0:0,left:D?d.x??0:0,zIndex:9999,display:D?"block":"none",transform:"none"},onClick:k,children:[T!=="right"&&e.column.getCanPin()&&!R?y.jsx(o,{className:je(Ri.columnMenuItem,{[Ri.danger]:T}),onClick:()=>e.column.pin(T==="left"?!1:"left"),children:T==="left"?u.columnUnpin:u.columnPinLeft}):null,T!=="left"&&e.column.getCanPin()&&!R?y.jsx(o,{className:je(Ri.columnMenuItem,{[Ri.danger]:T}),onClick:()=>e.column.pin(T==="right"?!1:"right"),children:T==="right"?u.columnUnpin:u.columnPinRight}):null,e.column.getCanGroup()?y.jsx(o,{className:je(Ri.columnMenuItem,{[Ri.danger]:E}),onClick:e.column.getToggleGroupingHandler(),children:E?u.columnUngroup:u.columnGroup}):null,e.column.getCanHide()&&((A=e.column.columnDef.meta)==null?void 0:A.hidden)!==!0?y.jsx(o,{className:je(Ri.columnMenuItem),onClick:()=>e.column.toggleVisibility(),children:u.columnHide}):null]})]}),document.body),e.isPlaceholder?null:y.jsxs("div",{children:[y.jsxs("div",{className:M(e.getContext()),role:b(e.getContext()),onClick:e.column.getToggleSortingHandler(),children:[y.jsxs("div",{className:je("content",We.content),children:[h?y.jsx("div",{...g,...m,className:je("reorder-handle",We.reorderHandle,{dragging:w,[We.dragging]:w}),children:y.jsx(r,{icon:"drag-handle"})}):null,$3(e.column.columnDef.header,e.getContext())]}),e.column.getCanSort()&&e.column.getIsSorted()?y.jsx(r,{className:"sort-icon",icon:`sort-${e.column.getIsSorted()||"asc"}`}):null]}),e.column.getCanFilter()?y.jsx(UI,{CheckComponent:c,column:e.column,DropdownMenuComponent:i,DropdownMenuContentComponent:a,DropdownMenuItemComponent:o,DropdownTriggerComponent:s,IconComponent:r,InputComponent:l,texts:u}):e.column.id==="select-col"?y.jsx("div",{className:je("row-selection-info",We.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:je("resizer",We.resizer,e.column.getIsResizing()?"isResizing":"",e.column.getIsResizing()?We.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:je("resizer-bar",We.resizerBar)})}):null]})},Xb=e=>{var n,r,i,a,o;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:v.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 v.isValidElement(t)&&typeof((a=t==null?void 0:t.props)==null?void 0:a.children)=="string"?(o=t==null?void 0:t.props)==null?void 0:o.children:e==null?void 0:e.id},SL="_columns-dropdown_ot346_1",TL="_columns-dropdown-menu_ot346_35",$L="_dropdown-menu-item_ot346_42",kL="_search-item_ot346_45",ML="_search-input_ot346_49",vo={columnsDropdown:SL,columnsDropdownMenu:TL,dropdownMenuItem:$L,searchItem:kL,searchInput:ML},EL=({triggerText:e,columns:t,InputComponent:n,DropdownMenuComponent:r,DropdownMenuContentComponent:i,DropdownMenuItemComponent:a,CheckComponent:o,DropdownTriggerComponent:s})=>{var p,m,g;const[l,c]=v.useState(""),u=v.useRef(null),d=v.useRef(null),[f,h]=v.useState(!1);return v.useEffect(()=>{f||c("")},[f]),v.useEffect(()=>{f&&d.current&&d.current.focus()},[f]),y.jsxs(r,{onToggleOpen:x=>h(x),children:[y.jsx(s,{className:je("columns-dropdown",vo.columnsDropdown),id:"column-visibility-dropdown",ref:u,children:e}),y.jsxs(i,{className:je("columns-dropdown-menu",vo.columnsDropdownMenu),style:{position:"relative",left:(p=u.current)==null?void 0:p.getBoundingClientRect().left,top:(m=u.current)==null?void 0:m.getBoundingClientRect().bottom,minWidth:(g=u.current)==null?void 0:g.getBoundingClientRect().width},children:[y.jsx(a,{className:je("search-item",vo.dropdownMenuItem,vo.searchItem),onClick:x=>{x.preventDefault(),x.stopPropagation()},children:y.jsx(n,{className:vo.searchInput,ref:d,size:"sm",type:"search",value:l,onChange:x=>c(x.target.value??"")})}),t.filter(x=>l?ts(Xb(x).toLowerCase()).includes(ts(l.toLowerCase())):!0).map(x=>y.jsx(a,{className:je(vo.dropdownMenuItem),onClick:_=>{_.preventDefault(),_.stopPropagation(),x.toggleVisibility()},children:y.jsx(o,{checked:x.getIsVisible(),label:Xb(x),onChange:()=>{}})},x.id))]})]})},OL="_modal_13qph_1",AL="_modal-body_13qph_1",RL="_settings-item_13qph_6",DL="_label_13qph_13",jL="_content_13qph_17",IL="_modal-footer_13qph_46",ni={modal:OL,modalBody:AL,settingsItem:RL,label:DL,content:jL,modalFooter:IL},NL=({show:e,handleClose:t,texts:n,pageSize:r,columns:i,ButtonComponent:a,resetToDefault:o,ModalComponent:s,ModalHeaderComponent:l,ModalTitleComponent:c,ModalBodyComponent:u,ModalFooterComponent:d,InputComponent:f,DropdownMenuComponent:h,DropdownTriggerComponent:p,DropdownMenuContentComponent:m,DropdownMenuItemComponent:g,CheckComponent:x})=>{const[_,w]=v.useState(r.value?r.value.toString():"");return v.useEffect(()=>{e&&w(r.value?r.value.toString():"")},[e,r.value]),y.jsxs(s,{className:je("tanstack-bnf-table-settings-modal",ni.modal),"data-testId":"settings-modal",show:e,onHide:t,children:[y.jsx(l,{closeButton:!0,children:y.jsx(c,{children:n==null?void 0:n.settingsModal.title})}),y.jsxs(u,{className:ni.modalBody,children:[r.enabled?y.jsxs("div",{className:ni.settingsItem,children:[y.jsx("div",{className:je(ni.label),children:n==null?void 0:n.settingsModal.pageSize}),y.jsxs("div",{className:je(ni.content),children:[y.jsx(f,{"data-testId":"page-size-input",list:"pageSizes",max:1e3,min:0,size:"sm",type:"number",value:_,onChange:C=>{w(C.target.value),C.target.value&&r.onChange(Number(C.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,y.jsx("div",{children:y.jsxs("div",{className:je(ni.settingsItem),children:[y.jsx("div",{className:je("text-nowrap",ni.label),children:"Sloupce tabulky"}),y.jsx("div",{className:je("text-nowrap",ni.content),children:y.jsx(EL,{CheckComponent:x,columns:i.allColumns.filter(C=>{var b;return C.getCanHide()&&((b=C.columnDef.meta)==null?void 0:b.hidden)!==!0}),DropdownMenuComponent:h,DropdownMenuContentComponent:m,DropdownMenuItemComponent:g,DropdownTriggerComponent:p,InputComponent:f,triggerText:n==null?void 0:n.settingsModal.columnVisibility})})]})})]}),y.jsxs(d,{className:ni.modalFooter,children:[y.jsx(a,{variant:"outline-secondary",onClick:()=>{o(),t()},children:n==null?void 0:n.settingsModal.revertDefaultSettings}),y.jsx(a,{onClick:t,children:n==null?void 0:n.settingsModal.done})]})]})},PL=e=>e.type==="number"?"sum":"uniqueCount",LL=(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):$3(e,t)},FL=(e,t,n)=>{var r;return(r=e.meta)!=null&&r.customAggregatedCellRender?e.meta.customAggregatedCellRender(t):(PL(e)==="sum"?n.aggregation.sum:n.aggregation.uniqueCount)(Number(t.getValue()))},BL=({ref:e,isLink:t,to:n,children:r,LinkComponent:i,onClick:a,onCellInteraction:o,...s})=>t&&n?y.jsx(i,{ref:e,to:n,onAuxClick:l=>{l.button===1&&(o==null||o())},onClick:()=>{a==null||a(),o==null||o()},onContextMenu:()=>{o==null||o()},...s,children:r}):y.jsx("div",{ref:e,onAuxClick:a||o?l=>{l.button===1&&(o==null||o())}:void 0,onClick:a||o?()=>{a==null||a(),o==null||o()}:void 0,onContextMenu:a||o?()=>{o==null||o()}:void 0,...s,children:r}),zL=({row:e,cell:t,className:n,rowClassName:r,style:i,IconComponent:a,IconButtonComponent:o,texts:s,formatters:l,LinkComponent:c,onRowClick:u,rowNavigation:d,onCellInteraction:f},h)=>{var g,x,_;const p=t.column.columnDef,m=v.useMemo(()=>{var w,C,b,S,M;if(!((w=p.meta)!=null&&w.disableCellClick)&&!t.getIsGrouped()&&!t.getIsAggregated()){if((C=p.meta)!=null&&C.onCellClick)return["onClickOwn",()=>{var $,k;return(k=($=p.meta)==null?void 0:$.onCellClick)==null?void 0:k.call($,e.original)}];if((b=p.meta)!=null&&b.cellNavigation){const $=(M=(S=p.meta)==null?void 0:S.cellNavigation)==null?void 0:M.call(S,e.original);if($)return["navigateOwn",$]}if(u)return["onClick",()=>u==null?void 0:u(e.original)];if(d){const $=d==null?void 0:d(e.original);if($)return["navigate",$]}}},[p,e,u,d,t]);return y.jsxs(BL,{className:je((w=>{var $,k,D,T,E,R,j;const C=(($=p==null?void 0:p.meta)==null?void 0:$.alignment)??"left",b=w.column.getIsSorted(),S=w.cell.getIsGrouped(),M=w.row.getIsExpanded();return je("td",We.td,{[We.left]:C==="left",[We.center]:C==="center",[We.right]:C==="right"||p.type==="number"&&((k=p.numericMeta)==null?void 0:k.noFormatting)!==!0},{sorted:b,[We.sorted]:b},{grouped:S,[We.grouped]:S},{expanded:M,[We.expanded]:M},{clickable:!!m,[We.clickable]:!!m},{"own-click":(D=m==null?void 0:m[0])==null?void 0:D.endsWith("Own"),[We.ownClick]:(T=m==null?void 0:m[0])==null?void 0:T.endsWith("Own")},r,(E=p.meta)==null?void 0:E.className,(j=(R=p.meta)==null?void 0:R.rowClassName)==null?void 0:j.call(R,e.original))})(t.getContext()),n),isLink:!!((g=m==null?void 0:m[0])!=null&&g.startsWith("navigate")),LinkComponent:c,ref:h,style:{flex:`${t.column.getSize()} 1 0`,minWidth:t.column.getSize(),...i??{}},to:(x=m==null?void 0:m[0])!=null&&x.startsWith("navigate")?m[1]:void 0,onCellInteraction:f?()=>f==null?void 0:f(e.original):void 0,onClick:(_=m==null?void 0:m[0])!=null&&_.startsWith("onClick")?m[1]:void 0,children:[t.getIsGrouped()&&e.getCanExpand()?y.jsx(o,{className:je("expander-button",We.expanderButton),size:"sm",onClick:w=>{w.stopPropagation(),e.getToggleExpandedHandler()()},children:y.jsx(a,{icon:e.getIsExpanded()?"chevron-up":"chevron-down"})}):null,t.getIsAggregated()?FL(t.column.columnDef,t.getContext(),s):t.getIsPlaceholder()?null:LL(t.column.columnDef.cell,t.getContext(),l)," ",t.getIsGrouped()?`(${e.subRows.length})`:null]})},WL=v.forwardRef(zL),UL=[["ArrowUp",[0,-1]],["ArrowDown",[0,1]],["ArrowLeft",[-1,0]],["ArrowRight",[1,0]]],Kb=new Map(UL),HL=(e,t,n,r,i,a)=>{const o=v.useState([0,0]),[s,l]=(e==null?void 0:e.cellSelectionState)??o,[c,u]=v.useState(),[d,f]=v.useState(),h=v.useCallback(g=>{e!=null&&e.disabled||l(g)},[e==null?void 0:e.disabled,l]),p=({fieldName:g,dataIndex:x})=>{u(g),f(x)},m=v.useCallback(g=>{if(e!=null&&e.disabled)return;const x=g.target;if(!(["INPUT","TEXTAREA"].includes(x.tagName)||x.isContentEditable))switch(g.code){case"Space":case"Enter":{g.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":{g.preventDefault(),h(_=>{const w=[Math.min(Math.max(_[0]+Kb.get(g.code)[0],0),t.size-1),Math.min(Math.max(_[1]+Kb.get(g.code)[1],0),n.length-1)];if(r!==void 0){const C=Math.floor(w[1]/r);i(C)}return w});break}case"Tab":if(g.preventDefault(),g.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 v.useEffect(()=>{if(c===void 0)return;u(void 0);const g=[...t.entries()].findIndex(x=>x[1]===c);l(x=>[g,x[1]])},[c,l,t]),v.useEffect(()=>{if(d===void 0)return;f(void 0);const g=n.findIndex(x=>x.index===d);if(l(x=>[x[0],g]),r!==void 0){const x=Math.floor(g/r);i(x)}},[i,r,d,n,l]),v.useEffect(()=>{if((e==null?void 0:e.onCellSelect)===void 0)return;const g=new AbortController;return window.addEventListener("keydown",m,{signal:g.signal}),()=>g.abort()},[m,e==null?void 0:e.onCellSelect]),v.useEffect(()=>{var g;(g=a.current)==null||g.scrollIntoView({behavior:"instant",block:"center",inline:"nearest"})},[a,s]),v.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 g=t.get(s[0]);if(g===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,g)},[e,h,n,s,t]),{selectedCoords:s,changeSelectedCoords:h,setSelectedCellByFNDI:p}},VL=e=>{const t=v.useRef([]),n=(r,i)=>{var a;t.current[i]=r,r&&(r.style.transform=`translateY(${((a=e.current)==null?void 0:a.scrollTop)??0}px)`)};return v.useEffect(()=>{const r=e.current;if(!r)return;const i=()=>{const a=r.scrollTop;for(const o of t.current)o&&(o.style.transform=`translateY(${a}px)`)};return r.addEventListener("scroll",i),()=>r.removeEventListener("scroll",i)},[e]),{registerSticky:n}},qL=e=>{let{transform:t}=e;return{...t,y:0}},YL=({table:e,additionalOptions:t,IconComponent:n,ButtonComponent:r,IconButtonComponent:i,DropdownMenuComponent:a,DropdownTriggerComponent:o,DropdownMenuContentComponent:s,DropdownMenuItemComponent:l,InputComponent:c,ModalComponent:u,ModalHeaderComponent:d,ModalTitleComponent:f,ModalBodyComponent:h,ModalFooterComponent:p,texts:m,formatters:g,bottomBar:x,testId:_,LinkComponent:w,className:C,rowsClassName:b,onRowClick:S,rowNavigation:M,onCellInteraction:$,cellSelection:k,getRowProps:D,UI:{CheckComponent:T}},E)=>{var le,ye,ge,be,Me,ce,de,Ce,Ge;const R={boolean:we=>CI(we,n),date:SI,datetime:TI,number:$I,...g},[j,O]=v.useState(!1),A=t.isPaginated,I=XN(np(F3,{}),np(B3,{}),np(g0,{})),F=e.getState().columnOrder,z=we=>{const{active:ve,over:Pe}=we;ve&&Pe&&ve.id!==Pe.id&&e.setColumnOrder(Ze=>{const _t=Ze.indexOf(ve.id),Te=Ze.indexOf(Pe.id);return _t===-1||Te===-1?Ze:b0(Ze,_t,Te)})},[L,H]=v.useState(null),Y=we=>{H(we)},q=we=>{if(!we.getCanPin())return"";const ve=we.getIsPinned(),Pe=ve==="right"&&we.getIsFirstColumn("right"),Ze=ve==="left"&&we.getIsLastColumn("left");return je({pinned:ve,[We.pinned]:ve,"first-right":Pe,[We.firstRight]:Pe,"last-left":Ze,[We.lastLeft]:Ze})},Z=we=>{if(!we.getCanPin())return{};const ve=we.getIsPinned();return{left:ve==="left"?`${we.getStart("left")}px`:void 0,right:ve==="right"?`${we.getAfter("right")}px`:void 0}},X=e.getState().sorting;v.useEffect(()=>{var we,ve;if(X.length>0){const Pe=X[0];if((we=document.activeElement)!=null&&we.classList.contains("filter"))return;(ve=document.getElementById(`filter-${Pe.id}`))==null||ve.focus()}},[X]);const J=e.getPrePaginationRowModel().rows,ee=new Map(e.getVisibleLeafColumns().map((we,ve)=>[ve,we.id])),W=v.useRef(null),{selectedCoords:P,changeSelectedCoords:B,setSelectedCellByFNDI:V}=HL(k,ee,J,A?((le=e.getState().pagination)==null?void 0:le.pageSize)??0:void 0,e.setPageIndex,W);v.useImperativeHandle(E,()=>({setSelectedCell:V}));const N=we=>{var ve;return k!=null&&k.onlyRowSelection&&((ve=J[P[1]])==null?void 0:ve.index)===we.index?je(We.cellSelectedRow,"cell-selected-row",{[We.cellSelectionDisabled]:k.disabled}):""},te=(we,ve)=>{var Pe;return(k==null?void 0:k.onCellSelect)===void 0||P[0]!==we||((Pe=J[P[1]])==null?void 0:Pe.index)!==ve||k.onlyRowSelection?"":k.disabled?"bg-primary-subtle":je("selected-cell",We.selectedCell)},K=t.fullScreen.canFullScreen?((ye=t.fullScreen)==null?void 0:ye.isFullScreen)??!1:!1,G=(ge=t.sizing)!=null&&ge.canSize?((be=t.sizing)==null?void 0:be.size)??"md":"md",oe=e.getState().columnFilters,ne=v.useRef(null),{registerSticky:re}=VL(ne),ae=(we,ve,Pe)=>{var Ze;return y.jsx("div",{className:je("tr",We.tr,N(we),{pinned:we.getIsPinned()!==!1,[We.pinned]:we.getIsPinned()!==!1},D?(Ze=D(we.original))==null?void 0:Ze.className:null),role:"data-row",...D?D(we.original):{},ref:Pe!==void 0?_t=>re(_t,Pe):void 0,children:we.getVisibleCells().map((_t,Te)=>{var Re;return y.jsx(WL,{cell:_t,className:je(q(_t.column),te(Te,we.index)),formatters:R,IconButtonComponent:i,IconComponent:n,LinkComponent:w,ref:(k==null?void 0:k.onCellSelect)!==void 0&&P[0]===Te&&((Re=J[P[1]])==null?void 0:Re.index)===we.index?W:null,row:we,rowClassName:je(...(b==null?void 0:b.filter(it=>it.selector(we.original)).map(it=>it.className))??[]),rowNavigation:M,style:Z(_t.column),texts:m,onCellInteraction:(k==null?void 0:k.onCellSelect)===void 0?$:it=>{var Ue,mt;B([Te,((Ue=e.getState().pagination)==null?void 0:Ue.pageIndex)*((mt=e.getState().pagination)==null?void 0:mt.pageSize)+ve]),$==null||$(it)},onRowClick:S},_t.id)})},we.id)};return y.jsx(JP,{collisionDetection:tP,modifiers:[qL],sensors:I,onDragEnd:z,children:y.jsxs("div",{className:je("tanstack-bnf-table-container",We.tableScrollContainer,{"full-screen":K,[We.fullScreen]:K}),ref:ne,children:[oe&&oe.length>0?y.jsx("div",{className:je("remove-filters-button-wrapper",We.removeFiltersButtonWrapper),children:y.jsxs("button",{className:je(We.removeFiltersButton,"remove-filters-button"),type:"button",onClick:()=>e.resetColumnFilters(),children:[y.jsx(n,{icon:"remove-filters"}),(m==null?void 0:m.removeFilters)??"Zrušit filtry"]})}):null,y.jsxs("div",{className:je("tanstack-bnf-table",We.table,{sm:G==="sm",lg:G==="lg",[We.sm]:G==="sm",[We.lg]:G==="lg"},C),"data-testid":_,children:[y.jsx("div",{className:je("thead",We.thead),children:e.getHeaderGroups().map(we=>y.jsx("div",{className:je("tr",We.tr),children:y.jsx(dL,{items:F,strategy:cL,children:we.headers.map(ve=>{var Pe,Ze;return y.jsx(CL,{CheckComponent:T,className:q(ve.column),columnMenuPos:L,dragEnabled:t.enableReordering&&((Ze=(Pe=ve.column.columnDef)==null?void 0:Pe.meta)==null?void 0:Ze.enableReordering)!==!1,DropdownMenuComponent:a,DropdownMenuContentComponent:s,DropdownMenuItemComponent:l,DropdownTriggerComponent:o,header:ve,IconComponent:n,InputComponent:c,style:Z(ve.column),table:e,texts:m,onColumnMenu:Y},ve.id)})})},we.id))}),y.jsxs("div",{className:je("tbody",We.tbody),children:[(((ce=(Me=e.options)==null?void 0:Me.data)==null?void 0:ce.length)??0)===0?y.jsx("div",{className:je("empty-table-alert",We.emptyTableAlert),children:m.emptyTable}):null,e.getTopRows().map((we,ve)=>ae(we,ve,ve)),e.getCenterRows().map((we,ve)=>ae(we,ve))]}),y.jsx(NL,{ButtonComponent:r,CheckComponent:T,columns:{allColumns:e.getAllColumns()},DropdownMenuComponent:a,DropdownMenuContentComponent:s,DropdownMenuItemComponent:l,DropdownTriggerComponent:o,handleClose:()=>O(!1),IconComponent:n,InputComponent:c,ModalBodyComponent:h,ModalComponent:u,ModalFooterComponent:p,ModalHeaderComponent:d,ModalTitleComponent:f,pageSize:{enabled:A,value:((de=e.getState().pagination)==null?void 0:de.pageSize)??0,onChange:we=>e.setPageSize(we)},resetToDefault:t.resetToInitialValues,show:j,texts:m})]}),x!=null&&x.hidden?null:y.jsxs("div",{className:je("bottom-bar",We.bottomBar),children:[y.jsxs("div",{className:je("left-items",We.leftItems),children:[A?y.jsxs("div",{className:je("pagination",We.pagination),children:[y.jsx(i,{disabled:!e.getCanPreviousPage(),onClick:()=>e.firstPage(),children:y.jsx(n,{icon:"page-first"})}),y.jsx(i,{disabled:!e.getCanPreviousPage(),onClick:()=>e.previousPage(),children:y.jsx(n,{icon:"page-previous"})}),y.jsx("div",{className:je("page-info-text",We.pageInfoText),children:m.pagination.infoText(e.getState().pagination.pageIndex+1,e.getPageCount())}),y.jsx(i,{disabled:!e.getCanNextPage(),onClick:()=>e.nextPage(),children:y.jsx(n,{icon:"page-next"})}),y.jsx(i,{disabled:!e.getCanNextPage(),onClick:()=>e.lastPage(),children:y.jsx(n,{icon:"page-last"})})]}):null,y.jsx("div",{className:je("row-count-text",We.rowCountText),children:m.rowCountText(e.getRowCount())})]}),y.jsxs("div",{className:je("right-items",We.rightItems),children:[(Ce=t.fullScreen)!=null&&Ce.canFullScreen?y.jsx(i,{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,(Ge=t.sizing)!=null&&Ge.canSize?y.jsxs(a,{drop:"up",children:[y.jsx(o,{id:"table-sizing-button",children:y.jsx(n,{icon:"density"})}),y.jsxs(s,{className:je("shadow-lg sizing-menu",We.sizingMenu),children:[y.jsxs(l,{className:je("sizing-menu-item",We.sizingMenuItem),onClick:()=>t.sizing.setSize("sm"),children:[G==="sm"?y.jsx(n,{icon:"boolean-yes"}):null," ",m.sizing.sm]}),y.jsxs(l,{className:je("sizing-menu-item",We.sizingMenuItem),onClick:()=>t.sizing.setSize("md"),children:[G==="md"?y.jsx(n,{icon:"boolean-yes"}):null," ",m.sizing.md]}),y.jsxs(l,{className:je("sizing-menu-item",We.sizingMenuItem),onClick:()=>t.sizing.setSize("lg"),children:[G==="lg"?y.jsx(n,{icon:"boolean-yes"}):null," ",m.sizing.lg]})]})]}):null,t.excelExport.canExport?y.jsx(i,{"data-testId":"table-excel-export-button",onClick:()=>t.excelExport.onExport(m),children:y.jsx(n,{icon:"excel-export"})}):null,y.jsx(i,{"data-testId":"table-settings-button",onClick:()=>O(!0),children:y.jsx(n,{icon:"settings"})})]})]})]})})};v.forwardRef(YL);const GL=(e,t)=>t.split(".").reduce((n,r)=>n&&typeof n=="object"?n[r]:void 0,e),Z3=()=>{const e=HI();return{accessor:(t,n)=>{const r=i=>GL(i,t)??"";return e.accessor(r,{...n,id:t})},display:t=>e.display(t),group:t=>e.group(t)}};function ZL(e){return pt({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 XL(e){return pt({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 KL(e){return pt({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M238.15,78.54,177.46,17.86a20,20,0,0,0-28.3,0L97.2,70c-12.43-3.33-36.68-5.72-61.74,14.5a20,20,0,0,0-1.6,29.73l45.46,45.47-39.8,39.8a12,12,0,0,0,17,17l39.8-39.81,45.47,45.46A20,20,0,0,0,155.91,228c.46,0,.93,0,1.4-.05A20,20,0,0,0,171.87,220c4.69-6.23,11-16.13,14.44-28s3.45-22.88.16-33.4l51.7-51.87A20,20,0,0,0,238.15,78.54Zm-74.26,68.79a12,12,0,0,0-2.23,13.84c3.43,6.86,6.9,21-6.28,40.65L54.08,100.53c21.09-14.59,39.53-6.64,41-6a11.67,11.67,0,0,0,13.81-2.29l54.43-54.61,55,55Z"},child:[]}]})(e)}function JL(e){return pt({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M56.88,31.93A12,12,0,1,0,39.12,48.07L60,71A76,76,0,0,0,35.46,84.51a20,20,0,0,0-1.6,29.73l45.46,45.47-39.8,39.8a12,12,0,0,0,17,17l39.8-39.81,45.47,45.46A20,20,0,0,0,155.9,228c.47,0,.94,0,1.41-.05A20,20,0,0,0,171.87,220a97.47,97.47,0,0,0,9.54-15.46l17.72,19.49a12,12,0,1,0,17.76-16.14Zm98.49,169.88L54.08,100.52C62,95,70.31,92.12,78.91,91.83l84.51,93A62,62,0,0,1,155.37,201.81Zm82.78-95-39,39.11a12,12,0,1,1-17-16.95l36.19-36.3-55-55L130.59,70.5a12,12,0,0,1-17-16.94l35.57-35.69a20,20,0,0,1,28.3,0l60.69,60.68A20,20,0,0,1,238.15,106.83Z"},child:[]}]})(e)}function QL(e){return pt({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 eF(e){return pt({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 tF="_excel_18ggp_1",nF="_word_18ggp_5",rF="_pdf_18ggp_9",iF="_image_18ggp_13",ru={excel:tF,word:nF,pdf:rF,image:iF},X3=e=>{const t=Ie.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 a;t[4]!==n?(a=se(n,ru.image),t[4]=n,t[5]=a):a=t[5];let o;t[6]!==i?(o=y.jsx(XL,{...i}),t[6]=i,t[7]=o):o=t[7];let s;return t[8]!==a||t[9]!==o?(s=y.jsx("span",{className:a,children:o}),t[8]=a,t[9]=o,t[10]=s):s=t[10],s}case"XLS":case"XLSX":case"CSV":{let a;t[11]!==n?(a=se(n,ru.excel),t[11]=n,t[12]=a):a=t[12];let o;return t[13]!==i||t[14]!==a?(o=y.jsx(QL,{className:a,...i}),t[13]=i,t[14]=a,t[15]=o):o=t[15],o}case"DOC":case"DOCM":case"DOCX":{let a;t[16]!==n?(a=se(n,ru.word),t[16]=n,t[17]=a):a=t[17];let o;return t[18]!==i||t[19]!==a?(o=y.jsx(eF,{className:a,...i}),t[18]=i,t[19]=a,t[20]=o):o=t[20],o}case"PDF":{let a;t[21]!==n?(a=se(n,ru.pdf),t[21]=n,t[22]=a):a=t[22];let o;return t[23]!==i||t[24]!==a?(o=y.jsx(zR,{className:a,...i}),t[23]=i,t[24]=a,t[25]=o):o=t[25],o}default:{let a;return t[26]===Symbol.for("react.memo_cache_sentinel")?(a=y.jsx(ZL,{}),t[26]=a):a=t[26],a}}},aF=()=>{const e=Ie.c(47),{ProjectIconComponent:t,texts:n}=v.useContext(rn),{documents:r}=n,{apiActions:i,reducer:a}=v.useContext(mn),{downloadFile:o}=i,[s]=a,l=s.activeFolder==="root";let c;e[0]!==o?(c=(T,E,R)=>T?s4(E??"")&&localStorage.getItem("file-download-try-opening")!=="false"?y.jsx("span",{role:"button",className:"link link-primary d-flex align-items-center",onClick:O=>{O.stopPropagation(),o(R,!0)},children:T}):T:"",e[0]=o,e[1]=c):c=e[1];const u=c;let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=Z3(),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 m;e[7]!==u?(m=f.accessor("--icon",{header:"",type:"string",size:36,enableSorting:!1,meta:{alignment:"center",filterVariant:"none",customCellRender:T=>{const E=T.row.getValue("fileExtension"),R=T.row.getValue("id");return u(y.jsx(X3,{fileExtension:(E==null?void 0:E.toString())??"",className:vm.extensionIcon,size:18}),(E==null?void 0:E.toString())??"",Number((R==null?void 0:R.toString())??""))}}}),e[7]=u,e[8]=m):m=e[8];let g;if(e[9]!==r.name||e[10]!==u){let T;e[12]!==u?(T=E=>{const R=E.row.getValue("name"),j=E.row.getValue("fileExtension"),O=E.row.getValue("id");return u((R==null?void 0:R.toString())??"",(j==null?void 0:j.toString())??"",Number((O==null?void 0:O.toString())??""))},e[12]=u,e[13]=T):T=e[13],g=f.accessor("name",{header:r.name,type:"string",meta:{customCellRender:T}}),e[9]=r.name,e[10]=u,e[11]=g}else g=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]!==o?(w=f.accessor("--downloadButton",{header:"",type:"number",size:38,enableSorting:!1,meta:{alignment:"center",filterVariant:"none",customCellRender:T=>{const E=T.row.getValue("id");return y.jsx(tf,{className:vm.downloadButton,onClick:()=>o(Number((E==null?void 0:E.toString())??""),!1),children:y.jsx(t,{icon:"file-download",size:18})})}}}),e[18]=t,e[19]=o,e[20]=w):w=e[20];let C;e[21]!==r.documentType?(C=f.accessor("documentTypeName",{header:r.documentType,type:"string",meta:{filterVariant:"select"}}),e[21]=r.documentType,e[22]=C):C=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 S;e[25]!==r.size?(S=f.accessor("size",{header:r.size,type:"number",meta:{filterVariant:"none",customCellRender:oF}}),e[25]=r.size,e[26]=S):S=e[26];let M;if(e[27]!==r.archived||e[28]!==r.no||e[29]!==r.yes){let T;e[31]!==r.no||e[32]!==r.yes?(T=E=>E.getValue()?r.yes[0]:r.no[0],e[31]=r.no,e[32]=r.yes,e[33]=T):T=e[33],M=f.accessor("archive",{header:r.archived,type:"boolean",meta:{filterVariant:"select",customCellRender:T}}),e[27]=r.archived,e[28]=r.no,e[29]=r.yes,e[30]=M}else M=e[30];let $;e[34]!==_||e[35]!==w||e[36]!==C||e[37]!==b||e[38]!==S||e[39]!==M||e[40]!==p||e[41]!==m||e[42]!==g||e[43]!==x?($=[h,...p,m,g,x,_,w,C,b,S,M],e[34]=_,e[35]=w,e[36]=C,e[37]=b,e[38]=S,e[39]=M,e[40]=p,e[41]=m,e[42]=g,e[43]=x,e[44]=$):$=e[44];const k=$;let D;return e[45]!==k?(D={columns:k},e[45]=k,e[46]=D):D=e[46],D};function oF(e){var n;const t=Number(((n=e.getValue())==null?void 0:n.toString())??"");return t!==void 0?Go(t*1024*1024):""}const sF=e=>{var E;const t=Ie.c(33),{BnfTableComponent:n,tableIdentifier:r,writePermissions:i}=e,{reducer:a}=v.useContext(mn),[o,s]=a,{columns:l}=aF();let c;t[0]!==s?(c=R=>{s({type:"mark-files-by-action",setStateAction:R})},t[0]=s,t[1]=c):c=t[1];const u=c,d=o.activeFolder==="root";let f;e:{if(o.activeFolder==="root"){f=!1;break e}let R;t[2]!==o.activeFolder||t[3]!==o.foldersMap?(R=((E=o.foldersMap.get(o.activeFolder))==null?void 0:E.onlyRead)??!1,t[2]=o.activeFolder,t[3]=o.foldersMap,t[4]=R):R=t[4],f=R}const h=f,p=i&&!d;let m;t[5]!==o.markedFiles?(m=Object.fromEntries(o.markedFiles.map(cF)),t[5]=o.markedFiles,t[6]=m):m=t[6];let g;t[7]!==u?(g=R=>{const j=Object.keys(R).filter(O=>R[O]).map(uF);u(j)},t[7]=u,t[8]=g):g=t[8];let x;t[9]!==p||t[10]!==m||t[11]!==g?(x={enabled:p,getRowId:lF,selectedRows:m,setSelectedRows:g},t[9]=p,t[10]=m,t[11]=g,t[12]=x):x=t[12];const _=x;let w;e:{if(o.activeFolder==="root"){w=o.filteredFiles;break e}let R;if(t[13]!==o.activeFolder||t[14]!==o.filteredFiles){let j;t[16]!==o.activeFolder?(j=O=>O.folderId===o.activeFolder,t[16]=o.activeFolder,t[17]=j):j=t[17],R=o.filteredFiles.filter(j),t[13]=o.activeFolder,t[14]=o.filteredFiles,t[15]=R}else R=t[15];w=R}const C=w,{getDraggableProps:b}=s0();let S;t[18]!==b||t[19]!==h||t[20]!==i?(S=R=>i===!1||h?{}:b(R.id),t[18]=b,t[19]=h,t[20]=i,t[21]=S):S=t[21];const M=S;let $;t[22]===Symbol.for("react.memo_cache_sentinel")?($=se(vm.wrapper),t[22]=$):$=t[22];let k;t[23]===Symbol.for("react.memo_cache_sentinel")?(k={columnFilters:[{id:"archive",value:"false"}]},t[23]=k):k=t[23];let D;t[24]===Symbol.for("react.memo_cache_sentinel")?(D={hidden:!0},t[24]=D):D=t[24];let T;return t[25]!==n||t[26]!==l||t[27]!==C||t[28]!==M||t[29]!==_||t[30]!==o.activeFolder||t[31]!==r?(T=y.jsx("div",{className:$,children:y.jsx(n,{data:C,columns:l,rowSelection:_,getRowProps:M,initState:k,tableId:r,bottomBar:D},o.activeFolder)}),t[25]=n,t[26]=l,t[27]=C,t[28]=M,t[29]=_,t[30]=o.activeFolder,t[31]=r,t[32]=T):T=t[32],T};function lF(e){var t;return((t=e.id)==null?void 0:t.toString())??""}function cF(e){return[e.toString(),!0]}function uF(e){return Number(e)}const dF="_wrapper_1q562_1",fF="_divButtons_1q562_10",op={wrapper:dF,divButtons:fF},hF="_wrapper_1bpdd_1",pF="_fileInput_1bpdd_5",Jb={wrapper:hF,fileInput:pF},mF=e=>{const t=Ie.c(17),{entityId:n,entityType:r,children:i,disabled:a}=e,o=v.useRef(null),[s,l]=v.useState(null),{reducer:c}=v.useContext(mn),[u]=c;let d;t[0]===Symbol.for("react.memo_cache_sentinel")?(d=M=>{var $;((($=M.target.files)==null?void 0:$.length)??0)>0&&l(M.target.files)},t[0]=d):d=t[0];const f=d;let h;t[1]===Symbol.for("react.memo_cache_sentinel")?(h=()=>{l(null),o.current&&(o.current.value="")},t[1]=h):h=t[1];const p=h,m=`documents-upload-${r}-${n}`,g=a||u.activeFolder==="root",x=g?"disabled":void 0;let _;t[2]!==x?(_=se("btn btn-context luminus-context-button",x),t[2]=x,t[3]=_):_=t[3];let w;t[4]!==i||t[5]!==m||t[6]!==_?(w=y.jsx("label",{htmlFor:m,className:_,children:i}),t[4]=i,t[5]=m,t[6]=_,t[7]=w):w=t[7];let C;t[8]!==m||t[9]!==g?(C=y.jsx("input",{id:m,type:"file",multiple:!0,onChange:f,className:Jb.fileInput,ref:o,disabled:g}),t[8]=m,t[9]=g,t[10]=C):C=t[10];let b;t[11]!==s?(b=s!==null?y.jsx(l0,{handleClose:p,files:s}):void 0,t[11]=s,t[12]=b):b=t[12];let S;return t[13]!==w||t[14]!==C||t[15]!==b?(S=y.jsxs("div",{className:Jb.wrapper,children:[w,C,b]}),t[13]=w,t[14]=C,t[15]=b,t[16]=S):S=t[16],S},Rr=e=>{const t=Ie.c(5),{children:n,onClick:r,className:i,disabled:a}=e,o=a===void 0?!1:a;let s;return t[0]!==n||t[1]!==i||t[2]!==o||t[3]!==r?(s=y.jsx(tf,{onClick:r,className:i,disabled:o,children:n}),t[0]=n,t[1]=i,t[2]=o,t[3]=r,t[4]=s):s=t[4],s},gF=e=>{var L,H,Y;const t=Ie.c(51),{className:n,entityId:r,entityType:i}=e,{texts:a}=v.useContext(rn),{documents:o}=a,{prompt:s}=L_(),{confirm:l}=Kg(),{apiActions:c,reducer:u}=v.useContext(mn),[d,f]=u,{deleteFiles:h,renameFiles:p,downloadAsZip:m,archivateFiles:g,deleteDirectory:x}=c,{renameFolder:_}=o3(),w=d.markedFiles.length===0,C=d.markedFiles.length===1;let b;t[0]!==o.enterNewFolderName||t[1]!==s||t[2]!==_||t[3]!==d.activeFolder?(b=async()=>{if(d.activeFolder==="root")return;const q=await s(o.enterNewFolderName,{input:"input"});q!==null&&_(d.activeFolder,q)},t[0]=o.enterNewFolderName,t[1]=s,t[2]=_,t[3]=d.activeFolder,t[4]=b):b=t[4];const S=b;let M;t[5]!==o.enterNewFileName||t[6]!==s||t[7]!==p||t[8]!==d.activeFolder?(M=async()=>{if(d.activeFolder==="root")return;const q=await s(o.enterNewFileName,{input:"input"});q!==null&&p(q)},t[5]=o.enterNewFileName,t[6]=s,t[7]=p,t[8]=d.activeFolder,t[9]=M):M=t[9];const $=M,k=d.activeFolder==="root";let D;e:{if(d.activeFolder==="root"){D=!1;break e}let q;t[10]!==d.activeFolder||t[11]!==d.foldersMap?(q=((L=d.foldersMap.get(d.activeFolder))==null?void 0:L.onlyRead)??!1,t[10]=d.activeFolder,t[11]=d.foldersMap,t[12]=q):q=t[12],D=q}const T=D;let E;if(t[13]!==d.constantFiles||t[14]!==d.markedFiles){let q;t[16]!==d.constantFiles?(q=Z=>{var X;return((X=d.constantFiles.find(J=>J.id===Z))==null?void 0:X.archive)===!1},t[16]=d.constantFiles,t[17]=q):q=t[17],E=d.markedFiles.every(q),t[13]=d.constantFiles,t[14]=d.markedFiles,t[15]=E}else E=t[15];const R=E;let j;if(t[18]!==d.constantFiles||t[19]!==d.markedFiles){let q;t[21]!==d.constantFiles?(q=Z=>{var X;return((X=d.constantFiles.find(J=>J.id===Z))==null?void 0:X.archive)===!0},t[21]=d.constantFiles,t[22]=q):q=t[22],j=d.markedFiles.every(q),t[18]=d.constantFiles,t[19]=d.markedFiles,t[20]=j}else j=t[20];const O=j,A=d.state==="folder-choosing"?"ignore-dim":void 0;let I;t[23]!==n||t[24]!==A?(I=se(n,op.wrapper,A,"d-flex justify-content-between"),t[23]=n,t[24]=A,t[25]=I):I=t[25];let F;t[26]!==R||t[27]!==g||t[28]!==l||t[29]!==O||t[30]!==x||t[31]!==h||t[32]!==f||t[33]!==o||t[34]!==m||t[35]!==r||t[36]!==i||t[37]!==$||t[38]!==S||t[39]!==w||t[40]!==C||t[41]!==T||t[42]!==k||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:op.divButtons,children:[y.jsx(mF,{entityId:r,entityType:i,disabled:T,children:o.uploadFiles}),y.jsx(Rr,{onClick:()=>{f({type:"open-modal",modalType:"create-folder",chosenFolderId:d.activeFolder??"root"})},disabled:T,children:o.createFolder}),y.jsx(Rr,{disabled:d.activeFolder==="root"||((H=d.foldersMap.get(d.activeFolder))==null?void 0:H.isDefault),onClick:async()=>{var Z;await l(`${o.deleteFolder} ${(Z=d.foldersMap.get(d.activeFolder))==null?void 0:Z.name}?`)&&x(d.activeFolder)},children:o.deleteFolder}),y.jsx(Rr,{disabled:d.activeFolder==="root"||((Y=d.foldersMap.get(d.activeFolder))==null?void 0:Y.isDefault),onClick:S,children:o.renameFolder})]}),!k&&!T?y.jsxs("div",{className:op.divButtons,children:[y.jsx(Rr,{onClick:()=>{f({type:"open-modal",modalType:"edit-file-properties"})},disabled:!C,children:o.editFileProperties}),y.jsx(Rr,{onClick:async()=>{await l(o.confirmDeleteFile(d.markedFiles.length))&&h(d.markedFiles)},disabled:w,children:o.delete}),O?y.jsx(Rr,{onClick:async()=>{await l(o.confirmDearchiveFile(d.markedFiles.length))&&await g(!0)},disabled:w,children:o.dearchivate}):y.jsx(Rr,{onClick:async()=>{await l(o.confirmArchiveFile(d.markedFiles.length))&&await g()},disabled:w||!R,children:o.archivate}),y.jsx(Rr,{onClick:$,disabled:w,children:o.rename}),y.jsx(Rr,{onClick:m,disabled:w,children:o.downloadZip})]}):null]}):d.state==="folder-choosing"?y.jsx(y.Fragment,{children:y.jsx(Rr,{onClick:()=>f({type:"return-from-folder-choosing"}),className:se("ignore-dim","body-background-color"),children:o.back})}):void 0,t[26]=R,t[27]=g,t[28]=l,t[29]=O,t[30]=x,t[31]=h,t[32]=f,t[33]=o,t[34]=m,t[35]=r,t[36]=i,t[37]=$,t[38]=S,t[39]=w,t[40]=C,t[41]=T,t[42]=k,t[43]=d.activeFolder,t[44]=d.foldersMap,t[45]=d.markedFiles,t[46]=d.state,t[47]=F):F=t[47];let z;return t[48]!==F||t[49]!==I?(z=y.jsx("div",{className:I,children:F}),t[48]=F,t[49]=I,t[50]=z):z=t[50],z},vF=e=>{const t=Ie.c(25),{file:n}=e,{confirm:r}=Kg(),{reducer:i,apiActions:a}=v.useContext(mn),[o]=i,{downloadFile:s}=a,{texts:l}=v.useContext(rn),{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:Go(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]!==o.foldersMap?(f=u3(n.folderId,o.foldersMap),t[7]=n.folderId,t[8]=o.foldersMap,t[9]=f):f=t[9];let h;t[10]!==f?(h=y.jsx(In,{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(In,{variant:"body",children:n.name}),t[12]=n.name,t[13]=p):p=t[13];let m;t[14]!==n.size?(m=n.size==null?null:Go(n.size*1024*1024),t[14]=n.size,t[15]=m):m=t[15];let g;t[16]!==m?(g=y.jsx(In,{variant:"body",children:m}),t[16]=m,t[17]=g):g=t[17];let x;t[18]!==p||t[19]!==g?(x=y.jsxs("div",{className:"d-flex justify-content-between gap-2",children:[p,g]}),t[18]=p,t[19]=g,t[20]=x):x=t[20];let _;return t[21]!==d||t[22]!==x||t[23]!==h?(_=y.jsxs(Ld,{action:!0,onClick:d,children:[h,x]}),t[21]=d,t[22]=x,t[23]=h,t[24]=_):_=t[24],_},bF="_typeSelect_m3myk_1",yF={typeSelect:bF},xF=()=>{const e=Ie.c(34),{reducer:t}=v.useContext(mn),[n]=t,{texts:r}=v.useContext(rn),{documents:i}=r,[a,o]=v.useState(""),[s,l]=v.useState(null);let c;e[0]!==n.filteredFiles?(c=new Map,n.filteredFiles.forEach($=>{c.get($.documentTypeId)===void 0&&c.set($.documentTypeId,$.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(wF),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 m;if(e[9]!==a||e[10]!==s||e[11]!==n.filteredFiles){let $;e[13]!==a||e[14]!==s?($=k=>Vg(k.name,a)&&(s===null||k.documentTypeId===s),e[13]=a,e[14]=s,e[15]=$):$=e[15],m=n.filteredFiles.filter($),e[9]=a,e[10]=s,e[11]=n.filteredFiles,e[12]=m}else m=e[12];const g=m;let x;e[16]!==i.documentType||e[17]!==p||e[18]!==s?(x=y.jsx(r3,{options:p,label:i.documentType,value:s,onChange:l,isNumber:!0,size:"sm",className:yF.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")?(_=$=>o($===null?"":$),e[20]=_):_=e[20];let w;e[21]!==i.search||e[22]!==a?(w=y.jsx(t3,{label:i.search,type:"text",value:a,onChange:_,className:"flex-grow-1",size:"sm"}),e[21]=i.search,e[22]=a,e[23]=w):w=e[23];let C;e[24]!==x||e[25]!==w?(C=y.jsxs("div",{className:"d-flex gap-1 mb-1",children:[x,w]}),e[24]=x,e[25]=w,e[26]=C):C=e[26];let b;e[27]!==g?(b=g.map(_F),e[27]=g,e[28]=b):b=e[28];let S;e[29]!==b?(S=y.jsx(f_,{className:"overflow-y-auto",children:b}),e[29]=b,e[30]=S):S=e[30];let M;return e[31]!==S||e[32]!==C?(M=y.jsxs("div",{className:"d-flex h-100 flex-column",children:[C,S]}),e[31]=S,e[32]=C,e[33]=M):M=e[33],M};function wF(e){return{id:e[0],name:e[1]}}function _F(e){return y.jsx(vF,{file:e},e.id)}function CF(e){return{name:e.name,defaultDocType:e.defaultDocType,childrenIds:[],parentId:e.parentId??null,isDefault:e.isDefault,onlyRead:e.onlyRead}}function SF(e){const t=[],n=new Map,r=new Map;return e.forEach(i=>{n.set(i.id,CF(i)),i.parentId===null?t.push(i.id):r.set(i.id,i.parentId)}),r.forEach((i,a)=>{const o=n.get(i);if(o===void 0)throw new Error(`Did not get folder with ID ${i}, which is supposed to be parent directory of folder with ID ${a}`);o.childrenIds.push(a)}),{dirsMap:n,rootIds:t}}function Qb(e,t){const n=t.toUpperCase();return e.filter(r=>{var a;const i=(a=r.name)==null?void 0:a.toUpperCase();return i==null?void 0:i.includes(n)})}function TF(e,t){return e.map(n=>{var r;return{...n,folderName:((r=t.get(n.folderId))==null?void 0:r.name)??""}})}const $F=([e,t],n,r)=>{const{texts:{documents:i}}=v.useContext(rn),{startLoading:a,stopLoading:o}=v.useContext(zd),{addNotification:s}=Xd(),l=Kd(),c=v.useCallback(async w=>{a("documentList");try{const b=(await l.get(`/documents/${n}/${r}`)).data,{dirsMap:S,rootIds:M}=SF(b.folders),$=TF(b.documents,S);t({type:"load-data",files:$,foldersMap:S,rootFolderIds:M,setActiveFolder:w})}finally{o("documentList")}},[l,t,r,n,a,o]);v.useEffect(()=>{c(!0)},[c]);const u=v.useCallback(async()=>{a("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{o("documents-types")}},[l,t,n,a,o]);v.useEffect(()=>{u()},[u]);const d=v.useCallback(async(w,C)=>{const b=C??e.markedFiles;a("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{o("documentsMove")}},[e.markedFiles,e.foldersMap,a,l,t,s,i,o]),f=v.useCallback(async w=>{const C=w??e.markedFiles;a("documentsFilesDelete");try{const b=await l.delete(`/documents/delete?${im(C,"documentIds")}`);if(b.status!==200)throw new Error(`Unexpected status code: ${b.status}`);t({type:"delete-files",fileIds:C}),s(i.fileDeleteSuccessful(C.length),"success")}finally{o("documentsFilesDelete")}},[e.markedFiles,a,l,t,s,i,o]),h=v.useCallback(async w=>{var C;if(!(w==="root"||(C=e.foldersMap.get(w))!=null&&C.isDefault)){a("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{o("documentsFolderDelete")}}},[e.foldersMap,a,l,t,s,i,o]),p=v.useCallback(async w=>{a("documentsRename");try{const C=await l.put("/documents/update-name",{documentIds:e.markedFiles,name:w});if(C.status!==200)throw new Error(`Unexpected status code: ${C.status}`);c()}finally{o("documentsRename")}},[a,l,e.markedFiles,c,o]),m=v.useCallback(async w=>{a("documents-archivate");try{const C=await l.put(`/documents/${w?"dearchive":"archive"}`,e.markedFiles);if(C.status!==200)throw new Error(`Unexpected status code: ${C.status}`);t({type:"update-files",fileIds:e.markedFiles,newProperties:{archive:!w}}),s((w?i.dearchivateSuccessful:i.archivateSuccessful)(e.markedFiles.length),"success")}finally{o("documents-archivate")}},[a,l,e.markedFiles,t,s,i.archivateSuccessful,i.dearchivateSuccessful,o]),g=v.useCallback(async()=>{var C;if(e.activeFolder==="root")return;const w=e.markedFiles.length;s(i.downloadAsZip(w),"info"),a("documents-ZIP_download");try{const b=await l.get(`/documents/download-zip?${im(e.markedFiles,"documentIds")}`,{responseType:"blob"});Bu(b.data,(((C=e.foldersMap.get(e.activeFolder))==null?void 0:C.name)??"")+"_files")}finally{o("documents-ZIP_download")}},[e.activeFolder,e.markedFiles,e.foldersMap,s,i,a,l,o]),x=v.useCallback(async(w,C)=>{s(i.downloadingFile,"info"),a("documents-downloading_file");try{const b=await l.get(`/documents/${w}?isSmall=true`,{responseType:"blob"}),S=e.constantFiles.find($=>$.id===w),M=`${(S==null?void 0:S.name)??w.toString()}.${S!=null&&S.fileExtension?S==null?void 0:S.fileExtension.toLowerCase():"unknown"}`;Bu(b.data,M,C)}finally{o("documents-downloading_file")}},[s,i.downloadingFile,a,l,e.constantFiles,o]),_=v.useCallback(async(w,C)=>{a("documents-upload"),s(i.uploadingDocuments,"info");try{await l.postForm("/documents/upload",{files:w,...C}),await c()}finally{o("documents-upload")}},[a,s,i.uploadingDocuments,l,c,o]);return{loadDocuments:c,moveDocuments:d,deleteFiles:f,deleteDirectory:h,renameFiles:p,archivateFiles:m,downloadAsZip:g,downloadFile:x,uploadFiles:_}},kF=(e,t)=>{var n,r;switch(t.type){case"load-data":{const i={...e,constantFiles:t.files,filteredFiles:Qb(t.files,e.searchString),foldersMap:t.foldersMap,rootFolderIds:t.rootFolderIds};if(t.setActiveFolder){const a=t.rootFolderIds.find(o=>t.files.some(s=>s.archive===!1&&s.folderId===o))??"root";i.activeFolder=a}return i}case"load-document-types":return{...e,documentTypes:t.documentTypes};case"select-folder":return{...e,activeFolder:t.folderId,markedFiles:[]};case"mark-file":{const i=e.markedFiles.includes(t.fileId)?[...e.markedFiles.filter(a=>a!==t.fileId)]:[...e.markedFiles,t.fileId];return{...e,state:i.length>0?"selection-file":"explorer",markedFiles:i}}case"mark-files-by-action":{const i=typeof t.setStateAction=="function"?t.setStateAction(e.markedFiles):t.setStateAction;return{...e,state:i.length>0?"selection-file":"explorer",markedFiles:i}}case"mark-all-files":return e.markedFiles.length<e.filteredFiles.filter(i=>i.folderId===e.activeFolder).length?{...e,markedFiles:e.filteredFiles.filter(i=>i.folderId===e.activeFolder).map(i=>i.id),state:"explorer"}:{...e,markedFiles:[],state:"explorer"};case"enter-folder-choosing":return e.state==="folder-choosing"||e.state==="openned-modal"?e:{...e,state:"folder-choosing",canTargetRoot:t.canTargetRoot??!1,previousState:e.state,choosingType:t.choosingType};case"return-from-folder-choosing":return e.state!=="folder-choosing"?e:{...e,state:e.previousState};case"update-files":return{...e,filteredFiles:[...e.filteredFiles.map(i=>t.fileIds.includes(i.id)?{...i,...t.newProperties}:i)],constantFiles:[...e.constantFiles.map(i=>t.fileIds.includes(i.id)?{...i,...t.newProperties}:i)],markedFiles:[],state:"explorer"};case"update-folders":{const i=new Map(e.foldersMap);return t.folderIds.forEach(a=>{i.set(a,{...e.foldersMap.get(a),...t.newProperties})}),{...e,foldersMap:i}}case"delete-files":return{...e,filteredFiles:[...e.filteredFiles.filter(i=>!t.fileIds.includes(i.id))],constantFiles:[...e.constantFiles.filter(i=>!t.fileIds.includes(i.id))],markedFiles:e.markedFiles.filter(i=>!t.fileIds.includes(i)),state:"explorer"};case"open-modal":switch(t.modalType){case"create-folder":return{...e,state:"openned-modal",modalType:t.modalType,chosenFolderId:t.chosenFolderId};default:return{...e,state:"openned-modal",modalType:t.modalType}}case"close-modal":return{...e,state:"explorer"};case"delete-folder":{const i=new Map(e.foldersMap),a=(n=i.get(t.folderId))==null?void 0:n.parentId;let o=[...e.rootFolderIds];if(a){const s=JSON.parse(JSON.stringify(i.get(a)));s.childrenIds=s.childrenIds.filter(l=>l!==t.folderId),i.set(a,s)}else o=o.filter(s=>s!==t.folderId);return i.delete(t.folderId),{...e,rootFolderIds:o,foldersMap:i,activeFolder:"root"}}case"create-folder":{const i=new Map(e.foldersMap);i.set(t.folderId,{name:t.folderData.name,defaultDocType:(r=e.documentTypes.find(o=>o.id===t.folderData.documentTypeId))==null?void 0:r.name,childrenIds:[],parentId:t.folderData.parentFolderId,isDefault:!1,onlyRead:t.isOnlyRead});const a=[...e.rootFolderIds];if(t.folderData.parentFolderId===null)a.push(t.folderId);else{const o=i.get(t.folderData.parentFolderId),s=JSON.parse(JSON.stringify(o));s.childrenIds.push(t.folderId),i.set(t.folderData.parentFolderId,s)}return{...e,state:"explorer",rootFolderIds:a,foldersMap:i}}case"search-files":{const i=Qb(e.constantFiles,t.searchString);return{...e,searchString:t.searchString,filteredFiles:i,markedFiles:e.markedFiles.filter(a=>i.map(o=>o.id).includes(a))}}default:throw new Error("Wrong action.type specified.")}},MF=()=>{const e=Ie.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]=v.useReducer(kF,n);let a;return e[1]!==r?(a=[r,i],e[1]=r,e[2]=a):a=e[2],a},EF=v.memo(e=>{const t=Ie.c(86);let n,r,i,a,o,s,l,c;t[0]!==e?({entityType:o,entityId:a,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]=a,t[5]=o,t[6]=s,t[7]=l,t[8]=c):(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],l=t[7],c=t[8]);const u=l===void 0?!0:l,{isMobile:d}=yc(),{ProjectIconComponent:f,texts:h}=v.useContext(rn),{documents:p}=h,[m,g]=MF(),[x,_]=v.useState(null);let w;t[9]!==g||t[10]!==m?(w=[m,g],t[9]=g,t[10]=m,t[11]=w):w=t[11];const C=$F(w,o,a);let b,S;t[12]!==C?({loadDocuments:S,...b}=C,t[12]=C,t[13]=b,t[14]=S):(b=t[13],S=t[14]);let M;t[15]!==g||t[16]!==m?(M=[m,g],t[15]=g,t[16]=m,t[17]=M):M=t[17];let $;t[18]!==b||t[19]!==a||t[20]!==o||t[21]!==S||t[22]!==M?($={entityId:a,entityType:o,apiActions:b,loadDocuments:S,reducer:M},t[18]=b,t[19]=a,t[20]=o,t[21]=S,t[22]=M,t[23]=$):$=t[23];const k=$,{getDropProps:D}=s0();if(d){let K;t[24]===Symbol.for("react.memo_cache_sentinel")?(K=y.jsx(xF,{}),t[24]=K):K=t[24];let G;return t[25]!==k?(G=y.jsx(mn.Provider,{value:k,children:K}),t[25]=k,t[26]=G):G=t[26],G}let T;t[27]!==r?(T=se(da.wrapper,r),t[27]=r,t[28]=T):T=t[28];const E=m.state==="folder-choosing"?"dim-others":void 0;let R;t[29]!==E?(R=se(E,da.explorerWindow),t[29]=E,t[30]=R):R=t[30];const j=i??o;let O;t[31]!==j?(O=y.jsx(aD,{customText:j}),t[31]=j,t[32]=O):O=t[32];let A;if(t[33]!==m.rootFolderIds||t[34]!==u){let K;t[36]!==u?(K=G=>y.jsx(d3,{dirId:G,writePermissions:u},G),t[36]=u,t[37]=K):K=t[37],A=m.rootFolderIds.map(K),t[33]=m.rootFolderIds,t[34]=u,t[35]=A}else A=t[35];let I;t[38]!==O||t[39]!==A?(I=y.jsxs("ul",{className:da.folderList,children:[O,A]}),t[38]=O,t[39]=A,t[40]=I):I=t[40];let F;t[41]!==I||t[42]!==R?(F=y.jsx("div",{className:R,children:I}),t[41]=I,t[42]=R,t[43]=F):F=t[43];let z;t[44]===Symbol.for("react.memo_cache_sentinel")?(z=se(da.explorerWindow,da.fileList),t[44]=z):z=t[44];let L;t[45]!==D||t[46]!==m||t[47]!==u?(L=u&&wD(m)?D(m.activeFolder,{onFilesDrop:K=>_(K),ignoreInner:!0}):{},t[45]=D,t[46]=m,t[47]=u,t[48]=L):L=t[48];let H;t[49]===Symbol.for("react.memo_cache_sentinel")?(H={style:{marginRight:0}},t[49]=H):H=t[49];let Y;t[50]!==f?(Y=y.jsx(f,{icon:"file-upload",iconProps:H}),t[50]=f,t[51]=Y):Y=t[51];let q;t[52]!==p.dropToUpload?(q=y.jsx("span",{children:p.dropToUpload}),t[52]=p.dropToUpload,t[53]=q):q=t[53];let Z;t[54]!==Y||t[55]!==q?(Z=y.jsxs("div",{className:da.dndText,children:[Y,q]}),t[54]=Y,t[55]=q,t[56]=Z):Z=t[56];const X=m.activeFolder==="root";let J;t[57]!==X?(J=X.toString(),t[57]=X,t[58]=J):J=t[58];let ee;t[59]!==n||t[60]!==J||t[61]!==c||t[62]!==u?(ee=y.jsx(sF,{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 W;t[64]!==L||t[65]!==Z||t[66]!==ee?(W=y.jsxs("div",{className:z,...L,children:[Z,ee]}),t[64]=L,t[65]=Z,t[66]=ee,t[67]=W):W=t[67];let P;t[68]!==a||t[69]!==o||t[70]!==u?(P=u?y.jsx(gF,{className:da.controls,entityType:o,entityId:a}):null,t[68]=a,t[69]=o,t[70]=u,t[71]=P):P=t[71];let B;t[72]===Symbol.for("react.memo_cache_sentinel")?(B=y.jsx(mD,{}),t[72]=B):B=t[72];let V;t[73]!==m.activeFolder||t[74]!==x?(V=x!==null?y.jsx(l0,{files:x,handleClose:()=>_(null),targetFolderId:m.activeFolder==="root"?void 0:m.activeFolder}):null,t[73]=m.activeFolder,t[74]=x,t[75]=V):V=t[75];let N;t[76]!==k||t[77]!==F||t[78]!==W||t[79]!==P||t[80]!==V?(N=y.jsxs(mn.Provider,{value:k,children:[F,W,P,B,V]}),t[76]=k,t[77]=F,t[78]=W,t[79]=P,t[80]=V,t[81]=N):N=t[81];let te;return t[82]!==s||t[83]!==N||t[84]!==T?(te=y.jsx("div",{...s,className:T,onDragOver:OF,onDragEnter:AF,children:N}),t[82]=s,t[83]=N,t[84]=T,t[85]=te):te=t[85],te});function OF(e){e.dataTransfer.dropEffect="none",e.stopPropagation(),e.preventDefault()}function AF(e){e.dataTransfer.dropEffect="none",e.stopPropagation(),e.preventDefault()}const RF="Left",DF="Right",jF="Up",IF="Down",Mo={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},Cm={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},ey="mousemove",ty="mouseup",NF="touchend",PF="touchmove",LF="touchstart";function FF(e,t,n,r){return e>t?n>0?DF:RF:r>0?IF:jF}function ny(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 BF(e,t){const n=u=>{const d="touches"in u;d&&u.touches.length>1||e((f,h)=>{h.trackMouse&&!d&&(document.addEventListener(ey,r),document.addEventListener(ty,o));const{clientX:p,clientY:m}=d?u.touches[0]:u,g=ny([p,m],h.rotationAngle);return h.onTouchStartOrOnMouseDown&&h.onTouchStartOrOnMouseDown({event:u}),Object.assign(Object.assign(Object.assign({},f),Cm),{initial:g.slice(),xy:g,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:m}=h?u.touches[0]:u,[g,x]=ny([p,m],f.rotationAngle),_=g-d.xy[0],w=x-d.xy[1],C=Math.abs(_),b=Math.abs(w),S=(u.timeStamp||0)-d.start,M=Math.sqrt(C*C+b*b)/(S||1),$=[_/(S||1),w/(S||1)],k=FF(C,b,_,w),D=typeof f.delta=="number"?f.delta:f.delta[k.toLowerCase()]||Mo.delta;if(C<D&&b<D&&!d.swiping)return d;const T={absX:C,absY:b,deltaX:_,deltaY:w,dir:k,event:u,first:d.first,initial:d.initial,velocity:M,vxvy:$};T.first&&f.onSwipeStart&&f.onSwipeStart(T),f.onSwiping&&f.onSwiping(T);let E=!1;return(f.onSwiping||f.onSwiped||f[`onSwiped${k}`])&&(E=!0),E&&f.preventScrollOnSwipe&&f.trackTouch&&u.cancelable&&u.preventDefault(),Object.assign(Object.assign({},d),{first:!1,eventData:T,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),Cm),{eventData:h})})},a=()=>{document.removeEventListener(ey,r),document.removeEventListener(ty,o)},o=u=>{a(),i(u)},s=(u,d)=>{let f=()=>{};if(u&&u.addEventListener){const h=Object.assign(Object.assign({},Mo.touchEventOptions),d.touchEventOptions),p=[[LF,n,h],[PF,r,Object.assign(Object.assign({},h),d.preventScrollOnSwipe?{passive:!1}:{})],[NF,i,h]];p.forEach(([m,g,x])=>u.addEventListener(m,g,x)),f=()=>p.forEach(([m,g])=>u.removeEventListener(m,g))}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 zF(e,t,n,r){return!t.trackTouch||!e.el?(e.cleanUpTouch&&e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:void 0})):e.cleanUpTouch?t.preventScrollOnSwipe!==n.preventScrollOnSwipe||t.touchEventOptions.passive!==n.touchEventOptions.passive?(e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:r(e.el,t)})):e:Object.assign(Object.assign({},e),{cleanUpTouch:r(e.el,t)})}function y0(e){const{trackMouse:t}=e,n=fe.useRef(Object.assign({},Cm)),r=fe.useRef(Object.assign({},Mo)),i=fe.useRef(Object.assign({},r.current));i.current=Object.assign({},r.current),r.current=Object.assign(Object.assign({},Mo),e);let a;for(a in Mo)r.current[a]===void 0&&(r.current[a]=Mo[a]);const[o,s]=fe.useMemo(()=>BF(l=>n.current=l(n.current,r.current),{trackMouse:t}),[t]);return n.current=zF(n.current,r.current,i.current,s),o}const WF="_side-content-bar_16o0s_1",UF="_mobile_16o0s_12",HF="_expanded_16o0s_20",VF="_content-container_16o0s_23",qF="_resizer_16o0s_31",YF="_expander_16o0s_46",GF="_icon_16o0s_65",ri={sideContentBar:WF,mobile:UF,expanded:HF,contentContainer:VF,resizer:qF,expander:YF,icon:GF},K3=e=>{const t=Ie.c(34),{width:n,children:r,isExpandedOnMobileState:i,resizeable:a,onResize:o}=e,[s,l]=i,c=a===void 0?!0:a,{ProjectIconComponent:u}=v.useContext(rn),{isMobile:d}=yc();let f;t[0]!==l?(f=D=>{D.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 m=y0(p),[g,x]=v.useState(null);let _;t[5]!==s||t[6]!==d?(_=se("luminus-side-content-bar shadow",ri.sideContentBar,{[ri.mobile]:d},{[ri.expanded]:s}),t[5]=s,t[6]=d,t[7]=_):_=t[7];const w=`${n}px`;let C;t[8]!==w?(C={width:w},t[8]=w,t[9]=C):C=t[9];let b;t[10]!==u||t[11]!==(g==null?void 0:g.startX)||t[12]!==(g==null?void 0:g.widthStart)||t[13]!==d||t[14]!==o||t[15]!==c||t[16]!==n?(b=c&&!d?y.jsx("div",{role:"button",className:se(ri.resizer,"luminus-side-content-bar-resizer","shadow"),draggable:!0,onDragStart:D=>x({startX:D.clientX,widthStart:n}),onDrag:D=>o(((g==null?void 0:g.widthStart)??0)+(((g==null?void 0:g.startX)??0)-D.clientX)),onDragEnd:()=>x(null),children:y.jsx(u,{className:ri.icon,icon:"resizer-horizontal"})}):null,t[10]=u,t[11]=g==null?void 0:g.startX,t[12]=g==null?void 0:g.widthStart,t[13]=d,t[14]=o,t[15]=c,t[16]=n,t[17]=b):b=t[17];let S;t[18]!==r?(S=y.jsx("div",{className:ri.contentContainer,children:r}),t[18]=r,t[19]=S):S=t[19];let M;t[20]!==m||t[21]!==S||t[22]!==_||t[23]!==C||t[24]!==b?(M=y.jsxs("section",{className:_,style:C,...m,children:[b,S]}),t[20]=m,t[21]=S,t[22]=_,t[23]=C,t[24]=b,t[25]=M):M=t[25];let $;t[26]!==u||t[27]!==s||t[28]!==d||t[29]!==l?($=d?y.jsx("div",{role:"button",onClick:()=>l(!s),className:se(ri.expander,{[ri.expanded]:s},"luminus-side-content-bar-expander","shadow"),children:y.jsx(u,{className:ri.icon,icon:"chevron-left"})}):null,t[26]=u,t[27]=s,t[28]=d,t[29]=l,t[30]=$):$=t[30];let k;return t[31]!==M||t[32]!==$?(k=y.jsxs(y.Fragment,{children:[M,$]}),t[31]=M,t[32]=$,t[33]=k):k=t[33],k},ZF=e=>{const t=Ie.c(4),{title:n}=e;let r;t[0]!==n?(r=typeof n=="string"?y.jsx(In,{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},XF="_full-screen-container_1rm4r_1",J3={fullScreenContainer:XF},KF=se("overflow-hidden luminus-full-screen-container",J3.fullScreenContainer),JF="container-fluid",QF=e=>{const t=Ie.c(45),{title:n,children:r,sideContent:i,sideContentWidth:a,sideContentResizeable:o,noPadding:s,className:l,variant:c,helmet:u,unavailableOnMobile:d}=e,f=a===void 0?250:a,h=o===void 0?!0:o,p=c===void 0?"main":c,{addHelmet:m,removeHelmet:g}=v.useContext(X4),{texts:x}=v.useContext(rn),{container:_}=x,[w,C]=v.useState(f),[b,S]=v.useState(!1);let M;e:switch(p){case"fullScreen":{M=KF;break e}case"main":{M=JF;break e}default:throw new Error(`PageContainer got incorrect variant type: ${p}`)}const $=M;let k,D;t[0]!==m||t[1]!==u||t[2]!==g||t[3]!==n?(k=()=>(u?m(u):typeof n=="string"&&n&&m(n),()=>g()),D=[u,m,g,n],t[0]=m,t[1]=u,t[2]=g,t[3]=n,t[4]=k,t[5]=D):(k=t[4],D=t[5]),v.useEffect(k,D);let T;t[6]===Symbol.for("react.memo_cache_sentinel")?(T={onSwipedLeft:ee=>{ee.velocity>.8&&S(!0)},delta:100},t[6]=T):T=t[6];const E=y0(T),{isMobile:R}=yc(),j=R&&d;let O,A;t[7]!==f?(A=()=>{C(f)},O=[f],t[7]=f,t[8]=O,t[9]=A):(O=t[8],A=t[9]),v.useEffect(A,O);const I=s?"p-0":"p-3";let F;t[10]!==l||t[11]!==I||t[12]!==$?(F=se($,I,l),t[10]=l,t[11]=I,t[12]=$,t[13]=F):F=t[13];let z;t[14]!==i||t[15]!==w||t[16]!==p?(z=p==="fullScreen"?{width:i?`calc(100% - ${w}px)`:"100%"}:void 0,t[14]=i,t[15]=w,t[16]=p,t[17]=z):z=t[17];const L=p==="fullScreen"?J3.fullScreenContainer:void 0;let H;t[18]!==i||t[19]!==w||t[20]!==p?(H=p==="main"?{paddingRight:i?`${w}px`:void 0}:{height:"100%",width:"100%"},t[18]=i,t[19]=w,t[20]=p,t[21]=H):H=t[21];let Y;t[22]!==j||t[23]!==r||t[24]!==_||t[25]!==n?(Y=j?y.jsx(T0,{variant:"warning",children:_.unavailableOnMobile}):y.jsxs(y.Fragment,{children:[n?y.jsx(ZF,{title:n}):null,r]}),t[22]=j,t[23]=r,t[24]=_,t[25]=n,t[26]=Y):Y=t[26];let q;t[27]!==L||t[28]!==H||t[29]!==Y?(q=y.jsx("div",{className:L,style:H,children:Y}),t[27]=L,t[28]=H,t[29]=Y,t[30]=q):q=t[30];let Z;t[31]!==E||t[32]!==F||t[33]!==z||t[34]!==q?(Z=y.jsx("div",{className:F,style:z,...E,children:q}),t[31]=E,t[32]=F,t[33]=z,t[34]=q,t[35]=Z):Z=t[35];let X;t[36]!==j||t[37]!==b||t[38]!==i||t[39]!==h||t[40]!==w?(X=i&&!j?y.jsx(K3,{width:w,isExpandedOnMobileState:[b,S],resizeable:h,onResize:ee=>h?C(ee):{},children:i}):null,t[36]=j,t[37]=b,t[38]=i,t[39]=h,t[40]=w,t[41]=X):X=t[41];let J;return t[42]!==Z||t[43]!==X?(J=y.jsxs(y.Fragment,{children:[Z,X]}),t[42]=Z,t[43]=X,t[44]=J):J=t[44],J};var x0={};x0.match=aB;x0.parse=Q3;var eB=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,tB=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,nB=/^(?:(min|max)-)?(.+)/,rB=/(em|rem|px|cm|mm|in|pt|pc)?$/,iB=/(dpi|dpcm|dppx)?$/;function aB(e,t){return Q3(e).some(function(n){var r=n.inverse,i=n.type==="all"||t.type===n.type;if(i&&r||!(i||r))return!1;var a=n.expressions.every(function(o){var s=o.feature,l=o.modifier,c=o.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=ay(c),u=ay(u);break;case"resolution":c=iy(c),u=iy(u);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":c=ry(c),u=ry(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 a&&!r||!a&&r})}function Q3(e){return e.split(",").map(function(t){t=t.trim();var n=t.match(eB),r=n[1],i=n[2],a=n[3]||"",o={};return o.inverse=!!r&&r.toLowerCase()==="not",o.type=i?i.toLowerCase():"all",a=a.match(/\([^\)]+\)/g)||[],o.expressions=a.map(function(s){var l=s.match(tB),c=l[1].toLowerCase().match(nB);return{modifier:c[1],feature:c[2],value:l[2]}}),o})}function ry(e){var t=Number(e),n;return t||(n=e.match(/^(\d+)\s*\/\s*(\d+)$/),t=n[1]/n[2]),t}function iy(e){var t=parseFloat(e),n=String(e).match(iB)[1];switch(n){case"dpcm":return t/2.54;case"dppx":return t*96;default:return t}}function ay(e){var t=parseFloat(e),n=String(e).match(rB)[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 oB=x0.match,oy=typeof window<"u"?window.matchMedia:null;function sB(e,t,n){var r=this,i;oy&&!n&&(i=oy.call(window,e)),i?(this.matches=i.matches,this.media=i.media,i.addListener(s)):(this.matches=oB(e,t),this.media=e),this.addListener=a,this.removeListener=o,this.dispose=l;function a(c){i&&i.addListener(c)}function o(c){i&&i.removeListener(c)}function s(c){r.matches=c.matches,r.media=c.media}function l(){i&&i.removeListener(s)}}function lB(e,t,n){return new sB(e,t,n)}var cB=lB;const uB=nn(cB);var dB=/[A-Z]/g,fB=/^ms-/,sp={};function hB(e){return"-"+e.toLowerCase()}function eC(e){if(sp.hasOwnProperty(e))return sp[e];var t=e.replace(dB,hB);return sp[e]=fB.test(t)?"-"+t:t}function pB(e,t){if(e===t)return!0;if(!e||!t)return!1;const n=Object.keys(e),r=Object.keys(t),i=n.length;if(r.length!==i)return!1;for(let a=0;a<i;a++){const o=n[a];if(e[o]!==t[o]||!Object.prototype.hasOwnProperty.call(t,o))return!1}return!0}const jn=xe.oneOfType([xe.string,xe.number]),tC={all:xe.bool,grid:xe.bool,aural:xe.bool,braille:xe.bool,handheld:xe.bool,print:xe.bool,projection:xe.bool,screen:xe.bool,tty:xe.bool,tv:xe.bool,embossed:xe.bool},mB={orientation:xe.oneOf(["portrait","landscape"]),scan:xe.oneOf(["progressive","interlace"]),aspectRatio:xe.string,deviceAspectRatio:xe.string,height:jn,deviceHeight:jn,width:jn,deviceWidth:jn,color:xe.bool,colorIndex:xe.bool,monochrome:xe.bool,resolution:jn,type:Object.keys(tC)},{type:Ohe,...gB}=mB,vB={minAspectRatio:xe.string,maxAspectRatio:xe.string,minDeviceAspectRatio:xe.string,maxDeviceAspectRatio:xe.string,minHeight:jn,maxHeight:jn,minDeviceHeight:jn,maxDeviceHeight:jn,minWidth:jn,maxWidth:jn,minDeviceWidth:jn,maxDeviceWidth:jn,minColor:xe.number,maxColor:xe.number,minColorIndex:xe.number,maxColorIndex:xe.number,minMonochrome:xe.number,maxMonochrome:xe.number,minResolution:jn,maxResolution:jn,...gB},bB={...tC,...vB};var yB={all:bB};const xB=e=>`not ${e}`,wB=(e,t)=>{const n=eC(e);return typeof t=="number"&&(t=`${t}px`),t===!0?n:t===!1?xB(n):`(${n}: ${t})`},_B=e=>e.join(" and "),CB=e=>{const t=[];return Object.keys(yB.all).forEach(n=>{const r=e[n];r!=null&&t.push(wB(n,r))}),_B(t)},SB=v.createContext(void 0),TB=e=>e.query||CB(e),sy=e=>e?Object.keys(e).reduce((n,r)=>(n[eC(r)]=e[r],n),{}):void 0,nC=()=>{const e=v.useRef(!1);return v.useEffect(()=>{e.current=!0},[]),e.current},$B=e=>{const t=v.useContext(SB),n=()=>sy(e)||sy(t),[r,i]=v.useState(n);return v.useEffect(()=>{const a=n();pB(r,a)||i(a)},[e,t]),r},kB=e=>{const t=()=>TB(e),[n,r]=v.useState(t);return v.useEffect(()=>{const i=t();n!==i&&r(i)},[e]),n},MB=(e,t)=>{const n=()=>uB(e,t||{},!!t),[r,i]=v.useState(n),a=nC();return v.useEffect(()=>{if(a){const o=n();return i(o),()=>{o&&o.dispose()}}},[e,t]),r},EB=e=>{const[t,n]=v.useState(e.matches);return v.useEffect(()=>{const r=i=>{n(i.matches)};return e.addListener(r),n(e.matches),()=>{e.removeListener(r)}},[e]),t},lp=(e,t,n)=>{const r=$B(t),i=kB(e);if(!i)throw new Error("Invalid or missing MediaQuery!");const a=MB(i,r),o=EB(a);return nC(),v.useEffect(()=>{},[o]),v.useEffect(()=>()=>{a&&a.dispose()},[]),o},OB=["sm","md","lg","always"],rC="ResponsiveContextDropdownItem",AB=e=>e.type.displayName===rC,w0=e=>({});w0.displayName=rC;function RB(e){return e.type&&e.type===v.Fragment}const iC=e=>{const t=[];Array.isArray(e)?t.push(...e):t.push(e);const n=[];return t.forEach(r=>{if(r){if(RB(r)){n.push(...iC(r.props.children));return}n.push(r)}}),n},DB=(e,t)=>{if(t===void 0)return e;const{searchQueryString:n,...r}=t;return ss.generatePath(e,r)+"?"+n},jB="_disabled_9mp5v_1",IB={disabled:jB},NB=()=>{const e=Ie.c(5),{ProjectIconComponent:t}=v.useContext(rn),{checkUserHasPermissions:n}=Y4();let r;e[0]!==t||e[1]!==n?(r=(o,s)=>{const l=[],c=[];let u=null;const d=h=>{const{hideOn:p,children:m,cKey:g,to:x,toRoute:_,disabled:w,icon:C,pathParams:b,...S}=h.props,M=(_==null?void 0:_.permissions)!=null,$=(_==null?void 0:_.permissions)!=null&&n(_==null?void 0:_.permissions),k=(w??!1)||M&&!$,D=x??(_==null?void 0:DB(_==null?void 0:_.route,b)),T=m??(_==null?void 0:_.name),E=C??(_!=null?y.jsx(t,{icon:"link"}):void 0);if(p==="always"||OB.indexOf(p)>=s){u&&c.length>0&&c.push(u),u=null;const R=se(S.className,{[IB.disabled]:k});D!=null?c.push(y.jsx(Ca,{...S,as:"link",to:D,disabled:k,icon:E,className:R,children:T},g)):c.push(y.jsx(Ca,{...S,icon:E,className:R,children:T},g))}else{const R=D!=null?{as:"link",href:D}:{};l.push(y.jsx(tf,{...S,...R,icon:E,className:se(k?"disabled":void 0,S.className),children:T},g))}};return iC(o).forEach(h=>{h&&v.isValidElement(h)&&(AB(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 a;return e[3]!==i?(a={getProcessedChildren:i},e[3]=i,e[4]=a):a=e[4],a},aC=e=>{const t=Ie.c(18),{children:n}=e,{getProcessedChildren:r}=NB();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i={maxWidth:768},t[0]=i):i=t[0];const a=lp(i);let o;t[1]===Symbol.for("react.memo_cache_sentinel")?(o={minWidth:769,maxWidth:1200},t[1]=o):o=t[1];const s=lp(o);let l;t[2]===Symbol.for("react.memo_cache_sentinel")?(l={minWidth:1201},t[2]=l):l=t[2];const c=lp(l);let u;t[3]!==c||t[4]!==s||t[5]!==a?(u=[a,s,c],t[3]=c,t[4]=s,t[5]=a,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 m;t[11]!==h?(m=y.jsx(y.Fragment,{children:h}),t[11]=h,t[12]=m):m=t[12];let g;t[13]!==p?(g=p.length>0?y.jsx(o0,{toggle:y.jsx(a0,{as:i0}),children:p}):null,t[13]=p,t[14]=g):g=t[14];let x;return t[15]!==m||t[16]!==g?(x=y.jsxs("div",{className:"d-flex gap-1",children:[m,g]}),t[15]=m,t[16]=g,t[17]=x):x=t[17],x};aC.Item=w0;const PB=v.createContext(void 0);function LB(e,t,n,r){var i=this,a=v.useRef(null),o=v.useRef(0),s=v.useRef(0),l=v.useRef(null),c=v.useRef([]),u=v.useRef(),d=v.useRef(),f=v.useRef(e),h=v.useRef(!0);f.current=e;var p=typeof window<"u",m=!t&&t!==0&&p;if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var g=!!(n=n||{}).leading,x=!("trailing"in n)||!!n.trailing,_="maxWait"in n,w="debounceOnServer"in n&&!!n.debounceOnServer,C=_?Math.max(+n.maxWait||0,t):null;v.useEffect(function(){return h.current=!0,function(){h.current=!1}},[]);var b=v.useMemo(function(){var S=function(R){var j=c.current,O=u.current;return c.current=u.current=null,o.current=R,s.current=s.current||R,d.current=f.current.apply(O,j)},M=function(R,j){m&&cancelAnimationFrame(l.current),l.current=m?requestAnimationFrame(R):setTimeout(R,j)},$=function(R){if(!h.current)return!1;var j=R-a.current;return!a.current||j>=t||j<0||_&&R-o.current>=C},k=function(R){return l.current=null,x&&c.current?S(R):(c.current=u.current=null,d.current)},D=function R(){var j=Date.now();if(g&&s.current===o.current&&T(),$(j))return k(j);if(h.current){var O=t-(j-a.current),A=_?Math.min(O,C-(j-o.current)):O;M(R,A)}},T=function(){r&&r({})},E=function(){if(p||w){var R=Date.now(),j=$(R);if(c.current=[].slice.call(arguments),u.current=i,a.current=R,j){if(!l.current&&h.current)return o.current=a.current,M(D,t),g?S(a.current):d.current;if(_)return M(D,t),S(a.current)}return l.current||M(D,t),d.current}};return E.cancel=function(){var R=l.current;R&&(m?cancelAnimationFrame(l.current):clearTimeout(l.current)),o.current=0,c.current=a.current=u.current=l.current=null,R&&r&&r({})},E.isPending=function(){return!!l.current},E.flush=function(){return l.current?k(Date.now()):d.current},E},[g,_,t,C,x,m,p,w,r]);return b}function FB(e,t){return e===t}function _0(e,t,n){var r=n&&n.equalityFn||FB,i=v.useRef(e),a=v.useState({})[1],o=LB(v.useCallback(function(l){i.current=l,a({})},[a]),t,n,a),s=v.useRef(e);return r(s.current,e)||(o(e),s.current=e),[i.current,o]}const BB="_feedback_esh1j_1",zB="_feedback-spacer_esh1j_8",ly={feedback:BB,feedbackSpacer:zB},uf=e=>{const t=Ie.c(9),{message:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=se("invalid-feedback luminus-invalid-feedback",ly.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 a;t[3]===Symbol.for("react.memo_cache_sentinel")?(a=se("invalid-feedback-spacer",ly.feedbackSpacer),t[3]=a):a=t[3];let o;t[4]!==n?(o=y.jsx("div",{className:a,children:n}),t[4]=n,t[5]=o):o=t[5];let s;return t[6]!==i||t[7]!==o?(s=y.jsxs(y.Fragment,{children:[i,o]}),t[6]=i,t[7]=o,t[8]=s):s=t[8],s},WB="_wrapper_1mvyk_1",UB="_open_1mvyk_9",HB="_dropdown_1mvyk_13",VB="_search-input-container_1mvyk_19",qB="_search-input_1mvyk_19",YB="_loading-container_1mvyk_25",GB="_items-container_1mvyk_32",ZB="_header-row_1mvyk_38",XB="_name_1mvyk_49",KB="_item_1mvyk_32",JB="_column-item_1mvyk_65",QB="_action-buttons-container_1mvyk_89",ez="_reverse_1mvyk_97",tz="_action-button_1mvyk_89",nz="_actions-dropdown_1mvyk_110",bn={wrapper:WB,open:UB,dropdown:HB,searchInputContainer:VB,searchInput:qB,loadingContainer:YB,itemsContainer:GB,headerRow:ZB,name:XB,item:KB,columnItem:JB,actionButtonsContainer:QB,reverse:ez,actionButton:tz,actionsDropdown:nz},oC=({show:e,onCancel:t,items:n,suggestedItems:r,suggestedItemsTitle:i,currentSelection:a,onSelectionChange:o,onSearchQueryChange:s,texts:l,itemsNameWidth:c,additionalColumns:u,displayIdAsName:d=!1,autoHideSearch:f=!1,allItemsLength:h,disabled:p,isLoading:m=!1,inputRef:g,archiveColumn:x="archive",addNewOptionPath:_,refreshOptions:w,noRemoveButton:C=!1,customEllipsisOptions:b})=>{var Me;const{texts:{customSelect:S}}=v.useContext(rn),M=v.useRef(null),$=v.useRef(null),k=v.useRef(null),D=v.useRef(null),T=v.useRef(null),[E,R]=v.useState(""),[j]=_0(E,500),[,O]=v.useState(!1),{copyToClipboard:A}=Z4(),I=(Me=g.current)==null?void 0:Me.getBoundingClientRect(),F=(I==null?void 0:I.x)??0,z=((I==null?void 0:I.x)??0)+((I==null?void 0:I.width)??0),L=(I==null?void 0:I.y)??0,H=((I==null?void 0:I.y)??0)+((I==null?void 0:I.height)??0),Y=(I==null?void 0:I.width)??0,q=(I==null?void 0:I.height)??0,Z=5,{isMobile:X}=yc(),J=8,ee=v.useMemo(()=>F?F>window.innerWidth/2-J:!1,[F]),W=v.useMemo(()=>L?L>window.innerHeight/2-J:!1,[L]);v.useEffect(()=>{var ce;e&&((ce=k.current)==null||ce.focus())},[k,e]),v.useEffect(()=>{e||R("")},[e]),v.useEffect(()=>{s&&s(j)},[j,s]);const[P,B]=v.useState(null);v.useEffect(()=>{e&&n.length>0?B(0):B(null)},[n,e]);const V=v.useMemo(()=>P!==null?n.at(P)??null:null,[P,n]),N=v.useCallback((ce,de)=>{var Ge,we;const Ce=document.getElementById(`item-${ce}`);if(Ce){const ve=Ce.clientHeight??0;de==="down"?(Ge=D.current)==null||Ge.scrollBy({left:0,top:ve,behavior:"smooth"}):(we=D.current)==null||we.scrollBy({left:0,top:-ve,behavior:"smooth"})}},[]),te=v.useCallback(ce=>{if(P===null||p)return;const de=P+ce;de<0||de>=n.length||B(Ce=>(Ce!==null&&N(Ce,ce>0?"down":"up"),de))},[P,n,p,N]),K=v.useCallback(ce=>{if(e)switch(ce.key){case"Escape":ce.stopPropagation(),ce.preventDefault(),t();break;case"Enter":ce.stopPropagation(),ce.preventDefault(),p||o(V);break;case"ArrowUp":ce.stopPropagation(),ce.preventDefault(),te(-1);break;case"ArrowDown":ce.stopPropagation(),ce.preventDefault(),te(1);break}},[t,e,te,V,p,o]),G=v.useCallback(()=>{O(ce=>!ce)},[]);v.useEffect(()=>(window.addEventListener("scroll",G),()=>{window.removeEventListener("scroll",G)}),[G]),v.useEffect(()=>(window.addEventListener("resize",G),()=>{window.removeEventListener("resize",G)}),[G]),G4(K),q4([M,$,T],t);const oe=c??(u&&u.length>0?250:0),ne=(u==null?void 0:u.reduce((ce,de)=>ce+(de.width??100),0))??0,re=v.useMemo(()=>(a&&e&&!p&&!C)??!1,[a,e,p,C]),ae=v.useMemo(()=>(a&&e)??!1,[a,e]),le=v.useMemo(()=>e&&(ae||_!==void 0||w!==void 0||b!=null&&b.length>0),[e,ae,_,w,b]),ye=32,ge=X?`calc(100vw - ${ye}px)`:`calc(max(${Y}px, calc(${oe}px + ${ne}px)))`,be=v.useMemo(()=>(E.length<1&&r&&r.length>0?r:n).map(ce=>{var de,Ce;return d?((de=ce.id)==null?void 0:de.toString())??"":((Ce=ce.name)==null?void 0:Ce.toString())??""}).reduce((ce,de)=>ce.length>de.length?ce:de,""),[E,r,n,d]);return y.jsxs(y.Fragment,{children:[y.jsx(sC,{show:e,onClick:t}),y.jsxs("div",{className:se("luminus-dropdown-picker-actions",bn.actionButtonsContainer,{[bn.reverse]:ee}),style:{top:`calc(${L}px + ${q/2}px - 12px)`,left:ee?re&&ae?`calc(${F}px - 24px - 8px - 24px - 4px)`:`calc(${F}px - 24px - 8px)`:`calc(${z}px + 8px)`},children:[re&&y.jsx("button",{ref:$,type:"button",className:se("luminus-dropdown-picker-clear-button",bn.actionButton),onClick:()=>!p&&o(null),children:y.jsx(In,{variant:"caption",className:"text-danger",children:y.jsx(D_,{size:16})})}),le?y.jsx("div",{ref:T,children:y.jsxs(o0,{toggle:y.jsx(a0,{as:i0,className:se("luminus-dropdown-picker-actions-dropdown",bn.actionsDropdown),icon:y.jsx(In,{variant:"caption",className:"text-primary",children:y.jsx(I_,{size:16})})}),children:[ae?y.jsx(Ca,{icon:y.jsx(gE,{}),onClick:()=>{var ce,de;A(d?((ce=a==null?void 0:a.id)==null?void 0:ce.toString())??"":((de=a==null?void 0:a.name)==null?void 0:de.toString())??"")},children:S.copySelection}):null,ae&&(_||w)?y.jsx(gm,{}):null,_?y.jsx(Ca,{icon:y.jsx(mE,{}),onClick:()=>{window.open(_,"_blank")},children:S.addNewOption}):null,w?y.jsx(Ca,{icon:y.jsx($E,{}),onClick:()=>{w()},children:S.refreshOptions}):null,b&&b.length>0?y.jsx(gm,{}):null,b==null?void 0:b.map(ce=>y.jsxs(Ca,{onClick:()=>{ce.onClick(),t()},children:[ce.icon??null,ce.label]},ce.label))]})}):null]}),y.jsx("div",{className:se("luminus-dropdown-picker",bn.wrapper,{[bn.open]:e}),style:{top:W?`calc(${L}px - 50vh - 8px)`:`calc(${H}px + 8px)`,left:X?`${ye/2}px`:ee?`calc(${z}px - ${ge})`:F,right:X?`${ye/2}px`:ee?`${z}px`:`calc(${F}px + ${ge})`,width:ge,justifyContent:W?"flex-end":"flex-start"},children:y.jsx("div",{ref:M,className:se("shadow rounded",bn.dropdown),children:!p&&y.jsxs(y.Fragment,{children:[!s||f&&(h??n.length)<=Z?null:y.jsx("div",{className:se("search-input-container border-bottom",bn.searchInputContainer),children:y.jsx(Gr.Control,{ref:k,type:"search",size:"sm",className:bn.searchInput,placeholder:l.searchPlaceholder,value:E,onChange:ce=>{var de;return R(((de=ce.target)==null?void 0:de.value)??"")}})}),E.length<1&&r&&r.length>0?y.jsx(T0,{variant:"info",size:"sm",children:i??S.suggestedItemsTitle}):null,m?y.jsx("div",{className:bn.loadingContainer,children:y.jsx(zg,{animation:"border",variant:"primary"})}):(E.length<1&&r&&(r==null?void 0:r.length)>0||n.length>0)&&y.jsxs("div",{ref:D,className:se("items",bn.itemsContainer),children:[u&&u.length>0&&y.jsxs("div",{className:se("header-row border-bottom",bn.headerRow),children:[y.jsx("div",{className:bn.name,children:y.jsx(In,{variant:"body2",children:be})}),u==null?void 0:u.filter(ce=>ce.key!==x).map(ce=>y.jsx("div",{className:bn.columnItem,style:{width:`${ce.width??100}px`,minWidth:`${ce.width??100}px`,maxWidth:`${ce.width??100}px`},children:y.jsx(In,{variant:"caption",children:ce.name})},ce.key))]}),(E.length<1&&r&&r.length>0?r:n).map((ce,de)=>y.jsxs("button",{id:`item-${de}`,type:"button",className:se("item cursor-pointer",bn.item,{[bn.focused]:P===de},{focused:P===de},{archive:ce.additionalColumns?ce.additionalColumns[x]:!1}),onClick:()=>!p&&o(ce),onMouseEnter:()=>B(de),children:[y.jsx("div",{className:bn.name,children:y.jsx(In,{variant:"body2",children:d?ce.id:ce.name})}),u==null?void 0:u.filter(Ce=>Ce.key!==x).map(Ce=>y.jsx("div",{className:bn.columnItem,style:{width:`${Ce.width??100}px`,minWidth:`${Ce.width??100}px`,maxWidth:`${Ce.width??100}px`},children:y.jsx(In,{variant:"caption",className:se("text-muted"),children:ce.additionalColumns&&ce.additionalColumns[Ce.key]})},Ce.key))]},ce.id))]})]})})})]})},rz="_backdrop_3huvf_1",iz="_show_3huvf_11",cy={backdrop:rz,show:iz},sC=e=>{const t=Ie.c(7),{show:n,onClick:r}=e;let i;t[0]!==n?(i=se("luminus-backdrop",cy.backdrop,{[cy.show]:n}),t[0]=n,t[1]=i):i=t[1];let a;t[2]!==r?(a=()=>r&&r(),t[2]=r,t[3]=a):a=t[3];let o;return t[4]!==i||t[5]!==a?(o=y.jsx("div",{className:i,onClick:a}),t[4]=i,t[5]=a,t[6]=o):o=t[6],o};var C0={},Tc={};Object.defineProperty(Tc,"__esModule",{value:!0});Tc.bind=void 0;function az(e,t){var n=t.type,r=t.listener,i=t.options;return e.addEventListener(n,r,i),function(){e.removeEventListener(n,r,i)}}Tc.bind=az;var df={},Eo=Hn&&Hn.__assign||function(){return Eo=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},Eo.apply(this,arguments)};Object.defineProperty(df,"__esModule",{value:!0});df.bindAll=void 0;var oz=Tc;function uy(e){if(!(typeof e>"u"))return typeof e=="boolean"?{capture:e}:e}function sz(e,t){if(t==null)return e;var n=Eo(Eo({},e),{options:Eo(Eo({},uy(t)),uy(e.options))});return n}function lz(e,t,n){var r=t.map(function(i){var a=sz(i,n);return(0,oz.bind)(e,a)});return function(){r.forEach(function(a){return a()})}}df.bindAll=lz;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.bindAll=e.bind=void 0;var t=Tc;Object.defineProperty(e,"bind",{enumerable:!0,get:function(){return t.bind}});var n=df;Object.defineProperty(e,"bindAll",{enumerable:!0,get:function(){return n.bindAll}})})(C0);function lC(e){var t=null;return function(){if(!t){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];var o=e.apply(this,i);t={result:o}}return t.result}}var S0=lC(function(){if(process.env.NODE_ENV==="test")return!1;var t=navigator,n=t.userAgent;return n.includes("AppleWebKit")&&!n.includes("Chrome")}),Sm={isLeavingWindow:Symbol("leaving"),isEnteringWindow:Symbol("entering")};function cz(e){var t=e.dragLeave;return S0()?t.hasOwnProperty(Sm.isLeavingWindow):!1}(function(){if(typeof window>"u"||process.env.NODE_ENV==="test"||!S0())return;function t(){return{enterCount:0,isOverWindow:!1}}var n=t();function r(){n=t()}C0.bindAll(window,[{type:"dragstart",listener:function(){n.enterCount=0,n.isOverWindow=!0}},{type:"drop",listener:r},{type:"dragend",listener:r},{type:"dragenter",listener:function(a){!n.isOverWindow&&n.enterCount===0&&(a[Sm.isEnteringWindow]=!0),n.isOverWindow=!0,n.enterCount++}},{type:"dragleave",listener:function(a){n.enterCount--,n.isOverWindow&&n.enterCount===0&&(a[Sm.isLeavingWindow]=!0,n.isOverWindow=!1)}}],{capture:!0})})();var uz=function(t){var n=[],r=null,i=function(){for(var o=arguments.length,s=new Array(o),l=0;l<o;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},cp=uz(function(e){return e()}),iu=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 dz(e){var t=e.source,n=e.initial,r=e.dispatchEvent,i={dropTargets:[]};function a(s){r(s),i={dropTargets:s.payload.location.current.dropTargets}}var o={start:function(l){var c=l.nativeSetDragImage,u={current:n,previous:i,initial:n};a({eventName:"onGenerateDragPreview",payload:{source:t,location:u,nativeSetDragImage:c}}),iu.schedule(function(){a({eventName:"onDragStart",payload:{source:t,location:u}})})},dragUpdate:function(l){var c=l.current;iu.flush(),cp.cancel(),a({eventName:"onDropTargetChange",payload:{source:t,location:{initial:n,previous:i,current:c}}})},drag:function(l){var c=l.current;cp(function(){iu.flush();var u={initial:n,previous:i,current:c};a({eventName:"onDrag",payload:{source:t,location:u}})})},drop:function(l){var c=l.current,u=l.updatedSourcePayload;iu.flush(),cp.cancel(),a({eventName:"onDrop",payload:{source:u??t,location:{current:c,previous:i,initial:n}}})}};return o}const T0=e=>{const{variant:t,children:n,className:r,size:i="md",typographyVariant:a=i==="sm"?"body2":"body",...o}={...e};return y.jsx($k,{variant:t,className:`text-center ${i==="sm"?"p-1":i==="md"?"p-3":"p-4"} bg-${t} bg-opacity-10 border-none ${r??""}`,...o,children:y.jsx(In,{variant:a,children:n})})};var $0=kc(),rt=e=>$c(e,$0),k0=kc();rt.write=e=>$c(e,k0);var ff=kc();rt.onStart=e=>$c(e,ff);var M0=kc();rt.onFrame=e=>$c(e,M0);var E0=kc();rt.onFinish=e=>$c(e,E0);var No=[];rt.setTimeout=(e,t)=>{const n=rt.now()+t,r=()=>{const a=No.findIndex(o=>o.cancel==r);~a&&No.splice(a,1),Bi-=~a?1:0},i={time:n,handler:e,cancel:r};return No.splice(cC(n),0,i),Bi+=1,uC(),i};var cC=e=>~(~No.findIndex(t=>t.time>e)||~No.length);rt.cancel=e=>{ff.delete(e),M0.delete(e),E0.delete(e),$0.delete(e),k0.delete(e)};rt.sync=e=>{Tm=!0,rt.batchedUpdates(e),Tm=!1};rt.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...i){t=i,rt.onStart(n)}return r.handler=e,r.cancel=()=>{ff.delete(n),t=null},r};var O0=typeof window<"u"?window.requestAnimationFrame:()=>{};rt.use=e=>O0=e;rt.now=typeof performance<"u"?()=>performance.now():Date.now;rt.batchedUpdates=e=>e();rt.catch=console.error;rt.frameLoop="always";rt.advance=()=>{rt.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):fC()};var Fi=-1,Bi=0,Tm=!1;function $c(e,t){Tm?(t.delete(e),e(0)):(t.add(e),uC())}function uC(){Fi<0&&(Fi=0,rt.frameLoop!=="demand"&&O0(dC))}function fz(){Fi=-1}function dC(){~Fi&&(O0(dC),rt.batchedUpdates(fC))}function fC(){const e=Fi;Fi=rt.now();const t=cC(Fi);if(t&&(hC(No.splice(0,t),n=>n.handler()),Bi-=t),!Bi){fz();return}ff.flush(),$0.flush(e?Math.min(64,Fi-e):16.667),M0.flush(),k0.flush(),E0.flush()}function kc(){let e=new Set,t=e;return{add(n){Bi+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return Bi-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,Bi-=t.size,hC(t,r=>r(n)&&e.add(r)),Bi+=e.size,t=e)}}}function hC(e,t){e.forEach(n=>{try{t(n)}catch(r){rt.catch(r)}})}var hz=Object.defineProperty,pz=(e,t)=>{for(var n in t)hz(e,n,{get:t[n],enumerable:!0})},$r={};pz($r,{assign:()=>gz,colors:()=>Ui,createStringInterpolator:()=>R0,skipAnimation:()=>mC,to:()=>pC,willAdvance:()=>D0});function $m(){}var mz=(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 ai(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 Xe=(e,t)=>e.forEach(t);function Hr(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 Nn=e=>pe.und(e)?[]:pe.arr(e)?e:[e];function hl(e,t){if(e.size){const n=Array.from(e);e.clear(),Xe(n,t)}}var al=(e,...t)=>hl(e,n=>n(...t)),A0=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),R0,pC,Ui=null,mC=!1,D0=$m,gz=e=>{e.to&&(pC=e.to),e.now&&(rt.now=e.now),e.colors!==void 0&&(Ui=e.colors),e.skipAnimation!=null&&(mC=e.skipAnimation),e.createStringInterpolator&&(R0=e.createStringInterpolator),e.requestAnimationFrame&&rt.use(e.requestAnimationFrame),e.batchedUpdates&&(rt.batchedUpdates=e.batchedUpdates),e.willAdvance&&(D0=e.willAdvance),e.frameLoop&&(rt.frameLoop=e.frameLoop)},pl=new Set,sr=[],up=[],td=0,hf={get idle(){return!pl.size&&!sr.length},start(e){td>e.priority?(pl.add(e),rt.onStart(vz)):(gC(e),rt(km))},advance:km,sort(e){if(td)rt.onFrame(()=>hf.sort(e));else{const t=sr.indexOf(e);~t&&(sr.splice(t,1),vC(e))}},clear(){sr=[],pl.clear()}};function vz(){pl.forEach(gC),pl.clear(),rt(km)}function gC(e){sr.includes(e)||vC(e)}function vC(e){sr.splice(bz(sr,t=>t.priority>e.priority),0,e)}function km(e){const t=up;for(let n=0;n<sr.length;n++){const r=sr[n];td=r.priority,r.idle||(D0(r),r.advance(e),r.idle||t.push(r))}return td=0,up=sr,up.length=0,sr=t,sr.length>0}function bz(e,t){const n=e.findIndex(t);return n<0?e.length:n}var yz={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},_r="[-+]?\\d*\\.?\\d+",nd=_r+"%";function pf(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var xz=new RegExp("rgb"+pf(_r,_r,_r)),wz=new RegExp("rgba"+pf(_r,_r,_r,_r)),_z=new RegExp("hsl"+pf(_r,nd,nd)),Cz=new RegExp("hsla"+pf(_r,nd,nd,_r)),Sz=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Tz=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,$z=/^#([0-9a-fA-F]{6})$/,kz=/^#([0-9a-fA-F]{8})$/;function Mz(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=$z.exec(e))?parseInt(t[1]+"ff",16)>>>0:Ui&&Ui[e]!==void 0?Ui[e]:(t=xz.exec(e))?(bo(t[1])<<24|bo(t[2])<<16|bo(t[3])<<8|255)>>>0:(t=wz.exec(e))?(bo(t[1])<<24|bo(t[2])<<16|bo(t[3])<<8|hy(t[4]))>>>0:(t=Sz.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=kz.exec(e))?parseInt(t[1],16)>>>0:(t=Tz.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=_z.exec(e))?(dy(fy(t[1]),au(t[2]),au(t[3]))|255)>>>0:(t=Cz.exec(e))?(dy(fy(t[1]),au(t[2]),au(t[3]))|hy(t[4]))>>>0:null}function dp(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 dy(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,a=dp(i,r,e+1/3),o=dp(i,r,e),s=dp(i,r,e-1/3);return Math.round(a*255)<<24|Math.round(o*255)<<16|Math.round(s*255)<<8}function bo(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function fy(e){return(parseFloat(e)%360+360)%360/360}function hy(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function au(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function py(e){let t=Mz(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,i=(t&65280)>>>8,a=(t&255)/255;return`rgba(${n}, ${r}, ${i}, ${a})`}var zl=(e,t,n)=>{if(pe.fun(e))return e;if(pe.arr(e))return zl({range:e,output:t,extrapolate:n});if(pe.str(e.output[0]))return R0(e);const r=e,i=r.output,a=r.range||[0,1],o=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(c=>c);return c=>{const u=Oz(c,a);return Ez(c,a[u],a[u+1],i[u],i[u+1],l,o,s,r.map)}};function Ez(e,t,n,r,i,a,o,s,l){let c=l?l(e):e;if(c<t){if(o==="identity")return c;o==="clamp"&&(c=t)}if(c>n){if(s==="identity")return c;s==="clamp"&&(c=n)}return r===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=a(c),r===-1/0?c=-c:i===1/0?c=c+r:c=c*(i-r)+r,c)}function Oz(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var Az={linear:e=>e},Wl=Symbol.for("FluidValue.get"),ns=Symbol.for("FluidValue.observers"),or=e=>!!(e&&e[Wl]),Bn=e=>e&&e[Wl]?e[Wl]():e,my=e=>e[ns]||null;function Rz(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Ul(e,t){const n=e[ns];n&&n.forEach(r=>{Rz(r,t)})}var bC=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Dz(this,e)}},Dz=(e,t)=>yC(e,Wl,t);function vs(e,t){if(e[Wl]){let n=e[ns];n||yC(e,ns,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Hl(e,t){const n=e[ns];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[ns]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var yC=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Su=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,jz=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,gy=new RegExp(`(${Su.source})(%|[a-z]+)`,"i"),Iz=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,mf=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,xC=e=>{const[t,n]=Nz(e);if(!t||A0())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&&mf.test(n))return xC(n);if(n)return n}return e},Nz=e=>{const t=mf.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},fp,Pz=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,wC=e=>{fp||(fp=Ui?new RegExp(`(${Object.keys(Ui).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(a=>Bn(a).replace(mf,xC).replace(jz,py).replace(fp,py)),n=t.map(a=>a.match(Su).map(Number)),i=n[0].map((a,o)=>n.map(s=>{if(!(o in s))throw Error('The arity of each "output" value must be equal');return s[o]})).map(a=>zl({...e,output:a}));return a=>{var l;const o=!gy.test(t[0])&&((l=t.find(c=>gy.test(c)))==null?void 0:l.replace(Su,""));let s=0;return t[0].replace(Su,()=>`${i[s++](a)}${o||""}`).replace(Iz,Pz)}},j0="react-spring: ",_C=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${j0}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},Lz=_C(console.warn);function Fz(){Lz(`${j0}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var Bz=_C(console.warn);function zz(){Bz(`${j0}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 gf(e){return pe.str(e)&&(e[0]=="#"||/\d/.test(e)||!A0()&&mf.test(e)||e in(Ui||{}))}var Sa=A0()?v.useEffect:v.useLayoutEffect,Wz=()=>{const e=v.useRef(!1);return Sa(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function I0(){const e=v.useState()[1],t=Wz();return()=>{t.current&&e(Math.random())}}var N0=e=>v.useEffect(e,Uz),Uz=[];function Mm(e){const t=v.useRef(void 0);return v.useEffect(()=>{t.current=e}),t.current}var Vl=Symbol.for("Animated:node"),Hz=e=>!!e&&e[Vl]===e,jr=e=>e&&e[Vl],P0=(e,t)=>mz(e,Vl,t),vf=e=>e&&e[Vl]&&e[Vl].getPayload(),CC=class{constructor(){P0(this,this)}getPayload(){return this.payload||[]}},bf=class SC extends CC{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 SC(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)}},rd=class TC extends bf{constructor(t){super(0),this._string=null,this._toString=zl({output:[t,t]})}static create(t){return new TC(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=zl({output:[this.getValue(),t]})),this._value=0,super.reset()}},id={dependencies:null},yf=class extends CC{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Hr(this.source,(n,r)=>{Hz(n)?t[r]=n.getValue(e):or(n)?t[r]=Bn(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Xe(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return Hr(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){id.dependencies&&or(e)&&id.dependencies.add(e);const t=vf(e);t&&Xe(t,n=>this.add(n))}},Vz=class $C extends yf{constructor(t){super(t)}static create(t){return new $C(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(qz)),!0)}};function qz(e){return(gf(e)?rd:bf).create(e)}function Em(e){const t=jr(e);return t?t.constructor:pe.arr(e)?Vz:gf(e)?rd:bf}var vy=(e,t)=>{const n=!pe.fun(e)||e.prototype&&e.prototype.isReactComponent;return v.forwardRef((r,i)=>{const a=v.useRef(null),o=n&&v.useCallback(p=>{a.current=Zz(i,p)},[i]),[s,l]=Gz(r,t),c=I0(),u=()=>{const p=a.current;if(n&&!p)return;(p?t.applyAnimatedValues(p,s.getValue(!0)):!1)===!1&&c()},d=new Yz(u,l),f=v.useRef(void 0);Sa(()=>(f.current=d,Xe(l,p=>vs(p,d)),()=>{f.current&&(Xe(f.current.deps,p=>Hl(p,f.current)),rt.cancel(f.current.update))})),v.useEffect(u,[]),N0(()=>()=>{const p=f.current;Xe(p.deps,m=>Hl(m,p))});const h=t.getComponentProps(s.getValue());return fe.createElement(e,{...h,ref:o})})},Yz=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&rt.write(this.update)}};function Gz(e,t){const n=new Set;return id.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new yf(e),id.dependencies=null,[e,n]}function Zz(e,t){return e&&(pe.fun(e)?e(t):e.current=t),t}var by=Symbol.for("AnimatedComponent"),Xz=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=i=>new yf(i),getComponentProps:r=i=>i}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},a=o=>{const s=yy(o)||"Anonymous";return pe.str(o)?o=a[o]||(a[o]=vy(o,i)):o=o[by]||(o[by]=vy(o,i)),o.displayName=`Animated(${s})`,o};return Hr(e,(o,s)=>{pe.arr(e)&&(s=yy(o)),a[s]=a(o)}),{animated:a}},yy=e=>pe.str(e)?e:e&&pe.str(e.displayName)?e.displayName:pe.fun(e)&&e.name||null;function zn(e,...t){return pe.fun(e)?e(...t):e}var ml=(e,t)=>e===!0||!!(t&&e&&(pe.fun(e)?e(t):Nn(e).includes(t))),kC=(e,t)=>pe.obj(e)?t&&e[t]:e,MC=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,Kz=e=>e,xf=(e,t=Kz)=>{let n=Jz;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const i of n){const a=t(e[i],i);pe.und(a)||(r[i]=a)}return r},Jz=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Qz={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 eW(e){const t={};let n=0;if(Hr(e,(r,i)=>{Qz[i]||(t[i]=r,n++)}),n)return t}function L0(e){const t=eW(e);if(t){const n={to:t};return Hr(e,(r,i)=>i in t||(n[i]=r)),n}return{...e}}function ql(e){return e=Bn(e),pe.arr(e)?e.map(ql):gf(e)?$r.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function EC(e){for(const t in e)return!0;return!1}function Om(e){return pe.fun(e)||pe.arr(e)&&pe.obj(e[0])}function Am(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function OC(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var AC={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}},Rm={...AC.default,mass:1,damping:1,easing:Az.linear,clamp:!1},tW=class{constructor(){this.velocity=0,Object.assign(this,Rm)}};function nW(e,t,n){n&&(n={...n},xy(n,t),t={...n,...t}),xy(e,t),Object.assign(e,t);for(const o in Rm)e[o]==null&&(e[o]=Rm[o]);let{frequency:r,damping:i}=e;const{mass:a}=e;return pe.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*a,e.friction=4*Math.PI*i*a/r),e}function xy(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 wy=[],rW=class{constructor(){this.changed=!1,this.values=wy,this.toValues=null,this.fromValues=wy,this.config=new tW,this.immediate=!1}};function RC(e,{key:t,props:n,defaultProps:r,state:i,actions:a}){return new Promise((o,s)=>{let l,c,u=ml(n.cancel??(r==null?void 0:r.cancel),t);if(u)h();else{pe.und(n.pause)||(i.paused=ml(n.pause,t));let p=r==null?void 0:r.pause;p!==!0&&(p=i.paused||ml(p,t)),l=zn(n.delay||0,t),p?(i.resumeQueue.add(f),a.pause()):(a.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(c),c.cancel(),l=c.time-rt.now()}function f(){l>0&&!$r.skipAnimation?(i.delayed=!0,c=rt.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{a.start({...n,callId:e,cancel:u},o)}catch(p){s(p)}}})}var F0=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?Po(e.get()):t.every(n=>n.noop)?DC(e.get()):yr(e.get(),t.every(n=>n.finished)),DC=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),yr=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Po=e=>({value:e,cancelled:!0,finished:!1});function jC(e,t,n,r){const{callId:i,parentId:a,onRest:o}=t,{asyncTo:s,promise:l}=n;return!a&&e===s&&!t.reset?l:n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;const c=xf(t,(g,x)=>x==="onRest"?void 0:g);let u,d;const f=new Promise((g,x)=>(u=g,d=x)),h=g=>{const x=i<=(n.cancelId||0)&&Po(r)||i!==n.asyncId&&yr(r,!1);if(x)throw g.result=x,d(g),g},p=(g,x)=>{const _=new _y,w=new Cy;return(async()=>{if($r.skipAnimation)throw Yl(n),w.result=yr(r,!1),d(w),w;h(_);const C=pe.obj(g)?{...g}:{...x,to:g};C.parentId=i,Hr(c,(S,M)=>{pe.und(C[M])&&(C[M]=S)});const b=await r.start(C);return h(_),n.paused&&await new Promise(S=>{n.resumeQueue.add(S)}),b})()};let m;if($r.skipAnimation)return Yl(n),yr(r,!1);try{let g;pe.arr(e)?g=(async x=>{for(const _ of x)await p(_)})(e):g=Promise.resolve(e(p,r.stop.bind(r))),await Promise.all([g.then(u),f]),m=yr(r.get(),!0,!1)}catch(g){if(g instanceof _y)m=g.result;else if(g instanceof Cy)m=g.result;else throw g}finally{i==n.asyncId&&(n.asyncId=a,n.asyncTo=a?s:void 0,n.promise=a?l:void 0)}return pe.fun(o)&&rt.batchedUpdates(()=>{o(m,r,r.item)}),m})()}function Yl(e,t){hl(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var _y=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.")}},Cy=class extends Error{constructor(){super("SkipAnimationSignal")}},Dm=e=>e instanceof B0,iW=1,B0=class extends bC{constructor(){super(...arguments),this.id=iW++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=jr(this);return e&&e.getValue()}to(...e){return $r.to(this,e)}interpolate(...e){return Fz(),$r.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){Ul(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||hf.sort(this),Ul(this,{type:"priority",parent:this,priority:e})}},za=Symbol.for("SpringPhase"),IC=1,jm=2,Im=4,hp=e=>(e[za]&IC)>0,Di=e=>(e[za]&jm)>0,Hs=e=>(e[za]&Im)>0,Sy=(e,t)=>t?e[za]|=jm|IC:e[za]&=~jm,Ty=(e,t)=>t?e[za]|=Im:e[za]&=~Im,aW=class extends B0{constructor(e,t){if(super(),this.animation=new rW,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!(Di(this)||this._state.asyncTo)||Hs(this)}get goal(){return Bn(this.animation.to)}get velocity(){const e=jr(this);return e instanceof bf?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return hp(this)}get isAnimating(){return Di(this)}get isPaused(){return Hs(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:i}=r;const{config:a}=r,o=vf(r.to);!o&&or(r.to)&&(i=Nn(Bn(r.to))),r.values.forEach((c,u)=>{if(c.done)return;const d=c.constructor==rd?1:o?o[u].lastPosition:i[u];let f=r.immediate,h=d;if(!f){if(h=c.lastPosition,a.tension<=0){c.done=!0;return}let p=c.elapsedTime+=e;const m=r.fromValues[u],g=c.v0!=null?c.v0:c.v0=pe.arr(a.velocity)?a.velocity[u]:a.velocity;let x;const _=a.precision||(m==d?.005:Math.min(1,Math.abs(d-m)*.001));if(pe.und(a.duration))if(a.decay){const w=a.decay===!0?.998:a.decay,C=Math.exp(-(1-w)*p);h=m+g/(1-w)*(1-C),f=Math.abs(c.lastPosition-h)<=_,x=g*C}else{x=c.lastVelocity==null?g:c.lastVelocity;const w=a.restVelocity||_/10,C=a.clamp?0:a.bounce,b=!pe.und(C),S=m==d?c.v0>0:m<d;let M,$=!1;const k=1,D=Math.ceil(e/k);for(let T=0;T<D&&(M=Math.abs(x)>w,!(!M&&(f=Math.abs(d-h)<=_,f)));++T){b&&($=h==d||h>d==S,$&&(x=-x*C,h=d));const E=-a.tension*1e-6*(h-d),R=-a.friction*.001*x,j=(E+R)/a.mass;x=x+j*k,h=h+x*k}}else{let w=1;a.duration>0&&(this._memoizedDuration!==a.duration&&(this._memoizedDuration=a.duration,c.durationProgress>0&&(c.elapsedTime=a.duration*c.durationProgress,p=c.elapsedTime+=e)),w=(a.progress||0)+p/this._memoizedDuration,w=w>1?1:w<0?0:w,c.durationProgress=w),h=m+a.easing(w)*(d-m),x=(h-c.lastPosition)/e,f=w==1}c.lastVelocity=x,Number.isNaN(h)&&(console.warn("Got NaN while animating:",this),f=!0)}o&&!o[u].done&&(f=!1),f?c.done=!0:t=!1,c.setValue(h,a.round)&&(n=!0)});const s=jr(this),l=s.getValue();if(t){const c=Bn(r.to);(l!==c||n)&&!a.decay?(s.setValue(c),this._onChange(c)):n&&a.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return rt.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Di(this)){const{to:e,config:t}=this.animation;rt.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return 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=>F0(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Yl(this._state,e&&this._lastCallId),rt.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=pe.obj(n)?n[t]:n,(n==null||Om(n))&&(n=void 0),r=pe.obj(r)?r[t]:r,r==null&&(r=void 0);const i={to:n,from:r};return hp(this)||(e.reverse&&([n,r]=[r,n]),r=Bn(r),pe.und(r)?jr(this)||this._set(n):this._set(r)),i}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,xf(e,(o,s)=>/^on/.test(s)?kC(o,n):o)),ky(this,e,"onProps"),qs(this,"onProps",e,this);const i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const a=this._state;return RC(++this._lastCallId,{key:n,props:e,defaultProps:r,state:a,actions:{pause:()=>{Hs(this)||(Ty(this,!0),al(a.pauseQueue),qs(this,"onPause",yr(this,Vs(this,this.animation.to)),this))},resume:()=>{Hs(this)&&(Ty(this,!1),Di(this)&&this._resume(),al(a.resumeQueue),qs(this,"onResume",yr(this,Vs(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(o=>{if(e.loop&&o.finished&&!(t&&o.noop)){const s=NC(e);if(s)return this._update(s,!0)}return o})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Po(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(Po(this));const{key:a,defaultProps:o,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=!ai(d,c);f&&(s.from=d),d=Bn(d);const h=!ai(u,l);h&&this._focus(u);const p=Om(t.to),{config:m}=s,{decay:g,velocity:x}=m;(r||i)&&(m.velocity=0),t.config&&!p&&nW(m,zn(t.config,a),t.config!==o.config?zn(o.config,a):void 0);let _=jr(this);if(!_||pe.und(u))return n(yr(this,!0));const w=pe.und(t.reset)?i&&!t.default:!pe.und(d)&&ml(t.reset,a),C=w?d:this.get(),b=ql(u),S=pe.num(b)||pe.arr(b)||gf(b),M=!p&&(!S||ml(o.immediate||t.immediate,a));if(h){const T=Em(u);if(T!==_.constructor)if(M)_=this._set(b);else throw Error(`Cannot animate between ${_.constructor.name} and ${T.name}, as the "to" prop suggests`)}const $=_.constructor;let k=or(u),D=!1;if(!k){const T=w||!hp(this)&&f;(h||T)&&(D=ai(ql(C),b),k=!D),(!ai(s.immediate,M)&&!M||!ai(m.decay,g)||!ai(m.velocity,x))&&(k=!0)}if(D&&Di(this)&&(s.changed&&!w?k=!0:k||this._stop(l)),!p&&((k||or(l))&&(s.values=_.getPayload(),s.toValues=or(u)?null:$==rd?[1]:Nn(b)),s.immediate!=M&&(s.immediate=M,!M&&!w&&this._set(l)),k)){const{onRest:T}=s;Xe(sW,R=>ky(this,t,R));const E=yr(this,Vs(this,l));al(this._pendingCalls,E),this._pendingCalls.add(n),s.changed&&rt.batchedUpdates(()=>{var R;s.changed=!w,T==null||T(E,this),w?zn(o.onRest,E):(R=s.onStart)==null||R.call(s,E,this)})}w&&this._set(C),p?n(jC(t.to,t,this._state,this)):k?this._start():Di(this)&&!h?this._pendingCalls.add(n):n(DC(C))}_focus(e){const t=this.animation;e!==t.to&&(my(this)&&this._detach(),t.to=e,my(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;or(t)&&(vs(t,this),Dm(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;or(e)&&Hl(e,this)}_set(e,t=!0){const n=Bn(e);if(!pe.und(n)){const r=jr(this);if(!r||!ai(n,r.getValue())){const i=Em(n);!r||r.constructor!=i?P0(this,i.create(n)):r.setValue(n),r&&rt.batchedUpdates(()=>{this._onChange(n,t)})}}return jr(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,qs(this,"onStart",yr(this,Vs(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),zn(this.animation.onChange,e,this)),zn(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;jr(this).reset(Bn(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),Di(this)||(Sy(this,!0),Hs(this)||this._resume())}_resume(){$r.skipAnimation?this.finish():hf.start(this)}_stop(e,t){if(Di(this)){Sy(this,!1);const n=this.animation;Xe(n.values,i=>{i.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Ul(this,{type:"idle",parent:this});const r=t?Po(this.get()):yr(this.get(),Vs(this,e??n.to));al(this._pendingCalls,r),n.changed&&(n.changed=!1,qs(this,"onRest",r,this))}}};function Vs(e,t){const n=ql(t),r=ql(e.get());return ai(r,n)}function NC(e,t=e.loop,n=e.to){const r=zn(t);if(r){const i=r!==!0&&L0(r),a=(i||e).reverse,o=!i||i.reset;return Gl({...e,loop:t,default:!1,pause:void 0,to:!a||Om(n)?n:void 0,from:o?e.from:void 0,reset:o,...i})}}function Gl(e){const{to:t,from:n}=e=L0(e),r=new Set;return pe.obj(t)&&$y(t,r),pe.obj(n)&&$y(n,r),e.keys=r.size?Array.from(r):null,e}function oW(e){const t=Gl(e);return pe.und(t.default)&&(t.default=xf(t)),t}function $y(e,t){Hr(e,(n,r)=>n!=null&&t.add(r))}var sW=["onStart","onRest","onChange","onPause","onResume"];function ky(e,t,n){e.animation[n]=t[n]!==MC(t,n)?kC(t[n],e.key):void 0}function qs(e,t,...n){var r,i,a,o;(i=(r=e.animation)[t])==null||i.call(r,...n),(o=(a=e.defaultProps)[t])==null||o.call(a,...n)}var lW=["onStart","onChange","onRest"],cW=1,PC=class{constructor(e,t){this.id=cW++,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(Gl(e)),this}start(e){let{queue:t}=this;return e?t=Nn(e).map(Gl):this.queue=[],this._flush?this._flush(this,t):(WC(this,t),Nm(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Xe(Nn(t),r=>n[r].stop(!!e))}else Yl(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;Xe(Nn(e),n=>t[n].pause())}return this}resume(e){if(pe.und(e))this.start({pause:!1});else{const t=this.springs;Xe(Nn(e),n=>t[n].resume())}return this}each(e){Hr(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,hl(e,([s,l])=>{l.value=this.get(),s(l,this,this._item)}));const a=!r&&this._started,o=i||a&&n.size?this.get():null;i&&t.size&&hl(t,([s,l])=>{l.value=o,s(l,this,this._item)}),a&&(this._started=!1,hl(n,([s,l])=>{l.value=o,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;rt.onFrame(this._onFrame)}};function Nm(e,t){return Promise.all(t.map(n=>LC(e,n))).then(n=>F0(e,n))}async function LC(e,t,n){const{keys:r,to:i,from:a,loop:o,onRest:s,onResolve:l}=t,c=pe.obj(t.default)&&t.default;o&&(t.loop=!1),i===!1&&(t.to=null),a===!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)):Xe(lW,m=>{const g=t[m];if(pe.fun(g)){const x=e._events[m];t[m]=({finished:_,cancelled:w})=>{const C=x.get(g);C?(_||(C.finished=!1),w&&(C.cancelled=!0)):x.set(g,{value:null,finished:_||!1,cancelled:w||!1})},c&&(c[m]=t[m])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,al(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const f=(r||Object.keys(e.springs)).map(m=>e.springs[m].start(t)),h=t.cancel===!0||MC(t,"cancel")===!0;(u||h&&d.asyncId)&&f.push(RC(++e._lastAsyncId,{props:t,state:d,actions:{pause:$m,resume:$m,start(m,g){h?(Yl(d,e._lastAsyncId),g(Po(e))):(m.onRest=s,g(jC(u,m,d,e)))}}})),d.paused&&await new Promise(m=>{d.resumeQueue.add(m)});const p=F0(e,await Promise.all(f));if(o&&p.finished&&!(n&&p.noop)){const m=NC(t,o,i);if(m)return WC(e,[m]),LC(e,m,!0)}return l&&rt.batchedUpdates(()=>l(p,e,e.item)),p}function Pm(e,t){const n={...e.springs};return t&&Xe(Nn(t),r=>{pe.und(r.keys)&&(r=Gl(r)),pe.obj(r.to)||(r={...r,to:void 0}),zC(n,r,i=>BC(i))}),FC(e,n),n}function FC(e,t){Hr(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,vs(n,e))})}function BC(e,t){const n=new aW;return n.key=e,t&&vs(n,t),n}function zC(e,t,n){t.keys&&Xe(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function WC(e,t){Xe(t,n=>{zC(e.springs,n,r=>BC(r,e))})}var UC=fe.createContext({pause:!1,immediate:!1}),HC=()=>{const e=[],t=function(r){zz();const i=[];return Xe(e,(a,o)=>{if(pe.und(r))i.push(a.start());else{const s=n(r,a,o);s&&i.push(a.start(s))}}),i};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const i=e.indexOf(r);~i&&e.splice(i,1)},t.pause=function(){return Xe(e,r=>r.pause(...arguments)),this},t.resume=function(){return Xe(e,r=>r.resume(...arguments)),this},t.set=function(r){Xe(e,(i,a)=>{const o=pe.fun(r)?r(a,i):r;o&&i.set(o)})},t.start=function(r){const i=[];return Xe(e,(a,o)=>{if(pe.und(r))i.push(a.start());else{const s=this._getProps(r,a,o);s&&i.push(a.start(s))}}),i},t.stop=function(){return Xe(e,r=>r.stop(...arguments)),this},t.update=function(r){return Xe(e,(i,a)=>i.update(this._getProps(r,i,a))),this};const n=function(r,i,a){return pe.fun(r)?r(a,i):r};return t._getProps=n,t};function uW(e,t,n){const r=pe.fun(t)&&t;r&&!n&&(n=[]);const i=v.useMemo(()=>r||arguments.length==3?HC():void 0,[]),a=v.useRef(0),o=I0(),s=v.useMemo(()=>({ctrls:[],queue:[],flush(x,_){const w=Pm(x,_);return a.current>0&&!s.queue.length&&!Object.keys(w).some(b=>!x.springs[b])?Nm(x,_):new Promise(b=>{FC(x,w),s.queue.push(()=>{b(Nm(x,_))}),o()})}}),[]),l=v.useRef([...s.ctrls]),c=v.useRef([]),u=Mm(e)||0;v.useMemo(()=>{Xe(l.current.slice(e,u),x=>{Am(x,i),x.stop(!0)}),l.current.length=e,d(u,e)},[e]),v.useMemo(()=>{d(0,Math.min(u,e))},n);function d(x,_){for(let w=x;w<_;w++){const C=l.current[w]||(l.current[w]=new PC(null,s.flush)),b=r?r(w,C):t[w];b&&(c.current[w]=oW(b))}}const f=l.current.map((x,_)=>Pm(x,c.current[_])),h=v.useContext(UC),p=Mm(h),m=h!==p&&EC(h);Sa(()=>{a.current++,s.ctrls=l.current;const{queue:x}=s;x.length&&(s.queue=[],Xe(x,_=>_())),Xe(l.current,(_,w)=>{i==null||i.add(_),m&&_.start({default:h});const C=c.current[w];C&&(OC(_,C.ref),_.ref?_.queue.push(C):_.start(C))})}),N0(()=>()=>{Xe(s.ctrls,x=>x.stop(!0))});const g=f.map(x=>({...x}));return i?[g,i]:g}function Zr(e,t){const n=pe.fun(e),[[r],i]=uW(1,n?e:[e],n?[]:t);return n||arguments.length==2?[r,i]:r}function Ka(e,t,n){const r=pe.fun(t)&&t,{reset:i,sort:a,trail:o=0,expires:s=!0,exitBeforeEnter:l=!1,onDestroyed:c,ref:u,config:d}=r?r():t,f=v.useMemo(()=>r||arguments.length==3?HC():void 0,[]),h=Nn(e),p=[],m=v.useRef(null),g=i?null:m.current;Sa(()=>{m.current=p}),N0(()=>(Xe(p,j=>{f==null||f.add(j.ctrl),j.ctrl.ref=f}),()=>{Xe(m.current,j=>{j.expired&&clearTimeout(j.expirationId),Am(j.ctrl,f),j.ctrl.stop(!0)})}));const x=fW(h,r?r():t,g),_=i&&m.current||[];Sa(()=>Xe(_,({ctrl:j,item:O,key:A})=>{Am(j,f),zn(c,O,A)}));const w=[];if(g&&Xe(g,(j,O)=>{j.expired?(clearTimeout(j.expirationId),_.push(j)):(O=w[O]=x.indexOf(j.key),~O&&(p[O]=j))}),Xe(h,(j,O)=>{p[O]||(p[O]={key:x[O],item:j,phase:"mount",ctrl:new PC},p[O].ctrl.item=j)}),w.length){let j=-1;const{leave:O}=r?r():t;Xe(w,(A,I)=>{const F=g[I];~A?(j=p.indexOf(F),p[j]={...F,item:h[A]}):O&&p.splice(++j,0,F)})}pe.fun(a)&&p.sort((j,O)=>a(j.item,O.item));let C=-o;const b=I0(),S=xf(t),M=new Map,$=v.useRef(new Map),k=v.useRef(!1);Xe(p,(j,O)=>{const A=j.key,I=j.phase,F=r?r():t;let z,L;const H=zn(F.delay||0,A);if(I=="mount")z=F.enter,L="enter";else{const X=x.indexOf(A)<0;if(I!="leave")if(X)z=F.leave,L="leave";else if(z=F.update)L="update";else return;else if(!X)z=F.enter,L="enter";else return}if(z=zn(z,j.item,O),z=pe.obj(z)?L0(z):{to:z},!z.config){const X=d||S.config;z.config=zn(X,j.item,O,L)}C+=o;const Y={...S,delay:H+C,ref:u,immediate:F.immediate,reset:!1,...z};if(L=="enter"&&pe.und(Y.from)){const X=r?r():t,J=pe.und(X.initial)||g?X.from:X.initial;Y.from=zn(J,j.item,O)}const{onResolve:q}=Y;Y.onResolve=X=>{zn(q,X);const J=m.current,ee=J.find(W=>W.key===A);if(ee&&!(X.cancelled&&ee.phase!="update")&&ee.ctrl.idle){const W=J.every(P=>P.ctrl.idle);if(ee.phase=="leave"){const P=zn(s,ee.item);if(P!==!1){const B=P===!0?0:P;if(ee.expired=!0,!W&&B>0){B<=2147483647&&(ee.expirationId=setTimeout(b,B));return}}}W&&J.some(P=>P.expired)&&($.current.delete(ee),l&&(k.current=!0),b())}};const Z=Pm(j.ctrl,Y);L==="leave"&&l?$.current.set(j,{phase:L,springs:Z,payload:Y}):M.set(j,{phase:L,springs:Z,payload:Y})});const D=v.useContext(UC),T=Mm(D),E=D!==T&&EC(D);Sa(()=>{E&&Xe(p,j=>{j.ctrl.start({default:D})})},[D]),Xe(M,(j,O)=>{if($.current.size){const A=p.findIndex(I=>I.key===O.key);p.splice(A,1)}}),Sa(()=>{Xe($.current.size?$.current:M,({phase:j,payload:O},A)=>{const{ctrl:I}=A;A.phase=j,f==null||f.add(I),E&&j=="enter"&&I.start({default:D}),O&&(OC(I,O.ref),(I.ref||f)&&!k.current?I.update(O):(I.start(O),k.current&&(k.current=!1)))})},i?void 0:n);const R=j=>fe.createElement(fe.Fragment,null,p.map((O,A)=>{const{springs:I}=M.get(O)||O.ctrl,F=j({...I},O.item,O,A),z=pe.str(O.key)||pe.num(O.key)?O.key:O.ctrl.id,L=fe.version<"19.0.0",H=(F==null?void 0:F.props)??{},Y=L?F==null?void 0:F.ref:H==null?void 0:H.ref;return F&&F.type?fe.createElement(F.type,{...H,key:z,ref:Y}):F}));return f?[R,f]:R}var dW=1;function fW(e,{key:t,keys:n=t},r){if(n===null){const i=new Set;return e.map(a=>{const o=r&&r.find(s=>s.item===a&&s.phase!=="leave"&&!i.has(s));return o?(i.add(o),o.key):dW++})}return pe.und(n)?e:pe.fun(n)?e.map(n):Nn(n)}var VC=class extends B0{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=zl(...t);const n=this._get(),r=Em(n);P0(this,r.create(n))}advance(e){const t=this._get(),n=this.get();ai(t,n)||(jr(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&My(this._active)&&pp(this)}_get(){const e=pe.arr(this.source)?this.source.map(Bn):Nn(Bn(this.source));return this.calc(...e)}_start(){this.idle&&!My(this._active)&&(this.idle=!1,Xe(vf(this),e=>{e.done=!1}),$r.skipAnimation?(rt.batchedUpdates(()=>this.advance()),pp(this)):hf.start(this))}_attach(){let e=1;Xe(Nn(this.source),t=>{or(t)&&vs(t,this),Dm(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){Xe(Nn(this.source),e=>{or(e)&&Hl(e,this)}),this._active.clear(),pp(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=Nn(this.source).reduce((t,n)=>Math.max(t,(Dm(n)?n.priority:0)+1),0))}};function hW(e){return e.idle!==!1}function My(e){return!e.size||Array.from(e).every(hW)}function pp(e){e.idle||(e.idle=!0,Xe(vf(e),t=>{t.done=!0}),Ul(e,{type:"idle",parent:e}))}var Ki=(e,...t)=>new VC(e,t);$r.assign({createStringInterpolator:wC,to:(e,t)=>new VC(e,t)});var qC=/^--/;function pW(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!qC.test(e)&&!(gl.hasOwnProperty(e)&&gl[e])?t+"px":(""+t).trim()}var Ey={};function mW(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{className:r,style:i,children:a,scrollTop:o,scrollLeft:s,viewBox:l,...c}=t,u=Object.values(c),d=Object.keys(c).map(f=>n||e.hasAttribute(f)?f:Ey[f]||(Ey[f]=f.replace(/([A-Z])/g,h=>"-"+h.toLowerCase())));a!==void 0&&(e.textContent=a);for(const f in i)if(i.hasOwnProperty(f)){const h=pW(f,i[f]);qC.test(f)?e.style.setProperty(f,h):e.style[f]=h}d.forEach((f,h)=>{e.setAttribute(f,u[h])}),r!==void 0&&(e.className=r),o!==void 0&&(e.scrollTop=o),s!==void 0&&(e.scrollLeft=s),l!==void 0&&e.setAttribute("viewBox",l)}var gl={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},gW=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),vW=["Webkit","Ms","Moz","O"];gl=Object.keys(gl).reduce((e,t)=>(vW.forEach(n=>e[gW(n,t)]=e[t]),e),gl);var bW=/^(matrix|translate|scale|rotate|skew)/,yW=/^(translate)/,xW=/^(rotate|skew)/,mp=(e,t)=>pe.num(e)&&e!==0?e+t:e,Tu=(e,t)=>pe.arr(e)?e.every(n=>Tu(n,t)):pe.num(e)?e===t:parseFloat(e)===t,wW=class extends yf{constructor({x:e,y:t,z:n,...r}){const i=[],a=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),a.push(o=>[`translate3d(${o.map(s=>mp(s,"px")).join(",")})`,Tu(o,0)])),Hr(r,(o,s)=>{if(s==="transform")i.push([o||""]),a.push(l=>[l,l===""]);else if(bW.test(s)){if(delete r[s],pe.und(o))return;const l=yW.test(s)?"px":xW.test(s)?"deg":"";i.push(Nn(o)),a.push(s==="rotate3d"?([c,u,d,f])=>[`rotate3d(${c},${u},${d},${mp(f,l)})`,Tu(f,0)]:c=>[`${s}(${c.map(u=>mp(u,l)).join(",")})`,Tu(c,s.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new _W(i,a)),super(r)}},_W=class extends bC{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 Xe(this.inputs,(n,r)=>{const i=Bn(n[0]),[a,o]=this.transforms[r](pe.arr(i)?i:n.map(Bn));e+=" "+a,t=t&&o}),t?"none":e}observerAdded(e){e==1&&Xe(this.inputs,t=>Xe(t,n=>or(n)&&vs(n,this)))}observerRemoved(e){e==0&&Xe(this.inputs,t=>Xe(t,n=>or(n)&&Hl(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),Ul(this,e)}},CW=["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"];$r.assign({batchedUpdates:Un.unstable_batchedUpdates,createStringInterpolator:wC,colors:yz});var SW=Xz(CW,{applyAnimatedValues:mW,createAnimatedStyle:e=>new wW(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Ht=SW.animated;function TW(){this.__data__=[],this.size=0}var $W=TW;function kW(e,t){return e===t||e!==e&&t!==t}var Mc=kW,MW=Mc;function EW(e,t){for(var n=e.length;n--;)if(MW(e[n][0],t))return n;return-1}var wf=EW,OW=wf,AW=Array.prototype,RW=AW.splice;function DW(e){var t=this.__data__,n=OW(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():RW.call(t,n,1),--this.size,!0}var jW=DW,IW=wf;function NW(e){var t=this.__data__,n=IW(t,e);return n<0?void 0:t[n][1]}var PW=NW,LW=wf;function FW(e){return LW(this.__data__,e)>-1}var BW=FW,zW=wf;function WW(e,t){var n=this.__data__,r=zW(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var UW=WW,HW=$W,VW=jW,qW=PW,YW=BW,GW=UW;function bs(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])}}bs.prototype.clear=HW;bs.prototype.delete=VW;bs.prototype.get=qW;bs.prototype.has=YW;bs.prototype.set=GW;var _f=bs,ZW=_f;function XW(){this.__data__=new ZW,this.size=0}var KW=XW;function JW(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var QW=JW;function eU(e){return this.__data__.get(e)}var tU=eU;function nU(e){return this.__data__.has(e)}var rU=nU,iU=typeof Hn=="object"&&Hn&&Hn.Object===Object&&Hn,YC=iU,aU=YC,oU=typeof self=="object"&&self&&self.Object===Object&&self,sU=aU||oU||Function("return this")(),Xr=sU,lU=Xr,cU=lU.Symbol,ys=cU,Oy=ys,GC=Object.prototype,uU=GC.hasOwnProperty,dU=GC.toString,Ys=Oy?Oy.toStringTag:void 0;function fU(e){var t=uU.call(e,Ys),n=e[Ys];try{e[Ys]=void 0;var r=!0}catch{}var i=dU.call(e);return r&&(t?e[Ys]=n:delete e[Ys]),i}var hU=fU,pU=Object.prototype,mU=pU.toString;function gU(e){return mU.call(e)}var vU=gU,Ay=ys,bU=hU,yU=vU,xU="[object Null]",wU="[object Undefined]",Ry=Ay?Ay.toStringTag:void 0;function _U(e){return e==null?e===void 0?wU:xU:Ry&&Ry in Object(e)?bU(e):yU(e)}var Si=_U;function CU(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Kr=CU,SU=Si,TU=Kr,$U="[object AsyncFunction]",kU="[object Function]",MU="[object GeneratorFunction]",EU="[object Proxy]";function OU(e){if(!TU(e))return!1;var t=SU(e);return t==kU||t==MU||t==$U||t==EU}var Cf=OU;const z0=nn(Cf);var AU=Xr,RU=AU["__core-js_shared__"],DU=RU,gp=DU,Dy=function(){var e=/[^.]+$/.exec(gp&&gp.keys&&gp.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function jU(e){return!!Dy&&Dy in e}var IU=jU,NU=Function.prototype,PU=NU.toString;function LU(e){if(e!=null){try{return PU.call(e)}catch{}try{return e+""}catch{}}return""}var ZC=LU,FU=Cf,BU=IU,zU=Kr,WU=ZC,UU=/[\\^$.*+?()[\]{}|]/g,HU=/^\[object .+?Constructor\]$/,VU=Function.prototype,qU=Object.prototype,YU=VU.toString,GU=qU.hasOwnProperty,ZU=RegExp("^"+YU.call(GU).replace(UU,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function XU(e){if(!zU(e)||BU(e))return!1;var t=FU(e)?ZU:HU;return t.test(WU(e))}var KU=XU;function JU(e,t){return e==null?void 0:e[t]}var QU=JU,eH=KU,tH=QU;function nH(e,t){var n=tH(e,t);return eH(n)?n:void 0}var Ja=nH,rH=Ja,iH=Xr,aH=rH(iH,"Map"),W0=aH,oH=Ja,sH=oH(Object,"create"),Sf=sH,jy=Sf;function lH(){this.__data__=jy?jy(null):{},this.size=0}var cH=lH;function uH(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var dH=uH,fH=Sf,hH="__lodash_hash_undefined__",pH=Object.prototype,mH=pH.hasOwnProperty;function gH(e){var t=this.__data__;if(fH){var n=t[e];return n===hH?void 0:n}return mH.call(t,e)?t[e]:void 0}var vH=gH,bH=Sf,yH=Object.prototype,xH=yH.hasOwnProperty;function wH(e){var t=this.__data__;return bH?t[e]!==void 0:xH.call(t,e)}var _H=wH,CH=Sf,SH="__lodash_hash_undefined__";function TH(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=CH&&t===void 0?SH:t,this}var $H=TH,kH=cH,MH=dH,EH=vH,OH=_H,AH=$H;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=kH;xs.prototype.delete=MH;xs.prototype.get=EH;xs.prototype.has=OH;xs.prototype.set=AH;var RH=xs,Iy=RH,DH=_f,jH=W0;function IH(){this.size=0,this.__data__={hash:new Iy,map:new(jH||DH),string:new Iy}}var NH=IH;function PH(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var LH=PH,FH=LH;function BH(e,t){var n=e.__data__;return FH(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Tf=BH,zH=Tf;function WH(e){var t=zH(this,e).delete(e);return this.size-=t?1:0,t}var UH=WH,HH=Tf;function VH(e){return HH(this,e).get(e)}var qH=VH,YH=Tf;function GH(e){return YH(this,e).has(e)}var ZH=GH,XH=Tf;function KH(e,t){var n=XH(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var JH=KH,QH=NH,eV=UH,tV=qH,nV=ZH,rV=JH;function ws(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])}}ws.prototype.clear=QH;ws.prototype.delete=eV;ws.prototype.get=tV;ws.prototype.has=nV;ws.prototype.set=rV;var U0=ws,iV=_f,aV=W0,oV=U0,sV=200;function lV(e,t){var n=this.__data__;if(n instanceof iV){var r=n.__data__;if(!aV||r.length<sV-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new oV(r)}return n.set(e,t),this.size=n.size,this}var cV=lV,uV=_f,dV=KW,fV=QW,hV=tU,pV=rU,mV=cV;function _s(e){var t=this.__data__=new uV(e);this.size=t.size}_s.prototype.clear=dV;_s.prototype.delete=fV;_s.prototype.get=hV;_s.prototype.has=pV;_s.prototype.set=mV;var $f=_s,gV=Ja,vV=function(){try{var e=gV(Object,"defineProperty");return e({},"",{}),e}catch{}}(),XC=vV,Ny=XC;function bV(e,t,n){t=="__proto__"&&Ny?Ny(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var H0=bV,yV=H0,xV=Mc;function wV(e,t,n){(n!==void 0&&!xV(e[t],n)||n===void 0&&!(t in e))&&yV(e,t,n)}var KC=wV;function _V(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var l=o[e?s:++i];if(n(a[l],l,a)===!1)break}return t}}var CV=_V,SV=CV,TV=SV(),JC=TV,ad={exports:{}};ad.exports;(function(e,t){var n=Xr,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,o=a?n.Buffer:void 0,s=o?o.allocUnsafe:void 0;function 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})(ad,ad.exports);var QC=ad.exports,$V=Xr,kV=$V.Uint8Array,e6=kV,Py=e6;function MV(e){var t=new e.constructor(e.byteLength);return new Py(t).set(new Py(e)),t}var V0=MV,EV=V0;function OV(e,t){var n=t?EV(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var t6=OV;function AV(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var n6=AV,RV=Kr,Ly=Object.create,DV=function(){function e(){}return function(t){if(!RV(t))return{};if(Ly)return Ly(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),jV=DV;function IV(e,t){return function(n){return e(t(n))}}var r6=IV,NV=r6,PV=NV(Object.getPrototypeOf,Object),q0=PV,LV=Object.prototype;function FV(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||LV;return e===n}var Y0=FV,BV=jV,zV=q0,WV=Y0;function UV(e){return typeof e.constructor=="function"&&!WV(e)?BV(zV(e)):{}}var i6=UV;function HV(e){return e!=null&&typeof e=="object"}var gr=HV,VV=Si,qV=gr,YV="[object Arguments]";function GV(e){return qV(e)&&VV(e)==YV}var ZV=GV,Fy=ZV,XV=gr,a6=Object.prototype,KV=a6.hasOwnProperty,JV=a6.propertyIsEnumerable,QV=Fy(function(){return arguments}())?Fy:function(e){return XV(e)&&KV.call(e,"callee")&&!JV.call(e,"callee")},kf=QV,eq=Array.isArray,Kn=eq,tq=9007199254740991;function nq(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=tq}var G0=nq,rq=Cf,iq=G0;function aq(e){return e!=null&&iq(e.length)&&!rq(e)}var Cs=aq,oq=Cs,sq=gr;function lq(e){return sq(e)&&oq(e)}var o6=lq,od={exports:{}};function cq(){return!1}var uq=cq;od.exports;(function(e,t){var n=Xr,r=uq,i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,s=o?n.Buffer:void 0,l=s?s.isBuffer:void 0,c=l||r;e.exports=c})(od,od.exports);var Mf=od.exports,dq=Si,fq=q0,hq=gr,pq="[object Object]",mq=Function.prototype,gq=Object.prototype,s6=mq.toString,vq=gq.hasOwnProperty,bq=s6.call(Object);function yq(e){if(!hq(e)||dq(e)!=pq)return!1;var t=fq(e);if(t===null)return!0;var n=vq.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&s6.call(n)==bq}var Z0=yq;const X0=nn(Z0);var xq=Si,wq=G0,_q=gr,Cq="[object Arguments]",Sq="[object Array]",Tq="[object Boolean]",$q="[object Date]",kq="[object Error]",Mq="[object Function]",Eq="[object Map]",Oq="[object Number]",Aq="[object Object]",Rq="[object RegExp]",Dq="[object Set]",jq="[object String]",Iq="[object WeakMap]",Nq="[object ArrayBuffer]",Pq="[object DataView]",Lq="[object Float32Array]",Fq="[object Float64Array]",Bq="[object Int8Array]",zq="[object Int16Array]",Wq="[object Int32Array]",Uq="[object Uint8Array]",Hq="[object Uint8ClampedArray]",Vq="[object Uint16Array]",qq="[object Uint32Array]",Kt={};Kt[Lq]=Kt[Fq]=Kt[Bq]=Kt[zq]=Kt[Wq]=Kt[Uq]=Kt[Hq]=Kt[Vq]=Kt[qq]=!0;Kt[Cq]=Kt[Sq]=Kt[Nq]=Kt[Tq]=Kt[Pq]=Kt[$q]=Kt[kq]=Kt[Mq]=Kt[Eq]=Kt[Oq]=Kt[Aq]=Kt[Rq]=Kt[Dq]=Kt[jq]=Kt[Iq]=!1;function Yq(e){return _q(e)&&wq(e.length)&&!!Kt[xq(e)]}var Gq=Yq;function Zq(e){return function(t){return e(t)}}var Ss=Zq,sd={exports:{}};sd.exports;(function(e,t){var n=YC,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,o=a&&n.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(sd,sd.exports);var Ef=sd.exports,Xq=Gq,Kq=Ss,By=Ef,zy=By&&By.isTypedArray,Jq=zy?Kq(zy):Xq,K0=Jq;function Qq(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var l6=Qq,eY=H0,tY=Mc,nY=Object.prototype,rY=nY.hasOwnProperty;function iY(e,t,n){var r=e[t];(!(rY.call(e,t)&&tY(r,n))||n===void 0&&!(t in e))&&eY(e,t,n)}var J0=iY,aY=J0,oY=H0;function sY(e,t,n,r){var i=!n;n||(n={});for(var a=-1,o=t.length;++a<o;){var s=t[a],l=r?r(n[s],e[s],s,n,e):void 0;l===void 0&&(l=e[s]),i?oY(n,s,l):aY(n,s,l)}return n}var Ts=sY;function lY(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var cY=lY,uY=9007199254740991,dY=/^(?:0|[1-9]\d*)$/;function fY(e,t){var n=typeof e;return t=t??uY,!!t&&(n=="number"||n!="symbol"&&dY.test(e))&&e>-1&&e%1==0&&e<t}var Of=fY,hY=cY,pY=kf,mY=Kn,gY=Mf,vY=Of,bY=K0,yY=Object.prototype,xY=yY.hasOwnProperty;function wY(e,t){var n=mY(e),r=!n&&pY(e),i=!n&&!r&&gY(e),a=!n&&!r&&!i&&bY(e),o=n||r||i||a,s=o?hY(e.length,String):[],l=s.length;for(var c in e)(t||xY.call(e,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||vY(c,l)))&&s.push(c);return s}var c6=wY;function _Y(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var CY=_Y,SY=Kr,TY=Y0,$Y=CY,kY=Object.prototype,MY=kY.hasOwnProperty;function EY(e){if(!SY(e))return $Y(e);var t=TY(e),n=[];for(var r in e)r=="constructor"&&(t||!MY.call(e,r))||n.push(r);return n}var OY=EY,AY=c6,RY=OY,DY=Cs;function jY(e){return DY(e)?AY(e,!0):RY(e)}var Ec=jY,IY=Ts,NY=Ec;function PY(e){return IY(e,NY(e))}var LY=PY,Wy=KC,FY=QC,BY=t6,zY=n6,WY=i6,Uy=kf,Hy=Kn,UY=o6,HY=Mf,VY=Cf,qY=Kr,YY=Z0,GY=K0,Vy=l6,ZY=LY;function XY(e,t,n,r,i,a,o){var s=Vy(e,n),l=Vy(t,n),c=o.get(l);if(c){Wy(e,n,c);return}var u=a?a(s,l,n+"",e,t,o):void 0,d=u===void 0;if(d){var f=Hy(l),h=!f&&HY(l),p=!f&&!h&&GY(l);u=l,f||h||p?Hy(s)?u=s:UY(s)?u=zY(s):h?(d=!1,u=FY(l,!0)):p?(d=!1,u=BY(l,!0)):u=[]:YY(l)||Uy(l)?(u=s,Uy(s)?u=ZY(s):(!qY(s)||VY(s))&&(u=WY(l))):d=!1}d&&(o.set(l,u),i(u,l,r,a,o),o.delete(l)),Wy(e,n,u)}var KY=XY,JY=$f,QY=KC,eG=JC,tG=KY,nG=Kr,rG=Ec,iG=l6;function u6(e,t,n,r,i){e!==t&&eG(t,function(a,o){if(i||(i=new JY),nG(a))tG(e,t,o,n,u6,r,i);else{var s=r?r(iG(e,o),a,o+"",e,t,i):void 0;s===void 0&&(s=a),QY(e,o,s)}},rG)}var aG=u6;function oG(e){return e}var Af=oG;function sG(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 lG=sG,cG=lG,qy=Math.max;function uG(e,t,n){return t=qy(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=qy(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),cG(e,this,s)}}var d6=uG;function dG(e){return function(){return e}}var fG=dG,hG=fG,Yy=XC,pG=Af,mG=Yy?function(e,t){return Yy(e,"toString",{configurable:!0,enumerable:!1,value:hG(t),writable:!0})}:pG,gG=mG,vG=800,bG=16,yG=Date.now;function xG(e){var t=0,n=0;return function(){var r=yG(),i=bG-(r-n);if(n=r,i>0){if(++t>=vG)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var wG=xG,_G=gG,CG=wG,SG=CG(_G),f6=SG,TG=Af,$G=d6,kG=f6;function MG(e,t){return kG($G(e,t,TG),e+"")}var Q0=MG,EG=Mc,OG=Cs,AG=Of,RG=Kr;function DG(e,t,n){if(!RG(n))return!1;var r=typeof t;return(r=="number"?OG(n)&&AG(t,n.length):r=="string"&&t in n)?EG(n[t],e):!1}var h6=DG,jG=Q0,IG=h6;function NG(e){return jG(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(i--,a):void 0,o&&IG(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,a)}return t})}var PG=NG,LG=aG,FG=PG,BG=FG(function(e,t,n){LG(e,t,n)}),zG=BG;const p6=nn(zG);var WG=Si,UG=gr,HG="[object Symbol]";function VG(e){return typeof e=="symbol"||UG(e)&&WG(e)==HG}var Rf=VG,qG=Kn,YG=Rf,GG=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ZG=/^\w*$/;function XG(e,t){if(qG(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||YG(e)?!0:ZG.test(e)||!GG.test(e)||t!=null&&e in Object(t)}var ev=XG,m6=U0,KG="Expected a function";function tv(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(KG);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(tv.Cache||m6),n}tv.Cache=m6;var JG=tv,QG=JG,eZ=500;function tZ(e){var t=QG(e,function(r){return n.size===eZ&&n.clear(),r}),n=t.cache;return t}var nZ=tZ,rZ=nZ,iZ=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,aZ=/\\(\\)?/g,oZ=rZ(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(iZ,function(n,r,i,a){t.push(i?a.replace(aZ,"$1"):r||n)}),t}),sZ=oZ;function lZ(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 Df=lZ,Gy=ys,cZ=Df,uZ=Kn,dZ=Rf,Zy=Gy?Gy.prototype:void 0,Xy=Zy?Zy.toString:void 0;function g6(e){if(typeof e=="string")return e;if(uZ(e))return cZ(e,g6)+"";if(dZ(e))return Xy?Xy.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var fZ=g6,hZ=fZ;function pZ(e){return e==null?"":hZ(e)}var v6=pZ,mZ=Kn,gZ=ev,vZ=sZ,bZ=v6;function yZ(e,t){return mZ(e)?e:gZ(e,t)?[e]:vZ(bZ(e))}var $s=yZ,xZ=Rf;function wZ(e){if(typeof e=="string"||xZ(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var ks=wZ,_Z=$s,CZ=ks;function SZ(e,t){t=_Z(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[CZ(t[n++])];return n&&n==r?e:void 0}var Oc=SZ,TZ=Oc;function $Z(e,t,n){var r=e==null?void 0:TZ(e,t);return r===void 0?n:r}var b6=$Z;const Vr=nn(b6);var kZ=J0,MZ=$s,EZ=Of,Ky=Kr,OZ=ks;function AZ(e,t,n,r){if(!Ky(e))return e;t=MZ(t,e);for(var i=-1,a=t.length,o=a-1,s=e;s!=null&&++i<a;){var l=OZ(t[i]),c=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(i!=o){var u=s[l];c=r?r(u,l,s):void 0,c===void 0&&(c=Ky(u)?u:EZ(t[i+1])?[]:{})}kZ(s,l,c),s=s[l]}return e}var y6=AZ,RZ=y6;function DZ(e,t,n){return e==null?e:RZ(e,t,n)}var jZ=DZ;const ol=nn(jZ);function Lm(){return Lm=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},Lm.apply(null,arguments)}function IZ(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 NZ=["outlineWidth","outlineColor","outlineOpacity"],PZ=function(e){return e.outlineWidth,e.outlineColor,e.outlineOpacity,IZ(e,NZ)},LZ=["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"],FZ=function(e,t){return Lm({},t,e)},BZ=function(e,t){var n=p6({},e,t);return LZ.forEach(function(r){ol(n,r,FZ(Vr(n,r),n.text))}),n},x6=function(e,t){return t?p6({},e,t):e},zZ={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}}},WZ=function(e){return v.useMemo(function(){return BZ(zZ,e)},[e])},UZ=function(e,t){return v.useMemo(function(){return x6(e,t)},[e,t])},w6=v.createContext(null),HZ={},VZ=function(e){var t=e.theme,n=t===void 0?HZ:t,r=e.children,i=WZ(n);return y.jsx(w6.Provider,{value:i,children:r})},Lt=function(){var e=v.useContext(w6);if(e===null)throw new Error("Unable to find the theme, did you forget to wrap your component with ThemeProvider?");return e};function Wa(){return Wa=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},Wa.apply(null,arguments)}var qZ=["basic","chip","container","table","tableCell","tableCellValue"],YZ={pointerEvents:"none",position:"absolute",zIndex:10,top:0,left:0},Jy=function(e,t){return"translate("+e+"px, "+t+"px)"},_6=v.memo(function(e){var t,n=e.position,r=e.anchor,i=e.children,a=Lt(),o=Fn(),s=o.animate,l=o.config,c=Xre(),u=c[0],d=c[1],f=v.useRef(!1),h=void 0,p=!1,m=d.width>0&&d.height>0,g=Math.round(n[0]),x=Math.round(n[1]);m&&(r==="top"?(g-=d.width/2,x-=d.height+14):r==="right"?(g+=14,x-=d.height/2):r==="bottom"?(g-=d.width/2,x+=14):r==="left"?(g-=d.width+14,x-=d.height/2):r==="center"&&(g-=d.width/2,x-=d.height/2),h={transform:Jy(g,x)},f.current||(p=!0),f.current=[g,x]);var _=Zr({to:h,config:l,immediate:!s||p}),w=a.tooltip;w.basic,w.chip,w.container,w.table,w.tableCell,w.tableCellValue;var C=function(S,M){if(S==null)return{};var $={};for(var k in S)if({}.hasOwnProperty.call(S,k)){if(M.indexOf(k)!==-1)continue;$[k]=S[k]}return $}(w,qZ),b=Wa({},YZ,C,{transform:(t=_.transform)!=null?t:Jy(g,x),opacity:_.transform?1:0});return y.jsx(Ht.div,{ref:u,style:b,children:i})});_6.displayName="TooltipWrapper";var C6=v.memo(function(e){var t=e.size,n=t===void 0?12:t,r=e.color,i=e.style;return y.jsx("span",{style:Wa({display:"block",width:n,height:n,background:r},i===void 0?{}:i)})}),nv=v.memo(function(e){var t,n=e.id,r=e.value,i=e.format,a=e.enableChip,o=a!==void 0&&a,s=e.color,l=e.renderContent,c=Lt(),u=os(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:[o&&y.jsx(C6,{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})}),GZ={width:"100%",borderCollapse:"collapse"},S6=v.memo(function(e){var t,n=e.title,r=e.rows,i=r===void 0?[]:r,a=e.renderContent,o=Lt();return i.length?(t=typeof a=="function"?a():y.jsxs("div",{children:[n&&n,y.jsx("table",{style:Wa({},GZ,o.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:o.tooltip.tableCell,children:c},u)})},l)})})})]}),y.jsx("div",{style:o.tooltip.container,children:t})):null});S6.displayName="TableTooltip";var Fm=v.memo(function(e){var t=e.x0,n=e.x1,r=e.y0,i=e.y1,a=Lt(),o=Fn(),s=o.animate,l=o.config,c=v.useMemo(function(){return Wa({},a.crosshair.line,{pointerEvents:"none"})},[a.crosshair.line]),u=Zr({x1:t,x2:n,y1:r,y2:i,config:l,immediate:!s});return y.jsx(Ht.line,Wa({},u,{fill:"none",style:c}))});Fm.displayName="CrosshairLine";var Bm=v.memo(function(e){var t,n,r=e.width,i=e.height,a=e.type,o=e.x,s=e.y;return a==="cross"?(t={x0:o,x1:o,y0:0,y1:i},n={x0:0,x1:r,y0:s,y1:s}):a==="top-left"?(t={x0:o,x1:o,y0:0,y1:s},n={x0:0,x1:o,y0:s,y1:s}):a==="top"?t={x0:o,x1:o,y0:0,y1:s}:a==="top-right"?(t={x0:o,x1:o,y0:0,y1:s},n={x0:o,x1:r,y0:s,y1:s}):a==="right"?n={x0:o,x1:r,y0:s,y1:s}:a==="bottom-right"?(t={x0:o,x1:o,y0:s,y1:i},n={x0:o,x1:r,y0:s,y1:s}):a==="bottom"?t={x0:o,x1:o,y0:s,y1:i}:a==="bottom-left"?(t={x0:o,x1:o,y0:s,y1:i},n={x0:0,x1:o,y0:s,y1:s}):a==="left"?n={x0:0,x1:o,y0:s,y1:s}:a==="x"?t={x0:o,x1:o,y0:0,y1:i}:a==="y"&&(n={x0:0,x1:r,y0:s,y1:s}),y.jsxs(y.Fragment,{children:[t&&y.jsx(Fm,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}),n&&y.jsx(Fm,{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1})]})});Bm.displayName="Crosshair";var T6=v.createContext({showTooltipAt:function(){},showTooltipFromEvent:function(){},hideTooltip:function(){}}),zm={isVisible:!1,position:[null,null],content:null,anchor:null},$6=v.createContext(zm),ZZ=function(e){var t=v.useState(zm),n=t[0],r=t[1],i=v.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]),a=v.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,m=h.clientY,g=(p-u.left)*f,x=(m-u.top)*f;c!=="left"&&c!=="right"||(c=g<u.width/2?"right":"left"),r({isVisible:!0,position:[g,x],anchor:c,content:s})},[e,r]),o=v.useCallback(function(){r(zm)},[r]);return{actions:v.useMemo(function(){return{showTooltipAt:i,showTooltipFromEvent:a,hideTooltip:o}},[i,a,o]),state:n}},Ti=function(){var e=v.useContext(T6);if(e===void 0)throw new Error("useTooltip must be used within a TooltipProvider");return e},XZ=function(){var e=v.useContext($6);if(e===void 0)throw new Error("useTooltipState must be used within a TooltipProvider");return e},KZ=function(e){return e.isVisible},JZ=function(){var e=XZ();return KZ(e)?y.jsx(_6,{position:e.position,anchor:e.anchor,children:e.content}):null},QZ=function(e){var t=e.container,n=e.children,r=ZZ(t),i=r.actions,a=r.state;return y.jsx(T6.Provider,{value:i,children:y.jsx($6.Provider,{value:a,children:n})})},eX=Si,tX=Kn,nX=gr,rX="[object String]";function iX(e){return typeof e=="string"||!tX(e)&&nX(e)&&eX(e)==rX}var aX=iX;const oX=nn(aX);let ur;typeof window<"u"?ur=window:typeof self<"u"?ur=self:ur=global;let Wm=null,Um=null;const Qy=20,vp=ur.clearTimeout,e2=ur.setTimeout,bp=ur.cancelAnimationFrame||ur.mozCancelAnimationFrame||ur.webkitCancelAnimationFrame,t2=ur.requestAnimationFrame||ur.mozRequestAnimationFrame||ur.webkitRequestAnimationFrame;bp==null||t2==null?(Wm=vp,Um=function(t){return e2(t,Qy)}):(Wm=function([t,n]){bp(t),vp(n)},Um=function(t){const n=t2(function(){vp(r),t()}),r=e2(function(){bp(n),t()},Qy);return[n,r]});function sX(e){let t,n,r,i,a,o,s;const l=typeof document<"u"&&document.attachEvent;if(!l){o=function(x){const _=x.__resizeTriggers__,w=_.firstElementChild,C=_.lastElementChild,b=w.firstElementChild;C.scrollLeft=C.scrollWidth,C.scrollTop=C.scrollHeight,b.style.width=w.offsetWidth+1+"px",b.style.height=w.offsetHeight+1+"px",w.scrollLeft=w.scrollWidth,w.scrollTop=w.scrollHeight},a=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;o(this),this.__resizeRAF__&&Wm(this.__resizeRAF__),this.__resizeRAF__=Um(function(){a(_)&&(_.__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 m="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),g="";{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){g=p[_],h="-"+g.toLowerCase()+"-",r=m[_],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],m=f.createElement("style");m.id="detectElementResize",m.type="text/css",e!=null&&m.setAttribute("nonce",e),m.styleSheet?m.styleSheet.cssText=h:m.appendChild(f.createTextNode(h)),p.appendChild(m)}};return{addResizeListener:function(f,h){if(l)f.attachEvent("onresize",h);else{if(!f.__resizeTriggers__){const p=f.ownerDocument,m=ur.getComputedStyle(f);m&&m.position==="static"&&(f.style.position="relative"),c(p),f.__resizeLast__={},f.__resizeListeners__=[],(f.__resizeTriggers__=p.createElement("div")).className="resize-triggers";const g=p.createElement("div");g.className="expand-trigger",g.appendChild(p.createElement("div"));const x=p.createElement("div");x.className="contract-trigger",f.__resizeTriggers__.appendChild(g),f.__resizeTriggers__.appendChild(x),f.appendChild(f.__resizeTriggers__),o(f),f.addEventListener("scroll",s,!0),r&&(f.__resizeTriggers__.__animationListener__=function(w){w.animationName===n&&o(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 lX extends v.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 a=window.getComputedStyle(this._parentNode)||{},o=parseFloat(a.paddingLeft||"0"),s=parseFloat(a.paddingRight||"0"),l=parseFloat(a.paddingTop||"0"),c=parseFloat(a.paddingBottom||"0"),u=this._parentNode.getBoundingClientRect(),d=u.height-l-c,f=u.width-o-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=sX(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:a=!1,doNotBailOutOnEmptyChildren:o=!1,nonce:s,onResize:l,style:c={},tagName:u="div",...d}=this.props,{height:f,width:h}=this.state,p={overflow:"visible"},m={};let g=!1;return i||(f===0&&(g=!0),p.height=0,m.height=f,m.scaledHeight=f),a||(h===0&&(g=!0),p.width=0,m.width=h,m.scaledWidth=h),o&&(g=!1),v.createElement(u,{ref:this._setRef,style:{...p,...c},...d},!g&&t(m))}}function jf(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function rv(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Ms(){}var Ua=.7,rs=1/Ua,Lo="\\s*([+-]?\\d+)\\s*",Zl="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Fr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",cX=/^#([0-9a-f]{3,8})$/,uX=new RegExp(`^rgb\\(${Lo},${Lo},${Lo}\\)$`),dX=new RegExp(`^rgb\\(${Fr},${Fr},${Fr}\\)$`),fX=new RegExp(`^rgba\\(${Lo},${Lo},${Lo},${Zl}\\)$`),hX=new RegExp(`^rgba\\(${Fr},${Fr},${Fr},${Zl}\\)$`),pX=new RegExp(`^hsl\\(${Zl},${Fr},${Fr}\\)$`),mX=new RegExp(`^hsla\\(${Zl},${Fr},${Fr},${Zl}\\)$`),n2={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};jf(Ms,Xl,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:r2,formatHex:r2,formatHex8:gX,formatHsl:vX,formatRgb:i2,toString:i2});function r2(){return this.rgb().formatHex()}function gX(){return this.rgb().formatHex8()}function vX(){return M6(this).formatHsl()}function i2(){return this.rgb().formatRgb()}function Xl(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=cX.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?a2(t):n===3?new Mn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?ou(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?ou(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=uX.exec(e))?new Mn(t[1],t[2],t[3],1):(t=dX.exec(e))?new Mn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=fX.exec(e))?ou(t[1],t[2],t[3],t[4]):(t=hX.exec(e))?ou(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=pX.exec(e))?l2(t[1],t[2]/100,t[3]/100,1):(t=mX.exec(e))?l2(t[1],t[2]/100,t[3]/100,t[4]):n2.hasOwnProperty(e)?a2(n2[e]):e==="transparent"?new Mn(NaN,NaN,NaN,0):null}function a2(e){return new Mn(e>>16&255,e>>8&255,e&255,1)}function ou(e,t,n,r){return r<=0&&(e=t=n=NaN),new Mn(e,t,n,r)}function k6(e){return e instanceof Ms||(e=Xl(e)),e?(e=e.rgb(),new Mn(e.r,e.g,e.b,e.opacity)):new Mn}function is(e,t,n,r){return arguments.length===1?k6(e):new Mn(e,t,n,r??1)}function Mn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}jf(Mn,is,rv(Ms,{brighter(e){return e=e==null?rs:Math.pow(rs,e),new Mn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Ua:Math.pow(Ua,e),new Mn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Mn(Ra(this.r),Ra(this.g),Ra(this.b),ld(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:o2,formatHex:o2,formatHex8:bX,formatRgb:s2,toString:s2}));function o2(){return`#${Ta(this.r)}${Ta(this.g)}${Ta(this.b)}`}function bX(){return`#${Ta(this.r)}${Ta(this.g)}${Ta(this.b)}${Ta((isNaN(this.opacity)?1:this.opacity)*255)}`}function s2(){const e=ld(this.opacity);return`${e===1?"rgb(":"rgba("}${Ra(this.r)}, ${Ra(this.g)}, ${Ra(this.b)}${e===1?")":`, ${e})`}`}function ld(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 Ta(e){return e=Ra(e),(e<16?"0":"")+e.toString(16)}function l2(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new xr(e,t,n,r)}function M6(e){if(e instanceof xr)return new xr(e.h,e.s,e.l,e.opacity);if(e instanceof Ms||(e=Xl(e)),!e)return new xr;if(e instanceof xr)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,l=(a+i)/2;return s?(t===a?o=(n-r)/s+(n<r)*6:n===a?o=(r-t)/s+2:o=(t-n)/s+4,s/=l<.5?a+i:2-a-i,o*=60):s=l>0&&l<1?0:o,new xr(o,s,l,e.opacity)}function yX(e,t,n,r){return arguments.length===1?M6(e):new xr(e,t,n,r??1)}function xr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}jf(xr,yX,rv(Ms,{brighter(e){return e=e==null?rs:Math.pow(rs,e),new xr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ua:Math.pow(Ua,e),new xr(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 Mn(yp(e>=240?e-240:e+120,i,r),yp(e,i,r),yp(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new xr(c2(this.h),su(this.s),su(this.l),ld(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=ld(this.opacity);return`${e===1?"hsl(":"hsla("}${c2(this.h)}, ${su(this.s)*100}%, ${su(this.l)*100}%${e===1?")":`, ${e})`}`}}));function c2(e){return e=(e||0)%360,e<0?e+360:e}function su(e){return Math.max(0,Math.min(1,e||0))}function yp(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 xX=Math.PI/180,wX=180/Math.PI;var E6=-.14861,iv=1.78277,av=-.29227,If=-.90649,Kl=1.97294,u2=Kl*If,d2=Kl*iv,f2=iv*av-If*E6;function _X(e){if(e instanceof Da)return new Da(e.h,e.s,e.l,e.opacity);e instanceof Mn||(e=k6(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(f2*r+u2*t-d2*n)/(f2+u2-d2),a=r-i,o=(Kl*(n-i)-av*a)/If,s=Math.sqrt(o*o+a*a)/(Kl*i*(1-i)),l=s?Math.atan2(o,a)*wX-120:NaN;return new Da(l<0?l+360:l,s,i,e.opacity)}function qr(e,t,n,r){return arguments.length===1?_X(e):new Da(e,t,n,r??1)}function Da(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}jf(Da,qr,rv(Ms,{brighter(e){return e=e==null?rs:Math.pow(rs,e),new Da(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ua:Math.pow(Ua,e),new Da(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*xX,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new Mn(255*(t+n*(E6*r+iv*i)),255*(t+n*(av*r+If*i)),255*(t+n*(Kl*r)),this.opacity)}}));function CX(e,t,n,r,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*n+(1+3*e+3*a-3*o)*r+o*i)/6}function SX(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],a=e[r+1],o=r>0?e[r-1]:2*i-a,s=r<t-1?e[r+2]:2*a-i;return CX((n-r/t)*t,o,i,a,s)}}const Nf=e=>()=>e;function O6(e,t){return function(n){return e+n*t}}function TX(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 $X(e,t){var n=t-e;return n?O6(e,n>180||n<-180?n-360*Math.round(n/360):n):Nf(isNaN(e)?t:e)}function kX(e){return(e=+e)==1?Fo:function(t,n){return n-t?TX(t,n,e):Nf(isNaN(t)?n:t)}}function Fo(e,t){var n=t-e;return n?O6(e,n):Nf(isNaN(e)?t:e)}const h2=function e(t){var n=kX(t);function r(i,a){var o=n((i=is(i)).r,(a=is(a)).r),s=n(i.g,a.g),l=n(i.b,a.b),c=Fo(i.opacity,a.opacity);return function(u){return i.r=o(u),i.g=s(u),i.b=l(u),i.opacity=c(u),i+""}}return r.gamma=e,r}(1);function MX(e){return function(t){var n=t.length,r=new Array(n),i=new Array(n),a=new Array(n),o,s;for(o=0;o<n;++o)s=is(t[o]),r[o]=s.r||0,i[o]=s.g||0,a[o]=s.b||0;return r=e(r),i=e(i),a=e(a),s.opacity=1,function(l){return s.r=r(l),s.g=i(l),s.b=a(l),s+""}}}var EX=MX(SX);function OX(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function AX(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function RX(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),a=new Array(n),o;for(o=0;o<r;++o)i[o]=ov(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(s){for(o=0;o<r;++o)a[o]=i[o](s);return a}}function DX(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Jl(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function jX(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]=ov(e[i],t[i]):r[i]=t[i];return function(a){for(i in n)r[i]=n[i](a);return r}}var Hm=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,xp=new RegExp(Hm.source,"g");function IX(e){return function(){return e}}function NX(e){return function(t){return e(t)+""}}function A6(e,t){var n=Hm.lastIndex=xp.lastIndex=0,r,i,a,o=-1,s=[],l=[];for(e=e+"",t=t+"";(r=Hm.exec(e))&&(i=xp.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,l.push({i:o,x:Jl(r,i)})),n=xp.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?l[0]?NX(l[0].x):IX(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 ov(e,t){var n=typeof t,r;return t==null||n==="boolean"?Nf(t):(n==="number"?Jl:n==="string"?(r=Xl(t))?(t=r,h2):A6:t instanceof Xl?h2:t instanceof Date?DX:AX(t)?OX:Array.isArray(t)?RX:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?jX:Jl)(e,t)}function R6(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function D6(e){return function t(n){n=+n;function r(i,a){var o=e((i=qr(i)).h,(a=qr(a)).h),s=Fo(i.s,a.s),l=Fo(i.l,a.l),c=Fo(i.opacity,a.opacity);return function(u){return i.h=o(u),i.s=s(u),i.l=l(Math.pow(u,n)),i.opacity=c(u),i+""}}return r.gamma=t,r}(1)}D6($X);var sv=D6(Fo),PX="__lodash_hash_undefined__";function LX(e){return this.__data__.set(e,PX),this}var FX=LX;function BX(e){return this.__data__.has(e)}var zX=BX,WX=U0,UX=FX,HX=zX;function cd(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new WX;++t<n;)this.add(e[t])}cd.prototype.add=cd.prototype.push=UX;cd.prototype.has=HX;var lv=cd;function VX(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}var qX=VX;function YX(e){return e!==e}var GX=YX;function ZX(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}var XX=ZX,KX=qX,JX=GX,QX=XX;function eK(e,t,n){return t===t?QX(e,t,n):KX(e,JX,n)}var tK=eK,nK=tK;function rK(e,t){var n=e==null?0:e.length;return!!n&&nK(e,t,0)>-1}var j6=rK;function iK(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 I6=iK;function aK(e,t){return e.has(t)}var cv=aK,oK=lv,sK=j6,lK=I6,cK=Df,uK=Ss,dK=cv,fK=200;function hK(e,t,n,r){var i=-1,a=sK,o=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=cK(t,uK(n))),r?(a=lK,o=!1):t.length>=fK&&(a=dK,o=!1,t=new oK(t));e:for(;++i<s;){var u=e[i],d=n==null?u:n(u);if(u=r||u!==0?u:0,o&&d===d){for(var f=c;f--;)if(t[f]===d)continue e;l.push(u)}else a(t,d,r)||l.push(u)}return l}var pK=hK,mK=pK,gK=Q0,vK=o6,bK=gK(function(e,t){return vK(e)?mK(e,t):[]}),yK=bK;const N6=nn(yK);function yt(e){return function(){return e}}const p2=Math.abs,Sn=Math.atan2,pa=Math.cos,xK=Math.max,wp=Math.min,Dr=Math.sin,Oo=Math.sqrt,$n=1e-12,Ql=Math.PI,ud=Ql/2,$u=2*Ql;function wK(e){return e>1?0:e<-1?Ql:Math.acos(e)}function m2(e){return e>=1?ud:e<=-1?-ud:Math.asin(e)}const Vm=Math.PI,qm=2*Vm,ba=1e-6,_K=qm-ba;function P6(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function CK(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return P6;const n=10**t;return function(r){this._+=r[0];for(let i=1,a=r.length;i<a;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}let SK=class{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?P6:CK(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,a,o){this._append`C${+t},${+n},${+r},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,n,r,i,a){if(t=+t,n=+n,r=+r,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,s=this._y1,l=r-t,c=i-n,u=o-t,d=s-n,f=u*u+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(f>ba)if(!(Math.abs(d*l-c*u)>ba)||!a)this._append`L${this._x1=t},${this._y1=n}`;else{let h=r-o,p=i-s,m=l*l+c*c,g=h*h+p*p,x=Math.sqrt(m),_=Math.sqrt(f),w=a*Math.tan((Vm-Math.acos((m+f-g)/(2*x*_)))/2),C=w/_,b=w/x;Math.abs(C-1)>ba&&this._append`L${t+C*u},${n+C*d}`,this._append`A${a},${a},0,0,${+(d*h>u*p)},${this._x1=t+b*l},${this._y1=n+b*c}`}}arc(t,n,r,i,a,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),l=r*Math.sin(i),c=t+s,u=n+l,d=1^o,f=o?i-a:a-i;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>ba||Math.abs(this._y1-u)>ba)&&this._append`L${c},${u}`,r&&(f<0&&(f=f%qm+qm),f>_K?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>ba&&this._append`A${r},${r},0,${+(f>=Vm)},${d},${this._x1=t+r*Math.cos(a)},${this._y1=n+r*Math.sin(a)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}};function uv(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 SK(t)}function TK(e){return e.innerRadius}function $K(e){return e.outerRadius}function kK(e){return e.startAngle}function MK(e){return e.endAngle}function EK(e){return e&&e.padAngle}function OK(e,t,n,r,i,a,o,s){var l=n-e,c=r-t,u=o-i,d=s-a,f=d*l-u*c;if(!(f*f<$n))return f=(u*(t-a)-d*(e-i))/f,[e+f*l,t+f*c]}function lu(e,t,n,r,i,a,o){var s=e-n,l=t-r,c=(o?a:-a)/Oo(s*s+l*l),u=c*l,d=-c*s,f=e+u,h=t+d,p=n+u,m=r+d,g=(f+p)/2,x=(h+m)/2,_=p-f,w=m-h,C=_*_+w*w,b=i-a,S=f*m-p*h,M=(w<0?-1:1)*Oo(xK(0,b*b*C-S*S)),$=(S*w-_*M)/C,k=(-S*_-w*M)/C,D=(S*w+_*M)/C,T=(-S*_+w*M)/C,E=$-g,R=k-x,j=D-g,O=T-x;return E*E+R*R>j*j+O*O&&($=D,k=T),{cx:$,cy:k,x01:-u,y01:-d,x11:$*(i/b-1),y11:k*(i/b-1)}}function AK(){var e=TK,t=$K,n=yt(0),r=null,i=kK,a=MK,o=EK,s=null,l=uv(c);function c(){var u,d,f=+e.apply(this,arguments),h=+t.apply(this,arguments),p=i.apply(this,arguments)-ud,m=a.apply(this,arguments)-ud,g=p2(m-p),x=m>p;if(s||(s=u=l()),h<f&&(d=h,h=f,f=d),!(h>$n))s.moveTo(0,0);else if(g>$u-$n)s.moveTo(h*pa(p),h*Dr(p)),s.arc(0,0,h,p,m,!x),f>$n&&(s.moveTo(f*pa(m),f*Dr(m)),s.arc(0,0,f,m,p,x));else{var _=p,w=m,C=p,b=m,S=g,M=g,$=o.apply(this,arguments)/2,k=$>$n&&(r?+r.apply(this,arguments):Oo(f*f+h*h)),D=wp(p2(h-f)/2,+n.apply(this,arguments)),T=D,E=D,R,j;if(k>$n){var O=m2(k/f*Dr($)),A=m2(k/h*Dr($));(S-=O*2)>$n?(O*=x?1:-1,C+=O,b-=O):(S=0,C=b=(p+m)/2),(M-=A*2)>$n?(A*=x?1:-1,_+=A,w-=A):(M=0,_=w=(p+m)/2)}var I=h*pa(_),F=h*Dr(_),z=f*pa(b),L=f*Dr(b);if(D>$n){var H=h*pa(w),Y=h*Dr(w),q=f*pa(C),Z=f*Dr(C),X;if(g<Ql)if(X=OK(I,F,q,Z,H,Y,z,L)){var J=I-X[0],ee=F-X[1],W=H-X[0],P=Y-X[1],B=1/Dr(wK((J*W+ee*P)/(Oo(J*J+ee*ee)*Oo(W*W+P*P)))/2),V=Oo(X[0]*X[0]+X[1]*X[1]);T=wp(D,(f-V)/(B-1)),E=wp(D,(h-V)/(B+1))}else T=E=0}M>$n?E>$n?(R=lu(q,Z,I,F,h,E,x),j=lu(H,Y,z,L,h,E,x),s.moveTo(R.cx+R.x01,R.cy+R.y01),E<D?s.arc(R.cx,R.cy,E,Sn(R.y01,R.x01),Sn(j.y01,j.x01),!x):(s.arc(R.cx,R.cy,E,Sn(R.y01,R.x01),Sn(R.y11,R.x11),!x),s.arc(0,0,h,Sn(R.cy+R.y11,R.cx+R.x11),Sn(j.cy+j.y11,j.cx+j.x11),!x),s.arc(j.cx,j.cy,E,Sn(j.y11,j.x11),Sn(j.y01,j.x01),!x))):(s.moveTo(I,F),s.arc(0,0,h,_,w,!x)):s.moveTo(I,F),!(f>$n)||!(S>$n)?s.lineTo(z,L):T>$n?(R=lu(z,L,H,Y,f,-T,x),j=lu(I,F,q,Z,f,-T,x),s.lineTo(R.cx+R.x01,R.cy+R.y01),T<D?s.arc(R.cx,R.cy,T,Sn(R.y01,R.x01),Sn(j.y01,j.x01),!x):(s.arc(R.cx,R.cy,T,Sn(R.y01,R.x01),Sn(R.y11,R.x11),!x),s.arc(0,0,f,Sn(R.cy+R.y11,R.cx+R.x11),Sn(j.cy+j.y11,j.cx+j.x11),x),s.arc(j.cx,j.cy,T,Sn(j.y11,j.x11),Sn(j.y01,j.x01),!x))):s.arc(0,0,f,b,C,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)+ +a.apply(this,arguments))/2-Ql/2;return[pa(d)*u,Dr(d)*u]},c.innerRadius=function(u){return arguments.length?(e=typeof u=="function"?u:yt(+u),c):e},c.outerRadius=function(u){return arguments.length?(t=typeof u=="function"?u:yt(+u),c):t},c.cornerRadius=function(u){return arguments.length?(n=typeof u=="function"?u:yt(+u),c):n},c.padRadius=function(u){return arguments.length?(r=u==null?null:typeof u=="function"?u:yt(+u),c):r},c.startAngle=function(u){return arguments.length?(i=typeof u=="function"?u:yt(+u),c):i},c.endAngle=function(u){return arguments.length?(a=typeof u=="function"?u:yt(+u),c):a},c.padAngle=function(u){return arguments.length?(o=typeof u=="function"?u:yt(+u),c):o},c.context=function(u){return arguments.length?(s=u??null,c):s},c}function Pf(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function L6(e){this._context=e}L6.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 dv(e){return new L6(e)}function F6(e){return e[0]}function B6(e){return e[1]}function fv(e,t){var n=yt(!0),r=null,i=dv,a=null,o=uv(s);e=typeof e=="function"?e:e===void 0?F6:yt(e),t=typeof t=="function"?t:t===void 0?B6:yt(t);function s(l){var c,u=(l=Pf(l)).length,d,f=!1,h;for(r==null&&(a=i(h=o())),c=0;c<=u;++c)!(c<u&&n(d=l[c],c,l))===f&&((f=!f)?a.lineStart():a.lineEnd()),f&&a.point(+e(d,c,l),+t(d,c,l));if(h)return a=null,h+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:yt(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:yt(+l),s):t},s.defined=function(l){return arguments.length?(n=typeof l=="function"?l:yt(!!l),s):n},s.curve=function(l){return arguments.length?(i=l,r!=null&&(a=i(r)),s):i},s.context=function(l){return arguments.length?(l==null?r=a=null:a=i(r=l),s):r},s}function RK(e,t,n){var r=null,i=yt(!0),a=null,o=dv,s=null,l=uv(c);e=typeof e=="function"?e:e===void 0?F6:yt(+e),t=typeof t=="function"?t:yt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?B6:yt(+n);function c(d){var f,h,p,m=(d=Pf(d)).length,g,x=!1,_,w=new Array(m),C=new Array(m);for(a==null&&(s=o(_=l())),f=0;f<=m;++f){if(!(f<m&&i(g=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],C[p]);s.lineEnd(),s.areaEnd()}x&&(w[f]=+e(g,f,d),C[f]=+t(g,f,d),s.point(r?+r(g,f,d):w[f],n?+n(g,f,d):C[f]))}if(_)return s=null,_+""||null}function u(){return fv().defined(i).curve(o).context(a)}return c.x=function(d){return arguments.length?(e=typeof d=="function"?d:yt(+d),r=null,c):e},c.x0=function(d){return arguments.length?(e=typeof d=="function"?d:yt(+d),c):e},c.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:yt(+d),c):r},c.y=function(d){return arguments.length?(t=typeof d=="function"?d:yt(+d),n=null,c):t},c.y0=function(d){return arguments.length?(t=typeof d=="function"?d:yt(+d),c):t},c.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:yt(+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:yt(!!d),c):i},c.curve=function(d){return arguments.length?(o=d,a!=null&&(s=o(a)),c):o},c.context=function(d){return arguments.length?(d==null?a=s=null:s=o(a=d),c):a},c}function DK(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function jK(e){return e}function IK(){var e=jK,t=DK,n=null,r=yt(0),i=yt($u),a=yt(0);function o(s){var l,c=(s=Pf(s)).length,u,d,f=0,h=new Array(c),p=new Array(c),m=+r.apply(this,arguments),g=Math.min($u,Math.max(-$u,i.apply(this,arguments)-m)),x,_=Math.min(Math.abs(g)/c,a.apply(this,arguments)),w=_*(g<0?-1:1),C;for(l=0;l<c;++l)(C=p[h[l]=l]=+e(s[l],l,s))>0&&(f+=C);for(t!=null?h.sort(function(b,S){return t(p[b],p[S])}):n!=null&&h.sort(function(b,S){return n(s[b],s[S])}),l=0,d=f?(g-c*w)/f:0;l<c;++l,m=x)u=h[l],C=p[u],x=m+(C>0?C*d:0)+w,p[u]={data:s[u],index:l,value:C,startAngle:m,endAngle:x,padAngle:_};return p}return o.value=function(s){return arguments.length?(e=typeof s=="function"?s:yt(+s),o):e},o.sortValues=function(s){return arguments.length?(t=s,n=null,o):t},o.sort=function(s){return arguments.length?(n=s,t=null,o):n},o.startAngle=function(s){return arguments.length?(r=typeof s=="function"?s:yt(+s),o):r},o.endAngle=function(s){return arguments.length?(i=typeof s=="function"?s:yt(+s),o):i},o.padAngle=function(s){return arguments.length?(a=typeof s=="function"?s:yt(+s),o):a},o}function Ji(){}function dd(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 Lf(e){this._context=e}Lf.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:dd(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:dd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function NK(e){return new Lf(e)}function z6(e){this._context=e}z6.prototype={areaStart:Ji,areaEnd:Ji,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:dd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function PK(e){return new z6(e)}function W6(e){this._context=e}W6.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:dd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function LK(e){return new W6(e)}function U6(e,t){this._basis=new Lf(e),this._beta=t}U6.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],a=e[n]-r,o=t[n]-i,s=-1,l;++s<=n;)l=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+l*a),this._beta*t[s]+(1-this._beta)*(i+l*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const FK=function e(t){function n(r){return t===1?new Lf(r):new U6(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function fd(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 hv(e,t){this._context=e,this._k=(1-t)/6}hv.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:fd(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:fd(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 BK=function e(t){function n(r){return new hv(r,t)}return n.tension=function(r){return e(+r)},n}(0);function pv(e,t){this._context=e,this._k=(1-t)/6}pv.prototype={areaStart:Ji,areaEnd:Ji,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:fd(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 zK=function e(t){function n(r){return new pv(r,t)}return n.tension=function(r){return e(+r)},n}(0);function mv(e,t){this._context=e,this._k=(1-t)/6}mv.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:fd(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 WK=function e(t){function n(r){return new mv(r,t)}return n.tension=function(r){return e(+r)},n}(0);function gv(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>$n){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>$n){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);a=(a*c+e._x1*e._l23_2a-t*e._l12_2a)/u,o=(o*c+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function H6(e,t){this._context=e,this._alpha=t}H6.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:gv(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 UK=function e(t){function n(r){return t?new H6(r,t):new hv(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function V6(e,t){this._context=e,this._alpha=t}V6.prototype={areaStart:Ji,areaEnd:Ji,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:gv(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 HK=function e(t){function n(r){return t?new V6(r,t):new pv(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function q6(e,t){this._context=e,this._alpha=t}q6.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:gv(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 VK=function e(t){function n(r){return t?new q6(r,t):new mv(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function Y6(e){this._context=e}Y6.prototype={areaStart:Ji,areaEnd:Ji,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 qK(e){return new Y6(e)}function g2(e){return e<0?-1:1}function v2(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(g2(a)+g2(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function b2(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function _p(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function hd(e){this._context=e}hd.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:_p(this,this._t0,b2(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,_p(this,b2(this,n=v2(this,e,t)),n);break;default:_p(this,this._t0,n=v2(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function G6(e){this._context=new Z6(e)}(G6.prototype=Object.create(hd.prototype)).point=function(e,t){hd.prototype.point.call(this,t,e)};function Z6(e){this._context=e}Z6.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function YK(e){return new hd(e)}function GK(e){return new G6(e)}function X6(e){this._context=e}X6.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=y2(e),i=y2(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function y2(e){var t,n=e.length-1,r,i=new Array(n),a=new Array(n),o=new Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function ZK(e){return new X6(e)}function Ff(e,t){this._context=e,this._t=t}Ff.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 XK(e){return new Ff(e,.5)}function KK(e){return new Ff(e,0)}function JK(e){return new Ff(e,1)}function x2(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,s=a.length;n<o;++n)for(i=a,a=e[t[n]],r=0;r<s;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function w2(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function QK(e,t){return e[t]}function eJ(e){const t=[];return t.key=e,t}function tJ(){var e=yt([]),t=w2,n=x2,r=QK;function i(a){var o=Array.from(e.apply(this,arguments),eJ),s,l=o.length,c=-1,u;for(const d of a)for(s=0,++c;s<l;++s)(o[s][c]=[0,+r(d,o[s].key,c,a)]).data=d;for(s=0,u=Pf(t(o));s<l;++s)o[u[s]].index=s;return n(o,u),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:yt(Array.from(a)),i):e},i.value=function(a){return arguments.length?(r=typeof a=="function"?a:yt(+a),i):r},i.order=function(a){return arguments.length?(t=a==null?w2:typeof a=="function"?a:yt(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(n=a??x2,i):n},i}function nJ(e,t){if((l=e.length)>0)for(var n,r=0,i,a,o,s,l,c=e[t[0]].length;r<c;++r)for(o=s=0,n=0;n<l;++n)(a=(i=e[t[n]][r])[1]-i[0])>0?(i[0]=o,i[1]=o+=a):a<0?(i[1]=s,i[0]=s+=a):(i[0]=0,i[1]=a)}function ku(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function rJ(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function vv(e){let t,n,r;e.length!==2?(t=ku,n=(s,l)=>ku(e(s),l),r=(s,l)=>e(s)-l):(t=e===ku||e===rJ?e:iJ,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 a(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){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:o,right:a}}function iJ(){return 0}function aJ(e){return e===null?NaN:+e}const oJ=vv(ku),sJ=oJ.right;vv(aJ).center;class _2 extends Map{constructor(t,n=uJ){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(C2(this,t))}has(t){return super.has(C2(this,t))}set(t,n){return super.set(lJ(this,t),n)}delete(t){return super.delete(cJ(this,t))}}function C2({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function lJ({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function cJ({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function uJ(e){return e!==null&&typeof e=="object"?e.valueOf():e}const dJ=Math.sqrt(50),fJ=Math.sqrt(10),hJ=Math.sqrt(2);function pd(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/Math.pow(10,i),o=a>=dJ?10:a>=fJ?5:a>=hJ?2:1;let s,l,c;return i<0?(c=Math.pow(10,-i)/o,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)*o,s=Math.round(e/c),l=Math.round(t/c),s*c<e&&++s,l*c>t&&--l),l<s&&.5<=n&&n<2?pd(e,t,n*2):[s,l,c]}function Ym(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,a,o]=r?pd(t,e,n):pd(e,t,n);if(!(a>=i))return[];const s=a-i+1,l=new Array(s);if(r)if(o<0)for(let c=0;c<s;++c)l[c]=(a-c)/-o;else for(let c=0;c<s;++c)l[c]=(a-c)*o;else if(o<0)for(let c=0;c<s;++c)l[c]=(i+c)/-o;else for(let c=0;c<s;++c)l[c]=(i+c)*o;return l}function Gm(e,t,n){return t=+t,e=+e,n=+n,pd(e,t,n)[2]}function Zm(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?Gm(t,e,n):Gm(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function pJ(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=new Array(i);++r<i;)a[r]=e+r*n;return a}function Qa(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}const S2=Symbol("implicit");function $a(){var e=new _2,t=[],n=[],r=S2;function i(a){let o=e.get(a);if(o===void 0){if(r!==S2)return r;e.set(a,o=t.push(a)-1)}return n[o%n.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new _2;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(n=Array.from(a),i):n.slice()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return $a(t,n).unknown(r)},Qa.apply(i,arguments),i}function bv(){var e=$a().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,o,s=!1,l=0,c=0,u=.5;delete e.unknown;function d(){var f=t().length,h=i<r,p=h?i:r,m=h?r:i;a=(m-p)/Math.max(1,f-l+c*2),s&&(a=Math.floor(a)),p+=(m-p-a*(f-l))*u,o=a*(1-l),s&&(p=Math.round(p),o=Math.round(o));var g=pJ(f).map(function(x){return p+a*x});return n(h?g.reverse():g)}return e.domain=function(f){return arguments.length?(t(f),d()):t()},e.range=function(f){return arguments.length?([r,i]=f,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(f){return[r,i]=f,r=+r,i=+i,s=!0,d()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(f){return arguments.length?(s=!!f,d()):s},e.padding=function(f){return arguments.length?(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 bv(t(),[r,i]).round(s).paddingInner(l).paddingOuter(c).align(u)},Qa.apply(d(),arguments)}function K6(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return K6(t())},e}function mJ(){return K6(bv.apply(null,arguments).paddingInner(1))}function gJ(e){return function(){return e}}function vJ(e){return+e}var T2=[0,1];function Ao(e){return e}function Xm(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:gJ(isNaN(t)?NaN:.5)}function bJ(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function yJ(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=Xm(i,r),a=n(o,a)):(r=Xm(r,i),a=n(a,o)),function(s){return a(r(s))}}function xJ(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),a=new Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=Xm(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(s){var l=sJ(e,s,1,r)-1;return a[l](i[l](s))}}function Bf(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function yv(){var e=T2,t=T2,n=ov,r,i,a,o=Ao,s,l,c;function u(){var f=Math.min(e.length,t.length);return o!==Ao&&(o=bJ(e[0],e[f-1])),s=f>2?xJ:yJ,l=c=null,d}function d(f){return f==null||isNaN(f=+f)?a:(l||(l=s(e.map(r),t,n)))(r(o(f)))}return d.invert=function(f){return o(i((c||(c=s(t,e.map(r),Jl)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,vJ),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=R6,u()},d.clamp=function(f){return arguments.length?(o=f?!0:Ao,u()):o!==Ao},d.interpolate=function(f){return arguments.length?(n=f,u()):n},d.unknown=function(f){return arguments.length?(a=f,d):a},function(f,h){return r=f,i=h,u()}}function J6(){return yv()(Ao,Ao)}function wJ(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function md(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 as(e){return e=md(Math.abs(e)),e?e[1]:NaN}function _J(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),a.push(n.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function CJ(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var SJ=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ec(e){if(!(t=SJ.exec(e)))throw new Error("invalid format: "+e);var t;return new xv({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]})}ec.prototype=xv.prototype;function xv(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+""}xv.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 TJ(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 Q6;function $J(e,t){var n=md(e,t);if(!n)return e+"";var r=n[0],i=n[1],a=i-(Q6=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+md(e,Math.max(0,t+a-1))[0]}function $2(e,t){var n=md(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 k2={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:wJ,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 $2(e*100,t)},r:$2,s:$J,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function M2(e){return e}var E2=Array.prototype.map,O2=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function kJ(e){var t=e.grouping===void 0||e.thousands===void 0?M2:_J(E2.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+"",a=e.numerals===void 0?M2:CJ(E2.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(d){d=ec(d);var f=d.fill,h=d.align,p=d.sign,m=d.symbol,g=d.zero,x=d.width,_=d.comma,w=d.precision,C=d.trim,b=d.type;b==="n"?(_=!0,b="g"):k2[b]||(w===void 0&&(w=12),C=!0,b="g"),(g||f==="0"&&h==="=")&&(g=!0,f="0",h="=");var S=m==="$"?n:m==="#"&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",M=m==="$"?r:/[%p]/.test(b)?o:"",$=k2[b],k=/[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 D(T){var E=S,R=M,j,O,A;if(b==="c")R=$(T)+R,T="";else{T=+T;var I=T<0||1/T<0;if(T=isNaN(T)?l:$(Math.abs(T),w),C&&(T=TJ(T)),I&&+T==0&&p!=="+"&&(I=!1),E=(I?p==="("?p:s:p==="-"||p==="("?"":p)+E,R=(b==="s"?O2[8+Q6/3]:"")+R+(I&&p==="("?")":""),k){for(j=-1,O=T.length;++j<O;)if(A=T.charCodeAt(j),48>A||A>57){R=(A===46?i+T.slice(j+1):T.slice(j))+R,T=T.slice(0,j);break}}}_&&!g&&(T=t(T,1/0));var F=E.length+T.length+R.length,z=F<x?new Array(x-F+1).join(f):"";switch(_&&g&&(T=t(z+T,z.length?x-R.length:1/0),z=""),h){case"<":T=E+T+R+z;break;case"=":T=E+z+T+R;break;case"^":T=z.slice(0,F=z.length>>1)+E+T+R+z.slice(F);break;default:T=z+E+T+R;break}return a(T)}return D.toString=function(){return d+""},D}function u(d,f){var h=c((d=ec(d),d.type="f",d)),p=Math.max(-8,Math.min(8,Math.floor(as(f)/3)))*3,m=Math.pow(10,-p),g=O2[8+p/3];return function(x){return h(m*x)+g}}return{format:c,formatPrefix:u}}var cu,Ac,eS;MJ({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function MJ(e){return cu=kJ(e),Ac=cu.format,eS=cu.formatPrefix,cu}function EJ(e){return Math.max(0,-as(Math.abs(e)))}function OJ(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(as(t)/3)))*3-as(Math.abs(e)))}function AJ(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,as(t)-as(e))+1}function RJ(e,t,n,r){var i=Zm(e,t,n),a;switch(r=ec(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=OJ(i,o))&&(r.precision=a),eS(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=AJ(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=EJ(i))&&(r.precision=a-(r.type==="%")*2);break}}return Ac(r)}function tS(e){var t=e.domain;return e.ticks=function(n){var r=t();return Ym(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return RJ(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],l,c,u=10;for(s<o&&(c=o,o=s,s=c,c=i,i=a,a=c);u-- >0;){if(c=Gm(o,s,n),c===l)return r[i]=o,r[a]=s,t(r);if(c>0)o=Math.floor(o/c)*c,s=Math.ceil(s/c)*c;else if(c<0)o=Math.ceil(o*c)/c,s=Math.floor(s*c)/c;else break;l=c}return e},e}function gd(){var e=J6();return e.copy=function(){return Bf(e,gd())},Qa.apply(e,arguments),tS(e)}function nS(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a<i&&(o=n,n=r,r=o,o=i,i=a,a=o),e[n]=t.floor(i),e[r]=t.ceil(a),e}function A2(e){return Math.log(e)}function R2(e){return Math.exp(e)}function DJ(e){return-Math.log(-e)}function jJ(e){return-Math.exp(-e)}function IJ(e){return isFinite(e)?+("1e"+e):e<0?0:e}function NJ(e){return e===10?IJ:e===Math.E?Math.exp:t=>Math.pow(e,t)}function PJ(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 D2(e){return(t,n)=>-e(-t,n)}function LJ(e){const t=e(A2,R2),n=t.domain;let r=10,i,a;function o(){return i=PJ(r),a=NJ(r),n()[0]<0?(i=D2(i),a=D2(a),e(DJ,jJ)):e(A2,R2),t}return t.base=function(s){return arguments.length?(r=+s,o()):r},t.domain=function(s){return arguments.length?(n(s),o()):n()},t.ticks=s=>{const 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,m;const g=s==null?10:+s;let x=[];if(!(r%1)&&h-f<g){if(f=Math.floor(f),h=Math.ceil(h),c>0){for(;f<=h;++f)for(p=1;p<r;++p)if(m=f<0?p/a(-f):p*a(f),!(m<c)){if(m>u)break;x.push(m)}}else for(;f<=h;++f)for(p=r-1;p>=1;--p)if(m=f>0?p/a(-f):p*a(f),!(m<c)){if(m>u)break;x.push(m)}x.length*2<g&&(x=Ym(c,u,g))}else x=Ym(f,h,Math.min(h-f,g)).map(a);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=ec(l)).precision==null&&(l.trim=!0),l=Ac(l)),s===1/0)return l;const c=Math.max(1,r*s/t.ticks().length);return u=>{let d=u/a(Math.round(i(u)));return d*r<r-.5&&(d*=r),d<=c?l(u):""}},t.nice=()=>n(nS(n(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function rS(){const e=LJ(yv()).domain([1,10]);return e.copy=()=>Bf(e,rS()).base(e.base()),Qa.apply(e,arguments),e}function j2(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function I2(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function FJ(e){var t=1,n=e(j2(t),I2(t));return n.constant=function(r){return arguments.length?e(j2(t=+r),I2(t)):t},tS(n)}function iS(){var e=FJ(yv());return e.copy=function(){return Bf(e,iS()).constant(e.constant())},Qa.apply(e,arguments)}const Cp=new Date,Sp=new Date;function gn(e,t,n,r){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),s=i.ceil(a);return a-o<s-a?o:s},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,s)=>{const l=[];if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a<o)||!(s>0))return l;let c;do l.push(c=new Date(+a)),t(a,s),e(a);while(c<a&&a<o);return l},i.filter=a=>gn(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););}),n&&(i.count=(a,o)=>(Cp.setTime(+a),Sp.setTime(+o),e(Cp),e(Sp),Math.floor(n(Cp,Sp))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?o=>r(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const vd=gn(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);vd.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?gn(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):vd);vd.range;const fi=1e3,cr=fi*60,hi=cr*60,_i=hi*24,wv=_i*7,N2=_i*30,Tp=_i*365,ka=gn(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*fi)},(e,t)=>(t-e)/fi,e=>e.getUTCSeconds());ka.range;const _v=gn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*fi)},(e,t)=>{e.setTime(+e+t*cr)},(e,t)=>(t-e)/cr,e=>e.getMinutes());_v.range;const Cv=gn(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*cr)},(e,t)=>(t-e)/cr,e=>e.getUTCMinutes());Cv.range;const Sv=gn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*fi-e.getMinutes()*cr)},(e,t)=>{e.setTime(+e+t*hi)},(e,t)=>(t-e)/hi,e=>e.getHours());Sv.range;const Tv=gn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*hi)},(e,t)=>(t-e)/hi,e=>e.getUTCHours());Tv.range;const $v=gn(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*cr)/_i,e=>e.getDate()-1);$v.range;const aS=gn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/_i,e=>e.getUTCDate()-1);aS.range;const oS=gn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/_i,e=>Math.floor(e/_i));oS.range;function eo(e){return gn(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())*cr)/wv)}const kv=eo(0),BJ=eo(1),zJ=eo(2),WJ=eo(3),UJ=eo(4),HJ=eo(5),VJ=eo(6);kv.range;BJ.range;zJ.range;WJ.range;UJ.range;HJ.range;VJ.range;function to(e){return gn(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)/wv)}const Mv=to(0),qJ=to(1),YJ=to(2),GJ=to(3),ZJ=to(4),XJ=to(5),KJ=to(6);Mv.range;qJ.range;YJ.range;GJ.range;ZJ.range;XJ.range;KJ.range;const Ev=gn(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());Ev.range;const Ov=gn(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());Ov.range;const zf=gn(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());zf.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:gn(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)});zf.range;const Wf=gn(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());Wf.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:gn(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)});Wf.range;function sS(e,t,n,r,i,a){const o=[[ka,1,fi],[ka,5,5*fi],[ka,15,15*fi],[ka,30,30*fi],[a,1,cr],[a,5,5*cr],[a,15,15*cr],[a,30,30*cr],[i,1,hi],[i,3,3*hi],[i,6,6*hi],[i,12,12*hi],[r,1,_i],[r,2,2*_i],[n,1,wv],[t,1,N2],[t,3,3*N2],[e,1,Tp]];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=vv(([,,g])=>g).right(o,f);if(h===o.length)return e.every(Zm(c/Tp,u/Tp,d));if(h===0)return vd.every(Math.max(Zm(c,u,d),1));const[p,m]=o[f/o[h-1][2]<o[h][2]/f?h-1:h];return p.every(m)}return[s,l]}const[JJ,QJ]=sS(Wf,Ov,Mv,oS,Tv,Cv),[eQ,tQ]=sS(zf,Ev,kv,$v,Sv,_v);var $p=new Date,kp=new Date;function dn(e,t,n,r){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=function(a){return e(a=new Date(+a)),a},i.ceil=function(a){return e(a=new Date(a-1)),t(a,1),e(a),a},i.round=function(a){var o=i(a),s=i.ceil(a);return a-o<s-a?o:s},i.offset=function(a,o){return t(a=new Date(+a),o==null?1:Math.floor(o)),a},i.range=function(a,o,s){var l=[],c;if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a<o)||!(s>0))return l;do l.push(c=new Date(+a)),t(a,s),e(a);while(c<a&&a<o);return l},i.filter=function(a){return dn(function(o){if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},function(o,s){if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););})},n&&(i.count=function(a,o){return $p.setTime(+a),kp.setTime(+o),e($p),e(kp),Math.floor(n($p,kp))},i.every=function(a){return a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?function(o){return r(o)%a===0}:function(o){return i.count(0,o)%a===0}):i}),i}var tc=dn(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});tc.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?dn(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):tc};tc.range;var bd=1e3,Ha=6e4,yd=36e5,lS=864e5,cS=6048e5,Km=dn(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*bd)},function(e,t){return(t-e)/bd},function(e){return e.getUTCSeconds()});Km.range;var uS=dn(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*bd)},function(e,t){e.setTime(+e+t*Ha)},function(e,t){return(t-e)/Ha},function(e){return e.getMinutes()});uS.range;var dS=dn(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*bd-e.getMinutes()*Ha)},function(e,t){e.setTime(+e+t*yd)},function(e,t){return(t-e)/yd},function(e){return e.getHours()});dS.range;var Av=dn(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ha)/lS},function(e){return e.getDate()-1});Av.range;function no(e){return dn(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Ha)/cS})}var xd=no(0),nc=no(1),fS=no(2),hS=no(3),Va=no(4),pS=no(5),mS=no(6);xd.range;nc.range;fS.range;hS.range;Va.range;pS.range;mS.range;var gS=dn(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});gS.range;var Qi=dn(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});Qi.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:dn(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})};Qi.range;var vS=dn(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Ha)},function(e,t){return(t-e)/Ha},function(e){return e.getUTCMinutes()});vS.range;var bS=dn(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*yd)},function(e,t){return(t-e)/yd},function(e){return e.getUTCHours()});bS.range;var Rv=dn(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/lS},function(e){return e.getUTCDate()-1});Rv.range;function ro(e){return dn(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/cS})}var wd=ro(0),rc=ro(1),yS=ro(2),xS=ro(3),qa=ro(4),wS=ro(5),_S=ro(6);wd.range;rc.range;yS.range;xS.range;qa.range;wS.range;_S.range;var CS=dn(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});CS.range;var ea=dn(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});ea.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:dn(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})};ea.range;function Mp(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 Ep(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 Gs(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function nQ(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,l=e.shortMonths,c=Zs(i),u=Xs(i),d=Zs(a),f=Xs(a),h=Zs(o),p=Xs(o),m=Zs(s),g=Xs(s),x=Zs(l),_=Xs(l),w={a:I,A:F,b:z,B:L,c:null,d:W2,e:W2,f:TQ,g:IQ,G:PQ,H:_Q,I:CQ,j:SQ,L:SS,m:$Q,M:kQ,p:H,q:Y,Q:V2,s:q2,S:MQ,u:EQ,U:OQ,V:AQ,w:RQ,W:DQ,x:null,X:null,y:jQ,Y:NQ,Z:LQ,"%":H2},C={a:q,A:Z,b:X,B:J,c:null,d:U2,e:U2,f:WQ,g:JQ,G:eee,H:FQ,I:BQ,j:zQ,L:$S,m:UQ,M:HQ,p:ee,q:W,Q:V2,s:q2,S:VQ,u:qQ,U:YQ,V:GQ,w:ZQ,W:XQ,x:null,X:null,y:KQ,Y:QQ,Z:tee,"%":H2},b={a:D,A:T,b:E,B:R,c:j,d:B2,e:B2,f:bQ,g:F2,G:L2,H:z2,I:z2,j:pQ,L:vQ,m:hQ,M:mQ,p:k,q:fQ,Q:xQ,s:wQ,S:gQ,u:sQ,U:lQ,V:cQ,w:oQ,W:uQ,x:O,X:A,y:F2,Y:L2,Z:dQ,"%":yQ};w.x=S(n,w),w.X=S(r,w),w.c=S(t,w),C.x=S(n,C),C.X=S(r,C),C.c=S(t,C);function S(P,B){return function(V){var N=[],te=-1,K=0,G=P.length,oe,ne,re;for(V instanceof Date||(V=new Date(+V));++te<G;)P.charCodeAt(te)===37&&(N.push(P.slice(K,te)),(ne=P2[oe=P.charAt(++te)])!=null?oe=P.charAt(++te):ne=oe==="e"?" ":"0",(re=B[oe])&&(oe=re(V,ne)),N.push(oe),K=te+1);return N.push(P.slice(K,te)),N.join("")}}function M(P,B){return function(V){var N=Gs(1900,void 0,1),te=$(N,P,V+="",0),K,G;if(te!=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?(K=Ep(Gs(N.y,0,1)),G=K.getUTCDay(),K=G>4||G===0?rc.ceil(K):rc(K),K=Rv.offset(K,(N.V-1)*7),N.y=K.getUTCFullYear(),N.m=K.getUTCMonth(),N.d=K.getUTCDate()+(N.w+6)%7):(K=Mp(Gs(N.y,0,1)),G=K.getDay(),K=G>4||G===0?nc.ceil(K):nc(K),K=Av.offset(K,(N.V-1)*7),N.y=K.getFullYear(),N.m=K.getMonth(),N.d=K.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),G="Z"in N?Ep(Gs(N.y,0,1)).getUTCDay():Mp(Gs(N.y,0,1)).getDay(),N.m=0,N.d="W"in N?(N.w+6)%7+N.W*7-(G+5)%7:N.w+N.U*7-(G+6)%7);return"Z"in N?(N.H+=N.Z/100|0,N.M+=N.Z%100,Ep(N)):Mp(N)}}function $(P,B,V,N){for(var te=0,K=B.length,G=V.length,oe,ne;te<K;){if(N>=G)return-1;if(oe=B.charCodeAt(te++),oe===37){if(oe=B.charAt(te++),ne=b[oe in P2?B.charAt(te++):oe],!ne||(N=ne(P,V,N))<0)return-1}else if(oe!=V.charCodeAt(N++))return-1}return N}function k(P,B,V){var N=c.exec(B.slice(V));return N?(P.p=u.get(N[0].toLowerCase()),V+N[0].length):-1}function D(P,B,V){var N=h.exec(B.slice(V));return N?(P.w=p.get(N[0].toLowerCase()),V+N[0].length):-1}function T(P,B,V){var N=d.exec(B.slice(V));return N?(P.w=f.get(N[0].toLowerCase()),V+N[0].length):-1}function E(P,B,V){var N=x.exec(B.slice(V));return N?(P.m=_.get(N[0].toLowerCase()),V+N[0].length):-1}function R(P,B,V){var N=m.exec(B.slice(V));return N?(P.m=g.get(N[0].toLowerCase()),V+N[0].length):-1}function j(P,B,V){return $(P,t,B,V)}function O(P,B,V){return $(P,n,B,V)}function A(P,B,V){return $(P,r,B,V)}function I(P){return o[P.getDay()]}function F(P){return a[P.getDay()]}function z(P){return l[P.getMonth()]}function L(P){return s[P.getMonth()]}function H(P){return i[+(P.getHours()>=12)]}function Y(P){return 1+~~(P.getMonth()/3)}function q(P){return o[P.getUTCDay()]}function Z(P){return a[P.getUTCDay()]}function X(P){return l[P.getUTCMonth()]}function J(P){return s[P.getUTCMonth()]}function ee(P){return i[+(P.getUTCHours()>=12)]}function W(P){return 1+~~(P.getUTCMonth()/3)}return{format:function(P){var B=S(P+="",w);return B.toString=function(){return P},B},parse:function(P){var B=M(P+="",!1);return B.toString=function(){return P},B},utcFormat:function(P){var B=S(P+="",C);return B.toString=function(){return P},B},utcParse:function(P){var B=M(P+="",!0);return B.toString=function(){return P},B}}}var P2={"-":"",_:" ",0:"0"},xn=/^\s*\d+/,rQ=/^%/,iQ=/[\\^$*+?|[\]().{}]/g;function Mt(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",a=i.length;return r+(a<n?new Array(n-a+1).join(t)+i:i)}function aQ(e){return e.replace(iQ,"\\$&")}function Zs(e){return new RegExp("^(?:"+e.map(aQ).join("|")+")","i")}function Xs(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function oQ(e,t,n){var r=xn.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function sQ(e,t,n){var r=xn.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function lQ(e,t,n){var r=xn.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function cQ(e,t,n){var r=xn.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function uQ(e,t,n){var r=xn.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function L2(e,t,n){var r=xn.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function F2(e,t,n){var r=xn.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function dQ(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 fQ(e,t,n){var r=xn.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function hQ(e,t,n){var r=xn.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function B2(e,t,n){var r=xn.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function pQ(e,t,n){var r=xn.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function z2(e,t,n){var r=xn.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function mQ(e,t,n){var r=xn.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function gQ(e,t,n){var r=xn.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function vQ(e,t,n){var r=xn.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function bQ(e,t,n){var r=xn.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function yQ(e,t,n){var r=rQ.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function xQ(e,t,n){var r=xn.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function wQ(e,t,n){var r=xn.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function W2(e,t){return Mt(e.getDate(),t,2)}function _Q(e,t){return Mt(e.getHours(),t,2)}function CQ(e,t){return Mt(e.getHours()%12||12,t,2)}function SQ(e,t){return Mt(1+Av.count(Qi(e),e),t,3)}function SS(e,t){return Mt(e.getMilliseconds(),t,3)}function TQ(e,t){return SS(e,t)+"000"}function $Q(e,t){return Mt(e.getMonth()+1,t,2)}function kQ(e,t){return Mt(e.getMinutes(),t,2)}function MQ(e,t){return Mt(e.getSeconds(),t,2)}function EQ(e){var t=e.getDay();return t===0?7:t}function OQ(e,t){return Mt(xd.count(Qi(e)-1,e),t,2)}function TS(e){var t=e.getDay();return t>=4||t===0?Va(e):Va.ceil(e)}function AQ(e,t){return e=TS(e),Mt(Va.count(Qi(e),e)+(Qi(e).getDay()===4),t,2)}function RQ(e){return e.getDay()}function DQ(e,t){return Mt(nc.count(Qi(e)-1,e),t,2)}function jQ(e,t){return Mt(e.getFullYear()%100,t,2)}function IQ(e,t){return e=TS(e),Mt(e.getFullYear()%100,t,2)}function NQ(e,t){return Mt(e.getFullYear()%1e4,t,4)}function PQ(e,t){var n=e.getDay();return e=n>=4||n===0?Va(e):Va.ceil(e),Mt(e.getFullYear()%1e4,t,4)}function LQ(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Mt(t/60|0,"0",2)+Mt(t%60,"0",2)}function U2(e,t){return Mt(e.getUTCDate(),t,2)}function FQ(e,t){return Mt(e.getUTCHours(),t,2)}function BQ(e,t){return Mt(e.getUTCHours()%12||12,t,2)}function zQ(e,t){return Mt(1+Rv.count(ea(e),e),t,3)}function $S(e,t){return Mt(e.getUTCMilliseconds(),t,3)}function WQ(e,t){return $S(e,t)+"000"}function UQ(e,t){return Mt(e.getUTCMonth()+1,t,2)}function HQ(e,t){return Mt(e.getUTCMinutes(),t,2)}function VQ(e,t){return Mt(e.getUTCSeconds(),t,2)}function qQ(e){var t=e.getUTCDay();return t===0?7:t}function YQ(e,t){return Mt(wd.count(ea(e)-1,e),t,2)}function kS(e){var t=e.getUTCDay();return t>=4||t===0?qa(e):qa.ceil(e)}function GQ(e,t){return e=kS(e),Mt(qa.count(ea(e),e)+(ea(e).getUTCDay()===4),t,2)}function ZQ(e){return e.getUTCDay()}function XQ(e,t){return Mt(rc.count(ea(e)-1,e),t,2)}function KQ(e,t){return Mt(e.getUTCFullYear()%100,t,2)}function JQ(e,t){return e=kS(e),Mt(e.getUTCFullYear()%100,t,2)}function QQ(e,t){return Mt(e.getUTCFullYear()%1e4,t,4)}function eee(e,t){var n=e.getUTCDay();return e=n>=4||n===0?qa(e):qa.ceil(e),Mt(e.getUTCFullYear()%1e4,t,4)}function tee(){return"+0000"}function H2(){return"%"}function V2(e){return+e}function q2(e){return Math.floor(+e/1e3)}var yo,Uf,MS,ES,OS;nee({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 nee(e){return yo=nQ(e),Uf=yo.format,MS=yo.parse,ES=yo.utcFormat,OS=yo.utcParse,yo}function ree(e){return new Date(e)}function iee(e){return e instanceof Date?+e:+new Date(+e)}function Dv(e,t,n,r,i,a,o,s,l,c){var u=J6(),d=u.invert,f=u.domain,h=c(".%L"),p=c(":%S"),m=c("%I:%M"),g=c("%I %p"),x=c("%a %d"),_=c("%b %d"),w=c("%B"),C=c("%Y");function b(S){return(l(S)<S?h:s(S)<S?p:o(S)<S?m:a(S)<S?g:r(S)<S?i(S)<S?x:_:n(S)<S?w:C)(S)}return u.invert=function(S){return new Date(d(S))},u.domain=function(S){return arguments.length?f(Array.from(S,iee)):f().map(ree)},u.ticks=function(S){var M=f();return e(M[0],M[M.length-1],S??10)},u.tickFormat=function(S,M){return M==null?b:c(M)},u.nice=function(S){var M=f();return(!S||typeof S.range!="function")&&(S=t(M[0],M[M.length-1],S??10)),S?f(nS(M,S)):u},u.copy=function(){return Bf(u,Dv(e,t,n,r,i,a,o,s,l,c))},u}function aee(){return Qa.apply(Dv(eQ,tQ,zf,Ev,kv,$v,Sv,_v,ka,Uf).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function oee(){return Qa.apply(Dv(JJ,QJ,Wf,Ov,Mv,aS,Tv,Cv,ka,ES).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function dt(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 see=dt("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),lee=dt("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),cee=dt("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),uee=dt("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),dee=dt("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),fee=dt("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),hee=dt("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),pee=dt("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),AS=dt("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),mee=dt("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),Vt=e=>EX(e[e.length-1]);var Hf=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(dt);const gee=Vt(Hf);var Vf=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(dt);const vee=Vt(Vf);var qf=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(dt);const bee=Vt(qf);var Yf=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(dt);const yee=Vt(Yf);var Gf=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(dt);const xee=Vt(Gf);var Zf=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(dt);const wee=Vt(Zf);var Xf=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(dt);const _ee=Vt(Xf);var Kf=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(dt);const Cee=Vt(Kf);var Jf=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(dt);const See=Vt(Jf);var Qf=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(dt);const Tee=Vt(Qf);var eh=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(dt);const $ee=Vt(eh);var th=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(dt);const kee=Vt(th);var nh=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(dt);const Mee=Vt(nh);var rh=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(dt);const Eee=Vt(rh);var ih=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(dt);const Oee=Vt(ih);var ah=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(dt);const Aee=Vt(ah);var oh=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(dt);const Ree=Vt(oh);var sh=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(dt);const Dee=Vt(sh);var lh=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(dt);const jee=Vt(lh);var ch=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(dt);const Iee=Vt(ch);var uh=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(dt);const Nee=Vt(uh);var dh=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(dt);const Pee=Vt(dh);var fh=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(dt);const Lee=Vt(fh);var hh=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(dt);const Fee=Vt(hh);var ph=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(dt);const Bee=Vt(ph);var mh=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(dt);const zee=Vt(mh);var gh=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(dt);const Wee=Vt(gh);function Uee(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 Hee=sv(qr(300,.5,0),qr(-240,.5,1));var Vee=sv(qr(-100,.75,.35),qr(80,1.5,.8)),qee=sv(qr(260,.75,.35),qr(80,1.5,.8)),uu=qr();function Yee(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return uu.h=360*e-100,uu.s=1.5-1.5*t,uu.l=.8-.9*t,uu+""}var du=is(),Gee=Math.PI/3,Zee=Math.PI*2/3;function Xee(e){var t;return e=(.5-e)*Math.PI,du.r=255*(t=Math.sin(e))*t,du.g=255*(t=Math.sin(e+Gee))*t,du.b=255*(t=Math.sin(e+Zee))*t,du+""}function Kee(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-e*14825.05)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+e*707.56)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-e*6838.66)))))))+")"}function vh(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}const Jee=vh(dt("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var Qee=vh(dt("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),ete=vh(dt("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),tte=vh(dt("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function nte(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var RS=nte;const De=nn(RS);var rte=Oc,ite=y6,ate=$s;function ote(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=rte(e,o);n(s,o)&&ite(a,ate(o,e),s)}return a}var ste=ote;function lte(e,t){return e!=null&&t in Object(e)}var cte=lte,ute=$s,dte=kf,fte=Kn,hte=Of,pte=G0,mte=ks;function gte(e,t,n){t=ute(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=mte(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&pte(i)&&hte(o,i)&&(fte(e)||dte(e)))}var vte=gte,bte=cte,yte=vte;function xte(e,t){return e!=null&&yte(e,t,bte)}var DS=xte,wte=ste,_te=DS;function Cte(e,t){return wte(e,t,function(n,r){return _te(e,r)})}var Ste=Cte;function Tte(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var jv=Tte,Y2=ys,$te=kf,kte=Kn,G2=Y2?Y2.isConcatSpreadable:void 0;function Mte(e){return kte(e)||$te(e)||!!(G2&&e&&e[G2])}var Ete=Mte,Ote=jv,Ate=Ete;function jS(e,t,n,r,i){var a=-1,o=e.length;for(n||(n=Ate),i||(i=[]);++a<o;){var s=e[a];t>0&&n(s)?t>1?jS(s,t-1,n,r,i):Ote(i,s):r||(i[i.length]=s)}return i}var IS=jS,Rte=IS;function Dte(e){var t=e==null?0:e.length;return t?Rte(e,1):[]}var jte=Dte,Ite=jte,Nte=d6,Pte=f6;function Lte(e){return Pte(Nte(e,void 0,Ite),e+"")}var NS=Lte,Fte=Ste,Bte=NS,zte=Bte(function(e,t){return e==null?{}:Fte(e,t)}),Wte=zte;const Ute=nn(Wte);function Hte(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 Vte=Hte,qte=lv,Yte=Vte,Gte=cv,Zte=1,Xte=2;function Kte(e,t,n,r,i,a){var o=n&Zte,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var c=a.get(e),u=a.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,h=n&Xte?new qte:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var p=e[d],m=t[d];if(r)var g=o?r(m,p,d,t,e,a):r(p,m,d,e,t,a);if(g!==void 0){if(g)continue;f=!1;break}if(h){if(!Yte(t,function(x,_){if(!Gte(h,_)&&(p===x||i(p,x,n,r,a)))return h.push(_)})){f=!1;break}}else if(!(p===m||i(p,m,n,r,a))){f=!1;break}}return a.delete(e),a.delete(t),f}var PS=Kte;function Jte(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var Qte=Jte;function ene(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Iv=ene,Z2=ys,X2=e6,tne=Mc,nne=PS,rne=Qte,ine=Iv,ane=1,one=2,sne="[object Boolean]",lne="[object Date]",cne="[object Error]",une="[object Map]",dne="[object Number]",fne="[object RegExp]",hne="[object Set]",pne="[object String]",mne="[object Symbol]",gne="[object ArrayBuffer]",vne="[object DataView]",K2=Z2?Z2.prototype:void 0,Op=K2?K2.valueOf:void 0;function bne(e,t,n,r,i,a,o){switch(n){case vne:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case gne:return!(e.byteLength!=t.byteLength||!a(new X2(e),new X2(t)));case sne:case lne:case dne:return tne(+e,+t);case cne:return e.name==t.name&&e.message==t.message;case fne:case pne:return e==t+"";case une:var s=rne;case hne:var l=r&ane;if(s||(s=ine),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;r|=one,o.set(e,t);var u=nne(s(e),s(t),r,i,a,o);return o.delete(e),u;case mne:if(Op)return Op.call(e)==Op.call(t)}return!1}var yne=bne,xne=jv,wne=Kn;function _ne(e,t,n){var r=t(e);return wne(e)?r:xne(r,n(e))}var LS=_ne;function Cne(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}var FS=Cne;function Sne(){return[]}var BS=Sne,Tne=FS,$ne=BS,kne=Object.prototype,Mne=kne.propertyIsEnumerable,J2=Object.getOwnPropertySymbols,Ene=J2?function(e){return e==null?[]:(e=Object(e),Tne(J2(e),function(t){return Mne.call(e,t)}))}:$ne,Nv=Ene,One=r6,Ane=One(Object.keys,Object),Rne=Ane,Dne=Y0,jne=Rne,Ine=Object.prototype,Nne=Ine.hasOwnProperty;function Pne(e){if(!Dne(e))return jne(e);var t=[];for(var n in Object(e))Nne.call(e,n)&&n!="constructor"&&t.push(n);return t}var Lne=Pne,Fne=c6,Bne=Lne,zne=Cs;function Wne(e){return zne(e)?Fne(e):Bne(e)}var Rc=Wne,Une=LS,Hne=Nv,Vne=Rc;function qne(e){return Une(e,Vne,Hne)}var zS=qne,Q2=zS,Yne=1,Gne=Object.prototype,Zne=Gne.hasOwnProperty;function Xne(e,t,n,r,i,a){var o=n&Yne,s=Q2(e),l=s.length,c=Q2(t),u=c.length;if(l!=u&&!o)return!1;for(var d=l;d--;){var f=s[d];if(!(o?f in t:Zne.call(t,f)))return!1}var h=a.get(e),p=a.get(t);if(h&&p)return h==t&&p==e;var m=!0;a.set(e,t),a.set(t,e);for(var g=o;++d<l;){f=s[d];var x=e[f],_=t[f];if(r)var w=o?r(_,x,f,t,e,a):r(x,_,f,e,t,a);if(!(w===void 0?x===_||i(x,_,n,r,a):w)){m=!1;break}g||(g=f=="constructor")}if(m&&!g){var C=e.constructor,b=t.constructor;C!=b&&"constructor"in e&&"constructor"in t&&!(typeof C=="function"&&C instanceof C&&typeof b=="function"&&b instanceof b)&&(m=!1)}return a.delete(e),a.delete(t),m}var Kne=Xne,Jne=Ja,Qne=Xr,ere=Jne(Qne,"DataView"),tre=ere,nre=Ja,rre=Xr,ire=nre(rre,"Promise"),are=ire,ore=Ja,sre=Xr,lre=ore(sre,"Set"),WS=lre,cre=Ja,ure=Xr,dre=cre(ure,"WeakMap"),fre=dre,Jm=tre,Qm=W0,eg=are,tg=WS,ng=fre,US=Si,Es=ZC,ex="[object Map]",hre="[object Object]",tx="[object Promise]",nx="[object Set]",rx="[object WeakMap]",ix="[object DataView]",pre=Es(Jm),mre=Es(Qm),gre=Es(eg),vre=Es(tg),bre=Es(ng),ya=US;(Jm&&ya(new Jm(new ArrayBuffer(1)))!=ix||Qm&&ya(new Qm)!=ex||eg&&ya(eg.resolve())!=tx||tg&&ya(new tg)!=nx||ng&&ya(new ng)!=rx)&&(ya=function(e){var t=US(e),n=t==hre?e.constructor:void 0,r=n?Es(n):"";if(r)switch(r){case pre:return ix;case mre:return ex;case gre:return tx;case vre:return nx;case bre:return rx}return t});var bh=ya,Ap=$f,yre=PS,xre=yne,wre=Kne,ax=bh,ox=Kn,sx=Mf,_re=K0,Cre=1,lx="[object Arguments]",cx="[object Array]",fu="[object Object]",Sre=Object.prototype,ux=Sre.hasOwnProperty;function Tre(e,t,n,r,i,a){var o=ox(e),s=ox(t),l=o?cx:ax(e),c=s?cx:ax(t);l=l==lx?fu:l,c=c==lx?fu:c;var u=l==fu,d=c==fu,f=l==c;if(f&&sx(e)){if(!sx(t))return!1;o=!0,u=!1}if(f&&!u)return a||(a=new Ap),o||_re(e)?yre(e,t,n,r,i,a):xre(e,t,l,n,r,i,a);if(!(n&Cre)){var h=u&&ux.call(e,"__wrapped__"),p=d&&ux.call(t,"__wrapped__");if(h||p){var m=h?e.value():e,g=p?t.value():t;return a||(a=new Ap),i(m,g,n,r,a)}}return f?(a||(a=new Ap),wre(e,t,n,r,i,a)):!1}var $re=Tre,kre=$re,dx=gr;function HS(e,t,n,r,i){return e===t?!0:e==null||t==null||!dx(e)&&!dx(t)?e!==e&&t!==t:kre(e,t,n,r,HS,i)}var Pv=HS,Mre=Pv;function Ere(e,t){return Mre(e,t)}var Ore=Ere;const Are=nn(Ore);var VS=v.createContext(),Rre=function(e){var t=e.children,n=e.animate,r=n===void 0||n,i=e.config,a=i===void 0?"default":i,o=v.useMemo(function(){var s=oX(a)?AC[a]:a;return{animate:r,config:s}},[r,a]);return y.jsx(VS.Provider,{value:o,children:t})},Fn=function(){return v.useContext(VS)},Dre=function(e){var t=e.children,n=e.condition,r=e.wrapper;return n?v.cloneElement(r,{},t):t},jre={position:"relative"},io=function(e){var t=e.children,n=e.theme,r=e.renderWrapper,i=r===void 0||r,a=e.isInteractive,o=a===void 0||a,s=e.animate,l=e.motionConfig,c=v.useRef(null);return y.jsx(VZ,{theme:n,children:y.jsx(Rre,{animate:s,config:l,children:y.jsx(QZ,{container:c,children:y.jsxs(Dre,{condition:i,wrapper:y.jsx("div",{style:jre,ref:c}),children:[t,o&&y.jsx(JZ,{})]})})})})},Ire=function(e,t){return e.width===t.width&&e.height===t.height},Nre=function(e){var t=e.children,n=e.width,r=e.height,i=e.onResize,a=e.debounceResize,o=_0({width:n,height:r},a,{equalityFn:Ire})[0];return v.useEffect(function(){i==null||i(o)},[o,i]),y.jsx(y.Fragment,{children:t(o)})},ao=function(e){var t=e.children,n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,a=e.debounceResize,o=a===void 0?0:a;return y.jsx(lX,{defaultWidth:n,defaultHeight:r,children:function(s){var l=s.width,c=s.height;return y.jsx(Nre,{width:l,height:c,onResize:i,debounceResize:o,children:t})}})};function fx(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 Pre(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(i,a){if(i){if(typeof i=="string")return fx(i,a);var o={}.toString.call(i).slice(8,-1);return o==="Object"&&i.constructor&&(o=i.constructor.name),o==="Map"||o==="Set"?Array.from(i):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?fx(i,a):void 0}}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
259
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Br(){return Br=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},Br.apply(null,arguments)}function qS(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 Lre=["id","colors"],Fre=function(e){var t=e.id,n=e.colors,r=qS(e,Lre);return y.jsx("linearGradient",Br({id:t,x1:0,x2:0,y1:0,y2:1},r,{children:n.map(function(i){var a=i.offset,o=i.color,s=i.opacity;return y.jsx("stop",{offset:a+"%",stopColor:o,stopOpacity:s!==void 0?s:1},a)})}))},YS={linearGradient:Fre},Ks={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1},Bre=v.memo(function(e){var t=e.id,n=e.background,r=n===void 0?Ks.background:n,i=e.color,a=i===void 0?Ks.color:i,o=e.size,s=o===void 0?Ks.size:o,l=e.padding,c=l===void 0?Ks.padding:l,u=e.stagger,d=u===void 0?Ks.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:a}),d&&y.jsx("circle",{cx:1.5*c+s+h,cy:1.5*c+s+h,r:h,fill:a})]})}),dr=function(e){return e*Math.PI/180},Dc=function(e){return 180*e/Math.PI},zre=function(e){return e.startAngle+(e.endAngle-e.startAngle)/2},ja=function(e,t){return{x:Math.cos(e)*t,y:Math.sin(e)*t}},Wre=function(e){var t=e%360;return t<0&&(t+=360),t},GS={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"}}},Js={spacing:5,rotation:0,background:"#000000",color:"#ffffff",lineWidth:2},Ure=v.memo(function(e){var t=e.id,n=e.spacing,r=n===void 0?Js.spacing:n,i=e.rotation,a=i===void 0?Js.rotation:i,o=e.background,s=o===void 0?Js.background:o,l=e.color,c=l===void 0?Js.color:l,u=e.lineWidth,d=u===void 0?Js.lineWidth:u,f=Math.round(a)%360,h=Math.abs(r);f>180?f-=360:f>90?f-=180:f<-180?f+=360:f<-90&&(f+=180);var p,m=h,g=h;return f===0?p=`
260
+ M 0 0 L `+m+` 0
261
+ M 0 `+g+" L "+m+" "+g+`
262
+ `:f===90?p=`
263
+ M 0 0 L 0 `+g+`
264
+ M `+m+" 0 L "+m+" "+g+`
265
+ `:(m=Math.abs(h/Math.sin(dr(f))),g=h/Math.sin(dr(90-f)),p=f>0?`
266
+ M 0 `+-g+" L "+2*m+" "+g+`
267
+ M `+-m+" "+-g+" L "+m+" "+g+`
268
+ M `+-m+" 0 L "+m+" "+2*g+`
269
+ `:`
270
+ M `+-m+" "+g+" L "+m+" "+-g+`
271
+ M `+-m+" "+2*g+" L "+2*m+" "+-g+`
272
+ M 0 `+2*g+" L "+2*m+` 0
273
+ `),y.jsxs("pattern",{id:t,width:m,height:g,patternUnits:"userSpaceOnUse",children:[y.jsx("rect",{width:m,height:g,fill:s,stroke:"rgba(255, 0, 0, 0.1)",strokeWidth:0}),y.jsx("path",{d:p,strokeWidth:d,stroke:c,strokeLinecap:"square"})]})}),Qs={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1},Hre=v.memo(function(e){var t=e.id,n=e.color,r=n===void 0?Qs.color:n,i=e.background,a=i===void 0?Qs.background:i,o=e.size,s=o===void 0?Qs.size:o,l=e.padding,c=l===void 0?Qs.padding:l,u=e.stagger,d=u===void 0?Qs.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:a}),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})]})}),ZS={patternDots:Bre,patternLines:Ure,patternSquares:Hre},Vre=["type"],hx=Br({},YS,ZS),qre=v.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=qS(n,Vre);return hx[r]?v.createElement(hx[r],Br({key:i.id},i)):null})})}),yh=v.forwardRef(function(e,t){var n=e.width,r=e.height,i=e.margin,a=e.defs,o=e.children,s=e.role,l=e.ariaLabel,c=e.ariaLabelledBy,u=e.ariaDescribedBy,d=e.isFocusable,f=Lt();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(qre,{defs:a}),y.jsx("rect",{width:n,height:r,fill:f.background}),y.jsx("g",{transform:"translate("+i.left+","+i.top+")",children:o})]})}),Yre=v.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"}})}),Gre=v.memo(function(e){var t=e.x,n=e.y,r=e.symbol,i=r===void 0?Yre:r,a=e.size,o=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,m=e.ariaLabel,g=e.ariaLabelledBy,x=e.ariaDescribedBy,_=e.ariaHidden,w=e.ariaDisabled,C=e.isFocusable,b=C!==void 0&&C,S=e.tabIndex,M=S===void 0?0:S,$=e.onFocus,k=e.onBlur,D=e.testId,T=Lt(),E=Fn(),R=E.animate,j=E.config,O=Zr({transform:"translate("+t+", "+n+")",config:j,immediate:!R}),A=v.useCallback(function(F){$==null||$(o,F)},[$,o]),I=v.useCallback(function(F){k==null||k(o,F)},[k,o]);return y.jsxs(Ht.g,{transform:O.transform,style:{pointerEvents:"none"},focusable:b,tabIndex:b?M:void 0,"aria-label":m,"aria-labelledby":g,"aria-describedby":x,"aria-disabled":w,"aria-hidden":_,onFocus:b&&$?A:void 0,onBlur:b&&k?I:void 0,"data-testid":D,children:[v.createElement(i,{size:a,color:s,datum:o,borderWidth:l,borderColor:c}),u&&y.jsx("text",{textAnchor:f,y:p,style:PZ(T.dots.text),children:u})]})}),Zre=v.memo(function(e){var t=e.width,n=e.height,r=e.axis,i=e.scale,a=e.value,o=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,m=p===void 0?14:p,g=e.legendOrientation,x=g===void 0?"horizontal":g,_=Lt(),w=0,C=0,b=0,S=0;if(r==="y"?(b=i(a),C=t):(w=i(a),S=n),l&&!c){var M=function($){var k=$.axis,D=$.width,T=$.height,E=$.position,R=$.offsetX,j=$.offsetY,O=$.orientation,A=0,I=0,F=O==="vertical"?-90:0,z="start";if(k==="x")switch(E){case"top-left":A=-R,I=j,z="end";break;case"top":I=-j,z=O==="horizontal"?"middle":"start";break;case"top-right":A=R,I=j,z=O==="horizontal"?"start":"end";break;case"right":A=R,I=T/2,z=O==="horizontal"?"start":"middle";break;case"bottom-right":A=R,I=T-j,z="start";break;case"bottom":I=T+j,z=O==="horizontal"?"middle":"end";break;case"bottom-left":I=T-j,A=-R,z=O==="horizontal"?"end":"start";break;case"left":A=-R,I=T/2,z=O==="horizontal"?"end":"middle"}else switch(E){case"top-left":A=R,I=-j,z="start";break;case"top":A=D/2,I=-j,z=O==="horizontal"?"middle":"start";break;case"top-right":A=D-R,I=-j,z=O==="horizontal"?"end":"start";break;case"right":A=D+R,z=O==="horizontal"?"start":"middle";break;case"bottom-right":A=D-R,I=j,z="end";break;case"bottom":A=D/2,I=j,z=O==="horizontal"?"middle":"end";break;case"bottom-left":A=R,I=j,z=O==="horizontal"?"start":"end";break;case"left":A=-R,z=O==="horizontal"?"end":"middle"}return{x:A,y:I,rotation:F,textAnchor:z}}({axis:r,width:t,height:n,position:d,offsetX:h,offsetY:m,orientation:x});c=y.jsx("text",{transform:"translate("+M.x+", "+M.y+") rotate("+M.rotation+")",textAnchor:M.textAnchor,dominantBaseline:"central",style:s,children:l})}return y.jsxs("g",{transform:"translate("+w+", "+b+")",children:[y.jsx("line",{x1:0,x2:C,y1:0,y2:S,stroke:_.markers.lineColor,strokeWidth:_.markers.lineStrokeWidth,style:o}),c]})}),XS=v.memo(function(e){var t=e.markers,n=e.width,r=e.height,i=e.xScale,a=e.yScale;return t&&t.length!==0?t.map(function(o,s){return y.jsx(Zre,Br({},o,{width:n,height:r,scale:o.axis==="y"?a:i}),s)}):null}),Lv=function(e){var t=Fn(),n=t.animate,r=t.config,i=function(s){var l=v.useRef();return v.useEffect(function(){l.current=s},[s]),l.current}(e),a=v.useMemo(function(){return A6(i,e)},[i,e]),o=Zr({from:{value:0},to:{value:1},reset:!0,config:r,immediate:!n}).value;return Ki(o,a)};v.createContext(void 0);var rg={basis:NK,basisClosed:PK,basisOpen:LK,bundle:FK,cardinal:BK,cardinalClosed:zK,cardinalOpen:WK,catmullRom:UK,catmullRomClosed:HK,catmullRomOpen:VK,linear:dv,linearClosed:qK,monotoneX:YK,monotoneY:GK,natural:ZK,step:XK,stepAfter:JK,stepBefore:KK},Fv=Object.keys(rg);Fv.filter(function(e){return e.endsWith("Closed")});N6(Fv,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");N6(Fv,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");var KS=function(e){if(!rg[e])throw new TypeError("'"+e+"', is not a valid curve interpolator identifier.");return rg[e]};De(Hf),De(Vf),De(qf),De(Yf),De(Gf),De(Zf),De(Xf),De(Kf),De(Jf),De(dh),De(fh),De(hh),De(gh),De(ph),De(mh),De(Qf),De(eh),De(th),De(nh),De(rh),De(ih),De(ah),De(oh),De(sh),De(lh),De(ch),De(uh);De(Hf),De(Vf),De(qf),De(Yf),De(Gf),De(Zf),De(Xf),De(Kf),De(Jf),De(dh),De(fh),De(hh),De(gh),De(ph),De(mh),De(Qf),De(eh),De(th),De(nh),De(rh),De(ih),De(ah),De(oh),De(sh),De(lh),De(ch),De(uh);$a(AS);var JS={top:0,right:0,bottom:0,left:0},oo=function(e,t,n){return n===void 0&&(n={}),v.useMemo(function(){var r=Br({},JS,n);return{margin:r,innerWidth:e-r.left-r.right,innerHeight:t-r.top-r.bottom,outerWidth:e,outerHeight:t}},[e,t,n])},Xre=function(){var e=v.useRef(null),t=v.useState({left:0,top:0,width:0,height:0}),n=t[0],r=t[1],i=v.useState(function(){return typeof ResizeObserver>"u"?null:new ResizeObserver(function(a){var o=a[0];return r(o.contentRect)})})[0];return v.useEffect(function(){return e.current&&i!==null&&i.observe(e.current),function(){i!==null&&i.disconnect()}},[i]),[e,n]},Kre=function(e){return typeof e=="function"?e:typeof e=="string"?e.indexOf("time:")===0?Uf(e.slice("5")):Ac(e):function(t){return""+t}},os=function(e){return v.useMemo(function(){return Kre(e)},[e])},Jre=function(e,t){var n=z0(e)?e:function(r){return Vr(r,e)};return n},QS=function(e){return z0(e)?e:function(t){return Vr(t,e)}},pi=function(e){return v.useMemo(function(){return QS(e)},[e])},e5=function(e,t,n,r){return Math.sqrt(Math.pow(n-e,2)+Math.pow(r-t,2))},Qre=function(e,t,n,r){var i=Math.atan2(r-t,n-e)-Math.PI/2;return i>0?i:2*Math.PI+i},t5=function(e,t,n,r,i,a){return e<=i&&i<=e+n&&t<=a&&a<=t+r},Bo=function(e,t){var n,r="touches"in t?t.touches[0]:t,i=r.clientX,a=r.clientY,o=e.getBoundingClientRect(),s=(n=e.getBBox!==void 0?e.getBBox():{width:e.offsetWidth||0,height:e.offsetHeight||0}).width===o.width?1:n.width/o.width;return[(i-o.left)*s,(a-o.top)*s]},eie=Object.keys(YS),tie=Object.keys(ZS),nie=function(e,t,n){if(e==="*")return!0;if(z0(e))return e(t);if(X0(e)){var r=n?Vr(t,n):t;return Are(Ute(r,Object.keys(e)),e)}return!1},Bv=function(e,t,n,r){var i=r===void 0?{}:r,a=i.dataKey,o=i.colorKey,s=o===void 0?"color":o,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 g=h.value,x=g.id,_=g.match;if(nie(_,f,a)){var w=e.find(function(T){return T.id===x});if(w){if(tie.includes(w.type))if(w.background==="inherit"||w.color==="inherit"){var C=Vr(f,s),b=w.background,S=w.color,M=x;w.background==="inherit"&&(M=M+".bg."+C,b=C),w.color==="inherit"&&(M=M+".fg."+C,S=C),ol(f,c,"url(#"+M+")"),d[M]||(u.push(Br({},w,{id:M,background:b,color:S})),d[M]=1)}else ol(f,c,"url(#"+x+")");else if(eie.includes(w.type))if(w.colors.map(function(T){return T.color}).includes("inherit")){var $=Vr(f,s),k=x,D=Br({},w,{colors:w.colors.map(function(T,E){return T.color!=="inherit"?T:(k=k+"."+E+"."+$,Br({},T,{color:T.color==="inherit"?$:T.color}))})});D.id=k,ol(f,c,"url(#"+k+")"),d[k]||(u.push(D),d[k]=1)}else ol(f,c,"url(#"+x+")")}return 1}},m=Pre(n);!(h=m()).done&&!p(););})),u};function zv(){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,a=t;i<a.length;i++){var o=a[i];typeof o=="function"?o(r):o!=null&&(o.current=r)}}}var Ya=function(e,t){e.font=(t.fontWeight?t.fontWeight+" ":"")+t.fontSize+"px "+t.fontFamily},Ga=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 vl(){return vl=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},vl.apply(null,arguments)}function px(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 rie=["style","children"],iie=["outlineWidth","outlineColor","outlineOpacity"],Os=function(e){var t=e.style,n=e.children,r=px(e,rie),i=t.outlineWidth,a=t.outlineColor,o=t.outlineOpacity,s=px(t,iie);return y.jsxs(y.Fragment,{children:[i>0&&y.jsx(Ht.text,vl({},r,{style:vl({},s,{strokeWidth:2*i,stroke:a,strokeOpacity:o,strokeLinejoin:"round"}),children:n})),y.jsx(Ht.text,vl({},r,{style:s,children:n}))]})};function mx(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 aie(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(i,a){if(i){if(typeof i=="string")return mx(i,a);var o={}.toString.call(i).slice(8,-1);return o==="Object"&&i.constructor&&(o=i.constructor.name),o==="Map"||o==="Set"?Array.from(i):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?mx(i,a):void 0}}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
274
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _d(){return _d=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},_d.apply(null,arguments)}var n5={nivo:["#e8c1a0","#f47560","#f1e15b","#e8a838","#61cdbb","#97e3d5"],category10:see,accent:lee,dark2:cee,paired:uee,pastel1:dee,pastel2:fee,set1:hee,set2:pee,set3:AS,tableau10:mee},oie=Object.keys(n5),r5={brown_blueGreen:Hf,purpleRed_green:Vf,pink_yellowGreen:qf,purple_orange:Yf,red_blue:Gf,red_grey:Zf,red_yellow_blue:Xf,red_yellow_green:Kf,spectral:Jf},sie=Object.keys(r5),lie={brown_blueGreen:gee,purpleRed_green:vee,pink_yellowGreen:bee,purple_orange:yee,red_blue:xee,red_grey:wee,red_yellow_blue:_ee,red_yellow_green:Cee,spectral:See},i5={blues:dh,greens:fh,greys:hh,oranges:gh,purples:ph,reds:mh,blue_green:Qf,blue_purple:eh,green_blue:th,orange_red:nh,purple_blue_green:rh,purple_blue:ih,purple_red:ah,red_purple:oh,yellow_green_blue:sh,yellow_green:lh,yellow_orange_brown:ch,yellow_orange_red:uh},cie=Object.keys(i5),uie={blues:Pee,greens:Lee,greys:Fee,oranges:Wee,purples:Bee,reds:zee,turbo:Kee,viridis:Jee,inferno:ete,magma:Qee,plasma:tte,cividis:Uee,warm:Vee,cool:qee,cubehelixDefault:Hee,blue_green:Tee,blue_purple:$ee,green_blue:kee,orange_red:Mee,purple_blue_green:Eee,purple_blue:Oee,purple_red:Aee,red_purple:Ree,yellow_green_blue:Dee,yellow_green:jee,yellow_orange_brown:Iee,yellow_orange_red:Nee},Rp=_d({},n5,r5,i5),die=function(e){return oie.includes(e)},fie=function(e){return sie.includes(e)},hie=function(e){return cie.includes(e)},pie={rainbow:Yee,sinebow:Xee};_d({},lie,uie,pie);var mie=function(e){return e.theme!==void 0},gie=function(e){return e.from!==void 0},vie=function(e,t){if(typeof e=="function")return e;if(X0(e)){if(mie(e)){if(t===void 0)throw new Error("Unable to use color from theme as no theme was provided");var n=Vr(t,e.theme);if(n===void 0)throw new Error("Color from theme is undefined at path: '"+e.theme+"'");return function(){return n}}if(gie(e)){var r=function(l){return Vr(l,e.from)};if(Array.isArray(e.modifiers)){for(var i,a=[],o=function(){var l=i.value,c=l[0],u=l[1];if(c==="brighter")a.push(function(d){return d.brighter(u)});else if(c==="darker")a.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'");a.push(function(d){return d.opacity=u,d})}},s=aie(e.modifiers);!(i=s()).done;)o();return a.length===0?r:function(l){return a.reduce(function(c,u){return u(c)},is(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}},pr=function(e,t){return v.useMemo(function(){return vie(e,t)},[e,t])},bie=function(e,t){if(typeof e=="function")return e;var n=typeof t=="function"?t:function(d){return Vr(d,t)};if(Array.isArray(e)){var r=$a(e),i=function(d){return r(n(d))};return i.scale=r,i}if(X0(e)){if(function(d){return d.datum!==void 0}(e))return function(d){return Vr(d,e.datum)};if(function(d){return d.scheme!==void 0}(e)){if(die(e.scheme)){var a=$a(Rp[e.scheme]),o=function(d){return a(n(d))};return o.scale=a,o}if(fie(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=$a(Rp[e.scheme][e.size||11]),l=function(d){return s(n(d))};return l.scale=s,l}if(hie(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=$a(Rp[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}},Wv=function(e,t){return v.useMemo(function(){return bie(e,t)},[e,t])};function Et(){return Et=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},Et.apply(null,arguments)}var yie={pointerEvents:"none"},xie=function(e){var t=e.label,n=e.style,r=Lt();return y.jsx(Ht.g,{transform:n.transform,opacity:n.progress,style:yie,children:y.jsx(Os,{textAnchor:"middle",dominantBaseline:"central",style:Et({},r.labels.text,{fill:n.textColor}),children:t})})},a5=function(e){var t=e%(2*Math.PI);return t<0&&(t+=2*Math.PI),t},o5=function(e,t){return e.filter(function(n){return Math.abs(Dc(n.arc.endAngle-n.arc.startAngle))>=t})},wie={startAngle:{enter:function(e){return Et({},e,{endAngle:e.startAngle})},update:function(e){return e},leave:function(e){return Et({},e,{startAngle:e.endAngle})}},middleAngle:{enter:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return Et({},e,{startAngle:t,endAngle:t})},update:function(e){return e},leave:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return Et({},e,{startAngle:t,endAngle:t})}},endAngle:{enter:function(e){return Et({},e,{startAngle:e.endAngle})},update:function(e){return e},leave:function(e){return Et({},e,{endAngle:e.startAngle})}},innerRadius:{enter:function(e){return Et({},e,{outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return Et({},e,{innerRadius:e.outerRadius})}},centerRadius:{enter:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return Et({},e,{innerRadius:t,outerRadius:t})},update:function(e){return e},leave:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return Et({},e,{innerRadius:t,outerRadius:t})}},outerRadius:{enter:function(e){return Et({},e,{innerRadius:e.outerRadius})},update:function(e){return e},leave:function(e){return Et({},e,{outerRadius:e.innerRadius})}},pushIn:{enter:function(e){return Et({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return Et({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})}},pushOut:{enter:function(e){return Et({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})},update:function(e){return e},leave:function(e){return Et({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})}}},s5=function(e,t){return v.useMemo(function(){var n=wie[e];return{enter:function(r){return Et({progress:0},n.enter(r.arc),t?t.enter(r):{})},update:function(r){return Et({progress:1},n.update(r.arc),t?t.update(r):{})},leave:function(r){return Et({progress:0},n.leave(r.arc),t?t.leave(r):{})}}},[e,t])},l5=function(e,t){var n=zre(e)-Math.PI/2,r=e.innerRadius+(e.outerRadius-e.innerRadius)*t;return ja(n,r)},_ie=function(e){return function(t,n,r,i){return Ki([t,n,r,i],function(a,o,s,l){var c=l5({startAngle:a,endAngle:o,innerRadius:s,outerRadius:l},e);return"translate("+c.x+","+c.y+")"})}},Cie=function(e,t,n,r){t===void 0&&(t=.5),n===void 0&&(n="innerRadius");var i=Fn(),a=i.animate,o=i.config,s=s5(n,r);return{transition:Ka(e,{keys:function(l){return l.id},initial:s.update,from:s.enter,enter:s.update,update:s.update,leave:s.leave,config:o,immediate:!a}),interpolate:_ie(t)}},Sie=function(e){var t=e.data,n=e.offset,r=n===void 0?.5:n,i=e.skipAngle,a=i===void 0?0:i,o=e.computeExtraProps,s=o===void 0?function(){return{}}:o;return v.useMemo(function(){return o5(t,a).map(function(l){var c=l5(l.arc,r);return Et({},s(l),{x:c.x,y:c.y,data:l})})},[t,r,a,s])},Tie=function(e){var t=e.center,n=e.data,r=e.transitionMode,i=e.label,a=e.radiusOffset,o=e.skipAngle,s=e.skipRadius,l=e.textColor,c=e.component,u=c===void 0?xie:c,d=pi(i),f=Lt(),h=pr(l,f),p=v.useMemo(function(){return n.filter(function(w){var C=Math.abs(Dc(w.arc.endAngle-w.arc.startAngle)),b=Math.abs(w.arc.outerRadius-w.arc.innerRadius);return C>=o&&b>=s})},[n,o,s]),m=Cie(p,a,r),g=m.transition,x=m.interpolate,_=u;return y.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:g(function(w,C){return v.createElement(_,{key:C.id,datum:C,label:d(C),style:{progress:w.progress,transform:x(w.startAngle,w.endAngle,w.innerRadius,w.outerRadius),textColor:h(C)}})})})},$ie=function(e,t,n){Ya(e,n.labels.text),e.textAlign="center",e.textBaseline="middle",t.forEach(function(r){Ga(e,Et({},n.labels.text,{fill:r.textColor}),String(r.label),r.x,r.y)})},kie=function(e){var t=e.data,n=e.offset,r=e.skipAngle,i=e.label,a=e.textColor,o=pi(i),s=Lt(),l=pr(a,s),c=v.useCallback(function(u){return{label:o(u),textColor:l(u)}},[o,l]);return Sie({data:t,offset:n,skipAngle:r,computeExtraProps:c})},Mie=function(e){var t=e.label,n=e.style,r=Lt();return y.jsxs(Ht.g,{opacity:n.opacity,children:[y.jsx(Ht.path,{fill:"none",stroke:n.linkColor,strokeWidth:n.thickness,d:n.path}),y.jsx(Os,{transform:n.textPosition,textAnchor:n.textAnchor,dominantBaseline:"central",style:Et({},r.labels.text,{fill:n.textColor}),children:t})]})},Eie=function(e){var t=a5(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2);return t<Math.PI/2||t>1.5*Math.PI?"start":"end"},Uv=function(e,t,n,r){var i,a,o=a5(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2),s=ja(o,e.outerRadius+t),l=ja(o,e.outerRadius+t+n);return o<Math.PI/2||o>1.5*Math.PI?(i="after",a={x:l.x+r,y:l.y}):(i="before",a={x:l.x-r,y:l.y}),{side:i,points:[s,l,a]}},Oie=fv().x(function(e){return e.x}).y(function(e){return e.y}),Aie=function(e,t,n,r,i,a,o){return Ki([e,t,n,r,i,a,o],function(s,l,c,u,d,f,h){var p=Uv({startAngle:s,endAngle:l,outerRadius:u},d,f,h).points;return Oie(p)})},Rie=function(e,t,n,r){return Ki([e,t,n,r],function(i,a,o,s){return Eie({startAngle:i,endAngle:a})})},Die=function(e,t,n,r,i,a,o,s){return Ki([e,t,n,r,i,a,o,s],function(l,c,u,d,f,h,p,m){var g=Uv({startAngle:l,endAngle:c,outerRadius:d},f,h,p),x=g.points,_=g.side,w=x[2];return _==="before"?w.x-=m:w.x+=m,"translate("+w.x+","+w.y+")"})},jie=function(e){var t=e.data,n=e.offset,r=n===void 0?0:n,i=e.diagonalLength,a=e.straightLength,o=e.skipAngle,s=o===void 0?0:o,l=e.textOffset,c=e.linkColor,u=e.textColor,d=Fn(),f=d.animate,h=d.config,p=Lt(),m=pr(c,p),g=pr(u,p),x=function(w,C){return v.useMemo(function(){return o5(w,C)},[w,C])}(t,s),_=function(w){var C=w.offset,b=w.diagonalLength,S=w.straightLength,M=w.textOffset,$=w.getLinkColor,k=w.getTextColor;return v.useMemo(function(){return{enter:function(D){return{startAngle:D.arc.startAngle,endAngle:D.arc.endAngle,innerRadius:D.arc.innerRadius,outerRadius:D.arc.outerRadius,offset:C,diagonalLength:0,straightLength:0,textOffset:M,linkColor:$(D),textColor:k(D),opacity:0}},update:function(D){return{startAngle:D.arc.startAngle,endAngle:D.arc.endAngle,innerRadius:D.arc.innerRadius,outerRadius:D.arc.outerRadius,offset:C,diagonalLength:b,straightLength:S,textOffset:M,linkColor:$(D),textColor:k(D),opacity:1}},leave:function(D){return{startAngle:D.arc.startAngle,endAngle:D.arc.endAngle,innerRadius:D.arc.innerRadius,outerRadius:D.arc.outerRadius,offset:C,diagonalLength:0,straightLength:0,textOffset:M,linkColor:$(D),textColor:k(D),opacity:0}}}},[b,S,M,$,k,C])}({offset:r,diagonalLength:i,straightLength:a,textOffset:l,getLinkColor:m,getTextColor:g});return{transition:Ka(x,{keys:function(w){return w.id},initial:_.update,from:_.enter,enter:_.update,update:_.update,leave:_.leave,config:h,immediate:!f}),interpolateLink:Aie,interpolateTextAnchor:Rie,interpolateTextPosition:Die}},Iie=function(e){var t=e.center,n=e.data,r=e.label,i=e.skipAngle,a=e.offset,o=e.diagonalLength,s=e.straightLength,l=e.strokeWidth,c=e.textOffset,u=e.textColor,d=e.linkColor,f=e.component,h=f===void 0?Mie:f,p=pi(r),m=jie({data:n,skipAngle:i,offset:a,diagonalLength:o,straightLength:s,textOffset:c,linkColor:d,textColor:u}),g=m.transition,x=m.interpolateLink,_=m.interpolateTextAnchor,w=m.interpolateTextPosition,C=h;return y.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:g(function(b,S){return v.createElement(C,{key:S.id,datum:S,label:p(S),style:Et({},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)})})})})},Nie=function(e,t,n,r){e.textBaseline="middle",Ya(e,n.labels.text),t.forEach(function(i){e.textAlign=GS.canvas.align[i.textAnchor],Ga(e,Et({},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(a,o){o===0?e.moveTo(a.x,a.y):e.lineTo(a.x,a.y)}),e.stroke()})},Pie=function(e){var t=e.data,n=e.skipAngle,r=n===void 0?0:n,i=e.offset,a=i===void 0?.5:i,o=e.diagonalLength,s=e.straightLength,l=e.computeExtraProps,c=l===void 0?function(){return{}}:l,u=v.useMemo(function(){return t.filter(function(d){return Math.abs(Dc(d.arc.endAngle-d.arc.startAngle))>=r}).map(function(d){return Et({},Uv(d.arc,a,o,s),{data:d})})},[t,r,a,o,s]);return v.useMemo(function(){return u.map(function(d){return Et({},c(d),d)})},[u,c])},Lie=function(e){var t=e.data,n=e.skipAngle,r=e.offset,i=e.diagonalLength,a=e.straightLength,o=e.textOffset,s=o===void 0?0:o,l=e.label,c=e.linkColor,u=e.textColor,d=pi(l),f=Lt(),h=pr(c,f),p=pr(u,f),m=v.useCallback(function(g){var x,_={x:g.points[2].x,y:g.points[2].y};return g.side==="before"?(_.x-=s,x="end"):(_.x+=s,x="start"),Et({},_,{label:d(g.data),linkColor:h(g.data),textAnchor:x,textColor:p(g.data)})},[d,h,p,s]);return Pie({data:t,skipAngle:n,offset:r,diagonalLength:i,straightLength:a,computeExtraProps:m})},Fie=function(e){var t=e.datum,n=e.style,r=e.onClick,i=e.onMouseEnter,a=e.onMouseMove,o=e.onMouseLeave,s=v.useCallback(function(d){return r==null?void 0:r(t,d)},[r,t]),l=v.useCallback(function(d){return i==null?void 0:i(t,d)},[i,t]),c=v.useCallback(function(d){return a==null?void 0:a(t,d)},[a,t]),u=v.useCallback(function(d){return o==null?void 0:o(t,d)},[o,t]);return y.jsx(Ht.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:a?c:void 0,onMouseLeave:o?u:void 0,"data-testid":"arc."+t.id})},Bie=function(e,t,n,r,i){return Ki([e,t,n,r],function(a,o,s,l){return i({startAngle:a,endAngle:o,innerRadius:Math.max(0,s),outerRadius:Math.max(0,l)})})},zie=function(e,t,n){t===void 0&&(t="innerRadius");var r=Fn(),i=r.animate,a=r.config,o=s5(t,n);return{transition:Ka(e,{keys:function(s){return s.id},initial:o.update,from:o.enter,enter:o.update,update:o.update,leave:o.leave,config:a,immediate:!i}),interpolate:Bie}},Wie=function(e){var t=e.center,n=e.data,r=e.arcGenerator,i=e.borderWidth,a=e.borderColor,o=e.onClick,s=e.onMouseEnter,l=e.onMouseMove,c=e.onMouseLeave,u=e.transitionMode,d=e.component,f=d===void 0?Fie:d,h=Lt(),p=pr(a,h),m=zie(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)}}}),g=m.transition,x=m.interpolate,_=f;return y.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:g(function(w,C){return v.createElement(_,{key:C.id,datum:C,style:Et({},w,{borderWidth:i,path:x(w.startAngle,w.endAngle,w.innerRadius,w.outerRadius,r)}),onClick:o,onMouseEnter:s,onMouseMove:l,onMouseLeave:c})})})},Uie=function(e,t,n,r,i,a){a===void 0&&(a=!0);var o=[],s=ja(dr(r),n);o.push([s.x,s.y]);var l=ja(dr(i),n);o.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=ja(dr(c),n);o.push([u.x,u.y])}o=o.map(function(g){var x=g[0],_=g[1];return[e+x,t+_]}),a&&o.push([e,t]);var d=o.map(function(g){return g[0]}),f=o.map(function(g){return g[1]}),h=Math.min.apply(Math,d),p=Math.max.apply(Math,d),m=Math.min.apply(Math,f);return{points:o,x:h,y:m,width:p-h,height:Math.max.apply(Math,f)-m}},Hie=function(e,t,n,r,i,a){var o=e5(i,a,e,t);return o<n&&o>r},Vie=function(e,t,n,r,i,a,o){if(Hie(e,t,n,r,a,o)){var s=Qre(a,o,e,t);return i.find(function(l){var c=l.startAngle,u=l.endAngle;return s>=c&&s<u})}},qie=function(e){var t=e===void 0?{}:e,n=t.cornerRadius,r=n===void 0?0:n,i=t.padAngle,a=i===void 0?0:i;return v.useMemo(function(){return AK().innerRadius(function(o){return o.innerRadius}).outerRadius(function(o){return o.outerRadius}).cornerRadius(r).padAngle(a)},[r,a])},Yie=function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,a=e.opacity,o=a===void 0?1:a,s=e.borderWidth,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:o,strokeWidth:l,stroke:c===void 0?"transparent":c,style:{pointerEvents:"none"}})},Gie=function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,a=e.opacity,o=a===void 0?1:a,s=e.borderWidth,l=s===void 0?0:s,c=e.borderColor;return y.jsx("g",{transform:"translate("+t+","+n+")",children:y.jsx("path",{d:`
275
+ M`+r/2+` 0
276
+ L`+.8*r+" "+r/2+`
277
+ L`+r/2+" "+r+`
278
+ L`+.2*r+" "+r/2+`
279
+ L`+r/2+` 0
280
+ `,fill:i,opacity:o,strokeWidth:l,stroke:c===void 0?"transparent":c,style:{pointerEvents:"none"}})})},Zie=function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,a=e.opacity,o=a===void 0?1:a,s=e.borderWidth,l=s===void 0?0:s,c=e.borderColor;return y.jsx("rect",{x:t,y:n,fill:i,opacity:o,strokeWidth:l,stroke:c===void 0?"transparent":c,width:r,height:r,style:{pointerEvents:"none"}})},Xie=function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,a=e.opacity,o=a===void 0?1:a,s=e.borderWidth,l=s===void 0?0:s,c=e.borderColor;return y.jsx("g",{transform:"translate("+t+","+n+")",children:y.jsx("path",{d:`
281
+ M`+r/2+` 0
282
+ L`+r+" "+r+`
283
+ L0 `+r+`
284
+ L`+r/2+` 0
285
+ `,fill:i,opacity:o,strokeWidth:l,stroke:c===void 0?"transparent":c,style:{pointerEvents:"none"}})})};function zi(){return zi=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},zi.apply(null,arguments)}var lr={translateX:0,translateY:0,padding:0,itemsSpacing:0,itemDirection:"left-to-right",justify:!1,symbolShape:"square",symbolSize:16,symbolSpacing:8},Kie={top:0,right:0,bottom:0,left:0},Hv=function(e){var t,n=e.direction,r=e.itemsSpacing,i=e.padding,a=e.itemCount,o=e.itemWidth,s=e.itemHeight;if(typeof i!="number"&&(typeof(t=i)!="object"||Array.isArray(t)||t===null))throw new Error("Invalid property padding, must be one of: number, object");var l=typeof i=="number"?{top:i,right:i,bottom:i,left:i}:zi({},Kie,i),c=l.left+l.right,u=l.top+l.bottom,d=o+c,f=s+u,h=(a-1)*r;return n==="row"?d=o*a+h+c:n==="column"&&(f=s*a+h+u),{width:d,height:f,padding:l}},c5=function(e){var t=e.anchor,n=e.translateX,r=e.translateY,i=e.containerWidth,a=e.containerHeight,o=e.width,s=e.height,l=n,c=r;switch(t){case"top":l+=(i-o)/2;break;case"top-right":l+=i-o;break;case"right":l+=i-o,c+=(a-s)/2;break;case"bottom-right":l+=i-o,c+=a-s;break;case"bottom":l+=(i-o)/2,c+=a-s;break;case"bottom-left":c+=a-s;break;case"left":c+=(a-s)/2;break;case"center":l+=(i-o)/2,c+=(a-s)/2}return{x:l,y:c}},u5=function(e){var t,n,r,i,a,o,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,o="central",l?(r=d,a="end"):(r=c+u,a="start");break;case"right-to-left":t=d-c,n=(f-c)/2,i=f/2,o="central",l?(r=0,a="start"):(r=d-c-u,a="end");break;case"top-to-bottom":t=(d-c)/2,n=0,r=d/2,a="middle",l?(i=f,o="alphabetic"):(i=c+u,o="text-before-edge");break;case"bottom-to-top":t=(d-c)/2,n=f-c,r=d/2,a="middle",l?(i=0,o="text-before-edge"):(i=f-c-u,o="alphabetic")}return{symbolX:t,symbolY:n,labelX:r,labelY:i,labelAnchor:a,labelAlignment:o}},Jie={circle:Yie,diamond:Gie,square:Zie,triangle:Xie},Qie=function(e){var t,n,r,i,a,o,s,l,c,u,d,f=e.x,h=e.y,p=e.width,m=e.height,g=e.data,x=e.direction,_=x===void 0?lr.itemDirection:x,w=e.justify,C=w===void 0?lr.justify:w,b=e.textColor,S=e.background,M=S===void 0?"transparent":S,$=e.opacity,k=$===void 0?1:$,D=e.symbolShape,T=D===void 0?lr.symbolShape:D,E=e.symbolSize,R=E===void 0?lr.symbolSize:E,j=e.symbolSpacing,O=j===void 0?lr.symbolSpacing:j,A=e.symbolBorderWidth,I=A===void 0?0:A,F=e.symbolBorderColor,z=F===void 0?"transparent":F,L=e.onClick,H=e.onMouseEnter,Y=e.onMouseLeave,q=e.toggleSerie,Z=e.effects,X=v.useState({}),J=X[0],ee=X[1],W=Lt(),P=v.useCallback(function(le){if(Z){var ye=Z.filter(function(ge){return ge.on==="hover"}).reduce(function(ge,be){return zi({},ge,be.style)},{});ee(ye)}H==null||H(g,le)},[H,g,Z]),B=v.useCallback(function(le){if(Z){var ye=Z.filter(function(ge){return ge.on!=="hover"}).reduce(function(ge,be){return zi({},ge,be.style)},{});ee(ye)}Y==null||Y(g,le)},[Y,g,Z]),V=u5({direction:_,justify:C,symbolSize:(t=J.symbolSize)!=null?t:R,symbolSpacing:O,width:p,height:m}),N=V.symbolX,te=V.symbolY,K=V.labelX,G=V.labelY,oe=V.labelAnchor,ne=V.labelAlignment,re=[L,H,Y,q].some(function(le){return le!==void 0}),ae=typeof T=="function"?T:Jie[T];return y.jsxs("g",{transform:"translate("+f+","+h+")",style:{opacity:(n=J.itemOpacity)!=null?n:k},children:[y.jsx("rect",{width:p,height:m,fill:(r=J.itemBackground)!=null?r:M,style:{cursor:re?"pointer":"auto"},onClick:function(le){L==null||L(g,le),q==null||q(g.id)},onMouseEnter:P,onMouseLeave:B}),fe.createElement(ae,zi({id:g.id,x:N,y:te,size:(i=J.symbolSize)!=null?i:R,fill:(a=(o=g.fill)!=null?o:g.color)!=null?a:"black",borderWidth:(s=J.symbolBorderWidth)!=null?s:I,borderColor:(l=J.symbolBorderColor)!=null?l:z},g.hidden?W.legends.hidden.symbol:void 0)),y.jsx(Os,{textAnchor:oe,style:zi({},W.legends.text,{fill:(c=(u=(d=J.itemTextColor)!=null?d:b)!=null?u:W.legends.text.fill)!=null?c:"black",dominantBaseline:ne,pointerEvents:"none",userSelect:"none"},g.hidden?W.legends.hidden.text:void 0),x:K,y:G,children:g.label})]})},eae=function(e){var t=e.data,n=e.x,r=e.y,i=e.direction,a=e.padding,o=a===void 0?lr.padding:a,s=e.justify,l=e.effects,c=e.itemWidth,u=e.itemHeight,d=e.itemDirection,f=d===void 0?lr.itemDirection:d,h=e.itemsSpacing,p=h===void 0?lr.itemsSpacing:h,m=e.itemTextColor,g=e.itemBackground,x=g===void 0?"transparent":g,_=e.itemOpacity,w=_===void 0?1:_,C=e.symbolShape,b=e.symbolSize,S=e.symbolSpacing,M=e.symbolBorderWidth,$=e.symbolBorderColor,k=e.onClick,D=e.onMouseEnter,T=e.onMouseLeave,E=e.toggleSerie,R=Hv({itemCount:t.length,itemWidth:c,itemHeight:u,itemsSpacing:p,direction:i,padding:o}).padding,j=i==="row"?c+p:0,O=i==="column"?u+p:0;return y.jsx("g",{transform:"translate("+n+","+r+")",children:t.map(function(A,I){return y.jsx(Qie,{data:A,x:I*j+R.left,y:I*O+R.top,width:c,height:u,direction:f,justify:s,effects:l,textColor:m,background:x,opacity:w,symbolShape:C,symbolSize:b,symbolSpacing:S,symbolBorderWidth:M,symbolBorderColor:$,onClick:k,onMouseEnter:D,onMouseLeave:T,toggleSerie:E},I)})})},Vv=function(e){var t=e.data,n=e.containerWidth,r=e.containerHeight,i=e.translateX,a=i===void 0?lr.translateX:i,o=e.translateY,s=o===void 0?lr.translateY:o,l=e.anchor,c=e.direction,u=e.padding,d=u===void 0?lr.padding:u,f=e.justify,h=e.itemsSpacing,p=h===void 0?lr.itemsSpacing:h,m=e.itemWidth,g=e.itemHeight,x=e.itemDirection,_=e.itemTextColor,w=e.itemBackground,C=e.itemOpacity,b=e.symbolShape,S=e.symbolSize,M=e.symbolSpacing,$=e.symbolBorderWidth,k=e.symbolBorderColor,D=e.onClick,T=e.onMouseEnter,E=e.onMouseLeave,R=e.toggleSerie,j=e.effects,O=Hv({itemCount:t.length,itemsSpacing:p,itemWidth:m,itemHeight:g,direction:c,padding:d}),A=O.width,I=O.height,F=c5({anchor:l,translateX:a,translateY:s,containerWidth:n,containerHeight:r,width:A,height:I}),z=F.x,L=F.y;return y.jsx(eae,{data:t,x:z,y:L,direction:c,padding:d,justify:f,effects:j,itemsSpacing:p,itemWidth:m,itemHeight:g,itemDirection:x,itemTextColor:_,itemBackground:w,itemOpacity:C,symbolShape:b,symbolSize:S,symbolSpacing:M,symbolBorderWidth:$,symbolBorderColor:k,onClick:D,onMouseEnter:T,onMouseLeave:E,toggleSerie:typeof R=="boolean"?void 0:R})},tae={start:"left",middle:"center",end:"right"},qv=function(e,t){var n=t.data,r=t.containerWidth,i=t.containerHeight,a=t.translateX,o=a===void 0?0:a,s=t.translateY,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,m=t.itemsSpacing,g=m===void 0?0:m,x=t.itemWidth,_=t.itemHeight,w=t.itemDirection,C=w===void 0?"left-to-right":w,b=t.itemTextColor,S=t.symbolSize,M=S===void 0?16:S,$=t.symbolSpacing,k=$===void 0?8:$,D=t.theme,T=Hv({itemCount:n.length,itemWidth:x,itemHeight:_,itemsSpacing:g,direction:u,padding:f}),E=T.width,R=T.height,j=T.padding,O=c5({anchor:c,translateX:o,translateY:l,containerWidth:r,containerHeight:i,width:E,height:R}),A=O.x,I=O.y,F=u==="row"?x+g:0,z=u==="column"?_+g:0;e.save(),e.translate(A,I),Ya(e,D.legends.text),n.forEach(function(L,H){var Y,q=H*F+j.left,Z=H*z+j.top,X=u5({direction:C,justify:p,symbolSize:M,symbolSpacing:k,width:x,height:_}),J=X.symbolX,ee=X.symbolY,W=X.labelX,P=X.labelY,B=X.labelAnchor,V=X.labelAlignment;e.fillStyle=(Y=L.color)!=null?Y:"black",e.fillRect(q+J,Z+ee,M,M),e.textAlign=tae[B],V==="central"&&(e.textBaseline="middle"),Ga(e,zi({},D.legends.text,{fill:b??D.legends.text.fill}),String(L.label),q+W,Z+P)}),e.restore()};function mr(){return mr=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},mr.apply(null,arguments)}function jc(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 gx,nae=function(e){var t=e.width,n=e.height,r=e.legends,i=e.data,a=e.toggleSerie;return y.jsx(y.Fragment,{children:r.map(function(o,s){var l;return y.jsx(Vv,mr({},o,{containerWidth:t,containerHeight:n,data:(l=o.data)!=null?l:i,toggleSerie:o.toggleSerie?a:void 0}),s)})})},me={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(nv,{id:t.id,value:t.formattedValue,enableChip:!0,color:t.color})},legends:[],role:"img",pixelRatio:typeof window<"u"&&(gx=window.devicePixelRatio)!=null?gx:1},rae=["points"],d5=function(e){var t=e.data,n=e.id,r=n===void 0?me.id:n,i=e.value,a=i===void 0?me.value:i,o=e.valueFormat,s=e.colors,l=s===void 0?me.colors:s,c=pi(r),u=pi(a),d=os(o),f=Wv(l,"id");return v.useMemo(function(){return t.map(function(h){var p,m=c(h),g=u(h),x={id:m,label:(p=h.label)!=null?p:m,hidden:!1,value:g,formattedValue:d(g),data:h};return mr({},x,{color:f(x)})})},[t,c,u,d,f])},iae=function(e){var t=e.data,n=e.startAngle,r=e.endAngle,i=e.innerRadius,a=e.outerRadius,o=e.padAngle,s=e.sortByValue,l=e.activeId,c=e.activeInnerRadiusOffset,u=e.activeOuterRadiusOffset,d=e.hiddenIds,f=e.forwardLegendData,h=v.useMemo(function(){var x=IK().value(function(_){return _.value}).startAngle(dr(n)).endAngle(dr(r)).padAngle(dr(o));return s||x.sortValues(null),x},[n,r,o,s]),p=v.useMemo(function(){var x=t.filter(function(_){return!d.includes(_.id)});return{dataWithArc:h(x).map(function(_){var w=Math.abs(_.endAngle-_.startAngle);return mr({},_.data,{arc:{index:_.index,startAngle:_.startAngle,endAngle:_.endAngle,innerRadius:l===_.data.id?i-c:i,outerRadius:l===_.data.id?a+u:a,thickness:a-i,padAngle:_.padAngle,angle:w,angleDeg:Dc(w)}})}),legendData:t.map(function(_){return{id:_.id,label:_.label,color:_.color,hidden:d.includes(_.id),data:_}})}},[h,t,d,l,i,c,a,u]),m=p.legendData,g=v.useRef(f);return v.useEffect(function(){typeof g.current=="function"&&g.current(m)},[g,m]),p},aae=function(e){var t=e.activeId,n=e.onActiveIdChange,r=e.defaultActiveId,i=t!==void 0,a=v.useState(i||r===void 0?null:r),o=a[0],s=a[1];return{activeId:i?t:o,setActiveId:v.useCallback(function(l){n&&n(l),i||s(l)},[i,n,s])}},f5=function(e){var t=e.data,n=e.width,r=e.height,i=e.innerRadius,a=i===void 0?me.innerRadius:i,o=e.startAngle,s=o===void 0?me.startAngle:o,l=e.endAngle,c=l===void 0?me.endAngle:l,u=e.padAngle,d=u===void 0?me.padAngle:u,f=e.sortByValue,h=f===void 0?me.sortByValue:f,p=e.cornerRadius,m=p===void 0?me.cornerRadius:p,g=e.fit,x=g===void 0?me.fit:g,_=e.activeInnerRadiusOffset,w=_===void 0?me.activeInnerRadiusOffset:_,C=e.activeOuterRadiusOffset,b=C===void 0?me.activeOuterRadiusOffset:C,S=e.activeId,M=e.onActiveIdChange,$=e.defaultActiveId,k=e.forwardLegendData,D=aae({activeId:S,onActiveIdChange:M,defaultActiveId:$}),T=D.activeId,E=D.setActiveId,R=v.useState([]),j=R[0],O=R[1],A=v.useMemo(function(){var z,L=Math.min(n,r)/2,H=L*Math.min(a,1),Y=n/2,q=r/2;if(x){var Z=Uie(Y,q,L,s-90,c-90),X=Z.points,J=jc(Z,rae),ee=Math.min(n/J.width,r/J.height),W={width:J.width*ee,height:J.height*ee};W.x=(n-W.width)/2,W.y=(r-W.height)/2,Y=(Y-J.x)/J.width*J.width*ee+W.x,q=(q-J.y)/J.height*J.height*ee+W.y,z={box:J,ratio:ee,points:X},L*=ee,H*=ee}return{centerX:Y,centerY:q,radius:L,innerRadius:H,debug:z}},[n,r,a,s,c,x]),I=iae({data:t,startAngle:s,endAngle:c,innerRadius:A.innerRadius,outerRadius:A.radius,padAngle:d,sortByValue:h,activeId:T,activeInnerRadiusOffset:w,activeOuterRadiusOffset:b,hiddenIds:j,forwardLegendData:k}),F=v.useCallback(function(z){O(function(L){return L.indexOf(z)>-1?L.filter(function(H){return H!==z}):[].concat(L,[z])})},[]);return mr({arcGenerator:qie({cornerRadius:m,padAngle:dr(d)}),activeId:T,setActiveId:E,toggleSerie:F},I,A)},oae=function(e){var t=e.dataWithArc,n=e.arcGenerator,r=e.centerX,i=e.centerY,a=e.radius,o=e.innerRadius;return v.useMemo(function(){return{dataWithArc:t,arcGenerator:n,centerX:r,centerY:i,radius:a,innerRadius:o}},[t,n,r,i,a,o])},sae=function(e){var t=e.center,n=e.data,r=e.arcGenerator,i=e.borderWidth,a=e.borderColor,o=e.isInteractive,s=e.onClick,l=e.onMouseEnter,c=e.onMouseMove,u=e.onMouseLeave,d=e.setActiveId,f=e.tooltip,h=e.transitionMode,p=Ti(),m=p.showTooltipFromEvent,g=p.hideTooltip,x=v.useMemo(function(){if(o)return function(b,S){s==null||s(b,S)}},[o,s]),_=v.useMemo(function(){if(o)return function(b,S){m(v.createElement(f,{datum:b}),S),d(b.id),l==null||l(b,S)}},[o,m,d,l,f]),w=v.useMemo(function(){if(o)return function(b,S){m(v.createElement(f,{datum:b}),S),c==null||c(b,S)}},[o,m,c,f]),C=v.useMemo(function(){if(o)return function(b,S){g(),d(null),u==null||u(b,S)}},[o,g,d,u]);return y.jsx(Wie,{center:t,data:n,arcGenerator:r,borderWidth:i,borderColor:a,transitionMode:h,onClick:x,onMouseEnter:_,onMouseMove:w,onMouseLeave:C})},lae=["isInteractive","animate","motionConfig","theme","renderWrapper"],cae=function(e){var t=e.data,n=e.id,r=n===void 0?me.id:n,i=e.value,a=i===void 0?me.value:i,o=e.valueFormat,s=e.sortByValue,l=s===void 0?me.sortByValue:s,c=e.layers,u=c===void 0?me.layers:c,d=e.startAngle,f=d===void 0?me.startAngle:d,h=e.endAngle,p=h===void 0?me.endAngle:h,m=e.padAngle,g=m===void 0?me.padAngle:m,x=e.fit,_=x===void 0?me.fit:x,w=e.innerRadius,C=w===void 0?me.innerRadius:w,b=e.cornerRadius,S=b===void 0?me.cornerRadius:b,M=e.activeInnerRadiusOffset,$=M===void 0?me.activeInnerRadiusOffset:M,k=e.activeOuterRadiusOffset,D=k===void 0?me.activeOuterRadiusOffset:k,T=e.width,E=e.height,R=e.margin,j=e.colors,O=j===void 0?me.colors:j,A=e.borderWidth,I=A===void 0?me.borderWidth:A,F=e.borderColor,z=F===void 0?me.borderColor:F,L=e.enableArcLabels,H=L===void 0?me.enableArcLabels:L,Y=e.arcLabel,q=Y===void 0?me.arcLabel:Y,Z=e.arcLabelsSkipAngle,X=Z===void 0?me.arcLabelsSkipAngle:Z,J=e.arcLabelsSkipRadius,ee=J===void 0?me.arcLabelsSkipRadius:J,W=e.arcLabelsTextColor,P=W===void 0?me.arcLabelsTextColor:W,B=e.arcLabelsRadiusOffset,V=B===void 0?me.arcLabelsRadiusOffset:B,N=e.arcLabelsComponent,te=e.enableArcLinkLabels,K=te===void 0?me.enableArcLinkLabels:te,G=e.arcLinkLabel,oe=G===void 0?me.arcLinkLabel:G,ne=e.arcLinkLabelsSkipAngle,re=ne===void 0?me.arcLinkLabelsSkipAngle:ne,ae=e.arcLinkLabelsOffset,le=ae===void 0?me.arcLinkLabelsOffset:ae,ye=e.arcLinkLabelsDiagonalLength,ge=ye===void 0?me.arcLinkLabelsDiagonalLength:ye,be=e.arcLinkLabelsStraightLength,Me=be===void 0?me.arcLinkLabelsStraightLength:be,ce=e.arcLinkLabelsThickness,de=ce===void 0?me.arcLinkLabelsThickness:ce,Ce=e.arcLinkLabelsTextOffset,Ge=Ce===void 0?me.arcLinkLabelsTextOffset:Ce,we=e.arcLinkLabelsTextColor,ve=we===void 0?me.arcLinkLabelsTextColor:we,Pe=e.arcLinkLabelsColor,Ze=Pe===void 0?me.arcLinkLabelsColor:Pe,_t=e.arcLinkLabelComponent,Te=e.defs,Re=Te===void 0?me.defs:Te,it=e.fill,Ue=it===void 0?me.fill:it,mt=e.isInteractive,ct=mt===void 0?me.isInteractive:mt,At=e.onClick,Ke=e.onMouseEnter,Le=e.onMouseMove,Ve=e.onMouseLeave,et=e.tooltip,Fe=et===void 0?me.tooltip:et,tt=e.activeId,vt=e.onActiveIdChange,at=e.defaultActiveId,Ne=e.transitionMode,Ee=Ne===void 0?me.transitionMode:Ne,Ye=e.legends,xt=Ye===void 0?me.legends:Ye,nt=e.forwardLegendData,bt=e.role,Jt=bt===void 0?me.role:bt,Ft=e.forwardedRef,zt=oo(T,E,R),fn=zt.outerWidth,qt=zt.outerHeight,$e=zt.margin,Je=zt.innerWidth,St=zt.innerHeight,an=d5({data:t,id:r,value:a,valueFormat:o,colors:O}),Yt=f5({data:an,width:Je,height:St,fit:_,innerRadius:C,startAngle:f,endAngle:p,padAngle:g,sortByValue:l,cornerRadius:S,activeInnerRadiusOffset:$,activeOuterRadiusOffset:D,activeId:tt,onActiveIdChange:vt,defaultActiveId:at,forwardLegendData:nt}),Be=Yt.dataWithArc,ze=Yt.legendData,ft=Yt.arcGenerator,Rt=Yt.centerX,Tt=Yt.centerY,Qe=Yt.radius,$t=Yt.innerRadius,vr=Yt.setActiveId,ln=Yt.toggleSerie,cn=Bv(Re,Be,Ue),An={arcs:null,arcLinkLabels:null,arcLabels:null,legends:null};u.includes("arcs")&&(An.arcs=y.jsx(sae,{center:[Rt,Tt],data:Be,arcGenerator:ft,borderWidth:I,borderColor:z,isInteractive:ct,onClick:At,onMouseEnter:Ke,onMouseMove:Le,onMouseLeave:Ve,setActiveId:vr,tooltip:Fe,transitionMode:Ee},"arcs")),K&&u.includes("arcLinkLabels")&&(An.arcLinkLabels=y.jsx(Iie,{center:[Rt,Tt],data:Be,label:oe,skipAngle:re,offset:le,diagonalLength:ge,straightLength:Me,strokeWidth:de,textOffset:Ge,textColor:ve,linkColor:Ze,component:_t},"arcLinkLabels")),H&&u.includes("arcLabels")&&(An.arcLabels=y.jsx(Tie,{center:[Rt,Tt],data:Be,label:q,radiusOffset:V,skipAngle:X,skipRadius:ee,textColor:P,transitionMode:Ee,component:N},"arcLabels")),xt.length>0&&u.includes("legends")&&(An.legends=y.jsx(nae,{width:Je,height:St,data:ze,legends:xt,toggleSerie:ln},"legends"));var ia=oae({dataWithArc:Be,arcGenerator:ft,centerX:Rt,centerY:Tt,radius:Qe,innerRadius:$t});return y.jsx(yh,{width:fn,height:qt,margin:$e,defs:cn,role:Jt,ref:Ft,children:u.map(function(Ct,aa){return An[Ct]!==void 0?An[Ct]:typeof Ct=="function"?y.jsx(v.Fragment,{children:v.createElement(Ct,ia)},aa):null})})},uae=v.forwardRef(function(e,t){var n=e.isInteractive,r=n===void 0?me.isInteractive:n,i=e.animate,a=i===void 0?me.animate:i,o=e.motionConfig,s=o===void 0?me.motionConfig:o,l=e.theme,c=e.renderWrapper,u=jc(e,lae);return y.jsx(io,{animate:a,isInteractive:r,motionConfig:s,renderWrapper:c,theme:l,children:y.jsx(cae,mr({isInteractive:r},u,{forwardedRef:t}))})}),dae=["defaultWidth","defaultHeight","onResize","debounceResize"],fae=v.forwardRef(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,a=e.debounceResize,o=jc(e,dae);return y.jsx(ao,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:a,children:function(s){var l=s.width,c=s.height;return y.jsx(uae,mr({width:l,height:c},o,{ref:t}))}})}),hae=["isInteractive","theme","renderWrapper"],pae=function(e){var t=e.data,n=e.id,r=n===void 0?me.id:n,i=e.value,a=i===void 0?me.value:i,o=e.valueFormat,s=e.sortByValue,l=s===void 0?me.sortByValue:s,c=e.startAngle,u=c===void 0?me.startAngle:c,d=e.endAngle,f=d===void 0?me.endAngle:d,h=e.padAngle,p=h===void 0?me.padAngle:h,m=e.fit,g=m===void 0?me.fit:m,x=e.innerRadius,_=x===void 0?me.innerRadius:x,w=e.cornerRadius,C=w===void 0?me.cornerRadius:w,b=e.activeInnerRadiusOffset,S=b===void 0?me.activeInnerRadiusOffset:b,M=e.activeOuterRadiusOffset,$=M===void 0?me.activeOuterRadiusOffset:M,k=e.width,D=e.height,T=e.margin,E=e.pixelRatio,R=E===void 0?me.pixelRatio:E,j=e.colors,O=j===void 0?me.colors:j,A=e.borderWidth,I=A===void 0?me.borderWidth:A,F=e.borderColor,z=F===void 0?me.borderColor:F,L=e.enableArcLabels,H=L===void 0?me.enableArcLabels:L,Y=e.arcLabel,q=Y===void 0?me.arcLabel:Y,Z=e.arcLabelsSkipAngle,X=Z===void 0?me.arcLabelsSkipAngle:Z,J=e.arcLabelsTextColor,ee=J===void 0?me.arcLabelsTextColor:J,W=e.arcLabelsRadiusOffset,P=W===void 0?me.arcLabelsRadiusOffset:W,B=e.enableArcLinkLabels,V=B===void 0?me.enableArcLinkLabels:B,N=e.arcLinkLabel,te=N===void 0?me.arcLinkLabel:N,K=e.arcLinkLabelsSkipAngle,G=K===void 0?me.arcLinkLabelsSkipAngle:K,oe=e.arcLinkLabelsOffset,ne=oe===void 0?me.arcLinkLabelsOffset:oe,re=e.arcLinkLabelsDiagonalLength,ae=re===void 0?me.arcLinkLabelsDiagonalLength:re,le=e.arcLinkLabelsStraightLength,ye=le===void 0?me.arcLinkLabelsStraightLength:le,ge=e.arcLinkLabelsThickness,be=ge===void 0?me.arcLinkLabelsThickness:ge,Me=e.arcLinkLabelsTextOffset,ce=Me===void 0?me.arcLinkLabelsTextOffset:Me,de=e.arcLinkLabelsTextColor,Ce=de===void 0?me.arcLinkLabelsTextColor:de,Ge=e.arcLinkLabelsColor,we=Ge===void 0?me.arcLinkLabelsColor:Ge,ve=e.isInteractive,Pe=ve===void 0?me.isInteractive:ve,Ze=e.onClick,_t=e.onMouseMove,Te=e.tooltip,Re=Te===void 0?me.tooltip:Te,it=e.activeId,Ue=e.onActiveIdChange,mt=e.defaultActiveId,ct=e.legends,At=ct===void 0?me.legends:ct,Ke=e.forwardLegendData,Le=e.role,Ve=e.forwardedRef,et=v.useRef(null),Fe=Lt(),tt=oo(k,D,T),vt=tt.margin,at=tt.innerWidth,Ne=tt.innerHeight,Ee=tt.outerWidth,Ye=tt.outerHeight,xt=d5({data:t,id:r,value:a,valueFormat:o,colors:O}),nt=f5({data:xt,width:at,height:Ne,fit:g,innerRadius:_,startAngle:u,endAngle:f,padAngle:p,sortByValue:l,cornerRadius:C,activeInnerRadiusOffset:S,activeOuterRadiusOffset:$,activeId:it,onActiveIdChange:Ue,defaultActiveId:mt,forwardLegendData:Ke}),bt=nt.dataWithArc,Jt=nt.arcGenerator,Ft=nt.centerX,zt=nt.centerY,fn=nt.radius,qt=nt.innerRadius,$e=nt.setActiveId,Je=pr(z,Fe),St=kie({data:bt,label:q,skipAngle:X,offset:P,textColor:ee}),an=Lie({data:bt,skipAngle:G,offset:ne,diagonalLength:ae,straightLength:ye,label:te,linkColor:we,textOffset:ce,textColor:Ce});v.useEffect(function(){if(et.current){et.current.width=Ee*R,et.current.height=Ye*R;var Qe=et.current.getContext("2d");Qe.scale(R,R),Qe.fillStyle=Fe.background,Qe.fillRect(0,0,Ee,Ye),Qe.save(),Qe.translate(vt.left,vt.top),Jt.context(Qe),Qe.save(),Qe.translate(Ft,zt),bt.forEach(function($t){Qe.beginPath(),Qe.fillStyle=$t.color,Qe.strokeStyle=Je($t),Qe.lineWidth=I,Jt($t.arc),Qe.fill(),I>0&&Qe.stroke()}),V===!0&&Nie(Qe,an,Fe,be),H===!0&&$ie(Qe,St,Fe),Qe.restore(),At.forEach(function($t){qv(Qe,mr({},$t,{data:bt,containerWidth:at,containerHeight:Ne,theme:Fe}))})}},[et,at,Ne,Ee,Ye,vt.top,vt.left,R,Ft,zt,Jt,bt,I,Je,H,St,V,an,be,At,Fe]);var Yt=v.useMemo(function(){return bt.map(function(Qe){return mr({id:Qe.id},Qe.arc)})},[bt]),Be=function(Qe){if(!et.current)return null;var $t=Bo(et.current,Qe),vr=$t[0],ln=$t[1],cn=Vie(vt.left+Ft,vt.top+zt,fn,qt,Yt,vr,ln);return cn?bt.find(function(An){return An.id===cn.id}):null},ze=Ti(),ft=ze.showTooltipFromEvent,Rt=ze.hideTooltip,Tt=function(Qe){var $t=Be(Qe);$t?(_t==null||_t($t,Qe),$e($t.id),ft(v.createElement(Re,{datum:$t}),Qe)):($e(null),Rt())};return y.jsx("canvas",{ref:zv(et,Ve),width:Ee*R,height:Ye*R,style:{width:Ee,height:Ye,cursor:Pe?"auto":"normal"},onMouseEnter:Pe?Tt:void 0,onMouseMove:Pe?Tt:void 0,onMouseLeave:Pe?function(){Rt()}:void 0,onClick:Pe?function(Qe){if(Ze){var $t=Be(Qe);$t&&Ze($t,Qe)}}:void 0,role:Le})},mae=v.forwardRef(function(e,t){var n=e.isInteractive,r=n===void 0?me.isInteractive:n,i=e.theme,a=e.renderWrapper,o=jc(e,hae);return y.jsx(io,{isInteractive:r,renderWrapper:a,theme:i,children:y.jsx(pae,mr({isInteractive:r},o,{forwardedRef:t}))})}),gae=["defaultWidth","defaultHeight","onResize","debounceResize"];v.forwardRef(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,a=e.debounceResize,o=jc(e,gae);return y.jsx(ao,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:a,children:function(s){var l=s.width,c=s.height;return y.jsx(mae,mr({width:l,height:c},o,{ref:t}))}})});function vae(){}var bae=vae,Dp=WS,yae=bae,xae=Iv,wae=1/0,_ae=Dp&&1/xae(new Dp([,-0]))[1]==wae?function(e){return new Dp(e)}:yae,Cae=_ae,Sae=lv,Tae=j6,$ae=I6,kae=cv,Mae=Cae,Eae=Iv,Oae=200;function Aae(e,t,n){var r=-1,i=Tae,a=e.length,o=!0,s=[],l=s;if(n)o=!1,i=$ae;else if(a>=Oae){var c=t?null:Mae(e);if(c)return Eae(c);o=!1,i=kae,l=new Sae}else l=t?[]:s;e:for(;++r<a;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,o&&d===d){for(var f=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 h5=Aae,Rae=h5;function Dae(e){return e&&e.length?Rae(e):[]}var jae=Dae;const vx=nn(jae);var Iae=$f,Nae=Pv,Pae=1,Lae=2;function Fae(e,t,n,r){var i=n.length,a=i,o=!r;if(e==null)return!a;for(e=Object(e);i--;){var s=n[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=n[i];var l=s[0],c=e[l],u=s[1];if(o&&s[2]){if(c===void 0&&!(l in e))return!1}else{var d=new Iae;if(r)var f=r(c,u,l,e,t,d);if(!(f===void 0?Nae(u,c,Pae|Lae,r,d):f))return!1}}return!0}var Bae=Fae,zae=Kr;function Wae(e){return e===e&&!zae(e)}var p5=Wae,Uae=p5,Hae=Rc;function Vae(e){for(var t=Hae(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Uae(i)]}return t}var qae=Vae;function Yae(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var m5=Yae,Gae=Bae,Zae=qae,Xae=m5;function Kae(e){var t=Zae(e);return t.length==1&&t[0][2]?Xae(t[0][0],t[0][1]):function(n){return n===e||Gae(n,e,t)}}var Jae=Kae,Qae=Pv,eoe=b6,toe=DS,noe=ev,roe=p5,ioe=m5,aoe=ks,ooe=1,soe=2;function loe(e,t){return noe(e)&&roe(t)?ioe(aoe(e),t):function(n){var r=eoe(n,e);return r===void 0&&r===t?toe(n,e):Qae(t,r,ooe|soe)}}var coe=loe;function uoe(e){return function(t){return t==null?void 0:t[e]}}var doe=uoe,foe=Oc;function hoe(e){return function(t){return foe(t,e)}}var poe=hoe,moe=doe,goe=poe,voe=ev,boe=ks;function yoe(e){return voe(e)?moe(boe(e)):goe(e)}var xoe=yoe,woe=Jae,_oe=coe,Coe=Af,Soe=Kn,Toe=xoe;function $oe(e){return typeof e=="function"?e:e==null?Coe:typeof e=="object"?Soe(e)?_oe(e[0],e[1]):woe(e):Toe(e)}var Yv=$oe,koe=Yv,Moe=h5;function Eoe(e,t){return e&&e.length?Moe(e,koe(t)):[]}var Ooe=Eoe;const ig=nn(Ooe);var Aoe=JC,Roe=Rc;function Doe(e,t){return e&&Aoe(e,t,Roe)}var joe=Doe,Ioe=Cs;function Noe(e,t){return function(n,r){if(n==null)return n;if(!Ioe(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}var Poe=Noe,Loe=joe,Foe=Poe,Boe=Foe(Loe),g5=Boe,zoe=g5,Woe=Cs;function Uoe(e,t){var n=-1,r=Woe(e)?Array(e.length):[];return zoe(e,function(i,a,o){r[++n]=t(i,a,o)}),r}var Hoe=Uoe;function Voe(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var qoe=Voe,bx=Rf;function Yoe(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,a=bx(e),o=t!==void 0,s=t===null,l=t===t,c=bx(t);if(!s&&!c&&!a&&e>t||a&&o&&l&&!s&&!c||r&&o&&l||!n&&l||!i)return 1;if(!r&&!a&&!c&&e<t||c&&n&&i&&!r&&!a||s&&n&&i||!o&&i||!l)return-1}return 0}var Goe=Yoe,Zoe=Goe;function Xoe(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var l=Zoe(i[r],a[r]);if(l){if(r>=s)return l;var c=n[r];return l*(c=="desc"?-1:1)}}return e.index-t.index}var Koe=Xoe,jp=Df,Joe=Oc,Qoe=Yv,ese=Hoe,tse=qoe,nse=Ss,rse=Koe,ise=Af,ase=Kn;function ose(e,t,n){t.length?t=jp(t,function(a){return ase(a)?function(o){return Joe(o,a.length===1?a[0]:a)}:a}):t=[ise];var r=-1;t=jp(t,nse(Qoe));var i=ese(e,function(a,o,s){var l=jp(t,function(c){return c(a)});return{criteria:l,index:++r,value:a}});return tse(i,function(a,o){return rse(a,o,n)})}var sse=ose,lse=IS,cse=sse,use=Q0,yx=h6,dse=use(function(e,t){if(e==null)return[];var n=t.length;return n>1&&yx(e,t[0],t[1])?t=[]:n>2&&yx(t[0],t[1],t[2])&&(t=[t[0]]),cse(e,lse(t,1),[])}),fse=dse;const hse=nn(fse);var pse=Si,mse=gr,gse="[object Date]";function vse(e){return mse(e)&&pse(e)==gse}var bse=vse,yse=bse,xse=Ss,xx=Ef,wx=xx&&xx.isDate,wse=wx?xse(wx):yse,_se=wse;const Cse=nn(_se);function wa(){return wa=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},wa.apply(null,arguments)}var xo=[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)}],Sse={millisecond:[],second:xo.slice(0,1),minute:xo.slice(0,2),hour:xo.slice(0,3),day:xo.slice(0,4),month:xo.slice(0,5),year:xo.slice(0,6)},Tse=function(e){return function(t){return Sse[e].forEach(function(n){n(t)}),t}},v5=function(e){var t=e.format,n=t===void 0?"native":t,r=e.precision,i=r===void 0?"millisecond":r,a=e.useUTC,o=a===void 0||a,s=Tse(i);return function(l){if(l===void 0)return l;if(n==="native"||l instanceof Date)return s(l);var c=o?OS(n):MS(n);return s(c(l))}},ma={min:0,max:"auto",stacked:!1,reverse:!1,clamp:!1,nice:!0,round:!1},$se=function(e,t,n,r){var i,a,o,s,l=e.min,c=l===void 0?ma.min:l,u=e.max,d=u===void 0?ma.max:u,f=e.stacked,h=f===void 0?ma.stacked:f,p=e.reverse,m=p===void 0?ma.reverse:p,g=e.clamp,x=g===void 0?ma.clamp:g,_=e.nice,w=_===void 0?ma.nice:_,C=e.round,b=C===void 0?ma.round:C;c==="auto"?i=h===!0?(a=t.minStacked)!=null?a:0:t.min:i=c,d==="auto"?o=h===!0?(s=t.maxStacked)!=null?s:0:t.max:o=d;var S=gd().range(r==="x"?[0,n]:[n,0]).interpolate(b?R6:Jl).domain(m?[o,i]:[i,o]).clamp(x);return w===!0?S.nice():typeof w=="number"&&S.nice(w),kse(S,h)},kse=function(e,t){t===void 0&&(t=!1);var n=e;return n.type="linear",n.stacked=t,n},Mse=function(e,t,n){var r=mJ().range([0,n]).domain(t.all);return r.type="point",r},Ese={round:!1},Ose=function(e,t,n,r){var i=e.round,a=i===void 0?Ese.round:i,o=bv().range(r==="x"?[0,n]:[n,0]).domain(t.all).round(a);return Ase(o)},Ase=function(e){var t=e;return t.type="band",t},wo={format:"native",precision:"millisecond",min:"auto",max:"auto",useUTC:!0,nice:!1},Rse=function(e,t,n){var r,i,a=e.format,o=a===void 0?wo.format:a,s=e.precision,l=s===void 0?wo.precision:s,c=e.min,u=c===void 0?wo.min:c,d=e.max,f=d===void 0?wo.max:d,h=e.useUTC,p=h===void 0?wo.useUTC:h,m=e.nice,g=m===void 0?wo.nice:m,x=v5({format:o,precision:l,useUTC:p});r=u==="auto"?x(t.min):o!=="native"?x(u):u,i=f==="auto"?x(t.max):o!=="native"?x(f):f;var _=p?oee():aee();_.range([0,n]),r&&i&&_.domain([r,i]),g===!0?_.nice():typeof g!="object"&&typeof g!="number"||_.nice(g);var w=_;return w.type="time",w.useUTC=p,w},_o={base:10,min:"auto",max:"auto",round:!1,reverse:!1,nice:!0},Dse=function(e,t,n,r){var i,a=e.base,o=a===void 0?_o.base:a,s=e.min,l=s===void 0?_o.min:s,c=e.max,u=c===void 0?_o.max:c,d=e.round,f=d===void 0?_o.round:d,h=e.reverse,p=h===void 0?_o.reverse:h,m=e.nice,g=m===void 0?_o.nice:m;if(t.all.some(function(M){return M===0}))throw new Error("a log scale domain must not include or cross zero");var x,_,w=!1;if(t.all.filter(function(M){return M!=null}).forEach(function(M){w||(i===void 0?i=Math.sign(M):Math.sign(M)!==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 C=rS().base(o),b=r==="x"?[0,n]:[n,0];f===!0?C.rangeRound(b):C.range(b),p===!0?C.domain([_,x]):C.domain([x,_]),g===!0?C.nice():typeof g=="number"&&C.nice(g);var S=C;return S.type="log",S},Co={constant:1,min:"auto",max:"auto",round:!1,reverse:!1,nice:!0},jse=function(e,t,n,r){var i,a,o=e.constant,s=o===void 0?Co.constant:o,l=e.min,c=l===void 0?Co.min:l,u=e.max,d=u===void 0?Co.max:u,f=e.round,h=f===void 0?Co.round:f,p=e.reverse,m=p===void 0?Co.reverse:p,g=e.nice,x=g===void 0?Co.nice:g;i=c==="auto"?t.min:c,a=d==="auto"?t.max:d;var _=iS().constant(s),w=r==="x"?[0,n]:[n,0];h===!0?_.rangeRound(w):_.range(w),m===!0?_.domain([a,i]):_.domain([i,a]),x===!0?_.nice():typeof x=="number"&&_.nice(x);var C=_;return C.type="symlog",C},Ise=function(e){return e==="x"?"y":"x"},Nse=function(e,t){return e===t},Pse=function(e,t){return e.getTime()===t.getTime()};function ic(e,t,n,r){switch(e.type){case"linear":return $se(e,t,n,r);case"point":return Mse(0,t,n);case"band":return Ose(e,t,n,r);case"time":return Rse(e,t,n);case"log":return Dse(e,t,n,r);case"symlog":return jse(e,t,n,r);default:throw new Error("invalid scale spec")}}var _x=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},Lse=function(e,t,n,r,i){var a=e.map(function(u){return function(d){return wa({},d,{data:d.data.map(function(f){return{data:wa({},f)}})})}(u)}),o=Fse(a,t,n);"stacked"in t&&t.stacked===!0&&Bse(o,a),"stacked"in n&&n.stacked===!0&&zse(o,a);var s=ic(t,o.x,r,"x"),l=ic(n,o.y,i,"y"),c=a.map(function(u){return wa({},u,{data:u.data.map(function(d){return wa({},d,{position:{x:_x(d,"x",s),y:_x(d,"y",l)}})})})});return wa({},o,{series:c,xScale:s,yScale:l})},Fse=function(e,t,n){return{x:Cx(e,"x",t),y:Cx(e,"y",n)}},Cx=function(e,t,n,r){var i={},a=i.getValue,o=a===void 0?function(p){return p.data[t]}:a,s=i.setValue,l=s===void 0?function(p,m){p.data[t]=m}:s;if(n.type==="linear")e.forEach(function(p){p.data.forEach(function(m){var g=o(m);g&&l(m,parseFloat(String(g)))})});else if(n.type==="time"&&n.format!=="native"){var c=v5(n);e.forEach(function(p){p.data.forEach(function(m){var g=o(m);g&&l(m,c(g))})})}var u=[];switch(e.forEach(function(p){p.data.forEach(function(m){u.push(o(m))})}),n.type){case"linear":var d=hse(vx(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=ig(u,function(p){return p.getTime()}).slice(0).sort(function(p,m){return m.getTime()-p.getTime()}).reverse();return{all:f,min:f[0],max:De(f)};default:var h=vx(u);return{all:h,min:h[0],max:De(h)}}},b5=function(e,t,n){var r=Ise(e),i=[];t[r].all.forEach(function(a){var o=Cse(a)?Pse:Nse,s=[];n.forEach(function(l){var c=l.data.find(function(h){return o(h.data[r],a)}),u=null,d=null;if(c!==void 0){if((u=c.data[e])!==null){var f=De(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)},Bse=function(e,t){return b5("x",e,t)},zse=function(e,t){return b5("y",e,t)},y5=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}},x5={millisecond:[tc,tc],second:[Km,Km],minute:[uS,vS],hour:[dS,bS],day:[dn(function(e){return e.setHours(0,0,0,0)},function(e,t){return e.setDate(e.getDate()+t)},function(e,t){return(t.getTime()-e.getTime())/864e5},function(e){return Math.floor(e.getTime()/864e5)}),dn(function(e){return e.setUTCHours(0,0,0,0)},function(e,t){return e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t.getTime()-e.getTime())/864e5},function(e){return Math.floor(e.getTime()/864e5)})],week:[xd,wd],sunday:[xd,wd],monday:[nc,rc],tuesday:[fS,yS],wednesday:[hS,xS],thursday:[Va,qa],friday:[pS,wS],saturday:[mS,_S],month:[gS,CS],year:[Qi,ea]},Wse=Object.keys(x5),Use=new RegExp("^every\\s*(\\d+)?\\s*("+Wse.join("|")+")s?$","i"),w5=function(e,t){if(Array.isArray(t))return t;if(typeof t=="string"&&"useUTC"in e){var n=t.match(Use);if(n){var r=n[1],i=n[2],a=x5[i][e.useUTC?1:0];if(i==="day"){var o,s,l=e.domain(),c=l[0],u=l[1],d=new Date(u);return d.setDate(d.getDate()+1),(o=(s=a.every(Number(r??1)))==null?void 0:s.range(c,d))!=null?o:[]}if(r===void 0)return e.ticks(a);var f=a.every(Number(r));if(f)return e.ticks(f)}throw new Error("Invalid tickValues: "+t)}if("ticks"in e){if(t===void 0)return e.ticks();if(typeof(h=t)=="number"&&isFinite(h)&&Math.floor(h)===h)return e.ticks(t)}var h;return e.domain()};function kr(){return kr=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},kr.apply(null,arguments)}var _5=function(e){var t,n=e.axis,r=e.scale,i=e.ticksPosition,a=e.tickValues,o=e.tickSize,s=e.tickPadding,l=e.tickRotation,c=e.truncateTickAt,u=e.engine,d=u===void 0?"svg":u,f=w5(r,a),h=GS[d],p="bandwidth"in r?y5(r):r,m={lineX:0,lineY:0},g={textX:0,textY:0},x=typeof document=="object"&&document.dir==="rtl",_=h.align.center,w=h.baseline.center;return n==="x"?(t=function(C){var b;return{x:(b=p(C))!=null?b:0,y:0}},m.lineY=o*(i==="after"?1:-1),g.textY=(o+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(C){var b;return{x:0,y:(b=p(C))!=null?b:0}},m.lineX=o*(i==="after"?1:-1),g.textX=(o+s)*(i==="after"?1:-1),_=i==="after"?h.align.left:h.align.right),{ticks:f.map(function(C){var b=typeof C=="string"?function(S){var M=String(S).length;return c&&c>0&&M>c?""+String(S).slice(0,c).concat("..."):""+S}(C):C;return kr({key:C instanceof Date?""+C.valueOf():""+C,value:b},t(C),m,g)}),textAlign:_,textBaseline:w}},C5=function(e,t){if(e===void 0||typeof e=="function")return e;if(t.type==="time"){var n=Uf(e);return function(r){return n(r instanceof Date?r:new Date(r))}}return Ac(e)},ag=function(e){var t,n=e.width,r=e.height,i=e.scale,a=e.axis,o=e.values,s=(t=o,(Array.isArray(t)?o:void 0)||w5(i,o)),l="bandwidth"in i?y5(i):i,c=a==="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},Hse=v.memo(function(e){var t,n=e.value,r=e.format,i=e.lineX,a=e.lineY,o=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=v.useMemo(function(){var h={opacity:u.opacity};return o?{style:kr({},h,{cursor:"pointer"}),onClick:function(p){return o(p,d)}}:{style:h}},[u.opacity,o,d]);return y.jsxs(Ht.g,kr({transform:u.transform},f,{children:[y.jsx("line",{x1:0,x2:i,y1:0,y2:a,style:c.line}),y.jsx(Os,{dominantBaseline:s,textAnchor:l,transform:u.textTransform,style:c.text,children:""+d})]}))}),Wn={tickSize:5,tickPadding:5,tickRotation:0,legendPosition:"middle",legendOffset:0},Vse=function(e){var t=e.axis,n=e.scale,r=e.x,i=r===void 0?0:r,a=e.y,o=a===void 0?0:a,s=e.length,l=e.ticksPosition,c=e.tickValues,u=e.tickSize,d=u===void 0?Wn.tickSize:u,f=e.tickPadding,h=f===void 0?Wn.tickPadding:f,p=e.tickRotation,m=p===void 0?Wn.tickRotation:p,g=e.format,x=e.renderTick,_=x===void 0?Hse:x,w=e.truncateTickAt,C=e.legend,b=e.legendPosition,S=b===void 0?Wn.legendPosition:b,M=e.legendOffset,$=M===void 0?Wn.legendOffset:M,k=e.style,D=e.onClick,T=e.ariaHidden,E=Lt(),R=UZ(E.axis,k),j=v.useMemo(function(){return C5(g,n)},[g,n]),O=_5({axis:t,scale:n,ticksPosition:l,tickValues:c,tickSize:d,tickPadding:h,tickRotation:m,truncateTickAt:w}),A=O.ticks,I=O.textAlign,F=O.textBaseline,z=null;if(C!==void 0){var L,H=0,Y=0,q=0;t==="y"?(q=-90,H=$,S==="start"?(L="start",Y=s):S==="middle"?(L="middle",Y=s/2):S==="end"&&(L="end")):(Y=$,S==="start"?L="start":S==="middle"?(L="middle",H=s/2):S==="end"&&(L="end",H=s)),z=y.jsx(y.Fragment,{children:y.jsx(Os,{transform:"translate("+H+", "+Y+") rotate("+q+")",textAnchor:L,style:kr({},R.legend.text,{dominantBaseline:"central"}),children:C})})}var Z=Fn(),X=Z.animate,J=Z.config,ee=Zr({transform:"translate("+i+","+o+")",lineX2:t==="x"?s:0,lineY2:t==="x"?0:s,config:J,immediate:!X}),W=v.useCallback(function(V){return{opacity:1,transform:"translate("+V.x+","+V.y+")",textTransform:"translate("+V.textX+","+V.textY+") rotate("+m+")"}},[m]),P=v.useCallback(function(V){return{opacity:0,transform:"translate("+V.x+","+V.y+")",textTransform:"translate("+V.textX+","+V.textY+") rotate("+m+")"}},[m]),B=Ka(A,{keys:function(V){return V.key},initial:W,from:P,enter:W,update:W,leave:{opacity:0},config:J,immediate:!X});return y.jsxs(Ht.g,{transform:ee.transform,"aria-hidden":T,children:[B(function(V,N,te,K){return fe.createElement(_,kr({tickIndex:K,format:j,rotate:m,textBaseline:F,textAnchor:I,truncateTickAt:w,animatedProps:V,theme:R.ticks},N,D?{onClick:D}:{}))}),y.jsx(Ht.line,{style:R.domain.line,x1:0,x2:ee.lineX2,y1:0,y2:ee.lineY2}),z]})},qse=v.memo(Vse),S5=["top","right","bottom","left"],T5=v.memo(function(e){var t=e.xScale,n=e.yScale,r=e.width,i=e.height,a={top:e.top,right:e.right,bottom:e.bottom,left:e.left};return y.jsx(y.Fragment,{children:S5.map(function(o){var s=a[o];if(!s)return null;var l=o==="top"||o==="bottom";return y.jsx(qse,kr({},s,{axis:l?"x":"y",x:o==="right"?r:0,y:o==="bottom"?i:0,scale:l?t:n,length:l?r:i,ticksPosition:o==="top"||o==="left"?"before":"after",truncateTickAt:s.truncateTickAt}),o)})})}),Yse=v.memo(function(e){var t=e.animatedProps,n=Lt();return y.jsx(Ht.line,kr({},t,n.grid.line))}),Sx=v.memo(function(e){var t=e.lines,n=Fn(),r=n.animate,i=n.config,a=Ka(t,{keys:function(o){return o.key},initial:function(o){return{opacity:1,x1:o.x1,x2:o.x2,y1:o.y1,y2:o.y2}},from:function(o){return{opacity:0,x1:o.x1,x2:o.x2,y1:o.y1,y2:o.y2}},enter:function(o){return{opacity:1,x1:o.x1,x2:o.x2,y1:o.y1,y2:o.y2}},update:function(o){return{opacity:1,x1:o.x1,x2:o.x2,y1:o.y1,y2:o.y2}},leave:{opacity:0},config:i,immediate:!r});return y.jsx("g",{children:a(function(o,s){return v.createElement(Yse,kr({},s,{key:s.key,animatedProps:o}))})})}),$5=v.memo(function(e){var t=e.width,n=e.height,r=e.xScale,i=e.yScale,a=e.xValues,o=e.yValues,s=v.useMemo(function(){return!!r&&ag({width:t,height:n,scale:r,axis:"x",values:a})},[r,a,t,n]),l=v.useMemo(function(){return!!i&&ag({width:t,height:n,scale:i,axis:"y",values:o})},[n,t,i,o]);return y.jsxs(y.Fragment,{children:[s&&y.jsx(Sx,{lines:s}),l&&y.jsx(Sx,{lines:l})]})}),Gse=function(e,t){var n,r,i=t.axis,a=t.scale,o=t.x,s=o===void 0?0:o,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?Wn.tickSize:h,m=t.tickPadding,g=m===void 0?Wn.tickPadding:m,x=t.tickRotation,_=x===void 0?Wn.tickRotation:x,w=t.format,C=t.legend,b=t.legendPosition,S=b===void 0?Wn.legendPosition:b,M=t.legendOffset,$=M===void 0?Wn.legendOffset:M,k=t.theme,D=t.style,T=_5({axis:i,scale:a,ticksPosition:d,tickValues:f,tickSize:p,tickPadding:g,tickRotation:_,engine:"canvas"}),E=T.ticks,R=T.textAlign,j=T.textBaseline;e.save(),e.translate(s,c);var O=x6(k.axis,D);e.textAlign=R,e.textBaseline=j,Ya(e,O.ticks.text);var A=(n=O.domain.line.strokeWidth)!=null?n:0;typeof A!="string"&&A>0&&(e.lineWidth=A,e.lineCap="square",O.domain.line.stroke&&(e.strokeStyle=O.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(Z){return""+Z},F=(r=O.ticks.line.strokeWidth)!=null?r:0,z=typeof F!="string"&&F>0;if(E.forEach(function(Z){z&&(e.lineWidth=F,e.lineCap="square",O.ticks.line.stroke&&(e.strokeStyle=O.ticks.line.stroke),e.beginPath(),e.moveTo(Z.x,Z.y),e.lineTo(Z.x+Z.lineX,Z.y+Z.lineY),e.stroke());var X=I(Z.value);e.save(),e.translate(Z.x+Z.textX,Z.y+Z.textY),e.rotate(dr(_)),Ga(e,O.ticks.text,""+X),e.fillText(""+X,0,0),e.restore()}),C!==void 0){var L=0,H=0,Y=0,q="center";i==="y"?(Y=-90,L=$,S==="start"?(q="start",H=u):S==="middle"?(q="center",H=u/2):S==="end"&&(q="end")):(H=$,S==="start"?q="start":S==="middle"?(q="center",L=u/2):S==="end"&&(q="end",L=u)),e.translate(L,H),e.rotate(dr(Y)),Ya(e,O.legend.text),O.legend.text.fill&&(e.fillStyle=O.legend.text.fill),e.textAlign=q,e.textBaseline="middle",Ga(e,O.legend.text,C)}e.restore()},k5=function(e,t){var n=t.xScale,r=t.yScale,i=t.width,a=t.height,o=t.top,s=t.right,l=t.bottom,c=t.left,u=t.theme,d={top:o,right:s,bottom:l,left:c};S5.forEach(function(f){var h=d[f];if(!h)return null;var p=f==="top"||f==="bottom",m=f==="top"||f==="left"?"before":"after",g=p?n:r,x=C5(h.format,g);Gse(e,kr({},h,{axis:p?"x":"y",x:f==="right"?i:0,y:f==="bottom"?a:0,scale:g,format:x,length:p?i:a,ticksPosition:m,theme:u}))})},Cd=function(e,t){var n=t.width,r=t.height,i=t.scale,a=t.axis,o=t.values;ag({width:n,height:r,scale:i,axis:a,values:o}).forEach(function(s){e.beginPath(),e.moveTo(s.x1,s.y1),e.lineTo(s.x2,s.y2),e.stroke()})},Zse=v6,Xse=0;function Kse(e){var t=++Xse;return Zse(e)+t}var Jse=Kse;const Qse=nn(Jse),mi=11102230246251565e-32,Tn=134217729,ele=(3+8*mi)*mi;function Ip(e,t,n,r,i){let a,o,s,l,c=t[0],u=r[0],d=0,f=0;u>c==u>-c?(a=c,c=t[++d]):(a=u,u=r[++f]);let h=0;if(d<e&&f<n)for(u>c==u>-c?(o=c+a,s=a-(o-c),c=t[++d]):(o=u+a,s=a-(o-u),u=r[++f]),a=o,s!==0&&(i[h++]=s);d<e&&f<n;)u>c==u>-c?(o=a+c,l=o-a,s=a-(o-l)+(c-l),c=t[++d]):(o=a+u,l=o-a,s=a-(o-l)+(u-l),u=r[++f]),a=o,s!==0&&(i[h++]=s);for(;d<e;)o=a+c,l=o-a,s=a-(o-l)+(c-l),c=t[++d],a=o,s!==0&&(i[h++]=s);for(;f<n;)o=a+u,l=o-a,s=a-(o-l)+(u-l),u=r[++f],a=o,s!==0&&(i[h++]=s);return(a!==0||h===0)&&(i[h++]=a),h}function tle(e,t){let n=t[0];for(let r=1;r<e;r++)n+=t[r];return n}function Ic(e){return new Float64Array(e)}const nle=(3+16*mi)*mi,rle=(2+12*mi)*mi,ile=(9+64*mi)*mi*mi,So=Ic(4),Tx=Ic(8),$x=Ic(12),kx=Ic(16),Dn=Ic(4);function ale(e,t,n,r,i,a,o){let s,l,c,u,d,f,h,p,m,g,x,_,w,C,b,S,M,$;const k=e-i,D=n-i,T=t-a,E=r-a;C=k*E,f=Tn*k,h=f-(f-k),p=k-h,f=Tn*E,m=f-(f-E),g=E-m,b=p*g-(C-h*m-p*m-h*g),S=T*D,f=Tn*T,h=f-(f-T),p=T-h,f=Tn*D,m=f-(f-D),g=D-m,M=p*g-(S-h*m-p*m-h*g),x=b-M,d=b-x,So[0]=b-(x+d)+(d-M),_=C+x,d=_-C,w=C-(_-d)+(x-d),x=w-S,d=w-x,So[1]=w-(x+d)+(d-S),$=_+x,d=$-_,So[2]=_-($-d)+(x-d),So[3]=$;let R=tle(4,So),j=rle*o;if(R>=j||-R>=j||(d=e-k,s=e-(k+d)+(d-i),d=n-D,c=n-(D+d)+(d-i),d=t-T,l=t-(T+d)+(d-a),d=r-E,u=r-(E+d)+(d-a),s===0&&l===0&&c===0&&u===0)||(j=ile*o+ele*Math.abs(R),R+=k*u+E*s-(T*c+D*l),R>=j||-R>=j))return R;C=s*E,f=Tn*s,h=f-(f-s),p=s-h,f=Tn*E,m=f-(f-E),g=E-m,b=p*g-(C-h*m-p*m-h*g),S=l*D,f=Tn*l,h=f-(f-l),p=l-h,f=Tn*D,m=f-(f-D),g=D-m,M=p*g-(S-h*m-p*m-h*g),x=b-M,d=b-x,Dn[0]=b-(x+d)+(d-M),_=C+x,d=_-C,w=C-(_-d)+(x-d),x=w-S,d=w-x,Dn[1]=w-(x+d)+(d-S),$=_+x,d=$-_,Dn[2]=_-($-d)+(x-d),Dn[3]=$;const O=Ip(4,So,4,Dn,Tx);C=k*u,f=Tn*k,h=f-(f-k),p=k-h,f=Tn*u,m=f-(f-u),g=u-m,b=p*g-(C-h*m-p*m-h*g),S=T*c,f=Tn*T,h=f-(f-T),p=T-h,f=Tn*c,m=f-(f-c),g=c-m,M=p*g-(S-h*m-p*m-h*g),x=b-M,d=b-x,Dn[0]=b-(x+d)+(d-M),_=C+x,d=_-C,w=C-(_-d)+(x-d),x=w-S,d=w-x,Dn[1]=w-(x+d)+(d-S),$=_+x,d=$-_,Dn[2]=_-($-d)+(x-d),Dn[3]=$;const A=Ip(O,Tx,4,Dn,$x);C=s*u,f=Tn*s,h=f-(f-s),p=s-h,f=Tn*u,m=f-(f-u),g=u-m,b=p*g-(C-h*m-p*m-h*g),S=l*c,f=Tn*l,h=f-(f-l),p=l-h,f=Tn*c,m=f-(f-c),g=c-m,M=p*g-(S-h*m-p*m-h*g),x=b-M,d=b-x,Dn[0]=b-(x+d)+(d-M),_=C+x,d=_-C,w=C-(_-d)+(x-d),x=w-S,d=w-x,Dn[1]=w-(x+d)+(d-S),$=_+x,d=$-_,Dn[2]=_-($-d)+(x-d),Dn[3]=$;const I=Ip(A,$x,4,Dn,kx);return kx[I-1]}function hu(e,t,n,r,i,a){const o=(t-a)*(n-i),s=(e-i)*(r-a),l=o-s,c=Math.abs(o+s);return Math.abs(l)>=nle*c?l:-ale(e,t,n,r,i,a,c)}const Mx=Math.pow(2,-52),pu=new Uint32Array(512);class Sd{static from(t,n=ule,r=dle){const i=t.length,a=new Float64Array(i*2);for(let o=0;o<i;o++){const s=t[o];a[2*o]=n(s),a[2*o+1]=r(s)}return new Sd(a)}constructor(t){const n=t.length>>1;if(n>0&&typeof t[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=t;const r=Math.max(2*n-5,0);this._triangles=new Uint32Array(r*3),this._halfedges=new Int32Array(r*3),this._hashSize=Math.ceil(Math.sqrt(n)),this._hullPrev=new Uint32Array(n),this._hullNext=new Uint32Array(n),this._hullTri=new Uint32Array(n),this._hullHash=new Int32Array(this._hashSize),this._ids=new Uint32Array(n),this._dists=new Float64Array(n),this.update()}update(){const{coords:t,_hullPrev:n,_hullNext:r,_hullTri:i,_hullHash:a}=this,o=t.length>>1;let s=1/0,l=1/0,c=-1/0,u=-1/0;for(let k=0;k<o;k++){const D=t[2*k],T=t[2*k+1];D<s&&(s=D),T<l&&(l=T),D>c&&(c=D),T>u&&(u=T),this._ids[k]=k}const d=(s+c)/2,f=(l+u)/2;let h,p,m;for(let k=0,D=1/0;k<o;k++){const T=Np(d,f,t[2*k],t[2*k+1]);T<D&&(h=k,D=T)}const g=t[2*h],x=t[2*h+1];for(let k=0,D=1/0;k<o;k++){if(k===h)continue;const T=Np(g,x,t[2*k],t[2*k+1]);T<D&&T>0&&(p=k,D=T)}let _=t[2*p],w=t[2*p+1],C=1/0;for(let k=0;k<o;k++){if(k===h||k===p)continue;const D=lle(g,x,_,w,t[2*k],t[2*k+1]);D<C&&(m=k,C=D)}let b=t[2*m],S=t[2*m+1];if(C===1/0){for(let T=0;T<o;T++)this._dists[T]=t[2*T]-t[0]||t[2*T+1]-t[1];Ro(this._ids,this._dists,0,o-1);const k=new Uint32Array(o);let D=0;for(let T=0,E=-1/0;T<o;T++){const R=this._ids[T],j=this._dists[R];j>E&&(k[D++]=R,E=j)}this.hull=k.subarray(0,D),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(hu(g,x,_,w,b,S)<0){const k=p,D=_,T=w;p=m,_=b,w=S,m=k,b=D,S=T}const M=cle(g,x,_,w,b,S);this._cx=M.x,this._cy=M.y;for(let k=0;k<o;k++)this._dists[k]=Np(t[2*k],t[2*k+1],M.x,M.y);Ro(this._ids,this._dists,0,o-1),this._hullStart=h;let $=3;r[h]=n[m]=p,r[p]=n[h]=m,r[m]=n[p]=h,i[h]=0,i[p]=1,i[m]=2,a.fill(-1),a[this._hashKey(g,x)]=h,a[this._hashKey(_,w)]=p,a[this._hashKey(b,S)]=m,this.trianglesLen=0,this._addTriangle(h,p,m,-1,-1,-1);for(let k=0,D,T;k<this._ids.length;k++){const E=this._ids[k],R=t[2*E],j=t[2*E+1];if(k>0&&Math.abs(R-D)<=Mx&&Math.abs(j-T)<=Mx||(D=R,T=j,E===h||E===p||E===m))continue;let O=0;for(let L=0,H=this._hashKey(R,j);L<this._hashSize&&(O=a[(H+L)%this._hashSize],!(O!==-1&&O!==r[O]));L++);O=n[O];let A=O,I;for(;I=r[A],hu(R,j,t[2*A],t[2*A+1],t[2*I],t[2*I+1])>=0;)if(A=I,A===O){A=-1;break}if(A===-1)continue;let F=this._addTriangle(A,E,r[A],-1,-1,i[A]);i[E]=this._legalize(F+2),i[A]=F,$++;let z=r[A];for(;I=r[z],hu(R,j,t[2*z],t[2*z+1],t[2*I],t[2*I+1])<0;)F=this._addTriangle(z,E,I,i[E],-1,i[z]),i[E]=this._legalize(F+2),r[z]=z,$--,z=I;if(A===O)for(;I=n[A],hu(R,j,t[2*I],t[2*I+1],t[2*A],t[2*A+1])<0;)F=this._addTriangle(I,E,A,-1,i[A],i[I]),this._legalize(F+2),i[I]=F,r[A]=A,$--,A=I;this._hullStart=n[E]=A,r[A]=n[z]=E,r[E]=z,a[this._hashKey(R,j)]=E,a[this._hashKey(t[2*A],t[2*A+1])]=A}this.hull=new Uint32Array($);for(let k=0,D=this._hullStart;k<$;k++)this.hull[k]=D,D=r[D];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(t,n){return Math.floor(ole(t-this._cx,n-this._cy)*this._hashSize)%this._hashSize}_legalize(t){const{_triangles:n,_halfedges:r,coords:i}=this;let a=0,o=0;for(;;){const s=r[t],l=t-t%3;if(o=l+(t+2)%3,s===-1){if(a===0)break;t=pu[--a];continue}const c=s-s%3,u=l+(t+1)%3,d=c+(s+2)%3,f=n[o],h=n[t],p=n[u],m=n[d];if(sle(i[2*f],i[2*f+1],i[2*h],i[2*h+1],i[2*p],i[2*p+1],i[2*m],i[2*m+1])){n[t]=m,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[o]),this._link(o,d);const _=c+(s+1)%3;a<pu.length&&(pu[a++]=_)}else{if(a===0)break;t=pu[--a]}}return o}_link(t,n){this._halfedges[t]=n,n!==-1&&(this._halfedges[n]=t)}_addTriangle(t,n,r,i,a,o){const s=this.trianglesLen;return this._triangles[s]=t,this._triangles[s+1]=n,this._triangles[s+2]=r,this._link(s,i),this._link(s+1,a),this._link(s+2,o),this.trianglesLen+=3,s}}function ole(e,t){const n=e/(Math.abs(e)+Math.abs(t));return(t>0?3-n:1+n)/4}function Np(e,t,n,r){const i=e-n,a=t-r;return i*i+a*a}function sle(e,t,n,r,i,a,o,s){const l=e-o,c=t-s,u=n-o,d=r-s,f=i-o,h=a-s,p=l*l+c*c,m=u*u+d*d,g=f*f+h*h;return l*(d*g-m*h)-c*(u*g-m*f)+p*(u*h-d*f)<0}function lle(e,t,n,r,i,a){const o=n-e,s=r-t,l=i-e,c=a-t,u=o*o+s*s,d=l*l+c*c,f=.5/(o*c-s*l),h=(c*u-s*d)*f,p=(o*d-l*u)*f;return h*h+p*p}function cle(e,t,n,r,i,a){const o=n-e,s=r-t,l=i-e,c=a-t,u=o*o+s*s,d=l*l+c*c,f=.5/(o*c-s*l),h=e+(c*u-s*d)*f,p=t+(o*d-l*u)*f;return{x:h,y:p}}function Ro(e,t,n,r){if(r-n<=20)for(let i=n+1;i<=r;i++){const a=e[i],o=t[a];let s=i-1;for(;s>=n&&t[e[s]]>o;)e[s+1]=e[s--];e[s+1]=a}else{const i=n+r>>1;let a=n+1,o=r;el(e,i,a),t[e[n]]>t[e[r]]&&el(e,n,r),t[e[a]]>t[e[r]]&&el(e,a,r),t[e[n]]>t[e[a]]&&el(e,n,a);const s=e[a],l=t[s];for(;;){do a++;while(t[e[a]]<l);do o--;while(t[e[o]]>l);if(o<a)break;el(e,a,o)}e[n+1]=e[o],e[o]=s,r-a+1>=o-n?(Ro(e,t,a,r),Ro(e,t,n,o-1)):(Ro(e,t,n,o-1),Ro(e,t,a,r))}}function el(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function ule(e){return e[0]}function dle(e){return e[1]}const Ex=1e-6;class Ma{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,n){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,n){this._+=`L${this._x1=+t},${this._y1=+n}`}arc(t,n,r){t=+t,n=+n,r=+r;const i=t+r,a=n;if(r<0)throw new Error("negative radius");this._x1===null?this._+=`M${i},${a}`:(Math.abs(this._x1-i)>Ex||Math.abs(this._y1-a)>Ex)&&(this._+="L"+i+","+a),r&&(this._+=`A${r},${r},0,1,1,${t-r},${n}A${r},${r},0,1,1,${this._x1=i},${this._y1=a}`)}rect(t,n,r,i){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${+r}v${+i}h${-r}Z`}value(){return this._||null}}class og{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 fle{constructor(t,[n,r,i,a]=[0,0,960,500]){if(!((i=+i)>=(n=+n))||!((a=+a)>=(r=+r)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(t.points.length*2),this.vectors=new Float64Array(t.points.length*2),this.xmax=i,this.xmin=n,this.ymax=a,this.ymin=r,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:n,triangles:r},vectors:i}=this;let a,o;const s=this.circumcenters=this._circumcenters.subarray(0,r.length/3*2);for(let m=0,g=0,x=r.length,_,w;m<x;m+=3,g+=2){const C=r[m]*2,b=r[m+1]*2,S=r[m+2]*2,M=t[C],$=t[C+1],k=t[b],D=t[b+1],T=t[S],E=t[S+1],R=k-M,j=D-$,O=T-M,A=E-$,I=(R*A-j*O)*2;if(Math.abs(I)<1e-9){if(a===void 0){a=o=0;for(const z of n)a+=t[z*2],o+=t[z*2+1];a/=n.length,o/=n.length}const F=1e9*Math.sign((a-M)*A-(o-$)*O);_=(M+T)/2-F*A,w=($+E)/2+F*O}else{const F=1/I,z=R*R+j*j,L=O*O+A*A;_=M+(A*z-j*L)*F,w=$+(R*L-O*z)*F}s[g]=_,s[g+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 m=0;m<n.length;++m)l=n[m],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 Ma:void 0,{delaunay:{halfedges:r,inedges:i,hull:a},circumcenters:o,vectors:s}=this;if(a.length<=1)return null;for(let u=0,d=r.length;u<d;++u){const f=r[u];if(f<u)continue;const h=Math.floor(u/3)*2,p=Math.floor(f/3)*2,m=o[h],g=o[h+1],x=o[p],_=o[p+1];this._renderSegment(m,g,x,_,t)}let l,c=a[a.length-1];for(let u=0;u<a.length;++u){l=c,c=a[u];const d=Math.floor(i[c]/3)*2,f=o[d],h=o[d+1],p=l*4,m=this._project(f,h,s[p+2],s[p+3]);m&&this._renderSegment(f,h,m[0],m[1],t)}return n&&n.value()}renderBounds(t){const n=t==null?t=new Ma: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 Ma:void 0,i=this._clip(t);if(i===null||!i.length)return;n.moveTo(i[0],i[1]);let a=i.length;for(;i[0]===i[a-2]&&i[1]===i[a-1]&&a>1;)a-=2;for(let o=2;o<a;o+=2)(i[o]!==i[o-2]||i[o+1]!==i[o-1])&&n.lineTo(i[o],i[o+1]);return n.closePath(),r&&r.value()}*cellPolygons(){const{delaunay:{points:t}}=this;for(let n=0,r=t.length/2;n<r;++n){const i=this.cellPolygon(n);i&&(i.index=n,yield i)}}cellPolygon(t){const n=new og;return this.renderCell(t,n),n.value()}_renderSegment(t,n,r,i,a){let o;const s=this._regioncode(t,n),l=this._regioncode(r,i);s===0&&l===0?(a.moveTo(t,n),a.lineTo(r,i)):(o=this._clipSegment(t,n,r,i,s,l))&&(a.moveTo(o[0],o[1]),a.lineTo(o[2],o[3]))}contains(t,n,r){return n=+n,n!==n||(r=+r,r!==r)?!1:this.delaunay._step(t,n,r)===t}*neighbors(t){const n=this._clip(t);if(n)for(const r of this.delaunay.neighbors(t)){const i=this._clip(r);if(i){e:for(let a=0,o=n.length;a<o;a+=2)for(let s=0,l=i.length;s<l;s+=2)if(n[a]===i[s]&&n[a+1]===i[s+1]&&n[(a+2)%o]===i[(s+l-2)%l]&&n[(a+3)%o]===i[(s+l-1)%l]){yield r;break e}}}}_cell(t){const{circumcenters:n,delaunay:{inedges:r,halfedges:i,triangles:a}}=this,o=r[t];if(o===-1)return null;const s=[];let l=o;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,a[l]!==t)break;l=i[l]}while(l!==o&&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,a,o,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(a=s,o=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,m,g,x,_;if(c===0){if((p=this._clipSegment(a,o,s,l,c,u))===null)continue;[m,g,x,_]=p}else{if((p=this._clipSegment(s,l,a,o,u,c))===null)continue;[x,_,m,g]=p,d=f,f=this._edgecode(m,g),d&&f&&this._edge(t,d,f,i,i.length),i?i.push(m,g):i=[m,g]}d=f,f=this._edgecode(x,_),d&&f&&this._edge(t,d,f,i,i.length),i?i.push(x,_):i=[x,_]}if(i)d=f,f=this._edgecode(i[0],i[1]),d&&f&&this._edge(t,d,f,i,i.length);else if(this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return i}_clipSegment(t,n,r,i,a,o){const s=a<o;for(s&&([t,n,r,i,a,o]=[r,i,t,n,o,a]);;){if(a===0&&o===0)return s?[r,i,t,n]:[t,n,r,i];if(a&o)return null;let l,c,u=a||o;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),a?(t=l,n=c,a=this._regioncode(t,n)):(r=l,i=c,o=this._regioncode(r,i))}}_clipInfinite(t,n,r,i,a,o){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],a,o))&&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,a){for(;n!==r;){let o,s;switch(n){case 5:n=4;continue;case 4:n=6,o=this.xmax,s=this.ymin;break;case 6:n=2;continue;case 2:n=10,o=this.xmax,s=this.ymax;break;case 10:n=8;continue;case 8:n=9,o=this.xmin,s=this.ymax;break;case 9:n=1;continue;case 1:n=5,o=this.xmin,s=this.ymin;break}(i[a]!==o||i[a+1]!==s)&&this.contains(t,o,s)&&(i.splice(a,0,o,s),a+=2)}return a}_project(t,n,r,i){let a=1/0,o,s,l;if(i<0){if(n<=this.ymin)return null;(o=(this.ymin-n)/i)<a&&(l=this.ymin,s=t+(a=o)*r)}else if(i>0){if(n>=this.ymax)return null;(o=(this.ymax-n)/i)<a&&(l=this.ymax,s=t+(a=o)*r)}if(r>0){if(t>=this.xmax)return null;(o=(this.xmax-t)/r)<a&&(s=this.xmax,l=n+(a=o)*i)}else if(r<0){if(t<=this.xmin)return null;(o=(this.xmin-t)/r)<a&&(s=this.xmin,l=n+(a=o)*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 hle=2*Math.PI,To=Math.pow;function ple(e){return e[0]}function mle(e){return e[1]}function gle(e){const{triangles:t,coords:n}=e;for(let r=0;r<t.length;r+=3){const i=2*t[r],a=2*t[r+1],o=2*t[r+2];if((n[o]-n[i])*(n[a+1]-n[i+1])-(n[a]-n[i])*(n[o+1]-n[i+1])>1e-10)return!1}return!0}function vle(e,t,n){return[e+Math.sin(e+t)*n,t+Math.cos(e-t)*n]}class xh{static from(t,n=ple,r=mle,i){return new xh("length"in t?ble(t,n,r,i):Float64Array.from(yle(t,n,r,i)))}constructor(t){this._delaunator=new Sd(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&&gle(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=vle(n[2*f],n[2*f+1],d);n[2*f]=p[0],n[2*f+1]=p[1]}this._delaunator=new Sd(n)}else delete this.collinear;const r=this.halfedges=this._delaunator.halfedges,i=this.hull=this._delaunator.hull,a=this.triangles=this._delaunator.triangles,o=this.inedges.fill(-1),s=this._hullIndex.fill(-1);for(let l=0,c=r.length;l<c;++l){const u=a[l%3===2?l-2:l+1];(r[l]===-1||o[u]===-1)&&(o[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],o[i[0]]=1,i.length===2&&(o[i[1]]=0,this.triangles[1]=i[1],this.triangles[2]=i[1]))}voronoi(t){return new fle(this,t)}*neighbors(t){const{inedges:n,hull:r,_hullIndex:i,halfedges:a,triangles:o,collinear:s}=this;if(s){const d=s.indexOf(t);d>0&&(yield s[d-1]),d<s.length-1&&(yield s[d+1]);return}const l=n[t];if(l===-1)return;let c=l,u=-1;do{if(yield u=o[c],c=c%3===2?c-2:c+1,o[c]!==t)return;if(c=a[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 a;for(;(a=this._step(r,t,n))>=0&&a!==r&&a!==i;)r=a;return a}_step(t,n,r){const{inedges:i,hull:a,_hullIndex:o,halfedges:s,triangles:l,points:c}=this;if(i[t]===-1||!c.length)return(t+1)%(c.length>>1);let u=t,d=To(n-c[t*2],2)+To(r-c[t*2+1],2);const f=i[t];let h=f;do{let p=l[h];const m=To(n-c[p*2],2)+To(r-c[p*2+1],2);if(m<d&&(d=m,u=p),h=h%3===2?h-2:h+1,l[h]!==t)break;if(h=s[h],h===-1){if(h=a[(o[t]+1)%a.length],h!==p&&To(n-c[h*2],2)+To(r-c[h*2+1],2)<d)return h;break}}while(h!==f);return u}render(t){const n=t==null?t=new Ma:void 0,{points:r,halfedges:i,triangles:a}=this;for(let o=0,s=i.length;o<s;++o){const l=i[o];if(l<o)continue;const c=a[o]*2,u=a[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 Ma:void 0,{points:i}=this;for(let a=0,o=i.length;a<o;a+=2){const s=i[a],l=i[a+1];t.moveTo(s+n,l),t.arc(s,l,n,0,hle)}return r&&r.value()}renderHull(t){const n=t==null?t=new Ma:void 0,{hull:r,points:i}=this,a=r[0]*2,o=r.length;t.moveTo(i[a],i[a+1]);for(let s=1;s<o;++s){const l=2*r[s];t.lineTo(i[l],i[l+1])}return t.closePath(),n&&n.value()}hullPolygon(){const t=new og;return this.renderHull(t),t.value()}renderTriangle(t,n){const r=n==null?n=new Ma:void 0,{points:i,triangles:a}=this,o=a[t*=3]*2,s=a[t+1]*2,l=a[t+2]*2;return n.moveTo(i[o],i[o+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 og;return this.renderTriangle(t,n),n.value()}}function ble(e,t,n,r){const i=e.length,a=new Float64Array(i*2);for(let o=0;o<i;++o){const s=e[o];a[o*2]=t.call(r,s,o,e),a[o*2+1]=n.call(r,s,o,e)}return a}function*yle(e,t,n,r){let i=0;for(const a of e)yield t.call(r,a,i,e),yield n.call(r,a,i,e),++i}function Td(){return Td=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},Td.apply(null,arguments)}function M5(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 Qn={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"},Gv=function(e){return[e.x,e.y]},Nc=JS,E5="cursor",O5="top",xle=function(e){var t=e.points,n=e.getNodePosition,r=n===void 0?Gv:n,i=e.margin,a=i===void 0?Nc:i;return t.map(function(o){var s=r(o),l=s[0],c=s[1];return[l+a.left,c+a.top]})},wle=function(e){var t=e.points,n=e.width,r=e.height,i=e.margin,a=i===void 0?Nc:i,o=e.debug,s=xh.from(t),l=o?s.voronoi([0,0,a.left+n+a.right,a.top+r+a.bottom]):void 0;return{points:t,delaunay:s,voronoi:l}},A5=function(e){var t=e.points,n=e.getNodePosition,r=n===void 0?Gv:n,i=e.width,a=e.height,o=e.margin,s=o===void 0?Nc:o,l=e.debug;return v.useMemo(function(){return wle({points:xle({points:t,margin:s,getNodePosition:r}),width:i,height:a,margin:s,debug:l})},[r,t,i,a,s,l])},_le=function(e){var t=e.data,n=e.width,r=e.height,i=e.xDomain,a=e.yDomain,o=v.useMemo(function(){return gd().domain(i).range([0,n])},[i,n]),s=v.useMemo(function(){return gd().domain(a).range([0,r])},[a,r]),l=v.useMemo(function(){return t.map(function(c){return{x:o(c.x),y:s(c.y),data:c}})},[t,o,s]);return v.useMemo(function(){var c=xh.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])},Cle=function(e){var t=e.points,n=e.delaunay,r=e.voronoi;return v.useMemo(function(){return{points:t,delaunay:n,voronoi:r}},[t,n,r])},Sle=function(e){var t=e.elementRef,n=e.nodes,r=e.getNodePosition,i=r===void 0?Gv:r,a=e.delaunay,o=e.setCurrent,s=e.margin,l=s===void 0?Nc: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,m=e.onMouseLeave,g=e.onMouseDown,x=e.onMouseUp,_=e.onClick,w=e.onDoubleClick,C=e.onTouchStart,b=e.onTouchMove,S=e.onTouchEnd,M=e.enableTouchCrosshair,$=M!==void 0&&M,k=e.tooltip,D=e.tooltipPosition,T=D===void 0?E5:D,E=e.tooltipAnchor,R=E===void 0?O5:E,j=v.useState(null),O=j[0],A=j[1],I=v.useRef(null);v.useEffect(function(){I.current=O},[I,O]);var F=v.useCallback(function(K){if(!t.current||n.length===0)return null;var G=Bo(t.current,K),oe=G[0],ne=G[1],re=a.find(oe,ne),ae=re!==void 0?n[re]:null;if(ae&&u!==1/0){var le=i(ae),ye=le[0],ge=le[1];e5(oe,ne,ye+l.left,ge+l.top)>u&&(re=null,ae=null)}return re===null||ae===null?null:[re,ae]},[t,a,n,i,l,u]),z=Ti(),L=z.showTooltipAt,H=z.showTooltipFromEvent,Y=z.hideTooltip,q=v.useMemo(function(){if(k)return T==="cursor"?function(K,G){H(k(K),G,R)}:function(K){var G=i(K),oe=G[0],ne=G[1];L(k(K),[oe+l.left,ne+l.top],R)}},[L,H,k,T,R,i,l]),Z=v.useCallback(function(K){var G=F(K);if(A(G),o==null||o(G?G[1]:null),G){var oe=G[1];q==null||q(oe,K),h==null||h(G[1],K)}},[F,A,o,q,h]),X=v.useCallback(function(K){var G=F(K);if(A(G),G){var oe=G[0],ne=G[1];if(o==null||o(ne),q==null||q(ne,K),I.current){var re=I.current,ae=re[0],le=re[1];oe!==ae?m==null||m(le,K):p==null||p(ne,K)}else h==null||h(ne,K)}else o==null||o(null),Y==null||Y(),I.current&&(m==null||m(I.current[1],K))},[F,A,o,I,h,p,m,q,Y]),J=v.useCallback(function(K){A(null),o==null||o(null),Y(),m&&I.current&&m(I.current[1],K)},[A,o,I,Y,m]),ee=v.useCallback(function(K){var G=F(K);A(G),G&&(g==null||g(G[1],K))},[F,A,g]),W=v.useCallback(function(K){var G=F(K);A(G),G&&(x==null||x(G[1],K))},[F,A,x]),P=v.useCallback(function(K){var G=F(K);A(G),G&&(_==null||_(G[1],K))},[F,A,_]),B=v.useCallback(function(K){var G=F(K);A(G),G&&(w==null||w(G[1],K))},[F,A,w]),V=v.useCallback(function(K){var G=F(K);$&&(A(G),o==null||o(G?G[1]:null)),G&&(C==null||C(G[1],K))},[F,A,o,$,C]),N=v.useCallback(function(K){var G=F(K);$&&(A(G),o==null||o(G?G[1]:null)),G&&(b==null||b(G[1],K))},[F,A,o,$,b]),te=v.useCallback(function(K){$&&(A(null),o==null||o(null)),S&&I.current&&S(I.current[1],K)},[$,A,o,S,I]);return{current:O,handleMouseEnter:f?Z:void 0,handleMouseMove:f?X:void 0,handleMouseLeave:f?J:void 0,handleMouseDown:f?ee:void 0,handleMouseUp:f?W:void 0,handleClick:f?P:void 0,handleDoubleClick:f?B:void 0,handleTouchStart:f?V:void 0,handleTouchMove:f?N:void 0,handleTouchEnd:f?te:void 0}},Tle=["theme"],$le=function(e){var t=e.data,n=e.width,r=e.height,i=e.margin,a=e.layers,o=a===void 0?Qn.layers:a,s=e.xDomain,l=s===void 0?Qn.xDomain:s,c=e.yDomain,u=c===void 0?Qn.yDomain:c,d=e.enableLinks,f=d===void 0?Qn.enableLinks:d,h=e.linkLineWidth,p=h===void 0?Qn.linkLineWidth:h,m=e.linkLineColor,g=m===void 0?Qn.linkLineColor:m,x=e.enableCells,_=x===void 0?Qn.enableCells:x,w=e.cellLineWidth,C=w===void 0?Qn.cellLineWidth:w,b=e.cellLineColor,S=b===void 0?Qn.cellLineColor:b,M=e.enablePoints,$=M===void 0?Qn.enableCells:M,k=e.pointSize,D=k===void 0?Qn.pointSize:k,T=e.pointColor,E=T===void 0?Qn.pointColor:T,R=e.role,j=R===void 0?Qn.role:R,O=e.forwardedRef,A=oo(n,r,i),I=A.outerWidth,F=A.outerHeight,z=A.margin,L=A.innerWidth,H=A.innerHeight,Y=_le({data:t,width:L,height:H,xDomain:l,yDomain:u}),q=Y.points,Z=Y.delaunay,X=Y.voronoi,J={links:null,cells:null,points:null,bounds:null};f&&o.includes("links")&&(J.links=y.jsx("path",{stroke:g,strokeWidth:p,fill:"none",d:Z.render()},"links")),_&&o.includes("cells")&&(J.cells=y.jsx("path",{d:X.render(),fill:"none",stroke:S,strokeWidth:C},"cells")),$&&o.includes("points")&&(J.points=y.jsx("path",{stroke:"none",fill:E,d:Z.renderPoints(void 0,D/2)},"points")),o.includes("bounds")&&(J.bounds=y.jsx("path",{fill:"none",stroke:S,strokeWidth:C,d:X.renderBounds()},"bounds"));var ee=Cle({points:q,delaunay:Z,voronoi:X});return y.jsx(yh,{width:I,height:F,margin:z,role:j,ref:O,children:o.map(function(W,P){return J[W]!==void 0?J[W]:typeof W=="function"?y.jsx(v.Fragment,{children:v.createElement(W,ee)},P):null})})},kle=v.forwardRef(function(e,t){var n=e.theme,r=M5(e,Tle);return y.jsx(io,{isInteractive:!1,animate:!1,theme:n,children:y.jsx($le,Td({},r,{forwardedRef:t}))})}),Mle=["defaultWidth","defaultHeight","onResize","debounceResize"];v.forwardRef(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,a=e.debounceResize,o=M5(e,Mle);return y.jsx(ao,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:a,children:function(s){var l=s.width,c=s.height;return y.jsx(kle,Td({},o,{width:l,height:c,ref:t}))}})});var Ele=function(e){var t=e.nodes,n=e.width,r=e.height,i=e.margin,a=i===void 0?Nc:i,o=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,m=e.onTouchStart,g=e.onTouchMove,x=e.onTouchEnd,_=e.enableTouchCrosshair,w=_!==void 0&&_,C=e.detectionRadius,b=C===void 0?1/0:C,S=e.tooltip,M=e.tooltipPosition,$=M===void 0?E5:M,k=e.tooltipAnchor,D=k===void 0?O5:k,T=e.debug,E=v.useRef(null),R=A5({points:t,getNodePosition:o,width:n,height:r,margin:a,debug:T}),j=R.delaunay,O=R.voronoi,A=Sle({elementRef:E,nodes:t,delaunay:j,margin:a,detectionRadius:b,setCurrent:s,onMouseEnter:l,onMouseMove:c,onMouseLeave:u,onMouseDown:d,onMouseUp:f,onClick:h,onDoubleClick:p,onTouchStart:m,onTouchMove:g,onTouchEnd:x,enableTouchCrosshair:w,tooltip:S,tooltipPosition:$,tooltipAnchor:D}),I=A.current,F=A.handleMouseEnter,z=A.handleMouseMove,L=A.handleMouseLeave,H=A.handleMouseDown,Y=A.handleMouseUp,q=A.handleClick,Z=A.handleDoubleClick,X=A.handleTouchStart,J=A.handleTouchMove,ee=A.handleTouchEnd,W=v.useMemo(function(){if(T&&O)return O.render()},[T,O]);return y.jsxs("g",{ref:E,transform:"translate("+-a.left+","+-a.top+")",children:[T&&O&&y.jsxs(y.Fragment,{children:[y.jsx("path",{d:W,stroke:"red",strokeWidth:1,opacity:.75}),b<1/0&&y.jsx("path",{stroke:"red",strokeWidth:.35,fill:"none",d:j.renderPoints(void 0,b)}),I&&y.jsx("path",{fill:"pink",opacity:.35,d:O.renderCell(I[0])})]}),y.jsx("rect",{"data-ref":"mesh-interceptor",width:a.left+n+a.right,height:a.top+r+a.bottom,fill:"red",opacity:0,style:{cursor:"auto"},onMouseEnter:F,onMouseMove:z,onMouseLeave:L,onMouseDown:H,onMouseUp:Y,onTouchStart:X,onTouchMove:J,onTouchEnd:ee,onClick:q,onDoubleClick:Z})]})},Ole=function(e,t){e.save(),e.globalAlpha=.75,e.beginPath(),t.render(e),e.strokeStyle="red",e.lineWidth=1,e.stroke(),e.restore()},Ale=function(e,t,n){e.save(),e.globalAlpha=.35,e.beginPath(),t.renderCell(n,e),e.fillStyle="pink",e.fill(),e.restore()};function En(){return En=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},En.apply(null,arguments)}function wh(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 Ox,oi={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:v.memo(function(e){var t=e.point;return y.jsx(nv,{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:v.memo(function(e){var t=e.slice,n=e.axis,r=Lt(),i=n==="x"?"y":"x";return y.jsx(S6,{rows:t.points.map(function(a){return[y.jsx(C6,{color:a.seriesColor,style:r.tooltip.chip},"chip"),a.seriesId,y.jsx("span",{style:r.tooltip.tableCellValue,children:a.data[i+"Formatted"]},"value")]})})}),debugMesh:!1,renderWrapper:!0},ot=En({},oi,{defs:[],fill:[],enablePointLabel:!1,pointLabel:"data.yFormatted",areaBlendMode:"normal",axisTop:null,axisRight:null,axisBottom:Wn,axisLeft:Wn,useMesh:!1,enableSlices:!1,debugSlices:!1,enableCrosshair:!0,crosshairType:"bottom-left",enableTouchCrosshair:!1,initialHiddenIds:[],animate:!0,motionConfig:"gentle",role:"img",isFocusable:!1}),en=En({},oi,{pixelRatio:typeof window<"u"&&(Ox=window.devicePixelRatio)!=null?Ox:1,axisTop:null,axisRight:null,axisBottom:Wn,axisLeft:Wn});function Rle(e){return v.useMemo(function(){return fv().defined(function(t){return t.x!==null&&t.y!==null}).x(function(t){return t.x}).y(function(t){return t.y}).curve(KS(e))},[e])}function Dle(e){var t=e.curve,n=e.yScale,r=e.areaBaselineValue;return v.useMemo(function(){return RK().defined(function(i){return i.x!==null&&i.y!==null}).x(function(i){return i.x}).y1(function(i){return i.y}).curve(KS(t)).y0(n(r))},[t,n,r])}var jle=function(e){var t=e.componentId,n=e.enableSlices,r=e.points,i=e.width,a=e.height;return v.useMemo(function(){if(n==="x"){var o=new Map;return r.forEach(function(l){l.data.x!==null&&l.data.y!==null&&(o.has(l.x)?o.get(l.x).push(l):o.set(l.x,[l]))}),Array.from(o.entries()).sort(function(l,c){return l[0]-c[0]}).map(function(l,c,u){var d,f,h=l[0],p=l[1],m=u[c-1],g=u[c+1];return d=m?h-(h-m[0])/2:h,f=g?h-d+(g[0]-h)/2:i-d,{id:"slice:"+t+":"+h,x0:d,x:h,y0:0,y:0,width:f,height:a,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],m=u[c-1],g=u[c+1];return d=m?h-(h-m[0])/2:h,f=g?h-d+(g[0]-h)/2:a-d,{id:h,x0:0,x:0,y0:d,y:h,width:i,height:f,points:p.reverse()}})}return[]},[t,n,a,r,i])},Ile="line",R5=function(e){var t=e.data,n=e.xScale,r=n===void 0?oi.xScale:n,i=e.xFormat,a=e.yScale,o=a===void 0?oi.yScale:a,s=e.yFormat,l=e.width,c=e.height,u=e.colors,d=u===void 0?oi.colors:u,f=e.curve,h=f===void 0?oi.curve:f,p=e.areaBaselineValue,m=p===void 0?oi.areaBaselineValue:p,g=e.pointColor,x=g===void 0?oi.pointColor:g,_=e.pointBorderColor,w=_===void 0?oi.pointBorderColor:_,C=e.enableSlices,b=C===void 0?ot.enableSlices:C,S=e.initialHiddenIds,M=S===void 0?ot.initialHiddenIds:S,$=v.useState(Qse(Ile))[0],k=os(i),D=os(s),T=Wv(d,"id"),E=Lt(),R=pr(x,E),j=pr(w,E),O=v.useState(M??[]),A=O[0],I=O[1],F=v.useMemo(function(){return Lse(t.filter(function(W){return A.indexOf(W.id)===-1}),r,o,l,c)},[t,A,r,o,l,c]),z=F.xScale,L=F.yScale,H=F.series,Y=v.useMemo(function(){var W=t.map(function(B){return{id:B.id,label:""+B.id,color:T(B)}}),P=W.map(function(B){return En({},H.find(function(V){return V.id===B.id}),{color:B.color})}).filter(function(B){return!!B.id});return{legendData:W.map(function(B){return En({},B,{hidden:!P.find(function(V){return V.id===B.id})})}).reverse(),series:P}},[t,H,T]),q=Y.legendData,Z=Y.series,X=v.useCallback(function(W){I(function(P){return P.indexOf(W)>-1?P.filter(function(B){return B!==W}):[].concat(P,[W])})},[]),J=function(W){var P=W.series,B=W.getPointColor,V=W.getPointBorderColor,N=W.formatX,te=W.formatY;return v.useMemo(function(){return P.reduce(function(K,G,oe){return[].concat(K,G.data.filter(function(ne){return ne.position.x!==null&&ne.position.y!==null}).map(function(ne,re){var ae={id:G.id+"."+re,indexInSeries:re,absIndex:K.length+re,seriesIndex:oe,seriesId:G.id,seriesColor:G.color,x:ne.position.x,y:ne.position.y,data:En({},ne.data,{xFormatted:N(ne.data.x),yFormatted:te(ne.data.y)})};return ae.color=B({series:G,point:ae}),ae.borderColor=V(ae),ae}))},[])},[P,B,V,N,te])}({series:Z,getPointColor:R,getPointBorderColor:j,formatX:k,formatY:D}),ee=jle({componentId:$,enableSlices:b,points:J,width:l,height:c});return{legendData:q,toggleSeries:X,lineGenerator:Rle(h),areaGenerator:Dle({curve:h,yScale:L,areaBaselineValue:m}),getColor:T,series:Z,xScale:z,yScale:L,slices:ee,points:J}},Nle=function(e){var t=e.areaBlendMode,n=e.areaOpacity,r=e.color,i=e.fill,a=e.path,o=Fn(),s=o.animate,l=o.config,c=Lv(a),u=Zr({color:r,config:l,immediate:!s});return y.jsx(Ht.path,{d:c,fill:i||u.color,fillOpacity:n,strokeWidth:0,style:{mixBlendMode:t}})},Ple=v.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(a){return y.jsx(Nle,En({path:t(a.data.map(function(o){return o.position}))},En({areaOpacity:n,areaBlendMode:r},a)),""+a.id)})})}),Lle=v.memo(function(e){var t=e.lineGenerator,n=e.points,r=e.color,i=e.thickness,a=v.useMemo(function(){return t(n)},[t,n]),o=Lv(a);return y.jsx(Ht.path,{d:o,fill:"none",strokeWidth:i,stroke:r})}),Fle=v.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 a=i.id,o=i.data,s=i.color;return y.jsx(Lle,{points:o.map(function(l){return l.position}),lineGenerator:n,color:s,thickness:r},a)})})}),Ble=v.memo(function(e){var t=e.slice,n=e.slices,r=e.axis,i=e.debug,a=e.tooltip,o=e.isCurrent,s=e.setCurrent,l=e.onMouseEnter,c=e.onMouseMove,u=e.onMouseLeave,d=e.onMouseDown,f=e.onMouseUp,h=e.onClick,p=e.onDoubleClick,m=e.onTouchStart,g=e.onTouchMove,x=e.onTouchEnd,_=Ti(),w=_.showTooltipFromEvent,C=_.hideTooltip,b=v.useCallback(function(O){w(v.createElement(a,{slice:t,axis:r}),O,"right"),s(t),l==null||l(t,O)},[w,a,t,r,s,l]),S=v.useCallback(function(O){w(v.createElement(a,{slice:t,axis:r}),O,"right"),c==null||c(t,O)},[w,a,t,r,c]),M=v.useCallback(function(O){C(),s(null),u==null||u(t,O)},[C,s,u,t]),$=v.useCallback(function(O){d==null||d(t,O)},[t,d]),k=v.useCallback(function(O){f==null||f(t,O)},[t,f]),D=v.useCallback(function(O){h==null||h(t,O)},[t,h]),T=v.useCallback(function(O){p==null||p(t,O)},[t,p]),E=v.useCallback(function(O){w(v.createElement(a,{slice:t,axis:r}),O,"right"),s(t),m==null||m(t,O)},[r,m,s,w,t,a]),R=v.useCallback(function(O){var A=O.touches[0],I=document.elementFromPoint(A.clientX,A.clientY),F=I==null?void 0:I.getAttribute("data-ref");if(F){var z=n.find(function(L){return L.id===F});z&&(w(v.createElement(a,{slice:z,axis:r}),O,"right"),s(z))}g==null||g(t,O)},[r,g,s,w,t,n,a]),j=v.useCallback(function(O){C(),s(null),x==null||x(t,O)},[C,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:o&&i?.35:0,onMouseEnter:b,onMouseMove:S,onMouseLeave:M,onMouseDown:$,onMouseUp:k,onClick:D,onDoubleClick:T,onTouchStart:E,onTouchMove:R,onTouchEnd:j,"data-ref":t.id})}),zle=v.memo(function(e){var t=e.slices,n=e.axis,r=e.debug,i=e.tooltip,a=e.current,o=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,m=e.onTouchMove,g=e.onTouchEnd;return y.jsx(y.Fragment,{children:t.map(function(x){return y.jsx(Ble,{slice:x,slices:t,axis:n,debug:r,tooltip:i,setCurrent:o,isCurrent:a!==null&&a.id===x.id,onMouseEnter:s,onMouseMove:l,onMouseLeave:c,onMouseDown:u,onMouseUp:d,onClick:f,onDoubleClick:h,onTouchStart:p,onTouchMove:m,onTouchEnd:g},x.id)})})}),Wle=v.memo(function(e){var t=e.points,n=e.symbol,r=e.size,i=e.borderWidth,a=e.enableLabel,o=e.label,s=e.labelYOffset,l=e.isFocusable,c=e.setCurrentPoint,u=e.tooltip,d=e.margin,f=e.ariaLabel,h=e.ariaLabelledBy,p=e.ariaDescribedBy,m=e.ariaHidden,g=e.ariaDisabled,x=Jre(o),_=Ti(),w=_.showTooltipAt,C=_.hideTooltip,b=t.slice(0).sort(function(S,M){return S.indexInSeries-M.indexInSeries}).sort(function(S,M){return M.seriesIndex-S.seriesIndex}).map(function(S){return{id:S.id,x:S.x,y:S.y,datum:S.data,fill:S.color,stroke:S.borderColor,label:a?x(S):null,ariaLabel:f?f(S):void 0,ariaLabelledBy:h?h(S):void 0,ariaDescribedBy:p?p(S):void 0,ariaHidden:m?m(S):void 0,ariaDisabled:g?g(S):void 0,onFocus:l?function(){c(S),w(v.createElement(u,{point:S}),[d.left+S.x,d.top+S.y],"top")}:void 0,onBlur:l?function(){c(null),C()}:void 0}});return y.jsx("g",{children:b.map(function(S){return y.jsx(Gre,{x:S.x,y:S.y,datum:S.datum,symbol:n,size:r,color:S.fill,borderWidth:i,borderColor:S.stroke,label:S.label,labelYOffset:s,ariaLabel:S.ariaLabel,ariaLabelledBy:S.ariaLabelledBy,ariaDescribedBy:S.ariaDescribedBy,ariaHidden:S.ariaHidden,ariaDisabled:S.ariaDisabled,isFocusable:l,onFocus:S.onFocus,onBlur:S.onBlur,testId:"line.point."+S.id},S.id)})})}),Ule=v.memo(function(e){var t=e.points,n=e.width,r=e.height,i=e.margin,a=e.setCurrent,o=e.onMouseEnter,s=e.onMouseMove,l=e.onMouseLeave,c=e.onMouseDown,u=e.onMouseUp,d=e.onClick,f=e.onDoubleClick,h=e.onTouchStart,p=e.onTouchMove,m=e.onTouchEnd,g=e.tooltip,x=e.debug,_=e.enableTouchCrosshair,w=Ti(),C=w.showTooltipAt,b=w.hideTooltip,S=v.useCallback(function(A,I){C(v.createElement(g,{point:A}),[A.x+i.left,A.y+i.top],"top"),o==null||o(A,I)},[C,g,o,i]),M=v.useCallback(function(A,I){C(v.createElement(g,{point:A}),[A.x+i.left,A.y+i.top],"top"),s==null||s(A,I)},[C,g,i.left,i.top,s]),$=v.useCallback(function(A,I){b(),l==null||l(A,I)},[b,l]),k=v.useCallback(function(A,I){c==null||c(A,I)},[c]),D=v.useCallback(function(A,I){u==null||u(A,I)},[u]),T=v.useCallback(function(A,I){d==null||d(A,I)},[d]),E=v.useCallback(function(A,I){f==null||f(A,I)},[f]),R=v.useCallback(function(A,I){C(v.createElement(g,{point:A}),[A.x+i.left,A.y+i.top],"top"),h==null||h(A,I)},[i.left,i.top,h,C,g]),j=v.useCallback(function(A,I){C(v.createElement(g,{point:A}),[A.x+i.left,A.y+i.top],"top"),p==null||p(A,I)},[i.left,i.top,p,C,g]),O=v.useCallback(function(A,I){b(),m==null||m(A,I)},[m,b]);return y.jsx(Ele,{nodes:t,width:n,height:r,setCurrent:a,onMouseEnter:S,onMouseMove:M,onMouseLeave:$,onMouseDown:k,onMouseUp:D,onClick:T,onDoubleClick:E,onTouchStart:R,onTouchMove:j,onTouchEnd:O,enableTouchCrosshair:_,debug:x})}),Hle=["isInteractive","animate","motionConfig","theme","renderWrapper"];function Vle(e){var t=e.data,n=e.xScale,r=n===void 0?ot.xScale:n,i=e.xFormat,a=e.yScale,o=a===void 0?ot.yScale:a,s=e.yFormat,l=e.curve,c=l===void 0?ot.curve:l,u=e.margin,d=e.width,f=e.height,h=e.colors,p=h===void 0?ot.colors:h,m=e.lineWidth,g=m===void 0?ot.lineWidth:m,x=e.layers,_=x===void 0?ot.layers:x,w=e.enableArea,C=w===void 0?ot.enableArea:w,b=e.areaBaselineValue,S=b===void 0?ot.areaBaselineValue:b,M=e.areaOpacity,$=M===void 0?ot.areaOpacity:M,k=e.areaBlendMode,D=k===void 0?ot.areaBlendMode:k,T=e.enablePoints,E=T===void 0?ot.enablePoints:T,R=e.pointSymbol,j=e.pointSize,O=j===void 0?ot.pointSize:j,A=e.pointColor,I=A===void 0?ot.pointColor:A,F=e.pointBorderWidth,z=F===void 0?ot.pointBorderWidth:F,L=e.pointBorderColor,H=L===void 0?ot.pointBorderColor:L,Y=e.enablePointLabel,q=Y===void 0?ot.enablePointLabel:Y,Z=e.pointLabel,X=Z===void 0?ot.pointLabel:Z,J=e.pointLabelYOffset,ee=e.enableGridX,W=ee===void 0?ot.enableGridX:ee,P=e.gridXValues,B=e.enableGridY,V=B===void 0?ot.enableGridY:B,N=e.gridYValues,te=e.axisTop,K=e.axisRight,G=e.axisBottom,oe=G===void 0?ot.axisBottom:G,ne=e.axisLeft,re=ne===void 0?ot.axisLeft:ne,ae=e.defs,le=ae===void 0?ot.defs:ae,ye=e.fill,ge=ye===void 0?ot.fill:ye,be=e.markers,Me=e.legends,ce=Me===void 0?ot.legends:Me,de=e.isInteractive,Ce=de===void 0?ot.isInteractive:de,Ge=e.useMesh,we=Ge===void 0?ot.useMesh:Ge,ve=e.debugMesh,Pe=ve===void 0?ot.debugMesh:ve,Ze=e.onMouseEnter,_t=e.onMouseMove,Te=e.onMouseLeave,Re=e.onMouseDown,it=e.onMouseUp,Ue=e.onClick,mt=e.onDoubleClick,ct=e.onTouchStart,At=e.onTouchMove,Ke=e.onTouchEnd,Le=e.tooltip,Ve=Le===void 0?ot.tooltip:Le,et=e.enableSlices,Fe=et===void 0?ot.enableSlices:et,tt=e.debugSlices,vt=tt===void 0?ot.debugSlices:tt,at=e.sliceTooltip,Ne=at===void 0?ot.sliceTooltip:at,Ee=e.enableCrosshair,Ye=Ee===void 0?ot.enableCrosshair:Ee,xt=e.crosshairType,nt=xt===void 0?ot.crosshairType:xt,bt=e.enableTouchCrosshair,Jt=bt===void 0?ot.enableTouchCrosshair:bt,Ft=e.role,zt=Ft===void 0?ot.role:Ft,fn=e.ariaLabel,qt=e.ariaLabelledBy,$e=e.ariaDescribedBy,Je=e.isFocusable,St=Je===void 0?ot.isFocusable:Je,an=e.pointAriaLabel,Yt=e.pointAriaLabelledBy,Be=e.pointAriaDescribedBy,ze=e.pointAriaHidden,ft=e.pointAriaDisabled,Rt=e.initialHiddenIds,Tt=Rt===void 0?ot.initialHiddenIds:Rt,Qe=e.forwardedRef,$t=oo(d,f,u),vr=$t.margin,ln=$t.innerWidth,cn=$t.innerHeight,An=$t.outerWidth,ia=$t.outerHeight,Ct=R5({data:t,xScale:r,xFormat:i,yScale:o,yFormat:s,width:ln,height:cn,colors:p,curve:c,areaBaselineValue:S,pointColor:I,pointBorderColor:H,enableSlices:Fe,initialHiddenIds:Tt}),aa=Ct.legendData,Ae=Ct.toggleSeries,Er=Ct.lineGenerator,oa=Ct.areaGenerator,so=Ct.series,lo=Ct.xScale,Jr=Ct.yScale,Pc=Ct.slices,Qr=Ct.points,As=v.useState(null),sa=As[0],Rs=As[1],Lc=v.useState(null),la=Lc[0],Fc=Lc[1],Rn={grid:null,markers:null,axes:null,areas:null,crosshair:null,lines:null,points:null,slices:null,mesh:null,legends:null};_.includes("grid")&&(W||V)&&(Rn.grid=y.jsx($5,{width:ln,height:cn,xScale:W?lo:null,yScale:V?Jr:null,xValues:P,yValues:N},"grid")),_.includes("markers")&&Array.isArray(be)&&be.length>0&&(Rn.markers=y.jsx(XS,{markers:be,width:ln,height:cn,xScale:lo,yScale:Jr},"markers")),_.includes("axes")&&(Rn.axes=y.jsx(T5,{xScale:lo,yScale:Jr,width:ln,height:cn,top:te,right:K,bottom:oe,left:re},"axes")),_.includes("lines")&&(Rn.lines=y.jsx(Fle,{series:so,lineGenerator:Er,lineWidth:g},"lines")),_.includes("legends")&&ce.length>0&&(Rn.legends=y.jsx(v.Fragment,{children:ce.map(function(Or,$i){return y.jsx(Vv,En({},Or,{containerWidth:ln,containerHeight:cn,data:Or.data||aa,toggleSerie:Or.toggleSerie?Ae:void 0}),$i)})},"legends"));var Sh=Bv(le,so,ge);C&&(Rn.areas=y.jsx(Ple,{areaGenerator:oa,areaOpacity:$,areaBlendMode:D,series:so},"areas")),Ce&&Fe!==!1&&(Rn.slices=y.jsx(zle,{slices:Pc,axis:Fe,debug:vt,tooltip:Ne,current:la,setCurrent:Fc,onMouseEnter:Ze,onMouseMove:_t,onMouseLeave:Te,onMouseDown:Re,onMouseUp:it,onClick:Ue,onDoubleClick:mt,onTouchStart:ct,onTouchMove:At,onTouchEnd:Ke},"slices")),E&&(Rn.points=y.jsx(Wle,{points:Qr,symbol:R,size:O,borderWidth:z,enableLabel:q,label:X,labelYOffset:J,isFocusable:St,setCurrentPoint:Rs,tooltip:Ve,margin:vr,ariaLabel:an,ariaLabelledBy:Yt,ariaDescribedBy:Be,ariaHidden:ze,ariaDisabled:ft},"points")),Ce&&Ye&&(sa!==null&&(Rn.crosshair=y.jsx(Bm,{width:ln,height:cn,x:sa.x,y:sa.y,type:nt},"crosshair")),la!==null&&Fe&&(Rn.crosshair=y.jsx(Bm,{width:ln,height:cn,x:la.x,y:la.y,type:Fe},"crosshair"))),Ce&&we&&Fe===!1&&(Rn.mesh=y.jsx(Ule,{points:Qr,width:ln,height:cn,margin:vr,setCurrent:Rs,onMouseEnter:Ze,onMouseMove:_t,onMouseLeave:Te,onMouseDown:Re,onMouseUp:it,onClick:Ue,onDoubleClick:mt,onTouchStart:ct,onTouchMove:At,onTouchEnd:Ke,tooltip:Ve,enableTouchCrosshair:Jt,debug:Pe},"mesh"));var Th=En({},e,{innerWidth:ln,innerHeight:cn,series:so,slices:Pc,points:Qr,xScale:lo,yScale:Jr,lineGenerator:Er,areaGenerator:oa,currentPoint:sa,setCurrentPoint:Rs,currentSlice:la,setCurrentSlice:Fc});return y.jsx(yh,{defs:Sh,width:An,height:ia,margin:vr,role:zt,ariaLabel:fn,ariaLabelledBy:qt,ariaDescribedBy:$e,isFocusable:St,ref:Qe,children:_.map(function(Or,$i){return typeof Or=="function"?y.jsx(v.Fragment,{children:Or(Th)},$i):Rn[Or]})})}var qle=v.forwardRef(function(e,t){var n=e.isInteractive,r=n===void 0?ot.isInteractive:n,i=e.animate,a=i===void 0?ot.animate:i,o=e.motionConfig,s=o===void 0?ot.motionConfig:o,l=e.theme,c=e.renderWrapper,u=wh(e,Hle);return y.jsx(io,{animate:a,isInteractive:r,motionConfig:s,renderWrapper:c,theme:l,children:y.jsx(Vle,En({isInteractive:r},u,{forwardedRef:t}))})}),Yle=["defaultWidth","defaultHeight","onResize","debounceResize"],Gle=v.forwardRef(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,a=e.debounceResize,o=wh(e,Yle);return y.jsx(ao,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:a,children:function(s){var l=s.width,c=s.height;return y.jsx(qle,En({width:l,height:c},o,{ref:t}))}})}),Zle=["isInteractive","renderWrapper","theme"],Xle=function(e){var t=e.width,n=e.height,r=e.margin,i=e.pixelRatio,a=i===void 0?en.pixelRatio:i,o=e.data,s=e.xScale,l=s===void 0?en.xScale:s,c=e.xFormat,u=e.yScale,d=u===void 0?en.yScale:u,f=e.yFormat,h=e.curve,p=h===void 0?en.curve:h,m=e.layers,g=m===void 0?en.layers:m,x=e.colors,_=x===void 0?en.colors:x,w=e.lineWidth,C=w===void 0?en.lineWidth:w,b=e.enableArea,S=b===void 0?en.enableArea:b,M=e.areaBaselineValue,$=M===void 0?en.areaBaselineValue:M,k=e.areaOpacity,D=k===void 0?en.areaOpacity:k,T=e.enablePoints,E=T===void 0?en.enablePoints:T,R=e.pointSize,j=R===void 0?en.pointSize:R,O=e.pointColor,A=O===void 0?en.pointColor:O,I=e.pointBorderWidth,F=I===void 0?en.pointBorderWidth:I,z=e.pointBorderColor,L=z===void 0?en.pointBorderColor:z,H=e.enableGridX,Y=H===void 0?en.enableGridX:H,q=e.gridXValues,Z=e.enableGridY,X=Z===void 0?en.enableGridY:Z,J=e.gridYValues,ee=e.axisTop,W=e.axisRight,P=e.axisBottom,B=P===void 0?en.axisBottom:P,V=e.axisLeft,N=V===void 0?en.axisLeft:V,te=e.legends,K=te===void 0?en.legends:te,G=e.isInteractive,oe=G===void 0?en.isInteractive:G,ne=e.debugMesh,re=ne===void 0?en.debugMesh:ne,ae=e.onMouseLeave,le=e.onMouseDown,ye=e.onMouseUp,ge=e.onClick,be=e.onDoubleClick,Me=e.tooltip,ce=Me===void 0?en.tooltip:Me,de=e.role,Ce=e.forwardedRef,Ge=v.useRef(null),we=oo(t,n,r),ve=we.margin,Pe=we.innerWidth,Ze=we.innerHeight,_t=we.outerWidth,Te=we.outerHeight,Re=Lt(),it=v.useState(null),Ue=it[0],mt=it[1],ct=R5({data:o,xScale:l,xFormat:c,yScale:d,yFormat:f,width:Pe,height:Ze,colors:_,curve:p,areaBaselineValue:$,pointColor:A,pointBorderColor:L}),At=ct.lineGenerator,Ke=ct.areaGenerator,Le=ct.series,Ve=ct.xScale,et=ct.yScale,Fe=ct.points,tt=v.useMemo(function(){return{innerWidth:Pe,innerHeight:Ze,series:Le,points:Fe,xScale:Ve,yScale:et,lineWidth:C,lineGenerator:At,areaGenerator:Ke,currentPoint:Ue,setCurrentPoint:mt}},[Pe,Ze,Le,Fe,Ve,et,C,At,Ke,Ue,mt]),vt=A5({points:Fe,width:Pe,height:Ze,debug:re}),at=vt.delaunay,Ne=vt.voronoi;v.useEffect(function(){if(Ge.current!==null){Ge.current.width=_t*a,Ge.current.height=Te*a;var $e=Ge.current.getContext("2d");$e.scale(a,a),$e.fillStyle=Re.background,$e.fillRect(0,0,_t,Te),$e.translate(ve.left,ve.top),g.forEach(function(Je){var St;typeof Je=="function"&&Je($e,tt);var an=(St=Re.grid.line.strokeWidth)!=null?St:0;if(Je==="grid"&&typeof an!="string"&&an>0&&($e.lineWidth=an,$e.strokeStyle=Re.grid.line.stroke,Y&&Cd($e,{width:Pe,height:Ze,scale:Ve,axis:"x",values:q}),X&&Cd($e,{width:Pe,height:Ze,scale:et,axis:"y",values:J})),Je==="axes"&&k5($e,{xScale:Ve,yScale:et,width:Pe,height:Ze,top:ee,right:W,bottom:B,left:N,theme:Re}),Je==="areas"&&S===!0){$e.save(),$e.globalAlpha=D,Ke.context($e);for(var Yt=Le.length-1;Yt>=0;Yt--)$e.fillStyle=Le[Yt].color,$e.beginPath(),Ke(Le[Yt].data.map(function(ze){return ze.position})),$e.fill();$e.restore()}if(Je==="lines"&&(At.context($e),Le.forEach(function(ze){$e.strokeStyle=ze.color,$e.lineWidth=C,$e.beginPath(),At(ze.data.map(function(ft){return ft.position})),$e.stroke()})),Je==="points"&&E===!0&&j>0&&Fe.forEach(function(ze){$e.fillStyle=ze.color,$e.beginPath(),$e.arc(ze.x,ze.y,j/2,0,2*Math.PI),$e.fill(),F>0&&($e.strokeStyle=ze.borderColor,$e.lineWidth=F,$e.stroke())}),Je==="mesh"&&re===!0&&Ne!==void 0&&(Ole($e,Ne),Ue&&Ale($e,Ne,Ue.absIndex)),Je==="legends"){var Be=Le.map(function(ze){return{id:ze.id,label:ze.id,color:ze.color}}).reverse();K.forEach(function(ze){qv($e,En({},ze,{data:ze.data||Be,containerWidth:Pe,containerHeight:Ze,theme:Re}))})}})}},[Ge,Pe,_t,Ze,Te,ve.left,ve.top,a,g,Re,At,Le,Ve,et,Y,q,X,J,ee,W,B,N,K,Fe,E,j,F,Ue,tt,re,S,Ke,D,C,Ne]);var Ee=v.useCallback(function($e){if(!Ge.current)return null;var Je=Bo(Ge.current,$e),St=Je[0],an=Je[1];if(!t5(ve.left,ve.top,Pe,Ze,St,an))return null;var Yt=at.find(St-ve.left,an-ve.top);return Fe[Yt]},[Ge,ve,Pe,Ze,at,Fe]),Ye=Ti(),xt=Ye.showTooltipFromEvent,nt=Ye.hideTooltip,bt=v.useCallback(function($e){var Je=Ee($e);mt(Je),Je?xt(v.createElement(ce,{point:Je}),$e):nt()},[Ee,mt,xt,nt,ce]),Jt=v.useCallback(function($e){nt(),mt(null),Ue&&(ae==null||ae(Ue,$e))},[nt,mt,ae,Ue]),Ft=v.useCallback(function($e){if(le){var Je=Ee($e);Je&&le(Je,$e)}},[Ee,le]),zt=v.useCallback(function($e){if(ye){var Je=Ee($e);Je&&ye(Je,$e)}},[Ee,ye]),fn=v.useCallback(function($e){if(ge){var Je=Ee($e);Je&&ge(Je,$e)}},[Ee,ge]),qt=v.useCallback(function($e){if(be){var Je=Ee($e);Je&&be(Je,$e)}},[Ee,be]);return y.jsx("canvas",{ref:zv(Ge,Ce),width:_t*a,height:Te*a,style:{width:_t,height:Te,cursor:oe?"auto":"normal"},onMouseEnter:oe?bt:void 0,onMouseMove:oe?bt:void 0,onMouseLeave:oe?Jt:void 0,onMouseDown:oe?Ft:void 0,onMouseUp:oe?zt:void 0,onClick:oe?fn:void 0,onDoubleClick:oe?qt:void 0,role:de})},Kle=v.forwardRef(function(e,t){var n=e.isInteractive,r=e.renderWrapper,i=e.theme,a=wh(e,Zle);return y.jsx(io,{isInteractive:n,renderWrapper:r,theme:i,animate:!1,children:y.jsx(Xle,En({},a,{forwardedRef:t}))})}),Jle=["defaultWidth","defaultHeight","onResize","debounceResize"];v.forwardRef(function(e,t){var n=e.defaultWidth;e.defaultHeight;var r=e.onResize,i=e.debounceResize,a=wh(e,Jle);return y.jsx(ao,{defaultWidth:n,defaultHeight:n,onResize:r,debounceResize:i,children:function(o){var s=o.width,l=o.height;return y.jsx(Kle,En({width:s,height:l},a,{ref:t}))}})});var Qle=g5;function ece(e,t){var n=[];return Qle(e,function(r,i,a){t(r,i,a)&&n.push(r)}),n}var tce=ece,nce=FS,rce=tce,ice=Yv,ace=Kn;function oce(e,t){var n=ace(e)?nce:rce;return n(e,ice(t))}var sce=oce;const lce=nn(sce);var cce=Si,uce=gr,dce="[object Number]";function fce(e){return typeof e=="number"||uce(e)&&cce(e)==dce}var hce=fce;const Ax=nn(hce);function pce(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var mce=pce,gce=Ts,vce=Rc;function bce(e,t){return e&&gce(t,vce(t),e)}var yce=bce,xce=Ts,wce=Ec;function _ce(e,t){return e&&xce(t,wce(t),e)}var Cce=_ce,Sce=Ts,Tce=Nv;function $ce(e,t){return Sce(e,Tce(e),t)}var kce=$ce,Mce=jv,Ece=q0,Oce=Nv,Ace=BS,Rce=Object.getOwnPropertySymbols,Dce=Rce?function(e){for(var t=[];e;)Mce(t,Oce(e)),e=Ece(e);return t}:Ace,D5=Dce,jce=Ts,Ice=D5;function Nce(e,t){return jce(e,Ice(e),t)}var Pce=Nce,Lce=LS,Fce=D5,Bce=Ec;function zce(e){return Lce(e,Bce,Fce)}var j5=zce,Wce=Object.prototype,Uce=Wce.hasOwnProperty;function Hce(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Uce.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Vce=Hce,qce=V0;function Yce(e,t){var n=t?qce(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Gce=Yce,Zce=/\w*$/;function Xce(e){var t=new e.constructor(e.source,Zce.exec(e));return t.lastIndex=e.lastIndex,t}var Kce=Xce,Rx=ys,Dx=Rx?Rx.prototype:void 0,jx=Dx?Dx.valueOf:void 0;function Jce(e){return jx?Object(jx.call(e)):{}}var Qce=Jce,eue=V0,tue=Gce,nue=Kce,rue=Qce,iue=t6,aue="[object Boolean]",oue="[object Date]",sue="[object Map]",lue="[object Number]",cue="[object RegExp]",uue="[object Set]",due="[object String]",fue="[object Symbol]",hue="[object ArrayBuffer]",pue="[object DataView]",mue="[object Float32Array]",gue="[object Float64Array]",vue="[object Int8Array]",bue="[object Int16Array]",yue="[object Int32Array]",xue="[object Uint8Array]",wue="[object Uint8ClampedArray]",_ue="[object Uint16Array]",Cue="[object Uint32Array]";function Sue(e,t,n){var r=e.constructor;switch(t){case hue:return eue(e);case aue:case oue:return new r(+e);case pue:return tue(e,n);case mue:case gue:case vue:case bue:case yue:case xue:case wue:case _ue:case Cue:return iue(e,n);case sue:return new r;case lue:case due:return new r(e);case cue:return nue(e);case uue:return new r;case fue:return rue(e)}}var Tue=Sue,$ue=bh,kue=gr,Mue="[object Map]";function Eue(e){return kue(e)&&$ue(e)==Mue}var Oue=Eue,Aue=Oue,Rue=Ss,Ix=Ef,Nx=Ix&&Ix.isMap,Due=Nx?Rue(Nx):Aue,jue=Due,Iue=bh,Nue=gr,Pue="[object Set]";function Lue(e){return Nue(e)&&Iue(e)==Pue}var Fue=Lue,Bue=Fue,zue=Ss,Px=Ef,Lx=Px&&Px.isSet,Wue=Lx?zue(Lx):Bue,Uue=Wue,Hue=$f,Vue=mce,que=J0,Yue=yce,Gue=Cce,Zue=QC,Xue=n6,Kue=kce,Jue=Pce,Que=zS,ede=j5,tde=bh,nde=Vce,rde=Tue,ide=i6,ade=Kn,ode=Mf,sde=jue,lde=Kr,cde=Uue,ude=Rc,dde=Ec,fde=1,hde=2,pde=4,I5="[object Arguments]",mde="[object Array]",gde="[object Boolean]",vde="[object Date]",bde="[object Error]",N5="[object Function]",yde="[object GeneratorFunction]",xde="[object Map]",wde="[object Number]",P5="[object Object]",_de="[object RegExp]",Cde="[object Set]",Sde="[object String]",Tde="[object Symbol]",$de="[object WeakMap]",kde="[object ArrayBuffer]",Mde="[object DataView]",Ede="[object Float32Array]",Ode="[object Float64Array]",Ade="[object Int8Array]",Rde="[object Int16Array]",Dde="[object Int32Array]",jde="[object Uint8Array]",Ide="[object Uint8ClampedArray]",Nde="[object Uint16Array]",Pde="[object Uint32Array]",Gt={};Gt[I5]=Gt[mde]=Gt[kde]=Gt[Mde]=Gt[gde]=Gt[vde]=Gt[Ede]=Gt[Ode]=Gt[Ade]=Gt[Rde]=Gt[Dde]=Gt[xde]=Gt[wde]=Gt[P5]=Gt[_de]=Gt[Cde]=Gt[Sde]=Gt[Tde]=Gt[jde]=Gt[Ide]=Gt[Nde]=Gt[Pde]=!0;Gt[bde]=Gt[N5]=Gt[$de]=!1;function Mu(e,t,n,r,i,a){var o,s=t&fde,l=t&hde,c=t&pde;if(n&&(o=i?n(e,r,i,a):n(e)),o!==void 0)return o;if(!lde(e))return e;var u=ade(e);if(u){if(o=nde(e),!s)return Xue(e,o)}else{var d=tde(e),f=d==N5||d==yde;if(ode(e))return Zue(e,s);if(d==P5||d==I5||f&&!i){if(o=l||f?{}:ide(e),!s)return l?Jue(e,Gue(o,e)):Kue(e,Yue(o,e))}else{if(!Gt[d])return i?e:{};o=rde(e,d,s)}}a||(a=new Hue);var h=a.get(e);if(h)return h;a.set(e,o),cde(e)?e.forEach(function(g){o.add(Mu(g,t,n,g,e,a))}):sde(e)&&e.forEach(function(g,x){o.set(x,Mu(g,t,n,x,e,a))});var p=c?l?ede:Que:l?dde:ude,m=u?void 0:p(e);return Vue(m||e,function(g,x){m&&(x=g,g=e[x]),que(o,x,Mu(g,t,n,x,e,a))}),o}var Lde=Mu;function Fde(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}var Bde=Fde,zde=Oc,Wde=Bde;function Ude(e,t){return t.length<2?e:zde(e,Wde(t,0,-1))}var Hde=Ude,Vde=$s,qde=RS,Yde=Hde,Gde=ks;function Zde(e,t){return t=Vde(t,e),e=Yde(e,t),e==null||delete e[Gde(qde(t))]}var Xde=Zde,Kde=Z0;function Jde(e){return Kde(e)?void 0:e}var Qde=Jde,efe=Df,tfe=Lde,nfe=Xde,rfe=$s,ife=Ts,afe=Qde,ofe=NS,sfe=j5,lfe=1,cfe=2,ufe=4,dfe=ofe(function(e,t){var n={};if(e==null)return n;var r=!1;t=efe(t,function(a){return a=rfe(a,e),r||(r=a.length>1),a}),ife(e,sfe(e),n),r&&(n=tfe(n,lfe|cfe|ufe,afe));for(var i=t.length;i--;)nfe(n,t[i]);return n}),ffe=dfe;const L5=nn(ffe);function Yr(){return Yr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yr.apply(null,arguments)}var sg={dotSize:4,noteWidth:120,noteTextOffset:8},hfe=function(e){var t=typeof e;return v.isValidElement(e)||t==="string"||t==="function"||t==="object"},pfe=function(e){var t=typeof e;return t==="string"||t==="function"},ac=function(e){return e.type==="circle"},lg=function(e){return e.type==="dot"},oc=function(e){return e.type==="rect"},mfe=function(e){var t=e.data,n=e.annotations,r=e.getPosition,i=e.getDimensions;return n.reduce(function(a,o){var s=o.offset||0;return[].concat(a,lce(t,o.match).map(function(l){var c=r(l),u=i(l);return(ac(o)||oc(o))&&(u.size=u.size+2*s,u.width=u.width+2*s,u.height=u.height+2*s),Yr({},L5(o,["match","offset"]),c,u,{size:o.size||u.size,datum:l})}))},[])},gfe=function(e,t,n,r){var i=Math.atan2(r-t,n-e);return Wre(Dc(i))},F5=function(e){var t,n,r=e.x,i=e.y,a=e.noteX,o=e.noteY,s=e.noteWidth,l=s===void 0?sg.noteWidth:s,c=e.noteTextOffset,u=c===void 0?sg.noteTextOffset:c;if(Ax(a))t=r+a;else{if(a.abs===void 0)throw new Error("noteX should be either a number or an object containing an 'abs' property");t=a.abs}if(Ax(o))n=i+o;else{if(o.abs===void 0)throw new Error("noteY should be either a number or an object containing an 'abs' property");n=o.abs}var d=r,f=i,h=gfe(r,i,t,n);if(ac(e)){var p=ja(dr(h),e.size/2);d+=p.x,f+=p.y}if(oc(e)){var m=Math.round((h+90)/45)%8;m===0&&(f-=e.height/2),m===1&&(d+=e.width/2,f-=e.height/2),m===2&&(d+=e.width/2),m===3&&(d+=e.width/2,f+=e.height/2),m===4&&(f+=e.height/2),m===5&&(d-=e.width/2,f+=e.height/2),m===6&&(d-=e.width/2),m===7&&(d-=e.width/2,f-=e.height/2)}var g=t,x=t;return(h+90)%360>180?(g-=l,x-=l):x+=l,{points:[[d,f],[t,n],[x,n]],text:[g,n-u],angle:h+90}},B5=function(e){var t=e.data,n=e.annotations,r=e.getPosition,i=e.getDimensions;return v.useMemo(function(){return mfe({data:t,annotations:n,getPosition:r,getDimensions:i})},[t,n,r,i])},vfe=function(e){var t=e.annotations;return v.useMemo(function(){return t.map(function(n){return Yr({},n,{computed:F5(Yr({},n))})})},[t])},bfe=function(e){return v.useMemo(function(){return F5(e)},[e])},yfe=function(e){var t=e.datum,n=e.x,r=e.y,i=e.note,a=Lt(),o=Fn(),s=o.animate,l=o.config,c=Zr({x:n,y:r,config:l,immediate:!s});return typeof i=="function"?v.createElement(i,{x:n,y:r,datum:t}):y.jsxs(y.Fragment,{children:[a.annotations.text.outlineWidth>0&&y.jsx(Ht.text,{x:c.x,y:c.y,style:Yr({},a.annotations.text,{strokeLinejoin:"round",strokeWidth:2*a.annotations.text.outlineWidth,stroke:a.annotations.text.outlineColor}),children:i}),y.jsx(Ht.text,{x:c.x,y:c.y,style:L5(a.annotations.text,["outlineWidth","outlineColor"]),children:i})]})},Fx=function(e){var t=e.points,n=e.isOutline,r=n!==void 0&&n,i=Lt(),a=v.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]),o=Lv(a);if(r&&i.annotations.link.outlineWidth<=0)return null;var s=Yr({},i.annotations.link);return r&&(s.strokeLinecap="square",s.strokeWidth=i.annotations.link.strokeWidth+2*i.annotations.link.outlineWidth,s.stroke=i.annotations.link.outlineColor,s.opacity=i.annotations.link.outlineOpacity),y.jsx(Ht.path,{fill:"none",d:o,style:s})},xfe=function(e){var t=e.x,n=e.y,r=e.size,i=Lt(),a=Fn(),o=a.animate,s=a.config,l=Zr({x:t,y:n,radius:r/2,config:s,immediate:!o});return y.jsxs(y.Fragment,{children:[i.annotations.outline.outlineWidth>0&&y.jsx(Ht.circle,{cx:l.x,cy:l.y,r:l.radius,style:Yr({},i.annotations.outline,{fill:"none",strokeWidth:i.annotations.outline.strokeWidth+2*i.annotations.outline.outlineWidth,stroke:i.annotations.outline.outlineColor,opacity:i.annotations.outline.outlineOpacity})}),y.jsx(Ht.circle,{cx:l.x,cy:l.y,r:l.radius,style:i.annotations.outline})]})},wfe=function(e){var t=e.x,n=e.y,r=e.size,i=r===void 0?sg.dotSize:r,a=Lt(),o=Fn(),s=o.animate,l=o.config,c=Zr({x:t,y:n,radius:i/2,config:l,immediate:!s});return y.jsxs(y.Fragment,{children:[a.annotations.outline.outlineWidth>0&&y.jsx(Ht.circle,{cx:c.x,cy:c.y,r:c.radius,style:Yr({},a.annotations.outline,{fill:"none",strokeWidth:2*a.annotations.outline.outlineWidth,stroke:a.annotations.outline.outlineColor,opacity:a.annotations.outline.outlineOpacity})}),y.jsx(Ht.circle,{cx:c.x,cy:c.y,r:c.radius,style:a.annotations.symbol})]})},_fe=function(e){var t=e.x,n=e.y,r=e.width,i=e.height,a=e.borderRadius,o=a===void 0?6:a,s=Lt(),l=Fn(),c=l.animate,u=l.config,d=Zr({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(Ht.rect,{x:d.x,y:d.y,rx:o,ry:o,width:d.width,height:d.height,style:Yr({},s.annotations.outline,{fill:"none",strokeWidth:s.annotations.outline.strokeWidth+2*s.annotations.outline.outlineWidth,stroke:s.annotations.outline.outlineColor,opacity:s.annotations.outline.outlineOpacity})}),y.jsx(Ht.rect,{x:d.x,y:d.y,rx:o,ry:o,width:d.width,height:d.height,style:s.annotations.outline})]})},Cfe=function(e){var t=e.datum,n=e.x,r=e.y,i=e.note,a=bfe(e);if(!hfe(i))throw new Error("note should be a valid react element");return y.jsxs(y.Fragment,{children:[y.jsx(Fx,{points:a.points,isOutline:!0}),ac(e)&&y.jsx(xfe,{x:n,y:r,size:e.size}),lg(e)&&y.jsx(wfe,{x:n,y:r,size:e.size}),oc(e)&&y.jsx(_fe,{x:n,y:r,width:e.width,height:e.height,borderRadius:e.borderRadius}),y.jsx(Fx,{points:a.points}),y.jsx(yfe,{datum:t,x:a.text[0],y:a.text[1],note:i})]})},Bx=function(e,t){t.forEach(function(n,r){var i=n[0],a=n[1];r===0?e.moveTo(i,a):e.lineTo(i,a)})},Sfe=function(e,t){var n=t.annotations,r=t.theme;n.length!==0&&(e.save(),n.forEach(function(i){if(!pfe(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(),Bx(e,i.computed.points),e.stroke(),e.lineCap="butt"),ac(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()),lg(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()),oc(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(),Bx(e,i.computed.points),e.stroke(),ac(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()),lg(i)&&(e.fillStyle=r.annotations.symbol.fill,e.beginPath(),e.arc(i.x,i.y,i.size/2,0,2*Math.PI),e.fill()),oc(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())},Tfe=function(e,t,n,r,i,a){a>0?(e.moveTo(t+a,n),e.lineTo(t+r-a,n),e.quadraticCurveTo(t+r,n,t+r,n+a),e.lineTo(t+r,n+i-a),e.quadraticCurveTo(t+r,n+i,t+r-a,n+i),e.lineTo(t+a,n+i),e.quadraticCurveTo(t,n+i,t,n+i-a),e.lineTo(t,n+a),e.quadraticCurveTo(t,n,t+a,n),e.closePath()):e.rect(t,n,r,i)};function kt(){return kt=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},kt.apply(null,arguments)}function ra(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 zx,$fe=function(e){var t=e.bars,n=e.annotations,r=B5({data:t,annotations:n,getPosition:function(i){return{x:i.x+i.width/2,y:i.y+i.height/2}},getDimensions:function(i){var a=i.height,o=i.width;return{width:o,height:a,size:Math.max(o,a)}}});return y.jsx(y.Fragment,{children:r.map(function(i,a){return y.jsx(Cfe,kt({},i),a)})})},kfe=function(e){var t=e.width,n=e.height,r=e.legends,i=e.toggleSerie;return y.jsx(y.Fragment,{children:r.map(function(a,o){var s,l=a[0],c=a[1];return y.jsx(Vv,kt({},l,{containerWidth:t,containerHeight:n,data:(s=l.data)!=null?s:c,toggleSerie:l.toggleSerie&&l.dataFrom==="keys"?i:void 0}),o)})})},Mfe=["data"],Efe=function(e){var t,n=e.bar,r=n.data,i=ra(n,Mfe),a=e.style,o=a.borderColor,s=a.color,l=a.height,c=a.labelColor,u=a.labelOpacity,d=a.labelX,f=a.labelY,h=a.transform,p=a.width,m=a.textAnchor,g=e.borderRadius,x=e.borderWidth,_=e.label,w=e.shouldRenderLabel,C=e.isInteractive,b=e.onClick,S=e.onMouseEnter,M=e.onMouseLeave,$=e.tooltip,k=e.isFocusable,D=e.ariaLabel,T=e.ariaLabelledBy,E=e.ariaDescribedBy,R=e.ariaDisabled,j=e.ariaHidden,O=Lt(),A=Ti(),I=A.showTooltipFromEvent,F=A.showTooltipAt,z=A.hideTooltip,L=v.useMemo(function(){return function(){return v.createElement($,kt({},i,r))}},[$,i,r]),H=v.useCallback(function(ee){b==null||b(kt({color:i.color},r),ee)},[i,r,b]),Y=v.useCallback(function(ee){return I(L(),ee)},[I,L]),q=v.useCallback(function(ee){S==null||S(r,ee),I(L(),ee)},[r,S,I,L]),Z=v.useCallback(function(ee){M==null||M(r,ee),z()},[r,z,M]),X=v.useCallback(function(){F(L(),[i.absX+i.width/2,i.absY])},[F,L,i]),J=v.useCallback(function(){z()},[z]);return y.jsxs(Ht.g,{transform:h,children:[y.jsx(Ht.rect,{width:Ki(p,function(ee){return Math.max(ee,0)}),height:Ki(l,function(ee){return Math.max(ee,0)}),rx:g,ry:g,fill:(t=r.fill)!=null?t:s,strokeWidth:x,stroke:o,focusable:k,tabIndex:k?0:void 0,"aria-label":D?D(r):void 0,"aria-labelledby":T?T(r):void 0,"aria-describedby":E?E(r):void 0,"aria-disabled":R?R(r):void 0,"aria-hidden":j?j(r):void 0,onMouseEnter:C?q:void 0,onMouseMove:C?Y:void 0,onMouseLeave:C?Z:void 0,onClick:C?H:void 0,onFocus:C&&k?X:void 0,onBlur:C&&k?J:void 0,"data-testid":"bar.item."+r.id+"."+r.index}),w&&y.jsx(Os,{x:d,y:f,textAnchor:m,dominantBaseline:"central",fillOpacity:u,style:kt({},O.labels.text,{pointerEvents:"none",fill:c}),children:_})]})},Ofe=["color","label"],Afe=function(e){var t=e.color,n=e.label,r=ra(e,Ofe);return y.jsx(nv,{id:n,value:r.formattedValue,enableChip:!0,color:t})},Ut={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:Afe,tooltipLabel:function(e){return e.id+" - "+e.indexValue},legends:[],initialHiddenIds:[],annotations:[],enableTotals:!1,totalsOffset:10},Wt=kt({},Ut,{layers:["grid","axes","bars","totals","markers","legends","annotations"],axisTop:null,axisRight:null,axisBottom:{},axisLeft:{},barComponent:Efe,defs:[],fill:[],markers:[],animate:!0,animateOnMount:!1,motionConfig:"default",role:"img",isFocusable:!1}),un=kt({},Ut,{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,a=n.width,o=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,m=t.labelY,g=t.textAnchor;e.fillStyle=r,u>0&&(e.strokeStyle=l,e.lineWidth=u),e.beginPath(),Tfe(e,o,s,a,i,Math.min(c,i)),e.fill(),u>0&&e.stroke(),f&&(e.textBaseline="middle",e.textAlign=g==="middle"?"center":g,Ga(e,h,d,o+p,s+m))},pixelRatio:typeof window<"u"&&(zx=window.devicePixelRatio)!=null?zx:1}),z5=function(e,t,n,r,i,a){return ic(r,{all:e.map(t),min:0,max:0},i,a).padding(n)},W5=function(e,t){return e.map(function(n){return kt({},t.reduce(function(r,i){return r[i]=null,r},{}),n)})},_h=function(e){return Object.keys(e).reduce(function(t,n){return e[n]&&(t[n]=e[n]),t},{})},Ch=function(e){return[e,Number(e)]};function U5(e,t,n,r){return e===void 0&&(e=Ut.layout),n===void 0&&(n=Ut.labelPosition),r===void 0&&(r=Ut.labelOffset),function(i,a){var o=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+o,labelY:a/2,textAnchor:n==="middle"?"middle":t?"end":"start"}}var l=a/2;return n==="start"?l=t?0:a:n==="end"&&(l=t?a:0),{labelX:i/2,labelY:l-o,textAnchor:"middle"}}}var Rfe=["layout","width","height","padding","innerPadding","valueScale","indexScale","hiddenIds"],Zv=function(e,t){return e>t},H5=function(e,t){return e<t},V5=function(e,t){return Array.from(" ".repeat(t-e),function(n,r){return e+r})},Dfe=function(e){return Zv(e,0)?0:e},jfe=function(e,t,n,r){var i=e.data,a=e.formatValue,o=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,m=n?H5:Zv,g=i.map(_h),x=[];return d.forEach(function(_,w){return V5(0,f.domain().length).forEach(function(C){var b,S,M,$=Ch(i[C][_]),k=$[0],D=$[1],T=s(i[C]),E=((b=f(T))!=null?b:0)+t*w+u*w,R=m(S=D,0)?(M=h(S))!=null?M:0:r,j=function(A,I){var F;return m(A,0)?r-I:((F=h(A))!=null?F:0)-r}(D,R),O={id:_,value:k===null?k:D,formattedValue:a(D),hidden:!1,index:C,indexValue:T,data:g[C]};x.push({key:_+"."+O.indexValue,index:x.length,data:O,x:E,y:R,absX:p.left+E,absY:p.top+R,width:t,height:j,color:o(O),label:l(O)})})}),x},Ife=function(e,t,n,r){var i=e.data,a=e.formatValue,o=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,m=n?H5:Zv,g=i.map(_h),x=[];return c.forEach(function(_,w){return V5(0,h.domain().length).forEach(function(C){var b,S,M,$=Ch(i[C][_]),k=$[0],D=$[1],T=o(i[C]),E=m(S=D,0)?r:(M=f(S))!=null?M:0,R=((b=h(T))!=null?b:0)+t*w+d*w,j=function(A,I){var F;return m(A,0)?((F=f(A))!=null?F:0)-r:r-I}(D,E),O={id:_,value:k===null?k:D,formattedValue:a(D),hidden:!1,index:C,indexValue:T,data:g[C]};x.push({key:_+"."+O.indexValue,index:x.length,data:O,x:E,y:R,absX:p.left+E,absY:p.top+R,width:j,height:t,color:s(O),label:l(O)})})}),x},Nfe=function(e){var t,n,r,i=e.layout,a=e.width,o=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,m=ra(e,Rfe),g=m.keys.filter(function(I){return!p.includes(I)}),x=W5(m.data,g),_=i==="vertical"?["y","x",a]:["x","y",o],w=_[0],C=_[1],b=_[2],S=z5(x,m.getIndex,l,f,b,C),M=d.min==="auto"?Dfe:function(I){return I},$=x.reduce(function(I,F){return[].concat(I,g.map(function(z){return F[z]}))},[]).filter(Boolean),k=M(Math.min.apply(Math,$)),D=(r=Math.max.apply(Math,$),isFinite(r)?r:0),T=ic(d,{all:$,min:k,max:D},w==="x"?a:o,w),E=i==="vertical"?[S,T]:[T,S],R=E[0],j=E[1],O=(S.bandwidth()-u*(g.length-1))/g.length,A=[kt({},m,{data:x,keys:g,innerPadding:u,xScale:R,yScale:j}),O,(t=d.reverse)!=null&&t,(n=T(0))!=null?n:0];return{xScale:R,yScale:j,bars:O>0?i==="vertical"?jfe.apply(void 0,A):Ife.apply(void 0,A):[]}},Pfe=["data","layout","width","height","padding","valueScale","indexScale","hiddenIds"],q5=function(e){var t;return e.some(Array.isArray)?q5((t=[]).concat.apply(t,e)):e},Lfe=function(e,t,n){var r=e.formatValue,i=e.getColor,a=e.getIndex,o=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,m){var g,x,_=h[m],w=(g=c(a(_.data)))!=null?g:0,C=((x=function(D){return u(D[n?0:1])}(_))!=null?x:0)+.5*s,b=function(D,T){var E;return((E=u(D[n?1:0]))!=null?E:0)-T}(_,C)-s,S=Ch(_.data[h.key]),M=S[0],$=S[1],k={id:h.key,value:M===null?M:$,formattedValue:r($),hidden:!1,index:m,indexValue:p,data:_h(_.data)};f.push({key:h.key+"."+p,index:f.length,data:k,x:w,y:C,absX:d.left+w,absY:d.top+C,width:t,height:b,color:i(k),label:o(k)})})}),f},Ffe=function(e,t,n){var r=e.formatValue,i=e.getColor,a=e.getIndex,o=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,m){var g,x,_=h[m],w=(g=u(a(_.data)))!=null?g:0,C=((x=function(D){return c(D[n?1:0])}(_))!=null?x:0)+.5*s,b=function(D,T){var E;return((E=c(D[n?0:1]))!=null?E:0)-T}(_,C)-s,S=Ch(_.data[h.key]),M=S[0],$=S[1],k={id:h.key,value:M===null?M:$,formattedValue:r($),hidden:!1,index:m,indexValue:p,data:_h(_.data)};f.push({key:h.key+"."+p,index:f.length,data:k,x:C,y:w,absX:d.left+C,absY:d.top+w,width:b,height:t,color:i(k),label:o(k)})})}),f},Bfe=function(e){var t,n,r=e.data,i=e.layout,a=e.width,o=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=ra(e,Pfe),p=h.keys.filter(function(O){return!f.includes(O)}),m=tJ().keys(p).offset(nJ)(W5(r,p)),g=i==="vertical"?["y","x",a]:["x","y",o],x=g[0],_=g[1],w=g[2],C=z5(r,h.getIndex,l,u,w,_),b=(n=q5(m),c.type==="log"?n.filter(function(O){return O!==0}):n),S=Math.min.apply(Math,b),M=Math.max.apply(Math,b),$=ic(c,{all:b,min:S,max:M},x==="x"?a:o,x),k=i==="vertical"?[C,$]:[$,C],D=k[0],T=k[1],E=h.innerPadding>0?h.innerPadding:0,R=C.bandwidth(),j=[kt({},h,{innerPadding:E,stackedData:m,xScale:D,yScale:T}),R,(t=c.reverse)!=null&&t];return{xScale:D,yScale:T,bars:R>0?i==="vertical"?Lfe.apply(void 0,j):Ffe.apply(void 0,j):[]}},zfe=function(e){var t=e.bars,n=e.direction,r=e.from,i=e.groupMode,a=e.layout,o=e.legendLabel,s=e.reverse,l=QS(o??(r==="indexes"?"indexValue":"id"));return r==="indexes"?function(c,u,d){var f=ig(c.map(function(h){var p,m;return{id:(p=h.data.indexValue)!=null?p:"",label:d(h.data),hidden:h.data.hidden,color:(m=h.color)!=null?m:"#000"}}),function(h){return h.id});return u==="horizontal"&&f.reverse(),f}(t,a,l):function(c,u,d,f,h,p){var m=ig(c.map(function(g){var x;return{id:g.data.id,label:p(g.data),hidden:g.data.hidden,color:(x=g.color)!=null?x:"#000"}}),function(g){return g.id});return(u==="vertical"&&f==="stacked"&&d==="column"&&h!==!0||u==="horizontal"&&f==="stacked"&&h===!0)&&m.reverse(),m}(t,a,n,i,s,l)},Wx=function(e,t,n){var r=e.get(t)||0;e.set(t,r+n)},Wfe=function(e,t,n){var r=e.get(t)||0;e.set(t,r+(n>0?n:0))},Ufe=function(e,t,n){var r=e.get(t)||0;e.set(t,Math.max(r,Number(n)))},Hfe=function(e,t){var n=e.get(t)||0;e.set(t,n+1)},Y5=function(e){var t,n=e.indexBy,r=n===void 0?Ut.indexBy:n,i=e.keys,a=i===void 0?Ut.keys:i,o=e.label,s=o===void 0?Ut.label:o,l=e.tooltipLabel,c=l===void 0?Ut.tooltipLabel:l,u=e.valueFormat,d=e.colors,f=d===void 0?Ut.colors:d,h=e.colorBy,p=h===void 0?Ut.colorBy:h,m=e.borderColor,g=m===void 0?Ut.borderColor:m,x=e.labelTextColor,_=x===void 0?Ut.labelTextColor:x,w=e.groupMode,C=w===void 0?Ut.groupMode:w,b=e.layout,S=b===void 0?Ut.layout:b,M=e.data,$=e.margin,k=e.width,D=e.height,T=e.padding,E=T===void 0?Ut.padding:T,R=e.innerPadding,j=R===void 0?Ut.innerPadding:R,O=e.valueScale,A=O===void 0?Ut.valueScale:O,I=e.indexScale,F=I===void 0?Ut.indexScale:I,z=e.initialHiddenIds,L=z===void 0?Ut.initialHiddenIds:z,H=e.enableLabel,Y=H===void 0?Ut.enableLabel:H,q=e.labelSkipWidth,Z=q===void 0?Ut.labelSkipWidth:q,X=e.labelSkipHeight,J=X===void 0?Ut.labelSkipHeight:X,ee=e.legends,W=ee===void 0?Ut.legends:ee,P=e.legendLabel,B=e.totalsOffset,V=B===void 0?Ut.totalsOffset:B,N=v.useState(L??[]),te=N[0],K=N[1],G=v.useCallback(function(Te){K(function(Re){return Re.indexOf(Te)>-1?Re.filter(function(it){return it!==Te}):[].concat(Re,[Te])})},[]),oe=pi(r),ne=pi(s),re=pi(c),ae=os(u),le=Lt(),ye=Wv(f,p),ge=pr(g,le),be=pr(_,le),Me=(C==="grouped"?Nfe:Bfe)({layout:S,data:M,getIndex:oe,keys:a,width:k,height:D,getColor:ye,padding:E,innerPadding:j,valueScale:A,indexScale:F,hiddenIds:te,formatValue:ae,getTooltipLabel:re,margin:$}),ce=Me.bars,de=Me.xScale,Ce=Me.yScale,Ge=v.useMemo(function(){return ce.filter(function(Te){return Te.data.value!==null}).map(function(Te,Re){return kt({},Te,{index:Re})})},[ce]),we=v.useCallback(function(Te){var Re=Te.width,it=Te.height;return!!Y&&!(Z>0&&Re<Z)&&!(J>0&&it<J)},[Y,Z,J]),ve=v.useMemo(function(){return a.map(function(Te){var Re=ce.find(function(it){return it.data.id===Te});return kt({},Re,{data:kt({id:Te},Re==null?void 0:Re.data,{hidden:te.includes(Te)})})})},[te,a,ce]),Pe=(t=A.reverse)!=null&&t,Ze=v.useMemo(function(){return W.map(function(Te){return[Te,zfe({bars:Te.dataFrom==="keys"?ve:ce,direction:Te.direction,from:Te.dataFrom,groupMode:C,layout:S,legendLabel:P,reverse:Pe})]})},[W,ve,ce,C,S,P,Pe]),_t=v.useMemo(function(){return function(Te,Re,it,Ue,mt,ct,At){Ue===void 0&&(Ue=Ut.layout),mt===void 0&&(mt=Ut.groupMode);var Ke=[];if(Te.length===0)return Ke;var Le=new Map,Ve=Te[0].width,et=Te[0].height;if(mt==="stacked"){var Fe=new Map;Te.forEach(function(at){var Ne=at.data,Ee=Ne.indexValue,Ye=Ne.value;Wx(Le,Ee,Number(Ye)),Wfe(Fe,Ee,Number(Ye))}),Fe.forEach(function(at,Ne){var Ee,Ye,xt,nt=Le.get(Ne)||0;Ue==="vertical"?(Ee=Re(Ne),Ye=it(at),xt=it(at/2)):(Ee=Re(at),Ye=it(Ne),xt=Re(at/2)),Ee+=Ue==="vertical"?Ve/2:ct,Ye+=Ue==="vertical"?-ct:et/2,Ke.push({key:"total_"+Ne,x:Ee,y:Ye,value:nt,formattedValue:At(nt),animationOffset:xt})})}else if(mt==="grouped"){var tt=new Map,vt=new Map;Te.forEach(function(at){var Ne=at.data,Ee=Ne.indexValue,Ye=Ne.value;Wx(Le,Ee,Number(Ye)),Ufe(tt,Ee,Number(Ye)),Hfe(vt,Ee)}),tt.forEach(function(at,Ne){var Ee,Ye,xt,nt=Le.get(Ne)||0,bt=vt.get(Ne);Ue==="vertical"?(Ee=Re(Ne),Ye=it(at),xt=it(at/2)):(Ee=Re(at),Ye=it(Ne),xt=Re(at/2)),Ee+=Ue==="vertical"?bt*Ve/2:ct,Ye+=Ue==="vertical"?-ct:bt*et/2,Ke.push({key:"total_"+Ne,x:Ee,y:Ye,value:nt,formattedValue:At(nt),animationOffset:xt})})}return Ke}(ce,de,Ce,S,C,V,ae)},[ce,de,Ce,S,C,V,ae]);return{bars:ce,barsWithValue:Ge,xScale:de,yScale:Ce,getIndex:oe,getLabel:ne,getTooltipLabel:re,formatValue:ae,getColor:ye,getBorderColor:ge,getLabelColor:be,shouldRenderBarLabel:we,hiddenIds:te,toggleSerie:G,legendsWithData:Ze,barTotals:_t}},Vfe=function(e){var t=e.data,n=e.springConfig,r=e.animate,i=e.layout,a=i===void 0?Wt.layout:i,o=Lt();return Ka(t,{keys:function(s){return s.key},from:function(s){return{x:a==="vertical"?s.x:s.animationOffset,y:a==="vertical"?s.animationOffset:s.y,labelOpacity:0}},enter:function(s){return{x:s.x,y:s.y,labelOpacity:1}},update:function(s){return{x:s.x,y:s.y,labelOpacity:1}},leave:function(s){return{x:a==="vertical"?s.x:s.animationOffset,y:a==="vertical"?s.animationOffset:s.y,labelOpacity:0}},config:n,immediate:!r,initial:r?void 0:null})(function(s,l){return y.jsx(Ht.text,{x:s.x,y:s.y,fillOpacity:s.labelOpacity,style:kt({},o.labels.text,{pointerEvents:"none"}),fontWeight:"bold",fontSize:o.labels.text.fontSize,fontFamily:o.labels.text.fontFamily,textAnchor:a==="vertical"?"middle":"start",alignmentBaseline:a==="vertical"?"alphabetic":"middle",children:l.formattedValue},l.key)})},qfe=["isInteractive","animate","motionConfig","theme","renderWrapper"],Yfe=function(e){var t,n=e.data,r=e.indexBy,i=e.keys,a=e.margin,o=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,m=e.axisRight,g=e.axisBottom,x=g===void 0?Wt.axisBottom:g,_=e.axisLeft,w=_===void 0?Wt.axisLeft:_,C=e.enableGridX,b=C===void 0?Wt.enableGridX:C,S=e.enableGridY,M=S===void 0?Wt.enableGridY:S,$=e.gridXValues,k=e.gridYValues,D=e.layers,T=D===void 0?Wt.layers:D,E=e.barComponent,R=E===void 0?Wt.barComponent:E,j=e.enableLabel,O=j===void 0?Wt.enableLabel:j,A=e.label,I=e.labelSkipWidth,F=I===void 0?Wt.labelSkipWidth:I,z=e.labelSkipHeight,L=z===void 0?Wt.labelSkipHeight:z,H=e.labelTextColor,Y=e.labelPosition,q=Y===void 0?Wt.labelPosition:Y,Z=e.labelOffset,X=Z===void 0?Wt.labelOffset:Z,J=e.markers,ee=J===void 0?Wt.markers:J,W=e.colorBy,P=e.colors,B=e.defs,V=B===void 0?Wt.defs:B,N=e.fill,te=N===void 0?Wt.fill:N,K=e.borderRadius,G=K===void 0?Wt.borderRadius:K,oe=e.borderWidth,ne=oe===void 0?Wt.borderWidth:oe,re=e.borderColor,ae=e.annotations,le=ae===void 0?Wt.annotations:ae,ye=e.legendLabel,ge=e.tooltipLabel,be=e.valueFormat,Me=e.isInteractive,ce=Me===void 0?Wt.isInteractive:Me,de=e.tooltip,Ce=de===void 0?Wt.tooltip:de,Ge=e.onClick,we=e.onMouseEnter,ve=e.onMouseLeave,Pe=e.legends,Ze=e.role,_t=Ze===void 0?Wt.role:Ze,Te=e.ariaLabel,Re=e.ariaLabelledBy,it=e.ariaDescribedBy,Ue=e.isFocusable,mt=Ue===void 0?Wt.isFocusable:Ue,ct=e.barAriaLabel,At=e.barAriaLabelledBy,Ke=e.barAriaDescribedBy,Le=e.barAriaHidden,Ve=e.barAriaDisabled,et=e.initialHiddenIds,Fe=e.enableTotals,tt=Fe===void 0?Wt.enableTotals:Fe,vt=e.totalsOffset,at=vt===void 0?Wt.totalsOffset:vt,Ne=e.forwardedRef,Ee=Fn(),Ye=Ee.animate,xt=Ee.config,nt=oo(o,s,a),bt=nt.outerWidth,Jt=nt.outerHeight,Ft=nt.margin,zt=nt.innerWidth,fn=nt.innerHeight,qt=Y5({indexBy:r,label:A,tooltipLabel:ge,valueFormat:be,colors:P,colorBy:W,borderColor:re,labelTextColor:H,groupMode:l,layout:c,data:n,keys:i,margin:Ft,width:zt,height:fn,padding:f,innerPadding:h,valueScale:u,indexScale:d,enableLabel:O,labelSkipWidth:F,labelSkipHeight:L,legends:Pe,legendLabel:ye,initialHiddenIds:et,totalsOffset:at}),$e=qt.bars,Je=qt.barsWithValue,St=qt.xScale,an=qt.yScale,Yt=qt.getLabel,Be=qt.getTooltipLabel,ze=qt.getBorderColor,ft=qt.getLabelColor,Rt=qt.shouldRenderBarLabel,Tt=qt.toggleSerie,Qe=qt.legendsWithData,$t=qt.barTotals,vr=qt.getColor,ln=U5(c,(t=u==null?void 0:u.reverse)!=null&&t,q,X),cn=Ka(Je,{keys:function(Ae){return Ae.key},from:function(Ae){return kt({borderColor:ze(Ae),color:Ae.color,height:0,labelColor:ft(Ae),labelOpacity:0},ln(Ae.width,Ae.height),{transform:"translate("+Ae.x+", "+(Ae.y+Ae.height)+")",width:Ae.width},c==="vertical"?{}:{height:Ae.height,transform:"translate("+Ae.x+", "+Ae.y+")",width:0})},enter:function(Ae){return kt({borderColor:ze(Ae),color:Ae.color,height:Ae.height,labelColor:ft(Ae),labelOpacity:1},ln(Ae.width,Ae.height),{transform:"translate("+Ae.x+", "+Ae.y+")",width:Ae.width})},update:function(Ae){return kt({borderColor:ze(Ae),color:Ae.color,height:Ae.height,labelColor:ft(Ae),labelOpacity:1},ln(Ae.width,Ae.height),{transform:"translate("+Ae.x+", "+Ae.y+")",width:Ae.width})},leave:function(Ae){return kt({borderColor:ze(Ae),color:Ae.color,height:0,labelColor:ft(Ae),labelOpacity:0},ln(Ae.width,Ae.height),{labelY:0,transform:"translate("+Ae.x+", "+(Ae.y+Ae.height)+")",width:Ae.width},c==="vertical"?{}:kt({},ln(Ae.width,Ae.height),{labelX:0,height:Ae.height,transform:"translate("+Ae.x+", "+Ae.y+")",width:0}))},config:xt,immediate:!Ye,initial:Ye?void 0:null}),An=v.useMemo(function(){return{borderRadius:G,borderWidth:ne,enableLabel:O,isInteractive:ce,labelSkipWidth:F,labelSkipHeight:L,onClick:Ge,onMouseEnter:we,onMouseLeave:ve,getTooltipLabel:Be,tooltip:Ce,isFocusable:mt,ariaLabel:ct,ariaLabelledBy:At,ariaDescribedBy:Ke,ariaHidden:Le,ariaDisabled:Ve}},[G,ne,O,Be,ce,L,F,Ge,we,ve,Ce,mt,ct,At,Ke,Le,Ve]),ia=Bv(V,$e,te,{dataKey:"data",targetKey:"data.fill"}),Ct={annotations:null,axes:null,bars:null,grid:null,legends:null,markers:null,totals:null};T.includes("annotations")&&(Ct.annotations=y.jsx($fe,{bars:$e,annotations:le},"annotations")),T.includes("axes")&&(Ct.axes=y.jsx(T5,{xScale:St,yScale:an,width:zt,height:fn,top:p,right:m,bottom:x,left:w},"axes")),T.includes("bars")&&(Ct.bars=y.jsx(v.Fragment,{children:cn(function(Ae,Er){return v.createElement(R,kt({},An,{bar:Er,style:Ae,shouldRenderLabel:Rt(Er),label:Yt(Er.data)}))})},"bars")),T.includes("grid")&&(Ct.grid=y.jsx($5,{width:zt,height:fn,xScale:b?St:null,yScale:M?an:null,xValues:$,yValues:k},"grid")),T.includes("legends")&&(Ct.legends=y.jsx(kfe,{width:zt,height:fn,legends:Qe,toggleSerie:Tt},"legends")),T.includes("markers")&&(Ct.markers=y.jsx(XS,{markers:ee,width:zt,height:fn,xScale:St,yScale:an},"markers")),T.includes("totals")&&tt&&(Ct.totals=y.jsx(Vfe,{data:$t,springConfig:xt,animate:Ye,layout:c},"totals"));var aa=kt({},An,{margin:Ft,width:o,height:s,innerWidth:zt,innerHeight:fn,bars:$e,legendData:Qe,enableLabel:O,xScale:St,yScale:an,tooltip:Ce,getTooltipLabel:Be,onClick:Ge,onMouseEnter:we,onMouseLeave:ve,getColor:vr});return y.jsx(yh,{width:bt,height:Jt,margin:Ft,defs:ia,role:_t,ariaLabel:Te,ariaLabelledBy:Re,ariaDescribedBy:it,isFocusable:mt,ref:Ne,children:T.map(function(Ae,Er){var oa;return typeof Ae=="function"?y.jsx(v.Fragment,{children:v.createElement(Ae,aa)},Er):(oa=Ct==null?void 0:Ct[Ae])!=null?oa:null})})},Gfe=v.forwardRef(function(e,t){var n=e.isInteractive,r=n===void 0?Wt.isInteractive:n,i=e.animate,a=i===void 0?Wt.animate:i,o=e.motionConfig,s=o===void 0?Wt.motionConfig:o,l=e.theme,c=e.renderWrapper,u=ra(e,qfe);return y.jsx(io,{animate:a,isInteractive:r,motionConfig:s,renderWrapper:c,theme:l,children:y.jsx(Yfe,kt({},u,{isInteractive:r,forwardedRef:t}))})}),Zfe=["isInteractive","renderWrapper","theme"],Pp=function(e,t,n,r){return e.find(function(i){return t5(i.x+t.left,i.y+t.top,i.width,i.height,n,r)})},Xfe=function(e){var t,n=e.data,r=e.indexBy,i=e.keys,a=e.margin,o=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,m=e.axisRight,g=e.axisBottom,x=g===void 0?un.axisBottom:g,_=e.axisLeft,w=_===void 0?un.axisLeft:_,C=e.enableGridX,b=C===void 0?un.enableGridX:C,S=e.enableGridY,M=S===void 0?un.enableGridY:S,$=e.gridXValues,k=e.gridYValues,D=e.labelPosition,T=D===void 0?un.labelPosition:D,E=e.labelOffset,R=E===void 0?un.labelOffset:E,j=e.layers,O=j===void 0?un.layers:j,A=e.renderBar,I=A===void 0?un.renderBar:A,F=e.enableLabel,z=F===void 0?un.enableLabel:F,L=e.label,H=e.labelSkipWidth,Y=H===void 0?un.labelSkipWidth:H,q=e.labelSkipHeight,Z=q===void 0?un.labelSkipHeight:q,X=e.labelTextColor,J=e.colorBy,ee=e.colors,W=e.borderRadius,P=W===void 0?un.borderRadius:W,B=e.borderWidth,V=B===void 0?un.borderWidth:B,N=e.borderColor,te=e.annotations,K=te===void 0?un.annotations:te,G=e.legendLabel,oe=e.tooltipLabel,ne=e.valueFormat,re=e.isInteractive,ae=re===void 0?un.isInteractive:re,le=e.tooltip,ye=le===void 0?un.tooltip:le,ge=e.onClick,be=e.onMouseEnter,Me=e.onMouseLeave,ce=e.legends,de=e.pixelRatio,Ce=de===void 0?un.pixelRatio:de,Ge=e.role,we=e.forwardedRef,ve=e.enableTotals,Pe=ve===void 0?un.enableTotals:ve,Ze=e.totalsOffset,_t=Ze===void 0?un.totalsOffset:Ze,Te=v.useRef(null),Re=Lt(),it=oo(o,s,a),Ue=it.margin,mt=it.innerWidth,ct=it.innerHeight,At=it.outerWidth,Ke=it.outerHeight,Le=Y5({indexBy:r,label:L,tooltipLabel:oe,valueFormat:ne,colors:ee,colorBy:J,borderColor:N,labelTextColor:X,groupMode:l,layout:c,data:n,keys:i,margin:Ue,width:mt,height:ct,padding:f,innerPadding:h,valueScale:u,indexScale:d,enableLabel:z,labelSkipWidth:Y,labelSkipHeight:Z,legends:ce,legendLabel:G,totalsOffset:_t}),Ve=Le.bars,et=Le.barsWithValue,Fe=Le.xScale,tt=Le.yScale,vt=Le.getLabel,at=Le.getTooltipLabel,Ne=Le.getBorderColor,Ee=Le.getLabelColor,Ye=Le.shouldRenderBarLabel,xt=Le.legendsWithData,nt=Le.barTotals,bt=Le.getColor,Jt=Ti(),Ft=Jt.showTooltipFromEvent,zt=Jt.hideTooltip,fn=vfe({annotations:B5({data:Ve,annotations:K,getPosition:function(Be){return{x:Be.x,y:Be.y}},getDimensions:function(Be){var ze=Be.width,ft=Be.height;return{width:ze,height:ft,size:Math.max(ze,ft)}}})}),qt=v.useMemo(function(){return{borderRadius:P,borderWidth:V,isInteractive:ae,isFocusable:!1,labelSkipWidth:Y,labelSkipHeight:Z,margin:Ue,width:o,height:s,innerWidth:mt,innerHeight:ct,bars:Ve,legendData:xt,enableLabel:z,xScale:Fe,yScale:tt,tooltip:ye,getTooltipLabel:at,onClick:ge,onMouseEnter:be,onMouseLeave:Me,getColor:bt}},[P,V,ae,Y,Z,Ue,o,s,mt,ct,Ve,xt,z,Fe,tt,ye,at,ge,be,Me,bt]),$e=os(ne),Je=U5(c,(t=u==null?void 0:u.reverse)!=null&&t,T,R);v.useEffect(function(){if(Te.current){Te.current.width=At*Ce,Te.current.height=Ke*Ce;var Be=Te.current.getContext("2d");Be.scale(Ce,Ce),Be.fillStyle=Re.background,Be.fillRect(0,0,At,Ke),Be.translate(Ue.left,Ue.top),O.forEach(function(ze){ze==="grid"?typeof Re.grid.line.strokeWidth=="number"&&Re.grid.line.strokeWidth>0&&(Be.lineWidth=Re.grid.line.strokeWidth,Be.strokeStyle=Re.grid.line.stroke,b&&Cd(Be,{width:mt,height:ct,scale:Fe,axis:"x",values:$}),M&&Cd(Be,{width:mt,height:ct,scale:tt,axis:"y",values:k})):ze==="axes"?k5(Be,{xScale:Fe,yScale:tt,width:mt,height:ct,top:p,right:m,bottom:x,left:w,theme:Re}):ze==="bars"?(Ya(Be,Re.text),et.forEach(function(ft){I(Be,kt({bar:ft,borderColor:Ne(ft),borderRadius:P,borderWidth:V,label:vt(ft.data),shouldRenderLabel:Ye(ft),labelStyle:kt({},Re.labels.text,{fill:Ee(ft)})},Je(ft.width,ft.height)))})):ze==="legends"?xt.forEach(function(ft){var Rt=ft[0],Tt=ft[1];qv(Be,kt({},Rt,{data:Tt,containerWidth:mt,containerHeight:ct,theme:Re}))}):ze==="annotations"?Sfe(Be,{annotations:fn,theme:Re}):ze==="totals"&&Pe?function(ft,Rt,Tt,Qe){Qe===void 0&&(Qe=un.layout),Ya(ft,Tt.labels.text),ft.textBaseline=Qe==="vertical"?"alphabetic":"middle",ft.textAlign=Qe==="vertical"?"center":"start",Rt.forEach(function($t){Ga(ft,Tt.labels.text,$t.formattedValue,$t.x,$t.y)})}(Be,nt,Re,c):typeof ze=="function"&&ze(Be,qt)}),Be.save()}},[x,w,m,p,et,P,V,fn,b,M,Ne,vt,Ee,$,k,l,s,ct,mt,qt,O,c,xt,Ue.left,Ue.top,Ke,At,Ce,I,Fe,tt,Ye,Re,o,nt,Pe,$e,Je]);var St=v.useCallback(function(Be){if(Ve&&Te.current){var ze=Bo(Te.current,Be),ft=ze[0],Rt=ze[1],Tt=Pp(Ve,Ue,ft,Rt);Tt!==void 0?(Ft(v.createElement(ye,kt({},Tt.data,{color:Tt.color,label:Tt.label,value:Number(Tt.data.value)})),Be),Be.type==="mouseenter"&&(be==null||be(Tt.data,Be))):zt()}},[zt,Ue,be,Ve,Ft,ye]),an=v.useCallback(function(Be){if(Ve&&Te.current){zt();var ze=Bo(Te.current,Be),ft=ze[0],Rt=ze[1],Tt=Pp(Ve,Ue,ft,Rt);Tt&&(Me==null||Me(Tt.data,Be))}},[zt,Ue,Me,Ve]),Yt=v.useCallback(function(Be){if(Ve&&Te.current){var ze=Bo(Te.current,Be),ft=ze[0],Rt=ze[1],Tt=Pp(Ve,Ue,ft,Rt);Tt!==void 0&&(ge==null||ge(kt({},Tt.data,{color:Tt.color}),Be))}},[Ue,ge,Ve]);return y.jsx("canvas",{ref:zv(Te,we),width:At*Ce,height:Ke*Ce,style:{width:At,height:Ke,cursor:ae?"auto":"normal"},onMouseEnter:ae?St:void 0,onMouseMove:ae?St:void 0,onMouseLeave:ae?an:void 0,onClick:ae?Yt:void 0,role:Ge})},Kfe=v.forwardRef(function(e,t){var n=e.isInteractive,r=e.renderWrapper,i=e.theme,a=ra(e,Zfe);return y.jsx(io,{isInteractive:n,renderWrapper:r,theme:i,animate:!1,children:y.jsx(Xfe,kt({},a,{isInteractive:n,forwardedRef:t}))})}),Jfe=["defaultWidth","defaultHeight","onResize","debounceResize"],Qfe=v.forwardRef(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,a=e.debounceResize,o=ra(e,Jfe);return y.jsx(ao,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:a,children:function(s){var l=s.width,c=s.height;return y.jsx(Gfe,kt({},o,{width:l,height:c,ref:t}))}})}),ehe=["defaultWidth","defaultHeight","onResize","debounceResize"];v.forwardRef(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,a=e.debounceResize,o=ra(e,ehe);return y.jsx(ao,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:a,children:function(s){var l=s.width,c=s.height;return y.jsx(Kfe,kt({},o,{width:l,height:c,ref:t}))}})});exports.AbstractModalHeader=Fg;exports.Alert=T0;exports.ApprovalState=vO;exports.AuthContext=Wd;exports.Backdrop=sC;exports.BaseModal=p_;exports.BootstrapModalManager=m_;exports.Button=wg;exports.Col=_g;exports.ConfirmContext=N_;exports.ContextButton=tf;exports.CustomSelectInput=r3;exports.DelegationContext=G_;exports.Documents=EF;exports.Dropdown=o0;exports.Dropdown$1=Yo;exports.DropdownDivider=gm;exports.DropdownItem=Ca;exports.DropdownToggle=a0;exports.ENTERED=Ni;exports.ENTERING=si;exports.EXITED=ji;exports.EXITING=Ou;exports.FaMinus=LR;exports.FaPlus=FR;exports.FaSearch=BR;exports.Fade=Vi;exports.Fe=gO;exports.FileExtensionIcon=X3;exports.FloatingLabelInput=nf;exports.Form=Gr;exports.FormCheckInput=Pd;exports.FormControl=t_;exports.FormDisabledContext=K4;exports.FormSelect=Dg;exports.HelmetContext=X4;exports.HookFormTextAreaInput=r0;exports.HookFormTextInput=es;exports.HtmlTooltip=Q_;exports.IconButton=xc;exports.InputAnchorContainer=e3;exports.InvalidFeedback=uf;exports.ListGroup=f_;exports.ListGroupItem=Ld;exports.LoadingContext=zd;exports.LoginState=q_;exports.LuminusComponentsContext=rn;exports.MdCheck=sE;exports.MdCircle=oE;exports.MdClear=fc;exports.MdOutlineAddCircleOutline=pE;exports.MdOutlineArrowOutward=lE;exports.MdOutlineCameraAlt=xE;exports.MdOutlineChevronRight=SE;exports.MdOutlineClose=j_;exports.MdOutlineDelete=D_;exports.MdOutlineEdit=wE;exports.MdOutlineExpand=uE;exports.MdOutlineFileUpload=vE;exports.MdOutlineKeyboardArrowLeft=bE;exports.MdOutlineKeyboardArrowRight=yE;exports.MdOutlineMenu=TE;exports.MdOutlinePhotoLibrary=_E;exports.MdOutlineStar=ME;exports.MdOutlineSubdirectoryArrowRight=kE;exports.MdSave=aE;exports.MdSaveAs=iE;exports.MdSearch=rE;exports.Me=Gle;exports.MiniDetailWrapper=n3;exports.Modal=Vn;exports.ModalContext=Pg;exports.NoInputContainer=Q4;exports.OverlayTrigger=O_;exports.PageContainer=QF;exports.PiPushPinBold=KL;exports.PiPushPinSlashBold=JL;exports.PrimaryButton=Ba;exports.PromptContext=P_;exports.PropTypes=xe;exports.ResponsiveContextDropdown=aC;exports.ResponsiveContextDropdownItem=w0;exports.RowLabelInput=wc;exports.ShortcutLinksContext=PB;exports.SideContentBar=K3;exports.SimpleDropdownToggle=i0;exports.SimplePicker=oC;exports.SimpleTooltip=Ug;exports.Spinner=zg;exports.TextInput=t3;exports.Tooltip=M_;exports.TransitionWrapper=gg;exports.Typography=In;exports.UserContext=Y_;exports.Xe=Qfe;exports.a=_0;exports.addLeadingZeros=Pt;exports.arrayType=H4;exports.atobUtf8=t4;exports.axios=Zt;exports.buildEmployeeNameString=IO;exports.buildOrgUnitString=NO;exports.buildVehicleNameString=jO;exports.cancelToken=qA;exports.capitalizeFirstLetter=DO;exports.classNames=se;exports.classes=pm;exports.classes$1=i3;exports.compareDate=FO;exports.compareDateTime=BO;exports.compilerRuntimeExports=Ie;exports.constructFrom=gi;exports.context=Id;exports.differenceInCalendarDays=Zx;exports.dist=C0;exports.divWithClassName=vg;exports.extractErrorsFromBlobResponse=K_;exports.extractErrorsFromResponse=Ud;exports.extractFilename=a4;exports.extractPermissionsFromResponse=J_;exports.fixNameIdNulls=Z_;exports.format=fg;exports.formatDate=AO;exports.formatDateTime=RO;exports.formatFileSize=Go;exports.getChildRef=cs;exports.getDateString=qO;exports.getDaysDifference=zO;exports.getFirstDayOfMonth=r4;exports.getFirstDayOfOffsetMonth=WO;exports.getFirstDayOfYear=HO;exports.getLastDayOfMonth=i4;exports.getLastDayOfOffsetMonth=UO;exports.getLastDayOfYear=VO;exports.getSharedManager=g_;exports.getTimezoneOffsetInMilliseconds=Bp;exports.hasOnlyNullValues=X_;exports.hookFormSetServerErrors=yO;exports.isExtensionOpenable=s4;exports.isFileOpenable=o4;exports.isISODate=n4;exports.isLeavingWindowInSafari=cz;exports.isPast=Jx;exports.isPrimitive=Fu;exports.isSafari=S0;exports.isValidDate=LO;exports.joinStrings=Hg;exports.makeDispatch=dz;exports.millisecondsInHour=$d;exports.millisecondsInMinute=ug;exports.millisecondsInWeek=cg;exports.msToStartOfNextDay=PO;exports.objectType=di;exports.once=lC;exports.parseISO=Md;exports.replaceNullValuesOnlyObjectsWithNulls=bO;exports.saveFile=Bu;exports.saveFileFromResponse=ZO;exports.secondsInDay=dg;exports.secondsInHour=Hx;exports.secondsInMinute=mT;exports.secondsInMonth=qx;exports.secondsInQuarter=vT;exports.secondsInWeek=gT;exports.secondsInYear=Vx;exports.shortenText=OO;exports.startOfDay=Fp;exports.startOfWeek=zo;exports.stringContains=am;exports.stringSearchWithin=Vg;exports.stringStartsWith=l4;exports.stringType=Qg;exports.style=Wi;exports.t=rf;exports.te=fae;exports.toDate=Ln;exports.transitionEndListener=cw;exports.triggerBrowserReflow=uw;exports.trimIsoDate=Hd;exports.truncateText=e4;exports.u=Z3;exports.urlfyArray=im;exports.useAuth=j4;exports.useAxios=Kd;exports.useBootstrapBreakpoints=nw;exports.useBootstrapMinBreakpoint=rw;exports.useBootstrapPrefix=gt;exports.useClickOutside=q4;exports.useClipboard=Z4;exports.useCol=yw;exports.useConfirm=Kg;exports.useCookies=Xg;exports.useEventCallback=Hi;exports.useFormControlType=e0;exports.useFormDisabledContext=ef;exports.useIsomorphicEffect=Ag;exports.useKeyPress=G4;exports.useNotifications=Xd;exports.usePermissions=Y4;exports.usePrompt=L_;exports.useSwipeable=y0;exports.useWindowSize=yc;exports.useZodSchemaTypes=Qd;exports.z=il;