react-luminus-components 2.0.3-beta.r19-15 → 2.0.3-beta.r19-17

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.
@@ -1,306 +0,0 @@
1
- "use strict";const b=require("react/jsx-runtime"),h=require("react"),c6=require("@azure/msal-browser"),Is=require("react-router"),u6=require("@tanstack/react-query"),c1=require("@azure/msal-react"),hn=require("react-dom"),bn=require("react-hook-form");require("react-flexmonster");function d6(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const ie=d6(h);var Kn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function on(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var DC={exports:{}};/*!
2
- Copyright (c) 2018 Jed Watson.
3
- Licensed under the MIT License (MIT), see
4
- http://jedwatson.github.io/classnames
5
- */(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})()})(DC);var f6=DC.exports;const ce=on(f6);function Hn(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function Mi(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function h6(e,t){const n=+Hn(e);return Mi(e,n+t)}const p6=365.2425,Hv=6048e5,m6=864e5,Vv=6e4,If=36e5,NC=3600,g6=60,qv=NC*24,v6=qv*7,IC=qv*p6,PC=IC/12,b6=PC*3;function LC(e,t){return h6(e,t*If)}let y6={};function Pf(){return y6}function hs(e,t){var s,l,c,u;const n=Pf(),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=Hn(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 Md(e){return hs(e,{weekStartsOn:1})}function FC(e){const t=Hn(e),n=t.getFullYear(),r=Mi(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const i=Md(r),a=Mi(e,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);const o=Md(a);return t.getTime()>=i.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function fg(e){const t=Hn(e);return t.setHours(0,0,0,0),t}function hg(e){const t=Hn(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 BC(e,t){const n=fg(e),r=fg(t),i=+n-hg(n),a=+r-hg(r);return Math.round((i-a)/m6)}function x6(e){const t=FC(e),n=Mi(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Md(n)}function w6(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function _6(e){if(!w6(e)&&typeof e!="number")return!1;const t=Hn(e);return!isNaN(Number(t))}function C6(e){const t=Hn(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function $6(e){const t=Hn(e),n=Mi(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const S6={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"}},E6=(e,t,n)=>{let r;const i=S6[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 Wp(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const k6={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},T6={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},O6={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},M6={date:Wp({formats:k6,defaultWidth:"full"}),time:Wp({formats:T6,defaultWidth:"full"}),dateTime:Wp({formats:O6,defaultWidth:"full"})},A6={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},R6=(e,t,n,r)=>A6[e];function ul(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 j6={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},D6={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},N6={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"]},I6={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"]},P6={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"}},L6={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"}},F6=(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"},B6={ordinalNumber:F6,era:ul({values:j6,defaultWidth:"wide"}),quarter:ul({values:D6,defaultWidth:"wide",argumentCallback:e=>e-1}),month:ul({values:N6,defaultWidth:"wide"}),day:ul({values:I6,defaultWidth:"wide"}),dayPeriod:ul({values:P6,defaultWidth:"wide",formattingValues:L6,defaultFormattingWidth:"wide"})};function dl(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)?W6(s,d=>d.test(o)):z6(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 z6(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function W6(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function U6(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 H6=/^(\d+)(th|st|nd|rd)?/i,V6=/\d+/i,q6={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},Y6={any:[/^b/i,/^(a|c)/i]},G6={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},K6={any:[/1/i,/2/i,/3/i,/4/i]},Z6={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},X6={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]},Q6={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},J6={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]},e5={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},t5={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}},n5={ordinalNumber:U6({matchPattern:H6,parsePattern:V6,valueCallback:e=>parseInt(e,10)}),era:dl({matchPatterns:q6,defaultMatchWidth:"wide",parsePatterns:Y6,defaultParseWidth:"any"}),quarter:dl({matchPatterns:G6,defaultMatchWidth:"wide",parsePatterns:K6,defaultParseWidth:"any",valueCallback:e=>e+1}),month:dl({matchPatterns:Z6,defaultMatchWidth:"wide",parsePatterns:X6,defaultParseWidth:"any"}),day:dl({matchPatterns:Q6,defaultMatchWidth:"wide",parsePatterns:J6,defaultParseWidth:"any"}),dayPeriod:dl({matchPatterns:e5,defaultMatchWidth:"any",parsePatterns:t5,defaultParseWidth:"any"})},r5={code:"en-US",formatDistance:E6,formatLong:M6,formatRelative:R6,localize:B6,match:n5,options:{weekStartsOn:0,firstWeekContainsDate:1}};function i5(e){const t=Hn(e);return BC(t,$6(t))+1}function a5(e){const t=Hn(e),n=+Md(t)-+x6(t);return Math.round(n/Hv)+1}function zC(e,t){var u,d,f,p;const n=Hn(e),r=n.getFullYear(),i=Pf(),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??((p=(f=i.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??1,o=Mi(e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);const s=hs(o,t),l=Mi(e,0);l.setFullYear(r,0,a),l.setHours(0,0,0,0);const c=hs(l,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function o5(e,t){var s,l,c,u;const n=Pf(),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=zC(e,t),a=Mi(e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),hs(a,t)}function s5(e,t){const n=Hn(e),r=+hs(n,t)-+o5(n,t);return Math.round(r/Hv)+1}function Pt(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const qi={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)}},No={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},u1={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 qi.y(e,t)},Y:function(e,t,n,r){const i=zC(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=FC(e);return Pt(n,t.length)},u:function(e,t){const n=e.getFullYear();return Pt(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Pt(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Pt(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return qi.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=s5(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):Pt(i,t.length)},I:function(e,t,n){const r=a5(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"}):qi.d(e,t)},D:function(e,t,n){const r=i5(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=No.noon:r===0?i=No.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=No.evening:r>=12?i=No.afternoon:r>=4?i=No.morning:i=No.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 qi.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):qi.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"}):qi.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):qi.s(e,t)},S:function(e,t){return qi.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return f1(r);case"XXXX":case"XX":return La(r);case"XXXXX":case"XXX":default:return La(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return f1(r);case"xxxx":case"xx":return La(r);case"xxxxx":case"xxx":default:return La(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+d1(r,":");case"OOOO":default:return"GMT"+La(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+d1(r,":");case"zzzz":default:return"GMT"+La(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 d1(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 f1(e,t){return e%60===0?(e>0?"-":"+")+Pt(Math.abs(e)/60,2):La(e,t)}function La(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 h1=(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"})}},WC=(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"})}},l5=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return h1(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}}",h1(r,t)).replace("{{time}}",WC(i,t))},c5={p:WC,P:l5},u5=/^D+$/,d5=/^Y+$/,f5=["D","DD","YY","YYYY"];function h5(e){return u5.test(e)}function p5(e){return d5.test(e)}function m5(e,t,n){const r=g5(e,t,n);if(console.warn(r),f5.includes(e))throw new RangeError(r)}function g5(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 v5=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,b5=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,y5=/^'([^]*?)'?$/,x5=/''/g,w5=/[a-zA-Z]/;function Yv(e,t,n){var u,d,f,p,g,m,v,w;const r=Pf(),i=(n==null?void 0:n.locale)??r.locale??r5,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??((p=(f=r.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??1,o=(n==null?void 0:n.weekStartsOn)??((m=(g=n==null?void 0:n.locale)==null?void 0:g.options)==null?void 0:m.weekStartsOn)??r.weekStartsOn??((w=(v=r.locale)==null?void 0:v.options)==null?void 0:w.weekStartsOn)??0,s=Hn(e);if(!_6(s))throw new RangeError("Invalid time value");let l=t.match(b5).map(_=>{const y=_[0];if(y==="p"||y==="P"){const C=c5[y];return C(_,i.formatLong)}return _}).join("").match(v5).map(_=>{if(_==="''")return{isToken:!1,value:"'"};const y=_[0];if(y==="'")return{isToken:!1,value:_5(_)};if(u1[y])return{isToken:!0,value:_};if(y.match(w5))throw new RangeError("Format string contains an unescaped latin alphabet character `"+y+"`");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 y=_.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&p5(y)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&h5(y))&&m5(y,t,String(e));const C=u1[y[0]];return C(s,y,i.localize,c)}).join("")}function _5(e){const t=e.match(y5);return t?t[1].replace(x5,"'"):e}function UC(e){return+Hn(e)<Date.now()}function Lf(e,t){const r=E5(e);let i;if(r.date){const l=k5(r.date,2);i=T5(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=O5(r.time),isNaN(o)))return new Date(NaN);if(r.timezone){if(s=M5(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 Iu={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},C5=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,$5=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,S5=/^([+-])(\d{2})(?::?(\d{2}))?$/;function E5(e){const t={},n=e.split(Iu.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],Iu.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Iu.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const i=Iu.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function k5(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 T5(e,t){if(t===null)return new Date(NaN);const n=e.match(C5);if(!n)return new Date(NaN);const r=!!n[4],i=fl(n[1]),a=fl(n[2])-1,o=fl(n[3]),s=fl(n[4]),l=fl(n[5])-1;if(r)return N5(t,s,l)?A5(t,s,l):new Date(NaN);{const c=new Date(0);return!j5(t,a,o)||!D5(t,i)?new Date(NaN):(c.setUTCFullYear(t,a,Math.max(i,o)),c)}}function fl(e){return e?parseInt(e):1}function O5(e){const t=e.match($5);if(!t)return NaN;const n=Up(t[1]),r=Up(t[2]),i=Up(t[3]);return I5(n,r,i)?n*If+r*Vv+i*1e3:NaN}function Up(e){return e&&parseFloat(e.replace(",","."))||0}function M5(e){if(e==="Z")return 0;const t=e.match(S5);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return P5(r,i)?n*(r*If+i*Vv):NaN}function A5(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 R5=[31,null,31,30,31,30,31,31,30,31,30,31];function HC(e){return e%400===0||e%4===0&&e%100!==0}function j5(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(R5[t]||(HC(e)?29:28))}function D5(e,t){return t>=1&&t<=(HC(e)?366:365)}function N5(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function I5(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function P5(e,t){return t>=0&&t<=59}function pg(){return pg=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},pg.apply(null,arguments)}function VC(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 L5=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}},F5=L5;const p1=on(F5);function m1(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function B5(e){var t=z5(e,"string");return typeof t=="symbol"?t:String(t)}function z5(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 qC(e,t,n){var r=h.useRef(e!==void 0),i=h.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,h.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 Gv(e,t){return Object.keys(t).reduce(function(n,r){var i,a=n,o=a[m1(r)],s=a[r],l=VC(a,[m1(r),r].map(B5)),c=t[r],u=qC(s,o,e[c]),d=u[0],f=u[1];return pg({},l,(i={},i[r]=d,i[c]=f,i))},e)}function mg(e,t){return mg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},mg(e,t)}function W5(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,mg(e,t)}const U5=["xxl","xl","lg","md","sm","xs"],H5="xs",qc=ie.createContext({prefixes:{},breakpoints:U5,minBreakpoint:H5}),{Consumer:Sbe,Provider:Ebe}=qc;function dt(e,t){const{prefixes:n}=h.useContext(qc);return e||n[t]||t}function YC(){const{breakpoints:e}=h.useContext(qc);return e}function GC(){const{minBreakpoint:e}=h.useContext(qc);return e}function Ff(){const{dir:e}=h.useContext(qc);return e==="rtl"}function Ps(e){return e&&e.ownerDocument||document}function V5(e){var t=Ps(e);return t&&t.defaultView||window}function q5(e,t){return V5(e).getComputedStyle(e,t)}var Y5=/([A-Z])/g;function G5(e){return e.replace(Y5,"-$1").toLowerCase()}var K5=/^ms-/;function Pu(e){return G5(e).replace(K5,"-ms-")}var Z5=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function X5(e){return!!(e&&Z5.test(e))}function la(e,t){var n="",r="";if(typeof t=="string")return e.style.getPropertyValue(Pu(t))||q5(e).getPropertyValue(Pu(t));Object.keys(t).forEach(function(i){var a=t[i];!a&&a!==0?e.style.removeProperty(Pu(i)):X5(i)?r+=i+"("+a+") ":n+=Pu(i)+": "+a+";"}),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n}var gg={exports:{}},Lu={exports:{}},Rt={};/** @license React v16.13.1
6
- * react-is.production.min.js
7
- *
8
- * Copyright (c) Facebook, Inc. and its affiliates.
9
- *
10
- * This source code is licensed under the MIT license found in the
11
- * LICENSE file in the root directory of this source tree.
12
- */var g1;function Q5(){if(g1)return Rt;g1=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,p=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function y(x){if(typeof x=="object"&&x!==null){var $=x.$$typeof;switch($){case t:switch(x=x.type,x){case l:case c:case r:case a:case i:case d:return x;default:switch(x=x&&x.$$typeof,x){case s:case u:case g:case p:case o:return x;default:return $}}case n:return $}}}function C(x){return y(x)===c}return Rt.AsyncMode=l,Rt.ConcurrentMode=c,Rt.ContextConsumer=s,Rt.ContextProvider=o,Rt.Element=t,Rt.ForwardRef=u,Rt.Fragment=r,Rt.Lazy=g,Rt.Memo=p,Rt.Portal=n,Rt.Profiler=a,Rt.StrictMode=i,Rt.Suspense=d,Rt.isAsyncMode=function(x){return C(x)||y(x)===l},Rt.isConcurrentMode=C,Rt.isContextConsumer=function(x){return y(x)===s},Rt.isContextProvider=function(x){return y(x)===o},Rt.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===t},Rt.isForwardRef=function(x){return y(x)===u},Rt.isFragment=function(x){return y(x)===r},Rt.isLazy=function(x){return y(x)===g},Rt.isMemo=function(x){return y(x)===p},Rt.isPortal=function(x){return y(x)===n},Rt.isProfiler=function(x){return y(x)===a},Rt.isStrictMode=function(x){return y(x)===i},Rt.isSuspense=function(x){return y(x)===d},Rt.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===r||x===c||x===a||x===i||x===d||x===f||typeof x=="object"&&x!==null&&(x.$$typeof===g||x.$$typeof===p||x.$$typeof===o||x.$$typeof===s||x.$$typeof===u||x.$$typeof===v||x.$$typeof===w||x.$$typeof===_||x.$$typeof===m)},Rt.typeOf=y,Rt}var jt={};/** @license React v16.13.1
13
- * react-is.development.js
14
- *
15
- * Copyright (c) Facebook, Inc. and its affiliates.
16
- *
17
- * This source code is licensed under the MIT license found in the
18
- * LICENSE file in the root directory of this source tree.
19
- */var v1;function J5(){return v1||(v1=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,p=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function y(A){return typeof A=="string"||typeof A=="function"||A===r||A===c||A===a||A===i||A===d||A===f||typeof A=="object"&&A!==null&&(A.$$typeof===g||A.$$typeof===p||A.$$typeof===o||A.$$typeof===s||A.$$typeof===u||A.$$typeof===v||A.$$typeof===w||A.$$typeof===_||A.$$typeof===m)}function C(A){if(typeof A=="object"&&A!==null){var Q=A.$$typeof;switch(Q){case t:var G=A.type;switch(G){case l:case c:case r:case a:case i:case d:return G;default:var q=G&&G.$$typeof;switch(q){case s:case u:case g:case p:case o:return q;default:return Q}}case n:return Q}}}var x=l,$=c,E=s,O=o,k=t,j=u,S=r,T=g,R=p,N=n,D=a,M=i,I=d,z=!1;function U(A){return z||(z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),P(A)||C(A)===l}function P(A){return C(A)===c}function W(A){return C(A)===s}function Y(A){return C(A)===o}function X(A){return typeof A=="object"&&A!==null&&A.$$typeof===t}function K(A){return C(A)===u}function Z(A){return C(A)===r}function ee(A){return C(A)===g}function J(A){return C(A)===p}function B(A){return C(A)===n}function L(A){return C(A)===a}function F(A){return C(A)===i}function H(A){return C(A)===d}jt.AsyncMode=x,jt.ConcurrentMode=$,jt.ContextConsumer=E,jt.ContextProvider=O,jt.Element=k,jt.ForwardRef=j,jt.Fragment=S,jt.Lazy=T,jt.Memo=R,jt.Portal=N,jt.Profiler=D,jt.StrictMode=M,jt.Suspense=I,jt.isAsyncMode=U,jt.isConcurrentMode=P,jt.isContextConsumer=W,jt.isContextProvider=Y,jt.isElement=X,jt.isForwardRef=K,jt.isFragment=Z,jt.isLazy=ee,jt.isMemo=J,jt.isPortal=B,jt.isProfiler=L,jt.isStrictMode=F,jt.isSuspense=H,jt.isValidElementType=y,jt.typeOf=C}()),jt}var b1;function KC(){return b1||(b1=1,process.env.NODE_ENV==="production"?Lu.exports=Q5():Lu.exports=J5()),Lu.exports}/*
20
- object-assign
21
- (c) Sindre Sorhus
22
- @license MIT
23
- */var Hp,y1;function eA(){if(y1)return Hp;y1=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 Hp=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},Hp}var Vp,x1;function Kv(){if(x1)return Vp;x1=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Vp=e,Vp}var qp,w1;function ZC(){return w1||(w1=1,qp=Function.call.bind(Object.prototype.hasOwnProperty)),qp}var Yp,_1;function tA(){if(_1)return Yp;_1=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Kv(),n={},r=ZC();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(g){d=g}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 p=c?c():"";e("Failed "+s+" type: "+d.message+(p??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Yp=i,Yp}var Gp,C1;function nA(){if(C1)return Gp;C1=1;var e=KC(),t=eA(),n=Kv(),r=ZC(),i=tA(),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 Gp=function(s,l){var c=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function d(P){var W=P&&(c&&P[c]||P[u]);if(typeof W=="function")return W}var f="<<anonymous>>",p={array:w("array"),bigint:w("bigint"),bool:w("boolean"),func:w("function"),number:w("number"),object:w("object"),string:w("string"),symbol:w("symbol"),any:_(),arrayOf:y,element:C(),elementType:x(),instanceOf:$,node:j(),objectOf:O,oneOf:E,oneOfType:k,shape:T,exact:R};function g(P,W){return P===W?P!==0||1/P===1/W:P!==P&&W!==W}function m(P,W){this.message=P,this.data=W&&typeof W=="object"?W:{},this.stack=""}m.prototype=Error.prototype;function v(P){if(process.env.NODE_ENV!=="production")var W={},Y=0;function X(Z,ee,J,B,L,F,H){if(B=B||f,F=F||J,H!==n){if(l){var A=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw A.name="Invariant Violation",A}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Q=B+":"+J;!W[Q]&&Y<3&&(a("You are manually calling a React.PropTypes validation function for the `"+F+"` prop on `"+B+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),W[Q]=!0,Y++)}}return ee[J]==null?Z?ee[J]===null?new m("The "+L+" `"+F+"` is marked as required "+("in `"+B+"`, but its value is `null`.")):new m("The "+L+" `"+F+"` is marked as required in "+("`"+B+"`, but its value is `undefined`.")):null:P(ee,J,B,L,F)}var K=X.bind(null,!1);return K.isRequired=X.bind(null,!0),K}function w(P){function W(Y,X,K,Z,ee,J){var B=Y[X],L=M(B);if(L!==P){var F=I(B);return new m("Invalid "+Z+" `"+ee+"` of type "+("`"+F+"` supplied to `"+K+"`, expected ")+("`"+P+"`."),{expectedType:P})}return null}return v(W)}function _(){return v(o)}function y(P){function W(Y,X,K,Z,ee){if(typeof P!="function")return new m("Property `"+ee+"` of component `"+K+"` has invalid PropType notation inside arrayOf.");var J=Y[X];if(!Array.isArray(J)){var B=M(J);return new m("Invalid "+Z+" `"+ee+"` of type "+("`"+B+"` supplied to `"+K+"`, expected an array."))}for(var L=0;L<J.length;L++){var F=P(J,L,K,Z,ee+"["+L+"]",n);if(F instanceof Error)return F}return null}return v(W)}function C(){function P(W,Y,X,K,Z){var ee=W[Y];if(!s(ee)){var J=M(ee);return new m("Invalid "+K+" `"+Z+"` of type "+("`"+J+"` supplied to `"+X+"`, expected a single ReactElement."))}return null}return v(P)}function x(){function P(W,Y,X,K,Z){var ee=W[Y];if(!e.isValidElementType(ee)){var J=M(ee);return new m("Invalid "+K+" `"+Z+"` of type "+("`"+J+"` supplied to `"+X+"`, expected a single ReactElement type."))}return null}return v(P)}function $(P){function W(Y,X,K,Z,ee){if(!(Y[X]instanceof P)){var J=P.name||f,B=U(Y[X]);return new m("Invalid "+Z+" `"+ee+"` of type "+("`"+B+"` supplied to `"+K+"`, expected ")+("instance of `"+J+"`."))}return null}return v(W)}function E(P){if(!Array.isArray(P))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 W(Y,X,K,Z,ee){for(var J=Y[X],B=0;B<P.length;B++)if(g(J,P[B]))return null;var L=JSON.stringify(P,function(H,A){var Q=I(A);return Q==="symbol"?String(A):A});return new m("Invalid "+Z+" `"+ee+"` of value `"+String(J)+"` "+("supplied to `"+K+"`, expected one of "+L+"."))}return v(W)}function O(P){function W(Y,X,K,Z,ee){if(typeof P!="function")return new m("Property `"+ee+"` of component `"+K+"` has invalid PropType notation inside objectOf.");var J=Y[X],B=M(J);if(B!=="object")return new m("Invalid "+Z+" `"+ee+"` of type "+("`"+B+"` supplied to `"+K+"`, expected an object."));for(var L in J)if(r(J,L)){var F=P(J,L,K,Z,ee+"."+L,n);if(F instanceof Error)return F}return null}return v(W)}function k(P){if(!Array.isArray(P))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var W=0;W<P.length;W++){var Y=P[W];if(typeof Y!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+z(Y)+" at index "+W+"."),o}function X(K,Z,ee,J,B){for(var L=[],F=0;F<P.length;F++){var H=P[F],A=H(K,Z,ee,J,B,n);if(A==null)return null;A.data&&r(A.data,"expectedType")&&L.push(A.data.expectedType)}var Q=L.length>0?", expected one of type ["+L.join(", ")+"]":"";return new m("Invalid "+J+" `"+B+"` supplied to "+("`"+ee+"`"+Q+"."))}return v(X)}function j(){function P(W,Y,X,K,Z){return N(W[Y])?null:new m("Invalid "+K+" `"+Z+"` supplied to "+("`"+X+"`, expected a ReactNode."))}return v(P)}function S(P,W,Y,X,K){return new m((P||"React class")+": "+W+" type `"+Y+"."+X+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+K+"`.")}function T(P){function W(Y,X,K,Z,ee){var J=Y[X],B=M(J);if(B!=="object")return new m("Invalid "+Z+" `"+ee+"` of type `"+B+"` "+("supplied to `"+K+"`, expected `object`."));for(var L in P){var F=P[L];if(typeof F!="function")return S(K,Z,ee,L,I(F));var H=F(J,L,K,Z,ee+"."+L,n);if(H)return H}return null}return v(W)}function R(P){function W(Y,X,K,Z,ee){var J=Y[X],B=M(J);if(B!=="object")return new m("Invalid "+Z+" `"+ee+"` of type `"+B+"` "+("supplied to `"+K+"`, expected `object`."));var L=t({},Y[X],P);for(var F in L){var H=P[F];if(r(P,F)&&typeof H!="function")return S(K,Z,ee,F,I(H));if(!H)return new m("Invalid "+Z+" `"+ee+"` key `"+F+"` supplied to `"+K+"`.\nBad object: "+JSON.stringify(Y[X],null," ")+`
24
- Valid keys: `+JSON.stringify(Object.keys(P),null," "));var A=H(J,F,K,Z,ee+"."+F,n);if(A)return A}return null}return v(W)}function N(P){switch(typeof P){case"number":case"string":case"undefined":return!0;case"boolean":return!P;case"object":if(Array.isArray(P))return P.every(N);if(P===null||s(P))return!0;var W=d(P);if(W){var Y=W.call(P),X;if(W!==P.entries){for(;!(X=Y.next()).done;)if(!N(X.value))return!1}else for(;!(X=Y.next()).done;){var K=X.value;if(K&&!N(K[1]))return!1}}else return!1;return!0;default:return!1}}function D(P,W){return P==="symbol"?!0:W?W["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&W instanceof Symbol:!1}function M(P){var W=typeof P;return Array.isArray(P)?"array":P instanceof RegExp?"object":D(W,P)?"symbol":W}function I(P){if(typeof P>"u"||P===null)return""+P;var W=M(P);if(W==="object"){if(P instanceof Date)return"date";if(P instanceof RegExp)return"regexp"}return W}function z(P){var W=I(P);switch(W){case"array":case"object":return"an "+W;case"boolean":case"date":case"regexp":return"a "+W;default:return W}}function U(P){return!P.constructor||!P.constructor.name?f:P.constructor.name}return p.checkPropTypes=i,p.resetWarningCache=i.resetWarningCache,p.PropTypes=p,p},Gp}var Kp,$1;function rA(){if($1)return Kp;$1=1;var e=Kv();function t(){}function n(){}return n.resetWarningCache=t,Kp=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},Kp}if(process.env.NODE_ENV!=="production"){var iA=KC(),aA=!0;gg.exports=nA()(iA.isElement,aA)}else gg.exports=rA()();var oA=gg.exports;const ve=on(oA),S1={disabled:!1};var sA=process.env.NODE_ENV!=="production"?ve.oneOfType([ve.number,ve.shape({enter:ve.number,exit:ve.number,appear:ve.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&ve.oneOfType([ve.string,ve.shape({enter:ve.string,exit:ve.string,active:ve.string}),ve.shape({enter:ve.string,enterDone:ve.string,enterActive:ve.string,exit:ve.string,exitDone:ve.string,exitActive:ve.string})]);const XC=h.createContext(null);var lA=function(t){return t.scrollTop},Nl="unmounted",Zi="exited",yi="entering",ea="entered",Ad="exiting",Fi=function(e){W5(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=Zi,a.appearStatus=yi):l=ea:r.unmountOnExit||r.mountOnEnter?l=Nl:l=Zi,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var o=i.in;return o&&a.status===Nl?{status:Zi}: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!==yi&&o!==ea&&(a=yi):(o===yi||o===ea)&&(a=Ad)}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===yi){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:hn.findDOMNode(this);o&&lA(o)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Zi&&this.setState({status:Nl})},n.performEnter=function(i){var a=this,o=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[hn.findDOMNode(this),s],c=l[0],u=l[1],d=this.getTimeouts(),f=s?d.appear:d.enter;if(!i&&!o||S1.disabled){this.safeSetState({status:ea},function(){a.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:yi},function(){a.props.onEntering(c,u),a.onTransitionEnd(f,function(){a.safeSetState({status:ea},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:hn.findDOMNode(this);if(!a||S1.disabled){this.safeSetState({status:Zi},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Ad},function(){i.props.onExiting(s),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:Zi},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:hn.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===Nl)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=VC(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return h.createElement(XC.Provider,{value:null},typeof o=="function"?o(i,s):h.cloneElement(h.Children.only(o),s))},t}(h.Component);Fi.contextType=XC;Fi.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:ve.shape({current:typeof Element>"u"?ve.any:function(e,t,n,r,i,a){var o=e[t];return ve.instanceOf(o&&"ownerDocument"in o?o.ownerDocument.defaultView.Element:Element)(e,t,n,r,i,a)}}),children:ve.oneOfType([ve.func.isRequired,ve.element.isRequired]).isRequired,in:ve.bool,mountOnEnter:ve.bool,unmountOnExit:ve.bool,appear:ve.bool,enter:ve.bool,exit:ve.bool,timeout:function(t){var n=sA;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:ve.func,onEnter:ve.func,onEntering:ve.func,onEntered:ve.func,onExit:ve.func,onExiting:ve.func,onExited:ve.func}:{};function Io(){}Fi.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Io,onEntering:Io,onEntered:Io,onExit:Io,onExiting:Io,onExited:Io};Fi.UNMOUNTED=Nl;Fi.EXITED=Zi;Fi.ENTERING=yi;Fi.ENTERED=ea;Fi.EXITING=Ad;function QC(e){return e.code==="Escape"||e.keyCode===27}function cA(){const e=ie.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}function Ls(e){if(!e||typeof e=="function")return null;const{major:t}=cA();return t>=19?e.props.ref:e.ref}const Fs=!!(typeof window<"u"&&window.document&&window.document.createElement);var vg=!1,bg=!1;try{var Zp={get passive(){return vg=!0},get once(){return bg=vg=!0}};Fs&&(window.addEventListener("test",Zp,Zp),window.removeEventListener("test",Zp,!0))}catch{}function Zv(e,t,n,r){if(r&&typeof r!="boolean"&&!bg){var i=r.once,a=r.capture,o=n;!bg&&i&&(o=n.__once||function s(l){this.removeEventListener(t,s,a),n.call(this,l)},n.__once=o),e.addEventListener(t,o,vg?r:a)}e.addEventListener(t,n,r)}function yg(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 Ci(e,t,n,r){return Zv(e,t,n,r),function(){yg(e,t,n,r)}}function uA(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 dA(e){var t=la(e,"transitionDuration")||"",n=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*n}function fA(e,t,n){n===void 0&&(n=5);var r=!1,i=setTimeout(function(){r||uA(e,"transitionend",!0)},t+n),a=Ci(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(i),a()}}function JC(e,t,n,r){n==null&&(n=dA(e)||0);var i=fA(e,n,r),a=Ci(e,"transitionend",t);return function(){i(),a()}}function E1(e,t){const n=la(e,t)||"",r=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*r}function e$(e,t){const n=E1(e,"transitionDuration"),r=E1(e,"transitionDelay"),i=JC(e,a=>{a.target===e&&(i(),t(a))},n+r)}function t$(e){e.offsetHeight}const k1=e=>!e||typeof e=="function"?e:t=>{e.current=t};function hA(e,t){const n=k1(e),r=k1(t);return i=>{n&&n(i),r&&r(i)}}function xo(e,t){return h.useMemo(()=>hA(e,t),[e,t])}function Rd(e){return e&&"setState"in e?hn.findDOMNode(e):e??null}const Xv=h.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:i,onExited:a,addEndListener:o,children:s,childRef:l,...c},u)=>{const d=h.useRef(null),f=xo(d,l),p=$=>{f(Rd($))},g=$=>E=>{$&&d.current&&$(d.current,E)},m=h.useCallback(g(e),[e]),v=h.useCallback(g(t),[t]),w=h.useCallback(g(n),[n]),_=h.useCallback(g(r),[r]),y=h.useCallback(g(i),[i]),C=h.useCallback(g(a),[a]),x=h.useCallback(g(o),[o]);return b.jsx(Fi,{ref:u,...c,onEnter:m,onEntered:w,onEntering:v,onExit:_,onExited:C,onExiting:y,addEndListener:x,nodeRef:d,children:typeof s=="function"?($,E)=>s($,{...E,ref:p}):h.cloneElement(s,{ref:p})})});Xv.displayName="TransitionWrapper";function pA(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e},[e]),t}function ua(e){const t=pA(e);return h.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const Qv=e=>ie.forwardRef((t,n)=>b.jsx("div",{...t,ref:n,className:ce(t.className,e)})),n$=Qv("h4");n$.displayName="DivStyledAsH4";const r$=ie.forwardRef(({className:e,bsPrefix:t,as:n=n$,...r},i)=>(t=dt(t,"alert-heading"),b.jsx(n,{ref:i,className:ce(e,t),...r})));r$.displayName="AlertHeading";function xg(){return h.useState(null)}function mA(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e},[e]),t}function En(e){const t=mA(e);return h.useCallback(function(...n){return t.current&&t.current(...n)},[t])}function gA(e,t,n,r=!1){const i=En(n);h.useEffect(()=>{const a=typeof e=="function"?e():e;return a.addEventListener(t,i,r),()=>a.removeEventListener(t,i,r)},[e])}function i$(){const e=h.useRef(!0),t=h.useRef(()=>e.current);return h.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function a$(e){const t=h.useRef(null);return h.useEffect(()=>{t.current=e}),t.current}const vA=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",bA=typeof document<"u",T1=bA||vA?h.useLayoutEffect:h.useEffect,yA=["as","disabled"];function xA(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function wA(e){return!e||e.trim()==="#"}function Jv({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"&&wA(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 e0=ie.forwardRef((e,t)=>{let{as:n,disabled:r}=e,i=xA(e,yA);const[a,{tagName:o}]=Jv(Object.assign({tagName:n,disabled:r},i));return b.jsx(o,Object.assign({},i,a,{ref:t}))});e0.displayName="Button";const _A=["onKeyDown"];function CA(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 $A(e){return!e||e.trim()==="#"}const t0=ie.forwardRef((e,t)=>{let{onKeyDown:n}=e,r=CA(e,_A);const[i]=Jv(Object.assign({tagName:"a"},r)),a=En(o=>{i.onKeyDown(o),n==null||n(o)});return $A(r.href)||r.role==="button"?b.jsx("a",Object.assign({ref:t},r,i,{onKeyDown:a})):b.jsx("a",Object.assign({ref:t},r,{onKeyDown:n}))});t0.displayName="Anchor";const o$=ie.forwardRef(({className:e,bsPrefix:t,as:n=t0,...r},i)=>(t=dt(t,"alert-link"),b.jsx(n,{ref:i,className:ce(e,t),...r})));o$.displayName="AlertLink";const SA={[yi]:"show",[ea]:"show"},da=ie.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:r,...i},a)=>{const o={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...i},s=h.useCallback((l,c)=>{t$(l),r==null||r(l,c)},[r]);return b.jsx(Xv,{ref:a,addEndListener:e$,...o,onEnter:s,childRef:Ls(t),children:(l,c)=>ie.cloneElement(t,{...c,className:ce("fade",e,t.props.className,SA[l],n[l])})})});da.displayName="Fade";const EA={"aria-label":ve.string,onClick:ve.func,variant:ve.oneOf(["white"])},Bf=ie.forwardRef(({className:e,variant:t,"aria-label":n="Close",...r},i)=>b.jsx("button",{ref:i,type:"button",className:ce("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r}));Bf.displayName="CloseButton";Bf.propTypes=EA;const s$=ie.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=da,...f}=Gv(e,{show:"onClose"}),p=dt(n,"alert"),g=ua(w=>{c&&c(!1,w)}),m=d===!0?da:d,v=b.jsxs("div",{role:"alert",...m?void 0:f,ref:t,className:ce(o,p,l&&`${p}-${l}`,u&&`${p}-dismissible`),children:[u&&b.jsx(Bf,{onClick:g,"aria-label":i,variant:a}),s]});return m?b.jsx(m,{unmountOnExit:!0,...f,ref:void 0,in:r,children:v}):r?v:null});s$.displayName="Alert";const kA=Object.assign(s$,{Link:o$,Heading:r$}),n0=ie.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:r,active:i=!1,disabled:a=!1,className:o,...s},l)=>{const c=dt(t,"btn"),[u,{tagName:d}]=Jv({tagName:e,disabled:a,...s}),f=d;return b.jsx(f,{...u,...s,ref:l,disabled:a,className:ce(o,c,i&&"active",n&&`${c}-${n}`,r&&`${c}-${r}`,s.href&&a&&"disabled")})});n0.displayName="Button";function TA(){const e=h.useRef(!0),t=h.useRef(()=>e.current);return h.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function OA(e){const t=h.useRef(e);return t.current=e,t}function l$(e){const t=OA(e);h.useEffect(()=>()=>t.current(),[])}const wg=2**31-1;function c$(e,t,n){const r=n-Date.now();e.current=r<=wg?setTimeout(t,r):setTimeout(()=>c$(e,t,n),wg)}function MA(){const e=TA(),t=h.useRef();return l$(()=>clearTimeout(t.current)),h.useMemo(()=>{const n=()=>clearTimeout(t.current);function r(i,a=0){e()&&(n(),a<=wg?t.current=setTimeout(i,a):c$(t,i,Date.now()+a))}return{set:r,clear:n,handleRef:t}},[])}function AA(e,t){return ie.Children.toArray(e).some(n=>ie.isValidElement(n)&&n.type===t)}function u$({as:e,bsPrefix:t,className:n,...r}){t=dt(t,"col");const i=YC(),a=GC(),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 p=l!==a?`-${l}`:"";u&&o.push(u===!0?`${t}${p}`:`${t}${p}-${u}`),f!=null&&s.push(`order${p}-${f}`),d!=null&&s.push(`offset${p}-${d}`)}),[{...r,className:ce(n,...o,...s)},{as:e,bsPrefix:t,spans:o}]}const r0=ie.forwardRef((e,t)=>{const[{className:n,...r},{as:i="div",bsPrefix:a,spans:o}]=u$(e);return b.jsx(i,{...r,ref:t,className:ce(n,!o.length&&a)})});r0.displayName="Col";var RA=Function.prototype.bind.call(Function.prototype.call,[].slice);function xi(e,t){return RA(e.querySelectorAll(t))}function jA(e,t,n){const r=h.useRef(e!==void 0),[i,a]=h.useState(t),o=e!==void 0,s=r.current;return r.current=o,!o&&s&&i!==t&&a(t),[o?e:i,h.useCallback((...l)=>{const[c,...u]=l;let d=n==null?void 0:n(c,...u);return a(c),d},[n])]}function d$(){const[,e]=h.useReducer(t=>t+1,0);return e}const zf=ie.createContext(null);var O1=Object.prototype.hasOwnProperty;function M1(e,t,n){for(n of e.keys())if(zl(n,t))return n}function zl(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--&&zl(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=M1(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=M1(t,i),!i)||!zl(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(O1.call(e,n)&&++r&&!O1.call(t,n)||!(n in t)||!zl(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function DA(e){const t=i$();return[e[0],h.useCallback(n=>{if(t())return e[1](n)},[t,e[1]])]}var Xn="top",xr="bottom",wr="right",Qn="left",i0="auto",Yc=[Xn,xr,wr,Qn],ps="start",tc="end",NA="clippingParents",f$="viewport",hl="popper",IA="reference",A1=Yc.reduce(function(e,t){return e.concat([t+"-"+ps,t+"-"+tc])},[]),h$=[].concat(Yc,[i0]).reduce(function(e,t){return e.concat([t,t+"-"+ps,t+"-"+tc])},[]),PA="beforeRead",LA="read",FA="afterRead",BA="beforeMain",zA="main",WA="afterMain",UA="beforeWrite",HA="write",VA="afterWrite",qA=[PA,LA,FA,BA,zA,WA,UA,HA,VA];function qr(e){return e.split("-")[0]}function lr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function io(e){var t=lr(e).Element;return e instanceof t||e instanceof Element}function Yr(e){var t=lr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function a0(e){if(typeof ShadowRoot>"u")return!1;var t=lr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var Xa=Math.max,jd=Math.min,ms=Math.round;function _g(){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 p$(){return!/^((?!chrome|android).)*safari/i.test(_g())}function gs(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&Yr(e)&&(i=e.offsetWidth>0&&ms(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&ms(r.height)/e.offsetHeight||1);var o=io(e)?lr(e):window,s=o.visualViewport,l=!p$()&&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 o0(e){var t=gs(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 m$(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&a0(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function fa(e){return e?(e.nodeName||"").toLowerCase():null}function Ai(e){return lr(e).getComputedStyle(e)}function YA(e){return["table","td","th"].indexOf(fa(e))>=0}function _a(e){return((io(e)?e.ownerDocument:e.document)||window.document).documentElement}function Wf(e){return fa(e)==="html"?e:e.assignedSlot||e.parentNode||(a0(e)?e.host:null)||_a(e)}function R1(e){return!Yr(e)||Ai(e).position==="fixed"?null:e.offsetParent}function GA(e){var t=/firefox/i.test(_g()),n=/Trident/i.test(_g());if(n&&Yr(e)){var r=Ai(e);if(r.position==="fixed")return null}var i=Wf(e);for(a0(i)&&(i=i.host);Yr(i)&&["html","body"].indexOf(fa(i))<0;){var a=Ai(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 Gc(e){for(var t=lr(e),n=R1(e);n&&YA(n)&&Ai(n).position==="static";)n=R1(n);return n&&(fa(n)==="html"||fa(n)==="body"&&Ai(n).position==="static")?t:n||GA(e)||t}function s0(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Wl(e,t,n){return Xa(e,jd(t,n))}function KA(e,t,n){var r=Wl(e,t,n);return r>n?n:r}function g$(){return{top:0,right:0,bottom:0,left:0}}function v$(e){return Object.assign({},g$(),e)}function b$(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var ZA=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,v$(typeof t!="number"?t:b$(t,Yc))};function XA(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=qr(n.placement),l=s0(s),c=[Qn,wr].indexOf(s)>=0,u=c?"height":"width";if(!(!a||!o)){var d=ZA(i.padding,n),f=o0(a),p=l==="y"?Xn:Qn,g=l==="y"?xr:wr,m=n.rects.reference[u]+n.rects.reference[l]-o[l]-n.rects.popper[u],v=o[l]-n.rects.reference[l],w=Gc(a),_=w?l==="y"?w.clientHeight||0:w.clientWidth||0:0,y=m/2-v/2,C=d[p],x=_-f[u]-d[g],$=_/2-f[u]/2+y,E=Wl(C,$,x),O=l;n.modifiersData[r]=(t={},t[O]=E,t.centerOffset=E-$,t)}}function QA(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)||m$(t.elements.popper,i)&&(t.elements.arrow=i))}const JA={name:"arrow",enabled:!0,phase:"main",fn:XA,effect:QA,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function vs(e){return e.split("-")[1]}var eR={top:"auto",right:"auto",bottom:"auto",left:"auto"};function tR(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:ms(n*i)/i||0,y:ms(r*i)/i||0}}function j1(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,p=f===void 0?0:f,g=o.y,m=g===void 0?0:g,v=typeof u=="function"?u({x:p,y:m}):{x:p,y:m};p=v.x,m=v.y;var w=o.hasOwnProperty("x"),_=o.hasOwnProperty("y"),y=Qn,C=Xn,x=window;if(c){var $=Gc(n),E="clientHeight",O="clientWidth";if($===lr(n)&&($=_a(n),Ai($).position!=="static"&&s==="absolute"&&(E="scrollHeight",O="scrollWidth")),$=$,i===Xn||(i===Qn||i===wr)&&a===tc){C=xr;var k=d&&$===x&&x.visualViewport?x.visualViewport.height:$[E];m-=k-r.height,m*=l?1:-1}if(i===Qn||(i===Xn||i===xr)&&a===tc){y=wr;var j=d&&$===x&&x.visualViewport?x.visualViewport.width:$[O];p-=j-r.width,p*=l?1:-1}}var S=Object.assign({position:s},c&&eR),T=u===!0?tR({x:p,y:m},lr(n)):{x:p,y:m};if(p=T.x,m=T.y,l){var R;return Object.assign({},S,(R={},R[C]=_?"0":"",R[y]=w?"0":"",R.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",R))}return Object.assign({},S,(t={},t[C]=_?m+"px":"",t[y]=w?p+"px":"",t.transform="",t))}function nR(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:qr(t.placement),variation:vs(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,j1(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,j1(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 rR={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:nR,data:{}};var Fu={passive:!0};function iR(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=lr(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(u){u.addEventListener("scroll",n.update,Fu)}),s&&l.addEventListener("resize",n.update,Fu),function(){a&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Fu)}),s&&l.removeEventListener("resize",n.update,Fu)}}const aR={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:iR,data:{}};var oR={left:"right",right:"left",bottom:"top",top:"bottom"};function md(e){return e.replace(/left|right|bottom|top/g,function(t){return oR[t]})}var sR={start:"end",end:"start"};function D1(e){return e.replace(/start|end/g,function(t){return sR[t]})}function l0(e){var t=lr(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function c0(e){return gs(_a(e)).left+l0(e).scrollLeft}function lR(e,t){var n=lr(e),r=_a(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;var c=p$();(c||!c&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:a,height:o,x:s+c0(e),y:l}}function cR(e){var t,n=_a(e),r=l0(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=Xa(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=Xa(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+c0(e),l=-r.scrollTop;return Ai(i||n).direction==="rtl"&&(s+=Xa(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:l}}function u0(e){var t=Ai(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function y$(e){return["html","body","#document"].indexOf(fa(e))>=0?e.ownerDocument.body:Yr(e)&&u0(e)?e:y$(Wf(e))}function Ul(e,t){var n;t===void 0&&(t=[]);var r=y$(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=lr(r),o=i?[a].concat(a.visualViewport||[],u0(r)?r:[]):r,s=t.concat(o);return i?s:s.concat(Ul(Wf(o)))}function Cg(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function uR(e,t){var n=gs(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 N1(e,t,n){return t===f$?Cg(lR(e,n)):io(t)?uR(t,n):Cg(cR(_a(e)))}function dR(e){var t=Ul(Wf(e)),n=["absolute","fixed"].indexOf(Ai(e).position)>=0,r=n&&Yr(e)?Gc(e):e;return io(r)?t.filter(function(i){return io(i)&&m$(i,r)&&fa(i)!=="body"}):[]}function fR(e,t,n,r){var i=t==="clippingParents"?dR(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(l,c){var u=N1(e,c,r);return l.top=Xa(u.top,l.top),l.right=jd(u.right,l.right),l.bottom=jd(u.bottom,l.bottom),l.left=Xa(u.left,l.left),l},N1(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 x$(e){var t=e.reference,n=e.element,r=e.placement,i=r?qr(r):null,a=r?vs(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case Xn:l={x:o,y:t.y-n.height};break;case xr:l={x:o,y:t.y+t.height};break;case wr:l={x:t.x+t.width,y:s};break;case Qn:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=i?s0(i):null;if(c!=null){var u=c==="y"?"height":"width";switch(a){case ps:l[c]=l[c]-(t[u]/2-n[u]/2);break;case tc:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function nc(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?NA:s,c=n.rootBoundary,u=c===void 0?f$:c,d=n.elementContext,f=d===void 0?hl:d,p=n.altBoundary,g=p===void 0?!1:p,m=n.padding,v=m===void 0?0:m,w=v$(typeof v!="number"?v:b$(v,Yc)),_=f===hl?IA:hl,y=e.rects.popper,C=e.elements[g?_:f],x=fR(io(C)?C:C.contextElement||_a(e.elements.popper),l,u,o),$=gs(e.elements.reference),E=x$({reference:$,element:y,placement:i}),O=Cg(Object.assign({},y,E)),k=f===hl?O:$,j={top:x.top-k.top+w.top,bottom:k.bottom-x.bottom+w.bottom,left:x.left-k.left+w.left,right:k.right-x.right+w.right},S=e.modifiersData.offset;if(f===hl&&S){var T=S[i];Object.keys(j).forEach(function(R){var N=[wr,xr].indexOf(R)>=0?1:-1,D=[Xn,xr].indexOf(R)>=0?"y":"x";j[R]+=T[D]*N})}return j}function hR(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?h$:l,u=vs(r),d=u?s?A1:A1.filter(function(g){return vs(g)===u}):Yc,f=d.filter(function(g){return c.indexOf(g)>=0});f.length===0&&(f=d);var p=f.reduce(function(g,m){return g[m]=nc(e,{placement:m,boundary:i,rootBoundary:a,padding:o})[qr(m)],g},{});return Object.keys(p).sort(function(g,m){return p[g]-p[m]})}function pR(e){if(qr(e)===i0)return[];var t=md(e);return[D1(e),t,D1(t)]}function mR(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,p=n.flipVariations,g=p===void 0?!0:p,m=n.allowedAutoPlacements,v=t.options.placement,w=qr(v),_=w===v,y=l||(_||!g?[md(v)]:pR(v)),C=[v].concat(y).reduce(function(K,Z){return K.concat(qr(Z)===i0?hR(t,{placement:Z,boundary:u,rootBoundary:d,padding:c,flipVariations:g,allowedAutoPlacements:m}):Z)},[]),x=t.rects.reference,$=t.rects.popper,E=new Map,O=!0,k=C[0],j=0;j<C.length;j++){var S=C[j],T=qr(S),R=vs(S)===ps,N=[Xn,xr].indexOf(T)>=0,D=N?"width":"height",M=nc(t,{placement:S,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),I=N?R?wr:Qn:R?xr:Xn;x[D]>$[D]&&(I=md(I));var z=md(I),U=[];if(a&&U.push(M[T]<=0),s&&U.push(M[I]<=0,M[z]<=0),U.every(function(K){return K})){k=S,O=!1;break}E.set(S,U)}if(O)for(var P=g?3:1,W=function(Z){var ee=C.find(function(J){var B=E.get(J);if(B)return B.slice(0,Z).every(function(L){return L})});if(ee)return k=ee,"break"},Y=P;Y>0;Y--){var X=W(Y);if(X==="break")break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}}const gR={name:"flip",enabled:!0,phase:"main",fn:mR,requiresIfExists:["offset"],data:{_skip:!1}};function I1(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 P1(e){return[Xn,wr,xr,Qn].some(function(t){return e[t]>=0})}function vR(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=nc(t,{elementContext:"reference"}),s=nc(t,{altBoundary:!0}),l=I1(o,r),c=I1(s,i,a),u=P1(l),d=P1(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 bR={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:vR};function yR(e,t,n){var r=qr(e),i=[Qn,Xn].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,[Qn,wr].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function xR(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=h$.reduce(function(u,d){return u[d]=yR(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 wR={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:xR};function _R(e){var t=e.state,n=e.name;t.modifiersData[n]=x$({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const CR={name:"popperOffsets",enabled:!0,phase:"read",fn:_R,data:{}};function $R(e){return e==="x"?"y":"x"}function SR(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,p=f===void 0?!0:f,g=n.tetherOffset,m=g===void 0?0:g,v=nc(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),w=qr(t.placement),_=vs(t.placement),y=!_,C=s0(w),x=$R(C),$=t.modifiersData.popperOffsets,E=t.rects.reference,O=t.rects.popper,k=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,j=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if($){if(a){var R,N=C==="y"?Xn:Qn,D=C==="y"?xr:wr,M=C==="y"?"height":"width",I=$[C],z=I+v[N],U=I-v[D],P=p?-O[M]/2:0,W=_===ps?E[M]:O[M],Y=_===ps?-O[M]:-E[M],X=t.elements.arrow,K=p&&X?o0(X):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:g$(),ee=Z[N],J=Z[D],B=Wl(0,E[M],K[M]),L=y?E[M]/2-P-B-ee-j.mainAxis:W-B-ee-j.mainAxis,F=y?-E[M]/2+P+B+J+j.mainAxis:Y+B+J+j.mainAxis,H=t.elements.arrow&&Gc(t.elements.arrow),A=H?C==="y"?H.clientTop||0:H.clientLeft||0:0,Q=(R=S==null?void 0:S[C])!=null?R:0,G=I+L-Q-A,q=I+F-Q,le=Wl(p?jd(z,G):z,I,p?Xa(U,q):U);$[C]=le,T[C]=le-I}if(s){var ne,re=C==="x"?Xn:Qn,se=C==="x"?xr:wr,fe=$[x],_e=x==="y"?"height":"width",ye=fe+v[re],xe=fe-v[se],Me=[Xn,Qn].indexOf(w)!==-1,ue=(ne=S==null?void 0:S[x])!=null?ne:0,oe=Me?ye:fe-E[_e]-O[_e]-ue+j.altAxis,be=Me?fe+E[_e]+O[_e]-ue-j.altAxis:xe,Fe=p&&Me?KA(oe,fe,be):Wl(p?oe:ye,fe,p?be:xe);$[x]=Fe,T[x]=Fe-fe}t.modifiersData[r]=T}}const ER={name:"preventOverflow",enabled:!0,phase:"main",fn:SR,requiresIfExists:["offset"]};function kR(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function TR(e){return e===lr(e)||!Yr(e)?l0(e):kR(e)}function OR(e){var t=e.getBoundingClientRect(),n=ms(t.width)/e.offsetWidth||1,r=ms(t.height)/e.offsetHeight||1;return n!==1||r!==1}function MR(e,t,n){n===void 0&&(n=!1);var r=Yr(t),i=Yr(t)&&OR(t),a=_a(t),o=gs(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((fa(t)!=="body"||u0(a))&&(s=TR(t)),Yr(t)?(l=gs(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=c0(a))),{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function AR(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 RR(e){var t=AR(e);return qA.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function jR(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function DR(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 L1={placement:"bottom",modifiers:[],strategy:"absolute"};function F1(){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 NR(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?L1:i;return function(s,l,c){c===void 0&&(c=a);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},L1,a),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},d=[],f=!1,p={state:u,setOptions:function(w){var _=typeof w=="function"?w(u.options):w;m(),u.options=Object.assign({},a,u.options,_),u.scrollParents={reference:io(s)?Ul(s):s.contextElement?Ul(s.contextElement):[],popper:Ul(l)};var y=RR(DR([].concat(r,u.options.modifiers)));return u.orderedModifiers=y.filter(function(C){return C.enabled}),g(),p.update()},forceUpdate:function(){if(!f){var w=u.elements,_=w.reference,y=w.popper;if(F1(_,y)){u.rects={reference:MR(_,Gc(y),u.options.strategy==="fixed"),popper:o0(y)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(j){return u.modifiersData[j.name]=Object.assign({},j.data)});for(var C=0;C<u.orderedModifiers.length;C++){if(u.reset===!0){u.reset=!1,C=-1;continue}var x=u.orderedModifiers[C],$=x.fn,E=x.options,O=E===void 0?{}:E,k=x.name;typeof $=="function"&&(u=$({state:u,options:O,name:k,instance:p})||u)}}}},update:jR(function(){return new Promise(function(v){p.forceUpdate(),v(u)})}),destroy:function(){m(),f=!0}};if(!F1(s,l))return p;p.setOptions(c).then(function(v){!f&&c.onFirstUpdate&&c.onFirstUpdate(v)});function g(){u.orderedModifiers.forEach(function(v){var w=v.name,_=v.options,y=_===void 0?{}:_,C=v.effect;if(typeof C=="function"){var x=C({state:u,name:w,instance:p,options:y}),$=function(){};d.push(x||$)}})}function m(){d.forEach(function(v){return v()}),d=[]}return p}}const IR=NR({defaultModifiers:[bR,CR,rR,aR,wR,gR,ER,JA]}),PR=["enabled","placement","strategy","modifiers"];function LR(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}const FR={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},BR={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)}}},zR=[];function w$(e,t,n={}){let{enabled:r=!0,placement:i="bottom",strategy:a="absolute",modifiers:o=zR}=n,s=LR(n,PR);const l=h.useRef(o),c=h.useRef(),u=h.useCallback(()=>{var v;(v=c.current)==null||v.update()},[]),d=h.useCallback(()=>{var v;(v=c.current)==null||v.forceUpdate()},[]),[f,p]=DA(h.useState({placement:i,update:u,forceUpdate:d,attributes:{},styles:{popper:{},arrow:{}}})),g=h.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:v})=>{const w={},_={};Object.keys(v.elements).forEach(y=>{w[y]=v.styles[y],_[y]=v.attributes[y]}),p({state:v,styles:w,attributes:_,update:u,forceUpdate:d,placement:v.placement})}}),[u,d,p]),m=h.useMemo(()=>(zl(l.current,o)||(l.current=o),l.current),[o]);return h.useEffect(()=>{!c.current||!r||c.current.setOptions({placement:i,strategy:a,modifiers:[...m,g,FR]})},[a,i,g,r,m]),h.useEffect(()=>{if(!(!r||e==null||t==null))return c.current=IR(e,t,Object.assign({},s,{placement:i,strategy:a,modifiers:[...m,BR,g]})),()=>{c.current!=null&&(c.current.destroy(),c.current=void 0,p(v=>Object.assign({},v,{attributes:{},styles:{popper:{}}})))}},[r,e,t]),f}function rc(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}var WR=process.env.NODE_ENV!=="production",_$=function(){};if(WR){var UR=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{}};_$=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||UR.apply(null,[t].concat(n))}}var HR=_$;const wo=on(HR),B1=()=>{};function VR(e){return e.button===0}function qR(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const gd=e=>e&&("current"in e?e.current:e),z1={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function C$(e,t=B1,{disabled:n,clickTrigger:r="click"}={}){const i=h.useRef(!1),a=h.useRef(!1),o=h.useCallback(c=>{const u=gd(e);wo(!!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||qR(c)||!VR(c)||!!rc(u,c.target)||a.current,a.current=!1},[e]),s=En(c=>{const u=gd(e);u&&rc(u,c.target)?a.current=!0:a.current=!1}),l=En(c=>{i.current||t(c)});h.useEffect(()=>{var c,u;if(n||e==null)return;const d=Ps(gd(e)),f=d.defaultView||window;let p=(c=f.event)!=null?c:(u=f.parent)==null?void 0:u.event,g=null;z1[r]&&(g=Ci(d,z1[r],s,!0));const m=Ci(d,r,o,!0),v=Ci(d,r,_=>{if(_===p){p=void 0;return}l(_)});let w=[];return"ontouchstart"in d.documentElement&&(w=[].slice.call(d.body.children).map(_=>Ci(_,"mousemove",B1))),()=>{g==null||g(),m(),v(),w.forEach(_=>_())}},[e,n,r,o,s,l])}function YR(e){const t={};return Array.isArray(e)?(e==null||e.forEach(n=>{t[n.name]=n}),t):e||t}function GR(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function $$({enabled:e,enableEvents:t,placement:n,flip:r,offset:i,fixed:a,containerPadding:o,arrowElement:s,popperConfig:l={}}){var c,u,d,f,p;const g=YR(l.modifiers);return Object.assign({},l,{placement:n,enabled:e,strategy:a?"fixed":l.strategy,modifiers:GR(Object.assign({},g,{eventListeners:{enabled:t,options:(c=g.eventListeners)==null?void 0:c.options},preventOverflow:Object.assign({},g.preventOverflow,{options:o?Object.assign({padding:o},(u=g.preventOverflow)==null?void 0:u.options):(d=g.preventOverflow)==null?void 0:d.options}),offset:{options:Object.assign({offset:i},(f=g.offset)==null?void 0:f.options)},arrow:Object.assign({},g.arrow,{enabled:!!s,options:Object.assign({},(p=g.arrow)==null?void 0:p.options,{element:s})}),flip:Object.assign({enabled:!!r},g.flip)}))})}const KR=["children","usePopper"];function ZR(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}const XR=()=>{};function S$(e={}){const t=h.useContext(zf),[n,r]=xg(),i=h.useRef(!1),{flip:a,offset:o,rootCloseEvent:s,fixed:l=!1,placement:c,popperConfig:u={},enableEventListeners:d=!0,usePopper:f=!!t}=e,p=(t==null?void 0:t.show)==null?!!e.show:t.show;p&&!i.current&&(i.current=!0);const g=$=>{t==null||t.toggle(!1,$)},{placement:m,setMenu:v,menuElement:w,toggleElement:_}=t||{},y=w$(_,w,$$({placement:c||m||"bottom-start",enabled:f,enableEvents:d??p,offset:o,flip:a,fixed:l,arrowElement:n,popperConfig:u})),C=Object.assign({ref:v||XR,"aria-labelledby":_==null?void 0:_.id},y.attributes.popper,{style:y.styles.popper}),x={show:p,placement:m,hasShown:i.current,toggle:t==null?void 0:t.toggle,popper:f?y:null,arrowProps:f?Object.assign({ref:r},y.attributes.arrow,{style:y.styles.arrow}):{}};return C$(w,g,{clickTrigger:s,disabled:!p}),[C,x]}function E$(e){let{children:t,usePopper:n=!0}=e,r=ZR(e,KR);const[i,a]=S$(Object.assign({},r,{usePopper:n}));return b.jsx(b.Fragment,{children:t(i,a)})}E$.displayName="DropdownMenu";const Dd={prefix:String(Math.round(Math.random()*1e10)),current:0},k$=h.createContext(Dd),QR=h.createContext(!1);let JR=!!(typeof window<"u"&&window.document&&window.document.createElement),Xp=new WeakMap;function e8(e=!1){let t=h.useContext(k$),n=h.useRef(null);if(n.current===null&&!e){var r,i;let a=(i=h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(a){let o=Xp.get(a);o==null?Xp.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==o.state&&(t.current=o.id,Xp.delete(a))}n.current=++t.current}return n.current}function t8(e){let t=h.useContext(k$);t===Dd&&!JR&&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=e8(!!e),r=t===Dd&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function n8(e){let t=h.useId(),[n]=h.useState(s8()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Dd.prefix}`;return e||`${r}-${t}`}const r8=typeof h.useId=="function"?n8:t8;function i8(){return!1}function a8(){return!0}function o8(e){return()=>{}}function s8(){return typeof h.useSyncExternalStore=="function"?h.useSyncExternalStore(o8,i8,a8):h.useContext(QR)}const T$=e=>{var t;return((t=e.getAttribute("role"))==null?void 0:t.toLowerCase())==="menu"},W1=()=>{};function O$(){const e=r8(),{show:t=!1,toggle:n=W1,setToggle:r,menuElement:i}=h.useContext(zf)||{},a=h.useCallback(s=>{n(!t,s)},[t,n]),o={id:e,ref:r||W1,onClick:a,"aria-expanded":!!t};return i&&T$(i)&&(o["aria-haspopup"]=!0),[o,{show:t,toggle:n}]}function M$({children:e}){const[t,n]=O$();return b.jsx(b.Fragment,{children:e(t,n)})}M$.displayName="DropdownToggle";const bs=ie.createContext(null),ic=(e,t=null)=>e!=null?String(e):t||null,Uf=ie.createContext(null);Uf.displayName="NavContext";const l8="data-rr-ui-",c8="rrUi";function Bs(e){return`${l8}${e}`}function u8(e){return`${c8}${e}`}const d8=["eventKey","disabled","onClick","active","as"];function f8(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 A$({key:e,href:t,active:n,disabled:r,onClick:i}){const a=h.useContext(bs),o=h.useContext(Uf),{activeKey:s}=o||{},l=ic(e,t),c=n==null&&e!=null?ic(s)===l:n;return[{onClick:En(d=>{r||(i==null||i(d),a&&!d.isPropagationStopped()&&a(l,d))}),"aria-disabled":r||void 0,"aria-selected":c,[Bs("dropdown-item")]:""},{isActive:c}]}const R$=ie.forwardRef((e,t)=>{let{eventKey:n,disabled:r,onClick:i,active:a,as:o=e0}=e,s=f8(e,d8);const[l]=A$({key:n,href:s.href,disabled:r,onClick:i,active:a});return b.jsx(o,Object.assign({},s,{ref:t},l))});R$.displayName="DropdownItem";const j$=h.createContext(Fs?window:void 0);j$.Provider;function Hf(){return h.useContext(j$)}function U1(){const e=d$(),t=h.useRef(null),n=h.useCallback(r=>{t.current=r,e()},[e]);return[t,n]}function Kc({defaultShow:e,show:t,onSelect:n,onToggle:r,itemSelector:i=`* [${Bs("dropdown-item")}]`,focusFirstItemOnShow:a,placement:o="bottom-start",children:s}){const l=Hf(),[c,u]=jA(t,e,r),[d,f]=U1(),p=d.current,[g,m]=U1(),v=g.current,w=a$(c),_=h.useRef(null),y=h.useRef(!1),C=h.useContext(bs),x=h.useCallback((S,T,R=T==null?void 0:T.type)=>{u(S,{originalEvent:T,source:R})},[u]),$=En((S,T)=>{n==null||n(S,T),x(!1,T,"select"),T.isPropagationStopped()||C==null||C(S,T)}),E=h.useMemo(()=>({toggle:x,placement:o,show:c,menuElement:p,toggleElement:v,setMenu:f,setToggle:m}),[x,o,c,p,v,f,m]);p&&w&&!c&&(y.current=p.contains(p.ownerDocument.activeElement));const O=En(()=>{v&&v.focus&&v.focus()}),k=En(()=>{const S=_.current;let T=a;if(T==null&&(T=d.current&&T$(d.current)?"keyboard":!1),T===!1||T==="keyboard"&&!/^key.+$/.test(S))return;const R=xi(d.current,i)[0];R&&R.focus&&R.focus()});h.useEffect(()=>{c?k():y.current&&(y.current=!1,O())},[c,y,O,k]),h.useEffect(()=>{_.current=null});const j=(S,T)=>{if(!d.current)return null;const R=xi(d.current,i);let N=R.indexOf(S)+T;return N=Math.max(0,Math.min(N,R.length)),R[N]};return gA(h.useCallback(()=>l.document,[l]),"keydown",S=>{var T,R;const{key:N}=S,D=S.target,M=(T=d.current)==null?void 0:T.contains(D),I=(R=g.current)==null?void 0:R.contains(D);if(/input|textarea/i.test(D.tagName)&&(N===" "||N!=="Escape"&&M||N==="Escape"&&D.type==="search")||!M&&!I||N==="Tab"&&(!d.current||!c))return;_.current=S.type;const U={originalEvent:S,source:S.type};switch(N){case"ArrowUp":{const P=j(D,-1);P&&P.focus&&P.focus(),S.preventDefault();return}case"ArrowDown":if(S.preventDefault(),!c)u(!0,U);else{const P=j(D,1);P&&P.focus&&P.focus()}return;case"Tab":Zv(D.ownerDocument,"keyup",P=>{var W;(P.key==="Tab"&&!P.target||!((W=d.current)!=null&&W.contains(P.target)))&&u(!1,U)},{once:!0});break;case"Escape":N==="Escape"&&(S.preventDefault(),S.stopPropagation()),u(!1,U);break}}),b.jsx(bs.Provider,{value:$,children:b.jsx(zf.Provider,{value:E,children:s})})}Kc.displayName="Dropdown";Kc.Menu=E$;Kc.Toggle=M$;Kc.Item=R$;const d0=ie.createContext({});d0.displayName="DropdownContext";const D$=ie.forwardRef(({className:e,bsPrefix:t,as:n="hr",role:r="separator",...i},a)=>(t=dt(t,"dropdown-divider"),b.jsx(n,{ref:a,className:ce(e,t),role:r,...i})));D$.displayName="DropdownDivider";const N$=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",role:r="heading",...i},a)=>(t=dt(t,"dropdown-header"),b.jsx(n,{ref:a,className:ce(e,t),role:r,...i})));N$.displayName="DropdownHeader";const I$=ie.forwardRef(({bsPrefix:e,className:t,eventKey:n,disabled:r=!1,onClick:i,active:a,as:o=t0,...s},l)=>{const c=dt(e,"dropdown-item"),[u,d]=A$({key:n,href:s.href,disabled:r,onClick:i,active:a});return b.jsx(o,{...s,...u,ref:l,className:ce(t,c,d.isActive&&"active",r&&"disabled")})});I$.displayName="DropdownItem";const P$=ie.forwardRef(({className:e,bsPrefix:t,as:n="span",...r},i)=>(t=dt(t,"dropdown-item-text"),b.jsx(n,{ref:i,className:ce(e,t),...r})));P$.displayName="DropdownItemText";const h8=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",p8=typeof document<"u",f0=p8||h8?h.useLayoutEffect:h.useEffect,Vf=ie.createContext(null);Vf.displayName="InputGroupContext";const L$=ie.createContext(null);L$.displayName="NavbarContext";function F$(e,t){if(process.env.NODE_ENV==="production")return e;const n=h.useCallback(r=>{r==null||!r.isReactComponent||(process.env.NODE_ENV!=="production"?p1(!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`):p1(!1))},[t]);return xo(n,e)}function B$(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 z$=ie.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 p=h.useContext(L$),g=dt(e,"dropdown-menu"),{align:m,drop:v,isRTL:w}=h.useContext(d0);n=n||m;const _=h.useContext(Vf),y=[];if(n)if(typeof n=="object"){const S=Object.keys(n);if(process.env.NODE_ENV!=="production"&&wo(S.length===1,"There should only be 1 breakpoint when passing an object to `align`"),S.length){const T=S[0],R=n[T];f=R==="start",y.push(`${g}-${T}-${R}`)}}else n==="end"&&(f=!0);const C=B$(f,v,w),[x,{hasShown:$,popper:E,show:O,toggle:k}]=S$({flip:i,rootCloseEvent:r,show:a,usePopper:!p&&y.length===0,offset:[0,2],popperConfig:l,placement:C});if(x.ref=xo(F$(d,"DropdownMenu"),x.ref),f0(()=>{O&&(E==null||E.update())},[O]),!$&&!o&&!_)return null;typeof s!="string"&&(x.show=O,x.close=()=>k==null?void 0:k(!1),x.align=n);let j=u.style;return E!=null&&E.placement&&(j={...u.style,...x.style},u["x-placement"]=E.placement),b.jsx(s,{...u,...x,style:j,...(y.length||p)&&{"data-bs-popper":"static"},className:ce(t,g,O&&"show",f&&`${g}-end`,c&&`${g}-${c}`,...y)})});z$.displayName="DropdownMenu";const W$=ie.forwardRef(({bsPrefix:e,split:t,className:n,childBsPrefix:r,as:i=n0,...a},o)=>{const s=dt(e,"dropdown-toggle"),l=h.useContext(zf);r!==void 0&&(a.bsPrefix=r);const[c]=O$();return c.ref=xo(c.ref,F$(o,"DropdownToggle")),b.jsx(i,{className:ce(n,s,t&&`${s}-split`,(l==null?void 0:l.show)&&"show"),...c,...a})});W$.displayName="DropdownToggle";const U$=ie.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,...p}=Gv(e,{show:"onToggle"}),g=h.useContext(Vf),m=dt(n,"dropdown"),v=Ff(),w=E=>f===!1?E==="click":f==="inside"?E!=="rootClose":f==="outside"?E!=="select":!0,_=ua((E,O)=>{var k;!((k=O.originalEvent)==null||(k=k.target)==null)&&k.classList.contains("dropdown-toggle")&&O.source==="mousedown"||(O.originalEvent.currentTarget===document&&(O.source!=="keydown"||O.originalEvent.key==="Escape")&&(O.source="rootClose"),w(O.source)&&(l==null||l(E,O)))}),C=B$(o==="end",r,v),x=h.useMemo(()=>({align:o,drop:r,isRTL:v}),[o,r,v]),$={down:m,"down-centered":`${m}-center`,up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return b.jsx(d0.Provider,{value:x,children:b.jsx(Kc,{placement:C,show:i,onSelect:s,onToggle:_,focusFirstItemOnShow:c,itemSelector:`.${m}-item:not(.disabled):not(:disabled)`,children:g?p.children:b.jsx(u,{...p,ref:t,className:ce(a,i&&"show",$[r])})})})});U$.displayName="Dropdown";const ys=Object.assign(U$,{Toggle:W$,Menu:z$,Item:I$,ItemText:P$,Divider:D$,Header:N$}),m8={type:ve.string,tooltip:ve.bool,as:ve.elementType},qf=ie.forwardRef(({as:e="div",className:t,type:n="valid",tooltip:r=!1,...i},a)=>b.jsx(e,{...i,ref:a,className:ce(t,`${n}-${r?"tooltip":"feedback"}`)}));qf.displayName="Feedback";qf.propTypes=m8;const Ri=ie.createContext({}),Yf=ie.forwardRef(({id:e,bsPrefix:t,className:n,type:r="checkbox",isValid:i=!1,isInvalid:a=!1,as:o="input",...s},l)=>{const{controlId:c}=h.useContext(Ri);return t=dt(t,"form-check-input"),b.jsx(o,{...s,ref:l,type:r,id:e||c,className:ce(n,t,i&&"is-valid",a&&"is-invalid")})});Yf.displayName="FormCheckInput";const Nd=ie.forwardRef(({bsPrefix:e,className:t,htmlFor:n,...r},i)=>{const{controlId:a}=h.useContext(Ri);return e=dt(e,"form-check-label"),b.jsx("label",{...r,ref:i,htmlFor:n||a,className:ce(t,e)})});Nd.displayName="FormCheckLabel";const H$=ie.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:p="",type:g="checkbox",label:m,children:v,as:w="input",..._},y)=>{t=dt(t,"form-check"),n=dt(n,"form-switch");const{controlId:C}=h.useContext(Ri),x=h.useMemo(()=>({controlId:e||C}),[C,e]),$=!v&&m!=null&&m!==!1||AA(v,Nd),E=b.jsx(Yf,{..._,type:g==="switch"?"checkbox":g,ref:y,isValid:o,isInvalid:s,disabled:a,as:w});return b.jsx(Ri.Provider,{value:x,children:b.jsx("div",{style:f,className:ce(d,$&&t,r&&`${t}-inline`,i&&`${t}-reverse`,g==="switch"&&n),children:v||b.jsxs(b.Fragment,{children:[E,$&&b.jsx(Nd,{title:p,children:m}),c&&b.jsx(qf,{type:u,tooltip:l,children:c})]})})})});H$.displayName="FormCheck";const Id=Object.assign(H$,{Input:Yf,Label:Nd}),V$=ie.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:p}=h.useContext(Ri);return e=dt(e,"form-control"),process.env.NODE_ENV!=="production"&&wo(p==null||!i,"`controlId` is ignored on `<FormControl>` when `id` is specified."),b.jsx(u,{...d,type:t,size:r,ref:f,readOnly:c,id:i||p,className:ce(a,l?`${e}-plaintext`:e,n&&`${e}-${n}`,t==="color"&&`${e}-color`,o&&"is-valid",s&&"is-invalid")})});V$.displayName="FormControl";const q$=Object.assign(V$,{Feedback:qf}),Y$=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=dt(t,"form-floating"),b.jsx(n,{ref:i,className:ce(e,t),...r})));Y$.displayName="FormFloating";const h0=ie.forwardRef(({controlId:e,as:t="div",...n},r)=>{const i=h.useMemo(()=>({controlId:e}),[e]);return b.jsx(Ri.Provider,{value:i,children:b.jsx(t,{...n,ref:r})})});h0.displayName="FormGroup";const G$=ie.forwardRef(({as:e="label",bsPrefix:t,column:n=!1,visuallyHidden:r=!1,className:i,htmlFor:a,...o},s)=>{const{controlId:l}=h.useContext(Ri);t=dt(t,"form-label");let c="col-form-label";typeof n=="string"&&(c=`${c} ${c}-${n}`);const u=ce(i,t,r&&"visually-hidden",n&&c);return process.env.NODE_ENV!=="production"&&wo(l==null||!a,"`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified."),a=a||l,n?b.jsx(r0,{ref:s,as:"label",className:u,htmlFor:a,...o}):b.jsx(e,{ref:s,className:u,htmlFor:a,...o})});G$.displayName="FormLabel";const K$=ie.forwardRef(({bsPrefix:e,className:t,id:n,...r},i)=>{const{controlId:a}=h.useContext(Ri);return e=dt(e,"form-range"),b.jsx("input",{...r,type:"range",ref:i,className:ce(t,e),id:n||a})});K$.displayName="FormRange";const p0=ie.forwardRef(({bsPrefix:e,size:t,htmlSize:n,className:r,isValid:i=!1,isInvalid:a=!1,id:o,...s},l)=>{const{controlId:c}=h.useContext(Ri);return e=dt(e,"form-select"),b.jsx("select",{...s,size:n,ref:l,className:ce(r,e,t&&`${e}-${t}`,i&&"is-valid",a&&"is-invalid"),id:o||c})});p0.displayName="FormSelect";const Z$=ie.forwardRef(({bsPrefix:e,className:t,as:n="small",muted:r,...i},a)=>(e=dt(e,"form-text"),b.jsx(n,{...i,ref:a,className:ce(t,e,r&&"text-muted")})));Z$.displayName="FormText";const X$=ie.forwardRef((e,t)=>b.jsx(Id,{...e,ref:t,type:"switch"}));X$.displayName="Switch";const g8=Object.assign(X$,{Input:Id.Input,Label:Id.Label}),m0=ie.forwardRef(({bsPrefix:e,className:t,children:n,controlId:r,label:i,...a},o)=>(e=dt(e,"form-floating"),b.jsxs(h0,{ref:o,className:ce(t,e),controlId:r,...a,children:[n,b.jsx("label",{htmlFor:r,children:i})]})));m0.displayName="FloatingLabel";const v8={_ref:ve.any,validated:ve.bool,as:ve.elementType},g0=ie.forwardRef(({className:e,validated:t,as:n="form",...r},i)=>b.jsx(n,{...r,ref:i,className:ce(e,t&&"was-validated")}));g0.displayName="Form";g0.propTypes=v8;const oi=Object.assign(g0,{Group:h0,Control:q$,Floating:Y$,Check:Id,Switch:g8,Label:G$,Text:Z$,Range:K$,Select:p0,FloatingLabel:m0}),H1=e=>!e||typeof e=="function"?e:t=>{e.current=t};function b8(e,t){const n=H1(e),r=H1(t);return i=>{n&&n(i),r&&r(i)}}function Zc(e,t){return h.useMemo(()=>b8(e,t),[e,t])}const Q$=ie.createContext(null),y8=["as","active","eventKey"];function x8(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 J$({key:e,onClick:t,active:n,id:r,role:i,disabled:a}){const o=h.useContext(bs),s=h.useContext(Uf),l=h.useContext(Q$);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[Bs("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=En(d=>{a||(t==null||t(d),e!=null&&o&&!d.isPropagationStopped()&&o(e,d))}),[u,{isActive:c}]}const eS=ie.forwardRef((e,t)=>{let{as:n=e0,active:r,eventKey:i}=e,a=x8(e,y8);const[o,s]=J$(Object.assign({key:ic(i,a.href),active:r},a));return o[Bs("active")]=s.isActive,b.jsx(n,Object.assign({},a,o,{ref:t}))});eS.displayName="NavItem";const w8=["as","onSelect","activeKey","role","onKeyDown"];function _8(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 V1=()=>{},q1=Bs("event-key"),tS=ie.forwardRef((e,t)=>{let{as:n="div",onSelect:r,activeKey:i,role:a,onKeyDown:o}=e,s=_8(e,w8);const l=d$(),c=h.useRef(!1),u=h.useContext(bs),d=h.useContext(Q$);let f,p;d&&(a=a||"tablist",i=d.activeKey,f=d.getControlledId,p=d.getControllerId);const g=h.useRef(null),m=y=>{const C=g.current;if(!C)return null;const x=xi(C,`[${q1}]:not([aria-disabled=true])`),$=C.querySelector("[aria-selected=true]");if(!$||$!==document.activeElement)return null;const E=x.indexOf($);if(E===-1)return null;let O=E+y;return O>=x.length&&(O=0),O<0&&(O=x.length-1),x[O]},v=(y,C)=>{y!=null&&(r==null||r(y,C),u==null||u(y,C))},w=y=>{if(o==null||o(y),!d)return;let C;switch(y.key){case"ArrowLeft":case"ArrowUp":C=m(-1);break;case"ArrowRight":case"ArrowDown":C=m(1);break;default:return}C&&(y.preventDefault(),v(C.dataset[u8("EventKey")]||null,y),c.current=!0,l())};h.useEffect(()=>{if(g.current&&c.current){const y=g.current.querySelector(`[${q1}][aria-selected=true]`);y==null||y.focus()}c.current=!1});const _=Zc(t,g);return b.jsx(bs.Provider,{value:v,children:b.jsx(Uf.Provider,{value:{role:a,activeKey:ic(i),getControlledId:f||V1,getControllerId:p||V1},children:b.jsx(n,Object.assign({},s,{onKeyDown:w,ref:_,role:a}))})})});tS.displayName="Nav";const C8=Object.assign(tS,{Item:eS}),Gf=ie.forwardRef(({bsPrefix:e,active:t,disabled:n,eventKey:r,className:i,variant:a,action:o,as:s,...l},c)=>{e=dt(e,"list-group-item");const[u,d]=J$({key:ic(r,l.href),active:t,...l}),f=ua(g=>{if(n){g.preventDefault(),g.stopPropagation();return}u.onClick(g)});n&&l.tabIndex===void 0&&(l.tabIndex=-1,l["aria-disabled"]=!0);const p=s||(o?l.href?"a":"button":"div");return process.env.NODE_ENV!=="production"&&wo(s||!(!o&&l.href),"`action=false` and `href` should not be used together."),b.jsx(p,{ref:c,...l,...u,onClick:f,className:ce(i,e,d.isActive&&"active",n&&"disabled",a&&`${e}-${a}`,o&&`${e}-action`)})});Gf.displayName="ListGroupItem";const nS=ie.forwardRef((e,t)=>{const{className:n,bsPrefix:r,variant:i,horizontal:a,numbered:o,as:s="div",...l}=Gv(e,{activeKey:"onSelect"}),c=dt(r,"list-group");let u;return a&&(u=a===!0?"horizontal":`horizontal-${a}`),process.env.NODE_ENV!=="production"&&wo(!(a&&i==="flush"),'`variant="flush"` and `horizontal` should not be used together.'),b.jsx(C8,{ref:t,...l,as:s,className:ce(n,c,i&&`${c}-${i}`,u&&`${c}-${u}`,o&&`${c}-numbered`)})});nS.displayName="ListGroup";const rS=Object.assign(nS,{Item:Gf});var Bu;function Y1(e){if((!Bu&&Bu!==0||e)&&Fs){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),Bu=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Bu}function $8(){return h.useState(null)}function Qp(e){e===void 0&&(e=Ps());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function S8(e){const t=h.useRef(e);return t.current=e,t}function E8(e){const t=S8(e);h.useEffect(()=>()=>t.current(),[])}function k8(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const G1=Bs("modal-open");class v0{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:r=!1}={}){this.handleContainerOverflow=n,this.isRTL=r,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return k8(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(la(i,r)||"0",10)+t.scrollBarWidth}px`),i.setAttribute(G1,""),la(i,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(G1),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 Jp=(e,t)=>Fs?e==null?(t||Ps()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function $g(e,t){const n=Hf(),[r,i]=h.useState(()=>Jp(e,n==null?void 0:n.document));if(!r){const a=Jp(e);a&&i(a)}return h.useEffect(()=>{},[t,r]),h.useEffect(()=>{const a=Jp(e);a!==r&&i(a)},[e,r]),r}function T8({children:e,in:t,onExited:n,mountOnEnter:r,unmountOnExit:i}){const a=h.useRef(null),o=h.useRef(t),s=En(n);h.useEffect(()=>{t?o.current=!0:s(a.current)},[t,s]);const l=Zc(a,Ls(e)),c=h.cloneElement(e,{ref:l});return t?c:i||!o.current&&r?null:c}const O8=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function M8(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 A8(e){let{onEnter:t,onEntering:n,onEntered:r,onExit:i,onExiting:a,onExited:o,addEndListener:s,children:l}=e,c=M8(e,O8);const u=h.useRef(null),d=Zc(u,Ls(l)),f=C=>x=>{C&&u.current&&C(u.current,x)},p=h.useCallback(f(t),[t]),g=h.useCallback(f(n),[n]),m=h.useCallback(f(r),[r]),v=h.useCallback(f(i),[i]),w=h.useCallback(f(a),[a]),_=h.useCallback(f(o),[o]),y=h.useCallback(f(s),[s]);return Object.assign({},c,{nodeRef:u},t&&{onEnter:p},n&&{onEntering:g},r&&{onEntered:m},i&&{onExit:v},a&&{onExiting:w},o&&{onExited:_},s&&{addEndListener:y},{children:typeof l=="function"?(C,x)=>l(C,Object.assign({},x,{ref:d})):h.cloneElement(l,{ref:d})})}const R8=["component"];function j8(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=ie.forwardRef((e,t)=>{let{component:n}=e,r=j8(e,R8);const i=A8(r);return b.jsx(n,Object.assign({ref:t},i))});function N8({in:e,onTransition:t}){const n=h.useRef(null),r=h.useRef(!0),i=En(t);return T1(()=>{if(!n.current)return;let a=!1;return i({in:e,element:n.current,initial:r.current,isStale:()=>a}),()=>{a=!0}},[e,i]),T1(()=>(r.current=!1,()=>{r.current=!0}),[]),n}function I8({children:e,in:t,onExited:n,onEntered:r,transition:i}){const[a,o]=h.useState(!t);t&&a&&o(!1);const s=N8({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=Zc(s,Ls(e));return a&&!t?null:h.cloneElement(e,{ref:l})}function Sg(e,t,n){return e?b.jsx(D8,Object.assign({},n,{component:e})):t?b.jsx(I8,Object.assign({},n,{transition:t})):b.jsx(T8,Object.assign({},n))}const P8=["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 L8(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 em;function F8(e){return em||(em=new v0({ownerDocument:e==null?void 0:e.document})),em}function B8(e){const t=Hf(),n=e||F8(t),r=h.useRef({dialog:null,backdrop:null});return Object.assign(r.current,{add:()=>n.add(r.current),remove:()=>n.remove(r.current),isTopModal:()=>n.isTopModal(r.current),setDialogRef:h.useCallback(i=>{r.current.dialog=i},[]),setBackdropRef:h.useCallback(i=>{r.current.backdrop=i},[])})}const iS=h.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:p,runBackdropTransition:g,autoFocus:m=!0,enforceFocus:v=!0,restoreFocus:w=!0,restoreFocusOptions:_,renderDialog:y,renderBackdrop:C=q=>b.jsx("div",Object.assign({},q)),manager:x,container:$,onShow:E,onHide:O=()=>{},onExit:k,onExited:j,onExiting:S,onEnter:T,onEntering:R,onEntered:N}=e,D=L8(e,P8);const M=Hf(),I=$g($),z=B8(x),U=i$(),P=a$(n),[W,Y]=h.useState(!n),X=h.useRef(null);h.useImperativeHandle(t,()=>z,[z]),Fs&&!P&&n&&(X.current=Qp(M==null?void 0:M.document)),n&&W&&Y(!1);const K=En(()=>{if(z.add(),F.current=Ci(document,"keydown",B),L.current=Ci(document,"focus",()=>setTimeout(ee),!0),E&&E(),m){var q,le;const ne=Qp((q=(le=z.dialog)==null?void 0:le.ownerDocument)!=null?q:M==null?void 0:M.document);z.dialog&&ne&&!rc(z.dialog,ne)&&(X.current=ne,z.dialog.focus())}}),Z=En(()=>{if(z.remove(),F.current==null||F.current(),L.current==null||L.current(),w){var q;(q=X.current)==null||q.focus==null||q.focus(_),X.current=null}});h.useEffect(()=>{!n||!I||K()},[n,I,K]),h.useEffect(()=>{W&&Z()},[W,Z]),E8(()=>{Z()});const ee=En(()=>{if(!v||!U()||!z.isTopModal())return;const q=Qp(M==null?void 0:M.document);z.dialog&&q&&!rc(z.dialog,q)&&z.dialog.focus()}),J=En(q=>{q.target===q.currentTarget&&(c==null||c(q),s===!0&&O())}),B=En(q=>{l&&QC(q)&&z.isTopModal()&&(u==null||u(q),q.defaultPrevented||O())}),L=h.useRef(),F=h.useRef(),H=(...q)=>{Y(!0),j==null||j(...q)};if(!I)return null;const A=Object.assign({role:r,ref:z.setDialogRef,"aria-modal":r==="dialog"?!0:void 0},D,{style:a,className:i,tabIndex:-1});let Q=y?y(A):b.jsx("div",Object.assign({},A,{children:ie.cloneElement(o,{role:"document"})}));Q=Sg(d,f,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:k,onExiting:S,onExited:H,onEnter:T,onEntering:R,onEntered:N,children:Q});let G=null;return s&&(G=C({ref:z.setBackdropRef,onClick:J}),G=Sg(p,g,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:G})),b.jsx(b.Fragment,{children:hn.createPortal(b.jsxs(b.Fragment,{children:[G,Q]}),I)})});iS.displayName="Modal";const aS=Object.assign(iS,{Manager:v0});function Eg(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function z8(e,t){e.classList?e.classList.add(t):Eg(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function K1(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function W8(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=K1(e.className,t):e.setAttribute("class",K1(e.className&&e.className.baseVal||"",t))}const Po={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class oS extends v0{adjustAndStore(t,n,r){const i=n.style[t];n.dataset[t]=i,la(n,{[t]:`${parseFloat(la(n,t))+r}px`})}restore(t,n){const r=n.dataset[t];r!==void 0&&(delete n.dataset[t],la(n,{[t]:r}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(z8(n,"modal-open"),!t.scrollBarWidth)return;const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";xi(n,Po.FIXED_CONTENT).forEach(a=>this.adjustAndStore(r,a,t.scrollBarWidth)),xi(n,Po.STICKY_CONTENT).forEach(a=>this.adjustAndStore(i,a,-t.scrollBarWidth)),xi(n,Po.NAVBAR_TOGGLER).forEach(a=>this.adjustAndStore(i,a,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();W8(n,"modal-open");const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";xi(n,Po.FIXED_CONTENT).forEach(a=>this.restore(r,a)),xi(n,Po.STICKY_CONTENT).forEach(a=>this.restore(i,a)),xi(n,Po.NAVBAR_TOGGLER).forEach(a=>this.restore(i,a))}}let tm;function sS(e){return tm||(tm=new oS(e)),tm}const lS=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=dt(t,"modal-body"),b.jsx(n,{ref:i,className:ce(e,t),...r})));lS.displayName="ModalBody";const b0=ie.createContext({onHide(){}}),y0=ie.forwardRef(({bsPrefix:e,className:t,contentClassName:n,centered:r,size:i,fullscreen:a,children:o,scrollable:s,...l},c)=>{e=dt(e,"modal");const u=`${e}-dialog`,d=typeof a=="string"?`${e}-fullscreen-${a}`:`${e}-fullscreen`;return b.jsx("div",{...l,ref:c,className:ce(u,t,i&&`${e}-${i}`,r&&`${u}-centered`,s&&`${u}-scrollable`,a&&d),children:b.jsx("div",{className:ce(`${e}-content`,n),children:o})})});y0.displayName="ModalDialog";const cS=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=dt(t,"modal-footer"),b.jsx(n,{ref:i,className:ce(e,t),...r})));cS.displayName="ModalFooter";const x0=ie.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:r,children:i,...a},o)=>{const s=h.useContext(b0),l=ua(()=>{s==null||s.onHide(),r==null||r()});return b.jsxs("div",{ref:o,...a,children:[i,n&&b.jsx(Bf,{"aria-label":e,variant:t,onClick:l})]})});x0.displayName="AbstractModalHeader";const uS=ie.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...i},a)=>(e=dt(e,"modal-header"),b.jsx(x0,{ref:a,...i,className:ce(t,e),closeLabel:n,closeButton:r})));uS.displayName="ModalHeader";const U8=Qv("h4"),dS=ie.forwardRef(({className:e,bsPrefix:t,as:n=U8,...r},i)=>(t=dt(t,"modal-title"),b.jsx(n,{ref:i,className:ce(e,t),...r})));dS.displayName="ModalTitle";function H8(e){return b.jsx(da,{...e,timeout:null})}function V8(e){return b.jsx(da,{...e,timeout:null})}const fS=ie.forwardRef(({bsPrefix:e,className:t,style:n,dialogClassName:r,contentClassName:i,children:a,dialogAs:o=y0,"data-bs-theme":s,"aria-labelledby":l,"aria-describedby":c,"aria-label":u,show:d=!1,animation:f=!0,backdrop:p=!0,keyboard:g=!0,onEscapeKeyDown:m,onShow:v,onHide:w,container:_,autoFocus:y=!0,enforceFocus:C=!0,restoreFocus:x=!0,restoreFocusOptions:$,onEntered:E,onExit:O,onExiting:k,onEnter:j,onEntering:S,onExited:T,backdropClassName:R,manager:N,...D},M)=>{const[I,z]=h.useState({}),[U,P]=h.useState(!1),W=h.useRef(!1),Y=h.useRef(!1),X=h.useRef(null),[K,Z]=$8(),ee=xo(M,Z),J=ua(w),B=Ff();e=dt(e,"modal");const L=h.useMemo(()=>({onHide:J}),[J]);function F(){return N||sS({isRTL:B})}function H(oe){if(!Fs)return;const be=F().getScrollbarWidth()>0,Fe=oe.scrollHeight>Ps(oe).documentElement.clientHeight;z({paddingRight:be&&!Fe?Y1():void 0,paddingLeft:!be&&Fe?Y1():void 0})}const A=ua(()=>{K&&H(K.dialog)});l$(()=>{yg(window,"resize",A),X.current==null||X.current()});const Q=()=>{W.current=!0},G=oe=>{W.current&&K&&oe.target===K.dialog&&(Y.current=!0),W.current=!1},q=()=>{P(!0),X.current=JC(K.dialog,()=>{P(!1)})},le=oe=>{oe.target===oe.currentTarget&&q()},ne=oe=>{if(p==="static"){le(oe);return}if(Y.current||oe.target!==oe.currentTarget){Y.current=!1;return}w==null||w()},re=oe=>{g?m==null||m(oe):(oe.preventDefault(),p==="static"&&q())},se=(oe,be)=>{oe&&H(oe),j==null||j(oe,be)},fe=oe=>{X.current==null||X.current(),O==null||O(oe)},_e=(oe,be)=>{S==null||S(oe,be),Zv(window,"resize",A)},ye=oe=>{oe&&(oe.style.display=""),T==null||T(oe),yg(window,"resize",A)},xe=h.useCallback(oe=>b.jsx("div",{...oe,className:ce(`${e}-backdrop`,R,!f&&"show")}),[f,R,e]),Me={...n,...I};Me.display="block";const ue=oe=>b.jsx("div",{role:"dialog",...oe,style:Me,className:ce(t,e,U&&`${e}-static`,!f&&"show"),onClick:p?ne:void 0,onMouseUp:G,"data-bs-theme":s,"aria-label":u,"aria-labelledby":l,"aria-describedby":c,children:b.jsx(o,{...D,onMouseDown:Q,className:r,contentClassName:i,children:a})});return b.jsx(b0.Provider,{value:L,children:b.jsx(aS,{show:d,ref:ee,backdrop:p,container:_,keyboard:!0,autoFocus:y,enforceFocus:C,restoreFocus:x,restoreFocusOptions:$,onEscapeKeyDown:re,onShow:v,onHide:w,onEnter:se,onEntering:_e,onEntered:E,onExit:fe,onExiting:k,onExited:ye,manager:F(),transition:f?H8:void 0,backdropTransition:f?V8:void 0,renderBackdrop:xe,renderDialog:ue})})});fS.displayName="Modal";const Zn=Object.assign(fS,{Body:lS,Header:uS,Title:dS,Footer:cS,Dialog:y0,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),q8=()=>{};function Y8(e,t,{disabled:n,clickTrigger:r}={}){const i=t||q8;C$(e,i,{disabled:n,clickTrigger:r});const a=En(o=>{QC(o)&&i(o)});h.useEffect(()=>{if(n||e==null)return;const o=Ps(gd(e));let s=(o.defaultView||window).event;const l=Ci(o,"keyup",c=>{if(c===s){s=void 0;return}a(c)});return()=>{l()}},[e,n,a])}const hS=ie.forwardRef((e,t)=>{const{flip:n,offset:r,placement:i,containerPadding:a,popperConfig:o={},transition:s,runTransition:l}=e,[c,u]=xg(),[d,f]=xg(),p=Zc(u,t),g=$g(e.container),m=$g(e.target),[v,w]=h.useState(!e.show),_=w$(m,c,$$({placement:i,enableEvents:!!e.show,containerPadding:a||5,flip:n,offset:r,arrowElement:d,popperConfig:o}));e.show&&v&&w(!1);const y=(...S)=>{w(!0),e.onExited&&e.onExited(...S)},C=e.show||!v;if(Y8(c,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!C)return null;const{onExit:x,onExiting:$,onEnter:E,onEntering:O,onEntered:k}=e;let j=e.children(Object.assign({},_.attributes.popper,{style:_.styles.popper,ref:p}),{popper:_,placement:i,show:!!e.show,arrowProps:Object.assign({},_.attributes.arrow,{style:_.styles.arrow,ref:f})});return j=Sg(s,l,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:j,onExit:x,onExiting:$,onExited:y,onEnter:E,onEntering:O,onEntered:k}),g?hn.createPortal(j,g):null});hS.displayName="Overlay";const pS=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=dt(t,"popover-header"),b.jsx(n,{ref:i,className:ce(e,t),...r})));pS.displayName="PopoverHeader";const w0=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=dt(t,"popover-body"),b.jsx(n,{ref:i,className:ce(e,t),...r})));w0.displayName="PopoverBody";function mS(e,t){let n=e;return e==="left"?n=t?"end":"start":e==="right"&&(n=t?"start":"end"),n}function gS(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const vS=ie.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=dt(e,"popover"),p=Ff(),[g]=(t==null?void 0:t.split("-"))||[],m=mS(g,p);let v=r;return c&&!s&&(v={...r,...gS(l==null?void 0:l.strategy)}),b.jsxs("div",{ref:d,role:"tooltip",style:v,"x-placement":g,className:ce(n,f,g&&`bs-popover-${m}`),...u,children:[b.jsx("div",{className:"popover-arrow",...o}),a?b.jsx(w0,{children:i}):i]})});vS.displayName="Popover";const vd=Object.assign(vS,{Header:pS,Body:w0,POPPER_OFFSET:[0,8]}),bS=ie.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:i,arrowProps:a,hasDoneInitialMeasure:o,popper:s,show:l,...c},u)=>{e=dt(e,"tooltip");const d=Ff(),[f]=(t==null?void 0:t.split("-"))||[],p=mS(f,d);let g=r;return l&&!o&&(g={...r,...gS(s==null?void 0:s.strategy)}),b.jsxs("div",{ref:u,style:g,role:"tooltip","x-placement":f,className:ce(n,e,`bs-tooltip-${p}`),...c,children:[b.jsx("div",{className:"tooltip-arrow",...a}),b.jsx("div",{className:`${e}-inner`,children:i})]})});bS.displayName="Tooltip";const yS=Object.assign(bS,{TOOLTIP_OFFSET:[0,6]});function G8(e){const t=h.useRef(null),n=dt(void 0,"popover"),r=dt(void 0,"tooltip"),i=h.useMemo(()=>({name:"offset",options:{offset:()=>{if(e)return e;if(t.current){if(Eg(t.current,n))return vd.POPPER_OFFSET;if(Eg(t.current,r))return yS.TOOLTIP_OFFSET}return[0,0]}}}),[e,n,r]);return[t,[i]]}function K8(e,t){const{ref:n}=e,{ref:r}=t;e.ref=n.__wrapped||(n.__wrapped=i=>n(Rd(i))),t.ref=r.__wrapped||(r.__wrapped=i=>r(Rd(i)))}const xS=ie.forwardRef(({children:e,transition:t=da,popperConfig:n={},rootClose:r=!1,placement:i="top",show:a=!1,...o},s)=>{const l=h.useRef({}),[c,u]=h.useState(null),[d,f]=G8(o.offset),p=xo(s,d),g=t===!0?da:t||void 0,m=ua(v=>{u(v),n==null||n.onFirstUpdate==null||n.onFirstUpdate(v)});return f0(()=>{c&&o.target&&(l.current.scheduleUpdate==null||l.current.scheduleUpdate())},[c,o.target]),h.useEffect(()=>{a||u(null)},[a]),b.jsx(hS,{...o,ref:p,popperConfig:{...n,modifiers:f.concat(n.modifiers||[]),onFirstUpdate:m},transition:g,rootClose:r,placement:i,show:a,children:(v,{arrowProps:w,popper:_,show:y})=>{var C;K8(v,w);const x=_==null?void 0:_.placement,$=Object.assign(l.current,{state:_==null?void 0:_.state,scheduleUpdate:_==null?void 0:_.update,placement:x,outOfBoundaries:(_==null||(C=_.state)==null||(C=C.modifiersData.hide)==null?void 0:C.isReferenceHidden)||!1,strategy:n.strategy}),E=!!c;return typeof e=="function"?e({...v,placement:x,show:y,...!t&&y&&{className:"show"},popper:$,arrowProps:w,hasDoneInitialMeasure:E}):ie.cloneElement(e,{...v,placement:x,arrowProps:w,popper:$,hasDoneInitialMeasure:E,className:ce(e.props.className,!t&&y&&"show"),style:{...e.props.style,...v.style}})}})});xS.displayName="Overlay";function Z8(e){return e&&typeof e=="object"?e:{show:e,hide:e}}function Z1(e,t,n){const[r]=t,i=r.currentTarget,a=r.relatedTarget||r.nativeEvent[n];(!a||a!==i)&&!rc(i,a)&&e(...t)}ve.oneOf(["click","hover","focus"]);const wS=({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=h.useRef(null),f=xo(d,Ls(n)),p=MA(),g=h.useRef(""),[m,v]=qC(i,a,o),w=Z8(s),{onFocus:_,onBlur:y,onClick:C}=typeof n!="function"?ie.Children.only(n).props:{},x=D=>{f(Rd(D))},$=h.useCallback(()=>{if(p.clear(),g.current="show",!w.show){v(!0);return}p.set(()=>{g.current==="show"&&v(!0)},w.show)},[w.show,v,p]),E=h.useCallback(()=>{if(p.clear(),g.current="hide",!w.hide){v(!1);return}p.set(()=>{g.current==="hide"&&v(!1)},w.hide)},[w.hide,v,p]),O=h.useCallback((...D)=>{$(),_==null||_(...D)},[$,_]),k=h.useCallback((...D)=>{E(),y==null||y(...D)},[E,y]),j=h.useCallback((...D)=>{v(!m),C==null||C(...D)},[C,v,m]),S=h.useCallback((...D)=>{Z1($,D,"fromElement")},[$]),T=h.useCallback((...D)=>{Z1(E,D,"toElement")},[E]),R=e==null?[]:[].concat(e),N={ref:x};return R.indexOf("click")!==-1&&(N.onClick=j),R.indexOf("focus")!==-1&&(N.onFocus=O,N.onBlur=k),R.indexOf("hover")!==-1&&(process.env.NODE_ENV!=="production"&&wo(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.'),N.onMouseOver=S,N.onMouseOut=T),b.jsxs(b.Fragment,{children:[typeof n=="function"?n(N):h.cloneElement(n,N),b.jsx(xS,{...u,show:m,onHide:E,flip:c,placement:l,popperConfig:r,target:d.current,children:t})]})},_0=ie.forwardRef(({bsPrefix:e,variant:t,animation:n="border",size:r,as:i="div",className:a,...o},s)=>{e=dt(e,"spinner");const l=`${e}-${n}`;return b.jsx(i,{ref:s,...o,className:ce(a,l,r&&`${l}-${r}`,t&&`text-${t}`)})});_0.displayName="Spinner";var _S={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},X1=h.createContext&&h.createContext(_S),X8=["attr","size","title"];function Q8(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 Pd(){return Pd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pd.apply(this,arguments)}function Q1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ld(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Q1(Object(n),!0).forEach(function(r){ej(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ej(e,t,n){return t=tj(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tj(e){var t=nj(e,"string");return typeof t=="symbol"?t:t+""}function nj(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 CS(e){return e&&e.map((t,n)=>h.createElement(t.tag,Ld({key:n},t.attr),CS(t.child)))}function ut(e){return t=>h.createElement(rj,Pd({attr:Ld({},e.attr)},t),CS(e.child))}function rj(e){var t=n=>{var{attr:r,size:i,title:a}=e,o=Q8(e,X8),s=i||n.size||"1em",l;return n.className&&(l=n.className),e.className&&(l=(l?l+" ":"")+e.className),h.createElement("svg",Pd({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,o,{className:l,style:Ld(Ld({color:e.color||n.color},n.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),a&&h.createElement("title",null,a),e.children)};return X1!==void 0?h.createElement(X1.Consumer,null,n=>t(n)):t(_S)}function ij(e){return ut({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 Xc(e){return ut({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 aj(e){return ut({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 oj(e){return ut({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 sj(e){return ut({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 lj(e){return ut({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m10 17 5-5-5-5v10z"},child:[]},{tag:"path",attr:{fill:"none",d:"M0 24V0h24v24H0z"},child:[]}]})(e)}function cj(e){return ut({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 uj(e){return ut({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 dj(e){return ut({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 $S(e){return ut({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 fj(e){return ut({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 hj(e){return ut({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 pj(e){return ut({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 mj(e){return ut({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 gj(e){return ut({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 vj(e){return ut({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 bj(e){return ut({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 yj(e){return ut({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 xj(e){return ut({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 wj(e){return ut({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 _j(e){return ut({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17.59 18 19 16.59 14.42 12 19 7.41 17.59 6l-6 6z"},child:[]},{tag:"path",attr:{d:"m11 18 1.41-1.41L7.83 12l4.58-4.59L11 6l-6 6z"},child:[]}]})(e)}function Cj(e){return ut({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 $j(e){return ut({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 Sj(e){return ut({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 Ej(e){return ut({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 kj(e){return ut({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 SS(e){return ut({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 Tj(e){return ut({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 ES(e){return ut({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 Oj(e){return ut({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 Mj(e){return ut({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 Aj(e){return ut({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{fill:"none"},child:[{tag:"path",attr:{d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M0 0h24v24H0V0z"},child:[]}]},{tag:"path",attr:{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27z"},child:[]}]})(e)}const sn=h.createContext({cookieDomain:"",axiosOptions:{},language:"",localizationContext:{},texts:{},ProjectIconComponent:{},chartColorPalette:void 0}),kS=h.createContext({show:!1,text:"",textSm:!1,showConfirm:(e,t)=>{},hideConfirm:()=>{}}),TS=h.createContext({isShown:!1,text:"",hidePrompt:()=>{},showPrompt:()=>{},resolveRef:{current:()=>{}},options:{input:"textarea",type:"text"},setOptions:()=>{}}),OS=()=>{const{isShown:e,text:t,showPrompt:n,hidePrompt:r,resolveRef:i,setOptions:a}=h.useContext(TS),o=h.useCallback(l=>{r(),i.current(l)},[r,i]),s=h.useCallback(async(l,c)=>(a(u=>({...u,...c})),n(l),new Promise(u=>{i.current=u})),[i,a,n]);return{isShown:e,text:t,prompt:s,onFinish:o}};let Rj={data:""},jj=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||Rj},Dj=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Nj=/\/\*[^]*?\*\/| +/g,J1=/\n+/g,ta=(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"?ta(o,a):a+"{"+ta(o,a[1]=="k"?"":t)+"}":typeof o=="object"?r+=ta(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+=ta.p?ta.p(a,o):a+":"+o+";")}return n+(t&&i?t+"{"+i+"}":i)+r},hi={},MS=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+MS(e[n]);return t}return e},Ij=(e,t,n,r,i)=>{let a=MS(e),o=hi[a]||(hi[a]=(l=>{let c=0,u=11;for(;c<l.length;)u=101*u+l.charCodeAt(c++)>>>0;return"go"+u})(a));if(!hi[o]){let l=a!==e?e:(c=>{let u,d,f=[{}];for(;u=Dj.exec(c.replace(Nj,""));)u[4]?f.shift():u[3]?(d=u[3].replace(J1," ").trim(),f.unshift(f[0][d]=f[0][d]||{})):f[0][u[1]]=u[2].replace(J1," ").trim();return f[0]})(e);hi[o]=ta(i?{["@keyframes "+o]:l}:l,n?"":"."+o)}let s=n&&hi.g?hi.g:null;return n&&(hi.g=hi[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)})(hi[o],t,r,s),o},Pj=(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?"":ta(s,""):s===!1?"":s}return r+i+(o??"")},"");function Kf(e){let t=this||{},n=e.call?e(t.p):e;return Ij(n.unshift?n.raw?Pj(n,[].slice.call(arguments,1),t.p):n.reduce((r,i)=>Object.assign(r,i&&i.call?i(t.p):i),{}):n,jj(t.target),t.g,t.o,t.k)}let AS,kg,Tg;Kf.bind({g:1});let ji=Kf.bind({k:1});function Lj(e,t,n,r){ta.p=t,AS=e,kg=n,Tg=r}function Ca(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:kg&&kg()},s),n.o=/ *go\d+/.test(l),s.className=Kf.apply(n,r)+(l?" "+l:"");let c=e;return e[0]&&(c=s.as||e,delete s.as),Tg&&c[0]&&Tg(s),AS(c,s)}return i}}var Fj=e=>typeof e=="function",Fd=(e,t)=>Fj(e)?e(t):e,Bj=(()=>{let e=0;return()=>(++e).toString()})(),RS=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),zj=20,C0="default",jS=(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 jS(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}))}}},bd=[],DS={toasts:[],pausedAt:void 0,settings:{toastLimit:zj}},Vr={},NS=(e,t=C0)=>{Vr[t]=jS(Vr[t]||DS,e),bd.forEach(([n,r])=>{n===t&&r(Vr[t])})},IS=e=>Object.keys(Vr).forEach(t=>NS(e,t)),Wj=e=>Object.keys(Vr).find(t=>Vr[t].toasts.some(n=>n.id===e)),Zf=(e=C0)=>t=>{NS(t,e)},Uj={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Hj=(e={},t=C0)=>{let[n,r]=h.useState(Vr[t]||DS),i=h.useRef(Vr[t]);h.useEffect(()=>(i.current!==Vr[t]&&r(Vr[t]),bd.push([t,r]),()=>{let o=bd.findIndex(([s])=>s===t);o>-1&&bd.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)||Uj[o.type],style:{...e.style,...(c=e[o.type])==null?void 0:c.style,...o.style}}});return{...n,toasts:a}},Vj=(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)||Bj()}),Qc=e=>(t,n)=>{let r=Vj(t,e,n);return Zf(r.toasterId||Wj(r.id))({type:2,toast:r}),r.id},vn=(e,t)=>Qc("blank")(e,t);vn.error=Qc("error");vn.success=Qc("success");vn.loading=Qc("loading");vn.custom=Qc("custom");vn.dismiss=(e,t)=>{let n={type:3,toastId:e};t?Zf(t)(n):IS(n)};vn.dismissAll=e=>vn.dismiss(void 0,e);vn.remove=(e,t)=>{let n={type:4,toastId:e};t?Zf(t)(n):IS(n)};vn.removeAll=e=>vn.remove(void 0,e);vn.promise=(e,t,n)=>{let r=vn.loading(t.loading,{...n,...n==null?void 0:n.loading});return typeof e=="function"&&(e=e()),e.then(i=>{let a=t.success?Fd(t.success,i):void 0;return a?vn.success(a,{id:r,...n,...n==null?void 0:n.success}):vn.dismiss(r),i}).catch(i=>{let a=t.error?Fd(t.error,i):void 0;a?vn.error(a,{id:r,...n,...n==null?void 0:n.error}):vn.dismiss(r)}),e};var qj=1e3,Yj=(e,t="default")=>{let{toasts:n,pausedAt:r}=Hj(e,t),i=h.useRef(new Map).current,a=h.useCallback((d,f=qj)=>{if(i.has(d))return;let p=setTimeout(()=>{i.delete(d),o({type:4,toastId:d})},f);i.set(d,p)},[]);h.useEffect(()=>{if(r)return;let d=Date.now(),f=n.map(p=>{if(p.duration===1/0)return;let g=(p.duration||0)+p.pauseDuration-(d-p.createdAt);if(g<0){p.visible&&vn.dismiss(p.id);return}return setTimeout(()=>vn.dismiss(p.id,t),g)});return()=>{f.forEach(p=>p&&clearTimeout(p))}},[n,r,t]);let o=h.useCallback(Zf(t),[t]),s=h.useCallback(()=>{o({type:5,time:Date.now()})},[o]),l=h.useCallback((d,f)=>{o({type:1,toast:{id:d,height:f}})},[o]),c=h.useCallback(()=>{r&&o({type:6,time:Date.now()})},[r,o]),u=h.useCallback((d,f)=>{let{reverseOrder:p=!1,gutter:g=8,defaultPosition:m}=f||{},v=n.filter(y=>(y.position||m)===(d.position||m)&&y.height),w=v.findIndex(y=>y.id===d.id),_=v.filter((y,C)=>C<w&&y.visible).length;return v.filter(y=>y.visible).slice(...p?[_+1]:[0,_]).reduce((y,C)=>y+(C.height||0)+g,0)},[n]);return h.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}}},Gj=ji`
25
- from {
26
- transform: scale(0) rotate(45deg);
27
- opacity: 0;
28
- }
29
- to {
30
- transform: scale(1) rotate(45deg);
31
- opacity: 1;
32
- }`,Kj=ji`
33
- from {
34
- transform: scale(0);
35
- opacity: 0;
36
- }
37
- to {
38
- transform: scale(1);
39
- opacity: 1;
40
- }`,Zj=ji`
41
- from {
42
- transform: scale(0) rotate(90deg);
43
- opacity: 0;
44
- }
45
- to {
46
- transform: scale(1) rotate(90deg);
47
- opacity: 1;
48
- }`,Xj=Ca("div")`
49
- width: 20px;
50
- opacity: 0;
51
- height: 20px;
52
- border-radius: 10px;
53
- background: ${e=>e.primary||"#ff4b4b"};
54
- position: relative;
55
- transform: rotate(45deg);
56
-
57
- animation: ${Gj} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
58
- forwards;
59
- animation-delay: 100ms;
60
-
61
- &:after,
62
- &:before {
63
- content: '';
64
- animation: ${Kj} 0.15s ease-out forwards;
65
- animation-delay: 150ms;
66
- position: absolute;
67
- border-radius: 3px;
68
- opacity: 0;
69
- background: ${e=>e.secondary||"#fff"};
70
- bottom: 9px;
71
- left: 4px;
72
- height: 2px;
73
- width: 12px;
74
- }
75
-
76
- &:before {
77
- animation: ${Zj} 0.15s ease-out forwards;
78
- animation-delay: 180ms;
79
- transform: rotate(90deg);
80
- }
81
- `,Qj=ji`
82
- from {
83
- transform: rotate(0deg);
84
- }
85
- to {
86
- transform: rotate(360deg);
87
- }
88
- `,Jj=Ca("div")`
89
- width: 12px;
90
- height: 12px;
91
- box-sizing: border-box;
92
- border: 2px solid;
93
- border-radius: 100%;
94
- border-color: ${e=>e.secondary||"#e0e0e0"};
95
- border-right-color: ${e=>e.primary||"#616161"};
96
- animation: ${Qj} 1s linear infinite;
97
- `,eD=ji`
98
- from {
99
- transform: scale(0) rotate(45deg);
100
- opacity: 0;
101
- }
102
- to {
103
- transform: scale(1) rotate(45deg);
104
- opacity: 1;
105
- }`,tD=ji`
106
- 0% {
107
- height: 0;
108
- width: 0;
109
- opacity: 0;
110
- }
111
- 40% {
112
- height: 0;
113
- width: 6px;
114
- opacity: 1;
115
- }
116
- 100% {
117
- opacity: 1;
118
- height: 10px;
119
- }`,nD=Ca("div")`
120
- width: 20px;
121
- opacity: 0;
122
- height: 20px;
123
- border-radius: 10px;
124
- background: ${e=>e.primary||"#61d345"};
125
- position: relative;
126
- transform: rotate(45deg);
127
-
128
- animation: ${eD} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
129
- forwards;
130
- animation-delay: 100ms;
131
- &:after {
132
- content: '';
133
- box-sizing: border-box;
134
- animation: ${tD} 0.2s ease-out forwards;
135
- opacity: 0;
136
- animation-delay: 200ms;
137
- position: absolute;
138
- border-right: 2px solid;
139
- border-bottom: 2px solid;
140
- border-color: ${e=>e.secondary||"#fff"};
141
- bottom: 6px;
142
- left: 6px;
143
- height: 10px;
144
- width: 6px;
145
- }
146
- `,rD=Ca("div")`
147
- position: absolute;
148
- `,iD=Ca("div")`
149
- position: relative;
150
- display: flex;
151
- justify-content: center;
152
- align-items: center;
153
- min-width: 20px;
154
- min-height: 20px;
155
- `,aD=ji`
156
- from {
157
- transform: scale(0.6);
158
- opacity: 0.4;
159
- }
160
- to {
161
- transform: scale(1);
162
- opacity: 1;
163
- }`,oD=Ca("div")`
164
- position: relative;
165
- transform: scale(0.6);
166
- opacity: 0.4;
167
- min-width: 20px;
168
- animation: ${aD} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
169
- forwards;
170
- `,sD=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?ie.createElement(oD,null,t):t:n==="blank"?null:ie.createElement(iD,null,ie.createElement(Jj,{...r}),n!=="loading"&&ie.createElement(rD,null,n==="error"?ie.createElement(Xj,{...r}):ie.createElement(nD,{...r})))},lD=e=>`
171
- 0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
172
- 100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
173
- `,cD=e=>`
174
- 0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
175
- 100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
176
- `,uD="0%{opacity:0;} 100%{opacity:1;}",dD="0%{opacity:1;} 100%{opacity:0;}",fD=Ca("div")`
177
- display: flex;
178
- align-items: center;
179
- background: #fff;
180
- color: #363636;
181
- line-height: 1.3;
182
- will-change: transform;
183
- box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
184
- max-width: 350px;
185
- pointer-events: auto;
186
- padding: 8px 10px;
187
- border-radius: 8px;
188
- `,hD=Ca("div")`
189
- display: flex;
190
- justify-content: center;
191
- margin: 4px 10px;
192
- color: inherit;
193
- flex: 1 1 auto;
194
- white-space: pre-line;
195
- `,pD=(e,t)=>{let n=e.includes("top")?1:-1,[r,i]=RS()?[uD,dD]:[lD(n),cD(n)];return{animation:t?`${ji(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${ji(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},mD=ie.memo(({toast:e,position:t,style:n,children:r})=>{let i=e.height?pD(e.position||t||"top-center",e.visible):{opacity:0},a=ie.createElement(sD,{toast:e}),o=ie.createElement(hD,{...e.ariaProps},Fd(e.message,e));return ie.createElement(fD,{className:e.className,style:{...i,...n,...e.style}},typeof r=="function"?r({icon:a,message:o}):ie.createElement(ie.Fragment,null,a,o))});Lj(ie.createElement);var gD=({id:e,className:t,style:n,onHeightUpdate:r,children:i})=>{let a=ie.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 ie.createElement("div",{ref:a,className:t,style:n},i)},vD=(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:RS()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...i}},bD=Kf`
196
- z-index: 9999;
197
- > * {
198
- pointer-events: auto;
199
- }
200
- `,zu=16,yD=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:i,toasterId:a,containerStyle:o,containerClassName:s})=>{let{toasts:l,handlers:c}=Yj(n,a);return ie.createElement("div",{"data-rht-toaster":a||"",style:{position:"fixed",zIndex:9999,top:zu,left:zu,right:zu,bottom:zu,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}),p=vD(d,f);return ie.createElement(gD,{id:u.id,key:u.id,onHeightUpdate:c.updateHeight,className:u.visible?bD:"",style:p},u.type==="custom"?Fd(u.message,u):i?i(u):ie.createElement(mD,{toast:u,position:d}))}))},Lo=vn;const Xf=h.createContext({isLoading:!1,startLoading:e=>{},stopLoading:e=>{}});var Og;(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"})(Og||(Og={}));const PS=Og;var Mg;(function(e){e[e.Odebrano=-2]="Odebrano",e[e.Zamitnuto=-1]="Zamitnuto",e[e.Nevyrizeno=0]="Nevyrizeno",e[e.Schvaleno=1]="Schvaleno"})(Mg||(Mg={}));const xD=Mg,LS=h.createContext({user:null,userLoginState:{state:PS.LOGGED_OUT,user:null},loginUser:()=>Promise.resolve(!0),logoutUser:()=>{}}),Qf=h.createContext({useMsal:!1,msalInstance:null,msalScopes:[],msalExtraScopes:[],getToken:async()=>null}),FS=h.createContext({delegation:null,setDelegation:()=>{},availableDelegations:null,setAvailableDelegations:()=>{},refreshAvailableDelegations:async()=>{}}),Bd=e=>e==null?!0:!(typeof e=="object"||typeof e=="function"),BS=e=>{Bd(e)||Object.keys(e).forEach(t=>{const n=e[t];if(Bd(n))return;const r=Object.keys(n);r.includes("id")&&r.length===1&&n.id===null?e[t]=null:BS(n)})},zS=e=>Object.values(e).every(t=>t===null),wD=e=>{const t={};return Object.entries(e).forEach(([n,r])=>{r&&typeof r=="object"&&zS(r)?t[n]=null:t[n]=r}),t},$0=e=>{var n;const t=(n=e.response)==null?void 0:n.data;return t&&t.errorFields&&t.errorFields.length>0?t.errorFields.map(r=>({name:r.name.split(".").map(a=>`${a.charAt(0).toLowerCase()}${a.slice(1)}`).join("."),errors:r.errors})):[]},_D=(e,t)=>{$0(t).forEach(r=>{e.setError(r.name,{message:r.errors,type:"server"},{shouldFocus:!0}),Bd(e.getValues(r.name))||e.setError(`${r.name}.id`,{message:r.errors,type:"server"},{shouldFocus:!0})})},WS=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},US=({heading:e,content:t,placement:n,children:r,trigger:i=["hover"],popoverClassName:a,small:o,delay:s,...l})=>{const c=i.includes("hover")&&!i.includes("focus")?[...i,"focus"]:i;return b.jsx(wS,{placement:n,overlay:b.jsxs(vd,{className:ce("luminus-popover",{"luminus-popover-sm":o},a),onClick:u=>u.stopPropagation(),children:[e&&b.jsx(vd.Header,{children:typeof e=="string"?b.jsx(Bn,{variant:"h6",className:"text-primary",children:e}):e}),b.jsx(vd.Body,{children:t})]}),trigger:c,rootClose:!0,show:l.controlled?l.isOpen:void 0,onToggle:l.controlled?u=>l.setIsOpen(u):void 0,delay:s,children:r})},CD="_h1_14r4v_1",$D="_h3_14r4v_8",SD="_h6_14r4v_15",ED="_subtitle_14r4v_22",kD="_body_14r4v_29",TD="_body2_14r4v_36",OD="_caption_14r4v_43",MD="_form-label_14r4v_50",Yi={h1:CD,h3:$D,h6:SD,subtitle:ED,body:kD,body2:TD,caption:OD,formLabel:MD},AD=({variant:e,className:t,children:n})=>{switch(e){case"h1":return b.jsx("h1",{className:ce("luminus-text-primary luminus-h1",Yi.h1,t),children:n});case"h3":return b.jsx("h3",{className:ce("luminus-text luminus-h3",Yi.h3,t),children:n});case"h6":return b.jsx("h6",{className:ce("luminus-text luminus-h6",Yi.h6,t),children:n});case"subtitle":return b.jsx("div",{className:ce("luminus-text luminus-subtitle",Yi.subtitle,t),children:n});case"body":return b.jsx("div",{className:ce("luminus-text luminus-body",Yi.body,t),children:n});case"body2":return b.jsx("div",{className:ce("luminus-text luminus-body2",Yi.body2,t),children:n});case"caption":return b.jsx("div",{className:ce("luminus-text-muted luminus-caption",Yi.caption,t),children:n});case"form-label":return b.jsx("div",{className:ce("luminus-text luminus-form-label",Yi.formLabel,t),children:n});default:return b.jsx(b.Fragment,{children:n})}},Bn=({variant:e,className:t,children:n})=>b.jsx(AD,{variant:e,className:t,children:n}),S0=({text:e,placement:t,children:n,delay:r})=>b.jsx(US,{content:b.jsx(Bn,{variant:"body2",className:"text-center",children:e}),placement:t,delay:r,small:!0,children:n}),HS=e=>e.length<300?e:e.substring(0,300)+"...",xs=e=>e<1024?`${e.toFixed(2)} bytes`:e>=1024&&e<1048576?`${(e/1024).toFixed(1)} kB`:`${(e/1048576).toFixed(1)} MB`;function E0(e=" ",...t){return t.filter(n=>n!=null&&n.length>0).join(e)}const Ag=(e,t)=>e.map(n=>`&${t}=${n}`).join("").substring(1),RD=(e,t)=>e===null?null:e.length<=t?e:e.slice(0,t)+"…";function jD(e){return e==null?"":Yv(Lf(e),"dd.MM.yyyy")}function Jf(e){return(e==null?void 0:e.toString().split("T")[0])??""}function DD(e){return e==null?"":Yv(Lf(e),"dd.MM.yyyy HH:mm")}function ND(e){return e&&e.charAt(0).toUpperCase()+e.slice(1)}const ID=(e,t)=>E0(" ",e?`${e},`:void 0,t),PD=(e,t)=>`${t}${e!=null?` (${e})`:""}`,LD=(e,t)=>`[${e??""}] ${t??""}`,VS=e=>decodeURIComponent(atob(e).split("").map(t=>"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)).join("")),qS=e=>{const t=Lf(e);return!Number.isNaN(t.getTime())};function FD(){const e=new Date,t=new Date(e);return t.setHours(24,0,0,0),t.getTime()-e.getTime()}function BD(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function zD(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 WD(e,t){const n=new Date(e),r=new Date(t);return n.getTime()-r.getTime()}function UD(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 YS(e=new Date){const t=new Date(e);return t.setUTCDate(1),t}function GS(e=new Date){return C6(e)}function HD(e){const t=new Date;return t.setUTCMonth(t.getUTCMonth()+e),YS(t)}function VD(e){const t=new Date;return t.setUTCMonth(t.getUTCMonth()+e),GS(t)}function qD(e){const t=e??new Date().getFullYear(),n=new Date(t,0,1);return n.setMinutes(n.getMinutes()-n.getTimezoneOffset()),n}function YD(e){const t=e??new Date().getFullYear(),n=new Date(t,11,31);return n.setMinutes(n.getMinutes()-n.getTimezoneOffset()),n}function GD(e){return Jf(e.toISOString())}function KS(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=VS(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 zd(e,t,n=!0){const r=URL.createObjectURL(e),i=document.createElement("a");i.href=r,i.setAttribute("style","display: none"),n?(window.open(r,"_blank","noopener,noreferrer"),setTimeout(()=>URL.revokeObjectURL(r),6e4)):(i.setAttribute("download",t),document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(r))}const KD=["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"],ZD=["pdf","txt","html","xml","jpg","jpeg","png","gif","webp","svg","bmp","ico","mp3","wav","ogg","m4a","mp4","webm","ogv"],ZS=e=>KD.includes(e.type),XS=e=>ZD.includes(e.toLowerCase());function XD(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=KS(e.headers.get("Content-disposition"))??n)}const r=ZS(e.data),i=(t==null?void 0:t.tryToOpen)===void 0?localStorage.getItem("file-download-try-opening")!=="false":t.tryToOpen;zd(e.data,n,r?i:!1)}function ws(e,t=ws.characters){return e.replace(/[^A-Za-z0-9]/g,function(n){return t[n]||n})}ws.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 Rg=(e,t)=>t?e?ws(e).toLowerCase().includes(ws(t.toLowerCase())):!1:!0,QS=(e,t)=>t?e?ws(e).toLowerCase().startsWith(ws(t.toLowerCase())):!1:!0,k0=(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("*")?Rg(a,i.substring(1)):QS(a,i):Rg(a,i):!0};function JS(e,t){return function(){return e.apply(t,arguments)}}const{toString:QD}=Object.prototype,{getPrototypeOf:T0}=Object,{iterator:eh,toStringTag:e4}=Symbol,th=(e=>t=>{const n=QD.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Lr=e=>(e=e.toLowerCase(),t=>th(t)===e),nh=e=>t=>typeof t===e,{isArray:zs}=Array,_s=nh("undefined");function Jc(e){return e!==null&&!_s(e)&&e.constructor!==null&&!_s(e.constructor)&&Jn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const t4=Lr("ArrayBuffer");function JD(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&t4(e.buffer),t}const e7=nh("string"),Jn=nh("function"),n4=nh("number"),eu=e=>e!==null&&typeof e=="object",t7=e=>e===!0||e===!1,yd=e=>{if(th(e)!=="object")return!1;const t=T0(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(e4 in e)&&!(eh in e)},n7=e=>{if(!eu(e)||Jc(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},r7=Lr("Date"),i7=Lr("File"),a7=Lr("Blob"),o7=Lr("FileList"),s7=e=>eu(e)&&Jn(e.pipe),l7=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Jn(e.append)&&((t=th(e))==="formdata"||t==="object"&&Jn(e.toString)&&e.toString()==="[object FormData]"))},c7=Lr("URLSearchParams"),[u7,d7,f7,h7]=["ReadableStream","Request","Response","Headers"].map(Lr),p7=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function tu(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),zs(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(Jc(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 r4(e,t){if(Jc(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 Ha=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,i4=e=>!_s(e)&&e!==Ha;function jg(){const{caseless:e,skipUndefined:t}=i4(this)&&this||{},n={},r=(i,a)=>{const o=e&&r4(n,a)||a;yd(n[o])&&yd(i)?n[o]=jg(n[o],i):yd(i)?n[o]=jg({},i):zs(i)?n[o]=i.slice():(!t||!_s(i))&&(n[o]=i)};for(let i=0,a=arguments.length;i<a;i++)arguments[i]&&tu(arguments[i],r);return n}const m7=(e,t,n,{allOwnKeys:r}={})=>(tu(t,(i,a)=>{n&&Jn(i)?e[a]=JS(i,n):e[a]=i},{allOwnKeys:r}),e),g7=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),v7=(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)},b7=(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&&T0(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},y7=(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},x7=e=>{if(!e)return null;if(zs(e))return e;let t=e.length;if(!n4(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},w7=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&T0(Uint8Array)),_7=(e,t)=>{const r=(e&&e[eh]).call(e);let i;for(;(i=r.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},C7=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},$7=Lr("HTMLFormElement"),S7=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),ex=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),E7=Lr("RegExp"),a4=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};tu(n,(i,a)=>{let o;(o=t(i,a,e))!==!1&&(r[a]=o||i)}),Object.defineProperties(e,r)},k7=e=>{a4(e,(t,n)=>{if(Jn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Jn(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},T7=(e,t)=>{const n={},r=i=>{i.forEach(a=>{n[a]=!0})};return zs(e)?r(e):r(String(e).split(t)),n},O7=()=>{},M7=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function A7(e){return!!(e&&Jn(e.append)&&e[e4]==="FormData"&&e[eh])}const R7=e=>{const t=new Array(10),n=(r,i)=>{if(eu(r)){if(t.indexOf(r)>=0)return;if(Jc(r))return r;if(!("toJSON"in r)){t[i]=r;const a=zs(r)?[]:{};return tu(r,(o,s)=>{const l=n(o,i+1);!_s(l)&&(a[s]=l)}),t[i]=void 0,a}}return r};return n(e,0)},j7=Lr("AsyncFunction"),D7=e=>e&&(eu(e)||Jn(e))&&Jn(e.then)&&Jn(e.catch),o4=((e,t)=>e?setImmediate:t?((n,r)=>(Ha.addEventListener("message",({source:i,data:a})=>{i===Ha&&a===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Ha.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Jn(Ha.postMessage)),N7=typeof queueMicrotask<"u"?queueMicrotask.bind(Ha):typeof process<"u"&&process.nextTick||o4,I7=e=>e!=null&&Jn(e[eh]),ae={isArray:zs,isArrayBuffer:t4,isBuffer:Jc,isFormData:l7,isArrayBufferView:JD,isString:e7,isNumber:n4,isBoolean:t7,isObject:eu,isPlainObject:yd,isEmptyObject:n7,isReadableStream:u7,isRequest:d7,isResponse:f7,isHeaders:h7,isUndefined:_s,isDate:r7,isFile:i7,isBlob:a7,isRegExp:E7,isFunction:Jn,isStream:s7,isURLSearchParams:c7,isTypedArray:w7,isFileList:o7,forEach:tu,merge:jg,extend:m7,trim:p7,stripBOM:g7,inherits:v7,toFlatObject:b7,kindOf:th,kindOfTest:Lr,endsWith:y7,toArray:x7,forEachEntry:_7,matchAll:C7,isHTMLForm:$7,hasOwnProperty:ex,hasOwnProp:ex,reduceDescriptors:a4,freezeMethods:k7,toObjectSet:T7,toCamelCase:S7,noop:O7,toFiniteNumber:M7,findKey:r4,global:Ha,isContextDefined:i4,isSpecCompliantForm:A7,toJSONObject:R7,isAsyncFn:j7,isThenable:D7,setImmediate:o4,asap:N7,isIterable:I7};function rt(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)}ae.inherits(rt,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:ae.toJSONObject(this.config),code:this.code,status:this.status}}});const s4=rt.prototype,l4={};["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=>{l4[e]={value:e}});Object.defineProperties(rt,l4);Object.defineProperty(s4,"isAxiosError",{value:!0});rt.from=(e,t,n,r,i,a)=>{const o=Object.create(s4);ae.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 rt.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 P7=null;function Dg(e){return ae.isPlainObject(e)||ae.isArray(e)}function c4(e){return ae.endsWith(e,"[]")?e.slice(0,-2):e}function tx(e,t,n){return e?e.concat(t).map(function(i,a){return i=c4(i),!n&&a?"["+i+"]":i}).join(n?".":""):t}function L7(e){return ae.isArray(e)&&!e.some(Dg)}const F7=ae.toFlatObject(ae,{},null,function(t){return/^is[A-Z]/.test(t)});function rh(e,t,n){if(!ae.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ae.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,v){return!ae.isUndefined(v[m])});const r=n.metaTokens,i=n.visitor||u,a=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&ae.isSpecCompliantForm(t);if(!ae.isFunction(i))throw new TypeError("visitor must be a function");function c(g){if(g===null)return"";if(ae.isDate(g))return g.toISOString();if(ae.isBoolean(g))return g.toString();if(!l&&ae.isBlob(g))throw new rt("Blob is not supported. Use a Buffer instead.");return ae.isArrayBuffer(g)||ae.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,m,v){let w=g;if(g&&!v&&typeof g=="object"){if(ae.endsWith(m,"{}"))m=r?m:m.slice(0,-2),g=JSON.stringify(g);else if(ae.isArray(g)&&L7(g)||(ae.isFileList(g)||ae.endsWith(m,"[]"))&&(w=ae.toArray(g)))return m=c4(m),w.forEach(function(y,C){!(ae.isUndefined(y)||y===null)&&t.append(o===!0?tx([m],C,a):o===null?m:m+"[]",c(y))}),!1}return Dg(g)?!0:(t.append(tx(v,m,a),c(g)),!1)}const d=[],f=Object.assign(F7,{defaultVisitor:u,convertValue:c,isVisitable:Dg});function p(g,m){if(!ae.isUndefined(g)){if(d.indexOf(g)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(g),ae.forEach(g,function(w,_){(!(ae.isUndefined(w)||w===null)&&i.call(t,w,ae.isString(_)?_.trim():_,m,f))===!0&&p(w,m?m.concat(_):[_])}),d.pop()}}if(!ae.isObject(e))throw new TypeError("data must be an object");return p(e),t}function nx(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function O0(e,t){this._pairs=[],e&&rh(e,this,t)}const u4=O0.prototype;u4.append=function(t,n){this._pairs.push([t,n])};u4.toString=function(t){const n=t?function(r){return t.call(this,r,nx)}:nx;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function B7(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function d4(e,t,n){if(!t)return e;const r=n&&n.encode||B7;ae.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let a;if(i?a=i(t,n):a=ae.isURLSearchParams(t)?t.toString():new O0(t,n).toString(r),a){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class rx{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){ae.forEach(this.handlers,function(r){r!==null&&t(r)})}}const f4={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},z7=typeof URLSearchParams<"u"?URLSearchParams:O0,W7=typeof FormData<"u"?FormData:null,U7=typeof Blob<"u"?Blob:null,H7={isBrowser:!0,classes:{URLSearchParams:z7,FormData:W7,Blob:U7},protocols:["http","https","file","blob","url","data"]},M0=typeof window<"u"&&typeof document<"u",Ng=typeof navigator=="object"&&navigator||void 0,V7=M0&&(!Ng||["ReactNative","NativeScript","NS"].indexOf(Ng.product)<0),q7=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Y7=M0&&window.location.href||"http://localhost",G7=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:M0,hasStandardBrowserEnv:V7,hasStandardBrowserWebWorkerEnv:q7,navigator:Ng,origin:Y7},Symbol.toStringTag,{value:"Module"})),Rn={...G7,...H7};function K7(e,t){return rh(e,new Rn.classes.URLSearchParams,{visitor:function(n,r,i,a){return Rn.isNode&&ae.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}function Z7(e){return ae.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function X7(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 h4(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&&ae.isArray(i)?i.length:o,l?(ae.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!s):((!i[o]||!ae.isObject(i[o]))&&(i[o]=[]),t(n,r,i[o],a)&&ae.isArray(i[o])&&(i[o]=X7(i[o])),!s)}if(ae.isFormData(e)&&ae.isFunction(e.entries)){const n={};return ae.forEachEntry(e,(r,i)=>{t(Z7(r),i,n,0)}),n}return null}function Q7(e,t,n){if(ae.isString(e))try{return(t||JSON.parse)(e),ae.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const nu={transitional:f4,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,a=ae.isObject(t);if(a&&ae.isHTMLForm(t)&&(t=new FormData(t)),ae.isFormData(t))return i?JSON.stringify(h4(t)):t;if(ae.isArrayBuffer(t)||ae.isBuffer(t)||ae.isStream(t)||ae.isFile(t)||ae.isBlob(t)||ae.isReadableStream(t))return t;if(ae.isArrayBufferView(t))return t.buffer;if(ae.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 K7(t,this.formSerializer).toString();if((s=ae.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return rh(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return a||i?(n.setContentType("application/json",!1),Q7(t)):t}],transformResponse:[function(t){const n=this.transitional||nu.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(ae.isResponse(t)||ae.isReadableStream(t))return t;if(t&&ae.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"?rt.from(s,rt.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:Rn.classes.FormData,Blob:Rn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ae.forEach(["delete","get","head","post","put","patch"],e=>{nu.headers[e]={}});const J7=ae.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"]),eN=e=>{const t={};let n,r,i;return e&&e.split(`
201
- `).forEach(function(o){i=o.indexOf(":"),n=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!n||t[n]&&J7[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},ix=Symbol("internals");function pl(e){return e&&String(e).trim().toLowerCase()}function xd(e){return e===!1||e==null?e:ae.isArray(e)?e.map(xd):String(e)}function tN(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 nN=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function nm(e,t,n,r,i){if(ae.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!ae.isString(t)){if(ae.isString(r))return t.indexOf(r)!==-1;if(ae.isRegExp(r))return r.test(t)}}function rN(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function iN(e,t){const n=ae.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 er=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function a(s,l,c){const u=pl(l);if(!u)throw new Error("header name must be a non-empty string");const d=ae.findKey(i,u);(!d||i[d]===void 0||c===!0||c===void 0&&i[d]!==!1)&&(i[d||l]=xd(s))}const o=(s,l)=>ae.forEach(s,(c,u)=>a(c,u,l));if(ae.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(ae.isString(t)&&(t=t.trim())&&!nN(t))o(eN(t),n);else if(ae.isObject(t)&&ae.isIterable(t)){let s={},l,c;for(const u of t){if(!ae.isArray(u))throw TypeError("Object iterator must return a key-value pair");s[c=u[0]]=(l=s[c])?ae.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=pl(t),t){const r=ae.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return tN(i);if(ae.isFunction(n))return n.call(this,i,r);if(ae.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=pl(t),t){const r=ae.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||nm(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function a(o){if(o=pl(o),o){const s=ae.findKey(r,o);s&&(!n||nm(r,r[s],s,n))&&(delete r[s],i=!0)}}return ae.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||nm(this,this[a],a,t,!0))&&(delete this[a],i=!0)}return i}normalize(t){const n=this,r={};return ae.forEach(this,(i,a)=>{const o=ae.findKey(r,a);if(o){n[o]=xd(i),delete n[a];return}const s=t?rN(a):String(a).trim();s!==a&&delete n[a],n[s]=xd(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ae.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&ae.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(`
202
- `)}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[ix]=this[ix]={accessors:{}}).accessors,i=this.prototype;function a(o){const s=pl(o);r[s]||(iN(i,o),r[s]=!0)}return ae.isArray(t)?t.forEach(a):a(t),this}};er.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ae.reduceDescriptors(er.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});ae.freezeMethods(er);function rm(e,t){const n=this||nu,r=t||n,i=er.from(r.headers);let a=r.data;return ae.forEach(e,function(s){a=s.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function p4(e){return!!(e&&e.__CANCEL__)}function Ws(e,t,n){rt.call(this,e??"canceled",rt.ERR_CANCELED,t,n),this.name="CanceledError"}ae.inherits(Ws,rt,{__CANCEL__:!0});function m4(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new rt("Request failed with status code "+n.status,[rt.ERR_BAD_REQUEST,rt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function aN(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function oN(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 p=u&&c-u;return p?Math.round(f*1e3/p):void 0}}function sN(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 Wd=(e,t,n=3)=>{let r=0;const i=oN(50,250);return sN(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)},ax=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},ox=e=>(...t)=>ae.asap(()=>e(...t)),lN=Rn.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Rn.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Rn.origin),Rn.navigator&&/(msie|trident)/i.test(Rn.navigator.userAgent)):()=>!0,cN=Rn.hasStandardBrowserEnv?{write(e,t,n,r,i,a,o){if(typeof document>"u")return;const s=[`${e}=${encodeURIComponent(t)}`];ae.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),ae.isString(r)&&s.push(`path=${r}`),ae.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push("secure"),ae.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 uN(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function dN(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function g4(e,t,n){let r=!uN(t);return e&&(r||n==!1)?dN(e,t):t}const sx=e=>e instanceof er?{...e}:e;function ao(e,t){t=t||{};const n={};function r(c,u,d,f){return ae.isPlainObject(c)&&ae.isPlainObject(u)?ae.merge.call({caseless:f},c,u):ae.isPlainObject(u)?ae.merge({},u):ae.isArray(u)?u.slice():u}function i(c,u,d,f){if(ae.isUndefined(u)){if(!ae.isUndefined(c))return r(void 0,c,d,f)}else return r(c,u,d,f)}function a(c,u){if(!ae.isUndefined(u))return r(void 0,u)}function o(c,u){if(ae.isUndefined(u)){if(!ae.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(sx(c),sx(u),d,!0)};return ae.forEach(Object.keys({...e,...t}),function(u){const d=l[u]||i,f=d(e[u],t[u],u);ae.isUndefined(f)&&d!==s||(n[u]=f)}),n}const v4=e=>{const t=ao({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:s}=t;if(t.headers=o=er.from(o),t.url=d4(g4(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),ae.isFormData(n)){if(Rn.hasStandardBrowserEnv||Rn.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(ae.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(Rn.hasStandardBrowserEnv&&(r&&ae.isFunction(r)&&(r=r(t)),r||r!==!1&&lN(t.url))){const l=i&&a&&cN.read(a);l&&o.set(i,l)}return t},fN=typeof XMLHttpRequest<"u",hN=fN&&function(e){return new Promise(function(n,r){const i=v4(e);let a=i.data;const o=er.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:c}=i,u,d,f,p,g;function m(){p&&p(),g&&g(),i.cancelToken&&i.cancelToken.unsubscribe(u),i.signal&&i.signal.removeEventListener("abort",u)}let v=new XMLHttpRequest;v.open(i.method.toUpperCase(),i.url,!0),v.timeout=i.timeout;function w(){if(!v)return;const y=er.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),x={data:!s||s==="text"||s==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:y,config:e,request:v};m4(function(E){n(E),m()},function(E){r(E),m()},x),v=null}"onloadend"in v?v.onloadend=w:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(w)},v.onabort=function(){v&&(r(new rt("Request aborted",rt.ECONNABORTED,e,v)),v=null)},v.onerror=function(C){const x=C&&C.message?C.message:"Network Error",$=new rt(x,rt.ERR_NETWORK,e,v);$.event=C||null,r($),v=null},v.ontimeout=function(){let C=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const x=i.transitional||f4;i.timeoutErrorMessage&&(C=i.timeoutErrorMessage),r(new rt(C,x.clarifyTimeoutError?rt.ETIMEDOUT:rt.ECONNABORTED,e,v)),v=null},a===void 0&&o.setContentType(null),"setRequestHeader"in v&&ae.forEach(o.toJSON(),function(C,x){v.setRequestHeader(x,C)}),ae.isUndefined(i.withCredentials)||(v.withCredentials=!!i.withCredentials),s&&s!=="json"&&(v.responseType=i.responseType),c&&([f,g]=Wd(c,!0),v.addEventListener("progress",f)),l&&v.upload&&([d,p]=Wd(l),v.upload.addEventListener("progress",d),v.upload.addEventListener("loadend",p)),(i.cancelToken||i.signal)&&(u=y=>{v&&(r(!y||y.type?new Ws(null,e,v):y),v.abort(),v=null)},i.cancelToken&&i.cancelToken.subscribe(u),i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u)));const _=aN(i.url);if(_&&Rn.protocols.indexOf(_)===-1){r(new rt("Unsupported protocol "+_+":",rt.ERR_BAD_REQUEST,e));return}v.send(a||null)})},pN=(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 rt?u:new Ws(u instanceof Error?u.message:u))}};let o=t&&setTimeout(()=>{o=null,a(new rt(`timeout ${t} of ms exceeded`,rt.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=()=>ae.asap(s),l}},mN=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},gN=async function*(e,t){for await(const n of vN(e))yield*mN(n,t)},vN=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()}},lx=(e,t,n,r)=>{const i=gN(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})},cx=64*1024,{isFunction:Wu}=ae,bN=(({Request:e,Response:t})=>({Request:e,Response:t}))(ae.global),{ReadableStream:ux,TextEncoder:dx}=ae.global,fx=(e,...t)=>{try{return!!e(...t)}catch{return!1}},yN=e=>{e=ae.merge.call({skipUndefined:!0},bN,e);const{fetch:t,Request:n,Response:r}=e,i=t?Wu(t):typeof fetch=="function",a=Wu(n),o=Wu(r);if(!i)return!1;const s=i&&Wu(ux),l=i&&(typeof dx=="function"?(g=>m=>g.encode(m))(new dx):async g=>new Uint8Array(await new n(g).arrayBuffer())),c=a&&s&&fx(()=>{let g=!1;const m=new n(Rn.origin,{body:new ux,method:"POST",get duplex(){return g=!0,"half"}}).headers.has("Content-Type");return g&&!m}),u=o&&s&&fx(()=>ae.isReadableStream(new r("").body)),d={stream:u&&(g=>g.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!d[g]&&(d[g]=(m,v)=>{let w=m&&m[g];if(w)return w.call(m);throw new rt(`Response type '${g}' is not supported`,rt.ERR_NOT_SUPPORT,v)})});const f=async g=>{if(g==null)return 0;if(ae.isBlob(g))return g.size;if(ae.isSpecCompliantForm(g))return(await new n(Rn.origin,{method:"POST",body:g}).arrayBuffer()).byteLength;if(ae.isArrayBufferView(g)||ae.isArrayBuffer(g))return g.byteLength;if(ae.isURLSearchParams(g)&&(g=g+""),ae.isString(g))return(await l(g)).byteLength},p=async(g,m)=>{const v=ae.toFiniteNumber(g.getContentLength());return v??f(m)};return async g=>{let{url:m,method:v,data:w,signal:_,cancelToken:y,timeout:C,onDownloadProgress:x,onUploadProgress:$,responseType:E,headers:O,withCredentials:k="same-origin",fetchOptions:j}=v4(g),S=t||fetch;E=E?(E+"").toLowerCase():"text";let T=pN([_,y&&y.toAbortSignal()],C),R=null;const N=T&&T.unsubscribe&&(()=>{T.unsubscribe()});let D;try{if($&&c&&v!=="get"&&v!=="head"&&(D=await p(O,w))!==0){let W=new n(m,{method:"POST",body:w,duplex:"half"}),Y;if(ae.isFormData(w)&&(Y=W.headers.get("content-type"))&&O.setContentType(Y),W.body){const[X,K]=ax(D,Wd(ox($)));w=lx(W.body,cx,X,K)}}ae.isString(k)||(k=k?"include":"omit");const M=a&&"credentials"in n.prototype,I={...j,signal:T,method:v.toUpperCase(),headers:O.normalize().toJSON(),body:w,duplex:"half",credentials:M?k:void 0};R=a&&new n(m,I);let z=await(a?S(R,j):S(m,I));const U=u&&(E==="stream"||E==="response");if(u&&(x||U&&N)){const W={};["status","statusText","headers"].forEach(Z=>{W[Z]=z[Z]});const Y=ae.toFiniteNumber(z.headers.get("content-length")),[X,K]=x&&ax(Y,Wd(ox(x),!0))||[];z=new r(lx(z.body,cx,X,()=>{K&&K(),N&&N()}),W)}E=E||"text";let P=await d[ae.findKey(d,E)||"text"](z,g);return!U&&N&&N(),await new Promise((W,Y)=>{m4(W,Y,{data:P,headers:er.from(z.headers),status:z.status,statusText:z.statusText,config:g,request:R})})}catch(M){throw N&&N(),M&&M.name==="TypeError"&&/Load failed|fetch/i.test(M.message)?Object.assign(new rt("Network Error",rt.ERR_NETWORK,g,R),{cause:M.cause||M}):rt.from(M,M&&M.code,g,R)}}},xN=new Map,b4=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=xN;for(;s--;)l=a[s],c=u.get(l),c===void 0&&u.set(l,c=s?new Map:yN(t)),u=c;return c};b4();const A0={http:P7,xhr:hN,fetch:{get:b4}};ae.forEach(A0,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const hx=e=>`- ${e}`,wN=e=>ae.isFunction(e)||e===null||e===!1;function _N(e,t){e=ae.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,!wN(r)&&(i=A0[(s=String(r)).toLowerCase()],i===void 0))throw new rt(`Unknown adapter '${s}'`);if(i&&(ae.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 :
203
- `+o.map(hx).join(`
204
- `):" "+hx(o[0]):"as no adapter specified";throw new rt("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return i}const y4={getAdapter:_N,adapters:A0};function im(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ws(null,e)}function px(e){return im(e),e.headers=er.from(e.headers),e.data=rm.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),y4.getAdapter(e.adapter||nu.adapter,e)(e).then(function(r){return im(e),r.data=rm.call(e,e.transformResponse,r),r.headers=er.from(r.headers),r},function(r){return p4(r)||(im(e),r&&r.response&&(r.response.data=rm.call(e,e.transformResponse,r.response),r.response.headers=er.from(r.response.headers))),Promise.reject(r)})}const x4="1.13.2",ih={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ih[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const mx={};ih.transitional=function(t,n,r){function i(a,o){return"[Axios v"+x4+"] Transitional option '"+a+"'"+o+(r?". "+r:"")}return(a,o,s)=>{if(t===!1)throw new rt(i(o," has been removed"+(n?" in "+n:"")),rt.ERR_DEPRECATED);return n&&!mx[o]&&(mx[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}};ih.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function CN(e,t,n){if(typeof e!="object")throw new rt("options must be an object",rt.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 rt("option "+a+" must be "+l,rt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new rt("Unknown option "+a,rt.ERR_BAD_OPTION)}}const wd={assertOptions:CN,validators:ih},zr=wd.validators;let Qa=class{constructor(t){this.defaults=t||{},this.interceptors={request:new rx,response:new rx}}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+=`
205
- `+a):r.stack=a}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ao(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:a}=n;r!==void 0&&wd.assertOptions(r,{silentJSONParsing:zr.transitional(zr.boolean),forcedJSONParsing:zr.transitional(zr.boolean),clarifyTimeoutError:zr.transitional(zr.boolean)},!1),i!=null&&(ae.isFunction(i)?n.paramsSerializer={serialize:i}:wd.assertOptions(i,{encode:zr.function,serialize:zr.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),wd.assertOptions(n,{baseUrl:zr.spelling("baseURL"),withXsrfToken:zr.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=a&&ae.merge(a.common,a[n.method]);a&&ae.forEach(["delete","get","head","post","put","patch","common"],g=>{delete a[g]}),n.headers=er.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 g=[px.bind(this),void 0];for(g.unshift(...s),g.push(...c),f=g.length,u=Promise.resolve(n);d<f;)u=u.then(g[d++],g[d++]);return u}f=s.length;let p=n;for(;d<f;){const g=s[d++],m=s[d++];try{p=g(p)}catch(v){m.call(this,v);break}}try{u=px.call(this,p)}catch(g){return Promise.reject(g)}for(d=0,f=c.length;d<f;)u=u.then(c[d++],c[d++]);return u}getUri(t){t=ao(this.defaults,t);const n=g4(t.baseURL,t.url,t.allowAbsoluteUrls);return d4(n,t.params,t.paramsSerializer)}};ae.forEach(["delete","get","head","options"],function(t){Qa.prototype[t]=function(n,r){return this.request(ao(r||{},{method:t,url:n,data:(r||{}).data}))}});ae.forEach(["post","put","patch"],function(t){function n(r){return function(a,o,s){return this.request(ao(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}Qa.prototype[t]=n(),Qa.prototype[t+"Form"]=n(!0)});let $N=class w4{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 Ws(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 w4(function(i){t=i}),cancel:t}}};function SN(e){return function(n){return e.apply(null,n)}}function EN(e){return ae.isObject(e)&&e.isAxiosError===!0}const Ig={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(Ig).forEach(([e,t])=>{Ig[t]=e});function _4(e){const t=new Qa(e),n=JS(Qa.prototype.request,t);return ae.extend(n,Qa.prototype,t,{allOwnKeys:!0}),ae.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return _4(ao(e,i))},n}const Xt=_4(nu);Xt.Axios=Qa;Xt.CanceledError=Ws;Xt.CancelToken=$N;Xt.isCancel=p4;Xt.VERSION=x4;Xt.toFormData=rh;Xt.AxiosError=rt;Xt.Cancel=Xt.CanceledError;Xt.all=function(t){return Promise.all(t)};Xt.spread=SN;Xt.isAxiosError=EN;Xt.mergeConfig=ao;Xt.AxiosHeaders=er;Xt.formToJSON=e=>h4(ae.isHTMLForm(e)?new FormData(e):e);Xt.getAdapter=y4.getAdapter;Xt.HttpStatusCode=Ig;Xt.default=Xt;const{Axios:Obe,AxiosError:Mbe,CanceledError:Abe,isCancel:Rbe,CancelToken:jbe,VERSION:Dbe,all:Nbe,Cancel:Ibe,isAxiosError:Pbe,spread:Lbe,toFormData:Fbe,AxiosHeaders:Bbe,HttpStatusCode:zbe,formToJSON:Wbe,getAdapter:Ube,mergeConfig:Hbe}=Xt;var Uu={};/*!
206
- * cookie
207
- * Copyright(c) 2012-2014 Roman Shtylman
208
- * Copyright(c) 2015 Douglas Christopher Wilson
209
- * MIT Licensed
210
- */var gx;function kN(){if(gx)return Uu;gx=1,Uu.parse=o,Uu.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(p,g){if(typeof p!="string")throw new TypeError("argument str must be a string");var m={},v=p.length;if(v<2)return m;var w=g&&g.decode||u,_=0,y=0,C=0;do{if(y=p.indexOf("=",_),y===-1)break;if(C=p.indexOf(";",_),C===-1)C=v;else if(y>C){_=p.lastIndexOf(";",y-1)+1;continue}var x=s(p,_,y),$=l(p,y,x),E=p.slice(x,$);if(!t.call(m,E)){var O=s(p,y+1,C),k=l(p,C,O);p.charCodeAt(O)===34&&p.charCodeAt(k-1)===34&&(O++,k--);var j=p.slice(O,k);m[E]=f(j,w)}_=C+1}while(_<v);return m}function s(p,g,m){do{var v=p.charCodeAt(g);if(v!==32&&v!==9)return g}while(++g<m);return m}function l(p,g,m){for(;g>m;){var v=p.charCodeAt(--g);if(v!==32&&v!==9)return g+1}return m}function c(p,g,m){var v=m&&m.encode||encodeURIComponent;if(typeof v!="function")throw new TypeError("option encode is invalid");if(!n.test(p))throw new TypeError("argument name is invalid");var w=v(g);if(!r.test(w))throw new TypeError("argument val is invalid");var _=p+"="+w;if(!m)return _;if(m.maxAge!=null){var y=Math.floor(m.maxAge);if(!isFinite(y))throw new TypeError("option maxAge is invalid");_+="; Max-Age="+y}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 x=typeof m.priority=="string"?m.priority.toLowerCase():m.priority;switch(x){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 $=typeof m.sameSite=="string"?m.sameSite.toLowerCase():m.sameSite;switch($){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(p){return p.indexOf("%")!==-1?decodeURIComponent(p):p}function d(p){return e.call(p)==="[object Date]"}function f(p,g){try{return g(p)}catch{return p}}return Uu}var _d=kN();function TN(){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 ON(e){return typeof e=="string"?_d.parse(e):typeof e=="object"&&e!==null?e:{}}function am(e,t={}){const n=MN(e);if(!t.doNotParse)try{return JSON.parse(n)}catch{}return e}function MN(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class AN{constructor(t,n={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const i=this.cookies;this.cookies=_d.parse(document.cookie),this._checkChanges(i)};const r=typeof document>"u"?"":document.cookie;this.cookies=ON(t||r),this.defaultSetOptions=n,this.HAS_DOCUMENT_COOKIE=TN()}_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:am(this.cookies[r])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,n={}){return n.doNotUpdate||this.update(),am(this.cookies[t],n)}getAll(t={}){t.doNotUpdate||this.update();const n={};for(let r in this.cookies)n[r]=am(this.cookies[r],t);return n}set(t,n,r){r?r=Object.assign(Object.assign({},this.defaultSetOptions),r):r=this.defaultSetOptions;const i=typeof n=="string"?n:JSON.stringify(n);this.cookies=Object.assign(Object.assign({},this.cookies),{[t]:i}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=_d.serialize(t,i,r)),this._emitChange({name:t,value:n,options:r})}remove(t,n){const r=n=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),n),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[t],this.HAS_DOCUMENT_COOKIE&&(document.cookie=_d.serialize(t,"",r)),this._emitChange({name:t,value:void 0,options:n})}addChangeListener(t){this.changeListeners.push(t),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===1&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(t){const n=this.changeListeners.indexOf(t);n>=0&&this.changeListeners.splice(n,1),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===0&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}}const C4=ie.createContext(new AN),{Provider:Vbe,Consumer:qbe}=C4;var Hu={exports:{}},Dt={};/** @license React v16.13.1
211
- * react-is.production.min.js
212
- *
213
- * Copyright (c) Facebook, Inc. and its affiliates.
214
- *
215
- * This source code is licensed under the MIT license found in the
216
- * LICENSE file in the root directory of this source tree.
217
- */var vx;function RN(){if(vx)return Dt;vx=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,p=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function y(x){if(typeof x=="object"&&x!==null){var $=x.$$typeof;switch($){case t:switch(x=x.type,x){case l:case c:case r:case a:case i:case d:return x;default:switch(x=x&&x.$$typeof,x){case s:case u:case g:case p:case o:return x;default:return $}}case n:return $}}}function C(x){return y(x)===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=g,Dt.Memo=p,Dt.Portal=n,Dt.Profiler=a,Dt.StrictMode=i,Dt.Suspense=d,Dt.isAsyncMode=function(x){return C(x)||y(x)===l},Dt.isConcurrentMode=C,Dt.isContextConsumer=function(x){return y(x)===s},Dt.isContextProvider=function(x){return y(x)===o},Dt.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===t},Dt.isForwardRef=function(x){return y(x)===u},Dt.isFragment=function(x){return y(x)===r},Dt.isLazy=function(x){return y(x)===g},Dt.isMemo=function(x){return y(x)===p},Dt.isPortal=function(x){return y(x)===n},Dt.isProfiler=function(x){return y(x)===a},Dt.isStrictMode=function(x){return y(x)===i},Dt.isSuspense=function(x){return y(x)===d},Dt.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===r||x===c||x===a||x===i||x===d||x===f||typeof x=="object"&&x!==null&&(x.$$typeof===g||x.$$typeof===p||x.$$typeof===o||x.$$typeof===s||x.$$typeof===u||x.$$typeof===v||x.$$typeof===w||x.$$typeof===_||x.$$typeof===m)},Dt.typeOf=y,Dt}var Nt={};/** @license React v16.13.1
218
- * react-is.development.js
219
- *
220
- * Copyright (c) Facebook, Inc. and its affiliates.
221
- *
222
- * This source code is licensed under the MIT license found in the
223
- * LICENSE file in the root directory of this source tree.
224
- */var bx;function jN(){return bx||(bx=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,p=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function y(A){return typeof A=="string"||typeof A=="function"||A===r||A===c||A===a||A===i||A===d||A===f||typeof A=="object"&&A!==null&&(A.$$typeof===g||A.$$typeof===p||A.$$typeof===o||A.$$typeof===s||A.$$typeof===u||A.$$typeof===v||A.$$typeof===w||A.$$typeof===_||A.$$typeof===m)}function C(A){if(typeof A=="object"&&A!==null){var Q=A.$$typeof;switch(Q){case t:var G=A.type;switch(G){case l:case c:case r:case a:case i:case d:return G;default:var q=G&&G.$$typeof;switch(q){case s:case u:case g:case p:case o:return q;default:return Q}}case n:return Q}}}var x=l,$=c,E=s,O=o,k=t,j=u,S=r,T=g,R=p,N=n,D=a,M=i,I=d,z=!1;function U(A){return z||(z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),P(A)||C(A)===l}function P(A){return C(A)===c}function W(A){return C(A)===s}function Y(A){return C(A)===o}function X(A){return typeof A=="object"&&A!==null&&A.$$typeof===t}function K(A){return C(A)===u}function Z(A){return C(A)===r}function ee(A){return C(A)===g}function J(A){return C(A)===p}function B(A){return C(A)===n}function L(A){return C(A)===a}function F(A){return C(A)===i}function H(A){return C(A)===d}Nt.AsyncMode=x,Nt.ConcurrentMode=$,Nt.ContextConsumer=E,Nt.ContextProvider=O,Nt.Element=k,Nt.ForwardRef=j,Nt.Fragment=S,Nt.Lazy=T,Nt.Memo=R,Nt.Portal=N,Nt.Profiler=D,Nt.StrictMode=M,Nt.Suspense=I,Nt.isAsyncMode=U,Nt.isConcurrentMode=P,Nt.isContextConsumer=W,Nt.isContextProvider=Y,Nt.isElement=X,Nt.isForwardRef=K,Nt.isFragment=Z,Nt.isLazy=ee,Nt.isMemo=J,Nt.isPortal=B,Nt.isProfiler=L,Nt.isStrictMode=F,Nt.isSuspense=H,Nt.isValidElementType=y,Nt.typeOf=C}()),Nt}var yx;function DN(){return yx||(yx=1,process.env.NODE_ENV==="production"?Hu.exports=RN():Hu.exports=jN()),Hu.exports}var om,xx;function NN(){if(xx)return om;xx=1;var e=DN(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};a[e.ForwardRef]=r,a[e.Memo]=i;function o(g){return e.isMemo(g)?i:a[g.$$typeof]||t}var s=Object.defineProperty,l=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,f=Object.prototype;function p(g,m,v){if(typeof m!="string"){if(f){var w=d(m);w&&w!==f&&p(g,w,v)}var _=l(m);c&&(_=_.concat(c(m)));for(var y=o(g),C=o(m),x=0;x<_.length;++x){var $=_[x];if(!n[$]&&!(v&&v[$])&&!(C&&C[$])&&!(y&&y[$])){var E=u(m,$);try{s(g,$,E)}catch{}}}}return g}return om=p,om}NN();function IN(){return typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"}function R0(e,t){const n=h.useContext(C4);if(!n)throw new Error("Missing <CookiesProvider>");const i=Object.assign(Object.assign({},{doNotUpdate:!0}),t),[a,o]=h.useState(()=>n.getAll(i));IN()&&h.useLayoutEffect(()=>{function u(){const d=n.getAll(i);PN(e||null,d,a)&&o(d)}return n.addChangeListener(u),()=>{n.removeChangeListener(u)}},[n,a]);const s=h.useMemo(()=>n.set.bind(n),[n]),l=h.useMemo(()=>n.remove.bind(n),[n]),c=h.useMemo(()=>n.update.bind(n),[n]);return[a,s,l,c]}function PN(e,t,n){if(!e)return!0;for(let r of e)if(t[r]!==n[r])return!0;return!1}const LN=()=>{const{axiosOptions:e,cookieDomain:t}=h.useContext(sn),[,n,r]=R0(["Authorization"]),i=Xt.create(e),a=h.useCallback(()=>{const l=localStorage.getItem("token");return l!==null&&l.length>0},[]),o=h.useCallback(async(l,c)=>i.post("/user/login",{kid:l,password:c}).then(u=>(localStorage.setItem("token",u.data),n("Authorization",u.data,{path:"/",secure:!0,sameSite:"none",domain:t,expires:LC(new Date(Date.now()),24)}),u.data)).catch(u=>(console.log(u),null)),[i,n,t]),s=h.useCallback(()=>{localStorage.removeItem("token"),localStorage.removeItem("user"),r("Authorization")},[r]);return{isAuthenticated:a,login:o,logout:s}},FN=()=>{const[,,e]=R0(["Authorization"]),{msalScopes:t,msalExtraScopes:n}=h.useContext(Qf),{instance:r,inProgress:i}=c1.useMsal(),a=c1.useIsAuthenticated(),o=h.useCallback(()=>a,[a]),s=h.useCallback(()=>!o()&&i!==c6.InteractionStatus.None,[o,i]),l=h.useCallback(async()=>r.loginRedirect({scopes:t,extraScopesToConsent:n}).then(()=>"").catch(()=>null),[r,t,n]),c=h.useCallback(()=>{r.logout(),localStorage.removeItem("user"),e("Authorization")},[e,r]);return{isAuthenticated:o,isAuthenticating:s,login:l,logout:c}},$4=()=>{const{useMsal:e}=h.useContext(Qf),t=u6.useQueryClient(),n=LN(),r=FN(),i=h.useCallback((a,o)=>{const s=e?r.login():n.login(a,o);return t.invalidateQueries(),s},[e,r,n,t]);return{isAuthenticated:e?r.isAuthenticated:n.isAuthenticated,isAuthenticating:e?r.isAuthenticating:()=>!1,login:i,logout:e?r.logout:n.logout}},BN="_toast_1s57i_1",ml={toast:BN},zN=e=>{switch(e){case"success":return 5e3;case"info":return 5e3;case"danger":return 1e4;case"warning":return 1e4;case"prompt":return 1e4;default:return 5e3}},ah=()=>({addNotification:h.useCallback((t,n)=>{const r=HS(t),i=zN(n),a=b.jsxs(b.Fragment,{children:[r,b.jsx(SS,{onClick:()=>Lo.dismiss(r),type:"button",style:{position:"absolute",fontSize:"12px",top:"calc(50% - 6px)",right:"8px"}})]});switch(n){case"success":{Lo(a,{id:r,duration:i,position:"top-center",icon:b.jsx(Ej,{size:12}),className:ce("luminus-toast-success rounded shadow bg-success",ml.toast)});break}case"danger":{Lo(a,{id:r,duration:i,position:"top-center",icon:b.jsx(mj,{size:12}),className:ce("luminus-toast-danger rounded shadow bg-danger",ml.toast)});break}case"warning":{Lo(a,{id:r,duration:i,position:"top-center",icon:b.jsx(dj,{size:12}),className:ce("luminus-toast-warning rounded shadow bg-warning",ml.toast)});break}case"info":{Lo(a,{id:r,duration:i,position:"top-center",icon:b.jsx(hj,{size:12}),className:ce("luminus-toast-info rounded shadow bg-info",ml.toast)});break}case"prompt":{Lo(a,{id:r,duration:i,position:"top-center",icon:b.jsx(pj,{size:12}),className:ce("luminus-toast-prompt rounded shadow bg-light",ml.toast)});break}}},[])}),WN=Xt.CancelToken,oh=e=>{const{authenticated:t=!0,differentBaseUrl:n,silent:r=!1,customToken:i,ignoreDelegation:a,noToastOnStatus:o}={...e},{language:s,axiosOptions:l,texts:{axios:c}}=h.useContext(sn),{delegation:u}=h.useContext(FS),{getToken:d}=h.useContext(Qf),f=h.useMemo(()=>(u==null?void 0:u.id)??null,[u==null?void 0:u.id]),{addNotification:p}=ah(),{isAuthenticating:g}=$4(),m=h.useMemo(()=>Xt.create(l),[l]),v=h.useCallback(async y=>{var x,$,E;if(t&&!y.headers.Authorization){if(g())return console.log("Authentication in progress, waiting for token..."),Promise.reject(new Error("Authentication in progress"));const O=i?{token:i,expiresOn:LC(new Date(Date.now()),1)}:await d();if(!O)return console.log("No bearer token"),Promise.reject(new Error("No bearer token"));if(UC(O.expiresOn))return console.log("Token expired"),Promise.reject(new Error("Token expired"));y.headers.Authorization=`Bearer ${O.token}`}f!==null&&!a&&(y.headers.DelegationId=f.toString());const C=localStorage.getItem("search-use-asterisk")!=="false";return y.headers["Search-Use-Asterisk"]=C?"true":"false",(x=y.url)!=null&&x.includes("culture=")?y.url=($=y.url)==null?void 0:$.replace(/culture=[a-z]{2}/,`culture=${s}`):y.url=`${y.url}${(E=y.url)!=null&&E.includes("?")?"&":"?"}culture=${s}`,y},[t,d,s,i,f,a,g]),w=h.useCallback(y=>{var $,E;if(console.log(y),Xt.isCancel(y)||y.message==="Authentication in progress"||y.message==="No bearer token"||y.message==="Token expired")return Promise.reject(y);const C=$0(y);if(C.length>0){const O=C.find(k=>k.name.toLowerCase()==="others");return O?(!r&&p(O.errors,"danger"),Promise.reject(y)):(!r&&p(c.validationError,"warning"),Promise.reject(y))}const x=WS(y);return x!==null?(!r&&p(`${c.permissionError}: ${E0(", ",...x)}`,"danger"),Promise.reject(y)):(o??[]).includes(($=y.response)==null?void 0:$.status)?Promise.reject(y):((E=y.response)==null?void 0:E.status)===403?(!r&&p(c.forbiddenError,"danger"),Promise.reject(y)):y.message&&y.message==="Network Error"?(!r&&p(c.networkError,"danger"),Promise.reject(y)):(Xt.isCancel(y)||(!r&&p(c.unexpectedError,"danger"),(y.response||y.request)&&!r&&p(c.unexpectedError,"danger")),Promise.reject(y))},[p,c.forbiddenError,c.networkError,c.permissionError,c.unexpectedError,c.validationError,r,o]),_=h.useRef(!1);return _.current||(m.interceptors.request.clear(),m.interceptors.request.use(v,y=>Promise.reject(y)),m.interceptors.response.clear(),m.interceptors.response.use(y=>y,w),_.current=!0),h.useEffect(()=>{n&&(m.defaults.baseURL=n)},[n,m.defaults]),h.useEffect(()=>{m.interceptors.request.clear();const y=m.interceptors.request.use(v,C=>Promise.reject(C));return()=>{m.interceptors.request.eject(y)}},[m.interceptors.request,v]),h.useEffect(()=>{m.interceptors.response.clear();const y=m.interceptors.response.use(C=>C,w);return()=>{m.interceptors.response.eject(y)}},[m.interceptors.response,w]),m};let gl;const j0=()=>{const{show:e,text:t,showConfirm:n,hideConfirm:r,textSm:i}=h.useContext(kS),a=()=>{r()};return{confirm:async(c,u)=>(n(c,u),new Promise(d=>{gl=d})),onConfirm:()=>{a(),gl&&gl(!0)},onCancel:()=>{a(),gl&&gl(!1)},show:e,text:t,textSm:i}};var yt;(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})(yt||(yt={}));var Pg;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Pg||(Pg={}));const Ce=yt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),wi=e=>{switch(typeof e){case"undefined":return Ce.undefined;case"string":return Ce.string;case"number":return Number.isNaN(e)?Ce.nan:Ce.number;case"boolean":return Ce.boolean;case"function":return Ce.function;case"bigint":return Ce.bigint;case"symbol":return Ce.symbol;case"object":return Array.isArray(e)?Ce.array:e===null?Ce.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Ce.promise:typeof Map<"u"&&e instanceof Map?Ce.map:typeof Set<"u"&&e instanceof Set?Ce.set:typeof Date<"u"&&e instanceof Date?Ce.date:Ce.object;default:return Ce.unknown}},he=yt.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"]),UN=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class sr 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 sr))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,yt.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()}}sr.create=e=>new sr(e);const Cs=(e,t)=>{let n;switch(e.code){case he.invalid_type:e.received===Ce.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case he.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,yt.jsonStringifyReplacer)}`;break;case he.unrecognized_keys:n=`Unrecognized key(s) in object: ${yt.joinValues(e.keys,", ")}`;break;case he.invalid_union:n="Invalid input";break;case he.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${yt.joinValues(e.options)}`;break;case he.invalid_enum_value:n=`Invalid enum value. Expected ${yt.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}"`:yt.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,yt.assertNever(e)}return{message:n}};let S4=Cs;function HN(e){S4=e}function Ud(){return S4}const Hd=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}},VN=[];function we(e,t){const n=Ud(),r=Hd({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Cs?void 0:Cs].filter(i=>!!i)});e.common.issues.push(r)}class Nn{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 Be;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 Nn.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 Be;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 Be=Object.freeze({status:"aborted"}),Jo=e=>({status:"dirty",value:e}),Un=e=>({status:"valid",value:e}),Lg=e=>e.status==="aborted",Fg=e=>e.status==="dirty",oo=e=>e.status==="valid",ac=e=>typeof Promise<"u"&&e instanceof Promise;var Te;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(Te||(Te={}));class Jr{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 wx=(e,t)=>{if(oo(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 sr(e.common.issues);return this._error=n,this._error}}};function it(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 ct{get description(){return this._def.description}_getType(t){return wi(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:wi(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Nn,ctx:{common:t.parent.common,data:t.data,parsedType:wi(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(ac(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){const r={common:{issues:[],async:(n==null?void 0:n.async)??!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:wi(t)},i=this._parseSync({data:t,path:r.path,parent:r});return wx(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:wi(t)};if(!this["~standard"].async)try{const a=this._parseSync({data:t,path:[],parent:n});return oo(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=>oo(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:wi(t)},i=this._parse({data:t,path:r.path,parent:r}),a=await(ac(i)?i:Promise.resolve(i));return wx(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 Dr({schema:this,typeName:We.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 Gr.create(this,this._def)}nullable(){return ga.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return jr.create(this)}promise(){return Ss.create(this,this._def)}or(t){return cc.create([this,t],this._def)}and(t){return uc.create(this,t,this._def)}transform(t){return new Dr({...it(this._def),schema:this,typeName:We.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new mc({...it(this._def),innerType:this,defaultValue:n,typeName:We.ZodDefault})}brand(){return new D0({typeName:We.ZodBranded,type:this,...it(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new gc({...it(this._def),innerType:this,catchValue:n,typeName:We.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return ru.create(this,t)}readonly(){return vc.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const qN=/^c[^\s-]{8,}$/i,YN=/^[0-9a-z]+$/,GN=/^[0-9A-HJKMNP-TV-Z]{26}$/i,KN=/^[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,ZN=/^[a-z0-9_-]{21}$/i,XN=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,QN=/^[-+]?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)?)??$/,JN=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,eI="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let sm;const tI=/^(?:(?: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])$/,nI=/^(?:(?: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])$/,rI=/^(([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]))$/,iI=/^(([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])$/,aI=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,oI=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,E4="((\\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])))",sI=new RegExp(`^${E4}$`);function k4(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 lI(e){return new RegExp(`^${k4(e)}$`)}function T4(e){let t=`${E4}T${k4(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 cI(e,t){return!!((t==="v4"||!t)&&tI.test(e)||(t==="v6"||!t)&&rI.test(e))}function uI(e,t){if(!XN.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 dI(e,t){return!!((t==="v4"||!t)&&nI.test(e)||(t==="v6"||!t)&&iI.test(e))}class Ar extends ct{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Ce.string){const a=this._getOrReturnCtx(t);return we(a,{code:he.invalid_type,expected:Ce.string,received:a.parsedType}),Be}const r=new Nn;let i;for(const a of this._def.checks)if(a.kind==="min")t.data.length<a.value&&(i=this._getOrReturnCtx(t,i),we(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),we(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?we(i,{code:he.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):s&&we(i,{code:he.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),r.dirty())}else if(a.kind==="email")JN.test(t.data)||(i=this._getOrReturnCtx(t,i),we(i,{validation:"email",code:he.invalid_string,message:a.message}),r.dirty());else if(a.kind==="emoji")sm||(sm=new RegExp(eI,"u")),sm.test(t.data)||(i=this._getOrReturnCtx(t,i),we(i,{validation:"emoji",code:he.invalid_string,message:a.message}),r.dirty());else if(a.kind==="uuid")KN.test(t.data)||(i=this._getOrReturnCtx(t,i),we(i,{validation:"uuid",code:he.invalid_string,message:a.message}),r.dirty());else if(a.kind==="nanoid")ZN.test(t.data)||(i=this._getOrReturnCtx(t,i),we(i,{validation:"nanoid",code:he.invalid_string,message:a.message}),r.dirty());else if(a.kind==="cuid")qN.test(t.data)||(i=this._getOrReturnCtx(t,i),we(i,{validation:"cuid",code:he.invalid_string,message:a.message}),r.dirty());else if(a.kind==="cuid2")YN.test(t.data)||(i=this._getOrReturnCtx(t,i),we(i,{validation:"cuid2",code:he.invalid_string,message:a.message}),r.dirty());else if(a.kind==="ulid")GN.test(t.data)||(i=this._getOrReturnCtx(t,i),we(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),we(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),we(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),we(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),we(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),we(i,{code:he.invalid_string,validation:{endsWith:a.value},message:a.message}),r.dirty()):a.kind==="datetime"?T4(a).test(t.data)||(i=this._getOrReturnCtx(t,i),we(i,{code:he.invalid_string,validation:"datetime",message:a.message}),r.dirty()):a.kind==="date"?sI.test(t.data)||(i=this._getOrReturnCtx(t,i),we(i,{code:he.invalid_string,validation:"date",message:a.message}),r.dirty()):a.kind==="time"?lI(a).test(t.data)||(i=this._getOrReturnCtx(t,i),we(i,{code:he.invalid_string,validation:"time",message:a.message}),r.dirty()):a.kind==="duration"?QN.test(t.data)||(i=this._getOrReturnCtx(t,i),we(i,{validation:"duration",code:he.invalid_string,message:a.message}),r.dirty()):a.kind==="ip"?cI(t.data,a.version)||(i=this._getOrReturnCtx(t,i),we(i,{validation:"ip",code:he.invalid_string,message:a.message}),r.dirty()):a.kind==="jwt"?uI(t.data,a.alg)||(i=this._getOrReturnCtx(t,i),we(i,{validation:"jwt",code:he.invalid_string,message:a.message}),r.dirty()):a.kind==="cidr"?dI(t.data,a.version)||(i=this._getOrReturnCtx(t,i),we(i,{validation:"cidr",code:he.invalid_string,message:a.message}),r.dirty()):a.kind==="base64"?aI.test(t.data)||(i=this._getOrReturnCtx(t,i),we(i,{validation:"base64",code:he.invalid_string,message:a.message}),r.dirty()):a.kind==="base64url"?oI.test(t.data)||(i=this._getOrReturnCtx(t,i),we(i,{validation:"base64url",code:he.invalid_string,message:a.message}),r.dirty()):yt.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,...Te.errToObj(r)})}_addCheck(t){return new Ar({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Te.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Te.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Te.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Te.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Te.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Te.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Te.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Te.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Te.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...Te.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...Te.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Te.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...Te.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,...Te.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,...Te.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...Te.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...Te.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...Te.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...Te.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...Te.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...Te.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...Te.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...Te.errToObj(n)})}nonempty(t){return this.min(1,Te.errToObj(t))}trim(){return new Ar({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Ar({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Ar({...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}}Ar.create=e=>new Ar({checks:[],typeName:We.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...it(e)});function fI(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 ha extends ct{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Ce.number){const a=this._getOrReturnCtx(t);return we(a,{code:he.invalid_type,expected:Ce.number,received:a.parsedType}),Be}let r;const i=new Nn;for(const a of this._def.checks)a.kind==="int"?yt.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),we(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),we(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),we(r,{code:he.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):a.kind==="multipleOf"?fI(t.data,a.value)!==0&&(r=this._getOrReturnCtx(t,r),we(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),we(r,{code:he.not_finite,message:a.message}),i.dirty()):yt.assertNever(a);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Te.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Te.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Te.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Te.toString(n))}setLimit(t,n,r,i){return new ha({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Te.toString(i)}]})}_addCheck(t){return new ha({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Te.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Te.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Te.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Te.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Te.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Te.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:Te.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Te.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Te.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"&&yt.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)}}ha.create=e=>new ha({checks:[],typeName:We.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...it(e)});class pa extends ct{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==Ce.bigint)return this._getInvalidInput(t);let r;const i=new Nn;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),we(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),we(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),we(r,{code:he.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):yt.assertNever(a);return{status:i.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return we(n,{code:he.invalid_type,expected:Ce.bigint,received:n.parsedType}),Be}gte(t,n){return this.setLimit("min",t,!0,Te.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Te.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Te.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Te.toString(n))}setLimit(t,n,r,i){return new pa({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Te.toString(i)}]})}_addCheck(t){return new pa({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Te.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Te.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Te.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Te.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Te.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}}pa.create=e=>new pa({checks:[],typeName:We.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...it(e)});class oc extends ct{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Ce.boolean){const r=this._getOrReturnCtx(t);return we(r,{code:he.invalid_type,expected:Ce.boolean,received:r.parsedType}),Be}return Un(t.data)}}oc.create=e=>new oc({typeName:We.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...it(e)});class so extends ct{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Ce.date){const a=this._getOrReturnCtx(t);return we(a,{code:he.invalid_type,expected:Ce.date,received:a.parsedType}),Be}if(Number.isNaN(t.data.getTime())){const a=this._getOrReturnCtx(t);return we(a,{code:he.invalid_date}),Be}const r=new Nn;let i;for(const a of this._def.checks)a.kind==="min"?t.data.getTime()<a.value&&(i=this._getOrReturnCtx(t,i),we(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),we(i,{code:he.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),r.dirty()):yt.assertNever(a);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new so({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:Te.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:Te.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}}so.create=e=>new so({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:We.ZodDate,...it(e)});class Vd extends ct{_parse(t){if(this._getType(t)!==Ce.symbol){const r=this._getOrReturnCtx(t);return we(r,{code:he.invalid_type,expected:Ce.symbol,received:r.parsedType}),Be}return Un(t.data)}}Vd.create=e=>new Vd({typeName:We.ZodSymbol,...it(e)});class sc extends ct{_parse(t){if(this._getType(t)!==Ce.undefined){const r=this._getOrReturnCtx(t);return we(r,{code:he.invalid_type,expected:Ce.undefined,received:r.parsedType}),Be}return Un(t.data)}}sc.create=e=>new sc({typeName:We.ZodUndefined,...it(e)});class lc extends ct{_parse(t){if(this._getType(t)!==Ce.null){const r=this._getOrReturnCtx(t);return we(r,{code:he.invalid_type,expected:Ce.null,received:r.parsedType}),Be}return Un(t.data)}}lc.create=e=>new lc({typeName:We.ZodNull,...it(e)});class $s extends ct{constructor(){super(...arguments),this._any=!0}_parse(t){return Un(t.data)}}$s.create=e=>new $s({typeName:We.ZodAny,...it(e)});class Ja extends ct{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Un(t.data)}}Ja.create=e=>new Ja({typeName:We.ZodUnknown,...it(e)});class Di extends ct{_parse(t){const n=this._getOrReturnCtx(t);return we(n,{code:he.invalid_type,expected:Ce.never,received:n.parsedType}),Be}}Di.create=e=>new Di({typeName:We.ZodNever,...it(e)});class qd extends ct{_parse(t){if(this._getType(t)!==Ce.undefined){const r=this._getOrReturnCtx(t);return we(r,{code:he.invalid_type,expected:Ce.void,received:r.parsedType}),Be}return Un(t.data)}}qd.create=e=>new qd({typeName:We.ZodVoid,...it(e)});class jr extends ct{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),i=this._def;if(n.parsedType!==Ce.array)return we(n,{code:he.invalid_type,expected:Ce.array,received:n.parsedType}),Be;if(i.exactLength!==null){const o=n.data.length>i.exactLength.value,s=n.data.length<i.exactLength.value;(o||s)&&(we(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&&(we(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&&(we(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 Jr(n,o,n.path,s)))).then(o=>Nn.mergeArray(r,o));const a=[...n.data].map((o,s)=>i.type._parseSync(new Jr(n,o,n.path,s)));return Nn.mergeArray(r,a)}get element(){return this._def.type}min(t,n){return new jr({...this._def,minLength:{value:t,message:Te.toString(n)}})}max(t,n){return new jr({...this._def,maxLength:{value:t,message:Te.toString(n)}})}length(t,n){return new jr({...this._def,exactLength:{value:t,message:Te.toString(n)}})}nonempty(t){return this.min(1,t)}}jr.create=(e,t)=>new jr({type:e,minLength:null,maxLength:null,exactLength:null,typeName:We.ZodArray,...it(t)});function Qo(e){if(e instanceof an){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Gr.create(Qo(r))}return new an({...e._def,shape:()=>t})}else return e instanceof jr?new jr({...e._def,type:Qo(e.element)}):e instanceof Gr?Gr.create(Qo(e.unwrap())):e instanceof ga?ga.create(Qo(e.unwrap())):e instanceof ei?ei.create(e.items.map(t=>Qo(t))):e}class an extends ct{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=yt.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==Ce.object){const c=this._getOrReturnCtx(t);return we(c,{code:he.invalid_type,expected:Ce.object,received:c.parsedType}),Be}const{status:r,ctx:i}=this._processInputParams(t),{shape:a,keys:o}=this._getCached(),s=[];if(!(this._def.catchall instanceof Di&&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 Jr(i,d,i.path,c)),alwaysSet:c in i.data})}if(this._def.catchall instanceof Di){const c=this._def.unknownKeys;if(c==="passthrough")for(const u of s)l.push({key:{status:"valid",value:u},value:{status:"valid",value:i.data[u]}});else if(c==="strict")s.length>0&&(we(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 Jr(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=>Nn.mergeObjectSync(r,c)):Nn.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return Te.errToObj,new an({...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:Te.errToObj(t).message??i}:{message:i}}}:{}})}strip(){return new an({...this._def,unknownKeys:"strip"})}passthrough(){return new an({...this._def,unknownKeys:"passthrough"})}extend(t){return new an({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new an({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:We.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new an({...this._def,catchall:t})}pick(t){const n={};for(const r of yt.objectKeys(t))t[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new an({...this._def,shape:()=>n})}omit(t){const n={};for(const r of yt.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new an({...this._def,shape:()=>n})}deepPartial(){return Qo(this)}partial(t){const n={};for(const r of yt.objectKeys(this.shape)){const i=this.shape[r];t&&!t[r]?n[r]=i:n[r]=i.optional()}return new an({...this._def,shape:()=>n})}required(t){const n={};for(const r of yt.objectKeys(this.shape))if(t&&!t[r])n[r]=this.shape[r];else{let a=this.shape[r];for(;a instanceof Gr;)a=a._def.innerType;n[r]=a}return new an({...this._def,shape:()=>n})}keyof(){return O4(yt.objectKeys(this.shape))}}an.create=(e,t)=>new an({shape:()=>e,unknownKeys:"strip",catchall:Di.create(),typeName:We.ZodObject,...it(t)});an.strictCreate=(e,t)=>new an({shape:()=>e,unknownKeys:"strict",catchall:Di.create(),typeName:We.ZodObject,...it(t)});an.lazycreate=(e,t)=>new an({shape:e,unknownKeys:"strip",catchall:Di.create(),typeName:We.ZodObject,...it(t)});class cc extends ct{_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 sr(s.ctx.common.issues));return we(n,{code:he.invalid_union,unionErrors:o}),Be}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 sr(l));return we(n,{code:he.invalid_union,unionErrors:s}),Be}}get options(){return this._def.options}}cc.create=(e,t)=>new cc({options:e,typeName:We.ZodUnion,...it(t)});const mi=e=>e instanceof fc?mi(e.schema):e instanceof Dr?mi(e.innerType()):e instanceof hc?[e.value]:e instanceof ma?e.options:e instanceof pc?yt.objectValues(e.enum):e instanceof mc?mi(e._def.innerType):e instanceof sc?[void 0]:e instanceof lc?[null]:e instanceof Gr?[void 0,...mi(e.unwrap())]:e instanceof ga?[null,...mi(e.unwrap())]:e instanceof D0||e instanceof vc?mi(e.unwrap()):e instanceof gc?mi(e._def.innerType):[];class sh extends ct{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Ce.object)return we(n,{code:he.invalid_type,expected:Ce.object,received:n.parsedType}),Be;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}):(we(n,{code:he.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),Be)}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=mi(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 sh({typeName:We.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i,...it(r)})}}function Bg(e,t){const n=wi(e),r=wi(t);if(e===t)return{valid:!0,data:e};if(n===Ce.object&&r===Ce.object){const i=yt.objectKeys(t),a=yt.objectKeys(e).filter(s=>i.indexOf(s)!==-1),o={...e,...t};for(const s of a){const l=Bg(e[s],t[s]);if(!l.valid)return{valid:!1};o[s]=l.data}return{valid:!0,data:o}}else if(n===Ce.array&&r===Ce.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=Bg(o,s);if(!l.valid)return{valid:!1};i.push(l.data)}return{valid:!0,data:i}}else return n===Ce.date&&r===Ce.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class uc extends ct{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=(a,o)=>{if(Lg(a)||Lg(o))return Be;const s=Bg(a.value,o.value);return s.valid?((Fg(a)||Fg(o))&&n.dirty(),{status:n.value,value:s.data}):(we(r,{code:he.invalid_intersection_types}),Be)};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}))}}uc.create=(e,t,n)=>new uc({left:e,right:t,typeName:We.ZodIntersection,...it(n)});class ei extends ct{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Ce.array)return we(r,{code:he.invalid_type,expected:Ce.array,received:r.parsedType}),Be;if(r.data.length<this._def.items.length)return we(r,{code:he.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Be;!this._def.rest&&r.data.length>this._def.items.length&&(we(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 Jr(r,o,r.path,s)):null}).filter(o=>!!o);return r.common.async?Promise.all(a).then(o=>Nn.mergeArray(n,o)):Nn.mergeArray(n,a)}get items(){return this._def.items}rest(t){return new ei({...this._def,rest:t})}}ei.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ei({items:e,typeName:We.ZodTuple,rest:null,...it(t)})};class dc extends ct{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Ce.object)return we(r,{code:he.invalid_type,expected:Ce.object,received:r.parsedType}),Be;const i=[],a=this._def.keyType,o=this._def.valueType;for(const s in r.data)i.push({key:a._parse(new Jr(r,s,r.path,s)),value:o._parse(new Jr(r,r.data[s],r.path,s)),alwaysSet:s in r.data});return r.common.async?Nn.mergeObjectAsync(n,i):Nn.mergeObjectSync(n,i)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof ct?new dc({keyType:t,valueType:n,typeName:We.ZodRecord,...it(r)}):new dc({keyType:Ar.create(),valueType:t,typeName:We.ZodRecord,...it(n)})}}class Yd extends ct{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Ce.map)return we(r,{code:he.invalid_type,expected:Ce.map,received:r.parsedType}),Be;const i=this._def.keyType,a=this._def.valueType,o=[...r.data.entries()].map(([s,l],c)=>({key:i._parse(new Jr(r,s,r.path,[c,"key"])),value:a._parse(new Jr(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 Be;(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 Be;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),s.set(c.value,u.value)}return{status:n.value,value:s}}}}Yd.create=(e,t,n)=>new Yd({valueType:t,keyType:e,typeName:We.ZodMap,...it(n)});class lo extends ct{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Ce.set)return we(r,{code:he.invalid_type,expected:Ce.set,received:r.parsedType}),Be;const i=this._def;i.minSize!==null&&r.data.size<i.minSize.value&&(we(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&&(we(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 Be;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 Jr(r,l,r.path,c)));return r.common.async?Promise.all(s).then(l=>o(l)):o(s)}min(t,n){return new lo({...this._def,minSize:{value:t,message:Te.toString(n)}})}max(t,n){return new lo({...this._def,maxSize:{value:t,message:Te.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}lo.create=(e,t)=>new lo({valueType:e,minSize:null,maxSize:null,typeName:We.ZodSet,...it(t)});class as extends ct{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Ce.function)return we(n,{code:he.invalid_type,expected:Ce.function,received:n.parsedType}),Be;function r(s,l){return Hd({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Ud(),Cs].filter(c=>!!c),issueData:{code:he.invalid_arguments,argumentsError:l}})}function i(s,l){return Hd({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Ud(),Cs].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 Ss){const s=this;return Un(async function(...l){const c=new sr([]),u=await s._def.args.parseAsync(l,a).catch(p=>{throw c.addIssue(r(l,p)),c}),d=await Reflect.apply(o,this,u);return await s._def.returns._def.type.parseAsync(d,a).catch(p=>{throw c.addIssue(i(d,p)),c})})}else{const s=this;return Un(function(...l){const c=s._def.args.safeParse(l,a);if(!c.success)throw new sr([r(l,c.error)]);const u=Reflect.apply(o,this,c.data),d=s._def.returns.safeParse(u,a);if(!d.success)throw new sr([i(u,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new as({...this._def,args:ei.create(t).rest(Ja.create())})}returns(t){return new as({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new as({args:t||ei.create([]).rest(Ja.create()),returns:n||Ja.create(),typeName:We.ZodFunction,...it(r)})}}class fc extends ct{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})}}fc.create=(e,t)=>new fc({getter:e,typeName:We.ZodLazy,...it(t)});class hc extends ct{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return we(n,{received:n.data,code:he.invalid_literal,expected:this._def.value}),Be}return{status:"valid",value:t.data}}get value(){return this._def.value}}hc.create=(e,t)=>new hc({value:e,typeName:We.ZodLiteral,...it(t)});function O4(e,t){return new ma({values:e,typeName:We.ZodEnum,...it(t)})}class ma extends ct{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return we(n,{expected:yt.joinValues(r),received:n.parsedType,code:he.invalid_type}),Be}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 we(n,{received:n.data,code:he.invalid_enum_value,options:r}),Be}return Un(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 ma.create(t,{...this._def,...n})}exclude(t,n=this._def){return ma.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}ma.create=O4;class pc extends ct{_parse(t){const n=yt.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==Ce.string&&r.parsedType!==Ce.number){const i=yt.objectValues(n);return we(r,{expected:yt.joinValues(i),received:r.parsedType,code:he.invalid_type}),Be}if(this._cache||(this._cache=new Set(yt.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const i=yt.objectValues(n);return we(r,{received:r.data,code:he.invalid_enum_value,options:i}),Be}return Un(t.data)}get enum(){return this._def.values}}pc.create=(e,t)=>new pc({values:e,typeName:We.ZodNativeEnum,...it(t)});class Ss extends ct{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Ce.promise&&n.common.async===!1)return we(n,{code:he.invalid_type,expected:Ce.promise,received:n.parsedType}),Be;const r=n.parsedType===Ce.promise?n.data:Promise.resolve(n.data);return Un(r.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Ss.create=(e,t)=>new Ss({type:e,typeName:We.ZodPromise,...it(t)});class Dr extends ct{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===We.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=>{we(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 Be;const l=await this._def.schema._parseAsync({data:s,path:r.path,parent:r});return l.status==="aborted"?Be:l.status==="dirty"||n.value==="dirty"?Jo(l.value):l});{if(n.value==="aborted")return Be;const s=this._def.schema._parseSync({data:o,path:r.path,parent:r});return s.status==="aborted"?Be:s.status==="dirty"||n.value==="dirty"?Jo(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"?Be:(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"?Be:(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(!oo(o))return Be;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=>oo(o)?Promise.resolve(i.transform(o.value,a)).then(s=>({status:n.value,value:s})):Be);yt.assertNever(i)}}Dr.create=(e,t,n)=>new Dr({schema:e,typeName:We.ZodEffects,effect:t,...it(n)});Dr.createWithPreprocess=(e,t,n)=>new Dr({schema:t,effect:{type:"preprocess",transform:e},typeName:We.ZodEffects,...it(n)});class Gr extends ct{_parse(t){return this._getType(t)===Ce.undefined?Un(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Gr.create=(e,t)=>new Gr({innerType:e,typeName:We.ZodOptional,...it(t)});class ga extends ct{_parse(t){return this._getType(t)===Ce.null?Un(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}ga.create=(e,t)=>new ga({innerType:e,typeName:We.ZodNullable,...it(t)});class mc extends ct{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===Ce.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}mc.create=(e,t)=>new mc({innerType:e,typeName:We.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...it(t)});class gc extends ct{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},i=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return ac(i)?i.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new sr(r.common.issues)},input:r.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new sr(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}gc.create=(e,t)=>new gc({innerType:e,typeName:We.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...it(t)});class Gd extends ct{_parse(t){if(this._getType(t)!==Ce.nan){const r=this._getOrReturnCtx(t);return we(r,{code:he.invalid_type,expected:Ce.nan,received:r.parsedType}),Be}return{status:"valid",value:t.data}}}Gd.create=e=>new Gd({typeName:We.ZodNaN,...it(e)});const hI=Symbol("zod_brand");class D0 extends ct{_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 ru extends ct{_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"?Be:a.status==="dirty"?(n.dirty(),Jo(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"?Be: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 ru({in:t,out:n,typeName:We.ZodPipeline})}}class vc extends ct{_parse(t){const n=this._def.innerType._parse(t),r=i=>(oo(i)&&(i.value=Object.freeze(i.value)),i);return ac(n)?n.then(i=>r(i)):r(n)}unwrap(){return this._def.innerType}}vc.create=(e,t)=>new vc({innerType:e,typeName:We.ZodReadonly,...it(t)});function _x(e,t){const n=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof n=="string"?{message:n}:n}function M4(e,t={},n){return e?$s.create().superRefine((r,i)=>{const a=e(r);if(a instanceof Promise)return a.then(o=>{if(!o){const s=_x(t,r),l=s.fatal??n??!0;i.addIssue({code:"custom",...s,fatal:l})}});if(!a){const o=_x(t,r),s=o.fatal??n??!0;i.addIssue({code:"custom",...o,fatal:s})}}):$s.create()}const pI={object:an.lazycreate};var We;(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"})(We||(We={}));const mI=(e,t={message:`Input not instance of ${e.name}`})=>M4(n=>n instanceof e,t),N0=Ar.create,A4=ha.create,gI=Gd.create,vI=pa.create,R4=oc.create,bI=so.create,yI=Vd.create,xI=sc.create,wI=lc.create,j4=$s.create,_I=Ja.create,CI=Di.create,$I=qd.create,D4=jr.create,$i=an.create,SI=an.strictCreate,EI=cc.create,kI=sh.create,TI=uc.create,OI=ei.create,MI=dc.create,AI=Yd.create,RI=lo.create,jI=as.create,DI=fc.create,NI=hc.create,N4=ma.create,II=pc.create,PI=Ss.create,Cx=Dr.create,LI=Gr.create,FI=ga.create,BI=Dr.createWithPreprocess,zI=ru.create,WI=()=>N0().optional(),UI=()=>A4().optional(),HI=()=>R4().optional(),Il={string:e=>Ar.create({...e,coerce:!0}),number:e=>ha.create({...e,coerce:!0}),boolean:e=>oc.create({...e,coerce:!0}),bigint:e=>pa.create({...e,coerce:!0}),date:e=>so.create({...e,coerce:!0})},VI=Be,Pl=Object.freeze(Object.defineProperty({__proto__:null,BRAND:hI,DIRTY:Jo,EMPTY_PATH:VN,INVALID:Be,NEVER:VI,OK:Un,ParseStatus:Nn,Schema:ct,ZodAny:$s,ZodArray:jr,ZodBigInt:pa,ZodBoolean:oc,ZodBranded:D0,ZodCatch:gc,ZodDate:so,ZodDefault:mc,ZodDiscriminatedUnion:sh,ZodEffects:Dr,ZodEnum:ma,ZodError:sr,get ZodFirstPartyTypeKind(){return We},ZodFunction:as,ZodIntersection:uc,ZodIssueCode:he,ZodLazy:fc,ZodLiteral:hc,ZodMap:Yd,ZodNaN:Gd,ZodNativeEnum:pc,ZodNever:Di,ZodNull:lc,ZodNullable:ga,ZodNumber:ha,ZodObject:an,ZodOptional:Gr,ZodParsedType:Ce,ZodPipeline:ru,ZodPromise:Ss,ZodReadonly:vc,ZodRecord:dc,ZodSchema:ct,ZodSet:lo,ZodString:Ar,ZodSymbol:Vd,ZodTransformer:Dr,ZodTuple:ei,ZodType:ct,ZodUndefined:sc,ZodUnion:cc,ZodUnknown:Ja,ZodVoid:qd,addIssueToContext:we,any:j4,array:D4,bigint:vI,boolean:R4,coerce:Il,custom:M4,date:bI,datetimeRegex:T4,defaultErrorMap:Cs,discriminatedUnion:kI,effect:Cx,enum:N4,function:jI,getErrorMap:Ud,getParsedType:wi,instanceof:mI,intersection:TI,isAborted:Lg,isAsync:ac,isDirty:Fg,isValid:oo,late:pI,lazy:DI,literal:NI,makeIssue:Hd,map:AI,nan:gI,nativeEnum:II,never:CI,null:wI,nullable:FI,number:A4,object:$i,get objectUtil(){return Pg},oboolean:HI,onumber:UI,optional:LI,ostring:WI,pipeline:zI,preprocess:BI,promise:PI,quotelessJson:UN,record:MI,set:RI,setErrorMap:HN,strictObject:SI,string:N0,symbol:yI,transformer:Cx,tuple:OI,undefined:xI,union:EI,unknown:_I,get util(){return yt},void:$I},Symbol.toStringTag,{value:"Module"})),lh=()=>{const{texts:{formValidation:e}}=h.useContext(sn),t=h.useCallback(m=>{let v=(m!=null&&m.useCoerce?Il:Pl).string({invalid_type_error:e.required,required_error:e.required});return m!=null&&m.email&&(v=v.email(e.invalidEmail)),m!=null&&m.length&&(v=v.min(m.length,e.length(m.length))),m!=null&&m.minLength&&(v=v.min(m.minLength,e.minLength(m.minLength))),m!=null&&m.maxLength&&(v=v.max(m.maxLength,e.maxLength(m.maxLength))),m!=null&&m.numeric&&(v=v.regex(/^\d+$/,e.noCharactersOtherThanNumbers)),m!=null&&m.regex&&(v=v.regex(m.regex,e.invalidFormat)),v.transform(w=>w??null)},[e]),n=h.useCallback(m=>t(m).nullable().optional().transform(v=>v??null),[t]),r=h.useCallback(m=>{const v=(m==null?void 0:m.min)??Number.MIN_SAFE_INTEGER,w=(m==null?void 0:m.max)??Number.MAX_SAFE_INTEGER,_=(m!=null&&m.useCoerce?Il:Pl).number({invalid_type_error:e.required,required_error:e.required}).min(v,e.lessThanMin(v)).max(w,e.moreThanMax(w));return _.transform(y=>y??null),_},[e]),i=h.useCallback(m=>r(m).nullable().optional().transform(v=>v??null),[r]),a=h.useCallback(m=>(m!=null&&m.useCoerce?Il:Pl).boolean({invalid_type_error:e.required,required_error:e.required}).transform(v=>v??null),[e.required]),o=h.useCallback(m=>(m!=null&&m.useCoerce?Il:Pl).string({invalid_type_error:e.required,required_error:e.required}).refine(qS,{message:e.invalidDate}).transform(w=>w??null),[e.invalidDate,e.required]),s=h.useCallback(m=>o(m).nullable().transform(v=>v??null),[o]),l=h.useCallback((m,v)=>N4(m,{invalid_type_error:e.required,required_error:e.required}).transform(_=>_??null),[e.required]),c=h.useCallback((m,v)=>l(m,v).nullable().transform(w=>w??null),[l]),u=h.useCallback(m=>$i({id:i({useCoerce:!0})}).nullable().transform(w=>w??null),[i]),d=h.useCallback(m=>$i({id:r()}).transform(w=>w??null),[r]),f=h.useCallback(m=>$i({id:n({useCoerce:!0})}).nullable().transform(w=>w??null),[n]),p=h.useCallback(m=>$i({id:t()}).transform(w=>w??null),[t]),g=h.useCallback(({required:m,multiple:v,maxFileSize:w})=>j4().transform(y=>Array.from(y??[])).refine(y=>!m||(y==null?void 0:y.length)>0,"File is required.").refine(y=>v||(y==null?void 0:y.length)<=1,"Multiple files not allowed.").refine(y=>y.every(C=>C.size<=w),`Maximum file size is ${xs(w)}.`).transform(y=>(v?y:y==null?void 0:y[0])??null),[]);return{zString:n,zStringRequired:t,zNumber:i,zNumberRequired:r,zBool:a,zDate:s,zDateRequired:o,zEnum:c,zEnumRequired:l,zObjectIdInt:u,zObjectIdIntRequired:d,zObjectIdStr:f,zObjectIdStrRequired:p,zFile:g}},I4=(e,t)=>{h.useEffect(()=>{const n=r=>{e.some(i=>i.current&&i.current.contains(r.target))||t()};return document.addEventListener("mouseup",n),()=>{document.removeEventListener("mouseup",n)}},[e,t])},P4=()=>{const{user:e}=h.useContext(LS);return{checkUserHasPermissions:h.useCallback((n,r="any")=>n.length===0?!0:r==="any"?n.some(i=>{var a;return(a=e==null?void 0:e.permissions)==null?void 0:a.includes(i)}):n.every(i=>{var a;return(a=e==null?void 0:e.permissions)==null?void 0:a.includes(i)}),[e])}},L4=(e,t)=>{h.useEffect(()=>(document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}),[e]),h.useEffect(()=>t===void 0?()=>{}:(document.addEventListener("keyup",t),()=>{document.removeEventListener("keyup",t)}),[t])},I0=(e,t,n)=>h.useMemo(()=>n||e!=="date"&&e!=="datetime-local"&&e!=="time"||t?e:"text",[t,e,n]),F4=()=>{const{addNotification:e}=ah(),{texts:{clipboard:t}}=h.useContext(sn);return{copyToClipboard:h.useCallback(async r=>{var i;try{await((i=navigator.clipboard)==null?void 0:i.writeText(r)),e(t.copySuccess(r),"prompt")}catch(a){console.error(a),e(t.copyError,"danger")}},[e,t])}},iu=()=>{const[e,t]=h.useState(window.innerWidth),[n,r]=h.useState(window.innerHeight),i=()=>{t(window.innerWidth),r(window.innerHeight)};return h.useEffect(()=>(window.addEventListener("resize",i),()=>window.removeEventListener("resize",i)),[]),{width:e,height:n,isMobile:e<992}},B4=h.createContext({addHelmet:e=>{},removeHelmet:()=>{}}),z4=h.createContext(void 0),$x={falseIfNotInit:!1},ch=({falseIfNotInit:e=$x.falseIfNotInit}=$x)=>{const t=h.useContext(z4);if(!e&&t===void 0)throw new Error("FormDisabledProvider not initilized. Probably tried to use useFormDisabledContext outside FormDisabledProvider.");return t??!1},qI="_button_1wjon_1",YI="_filled_1wjon_7",GI="_sm_1wjon_13",KI="_md_1wjon_18",ZI="_lg_1wjon_23",Fo={button:qI,filled:YI,sm:GI,md:KI,lg:ZI},co=({variant:e="filled",color:t="primary",size:n="md",className:r,children:i,...a})=>a.as==="link"?b.jsx(Is.Link,{to:a.href??"/",className:ce(`luminus-primary-button ${t} btn ${e==="outlined"?`btn-outline-${t}`:`btn-${t}`} ${r??""}`,Fo.button,Fo[e],Fo[n]),...a,children:i}):a.as==="button"||a.as===void 0?b.jsx("button",{type:"button",className:ce(`luminus-primary-button ${t} btn ${e==="outlined"?`btn-outline-${t}`:`btn-${t}`} ${r??""}`,Fo.button,Fo[e],Fo[n]),...a,children:i}):null,XI="_button_1r3i0_1",zg={button:XI},uh=({color:e="primary",icon:t,className:n,children:r,...i})=>i.as==="link"?b.jsxs(Is.Link,{to:i.href??"/",className:ce(`luminus-context-button btn text-${e} ${n??""}`,zg.button),...i,children:[t,r]}):i.as==="button"||i.as===void 0?b.jsxs("button",{type:"button",className:ce(`luminus-context-button btn text-${e} ${n??""}`,zg.button),...i,children:[t,r]}):null,QI="_icon-button_15e26_1",JI="_sm_15e26_14",e9="_md_15e26_23",t9="_lg_15e26_32",Vu={"icon-button":"_icon-button_15e26_1",iconButton:QI,sm:JI,md:e9,lg:t9},au=({type:e="button",color:t="primary",size:n="md",children:r,className:i,...a})=>a.as==="link"?b.jsx(Is.Link,{to:a.href??"/",className:ce(`luminus-icon-button btn text-${t} ${i??""}`,Vu.iconButton,Vu[n]),...a,children:r}):a.as==="button"||a.as===void 0?b.jsx("button",{type:e,className:ce(`luminus-icon-button btn text-${t} ${i??""}`,Vu.iconButton,Vu[n]),...a,children:r}):null;var P0={},Kd={exports:{}};Kd.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]",p="[object Function]",g="[object GeneratorFunction]",m="[object Map]",v="[object Number]",w="[object Null]",_="[object Object]",y="[object Promise]",C="[object Proxy]",x="[object RegExp]",$="[object Set]",E="[object String]",O="[object Symbol]",k="[object Undefined]",j="[object WeakMap]",S="[object ArrayBuffer]",T="[object DataView]",R="[object Float32Array]",N="[object Float64Array]",D="[object Int8Array]",M="[object Int16Array]",I="[object Int32Array]",z="[object Uint8Array]",U="[object Uint8ClampedArray]",P="[object Uint16Array]",W="[object Uint32Array]",Y=/[\\^$.*+?()[\]{}|]/g,X=/^\[object .+?Constructor\]$/,K=/^(?:0|[1-9]\d*)$/,Z={};Z[R]=Z[N]=Z[D]=Z[M]=Z[I]=Z[z]=Z[U]=Z[P]=Z[W]=!0,Z[s]=Z[l]=Z[S]=Z[u]=Z[T]=Z[d]=Z[f]=Z[p]=Z[m]=Z[v]=Z[_]=Z[x]=Z[$]=Z[E]=Z[j]=!1;var ee=typeof Kn=="object"&&Kn&&Kn.Object===Object&&Kn,J=typeof self=="object"&&self&&self.Object===Object&&self,B=ee||J||Function("return this")(),L=t&&!t.nodeType&&t,F=L&&!0&&e&&!e.nodeType&&e,H=F&&F.exports===L,A=H&&ee.process,Q=function(){try{return A&&A.binding&&A.binding("util")}catch{}}(),G=Q&&Q.isTypedArray;function q(V,te){for(var de=-1,Se=V==null?0:V.length,Qt=0,ot=[];++de<Se;){var cn=V[de];te(cn,de,V)&&(ot[Qt++]=cn)}return ot}function le(V,te){for(var de=-1,Se=te.length,Qt=V.length;++de<Se;)V[Qt+de]=te[de];return V}function ne(V,te){for(var de=-1,Se=V==null?0:V.length;++de<Se;)if(te(V[de],de,V))return!0;return!1}function re(V,te){for(var de=-1,Se=Array(V);++de<V;)Se[de]=te(de);return Se}function se(V){return function(te){return V(te)}}function fe(V,te){return V.has(te)}function _e(V,te){return V==null?void 0:V[te]}function ye(V){var te=-1,de=Array(V.size);return V.forEach(function(Se,Qt){de[++te]=[Qt,Se]}),de}function xe(V,te){return function(de){return V(te(de))}}function Me(V){var te=-1,de=Array(V.size);return V.forEach(function(Se){de[++te]=Se}),de}var ue=Array.prototype,oe=Function.prototype,be=Object.prototype,Fe=B["__core-js_shared__"],Ft=oe.toString,Pe=be.hasOwnProperty,mt=function(){var V=/[^.]+$/.exec(Fe&&Fe.keys&&Fe.keys.IE_PROTO||"");return V?"Symbol(src)_1."+V:""}(),wt=be.toString,tn=RegExp("^"+Ft.call(Pe).replace(Y,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ee=H?B.Buffer:void 0,Re=B.Symbol,gt=B.Uint8Array,Ve=be.propertyIsEnumerable,vt=ue.splice,at=Re?Re.toStringTag:void 0,Mt=Object.getOwnPropertySymbols,Ge=Ee?Ee.isBuffer:void 0,De=xe(Object.keys,Object),ze=Do(B,"DataView"),Xe=Do(B,"Map"),Ne=Do(B,"Promise"),Qe=Do(B,"Set"),ft=Do(B,"WeakMap"),tt=Do(Object,"create"),je=Aa(ze),ke=Aa(Xe),Ue=Aa(Ne),bt=Aa(Qe),Je=Aa(ft),ht=Re?Re.prototype:void 0,en=ht?ht.valueOf:void 0;function Bt(V){var te=-1,de=V==null?0:V.length;for(this.clear();++te<de;){var Se=V[te];this.set(Se[0],Se[1])}}function Ut(){this.__data__=tt?tt(null):{},this.size=0}function mn(V){var te=this.has(V)&&delete this.__data__[V];return this.size-=te?1:0,te}function Gt(V){var te=this.__data__;if(tt){var de=te[V];return de===r?void 0:de}return Pe.call(te,V)?te[V]:void 0}function $e(V){var te=this.__data__;return tt?te[V]!==void 0:Pe.call(te,V)}function Ke(V,te){var de=this.__data__;return this.size+=this.has(V)?0:1,de[V]=tt&&te===void 0?r:te,this}Bt.prototype.clear=Ut,Bt.prototype.delete=mn,Bt.prototype.get=Gt,Bt.prototype.has=$e,Bt.prototype.set=Ke;function _t(V){var te=-1,de=V==null?0:V.length;for(this.clear();++te<de;){var Se=V[te];this.set(Se[0],Se[1])}}function ln(){this.__data__=[],this.size=0}function Kt(V){var te=this.__data__,de=ui(te,V);if(de<0)return!1;var Se=te.length-1;return de==Se?te.pop():vt.call(te,de,1),--this.size,!0}function Ie(V){var te=this.__data__,de=ui(te,V);return de<0?void 0:te[de][1]}function Le(V){return ui(this.__data__,V)>-1}function lt(V,te){var de=this.__data__,Se=ui(de,V);return Se<0?(++this.size,de.push([V,te])):de[Se][1]=te,this}_t.prototype.clear=ln,_t.prototype.delete=Kt,_t.prototype.get=Ie,_t.prototype.has=Le,_t.prototype.set=lt;function At(V){var te=-1,de=V==null?0:V.length;for(this.clear();++te<de;){var Se=V[te];this.set(Se[0],Se[1])}}function Ct(){this.size=0,this.__data__={hash:new Bt,map:new(Xe||_t),string:new Bt}}function Ze(V){var te=Ui(this,V).delete(V);return this.size-=te?1:0,te}function $t(V){return Ui(this,V).get(V)}function kr(V){return Ui(this,V).has(V)}function un(V,te){var de=Ui(this,V),Se=de.size;return de.set(V,te),this.size+=de.size==Se?0:1,this}At.prototype.clear=Ct,At.prototype.delete=Ze,At.prototype.get=$t,At.prototype.has=kr,At.prototype.set=un;function dn(V){var te=-1,de=V==null?0:V.length;for(this.__data__=new At;++te<de;)this.add(V[te])}function In(V){return this.__data__.set(V,r),this}function Ea(V){return this.__data__.has(V)}dn.prototype.add=dn.prototype.push=In,dn.prototype.has=Ea;function xt(V){var te=this.__data__=new _t(V);this.size=te.size}function ka(){this.__data__=new _t,this.size=0}function Oe(V){var te=this.__data__,de=te.delete(V);return this.size=te.size,de}function Fr(V){return this.__data__.get(V)}function Ta(V){return this.__data__.has(V)}function Ro(V,te){var de=this.__data__;if(de instanceof _t){var Se=de.__data__;if(!Xe||Se.length<n-1)return Se.push([V,te]),this.size=++de.size,this;de=this.__data__=new At(Se)}return de.set(V,te),this.size=de.size,this}xt.prototype.clear=ka,xt.prototype.delete=Oe,xt.prototype.get=Fr,xt.prototype.has=Ta,xt.prototype.set=Ro;function jo(V,te){var de=ju(V),Se=!de&&r6(V),Qt=!de&&!Se&&zp(V),ot=!de&&!Se&&!Qt&&s1(V),cn=de||Se||Qt||ot,wn=cn?re(V.length,String):[],Sn=wn.length;for(var nn in V)Pe.call(V,nn)&&!(cn&&(nn=="length"||Qt&&(nn=="offset"||nn=="parent")||ot&&(nn=="buffer"||nn=="byteLength"||nn=="byteOffset")||QM(nn,Sn)))&&wn.push(nn);return wn}function ui(V,te){for(var de=V.length;de--;)if(r1(V[de][0],te))return de;return-1}function Mu(V,te,de){var Se=te(V);return ju(V)?Se:le(Se,de(V))}function di(V){return V==null?V===void 0?k:w:at&&at in Object(V)?ZM(V):n6(V)}function sl(V){return cl(V)&&di(V)==s}function Oa(V,te,de,Se,Qt){return V===te?!0:V==null||te==null||!cl(V)&&!cl(te)?V!==V&&te!==te:ll(V,te,de,Se,Oa,Qt)}function ll(V,te,de,Se,Qt,ot){var cn=ju(V),wn=ju(te),Sn=cn?l:Hi(V),nn=wn?l:Hi(te);Sn=Sn==s?_:Sn,nn=nn==s?_:nn;var ar=Sn==_,Tr=nn==_,kn=Sn==nn;if(kn&&zp(V)){if(!zp(te))return!1;cn=!0,ar=!1}if(kn&&!ar)return ot||(ot=new xt),cn||s1(V)?Pn(V,te,de,Se,Qt,ot):Fp(V,te,Sn,de,Se,Qt,ot);if(!(de&i)){var dr=ar&&Pe.call(V,"__wrapped__"),fr=Tr&&Pe.call(te,"__wrapped__");if(dr||fr){var Vi=dr?V.value():V,fi=fr?te.value():te;return ot||(ot=new xt),Qt(Vi,fi,de,Se,ot)}}return kn?(ot||(ot=new xt),Bp(V,te,de,Se,Qt,ot)):!1}function Au(V){if(!o1(V)||e6(V))return!1;var te=i1(V)?tn:X;return te.test(Aa(V))}function Ma(V){return cl(V)&&a1(V.length)&&!!Z[di(V)]}function Ru(V){if(!t6(V))return De(V);var te=[];for(var de in Object(V))Pe.call(V,de)&&de!="constructor"&&te.push(de);return te}function Pn(V,te,de,Se,Qt,ot){var cn=de&i,wn=V.length,Sn=te.length;if(wn!=Sn&&!(cn&&Sn>wn))return!1;var nn=ot.get(V);if(nn&&ot.get(te))return nn==te;var ar=-1,Tr=!0,kn=de&a?new dn:void 0;for(ot.set(V,te),ot.set(te,V);++ar<wn;){var dr=V[ar],fr=te[ar];if(Se)var Vi=cn?Se(fr,dr,ar,te,V,ot):Se(dr,fr,ar,V,te,ot);if(Vi!==void 0){if(Vi)continue;Tr=!1;break}if(kn){if(!ne(te,function(fi,Ra){if(!fe(kn,Ra)&&(dr===fi||Qt(dr,fi,de,Se,ot)))return kn.push(Ra)})){Tr=!1;break}}else if(!(dr===fr||Qt(dr,fr,de,Se,ot))){Tr=!1;break}}return ot.delete(V),ot.delete(te),Tr}function Fp(V,te,de,Se,Qt,ot,cn){switch(de){case T:if(V.byteLength!=te.byteLength||V.byteOffset!=te.byteOffset)return!1;V=V.buffer,te=te.buffer;case S:return!(V.byteLength!=te.byteLength||!ot(new gt(V),new gt(te)));case u:case d:case v:return r1(+V,+te);case f:return V.name==te.name&&V.message==te.message;case x:case E:return V==te+"";case m:var wn=ye;case $:var Sn=Se&i;if(wn||(wn=Me),V.size!=te.size&&!Sn)return!1;var nn=cn.get(V);if(nn)return nn==te;Se|=a,cn.set(V,te);var ar=Pn(wn(V),wn(te),Se,Qt,ot,cn);return cn.delete(V),ar;case O:if(en)return en.call(V)==en.call(te)}return!1}function Bp(V,te,de,Se,Qt,ot){var cn=de&i,wn=Br(V),Sn=wn.length,nn=Br(te),ar=nn.length;if(Sn!=ar&&!cn)return!1;for(var Tr=Sn;Tr--;){var kn=wn[Tr];if(!(cn?kn in te:Pe.call(te,kn)))return!1}var dr=ot.get(V);if(dr&&ot.get(te))return dr==te;var fr=!0;ot.set(V,te),ot.set(te,V);for(var Vi=cn;++Tr<Sn;){kn=wn[Tr];var fi=V[kn],Ra=te[kn];if(Se)var l1=cn?Se(Ra,fi,kn,te,V,ot):Se(fi,Ra,kn,V,te,ot);if(!(l1===void 0?fi===Ra||Qt(fi,Ra,de,Se,ot):l1)){fr=!1;break}Vi||(Vi=kn=="constructor")}if(fr&&!Vi){var Du=V.constructor,Nu=te.constructor;Du!=Nu&&"constructor"in V&&"constructor"in te&&!(typeof Du=="function"&&Du instanceof Du&&typeof Nu=="function"&&Nu instanceof Nu)&&(fr=!1)}return ot.delete(V),ot.delete(te),fr}function Br(V){return Mu(V,o6,XM)}function Ui(V,te){var de=V.__data__;return JM(te)?de[typeof te=="string"?"string":"hash"]:de.map}function Do(V,te){var de=_e(V,te);return Au(de)?de:void 0}function ZM(V){var te=Pe.call(V,at),de=V[at];try{V[at]=void 0;var Se=!0}catch{}var Qt=wt.call(V);return Se&&(te?V[at]=de:delete V[at]),Qt}var XM=Mt?function(V){return V==null?[]:(V=Object(V),q(Mt(V),function(te){return Ve.call(V,te)}))}:s6,Hi=di;(ze&&Hi(new ze(new ArrayBuffer(1)))!=T||Xe&&Hi(new Xe)!=m||Ne&&Hi(Ne.resolve())!=y||Qe&&Hi(new Qe)!=$||ft&&Hi(new ft)!=j)&&(Hi=function(V){var te=di(V),de=te==_?V.constructor:void 0,Se=de?Aa(de):"";if(Se)switch(Se){case je:return T;case ke:return m;case Ue:return y;case bt:return $;case Je:return j}return te});function QM(V,te){return te=te??o,!!te&&(typeof V=="number"||K.test(V))&&V>-1&&V%1==0&&V<te}function JM(V){var te=typeof V;return te=="string"||te=="number"||te=="symbol"||te=="boolean"?V!=="__proto__":V===null}function e6(V){return!!mt&&mt in V}function t6(V){var te=V&&V.constructor,de=typeof te=="function"&&te.prototype||be;return V===de}function n6(V){return wt.call(V)}function Aa(V){if(V!=null){try{return Ft.call(V)}catch{}try{return V+""}catch{}}return""}function r1(V,te){return V===te||V!==V&&te!==te}var r6=sl(function(){return arguments}())?sl:function(V){return cl(V)&&Pe.call(V,"callee")&&!Ve.call(V,"callee")},ju=Array.isArray;function i6(V){return V!=null&&a1(V.length)&&!i1(V)}var zp=Ge||l6;function a6(V,te){return Oa(V,te)}function i1(V){if(!o1(V))return!1;var te=di(V);return te==p||te==g||te==c||te==C}function a1(V){return typeof V=="number"&&V>-1&&V%1==0&&V<=o}function o1(V){var te=typeof V;return V!=null&&(te=="object"||te=="function")}function cl(V){return V!=null&&typeof V=="object"}var s1=G?se(G):Ma;function o6(V){return i6(V)?jo(V):Ru(V)}function s6(){return[]}function l6(){return!1}e.exports=a6})(Kd,Kd.exports);var n9=Kd.exports,W4={exports:{}};(function(e,t){var n=function(){var r=function(x,$){var E=236,O=17,k=x,j=a[$],S=null,T=0,R=null,N=[],D={},M=function(B,L){T=k*4+17,S=function(F){for(var H=new Array(F),A=0;A<F;A+=1){H[A]=new Array(F);for(var Q=0;Q<F;Q+=1)H[A][Q]=null}return H}(T),I(0,0),I(T-7,0),I(0,T-7),P(),U(),Y(B,L),k>=7&&W(B),R==null&&(R=Z(k,j,N)),X(R,L)},I=function(B,L){for(var F=-1;F<=7;F+=1)if(!(B+F<=-1||T<=B+F))for(var H=-1;H<=7;H+=1)L+H<=-1||T<=L+H||(0<=F&&F<=6&&(H==0||H==6)||0<=H&&H<=6&&(F==0||F==6)||2<=F&&F<=4&&2<=H&&H<=4?S[B+F][L+H]=!0:S[B+F][L+H]=!1)},z=function(){for(var B=0,L=0,F=0;F<8;F+=1){M(!0,F);var H=s.getLostPoint(D);(F==0||B>H)&&(B=H,L=F)}return L},U=function(){for(var B=8;B<T-8;B+=1)S[B][6]==null&&(S[B][6]=B%2==0);for(var L=8;L<T-8;L+=1)S[6][L]==null&&(S[6][L]=L%2==0)},P=function(){for(var B=s.getPatternPosition(k),L=0;L<B.length;L+=1)for(var F=0;F<B.length;F+=1){var H=B[L],A=B[F];if(S[H][A]==null)for(var Q=-2;Q<=2;Q+=1)for(var G=-2;G<=2;G+=1)Q==-2||Q==2||G==-2||G==2||Q==0&&G==0?S[H+Q][A+G]=!0:S[H+Q][A+G]=!1}},W=function(B){for(var L=s.getBCHTypeNumber(k),F=0;F<18;F+=1){var H=!B&&(L>>F&1)==1;S[Math.floor(F/3)][F%3+T-8-3]=H}for(var F=0;F<18;F+=1){var H=!B&&(L>>F&1)==1;S[F%3+T-8-3][Math.floor(F/3)]=H}},Y=function(B,L){for(var F=j<<3|L,H=s.getBCHTypeInfo(F),A=0;A<15;A+=1){var Q=!B&&(H>>A&1)==1;A<6?S[A][8]=Q:A<8?S[A+1][8]=Q:S[T-15+A][8]=Q}for(var A=0;A<15;A+=1){var Q=!B&&(H>>A&1)==1;A<8?S[8][T-A-1]=Q:A<9?S[8][15-A-1+1]=Q:S[8][15-A-1]=Q}S[T-8][8]=!B},X=function(B,L){for(var F=-1,H=T-1,A=7,Q=0,G=s.getMaskFunction(L),q=T-1;q>0;q-=2)for(q==6&&(q-=1);;){for(var le=0;le<2;le+=1)if(S[H][q-le]==null){var ne=!1;Q<B.length&&(ne=(B[Q]>>>A&1)==1);var re=G(H,q-le);re&&(ne=!ne),S[H][q-le]=ne,A-=1,A==-1&&(Q+=1,A=7)}if(H+=F,H<0||T<=H){H-=F,F=-F;break}}},K=function(B,L){for(var F=0,H=0,A=0,Q=new Array(L.length),G=new Array(L.length),q=0;q<L.length;q+=1){var le=L[q].dataCount,ne=L[q].totalCount-le;H=Math.max(H,le),A=Math.max(A,ne),Q[q]=new Array(le);for(var re=0;re<Q[q].length;re+=1)Q[q][re]=255&B.getBuffer()[re+F];F+=le;var se=s.getErrorCorrectPolynomial(ne),fe=c(Q[q],se.getLength()-1),_e=fe.mod(se);G[q]=new Array(se.getLength()-1);for(var re=0;re<G[q].length;re+=1){var ye=re+_e.getLength()-G[q].length;G[q][re]=ye>=0?_e.getAt(ye):0}}for(var xe=0,re=0;re<L.length;re+=1)xe+=L[re].totalCount;for(var Me=new Array(xe),ue=0,re=0;re<H;re+=1)for(var q=0;q<L.length;q+=1)re<Q[q].length&&(Me[ue]=Q[q][re],ue+=1);for(var re=0;re<A;re+=1)for(var q=0;q<L.length;q+=1)re<G[q].length&&(Me[ue]=G[q][re],ue+=1);return Me},Z=function(B,L,F){for(var H=u.getRSBlocks(B,L),A=d(),Q=0;Q<F.length;Q+=1){var G=F[Q];A.put(G.getMode(),4),A.put(G.getLength(),s.getLengthInBits(G.getMode(),B)),G.write(A)}for(var q=0,Q=0;Q<H.length;Q+=1)q+=H[Q].dataCount;if(A.getLengthInBits()>q*8)throw"code length overflow. ("+A.getLengthInBits()+">"+q*8+")";for(A.getLengthInBits()+4<=q*8&&A.put(0,4);A.getLengthInBits()%8!=0;)A.putBit(!1);for(;!(A.getLengthInBits()>=q*8||(A.put(E,8),A.getLengthInBits()>=q*8));)A.put(O,8);return K(A,H)};D.addData=function(B,L){L=L||"Byte";var F=null;switch(L){case"Numeric":F=f(B);break;case"Alphanumeric":F=p(B);break;case"Byte":F=g(B);break;case"Kanji":F=m(B);break;default:throw"mode:"+L}N.push(F),R=null},D.isDark=function(B,L){if(B<0||T<=B||L<0||T<=L)throw B+","+L;return S[B][L]},D.getModuleCount=function(){return T},D.make=function(){if(k<1){for(var B=1;B<40;B++){for(var L=u.getRSBlocks(B,j),F=d(),H=0;H<N.length;H++){var A=N[H];F.put(A.getMode(),4),F.put(A.getLength(),s.getLengthInBits(A.getMode(),B)),A.write(F)}for(var Q=0,H=0;H<L.length;H++)Q+=L[H].dataCount;if(F.getLengthInBits()<=Q*8)break}k=B}M(!1,z())},D.createTableTag=function(B,L){B=B||2,L=typeof L>"u"?B*4:L;var F="";F+='<table style="',F+=" border-width: 0px; border-style: none;",F+=" border-collapse: collapse;",F+=" padding: 0px; margin: "+L+"px;",F+='">',F+="<tbody>";for(var H=0;H<D.getModuleCount();H+=1){F+="<tr>";for(var A=0;A<D.getModuleCount();A+=1)F+='<td style="',F+=" border-width: 0px; border-style: none;",F+=" border-collapse: collapse;",F+=" padding: 0px; margin: 0px;",F+=" width: "+B+"px;",F+=" height: "+B+"px;",F+=" background-color: ",F+=D.isDark(H,A)?"#000000":"#ffffff",F+=";",F+='"/>';F+="</tr>"}return F+="</tbody>",F+="</table>",F},D.createSvgTag=function(B,L,F,H){var A={};typeof arguments[0]=="object"&&(A=arguments[0],B=A.cellSize,L=A.margin,F=A.alt,H=A.title),B=B||2,L=typeof L>"u"?B*4:L,F=typeof F=="string"?{text:F}:F||{},F.text=F.text||null,F.id=F.text?F.id||"qrcode-description":null,H=typeof H=="string"?{text:H}:H||{},H.text=H.text||null,H.id=H.text?H.id||"qrcode-title":null;var Q=D.getModuleCount()*B+L*2,G,q,le,ne,re="",se;for(se="l"+B+",0 0,"+B+" -"+B+",0 0,-"+B+"z ",re+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',re+=A.scalable?"":' width="'+Q+'px" height="'+Q+'px"',re+=' viewBox="0 0 '+Q+" "+Q+'" ',re+=' preserveAspectRatio="xMinYMin meet"',re+=H.text||F.text?' role="img" aria-labelledby="'+ee([H.id,F.id].join(" ").trim())+'"':"",re+=">",re+=H.text?'<title id="'+ee(H.id)+'">'+ee(H.text)+"</title>":"",re+=F.text?'<description id="'+ee(F.id)+'">'+ee(F.text)+"</description>":"",re+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',re+='<path d="',le=0;le<D.getModuleCount();le+=1)for(ne=le*B+L,G=0;G<D.getModuleCount();G+=1)D.isDark(le,G)&&(q=G*B+L,re+="M"+q+","+ne+se);return re+='" stroke="transparent" fill="black"/>',re+="</svg>",re},D.createDataURL=function(B,L){B=B||2,L=typeof L>"u"?B*4:L;var F=D.getModuleCount()*B+L*2,H=L,A=F-L;return C(F,F,function(Q,G){if(H<=Q&&Q<A&&H<=G&&G<A){var q=Math.floor((Q-H)/B),le=Math.floor((G-H)/B);return D.isDark(le,q)?0:1}else return 1})},D.createImgTag=function(B,L,F){B=B||2,L=typeof L>"u"?B*4:L;var H=D.getModuleCount()*B+L*2,A="";return A+="<img",A+=' src="',A+=D.createDataURL(B,L),A+='"',A+=' width="',A+=H,A+='"',A+=' height="',A+=H,A+='"',F&&(A+=' alt="',A+=ee(F),A+='"'),A+="/>",A};var ee=function(B){for(var L="",F=0;F<B.length;F+=1){var H=B.charAt(F);switch(H){case"<":L+="&lt;";break;case">":L+="&gt;";break;case"&":L+="&amp;";break;case'"':L+="&quot;";break;default:L+=H;break}}return L},J=function(B){var L=1;B=typeof B>"u"?L*2:B;var F=D.getModuleCount()*L+B*2,H=B,A=F-B,Q,G,q,le,ne,re={"██":"█","█ ":"▀"," █":"▄"," ":" "},se={"██":"▀","█ ":"▀"," █":" "," ":" "},fe="";for(Q=0;Q<F;Q+=2){for(q=Math.floor((Q-H)/L),le=Math.floor((Q+1-H)/L),G=0;G<F;G+=1)ne="█",H<=G&&G<A&&H<=Q&&Q<A&&D.isDark(q,Math.floor((G-H)/L))&&(ne=" "),H<=G&&G<A&&H<=Q+1&&Q+1<A&&D.isDark(le,Math.floor((G-H)/L))?ne+=" ":ne+="█",fe+=B<1&&Q+1>=A?se[ne]:re[ne];fe+=`
225
- `}return F%2&&B>0?fe.substring(0,fe.length-F-1)+Array(F+1).join("▀"):fe.substring(0,fe.length-1)};return D.createASCII=function(B,L){if(B=B||1,B<2)return J(L);B-=1,L=typeof L>"u"?B*2:L;var F=D.getModuleCount()*B+L*2,H=L,A=F-L,Q,G,q,le,ne=Array(B+1).join("██"),re=Array(B+1).join(" "),se="",fe="";for(Q=0;Q<F;Q+=1){for(q=Math.floor((Q-H)/B),fe="",G=0;G<F;G+=1)le=1,H<=G&&G<A&&H<=Q&&Q<A&&D.isDark(q,Math.floor((G-H)/B))&&(le=0),fe+=le?ne:re;for(q=0;q<B;q+=1)se+=fe+`
226
- `}return se.substring(0,se.length-1)},D.renderTo2dContext=function(B,L){L=L||2;for(var F=D.getModuleCount(),H=0;H<F;H++)for(var A=0;A<F;A++)B.fillStyle=D.isDark(H,A)?"black":"white",B.fillRect(H*L,A*L,L,L)},D};r.stringToBytesFuncs={default:function(x){for(var $=[],E=0;E<x.length;E+=1){var O=x.charCodeAt(E);$.push(O&255)}return $}},r.stringToBytes=r.stringToBytesFuncs.default,r.createStringToBytes=function(x,$){var E=function(){for(var k=_(x),j=function(){var U=k.read();if(U==-1)throw"eof";return U},S=0,T={};;){var R=k.read();if(R==-1)break;var N=j(),D=j(),M=j(),I=String.fromCharCode(R<<8|N),z=D<<8|M;T[I]=z,S+=1}if(S!=$)throw S+" != "+$;return T}(),O=63;return function(k){for(var j=[],S=0;S<k.length;S+=1){var T=k.charCodeAt(S);if(T<128)j.push(T);else{var R=E[k.charAt(S)];typeof R=="number"?(R&255)==R?j.push(R):(j.push(R>>>8),j.push(R&255)):j.push(O)}}return j}};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 x=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],$=1335,E=7973,O=21522,k={},j=function(S){for(var T=0;S!=0;)T+=1,S>>>=1;return T};return k.getBCHTypeInfo=function(S){for(var T=S<<10;j(T)-j($)>=0;)T^=$<<j(T)-j($);return(S<<10|T)^O},k.getBCHTypeNumber=function(S){for(var T=S<<12;j(T)-j(E)>=0;)T^=E<<j(T)-j(E);return S<<12|T},k.getPatternPosition=function(S){return x[S-1]},k.getMaskFunction=function(S){switch(S){case o.PATTERN000:return function(T,R){return(T+R)%2==0};case o.PATTERN001:return function(T,R){return T%2==0};case o.PATTERN010:return function(T,R){return R%3==0};case o.PATTERN011:return function(T,R){return(T+R)%3==0};case o.PATTERN100:return function(T,R){return(Math.floor(T/2)+Math.floor(R/3))%2==0};case o.PATTERN101:return function(T,R){return T*R%2+T*R%3==0};case o.PATTERN110:return function(T,R){return(T*R%2+T*R%3)%2==0};case o.PATTERN111:return function(T,R){return(T*R%3+(T+R)%2)%2==0};default:throw"bad maskPattern:"+S}},k.getErrorCorrectPolynomial=function(S){for(var T=c([1],0),R=0;R<S;R+=1)T=T.multiply(c([1,l.gexp(R)],0));return T},k.getLengthInBits=function(S,T){if(1<=T&&T<10)switch(S){case i.MODE_NUMBER:return 10;case i.MODE_ALPHA_NUM:return 9;case i.MODE_8BIT_BYTE:return 8;case i.MODE_KANJI:return 8;default:throw"mode:"+S}else if(T<27)switch(S){case i.MODE_NUMBER:return 12;case i.MODE_ALPHA_NUM:return 11;case i.MODE_8BIT_BYTE:return 16;case i.MODE_KANJI:return 10;default:throw"mode:"+S}else if(T<41)switch(S){case i.MODE_NUMBER:return 14;case i.MODE_ALPHA_NUM:return 13;case i.MODE_8BIT_BYTE:return 16;case i.MODE_KANJI:return 12;default:throw"mode:"+S}else throw"type:"+T},k.getLostPoint=function(S){for(var T=S.getModuleCount(),R=0,N=0;N<T;N+=1)for(var D=0;D<T;D+=1){for(var M=0,I=S.isDark(N,D),z=-1;z<=1;z+=1)if(!(N+z<0||T<=N+z))for(var U=-1;U<=1;U+=1)D+U<0||T<=D+U||z==0&&U==0||I==S.isDark(N+z,D+U)&&(M+=1);M>5&&(R+=3+M-5)}for(var N=0;N<T-1;N+=1)for(var D=0;D<T-1;D+=1){var P=0;S.isDark(N,D)&&(P+=1),S.isDark(N+1,D)&&(P+=1),S.isDark(N,D+1)&&(P+=1),S.isDark(N+1,D+1)&&(P+=1),(P==0||P==4)&&(R+=3)}for(var N=0;N<T;N+=1)for(var D=0;D<T-6;D+=1)S.isDark(N,D)&&!S.isDark(N,D+1)&&S.isDark(N,D+2)&&S.isDark(N,D+3)&&S.isDark(N,D+4)&&!S.isDark(N,D+5)&&S.isDark(N,D+6)&&(R+=40);for(var D=0;D<T;D+=1)for(var N=0;N<T-6;N+=1)S.isDark(N,D)&&!S.isDark(N+1,D)&&S.isDark(N+2,D)&&S.isDark(N+3,D)&&S.isDark(N+4,D)&&!S.isDark(N+5,D)&&S.isDark(N+6,D)&&(R+=40);for(var W=0,D=0;D<T;D+=1)for(var N=0;N<T;N+=1)S.isDark(N,D)&&(W+=1);var Y=Math.abs(100*W/T/T-50)/5;return R+=Y*10,R},k}(),l=function(){for(var x=new Array(256),$=new Array(256),E=0;E<8;E+=1)x[E]=1<<E;for(var E=8;E<256;E+=1)x[E]=x[E-4]^x[E-5]^x[E-6]^x[E-8];for(var E=0;E<255;E+=1)$[x[E]]=E;var O={};return O.glog=function(k){if(k<1)throw"glog("+k+")";return $[k]},O.gexp=function(k){for(;k<0;)k+=255;for(;k>=256;)k-=255;return x[k]},O}();function c(x,$){if(typeof x.length>"u")throw x.length+"/"+$;var E=function(){for(var k=0;k<x.length&&x[k]==0;)k+=1;for(var j=new Array(x.length-k+$),S=0;S<x.length-k;S+=1)j[S]=x[S+k];return j}(),O={};return O.getAt=function(k){return E[k]},O.getLength=function(){return E.length},O.multiply=function(k){for(var j=new Array(O.getLength()+k.getLength()-1),S=0;S<O.getLength();S+=1)for(var T=0;T<k.getLength();T+=1)j[S+T]^=l.gexp(l.glog(O.getAt(S))+l.glog(k.getAt(T)));return c(j,0)},O.mod=function(k){if(O.getLength()-k.getLength()<0)return O;for(var j=l.glog(O.getAt(0))-l.glog(k.getAt(0)),S=new Array(O.getLength()),T=0;T<O.getLength();T+=1)S[T]=O.getAt(T);for(var T=0;T<k.getLength();T+=1)S[T]^=l.gexp(l.glog(k.getAt(T))+j);return c(S,0).mod(k)},O}var u=function(){var x=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],$=function(k,j){var S={};return S.totalCount=k,S.dataCount=j,S},E={},O=function(k,j){switch(j){case a.L:return x[(k-1)*4+0];case a.M:return x[(k-1)*4+1];case a.Q:return x[(k-1)*4+2];case a.H:return x[(k-1)*4+3];default:return}};return E.getRSBlocks=function(k,j){var S=O(k,j);if(typeof S>"u")throw"bad rs block @ typeNumber:"+k+"/errorCorrectionLevel:"+j;for(var T=S.length/3,R=[],N=0;N<T;N+=1)for(var D=S[N*3+0],M=S[N*3+1],I=S[N*3+2],z=0;z<D;z+=1)R.push($(M,I));return R},E}(),d=function(){var x=[],$=0,E={};return E.getBuffer=function(){return x},E.getAt=function(O){var k=Math.floor(O/8);return(x[k]>>>7-O%8&1)==1},E.put=function(O,k){for(var j=0;j<k;j+=1)E.putBit((O>>>k-j-1&1)==1)},E.getLengthInBits=function(){return $},E.putBit=function(O){var k=Math.floor($/8);x.length<=k&&x.push(0),O&&(x[k]|=128>>>$%8),$+=1},E},f=function(x){var $=i.MODE_NUMBER,E=x,O={};O.getMode=function(){return $},O.getLength=function(S){return E.length},O.write=function(S){for(var T=E,R=0;R+2<T.length;)S.put(k(T.substring(R,R+3)),10),R+=3;R<T.length&&(T.length-R==1?S.put(k(T.substring(R,R+1)),4):T.length-R==2&&S.put(k(T.substring(R,R+2)),7))};var k=function(S){for(var T=0,R=0;R<S.length;R+=1)T=T*10+j(S.charAt(R));return T},j=function(S){if("0"<=S&&S<="9")return S.charCodeAt(0)-48;throw"illegal char :"+S};return O},p=function(x){var $=i.MODE_ALPHA_NUM,E=x,O={};O.getMode=function(){return $},O.getLength=function(j){return E.length},O.write=function(j){for(var S=E,T=0;T+1<S.length;)j.put(k(S.charAt(T))*45+k(S.charAt(T+1)),11),T+=2;T<S.length&&j.put(k(S.charAt(T)),6)};var k=function(j){if("0"<=j&&j<="9")return j.charCodeAt(0)-48;if("A"<=j&&j<="Z")return j.charCodeAt(0)-65+10;switch(j){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+j}};return O},g=function(x){var $=i.MODE_8BIT_BYTE,E=r.stringToBytes(x),O={};return O.getMode=function(){return $},O.getLength=function(k){return E.length},O.write=function(k){for(var j=0;j<E.length;j+=1)k.put(E[j],8)},O},m=function(x){var $=i.MODE_KANJI,E=r.stringToBytesFuncs.SJIS;if(!E)throw"sjis not supported.";(function(j,S){var T=E(j);if(T.length!=2||(T[0]<<8|T[1])!=S)throw"sjis not supported."})("友",38726);var O=E(x),k={};return k.getMode=function(){return $},k.getLength=function(j){return~~(O.length/2)},k.write=function(j){for(var S=O,T=0;T+1<S.length;){var R=(255&S[T])<<8|255&S[T+1];if(33088<=R&&R<=40956)R-=33088;else if(57408<=R&&R<=60351)R-=49472;else throw"illegal char at "+(T+1)+"/"+R;R=(R>>>8&255)*192+(R&255),j.put(R,13),T+=2}if(T<S.length)throw"illegal char at "+(T+1)},k},v=function(){var x=[],$={};return $.writeByte=function(E){x.push(E&255)},$.writeShort=function(E){$.writeByte(E),$.writeByte(E>>>8)},$.writeBytes=function(E,O,k){O=O||0,k=k||E.length;for(var j=0;j<k;j+=1)$.writeByte(E[j+O])},$.writeString=function(E){for(var O=0;O<E.length;O+=1)$.writeByte(E.charCodeAt(O))},$.toByteArray=function(){return x},$.toString=function(){var E="";E+="[";for(var O=0;O<x.length;O+=1)O>0&&(E+=","),E+=x[O];return E+="]",E},$},w=function(){var x=0,$=0,E=0,O="",k={},j=function(T){O+=String.fromCharCode(S(T&63))},S=function(T){if(!(T<0)){if(T<26)return 65+T;if(T<52)return 97+(T-26);if(T<62)return 48+(T-52);if(T==62)return 43;if(T==63)return 47}throw"n:"+T};return k.writeByte=function(T){for(x=x<<8|T&255,$+=8,E+=1;$>=6;)j(x>>>$-6),$-=6},k.flush=function(){if($>0&&(j(x<<6-$),x=0,$=0),E%3!=0)for(var T=3-E%3,R=0;R<T;R+=1)O+="="},k.toString=function(){return O},k},_=function(x){var $=x,E=0,O=0,k=0,j={};j.read=function(){for(;k<8;){if(E>=$.length){if(k==0)return-1;throw"unexpected end of file./"+k}var T=$.charAt(E);if(E+=1,T=="=")return k=0,-1;if(T.match(/^\s$/))continue;O=O<<6|S(T.charCodeAt(0)),k+=6}var R=O>>>k-8&255;return k-=8,R};var S=function(T){if(65<=T&&T<=90)return T-65;if(97<=T&&T<=122)return T-97+26;if(48<=T&&T<=57)return T-48+52;if(T==43)return 62;if(T==47)return 63;throw"c:"+T};return j},y=function(x,$){var E=x,O=$,k=new Array(x*$),j={};j.setPixel=function(N,D,M){k[D*E+N]=M},j.write=function(N){N.writeString("GIF87a"),N.writeShort(E),N.writeShort(O),N.writeByte(128),N.writeByte(0),N.writeByte(0),N.writeByte(0),N.writeByte(0),N.writeByte(0),N.writeByte(255),N.writeByte(255),N.writeByte(255),N.writeString(","),N.writeShort(0),N.writeShort(0),N.writeShort(E),N.writeShort(O),N.writeByte(0);var D=2,M=T(D);N.writeByte(D);for(var I=0;M.length-I>255;)N.writeByte(255),N.writeBytes(M,I,255),I+=255;N.writeByte(M.length-I),N.writeBytes(M,I,M.length-I),N.writeByte(0),N.writeString(";")};var S=function(N){var D=N,M=0,I=0,z={};return z.write=function(U,P){if(U>>>P)throw"length over";for(;M+P>=8;)D.writeByte(255&(U<<M|I)),P-=8-M,U>>>=8-M,I=0,M=0;I=U<<M|I,M=M+P},z.flush=function(){M>0&&D.writeByte(I)},z},T=function(N){for(var D=1<<N,M=(1<<N)+1,I=N+1,z=R(),U=0;U<D;U+=1)z.add(String.fromCharCode(U));z.add(String.fromCharCode(D)),z.add(String.fromCharCode(M));var P=v(),W=S(P);W.write(D,I);var Y=0,X=String.fromCharCode(k[Y]);for(Y+=1;Y<k.length;){var K=String.fromCharCode(k[Y]);Y+=1,z.contains(X+K)?X=X+K:(W.write(z.indexOf(X),I),z.size()<4095&&(z.size()==1<<I&&(I+=1),z.add(X+K)),X=K)}return W.write(z.indexOf(X),I),W.write(M,I),W.flush(),P.toByteArray()},R=function(){var N={},D=0,M={};return M.add=function(I){if(M.contains(I))throw"dup key:"+I;N[I]=D,D+=1},M.size=function(){return D},M.indexOf=function(I){return N[I]},M.contains=function(I){return typeof N[I]<"u"},M};return j},C=function(x,$,E){for(var O=y(x,$),k=0;k<$;k+=1)for(var j=0;j<x;j+=1)O.setPixel(j,k,E(j,k));var S=v();O.write(S);for(var T=w(),R=S.toByteArray(),N=0;N<R.length;N+=1)T.writeByte(R[N]);return T.flush(),"data:image/gif;base64,"+T};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})})(W4);var r9=W4.exports,i9=Kn&&Kn.__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)}}(),Wg=Kn&&Kn.__assign||function(){return Wg=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},Wg.apply(this,arguments)};Object.defineProperty(P0,"__esModule",{value:!0});exports.QRCode_1=P0.QRCode=void 0;var a9=n9,o9=r9,lm=h,s9=function(e){i9(t,e);function t(n){var r=e.call(this,n)||this;return r.canvasRef=lm.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(g){return g=Math.min(g,a/2),g<0?0:g});var u=s[0]||0,d=s[1]||0,f=s[2]||0,p=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+p,i+a),p&&c.quadraticCurveTo(r,i+a,r,i+a-p),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,p;typeof s!="string"?(f=s.outer,p=s.inner):(f=s,p=s);var g=a*r+i,m=o*r+i,v=r*7;this.drawRoundedSquare(c,m,g,v,f,u,!1,n),v=r*3,g+=r*2,m+=r*2,this.drawRoundedSquare(c,m,g,v,p,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),p=this.transformPixelLengthIntoNumberOfCells(i,l)-1,g=this.transformPixelLengthIntoNumberOfCells(a,l)-1;return r>=d-u&&r<=d+p+u&&n>=f-u&&n<=f+g+u}else return!1},t.prototype.shouldComponentUpdate=function(n){return!a9(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,p=r.qrStyle,g=r.eyeRadius,m=r.eyeColor,v=r.logoPaddingStyle,w=+this.props.size,_=+this.props.quietZone,y=this.props.logoWidth?+this.props.logoWidth:0,C=this.props.logoHeight?+this.props.logoHeight:0,x=this.props.logoPadding?+this.props.logoPadding:0,$=o9(0,a);$.addData(this.utf16to8(i)),$.make();var E=(n=this.canvasRef)===null||n===void 0?void 0:n.current,O=E.getContext("2d"),k=w+2*_,j=$.getModuleCount(),S=w/j,T=window.devicePixelRatio||1;E.height=E.width=k*T,O.scale(T,T),O.fillStyle=s,O.fillRect(0,0,k,k);var R=_,N=[{row:0,col:0},{row:0,col:j-7},{row:j-7,col:0}];if(O.strokeStyle=l,p==="dots"){O.fillStyle=l;for(var D=S/2,M=0;M<j;M++)for(var I=0;I<j;I++)$.isDark(M,I)&&!this.isInPositioninZone(M,I,N)&&(O.beginPath(),O.arc(Math.round(I*S)+D+R,Math.round(M*S)+D+R,D/100*75,0,2*Math.PI,!1),O.closePath(),O.fill())}else if(p==="fluid"){for(var D=Math.ceil(S/2),M=0;M<j;M++)for(var I=0;I<j;I++)if($.isDark(M,I)&&!this.isInPositioninZone(M,I,N)){var z=[!1,!1,!1,!1];M>0&&!$.isDark(M-1,I)&&I>0&&!$.isDark(M,I-1)&&(z[0]=!0),M>0&&!$.isDark(M-1,I)&&I<j-1&&!$.isDark(M,I+1)&&(z[1]=!0),M<j-1&&!$.isDark(M+1,I)&&I<j-1&&!$.isDark(M,I+1)&&(z[2]=!0),M<j-1&&!$.isDark(M+1,I)&&I>0&&!$.isDark(M,I-1)&&(z[3]=!0);var U=Math.ceil((I+1)*S)-Math.floor(I*S),P=Math.ceil((M+1)*S)-Math.floor(M*S);O.fillStyle=l,O.beginPath(),O.arc(Math.round(I*S)+D+R,Math.round(M*S)+D+R,D,0,2*Math.PI,!1),O.closePath(),O.fill(),z[0]||O.fillRect(Math.round(I*S)+R,Math.round(M*S)+R,U/2,P/2),z[1]||O.fillRect(Math.round(I*S)+R+Math.floor(U/2),Math.round(M*S)+R,U/2,P/2),z[2]||O.fillRect(Math.round(I*S)+R+Math.floor(U/2),Math.round(M*S)+R+Math.floor(P/2),U/2,P/2),z[3]||O.fillRect(Math.round(I*S)+R,Math.round(M*S)+R+Math.floor(P/2),U/2,P/2)}}else for(var M=0;M<j;M++)for(var I=0;I<j;I++)if($.isDark(M,I)&&!this.isInPositioninZone(M,I,N)){O.fillStyle=l;var U=Math.ceil((I+1)*S)-Math.floor(I*S),P=Math.ceil((M+1)*S)-Math.floor(M*S);O.fillRect(Math.round(I*S)+R,Math.round(M*S)+R,U,P)}for(var W=0;W<3;W++){var Y=N[W],M=Y.row,I=Y.col,X=g,K=void 0;Array.isArray(X)&&(X=X[W]),typeof X=="number"&&(X=[X,X,X,X]),m?Array.isArray(m)?K=m[W]:K=m:K=l,this.drawPositioningPattern(O,S,R,M,I,K,X)}if(c){var Z=new Image;o&&(Z.crossOrigin="Anonymous"),Z.onload=function(ee){O.save();var J=y||w*.2,B=C||J,L=(w-J)/2,F=(w-B)/2;if(f||x){O.beginPath(),O.strokeStyle=s,O.fillStyle=s;var H=J+2*x,A=B+2*x,Q=L+R-x,G=F+R-x;if(v==="circle"){var q=Q+H/2,le=G+A/2;O.ellipse(q,le,H/2,A/2,0,0,2*Math.PI),O.stroke(),O.fill()}else O.fillRect(Q,G,H,A)}O.globalAlpha=u,O.drawImage(Z,L+R,F+R,J,B),O.restore(),d&&d(ee)},Z.src=c}},t.prototype.render=function(){var n,r=+this.props.size+2*+this.props.quietZone;return lm.createElement("canvas",{id:(n=this.props.id)!==null&&n!==void 0?n:"react-qrcode-logo",height:r,width:r,style:Wg({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}(lm.Component);exports.QRCode_1=P0.QRCode=s9;const l9="_floating-label_3xm9u_1",c9="_without-label_3xm9u_21",u9="_floating-label-check_3xm9u_184",cm={floatingLabel:l9,withoutLabel:c9,floatingLabelCheck:u9},d9=({hint:e,children:t})=>e?b.jsx(S0,{text:e,placement:"top",children:t}):t,dh=({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}=h.useContext(sn),p=d.withoutLabel?"":b.jsxs("div",{className:"d-flex gap-1 align-items-center",children:[d.label,c?b.jsx("span",{className:ce("fw-bold",{"text-danger":!u}),style:{fontSize:"16px"},children:"*"}):null,l?b.jsx("div",{className:"d-flex align-items-center",children:b.jsx(f,{icon:"info"})}):null]});return s?b.jsx("div",{className:ce("luminus-floating-label-check",cm.floatingLabelCheck),children:n}):b.jsx(d9,{hint:l,children:b.jsx(m0,{ref:e,label:b.jsx("div",{className:"d-flex gap-1 align-items-center",children:p}),hidden:t??!1,className:ce(`luminus-floating-label ${r??""}`,cm.floatingLabel,{[o??""]:o},{[cm.withoutLabel]:d.withoutLabel}),children:n})})};dh.displayName="FloatingLabelInput";const f9="_row-label-input_i295l_1",h9="_label_i295l_4",p9="_input-container_i295l_9",m9="_keep-check-label_i295l_132",g9="_is-invalid_i295l_160",vl={rowLabelInput:f9,label:h9,inputContainer:p9,keepCheckLabel:m9,isInvalid:g9},ou=({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}=h.useContext(sn),p=d.withoutLabel?b.jsx(b.Fragment,{}):b.jsx("label",{className:ce("label col-6",{"col-12":l},vl.label),children:b.jsxs(Bn,{variant:"form-label",className:ce("d-flex gap-1 align-items-center",o?"text-danger":""),children:[d.label,r?b.jsx("span",{className:ce("fw-bold",{"text-danger":!i}),style:{fontSize:"16px"},children:"*"}):null,u?b.jsx("div",{className:"d-flex align-items-center",style:{paddingTop:"2px"},children:b.jsx(f,{icon:"info"})}):null]})});return b.jsxs("div",{ref:e,className:ce("luminus-row-label row gx-0 gy-0",{"is-invalid":o},{[vl.isInvalid]:o},{[a??""]:a},{"d-none":t},vl.rowLabelInput),children:[u?b.jsx(S0,{text:u,placement:"top",children:p}):p,b.jsx("div",{className:ce("input-container",vl.inputContainer,{"col-6":!d.withoutLabel&&!l},{"col-12":d.withoutLabel||l},{[vl.keepCheckLabel]:s},{[c??""]:c}),children:n})]})};ou.displayName="RowLabelInput";const U4=({ref:e,children:t,className:n,hidden:r})=>b.jsx("div",{ref:e,className:`${r?"d-none":""} ${n}`,children:t});U4.displayName="NoInputContainer";const H4=({currentSelection:e,selectedItemNavigateTo:t,children:n})=>{if(!e||!e.id||!t)return b.jsx("div",{className:"luminus-input-container position-relative w-100",children:n});const r=t(e);return b.jsx(Is.Link,{to:r,className:"luminus-input-container position-relative w-100 text-decoration-none",children:n})},V4=({InputContainer:e=dh,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:p,className:g,step:m,minLength:v,maxLength:w,noSelectOnFocus:_,hint:y,onConfirm:C,autoComplete:x})=>{var P,W,Y;const $=t==="number",E=h.useCallback(()=>{if(!r)return;const X=f??null;r($?X?Number(X):null:(X==null?void 0:X.toString())??"")},[f,$,r]),O=h.useRef(null),[k,j]=h.useState((n==null?void 0:n.toString())??""),S=h.useCallback(X=>{const K=X;r&&r($?K==null||K===""?null:Number(K):K||null)},[$,r]),T=h.useCallback(X=>{var Z;const K=(Z=X.target)==null?void 0:Z.value;if(!i){S(K);return}j(K),O.current!==null&&window.clearTimeout(O.current),O.current=window.setTimeout(()=>{S(K)},i)},[i,S]),R=h.useMemo(()=>{if(C!==void 0)return X=>{X.key==="Enter"&&C&&C()}},[C]);h.useEffect(()=>{j(n===null?"":n.toString())},[n]);const[N,D]=h.useState(!1),M=I0(t,n?n.toString()??null:null,N),I=h.useRef(null),z=(((P=I.current)==null?void 0:P.scrollWidth)??0)>(((W=I.current)==null?void 0:W.clientWidth)??0),U=(Y=I.current)==null?void 0:Y.getBoundingClientRect();return b.jsxs(e,{withoutLabel:o,label:a??"",hidden:c,className:g,hint:y,disabled:u,children:[b.jsx(oi.Control,{type:M,placeholder:s??a,size:l,value:i?k:(n==null?void 0:n.toString())??"",onChange:T,className:g??"",hidden:c,disabled:u??!1,list:p,onFocus:X=>{D(!0),!_&&X.target.select()},onBlur:()=>D(!1),onKeyDown:R,step:m,minLength:v,maxLength:w,autoComplete:x,ref:I}),d&&n!==null&&r&&!u&&b.jsx("div",{className:`luminus-input-remove-icon ${t!=="text"?"inset":""}`,children:b.jsx(au,{color:"secondary",size:"sm",onClick:E,children:b.jsx(Xc,{})})}),z?b.jsx("div",{className:"luminus-overflow-tooltip",style:{opacity:0,position:"fixed",top:((U==null?void 0:U.top)??0)+((U==null?void 0:U.height)??0),left:(U==null?void 0:U.left)??0},children:i?k:(n==null?void 0:n.toString())??""}):null]})},q4=({value:e,MiniDetailComponent:t,children:n,miniDetailPlacement:r})=>!e||!t?n:b.jsx(t,{id:e.toString(),placement:r,children:n}),Y4=({InputContainer:e=dh,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:p,appendCurrentSelectionWithName:g,dropdownWidth:m,hint:v,addNewOptionPath:w,refreshOptions:_,MiniDetailComponent:y,miniDetailPlacement:C,selectedItemNavigateTo:x,noRemoveButton:$})=>{const{texts:{customSelect:E}}=h.useContext(sn),[O,k]=h.useState(!1),[j,S]=h.useState(""),T=h.useCallback(U=>{S(U)},[]),R=h.useMemo(()=>n.find(U=>U.id===t)??null,[n,t]),N=h.useCallback(U=>{var P;return U===null?"":!U.name||U.name.length===0?((P=U.id)==null?void 0:P.toString())??"":f?`${U.name} (${U.id})`:U.name},[f]),D=h.useMemo(()=>{const U=n?[...n]:[];return g!==void 0&&t!==void 0&&t!==null&&(U.some(P=>P.id===t)||U.push({id:t,name:g})),U.map(P=>({id:P.id,name:N(P)})).filter(P=>k0(P.name,j)).sort((P,W)=>u?0:(P.name??"").localeCompare(W.name??""))},[n,u,j,N,g,t]),M=h.useCallback(U=>{var P;r&&r((U==null?void 0:U.id)===void 0||(U==null?void 0:U.id)===null?null:o?Number(U.id):(P=U.id)==null?void 0:P.toString())},[r,o]),I=h.useCallback(U=>{k(!1),M(U)},[M]),z=h.useRef(null);return b.jsx(b.Fragment,{children:b.jsxs(e,{withoutLabel:a,label:i??"",hidden:l,inputContainerClassName:ce({"luminus-dropdown-select-open":O}),className:d,hint:v,disabled:c,children:[b.jsx(H4,{currentSelection:R,selectedItemNavigateTo:x,children:b.jsx(q4,{value:t,MiniDetailComponent:y,miniDetailPlacement:C,children:b.jsxs(oi.Select,{ref:z,size:s,value:t??"",onMouseDown:U=>{U.currentTarget.focus(),U.preventDefault()},onClick:()=>{!c&&k(!0)},onChange:()=>{},className:ce("w-100",{"luminus-dropdown-picker-disabled":c}),hidden:l,children:[p&&!(t==null||t==="")?void 0:b.jsx("option",{value:""}),t!=null&&b.jsx("option",{value:t,children:N(R)})]})})}),z.current&&b.jsx(lT,{show:O,onCancel:()=>k(!1),items:D,currentSelection:R??null,onSelectionChange:I,onSearchQueryChange:T,texts:E,disabled:c,inputRef:z,autoHideSearch:!0,allItemsLength:n.length,itemsNameWidth:m,addNewOptionPath:w,refreshOptions:_,noRemoveButton:$})]})})};function v9(e){return ut({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},child:[]}]})(e)}function b9(e){return ut({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},child:[]}]})(e)}function y9(e){return ut({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"},child:[]}]})(e)}function x9(e){return ut({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 L0=({InputContainer:e=ou,formField:t,label:n,resetsFields:r,options:i,isNumber:a,size:o,showClearIcon:s,clearValue:l,noSortOptions:c,required:u,hidden:d,disabled:f,withoutLabel:p,hint:g,className:m})=>{const{register:v,formState:{errors:w,isSubmitted:_},getValues:y,setValue:C}=bn.useFormContext(),x=ch({falseIfNotInit:!0});console.log("disabled ",f),console.log("formDisabled ",x);const[$,E]=h.useState(void 0),[O,k]=h.useState(!1),j=h.useMemo(()=>i.toSorted((D,M)=>c?0:(D.name??"").localeCompare(M.name??"")),[i,c]),S=h.useCallback(()=>{const D=l??null;a?C(t,D===null?null:Number(D),{shouldDirty:!0,shouldValidate:O}):C(t,(D==null?void 0:D.toString())??"",{shouldDirty:!0,shouldValidate:O})},[l,a,C,t,O]);h.useEffect(()=>{const D=t.split(".");let M=w;D.forEach(I=>{M!==void 0&&(M=M[I])}),E(M)},[w,t]);const T=h.useMemo(()=>f||x,[f,x]);console.log(T),h.useEffect(()=>{C(t,y(t))},[j,t,y,C]),h.useEffect(()=>{_&&k(!0)},[_]);const R=$!==void 0,N=bn.useWatch({name:t});return b.jsx(b.Fragment,{children:b.jsxs(e,{label:n??"",required:u,disabled:T,hidden:d,withoutLabel:p,isInvalid:R,hint:g,className:m,children:[b.jsxs(oi.Select,{size:o,...v(t,{setValueAs:D=>a?D==null||D===""?null:parseInt(D,10):D==null||D===""?null:D,onChange:()=>{r&&r.forEach(D=>C(D,null,{shouldDirty:!0,shouldValidate:O}))}}),isInvalid:R,hidden:d,disabled:T,className:"w-100",children:[b.jsx("option",{value:""}),j.map(D=>b.jsx("option",{value:D.id??"",children:D.name},D.id))]}),s&&N!=null&&b.jsx("div",{className:"luminus-input-remove-icon inset",children:b.jsx(au,{color:"secondary",size:"sm",onClick:S,children:b.jsx(Xc,{})})}),$&&b.jsx(Sh,{message:$.message})]})})},F0=({InputContainer:e=ou,formField:t,label:n,resetsFields:r,size:i,showClearIcon:a,clearValue:o,required:s,hidden:l,disabled:c,rows:u,withoutLabel:d,customFormControlProps:f,minLength:p,maxLength:g,hint:m,onChange:v,className:w})=>{const{register:_,formState:{errors:y,isSubmitted:C},setValue:x}=bn.useFormContext(),$=ch({falseIfNotInit:!0}),[E,O]=h.useState(void 0),[k,j]=h.useState(!1),S=h.useCallback(()=>{const M=o??null;x(t,(M==null?void 0:M.toString())??"",{shouldDirty:!0,shouldValidate:k})},[o,x,t,k]),T=h.useCallback(()=>{const M=t.split(".");let I=y;M.forEach(z=>{I!==void 0&&(I=I[z])}),O(I)},[y,t]),R=h.useMemo(()=>c||$,[c,$]);h.useEffect(()=>{T()},[T]),h.useEffect(()=>{C&&j(!0)},[C]);const N=E!==void 0,D=bn.useWatch({name:t});return b.jsxs(e,{label:n??"",required:s,disabled:R,hidden:l,withoutLabel:d,isInvalid:N,className:w,hint:m,isForTextAreaInput:!0,children:[b.jsx(oi.Control,{as:"textarea",size:i,..._(t,{setValueAs:M=>M==null||M===""?null:M,onChange:M=>{var I;r&&r.forEach(z=>x(z,null,{shouldDirty:!0,shouldValidate:k})),v&&v((I=M.target)!=null&&I.value?M.target.value.toString():null)}}),isInvalid:N,hidden:l,disabled:R,rows:u??2,className:"w-100",minLength:p,maxLength:g,...f}),a&&D!=null&&b.jsx("div",{className:"luminus-input-remove-icon",children:b.jsx(au,{color:"secondary",size:"sm",onClick:S,children:b.jsx(Xc,{})})}),E&&b.jsx(Sh,{message:E.message})]})},Es=({ref:e,InputContainer:t=ou,type:n,formField:r,label:i,placeholder:a,size:o,resetsFields:s,showClearIcon:l,clearValue:c,required:u,hidden:d,disabled:f,withoutLabel:p,list:g,step:m,CustomOnChangeComponent:v,noSelectOnFocus:w,minLength:_,maxLength:y,hint:C,onChange:x,className:$,autoComplete:E})=>{var F,H,A,Q;const{register:O,formState:{errors:k,isSubmitted:j},setValue:S}=bn.useFormContext(),T=ch({falseIfNotInit:!0}),[R,N]=h.useState(void 0),[D,M]=h.useState(!1),I=h.useCallback(()=>{const G=c??null;n==="number"?S(r,G!==null?Number(G):null,{shouldDirty:!0,shouldValidate:D}):S(r,(G==null?void 0:G.toString())??"",{shouldDirty:!0,shouldValidate:D})},[c,n,S,r,D]),z=h.useCallback(()=>{const G=r.split(".");let q=k;G.forEach(le=>{q!==void 0&&(q=q[le])}),N(q)},[k,r]),U=h.useMemo(()=>f||T,[f,T]);h.useEffect(()=>{z()},[z]),h.useEffect(()=>{j&&M(!0)},[j]);const P=R!==void 0,[W,Y]=h.useState(!1),X=bn.useWatch({name:r}),K=I0(n,X??null,W),{ref:Z,...ee}=O(r,{setValueAs:G=>n==="number"?G==null||G===""?null:Number(G):G==null||G===""?null:G,onChange:G=>{var q;s&&s.forEach(le=>S(le,null,{shouldDirty:!0,shouldValidate:D})),x&&x((q=G.target)!=null&&q.value?n==="number"?Number(G.target.value)??null:G.target.value.toString():null)},onBlur:()=>Y(!1)}),J=h.useRef(null),B=(((F=J.current)==null?void 0:F.scrollWidth)??0)>(((H=J.current)==null?void 0:H.clientWidth)??0),L=(A=J.current)==null?void 0:A.getBoundingClientRect();return h.useImperativeHandle(e,()=>J.current,[J]),b.jsxs(t,{label:i,required:u,disabled:U,hidden:d,withoutLabel:p??!1,isInvalid:P,hint:C,className:$,children:[b.jsxs("div",{className:"luminus-input-container position-relative w-100",children:[b.jsx(oi.Control,{type:K,placeholder:a??i,size:o,onFocus:G=>{Y(!0),!w&&G.target.select()},...ee,ref:G=>{Z(G),J.current=G},isInvalid:P,hidden:d,disabled:U,list:g,className:"w-100",step:m,minLength:_,maxLength:y,autoComplete:E}),v&&b.jsx("div",{className:"custom-picker-button",children:v})]}),l&&X!=null&&b.jsx("div",{className:`luminus-input-remove-icon ${n!=="text"?"inset":""}`,children:b.jsx(au,{color:"secondary",size:"sm",onClick:I,children:b.jsx(Xc,{})})}),B?b.jsx("div",{className:"luminus-overflow-tooltip",style:{opacity:0,position:"fixed",top:((L==null?void 0:L.top)??0)+((L==null?void 0:L.height)??0),left:(L==null?void 0:L.left)??0,pointerEvents:"none"},children:((Q=J.current)==null?void 0:Q.value)??""}):null,R&&b.jsx(Sh,{message:R.message})]})},w9="_item_1dy8x_1",G4={item:w9},Va=({color:e="primary",icon:t,className:n,children:r,to:i,as:a,...o})=>b.jsxs(ys.Item,{className:ce(`btn luminus-dropdown-item text-nowrap rounded text-${e} ${n??""}`,G4.item),as:a==="link"?Is.Link:void 0,to:i??"",...o,children:[t,r]}),_9="_button_qhwih_1",C9={button:_9},B0=({ref:e,color:t="primary",icon:n=b.jsx(ES,{size:21}),text:r,onClick:i,className:a,children:o,...s})=>b.jsxs("button",{type:"button",ref:e,onClick:l=>{l.preventDefault(),i(l)},"aria-label":"dropdown toggle",className:ce(`btn luminus-context-button text-${t} ${a??""}`,C9.button),...s,children:[n,r]}),z0=e=>b.jsx(ys.Toggle,{...e}),$9="_divider_1e6rk_1",S9={divider:$9},Ug=({className:e})=>b.jsx(ys.Divider,{className:ce("luminus-dropdown-divider",e,S9.divider)}),E9="_dropdown_1lk66_1",k9={dropdown:E9},W0=({toggle:e,children:t,align:n,...r})=>b.jsxs(ys,{...r,align:n,children:[e,b.jsx(ys.Menu,{className:ce("luminus-dropdown rounded shadow",k9.dropdown),align:n,children:t})]}),T9="_wrapper_1tb6d_1",O9="_controls_1tb6d_16",M9="_explorerWindow_1tb6d_20",A9="_folderList_1tb6d_28",R9="_fileList_1tb6d_35",j9="_dndText_1tb6d_61",ja={wrapper:T9,controls:O9,explorerWindow:M9,folderList:A9,fileList:R9,dndText:j9},yn=h.createContext({apiActions:{},loadDocuments(){throw new Error("DocumentsContext was not initialized.")},reducer:[{},{}],entityType:"",entityId:-1}),D9="_defaultFolder_8tlxv_1",N9="_names_8tlxv_5",I9="_folderType_8tlxv_9",um={defaultFolder:D9,names:N9,folderType:I9},K4=({isActive:e,isDefault:t,folderName:n,typeName:r})=>{const{ProjectIconComponent:i}=h.useContext(sn);return b.jsxs("div",{className:"d-flex gap-2 align-items-center",children:[b.jsx(i,{icon:`folder${e?"-filled":""}`,className:ce("d-inline-block",t?um.defaultFolder:"text-primary"),iconProps:{className:"d-block"},size:18}),b.jsxs("div",{className:ce("d-flex flex-column gap-0 align-items-start",um.names),children:[b.jsx("span",{className:e?"fw-bold":"",children:n}),r?b.jsxs("span",{className:um.folderType,children:["(",r,")"]}):null]})]})},P9=({customText:e})=>{const{reducer:[t,n]}=h.useContext(yn),r=h.useCallback(()=>{n({type:"select-folder",folderId:"root"})},[n]);return b.jsx("li",{children:b.jsx("button",{onClick:r,type:"button",className:ce("border-0 bg-transparent"),children:b.jsx(K4,{folderName:e??"root",isActive:t.activeFolder==="root",typeName:"",isDefault:!0})})})};function L9(e){if(e.state!=="openned-modal")throw new Error('Not in "openned-modal" state!')}const Z4=()=>{const e=oh(),{startLoading:t,stopLoading:n}=h.useContext(Xf),{reducer:[,r]}=h.useContext(yn),i=h.useCallback(async(o,s)=>{t("documents-renameFolder");try{await e.put("/documents/folder/rename",{folderId:o,name:s}),r({type:"update-folders",folderIds:[o],newProperties:{name:s}})}finally{n("documents-renameFolder")}},[e,r,t,n]),a=h.useCallback(async o=>{t("documentsFolderCreate");try{const s=await e.post("/documents/folder",o);r({type:"create-folder",folderData:o,folderId:s.data.id,isOnlyRead:s.data.onlyRead})}finally{n("documentsFolderCreate")}},[e,r,t,n]);return{renameFolder:i,createFolder:a}},Sx=(e,t,n)=>{if(e&&"reportValidity"in e){const r=bn.get(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},X4=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?Sx(r.ref,n,e):r.refs&&r.refs.forEach(i=>Sx(i,n,e))}},F9=(e,t)=>{t.shouldUseNativeValidation&&X4(e,t);const n={};for(const r in e){const i=bn.get(t.fields,r),a=Object.assign(e[r]||{},{ref:i&&i.ref});if(B9(t.names||Object.keys(e),r)){const o=Object.assign({},bn.get(n,r));bn.set(o,"root",a),bn.set(n,r,o)}else bn.set(n,r,a)}return n},B9=(e,t)=>e.some(n=>n.startsWith(t+"."));var z9=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]=bn.appendErrors(o,t,n,i,c?[].concat(c,r.message):r.message)}e.shift()}return n},fh=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&&X4({},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:F9(z9(o.errors,!a.shouldUseNativeValidation&&a.criteriaMode==="all"),a)};throw o}))}catch(o){return Promise.reject(o)}}};const W9=()=>{const{reducer:[e],entityId:t,entityType:n}=h.useContext(yn),{zNumberRequired:r,zStringRequired:i}=lh(),{createFolder:a}=Z4(),o=$i({name:i(),documentTypeId:r()}),s=bn.useForm({resolver:fh(o)}),l=h.useCallback(async c=>{const u={...c,dbObjectId:t.toString(),entity:n,parentFolderId:e.activeFolder==="root"?null:e.activeFolder};await a(u)},[a,t,n,e.activeFolder]);return{formMethods:s,onSubmit:l}},U9=({handleClose:e})=>{var o;const{texts:{documents:t}}=h.useContext(sn),{reducer:[n],entityType:r}=h.useContext(yn);if(L9(n),n.modalType!=="create-folder")throw new Error("Tried to render CreateFolderModal without create-folder modal type reducer state.");const{onSubmit:i,formMethods:a}=W9();return b.jsx(b.Fragment,{children:b.jsx(bn.FormProvider,{...a,children:b.jsxs(oi,{onSubmit:a.handleSubmit(i),children:[b.jsx(Zn.Header,{closeButton:!0,children:b.jsx(Zn.Title,{children:t.createFolderInFolder(((o=n.foldersMap.get(n.chosenFolderId))==null?void 0:o.name)??r)})}),b.jsxs(Zn.Body,{children:[b.jsx(Es,{formField:"name",type:"text",label:t.name,required:!0}),b.jsx(L0,{options:n.documentTypes,formField:"documentTypeId",label:t.folderType,isNumber:!0,required:!0})]}),b.jsxs(Zn.Footer,{children:[b.jsx(co,{onClick:e,variant:"outlined",color:"secondary",children:t.cancel}),b.jsx(co,{type:"submit",children:t.createFolder})]})]})})})},Q4=100,H9=(e,t)=>{const n=oh(),{startLoading:r,stopLoading:i}=h.useContext(Xf),{loadDocuments:a}=h.useContext(yn),{zStringRequired:o,zString:s,zNumberRequired:l,zDateRequired:c}=lh(),u=$i({name:o(),description:s(),validToDate:c(),documentTypeId:l()}),d=bn.useForm({resolver:fh(u),defaultValues:{...e,validToDate:Jf(e.validToDate)}}),f=h.useCallback(async p=>{r("documents-updateProperties");try{await n.put(`/documents/${e.id}/update-info`,p),await a(),t()}finally{i("documents-updateProperties")}},[n,e.id,t,a,r,i]);return{formMethods:d,onSubmit:f}},V9=({handleClose:e,file:t})=>{const{texts:{documents:n}}=h.useContext(sn),{reducer:[r]}=h.useContext(yn),{formMethods:i,onSubmit:a}=H9(t,e);return b.jsxs(b.Fragment,{children:[b.jsx(Zn.Header,{closeButton:!0,children:b.jsx(Zn.Title,{children:n.editFileProperties})}),b.jsx(bn.FormProvider,{...i,children:b.jsxs(oi,{onSubmit:i.handleSubmit(a),children:[b.jsxs(Zn.Body,{children:[b.jsx(Es,{formField:"name",type:"text",label:n.name,required:!0}),b.jsx(Es,{formField:"validToDate",type:"date",label:n.validSince,required:!0}),b.jsx(L0,{formField:"documentTypeId",label:n.category,options:r.documentTypes,isNumber:!0,required:!0}),b.jsx(F0,{formField:"description",label:n.description,customFormControlProps:{maxLength:Q4}})]}),b.jsxs(Zn.Footer,{children:[b.jsx(co,{onClick:e,color:"secondary",variant:"outlined",children:n.cancel}),b.jsx(co,{type:"submit",children:n.save})]})]})})]})},q9=({handleClose:e})=>{const{reducer:[t]}=h.useContext(yn),n=h.useMemo(()=>{if(t.markedFiles.length===1)return t.constantFiles.find(r=>r.id===t.markedFiles[0])},[t.constantFiles,t.markedFiles]);return n===void 0?(e(),b.jsx(b.Fragment,{})):b.jsx(V9,{file:n,handleClose:e})},Y9=()=>{const{reducer:[e,t]}=h.useContext(yn),n=h.useCallback(()=>{t({type:"close-modal"})},[t]),r=h.useMemo(()=>{if(e.state!=="openned-modal")return null;switch(e.modalType){case"create-folder":return b.jsx(U9,{handleClose:n});case"edit-file-properties":return b.jsx(q9,{handleClose:n});default:return null}},[e.state,e.modalType]);return b.jsx(Zn,{show:e.state==="openned-modal",onHide:n,children:r})},Ex="documents_drag_image_element",qu="drop-container-highlight-class",kx="data-drop-container-id",Tx="data-draggable-id",G9=()=>{const e=document.getElementById(Ex);if(e!==null)return e;const t=document.createElement("div");return t.id=Ex,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},U0=()=>{const{apiActions:{moveDocuments:e},reducer:[t]}=h.useContext(yn),n=h.useCallback(c=>{var u;if(t.markedFiles.length>0){const d=G9();d.innerHTML=t.markedFiles.length.toString(),c.dataTransfer.setDragImage(d,0,0),c.dataTransfer.clearData(),c.dataTransfer.setData("application/json",JSON.stringify(t.markedFiles)),c.dataTransfer.dropEffect="none",c.dataTransfer.effectAllowed="move"}else c.dataTransfer.setData("application/json",JSON.stringify([parseInt(((u=c.currentTarget.attributes.getNamedItem(Tx))==null?void 0:u.nodeValue)??"",10)])),c.dataTransfer.dropEffect="none",c.dataTransfer.effectAllowed="move"},[t.markedFiles]),r=h.useCallback(c=>({[Tx]:c,draggable:t.markedFiles.length===0||t.markedFiles.includes(c),onDragStart:n}),[n,t.markedFiles]),i=h.useCallback(c=>u=>{var p;u.preventDefault(),u.stopPropagation(),u.currentTarget.classList.remove(qu);const d=u.dataTransfer.files;if(c&&d&&d.length>0){c(d);return}const f=u.dataTransfer.getData("application/json");if(f){const g=JSON.parse(f),m=parseInt(((p=u.currentTarget.attributes.getNamedItem(kx))==null?void 0:p.value)??"",10);e(m,g)}},[e]),a=h.useCallback(()=>c=>{c.preventDefault(),c.stopPropagation()},[]),o=h.useCallback(c=>u=>{u.preventDefault(),u.stopPropagation(),u.dataTransfer.types.includes("Files")?(u.dataTransfer.dropEffect="copy",u.currentTarget.classList.add(qu)):!c&&u.dataTransfer.types.includes("application/json")?(u.dataTransfer.dropEffect="move",u.currentTarget.classList.add(qu)):u.dataTransfer.dropEffect="none"},[]),s=h.useCallback(c=>{c.preventDefault(),c.stopPropagation(),c.target===c.currentTarget&&(c.dataTransfer.dropEffect="none",c.currentTarget.classList.remove(qu))},[]),l=h.useCallback((c,u)=>({onDrop:i(u==null?void 0:u.onFilesDrop),onDragOver:a(),onDragEnter:o(u==null?void 0:u.ignoreInner),onDragLeave:s,[kx]:c}),[i,a,o,s]);return{getDraggableProps:r,getDropProps:l}};function J4(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&&J4(a,t,n))return!0}return!1}function K9(e){if(e.activeFolder==="root")return!1;const t=e.foldersMap.get(e.activeFolder);return!(t!=null&&t.onlyRead)}function eE(e,t){const n=t.get(e);return n===void 0?"":n.parentId===null?n.name:`${eE(n.parentId,t)}/${n.name}`}const Z9=()=>{const{zString:e,zStringRequired:t,zNumberRequired:n}=lh();return{formSchema:h.useMemo(()=>$i({validToDate:t(),description:e(),name:e(),documentTypeId:n()}),[n,e,t])}},H0=({handleClose:e,files:t,targetFolderId:n})=>{var f;const{texts:{documents:r}}=h.useContext(sn),{reducer:[i],apiActions:{uploadFiles:a}}=h.useContext(yn),o=h.useMemo(()=>[...t],[t]),s=h.useMemo(()=>n??i.activeFolder,[i.activeFolder,n]),l=h.useMemo(()=>s==="root"?void 0:i.foldersMap.get(s),[s,i.foldersMap]),{formSchema:c}=Z9(),u=bn.useForm({resolver:fh(c),defaultValues:{validToDate:Jf(new Date().toISOString()),documentTypeId:(f=i.documentTypes.find(p=>{var g;return p.name===((g=i.foldersMap.get(s))==null?void 0:g.defaultDocType)}))==null?void 0:f.id}}),d=h.useCallback(async p=>{s!=="root"&&(await a(t,{folderId:s,...p}),e())},[t,e,s,a]);return b.jsxs(Zn,{show:!0,onHide:e,children:[b.jsx(Zn.Header,{closeButton:!0,children:b.jsxs("div",{children:[r.uploadFilesPrompt(t.length,l.name),b.jsx("ul",{children:o.map((p,g)=>b.jsxs("li",{children:[p.name," - ",xs(p.size)]},`${p.name}-${g}`))})]})}),b.jsx(bn.FormProvider,{...u,children:b.jsxs(oi,{onSubmit:u.handleSubmit(d),children:[b.jsxs(Zn.Body,{children:[b.jsx(L0,{formField:"documentTypeId",label:r.documentType,options:i.documentTypes,isNumber:!0,required:!0}),b.jsx(Es,{formField:"validToDate",label:r.validSince,type:"date",required:!0}),o.length===1?b.jsx(Es,{formField:"name",label:r.name,type:"text"}):null,b.jsx(F0,{formField:"description",label:r.description,customFormControlProps:{maxLength:Q4}})]}),b.jsxs(Zn.Footer,{children:[b.jsx(co,{variant:"outlined",color:"secondary",onClick:e,children:r.cancel}),b.jsx(co,{type:"submit",children:r.upload})]})]})})]})},X9="_folder_1cktt_1",Q9="_collapseArrowDiv_1cktt_8",J9="_button_1cktt_20",eP="_nestedList_1cktt_24",tP="_numberOfFiles_1cktt_31",nP="_collapseArrow_1cktt_8",Da={folder:X9,collapseArrowDiv:Q9,button:J9,nestedList:eP,numberOfFiles:tP,collapseArrow:nP},tE=({dirId:e,writePermissions:t})=>{const{ProjectIconComponent:n}=h.useContext(sn),{reducer:[r,i]}=h.useContext(yn),{getDropProps:a}=U0(),[o,s]=h.useState(null),[l,c]=h.useState(!0),u=h.useMemo(()=>{const m=r.foldersMap.get(e);if(m===void 0)throw new Error(`tried to get dir with id ${e}`);return m},[e,r.foldersMap]),d=h.useCallback(()=>{r.activeFolder!=="root"&&J4(u,r.activeFolder,r.foldersMap)&&i({type:"select-folder",folderId:e}),c(!0)},[e,u,i,r.activeFolder,r.foldersMap]),f=h.useMemo(()=>u.childrenIds.length>0,[u.childrenIds.length]),p=h.useCallback(()=>{i({type:"select-folder",folderId:e})},[e,i]),g=h.useMemo(()=>r.filteredFiles.filter(m=>m.folderId===e&&m.archive===!1).length,[e,r.filteredFiles]);return b.jsxs(b.Fragment,{children:[b.jsxs("li",{className:Da.folder,children:[b.jsx("div",{className:Da.collapseArrowDiv,children:f?l?b.jsx("button",{onClick:()=>c(!1),type:"button",children:b.jsx(n,{icon:"chevron-right",iconProps:{className:Da.collapseArrow}})}):b.jsx("button",{onClick:d,type:"button",children:b.jsx(n,{icon:"chevron-down",iconProps:{className:Da.collapseArrow}})}):null}),b.jsx("button",{className:ce(Da.button),onClick:p,type:"button",...t&&!u.onlyRead?a(e,{onFilesDrop:m=>s(m)}):{},children:b.jsxs("div",{className:"d-flex align-items-center gap-2",children:[b.jsx(K4,{isDefault:u.isDefault,folderName:u.name,typeName:u.defaultDocType??"",isActive:e===r.activeFolder}),g>0?b.jsxs("span",{className:Da.numberOfFiles,children:["[",g,"]"]}):void 0]})}),f?l?null:b.jsx("ul",{className:Da.nestedList,children:u==null?void 0:u.childrenIds.map(m=>b.jsx(tE,{dirId:m,writePermissions:t},m))}):void 0]}),o!==null?b.jsx(H0,{files:o,handleClose:()=>s(null),targetFolderId:e}):null]})},rP="_wrapper_1th2u_1",iP="_downloadButton_1th2u_9",Hg={wrapper:rP,downloadButton:iP};function hh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ox={exports:{}};/*!
227
- Copyright (c) 2018 Jed Watson.
228
- Licensed under the MIT License (MIT), see
229
- http://jedwatson.github.io/classnames
230
- */var Mx;function aP(){return Mx||(Mx=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})()}(Ox)),Ox.exports}var oP=aP();const me=hh(oP),nE=6048e5,sP=864e5,Ax=Symbol.for("constructDateFrom");function Ni(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Ax in e?e[Ax](t):e instanceof Date?new e.constructor(t):new Date(t)}function cr(e,t){return Ni(t||e,e)}function rE(e,t){const n=()=>Ni(t==null?void 0:t.in,NaN),r=dP(e);let i;if(r.date){const l=fP(r.date,2);i=hP(l.restDateString,l.year)}if(!i||isNaN(+i))return n();const a=+i;let o=0,s;if(r.time&&(o=pP(r.time),isNaN(o)))return n();if(r.timezone){if(s=mP(r.timezone),isNaN(s))return n()}else{const l=new Date(a+o),c=cr(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 cr(a+o+s,t==null?void 0:t.in)}const Yu={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},lP=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,cP=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,uP=/^([+-])(\d{2})(?::?(\d{2}))?$/;function dP(e){const t={},n=e.split(Yu.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],Yu.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Yu.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const i=Yu.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function fP(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 hP(e,t){if(t===null)return new Date(NaN);const n=e.match(lP);if(!n)return new Date(NaN);const r=!!n[4],i=bl(n[1]),a=bl(n[2])-1,o=bl(n[3]),s=bl(n[4]),l=bl(n[5])-1;if(r)return xP(t,s,l)?gP(t,s,l):new Date(NaN);{const c=new Date(0);return!bP(t,a,o)||!yP(t,i)?new Date(NaN):(c.setUTCFullYear(t,a,Math.max(i,o)),c)}}function bl(e){return e?parseInt(e):1}function pP(e){const t=e.match(cP);if(!t)return NaN;const n=dm(t[1]),r=dm(t[2]),i=dm(t[3]);return wP(n,r,i)?n*36e5+r*6e4+i*1e3:NaN}function dm(e){return e&&parseFloat(e.replace(",","."))||0}function mP(e){if(e==="Z")return 0;const t=e.match(uP);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return _P(r,i)?n*(r*36e5+i*6e4):NaN}function gP(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 vP=[31,null,31,30,31,30,31,31,30,31,30,31];function iE(e){return e%400===0||e%4===0&&e%100!==0}function bP(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(vP[t]||(iE(e)?29:28))}function yP(e,t){return t>=1&&t<=(iE(e)?366:365)}function xP(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function wP(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function _P(e,t){return t>=0&&t<=59}let CP={};function ph(){return CP}function bc(e,t){var s,l,c,u;const n=ph(),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=cr(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 Zd(e,t){return bc(e,{...t,weekStartsOn:1})}function aE(e,t){const n=cr(e,t==null?void 0:t.in),r=n.getFullYear(),i=Ni(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const a=Zd(i),o=Ni(n,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);const s=Zd(o);return n.getTime()>=a.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function Rx(e){const t=cr(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 $P(e,...t){const n=Ni.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function jx(e,t){const n=cr(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function SP(e,t,n){const[r,i]=$P(n==null?void 0:n.in,e,t),a=jx(r),o=jx(i),s=+a-Rx(a),l=+o-Rx(o);return Math.round((s-l)/sP)}function EP(e,t){const n=aE(e,t),r=Ni(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Zd(r)}function kP(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function TP(e){return!(!kP(e)&&typeof e!="number"||isNaN(+cr(e)))}function OP(e,t){const n=cr(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const MP={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"}},AP=(e,t,n)=>{let r;const i=MP[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 fm(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const RP={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},jP={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},DP={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},NP={date:fm({formats:RP,defaultWidth:"full"}),time:fm({formats:jP,defaultWidth:"full"}),dateTime:fm({formats:DP,defaultWidth:"full"})},IP={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},PP=(e,t,n,r)=>IP[e];function yl(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const 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 LP={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},FP={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},BP={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"]},zP={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"]},WP={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"}},UP={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"}},HP=(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"},VP={ordinalNumber:HP,era:yl({values:LP,defaultWidth:"wide"}),quarter:yl({values:FP,defaultWidth:"wide",argumentCallback:e=>e-1}),month:yl({values:BP,defaultWidth:"wide"}),day:yl({values:zP,defaultWidth:"wide"}),dayPeriod:yl({values:WP,defaultWidth:"wide",formattingValues:UP,defaultFormattingWidth:"wide"})};function xl(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)?YP(s,d=>d.test(o)):qP(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 qP(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function YP(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function GP(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 KP=/^(\d+)(th|st|nd|rd)?/i,ZP=/\d+/i,XP={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},QP={any:[/^b/i,/^(a|c)/i]},JP={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},eL={any:[/1/i,/2/i,/3/i,/4/i]},tL={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},nL={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]},rL={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},iL={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]},aL={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},oL={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}},sL={ordinalNumber:GP({matchPattern:KP,parsePattern:ZP,valueCallback:e=>parseInt(e,10)}),era:xl({matchPatterns:XP,defaultMatchWidth:"wide",parsePatterns:QP,defaultParseWidth:"any"}),quarter:xl({matchPatterns:JP,defaultMatchWidth:"wide",parsePatterns:eL,defaultParseWidth:"any",valueCallback:e=>e+1}),month:xl({matchPatterns:tL,defaultMatchWidth:"wide",parsePatterns:nL,defaultParseWidth:"any"}),day:xl({matchPatterns:rL,defaultMatchWidth:"wide",parsePatterns:iL,defaultParseWidth:"any"}),dayPeriod:xl({matchPatterns:aL,defaultMatchWidth:"any",parsePatterns:oL,defaultParseWidth:"any"})},lL={code:"en-US",formatDistance:AP,formatLong:NP,formatRelative:PP,localize:VP,match:sL,options:{weekStartsOn:0,firstWeekContainsDate:1}};function cL(e,t){const n=cr(e,t==null?void 0:t.in);return SP(n,OP(n))+1}function uL(e,t){const n=cr(e,t==null?void 0:t.in),r=+Zd(n)-+EP(n);return Math.round(r/nE)+1}function oE(e,t){var u,d,f,p;const n=cr(e,t==null?void 0:t.in),r=n.getFullYear(),i=ph(),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??((p=(f=i.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??1,o=Ni((t==null?void 0:t.in)||e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);const s=bc(o,t),l=Ni((t==null?void 0:t.in)||e,0);l.setFullYear(r,0,a),l.setHours(0,0,0,0);const c=bc(l,t);return+n>=+s?r+1:+n>=+c?r:r-1}function dL(e,t){var o,s,l,c;const n=ph(),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=oE(e,t),a=Ni((t==null?void 0:t.in)||e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),bc(a,t)}function fL(e,t){const n=cr(e,t==null?void 0:t.in),r=+bc(n,t)-+dL(n,t);return Math.round(r/nE)+1}function Wt(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Gi={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Wt(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Wt(n+1,2)},d(e,t){return Wt(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 Wt(e.getHours()%12||12,t.length)},H(e,t){return Wt(e.getHours(),t.length)},m(e,t){return Wt(e.getMinutes(),t.length)},s(e,t){return Wt(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return Wt(i,t.length)}},Bo={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Dx={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 Gi.y(e,t)},Y:function(e,t,n,r){const i=oE(e,r),a=i>0?i:1-i;if(t==="YY"){const o=a%100;return Wt(o,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):Wt(a,t.length)},R:function(e,t){const n=aE(e);return Wt(n,t.length)},u:function(e,t){const n=e.getFullYear();return Wt(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 Wt(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 Wt(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 Gi.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 Wt(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=fL(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):Wt(i,t.length)},I:function(e,t,n){const r=uL(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Wt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Gi.d(e,t)},D:function(e,t,n){const r=cL(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Wt(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 Wt(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 Wt(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 Wt(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=Bo.noon:r===0?i=Bo.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=Bo.evening:r>=12?i=Bo.afternoon:r>=4?i=Bo.morning:i=Bo.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 Gi.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Gi.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Wt(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Wt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Gi.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Gi.s(e,t)},S:function(e,t){return Gi.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Ix(r);case"XXXX":case"XX":return Fa(r);case"XXXXX":case"XXX":default:return Fa(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Ix(r);case"xxxx":case"xx":return Fa(r);case"xxxxx":case"xxx":default:return Fa(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Nx(r,":");case"OOOO":default:return"GMT"+Fa(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Nx(r,":");case"zzzz":default:return"GMT"+Fa(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return Wt(r,t.length)},T:function(e,t,n){return Wt(+e,t.length)}};function Nx(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+Wt(a,2)}function Ix(e,t){return e%60===0?(e>0?"-":"+")+Wt(Math.abs(e)/60,2):Fa(e,t)}function Fa(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Wt(Math.trunc(r/60),2),a=Wt(r%60,2);return n+i+t+a}const Px=(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"})}},sE=(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"})}},hL=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return Px(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}}",Px(r,t)).replace("{{time}}",sE(i,t))},pL={p:sE,P:hL},mL=/^D+$/,gL=/^Y+$/,vL=["D","DD","YY","YYYY"];function bL(e){return mL.test(e)}function yL(e){return gL.test(e)}function xL(e,t,n){const r=wL(e,t,n);if(console.warn(r),vL.includes(e))throw new RangeError(r)}function wL(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 _L=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,CL=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,$L=/^'([^]*?)'?$/,SL=/''/g,EL=/[a-zA-Z]/;function lE(e,t,n){var u,d,f,p;const r=ph(),i=r.locale??lL,a=r.firstWeekContainsDate??((d=(u=r.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??1,o=r.weekStartsOn??((p=(f=r.locale)==null?void 0:f.options)==null?void 0:p.weekStartsOn)??0,s=cr(e,n==null?void 0:n.in);if(!TP(s))throw new RangeError("Invalid time value");let l=t.match(CL).map(g=>{const m=g[0];if(m==="p"||m==="P"){const v=pL[m];return v(g,i.formatLong)}return g}).join("").match(_L).map(g=>{if(g==="''")return{isToken:!1,value:"'"};const m=g[0];if(m==="'")return{isToken:!1,value:kL(g)};if(Dx[m])return{isToken:!0,value:g};if(m.match(EL))throw new RangeError("Format string contains an unescaped latin alphabet character `"+m+"`");return{isToken:!1,value:g}});i.localize.preprocessor&&(l=i.localize.preprocessor(s,l));const c={firstWeekContainsDate:a,weekStartsOn:o,locale:i};return l.map(g=>{if(!g.isToken)return g.value;const m=g.value;(yL(m)||bL(m))&&xL(m,t,String(e));const v=Dx[m[0]];return v(s,m,i.localize,c)}).join("")}function kL(e){const t=e.match($L);return t?t[1].replace(SL,"'"):e}function cE(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 yc;(function(e){e.event="event",e.props="prop"})(yc||(yc={}));function na(){}function TL(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 xc(e){return!!(e||"").match(/\d/)}function os(e){return e==null}function OL(e){return typeof e=="number"&&isNaN(e)}function uE(e){return os(e)||OL(e)||typeof e=="number"&&!isFinite(e)}function dE(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function ML(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 AL(e,t,n){var r=ML(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 RL(e){var t=h.useRef(e);t.current=e;var n=h.useRef(function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return t.current.apply(t,r)});return n.current}function V0(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 jL(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 fE(e,t,n){for(var r="",i=n?"0":"",a=0;a<=t-1;a++)r+=e[a]||i;return r}function Lx(e,t){return Array(t+1).join(e)}function hE(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."+Lx("0",Math.abs(o))+i:o>=s?i=i+Lx("0",o-s):i=(i.substring(0,o)||"0")+"."+i.substring(o),n+i}function Fx(e,t,n){if(["","-"].indexOf(e)!==-1)return e;var r=(e.indexOf(".")!==-1||n)&&t,i=V0(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,v,w){return m.length>w?(Number(m[0])+Number(v)).toString()+m.substring(1,m.length):v+m},u[0]));var f=fE(u[1]||"",t,n),p=s?"-":"",g=r?".":"";return""+p+d+g+f}function Wa(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 pE=TL(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}}}),DL=function(e,t){var n=Math.min(e.selectionStart,t);return{from:{start:n,end:e.selectionEnd},to:{start:n,end:t}}};function NL(e,t,n){return Math.min(Math.max(e,t),n)}function hm(e){return Math.max(e.selectionStart,e.selectionEnd)}function IL(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function PL(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function LL(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,i=e.formattedValueIndex;return t[r]===n[i]}function FL(e,t,n,r,i,a,o){o===void 0&&(o=LL);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),p=0;p<c;p++){f[p]=-1;for(var g=0,m=u;g<m;g++){var v=o({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:p,formattedValueIndex:g});if(v&&d[g]!==!0){f[p]=g,d[g]=!0;break}}}for(var w=r;w<c&&(f[w]===-1||!a(n[w]));)w++;var _=w===c||f[w]===-1?u:f[w];for(w=r-1;w>0&&f[w]===-1;)w--;var y=w===-1||f[w]===-1?0:f[w]+1;return y>_?_:r-y<_-r?y:_}function Bx(e,t,n,r){var i=e.length;if(t=NL(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 BL(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),n=0,r=t.length;n<r;n++)t[n]=!!(xc(e[n])||xc(e[n-1]));return t}function mE(e,t,n,r,i,a){a===void 0&&(a=na);var o=RL(function(g,m){var v,w;return uE(g)?(w="",v=""):typeof g=="number"||m?(w=typeof g=="number"?hE(g):g,v=r(w)):(w=i(g,void 0),v=r(w)),{formattedValue:v,numAsString:w}}),s=h.useState(function(){return o(os(e)?t:e,n)}),l=s[0],c=s[1],u=function(g,m){g.formattedValue!==l.formattedValue&&c({formattedValue:g.formattedValue,numAsString:g.value}),a(g,m)},d=e,f=n;os(e)&&(d=l.numAsString,f=!0);var p=o(d,f);return h.useMemo(function(){c(p)},[p.formattedValue]),[l,u]}function zL(e){return e.replace(/[^0-9]/g,"")}function WL(e){return e}function UL(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=WL);var s=e.removeFormatting;s===void 0&&(s=zL);var l=e.defaultValue,c=e.valueIsNumericString,u=e.onValueChange,d=e.isAllowed,f=e.onChange;f===void 0&&(f=na);var p=e.onKeyDown;p===void 0&&(p=na);var g=e.onMouseUp;g===void 0&&(g=na);var m=e.onFocus;m===void 0&&(m=na);var v=e.onBlur;v===void 0&&(v=na);var w=e.value,_=e.getCaretBoundary;_===void 0&&(_=BL);var y=e.isValidInputCharacter;y===void 0&&(y=xc);var C=e.isCharacterSame,x=cE(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),$=mE(w,l,!!c,o,s,u),E=$[0],O=E.formattedValue,k=E.numAsString,j=$[1],S=h.useRef(),T=h.useRef({formattedValue:O,numAsString:k}),R=function(ne,re){T.current={formattedValue:ne.formattedValue,numAsString:ne.value},j(ne,re)},N=h.useState(!1),D=N[0],M=N[1],I=h.useRef(null),z=h.useRef({setCaretTimeout:null,focusTimeout:null});h.useEffect(function(){return M(!0),function(){clearTimeout(z.current.setCaretTimeout),clearTimeout(z.current.focusTimeout)}},[]);var U=o,P=function(ne,re){var se=parseFloat(re);return{formattedValue:ne,value:re,floatValue:isNaN(se)?void 0:se}},W=function(ne,re,se){ne.selectionStart===0&&ne.selectionEnd===ne.value.length||(Wa(ne,re),z.current.setCaretTimeout=setTimeout(function(){ne.value===se&&ne.selectionStart!==re&&Wa(ne,re)},0))},Y=function(ne,re,se){return Bx(ne,re,_(ne),se)},X=function(ne,re,se){var fe=_(re),_e=FL(re,O,ne,se,fe,y,C);return _e=Bx(re,_e,fe),_e},K=function(ne){var re=ne.formattedValue;re===void 0&&(re="");var se=ne.input,fe=ne.source,_e=ne.event,ye=ne.numAsString,xe;if(se){var Me=ne.inputValue||se.value,ue=hm(se);se.value=re,xe=X(Me,re,ue),xe!==void 0&&W(se,xe,re)}re!==O&&R(P(re,ye),{event:_e,source:fe})};h.useEffect(function(){var ne=T.current,re=ne.formattedValue,se=ne.numAsString;(O!==re||k!==se)&&R(P(O,k),{event:void 0,source:yc.props})},[O,k]);var Z=I.current?hm(I.current):void 0,ee=typeof window<"u"?h.useLayoutEffect:h.useEffect;ee(function(){var ne=I.current;if(O!==T.current.formattedValue&&ne){var re=X(T.current.formattedValue,O,Z);ne.value=O,W(ne,re,O)}},[O]);var J=function(ne,re,se){var fe=re.target,_e=S.current?DL(S.current,fe.selectionEnd):pE(O,ne),ye=Object.assign(Object.assign({},_e),{lastValue:O}),xe=s(ne,ye),Me=U(xe);if(xe=s(Me,void 0),d&&!d(P(Me,xe))){var ue=re.target,oe=hm(ue),be=X(ne,O,oe);return ue.value=O,W(ue,be,O),!1}return K({formattedValue:Me,numAsString:xe,inputValue:ne,event:re,source:se,input:re.target}),!0},B=function(ne,re){re===void 0&&(re=0);var se=ne.selectionStart,fe=ne.selectionEnd;S.current={selectionStart:se,selectionEnd:fe+re}},L=function(ne){var re=ne.target,se=re.value,fe=J(se,ne,yc.event);fe&&f(ne),S.current=void 0},F=function(ne){var re=ne.target,se=ne.key,fe=re.selectionStart,_e=re.selectionEnd,ye=re.value;ye===void 0&&(ye="");var xe;se==="ArrowLeft"||se==="Backspace"?xe=Math.max(fe-1,0):se==="ArrowRight"?xe=Math.min(fe+1,ye.length):se==="Delete"&&(xe=fe);var Me=0;se==="Delete"&&fe===_e&&(Me=1);var ue=se==="ArrowLeft"||se==="ArrowRight";if(xe===void 0||fe!==_e&&!ue){p(ne),B(re,Me);return}var oe=xe;if(ue){var be=se==="ArrowLeft"?"left":"right";oe=Y(ye,xe,be),oe!==xe&&ne.preventDefault()}else se==="Delete"&&!y(ye[xe])?oe=Y(ye,xe,"right"):se==="Backspace"&&!y(ye[xe])&&(oe=Y(ye,xe,"left"));oe!==xe&&W(re,oe,ye),p(ne),B(re,Me)},H=function(ne){var re=ne.target,se=function(){var fe=re.selectionStart,_e=re.selectionEnd,ye=re.value;if(ye===void 0&&(ye=""),fe===_e){var xe=Y(ye,fe);xe!==fe&&W(re,xe,ye)}};se(),requestAnimationFrame(function(){se()}),g(ne),B(re)},A=function(ne){ne.persist&&ne.persist();var re=ne.target,se=ne.currentTarget;I.current=re,z.current.focusTimeout=setTimeout(function(){var fe=re.selectionStart,_e=re.selectionEnd,ye=re.value;ye===void 0&&(ye="");var xe=Y(ye,fe);xe!==fe&&!(fe===0&&_e===ye.length)&&W(re,xe,ye),m(Object.assign(Object.assign({},ne),{currentTarget:se}))},0)},Q=function(ne){I.current=null,clearTimeout(z.current.focusTimeout),clearTimeout(z.current.setCaretTimeout),v(ne)},G=D&&IL()?"numeric":void 0,q=Object.assign({inputMode:G},x,{type:t,value:O,onChange:L,onKeyDown:F,onMouseUp:H,onFocus:A,onBlur:Q});if(n==="text")return i?h.createElement(h.Fragment,null,i(O,x)||null):h.createElement("span",Object.assign({},x,{ref:a}),O);if(r){var le=r;return h.createElement(le,Object.assign({},q,{ref:a}))}return h.createElement("input",Object.assign({},q,{ref:a}))}function zx(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=mh(t),c=l.thousandSeparator,u=l.decimalSeparator,d=n!==0&&e.indexOf(".")!==-1||n&&r,f=V0(e,o),p=f.beforeDecimal,g=f.afterDecimal,m=f.addNegation;return n!==void 0&&(g=fE(g,n,!!r)),c&&(p=AL(p,c,s)),i&&(p=i+p),a&&(g=g+a),m&&(p="-"+p),e=p+(d&&u||"")+g,e}function mh(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 HL(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 VL(e,t){return new RegExp("(^-)|[0-9]|"+dE(e),"g")}function qL(e,t,n){return e===""?!0:!(t!=null&&t.match(/\d/))&&!(n!=null&&n.match(/\d/))&&typeof e=="string"&&!isNaN(Number(e))}function YL(e,t,n){var r;t===void 0&&(t=PL(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=mh(n),p=f.allowedDecimalSeparators,g=f.decimalSeparator,m=e[d]===g;if(xc(e)&&(e===a||e===o)&&t.lastValue==="")return e;if(d-u===1&&p.indexOf(e[u])!==-1){var v=s===0?"":g;e=e.substring(0,u)+v+e.substring(u+1,e.length)}var w=function(I,z,U){var P=!1,W=!1;a.startsWith("-")?P=!1:I.startsWith("--")?(P=!1,W=!0):o.startsWith("-")&&I.length===o.length?P=!1:I[0]==="-"&&(P=!0);var Y=P?1:0;return W&&(Y=2),Y&&(I=I.substring(Y),z-=Y,U-=Y),{value:I,start:z,end:U,hasNegation:P}},_=w(e,u,d),y=_.hasNegation;r=_,e=r.value,u=r.start,d=r.end;var C=w(t.lastValue,l.start,l.end),x=C.start,$=C.end,E=C.value,O=e.substring(u,d);e.length&&E.length&&(x>E.length-o.length||$<a.length)&&!(O&&o.startsWith(O))&&(e=E);var k=0;e.startsWith(a)?k+=a.length:u<a.length&&(k=u),e=e.substring(k),d-=k;var j=e.length,S=e.length-o.length;e.endsWith(o)?j=S:(d>S||d>e.length-o.length)&&(j=d),e=e.substring(0,j),e=HL(y?"-"+e:e,i),e=(e.match(VL(g))||[]).join("");var T=e.indexOf(g);e=e.replace(new RegExp(dE(g),"g"),function(I,z){return z===T?".":""});var R=V0(e,i),N=R.beforeDecimal,D=R.afterDecimal,M=R.addNegation;return c.end-c.start<l.end-l.start&&N===""&&m&&!parseFloat(D)&&(e=M?"-":""),e}function GL(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 KL(e){var t=mh(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(`
231
- Decimal separator can't be same as thousand separator.
232
- thousandSeparator: `+n+` (thousandSeparator = {true} is same as thousandSeparator = ",")
233
- decimalSeparator: `+r+` (default value for decimalSeparator is .)
234
- `);return i.startsWith("-")&&a&&(console.error(`
235
- Prefix can't start with '-' when allowNegative is true.
236
- prefix: `+i+`
237
- allowNegative: `+a+`
238
- `),a=!1),Object.assign(Object.assign({},e),{allowNegative:a})}function ZL(e){e=KL(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,i=e.onKeyDown;i===void 0&&(i=na);var a=e.onBlur;a===void 0&&(a=na);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,p=e.onValueChange,g=cE(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),m=mh(e),v=m.decimalSeparator,w=m.allowedDecimalSeparators,_=function(M){return zx(M,e)},y=function(M,I){return YL(M,I,e)},C=os(d)?u:d,x=f??qL(C,c,t);os(d)?os(u)||(x=x||typeof u=="number"):x=x||typeof d=="number";var $=function(M){return uE(M)?M:(typeof M=="number"&&(M=hE(M)),x&&typeof s=="number"?Fx(M,s,!!l):M)},E=mE($(d),$(u),!!x,_,y,p),O=E[0],k=O.numAsString,j=O.formattedValue,S=E[1],T=function(M){var I=M.target,z=M.key,U=I.selectionStart,P=I.selectionEnd,W=I.value;if(W===void 0&&(W=""),(z==="Backspace"||z==="Delete")&&P<c.length){M.preventDefault();return}if(U!==P){i(M);return}z==="Backspace"&&W[0]==="-"&&U===c.length+1&&n&&Wa(I,1),s&&l&&(z==="Backspace"&&W[U-1]===v?(Wa(I,U-1),M.preventDefault()):z==="Delete"&&W[U]===v&&M.preventDefault()),w!=null&&w.includes(z)&&W[U]===v&&Wa(I,U+1);var Y=o===!0?",":o;z==="Backspace"&&W[U-1]===Y&&Wa(I,U-1),z==="Delete"&&W[U]===Y&&Wa(I,U+1),i(M)},R=function(M){var I=k;if(I.match(/\d/g)||(I=""),r||(I=jL(I)),l&&s&&(I=Fx(I,s,l)),I!==k){var z=zx(I,e);S({formattedValue:z,value:I,floatValue:parseFloat(I)},{event:M,source:yc.event})}a(M)},N=function(M){return M===v?!0:xc(M)},D=function(M){var I=M.currentValue,z=M.lastValue,U=M.formattedValue,P=M.currentValueIndex,W=M.formattedValueIndex,Y=I[P],X=U[W],K=pE(z,I),Z=K.to,ee=function(J){return y(J).indexOf(".")+c.length};return d===0&&l&&s&&I[Z.start]===v&&ee(I)<P&&ee(U)>W?!1:P>=Z.start&&P<Z.end&&w&&w.includes(Y)&&X===v?!0:Y===X};return Object.assign(Object.assign({},g),{value:j,valueIsNumericString:!1,isValidInputCharacter:N,isCharacterSame:D,onValueChange:S,format:_,removeFormatting:y,getCaretBoundary:function(M){return GL(M,e)},onKeyDown:T,onBlur:R})}function XL(e){var t=ZL(e);return h.createElement(UL,Object.assign({},t))}const QL=(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?b.jsx(t,{className:me({"text-success":n===!0,"text-muted":n===!1,"justify-content-center":r==="center","justify-content-start":r==="left","justify-content-end":r==="right"}),icon:n?"boolean-yes":"boolean-no"}):null},JL=e=>{const t=e.getValue();return t?lE(rE(t.toString()),"dd.MM.yyyy"):null},eF=e=>{const t=e.getValue();return t?lE(rE(t.toString()),"dd.MM.yyyy HH:mm"):null},tF=e=>{const t=e.getValue(),n=e.column.columnDef,r=n.type==="number"?n.numericMeta:void 0;return t==null||t===void 0||t===""?null:r!=null&&r.noFormatting?(t==null?void 0:t.toString())??null:b.jsx(XL,{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()})},nF=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},rF=["xxl","xl","lg","md","sm","xs"],iF="xs",su=ie.createContext({prefixes:{},breakpoints:rF,minBreakpoint:iF}),{Consumer:Ybe,Provider:Gbe}=su;function Et(e,t){const{prefixes:n}=h.useContext(su);return e||n[t]||t}function aF(){const{breakpoints:e}=h.useContext(su);return e}function oF(){const{minBreakpoint:e}=h.useContext(su);return e}function gE(){const{dir:e}=h.useContext(su);return e==="rtl"}var Gu={exports:{}},pm={exports:{}},It={};/** @license React v16.13.1
239
- * react-is.production.min.js
240
- *
241
- * Copyright (c) Facebook, Inc. and its affiliates.
242
- *
243
- * This source code is licensed under the MIT license found in the
244
- * LICENSE file in the root directory of this source tree.
245
- */var Wx;function sF(){if(Wx)return It;Wx=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,p=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function y(x){if(typeof x=="object"&&x!==null){var $=x.$$typeof;switch($){case t:switch(x=x.type,x){case l:case c:case r:case a:case i:case d:return x;default:switch(x=x&&x.$$typeof,x){case s:case u:case g:case p:case o:return x;default:return $}}case n:return $}}}function C(x){return y(x)===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=g,It.Memo=p,It.Portal=n,It.Profiler=a,It.StrictMode=i,It.Suspense=d,It.isAsyncMode=function(x){return C(x)||y(x)===l},It.isConcurrentMode=C,It.isContextConsumer=function(x){return y(x)===s},It.isContextProvider=function(x){return y(x)===o},It.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===t},It.isForwardRef=function(x){return y(x)===u},It.isFragment=function(x){return y(x)===r},It.isLazy=function(x){return y(x)===g},It.isMemo=function(x){return y(x)===p},It.isPortal=function(x){return y(x)===n},It.isProfiler=function(x){return y(x)===a},It.isStrictMode=function(x){return y(x)===i},It.isSuspense=function(x){return y(x)===d},It.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===r||x===c||x===a||x===i||x===d||x===f||typeof x=="object"&&x!==null&&(x.$$typeof===g||x.$$typeof===p||x.$$typeof===o||x.$$typeof===s||x.$$typeof===u||x.$$typeof===v||x.$$typeof===w||x.$$typeof===_||x.$$typeof===m)},It.typeOf=y,It}var zt={};/** @license React v16.13.1
246
- * react-is.development.js
247
- *
248
- * Copyright (c) Facebook, Inc. and its affiliates.
249
- *
250
- * This source code is licensed under the MIT license found in the
251
- * LICENSE file in the root directory of this source tree.
252
- */var Ux;function lF(){return Ux||(Ux=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,p=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function y(A){return typeof A=="string"||typeof A=="function"||A===r||A===c||A===a||A===i||A===d||A===f||typeof A=="object"&&A!==null&&(A.$$typeof===g||A.$$typeof===p||A.$$typeof===o||A.$$typeof===s||A.$$typeof===u||A.$$typeof===v||A.$$typeof===w||A.$$typeof===_||A.$$typeof===m)}function C(A){if(typeof A=="object"&&A!==null){var Q=A.$$typeof;switch(Q){case t:var G=A.type;switch(G){case l:case c:case r:case a:case i:case d:return G;default:var q=G&&G.$$typeof;switch(q){case s:case u:case g:case p:case o:return q;default:return Q}}case n:return Q}}}var x=l,$=c,E=s,O=o,k=t,j=u,S=r,T=g,R=p,N=n,D=a,M=i,I=d,z=!1;function U(A){return z||(z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),P(A)||C(A)===l}function P(A){return C(A)===c}function W(A){return C(A)===s}function Y(A){return C(A)===o}function X(A){return typeof A=="object"&&A!==null&&A.$$typeof===t}function K(A){return C(A)===u}function Z(A){return C(A)===r}function ee(A){return C(A)===g}function J(A){return C(A)===p}function B(A){return C(A)===n}function L(A){return C(A)===a}function F(A){return C(A)===i}function H(A){return C(A)===d}zt.AsyncMode=x,zt.ConcurrentMode=$,zt.ContextConsumer=E,zt.ContextProvider=O,zt.Element=k,zt.ForwardRef=j,zt.Fragment=S,zt.Lazy=T,zt.Memo=R,zt.Portal=N,zt.Profiler=D,zt.StrictMode=M,zt.Suspense=I,zt.isAsyncMode=U,zt.isConcurrentMode=P,zt.isContextConsumer=W,zt.isContextProvider=Y,zt.isElement=X,zt.isForwardRef=K,zt.isFragment=Z,zt.isLazy=ee,zt.isMemo=J,zt.isPortal=B,zt.isProfiler=L,zt.isStrictMode=F,zt.isSuspense=H,zt.isValidElementType=y,zt.typeOf=C}()),zt}var Hx;function vE(){return Hx||(Hx=1,process.env.NODE_ENV==="production"?pm.exports=sF():pm.exports=lF()),pm.exports}/*
253
- object-assign
254
- (c) Sindre Sorhus
255
- @license MIT
256
- */var mm,Vx;function cF(){if(Vx)return mm;Vx=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 mm=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},mm}var gm,qx;function q0(){if(qx)return gm;qx=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return gm=e,gm}var Yx,Gx;function bE(){return Gx||(Gx=1,Yx=Function.call.bind(Object.prototype.hasOwnProperty)),Yx}var vm,Kx;function uF(){if(Kx)return vm;Kx=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=q0(),n={},r=bE();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(g){d=g}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 p=c?c():"";e("Failed "+s+" type: "+d.message+(p??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},vm=i,vm}var bm,Zx;function dF(){if(Zx)return bm;Zx=1;var e=vE(),t=cF(),n=q0(),r=bE(),i=uF(),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 bm=function(s,l){var c=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function d(P){var W=P&&(c&&P[c]||P[u]);if(typeof W=="function")return W}var f="<<anonymous>>",p={array:w("array"),bigint:w("bigint"),bool:w("boolean"),func:w("function"),number:w("number"),object:w("object"),string:w("string"),symbol:w("symbol"),any:_(),arrayOf:y,element:C(),elementType:x(),instanceOf:$,node:j(),objectOf:O,oneOf:E,oneOfType:k,shape:T,exact:R};function g(P,W){return P===W?P!==0||1/P===1/W:P!==P&&W!==W}function m(P,W){this.message=P,this.data=W&&typeof W=="object"?W:{},this.stack=""}m.prototype=Error.prototype;function v(P){if(process.env.NODE_ENV!=="production")var W={},Y=0;function X(Z,ee,J,B,L,F,H){if(B=B||f,F=F||J,H!==n){if(l){var A=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw A.name="Invariant Violation",A}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Q=B+":"+J;!W[Q]&&Y<3&&(a("You are manually calling a React.PropTypes validation function for the `"+F+"` prop on `"+B+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),W[Q]=!0,Y++)}}return ee[J]==null?Z?ee[J]===null?new m("The "+L+" `"+F+"` is marked as required "+("in `"+B+"`, but its value is `null`.")):new m("The "+L+" `"+F+"` is marked as required in "+("`"+B+"`, but its value is `undefined`.")):null:P(ee,J,B,L,F)}var K=X.bind(null,!1);return K.isRequired=X.bind(null,!0),K}function w(P){function W(Y,X,K,Z,ee,J){var B=Y[X],L=M(B);if(L!==P){var F=I(B);return new m("Invalid "+Z+" `"+ee+"` of type "+("`"+F+"` supplied to `"+K+"`, expected ")+("`"+P+"`."),{expectedType:P})}return null}return v(W)}function _(){return v(o)}function y(P){function W(Y,X,K,Z,ee){if(typeof P!="function")return new m("Property `"+ee+"` of component `"+K+"` has invalid PropType notation inside arrayOf.");var J=Y[X];if(!Array.isArray(J)){var B=M(J);return new m("Invalid "+Z+" `"+ee+"` of type "+("`"+B+"` supplied to `"+K+"`, expected an array."))}for(var L=0;L<J.length;L++){var F=P(J,L,K,Z,ee+"["+L+"]",n);if(F instanceof Error)return F}return null}return v(W)}function C(){function P(W,Y,X,K,Z){var ee=W[Y];if(!s(ee)){var J=M(ee);return new m("Invalid "+K+" `"+Z+"` of type "+("`"+J+"` supplied to `"+X+"`, expected a single ReactElement."))}return null}return v(P)}function x(){function P(W,Y,X,K,Z){var ee=W[Y];if(!e.isValidElementType(ee)){var J=M(ee);return new m("Invalid "+K+" `"+Z+"` of type "+("`"+J+"` supplied to `"+X+"`, expected a single ReactElement type."))}return null}return v(P)}function $(P){function W(Y,X,K,Z,ee){if(!(Y[X]instanceof P)){var J=P.name||f,B=U(Y[X]);return new m("Invalid "+Z+" `"+ee+"` of type "+("`"+B+"` supplied to `"+K+"`, expected ")+("instance of `"+J+"`."))}return null}return v(W)}function E(P){if(!Array.isArray(P))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 W(Y,X,K,Z,ee){for(var J=Y[X],B=0;B<P.length;B++)if(g(J,P[B]))return null;var L=JSON.stringify(P,function(F,H){var A=I(H);return A==="symbol"?String(H):H});return new m("Invalid "+Z+" `"+ee+"` of value `"+String(J)+"` "+("supplied to `"+K+"`, expected one of "+L+"."))}return v(W)}function O(P){function W(Y,X,K,Z,ee){if(typeof P!="function")return new m("Property `"+ee+"` of component `"+K+"` has invalid PropType notation inside objectOf.");var J=Y[X],B=M(J);if(B!=="object")return new m("Invalid "+Z+" `"+ee+"` of type "+("`"+B+"` supplied to `"+K+"`, expected an object."));for(var L in J)if(r(J,L)){var F=P(J,L,K,Z,ee+"."+L,n);if(F instanceof Error)return F}return null}return v(W)}function k(P){if(!Array.isArray(P))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var W=0;W<P.length;W++){var Y=P[W];if(typeof Y!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+z(Y)+" at index "+W+"."),o}function X(K,Z,ee,J,B){for(var L=[],F=0;F<P.length;F++){var H=P[F],A=H(K,Z,ee,J,B,n);if(A==null)return null;A.data&&r(A.data,"expectedType")&&L.push(A.data.expectedType)}var Q=L.length>0?", expected one of type ["+L.join(", ")+"]":"";return new m("Invalid "+J+" `"+B+"` supplied to "+("`"+ee+"`"+Q+"."))}return v(X)}function j(){function P(W,Y,X,K,Z){return N(W[Y])?null:new m("Invalid "+K+" `"+Z+"` supplied to "+("`"+X+"`, expected a ReactNode."))}return v(P)}function S(P,W,Y,X,K){return new m((P||"React class")+": "+W+" type `"+Y+"."+X+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+K+"`.")}function T(P){function W(Y,X,K,Z,ee){var J=Y[X],B=M(J);if(B!=="object")return new m("Invalid "+Z+" `"+ee+"` of type `"+B+"` "+("supplied to `"+K+"`, expected `object`."));for(var L in P){var F=P[L];if(typeof F!="function")return S(K,Z,ee,L,I(F));var H=F(J,L,K,Z,ee+"."+L,n);if(H)return H}return null}return v(W)}function R(P){function W(Y,X,K,Z,ee){var J=Y[X],B=M(J);if(B!=="object")return new m("Invalid "+Z+" `"+ee+"` of type `"+B+"` "+("supplied to `"+K+"`, expected `object`."));var L=t({},Y[X],P);for(var F in L){var H=P[F];if(r(P,F)&&typeof H!="function")return S(K,Z,ee,F,I(H));if(!H)return new m("Invalid "+Z+" `"+ee+"` key `"+F+"` supplied to `"+K+"`.\nBad object: "+JSON.stringify(Y[X],null," ")+`
257
- Valid keys: `+JSON.stringify(Object.keys(P),null," "));var A=H(J,F,K,Z,ee+"."+F,n);if(A)return A}return null}return v(W)}function N(P){switch(typeof P){case"number":case"string":case"undefined":return!0;case"boolean":return!P;case"object":if(Array.isArray(P))return P.every(N);if(P===null||s(P))return!0;var W=d(P);if(W){var Y=W.call(P),X;if(W!==P.entries){for(;!(X=Y.next()).done;)if(!N(X.value))return!1}else for(;!(X=Y.next()).done;){var K=X.value;if(K&&!N(K[1]))return!1}}else return!1;return!0;default:return!1}}function D(P,W){return P==="symbol"?!0:W?W["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&W instanceof Symbol:!1}function M(P){var W=typeof P;return Array.isArray(P)?"array":P instanceof RegExp?"object":D(W,P)?"symbol":W}function I(P){if(typeof P>"u"||P===null)return""+P;var W=M(P);if(W==="object"){if(P instanceof Date)return"date";if(P instanceof RegExp)return"regexp"}return W}function z(P){var W=I(P);switch(W){case"array":case"object":return"an "+W;case"boolean":case"date":case"regexp":return"a "+W;default:return W}}function U(P){return!P.constructor||!P.constructor.name?f:P.constructor.name}return p.checkPropTypes=i,p.resetWarningCache=i.resetWarningCache,p.PropTypes=p,p},bm}var ym,Xx;function fF(){if(Xx)return ym;Xx=1;var e=q0();function t(){}function n(){}return n.resetWarningCache=t,ym=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},ym}var Qx;function hF(){if(Qx)return Gu.exports;if(Qx=1,process.env.NODE_ENV!=="production"){var e=vE(),t=!0;Gu.exports=dF()(e.isElement,t)}else Gu.exports=fF()();return Gu.exports}var pF=hF();const qe=hh(pF);function mF(e,t){return ie.Children.toArray(e).some(n=>ie.isValidElement(n)&&n.type===t)}function gF({as:e,bsPrefix:t,className:n,...r}){t=Et(t,"col");const i=aF(),a=oF(),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 p=l!==a?`-${l}`:"";u&&o.push(u===!0?`${t}${p}`:`${t}${p}-${u}`),f!=null&&s.push(`order${p}-${f}`),d!=null&&s.push(`offset${p}-${d}`)}),[{...r,className:me(n,...o,...s)},{as:e,bsPrefix:t,spans:o}]}const yE=ie.forwardRef((e,t)=>{const[{className:n,...r},{as:i="div",bsPrefix:a,spans:o}]=gF(e);return b.jsx(i,{...r,ref:t,className:me(n,!o.length&&a)})});yE.displayName="Col";var xm,Jx;function vF(){if(Jx)return xm;Jx=1;var e=process.env.NODE_ENV!=="production",t=function(){};if(e){var n=function(r,i){var a=arguments.length;i=new Array(a>1?a-1:0);for(var o=1;o<a;o++)i[o-1]=arguments[o];var s=0,l="Warning: "+r.replace(/%s/g,function(){return i[s++]});typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}};t=function(r,i,a){var o=arguments.length;a=new Array(o>2?o-2:0);for(var s=2;s<o;s++)a[s-2]=arguments[s];if(i===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");r||n.apply(null,[i].concat(a))}}return xm=t,xm}var bF=vF();const gh=hh(bF),yF={type:qe.string,tooltip:qe.bool,as:qe.elementType},vh=ie.forwardRef(({as:e="div",className:t,type:n="valid",tooltip:r=!1,...i},a)=>b.jsx(e,{...i,ref:a,className:me(t,`${n}-${r?"tooltip":"feedback"}`)}));vh.displayName="Feedback";vh.propTypes=yF;const Ii=ie.createContext({}),Y0=ie.forwardRef(({id:e,bsPrefix:t,className:n,type:r="checkbox",isValid:i=!1,isInvalid:a=!1,as:o="input",...s},l)=>{const{controlId:c}=h.useContext(Ii);return t=Et(t,"form-check-input"),b.jsx(o,{...s,ref:l,type:r,id:e||c,className:me(n,t,i&&"is-valid",a&&"is-invalid")})});Y0.displayName="FormCheckInput";const Xd=ie.forwardRef(({bsPrefix:e,className:t,htmlFor:n,...r},i)=>{const{controlId:a}=h.useContext(Ii);return e=Et(e,"form-check-label"),b.jsx("label",{...r,ref:i,htmlFor:n||a,className:me(t,e)})});Xd.displayName="FormCheckLabel";const xE=ie.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:p="",type:g="checkbox",label:m,children:v,as:w="input",..._},y)=>{t=Et(t,"form-check"),n=Et(n,"form-switch");const{controlId:C}=h.useContext(Ii),x=h.useMemo(()=>({controlId:e||C}),[C,e]),$=!v&&m!=null&&m!==!1||mF(v,Xd),E=b.jsx(Y0,{..._,type:g==="switch"?"checkbox":g,ref:y,isValid:o,isInvalid:s,disabled:a,as:w});return b.jsx(Ii.Provider,{value:x,children:b.jsx("div",{style:f,className:me(d,$&&t,r&&`${t}-inline`,i&&`${t}-reverse`,g==="switch"&&n),children:v||b.jsxs(b.Fragment,{children:[E,$&&b.jsx(Xd,{title:p,children:m}),c&&b.jsx(vh,{type:u,tooltip:l,children:c})]})})})});xE.displayName="FormCheck";const Qd=Object.assign(xE,{Input:Y0,Label:Xd}),wE=ie.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:p}=h.useContext(Ii);return e=Et(e,"form-control"),process.env.NODE_ENV!=="production"&&gh(p==null||!i,"`controlId` is ignored on `<FormControl>` when `id` is specified."),b.jsx(u,{...d,type:t,size:r,ref:f,readOnly:c,id:i||p,className:me(a,l?`${e}-plaintext`:e,n&&`${e}-${n}`,t==="color"&&`${e}-color`,o&&"is-valid",s&&"is-invalid")})});wE.displayName="FormControl";const xF=Object.assign(wE,{Feedback:vh}),_E=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=Et(t,"form-floating"),b.jsx(n,{ref:i,className:me(e,t),...r})));_E.displayName="FormFloating";const G0=ie.forwardRef(({controlId:e,as:t="div",...n},r)=>{const i=h.useMemo(()=>({controlId:e}),[e]);return b.jsx(Ii.Provider,{value:i,children:b.jsx(t,{...n,ref:r})})});G0.displayName="FormGroup";const CE=ie.forwardRef(({as:e="label",bsPrefix:t,column:n=!1,visuallyHidden:r=!1,className:i,htmlFor:a,...o},s)=>{const{controlId:l}=h.useContext(Ii);t=Et(t,"form-label");let c="col-form-label";typeof n=="string"&&(c=`${c} ${c}-${n}`);const u=me(i,t,r&&"visually-hidden",n&&c);return process.env.NODE_ENV!=="production"&&gh(l==null||!a,"`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified."),a=a||l,n?b.jsx(yE,{ref:s,as:"label",className:u,htmlFor:a,...o}):b.jsx(e,{ref:s,className:u,htmlFor:a,...o})});CE.displayName="FormLabel";const $E=ie.forwardRef(({bsPrefix:e,className:t,id:n,...r},i)=>{const{controlId:a}=h.useContext(Ii);return e=Et(e,"form-range"),b.jsx("input",{...r,type:"range",ref:i,className:me(t,e),id:n||a})});$E.displayName="FormRange";const SE=ie.forwardRef(({bsPrefix:e,size:t,htmlSize:n,className:r,isValid:i=!1,isInvalid:a=!1,id:o,...s},l)=>{const{controlId:c}=h.useContext(Ii);return e=Et(e,"form-select"),b.jsx("select",{...s,size:n,ref:l,className:me(r,e,t&&`${e}-${t}`,i&&"is-valid",a&&"is-invalid"),id:o||c})});SE.displayName="FormSelect";const EE=ie.forwardRef(({bsPrefix:e,className:t,as:n="small",muted:r,...i},a)=>(e=Et(e,"form-text"),b.jsx(n,{...i,ref:a,className:me(t,e,r&&"text-muted")})));EE.displayName="FormText";const kE=ie.forwardRef((e,t)=>b.jsx(Qd,{...e,ref:t,type:"switch"}));kE.displayName="Switch";const wF=Object.assign(kE,{Input:Qd.Input,Label:Qd.Label}),TE=ie.forwardRef(({bsPrefix:e,className:t,children:n,controlId:r,label:i,...a},o)=>(e=Et(e,"form-floating"),b.jsxs(G0,{ref:o,className:me(t,e),controlId:r,...a,children:[n,b.jsx("label",{htmlFor:r,children:i})]})));TE.displayName="FloatingLabel";const _F={_ref:qe.any,validated:qe.bool,as:qe.elementType},K0=ie.forwardRef(({className:e,validated:t,as:n="form",...r},i)=>b.jsx(n,{...r,ref:i,className:me(e,t&&"was-validated")}));K0.displayName="Form";K0.propTypes=_F;const Jd=Object.assign(K0,{Group:G0,Control:xF,Floating:_E,Check:Qd,Switch:wF,Label:CE,Text:EE,Range:$E,Select:SE,FloatingLabel:TE}),CF=({column:e,filterValue:t,IconComponent:n,texts:r})=>{const[i,a]=h.useState(t??""),[o,s]=h.useState(!1),[l,c]=h.useState(!1);h.useEffect(()=>{a(t??"")},[t]),h.useEffect(()=>{if((i||null)===(t||null))return;const d=setTimeout(()=>{e.setFilterValue(i??null)},500);return()=>clearTimeout(d)},[i,e,t]);const u=h.useMemo(()=>i==="no_value_filter_value",[i]);return b.jsx("div",{className:"w-100 h-100 position-relative",children:u?b.jsx("div",{className:"d-flex align-items-center text-muted w-100 h-100 border rounded px-2",role:"button",style:{fontSize:"12px",minHeight:"31px",height:"31px",maxHeight:"31px"},onClick:()=>{a(""),c(!1),s(!1)},children:r.noValue}):b.jsxs(b.Fragment,{children:[b.jsx(Jd.Control,{className:me("filter w-100",{filtered:!!t}),"data-testId":`filter-${e.id}`,id:`filter-${e.id}`,role:"filter-input",size:"sm",type:"text",value:i,onChange:d=>{a(d.target.value??"")},onKeyDown:d=>{d.key==="Escape"&&a("")},onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1)}),u?null:b.jsx("div",{className:"position-absolute",style:{top:"calc(50% - 8px)",right:"6px",opacity:o||l?1:0,transition:"opacity 0.3s ease-in-out"},onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),children:b.jsx("div",{role:"button",onClick:()=>{a(u?"":"no_value_filter_value"),s(!1)},children:b.jsx(n,{icon:"no-value",iconProps:{style:{fontSize:"13px",background:"transparent"}}})})})]})})};function ef(e,t=ef.characters){return e.replace(/[^A-Za-z0-9]/g,function(n){return t[n]||n})}ef.characters={Á:"A",Ă:"A",Ắ:"A",Ặ:"A",Ằ:"A",Ẳ:"A",Ẵ:"A",Ǎ:"A",Â:"A",Ấ:"A",Ậ:"A",Ầ:"A",Ẩ:"A",Ẫ:"A",Ä:"A",Ǟ:"A",Ȧ:"A",Ǡ:"A",Ạ:"A",Ȁ:"A",À:"A",Ả:"A",Ȃ:"A",Ā:"A",Ą:"A",Å:"A",Ǻ:"A",Ḁ:"A","Ⱥ":"A",Ã:"A","Ꜳ":"AA",Æ:"AE",Ǽ:"AE",Ǣ:"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY",Ḃ:"B",Ḅ:"B",Ɓ:"B",Ḇ:"B","Ƀ":"B",Ƃ:"B",Ć:"C",Č:"C",Ç:"C",Ḉ:"C",Ĉ:"C",Ċ:"C",Ƈ:"C","Ȼ":"C",Ď:"D",Ḑ:"D",Ḓ:"D",Ḋ:"D",Ḍ:"D",Ɗ:"D",Ḏ:"D",Dz:"D",Dž:"D",Đ:"D",Ð:"D",Ƌ:"D",DZ:"DZ",DŽ:"DZ",É:"E",Ĕ:"E",Ě:"E",Ȩ:"E",Ḝ:"E",Ê:"E",Ế:"E",Ệ:"E",Ề:"E",Ể:"E",Ễ:"E",Ḙ:"E",Ë:"E",Ė:"E",Ẹ:"E",Ȅ:"E",È:"E",Ẻ:"E",Ȇ:"E",Ē:"E",Ḗ:"E",Ḕ:"E",Ę:"E","Ɇ":"E",Ẽ:"E",Ḛ:"E","Ꝫ":"ET",Ḟ:"F",Ƒ:"F",Ǵ:"G",Ğ:"G",Ǧ:"G",Ģ:"G",Ĝ:"G",Ġ:"G",Ɠ:"G",Ḡ:"G",Ǥ:"G",Ḫ:"H",Ȟ:"H",Ḩ:"H",Ĥ:"H","Ⱨ":"H",Ḧ:"H",Ḣ:"H",Ḥ:"H",Ħ:"H",Í:"I",Ĭ:"I",Ǐ:"I",Î:"I",Ï:"I",Ḯ:"I",İ:"I",Ị:"I",Ȉ:"I",Ì:"I",Ỉ:"I",Ȋ:"I",Ī:"I",Į:"I",Ɨ:"I",Ĩ:"I",Ḭ:"I",І:"I","Ꝺ":"D","Ꝼ":"F","Ᵹ":"G","Ꞃ":"R","Ꞅ":"S","Ꞇ":"T","Ꝭ":"IS",Ĵ:"J","Ɉ":"J",Ḱ:"K",Ǩ:"K",Ķ:"K","Ⱪ":"K","Ꝃ":"K",Ḳ:"K",Ƙ:"K",Ḵ:"K","Ꝁ":"K","Ꝅ":"K",Ĺ:"L","Ƚ":"L",Ľ:"L",Ļ:"L",Ḽ:"L",Ḷ:"L",Ḹ:"L","Ⱡ":"L","Ꝉ":"L",Ḻ:"L",Ŀ:"L","Ɫ":"L",Lj:"L",Ł:"L",LJ:"LJ",Ḿ:"M",Ṁ:"M",Ṃ:"M","Ɱ":"M",Ń:"N",Ň:"N",Ņ:"N",Ṋ:"N",Ṅ:"N",Ṇ:"N",Ǹ:"N",Ɲ:"N",Ṉ:"N","Ƞ":"N",Nj:"N",Ñ:"N",NJ:"NJ",Ó:"O",Ŏ:"O",Ǒ:"O",Ô:"O",Ố:"O",Ộ:"O",Ồ:"O",Ổ:"O",Ỗ:"O",Ö:"O",Ȫ:"O",Ȯ:"O",Ȱ:"O",Ọ:"O",Ő:"O",Ȍ:"O",Ò:"O",Ỏ:"O",Ơ:"O",Ớ:"O",Ợ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ȏ:"O","Ꝋ":"O","Ꝍ":"O",Ō:"O",Ṓ:"O",Ṑ:"O",Ɵ:"O",Ǫ:"O",Ǭ:"O",Ø:"O",Ǿ:"O",Õ:"O",Ṍ:"O",Ṏ:"O",Ȭ:"O",Ƣ:"OI","Ꝏ":"OO",Ɛ:"E",Ɔ:"O",Ȣ:"OU",Ṕ:"P",Ṗ:"P","Ꝓ":"P",Ƥ:"P","Ꝕ":"P","Ᵽ":"P","Ꝑ":"P","Ꝙ":"Q","Ꝗ":"Q",Ŕ:"R",Ř:"R",Ŗ:"R",Ṙ:"R",Ṛ:"R",Ṝ:"R",Ȑ:"R",Ȓ:"R",Ṟ:"R","Ɍ":"R","Ɽ":"R","Ꜿ":"C",Ǝ:"E",Ś:"S",Ṥ:"S",Š:"S",Ṧ:"S",Ş:"S",Ŝ:"S",Ș:"S",Ṡ:"S",Ṣ:"S",Ṩ:"S",ß:"ss",Ť:"T",Ţ:"T",Ṱ:"T",Ț:"T","Ⱦ":"T",Ṫ:"T",Ṭ:"T",Ƭ:"T",Ṯ:"T",Ʈ:"T",Ŧ:"T","Ɐ":"A","Ꞁ":"L",Ɯ:"M","Ʌ":"V","Ꜩ":"TZ",Ú:"U",Ŭ:"U",Ǔ:"U",Û:"U",Ṷ:"U",Ü:"U",Ǘ:"U",Ǚ:"U",Ǜ:"U",Ǖ:"U",Ṳ:"U",Ụ:"U",Ű:"U",Ȕ:"U",Ù:"U",Ủ:"U",Ư:"U",Ứ:"U",Ự:"U",Ừ:"U",Ử:"U",Ữ:"U",Ȗ:"U",Ū:"U",Ṻ:"U",Ų:"U",Ů:"U",Ũ:"U",Ṹ:"U",Ṵ:"U","Ꝟ":"V",Ṿ:"V",Ʋ:"V",Ṽ:"V","Ꝡ":"VY",Ẃ:"W",Ŵ:"W",Ẅ:"W",Ẇ:"W",Ẉ:"W",Ẁ:"W","Ⱳ":"W",Ẍ:"X",Ẋ:"X",Ý:"Y",Ŷ:"Y",Ÿ:"Y",Ẏ:"Y",Ỵ:"Y",Ỳ:"Y",Ƴ:"Y",Ỷ:"Y","Ỿ":"Y",Ȳ:"Y","Ɏ":"Y",Ỹ:"Y",Ї:"YI",Ź:"Z",Ž:"Z",Ẑ:"Z","Ⱬ":"Z",Ż:"Z",Ẓ:"Z",Ȥ:"Z",Ẕ:"Z",Ƶ:"Z",Þ:"TH",IJ:"IJ",Œ:"OE","ᴀ":"A","ᴁ":"AE",ʙ:"B","ᴃ":"B","ᴄ":"C","ᴅ":"D","ᴇ":"E","ꜰ":"F",ɢ:"G",ʛ:"G",ʜ:"H",ɪ:"I",ʁ:"R","ᴊ":"J","ᴋ":"K",ʟ:"L","ᴌ":"L","ᴍ":"M",ɴ:"N","ᴏ":"O",ɶ:"OE","ᴐ":"O","ᴕ":"OU","ᴘ":"P",ʀ:"R","ᴎ":"N","ᴙ":"R","ꜱ":"S","ᴛ":"T","ⱻ":"E","ᴚ":"R","ᴜ":"U","ᴠ":"V","ᴡ":"W",ʏ:"Y","ᴢ":"Z",á:"a",ă:"a",ắ:"a",ặ:"a",ằ:"a",ẳ:"a",ẵ:"a",ǎ:"a",â:"a",ấ:"a",ậ:"a",ầ:"a",ẩ:"a",ẫ:"a",ä:"a",ǟ:"a",ȧ:"a",ǡ:"a",ạ:"a",ȁ:"a",à:"a",ả:"a",ȃ:"a",ā:"a",ą:"a","ᶏ":"a",ẚ:"a",å:"a",ǻ:"a",ḁ:"a","ⱥ":"a",ã:"a","ꜳ":"aa",æ:"ae",ǽ:"ae",ǣ:"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay",ḃ:"b",ḅ:"b",ɓ:"b",ḇ:"b","ᵬ":"b","ᶀ":"b",ƀ:"b",ƃ:"b",ɵ:"o",ć:"c",č:"c",ç:"c",ḉ:"c",ĉ:"c",ɕ:"c",ċ:"c",ƈ:"c","ȼ":"c",ď:"d",ḑ:"d",ḓ:"d","ȡ":"d",ḋ:"d",ḍ:"d",ɗ:"d","ᶑ":"d",ḏ:"d","ᵭ":"d","ᶁ":"d",đ:"d",ɖ:"d",ƌ:"d",ð:"d",ı:"i","ȷ":"j",ɟ:"j",ʄ:"j",dz:"dz",dž:"dz",é:"e",ĕ:"e",ě:"e",ȩ:"e",ḝ:"e",ê:"e",ế:"e",ệ:"e",ề:"e",ể:"e",ễ:"e",ḙ:"e",ë:"e",ė:"e",ẹ:"e",ȅ:"e",è:"e",ẻ:"e",ȇ:"e",ē:"e",ḗ:"e",ḕ:"e","ⱸ":"e",ę:"e","ᶒ":"e","ɇ":"e",ẽ:"e",ḛ:"e","ꝫ":"et",ḟ:"f",ƒ:"f","ᵮ":"f","ᶂ":"f",ǵ:"g",ğ:"g",ǧ:"g",ģ:"g",ĝ:"g",ġ:"g",ɠ:"g",ḡ:"g","ᶃ":"g",ǥ:"g",ḫ:"h",ȟ:"h",ḩ:"h",ĥ:"h","ⱨ":"h",ḧ:"h",ḣ:"h",ḥ:"h",ɦ:"h",ẖ:"h",ħ:"h",ƕ:"hv",í:"i",ĭ:"i",ǐ:"i",î:"i",ï:"i",ḯ:"i",ị:"i",ȉ:"i",ì:"i",ỉ:"i",ȋ:"i",ī:"i",į:"i","ᶖ":"i",ɨ:"i",ĩ:"i",ḭ:"i",і:"i","ꝺ":"d","ꝼ":"f","ᵹ":"g","ꞃ":"r","ꞅ":"s","ꞇ":"t","ꝭ":"is",ǰ:"j",ĵ:"j",ʝ:"j","ɉ":"j",ḱ:"k",ǩ:"k",ķ:"k","ⱪ":"k","ꝃ":"k",ḳ:"k",ƙ:"k",ḵ:"k","ᶄ":"k","ꝁ":"k","ꝅ":"k",ĺ:"l",ƚ:"l",ɬ:"l",ľ:"l",ļ:"l",ḽ:"l","ȴ":"l",ḷ:"l",ḹ:"l","ⱡ":"l","ꝉ":"l",ḻ:"l",ŀ:"l",ɫ:"l","ᶅ":"l",ɭ:"l",ł:"l",lj:"lj",ſ:"s","ẜ":"s",ẛ:"s","ẝ":"s",ḿ:"m",ṁ:"m",ṃ:"m",ɱ:"m","ᵯ":"m","ᶆ":"m",ń:"n",ň:"n",ņ:"n",ṋ:"n","ȵ":"n",ṅ:"n",ṇ:"n",ǹ:"n",ɲ:"n",ṉ:"n",ƞ:"n","ᵰ":"n","ᶇ":"n",ɳ:"n",ñ:"n",nj:"nj",ó:"o",ŏ:"o",ǒ:"o",ô:"o",ố:"o",ộ:"o",ồ:"o",ổ:"o",ỗ:"o",ö:"o",ȫ:"o",ȯ:"o",ȱ:"o",ọ:"o",ő:"o",ȍ:"o",ò:"o",ỏ:"o",ơ:"o",ớ:"o",ợ:"o",ờ:"o",ở:"o",ỡ:"o",ȏ:"o","ꝋ":"o","ꝍ":"o","ⱺ":"o",ō:"o",ṓ:"o",ṑ:"o",ǫ:"o",ǭ:"o",ø:"o",ǿ:"o",õ:"o",ṍ:"o",ṏ:"o",ȭ:"o",ƣ:"oi","ꝏ":"oo",ɛ:"e","ᶓ":"e",ɔ:"o","ᶗ":"o",ȣ:"ou",ṕ:"p",ṗ:"p","ꝓ":"p",ƥ:"p","ᵱ":"p","ᶈ":"p","ꝕ":"p","ᵽ":"p","ꝑ":"p","ꝙ":"q",ʠ:"q","ɋ":"q","ꝗ":"q",ŕ:"r",ř:"r",ŗ:"r",ṙ:"r",ṛ:"r",ṝ:"r",ȑ:"r",ɾ:"r","ᵳ":"r",ȓ:"r",ṟ:"r",ɼ:"r","ᵲ":"r","ᶉ":"r","ɍ":"r",ɽ:"r","ↄ":"c","ꜿ":"c",ɘ:"e",ɿ:"r",ś:"s",ṥ:"s",š:"s",ṧ:"s",ş:"s",ŝ:"s",ș:"s",ṡ:"s",ṣ:"s",ṩ:"s",ʂ:"s","ᵴ":"s","ᶊ":"s","ȿ":"s",ɡ:"g","ᴑ":"o","ᴓ":"o","ᴝ":"u",ť:"t",ţ:"t",ṱ:"t",ț:"t","ȶ":"t",ẗ:"t","ⱦ":"t",ṫ:"t",ṭ:"t",ƭ:"t",ṯ:"t","ᵵ":"t",ƫ:"t",ʈ:"t",ŧ:"t","ᵺ":"th",ɐ:"a","ᴂ":"ae",ǝ:"e","ᵷ":"g",ɥ:"h","ʮ":"h","ʯ":"h","ᴉ":"i",ʞ:"k","ꞁ":"l",ɯ:"m",ɰ:"m","ᴔ":"oe",ɹ:"r",ɻ:"r",ɺ:"r","ⱹ":"r",ʇ:"t",ʌ:"v",ʍ:"w",ʎ:"y","ꜩ":"tz",ú:"u",ŭ:"u",ǔ:"u",û:"u",ṷ:"u",ü:"u",ǘ:"u",ǚ:"u",ǜ:"u",ǖ:"u",ṳ:"u",ụ:"u",ű:"u",ȕ:"u",ù:"u",ủ:"u",ư:"u",ứ:"u",ự:"u",ừ:"u",ử:"u",ữ:"u",ȗ:"u",ū:"u",ṻ:"u",ų:"u","ᶙ":"u",ů:"u",ũ:"u",ṹ:"u",ṵ:"u","ᵫ":"ue","ꝸ":"um","ⱴ":"v","ꝟ":"v",ṿ:"v",ʋ:"v","ᶌ":"v","ⱱ":"v",ṽ:"v","ꝡ":"vy",ẃ:"w",ŵ:"w",ẅ:"w",ẇ:"w",ẉ:"w",ẁ:"w","ⱳ":"w",ẘ:"w",ẍ:"x",ẋ:"x","ᶍ":"x",ý:"y",ŷ:"y",ÿ:"y",ẏ:"y",ỵ:"y",ỳ:"y",ƴ:"y",ỷ:"y","ỿ":"y",ȳ:"y",ẙ:"y","ɏ":"y",ỹ:"y",ї:"yi",ź:"z",ž:"z",ẑ:"z",ʑ:"z","ⱬ":"z",ż:"z",ẓ:"z",ȥ:"z",ẕ:"z","ᵶ":"z","ᶎ":"z",ʐ:"z",ƶ:"z","ɀ":"z",þ:"th",ff:"ff",ffi:"ffi",ffl:"ffl",fi:"fi",fl:"fl",ij:"ij",œ:"oe",st:"st","ₐ":"a","ₑ":"e","ᵢ":"i","ⱼ":"j","ₒ":"o","ᵣ":"r","ᵤ":"u","ᵥ":"v","ₓ":"x",Ё:"YO",Й:"I",Ц:"TS",У:"U",К:"K",Е:"E",Н:"N",Г:"G",Ґ:"G",Ш:"SH",Щ:"SCH",З:"Z",Х:"H",Ъ:"'",ё:"yo",й:"i",ц:"ts",у:"u",к:"k",е:"e",н:"n",г:"g",ґ:"g",ш:"sh",щ:"sch",з:"z",х:"h",ъ:"'",Ф:"F",Ы:"I",В:"V",А:"a",П:"P",Р:"R",О:"O",Л:"L",Д:"D",Ж:"ZH",Э:"E",ф:"f",ы:"i",в:"v",а:"a",п:"p",р:"r",о:"o",л:"l",д:"d",ж:"zh",э:"e",Я:"Ya",Ч:"CH",С:"S",М:"M",И:"I",Т:"T",Ь:"'",Б:"B",Ю:"YU",я:"ya",ч:"ch",с:"s",м:"m",и:"i",т:"t",ь:"'",б:"b",ю:"yu"};function Vg(){return Vg=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},Vg.apply(null,arguments)}function OE(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 wm,ew;function $F(){if(ew)return wm;ew=1;var e=function(t,n,r,i,a,o,s,l){if(process.env.NODE_ENV!=="production"&&n===void 0)throw new Error("invariant requires an error message argument");if(!t){var c;if(n===void 0)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,i,a,o,s,l],d=0;c=new Error(n.replace(/%s/g,function(){return u[d++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}};return wm=e,wm}var SF=$F();const tw=hh(SF);function nw(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function EF(e){var t=kF(e,"string");return typeof t=="symbol"?t:String(t)}function kF(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 TF(e,t,n){var r=h.useRef(e!==void 0),i=h.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,h.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 ME(e,t){return Object.keys(t).reduce(function(n,r){var i,a=n,o=a[nw(r)],s=a[r],l=OE(a,[nw(r),r].map(EF)),c=t[r],u=TF(s,o,e[c]),d=u[0],f=u[1];return Vg({},l,(i={},i[r]=d,i[c]=f,i))},e)}function lu(e){return e&&e.ownerDocument||document}const Us=!!(typeof window<"u"&&window.document&&window.document.createElement);var qg=!1,Yg=!1;try{var _m={get passive(){return qg=!0},get once(){return Yg=qg=!0}};Us&&(window.addEventListener("test",_m,_m),window.removeEventListener("test",_m,!0))}catch{}function Z0(e,t,n,r){if(r&&typeof r!="boolean"&&!Yg){var i=r.once,a=r.capture,o=n;!Yg&&i&&(o=n.__once||function s(l){this.removeEventListener(t,s,a),n.call(this,l)},n.__once=o),e.addEventListener(t,o,qg?r:a)}e.addEventListener(t,n,r)}function Gg(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 ia(e,t,n,r){return Z0(e,t,n,r),function(){Gg(e,t,n,r)}}const rw=e=>!e||typeof e=="function"?e:t=>{e.current=t};function OF(e,t){const n=rw(e),r=rw(t);return i=>{n&&n(i),r&&r(i)}}function cu(e,t){return h.useMemo(()=>OF(e,t),[e,t])}function MF(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e},[e]),t}function tf(e){const t=MF(e);return h.useCallback(function(...n){return t.current&&t.current(...n)},[t])}function AF(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e},[e]),t}function zn(e){const t=AF(e);return h.useCallback(function(...n){return t.current&&t.current(...n)},[t])}function AE(){const e=h.useRef(!0),t=h.useRef(()=>e.current);return h.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function RE(e){const t=h.useRef(null);return h.useEffect(()=>{t.current=e}),t.current}var RF=Function.prototype.bind.call(Function.prototype.call,[].slice);function Xi(e,t){return RF(e.querySelectorAll(t))}function nf(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}const jF="data-rr-ui-";function X0(e){return`${jF}${e}`}const jE=h.createContext(Us?window:void 0);jE.Provider;function bh(){return h.useContext(jE)}const DF=["as","disabled"];function NF(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 IF(e){return!e||e.trim()==="#"}function Q0({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"&&IF(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 DE=ie.forwardRef((e,t)=>{let{as:n,disabled:r}=e,i=NF(e,DF);const[a,{tagName:o}]=Q0(Object.assign({tagName:n,disabled:r},i));return b.jsx(o,Object.assign({},i,a,{ref:t}))});DE.displayName="Button";const J0=ie.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:r,active:i=!1,disabled:a=!1,className:o,...s},l)=>{const c=Et(t,"btn"),[u,{tagName:d}]=Q0({tagName:e,disabled:a,...s});return b.jsx(d,{...u,...s,ref:l,disabled:a,className:me(o,c,i&&"active",n&&`${c}-${n}`,r&&`${c}-${r}`,s.href&&a&&"disabled")})});J0.displayName="Button";function PF(){return h.useState(null)}function LF(e,t,n,r=!1){const i=zn(n);h.useEffect(()=>{const a=typeof e=="function"?e():e;return a.addEventListener(t,i,r),()=>a.removeEventListener(t,i,r)},[e])}const FF=["onKeyDown"];function BF(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 zF(e){return!e||e.trim()==="#"}const NE=ie.forwardRef((e,t)=>{let{onKeyDown:n}=e,r=BF(e,FF);const[i]=Q0(Object.assign({tagName:"a"},r)),a=zn(o=>{i.onKeyDown(o),n==null||n(o)});return zF(r.href)||r.role==="button"?b.jsx("a",Object.assign({ref:t},r,i,{onKeyDown:a})):b.jsx("a",Object.assign({ref:t},r,{onKeyDown:n}))});NE.displayName="Anchor";function WF(e,t,n){const r=h.useRef(e!==void 0),[i,a]=h.useState(t),o=e!==void 0,s=r.current;return r.current=o,!o&&s&&i!==t&&a(t),[o?e:i,h.useCallback((...l)=>{const[c,...u]=l;let d=n==null?void 0:n(c,...u);return a(c),d},[n])]}function UF(){const[,e]=h.useReducer(t=>t+1,0);return e}const yh=ie.createContext(null);var iw=Object.prototype.hasOwnProperty;function aw(e,t,n){for(n of e.keys())if(Hl(n,t))return n}function Hl(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--&&Hl(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=aw(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=aw(t,i),!i)||!Hl(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(iw.call(e,n)&&++r&&!iw.call(t,n)||!(n in t)||!Hl(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function HF(e){const t=AE();return[e[0],h.useCallback(n=>{if(t())return e[1](n)},[t,e[1]])]}var tr="top",_r="bottom",Cr="right",nr="left",eb="auto",uu=[tr,_r,Cr,nr],ks="start",wc="end",VF="clippingParents",IE="viewport",wl="popper",qF="reference",ow=uu.reduce(function(e,t){return e.concat([t+"-"+ks,t+"-"+wc])},[]),PE=[].concat(uu,[eb]).reduce(function(e,t){return e.concat([t,t+"-"+ks,t+"-"+wc])},[]),YF="beforeRead",GF="read",KF="afterRead",ZF="beforeMain",XF="main",QF="afterMain",JF="beforeWrite",eB="write",tB="afterWrite",nB=[YF,GF,KF,ZF,XF,QF,JF,eB,tB];function Kr(e){return e.split("-")[0]}function ur(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function uo(e){var t=ur(e).Element;return e instanceof t||e instanceof Element}function Zr(e){var t=ur(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function tb(e){if(typeof ShadowRoot>"u")return!1;var t=ur(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var eo=Math.max,rf=Math.min,Ts=Math.round;function Kg(){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 LE(){return!/^((?!chrome|android).)*safari/i.test(Kg())}function Os(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&Zr(e)&&(i=e.offsetWidth>0&&Ts(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Ts(r.height)/e.offsetHeight||1);var o=uo(e)?ur(e):window,s=o.visualViewport,l=!LE()&&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 nb(e){var t=Os(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 FE(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&tb(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function va(e){return e?(e.nodeName||"").toLowerCase():null}function Pi(e){return ur(e).getComputedStyle(e)}function rB(e){return["table","td","th"].indexOf(va(e))>=0}function $a(e){return((uo(e)?e.ownerDocument:e.document)||window.document).documentElement}function xh(e){return va(e)==="html"?e:e.assignedSlot||e.parentNode||(tb(e)?e.host:null)||$a(e)}function sw(e){return!Zr(e)||Pi(e).position==="fixed"?null:e.offsetParent}function iB(e){var t=/firefox/i.test(Kg()),n=/Trident/i.test(Kg());if(n&&Zr(e)){var r=Pi(e);if(r.position==="fixed")return null}var i=xh(e);for(tb(i)&&(i=i.host);Zr(i)&&["html","body"].indexOf(va(i))<0;){var a=Pi(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 du(e){for(var t=ur(e),n=sw(e);n&&rB(n)&&Pi(n).position==="static";)n=sw(n);return n&&(va(n)==="html"||va(n)==="body"&&Pi(n).position==="static")?t:n||iB(e)||t}function rb(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Vl(e,t,n){return eo(e,rf(t,n))}function aB(e,t,n){var r=Vl(e,t,n);return r>n?n:r}function BE(){return{top:0,right:0,bottom:0,left:0}}function zE(e){return Object.assign({},BE(),e)}function WE(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var oB=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,zE(typeof e!="number"?e:WE(e,uu))};function sB(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=Kr(n.placement),l=rb(s),c=[nr,Cr].indexOf(s)>=0,u=c?"height":"width";if(!(!a||!o)){var d=oB(i.padding,n),f=nb(a),p=l==="y"?tr:nr,g=l==="y"?_r:Cr,m=n.rects.reference[u]+n.rects.reference[l]-o[l]-n.rects.popper[u],v=o[l]-n.rects.reference[l],w=du(a),_=w?l==="y"?w.clientHeight||0:w.clientWidth||0:0,y=m/2-v/2,C=d[p],x=_-f[u]-d[g],$=_/2-f[u]/2+y,E=Vl(C,$,x),O=l;n.modifiersData[r]=(t={},t[O]=E,t.centerOffset=E-$,t)}}function lB(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)||FE(t.elements.popper,i)&&(t.elements.arrow=i))}const cB={name:"arrow",enabled:!0,phase:"main",fn:sB,effect:lB,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ms(e){return e.split("-")[1]}var uB={top:"auto",right:"auto",bottom:"auto",left:"auto"};function dB(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Ts(n*i)/i||0,y:Ts(r*i)/i||0}}function lw(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,p=f===void 0?0:f,g=o.y,m=g===void 0?0:g,v=typeof u=="function"?u({x:p,y:m}):{x:p,y:m};p=v.x,m=v.y;var w=o.hasOwnProperty("x"),_=o.hasOwnProperty("y"),y=nr,C=tr,x=window;if(c){var $=du(n),E="clientHeight",O="clientWidth";if($===ur(n)&&($=$a(n),Pi($).position!=="static"&&s==="absolute"&&(E="scrollHeight",O="scrollWidth")),$=$,i===tr||(i===nr||i===Cr)&&a===wc){C=_r;var k=d&&$===x&&x.visualViewport?x.visualViewport.height:$[E];m-=k-r.height,m*=l?1:-1}if(i===nr||(i===tr||i===_r)&&a===wc){y=Cr;var j=d&&$===x&&x.visualViewport?x.visualViewport.width:$[O];p-=j-r.width,p*=l?1:-1}}var S=Object.assign({position:s},c&&uB),T=u===!0?dB({x:p,y:m},ur(n)):{x:p,y:m};if(p=T.x,m=T.y,l){var R;return Object.assign({},S,(R={},R[C]=_?"0":"",R[y]=w?"0":"",R.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",R))}return Object.assign({},S,(t={},t[C]=_?m+"px":"",t[y]=w?p+"px":"",t.transform="",t))}function fB(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:Kr(t.placement),variation:Ms(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,lw(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,lw(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 hB={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:fB,data:{}};var Ku={passive:!0};function pB(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=ur(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(u){u.addEventListener("scroll",n.update,Ku)}),s&&l.addEventListener("resize",n.update,Ku),function(){a&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Ku)}),s&&l.removeEventListener("resize",n.update,Ku)}}const mB={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:pB,data:{}};var gB={left:"right",right:"left",bottom:"top",top:"bottom"};function Cd(e){return e.replace(/left|right|bottom|top/g,function(t){return gB[t]})}var vB={start:"end",end:"start"};function cw(e){return e.replace(/start|end/g,function(t){return vB[t]})}function ib(e){var t=ur(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function ab(e){return Os($a(e)).left+ib(e).scrollLeft}function bB(e,t){var n=ur(e),r=$a(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;var c=LE();(c||!c&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:a,height:o,x:s+ab(e),y:l}}function yB(e){var t,n=$a(e),r=ib(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=eo(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=eo(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+ab(e),l=-r.scrollTop;return Pi(i||n).direction==="rtl"&&(s+=eo(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:l}}function ob(e){var t=Pi(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function UE(e){return["html","body","#document"].indexOf(va(e))>=0?e.ownerDocument.body:Zr(e)&&ob(e)?e:UE(xh(e))}function ql(e,t){var n;t===void 0&&(t=[]);var r=UE(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=ur(r),o=i?[a].concat(a.visualViewport||[],ob(r)?r:[]):r,s=t.concat(o);return i?s:s.concat(ql(xh(o)))}function Zg(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function xB(e,t){var n=Os(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 uw(e,t,n){return t===IE?Zg(bB(e,n)):uo(t)?xB(t,n):Zg(yB($a(e)))}function wB(e){var t=ql(xh(e)),n=["absolute","fixed"].indexOf(Pi(e).position)>=0,r=n&&Zr(e)?du(e):e;return uo(r)?t.filter(function(i){return uo(i)&&FE(i,r)&&va(i)!=="body"}):[]}function _B(e,t,n,r){var i=t==="clippingParents"?wB(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(l,c){var u=uw(e,c,r);return l.top=eo(u.top,l.top),l.right=rf(u.right,l.right),l.bottom=rf(u.bottom,l.bottom),l.left=eo(u.left,l.left),l},uw(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 HE(e){var t=e.reference,n=e.element,r=e.placement,i=r?Kr(r):null,a=r?Ms(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case tr:l={x:o,y:t.y-n.height};break;case _r:l={x:o,y:t.y+t.height};break;case Cr:l={x:t.x+t.width,y:s};break;case nr:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=i?rb(i):null;if(c!=null){var u=c==="y"?"height":"width";switch(a){case ks:l[c]=l[c]-(t[u]/2-n[u]/2);break;case wc:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function _c(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?VF:s,c=n.rootBoundary,u=c===void 0?IE:c,d=n.elementContext,f=d===void 0?wl:d,p=n.altBoundary,g=p===void 0?!1:p,m=n.padding,v=m===void 0?0:m,w=zE(typeof v!="number"?v:WE(v,uu)),_=f===wl?qF:wl,y=e.rects.popper,C=e.elements[g?_:f],x=_B(uo(C)?C:C.contextElement||$a(e.elements.popper),l,u,o),$=Os(e.elements.reference),E=HE({reference:$,element:y,placement:i}),O=Zg(Object.assign({},y,E)),k=f===wl?O:$,j={top:x.top-k.top+w.top,bottom:k.bottom-x.bottom+w.bottom,left:x.left-k.left+w.left,right:k.right-x.right+w.right},S=e.modifiersData.offset;if(f===wl&&S){var T=S[i];Object.keys(j).forEach(function(R){var N=[Cr,_r].indexOf(R)>=0?1:-1,D=[tr,_r].indexOf(R)>=0?"y":"x";j[R]+=T[D]*N})}return j}function CB(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?PE:l,u=Ms(r),d=u?s?ow:ow.filter(function(g){return Ms(g)===u}):uu,f=d.filter(function(g){return c.indexOf(g)>=0});f.length===0&&(f=d);var p=f.reduce(function(g,m){return g[m]=_c(e,{placement:m,boundary:i,rootBoundary:a,padding:o})[Kr(m)],g},{});return Object.keys(p).sort(function(g,m){return p[g]-p[m]})}function $B(e){if(Kr(e)===eb)return[];var t=Cd(e);return[cw(e),t,cw(t)]}function SB(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,p=n.flipVariations,g=p===void 0?!0:p,m=n.allowedAutoPlacements,v=t.options.placement,w=Kr(v),_=w===v,y=l||(_||!g?[Cd(v)]:$B(v)),C=[v].concat(y).reduce(function(K,Z){return K.concat(Kr(Z)===eb?CB(t,{placement:Z,boundary:u,rootBoundary:d,padding:c,flipVariations:g,allowedAutoPlacements:m}):Z)},[]),x=t.rects.reference,$=t.rects.popper,E=new Map,O=!0,k=C[0],j=0;j<C.length;j++){var S=C[j],T=Kr(S),R=Ms(S)===ks,N=[tr,_r].indexOf(T)>=0,D=N?"width":"height",M=_c(t,{placement:S,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),I=N?R?Cr:nr:R?_r:tr;x[D]>$[D]&&(I=Cd(I));var z=Cd(I),U=[];if(a&&U.push(M[T]<=0),s&&U.push(M[I]<=0,M[z]<=0),U.every(function(K){return K})){k=S,O=!1;break}E.set(S,U)}if(O)for(var P=g?3:1,W=function(K){var Z=C.find(function(ee){var J=E.get(ee);if(J)return J.slice(0,K).every(function(B){return B})});if(Z)return k=Z,"break"},Y=P;Y>0;Y--){var X=W(Y);if(X==="break")break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}}const EB={name:"flip",enabled:!0,phase:"main",fn:SB,requiresIfExists:["offset"],data:{_skip:!1}};function dw(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 fw(e){return[tr,Cr,_r,nr].some(function(t){return e[t]>=0})}function kB(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=_c(t,{elementContext:"reference"}),s=_c(t,{altBoundary:!0}),l=dw(o,r),c=dw(s,i,a),u=fw(l),d=fw(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 TB={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:kB};function OB(e,t,n){var r=Kr(e),i=[nr,tr].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,[nr,Cr].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function MB(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=PE.reduce(function(u,d){return u[d]=OB(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 AB={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:MB};function RB(e){var t=e.state,n=e.name;t.modifiersData[n]=HE({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const jB={name:"popperOffsets",enabled:!0,phase:"read",fn:RB,data:{}};function DB(e){return e==="x"?"y":"x"}function NB(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,p=f===void 0?!0:f,g=n.tetherOffset,m=g===void 0?0:g,v=_c(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),w=Kr(t.placement),_=Ms(t.placement),y=!_,C=rb(w),x=DB(C),$=t.modifiersData.popperOffsets,E=t.rects.reference,O=t.rects.popper,k=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,j=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if($){if(a){var R,N=C==="y"?tr:nr,D=C==="y"?_r:Cr,M=C==="y"?"height":"width",I=$[C],z=I+v[N],U=I-v[D],P=p?-O[M]/2:0,W=_===ks?E[M]:O[M],Y=_===ks?-O[M]:-E[M],X=t.elements.arrow,K=p&&X?nb(X):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:BE(),ee=Z[N],J=Z[D],B=Vl(0,E[M],K[M]),L=y?E[M]/2-P-B-ee-j.mainAxis:W-B-ee-j.mainAxis,F=y?-E[M]/2+P+B+J+j.mainAxis:Y+B+J+j.mainAxis,H=t.elements.arrow&&du(t.elements.arrow),A=H?C==="y"?H.clientTop||0:H.clientLeft||0:0,Q=(R=S==null?void 0:S[C])!=null?R:0,G=I+L-Q-A,q=I+F-Q,le=Vl(p?rf(z,G):z,I,p?eo(U,q):U);$[C]=le,T[C]=le-I}if(s){var ne,re=C==="x"?tr:nr,se=C==="x"?_r:Cr,fe=$[x],_e=x==="y"?"height":"width",ye=fe+v[re],xe=fe-v[se],Me=[tr,nr].indexOf(w)!==-1,ue=(ne=S==null?void 0:S[x])!=null?ne:0,oe=Me?ye:fe-E[_e]-O[_e]-ue+j.altAxis,be=Me?fe+E[_e]+O[_e]-ue-j.altAxis:xe,Fe=p&&Me?aB(oe,fe,be):Vl(p?oe:ye,fe,p?be:xe);$[x]=Fe,T[x]=Fe-fe}t.modifiersData[r]=T}}const IB={name:"preventOverflow",enabled:!0,phase:"main",fn:NB,requiresIfExists:["offset"]};function PB(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function LB(e){return e===ur(e)||!Zr(e)?ib(e):PB(e)}function FB(e){var t=e.getBoundingClientRect(),n=Ts(t.width)/e.offsetWidth||1,r=Ts(t.height)/e.offsetHeight||1;return n!==1||r!==1}function BB(e,t,n){n===void 0&&(n=!1);var r=Zr(t),i=Zr(t)&&FB(t),a=$a(t),o=Os(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((va(t)!=="body"||ob(a))&&(s=LB(t)),Zr(t)?(l=Os(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=ab(a))),{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function zB(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 WB(e){var t=zB(e);return nB.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function UB(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function HB(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 hw={placement:"bottom",modifiers:[],strategy:"absolute"};function pw(){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 VB(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?hw:i;return function(o,s,l){l===void 0&&(l=a);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},hw,a),modifiersData:{},elements:{reference:o,popper:s},attributes:{},styles:{}},u=[],d=!1,f={state:c,setOptions:function(m){var v=typeof m=="function"?m(c.options):m;g(),c.options=Object.assign({},a,c.options,v),c.scrollParents={reference:uo(o)?ql(o):o.contextElement?ql(o.contextElement):[],popper:ql(s)};var w=WB(HB([].concat(r,c.options.modifiers)));return c.orderedModifiers=w.filter(function(_){return _.enabled}),p(),f.update()},forceUpdate:function(){if(!d){var m=c.elements,v=m.reference,w=m.popper;if(pw(v,w)){c.rects={reference:BB(v,du(w),c.options.strategy==="fixed"),popper:nb(w)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(O){return c.modifiersData[O.name]=Object.assign({},O.data)});for(var _=0;_<c.orderedModifiers.length;_++){if(c.reset===!0){c.reset=!1,_=-1;continue}var y=c.orderedModifiers[_],C=y.fn,x=y.options,$=x===void 0?{}:x,E=y.name;typeof C=="function"&&(c=C({state:c,options:$,name:E,instance:f})||c)}}}},update:UB(function(){return new Promise(function(m){f.forceUpdate(),m(c)})}),destroy:function(){g(),d=!0}};if(!pw(o,s))return f;f.setOptions(l).then(function(m){!d&&l.onFirstUpdate&&l.onFirstUpdate(m)});function p(){c.orderedModifiers.forEach(function(m){var v=m.name,w=m.options,_=w===void 0?{}:w,y=m.effect;if(typeof y=="function"){var C=y({state:c,name:v,instance:f,options:_}),x=function(){};u.push(C||x)}})}function g(){u.forEach(function(m){return m()}),u=[]}return f}}const qB=VB({defaultModifiers:[TB,jB,hB,mB,AB,EB,IB,cB]}),YB=["enabled","placement","strategy","modifiers"];function GB(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 KB={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},ZB={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)}}},XB=[];function QB(e,t,n={}){let{enabled:r=!0,placement:i="bottom",strategy:a="absolute",modifiers:o=XB}=n,s=GB(n,YB);const l=h.useRef(o),c=h.useRef(),u=h.useCallback(()=>{var v;(v=c.current)==null||v.update()},[]),d=h.useCallback(()=>{var v;(v=c.current)==null||v.forceUpdate()},[]),[f,p]=HF(h.useState({placement:i,update:u,forceUpdate:d,attributes:{},styles:{popper:{},arrow:{}}})),g=h.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:v})=>{const w={},_={};Object.keys(v.elements).forEach(y=>{w[y]=v.styles[y],_[y]=v.attributes[y]}),p({state:v,styles:w,attributes:_,update:u,forceUpdate:d,placement:v.placement})}}),[u,d,p]),m=h.useMemo(()=>(Hl(l.current,o)||(l.current=o),l.current),[o]);return h.useEffect(()=>{!c.current||!r||c.current.setOptions({placement:i,strategy:a,modifiers:[...m,g,KB]})},[a,i,g,r,m]),h.useEffect(()=>{if(!(!r||e==null||t==null))return c.current=qB(e,t,Object.assign({},s,{placement:i,strategy:a,modifiers:[...m,ZB,g]})),()=>{c.current!=null&&(c.current.destroy(),c.current=void 0,p(v=>Object.assign({},v,{attributes:{},styles:{popper:{}}})))}},[r,e,t]),f}const mw=()=>{};function JB(e){return e.button===0}function ez(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const Cm=e=>e&&("current"in e?e.current:e),gw={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function tz(e,t=mw,{disabled:n,clickTrigger:r="click"}={}){const i=h.useRef(!1),a=h.useRef(!1),o=h.useCallback(c=>{const u=Cm(e);gh(!!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||ez(c)||!JB(c)||!!nf(u,c.target)||a.current,a.current=!1},[e]),s=zn(c=>{const u=Cm(e);u&&nf(u,c.target)?a.current=!0:a.current=!1}),l=zn(c=>{i.current||t(c)});h.useEffect(()=>{var c,u;if(n||e==null)return;const d=lu(Cm(e)),f=d.defaultView||window;let p=(c=f.event)!=null?c:(u=f.parent)==null?void 0:u.event,g=null;gw[r]&&(g=ia(d,gw[r],s,!0));const m=ia(d,r,o,!0),v=ia(d,r,_=>{if(_===p){p=void 0;return}l(_)});let w=[];return"ontouchstart"in d.documentElement&&(w=[].slice.call(d.body.children).map(_=>ia(_,"mousemove",mw))),()=>{g==null||g(),m(),v(),w.forEach(_=>_())}},[e,n,r,o,s,l])}function nz(e){const t={};return Array.isArray(e)?(e==null||e.forEach(n=>{t[n.name]=n}),t):e||t}function rz(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function iz({enabled:e,enableEvents:t,placement:n,flip:r,offset:i,fixed:a,containerPadding:o,arrowElement:s,popperConfig:l={}}){var c,u,d,f,p;const g=nz(l.modifiers);return Object.assign({},l,{placement:n,enabled:e,strategy:a?"fixed":l.strategy,modifiers:rz(Object.assign({},g,{eventListeners:{enabled:t,options:(c=g.eventListeners)==null?void 0:c.options},preventOverflow:Object.assign({},g.preventOverflow,{options:o?Object.assign({padding:o},(u=g.preventOverflow)==null?void 0:u.options):(d=g.preventOverflow)==null?void 0:d.options}),offset:{options:Object.assign({offset:i},(f=g.offset)==null?void 0:f.options)},arrow:Object.assign({},g.arrow,{enabled:!!s,options:Object.assign({},(p=g.arrow)==null?void 0:p.options,{element:s})}),flip:Object.assign({enabled:!!r},g.flip)}))})}const az=["children","usePopper"];function oz(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 sz=()=>{};function VE(e={}){const t=h.useContext(yh),[n,r]=PF(),i=h.useRef(!1),{flip:a,offset:o,rootCloseEvent:s,fixed:l=!1,placement:c,popperConfig:u={},enableEventListeners:d=!0,usePopper:f=!!t}=e,p=(t==null?void 0:t.show)==null?!!e.show:t.show;p&&!i.current&&(i.current=!0);const g=$=>{t==null||t.toggle(!1,$)},{placement:m,setMenu:v,menuElement:w,toggleElement:_}=t||{},y=QB(_,w,iz({placement:c||m||"bottom-start",enabled:f,enableEvents:d??p,offset:o,flip:a,fixed:l,arrowElement:n,popperConfig:u})),C=Object.assign({ref:v||sz,"aria-labelledby":_==null?void 0:_.id},y.attributes.popper,{style:y.styles.popper}),x={show:p,placement:m,hasShown:i.current,toggle:t==null?void 0:t.toggle,popper:f?y:null,arrowProps:f?Object.assign({ref:r},y.attributes.arrow,{style:y.styles.arrow}):{}};return tz(w,g,{clickTrigger:s,disabled:!p}),[C,x]}function qE(e){let{children:t,usePopper:n=!0}=e,r=oz(e,az);const[i,a]=VE(Object.assign({},r,{usePopper:n}));return b.jsx(b.Fragment,{children:t(i,a)})}qE.displayName="DropdownMenu";const af={prefix:String(Math.round(Math.random()*1e10)),current:0},YE=h.createContext(af),lz=h.createContext(!1);let cz=!!(typeof window<"u"&&window.document&&window.document.createElement),$m=new WeakMap;function uz(e=!1){let t=h.useContext(YE),n=h.useRef(null);if(n.current===null&&!e){var r,i;let a=(i=h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(a){let o=$m.get(a);o==null?$m.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==o.state&&(t.current=o.id,$m.delete(a))}n.current=++t.current}return n.current}function dz(e){let t=h.useContext(YE);t===af&&!cz&&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=uz(!!e),r=t===af&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function fz(e){let t=h.useId(),[n]=h.useState(vz()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${af.prefix}`;return e||`${r}-${t}`}const hz=typeof h.useId=="function"?fz:dz;function pz(){return!1}function mz(){return!0}function gz(e){return()=>{}}function vz(){return typeof h.useSyncExternalStore=="function"?h.useSyncExternalStore(gz,pz,mz):h.useContext(lz)}const GE=e=>{var t;return((t=e.getAttribute("role"))==null?void 0:t.toLowerCase())==="menu"},vw=()=>{};function KE(){const e=hz(),{show:t=!1,toggle:n=vw,setToggle:r,menuElement:i}=h.useContext(yh)||{},a=h.useCallback(s=>{n(!t,s)},[t,n]),o={id:e,ref:r||vw,onClick:a,"aria-expanded":!!t};return i&&GE(i)&&(o["aria-haspopup"]=!0),[o,{show:t,toggle:n}]}function ZE({children:e}){const[t,n]=KE();return b.jsx(b.Fragment,{children:e(t,n)})}ZE.displayName="DropdownToggle";const Xg=ie.createContext(null),bw=(e,t=null)=>e!=null?String(e):t||null,XE=ie.createContext(null);XE.displayName="NavContext";const bz=["eventKey","disabled","onClick","active","as"];function yz(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 QE({key:e,href:t,active:n,disabled:r,onClick:i}){const a=h.useContext(Xg),o=h.useContext(XE),{activeKey:s}=o||{},l=bw(e,t),c=n==null&&e!=null?bw(s)===l:n;return[{onClick:zn(u=>{r||(i==null||i(u),a&&!u.isPropagationStopped()&&a(l,u))}),"aria-disabled":r||void 0,"aria-selected":c,[X0("dropdown-item")]:""},{isActive:c}]}const JE=ie.forwardRef((e,t)=>{let{eventKey:n,disabled:r,onClick:i,active:a,as:o=DE}=e,s=yz(e,bz);const[l]=QE({key:n,href:s.href,disabled:r,onClick:i,active:a});return b.jsx(o,Object.assign({},s,{ref:t},l))});JE.displayName="DropdownItem";function yw(){const e=UF(),t=h.useRef(null),n=h.useCallback(r=>{t.current=r,e()},[e]);return[t,n]}function fu({defaultShow:e,show:t,onSelect:n,onToggle:r,itemSelector:i=`* [${X0("dropdown-item")}]`,focusFirstItemOnShow:a,placement:o="bottom-start",children:s}){const l=bh(),[c,u]=WF(t,e,r),[d,f]=yw(),p=d.current,[g,m]=yw(),v=g.current,w=RE(c),_=h.useRef(null),y=h.useRef(!1),C=h.useContext(Xg),x=h.useCallback((S,T,R=T==null?void 0:T.type)=>{u(S,{originalEvent:T,source:R})},[u]),$=zn((S,T)=>{n==null||n(S,T),x(!1,T,"select"),T.isPropagationStopped()||(C==null||C(S,T))}),E=h.useMemo(()=>({toggle:x,placement:o,show:c,menuElement:p,toggleElement:v,setMenu:f,setToggle:m}),[x,o,c,p,v,f,m]);p&&w&&!c&&(y.current=p.contains(p.ownerDocument.activeElement));const O=zn(()=>{v&&v.focus&&v.focus()}),k=zn(()=>{const S=_.current;let T=a;if(T==null&&(T=d.current&&GE(d.current)?"keyboard":!1),T===!1||T==="keyboard"&&!/^key.+$/.test(S))return;const R=Xi(d.current,i)[0];R&&R.focus&&R.focus()});h.useEffect(()=>{c?k():y.current&&(y.current=!1,O())},[c,y,O,k]),h.useEffect(()=>{_.current=null});const j=(S,T)=>{if(!d.current)return null;const R=Xi(d.current,i);let N=R.indexOf(S)+T;return N=Math.max(0,Math.min(N,R.length)),R[N]};return LF(h.useCallback(()=>l.document,[l]),"keydown",S=>{var T,R;const{key:N}=S,D=S.target,M=(T=d.current)==null?void 0:T.contains(D),I=(R=g.current)==null?void 0:R.contains(D);if(/input|textarea/i.test(D.tagName)&&(N===" "||N!=="Escape"&&M||N==="Escape"&&D.type==="search")||!M&&!I||N==="Tab"&&(!d.current||!c))return;_.current=S.type;const z={originalEvent:S,source:S.type};switch(N){case"ArrowUp":{const U=j(D,-1);U&&U.focus&&U.focus(),S.preventDefault();return}case"ArrowDown":if(S.preventDefault(),!c)u(!0,z);else{const U=j(D,1);U&&U.focus&&U.focus()}return;case"Tab":Z0(D.ownerDocument,"keyup",U=>{var P;(U.key==="Tab"&&!U.target||!((P=d.current)!=null&&P.contains(U.target)))&&u(!1,z)},{once:!0});break;case"Escape":N==="Escape"&&(S.preventDefault(),S.stopPropagation()),u(!1,z);break}}),b.jsx(Xg.Provider,{value:$,children:b.jsx(yh.Provider,{value:E,children:s})})}fu.displayName="Dropdown";fu.Menu=qE;fu.Toggle=ZE;fu.Item=JE;const sb=ie.createContext({});sb.displayName="DropdownContext";const ek=ie.forwardRef(({className:e,bsPrefix:t,as:n="hr",role:r="separator",...i},a)=>(t=Et(t,"dropdown-divider"),b.jsx(n,{ref:a,className:me(e,t),role:r,...i})));ek.displayName="DropdownDivider";const tk=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",role:r="heading",...i},a)=>(t=Et(t,"dropdown-header"),b.jsx(n,{ref:a,className:me(e,t),role:r,...i})));tk.displayName="DropdownHeader";const nk=ie.forwardRef(({bsPrefix:e,className:t,eventKey:n,disabled:r=!1,onClick:i,active:a,as:o=NE,...s},l)=>{const c=Et(e,"dropdown-item"),[u,d]=QE({key:n,href:s.href,disabled:r,onClick:i,active:a});return b.jsx(o,{...s,...u,ref:l,className:me(t,c,d.isActive&&"active",r&&"disabled")})});nk.displayName="DropdownItem";const rk=ie.forwardRef(({className:e,bsPrefix:t,as:n="span",...r},i)=>(t=Et(t,"dropdown-item-text"),b.jsx(n,{ref:i,className:me(e,t),...r})));rk.displayName="DropdownItemText";const xz=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",wz=typeof document<"u",_z=wz||xz?h.useLayoutEffect:h.useEffect,lb=ie.createContext(null);lb.displayName="InputGroupContext";const ik=ie.createContext(null);ik.displayName="NavbarContext";function ak(e,t){if(process.env.NODE_ENV==="production")return e;const n=h.useCallback(r=>{r==null||!r.isReactComponent||(process.env.NODE_ENV!=="production"?tw(!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`):tw(!1))},[t]);return cu(n,e)}function ok(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 sk=ie.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 p=h.useContext(ik),g=Et(e,"dropdown-menu"),{align:m,drop:v,isRTL:w}=h.useContext(sb);n=n||m;const _=h.useContext(lb),y=[];if(n)if(typeof n=="object"){const S=Object.keys(n);if(process.env.NODE_ENV!=="production"&&gh(S.length===1,"There should only be 1 breakpoint when passing an object to `align`"),S.length){const T=S[0],R=n[T];f=R==="start",y.push(`${g}-${T}-${R}`)}}else n==="end"&&(f=!0);const C=ok(f,v,w),[x,{hasShown:$,popper:E,show:O,toggle:k}]=VE({flip:i,rootCloseEvent:r,show:a,usePopper:!p&&y.length===0,offset:[0,2],popperConfig:l,placement:C});if(x.ref=cu(ak(d,"DropdownMenu"),x.ref),_z(()=>{O&&(E==null||E.update())},[O]),!$&&!o&&!_)return null;typeof s!="string"&&(x.show=O,x.close=()=>k==null?void 0:k(!1),x.align=n);let j=u.style;return E!=null&&E.placement&&(j={...u.style,...x.style},u["x-placement"]=E.placement),b.jsx(s,{...u,...x,style:j,...(y.length||p)&&{"data-bs-popper":"static"},className:me(t,g,O&&"show",f&&`${g}-end`,c&&`${g}-${c}`,...y)})});sk.displayName="DropdownMenu";const lk=ie.forwardRef(({bsPrefix:e,split:t,className:n,childBsPrefix:r,as:i=J0,...a},o)=>{const s=Et(e,"dropdown-toggle"),l=h.useContext(yh);r!==void 0&&(a.bsPrefix=r);const[c]=KE();return c.ref=cu(c.ref,ak(o,"DropdownToggle")),b.jsx(i,{className:me(n,s,t&&`${s}-split`,(l==null?void 0:l.show)&&"show"),...c,...a})});lk.displayName="DropdownToggle";const ck=ie.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,...p}=ME(e,{show:"onToggle"}),g=h.useContext(lb),m=Et(n,"dropdown"),v=gE(),w=$=>f===!1?$==="click":f==="inside"?$!=="rootClose":f==="outside"?$!=="select":!0,_=tf(($,E)=>{var O;!((O=E.originalEvent)==null||(O=O.target)==null)&&O.classList.contains("dropdown-toggle")&&E.source==="mousedown"||(E.originalEvent.currentTarget===document&&(E.source!=="keydown"||E.originalEvent.key==="Escape")&&(E.source="rootClose"),w(E.source)&&(l==null||l($,E)))}),y=ok(o==="end",r,v),C=h.useMemo(()=>({align:o,drop:r,isRTL:v}),[o,r,v]),x={down:m,"down-centered":`${m}-center`,up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return b.jsx(sb.Provider,{value:C,children:b.jsx(fu,{placement:y,show:i,onSelect:s,onToggle:_,focusFirstItemOnShow:c,itemSelector:`.${m}-item:not(.disabled):not(:disabled)`,children:g?p.children:b.jsx(u,{...p,ref:t,className:me(a,i&&"show",x[r])})})})});ck.displayName="Dropdown";const An=Object.assign(ck,{Toggle:lk,Menu:sk,Item:nk,ItemText:rk,Divider:ek,Header:tk}),Cz="_multiselect_krzom_1",$z="_multiselect-menu_krzom_34",Sz="_search-item_krzom_41",Ez="_special-option_krzom_45",Zu={multiselect:Cz,multiselectMenu:$z,searchItem:Sz,specialOption:Ez},xw=10,kz=({column:e,filterValue:t,texts:n})=>{var g,m,v;const[r,i]=h.useState(""),a=h.useMemo(()=>Array.from(e.getFacetedUniqueValues().keys()).map(w=>w===!0||w===!1?w:(w==null?void 0:w.toString())??"").sort(),[e]),o=h.useMemo(()=>a.some(w=>w===""||w===null||w===void 0),[a]),s=h.useMemo(()=>(t==null?void 0:t.split(";"))??[],[t]),l=w=>{const _=w===""?[]:s.includes(w)?s.filter(y=>y!==w):[...s,w];e.setFilterValue(!_||_.length<1?"":_.join(";"))},c=h.useMemo(()=>{const w=[{value:"",label:n.multiselect.all||"vše",specialOption:!0}];return o&&w.push({value:"no_value_filter_value",label:n.multiselect.noValue||"bez hodnoty",specialOption:!0}),a.forEach(_=>{w.push({value:(_==null?void 0:_.toString())||"",label:_===!0?n.booleanYes||"ano":_===!1?n.booleanNo||"ne":_,specialOption:!1})}),s.forEach(_=>{_&&_!=="no_value_filter_value"&&!a.some(y=>y.toString()===_.toString())&&w.push({value:_,label:_,specialOption:!1})}),Array.from(new Set(w.map(_=>_.value))).map(_=>w.find(y=>y.value===_))},[a,s,o,n]),u=h.useRef(null),d=h.useRef(null),[f,p]=h.useState(!1);return h.useEffect(()=>{f&&d.current&&d.current.focus()},[f]),h.useEffect(()=>{c.length<xw&&i("")},[c]),b.jsxs(An,{autoClose:"outside",onToggle:w=>p(w),children:[b.jsx(An.Toggle,{className:me("filter multiselect border",Zu.multiselect,{filtered:t}),"data-testId":`filter-${e.id}`,id:`filter-${e.id}`,ref:u,role:"filter-input",size:"sm",onKeyDown:w=>{w.key==="Escape"&&e.setFilterValue("")},children:s.length>1?n.multiselect.xValues?n.multiselect.xValues(s.length):`${s.length} hodnoty`:s.length===1?(g=c.find(w=>w.value===t))==null?void 0:g.label:n.multiselect.all||"vše"}),b.jsxs(An.Menu,{className:me("multiselect-menu shadow-sm",Zu.multiselectMenu),style:{position:"relative",left:(m=u.current)==null?void 0:m.getBoundingClientRect().left,top:(v=u.current)==null?void 0:v.getBoundingClientRect().bottom},children:[c.length>=xw?b.jsx(An.Item,{className:me("rounded search-item",Zu.searchItem),children:b.jsx(Jd.Control,{className:"w-100",ref:d,size:"sm",type:"search",value:r,onChange:w=>i(w.target.value??"")})}):null,c.filter(w=>w.specialOption?!0:r?ef(w.value).toLowerCase().includes(ef(r.toLowerCase())):!0).map(w=>b.jsx(An.Item,{className:me("rounded",{"special-option":w.specialOption},{[Zu.specialOption]:w.specialOption}),onClick:()=>l(w.value),children:b.jsx(Jd.Check,{checked:w.value===""?s.length<1:s.includes(w.value),label:w.label,onChange:()=>{}})},w.value))]})]})},Tz=({column:e,IconComponent:t,texts:n})=>{const r=e.getFilterValue(),i=nF(e.columnDef);return["text","number","date","datetime"].includes(i)?b.jsx(CF,{column:e,filterValue:r?r.toString():null,IconComponent:t,texts:n}):b.jsx(kz,{column:e,filterValue:r?r.toString():null,IconComponent:t,texts:n})};/**
258
- * table-core
259
- *
260
- * Copyright (c) TanStack
261
- *
262
- * This source code is licensed under the MIT license found in the
263
- * LICENSE.md file in the root directory of this source tree.
264
- *
265
- * @license MIT
266
- */function Oz(){return{accessor:(e,t)=>typeof e=="function"?{...t,accessorFn:e}:{...t,accessorKey:e},display:e=>e,group:e=>e}}/**
267
- * react-table
268
- *
269
- * Copyright (c) TanStack
270
- *
271
- * This source code is licensed under the MIT license found in the
272
- * LICENSE.md file in the root directory of this source tree.
273
- *
274
- * @license MIT
275
- */function uk(e,t){return e?Mz(e)?ie.createElement(e,t):e:null}function Mz(e){return Az(e)||typeof e=="function"||Rz(e)}function Az(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function Rz(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function jz(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return h.useMemo(()=>r=>{t.forEach(i=>i(r))},t)}const wh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Hs(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function cb(e){return"nodeType"in e}function rr(e){var t,n;return e?Hs(e)?e:cb(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function ub(e){const{Document:t}=rr(e);return e instanceof t}function hu(e){return Hs(e)?!1:e instanceof rr(e).HTMLElement}function dk(e){return e instanceof rr(e).SVGElement}function Vs(e){return e?Hs(e)?e.document:cb(e)?ub(e)?e:hu(e)||dk(e)?e.ownerDocument:document:document:document}const ti=wh?h.useLayoutEffect:h.useEffect;function db(e){const t=h.useRef(e);return ti(()=>{t.current=e}),h.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}function Dz(){const e=h.useRef(null),t=h.useCallback((r,i)=>{e.current=setInterval(r,i)},[]),n=h.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function Cc(e,t){t===void 0&&(t=[e]);const n=h.useRef(e);return ti(()=>{n.current!==e&&(n.current=e)},t),n}function pu(e,t){const n=h.useRef();return h.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function of(e){const t=db(e),n=h.useRef(null),r=h.useCallback(i=>{i!==n.current&&(t==null||t(i,n.current)),n.current=i},[]);return[n,r]}function Qg(e){const t=h.useRef();return h.useEffect(()=>{t.current=e},[e]),t.current}let Sm={};function mu(e,t){return h.useMemo(()=>{if(t)return t;const n=Sm[e]==null?0:Sm[e]+1;return Sm[e]=n,e+"-"+n},[e,t])}function fk(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 ss=fk(1),sf=fk(-1);function Nz(e){return"clientX"in e&&"clientY"in e}function fb(e){if(!e)return!1;const{KeyboardEvent:t}=rr(e.target);return t&&e instanceof t}function Iz(e){if(!e)return!1;const{TouchEvent:t}=rr(e.target);return t&&e instanceof t}function Jg(e){if(Iz(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 Nz(e)?{x:e.clientX,y:e.clientY}:null}const $c=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[$c.Translate.toString(e),$c.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),ww="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Pz(e){return e.matches(ww)?e:e.querySelector(ww)}const Lz={display:"none"};function Fz(e){let{id:t,value:n}=e;return h.createElement("div",{id:t,style:Lz},n)}function Bz(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const i={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return h.createElement("div",{id:t,style:i,role:"status","aria-live":r,"aria-atomic":!0},n)}function zz(){const[e,t]=h.useState("");return{announce:h.useCallback(n=>{n!=null&&t(n)},[]),announcement:e}}const hk=h.createContext(null);function Wz(e){const t=h.useContext(hk);h.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function Uz(){const[e]=h.useState(()=>new Set),t=h.useCallback(n=>(e.add(n),()=>e.delete(n)),[e]);return[h.useCallback(n=>{let{type:r,event:i}=n;e.forEach(a=>{var o;return(o=a[r])==null?void 0:o.call(a,i)})},[e]),t]}const Hz={draggable:`
276
- To pick up a draggable item, press the space bar.
277
- While dragging, use the arrow keys to move the item.
278
- Press space again to drop the item in its new position, or press escape to cancel.
279
- `},Vz={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 qz(e){let{announcements:t=Vz,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=Hz}=e;const{announce:a,announcement:o}=zz(),s=mu("DndLiveRegion"),[l,c]=h.useState(!1);if(h.useEffect(()=>{c(!0)},[]),Wz(h.useMemo(()=>({onDragStart(d){let{active:f}=d;a(t.onDragStart({active:f}))},onDragMove(d){let{active:f,over:p}=d;t.onDragMove&&a(t.onDragMove({active:f,over:p}))},onDragOver(d){let{active:f,over:p}=d;a(t.onDragOver({active:f,over:p}))},onDragEnd(d){let{active:f,over:p}=d;a(t.onDragEnd({active:f,over:p}))},onDragCancel(d){let{active:f,over:p}=d;a(t.onDragCancel({active:f,over:p}))}}),[a,t])),!l)return null;const u=h.createElement(h.Fragment,null,h.createElement(Fz,{id:r,value:i.draggable}),h.createElement(Bz,{id:s,announcement:o}));return n?hn.createPortal(u,n):u}var gn;(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"})(gn||(gn={}));function lf(){}function Em(e,t){return h.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function Yz(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return h.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const Nr=Object.freeze({x:0,y:0});function Gz(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Kz(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function Zz(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function Xz(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function _w(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 Qz=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=_w(t,t.left,t.top),a=[];for(const o of r){const{id:s}=o,l=n.get(s);if(l){const c=Gz(_w(l),i);a.push({id:s,data:{droppableContainer:o,value:c}})}}return a.sort(Kz)};function Jz(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 eW=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=Jz(s,t);l>0&&i.push({id:o,data:{droppableContainer:a,value:l}})}}return i.sort(Zz)};function tW(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function pk(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Nr}function nW(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 rW=nW(1);function iW(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 aW(e,t,n){const r=iW(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 oW={ignoreTransform:!1};function qs(e,t){t===void 0&&(t=oW);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:c,transformOrigin:u}=rr(e).getComputedStyle(e);c&&(n=aW(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 Cw(e){return qs(e,{ignoreTransform:!0})}function sW(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function lW(e,t){return t===void 0&&(t=rr(e).getComputedStyle(e)),t.position==="fixed"}function cW(e,t){t===void 0&&(t=rr(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 hb(e,t){const n=[];function r(i){if(t!=null&&n.length>=t||!i)return n;if(ub(i)&&i.scrollingElement!=null&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!hu(i)||dk(i)||n.includes(i))return n;const a=rr(e).getComputedStyle(i);return i!==e&&cW(i,a)&&n.push(i),lW(i,a)?n:r(i.parentNode)}return e?r(e):n}function mk(e){const[t]=hb(e,1);return t??null}function km(e){return!wh||!e?null:Hs(e)?e:cb(e)?ub(e)||e===Vs(e).scrollingElement?window:hu(e)?e:null:null}function gk(e){return Hs(e)?e.scrollX:e.scrollLeft}function vk(e){return Hs(e)?e.scrollY:e.scrollTop}function ev(e){return{x:gk(e),y:vk(e)}}var Cn;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(Cn||(Cn={}));function bk(e){return!wh||!e?!1:e===document.scrollingElement}function yk(e){const t={x:0,y:0},n=bk(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 uW={x:.2,y:.2};function dW(e,t,n,r,i){let{top:a,left:o,right:s,bottom:l}=n;r===void 0&&(r=10),i===void 0&&(i=uW);const{isTop:c,isBottom:u,isLeft:d,isRight:f}=yk(e),p={x:0,y:0},g={x:0,y:0},m={height:t.height*i.y,width:t.width*i.x};return!c&&a<=t.top+m.height?(p.y=Cn.Backward,g.y=r*Math.abs((t.top+m.height-a)/m.height)):!u&&l>=t.bottom-m.height&&(p.y=Cn.Forward,g.y=r*Math.abs((t.bottom-m.height-l)/m.height)),!f&&s>=t.right-m.width?(p.x=Cn.Forward,g.x=r*Math.abs((t.right-m.width-s)/m.width)):!d&&o<=t.left+m.width&&(p.x=Cn.Backward,g.x=r*Math.abs((t.left+m.width-o)/m.width)),{direction:p,speed:g}}function fW(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 xk(e){return e.reduce((t,n)=>ss(t,ev(n)),Nr)}function hW(e){return e.reduce((t,n)=>t+gk(n),0)}function pW(e){return e.reduce((t,n)=>t+vk(n),0)}function mW(e,t){if(t===void 0&&(t=qs),!e)return;const{top:n,left:r,bottom:i,right:a}=t(e);mk(e)&&(i<=0||a<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const gW=[["x",["left","right"],hW],["y",["top","bottom"],pW]];class pb{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=hb(n),i=xk(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[a,o,s]of gW)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 Yl=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 vW(e){const{EventTarget:t}=rr(e);return e instanceof t?e:Vs(e)}function Tm(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 hr;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(hr||(hr={}));function $w(e){e.preventDefault()}function bW(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 wk={start:[Ot.Space,Ot.Enter],cancel:[Ot.Esc],end:[Ot.Space,Ot.Enter,Ot.Tab]},yW=(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 mb=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 Yl(Vs(n)),this.windowListeners=new Yl(rr(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(hr.Resize,this.handleCancel),this.windowListeners.add(hr.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(hr.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&mW(r),n(Nr)}handleKeyDown(t){if(fb(t)){const{active:n,context:r,options:i}=this.props,{keyboardCodes:a=wk,coordinateGetter:o=yW,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}:Nr;this.referenceCoordinates||(this.referenceCoordinates=u);const d=o(t,{active:n,context:r.current,currentCoordinates:u});if(d){const f=sf(d,u),p={x:0,y:0},{scrollableAncestors:g}=r.current;for(const m of g){const v=t.code,{isTop:w,isRight:_,isLeft:y,isBottom:C,maxScroll:x,minScroll:$}=yk(m),E=fW(m),O={x:Math.min(v===Ot.Right?E.right-E.width/2:E.right,Math.max(v===Ot.Right?E.left:E.left+E.width/2,d.x)),y:Math.min(v===Ot.Down?E.bottom-E.height/2:E.bottom,Math.max(v===Ot.Down?E.top:E.top+E.height/2,d.y))},k=v===Ot.Right&&!_||v===Ot.Left&&!y,j=v===Ot.Down&&!C||v===Ot.Up&&!w;if(k&&O.x!==d.x){const S=m.scrollLeft+f.x,T=v===Ot.Right&&S<=x.x||v===Ot.Left&&S>=$.x;if(T&&!f.y){m.scrollTo({left:S,behavior:s});return}T?p.x=m.scrollLeft-S:p.x=v===Ot.Right?m.scrollLeft-x.x:m.scrollLeft-$.x,p.x&&m.scrollBy({left:-p.x,behavior:s});break}else if(j&&O.y!==d.y){const S=m.scrollTop+f.y,T=v===Ot.Down&&S<=x.y||v===Ot.Up&&S>=$.y;if(T&&!f.x){m.scrollTo({top:S,behavior:s});return}T?p.y=m.scrollTop-S:p.y=v===Ot.Down?m.scrollTop-x.y:m.scrollTop-$.y,p.y&&m.scrollBy({top:-p.y,behavior:s});break}}this.handleMove(t,ss(sf(d,this.referenceCoordinates),p))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}};mb.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=wk,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 Sw(e){return!!(e&&"distance"in e)}function Ew(e){return!!(e&&"delay"in e)}class gb{constructor(t,n,r){var i;r===void 0&&(r=vW(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=Vs(o),this.documentListeners=new Yl(this.document),this.listeners=new Yl(r),this.windowListeners=new Yl(rr(o)),this.initialCoordinates=(i=Jg(a))!=null?i:Nr,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(hr.Resize,this.handleCancel),this.windowListeners.add(hr.DragStart,$w),this.windowListeners.add(hr.VisibilityChange,this.handleCancel),this.windowListeners.add(hr.ContextMenu,$w),this.documentListeners.add(hr.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Ew(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(Sw(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(hr.Click,bW,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(hr.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=Jg(t))!=null?n:Nr,c=sf(i,l);if(!r&&s){if(Sw(s)){if(s.tolerance!=null&&Tm(c,s.tolerance))return this.handleCancel();if(Tm(c,s.distance))return this.handleStart()}if(Ew(s)&&Tm(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 xW={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};let _k=class extends gb{constructor(t){const{event:n}=t,r=Vs(n.target);super(t,xW,r)}};_k.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 wW={move:{name:"mousemove"},end:{name:"mouseup"}};var tv;(function(e){e[e.RightClick=2]="RightClick"})(tv||(tv={}));let Ck=class extends gb{constructor(t){super(t,wW,Vs(t.event.target))}};Ck.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===tv.RightClick?!1:(r==null||r({event:n}),!0)}}];const Om={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};let $k=class extends gb{constructor(t){super(t,Om)}static setup(){return window.addEventListener(Om.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(Om.move.name,t)};function t(){}}};$k.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 Gl;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Gl||(Gl={}));var cf;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(cf||(cf={}));function _W(e){let{acceleration:t,activator:n=Gl.Pointer,canScroll:r,draggingRect:i,enabled:a,interval:o=5,order:s=cf.TreeOrder,pointerCoordinates:l,scrollableAncestors:c,scrollableAncestorRects:u,delta:d,threshold:f}=e;const p=$W({delta:d,disabled:!a}),[g,m]=Dz(),v=h.useRef({x:0,y:0}),w=h.useRef({x:0,y:0}),_=h.useMemo(()=>{switch(n){case Gl.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case Gl.DraggableRect:return i}},[n,i,l]),y=h.useRef(null),C=h.useCallback(()=>{const $=y.current;if(!$)return;const E=v.current.x*w.current.x,O=v.current.y*w.current.y;$.scrollBy(E,O)},[]),x=h.useMemo(()=>s===cf.TreeOrder?[...c].reverse():c,[s,c]);h.useEffect(()=>{if(!a||!c.length||!_){m();return}for(const $ of x){if((r==null?void 0:r($))===!1)continue;const E=c.indexOf($),O=u[E];if(!O)continue;const{direction:k,speed:j}=dW($,O,_,t,f);for(const S of["x","y"])p[S][k[S]]||(j[S]=0,k[S]=0);if(j.x>0||j.y>0){m(),y.current=$,g(C,o),v.current=j,w.current=k;return}}v.current={x:0,y:0},w.current={x:0,y:0},m()},[t,C,r,m,a,o,JSON.stringify(_),JSON.stringify(p),g,c,x,u,JSON.stringify(f)])}const CW={x:{[Cn.Backward]:!1,[Cn.Forward]:!1},y:{[Cn.Backward]:!1,[Cn.Forward]:!1}};function $W(e){let{delta:t,disabled:n}=e;const r=Qg(t);return pu(i=>{if(n||!r||!i)return CW;const a={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[Cn.Backward]:i.x[Cn.Backward]||a.x===-1,[Cn.Forward]:i.x[Cn.Forward]||a.x===1},y:{[Cn.Backward]:i.y[Cn.Backward]||a.y===-1,[Cn.Forward]:i.y[Cn.Forward]||a.y===1}}},[n,t,r])}function SW(e,t){const n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return pu(i=>{var a;return t==null?null:(a=r??i)!=null?a:null},[r,t])}function EW(e,t){return h.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 Sc;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Sc||(Sc={}));var nv;(function(e){e.Optimized="optimized"})(nv||(nv={}));const kw=new Map;function kW(e,t){let{dragging:n,dependencies:r,config:i}=t;const[a,o]=h.useState(null),{frequency:s,measure:l,strategy:c}=i,u=h.useRef(e),d=v(),f=Cc(d),p=h.useCallback(function(w){w===void 0&&(w=[]),!f.current&&o(_=>_===null?w:_.concat(w.filter(y=>!_.includes(y))))},[f]),g=h.useRef(null),m=pu(w=>{if(d&&!n)return kw;if(!w||w===kw||u.current!==e||a!=null){const _=new Map;for(let y of e){if(!y)continue;if(a&&a.length>0&&!a.includes(y.id)&&y.rect.current){_.set(y.id,y.rect.current);continue}const C=y.node.current,x=C?new pb(l(C),C):null;y.rect.current=x,x&&_.set(y.id,x)}return _}return w},[e,a,n,d,l]);return h.useEffect(()=>{u.current=e},[e]),h.useEffect(()=>{d||p()},[n,d]),h.useEffect(()=>{a&&a.length>0&&o(null)},[JSON.stringify(a)]),h.useEffect(()=>{d||typeof s!="number"||g.current!==null||(g.current=setTimeout(()=>{p(),g.current=null},s))},[s,d,p,...r]),{droppableRects:m,measureDroppableContainers:p,measuringScheduled:a!=null};function v(){switch(c){case Sc.Always:return!1;case Sc.BeforeDragging:return n;default:return!n}}}function Sk(e,t){return pu(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function TW(e,t){return Sk(e,t)}function OW(e){let{callback:t,disabled:n}=e;const r=db(t),i=h.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:a}=window;return new a(r)},[r,n]);return h.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function _h(e){let{callback:t,disabled:n}=e;const r=db(t),i=h.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:a}=window;return new a(r)},[n]);return h.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function MW(e){return new pb(qs(e),e)}function Tw(e,t,n){t===void 0&&(t=MW);const[r,i]=h.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=OW({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=_h({callback:a});return ti(()=>{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 AW(e){const t=Sk(e);return pk(e,t)}const Ow=[];function RW(e){const t=h.useRef(e),n=pu(r=>e?r&&r!==Ow&&e&&t.current&&e.parentNode===t.current.parentNode?r:hb(e):Ow,[e]);return h.useEffect(()=>{t.current=e},[e]),n}function jW(e){const[t,n]=h.useState(null),r=h.useRef(e),i=h.useCallback(a=>{const o=km(a.target);o&&n(s=>s?(s.set(o,ev(o)),new Map(s)):null)},[]);return h.useEffect(()=>{const a=r.current;if(e!==a){o(a);const s=e.map(l=>{const c=km(l);return c?(c.addEventListener("scroll",i,{passive:!0}),[c,ev(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=km(l);c==null||c.removeEventListener("scroll",i)})}},[i,e]),h.useMemo(()=>e.length?t?Array.from(t.values()).reduce((a,o)=>ss(a,o),Nr):xk(e):Nr,[e,t])}function Mw(e,t){t===void 0&&(t=[]);const n=h.useRef(null);return h.useEffect(()=>{n.current=null},t),h.useEffect(()=>{const r=e!==Nr;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?sf(e,n.current):Nr}function DW(e){h.useEffect(()=>{if(!wh)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 NW(e,t){return h.useMemo(()=>e.reduce((n,r)=>{let{eventName:i,handler:a}=r;return n[i]=o=>{a(o,t)},n},{}),[e,t])}function Ek(e){return h.useMemo(()=>e?sW(e):null,[e])}const Aw=[];function IW(e,t){t===void 0&&(t=qs);const[n]=e,r=Ek(n?rr(n):null),[i,a]=h.useState(Aw);function o(){a(()=>e.length?e.map(l=>bk(l)?r:new pb(t(l),l)):Aw)}const s=_h({callback:o});return ti(()=>{s==null||s.disconnect(),o(),e.forEach(l=>s==null?void 0:s.observe(l))},[e]),i}function PW(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return hu(t)?t:e}function LW(e){let{measure:t}=e;const[n,r]=h.useState(null),i=h.useCallback(c=>{for(const{target:u}of c)if(hu(u)){r(d=>{const f=t(u);return d?{...d,width:f.width,height:f.height}:f});break}},[t]),a=_h({callback:i}),o=h.useCallback(c=>{const u=PW(c);a==null||a.disconnect(),u&&(a==null||a.observe(u)),r(u?t(u):null)},[t,a]),[s,l]=of(o);return h.useMemo(()=>({nodeRef:s,rect:n,setRef:l}),[n,s,l])}const FW=[{sensor:_k,options:{}},{sensor:mb,options:{}}],BW={current:{}},$d={draggable:{measure:Cw},droppable:{measure:Cw,strategy:Sc.WhileDragging,frequency:nv.Optimized},dragOverlay:{measure:qs}};let Kl=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 zW={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Kl,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:lf},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:$d,measureDroppableContainers:lf,windowRect:null,measuringScheduled:!1},WW={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:lf,draggableNodes:new Map,over:null,measureDroppableContainers:lf},Ch=h.createContext(WW),kk=h.createContext(zW);function UW(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Kl}}}function HW(e,t){switch(t.type){case gn.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case gn.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 gn.DragEnd:case gn.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case gn.RegisterDroppable:{const{element:n}=t,{id:r}=n,i=new Kl(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case gn.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 Kl(e.droppable.containers);return o.set(n,{...a,disabled:i}),{...e,droppable:{...e.droppable,containers:o}}}case gn.UnregisterDroppable:{const{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const a=new Kl(e.droppable.containers);return a.delete(n),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function VW(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:i}=h.useContext(Ch),a=Qg(r),o=Qg(n==null?void 0:n.id);return h.useEffect(()=>{if(!t&&!r&&a&&o!=null){if(!fb(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=Pz(u);if(d){d.focus();break}}})}},[r,t,i,o,a]),null}function qW(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((i,a)=>a({transform:i,...r}),n):n}function YW(e){return h.useMemo(()=>({draggable:{...$d.draggable,...e==null?void 0:e.draggable},droppable:{...$d.droppable,...e==null?void 0:e.droppable},dragOverlay:{...$d.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function GW(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e;const a=h.useRef(!1),{x:o,y:s}=typeof i=="boolean"?{x:i,y:i}:i;ti(()=>{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=pk(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=mk(l);d&&d.scrollBy({top:u.y,left:u.x})}},[t,o,s,r,n])}const Tk=h.createContext({...Nr,scaleX:1,scaleY:1});var Qi;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Qi||(Qi={}));const KW=h.memo(function(e){var t,n,r,i;let{id:a,accessibility:o,autoScroll:s=!0,children:l,sensors:c=FW,collisionDetection:u=eW,measuring:d,modifiers:f,...p}=e;const g=h.useReducer(HW,void 0,UW),[m,v]=g,[w,_]=Uz(),[y,C]=h.useState(Qi.Uninitialized),x=y===Qi.Initialized,{draggable:{active:$,nodes:E,translate:O},droppable:{containers:k}}=m,j=$!=null?E.get($):null,S=h.useRef({initial:null,translated:null}),T=h.useMemo(()=>{var Ge;return $!=null?{id:$,data:(Ge=j==null?void 0:j.data)!=null?Ge:BW,rect:S}:null},[$,j]),R=h.useRef(null),[N,D]=h.useState(null),[M,I]=h.useState(null),z=Cc(p,Object.values(p)),U=mu("DndDescribedBy",a),P=h.useMemo(()=>k.getEnabled(),[k]),W=YW(d),{droppableRects:Y,measureDroppableContainers:X,measuringScheduled:K}=kW(P,{dragging:x,dependencies:[O.x,O.y],config:W.droppable}),Z=SW(E,$),ee=h.useMemo(()=>M?Jg(M):null,[M]),J=Mt(),B=TW(Z,W.draggable.measure);GW({activeNode:$!=null?E.get($):null,config:J.layoutShiftCompensation,initialRect:B,measure:W.draggable.measure});const L=Tw(Z,W.draggable.measure,B),F=Tw(Z?Z.parentElement:null),H=h.useRef({activatorEvent:null,active:null,activeNode:Z,collisionRect:null,collisions:null,droppableRects:Y,draggableNodes:E,draggingNode:null,draggingNodeRect:null,droppableContainers:k,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),A=k.getNodeFor((t=H.current.over)==null?void 0:t.id),Q=LW({measure:W.dragOverlay.measure}),G=(n=Q.nodeRef.current)!=null?n:Z,q=x?(r=Q.rect)!=null?r:L:null,le=!!(Q.nodeRef.current&&Q.rect),ne=AW(le?null:L),re=Ek(G?rr(G):null),se=RW(x?A??Z:null),fe=IW(se),_e=qW(f,{transform:{x:O.x-ne.x,y:O.y-ne.y,scaleX:1,scaleY:1},activatorEvent:M,active:T,activeNodeRect:L,containerNodeRect:F,draggingNodeRect:q,over:H.current.over,overlayNodeRect:Q.rect,scrollableAncestors:se,scrollableAncestorRects:fe,windowRect:re}),ye=ee?ss(ee,O):null,xe=jW(se),Me=Mw(xe),ue=Mw(xe,[L]),oe=ss(_e,Me),be=q?rW(q,_e):null,Fe=T&&be?u({active:T,collisionRect:be,droppableRects:Y,droppableContainers:P,pointerCoordinates:ye}):null,Ft=Xz(Fe,"id"),[Pe,mt]=h.useState(null),wt=le?_e:ss(_e,ue),tn=tW(wt,(i=Pe==null?void 0:Pe.rect)!=null?i:null,L),Ee=h.useRef(null),Re=h.useCallback((Ge,De)=>{let{sensor:ze,options:Xe}=De;if(R.current==null)return;const Ne=E.get(R.current);if(!Ne)return;const Qe=Ge.nativeEvent,ft=new ze({active:R.current,activeNode:Ne,event:Qe,options:Xe,context:H,onAbort(je){if(!E.get(je))return;const{onDragAbort:ke}=z.current,Ue={id:je};ke==null||ke(Ue),w({type:"onDragAbort",event:Ue})},onPending(je,ke,Ue,bt){if(!E.get(je))return;const{onDragPending:Je}=z.current,ht={id:je,constraint:ke,initialCoordinates:Ue,offset:bt};Je==null||Je(ht),w({type:"onDragPending",event:ht})},onStart(je){const ke=R.current;if(ke==null)return;const Ue=E.get(ke);if(!Ue)return;const{onDragStart:bt}=z.current,Je={activatorEvent:Qe,active:{id:ke,data:Ue.data,rect:S}};hn.unstable_batchedUpdates(()=>{bt==null||bt(Je),C(Qi.Initializing),v({type:gn.DragStart,initialCoordinates:je,active:ke}),w({type:"onDragStart",event:Je}),D(Ee.current),I(Qe)})},onMove(je){v({type:gn.DragMove,coordinates:je})},onEnd:tt(gn.DragEnd),onCancel:tt(gn.DragCancel)});Ee.current=ft;function tt(je){return async function(){const{active:ke,collisions:Ue,over:bt,scrollAdjustedTranslate:Je}=H.current;let ht=null;if(ke&&Je){const{cancelDrop:en}=z.current;ht={activatorEvent:Qe,active:ke,collisions:Ue,delta:Je,over:bt},je===gn.DragEnd&&typeof en=="function"&&await Promise.resolve(en(ht))&&(je=gn.DragCancel)}R.current=null,hn.unstable_batchedUpdates(()=>{v({type:je}),C(Qi.Uninitialized),mt(null),D(null),I(null),Ee.current=null;const en=je===gn.DragEnd?"onDragEnd":"onDragCancel";if(ht){const Bt=z.current[en];Bt==null||Bt(ht),w({type:en,event:ht})}})}}},[E]),gt=h.useCallback((Ge,De)=>(ze,Xe)=>{const Ne=ze.nativeEvent,Qe=E.get(Xe);if(R.current!==null||!Qe||Ne.dndKit||Ne.defaultPrevented)return;const ft={active:Qe};Ge(ze,De.options,ft)===!0&&(Ne.dndKit={capturedBy:De.sensor},R.current=Xe,Re(ze,De))},[E,Re]),Ve=EW(c,gt);DW(c),ti(()=>{L&&y===Qi.Initializing&&C(Qi.Initialized)},[L,y]),h.useEffect(()=>{const{onDragMove:Ge}=z.current,{active:De,activatorEvent:ze,collisions:Xe,over:Ne}=H.current;if(!De||!ze)return;const Qe={active:De,activatorEvent:ze,collisions:Xe,delta:{x:oe.x,y:oe.y},over:Ne};hn.unstable_batchedUpdates(()=>{Ge==null||Ge(Qe),w({type:"onDragMove",event:Qe})})},[oe.x,oe.y]),h.useEffect(()=>{const{active:Ge,activatorEvent:De,collisions:ze,droppableContainers:Xe,scrollAdjustedTranslate:Ne}=H.current;if(!Ge||R.current==null||!De||!Ne)return;const{onDragOver:Qe}=z.current,ft=Xe.get(Ft),tt=ft&&ft.rect.current?{id:ft.id,rect:ft.rect.current,data:ft.data,disabled:ft.disabled}:null,je={active:Ge,activatorEvent:De,collisions:ze,delta:{x:Ne.x,y:Ne.y},over:tt};hn.unstable_batchedUpdates(()=>{mt(tt),Qe==null||Qe(je),w({type:"onDragOver",event:je})})},[Ft]),ti(()=>{H.current={activatorEvent:M,active:T,activeNode:Z,collisionRect:be,collisions:Fe,droppableRects:Y,draggableNodes:E,draggingNode:G,draggingNodeRect:q,droppableContainers:k,over:Pe,scrollableAncestors:se,scrollAdjustedTranslate:oe},S.current={initial:q,translated:be}},[T,Z,Fe,be,E,G,q,Y,k,Pe,se,oe]),_W({...J,delta:O,draggingRect:be,pointerCoordinates:ye,scrollableAncestors:se,scrollableAncestorRects:fe});const vt=h.useMemo(()=>({active:T,activeNode:Z,activeNodeRect:L,activatorEvent:M,collisions:Fe,containerNodeRect:F,dragOverlay:Q,draggableNodes:E,droppableContainers:k,droppableRects:Y,over:Pe,measureDroppableContainers:X,scrollableAncestors:se,scrollableAncestorRects:fe,measuringConfiguration:W,measuringScheduled:K,windowRect:re}),[T,Z,L,M,Fe,F,Q,E,k,Y,Pe,X,se,fe,W,K,re]),at=h.useMemo(()=>({activatorEvent:M,activators:Ve,active:T,activeNodeRect:L,ariaDescribedById:{draggable:U},dispatch:v,draggableNodes:E,over:Pe,measureDroppableContainers:X}),[M,Ve,T,L,v,U,E,Pe,X]);return h.createElement(hk.Provider,{value:_},h.createElement(Ch.Provider,{value:at},h.createElement(kk.Provider,{value:vt},h.createElement(Tk.Provider,{value:tn},l)),h.createElement(VW,{disabled:(o==null?void 0:o.restoreFocus)===!1})),h.createElement(qz,{...o,hiddenTextDescribedById:U}));function Mt(){const Ge=(N==null?void 0:N.autoScrollEnabled)===!1,De=typeof s=="object"?s.enabled===!1:s===!1,ze=x&&!Ge&&!De;return typeof s=="object"?{...s,enabled:ze}:{enabled:ze}}}),ZW=h.createContext(null),Rw="button",XW="Draggable";function QW(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e;const a=mu(XW),{activators:o,activatorEvent:s,active:l,activeNodeRect:c,ariaDescribedById:u,draggableNodes:d,over:f}=h.useContext(Ch),{role:p=Rw,roleDescription:g="draggable",tabIndex:m=0}=i??{},v=(l==null?void 0:l.id)===t,w=h.useContext(v?Tk:ZW),[_,y]=of(),[C,x]=of(),$=NW(o,t),E=Cc(n);ti(()=>(d.set(t,{id:t,key:a,node:_,activatorNode:C,data:E}),()=>{const k=d.get(t);k&&k.key===a&&d.delete(t)}),[d,t]);const O=h.useMemo(()=>({role:p,tabIndex:m,"aria-disabled":r,"aria-pressed":v&&p===Rw?!0:void 0,"aria-roledescription":g,"aria-describedby":u.draggable}),[r,p,m,v,g,u.draggable]);return{active:l,activatorEvent:s,activeNodeRect:c,attributes:O,isDragging:v,listeners:r?void 0:$,node:_,over:f,setNodeRef:y,setActivatorNodeRef:x,transform:w}}function JW(){return h.useContext(kk)}const eU="Droppable",tU={timeout:25};function nU(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e;const a=mu(eU),{active:o,dispatch:s,over:l,measureDroppableContainers:c}=h.useContext(Ch),u=h.useRef({disabled:n}),d=h.useRef(!1),f=h.useRef(null),p=h.useRef(null),{disabled:g,updateMeasurementsFor:m,timeout:v}={...tU,...i},w=Cc(m??r),_=h.useCallback(()=>{if(!d.current){d.current=!0;return}p.current!=null&&clearTimeout(p.current),p.current=setTimeout(()=>{c(Array.isArray(w.current)?w.current:[w.current]),p.current=null},v)},[v]),y=_h({callback:_,disabled:g||!o}),C=h.useCallback((O,k)=>{y&&(k&&(y.unobserve(k),d.current=!1),O&&y.observe(O))},[y]),[x,$]=of(C),E=Cc(t);return h.useEffect(()=>{!y||!x.current||(y.disconnect(),d.current=!1,y.observe(x.current))},[x,y]),h.useEffect(()=>(s({type:gn.RegisterDroppable,element:{id:r,key:a,disabled:n,node:x,rect:f,data:E}}),()=>s({type:gn.UnregisterDroppable,key:a,id:r})),[r]),h.useEffect(()=>{n!==u.current.disabled&&(s({type:gn.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:x,over:l,setNodeRef:$}}function vb(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function rU(e,t){return e.reduce((n,r,i)=>{const a=t.get(r);return a&&(n[i]=a),n},Array(e.length))}function Xu(e){return e!==null&&e>=0}function iU(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 aU(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const Qu={scaleX:1,scaleY:1},oU=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=sU(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,...Qu}:null}return o>i&&o<=a?{x:-s.width-l,y:0,...Qu}:o<i&&o>=a?{x:s.width+l,y:0,...Qu}:{x:0,y:0,...Qu}};function sU(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 Ok=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e;const a=vb(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}},Mk="Sortable",Ak=h.createContext({activeIndex:-1,containerId:Mk,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Ok,disabled:{draggable:!1,droppable:!1}});function lU(e){let{children:t,id:n,items:r,strategy:i=Ok,disabled:a=!1}=e;const{active:o,dragOverlay:s,droppableRects:l,over:c,measureDroppableContainers:u}=JW(),d=mu(Mk,n),f=s.rect!==null,p=h.useMemo(()=>r.map($=>typeof $=="object"&&"id"in $?$.id:$),[r]),g=o!=null,m=o?p.indexOf(o.id):-1,v=c?p.indexOf(c.id):-1,w=h.useRef(p),_=!iU(p,w.current),y=v!==-1&&m===-1||_,C=aU(a);ti(()=>{_&&g&&u(p)},[_,p,g,u]),h.useEffect(()=>{w.current=p},[p]);const x=h.useMemo(()=>({activeIndex:m,containerId:d,disabled:C,disableTransforms:y,items:p,overIndex:v,useDragOverlay:f,sortedRects:rU(p,l),strategy:i}),[m,d,C.draggable,C.droppable,y,p,v,l,f,i]);return h.createElement(Ak.Provider,{value:x},t)}const cU=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return vb(n,r,i).indexOf(t)},uU=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},dU={duration:200,easing:"ease"},Rk="transform",fU=$c.Transition.toString({property:Rk,duration:0,easing:"linear"}),hU={roleDescription:"sortable"};function pU(e){let{disabled:t,index:n,node:r,rect:i}=e;const[a,o]=h.useState(null),s=h.useRef(n);return ti(()=>{if(!t&&n!==s.current&&r.current){const l=i.current;if(l){const c=qs(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]),h.useEffect(()=>{a&&o(null)},[a]),a}function mU(e){let{animateLayoutChanges:t=uU,attributes:n,disabled:r,data:i,getNewIndex:a=cU,id:o,strategy:s,resizeObserverConfig:l,transition:c=dU}=e;const{items:u,containerId:d,activeIndex:f,disabled:p,disableTransforms:g,sortedRects:m,overIndex:v,useDragOverlay:w,strategy:_}=h.useContext(Ak),y=gU(r,p),C=u.indexOf(o),x=h.useMemo(()=>({sortable:{containerId:d,index:C,items:u},...i}),[d,i,C,u]),$=h.useMemo(()=>u.slice(u.indexOf(o)),[u,o]),{rect:E,node:O,isOver:k,setNodeRef:j}=nU({id:o,data:x,disabled:y.droppable,resizeObserverConfig:{updateMeasurementsFor:$,...l}}),{active:S,activatorEvent:T,activeNodeRect:R,attributes:N,setNodeRef:D,listeners:M,isDragging:I,over:z,setActivatorNodeRef:U,transform:P}=QW({id:o,data:x,attributes:{...hU,...n},disabled:y.draggable}),W=jz(j,D),Y=!!S,X=Y&&!g&&Xu(f)&&Xu(v),K=!w&&I,Z=K&&X?P:null,ee=X?Z??(s??_)({rects:m,activeNodeRect:R,activeIndex:f,overIndex:v,index:C}):null,J=Xu(f)&&Xu(v)?a({id:o,items:u,activeIndex:f,overIndex:v}):C,B=S==null?void 0:S.id,L=h.useRef({activeId:B,items:u,newIndex:J,containerId:d}),F=u!==L.current.items,H=t({active:S,containerId:d,isDragging:I,isSorting:Y,id:o,index:C,items:u,newIndex:L.current.newIndex,previousItems:L.current.items,previousContainerId:L.current.containerId,transition:c,wasDragging:L.current.activeId!=null}),A=pU({disabled:!H,index:C,node:O,rect:E});return h.useEffect(()=>{Y&&L.current.newIndex!==J&&(L.current.newIndex=J),d!==L.current.containerId&&(L.current.containerId=d),u!==L.current.items&&(L.current.items=u)},[Y,J,d,u]),h.useEffect(()=>{if(B===L.current.activeId)return;if(B!=null&&L.current.activeId==null){L.current.activeId=B;return}const G=setTimeout(()=>{L.current.activeId=B},50);return()=>clearTimeout(G)},[B]),{active:S,activeIndex:f,attributes:N,data:x,rect:E,index:C,newIndex:J,items:u,isOver:k,isSorting:Y,isDragging:I,listeners:M,node:O,overIndex:v,over:z,setNodeRef:W,setActivatorNodeRef:U,setDroppableNodeRef:j,setDraggableNodeRef:D,transform:A??ee,transition:Q()};function Q(){if(A||F&&L.current.newIndex===C)return fU;if(!(K&&!fb(T)||!c)&&(Y||H))return $c.Transition.toString({...c,property:Rk})}}function gU(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 vU="_table-scroll-container_8x5tv_1",bU="_full-screen_8x5tv_8",yU="_table_8x5tv_1",xU="_thead_8x5tv_24",wU="_tbody_8x5tv_25",_U="_th_8x5tv_24",CU="_pinned_8x5tv_38",$U="_sorted_8x5tv_41",SU="_resizer_8x5tv_44",EU="_resizer-bar_8x5tv_58",kU="_reorder-handle_8x5tv_64",TU="_dragging_8x5tv_69",OU="_row-selection-info_8x5tv_73",MU="_tr_8x5tv_77",AU="_td_8x5tv_85",RU="_left_8x5tv_102",jU="_center_8x5tv_106",DU="_right_8x5tv_110",NU="_first-right_8x5tv_119",IU="_grouped_8x5tv_127",PU="_expanded_8x5tv_131",LU="_selected-cell_8x5tv_135",FU="_sm_8x5tv_139",BU="_lg_8x5tv_144",zU="_clickable_8x5tv_149",WU="_cell-selected-row_8x5tv_152",UU="_cell-selection-disabled_8x5tv_160",HU="_own-click_8x5tv_179",VU="_expander-button_8x5tv_185",qU="_empty-table-alert_8x5tv_190",YU="_remove-filters-button-wrapper_8x5tv_198",GU="_remove-filters-button_8x5tv_198",KU="_bottom-bar_8x5tv_228",ZU="_left-items_8x5tv_244",XU="_pagination_8x5tv_250",QU="_page-info-text_8x5tv_256",JU="_right-items_8x5tv_262",eH="_sizing-toggle_8x5tv_268",tH="_sizing-menu_8x5tv_283",nH="_sizing-menu-item_8x5tv_287",He={tableScrollContainer:vU,fullScreen:bU,table:yU,thead:xU,tbody:wU,th:_U,pinned:CU,sorted:$U,resizer:SU,resizerBar:EU,reorderHandle:kU,dragging:TU,rowSelectionInfo:OU,tr:MU,td:AU,left:RU,center:jU,right:DU,firstRight:NU,grouped:IU,expanded:PU,selectedCell:LU,sm:FU,lg:BU,clickable:zU,cellSelectedRow:WU,cellSelectionDisabled:UU,ownClick:HU,expanderButton:VU,emptyTableAlert:qU,removeFiltersButtonWrapper:YU,removeFiltersButton:GU,bottomBar:KU,leftItems:ZU,pagination:XU,pageInfoText:QU,rightItems:JU,sizingToggle:eH,sizingMenu:tH,sizingMenuItem:nH},rH="_column-menu_1r3rf_1",iH="_column-menu-item_1r3rf_5",Ju={columnMenu:rH,columnMenuItem:iH},aH=({header:e,table:t,className:n,IconComponent:r,texts:i,columnMenuPos:a,onColumnMenu:o,dragEnabled:s,style:l})=>{var O,k;const{attributes:c,listeners:u,setNodeRef:d,transform:f,isDragging:p}=mU({id:e.id,disabled:!s}),g={...l??{},flex:`${e.column.getSize()} 1 0`,minWidth:e.column.getSize(),...s?{transform:$c.Translate.toString(f)}:{}},m=j=>j.column.getCanSort()?"button":void 0,v=j=>{const S=j.column.getIsSorted(),T=j.column.getIsGrouped();return me("th",He.th,{sorted:S,[He.sorted]:S},{grouped:T,[He.grouped]:T})},w=j=>{const S=j.column.getCanSort();return me("d-flex flex-row align-items-center justify-content-between",{"cursor-pointer":S})},_=j=>{j.preventDefault(),o({id:e.id,x:j.clientX,y:j.clientY})},y=()=>o(null),C=(a==null?void 0:a.id)===e.id,x=e.column.getIsPinned(),$=e.column.getIsGrouped(),E=(k=(O=e.column.columnDef)==null?void 0:O.meta)==null?void 0:k.alwaysPinned;return b.jsxs("div",{className:me(n,v(e.getContext())),ref:d,style:g,onContextMenu:_,children:[b.jsx(An,{autoClose:!0,show:C,onToggle:j=>!j&&y(),children:hn.createPortal(b.jsxs(An.Menu,{show:!0,className:me("shadow-lg column-menu",Ju.columnMenu),style:{position:"fixed",top:C?a.y??0:0,left:C?a.x??0:0,zIndex:9999,display:C?"block":"none"},onClick:y,children:[x!=="right"&&e.column.getCanPin()&&!E?b.jsx(An.Item,{className:me(Ju.columnMenuItem,{"text-danger":x}),onClick:()=>e.column.pin(x==="left"?!1:"left"),children:x==="left"?i.columnUnpin:i.columnPinLeft}):null,x!=="left"&&e.column.getCanPin()&&!E?b.jsx(An.Item,{className:me(Ju.columnMenuItem,{"text-danger":x}),onClick:()=>e.column.pin(x==="right"?!1:"right"),children:x==="right"?i.columnUnpin:i.columnPinRight}):null,e.column.getCanGroup()?b.jsx(An.Item,{className:me(Ju.columnMenuItem,{"text-danger":$}),onClick:e.column.getToggleGroupingHandler(),children:$?i.columnUngroup:i.columnGroup}):null]}),document.body)}),e.isPlaceholder?null:b.jsxs("div",{children:[b.jsxs("div",{className:w(e.getContext()),role:m(e.getContext()),onClick:e.column.getToggleSortingHandler(),children:[b.jsxs("div",{className:"d-flex flex-row align-items-center gap-1",children:[s?b.jsx("div",{...u,...c,className:me("reorder-handle",He.reorderHandle,{dragging:p,[He.dragging]:p}),children:b.jsx(r,{icon:"drag-handle"})}):null,uk(e.column.columnDef.header,e.getContext())]}),e.column.getCanSort()&&e.column.getIsSorted()?b.jsx(r,{icon:`sort-${e.column.getIsSorted()||"asc"}`}):null]}),e.column.getCanFilter()?b.jsx(Tz,{column:e.column,IconComponent:r,texts:i}):e.column.id==="select-col"?b.jsx("div",{className:me("row-selection-info",He.rowSelectionInfo),children:`[${Object.values(t.getState().rowSelection).filter(Boolean).length}]`}):null]}),e.column.getCanResize()?b.jsx("div",{onDoubleClick:()=>e.column.resetSize(),onMouseDown:e.getResizeHandler(),onTouchStart:e.getResizeHandler(),className:me("resizer",He.resizer,e.column.getIsResizing()?"isResizing":"",e.column.getIsResizing()?He.isResizing:""),style:{transform:t.options.columnResizeMode==="onEnd"&&e.column.getIsResizing()?`translateX(${(t.options.columnResizeDirection==="rtl"?-1:1)*(t.getState().columnSizingInfo.deltaOffset??0)}px)`:""},children:b.jsx("div",{className:me("resizer-bar",He.resizerBar)})}):null]})},oH="_icon-button_1nuxt_1",sH="_sm_1nuxt_34",lH="_lg_1nuxt_47",ed={"icon-button":"_icon-button_1nuxt_1",iconButton:oH,sm:sH,lg:lH},gi=({onClick:e,color:t="primary",disabled:n,children:r,size:i,className:a,...o})=>b.jsx("button",{"aria-disabled":n,className:me(a,"icon-button",ed.iconButton,ed[t],{"text-primary":!n&&t==="primary","text-secondary":n||t==="secondary","text-danger":!n&&t==="danger","text-success":!n&&t==="success"},{[ed.sm]:i==="sm",[ed.lg]:i==="lg"}),disabled:n,type:"button",onClick:e,...o,children:r}),cH=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:h.isValidElement(s)&&typeof((r=s.props)==null?void 0:r.children)=="string"?(i=s.props)==null?void 0:i.children:e==null?void 0:e.id}return h.isValidElement(t)&&typeof((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},jw=({onClick:e,variant:t="primary",disabled:n,children:r,size:i,...a})=>b.jsx(J0,{disabled:n,size:i,variant:t,onClick:e,...a,children:r});function rv(e,t){return rv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},rv(e,t)}function uH(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,rv(e,t)}function dH(e){var t=lu(e);return t&&t.defaultView||window}function fH(e,t){return dH(e).getComputedStyle(e,t)}var hH=/([A-Z])/g;function pH(e){return e.replace(hH,"-$1").toLowerCase()}var mH=/^ms-/;function td(e){return pH(e).replace(mH,"-ms-")}var gH=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function vH(e){return!!(e&&gH.test(e))}function ki(e,t){var n="",r="";if(typeof t=="string")return e.style.getPropertyValue(td(t))||fH(e).getPropertyValue(td(t));Object.keys(t).forEach(function(i){var a=t[i];!a&&a!==0?e.style.removeProperty(td(i)):vH(i)?r+=i+"("+a+") ":n+=td(i)+": "+a+";"}),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n}const Dw={disabled:!1};var bH=process.env.NODE_ENV!=="production"?qe.oneOfType([qe.number,qe.shape({enter:qe.number,exit:qe.number,appear:qe.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&qe.oneOfType([qe.string,qe.shape({enter:qe.string,exit:qe.string,active:qe.string}),qe.shape({enter:qe.string,enterDone:qe.string,enterActive:qe.string,exit:qe.string,exitDone:qe.string,exitActive:qe.string})]);const jk=h.createContext(null);var yH=function(e){return e.scrollTop},Ll="unmounted",Ji="exited",_i="entering",ra="entered",uf="exiting",Bi=function(e){uH(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=_i):l=ra:r.unmountOnExit||r.mountOnEnter?l=Ll:l=Ji,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(r,i){var a=r.in;return a&&i.status===Ll?{status:Ji}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(r){var i=null;if(r!==this.props){var a=this.state.status;this.props.in?a!==_i&&a!==ra&&(i=_i):(a===_i||a===ra)&&(i=uf)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,i,a,o;return i=a=o=r,r!=null&&typeof r!="number"&&(i=r.exit,a=r.enter,o=r.appear!==void 0?r.appear:a),{exit:i,enter:a,appear:o}},n.updateStatus=function(r,i){if(r===void 0&&(r=!1),i!==null)if(this.cancelNextCallback(),i===_i){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:hn.findDOMNode(this);a&&yH(a)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ji&&this.setState({status:Ll})},n.performEnter=function(r){var i=this,a=this.props.enter,o=this.context?this.context.isMounting:r,s=this.props.nodeRef?[o]:[hn.findDOMNode(this),o],l=s[0],c=s[1],u=this.getTimeouts(),d=o?u.appear:u.enter;if(!r&&!a||Dw.disabled){this.safeSetState({status:ra},function(){i.props.onEntered(l)});return}this.props.onEnter(l,c),this.safeSetState({status:_i},function(){i.props.onEntering(l,c),i.onTransitionEnd(d,function(){i.safeSetState({status:ra},function(){i.props.onEntered(l,c)})})})},n.performExit=function(){var r=this,i=this.props.exit,a=this.getTimeouts(),o=this.props.nodeRef?void 0:hn.findDOMNode(this);if(!i||Dw.disabled){this.safeSetState({status:Ji},function(){r.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:uf},function(){r.props.onExiting(o),r.onTransitionEnd(a.exit,function(){r.safeSetState({status:Ji},function(){r.props.onExited(o)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(r,i){i=this.setNextCallback(i),this.setState(r,i)},n.setNextCallback=function(r){var i=this,a=!0;return this.nextCallback=function(o){a&&(a=!1,i.nextCallback=null,r(o))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(r,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:hn.findDOMNode(this),o=r==null&&!this.props.addEndListener;if(!a||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],l=s[0],c=s[1];this.props.addEndListener(l,c)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===Ll)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var o=OE(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return h.createElement(jk.Provider,{value:null},typeof a=="function"?a(r,o):h.cloneElement(h.Children.only(a),o))},t}(h.Component);Bi.contextType=jk;Bi.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:qe.shape({current:typeof Element>"u"?qe.any:function(e,t,n,r,i,a){var o=e[t];return qe.instanceOf(o&&"ownerDocument"in o?o.ownerDocument.defaultView.Element:Element)(e,t,n,r,i,a)}}),children:qe.oneOfType([qe.func.isRequired,qe.element.isRequired]).isRequired,in:qe.bool,mountOnEnter:qe.bool,unmountOnExit:qe.bool,appear:qe.bool,enter:qe.bool,exit:qe.bool,timeout:function(e){var t=bH;e.addEndListener||(t=t.isRequired);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.apply(void 0,[e].concat(r))},addEndListener:qe.func,onEnter:qe.func,onEntering:qe.func,onEntered:qe.func,onExit:qe.func,onExiting:qe.func,onExited:qe.func}:{};function zo(){}Bi.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:zo,onEntering:zo,onEntered:zo,onExit:zo,onExiting:zo,onExited:zo};Bi.UNMOUNTED=Ll;Bi.EXITED=Ji;Bi.ENTERING=_i;Bi.ENTERED=ra;Bi.EXITING=uf;function xH(e){return e.code==="Escape"||e.keyCode===27}function wH(){const e=ie.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}function gu(e){if(!e||typeof e=="function")return null;const{major:t}=wH();return t>=19?e.props.ref:e.ref}function _H(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 CH(e){var t=ki(e,"transitionDuration")||"",n=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*n}function $H(e,t,n){n===void 0&&(n=5);var r=!1,i=setTimeout(function(){r||_H(e,"transitionend",!0)},t+n),a=ia(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(i),a()}}function Dk(e,t,n,r){n==null&&(n=CH(e)||0);var i=$H(e,n,r),a=ia(e,"transitionend",t);return function(){i(),a()}}function Nw(e,t){const n=ki(e,t)||"",r=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*r}function Nk(e,t){const n=Nw(e,"transitionDuration"),r=Nw(e,"transitionDelay"),i=Dk(e,a=>{a.target===e&&(i(),t(a))},n+r)}function _l(...e){return e.filter(t=>t!=null).reduce((t,n)=>{if(typeof n!="function")throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return t===null?n:function(...r){t.apply(this,r),n.apply(this,r)}},null)}function Ik(e){e.offsetHeight}function SH(e){return e&&"setState"in e?hn.findDOMNode(e):e??null}const bb=h.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:i,onExited:a,addEndListener:o,children:s,childRef:l,...c},u)=>{const d=h.useRef(null),f=cu(d,l),p=$=>{f(SH($))},g=$=>E=>{$&&d.current&&$(d.current,E)},m=h.useCallback(g(e),[e]),v=h.useCallback(g(t),[t]),w=h.useCallback(g(n),[n]),_=h.useCallback(g(r),[r]),y=h.useCallback(g(i),[i]),C=h.useCallback(g(a),[a]),x=h.useCallback(g(o),[o]);return b.jsx(Bi,{ref:u,...c,onEnter:m,onEntered:w,onEntering:v,onExit:_,onExited:C,onExiting:y,addEndListener:x,nodeRef:d,children:typeof s=="function"?($,E)=>s($,{...E,ref:p}):h.cloneElement(s,{ref:p})})});bb.displayName="TransitionWrapper";const EH={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function kH(e,t){const n=`offset${e[0].toUpperCase()}${e.slice(1)}`,r=t[n],i=EH[e];return r+parseInt(ki(t,i[0]),10)+parseInt(ki(t,i[1]),10)}const TH={[Ji]:"collapse",[uf]:"collapsing",[_i]:"collapsing",[ra]:"collapse show"},Pk=h.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:i,className:a,children:o,dimension:s="height",in:l=!1,timeout:c=300,mountOnEnter:u=!1,unmountOnExit:d=!1,appear:f=!1,getDimensionValue:p=kH,...g},m)=>{const v=typeof s=="function"?s():s,w=h.useMemo(()=>_l($=>{$.style[v]="0"},e),[v,e]),_=h.useMemo(()=>_l($=>{const E=`scroll${v[0].toUpperCase()}${v.slice(1)}`;$.style[v]=`${$[E]}px`},t),[v,t]),y=h.useMemo(()=>_l($=>{$.style[v]=null},n),[v,n]),C=h.useMemo(()=>_l($=>{$.style[v]=`${p(v,$)}px`,Ik($)},r),[r,p,v]),x=h.useMemo(()=>_l($=>{$.style[v]=null},i),[v,i]);return b.jsx(bb,{ref:m,addEndListener:Nk,...g,"aria-expanded":g.role?l:null,onEnter:w,onEntering:_,onEntered:y,onExit:C,onExiting:x,childRef:gu(o),in:l,timeout:c,mountOnEnter:u,unmountOnExit:d,appear:f,children:($,E)=>h.cloneElement(o,{...E,className:me(a,o.props.className,TH[$],v==="width"&&"collapse-horizontal")})})});Pk.displayName="Collapse";function Lk(e,t){return Array.isArray(e)?e.includes(t):e===t}const vu=ie.createContext({});vu.displayName="AccordionContext";const yb=ie.forwardRef(({as:e="div",bsPrefix:t,className:n,children:r,eventKey:i,...a},o)=>{const{activeEventKey:s}=h.useContext(vu);return t=Et(t,"accordion-collapse"),b.jsx(Pk,{ref:o,in:Lk(s,i),...a,className:me(n,t),children:b.jsx(e,{children:ie.Children.only(r)})})});yb.displayName="AccordionCollapse";const $h=ie.createContext({eventKey:""});$h.displayName="AccordionItemContext";const Fk=ie.forwardRef(({as:e="div",bsPrefix:t,className:n,onEnter:r,onEntering:i,onEntered:a,onExit:o,onExiting:s,onExited:l,...c},u)=>{t=Et(t,"accordion-body");const{eventKey:d}=h.useContext($h);return b.jsx(yb,{eventKey:d,onEnter:r,onEntering:i,onEntered:a,onExit:o,onExiting:s,onExited:l,children:b.jsx(e,{ref:u,...c,className:me(n,t)})})});Fk.displayName="AccordionBody";function OH(e,t){const{activeEventKey:n,onSelect:r,alwaysOpen:i}=h.useContext(vu);return a=>{let o=e===n?null:e;i&&(Array.isArray(n)?n.includes(e)?o=n.filter(s=>s!==e):o=[...n,e]:o=[e]),r==null||r(o,a),t==null||t(a)}}const xb=ie.forwardRef(({as:e="button",bsPrefix:t,className:n,onClick:r,...i},a)=>{t=Et(t,"accordion-button");const{eventKey:o}=h.useContext($h),s=OH(o,r),{activeEventKey:l}=h.useContext(vu);return e==="button"&&(i.type="button"),b.jsx(e,{ref:a,onClick:s,...i,"aria-expanded":Array.isArray(l)?l.includes(o):o===l,className:me(n,t,!Lk(l,o)&&"collapsed")})});xb.displayName="AccordionButton";const Bk=ie.forwardRef(({as:e="h2","aria-controls":t,bsPrefix:n,className:r,children:i,onClick:a,...o},s)=>(n=Et(n,"accordion-header"),b.jsx(e,{ref:s,...o,className:me(r,n),children:b.jsx(xb,{onClick:a,"aria-controls":t,children:i})})));Bk.displayName="AccordionHeader";const zk=ie.forwardRef(({as:e="div",bsPrefix:t,className:n,eventKey:r,...i},a)=>{t=Et(t,"accordion-item");const o=h.useMemo(()=>({eventKey:r}),[r]);return b.jsx($h.Provider,{value:o,children:b.jsx(e,{ref:a,...i,className:me(n,t)})})});zk.displayName="AccordionItem";const Wk=ie.forwardRef((e,t)=>{const{as:n="div",activeKey:r,bsPrefix:i,className:a,onSelect:o,flush:s,alwaysOpen:l,...c}=ME(e,{activeKey:"onSelect"}),u=Et(i,"accordion"),d=h.useMemo(()=>({activeEventKey:r,onSelect:o,alwaysOpen:l}),[r,o,l]);return b.jsx(vu.Provider,{value:d,children:b.jsx(n,{ref:t,...c,className:me(a,u,s&&`${u}-flush`)})})});Wk.displayName="Accordion";const Na=Object.assign(Wk,{Button:xb,Collapse:yb,Item:zk,Header:Bk,Body:Fk}),MH=e=>ie.forwardRef((t,n)=>b.jsx("div",{...t,ref:n,className:me(t.className,e)})),AH=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",RH=typeof document<"u",Iw=RH||AH?h.useLayoutEffect:h.useEffect,jH={[_i]:"show",[ra]:"show"},wb=ie.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:r,...i},a)=>{const o={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...i},s=h.useCallback((l,c)=>{Ik(l),r==null||r(l,c)},[r]);return b.jsx(bb,{ref:a,addEndListener:Nk,...o,onEnter:s,childRef:gu(t),children:(l,c)=>ie.cloneElement(t,{...c,className:me("fade",e,t.props.className,jH[l],n[l])})})});wb.displayName="Fade";const DH={"aria-label":qe.string,onClick:qe.func,variant:qe.oneOf(["white"])},_b=ie.forwardRef(({className:e,variant:t,"aria-label":n="Close",...r},i)=>b.jsx("button",{ref:i,type:"button",className:me("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r}));_b.displayName="CloseButton";_b.propTypes=DH;function NH(e){const t=h.useRef(e);return t.current=e,t}function IH(e){const t=NH(e);h.useEffect(()=>()=>t.current(),[])}const Pw=e=>!e||typeof e=="function"?e:t=>{e.current=t};function PH(e,t){const n=Pw(e),r=Pw(t);return i=>{n&&n(i),r&&r(i)}}function Cb(e,t){return h.useMemo(()=>PH(e,t),[e,t])}var nd;function Lw(e){if((!nd&&nd!==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),nd=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return nd}function LH(){return h.useState(null)}function Mm(e){e===void 0&&(e=lu());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function FH(e){const t=h.useRef(e);return t.current=e,t}function BH(e){const t=FH(e);h.useEffect(()=>()=>t.current(),[])}function zH(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const Fw=X0("modal-open");let $b=class{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:r=!1}={}){this.handleContainerOverflow=n,this.isRTL=r,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return zH(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const n={overflow:"hidden"},r=this.isRTL?"paddingLeft":"paddingRight",i=this.getElement();t.style={overflow:i.style.overflow,[r]:i.style[r]},t.scrollBarWidth&&(n[r]=`${parseInt(ki(i,r)||"0",10)+t.scrollBarWidth}px`),i.setAttribute(Fw,""),ki(i,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(Fw),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 Am=(e,t)=>Us?e==null?(t||lu()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function WH(e,t){const n=bh(),[r,i]=h.useState(()=>Am(e,n==null?void 0:n.document));if(!r){const a=Am(e);a&&i(a)}return h.useEffect(()=>{},[t,r]),h.useEffect(()=>{const a=Am(e);a!==r&&i(a)},[e,r]),r}function UH({children:e,in:t,onExited:n,mountOnEnter:r,unmountOnExit:i}){const a=h.useRef(null),o=h.useRef(t),s=zn(n);h.useEffect(()=>{t?o.current=!0:s(a.current)},[t,s]);const l=Cb(a,gu(e)),c=h.cloneElement(e,{ref:l});return t?c:i||!o.current&&r?null:c}const HH=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function VH(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 qH(e){let{onEnter:t,onEntering:n,onEntered:r,onExit:i,onExiting:a,onExited:o,addEndListener:s,children:l}=e,c=VH(e,HH);const u=h.useRef(null),d=Cb(u,gu(l)),f=C=>x=>{C&&u.current&&C(u.current,x)},p=h.useCallback(f(t),[t]),g=h.useCallback(f(n),[n]),m=h.useCallback(f(r),[r]),v=h.useCallback(f(i),[i]),w=h.useCallback(f(a),[a]),_=h.useCallback(f(o),[o]),y=h.useCallback(f(s),[s]);return Object.assign({},c,{nodeRef:u},t&&{onEnter:p},n&&{onEntering:g},r&&{onEntered:m},i&&{onExit:v},a&&{onExiting:w},o&&{onExited:_},s&&{addEndListener:y},{children:typeof l=="function"?(C,x)=>l(C,Object.assign({},x,{ref:d})):h.cloneElement(l,{ref:d})})}const YH=["component"];function GH(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 KH=ie.forwardRef((e,t)=>{let{component:n}=e,r=GH(e,YH);const i=qH(r);return b.jsx(n,Object.assign({ref:t},i))});function ZH({in:e,onTransition:t}){const n=h.useRef(null),r=h.useRef(!0),i=zn(t);return Iw(()=>{if(!n.current)return;let a=!1;return i({in:e,element:n.current,initial:r.current,isStale:()=>a}),()=>{a=!0}},[e,i]),Iw(()=>(r.current=!1,()=>{r.current=!0}),[]),n}function XH({children:e,in:t,onExited:n,onEntered:r,transition:i}){const[a,o]=h.useState(!t);t&&a&&o(!1);const s=ZH({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=Cb(s,gu(e));return a&&!t?null:h.cloneElement(e,{ref:l})}function Bw(e,t,n){return e?b.jsx(KH,Object.assign({},n,{component:e})):t?b.jsx(XH,Object.assign({},n,{transition:t})):b.jsx(UH,Object.assign({},n))}const QH=["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 JH(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}let Rm;function eV(e){return Rm||(Rm=new $b({ownerDocument:e==null?void 0:e.document})),Rm}function tV(e){const t=bh(),n=e||eV(t),r=h.useRef({dialog:null,backdrop:null});return Object.assign(r.current,{add:()=>n.add(r.current),remove:()=>n.remove(r.current),isTopModal:()=>n.isTopModal(r.current),setDialogRef:h.useCallback(i=>{r.current.dialog=i},[]),setBackdropRef:h.useCallback(i=>{r.current.backdrop=i},[])})}const Uk=h.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:p,runBackdropTransition:g,autoFocus:m=!0,enforceFocus:v=!0,restoreFocus:w=!0,restoreFocusOptions:_,renderDialog:y,renderBackdrop:C=q=>b.jsx("div",Object.assign({},q)),manager:x,container:$,onShow:E,onHide:O=()=>{},onExit:k,onExited:j,onExiting:S,onEnter:T,onEntering:R,onEntered:N}=e,D=JH(e,QH);const M=bh(),I=WH($),z=tV(x),U=AE(),P=RE(n),[W,Y]=h.useState(!n),X=h.useRef(null);h.useImperativeHandle(t,()=>z,[z]),Us&&!P&&n&&(X.current=Mm(M==null?void 0:M.document)),n&&W&&Y(!1);const K=zn(()=>{if(z.add(),F.current=ia(document,"keydown",B),L.current=ia(document,"focus",()=>setTimeout(ee),!0),E&&E(),m){var q,le;const ne=Mm((q=(le=z.dialog)==null?void 0:le.ownerDocument)!=null?q:M==null?void 0:M.document);z.dialog&&ne&&!nf(z.dialog,ne)&&(X.current=ne,z.dialog.focus())}}),Z=zn(()=>{if(z.remove(),F.current==null||F.current(),L.current==null||L.current(),w){var q;(q=X.current)==null||q.focus==null||q.focus(_),X.current=null}});h.useEffect(()=>{!n||!I||K()},[n,I,K]),h.useEffect(()=>{W&&Z()},[W,Z]),BH(()=>{Z()});const ee=zn(()=>{if(!v||!U()||!z.isTopModal())return;const q=Mm(M==null?void 0:M.document);z.dialog&&q&&!nf(z.dialog,q)&&z.dialog.focus()}),J=zn(q=>{q.target===q.currentTarget&&(c==null||c(q),s===!0&&O())}),B=zn(q=>{l&&xH(q)&&z.isTopModal()&&(u==null||u(q),q.defaultPrevented||O())}),L=h.useRef(),F=h.useRef(),H=(...q)=>{Y(!0),j==null||j(...q)};if(!I)return null;const A=Object.assign({role:r,ref:z.setDialogRef,"aria-modal":r==="dialog"?!0:void 0},D,{style:a,className:i,tabIndex:-1});let Q=y?y(A):b.jsx("div",Object.assign({},A,{children:ie.cloneElement(o,{role:"document"})}));Q=Bw(d,f,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:k,onExiting:S,onExited:H,onEnter:T,onEntering:R,onEntered:N,children:Q});let G=null;return s&&(G=C({ref:z.setBackdropRef,onClick:J}),G=Bw(p,g,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:G})),b.jsx(b.Fragment,{children:hn.createPortal(b.jsxs(b.Fragment,{children:[G,Q]}),I)})});Uk.displayName="Modal";const nV=Object.assign(Uk,{Manager:$b});function rV(e,t){return e.classList?e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function iV(e,t){e.classList?e.classList.add(t):rV(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function zw(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function aV(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=zw(e.className,t):e.setAttribute("class",zw(e.className&&e.className.baseVal||"",t))}const Wo={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class oV extends $b{adjustAndStore(t,n,r){const i=n.style[t];n.dataset[t]=i,ki(n,{[t]:`${parseFloat(ki(n,t))+r}px`})}restore(t,n){const r=n.dataset[t];r!==void 0&&(delete n.dataset[t],ki(n,{[t]:r}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(iV(n,"modal-open"),!t.scrollBarWidth)return;const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";Xi(n,Wo.FIXED_CONTENT).forEach(a=>this.adjustAndStore(r,a,t.scrollBarWidth)),Xi(n,Wo.STICKY_CONTENT).forEach(a=>this.adjustAndStore(i,a,-t.scrollBarWidth)),Xi(n,Wo.NAVBAR_TOGGLER).forEach(a=>this.adjustAndStore(i,a,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();aV(n,"modal-open");const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";Xi(n,Wo.FIXED_CONTENT).forEach(a=>this.restore(r,a)),Xi(n,Wo.STICKY_CONTENT).forEach(a=>this.restore(i,a)),Xi(n,Wo.NAVBAR_TOGGLER).forEach(a=>this.restore(i,a))}}let jm;function sV(e){return jm||(jm=new oV(e)),jm}const Hk=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=Et(t,"modal-body"),b.jsx(n,{ref:i,className:me(e,t),...r})));Hk.displayName="ModalBody";const Vk=ie.createContext({onHide(){}}),Sb=ie.forwardRef(({bsPrefix:e,className:t,contentClassName:n,centered:r,size:i,fullscreen:a,children:o,scrollable:s,...l},c)=>{e=Et(e,"modal");const u=`${e}-dialog`,d=typeof a=="string"?`${e}-fullscreen-${a}`:`${e}-fullscreen`;return b.jsx("div",{...l,ref:c,className:me(u,t,i&&`${e}-${i}`,r&&`${u}-centered`,s&&`${u}-scrollable`,a&&d),children:b.jsx("div",{className:me(`${e}-content`,n),children:o})})});Sb.displayName="ModalDialog";const qk=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=Et(t,"modal-footer"),b.jsx(n,{ref:i,className:me(e,t),...r})));qk.displayName="ModalFooter";const Yk=ie.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:r,children:i,...a},o)=>{const s=h.useContext(Vk),l=tf(()=>{s==null||s.onHide(),r==null||r()});return b.jsxs("div",{ref:o,...a,children:[i,n&&b.jsx(_b,{"aria-label":e,variant:t,onClick:l})]})});Yk.displayName="AbstractModalHeader";const Gk=ie.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...i},a)=>(e=Et(e,"modal-header"),b.jsx(Yk,{ref:a,...i,className:me(t,e),closeLabel:n,closeButton:r})));Gk.displayName="ModalHeader";const lV=MH("h4"),Kk=ie.forwardRef(({className:e,bsPrefix:t,as:n=lV,...r},i)=>(t=Et(t,"modal-title"),b.jsx(n,{ref:i,className:me(e,t),...r})));Kk.displayName="ModalTitle";function cV(e){return b.jsx(wb,{...e,timeout:null})}function uV(e){return b.jsx(wb,{...e,timeout:null})}const Zk=ie.forwardRef(({bsPrefix:e,className:t,style:n,dialogClassName:r,contentClassName:i,children:a,dialogAs:o=Sb,"data-bs-theme":s,"aria-labelledby":l,"aria-describedby":c,"aria-label":u,show:d=!1,animation:f=!0,backdrop:p=!0,keyboard:g=!0,onEscapeKeyDown:m,onShow:v,onHide:w,container:_,autoFocus:y=!0,enforceFocus:C=!0,restoreFocus:x=!0,restoreFocusOptions:$,onEntered:E,onExit:O,onExiting:k,onEnter:j,onEntering:S,onExited:T,backdropClassName:R,manager:N,...D},M)=>{const[I,z]=h.useState({}),[U,P]=h.useState(!1),W=h.useRef(!1),Y=h.useRef(!1),X=h.useRef(null),[K,Z]=LH(),ee=cu(M,Z),J=tf(w),B=gE();e=Et(e,"modal");const L=h.useMemo(()=>({onHide:J}),[J]);function F(){return N||sV({isRTL:B})}function H(oe){if(!Us)return;const be=F().getScrollbarWidth()>0,Fe=oe.scrollHeight>lu(oe).documentElement.clientHeight;z({paddingRight:be&&!Fe?Lw():void 0,paddingLeft:!be&&Fe?Lw():void 0})}const A=tf(()=>{K&&H(K.dialog)});IH(()=>{Gg(window,"resize",A),X.current==null||X.current()});const Q=()=>{W.current=!0},G=oe=>{W.current&&K&&oe.target===K.dialog&&(Y.current=!0),W.current=!1},q=()=>{P(!0),X.current=Dk(K.dialog,()=>{P(!1)})},le=oe=>{oe.target===oe.currentTarget&&q()},ne=oe=>{if(p==="static"){le(oe);return}if(Y.current||oe.target!==oe.currentTarget){Y.current=!1;return}w==null||w()},re=oe=>{g?m==null||m(oe):(oe.preventDefault(),p==="static"&&q())},se=(oe,be)=>{oe&&H(oe),j==null||j(oe,be)},fe=oe=>{X.current==null||X.current(),O==null||O(oe)},_e=(oe,be)=>{S==null||S(oe,be),Z0(window,"resize",A)},ye=oe=>{oe&&(oe.style.display=""),T==null||T(oe),Gg(window,"resize",A)},xe=h.useCallback(oe=>b.jsx("div",{...oe,className:me(`${e}-backdrop`,R,!f&&"show")}),[f,R,e]),Me={...n,...I};Me.display="block";const ue=oe=>b.jsx("div",{role:"dialog",...oe,style:Me,className:me(t,e,U&&`${e}-static`,!f&&"show"),onClick:p?ne:void 0,onMouseUp:G,"data-bs-theme":s,"aria-label":u,"aria-labelledby":l,"aria-describedby":c,children:b.jsx(o,{...D,onMouseDown:Q,className:r,contentClassName:i,children:a})});return b.jsx(Vk.Provider,{value:L,children:b.jsx(nV,{show:d,ref:ee,backdrop:p,container:_,keyboard:!0,autoFocus:y,enforceFocus:C,restoreFocus:x,restoreFocusOptions:$,onEscapeKeyDown:re,onShow:v,onHide:w,onEnter:se,onEntering:_e,onEntered:E,onExit:fe,onExiting:k,onExited:ye,manager:F(),transition:f?cV:void 0,backdropTransition:f?uV:void 0,renderBackdrop:xe,renderDialog:ue})})});Zk.displayName="Modal";const Cl=Object.assign(Zk,{Body:Hk,Header:Gk,Title:Kk,Footer:qk,Dialog:Sb,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),dV="_modal_1sw52_1",fV="_settings-item_1sw52_1",hV="_label_1sw52_8",pV="_content_1sw52_11",mV="_column-item_1sw52_14",gV="_is-hidden_1sw52_20",Uo={modal:dV,settingsItem:fV,label:hV,content:pV,columnItem:mV,isHidden:gV},vV=({show:e,handleClose:t,texts:n,pageSize:r,columns:i,IconComponent:a,resetToDefault:o})=>{const[s,l]=h.useState(r.value?r.value.toString():"");h.useEffect(()=>{e&&l(r.value?r.value.toString():"")},[e,r.value]);const c=r.enabled;return b.jsxs(Cl,{className:me("settings-modal",Uo.modal),"data-testId":"settings-modal",show:e,onHide:t,children:[b.jsx(Cl.Header,{closeButton:!0,children:b.jsx(Cl.Title,{children:n==null?void 0:n.settingsModal.title})}),b.jsx(Cl.Body,{children:b.jsxs(Na,{children:[c?b.jsxs(Na.Item,{eventKey:"general-settings",children:[b.jsx(Na.Header,{children:n==null?void 0:n.settingsModal.generalSettings}),b.jsx(Na.Body,{className:"d-flex flex-column gap-1",children:r.enabled?b.jsxs("div",{className:Uo.settingsItem,children:[b.jsx("div",{className:me("text-nowrap",Uo.label),children:n==null?void 0:n.settingsModal.pageSize}),b.jsxs("div",{className:me("text-nowrap",Uo.content),children:[b.jsx(Jd.Control,{"data-testId":"page-size-input",list:"pageSizes",max:1e3,min:0,size:"sm",type:"number",value:s,onChange:u=>{l(u.target.value),u.target.value&&r.onChange(Number(u.target.value))}}),b.jsxs("datalist",{id:"pageSizes",children:[b.jsx("option",{value:"10"}),b.jsx("option",{value:"20"}),b.jsx("option",{value:"30"}),b.jsx("option",{value:"50"}),b.jsx("option",{value:"100"})]})]})]}):null})]}):null,b.jsxs(Na.Item,{eventKey:"column-settings",children:[b.jsx(Na.Header,{children:n==null?void 0:n.settingsModal.columnSettings}),b.jsx(Na.Body,{className:"d-flex flex-column gap-1",children:i.allColumns.filter(u=>{var d;return u.getCanHide()&&((d=u.columnDef.meta)==null?void 0:d.hidden)!==!0}).map(u=>b.jsxs("div",{className:me("column-item rounded border",Uo.columnItem,{[Uo.isHidden]:!u.getIsVisible()}),children:[cH(u),b.jsx(gi,{color:"secondary",onClick:()=>u.toggleVisibility(),children:b.jsx(a,{icon:u.getIsVisible()?"visibility":"visibility-off"})})]},u.id))})]})]})}),b.jsxs(Cl.Footer,{className:"d-flex justify-content-between align-items-center",children:[b.jsx(jw,{variant:"outline-secondary",onClick:()=>{o(),t()},children:n==null?void 0:n.settingsModal.revertDefaultSettings}),b.jsx(jw,{onClick:t,children:n==null?void 0:n.settingsModal.done})]})]})},bV=[["ArrowUp",[0,-1]],["ArrowDown",[0,1]],["ArrowLeft",[-1,0]],["ArrowRight",[1,0]]],Ww=new Map(bV),yV=(e,t,n,r,i,a)=>{const o=h.useState([0,0]),[s,l]=(e==null?void 0:e.cellSelectionState)??o,[c,u]=h.useState(),[d,f]=h.useState(),p=h.useCallback(v=>{e!=null&&e.disabled||l(v)},[e==null?void 0:e.disabled,l]),g=({fieldName:v,dataIndex:w})=>{u(v),f(w)},m=h.useCallback(v=>{if(e!=null&&e.disabled)return;const w=v.target;if(!(["INPUT","TEXTAREA"].includes(w.tagName)||w.isContentEditable))switch(v.code){case"Space":case"Enter":{v.preventDefault();const _=t.get(s[0]);if(e!=null&&e.onlyRowSelection){n[s[1]].toggleSelected();break}if(!_)return;_==="selection"&&n[s[1]].toggleSelected();break}case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":{v.preventDefault(),p(_=>{const y=[Math.min(Math.max(_[0]+Ww.get(v.code)[0],0),t.size-1),Math.min(Math.max(_[1]+Ww.get(v.code)[1],0),n.length-1)];if(r!==void 0){const C=Math.floor(y[1]/r);i(C)}return y});break}case"Tab":if(v.preventDefault(),v.shiftKey)p(_=>_[0]<=0?_[1]<=0?_:[t.size-1,_[1]-1]:[_[0]-1,_[1]]);else{p(_=>_[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,p,r,i]);return h.useEffect(()=>{if(c===void 0)return;u(void 0);const v=[...t.entries()].findIndex(w=>w[1]===c);l(w=>[v,w[1]])},[c,l,t]),h.useEffect(()=>{if(d===void 0)return;f(void 0);const v=n.findIndex(w=>w.index===d);if(l(w=>[w[0],v]),r!==void 0){const w=Math.floor(v/r);i(w)}},[i,r,d,n,l]),h.useEffect(()=>{if((e==null?void 0:e.onCellSelect)===void 0)return;const v=new AbortController;return window.addEventListener("keydown",m,{signal:v.signal}),()=>v.abort()},[m,e==null?void 0:e.onCellSelect]),h.useEffect(()=>{var v;(v=a.current)==null||v.scrollIntoView({behavior:"instant",block:"center",inline:"nearest"})},[a,s]),h.useEffect(()=>{var w;if((e==null?void 0:e.onCellSelect)===void 0)return;if(((w=n[s[1]])==null?void 0:w.index)===void 0){n.length>0&&p(_=>[_[0],0]);return}const v=t.get(s[0]);if(v===void 0){console.error(`Tried to access non-existing key ${s[0]} from following map: `,t);return}e==null||e.onCellSelect(n[s[1]].index,v)},[e,p,n,s,t]),{selectedCoords:s,changeSelectedCoords:p,setSelectedCellByFNDI:g}},xV=e=>e.type==="number"?"sum":"uniqueCount",wV=(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):uk(e,t)},_V=(e,t,n)=>{var r;return(r=e.meta)!=null&&r.customAggregatedCellRender?e.meta.customAggregatedCellRender(t):(xV(e)==="sum"?n.aggregation.sum:n.aggregation.uniqueCount)(Number(t.getValue()))},CV=e=>{let{transform:t}=e;return{...t,y:0}},$V=({ref:e,isLink:t,to:n,children:r,LinkComponent:i,onClick:a,onCellInteraction:o,...s})=>t&&n?b.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}):b.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}),SV=({row:e,cell:t,className:n,rowClassName:r,style:i,IconComponent:a,texts:o,formatters:s,LinkComponent:l,onRowClick:c,rowNavigation:u,onCellInteraction:d},f)=>{var m,v,w;const p=t.column.columnDef,g=h.useMemo(()=>{var _,y,C,x,$;if(!((_=p.meta)!=null&&_.disableCellClick)&&!t.getIsGrouped()&&!t.getIsAggregated()){if((y=p.meta)!=null&&y.onCellClick)return["onClickOwn",()=>{var E,O;return(O=(E=p.meta)==null?void 0:E.onCellClick)==null?void 0:O.call(E,e.original)}];if((C=p.meta)!=null&&C.cellNavigation){const E=($=(x=p.meta)==null?void 0:x.cellNavigation)==null?void 0:$.call(x,e.original);if(E)return["navigateOwn",E]}if(c)return["onClick",()=>c==null?void 0:c(e.original)];if(u){const E=u==null?void 0:u(e.original);if(E)return["navigate",E]}}},[p,e,c,u,t]);return b.jsxs($V,{className:me((_=>{var E,O,k,j,S,T;const y=((E=p==null?void 0:p.meta)==null?void 0:E.alignment)??"left",C=_.column.getIsSorted(),x=_.cell.getIsGrouped(),$=_.row.getIsExpanded();return me("td",He.td,{[He.left]:y==="left",[He.center]:y==="center",[He.right]:y==="right"||p.type==="number"&&((O=p.numericMeta)==null?void 0:O.noFormatting)!==!0},{sorted:C,[He.sorted]:C},{grouped:x,[He.grouped]:x},{expanded:$,[He.expanded]:$},{clickable:!!g,[He.clickable]:!!g},{"own-click":(k=g==null?void 0:g[0])==null?void 0:k.endsWith("Own"),[He.ownClick]:(j=g==null?void 0:g[0])==null?void 0:j.endsWith("Own")},r,(T=(S=p.meta)==null?void 0:S.className)==null?void 0:T.call(S,e.original))})(t.getContext()),n),isLink:!!((m=g==null?void 0:g[0])!=null&&m.startsWith("navigate")),LinkComponent:l,ref:f,style:{flex:`${t.column.getSize()} 1 0`,minWidth:t.column.getSize(),...i??{}},to:(v=g==null?void 0:g[0])!=null&&v.startsWith("navigate")?g[1]:void 0,onCellInteraction:d?()=>d==null?void 0:d(e.original):void 0,onClick:(w=g==null?void 0:g[0])!=null&&w.startsWith("onClick")?g[1]:void 0,children:[t.getIsGrouped()&&e.getCanExpand()?b.jsx(gi,{className:me("expander-button",He.expanderButton),size:"sm",onClick:e.getToggleExpandedHandler(),children:b.jsx(a,{icon:e.getIsExpanded()?"chevron-up":"chevron-down"})}):null,t.getIsAggregated()?_V(t.column.columnDef,t.getContext(),o):t.getIsPlaceholder()?null:wV(t.column.columnDef.cell,t.getContext(),s)," ",t.getIsGrouped()?`(${e.subRows.length})`:null]})},EV=h.forwardRef(SV),kV=({table:e,additionalOptions:t,IconComponent:n,texts:r,formatters:i,bottomBar:a,testId:o,LinkComponent:s,className:l,rowsClassName:c,onRowClick:u,rowNavigation:d,onCellInteraction:f,cellSelection:p,getRowProps:g},m)=>{var K,Z,ee,J,B,L,F,H,A;const v={boolean:Q=>QL(Q,n),date:JL,datetime:eF,number:tF,...i},[w,_]=h.useState(!1),y=!!e.options.getPaginationRowModel,C=Yz(Em(Ck,{}),Em($k,{}),Em(mb,{})),x=e.getState().columnOrder,$=Q=>{const{active:G,over:q}=Q;G&&q&&G.id!==q.id&&e.setColumnOrder(le=>{const ne=le.indexOf(G.id),re=le.indexOf(q.id);return ne===-1||re===-1?le:vb(le,ne,re)})},[E,O]=h.useState(null),k=Q=>{O(Q)},j=Q=>{if(!Q.getCanPin())return"";const G=Q.getIsPinned(),q=G==="right"&&Q.getIsFirstColumn("right"),le=G==="left"&&Q.getIsLastColumn("left");return me({pinned:G,[He.pinned]:G,"first-right":q,[He.firstRight]:q,"last-left":le,[He.lastLeft]:le})},S=Q=>{if(!Q.getCanPin())return{};const G=Q.getIsPinned();return{left:G==="left"?`${Q.getStart("left")}px`:void 0,right:G==="right"?`${Q.getAfter("right")}px`:void 0}},T=e.getState().sorting;h.useEffect(()=>{var Q,G;if(T.length>0){const q=T[0];if((Q=document.activeElement)!=null&&Q.classList.contains("filter"))return;(G=document.getElementById(`filter-${q.id}`))==null||G.focus()}},[T]);const R=e.getPrePaginationRowModel().rows,N=new Map(e.getVisibleLeafColumns().map((Q,G)=>[G,Q.id])),D=h.useRef(null),{selectedCoords:M,changeSelectedCoords:I,setSelectedCellByFNDI:z}=yV(p,N,R,y?((K=e.getState().pagination)==null?void 0:K.pageSize)??0:void 0,e.setPageIndex,D);h.useImperativeHandle(m,()=>({setSelectedCell:z}));const U=Q=>{var G;return p!=null&&p.onlyRowSelection&&((G=R[M[1]])==null?void 0:G.index)===Q.index?me(He.cellSelectedRow,"cell-selected-row",{[He.cellSelectionDisabled]:p.disabled}):""},P=(Q,G)=>{var q;return(p==null?void 0:p.onCellSelect)===void 0||M[0]!==Q||((q=R[M[1]])==null?void 0:q.index)!==G||p.onlyRowSelection?"":p.disabled?"bg-primary-subtle":me("selected-cell",He.selectedCell)},W=t.fullScreen.canFullScreen?((Z=t.fullScreen)==null?void 0:Z.isFullScreen)??!1:!1,Y=(ee=t.sizing)!=null&&ee.canSize?((J=t.sizing)==null?void 0:J.size)??"md":"md",X=e.getState().columnFilters;return b.jsx(KW,{collisionDetection:Qz,modifiers:[CV],sensors:C,onDragEnd:$,children:b.jsxs("div",{className:me("tanstack-bnf-table-container",He.tableScrollContainer,{"full-screen":W,[He.fullScreen]:W}),children:[X&&X.length>0?b.jsx("div",{className:me("remove-filters-button-wrapper",He.removeFiltersButtonWrapper),children:b.jsxs("button",{className:me(He.removeFiltersButton,"remove-filters-button"),type:"button",onClick:()=>e.resetColumnFilters(),children:[b.jsx("div",{className:"d-flex align-items-center justify-content-center",children:b.jsx(n,{icon:"remove-filters"})}),(r==null?void 0:r.removeFilters)??"Zrušit filtry"]})}):null,b.jsxs("div",{className:me("tanstack-bnf-table",He.table,{sm:Y==="sm",lg:Y==="lg",[He.sm]:Y==="sm",[He.lg]:Y==="lg"},l),"data-testid":o,children:[b.jsx("div",{className:me("thead",He.thead),children:e.getHeaderGroups().map(Q=>b.jsx("div",{className:me("tr",He.tr),children:b.jsx(lU,{items:x,strategy:oU,children:Q.headers.map(G=>{var q,le;return b.jsx(aH,{className:j(G.column),columnMenuPos:E,dragEnabled:t.enableReordering&&((le=(q=G.column.columnDef)==null?void 0:q.meta)==null?void 0:le.enableReordering)!==!1,header:G,IconComponent:n,style:S(G.column),table:e,texts:r,onColumnMenu:k},G.id)})})},Q.id))}),b.jsxs("div",{className:me("tbody",He.tbody),children:[(((L=(B=e.options)==null?void 0:B.data)==null?void 0:L.length)??0)===0?b.jsx("div",{className:me("alert alert-warning empty-table-alert",He.emptyTableAlert),children:r.emptyTable}):null,e.getRowModel().rows.map((Q,G)=>{var q;return b.jsx("div",{className:me("tr",He.tr,U(Q),g?(q=g(Q.original))==null?void 0:q.className:null),role:"data-row",...g?g(Q.original):{},children:Q.getVisibleCells().map((le,ne)=>{var re;return b.jsx(EV,{cell:le,className:me(j(le.column),P(ne,Q.index)),formatters:v,IconComponent:n,LinkComponent:s,ref:(p==null?void 0:p.onCellSelect)!==void 0&&M[0]===ne&&((re=R[M[1]])==null?void 0:re.index)===Q.index?D:null,row:Q,rowClassName:me(...(c==null?void 0:c.filter(se=>se.selector(Q.original)).map(se=>se.className))??[]),rowNavigation:d,style:S(le.column),texts:r,onCellInteraction:(p==null?void 0:p.onCellSelect)===void 0?f:se=>{var fe,_e;I([ne,((fe=e.getState().pagination)==null?void 0:fe.pageIndex)*((_e=e.getState().pagination)==null?void 0:_e.pageSize)+G]),f==null||f(se)},onRowClick:u},le.id)})},Q.id)})]}),b.jsx(vV,{columns:{allColumns:e.getAllColumns()},handleClose:()=>_(!1),IconComponent:n,pageSize:{enabled:y,value:((F=e.getState().pagination)==null?void 0:F.pageSize)??0,onChange:Q=>e.setPageSize(Q)},resetToDefault:t.resetToInitialValues,show:w,texts:r})]}),a!=null&&a.hidden?null:b.jsxs("div",{className:me("bottom-bar",He.bottomBar),children:[b.jsxs("div",{className:me("left-items",He.leftItems),children:[y?b.jsxs("div",{className:me("pagination",He.pagination),children:[b.jsx(gi,{disabled:!e.getCanPreviousPage(),onClick:()=>e.firstPage(),children:b.jsx(n,{icon:"page-first"})}),b.jsx(gi,{disabled:!e.getCanPreviousPage(),onClick:()=>e.previousPage(),children:b.jsx(n,{icon:"page-previous"})}),b.jsx("div",{className:me("page-info-text",He.pageInfoText),children:r.pagination.infoText(e.getState().pagination.pageIndex+1,e.getPageCount())}),b.jsx(gi,{disabled:!e.getCanNextPage(),onClick:()=>e.nextPage(),children:b.jsx(n,{icon:"page-next"})}),b.jsx(gi,{disabled:!e.getCanNextPage(),onClick:()=>e.lastPage(),children:b.jsx(n,{icon:"page-last"})})]}):null,b.jsx("div",{className:me("row-count-text",He.rowCountText),children:r.rowCountText(e.getRowCount())})]}),b.jsxs("div",{className:me("right-items",He.rightItems),children:[(H=t.fullScreen)!=null&&H.canFullScreen?b.jsx(gi,{color:t.fullScreen.isFullScreen?"danger":"primary","data-testId":"table-fullscreen-button",onClick:()=>t.fullScreen.toggleFullScreen(),children:b.jsx(n,{icon:t.fullScreen.isFullScreen?"fullscreen-exit":"fullscreen"})}):null,(A=t.sizing)!=null&&A.canSize?b.jsxs(An,{drop:"up",children:[b.jsx(An.Toggle,{bsPrefix:"sizing-toggle",className:me("sizing-toggle",He.sizingToggle),id:"table-sizing-button",size:"sm",children:b.jsx(n,{icon:"density"})}),b.jsxs(An.Menu,{className:me("shadow-lg sizing-menu",He.sizingMenu),children:[b.jsxs(An.Item,{className:me("sizing-menu-item",He.sizingMenuItem),onClick:()=>t.sizing.setSize("sm"),children:[Y==="sm"?b.jsx(n,{icon:"boolean-yes"}):null," ",r.sizing.sm]}),b.jsxs(An.Item,{className:me("sizing-menu-item",He.sizingMenuItem),onClick:()=>t.sizing.setSize("md"),children:[Y==="md"?b.jsx(n,{icon:"boolean-yes"}):null," ",r.sizing.md]}),b.jsxs(An.Item,{className:me("sizing-menu-item",He.sizingMenuItem),onClick:()=>t.sizing.setSize("lg"),children:[Y==="lg"?b.jsx(n,{icon:"boolean-yes"}):null," ",r.sizing.lg]})]})]}):null,t.excelExport.canExport?b.jsx(gi,{"data-testId":"table-excel-export-button",onClick:()=>t.excelExport.onExport(r),children:b.jsx(n,{icon:"excel-export"})}):null,b.jsx(gi,{"data-testId":"table-settings-button",onClick:()=>_(!0),children:b.jsx(n,{icon:"settings"})})]})]})]})})};h.forwardRef(kV);const TV=(e,t)=>t.split(".").reduce((n,r)=>n&&typeof n=="object"?n[r]:void 0,e),Xk=()=>{const e=Oz();return{accessor:(t,n)=>{const r=i=>TV(i,t)??"";return e.accessor(r,{...n,id:t})},display:t=>e.display(t),group:t=>e.group(t)}};function OV(e){return ut({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 MV(e){return ut({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 AV(e){return ut({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 RV(e){return ut({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 jV="_excel_18ggp_1",DV="_word_18ggp_5",NV="_pdf_18ggp_9",IV="_image_18ggp_13",rd={excel:jV,word:DV,pdf:NV,image:IV},Qk=({fileExtension:e,className:t,...n})=>{switch(e==null?void 0:e.toUpperCase()){case"JPG":case"JPEG":case"BMP":case"PNG":return b.jsx("span",{className:ce(t,rd.image),children:b.jsx(MV,{...n})});case"XLS":case"XLSX":case"CSV":return b.jsx(AV,{className:ce(t,rd.excel),...n});case"DOC":case"DOCM":case"DOCX":return b.jsx(RV,{className:ce(t,rd.word),...n});case"PDF":return b.jsx(x9,{className:ce(t,rd.pdf),...n});default:return b.jsx(OV,{})}},PV=()=>{const{ProjectIconComponent:e,texts:{documents:t}}=h.useContext(sn),{apiActions:{downloadFile:n},reducer:[r]}=h.useContext(yn),i=h.useMemo(()=>r.activeFolder==="root",[r.activeFolder]),a=h.useCallback((l,c,u)=>l?XS(c??"")&&localStorage.getItem("file-download-try-opening")!=="false"?b.jsx("span",{role:"button",className:"link link-primary d-flex align-items-center",onClick:f=>{f.stopPropagation(),n(u,!0)},children:l}):l:"",[n]),o=Xk();return{columns:h.useMemo(()=>[o.accessor("id",{header:"id",type:"number",meta:{hidden:!0}}),...i?[o.accessor("folderName",{header:t.folder,type:"string"})]:[],o.accessor("--icon",{header:"",type:"string",size:36,enableSorting:!1,meta:{alignment:"center",filterVariant:"none",customCellRender:l=>{const c=l.row.getValue("fileExtension"),u=l.row.getValue("id");return a(b.jsx(Qk,{fileExtension:(c==null?void 0:c.toString())??"",className:Hg.extensionIcon,size:18}),(c==null?void 0:c.toString())??"",Number((u==null?void 0:u.toString())??""))}}}),o.accessor("name",{header:t.name,type:"string",meta:{customCellRender:l=>{const c=l.row.getValue("name"),u=l.row.getValue("fileExtension"),d=l.row.getValue("id");return a((c==null?void 0:c.toString())??"",(u==null?void 0:u.toString())??"",Number((d==null?void 0:d.toString())??""))}}}),o.accessor("description",{header:t.description,type:"string"}),o.accessor("fileExtension",{header:t.fileExtension,type:"string",size:50,meta:{filterVariant:"select"}}),o.accessor("--downloadButton",{header:"",type:"number",size:38,enableSorting:!1,meta:{alignment:"center",filterVariant:"none",customCellRender:l=>{const c=l.row.getValue("id");return b.jsx(uh,{className:Hg.downloadButton,onClick:()=>n(Number((c==null?void 0:c.toString())??""),!1),children:b.jsx(e,{icon:"file-download",size:18})})}}}),o.accessor("documentTypeName",{header:t.documentType,type:"string",meta:{filterVariant:"select"}}),o.accessor("validToDate",{header:t.validSince,type:"date"}),o.accessor("size",{header:t.size,type:"number",meta:{filterVariant:"none",customCellRender:l=>{var u;const c=Number(((u=l.getValue())==null?void 0:u.toString())??"");return c!==void 0?xs(c*1024*1024):""}}}),o.accessor("archive",{header:t.archived,type:"boolean",meta:{filterVariant:"select",customCellRender:l=>l.getValue()?t.yes[0]:t.no[0]}})],[e,t.archived,t.description,t.documentType,t.fileExtension,t.folder,t.name,t.no,t.size,t.validSince,t.yes,n,i,a,o])}},LV=({BnfTableComponent:e,tableIdentifier:t,writePermissions:n})=>{const{reducer:[r,i]}=h.useContext(yn),{columns:a}=PV(),o=h.useCallback(p=>{i({type:"mark-files-by-action",setStateAction:p})},[i]),s=h.useMemo(()=>r.activeFolder==="root",[r.activeFolder]),l=h.useMemo(()=>{var p;return r.activeFolder==="root"?!1:((p=r.foldersMap.get(r.activeFolder))==null?void 0:p.onlyRead)??!1},[r.activeFolder,r.foldersMap]),c=h.useMemo(()=>({enabled:n&&!s,getRowId:p=>{var g;return((g=p.id)==null?void 0:g.toString())??""},selectedRows:Object.fromEntries(r.markedFiles.map(p=>[p.toString(),!0])),setSelectedRows:p=>{const g=Object.keys(p).filter(m=>p[m]).map(m=>Number(m));o(g)}}),[s,r.markedFiles,n,o]),u=h.useMemo(()=>r.activeFolder==="root"?r.filteredFiles:r.filteredFiles.filter(p=>p.folderId===r.activeFolder),[r.activeFolder,r.filteredFiles]),{getDraggableProps:d}=U0(),f=h.useCallback(p=>n===!1||l?{}:d(p.id),[d,l,n]);return b.jsx("div",{className:ce(Hg.wrapper),children:b.jsx(e,{data:u,columns:a,rowSelection:c,getRowProps:f,initState:{columnFilters:[{id:"archive",value:"false"}]},tableId:t,bottomBar:{hidden:!0}},r.activeFolder)})},FV="_wrapper_1q562_1",BV="_divButtons_1q562_10",Dm={wrapper:FV,divButtons:BV},zV="_wrapper_1bpdd_1",WV="_fileInput_1bpdd_5",Uw={wrapper:zV,fileInput:WV},UV=({entityId:e,entityType:t,children:n,disabled:r})=>{const i=h.useRef(null),[a,o]=h.useState(null),{reducer:[s]}=h.useContext(yn),l=f=>{var p;(((p=f.target.files)==null?void 0:p.length)??0)>0&&o(f.target.files)},c=h.useCallback(()=>{o(null),i.current&&(i.current.value="")},[]),u=h.useMemo(()=>`documents-upload-${t}-${e}`,[e,t]),d=h.useMemo(()=>r||s.activeFolder==="root",[r,s.activeFolder]);return b.jsxs("div",{className:Uw.wrapper,children:[b.jsx("label",{htmlFor:u,className:ce("btn btn-context luminus-context-button",d?"disabled":void 0),children:n}),b.jsx("input",{id:u,type:"file",multiple:!0,onChange:l,className:Uw.fileInput,ref:i,disabled:d}),a!==null?b.jsx(H0,{handleClose:c,files:a}):void 0]})},Wr=({children:e,onClick:t,className:n,disabled:r=!1})=>b.jsx(uh,{onClick:t,className:n,disabled:r,children:e}),HV=({className:e,entityId:t,entityType:n})=>{var E,O;const{texts:{documents:r}}=h.useContext(sn),{prompt:i}=OS(),{confirm:a}=j0(),{apiActions:o,reducer:[s,l]}=h.useContext(yn),{deleteFiles:c,renameFiles:u,downloadAsZip:d,archivateFiles:f,deleteDirectory:p}=o,{renameFolder:g}=Z4(),m=h.useMemo(()=>s.markedFiles.length===0,[s.markedFiles.length]),v=h.useMemo(()=>s.markedFiles.length===1,[s.markedFiles.length]),w=h.useCallback(async()=>{if(s.activeFolder==="root")return;const k=await i(r.enterNewFolderName,{input:"input"});k!==null&&g(s.activeFolder,k)},[r.enterNewFolderName,i,g,s.activeFolder]),_=h.useCallback(async()=>{if(s.activeFolder==="root")return;const k=await i(r.enterNewFileName,{input:"input"});k!==null&&u(k)},[r.enterNewFileName,i,u,s.activeFolder]),y=h.useMemo(()=>s.activeFolder==="root",[s.activeFolder]),C=h.useMemo(()=>{var k;return s.activeFolder==="root"?!1:((k=s.foldersMap.get(s.activeFolder))==null?void 0:k.onlyRead)??!1},[s.activeFolder,s.foldersMap]),x=h.useMemo(()=>s.markedFiles.every(k=>{var j;return((j=s.constantFiles.find(S=>S.id===k))==null?void 0:j.archive)===!1}),[s.constantFiles,s.markedFiles]),$=h.useMemo(()=>s.markedFiles.every(k=>{var j;return((j=s.constantFiles.find(S=>S.id===k))==null?void 0:j.archive)===!0}),[s.constantFiles,s.markedFiles]);return b.jsx("div",{className:ce(e,Dm.wrapper,s.state==="folder-choosing"?"ignore-dim":void 0,"d-flex justify-content-between"),children:s.state!=="folder-choosing"?b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:Dm.divButtons,children:[b.jsx(UV,{entityId:t,entityType:n,disabled:C,children:r.uploadFiles}),b.jsx(Wr,{onClick:()=>{l({type:"open-modal",modalType:"create-folder",chosenFolderId:s.activeFolder??"root"})},disabled:C,children:r.createFolder}),b.jsx(Wr,{disabled:s.activeFolder==="root"||((E=s.foldersMap.get(s.activeFolder))==null?void 0:E.isDefault),onClick:async()=>{var j;await a(`${r.deleteFolder} ${(j=s.foldersMap.get(s.activeFolder))==null?void 0:j.name}?`)&&p(s.activeFolder)},children:r.deleteFolder}),b.jsx(Wr,{disabled:s.activeFolder==="root"||((O=s.foldersMap.get(s.activeFolder))==null?void 0:O.isDefault),onClick:w,children:r.renameFolder})]}),!y&&!C?b.jsxs("div",{className:Dm.divButtons,children:[b.jsx(Wr,{onClick:()=>{l({type:"open-modal",modalType:"edit-file-properties"})},disabled:!v,children:r.editFileProperties}),b.jsx(Wr,{onClick:async()=>{await a(r.confirmDeleteFile(s.markedFiles.length))&&c(s.markedFiles)},disabled:m,children:r.delete}),$?b.jsx(Wr,{onClick:async()=>{await a(r.confirmDearchiveFile(s.markedFiles.length))&&await f(!0)},disabled:m,children:r.dearchivate}):b.jsx(Wr,{onClick:async()=>{await a(r.confirmArchiveFile(s.markedFiles.length))&&await f()},disabled:m||!x,children:r.archivate}),b.jsx(Wr,{onClick:_,disabled:m,children:r.rename}),b.jsx(Wr,{onClick:d,disabled:m,children:r.downloadZip})]}):null]}):s.state==="folder-choosing"?b.jsx(b.Fragment,{children:b.jsx(Wr,{onClick:()=>l({type:"return-from-folder-choosing"}),className:ce("ignore-dim","body-background-color"),children:r.back})}):void 0})},VV=({file:e})=>{const{confirm:t}=j0(),{reducer:[n],apiActions:{downloadFile:r}}=h.useContext(yn),{texts:{documents:i}}=h.useContext(sn),a=h.useCallback(async()=>{await t(i.confirmFileDownload(e.name,e.size==null?void 0:xs(e.size*1024*1024)))&&r(e.id)},[t,i,r,e.id,e.name,e.size]);return b.jsxs(Gf,{action:!0,onClick:a,children:[b.jsx(Bn,{variant:"body",className:"text-muted",children:eE(e.folderId,n.foldersMap)}),b.jsxs("div",{className:"d-flex justify-content-between gap-2",children:[b.jsx(Bn,{variant:"body",children:e.name}),b.jsx(Bn,{variant:"body",children:e.size==null?null:xs(e.size*1024*1024)})]})]})},qV="_typeSelect_m3myk_1",YV={typeSelect:qV},GV=()=>{const{reducer:[e]}=h.useContext(yn),{texts:{documents:t}}=h.useContext(sn),[n,r]=h.useState(""),[i,a]=h.useState(null),o=h.useMemo(()=>{const l=new Map;return e.filteredFiles.forEach(u=>{l.get(u.documentTypeId)===void 0&&l.set(u.documentTypeId,u.documentTypeName)}),[{id:null,name:t.all},...Array.from(l).map(u=>({id:u[0],name:u[1]}))]},[t.all,e.filteredFiles]),s=h.useMemo(()=>e.filteredFiles.filter(l=>k0(l.name,n)&&(i===null||l.documentTypeId===i)),[n,i,e.filteredFiles]);return b.jsxs("div",{className:"d-flex h-100 flex-column",children:[b.jsxs("div",{className:"d-flex gap-1 mb-1",children:[b.jsx(Y4,{options:o,label:t.documentType,value:i,onChange:a,isNumber:!0,size:"sm",className:YV.typeSelect}),b.jsx(V4,{label:t.search,type:"text",value:n,onChange:l=>r(l===null?"":l),className:"flex-grow-1",size:"sm"})]}),b.jsx(rS,{className:"overflow-y-auto",children:s.map(l=>b.jsx(VV,{file:l},l.id))})]})};function KV(e){return{name:e.name,defaultDocType:e.defaultDocType,childrenIds:[],parentId:e.parentId??null,isDefault:e.isDefault,onlyRead:e.onlyRead}}function ZV(e){const t=[],n=new Map,r=new Map;return e.forEach(i=>{n.set(i.id,KV(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 Hw(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 XV(e,t){return e.map(n=>{var r;return{...n,folderName:((r=t.get(n.folderId))==null?void 0:r.name)??""}})}const QV=([e,t],n,r)=>{const{texts:{documents:i}}=h.useContext(sn),{startLoading:a,stopLoading:o}=h.useContext(Xf),{addNotification:s}=ah(),l=oh(),c=h.useCallback(async y=>{a("documentList");try{const x=(await l.get(`/documents/${n}/${r}`)).data,{dirsMap:$,rootIds:E}=ZV(x.folders),O=XV(x.documents,$);t({type:"load-data",files:O,foldersMap:$,rootFolderIds:E,setActiveFolder:y})}finally{o("documentList")}},[l,t,r,n,a,o]);h.useEffect(()=>{c(!0)},[c]);const u=h.useCallback(async()=>{a("documents-types");try{const y=await l.get(`/documents/types/${n}`);if(y.status!==200)throw new Error(`Unexpected status code: ${y.status}`);t({type:"load-document-types",documentTypes:y.data})}finally{o("documents-types")}},[l,t,n,a,o]);h.useEffect(()=>{u()},[u]);const d=h.useCallback(async(y,C)=>{const x=C??e.markedFiles;a("documentsMove");try{await l.put(`/documents/move-to-folder?folderId=${y}`,x),t({type:"update-files",fileIds:x,newProperties:{folderId:y}}),s(i.fileMoveSuccessful(x.length,e.foldersMap.get(y).name),"success")}finally{o("documentsMove")}},[e.markedFiles,e.foldersMap,a,l,t,s,i,o]),f=h.useCallback(async y=>{const C=y??e.markedFiles;a("documentsFilesDelete");try{const x=await l.delete(`/documents/delete?${Ag(C,"documentIds")}`);if(x.status!==200)throw new Error(`Unexpected status code: ${x.status}`);t({type:"delete-files",fileIds:C}),s(i.fileDeleteSuccessful(C.length),"success")}finally{o("documentsFilesDelete")}},[e.markedFiles,a,l,t,s,i,o]),p=h.useCallback(async y=>{var C;if(!(y==="root"||(C=e.foldersMap.get(y))!=null&&C.isDefault)){a("documentsFolderDelete");try{const x=await l.delete(`/documents/folder/${y}`);if(x.status!==200)throw new Error(`Unexpected status code: ${x.status}`);t({type:"delete-folder",folderId:y}),s(i.folderDeleteSuccessful(e.foldersMap.get(y).name),"success")}finally{o("documentsFolderDelete")}}},[e.foldersMap,a,l,t,s,i,o]),g=h.useCallback(async y=>{a("documentsRename");try{const C=await l.put("/documents/update-name",{documentIds:e.markedFiles,name:y});if(C.status!==200)throw new Error(`Unexpected status code: ${C.status}`);c()}finally{o("documentsRename")}},[a,l,e.markedFiles,c,o]),m=h.useCallback(async y=>{a("documents-archivate");try{const C=await l.put(`/documents/${y?"dearchive":"archive"}`,e.markedFiles);if(C.status!==200)throw new Error(`Unexpected status code: ${C.status}`);t({type:"update-files",fileIds:e.markedFiles,newProperties:{archive:!y}}),s((y?i.dearchivateSuccessful:i.archivateSuccessful)(e.markedFiles.length),"success")}finally{o("documents-archivate")}},[a,l,e.markedFiles,t,s,i.archivateSuccessful,i.dearchivateSuccessful,o]),v=h.useCallback(async()=>{var C;if(e.activeFolder==="root")return;const y=e.markedFiles.length;s(i.downloadAsZip(y),"info"),a("documents-ZIP_download");try{const x=await l.get(`/documents/download-zip?${Ag(e.markedFiles,"documentIds")}`,{responseType:"blob"});zd(x.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]),w=h.useCallback(async(y,C)=>{s(i.downloadingFile,"info"),a("documents-downloading_file");try{const x=await l.get(`/documents/${y}?isSmall=true`,{responseType:"blob"}),$=e.constantFiles.find(O=>O.id===y),E=`${($==null?void 0:$.name)??y.toString()}.${$!=null&&$.fileExtension?$==null?void 0:$.fileExtension.toLowerCase():"unknown"}`;zd(x.data,E,C)}finally{o("documents-downloading_file")}},[s,i.downloadingFile,a,l,e.constantFiles,o]),_=h.useCallback(async(y,C)=>{a("documents-upload"),s(i.uploadingDocuments,"info");try{await l.postForm("/documents/upload",{files:y,...C}),await c()}finally{o("documents-upload")}},[a,s,i.uploadingDocuments,l,c,o]);return{loadDocuments:c,moveDocuments:d,deleteFiles:f,deleteDirectory:p,renameFiles:g,archivateFiles:m,downloadAsZip:v,downloadFile:w,uploadFiles:_}},JV=(e,t)=>{var n,r;switch(t.type){case"load-data":{const i={...e,constantFiles:t.files,filteredFiles:Hw(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=Hw(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.")}},eq=()=>{const e={state:"explorer",activeFolder:"root",searchString:"",filteredFiles:[],constantFiles:[],foldersMap:new Map,rootFolderIds:[],markedFiles:[],documentTypes:[]},[t,n]=h.useReducer(JV,e);return[t,n]},tq=h.memo(({entityType:e,entityId:t,className:n,BnfTableComponent:r,tableIdentifier:i,customRootFolderName:a,writePermissions:o=!0,...s})=>{const{isMobile:l}=iu(),{ProjectIconComponent:c,texts:{documents:u}}=h.useContext(sn),[d,f]=eq(),[p,g]=h.useState(null),{loadDocuments:m,...v}=QV([d,f],e,t),w=h.useMemo(()=>({entityId:t,entityType:e,apiActions:v,loadDocuments:m,reducer:[d,f]}),[t,e,v,m,d,f]),{getDropProps:_}=U0();return l?b.jsx(yn.Provider,{value:w,children:b.jsx(GV,{})}):b.jsx("div",{...s,className:ce(ja.wrapper,n),onDragOver:y=>{y.dataTransfer.dropEffect="none",y.stopPropagation(),y.preventDefault()},onDragEnter:y=>{y.dataTransfer.dropEffect="none",y.stopPropagation(),y.preventDefault()},children:b.jsxs(yn.Provider,{value:w,children:[b.jsx("div",{className:ce(d.state==="folder-choosing"?"dim-others":void 0,ja.explorerWindow),children:b.jsxs("ul",{className:ja.folderList,children:[b.jsx(P9,{customText:a??e}),d.rootFolderIds.map(y=>b.jsx(tE,{dirId:y,writePermissions:o},y))]})}),b.jsxs("div",{className:ce(ja.explorerWindow,ja.fileList),...o&&K9(d)?_(d.activeFolder,{onFilesDrop:y=>g(y),ignoreInner:!0}):{},children:[b.jsxs("div",{className:ja.dndText,children:[b.jsx(c,{icon:"file-upload",iconProps:{style:{marginRight:0}}}),b.jsx("span",{children:u.dropToUpload})]}),b.jsx(LV,{tableIdentifier:i,BnfTableComponent:r,writePermissions:o},(d.activeFolder==="root").toString())]}),o?b.jsx(HV,{className:ja.controls,entityType:e,entityId:t}):null,b.jsx(Y9,{}),p!==null?b.jsx(H0,{files:p,handleClose:()=>g(null),targetFolderId:d.activeFolder==="root"?void 0:d.activeFolder}):null]})})}),nq="Left",rq="Right",iq="Up",aq="Down",es={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},iv={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},Vw="mousemove",qw="mouseup",oq="touchend",sq="touchmove",lq="touchstart";function cq(e,t,n,r){return e>t?n>0?rq:nq:r>0?aq:iq}function Yw(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 uq(e,t){const n=u=>{const d="touches"in u;d&&u.touches.length>1||e((f,p)=>{p.trackMouse&&!d&&(document.addEventListener(Vw,r),document.addEventListener(qw,o));const{clientX:g,clientY:m}=d?u.touches[0]:u,v=Yw([g,m],p.rotationAngle);return p.onTouchStartOrOnMouseDown&&p.onTouchStartOrOnMouseDown({event:u}),Object.assign(Object.assign(Object.assign({},f),iv),{initial:v.slice(),xy:v,start:u.timeStamp||0})})},r=u=>{e((d,f)=>{const p="touches"in u;if(p&&u.touches.length>1)return d;if(u.timeStamp-d.start>f.swipeDuration)return d.swiping?Object.assign(Object.assign({},d),{swiping:!1}):d;const{clientX:g,clientY:m}=p?u.touches[0]:u,[v,w]=Yw([g,m],f.rotationAngle),_=v-d.xy[0],y=w-d.xy[1],C=Math.abs(_),x=Math.abs(y),$=(u.timeStamp||0)-d.start,E=Math.sqrt(C*C+x*x)/($||1),O=[_/($||1),y/($||1)],k=cq(C,x,_,y),j=typeof f.delta=="number"?f.delta:f.delta[k.toLowerCase()]||es.delta;if(C<j&&x<j&&!d.swiping)return d;const S={absX:C,absY:x,deltaX:_,deltaY:y,dir:k,event:u,first:d.first,initial:d.initial,velocity:E,vxvy:O};S.first&&f.onSwipeStart&&f.onSwipeStart(S),f.onSwiping&&f.onSwiping(S);let T=!1;return(f.onSwiping||f.onSwiped||f[`onSwiped${k}`])&&(T=!0),T&&f.preventScrollOnSwipe&&f.trackTouch&&u.cancelable&&u.preventDefault(),Object.assign(Object.assign({},d),{first:!1,eventData:S,swiping:!0})})},i=u=>{e((d,f)=>{let p;if(d.swiping&&d.eventData){if(u.timeStamp-d.start<f.swipeDuration){p=Object.assign(Object.assign({},d.eventData),{event:u}),f.onSwiped&&f.onSwiped(p);const g=f[`onSwiped${p.dir}`];g&&g(p)}}else f.onTap&&f.onTap({event:u});return f.onTouchEndOrOnMouseUp&&f.onTouchEndOrOnMouseUp({event:u}),Object.assign(Object.assign(Object.assign({},d),iv),{eventData:p})})},a=()=>{document.removeEventListener(Vw,r),document.removeEventListener(qw,o)},o=u=>{a(),i(u)},s=(u,d)=>{let f=()=>{};if(u&&u.addEventListener){const p=Object.assign(Object.assign({},es.touchEventOptions),d.touchEventOptions),g=[[lq,n,p],[sq,r,Object.assign(Object.assign({},p),d.preventScrollOnSwipe?{passive:!1}:{})],[oq,i,p]];g.forEach(([m,v,w])=>u.addEventListener(m,v,w)),f=()=>g.forEach(([m,v])=>u.removeEventListener(m,v))}return f},c={ref:u=>{u!==null&&e((d,f)=>{if(d.el===u)return d;const p={};return d.el&&d.el!==u&&d.cleanUpTouch&&(d.cleanUpTouch(),p.cleanUpTouch=void 0),f.trackTouch&&u&&(p.cleanUpTouch=s(u,f)),Object.assign(Object.assign(Object.assign({},d),{el:u}),p)})}};return t.trackMouse&&(c.onMouseDown=n),[c,s]}function dq(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 Eb(e){const{trackMouse:t}=e,n=ie.useRef(Object.assign({},iv)),r=ie.useRef(Object.assign({},es)),i=ie.useRef(Object.assign({},r.current));i.current=Object.assign({},r.current),r.current=Object.assign(Object.assign({},es),e);let a;for(a in es)r.current[a]===void 0&&(r.current[a]=es[a]);const[o,s]=ie.useMemo(()=>uq(l=>n.current=l(n.current,r.current),{trackMouse:t}),[t]);return n.current=dq(n.current,r.current,i.current,s),o}const fq="_side-content-bar_16o0s_1",hq="_mobile_16o0s_12",pq="_expanded_16o0s_20",mq="_content-container_16o0s_23",gq="_resizer_16o0s_31",vq="_expander_16o0s_46",bq="_icon_16o0s_65",pi={sideContentBar:fq,mobile:hq,expanded:pq,contentContainer:mq,resizer:gq,expander:vq,icon:bq},Jk=({width:e,children:t,isExpandedOnMobileState:[n,r],resizeable:i=!0,onResize:a})=>{const{ProjectIconComponent:o}=h.useContext(sn),{isMobile:s}=iu(),l=Eb({onSwipedRight:d=>{d.velocity>.8&&r(!1)},delta:100}),[c,u]=h.useState(null);return b.jsxs(b.Fragment,{children:[b.jsxs("section",{className:ce("luminus-side-content-bar shadow",pi.sideContentBar,{[pi.mobile]:s},{[pi.expanded]:n}),style:{width:`${e}px`},...l,children:[i&&!s?b.jsx("div",{role:"button",className:ce(pi.resizer,"luminus-side-content-bar-resizer","shadow"),draggable:!0,onDragStart:d=>u({startX:d.clientX,widthStart:e}),onDrag:d=>a(((c==null?void 0:c.widthStart)??0)+(((c==null?void 0:c.startX)??0)-d.clientX)),onDragEnd:()=>u(null),children:b.jsx(o,{className:pi.icon,icon:"resizer-horizontal"})}):null,b.jsx("div",{className:pi.contentContainer,children:t})]}),s?b.jsx("div",{role:"button",onClick:()=>r(!n),className:ce(pi.expander,{[pi.expanded]:n},"luminus-side-content-bar-expander","shadow"),children:b.jsx(o,{className:pi.icon,icon:"chevron-left"})}):null]})},yq=({title:e})=>b.jsx("div",{className:"mb-3",children:typeof e=="string"?b.jsx(Bn,{variant:"h3",children:e}):e}),xq="_full-screen-container_1rm4r_1",eT={fullScreenContainer:xq},wq=ce("overflow-hidden luminus-full-screen-container",eT.fullScreenContainer),_q="container-fluid",Cq=({title:e,children:t,sideContent:n,sideContentWidth:r=250,sideContentResizeable:i=!0,noPadding:a,className:o,variant:s="main",helmet:l,unavailableOnMobile:c})=>{const{addHelmet:u,removeHelmet:d}=h.useContext(B4),{texts:{container:f}}=h.useContext(sn),[p,g]=h.useState(r),[m,v]=h.useState(!1),w=h.useMemo(()=>{switch(s){case"fullScreen":return wq;case"main":return _q;default:throw new Error(`PageContainer got incorrect variant type: ${s}`)}},[s]);h.useEffect(()=>(l?u(l):typeof e=="string"&&e&&u(e),()=>d()),[l,u,d,e]);const _=Eb({onSwipedLeft:x=>{x.velocity>.8&&v(!0)},delta:100}),{isMobile:y}=iu(),C=h.useMemo(()=>y&&c,[y,c]);return h.useEffect(()=>{g(r)},[r]),b.jsxs(b.Fragment,{children:[b.jsx("div",{className:ce(w,a?"p-0":"p-3",o),style:s==="fullScreen"?{width:n?`calc(100% - ${p}px)`:"100%"}:void 0,..._,children:b.jsx("div",{className:s==="fullScreen"?eT.fullScreenContainer:void 0,style:s==="main"?{paddingRight:n?`${p}px`:void 0}:{height:"100%",width:"100%"},children:C?b.jsx(Rb,{variant:"warning",children:f.unavailableOnMobile}):b.jsxs(b.Fragment,{children:[e?b.jsx(yq,{title:e}):null,t]})})}),n&&!C?b.jsx(Jk,{width:p,isExpandedOnMobileState:[m,v],resizeable:i,onResize:x=>i?g(x):{},children:n}):null]})};var kb={};kb.match=Oq;kb.parse=tT;var $q=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,Sq=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,Eq=/^(?:(min|max)-)?(.+)/,kq=/(em|rem|px|cm|mm|in|pt|pc)?$/,Tq=/(dpi|dpcm|dppx)?$/;function Oq(e,t){return tT(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=Zw(c),u=Zw(u);break;case"resolution":c=Kw(c),u=Kw(u);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":c=Gw(c),u=Gw(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 tT(e){return e.split(",").map(function(t){t=t.trim();var n=t.match($q),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(Sq),c=l[1].toLowerCase().match(Eq);return{modifier:c[1],feature:c[2],value:l[2]}}),o})}function Gw(e){var t=Number(e),n;return t||(n=e.match(/^(\d+)\s*\/\s*(\d+)$/),t=n[1]/n[2]),t}function Kw(e){var t=parseFloat(e),n=String(e).match(Tq)[1];switch(n){case"dpcm":return t/2.54;case"dppx":return t*96;default:return t}}function Zw(e){var t=parseFloat(e),n=String(e).match(kq)[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 Mq=kb.match,Xw=typeof window<"u"?window.matchMedia:null;function Aq(e,t,n){var r=this,i;Xw&&!n&&(i=Xw.call(window,e)),i?(this.matches=i.matches,this.media=i.media,i.addListener(s)):(this.matches=Mq(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 Rq(e,t,n){return new Aq(e,t,n)}var jq=Rq;const Dq=on(jq);var Nq=/[A-Z]/g,Iq=/^ms-/,Nm={};function Pq(e){return"-"+e.toLowerCase()}function nT(e){if(Nm.hasOwnProperty(e))return Nm[e];var t=e.replace(Nq,Pq);return Nm[e]=Iq.test(t)?"-"+t:t}function Lq(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 Fn=ve.oneOfType([ve.string,ve.number]),rT={all:ve.bool,grid:ve.bool,aural:ve.bool,braille:ve.bool,handheld:ve.bool,print:ve.bool,projection:ve.bool,screen:ve.bool,tty:ve.bool,tv:ve.bool,embossed:ve.bool},Fq={orientation:ve.oneOf(["portrait","landscape"]),scan:ve.oneOf(["progressive","interlace"]),aspectRatio:ve.string,deviceAspectRatio:ve.string,height:Fn,deviceHeight:Fn,width:Fn,deviceWidth:Fn,color:ve.bool,colorIndex:ve.bool,monochrome:ve.bool,resolution:Fn,type:Object.keys(rT)},{type:nye,...Bq}=Fq,zq={minAspectRatio:ve.string,maxAspectRatio:ve.string,minDeviceAspectRatio:ve.string,maxDeviceAspectRatio:ve.string,minHeight:Fn,maxHeight:Fn,minDeviceHeight:Fn,maxDeviceHeight:Fn,minWidth:Fn,maxWidth:Fn,minDeviceWidth:Fn,maxDeviceWidth:Fn,minColor:ve.number,maxColor:ve.number,minColorIndex:ve.number,maxColorIndex:ve.number,minMonochrome:ve.number,maxMonochrome:ve.number,minResolution:Fn,maxResolution:Fn,...Bq},Wq={...rT,...zq};var Uq={all:Wq};const Hq=e=>`not ${e}`,Vq=(e,t)=>{const n=nT(e);return typeof t=="number"&&(t=`${t}px`),t===!0?n:t===!1?Hq(n):`(${n}: ${t})`},qq=e=>e.join(" and "),Yq=e=>{const t=[];return Object.keys(Uq.all).forEach(n=>{const r=e[n];r!=null&&t.push(Vq(n,r))}),qq(t)},Gq=h.createContext(void 0),Kq=e=>e.query||Yq(e),Qw=e=>e?Object.keys(e).reduce((n,r)=>(n[nT(r)]=e[r],n),{}):void 0,iT=()=>{const e=h.useRef(!1);return h.useEffect(()=>{e.current=!0},[]),e.current},Zq=e=>{const t=h.useContext(Gq),n=()=>Qw(e)||Qw(t),[r,i]=h.useState(n);return h.useEffect(()=>{const a=n();Lq(r,a)||i(a)},[e,t]),r},Xq=e=>{const t=()=>Kq(e),[n,r]=h.useState(t);return h.useEffect(()=>{const i=t();n!==i&&r(i)},[e]),n},Qq=(e,t)=>{const n=()=>Dq(e,t||{},!!t),[r,i]=h.useState(n),a=iT();return h.useEffect(()=>{if(a){const o=n();return i(o),()=>{o&&o.dispose()}}},[e,t]),r},Jq=e=>{const[t,n]=h.useState(e.matches);return h.useEffect(()=>{const r=i=>{n(i.matches)};return e.addListener(r),n(e.matches),()=>{e.removeListener(r)}},[e]),t},Im=(e,t,n)=>{const r=Zq(t),i=Xq(e);if(!i)throw new Error("Invalid or missing MediaQuery!");const a=Qq(i,r),o=Jq(a);return iT(),h.useEffect(()=>{},[o]),h.useEffect(()=>()=>{a&&a.dispose()},[]),o},eY=["sm","md","lg","always"],aT="ResponsiveContextDropdownItem",tY=e=>e.type.displayName===aT,Tb=e=>({});Tb.displayName=aT;function nY(e){return e.type&&e.type===h.Fragment}const oT=e=>{const t=[];Array.isArray(e)?t.push(...e):t.push(e);const n=[];return t.forEach(r=>{if(r){if(nY(r)){n.push(...oT(r.props.children));return}n.push(r)}}),n},rY=(e,t)=>{if(t===void 0)return e;const{searchQueryString:n,...r}=t;return Is.generatePath(e,r)+"?"+n},iY="_disabled_9mp5v_1",aY={disabled:iY},oY=()=>{const{ProjectIconComponent:e}=h.useContext(sn),{checkUserHasPermissions:t}=P4();return{getProcessedChildren:h.useCallback((r,i)=>{const a=[],o=[];let s=null;const l=u=>{const{hideOn:d,children:f,cKey:p,to:g,toRoute:m,disabled:v,icon:w,pathParams:_,...y}=u.props,C=(m==null?void 0:m.permissions)!=null,x=(m==null?void 0:m.permissions)!=null&&t(m==null?void 0:m.permissions),$=(v??!1)||C&&!x,E=g??(m==null?void 0:rY(m==null?void 0:m.route,_)),O=f??(m==null?void 0:m.name),k=w??(m!=null?b.jsx(e,{icon:"link"}):void 0);if(d==="always"||eY.indexOf(d)>=i){s&&o.length>0&&o.push(s),s=null;const j=ce(y.className,{[aY.disabled]:$});E!=null?o.push(b.jsx(Va,{...y,as:"link",to:E,disabled:$,icon:k,className:j,children:O},p)):o.push(b.jsx(Va,{...y,icon:k,className:j,children:O},p))}else{const j=E!=null?{as:"link",href:E}:{};a.push(b.jsx(uh,{...y,...j,icon:k,className:ce($?"disabled":void 0,y.className),children:O},p))}};return oT(r).forEach(u=>{u&&h.isValidElement(u)&&(tY(u)?l(u):s=u)}),{buttons:a,dropdownItems:o}},[e,t])}},sT=({children:e})=>{const{getProcessedChildren:t}=oY(),n=Im({maxWidth:768}),r=Im({minWidth:769,maxWidth:1200}),i=Im({minWidth:1201}),a=[n,r,i].indexOf(!0),{buttons:o,dropdownItems:s}=t(e,a);return b.jsxs("div",{className:"d-flex gap-1",children:[b.jsx(b.Fragment,{children:o}),s.length>0?b.jsx(W0,{toggle:b.jsx(z0,{as:B0}),children:s}):null]})};sT.Item=Tb;const sY=h.createContext(void 0);function lY(e,t,n,r){var i=this,a=h.useRef(null),o=h.useRef(0),s=h.useRef(0),l=h.useRef(null),c=h.useRef([]),u=h.useRef(),d=h.useRef(),f=h.useRef(e),p=h.useRef(!0);f.current=e;var g=typeof window<"u",m=!t&&t!==0&&g;if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var v=!!(n=n||{}).leading,w=!("trailing"in n)||!!n.trailing,_="maxWait"in n,y="debounceOnServer"in n&&!!n.debounceOnServer,C=_?Math.max(+n.maxWait||0,t):null;h.useEffect(function(){return p.current=!0,function(){p.current=!1}},[]);var x=h.useMemo(function(){var $=function(R){var N=c.current,D=u.current;return c.current=u.current=null,o.current=R,s.current=s.current||R,d.current=f.current.apply(D,N)},E=function(R,N){m&&cancelAnimationFrame(l.current),l.current=m?requestAnimationFrame(R):setTimeout(R,N)},O=function(R){if(!p.current)return!1;var N=R-a.current;return!a.current||N>=t||N<0||_&&R-o.current>=C},k=function(R){return l.current=null,w&&c.current?$(R):(c.current=u.current=null,d.current)},j=function R(){var N=Date.now();if(v&&s.current===o.current&&S(),O(N))return k(N);if(p.current){var D=t-(N-a.current),M=_?Math.min(D,C-(N-o.current)):D;E(R,M)}},S=function(){r&&r({})},T=function(){if(g||y){var R=Date.now(),N=O(R);if(c.current=[].slice.call(arguments),u.current=i,a.current=R,N){if(!l.current&&p.current)return o.current=a.current,E(j,t),v?$(a.current):d.current;if(_)return E(j,t),$(a.current)}return l.current||E(j,t),d.current}};return T.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({})},T.isPending=function(){return!!l.current},T.flush=function(){return l.current?k(Date.now()):d.current},T},[v,_,t,C,w,m,g,y,r]);return x}function cY(e,t){return e===t}function Ob(e,t,n){var r=n&&n.equalityFn||cY,i=h.useRef(e),a=h.useState({})[1],o=lY(h.useCallback(function(l){i.current=l,a({})},[a]),t,n,a),s=h.useRef(e);return r(s.current,e)||(o(e),s.current=e),[i.current,o]}const uY="_feedback_esh1j_1",dY="_feedback-spacer_esh1j_8",Jw={feedback:uY,feedbackSpacer:dY},Sh=({message:e})=>b.jsxs(b.Fragment,{children:[b.jsx("div",{className:ce("invalid-feedback luminus-invalid-feedback",Jw.feedback),children:e}),b.jsx("div",{className:ce("invalid-feedback-spacer",Jw.feedbackSpacer),children:e})]}),fY="_wrapper_1mvyk_1",hY="_open_1mvyk_9",pY="_dropdown_1mvyk_13",mY="_search-input-container_1mvyk_19",gY="_search-input_1mvyk_19",vY="_loading-container_1mvyk_25",bY="_items-container_1mvyk_32",yY="_header-row_1mvyk_38",xY="_name_1mvyk_49",wY="_item_1mvyk_32",_Y="_column-item_1mvyk_65",CY="_action-buttons-container_1mvyk_89",$Y="_reverse_1mvyk_97",SY="_action-button_1mvyk_89",EY="_actions-dropdown_1mvyk_110",_n={wrapper:fY,open:hY,dropdown:pY,searchInputContainer:mY,searchInput:gY,loadingContainer:vY,itemsContainer:bY,headerRow:yY,name:xY,item:wY,columnItem:_Y,actionButtonsContainer:CY,reverse:$Y,actionButton:SY,actionsDropdown:EY},lT=({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:p,disabled:g,isLoading:m=!1,inputRef:v,archiveColumn:w="archive",addNewOptionPath:_,refreshOptions:y,noRemoveButton:C=!1,customEllipsisOptions:x})=>{var Me;const{texts:{customSelect:$}}=h.useContext(sn),E=h.useRef(null),O=h.useRef(null),k=h.useRef(null),j=h.useRef(null),S=h.useRef(null),[T,R]=h.useState(""),[N]=Ob(T,500),[,D]=h.useState(!1),{copyToClipboard:M}=F4(),I=(Me=v.current)==null?void 0:Me.getBoundingClientRect(),z=(I==null?void 0:I.x)??0,U=((I==null?void 0:I.x)??0)+((I==null?void 0:I.width)??0),P=(I==null?void 0:I.y)??0,W=((I==null?void 0:I.y)??0)+((I==null?void 0:I.height)??0),Y=(I==null?void 0:I.width)??0,X=(I==null?void 0:I.height)??0,K=5,{isMobile:Z}=iu(),ee=8,J=h.useMemo(()=>z?z>window.innerWidth/2-ee:!1,[z]),B=h.useMemo(()=>P?P>window.innerHeight/2-ee:!1,[P]);h.useEffect(()=>{var ue;e&&((ue=k.current)==null||ue.focus())},[k,e]),h.useEffect(()=>{e||R("")},[e]),h.useEffect(()=>{s&&s(N)},[N,s]);const[L,F]=h.useState(null);h.useEffect(()=>{e&&n.length>0?F(0):F(null)},[n,e]);const H=h.useMemo(()=>L!==null?n.at(L)??null:null,[L,n]),A=h.useCallback((ue,oe)=>{var Fe,Ft;const be=document.getElementById(`item-${ue}`);if(be){const Pe=be.clientHeight??0;oe==="down"?(Fe=j.current)==null||Fe.scrollBy({left:0,top:Pe,behavior:"smooth"}):(Ft=j.current)==null||Ft.scrollBy({left:0,top:-Pe,behavior:"smooth"})}},[]),Q=h.useCallback(ue=>{if(L===null||g)return;const oe=L+ue;oe<0||oe>=n.length||F(be=>(be!==null&&A(be,ue>0?"down":"up"),oe))},[L,n,g,A]),G=h.useCallback(ue=>{if(e)switch(ue.key){case"Escape":ue.stopPropagation(),ue.preventDefault(),t();break;case"Enter":ue.stopPropagation(),ue.preventDefault(),g||o(H);break;case"ArrowUp":ue.stopPropagation(),ue.preventDefault(),Q(-1);break;case"ArrowDown":ue.stopPropagation(),ue.preventDefault(),Q(1);break}},[t,e,Q,H,g,o]),q=h.useCallback(()=>{D(ue=>!ue)},[]);h.useEffect(()=>(window.addEventListener("scroll",q),()=>{window.removeEventListener("scroll",q)}),[q]),h.useEffect(()=>(window.addEventListener("resize",q),()=>{window.removeEventListener("resize",q)}),[q]),L4(G),I4([E,O,S],t);const le=c??(u&&u.length>0?250:0),ne=(u==null?void 0:u.reduce((ue,oe)=>ue+(oe.width??100),0))??0,re=h.useMemo(()=>(a&&e&&!g&&!C)??!1,[a,e,g,C]),se=h.useMemo(()=>(a&&e)??!1,[a,e]),fe=h.useMemo(()=>e&&(se||_!==void 0||y!==void 0||x!=null&&x.length>0),[e,se,_,y,x]),_e=32,ye=Z?`calc(100vw - ${_e}px)`:`calc(max(${Y}px, calc(${le}px + ${ne}px)))`,xe=h.useMemo(()=>(T.length<1&&r&&r.length>0?r:n).map(ue=>{var oe,be;return d?((oe=ue.id)==null?void 0:oe.toString())??"":((be=ue.name)==null?void 0:be.toString())??""}).reduce((ue,oe)=>ue.length>oe.length?ue:oe,""),[T,r,n,d]);return b.jsxs(b.Fragment,{children:[b.jsx(cT,{show:e,onClick:t}),b.jsxs("div",{className:ce("luminus-dropdown-picker-actions",_n.actionButtonsContainer,{[_n.reverse]:J}),style:{top:`calc(${P}px + ${X/2}px - 12px)`,left:J?re&&se?`calc(${z}px - 24px - 8px - 24px - 4px)`:`calc(${z}px - 24px - 8px)`:`calc(${U}px + 8px)`},children:[re&&b.jsx("button",{ref:O,type:"button",className:ce("luminus-dropdown-picker-clear-button",_n.actionButton),onClick:()=>!g&&o(null),children:b.jsx(Bn,{variant:"caption",className:"text-danger",children:b.jsx($S,{size:16})})}),fe?b.jsx("div",{ref:S,children:b.jsxs(W0,{toggle:b.jsx(z0,{as:B0,className:ce("luminus-dropdown-picker-actions-dropdown",_n.actionsDropdown),icon:b.jsx(Bn,{variant:"caption",className:"text-primary",children:b.jsx(ES,{size:16})})}),children:[se?b.jsx(Va,{icon:b.jsx(bj,{}),onClick:()=>{var ue,oe;M(d?((ue=a==null?void 0:a.id)==null?void 0:ue.toString())??"":((oe=a==null?void 0:a.name)==null?void 0:oe.toString())??"")},children:$.copySelection}):null,se&&(_||y)?b.jsx(Ug,{}):null,_?b.jsx(Va,{icon:b.jsx(vj,{}),onClick:()=>{window.open(_,"_blank")},children:$.addNewOption}):null,y?b.jsx(Va,{icon:b.jsx(Oj,{}),onClick:()=>{y()},children:$.refreshOptions}):null,x&&x.length>0?b.jsx(Ug,{}):null,x==null?void 0:x.map(ue=>b.jsxs(Va,{onClick:()=>{ue.onClick(),t()},children:[ue.icon??null,ue.label]},ue.label))]})}):null]}),b.jsx("div",{className:ce("luminus-dropdown-picker",_n.wrapper,{[_n.open]:e}),style:{top:B?`calc(${P}px - 50vh - 8px)`:`calc(${W}px + 8px)`,left:Z?`${_e/2}px`:J?`calc(${U}px - ${ye})`:z,right:Z?`${_e/2}px`:J?`${U}px`:`calc(${z}px + ${ye})`,width:ye,justifyContent:B?"flex-end":"flex-start"},children:b.jsx("div",{ref:E,className:ce("shadow rounded",_n.dropdown),children:!g&&b.jsxs(b.Fragment,{children:[!s||f&&(p??n.length)<=K?null:b.jsx("div",{className:ce("search-input-container border-bottom",_n.searchInputContainer),children:b.jsx(oi.Control,{ref:k,type:"search",size:"sm",className:_n.searchInput,placeholder:l.searchPlaceholder,value:T,onChange:ue=>{var oe;return R(((oe=ue.target)==null?void 0:oe.value)??"")}})}),T.length<1&&r&&r.length>0?b.jsx(Rb,{variant:"info",size:"sm",children:i??$.suggestedItemsTitle}):null,m?b.jsx("div",{className:_n.loadingContainer,children:b.jsx(_0,{animation:"border",variant:"primary"})}):(T.length<1&&r&&(r==null?void 0:r.length)>0||n.length>0)&&b.jsxs("div",{ref:j,className:ce("items",_n.itemsContainer),children:[u&&u.length>0&&b.jsxs("div",{className:ce("header-row border-bottom",_n.headerRow),children:[b.jsx("div",{className:_n.name,children:b.jsx(Bn,{variant:"body2",children:xe})}),u==null?void 0:u.filter(ue=>ue.key!==w).map(ue=>b.jsx("div",{className:_n.columnItem,style:{width:`${ue.width??100}px`,minWidth:`${ue.width??100}px`,maxWidth:`${ue.width??100}px`},children:b.jsx(Bn,{variant:"caption",children:ue.name})},ue.key))]}),(T.length<1&&r&&r.length>0?r:n).map((ue,oe)=>b.jsxs("button",{id:`item-${oe}`,type:"button",className:ce("item cursor-pointer",_n.item,{[_n.focused]:L===oe},{focused:L===oe},{archive:ue.additionalColumns?ue.additionalColumns[w]:!1}),onClick:()=>!g&&o(ue),onMouseEnter:()=>F(oe),children:[b.jsx("div",{className:_n.name,children:b.jsx(Bn,{variant:"body2",children:d?ue.id:ue.name})}),u==null?void 0:u.filter(be=>be.key!==w).map(be=>b.jsx("div",{className:_n.columnItem,style:{width:`${be.width??100}px`,minWidth:`${be.width??100}px`,maxWidth:`${be.width??100}px`},children:b.jsx(Bn,{variant:"caption",className:ce("text-muted"),children:ue.additionalColumns&&ue.additionalColumns[be.key]})},be.key))]},ue.id))]})]})})})]})},kY="_backdrop_3huvf_1",TY="_show_3huvf_11",e2={backdrop:kY,show:TY},cT=({show:e,onClick:t})=>b.jsx("div",{className:ce("luminus-backdrop",e2.backdrop,{[e2.show]:e}),onClick:()=>t&&t()});var Mb={},bu={};Object.defineProperty(bu,"__esModule",{value:!0});bu.bind=void 0;function OY(e,t){var n=t.type,r=t.listener,i=t.options;return e.addEventListener(n,r,i),function(){e.removeEventListener(n,r,i)}}bu.bind=OY;var Eh={},ts=Kn&&Kn.__assign||function(){return ts=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},ts.apply(this,arguments)};Object.defineProperty(Eh,"__esModule",{value:!0});Eh.bindAll=void 0;var MY=bu;function t2(e){if(!(typeof e>"u"))return typeof e=="boolean"?{capture:e}:e}function AY(e,t){if(t==null)return e;var n=ts(ts({},e),{options:ts(ts({},t2(t)),t2(e.options))});return n}function RY(e,t,n){var r=t.map(function(i){var a=AY(i,n);return(0,MY.bind)(e,a)});return function(){r.forEach(function(a){return a()})}}Eh.bindAll=RY;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.bindAll=e.bind=void 0;var t=bu;Object.defineProperty(e,"bind",{enumerable:!0,get:function(){return t.bind}});var n=Eh;Object.defineProperty(e,"bindAll",{enumerable:!0,get:function(){return n.bindAll}})})(Mb);function uT(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 Ab=uT(function(){if(process.env.NODE_ENV==="test")return!1;var t=navigator,n=t.userAgent;return n.includes("AppleWebKit")&&!n.includes("Chrome")}),av={isLeavingWindow:Symbol("leaving"),isEnteringWindow:Symbol("entering")};function jY(e){var t=e.dragLeave;return Ab()?t.hasOwnProperty(av.isLeavingWindow):!1}(function(){if(typeof window>"u"||process.env.NODE_ENV==="test"||!Ab())return;function t(){return{enterCount:0,isOverWindow:!1}}var n=t();function r(){n=t()}Mb.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[av.isEnteringWindow]=!0),n.isOverWindow=!0,n.enterCount++}},{type:"dragleave",listener:function(a){n.enterCount--,n.isOverWindow&&n.enterCount===0&&(a[av.isLeavingWindow]=!0,n.isOverWindow=!1)}}],{capture:!0})})();var DY=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},Pm=DY(function(e){return e()}),id=function(){var e=null;function t(r){var i=requestAnimationFrame(function(){e=null,r()});e={frameId:i,fn:r}}function n(){e&&(cancelAnimationFrame(e.frameId),e.fn(),e=null)}return{schedule:t,flush:n}}();function NY(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}}),id.schedule(function(){a({eventName:"onDragStart",payload:{source:t,location:u}})})},dragUpdate:function(l){var c=l.current;id.flush(),Pm.cancel(),a({eventName:"onDropTargetChange",payload:{source:t,location:{initial:n,previous:i,current:c}}})},drag:function(l){var c=l.current;Pm(function(){id.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;id.flush(),Pm.cancel(),a({eventName:"onDrop",payload:{source:u??t,location:{current:c,previous:i,initial:n}}})}};return o}const Rb=e=>{const{variant:t,children:n,className:r,size:i="md",typographyVariant:a=i==="sm"?"body2":"body",...o}={...e};return b.jsx(kA,{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:b.jsx(Bn,{variant:a,children:n})})};var jb=xu(),et=e=>yu(e,jb),Db=xu();et.write=e=>yu(e,Db);var kh=xu();et.onStart=e=>yu(e,kh);var Nb=xu();et.onFrame=e=>yu(e,Nb);var Ib=xu();et.onFinish=e=>yu(e,Ib);var ls=[];et.setTimeout=(e,t)=>{const n=et.now()+t,r=()=>{const a=ls.findIndex(o=>o.cancel==r);~a&&ls.splice(a,1),oa-=~a?1:0},i={time:n,handler:e,cancel:r};return ls.splice(dT(n),0,i),oa+=1,fT(),i};var dT=e=>~(~ls.findIndex(t=>t.time>e)||~ls.length);et.cancel=e=>{kh.delete(e),Nb.delete(e),Ib.delete(e),jb.delete(e),Db.delete(e)};et.sync=e=>{ov=!0,et.batchedUpdates(e),ov=!1};et.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...i){t=i,et.onStart(n)}return r.handler=e,r.cancel=()=>{kh.delete(n),t=null},r};var Pb=typeof window<"u"?window.requestAnimationFrame:()=>{};et.use=e=>Pb=e;et.now=typeof performance<"u"?()=>performance.now():Date.now;et.batchedUpdates=e=>e();et.catch=console.error;et.frameLoop="always";et.advance=()=>{et.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):pT()};var aa=-1,oa=0,ov=!1;function yu(e,t){ov?(t.delete(e),e(0)):(t.add(e),fT())}function fT(){aa<0&&(aa=0,et.frameLoop!=="demand"&&Pb(hT))}function IY(){aa=-1}function hT(){~aa&&(Pb(hT),et.batchedUpdates(pT))}function pT(){const e=aa;aa=et.now();const t=dT(aa);if(t&&(mT(ls.splice(0,t),n=>n.handler()),oa-=t),!oa){IY();return}kh.flush(),jb.flush(e?Math.min(64,aa-e):16.667),Nb.flush(),Db.flush(),Ib.flush()}function xu(){let e=new Set,t=e;return{add(n){oa+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return oa-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,oa-=t.size,mT(t,r=>r(n)&&e.add(r)),oa+=e.size,t=e)}}}function mT(e,t){e.forEach(n=>{try{t(n)}catch(r){et.catch(r)}})}var PY=Object.defineProperty,LY=(e,t)=>{for(var n in t)PY(e,n,{get:t[n],enumerable:!0})},Ir={};LY(Ir,{assign:()=>BY,colors:()=>ca,createStringInterpolator:()=>Fb,skipAnimation:()=>vT,to:()=>gT,willAdvance:()=>Bb});function sv(){}var FY=(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 vi(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 Ye=(e,t)=>e.forEach(t);function ni(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 Wn=e=>pe.und(e)?[]:pe.arr(e)?e:[e];function Zl(e,t){if(e.size){const n=Array.from(e);e.clear(),Ye(n,t)}}var Fl=(e,...t)=>Zl(e,n=>n(...t)),Lb=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Fb,gT,ca=null,vT=!1,Bb=sv,BY=e=>{e.to&&(gT=e.to),e.now&&(et.now=e.now),e.colors!==void 0&&(ca=e.colors),e.skipAnimation!=null&&(vT=e.skipAnimation),e.createStringInterpolator&&(Fb=e.createStringInterpolator),e.requestAnimationFrame&&et.use(e.requestAnimationFrame),e.batchedUpdates&&(et.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Bb=e.willAdvance),e.frameLoop&&(et.frameLoop=e.frameLoop)},Xl=new Set,mr=[],Lm=[],df=0,Th={get idle(){return!Xl.size&&!mr.length},start(e){df>e.priority?(Xl.add(e),et.onStart(zY)):(bT(e),et(lv))},advance:lv,sort(e){if(df)et.onFrame(()=>Th.sort(e));else{const t=mr.indexOf(e);~t&&(mr.splice(t,1),yT(e))}},clear(){mr=[],Xl.clear()}};function zY(){Xl.forEach(bT),Xl.clear(),et(lv)}function bT(e){mr.includes(e)||yT(e)}function yT(e){mr.splice(WY(mr,t=>t.priority>e.priority),0,e)}function lv(e){const t=Lm;for(let n=0;n<mr.length;n++){const r=mr[n];df=r.priority,r.idle||(Bb(r),r.advance(e),r.idle||t.push(r))}return df=0,Lm=mr,Lm.length=0,mr=t,mr.length>0}function WY(e,t){const n=e.findIndex(t);return n<0?e.length:n}var UY={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},Rr="[-+]?\\d*\\.?\\d+",ff=Rr+"%";function Oh(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var HY=new RegExp("rgb"+Oh(Rr,Rr,Rr)),VY=new RegExp("rgba"+Oh(Rr,Rr,Rr,Rr)),qY=new RegExp("hsl"+Oh(Rr,ff,ff)),YY=new RegExp("hsla"+Oh(Rr,ff,ff,Rr)),GY=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,KY=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ZY=/^#([0-9a-fA-F]{6})$/,XY=/^#([0-9a-fA-F]{8})$/;function QY(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=ZY.exec(e))?parseInt(t[1]+"ff",16)>>>0:ca&&ca[e]!==void 0?ca[e]:(t=HY.exec(e))?(Ho(t[1])<<24|Ho(t[2])<<16|Ho(t[3])<<8|255)>>>0:(t=VY.exec(e))?(Ho(t[1])<<24|Ho(t[2])<<16|Ho(t[3])<<8|i2(t[4]))>>>0:(t=GY.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=XY.exec(e))?parseInt(t[1],16)>>>0:(t=KY.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=qY.exec(e))?(n2(r2(t[1]),ad(t[2]),ad(t[3]))|255)>>>0:(t=YY.exec(e))?(n2(r2(t[1]),ad(t[2]),ad(t[3]))|i2(t[4]))>>>0:null}function Fm(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 n2(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,a=Fm(i,r,e+1/3),o=Fm(i,r,e),s=Fm(i,r,e-1/3);return Math.round(a*255)<<24|Math.round(o*255)<<16|Math.round(s*255)<<8}function Ho(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function r2(e){return(parseFloat(e)%360+360)%360/360}function i2(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function ad(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function a2(e){let t=QY(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 Ec=(e,t,n)=>{if(pe.fun(e))return e;if(pe.arr(e))return Ec({range:e,output:t,extrapolate:n});if(pe.str(e.output[0]))return Fb(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=eG(c,a);return JY(c,a[u],a[u+1],i[u],i[u+1],l,o,s,r.map)}};function JY(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 eG(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var tG={linear:e=>e},kc=Symbol.for("FluidValue.get"),As=Symbol.for("FluidValue.observers"),pr=e=>!!(e&&e[kc]),qn=e=>e&&e[kc]?e[kc]():e,o2=e=>e[As]||null;function nG(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Tc(e,t){const n=e[As];n&&n.forEach(r=>{nG(r,t)})}var xT=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");rG(this,e)}},rG=(e,t)=>wT(e,kc,t);function Ys(e,t){if(e[kc]){let n=e[As];n||wT(e,As,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Oc(e,t){const n=e[As];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[As]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var wT=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Sd=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,iG=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,s2=new RegExp(`(${Sd.source})(%|[a-z]+)`,"i"),aG=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Mh=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,_T=e=>{const[t,n]=oG(e);if(!t||Lb())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&&Mh.test(n))return _T(n);if(n)return n}return e},oG=e=>{const t=Mh.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Bm,sG=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,CT=e=>{Bm||(Bm=ca?new RegExp(`(${Object.keys(ca).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(a=>qn(a).replace(Mh,_T).replace(iG,a2).replace(Bm,a2)),n=t.map(a=>a.match(Sd).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=>Ec({...e,output:a}));return a=>{var l;const o=!s2.test(t[0])&&((l=t.find(c=>s2.test(c)))==null?void 0:l.replace(Sd,""));let s=0;return t[0].replace(Sd,()=>`${i[s++](a)}${o||""}`).replace(aG,sG)}},zb="react-spring: ",$T=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${zb}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},lG=$T(console.warn);function cG(){lG(`${zb}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var uG=$T(console.warn);function dG(){uG(`${zb}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 Ah(e){return pe.str(e)&&(e[0]=="#"||/\d/.test(e)||!Lb()&&Mh.test(e)||e in(ca||{}))}var qa=Lb()?h.useEffect:h.useLayoutEffect,fG=()=>{const e=h.useRef(!1);return qa(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function Wb(){const e=h.useState()[1],t=fG();return()=>{t.current&&e(Math.random())}}var Ub=e=>h.useEffect(e,hG),hG=[];function cv(e){const t=h.useRef(void 0);return h.useEffect(()=>{t.current=e}),t.current}var Mc=Symbol.for("Animated:node"),pG=e=>!!e&&e[Mc]===e,Hr=e=>e&&e[Mc],Hb=(e,t)=>FY(e,Mc,t),Rh=e=>e&&e[Mc]&&e[Mc].getPayload(),ST=class{constructor(){Hb(this,this)}getPayload(){return this.payload||[]}},jh=class ET extends ST{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 ET(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)}},hf=class kT extends jh{constructor(t){super(0),this._string=null,this._toString=Ec({output:[t,t]})}static create(t){return new kT(t)}getValue(){const t=this._string;return t??(this._string=this._toString(this._value))}setValue(t){if(pe.str(t)){if(t==this._string)return!1;this._string=t,this._value=1}else if(super.setValue(t))this._string=null;else return!1;return!0}reset(t){t&&(this._toString=Ec({output:[this.getValue(),t]})),this._value=0,super.reset()}},pf={dependencies:null},Dh=class extends ST{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return ni(this.source,(n,r)=>{pG(n)?t[r]=n.getValue(e):pr(n)?t[r]=qn(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Ye(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return ni(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){pf.dependencies&&pr(e)&&pf.dependencies.add(e);const t=Rh(e);t&&Ye(t,n=>this.add(n))}},mG=class TT extends Dh{constructor(t){super(t)}static create(t){return new TT(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(gG)),!0)}};function gG(e){return(Ah(e)?hf:jh).create(e)}function uv(e){const t=Hr(e);return t?t.constructor:pe.arr(e)?mG:Ah(e)?hf:jh}var l2=(e,t)=>{const n=!pe.fun(e)||e.prototype&&e.prototype.isReactComponent;return h.forwardRef((r,i)=>{const a=h.useRef(null),o=n&&h.useCallback(g=>{a.current=yG(i,g)},[i]),[s,l]=bG(r,t),c=Wb(),u=()=>{const g=a.current;if(n&&!g)return;(g?t.applyAnimatedValues(g,s.getValue(!0)):!1)===!1&&c()},d=new vG(u,l),f=h.useRef(void 0);qa(()=>(f.current=d,Ye(l,g=>Ys(g,d)),()=>{f.current&&(Ye(f.current.deps,g=>Oc(g,f.current)),et.cancel(f.current.update))})),h.useEffect(u,[]),Ub(()=>()=>{const g=f.current;Ye(g.deps,m=>Oc(m,g))});const p=t.getComponentProps(s.getValue());return ie.createElement(e,{...p,ref:o})})},vG=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&et.write(this.update)}};function bG(e,t){const n=new Set;return pf.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new Dh(e),pf.dependencies=null,[e,n]}function yG(e,t){return e&&(pe.fun(e)?e(t):e.current=t),t}var c2=Symbol.for("AnimatedComponent"),xG=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=i=>new Dh(i),getComponentProps:r=i=>i}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},a=o=>{const s=u2(o)||"Anonymous";return pe.str(o)?o=a[o]||(a[o]=l2(o,i)):o=o[c2]||(o[c2]=l2(o,i)),o.displayName=`Animated(${s})`,o};return ni(e,(o,s)=>{pe.arr(e)&&(s=u2(o)),a[s]=a(o)}),{animated:a}},u2=e=>pe.str(e)?e:e&&pe.str(e.displayName)?e.displayName:pe.fun(e)&&e.name||null;function Yn(e,...t){return pe.fun(e)?e(...t):e}var Ql=(e,t)=>e===!0||!!(t&&e&&(pe.fun(e)?e(t):Wn(e).includes(t))),OT=(e,t)=>pe.obj(e)?t&&e[t]:e,MT=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,wG=e=>e,Nh=(e,t=wG)=>{let n=_G;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},_G=["config","onProps","onStart","onChange","onPause","onResume","onRest"],CG={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 $G(e){const t={};let n=0;if(ni(e,(r,i)=>{CG[i]||(t[i]=r,n++)}),n)return t}function Vb(e){const t=$G(e);if(t){const n={to:t};return ni(e,(r,i)=>i in t||(n[i]=r)),n}return{...e}}function Ac(e){return e=qn(e),pe.arr(e)?e.map(Ac):Ah(e)?Ir.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function AT(e){for(const t in e)return!0;return!1}function dv(e){return pe.fun(e)||pe.arr(e)&&pe.obj(e[0])}function fv(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function RT(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var jT={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}},hv={...jT.default,mass:1,damping:1,easing:tG.linear,clamp:!1},SG=class{constructor(){this.velocity=0,Object.assign(this,hv)}};function EG(e,t,n){n&&(n={...n},d2(n,t),t={...n,...t}),d2(e,t),Object.assign(e,t);for(const o in hv)e[o]==null&&(e[o]=hv[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 d2(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 f2=[],kG=class{constructor(){this.changed=!1,this.values=f2,this.toValues=null,this.fromValues=f2,this.config=new SG,this.immediate=!1}};function DT(e,{key:t,props:n,defaultProps:r,state:i,actions:a}){return new Promise((o,s)=>{let l,c,u=Ql(n.cancel??(r==null?void 0:r.cancel),t);if(u)p();else{pe.und(n.pause)||(i.paused=Ql(n.pause,t));let g=r==null?void 0:r.pause;g!==!0&&(g=i.paused||Ql(g,t)),l=Yn(n.delay||0,t),g?(i.resumeQueue.add(f),a.pause()):(a.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(c),c.cancel(),l=c.time-et.now()}function f(){l>0&&!Ir.skipAnimation?(i.delayed=!0,c=et.setTimeout(p,l),i.pauseQueue.add(d),i.timeouts.add(c)):p()}function p(){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(g){s(g)}}})}var qb=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?cs(e.get()):t.every(n=>n.noop)?NT(e.get()):Or(e.get(),t.every(n=>n.finished)),NT=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Or=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),cs=e=>({value:e,cancelled:!0,finished:!1});function IT(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=Nh(t,(v,w)=>w==="onRest"?void 0:v);let u,d;const f=new Promise((v,w)=>(u=v,d=w)),p=v=>{const w=i<=(n.cancelId||0)&&cs(r)||i!==n.asyncId&&Or(r,!1);if(w)throw v.result=w,d(v),v},g=(v,w)=>{const _=new h2,y=new p2;return(async()=>{if(Ir.skipAnimation)throw Rc(n),y.result=Or(r,!1),d(y),y;p(_);const C=pe.obj(v)?{...v}:{...w,to:v};C.parentId=i,ni(c,($,E)=>{pe.und(C[E])&&(C[E]=$)});const x=await r.start(C);return p(_),n.paused&&await new Promise($=>{n.resumeQueue.add($)}),x})()};let m;if(Ir.skipAnimation)return Rc(n),Or(r,!1);try{let v;pe.arr(e)?v=(async w=>{for(const _ of w)await g(_)})(e):v=Promise.resolve(e(g,r.stop.bind(r))),await Promise.all([v.then(u),f]),m=Or(r.get(),!0,!1)}catch(v){if(v instanceof h2)m=v.result;else if(v instanceof p2)m=v.result;else throw v}finally{i==n.asyncId&&(n.asyncId=a,n.asyncTo=a?s:void 0,n.promise=a?l:void 0)}return pe.fun(o)&&et.batchedUpdates(()=>{o(m,r,r.item)}),m})()}function Rc(e,t){Zl(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var h2=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.")}},p2=class extends Error{constructor(){super("SkipAnimationSignal")}},pv=e=>e instanceof Yb,TG=1,Yb=class extends xT{constructor(){super(...arguments),this.id=TG++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Hr(this);return e&&e.getValue()}to(...e){return Ir.to(this,e)}interpolate(...e){return cG(),Ir.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){Tc(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Th.sort(this),Tc(this,{type:"priority",parent:this,priority:e})}},fo=Symbol.for("SpringPhase"),PT=1,mv=2,gv=4,zm=e=>(e[fo]&PT)>0,Ki=e=>(e[fo]&mv)>0,$l=e=>(e[fo]&gv)>0,m2=(e,t)=>t?e[fo]|=mv|PT:e[fo]&=~mv,g2=(e,t)=>t?e[fo]|=gv:e[fo]&=~gv,OG=class extends Yb{constructor(e,t){if(super(),this.animation=new kG,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!(Ki(this)||this._state.asyncTo)||$l(this)}get goal(){return qn(this.animation.to)}get velocity(){const e=Hr(this);return e instanceof jh?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return zm(this)}get isAnimating(){return Ki(this)}get isPaused(){return $l(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:i}=r;const{config:a}=r,o=Rh(r.to);!o&&pr(r.to)&&(i=Wn(qn(r.to))),r.values.forEach((c,u)=>{if(c.done)return;const d=c.constructor==hf?1:o?o[u].lastPosition:i[u];let f=r.immediate,p=d;if(!f){if(p=c.lastPosition,a.tension<=0){c.done=!0;return}let g=c.elapsedTime+=e;const m=r.fromValues[u],v=c.v0!=null?c.v0:c.v0=pe.arr(a.velocity)?a.velocity[u]:a.velocity;let w;const _=a.precision||(m==d?.005:Math.min(1,Math.abs(d-m)*.001));if(pe.und(a.duration))if(a.decay){const y=a.decay===!0?.998:a.decay,C=Math.exp(-(1-y)*g);p=m+v/(1-y)*(1-C),f=Math.abs(c.lastPosition-p)<=_,w=v*C}else{w=c.lastVelocity==null?v:c.lastVelocity;const y=a.restVelocity||_/10,C=a.clamp?0:a.bounce,x=!pe.und(C),$=m==d?c.v0>0:m<d;let E,O=!1;const k=1,j=Math.ceil(e/k);for(let S=0;S<j&&(E=Math.abs(w)>y,!(!E&&(f=Math.abs(d-p)<=_,f)));++S){x&&(O=p==d||p>d==$,O&&(w=-w*C,p=d));const T=-a.tension*1e-6*(p-d),R=-a.friction*.001*w,N=(T+R)/a.mass;w=w+N*k,p=p+w*k}}else{let y=1;a.duration>0&&(this._memoizedDuration!==a.duration&&(this._memoizedDuration=a.duration,c.durationProgress>0&&(c.elapsedTime=a.duration*c.durationProgress,g=c.elapsedTime+=e)),y=(a.progress||0)+g/this._memoizedDuration,y=y>1?1:y<0?0:y,c.durationProgress=y),p=m+a.easing(y)*(d-m),w=(p-c.lastPosition)/e,f=y==1}c.lastVelocity=w,Number.isNaN(p)&&(console.warn("Got NaN while animating:",this),f=!0)}o&&!o[u].done&&(f=!1),f?c.done=!0:t=!1,c.setValue(p,a.round)&&(n=!0)});const s=Hr(this),l=s.getValue();if(t){const c=qn(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 et.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Ki(this)){const{to:e,config:t}=this.animation;et.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=>qb(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Rc(this._state,e&&this._lastCallId),et.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||dv(n))&&(n=void 0),r=pe.obj(r)?r[t]:r,r==null&&(r=void 0);const i={to:n,from:r};return zm(this)||(e.reverse&&([n,r]=[r,n]),r=qn(r),pe.und(r)?Hr(this)||this._set(n):this._set(r)),i}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,Nh(e,(o,s)=>/^on/.test(s)?OT(o,n):o)),b2(this,e,"onProps"),El(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 DT(++this._lastCallId,{key:n,props:e,defaultProps:r,state:a,actions:{pause:()=>{$l(this)||(g2(this,!0),Fl(a.pauseQueue),El(this,"onPause",Or(this,Sl(this,this.animation.to)),this))},resume:()=>{$l(this)&&(g2(this,!1),Ki(this)&&this._resume(),Fl(a.resumeQueue),El(this,"onResume",Or(this,Sl(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(o=>{if(e.loop&&o.finished&&!(t&&o.noop)){const s=LT(e);if(s)return this._update(s,!0)}return o})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(cs(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(cs(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=!vi(d,c);f&&(s.from=d),d=qn(d);const p=!vi(u,l);p&&this._focus(u);const g=dv(t.to),{config:m}=s,{decay:v,velocity:w}=m;(r||i)&&(m.velocity=0),t.config&&!g&&EG(m,Yn(t.config,a),t.config!==o.config?Yn(o.config,a):void 0);let _=Hr(this);if(!_||pe.und(u))return n(Or(this,!0));const y=pe.und(t.reset)?i&&!t.default:!pe.und(d)&&Ql(t.reset,a),C=y?d:this.get(),x=Ac(u),$=pe.num(x)||pe.arr(x)||Ah(x),E=!g&&(!$||Ql(o.immediate||t.immediate,a));if(p){const S=uv(u);if(S!==_.constructor)if(E)_=this._set(x);else throw Error(`Cannot animate between ${_.constructor.name} and ${S.name}, as the "to" prop suggests`)}const O=_.constructor;let k=pr(u),j=!1;if(!k){const S=y||!zm(this)&&f;(p||S)&&(j=vi(Ac(C),x),k=!j),(!vi(s.immediate,E)&&!E||!vi(m.decay,v)||!vi(m.velocity,w))&&(k=!0)}if(j&&Ki(this)&&(s.changed&&!y?k=!0:k||this._stop(l)),!g&&((k||pr(l))&&(s.values=_.getPayload(),s.toValues=pr(u)?null:O==hf?[1]:Wn(x)),s.immediate!=E&&(s.immediate=E,!E&&!y&&this._set(l)),k)){const{onRest:S}=s;Ye(AG,R=>b2(this,t,R));const T=Or(this,Sl(this,l));Fl(this._pendingCalls,T),this._pendingCalls.add(n),s.changed&&et.batchedUpdates(()=>{var R;s.changed=!y,S==null||S(T,this),y?Yn(o.onRest,T):(R=s.onStart)==null||R.call(s,T,this)})}y&&this._set(C),g?n(IT(t.to,t,this._state,this)):k?this._start():Ki(this)&&!p?this._pendingCalls.add(n):n(NT(C))}_focus(e){const t=this.animation;e!==t.to&&(o2(this)&&this._detach(),t.to=e,o2(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;pr(t)&&(Ys(t,this),pv(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;pr(e)&&Oc(e,this)}_set(e,t=!0){const n=qn(e);if(!pe.und(n)){const r=Hr(this);if(!r||!vi(n,r.getValue())){const i=uv(n);!r||r.constructor!=i?Hb(this,i.create(n)):r.setValue(n),r&&et.batchedUpdates(()=>{this._onChange(n,t)})}}return Hr(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,El(this,"onStart",Or(this,Sl(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Yn(this.animation.onChange,e,this)),Yn(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Hr(this).reset(qn(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),Ki(this)||(m2(this,!0),$l(this)||this._resume())}_resume(){Ir.skipAnimation?this.finish():Th.start(this)}_stop(e,t){if(Ki(this)){m2(this,!1);const n=this.animation;Ye(n.values,i=>{i.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Tc(this,{type:"idle",parent:this});const r=t?cs(this.get()):Or(this.get(),Sl(this,e??n.to));Fl(this._pendingCalls,r),n.changed&&(n.changed=!1,El(this,"onRest",r,this))}}};function Sl(e,t){const n=Ac(t),r=Ac(e.get());return vi(r,n)}function LT(e,t=e.loop,n=e.to){const r=Yn(t);if(r){const i=r!==!0&&Vb(r),a=(i||e).reverse,o=!i||i.reset;return jc({...e,loop:t,default:!1,pause:void 0,to:!a||dv(n)?n:void 0,from:o?e.from:void 0,reset:o,...i})}}function jc(e){const{to:t,from:n}=e=Vb(e),r=new Set;return pe.obj(t)&&v2(t,r),pe.obj(n)&&v2(n,r),e.keys=r.size?Array.from(r):null,e}function MG(e){const t=jc(e);return pe.und(t.default)&&(t.default=Nh(t)),t}function v2(e,t){ni(e,(n,r)=>n!=null&&t.add(r))}var AG=["onStart","onRest","onChange","onPause","onResume"];function b2(e,t,n){e.animation[n]=t[n]!==MT(t,n)?OT(t[n],e.key):void 0}function El(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 RG=["onStart","onChange","onRest"],jG=1,FT=class{constructor(e,t){this.id=jG++,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(jc(e)),this}start(e){let{queue:t}=this;return e?t=Wn(e).map(jc):this.queue=[],this._flush?this._flush(this,t):(HT(this,t),vv(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Ye(Wn(t),r=>n[r].stop(!!e))}else Rc(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;Ye(Wn(e),n=>t[n].pause())}return this}resume(e){if(pe.und(e))this.start({pause:!1});else{const t=this.springs;Ye(Wn(e),n=>t[n].resume())}return this}each(e){ni(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,Zl(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&&Zl(t,([s,l])=>{l.value=o,s(l,this,this._item)}),a&&(this._started=!1,Zl(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;et.onFrame(this._onFrame)}};function vv(e,t){return Promise.all(t.map(n=>BT(e,n))).then(n=>qb(e,n))}async function BT(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)):Ye(RG,m=>{const v=t[m];if(pe.fun(v)){const w=e._events[m];t[m]=({finished:_,cancelled:y})=>{const C=w.get(v);C?(_||(C.finished=!1),y&&(C.cancelled=!0)):w.set(v,{value:null,finished:_||!1,cancelled:y||!1})},c&&(c[m]=t[m])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,Fl(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const f=(r||Object.keys(e.springs)).map(m=>e.springs[m].start(t)),p=t.cancel===!0||MT(t,"cancel")===!0;(u||p&&d.asyncId)&&f.push(DT(++e._lastAsyncId,{props:t,state:d,actions:{pause:sv,resume:sv,start(m,v){p?(Rc(d,e._lastAsyncId),v(cs(e))):(m.onRest=s,v(IT(u,m,d,e)))}}})),d.paused&&await new Promise(m=>{d.resumeQueue.add(m)});const g=qb(e,await Promise.all(f));if(o&&g.finished&&!(n&&g.noop)){const m=LT(t,o,i);if(m)return HT(e,[m]),BT(e,m,!0)}return l&&et.batchedUpdates(()=>l(g,e,e.item)),g}function bv(e,t){const n={...e.springs};return t&&Ye(Wn(t),r=>{pe.und(r.keys)&&(r=jc(r)),pe.obj(r.to)||(r={...r,to:void 0}),UT(n,r,i=>WT(i))}),zT(e,n),n}function zT(e,t){ni(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,Ys(n,e))})}function WT(e,t){const n=new OG;return n.key=e,t&&Ys(n,t),n}function UT(e,t,n){t.keys&&Ye(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function HT(e,t){Ye(t,n=>{UT(e.springs,n,r=>WT(r,e))})}var VT=ie.createContext({pause:!1,immediate:!1}),qT=()=>{const e=[],t=function(r){dG();const i=[];return Ye(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 Ye(e,r=>r.pause(...arguments)),this},t.resume=function(){return Ye(e,r=>r.resume(...arguments)),this},t.set=function(r){Ye(e,(i,a)=>{const o=pe.fun(r)?r(a,i):r;o&&i.set(o)})},t.start=function(r){const i=[];return Ye(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 Ye(e,r=>r.stop(...arguments)),this},t.update=function(r){return Ye(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 DG(e,t,n){const r=pe.fun(t)&&t;r&&!n&&(n=[]);const i=h.useMemo(()=>r||arguments.length==3?qT():void 0,[]),a=h.useRef(0),o=Wb(),s=h.useMemo(()=>({ctrls:[],queue:[],flush(w,_){const y=bv(w,_);return a.current>0&&!s.queue.length&&!Object.keys(y).some(x=>!w.springs[x])?vv(w,_):new Promise(x=>{zT(w,y),s.queue.push(()=>{x(vv(w,_))}),o()})}}),[]),l=h.useRef([...s.ctrls]),c=h.useRef([]),u=cv(e)||0;h.useMemo(()=>{Ye(l.current.slice(e,u),w=>{fv(w,i),w.stop(!0)}),l.current.length=e,d(u,e)},[e]),h.useMemo(()=>{d(0,Math.min(u,e))},n);function d(w,_){for(let y=w;y<_;y++){const C=l.current[y]||(l.current[y]=new FT(null,s.flush)),x=r?r(y,C):t[y];x&&(c.current[y]=MG(x))}}const f=l.current.map((w,_)=>bv(w,c.current[_])),p=h.useContext(VT),g=cv(p),m=p!==g&&AT(p);qa(()=>{a.current++,s.ctrls=l.current;const{queue:w}=s;w.length&&(s.queue=[],Ye(w,_=>_())),Ye(l.current,(_,y)=>{i==null||i.add(_),m&&_.start({default:p});const C=c.current[y];C&&(RT(_,C.ref),_.ref?_.queue.push(C):_.start(C))})}),Ub(()=>()=>{Ye(s.ctrls,w=>w.stop(!0))});const v=f.map(w=>({...w}));return i?[v,i]:v}function si(e,t){const n=pe.fun(e),[[r],i]=DG(1,n?e:[e],n?[]:t);return n||arguments.length==2?[r,i]:r}function _o(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=h.useMemo(()=>r||arguments.length==3?qT():void 0,[]),p=Wn(e),g=[],m=h.useRef(null),v=i?null:m.current;qa(()=>{m.current=g}),Ub(()=>(Ye(g,N=>{f==null||f.add(N.ctrl),N.ctrl.ref=f}),()=>{Ye(m.current,N=>{N.expired&&clearTimeout(N.expirationId),fv(N.ctrl,f),N.ctrl.stop(!0)})}));const w=IG(p,r?r():t,v),_=i&&m.current||[];qa(()=>Ye(_,({ctrl:N,item:D,key:M})=>{fv(N,f),Yn(c,D,M)}));const y=[];if(v&&Ye(v,(N,D)=>{N.expired?(clearTimeout(N.expirationId),_.push(N)):(D=y[D]=w.indexOf(N.key),~D&&(g[D]=N))}),Ye(p,(N,D)=>{g[D]||(g[D]={key:w[D],item:N,phase:"mount",ctrl:new FT},g[D].ctrl.item=N)}),y.length){let N=-1;const{leave:D}=r?r():t;Ye(y,(M,I)=>{const z=v[I];~M?(N=g.indexOf(z),g[N]={...z,item:p[M]}):D&&g.splice(++N,0,z)})}pe.fun(a)&&g.sort((N,D)=>a(N.item,D.item));let C=-o;const x=Wb(),$=Nh(t),E=new Map,O=h.useRef(new Map),k=h.useRef(!1);Ye(g,(N,D)=>{const M=N.key,I=N.phase,z=r?r():t;let U,P;const W=Yn(z.delay||0,M);if(I=="mount")U=z.enter,P="enter";else{const Z=w.indexOf(M)<0;if(I!="leave")if(Z)U=z.leave,P="leave";else if(U=z.update)P="update";else return;else if(!Z)U=z.enter,P="enter";else return}if(U=Yn(U,N.item,D),U=pe.obj(U)?Vb(U):{to:U},!U.config){const Z=d||$.config;U.config=Yn(Z,N.item,D,P)}C+=o;const Y={...$,delay:W+C,ref:u,immediate:z.immediate,reset:!1,...U};if(P=="enter"&&pe.und(Y.from)){const Z=r?r():t,ee=pe.und(Z.initial)||v?Z.from:Z.initial;Y.from=Yn(ee,N.item,D)}const{onResolve:X}=Y;Y.onResolve=Z=>{Yn(X,Z);const ee=m.current,J=ee.find(B=>B.key===M);if(J&&!(Z.cancelled&&J.phase!="update")&&J.ctrl.idle){const B=ee.every(L=>L.ctrl.idle);if(J.phase=="leave"){const L=Yn(s,J.item);if(L!==!1){const F=L===!0?0:L;if(J.expired=!0,!B&&F>0){F<=2147483647&&(J.expirationId=setTimeout(x,F));return}}}B&&ee.some(L=>L.expired)&&(O.current.delete(J),l&&(k.current=!0),x())}};const K=bv(N.ctrl,Y);P==="leave"&&l?O.current.set(N,{phase:P,springs:K,payload:Y}):E.set(N,{phase:P,springs:K,payload:Y})});const j=h.useContext(VT),S=cv(j),T=j!==S&&AT(j);qa(()=>{T&&Ye(g,N=>{N.ctrl.start({default:j})})},[j]),Ye(E,(N,D)=>{if(O.current.size){const M=g.findIndex(I=>I.key===D.key);g.splice(M,1)}}),qa(()=>{Ye(O.current.size?O.current:E,({phase:N,payload:D},M)=>{const{ctrl:I}=M;M.phase=N,f==null||f.add(I),T&&N=="enter"&&I.start({default:j}),D&&(RT(I,D.ref),(I.ref||f)&&!k.current?I.update(D):(I.start(D),k.current&&(k.current=!1)))})},i?void 0:n);const R=N=>ie.createElement(ie.Fragment,null,g.map((D,M)=>{const{springs:I}=E.get(D)||D.ctrl,z=N({...I},D.item,D,M),U=pe.str(D.key)||pe.num(D.key)?D.key:D.ctrl.id,P=ie.version<"19.0.0",W=(z==null?void 0:z.props)??{},Y=P?z==null?void 0:z.ref:W==null?void 0:W.ref;return z&&z.type?ie.createElement(z.type,{...W,key:U,ref:Y}):z}));return f?[R,f]:R}var NG=1;function IG(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):NG++})}return pe.und(n)?e:pe.fun(n)?e.map(n):Wn(n)}var YT=class extends Yb{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=Ec(...t);const n=this._get(),r=uv(n);Hb(this,r.create(n))}advance(e){const t=this._get(),n=this.get();vi(t,n)||(Hr(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&y2(this._active)&&Wm(this)}_get(){const e=pe.arr(this.source)?this.source.map(qn):Wn(qn(this.source));return this.calc(...e)}_start(){this.idle&&!y2(this._active)&&(this.idle=!1,Ye(Rh(this),e=>{e.done=!1}),Ir.skipAnimation?(et.batchedUpdates(()=>this.advance()),Wm(this)):Th.start(this))}_attach(){let e=1;Ye(Wn(this.source),t=>{pr(t)&&Ys(t,this),pv(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){Ye(Wn(this.source),e=>{pr(e)&&Oc(e,this)}),this._active.clear(),Wm(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=Wn(this.source).reduce((t,n)=>Math.max(t,(pv(n)?n.priority:0)+1),0))}};function PG(e){return e.idle!==!1}function y2(e){return!e.size||Array.from(e).every(PG)}function Wm(e){e.idle||(e.idle=!0,Ye(Rh(e),t=>{t.done=!0}),Tc(e,{type:"idle",parent:e}))}var ba=(e,...t)=>new YT(e,t);Ir.assign({createStringInterpolator:CT,to:(e,t)=>new YT(e,t)});var GT=/^--/;function LG(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!GT.test(e)&&!(Jl.hasOwnProperty(e)&&Jl[e])?t+"px":(""+t).trim()}var x2={};function FG(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:x2[f]||(x2[f]=f.replace(/([A-Z])/g,p=>"-"+p.toLowerCase())));a!==void 0&&(e.textContent=a);for(const f in i)if(i.hasOwnProperty(f)){const p=LG(f,i[f]);GT.test(f)?e.style.setProperty(f,p):e.style[f]=p}d.forEach((f,p)=>{e.setAttribute(f,u[p])}),r!==void 0&&(e.className=r),o!==void 0&&(e.scrollTop=o),s!==void 0&&(e.scrollLeft=s),l!==void 0&&e.setAttribute("viewBox",l)}var Jl={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},BG=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),zG=["Webkit","Ms","Moz","O"];Jl=Object.keys(Jl).reduce((e,t)=>(zG.forEach(n=>e[BG(n,t)]=e[t]),e),Jl);var WG=/^(matrix|translate|scale|rotate|skew)/,UG=/^(translate)/,HG=/^(rotate|skew)/,Um=(e,t)=>pe.num(e)&&e!==0?e+t:e,Ed=(e,t)=>pe.arr(e)?e.every(n=>Ed(n,t)):pe.num(e)?e===t:parseFloat(e)===t,VG=class extends Dh{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=>Um(s,"px")).join(",")})`,Ed(o,0)])),ni(r,(o,s)=>{if(s==="transform")i.push([o||""]),a.push(l=>[l,l===""]);else if(WG.test(s)){if(delete r[s],pe.und(o))return;const l=UG.test(s)?"px":HG.test(s)?"deg":"";i.push(Wn(o)),a.push(s==="rotate3d"?([c,u,d,f])=>[`rotate3d(${c},${u},${d},${Um(f,l)})`,Ed(f,0)]:c=>[`${s}(${c.map(u=>Um(u,l)).join(",")})`,Ed(c,s.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new qG(i,a)),super(r)}},qG=class extends xT{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 Ye(this.inputs,(n,r)=>{const i=qn(n[0]),[a,o]=this.transforms[r](pe.arr(i)?i:n.map(qn));e+=" "+a,t=t&&o}),t?"none":e}observerAdded(e){e==1&&Ye(this.inputs,t=>Ye(t,n=>pr(n)&&Ys(n,this)))}observerRemoved(e){e==0&&Ye(this.inputs,t=>Ye(t,n=>pr(n)&&Oc(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),Tc(this,e)}},YG=["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"];Ir.assign({batchedUpdates:hn.unstable_batchedUpdates,createStringInterpolator:CT,colors:UY});var GG=xG(YG,{applyAnimatedValues:FG,createAnimatedStyle:e=>new VG(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),qt=GG.animated;function KG(){this.__data__=[],this.size=0}var ZG=KG;function XG(e,t){return e===t||e!==e&&t!==t}var wu=XG,QG=wu;function JG(e,t){for(var n=e.length;n--;)if(QG(e[n][0],t))return n;return-1}var Ih=JG,eK=Ih,tK=Array.prototype,nK=tK.splice;function rK(e){var t=this.__data__,n=eK(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():nK.call(t,n,1),--this.size,!0}var iK=rK,aK=Ih;function oK(e){var t=this.__data__,n=aK(t,e);return n<0?void 0:t[n][1]}var sK=oK,lK=Ih;function cK(e){return lK(this.__data__,e)>-1}var uK=cK,dK=Ih;function fK(e,t){var n=this.__data__,r=dK(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var hK=fK,pK=ZG,mK=iK,gK=sK,vK=uK,bK=hK;function Gs(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])}}Gs.prototype.clear=pK;Gs.prototype.delete=mK;Gs.prototype.get=gK;Gs.prototype.has=vK;Gs.prototype.set=bK;var Ph=Gs,yK=Ph;function xK(){this.__data__=new yK,this.size=0}var wK=xK;function _K(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var CK=_K;function $K(e){return this.__data__.get(e)}var SK=$K;function EK(e){return this.__data__.has(e)}var kK=EK,TK=typeof Kn=="object"&&Kn&&Kn.Object===Object&&Kn,KT=TK,OK=KT,MK=typeof self=="object"&&self&&self.Object===Object&&self,AK=OK||MK||Function("return this")(),li=AK,RK=li,jK=RK.Symbol,Ks=jK,w2=Ks,ZT=Object.prototype,DK=ZT.hasOwnProperty,NK=ZT.toString,kl=w2?w2.toStringTag:void 0;function IK(e){var t=DK.call(e,kl),n=e[kl];try{e[kl]=void 0;var r=!0}catch{}var i=NK.call(e);return r&&(t?e[kl]=n:delete e[kl]),i}var PK=IK,LK=Object.prototype,FK=LK.toString;function BK(e){return FK.call(e)}var zK=BK,_2=Ks,WK=PK,UK=zK,HK="[object Null]",VK="[object Undefined]",C2=_2?_2.toStringTag:void 0;function qK(e){return e==null?e===void 0?VK:HK:C2&&C2 in Object(e)?WK(e):UK(e)}var zi=qK;function YK(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ci=YK,GK=zi,KK=ci,ZK="[object AsyncFunction]",XK="[object Function]",QK="[object GeneratorFunction]",JK="[object Proxy]";function eZ(e){if(!KK(e))return!1;var t=GK(e);return t==XK||t==QK||t==ZK||t==JK}var Lh=eZ;const Gb=on(Lh);var tZ=li,nZ=tZ["__core-js_shared__"],rZ=nZ,Hm=rZ,$2=function(){var e=/[^.]+$/.exec(Hm&&Hm.keys&&Hm.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function iZ(e){return!!$2&&$2 in e}var aZ=iZ,oZ=Function.prototype,sZ=oZ.toString;function lZ(e){if(e!=null){try{return sZ.call(e)}catch{}try{return e+""}catch{}}return""}var XT=lZ,cZ=Lh,uZ=aZ,dZ=ci,fZ=XT,hZ=/[\\^$.*+?()[\]{}|]/g,pZ=/^\[object .+?Constructor\]$/,mZ=Function.prototype,gZ=Object.prototype,vZ=mZ.toString,bZ=gZ.hasOwnProperty,yZ=RegExp("^"+vZ.call(bZ).replace(hZ,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function xZ(e){if(!dZ(e)||uZ(e))return!1;var t=cZ(e)?yZ:pZ;return t.test(fZ(e))}var wZ=xZ;function _Z(e,t){return e==null?void 0:e[t]}var CZ=_Z,$Z=wZ,SZ=CZ;function EZ(e,t){var n=SZ(e,t);return $Z(n)?n:void 0}var Co=EZ,kZ=Co,TZ=li,OZ=kZ(TZ,"Map"),Kb=OZ,MZ=Co,AZ=MZ(Object,"create"),Fh=AZ,S2=Fh;function RZ(){this.__data__=S2?S2(null):{},this.size=0}var jZ=RZ;function DZ(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var NZ=DZ,IZ=Fh,PZ="__lodash_hash_undefined__",LZ=Object.prototype,FZ=LZ.hasOwnProperty;function BZ(e){var t=this.__data__;if(IZ){var n=t[e];return n===PZ?void 0:n}return FZ.call(t,e)?t[e]:void 0}var zZ=BZ,WZ=Fh,UZ=Object.prototype,HZ=UZ.hasOwnProperty;function VZ(e){var t=this.__data__;return WZ?t[e]!==void 0:HZ.call(t,e)}var qZ=VZ,YZ=Fh,GZ="__lodash_hash_undefined__";function KZ(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=YZ&&t===void 0?GZ:t,this}var ZZ=KZ,XZ=jZ,QZ=NZ,JZ=zZ,eX=qZ,tX=ZZ;function Zs(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])}}Zs.prototype.clear=XZ;Zs.prototype.delete=QZ;Zs.prototype.get=JZ;Zs.prototype.has=eX;Zs.prototype.set=tX;var nX=Zs,E2=nX,rX=Ph,iX=Kb;function aX(){this.size=0,this.__data__={hash:new E2,map:new(iX||rX),string:new E2}}var oX=aX;function sX(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var lX=sX,cX=lX;function uX(e,t){var n=e.__data__;return cX(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Bh=uX,dX=Bh;function fX(e){var t=dX(this,e).delete(e);return this.size-=t?1:0,t}var hX=fX,pX=Bh;function mX(e){return pX(this,e).get(e)}var gX=mX,vX=Bh;function bX(e){return vX(this,e).has(e)}var yX=bX,xX=Bh;function wX(e,t){var n=xX(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var _X=wX,CX=oX,$X=hX,SX=gX,EX=yX,kX=_X;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=CX;Xs.prototype.delete=$X;Xs.prototype.get=SX;Xs.prototype.has=EX;Xs.prototype.set=kX;var Zb=Xs,TX=Ph,OX=Kb,MX=Zb,AX=200;function RX(e,t){var n=this.__data__;if(n instanceof TX){var r=n.__data__;if(!OX||r.length<AX-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new MX(r)}return n.set(e,t),this.size=n.size,this}var jX=RX,DX=Ph,NX=wK,IX=CK,PX=SK,LX=kK,FX=jX;function Qs(e){var t=this.__data__=new DX(e);this.size=t.size}Qs.prototype.clear=NX;Qs.prototype.delete=IX;Qs.prototype.get=PX;Qs.prototype.has=LX;Qs.prototype.set=FX;var zh=Qs,BX=Co,zX=function(){try{var e=BX(Object,"defineProperty");return e({},"",{}),e}catch{}}(),QT=zX,k2=QT;function WX(e,t,n){t=="__proto__"&&k2?k2(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Xb=WX,UX=Xb,HX=wu;function VX(e,t,n){(n!==void 0&&!HX(e[t],n)||n===void 0&&!(t in e))&&UX(e,t,n)}var JT=VX;function qX(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 YX=qX,GX=YX,KX=GX(),eO=KX,mf={exports:{}};mf.exports;(function(e,t){var n=li,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})(mf,mf.exports);var tO=mf.exports,ZX=li,XX=ZX.Uint8Array,nO=XX,T2=nO;function QX(e){var t=new e.constructor(e.byteLength);return new T2(t).set(new T2(e)),t}var Qb=QX,JX=Qb;function eQ(e,t){var n=t?JX(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var rO=eQ;function tQ(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var iO=tQ,nQ=ci,O2=Object.create,rQ=function(){function e(){}return function(t){if(!nQ(t))return{};if(O2)return O2(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),iQ=rQ;function aQ(e,t){return function(n){return e(t(n))}}var aO=aQ,oQ=aO,sQ=oQ(Object.getPrototypeOf,Object),Jb=sQ,lQ=Object.prototype;function cQ(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||lQ;return e===n}var ey=cQ,uQ=iQ,dQ=Jb,fQ=ey;function hQ(e){return typeof e.constructor=="function"&&!fQ(e)?uQ(dQ(e)):{}}var oO=hQ;function pQ(e){return e!=null&&typeof e=="object"}var Er=pQ,mQ=zi,gQ=Er,vQ="[object Arguments]";function bQ(e){return gQ(e)&&mQ(e)==vQ}var yQ=bQ,M2=yQ,xQ=Er,sO=Object.prototype,wQ=sO.hasOwnProperty,_Q=sO.propertyIsEnumerable,CQ=M2(function(){return arguments}())?M2:function(e){return xQ(e)&&wQ.call(e,"callee")&&!_Q.call(e,"callee")},Wh=CQ,$Q=Array.isArray,ir=$Q,SQ=9007199254740991;function EQ(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=SQ}var ty=EQ,kQ=Lh,TQ=ty;function OQ(e){return e!=null&&TQ(e.length)&&!kQ(e)}var Js=OQ,MQ=Js,AQ=Er;function RQ(e){return AQ(e)&&MQ(e)}var lO=RQ,gf={exports:{}};function jQ(){return!1}var DQ=jQ;gf.exports;(function(e,t){var n=li,r=DQ,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})(gf,gf.exports);var Uh=gf.exports,NQ=zi,IQ=Jb,PQ=Er,LQ="[object Object]",FQ=Function.prototype,BQ=Object.prototype,cO=FQ.toString,zQ=BQ.hasOwnProperty,WQ=cO.call(Object);function UQ(e){if(!PQ(e)||NQ(e)!=LQ)return!1;var t=IQ(e);if(t===null)return!0;var n=zQ.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&cO.call(n)==WQ}var ny=UQ;const ry=on(ny);var HQ=zi,VQ=ty,qQ=Er,YQ="[object Arguments]",GQ="[object Array]",KQ="[object Boolean]",ZQ="[object Date]",XQ="[object Error]",QQ="[object Function]",JQ="[object Map]",eJ="[object Number]",tJ="[object Object]",nJ="[object RegExp]",rJ="[object Set]",iJ="[object String]",aJ="[object WeakMap]",oJ="[object ArrayBuffer]",sJ="[object DataView]",lJ="[object Float32Array]",cJ="[object Float64Array]",uJ="[object Int8Array]",dJ="[object Int16Array]",fJ="[object Int32Array]",hJ="[object Uint8Array]",pJ="[object Uint8ClampedArray]",mJ="[object Uint16Array]",gJ="[object Uint32Array]",Jt={};Jt[lJ]=Jt[cJ]=Jt[uJ]=Jt[dJ]=Jt[fJ]=Jt[hJ]=Jt[pJ]=Jt[mJ]=Jt[gJ]=!0;Jt[YQ]=Jt[GQ]=Jt[oJ]=Jt[KQ]=Jt[sJ]=Jt[ZQ]=Jt[XQ]=Jt[QQ]=Jt[JQ]=Jt[eJ]=Jt[tJ]=Jt[nJ]=Jt[rJ]=Jt[iJ]=Jt[aJ]=!1;function vJ(e){return qQ(e)&&VQ(e.length)&&!!Jt[HQ(e)]}var bJ=vJ;function yJ(e){return function(t){return e(t)}}var el=yJ,vf={exports:{}};vf.exports;(function(e,t){var n=KT,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})(vf,vf.exports);var Hh=vf.exports,xJ=bJ,wJ=el,A2=Hh,R2=A2&&A2.isTypedArray,_J=R2?wJ(R2):xJ,iy=_J;function CJ(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var uO=CJ,$J=Xb,SJ=wu,EJ=Object.prototype,kJ=EJ.hasOwnProperty;function TJ(e,t,n){var r=e[t];(!(kJ.call(e,t)&&SJ(r,n))||n===void 0&&!(t in e))&&$J(e,t,n)}var ay=TJ,OJ=ay,MJ=Xb;function AJ(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?MJ(n,s,l):OJ(n,s,l)}return n}var tl=AJ;function RJ(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var jJ=RJ,DJ=9007199254740991,NJ=/^(?:0|[1-9]\d*)$/;function IJ(e,t){var n=typeof e;return t=t??DJ,!!t&&(n=="number"||n!="symbol"&&NJ.test(e))&&e>-1&&e%1==0&&e<t}var Vh=IJ,PJ=jJ,LJ=Wh,FJ=ir,BJ=Uh,zJ=Vh,WJ=iy,UJ=Object.prototype,HJ=UJ.hasOwnProperty;function VJ(e,t){var n=FJ(e),r=!n&&LJ(e),i=!n&&!r&&BJ(e),a=!n&&!r&&!i&&WJ(e),o=n||r||i||a,s=o?PJ(e.length,String):[],l=s.length;for(var c in e)(t||HJ.call(e,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||zJ(c,l)))&&s.push(c);return s}var dO=VJ;function qJ(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var YJ=qJ,GJ=ci,KJ=ey,ZJ=YJ,XJ=Object.prototype,QJ=XJ.hasOwnProperty;function JJ(e){if(!GJ(e))return ZJ(e);var t=KJ(e),n=[];for(var r in e)r=="constructor"&&(t||!QJ.call(e,r))||n.push(r);return n}var eee=JJ,tee=dO,nee=eee,ree=Js;function iee(e){return ree(e)?tee(e,!0):nee(e)}var _u=iee,aee=tl,oee=_u;function see(e){return aee(e,oee(e))}var lee=see,j2=JT,cee=tO,uee=rO,dee=iO,fee=oO,D2=Wh,N2=ir,hee=lO,pee=Uh,mee=Lh,gee=ci,vee=ny,bee=iy,I2=uO,yee=lee;function xee(e,t,n,r,i,a,o){var s=I2(e,n),l=I2(t,n),c=o.get(l);if(c){j2(e,n,c);return}var u=a?a(s,l,n+"",e,t,o):void 0,d=u===void 0;if(d){var f=N2(l),p=!f&&pee(l),g=!f&&!p&&bee(l);u=l,f||p||g?N2(s)?u=s:hee(s)?u=dee(s):p?(d=!1,u=cee(l,!0)):g?(d=!1,u=uee(l,!0)):u=[]:vee(l)||D2(l)?(u=s,D2(s)?u=yee(s):(!gee(s)||mee(s))&&(u=fee(l))):d=!1}d&&(o.set(l,u),i(u,l,r,a,o),o.delete(l)),j2(e,n,u)}var wee=xee,_ee=zh,Cee=JT,$ee=eO,See=wee,Eee=ci,kee=_u,Tee=uO;function fO(e,t,n,r,i){e!==t&&$ee(t,function(a,o){if(i||(i=new _ee),Eee(a))See(e,t,o,n,fO,r,i);else{var s=r?r(Tee(e,o),a,o+"",e,t,i):void 0;s===void 0&&(s=a),Cee(e,o,s)}},kee)}var Oee=fO;function Mee(e){return e}var qh=Mee;function Aee(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 Ree=Aee,jee=Ree,P2=Math.max;function Dee(e,t,n){return t=P2(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=P2(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),jee(e,this,s)}}var hO=Dee;function Nee(e){return function(){return e}}var Iee=Nee,Pee=Iee,L2=QT,Lee=qh,Fee=L2?function(e,t){return L2(e,"toString",{configurable:!0,enumerable:!1,value:Pee(t),writable:!0})}:Lee,Bee=Fee,zee=800,Wee=16,Uee=Date.now;function Hee(e){var t=0,n=0;return function(){var r=Uee(),i=Wee-(r-n);if(n=r,i>0){if(++t>=zee)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Vee=Hee,qee=Bee,Yee=Vee,Gee=Yee(qee),pO=Gee,Kee=qh,Zee=hO,Xee=pO;function Qee(e,t){return Xee(Zee(e,t,Kee),e+"")}var oy=Qee,Jee=wu,ete=Js,tte=Vh,nte=ci;function rte(e,t,n){if(!nte(n))return!1;var r=typeof t;return(r=="number"?ete(n)&&tte(t,n.length):r=="string"&&t in n)?Jee(n[t],e):!1}var mO=rte,ite=oy,ate=mO;function ote(e){return ite(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&&ate(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 ste=ote,lte=Oee,cte=ste,ute=cte(function(e,t,n){lte(e,t,n)}),dte=ute;const gO=on(dte);var fte=zi,hte=Er,pte="[object Symbol]";function mte(e){return typeof e=="symbol"||hte(e)&&fte(e)==pte}var Yh=mte,gte=ir,vte=Yh,bte=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,yte=/^\w*$/;function xte(e,t){if(gte(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||vte(e)?!0:yte.test(e)||!bte.test(e)||t!=null&&e in Object(t)}var sy=xte,vO=Zb,wte="Expected a function";function ly(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(wte);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(ly.Cache||vO),n}ly.Cache=vO;var _te=ly,Cte=_te,$te=500;function Ste(e){var t=Cte(e,function(r){return n.size===$te&&n.clear(),r}),n=t.cache;return t}var Ete=Ste,kte=Ete,Tte=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ote=/\\(\\)?/g,Mte=kte(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Tte,function(n,r,i,a){t.push(i?a.replace(Ote,"$1"):r||n)}),t}),Ate=Mte;function Rte(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 Gh=Rte,F2=Ks,jte=Gh,Dte=ir,Nte=Yh,B2=F2?F2.prototype:void 0,z2=B2?B2.toString:void 0;function bO(e){if(typeof e=="string")return e;if(Dte(e))return jte(e,bO)+"";if(Nte(e))return z2?z2.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Ite=bO,Pte=Ite;function Lte(e){return e==null?"":Pte(e)}var yO=Lte,Fte=ir,Bte=sy,zte=Ate,Wte=yO;function Ute(e,t){return Fte(e)?e:Bte(e,t)?[e]:zte(Wte(e))}var nl=Ute,Hte=Yh;function Vte(e){if(typeof e=="string"||Hte(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var rl=Vte,qte=nl,Yte=rl;function Gte(e,t){t=qte(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Yte(t[n++])];return n&&n==r?e:void 0}var Cu=Gte,Kte=Cu;function Zte(e,t,n){var r=e==null?void 0:Kte(e,t);return r===void 0?n:r}var xO=Zte;const ri=on(xO);var Xte=ay,Qte=nl,Jte=Vh,W2=ci,ene=rl;function tne(e,t,n,r){if(!W2(e))return e;t=Qte(t,e);for(var i=-1,a=t.length,o=a-1,s=e;s!=null&&++i<a;){var l=ene(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=W2(u)?u:Jte(t[i+1])?[]:{})}Xte(s,l,c),s=s[l]}return e}var wO=tne,nne=wO;function rne(e,t,n){return e==null?e:nne(e,t,n)}var ine=rne;const Bl=on(ine);function yv(){return yv=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},yv.apply(null,arguments)}function ane(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 one=["outlineWidth","outlineColor","outlineOpacity"],sne=function(e){return e.outlineWidth,e.outlineColor,e.outlineOpacity,ane(e,one)},lne=["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"],cne=function(e,t){return yv({},t,e)},une=function(e,t){var n=gO({},e,t);return lne.forEach(function(r){Bl(n,r,cne(ri(n,r),n.text))}),n},_O=function(e,t){return t?gO({},e,t):e},dne={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}}},fne=function(e){return h.useMemo(function(){return une(dne,e)},[e])},hne=function(e,t){return h.useMemo(function(){return _O(e,t)},[e,t])},CO=h.createContext(null),pne={},mne=function(e){var t=e.theme,n=t===void 0?pne:t,r=e.children,i=fne(n);return b.jsx(CO.Provider,{value:i,children:r})},Lt=function(){var e=h.useContext(CO);if(e===null)throw new Error("Unable to find the theme, did you forget to wrap your component with ThemeProvider?");return e};function ho(){return ho=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},ho.apply(null,arguments)}var gne=["basic","chip","container","table","tableCell","tableCellValue"],vne={pointerEvents:"none",position:"absolute",zIndex:10,top:0,left:0},U2=function(e,t){return"translate("+e+"px, "+t+"px)"},$O=h.memo(function(e){var t,n=e.position,r=e.anchor,i=e.children,a=Lt(),o=Vn(),s=o.animate,l=o.config,c=xue(),u=c[0],d=c[1],f=h.useRef(!1),p=void 0,g=!1,m=d.width>0&&d.height>0,v=Math.round(n[0]),w=Math.round(n[1]);m&&(r==="top"?(v-=d.width/2,w-=d.height+14):r==="right"?(v+=14,w-=d.height/2):r==="bottom"?(v-=d.width/2,w+=14):r==="left"?(v-=d.width+14,w-=d.height/2):r==="center"&&(v-=d.width/2,w-=d.height/2),p={transform:U2(v,w)},f.current||(g=!0),f.current=[v,w]);var _=si({to:p,config:l,immediate:!s||g}),y=a.tooltip;y.basic,y.chip,y.container,y.table,y.tableCell,y.tableCellValue;var C=function($,E){if($==null)return{};var O={};for(var k in $)if({}.hasOwnProperty.call($,k)){if(E.indexOf(k)!==-1)continue;O[k]=$[k]}return O}(y,gne),x=ho({},vne,C,{transform:(t=_.transform)!=null?t:U2(v,w),opacity:_.transform?1:0});return b.jsx(qt.div,{ref:u,style:x,children:i})});$O.displayName="TooltipWrapper";var SO=h.memo(function(e){var t=e.size,n=t===void 0?12:t,r=e.color,i=e.style;return b.jsx("span",{style:ho({display:"block",width:n,height:n,background:r},i===void 0?{}:i)})}),cy=h.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=Ns(i);if(typeof l=="function")t=l();else{var d=r;u!==void 0&&d!==void 0&&(d=u(d)),t=b.jsxs("div",{style:c.tooltip.basic,children:[o&&b.jsx(SO,{color:s,style:c.tooltip.chip}),d!==void 0?b.jsxs("span",{children:[n,": ",b.jsx("strong",{children:""+d})]}):n]})}return b.jsx("div",{style:c.tooltip.container,role:"tooltip",children:t})}),bne={width:"100%",borderCollapse:"collapse"},EO=h.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():b.jsxs("div",{children:[n&&n,b.jsx("table",{style:ho({},bne,o.tooltip.table),children:b.jsx("tbody",{children:i.map(function(s,l){return b.jsx("tr",{children:s.map(function(c,u){return b.jsx("td",{style:o.tooltip.tableCell,children:c},u)})},l)})})})]}),b.jsx("div",{style:o.tooltip.container,children:t})):null});EO.displayName="TableTooltip";var xv=h.memo(function(e){var t=e.x0,n=e.x1,r=e.y0,i=e.y1,a=Lt(),o=Vn(),s=o.animate,l=o.config,c=h.useMemo(function(){return ho({},a.crosshair.line,{pointerEvents:"none"})},[a.crosshair.line]),u=si({x1:t,x2:n,y1:r,y2:i,config:l,immediate:!s});return b.jsx(qt.line,ho({},u,{fill:"none",style:c}))});xv.displayName="CrosshairLine";var wv=h.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}),b.jsxs(b.Fragment,{children:[t&&b.jsx(xv,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}),n&&b.jsx(xv,{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1})]})});wv.displayName="Crosshair";var kO=h.createContext({showTooltipAt:function(){},showTooltipFromEvent:function(){},hideTooltip:function(){}}),_v={isVisible:!1,position:[null,null],content:null,anchor:null},TO=h.createContext(_v),yne=function(e){var t=h.useState(_v),n=t[0],r=t[1],i=h.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=h.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,p="touches"in l?l.touches[0]:l,g=p.clientX,m=p.clientY,v=(g-u.left)*f,w=(m-u.top)*f;c!=="left"&&c!=="right"||(c=v<u.width/2?"right":"left"),r({isVisible:!0,position:[v,w],anchor:c,content:s})},[e,r]),o=h.useCallback(function(){r(_v)},[r]);return{actions:h.useMemo(function(){return{showTooltipAt:i,showTooltipFromEvent:a,hideTooltip:o}},[i,a,o]),state:n}},Wi=function(){var e=h.useContext(kO);if(e===void 0)throw new Error("useTooltip must be used within a TooltipProvider");return e},xne=function(){var e=h.useContext(TO);if(e===void 0)throw new Error("useTooltipState must be used within a TooltipProvider");return e},wne=function(e){return e.isVisible},_ne=function(){var e=xne();return wne(e)?b.jsx($O,{position:e.position,anchor:e.anchor,children:e.content}):null},Cne=function(e){var t=e.container,n=e.children,r=yne(t),i=r.actions,a=r.state;return b.jsx(kO.Provider,{value:i,children:b.jsx(TO.Provider,{value:a,children:n})})},$ne=zi,Sne=ir,Ene=Er,kne="[object String]";function Tne(e){return typeof e=="string"||!Sne(e)&&Ene(e)&&$ne(e)==kne}var One=Tne;const Mne=on(One);let br;typeof window<"u"?br=window:typeof self<"u"?br=self:br=global;let Cv=null,$v=null;const H2=20,Vm=br.clearTimeout,V2=br.setTimeout,qm=br.cancelAnimationFrame||br.mozCancelAnimationFrame||br.webkitCancelAnimationFrame,q2=br.requestAnimationFrame||br.mozRequestAnimationFrame||br.webkitRequestAnimationFrame;qm==null||q2==null?(Cv=Vm,$v=function(t){return V2(t,H2)}):(Cv=function([t,n]){qm(t),Vm(n)},$v=function(t){const n=q2(function(){Vm(r),t()}),r=V2(function(){qm(n),t()},H2);return[n,r]});function Ane(e){let t,n,r,i,a,o,s;const l=typeof document<"u"&&document.attachEvent;if(!l){o=function(w){const _=w.__resizeTriggers__,y=_.firstElementChild,C=_.lastElementChild,x=y.firstElementChild;C.scrollLeft=C.scrollWidth,C.scrollTop=C.scrollHeight,x.style.width=y.offsetWidth+1+"px",x.style.height=y.offsetHeight+1+"px",y.scrollLeft=y.scrollWidth,y.scrollTop=y.scrollHeight},a=function(w){return w.offsetWidth!==w.__resizeLast__.width||w.offsetHeight!==w.__resizeLast__.height},s=function(w){if(w.target.className&&typeof w.target.className.indexOf=="function"&&w.target.className.indexOf("contract-trigger")<0&&w.target.className.indexOf("expand-trigger")<0)return;const _=this;o(this),this.__resizeRAF__&&Cv(this.__resizeRAF__),this.__resizeRAF__=$v(function(){a(_)&&(_.__resizeLast__.width=_.offsetWidth,_.__resizeLast__.height=_.offsetHeight,_.__resizeListeners__.forEach(function(x){x.call(_,w)}))})};let f=!1,p="";r="animationstart";const g="Webkit Moz O ms".split(" ");let m="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),v="";{const w=document.createElement("fakeelement");if(w.style.animationName!==void 0&&(f=!0),f===!1){for(let _=0;_<g.length;_++)if(w.style[g[_]+"AnimationName"]!==void 0){v=g[_],p="-"+v.toLowerCase()+"-",r=m[_],f=!0;break}}}n="resizeanim",t="@"+p+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",i=p+"animation: 1ms "+n+"; "}const c=function(f){if(!f.getElementById("detectElementResize")){const p=(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%; }',g=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=p:m.appendChild(f.createTextNode(p)),g.appendChild(m)}};return{addResizeListener:function(f,p){if(l)f.attachEvent("onresize",p);else{if(!f.__resizeTriggers__){const g=f.ownerDocument,m=br.getComputedStyle(f);m&&m.position==="static"&&(f.style.position="relative"),c(g),f.__resizeLast__={},f.__resizeListeners__=[],(f.__resizeTriggers__=g.createElement("div")).className="resize-triggers";const v=g.createElement("div");v.className="expand-trigger",v.appendChild(g.createElement("div"));const w=g.createElement("div");w.className="contract-trigger",f.__resizeTriggers__.appendChild(v),f.__resizeTriggers__.appendChild(w),f.appendChild(f.__resizeTriggers__),o(f),f.addEventListener("scroll",s,!0),r&&(f.__resizeTriggers__.__animationListener__=function(y){y.animationName===n&&o(f)},f.__resizeTriggers__.addEventListener(r,f.__resizeTriggers__.__animationListener__))}f.__resizeListeners__.push(p)}},removeResizeListener:function(f,p){if(l)f.detachEvent("onresize",p);else if(f.__resizeListeners__.splice(f.__resizeListeners__.indexOf(p),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 Rne extends h.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 p=()=>{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 p(),d},get scaledWidth(){return p(),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=Ane(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:p}=this.state,g={overflow:"visible"},m={};let v=!1;return i||(f===0&&(v=!0),g.height=0,m.height=f,m.scaledHeight=f),a||(p===0&&(v=!0),g.width=0,m.width=p,m.scaledWidth=p),o&&(v=!1),h.createElement(u,{ref:this._setRef,style:{...g,...c},...d},!v&&t(m))}}function Kh(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function uy(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function il(){}var po=.7,Rs=1/po,us="\\s*([+-]?\\d+)\\s*",Dc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Xr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",jne=/^#([0-9a-f]{3,8})$/,Dne=new RegExp(`^rgb\\(${us},${us},${us}\\)$`),Nne=new RegExp(`^rgb\\(${Xr},${Xr},${Xr}\\)$`),Ine=new RegExp(`^rgba\\(${us},${us},${us},${Dc}\\)$`),Pne=new RegExp(`^rgba\\(${Xr},${Xr},${Xr},${Dc}\\)$`),Lne=new RegExp(`^hsl\\(${Dc},${Xr},${Xr}\\)$`),Fne=new RegExp(`^hsla\\(${Dc},${Xr},${Xr},${Dc}\\)$`),Y2={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};Kh(il,Nc,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:G2,formatHex:G2,formatHex8:Bne,formatHsl:zne,formatRgb:K2,toString:K2});function G2(){return this.rgb().formatHex()}function Bne(){return this.rgb().formatHex8()}function zne(){return MO(this).formatHsl()}function K2(){return this.rgb().formatRgb()}function Nc(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=jne.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Z2(t):n===3?new jn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?od(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?od(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=Dne.exec(e))?new jn(t[1],t[2],t[3],1):(t=Nne.exec(e))?new jn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Ine.exec(e))?od(t[1],t[2],t[3],t[4]):(t=Pne.exec(e))?od(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Lne.exec(e))?J2(t[1],t[2]/100,t[3]/100,1):(t=Fne.exec(e))?J2(t[1],t[2]/100,t[3]/100,t[4]):Y2.hasOwnProperty(e)?Z2(Y2[e]):e==="transparent"?new jn(NaN,NaN,NaN,0):null}function Z2(e){return new jn(e>>16&255,e>>8&255,e&255,1)}function od(e,t,n,r){return r<=0&&(e=t=n=NaN),new jn(e,t,n,r)}function OO(e){return e instanceof il||(e=Nc(e)),e?(e=e.rgb(),new jn(e.r,e.g,e.b,e.opacity)):new jn}function js(e,t,n,r){return arguments.length===1?OO(e):new jn(e,t,n,r??1)}function jn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Kh(jn,js,uy(il,{brighter(e){return e=e==null?Rs:Math.pow(Rs,e),new jn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?po:Math.pow(po,e),new jn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new jn(to(this.r),to(this.g),to(this.b),bf(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:X2,formatHex:X2,formatHex8:Wne,formatRgb:Q2,toString:Q2}));function X2(){return`#${Ya(this.r)}${Ya(this.g)}${Ya(this.b)}`}function Wne(){return`#${Ya(this.r)}${Ya(this.g)}${Ya(this.b)}${Ya((isNaN(this.opacity)?1:this.opacity)*255)}`}function Q2(){const e=bf(this.opacity);return`${e===1?"rgb(":"rgba("}${to(this.r)}, ${to(this.g)}, ${to(this.b)}${e===1?")":`, ${e})`}`}function bf(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function to(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ya(e){return e=to(e),(e<16?"0":"")+e.toString(16)}function J2(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Mr(e,t,n,r)}function MO(e){if(e instanceof Mr)return new Mr(e.h,e.s,e.l,e.opacity);if(e instanceof il||(e=Nc(e)),!e)return new Mr;if(e instanceof Mr)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 Mr(o,s,l,e.opacity)}function Une(e,t,n,r){return arguments.length===1?MO(e):new Mr(e,t,n,r??1)}function Mr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Kh(Mr,Une,uy(il,{brighter(e){return e=e==null?Rs:Math.pow(Rs,e),new Mr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?po:Math.pow(po,e),new Mr(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 jn(Ym(e>=240?e-240:e+120,i,r),Ym(e,i,r),Ym(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Mr(e_(this.h),sd(this.s),sd(this.l),bf(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=bf(this.opacity);return`${e===1?"hsl(":"hsla("}${e_(this.h)}, ${sd(this.s)*100}%, ${sd(this.l)*100}%${e===1?")":`, ${e})`}`}}));function e_(e){return e=(e||0)%360,e<0?e+360:e}function sd(e){return Math.max(0,Math.min(1,e||0))}function Ym(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 Hne=Math.PI/180,Vne=180/Math.PI;var AO=-.14861,dy=1.78277,fy=-.29227,Zh=-.90649,Ic=1.97294,t_=Ic*Zh,n_=Ic*dy,r_=dy*fy-Zh*AO;function qne(e){if(e instanceof no)return new no(e.h,e.s,e.l,e.opacity);e instanceof jn||(e=OO(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(r_*r+t_*t-n_*n)/(r_+t_-n_),a=r-i,o=(Ic*(n-i)-fy*a)/Zh,s=Math.sqrt(o*o+a*a)/(Ic*i*(1-i)),l=s?Math.atan2(o,a)*Vne-120:NaN;return new no(l<0?l+360:l,s,i,e.opacity)}function ii(e,t,n,r){return arguments.length===1?qne(e):new no(e,t,n,r??1)}function no(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Kh(no,ii,uy(il,{brighter(e){return e=e==null?Rs:Math.pow(Rs,e),new no(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?po:Math.pow(po,e),new no(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*Hne,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new jn(255*(t+n*(AO*r+dy*i)),255*(t+n*(fy*r+Zh*i)),255*(t+n*(Ic*r)),this.opacity)}}));function Yne(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 Gne(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 Yne((n-r/t)*t,o,i,a,s)}}const Xh=e=>()=>e;function RO(e,t){return function(n){return e+n*t}}function Kne(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 Zne(e,t){var n=t-e;return n?RO(e,n>180||n<-180?n-360*Math.round(n/360):n):Xh(isNaN(e)?t:e)}function Xne(e){return(e=+e)==1?ds:function(t,n){return n-t?Kne(t,n,e):Xh(isNaN(t)?n:t)}}function ds(e,t){var n=t-e;return n?RO(e,n):Xh(isNaN(e)?t:e)}const i_=function e(t){var n=Xne(t);function r(i,a){var o=n((i=js(i)).r,(a=js(a)).r),s=n(i.g,a.g),l=n(i.b,a.b),c=ds(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 Qne(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=js(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 Jne=Qne(Gne);function ere(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 tre(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function nre(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]=hy(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 rre(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Pc(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function ire(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]=hy(e[i],t[i]):r[i]=t[i];return function(a){for(i in n)r[i]=n[i](a);return r}}var Sv=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Gm=new RegExp(Sv.source,"g");function are(e){return function(){return e}}function ore(e){return function(t){return e(t)+""}}function jO(e,t){var n=Sv.lastIndex=Gm.lastIndex=0,r,i,a,o=-1,s=[],l=[];for(e=e+"",t=t+"";(r=Sv.exec(e))&&(i=Gm.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:Pc(r,i)})),n=Gm.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?l[0]?ore(l[0].x):are(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 hy(e,t){var n=typeof t,r;return t==null||n==="boolean"?Xh(t):(n==="number"?Pc:n==="string"?(r=Nc(t))?(t=r,i_):jO:t instanceof Nc?i_:t instanceof Date?rre:tre(t)?ere:Array.isArray(t)?nre:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?ire:Pc)(e,t)}function DO(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function NO(e){return function t(n){n=+n;function r(i,a){var o=e((i=ii(i)).h,(a=ii(a)).h),s=ds(i.s,a.s),l=ds(i.l,a.l),c=ds(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)}NO(Zne);var py=NO(ds),sre="__lodash_hash_undefined__";function lre(e){return this.__data__.set(e,sre),this}var cre=lre;function ure(e){return this.__data__.has(e)}var dre=ure,fre=Zb,hre=cre,pre=dre;function yf(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new fre;++t<n;)this.add(e[t])}yf.prototype.add=yf.prototype.push=hre;yf.prototype.has=pre;var my=yf;function mre(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 gre=mre;function vre(e){return e!==e}var bre=vre;function yre(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}var xre=yre,wre=gre,_re=bre,Cre=xre;function $re(e,t,n){return t===t?Cre(e,t,n):wre(e,_re,n)}var Sre=$re,Ere=Sre;function kre(e,t){var n=e==null?0:e.length;return!!n&&Ere(e,t,0)>-1}var IO=kre;function Tre(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 PO=Tre;function Ore(e,t){return e.has(t)}var gy=Ore,Mre=my,Are=IO,Rre=PO,jre=Gh,Dre=el,Nre=gy,Ire=200;function Pre(e,t,n,r){var i=-1,a=Are,o=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=jre(t,Dre(n))),r?(a=Rre,o=!1):t.length>=Ire&&(a=Nre,o=!1,t=new Mre(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 Lre=Pre,Fre=Lre,Bre=oy,zre=lO,Wre=Bre(function(e,t){return zre(e)?Fre(e,t):[]}),Ure=Wre;const LO=on(Ure);function pt(e){return function(){return e}}const a_=Math.abs,Tn=Math.atan2,Ia=Math.cos,Hre=Math.max,Km=Math.min,Ur=Math.sin,ns=Math.sqrt,Mn=1e-12,Lc=Math.PI,xf=Lc/2,kd=2*Lc;function Vre(e){return e>1?0:e<-1?Lc:Math.acos(e)}function o_(e){return e>=1?xf:e<=-1?-xf:Math.asin(e)}const Ev=Math.PI,kv=2*Ev,Ba=1e-6,qre=kv-Ba;function FO(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function Yre(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return FO;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 Gre=class{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?FO:Yre(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 p=r-o,g=i-s,m=l*l+c*c,v=p*p+g*g,w=Math.sqrt(m),_=Math.sqrt(f),y=a*Math.tan((Ev-Math.acos((m+f-v)/(2*w*_)))/2),C=y/_,x=y/w;Math.abs(C-1)>Ba&&this._append`L${t+C*u},${n+C*d}`,this._append`A${a},${a},0,0,${+(d*p>u*g)},${this._x1=t+x*l},${this._y1=n+x*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%kv+kv),f>qre?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>=Ev)},${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 vy(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 Gre(t)}function Kre(e){return e.innerRadius}function Zre(e){return e.outerRadius}function Xre(e){return e.startAngle}function Qre(e){return e.endAngle}function Jre(e){return e&&e.padAngle}function eie(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<Mn))return f=(u*(t-a)-d*(e-i))/f,[e+f*l,t+f*c]}function ld(e,t,n,r,i,a,o){var s=e-n,l=t-r,c=(o?a:-a)/ns(s*s+l*l),u=c*l,d=-c*s,f=e+u,p=t+d,g=n+u,m=r+d,v=(f+g)/2,w=(p+m)/2,_=g-f,y=m-p,C=_*_+y*y,x=i-a,$=f*m-g*p,E=(y<0?-1:1)*ns(Hre(0,x*x*C-$*$)),O=($*y-_*E)/C,k=(-$*_-y*E)/C,j=($*y+_*E)/C,S=(-$*_+y*E)/C,T=O-v,R=k-w,N=j-v,D=S-w;return T*T+R*R>N*N+D*D&&(O=j,k=S),{cx:O,cy:k,x01:-u,y01:-d,x11:O*(i/x-1),y11:k*(i/x-1)}}function tie(){var e=Kre,t=Zre,n=pt(0),r=null,i=Xre,a=Qre,o=Jre,s=null,l=vy(c);function c(){var u,d,f=+e.apply(this,arguments),p=+t.apply(this,arguments),g=i.apply(this,arguments)-xf,m=a.apply(this,arguments)-xf,v=a_(m-g),w=m>g;if(s||(s=u=l()),p<f&&(d=p,p=f,f=d),!(p>Mn))s.moveTo(0,0);else if(v>kd-Mn)s.moveTo(p*Ia(g),p*Ur(g)),s.arc(0,0,p,g,m,!w),f>Mn&&(s.moveTo(f*Ia(m),f*Ur(m)),s.arc(0,0,f,m,g,w));else{var _=g,y=m,C=g,x=m,$=v,E=v,O=o.apply(this,arguments)/2,k=O>Mn&&(r?+r.apply(this,arguments):ns(f*f+p*p)),j=Km(a_(p-f)/2,+n.apply(this,arguments)),S=j,T=j,R,N;if(k>Mn){var D=o_(k/f*Ur(O)),M=o_(k/p*Ur(O));($-=D*2)>Mn?(D*=w?1:-1,C+=D,x-=D):($=0,C=x=(g+m)/2),(E-=M*2)>Mn?(M*=w?1:-1,_+=M,y-=M):(E=0,_=y=(g+m)/2)}var I=p*Ia(_),z=p*Ur(_),U=f*Ia(x),P=f*Ur(x);if(j>Mn){var W=p*Ia(y),Y=p*Ur(y),X=f*Ia(C),K=f*Ur(C),Z;if(v<Lc)if(Z=eie(I,z,X,K,W,Y,U,P)){var ee=I-Z[0],J=z-Z[1],B=W-Z[0],L=Y-Z[1],F=1/Ur(Vre((ee*B+J*L)/(ns(ee*ee+J*J)*ns(B*B+L*L)))/2),H=ns(Z[0]*Z[0]+Z[1]*Z[1]);S=Km(j,(f-H)/(F-1)),T=Km(j,(p-H)/(F+1))}else S=T=0}E>Mn?T>Mn?(R=ld(X,K,I,z,p,T,w),N=ld(W,Y,U,P,p,T,w),s.moveTo(R.cx+R.x01,R.cy+R.y01),T<j?s.arc(R.cx,R.cy,T,Tn(R.y01,R.x01),Tn(N.y01,N.x01),!w):(s.arc(R.cx,R.cy,T,Tn(R.y01,R.x01),Tn(R.y11,R.x11),!w),s.arc(0,0,p,Tn(R.cy+R.y11,R.cx+R.x11),Tn(N.cy+N.y11,N.cx+N.x11),!w),s.arc(N.cx,N.cy,T,Tn(N.y11,N.x11),Tn(N.y01,N.x01),!w))):(s.moveTo(I,z),s.arc(0,0,p,_,y,!w)):s.moveTo(I,z),!(f>Mn)||!($>Mn)?s.lineTo(U,P):S>Mn?(R=ld(U,P,W,Y,f,-S,w),N=ld(I,z,X,K,f,-S,w),s.lineTo(R.cx+R.x01,R.cy+R.y01),S<j?s.arc(R.cx,R.cy,S,Tn(R.y01,R.x01),Tn(N.y01,N.x01),!w):(s.arc(R.cx,R.cy,S,Tn(R.y01,R.x01),Tn(R.y11,R.x11),!w),s.arc(0,0,f,Tn(R.cy+R.y11,R.cx+R.x11),Tn(N.cy+N.y11,N.cx+N.x11),w),s.arc(N.cx,N.cy,S,Tn(N.y11,N.x11),Tn(N.y01,N.x01),!w))):s.arc(0,0,f,x,C,w)}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-Lc/2;return[Ia(d)*u,Ur(d)*u]},c.innerRadius=function(u){return arguments.length?(e=typeof u=="function"?u:pt(+u),c):e},c.outerRadius=function(u){return arguments.length?(t=typeof u=="function"?u:pt(+u),c):t},c.cornerRadius=function(u){return arguments.length?(n=typeof u=="function"?u:pt(+u),c):n},c.padRadius=function(u){return arguments.length?(r=u==null?null:typeof u=="function"?u:pt(+u),c):r},c.startAngle=function(u){return arguments.length?(i=typeof u=="function"?u:pt(+u),c):i},c.endAngle=function(u){return arguments.length?(a=typeof u=="function"?u:pt(+u),c):a},c.padAngle=function(u){return arguments.length?(o=typeof u=="function"?u:pt(+u),c):o},c.context=function(u){return arguments.length?(s=u??null,c):s},c}function Qh(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function BO(e){this._context=e}BO.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 by(e){return new BO(e)}function zO(e){return e[0]}function WO(e){return e[1]}function yy(e,t){var n=pt(!0),r=null,i=by,a=null,o=vy(s);e=typeof e=="function"?e:e===void 0?zO:pt(e),t=typeof t=="function"?t:t===void 0?WO:pt(t);function s(l){var c,u=(l=Qh(l)).length,d,f=!1,p;for(r==null&&(a=i(p=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(p)return a=null,p+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:pt(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:pt(+l),s):t},s.defined=function(l){return arguments.length?(n=typeof l=="function"?l:pt(!!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 nie(e,t,n){var r=null,i=pt(!0),a=null,o=by,s=null,l=vy(c);e=typeof e=="function"?e:e===void 0?zO:pt(+e),t=typeof t=="function"?t:pt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?WO:pt(+n);function c(d){var f,p,g,m=(d=Qh(d)).length,v,w=!1,_,y=new Array(m),C=new Array(m);for(a==null&&(s=o(_=l())),f=0;f<=m;++f){if(!(f<m&&i(v=d[f],f,d))===w)if(w=!w)p=f,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),g=f-1;g>=p;--g)s.point(y[g],C[g]);s.lineEnd(),s.areaEnd()}w&&(y[f]=+e(v,f,d),C[f]=+t(v,f,d),s.point(r?+r(v,f,d):y[f],n?+n(v,f,d):C[f]))}if(_)return s=null,_+""||null}function u(){return yy().defined(i).curve(o).context(a)}return c.x=function(d){return arguments.length?(e=typeof d=="function"?d:pt(+d),r=null,c):e},c.x0=function(d){return arguments.length?(e=typeof d=="function"?d:pt(+d),c):e},c.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:pt(+d),c):r},c.y=function(d){return arguments.length?(t=typeof d=="function"?d:pt(+d),n=null,c):t},c.y0=function(d){return arguments.length?(t=typeof d=="function"?d:pt(+d),c):t},c.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:pt(+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:pt(!!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 rie(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function iie(e){return e}function aie(){var e=iie,t=rie,n=null,r=pt(0),i=pt(kd),a=pt(0);function o(s){var l,c=(s=Qh(s)).length,u,d,f=0,p=new Array(c),g=new Array(c),m=+r.apply(this,arguments),v=Math.min(kd,Math.max(-kd,i.apply(this,arguments)-m)),w,_=Math.min(Math.abs(v)/c,a.apply(this,arguments)),y=_*(v<0?-1:1),C;for(l=0;l<c;++l)(C=g[p[l]=l]=+e(s[l],l,s))>0&&(f+=C);for(t!=null?p.sort(function(x,$){return t(g[x],g[$])}):n!=null&&p.sort(function(x,$){return n(s[x],s[$])}),l=0,d=f?(v-c*y)/f:0;l<c;++l,m=w)u=p[l],C=g[u],w=m+(C>0?C*d:0)+y,g[u]={data:s[u],index:l,value:C,startAngle:m,endAngle:w,padAngle:_};return g}return o.value=function(s){return arguments.length?(e=typeof s=="function"?s:pt(+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:pt(+s),o):r},o.endAngle=function(s){return arguments.length?(i=typeof s=="function"?s:pt(+s),o):i},o.padAngle=function(s){return arguments.length?(a=typeof s=="function"?s:pt(+s),o):a},o}function ya(){}function wf(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 Jh(e){this._context=e}Jh.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:wf(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:wf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function oie(e){return new Jh(e)}function UO(e){this._context=e}UO.prototype={areaStart:ya,areaEnd:ya,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:wf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function sie(e){return new UO(e)}function HO(e){this._context=e}HO.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:wf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function lie(e){return new HO(e)}function VO(e,t){this._basis=new Jh(e),this._beta=t}VO.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 cie=function e(t){function n(r){return t===1?new Jh(r):new VO(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function _f(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 xy(e,t){this._context=e,this._k=(1-t)/6}xy.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:_f(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:_f(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 uie=function e(t){function n(r){return new xy(r,t)}return n.tension=function(r){return e(+r)},n}(0);function wy(e,t){this._context=e,this._k=(1-t)/6}wy.prototype={areaStart:ya,areaEnd:ya,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:_f(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 die=function e(t){function n(r){return new wy(r,t)}return n.tension=function(r){return e(+r)},n}(0);function _y(e,t){this._context=e,this._k=(1-t)/6}_y.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:_f(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 fie=function e(t){function n(r){return new _y(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Cy(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>Mn){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>Mn){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 qO(e,t){this._context=e,this._alpha=t}qO.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:Cy(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 hie=function e(t){function n(r){return t?new qO(r,t):new xy(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function YO(e,t){this._context=e,this._alpha=t}YO.prototype={areaStart:ya,areaEnd:ya,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:Cy(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 pie=function e(t){function n(r){return t?new YO(r,t):new wy(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function GO(e,t){this._context=e,this._alpha=t}GO.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:Cy(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 mie=function e(t){function n(r){return t?new GO(r,t):new _y(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function KO(e){this._context=e}KO.prototype={areaStart:ya,areaEnd:ya,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 gie(e){return new KO(e)}function s_(e){return e<0?-1:1}function l_(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(s_(a)+s_(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function c_(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Zm(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 Cf(e){this._context=e}Cf.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:Zm(this,this._t0,c_(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,Zm(this,c_(this,n=l_(this,e,t)),n);break;default:Zm(this,this._t0,n=l_(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function ZO(e){this._context=new XO(e)}(ZO.prototype=Object.create(Cf.prototype)).point=function(e,t){Cf.prototype.point.call(this,t,e)};function XO(e){this._context=e}XO.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 vie(e){return new Cf(e)}function bie(e){return new ZO(e)}function QO(e){this._context=e}QO.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=u_(e),i=u_(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 u_(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 yie(e){return new QO(e)}function ep(e,t){this._context=e,this._t=t}ep.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 xie(e){return new ep(e,.5)}function wie(e){return new ep(e,0)}function _ie(e){return new ep(e,1)}function d_(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 f_(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function Cie(e,t){return e[t]}function $ie(e){const t=[];return t.key=e,t}function Sie(){var e=pt([]),t=f_,n=d_,r=Cie;function i(a){var o=Array.from(e.apply(this,arguments),$ie),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=Qh(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:pt(Array.from(a)),i):e},i.value=function(a){return arguments.length?(r=typeof a=="function"?a:pt(+a),i):r},i.order=function(a){return arguments.length?(t=a==null?f_:typeof a=="function"?a:pt(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(n=a??d_,i):n},i}function Eie(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 Td(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function kie(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function $y(e){let t,n,r;e.length!==2?(t=Td,n=(s,l)=>Td(e(s),l),r=(s,l)=>e(s)-l):(t=e===Td||e===kie?e:Tie,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 Tie(){return 0}function Oie(e){return e===null?NaN:+e}const Mie=$y(Td),Aie=Mie.right;$y(Oie).center;class h_ extends Map{constructor(t,n=Die){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(p_(this,t))}has(t){return super.has(p_(this,t))}set(t,n){return super.set(Rie(this,t),n)}delete(t){return super.delete(jie(this,t))}}function p_({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Rie({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function jie({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function Die(e){return e!==null&&typeof e=="object"?e.valueOf():e}const Nie=Math.sqrt(50),Iie=Math.sqrt(10),Pie=Math.sqrt(2);function $f(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>=Nie?10:a>=Iie?5:a>=Pie?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?$f(e,t,n*2):[s,l,c]}function Tv(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?$f(t,e,n):$f(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 Ov(e,t,n){return t=+t,e=+e,n=+n,$f(e,t,n)[2]}function Mv(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?Ov(t,e,n):Ov(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function Lie(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 $o(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}const m_=Symbol("implicit");function Ga(){var e=new h_,t=[],n=[],r=m_;function i(a){let o=e.get(a);if(o===void 0){if(r!==m_)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 h_;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 Ga(t,n).unknown(r)},$o.apply(i,arguments),i}function Sy(){var e=Ga().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,p=i<r,g=p?i:r,m=p?r:i;a=(m-g)/Math.max(1,f-l+c*2),s&&(a=Math.floor(a)),g+=(m-g-a*(f-l))*u,o=a*(1-l),s&&(g=Math.round(g),o=Math.round(o));var v=Lie(f).map(function(w){return g+a*w});return n(p?v.reverse():v)}return e.domain=function(f){return arguments.length?(t(f),d()):t()},e.range=function(f){return arguments.length?([r,i]=f,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(f){return[r,i]=f,r=+r,i=+i,s=!0,d()},e.bandwidth=function(){return 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 Sy(t(),[r,i]).round(s).paddingInner(l).paddingOuter(c).align(u)},$o.apply(d(),arguments)}function JO(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return JO(t())},e}function Fie(){return JO(Sy.apply(null,arguments).paddingInner(1))}function Bie(e){return function(){return e}}function zie(e){return+e}var g_=[0,1];function rs(e){return e}function Av(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Bie(isNaN(t)?NaN:.5)}function Wie(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function Uie(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=Av(i,r),a=n(o,a)):(r=Av(r,i),a=n(a,o)),function(s){return a(r(s))}}function Hie(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]=Av(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(s){var l=Aie(e,s,1,r)-1;return a[l](i[l](s))}}function tp(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Ey(){var e=g_,t=g_,n=hy,r,i,a,o=rs,s,l,c;function u(){var f=Math.min(e.length,t.length);return o!==rs&&(o=Wie(e[0],e[f-1])),s=f>2?Hie:Uie,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),Pc)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,zie),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=DO,u()},d.clamp=function(f){return arguments.length?(o=f?!0:rs,u()):o!==rs},d.interpolate=function(f){return arguments.length?(n=f,u()):n},d.unknown=function(f){return arguments.length?(a=f,d):a},function(f,p){return r=f,i=p,u()}}function e3(){return Ey()(rs,rs)}function Vie(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Sf(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Ds(e){return e=Sf(Math.abs(e)),e?e[1]:NaN}function qie(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 Yie(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var Gie=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Fc(e){if(!(t=Gie.exec(e)))throw new Error("invalid format: "+e);var t;return new ky({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]})}Fc.prototype=ky.prototype;function ky(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+""}ky.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 Kie(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 t3;function Zie(e,t){var n=Sf(e,t);if(!n)return e+"";var r=n[0],i=n[1],a=i-(t3=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")+Sf(e,Math.max(0,t+a-1))[0]}function v_(e,t){var n=Sf(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 b_={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:Vie,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 v_(e*100,t)},r:v_,s:Zie,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function y_(e){return e}var x_=Array.prototype.map,w_=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Xie(e){var t=e.grouping===void 0||e.thousands===void 0?y_:qie(x_.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?y_:Yie(x_.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=Fc(d);var f=d.fill,p=d.align,g=d.sign,m=d.symbol,v=d.zero,w=d.width,_=d.comma,y=d.precision,C=d.trim,x=d.type;x==="n"?(_=!0,x="g"):b_[x]||(y===void 0&&(y=12),C=!0,x="g"),(v||f==="0"&&p==="=")&&(v=!0,f="0",p="=");var $=m==="$"?n:m==="#"&&/[boxX]/.test(x)?"0"+x.toLowerCase():"",E=m==="$"?r:/[%p]/.test(x)?o:"",O=b_[x],k=/[defgprs%]/.test(x);y=y===void 0?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y));function j(S){var T=$,R=E,N,D,M;if(x==="c")R=O(S)+R,S="";else{S=+S;var I=S<0||1/S<0;if(S=isNaN(S)?l:O(Math.abs(S),y),C&&(S=Kie(S)),I&&+S==0&&g!=="+"&&(I=!1),T=(I?g==="("?g:s:g==="-"||g==="("?"":g)+T,R=(x==="s"?w_[8+t3/3]:"")+R+(I&&g==="("?")":""),k){for(N=-1,D=S.length;++N<D;)if(M=S.charCodeAt(N),48>M||M>57){R=(M===46?i+S.slice(N+1):S.slice(N))+R,S=S.slice(0,N);break}}}_&&!v&&(S=t(S,1/0));var z=T.length+S.length+R.length,U=z<w?new Array(w-z+1).join(f):"";switch(_&&v&&(S=t(U+S,U.length?w-R.length:1/0),U=""),p){case"<":S=T+S+R+U;break;case"=":S=T+U+S+R;break;case"^":S=U.slice(0,z=U.length>>1)+T+S+R+U.slice(z);break;default:S=U+T+S+R;break}return a(S)}return j.toString=function(){return d+""},j}function u(d,f){var p=c((d=Fc(d),d.type="f",d)),g=Math.max(-8,Math.min(8,Math.floor(Ds(f)/3)))*3,m=Math.pow(10,-g),v=w_[8+g/3];return function(w){return p(m*w)+v}}return{format:c,formatPrefix:u}}var cd,$u,n3;Qie({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function Qie(e){return cd=Xie(e),$u=cd.format,n3=cd.formatPrefix,cd}function Jie(e){return Math.max(0,-Ds(Math.abs(e)))}function eae(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ds(t)/3)))*3-Ds(Math.abs(e)))}function tae(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ds(t)-Ds(e))+1}function nae(e,t,n,r){var i=Mv(e,t,n),a;switch(r=Fc(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=eae(i,o))&&(r.precision=a),n3(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=tae(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=Jie(i))&&(r.precision=a-(r.type==="%")*2);break}}return $u(r)}function r3(e){var t=e.domain;return e.ticks=function(n){var r=t();return Tv(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return nae(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=Ov(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 Ef(){var e=e3();return e.copy=function(){return tp(e,Ef())},$o.apply(e,arguments),r3(e)}function i3(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 __(e){return Math.log(e)}function C_(e){return Math.exp(e)}function rae(e){return-Math.log(-e)}function iae(e){return-Math.exp(-e)}function aae(e){return isFinite(e)?+("1e"+e):e<0?0:e}function oae(e){return e===10?aae:e===Math.E?Math.exp:t=>Math.pow(e,t)}function sae(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 $_(e){return(t,n)=>-e(-t,n)}function lae(e){const t=e(__,C_),n=t.domain;let r=10,i,a;function o(){return i=sae(r),a=oae(r),n()[0]<0?(i=$_(i),a=$_(a),e(rae,iae)):e(__,C_),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),p=i(u),g,m;const v=s==null?10:+s;let w=[];if(!(r%1)&&p-f<v){if(f=Math.floor(f),p=Math.ceil(p),c>0){for(;f<=p;++f)for(g=1;g<r;++g)if(m=f<0?g/a(-f):g*a(f),!(m<c)){if(m>u)break;w.push(m)}}else for(;f<=p;++f)for(g=r-1;g>=1;--g)if(m=f>0?g/a(-f):g*a(f),!(m<c)){if(m>u)break;w.push(m)}w.length*2<v&&(w=Tv(c,u,v))}else w=Tv(f,p,Math.min(p-f,v)).map(a);return d?w.reverse():w},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=Fc(l)).precision==null&&(l.trim=!0),l=$u(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(i3(n(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function a3(){const e=lae(Ey()).domain([1,10]);return e.copy=()=>tp(e,a3()).base(e.base()),$o.apply(e,arguments),e}function S_(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function E_(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function cae(e){var t=1,n=e(S_(t),E_(t));return n.constant=function(r){return arguments.length?e(S_(t=+r),E_(t)):t},r3(n)}function o3(){var e=cae(Ey());return e.copy=function(){return tp(e,o3()).constant(e.constant())},$o.apply(e,arguments)}const Xm=new Date,Qm=new Date;function xn(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=>xn(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)=>(Xm.setTime(+a),Qm.setTime(+o),e(Xm),e(Qm),Math.floor(n(Xm,Qm))),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 kf=xn(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);kf.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?xn(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):kf);kf.range;const Si=1e3,vr=Si*60,Ei=vr*60,Li=Ei*24,Ty=Li*7,k_=Li*30,Jm=Li*365,Ka=xn(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Si)},(e,t)=>(t-e)/Si,e=>e.getUTCSeconds());Ka.range;const Oy=xn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Si)},(e,t)=>{e.setTime(+e+t*vr)},(e,t)=>(t-e)/vr,e=>e.getMinutes());Oy.range;const My=xn(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*vr)},(e,t)=>(t-e)/vr,e=>e.getUTCMinutes());My.range;const Ay=xn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Si-e.getMinutes()*vr)},(e,t)=>{e.setTime(+e+t*Ei)},(e,t)=>(t-e)/Ei,e=>e.getHours());Ay.range;const Ry=xn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Ei)},(e,t)=>(t-e)/Ei,e=>e.getUTCHours());Ry.range;const jy=xn(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*vr)/Li,e=>e.getDate()-1);jy.range;const s3=xn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Li,e=>e.getUTCDate()-1);s3.range;const l3=xn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Li,e=>Math.floor(e/Li));l3.range;function So(e){return xn(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())*vr)/Ty)}const Dy=So(0),uae=So(1),dae=So(2),fae=So(3),hae=So(4),pae=So(5),mae=So(6);Dy.range;uae.range;dae.range;fae.range;hae.range;pae.range;mae.range;function Eo(e){return xn(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)/Ty)}const Ny=Eo(0),gae=Eo(1),vae=Eo(2),bae=Eo(3),yae=Eo(4),xae=Eo(5),wae=Eo(6);Ny.range;gae.range;vae.range;bae.range;yae.range;xae.range;wae.range;const Iy=xn(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());Iy.range;const Py=xn(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());Py.range;const np=xn(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());np.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:xn(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)});np.range;const rp=xn(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());rp.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:xn(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)});rp.range;function c3(e,t,n,r,i,a){const o=[[Ka,1,Si],[Ka,5,5*Si],[Ka,15,15*Si],[Ka,30,30*Si],[a,1,vr],[a,5,5*vr],[a,15,15*vr],[a,30,30*vr],[i,1,Ei],[i,3,3*Ei],[i,6,6*Ei],[i,12,12*Ei],[r,1,Li],[r,2,2*Li],[n,1,Ty],[t,1,k_],[t,3,3*k_],[e,1,Jm]];function s(c,u,d){const f=u<c;f&&([c,u]=[u,c]);const p=d&&typeof d.range=="function"?d:l(c,u,d),g=p?p.range(c,+u+1):[];return f?g.reverse():g}function l(c,u,d){const f=Math.abs(u-c)/d,p=$y(([,,v])=>v).right(o,f);if(p===o.length)return e.every(Mv(c/Jm,u/Jm,d));if(p===0)return kf.every(Math.max(Mv(c,u,d),1));const[g,m]=o[f/o[p-1][2]<o[p][2]/f?p-1:p];return g.every(m)}return[s,l]}const[_ae,Cae]=c3(rp,Py,Ny,l3,Ry,My),[$ae,Sae]=c3(np,Iy,Dy,jy,Ay,Oy);var eg=new Date,tg=new Date;function pn(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 pn(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 eg.setTime(+a),tg.setTime(+o),e(eg),e(tg),Math.floor(n(eg,tg))},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 Bc=pn(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});Bc.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?pn(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):Bc};Bc.range;var Tf=1e3,mo=6e4,Of=36e5,u3=864e5,d3=6048e5,Rv=pn(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*Tf)},function(e,t){return(t-e)/Tf},function(e){return e.getUTCSeconds()});Rv.range;var f3=pn(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Tf)},function(e,t){e.setTime(+e+t*mo)},function(e,t){return(t-e)/mo},function(e){return e.getMinutes()});f3.range;var h3=pn(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Tf-e.getMinutes()*mo)},function(e,t){e.setTime(+e+t*Of)},function(e,t){return(t-e)/Of},function(e){return e.getHours()});h3.range;var Ly=pn(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())*mo)/u3},function(e){return e.getDate()-1});Ly.range;function ko(e){return pn(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())*mo)/d3})}var Mf=ko(0),zc=ko(1),p3=ko(2),m3=ko(3),go=ko(4),g3=ko(5),v3=ko(6);Mf.range;zc.range;p3.range;m3.range;go.range;g3.range;v3.range;var b3=pn(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()});b3.range;var xa=pn(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()});xa.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:pn(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)})};xa.range;var y3=pn(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*mo)},function(e,t){return(t-e)/mo},function(e){return e.getUTCMinutes()});y3.range;var x3=pn(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*Of)},function(e,t){return(t-e)/Of},function(e){return e.getUTCHours()});x3.range;var Fy=pn(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/u3},function(e){return e.getUTCDate()-1});Fy.range;function To(e){return pn(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)/d3})}var Af=To(0),Wc=To(1),w3=To(2),_3=To(3),vo=To(4),C3=To(5),$3=To(6);Af.range;Wc.range;w3.range;_3.range;vo.range;C3.range;$3.range;var S3=pn(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()});S3.range;var wa=pn(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()});wa.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:pn(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)})};wa.range;function ng(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 rg(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 Tl(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Eae(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=Ol(i),u=Ml(i),d=Ol(a),f=Ml(a),p=Ol(o),g=Ml(o),m=Ol(s),v=Ml(s),w=Ol(l),_=Ml(l),y={a:I,A:z,b:U,B:P,c:null,d:j_,e:j_,f:Kae,g:aoe,G:soe,H:qae,I:Yae,j:Gae,L:E3,m:Zae,M:Xae,p:W,q:Y,Q:I_,s:P_,S:Qae,u:Jae,U:eoe,V:toe,w:noe,W:roe,x:null,X:null,y:ioe,Y:ooe,Z:loe,"%":N_},C={a:X,A:K,b:Z,B:ee,c:null,d:D_,e:D_,f:foe,g:_oe,G:$oe,H:coe,I:uoe,j:doe,L:T3,m:hoe,M:poe,p:J,q:B,Q:I_,s:P_,S:moe,u:goe,U:voe,V:boe,w:yoe,W:xoe,x:null,X:null,y:woe,Y:Coe,Z:Soe,"%":N_},x={a:j,A:S,b:T,B:R,c:N,d:A_,e:A_,f:Wae,g:M_,G:O_,H:R_,I:R_,j:Lae,L:zae,m:Pae,M:Fae,p:k,q:Iae,Q:Hae,s:Vae,S:Bae,u:Aae,U:Rae,V:jae,w:Mae,W:Dae,x:D,X:M,y:M_,Y:O_,Z:Nae,"%":Uae};y.x=$(n,y),y.X=$(r,y),y.c=$(t,y),C.x=$(n,C),C.X=$(r,C),C.c=$(t,C);function $(L,F){return function(H){var A=[],Q=-1,G=0,q=L.length,le,ne,re;for(H instanceof Date||(H=new Date(+H));++Q<q;)L.charCodeAt(Q)===37&&(A.push(L.slice(G,Q)),(ne=T_[le=L.charAt(++Q)])!=null?le=L.charAt(++Q):ne=le==="e"?" ":"0",(re=F[le])&&(le=re(H,ne)),A.push(le),G=Q+1);return A.push(L.slice(G,Q)),A.join("")}}function E(L,F){return function(H){var A=Tl(1900,void 0,1),Q=O(A,L,H+="",0),G,q;if(Q!=H.length)return null;if("Q"in A)return new Date(A.Q);if("s"in A)return new Date(A.s*1e3+("L"in A?A.L:0));if(F&&!("Z"in A)&&(A.Z=0),"p"in A&&(A.H=A.H%12+A.p*12),A.m===void 0&&(A.m="q"in A?A.q:0),"V"in A){if(A.V<1||A.V>53)return null;"w"in A||(A.w=1),"Z"in A?(G=rg(Tl(A.y,0,1)),q=G.getUTCDay(),G=q>4||q===0?Wc.ceil(G):Wc(G),G=Fy.offset(G,(A.V-1)*7),A.y=G.getUTCFullYear(),A.m=G.getUTCMonth(),A.d=G.getUTCDate()+(A.w+6)%7):(G=ng(Tl(A.y,0,1)),q=G.getDay(),G=q>4||q===0?zc.ceil(G):zc(G),G=Ly.offset(G,(A.V-1)*7),A.y=G.getFullYear(),A.m=G.getMonth(),A.d=G.getDate()+(A.w+6)%7)}else("W"in A||"U"in A)&&("w"in A||(A.w="u"in A?A.u%7:"W"in A?1:0),q="Z"in A?rg(Tl(A.y,0,1)).getUTCDay():ng(Tl(A.y,0,1)).getDay(),A.m=0,A.d="W"in A?(A.w+6)%7+A.W*7-(q+5)%7:A.w+A.U*7-(q+6)%7);return"Z"in A?(A.H+=A.Z/100|0,A.M+=A.Z%100,rg(A)):ng(A)}}function O(L,F,H,A){for(var Q=0,G=F.length,q=H.length,le,ne;Q<G;){if(A>=q)return-1;if(le=F.charCodeAt(Q++),le===37){if(le=F.charAt(Q++),ne=x[le in T_?F.charAt(Q++):le],!ne||(A=ne(L,H,A))<0)return-1}else if(le!=H.charCodeAt(A++))return-1}return A}function k(L,F,H){var A=c.exec(F.slice(H));return A?(L.p=u.get(A[0].toLowerCase()),H+A[0].length):-1}function j(L,F,H){var A=p.exec(F.slice(H));return A?(L.w=g.get(A[0].toLowerCase()),H+A[0].length):-1}function S(L,F,H){var A=d.exec(F.slice(H));return A?(L.w=f.get(A[0].toLowerCase()),H+A[0].length):-1}function T(L,F,H){var A=w.exec(F.slice(H));return A?(L.m=_.get(A[0].toLowerCase()),H+A[0].length):-1}function R(L,F,H){var A=m.exec(F.slice(H));return A?(L.m=v.get(A[0].toLowerCase()),H+A[0].length):-1}function N(L,F,H){return O(L,t,F,H)}function D(L,F,H){return O(L,n,F,H)}function M(L,F,H){return O(L,r,F,H)}function I(L){return o[L.getDay()]}function z(L){return a[L.getDay()]}function U(L){return l[L.getMonth()]}function P(L){return s[L.getMonth()]}function W(L){return i[+(L.getHours()>=12)]}function Y(L){return 1+~~(L.getMonth()/3)}function X(L){return o[L.getUTCDay()]}function K(L){return a[L.getUTCDay()]}function Z(L){return l[L.getUTCMonth()]}function ee(L){return s[L.getUTCMonth()]}function J(L){return i[+(L.getUTCHours()>=12)]}function B(L){return 1+~~(L.getUTCMonth()/3)}return{format:function(L){var F=$(L+="",y);return F.toString=function(){return L},F},parse:function(L){var F=E(L+="",!1);return F.toString=function(){return L},F},utcFormat:function(L){var F=$(L+="",C);return F.toString=function(){return L},F},utcParse:function(L){var F=E(L+="",!0);return F.toString=function(){return L},F}}}var T_={"-":"",_:" ",0:"0"},$n=/^\s*\d+/,kae=/^%/,Tae=/[\\^$*+?|[\]().{}]/g;function kt(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 Oae(e){return e.replace(Tae,"\\$&")}function Ol(e){return new RegExp("^(?:"+e.map(Oae).join("|")+")","i")}function Ml(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function Mae(e,t,n){var r=$n.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Aae(e,t,n){var r=$n.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Rae(e,t,n){var r=$n.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function jae(e,t,n){var r=$n.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Dae(e,t,n){var r=$n.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function O_(e,t,n){var r=$n.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function M_(e,t,n){var r=$n.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Nae(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 Iae(e,t,n){var r=$n.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Pae(e,t,n){var r=$n.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function A_(e,t,n){var r=$n.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Lae(e,t,n){var r=$n.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function R_(e,t,n){var r=$n.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Fae(e,t,n){var r=$n.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Bae(e,t,n){var r=$n.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function zae(e,t,n){var r=$n.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Wae(e,t,n){var r=$n.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Uae(e,t,n){var r=kae.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Hae(e,t,n){var r=$n.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Vae(e,t,n){var r=$n.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function j_(e,t){return kt(e.getDate(),t,2)}function qae(e,t){return kt(e.getHours(),t,2)}function Yae(e,t){return kt(e.getHours()%12||12,t,2)}function Gae(e,t){return kt(1+Ly.count(xa(e),e),t,3)}function E3(e,t){return kt(e.getMilliseconds(),t,3)}function Kae(e,t){return E3(e,t)+"000"}function Zae(e,t){return kt(e.getMonth()+1,t,2)}function Xae(e,t){return kt(e.getMinutes(),t,2)}function Qae(e,t){return kt(e.getSeconds(),t,2)}function Jae(e){var t=e.getDay();return t===0?7:t}function eoe(e,t){return kt(Mf.count(xa(e)-1,e),t,2)}function k3(e){var t=e.getDay();return t>=4||t===0?go(e):go.ceil(e)}function toe(e,t){return e=k3(e),kt(go.count(xa(e),e)+(xa(e).getDay()===4),t,2)}function noe(e){return e.getDay()}function roe(e,t){return kt(zc.count(xa(e)-1,e),t,2)}function ioe(e,t){return kt(e.getFullYear()%100,t,2)}function aoe(e,t){return e=k3(e),kt(e.getFullYear()%100,t,2)}function ooe(e,t){return kt(e.getFullYear()%1e4,t,4)}function soe(e,t){var n=e.getDay();return e=n>=4||n===0?go(e):go.ceil(e),kt(e.getFullYear()%1e4,t,4)}function loe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+kt(t/60|0,"0",2)+kt(t%60,"0",2)}function D_(e,t){return kt(e.getUTCDate(),t,2)}function coe(e,t){return kt(e.getUTCHours(),t,2)}function uoe(e,t){return kt(e.getUTCHours()%12||12,t,2)}function doe(e,t){return kt(1+Fy.count(wa(e),e),t,3)}function T3(e,t){return kt(e.getUTCMilliseconds(),t,3)}function foe(e,t){return T3(e,t)+"000"}function hoe(e,t){return kt(e.getUTCMonth()+1,t,2)}function poe(e,t){return kt(e.getUTCMinutes(),t,2)}function moe(e,t){return kt(e.getUTCSeconds(),t,2)}function goe(e){var t=e.getUTCDay();return t===0?7:t}function voe(e,t){return kt(Af.count(wa(e)-1,e),t,2)}function O3(e){var t=e.getUTCDay();return t>=4||t===0?vo(e):vo.ceil(e)}function boe(e,t){return e=O3(e),kt(vo.count(wa(e),e)+(wa(e).getUTCDay()===4),t,2)}function yoe(e){return e.getUTCDay()}function xoe(e,t){return kt(Wc.count(wa(e)-1,e),t,2)}function woe(e,t){return kt(e.getUTCFullYear()%100,t,2)}function _oe(e,t){return e=O3(e),kt(e.getUTCFullYear()%100,t,2)}function Coe(e,t){return kt(e.getUTCFullYear()%1e4,t,4)}function $oe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?vo(e):vo.ceil(e),kt(e.getUTCFullYear()%1e4,t,4)}function Soe(){return"+0000"}function N_(){return"%"}function I_(e){return+e}function P_(e){return Math.floor(+e/1e3)}var Vo,ip,M3,A3,R3;Eoe({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 Eoe(e){return Vo=Eae(e),ip=Vo.format,M3=Vo.parse,A3=Vo.utcFormat,R3=Vo.utcParse,Vo}function koe(e){return new Date(e)}function Toe(e){return e instanceof Date?+e:+new Date(+e)}function By(e,t,n,r,i,a,o,s,l,c){var u=e3(),d=u.invert,f=u.domain,p=c(".%L"),g=c(":%S"),m=c("%I:%M"),v=c("%I %p"),w=c("%a %d"),_=c("%b %d"),y=c("%B"),C=c("%Y");function x($){return(l($)<$?p:s($)<$?g:o($)<$?m:a($)<$?v:r($)<$?i($)<$?w:_:n($)<$?y:C)($)}return u.invert=function($){return new Date(d($))},u.domain=function($){return arguments.length?f(Array.from($,Toe)):f().map(koe)},u.ticks=function($){var E=f();return e(E[0],E[E.length-1],$??10)},u.tickFormat=function($,E){return E==null?x:c(E)},u.nice=function($){var E=f();return(!$||typeof $.range!="function")&&($=t(E[0],E[E.length-1],$??10)),$?f(i3(E,$)):u},u.copy=function(){return tp(u,By(e,t,n,r,i,a,o,s,l,c))},u}function Ooe(){return $o.apply(By($ae,Sae,np,Iy,Dy,jy,Ay,Oy,Ka,ip).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Moe(){return $o.apply(By(_ae,Cae,rp,Py,Ny,s3,Ry,My,Ka,A3).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function st(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 Aoe=st("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),Roe=st("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),joe=st("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),Doe=st("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),Noe=st("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),Ioe=st("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),Poe=st("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),Loe=st("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),j3=st("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),Foe=st("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),Yt=e=>Jne(e[e.length-1]);var ap=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(st);const Boe=Yt(ap);var op=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(st);const zoe=Yt(op);var sp=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(st);const Woe=Yt(sp);var lp=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(st);const Uoe=Yt(lp);var cp=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(st);const Hoe=Yt(cp);var up=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(st);const Voe=Yt(up);var dp=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(st);const qoe=Yt(dp);var fp=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(st);const Yoe=Yt(fp);var hp=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(st);const Goe=Yt(hp);var pp=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(st);const Koe=Yt(pp);var mp=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(st);const Zoe=Yt(mp);var gp=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(st);const Xoe=Yt(gp);var vp=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(st);const Qoe=Yt(vp);var bp=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(st);const Joe=Yt(bp);var yp=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(st);const ese=Yt(yp);var xp=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(st);const tse=Yt(xp);var wp=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(st);const nse=Yt(wp);var _p=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(st);const rse=Yt(_p);var Cp=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(st);const ise=Yt(Cp);var $p=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(st);const ase=Yt($p);var Sp=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(st);const ose=Yt(Sp);var Ep=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(st);const sse=Yt(Ep);var kp=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(st);const lse=Yt(kp);var Tp=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(st);const cse=Yt(Tp);var Op=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(st);const use=Yt(Op);var Mp=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(st);const dse=Yt(Mp);var Ap=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(st);const fse=Yt(Ap);function hse(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 pse=py(ii(300,.5,0),ii(-240,.5,1));var mse=py(ii(-100,.75,.35),ii(80,1.5,.8)),gse=py(ii(260,.75,.35),ii(80,1.5,.8)),ud=ii();function vse(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return ud.h=360*e-100,ud.s=1.5-1.5*t,ud.l=.8-.9*t,ud+""}var dd=js(),bse=Math.PI/3,yse=Math.PI*2/3;function xse(e){var t;return e=(.5-e)*Math.PI,dd.r=255*(t=Math.sin(e))*t,dd.g=255*(t=Math.sin(e+bse))*t,dd.b=255*(t=Math.sin(e+yse))*t,dd+""}function wse(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 Rp(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}const _se=Rp(st("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var Cse=Rp(st("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),$se=Rp(st("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),Sse=Rp(st("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function Ese(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var D3=Ese;const Ae=on(D3);var kse=Cu,Tse=wO,Ose=nl;function Mse(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=kse(e,o);n(s,o)&&Tse(a,Ose(o,e),s)}return a}var Ase=Mse;function Rse(e,t){return e!=null&&t in Object(e)}var jse=Rse,Dse=nl,Nse=Wh,Ise=ir,Pse=Vh,Lse=ty,Fse=rl;function Bse(e,t,n){t=Dse(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=Fse(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&&Lse(i)&&Pse(o,i)&&(Ise(e)||Nse(e)))}var zse=Bse,Wse=jse,Use=zse;function Hse(e,t){return e!=null&&Use(e,t,Wse)}var N3=Hse,Vse=Ase,qse=N3;function Yse(e,t){return Vse(e,t,function(n,r){return qse(e,r)})}var Gse=Yse;function Kse(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var zy=Kse,L_=Ks,Zse=Wh,Xse=ir,F_=L_?L_.isConcatSpreadable:void 0;function Qse(e){return Xse(e)||Zse(e)||!!(F_&&e&&e[F_])}var Jse=Qse,ele=zy,tle=Jse;function I3(e,t,n,r,i){var a=-1,o=e.length;for(n||(n=tle),i||(i=[]);++a<o;){var s=e[a];t>0&&n(s)?t>1?I3(s,t-1,n,r,i):ele(i,s):r||(i[i.length]=s)}return i}var P3=I3,nle=P3;function rle(e){var t=e==null?0:e.length;return t?nle(e,1):[]}var ile=rle,ale=ile,ole=hO,sle=pO;function lle(e){return sle(ole(e,void 0,ale),e+"")}var L3=lle,cle=Gse,ule=L3,dle=ule(function(e,t){return e==null?{}:cle(e,t)}),fle=dle;const hle=on(fle);function ple(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 mle=ple,gle=my,vle=mle,ble=gy,yle=1,xle=2;function wle(e,t,n,r,i,a){var o=n&yle,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,p=n&xle?new gle:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var g=e[d],m=t[d];if(r)var v=o?r(m,g,d,t,e,a):r(g,m,d,e,t,a);if(v!==void 0){if(v)continue;f=!1;break}if(p){if(!vle(t,function(w,_){if(!ble(p,_)&&(g===w||i(g,w,n,r,a)))return p.push(_)})){f=!1;break}}else if(!(g===m||i(g,m,n,r,a))){f=!1;break}}return a.delete(e),a.delete(t),f}var F3=wle;function _le(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var Cle=_le;function $le(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Wy=$le,B_=Ks,z_=nO,Sle=wu,Ele=F3,kle=Cle,Tle=Wy,Ole=1,Mle=2,Ale="[object Boolean]",Rle="[object Date]",jle="[object Error]",Dle="[object Map]",Nle="[object Number]",Ile="[object RegExp]",Ple="[object Set]",Lle="[object String]",Fle="[object Symbol]",Ble="[object ArrayBuffer]",zle="[object DataView]",W_=B_?B_.prototype:void 0,ig=W_?W_.valueOf:void 0;function Wle(e,t,n,r,i,a,o){switch(n){case zle:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Ble:return!(e.byteLength!=t.byteLength||!a(new z_(e),new z_(t)));case Ale:case Rle:case Nle:return Sle(+e,+t);case jle:return e.name==t.name&&e.message==t.message;case Ile:case Lle:return e==t+"";case Dle:var s=kle;case Ple:var l=r&Ole;if(s||(s=Tle),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;r|=Mle,o.set(e,t);var u=Ele(s(e),s(t),r,i,a,o);return o.delete(e),u;case Fle:if(ig)return ig.call(e)==ig.call(t)}return!1}var Ule=Wle,Hle=zy,Vle=ir;function qle(e,t,n){var r=t(e);return Vle(e)?r:Hle(r,n(e))}var B3=qle;function Yle(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 z3=Yle;function Gle(){return[]}var W3=Gle,Kle=z3,Zle=W3,Xle=Object.prototype,Qle=Xle.propertyIsEnumerable,U_=Object.getOwnPropertySymbols,Jle=U_?function(e){return e==null?[]:(e=Object(e),Kle(U_(e),function(t){return Qle.call(e,t)}))}:Zle,Uy=Jle,ece=aO,tce=ece(Object.keys,Object),nce=tce,rce=ey,ice=nce,ace=Object.prototype,oce=ace.hasOwnProperty;function sce(e){if(!rce(e))return ice(e);var t=[];for(var n in Object(e))oce.call(e,n)&&n!="constructor"&&t.push(n);return t}var lce=sce,cce=dO,uce=lce,dce=Js;function fce(e){return dce(e)?cce(e):uce(e)}var Su=fce,hce=B3,pce=Uy,mce=Su;function gce(e){return hce(e,mce,pce)}var U3=gce,H_=U3,vce=1,bce=Object.prototype,yce=bce.hasOwnProperty;function xce(e,t,n,r,i,a){var o=n&vce,s=H_(e),l=s.length,c=H_(t),u=c.length;if(l!=u&&!o)return!1;for(var d=l;d--;){var f=s[d];if(!(o?f in t:yce.call(t,f)))return!1}var p=a.get(e),g=a.get(t);if(p&&g)return p==t&&g==e;var m=!0;a.set(e,t),a.set(t,e);for(var v=o;++d<l;){f=s[d];var w=e[f],_=t[f];if(r)var y=o?r(_,w,f,t,e,a):r(w,_,f,e,t,a);if(!(y===void 0?w===_||i(w,_,n,r,a):y)){m=!1;break}v||(v=f=="constructor")}if(m&&!v){var C=e.constructor,x=t.constructor;C!=x&&"constructor"in e&&"constructor"in t&&!(typeof C=="function"&&C instanceof C&&typeof x=="function"&&x instanceof x)&&(m=!1)}return a.delete(e),a.delete(t),m}var wce=xce,_ce=Co,Cce=li,$ce=_ce(Cce,"DataView"),Sce=$ce,Ece=Co,kce=li,Tce=Ece(kce,"Promise"),Oce=Tce,Mce=Co,Ace=li,Rce=Mce(Ace,"Set"),H3=Rce,jce=Co,Dce=li,Nce=jce(Dce,"WeakMap"),Ice=Nce,jv=Sce,Dv=Kb,Nv=Oce,Iv=H3,Pv=Ice,V3=zi,al=XT,V_="[object Map]",Pce="[object Object]",q_="[object Promise]",Y_="[object Set]",G_="[object WeakMap]",K_="[object DataView]",Lce=al(jv),Fce=al(Dv),Bce=al(Nv),zce=al(Iv),Wce=al(Pv),za=V3;(jv&&za(new jv(new ArrayBuffer(1)))!=K_||Dv&&za(new Dv)!=V_||Nv&&za(Nv.resolve())!=q_||Iv&&za(new Iv)!=Y_||Pv&&za(new Pv)!=G_)&&(za=function(e){var t=V3(e),n=t==Pce?e.constructor:void 0,r=n?al(n):"";if(r)switch(r){case Lce:return K_;case Fce:return V_;case Bce:return q_;case zce:return Y_;case Wce:return G_}return t});var jp=za,ag=zh,Uce=F3,Hce=Ule,Vce=wce,Z_=jp,X_=ir,Q_=Uh,qce=iy,Yce=1,J_="[object Arguments]",eC="[object Array]",fd="[object Object]",Gce=Object.prototype,tC=Gce.hasOwnProperty;function Kce(e,t,n,r,i,a){var o=X_(e),s=X_(t),l=o?eC:Z_(e),c=s?eC:Z_(t);l=l==J_?fd:l,c=c==J_?fd:c;var u=l==fd,d=c==fd,f=l==c;if(f&&Q_(e)){if(!Q_(t))return!1;o=!0,u=!1}if(f&&!u)return a||(a=new ag),o||qce(e)?Uce(e,t,n,r,i,a):Hce(e,t,l,n,r,i,a);if(!(n&Yce)){var p=u&&tC.call(e,"__wrapped__"),g=d&&tC.call(t,"__wrapped__");if(p||g){var m=p?e.value():e,v=g?t.value():t;return a||(a=new ag),i(m,v,n,r,a)}}return f?(a||(a=new ag),Vce(e,t,n,r,i,a)):!1}var Zce=Kce,Xce=Zce,nC=Er;function q3(e,t,n,r,i){return e===t?!0:e==null||t==null||!nC(e)&&!nC(t)?e!==e&&t!==t:Xce(e,t,n,r,q3,i)}var Hy=q3,Qce=Hy;function Jce(e,t){return Qce(e,t)}var eue=Jce;const tue=on(eue);var Y3=h.createContext(),nue=function(e){var t=e.children,n=e.animate,r=n===void 0||n,i=e.config,a=i===void 0?"default":i,o=h.useMemo(function(){var s=Mne(a)?jT[a]:a;return{animate:r,config:s}},[r,a]);return b.jsx(Y3.Provider,{value:o,children:t})},Vn=function(){return h.useContext(Y3)},rue=function(e){var t=e.children,n=e.condition,r=e.wrapper;return n?h.cloneElement(r,{},t):t},iue={position:"relative"},Oo=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=h.useRef(null);return b.jsx(mne,{theme:n,children:b.jsx(nue,{animate:s,config:l,children:b.jsx(Cne,{container:c,children:b.jsxs(rue,{condition:i,wrapper:b.jsx("div",{style:iue,ref:c}),children:[t,o&&b.jsx(_ne,{})]})})})})},aue=function(e,t){return e.width===t.width&&e.height===t.height},oue=function(e){var t=e.children,n=e.width,r=e.height,i=e.onResize,a=e.debounceResize,o=Ob({width:n,height:r},a,{equalityFn:aue})[0];return h.useEffect(function(){i==null||i(o)},[o,i]),b.jsx(b.Fragment,{children:t(o)})},Mo=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 b.jsx(Rne,{defaultWidth:n,defaultHeight:r,children:function(s){var l=s.width,c=s.height;return b.jsx(oue,{width:l,height:c,onResize:i,debounceResize:o,children:t})}})};function rC(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 sue(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 rC(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)?rC(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.
280
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qr(){return Qr=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},Qr.apply(null,arguments)}function G3(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 lue=["id","colors"],cue=function(e){var t=e.id,n=e.colors,r=G3(e,lue);return b.jsx("linearGradient",Qr({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 b.jsx("stop",{offset:a+"%",stopColor:o,stopOpacity:s!==void 0?s:1},a)})}))},K3={linearGradient:cue},Al={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1},uue=h.memo(function(e){var t=e.id,n=e.background,r=n===void 0?Al.background:n,i=e.color,a=i===void 0?Al.color:i,o=e.size,s=o===void 0?Al.size:o,l=e.padding,c=l===void 0?Al.padding:l,u=e.stagger,d=u===void 0?Al.stagger:u,f=s+c,p=s/2,g=c/2;return d===!0&&(f=2*s+2*c),b.jsxs("pattern",{id:t,width:f,height:f,patternUnits:"userSpaceOnUse",children:[b.jsx("rect",{width:f,height:f,fill:r}),b.jsx("circle",{cx:g+p,cy:g+p,r:p,fill:a}),d&&b.jsx("circle",{cx:1.5*c+s+p,cy:1.5*c+s+p,r:p,fill:a})]})}),yr=function(e){return e*Math.PI/180},Eu=function(e){return 180*e/Math.PI},due=function(e){return e.startAngle+(e.endAngle-e.startAngle)/2},ro=function(e,t){return{x:Math.cos(e)*t,y:Math.sin(e)*t}},fue=function(e){var t=e%360;return t<0&&(t+=360),t},Z3={svg:{align:{left:"start",center:"middle",right:"end",start:"start",middle:"middle",end:"end"},baseline:{top:"text-before-edge",center:"central",bottom:"alphabetic"}},canvas:{align:{left:"left",center:"center",right:"right",start:"left",middle:"center",end:"right"},baseline:{top:"top",center:"middle",bottom:"bottom"}}},Rl={spacing:5,rotation:0,background:"#000000",color:"#ffffff",lineWidth:2},hue=h.memo(function(e){var t=e.id,n=e.spacing,r=n===void 0?Rl.spacing:n,i=e.rotation,a=i===void 0?Rl.rotation:i,o=e.background,s=o===void 0?Rl.background:o,l=e.color,c=l===void 0?Rl.color:l,u=e.lineWidth,d=u===void 0?Rl.lineWidth:u,f=Math.round(a)%360,p=Math.abs(r);f>180?f-=360:f>90?f-=180:f<-180?f+=360:f<-90&&(f+=180);var g,m=p,v=p;return f===0?g=`
281
- M 0 0 L `+m+` 0
282
- M 0 `+v+" L "+m+" "+v+`
283
- `:f===90?g=`
284
- M 0 0 L 0 `+v+`
285
- M `+m+" 0 L "+m+" "+v+`
286
- `:(m=Math.abs(p/Math.sin(yr(f))),v=p/Math.sin(yr(90-f)),g=f>0?`
287
- M 0 `+-v+" L "+2*m+" "+v+`
288
- M `+-m+" "+-v+" L "+m+" "+v+`
289
- M `+-m+" 0 L "+m+" "+2*v+`
290
- `:`
291
- M `+-m+" "+v+" L "+m+" "+-v+`
292
- M `+-m+" "+2*v+" L "+2*m+" "+-v+`
293
- M 0 `+2*v+" L "+2*m+` 0
294
- `),b.jsxs("pattern",{id:t,width:m,height:v,patternUnits:"userSpaceOnUse",children:[b.jsx("rect",{width:m,height:v,fill:s,stroke:"rgba(255, 0, 0, 0.1)",strokeWidth:0}),b.jsx("path",{d:g,strokeWidth:d,stroke:c,strokeLinecap:"square"})]})}),jl={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1},pue=h.memo(function(e){var t=e.id,n=e.color,r=n===void 0?jl.color:n,i=e.background,a=i===void 0?jl.background:i,o=e.size,s=o===void 0?jl.size:o,l=e.padding,c=l===void 0?jl.padding:l,u=e.stagger,d=u===void 0?jl.stagger:u,f=s+c,p=c/2;return d===!0&&(f=2*s+2*c),b.jsxs("pattern",{id:t,width:f,height:f,patternUnits:"userSpaceOnUse",children:[b.jsx("rect",{width:f,height:f,fill:a}),b.jsx("rect",{x:p,y:p,width:s,height:s,fill:r}),d&&b.jsx("rect",{x:1.5*c+s,y:1.5*c+s,width:s,height:s,fill:r})]})}),X3={patternDots:uue,patternLines:hue,patternSquares:pue},mue=["type"],iC=Qr({},K3,X3),gue=h.memo(function(e){var t=e.defs;return!t||t.length<1?null:b.jsx("defs",{"aria-hidden":!0,children:t.map(function(n){var r=n.type,i=G3(n,mue);return iC[r]?h.createElement(iC[r],Qr({key:i.id},i)):null})})}),Dp=h.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 b.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:[b.jsx(gue,{defs:a}),b.jsx("rect",{width:n,height:r,fill:f.background}),b.jsx("g",{transform:"translate("+i.left+","+i.top+")",children:o})]})}),vue=h.memo(function(e){var t=e.size,n=e.color,r=e.borderWidth,i=e.borderColor;return b.jsx("circle",{r:t/2,fill:n,stroke:i,strokeWidth:r,style:{pointerEvents:"none"}})}),bue=h.memo(function(e){var t=e.x,n=e.y,r=e.symbol,i=r===void 0?vue: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,p=e.labelYOffset,g=p===void 0?-12:p,m=e.ariaLabel,v=e.ariaLabelledBy,w=e.ariaDescribedBy,_=e.ariaHidden,y=e.ariaDisabled,C=e.isFocusable,x=C!==void 0&&C,$=e.tabIndex,E=$===void 0?0:$,O=e.onFocus,k=e.onBlur,j=e.testId,S=Lt(),T=Vn(),R=T.animate,N=T.config,D=si({transform:"translate("+t+", "+n+")",config:N,immediate:!R}),M=h.useCallback(function(z){O==null||O(o,z)},[O,o]),I=h.useCallback(function(z){k==null||k(o,z)},[k,o]);return b.jsxs(qt.g,{transform:D.transform,style:{pointerEvents:"none"},focusable:x,tabIndex:x?E:void 0,"aria-label":m,"aria-labelledby":v,"aria-describedby":w,"aria-disabled":y,"aria-hidden":_,onFocus:x&&O?M:void 0,onBlur:x&&k?I:void 0,"data-testid":j,children:[h.createElement(i,{size:a,color:s,datum:o,borderWidth:l,borderColor:c}),u&&b.jsx("text",{textAnchor:f,y:g,style:sne(S.dots.text),children:u})]})}),yue=h.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,p=f===void 0?14:f,g=e.legendOffsetY,m=g===void 0?14:g,v=e.legendOrientation,w=v===void 0?"horizontal":v,_=Lt(),y=0,C=0,x=0,$=0;if(r==="y"?(x=i(a),C=t):(y=i(a),$=n),l&&!c){var E=function(O){var k=O.axis,j=O.width,S=O.height,T=O.position,R=O.offsetX,N=O.offsetY,D=O.orientation,M=0,I=0,z=D==="vertical"?-90:0,U="start";if(k==="x")switch(T){case"top-left":M=-R,I=N,U="end";break;case"top":I=-N,U=D==="horizontal"?"middle":"start";break;case"top-right":M=R,I=N,U=D==="horizontal"?"start":"end";break;case"right":M=R,I=S/2,U=D==="horizontal"?"start":"middle";break;case"bottom-right":M=R,I=S-N,U="start";break;case"bottom":I=S+N,U=D==="horizontal"?"middle":"end";break;case"bottom-left":I=S-N,M=-R,U=D==="horizontal"?"end":"start";break;case"left":M=-R,I=S/2,U=D==="horizontal"?"end":"middle"}else switch(T){case"top-left":M=R,I=-N,U="start";break;case"top":M=j/2,I=-N,U=D==="horizontal"?"middle":"start";break;case"top-right":M=j-R,I=-N,U=D==="horizontal"?"end":"start";break;case"right":M=j+R,U=D==="horizontal"?"start":"middle";break;case"bottom-right":M=j-R,I=N,U="end";break;case"bottom":M=j/2,I=N,U=D==="horizontal"?"middle":"end";break;case"bottom-left":M=R,I=N,U=D==="horizontal"?"start":"end";break;case"left":M=-R,U=D==="horizontal"?"end":"middle"}return{x:M,y:I,rotation:z,textAnchor:U}}({axis:r,width:t,height:n,position:d,offsetX:p,offsetY:m,orientation:w});c=b.jsx("text",{transform:"translate("+E.x+", "+E.y+") rotate("+E.rotation+")",textAnchor:E.textAnchor,dominantBaseline:"central",style:s,children:l})}return b.jsxs("g",{transform:"translate("+y+", "+x+")",children:[b.jsx("line",{x1:0,x2:C,y1:0,y2:$,stroke:_.markers.lineColor,strokeWidth:_.markers.lineStrokeWidth,style:o}),c]})}),Q3=h.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 b.jsx(yue,Qr({},o,{width:n,height:r,scale:o.axis==="y"?a:i}),s)}):null}),Vy=function(e){var t=Vn(),n=t.animate,r=t.config,i=function(s){var l=h.useRef();return h.useEffect(function(){l.current=s},[s]),l.current}(e),a=h.useMemo(function(){return jO(i,e)},[i,e]),o=si({from:{value:0},to:{value:1},reset:!0,config:r,immediate:!n}).value;return ba(o,a)};h.createContext(void 0);var Lv={basis:oie,basisClosed:sie,basisOpen:lie,bundle:cie,cardinal:uie,cardinalClosed:die,cardinalOpen:fie,catmullRom:hie,catmullRomClosed:pie,catmullRomOpen:mie,linear:by,linearClosed:gie,monotoneX:vie,monotoneY:bie,natural:yie,step:xie,stepAfter:_ie,stepBefore:wie},qy=Object.keys(Lv);qy.filter(function(e){return e.endsWith("Closed")});LO(qy,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");LO(qy,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");var J3=function(e){if(!Lv[e])throw new TypeError("'"+e+"', is not a valid curve interpolator identifier.");return Lv[e]};Ae(ap),Ae(op),Ae(sp),Ae(lp),Ae(cp),Ae(up),Ae(dp),Ae(fp),Ae(hp),Ae(Ep),Ae(kp),Ae(Tp),Ae(Ap),Ae(Op),Ae(Mp),Ae(pp),Ae(mp),Ae(gp),Ae(vp),Ae(bp),Ae(yp),Ae(xp),Ae(wp),Ae(_p),Ae(Cp),Ae($p),Ae(Sp);Ae(ap),Ae(op),Ae(sp),Ae(lp),Ae(cp),Ae(up),Ae(dp),Ae(fp),Ae(hp),Ae(Ep),Ae(kp),Ae(Tp),Ae(Ap),Ae(Op),Ae(Mp),Ae(pp),Ae(mp),Ae(gp),Ae(vp),Ae(bp),Ae(yp),Ae(xp),Ae(wp),Ae(_p),Ae(Cp),Ae($p),Ae(Sp);Ga(j3);var eM={top:0,right:0,bottom:0,left:0},Ao=function(e,t,n){return n===void 0&&(n={}),h.useMemo(function(){var r=Qr({},eM,n);return{margin:r,innerWidth:e-r.left-r.right,innerHeight:t-r.top-r.bottom,outerWidth:e,outerHeight:t}},[e,t,n])},xue=function(){var e=h.useRef(null),t=h.useState({left:0,top:0,width:0,height:0}),n=t[0],r=t[1],i=h.useState(function(){return typeof ResizeObserver>"u"?null:new ResizeObserver(function(a){var o=a[0];return r(o.contentRect)})})[0];return h.useEffect(function(){return e.current&&i!==null&&i.observe(e.current),function(){i!==null&&i.disconnect()}},[i]),[e,n]},wue=function(e){return typeof e=="function"?e:typeof e=="string"?e.indexOf("time:")===0?ip(e.slice("5")):$u(e):function(t){return""+t}},Ns=function(e){return h.useMemo(function(){return wue(e)},[e])},_ue=function(e,t){var n=Gb(e)?e:function(r){return ri(r,e)};return n},tM=function(e){return Gb(e)?e:function(t){return ri(t,e)}},Ti=function(e){return h.useMemo(function(){return tM(e)},[e])},nM=function(e,t,n,r){return Math.sqrt(Math.pow(n-e,2)+Math.pow(r-t,2))},Cue=function(e,t,n,r){var i=Math.atan2(r-t,n-e)-Math.PI/2;return i>0?i:2*Math.PI+i},rM=function(e,t,n,r,i,a){return e<=i&&i<=e+n&&t<=a&&a<=t+r},fs=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]},$ue=Object.keys(K3),Sue=Object.keys(X3),Eue=function(e,t,n){if(e==="*")return!0;if(Gb(e))return e(t);if(ry(e)){var r=n?ri(t,n):t;return tue(hle(r,Object.keys(e)),e)}return!1},Yy=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 p,g=function(){var v=p.value,w=v.id,_=v.match;if(Eue(_,f,a)){var y=e.find(function(S){return S.id===w});if(y){if(Sue.includes(y.type))if(y.background==="inherit"||y.color==="inherit"){var C=ri(f,s),x=y.background,$=y.color,E=w;y.background==="inherit"&&(E=E+".bg."+C,x=C),y.color==="inherit"&&(E=E+".fg."+C,$=C),Bl(f,c,"url(#"+E+")"),d[E]||(u.push(Qr({},y,{id:E,background:x,color:$})),d[E]=1)}else Bl(f,c,"url(#"+w+")");else if($ue.includes(y.type))if(y.colors.map(function(S){return S.color}).includes("inherit")){var O=ri(f,s),k=w,j=Qr({},y,{colors:y.colors.map(function(S,T){return S.color!=="inherit"?S:(k=k+"."+T+"."+O,Qr({},S,{color:S.color==="inherit"?O:S.color}))})});j.id=k,Bl(f,c,"url(#"+k+")"),d[k]||(u.push(j),d[k]=1)}else Bl(f,c,"url(#"+w+")")}return 1}},m=sue(n);!(p=m()).done&&!g(););})),u};function Gy(){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 bo=function(e,t){e.font=(t.fontWeight?t.fontWeight+" ":"")+t.fontSize+"px "+t.fontFamily},yo=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 ec(){return ec=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},ec.apply(null,arguments)}function aC(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 kue=["style","children"],Tue=["outlineWidth","outlineColor","outlineOpacity"],ol=function(e){var t=e.style,n=e.children,r=aC(e,kue),i=t.outlineWidth,a=t.outlineColor,o=t.outlineOpacity,s=aC(t,Tue);return b.jsxs(b.Fragment,{children:[i>0&&b.jsx(qt.text,ec({},r,{style:ec({},s,{strokeWidth:2*i,stroke:a,strokeOpacity:o,strokeLinejoin:"round"}),children:n})),b.jsx(qt.text,ec({},r,{style:s,children:n}))]})};function oC(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 Oue(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 oC(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)?oC(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.
295
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rf(){return Rf=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},Rf.apply(null,arguments)}var iM={nivo:["#e8c1a0","#f47560","#f1e15b","#e8a838","#61cdbb","#97e3d5"],category10:Aoe,accent:Roe,dark2:joe,paired:Doe,pastel1:Noe,pastel2:Ioe,set1:Poe,set2:Loe,set3:j3,tableau10:Foe},Mue=Object.keys(iM),aM={brown_blueGreen:ap,purpleRed_green:op,pink_yellowGreen:sp,purple_orange:lp,red_blue:cp,red_grey:up,red_yellow_blue:dp,red_yellow_green:fp,spectral:hp},Aue=Object.keys(aM),Rue={brown_blueGreen:Boe,purpleRed_green:zoe,pink_yellowGreen:Woe,purple_orange:Uoe,red_blue:Hoe,red_grey:Voe,red_yellow_blue:qoe,red_yellow_green:Yoe,spectral:Goe},oM={blues:Ep,greens:kp,greys:Tp,oranges:Ap,purples:Op,reds:Mp,blue_green:pp,blue_purple:mp,green_blue:gp,orange_red:vp,purple_blue_green:bp,purple_blue:yp,purple_red:xp,red_purple:wp,yellow_green_blue:_p,yellow_green:Cp,yellow_orange_brown:$p,yellow_orange_red:Sp},jue=Object.keys(oM),Due={blues:sse,greens:lse,greys:cse,oranges:fse,purples:use,reds:dse,turbo:wse,viridis:_se,inferno:$se,magma:Cse,plasma:Sse,cividis:hse,warm:mse,cool:gse,cubehelixDefault:pse,blue_green:Koe,blue_purple:Zoe,green_blue:Xoe,orange_red:Qoe,purple_blue_green:Joe,purple_blue:ese,purple_red:tse,red_purple:nse,yellow_green_blue:rse,yellow_green:ise,yellow_orange_brown:ase,yellow_orange_red:ose},og=Rf({},iM,aM,oM),Nue=function(e){return Mue.includes(e)},Iue=function(e){return Aue.includes(e)},Pue=function(e){return jue.includes(e)},Lue={rainbow:vse,sinebow:xse};Rf({},Rue,Due,Lue);var Fue=function(e){return e.theme!==void 0},Bue=function(e){return e.from!==void 0},zue=function(e,t){if(typeof e=="function")return e;if(ry(e)){if(Fue(e)){if(t===void 0)throw new Error("Unable to use color from theme as no theme was provided");var n=ri(t,e.theme);if(n===void 0)throw new Error("Color from theme is undefined at path: '"+e.theme+"'");return function(){return n}}if(Bue(e)){var r=function(l){return ri(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=Oue(e.modifiers);!(i=s()).done;)o();return a.length===0?r:function(l){return a.reduce(function(c,u){return u(c)},js(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}},$r=function(e,t){return h.useMemo(function(){return zue(e,t)},[e,t])},Wue=function(e,t){if(typeof e=="function")return e;var n=typeof t=="function"?t:function(d){return ri(d,t)};if(Array.isArray(e)){var r=Ga(e),i=function(d){return r(n(d))};return i.scale=r,i}if(ry(e)){if(function(d){return d.datum!==void 0}(e))return function(d){return ri(d,e.datum)};if(function(d){return d.scheme!==void 0}(e)){if(Nue(e.scheme)){var a=Ga(og[e.scheme]),o=function(d){return a(n(d))};return o.scale=a,o}if(Iue(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=Ga(og[e.scheme][e.size||11]),l=function(d){return s(n(d))};return l.scale=s,l}if(Pue(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=Ga(og[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}},Ky=function(e,t){return h.useMemo(function(){return Wue(e,t)},[e,t])};function Tt(){return Tt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tt.apply(null,arguments)}var Uue={pointerEvents:"none"},Hue=function(e){var t=e.label,n=e.style,r=Lt();return b.jsx(qt.g,{transform:n.transform,opacity:n.progress,style:Uue,children:b.jsx(ol,{textAnchor:"middle",dominantBaseline:"central",style:Tt({},r.labels.text,{fill:n.textColor}),children:t})})},sM=function(e){var t=e%(2*Math.PI);return t<0&&(t+=2*Math.PI),t},lM=function(e,t){return e.filter(function(n){return Math.abs(Eu(n.arc.endAngle-n.arc.startAngle))>=t})},Vue={startAngle:{enter:function(e){return Tt({},e,{endAngle:e.startAngle})},update:function(e){return e},leave:function(e){return Tt({},e,{startAngle:e.endAngle})}},middleAngle:{enter:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return Tt({},e,{startAngle:t,endAngle:t})},update:function(e){return e},leave:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return Tt({},e,{startAngle:t,endAngle:t})}},endAngle:{enter:function(e){return Tt({},e,{startAngle:e.endAngle})},update:function(e){return e},leave:function(e){return Tt({},e,{endAngle:e.startAngle})}},innerRadius:{enter:function(e){return Tt({},e,{outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return Tt({},e,{innerRadius:e.outerRadius})}},centerRadius:{enter:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return Tt({},e,{innerRadius:t,outerRadius:t})},update:function(e){return e},leave:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return Tt({},e,{innerRadius:t,outerRadius:t})}},outerRadius:{enter:function(e){return Tt({},e,{innerRadius:e.outerRadius})},update:function(e){return e},leave:function(e){return Tt({},e,{outerRadius:e.innerRadius})}},pushIn:{enter:function(e){return Tt({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return Tt({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})}},pushOut:{enter:function(e){return Tt({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})},update:function(e){return e},leave:function(e){return Tt({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})}}},cM=function(e,t){return h.useMemo(function(){var n=Vue[e];return{enter:function(r){return Tt({progress:0},n.enter(r.arc),t?t.enter(r):{})},update:function(r){return Tt({progress:1},n.update(r.arc),t?t.update(r):{})},leave:function(r){return Tt({progress:0},n.leave(r.arc),t?t.leave(r):{})}}},[e,t])},uM=function(e,t){var n=due(e)-Math.PI/2,r=e.innerRadius+(e.outerRadius-e.innerRadius)*t;return ro(n,r)},que=function(e){return function(t,n,r,i){return ba([t,n,r,i],function(a,o,s,l){var c=uM({startAngle:a,endAngle:o,innerRadius:s,outerRadius:l},e);return"translate("+c.x+","+c.y+")"})}},Yue=function(e,t,n,r){t===void 0&&(t=.5),n===void 0&&(n="innerRadius");var i=Vn(),a=i.animate,o=i.config,s=cM(n,r);return{transition:_o(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:que(t)}},Gue=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 h.useMemo(function(){return lM(t,a).map(function(l){var c=uM(l.arc,r);return Tt({},s(l),{x:c.x,y:c.y,data:l})})},[t,r,a,s])},Kue=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?Hue:c,d=Ti(i),f=Lt(),p=$r(l,f),g=h.useMemo(function(){return n.filter(function(y){var C=Math.abs(Eu(y.arc.endAngle-y.arc.startAngle)),x=Math.abs(y.arc.outerRadius-y.arc.innerRadius);return C>=o&&x>=s})},[n,o,s]),m=Yue(g,a,r),v=m.transition,w=m.interpolate,_=u;return b.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:v(function(y,C){return h.createElement(_,{key:C.id,datum:C,label:d(C),style:{progress:y.progress,transform:w(y.startAngle,y.endAngle,y.innerRadius,y.outerRadius),textColor:p(C)}})})})},Zue=function(e,t,n){bo(e,n.labels.text),e.textAlign="center",e.textBaseline="middle",t.forEach(function(r){yo(e,Tt({},n.labels.text,{fill:r.textColor}),String(r.label),r.x,r.y)})},Xue=function(e){var t=e.data,n=e.offset,r=e.skipAngle,i=e.label,a=e.textColor,o=Ti(i),s=Lt(),l=$r(a,s),c=h.useCallback(function(u){return{label:o(u),textColor:l(u)}},[o,l]);return Gue({data:t,offset:n,skipAngle:r,computeExtraProps:c})},Que=function(e){var t=e.label,n=e.style,r=Lt();return b.jsxs(qt.g,{opacity:n.opacity,children:[b.jsx(qt.path,{fill:"none",stroke:n.linkColor,strokeWidth:n.thickness,d:n.path}),b.jsx(ol,{transform:n.textPosition,textAnchor:n.textAnchor,dominantBaseline:"central",style:Tt({},r.labels.text,{fill:n.textColor}),children:t})]})},Jue=function(e){var t=sM(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2);return t<Math.PI/2||t>1.5*Math.PI?"start":"end"},Zy=function(e,t,n,r){var i,a,o=sM(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2),s=ro(o,e.outerRadius+t),l=ro(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]}},ede=yy().x(function(e){return e.x}).y(function(e){return e.y}),tde=function(e,t,n,r,i,a,o){return ba([e,t,n,r,i,a,o],function(s,l,c,u,d,f,p){var g=Zy({startAngle:s,endAngle:l,outerRadius:u},d,f,p).points;return ede(g)})},nde=function(e,t,n,r){return ba([e,t,n,r],function(i,a,o,s){return Jue({startAngle:i,endAngle:a})})},rde=function(e,t,n,r,i,a,o,s){return ba([e,t,n,r,i,a,o,s],function(l,c,u,d,f,p,g,m){var v=Zy({startAngle:l,endAngle:c,outerRadius:d},f,p,g),w=v.points,_=v.side,y=w[2];return _==="before"?y.x-=m:y.x+=m,"translate("+y.x+","+y.y+")"})},ide=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=Vn(),f=d.animate,p=d.config,g=Lt(),m=$r(c,g),v=$r(u,g),w=function(y,C){return h.useMemo(function(){return lM(y,C)},[y,C])}(t,s),_=function(y){var C=y.offset,x=y.diagonalLength,$=y.straightLength,E=y.textOffset,O=y.getLinkColor,k=y.getTextColor;return h.useMemo(function(){return{enter:function(j){return{startAngle:j.arc.startAngle,endAngle:j.arc.endAngle,innerRadius:j.arc.innerRadius,outerRadius:j.arc.outerRadius,offset:C,diagonalLength:0,straightLength:0,textOffset:E,linkColor:O(j),textColor:k(j),opacity:0}},update:function(j){return{startAngle:j.arc.startAngle,endAngle:j.arc.endAngle,innerRadius:j.arc.innerRadius,outerRadius:j.arc.outerRadius,offset:C,diagonalLength:x,straightLength:$,textOffset:E,linkColor:O(j),textColor:k(j),opacity:1}},leave:function(j){return{startAngle:j.arc.startAngle,endAngle:j.arc.endAngle,innerRadius:j.arc.innerRadius,outerRadius:j.arc.outerRadius,offset:C,diagonalLength:0,straightLength:0,textOffset:E,linkColor:O(j),textColor:k(j),opacity:0}}}},[x,$,E,O,k,C])}({offset:r,diagonalLength:i,straightLength:a,textOffset:l,getLinkColor:m,getTextColor:v});return{transition:_o(w,{keys:function(y){return y.id},initial:_.update,from:_.enter,enter:_.update,update:_.update,leave:_.leave,config:p,immediate:!f}),interpolateLink:tde,interpolateTextAnchor:nde,interpolateTextPosition:rde}},ade=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,p=f===void 0?Que:f,g=Ti(r),m=ide({data:n,skipAngle:i,offset:a,diagonalLength:o,straightLength:s,textOffset:c,linkColor:d,textColor:u}),v=m.transition,w=m.interpolateLink,_=m.interpolateTextAnchor,y=m.interpolateTextPosition,C=p;return b.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:v(function(x,$){return h.createElement(C,{key:$.id,datum:$,label:g($),style:Tt({},x,{thickness:l,path:w(x.startAngle,x.endAngle,x.innerRadius,x.outerRadius,x.offset,x.diagonalLength,x.straightLength),textAnchor:_(x.startAngle,x.endAngle,x.innerRadius,x.outerRadius),textPosition:y(x.startAngle,x.endAngle,x.innerRadius,x.outerRadius,x.offset,x.diagonalLength,x.straightLength,x.textOffset)})})})})},ode=function(e,t,n,r){e.textBaseline="middle",bo(e,n.labels.text),t.forEach(function(i){e.textAlign=Z3.canvas.align[i.textAnchor],yo(e,Tt({},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()})},sde=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=h.useMemo(function(){return t.filter(function(d){return Math.abs(Eu(d.arc.endAngle-d.arc.startAngle))>=r}).map(function(d){return Tt({},Zy(d.arc,a,o,s),{data:d})})},[t,r,a,o,s]);return h.useMemo(function(){return u.map(function(d){return Tt({},c(d),d)})},[u,c])},lde=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=Ti(l),f=Lt(),p=$r(c,f),g=$r(u,f),m=h.useCallback(function(v){var w,_={x:v.points[2].x,y:v.points[2].y};return v.side==="before"?(_.x-=s,w="end"):(_.x+=s,w="start"),Tt({},_,{label:d(v.data),linkColor:p(v.data),textAnchor:w,textColor:g(v.data)})},[d,p,g,s]);return sde({data:t,skipAngle:n,offset:r,diagonalLength:i,straightLength:a,computeExtraProps:m})},cde=function(e){var t=e.datum,n=e.style,r=e.onClick,i=e.onMouseEnter,a=e.onMouseMove,o=e.onMouseLeave,s=h.useCallback(function(d){return r==null?void 0:r(t,d)},[r,t]),l=h.useCallback(function(d){return i==null?void 0:i(t,d)},[i,t]),c=h.useCallback(function(d){return a==null?void 0:a(t,d)},[a,t]),u=h.useCallback(function(d){return o==null?void 0:o(t,d)},[o,t]);return b.jsx(qt.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})},ude=function(e,t,n,r,i){return ba([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)})})},dde=function(e,t,n){t===void 0&&(t="innerRadius");var r=Vn(),i=r.animate,a=r.config,o=cM(t,n);return{transition:_o(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:ude}},fde=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?cde:d,p=Lt(),g=$r(a,p),m=dde(n,u,{enter:function(y){return{opacity:0,color:y.color,borderColor:g(y)}},update:function(y){return{opacity:1,color:y.color,borderColor:g(y)}},leave:function(y){return{opacity:0,color:y.color,borderColor:g(y)}}}),v=m.transition,w=m.interpolate,_=f;return b.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:v(function(y,C){return h.createElement(_,{key:C.id,datum:C,style:Tt({},y,{borderWidth:i,path:w(y.startAngle,y.endAngle,y.innerRadius,y.outerRadius,r)}),onClick:o,onMouseEnter:s,onMouseMove:l,onMouseLeave:c})})})},hde=function(e,t,n,r,i,a){a===void 0&&(a=!0);var o=[],s=ro(yr(r),n);o.push([s.x,s.y]);var l=ro(yr(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=ro(yr(c),n);o.push([u.x,u.y])}o=o.map(function(v){var w=v[0],_=v[1];return[e+w,t+_]}),a&&o.push([e,t]);var d=o.map(function(v){return v[0]}),f=o.map(function(v){return v[1]}),p=Math.min.apply(Math,d),g=Math.max.apply(Math,d),m=Math.min.apply(Math,f);return{points:o,x:p,y:m,width:g-p,height:Math.max.apply(Math,f)-m}},pde=function(e,t,n,r,i,a){var o=nM(i,a,e,t);return o<n&&o>r},mde=function(e,t,n,r,i,a,o){if(pde(e,t,n,r,a,o)){var s=Cue(a,o,e,t);return i.find(function(l){var c=l.startAngle,u=l.endAngle;return s>=c&&s<u})}},gde=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 h.useMemo(function(){return tie().innerRadius(function(o){return o.innerRadius}).outerRadius(function(o){return o.outerRadius}).cornerRadius(r).padAngle(a)},[r,a])},vde=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 b.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"}})},bde=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 b.jsx("g",{transform:"translate("+t+","+n+")",children:b.jsx("path",{d:`
296
- M`+r/2+` 0
297
- L`+.8*r+" "+r/2+`
298
- L`+r/2+" "+r+`
299
- L`+.2*r+" "+r/2+`
300
- L`+r/2+` 0
301
- `,fill:i,opacity:o,strokeWidth:l,stroke:c===void 0?"transparent":c,style:{pointerEvents:"none"}})})},yde=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 b.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"}})},xde=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 b.jsx("g",{transform:"translate("+t+","+n+")",children:b.jsx("path",{d:`
302
- M`+r/2+` 0
303
- L`+r+" "+r+`
304
- L0 `+r+`
305
- L`+r/2+` 0
306
- `,fill:i,opacity:o,strokeWidth:l,stroke:c===void 0?"transparent":c,style:{pointerEvents:"none"}})})};function sa(){return sa=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},sa.apply(null,arguments)}var gr={translateX:0,translateY:0,padding:0,itemsSpacing:0,itemDirection:"left-to-right",justify:!1,symbolShape:"square",symbolSize:16,symbolSpacing:8},wde={top:0,right:0,bottom:0,left:0},Xy=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}:sa({},wde,i),c=l.left+l.right,u=l.top+l.bottom,d=o+c,f=s+u,p=(a-1)*r;return n==="row"?d=o*a+p+c:n==="column"&&(f=s*a+p+u),{width:d,height:f,padding:l}},dM=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}},fM=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}},_de={circle:vde,diamond:bde,square:yde,triangle:xde},Cde=function(e){var t,n,r,i,a,o,s,l,c,u,d,f=e.x,p=e.y,g=e.width,m=e.height,v=e.data,w=e.direction,_=w===void 0?gr.itemDirection:w,y=e.justify,C=y===void 0?gr.justify:y,x=e.textColor,$=e.background,E=$===void 0?"transparent":$,O=e.opacity,k=O===void 0?1:O,j=e.symbolShape,S=j===void 0?gr.symbolShape:j,T=e.symbolSize,R=T===void 0?gr.symbolSize:T,N=e.symbolSpacing,D=N===void 0?gr.symbolSpacing:N,M=e.symbolBorderWidth,I=M===void 0?0:M,z=e.symbolBorderColor,U=z===void 0?"transparent":z,P=e.onClick,W=e.onMouseEnter,Y=e.onMouseLeave,X=e.toggleSerie,K=e.effects,Z=h.useState({}),ee=Z[0],J=Z[1],B=Lt(),L=h.useCallback(function(fe){if(K){var _e=K.filter(function(ye){return ye.on==="hover"}).reduce(function(ye,xe){return sa({},ye,xe.style)},{});J(_e)}W==null||W(v,fe)},[W,v,K]),F=h.useCallback(function(fe){if(K){var _e=K.filter(function(ye){return ye.on!=="hover"}).reduce(function(ye,xe){return sa({},ye,xe.style)},{});J(_e)}Y==null||Y(v,fe)},[Y,v,K]),H=fM({direction:_,justify:C,symbolSize:(t=ee.symbolSize)!=null?t:R,symbolSpacing:D,width:g,height:m}),A=H.symbolX,Q=H.symbolY,G=H.labelX,q=H.labelY,le=H.labelAnchor,ne=H.labelAlignment,re=[P,W,Y,X].some(function(fe){return fe!==void 0}),se=typeof S=="function"?S:_de[S];return b.jsxs("g",{transform:"translate("+f+","+p+")",style:{opacity:(n=ee.itemOpacity)!=null?n:k},children:[b.jsx("rect",{width:g,height:m,fill:(r=ee.itemBackground)!=null?r:E,style:{cursor:re?"pointer":"auto"},onClick:function(fe){P==null||P(v,fe),X==null||X(v.id)},onMouseEnter:L,onMouseLeave:F}),ie.createElement(se,sa({id:v.id,x:A,y:Q,size:(i=ee.symbolSize)!=null?i:R,fill:(a=(o=v.fill)!=null?o:v.color)!=null?a:"black",borderWidth:(s=ee.symbolBorderWidth)!=null?s:I,borderColor:(l=ee.symbolBorderColor)!=null?l:U},v.hidden?B.legends.hidden.symbol:void 0)),b.jsx(ol,{textAnchor:le,style:sa({},B.legends.text,{fill:(c=(u=(d=ee.itemTextColor)!=null?d:x)!=null?u:B.legends.text.fill)!=null?c:"black",dominantBaseline:ne,pointerEvents:"none",userSelect:"none"},v.hidden?B.legends.hidden.text:void 0),x:G,y:q,children:v.label})]})},$de=function(e){var t=e.data,n=e.x,r=e.y,i=e.direction,a=e.padding,o=a===void 0?gr.padding:a,s=e.justify,l=e.effects,c=e.itemWidth,u=e.itemHeight,d=e.itemDirection,f=d===void 0?gr.itemDirection:d,p=e.itemsSpacing,g=p===void 0?gr.itemsSpacing:p,m=e.itemTextColor,v=e.itemBackground,w=v===void 0?"transparent":v,_=e.itemOpacity,y=_===void 0?1:_,C=e.symbolShape,x=e.symbolSize,$=e.symbolSpacing,E=e.symbolBorderWidth,O=e.symbolBorderColor,k=e.onClick,j=e.onMouseEnter,S=e.onMouseLeave,T=e.toggleSerie,R=Xy({itemCount:t.length,itemWidth:c,itemHeight:u,itemsSpacing:g,direction:i,padding:o}).padding,N=i==="row"?c+g:0,D=i==="column"?u+g:0;return b.jsx("g",{transform:"translate("+n+","+r+")",children:t.map(function(M,I){return b.jsx(Cde,{data:M,x:I*N+R.left,y:I*D+R.top,width:c,height:u,direction:f,justify:s,effects:l,textColor:m,background:w,opacity:y,symbolShape:C,symbolSize:x,symbolSpacing:$,symbolBorderWidth:E,symbolBorderColor:O,onClick:k,onMouseEnter:j,onMouseLeave:S,toggleSerie:T},I)})})},Qy=function(e){var t=e.data,n=e.containerWidth,r=e.containerHeight,i=e.translateX,a=i===void 0?gr.translateX:i,o=e.translateY,s=o===void 0?gr.translateY:o,l=e.anchor,c=e.direction,u=e.padding,d=u===void 0?gr.padding:u,f=e.justify,p=e.itemsSpacing,g=p===void 0?gr.itemsSpacing:p,m=e.itemWidth,v=e.itemHeight,w=e.itemDirection,_=e.itemTextColor,y=e.itemBackground,C=e.itemOpacity,x=e.symbolShape,$=e.symbolSize,E=e.symbolSpacing,O=e.symbolBorderWidth,k=e.symbolBorderColor,j=e.onClick,S=e.onMouseEnter,T=e.onMouseLeave,R=e.toggleSerie,N=e.effects,D=Xy({itemCount:t.length,itemsSpacing:g,itemWidth:m,itemHeight:v,direction:c,padding:d}),M=D.width,I=D.height,z=dM({anchor:l,translateX:a,translateY:s,containerWidth:n,containerHeight:r,width:M,height:I}),U=z.x,P=z.y;return b.jsx($de,{data:t,x:U,y:P,direction:c,padding:d,justify:f,effects:N,itemsSpacing:g,itemWidth:m,itemHeight:v,itemDirection:w,itemTextColor:_,itemBackground:y,itemOpacity:C,symbolShape:x,symbolSize:$,symbolSpacing:E,symbolBorderWidth:O,symbolBorderColor:k,onClick:j,onMouseEnter:S,onMouseLeave:T,toggleSerie:typeof R=="boolean"?void 0:R})},Sde={start:"left",middle:"center",end:"right"},Jy=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,p=t.justify,g=p!==void 0&&p,m=t.itemsSpacing,v=m===void 0?0:m,w=t.itemWidth,_=t.itemHeight,y=t.itemDirection,C=y===void 0?"left-to-right":y,x=t.itemTextColor,$=t.symbolSize,E=$===void 0?16:$,O=t.symbolSpacing,k=O===void 0?8:O,j=t.theme,S=Xy({itemCount:n.length,itemWidth:w,itemHeight:_,itemsSpacing:v,direction:u,padding:f}),T=S.width,R=S.height,N=S.padding,D=dM({anchor:c,translateX:o,translateY:l,containerWidth:r,containerHeight:i,width:T,height:R}),M=D.x,I=D.y,z=u==="row"?w+v:0,U=u==="column"?_+v:0;e.save(),e.translate(M,I),bo(e,j.legends.text),n.forEach(function(P,W){var Y,X=W*z+N.left,K=W*U+N.top,Z=fM({direction:C,justify:g,symbolSize:E,symbolSpacing:k,width:w,height:_}),ee=Z.symbolX,J=Z.symbolY,B=Z.labelX,L=Z.labelY,F=Z.labelAnchor,H=Z.labelAlignment;e.fillStyle=(Y=P.color)!=null?Y:"black",e.fillRect(X+ee,K+J,E,E),e.textAlign=Sde[F],H==="central"&&(e.textBaseline="middle"),yo(e,sa({},j.legends.text,{fill:x??j.legends.text.fill}),String(P.label),X+B,K+L)}),e.restore()};function Sr(){return Sr=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},Sr.apply(null,arguments)}function ku(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var sC,Ede=function(e){var t=e.width,n=e.height,r=e.legends,i=e.data,a=e.toggleSerie;return b.jsx(b.Fragment,{children:r.map(function(o,s){var l;return b.jsx(Qy,Sr({},o,{containerWidth:t,containerHeight:n,data:(l=o.data)!=null?l:i,toggleSerie:o.toggleSerie?a:void 0}),s)})})},ge={id:"id",value:"value",sortByValue:!1,innerRadius:0,padAngle:0,cornerRadius:0,layers:["arcs","arcLinkLabels","arcLabels","legends"],startAngle:0,endAngle:360,fit:!0,activeInnerRadiusOffset:0,activeOuterRadiusOffset:0,borderWidth:0,borderColor:{from:"color",modifiers:[["darker",1]]},enableArcLabels:!0,arcLabel:"formattedValue",arcLabelsSkipAngle:0,arcLabelsSkipRadius:0,arcLabelsRadiusOffset:.5,arcLabelsTextColor:{theme:"labels.text.fill"},enableArcLinkLabels:!0,arcLinkLabel:"id",arcLinkLabelsSkipAngle:0,arcLinkLabelsOffset:0,arcLinkLabelsDiagonalLength:16,arcLinkLabelsStraightLength:24,arcLinkLabelsThickness:1,arcLinkLabelsTextOffset:6,arcLinkLabelsTextColor:{theme:"labels.text.fill"},arcLinkLabelsColor:{theme:"axis.ticks.line.stroke"},colors:{scheme:"nivo"},defs:[],fill:[],isInteractive:!0,animate:!0,motionConfig:"gentle",transitionMode:"innerRadius",tooltip:function(e){var t=e.datum;return b.jsx(cy,{id:t.id,value:t.formattedValue,enableChip:!0,color:t.color})},legends:[],role:"img",pixelRatio:typeof window<"u"&&(sC=window.devicePixelRatio)!=null?sC:1},kde=["points"],hM=function(e){var t=e.data,n=e.id,r=n===void 0?ge.id:n,i=e.value,a=i===void 0?ge.value:i,o=e.valueFormat,s=e.colors,l=s===void 0?ge.colors:s,c=Ti(r),u=Ti(a),d=Ns(o),f=Ky(l,"id");return h.useMemo(function(){return t.map(function(p){var g,m=c(p),v=u(p),w={id:m,label:(g=p.label)!=null?g:m,hidden:!1,value:v,formattedValue:d(v),data:p};return Sr({},w,{color:f(w)})})},[t,c,u,d,f])},Tde=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,p=h.useMemo(function(){var w=aie().value(function(_){return _.value}).startAngle(yr(n)).endAngle(yr(r)).padAngle(yr(o));return s||w.sortValues(null),w},[n,r,o,s]),g=h.useMemo(function(){var w=t.filter(function(_){return!d.includes(_.id)});return{dataWithArc:p(w).map(function(_){var y=Math.abs(_.endAngle-_.startAngle);return Sr({},_.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:y,angleDeg:Eu(y)}})}),legendData:t.map(function(_){return{id:_.id,label:_.label,color:_.color,hidden:d.includes(_.id),data:_}})}},[p,t,d,l,i,c,a,u]),m=g.legendData,v=h.useRef(f);return h.useEffect(function(){typeof v.current=="function"&&v.current(m)},[v,m]),g},Ode=function(e){var t=e.activeId,n=e.onActiveIdChange,r=e.defaultActiveId,i=t!==void 0,a=h.useState(i||r===void 0?null:r),o=a[0],s=a[1];return{activeId:i?t:o,setActiveId:h.useCallback(function(l){n&&n(l),i||s(l)},[i,n,s])}},pM=function(e){var t=e.data,n=e.width,r=e.height,i=e.innerRadius,a=i===void 0?ge.innerRadius:i,o=e.startAngle,s=o===void 0?ge.startAngle:o,l=e.endAngle,c=l===void 0?ge.endAngle:l,u=e.padAngle,d=u===void 0?ge.padAngle:u,f=e.sortByValue,p=f===void 0?ge.sortByValue:f,g=e.cornerRadius,m=g===void 0?ge.cornerRadius:g,v=e.fit,w=v===void 0?ge.fit:v,_=e.activeInnerRadiusOffset,y=_===void 0?ge.activeInnerRadiusOffset:_,C=e.activeOuterRadiusOffset,x=C===void 0?ge.activeOuterRadiusOffset:C,$=e.activeId,E=e.onActiveIdChange,O=e.defaultActiveId,k=e.forwardLegendData,j=Ode({activeId:$,onActiveIdChange:E,defaultActiveId:O}),S=j.activeId,T=j.setActiveId,R=h.useState([]),N=R[0],D=R[1],M=h.useMemo(function(){var U,P=Math.min(n,r)/2,W=P*Math.min(a,1),Y=n/2,X=r/2;if(w){var K=hde(Y,X,P,s-90,c-90),Z=K.points,ee=ku(K,kde),J=Math.min(n/ee.width,r/ee.height),B={width:ee.width*J,height:ee.height*J};B.x=(n-B.width)/2,B.y=(r-B.height)/2,Y=(Y-ee.x)/ee.width*ee.width*J+B.x,X=(X-ee.y)/ee.height*ee.height*J+B.y,U={box:ee,ratio:J,points:Z},P*=J,W*=J}return{centerX:Y,centerY:X,radius:P,innerRadius:W,debug:U}},[n,r,a,s,c,w]),I=Tde({data:t,startAngle:s,endAngle:c,innerRadius:M.innerRadius,outerRadius:M.radius,padAngle:d,sortByValue:p,activeId:S,activeInnerRadiusOffset:y,activeOuterRadiusOffset:x,hiddenIds:N,forwardLegendData:k}),z=h.useCallback(function(U){D(function(P){return P.indexOf(U)>-1?P.filter(function(W){return W!==U}):[].concat(P,[U])})},[]);return Sr({arcGenerator:gde({cornerRadius:m,padAngle:yr(d)}),activeId:S,setActiveId:T,toggleSerie:z},I,M)},Mde=function(e){var t=e.dataWithArc,n=e.arcGenerator,r=e.centerX,i=e.centerY,a=e.radius,o=e.innerRadius;return h.useMemo(function(){return{dataWithArc:t,arcGenerator:n,centerX:r,centerY:i,radius:a,innerRadius:o}},[t,n,r,i,a,o])},Ade=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,p=e.transitionMode,g=Wi(),m=g.showTooltipFromEvent,v=g.hideTooltip,w=h.useMemo(function(){if(o)return function(x,$){s==null||s(x,$)}},[o,s]),_=h.useMemo(function(){if(o)return function(x,$){m(h.createElement(f,{datum:x}),$),d(x.id),l==null||l(x,$)}},[o,m,d,l,f]),y=h.useMemo(function(){if(o)return function(x,$){m(h.createElement(f,{datum:x}),$),c==null||c(x,$)}},[o,m,c,f]),C=h.useMemo(function(){if(o)return function(x,$){v(),d(null),u==null||u(x,$)}},[o,v,d,u]);return b.jsx(fde,{center:t,data:n,arcGenerator:r,borderWidth:i,borderColor:a,transitionMode:p,onClick:w,onMouseEnter:_,onMouseMove:y,onMouseLeave:C})},Rde=["isInteractive","animate","motionConfig","theme","renderWrapper"],jde=function(e){var t=e.data,n=e.id,r=n===void 0?ge.id:n,i=e.value,a=i===void 0?ge.value:i,o=e.valueFormat,s=e.sortByValue,l=s===void 0?ge.sortByValue:s,c=e.layers,u=c===void 0?ge.layers:c,d=e.startAngle,f=d===void 0?ge.startAngle:d,p=e.endAngle,g=p===void 0?ge.endAngle:p,m=e.padAngle,v=m===void 0?ge.padAngle:m,w=e.fit,_=w===void 0?ge.fit:w,y=e.innerRadius,C=y===void 0?ge.innerRadius:y,x=e.cornerRadius,$=x===void 0?ge.cornerRadius:x,E=e.activeInnerRadiusOffset,O=E===void 0?ge.activeInnerRadiusOffset:E,k=e.activeOuterRadiusOffset,j=k===void 0?ge.activeOuterRadiusOffset:k,S=e.width,T=e.height,R=e.margin,N=e.colors,D=N===void 0?ge.colors:N,M=e.borderWidth,I=M===void 0?ge.borderWidth:M,z=e.borderColor,U=z===void 0?ge.borderColor:z,P=e.enableArcLabels,W=P===void 0?ge.enableArcLabels:P,Y=e.arcLabel,X=Y===void 0?ge.arcLabel:Y,K=e.arcLabelsSkipAngle,Z=K===void 0?ge.arcLabelsSkipAngle:K,ee=e.arcLabelsSkipRadius,J=ee===void 0?ge.arcLabelsSkipRadius:ee,B=e.arcLabelsTextColor,L=B===void 0?ge.arcLabelsTextColor:B,F=e.arcLabelsRadiusOffset,H=F===void 0?ge.arcLabelsRadiusOffset:F,A=e.arcLabelsComponent,Q=e.enableArcLinkLabels,G=Q===void 0?ge.enableArcLinkLabels:Q,q=e.arcLinkLabel,le=q===void 0?ge.arcLinkLabel:q,ne=e.arcLinkLabelsSkipAngle,re=ne===void 0?ge.arcLinkLabelsSkipAngle:ne,se=e.arcLinkLabelsOffset,fe=se===void 0?ge.arcLinkLabelsOffset:se,_e=e.arcLinkLabelsDiagonalLength,ye=_e===void 0?ge.arcLinkLabelsDiagonalLength:_e,xe=e.arcLinkLabelsStraightLength,Me=xe===void 0?ge.arcLinkLabelsStraightLength:xe,ue=e.arcLinkLabelsThickness,oe=ue===void 0?ge.arcLinkLabelsThickness:ue,be=e.arcLinkLabelsTextOffset,Fe=be===void 0?ge.arcLinkLabelsTextOffset:be,Ft=e.arcLinkLabelsTextColor,Pe=Ft===void 0?ge.arcLinkLabelsTextColor:Ft,mt=e.arcLinkLabelsColor,wt=mt===void 0?ge.arcLinkLabelsColor:mt,tn=e.arcLinkLabelComponent,Ee=e.defs,Re=Ee===void 0?ge.defs:Ee,gt=e.fill,Ve=gt===void 0?ge.fill:gt,vt=e.isInteractive,at=vt===void 0?ge.isInteractive:vt,Mt=e.onClick,Ge=e.onMouseEnter,De=e.onMouseMove,ze=e.onMouseLeave,Xe=e.tooltip,Ne=Xe===void 0?ge.tooltip:Xe,Qe=e.activeId,ft=e.onActiveIdChange,tt=e.defaultActiveId,je=e.transitionMode,ke=je===void 0?ge.transitionMode:je,Ue=e.legends,bt=Ue===void 0?ge.legends:Ue,Je=e.forwardLegendData,ht=e.role,en=ht===void 0?ge.role:ht,Bt=e.forwardedRef,Ut=Ao(S,T,R),mn=Ut.outerWidth,Gt=Ut.outerHeight,$e=Ut.margin,Ke=Ut.innerWidth,_t=Ut.innerHeight,ln=hM({data:t,id:r,value:a,valueFormat:o,colors:D}),Kt=pM({data:ln,width:Ke,height:_t,fit:_,innerRadius:C,startAngle:f,endAngle:g,padAngle:v,sortByValue:l,cornerRadius:$,activeInnerRadiusOffset:O,activeOuterRadiusOffset:j,activeId:Qe,onActiveIdChange:ft,defaultActiveId:tt,forwardLegendData:Je}),Ie=Kt.dataWithArc,Le=Kt.legendData,lt=Kt.arcGenerator,At=Kt.centerX,Ct=Kt.centerY,Ze=Kt.radius,$t=Kt.innerRadius,kr=Kt.setActiveId,un=Kt.toggleSerie,dn=Yy(Re,Ie,Ve),In={arcs:null,arcLinkLabels:null,arcLabels:null,legends:null};u.includes("arcs")&&(In.arcs=b.jsx(Ade,{center:[At,Ct],data:Ie,arcGenerator:lt,borderWidth:I,borderColor:U,isInteractive:at,onClick:Mt,onMouseEnter:Ge,onMouseMove:De,onMouseLeave:ze,setActiveId:kr,tooltip:Ne,transitionMode:ke},"arcs")),G&&u.includes("arcLinkLabels")&&(In.arcLinkLabels=b.jsx(ade,{center:[At,Ct],data:Ie,label:le,skipAngle:re,offset:fe,diagonalLength:ye,straightLength:Me,strokeWidth:oe,textOffset:Fe,textColor:Pe,linkColor:wt,component:tn},"arcLinkLabels")),W&&u.includes("arcLabels")&&(In.arcLabels=b.jsx(Kue,{center:[At,Ct],data:Ie,label:X,radiusOffset:H,skipAngle:Z,skipRadius:J,textColor:L,transitionMode:ke,component:A},"arcLabels")),bt.length>0&&u.includes("legends")&&(In.legends=b.jsx(Ede,{width:Ke,height:_t,data:Le,legends:bt,toggleSerie:un},"legends"));var Ea=Mde({dataWithArc:Ie,arcGenerator:lt,centerX:At,centerY:Ct,radius:Ze,innerRadius:$t});return b.jsx(Dp,{width:mn,height:Gt,margin:$e,defs:dn,role:en,ref:Bt,children:u.map(function(xt,ka){return In[xt]!==void 0?In[xt]:typeof xt=="function"?b.jsx(h.Fragment,{children:h.createElement(xt,Ea)},ka):null})})},Dde=h.forwardRef(function(e,t){var n=e.isInteractive,r=n===void 0?ge.isInteractive:n,i=e.animate,a=i===void 0?ge.animate:i,o=e.motionConfig,s=o===void 0?ge.motionConfig:o,l=e.theme,c=e.renderWrapper,u=ku(e,Rde);return b.jsx(Oo,{animate:a,isInteractive:r,motionConfig:s,renderWrapper:c,theme:l,children:b.jsx(jde,Sr({isInteractive:r},u,{forwardedRef:t}))})}),Nde=["defaultWidth","defaultHeight","onResize","debounceResize"],Ide=h.forwardRef(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,a=e.debounceResize,o=ku(e,Nde);return b.jsx(Mo,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:a,children:function(s){var l=s.width,c=s.height;return b.jsx(Dde,Sr({width:l,height:c},o,{ref:t}))}})}),Pde=["isInteractive","theme","renderWrapper"],Lde=function(e){var t=e.data,n=e.id,r=n===void 0?ge.id:n,i=e.value,a=i===void 0?ge.value:i,o=e.valueFormat,s=e.sortByValue,l=s===void 0?ge.sortByValue:s,c=e.startAngle,u=c===void 0?ge.startAngle:c,d=e.endAngle,f=d===void 0?ge.endAngle:d,p=e.padAngle,g=p===void 0?ge.padAngle:p,m=e.fit,v=m===void 0?ge.fit:m,w=e.innerRadius,_=w===void 0?ge.innerRadius:w,y=e.cornerRadius,C=y===void 0?ge.cornerRadius:y,x=e.activeInnerRadiusOffset,$=x===void 0?ge.activeInnerRadiusOffset:x,E=e.activeOuterRadiusOffset,O=E===void 0?ge.activeOuterRadiusOffset:E,k=e.width,j=e.height,S=e.margin,T=e.pixelRatio,R=T===void 0?ge.pixelRatio:T,N=e.colors,D=N===void 0?ge.colors:N,M=e.borderWidth,I=M===void 0?ge.borderWidth:M,z=e.borderColor,U=z===void 0?ge.borderColor:z,P=e.enableArcLabels,W=P===void 0?ge.enableArcLabels:P,Y=e.arcLabel,X=Y===void 0?ge.arcLabel:Y,K=e.arcLabelsSkipAngle,Z=K===void 0?ge.arcLabelsSkipAngle:K,ee=e.arcLabelsTextColor,J=ee===void 0?ge.arcLabelsTextColor:ee,B=e.arcLabelsRadiusOffset,L=B===void 0?ge.arcLabelsRadiusOffset:B,F=e.enableArcLinkLabels,H=F===void 0?ge.enableArcLinkLabels:F,A=e.arcLinkLabel,Q=A===void 0?ge.arcLinkLabel:A,G=e.arcLinkLabelsSkipAngle,q=G===void 0?ge.arcLinkLabelsSkipAngle:G,le=e.arcLinkLabelsOffset,ne=le===void 0?ge.arcLinkLabelsOffset:le,re=e.arcLinkLabelsDiagonalLength,se=re===void 0?ge.arcLinkLabelsDiagonalLength:re,fe=e.arcLinkLabelsStraightLength,_e=fe===void 0?ge.arcLinkLabelsStraightLength:fe,ye=e.arcLinkLabelsThickness,xe=ye===void 0?ge.arcLinkLabelsThickness:ye,Me=e.arcLinkLabelsTextOffset,ue=Me===void 0?ge.arcLinkLabelsTextOffset:Me,oe=e.arcLinkLabelsTextColor,be=oe===void 0?ge.arcLinkLabelsTextColor:oe,Fe=e.arcLinkLabelsColor,Ft=Fe===void 0?ge.arcLinkLabelsColor:Fe,Pe=e.isInteractive,mt=Pe===void 0?ge.isInteractive:Pe,wt=e.onClick,tn=e.onMouseMove,Ee=e.tooltip,Re=Ee===void 0?ge.tooltip:Ee,gt=e.activeId,Ve=e.onActiveIdChange,vt=e.defaultActiveId,at=e.legends,Mt=at===void 0?ge.legends:at,Ge=e.forwardLegendData,De=e.role,ze=e.forwardedRef,Xe=h.useRef(null),Ne=Lt(),Qe=Ao(k,j,S),ft=Qe.margin,tt=Qe.innerWidth,je=Qe.innerHeight,ke=Qe.outerWidth,Ue=Qe.outerHeight,bt=hM({data:t,id:r,value:a,valueFormat:o,colors:D}),Je=pM({data:bt,width:tt,height:je,fit:v,innerRadius:_,startAngle:u,endAngle:f,padAngle:g,sortByValue:l,cornerRadius:C,activeInnerRadiusOffset:$,activeOuterRadiusOffset:O,activeId:gt,onActiveIdChange:Ve,defaultActiveId:vt,forwardLegendData:Ge}),ht=Je.dataWithArc,en=Je.arcGenerator,Bt=Je.centerX,Ut=Je.centerY,mn=Je.radius,Gt=Je.innerRadius,$e=Je.setActiveId,Ke=$r(U,Ne),_t=Xue({data:ht,label:X,skipAngle:Z,offset:L,textColor:J}),ln=lde({data:ht,skipAngle:q,offset:ne,diagonalLength:se,straightLength:_e,label:Q,linkColor:Ft,textOffset:ue,textColor:be});h.useEffect(function(){if(Xe.current){Xe.current.width=ke*R,Xe.current.height=Ue*R;var Ze=Xe.current.getContext("2d");Ze.scale(R,R),Ze.fillStyle=Ne.background,Ze.fillRect(0,0,ke,Ue),Ze.save(),Ze.translate(ft.left,ft.top),en.context(Ze),Ze.save(),Ze.translate(Bt,Ut),ht.forEach(function($t){Ze.beginPath(),Ze.fillStyle=$t.color,Ze.strokeStyle=Ke($t),Ze.lineWidth=I,en($t.arc),Ze.fill(),I>0&&Ze.stroke()}),H===!0&&ode(Ze,ln,Ne,xe),W===!0&&Zue(Ze,_t,Ne),Ze.restore(),Mt.forEach(function($t){Jy(Ze,Sr({},$t,{data:ht,containerWidth:tt,containerHeight:je,theme:Ne}))})}},[Xe,tt,je,ke,Ue,ft.top,ft.left,R,Bt,Ut,en,ht,I,Ke,W,_t,H,ln,xe,Mt,Ne]);var Kt=h.useMemo(function(){return ht.map(function(Ze){return Sr({id:Ze.id},Ze.arc)})},[ht]),Ie=function(Ze){if(!Xe.current)return null;var $t=fs(Xe.current,Ze),kr=$t[0],un=$t[1],dn=mde(ft.left+Bt,ft.top+Ut,mn,Gt,Kt,kr,un);return dn?ht.find(function(In){return In.id===dn.id}):null},Le=Wi(),lt=Le.showTooltipFromEvent,At=Le.hideTooltip,Ct=function(Ze){var $t=Ie(Ze);$t?(tn==null||tn($t,Ze),$e($t.id),lt(h.createElement(Re,{datum:$t}),Ze)):($e(null),At())};return b.jsx("canvas",{ref:Gy(Xe,ze),width:ke*R,height:Ue*R,style:{width:ke,height:Ue,cursor:mt?"auto":"normal"},onMouseEnter:mt?Ct:void 0,onMouseMove:mt?Ct:void 0,onMouseLeave:mt?function(){At()}:void 0,onClick:mt?function(Ze){if(wt){var $t=Ie(Ze);$t&&wt($t,Ze)}}:void 0,role:De})},Fde=h.forwardRef(function(e,t){var n=e.isInteractive,r=n===void 0?ge.isInteractive:n,i=e.theme,a=e.renderWrapper,o=ku(e,Pde);return b.jsx(Oo,{isInteractive:r,renderWrapper:a,theme:i,children:b.jsx(Lde,Sr({isInteractive:r},o,{forwardedRef:t}))})}),Bde=["defaultWidth","defaultHeight","onResize","debounceResize"];h.forwardRef(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,a=e.debounceResize,o=ku(e,Bde);return b.jsx(Mo,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:a,children:function(s){var l=s.width,c=s.height;return b.jsx(Fde,Sr({width:l,height:c},o,{ref:t}))}})});function zde(){}var Wde=zde,sg=H3,Ude=Wde,Hde=Wy,Vde=1/0,qde=sg&&1/Hde(new sg([,-0]))[1]==Vde?function(e){return new sg(e)}:Ude,Yde=qde,Gde=my,Kde=IO,Zde=PO,Xde=gy,Qde=Yde,Jde=Wy,efe=200;function tfe(e,t,n){var r=-1,i=Kde,a=e.length,o=!0,s=[],l=s;if(n)o=!1,i=Zde;else if(a>=efe){var c=t?null:Qde(e);if(c)return Jde(c);o=!1,i=Xde,l=new Gde}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 mM=tfe,nfe=mM;function rfe(e){return e&&e.length?nfe(e):[]}var ife=rfe;const lC=on(ife);var afe=zh,ofe=Hy,sfe=1,lfe=2;function cfe(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 afe;if(r)var f=r(c,u,l,e,t,d);if(!(f===void 0?ofe(u,c,sfe|lfe,r,d):f))return!1}}return!0}var ufe=cfe,dfe=ci;function ffe(e){return e===e&&!dfe(e)}var gM=ffe,hfe=gM,pfe=Su;function mfe(e){for(var t=pfe(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,hfe(i)]}return t}var gfe=mfe;function vfe(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var vM=vfe,bfe=ufe,yfe=gfe,xfe=vM;function wfe(e){var t=yfe(e);return t.length==1&&t[0][2]?xfe(t[0][0],t[0][1]):function(n){return n===e||bfe(n,e,t)}}var _fe=wfe,Cfe=Hy,$fe=xO,Sfe=N3,Efe=sy,kfe=gM,Tfe=vM,Ofe=rl,Mfe=1,Afe=2;function Rfe(e,t){return Efe(e)&&kfe(t)?Tfe(Ofe(e),t):function(n){var r=$fe(n,e);return r===void 0&&r===t?Sfe(n,e):Cfe(t,r,Mfe|Afe)}}var jfe=Rfe;function Dfe(e){return function(t){return t==null?void 0:t[e]}}var Nfe=Dfe,Ife=Cu;function Pfe(e){return function(t){return Ife(t,e)}}var Lfe=Pfe,Ffe=Nfe,Bfe=Lfe,zfe=sy,Wfe=rl;function Ufe(e){return zfe(e)?Ffe(Wfe(e)):Bfe(e)}var Hfe=Ufe,Vfe=_fe,qfe=jfe,Yfe=qh,Gfe=ir,Kfe=Hfe;function Zfe(e){return typeof e=="function"?e:e==null?Yfe:typeof e=="object"?Gfe(e)?qfe(e[0],e[1]):Vfe(e):Kfe(e)}var e1=Zfe,Xfe=e1,Qfe=mM;function Jfe(e,t){return e&&e.length?Qfe(e,Xfe(t)):[]}var ehe=Jfe;const Fv=on(ehe);var the=eO,nhe=Su;function rhe(e,t){return e&&the(e,t,nhe)}var ihe=rhe,ahe=Js;function ohe(e,t){return function(n,r){if(n==null)return n;if(!ahe(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 she=ohe,lhe=ihe,che=she,uhe=che(lhe),bM=uhe,dhe=bM,fhe=Js;function hhe(e,t){var n=-1,r=fhe(e)?Array(e.length):[];return dhe(e,function(i,a,o){r[++n]=t(i,a,o)}),r}var phe=hhe;function mhe(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var ghe=mhe,cC=Yh;function vhe(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,a=cC(e),o=t!==void 0,s=t===null,l=t===t,c=cC(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 bhe=vhe,yhe=bhe;function xhe(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var l=yhe(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 whe=xhe,lg=Gh,_he=Cu,Che=e1,$he=phe,She=ghe,Ehe=el,khe=whe,The=qh,Ohe=ir;function Mhe(e,t,n){t.length?t=lg(t,function(a){return Ohe(a)?function(o){return _he(o,a.length===1?a[0]:a)}:a}):t=[The];var r=-1;t=lg(t,Ehe(Che));var i=$he(e,function(a,o,s){var l=lg(t,function(c){return c(a)});return{criteria:l,index:++r,value:a}});return She(i,function(a,o){return khe(a,o,n)})}var Ahe=Mhe,Rhe=P3,jhe=Ahe,Dhe=oy,uC=mO,Nhe=Dhe(function(e,t){if(e==null)return[];var n=t.length;return n>1&&uC(e,t[0],t[1])?t=[]:n>2&&uC(t[0],t[1],t[2])&&(t=[t[0]]),jhe(e,Rhe(t,1),[])}),Ihe=Nhe;const Phe=on(Ihe);var Lhe=zi,Fhe=Er,Bhe="[object Date]";function zhe(e){return Fhe(e)&&Lhe(e)==Bhe}var Whe=zhe,Uhe=Whe,Hhe=el,dC=Hh,fC=dC&&dC.isDate,Vhe=fC?Hhe(fC):Uhe,qhe=Vhe;const Yhe=on(qhe);function Ua(){return Ua=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},Ua.apply(null,arguments)}var qo=[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)}],Ghe={millisecond:[],second:qo.slice(0,1),minute:qo.slice(0,2),hour:qo.slice(0,3),day:qo.slice(0,4),month:qo.slice(0,5),year:qo.slice(0,6)},Khe=function(e){return function(t){return Ghe[e].forEach(function(n){n(t)}),t}},yM=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=Khe(i);return function(l){if(l===void 0)return l;if(n==="native"||l instanceof Date)return s(l);var c=o?R3(n):M3(n);return s(c(l))}},Pa={min:0,max:"auto",stacked:!1,reverse:!1,clamp:!1,nice:!0,round:!1},Zhe=function(e,t,n,r){var i,a,o,s,l=e.min,c=l===void 0?Pa.min:l,u=e.max,d=u===void 0?Pa.max:u,f=e.stacked,p=f===void 0?Pa.stacked:f,g=e.reverse,m=g===void 0?Pa.reverse:g,v=e.clamp,w=v===void 0?Pa.clamp:v,_=e.nice,y=_===void 0?Pa.nice:_,C=e.round,x=C===void 0?Pa.round:C;c==="auto"?i=p===!0?(a=t.minStacked)!=null?a:0:t.min:i=c,d==="auto"?o=p===!0?(s=t.maxStacked)!=null?s:0:t.max:o=d;var $=Ef().range(r==="x"?[0,n]:[n,0]).interpolate(x?DO:Pc).domain(m?[o,i]:[i,o]).clamp(w);return y===!0?$.nice():typeof y=="number"&&$.nice(y),Xhe($,p)},Xhe=function(e,t){t===void 0&&(t=!1);var n=e;return n.type="linear",n.stacked=t,n},Qhe=function(e,t,n){var r=Fie().range([0,n]).domain(t.all);return r.type="point",r},Jhe={round:!1},epe=function(e,t,n,r){var i=e.round,a=i===void 0?Jhe.round:i,o=Sy().range(r==="x"?[0,n]:[n,0]).domain(t.all).round(a);return tpe(o)},tpe=function(e){var t=e;return t.type="band",t},Yo={format:"native",precision:"millisecond",min:"auto",max:"auto",useUTC:!0,nice:!1},npe=function(e,t,n){var r,i,a=e.format,o=a===void 0?Yo.format:a,s=e.precision,l=s===void 0?Yo.precision:s,c=e.min,u=c===void 0?Yo.min:c,d=e.max,f=d===void 0?Yo.max:d,p=e.useUTC,g=p===void 0?Yo.useUTC:p,m=e.nice,v=m===void 0?Yo.nice:m,w=yM({format:o,precision:l,useUTC:g});r=u==="auto"?w(t.min):o!=="native"?w(u):u,i=f==="auto"?w(t.max):o!=="native"?w(f):f;var _=g?Moe():Ooe();_.range([0,n]),r&&i&&_.domain([r,i]),v===!0?_.nice():typeof v!="object"&&typeof v!="number"||_.nice(v);var y=_;return y.type="time",y.useUTC=g,y},Go={base:10,min:"auto",max:"auto",round:!1,reverse:!1,nice:!0},rpe=function(e,t,n,r){var i,a=e.base,o=a===void 0?Go.base:a,s=e.min,l=s===void 0?Go.min:s,c=e.max,u=c===void 0?Go.max:c,d=e.round,f=d===void 0?Go.round:d,p=e.reverse,g=p===void 0?Go.reverse:p,m=e.nice,v=m===void 0?Go.nice:m;if(t.all.some(function(E){return E===0}))throw new Error("a log scale domain must not include or cross zero");var w,_,y=!1;if(t.all.filter(function(E){return E!=null}).forEach(function(E){y||(i===void 0?i=Math.sign(E):Math.sign(E)!==i&&(y=!0))}),y)throw new Error("a log scale domain must be strictly-positive or strictly-negative");w=l==="auto"?t.min:l,_=u==="auto"?t.max:u;var C=a3().base(o),x=r==="x"?[0,n]:[n,0];f===!0?C.rangeRound(x):C.range(x),g===!0?C.domain([_,w]):C.domain([w,_]),v===!0?C.nice():typeof v=="number"&&C.nice(v);var $=C;return $.type="log",$},Ko={constant:1,min:"auto",max:"auto",round:!1,reverse:!1,nice:!0},ipe=function(e,t,n,r){var i,a,o=e.constant,s=o===void 0?Ko.constant:o,l=e.min,c=l===void 0?Ko.min:l,u=e.max,d=u===void 0?Ko.max:u,f=e.round,p=f===void 0?Ko.round:f,g=e.reverse,m=g===void 0?Ko.reverse:g,v=e.nice,w=v===void 0?Ko.nice:v;i=c==="auto"?t.min:c,a=d==="auto"?t.max:d;var _=o3().constant(s),y=r==="x"?[0,n]:[n,0];p===!0?_.rangeRound(y):_.range(y),m===!0?_.domain([a,i]):_.domain([i,a]),w===!0?_.nice():typeof w=="number"&&_.nice(w);var C=_;return C.type="symlog",C},ape=function(e){return e==="x"?"y":"x"},ope=function(e,t){return e===t},spe=function(e,t){return e.getTime()===t.getTime()};function Uc(e,t,n,r){switch(e.type){case"linear":return Zhe(e,t,n,r);case"point":return Qhe(0,t,n);case"band":return epe(e,t,n,r);case"time":return npe(e,t,n);case"log":return rpe(e,t,n,r);case"symlog":return ipe(e,t,n,r);default:throw new Error("invalid scale spec")}}var hC=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},lpe=function(e,t,n,r,i){var a=e.map(function(u){return function(d){return Ua({},d,{data:d.data.map(function(f){return{data:Ua({},f)}})})}(u)}),o=cpe(a,t,n);"stacked"in t&&t.stacked===!0&&upe(o,a),"stacked"in n&&n.stacked===!0&&dpe(o,a);var s=Uc(t,o.x,r,"x"),l=Uc(n,o.y,i,"y"),c=a.map(function(u){return Ua({},u,{data:u.data.map(function(d){return Ua({},d,{position:{x:hC(d,"x",s),y:hC(d,"y",l)}})})})});return Ua({},o,{series:c,xScale:s,yScale:l})},cpe=function(e,t,n){return{x:pC(e,"x",t),y:pC(e,"y",n)}},pC=function(e,t,n,r){var i={},a=i.getValue,o=a===void 0?function(g){return g.data[t]}:a,s=i.setValue,l=s===void 0?function(g,m){g.data[t]=m}:s;if(n.type==="linear")e.forEach(function(g){g.data.forEach(function(m){var v=o(m);v&&l(m,parseFloat(String(v)))})});else if(n.type==="time"&&n.format!=="native"){var c=yM(n);e.forEach(function(g){g.data.forEach(function(m){var v=o(m);v&&l(m,c(v))})})}var u=[];switch(e.forEach(function(g){g.data.forEach(function(m){u.push(o(m))})}),n.type){case"linear":var d=Phe(lC(u).filter(function(g){return g!==null}),function(g){return g});return{all:d,min:Math.min.apply(Math,d),max:Math.max.apply(Math,d)};case"time":var f=Fv(u,function(g){return g.getTime()}).slice(0).sort(function(g,m){return m.getTime()-g.getTime()}).reverse();return{all:f,min:f[0],max:Ae(f)};default:var p=lC(u);return{all:p,min:p[0],max:Ae(p)}}},xM=function(e,t,n){var r=ape(e),i=[];t[r].all.forEach(function(a){var o=Yhe(a)?spe:ope,s=[];n.forEach(function(l){var c=l.data.find(function(p){return o(p.data[r],a)}),u=null,d=null;if(c!==void 0){if((u=c.data[e])!==null){var f=Ae(s);f===void 0?d=u:f!==null&&(d=f+u)}c.data[e==="x"?"xStacked":"yStacked"]=d}s.push(d),d!==null&&i.push(d)})}),t[e].minStacked=Math.min.apply(Math,i),t[e].maxStacked=Math.max.apply(Math,i)},upe=function(e,t){return xM("x",e,t)},dpe=function(e,t){return xM("y",e,t)},wM=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}},_M={millisecond:[Bc,Bc],second:[Rv,Rv],minute:[f3,y3],hour:[h3,x3],day:[pn(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)}),pn(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:[Mf,Af],sunday:[Mf,Af],monday:[zc,Wc],tuesday:[p3,w3],wednesday:[m3,_3],thursday:[go,vo],friday:[g3,C3],saturday:[v3,$3],month:[b3,S3],year:[xa,wa]},fpe=Object.keys(_M),hpe=new RegExp("^every\\s*(\\d+)?\\s*("+fpe.join("|")+")s?$","i"),CM=function(e,t){if(Array.isArray(t))return t;if(typeof t=="string"&&"useUTC"in e){var n=t.match(hpe);if(n){var r=n[1],i=n[2],a=_M[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(p=t)=="number"&&isFinite(p)&&Math.floor(p)===p)return e.ticks(t)}var p;return e.domain()};function Pr(){return Pr=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},Pr.apply(null,arguments)}var $M=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=CM(r,a),p=Z3[d],g="bandwidth"in r?wM(r):r,m={lineX:0,lineY:0},v={textX:0,textY:0},w=typeof document=="object"&&document.dir==="rtl",_=p.align.center,y=p.baseline.center;return n==="x"?(t=function(C){var x;return{x:(x=g(C))!=null?x:0,y:0}},m.lineY=o*(i==="after"?1:-1),v.textY=(o+s)*(i==="after"?1:-1),y=i==="after"?p.baseline.top:p.baseline.bottom,l===0?_=p.align.center:i==="after"&&l<0||i==="before"&&l>0?(_=p.align[w?"left":"right"],y=p.baseline.center):(i==="after"&&l>0||i==="before"&&l<0)&&(_=p.align[w?"right":"left"],y=p.baseline.center)):(t=function(C){var x;return{x:0,y:(x=g(C))!=null?x:0}},m.lineX=o*(i==="after"?1:-1),v.textX=(o+s)*(i==="after"?1:-1),_=i==="after"?p.align.left:p.align.right),{ticks:f.map(function(C){var x=typeof C=="string"?function($){var E=String($).length;return c&&c>0&&E>c?""+String($).slice(0,c).concat("..."):""+$}(C):C;return Pr({key:C instanceof Date?""+C.valueOf():""+C,value:x},t(C),m,v)}),textAlign:_,textBaseline:y}},SM=function(e,t){if(e===void 0||typeof e=="function")return e;if(t.type==="time"){var n=ip(e);return function(r){return n(r instanceof Date?r:new Date(r))}}return $u(e)},Bv=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)||CM(i,o)),l="bandwidth"in i?wM(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},ppe=h.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=h.useMemo(function(){var p={opacity:u.opacity};return o?{style:Pr({},p,{cursor:"pointer"}),onClick:function(g){return o(g,d)}}:{style:p}},[u.opacity,o,d]);return b.jsxs(qt.g,Pr({transform:u.transform},f,{children:[b.jsx("line",{x1:0,x2:i,y1:0,y2:a,style:c.line}),b.jsx(ol,{dominantBaseline:s,textAnchor:l,transform:u.textTransform,style:c.text,children:""+d})]}))}),Gn={tickSize:5,tickPadding:5,tickRotation:0,legendPosition:"middle",legendOffset:0},mpe=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?Gn.tickSize:u,f=e.tickPadding,p=f===void 0?Gn.tickPadding:f,g=e.tickRotation,m=g===void 0?Gn.tickRotation:g,v=e.format,w=e.renderTick,_=w===void 0?ppe:w,y=e.truncateTickAt,C=e.legend,x=e.legendPosition,$=x===void 0?Gn.legendPosition:x,E=e.legendOffset,O=E===void 0?Gn.legendOffset:E,k=e.style,j=e.onClick,S=e.ariaHidden,T=Lt(),R=hne(T.axis,k),N=h.useMemo(function(){return SM(v,n)},[v,n]),D=$M({axis:t,scale:n,ticksPosition:l,tickValues:c,tickSize:d,tickPadding:p,tickRotation:m,truncateTickAt:y}),M=D.ticks,I=D.textAlign,z=D.textBaseline,U=null;if(C!==void 0){var P,W=0,Y=0,X=0;t==="y"?(X=-90,W=O,$==="start"?(P="start",Y=s):$==="middle"?(P="middle",Y=s/2):$==="end"&&(P="end")):(Y=O,$==="start"?P="start":$==="middle"?(P="middle",W=s/2):$==="end"&&(P="end",W=s)),U=b.jsx(b.Fragment,{children:b.jsx(ol,{transform:"translate("+W+", "+Y+") rotate("+X+")",textAnchor:P,style:Pr({},R.legend.text,{dominantBaseline:"central"}),children:C})})}var K=Vn(),Z=K.animate,ee=K.config,J=si({transform:"translate("+i+","+o+")",lineX2:t==="x"?s:0,lineY2:t==="x"?0:s,config:ee,immediate:!Z}),B=h.useCallback(function(H){return{opacity:1,transform:"translate("+H.x+","+H.y+")",textTransform:"translate("+H.textX+","+H.textY+") rotate("+m+")"}},[m]),L=h.useCallback(function(H){return{opacity:0,transform:"translate("+H.x+","+H.y+")",textTransform:"translate("+H.textX+","+H.textY+") rotate("+m+")"}},[m]),F=_o(M,{keys:function(H){return H.key},initial:B,from:L,enter:B,update:B,leave:{opacity:0},config:ee,immediate:!Z});return b.jsxs(qt.g,{transform:J.transform,"aria-hidden":S,children:[F(function(H,A,Q,G){return ie.createElement(_,Pr({tickIndex:G,format:N,rotate:m,textBaseline:z,textAnchor:I,truncateTickAt:y,animatedProps:H,theme:R.ticks},A,j?{onClick:j}:{}))}),b.jsx(qt.line,{style:R.domain.line,x1:0,x2:J.lineX2,y1:0,y2:J.lineY2}),U]})},gpe=h.memo(mpe),EM=["top","right","bottom","left"],kM=h.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 b.jsx(b.Fragment,{children:EM.map(function(o){var s=a[o];if(!s)return null;var l=o==="top"||o==="bottom";return b.jsx(gpe,Pr({},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)})})}),vpe=h.memo(function(e){var t=e.animatedProps,n=Lt();return b.jsx(qt.line,Pr({},t,n.grid.line))}),mC=h.memo(function(e){var t=e.lines,n=Vn(),r=n.animate,i=n.config,a=_o(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 b.jsx("g",{children:a(function(o,s){return h.createElement(vpe,Pr({},s,{key:s.key,animatedProps:o}))})})}),TM=h.memo(function(e){var t=e.width,n=e.height,r=e.xScale,i=e.yScale,a=e.xValues,o=e.yValues,s=h.useMemo(function(){return!!r&&Bv({width:t,height:n,scale:r,axis:"x",values:a})},[r,a,t,n]),l=h.useMemo(function(){return!!i&&Bv({width:t,height:n,scale:i,axis:"y",values:o})},[n,t,i,o]);return b.jsxs(b.Fragment,{children:[s&&b.jsx(mC,{lines:s}),l&&b.jsx(mC,{lines:l})]})}),bpe=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,p=t.tickSize,g=p===void 0?Gn.tickSize:p,m=t.tickPadding,v=m===void 0?Gn.tickPadding:m,w=t.tickRotation,_=w===void 0?Gn.tickRotation:w,y=t.format,C=t.legend,x=t.legendPosition,$=x===void 0?Gn.legendPosition:x,E=t.legendOffset,O=E===void 0?Gn.legendOffset:E,k=t.theme,j=t.style,S=$M({axis:i,scale:a,ticksPosition:d,tickValues:f,tickSize:g,tickPadding:v,tickRotation:_,engine:"canvas"}),T=S.ticks,R=S.textAlign,N=S.textBaseline;e.save(),e.translate(s,c);var D=_O(k.axis,j);e.textAlign=R,e.textBaseline=N,bo(e,D.ticks.text);var M=(n=D.domain.line.strokeWidth)!=null?n:0;typeof M!="string"&&M>0&&(e.lineWidth=M,e.lineCap="square",D.domain.line.stroke&&(e.strokeStyle=D.domain.line.stroke),e.beginPath(),e.moveTo(0,0),e.lineTo(i==="x"?u:0,i==="x"?0:u),e.stroke());var I=typeof y=="function"?y:function(K){return""+K},z=(r=D.ticks.line.strokeWidth)!=null?r:0,U=typeof z!="string"&&z>0;if(T.forEach(function(K){U&&(e.lineWidth=z,e.lineCap="square",D.ticks.line.stroke&&(e.strokeStyle=D.ticks.line.stroke),e.beginPath(),e.moveTo(K.x,K.y),e.lineTo(K.x+K.lineX,K.y+K.lineY),e.stroke());var Z=I(K.value);e.save(),e.translate(K.x+K.textX,K.y+K.textY),e.rotate(yr(_)),yo(e,D.ticks.text,""+Z),e.fillText(""+Z,0,0),e.restore()}),C!==void 0){var P=0,W=0,Y=0,X="center";i==="y"?(Y=-90,P=O,$==="start"?(X="start",W=u):$==="middle"?(X="center",W=u/2):$==="end"&&(X="end")):(W=O,$==="start"?X="start":$==="middle"?(X="center",P=u/2):$==="end"&&(X="end",P=u)),e.translate(P,W),e.rotate(yr(Y)),bo(e,D.legend.text),D.legend.text.fill&&(e.fillStyle=D.legend.text.fill),e.textAlign=X,e.textBaseline="middle",yo(e,D.legend.text,C)}e.restore()},OM=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};EM.forEach(function(f){var p=d[f];if(!p)return null;var g=f==="top"||f==="bottom",m=f==="top"||f==="left"?"before":"after",v=g?n:r,w=SM(p.format,v);bpe(e,Pr({},p,{axis:g?"x":"y",x:f==="right"?i:0,y:f==="bottom"?a:0,scale:v,format:w,length:g?i:a,ticksPosition:m,theme:u}))})},jf=function(e,t){var n=t.width,r=t.height,i=t.scale,a=t.axis,o=t.values;Bv({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()})},ype=yO,xpe=0;function wpe(e){var t=++xpe;return ype(e)+t}var _pe=wpe;const Cpe=on(_pe),Oi=11102230246251565e-32,On=134217729,$pe=(3+8*Oi)*Oi;function cg(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 p=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[p++]=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[p++]=s);for(;d<e;)o=a+c,l=o-a,s=a-(o-l)+(c-l),c=t[++d],a=o,s!==0&&(i[p++]=s);for(;f<n;)o=a+u,l=o-a,s=a-(o-l)+(u-l),u=r[++f],a=o,s!==0&&(i[p++]=s);return(a!==0||p===0)&&(i[p++]=a),p}function Spe(e,t){let n=t[0];for(let r=1;r<e;r++)n+=t[r];return n}function Tu(e){return new Float64Array(e)}const Epe=(3+16*Oi)*Oi,kpe=(2+12*Oi)*Oi,Tpe=(9+64*Oi)*Oi*Oi,Zo=Tu(4),gC=Tu(8),vC=Tu(12),bC=Tu(16),Ln=Tu(4);function Ope(e,t,n,r,i,a,o){let s,l,c,u,d,f,p,g,m,v,w,_,y,C,x,$,E,O;const k=e-i,j=n-i,S=t-a,T=r-a;C=k*T,f=On*k,p=f-(f-k),g=k-p,f=On*T,m=f-(f-T),v=T-m,x=g*v-(C-p*m-g*m-p*v),$=S*j,f=On*S,p=f-(f-S),g=S-p,f=On*j,m=f-(f-j),v=j-m,E=g*v-($-p*m-g*m-p*v),w=x-E,d=x-w,Zo[0]=x-(w+d)+(d-E),_=C+w,d=_-C,y=C-(_-d)+(w-d),w=y-$,d=y-w,Zo[1]=y-(w+d)+(d-$),O=_+w,d=O-_,Zo[2]=_-(O-d)+(w-d),Zo[3]=O;let R=Spe(4,Zo),N=kpe*o;if(R>=N||-R>=N||(d=e-k,s=e-(k+d)+(d-i),d=n-j,c=n-(j+d)+(d-i),d=t-S,l=t-(S+d)+(d-a),d=r-T,u=r-(T+d)+(d-a),s===0&&l===0&&c===0&&u===0)||(N=Tpe*o+$pe*Math.abs(R),R+=k*u+T*s-(S*c+j*l),R>=N||-R>=N))return R;C=s*T,f=On*s,p=f-(f-s),g=s-p,f=On*T,m=f-(f-T),v=T-m,x=g*v-(C-p*m-g*m-p*v),$=l*j,f=On*l,p=f-(f-l),g=l-p,f=On*j,m=f-(f-j),v=j-m,E=g*v-($-p*m-g*m-p*v),w=x-E,d=x-w,Ln[0]=x-(w+d)+(d-E),_=C+w,d=_-C,y=C-(_-d)+(w-d),w=y-$,d=y-w,Ln[1]=y-(w+d)+(d-$),O=_+w,d=O-_,Ln[2]=_-(O-d)+(w-d),Ln[3]=O;const D=cg(4,Zo,4,Ln,gC);C=k*u,f=On*k,p=f-(f-k),g=k-p,f=On*u,m=f-(f-u),v=u-m,x=g*v-(C-p*m-g*m-p*v),$=S*c,f=On*S,p=f-(f-S),g=S-p,f=On*c,m=f-(f-c),v=c-m,E=g*v-($-p*m-g*m-p*v),w=x-E,d=x-w,Ln[0]=x-(w+d)+(d-E),_=C+w,d=_-C,y=C-(_-d)+(w-d),w=y-$,d=y-w,Ln[1]=y-(w+d)+(d-$),O=_+w,d=O-_,Ln[2]=_-(O-d)+(w-d),Ln[3]=O;const M=cg(D,gC,4,Ln,vC);C=s*u,f=On*s,p=f-(f-s),g=s-p,f=On*u,m=f-(f-u),v=u-m,x=g*v-(C-p*m-g*m-p*v),$=l*c,f=On*l,p=f-(f-l),g=l-p,f=On*c,m=f-(f-c),v=c-m,E=g*v-($-p*m-g*m-p*v),w=x-E,d=x-w,Ln[0]=x-(w+d)+(d-E),_=C+w,d=_-C,y=C-(_-d)+(w-d),w=y-$,d=y-w,Ln[1]=y-(w+d)+(d-$),O=_+w,d=O-_,Ln[2]=_-(O-d)+(w-d),Ln[3]=O;const I=cg(M,vC,4,Ln,bC);return bC[I-1]}function hd(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)>=Epe*c?l:-Ope(e,t,n,r,i,a,c)}const yC=Math.pow(2,-52),pd=new Uint32Array(512);class Df{static from(t,n=Dpe,r=Npe){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 Df(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 j=t[2*k],S=t[2*k+1];j<s&&(s=j),S<l&&(l=S),j>c&&(c=j),S>u&&(u=S),this._ids[k]=k}const d=(s+c)/2,f=(l+u)/2;let p,g,m;for(let k=0,j=1/0;k<o;k++){const S=ug(d,f,t[2*k],t[2*k+1]);S<j&&(p=k,j=S)}const v=t[2*p],w=t[2*p+1];for(let k=0,j=1/0;k<o;k++){if(k===p)continue;const S=ug(v,w,t[2*k],t[2*k+1]);S<j&&S>0&&(g=k,j=S)}let _=t[2*g],y=t[2*g+1],C=1/0;for(let k=0;k<o;k++){if(k===p||k===g)continue;const j=Rpe(v,w,_,y,t[2*k],t[2*k+1]);j<C&&(m=k,C=j)}let x=t[2*m],$=t[2*m+1];if(C===1/0){for(let S=0;S<o;S++)this._dists[S]=t[2*S]-t[0]||t[2*S+1]-t[1];is(this._ids,this._dists,0,o-1);const k=new Uint32Array(o);let j=0;for(let S=0,T=-1/0;S<o;S++){const R=this._ids[S],N=this._dists[R];N>T&&(k[j++]=R,T=N)}this.hull=k.subarray(0,j),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(hd(v,w,_,y,x,$)<0){const k=g,j=_,S=y;g=m,_=x,y=$,m=k,x=j,$=S}const E=jpe(v,w,_,y,x,$);this._cx=E.x,this._cy=E.y;for(let k=0;k<o;k++)this._dists[k]=ug(t[2*k],t[2*k+1],E.x,E.y);is(this._ids,this._dists,0,o-1),this._hullStart=p;let O=3;r[p]=n[m]=g,r[g]=n[p]=m,r[m]=n[g]=p,i[p]=0,i[g]=1,i[m]=2,a.fill(-1),a[this._hashKey(v,w)]=p,a[this._hashKey(_,y)]=g,a[this._hashKey(x,$)]=m,this.trianglesLen=0,this._addTriangle(p,g,m,-1,-1,-1);for(let k=0,j,S;k<this._ids.length;k++){const T=this._ids[k],R=t[2*T],N=t[2*T+1];if(k>0&&Math.abs(R-j)<=yC&&Math.abs(N-S)<=yC||(j=R,S=N,T===p||T===g||T===m))continue;let D=0;for(let P=0,W=this._hashKey(R,N);P<this._hashSize&&(D=a[(W+P)%this._hashSize],!(D!==-1&&D!==r[D]));P++);D=n[D];let M=D,I;for(;I=r[M],hd(R,N,t[2*M],t[2*M+1],t[2*I],t[2*I+1])>=0;)if(M=I,M===D){M=-1;break}if(M===-1)continue;let z=this._addTriangle(M,T,r[M],-1,-1,i[M]);i[T]=this._legalize(z+2),i[M]=z,O++;let U=r[M];for(;I=r[U],hd(R,N,t[2*U],t[2*U+1],t[2*I],t[2*I+1])<0;)z=this._addTriangle(U,T,I,i[T],-1,i[U]),i[T]=this._legalize(z+2),r[U]=U,O--,U=I;if(M===D)for(;I=n[M],hd(R,N,t[2*I],t[2*I+1],t[2*M],t[2*M+1])<0;)z=this._addTriangle(I,T,M,-1,i[M],i[I]),this._legalize(z+2),i[I]=z,r[M]=M,O--,M=I;this._hullStart=n[T]=M,r[M]=n[U]=T,r[T]=U,a[this._hashKey(R,N)]=T,a[this._hashKey(t[2*M],t[2*M+1])]=M}this.hull=new Uint32Array(O);for(let k=0,j=this._hullStart;k<O;k++)this.hull[k]=j,j=r[j];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(t,n){return Math.floor(Mpe(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=pd[--a];continue}const c=s-s%3,u=l+(t+1)%3,d=c+(s+2)%3,f=n[o],p=n[t],g=n[u],m=n[d];if(Ape(i[2*f],i[2*f+1],i[2*p],i[2*p+1],i[2*g],i[2*g+1],i[2*m],i[2*m+1])){n[t]=m,n[s]=f;const w=r[d];if(w===-1){let y=this._hullStart;do{if(this._hullTri[y]===d){this._hullTri[y]=t;break}y=this._hullPrev[y]}while(y!==this._hullStart)}this._link(t,w),this._link(s,r[o]),this._link(o,d);const _=c+(s+1)%3;a<pd.length&&(pd[a++]=_)}else{if(a===0)break;t=pd[--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 Mpe(e,t){const n=e/(Math.abs(e)+Math.abs(t));return(t>0?3-n:1+n)/4}function ug(e,t,n,r){const i=e-n,a=t-r;return i*i+a*a}function Ape(e,t,n,r,i,a,o,s){const l=e-o,c=t-s,u=n-o,d=r-s,f=i-o,p=a-s,g=l*l+c*c,m=u*u+d*d,v=f*f+p*p;return l*(d*v-m*p)-c*(u*v-m*f)+g*(u*p-d*f)<0}function Rpe(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),p=(c*u-s*d)*f,g=(o*d-l*u)*f;return p*p+g*g}function jpe(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),p=e+(c*u-s*d)*f,g=t+(o*d-l*u)*f;return{x:p,y:g}}function is(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;Dl(e,i,a),t[e[n]]>t[e[r]]&&Dl(e,n,r),t[e[a]]>t[e[r]]&&Dl(e,a,r),t[e[n]]>t[e[a]]&&Dl(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;Dl(e,a,o)}e[n+1]=e[o],e[o]=s,r-a+1>=o-n?(is(e,t,a,r),is(e,t,n,o-1)):(is(e,t,n,o-1),is(e,t,a,r))}}function Dl(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function Dpe(e){return e[0]}function Npe(e){return e[1]}const xC=1e-6;class Za{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)>xC||Math.abs(this._y1-a)>xC)&&(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 zv{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 Ipe{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,v=0,w=r.length,_,y;m<w;m+=3,v+=2){const C=r[m]*2,x=r[m+1]*2,$=r[m+2]*2,E=t[C],O=t[C+1],k=t[x],j=t[x+1],S=t[$],T=t[$+1],R=k-E,N=j-O,D=S-E,M=T-O,I=(R*M-N*D)*2;if(Math.abs(I)<1e-9){if(a===void 0){a=o=0;for(const U of n)a+=t[U*2],o+=t[U*2+1];a/=n.length,o/=n.length}const z=1e9*Math.sign((a-E)*M-(o-O)*D);_=(E+S)/2-z*M,y=(O+T)/2+z*D}else{const z=1/I,U=R*R+N*N,P=D*D+M*M;_=E+(M*U-N*P)*z,y=O+(R*P-D*U)*z}s[v]=_,s[v+1]=y}let l=n[n.length-1],c,u=l*4,d,f=t[2*l],p,g=t[2*l+1];i.fill(0);for(let m=0;m<n.length;++m)l=n[m],c=u,d=f,p=g,u=l*4,f=t[2*l],g=t[2*l+1],i[c+2]=i[u]=p-g,i[c+3]=i[u+1]=f-d}render(t){const n=t==null?t=new Za: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 p=Math.floor(u/3)*2,g=Math.floor(f/3)*2,m=o[p],v=o[p+1],w=o[g],_=o[g+1];this._renderSegment(m,v,w,_,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],p=o[d+1],g=l*4,m=this._project(f,p,s[g+2],s[g+3]);m&&this._renderSegment(f,p,m[0],m[1],t)}return n&&n.value()}renderBounds(t){const n=t==null?t=new Za: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 Za: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 zv;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 p=0;p<r;p+=2)if(a=s,o=l,s=n[p],l=n[p+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 g,m,v,w,_;if(c===0){if((g=this._clipSegment(a,o,s,l,c,u))===null)continue;[m,v,w,_]=g}else{if((g=this._clipSegment(s,l,a,o,u,c))===null)continue;[w,_,m,v]=g,d=f,f=this._edgecode(m,v),d&&f&&this._edge(t,d,f,i,i.length),i?i.push(m,v):i=[m,v]}d=f,f=this._edgecode(w,_),d&&f&&this._edge(t,d,f,i,i.length),i?i.push(w,_):i=[w,_]}if(i)d=f,f=this._edgecode(i[0],i[1]),d&&f&&this._edge(t,d,f,i,i.length);else if(this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return i}_clipSegment(t,n,r,i,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 Ppe=2*Math.PI,Xo=Math.pow;function Lpe(e){return e[0]}function Fpe(e){return e[1]}function Bpe(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 zpe(e,t,n){return[e+Math.sin(e+t)*n,t+Math.cos(e-t)*n]}class Np{static from(t,n=Lpe,r=Fpe,i){return new Np("length"in t?Wpe(t,n,r,i):Float64Array.from(Upe(t,n,r,i)))}constructor(t){this._delaunator=new Df(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const t=this._delaunator,n=this.points;if(t.hull&&t.hull.length>2&&Bpe(t)){this.collinear=Int32Array.from({length:n.length/2},(f,p)=>p).sort((f,p)=>n[2*f]-n[2*p]||n[2*f+1]-n[2*p+1]);const 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,p=n.length/2;f<p;++f){const g=zpe(n[2*f],n[2*f+1],d);n[2*f]=g[0],n[2*f+1]=g[1]}this._delaunator=new Df(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 Ipe(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=Xo(n-c[t*2],2)+Xo(r-c[t*2+1],2);const f=i[t];let p=f;do{let g=l[p];const m=Xo(n-c[g*2],2)+Xo(r-c[g*2+1],2);if(m<d&&(d=m,u=g),p=p%3===2?p-2:p+1,l[p]!==t)break;if(p=s[p],p===-1){if(p=a[(o[t]+1)%a.length],p!==g&&Xo(n-c[p*2],2)+Xo(r-c[p*2+1],2)<d)return p;break}}while(p!==f);return u}render(t){const n=t==null?t=new Za: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 Za: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,Ppe)}return r&&r.value()}renderHull(t){const n=t==null?t=new Za: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 zv;return this.renderHull(t),t.value()}renderTriangle(t,n){const r=n==null?n=new Za: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 zv;return this.renderTriangle(t,n),n.value()}}function Wpe(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*Upe(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 Nf(){return Nf=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},Nf.apply(null,arguments)}function MM(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 or={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"},t1=function(e){return[e.x,e.y]},Ou=eM,AM="cursor",RM="top",Hpe=function(e){var t=e.points,n=e.getNodePosition,r=n===void 0?t1:n,i=e.margin,a=i===void 0?Ou:i;return t.map(function(o){var s=r(o),l=s[0],c=s[1];return[l+a.left,c+a.top]})},Vpe=function(e){var t=e.points,n=e.width,r=e.height,i=e.margin,a=i===void 0?Ou:i,o=e.debug,s=Np.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}},jM=function(e){var t=e.points,n=e.getNodePosition,r=n===void 0?t1:n,i=e.width,a=e.height,o=e.margin,s=o===void 0?Ou:o,l=e.debug;return h.useMemo(function(){return Vpe({points:Hpe({points:t,margin:s,getNodePosition:r}),width:i,height:a,margin:s,debug:l})},[r,t,i,a,s,l])},qpe=function(e){var t=e.data,n=e.width,r=e.height,i=e.xDomain,a=e.yDomain,o=h.useMemo(function(){return Ef().domain(i).range([0,n])},[i,n]),s=h.useMemo(function(){return Ef().domain(a).range([0,r])},[a,r]),l=h.useMemo(function(){return t.map(function(c){return{x:o(c.x),y:s(c.y),data:c}})},[t,o,s]);return h.useMemo(function(){var c=Np.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])},Ype=function(e){var t=e.points,n=e.delaunay,r=e.voronoi;return h.useMemo(function(){return{points:t,delaunay:n,voronoi:r}},[t,n,r])},Gpe=function(e){var t=e.elementRef,n=e.nodes,r=e.getNodePosition,i=r===void 0?t1:r,a=e.delaunay,o=e.setCurrent,s=e.margin,l=s===void 0?Ou:s,c=e.detectionRadius,u=c===void 0?1/0:c,d=e.isInteractive,f=d===void 0||d,p=e.onMouseEnter,g=e.onMouseMove,m=e.onMouseLeave,v=e.onMouseDown,w=e.onMouseUp,_=e.onClick,y=e.onDoubleClick,C=e.onTouchStart,x=e.onTouchMove,$=e.onTouchEnd,E=e.enableTouchCrosshair,O=E!==void 0&&E,k=e.tooltip,j=e.tooltipPosition,S=j===void 0?AM:j,T=e.tooltipAnchor,R=T===void 0?RM:T,N=h.useState(null),D=N[0],M=N[1],I=h.useRef(null);h.useEffect(function(){I.current=D},[I,D]);var z=h.useCallback(function(G){if(!t.current||n.length===0)return null;var q=fs(t.current,G),le=q[0],ne=q[1],re=a.find(le,ne),se=re!==void 0?n[re]:null;if(se&&u!==1/0){var fe=i(se),_e=fe[0],ye=fe[1];nM(le,ne,_e+l.left,ye+l.top)>u&&(re=null,se=null)}return re===null||se===null?null:[re,se]},[t,a,n,i,l,u]),U=Wi(),P=U.showTooltipAt,W=U.showTooltipFromEvent,Y=U.hideTooltip,X=h.useMemo(function(){if(k)return S==="cursor"?function(G,q){W(k(G),q,R)}:function(G){var q=i(G),le=q[0],ne=q[1];P(k(G),[le+l.left,ne+l.top],R)}},[P,W,k,S,R,i,l]),K=h.useCallback(function(G){var q=z(G);if(M(q),o==null||o(q?q[1]:null),q){var le=q[1];X==null||X(le,G),p==null||p(q[1],G)}},[z,M,o,X,p]),Z=h.useCallback(function(G){var q=z(G);if(M(q),q){var le=q[0],ne=q[1];if(o==null||o(ne),X==null||X(ne,G),I.current){var re=I.current,se=re[0],fe=re[1];le!==se?m==null||m(fe,G):g==null||g(ne,G)}else p==null||p(ne,G)}else o==null||o(null),Y==null||Y(),I.current&&(m==null||m(I.current[1],G))},[z,M,o,I,p,g,m,X,Y]),ee=h.useCallback(function(G){M(null),o==null||o(null),Y(),m&&I.current&&m(I.current[1],G)},[M,o,I,Y,m]),J=h.useCallback(function(G){var q=z(G);M(q),q&&(v==null||v(q[1],G))},[z,M,v]),B=h.useCallback(function(G){var q=z(G);M(q),q&&(w==null||w(q[1],G))},[z,M,w]),L=h.useCallback(function(G){var q=z(G);M(q),q&&(_==null||_(q[1],G))},[z,M,_]),F=h.useCallback(function(G){var q=z(G);M(q),q&&(y==null||y(q[1],G))},[z,M,y]),H=h.useCallback(function(G){var q=z(G);O&&(M(q),o==null||o(q?q[1]:null)),q&&(C==null||C(q[1],G))},[z,M,o,O,C]),A=h.useCallback(function(G){var q=z(G);O&&(M(q),o==null||o(q?q[1]:null)),q&&(x==null||x(q[1],G))},[z,M,o,O,x]),Q=h.useCallback(function(G){O&&(M(null),o==null||o(null)),$&&I.current&&$(I.current[1],G)},[O,M,o,$,I]);return{current:D,handleMouseEnter:f?K:void 0,handleMouseMove:f?Z:void 0,handleMouseLeave:f?ee:void 0,handleMouseDown:f?J:void 0,handleMouseUp:f?B:void 0,handleClick:f?L:void 0,handleDoubleClick:f?F:void 0,handleTouchStart:f?H:void 0,handleTouchMove:f?A:void 0,handleTouchEnd:f?Q:void 0}},Kpe=["theme"],Zpe=function(e){var t=e.data,n=e.width,r=e.height,i=e.margin,a=e.layers,o=a===void 0?or.layers:a,s=e.xDomain,l=s===void 0?or.xDomain:s,c=e.yDomain,u=c===void 0?or.yDomain:c,d=e.enableLinks,f=d===void 0?or.enableLinks:d,p=e.linkLineWidth,g=p===void 0?or.linkLineWidth:p,m=e.linkLineColor,v=m===void 0?or.linkLineColor:m,w=e.enableCells,_=w===void 0?or.enableCells:w,y=e.cellLineWidth,C=y===void 0?or.cellLineWidth:y,x=e.cellLineColor,$=x===void 0?or.cellLineColor:x,E=e.enablePoints,O=E===void 0?or.enableCells:E,k=e.pointSize,j=k===void 0?or.pointSize:k,S=e.pointColor,T=S===void 0?or.pointColor:S,R=e.role,N=R===void 0?or.role:R,D=e.forwardedRef,M=Ao(n,r,i),I=M.outerWidth,z=M.outerHeight,U=M.margin,P=M.innerWidth,W=M.innerHeight,Y=qpe({data:t,width:P,height:W,xDomain:l,yDomain:u}),X=Y.points,K=Y.delaunay,Z=Y.voronoi,ee={links:null,cells:null,points:null,bounds:null};f&&o.includes("links")&&(ee.links=b.jsx("path",{stroke:v,strokeWidth:g,fill:"none",d:K.render()},"links")),_&&o.includes("cells")&&(ee.cells=b.jsx("path",{d:Z.render(),fill:"none",stroke:$,strokeWidth:C},"cells")),O&&o.includes("points")&&(ee.points=b.jsx("path",{stroke:"none",fill:T,d:K.renderPoints(void 0,j/2)},"points")),o.includes("bounds")&&(ee.bounds=b.jsx("path",{fill:"none",stroke:$,strokeWidth:C,d:Z.renderBounds()},"bounds"));var J=Ype({points:X,delaunay:K,voronoi:Z});return b.jsx(Dp,{width:I,height:z,margin:U,role:N,ref:D,children:o.map(function(B,L){return ee[B]!==void 0?ee[B]:typeof B=="function"?b.jsx(h.Fragment,{children:h.createElement(B,J)},L):null})})},Xpe=h.forwardRef(function(e,t){var n=e.theme,r=MM(e,Kpe);return b.jsx(Oo,{isInteractive:!1,animate:!1,theme:n,children:b.jsx(Zpe,Nf({},r,{forwardedRef:t}))})}),Qpe=["defaultWidth","defaultHeight","onResize","debounceResize"];h.forwardRef(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,a=e.debounceResize,o=MM(e,Qpe);return b.jsx(Mo,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:a,children:function(s){var l=s.width,c=s.height;return b.jsx(Xpe,Nf({},o,{width:l,height:c,ref:t}))}})});var Jpe=function(e){var t=e.nodes,n=e.width,r=e.height,i=e.margin,a=i===void 0?Ou:i,o=e.getNodePosition,s=e.setCurrent,l=e.onMouseEnter,c=e.onMouseMove,u=e.onMouseLeave,d=e.onMouseDown,f=e.onMouseUp,p=e.onClick,g=e.onDoubleClick,m=e.onTouchStart,v=e.onTouchMove,w=e.onTouchEnd,_=e.enableTouchCrosshair,y=_!==void 0&&_,C=e.detectionRadius,x=C===void 0?1/0:C,$=e.tooltip,E=e.tooltipPosition,O=E===void 0?AM:E,k=e.tooltipAnchor,j=k===void 0?RM:k,S=e.debug,T=h.useRef(null),R=jM({points:t,getNodePosition:o,width:n,height:r,margin:a,debug:S}),N=R.delaunay,D=R.voronoi,M=Gpe({elementRef:T,nodes:t,delaunay:N,margin:a,detectionRadius:x,setCurrent:s,onMouseEnter:l,onMouseMove:c,onMouseLeave:u,onMouseDown:d,onMouseUp:f,onClick:p,onDoubleClick:g,onTouchStart:m,onTouchMove:v,onTouchEnd:w,enableTouchCrosshair:y,tooltip:$,tooltipPosition:O,tooltipAnchor:j}),I=M.current,z=M.handleMouseEnter,U=M.handleMouseMove,P=M.handleMouseLeave,W=M.handleMouseDown,Y=M.handleMouseUp,X=M.handleClick,K=M.handleDoubleClick,Z=M.handleTouchStart,ee=M.handleTouchMove,J=M.handleTouchEnd,B=h.useMemo(function(){if(S&&D)return D.render()},[S,D]);return b.jsxs("g",{ref:T,transform:"translate("+-a.left+","+-a.top+")",children:[S&&D&&b.jsxs(b.Fragment,{children:[b.jsx("path",{d:B,stroke:"red",strokeWidth:1,opacity:.75}),x<1/0&&b.jsx("path",{stroke:"red",strokeWidth:.35,fill:"none",d:N.renderPoints(void 0,x)}),I&&b.jsx("path",{fill:"pink",opacity:.35,d:D.renderCell(I[0])})]}),b.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:z,onMouseMove:U,onMouseLeave:P,onMouseDown:W,onMouseUp:Y,onTouchStart:Z,onTouchMove:ee,onTouchEnd:J,onClick:X,onDoubleClick:K})]})},eme=function(e,t){e.save(),e.globalAlpha=.75,e.beginPath(),t.render(e),e.strokeStyle="red",e.lineWidth=1,e.stroke(),e.restore()},tme=function(e,t,n){e.save(),e.globalAlpha=.35,e.beginPath(),t.renderCell(n,e),e.fillStyle="pink",e.fill(),e.restore()};function Dn(){return Dn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dn.apply(null,arguments)}function Ip(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 wC,bi={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:h.memo(function(e){var t=e.point;return b.jsx(cy,{id:b.jsxs("span",{children:["x: ",b.jsx("strong",{children:t.data.xFormatted}),", y:"," ",b.jsx("strong",{children:t.data.yFormatted})]}),enableChip:!0,color:t.seriesColor})}),sliceTooltip:h.memo(function(e){var t=e.slice,n=e.axis,r=Lt(),i=n==="x"?"y":"x";return b.jsx(EO,{rows:t.points.map(function(a){return[b.jsx(SO,{color:a.seriesColor,style:r.tooltip.chip},"chip"),a.seriesId,b.jsx("span",{style:r.tooltip.tableCellValue,children:a.data[i+"Formatted"]},"value")]})})}),debugMesh:!1,renderWrapper:!0},nt=Dn({},bi,{defs:[],fill:[],enablePointLabel:!1,pointLabel:"data.yFormatted",areaBlendMode:"normal",axisTop:null,axisRight:null,axisBottom:Gn,axisLeft:Gn,useMesh:!1,enableSlices:!1,debugSlices:!1,enableCrosshair:!0,crosshairType:"bottom-left",enableTouchCrosshair:!1,initialHiddenIds:[],animate:!0,motionConfig:"gentle",role:"img",isFocusable:!1}),rn=Dn({},bi,{pixelRatio:typeof window<"u"&&(wC=window.devicePixelRatio)!=null?wC:1,axisTop:null,axisRight:null,axisBottom:Gn,axisLeft:Gn});function nme(e){return h.useMemo(function(){return yy().defined(function(t){return t.x!==null&&t.y!==null}).x(function(t){return t.x}).y(function(t){return t.y}).curve(J3(e))},[e])}function rme(e){var t=e.curve,n=e.yScale,r=e.areaBaselineValue;return h.useMemo(function(){return nie().defined(function(i){return i.x!==null&&i.y!==null}).x(function(i){return i.x}).y1(function(i){return i.y}).curve(J3(t)).y0(n(r))},[t,n,r])}var ime=function(e){var t=e.componentId,n=e.enableSlices,r=e.points,i=e.width,a=e.height;return h.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,p=l[0],g=l[1],m=u[c-1],v=u[c+1];return d=m?p-(p-m[0])/2:p,f=v?p-d+(v[0]-p)/2:i-d,{id:"slice:"+t+":"+p,x0:d,x:p,y0:0,y:0,width:f,height:a,points:g.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,p=l[0],g=l[1],m=u[c-1],v=u[c+1];return d=m?p-(p-m[0])/2:p,f=v?p-d+(v[0]-p)/2:a-d,{id:p,x0:0,x:0,y0:d,y:p,width:i,height:f,points:g.reverse()}})}return[]},[t,n,a,r,i])},ame="line",DM=function(e){var t=e.data,n=e.xScale,r=n===void 0?bi.xScale:n,i=e.xFormat,a=e.yScale,o=a===void 0?bi.yScale:a,s=e.yFormat,l=e.width,c=e.height,u=e.colors,d=u===void 0?bi.colors:u,f=e.curve,p=f===void 0?bi.curve:f,g=e.areaBaselineValue,m=g===void 0?bi.areaBaselineValue:g,v=e.pointColor,w=v===void 0?bi.pointColor:v,_=e.pointBorderColor,y=_===void 0?bi.pointBorderColor:_,C=e.enableSlices,x=C===void 0?nt.enableSlices:C,$=e.initialHiddenIds,E=$===void 0?nt.initialHiddenIds:$,O=h.useState(Cpe(ame))[0],k=Ns(i),j=Ns(s),S=Ky(d,"id"),T=Lt(),R=$r(w,T),N=$r(y,T),D=h.useState(E??[]),M=D[0],I=D[1],z=h.useMemo(function(){return lpe(t.filter(function(B){return M.indexOf(B.id)===-1}),r,o,l,c)},[t,M,r,o,l,c]),U=z.xScale,P=z.yScale,W=z.series,Y=h.useMemo(function(){var B=t.map(function(F){return{id:F.id,label:""+F.id,color:S(F)}}),L=B.map(function(F){return Dn({},W.find(function(H){return H.id===F.id}),{color:F.color})}).filter(function(F){return!!F.id});return{legendData:B.map(function(F){return Dn({},F,{hidden:!L.find(function(H){return H.id===F.id})})}).reverse(),series:L}},[t,W,S]),X=Y.legendData,K=Y.series,Z=h.useCallback(function(B){I(function(L){return L.indexOf(B)>-1?L.filter(function(F){return F!==B}):[].concat(L,[B])})},[]),ee=function(B){var L=B.series,F=B.getPointColor,H=B.getPointBorderColor,A=B.formatX,Q=B.formatY;return h.useMemo(function(){return L.reduce(function(G,q,le){return[].concat(G,q.data.filter(function(ne){return ne.position.x!==null&&ne.position.y!==null}).map(function(ne,re){var se={id:q.id+"."+re,indexInSeries:re,absIndex:G.length+re,seriesIndex:le,seriesId:q.id,seriesColor:q.color,x:ne.position.x,y:ne.position.y,data:Dn({},ne.data,{xFormatted:A(ne.data.x),yFormatted:Q(ne.data.y)})};return se.color=F({series:q,point:se}),se.borderColor=H(se),se}))},[])},[L,F,H,A,Q])}({series:K,getPointColor:R,getPointBorderColor:N,formatX:k,formatY:j}),J=ime({componentId:O,enableSlices:x,points:ee,width:l,height:c});return{legendData:X,toggleSeries:Z,lineGenerator:nme(p),areaGenerator:rme({curve:p,yScale:P,areaBaselineValue:m}),getColor:S,series:K,xScale:U,yScale:P,slices:J,points:ee}},ome=function(e){var t=e.areaBlendMode,n=e.areaOpacity,r=e.color,i=e.fill,a=e.path,o=Vn(),s=o.animate,l=o.config,c=Vy(a),u=si({color:r,config:l,immediate:!s});return b.jsx(qt.path,{d:c,fill:i||u.color,fillOpacity:n,strokeWidth:0,style:{mixBlendMode:t}})},sme=h.memo(function(e){var t=e.areaGenerator,n=e.areaOpacity,r=e.areaBlendMode,i=e.series.slice(0).reverse();return b.jsx("g",{children:i.map(function(a){return b.jsx(ome,Dn({path:t(a.data.map(function(o){return o.position}))},Dn({areaOpacity:n,areaBlendMode:r},a)),""+a.id)})})}),lme=h.memo(function(e){var t=e.lineGenerator,n=e.points,r=e.color,i=e.thickness,a=h.useMemo(function(){return t(n)},[t,n]),o=Vy(a);return b.jsx(qt.path,{d:o,fill:"none",strokeWidth:i,stroke:r})}),cme=h.memo(function(e){var t=e.series,n=e.lineGenerator,r=e.lineWidth;return b.jsx(b.Fragment,{children:t.slice(0).reverse().map(function(i){var a=i.id,o=i.data,s=i.color;return b.jsx(lme,{points:o.map(function(l){return l.position}),lineGenerator:n,color:s,thickness:r},a)})})}),ume=h.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,p=e.onClick,g=e.onDoubleClick,m=e.onTouchStart,v=e.onTouchMove,w=e.onTouchEnd,_=Wi(),y=_.showTooltipFromEvent,C=_.hideTooltip,x=h.useCallback(function(D){y(h.createElement(a,{slice:t,axis:r}),D,"right"),s(t),l==null||l(t,D)},[y,a,t,r,s,l]),$=h.useCallback(function(D){y(h.createElement(a,{slice:t,axis:r}),D,"right"),c==null||c(t,D)},[y,a,t,r,c]),E=h.useCallback(function(D){C(),s(null),u==null||u(t,D)},[C,s,u,t]),O=h.useCallback(function(D){d==null||d(t,D)},[t,d]),k=h.useCallback(function(D){f==null||f(t,D)},[t,f]),j=h.useCallback(function(D){p==null||p(t,D)},[t,p]),S=h.useCallback(function(D){g==null||g(t,D)},[t,g]),T=h.useCallback(function(D){y(h.createElement(a,{slice:t,axis:r}),D,"right"),s(t),m==null||m(t,D)},[r,m,s,y,t,a]),R=h.useCallback(function(D){var M=D.touches[0],I=document.elementFromPoint(M.clientX,M.clientY),z=I==null?void 0:I.getAttribute("data-ref");if(z){var U=n.find(function(P){return P.id===z});U&&(y(h.createElement(a,{slice:U,axis:r}),D,"right"),s(U))}v==null||v(t,D)},[r,v,s,y,t,n,a]),N=h.useCallback(function(D){C(),s(null),w==null||w(t,D)},[C,s,w,t]);return b.jsx("rect",{x:t.x0,y:t.y0,width:t.width,height:t.height,stroke:"red",strokeWidth:i?1:0,strokeOpacity:.75,fill:"red",fillOpacity:o&&i?.35:0,onMouseEnter:x,onMouseMove:$,onMouseLeave:E,onMouseDown:O,onMouseUp:k,onClick:j,onDoubleClick:S,onTouchStart:T,onTouchMove:R,onTouchEnd:N,"data-ref":t.id})}),dme=h.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,p=e.onDoubleClick,g=e.onTouchStart,m=e.onTouchMove,v=e.onTouchEnd;return b.jsx(b.Fragment,{children:t.map(function(w){return b.jsx(ume,{slice:w,slices:t,axis:n,debug:r,tooltip:i,setCurrent:o,isCurrent:a!==null&&a.id===w.id,onMouseEnter:s,onMouseMove:l,onMouseLeave:c,onMouseDown:u,onMouseUp:d,onClick:f,onDoubleClick:p,onTouchStart:g,onTouchMove:m,onTouchEnd:v},w.id)})})}),fme=h.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,p=e.ariaLabelledBy,g=e.ariaDescribedBy,m=e.ariaHidden,v=e.ariaDisabled,w=_ue(o),_=Wi(),y=_.showTooltipAt,C=_.hideTooltip,x=t.slice(0).sort(function($,E){return $.indexInSeries-E.indexInSeries}).sort(function($,E){return E.seriesIndex-$.seriesIndex}).map(function($){return{id:$.id,x:$.x,y:$.y,datum:$.data,fill:$.color,stroke:$.borderColor,label:a?w($):null,ariaLabel:f?f($):void 0,ariaLabelledBy:p?p($):void 0,ariaDescribedBy:g?g($):void 0,ariaHidden:m?m($):void 0,ariaDisabled:v?v($):void 0,onFocus:l?function(){c($),y(h.createElement(u,{point:$}),[d.left+$.x,d.top+$.y],"top")}:void 0,onBlur:l?function(){c(null),C()}:void 0}});return b.jsx("g",{children:x.map(function($){return b.jsx(bue,{x:$.x,y:$.y,datum:$.datum,symbol:n,size:r,color:$.fill,borderWidth:i,borderColor:$.stroke,label:$.label,labelYOffset:s,ariaLabel:$.ariaLabel,ariaLabelledBy:$.ariaLabelledBy,ariaDescribedBy:$.ariaDescribedBy,ariaHidden:$.ariaHidden,ariaDisabled:$.ariaDisabled,isFocusable:l,onFocus:$.onFocus,onBlur:$.onBlur,testId:"line.point."+$.id},$.id)})})}),hme=h.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,p=e.onTouchStart,g=e.onTouchMove,m=e.onTouchEnd,v=e.tooltip,w=e.debug,_=e.enableTouchCrosshair,y=Wi(),C=y.showTooltipAt,x=y.hideTooltip,$=h.useCallback(function(M,I){C(h.createElement(v,{point:M}),[M.x+i.left,M.y+i.top],"top"),o==null||o(M,I)},[C,v,o,i]),E=h.useCallback(function(M,I){C(h.createElement(v,{point:M}),[M.x+i.left,M.y+i.top],"top"),s==null||s(M,I)},[C,v,i.left,i.top,s]),O=h.useCallback(function(M,I){x(),l==null||l(M,I)},[x,l]),k=h.useCallback(function(M,I){c==null||c(M,I)},[c]),j=h.useCallback(function(M,I){u==null||u(M,I)},[u]),S=h.useCallback(function(M,I){d==null||d(M,I)},[d]),T=h.useCallback(function(M,I){f==null||f(M,I)},[f]),R=h.useCallback(function(M,I){C(h.createElement(v,{point:M}),[M.x+i.left,M.y+i.top],"top"),p==null||p(M,I)},[i.left,i.top,p,C,v]),N=h.useCallback(function(M,I){C(h.createElement(v,{point:M}),[M.x+i.left,M.y+i.top],"top"),g==null||g(M,I)},[i.left,i.top,g,C,v]),D=h.useCallback(function(M,I){x(),m==null||m(M,I)},[m,x]);return b.jsx(Jpe,{nodes:t,width:n,height:r,setCurrent:a,onMouseEnter:$,onMouseMove:E,onMouseLeave:O,onMouseDown:k,onMouseUp:j,onClick:S,onDoubleClick:T,onTouchStart:R,onTouchMove:N,onTouchEnd:D,enableTouchCrosshair:_,debug:w})}),pme=["isInteractive","animate","motionConfig","theme","renderWrapper"];function mme(e){var t=e.data,n=e.xScale,r=n===void 0?nt.xScale:n,i=e.xFormat,a=e.yScale,o=a===void 0?nt.yScale:a,s=e.yFormat,l=e.curve,c=l===void 0?nt.curve:l,u=e.margin,d=e.width,f=e.height,p=e.colors,g=p===void 0?nt.colors:p,m=e.lineWidth,v=m===void 0?nt.lineWidth:m,w=e.layers,_=w===void 0?nt.layers:w,y=e.enableArea,C=y===void 0?nt.enableArea:y,x=e.areaBaselineValue,$=x===void 0?nt.areaBaselineValue:x,E=e.areaOpacity,O=E===void 0?nt.areaOpacity:E,k=e.areaBlendMode,j=k===void 0?nt.areaBlendMode:k,S=e.enablePoints,T=S===void 0?nt.enablePoints:S,R=e.pointSymbol,N=e.pointSize,D=N===void 0?nt.pointSize:N,M=e.pointColor,I=M===void 0?nt.pointColor:M,z=e.pointBorderWidth,U=z===void 0?nt.pointBorderWidth:z,P=e.pointBorderColor,W=P===void 0?nt.pointBorderColor:P,Y=e.enablePointLabel,X=Y===void 0?nt.enablePointLabel:Y,K=e.pointLabel,Z=K===void 0?nt.pointLabel:K,ee=e.pointLabelYOffset,J=e.enableGridX,B=J===void 0?nt.enableGridX:J,L=e.gridXValues,F=e.enableGridY,H=F===void 0?nt.enableGridY:F,A=e.gridYValues,Q=e.axisTop,G=e.axisRight,q=e.axisBottom,le=q===void 0?nt.axisBottom:q,ne=e.axisLeft,re=ne===void 0?nt.axisLeft:ne,se=e.defs,fe=se===void 0?nt.defs:se,_e=e.fill,ye=_e===void 0?nt.fill:_e,xe=e.markers,Me=e.legends,ue=Me===void 0?nt.legends:Me,oe=e.isInteractive,be=oe===void 0?nt.isInteractive:oe,Fe=e.useMesh,Ft=Fe===void 0?nt.useMesh:Fe,Pe=e.debugMesh,mt=Pe===void 0?nt.debugMesh:Pe,wt=e.onMouseEnter,tn=e.onMouseMove,Ee=e.onMouseLeave,Re=e.onMouseDown,gt=e.onMouseUp,Ve=e.onClick,vt=e.onDoubleClick,at=e.onTouchStart,Mt=e.onTouchMove,Ge=e.onTouchEnd,De=e.tooltip,ze=De===void 0?nt.tooltip:De,Xe=e.enableSlices,Ne=Xe===void 0?nt.enableSlices:Xe,Qe=e.debugSlices,ft=Qe===void 0?nt.debugSlices:Qe,tt=e.sliceTooltip,je=tt===void 0?nt.sliceTooltip:tt,ke=e.enableCrosshair,Ue=ke===void 0?nt.enableCrosshair:ke,bt=e.crosshairType,Je=bt===void 0?nt.crosshairType:bt,ht=e.enableTouchCrosshair,en=ht===void 0?nt.enableTouchCrosshair:ht,Bt=e.role,Ut=Bt===void 0?nt.role:Bt,mn=e.ariaLabel,Gt=e.ariaLabelledBy,$e=e.ariaDescribedBy,Ke=e.isFocusable,_t=Ke===void 0?nt.isFocusable:Ke,ln=e.pointAriaLabel,Kt=e.pointAriaLabelledBy,Ie=e.pointAriaDescribedBy,Le=e.pointAriaHidden,lt=e.pointAriaDisabled,At=e.initialHiddenIds,Ct=At===void 0?nt.initialHiddenIds:At,Ze=e.forwardedRef,$t=Ao(d,f,u),kr=$t.margin,un=$t.innerWidth,dn=$t.innerHeight,In=$t.outerWidth,Ea=$t.outerHeight,xt=DM({data:t,xScale:r,xFormat:i,yScale:o,yFormat:s,width:un,height:dn,colors:g,curve:c,areaBaselineValue:$,pointColor:I,pointBorderColor:W,enableSlices:Ne,initialHiddenIds:Ct}),ka=xt.legendData,Oe=xt.toggleSeries,Fr=xt.lineGenerator,Ta=xt.areaGenerator,Ro=xt.series,jo=xt.xScale,ui=xt.yScale,Mu=xt.slices,di=xt.points,sl=h.useState(null),Oa=sl[0],ll=sl[1],Au=h.useState(null),Ma=Au[0],Ru=Au[1],Pn={grid:null,markers:null,axes:null,areas:null,crosshair:null,lines:null,points:null,slices:null,mesh:null,legends:null};_.includes("grid")&&(B||H)&&(Pn.grid=b.jsx(TM,{width:un,height:dn,xScale:B?jo:null,yScale:H?ui:null,xValues:L,yValues:A},"grid")),_.includes("markers")&&Array.isArray(xe)&&xe.length>0&&(Pn.markers=b.jsx(Q3,{markers:xe,width:un,height:dn,xScale:jo,yScale:ui},"markers")),_.includes("axes")&&(Pn.axes=b.jsx(kM,{xScale:jo,yScale:ui,width:un,height:dn,top:Q,right:G,bottom:le,left:re},"axes")),_.includes("lines")&&(Pn.lines=b.jsx(cme,{series:Ro,lineGenerator:Fr,lineWidth:v},"lines")),_.includes("legends")&&ue.length>0&&(Pn.legends=b.jsx(h.Fragment,{children:ue.map(function(Br,Ui){return b.jsx(Qy,Dn({},Br,{containerWidth:un,containerHeight:dn,data:Br.data||ka,toggleSerie:Br.toggleSerie?Oe:void 0}),Ui)})},"legends"));var Fp=Yy(fe,Ro,ye);C&&(Pn.areas=b.jsx(sme,{areaGenerator:Ta,areaOpacity:O,areaBlendMode:j,series:Ro},"areas")),be&&Ne!==!1&&(Pn.slices=b.jsx(dme,{slices:Mu,axis:Ne,debug:ft,tooltip:je,current:Ma,setCurrent:Ru,onMouseEnter:wt,onMouseMove:tn,onMouseLeave:Ee,onMouseDown:Re,onMouseUp:gt,onClick:Ve,onDoubleClick:vt,onTouchStart:at,onTouchMove:Mt,onTouchEnd:Ge},"slices")),T&&(Pn.points=b.jsx(fme,{points:di,symbol:R,size:D,borderWidth:U,enableLabel:X,label:Z,labelYOffset:ee,isFocusable:_t,setCurrentPoint:ll,tooltip:ze,margin:kr,ariaLabel:ln,ariaLabelledBy:Kt,ariaDescribedBy:Ie,ariaHidden:Le,ariaDisabled:lt},"points")),be&&Ue&&(Oa!==null&&(Pn.crosshair=b.jsx(wv,{width:un,height:dn,x:Oa.x,y:Oa.y,type:Je},"crosshair")),Ma!==null&&Ne&&(Pn.crosshair=b.jsx(wv,{width:un,height:dn,x:Ma.x,y:Ma.y,type:Ne},"crosshair"))),be&&Ft&&Ne===!1&&(Pn.mesh=b.jsx(hme,{points:di,width:un,height:dn,margin:kr,setCurrent:ll,onMouseEnter:wt,onMouseMove:tn,onMouseLeave:Ee,onMouseDown:Re,onMouseUp:gt,onClick:Ve,onDoubleClick:vt,onTouchStart:at,onTouchMove:Mt,onTouchEnd:Ge,tooltip:ze,enableTouchCrosshair:en,debug:mt},"mesh"));var Bp=Dn({},e,{innerWidth:un,innerHeight:dn,series:Ro,slices:Mu,points:di,xScale:jo,yScale:ui,lineGenerator:Fr,areaGenerator:Ta,currentPoint:Oa,setCurrentPoint:ll,currentSlice:Ma,setCurrentSlice:Ru});return b.jsx(Dp,{defs:Fp,width:In,height:Ea,margin:kr,role:Ut,ariaLabel:mn,ariaLabelledBy:Gt,ariaDescribedBy:$e,isFocusable:_t,ref:Ze,children:_.map(function(Br,Ui){return typeof Br=="function"?b.jsx(h.Fragment,{children:Br(Bp)},Ui):Pn[Br]})})}var gme=h.forwardRef(function(e,t){var n=e.isInteractive,r=n===void 0?nt.isInteractive:n,i=e.animate,a=i===void 0?nt.animate:i,o=e.motionConfig,s=o===void 0?nt.motionConfig:o,l=e.theme,c=e.renderWrapper,u=Ip(e,pme);return b.jsx(Oo,{animate:a,isInteractive:r,motionConfig:s,renderWrapper:c,theme:l,children:b.jsx(mme,Dn({isInteractive:r},u,{forwardedRef:t}))})}),vme=["defaultWidth","defaultHeight","onResize","debounceResize"],bme=h.forwardRef(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,a=e.debounceResize,o=Ip(e,vme);return b.jsx(Mo,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:a,children:function(s){var l=s.width,c=s.height;return b.jsx(gme,Dn({width:l,height:c},o,{ref:t}))}})}),yme=["isInteractive","renderWrapper","theme"],xme=function(e){var t=e.width,n=e.height,r=e.margin,i=e.pixelRatio,a=i===void 0?rn.pixelRatio:i,o=e.data,s=e.xScale,l=s===void 0?rn.xScale:s,c=e.xFormat,u=e.yScale,d=u===void 0?rn.yScale:u,f=e.yFormat,p=e.curve,g=p===void 0?rn.curve:p,m=e.layers,v=m===void 0?rn.layers:m,w=e.colors,_=w===void 0?rn.colors:w,y=e.lineWidth,C=y===void 0?rn.lineWidth:y,x=e.enableArea,$=x===void 0?rn.enableArea:x,E=e.areaBaselineValue,O=E===void 0?rn.areaBaselineValue:E,k=e.areaOpacity,j=k===void 0?rn.areaOpacity:k,S=e.enablePoints,T=S===void 0?rn.enablePoints:S,R=e.pointSize,N=R===void 0?rn.pointSize:R,D=e.pointColor,M=D===void 0?rn.pointColor:D,I=e.pointBorderWidth,z=I===void 0?rn.pointBorderWidth:I,U=e.pointBorderColor,P=U===void 0?rn.pointBorderColor:U,W=e.enableGridX,Y=W===void 0?rn.enableGridX:W,X=e.gridXValues,K=e.enableGridY,Z=K===void 0?rn.enableGridY:K,ee=e.gridYValues,J=e.axisTop,B=e.axisRight,L=e.axisBottom,F=L===void 0?rn.axisBottom:L,H=e.axisLeft,A=H===void 0?rn.axisLeft:H,Q=e.legends,G=Q===void 0?rn.legends:Q,q=e.isInteractive,le=q===void 0?rn.isInteractive:q,ne=e.debugMesh,re=ne===void 0?rn.debugMesh:ne,se=e.onMouseLeave,fe=e.onMouseDown,_e=e.onMouseUp,ye=e.onClick,xe=e.onDoubleClick,Me=e.tooltip,ue=Me===void 0?rn.tooltip:Me,oe=e.role,be=e.forwardedRef,Fe=h.useRef(null),Ft=Ao(t,n,r),Pe=Ft.margin,mt=Ft.innerWidth,wt=Ft.innerHeight,tn=Ft.outerWidth,Ee=Ft.outerHeight,Re=Lt(),gt=h.useState(null),Ve=gt[0],vt=gt[1],at=DM({data:o,xScale:l,xFormat:c,yScale:d,yFormat:f,width:mt,height:wt,colors:_,curve:g,areaBaselineValue:O,pointColor:M,pointBorderColor:P}),Mt=at.lineGenerator,Ge=at.areaGenerator,De=at.series,ze=at.xScale,Xe=at.yScale,Ne=at.points,Qe=h.useMemo(function(){return{innerWidth:mt,innerHeight:wt,series:De,points:Ne,xScale:ze,yScale:Xe,lineWidth:C,lineGenerator:Mt,areaGenerator:Ge,currentPoint:Ve,setCurrentPoint:vt}},[mt,wt,De,Ne,ze,Xe,C,Mt,Ge,Ve,vt]),ft=jM({points:Ne,width:mt,height:wt,debug:re}),tt=ft.delaunay,je=ft.voronoi;h.useEffect(function(){if(Fe.current!==null){Fe.current.width=tn*a,Fe.current.height=Ee*a;var $e=Fe.current.getContext("2d");$e.scale(a,a),$e.fillStyle=Re.background,$e.fillRect(0,0,tn,Ee),$e.translate(Pe.left,Pe.top),v.forEach(function(Ke){var _t;typeof Ke=="function"&&Ke($e,Qe);var ln=(_t=Re.grid.line.strokeWidth)!=null?_t:0;if(Ke==="grid"&&typeof ln!="string"&&ln>0&&($e.lineWidth=ln,$e.strokeStyle=Re.grid.line.stroke,Y&&jf($e,{width:mt,height:wt,scale:ze,axis:"x",values:X}),Z&&jf($e,{width:mt,height:wt,scale:Xe,axis:"y",values:ee})),Ke==="axes"&&OM($e,{xScale:ze,yScale:Xe,width:mt,height:wt,top:J,right:B,bottom:F,left:A,theme:Re}),Ke==="areas"&&$===!0){$e.save(),$e.globalAlpha=j,Ge.context($e);for(var Kt=De.length-1;Kt>=0;Kt--)$e.fillStyle=De[Kt].color,$e.beginPath(),Ge(De[Kt].data.map(function(Le){return Le.position})),$e.fill();$e.restore()}if(Ke==="lines"&&(Mt.context($e),De.forEach(function(Le){$e.strokeStyle=Le.color,$e.lineWidth=C,$e.beginPath(),Mt(Le.data.map(function(lt){return lt.position})),$e.stroke()})),Ke==="points"&&T===!0&&N>0&&Ne.forEach(function(Le){$e.fillStyle=Le.color,$e.beginPath(),$e.arc(Le.x,Le.y,N/2,0,2*Math.PI),$e.fill(),z>0&&($e.strokeStyle=Le.borderColor,$e.lineWidth=z,$e.stroke())}),Ke==="mesh"&&re===!0&&je!==void 0&&(eme($e,je),Ve&&tme($e,je,Ve.absIndex)),Ke==="legends"){var Ie=De.map(function(Le){return{id:Le.id,label:Le.id,color:Le.color}}).reverse();G.forEach(function(Le){Jy($e,Dn({},Le,{data:Le.data||Ie,containerWidth:mt,containerHeight:wt,theme:Re}))})}})}},[Fe,mt,tn,wt,Ee,Pe.left,Pe.top,a,v,Re,Mt,De,ze,Xe,Y,X,Z,ee,J,B,F,A,G,Ne,T,N,z,Ve,Qe,re,$,Ge,j,C,je]);var ke=h.useCallback(function($e){if(!Fe.current)return null;var Ke=fs(Fe.current,$e),_t=Ke[0],ln=Ke[1];if(!rM(Pe.left,Pe.top,mt,wt,_t,ln))return null;var Kt=tt.find(_t-Pe.left,ln-Pe.top);return Ne[Kt]},[Fe,Pe,mt,wt,tt,Ne]),Ue=Wi(),bt=Ue.showTooltipFromEvent,Je=Ue.hideTooltip,ht=h.useCallback(function($e){var Ke=ke($e);vt(Ke),Ke?bt(h.createElement(ue,{point:Ke}),$e):Je()},[ke,vt,bt,Je,ue]),en=h.useCallback(function($e){Je(),vt(null),Ve&&(se==null||se(Ve,$e))},[Je,vt,se,Ve]),Bt=h.useCallback(function($e){if(fe){var Ke=ke($e);Ke&&fe(Ke,$e)}},[ke,fe]),Ut=h.useCallback(function($e){if(_e){var Ke=ke($e);Ke&&_e(Ke,$e)}},[ke,_e]),mn=h.useCallback(function($e){if(ye){var Ke=ke($e);Ke&&ye(Ke,$e)}},[ke,ye]),Gt=h.useCallback(function($e){if(xe){var Ke=ke($e);Ke&&xe(Ke,$e)}},[ke,xe]);return b.jsx("canvas",{ref:Gy(Fe,be),width:tn*a,height:Ee*a,style:{width:tn,height:Ee,cursor:le?"auto":"normal"},onMouseEnter:le?ht:void 0,onMouseMove:le?ht:void 0,onMouseLeave:le?en:void 0,onMouseDown:le?Bt:void 0,onMouseUp:le?Ut:void 0,onClick:le?mn:void 0,onDoubleClick:le?Gt:void 0,role:oe})},wme=h.forwardRef(function(e,t){var n=e.isInteractive,r=e.renderWrapper,i=e.theme,a=Ip(e,yme);return b.jsx(Oo,{isInteractive:n,renderWrapper:r,theme:i,animate:!1,children:b.jsx(xme,Dn({},a,{forwardedRef:t}))})}),_me=["defaultWidth","defaultHeight","onResize","debounceResize"];h.forwardRef(function(e,t){var n=e.defaultWidth;e.defaultHeight;var r=e.onResize,i=e.debounceResize,a=Ip(e,_me);return b.jsx(Mo,{defaultWidth:n,defaultHeight:n,onResize:r,debounceResize:i,children:function(o){var s=o.width,l=o.height;return b.jsx(wme,Dn({width:s,height:l},a,{ref:t}))}})});var Cme=bM;function $me(e,t){var n=[];return Cme(e,function(r,i,a){t(r,i,a)&&n.push(r)}),n}var Sme=$me,Eme=z3,kme=Sme,Tme=e1,Ome=ir;function Mme(e,t){var n=Ome(e)?Eme:kme;return n(e,Tme(t))}var Ame=Mme;const Rme=on(Ame);var jme=zi,Dme=Er,Nme="[object Number]";function Ime(e){return typeof e=="number"||Dme(e)&&jme(e)==Nme}var Pme=Ime;const _C=on(Pme);function Lme(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var Fme=Lme,Bme=tl,zme=Su;function Wme(e,t){return e&&Bme(t,zme(t),e)}var Ume=Wme,Hme=tl,Vme=_u;function qme(e,t){return e&&Hme(t,Vme(t),e)}var Yme=qme,Gme=tl,Kme=Uy;function Zme(e,t){return Gme(e,Kme(e),t)}var Xme=Zme,Qme=zy,Jme=Jb,ege=Uy,tge=W3,nge=Object.getOwnPropertySymbols,rge=nge?function(e){for(var t=[];e;)Qme(t,ege(e)),e=Jme(e);return t}:tge,NM=rge,ige=tl,age=NM;function oge(e,t){return ige(e,age(e),t)}var sge=oge,lge=B3,cge=NM,uge=_u;function dge(e){return lge(e,uge,cge)}var IM=dge,fge=Object.prototype,hge=fge.hasOwnProperty;function pge(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&hge.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var mge=pge,gge=Qb;function vge(e,t){var n=t?gge(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var bge=vge,yge=/\w*$/;function xge(e){var t=new e.constructor(e.source,yge.exec(e));return t.lastIndex=e.lastIndex,t}var wge=xge,CC=Ks,$C=CC?CC.prototype:void 0,SC=$C?$C.valueOf:void 0;function _ge(e){return SC?Object(SC.call(e)):{}}var Cge=_ge,$ge=Qb,Sge=bge,Ege=wge,kge=Cge,Tge=rO,Oge="[object Boolean]",Mge="[object Date]",Age="[object Map]",Rge="[object Number]",jge="[object RegExp]",Dge="[object Set]",Nge="[object String]",Ige="[object Symbol]",Pge="[object ArrayBuffer]",Lge="[object DataView]",Fge="[object Float32Array]",Bge="[object Float64Array]",zge="[object Int8Array]",Wge="[object Int16Array]",Uge="[object Int32Array]",Hge="[object Uint8Array]",Vge="[object Uint8ClampedArray]",qge="[object Uint16Array]",Yge="[object Uint32Array]";function Gge(e,t,n){var r=e.constructor;switch(t){case Pge:return $ge(e);case Oge:case Mge:return new r(+e);case Lge:return Sge(e,n);case Fge:case Bge:case zge:case Wge:case Uge:case Hge:case Vge:case qge:case Yge:return Tge(e,n);case Age:return new r;case Rge:case Nge:return new r(e);case jge:return Ege(e);case Dge:return new r;case Ige:return kge(e)}}var Kge=Gge,Zge=jp,Xge=Er,Qge="[object Map]";function Jge(e){return Xge(e)&&Zge(e)==Qge}var eve=Jge,tve=eve,nve=el,EC=Hh,kC=EC&&EC.isMap,rve=kC?nve(kC):tve,ive=rve,ave=jp,ove=Er,sve="[object Set]";function lve(e){return ove(e)&&ave(e)==sve}var cve=lve,uve=cve,dve=el,TC=Hh,OC=TC&&TC.isSet,fve=OC?dve(OC):uve,hve=fve,pve=zh,mve=Fme,gve=ay,vve=Ume,bve=Yme,yve=tO,xve=iO,wve=Xme,_ve=sge,Cve=U3,$ve=IM,Sve=jp,Eve=mge,kve=Kge,Tve=oO,Ove=ir,Mve=Uh,Ave=ive,Rve=ci,jve=hve,Dve=Su,Nve=_u,Ive=1,Pve=2,Lve=4,PM="[object Arguments]",Fve="[object Array]",Bve="[object Boolean]",zve="[object Date]",Wve="[object Error]",LM="[object Function]",Uve="[object GeneratorFunction]",Hve="[object Map]",Vve="[object Number]",FM="[object Object]",qve="[object RegExp]",Yve="[object Set]",Gve="[object String]",Kve="[object Symbol]",Zve="[object WeakMap]",Xve="[object ArrayBuffer]",Qve="[object DataView]",Jve="[object Float32Array]",e0e="[object Float64Array]",t0e="[object Int8Array]",n0e="[object Int16Array]",r0e="[object Int32Array]",i0e="[object Uint8Array]",a0e="[object Uint8ClampedArray]",o0e="[object Uint16Array]",s0e="[object Uint32Array]",Zt={};Zt[PM]=Zt[Fve]=Zt[Xve]=Zt[Qve]=Zt[Bve]=Zt[zve]=Zt[Jve]=Zt[e0e]=Zt[t0e]=Zt[n0e]=Zt[r0e]=Zt[Hve]=Zt[Vve]=Zt[FM]=Zt[qve]=Zt[Yve]=Zt[Gve]=Zt[Kve]=Zt[i0e]=Zt[a0e]=Zt[o0e]=Zt[s0e]=!0;Zt[Wve]=Zt[LM]=Zt[Zve]=!1;function Od(e,t,n,r,i,a){var o,s=t&Ive,l=t&Pve,c=t&Lve;if(n&&(o=i?n(e,r,i,a):n(e)),o!==void 0)return o;if(!Rve(e))return e;var u=Ove(e);if(u){if(o=Eve(e),!s)return xve(e,o)}else{var d=Sve(e),f=d==LM||d==Uve;if(Mve(e))return yve(e,s);if(d==FM||d==PM||f&&!i){if(o=l||f?{}:Tve(e),!s)return l?_ve(e,bve(o,e)):wve(e,vve(o,e))}else{if(!Zt[d])return i?e:{};o=kve(e,d,s)}}a||(a=new pve);var p=a.get(e);if(p)return p;a.set(e,o),jve(e)?e.forEach(function(v){o.add(Od(v,t,n,v,e,a))}):Ave(e)&&e.forEach(function(v,w){o.set(w,Od(v,t,n,w,e,a))});var g=c?l?$ve:Cve:l?Nve:Dve,m=u?void 0:g(e);return mve(m||e,function(v,w){m&&(w=v,v=e[w]),gve(o,w,Od(v,t,n,w,e,a))}),o}var l0e=Od;function c0e(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 u0e=c0e,d0e=Cu,f0e=u0e;function h0e(e,t){return t.length<2?e:d0e(e,f0e(t,0,-1))}var p0e=h0e,m0e=nl,g0e=D3,v0e=p0e,b0e=rl;function y0e(e,t){return t=m0e(t,e),e=v0e(e,t),e==null||delete e[b0e(g0e(t))]}var x0e=y0e,w0e=ny;function _0e(e){return w0e(e)?void 0:e}var C0e=_0e,$0e=Gh,S0e=l0e,E0e=x0e,k0e=nl,T0e=tl,O0e=C0e,M0e=L3,A0e=IM,R0e=1,j0e=2,D0e=4,N0e=M0e(function(e,t){var n={};if(e==null)return n;var r=!1;t=$0e(t,function(a){return a=k0e(a,e),r||(r=a.length>1),a}),T0e(e,A0e(e),n),r&&(n=S0e(n,R0e|j0e|D0e,O0e));for(var i=t.length;i--;)E0e(n,t[i]);return n}),I0e=N0e;const BM=on(I0e);function ai(){return ai=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ai.apply(null,arguments)}var Wv={dotSize:4,noteWidth:120,noteTextOffset:8},P0e=function(e){var t=typeof e;return h.isValidElement(e)||t==="string"||t==="function"||t==="object"},L0e=function(e){var t=typeof e;return t==="string"||t==="function"},Hc=function(e){return e.type==="circle"},Uv=function(e){return e.type==="dot"},Vc=function(e){return e.type==="rect"},F0e=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,Rme(t,o.match).map(function(l){var c=r(l),u=i(l);return(Hc(o)||Vc(o))&&(u.size=u.size+2*s,u.width=u.width+2*s,u.height=u.height+2*s),ai({},BM(o,["match","offset"]),c,u,{size:o.size||u.size,datum:l})}))},[])},B0e=function(e,t,n,r){var i=Math.atan2(r-t,n-e);return fue(Eu(i))},zM=function(e){var t,n,r=e.x,i=e.y,a=e.noteX,o=e.noteY,s=e.noteWidth,l=s===void 0?Wv.noteWidth:s,c=e.noteTextOffset,u=c===void 0?Wv.noteTextOffset:c;if(_C(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(_C(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,p=B0e(r,i,t,n);if(Hc(e)){var g=ro(yr(p),e.size/2);d+=g.x,f+=g.y}if(Vc(e)){var m=Math.round((p+90)/45)%8;m===0&&(f-=e.height/2),m===1&&(d+=e.width/2,f-=e.height/2),m===2&&(d+=e.width/2),m===3&&(d+=e.width/2,f+=e.height/2),m===4&&(f+=e.height/2),m===5&&(d-=e.width/2,f+=e.height/2),m===6&&(d-=e.width/2),m===7&&(d-=e.width/2,f-=e.height/2)}var v=t,w=t;return(p+90)%360>180?(v-=l,w-=l):w+=l,{points:[[d,f],[t,n],[w,n]],text:[v,n-u],angle:p+90}},WM=function(e){var t=e.data,n=e.annotations,r=e.getPosition,i=e.getDimensions;return h.useMemo(function(){return F0e({data:t,annotations:n,getPosition:r,getDimensions:i})},[t,n,r,i])},z0e=function(e){var t=e.annotations;return h.useMemo(function(){return t.map(function(n){return ai({},n,{computed:zM(ai({},n))})})},[t])},W0e=function(e){return h.useMemo(function(){return zM(e)},[e])},U0e=function(e){var t=e.datum,n=e.x,r=e.y,i=e.note,a=Lt(),o=Vn(),s=o.animate,l=o.config,c=si({x:n,y:r,config:l,immediate:!s});return typeof i=="function"?h.createElement(i,{x:n,y:r,datum:t}):b.jsxs(b.Fragment,{children:[a.annotations.text.outlineWidth>0&&b.jsx(qt.text,{x:c.x,y:c.y,style:ai({},a.annotations.text,{strokeLinejoin:"round",strokeWidth:2*a.annotations.text.outlineWidth,stroke:a.annotations.text.outlineColor}),children:i}),b.jsx(qt.text,{x:c.x,y:c.y,style:BM(a.annotations.text,["outlineWidth","outlineColor"]),children:i})]})},MC=function(e){var t=e.points,n=e.isOutline,r=n!==void 0&&n,i=Lt(),a=h.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=Vy(a);if(r&&i.annotations.link.outlineWidth<=0)return null;var s=ai({},i.annotations.link);return r&&(s.strokeLinecap="square",s.strokeWidth=i.annotations.link.strokeWidth+2*i.annotations.link.outlineWidth,s.stroke=i.annotations.link.outlineColor,s.opacity=i.annotations.link.outlineOpacity),b.jsx(qt.path,{fill:"none",d:o,style:s})},H0e=function(e){var t=e.x,n=e.y,r=e.size,i=Lt(),a=Vn(),o=a.animate,s=a.config,l=si({x:t,y:n,radius:r/2,config:s,immediate:!o});return b.jsxs(b.Fragment,{children:[i.annotations.outline.outlineWidth>0&&b.jsx(qt.circle,{cx:l.x,cy:l.y,r:l.radius,style:ai({},i.annotations.outline,{fill:"none",strokeWidth:i.annotations.outline.strokeWidth+2*i.annotations.outline.outlineWidth,stroke:i.annotations.outline.outlineColor,opacity:i.annotations.outline.outlineOpacity})}),b.jsx(qt.circle,{cx:l.x,cy:l.y,r:l.radius,style:i.annotations.outline})]})},V0e=function(e){var t=e.x,n=e.y,r=e.size,i=r===void 0?Wv.dotSize:r,a=Lt(),o=Vn(),s=o.animate,l=o.config,c=si({x:t,y:n,radius:i/2,config:l,immediate:!s});return b.jsxs(b.Fragment,{children:[a.annotations.outline.outlineWidth>0&&b.jsx(qt.circle,{cx:c.x,cy:c.y,r:c.radius,style:ai({},a.annotations.outline,{fill:"none",strokeWidth:2*a.annotations.outline.outlineWidth,stroke:a.annotations.outline.outlineColor,opacity:a.annotations.outline.outlineOpacity})}),b.jsx(qt.circle,{cx:c.x,cy:c.y,r:c.radius,style:a.annotations.symbol})]})},q0e=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=Vn(),c=l.animate,u=l.config,d=si({x:t-r/2,y:n-i/2,width:r,height:i,config:u,immediate:!c});return b.jsxs(b.Fragment,{children:[s.annotations.outline.outlineWidth>0&&b.jsx(qt.rect,{x:d.x,y:d.y,rx:o,ry:o,width:d.width,height:d.height,style:ai({},s.annotations.outline,{fill:"none",strokeWidth:s.annotations.outline.strokeWidth+2*s.annotations.outline.outlineWidth,stroke:s.annotations.outline.outlineColor,opacity:s.annotations.outline.outlineOpacity})}),b.jsx(qt.rect,{x:d.x,y:d.y,rx:o,ry:o,width:d.width,height:d.height,style:s.annotations.outline})]})},Y0e=function(e){var t=e.datum,n=e.x,r=e.y,i=e.note,a=W0e(e);if(!P0e(i))throw new Error("note should be a valid react element");return b.jsxs(b.Fragment,{children:[b.jsx(MC,{points:a.points,isOutline:!0}),Hc(e)&&b.jsx(H0e,{x:n,y:r,size:e.size}),Uv(e)&&b.jsx(V0e,{x:n,y:r,size:e.size}),Vc(e)&&b.jsx(q0e,{x:n,y:r,width:e.width,height:e.height,borderRadius:e.borderRadius}),b.jsx(MC,{points:a.points}),b.jsx(U0e,{datum:t,x:a.text[0],y:a.text[1],note:i})]})},AC=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)})},G0e=function(e,t){var n=t.annotations,r=t.theme;n.length!==0&&(e.save(),n.forEach(function(i){if(!L0e(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(),AC(e,i.computed.points),e.stroke(),e.lineCap="butt"),Hc(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()),Uv(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()),Vc(i)&&r.annotations.outline.outlineWidth>0&&(e.strokeStyle=r.annotations.outline.outlineColor,e.lineWidth=r.annotations.outline.strokeWidth+2*r.annotations.outline.outlineWidth,e.beginPath(),e.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(),AC(e,i.computed.points),e.stroke(),Hc(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()),Uv(i)&&(e.fillStyle=r.annotations.symbol.fill,e.beginPath(),e.arc(i.x,i.y,i.size/2,0,2*Math.PI),e.fill()),Vc(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())},K0e=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 St(){return St=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},St.apply(null,arguments)}function Sa(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 RC,Z0e=function(e){var t=e.bars,n=e.annotations,r=WM({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 b.jsx(b.Fragment,{children:r.map(function(i,a){return b.jsx(Y0e,St({},i),a)})})},X0e=function(e){var t=e.width,n=e.height,r=e.legends,i=e.toggleSerie;return b.jsx(b.Fragment,{children:r.map(function(a,o){var s,l=a[0],c=a[1];return b.jsx(Qy,St({},l,{containerWidth:t,containerHeight:n,data:(s=l.data)!=null?s:c,toggleSerie:l.toggleSerie&&l.dataFrom==="keys"?i:void 0}),o)})})},Q0e=["data"],J0e=function(e){var t,n=e.bar,r=n.data,i=Sa(n,Q0e),a=e.style,o=a.borderColor,s=a.color,l=a.height,c=a.labelColor,u=a.labelOpacity,d=a.labelX,f=a.labelY,p=a.transform,g=a.width,m=a.textAnchor,v=e.borderRadius,w=e.borderWidth,_=e.label,y=e.shouldRenderLabel,C=e.isInteractive,x=e.onClick,$=e.onMouseEnter,E=e.onMouseLeave,O=e.tooltip,k=e.isFocusable,j=e.ariaLabel,S=e.ariaLabelledBy,T=e.ariaDescribedBy,R=e.ariaDisabled,N=e.ariaHidden,D=Lt(),M=Wi(),I=M.showTooltipFromEvent,z=M.showTooltipAt,U=M.hideTooltip,P=h.useMemo(function(){return function(){return h.createElement(O,St({},i,r))}},[O,i,r]),W=h.useCallback(function(J){x==null||x(St({color:i.color},r),J)},[i,r,x]),Y=h.useCallback(function(J){return I(P(),J)},[I,P]),X=h.useCallback(function(J){$==null||$(r,J),I(P(),J)},[r,$,I,P]),K=h.useCallback(function(J){E==null||E(r,J),U()},[r,U,E]),Z=h.useCallback(function(){z(P(),[i.absX+i.width/2,i.absY])},[z,P,i]),ee=h.useCallback(function(){U()},[U]);return b.jsxs(qt.g,{transform:p,children:[b.jsx(qt.rect,{width:ba(g,function(J){return Math.max(J,0)}),height:ba(l,function(J){return Math.max(J,0)}),rx:v,ry:v,fill:(t=r.fill)!=null?t:s,strokeWidth:w,stroke:o,focusable:k,tabIndex:k?0:void 0,"aria-label":j?j(r):void 0,"aria-labelledby":S?S(r):void 0,"aria-describedby":T?T(r):void 0,"aria-disabled":R?R(r):void 0,"aria-hidden":N?N(r):void 0,onMouseEnter:C?X:void 0,onMouseMove:C?Y:void 0,onMouseLeave:C?K:void 0,onClick:C?W:void 0,onFocus:C&&k?Z:void 0,onBlur:C&&k?ee:void 0,"data-testid":"bar.item."+r.id+"."+r.index}),y&&b.jsx(ol,{x:d,y:f,textAnchor:m,dominantBaseline:"central",fillOpacity:u,style:St({},D.labels.text,{pointerEvents:"none",fill:c}),children:_})]})},ebe=["color","label"],tbe=function(e){var t=e.color,n=e.label,r=Sa(e,ebe);return b.jsx(cy,{id:n,value:r.formattedValue,enableChip:!0,color:t})},Vt={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:tbe,tooltipLabel:function(e){return e.id+" - "+e.indexValue},legends:[],initialHiddenIds:[],annotations:[],enableTotals:!1,totalsOffset:10},Ht=St({},Vt,{layers:["grid","axes","bars","totals","markers","legends","annotations"],axisTop:null,axisRight:null,axisBottom:{},axisLeft:{},barComponent:J0e,defs:[],fill:[],markers:[],animate:!0,animateOnMount:!1,motionConfig:"default",role:"img",isFocusable:!1}),fn=St({},Vt,{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,p=t.labelStyle,g=t.labelX,m=t.labelY,v=t.textAnchor;e.fillStyle=r,u>0&&(e.strokeStyle=l,e.lineWidth=u),e.beginPath(),K0e(e,o,s,a,i,Math.min(c,i)),e.fill(),u>0&&e.stroke(),f&&(e.textBaseline="middle",e.textAlign=v==="middle"?"center":v,yo(e,p,d,o+g,s+m))},pixelRatio:typeof window<"u"&&(RC=window.devicePixelRatio)!=null?RC:1}),UM=function(e,t,n,r,i,a){return Uc(r,{all:e.map(t),min:0,max:0},i,a).padding(n)},HM=function(e,t){return e.map(function(n){return St({},t.reduce(function(r,i){return r[i]=null,r},{}),n)})},Pp=function(e){return Object.keys(e).reduce(function(t,n){return e[n]&&(t[n]=e[n]),t},{})},Lp=function(e){return[e,Number(e)]};function VM(e,t,n,r){return e===void 0&&(e=Vt.layout),n===void 0&&(n=Vt.labelPosition),r===void 0&&(r=Vt.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 nbe=["layout","width","height","padding","innerPadding","valueScale","indexScale","hiddenIds"],n1=function(e,t){return e>t},qM=function(e,t){return e<t},YM=function(e,t){return Array.from(" ".repeat(t-e),function(n,r){return e+r})},rbe=function(e){return n1(e,0)?0:e},ibe=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,p=e.yScale,g=e.margin,m=n?qM:n1,v=i.map(Pp),w=[];return d.forEach(function(_,y){return YM(0,f.domain().length).forEach(function(C){var x,$,E,O=Lp(i[C][_]),k=O[0],j=O[1],S=s(i[C]),T=((x=f(S))!=null?x:0)+t*y+u*y,R=m($=j,0)?(E=p($))!=null?E:0:r,N=function(M,I){var z;return m(M,0)?r-I:((z=p(M))!=null?z:0)-r}(j,R),D={id:_,value:k===null?k:j,formattedValue:a(j),hidden:!1,index:C,indexValue:S,data:v[C]};w.push({key:_+"."+D.indexValue,index:w.length,data:D,x:T,y:R,absX:g.left+T,absY:g.top+R,width:t,height:N,color:o(D),label:l(D)})})}),w},abe=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,p=e.yScale,g=e.margin,m=n?qM:n1,v=i.map(Pp),w=[];return c.forEach(function(_,y){return YM(0,p.domain().length).forEach(function(C){var x,$,E,O=Lp(i[C][_]),k=O[0],j=O[1],S=o(i[C]),T=m($=j,0)?r:(E=f($))!=null?E:0,R=((x=p(S))!=null?x:0)+t*y+d*y,N=function(M,I){var z;return m(M,0)?((z=f(M))!=null?z:0)-r:r-I}(j,T),D={id:_,value:k===null?k:j,formattedValue:a(j),hidden:!1,index:C,indexValue:S,data:v[C]};w.push({key:_+"."+D.indexValue,index:w.length,data:D,x:T,y:R,absX:g.left+T,absY:g.top+R,width:N,height:t,color:s(D),label:l(D)})})}),w},obe=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,p=e.hiddenIds,g=p===void 0?[]:p,m=Sa(e,nbe),v=m.keys.filter(function(I){return!g.includes(I)}),w=HM(m.data,v),_=i==="vertical"?["y","x",a]:["x","y",o],y=_[0],C=_[1],x=_[2],$=UM(w,m.getIndex,l,f,x,C),E=d.min==="auto"?rbe:function(I){return I},O=w.reduce(function(I,z){return[].concat(I,v.map(function(U){return z[U]}))},[]).filter(Boolean),k=E(Math.min.apply(Math,O)),j=(r=Math.max.apply(Math,O),isFinite(r)?r:0),S=Uc(d,{all:O,min:k,max:j},y==="x"?a:o,y),T=i==="vertical"?[$,S]:[S,$],R=T[0],N=T[1],D=($.bandwidth()-u*(v.length-1))/v.length,M=[St({},m,{data:w,keys:v,innerPadding:u,xScale:R,yScale:N}),D,(t=d.reverse)!=null&&t,(n=S(0))!=null?n:0];return{xScale:R,yScale:N,bars:D>0?i==="vertical"?ibe.apply(void 0,M):abe.apply(void 0,M):[]}},sbe=["data","layout","width","height","padding","valueScale","indexScale","hiddenIds"],GM=function(e){var t;return e.some(Array.isArray)?GM((t=[]).concat.apply(t,e)):e},lbe=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(p){return c.domain().forEach(function(g,m){var v,w,_=p[m],y=(v=c(a(_.data)))!=null?v:0,C=((w=function(j){return u(j[n?0:1])}(_))!=null?w:0)+.5*s,x=function(j,S){var T;return((T=u(j[n?1:0]))!=null?T:0)-S}(_,C)-s,$=Lp(_.data[p.key]),E=$[0],O=$[1],k={id:p.key,value:E===null?E:O,formattedValue:r(O),hidden:!1,index:m,indexValue:g,data:Pp(_.data)};f.push({key:p.key+"."+g,index:f.length,data:k,x:y,y:C,absX:d.left+y,absY:d.top+C,width:t,height:x,color:i(k),label:o(k)})})}),f},cbe=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(p){return u.domain().forEach(function(g,m){var v,w,_=p[m],y=(v=u(a(_.data)))!=null?v:0,C=((w=function(j){return c(j[n?1:0])}(_))!=null?w:0)+.5*s,x=function(j,S){var T;return((T=c(j[n?0:1]))!=null?T:0)-S}(_,C)-s,$=Lp(_.data[p.key]),E=$[0],O=$[1],k={id:p.key,value:E===null?E:O,formattedValue:r(O),hidden:!1,index:m,indexValue:g,data:Pp(_.data)};f.push({key:p.key+"."+g,index:f.length,data:k,x:C,y,absX:d.left+C,absY:d.top+y,width:x,height:t,color:i(k),label:o(k)})})}),f},ube=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,p=Sa(e,sbe),g=p.keys.filter(function(D){return!f.includes(D)}),m=Sie().keys(g).offset(Eie)(HM(r,g)),v=i==="vertical"?["y","x",a]:["x","y",o],w=v[0],_=v[1],y=v[2],C=UM(r,p.getIndex,l,u,y,_),x=(n=GM(m),c.type==="log"?n.filter(function(D){return D!==0}):n),$=Math.min.apply(Math,x),E=Math.max.apply(Math,x),O=Uc(c,{all:x,min:$,max:E},w==="x"?a:o,w),k=i==="vertical"?[C,O]:[O,C],j=k[0],S=k[1],T=p.innerPadding>0?p.innerPadding:0,R=C.bandwidth(),N=[St({},p,{innerPadding:T,stackedData:m,xScale:j,yScale:S}),R,(t=c.reverse)!=null&&t];return{xScale:j,yScale:S,bars:R>0?i==="vertical"?lbe.apply(void 0,N):cbe.apply(void 0,N):[]}},dbe=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=tM(o??(r==="indexes"?"indexValue":"id"));return r==="indexes"?function(c,u,d){var f=Fv(c.map(function(p){var g,m;return{id:(g=p.data.indexValue)!=null?g:"",label:d(p.data),hidden:p.data.hidden,color:(m=p.color)!=null?m:"#000"}}),function(p){return p.id});return u==="horizontal"&&f.reverse(),f}(t,a,l):function(c,u,d,f,p,g){var m=Fv(c.map(function(v){var w;return{id:v.data.id,label:g(v.data),hidden:v.data.hidden,color:(w=v.color)!=null?w:"#000"}}),function(v){return v.id});return(u==="vertical"&&f==="stacked"&&d==="column"&&p!==!0||u==="horizontal"&&f==="stacked"&&p===!0)&&m.reverse(),m}(t,a,n,i,s,l)},jC=function(e,t,n){var r=e.get(t)||0;e.set(t,r+n)},fbe=function(e,t,n){var r=e.get(t)||0;e.set(t,r+(n>0?n:0))},hbe=function(e,t,n){var r=e.get(t)||0;e.set(t,Math.max(r,Number(n)))},pbe=function(e,t){var n=e.get(t)||0;e.set(t,n+1)},KM=function(e){var t,n=e.indexBy,r=n===void 0?Vt.indexBy:n,i=e.keys,a=i===void 0?Vt.keys:i,o=e.label,s=o===void 0?Vt.label:o,l=e.tooltipLabel,c=l===void 0?Vt.tooltipLabel:l,u=e.valueFormat,d=e.colors,f=d===void 0?Vt.colors:d,p=e.colorBy,g=p===void 0?Vt.colorBy:p,m=e.borderColor,v=m===void 0?Vt.borderColor:m,w=e.labelTextColor,_=w===void 0?Vt.labelTextColor:w,y=e.groupMode,C=y===void 0?Vt.groupMode:y,x=e.layout,$=x===void 0?Vt.layout:x,E=e.data,O=e.margin,k=e.width,j=e.height,S=e.padding,T=S===void 0?Vt.padding:S,R=e.innerPadding,N=R===void 0?Vt.innerPadding:R,D=e.valueScale,M=D===void 0?Vt.valueScale:D,I=e.indexScale,z=I===void 0?Vt.indexScale:I,U=e.initialHiddenIds,P=U===void 0?Vt.initialHiddenIds:U,W=e.enableLabel,Y=W===void 0?Vt.enableLabel:W,X=e.labelSkipWidth,K=X===void 0?Vt.labelSkipWidth:X,Z=e.labelSkipHeight,ee=Z===void 0?Vt.labelSkipHeight:Z,J=e.legends,B=J===void 0?Vt.legends:J,L=e.legendLabel,F=e.totalsOffset,H=F===void 0?Vt.totalsOffset:F,A=h.useState(P??[]),Q=A[0],G=A[1],q=h.useCallback(function(Ee){G(function(Re){return Re.indexOf(Ee)>-1?Re.filter(function(gt){return gt!==Ee}):[].concat(Re,[Ee])})},[]),le=Ti(r),ne=Ti(s),re=Ti(c),se=Ns(u),fe=Lt(),_e=Ky(f,g),ye=$r(v,fe),xe=$r(_,fe),Me=(C==="grouped"?obe:ube)({layout:$,data:E,getIndex:le,keys:a,width:k,height:j,getColor:_e,padding:T,innerPadding:N,valueScale:M,indexScale:z,hiddenIds:Q,formatValue:se,getTooltipLabel:re,margin:O}),ue=Me.bars,oe=Me.xScale,be=Me.yScale,Fe=h.useMemo(function(){return ue.filter(function(Ee){return Ee.data.value!==null}).map(function(Ee,Re){return St({},Ee,{index:Re})})},[ue]),Ft=h.useCallback(function(Ee){var Re=Ee.width,gt=Ee.height;return!!Y&&!(K>0&&Re<K)&&!(ee>0&&gt<ee)},[Y,K,ee]),Pe=h.useMemo(function(){return a.map(function(Ee){var Re=ue.find(function(gt){return gt.data.id===Ee});return St({},Re,{data:St({id:Ee},Re==null?void 0:Re.data,{hidden:Q.includes(Ee)})})})},[Q,a,ue]),mt=(t=M.reverse)!=null&&t,wt=h.useMemo(function(){return B.map(function(Ee){return[Ee,dbe({bars:Ee.dataFrom==="keys"?Pe:ue,direction:Ee.direction,from:Ee.dataFrom,groupMode:C,layout:$,legendLabel:L,reverse:mt})]})},[B,Pe,ue,C,$,L,mt]),tn=h.useMemo(function(){return function(Ee,Re,gt,Ve,vt,at,Mt){Ve===void 0&&(Ve=Vt.layout),vt===void 0&&(vt=Vt.groupMode);var Ge=[];if(Ee.length===0)return Ge;var De=new Map,ze=Ee[0].width,Xe=Ee[0].height;if(vt==="stacked"){var Ne=new Map;Ee.forEach(function(tt){var je=tt.data,ke=je.indexValue,Ue=je.value;jC(De,ke,Number(Ue)),fbe(Ne,ke,Number(Ue))}),Ne.forEach(function(tt,je){var ke,Ue,bt,Je=De.get(je)||0;Ve==="vertical"?(ke=Re(je),Ue=gt(tt),bt=gt(tt/2)):(ke=Re(tt),Ue=gt(je),bt=Re(tt/2)),ke+=Ve==="vertical"?ze/2:at,Ue+=Ve==="vertical"?-at:Xe/2,Ge.push({key:"total_"+je,x:ke,y:Ue,value:Je,formattedValue:Mt(Je),animationOffset:bt})})}else if(vt==="grouped"){var Qe=new Map,ft=new Map;Ee.forEach(function(tt){var je=tt.data,ke=je.indexValue,Ue=je.value;jC(De,ke,Number(Ue)),hbe(Qe,ke,Number(Ue)),pbe(ft,ke)}),Qe.forEach(function(tt,je){var ke,Ue,bt,Je=De.get(je)||0,ht=ft.get(je);Ve==="vertical"?(ke=Re(je),Ue=gt(tt),bt=gt(tt/2)):(ke=Re(tt),Ue=gt(je),bt=Re(tt/2)),ke+=Ve==="vertical"?ht*ze/2:at,Ue+=Ve==="vertical"?-at:ht*Xe/2,Ge.push({key:"total_"+je,x:ke,y:Ue,value:Je,formattedValue:Mt(Je),animationOffset:bt})})}return Ge}(ue,oe,be,$,C,H,se)},[ue,oe,be,$,C,H,se]);return{bars:ue,barsWithValue:Fe,xScale:oe,yScale:be,getIndex:le,getLabel:ne,getTooltipLabel:re,formatValue:se,getColor:_e,getBorderColor:ye,getLabelColor:xe,shouldRenderBarLabel:Ft,hiddenIds:Q,toggleSerie:q,legendsWithData:wt,barTotals:tn}},mbe=function(e){var t=e.data,n=e.springConfig,r=e.animate,i=e.layout,a=i===void 0?Ht.layout:i,o=Lt();return _o(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 b.jsx(qt.text,{x:s.x,y:s.y,fillOpacity:s.labelOpacity,style:St({},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)})},gbe=["isInteractive","animate","motionConfig","theme","renderWrapper"],vbe=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,p=e.innerPadding,g=e.axisTop,m=e.axisRight,v=e.axisBottom,w=v===void 0?Ht.axisBottom:v,_=e.axisLeft,y=_===void 0?Ht.axisLeft:_,C=e.enableGridX,x=C===void 0?Ht.enableGridX:C,$=e.enableGridY,E=$===void 0?Ht.enableGridY:$,O=e.gridXValues,k=e.gridYValues,j=e.layers,S=j===void 0?Ht.layers:j,T=e.barComponent,R=T===void 0?Ht.barComponent:T,N=e.enableLabel,D=N===void 0?Ht.enableLabel:N,M=e.label,I=e.labelSkipWidth,z=I===void 0?Ht.labelSkipWidth:I,U=e.labelSkipHeight,P=U===void 0?Ht.labelSkipHeight:U,W=e.labelTextColor,Y=e.labelPosition,X=Y===void 0?Ht.labelPosition:Y,K=e.labelOffset,Z=K===void 0?Ht.labelOffset:K,ee=e.markers,J=ee===void 0?Ht.markers:ee,B=e.colorBy,L=e.colors,F=e.defs,H=F===void 0?Ht.defs:F,A=e.fill,Q=A===void 0?Ht.fill:A,G=e.borderRadius,q=G===void 0?Ht.borderRadius:G,le=e.borderWidth,ne=le===void 0?Ht.borderWidth:le,re=e.borderColor,se=e.annotations,fe=se===void 0?Ht.annotations:se,_e=e.legendLabel,ye=e.tooltipLabel,xe=e.valueFormat,Me=e.isInteractive,ue=Me===void 0?Ht.isInteractive:Me,oe=e.tooltip,be=oe===void 0?Ht.tooltip:oe,Fe=e.onClick,Ft=e.onMouseEnter,Pe=e.onMouseLeave,mt=e.legends,wt=e.role,tn=wt===void 0?Ht.role:wt,Ee=e.ariaLabel,Re=e.ariaLabelledBy,gt=e.ariaDescribedBy,Ve=e.isFocusable,vt=Ve===void 0?Ht.isFocusable:Ve,at=e.barAriaLabel,Mt=e.barAriaLabelledBy,Ge=e.barAriaDescribedBy,De=e.barAriaHidden,ze=e.barAriaDisabled,Xe=e.initialHiddenIds,Ne=e.enableTotals,Qe=Ne===void 0?Ht.enableTotals:Ne,ft=e.totalsOffset,tt=ft===void 0?Ht.totalsOffset:ft,je=e.forwardedRef,ke=Vn(),Ue=ke.animate,bt=ke.config,Je=Ao(o,s,a),ht=Je.outerWidth,en=Je.outerHeight,Bt=Je.margin,Ut=Je.innerWidth,mn=Je.innerHeight,Gt=KM({indexBy:r,label:M,tooltipLabel:ye,valueFormat:xe,colors:L,colorBy:B,borderColor:re,labelTextColor:W,groupMode:l,layout:c,data:n,keys:i,margin:Bt,width:Ut,height:mn,padding:f,innerPadding:p,valueScale:u,indexScale:d,enableLabel:D,labelSkipWidth:z,labelSkipHeight:P,legends:mt,legendLabel:_e,initialHiddenIds:Xe,totalsOffset:tt}),$e=Gt.bars,Ke=Gt.barsWithValue,_t=Gt.xScale,ln=Gt.yScale,Kt=Gt.getLabel,Ie=Gt.getTooltipLabel,Le=Gt.getBorderColor,lt=Gt.getLabelColor,At=Gt.shouldRenderBarLabel,Ct=Gt.toggleSerie,Ze=Gt.legendsWithData,$t=Gt.barTotals,kr=Gt.getColor,un=VM(c,(t=u==null?void 0:u.reverse)!=null&&t,X,Z),dn=_o(Ke,{keys:function(Oe){return Oe.key},from:function(Oe){return St({borderColor:Le(Oe),color:Oe.color,height:0,labelColor:lt(Oe),labelOpacity:0},un(Oe.width,Oe.height),{transform:"translate("+Oe.x+", "+(Oe.y+Oe.height)+")",width:Oe.width},c==="vertical"?{}:{height:Oe.height,transform:"translate("+Oe.x+", "+Oe.y+")",width:0})},enter:function(Oe){return St({borderColor:Le(Oe),color:Oe.color,height:Oe.height,labelColor:lt(Oe),labelOpacity:1},un(Oe.width,Oe.height),{transform:"translate("+Oe.x+", "+Oe.y+")",width:Oe.width})},update:function(Oe){return St({borderColor:Le(Oe),color:Oe.color,height:Oe.height,labelColor:lt(Oe),labelOpacity:1},un(Oe.width,Oe.height),{transform:"translate("+Oe.x+", "+Oe.y+")",width:Oe.width})},leave:function(Oe){return St({borderColor:Le(Oe),color:Oe.color,height:0,labelColor:lt(Oe),labelOpacity:0},un(Oe.width,Oe.height),{labelY:0,transform:"translate("+Oe.x+", "+(Oe.y+Oe.height)+")",width:Oe.width},c==="vertical"?{}:St({},un(Oe.width,Oe.height),{labelX:0,height:Oe.height,transform:"translate("+Oe.x+", "+Oe.y+")",width:0}))},config:bt,immediate:!Ue,initial:Ue?void 0:null}),In=h.useMemo(function(){return{borderRadius:q,borderWidth:ne,enableLabel:D,isInteractive:ue,labelSkipWidth:z,labelSkipHeight:P,onClick:Fe,onMouseEnter:Ft,onMouseLeave:Pe,getTooltipLabel:Ie,tooltip:be,isFocusable:vt,ariaLabel:at,ariaLabelledBy:Mt,ariaDescribedBy:Ge,ariaHidden:De,ariaDisabled:ze}},[q,ne,D,Ie,ue,P,z,Fe,Ft,Pe,be,vt,at,Mt,Ge,De,ze]),Ea=Yy(H,$e,Q,{dataKey:"data",targetKey:"data.fill"}),xt={annotations:null,axes:null,bars:null,grid:null,legends:null,markers:null,totals:null};S.includes("annotations")&&(xt.annotations=b.jsx(Z0e,{bars:$e,annotations:fe},"annotations")),S.includes("axes")&&(xt.axes=b.jsx(kM,{xScale:_t,yScale:ln,width:Ut,height:mn,top:g,right:m,bottom:w,left:y},"axes")),S.includes("bars")&&(xt.bars=b.jsx(h.Fragment,{children:dn(function(Oe,Fr){return h.createElement(R,St({},In,{bar:Fr,style:Oe,shouldRenderLabel:At(Fr),label:Kt(Fr.data)}))})},"bars")),S.includes("grid")&&(xt.grid=b.jsx(TM,{width:Ut,height:mn,xScale:x?_t:null,yScale:E?ln:null,xValues:O,yValues:k},"grid")),S.includes("legends")&&(xt.legends=b.jsx(X0e,{width:Ut,height:mn,legends:Ze,toggleSerie:Ct},"legends")),S.includes("markers")&&(xt.markers=b.jsx(Q3,{markers:J,width:Ut,height:mn,xScale:_t,yScale:ln},"markers")),S.includes("totals")&&Qe&&(xt.totals=b.jsx(mbe,{data:$t,springConfig:bt,animate:Ue,layout:c},"totals"));var ka=St({},In,{margin:Bt,width:o,height:s,innerWidth:Ut,innerHeight:mn,bars:$e,legendData:Ze,enableLabel:D,xScale:_t,yScale:ln,tooltip:be,getTooltipLabel:Ie,onClick:Fe,onMouseEnter:Ft,onMouseLeave:Pe,getColor:kr});return b.jsx(Dp,{width:ht,height:en,margin:Bt,defs:Ea,role:tn,ariaLabel:Ee,ariaLabelledBy:Re,ariaDescribedBy:gt,isFocusable:vt,ref:je,children:S.map(function(Oe,Fr){var Ta;return typeof Oe=="function"?b.jsx(h.Fragment,{children:h.createElement(Oe,ka)},Fr):(Ta=xt==null?void 0:xt[Oe])!=null?Ta:null})})},bbe=h.forwardRef(function(e,t){var n=e.isInteractive,r=n===void 0?Ht.isInteractive:n,i=e.animate,a=i===void 0?Ht.animate:i,o=e.motionConfig,s=o===void 0?Ht.motionConfig:o,l=e.theme,c=e.renderWrapper,u=Sa(e,gbe);return b.jsx(Oo,{animate:a,isInteractive:r,motionConfig:s,renderWrapper:c,theme:l,children:b.jsx(vbe,St({},u,{isInteractive:r,forwardedRef:t}))})}),ybe=["isInteractive","renderWrapper","theme"],dg=function(e,t,n,r){return e.find(function(i){return rM(i.x+t.left,i.y+t.top,i.width,i.height,n,r)})},xbe=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,p=e.innerPadding,g=e.axisTop,m=e.axisRight,v=e.axisBottom,w=v===void 0?fn.axisBottom:v,_=e.axisLeft,y=_===void 0?fn.axisLeft:_,C=e.enableGridX,x=C===void 0?fn.enableGridX:C,$=e.enableGridY,E=$===void 0?fn.enableGridY:$,O=e.gridXValues,k=e.gridYValues,j=e.labelPosition,S=j===void 0?fn.labelPosition:j,T=e.labelOffset,R=T===void 0?fn.labelOffset:T,N=e.layers,D=N===void 0?fn.layers:N,M=e.renderBar,I=M===void 0?fn.renderBar:M,z=e.enableLabel,U=z===void 0?fn.enableLabel:z,P=e.label,W=e.labelSkipWidth,Y=W===void 0?fn.labelSkipWidth:W,X=e.labelSkipHeight,K=X===void 0?fn.labelSkipHeight:X,Z=e.labelTextColor,ee=e.colorBy,J=e.colors,B=e.borderRadius,L=B===void 0?fn.borderRadius:B,F=e.borderWidth,H=F===void 0?fn.borderWidth:F,A=e.borderColor,Q=e.annotations,G=Q===void 0?fn.annotations:Q,q=e.legendLabel,le=e.tooltipLabel,ne=e.valueFormat,re=e.isInteractive,se=re===void 0?fn.isInteractive:re,fe=e.tooltip,_e=fe===void 0?fn.tooltip:fe,ye=e.onClick,xe=e.onMouseEnter,Me=e.onMouseLeave,ue=e.legends,oe=e.pixelRatio,be=oe===void 0?fn.pixelRatio:oe,Fe=e.role,Ft=e.forwardedRef,Pe=e.enableTotals,mt=Pe===void 0?fn.enableTotals:Pe,wt=e.totalsOffset,tn=wt===void 0?fn.totalsOffset:wt,Ee=h.useRef(null),Re=Lt(),gt=Ao(o,s,a),Ve=gt.margin,vt=gt.innerWidth,at=gt.innerHeight,Mt=gt.outerWidth,Ge=gt.outerHeight,De=KM({indexBy:r,label:P,tooltipLabel:le,valueFormat:ne,colors:J,colorBy:ee,borderColor:A,labelTextColor:Z,groupMode:l,layout:c,data:n,keys:i,margin:Ve,width:vt,height:at,padding:f,innerPadding:p,valueScale:u,indexScale:d,enableLabel:U,labelSkipWidth:Y,labelSkipHeight:K,legends:ue,legendLabel:q,totalsOffset:tn}),ze=De.bars,Xe=De.barsWithValue,Ne=De.xScale,Qe=De.yScale,ft=De.getLabel,tt=De.getTooltipLabel,je=De.getBorderColor,ke=De.getLabelColor,Ue=De.shouldRenderBarLabel,bt=De.legendsWithData,Je=De.barTotals,ht=De.getColor,en=Wi(),Bt=en.showTooltipFromEvent,Ut=en.hideTooltip,mn=z0e({annotations:WM({data:ze,annotations:G,getPosition:function(Ie){return{x:Ie.x,y:Ie.y}},getDimensions:function(Ie){var Le=Ie.width,lt=Ie.height;return{width:Le,height:lt,size:Math.max(Le,lt)}}})}),Gt=h.useMemo(function(){return{borderRadius:L,borderWidth:H,isInteractive:se,isFocusable:!1,labelSkipWidth:Y,labelSkipHeight:K,margin:Ve,width:o,height:s,innerWidth:vt,innerHeight:at,bars:ze,legendData:bt,enableLabel:U,xScale:Ne,yScale:Qe,tooltip:_e,getTooltipLabel:tt,onClick:ye,onMouseEnter:xe,onMouseLeave:Me,getColor:ht}},[L,H,se,Y,K,Ve,o,s,vt,at,ze,bt,U,Ne,Qe,_e,tt,ye,xe,Me,ht]),$e=Ns(ne),Ke=VM(c,(t=u==null?void 0:u.reverse)!=null&&t,S,R);h.useEffect(function(){if(Ee.current){Ee.current.width=Mt*be,Ee.current.height=Ge*be;var Ie=Ee.current.getContext("2d");Ie.scale(be,be),Ie.fillStyle=Re.background,Ie.fillRect(0,0,Mt,Ge),Ie.translate(Ve.left,Ve.top),D.forEach(function(Le){Le==="grid"?typeof Re.grid.line.strokeWidth=="number"&&Re.grid.line.strokeWidth>0&&(Ie.lineWidth=Re.grid.line.strokeWidth,Ie.strokeStyle=Re.grid.line.stroke,x&&jf(Ie,{width:vt,height:at,scale:Ne,axis:"x",values:O}),E&&jf(Ie,{width:vt,height:at,scale:Qe,axis:"y",values:k})):Le==="axes"?OM(Ie,{xScale:Ne,yScale:Qe,width:vt,height:at,top:g,right:m,bottom:w,left:y,theme:Re}):Le==="bars"?(bo(Ie,Re.text),Xe.forEach(function(lt){I(Ie,St({bar:lt,borderColor:je(lt),borderRadius:L,borderWidth:H,label:ft(lt.data),shouldRenderLabel:Ue(lt),labelStyle:St({},Re.labels.text,{fill:ke(lt)})},Ke(lt.width,lt.height)))})):Le==="legends"?bt.forEach(function(lt){var At=lt[0],Ct=lt[1];Jy(Ie,St({},At,{data:Ct,containerWidth:vt,containerHeight:at,theme:Re}))}):Le==="annotations"?G0e(Ie,{annotations:mn,theme:Re}):Le==="totals"&&mt?function(lt,At,Ct,Ze){Ze===void 0&&(Ze=fn.layout),bo(lt,Ct.labels.text),lt.textBaseline=Ze==="vertical"?"alphabetic":"middle",lt.textAlign=Ze==="vertical"?"center":"start",At.forEach(function($t){yo(lt,Ct.labels.text,$t.formattedValue,$t.x,$t.y)})}(Ie,Je,Re,c):typeof Le=="function"&&Le(Ie,Gt)}),Ie.save()}},[w,y,m,g,Xe,L,H,mn,x,E,je,ft,ke,O,k,l,s,at,vt,Gt,D,c,bt,Ve.left,Ve.top,Ge,Mt,be,I,Ne,Qe,Ue,Re,o,Je,mt,$e,Ke]);var _t=h.useCallback(function(Ie){if(ze&&Ee.current){var Le=fs(Ee.current,Ie),lt=Le[0],At=Le[1],Ct=dg(ze,Ve,lt,At);Ct!==void 0?(Bt(h.createElement(_e,St({},Ct.data,{color:Ct.color,label:Ct.label,value:Number(Ct.data.value)})),Ie),Ie.type==="mouseenter"&&(xe==null||xe(Ct.data,Ie))):Ut()}},[Ut,Ve,xe,ze,Bt,_e]),ln=h.useCallback(function(Ie){if(ze&&Ee.current){Ut();var Le=fs(Ee.current,Ie),lt=Le[0],At=Le[1],Ct=dg(ze,Ve,lt,At);Ct&&(Me==null||Me(Ct.data,Ie))}},[Ut,Ve,Me,ze]),Kt=h.useCallback(function(Ie){if(ze&&Ee.current){var Le=fs(Ee.current,Ie),lt=Le[0],At=Le[1],Ct=dg(ze,Ve,lt,At);Ct!==void 0&&(ye==null||ye(St({},Ct.data,{color:Ct.color}),Ie))}},[Ve,ye,ze]);return b.jsx("canvas",{ref:Gy(Ee,Ft),width:Mt*be,height:Ge*be,style:{width:Mt,height:Ge,cursor:se?"auto":"normal"},onMouseEnter:se?_t:void 0,onMouseMove:se?_t:void 0,onMouseLeave:se?ln:void 0,onClick:se?Kt:void 0,role:Fe})},wbe=h.forwardRef(function(e,t){var n=e.isInteractive,r=e.renderWrapper,i=e.theme,a=Sa(e,ybe);return b.jsx(Oo,{isInteractive:n,renderWrapper:r,theme:i,animate:!1,children:b.jsx(xbe,St({},a,{isInteractive:n,forwardedRef:t}))})}),_be=["defaultWidth","defaultHeight","onResize","debounceResize"],Cbe=h.forwardRef(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,a=e.debounceResize,o=Sa(e,_be);return b.jsx(Mo,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:a,children:function(s){var l=s.width,c=s.height;return b.jsx(bbe,St({},o,{width:l,height:c,ref:t}))}})}),$be=["defaultWidth","defaultHeight","onResize","debounceResize"];h.forwardRef(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,a=e.debounceResize,o=Sa(e,$be);return b.jsx(Mo,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:a,children:function(s){var l=s.width,c=s.height;return b.jsx(wbe,St({},o,{width:l,height:c,ref:t}))}})});exports.AbstractModalHeader=x0;exports.Alert=Rb;exports.ApprovalState=xD;exports.AuthContext=Qf;exports.Backdrop=cT;exports.BaseModal=aS;exports.BootstrapModalManager=oS;exports.Button=n0;exports.Col=r0;exports.ConfirmContext=kS;exports.ContextButton=uh;exports.CustomSelectInput=Y4;exports.DelegationContext=FS;exports.Documents=tq;exports.Dropdown=W0;exports.Dropdown$1=ys;exports.DropdownDivider=Ug;exports.DropdownItem=Va;exports.DropdownToggle=z0;exports.ENTERED=ea;exports.ENTERING=yi;exports.EXITED=Zi;exports.EXITING=Ad;exports.FaMinus=v9;exports.FaPlus=b9;exports.FaSearch=y9;exports.Fade=da;exports.Fe=yD;exports.FileExtensionIcon=Qk;exports.FloatingLabelInput=dh;exports.Form=oi;exports.FormCheckInput=Yf;exports.FormControl=q$;exports.FormDisabledContext=z4;exports.FormSelect=p0;exports.HelmetContext=B4;exports.HookFormTextAreaInput=F0;exports.HookFormTextInput=Es;exports.HtmlTooltip=US;exports.IconButton=au;exports.InputAnchorContainer=H4;exports.InvalidFeedback=Sh;exports.ListGroup=rS;exports.ListGroupItem=Gf;exports.LoadingContext=Xf;exports.LoginState=PS;exports.LuminusComponentsContext=sn;exports.MdArrowRight=lj;exports.MdCheck=cj;exports.MdCircle=sj;exports.MdClear=Xc;exports.MdOutlineAddCircleOutline=gj;exports.MdOutlineArrowOutward=uj;exports.MdOutlineCameraAlt=Cj;exports.MdOutlineChevronRight=kj;exports.MdOutlineClose=SS;exports.MdOutlineDelete=$S;exports.MdOutlineEdit=$j;exports.MdOutlineExpand=fj;exports.MdOutlineFileUpload=yj;exports.MdOutlineKeyboardArrowLeft=xj;exports.MdOutlineKeyboardArrowRight=wj;exports.MdOutlineKeyboardDoubleArrowLeft=_j;exports.MdOutlineMenu=Tj;exports.MdOutlinePhotoLibrary=Sj;exports.MdOutlineStar=Aj;exports.MdOutlineSubdirectoryArrowRight=Mj;exports.MdSave=oj;exports.MdSaveAs=aj;exports.MdSearch=ij;exports.Me=bme;exports.MiniDetailWrapper=q4;exports.Modal=Zn;exports.ModalContext=b0;exports.NoInputContainer=U4;exports.OverlayTrigger=wS;exports.PageContainer=Cq;exports.PrimaryButton=co;exports.PromptContext=TS;exports.PropTypes=ve;exports.ResponsiveContextDropdown=sT;exports.ResponsiveContextDropdownItem=Tb;exports.RowLabelInput=ou;exports.ShortcutLinksContext=sY;exports.SideContentBar=Jk;exports.SimpleDropdownToggle=B0;exports.SimplePicker=lT;exports.SimpleTooltip=S0;exports.Spinner=_0;exports.TextInput=V4;exports.Tooltip=yS;exports.TransitionWrapper=Xv;exports.Typography=Bn;exports.UserContext=LS;exports.Xe=Cbe;exports.a=Ob;exports.addLeadingZeros=Pt;exports.arrayType=D4;exports.atobUtf8=VS;exports.axios=Xt;exports.buildEmployeeNameString=PD;exports.buildOrgUnitString=LD;exports.buildVehicleNameString=ID;exports.cancelToken=WN;exports.capitalizeFirstLetter=ND;exports.classNames=ce;exports.classes=zg;exports.classes$1=G4;exports.compareDate=zD;exports.compareDateTime=WD;exports.constructFrom=Mi;exports.context=Vf;exports.differenceInCalendarDays=BC;exports.dist=Mb;exports.divWithClassName=Qv;exports.extractErrorsFromResponse=$0;exports.extractFilename=KS;exports.extractPermissionsFromResponse=WS;exports.fixNameIdNulls=BS;exports.format=Yv;exports.formatDate=jD;exports.formatDateTime=DD;exports.formatFileSize=xs;exports.getChildRef=Ls;exports.getDateString=GD;exports.getDaysDifference=UD;exports.getFirstDayOfMonth=YS;exports.getFirstDayOfOffsetMonth=HD;exports.getFirstDayOfYear=qD;exports.getLastDayOfMonth=GS;exports.getLastDayOfOffsetMonth=VD;exports.getLastDayOfYear=YD;exports.getSharedManager=sS;exports.getTimezoneOffsetInMilliseconds=hg;exports.hasOnlyNullValues=zS;exports.hookFormSetServerErrors=_D;exports.isExtensionOpenable=XS;exports.isFileOpenable=ZS;exports.isISODate=qS;exports.isLeavingWindowInSafari=jY;exports.isPast=UC;exports.isPrimitive=Bd;exports.isSafari=Ab;exports.isValidDate=BD;exports.joinStrings=E0;exports.makeDispatch=NY;exports.millisecondsInHour=If;exports.millisecondsInMinute=Vv;exports.millisecondsInWeek=Hv;exports.msToStartOfNextDay=FD;exports.objectType=$i;exports.once=uT;exports.parseISO=Lf;exports.replaceNullValuesOnlyObjectsWithNulls=wD;exports.saveFile=zd;exports.saveFileFromResponse=XD;exports.secondsInDay=qv;exports.secondsInHour=NC;exports.secondsInMinute=g6;exports.secondsInMonth=PC;exports.secondsInQuarter=b6;exports.secondsInWeek=v6;exports.secondsInYear=IC;exports.shortenText=RD;exports.startOfDay=fg;exports.startOfWeek=hs;exports.stringContains=Rg;exports.stringSearchWithin=k0;exports.stringStartsWith=QS;exports.stringType=N0;exports.style=la;exports.t=fh;exports.te=Ide;exports.toDate=Hn;exports.transitionEndListener=e$;exports.triggerBrowserReflow=t$;exports.trimIsoDate=Jf;exports.truncateText=HS;exports.u=Xk;exports.urlfyArray=Ag;exports.useAuth=$4;exports.useAxios=oh;exports.useBootstrapBreakpoints=YC;exports.useBootstrapMinBreakpoint=GC;exports.useBootstrapPrefix=dt;exports.useClickOutside=I4;exports.useClipboard=F4;exports.useCol=u$;exports.useConfirm=j0;exports.useCookies=R0;exports.useEventCallback=ua;exports.useFormControlType=I0;exports.useFormDisabledContext=ch;exports.useIsomorphicEffect=f0;exports.useKeyPress=L4;exports.useNotifications=ah;exports.usePermissions=P4;exports.usePrompt=OS;exports.useSwipeable=Eb;exports.useWindowSize=iu;exports.useZodSchemaTypes=lh;exports.z=Pl;