1mpacto-react-ui 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
- "use strict";var qC=Object.defineProperty;var QC=(e,t,n)=>t in e?qC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var re=(e,t,n)=>QC(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("react/jsx-runtime"),w=require("react"),Xa=require("react-dom");function Sb(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 G=Sb(w),Eb=Sb(Xa);function _n(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 yi(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const Ib=6048e5,ew=864e5;let tw={};function su(){return tw}function aa(e,t){var s,l,u,c;const n=su(),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??((c=(u=n.locale)==null?void 0:u.options)==null?void 0:c.weekStartsOn)??0,i=_n(e),o=i.getDay(),a=(o<r?7:0)+o-r;return i.setDate(i.getDate()-a),i.setHours(0,0,0,0),i}function bl(e){return aa(e,{weekStartsOn:1})}function _b(e){const t=_n(e),n=t.getFullYear(),r=yi(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const i=bl(r),o=yi(e,0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);const a=bl(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function ug(e){const t=_n(e);return t.setHours(0,0,0,0),t}function cg(e){const t=_n(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 nw(e,t){const n=ug(e),r=ug(t),i=+n-cg(n),o=+r-cg(r);return Math.round((i-o)/ew)}function rw(e){const t=_b(e),n=yi(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),bl(n)}function iw(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function ow(e){if(!iw(e)&&typeof e!="number")return!1;const t=_n(e);return!isNaN(Number(t))}function aw(e){const t=_n(e),n=yi(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const sw={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"}},lw=(e,t,n)=>{let r;const i=sw[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 fr(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const uw={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},cw={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dw={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},fw={date:fr({formats:uw,defaultWidth:"full"}),time:fr({formats:cw,defaultWidth:"full"}),dateTime:fr({formats:dw,defaultWidth:"full"})},hw={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},gw=(e,t,n,r)=>hw[e];function _t(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):a;i=e.formattingValues[s]||e.formattingValues[a]}else{const a=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[s]||e.values[a]}const o=e.argumentCallback?e.argumentCallback(t):t;return i[o]}}const mw={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},pw={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},bw={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"]},vw={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"]},yw={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"}},xw={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"}},Cw=(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"},ww={ordinalNumber:Cw,era:_t({values:mw,defaultWidth:"wide"}),quarter:_t({values:pw,defaultWidth:"wide",argumentCallback:e=>e-1}),month:_t({values:bw,defaultWidth:"wide"}),day:_t({values:vw,defaultWidth:"wide"}),dayPeriod:_t({values:yw,defaultWidth:"wide",formattingValues:xw,defaultFormattingWidth:"wide"})};function $t(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const a=o[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?Sw(s,d=>d.test(a)):Dw(s,d=>d.test(a));let u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const c=t.slice(a.length);return{value:u,rest:c}}}function Dw(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Sw(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function mf(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],o=t.match(e.parsePattern);if(!o)return null;let a=e.valueCallback?e.valueCallback(o[0]):o[0];a=n.valueCallback?n.valueCallback(a):a;const s=t.slice(i.length);return{value:a,rest:s}}}const Ew=/^(\d+)(th|st|nd|rd)?/i,Iw=/\d+/i,_w={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},$w={any:[/^b/i,/^(a|c)/i]},Rw={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Aw={any:[/1/i,/2/i,/3/i,/4/i]},Fw={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},Pw={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]},Tw={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},kw={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]},Mw={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},Bw={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}},Ow={ordinalNumber:mf({matchPattern:Ew,parsePattern:Iw,valueCallback:e=>parseInt(e,10)}),era:$t({matchPatterns:_w,defaultMatchWidth:"wide",parsePatterns:$w,defaultParseWidth:"any"}),quarter:$t({matchPatterns:Rw,defaultMatchWidth:"wide",parsePatterns:Aw,defaultParseWidth:"any",valueCallback:e=>e+1}),month:$t({matchPatterns:Fw,defaultMatchWidth:"wide",parsePatterns:Pw,defaultParseWidth:"any"}),day:$t({matchPatterns:Tw,defaultMatchWidth:"wide",parsePatterns:kw,defaultParseWidth:"any"}),dayPeriod:$t({matchPatterns:Mw,defaultMatchWidth:"any",parsePatterns:Bw,defaultParseWidth:"any"})},pf={code:"en-US",formatDistance:lw,formatLong:fw,formatRelative:gw,localize:ww,match:Ow,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Nw(e){const t=_n(e);return nw(t,aw(t))+1}function Vw(e){const t=_n(e),n=+bl(t)-+rw(t);return Math.round(n/Ib)+1}function $b(e,t){var c,d,h,f;const n=_n(e),r=n.getFullYear(),i=su(),o=(t==null?void 0:t.firstWeekContainsDate)??((d=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:d.firstWeekContainsDate)??i.firstWeekContainsDate??((f=(h=i.locale)==null?void 0:h.options)==null?void 0:f.firstWeekContainsDate)??1,a=yi(e,0);a.setFullYear(r+1,0,o),a.setHours(0,0,0,0);const s=aa(a,t),l=yi(e,0);l.setFullYear(r,0,o),l.setHours(0,0,0,0);const u=aa(l,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function Lw(e,t){var s,l,u,c;const n=su(),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??((c=(u=n.locale)==null?void 0:u.options)==null?void 0:c.firstWeekContainsDate)??1,i=$b(e,t),o=yi(e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),aa(o,t)}function jw(e,t){const n=_n(e),r=+aa(n,t)-+Lw(n,t);return Math.round(r/Ib)+1}function Oe(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const xr={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Oe(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Oe(n+1,2)},d(e,t){return Oe(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 Oe(e.getHours()%12||12,t.length)},H(e,t){return Oe(e.getHours(),t.length)},m(e,t){return Oe(e.getMinutes(),t.length)},s(e,t){return Oe(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return Oe(i,t.length)}},Bi={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},dg={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 xr.y(e,t)},Y:function(e,t,n,r){const i=$b(e,r),o=i>0?i:1-i;if(t==="YY"){const a=o%100;return Oe(a,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):Oe(o,t.length)},R:function(e,t){const n=_b(e);return Oe(n,t.length)},u:function(e,t){const n=e.getFullYear();return Oe(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 Oe(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 Oe(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 xr.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 Oe(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=jw(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):Oe(i,t.length)},I:function(e,t,n){const r=Vw(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Oe(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):xr.d(e,t)},D:function(e,t,n){const r=Nw(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Oe(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Oe(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Oe(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return Oe(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=Bi.noon:r===0?i=Bi.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=Bi.evening:r>=12?i=Bi.afternoon:r>=4?i=Bi.morning:i=Bi.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 xr.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):xr.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Oe(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Oe(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):xr.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):xr.s(e,t)},S:function(e,t){return xr.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return hg(r);case"XXXX":case"XX":return Qr(r);case"XXXXX":case"XXX":default:return Qr(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return hg(r);case"xxxx":case"xx":return Qr(r);case"xxxxx":case"xxx":default:return Qr(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+fg(r,":");case"OOOO":default:return"GMT"+Qr(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+fg(r,":");case"zzzz":default:return"GMT"+Qr(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return Oe(r,t.length)},T:function(e,t,n){const r=e.getTime();return Oe(r,t.length)}};function fg(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return o===0?n+String(i):n+String(i)+t+Oe(o,2)}function hg(e,t){return e%60===0?(e>0?"-":"+")+Oe(Math.abs(e)/60,2):Qr(e,t)}function Qr(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Oe(Math.trunc(r/60),2),o=Oe(r%60,2);return n+i+t+o}const gg=(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"})}},Rb=(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"})}},Hw=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return gg(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",gg(r,t)).replace("{{time}}",Rb(i,t))},Ww={p:Rb,P:Hw},zw=/^D+$/,Gw=/^Y+$/,Zw=["D","DD","YY","YYYY"];function Xw(e){return zw.test(e)}function Yw(e){return Gw.test(e)}function Uw(e,t,n){const r=Jw(e,t,n);if(console.warn(r),Zw.includes(e))throw new RangeError(r)}function Jw(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 Kw=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,qw=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Qw=/^'([^]*?)'?$/,e2=/''/g,t2=/[a-zA-Z]/;function sa(e,t,n){var c,d,h,f,g,m,b,y;const r=su(),i=(n==null?void 0:n.locale)??r.locale??pf,o=(n==null?void 0:n.firstWeekContainsDate)??((d=(c=n==null?void 0:n.locale)==null?void 0:c.options)==null?void 0:d.firstWeekContainsDate)??r.firstWeekContainsDate??((f=(h=r.locale)==null?void 0:h.options)==null?void 0:f.firstWeekContainsDate)??1,a=(n==null?void 0:n.weekStartsOn)??((m=(g=n==null?void 0:n.locale)==null?void 0:g.options)==null?void 0:m.weekStartsOn)??r.weekStartsOn??((y=(b=r.locale)==null?void 0:b.options)==null?void 0:y.weekStartsOn)??0,s=_n(e);if(!ow(s))throw new RangeError("Invalid time value");let l=t.match(qw).map(v=>{const x=v[0];if(x==="p"||x==="P"){const C=Ww[x];return C(v,i.formatLong)}return v}).join("").match(Kw).map(v=>{if(v==="''")return{isToken:!1,value:"'"};const x=v[0];if(x==="'")return{isToken:!1,value:n2(v)};if(dg[x])return{isToken:!0,value:v};if(x.match(t2))throw new RangeError("Format string contains an unescaped latin alphabet character `"+x+"`");return{isToken:!1,value:v}});i.localize.preprocessor&&(l=i.localize.preprocessor(s,l));const u={firstWeekContainsDate:o,weekStartsOn:a,locale:i};return l.map(v=>{if(!v.isToken)return v.value;const x=v.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&Yw(x)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&Xw(x))&&Uw(x,t,String(e));const C=dg[x[0]];return C(s,x,i.localize,u)}).join("")}function n2(e){const t=e.match(Qw);return t?t[1].replace(e2,"'"):e}const r2={lessThanXSeconds:{one:"kurang dari 1 detik",other:"kurang dari {{count}} detik"},xSeconds:{one:"1 detik",other:"{{count}} detik"},halfAMinute:"setengah menit",lessThanXMinutes:{one:"kurang dari 1 menit",other:"kurang dari {{count}} menit"},xMinutes:{one:"1 menit",other:"{{count}} menit"},aboutXHours:{one:"sekitar 1 jam",other:"sekitar {{count}} jam"},xHours:{one:"1 jam",other:"{{count}} jam"},xDays:{one:"1 hari",other:"{{count}} hari"},aboutXWeeks:{one:"sekitar 1 minggu",other:"sekitar {{count}} minggu"},xWeeks:{one:"1 minggu",other:"{{count}} minggu"},aboutXMonths:{one:"sekitar 1 bulan",other:"sekitar {{count}} bulan"},xMonths:{one:"1 bulan",other:"{{count}} bulan"},aboutXYears:{one:"sekitar 1 tahun",other:"sekitar {{count}} tahun"},xYears:{one:"1 tahun",other:"{{count}} tahun"},overXYears:{one:"lebih dari 1 tahun",other:"lebih dari {{count}} tahun"},almostXYears:{one:"hampir 1 tahun",other:"hampir {{count}} tahun"}},i2=(e,t,n)=>{let r;const i=r2[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?"dalam waktu "+r:r+" yang lalu":r},o2={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"d/M/yyyy"},a2={full:"HH.mm.ss",long:"HH.mm.ss",medium:"HH.mm",short:"HH.mm"},s2={full:"{{date}} 'pukul' {{time}}",long:"{{date}} 'pukul' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},l2={date:fr({formats:o2,defaultWidth:"full"}),time:fr({formats:a2,defaultWidth:"full"}),dateTime:fr({formats:s2,defaultWidth:"full"})},u2={lastWeek:"eeee 'lalu pukul' p",yesterday:"'Kemarin pukul' p",today:"'Hari ini pukul' p",tomorrow:"'Besok pukul' p",nextWeek:"eeee 'pukul' p",other:"P"},c2=(e,t,n,r)=>u2[e],d2={narrow:["SM","M"],abbreviated:["SM","M"],wide:["Sebelum Masehi","Masehi"]},f2={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["Kuartal ke-1","Kuartal ke-2","Kuartal ke-3","Kuartal ke-4"]},h2={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Agt","Sep","Okt","Nov","Des"],wide:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"]},g2={narrow:["M","S","S","R","K","J","S"],short:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],abbreviated:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],wide:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"]},m2={narrow:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},wide:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"}},p2={narrow:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},wide:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"}},b2=(e,t)=>"ke-"+Number(e),v2={ordinalNumber:b2,era:_t({values:d2,defaultWidth:"wide"}),quarter:_t({values:f2,defaultWidth:"wide",argumentCallback:e=>e-1}),month:_t({values:h2,defaultWidth:"wide"}),day:_t({values:g2,defaultWidth:"wide"}),dayPeriod:_t({values:m2,defaultWidth:"wide",formattingValues:p2,defaultFormattingWidth:"wide"})},y2=/^ke-(\d+)?/i,x2=/\d+/i,C2={narrow:/^(sm|m)/i,abbreviated:/^(s\.?\s?m\.?|s\.?\s?e\.?\s?u\.?|m\.?|e\.?\s?u\.?)/i,wide:/^(sebelum masehi|sebelum era umum|masehi|era umum)/i},w2={any:[/^s/i,/^(m|e)/i]},D2={narrow:/^[1234]/i,abbreviated:/^K-?\s[1234]/i,wide:/^Kuartal ke-?\s?[1234]/i},S2={any:[/1/i,/2/i,/3/i,/4/i]},E2={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|mei|jun|jul|agt|sep|okt|nov|des)/i,wide:/^(januari|februari|maret|april|mei|juni|juli|agustus|september|oktober|november|desember)/i},I2={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,/^ma/i,/^ap/i,/^me/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},_2={narrow:/^[srkjm]/i,short:/^(min|sen|sel|rab|kam|jum|sab)/i,abbreviated:/^(min|sen|sel|rab|kam|jum|sab)/i,wide:/^(minggu|senin|selasa|rabu|kamis|jumat|sabtu)/i},$2={narrow:[/^m/i,/^s/i,/^s/i,/^r/i,/^k/i,/^j/i,/^s/i],any:[/^m/i,/^sen/i,/^sel/i,/^r/i,/^k/i,/^j/i,/^sa/i]},R2={narrow:/^(a|p|tengah m|tengah h|(di(\swaktu)?) (pagi|siang|sore|malam))/i,any:/^([ap]\.?\s?m\.?|tengah malam|tengah hari|(di(\swaktu)?) (pagi|siang|sore|malam))/i},A2={any:{am:/^a/i,pm:/^pm/i,midnight:/^tengah m/i,noon:/^tengah h/i,morning:/pagi/i,afternoon:/siang/i,evening:/sore/i,night:/malam/i}},F2={ordinalNumber:mf({matchPattern:y2,parsePattern:x2,valueCallback:e=>parseInt(e,10)}),era:$t({matchPatterns:C2,defaultMatchWidth:"wide",parsePatterns:w2,defaultParseWidth:"any"}),quarter:$t({matchPatterns:D2,defaultMatchWidth:"wide",parsePatterns:S2,defaultParseWidth:"any",valueCallback:e=>e+1}),month:$t({matchPatterns:E2,defaultMatchWidth:"wide",parsePatterns:I2,defaultParseWidth:"any"}),day:$t({matchPatterns:_2,defaultMatchWidth:"wide",parsePatterns:$2,defaultParseWidth:"any"}),dayPeriod:$t({matchPatterns:R2,defaultMatchWidth:"any",parsePatterns:A2,defaultParseWidth:"any"})},vl={code:"id",formatDistance:i2,formatLong:l2,formatRelative:c2,localize:v2,match:F2,options:{weekStartsOn:1,firstWeekContainsDate:1}},P2={lessThanXSeconds:{one:"minder dan een seconde",other:"minder dan {{count}} seconden"},xSeconds:{one:"1 seconde",other:"{{count}} seconden"},halfAMinute:"een halve minuut",lessThanXMinutes:{one:"minder dan een minuut",other:"minder dan {{count}} minuten"},xMinutes:{one:"een minuut",other:"{{count}} minuten"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} uur"},xHours:{one:"1 uur",other:"{{count}} uur"},xDays:{one:"1 dag",other:"{{count}} dagen"},aboutXWeeks:{one:"ongeveer 1 week",other:"ongeveer {{count}} weken"},xWeeks:{one:"1 week",other:"{{count}} weken"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maanden"},xMonths:{one:"1 maand",other:"{{count}} maanden"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer dan 1 jaar",other:"meer dan {{count}} jaar"},almostXYears:{one:"bijna 1 jaar",other:"bijna {{count}} jaar"}},T2=(e,t,n)=>{let r;const i=P2[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"over "+r:r+" geleden":r},k2={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"},M2={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},B2={full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},O2={date:fr({formats:k2,defaultWidth:"full"}),time:fr({formats:M2,defaultWidth:"full"}),dateTime:fr({formats:B2,defaultWidth:"full"})},N2={lastWeek:"'afgelopen' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"},V2=(e,t,n,r)=>N2[e],L2={narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]},j2={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]},H2={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},W2={narrow:["Z","M","D","W","D","V","Z"],short:["zo","ma","di","wo","do","vr","za"],abbreviated:["zon","maa","din","woe","don","vri","zat"],wide:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},z2={narrow:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},abbreviated:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},wide:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"}},G2=(e,t)=>Number(e)+"e",Z2={ordinalNumber:G2,era:_t({values:L2,defaultWidth:"wide"}),quarter:_t({values:j2,defaultWidth:"wide",argumentCallback:e=>e-1}),month:_t({values:H2,defaultWidth:"wide"}),day:_t({values:W2,defaultWidth:"wide"}),dayPeriod:_t({values:z2,defaultWidth:"wide"})},X2=/^(\d+)e?/i,Y2=/\d+/i,U2={narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},J2={any:[/^v/,/^n/]},K2={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},q2={any:[/1/i,/2/i,/3/i,/4/i]},Q2={narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i},eD={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:[/^jan/i,/^feb/i,/^m(r|a)/i,/^apr/i,/^mei/i,/^jun/i,/^jul/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i]},tD={narrow:/^[zmdwv]/i,short:/^(zo|ma|di|wo|do|vr|za)/i,abbreviated:/^(zon|maa|din|woe|don|vri|zat)/i,wide:/^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i},nD={narrow:[/^z/i,/^m/i,/^d/i,/^w/i,/^d/i,/^v/i,/^z/i],any:[/^zo/i,/^ma/i,/^di/i,/^wo/i,/^do/i,/^vr/i,/^za/i]},rD={any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},iD={any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^het middaguur/i,morning:/ochtend/i,afternoon:/middag/i,evening:/avond/i,night:/nacht/i}},oD={ordinalNumber:mf({matchPattern:X2,parsePattern:Y2,valueCallback:e=>parseInt(e,10)}),era:$t({matchPatterns:U2,defaultMatchWidth:"wide",parsePatterns:J2,defaultParseWidth:"any"}),quarter:$t({matchPatterns:K2,defaultMatchWidth:"wide",parsePatterns:q2,defaultParseWidth:"any",valueCallback:e=>e+1}),month:$t({matchPatterns:Q2,defaultMatchWidth:"wide",parsePatterns:eD,defaultParseWidth:"any"}),day:$t({matchPatterns:tD,defaultMatchWidth:"wide",parsePatterns:nD,defaultParseWidth:"any"}),dayPeriod:$t({matchPatterns:rD,defaultMatchWidth:"any",parsePatterns:iD,defaultParseWidth:"any"})},Ab={code:"nl",formatDistance:T2,formatLong:O2,formatRelative:V2,localize:Z2,match:oD,options:{weekStartsOn:1,firstWeekContainsDate:4}};var aD=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,Wu=Math.ceil,an=Math.floor,Bt="[BigNumber Error] ",mg=Bt+"Number primitive has more than 15 significant digits: ",mn=1e14,be=14,pg=9007199254740991,zu=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],Cr=1e7,jt=1e9;function Fb(e){var t,n,r,i=v.prototype={constructor:v,toString:null,valueOf:null},o=new v(1),a=20,s=4,l=-7,u=21,c=-1e7,d=1e7,h=!1,f=1,g=0,m={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},b="0123456789abcdefghijklmnopqrstuvwxyz",y=!0;function v(p,S){var $,_,A,k,R,M,P,F,B=this;if(!(B instanceof v))return new v(p,S);if(S==null){if(p&&p._isBigNumber===!0){B.s=p.s,!p.c||p.e>d?B.c=B.e=null:p.e<c?B.c=[B.e=0]:(B.e=p.e,B.c=p.c.slice());return}if((M=typeof p=="number")&&p*0==0){if(B.s=1/p<0?(p=-p,-1):1,p===~~p){for(k=0,R=p;R>=10;R/=10,k++);k>d?B.c=B.e=null:(B.e=k,B.c=[p]);return}F=String(p)}else{if(!aD.test(F=String(p)))return r(B,F,M);B.s=F.charCodeAt(0)==45?(F=F.slice(1),-1):1}(k=F.indexOf("."))>-1&&(F=F.replace(".","")),(R=F.search(/e/i))>0?(k<0&&(k=R),k+=+F.slice(R+1),F=F.substring(0,R)):k<0&&(k=F.length)}else{if(Ze(S,2,b.length,"Base"),S==10&&y)return B=new v(p),I(B,a+B.e+1,s);if(F=String(p),M=typeof p=="number"){if(p*0!=0)return r(B,F,M,S);if(B.s=1/p<0?(F=F.slice(1),-1):1,v.DEBUG&&F.replace(/^0\.0*|\./,"").length>15)throw Error(mg+p)}else B.s=F.charCodeAt(0)===45?(F=F.slice(1),-1):1;for($=b.slice(0,S),k=R=0,P=F.length;R<P;R++)if($.indexOf(_=F.charAt(R))<0){if(_=="."){if(R>k){k=P;continue}}else if(!A&&(F==F.toUpperCase()&&(F=F.toLowerCase())||F==F.toLowerCase()&&(F=F.toUpperCase()))){A=!0,R=-1,k=0;continue}return r(B,String(p),M,S)}M=!1,F=n(F,S,10,B.s),(k=F.indexOf("."))>-1?F=F.replace(".",""):k=F.length}for(R=0;F.charCodeAt(R)===48;R++);for(P=F.length;F.charCodeAt(--P)===48;);if(F=F.slice(R,++P)){if(P-=R,M&&v.DEBUG&&P>15&&(p>pg||p!==an(p)))throw Error(mg+B.s*p);if((k=k-R-1)>d)B.c=B.e=null;else if(k<c)B.c=[B.e=0];else{if(B.e=k,B.c=[],R=(k+1)%be,k<0&&(R+=be),R<P){for(R&&B.c.push(+F.slice(0,R)),P-=be;R<P;)B.c.push(+F.slice(R,R+=be));R=be-(F=F.slice(R)).length}else R-=P;for(;R--;F+="0");B.c.push(+F)}}else B.c=[B.e=0]}v.clone=Fb,v.ROUND_UP=0,v.ROUND_DOWN=1,v.ROUND_CEIL=2,v.ROUND_FLOOR=3,v.ROUND_HALF_UP=4,v.ROUND_HALF_DOWN=5,v.ROUND_HALF_EVEN=6,v.ROUND_HALF_CEIL=7,v.ROUND_HALF_FLOOR=8,v.EUCLID=9,v.config=v.set=function(p){var S,$;if(p!=null)if(typeof p=="object"){if(p.hasOwnProperty(S="DECIMAL_PLACES")&&($=p[S],Ze($,0,jt,S),a=$),p.hasOwnProperty(S="ROUNDING_MODE")&&($=p[S],Ze($,0,8,S),s=$),p.hasOwnProperty(S="EXPONENTIAL_AT")&&($=p[S],$&&$.pop?(Ze($[0],-1e9,0,S),Ze($[1],0,jt,S),l=$[0],u=$[1]):(Ze($,-1e9,jt,S),l=-(u=$<0?-$:$))),p.hasOwnProperty(S="RANGE"))if($=p[S],$&&$.pop)Ze($[0],-1e9,-1,S),Ze($[1],1,jt,S),c=$[0],d=$[1];else if(Ze($,-1e9,jt,S),$)c=-(d=$<0?-$:$);else throw Error(Bt+S+" cannot be zero: "+$);if(p.hasOwnProperty(S="CRYPTO"))if($=p[S],$===!!$)if($)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))h=$;else throw h=!$,Error(Bt+"crypto unavailable");else h=$;else throw Error(Bt+S+" not true or false: "+$);if(p.hasOwnProperty(S="MODULO_MODE")&&($=p[S],Ze($,0,9,S),f=$),p.hasOwnProperty(S="POW_PRECISION")&&($=p[S],Ze($,0,jt,S),g=$),p.hasOwnProperty(S="FORMAT"))if($=p[S],typeof $=="object")m=$;else throw Error(Bt+S+" not an object: "+$);if(p.hasOwnProperty(S="ALPHABET"))if($=p[S],typeof $=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test($))y=$.slice(0,10)=="0123456789",b=$;else throw Error(Bt+S+" invalid: "+$)}else throw Error(Bt+"Object expected: "+p);return{DECIMAL_PLACES:a,ROUNDING_MODE:s,EXPONENTIAL_AT:[l,u],RANGE:[c,d],CRYPTO:h,MODULO_MODE:f,POW_PRECISION:g,FORMAT:m,ALPHABET:b}},v.isBigNumber=function(p){if(!p||p._isBigNumber!==!0)return!1;if(!v.DEBUG)return!0;var S,$,_=p.c,A=p.e,k=p.s;e:if({}.toString.call(_)=="[object Array]"){if((k===1||k===-1)&&A>=-1e9&&A<=jt&&A===an(A)){if(_[0]===0){if(A===0&&_.length===1)return!0;break e}if(S=(A+1)%be,S<1&&(S+=be),String(_[0]).length==S){for(S=0;S<_.length;S++)if($=_[S],$<0||$>=mn||$!==an($))break e;if($!==0)return!0}}}else if(_===null&&A===null&&(k===null||k===1||k===-1))return!0;throw Error(Bt+"Invalid BigNumber: "+p)},v.maximum=v.max=function(){return C(arguments,-1)},v.minimum=v.min=function(){return C(arguments,1)},v.random=function(){var p=9007199254740992,S=Math.random()*p&2097151?function(){return an(Math.random()*p)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function($){var _,A,k,R,M,P=0,F=[],B=new v(o);if($==null?$=a:Ze($,0,jt),R=Wu($/be),h)if(crypto.getRandomValues){for(_=crypto.getRandomValues(new Uint32Array(R*=2));P<R;)M=_[P]*131072+(_[P+1]>>>11),M>=9e15?(A=crypto.getRandomValues(new Uint32Array(2)),_[P]=A[0],_[P+1]=A[1]):(F.push(M%1e14),P+=2);P=R/2}else if(crypto.randomBytes){for(_=crypto.randomBytes(R*=7);P<R;)M=(_[P]&31)*281474976710656+_[P+1]*1099511627776+_[P+2]*4294967296+_[P+3]*16777216+(_[P+4]<<16)+(_[P+5]<<8)+_[P+6],M>=9e15?crypto.randomBytes(7).copy(_,P):(F.push(M%1e14),P+=7);P=R/7}else throw h=!1,Error(Bt+"crypto unavailable");if(!h)for(;P<R;)M=S(),M<9e15&&(F[P++]=M%1e14);for(R=F[--P],$%=be,R&&$&&(M=zu[be-$],F[P]=an(R/M)*M);F[P]===0;F.pop(),P--);if(P<0)F=[k=0];else{for(k=-1;F[0]===0;F.splice(0,1),k-=be);for(P=1,M=F[0];M>=10;M/=10,P++);P<be&&(k-=be-P)}return B.e=k,B.c=F,B}}(),v.sum=function(){for(var p=1,S=arguments,$=new v(S[0]);p<S.length;)$=$.plus(S[p++]);return $},n=function(){var p="0123456789";function S($,_,A,k){for(var R,M=[0],P,F=0,B=$.length;F<B;){for(P=M.length;P--;M[P]*=_);for(M[0]+=k.indexOf($.charAt(F++)),R=0;R<M.length;R++)M[R]>A-1&&(M[R+1]==null&&(M[R+1]=0),M[R+1]+=M[R]/A|0,M[R]%=A)}return M.reverse()}return function($,_,A,k,R){var M,P,F,B,N,O,L,W,Z=$.indexOf("."),H=a,j=s;for(Z>=0&&(B=g,g=0,$=$.replace(".",""),W=new v(_),O=W.pow($.length-Z),g=B,W.c=S(Yn(tn(O.c),O.e,"0"),10,A,p),W.e=W.c.length),L=S($,_,A,R?(M=b,p):(M=p,b)),F=B=L.length;L[--B]==0;L.pop());if(!L[0])return M.charAt(0);if(Z<0?--F:(O.c=L,O.e=F,O.s=k,O=t(O,W,H,j,A),L=O.c,N=O.r,F=O.e),P=F+H+1,Z=L[P],B=A/2,N=N||P<0||L[P+1]!=null,N=j<4?(Z!=null||N)&&(j==0||j==(O.s<0?3:2)):Z>B||Z==B&&(j==4||N||j==6&&L[P-1]&1||j==(O.s<0?8:7)),P<1||!L[0])$=N?Yn(M.charAt(1),-H,M.charAt(0)):M.charAt(0);else{if(L.length=P,N)for(--A;++L[--P]>A;)L[P]=0,P||(++F,L=[1].concat(L));for(B=L.length;!L[--B];);for(Z=0,$="";Z<=B;$+=M.charAt(L[Z++]));$=Yn($,F,M.charAt(0))}return $}}(),t=function(){function p(_,A,k){var R,M,P,F,B=0,N=_.length,O=A%Cr,L=A/Cr|0;for(_=_.slice();N--;)P=_[N]%Cr,F=_[N]/Cr|0,R=L*P+F*O,M=O*P+R%Cr*Cr+B,B=(M/k|0)+(R/Cr|0)+L*F,_[N]=M%k;return B&&(_=[B].concat(_)),_}function S(_,A,k,R){var M,P;if(k!=R)P=k>R?1:-1;else for(M=P=0;M<k;M++)if(_[M]!=A[M]){P=_[M]>A[M]?1:-1;break}return P}function $(_,A,k,R){for(var M=0;k--;)_[k]-=M,M=_[k]<A[k]?1:0,_[k]=M*R+_[k]-A[k];for(;!_[0]&&_.length>1;_.splice(0,1));}return function(_,A,k,R,M){var P,F,B,N,O,L,W,Z,H,j,V,z,Y,K,Q,ee,X,ue=_.s==A.s?1:-1,fe=_.c,he=A.c;if(!fe||!fe[0]||!he||!he[0])return new v(!_.s||!A.s||(fe?he&&fe[0]==he[0]:!he)?NaN:fe&&fe[0]==0||!he?ue*0:ue/0);for(Z=new v(ue),H=Z.c=[],F=_.e-A.e,ue=k+F+1,M||(M=mn,F=sn(_.e/be)-sn(A.e/be),ue=ue/be|0),B=0;he[B]==(fe[B]||0);B++);if(he[B]>(fe[B]||0)&&F--,ue<0)H.push(1),N=!0;else{for(K=fe.length,ee=he.length,B=0,ue+=2,O=an(M/(he[0]+1)),O>1&&(he=p(he,O,M),fe=p(fe,O,M),ee=he.length,K=fe.length),Y=ee,j=fe.slice(0,ee),V=j.length;V<ee;j[V++]=0);X=he.slice(),X=[0].concat(X),Q=he[0],he[1]>=M/2&&Q++;do{if(O=0,P=S(he,j,ee,V),P<0){if(z=j[0],ee!=V&&(z=z*M+(j[1]||0)),O=an(z/Q),O>1)for(O>=M&&(O=M-1),L=p(he,O,M),W=L.length,V=j.length;S(L,j,W,V)==1;)O--,$(L,ee<W?X:he,W,M),W=L.length,P=1;else O==0&&(P=O=1),L=he.slice(),W=L.length;if(W<V&&(L=[0].concat(L)),$(j,L,V,M),V=j.length,P==-1)for(;S(he,j,ee,V)<1;)O++,$(j,ee<V?X:he,V,M),V=j.length}else P===0&&(O++,j=[0]);H[B++]=O,j[0]?j[V++]=fe[Y]||0:(j=[fe[Y]],V=1)}while((Y++<K||j[0]!=null)&&ue--);N=j[0]!=null,H[0]||H.splice(0,1)}if(M==mn){for(B=1,ue=H[0];ue>=10;ue/=10,B++);I(Z,k+(Z.e=B+F*be-1)+1,R,N)}else Z.e=F,Z.r=+N;return Z}}();function x(p,S,$,_){var A,k,R,M,P;if($==null?$=s:Ze($,0,8),!p.c)return p.toString();if(A=p.c[0],R=p.e,S==null)P=tn(p.c),P=_==1||_==2&&(R<=l||R>=u)?cs(P,R):Yn(P,R,"0");else if(p=I(new v(p),S,$),k=p.e,P=tn(p.c),M=P.length,_==1||_==2&&(S<=k||k<=l)){for(;M<S;P+="0",M++);P=cs(P,k)}else if(S-=R,P=Yn(P,k,"0"),k+1>M){if(--S>0)for(P+=".";S--;P+="0");}else if(S+=k-M,S>0)for(k+1==M&&(P+=".");S--;P+="0");return p.s<0&&A?"-"+P:P}function C(p,S){for(var $,_,A=1,k=new v(p[0]);A<p.length;A++)_=new v(p[A]),(!_.s||($=Xr(k,_))===S||$===0&&k.s===S)&&(k=_);return k}function D(p,S,$){for(var _=1,A=S.length;!S[--A];S.pop());for(A=S[0];A>=10;A/=10,_++);return($=_+$*be-1)>d?p.c=p.e=null:$<c?p.c=[p.e=0]:(p.e=$,p.c=S),p}r=function(){var p=/^(-?)0([xbo])(?=\w[\w.]*$)/i,S=/^([^.]+)\.$/,$=/^\.([^.]+)$/,_=/^-?(Infinity|NaN)$/,A=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(k,R,M,P){var F,B=M?R:R.replace(A,"");if(_.test(B))k.s=isNaN(B)?null:B<0?-1:1;else{if(!M&&(B=B.replace(p,function(N,O,L){return F=(L=L.toLowerCase())=="x"?16:L=="b"?2:8,!P||P==F?O:N}),P&&(F=P,B=B.replace(S,"$1").replace($,"0.$1")),R!=B))return new v(B,F);if(v.DEBUG)throw Error(Bt+"Not a"+(P?" base "+P:"")+" number: "+R);k.s=null}k.c=k.e=null}}();function I(p,S,$,_){var A,k,R,M,P,F,B,N=p.c,O=zu;if(N){e:{for(A=1,M=N[0];M>=10;M/=10,A++);if(k=S-A,k<0)k+=be,R=S,P=N[F=0],B=an(P/O[A-R-1]%10);else if(F=Wu((k+1)/be),F>=N.length)if(_){for(;N.length<=F;N.push(0));P=B=0,A=1,k%=be,R=k-be+1}else break e;else{for(P=M=N[F],A=1;M>=10;M/=10,A++);k%=be,R=k-be+A,B=R<0?0:an(P/O[A-R-1]%10)}if(_=_||S<0||N[F+1]!=null||(R<0?P:P%O[A-R-1]),_=$<4?(B||_)&&($==0||$==(p.s<0?3:2)):B>5||B==5&&($==4||_||$==6&&(k>0?R>0?P/O[A-R]:0:N[F-1])%10&1||$==(p.s<0?8:7)),S<1||!N[0])return N.length=0,_?(S-=p.e+1,N[0]=O[(be-S%be)%be],p.e=-S||0):N[0]=p.e=0,p;if(k==0?(N.length=F,M=1,F--):(N.length=F+1,M=O[be-k],N[F]=R>0?an(P/O[A-R]%O[R])*M:0),_)for(;;)if(F==0){for(k=1,R=N[0];R>=10;R/=10,k++);for(R=N[0]+=M,M=1;R>=10;R/=10,M++);k!=M&&(p.e++,N[0]==mn&&(N[0]=1));break}else{if(N[F]+=M,N[F]!=mn)break;N[F--]=0,M=1}for(k=N.length;N[--k]===0;N.pop());}p.e>d?p.c=p.e=null:p.e<c&&(p.c=[p.e=0])}return p}function T(p){var S,$=p.e;return $===null?p.toString():(S=tn(p.c),S=$<=l||$>=u?cs(S,$):Yn(S,$,"0"),p.s<0?"-"+S:S)}return i.absoluteValue=i.abs=function(){var p=new v(this);return p.s<0&&(p.s=1),p},i.comparedTo=function(p,S){return Xr(this,new v(p,S))},i.decimalPlaces=i.dp=function(p,S){var $,_,A,k=this;if(p!=null)return Ze(p,0,jt),S==null?S=s:Ze(S,0,8),I(new v(k),p+k.e+1,S);if(!($=k.c))return null;if(_=((A=$.length-1)-sn(this.e/be))*be,A=$[A])for(;A%10==0;A/=10,_--);return _<0&&(_=0),_},i.dividedBy=i.div=function(p,S){return t(this,new v(p,S),a,s)},i.dividedToIntegerBy=i.idiv=function(p,S){return t(this,new v(p,S),0,1)},i.exponentiatedBy=i.pow=function(p,S){var $,_,A,k,R,M,P,F,B,N=this;if(p=new v(p),p.c&&!p.isInteger())throw Error(Bt+"Exponent not an integer: "+T(p));if(S!=null&&(S=new v(S)),M=p.e>14,!N.c||!N.c[0]||N.c[0]==1&&!N.e&&N.c.length==1||!p.c||!p.c[0])return B=new v(Math.pow(+T(N),M?p.s*(2-us(p)):+T(p))),S?B.mod(S):B;if(P=p.s<0,S){if(S.c?!S.c[0]:!S.s)return new v(NaN);_=!P&&N.isInteger()&&S.isInteger(),_&&(N=N.mod(S))}else{if(p.e>9&&(N.e>0||N.e<-1||(N.e==0?N.c[0]>1||M&&N.c[1]>=24e7:N.c[0]<8e13||M&&N.c[0]<=9999975e7)))return k=N.s<0&&us(p)?-0:0,N.e>-1&&(k=1/k),new v(P?1/k:k);g&&(k=Wu(g/be+2))}for(M?($=new v(.5),P&&(p.s=1),F=us(p)):(A=Math.abs(+T(p)),F=A%2),B=new v(o);;){if(F){if(B=B.times(N),!B.c)break;k?B.c.length>k&&(B.c.length=k):_&&(B=B.mod(S))}if(A){if(A=an(A/2),A===0)break;F=A%2}else if(p=p.times($),I(p,p.e+1,1),p.e>14)F=us(p);else{if(A=+T(p),A===0)break;F=A%2}N=N.times(N),k?N.c&&N.c.length>k&&(N.c.length=k):_&&(N=N.mod(S))}return _?B:(P&&(B=o.div(B)),S?B.mod(S):k?I(B,g,s,R):B)},i.integerValue=function(p){var S=new v(this);return p==null?p=s:Ze(p,0,8),I(S,S.e+1,p)},i.isEqualTo=i.eq=function(p,S){return Xr(this,new v(p,S))===0},i.isFinite=function(){return!!this.c},i.isGreaterThan=i.gt=function(p,S){return Xr(this,new v(p,S))>0},i.isGreaterThanOrEqualTo=i.gte=function(p,S){return(S=Xr(this,new v(p,S)))===1||S===0},i.isInteger=function(){return!!this.c&&sn(this.e/be)>this.c.length-2},i.isLessThan=i.lt=function(p,S){return Xr(this,new v(p,S))<0},i.isLessThanOrEqualTo=i.lte=function(p,S){return(S=Xr(this,new v(p,S)))===-1||S===0},i.isNaN=function(){return!this.s},i.isNegative=function(){return this.s<0},i.isPositive=function(){return this.s>0},i.isZero=function(){return!!this.c&&this.c[0]==0},i.minus=function(p,S){var $,_,A,k,R=this,M=R.s;if(p=new v(p,S),S=p.s,!M||!S)return new v(NaN);if(M!=S)return p.s=-S,R.plus(p);var P=R.e/be,F=p.e/be,B=R.c,N=p.c;if(!P||!F){if(!B||!N)return B?(p.s=-S,p):new v(N?R:NaN);if(!B[0]||!N[0])return N[0]?(p.s=-S,p):new v(B[0]?R:s==3?-0:0)}if(P=sn(P),F=sn(F),B=B.slice(),M=P-F){for((k=M<0)?(M=-M,A=B):(F=P,A=N),A.reverse(),S=M;S--;A.push(0));A.reverse()}else for(_=(k=(M=B.length)<(S=N.length))?M:S,M=S=0;S<_;S++)if(B[S]!=N[S]){k=B[S]<N[S];break}if(k&&(A=B,B=N,N=A,p.s=-p.s),S=(_=N.length)-($=B.length),S>0)for(;S--;B[$++]=0);for(S=mn-1;_>M;){if(B[--_]<N[_]){for($=_;$&&!B[--$];B[$]=S);--B[$],B[_]+=mn}B[_]-=N[_]}for(;B[0]==0;B.splice(0,1),--F);return B[0]?D(p,B,F):(p.s=s==3?-1:1,p.c=[p.e=0],p)},i.modulo=i.mod=function(p,S){var $,_,A=this;return p=new v(p,S),!A.c||!p.s||p.c&&!p.c[0]?new v(NaN):!p.c||A.c&&!A.c[0]?new v(A):(f==9?(_=p.s,p.s=1,$=t(A,p,0,3),p.s=_,$.s*=_):$=t(A,p,0,f),p=A.minus($.times(p)),!p.c[0]&&f==1&&(p.s=A.s),p)},i.multipliedBy=i.times=function(p,S){var $,_,A,k,R,M,P,F,B,N,O,L,W,Z,H,j=this,V=j.c,z=(p=new v(p,S)).c;if(!V||!z||!V[0]||!z[0])return!j.s||!p.s||V&&!V[0]&&!z||z&&!z[0]&&!V?p.c=p.e=p.s=null:(p.s*=j.s,!V||!z?p.c=p.e=null:(p.c=[0],p.e=0)),p;for(_=sn(j.e/be)+sn(p.e/be),p.s*=j.s,P=V.length,N=z.length,P<N&&(W=V,V=z,z=W,A=P,P=N,N=A),A=P+N,W=[];A--;W.push(0));for(Z=mn,H=Cr,A=N;--A>=0;){for($=0,O=z[A]%H,L=z[A]/H|0,R=P,k=A+R;k>A;)F=V[--R]%H,B=V[R]/H|0,M=L*F+B*O,F=O*F+M%H*H+W[k]+$,$=(F/Z|0)+(M/H|0)+L*B,W[k--]=F%Z;W[k]=$}return $?++_:W.splice(0,1),D(p,W,_)},i.negated=function(){var p=new v(this);return p.s=-p.s||null,p},i.plus=function(p,S){var $,_=this,A=_.s;if(p=new v(p,S),S=p.s,!A||!S)return new v(NaN);if(A!=S)return p.s=-S,_.minus(p);var k=_.e/be,R=p.e/be,M=_.c,P=p.c;if(!k||!R){if(!M||!P)return new v(A/0);if(!M[0]||!P[0])return P[0]?p:new v(M[0]?_:A*0)}if(k=sn(k),R=sn(R),M=M.slice(),A=k-R){for(A>0?(R=k,$=P):(A=-A,$=M),$.reverse();A--;$.push(0));$.reverse()}for(A=M.length,S=P.length,A-S<0&&($=P,P=M,M=$,S=A),A=0;S;)A=(M[--S]=M[S]+P[S]+A)/mn|0,M[S]=mn===M[S]?0:M[S]%mn;return A&&(M=[A].concat(M),++R),D(p,M,R)},i.precision=i.sd=function(p,S){var $,_,A,k=this;if(p!=null&&p!==!!p)return Ze(p,1,jt),S==null?S=s:Ze(S,0,8),I(new v(k),p,S);if(!($=k.c))return null;if(A=$.length-1,_=A*be+1,A=$[A]){for(;A%10==0;A/=10,_--);for(A=$[0];A>=10;A/=10,_++);}return p&&k.e+1>_&&(_=k.e+1),_},i.shiftedBy=function(p){return Ze(p,-9007199254740991,pg),this.times("1e"+p)},i.squareRoot=i.sqrt=function(){var p,S,$,_,A,k=this,R=k.c,M=k.s,P=k.e,F=a+4,B=new v("0.5");if(M!==1||!R||!R[0])return new v(!M||M<0&&(!R||R[0])?NaN:R?k:1/0);if(M=Math.sqrt(+T(k)),M==0||M==1/0?(S=tn(R),(S.length+P)%2==0&&(S+="0"),M=Math.sqrt(+S),P=sn((P+1)/2)-(P<0||P%2),M==1/0?S="5e"+P:(S=M.toExponential(),S=S.slice(0,S.indexOf("e")+1)+P),$=new v(S)):$=new v(M+""),$.c[0]){for(P=$.e,M=P+F,M<3&&(M=0);;)if(A=$,$=B.times(A.plus(t(k,A,F,1))),tn(A.c).slice(0,M)===(S=tn($.c)).slice(0,M))if($.e<P&&--M,S=S.slice(M-3,M+1),S=="9999"||!_&&S=="4999"){if(!_&&(I(A,A.e+a+2,0),A.times(A).eq(k))){$=A;break}F+=4,M+=4,_=1}else{(!+S||!+S.slice(1)&&S.charAt(0)=="5")&&(I($,$.e+a+2,1),p=!$.times($).eq(k));break}}return I($,$.e+a+1,s,p)},i.toExponential=function(p,S){return p!=null&&(Ze(p,0,jt),p++),x(this,p,S,1)},i.toFixed=function(p,S){return p!=null&&(Ze(p,0,jt),p=p+this.e+1),x(this,p,S)},i.toFormat=function(p,S,$){var _,A=this;if($==null)p!=null&&S&&typeof S=="object"?($=S,S=null):p&&typeof p=="object"?($=p,p=S=null):$=m;else if(typeof $!="object")throw Error(Bt+"Argument not an object: "+$);if(_=A.toFixed(p,S),A.c){var k,R=_.split("."),M=+$.groupSize,P=+$.secondaryGroupSize,F=$.groupSeparator||"",B=R[0],N=R[1],O=A.s<0,L=O?B.slice(1):B,W=L.length;if(P&&(k=M,M=P,P=k,W-=k),M>0&&W>0){for(k=W%M||M,B=L.substr(0,k);k<W;k+=M)B+=F+L.substr(k,M);P>0&&(B+=F+L.slice(k)),O&&(B="-"+B)}_=N?B+($.decimalSeparator||"")+((P=+$.fractionGroupSize)?N.replace(new RegExp("\\d{"+P+"}\\B","g"),"$&"+($.fractionGroupSeparator||"")):N):B}return($.prefix||"")+_+($.suffix||"")},i.toFraction=function(p){var S,$,_,A,k,R,M,P,F,B,N,O,L=this,W=L.c;if(p!=null&&(M=new v(p),!M.isInteger()&&(M.c||M.s!==1)||M.lt(o)))throw Error(Bt+"Argument "+(M.isInteger()?"out of range: ":"not an integer: ")+T(M));if(!W)return new v(L);for(S=new v(o),F=$=new v(o),_=P=new v(o),O=tn(W),k=S.e=O.length-L.e-1,S.c[0]=zu[(R=k%be)<0?be+R:R],p=!p||M.comparedTo(S)>0?k>0?S:F:M,R=d,d=1/0,M=new v(O),P.c[0]=0;B=t(M,S,0,1),A=$.plus(B.times(_)),A.comparedTo(p)!=1;)$=_,_=A,F=P.plus(B.times(A=F)),P=A,S=M.minus(B.times(A=S)),M=A;return A=t(p.minus($),_,0,1),P=P.plus(A.times(F)),$=$.plus(A.times(_)),P.s=F.s=L.s,k=k*2,N=t(F,_,k,s).minus(L).abs().comparedTo(t(P,$,k,s).minus(L).abs())<1?[F,_]:[P,$],d=R,N},i.toNumber=function(){return+T(this)},i.toPrecision=function(p,S){return p!=null&&Ze(p,1,jt),x(this,p,S,2)},i.toString=function(p){var S,$=this,_=$.s,A=$.e;return A===null?_?(S="Infinity",_<0&&(S="-"+S)):S="NaN":(p==null?S=A<=l||A>=u?cs(tn($.c),A):Yn(tn($.c),A,"0"):p===10&&y?($=I(new v($),a+A+1,s),S=Yn(tn($.c),$.e,"0")):(Ze(p,2,b.length,"Base"),S=n(Yn(tn($.c),A,"0"),10,p,_,!0)),_<0&&$.c[0]&&(S="-"+S)),S},i.valueOf=i.toJSON=function(){return T(this)},i._isBigNumber=!0,i[Symbol.toStringTag]="BigNumber",i[Symbol.for("nodejs.util.inspect.custom")]=i.valueOf,e!=null&&v.set(e),v}function sn(e){var t=e|0;return e>0||e===t?t:t-1}function tn(e){for(var t,n,r=1,i=e.length,o=e[0]+"";r<i;){for(t=e[r++]+"",n=be-t.length;n--;t="0"+t);o+=t}for(i=o.length;o.charCodeAt(--i)===48;);return o.slice(0,i+1||1)}function Xr(e,t){var n,r,i=e.c,o=t.c,a=e.s,s=t.s,l=e.e,u=t.e;if(!a||!s)return null;if(n=i&&!i[0],r=o&&!o[0],n||r)return n?r?0:-s:a;if(a!=s)return a;if(n=a<0,r=l==u,!i||!o)return r?0:!i^n?1:-1;if(!r)return l>u^n?1:-1;for(s=(l=i.length)<(u=o.length)?l:u,a=0;a<s;a++)if(i[a]!=o[a])return i[a]>o[a]^n?1:-1;return l==u?0:l>u^n?1:-1}function Ze(e,t,n,r){if(e<t||e>n||e!==an(e))throw Error(Bt+(r||"Argument")+(typeof e=="number"?e<t||e>n?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function us(e){var t=e.c.length-1;return sn(e.e/be)==t&&e.c[t]%2!=0}function cs(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function Yn(e,t,n){var r,i;if(t<0){for(i=n+".";++t;i+=n);e=i+e}else if(r=e.length,++t>r){for(i=n,t-=r;--t;i+=n);e+=i}else t<r&&(e=e.slice(0,t)+"."+e.slice(t));return e}var lu=Fb();const Pb={ROUNDING_MODE:lu.ROUND_HALF_UP,EXPONENTIAL_AT:[-1e9,1e9]};let id=!1;const sD=(e=Pb)=>{id||(lu.config(e),id=!0)},Ue=(e,t)=>(id||sD(),new lu(e,t)),zn=e=>{try{return Ue(e).isFinite()}catch{return!1}},Tb=e=>{if(typeof e=="number"&&Number.isFinite(e))return!0;if(typeof e=="string"&&e.trim()!==""&&!isNaN(Number(e))){const t=Number(e);return Number.isFinite(t)}return!1};function uu(e,t){const{decimals:n=2,instance:r=!1}=t||{};zn(e)||(e="0");const i=Ue(e).toFixed(n);return r?Ue(i):i}const bf=(e,t=2)=>{let n=parseFloat(Tb(e)?e:0);return n=(+(Math.round(n+"e"+t)+"e-"+t)).toFixed(t),n=Number(n),n};function Er(e,t="currency",n={minimumFractionDigits:0,locale:"id-ID",currency:"IDR",withSpace:!1}){const{minimumFractionDigits:r,locale:i,currency:o,withSpace:a}=n,s=new Intl.NumberFormat(i,{style:t,currency:o,minimumFractionDigits:r}).format(bf(e,r>0?r:2));return a?s:s.replace(/\s/g,"")}const Ji=(e,t,n,r)=>{const i={id:vl,enUS:pf,nl:Ab};let o=n??"-";return e&&!isNaN(new Date(e).getTime())&&(o=sa(e,t??"dd/MM/yyyy",{locale:i[r??"id"]})),o},lD=(e,t,n,r,i,o)=>{const a={id:vl,enUS:pf,nl:Ab};if(e&&!isNaN(new Date(e).getTime())){const s=sa(e,n??"dd/MM/yyyy",{locale:a[o??"id"]});if(t&&!isNaN(new Date(t).getTime())){const l=sa(t,n??"dd/MM/yyyy",{locale:a[o??"id"]});return s===l?s:`${s}${r??"-"}${l}`}return s}return i??"-"},kb=(e,t)=>e.reduce((n,r)=>{const i=String(r[t]);return n[i]||(n[i]=[]),n[i].push(r),n},{}),uD=({value:e,keyDate:t="date",keyFormat:n="formatDate",format:r="dd/MM/yyyy"})=>{const i=e.map(o=>({...o,[n]:Ji(o[t],r)}));return kb(i,n)},cD=e=>(Object.keys(e).forEach(t=>{["",null,void 0,[],{}].includes(e[t])&&delete e[t]}),e),dD=(e,t)=>{var h,f;const n=/^-?\d+[0-9.,]*$/,r=/([.])(?=.*\1)/,i=/([,])(?=.*\1)/,o=((h=e.split(",")[0])==null?void 0:h.trim())||"",a=((f=e.split(",")[1])==null?void 0:f.trim())||"",s=!r.test(o)&&(o==="-"||n.test(o)||!o),l=!r.test(a)&&(a==="-"||n.test(a)||!a),u=(g,m,b)=>{let y=g;const v=g.split(".")[0];return isNaN(parseFloat(v.split(".")[0]))||(parseFloat(v.split(".")[0])<=m?y=`${m}`:parseFloat(v)>=b&&(y=`${b}`)),y},c=u(o,(t==null?void 0:t.latMin)??-85,(t==null?void 0:t.latMax)??85),d=u(a,(t==null?void 0:t.longMin)??-180,(t==null?void 0:t.longMax)??180);return{latitude:c,longitude:d,latlong:`${c}${e.includes(",")?","+d:""}`,isValid:!i.test(e)&&s&&l}},bg=(e,t)=>e?Object.fromEntries(Object.entries(t).filter(([r])=>r.startsWith(e))):t,vf=(e,t)=>e.map(n=>n[t]).join(","),yf=(e,t)=>e.map(n=>n[t]),fD=(e,t)=>Array.isArray(e)?e==null?void 0:e.map((n,r,i)=>typeof t=="function"?t(n,r,i):n):[],hD=(e,t,n,r,i)=>Array.isArray(e)?{[t]:e==null?void 0:e.map((o,a,s)=>typeof n=="function"?n(o,a,s):o),[`${t}-val-be`]:o=>r==="array-of-object-to-array"?yf(o,i):vf(o,i)}:{[t]:"",[`${t}-val-be`]:()=>""};function xf(e,t){if(e===t)return!0;if(typeof e!="object"||typeof t!="object"||e===null||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n)if(!r.includes(i)||!xf(e[i],t[i]))return!1;return!0}function gD(e,t={maxTime:"hour"}){const{maxTime:n="hour"}=t,r=l=>l<10?`0${l}`:l;let i=r(0),o=r(0);const a=r(Math.floor(e%3600/60)),s=r(Math.floor(e%60));return n==="hour"?o=r(Math.floor(e/3600)):n==="day"&&(i=r(Math.floor(e/(3600*24))),o=r(Math.floor(e%(3600*24)/3600))),{day:i,hour:o,minute:a,second:s}}function Gu(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function la(e,...t){if(!t.length)return e;const n=t.shift();if(Gu(e)&&Gu(n))for(const r in n)Gu(n[r])?(e[r]||Object.assign(e,{[r]:{}}),la(e[r],n[r])):Object.assign(e,{[r]:n[r]});return la(e,...t)}const mD=e=>bf(e||0),pD=e=>uu(e||0),bD=e=>isNaN(e)?void 0:e,cu=e=>{const t=e.toString().split(""),n=t[1]!=="0"?`,${t[1]}`:"";let[r]=e.toString().split(".");return r=r.replaceAll("-",""),r.length>=15?`${+r.substring(0,3)} T`:r.length===14?`${+r.substring(0,2)} T`:r.length===13?`${+r.substring(0,1)}${n} T`:r.length===12?`${+r.substring(0,3)} M`:r.length===11?`${+r.substring(0,2)} M`:r.length===10?`${+r.substring(0,1)}${n} M`:r.length===9?`${+r.substring(0,3)} JT`:r.length===8?`${+r.substring(0,2)} JT`:r.length===7?`${+r.substring(0,1)}${n} JT`:r.length===6?`${+r.substring(0,3)} RB`:r.length===5?`${+r.substring(0,2)} RB`:r.length===4?`${+r.substring(0,1)}${n} RB`:r.length<=3?+r?`${+r}`:0:null};function od(e){if(typeof e!="string")throw new Error("Input harus berupa string");const t=e.split(".");if(t.length===1)return{filename:e,extension:""};const n="."+t[t.length-1];return{filename:t.slice(0,-1).join("."),extension:n}}const vD=e=>(new DOMParser().parseFromString(e||"","text/html").body.textContent??"").toString();function yD(e,t={}){const{locale:n,currency:r,minimumFractionDigits:i,maximumFractionDigits:o=2,withSpace:a,currencyDisplay:s}=t,l=uu(e,{decimals:o}),[u,c=""]=l.split("."),d=u.replace(/\B(?=(\d{3})+(?!\d))/g,".");let h=c.slice(0,o);i===void 0?h=h.replace(/0+$/,""):h&&i>0&&(h=h.padEnd(i,"0"));let f=h?`${d},${h}`:d;if(!n||!r)return f;const m={"id-ID":{symbol:"Rp",code:"IDR",name:"Rupiah",negativePosition:"start"},"en-US":{symbol:"$",code:"USD",name:"US Dollar",negativePosition:"middle"},"ja-JP":{symbol:"¥",code:"JPY",name:"Yen",negativePosition:"middle"}}[n]||{symbol:"",code:r,name:r},b={symbol:m.symbol,code:m.code,name:m.name}[s||"symbol"],y=f.includes("-");return f=m.negativePosition==="start"?f.replace("-",""):f,a?`${m.negativePosition==="start"&&y?"-":""}${b} ${f}`:`${m.negativePosition==="start"&&y?"-":""}${b}${f}`}function xD(e){if(!zn(e))return"0";const t=typeof e=="number"?Ue(e).toString():e;if(!t.includes("."))return t;const[n,r]=t.split("."),i=r.replace(/0+$/,"");return i?`${n}.${i}`:n}/*! js-cookie v3.0.5 | MIT */function ds(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var CD={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function ad(e,t){function n(i,o,a){if(!(typeof document>"u")){a=ds({},t,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var l in a)a[l]&&(s+="; "+l,a[l]!==!0&&(s+="="+a[l].split(";")[0]));return document.cookie=i+"="+e.write(o,i)+s}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var o=document.cookie?document.cookie.split("; "):[],a={},s=0;s<o.length;s++){var l=o[s].split("="),u=l.slice(1).join("=");try{var c=decodeURIComponent(l[0]);if(a[c]=e.read(u,c),i===c)break}catch{}}return i?a[i]:a}}return Object.create({set:n,get:r,remove:function(i,o){n(i,"",ds({},o,{expires:-1}))},withAttributes:function(i){return ad(this.converter,ds({},this.attributes,i))},withConverter:function(i){return ad(ds({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var $n=ad(CD,{path:"/"});const wD={setItem(e,t,n={},r=3e3){const o={...{path:"/",expires:365},...n};parseInt($n.get(`${e}_count`)??"0",10)&&this.removeItem(e,n);const s=Math.ceil(t.length/r);for(let l=0;l<s;l++){const u=t.slice(l*r,(l+1)*r);$n.set(`${e}_${l}`,u,o)}$n.set(`${e}_count`,s.toString(),o)},getItem(e){const t=parseInt($n.get(`${e}_count`)??"0",10);if(!t)return null;let n="";for(let r=0;r<t;r++){const i=$n.get(`${e}_${r}`);if(!i)return null;n+=i}return n},removeItem(e,t={}){const n=parseInt($n.get(`${e}_count`)??"0",10),r={path:"/",...t};if(!isNaN(n)){for(let i=0;i<n;i++)$n.remove(`${e}_${i}`,r);$n.remove(`${e}_count`,r)}},clear(e={}){const t={path:"/",...e},n=$n.get();Object.keys(n).forEach(r=>$n.remove(r,t))}};function Mb(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Mb(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ar(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Mb(e))&&(r&&(r+=" "),r+=t);return r}const ua=e=>typeof e=="number"&&!isNaN(e),fi=e=>typeof e=="string",Zt=e=>typeof e=="function",qs=e=>fi(e)||Zt(e)?e:null,sd=e=>w.isValidElement(e)||fi(e)||Zt(e)||ua(e);function DD(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)})})}function du(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:o=300}=e;return function(a){let{children:s,position:l,preventExitTransition:u,done:c,nodeRef:d,isIn:h,playToast:f}=a;const g=r?`${t}--${l}`:t,m=r?`${n}--${l}`:n,b=w.useRef(0);return w.useLayoutEffect(()=>{const y=d.current,v=g.split(" "),x=C=>{C.target===d.current&&(f(),y.removeEventListener("animationend",x),y.removeEventListener("animationcancel",x),b.current===0&&C.type!=="animationcancel"&&y.classList.remove(...v))};y.classList.add(...v),y.addEventListener("animationend",x),y.addEventListener("animationcancel",x)},[]),w.useEffect(()=>{const y=d.current,v=()=>{y.removeEventListener("animationend",v),i?DD(y,c,o):c()};h||(u?v():(b.current=1,y.className+=` ${m}`,y.addEventListener("animationend",v)))},[h]),w.createElement(w.Fragment,null,s)}}function vg(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const Rt=new Map;let ca=[];const ld=new Set,SD=e=>ld.forEach(t=>t(e)),Bb=()=>Rt.size>0;function Ob(e,t){var n;if(t)return!((n=Rt.get(t))==null||!n.isToastActive(e));let r=!1;return Rt.forEach(i=>{i.isToastActive(e)&&(r=!0)}),r}function Nb(e,t){sd(e)&&(Bb()||ca.push({content:e,options:t}),Rt.forEach(n=>{n.buildToast(e,t)}))}function yg(e,t){Rt.forEach(n=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===n.id&&n.toggle(e,t==null?void 0:t.id):n.toggle(e,t==null?void 0:t.id)})}function ED(e){const{subscribe:t,getSnapshot:n,setProps:r}=w.useRef(function(o){const a=o.containerId||1;return{subscribe(s){const l=function(c,d,h){let f=1,g=0,m=[],b=[],y=[],v=d;const x=new Map,C=new Set,D=()=>{y=Array.from(x.values()),C.forEach(p=>p())},I=p=>{b=p==null?[]:b.filter(S=>S!==p),D()},T=p=>{const{toastId:S,onOpen:$,updateId:_,children:A}=p.props,k=_==null;p.staleId&&x.delete(p.staleId),x.set(S,p),b=[...b,p.props.toastId].filter(R=>R!==p.staleId),D(),h(vg(p,k?"added":"updated")),k&&Zt($)&&$(w.isValidElement(A)&&A.props)};return{id:c,props:v,observe:p=>(C.add(p),()=>C.delete(p)),toggle:(p,S)=>{x.forEach($=>{S!=null&&S!==$.props.toastId||Zt($.toggle)&&$.toggle(p)})},removeToast:I,toasts:x,clearQueue:()=>{g-=m.length,m=[]},buildToast:(p,S)=>{if((W=>{let{containerId:Z,toastId:H,updateId:j}=W;const V=Z?Z!==c:c!==1,z=x.has(H)&&j==null;return V||z})(S))return;const{toastId:$,updateId:_,data:A,staleId:k,delay:R}=S,M=()=>{I($)},P=_==null;P&&g++;const F={...v,style:v.toastStyle,key:f++,...Object.fromEntries(Object.entries(S).filter(W=>{let[Z,H]=W;return H!=null})),toastId:$,updateId:_,data:A,closeToast:M,isIn:!1,className:qs(S.className||v.toastClassName),bodyClassName:qs(S.bodyClassName||v.bodyClassName),progressClassName:qs(S.progressClassName||v.progressClassName),autoClose:!S.isLoading&&(B=S.autoClose,N=v.autoClose,B===!1||ua(B)&&B>0?B:N),deleteToast(){const W=x.get($),{onClose:Z,children:H}=W.props;Zt(Z)&&Z(w.isValidElement(H)&&H.props),h(vg(W,"removed")),x.delete($),g--,g<0&&(g=0),m.length>0?T(m.shift()):D()}};var B,N;F.closeButton=v.closeButton,S.closeButton===!1||sd(S.closeButton)?F.closeButton=S.closeButton:S.closeButton===!0&&(F.closeButton=!sd(v.closeButton)||v.closeButton);let O=p;w.isValidElement(p)&&!fi(p.type)?O=w.cloneElement(p,{closeToast:M,toastProps:F,data:A}):Zt(p)&&(O=p({closeToast:M,toastProps:F,data:A}));const L={content:O,props:F,staleId:k};v.limit&&v.limit>0&&g>v.limit&&P?m.push(L):ua(R)?setTimeout(()=>{T(L)},R):T(L)},setProps(p){v=p},setToggle:(p,S)=>{x.get(p).toggle=S},isToastActive:p=>b.some(S=>S===p),getSnapshot:()=>v.newestOnTop?y.reverse():y}}(a,o,SD);Rt.set(a,l);const u=l.observe(s);return ca.forEach(c=>Nb(c.content,c.options)),ca=[],()=>{u(),Rt.delete(a)}},setProps(s){var l;(l=Rt.get(a))==null||l.setProps(s)},getSnapshot(){var s;return(s=Rt.get(a))==null?void 0:s.getSnapshot()}}}(e)).current;r(e);const i=w.useSyncExternalStore(t,n,n);return{getToastToRender:function(o){if(!i)return[];const a=new Map;return i.forEach(s=>{const{position:l}=s.props;a.has(l)||a.set(l,[]),a.get(l).push(s)}),Array.from(a,s=>o(s[0],s[1]))},isToastActive:Ob,count:i==null?void 0:i.length}}function ID(e){const[t,n]=w.useState(!1),[r,i]=w.useState(!1),o=w.useRef(null),a=w.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:s,pauseOnHover:l,closeToast:u,onClick:c,closeOnClick:d}=e;var h,f;function g(){n(!0)}function m(){n(!1)}function b(x){const C=o.current;a.canDrag&&C&&(a.didMove=!0,t&&m(),a.delta=e.draggableDirection==="x"?x.clientX-a.start:x.clientY-a.start,a.start!==x.clientX&&(a.canCloseOnClick=!1),C.style.transform=`translate3d(${e.draggableDirection==="x"?`${a.delta}px, var(--y)`:`0, calc(${a.delta}px + var(--y))`},0)`,C.style.opacity=""+(1-Math.abs(a.delta/a.removalDistance)))}function y(){document.removeEventListener("pointermove",b),document.removeEventListener("pointerup",y);const x=o.current;if(a.canDrag&&a.didMove&&x){if(a.canDrag=!1,Math.abs(a.delta)>a.removalDistance)return i(!0),e.closeToast(),void e.collapseAll();x.style.transition="transform 0.2s, opacity 0.2s",x.style.removeProperty("transform"),x.style.removeProperty("opacity")}}(f=Rt.get((h={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||f.setToggle(h.id,h.fn),w.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||m(),window.addEventListener("focus",g),window.addEventListener("blur",m),()=>{window.removeEventListener("focus",g),window.removeEventListener("blur",m)}},[e.pauseOnFocusLoss]);const v={onPointerDown:function(x){if(e.draggable===!0||e.draggable===x.pointerType){a.didMove=!1,document.addEventListener("pointermove",b),document.addEventListener("pointerup",y);const C=o.current;a.canCloseOnClick=!0,a.canDrag=!0,C.style.transition="none",e.draggableDirection==="x"?(a.start=x.clientX,a.removalDistance=C.offsetWidth*(e.draggablePercent/100)):(a.start=x.clientY,a.removalDistance=C.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(x){const{top:C,bottom:D,left:I,right:T}=o.current.getBoundingClientRect();x.nativeEvent.type!=="touchend"&&e.pauseOnHover&&x.clientX>=I&&x.clientX<=T&&x.clientY>=C&&x.clientY<=D?m():g()}};return s&&l&&(v.onMouseEnter=m,e.stacked||(v.onMouseLeave=g)),d&&(v.onClick=x=>{c&&c(x),a.canCloseOnClick&&u()}),{playToast:g,pauseToast:m,isRunning:t,preventExitTransition:r,toastRef:o,eventHandlers:v}}function _D(e){let{delay:t,isRunning:n,closeToast:r,type:i="default",hide:o,className:a,style:s,controlledProgress:l,progress:u,rtl:c,isIn:d,theme:h}=e;const f=o||l&&u===0,g={...s,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};l&&(g.transform=`scaleX(${u})`);const m=ar("Toastify__progress-bar",l?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${h}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":c}),b=Zt(a)?a({rtl:c,type:i,defaultClassName:m}):ar(m,a),y={[l&&u>=1?"onTransitionEnd":"onAnimationEnd"]:l&&u<1?null:()=>{d&&r()}};return w.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":f},w.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${h} Toastify__progress-bar--${i}`}),w.createElement("div",{role:"progressbar","aria-hidden":f?"true":"false","aria-label":"notification timer",className:b,style:g,...y}))}let $D=1;const Vb=()=>""+$D++;function RD(e){return e&&(fi(e.toastId)||ua(e.toastId))?e.toastId:Vb()}function Uo(e,t){return Nb(e,t),t.toastId}function yl(e,t){return{...t,type:t&&t.type||e,toastId:RD(t)}}function fs(e){return(t,n)=>Uo(t,yl(e,n))}function Me(e,t){return Uo(e,yl("default",t))}Me.loading=(e,t)=>Uo(e,yl("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),Me.promise=function(e,t,n){let r,{pending:i,error:o,success:a}=t;i&&(r=fi(i)?Me.loading(i,n):Me.loading(i.render,{...n,...i}));const s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(c,d,h)=>{if(d==null)return void Me.dismiss(r);const f={type:c,...s,...n,data:h},g=fi(d)?{render:d}:d;return r?Me.update(r,{...f,...g}):Me(g.render,{...f,...g}),h},u=Zt(e)?e():e;return u.then(c=>l("success",a,c)).catch(c=>l("error",o,c)),u},Me.success=fs("success"),Me.info=fs("info"),Me.error=fs("error"),Me.warning=fs("warning"),Me.warn=Me.warning,Me.dark=(e,t)=>Uo(e,yl("default",{theme:"dark",...t})),Me.dismiss=function(e){(function(t){var n;if(Bb()){if(t==null||fi(n=t)||ua(n))Rt.forEach(r=>{r.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const r=Rt.get(t.containerId);r?r.removeToast(t.id):Rt.forEach(i=>{i.removeToast(t.id)})}}else ca=ca.filter(r=>t!=null&&r.options.toastId!==t)})(e)},Me.clearWaitingQueue=function(e){e===void 0&&(e={}),Rt.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},Me.isActive=Ob,Me.update=function(e,t){t===void 0&&(t={});const n=((r,i)=>{var o;let{containerId:a}=i;return(o=Rt.get(a||1))==null?void 0:o.toasts.get(r)})(e,t);if(n){const{props:r,content:i}=n,o={delay:100,...r,...t,toastId:t.toastId||e,updateId:Vb()};o.toastId!==e&&(o.staleId=e);const a=o.render||i;delete o.render,Uo(a,o)}},Me.done=e=>{Me.update(e,{progress:1})},Me.onChange=function(e){return ld.add(e),()=>{ld.delete(e)}},Me.play=e=>yg(!0,e),Me.pause=e=>yg(!1,e);const AD=typeof window<"u"?w.useLayoutEffect:w.useEffect,hs=e=>{let{theme:t,type:n,isLoading:r,...i}=e;return w.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...i})},Zu={info:function(e){return w.createElement(hs,{...e},w.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return w.createElement(hs,{...e},w.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return w.createElement(hs,{...e},w.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return w.createElement(hs,{...e},w.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return w.createElement("div",{className:"Toastify__spinner"})}},FD=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:o}=ID(e),{closeButton:a,children:s,autoClose:l,onClick:u,type:c,hideProgressBar:d,closeToast:h,transition:f,position:g,className:m,style:b,bodyClassName:y,bodyStyle:v,progressClassName:x,progressStyle:C,updateId:D,role:I,progress:T,rtl:p,toastId:S,deleteToast:$,isIn:_,isLoading:A,closeOnClick:k,theme:R}=e,M=ar("Toastify__toast",`Toastify__toast-theme--${R}`,`Toastify__toast--${c}`,{"Toastify__toast--rtl":p},{"Toastify__toast--close-on-click":k}),P=Zt(m)?m({rtl:p,position:g,type:c,defaultClassName:M}):ar(M,m),F=function(L){let{theme:W,type:Z,isLoading:H,icon:j}=L,V=null;const z={theme:W,type:Z};return j===!1||(Zt(j)?V=j({...z,isLoading:H}):w.isValidElement(j)?V=w.cloneElement(j,z):H?V=Zu.spinner():(Y=>Y in Zu)(Z)&&(V=Zu[Z](z))),V}(e),B=!!T||!l,N={closeToast:h,type:c,theme:R};let O=null;return a===!1||(O=Zt(a)?a(N):w.isValidElement(a)?w.cloneElement(a,N):function(L){let{closeToast:W,theme:Z,ariaLabel:H="close"}=L;return w.createElement("button",{className:`Toastify__close-button Toastify__close-button--${Z}`,type:"button",onClick:j=>{j.stopPropagation(),W(j)},"aria-label":H},w.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},w.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(N)),w.createElement(f,{isIn:_,done:$,position:g,preventExitTransition:n,nodeRef:r,playToast:o},w.createElement("div",{id:S,onClick:u,"data-in":_,className:P,...i,style:b,ref:r},w.createElement("div",{..._&&{role:I},className:Zt(y)?y({type:c}):ar("Toastify__toast-body",y),style:v},F!=null&&w.createElement("div",{className:ar("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!A})},F),w.createElement("div",null,s)),O,w.createElement(_D,{...D&&!B?{key:`pb-${D}`}:{},rtl:p,theme:R,delay:l,isRunning:t,isIn:_,closeToast:h,hide:d,type:c,style:C,className:x,controlledProgress:B,progress:T||0})))},fu=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},PD=du(fu("bounce",!0));du(fu("slide",!0));du(fu("zoom"));du(fu("flip"));const TD={position:"top-right",transition:PD,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function kD(e){let t={...TD,...e};const n=e.stacked,[r,i]=w.useState(!0),o=w.useRef(null),{getToastToRender:a,isToastActive:s,count:l}=ED(t),{className:u,style:c,rtl:d,containerId:h}=t;function f(m){const b=ar("Toastify__toast-container",`Toastify__toast-container--${m}`,{"Toastify__toast-container--rtl":d});return Zt(u)?u({position:m,rtl:d,defaultClassName:b}):ar(b,qs(u))}function g(){n&&(i(!0),Me.play())}return AD(()=>{if(n){var m;const b=o.current.querySelectorAll('[data-in="true"]'),y=12,v=(m=t.position)==null?void 0:m.includes("top");let x=0,C=0;Array.from(b).reverse().forEach((D,I)=>{const T=D;T.classList.add("Toastify__toast--stacked"),I>0&&(T.dataset.collapsed=`${r}`),T.dataset.pos||(T.dataset.pos=v?"top":"bot");const p=x*(r?.2:1)+(r?0:y*I);T.style.setProperty("--y",`${v?p:-1*p}px`),T.style.setProperty("--g",`${y}`),T.style.setProperty("--s",""+(1-(r?C:0))),x+=T.offsetHeight,C+=.025})}},[r,l,n]),w.createElement("div",{ref:o,className:"Toastify",id:h,onMouseEnter:()=>{n&&(i(!1),Me.pause())},onMouseLeave:g},a((m,b)=>{const y=b.length?{...c}:{...c,pointerEvents:"none"};return w.createElement("div",{className:f(m),style:y,key:`container-${m}`},b.map(v=>{let{content:x,props:C}=v;return w.createElement(FD,{...C,stacked:n,collapseAll:g,isIn:s(C.toastId,C.containerId),style:C.style,key:`toast-${C.key}`},x)}))}))}const Ht={"alert-info-filled":"_alert-info-filled_l9fm8_1","alert-warning-filled":"_alert-warning-filled_l9fm8_1","alert-error-filled":"_alert-error-filled_l9fm8_1","alert-success-filled":"_alert-success-filled_l9fm8_1","alert-info-outlined":"_alert-info-outlined_l9fm8_1","alert-warning-outlined":"_alert-warning-outlined_l9fm8_1","alert-error-outlined":"_alert-error-outlined_l9fm8_1","alert-success-outlined":"_alert-success-outlined_l9fm8_1","alert-body":"_alert-body_l9fm8_62","text-header":"_text-header_l9fm8_68"},MD=(e,t,n)=>{const r=(n==null?void 0:n.kind)??"payhere",i={position:"top-center",autoClose:2e3,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!0,draggable:!0,bodyClassName:Ht["alert-body"]},o={icon:{laba:{success:E.jsx(OD,{}),warning:E.jsx(HD,{}),error:E.jsx(LD,{}),info:E.jsx(VD,{})},payhere:{success:E.jsx(BD,{}),warning:E.jsx(jD,{}),error:E.jsx(ND,{}),info:E.jsx(WD,{})}},variant:{laba:{success:Ht["alert-success-filled"],error:Ht["alert-error-filled"],warning:Ht["alert-warning-filled"],info:Ht["alert-info-filled"]},payhere:{success:Ht["alert-success-outlined"],error:Ht["alert-error-outlined"],warning:Ht["alert-warning-outlined"],info:Ht["alert-info-outlined"]}}};return t==="error"?Me.error(E.jsxs("div",{children:[["laba"].includes(r)&&E.jsx("p",{className:Ht["text-header"],children:"Error"}),e]}),{icon:o.icon[r].error,className:o.variant[r].error,...i,...n}):t==="info"?Me.info(E.jsxs("div",{children:[["laba"].includes(r)&&E.jsx("p",{className:Ht["text-header"],children:"Info"}),e]}),{icon:o.icon[r].info,className:o.variant[r].info,...i,...n}):t==="warning"?Me.warning(E.jsxs("div",{children:[["laba"].includes(r)&&E.jsx("p",{className:Ht["text-header"],children:"Warning"}),e]}),{icon:o.icon[r].warning,className:o.variant[r].warning,...i,...n}):Me(E.jsxs("div",{children:[["laba"].includes(r)&&E.jsx("p",{className:Ht["text-header"],children:"Success"}),e]}),{icon:o.icon[r].success,className:o.variant[r].success,...i,...n})},BD=()=>E.jsx("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"1ru-h-5 1ru-w-5",children:E.jsx("g",{id:"check-circle",children:E.jsx("path",{id:"Vector",fillRule:"evenodd",clipRule:"evenodd",d:"M10 18.5C12.1217 18.5 14.1566 17.6571 15.6569 16.1569C17.1571 14.6566 18 12.6217 18 10.5C18 8.37827 17.1571 6.34344 15.6569 4.84315C14.1566 3.34285 12.1217 2.5 10 2.5C7.87827 2.5 5.84344 3.34285 4.34315 4.84315C2.84285 6.34344 2 8.37827 2 10.5C2 12.6217 2.84285 14.6566 4.34315 16.1569C5.84344 17.6571 7.87827 18.5 10 18.5ZM13.707 9.207C13.8892 9.0184 13.99 8.7658 13.9877 8.5036C13.9854 8.2414 13.8802 7.99059 13.6948 7.80518C13.5094 7.61977 13.2586 7.5146 12.9964 7.51233C12.7342 7.51005 12.4816 7.61084 12.293 7.793L9 11.086L7.707 9.793C7.5184 9.61084 7.2658 9.51005 7.0036 9.51233C6.7414 9.5146 6.49059 9.61977 6.30518 9.80518C6.11977 9.99059 6.0146 10.2414 6.01233 10.5036C6.01005 10.7658 6.11084 11.0184 6.293 11.207L8.293 13.207C8.48053 13.3945 8.73484 13.4998 9 13.4998C9.26516 13.4998 9.51947 13.3945 9.707 13.207L13.707 9.207Z",fill:"#388E3C"})})}),OD=()=>E.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"1ru-h-6 1ru-w-6",children:E.jsxs("g",{id:"circle",children:[E.jsx("path",{id:"Vector",d:"M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z",stroke:"#038C67",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),E.jsx("path",{id:"Vector_2",d:"M9 12L11 14L15 10",stroke:"#038C67",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}),ND=()=>E.jsx("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"1ru-h-5 1ru-w-5",children:E.jsx("g",{id:"exclamation-circle",children:E.jsx("path",{id:"Vector",fillRule:"evenodd",clipRule:"evenodd",d:"M18 10.5C18 12.6217 17.1571 14.6566 15.6569 16.1569C14.1566 17.6571 12.1217 18.5 10 18.5C7.87827 18.5 5.84344 17.6571 4.34315 16.1569C2.84285 14.6566 2 12.6217 2 10.5C2 8.37827 2.84285 6.34344 4.34315 4.84315C5.84344 3.34285 7.87827 2.5 10 2.5C12.1217 2.5 14.1566 3.34285 15.6569 4.84315C17.1571 6.34344 18 8.37827 18 10.5ZM11 14.5C11 14.7652 10.8946 15.0196 10.7071 15.2071C10.5196 15.3946 10.2652 15.5 10 15.5C9.73478 15.5 9.48043 15.3946 9.29289 15.2071C9.10536 15.0196 9 14.7652 9 14.5C9 14.2348 9.10536 13.9804 9.29289 13.7929C9.48043 13.6054 9.73478 13.5 10 13.5C10.2652 13.5 10.5196 13.6054 10.7071 13.7929C10.8946 13.9804 11 14.2348 11 14.5ZM10 5.5C9.73478 5.5 9.48043 5.60536 9.29289 5.79289C9.10536 5.98043 9 6.23478 9 6.5V10.5C9 10.7652 9.10536 11.0196 9.29289 11.2071C9.48043 11.3946 9.73478 11.5 10 11.5C10.2652 11.5 10.5196 11.3946 10.7071 11.2071C10.8946 11.0196 11 10.7652 11 10.5V6.5C11 6.23478 10.8946 5.98043 10.7071 5.79289C10.5196 5.60536 10.2652 5.5 10 5.5Z",fill:"#F44336"})})}),VD=()=>E.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"1ru-h-6 1ru-w-6",children:E.jsxs("g",{id:"alert",children:[E.jsx("path",{id:"Vector",d:"M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z",stroke:"#006DFF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),E.jsx("path",{id:"Vector_2",d:"M12 8V12",stroke:"#006DFF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),E.jsx("path",{id:"Vector_3",d:"M12 16H12.01",stroke:"#006DFF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}),LD=()=>E.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"1ru-h-6 1ru-w-6",children:E.jsxs("g",{id:"alert",children:[E.jsx("path",{id:"Vector",d:"M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z",stroke:"#ED0019",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),E.jsx("path",{id:"Vector_2",d:"M12 8V12",stroke:"#ED0019",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),E.jsx("path",{id:"Vector_3",d:"M12 16H12.01",stroke:"#ED0019",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}),jD=()=>E.jsx("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"1ru-h-5 1ru-w-5",children:E.jsx("g",{id:"exclamation",children:E.jsx("path",{id:"Vector",fillRule:"evenodd",clipRule:"evenodd",d:"M8.25697 3.59898C9.02197 2.23898 10.979 2.23898 11.743 3.59898L17.323 13.519C18.073 14.853 17.11 16.499 15.581 16.499H4.41997C2.88997 16.499 1.92697 14.853 2.67697 13.519L8.25697 3.59898ZM11 13.5C11 13.7652 10.8946 14.0196 10.7071 14.2071C10.5195 14.3946 10.2652 14.5 9.99997 14.5C9.73475 14.5 9.4804 14.3946 9.29286 14.2071C9.10533 14.0196 8.99997 13.7652 8.99997 13.5C8.99997 13.2348 9.10533 12.9804 9.29286 12.7929C9.4804 12.6053 9.73475 12.5 9.99997 12.5C10.2652 12.5 10.5195 12.6053 10.7071 12.7929C10.8946 12.9804 11 13.2348 11 13.5ZM9.99997 5.49998C9.73475 5.49998 9.4804 5.60534 9.29286 5.79287C9.10533 5.98041 8.99997 6.23476 8.99997 6.49998V9.49998C8.99997 9.7652 9.10533 10.0195 9.29286 10.2071C9.4804 10.3946 9.73475 10.5 9.99997 10.5C10.2652 10.5 10.5195 10.3946 10.7071 10.2071C10.8946 10.0195 11 9.7652 11 9.49998V6.49998C11 6.23476 10.8946 5.98041 10.7071 5.79287C10.5195 5.60534 10.2652 5.49998 9.99997 5.49998Z",fill:"#F9A825"})})}),HD=()=>E.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"1ru-h-6 1ru-w-6",children:E.jsxs("g",{id:"alert",children:[E.jsx("path",{id:"Vector",d:"M12 15V15.01M12 9V11V9Z",stroke:"#FF7200",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),E.jsx("path",{id:"Vector_2",d:"M5 19H19C19.3263 18.9977 19.6471 18.9156 19.9344 18.7609C20.2217 18.6061 20.4667 18.3835 20.6482 18.1123C20.8297 17.841 20.942 17.5296 20.9754 17.205C21.0089 16.8804 20.9624 16.5525 20.84 16.25L13.74 4.00002C13.567 3.68741 13.3135 3.42685 13.0058 3.2454C12.698 3.06396 12.3473 2.96826 11.99 2.96826C11.6327 2.96826 11.282 3.06396 10.9742 3.2454C10.6665 3.42685 10.413 3.68741 10.24 4.00002L3.14 16.25C3.01994 16.5456 2.97233 16.8656 3.00115 17.1833C3.02997 17.501 3.13437 17.8073 3.30565 18.0764C3.47693 18.3456 3.71011 18.5698 3.98573 18.7305C4.26134 18.8912 4.57139 18.9836 4.89 19",stroke:"#FF7200",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}),WD=()=>E.jsx("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"1ru-h-5 1ru-w-5",children:E.jsx("g",{id:"information-circle",children:E.jsx("path",{id:"Vector",fillRule:"evenodd",clipRule:"evenodd",d:"M18 10.5C18 12.6217 17.1571 14.6566 15.6569 16.1569C14.1566 17.6571 12.1217 18.5 10 18.5C7.87827 18.5 5.84344 17.6571 4.34315 16.1569C2.84285 14.6566 2 12.6217 2 10.5C2 8.37827 2.84285 6.34344 4.34315 4.84315C5.84344 3.34285 7.87827 2.5 10 2.5C12.1217 2.5 14.1566 3.34285 15.6569 4.84315C17.1571 6.34344 18 8.37827 18 10.5ZM11 6.5C11 6.76522 10.8946 7.01957 10.7071 7.20711C10.5196 7.39464 10.2652 7.5 10 7.5C9.73478 7.5 9.48043 7.39464 9.29289 7.20711C9.10536 7.01957 9 6.76522 9 6.5C9 6.23478 9.10536 5.98043 9.29289 5.79289C9.48043 5.60536 9.73478 5.5 10 5.5C10.2652 5.5 10.5196 5.60536 10.7071 5.79289C10.8946 5.98043 11 6.23478 11 6.5ZM9 9.5C8.73478 9.5 8.48043 9.60536 8.29289 9.79289C8.10536 9.98043 8 10.2348 8 10.5C8 10.7652 8.10536 11.0196 8.29289 11.2071C8.48043 11.3946 8.73478 11.5 9 11.5V14.5C9 14.7652 9.10536 15.0196 9.29289 15.2071C9.48043 15.3946 9.73478 15.5 10 15.5H11C11.2652 15.5 11.5196 15.3946 11.7071 15.2071C11.8946 15.0196 12 14.7652 12 14.5C12 14.2348 11.8946 13.9804 11.7071 13.7929C11.5196 13.6054 11.2652 13.5 11 13.5V10.5C11 10.2348 10.8946 9.98043 10.7071 9.79289C10.5196 9.60536 10.2652 9.5 10 9.5H9Z",fill:"#0288D1"})})}),Ya=e=>typeof e=="string"||typeof e=="number"||typeof e=="bigint"?uu(e):"";function zD(e,t){return{name:"minBig",message:t||`Value must be greater than or equal to ${e}`,test(n){return n=Ya(n),zn(n)?Ue(n).gte(Ue(e))?!0:this.createError({message:t||`Value must be greater than or equal to ${e}`}):this.createError({message:t||"Invalid BigNumber value"})}}}function GD(e,t){return{name:"maxBig",message:t||`Value must be less than or equal to ${e}`,test(n){return n=Ya(n),zn(n)?Ue(n).lte(Ue(e))?!0:this.createError({message:t||`Value must be less than or equal to ${e}`}):this.createError({message:t||"Invalid BigNumber value"})}}}function ZD(e,t){return{name:"moreThanBig",message:t||`Value must be greater than ${e}`,test(n){return n=Ya(n),zn(n)?Ue(n).gt(Ue(e))?!0:this.createError({message:t||`Value must be greater than ${e}`}):this.createError({message:t||"Invalid BigNumber value"})}}}function XD(e,t){return{name:"lessThanBig",message:t||`Value must be less than ${e}`,test(n){return n=Ya(n),zn(n)?Ue(n).lt(Ue(e))?!0:this.createError({message:t||`Value must be less than ${e}`}):this.createError({message:t||"Invalid BigNumber value"})}}}function YD(e,t,n){return{name:"betweenBig",message:n||`Value must be between ${e} and ${t}`,test(r){if(r=Ya(r),!zn(r))return this.createError({message:n||"Invalid BigNumber value"});const i=Ue(r),o=Ue(e),a=Ue(t);return i.lt(o)||i.gt(a)?this.createError({message:n||`Value must be between ${e} and ${t}`}):!0}}}function Cf(e){return UD.test(e)}const UD=/^-?[0-9]+$/;function JD(e){return KD.test(e)}const KD=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function Lb(e,t){const n=Number.parseFloat(e),r=String(n),i=xg(e),o=xg(r);return!!(i===o||(t==null?void 0:t.approx)===!0&&!Cf(e)&&o.length>=14&&i.startsWith(o.substring(0,14)))}let Oo=function(e){return e.underflow="underflow",e.overflow="overflow",e.truncate_integer="truncate_integer",e.truncate_float="truncate_float",e}({});function qD(e){if(Lb(e,{approx:!1}))return;if(Cf(e))return Oo.truncate_integer;const t=Number.parseFloat(e);return Number.isFinite(t)?t===0?Oo.underflow:Oo.truncate_float:Oo.overflow}function xg(e){return e.replace(QD,"").replace(t5,"").replace(n5,"").replace(e5,"")}const QD=/[eE][+-]?\d+$/,e5=/^-?(0*)?/,t5=/\./,n5=/0+$/;class r5{constructor(t){re(this,"isLosslessNumber",!0);if(!JD(t))throw new Error(`Invalid number (value: "${t}")`);this.value=t}valueOf(){const t=qD(this.value);if(t===void 0||t===Oo.truncate_float)return Number.parseFloat(this.value);if(Cf(this.value))return BigInt(this.value);throw new Error(`Cannot safely convert to number: the value '${this.value}' would ${t} and become ${Number.parseFloat(this.value)}`)}toString(){return this.value}}function i5(e){return e&&typeof e=="object"&&e.isLosslessNumber===!0||!1}function o5(e){return new r5(e)}function a5(e,t){return wf({"":e},"",e,t)}function wf(e,t,n,r){return Array.isArray(n)?r.call(e,t,l5(n,r)):n&&typeof n=="object"&&!i5(n)?r.call(e,t,s5(n,r)):r.call(e,t,n)}function s5(e,t){for(const n of Object.keys(e)){const r=wf(e,n,e[n],t);r!==void 0?e[n]=r:delete e[n]}return e}function l5(e,t){for(let n=0;n<e.length;n++)e[n]=wf(e,String(n),e[n],t);return e}function u5(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:o5,r=0;const i=s();return g(i),b(),t?a5(i,t):i;function o(){if(e.charCodeAt(r)===m5){r++,u();const R={};let M=!0;for(;r<e.length&&e.charCodeAt(r)!==wg;){M?M=!1:(h(),u());const P=r,F=c();if(F===void 0){x();return}u(),f();const B=s();if(B===void 0){S();return}Object.prototype.hasOwnProperty.call(R,F)&&!ud(B,R[F])&&C(F,P+1),R[F]=B}return e.charCodeAt(r)!==wg&&D(),r++,R}}function a(){if(e.charCodeAt(r)===p5){r++,u();const R=[];let M=!0;for(;r<e.length&&e.charCodeAt(r)!==Dg;){M?M=!1:h();const P=s();m(P),R.push(P)}return e.charCodeAt(r)!==Dg&&I(),r++,R}}function s(){u();const R=c()??d()??o()??a()??l("true",!0)??l("false",!1)??l("null",null);return u(),R}function l(R,M){if(e.slice(r,r+R.length)===R)return r+=R.length,M}function u(){for(;c5(e.charCodeAt(r));)r++}function c(){if(e.charCodeAt(r)===Xu){r++;let R="";for(;r<e.length&&e.charCodeAt(r)!==Xu;){if(e.charCodeAt(r)===g5){const M=e[r+1],P=h5[M];P!==void 0?(R+=P,r++):M==="u"?gs(e.charCodeAt(r+2))&&gs(e.charCodeAt(r+3))&&gs(e.charCodeAt(r+4))&&gs(e.charCodeAt(r+5))?(R+=String.fromCharCode(Number.parseInt(e.slice(r+2,r+6),16)),r+=5):$(r):p(r)}else f5(e.charCodeAt(r))?R+=e[r]:T(e[r]);r++}return v(),r++,R}}function d(){const R=r;if(e.charCodeAt(r)===Sg&&(r++,y(R)),e.charCodeAt(r)===Df)r++;else if(d5(e.charCodeAt(r)))for(r++;ms(e.charCodeAt(r));)r++;if(e.charCodeAt(r)===S5)for(r++,y(R);ms(e.charCodeAt(r));)r++;if(e.charCodeAt(r)===R5||e.charCodeAt(r)===$5)for(r++,(e.charCodeAt(r)===Sg||e.charCodeAt(r)===C5)&&r++,y(R);ms(e.charCodeAt(r));)r++;if(r>R)return n(e.slice(R,r))}function h(){if(e.charCodeAt(r)!==D5)throw new SyntaxError(`Comma ',' expected after value ${k()}`);r++}function f(){if(e.charCodeAt(r)!==E5)throw new SyntaxError(`Colon ':' expected after property name ${k()}`);r++}function g(R){if(R===void 0)throw new SyntaxError(`JSON value expected ${k()}`)}function m(R){if(R===void 0)throw new SyntaxError(`Array item expected ${k()}`)}function b(){if(r<e.length)throw new SyntaxError(`Expected end of input ${k()}`)}function y(R){if(!ms(e.charCodeAt(r))){const M=e.slice(R,r);throw new SyntaxError(`Invalid number '${M}', expecting a digit ${k()}`)}}function v(){if(e.charCodeAt(r)!==Xu)throw new SyntaxError(`End of string '"' expected ${k()}`)}function x(){throw new SyntaxError(`Quoted object key expected ${k()}`)}function C(R,M){throw new SyntaxError(`Duplicate key '${R}' encountered at position ${M}`)}function D(){throw new SyntaxError(`Quoted object key or end of object '}' expected ${k()}`)}function I(){throw new SyntaxError(`Array item or end of array ']' expected ${k()}`)}function T(R){throw new SyntaxError(`Invalid character '${R}' ${_()}`)}function p(R){const M=e.slice(R,R+2);throw new SyntaxError(`Invalid escape character '${M}' ${_()}`)}function S(){throw new SyntaxError(`Object value expected after ':' ${_()}`)}function $(R){const M=e.slice(R,R+6);throw new SyntaxError(`Invalid unicode character '${M}' ${_()}`)}function _(){return`at position ${r}`}function A(){return r<e.length?`but got '${e[r]}'`:"but reached end of input"}function k(){return`${A()} ${_()}`}}function c5(e){return e===b5||e===v5||e===y5||e===x5}function gs(e){return e>=Df&&e<=Sf||e>=I5&&e<=A5||e>=_5&&e<=F5}function ms(e){return e>=Df&&e<=Sf}function d5(e){return e>=w5&&e<=Sf}function f5(e){return e>=32&&e<=1114111}function ud(e,t){return e===t?!0:Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((n,r)=>ud(n,t[r])):Cg(e)&&Cg(t)?[...new Set([...Object.keys(e),...Object.keys(t)])].every(r=>ud(e[r],t[r])):!1}function Cg(e){return typeof e=="object"&&e!==null}const h5={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
2
- `,r:"\r",t:" "},g5=92,m5=123,wg=125,p5=91,Dg=93,b5=32,v5=10,y5=9,x5=13,Xu=34,C5=43,Sg=45,Df=48,w5=49,Sf=57,D5=44,S5=46,E5=58,I5=65,_5=97,$5=69,R5=101,A5=70,F5=102;function cd(e){if(typeof e=="object"&&e!==null){if(Array.isArray(e))return e.map(cd);const t={};for(const[n,r]of Object.entries(e))typeof r=="number"||typeof r=="string"?typeof r=="number"&&!Number.isSafeInteger(r)||typeof r=="string"&&/^-?\d+(?:\.\d+)?$/.test(r)?t[n]=Ue(r).toString():t[n]=r:typeof r=="object"?t[n]=cd(r):t[n]=r;return t}return e}function dd(e){if(typeof e=="object"&&e!==null){if(Array.isArray(e))return e.map(dd);if(e instanceof Ue)return e.toString();const t={};for(const[n,r]of Object.entries(e))t[n]=dd(r);return t}return e}const P5=e=>u5(e,null,n=>typeof n=="number"&&!Number.isSafeInteger(n)||typeof n=="string"&&/^-?\d+(?:\.\d+)?$/.test(n)?Lb(n)?parseFloat(n):Ue(n).toString():n),jb={black:"#212121",white:"#FFFFFF","primary-50":"#E3F2FD","primary-100":"#BBDEFB","primary-200":"#90CAF9","primary-300":"#64B5F6","primary-400":"#42A5F5","primary-500":"#2196F3","primary-600":"#1E88E5","primary-700":"#1976D2","primary-800":"#1565C0","primary-900":"#0D47A1","blue-gray-50":"#ECEFF1","blue-gray-100":"#CFD8DC","blue-gray-200":"#B0BEC5","blue-gray-300":"#90A4AE","blue-gray-400":"#78909C","blue-gray-500":"#607D8B","blue-gray-600":"#546E7A","blue-gray-700":"#455A64","blue-gray-800":"#37474F","blue-gray-900":"#263238","gray-50":"#FAFAFA","gray-100":"#F5F5F5","gray-200":"#EEEEEE","gray-300":"#E0E0E0","gray-400":"#BDBDBD","gray-500":"#9E9E9E","gray-600":"#757575","gray-700":"#616161","gray-800":"#424242","gray-900":"#212121","brown-50":"#EFEBE9","brown-100":"#D7CCC8","brown-200":"#BCAAA4","brown-300":"#A1887F","brown-400":"#8D6E63","brown-500":"#795548","brown-600":"#6D4C41","brown-700":"#5D4037","brown-800":"#4E342E","brown-900":"#3E2723","deep-orange-50":"#FBE9E7","deep-orange-100":"#FFCCBC","deep-orange-200":"#FFAB91","deep-orange-300":"#FF8A65","deep-orange-400":"#FF7043","deep-orange-500":"#FF5722","deep-orange-600":"#F4511E","deep-orange-700":"#E64A19","deep-orange-800":"#D84315","deep-orange-900":"#BF360C","orange-50":"#FFF3E0","orange-100":"#FFE0B2","orange-200":"#FFCC80","orange-300":"#FFB74D","orange-400":"#FFA726","orange-500":"#FF9800","orange-600":"#FB8C00","orange-700":"#F57C00","orange-800":"#EF6C00","orange-900":"#E65100","amber-50":"#FFF8E1","amber-100":"#FFECB3","amber-200":"#FFE082","amber-300":"#FFD54F","amber-400":"#FFCA28","amber-500":"#FFC107","amber-600":"#FFB300","amber-700":"#FFA000","amber-800":"#FF8F00","amber-900":"#FF6F00","yellow-50":"#FFFDE7","yellow-100":"#FFF9C4","yellow-200":"#FFF59D","yellow-300":"#FFF176","yellow-400":"#FFEE58","yellow-500":"#FFEB3B","yellow-600":"#FDD835","yellow-700":"#FBC02D","yellow-800":"#F9A825","yellow-900":"#F57F17","lime-50":"#F9FBE7","lime-100":"#F0F4C3","lime-200":"#E6EE9C","lime-300":"#DCE775","lime-400":"#D4E157","lime-500":"#CDDC39","lime-600":"#C0CA33","lime-700":"#AFB42B","lime-800":"#9E9D24","lime-900":"#827717","light-green-50":"#F1F8E9","light-green-100":"#DCEDC8","light-green-200":"#C5E1A5","light-green-300":"#AED581","light-green-400":"#9CCC65","light-green-500":"#8BC34A","light-green-600":"#7CB342","light-green-700":"#689F38","light-green-800":"#558B2F","light-green-900":"#33691E","green-50":"#E8F5E9","green-100":"#C8E6C9","green-200":"#A5D6A7","green-300":"#81C784","green-400":"#66BB6A","green-500":"#4CAF50","green-600":"#43A047","green-700":"#388E3C","green-800":"#2E7D32","green-900":"#1B5E20","teal-50":"#E0F2F1","teal-100":"#B2DFDB","teal-200":"#80CBC4","teal-300":"#4DB6AC","teal-400":"#26A69A","teal-500":"#009688","teal-600":"#00897B","teal-700":"#00796B","teal-800":"#00695C","teal-900":"#004D40","cyan-50":"#E0F7FA","cyan-100":"#B2EBF2","cyan-200":"#80DEEA","cyan-300":"#4DD0E1","cyan-400":"#26C6DA","cyan-500":"#00BCD4","cyan-600":"#00ACC1","cyan-700":"#0097A7","cyan-800":"#00838F","cyan-900":"#006064","light-blue-50":"#E1F5FE","light-blue-100":"#B3E5FC","light-blue-200":"#81D4FA","light-blue-300":"#4FC3F7","light-blue-400":"#29B6F6","light-blue-500":"#03A9F4","light-blue-600":"#039BE5","light-blue-700":"#0288D1","light-blue-800":"#0277BD","light-blue-900":"#01579B","blue-50":"#E3F2FD","blue-100":"#BBDEFB","blue-200":"#90CAF9","blue-300":"#64B5F6","blue-400":"#42A5F5","blue-500":"#2196F3","blue-600":"#1E88E5","blue-700":"#1976D2","blue-800":"#1565C0","blue-900":"#0D47A1","indigo-50":"#E8EAF6","indigo-100":"#C5CAE9","indigo-200":"#9FA8DA","indigo-300":"#7986CB","indigo-400":"#5C6BC0","indigo-500":"#3F51B5","indigo-600":"#3949AB","indigo-700":"#303F9F","indigo-800":"#283593","indigo-900":"#1A237E","deep-purple-50":"#EDE7F6","deep-purple-100":"#D1C4E9","deep-purple-200":"#B39DDB","deep-purple-300":"#9575CD","deep-purple-400":"#7E57C2","deep-purple-500":"#673AB7","deep-purple-600":"#5E35B1","deep-purple-700":"#512DA8","deep-purple-800":"#4527A0","deep-purple-900":"#311B92","purple-50":"#F3E5F5","purple-100":"#E1BEE7","purple-200":"#CE93D8","purple-300":"#BA68C8","purple-400":"#AB47BC","purple-500":"#9C27B0","purple-600":"#8E24AA","purple-700":"#7B1FA2","purple-800":"#6A1B9A","purple-900":"#4A148C","pink-50":"#FCE4EC","pink-100":"#F8BBD0","pink-200":"#F48FB1","pink-300":"#F06292","pink-400":"#EC407A","pink-500":"#E91E63","pink-600":"#D81B60","pink-700":"#C2185B","pink-800":"#AD1457","pink-900":"#880E4F","red-50":"#FFEBEE","red-100":"#FFCDD2","red-200":"#EF9A9A","red-300":"#E57373","red-400":"#EF5350","red-500":"#F44336","red-600":"#E53935","red-700":"#D32F2F","red-800":"#C62828","red-900":"#B71C1C","payhere-brand-base":"#102A4D","payhere-brand-10":"#CFD4DB","payhere-brand-20":"#AFB8C4","payhere-brand-30":"#8794A6","payhere-brand-40":"#607188","payhere-brand-50":"#384E6B","payhere-brand-60":"#0D2340","laba-black":"#212529","laba-white":"#FFFFFF","laba-blue-10":"#0163C8","laba-blue-08":"#006DFF","laba-blue-06":"#2899FF","laba-blue-05":"#73A4D6","laba-blue-02":"#DBECFF","laba-blue-01":"#F0F7FF","laba-green-10":"#038C67","laba-green-08":"#04BA27","laba-green-06":"#78D798","laba-green-05":"#ABF3CC","laba-green-02":"#CAEEE5","laba-green-01":"#DFF6F6","laba-grey-10":"#898989","laba-grey-08":"#AEAEAE","laba-grey-06":"#D6D6D6","laba-grey-05":"#EEEEEE","laba-grey-02":"#F2F2F2","laba-grey-01":"#FDFDFD","laba-orange-10":"#C05000","laba-orange-08":"#FF7200","laba-orange-06":"#FF9300","laba-orange-05":"#FFBD78","laba-orange-02":"#FFDDBB","laba-orange-01":"#FFF5EB","laba-red-10":"#9E101F","laba-red-08":"#ED0019","laba-red-06":"#FB004E","laba-red-05":"#FF5378","laba-red-02":"#FFAEBF","laba-red-01":"#FFEBEF"},Hb={"payhere-h1":["60px",{lineHeight:"72px",fontWeight:700}],"payhere-h2":["48px",{lineHeight:"58px",fontWeight:700}],"payhere-h3":["40px",{lineHeight:"48px",fontWeight:700}],"payhere-h4":["30px",{lineHeight:"38px",fontWeight:700}],"payhere-h5":["28px",{lineHeight:"40px",fontWeight:600}],"payhere-h6":["24px",{lineHeight:"30px",fontWeight:600}],"payhere-body-lr":["18px",{lineHeight:"26px",fontWeight:400}],"payhere-body-lm":["18px",{lineHeight:"26px",fontWeight:500}],"payhere-body-ls":["18px",{lineHeight:"26px",fontWeight:600}],"payhere-body-lb":["18px",{lineHeight:"26px",fontWeight:700}],"payhere-body-mr":["16px",{lineHeight:"24px",fontWeight:400}],"payhere-body-mm":["16px",{lineHeight:"24px",fontWeight:500}],"payhere-body-ms":["16px",{lineHeight:"24px",fontWeight:600}],"payhere-body-mb":["16px",{lineHeight:"24px",fontWeight:700}],"payhere-label-r":["15px",{lineHeight:"26px",fontWeight:400}],"payhere-label-m":["15px",{lineHeight:"26px",fontWeight:500}],"payhere-body-sr":["14px",{lineHeight:"22px",fontWeight:400}],"payhere-body-sm":["14px",{lineHeight:"22px",fontWeight:500}],"payhere-body-esr":["12px",{lineHeight:"20px",fontWeight:400}],"payhere-body-esm":["12px",{lineHeight:"20px",fontWeight:500}]},Wb={"laba-h1":["24px",{lineHeight:"30px",fontWeight:700}],"laba-h2":["18px",{lineHeight:"26px",fontWeight:700}],"laba-base-rb":["16px",{lineHeight:"24px",fontWeight:700}],"laba-base-rs":["16px",{lineHeight:"24px",fontWeight:600}],"laba-base-rr":["16px",{lineHeight:"24px",fontWeight:400}],"laba-base-sb":["14px",{lineHeight:"20px",fontWeight:700}],"laba-base-ss":["14px",{lineHeight:"20px",fontWeight:600}],"laba-base-sr":["14px",{lineHeight:"20px",fontWeight:400}],"laba-subtitle-rb":["12px",{lineHeight:"16px",fontWeight:700}],"laba-subtitle-rs":["12px",{lineHeight:"16px",fontWeight:600}],"laba-subtitle-rr":["12px",{lineHeight:"16px",fontWeight:400}],"laba-subtitle-sb":["10px",{lineHeight:"12px",fontWeight:700}],"laba-subtitle-ss":["10px",{lineHeight:"12px",fontWeight:600}],"laba-subtitle-sr":["10px",{lineHeight:"12px",fontWeight:400}]},T5={...Hb,...Wb},k5={sm:"576px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},M5=()=>E.jsx("div",{className:"1ru-w-full 1ru-bg-red-900",children:"index"}),B5="_loading_z48x5_10",ye={"button-xs":"_button-xs_z48x5_6","button-s":"_button-s_z48x5_6","button-m":"_button-m_z48x5_6","button-l":"_button-l_z48x5_6","button-extra-small":"_button-extra-small_z48x5_6","button-small":"_button-small_z48x5_6","button-reguler":"_button-reguler_z48x5_6","button-large":"_button-large_z48x5_6",loading:B5,"nude-laba-red-05":"_nude-laba-red-05_z48x5_18","nude-laba-red-08":"_nude-laba-red-08_z48x5_18","nude-laba-red-10":"_nude-laba-red-10_z48x5_18","nude-gray-500":"_nude-gray-500_z48x5_18","nude-green-700":"_nude-green-700_z48x5_18","nude-red-700":"_nude-red-700_z48x5_18","nude-laba-blue-10":"_nude-laba-blue-10_z48x5_18","ghost-blue-gray-100-bg_white-text_blue-gray-400":"_ghost-blue-gray-100-bg_white-text_blue-gray-400_z48x5_18","ghost-blue-gray-100-bg_white":"_ghost-blue-gray-100-bg_white_z48x5_18","ghost-laba-green-10":"_ghost-laba-green-10_z48x5_18","ghost-laba-blue-01":"_ghost-laba-blue-01_z48x5_18","ghost-laba-blue-05":"_ghost-laba-blue-05_z48x5_18","ghost-green-700":"_ghost-green-700_z48x5_18","ghost-red-700":"_ghost-red-700_z48x5_18","ghost-laba-blue-10":"_ghost-laba-blue-10_z48x5_18","filled-laba-white_laba-red-05":"_filled-laba-white_laba-red-05_z48x5_18","filled-laba-white_laba-blue-10":"_filled-laba-white_laba-blue-10_z48x5_18","primary-green-700":"_primary-green-700_z48x5_18","primary-red-700-dsb_laba-grey-06":"_primary-red-700-dsb_laba-grey-06_z48x5_18","primary-laba-blue-10":"_primary-laba-blue-10_z48x5_18","tertiary-gray-500":"_tertiary-gray-500_z48x5_18","tertiary-red-600":"_tertiary-red-600_z48x5_18","tertiary-red-300":"_tertiary-red-300_z48x5_18","tertiary-blue-700":"_tertiary-blue-700_z48x5_18","secondary-green-600":"_secondary-green-600_z48x5_18","secondary-red-700":"_secondary-red-700_z48x5_18","secondary-red-600":"_secondary-red-600_z48x5_18","secondary-blue-700":"_secondary-blue-700_z48x5_18","primary-red-700":"_primary-red-700_z48x5_18","primary-blue-700":"_primary-blue-700_z48x5_18","icon-loading":"_icon-loading_z48x5_96"},O5=({className:e=""})=>E.jsx("svg",{className:`${ye["icon-loading"]} ${e??""}`,xmlns:"http://www.w3.org/2000/svg",width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",children:E.jsx("path",{d:`M21.6311 6.63315C22.3017 6.23898 22.5321 5.36957 22.0621 4.7497C20.7187 2.9779 18.9029 1.6063 \r
1
+ "use strict";var qC=Object.defineProperty;var QC=(e,t,n)=>t in e?qC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var re=(e,t,n)=>QC(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("react/jsx-runtime"),w=require("react"),Xa=require("react-dom");function Sb(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 G=Sb(w),Eb=Sb(Xa);function _n(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 yi(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const Ib=6048e5,e2=864e5;let t2={};function su(){return t2}function aa(e,t){var s,l,u,c;const n=su(),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??((c=(u=n.locale)==null?void 0:u.options)==null?void 0:c.weekStartsOn)??0,i=_n(e),o=i.getDay(),a=(o<r?7:0)+o-r;return i.setDate(i.getDate()-a),i.setHours(0,0,0,0),i}function bl(e){return aa(e,{weekStartsOn:1})}function _b(e){const t=_n(e),n=t.getFullYear(),r=yi(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const i=bl(r),o=yi(e,0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);const a=bl(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function ug(e){const t=_n(e);return t.setHours(0,0,0,0),t}function cg(e){const t=_n(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 n2(e,t){const n=ug(e),r=ug(t),i=+n-cg(n),o=+r-cg(r);return Math.round((i-o)/e2)}function r2(e){const t=_b(e),n=yi(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),bl(n)}function i2(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function o2(e){if(!i2(e)&&typeof e!="number")return!1;const t=_n(e);return!isNaN(Number(t))}function a2(e){const t=_n(e),n=yi(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const s2={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"}},l2=(e,t,n)=>{let r;const i=s2[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 fr(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const u2={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},c2={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},d2={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},f2={date:fr({formats:u2,defaultWidth:"full"}),time:fr({formats:c2,defaultWidth:"full"}),dateTime:fr({formats:d2,defaultWidth:"full"})},h2={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},g2=(e,t,n,r)=>h2[e];function _t(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):a;i=e.formattingValues[s]||e.formattingValues[a]}else{const a=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[s]||e.values[a]}const o=e.argumentCallback?e.argumentCallback(t):t;return i[o]}}const m2={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},p2={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},b2={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"]},v2={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"]},y2={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"}},x2={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"}},C2=(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"},w2={ordinalNumber:C2,era:_t({values:m2,defaultWidth:"wide"}),quarter:_t({values:p2,defaultWidth:"wide",argumentCallback:e=>e-1}),month:_t({values:b2,defaultWidth:"wide"}),day:_t({values:v2,defaultWidth:"wide"}),dayPeriod:_t({values:y2,defaultWidth:"wide",formattingValues:x2,defaultFormattingWidth:"wide"})};function $t(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const a=o[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?S2(s,d=>d.test(a)):D2(s,d=>d.test(a));let u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const c=t.slice(a.length);return{value:u,rest:c}}}function D2(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function S2(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function mf(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],o=t.match(e.parsePattern);if(!o)return null;let a=e.valueCallback?e.valueCallback(o[0]):o[0];a=n.valueCallback?n.valueCallback(a):a;const s=t.slice(i.length);return{value:a,rest:s}}}const E2=/^(\d+)(th|st|nd|rd)?/i,I2=/\d+/i,_2={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},$2={any:[/^b/i,/^(a|c)/i]},R2={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},A2={any:[/1/i,/2/i,/3/i,/4/i]},F2={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},P2={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]},T2={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},k2={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]},M2={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},B2={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}},O2={ordinalNumber:mf({matchPattern:E2,parsePattern:I2,valueCallback:e=>parseInt(e,10)}),era:$t({matchPatterns:_2,defaultMatchWidth:"wide",parsePatterns:$2,defaultParseWidth:"any"}),quarter:$t({matchPatterns:R2,defaultMatchWidth:"wide",parsePatterns:A2,defaultParseWidth:"any",valueCallback:e=>e+1}),month:$t({matchPatterns:F2,defaultMatchWidth:"wide",parsePatterns:P2,defaultParseWidth:"any"}),day:$t({matchPatterns:T2,defaultMatchWidth:"wide",parsePatterns:k2,defaultParseWidth:"any"}),dayPeriod:$t({matchPatterns:M2,defaultMatchWidth:"any",parsePatterns:B2,defaultParseWidth:"any"})},pf={code:"en-US",formatDistance:l2,formatLong:f2,formatRelative:g2,localize:w2,match:O2,options:{weekStartsOn:0,firstWeekContainsDate:1}};function N2(e){const t=_n(e);return n2(t,a2(t))+1}function V2(e){const t=_n(e),n=+bl(t)-+r2(t);return Math.round(n/Ib)+1}function $b(e,t){var c,d,h,f;const n=_n(e),r=n.getFullYear(),i=su(),o=(t==null?void 0:t.firstWeekContainsDate)??((d=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:d.firstWeekContainsDate)??i.firstWeekContainsDate??((f=(h=i.locale)==null?void 0:h.options)==null?void 0:f.firstWeekContainsDate)??1,a=yi(e,0);a.setFullYear(r+1,0,o),a.setHours(0,0,0,0);const s=aa(a,t),l=yi(e,0);l.setFullYear(r,0,o),l.setHours(0,0,0,0);const u=aa(l,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function L2(e,t){var s,l,u,c;const n=su(),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??((c=(u=n.locale)==null?void 0:u.options)==null?void 0:c.firstWeekContainsDate)??1,i=$b(e,t),o=yi(e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),aa(o,t)}function H2(e,t){const n=_n(e),r=+aa(n,t)-+L2(n,t);return Math.round(r/Ib)+1}function Oe(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const xr={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Oe(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Oe(n+1,2)},d(e,t){return Oe(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 Oe(e.getHours()%12||12,t.length)},H(e,t){return Oe(e.getHours(),t.length)},m(e,t){return Oe(e.getMinutes(),t.length)},s(e,t){return Oe(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return Oe(i,t.length)}},Bi={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},dg={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 xr.y(e,t)},Y:function(e,t,n,r){const i=$b(e,r),o=i>0?i:1-i;if(t==="YY"){const a=o%100;return Oe(a,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):Oe(o,t.length)},R:function(e,t){const n=_b(e);return Oe(n,t.length)},u:function(e,t){const n=e.getFullYear();return Oe(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 Oe(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 Oe(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 xr.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 Oe(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=H2(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):Oe(i,t.length)},I:function(e,t,n){const r=V2(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Oe(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):xr.d(e,t)},D:function(e,t,n){const r=N2(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Oe(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Oe(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Oe(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return Oe(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=Bi.noon:r===0?i=Bi.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=Bi.evening:r>=12?i=Bi.afternoon:r>=4?i=Bi.morning:i=Bi.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 xr.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):xr.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Oe(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Oe(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):xr.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):xr.s(e,t)},S:function(e,t){return xr.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return hg(r);case"XXXX":case"XX":return Qr(r);case"XXXXX":case"XXX":default:return Qr(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return hg(r);case"xxxx":case"xx":return Qr(r);case"xxxxx":case"xxx":default:return Qr(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+fg(r,":");case"OOOO":default:return"GMT"+Qr(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+fg(r,":");case"zzzz":default:return"GMT"+Qr(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return Oe(r,t.length)},T:function(e,t,n){const r=e.getTime();return Oe(r,t.length)}};function fg(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return o===0?n+String(i):n+String(i)+t+Oe(o,2)}function hg(e,t){return e%60===0?(e>0?"-":"+")+Oe(Math.abs(e)/60,2):Qr(e,t)}function Qr(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Oe(Math.trunc(r/60),2),o=Oe(r%60,2);return n+i+t+o}const gg=(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"})}},Rb=(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"})}},j2=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return gg(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",gg(r,t)).replace("{{time}}",Rb(i,t))},W2={p:Rb,P:j2},z2=/^D+$/,G2=/^Y+$/,Z2=["D","DD","YY","YYYY"];function X2(e){return z2.test(e)}function Y2(e){return G2.test(e)}function U2(e,t,n){const r=J2(e,t,n);if(console.warn(r),Z2.includes(e))throw new RangeError(r)}function J2(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 K2=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,q2=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Q2=/^'([^]*?)'?$/,ew=/''/g,tw=/[a-zA-Z]/;function sa(e,t,n){var c,d,h,f,g,m,b,y;const r=su(),i=(n==null?void 0:n.locale)??r.locale??pf,o=(n==null?void 0:n.firstWeekContainsDate)??((d=(c=n==null?void 0:n.locale)==null?void 0:c.options)==null?void 0:d.firstWeekContainsDate)??r.firstWeekContainsDate??((f=(h=r.locale)==null?void 0:h.options)==null?void 0:f.firstWeekContainsDate)??1,a=(n==null?void 0:n.weekStartsOn)??((m=(g=n==null?void 0:n.locale)==null?void 0:g.options)==null?void 0:m.weekStartsOn)??r.weekStartsOn??((y=(b=r.locale)==null?void 0:b.options)==null?void 0:y.weekStartsOn)??0,s=_n(e);if(!o2(s))throw new RangeError("Invalid time value");let l=t.match(q2).map(v=>{const x=v[0];if(x==="p"||x==="P"){const C=W2[x];return C(v,i.formatLong)}return v}).join("").match(K2).map(v=>{if(v==="''")return{isToken:!1,value:"'"};const x=v[0];if(x==="'")return{isToken:!1,value:nw(v)};if(dg[x])return{isToken:!0,value:v};if(x.match(tw))throw new RangeError("Format string contains an unescaped latin alphabet character `"+x+"`");return{isToken:!1,value:v}});i.localize.preprocessor&&(l=i.localize.preprocessor(s,l));const u={firstWeekContainsDate:o,weekStartsOn:a,locale:i};return l.map(v=>{if(!v.isToken)return v.value;const x=v.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&Y2(x)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&X2(x))&&U2(x,t,String(e));const C=dg[x[0]];return C(s,x,i.localize,u)}).join("")}function nw(e){const t=e.match(Q2);return t?t[1].replace(ew,"'"):e}const rw={lessThanXSeconds:{one:"kurang dari 1 detik",other:"kurang dari {{count}} detik"},xSeconds:{one:"1 detik",other:"{{count}} detik"},halfAMinute:"setengah menit",lessThanXMinutes:{one:"kurang dari 1 menit",other:"kurang dari {{count}} menit"},xMinutes:{one:"1 menit",other:"{{count}} menit"},aboutXHours:{one:"sekitar 1 jam",other:"sekitar {{count}} jam"},xHours:{one:"1 jam",other:"{{count}} jam"},xDays:{one:"1 hari",other:"{{count}} hari"},aboutXWeeks:{one:"sekitar 1 minggu",other:"sekitar {{count}} minggu"},xWeeks:{one:"1 minggu",other:"{{count}} minggu"},aboutXMonths:{one:"sekitar 1 bulan",other:"sekitar {{count}} bulan"},xMonths:{one:"1 bulan",other:"{{count}} bulan"},aboutXYears:{one:"sekitar 1 tahun",other:"sekitar {{count}} tahun"},xYears:{one:"1 tahun",other:"{{count}} tahun"},overXYears:{one:"lebih dari 1 tahun",other:"lebih dari {{count}} tahun"},almostXYears:{one:"hampir 1 tahun",other:"hampir {{count}} tahun"}},iw=(e,t,n)=>{let r;const i=rw[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?"dalam waktu "+r:r+" yang lalu":r},ow={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"d/M/yyyy"},aw={full:"HH.mm.ss",long:"HH.mm.ss",medium:"HH.mm",short:"HH.mm"},sw={full:"{{date}} 'pukul' {{time}}",long:"{{date}} 'pukul' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},lw={date:fr({formats:ow,defaultWidth:"full"}),time:fr({formats:aw,defaultWidth:"full"}),dateTime:fr({formats:sw,defaultWidth:"full"})},uw={lastWeek:"eeee 'lalu pukul' p",yesterday:"'Kemarin pukul' p",today:"'Hari ini pukul' p",tomorrow:"'Besok pukul' p",nextWeek:"eeee 'pukul' p",other:"P"},cw=(e,t,n,r)=>uw[e],dw={narrow:["SM","M"],abbreviated:["SM","M"],wide:["Sebelum Masehi","Masehi"]},fw={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["Kuartal ke-1","Kuartal ke-2","Kuartal ke-3","Kuartal ke-4"]},hw={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Agt","Sep","Okt","Nov","Des"],wide:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"]},gw={narrow:["M","S","S","R","K","J","S"],short:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],abbreviated:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],wide:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"]},mw={narrow:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},wide:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"}},pw={narrow:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},wide:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"}},bw=(e,t)=>"ke-"+Number(e),vw={ordinalNumber:bw,era:_t({values:dw,defaultWidth:"wide"}),quarter:_t({values:fw,defaultWidth:"wide",argumentCallback:e=>e-1}),month:_t({values:hw,defaultWidth:"wide"}),day:_t({values:gw,defaultWidth:"wide"}),dayPeriod:_t({values:mw,defaultWidth:"wide",formattingValues:pw,defaultFormattingWidth:"wide"})},yw=/^ke-(\d+)?/i,xw=/\d+/i,Cw={narrow:/^(sm|m)/i,abbreviated:/^(s\.?\s?m\.?|s\.?\s?e\.?\s?u\.?|m\.?|e\.?\s?u\.?)/i,wide:/^(sebelum masehi|sebelum era umum|masehi|era umum)/i},ww={any:[/^s/i,/^(m|e)/i]},Dw={narrow:/^[1234]/i,abbreviated:/^K-?\s[1234]/i,wide:/^Kuartal ke-?\s?[1234]/i},Sw={any:[/1/i,/2/i,/3/i,/4/i]},Ew={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|mei|jun|jul|agt|sep|okt|nov|des)/i,wide:/^(januari|februari|maret|april|mei|juni|juli|agustus|september|oktober|november|desember)/i},Iw={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,/^ma/i,/^ap/i,/^me/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},_w={narrow:/^[srkjm]/i,short:/^(min|sen|sel|rab|kam|jum|sab)/i,abbreviated:/^(min|sen|sel|rab|kam|jum|sab)/i,wide:/^(minggu|senin|selasa|rabu|kamis|jumat|sabtu)/i},$w={narrow:[/^m/i,/^s/i,/^s/i,/^r/i,/^k/i,/^j/i,/^s/i],any:[/^m/i,/^sen/i,/^sel/i,/^r/i,/^k/i,/^j/i,/^sa/i]},Rw={narrow:/^(a|p|tengah m|tengah h|(di(\swaktu)?) (pagi|siang|sore|malam))/i,any:/^([ap]\.?\s?m\.?|tengah malam|tengah hari|(di(\swaktu)?) (pagi|siang|sore|malam))/i},Aw={any:{am:/^a/i,pm:/^pm/i,midnight:/^tengah m/i,noon:/^tengah h/i,morning:/pagi/i,afternoon:/siang/i,evening:/sore/i,night:/malam/i}},Fw={ordinalNumber:mf({matchPattern:yw,parsePattern:xw,valueCallback:e=>parseInt(e,10)}),era:$t({matchPatterns:Cw,defaultMatchWidth:"wide",parsePatterns:ww,defaultParseWidth:"any"}),quarter:$t({matchPatterns:Dw,defaultMatchWidth:"wide",parsePatterns:Sw,defaultParseWidth:"any",valueCallback:e=>e+1}),month:$t({matchPatterns:Ew,defaultMatchWidth:"wide",parsePatterns:Iw,defaultParseWidth:"any"}),day:$t({matchPatterns:_w,defaultMatchWidth:"wide",parsePatterns:$w,defaultParseWidth:"any"}),dayPeriod:$t({matchPatterns:Rw,defaultMatchWidth:"any",parsePatterns:Aw,defaultParseWidth:"any"})},vl={code:"id",formatDistance:iw,formatLong:lw,formatRelative:cw,localize:vw,match:Fw,options:{weekStartsOn:1,firstWeekContainsDate:1}},Pw={lessThanXSeconds:{one:"minder dan een seconde",other:"minder dan {{count}} seconden"},xSeconds:{one:"1 seconde",other:"{{count}} seconden"},halfAMinute:"een halve minuut",lessThanXMinutes:{one:"minder dan een minuut",other:"minder dan {{count}} minuten"},xMinutes:{one:"een minuut",other:"{{count}} minuten"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} uur"},xHours:{one:"1 uur",other:"{{count}} uur"},xDays:{one:"1 dag",other:"{{count}} dagen"},aboutXWeeks:{one:"ongeveer 1 week",other:"ongeveer {{count}} weken"},xWeeks:{one:"1 week",other:"{{count}} weken"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maanden"},xMonths:{one:"1 maand",other:"{{count}} maanden"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer dan 1 jaar",other:"meer dan {{count}} jaar"},almostXYears:{one:"bijna 1 jaar",other:"bijna {{count}} jaar"}},Tw=(e,t,n)=>{let r;const i=Pw[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"over "+r:r+" geleden":r},kw={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"},Mw={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Bw={full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Ow={date:fr({formats:kw,defaultWidth:"full"}),time:fr({formats:Mw,defaultWidth:"full"}),dateTime:fr({formats:Bw,defaultWidth:"full"})},Nw={lastWeek:"'afgelopen' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"},Vw=(e,t,n,r)=>Nw[e],Lw={narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]},Hw={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]},jw={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},Ww={narrow:["Z","M","D","W","D","V","Z"],short:["zo","ma","di","wo","do","vr","za"],abbreviated:["zon","maa","din","woe","don","vri","zat"],wide:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},zw={narrow:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},abbreviated:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},wide:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"}},Gw=(e,t)=>Number(e)+"e",Zw={ordinalNumber:Gw,era:_t({values:Lw,defaultWidth:"wide"}),quarter:_t({values:Hw,defaultWidth:"wide",argumentCallback:e=>e-1}),month:_t({values:jw,defaultWidth:"wide"}),day:_t({values:Ww,defaultWidth:"wide"}),dayPeriod:_t({values:zw,defaultWidth:"wide"})},Xw=/^(\d+)e?/i,Yw=/\d+/i,Uw={narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},Jw={any:[/^v/,/^n/]},Kw={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},qw={any:[/1/i,/2/i,/3/i,/4/i]},Qw={narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i},eD={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:[/^jan/i,/^feb/i,/^m(r|a)/i,/^apr/i,/^mei/i,/^jun/i,/^jul/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i]},tD={narrow:/^[zmdwv]/i,short:/^(zo|ma|di|wo|do|vr|za)/i,abbreviated:/^(zon|maa|din|woe|don|vri|zat)/i,wide:/^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i},nD={narrow:[/^z/i,/^m/i,/^d/i,/^w/i,/^d/i,/^v/i,/^z/i],any:[/^zo/i,/^ma/i,/^di/i,/^wo/i,/^do/i,/^vr/i,/^za/i]},rD={any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},iD={any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^het middaguur/i,morning:/ochtend/i,afternoon:/middag/i,evening:/avond/i,night:/nacht/i}},oD={ordinalNumber:mf({matchPattern:Xw,parsePattern:Yw,valueCallback:e=>parseInt(e,10)}),era:$t({matchPatterns:Uw,defaultMatchWidth:"wide",parsePatterns:Jw,defaultParseWidth:"any"}),quarter:$t({matchPatterns:Kw,defaultMatchWidth:"wide",parsePatterns:qw,defaultParseWidth:"any",valueCallback:e=>e+1}),month:$t({matchPatterns:Qw,defaultMatchWidth:"wide",parsePatterns:eD,defaultParseWidth:"any"}),day:$t({matchPatterns:tD,defaultMatchWidth:"wide",parsePatterns:nD,defaultParseWidth:"any"}),dayPeriod:$t({matchPatterns:rD,defaultMatchWidth:"any",parsePatterns:iD,defaultParseWidth:"any"})},Ab={code:"nl",formatDistance:Tw,formatLong:Ow,formatRelative:Vw,localize:Zw,match:oD,options:{weekStartsOn:1,firstWeekContainsDate:4}};var aD=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,Wu=Math.ceil,an=Math.floor,Bt="[BigNumber Error] ",mg=Bt+"Number primitive has more than 15 significant digits: ",mn=1e14,be=14,pg=9007199254740991,zu=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],Cr=1e7,Ht=1e9;function Fb(e){var t,n,r,i=v.prototype={constructor:v,toString:null,valueOf:null},o=new v(1),a=20,s=4,l=-7,u=21,c=-1e7,d=1e7,h=!1,f=1,g=0,m={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},b="0123456789abcdefghijklmnopqrstuvwxyz",y=!0;function v(p,S){var $,_,A,k,R,M,P,F,B=this;if(!(B instanceof v))return new v(p,S);if(S==null){if(p&&p._isBigNumber===!0){B.s=p.s,!p.c||p.e>d?B.c=B.e=null:p.e<c?B.c=[B.e=0]:(B.e=p.e,B.c=p.c.slice());return}if((M=typeof p=="number")&&p*0==0){if(B.s=1/p<0?(p=-p,-1):1,p===~~p){for(k=0,R=p;R>=10;R/=10,k++);k>d?B.c=B.e=null:(B.e=k,B.c=[p]);return}F=String(p)}else{if(!aD.test(F=String(p)))return r(B,F,M);B.s=F.charCodeAt(0)==45?(F=F.slice(1),-1):1}(k=F.indexOf("."))>-1&&(F=F.replace(".","")),(R=F.search(/e/i))>0?(k<0&&(k=R),k+=+F.slice(R+1),F=F.substring(0,R)):k<0&&(k=F.length)}else{if(Ze(S,2,b.length,"Base"),S==10&&y)return B=new v(p),I(B,a+B.e+1,s);if(F=String(p),M=typeof p=="number"){if(p*0!=0)return r(B,F,M,S);if(B.s=1/p<0?(F=F.slice(1),-1):1,v.DEBUG&&F.replace(/^0\.0*|\./,"").length>15)throw Error(mg+p)}else B.s=F.charCodeAt(0)===45?(F=F.slice(1),-1):1;for($=b.slice(0,S),k=R=0,P=F.length;R<P;R++)if($.indexOf(_=F.charAt(R))<0){if(_=="."){if(R>k){k=P;continue}}else if(!A&&(F==F.toUpperCase()&&(F=F.toLowerCase())||F==F.toLowerCase()&&(F=F.toUpperCase()))){A=!0,R=-1,k=0;continue}return r(B,String(p),M,S)}M=!1,F=n(F,S,10,B.s),(k=F.indexOf("."))>-1?F=F.replace(".",""):k=F.length}for(R=0;F.charCodeAt(R)===48;R++);for(P=F.length;F.charCodeAt(--P)===48;);if(F=F.slice(R,++P)){if(P-=R,M&&v.DEBUG&&P>15&&(p>pg||p!==an(p)))throw Error(mg+B.s*p);if((k=k-R-1)>d)B.c=B.e=null;else if(k<c)B.c=[B.e=0];else{if(B.e=k,B.c=[],R=(k+1)%be,k<0&&(R+=be),R<P){for(R&&B.c.push(+F.slice(0,R)),P-=be;R<P;)B.c.push(+F.slice(R,R+=be));R=be-(F=F.slice(R)).length}else R-=P;for(;R--;F+="0");B.c.push(+F)}}else B.c=[B.e=0]}v.clone=Fb,v.ROUND_UP=0,v.ROUND_DOWN=1,v.ROUND_CEIL=2,v.ROUND_FLOOR=3,v.ROUND_HALF_UP=4,v.ROUND_HALF_DOWN=5,v.ROUND_HALF_EVEN=6,v.ROUND_HALF_CEIL=7,v.ROUND_HALF_FLOOR=8,v.EUCLID=9,v.config=v.set=function(p){var S,$;if(p!=null)if(typeof p=="object"){if(p.hasOwnProperty(S="DECIMAL_PLACES")&&($=p[S],Ze($,0,Ht,S),a=$),p.hasOwnProperty(S="ROUNDING_MODE")&&($=p[S],Ze($,0,8,S),s=$),p.hasOwnProperty(S="EXPONENTIAL_AT")&&($=p[S],$&&$.pop?(Ze($[0],-1e9,0,S),Ze($[1],0,Ht,S),l=$[0],u=$[1]):(Ze($,-1e9,Ht,S),l=-(u=$<0?-$:$))),p.hasOwnProperty(S="RANGE"))if($=p[S],$&&$.pop)Ze($[0],-1e9,-1,S),Ze($[1],1,Ht,S),c=$[0],d=$[1];else if(Ze($,-1e9,Ht,S),$)c=-(d=$<0?-$:$);else throw Error(Bt+S+" cannot be zero: "+$);if(p.hasOwnProperty(S="CRYPTO"))if($=p[S],$===!!$)if($)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))h=$;else throw h=!$,Error(Bt+"crypto unavailable");else h=$;else throw Error(Bt+S+" not true or false: "+$);if(p.hasOwnProperty(S="MODULO_MODE")&&($=p[S],Ze($,0,9,S),f=$),p.hasOwnProperty(S="POW_PRECISION")&&($=p[S],Ze($,0,Ht,S),g=$),p.hasOwnProperty(S="FORMAT"))if($=p[S],typeof $=="object")m=$;else throw Error(Bt+S+" not an object: "+$);if(p.hasOwnProperty(S="ALPHABET"))if($=p[S],typeof $=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test($))y=$.slice(0,10)=="0123456789",b=$;else throw Error(Bt+S+" invalid: "+$)}else throw Error(Bt+"Object expected: "+p);return{DECIMAL_PLACES:a,ROUNDING_MODE:s,EXPONENTIAL_AT:[l,u],RANGE:[c,d],CRYPTO:h,MODULO_MODE:f,POW_PRECISION:g,FORMAT:m,ALPHABET:b}},v.isBigNumber=function(p){if(!p||p._isBigNumber!==!0)return!1;if(!v.DEBUG)return!0;var S,$,_=p.c,A=p.e,k=p.s;e:if({}.toString.call(_)=="[object Array]"){if((k===1||k===-1)&&A>=-1e9&&A<=Ht&&A===an(A)){if(_[0]===0){if(A===0&&_.length===1)return!0;break e}if(S=(A+1)%be,S<1&&(S+=be),String(_[0]).length==S){for(S=0;S<_.length;S++)if($=_[S],$<0||$>=mn||$!==an($))break e;if($!==0)return!0}}}else if(_===null&&A===null&&(k===null||k===1||k===-1))return!0;throw Error(Bt+"Invalid BigNumber: "+p)},v.maximum=v.max=function(){return C(arguments,-1)},v.minimum=v.min=function(){return C(arguments,1)},v.random=function(){var p=9007199254740992,S=Math.random()*p&2097151?function(){return an(Math.random()*p)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function($){var _,A,k,R,M,P=0,F=[],B=new v(o);if($==null?$=a:Ze($,0,Ht),R=Wu($/be),h)if(crypto.getRandomValues){for(_=crypto.getRandomValues(new Uint32Array(R*=2));P<R;)M=_[P]*131072+(_[P+1]>>>11),M>=9e15?(A=crypto.getRandomValues(new Uint32Array(2)),_[P]=A[0],_[P+1]=A[1]):(F.push(M%1e14),P+=2);P=R/2}else if(crypto.randomBytes){for(_=crypto.randomBytes(R*=7);P<R;)M=(_[P]&31)*281474976710656+_[P+1]*1099511627776+_[P+2]*4294967296+_[P+3]*16777216+(_[P+4]<<16)+(_[P+5]<<8)+_[P+6],M>=9e15?crypto.randomBytes(7).copy(_,P):(F.push(M%1e14),P+=7);P=R/7}else throw h=!1,Error(Bt+"crypto unavailable");if(!h)for(;P<R;)M=S(),M<9e15&&(F[P++]=M%1e14);for(R=F[--P],$%=be,R&&$&&(M=zu[be-$],F[P]=an(R/M)*M);F[P]===0;F.pop(),P--);if(P<0)F=[k=0];else{for(k=-1;F[0]===0;F.splice(0,1),k-=be);for(P=1,M=F[0];M>=10;M/=10,P++);P<be&&(k-=be-P)}return B.e=k,B.c=F,B}}(),v.sum=function(){for(var p=1,S=arguments,$=new v(S[0]);p<S.length;)$=$.plus(S[p++]);return $},n=function(){var p="0123456789";function S($,_,A,k){for(var R,M=[0],P,F=0,B=$.length;F<B;){for(P=M.length;P--;M[P]*=_);for(M[0]+=k.indexOf($.charAt(F++)),R=0;R<M.length;R++)M[R]>A-1&&(M[R+1]==null&&(M[R+1]=0),M[R+1]+=M[R]/A|0,M[R]%=A)}return M.reverse()}return function($,_,A,k,R){var M,P,F,B,N,O,L,W,Z=$.indexOf("."),j=a,H=s;for(Z>=0&&(B=g,g=0,$=$.replace(".",""),W=new v(_),O=W.pow($.length-Z),g=B,W.c=S(Yn(tn(O.c),O.e,"0"),10,A,p),W.e=W.c.length),L=S($,_,A,R?(M=b,p):(M=p,b)),F=B=L.length;L[--B]==0;L.pop());if(!L[0])return M.charAt(0);if(Z<0?--F:(O.c=L,O.e=F,O.s=k,O=t(O,W,j,H,A),L=O.c,N=O.r,F=O.e),P=F+j+1,Z=L[P],B=A/2,N=N||P<0||L[P+1]!=null,N=H<4?(Z!=null||N)&&(H==0||H==(O.s<0?3:2)):Z>B||Z==B&&(H==4||N||H==6&&L[P-1]&1||H==(O.s<0?8:7)),P<1||!L[0])$=N?Yn(M.charAt(1),-j,M.charAt(0)):M.charAt(0);else{if(L.length=P,N)for(--A;++L[--P]>A;)L[P]=0,P||(++F,L=[1].concat(L));for(B=L.length;!L[--B];);for(Z=0,$="";Z<=B;$+=M.charAt(L[Z++]));$=Yn($,F,M.charAt(0))}return $}}(),t=function(){function p(_,A,k){var R,M,P,F,B=0,N=_.length,O=A%Cr,L=A/Cr|0;for(_=_.slice();N--;)P=_[N]%Cr,F=_[N]/Cr|0,R=L*P+F*O,M=O*P+R%Cr*Cr+B,B=(M/k|0)+(R/Cr|0)+L*F,_[N]=M%k;return B&&(_=[B].concat(_)),_}function S(_,A,k,R){var M,P;if(k!=R)P=k>R?1:-1;else for(M=P=0;M<k;M++)if(_[M]!=A[M]){P=_[M]>A[M]?1:-1;break}return P}function $(_,A,k,R){for(var M=0;k--;)_[k]-=M,M=_[k]<A[k]?1:0,_[k]=M*R+_[k]-A[k];for(;!_[0]&&_.length>1;_.splice(0,1));}return function(_,A,k,R,M){var P,F,B,N,O,L,W,Z,j,H,V,z,Y,K,Q,ee,X,ue=_.s==A.s?1:-1,fe=_.c,he=A.c;if(!fe||!fe[0]||!he||!he[0])return new v(!_.s||!A.s||(fe?he&&fe[0]==he[0]:!he)?NaN:fe&&fe[0]==0||!he?ue*0:ue/0);for(Z=new v(ue),j=Z.c=[],F=_.e-A.e,ue=k+F+1,M||(M=mn,F=sn(_.e/be)-sn(A.e/be),ue=ue/be|0),B=0;he[B]==(fe[B]||0);B++);if(he[B]>(fe[B]||0)&&F--,ue<0)j.push(1),N=!0;else{for(K=fe.length,ee=he.length,B=0,ue+=2,O=an(M/(he[0]+1)),O>1&&(he=p(he,O,M),fe=p(fe,O,M),ee=he.length,K=fe.length),Y=ee,H=fe.slice(0,ee),V=H.length;V<ee;H[V++]=0);X=he.slice(),X=[0].concat(X),Q=he[0],he[1]>=M/2&&Q++;do{if(O=0,P=S(he,H,ee,V),P<0){if(z=H[0],ee!=V&&(z=z*M+(H[1]||0)),O=an(z/Q),O>1)for(O>=M&&(O=M-1),L=p(he,O,M),W=L.length,V=H.length;S(L,H,W,V)==1;)O--,$(L,ee<W?X:he,W,M),W=L.length,P=1;else O==0&&(P=O=1),L=he.slice(),W=L.length;if(W<V&&(L=[0].concat(L)),$(H,L,V,M),V=H.length,P==-1)for(;S(he,H,ee,V)<1;)O++,$(H,ee<V?X:he,V,M),V=H.length}else P===0&&(O++,H=[0]);j[B++]=O,H[0]?H[V++]=fe[Y]||0:(H=[fe[Y]],V=1)}while((Y++<K||H[0]!=null)&&ue--);N=H[0]!=null,j[0]||j.splice(0,1)}if(M==mn){for(B=1,ue=j[0];ue>=10;ue/=10,B++);I(Z,k+(Z.e=B+F*be-1)+1,R,N)}else Z.e=F,Z.r=+N;return Z}}();function x(p,S,$,_){var A,k,R,M,P;if($==null?$=s:Ze($,0,8),!p.c)return p.toString();if(A=p.c[0],R=p.e,S==null)P=tn(p.c),P=_==1||_==2&&(R<=l||R>=u)?cs(P,R):Yn(P,R,"0");else if(p=I(new v(p),S,$),k=p.e,P=tn(p.c),M=P.length,_==1||_==2&&(S<=k||k<=l)){for(;M<S;P+="0",M++);P=cs(P,k)}else if(S-=R,P=Yn(P,k,"0"),k+1>M){if(--S>0)for(P+=".";S--;P+="0");}else if(S+=k-M,S>0)for(k+1==M&&(P+=".");S--;P+="0");return p.s<0&&A?"-"+P:P}function C(p,S){for(var $,_,A=1,k=new v(p[0]);A<p.length;A++)_=new v(p[A]),(!_.s||($=Xr(k,_))===S||$===0&&k.s===S)&&(k=_);return k}function D(p,S,$){for(var _=1,A=S.length;!S[--A];S.pop());for(A=S[0];A>=10;A/=10,_++);return($=_+$*be-1)>d?p.c=p.e=null:$<c?p.c=[p.e=0]:(p.e=$,p.c=S),p}r=function(){var p=/^(-?)0([xbo])(?=\w[\w.]*$)/i,S=/^([^.]+)\.$/,$=/^\.([^.]+)$/,_=/^-?(Infinity|NaN)$/,A=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(k,R,M,P){var F,B=M?R:R.replace(A,"");if(_.test(B))k.s=isNaN(B)?null:B<0?-1:1;else{if(!M&&(B=B.replace(p,function(N,O,L){return F=(L=L.toLowerCase())=="x"?16:L=="b"?2:8,!P||P==F?O:N}),P&&(F=P,B=B.replace(S,"$1").replace($,"0.$1")),R!=B))return new v(B,F);if(v.DEBUG)throw Error(Bt+"Not a"+(P?" base "+P:"")+" number: "+R);k.s=null}k.c=k.e=null}}();function I(p,S,$,_){var A,k,R,M,P,F,B,N=p.c,O=zu;if(N){e:{for(A=1,M=N[0];M>=10;M/=10,A++);if(k=S-A,k<0)k+=be,R=S,P=N[F=0],B=an(P/O[A-R-1]%10);else if(F=Wu((k+1)/be),F>=N.length)if(_){for(;N.length<=F;N.push(0));P=B=0,A=1,k%=be,R=k-be+1}else break e;else{for(P=M=N[F],A=1;M>=10;M/=10,A++);k%=be,R=k-be+A,B=R<0?0:an(P/O[A-R-1]%10)}if(_=_||S<0||N[F+1]!=null||(R<0?P:P%O[A-R-1]),_=$<4?(B||_)&&($==0||$==(p.s<0?3:2)):B>5||B==5&&($==4||_||$==6&&(k>0?R>0?P/O[A-R]:0:N[F-1])%10&1||$==(p.s<0?8:7)),S<1||!N[0])return N.length=0,_?(S-=p.e+1,N[0]=O[(be-S%be)%be],p.e=-S||0):N[0]=p.e=0,p;if(k==0?(N.length=F,M=1,F--):(N.length=F+1,M=O[be-k],N[F]=R>0?an(P/O[A-R]%O[R])*M:0),_)for(;;)if(F==0){for(k=1,R=N[0];R>=10;R/=10,k++);for(R=N[0]+=M,M=1;R>=10;R/=10,M++);k!=M&&(p.e++,N[0]==mn&&(N[0]=1));break}else{if(N[F]+=M,N[F]!=mn)break;N[F--]=0,M=1}for(k=N.length;N[--k]===0;N.pop());}p.e>d?p.c=p.e=null:p.e<c&&(p.c=[p.e=0])}return p}function T(p){var S,$=p.e;return $===null?p.toString():(S=tn(p.c),S=$<=l||$>=u?cs(S,$):Yn(S,$,"0"),p.s<0?"-"+S:S)}return i.absoluteValue=i.abs=function(){var p=new v(this);return p.s<0&&(p.s=1),p},i.comparedTo=function(p,S){return Xr(this,new v(p,S))},i.decimalPlaces=i.dp=function(p,S){var $,_,A,k=this;if(p!=null)return Ze(p,0,Ht),S==null?S=s:Ze(S,0,8),I(new v(k),p+k.e+1,S);if(!($=k.c))return null;if(_=((A=$.length-1)-sn(this.e/be))*be,A=$[A])for(;A%10==0;A/=10,_--);return _<0&&(_=0),_},i.dividedBy=i.div=function(p,S){return t(this,new v(p,S),a,s)},i.dividedToIntegerBy=i.idiv=function(p,S){return t(this,new v(p,S),0,1)},i.exponentiatedBy=i.pow=function(p,S){var $,_,A,k,R,M,P,F,B,N=this;if(p=new v(p),p.c&&!p.isInteger())throw Error(Bt+"Exponent not an integer: "+T(p));if(S!=null&&(S=new v(S)),M=p.e>14,!N.c||!N.c[0]||N.c[0]==1&&!N.e&&N.c.length==1||!p.c||!p.c[0])return B=new v(Math.pow(+T(N),M?p.s*(2-us(p)):+T(p))),S?B.mod(S):B;if(P=p.s<0,S){if(S.c?!S.c[0]:!S.s)return new v(NaN);_=!P&&N.isInteger()&&S.isInteger(),_&&(N=N.mod(S))}else{if(p.e>9&&(N.e>0||N.e<-1||(N.e==0?N.c[0]>1||M&&N.c[1]>=24e7:N.c[0]<8e13||M&&N.c[0]<=9999975e7)))return k=N.s<0&&us(p)?-0:0,N.e>-1&&(k=1/k),new v(P?1/k:k);g&&(k=Wu(g/be+2))}for(M?($=new v(.5),P&&(p.s=1),F=us(p)):(A=Math.abs(+T(p)),F=A%2),B=new v(o);;){if(F){if(B=B.times(N),!B.c)break;k?B.c.length>k&&(B.c.length=k):_&&(B=B.mod(S))}if(A){if(A=an(A/2),A===0)break;F=A%2}else if(p=p.times($),I(p,p.e+1,1),p.e>14)F=us(p);else{if(A=+T(p),A===0)break;F=A%2}N=N.times(N),k?N.c&&N.c.length>k&&(N.c.length=k):_&&(N=N.mod(S))}return _?B:(P&&(B=o.div(B)),S?B.mod(S):k?I(B,g,s,R):B)},i.integerValue=function(p){var S=new v(this);return p==null?p=s:Ze(p,0,8),I(S,S.e+1,p)},i.isEqualTo=i.eq=function(p,S){return Xr(this,new v(p,S))===0},i.isFinite=function(){return!!this.c},i.isGreaterThan=i.gt=function(p,S){return Xr(this,new v(p,S))>0},i.isGreaterThanOrEqualTo=i.gte=function(p,S){return(S=Xr(this,new v(p,S)))===1||S===0},i.isInteger=function(){return!!this.c&&sn(this.e/be)>this.c.length-2},i.isLessThan=i.lt=function(p,S){return Xr(this,new v(p,S))<0},i.isLessThanOrEqualTo=i.lte=function(p,S){return(S=Xr(this,new v(p,S)))===-1||S===0},i.isNaN=function(){return!this.s},i.isNegative=function(){return this.s<0},i.isPositive=function(){return this.s>0},i.isZero=function(){return!!this.c&&this.c[0]==0},i.minus=function(p,S){var $,_,A,k,R=this,M=R.s;if(p=new v(p,S),S=p.s,!M||!S)return new v(NaN);if(M!=S)return p.s=-S,R.plus(p);var P=R.e/be,F=p.e/be,B=R.c,N=p.c;if(!P||!F){if(!B||!N)return B?(p.s=-S,p):new v(N?R:NaN);if(!B[0]||!N[0])return N[0]?(p.s=-S,p):new v(B[0]?R:s==3?-0:0)}if(P=sn(P),F=sn(F),B=B.slice(),M=P-F){for((k=M<0)?(M=-M,A=B):(F=P,A=N),A.reverse(),S=M;S--;A.push(0));A.reverse()}else for(_=(k=(M=B.length)<(S=N.length))?M:S,M=S=0;S<_;S++)if(B[S]!=N[S]){k=B[S]<N[S];break}if(k&&(A=B,B=N,N=A,p.s=-p.s),S=(_=N.length)-($=B.length),S>0)for(;S--;B[$++]=0);for(S=mn-1;_>M;){if(B[--_]<N[_]){for($=_;$&&!B[--$];B[$]=S);--B[$],B[_]+=mn}B[_]-=N[_]}for(;B[0]==0;B.splice(0,1),--F);return B[0]?D(p,B,F):(p.s=s==3?-1:1,p.c=[p.e=0],p)},i.modulo=i.mod=function(p,S){var $,_,A=this;return p=new v(p,S),!A.c||!p.s||p.c&&!p.c[0]?new v(NaN):!p.c||A.c&&!A.c[0]?new v(A):(f==9?(_=p.s,p.s=1,$=t(A,p,0,3),p.s=_,$.s*=_):$=t(A,p,0,f),p=A.minus($.times(p)),!p.c[0]&&f==1&&(p.s=A.s),p)},i.multipliedBy=i.times=function(p,S){var $,_,A,k,R,M,P,F,B,N,O,L,W,Z,j,H=this,V=H.c,z=(p=new v(p,S)).c;if(!V||!z||!V[0]||!z[0])return!H.s||!p.s||V&&!V[0]&&!z||z&&!z[0]&&!V?p.c=p.e=p.s=null:(p.s*=H.s,!V||!z?p.c=p.e=null:(p.c=[0],p.e=0)),p;for(_=sn(H.e/be)+sn(p.e/be),p.s*=H.s,P=V.length,N=z.length,P<N&&(W=V,V=z,z=W,A=P,P=N,N=A),A=P+N,W=[];A--;W.push(0));for(Z=mn,j=Cr,A=N;--A>=0;){for($=0,O=z[A]%j,L=z[A]/j|0,R=P,k=A+R;k>A;)F=V[--R]%j,B=V[R]/j|0,M=L*F+B*O,F=O*F+M%j*j+W[k]+$,$=(F/Z|0)+(M/j|0)+L*B,W[k--]=F%Z;W[k]=$}return $?++_:W.splice(0,1),D(p,W,_)},i.negated=function(){var p=new v(this);return p.s=-p.s||null,p},i.plus=function(p,S){var $,_=this,A=_.s;if(p=new v(p,S),S=p.s,!A||!S)return new v(NaN);if(A!=S)return p.s=-S,_.minus(p);var k=_.e/be,R=p.e/be,M=_.c,P=p.c;if(!k||!R){if(!M||!P)return new v(A/0);if(!M[0]||!P[0])return P[0]?p:new v(M[0]?_:A*0)}if(k=sn(k),R=sn(R),M=M.slice(),A=k-R){for(A>0?(R=k,$=P):(A=-A,$=M),$.reverse();A--;$.push(0));$.reverse()}for(A=M.length,S=P.length,A-S<0&&($=P,P=M,M=$,S=A),A=0;S;)A=(M[--S]=M[S]+P[S]+A)/mn|0,M[S]=mn===M[S]?0:M[S]%mn;return A&&(M=[A].concat(M),++R),D(p,M,R)},i.precision=i.sd=function(p,S){var $,_,A,k=this;if(p!=null&&p!==!!p)return Ze(p,1,Ht),S==null?S=s:Ze(S,0,8),I(new v(k),p,S);if(!($=k.c))return null;if(A=$.length-1,_=A*be+1,A=$[A]){for(;A%10==0;A/=10,_--);for(A=$[0];A>=10;A/=10,_++);}return p&&k.e+1>_&&(_=k.e+1),_},i.shiftedBy=function(p){return Ze(p,-9007199254740991,pg),this.times("1e"+p)},i.squareRoot=i.sqrt=function(){var p,S,$,_,A,k=this,R=k.c,M=k.s,P=k.e,F=a+4,B=new v("0.5");if(M!==1||!R||!R[0])return new v(!M||M<0&&(!R||R[0])?NaN:R?k:1/0);if(M=Math.sqrt(+T(k)),M==0||M==1/0?(S=tn(R),(S.length+P)%2==0&&(S+="0"),M=Math.sqrt(+S),P=sn((P+1)/2)-(P<0||P%2),M==1/0?S="5e"+P:(S=M.toExponential(),S=S.slice(0,S.indexOf("e")+1)+P),$=new v(S)):$=new v(M+""),$.c[0]){for(P=$.e,M=P+F,M<3&&(M=0);;)if(A=$,$=B.times(A.plus(t(k,A,F,1))),tn(A.c).slice(0,M)===(S=tn($.c)).slice(0,M))if($.e<P&&--M,S=S.slice(M-3,M+1),S=="9999"||!_&&S=="4999"){if(!_&&(I(A,A.e+a+2,0),A.times(A).eq(k))){$=A;break}F+=4,M+=4,_=1}else{(!+S||!+S.slice(1)&&S.charAt(0)=="5")&&(I($,$.e+a+2,1),p=!$.times($).eq(k));break}}return I($,$.e+a+1,s,p)},i.toExponential=function(p,S){return p!=null&&(Ze(p,0,Ht),p++),x(this,p,S,1)},i.toFixed=function(p,S){return p!=null&&(Ze(p,0,Ht),p=p+this.e+1),x(this,p,S)},i.toFormat=function(p,S,$){var _,A=this;if($==null)p!=null&&S&&typeof S=="object"?($=S,S=null):p&&typeof p=="object"?($=p,p=S=null):$=m;else if(typeof $!="object")throw Error(Bt+"Argument not an object: "+$);if(_=A.toFixed(p,S),A.c){var k,R=_.split("."),M=+$.groupSize,P=+$.secondaryGroupSize,F=$.groupSeparator||"",B=R[0],N=R[1],O=A.s<0,L=O?B.slice(1):B,W=L.length;if(P&&(k=M,M=P,P=k,W-=k),M>0&&W>0){for(k=W%M||M,B=L.substr(0,k);k<W;k+=M)B+=F+L.substr(k,M);P>0&&(B+=F+L.slice(k)),O&&(B="-"+B)}_=N?B+($.decimalSeparator||"")+((P=+$.fractionGroupSize)?N.replace(new RegExp("\\d{"+P+"}\\B","g"),"$&"+($.fractionGroupSeparator||"")):N):B}return($.prefix||"")+_+($.suffix||"")},i.toFraction=function(p){var S,$,_,A,k,R,M,P,F,B,N,O,L=this,W=L.c;if(p!=null&&(M=new v(p),!M.isInteger()&&(M.c||M.s!==1)||M.lt(o)))throw Error(Bt+"Argument "+(M.isInteger()?"out of range: ":"not an integer: ")+T(M));if(!W)return new v(L);for(S=new v(o),F=$=new v(o),_=P=new v(o),O=tn(W),k=S.e=O.length-L.e-1,S.c[0]=zu[(R=k%be)<0?be+R:R],p=!p||M.comparedTo(S)>0?k>0?S:F:M,R=d,d=1/0,M=new v(O),P.c[0]=0;B=t(M,S,0,1),A=$.plus(B.times(_)),A.comparedTo(p)!=1;)$=_,_=A,F=P.plus(B.times(A=F)),P=A,S=M.minus(B.times(A=S)),M=A;return A=t(p.minus($),_,0,1),P=P.plus(A.times(F)),$=$.plus(A.times(_)),P.s=F.s=L.s,k=k*2,N=t(F,_,k,s).minus(L).abs().comparedTo(t(P,$,k,s).minus(L).abs())<1?[F,_]:[P,$],d=R,N},i.toNumber=function(){return+T(this)},i.toPrecision=function(p,S){return p!=null&&Ze(p,1,Ht),x(this,p,S,2)},i.toString=function(p){var S,$=this,_=$.s,A=$.e;return A===null?_?(S="Infinity",_<0&&(S="-"+S)):S="NaN":(p==null?S=A<=l||A>=u?cs(tn($.c),A):Yn(tn($.c),A,"0"):p===10&&y?($=I(new v($),a+A+1,s),S=Yn(tn($.c),$.e,"0")):(Ze(p,2,b.length,"Base"),S=n(Yn(tn($.c),A,"0"),10,p,_,!0)),_<0&&$.c[0]&&(S="-"+S)),S},i.valueOf=i.toJSON=function(){return T(this)},i._isBigNumber=!0,i[Symbol.toStringTag]="BigNumber",i[Symbol.for("nodejs.util.inspect.custom")]=i.valueOf,e!=null&&v.set(e),v}function sn(e){var t=e|0;return e>0||e===t?t:t-1}function tn(e){for(var t,n,r=1,i=e.length,o=e[0]+"";r<i;){for(t=e[r++]+"",n=be-t.length;n--;t="0"+t);o+=t}for(i=o.length;o.charCodeAt(--i)===48;);return o.slice(0,i+1||1)}function Xr(e,t){var n,r,i=e.c,o=t.c,a=e.s,s=t.s,l=e.e,u=t.e;if(!a||!s)return null;if(n=i&&!i[0],r=o&&!o[0],n||r)return n?r?0:-s:a;if(a!=s)return a;if(n=a<0,r=l==u,!i||!o)return r?0:!i^n?1:-1;if(!r)return l>u^n?1:-1;for(s=(l=i.length)<(u=o.length)?l:u,a=0;a<s;a++)if(i[a]!=o[a])return i[a]>o[a]^n?1:-1;return l==u?0:l>u^n?1:-1}function Ze(e,t,n,r){if(e<t||e>n||e!==an(e))throw Error(Bt+(r||"Argument")+(typeof e=="number"?e<t||e>n?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function us(e){var t=e.c.length-1;return sn(e.e/be)==t&&e.c[t]%2!=0}function cs(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function Yn(e,t,n){var r,i;if(t<0){for(i=n+".";++t;i+=n);e=i+e}else if(r=e.length,++t>r){for(i=n,t-=r;--t;i+=n);e+=i}else t<r&&(e=e.slice(0,t)+"."+e.slice(t));return e}var lu=Fb();const Pb={ROUNDING_MODE:lu.ROUND_HALF_UP,EXPONENTIAL_AT:[-1e9,1e9]};let id=!1;const sD=(e=Pb)=>{id||(lu.config(e),id=!0)},Ue=(e,t)=>(id||sD(),new lu(e,t)),zn=e=>{try{return Ue(e).isFinite()}catch{return!1}},Tb=e=>{if(typeof e=="number"&&Number.isFinite(e))return!0;if(typeof e=="string"&&e.trim()!==""&&!isNaN(Number(e))){const t=Number(e);return Number.isFinite(t)}return!1};function uu(e,t){const{decimals:n=2,instance:r=!1}=t||{};zn(e)||(e="0");const i=Ue(e).toFixed(n);return r?Ue(i):i}const bf=(e,t=2)=>{let n=parseFloat(Tb(e)?e:0);return n=(+(Math.round(n+"e"+t)+"e-"+t)).toFixed(t),n=Number(n),n};function Er(e,t="currency",n={minimumFractionDigits:0,locale:"id-ID",currency:"IDR",withSpace:!1}){const{minimumFractionDigits:r,locale:i,currency:o,withSpace:a}=n,s=new Intl.NumberFormat(i,{style:t,currency:o,minimumFractionDigits:r}).format(bf(e,r>0?r:2));return a?s:s.replace(/\s/g,"")}const Ji=(e,t,n,r)=>{const i={id:vl,enUS:pf,nl:Ab};let o=n??"-";return e&&!isNaN(new Date(e).getTime())&&(o=sa(e,t??"dd/MM/yyyy",{locale:i[r??"id"]})),o},lD=(e,t,n,r,i,o)=>{const a={id:vl,enUS:pf,nl:Ab};if(e&&!isNaN(new Date(e).getTime())){const s=sa(e,n??"dd/MM/yyyy",{locale:a[o??"id"]});if(t&&!isNaN(new Date(t).getTime())){const l=sa(t,n??"dd/MM/yyyy",{locale:a[o??"id"]});return s===l?s:`${s}${r??"-"}${l}`}return s}return i??"-"},kb=(e,t)=>e.reduce((n,r)=>{const i=String(r[t]);return n[i]||(n[i]=[]),n[i].push(r),n},{}),uD=({value:e,keyDate:t="date",keyFormat:n="formatDate",format:r="dd/MM/yyyy"})=>{const i=e.map(o=>({...o,[n]:Ji(o[t],r)}));return kb(i,n)},cD=e=>(Object.keys(e).forEach(t=>{["",null,void 0,[],{}].includes(e[t])&&delete e[t]}),e),dD=(e,t)=>{var h,f;const n=/^-?\d+[0-9.,]*$/,r=/([.])(?=.*\1)/,i=/([,])(?=.*\1)/,o=((h=e.split(",")[0])==null?void 0:h.trim())||"",a=((f=e.split(",")[1])==null?void 0:f.trim())||"",s=!r.test(o)&&(o==="-"||n.test(o)||!o),l=!r.test(a)&&(a==="-"||n.test(a)||!a),u=(g,m,b)=>{let y=g;const v=g.split(".")[0];return isNaN(parseFloat(v.split(".")[0]))||(parseFloat(v.split(".")[0])<=m?y=`${m}`:parseFloat(v)>=b&&(y=`${b}`)),y},c=u(o,(t==null?void 0:t.latMin)??-85,(t==null?void 0:t.latMax)??85),d=u(a,(t==null?void 0:t.longMin)??-180,(t==null?void 0:t.longMax)??180);return{latitude:c,longitude:d,latlong:`${c}${e.includes(",")?","+d:""}`,isValid:!i.test(e)&&s&&l}},bg=(e,t)=>e?Object.fromEntries(Object.entries(t).filter(([r])=>r.startsWith(e))):t,vf=(e,t)=>e.map(n=>n[t]).join(","),yf=(e,t)=>e.map(n=>n[t]),fD=(e,t)=>Array.isArray(e)?e==null?void 0:e.map((n,r,i)=>typeof t=="function"?t(n,r,i):n):[],hD=(e,t,n,r,i)=>Array.isArray(e)?{[t]:e==null?void 0:e.map((o,a,s)=>typeof n=="function"?n(o,a,s):o),[`${t}-val-be`]:o=>r==="array-of-object-to-array"?yf(o,i):vf(o,i)}:{[t]:"",[`${t}-val-be`]:()=>""};function xf(e,t){if(e===t)return!0;if(typeof e!="object"||typeof t!="object"||e===null||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n)if(!r.includes(i)||!xf(e[i],t[i]))return!1;return!0}function gD(e,t={maxTime:"hour"}){const{maxTime:n="hour"}=t,r=l=>l<10?`0${l}`:l;let i=r(0),o=r(0);const a=r(Math.floor(e%3600/60)),s=r(Math.floor(e%60));return n==="hour"?o=r(Math.floor(e/3600)):n==="day"&&(i=r(Math.floor(e/(3600*24))),o=r(Math.floor(e%(3600*24)/3600))),{day:i,hour:o,minute:a,second:s}}function Gu(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function la(e,...t){if(!t.length)return e;const n=t.shift();if(Gu(e)&&Gu(n))for(const r in n)Gu(n[r])?(e[r]||Object.assign(e,{[r]:{}}),la(e[r],n[r])):Object.assign(e,{[r]:n[r]});return la(e,...t)}const mD=e=>bf(e||0),pD=e=>uu(e||0),bD=e=>isNaN(e)?void 0:e,cu=e=>{const t=e.toString().split(""),n=t[1]!=="0"?`,${t[1]}`:"";let[r]=e.toString().split(".");return r=r.replaceAll("-",""),r.length>=15?`${+r.substring(0,3)} T`:r.length===14?`${+r.substring(0,2)} T`:r.length===13?`${+r.substring(0,1)}${n} T`:r.length===12?`${+r.substring(0,3)} M`:r.length===11?`${+r.substring(0,2)} M`:r.length===10?`${+r.substring(0,1)}${n} M`:r.length===9?`${+r.substring(0,3)} JT`:r.length===8?`${+r.substring(0,2)} JT`:r.length===7?`${+r.substring(0,1)}${n} JT`:r.length===6?`${+r.substring(0,3)} RB`:r.length===5?`${+r.substring(0,2)} RB`:r.length===4?`${+r.substring(0,1)}${n} RB`:r.length<=3?+r?`${+r}`:0:null};function od(e){if(typeof e!="string")throw new Error("Input harus berupa string");const t=e.split(".");if(t.length===1)return{filename:e,extension:""};const n="."+t[t.length-1];return{filename:t.slice(0,-1).join("."),extension:n}}const vD=e=>(new DOMParser().parseFromString(e||"","text/html").body.textContent??"").toString();function yD(e,t={}){const{locale:n,currency:r,minimumFractionDigits:i,maximumFractionDigits:o=2,withSpace:a,currencyDisplay:s}=t,l=uu(e,{decimals:o}),[u,c=""]=l.split("."),d=u.replace(/\B(?=(\d{3})+(?!\d))/g,".");let h=c.slice(0,o);i===void 0?h=h.replace(/0+$/,""):h&&i>0&&(h=h.padEnd(i,"0"));let f=h?`${d},${h}`:d;if(!n||!r)return f;const m={"id-ID":{symbol:"Rp",code:"IDR",name:"Rupiah",negativePosition:"start"},"en-US":{symbol:"$",code:"USD",name:"US Dollar",negativePosition:"middle"},"ja-JP":{symbol:"¥",code:"JPY",name:"Yen",negativePosition:"middle"}}[n]||{symbol:"",code:r,name:r},b={symbol:m.symbol,code:m.code,name:m.name}[s||"symbol"],y=f.includes("-");return f=m.negativePosition==="start"?f.replace("-",""):f,a?`${m.negativePosition==="start"&&y?"-":""}${b} ${f}`:`${m.negativePosition==="start"&&y?"-":""}${b}${f}`}function xD(e){if(!zn(e))return"0";const t=typeof e=="number"?Ue(e).toString():e;if(!t.includes("."))return t;const[n,r]=t.split("."),i=r.replace(/0+$/,"");return i?`${n}.${i}`:n}/*! js-cookie v3.0.5 | MIT */function ds(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var CD={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function ad(e,t){function n(i,o,a){if(!(typeof document>"u")){a=ds({},t,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var l in a)a[l]&&(s+="; "+l,a[l]!==!0&&(s+="="+a[l].split(";")[0]));return document.cookie=i+"="+e.write(o,i)+s}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var o=document.cookie?document.cookie.split("; "):[],a={},s=0;s<o.length;s++){var l=o[s].split("="),u=l.slice(1).join("=");try{var c=decodeURIComponent(l[0]);if(a[c]=e.read(u,c),i===c)break}catch{}}return i?a[i]:a}}return Object.create({set:n,get:r,remove:function(i,o){n(i,"",ds({},o,{expires:-1}))},withAttributes:function(i){return ad(this.converter,ds({},this.attributes,i))},withConverter:function(i){return ad(ds({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var $n=ad(CD,{path:"/"});const wD={setItem(e,t,n={},r=3e3){const o={...{path:"/",expires:365},...n};parseInt($n.get(`${e}_count`)??"0",10)&&this.removeItem(e,n);const s=Math.ceil(t.length/r);for(let l=0;l<s;l++){const u=t.slice(l*r,(l+1)*r);$n.set(`${e}_${l}`,u,o)}$n.set(`${e}_count`,s.toString(),o)},getItem(e){const t=parseInt($n.get(`${e}_count`)??"0",10);if(!t)return null;let n="";for(let r=0;r<t;r++){const i=$n.get(`${e}_${r}`);if(!i)return null;n+=i}return n},removeItem(e,t={}){const n=parseInt($n.get(`${e}_count`)??"0",10),r={path:"/",...t};if(!isNaN(n)){for(let i=0;i<n;i++)$n.remove(`${e}_${i}`,r);$n.remove(`${e}_count`,r)}},clear(e={}){const t={path:"/",...e},n=$n.get();Object.keys(n).forEach(r=>$n.remove(r,t))}};function Mb(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Mb(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ar(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Mb(e))&&(r&&(r+=" "),r+=t);return r}const ua=e=>typeof e=="number"&&!isNaN(e),fi=e=>typeof e=="string",Zt=e=>typeof e=="function",qs=e=>fi(e)||Zt(e)?e:null,sd=e=>w.isValidElement(e)||fi(e)||Zt(e)||ua(e);function DD(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)})})}function du(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:o=300}=e;return function(a){let{children:s,position:l,preventExitTransition:u,done:c,nodeRef:d,isIn:h,playToast:f}=a;const g=r?`${t}--${l}`:t,m=r?`${n}--${l}`:n,b=w.useRef(0);return w.useLayoutEffect(()=>{const y=d.current,v=g.split(" "),x=C=>{C.target===d.current&&(f(),y.removeEventListener("animationend",x),y.removeEventListener("animationcancel",x),b.current===0&&C.type!=="animationcancel"&&y.classList.remove(...v))};y.classList.add(...v),y.addEventListener("animationend",x),y.addEventListener("animationcancel",x)},[]),w.useEffect(()=>{const y=d.current,v=()=>{y.removeEventListener("animationend",v),i?DD(y,c,o):c()};h||(u?v():(b.current=1,y.className+=` ${m}`,y.addEventListener("animationend",v)))},[h]),w.createElement(w.Fragment,null,s)}}function vg(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const Rt=new Map;let ca=[];const ld=new Set,SD=e=>ld.forEach(t=>t(e)),Bb=()=>Rt.size>0;function Ob(e,t){var n;if(t)return!((n=Rt.get(t))==null||!n.isToastActive(e));let r=!1;return Rt.forEach(i=>{i.isToastActive(e)&&(r=!0)}),r}function Nb(e,t){sd(e)&&(Bb()||ca.push({content:e,options:t}),Rt.forEach(n=>{n.buildToast(e,t)}))}function yg(e,t){Rt.forEach(n=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===n.id&&n.toggle(e,t==null?void 0:t.id):n.toggle(e,t==null?void 0:t.id)})}function ED(e){const{subscribe:t,getSnapshot:n,setProps:r}=w.useRef(function(o){const a=o.containerId||1;return{subscribe(s){const l=function(c,d,h){let f=1,g=0,m=[],b=[],y=[],v=d;const x=new Map,C=new Set,D=()=>{y=Array.from(x.values()),C.forEach(p=>p())},I=p=>{b=p==null?[]:b.filter(S=>S!==p),D()},T=p=>{const{toastId:S,onOpen:$,updateId:_,children:A}=p.props,k=_==null;p.staleId&&x.delete(p.staleId),x.set(S,p),b=[...b,p.props.toastId].filter(R=>R!==p.staleId),D(),h(vg(p,k?"added":"updated")),k&&Zt($)&&$(w.isValidElement(A)&&A.props)};return{id:c,props:v,observe:p=>(C.add(p),()=>C.delete(p)),toggle:(p,S)=>{x.forEach($=>{S!=null&&S!==$.props.toastId||Zt($.toggle)&&$.toggle(p)})},removeToast:I,toasts:x,clearQueue:()=>{g-=m.length,m=[]},buildToast:(p,S)=>{if((W=>{let{containerId:Z,toastId:j,updateId:H}=W;const V=Z?Z!==c:c!==1,z=x.has(j)&&H==null;return V||z})(S))return;const{toastId:$,updateId:_,data:A,staleId:k,delay:R}=S,M=()=>{I($)},P=_==null;P&&g++;const F={...v,style:v.toastStyle,key:f++,...Object.fromEntries(Object.entries(S).filter(W=>{let[Z,j]=W;return j!=null})),toastId:$,updateId:_,data:A,closeToast:M,isIn:!1,className:qs(S.className||v.toastClassName),bodyClassName:qs(S.bodyClassName||v.bodyClassName),progressClassName:qs(S.progressClassName||v.progressClassName),autoClose:!S.isLoading&&(B=S.autoClose,N=v.autoClose,B===!1||ua(B)&&B>0?B:N),deleteToast(){const W=x.get($),{onClose:Z,children:j}=W.props;Zt(Z)&&Z(w.isValidElement(j)&&j.props),h(vg(W,"removed")),x.delete($),g--,g<0&&(g=0),m.length>0?T(m.shift()):D()}};var B,N;F.closeButton=v.closeButton,S.closeButton===!1||sd(S.closeButton)?F.closeButton=S.closeButton:S.closeButton===!0&&(F.closeButton=!sd(v.closeButton)||v.closeButton);let O=p;w.isValidElement(p)&&!fi(p.type)?O=w.cloneElement(p,{closeToast:M,toastProps:F,data:A}):Zt(p)&&(O=p({closeToast:M,toastProps:F,data:A}));const L={content:O,props:F,staleId:k};v.limit&&v.limit>0&&g>v.limit&&P?m.push(L):ua(R)?setTimeout(()=>{T(L)},R):T(L)},setProps(p){v=p},setToggle:(p,S)=>{x.get(p).toggle=S},isToastActive:p=>b.some(S=>S===p),getSnapshot:()=>v.newestOnTop?y.reverse():y}}(a,o,SD);Rt.set(a,l);const u=l.observe(s);return ca.forEach(c=>Nb(c.content,c.options)),ca=[],()=>{u(),Rt.delete(a)}},setProps(s){var l;(l=Rt.get(a))==null||l.setProps(s)},getSnapshot(){var s;return(s=Rt.get(a))==null?void 0:s.getSnapshot()}}}(e)).current;r(e);const i=w.useSyncExternalStore(t,n,n);return{getToastToRender:function(o){if(!i)return[];const a=new Map;return i.forEach(s=>{const{position:l}=s.props;a.has(l)||a.set(l,[]),a.get(l).push(s)}),Array.from(a,s=>o(s[0],s[1]))},isToastActive:Ob,count:i==null?void 0:i.length}}function ID(e){const[t,n]=w.useState(!1),[r,i]=w.useState(!1),o=w.useRef(null),a=w.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:s,pauseOnHover:l,closeToast:u,onClick:c,closeOnClick:d}=e;var h,f;function g(){n(!0)}function m(){n(!1)}function b(x){const C=o.current;a.canDrag&&C&&(a.didMove=!0,t&&m(),a.delta=e.draggableDirection==="x"?x.clientX-a.start:x.clientY-a.start,a.start!==x.clientX&&(a.canCloseOnClick=!1),C.style.transform=`translate3d(${e.draggableDirection==="x"?`${a.delta}px, var(--y)`:`0, calc(${a.delta}px + var(--y))`},0)`,C.style.opacity=""+(1-Math.abs(a.delta/a.removalDistance)))}function y(){document.removeEventListener("pointermove",b),document.removeEventListener("pointerup",y);const x=o.current;if(a.canDrag&&a.didMove&&x){if(a.canDrag=!1,Math.abs(a.delta)>a.removalDistance)return i(!0),e.closeToast(),void e.collapseAll();x.style.transition="transform 0.2s, opacity 0.2s",x.style.removeProperty("transform"),x.style.removeProperty("opacity")}}(f=Rt.get((h={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||f.setToggle(h.id,h.fn),w.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||m(),window.addEventListener("focus",g),window.addEventListener("blur",m),()=>{window.removeEventListener("focus",g),window.removeEventListener("blur",m)}},[e.pauseOnFocusLoss]);const v={onPointerDown:function(x){if(e.draggable===!0||e.draggable===x.pointerType){a.didMove=!1,document.addEventListener("pointermove",b),document.addEventListener("pointerup",y);const C=o.current;a.canCloseOnClick=!0,a.canDrag=!0,C.style.transition="none",e.draggableDirection==="x"?(a.start=x.clientX,a.removalDistance=C.offsetWidth*(e.draggablePercent/100)):(a.start=x.clientY,a.removalDistance=C.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(x){const{top:C,bottom:D,left:I,right:T}=o.current.getBoundingClientRect();x.nativeEvent.type!=="touchend"&&e.pauseOnHover&&x.clientX>=I&&x.clientX<=T&&x.clientY>=C&&x.clientY<=D?m():g()}};return s&&l&&(v.onMouseEnter=m,e.stacked||(v.onMouseLeave=g)),d&&(v.onClick=x=>{c&&c(x),a.canCloseOnClick&&u()}),{playToast:g,pauseToast:m,isRunning:t,preventExitTransition:r,toastRef:o,eventHandlers:v}}function _D(e){let{delay:t,isRunning:n,closeToast:r,type:i="default",hide:o,className:a,style:s,controlledProgress:l,progress:u,rtl:c,isIn:d,theme:h}=e;const f=o||l&&u===0,g={...s,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};l&&(g.transform=`scaleX(${u})`);const m=ar("Toastify__progress-bar",l?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${h}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":c}),b=Zt(a)?a({rtl:c,type:i,defaultClassName:m}):ar(m,a),y={[l&&u>=1?"onTransitionEnd":"onAnimationEnd"]:l&&u<1?null:()=>{d&&r()}};return w.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":f},w.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${h} Toastify__progress-bar--${i}`}),w.createElement("div",{role:"progressbar","aria-hidden":f?"true":"false","aria-label":"notification timer",className:b,style:g,...y}))}let $D=1;const Vb=()=>""+$D++;function RD(e){return e&&(fi(e.toastId)||ua(e.toastId))?e.toastId:Vb()}function Uo(e,t){return Nb(e,t),t.toastId}function yl(e,t){return{...t,type:t&&t.type||e,toastId:RD(t)}}function fs(e){return(t,n)=>Uo(t,yl(e,n))}function Me(e,t){return Uo(e,yl("default",t))}Me.loading=(e,t)=>Uo(e,yl("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),Me.promise=function(e,t,n){let r,{pending:i,error:o,success:a}=t;i&&(r=fi(i)?Me.loading(i,n):Me.loading(i.render,{...n,...i}));const s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(c,d,h)=>{if(d==null)return void Me.dismiss(r);const f={type:c,...s,...n,data:h},g=fi(d)?{render:d}:d;return r?Me.update(r,{...f,...g}):Me(g.render,{...f,...g}),h},u=Zt(e)?e():e;return u.then(c=>l("success",a,c)).catch(c=>l("error",o,c)),u},Me.success=fs("success"),Me.info=fs("info"),Me.error=fs("error"),Me.warning=fs("warning"),Me.warn=Me.warning,Me.dark=(e,t)=>Uo(e,yl("default",{theme:"dark",...t})),Me.dismiss=function(e){(function(t){var n;if(Bb()){if(t==null||fi(n=t)||ua(n))Rt.forEach(r=>{r.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const r=Rt.get(t.containerId);r?r.removeToast(t.id):Rt.forEach(i=>{i.removeToast(t.id)})}}else ca=ca.filter(r=>t!=null&&r.options.toastId!==t)})(e)},Me.clearWaitingQueue=function(e){e===void 0&&(e={}),Rt.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},Me.isActive=Ob,Me.update=function(e,t){t===void 0&&(t={});const n=((r,i)=>{var o;let{containerId:a}=i;return(o=Rt.get(a||1))==null?void 0:o.toasts.get(r)})(e,t);if(n){const{props:r,content:i}=n,o={delay:100,...r,...t,toastId:t.toastId||e,updateId:Vb()};o.toastId!==e&&(o.staleId=e);const a=o.render||i;delete o.render,Uo(a,o)}},Me.done=e=>{Me.update(e,{progress:1})},Me.onChange=function(e){return ld.add(e),()=>{ld.delete(e)}},Me.play=e=>yg(!0,e),Me.pause=e=>yg(!1,e);const AD=typeof window<"u"?w.useLayoutEffect:w.useEffect,hs=e=>{let{theme:t,type:n,isLoading:r,...i}=e;return w.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...i})},Zu={info:function(e){return w.createElement(hs,{...e},w.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return w.createElement(hs,{...e},w.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return w.createElement(hs,{...e},w.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return w.createElement(hs,{...e},w.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return w.createElement("div",{className:"Toastify__spinner"})}},FD=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:o}=ID(e),{closeButton:a,children:s,autoClose:l,onClick:u,type:c,hideProgressBar:d,closeToast:h,transition:f,position:g,className:m,style:b,bodyClassName:y,bodyStyle:v,progressClassName:x,progressStyle:C,updateId:D,role:I,progress:T,rtl:p,toastId:S,deleteToast:$,isIn:_,isLoading:A,closeOnClick:k,theme:R}=e,M=ar("Toastify__toast",`Toastify__toast-theme--${R}`,`Toastify__toast--${c}`,{"Toastify__toast--rtl":p},{"Toastify__toast--close-on-click":k}),P=Zt(m)?m({rtl:p,position:g,type:c,defaultClassName:M}):ar(M,m),F=function(L){let{theme:W,type:Z,isLoading:j,icon:H}=L,V=null;const z={theme:W,type:Z};return H===!1||(Zt(H)?V=H({...z,isLoading:j}):w.isValidElement(H)?V=w.cloneElement(H,z):j?V=Zu.spinner():(Y=>Y in Zu)(Z)&&(V=Zu[Z](z))),V}(e),B=!!T||!l,N={closeToast:h,type:c,theme:R};let O=null;return a===!1||(O=Zt(a)?a(N):w.isValidElement(a)?w.cloneElement(a,N):function(L){let{closeToast:W,theme:Z,ariaLabel:j="close"}=L;return w.createElement("button",{className:`Toastify__close-button Toastify__close-button--${Z}`,type:"button",onClick:H=>{H.stopPropagation(),W(H)},"aria-label":j},w.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},w.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(N)),w.createElement(f,{isIn:_,done:$,position:g,preventExitTransition:n,nodeRef:r,playToast:o},w.createElement("div",{id:S,onClick:u,"data-in":_,className:P,...i,style:b,ref:r},w.createElement("div",{..._&&{role:I},className:Zt(y)?y({type:c}):ar("Toastify__toast-body",y),style:v},F!=null&&w.createElement("div",{className:ar("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!A})},F),w.createElement("div",null,s)),O,w.createElement(_D,{...D&&!B?{key:`pb-${D}`}:{},rtl:p,theme:R,delay:l,isRunning:t,isIn:_,closeToast:h,hide:d,type:c,style:C,className:x,controlledProgress:B,progress:T||0})))},fu=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},PD=du(fu("bounce",!0));du(fu("slide",!0));du(fu("zoom"));du(fu("flip"));const TD={position:"top-right",transition:PD,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function kD(e){let t={...TD,...e};const n=e.stacked,[r,i]=w.useState(!0),o=w.useRef(null),{getToastToRender:a,isToastActive:s,count:l}=ED(t),{className:u,style:c,rtl:d,containerId:h}=t;function f(m){const b=ar("Toastify__toast-container",`Toastify__toast-container--${m}`,{"Toastify__toast-container--rtl":d});return Zt(u)?u({position:m,rtl:d,defaultClassName:b}):ar(b,qs(u))}function g(){n&&(i(!0),Me.play())}return AD(()=>{if(n){var m;const b=o.current.querySelectorAll('[data-in="true"]'),y=12,v=(m=t.position)==null?void 0:m.includes("top");let x=0,C=0;Array.from(b).reverse().forEach((D,I)=>{const T=D;T.classList.add("Toastify__toast--stacked"),I>0&&(T.dataset.collapsed=`${r}`),T.dataset.pos||(T.dataset.pos=v?"top":"bot");const p=x*(r?.2:1)+(r?0:y*I);T.style.setProperty("--y",`${v?p:-1*p}px`),T.style.setProperty("--g",`${y}`),T.style.setProperty("--s",""+(1-(r?C:0))),x+=T.offsetHeight,C+=.025})}},[r,l,n]),w.createElement("div",{ref:o,className:"Toastify",id:h,onMouseEnter:()=>{n&&(i(!1),Me.pause())},onMouseLeave:g},a((m,b)=>{const y=b.length?{...c}:{...c,pointerEvents:"none"};return w.createElement("div",{className:f(m),style:y,key:`container-${m}`},b.map(v=>{let{content:x,props:C}=v;return w.createElement(FD,{...C,stacked:n,collapseAll:g,isIn:s(C.toastId,C.containerId),style:C.style,key:`toast-${C.key}`},x)}))}))}const jt={"alert-info-filled":"_alert-info-filled_l9fm8_1","alert-warning-filled":"_alert-warning-filled_l9fm8_1","alert-error-filled":"_alert-error-filled_l9fm8_1","alert-success-filled":"_alert-success-filled_l9fm8_1","alert-info-outlined":"_alert-info-outlined_l9fm8_1","alert-warning-outlined":"_alert-warning-outlined_l9fm8_1","alert-error-outlined":"_alert-error-outlined_l9fm8_1","alert-success-outlined":"_alert-success-outlined_l9fm8_1","alert-body":"_alert-body_l9fm8_62","text-header":"_text-header_l9fm8_68"},MD=(e,t,n)=>{const r=(n==null?void 0:n.kind)??"payhere",i={position:"top-center",autoClose:2e3,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!0,draggable:!0,bodyClassName:jt["alert-body"]},o={icon:{laba:{success:E.jsx(OD,{}),warning:E.jsx(jD,{}),error:E.jsx(LD,{}),info:E.jsx(VD,{})},payhere:{success:E.jsx(BD,{}),warning:E.jsx(HD,{}),error:E.jsx(ND,{}),info:E.jsx(WD,{})}},variant:{laba:{success:jt["alert-success-filled"],error:jt["alert-error-filled"],warning:jt["alert-warning-filled"],info:jt["alert-info-filled"]},payhere:{success:jt["alert-success-outlined"],error:jt["alert-error-outlined"],warning:jt["alert-warning-outlined"],info:jt["alert-info-outlined"]}}};return t==="error"?Me.error(E.jsxs("div",{children:[["laba"].includes(r)&&E.jsx("p",{className:jt["text-header"],children:"Error"}),e]}),{icon:o.icon[r].error,className:o.variant[r].error,...i,...n}):t==="info"?Me.info(E.jsxs("div",{children:[["laba"].includes(r)&&E.jsx("p",{className:jt["text-header"],children:"Info"}),e]}),{icon:o.icon[r].info,className:o.variant[r].info,...i,...n}):t==="warning"?Me.warning(E.jsxs("div",{children:[["laba"].includes(r)&&E.jsx("p",{className:jt["text-header"],children:"Warning"}),e]}),{icon:o.icon[r].warning,className:o.variant[r].warning,...i,...n}):Me(E.jsxs("div",{children:[["laba"].includes(r)&&E.jsx("p",{className:jt["text-header"],children:"Success"}),e]}),{icon:o.icon[r].success,className:o.variant[r].success,...i,...n})},BD=()=>E.jsx("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"1ru-h-5 1ru-w-5",children:E.jsx("g",{id:"check-circle",children:E.jsx("path",{id:"Vector",fillRule:"evenodd",clipRule:"evenodd",d:"M10 18.5C12.1217 18.5 14.1566 17.6571 15.6569 16.1569C17.1571 14.6566 18 12.6217 18 10.5C18 8.37827 17.1571 6.34344 15.6569 4.84315C14.1566 3.34285 12.1217 2.5 10 2.5C7.87827 2.5 5.84344 3.34285 4.34315 4.84315C2.84285 6.34344 2 8.37827 2 10.5C2 12.6217 2.84285 14.6566 4.34315 16.1569C5.84344 17.6571 7.87827 18.5 10 18.5ZM13.707 9.207C13.8892 9.0184 13.99 8.7658 13.9877 8.5036C13.9854 8.2414 13.8802 7.99059 13.6948 7.80518C13.5094 7.61977 13.2586 7.5146 12.9964 7.51233C12.7342 7.51005 12.4816 7.61084 12.293 7.793L9 11.086L7.707 9.793C7.5184 9.61084 7.2658 9.51005 7.0036 9.51233C6.7414 9.5146 6.49059 9.61977 6.30518 9.80518C6.11977 9.99059 6.0146 10.2414 6.01233 10.5036C6.01005 10.7658 6.11084 11.0184 6.293 11.207L8.293 13.207C8.48053 13.3945 8.73484 13.4998 9 13.4998C9.26516 13.4998 9.51947 13.3945 9.707 13.207L13.707 9.207Z",fill:"#388E3C"})})}),OD=()=>E.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"1ru-h-6 1ru-w-6",children:E.jsxs("g",{id:"circle",children:[E.jsx("path",{id:"Vector",d:"M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z",stroke:"#038C67",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),E.jsx("path",{id:"Vector_2",d:"M9 12L11 14L15 10",stroke:"#038C67",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}),ND=()=>E.jsx("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"1ru-h-5 1ru-w-5",children:E.jsx("g",{id:"exclamation-circle",children:E.jsx("path",{id:"Vector",fillRule:"evenodd",clipRule:"evenodd",d:"M18 10.5C18 12.6217 17.1571 14.6566 15.6569 16.1569C14.1566 17.6571 12.1217 18.5 10 18.5C7.87827 18.5 5.84344 17.6571 4.34315 16.1569C2.84285 14.6566 2 12.6217 2 10.5C2 8.37827 2.84285 6.34344 4.34315 4.84315C5.84344 3.34285 7.87827 2.5 10 2.5C12.1217 2.5 14.1566 3.34285 15.6569 4.84315C17.1571 6.34344 18 8.37827 18 10.5ZM11 14.5C11 14.7652 10.8946 15.0196 10.7071 15.2071C10.5196 15.3946 10.2652 15.5 10 15.5C9.73478 15.5 9.48043 15.3946 9.29289 15.2071C9.10536 15.0196 9 14.7652 9 14.5C9 14.2348 9.10536 13.9804 9.29289 13.7929C9.48043 13.6054 9.73478 13.5 10 13.5C10.2652 13.5 10.5196 13.6054 10.7071 13.7929C10.8946 13.9804 11 14.2348 11 14.5ZM10 5.5C9.73478 5.5 9.48043 5.60536 9.29289 5.79289C9.10536 5.98043 9 6.23478 9 6.5V10.5C9 10.7652 9.10536 11.0196 9.29289 11.2071C9.48043 11.3946 9.73478 11.5 10 11.5C10.2652 11.5 10.5196 11.3946 10.7071 11.2071C10.8946 11.0196 11 10.7652 11 10.5V6.5C11 6.23478 10.8946 5.98043 10.7071 5.79289C10.5196 5.60536 10.2652 5.5 10 5.5Z",fill:"#F44336"})})}),VD=()=>E.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"1ru-h-6 1ru-w-6",children:E.jsxs("g",{id:"alert",children:[E.jsx("path",{id:"Vector",d:"M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z",stroke:"#006DFF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),E.jsx("path",{id:"Vector_2",d:"M12 8V12",stroke:"#006DFF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),E.jsx("path",{id:"Vector_3",d:"M12 16H12.01",stroke:"#006DFF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}),LD=()=>E.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"1ru-h-6 1ru-w-6",children:E.jsxs("g",{id:"alert",children:[E.jsx("path",{id:"Vector",d:"M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z",stroke:"#ED0019",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),E.jsx("path",{id:"Vector_2",d:"M12 8V12",stroke:"#ED0019",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),E.jsx("path",{id:"Vector_3",d:"M12 16H12.01",stroke:"#ED0019",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}),HD=()=>E.jsx("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"1ru-h-5 1ru-w-5",children:E.jsx("g",{id:"exclamation",children:E.jsx("path",{id:"Vector",fillRule:"evenodd",clipRule:"evenodd",d:"M8.25697 3.59898C9.02197 2.23898 10.979 2.23898 11.743 3.59898L17.323 13.519C18.073 14.853 17.11 16.499 15.581 16.499H4.41997C2.88997 16.499 1.92697 14.853 2.67697 13.519L8.25697 3.59898ZM11 13.5C11 13.7652 10.8946 14.0196 10.7071 14.2071C10.5195 14.3946 10.2652 14.5 9.99997 14.5C9.73475 14.5 9.4804 14.3946 9.29286 14.2071C9.10533 14.0196 8.99997 13.7652 8.99997 13.5C8.99997 13.2348 9.10533 12.9804 9.29286 12.7929C9.4804 12.6053 9.73475 12.5 9.99997 12.5C10.2652 12.5 10.5195 12.6053 10.7071 12.7929C10.8946 12.9804 11 13.2348 11 13.5ZM9.99997 5.49998C9.73475 5.49998 9.4804 5.60534 9.29286 5.79287C9.10533 5.98041 8.99997 6.23476 8.99997 6.49998V9.49998C8.99997 9.7652 9.10533 10.0195 9.29286 10.2071C9.4804 10.3946 9.73475 10.5 9.99997 10.5C10.2652 10.5 10.5195 10.3946 10.7071 10.2071C10.8946 10.0195 11 9.7652 11 9.49998V6.49998C11 6.23476 10.8946 5.98041 10.7071 5.79287C10.5195 5.60534 10.2652 5.49998 9.99997 5.49998Z",fill:"#F9A825"})})}),jD=()=>E.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"1ru-h-6 1ru-w-6",children:E.jsxs("g",{id:"alert",children:[E.jsx("path",{id:"Vector",d:"M12 15V15.01M12 9V11V9Z",stroke:"#FF7200",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),E.jsx("path",{id:"Vector_2",d:"M5 19H19C19.3263 18.9977 19.6471 18.9156 19.9344 18.7609C20.2217 18.6061 20.4667 18.3835 20.6482 18.1123C20.8297 17.841 20.942 17.5296 20.9754 17.205C21.0089 16.8804 20.9624 16.5525 20.84 16.25L13.74 4.00002C13.567 3.68741 13.3135 3.42685 13.0058 3.2454C12.698 3.06396 12.3473 2.96826 11.99 2.96826C11.6327 2.96826 11.282 3.06396 10.9742 3.2454C10.6665 3.42685 10.413 3.68741 10.24 4.00002L3.14 16.25C3.01994 16.5456 2.97233 16.8656 3.00115 17.1833C3.02997 17.501 3.13437 17.8073 3.30565 18.0764C3.47693 18.3456 3.71011 18.5698 3.98573 18.7305C4.26134 18.8912 4.57139 18.9836 4.89 19",stroke:"#FF7200",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}),WD=()=>E.jsx("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"1ru-h-5 1ru-w-5",children:E.jsx("g",{id:"information-circle",children:E.jsx("path",{id:"Vector",fillRule:"evenodd",clipRule:"evenodd",d:"M18 10.5C18 12.6217 17.1571 14.6566 15.6569 16.1569C14.1566 17.6571 12.1217 18.5 10 18.5C7.87827 18.5 5.84344 17.6571 4.34315 16.1569C2.84285 14.6566 2 12.6217 2 10.5C2 8.37827 2.84285 6.34344 4.34315 4.84315C5.84344 3.34285 7.87827 2.5 10 2.5C12.1217 2.5 14.1566 3.34285 15.6569 4.84315C17.1571 6.34344 18 8.37827 18 10.5ZM11 6.5C11 6.76522 10.8946 7.01957 10.7071 7.20711C10.5196 7.39464 10.2652 7.5 10 7.5C9.73478 7.5 9.48043 7.39464 9.29289 7.20711C9.10536 7.01957 9 6.76522 9 6.5C9 6.23478 9.10536 5.98043 9.29289 5.79289C9.48043 5.60536 9.73478 5.5 10 5.5C10.2652 5.5 10.5196 5.60536 10.7071 5.79289C10.8946 5.98043 11 6.23478 11 6.5ZM9 9.5C8.73478 9.5 8.48043 9.60536 8.29289 9.79289C8.10536 9.98043 8 10.2348 8 10.5C8 10.7652 8.10536 11.0196 8.29289 11.2071C8.48043 11.3946 8.73478 11.5 9 11.5V14.5C9 14.7652 9.10536 15.0196 9.29289 15.2071C9.48043 15.3946 9.73478 15.5 10 15.5H11C11.2652 15.5 11.5196 15.3946 11.7071 15.2071C11.8946 15.0196 12 14.7652 12 14.5C12 14.2348 11.8946 13.9804 11.7071 13.7929C11.5196 13.6054 11.2652 13.5 11 13.5V10.5C11 10.2348 10.8946 9.98043 10.7071 9.79289C10.5196 9.60536 10.2652 9.5 10 9.5H9Z",fill:"#0288D1"})})}),Ya=e=>typeof e=="string"||typeof e=="number"||typeof e=="bigint"?uu(e):"";function zD(e,t){return{name:"minBig",message:t||`Value must be greater than or equal to ${e}`,test(n){return n=Ya(n),zn(n)?Ue(n).gte(Ue(e))?!0:this.createError({message:t||`Value must be greater than or equal to ${e}`}):this.createError({message:t||"Invalid BigNumber value"})}}}function GD(e,t){return{name:"maxBig",message:t||`Value must be less than or equal to ${e}`,test(n){return n=Ya(n),zn(n)?Ue(n).lte(Ue(e))?!0:this.createError({message:t||`Value must be less than or equal to ${e}`}):this.createError({message:t||"Invalid BigNumber value"})}}}function ZD(e,t){return{name:"moreThanBig",message:t||`Value must be greater than ${e}`,test(n){return n=Ya(n),zn(n)?Ue(n).gt(Ue(e))?!0:this.createError({message:t||`Value must be greater than ${e}`}):this.createError({message:t||"Invalid BigNumber value"})}}}function XD(e,t){return{name:"lessThanBig",message:t||`Value must be less than ${e}`,test(n){return n=Ya(n),zn(n)?Ue(n).lt(Ue(e))?!0:this.createError({message:t||`Value must be less than ${e}`}):this.createError({message:t||"Invalid BigNumber value"})}}}function YD(e,t,n){return{name:"betweenBig",message:n||`Value must be between ${e} and ${t}`,test(r){if(r=Ya(r),!zn(r))return this.createError({message:n||"Invalid BigNumber value"});const i=Ue(r),o=Ue(e),a=Ue(t);return i.lt(o)||i.gt(a)?this.createError({message:n||`Value must be between ${e} and ${t}`}):!0}}}function Cf(e){return UD.test(e)}const UD=/^-?[0-9]+$/;function JD(e){return KD.test(e)}const KD=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function Lb(e,t){const n=Number.parseFloat(e),r=String(n),i=xg(e),o=xg(r);return!!(i===o||(t==null?void 0:t.approx)===!0&&!Cf(e)&&o.length>=14&&i.startsWith(o.substring(0,14)))}let Oo=function(e){return e.underflow="underflow",e.overflow="overflow",e.truncate_integer="truncate_integer",e.truncate_float="truncate_float",e}({});function qD(e){if(Lb(e,{approx:!1}))return;if(Cf(e))return Oo.truncate_integer;const t=Number.parseFloat(e);return Number.isFinite(t)?t===0?Oo.underflow:Oo.truncate_float:Oo.overflow}function xg(e){return e.replace(QD,"").replace(t5,"").replace(n5,"").replace(e5,"")}const QD=/[eE][+-]?\d+$/,e5=/^-?(0*)?/,t5=/\./,n5=/0+$/;class r5{constructor(t){re(this,"isLosslessNumber",!0);if(!JD(t))throw new Error(`Invalid number (value: "${t}")`);this.value=t}valueOf(){const t=qD(this.value);if(t===void 0||t===Oo.truncate_float)return Number.parseFloat(this.value);if(Cf(this.value))return BigInt(this.value);throw new Error(`Cannot safely convert to number: the value '${this.value}' would ${t} and become ${Number.parseFloat(this.value)}`)}toString(){return this.value}}function i5(e){return e&&typeof e=="object"&&e.isLosslessNumber===!0||!1}function o5(e){return new r5(e)}function a5(e,t){return wf({"":e},"",e,t)}function wf(e,t,n,r){return Array.isArray(n)?r.call(e,t,l5(n,r)):n&&typeof n=="object"&&!i5(n)?r.call(e,t,s5(n,r)):r.call(e,t,n)}function s5(e,t){for(const n of Object.keys(e)){const r=wf(e,n,e[n],t);r!==void 0?e[n]=r:delete e[n]}return e}function l5(e,t){for(let n=0;n<e.length;n++)e[n]=wf(e,String(n),e[n],t);return e}function u5(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:o5,r=0;const i=s();return g(i),b(),t?a5(i,t):i;function o(){if(e.charCodeAt(r)===m5){r++,u();const R={};let M=!0;for(;r<e.length&&e.charCodeAt(r)!==wg;){M?M=!1:(h(),u());const P=r,F=c();if(F===void 0){x();return}u(),f();const B=s();if(B===void 0){S();return}Object.prototype.hasOwnProperty.call(R,F)&&!ud(B,R[F])&&C(F,P+1),R[F]=B}return e.charCodeAt(r)!==wg&&D(),r++,R}}function a(){if(e.charCodeAt(r)===p5){r++,u();const R=[];let M=!0;for(;r<e.length&&e.charCodeAt(r)!==Dg;){M?M=!1:h();const P=s();m(P),R.push(P)}return e.charCodeAt(r)!==Dg&&I(),r++,R}}function s(){u();const R=c()??d()??o()??a()??l("true",!0)??l("false",!1)??l("null",null);return u(),R}function l(R,M){if(e.slice(r,r+R.length)===R)return r+=R.length,M}function u(){for(;c5(e.charCodeAt(r));)r++}function c(){if(e.charCodeAt(r)===Xu){r++;let R="";for(;r<e.length&&e.charCodeAt(r)!==Xu;){if(e.charCodeAt(r)===g5){const M=e[r+1],P=h5[M];P!==void 0?(R+=P,r++):M==="u"?gs(e.charCodeAt(r+2))&&gs(e.charCodeAt(r+3))&&gs(e.charCodeAt(r+4))&&gs(e.charCodeAt(r+5))?(R+=String.fromCharCode(Number.parseInt(e.slice(r+2,r+6),16)),r+=5):$(r):p(r)}else f5(e.charCodeAt(r))?R+=e[r]:T(e[r]);r++}return v(),r++,R}}function d(){const R=r;if(e.charCodeAt(r)===Sg&&(r++,y(R)),e.charCodeAt(r)===Df)r++;else if(d5(e.charCodeAt(r)))for(r++;ms(e.charCodeAt(r));)r++;if(e.charCodeAt(r)===S5)for(r++,y(R);ms(e.charCodeAt(r));)r++;if(e.charCodeAt(r)===R5||e.charCodeAt(r)===$5)for(r++,(e.charCodeAt(r)===Sg||e.charCodeAt(r)===C5)&&r++,y(R);ms(e.charCodeAt(r));)r++;if(r>R)return n(e.slice(R,r))}function h(){if(e.charCodeAt(r)!==D5)throw new SyntaxError(`Comma ',' expected after value ${k()}`);r++}function f(){if(e.charCodeAt(r)!==E5)throw new SyntaxError(`Colon ':' expected after property name ${k()}`);r++}function g(R){if(R===void 0)throw new SyntaxError(`JSON value expected ${k()}`)}function m(R){if(R===void 0)throw new SyntaxError(`Array item expected ${k()}`)}function b(){if(r<e.length)throw new SyntaxError(`Expected end of input ${k()}`)}function y(R){if(!ms(e.charCodeAt(r))){const M=e.slice(R,r);throw new SyntaxError(`Invalid number '${M}', expecting a digit ${k()}`)}}function v(){if(e.charCodeAt(r)!==Xu)throw new SyntaxError(`End of string '"' expected ${k()}`)}function x(){throw new SyntaxError(`Quoted object key expected ${k()}`)}function C(R,M){throw new SyntaxError(`Duplicate key '${R}' encountered at position ${M}`)}function D(){throw new SyntaxError(`Quoted object key or end of object '}' expected ${k()}`)}function I(){throw new SyntaxError(`Array item or end of array ']' expected ${k()}`)}function T(R){throw new SyntaxError(`Invalid character '${R}' ${_()}`)}function p(R){const M=e.slice(R,R+2);throw new SyntaxError(`Invalid escape character '${M}' ${_()}`)}function S(){throw new SyntaxError(`Object value expected after ':' ${_()}`)}function $(R){const M=e.slice(R,R+6);throw new SyntaxError(`Invalid unicode character '${M}' ${_()}`)}function _(){return`at position ${r}`}function A(){return r<e.length?`but got '${e[r]}'`:"but reached end of input"}function k(){return`${A()} ${_()}`}}function c5(e){return e===b5||e===v5||e===y5||e===x5}function gs(e){return e>=Df&&e<=Sf||e>=I5&&e<=A5||e>=_5&&e<=F5}function ms(e){return e>=Df&&e<=Sf}function d5(e){return e>=w5&&e<=Sf}function f5(e){return e>=32&&e<=1114111}function ud(e,t){return e===t?!0:Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((n,r)=>ud(n,t[r])):Cg(e)&&Cg(t)?[...new Set([...Object.keys(e),...Object.keys(t)])].every(r=>ud(e[r],t[r])):!1}function Cg(e){return typeof e=="object"&&e!==null}const h5={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
2
+ `,r:"\r",t:" "},g5=92,m5=123,wg=125,p5=91,Dg=93,b5=32,v5=10,y5=9,x5=13,Xu=34,C5=43,Sg=45,Df=48,w5=49,Sf=57,D5=44,S5=46,E5=58,I5=65,_5=97,$5=69,R5=101,A5=70,F5=102;function cd(e){if(typeof e=="object"&&e!==null){if(Array.isArray(e))return e.map(cd);const t={};for(const[n,r]of Object.entries(e))typeof r=="number"||typeof r=="string"?typeof r=="number"&&!Number.isSafeInteger(r)||typeof r=="string"&&/^-?\d+(?:\.\d+)?$/.test(r)?t[n]=Ue(r).toString():t[n]=r:typeof r=="object"?t[n]=cd(r):t[n]=r;return t}return e}function dd(e){if(typeof e=="object"&&e!==null){if(Array.isArray(e))return e.map(dd);if(e instanceof Ue)return e.toString();const t={};for(const[n,r]of Object.entries(e))t[n]=dd(r);return t}return e}const P5=e=>u5(e,null,n=>typeof n=="number"&&!Number.isSafeInteger(n)||typeof n=="string"&&/^-?\d+(?:\.\d+)?$/.test(n)?Lb(n)?parseFloat(n):Ue(n).toString():n),Hb={black:"#212121",white:"#FFFFFF","primary-50":"#E3F2FD","primary-100":"#BBDEFB","primary-200":"#90CAF9","primary-300":"#64B5F6","primary-400":"#42A5F5","primary-500":"#2196F3","primary-600":"#1E88E5","primary-700":"#1976D2","primary-800":"#1565C0","primary-900":"#0D47A1","blue-gray-50":"#ECEFF1","blue-gray-100":"#CFD8DC","blue-gray-200":"#B0BEC5","blue-gray-300":"#90A4AE","blue-gray-400":"#78909C","blue-gray-500":"#607D8B","blue-gray-600":"#546E7A","blue-gray-700":"#455A64","blue-gray-800":"#37474F","blue-gray-900":"#263238","gray-50":"#FAFAFA","gray-100":"#F5F5F5","gray-200":"#EEEEEE","gray-300":"#E0E0E0","gray-400":"#BDBDBD","gray-500":"#9E9E9E","gray-600":"#757575","gray-700":"#616161","gray-800":"#424242","gray-900":"#212121","brown-50":"#EFEBE9","brown-100":"#D7CCC8","brown-200":"#BCAAA4","brown-300":"#A1887F","brown-400":"#8D6E63","brown-500":"#795548","brown-600":"#6D4C41","brown-700":"#5D4037","brown-800":"#4E342E","brown-900":"#3E2723","deep-orange-50":"#FBE9E7","deep-orange-100":"#FFCCBC","deep-orange-200":"#FFAB91","deep-orange-300":"#FF8A65","deep-orange-400":"#FF7043","deep-orange-500":"#FF5722","deep-orange-600":"#F4511E","deep-orange-700":"#E64A19","deep-orange-800":"#D84315","deep-orange-900":"#BF360C","orange-50":"#FFF3E0","orange-100":"#FFE0B2","orange-200":"#FFCC80","orange-300":"#FFB74D","orange-400":"#FFA726","orange-500":"#FF9800","orange-600":"#FB8C00","orange-700":"#F57C00","orange-800":"#EF6C00","orange-900":"#E65100","amber-50":"#FFF8E1","amber-100":"#FFECB3","amber-200":"#FFE082","amber-300":"#FFD54F","amber-400":"#FFCA28","amber-500":"#FFC107","amber-600":"#FFB300","amber-700":"#FFA000","amber-800":"#FF8F00","amber-900":"#FF6F00","yellow-50":"#FFFDE7","yellow-100":"#FFF9C4","yellow-200":"#FFF59D","yellow-300":"#FFF176","yellow-400":"#FFEE58","yellow-500":"#FFEB3B","yellow-600":"#FDD835","yellow-700":"#FBC02D","yellow-800":"#F9A825","yellow-900":"#F57F17","lime-50":"#F9FBE7","lime-100":"#F0F4C3","lime-200":"#E6EE9C","lime-300":"#DCE775","lime-400":"#D4E157","lime-500":"#CDDC39","lime-600":"#C0CA33","lime-700":"#AFB42B","lime-800":"#9E9D24","lime-900":"#827717","light-green-50":"#F1F8E9","light-green-100":"#DCEDC8","light-green-200":"#C5E1A5","light-green-300":"#AED581","light-green-400":"#9CCC65","light-green-500":"#8BC34A","light-green-600":"#7CB342","light-green-700":"#689F38","light-green-800":"#558B2F","light-green-900":"#33691E","green-50":"#E8F5E9","green-100":"#C8E6C9","green-200":"#A5D6A7","green-300":"#81C784","green-400":"#66BB6A","green-500":"#4CAF50","green-600":"#43A047","green-700":"#388E3C","green-800":"#2E7D32","green-900":"#1B5E20","teal-50":"#E0F2F1","teal-100":"#B2DFDB","teal-200":"#80CBC4","teal-300":"#4DB6AC","teal-400":"#26A69A","teal-500":"#009688","teal-600":"#00897B","teal-700":"#00796B","teal-800":"#00695C","teal-900":"#004D40","cyan-50":"#E0F7FA","cyan-100":"#B2EBF2","cyan-200":"#80DEEA","cyan-300":"#4DD0E1","cyan-400":"#26C6DA","cyan-500":"#00BCD4","cyan-600":"#00ACC1","cyan-700":"#0097A7","cyan-800":"#00838F","cyan-900":"#006064","light-blue-50":"#E1F5FE","light-blue-100":"#B3E5FC","light-blue-200":"#81D4FA","light-blue-300":"#4FC3F7","light-blue-400":"#29B6F6","light-blue-500":"#03A9F4","light-blue-600":"#039BE5","light-blue-700":"#0288D1","light-blue-800":"#0277BD","light-blue-900":"#01579B","blue-50":"#E3F2FD","blue-100":"#BBDEFB","blue-200":"#90CAF9","blue-300":"#64B5F6","blue-400":"#42A5F5","blue-500":"#2196F3","blue-600":"#1E88E5","blue-700":"#1976D2","blue-800":"#1565C0","blue-900":"#0D47A1","indigo-50":"#E8EAF6","indigo-100":"#C5CAE9","indigo-200":"#9FA8DA","indigo-300":"#7986CB","indigo-400":"#5C6BC0","indigo-500":"#3F51B5","indigo-600":"#3949AB","indigo-700":"#303F9F","indigo-800":"#283593","indigo-900":"#1A237E","deep-purple-50":"#EDE7F6","deep-purple-100":"#D1C4E9","deep-purple-200":"#B39DDB","deep-purple-300":"#9575CD","deep-purple-400":"#7E57C2","deep-purple-500":"#673AB7","deep-purple-600":"#5E35B1","deep-purple-700":"#512DA8","deep-purple-800":"#4527A0","deep-purple-900":"#311B92","purple-50":"#F3E5F5","purple-100":"#E1BEE7","purple-200":"#CE93D8","purple-300":"#BA68C8","purple-400":"#AB47BC","purple-500":"#9C27B0","purple-600":"#8E24AA","purple-700":"#7B1FA2","purple-800":"#6A1B9A","purple-900":"#4A148C","pink-50":"#FCE4EC","pink-100":"#F8BBD0","pink-200":"#F48FB1","pink-300":"#F06292","pink-400":"#EC407A","pink-500":"#E91E63","pink-600":"#D81B60","pink-700":"#C2185B","pink-800":"#AD1457","pink-900":"#880E4F","red-50":"#FFEBEE","red-100":"#FFCDD2","red-200":"#EF9A9A","red-300":"#E57373","red-400":"#EF5350","red-500":"#F44336","red-600":"#E53935","red-700":"#D32F2F","red-800":"#C62828","red-900":"#B71C1C","payhere-brand-base":"#102A4D","payhere-brand-10":"#CFD4DB","payhere-brand-20":"#AFB8C4","payhere-brand-30":"#8794A6","payhere-brand-40":"#607188","payhere-brand-50":"#384E6B","payhere-brand-60":"#0D2340","laba-black":"#212529","laba-white":"#FFFFFF","laba-blue-10":"#0163C8","laba-blue-08":"#006DFF","laba-blue-06":"#2899FF","laba-blue-05":"#73A4D6","laba-blue-02":"#DBECFF","laba-blue-01":"#F0F7FF","laba-green-10":"#038C67","laba-green-08":"#04BA27","laba-green-06":"#78D798","laba-green-05":"#ABF3CC","laba-green-02":"#CAEEE5","laba-green-01":"#DFF6F6","laba-grey-10":"#898989","laba-grey-08":"#AEAEAE","laba-grey-06":"#D6D6D6","laba-grey-05":"#EEEEEE","laba-grey-02":"#F2F2F2","laba-grey-01":"#FDFDFD","laba-orange-10":"#C05000","laba-orange-08":"#FF7200","laba-orange-06":"#FF9300","laba-orange-05":"#FFBD78","laba-orange-02":"#FFDDBB","laba-orange-01":"#FFF5EB","laba-red-10":"#9E101F","laba-red-08":"#ED0019","laba-red-06":"#FB004E","laba-red-05":"#FF5378","laba-red-02":"#FFAEBF","laba-red-01":"#FFEBEF"},jb={"payhere-h1":["60px",{lineHeight:"72px",fontWeight:700}],"payhere-h2":["48px",{lineHeight:"58px",fontWeight:700}],"payhere-h3":["40px",{lineHeight:"48px",fontWeight:700}],"payhere-h4":["30px",{lineHeight:"38px",fontWeight:700}],"payhere-h5":["28px",{lineHeight:"40px",fontWeight:600}],"payhere-h6":["24px",{lineHeight:"30px",fontWeight:600}],"payhere-body-lr":["18px",{lineHeight:"26px",fontWeight:400}],"payhere-body-lm":["18px",{lineHeight:"26px",fontWeight:500}],"payhere-body-ls":["18px",{lineHeight:"26px",fontWeight:600}],"payhere-body-lb":["18px",{lineHeight:"26px",fontWeight:700}],"payhere-body-mr":["16px",{lineHeight:"24px",fontWeight:400}],"payhere-body-mm":["16px",{lineHeight:"24px",fontWeight:500}],"payhere-body-ms":["16px",{lineHeight:"24px",fontWeight:600}],"payhere-body-mb":["16px",{lineHeight:"24px",fontWeight:700}],"payhere-label-r":["15px",{lineHeight:"26px",fontWeight:400}],"payhere-label-m":["15px",{lineHeight:"26px",fontWeight:500}],"payhere-body-sr":["14px",{lineHeight:"22px",fontWeight:400}],"payhere-body-sm":["14px",{lineHeight:"22px",fontWeight:500}],"payhere-body-esr":["12px",{lineHeight:"20px",fontWeight:400}],"payhere-body-esm":["12px",{lineHeight:"20px",fontWeight:500}]},Wb={"laba-title-lb":["36px",{lineHeight:"44px",fontWeight:700}],"laba-title-ls":["36px",{lineHeight:"44px",fontWeight:600}],"laba-title-lr":["36px",{lineHeight:"44px",fontWeight:400}],"laba-title-mb":["32px",{lineHeight:"40px",fontWeight:700}],"laba-title-ms":["32px",{lineHeight:"40px",fontWeight:600}],"laba-title-mr":["32px",{lineHeight:"40px",fontWeight:400}],"laba-h1":["24px",{lineHeight:"30px",fontWeight:700}],"laba-h1-b":["24px",{lineHeight:"30px",fontWeight:700}],"laba-h1-sb":["24px",{lineHeight:"30px",fontWeight:600}],"laba-h1-r":["24px",{lineHeight:"30px",fontWeight:400}],"laba-h2":["18px",{lineHeight:"26px",fontWeight:700}],"laba-h2-b":["18px",{lineHeight:"26px",fontWeight:700}],"laba-h2-sb":["18px",{lineHeight:"26px",fontWeight:600}],"laba-h2-r":["18px",{lineHeight:"26px",fontWeight:400}],"laba-base-rb":["16px",{lineHeight:"24px",fontWeight:700}],"laba-base-rs":["16px",{lineHeight:"24px",fontWeight:600}],"laba-base-rr":["16px",{lineHeight:"24px",fontWeight:400}],"laba-base-sb":["14px",{lineHeight:"20px",fontWeight:700}],"laba-base-ss":["14px",{lineHeight:"20px",fontWeight:600}],"laba-base-sr":["14px",{lineHeight:"20px",fontWeight:400}],"laba-subtitle-rb":["12px",{lineHeight:"16px",fontWeight:700}],"laba-subtitle-rs":["12px",{lineHeight:"16px",fontWeight:600}],"laba-subtitle-rr":["12px",{lineHeight:"16px",fontWeight:400}],"laba-subtitle-sb":["10px",{lineHeight:"12px",fontWeight:700}],"laba-subtitle-ss":["10px",{lineHeight:"12px",fontWeight:600}],"laba-subtitle-sr":["10px",{lineHeight:"12px",fontWeight:400}]},T5={...jb,...Wb},k5={sm:"576px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},M5=()=>E.jsx("div",{className:"1ru-w-full 1ru-bg-red-900",children:"index"}),B5="_loading_z48x5_10",ye={"button-xs":"_button-xs_z48x5_6","button-s":"_button-s_z48x5_6","button-m":"_button-m_z48x5_6","button-l":"_button-l_z48x5_6","button-extra-small":"_button-extra-small_z48x5_6","button-small":"_button-small_z48x5_6","button-reguler":"_button-reguler_z48x5_6","button-large":"_button-large_z48x5_6",loading:B5,"nude-laba-red-05":"_nude-laba-red-05_z48x5_18","nude-laba-red-08":"_nude-laba-red-08_z48x5_18","nude-laba-red-10":"_nude-laba-red-10_z48x5_18","nude-gray-500":"_nude-gray-500_z48x5_18","nude-green-700":"_nude-green-700_z48x5_18","nude-red-700":"_nude-red-700_z48x5_18","nude-laba-blue-10":"_nude-laba-blue-10_z48x5_18","ghost-blue-gray-100-bg_white-text_blue-gray-400":"_ghost-blue-gray-100-bg_white-text_blue-gray-400_z48x5_18","ghost-blue-gray-100-bg_white":"_ghost-blue-gray-100-bg_white_z48x5_18","ghost-laba-green-10":"_ghost-laba-green-10_z48x5_18","ghost-laba-blue-01":"_ghost-laba-blue-01_z48x5_18","ghost-laba-blue-05":"_ghost-laba-blue-05_z48x5_18","ghost-green-700":"_ghost-green-700_z48x5_18","ghost-red-700":"_ghost-red-700_z48x5_18","ghost-laba-blue-10":"_ghost-laba-blue-10_z48x5_18","filled-laba-white_laba-red-05":"_filled-laba-white_laba-red-05_z48x5_18","filled-laba-white_laba-blue-10":"_filled-laba-white_laba-blue-10_z48x5_18","primary-green-700":"_primary-green-700_z48x5_18","primary-red-700-dsb_laba-grey-06":"_primary-red-700-dsb_laba-grey-06_z48x5_18","primary-laba-blue-10":"_primary-laba-blue-10_z48x5_18","tertiary-gray-500":"_tertiary-gray-500_z48x5_18","tertiary-red-600":"_tertiary-red-600_z48x5_18","tertiary-red-300":"_tertiary-red-300_z48x5_18","tertiary-blue-700":"_tertiary-blue-700_z48x5_18","secondary-green-600":"_secondary-green-600_z48x5_18","secondary-red-700":"_secondary-red-700_z48x5_18","secondary-red-600":"_secondary-red-600_z48x5_18","secondary-blue-700":"_secondary-blue-700_z48x5_18","primary-red-700":"_primary-red-700_z48x5_18","primary-blue-700":"_primary-blue-700_z48x5_18","icon-loading":"_icon-loading_z48x5_96"},O5=({className:e=""})=>E.jsx("svg",{className:`${ye["icon-loading"]} ${e??""}`,xmlns:"http://www.w3.org/2000/svg",width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",children:E.jsx("path",{d:`M21.6311 6.63315C22.3017 6.23898 22.5321 5.36957 22.0621 4.7497C20.7187 2.9779 18.9029 1.6063 \r
3
3
  16.8106 0.800956C14.2782 -0.173807 11.4901 -0.261467 8.90143 0.552281C6.31275 1.36603 4.07629 \r
4
4
  3.03314 2.55704 5.28155C1.0378 7.52995 0.325454 10.2269 0.536268 12.9323C0.747083 15.6376 1.86861 \r
5
5
  18.1917 3.71782 20.1776C5.56702 22.1635 8.03473 23.4641 10.7182 23.867C13.4017 24.2699 16.1425 23.7514 \r
@@ -10,14 +10,14 @@
10
10
  8.57931 4.89118 6.85872C6.05378 5.13813 7.76522 3.86239 9.7462 3.23967C11.7272 2.61695 13.8607 \r
11
11
  2.68403 15.7987 3.42996C17.296 4.0063 18.6083 4.96159 19.6129 6.19191C20.1049 \r
12
12
  6.79445 20.9604 7.02733 21.6311 6.63315Z`,fill:"currentColor"})}),Dn=w.forwardRef((e,t)=>{const{size:n="reguler",variants:r="primary-laba-blue-10",startIcon:i=()=>E.jsx(E.Fragment,{}),endIcon:o=()=>E.jsx(E.Fragment,{}),children:a,className:s,classNameIconLoading:l,loading:u,onClick:c,type:d="button",disabled:h,...f}=e,g={size:{large:ye["button-large"],reguler:ye["button-reguler"],small:ye["button-small"],"extra-small":ye["button-extra-small"],l:ye["button-l"],m:ye["button-m"],s:ye["button-s"],xs:ye["button-xs"]},loadingSize:{large:"1ru-size-6",reguler:"1ru-size-5",small:"1ru-size-5","extra-small":"1ru-size-5",l:"1ru-size-6",m:"1ru-size-5",s:"1ru-size-5",xs:"1ru-size-5"},variants:{"primary-laba-blue-10":ye["primary-laba-blue-10"],"primary-red-700-dsb_laba-grey-06":ye["primary-red-700-dsb_laba-grey-06"],"primary-green-700":ye["primary-green-700"],"ghost-laba-blue-10":ye["ghost-laba-blue-10"],"ghost-red-700":ye["ghost-red-700"],"ghost-green-700":ye["ghost-green-700"],"ghost-laba-green-10":ye["ghost-laba-green-10"],"nude-laba-blue-10":ye["nude-laba-blue-10"],"nude-red-700":ye["nude-red-700"],"nude-green-700":ye["nude-green-700"],"nude-gray-500":ye["nude-gray-500"],"primary-blue-700":ye["primary-blue-700"],"secondary-blue-700":ye["secondary-blue-700"],"tertiary-blue-700":ye["tertiary-blue-700"],"ghost-blue-gray-100-bg_white":ye["ghost-blue-gray-100-bg_white"],"ghost-blue-gray-100-bg_white-text_blue-gray-400":ye["ghost-blue-gray-100-bg_white-text_blue-gray-400"],"ghost-laba-blue-05":ye["ghost-laba-blue-05"],"secondary-red-600":ye["secondary-red-600"],"tertiary-red-300":ye["tertiary-red-300"],"tertiary-gray-500":ye["tertiary-gray-500"],"tertiary-red-600":ye["tertiary-red-600"],"secondary-green-600":ye["secondary-green-600"],"nude-laba-red-10":ye["nude-laba-red-10"],"nude-laba-red-05":ye["nude-laba-red-05"],"primary-red-700":ye["primary-red-700"],"nude-laba-red-08":ye["nude-laba-red-08"],"ghost-laba-blue-01":ye["ghost-laba-blue-01"],"filled-laba-white_laba-blue-10":ye["filled-laba-white_laba-blue-10"],"filled-laba-white_laba-red-05":ye["filled-laba-white_laba-red-05"],"secondary-red-700":ye["secondary-red-700"]}};return E.jsxs("button",{onClick:u?void 0:c,ref:t,className:`${g.size[n]} ${g.variants[r]}
13
- ${u?ye.loading:""} ${s??""}`,type:d,disabled:h??u,...f,children:[!u&&E.jsxs(E.Fragment,{children:[typeof i=="function"&&i(),w.isValidElement(i)&&i]}),u&&E.jsx(O5,{className:`${g.loadingSize[n]} ${l}`}),a,!u&&E.jsxs(E.Fragment,{children:[typeof o=="function"&&o(),w.isValidElement(o)&&o]})]})});Dn.displayName="Button";function Wr(e){return zb(e)?(e.nodeName||"").toLowerCase():"#document"}function Xt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function pr(e){var t;return(t=(zb(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function zb(e){return e instanceof Node||e instanceof Xt(e).Node}function Ke(e){return e instanceof Element||e instanceof Xt(e).Element}function dt(e){return e instanceof HTMLElement||e instanceof Xt(e).HTMLElement}function fd(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Xt(e).ShadowRoot}function Ua(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=qt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function N5(e){return["table","td","th"].includes(Wr(e))}function hu(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Ef(e){const t=If(),n=qt(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function V5(e){let t=gr(e);for(;dt(t)&&!Or(t);){if(hu(t))return null;if(Ef(t))return t;t=gr(t)}return null}function If(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Or(e){return["html","body","#document"].includes(Wr(e))}function qt(e){return Xt(e).getComputedStyle(e)}function gu(e){return Ke(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function gr(e){if(Wr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||fd(e)&&e.host||pr(e);return fd(t)?t.host:t}function Gb(e){const t=gr(e);return Or(t)?e.ownerDocument?e.ownerDocument.body:e.body:dt(t)&&Ua(t)?t:Gb(t)}function Mr(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Gb(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=Xt(i);return o?t.concat(a,a.visualViewport||[],Ua(i)?i:[],a.frameElement&&n?Mr(a.frameElement):[]):t.concat(i,Mr(i,[],n))}function ei(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function zt(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&fd(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function L5(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function Zb(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}function j5(e){return e.mozInputSource===0&&e.isTrusted?!0:hd()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function H5(e){return z5()?!1:!hd()&&e.width===0&&e.height===0||hd()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function W5(){return/apple/i.test(navigator.vendor)}function hd(){const e=/android/i;return e.test(L5())||e.test(Zb())}function z5(){return Zb().includes("jsdom/")}function Eg(e,t){return["mouse","pen"].includes(e)}function G5(e){return"nativeEvent"in e}function Z5(e){return e.matches("html,body")}function pn(e){return(e==null?void 0:e.ownerDocument)||document}function Yu(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function ii(e){return"composedPath"in e?e.composedPath()[0]:e.target}const X5="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Xb(e){return dt(e)&&e.matches(X5)}function Uu(e){e.preventDefault(),e.stopPropagation()}function Y5(e){return e?e.getAttribute("role")==="combobox"&&Xb(e):!1}const U5=["top","right","bottom","left"],Ig=["start","end"],_g=U5.reduce((e,t)=>e.concat(t,t+"-"+Ig[0],t+"-"+Ig[1]),[]),uo=Math.min,hi=Math.max,xl=Math.round,ps=Math.floor,Nr=e=>({x:e,y:e}),J5={left:"right",right:"left",bottom:"top",top:"bottom"},K5={start:"end",end:"start"};function gd(e,t,n){return hi(e,uo(t,n))}function wo(e,t){return typeof e=="function"?e(t):e}function mr(e){return e.split("-")[0]}function Ln(e){return e.split("-")[1]}function Yb(e){return e==="x"?"y":"x"}function _f(e){return e==="y"?"height":"width"}function co(e){return["top","bottom"].includes(mr(e))?"y":"x"}function $f(e){return Yb(co(e))}function Ub(e,t,n){n===void 0&&(n=!1);const r=Ln(e),i=$f(e),o=_f(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=wl(a)),[a,wl(a)]}function q5(e){const t=wl(e);return[Cl(e),t,Cl(t)]}function Cl(e){return e.replace(/start|end/g,t=>K5[t])}function Q5(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:a;default:return[]}}function eS(e,t,n,r){const i=Ln(e);let o=Q5(mr(e),n==="start",r);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(Cl)))),o}function wl(e){return e.replace(/left|right|bottom|top/g,t=>J5[t])}function tS(e){return{top:0,right:0,bottom:0,left:0,...e}}function Jb(e){return typeof e!="number"?tS(e):{top:e,right:e,bottom:e,left:e}}function Dl(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}/*!
13
+ ${u?ye.loading:""} ${s??""}`,type:d,disabled:h??u,...f,children:[!u&&E.jsxs(E.Fragment,{children:[typeof i=="function"&&i(),w.isValidElement(i)&&i]}),u&&E.jsx(O5,{className:`${g.loadingSize[n]} ${l}`}),a,!u&&E.jsxs(E.Fragment,{children:[typeof o=="function"&&o(),w.isValidElement(o)&&o]})]})});Dn.displayName="Button";function Wr(e){return zb(e)?(e.nodeName||"").toLowerCase():"#document"}function Xt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function pr(e){var t;return(t=(zb(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function zb(e){return e instanceof Node||e instanceof Xt(e).Node}function Ke(e){return e instanceof Element||e instanceof Xt(e).Element}function dt(e){return e instanceof HTMLElement||e instanceof Xt(e).HTMLElement}function fd(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Xt(e).ShadowRoot}function Ua(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=qt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function N5(e){return["table","td","th"].includes(Wr(e))}function hu(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Ef(e){const t=If(),n=qt(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function V5(e){let t=gr(e);for(;dt(t)&&!Or(t);){if(hu(t))return null;if(Ef(t))return t;t=gr(t)}return null}function If(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Or(e){return["html","body","#document"].includes(Wr(e))}function qt(e){return Xt(e).getComputedStyle(e)}function gu(e){return Ke(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function gr(e){if(Wr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||fd(e)&&e.host||pr(e);return fd(t)?t.host:t}function Gb(e){const t=gr(e);return Or(t)?e.ownerDocument?e.ownerDocument.body:e.body:dt(t)&&Ua(t)?t:Gb(t)}function Mr(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Gb(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=Xt(i);return o?t.concat(a,a.visualViewport||[],Ua(i)?i:[],a.frameElement&&n?Mr(a.frameElement):[]):t.concat(i,Mr(i,[],n))}function ei(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function zt(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&fd(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function L5(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function Zb(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}function H5(e){return e.mozInputSource===0&&e.isTrusted?!0:hd()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function j5(e){return z5()?!1:!hd()&&e.width===0&&e.height===0||hd()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function W5(){return/apple/i.test(navigator.vendor)}function hd(){const e=/android/i;return e.test(L5())||e.test(Zb())}function z5(){return Zb().includes("jsdom/")}function Eg(e,t){return["mouse","pen"].includes(e)}function G5(e){return"nativeEvent"in e}function Z5(e){return e.matches("html,body")}function pn(e){return(e==null?void 0:e.ownerDocument)||document}function Yu(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function ii(e){return"composedPath"in e?e.composedPath()[0]:e.target}const X5="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Xb(e){return dt(e)&&e.matches(X5)}function Uu(e){e.preventDefault(),e.stopPropagation()}function Y5(e){return e?e.getAttribute("role")==="combobox"&&Xb(e):!1}const U5=["top","right","bottom","left"],Ig=["start","end"],_g=U5.reduce((e,t)=>e.concat(t,t+"-"+Ig[0],t+"-"+Ig[1]),[]),uo=Math.min,hi=Math.max,xl=Math.round,ps=Math.floor,Nr=e=>({x:e,y:e}),J5={left:"right",right:"left",bottom:"top",top:"bottom"},K5={start:"end",end:"start"};function gd(e,t,n){return hi(e,uo(t,n))}function wo(e,t){return typeof e=="function"?e(t):e}function mr(e){return e.split("-")[0]}function Ln(e){return e.split("-")[1]}function Yb(e){return e==="x"?"y":"x"}function _f(e){return e==="y"?"height":"width"}function co(e){return["top","bottom"].includes(mr(e))?"y":"x"}function $f(e){return Yb(co(e))}function Ub(e,t,n){n===void 0&&(n=!1);const r=Ln(e),i=$f(e),o=_f(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=wl(a)),[a,wl(a)]}function q5(e){const t=wl(e);return[Cl(e),t,Cl(t)]}function Cl(e){return e.replace(/start|end/g,t=>K5[t])}function Q5(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:a;default:return[]}}function eS(e,t,n,r){const i=Ln(e);let o=Q5(mr(e),n==="start",r);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(Cl)))),o}function wl(e){return e.replace(/left|right|bottom|top/g,t=>J5[t])}function tS(e){return{top:0,right:0,bottom:0,left:0,...e}}function Jb(e){return typeof e!="number"?tS(e):{top:e,right:e,bottom:e,left:e}}function Dl(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}/*!
14
14
  * tabbable 6.2.0
15
15
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
16
- */var nS=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Sl=nS.join(","),Kb=typeof Element>"u",fo=Kb?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,El=!Kb&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},Il=function e(t,n){var r;n===void 0&&(n=!0);var i=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),o=i===""||i==="true",a=o||n&&t&&e(t.parentNode);return a},rS=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},iS=function(t,n,r){if(Il(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(Sl));return n&&fo.call(t,Sl)&&i.unshift(t),i=i.filter(r),i},oS=function e(t,n,r){for(var i=[],o=Array.from(t);o.length;){var a=o.shift();if(!Il(a,!1))if(a.tagName==="SLOT"){var s=a.assignedElements(),l=s.length?s:a.children,u=e(l,!0,r);r.flatten?i.push.apply(i,u):i.push({scopeParent:a,candidates:u})}else{var c=fo.call(a,Sl);c&&r.filter(a)&&(n||!t.includes(a))&&i.push(a);var d=a.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(a),h=!Il(d,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(a));if(d&&h){var f=e(d===!0?a.children:d.children,!0,r);r.flatten?i.push.apply(i,f):i.push({scopeParent:a,candidates:f})}else o.unshift.apply(o,a.children)}}return i},qb=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Qb=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||rS(t))&&!qb(t)?0:t.tabIndex},aS=function(t,n){var r=Qb(t);return r<0&&n&&!qb(t)?0:r},sS=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},e1=function(t){return t.tagName==="INPUT"},lS=function(t){return e1(t)&&t.type==="hidden"},uS=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},cS=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},dS=function(t){if(!t.name)return!0;var n=t.form||El(t),r=function(s){return n.querySelectorAll('input[type="radio"][name="'+s+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=r(window.CSS.escape(t.name));else try{i=r(t.name)}catch(a){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",a.message),!1}var o=cS(i,t.form);return!o||o===t},fS=function(t){return e1(t)&&t.type==="radio"},hS=function(t){return fS(t)&&!dS(t)},gS=function(t){var n,r=t&&El(t),i=(n=r)===null||n===void 0?void 0:n.host,o=!1;if(r&&r!==t){var a,s,l;for(o=!!((a=i)!==null&&a!==void 0&&(s=a.ownerDocument)!==null&&s!==void 0&&s.contains(i)||t!=null&&(l=t.ownerDocument)!==null&&l!==void 0&&l.contains(t));!o&&i;){var u,c,d;r=El(i),i=(u=r)===null||u===void 0?void 0:u.host,o=!!((c=i)!==null&&c!==void 0&&(d=c.ownerDocument)!==null&&d!==void 0&&d.contains(i))}}return o},$g=function(t){var n=t.getBoundingClientRect(),r=n.width,i=n.height;return r===0&&i===0},mS=function(t,n){var r=n.displayCheck,i=n.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var o=fo.call(t,"details>summary:first-of-type"),a=o?t.parentElement:t;if(fo.call(a,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof i=="function"){for(var s=t;t;){var l=t.parentElement,u=El(t);if(l&&!l.shadowRoot&&i(l)===!0)return $g(t);t.assignedSlot?t=t.assignedSlot:!l&&u!==t.ownerDocument?t=u.host:t=l}t=s}if(gS(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return $g(t);return!1},pS=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var i=n.children.item(r);if(i.tagName==="LEGEND")return fo.call(n,"fieldset[disabled] *")?!0:!i.contains(t)}return!0}n=n.parentElement}return!1},bS=function(t,n){return!(n.disabled||Il(n)||lS(n)||mS(n,t)||uS(n)||pS(n))},md=function(t,n){return!(hS(n)||Qb(n)<0||!bS(t,n))},vS=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},yS=function e(t){var n=[],r=[];return t.forEach(function(i,o){var a=!!i.scopeParent,s=a?i.scopeParent:i,l=aS(s,a),u=a?e(i.candidates):s;l===0?a?n.push.apply(n,u):n.push(s):r.push({documentOrder:o,tabIndex:l,item:i,isScope:a,content:u})}),r.sort(sS).reduce(function(i,o){return o.isScope?i.push.apply(i,o.content):i.push(o.content),i},[]).concat(n)},mu=function(t,n){n=n||{};var r;return n.getShadowRoot?r=oS([t],n.includeContainer,{filter:md.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:vS}):r=iS(t,n.includeContainer,md.bind(null,n)),yS(r)},xS=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return fo.call(t,Sl)===!1?!1:md(n,t)};function Rg(e,t,n){let{reference:r,floating:i}=e;const o=co(t),a=$f(t),s=_f(a),l=mr(t),u=o==="y",c=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,h=r[s]/2-i[s]/2;let f;switch(l){case"top":f={x:c,y:r.y-i.height};break;case"bottom":f={x:c,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-i.width,y:d};break;default:f={x:r.x,y:r.y}}switch(Ln(t)){case"start":f[a]-=h*(n&&u?-1:1);break;case"end":f[a]+=h*(n&&u?-1:1);break}return f}const CS=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=o.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=Rg(u,r,l),h=r,f={},g=0;for(let m=0;m<s.length;m++){const{name:b,fn:y}=s[m],{x:v,y:x,data:C,reset:D}=await y({x:c,y:d,initialPlacement:r,placement:h,strategy:i,middlewareData:f,rects:u,platform:a,elements:{reference:e,floating:t}});c=v??c,d=x??d,f={...f,[b]:{...f[b],...C}},D&&g<=50&&(g++,typeof D=="object"&&(D.placement&&(h=D.placement),D.rects&&(u=D.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):D.rects),{x:c,y:d}=Rg(u,h,l)),m=-1)}return{x:c,y:d,placement:h,strategy:i,middlewareData:f}};async function Rf(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:h=!1,padding:f=0}=wo(t,e),g=Jb(f),b=s[h?d==="floating"?"reference":"floating":d],y=Dl(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(b)))==null||n?b:b.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),v=d==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,x=await(o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating)),C=await(o.isElement==null?void 0:o.isElement(x))?await(o.getScale==null?void 0:o.getScale(x))||{x:1,y:1}:{x:1,y:1},D=Dl(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:x,strategy:l}):v);return{top:(y.top-D.top+g.top)/C.y,bottom:(D.bottom-y.bottom+g.bottom)/C.y,left:(y.left-D.left+g.left)/C.x,right:(D.right-y.right+g.right)/C.x}}const wS=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:a,elements:s,middlewareData:l}=t,{element:u,padding:c=0}=wo(e,t)||{};if(u==null)return{};const d=Jb(c),h={x:n,y:r},f=$f(i),g=_f(f),m=await a.getDimensions(u),b=f==="y",y=b?"top":"left",v=b?"bottom":"right",x=b?"clientHeight":"clientWidth",C=o.reference[g]+o.reference[f]-h[f]-o.floating[g],D=h[f]-o.reference[f],I=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let T=I?I[x]:0;(!T||!await(a.isElement==null?void 0:a.isElement(I)))&&(T=s.floating[x]||o.floating[g]);const p=C/2-D/2,S=T/2-m[g]/2-1,$=uo(d[y],S),_=uo(d[v],S),A=$,k=T-m[g]-_,R=T/2-m[g]/2+p,M=gd(A,R,k),P=!l.arrow&&Ln(i)!=null&&R!==M&&o.reference[g]/2-(R<A?$:_)-m[g]/2<0,F=P?R<A?R-A:R-k:0;return{[f]:h[f]+F,data:{[f]:M,centerOffset:R-M-F,...P&&{alignmentOffset:F}},reset:P}}});function DS(e,t,n){return(e?[...n.filter(i=>Ln(i)===e),...n.filter(i=>Ln(i)!==e)]:n.filter(i=>mr(i)===i)).filter(i=>e?Ln(i)===e||(t?Cl(i)!==i:!1):!0)}const SS=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,i;const{rects:o,middlewareData:a,placement:s,platform:l,elements:u}=t,{crossAxis:c=!1,alignment:d,allowedPlacements:h=_g,autoAlignment:f=!0,...g}=wo(e,t),m=d!==void 0||h===_g?DS(d||null,f,h):h,b=await Rf(t,g),y=((n=a.autoPlacement)==null?void 0:n.index)||0,v=m[y];if(v==null)return{};const x=Ub(v,o,await(l.isRTL==null?void 0:l.isRTL(u.floating)));if(s!==v)return{reset:{placement:m[0]}};const C=[b[mr(v)],b[x[0]],b[x[1]]],D=[...((r=a.autoPlacement)==null?void 0:r.overflows)||[],{placement:v,overflows:C}],I=m[y+1];if(I)return{data:{index:y+1,overflows:D},reset:{placement:I}};const T=D.map($=>{const _=Ln($.placement);return[$.placement,_&&c?$.overflows.slice(0,2).reduce((A,k)=>A+k,0):$.overflows[0],$.overflows]}).sort(($,_)=>$[1]-_[1]),S=((i=T.filter($=>$[2].slice(0,Ln($[0])?2:3).every(_=>_<=0))[0])==null?void 0:i[0])||T[0][0];return S!==s?{data:{index:y+1,overflows:D},reset:{placement:S}}:{}}}},ES=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:a,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...b}=wo(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const y=mr(i),v=co(s),x=mr(s)===s,C=await(l.isRTL==null?void 0:l.isRTL(u.floating)),D=h||(x||!m?[wl(s)]:q5(s)),I=g!=="none";!h&&I&&D.push(...eS(s,m,g,C));const T=[s,...D],p=await Rf(t,b),S=[];let $=((r=o.flip)==null?void 0:r.overflows)||[];if(c&&S.push(p[y]),d){const R=Ub(i,a,C);S.push(p[R[0]],p[R[1]])}if($=[...$,{placement:i,overflows:S}],!S.every(R=>R<=0)){var _,A;const R=(((_=o.flip)==null?void 0:_.index)||0)+1,M=T[R];if(M)return{data:{index:R,overflows:$},reset:{placement:M}};let P=(A=$.filter(F=>F.overflows[0]<=0).sort((F,B)=>F.overflows[1]-B.overflows[1])[0])==null?void 0:A.placement;if(!P)switch(f){case"bestFit":{var k;const F=(k=$.filter(B=>{if(I){const N=co(B.placement);return N===v||N==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(N=>N>0).reduce((N,O)=>N+O,0)]).sort((B,N)=>B[1]-N[1])[0])==null?void 0:k[0];F&&(P=F);break}case"initialPlacement":P=s;break}if(i!==P)return{reset:{placement:P}}}return{}}}};async function IS(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=mr(n),s=Ln(n),l=co(n)==="y",u=["left","top"].includes(a)?-1:1,c=o&&l?-1:1,d=wo(t,e);let{mainAxis:h,crossAxis:f,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&typeof g=="number"&&(f=s==="end"?g*-1:g),l?{x:f*c,y:h*u}:{x:h*u,y:f*c}}const _S=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:a,middlewareData:s}=t,l=await IS(t,e);return a===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}},$S=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:b=>{let{x:y,y:v}=b;return{x:y,y:v}}},...l}=wo(e,t),u={x:n,y:r},c=await Rf(t,l),d=co(mr(i)),h=Yb(d);let f=u[h],g=u[d];if(o){const b=h==="y"?"top":"left",y=h==="y"?"bottom":"right",v=f+c[b],x=f-c[y];f=gd(v,f,x)}if(a){const b=d==="y"?"top":"left",y=d==="y"?"bottom":"right",v=g+c[b],x=g-c[y];g=gd(v,g,x)}const m=s.fn({...t,[h]:f,[d]:g});return{...m,data:{x:m.x-n,y:m.y-r}}}}};function t1(e){const t=qt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=dt(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=xl(n)!==o||xl(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function Af(e){return Ke(e)?e:e.contextElement}function Qi(e){const t=Af(e);if(!dt(t))return Nr(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=t1(t);let a=(o?xl(n.width):n.width)/r,s=(o?xl(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const RS=Nr(0);function n1(e){const t=Xt(e);return!If()||!t.visualViewport?RS:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function AS(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Xt(e)?!1:t}function xi(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=Af(e);let a=Nr(1);t&&(r?Ke(r)&&(a=Qi(r)):a=Qi(e));const s=AS(o,n,r)?n1(o):Nr(0);let l=(i.left+s.x)/a.x,u=(i.top+s.y)/a.y,c=i.width/a.x,d=i.height/a.y;if(o){const h=Xt(o),f=r&&Ke(r)?Xt(r):r;let g=h,m=g.frameElement;for(;m&&r&&f!==g;){const b=Qi(m),y=m.getBoundingClientRect(),v=qt(m),x=y.left+(m.clientLeft+parseFloat(v.paddingLeft))*b.x,C=y.top+(m.clientTop+parseFloat(v.paddingTop))*b.y;l*=b.x,u*=b.y,c*=b.x,d*=b.y,l+=x,u+=C,g=Xt(m),m=g.frameElement}}return Dl({width:c,height:d,x:l,y:u})}function FS(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",a=pr(r),s=t?hu(t.floating):!1;if(r===a||s&&o)return n;let l={scrollLeft:0,scrollTop:0},u=Nr(1);const c=Nr(0),d=dt(r);if((d||!d&&!o)&&((Wr(r)!=="body"||Ua(a))&&(l=gu(r)),dt(r))){const h=xi(r);u=Qi(r),c.x=h.x+r.clientLeft,c.y=h.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x,y:n.y*u.y-l.scrollTop*u.y+c.y}}function PS(e){return Array.from(e.getClientRects())}function r1(e){return xi(pr(e)).left+gu(e).scrollLeft}function TS(e){const t=pr(e),n=gu(e),r=e.ownerDocument.body,i=hi(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=hi(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+r1(e);const s=-n.scrollTop;return qt(r).direction==="rtl"&&(a+=hi(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:s}}function kS(e,t){const n=Xt(e),r=pr(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;const u=If();(!u||u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}function MS(e,t){const n=xi(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=dt(e)?Qi(e):Nr(1),a=e.clientWidth*o.x,s=e.clientHeight*o.y,l=i*o.x,u=r*o.y;return{width:a,height:s,x:l,y:u}}function Ag(e,t,n){let r;if(t==="viewport")r=kS(e,n);else if(t==="document")r=TS(pr(e));else if(Ke(t))r=MS(t,n);else{const i=n1(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return Dl(r)}function i1(e,t){const n=gr(e);return n===t||!Ke(n)||Or(n)?!1:qt(n).position==="fixed"||i1(n,t)}function BS(e,t){const n=t.get(e);if(n)return n;let r=Mr(e,[],!1).filter(s=>Ke(s)&&Wr(s)!=="body"),i=null;const o=qt(e).position==="fixed";let a=o?gr(e):e;for(;Ke(a)&&!Or(a);){const s=qt(a),l=Ef(a);!l&&s.position==="fixed"&&(i=null),(o?!l&&!i:!l&&s.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Ua(a)&&!l&&i1(e,a))?r=r.filter(c=>c!==a):i=s,a=gr(a)}return t.set(e,r),r}function OS(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?hu(t)?[]:BS(t,this._c):[].concat(n),r],s=a[0],l=a.reduce((u,c)=>{const d=Ag(t,c,i);return u.top=hi(d.top,u.top),u.right=uo(d.right,u.right),u.bottom=uo(d.bottom,u.bottom),u.left=hi(d.left,u.left),u},Ag(t,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function NS(e){const{width:t,height:n}=t1(e);return{width:t,height:n}}function VS(e,t,n){const r=dt(t),i=pr(t),o=n==="fixed",a=xi(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=Nr(0);if(r||!r&&!o)if((Wr(t)!=="body"||Ua(i))&&(s=gu(t)),r){const d=xi(t,!0,o,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else i&&(l.x=r1(i));const u=a.left+s.scrollLeft-l.x,c=a.top+s.scrollTop-l.y;return{x:u,y:c,width:a.width,height:a.height}}function Ju(e){return qt(e).position==="static"}function Fg(e,t){return!dt(e)||qt(e).position==="fixed"?null:t?t(e):e.offsetParent}function o1(e,t){const n=Xt(e);if(hu(e))return n;if(!dt(e)){let i=gr(e);for(;i&&!Or(i);){if(Ke(i)&&!Ju(i))return i;i=gr(i)}return n}let r=Fg(e,t);for(;r&&N5(r)&&Ju(r);)r=Fg(r,t);return r&&Or(r)&&Ju(r)&&!Ef(r)?n:r||V5(e)||n}const LS=async function(e){const t=this.getOffsetParent||o1,n=this.getDimensions,r=await n(e.floating);return{reference:VS(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function jS(e){return qt(e).direction==="rtl"}const HS={convertOffsetParentRelativeRectToViewportRelativeRect:FS,getDocumentElement:pr,getClippingRect:OS,getOffsetParent:o1,getElementRects:LS,getClientRects:PS,getDimensions:NS,getScale:Qi,isElement:Ke,isRTL:jS};function WS(e,t){let n=null,r;const i=pr(e);function o(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),o();const{left:u,top:c,width:d,height:h}=e.getBoundingClientRect();if(s||t(),!d||!h)return;const f=ps(c),g=ps(i.clientWidth-(u+d)),m=ps(i.clientHeight-(c+h)),b=ps(u),v={rootMargin:-f+"px "+-g+"px "+-m+"px "+-b+"px",threshold:hi(0,uo(1,l))||1};let x=!0;function C(D){const I=D[0].intersectionRatio;if(I!==l){if(!x)return a();I?a(!1,I):r=setTimeout(()=>{a(!1,1e-7)},1e3)}x=!1}try{n=new IntersectionObserver(C,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(C,v)}n.observe(e)}return a(!0),o}function a1(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Af(e),c=i||o?[...u?Mr(u):[],...Mr(t)]:[];c.forEach(y=>{i&&y.addEventListener("scroll",n,{passive:!0}),o&&y.addEventListener("resize",n)});const d=u&&s?WS(u,n):null;let h=-1,f=null;a&&(f=new ResizeObserver(y=>{let[v]=y;v&&v.target===u&&f&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var x;(x=f)==null||x.observe(t)})),n()}),u&&!l&&f.observe(u),f.observe(t));let g,m=l?xi(e):null;l&&b();function b(){const y=xi(e);m&&(y.x!==m.x||y.y!==m.y||y.width!==m.width||y.height!==m.height)&&n(),m=y,g=requestAnimationFrame(b)}return n(),()=>{var y;c.forEach(v=>{i&&v.removeEventListener("scroll",n),o&&v.removeEventListener("resize",n)}),d==null||d(),(y=f)==null||y.disconnect(),f=null,l&&cancelAnimationFrame(g)}}const zS=_S,GS=SS,ZS=$S,XS=ES,Pg=wS,YS=(e,t,n)=>{const r=new Map,i={platform:HS,...n},o={...i.platform,_c:r};return CS(e,t,{...i,platform:o})};var Qs=typeof document<"u"?w.useLayoutEffect:w.useEffect;function _l(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!_l(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!_l(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function s1(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Tg(e,t){const n=s1(e);return Math.round(t*n)/n}function kg(e){const t=G.useRef(e);return Qs(()=>{t.current=e}),t}function US(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:a}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[c,d]=G.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,f]=G.useState(r);_l(h,r)||f(r);const[g,m]=G.useState(null),[b,y]=G.useState(null),v=G.useCallback(F=>{F!==I.current&&(I.current=F,m(F))},[]),x=G.useCallback(F=>{F!==T.current&&(T.current=F,y(F))},[]),C=o||g,D=a||b,I=G.useRef(null),T=G.useRef(null),p=G.useRef(c),S=l!=null,$=kg(l),_=kg(i),A=G.useCallback(()=>{if(!I.current||!T.current)return;const F={placement:t,strategy:n,middleware:h};_.current&&(F.platform=_.current),YS(I.current,T.current,F).then(B=>{const N={...B,isPositioned:!0};k.current&&!_l(p.current,N)&&(p.current=N,Eb.flushSync(()=>{d(N)}))})},[h,t,n,_]);Qs(()=>{u===!1&&p.current.isPositioned&&(p.current.isPositioned=!1,d(F=>({...F,isPositioned:!1})))},[u]);const k=G.useRef(!1);Qs(()=>(k.current=!0,()=>{k.current=!1}),[]),Qs(()=>{if(C&&(I.current=C),D&&(T.current=D),C&&D){if($.current)return $.current(C,D,A);A()}},[C,D,A,$,S]);const R=G.useMemo(()=>({reference:I,floating:T,setReference:v,setFloating:x}),[v,x]),M=G.useMemo(()=>({reference:C,floating:D}),[C,D]),P=G.useMemo(()=>{const F={position:n,left:0,top:0};if(!M.floating)return F;const B=Tg(M.floating,c.x),N=Tg(M.floating,c.y);return s?{...F,transform:"translate("+B+"px, "+N+"px)",...s1(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:B,top:N}},[n,s,M.floating,c.x,c.y]);return G.useMemo(()=>({...c,update:A,refs:R,elements:M,floatingStyles:P}),[c,A,R,M,P])}const JS=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Pg({element:r.current,padding:i}).fn(n):{}:r?Pg({element:r,padding:i}).fn(n):{}}}},KS=(e,t)=>({...zS(e),options:[e,t]}),qS=(e,t)=>({...ZS(e),options:[e,t]}),QS=(e,t)=>({...XS(e),options:[e,t]}),eE=(e,t)=>({...GS(e),options:[e,t]}),tE=(e,t)=>({...JS(e),options:[e,t]}),l1={...G},nE=l1.useInsertionEffect,rE=nE||(e=>e());function $r(e){const t=G.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return rE(()=>{t.current=e}),G.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)},[])}let Mg=0;function Yr(e,t){t===void 0&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:i=!1}=t;r&&cancelAnimationFrame(Mg);const o=()=>e==null?void 0:e.focus({preventScroll:n});i?o():Mg=requestAnimationFrame(o)}var At=typeof document<"u"?w.useLayoutEffect:w.useEffect;function da(){return da=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},da.apply(this,arguments)}let Bg=!1,iE=0;const Og=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+iE++;function oE(){const[e,t]=G.useState(()=>Bg?Og():void 0);return At(()=>{e==null&&t(Og())},[]),G.useEffect(()=>{Bg=!0},[]),e}const aE=l1.useId,pu=aE||oE;let fa;process.env.NODE_ENV!=="production"&&(fa=new Set);function sE(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i="Floating UI: "+n.join(" ");if(!((e=fa)!=null&&e.has(i))){var o;(o=fa)==null||o.add(i),console.warn(i)}}function lE(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i="Floating UI: "+n.join(" ");if(!((e=fa)!=null&&e.has(i))){var o;(o=fa)==null||o.add(i),console.error(i)}}const uE=G.forwardRef(function(t,n){const{context:{placement:r,elements:{floating:i},middlewareData:{arrow:o}},width:a=14,height:s=7,tipRadius:l=0,strokeWidth:u=0,staticOffset:c,stroke:d,d:h,style:{transform:f,...g}={},...m}=t;process.env.NODE_ENV!=="production"&&(n||sE("The `ref` prop is required for `FloatingArrow`."));const b=pu(),[y,v]=G.useState(!1);if(At(()=>{if(!i)return;qt(i).direction==="rtl"&&v(!0)},[i]),!i)return null;const x=u*2,C=x/2,D=a/2*(l/-8+1),I=s/2*l/4,[T,p]=r.split("-"),S=!!h,$=T==="top"||T==="bottom",_=c&&p==="end"?"bottom":"top";let A=c&&p==="end"?"right":"left";c&&y&&(A=p==="end"?"left":"right");const k=(o==null?void 0:o.x)!=null?c||o.x:"",R=(o==null?void 0:o.y)!=null?c||o.y:"",M=h||"M0,0"+(" H"+a)+(" L"+(a-D)+","+(s-I))+(" Q"+a/2+","+s+" "+D+","+(s-I))+" Z",P={top:S?"rotate(180deg)":"",left:S?"rotate(90deg)":"rotate(-90deg)",bottom:S?"":"rotate(180deg)",right:S?"rotate(-90deg)":"rotate(90deg)"}[T];return G.createElement("svg",da({},m,{"aria-hidden":!0,ref:n,width:S?a:a+x,height:a,viewBox:"0 0 "+a+" "+(s>a?s:a),style:{position:"absolute",pointerEvents:"none",[A]:k,[_]:R,[T]:$||S?"100%":"calc(100% - "+x/2+"px)",transform:""+P+(f??""),...g}}),x>0&&G.createElement("path",{clipPath:"url(#"+b+")",fill:"none",stroke:d,strokeWidth:x+(h?0:1),d:M}),G.createElement("path",{stroke:x&&!h?m.fill:"none",d:M}),G.createElement("clipPath",{id:b},G.createElement("rect",{x:-C,y:C*(S?-1:1),width:a+x,height:a})))});function cE(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(i=>i!==n))||[])}}}const dE=G.createContext(null),fE=G.createContext(null),u1=()=>{var e;return((e=G.useContext(dE))==null?void 0:e.id)||null},Ff=()=>G.useContext(fE);function ha(e){return"data-floating-ui-"+e}function si(e){const t=w.useRef(e);return At(()=>{t.current=e}),t}function hE(e,t){var n;let r=[],i=(n=e.find(o=>o.id===t))==null?void 0:n.parentId;for(;i;){const o=e.find(a=>a.id===i);i=o==null?void 0:o.parentId,o&&(r=r.concat(o))}return r}function Jo(e,t){let n=e.filter(i=>{var o;return i.parentId===t&&((o=i.context)==null?void 0:o.open)}),r=n;for(;r.length;)r=e.filter(i=>{var o;return(o=r)==null?void 0:o.some(a=>{var s;return i.parentId===a.id&&((s=i.context)==null?void 0:s.open)})}),n=n.concat(r);return n}let Oi=new WeakMap,bs=new WeakSet,vs={},Ku=0;const gE=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,c1=e=>e&&(e.host||c1(e.parentNode)),mE=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=c1(n);return e.contains(r)?r:null}).filter(n=>n!=null);function pE(e,t,n,r){const i="data-floating-ui-inert",o=r?"inert":n?"aria-hidden":null,a=mE(t,e),s=new Set,l=new Set(a),u=[];vs[i]||(vs[i]=new WeakMap);const c=vs[i];a.forEach(d),h(t),s.clear();function d(f){!f||s.has(f)||(s.add(f),f.parentNode&&d(f.parentNode))}function h(f){!f||l.has(f)||[].forEach.call(f.children,g=>{if(Wr(g)!=="script")if(s.has(g))h(g);else{const m=o?g.getAttribute(o):null,b=m!==null&&m!=="false",y=(Oi.get(g)||0)+1,v=(c.get(g)||0)+1;Oi.set(g,y),c.set(g,v),u.push(g),y===1&&b&&bs.add(g),v===1&&g.setAttribute(i,""),!b&&o&&g.setAttribute(o,"true")}})}return Ku++,()=>{u.forEach(f=>{const g=(Oi.get(f)||0)-1,m=(c.get(f)||0)-1;Oi.set(f,g),c.set(f,m),g||(!bs.has(f)&&o&&f.removeAttribute(o),bs.delete(f)),m||f.removeAttribute(i)}),Ku--,Ku||(Oi=new WeakMap,Oi=new WeakMap,bs=new WeakSet,vs={})}}function Ng(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=pn(e[0]).body;return pE(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const ga=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function d1(e,t){const n=mu(e,ga());t==="prev"&&n.reverse();const r=n.indexOf(ei(pn(e)));return n.slice(r+1)[0]}function f1(){return d1(document.body,"next")}function h1(){return d1(document.body,"prev")}function Ko(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!zt(n,r)}function bE(e){mu(e,ga()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function vE(e){e.querySelectorAll("[data-tabindex]").forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}const Pf={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};let yE;function Vg(e){e.key==="Tab"&&(e.target,clearTimeout(yE))}const $l=G.forwardRef(function(t,n){const[r,i]=G.useState();At(()=>(W5()&&i("button"),document.addEventListener("keydown",Vg),()=>{document.removeEventListener("keydown",Vg)}),[]);const o={ref:n,tabIndex:0,role:r,"aria-hidden":r?void 0:!0,[ha("focus-guard")]:"",style:Pf};return G.createElement("span",da({},t,o))}),g1=G.createContext(null),Lg=ha("portal");function xE(e){e===void 0&&(e={});const{id:t,root:n}=e,r=pu(),i=m1(),[o,a]=G.useState(null),s=G.useRef(null);return At(()=>()=>{o==null||o.remove(),queueMicrotask(()=>{s.current=null})},[o]),At(()=>{if(!r||s.current)return;const l=t?document.getElementById(t):null;if(!l)return;const u=document.createElement("div");u.id=r,u.setAttribute(Lg,""),l.appendChild(u),s.current=u,a(u)},[t,r]),At(()=>{if(!r||s.current)return;let l=n||(i==null?void 0:i.portalNode);l&&!Ke(l)&&(l=l.current),l=l||document.body;let u=null;t&&(u=document.createElement("div"),u.id=t,l.appendChild(u));const c=document.createElement("div");c.id=r,c.setAttribute(Lg,""),l=u||l,l.appendChild(c),s.current=c,a(c)},[t,n,r,i]),o}function CE(e){const{children:t,id:n,root:r=null,preserveTabOrder:i=!0}=e,o=xE({id:n,root:r}),[a,s]=G.useState(null),l=G.useRef(null),u=G.useRef(null),c=G.useRef(null),d=G.useRef(null),h=!!a&&!a.modal&&a.open&&i&&!!(r||o);return G.useEffect(()=>{if(!o||!i||a!=null&&a.modal)return;function f(g){o&&Ko(g)&&(g.type==="focusin"?vE:bE)(o)}return o.addEventListener("focusin",f,!0),o.addEventListener("focusout",f,!0),()=>{o.removeEventListener("focusin",f,!0),o.removeEventListener("focusout",f,!0)}},[o,i,a==null?void 0:a.modal]),G.createElement(g1.Provider,{value:G.useMemo(()=>({preserveTabOrder:i,beforeOutsideRef:l,afterOutsideRef:u,beforeInsideRef:c,afterInsideRef:d,portalNode:o,setFocusManagerState:s}),[i,o])},h&&o&&G.createElement($l,{"data-type":"outside",ref:l,onFocus:f=>{if(Ko(f,o)){var g;(g=c.current)==null||g.focus()}else{const m=h1()||(a==null?void 0:a.refs.domReference.current);m==null||m.focus()}}}),h&&o&&G.createElement("span",{"aria-owns":o.id,style:Pf}),o&&Eb.createPortal(t,o),h&&o&&G.createElement($l,{"data-type":"outside",ref:u,onFocus:f=>{if(Ko(f,o)){var g;(g=d.current)==null||g.focus()}else{const m=f1()||(a==null?void 0:a.refs.domReference.current);m==null||m.focus(),a!=null&&a.closeOnFocusOut&&(a==null||a.onOpenChange(!1,f.nativeEvent))}}}))}const m1=()=>G.useContext(g1),wE=20;let ti=[];function qu(e){ti=ti.filter(n=>n.isConnected);let t=e;if(!(!t||Wr(t)==="body")){if(!xS(t,ga())){const n=mu(t,ga())[0];n&&(t=n)}ti.push(t),ti.length>wE&&(ti=ti.slice(-20))}}function jg(){return ti.slice().reverse().find(e=>e.isConnected)}const DE=G.forwardRef(function(t,n){return G.createElement("button",da({},t,{type:"button",ref:n,tabIndex:-1,style:Pf}))});function SE(e){const{context:t,children:n,disabled:r=!1,order:i=["content"],guards:o=!0,initialFocus:a=0,returnFocus:s=!0,restoreFocus:l=!1,modal:u=!0,visuallyHiddenDismiss:c=!1,closeOnFocusOut:d=!0}=e,{open:h,refs:f,nodeId:g,onOpenChange:m,events:b,dataRef:y,floatingId:v,elements:{domReference:x,floating:C}}=t,D=typeof a=="number"&&a<0,I=Y5(x)&&D,T=gE()?o:!0,p=si(i),S=si(a),$=si(s),_=Ff(),A=m1(),k=G.useRef(null),R=G.useRef(null),M=G.useRef(!1),P=G.useRef(!1),F=G.useRef(-1),B=A!=null,N=C==null?void 0:C.firstElementChild,O=(N==null?void 0:N.id)===v?N:C,L=$r(function(j){return j===void 0&&(j=O),j?mu(j,ga()):[]}),W=$r(j=>{const V=L(j);return p.current.map(z=>x&&z==="reference"?x:O&&z==="floating"?O:V).filter(Boolean).flat()});G.useEffect(()=>{if(r||!u)return;function j(z){if(z.key==="Tab"){zt(O,ei(pn(O)))&&L().length===0&&!I&&Uu(z);const Y=W(),K=ii(z);p.current[0]==="reference"&&K===x&&(Uu(z),z.shiftKey?Yr(Y[Y.length-1]):Yr(Y[1])),p.current[1]==="floating"&&K===O&&z.shiftKey&&(Uu(z),Yr(Y[0]))}}const V=pn(O);return V.addEventListener("keydown",j),()=>{V.removeEventListener("keydown",j)}},[r,x,O,u,p,I,L,W]),G.useEffect(()=>{if(r||!C)return;function j(V){const z=ii(V),K=L().indexOf(z);K!==-1&&(F.current=K)}return C.addEventListener("focusin",j),()=>{C.removeEventListener("focusin",j)}},[r,C,L]),G.useEffect(()=>{if(r||!d)return;function j(){P.current=!0,setTimeout(()=>{P.current=!1})}function V(z){const Y=z.relatedTarget;queueMicrotask(()=>{const K=!(zt(x,Y)||zt(C,Y)||zt(Y,C)||zt(A==null?void 0:A.portalNode,Y)||Y!=null&&Y.hasAttribute(ha("focus-guard"))||_&&(Jo(_.nodesRef.current,g).find(Q=>{var ee,X;return zt((ee=Q.context)==null?void 0:ee.elements.floating,Y)||zt((X=Q.context)==null?void 0:X.elements.domReference,Y)})||hE(_.nodesRef.current,g).find(Q=>{var ee,X;return((ee=Q.context)==null?void 0:ee.elements.floating)===Y||((X=Q.context)==null?void 0:X.elements.domReference)===Y})));if(l&&K&&ei(pn(O))===pn(O).body){dt(O)&&(O==null||O.focus());const Q=F.current,ee=L(),X=ee[Q]||ee[ee.length-1]||O;dt(X)&&X.focus()}(I||!u)&&Y&&K&&!P.current&&Y!==jg()&&(M.current=!0,m(!1,z))})}if(C&&dt(x))return x.addEventListener("focusout",V),x.addEventListener("pointerdown",j),C.addEventListener("focusout",V),()=>{x.removeEventListener("focusout",V),x.removeEventListener("pointerdown",j),C.removeEventListener("focusout",V)}},[r,x,C,O,u,g,_,A,m,d,l,L,I]),G.useEffect(()=>{var j;if(r)return;const V=Array.from((A==null||(j=A.portalNode)==null?void 0:j.querySelectorAll("["+ha("portal")+"]"))||[]);if(C){const z=[C,...V,k.current,R.current,p.current.includes("reference")||I?x:null].filter(K=>K!=null),Y=u||I?Ng(z,T,!T):Ng(z);return()=>{Y()}}},[r,x,C,u,p,A,I,T]),At(()=>{if(r||!dt(O))return;const j=pn(O),V=ei(j);queueMicrotask(()=>{const z=W(O),Y=S.current,K=(typeof Y=="number"?z[Y]:Y.current)||O,Q=zt(O,V);!D&&!Q&&h&&Yr(K,{preventScroll:K===O})})},[r,h,O,D,W,S]),At(()=>{if(r||!O)return;let j=!1;const V=pn(O),z=ei(V);let K=y.current.openEvent;qu(z);function Q(ee){let{open:X,reason:ue,event:fe,nested:he}=ee;X&&(K=fe),ue==="escape-key"&&f.domReference.current&&qu(f.domReference.current),ue==="hover"&&fe.type==="mouseleave"&&(M.current=!0),ue==="outside-press"&&(he?(M.current=!1,j=!0):M.current=!(j5(fe)||H5(fe)))}return b.on("openchange",Q),()=>{b.off("openchange",Q);const ee=ei(V),X=zt(C,ee)||_&&Jo(_.nodesRef.current,g).some(he=>{var ht;return zt((ht=he.context)==null?void 0:ht.elements.floating,ee)});(X||K&&["click","mousedown"].includes(K.type))&&f.domReference.current&&qu(f.domReference.current);const fe=jg();$.current&&!M.current&&dt(fe)&&(!(fe!==ee&&ee!==V.body)||X)&&Yr(fe,{cancelPrevious:!1,preventScroll:j})}},[r,C,O,$,y,f,b,_,g]),At(()=>{if(!r&&A)return A.setFocusManagerState({modal:u,closeOnFocusOut:d,open:h,onOpenChange:m,refs:f}),()=>{A.setFocusManagerState(null)}},[r,A,u,h,m,f,d]),At(()=>{if(r||!O||typeof MutationObserver!="function"||D)return;const j=()=>{const z=O.getAttribute("tabindex"),Y=L(),K=ei(pn(C)),Q=Y.indexOf(K);Q!==-1&&(F.current=Q),p.current.includes("floating")||K!==f.domReference.current&&Y.length===0?z!=="0"&&O.setAttribute("tabindex","0"):z!=="-1"&&O.setAttribute("tabindex","-1")};j();const V=new MutationObserver(j);return V.observe(O,{childList:!0,subtree:!0,attributes:!0}),()=>{V.disconnect()}},[r,C,O,f,p,L,D]);function Z(j){return r||!c||!u?null:G.createElement(DE,{ref:j==="start"?k:R,onClick:V=>m(!1,V.nativeEvent)},typeof c=="string"?c:"Dismiss")}const H=!r&&T&&(u?!I:!0)&&(B||u);return G.createElement(G.Fragment,null,H&&G.createElement($l,{"data-type":"inside",ref:A==null?void 0:A.beforeInsideRef,onFocus:j=>{if(u){const z=W();Yr(i[0]==="reference"?z[0]:z[z.length-1])}else if(A!=null&&A.preserveTabOrder&&A.portalNode)if(M.current=!1,Ko(j,A.portalNode)){const z=f1()||x;z==null||z.focus()}else{var V;(V=A.beforeOutsideRef.current)==null||V.focus()}}}),!I&&Z("start"),n,Z("end"),H&&G.createElement($l,{"data-type":"inside",ref:A==null?void 0:A.afterInsideRef,onFocus:j=>{if(u)Yr(W()[0]);else if(A!=null&&A.preserveTabOrder&&A.portalNode)if(d&&(M.current=!0),Ko(j,A.portalNode)){const z=h1()||x;z==null||z.focus()}else{var V;(V=A.afterOutsideRef.current)==null||V.focus()}}}))}function Hg(e){return dt(e.target)&&e.target.tagName==="BUTTON"}function Wg(e){return Xb(e)}function EE(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,elements:{domReference:o}}=e,{enabled:a=!0,event:s="click",toggle:l=!0,ignoreMouse:u=!1,keyboardHandlers:c=!0}=t,d=G.useRef(),h=G.useRef(!1),f=G.useMemo(()=>({onPointerDown(g){d.current=g.pointerType},onMouseDown(g){const m=d.current;g.button===0&&s!=="click"&&(Eg(m)&&u||(n&&l&&(!i.current.openEvent||i.current.openEvent.type==="mousedown")?r(!1,g.nativeEvent,"click"):(g.preventDefault(),r(!0,g.nativeEvent,"click"))))},onClick(g){const m=d.current;if(s==="mousedown"&&d.current){d.current=void 0;return}Eg(m)&&u||(n&&l&&(!i.current.openEvent||i.current.openEvent.type==="click")?r(!1,g.nativeEvent,"click"):r(!0,g.nativeEvent,"click"))},onKeyDown(g){d.current=void 0,!(g.defaultPrevented||!c||Hg(g))&&(g.key===" "&&!Wg(o)&&(g.preventDefault(),h.current=!0),g.key==="Enter"&&r(!(n&&l),g.nativeEvent,"click"))},onKeyUp(g){g.defaultPrevented||!c||Hg(g)||Wg(o)||g.key===" "&&h.current&&(h.current=!1,r(!(n&&l),g.nativeEvent,"click"))}}),[i,o,s,u,c,r,n,l]);return G.useMemo(()=>a?{reference:f}:{},[a,f])}const IE={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},_E={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},zg=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e==null?void 0:e.outsidePress)!=null?n:!0}};function $E(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:i,dataRef:o}=e,{enabled:a=!0,escapeKey:s=!0,outsidePress:l=!0,outsidePressEvent:u="pointerdown",referencePress:c=!1,referencePressEvent:d="pointerdown",ancestorScroll:h=!1,bubbles:f,capture:g}=t,m=Ff(),b=$r(typeof l=="function"?l:()=>!1),y=typeof l=="function"?b:l,v=G.useRef(!1),x=G.useRef(!1),{escapeKey:C,outsidePress:D}=zg(f),{escapeKey:I,outsidePress:T}=zg(g),p=$r(R=>{var M;if(!n||!a||!s||R.key!=="Escape")return;const P=(M=o.current.floatingContext)==null?void 0:M.nodeId,F=m?Jo(m.nodesRef.current,P):[];if(!C&&(R.stopPropagation(),F.length>0)){let B=!0;if(F.forEach(N=>{var O;if((O=N.context)!=null&&O.open&&!N.context.dataRef.current.__escapeKeyBubbles){B=!1;return}}),!B)return}r(!1,G5(R)?R.nativeEvent:R,"escape-key")}),S=$r(R=>{var M;const P=()=>{var F;p(R),(F=ii(R))==null||F.removeEventListener("keydown",P)};(M=ii(R))==null||M.addEventListener("keydown",P)}),$=$r(R=>{var M;const P=v.current;v.current=!1;const F=x.current;if(x.current=!1,u==="click"&&F||P||typeof y=="function"&&!y(R))return;const B=ii(R),N="["+ha("inert")+"]",O=pn(i.floating).querySelectorAll(N);let L=Ke(B)?B:null;for(;L&&!Or(L);){const j=gr(L);if(Or(j)||!Ke(j))break;L=j}if(O.length&&Ke(B)&&!Z5(B)&&!zt(B,i.floating)&&Array.from(O).every(j=>!zt(L,j)))return;if(dt(B)&&k){const j=B.clientWidth>0&&B.scrollWidth>B.clientWidth,V=B.clientHeight>0&&B.scrollHeight>B.clientHeight;let z=V&&R.offsetX>B.clientWidth;if(V&&qt(B).direction==="rtl"&&(z=R.offsetX<=B.offsetWidth-B.clientWidth),z||j&&R.offsetY>B.clientHeight)return}const W=(M=o.current.floatingContext)==null?void 0:M.nodeId,Z=m&&Jo(m.nodesRef.current,W).some(j=>{var V;return Yu(R,(V=j.context)==null?void 0:V.elements.floating)});if(Yu(R,i.floating)||Yu(R,i.domReference)||Z)return;const H=m?Jo(m.nodesRef.current,W):[];if(H.length>0){let j=!0;if(H.forEach(V=>{var z;if((z=V.context)!=null&&z.open&&!V.context.dataRef.current.__outsidePressBubbles){j=!1;return}}),!j)return}r(!1,R,"outside-press")}),_=$r(R=>{var M;const P=()=>{var F;$(R),(F=ii(R))==null||F.removeEventListener(u,P)};(M=ii(R))==null||M.addEventListener(u,P)});G.useEffect(()=>{if(!n||!a)return;o.current.__escapeKeyBubbles=C,o.current.__outsidePressBubbles=D;function R(F){r(!1,F,"ancestor-scroll")}const M=pn(i.floating);s&&M.addEventListener("keydown",I?S:p,I),y&&M.addEventListener(u,T?_:$,T);let P=[];return h&&(Ke(i.domReference)&&(P=Mr(i.domReference)),Ke(i.floating)&&(P=P.concat(Mr(i.floating))),!Ke(i.reference)&&i.reference&&i.reference.contextElement&&(P=P.concat(Mr(i.reference.contextElement)))),P=P.filter(F=>{var B;return F!==((B=M.defaultView)==null?void 0:B.visualViewport)}),P.forEach(F=>{F.addEventListener("scroll",R,{passive:!0})}),()=>{s&&M.removeEventListener("keydown",I?S:p,I),y&&M.removeEventListener(u,T?_:$,T),P.forEach(F=>{F.removeEventListener("scroll",R)})}},[o,i,s,y,u,n,r,h,a,C,D,p,I,S,$,T,_]),G.useEffect(()=>{v.current=!1},[y,u]);const A=G.useMemo(()=>({onKeyDown:p,[IE[d]]:R=>{c&&r(!1,R.nativeEvent,"reference-press")}}),[p,r,c,d]),k=G.useMemo(()=>({onKeyDown:p,onMouseDown(){x.current=!0},onMouseUp(){x.current=!0},[_E[u]]:()=>{v.current=!0}}),[p,u]);return G.useMemo(()=>a?{reference:A,floating:k}:{},[a,A,k])}function RE(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=pu(),o=G.useRef({}),[a]=G.useState(()=>cE()),s=u1()!=null;if(process.env.NODE_ENV!=="production"){const f=r.reference;f&&!Ke(f)&&lE("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[l,u]=G.useState(r.reference),c=$r((f,g,m)=>{o.current.openEvent=f?g:void 0,a.emit("openchange",{open:f,event:g,reason:m,nested:s}),n==null||n(f,g,m)}),d=G.useMemo(()=>({setPositionReference:u}),[]),h=G.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return G.useMemo(()=>({dataRef:o,open:t,onOpenChange:c,elements:h,events:a,floatingId:i,refs:d}),[t,c,h,a,i,d])}function AE(e){e===void 0&&(e={});const{nodeId:t}=e,n=RE({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,a]=G.useState(null),[s,l]=G.useState(null),c=(i==null?void 0:i.reference)||o,d=G.useRef(null),h=Ff();At(()=>{c&&(d.current=c)},[c]);const f=US({...e,elements:{...i,...s&&{reference:s}}}),g=G.useCallback(x=>{const C=Ke(x)?{getBoundingClientRect:()=>x.getBoundingClientRect(),contextElement:x}:x;l(C),f.refs.setReference(C)},[f.refs]),m=G.useCallback(x=>{(Ke(x)||x===null)&&(d.current=x,a(x)),(Ke(f.refs.reference.current)||f.refs.reference.current===null||x!==null&&!Ke(x))&&f.refs.setReference(x)},[f.refs]),b=G.useMemo(()=>({...f.refs,setReference:m,setPositionReference:g,domReference:d}),[f.refs,m,g]),y=G.useMemo(()=>({...f.elements,domReference:c}),[f.elements,c]),v=G.useMemo(()=>({...f,...r,refs:b,elements:y,nodeId:t}),[f,b,y,t,r]);return At(()=>{r.dataRef.current.floatingContext=v;const x=h==null?void 0:h.nodesRef.current.find(C=>C.id===t);x&&(x.context=v)}),G.useMemo(()=>({...f,context:v,refs:b,elements:y}),[f,b,y,v])}const Gg="active",Zg="selected";function Qu(e,t,n){const r=new Map,i=n==="item";let o=e;if(i&&e){const{[Gg]:a,[Zg]:s,...l}=e;o=l}return{...n==="floating"&&{tabIndex:-1},...o,...t.map(a=>{const s=a?a[n]:null;return typeof s=="function"?e?s(e):null:s}).concat(e).reduce((a,s)=>(s&&Object.entries(s).forEach(l=>{let[u,c]=l;if(!(i&&[Gg,Zg].includes(u)))if(u.indexOf("on")===0){if(r.has(u)||r.set(u,[]),typeof c=="function"){var d;(d=r.get(u))==null||d.push(c),a[u]=function(){for(var h,f=arguments.length,g=new Array(f),m=0;m<f;m++)g[m]=arguments[m];return(h=r.get(u))==null?void 0:h.map(b=>b(...g)).find(b=>b!==void 0)}}}else a[u]=c}),a),{})}}function FE(e){e===void 0&&(e=[]);const t=e.map(s=>s==null?void 0:s.reference),n=e.map(s=>s==null?void 0:s.floating),r=e.map(s=>s==null?void 0:s.item),i=G.useCallback(s=>Qu(s,e,"reference"),t),o=G.useCallback(s=>Qu(s,e,"floating"),n),a=G.useCallback(s=>Qu(s,e,"item"),r);return G.useMemo(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:a}),[i,o,a])}const PE=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function TE(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:i}=e,{enabled:o=!0,role:a="dialog"}=t,s=(n=PE.get(a))!=null?n:a,l=pu(),c=u1()!=null,d=G.useMemo(()=>s==="tooltip"||a==="label"?{["aria-"+(a==="label"?"labelledby":"describedby")]:r?i:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":s==="alertdialog"?"dialog":s,"aria-controls":r?i:void 0,...s==="listbox"&&{role:"combobox"},...s==="menu"&&{id:l},...s==="menu"&&c&&{role:"menuitem"},...a==="select"&&{"aria-autocomplete":"none"},...a==="combobox"&&{"aria-autocomplete":"list"}},[s,i,c,r,l,a]),h=G.useMemo(()=>{const g={id:i,...s&&{role:s}};return s==="tooltip"||a==="label"?g:{...g,...s==="menu"&&{"aria-labelledby":l}}},[s,i,l,a]),f=G.useCallback(g=>{let{active:m,selected:b}=g;const y={role:"option",...m&&{id:i+"-option"}};switch(a){case"select":return{...y,"aria-selected":m&&b};case"combobox":return{...y,...m&&{"aria-selected":!0}}}return{}},[i,a]);return G.useMemo(()=>o?{reference:d,floating:h,item:f}:{},[o,d,h,f])}const Xg=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,n)=>(n?"-":"")+t.toLowerCase());function Ni(e,t){return typeof e=="function"?e(t):e}function kE(e,t){const[n,r]=G.useState(e);return e&&!n&&r(!0),G.useEffect(()=>{if(!e&&n){const i=setTimeout(()=>r(!1),t);return()=>clearTimeout(i)}},[e,n,t]),n}function ME(e,t){t===void 0&&(t={});const{open:n,elements:{floating:r}}=e,{duration:i=250}=t,a=(typeof i=="number"?i:i.close)||0,[s,l]=G.useState("unmounted"),u=kE(n,a);return!u&&s==="close"&&l("unmounted"),At(()=>{if(r){if(n){l("initial");const c=requestAnimationFrame(()=>{l("open")});return()=>{cancelAnimationFrame(c)}}l("close")}},[n,r]),{isMounted:u,status:s}}function BE(e,t){t===void 0&&(t={});const{initial:n={opacity:0},open:r,close:i,common:o,duration:a=250}=t,s=e.placement,l=s.split("-")[0],u=G.useMemo(()=>({side:l,placement:s}),[l,s]),c=typeof a=="number",d=(c?a:a.open)||0,h=(c?a:a.close)||0,[f,g]=G.useState(()=>({...Ni(o,u),...Ni(n,u)})),{isMounted:m,status:b}=ME(e,{duration:a}),y=si(n),v=si(r),x=si(i),C=si(o);return At(()=>{const D=Ni(y.current,u),I=Ni(x.current,u),T=Ni(C.current,u),p=Ni(v.current,u)||Object.keys(D).reduce((S,$)=>(S[$]="",S),{});if(b==="initial"&&g(S=>({transitionProperty:S.transitionProperty,...T,...D})),b==="open"&&g({transitionProperty:Object.keys(p).map(Xg).join(","),transitionDuration:d+"ms",...T,...p}),b==="close"){const S=I||D;g({transitionProperty:Object.keys(S).map(Xg).join(","),transitionDuration:h+"ms",...T,...S})}},[h,x,y,v,C,d,b,u]),{isMounted:m,styles:f}}const OE="_popover_7cinv_1",NE={popover:OE},br=w.forwardRef((e,t)=>{const{children:n,className:r,offset:i=10,isShow:o,anchorEl:a,useAutoPlacement:s=!1,flipOptions:l,autoPlacementOptions:u,zIndex:c=10,width:d,styleInnerPopover:h={},floatingOptions:f={},onClose:g=()=>{},withArrow:m,propsArrow:b={},...y}=e,v=w.useRef(null),[x,C]=w.useState(!1),{refs:D,floatingStyles:I,context:T}=AE({open:x,onOpenChange:F=>{C(F),F||g()},middleware:[KS(i),s?eE(u):QS(l),qS(),tE({element:v})],whileElementsMounted:a1,...f}),p=EE(T),S=$E(T),$=TE(T),{getReferenceProps:_,getFloatingProps:A}=FE([p,S,$]),{styles:k,isMounted:R}=BE(T),M=F=>{D.setReference(F.currentTarget),C(B=>!B),x&&g()};w.useEffect(()=>{o&&a?M({currentTarget:a}):o||C(!1)},[o,a]),w.useImperativeHandle(t,()=>({show:x,setShow:C,handlerShow:M,getReferenceProps:_}),[x]);const P=()=>{let F={...I,...k,...h,zIndex:c};return d&&(F={...F,width:d}),F};return E.jsx(E.Fragment,{children:R&&x&&E.jsx(CE,{children:E.jsx(SE,{context:T,modal:!1,children:E.jsxs("div",{ref:D.setFloating,style:P(),...A(),className:`${NE.popover} ${r??""}`,...y,children:[n,m&&E.jsx(uE,{ref:v,context:T,...b})]})})})})});br.displayName="Popover";const VE="_input_192cn_7",LE="_label_192cn_36",jE="_error_192cn_43",Pt={"container-large":"_container-large_192cn_1","container-input":"_container-input_192cn_4",input:VE,label:LE,error:jE,"isset-right-icon":"_isset-right-icon_192cn_54","isset-left-icon":"_isset-left-icon_192cn_57","start-icon":"_start-icon_192cn_66","end-icon":"_end-icon_192cn_70","label-error":"_label-error_192cn_77","container-medium":"_container-medium_192cn_82","container-small":"_container-small_192cn_163"},p1=w.forwardRef((e,t)=>{var x;const{isRequired:n,classNameContainer:r,classNameLabelError:i,classNameLabel:o,className:a,name:s,id:l,label:u,type:c="text",startIcon:d,endIcon:h,error:f,sizeInput:g="large",...m}=e,b={size:{large:Pt["container-large"],medium:Pt["container-medium"],small:Pt["container-small"]}},y=()=>typeof d=="function"||w.isValidElement(d),v=()=>typeof h=="function"||w.isValidElement(h);return E.jsxs("div",{className:`${Pt.container} ${(x=b.size)==null?void 0:x[g]} ${r??""}`,children:[E.jsxs("div",{className:Pt["container-input"],children:[E.jsx("input",{id:l??s,className:`${Pt.input} ${f?Pt.error:""}
16
+ */var nS=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Sl=nS.join(","),Kb=typeof Element>"u",fo=Kb?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,El=!Kb&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},Il=function e(t,n){var r;n===void 0&&(n=!0);var i=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),o=i===""||i==="true",a=o||n&&t&&e(t.parentNode);return a},rS=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},iS=function(t,n,r){if(Il(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(Sl));return n&&fo.call(t,Sl)&&i.unshift(t),i=i.filter(r),i},oS=function e(t,n,r){for(var i=[],o=Array.from(t);o.length;){var a=o.shift();if(!Il(a,!1))if(a.tagName==="SLOT"){var s=a.assignedElements(),l=s.length?s:a.children,u=e(l,!0,r);r.flatten?i.push.apply(i,u):i.push({scopeParent:a,candidates:u})}else{var c=fo.call(a,Sl);c&&r.filter(a)&&(n||!t.includes(a))&&i.push(a);var d=a.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(a),h=!Il(d,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(a));if(d&&h){var f=e(d===!0?a.children:d.children,!0,r);r.flatten?i.push.apply(i,f):i.push({scopeParent:a,candidates:f})}else o.unshift.apply(o,a.children)}}return i},qb=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Qb=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||rS(t))&&!qb(t)?0:t.tabIndex},aS=function(t,n){var r=Qb(t);return r<0&&n&&!qb(t)?0:r},sS=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},e1=function(t){return t.tagName==="INPUT"},lS=function(t){return e1(t)&&t.type==="hidden"},uS=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},cS=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},dS=function(t){if(!t.name)return!0;var n=t.form||El(t),r=function(s){return n.querySelectorAll('input[type="radio"][name="'+s+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=r(window.CSS.escape(t.name));else try{i=r(t.name)}catch(a){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",a.message),!1}var o=cS(i,t.form);return!o||o===t},fS=function(t){return e1(t)&&t.type==="radio"},hS=function(t){return fS(t)&&!dS(t)},gS=function(t){var n,r=t&&El(t),i=(n=r)===null||n===void 0?void 0:n.host,o=!1;if(r&&r!==t){var a,s,l;for(o=!!((a=i)!==null&&a!==void 0&&(s=a.ownerDocument)!==null&&s!==void 0&&s.contains(i)||t!=null&&(l=t.ownerDocument)!==null&&l!==void 0&&l.contains(t));!o&&i;){var u,c,d;r=El(i),i=(u=r)===null||u===void 0?void 0:u.host,o=!!((c=i)!==null&&c!==void 0&&(d=c.ownerDocument)!==null&&d!==void 0&&d.contains(i))}}return o},$g=function(t){var n=t.getBoundingClientRect(),r=n.width,i=n.height;return r===0&&i===0},mS=function(t,n){var r=n.displayCheck,i=n.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var o=fo.call(t,"details>summary:first-of-type"),a=o?t.parentElement:t;if(fo.call(a,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof i=="function"){for(var s=t;t;){var l=t.parentElement,u=El(t);if(l&&!l.shadowRoot&&i(l)===!0)return $g(t);t.assignedSlot?t=t.assignedSlot:!l&&u!==t.ownerDocument?t=u.host:t=l}t=s}if(gS(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return $g(t);return!1},pS=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var i=n.children.item(r);if(i.tagName==="LEGEND")return fo.call(n,"fieldset[disabled] *")?!0:!i.contains(t)}return!0}n=n.parentElement}return!1},bS=function(t,n){return!(n.disabled||Il(n)||lS(n)||mS(n,t)||uS(n)||pS(n))},md=function(t,n){return!(hS(n)||Qb(n)<0||!bS(t,n))},vS=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},yS=function e(t){var n=[],r=[];return t.forEach(function(i,o){var a=!!i.scopeParent,s=a?i.scopeParent:i,l=aS(s,a),u=a?e(i.candidates):s;l===0?a?n.push.apply(n,u):n.push(s):r.push({documentOrder:o,tabIndex:l,item:i,isScope:a,content:u})}),r.sort(sS).reduce(function(i,o){return o.isScope?i.push.apply(i,o.content):i.push(o.content),i},[]).concat(n)},mu=function(t,n){n=n||{};var r;return n.getShadowRoot?r=oS([t],n.includeContainer,{filter:md.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:vS}):r=iS(t,n.includeContainer,md.bind(null,n)),yS(r)},xS=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return fo.call(t,Sl)===!1?!1:md(n,t)};function Rg(e,t,n){let{reference:r,floating:i}=e;const o=co(t),a=$f(t),s=_f(a),l=mr(t),u=o==="y",c=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,h=r[s]/2-i[s]/2;let f;switch(l){case"top":f={x:c,y:r.y-i.height};break;case"bottom":f={x:c,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-i.width,y:d};break;default:f={x:r.x,y:r.y}}switch(Ln(t)){case"start":f[a]-=h*(n&&u?-1:1);break;case"end":f[a]+=h*(n&&u?-1:1);break}return f}const CS=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=o.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=Rg(u,r,l),h=r,f={},g=0;for(let m=0;m<s.length;m++){const{name:b,fn:y}=s[m],{x:v,y:x,data:C,reset:D}=await y({x:c,y:d,initialPlacement:r,placement:h,strategy:i,middlewareData:f,rects:u,platform:a,elements:{reference:e,floating:t}});c=v??c,d=x??d,f={...f,[b]:{...f[b],...C}},D&&g<=50&&(g++,typeof D=="object"&&(D.placement&&(h=D.placement),D.rects&&(u=D.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):D.rects),{x:c,y:d}=Rg(u,h,l)),m=-1)}return{x:c,y:d,placement:h,strategy:i,middlewareData:f}};async function Rf(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:h=!1,padding:f=0}=wo(t,e),g=Jb(f),b=s[h?d==="floating"?"reference":"floating":d],y=Dl(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(b)))==null||n?b:b.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),v=d==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,x=await(o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating)),C=await(o.isElement==null?void 0:o.isElement(x))?await(o.getScale==null?void 0:o.getScale(x))||{x:1,y:1}:{x:1,y:1},D=Dl(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:x,strategy:l}):v);return{top:(y.top-D.top+g.top)/C.y,bottom:(D.bottom-y.bottom+g.bottom)/C.y,left:(y.left-D.left+g.left)/C.x,right:(D.right-y.right+g.right)/C.x}}const wS=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:a,elements:s,middlewareData:l}=t,{element:u,padding:c=0}=wo(e,t)||{};if(u==null)return{};const d=Jb(c),h={x:n,y:r},f=$f(i),g=_f(f),m=await a.getDimensions(u),b=f==="y",y=b?"top":"left",v=b?"bottom":"right",x=b?"clientHeight":"clientWidth",C=o.reference[g]+o.reference[f]-h[f]-o.floating[g],D=h[f]-o.reference[f],I=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let T=I?I[x]:0;(!T||!await(a.isElement==null?void 0:a.isElement(I)))&&(T=s.floating[x]||o.floating[g]);const p=C/2-D/2,S=T/2-m[g]/2-1,$=uo(d[y],S),_=uo(d[v],S),A=$,k=T-m[g]-_,R=T/2-m[g]/2+p,M=gd(A,R,k),P=!l.arrow&&Ln(i)!=null&&R!==M&&o.reference[g]/2-(R<A?$:_)-m[g]/2<0,F=P?R<A?R-A:R-k:0;return{[f]:h[f]+F,data:{[f]:M,centerOffset:R-M-F,...P&&{alignmentOffset:F}},reset:P}}});function DS(e,t,n){return(e?[...n.filter(i=>Ln(i)===e),...n.filter(i=>Ln(i)!==e)]:n.filter(i=>mr(i)===i)).filter(i=>e?Ln(i)===e||(t?Cl(i)!==i:!1):!0)}const SS=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,i;const{rects:o,middlewareData:a,placement:s,platform:l,elements:u}=t,{crossAxis:c=!1,alignment:d,allowedPlacements:h=_g,autoAlignment:f=!0,...g}=wo(e,t),m=d!==void 0||h===_g?DS(d||null,f,h):h,b=await Rf(t,g),y=((n=a.autoPlacement)==null?void 0:n.index)||0,v=m[y];if(v==null)return{};const x=Ub(v,o,await(l.isRTL==null?void 0:l.isRTL(u.floating)));if(s!==v)return{reset:{placement:m[0]}};const C=[b[mr(v)],b[x[0]],b[x[1]]],D=[...((r=a.autoPlacement)==null?void 0:r.overflows)||[],{placement:v,overflows:C}],I=m[y+1];if(I)return{data:{index:y+1,overflows:D},reset:{placement:I}};const T=D.map($=>{const _=Ln($.placement);return[$.placement,_&&c?$.overflows.slice(0,2).reduce((A,k)=>A+k,0):$.overflows[0],$.overflows]}).sort(($,_)=>$[1]-_[1]),S=((i=T.filter($=>$[2].slice(0,Ln($[0])?2:3).every(_=>_<=0))[0])==null?void 0:i[0])||T[0][0];return S!==s?{data:{index:y+1,overflows:D},reset:{placement:S}}:{}}}},ES=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:a,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...b}=wo(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const y=mr(i),v=co(s),x=mr(s)===s,C=await(l.isRTL==null?void 0:l.isRTL(u.floating)),D=h||(x||!m?[wl(s)]:q5(s)),I=g!=="none";!h&&I&&D.push(...eS(s,m,g,C));const T=[s,...D],p=await Rf(t,b),S=[];let $=((r=o.flip)==null?void 0:r.overflows)||[];if(c&&S.push(p[y]),d){const R=Ub(i,a,C);S.push(p[R[0]],p[R[1]])}if($=[...$,{placement:i,overflows:S}],!S.every(R=>R<=0)){var _,A;const R=(((_=o.flip)==null?void 0:_.index)||0)+1,M=T[R];if(M)return{data:{index:R,overflows:$},reset:{placement:M}};let P=(A=$.filter(F=>F.overflows[0]<=0).sort((F,B)=>F.overflows[1]-B.overflows[1])[0])==null?void 0:A.placement;if(!P)switch(f){case"bestFit":{var k;const F=(k=$.filter(B=>{if(I){const N=co(B.placement);return N===v||N==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(N=>N>0).reduce((N,O)=>N+O,0)]).sort((B,N)=>B[1]-N[1])[0])==null?void 0:k[0];F&&(P=F);break}case"initialPlacement":P=s;break}if(i!==P)return{reset:{placement:P}}}return{}}}};async function IS(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=mr(n),s=Ln(n),l=co(n)==="y",u=["left","top"].includes(a)?-1:1,c=o&&l?-1:1,d=wo(t,e);let{mainAxis:h,crossAxis:f,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&typeof g=="number"&&(f=s==="end"?g*-1:g),l?{x:f*c,y:h*u}:{x:h*u,y:f*c}}const _S=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:a,middlewareData:s}=t,l=await IS(t,e);return a===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}},$S=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:b=>{let{x:y,y:v}=b;return{x:y,y:v}}},...l}=wo(e,t),u={x:n,y:r},c=await Rf(t,l),d=co(mr(i)),h=Yb(d);let f=u[h],g=u[d];if(o){const b=h==="y"?"top":"left",y=h==="y"?"bottom":"right",v=f+c[b],x=f-c[y];f=gd(v,f,x)}if(a){const b=d==="y"?"top":"left",y=d==="y"?"bottom":"right",v=g+c[b],x=g-c[y];g=gd(v,g,x)}const m=s.fn({...t,[h]:f,[d]:g});return{...m,data:{x:m.x-n,y:m.y-r}}}}};function t1(e){const t=qt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=dt(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=xl(n)!==o||xl(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function Af(e){return Ke(e)?e:e.contextElement}function Qi(e){const t=Af(e);if(!dt(t))return Nr(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=t1(t);let a=(o?xl(n.width):n.width)/r,s=(o?xl(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const RS=Nr(0);function n1(e){const t=Xt(e);return!If()||!t.visualViewport?RS:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function AS(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Xt(e)?!1:t}function xi(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=Af(e);let a=Nr(1);t&&(r?Ke(r)&&(a=Qi(r)):a=Qi(e));const s=AS(o,n,r)?n1(o):Nr(0);let l=(i.left+s.x)/a.x,u=(i.top+s.y)/a.y,c=i.width/a.x,d=i.height/a.y;if(o){const h=Xt(o),f=r&&Ke(r)?Xt(r):r;let g=h,m=g.frameElement;for(;m&&r&&f!==g;){const b=Qi(m),y=m.getBoundingClientRect(),v=qt(m),x=y.left+(m.clientLeft+parseFloat(v.paddingLeft))*b.x,C=y.top+(m.clientTop+parseFloat(v.paddingTop))*b.y;l*=b.x,u*=b.y,c*=b.x,d*=b.y,l+=x,u+=C,g=Xt(m),m=g.frameElement}}return Dl({width:c,height:d,x:l,y:u})}function FS(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",a=pr(r),s=t?hu(t.floating):!1;if(r===a||s&&o)return n;let l={scrollLeft:0,scrollTop:0},u=Nr(1);const c=Nr(0),d=dt(r);if((d||!d&&!o)&&((Wr(r)!=="body"||Ua(a))&&(l=gu(r)),dt(r))){const h=xi(r);u=Qi(r),c.x=h.x+r.clientLeft,c.y=h.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x,y:n.y*u.y-l.scrollTop*u.y+c.y}}function PS(e){return Array.from(e.getClientRects())}function r1(e){return xi(pr(e)).left+gu(e).scrollLeft}function TS(e){const t=pr(e),n=gu(e),r=e.ownerDocument.body,i=hi(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=hi(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+r1(e);const s=-n.scrollTop;return qt(r).direction==="rtl"&&(a+=hi(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:s}}function kS(e,t){const n=Xt(e),r=pr(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;const u=If();(!u||u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}function MS(e,t){const n=xi(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=dt(e)?Qi(e):Nr(1),a=e.clientWidth*o.x,s=e.clientHeight*o.y,l=i*o.x,u=r*o.y;return{width:a,height:s,x:l,y:u}}function Ag(e,t,n){let r;if(t==="viewport")r=kS(e,n);else if(t==="document")r=TS(pr(e));else if(Ke(t))r=MS(t,n);else{const i=n1(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return Dl(r)}function i1(e,t){const n=gr(e);return n===t||!Ke(n)||Or(n)?!1:qt(n).position==="fixed"||i1(n,t)}function BS(e,t){const n=t.get(e);if(n)return n;let r=Mr(e,[],!1).filter(s=>Ke(s)&&Wr(s)!=="body"),i=null;const o=qt(e).position==="fixed";let a=o?gr(e):e;for(;Ke(a)&&!Or(a);){const s=qt(a),l=Ef(a);!l&&s.position==="fixed"&&(i=null),(o?!l&&!i:!l&&s.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Ua(a)&&!l&&i1(e,a))?r=r.filter(c=>c!==a):i=s,a=gr(a)}return t.set(e,r),r}function OS(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?hu(t)?[]:BS(t,this._c):[].concat(n),r],s=a[0],l=a.reduce((u,c)=>{const d=Ag(t,c,i);return u.top=hi(d.top,u.top),u.right=uo(d.right,u.right),u.bottom=uo(d.bottom,u.bottom),u.left=hi(d.left,u.left),u},Ag(t,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function NS(e){const{width:t,height:n}=t1(e);return{width:t,height:n}}function VS(e,t,n){const r=dt(t),i=pr(t),o=n==="fixed",a=xi(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=Nr(0);if(r||!r&&!o)if((Wr(t)!=="body"||Ua(i))&&(s=gu(t)),r){const d=xi(t,!0,o,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else i&&(l.x=r1(i));const u=a.left+s.scrollLeft-l.x,c=a.top+s.scrollTop-l.y;return{x:u,y:c,width:a.width,height:a.height}}function Ju(e){return qt(e).position==="static"}function Fg(e,t){return!dt(e)||qt(e).position==="fixed"?null:t?t(e):e.offsetParent}function o1(e,t){const n=Xt(e);if(hu(e))return n;if(!dt(e)){let i=gr(e);for(;i&&!Or(i);){if(Ke(i)&&!Ju(i))return i;i=gr(i)}return n}let r=Fg(e,t);for(;r&&N5(r)&&Ju(r);)r=Fg(r,t);return r&&Or(r)&&Ju(r)&&!Ef(r)?n:r||V5(e)||n}const LS=async function(e){const t=this.getOffsetParent||o1,n=this.getDimensions,r=await n(e.floating);return{reference:VS(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function HS(e){return qt(e).direction==="rtl"}const jS={convertOffsetParentRelativeRectToViewportRelativeRect:FS,getDocumentElement:pr,getClippingRect:OS,getOffsetParent:o1,getElementRects:LS,getClientRects:PS,getDimensions:NS,getScale:Qi,isElement:Ke,isRTL:HS};function WS(e,t){let n=null,r;const i=pr(e);function o(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),o();const{left:u,top:c,width:d,height:h}=e.getBoundingClientRect();if(s||t(),!d||!h)return;const f=ps(c),g=ps(i.clientWidth-(u+d)),m=ps(i.clientHeight-(c+h)),b=ps(u),v={rootMargin:-f+"px "+-g+"px "+-m+"px "+-b+"px",threshold:hi(0,uo(1,l))||1};let x=!0;function C(D){const I=D[0].intersectionRatio;if(I!==l){if(!x)return a();I?a(!1,I):r=setTimeout(()=>{a(!1,1e-7)},1e3)}x=!1}try{n=new IntersectionObserver(C,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(C,v)}n.observe(e)}return a(!0),o}function a1(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Af(e),c=i||o?[...u?Mr(u):[],...Mr(t)]:[];c.forEach(y=>{i&&y.addEventListener("scroll",n,{passive:!0}),o&&y.addEventListener("resize",n)});const d=u&&s?WS(u,n):null;let h=-1,f=null;a&&(f=new ResizeObserver(y=>{let[v]=y;v&&v.target===u&&f&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var x;(x=f)==null||x.observe(t)})),n()}),u&&!l&&f.observe(u),f.observe(t));let g,m=l?xi(e):null;l&&b();function b(){const y=xi(e);m&&(y.x!==m.x||y.y!==m.y||y.width!==m.width||y.height!==m.height)&&n(),m=y,g=requestAnimationFrame(b)}return n(),()=>{var y;c.forEach(v=>{i&&v.removeEventListener("scroll",n),o&&v.removeEventListener("resize",n)}),d==null||d(),(y=f)==null||y.disconnect(),f=null,l&&cancelAnimationFrame(g)}}const zS=_S,GS=SS,ZS=$S,XS=ES,Pg=wS,YS=(e,t,n)=>{const r=new Map,i={platform:jS,...n},o={...i.platform,_c:r};return CS(e,t,{...i,platform:o})};var Qs=typeof document<"u"?w.useLayoutEffect:w.useEffect;function _l(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!_l(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!_l(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function s1(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Tg(e,t){const n=s1(e);return Math.round(t*n)/n}function kg(e){const t=G.useRef(e);return Qs(()=>{t.current=e}),t}function US(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:a}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[c,d]=G.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,f]=G.useState(r);_l(h,r)||f(r);const[g,m]=G.useState(null),[b,y]=G.useState(null),v=G.useCallback(F=>{F!==I.current&&(I.current=F,m(F))},[]),x=G.useCallback(F=>{F!==T.current&&(T.current=F,y(F))},[]),C=o||g,D=a||b,I=G.useRef(null),T=G.useRef(null),p=G.useRef(c),S=l!=null,$=kg(l),_=kg(i),A=G.useCallback(()=>{if(!I.current||!T.current)return;const F={placement:t,strategy:n,middleware:h};_.current&&(F.platform=_.current),YS(I.current,T.current,F).then(B=>{const N={...B,isPositioned:!0};k.current&&!_l(p.current,N)&&(p.current=N,Eb.flushSync(()=>{d(N)}))})},[h,t,n,_]);Qs(()=>{u===!1&&p.current.isPositioned&&(p.current.isPositioned=!1,d(F=>({...F,isPositioned:!1})))},[u]);const k=G.useRef(!1);Qs(()=>(k.current=!0,()=>{k.current=!1}),[]),Qs(()=>{if(C&&(I.current=C),D&&(T.current=D),C&&D){if($.current)return $.current(C,D,A);A()}},[C,D,A,$,S]);const R=G.useMemo(()=>({reference:I,floating:T,setReference:v,setFloating:x}),[v,x]),M=G.useMemo(()=>({reference:C,floating:D}),[C,D]),P=G.useMemo(()=>{const F={position:n,left:0,top:0};if(!M.floating)return F;const B=Tg(M.floating,c.x),N=Tg(M.floating,c.y);return s?{...F,transform:"translate("+B+"px, "+N+"px)",...s1(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:B,top:N}},[n,s,M.floating,c.x,c.y]);return G.useMemo(()=>({...c,update:A,refs:R,elements:M,floatingStyles:P}),[c,A,R,M,P])}const JS=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Pg({element:r.current,padding:i}).fn(n):{}:r?Pg({element:r,padding:i}).fn(n):{}}}},KS=(e,t)=>({...zS(e),options:[e,t]}),qS=(e,t)=>({...ZS(e),options:[e,t]}),QS=(e,t)=>({...XS(e),options:[e,t]}),eE=(e,t)=>({...GS(e),options:[e,t]}),tE=(e,t)=>({...JS(e),options:[e,t]}),l1={...G},nE=l1.useInsertionEffect,rE=nE||(e=>e());function $r(e){const t=G.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return rE(()=>{t.current=e}),G.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)},[])}let Mg=0;function Yr(e,t){t===void 0&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:i=!1}=t;r&&cancelAnimationFrame(Mg);const o=()=>e==null?void 0:e.focus({preventScroll:n});i?o():Mg=requestAnimationFrame(o)}var At=typeof document<"u"?w.useLayoutEffect:w.useEffect;function da(){return da=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},da.apply(this,arguments)}let Bg=!1,iE=0;const Og=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+iE++;function oE(){const[e,t]=G.useState(()=>Bg?Og():void 0);return At(()=>{e==null&&t(Og())},[]),G.useEffect(()=>{Bg=!0},[]),e}const aE=l1.useId,pu=aE||oE;let fa;process.env.NODE_ENV!=="production"&&(fa=new Set);function sE(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i="Floating UI: "+n.join(" ");if(!((e=fa)!=null&&e.has(i))){var o;(o=fa)==null||o.add(i),console.warn(i)}}function lE(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i="Floating UI: "+n.join(" ");if(!((e=fa)!=null&&e.has(i))){var o;(o=fa)==null||o.add(i),console.error(i)}}const uE=G.forwardRef(function(t,n){const{context:{placement:r,elements:{floating:i},middlewareData:{arrow:o}},width:a=14,height:s=7,tipRadius:l=0,strokeWidth:u=0,staticOffset:c,stroke:d,d:h,style:{transform:f,...g}={},...m}=t;process.env.NODE_ENV!=="production"&&(n||sE("The `ref` prop is required for `FloatingArrow`."));const b=pu(),[y,v]=G.useState(!1);if(At(()=>{if(!i)return;qt(i).direction==="rtl"&&v(!0)},[i]),!i)return null;const x=u*2,C=x/2,D=a/2*(l/-8+1),I=s/2*l/4,[T,p]=r.split("-"),S=!!h,$=T==="top"||T==="bottom",_=c&&p==="end"?"bottom":"top";let A=c&&p==="end"?"right":"left";c&&y&&(A=p==="end"?"left":"right");const k=(o==null?void 0:o.x)!=null?c||o.x:"",R=(o==null?void 0:o.y)!=null?c||o.y:"",M=h||"M0,0"+(" H"+a)+(" L"+(a-D)+","+(s-I))+(" Q"+a/2+","+s+" "+D+","+(s-I))+" Z",P={top:S?"rotate(180deg)":"",left:S?"rotate(90deg)":"rotate(-90deg)",bottom:S?"":"rotate(180deg)",right:S?"rotate(-90deg)":"rotate(90deg)"}[T];return G.createElement("svg",da({},m,{"aria-hidden":!0,ref:n,width:S?a:a+x,height:a,viewBox:"0 0 "+a+" "+(s>a?s:a),style:{position:"absolute",pointerEvents:"none",[A]:k,[_]:R,[T]:$||S?"100%":"calc(100% - "+x/2+"px)",transform:""+P+(f??""),...g}}),x>0&&G.createElement("path",{clipPath:"url(#"+b+")",fill:"none",stroke:d,strokeWidth:x+(h?0:1),d:M}),G.createElement("path",{stroke:x&&!h?m.fill:"none",d:M}),G.createElement("clipPath",{id:b},G.createElement("rect",{x:-C,y:C*(S?-1:1),width:a+x,height:a})))});function cE(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(i=>i!==n))||[])}}}const dE=G.createContext(null),fE=G.createContext(null),u1=()=>{var e;return((e=G.useContext(dE))==null?void 0:e.id)||null},Ff=()=>G.useContext(fE);function ha(e){return"data-floating-ui-"+e}function si(e){const t=w.useRef(e);return At(()=>{t.current=e}),t}function hE(e,t){var n;let r=[],i=(n=e.find(o=>o.id===t))==null?void 0:n.parentId;for(;i;){const o=e.find(a=>a.id===i);i=o==null?void 0:o.parentId,o&&(r=r.concat(o))}return r}function Jo(e,t){let n=e.filter(i=>{var o;return i.parentId===t&&((o=i.context)==null?void 0:o.open)}),r=n;for(;r.length;)r=e.filter(i=>{var o;return(o=r)==null?void 0:o.some(a=>{var s;return i.parentId===a.id&&((s=i.context)==null?void 0:s.open)})}),n=n.concat(r);return n}let Oi=new WeakMap,bs=new WeakSet,vs={},Ku=0;const gE=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,c1=e=>e&&(e.host||c1(e.parentNode)),mE=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=c1(n);return e.contains(r)?r:null}).filter(n=>n!=null);function pE(e,t,n,r){const i="data-floating-ui-inert",o=r?"inert":n?"aria-hidden":null,a=mE(t,e),s=new Set,l=new Set(a),u=[];vs[i]||(vs[i]=new WeakMap);const c=vs[i];a.forEach(d),h(t),s.clear();function d(f){!f||s.has(f)||(s.add(f),f.parentNode&&d(f.parentNode))}function h(f){!f||l.has(f)||[].forEach.call(f.children,g=>{if(Wr(g)!=="script")if(s.has(g))h(g);else{const m=o?g.getAttribute(o):null,b=m!==null&&m!=="false",y=(Oi.get(g)||0)+1,v=(c.get(g)||0)+1;Oi.set(g,y),c.set(g,v),u.push(g),y===1&&b&&bs.add(g),v===1&&g.setAttribute(i,""),!b&&o&&g.setAttribute(o,"true")}})}return Ku++,()=>{u.forEach(f=>{const g=(Oi.get(f)||0)-1,m=(c.get(f)||0)-1;Oi.set(f,g),c.set(f,m),g||(!bs.has(f)&&o&&f.removeAttribute(o),bs.delete(f)),m||f.removeAttribute(i)}),Ku--,Ku||(Oi=new WeakMap,Oi=new WeakMap,bs=new WeakSet,vs={})}}function Ng(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=pn(e[0]).body;return pE(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const ga=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function d1(e,t){const n=mu(e,ga());t==="prev"&&n.reverse();const r=n.indexOf(ei(pn(e)));return n.slice(r+1)[0]}function f1(){return d1(document.body,"next")}function h1(){return d1(document.body,"prev")}function Ko(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!zt(n,r)}function bE(e){mu(e,ga()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function vE(e){e.querySelectorAll("[data-tabindex]").forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}const Pf={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};let yE;function Vg(e){e.key==="Tab"&&(e.target,clearTimeout(yE))}const $l=G.forwardRef(function(t,n){const[r,i]=G.useState();At(()=>(W5()&&i("button"),document.addEventListener("keydown",Vg),()=>{document.removeEventListener("keydown",Vg)}),[]);const o={ref:n,tabIndex:0,role:r,"aria-hidden":r?void 0:!0,[ha("focus-guard")]:"",style:Pf};return G.createElement("span",da({},t,o))}),g1=G.createContext(null),Lg=ha("portal");function xE(e){e===void 0&&(e={});const{id:t,root:n}=e,r=pu(),i=m1(),[o,a]=G.useState(null),s=G.useRef(null);return At(()=>()=>{o==null||o.remove(),queueMicrotask(()=>{s.current=null})},[o]),At(()=>{if(!r||s.current)return;const l=t?document.getElementById(t):null;if(!l)return;const u=document.createElement("div");u.id=r,u.setAttribute(Lg,""),l.appendChild(u),s.current=u,a(u)},[t,r]),At(()=>{if(!r||s.current)return;let l=n||(i==null?void 0:i.portalNode);l&&!Ke(l)&&(l=l.current),l=l||document.body;let u=null;t&&(u=document.createElement("div"),u.id=t,l.appendChild(u));const c=document.createElement("div");c.id=r,c.setAttribute(Lg,""),l=u||l,l.appendChild(c),s.current=c,a(c)},[t,n,r,i]),o}function CE(e){const{children:t,id:n,root:r=null,preserveTabOrder:i=!0}=e,o=xE({id:n,root:r}),[a,s]=G.useState(null),l=G.useRef(null),u=G.useRef(null),c=G.useRef(null),d=G.useRef(null),h=!!a&&!a.modal&&a.open&&i&&!!(r||o);return G.useEffect(()=>{if(!o||!i||a!=null&&a.modal)return;function f(g){o&&Ko(g)&&(g.type==="focusin"?vE:bE)(o)}return o.addEventListener("focusin",f,!0),o.addEventListener("focusout",f,!0),()=>{o.removeEventListener("focusin",f,!0),o.removeEventListener("focusout",f,!0)}},[o,i,a==null?void 0:a.modal]),G.createElement(g1.Provider,{value:G.useMemo(()=>({preserveTabOrder:i,beforeOutsideRef:l,afterOutsideRef:u,beforeInsideRef:c,afterInsideRef:d,portalNode:o,setFocusManagerState:s}),[i,o])},h&&o&&G.createElement($l,{"data-type":"outside",ref:l,onFocus:f=>{if(Ko(f,o)){var g;(g=c.current)==null||g.focus()}else{const m=h1()||(a==null?void 0:a.refs.domReference.current);m==null||m.focus()}}}),h&&o&&G.createElement("span",{"aria-owns":o.id,style:Pf}),o&&Eb.createPortal(t,o),h&&o&&G.createElement($l,{"data-type":"outside",ref:u,onFocus:f=>{if(Ko(f,o)){var g;(g=d.current)==null||g.focus()}else{const m=f1()||(a==null?void 0:a.refs.domReference.current);m==null||m.focus(),a!=null&&a.closeOnFocusOut&&(a==null||a.onOpenChange(!1,f.nativeEvent))}}}))}const m1=()=>G.useContext(g1),wE=20;let ti=[];function qu(e){ti=ti.filter(n=>n.isConnected);let t=e;if(!(!t||Wr(t)==="body")){if(!xS(t,ga())){const n=mu(t,ga())[0];n&&(t=n)}ti.push(t),ti.length>wE&&(ti=ti.slice(-20))}}function Hg(){return ti.slice().reverse().find(e=>e.isConnected)}const DE=G.forwardRef(function(t,n){return G.createElement("button",da({},t,{type:"button",ref:n,tabIndex:-1,style:Pf}))});function SE(e){const{context:t,children:n,disabled:r=!1,order:i=["content"],guards:o=!0,initialFocus:a=0,returnFocus:s=!0,restoreFocus:l=!1,modal:u=!0,visuallyHiddenDismiss:c=!1,closeOnFocusOut:d=!0}=e,{open:h,refs:f,nodeId:g,onOpenChange:m,events:b,dataRef:y,floatingId:v,elements:{domReference:x,floating:C}}=t,D=typeof a=="number"&&a<0,I=Y5(x)&&D,T=gE()?o:!0,p=si(i),S=si(a),$=si(s),_=Ff(),A=m1(),k=G.useRef(null),R=G.useRef(null),M=G.useRef(!1),P=G.useRef(!1),F=G.useRef(-1),B=A!=null,N=C==null?void 0:C.firstElementChild,O=(N==null?void 0:N.id)===v?N:C,L=$r(function(H){return H===void 0&&(H=O),H?mu(H,ga()):[]}),W=$r(H=>{const V=L(H);return p.current.map(z=>x&&z==="reference"?x:O&&z==="floating"?O:V).filter(Boolean).flat()});G.useEffect(()=>{if(r||!u)return;function H(z){if(z.key==="Tab"){zt(O,ei(pn(O)))&&L().length===0&&!I&&Uu(z);const Y=W(),K=ii(z);p.current[0]==="reference"&&K===x&&(Uu(z),z.shiftKey?Yr(Y[Y.length-1]):Yr(Y[1])),p.current[1]==="floating"&&K===O&&z.shiftKey&&(Uu(z),Yr(Y[0]))}}const V=pn(O);return V.addEventListener("keydown",H),()=>{V.removeEventListener("keydown",H)}},[r,x,O,u,p,I,L,W]),G.useEffect(()=>{if(r||!C)return;function H(V){const z=ii(V),K=L().indexOf(z);K!==-1&&(F.current=K)}return C.addEventListener("focusin",H),()=>{C.removeEventListener("focusin",H)}},[r,C,L]),G.useEffect(()=>{if(r||!d)return;function H(){P.current=!0,setTimeout(()=>{P.current=!1})}function V(z){const Y=z.relatedTarget;queueMicrotask(()=>{const K=!(zt(x,Y)||zt(C,Y)||zt(Y,C)||zt(A==null?void 0:A.portalNode,Y)||Y!=null&&Y.hasAttribute(ha("focus-guard"))||_&&(Jo(_.nodesRef.current,g).find(Q=>{var ee,X;return zt((ee=Q.context)==null?void 0:ee.elements.floating,Y)||zt((X=Q.context)==null?void 0:X.elements.domReference,Y)})||hE(_.nodesRef.current,g).find(Q=>{var ee,X;return((ee=Q.context)==null?void 0:ee.elements.floating)===Y||((X=Q.context)==null?void 0:X.elements.domReference)===Y})));if(l&&K&&ei(pn(O))===pn(O).body){dt(O)&&(O==null||O.focus());const Q=F.current,ee=L(),X=ee[Q]||ee[ee.length-1]||O;dt(X)&&X.focus()}(I||!u)&&Y&&K&&!P.current&&Y!==Hg()&&(M.current=!0,m(!1,z))})}if(C&&dt(x))return x.addEventListener("focusout",V),x.addEventListener("pointerdown",H),C.addEventListener("focusout",V),()=>{x.removeEventListener("focusout",V),x.removeEventListener("pointerdown",H),C.removeEventListener("focusout",V)}},[r,x,C,O,u,g,_,A,m,d,l,L,I]),G.useEffect(()=>{var H;if(r)return;const V=Array.from((A==null||(H=A.portalNode)==null?void 0:H.querySelectorAll("["+ha("portal")+"]"))||[]);if(C){const z=[C,...V,k.current,R.current,p.current.includes("reference")||I?x:null].filter(K=>K!=null),Y=u||I?Ng(z,T,!T):Ng(z);return()=>{Y()}}},[r,x,C,u,p,A,I,T]),At(()=>{if(r||!dt(O))return;const H=pn(O),V=ei(H);queueMicrotask(()=>{const z=W(O),Y=S.current,K=(typeof Y=="number"?z[Y]:Y.current)||O,Q=zt(O,V);!D&&!Q&&h&&Yr(K,{preventScroll:K===O})})},[r,h,O,D,W,S]),At(()=>{if(r||!O)return;let H=!1;const V=pn(O),z=ei(V);let K=y.current.openEvent;qu(z);function Q(ee){let{open:X,reason:ue,event:fe,nested:he}=ee;X&&(K=fe),ue==="escape-key"&&f.domReference.current&&qu(f.domReference.current),ue==="hover"&&fe.type==="mouseleave"&&(M.current=!0),ue==="outside-press"&&(he?(M.current=!1,H=!0):M.current=!(H5(fe)||j5(fe)))}return b.on("openchange",Q),()=>{b.off("openchange",Q);const ee=ei(V),X=zt(C,ee)||_&&Jo(_.nodesRef.current,g).some(he=>{var ht;return zt((ht=he.context)==null?void 0:ht.elements.floating,ee)});(X||K&&["click","mousedown"].includes(K.type))&&f.domReference.current&&qu(f.domReference.current);const fe=Hg();$.current&&!M.current&&dt(fe)&&(!(fe!==ee&&ee!==V.body)||X)&&Yr(fe,{cancelPrevious:!1,preventScroll:H})}},[r,C,O,$,y,f,b,_,g]),At(()=>{if(!r&&A)return A.setFocusManagerState({modal:u,closeOnFocusOut:d,open:h,onOpenChange:m,refs:f}),()=>{A.setFocusManagerState(null)}},[r,A,u,h,m,f,d]),At(()=>{if(r||!O||typeof MutationObserver!="function"||D)return;const H=()=>{const z=O.getAttribute("tabindex"),Y=L(),K=ei(pn(C)),Q=Y.indexOf(K);Q!==-1&&(F.current=Q),p.current.includes("floating")||K!==f.domReference.current&&Y.length===0?z!=="0"&&O.setAttribute("tabindex","0"):z!=="-1"&&O.setAttribute("tabindex","-1")};H();const V=new MutationObserver(H);return V.observe(O,{childList:!0,subtree:!0,attributes:!0}),()=>{V.disconnect()}},[r,C,O,f,p,L,D]);function Z(H){return r||!c||!u?null:G.createElement(DE,{ref:H==="start"?k:R,onClick:V=>m(!1,V.nativeEvent)},typeof c=="string"?c:"Dismiss")}const j=!r&&T&&(u?!I:!0)&&(B||u);return G.createElement(G.Fragment,null,j&&G.createElement($l,{"data-type":"inside",ref:A==null?void 0:A.beforeInsideRef,onFocus:H=>{if(u){const z=W();Yr(i[0]==="reference"?z[0]:z[z.length-1])}else if(A!=null&&A.preserveTabOrder&&A.portalNode)if(M.current=!1,Ko(H,A.portalNode)){const z=f1()||x;z==null||z.focus()}else{var V;(V=A.beforeOutsideRef.current)==null||V.focus()}}}),!I&&Z("start"),n,Z("end"),j&&G.createElement($l,{"data-type":"inside",ref:A==null?void 0:A.afterInsideRef,onFocus:H=>{if(u)Yr(W()[0]);else if(A!=null&&A.preserveTabOrder&&A.portalNode)if(d&&(M.current=!0),Ko(H,A.portalNode)){const z=h1()||x;z==null||z.focus()}else{var V;(V=A.afterOutsideRef.current)==null||V.focus()}}}))}function jg(e){return dt(e.target)&&e.target.tagName==="BUTTON"}function Wg(e){return Xb(e)}function EE(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,elements:{domReference:o}}=e,{enabled:a=!0,event:s="click",toggle:l=!0,ignoreMouse:u=!1,keyboardHandlers:c=!0}=t,d=G.useRef(),h=G.useRef(!1),f=G.useMemo(()=>({onPointerDown(g){d.current=g.pointerType},onMouseDown(g){const m=d.current;g.button===0&&s!=="click"&&(Eg(m)&&u||(n&&l&&(!i.current.openEvent||i.current.openEvent.type==="mousedown")?r(!1,g.nativeEvent,"click"):(g.preventDefault(),r(!0,g.nativeEvent,"click"))))},onClick(g){const m=d.current;if(s==="mousedown"&&d.current){d.current=void 0;return}Eg(m)&&u||(n&&l&&(!i.current.openEvent||i.current.openEvent.type==="click")?r(!1,g.nativeEvent,"click"):r(!0,g.nativeEvent,"click"))},onKeyDown(g){d.current=void 0,!(g.defaultPrevented||!c||jg(g))&&(g.key===" "&&!Wg(o)&&(g.preventDefault(),h.current=!0),g.key==="Enter"&&r(!(n&&l),g.nativeEvent,"click"))},onKeyUp(g){g.defaultPrevented||!c||jg(g)||Wg(o)||g.key===" "&&h.current&&(h.current=!1,r(!(n&&l),g.nativeEvent,"click"))}}),[i,o,s,u,c,r,n,l]);return G.useMemo(()=>a?{reference:f}:{},[a,f])}const IE={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},_E={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},zg=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e==null?void 0:e.outsidePress)!=null?n:!0}};function $E(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:i,dataRef:o}=e,{enabled:a=!0,escapeKey:s=!0,outsidePress:l=!0,outsidePressEvent:u="pointerdown",referencePress:c=!1,referencePressEvent:d="pointerdown",ancestorScroll:h=!1,bubbles:f,capture:g}=t,m=Ff(),b=$r(typeof l=="function"?l:()=>!1),y=typeof l=="function"?b:l,v=G.useRef(!1),x=G.useRef(!1),{escapeKey:C,outsidePress:D}=zg(f),{escapeKey:I,outsidePress:T}=zg(g),p=$r(R=>{var M;if(!n||!a||!s||R.key!=="Escape")return;const P=(M=o.current.floatingContext)==null?void 0:M.nodeId,F=m?Jo(m.nodesRef.current,P):[];if(!C&&(R.stopPropagation(),F.length>0)){let B=!0;if(F.forEach(N=>{var O;if((O=N.context)!=null&&O.open&&!N.context.dataRef.current.__escapeKeyBubbles){B=!1;return}}),!B)return}r(!1,G5(R)?R.nativeEvent:R,"escape-key")}),S=$r(R=>{var M;const P=()=>{var F;p(R),(F=ii(R))==null||F.removeEventListener("keydown",P)};(M=ii(R))==null||M.addEventListener("keydown",P)}),$=$r(R=>{var M;const P=v.current;v.current=!1;const F=x.current;if(x.current=!1,u==="click"&&F||P||typeof y=="function"&&!y(R))return;const B=ii(R),N="["+ha("inert")+"]",O=pn(i.floating).querySelectorAll(N);let L=Ke(B)?B:null;for(;L&&!Or(L);){const H=gr(L);if(Or(H)||!Ke(H))break;L=H}if(O.length&&Ke(B)&&!Z5(B)&&!zt(B,i.floating)&&Array.from(O).every(H=>!zt(L,H)))return;if(dt(B)&&k){const H=B.clientWidth>0&&B.scrollWidth>B.clientWidth,V=B.clientHeight>0&&B.scrollHeight>B.clientHeight;let z=V&&R.offsetX>B.clientWidth;if(V&&qt(B).direction==="rtl"&&(z=R.offsetX<=B.offsetWidth-B.clientWidth),z||H&&R.offsetY>B.clientHeight)return}const W=(M=o.current.floatingContext)==null?void 0:M.nodeId,Z=m&&Jo(m.nodesRef.current,W).some(H=>{var V;return Yu(R,(V=H.context)==null?void 0:V.elements.floating)});if(Yu(R,i.floating)||Yu(R,i.domReference)||Z)return;const j=m?Jo(m.nodesRef.current,W):[];if(j.length>0){let H=!0;if(j.forEach(V=>{var z;if((z=V.context)!=null&&z.open&&!V.context.dataRef.current.__outsidePressBubbles){H=!1;return}}),!H)return}r(!1,R,"outside-press")}),_=$r(R=>{var M;const P=()=>{var F;$(R),(F=ii(R))==null||F.removeEventListener(u,P)};(M=ii(R))==null||M.addEventListener(u,P)});G.useEffect(()=>{if(!n||!a)return;o.current.__escapeKeyBubbles=C,o.current.__outsidePressBubbles=D;function R(F){r(!1,F,"ancestor-scroll")}const M=pn(i.floating);s&&M.addEventListener("keydown",I?S:p,I),y&&M.addEventListener(u,T?_:$,T);let P=[];return h&&(Ke(i.domReference)&&(P=Mr(i.domReference)),Ke(i.floating)&&(P=P.concat(Mr(i.floating))),!Ke(i.reference)&&i.reference&&i.reference.contextElement&&(P=P.concat(Mr(i.reference.contextElement)))),P=P.filter(F=>{var B;return F!==((B=M.defaultView)==null?void 0:B.visualViewport)}),P.forEach(F=>{F.addEventListener("scroll",R,{passive:!0})}),()=>{s&&M.removeEventListener("keydown",I?S:p,I),y&&M.removeEventListener(u,T?_:$,T),P.forEach(F=>{F.removeEventListener("scroll",R)})}},[o,i,s,y,u,n,r,h,a,C,D,p,I,S,$,T,_]),G.useEffect(()=>{v.current=!1},[y,u]);const A=G.useMemo(()=>({onKeyDown:p,[IE[d]]:R=>{c&&r(!1,R.nativeEvent,"reference-press")}}),[p,r,c,d]),k=G.useMemo(()=>({onKeyDown:p,onMouseDown(){x.current=!0},onMouseUp(){x.current=!0},[_E[u]]:()=>{v.current=!0}}),[p,u]);return G.useMemo(()=>a?{reference:A,floating:k}:{},[a,A,k])}function RE(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=pu(),o=G.useRef({}),[a]=G.useState(()=>cE()),s=u1()!=null;if(process.env.NODE_ENV!=="production"){const f=r.reference;f&&!Ke(f)&&lE("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[l,u]=G.useState(r.reference),c=$r((f,g,m)=>{o.current.openEvent=f?g:void 0,a.emit("openchange",{open:f,event:g,reason:m,nested:s}),n==null||n(f,g,m)}),d=G.useMemo(()=>({setPositionReference:u}),[]),h=G.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return G.useMemo(()=>({dataRef:o,open:t,onOpenChange:c,elements:h,events:a,floatingId:i,refs:d}),[t,c,h,a,i,d])}function AE(e){e===void 0&&(e={});const{nodeId:t}=e,n=RE({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,a]=G.useState(null),[s,l]=G.useState(null),c=(i==null?void 0:i.reference)||o,d=G.useRef(null),h=Ff();At(()=>{c&&(d.current=c)},[c]);const f=US({...e,elements:{...i,...s&&{reference:s}}}),g=G.useCallback(x=>{const C=Ke(x)?{getBoundingClientRect:()=>x.getBoundingClientRect(),contextElement:x}:x;l(C),f.refs.setReference(C)},[f.refs]),m=G.useCallback(x=>{(Ke(x)||x===null)&&(d.current=x,a(x)),(Ke(f.refs.reference.current)||f.refs.reference.current===null||x!==null&&!Ke(x))&&f.refs.setReference(x)},[f.refs]),b=G.useMemo(()=>({...f.refs,setReference:m,setPositionReference:g,domReference:d}),[f.refs,m,g]),y=G.useMemo(()=>({...f.elements,domReference:c}),[f.elements,c]),v=G.useMemo(()=>({...f,...r,refs:b,elements:y,nodeId:t}),[f,b,y,t,r]);return At(()=>{r.dataRef.current.floatingContext=v;const x=h==null?void 0:h.nodesRef.current.find(C=>C.id===t);x&&(x.context=v)}),G.useMemo(()=>({...f,context:v,refs:b,elements:y}),[f,b,y,v])}const Gg="active",Zg="selected";function Qu(e,t,n){const r=new Map,i=n==="item";let o=e;if(i&&e){const{[Gg]:a,[Zg]:s,...l}=e;o=l}return{...n==="floating"&&{tabIndex:-1},...o,...t.map(a=>{const s=a?a[n]:null;return typeof s=="function"?e?s(e):null:s}).concat(e).reduce((a,s)=>(s&&Object.entries(s).forEach(l=>{let[u,c]=l;if(!(i&&[Gg,Zg].includes(u)))if(u.indexOf("on")===0){if(r.has(u)||r.set(u,[]),typeof c=="function"){var d;(d=r.get(u))==null||d.push(c),a[u]=function(){for(var h,f=arguments.length,g=new Array(f),m=0;m<f;m++)g[m]=arguments[m];return(h=r.get(u))==null?void 0:h.map(b=>b(...g)).find(b=>b!==void 0)}}}else a[u]=c}),a),{})}}function FE(e){e===void 0&&(e=[]);const t=e.map(s=>s==null?void 0:s.reference),n=e.map(s=>s==null?void 0:s.floating),r=e.map(s=>s==null?void 0:s.item),i=G.useCallback(s=>Qu(s,e,"reference"),t),o=G.useCallback(s=>Qu(s,e,"floating"),n),a=G.useCallback(s=>Qu(s,e,"item"),r);return G.useMemo(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:a}),[i,o,a])}const PE=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function TE(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:i}=e,{enabled:o=!0,role:a="dialog"}=t,s=(n=PE.get(a))!=null?n:a,l=pu(),c=u1()!=null,d=G.useMemo(()=>s==="tooltip"||a==="label"?{["aria-"+(a==="label"?"labelledby":"describedby")]:r?i:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":s==="alertdialog"?"dialog":s,"aria-controls":r?i:void 0,...s==="listbox"&&{role:"combobox"},...s==="menu"&&{id:l},...s==="menu"&&c&&{role:"menuitem"},...a==="select"&&{"aria-autocomplete":"none"},...a==="combobox"&&{"aria-autocomplete":"list"}},[s,i,c,r,l,a]),h=G.useMemo(()=>{const g={id:i,...s&&{role:s}};return s==="tooltip"||a==="label"?g:{...g,...s==="menu"&&{"aria-labelledby":l}}},[s,i,l,a]),f=G.useCallback(g=>{let{active:m,selected:b}=g;const y={role:"option",...m&&{id:i+"-option"}};switch(a){case"select":return{...y,"aria-selected":m&&b};case"combobox":return{...y,...m&&{"aria-selected":!0}}}return{}},[i,a]);return G.useMemo(()=>o?{reference:d,floating:h,item:f}:{},[o,d,h,f])}const Xg=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,n)=>(n?"-":"")+t.toLowerCase());function Ni(e,t){return typeof e=="function"?e(t):e}function kE(e,t){const[n,r]=G.useState(e);return e&&!n&&r(!0),G.useEffect(()=>{if(!e&&n){const i=setTimeout(()=>r(!1),t);return()=>clearTimeout(i)}},[e,n,t]),n}function ME(e,t){t===void 0&&(t={});const{open:n,elements:{floating:r}}=e,{duration:i=250}=t,a=(typeof i=="number"?i:i.close)||0,[s,l]=G.useState("unmounted"),u=kE(n,a);return!u&&s==="close"&&l("unmounted"),At(()=>{if(r){if(n){l("initial");const c=requestAnimationFrame(()=>{l("open")});return()=>{cancelAnimationFrame(c)}}l("close")}},[n,r]),{isMounted:u,status:s}}function BE(e,t){t===void 0&&(t={});const{initial:n={opacity:0},open:r,close:i,common:o,duration:a=250}=t,s=e.placement,l=s.split("-")[0],u=G.useMemo(()=>({side:l,placement:s}),[l,s]),c=typeof a=="number",d=(c?a:a.open)||0,h=(c?a:a.close)||0,[f,g]=G.useState(()=>({...Ni(o,u),...Ni(n,u)})),{isMounted:m,status:b}=ME(e,{duration:a}),y=si(n),v=si(r),x=si(i),C=si(o);return At(()=>{const D=Ni(y.current,u),I=Ni(x.current,u),T=Ni(C.current,u),p=Ni(v.current,u)||Object.keys(D).reduce((S,$)=>(S[$]="",S),{});if(b==="initial"&&g(S=>({transitionProperty:S.transitionProperty,...T,...D})),b==="open"&&g({transitionProperty:Object.keys(p).map(Xg).join(","),transitionDuration:d+"ms",...T,...p}),b==="close"){const S=I||D;g({transitionProperty:Object.keys(S).map(Xg).join(","),transitionDuration:h+"ms",...T,...S})}},[h,x,y,v,C,d,b,u]),{isMounted:m,styles:f}}const OE="_popover_7cinv_1",NE={popover:OE},br=w.forwardRef((e,t)=>{const{children:n,className:r,offset:i=10,isShow:o,anchorEl:a,useAutoPlacement:s=!1,flipOptions:l,autoPlacementOptions:u,zIndex:c=10,width:d,styleInnerPopover:h={},floatingOptions:f={},onClose:g=()=>{},withArrow:m,propsArrow:b={},...y}=e,v=w.useRef(null),[x,C]=w.useState(!1),{refs:D,floatingStyles:I,context:T}=AE({open:x,onOpenChange:F=>{C(F),F||g()},middleware:[KS(i),s?eE(u):QS(l),qS(),tE({element:v})],whileElementsMounted:a1,...f}),p=EE(T),S=$E(T),$=TE(T),{getReferenceProps:_,getFloatingProps:A}=FE([p,S,$]),{styles:k,isMounted:R}=BE(T),M=F=>{D.setReference(F.currentTarget),C(B=>!B),x&&g()};w.useEffect(()=>{o&&a?M({currentTarget:a}):o||C(!1)},[o,a]),w.useImperativeHandle(t,()=>({show:x,setShow:C,handlerShow:M,getReferenceProps:_}),[x]);const P=()=>{let F={...I,...k,...h,zIndex:c};return d&&(F={...F,width:d}),F};return E.jsx(E.Fragment,{children:R&&x&&E.jsx(CE,{children:E.jsx(SE,{context:T,modal:!1,children:E.jsxs("div",{ref:D.setFloating,style:P(),...A(),className:`${NE.popover} ${r??""}`,...y,children:[n,m&&E.jsx(uE,{ref:v,context:T,...b})]})})})})});br.displayName="Popover";const VE="_input_192cn_7",LE="_label_192cn_36",HE="_error_192cn_43",Pt={"container-large":"_container-large_192cn_1","container-input":"_container-input_192cn_4",input:VE,label:LE,error:HE,"isset-right-icon":"_isset-right-icon_192cn_54","isset-left-icon":"_isset-left-icon_192cn_57","start-icon":"_start-icon_192cn_66","end-icon":"_end-icon_192cn_70","label-error":"_label-error_192cn_77","container-medium":"_container-medium_192cn_82","container-small":"_container-small_192cn_163"},p1=w.forwardRef((e,t)=>{var x;const{isRequired:n,classNameContainer:r,classNameLabelError:i,classNameLabel:o,className:a,name:s,id:l,label:u,type:c="text",startIcon:d,endIcon:h,error:f,sizeInput:g="large",...m}=e,b={size:{large:Pt["container-large"],medium:Pt["container-medium"],small:Pt["container-small"]}},y=()=>typeof d=="function"||w.isValidElement(d),v=()=>typeof h=="function"||w.isValidElement(h);return E.jsxs("div",{className:`${Pt.container} ${(x=b.size)==null?void 0:x[g]} ${r??""}`,children:[E.jsxs("div",{className:Pt["container-input"],children:[E.jsx("input",{id:l??s,className:`${Pt.input} ${f?Pt.error:""}
17
17
  ${y()?Pt["isset-left-icon"]:""}
18
18
  ${v()?Pt["isset-right-icon"]:""}
19
19
  ${a??""}`,ref:t,type:c,...m}),E.jsxs("div",{className:Pt["start-icon"],children:[typeof d=="function"&&d(),w.isValidElement(d)&&d]}),E.jsxs("label",{className:`${Pt.label} ${o??""}`,htmlFor:l??s,children:[u," ",n&&E.jsx("span",{className:"1ru-text-laba-red-08",children:"*"})]}),E.jsxs("div",{className:Pt["end-icon"],children:[typeof h=="function"&&h(),w.isValidElement(h)&&h]})]}),f&&E.jsx("label",{className:`${Pt["label-error"]}
20
- ${m.disabled?Pt.disabled:""} ${i??""}`,children:f})]})});p1.displayName="InputFloatingInner";const HE="_label_oblon_4",WE="_disabled_oblon_9",zE="_input_oblon_15",GE="_error_oblon_43",Tt={"container-large":"_container-large_oblon_1",label:HE,disabled:WE,"container-input":"_container-input_oblon_12",input:zE,error:GE,"isset-right-icon":"_isset-right-icon_oblon_52","isset-left-icon":"_isset-left-icon_oblon_56","start-icon":"_start-icon_oblon_60","end-icon":"_end-icon_oblon_63","label-error":"_label-error_oblon_66","container-medium":"_container-medium_oblon_75","container-small":"_container-small_oblon_149"},Tf=w.forwardRef((e,t)=>{const{isRequired:n,classNameContainer:r,className:i,classNameLabel:o,classNameLabelError:a,name:s,id:l,label:u,type:c="text",startIcon:d,endIcon:h,error:f,sizeInput:g="large",...m}=e,b={size:{large:Tt["container-large"],medium:Tt["container-medium"],small:Tt["container-small"]}},y=()=>typeof d=="function"||w.isValidElement(d),v=()=>typeof h=="function"||w.isValidElement(h);return E.jsxs("div",{className:`${b.size[g]} ${r??""}`,children:[u&&E.jsxs("label",{htmlFor:l??s,className:`${Tt.label} ${m.disabled?Tt.disabled:""} ${o??""}`,children:[u," ",n&&E.jsx("span",{className:"1ru-text-laba-red-08",children:"*"})]}),E.jsxs("div",{className:`${Tt["container-input"]}`,children:[E.jsxs("div",{className:Tt["start-icon"],children:[typeof d=="function"&&d(),w.isValidElement(d)&&d]}),E.jsx("input",{id:l??s,className:`${Tt.input} ${f?Tt.error:""}
20
+ ${m.disabled?Pt.disabled:""} ${i??""}`,children:f})]})});p1.displayName="InputFloatingInner";const jE="_label_oblon_4",WE="_disabled_oblon_9",zE="_input_oblon_15",GE="_error_oblon_43",Tt={"container-large":"_container-large_oblon_1",label:jE,disabled:WE,"container-input":"_container-input_oblon_12",input:zE,error:GE,"isset-right-icon":"_isset-right-icon_oblon_52","isset-left-icon":"_isset-left-icon_oblon_56","start-icon":"_start-icon_oblon_60","end-icon":"_end-icon_oblon_63","label-error":"_label-error_oblon_66","container-medium":"_container-medium_oblon_75","container-small":"_container-small_oblon_149"},Tf=w.forwardRef((e,t)=>{const{isRequired:n,classNameContainer:r,className:i,classNameLabel:o,classNameLabelError:a,name:s,id:l,label:u,type:c="text",startIcon:d,endIcon:h,error:f,sizeInput:g="large",...m}=e,b={size:{large:Tt["container-large"],medium:Tt["container-medium"],small:Tt["container-small"]}},y=()=>typeof d=="function"||w.isValidElement(d),v=()=>typeof h=="function"||w.isValidElement(h);return E.jsxs("div",{className:`${b.size[g]} ${r??""}`,children:[u&&E.jsxs("label",{htmlFor:l??s,className:`${Tt.label} ${m.disabled?Tt.disabled:""} ${o??""}`,children:[u," ",n&&E.jsx("span",{className:"1ru-text-laba-red-08",children:"*"})]}),E.jsxs("div",{className:`${Tt["container-input"]}`,children:[E.jsxs("div",{className:Tt["start-icon"],children:[typeof d=="function"&&d(),w.isValidElement(d)&&d]}),E.jsx("input",{id:l??s,className:`${Tt.input} ${f?Tt.error:""}
21
21
  ${y()?Tt["isset-left-icon"]:""}
22
22
  ${v()?Tt["isset-right-icon"]:""}
23
23
  ${i??""}`,ref:t,type:c,...m}),E.jsxs("div",{className:Tt["end-icon"],children:[typeof h=="function"&&h(),w.isValidElement(h)&&h]})]}),f&&E.jsx("label",{className:`${Tt["label-error"]}
@@ -33,7 +33,7 @@
33
33
  */function ZE(){return{accessor:(e,t)=>typeof e=="function"?{...t,accessorFn:e}:{...t,accessorKey:e},display:e=>e,group:e=>e}}function sr(e,t){return typeof e=="function"?e(t):e}function XE(){}function Nt(e,t){return n=>{t.setState(r=>({...r,[e]:sr(n,r[e])}))}}function Ja(e){return e instanceof Function}function b1(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function kf(e,t){const n=[],r=i=>{i.forEach(o=>{n.push(o);const a=t(o);a!=null&&a.length&&r(a)})};return r(e),n}function oe(e,t,n){let r=[],i;return o=>{let a;n.key&&n.debug&&(a=Date.now());const s=e(o);if(!(s.length!==r.length||s.some((c,d)=>r[d]!==c)))return i;r=s;let u;if(n.key&&n.debug&&(u=Date.now()),i=t(...s),n==null||n.onChange==null||n.onChange(i),n.key&&n.debug&&n!=null&&n.debug()){const c=Math.round((Date.now()-a)*100)/100,d=Math.round((Date.now()-u)*100)/100,h=d/16,f=(g,m)=>{for(g=String(g);g.length<m;)g=" "+g;return g};console.info(`%c⏱ ${f(d,5)} /${f(c,5)} ms`,`
34
34
  font-size: .6rem;
35
35
  font-weight: bold;
36
- color: hsl(${Math.max(0,Math.min(120-120*h,120))}deg 100% 31%);`,n==null?void 0:n.key)}return i}}function ae(e,t,n,r){return{debug:()=>{var i;return(i=e==null?void 0:e.debugAll)!=null?i:e[t]},key:process.env.NODE_ENV==="development"&&n,onChange:r}}function v1(e,t,n,r){const i=()=>{var a;return(a=o.getValue())!=null?a:e.options.renderFallbackValue},o={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:i,getContext:oe(()=>[e,n,t,o],(a,s,l,u)=>({table:a,column:s,row:l,cell:u,getValue:u.getValue,renderValue:u.renderValue}),ae(e.options,"debugCells","cell.getContext"))};return e._features.forEach(a=>{a.createCell==null||a.createCell(o,n,t,e)},{}),o}function y1(e,t,n,r){var i,o;const s={...e._getDefaultColumnDef(),...t},l=s.accessorKey;let u=(i=(o=s.id)!=null?o:l?l.replace(".","_"):void 0)!=null?i:typeof s.header=="string"?s.header:void 0,c;if(s.accessorFn?c=s.accessorFn:l&&(l.includes(".")?c=h=>{let f=h;for(const m of l.split(".")){var g;f=(g=f)==null?void 0:g[m],process.env.NODE_ENV!=="production"&&f===void 0&&console.warn(`"${m}" in deeply nested key "${l}" returned undefined.`)}return f}:c=h=>h[s.accessorKey]),!u)throw process.env.NODE_ENV!=="production"?new Error(s.accessorFn?"Columns require an id when using an accessorFn":"Columns require an id when using a non-string header"):new Error;let d={id:`${String(u)}`,accessorFn:c,parent:r,depth:n,columnDef:s,columns:[],getFlatColumns:oe(()=>[!0],()=>{var h;return[d,...(h=d.columns)==null?void 0:h.flatMap(f=>f.getFlatColumns())]},ae(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:oe(()=>[e._getOrderColumnsFn()],h=>{var f;if((f=d.columns)!=null&&f.length){let g=d.columns.flatMap(m=>m.getLeafColumns());return h(g)}return[d]},ae(e.options,"debugColumns","column.getLeafColumns"))};for(const h of e._features)h.createColumn==null||h.createColumn(d,e);return d}const pt="debugHeaders";function Yg(e,t,n){var r;let o={id:(r=n.id)!=null?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const a=[],s=l=>{l.subHeaders&&l.subHeaders.length&&l.subHeaders.map(s),a.push(l)};return s(o),a},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach(a=>{a.createHeader==null||a.createHeader(o,e)}),o}const x1={createTable:e=>{e.getHeaderGroups=oe(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>{var o,a;const s=(o=r==null?void 0:r.map(d=>n.find(h=>h.id===d)).filter(Boolean))!=null?o:[],l=(a=i==null?void 0:i.map(d=>n.find(h=>h.id===d)).filter(Boolean))!=null?a:[],u=n.filter(d=>!(r!=null&&r.includes(d.id))&&!(i!=null&&i.includes(d.id)));return No(t,[...s,...u,...l],e)},ae(e.options,pt,"getHeaderGroups")),e.getCenterHeaderGroups=oe(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>(n=n.filter(o=>!(r!=null&&r.includes(o.id))&&!(i!=null&&i.includes(o.id))),No(t,n,e,"center")),ae(e.options,pt,"getCenterHeaderGroups")),e.getLeftHeaderGroups=oe(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var i;const o=(i=r==null?void 0:r.map(a=>n.find(s=>s.id===a)).filter(Boolean))!=null?i:[];return No(t,o,e,"left")},ae(e.options,pt,"getLeftHeaderGroups")),e.getRightHeaderGroups=oe(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var i;const o=(i=r==null?void 0:r.map(a=>n.find(s=>s.id===a)).filter(Boolean))!=null?i:[];return No(t,o,e,"right")},ae(e.options,pt,"getRightHeaderGroups")),e.getFooterGroups=oe(()=>[e.getHeaderGroups()],t=>[...t].reverse(),ae(e.options,pt,"getFooterGroups")),e.getLeftFooterGroups=oe(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),ae(e.options,pt,"getLeftFooterGroups")),e.getCenterFooterGroups=oe(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),ae(e.options,pt,"getCenterFooterGroups")),e.getRightFooterGroups=oe(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),ae(e.options,pt,"getRightFooterGroups")),e.getFlatHeaders=oe(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),ae(e.options,pt,"getFlatHeaders")),e.getLeftFlatHeaders=oe(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),ae(e.options,pt,"getLeftFlatHeaders")),e.getCenterFlatHeaders=oe(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),ae(e.options,pt,"getCenterFlatHeaders")),e.getRightFlatHeaders=oe(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),ae(e.options,pt,"getRightFlatHeaders")),e.getCenterLeafHeaders=oe(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),ae(e.options,pt,"getCenterLeafHeaders")),e.getLeftLeafHeaders=oe(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),ae(e.options,pt,"getLeftLeafHeaders")),e.getRightLeafHeaders=oe(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),ae(e.options,pt,"getRightLeafHeaders")),e.getLeafHeaders=oe(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,n,r)=>{var i,o,a,s,l,u;return[...(i=(o=t[0])==null?void 0:o.headers)!=null?i:[],...(a=(s=n[0])==null?void 0:s.headers)!=null?a:[],...(l=(u=r[0])==null?void 0:u.headers)!=null?l:[]].map(c=>c.getLeafHeaders()).flat()},ae(e.options,pt,"getLeafHeaders"))}};function No(e,t,n,r){var i,o;let a=0;const s=function(h,f){f===void 0&&(f=1),a=Math.max(a,f),h.filter(g=>g.getIsVisible()).forEach(g=>{var m;(m=g.columns)!=null&&m.length&&s(g.columns,f+1)},0)};s(e);let l=[];const u=(h,f)=>{const g={depth:f,id:[r,`${f}`].filter(Boolean).join("_"),headers:[]},m=[];h.forEach(b=>{const y=[...m].reverse()[0],v=b.column.depth===g.depth;let x,C=!1;if(v&&b.column.parent?x=b.column.parent:(x=b.column,C=!0),y&&(y==null?void 0:y.column)===x)y.subHeaders.push(b);else{const D=Yg(n,x,{id:[r,f,x.id,b==null?void 0:b.id].filter(Boolean).join("_"),isPlaceholder:C,placeholderId:C?`${m.filter(I=>I.column===x).length}`:void 0,depth:f,index:m.length});D.subHeaders.push(b),m.push(D)}g.headers.push(b),b.headerGroup=g}),l.push(g),f>0&&u(m,f-1)},c=t.map((h,f)=>Yg(n,h,{depth:a,index:f}));u(c,a-1),l.reverse();const d=h=>h.filter(g=>g.column.getIsVisible()).map(g=>{let m=0,b=0,y=[0];g.subHeaders&&g.subHeaders.length?(y=[],d(g.subHeaders).forEach(x=>{let{colSpan:C,rowSpan:D}=x;m+=C,y.push(D)})):m=1;const v=Math.min(...y);return b=b+v,g.colSpan=m,g.rowSpan=b,{colSpan:m,rowSpan:b}});return d((i=(o=l[0])==null?void 0:o.headers)!=null?i:[]),l}const Ka=(e,t,n,r,i,o,a)=>{let s={id:t,index:r,original:n,depth:i,parentId:a,_valuesCache:{},_uniqueValuesCache:{},getValue:l=>{if(s._valuesCache.hasOwnProperty(l))return s._valuesCache[l];const u=e.getColumn(l);if(u!=null&&u.accessorFn)return s._valuesCache[l]=u.accessorFn(s.original,r),s._valuesCache[l]},getUniqueValues:l=>{if(s._uniqueValuesCache.hasOwnProperty(l))return s._uniqueValuesCache[l];const u=e.getColumn(l);if(u!=null&&u.accessorFn)return u.columnDef.getUniqueValues?(s._uniqueValuesCache[l]=u.columnDef.getUniqueValues(s.original,r),s._uniqueValuesCache[l]):(s._uniqueValuesCache[l]=[s.getValue(l)],s._uniqueValuesCache[l])},renderValue:l=>{var u;return(u=s.getValue(l))!=null?u:e.options.renderFallbackValue},subRows:o??[],getLeafRows:()=>kf(s.subRows,l=>l.subRows),getParentRow:()=>s.parentId?e.getRow(s.parentId,!0):void 0,getParentRows:()=>{let l=[],u=s;for(;;){const c=u.getParentRow();if(!c)break;l.push(c),u=c}return l.reverse()},getAllCells:oe(()=>[e.getAllLeafColumns()],l=>l.map(u=>v1(e,s,u,u.id)),ae(e.options,"debugRows","getAllCells")),_getAllCellsByColumnId:oe(()=>[s.getAllCells()],l=>l.reduce((u,c)=>(u[c.column.id]=c,u),{}),ae(e.options,"debugRows","getAllCellsByColumnId"))};for(let l=0;l<e._features.length;l++){const u=e._features[l];u==null||u.createRow==null||u.createRow(s,e)}return s},C1={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},w1=(e,t,n)=>{var r;const i=n.toLowerCase();return!!(!((r=e.getValue(t))==null||(r=r.toString())==null||(r=r.toLowerCase())==null)&&r.includes(i))};w1.autoRemove=e=>xn(e);const D1=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};D1.autoRemove=e=>xn(e);const S1=(e,t,n)=>{var r;return((r=e.getValue(t))==null||(r=r.toString())==null?void 0:r.toLowerCase())===(n==null?void 0:n.toLowerCase())};S1.autoRemove=e=>xn(e);const E1=(e,t,n)=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(n)};E1.autoRemove=e=>xn(e)||!(e!=null&&e.length);const I1=(e,t,n)=>!n.some(r=>{var i;return!((i=e.getValue(t))!=null&&i.includes(r))});I1.autoRemove=e=>xn(e)||!(e!=null&&e.length);const _1=(e,t,n)=>n.some(r=>{var i;return(i=e.getValue(t))==null?void 0:i.includes(r)});_1.autoRemove=e=>xn(e)||!(e!=null&&e.length);const $1=(e,t,n)=>e.getValue(t)===n;$1.autoRemove=e=>xn(e);const R1=(e,t,n)=>e.getValue(t)==n;R1.autoRemove=e=>xn(e);const Mf=(e,t,n)=>{let[r,i]=n;const o=e.getValue(t);return o>=r&&o<=i};Mf.resolveFilterValue=e=>{let[t,n]=e,r=typeof t!="number"?parseFloat(t):t,i=typeof n!="number"?parseFloat(n):n,o=t===null||Number.isNaN(r)?-1/0:r,a=n===null||Number.isNaN(i)?1/0:i;if(o>a){const s=o;o=a,a=s}return[o,a]};Mf.autoRemove=e=>xn(e)||xn(e[0])&&xn(e[1]);const kn={includesString:w1,includesStringSensitive:D1,equalsString:S1,arrIncludes:E1,arrIncludesAll:I1,arrIncludesSome:_1,equals:$1,weakEquals:R1,inNumberRange:Mf};function xn(e){return e==null||e===""}const A1={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:Nt("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);return typeof r=="string"?kn.includesString:typeof r=="number"?kn.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?kn.equals:Array.isArray(r)?kn.arrIncludes:kn.weakEquals},e.getFilterFn=()=>{var n,r;return Ja(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(n=(r=t.options.filterFns)==null?void 0:r[e.columnDef.filterFn])!=null?n:kn[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,i;return((n=e.columnDef.enableColumnFilter)!=null?n:!0)&&((r=t.options.enableColumnFilters)!=null?r:!0)&&((i=t.options.enableFilters)!=null?i:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return(n=t.getState().columnFilters)==null||(n=n.find(r=>r.id===e.id))==null?void 0:n.value},e.getFilterIndex=()=>{var n,r;return(n=(r=t.getState().columnFilters)==null?void 0:r.findIndex(i=>i.id===e.id))!=null?n:-1},e.setFilterValue=n=>{t.setColumnFilters(r=>{const i=e.getFilterFn(),o=r==null?void 0:r.find(c=>c.id===e.id),a=sr(n,o?o.value:void 0);if(pd(i,a,e)){var s;return(s=r==null?void 0:r.filter(c=>c.id!==e.id))!=null?s:[]}const l={id:e.id,value:a};if(o){var u;return(u=r==null?void 0:r.map(c=>c.id===e.id?l:c))!=null?u:[]}return r!=null&&r.length?[...r,l]:[l]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns(),r=i=>{var o;return(o=sr(t,i))==null?void 0:o.filter(a=>{const s=n.find(l=>l.id===a.id);if(s){const l=s.getFilterFn();if(pd(l,a.value,s))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(r)},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:(n=(r=e.initialState)==null?void 0:r.columnFilters)!=null?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function pd(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const YE=(e,t,n)=>n.reduce((r,i)=>{const o=i.getValue(e);return r+(typeof o=="number"?o:0)},0),UE=(e,t,n)=>{let r;return n.forEach(i=>{const o=i.getValue(e);o!=null&&(r>o||r===void 0&&o>=o)&&(r=o)}),r},JE=(e,t,n)=>{let r;return n.forEach(i=>{const o=i.getValue(e);o!=null&&(r<o||r===void 0&&o>=o)&&(r=o)}),r},KE=(e,t,n)=>{let r,i;return n.forEach(o=>{const a=o.getValue(e);a!=null&&(r===void 0?a>=a&&(r=i=a):(r>a&&(r=a),i<a&&(i=a)))}),[r,i]},qE=(e,t)=>{let n=0,r=0;if(t.forEach(i=>{let o=i.getValue(e);o!=null&&(o=+o)>=o&&(++n,r+=o)}),n)return r/n},QE=(e,t)=>{if(!t.length)return;const n=t.map(o=>o.getValue(e));if(!b1(n))return;if(n.length===1)return n[0];const r=Math.floor(n.length/2),i=n.sort((o,a)=>o-a);return n.length%2!==0?i[r]:(i[r-1]+i[r])/2},eI=(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),tI=(e,t)=>new Set(t.map(n=>n.getValue(e))).size,nI=(e,t)=>t.length,el={sum:YE,min:UE,max:JE,extent:KE,mean:qE,median:QE,unique:eI,uniqueCount:tI,count:nI},F1={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return(t=(n=e.getValue())==null||n.toString==null?void 0:n.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:Nt("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(n=>n!=null&&n.includes(e.id)?n.filter(r=>r!==e.id):[...n??[],e.id])},e.getCanGroup=()=>{var n,r;return((n=e.columnDef.enableGrouping)!=null?n:!0)&&((r=t.options.enableGrouping)!=null?r:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const n=e.getCanGroup();return()=>{n&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);if(typeof r=="number")return el.sum;if(Object.prototype.toString.call(r)==="[object Date]")return el.extent},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return Ja(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(n=(r=t.options.aggregationFns)==null?void 0:r[e.columnDef.aggregationFn])!=null?n:el[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:(n=(r=e.initialState)==null?void 0:r.grouping)!=null?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const r=t.getColumn(n);return r!=null&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var i;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((i=n.subRows)!=null&&i.length)}}};function P1(e,t,n){if(!(t!=null&&t.length)||!n)return e;const r=e.filter(o=>!t.includes(o.id));return n==="remove"?r:[...t.map(o=>e.find(a=>a.id===o)).filter(Boolean),...r]}const T1={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Nt("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=oe(n=>[eo(t,n)],n=>n.findIndex(r=>r.id===e.id),ae(t.options,"debugColumns","getIndex")),e.getIsFirstColumn=n=>{var r;return((r=eo(t,n)[0])==null?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const i=eo(t,n);return((r=i[i.length-1])==null?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:(n=e.initialState.columnOrder)!=null?n:[])},e._getOrderColumnsFn=oe(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,n,r)=>i=>{let o=[];if(!(t!=null&&t.length))o=i;else{const a=[...t],s=[...i];for(;s.length&&a.length;){const l=a.shift(),u=s.findIndex(c=>c.id===l);u>-1&&o.push(s.splice(u,1)[0])}o=[...o,...s]}return P1(o,n,r)},ae(e.options,"debugTable","_getOrderColumnsFn"))}},ec=()=>({left:[],right:[]}),k1={getInitialState:e=>({columnPinning:ec(),...e}),getDefaultOptions:e=>({onColumnPinningChange:Nt("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map(i=>i.id).filter(Boolean);t.setColumnPinning(i=>{var o,a;if(n==="right"){var s,l;return{left:((s=i==null?void 0:i.left)!=null?s:[]).filter(d=>!(r!=null&&r.includes(d))),right:[...((l=i==null?void 0:i.right)!=null?l:[]).filter(d=>!(r!=null&&r.includes(d))),...r]}}if(n==="left"){var u,c;return{left:[...((u=i==null?void 0:i.left)!=null?u:[]).filter(d=>!(r!=null&&r.includes(d))),...r],right:((c=i==null?void 0:i.right)!=null?c:[]).filter(d=>!(r!=null&&r.includes(d)))}}return{left:((o=i==null?void 0:i.left)!=null?o:[]).filter(d=>!(r!=null&&r.includes(d))),right:((a=i==null?void 0:i.right)!=null?a:[]).filter(d=>!(r!=null&&r.includes(d)))}})},e.getCanPin=()=>e.getLeafColumns().some(r=>{var i,o,a;return((i=r.columnDef.enablePinning)!=null?i:!0)&&((o=(a=t.options.enableColumnPinning)!=null?a:t.options.enablePinning)!=null?o:!0)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(s=>s.id),{left:r,right:i}=t.getState().columnPinning,o=n.some(s=>r==null?void 0:r.includes(s)),a=n.some(s=>i==null?void 0:i.includes(s));return o?"left":a?"right":!1},e.getPinnedIndex=()=>{var n,r;const i=e.getIsPinned();return i?(n=(r=t.getState().columnPinning)==null||(r=r[i])==null?void 0:r.indexOf(e.id))!=null?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=oe(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(n,r,i)=>{const o=[...r??[],...i??[]];return n.filter(a=>!o.includes(a.column.id))},ae(t.options,"debugRows","getCenterVisibleCells")),e.getLeftVisibleCells=oe(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(n,r)=>(r??[]).map(o=>n.find(a=>a.column.id===o)).filter(Boolean).map(o=>({...o,position:"left"})),ae(t.options,"debugRows","getLeftVisibleCells")),e.getRightVisibleCells=oe(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(n,r)=>(r??[]).map(o=>n.find(a=>a.column.id===o)).filter(Boolean).map(o=>({...o,position:"right"})),ae(t.options,"debugRows","getRightVisibleCells"))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?ec():(n=(r=e.initialState)==null?void 0:r.columnPinning)!=null?n:ec())},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;if(!t){var i,o;return!!((i=r.left)!=null&&i.length||(o=r.right)!=null&&o.length)}return!!((n=r[t])!=null&&n.length)},e.getLeftLeafColumns=oe(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(r=>t.find(i=>i.id===r)).filter(Boolean),ae(e.options,"debugColumns","getLeftLeafColumns")),e.getRightLeafColumns=oe(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(r=>t.find(i=>i.id===r)).filter(Boolean),ae(e.options,"debugColumns","getRightLeafColumns")),e.getCenterLeafColumns=oe(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r)=>{const i=[...n??[],...r??[]];return t.filter(o=>!i.includes(o.id))},ae(e.options,"debugColumns","getCenterLeafColumns"))}},Vo={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},tc=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),M1={getDefaultColumnDef:()=>Vo,getInitialState:e=>({columnSizing:{},columnSizingInfo:tc(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Nt("columnSizing",e),onColumnSizingInfoChange:Nt("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,i;const o=t.getState().columnSizing[e.id];return Math.min(Math.max((n=e.columnDef.minSize)!=null?n:Vo.minSize,(r=o??e.columnDef.size)!=null?r:Vo.size),(i=e.columnDef.maxSize)!=null?i:Vo.maxSize)},e.getStart=oe(n=>[n,eo(t,n),t.getState().columnSizing],(n,r)=>r.slice(0,e.getIndex(n)).reduce((i,o)=>i+o.getSize(),0),ae(t.options,"debugColumns","getStart")),e.getAfter=oe(n=>[n,eo(t,n),t.getState().columnSizing],(n,r)=>r.slice(e.getIndex(n)+1).reduce((i,o)=>i+o.getSize(),0),ae(t.options,"debugColumns","getAfter")),e.resetSize=()=>{t.setColumnSizing(n=>{let{[e.id]:r,...i}=n;return i})},e.getCanResize=()=>{var n,r;return((n=e.columnDef.enableResizing)!=null?n:!0)&&((r=t.options.enableColumnResizing)!=null?r:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let n=0;const r=i=>{if(i.subHeaders.length)i.subHeaders.forEach(r);else{var o;n+=(o=i.column.getSize())!=null?o:0}};return r(e),n},e.getStart=()=>{if(e.index>0){const n=e.headerGroup.headers[e.index-1];return n.getStart()+n.getSize()}return 0},e.getResizeHandler=n=>{const r=t.getColumn(e.column.id),i=r==null?void 0:r.getCanResize();return o=>{if(!r||!i||(o.persist==null||o.persist(),nc(o)&&o.touches&&o.touches.length>1))return;const a=e.getSize(),s=e?e.getLeafHeaders().map(y=>[y.column.id,y.column.getSize()]):[[r.id,r.getSize()]],l=nc(o)?Math.round(o.touches[0].clientX):o.clientX,u={},c=(y,v)=>{typeof v=="number"&&(t.setColumnSizingInfo(x=>{var C,D;const I=t.options.columnResizeDirection==="rtl"?-1:1,T=(v-((C=x==null?void 0:x.startOffset)!=null?C:0))*I,p=Math.max(T/((D=x==null?void 0:x.startSize)!=null?D:0),-.999999);return x.columnSizingStart.forEach(S=>{let[$,_]=S;u[$]=Math.round(Math.max(_+_*p,0)*100)/100}),{...x,deltaOffset:T,deltaPercentage:p}}),(t.options.columnResizeMode==="onChange"||y==="end")&&t.setColumnSizing(x=>({...x,...u})))},d=y=>c("move",y),h=y=>{c("end",y),t.setColumnSizingInfo(v=>({...v,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},f=n||typeof document<"u"?document:null,g={moveHandler:y=>d(y.clientX),upHandler:y=>{f==null||f.removeEventListener("mousemove",g.moveHandler),f==null||f.removeEventListener("mouseup",g.upHandler),h(y.clientX)}},m={moveHandler:y=>(y.cancelable&&(y.preventDefault(),y.stopPropagation()),d(y.touches[0].clientX),!1),upHandler:y=>{var v;f==null||f.removeEventListener("touchmove",m.moveHandler),f==null||f.removeEventListener("touchend",m.upHandler),y.cancelable&&(y.preventDefault(),y.stopPropagation()),h((v=y.touches[0])==null?void 0:v.clientX)}},b=B1()?{passive:!1}:!1;nc(o)?(f==null||f.addEventListener("touchmove",m.moveHandler,b),f==null||f.addEventListener("touchend",m.upHandler,b)):(f==null||f.addEventListener("mousemove",g.moveHandler,b),f==null||f.addEventListener("mouseup",g.upHandler,b)),t.setColumnSizingInfo(y=>({...y,startOffset:l,startSize:a,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:(n=e.initialState.columnSizing)!=null?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?tc():(n=e.initialState.columnSizingInfo)!=null?n:tc())},e.getTotalSize=()=>{var t,n;return(t=(n=e.getHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,n;return(t=(n=e.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,n;return(t=(n=e.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,n;return(t=(n=e.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0}}};let ys=null;function B1(){if(typeof ys=="boolean")return ys;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch{e=!1}return ys=e,ys}function nc(e){return e.type==="touchstart"}const O1={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Nt("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(r=>({...r,[e.id]:n??!e.getIsVisible()}))},e.getIsVisible=()=>{var n,r;const i=e.columns;return(n=i.length?i.some(o=>o.getIsVisible()):(r=t.getState().columnVisibility)==null?void 0:r[e.id])!=null?n:!0},e.getCanHide=()=>{var n,r;return((n=e.columnDef.enableHiding)!=null?n:!0)&&((r=t.options.enableHiding)!=null?r:!0)},e.getToggleVisibilityHandler=()=>n=>{e.toggleVisibility==null||e.toggleVisibility(n.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=oe(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(r=>r.column.getIsVisible()),ae(t.options,"debugRows","_getAllVisibleCells")),e.getVisibleCells=oe(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,r,i)=>[...n,...r,...i],ae(t.options,"debugRows","getVisibleCells"))},createTable:e=>{const t=(n,r)=>oe(()=>[r(),r().filter(i=>i.getIsVisible()).map(i=>i.id).join("_")],i=>i.filter(o=>o.getIsVisible==null?void 0:o.getIsVisible()),ae(e.options,"debugColumns",n));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=n=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(n),e.resetColumnVisibility=n=>{var r;e.setColumnVisibility(n?{}:(r=e.initialState.columnVisibility)!=null?r:{})},e.toggleAllColumnsVisible=n=>{var r;n=(r=n)!=null?r:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((i,o)=>({...i,[o.id]:n||!(o.getCanHide!=null&&o.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(n=>!(n.getIsVisible!=null&&n.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(n=>n.getIsVisible==null?void 0:n.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>n=>{var r;e.toggleAllColumnsVisible((r=n.target)==null?void 0:r.checked)}}};function eo(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const N1={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},V1={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:Nt("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const r=(n=e.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof r=="string"||typeof r=="number"}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,r,i,o;return((n=e.columnDef.enableGlobalFilter)!=null?n:!0)&&((r=t.options.enableGlobalFilter)!=null?r:!0)&&((i=t.options.enableFilters)!=null?i:!0)&&((o=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?o:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>kn.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return Ja(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[r])!=null?t:kn[r]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},L1={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Nt("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,i;if(!t){e._queue(()=>{t=!0});return}if((r=(i=e.options.autoResetAll)!=null?i:e.options.autoResetExpanded)!=null?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=r=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(r),e.toggleAllRowsExpanded=r=>{r??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=r=>{var i,o;e.setExpanded(r?{}:(i=(o=e.initialState)==null?void 0:o.expanded)!=null?i:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(r=>r.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>r=>{r.persist==null||r.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const r=e.getState().expanded;return r===!0||Object.values(r).some(Boolean)},e.getIsAllRowsExpanded=()=>{const r=e.getState().expanded;return typeof r=="boolean"?r===!0:!(!Object.keys(r).length||e.getRowModel().flatRows.some(i=>!i.getIsExpanded()))},e.getExpandedDepth=()=>{let r=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(o=>{const a=o.split(".");r=Math.max(r,a.length)}),r},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(r=>{var i;const o=r===!0?!0:!!(r!=null&&r[e.id]);let a={};if(r===!0?Object.keys(t.getRowModel().rowsById).forEach(s=>{a[s]=!0}):a=r,n=(i=n)!=null?i:!o,!o&&n)return{...a,[e.id]:!0};if(o&&!n){const{[e.id]:s,...l}=a;return l}return r})},e.getIsExpanded=()=>{var n;const r=t.getState().expanded;return!!((n=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?n:r===!0||r!=null&&r[e.id])},e.getCanExpand=()=>{var n,r,i;return(n=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?n:((r=t.options.enableExpanding)!=null?r:!0)&&!!((i=e.subRows)!=null&&i.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const n=e.getCanExpand();return()=>{n&&e.toggleExpanded()}}}},bd=0,vd=10,rc=()=>({pageIndex:bd,pageSize:vd}),j1={getInitialState:e=>({...e,pagination:{...rc(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:Nt("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,i;if(!t){e._queue(()=>{t=!0});return}if((r=(i=e.options.autoResetAll)!=null?i:e.options.autoResetPageIndex)!=null?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=r=>{const i=o=>sr(r,o);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(i)},e.resetPagination=r=>{var i;e.setPagination(r?rc():(i=e.initialState.pagination)!=null?i:rc())},e.setPageIndex=r=>{e.setPagination(i=>{let o=sr(r,i.pageIndex);const a=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return o=Math.max(0,Math.min(o,a)),{...i,pageIndex:o}})},e.resetPageIndex=r=>{var i,o;e.setPageIndex(r?bd:(i=(o=e.initialState)==null||(o=o.pagination)==null?void 0:o.pageIndex)!=null?i:bd)},e.resetPageSize=r=>{var i,o;e.setPageSize(r?vd:(i=(o=e.initialState)==null||(o=o.pagination)==null?void 0:o.pageSize)!=null?i:vd)},e.setPageSize=r=>{e.setPagination(i=>{const o=Math.max(1,sr(r,i.pageSize)),a=i.pageSize*i.pageIndex,s=Math.floor(a/o);return{...i,pageIndex:s,pageSize:o}})},e.setPageCount=r=>e.setPagination(i=>{var o;let a=sr(r,(o=e.options.pageCount)!=null?o:-1);return typeof a=="number"&&(a=Math.max(-1,a)),{...i,pageCount:a}}),e.getPageOptions=oe(()=>[e.getPageCount()],r=>{let i=[];return r&&r>0&&(i=[...new Array(r)].fill(null).map((o,a)=>a)),i},ae(e.options,"debugTable","getPageOptions")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:r}=e.getState().pagination,i=e.getPageCount();return i===-1?!0:i===0?!1:r<i-1},e.previousPage=()=>e.setPageIndex(r=>r-1),e.nextPage=()=>e.setPageIndex(r=>r+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var r;return(r=e.options.pageCount)!=null?r:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var r;return(r=e.options.rowCount)!=null?r:e.getPrePaginationRowModel().rows.length}}},ic=()=>({top:[],bottom:[]}),H1={getInitialState:e=>({rowPinning:ic(),...e}),getDefaultOptions:e=>({onRowPinningChange:Nt("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,r,i)=>{const o=r?e.getLeafRows().map(l=>{let{id:u}=l;return u}):[],a=i?e.getParentRows().map(l=>{let{id:u}=l;return u}):[],s=new Set([...a,e.id,...o]);t.setRowPinning(l=>{var u,c;if(n==="bottom"){var d,h;return{top:((d=l==null?void 0:l.top)!=null?d:[]).filter(m=>!(s!=null&&s.has(m))),bottom:[...((h=l==null?void 0:l.bottom)!=null?h:[]).filter(m=>!(s!=null&&s.has(m))),...Array.from(s)]}}if(n==="top"){var f,g;return{top:[...((f=l==null?void 0:l.top)!=null?f:[]).filter(m=>!(s!=null&&s.has(m))),...Array.from(s)],bottom:((g=l==null?void 0:l.bottom)!=null?g:[]).filter(m=>!(s!=null&&s.has(m)))}}return{top:((u=l==null?void 0:l.top)!=null?u:[]).filter(m=>!(s!=null&&s.has(m))),bottom:((c=l==null?void 0:l.bottom)!=null?c:[]).filter(m=>!(s!=null&&s.has(m)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:i}=t.options;return typeof r=="function"?r(e):(n=r??i)!=null?n:!0},e.getIsPinned=()=>{const n=[e.id],{top:r,bottom:i}=t.getState().rowPinning,o=n.some(s=>r==null?void 0:r.includes(s)),a=n.some(s=>i==null?void 0:i.includes(s));return o?"top":a?"bottom":!1},e.getPinnedIndex=()=>{var n,r;const i=e.getIsPinned();if(!i)return-1;const o=(n=i==="top"?t.getTopRows():t.getBottomRows())==null?void 0:n.map(a=>{let{id:s}=a;return s});return(r=o==null?void 0:o.indexOf(e.id))!=null?r:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?ic():(n=(r=e.initialState)==null?void 0:r.rowPinning)!=null?n:ic())},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;if(!t){var i,o;return!!((i=r.top)!=null&&i.length||(o=r.bottom)!=null&&o.length)}return!!((n=r[t])!=null&&n.length)},e._getPinnedRows=(t,n,r)=>{var i;return((i=e.options.keepPinnedRows)==null||i?(n??[]).map(a=>{const s=e.getRow(a,!0);return s.getIsAllParentsExpanded()?s:null}):(n??[]).map(a=>t.find(s=>s.id===a))).filter(Boolean).map(a=>({...a,position:r}))},e.getTopRows=oe(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),ae(e.options,"debugRows","getTopRows")),e.getBottomRows=oe(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),ae(e.options,"debugRows","getBottomRows")),e.getCenterRows=oe(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,n,r)=>{const i=new Set([...n??[],...r??[]]);return t.filter(o=>!i.has(o.id))},ae(e.options,"debugRows","getCenterRows"))}},W1={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Nt("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:(n=e.initialState.rowSelection)!=null?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const r={...n},i=e.getPreGroupedRowModel().flatRows;return t?i.forEach(o=>{o.getCanSelect()&&(r[o.id]=!0)}):i.forEach(o=>{delete r[o.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const r=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),i={...n};return e.getRowModel().rows.forEach(o=>{yd(i,o.id,r,!0,e)}),i}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=oe(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?tl(e,n):{rows:[],flatRows:[],rowsById:{}},ae(e.options,"debugTable","getSelectedRowModel")),e.getFilteredSelectedRowModel=oe(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?tl(e,n):{rows:[],flatRows:[],rowsById:{}},ae(e.options,"debugTable","getFilteredSelectedRowModel")),e.getGroupedSelectedRowModel=oe(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?tl(e,n):{rows:[],flatRows:[],rowsById:{}},ae(e.options,"debugTable","getGroupedSelectedRowModel")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=!!(t.length&&Object.keys(n).length);return r&&t.some(i=>i.getCanSelect()&&!n[i.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(i=>i.getCanSelect()),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some(i=>!n[i.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{const i=e.getIsSelected();t.setRowSelection(o=>{var a;if(n=typeof n<"u"?n:!i,e.getCanSelect()&&i===n)return o;const s={...o};return yd(s,e.id,n,(a=r==null?void 0:r.selectChildren)!=null?a:!0,t),s})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return bu(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return Rl(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return Rl(e,n)==="all"},e.getCanSelect=()=>{var n;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(n=t.options.enableRowSelection)!=null?n:!0},e.getCanSelectSubRows=()=>{var n;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(n=t.options.enableSubRowSelection)!=null?n:!0},e.getCanMultiSelect=()=>{var n;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(n=t.options.enableMultiRowSelection)!=null?n:!0},e.getToggleSelectedHandler=()=>{const n=e.getCanSelect();return r=>{var i;n&&e.toggleSelected((i=r.target)==null?void 0:i.checked)}}}},yd=(e,t,n,r,i)=>{var o;const a=i.getRow(t,!0);n?(a.getCanMultiSelect()||Object.keys(e).forEach(s=>delete e[s]),a.getCanSelect()&&(e[t]=!0)):delete e[t],r&&(o=a.subRows)!=null&&o.length&&a.getCanSelectSubRows()&&a.subRows.forEach(s=>yd(e,s.id,n,r,i))};function tl(e,t){const n=e.getState().rowSelection,r=[],i={},o=function(a,s){return a.map(l=>{var u;const c=bu(l,n);if(c&&(r.push(l),i[l.id]=l),(u=l.subRows)!=null&&u.length&&(l={...l,subRows:o(l.subRows)}),c)return l}).filter(Boolean)};return{rows:o(t.rows),flatRows:r,rowsById:i}}function bu(e,t){var n;return(n=t[e.id])!=null?n:!1}function Rl(e,t,n){var r;if(!((r=e.subRows)!=null&&r.length))return!1;let i=!0,o=!1;return e.subRows.forEach(a=>{if(!(o&&!i)&&(a.getCanSelect()&&(bu(a,t)?o=!0:i=!1),a.subRows&&a.subRows.length)){const s=Rl(a,t);s==="all"?o=!0:(s==="some"&&(o=!0),i=!1)}}),i?"all":o?"some":!1}const Al=/([0-9]+)/gm,rI=(e,t,n)=>z1(Vr(e.getValue(n)).toLowerCase(),Vr(t.getValue(n)).toLowerCase()),iI=(e,t,n)=>z1(Vr(e.getValue(n)),Vr(t.getValue(n))),oI=(e,t,n)=>Bf(Vr(e.getValue(n)).toLowerCase(),Vr(t.getValue(n)).toLowerCase()),aI=(e,t,n)=>Bf(Vr(e.getValue(n)),Vr(t.getValue(n))),sI=(e,t,n)=>{const r=e.getValue(n),i=t.getValue(n);return r>i?1:r<i?-1:0},lI=(e,t,n)=>Bf(e.getValue(n),t.getValue(n));function Bf(e,t){return e===t?0:e>t?1:-1}function Vr(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function z1(e,t){const n=e.split(Al).filter(Boolean),r=t.split(Al).filter(Boolean);for(;n.length&&r.length;){const i=n.shift(),o=r.shift(),a=parseInt(i,10),s=parseInt(o,10),l=[a,s].sort();if(isNaN(l[0])){if(i>o)return 1;if(o>i)return-1;continue}if(isNaN(l[1]))return isNaN(a)?-1:1;if(a>s)return 1;if(s>a)return-1}return n.length-r.length}const Yi={alphanumeric:rI,alphanumericCaseSensitive:iI,text:oI,textCaseSensitive:aI,datetime:sI,basic:lI},G1={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Nt("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const i of n){const o=i==null?void 0:i.getValue(e.id);if(Object.prototype.toString.call(o)==="[object Date]")return Yi.datetime;if(typeof o=="string"&&(r=!0,o.split(Al).length>1))return Yi.alphanumeric}return r?Yi.text:Yi.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return typeof(n==null?void 0:n.getValue(e.id))=="string"?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return Ja(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(n=(r=t.options.sortingFns)==null?void 0:r[e.columnDef.sortingFn])!=null?n:Yi[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const i=e.getNextSortingOrder(),o=typeof n<"u"&&n!==null;t.setSorting(a=>{const s=a==null?void 0:a.find(f=>f.id===e.id),l=a==null?void 0:a.findIndex(f=>f.id===e.id);let u=[],c,d=o?n:i==="desc";if(a!=null&&a.length&&e.getCanMultiSort()&&r?s?c="toggle":c="add":a!=null&&a.length&&l!==a.length-1?c="replace":s?c="toggle":c="replace",c==="toggle"&&(o||i||(c="remove")),c==="add"){var h;u=[...a,{id:e.id,desc:d}],u.splice(0,u.length-((h=t.options.maxMultiSortColCount)!=null?h:Number.MAX_SAFE_INTEGER))}else c==="toggle"?u=a.map(f=>f.id===e.id?{...f,desc:d}:f):c==="remove"?u=a.filter(f=>f.id!==e.id):u=[{id:e.id,desc:d}];return u})},e.getFirstSortDir=()=>{var n,r;return((n=(r=e.columnDef.sortDescFirst)!=null?r:t.options.sortDescFirst)!=null?n:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=n=>{var r,i;const o=e.getFirstSortDir(),a=e.getIsSorted();return a?a!==o&&((r=t.options.enableSortingRemoval)==null||r)&&(!(n&&(i=t.options.enableMultiRemove)!=null)||i)?!1:a==="desc"?"asc":"desc":o},e.getCanSort=()=>{var n,r;return((n=e.columnDef.enableSorting)!=null?n:!0)&&((r=t.options.enableSorting)!=null?r:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return(n=(r=e.columnDef.enableMultiSort)!=null?r:t.options.enableMultiSort)!=null?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const r=(n=t.getState().sorting)==null?void 0:n.find(i=>i.id===e.id);return r?r.desc?"desc":"asc":!1},e.getSortIndex=()=>{var n,r;return(n=(r=t.getState().sorting)==null?void 0:r.findIndex(i=>i.id===e.id))!=null?n:-1},e.clearSorting=()=>{t.setSorting(n=>n!=null&&n.length?n.filter(r=>r.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return r=>{n&&(r.persist==null||r.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(r):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:(n=(r=e.initialState)==null?void 0:r.sorting)!=null?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},uI=[x1,O1,T1,k1,C1,A1,N1,V1,G1,F1,L1,j1,H1,W1,M1];function Z1(e){var t,n;process.env.NODE_ENV!=="production"&&(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");const r=[...uI,...(t=e._features)!=null?t:[]];let i={_features:r};const o=i._features.reduce((h,f)=>Object.assign(h,f.getDefaultOptions==null?void 0:f.getDefaultOptions(i)),{}),a=h=>i.options.mergeOptions?i.options.mergeOptions(o,h):{...o,...h};let l={...{},...(n=e.initialState)!=null?n:{}};i._features.forEach(h=>{var f;l=(f=h.getInitialState==null?void 0:h.getInitialState(l))!=null?f:l});const u=[];let c=!1;const d={_features:r,options:{...o,...e},initialState:l,_queue:h=>{u.push(h),c||(c=!0,Promise.resolve().then(()=>{for(;u.length;)u.shift()();c=!1}).catch(f=>setTimeout(()=>{throw f})))},reset:()=>{i.setState(i.initialState)},setOptions:h=>{const f=sr(h,i.options);i.options=a(f)},getState:()=>i.options.state,setState:h=>{i.options.onStateChange==null||i.options.onStateChange(h)},_getRowId:(h,f,g)=>{var m;return(m=i.options.getRowId==null?void 0:i.options.getRowId(h,f,g))!=null?m:`${g?[g.id,f].join("."):f}`},getCoreRowModel:()=>(i._getCoreRowModel||(i._getCoreRowModel=i.options.getCoreRowModel(i)),i._getCoreRowModel()),getRowModel:()=>i.getPaginationRowModel(),getRow:(h,f)=>{let g=(f?i.getPrePaginationRowModel():i.getRowModel()).rowsById[h];if(!g&&(g=i.getCoreRowModel().rowsById[h],!g))throw process.env.NODE_ENV!=="production"?new Error(`getRow could not find row with ID: ${h}`):new Error;return g},_getDefaultColumnDef:oe(()=>[i.options.defaultColumn],h=>{var f;return h=(f=h)!=null?f:{},{header:g=>{const m=g.header.column.columnDef;return m.accessorKey?m.accessorKey:m.accessorFn?m.id:null},cell:g=>{var m,b;return(m=(b=g.renderValue())==null||b.toString==null?void 0:b.toString())!=null?m:null},...i._features.reduce((g,m)=>Object.assign(g,m.getDefaultColumnDef==null?void 0:m.getDefaultColumnDef()),{}),...h}},ae(e,"debugColumns","_getDefaultColumnDef")),_getColumnDefs:()=>i.options.columns,getAllColumns:oe(()=>[i._getColumnDefs()],h=>{const f=function(g,m,b){return b===void 0&&(b=0),g.map(y=>{const v=y1(i,y,b,m),x=y;return v.columns=x.columns?f(x.columns,v,b+1):[],v})};return f(h)},ae(e,"debugColumns","getAllColumns")),getAllFlatColumns:oe(()=>[i.getAllColumns()],h=>h.flatMap(f=>f.getFlatColumns()),ae(e,"debugColumns","getAllFlatColumns")),_getAllFlatColumnsById:oe(()=>[i.getAllFlatColumns()],h=>h.reduce((f,g)=>(f[g.id]=g,f),{}),ae(e,"debugColumns","getAllFlatColumnsById")),getAllLeafColumns:oe(()=>[i.getAllColumns(),i._getOrderColumnsFn()],(h,f)=>{let g=h.flatMap(m=>m.getLeafColumns());return f(g)},ae(e,"debugColumns","getAllLeafColumns")),getColumn:h=>{const f=i._getAllFlatColumnsById()[h];return process.env.NODE_ENV!=="production"&&!f&&console.error(`[Table] Column with id '${h}' does not exist.`),f}};Object.assign(i,d);for(let h=0;h<i._features.length;h++){const f=i._features[h];f==null||f.createTable==null||f.createTable(i)}return i}function cI(){return e=>oe(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(i,o,a){o===void 0&&(o=0);const s=[];for(let u=0;u<i.length;u++){const c=Ka(e,e._getRowId(i[u],u,a),i[u],u,o,void 0,a==null?void 0:a.id);if(n.flatRows.push(c),n.rowsById[c.id]=c,s.push(c),e.options.getSubRows){var l;c.originalSubRows=e.options.getSubRows(i[u],u),(l=c.originalSubRows)!=null&&l.length&&(c.subRows=r(c.originalSubRows,o+1,c))}}return s};return n.rows=r(t),n},ae(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}function dI(){return e=>oe(()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows],(t,n,r)=>!n.rows.length||t!==!0&&!Object.keys(t??{}).length||!r?n:Of(n),ae(e.options,"debugTable","getExpandedRowModel"))}function Of(e){const t=[],n=r=>{var i;t.push(r),(i=r.subRows)!=null&&i.length&&r.getIsExpanded()&&r.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function fI(){return(e,t)=>oe(()=>{var n;return[(n=e.getColumn(t))==null?void 0:n.getFacetedRowModel()]},n=>{var r;if(!n)return;const i=(r=n.flatRows[0])==null?void 0:r.getUniqueValues(t);if(typeof i>"u")return;let o=[i,i];for(let a=0;a<n.flatRows.length;a++){const s=n.flatRows[a].getUniqueValues(t);for(let l=0;l<s.length;l++){const u=s[l];u<o[0]?o[0]=u:u>o[1]&&(o[1]=u)}}return o},ae(e.options,"debugTable","getFacetedMinMaxValues"))}function X1(e,t,n){return n.options.filterFromLeafRows?hI(e,t,n):gI(e,t,n)}function hI(e,t,n){var r;const i=[],o={},a=(r=n.options.maxLeafRowFilterDepth)!=null?r:100,s=function(l,u){u===void 0&&(u=0);const c=[];for(let h=0;h<l.length;h++){var d;let f=l[h];const g=Ka(n,f.id,f.original,f.index,f.depth,void 0,f.parentId);if(g.columnFilters=f.columnFilters,(d=f.subRows)!=null&&d.length&&u<a){if(g.subRows=s(f.subRows,u+1),f=g,t(f)&&!g.subRows.length){c.push(f),o[f.id]=f,i.push(f);continue}if(t(f)||g.subRows.length){c.push(f),o[f.id]=f,i.push(f);continue}}else f=g,t(f)&&(c.push(f),o[f.id]=f,i.push(f))}return c};return{rows:s(e),flatRows:i,rowsById:o}}function gI(e,t,n){var r;const i=[],o={},a=(r=n.options.maxLeafRowFilterDepth)!=null?r:100,s=function(l,u){u===void 0&&(u=0);const c=[];for(let h=0;h<l.length;h++){let f=l[h];if(t(f)){var d;if((d=f.subRows)!=null&&d.length&&u<a){const m=Ka(n,f.id,f.original,f.index,f.depth,void 0,f.parentId);m.subRows=s(f.subRows,u+1),f=m}c.push(f),i.push(f),o[f.id]=f}}return c};return{rows:s(e),flatRows:i,rowsById:o}}function mI(){return(e,t)=>oe(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter,e.getFilteredRowModel()],(n,r,i)=>{if(!n.rows.length||!(r!=null&&r.length)&&!i)return n;const o=[...r.map(s=>s.id).filter(s=>s!==t),i?"__global__":void 0].filter(Boolean),a=s=>{for(let l=0;l<o.length;l++)if(s.columnFilters[o[l]]===!1)return!1;return!0};return X1(n.rows,a,e)},ae(e.options,"debugTable","getFacetedRowModel"))}function pI(){return(e,t)=>oe(()=>{var n;return[(n=e.getColumn(t))==null?void 0:n.getFacetedRowModel()]},n=>{if(!n)return new Map;let r=new Map;for(let o=0;o<n.flatRows.length;o++){const a=n.flatRows[o].getUniqueValues(t);for(let s=0;s<a.length;s++){const l=a[s];if(r.has(l)){var i;r.set(l,((i=r.get(l))!=null?i:0)+1)}else r.set(l,1)}}return r},ae(e.options,"debugTable",`getFacetedUniqueValues_${t}`))}function bI(){return e=>oe(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(t,n,r)=>{if(!t.rows.length||!(n!=null&&n.length)&&!r){for(let h=0;h<t.flatRows.length;h++)t.flatRows[h].columnFilters={},t.flatRows[h].columnFiltersMeta={};return t}const i=[],o=[];(n??[]).forEach(h=>{var f;const g=e.getColumn(h.id);if(!g)return;const m=g.getFilterFn();if(!m){process.env.NODE_ENV!=="production"&&console.warn(`Could not find a valid 'column.filterFn' for column with the ID: ${g.id}.`);return}i.push({id:h.id,filterFn:m,resolvedValue:(f=m.resolveFilterValue==null?void 0:m.resolveFilterValue(h.value))!=null?f:h.value})});const a=(n??[]).map(h=>h.id),s=e.getGlobalFilterFn(),l=e.getAllLeafColumns().filter(h=>h.getCanGlobalFilter());r&&s&&l.length&&(a.push("__global__"),l.forEach(h=>{var f;o.push({id:h.id,filterFn:s,resolvedValue:(f=s.resolveFilterValue==null?void 0:s.resolveFilterValue(r))!=null?f:r})}));let u,c;for(let h=0;h<t.flatRows.length;h++){const f=t.flatRows[h];if(f.columnFilters={},i.length)for(let g=0;g<i.length;g++){u=i[g];const m=u.id;f.columnFilters[m]=u.filterFn(f,m,u.resolvedValue,b=>{f.columnFiltersMeta[m]=b})}if(o.length){for(let g=0;g<o.length;g++){c=o[g];const m=c.id;if(c.filterFn(f,m,c.resolvedValue,b=>{f.columnFiltersMeta[m]=b})){f.columnFilters.__global__=!0;break}}f.columnFilters.__global__!==!0&&(f.columnFilters.__global__=!1)}}const d=h=>{for(let f=0;f<a.length;f++)if(h.columnFilters[a[f]]===!1)return!1;return!0};return X1(t.rows,d,e)},ae(e.options,"debugTable","getFilteredRowModel",()=>e._autoResetPageIndex()))}function vI(){return e=>oe(()=>[e.getState().grouping,e.getPreGroupedRowModel()],(t,n)=>{if(!n.rows.length||!t.length)return n;const r=t.filter(l=>e.getColumn(l)),i=[],o={},a=function(l,u,c){if(u===void 0&&(u=0),u>=r.length)return l.map(g=>(g.depth=u,i.push(g),o[g.id]=g,g.subRows&&(g.subRows=a(g.subRows,u+1,g.id)),g));const d=r[u],h=yI(l,d);return Array.from(h.entries()).map((g,m)=>{let[b,y]=g,v=`${d}:${b}`;v=c?`${c}>${v}`:v;const x=a(y,u+1,v),C=u?kf(y,I=>I.subRows):y,D=Ka(e,v,C[0].original,m,u,void 0,c);return Object.assign(D,{groupingColumnId:d,groupingValue:b,subRows:x,leafRows:C,getValue:I=>{if(r.includes(I)){if(D._valuesCache.hasOwnProperty(I))return D._valuesCache[I];if(y[0]){var T;D._valuesCache[I]=(T=y[0].getValue(I))!=null?T:void 0}return D._valuesCache[I]}if(D._groupingValuesCache.hasOwnProperty(I))return D._groupingValuesCache[I];const p=e.getColumn(I),S=p==null?void 0:p.getAggregationFn();if(S)return D._groupingValuesCache[I]=S(I,C,y),D._groupingValuesCache[I]}}),x.forEach(I=>{i.push(I),o[I.id]=I}),D})},s=a(n.rows,0);return s.forEach(l=>{i.push(l),o[l.id]=l}),{rows:s,flatRows:i,rowsById:o}},ae(e.options,"debugTable","getGroupedRowModel",()=>{e._queue(()=>{e._autoResetExpanded(),e._autoResetPageIndex()})}))}function yI(e,t){const n=new Map;return e.reduce((r,i)=>{const o=`${i.getGroupingValue(t)}`,a=r.get(o);return a?a.push(i):r.set(o,[i]),r},n)}function xI(e){return t=>oe(()=>[t.getState().pagination,t.getPrePaginationRowModel(),t.options.paginateExpandedRows?void 0:t.getState().expanded],(n,r)=>{if(!r.rows.length)return r;const{pageSize:i,pageIndex:o}=n;let{rows:a,flatRows:s,rowsById:l}=r;const u=i*o,c=u+i;a=a.slice(u,c);let d;t.options.paginateExpandedRows?d={rows:a,flatRows:s,rowsById:l}:d=Of({rows:a,flatRows:s,rowsById:l}),d.flatRows=[];const h=f=>{d.flatRows.push(f),f.subRows.length&&f.subRows.forEach(h)};return d.rows.forEach(h),d},ae(t.options,"debugTable","getPaginationRowModel"))}function CI(){return e=>oe(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,n)=>{if(!n.rows.length||!(t!=null&&t.length))return n;const r=e.getState().sorting,i=[],o=r.filter(l=>{var u;return(u=e.getColumn(l.id))==null?void 0:u.getCanSort()}),a={};o.forEach(l=>{const u=e.getColumn(l.id);u&&(a[l.id]={sortUndefined:u.columnDef.sortUndefined,invertSorting:u.columnDef.invertSorting,sortingFn:u.getSortingFn()})});const s=l=>{const u=l.map(c=>({...c}));return u.sort((c,d)=>{for(let f=0;f<o.length;f+=1){var h;const g=o[f],m=a[g.id],b=m.sortUndefined,y=(h=g==null?void 0:g.desc)!=null?h:!1;let v=0;if(b){const x=c.getValue(g.id),C=d.getValue(g.id),D=x===void 0,I=C===void 0;if(D||I){if(b==="first")return D?-1:1;if(b==="last")return D?1:-1;v=D&&I?0:D?b:-b}}if(v===0&&(v=m.sortingFn(c,d,g.id)),v!==0)return y&&(v*=-1),m.invertSorting&&(v*=-1),v}return c.index-d.index}),u.forEach(c=>{var d;i.push(c),(d=c.subRows)!=null&&d.length&&(c.subRows=s(c.subRows))}),u};return{rows:s(n.rows),flatRows:i,rowsById:n.rowsById}},ae(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex()))}/**
36
+ color: hsl(${Math.max(0,Math.min(120-120*h,120))}deg 100% 31%);`,n==null?void 0:n.key)}return i}}function ae(e,t,n,r){return{debug:()=>{var i;return(i=e==null?void 0:e.debugAll)!=null?i:e[t]},key:process.env.NODE_ENV==="development"&&n,onChange:r}}function v1(e,t,n,r){const i=()=>{var a;return(a=o.getValue())!=null?a:e.options.renderFallbackValue},o={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:i,getContext:oe(()=>[e,n,t,o],(a,s,l,u)=>({table:a,column:s,row:l,cell:u,getValue:u.getValue,renderValue:u.renderValue}),ae(e.options,"debugCells","cell.getContext"))};return e._features.forEach(a=>{a.createCell==null||a.createCell(o,n,t,e)},{}),o}function y1(e,t,n,r){var i,o;const s={...e._getDefaultColumnDef(),...t},l=s.accessorKey;let u=(i=(o=s.id)!=null?o:l?l.replace(".","_"):void 0)!=null?i:typeof s.header=="string"?s.header:void 0,c;if(s.accessorFn?c=s.accessorFn:l&&(l.includes(".")?c=h=>{let f=h;for(const m of l.split(".")){var g;f=(g=f)==null?void 0:g[m],process.env.NODE_ENV!=="production"&&f===void 0&&console.warn(`"${m}" in deeply nested key "${l}" returned undefined.`)}return f}:c=h=>h[s.accessorKey]),!u)throw process.env.NODE_ENV!=="production"?new Error(s.accessorFn?"Columns require an id when using an accessorFn":"Columns require an id when using a non-string header"):new Error;let d={id:`${String(u)}`,accessorFn:c,parent:r,depth:n,columnDef:s,columns:[],getFlatColumns:oe(()=>[!0],()=>{var h;return[d,...(h=d.columns)==null?void 0:h.flatMap(f=>f.getFlatColumns())]},ae(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:oe(()=>[e._getOrderColumnsFn()],h=>{var f;if((f=d.columns)!=null&&f.length){let g=d.columns.flatMap(m=>m.getLeafColumns());return h(g)}return[d]},ae(e.options,"debugColumns","column.getLeafColumns"))};for(const h of e._features)h.createColumn==null||h.createColumn(d,e);return d}const pt="debugHeaders";function Yg(e,t,n){var r;let o={id:(r=n.id)!=null?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const a=[],s=l=>{l.subHeaders&&l.subHeaders.length&&l.subHeaders.map(s),a.push(l)};return s(o),a},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach(a=>{a.createHeader==null||a.createHeader(o,e)}),o}const x1={createTable:e=>{e.getHeaderGroups=oe(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>{var o,a;const s=(o=r==null?void 0:r.map(d=>n.find(h=>h.id===d)).filter(Boolean))!=null?o:[],l=(a=i==null?void 0:i.map(d=>n.find(h=>h.id===d)).filter(Boolean))!=null?a:[],u=n.filter(d=>!(r!=null&&r.includes(d.id))&&!(i!=null&&i.includes(d.id)));return No(t,[...s,...u,...l],e)},ae(e.options,pt,"getHeaderGroups")),e.getCenterHeaderGroups=oe(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>(n=n.filter(o=>!(r!=null&&r.includes(o.id))&&!(i!=null&&i.includes(o.id))),No(t,n,e,"center")),ae(e.options,pt,"getCenterHeaderGroups")),e.getLeftHeaderGroups=oe(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var i;const o=(i=r==null?void 0:r.map(a=>n.find(s=>s.id===a)).filter(Boolean))!=null?i:[];return No(t,o,e,"left")},ae(e.options,pt,"getLeftHeaderGroups")),e.getRightHeaderGroups=oe(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var i;const o=(i=r==null?void 0:r.map(a=>n.find(s=>s.id===a)).filter(Boolean))!=null?i:[];return No(t,o,e,"right")},ae(e.options,pt,"getRightHeaderGroups")),e.getFooterGroups=oe(()=>[e.getHeaderGroups()],t=>[...t].reverse(),ae(e.options,pt,"getFooterGroups")),e.getLeftFooterGroups=oe(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),ae(e.options,pt,"getLeftFooterGroups")),e.getCenterFooterGroups=oe(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),ae(e.options,pt,"getCenterFooterGroups")),e.getRightFooterGroups=oe(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),ae(e.options,pt,"getRightFooterGroups")),e.getFlatHeaders=oe(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),ae(e.options,pt,"getFlatHeaders")),e.getLeftFlatHeaders=oe(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),ae(e.options,pt,"getLeftFlatHeaders")),e.getCenterFlatHeaders=oe(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),ae(e.options,pt,"getCenterFlatHeaders")),e.getRightFlatHeaders=oe(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),ae(e.options,pt,"getRightFlatHeaders")),e.getCenterLeafHeaders=oe(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),ae(e.options,pt,"getCenterLeafHeaders")),e.getLeftLeafHeaders=oe(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),ae(e.options,pt,"getLeftLeafHeaders")),e.getRightLeafHeaders=oe(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),ae(e.options,pt,"getRightLeafHeaders")),e.getLeafHeaders=oe(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,n,r)=>{var i,o,a,s,l,u;return[...(i=(o=t[0])==null?void 0:o.headers)!=null?i:[],...(a=(s=n[0])==null?void 0:s.headers)!=null?a:[],...(l=(u=r[0])==null?void 0:u.headers)!=null?l:[]].map(c=>c.getLeafHeaders()).flat()},ae(e.options,pt,"getLeafHeaders"))}};function No(e,t,n,r){var i,o;let a=0;const s=function(h,f){f===void 0&&(f=1),a=Math.max(a,f),h.filter(g=>g.getIsVisible()).forEach(g=>{var m;(m=g.columns)!=null&&m.length&&s(g.columns,f+1)},0)};s(e);let l=[];const u=(h,f)=>{const g={depth:f,id:[r,`${f}`].filter(Boolean).join("_"),headers:[]},m=[];h.forEach(b=>{const y=[...m].reverse()[0],v=b.column.depth===g.depth;let x,C=!1;if(v&&b.column.parent?x=b.column.parent:(x=b.column,C=!0),y&&(y==null?void 0:y.column)===x)y.subHeaders.push(b);else{const D=Yg(n,x,{id:[r,f,x.id,b==null?void 0:b.id].filter(Boolean).join("_"),isPlaceholder:C,placeholderId:C?`${m.filter(I=>I.column===x).length}`:void 0,depth:f,index:m.length});D.subHeaders.push(b),m.push(D)}g.headers.push(b),b.headerGroup=g}),l.push(g),f>0&&u(m,f-1)},c=t.map((h,f)=>Yg(n,h,{depth:a,index:f}));u(c,a-1),l.reverse();const d=h=>h.filter(g=>g.column.getIsVisible()).map(g=>{let m=0,b=0,y=[0];g.subHeaders&&g.subHeaders.length?(y=[],d(g.subHeaders).forEach(x=>{let{colSpan:C,rowSpan:D}=x;m+=C,y.push(D)})):m=1;const v=Math.min(...y);return b=b+v,g.colSpan=m,g.rowSpan=b,{colSpan:m,rowSpan:b}});return d((i=(o=l[0])==null?void 0:o.headers)!=null?i:[]),l}const Ka=(e,t,n,r,i,o,a)=>{let s={id:t,index:r,original:n,depth:i,parentId:a,_valuesCache:{},_uniqueValuesCache:{},getValue:l=>{if(s._valuesCache.hasOwnProperty(l))return s._valuesCache[l];const u=e.getColumn(l);if(u!=null&&u.accessorFn)return s._valuesCache[l]=u.accessorFn(s.original,r),s._valuesCache[l]},getUniqueValues:l=>{if(s._uniqueValuesCache.hasOwnProperty(l))return s._uniqueValuesCache[l];const u=e.getColumn(l);if(u!=null&&u.accessorFn)return u.columnDef.getUniqueValues?(s._uniqueValuesCache[l]=u.columnDef.getUniqueValues(s.original,r),s._uniqueValuesCache[l]):(s._uniqueValuesCache[l]=[s.getValue(l)],s._uniqueValuesCache[l])},renderValue:l=>{var u;return(u=s.getValue(l))!=null?u:e.options.renderFallbackValue},subRows:o??[],getLeafRows:()=>kf(s.subRows,l=>l.subRows),getParentRow:()=>s.parentId?e.getRow(s.parentId,!0):void 0,getParentRows:()=>{let l=[],u=s;for(;;){const c=u.getParentRow();if(!c)break;l.push(c),u=c}return l.reverse()},getAllCells:oe(()=>[e.getAllLeafColumns()],l=>l.map(u=>v1(e,s,u,u.id)),ae(e.options,"debugRows","getAllCells")),_getAllCellsByColumnId:oe(()=>[s.getAllCells()],l=>l.reduce((u,c)=>(u[c.column.id]=c,u),{}),ae(e.options,"debugRows","getAllCellsByColumnId"))};for(let l=0;l<e._features.length;l++){const u=e._features[l];u==null||u.createRow==null||u.createRow(s,e)}return s},C1={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},w1=(e,t,n)=>{var r;const i=n.toLowerCase();return!!(!((r=e.getValue(t))==null||(r=r.toString())==null||(r=r.toLowerCase())==null)&&r.includes(i))};w1.autoRemove=e=>xn(e);const D1=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};D1.autoRemove=e=>xn(e);const S1=(e,t,n)=>{var r;return((r=e.getValue(t))==null||(r=r.toString())==null?void 0:r.toLowerCase())===(n==null?void 0:n.toLowerCase())};S1.autoRemove=e=>xn(e);const E1=(e,t,n)=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(n)};E1.autoRemove=e=>xn(e)||!(e!=null&&e.length);const I1=(e,t,n)=>!n.some(r=>{var i;return!((i=e.getValue(t))!=null&&i.includes(r))});I1.autoRemove=e=>xn(e)||!(e!=null&&e.length);const _1=(e,t,n)=>n.some(r=>{var i;return(i=e.getValue(t))==null?void 0:i.includes(r)});_1.autoRemove=e=>xn(e)||!(e!=null&&e.length);const $1=(e,t,n)=>e.getValue(t)===n;$1.autoRemove=e=>xn(e);const R1=(e,t,n)=>e.getValue(t)==n;R1.autoRemove=e=>xn(e);const Mf=(e,t,n)=>{let[r,i]=n;const o=e.getValue(t);return o>=r&&o<=i};Mf.resolveFilterValue=e=>{let[t,n]=e,r=typeof t!="number"?parseFloat(t):t,i=typeof n!="number"?parseFloat(n):n,o=t===null||Number.isNaN(r)?-1/0:r,a=n===null||Number.isNaN(i)?1/0:i;if(o>a){const s=o;o=a,a=s}return[o,a]};Mf.autoRemove=e=>xn(e)||xn(e[0])&&xn(e[1]);const kn={includesString:w1,includesStringSensitive:D1,equalsString:S1,arrIncludes:E1,arrIncludesAll:I1,arrIncludesSome:_1,equals:$1,weakEquals:R1,inNumberRange:Mf};function xn(e){return e==null||e===""}const A1={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:Nt("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);return typeof r=="string"?kn.includesString:typeof r=="number"?kn.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?kn.equals:Array.isArray(r)?kn.arrIncludes:kn.weakEquals},e.getFilterFn=()=>{var n,r;return Ja(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(n=(r=t.options.filterFns)==null?void 0:r[e.columnDef.filterFn])!=null?n:kn[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,i;return((n=e.columnDef.enableColumnFilter)!=null?n:!0)&&((r=t.options.enableColumnFilters)!=null?r:!0)&&((i=t.options.enableFilters)!=null?i:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return(n=t.getState().columnFilters)==null||(n=n.find(r=>r.id===e.id))==null?void 0:n.value},e.getFilterIndex=()=>{var n,r;return(n=(r=t.getState().columnFilters)==null?void 0:r.findIndex(i=>i.id===e.id))!=null?n:-1},e.setFilterValue=n=>{t.setColumnFilters(r=>{const i=e.getFilterFn(),o=r==null?void 0:r.find(c=>c.id===e.id),a=sr(n,o?o.value:void 0);if(pd(i,a,e)){var s;return(s=r==null?void 0:r.filter(c=>c.id!==e.id))!=null?s:[]}const l={id:e.id,value:a};if(o){var u;return(u=r==null?void 0:r.map(c=>c.id===e.id?l:c))!=null?u:[]}return r!=null&&r.length?[...r,l]:[l]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns(),r=i=>{var o;return(o=sr(t,i))==null?void 0:o.filter(a=>{const s=n.find(l=>l.id===a.id);if(s){const l=s.getFilterFn();if(pd(l,a.value,s))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(r)},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:(n=(r=e.initialState)==null?void 0:r.columnFilters)!=null?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function pd(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const YE=(e,t,n)=>n.reduce((r,i)=>{const o=i.getValue(e);return r+(typeof o=="number"?o:0)},0),UE=(e,t,n)=>{let r;return n.forEach(i=>{const o=i.getValue(e);o!=null&&(r>o||r===void 0&&o>=o)&&(r=o)}),r},JE=(e,t,n)=>{let r;return n.forEach(i=>{const o=i.getValue(e);o!=null&&(r<o||r===void 0&&o>=o)&&(r=o)}),r},KE=(e,t,n)=>{let r,i;return n.forEach(o=>{const a=o.getValue(e);a!=null&&(r===void 0?a>=a&&(r=i=a):(r>a&&(r=a),i<a&&(i=a)))}),[r,i]},qE=(e,t)=>{let n=0,r=0;if(t.forEach(i=>{let o=i.getValue(e);o!=null&&(o=+o)>=o&&(++n,r+=o)}),n)return r/n},QE=(e,t)=>{if(!t.length)return;const n=t.map(o=>o.getValue(e));if(!b1(n))return;if(n.length===1)return n[0];const r=Math.floor(n.length/2),i=n.sort((o,a)=>o-a);return n.length%2!==0?i[r]:(i[r-1]+i[r])/2},eI=(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),tI=(e,t)=>new Set(t.map(n=>n.getValue(e))).size,nI=(e,t)=>t.length,el={sum:YE,min:UE,max:JE,extent:KE,mean:qE,median:QE,unique:eI,uniqueCount:tI,count:nI},F1={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return(t=(n=e.getValue())==null||n.toString==null?void 0:n.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:Nt("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(n=>n!=null&&n.includes(e.id)?n.filter(r=>r!==e.id):[...n??[],e.id])},e.getCanGroup=()=>{var n,r;return((n=e.columnDef.enableGrouping)!=null?n:!0)&&((r=t.options.enableGrouping)!=null?r:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const n=e.getCanGroup();return()=>{n&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);if(typeof r=="number")return el.sum;if(Object.prototype.toString.call(r)==="[object Date]")return el.extent},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return Ja(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(n=(r=t.options.aggregationFns)==null?void 0:r[e.columnDef.aggregationFn])!=null?n:el[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:(n=(r=e.initialState)==null?void 0:r.grouping)!=null?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const r=t.getColumn(n);return r!=null&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var i;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((i=n.subRows)!=null&&i.length)}}};function P1(e,t,n){if(!(t!=null&&t.length)||!n)return e;const r=e.filter(o=>!t.includes(o.id));return n==="remove"?r:[...t.map(o=>e.find(a=>a.id===o)).filter(Boolean),...r]}const T1={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Nt("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=oe(n=>[eo(t,n)],n=>n.findIndex(r=>r.id===e.id),ae(t.options,"debugColumns","getIndex")),e.getIsFirstColumn=n=>{var r;return((r=eo(t,n)[0])==null?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const i=eo(t,n);return((r=i[i.length-1])==null?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:(n=e.initialState.columnOrder)!=null?n:[])},e._getOrderColumnsFn=oe(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,n,r)=>i=>{let o=[];if(!(t!=null&&t.length))o=i;else{const a=[...t],s=[...i];for(;s.length&&a.length;){const l=a.shift(),u=s.findIndex(c=>c.id===l);u>-1&&o.push(s.splice(u,1)[0])}o=[...o,...s]}return P1(o,n,r)},ae(e.options,"debugTable","_getOrderColumnsFn"))}},ec=()=>({left:[],right:[]}),k1={getInitialState:e=>({columnPinning:ec(),...e}),getDefaultOptions:e=>({onColumnPinningChange:Nt("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map(i=>i.id).filter(Boolean);t.setColumnPinning(i=>{var o,a;if(n==="right"){var s,l;return{left:((s=i==null?void 0:i.left)!=null?s:[]).filter(d=>!(r!=null&&r.includes(d))),right:[...((l=i==null?void 0:i.right)!=null?l:[]).filter(d=>!(r!=null&&r.includes(d))),...r]}}if(n==="left"){var u,c;return{left:[...((u=i==null?void 0:i.left)!=null?u:[]).filter(d=>!(r!=null&&r.includes(d))),...r],right:((c=i==null?void 0:i.right)!=null?c:[]).filter(d=>!(r!=null&&r.includes(d)))}}return{left:((o=i==null?void 0:i.left)!=null?o:[]).filter(d=>!(r!=null&&r.includes(d))),right:((a=i==null?void 0:i.right)!=null?a:[]).filter(d=>!(r!=null&&r.includes(d)))}})},e.getCanPin=()=>e.getLeafColumns().some(r=>{var i,o,a;return((i=r.columnDef.enablePinning)!=null?i:!0)&&((o=(a=t.options.enableColumnPinning)!=null?a:t.options.enablePinning)!=null?o:!0)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(s=>s.id),{left:r,right:i}=t.getState().columnPinning,o=n.some(s=>r==null?void 0:r.includes(s)),a=n.some(s=>i==null?void 0:i.includes(s));return o?"left":a?"right":!1},e.getPinnedIndex=()=>{var n,r;const i=e.getIsPinned();return i?(n=(r=t.getState().columnPinning)==null||(r=r[i])==null?void 0:r.indexOf(e.id))!=null?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=oe(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(n,r,i)=>{const o=[...r??[],...i??[]];return n.filter(a=>!o.includes(a.column.id))},ae(t.options,"debugRows","getCenterVisibleCells")),e.getLeftVisibleCells=oe(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(n,r)=>(r??[]).map(o=>n.find(a=>a.column.id===o)).filter(Boolean).map(o=>({...o,position:"left"})),ae(t.options,"debugRows","getLeftVisibleCells")),e.getRightVisibleCells=oe(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(n,r)=>(r??[]).map(o=>n.find(a=>a.column.id===o)).filter(Boolean).map(o=>({...o,position:"right"})),ae(t.options,"debugRows","getRightVisibleCells"))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?ec():(n=(r=e.initialState)==null?void 0:r.columnPinning)!=null?n:ec())},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;if(!t){var i,o;return!!((i=r.left)!=null&&i.length||(o=r.right)!=null&&o.length)}return!!((n=r[t])!=null&&n.length)},e.getLeftLeafColumns=oe(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(r=>t.find(i=>i.id===r)).filter(Boolean),ae(e.options,"debugColumns","getLeftLeafColumns")),e.getRightLeafColumns=oe(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(r=>t.find(i=>i.id===r)).filter(Boolean),ae(e.options,"debugColumns","getRightLeafColumns")),e.getCenterLeafColumns=oe(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r)=>{const i=[...n??[],...r??[]];return t.filter(o=>!i.includes(o.id))},ae(e.options,"debugColumns","getCenterLeafColumns"))}},Vo={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},tc=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),M1={getDefaultColumnDef:()=>Vo,getInitialState:e=>({columnSizing:{},columnSizingInfo:tc(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Nt("columnSizing",e),onColumnSizingInfoChange:Nt("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,i;const o=t.getState().columnSizing[e.id];return Math.min(Math.max((n=e.columnDef.minSize)!=null?n:Vo.minSize,(r=o??e.columnDef.size)!=null?r:Vo.size),(i=e.columnDef.maxSize)!=null?i:Vo.maxSize)},e.getStart=oe(n=>[n,eo(t,n),t.getState().columnSizing],(n,r)=>r.slice(0,e.getIndex(n)).reduce((i,o)=>i+o.getSize(),0),ae(t.options,"debugColumns","getStart")),e.getAfter=oe(n=>[n,eo(t,n),t.getState().columnSizing],(n,r)=>r.slice(e.getIndex(n)+1).reduce((i,o)=>i+o.getSize(),0),ae(t.options,"debugColumns","getAfter")),e.resetSize=()=>{t.setColumnSizing(n=>{let{[e.id]:r,...i}=n;return i})},e.getCanResize=()=>{var n,r;return((n=e.columnDef.enableResizing)!=null?n:!0)&&((r=t.options.enableColumnResizing)!=null?r:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let n=0;const r=i=>{if(i.subHeaders.length)i.subHeaders.forEach(r);else{var o;n+=(o=i.column.getSize())!=null?o:0}};return r(e),n},e.getStart=()=>{if(e.index>0){const n=e.headerGroup.headers[e.index-1];return n.getStart()+n.getSize()}return 0},e.getResizeHandler=n=>{const r=t.getColumn(e.column.id),i=r==null?void 0:r.getCanResize();return o=>{if(!r||!i||(o.persist==null||o.persist(),nc(o)&&o.touches&&o.touches.length>1))return;const a=e.getSize(),s=e?e.getLeafHeaders().map(y=>[y.column.id,y.column.getSize()]):[[r.id,r.getSize()]],l=nc(o)?Math.round(o.touches[0].clientX):o.clientX,u={},c=(y,v)=>{typeof v=="number"&&(t.setColumnSizingInfo(x=>{var C,D;const I=t.options.columnResizeDirection==="rtl"?-1:1,T=(v-((C=x==null?void 0:x.startOffset)!=null?C:0))*I,p=Math.max(T/((D=x==null?void 0:x.startSize)!=null?D:0),-.999999);return x.columnSizingStart.forEach(S=>{let[$,_]=S;u[$]=Math.round(Math.max(_+_*p,0)*100)/100}),{...x,deltaOffset:T,deltaPercentage:p}}),(t.options.columnResizeMode==="onChange"||y==="end")&&t.setColumnSizing(x=>({...x,...u})))},d=y=>c("move",y),h=y=>{c("end",y),t.setColumnSizingInfo(v=>({...v,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},f=n||typeof document<"u"?document:null,g={moveHandler:y=>d(y.clientX),upHandler:y=>{f==null||f.removeEventListener("mousemove",g.moveHandler),f==null||f.removeEventListener("mouseup",g.upHandler),h(y.clientX)}},m={moveHandler:y=>(y.cancelable&&(y.preventDefault(),y.stopPropagation()),d(y.touches[0].clientX),!1),upHandler:y=>{var v;f==null||f.removeEventListener("touchmove",m.moveHandler),f==null||f.removeEventListener("touchend",m.upHandler),y.cancelable&&(y.preventDefault(),y.stopPropagation()),h((v=y.touches[0])==null?void 0:v.clientX)}},b=B1()?{passive:!1}:!1;nc(o)?(f==null||f.addEventListener("touchmove",m.moveHandler,b),f==null||f.addEventListener("touchend",m.upHandler,b)):(f==null||f.addEventListener("mousemove",g.moveHandler,b),f==null||f.addEventListener("mouseup",g.upHandler,b)),t.setColumnSizingInfo(y=>({...y,startOffset:l,startSize:a,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:(n=e.initialState.columnSizing)!=null?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?tc():(n=e.initialState.columnSizingInfo)!=null?n:tc())},e.getTotalSize=()=>{var t,n;return(t=(n=e.getHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,n;return(t=(n=e.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,n;return(t=(n=e.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,n;return(t=(n=e.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0}}};let ys=null;function B1(){if(typeof ys=="boolean")return ys;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch{e=!1}return ys=e,ys}function nc(e){return e.type==="touchstart"}const O1={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Nt("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(r=>({...r,[e.id]:n??!e.getIsVisible()}))},e.getIsVisible=()=>{var n,r;const i=e.columns;return(n=i.length?i.some(o=>o.getIsVisible()):(r=t.getState().columnVisibility)==null?void 0:r[e.id])!=null?n:!0},e.getCanHide=()=>{var n,r;return((n=e.columnDef.enableHiding)!=null?n:!0)&&((r=t.options.enableHiding)!=null?r:!0)},e.getToggleVisibilityHandler=()=>n=>{e.toggleVisibility==null||e.toggleVisibility(n.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=oe(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(r=>r.column.getIsVisible()),ae(t.options,"debugRows","_getAllVisibleCells")),e.getVisibleCells=oe(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,r,i)=>[...n,...r,...i],ae(t.options,"debugRows","getVisibleCells"))},createTable:e=>{const t=(n,r)=>oe(()=>[r(),r().filter(i=>i.getIsVisible()).map(i=>i.id).join("_")],i=>i.filter(o=>o.getIsVisible==null?void 0:o.getIsVisible()),ae(e.options,"debugColumns",n));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=n=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(n),e.resetColumnVisibility=n=>{var r;e.setColumnVisibility(n?{}:(r=e.initialState.columnVisibility)!=null?r:{})},e.toggleAllColumnsVisible=n=>{var r;n=(r=n)!=null?r:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((i,o)=>({...i,[o.id]:n||!(o.getCanHide!=null&&o.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(n=>!(n.getIsVisible!=null&&n.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(n=>n.getIsVisible==null?void 0:n.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>n=>{var r;e.toggleAllColumnsVisible((r=n.target)==null?void 0:r.checked)}}};function eo(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const N1={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},V1={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:Nt("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const r=(n=e.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof r=="string"||typeof r=="number"}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,r,i,o;return((n=e.columnDef.enableGlobalFilter)!=null?n:!0)&&((r=t.options.enableGlobalFilter)!=null?r:!0)&&((i=t.options.enableFilters)!=null?i:!0)&&((o=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?o:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>kn.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return Ja(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[r])!=null?t:kn[r]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},L1={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Nt("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,i;if(!t){e._queue(()=>{t=!0});return}if((r=(i=e.options.autoResetAll)!=null?i:e.options.autoResetExpanded)!=null?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=r=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(r),e.toggleAllRowsExpanded=r=>{r??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=r=>{var i,o;e.setExpanded(r?{}:(i=(o=e.initialState)==null?void 0:o.expanded)!=null?i:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(r=>r.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>r=>{r.persist==null||r.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const r=e.getState().expanded;return r===!0||Object.values(r).some(Boolean)},e.getIsAllRowsExpanded=()=>{const r=e.getState().expanded;return typeof r=="boolean"?r===!0:!(!Object.keys(r).length||e.getRowModel().flatRows.some(i=>!i.getIsExpanded()))},e.getExpandedDepth=()=>{let r=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(o=>{const a=o.split(".");r=Math.max(r,a.length)}),r},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(r=>{var i;const o=r===!0?!0:!!(r!=null&&r[e.id]);let a={};if(r===!0?Object.keys(t.getRowModel().rowsById).forEach(s=>{a[s]=!0}):a=r,n=(i=n)!=null?i:!o,!o&&n)return{...a,[e.id]:!0};if(o&&!n){const{[e.id]:s,...l}=a;return l}return r})},e.getIsExpanded=()=>{var n;const r=t.getState().expanded;return!!((n=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?n:r===!0||r!=null&&r[e.id])},e.getCanExpand=()=>{var n,r,i;return(n=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?n:((r=t.options.enableExpanding)!=null?r:!0)&&!!((i=e.subRows)!=null&&i.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const n=e.getCanExpand();return()=>{n&&e.toggleExpanded()}}}},bd=0,vd=10,rc=()=>({pageIndex:bd,pageSize:vd}),H1={getInitialState:e=>({...e,pagination:{...rc(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:Nt("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,i;if(!t){e._queue(()=>{t=!0});return}if((r=(i=e.options.autoResetAll)!=null?i:e.options.autoResetPageIndex)!=null?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=r=>{const i=o=>sr(r,o);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(i)},e.resetPagination=r=>{var i;e.setPagination(r?rc():(i=e.initialState.pagination)!=null?i:rc())},e.setPageIndex=r=>{e.setPagination(i=>{let o=sr(r,i.pageIndex);const a=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return o=Math.max(0,Math.min(o,a)),{...i,pageIndex:o}})},e.resetPageIndex=r=>{var i,o;e.setPageIndex(r?bd:(i=(o=e.initialState)==null||(o=o.pagination)==null?void 0:o.pageIndex)!=null?i:bd)},e.resetPageSize=r=>{var i,o;e.setPageSize(r?vd:(i=(o=e.initialState)==null||(o=o.pagination)==null?void 0:o.pageSize)!=null?i:vd)},e.setPageSize=r=>{e.setPagination(i=>{const o=Math.max(1,sr(r,i.pageSize)),a=i.pageSize*i.pageIndex,s=Math.floor(a/o);return{...i,pageIndex:s,pageSize:o}})},e.setPageCount=r=>e.setPagination(i=>{var o;let a=sr(r,(o=e.options.pageCount)!=null?o:-1);return typeof a=="number"&&(a=Math.max(-1,a)),{...i,pageCount:a}}),e.getPageOptions=oe(()=>[e.getPageCount()],r=>{let i=[];return r&&r>0&&(i=[...new Array(r)].fill(null).map((o,a)=>a)),i},ae(e.options,"debugTable","getPageOptions")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:r}=e.getState().pagination,i=e.getPageCount();return i===-1?!0:i===0?!1:r<i-1},e.previousPage=()=>e.setPageIndex(r=>r-1),e.nextPage=()=>e.setPageIndex(r=>r+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var r;return(r=e.options.pageCount)!=null?r:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var r;return(r=e.options.rowCount)!=null?r:e.getPrePaginationRowModel().rows.length}}},ic=()=>({top:[],bottom:[]}),j1={getInitialState:e=>({rowPinning:ic(),...e}),getDefaultOptions:e=>({onRowPinningChange:Nt("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,r,i)=>{const o=r?e.getLeafRows().map(l=>{let{id:u}=l;return u}):[],a=i?e.getParentRows().map(l=>{let{id:u}=l;return u}):[],s=new Set([...a,e.id,...o]);t.setRowPinning(l=>{var u,c;if(n==="bottom"){var d,h;return{top:((d=l==null?void 0:l.top)!=null?d:[]).filter(m=>!(s!=null&&s.has(m))),bottom:[...((h=l==null?void 0:l.bottom)!=null?h:[]).filter(m=>!(s!=null&&s.has(m))),...Array.from(s)]}}if(n==="top"){var f,g;return{top:[...((f=l==null?void 0:l.top)!=null?f:[]).filter(m=>!(s!=null&&s.has(m))),...Array.from(s)],bottom:((g=l==null?void 0:l.bottom)!=null?g:[]).filter(m=>!(s!=null&&s.has(m)))}}return{top:((u=l==null?void 0:l.top)!=null?u:[]).filter(m=>!(s!=null&&s.has(m))),bottom:((c=l==null?void 0:l.bottom)!=null?c:[]).filter(m=>!(s!=null&&s.has(m)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:i}=t.options;return typeof r=="function"?r(e):(n=r??i)!=null?n:!0},e.getIsPinned=()=>{const n=[e.id],{top:r,bottom:i}=t.getState().rowPinning,o=n.some(s=>r==null?void 0:r.includes(s)),a=n.some(s=>i==null?void 0:i.includes(s));return o?"top":a?"bottom":!1},e.getPinnedIndex=()=>{var n,r;const i=e.getIsPinned();if(!i)return-1;const o=(n=i==="top"?t.getTopRows():t.getBottomRows())==null?void 0:n.map(a=>{let{id:s}=a;return s});return(r=o==null?void 0:o.indexOf(e.id))!=null?r:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?ic():(n=(r=e.initialState)==null?void 0:r.rowPinning)!=null?n:ic())},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;if(!t){var i,o;return!!((i=r.top)!=null&&i.length||(o=r.bottom)!=null&&o.length)}return!!((n=r[t])!=null&&n.length)},e._getPinnedRows=(t,n,r)=>{var i;return((i=e.options.keepPinnedRows)==null||i?(n??[]).map(a=>{const s=e.getRow(a,!0);return s.getIsAllParentsExpanded()?s:null}):(n??[]).map(a=>t.find(s=>s.id===a))).filter(Boolean).map(a=>({...a,position:r}))},e.getTopRows=oe(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),ae(e.options,"debugRows","getTopRows")),e.getBottomRows=oe(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),ae(e.options,"debugRows","getBottomRows")),e.getCenterRows=oe(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,n,r)=>{const i=new Set([...n??[],...r??[]]);return t.filter(o=>!i.has(o.id))},ae(e.options,"debugRows","getCenterRows"))}},W1={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Nt("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:(n=e.initialState.rowSelection)!=null?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const r={...n},i=e.getPreGroupedRowModel().flatRows;return t?i.forEach(o=>{o.getCanSelect()&&(r[o.id]=!0)}):i.forEach(o=>{delete r[o.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const r=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),i={...n};return e.getRowModel().rows.forEach(o=>{yd(i,o.id,r,!0,e)}),i}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=oe(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?tl(e,n):{rows:[],flatRows:[],rowsById:{}},ae(e.options,"debugTable","getSelectedRowModel")),e.getFilteredSelectedRowModel=oe(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?tl(e,n):{rows:[],flatRows:[],rowsById:{}},ae(e.options,"debugTable","getFilteredSelectedRowModel")),e.getGroupedSelectedRowModel=oe(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?tl(e,n):{rows:[],flatRows:[],rowsById:{}},ae(e.options,"debugTable","getGroupedSelectedRowModel")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=!!(t.length&&Object.keys(n).length);return r&&t.some(i=>i.getCanSelect()&&!n[i.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(i=>i.getCanSelect()),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some(i=>!n[i.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{const i=e.getIsSelected();t.setRowSelection(o=>{var a;if(n=typeof n<"u"?n:!i,e.getCanSelect()&&i===n)return o;const s={...o};return yd(s,e.id,n,(a=r==null?void 0:r.selectChildren)!=null?a:!0,t),s})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return bu(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return Rl(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return Rl(e,n)==="all"},e.getCanSelect=()=>{var n;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(n=t.options.enableRowSelection)!=null?n:!0},e.getCanSelectSubRows=()=>{var n;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(n=t.options.enableSubRowSelection)!=null?n:!0},e.getCanMultiSelect=()=>{var n;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(n=t.options.enableMultiRowSelection)!=null?n:!0},e.getToggleSelectedHandler=()=>{const n=e.getCanSelect();return r=>{var i;n&&e.toggleSelected((i=r.target)==null?void 0:i.checked)}}}},yd=(e,t,n,r,i)=>{var o;const a=i.getRow(t,!0);n?(a.getCanMultiSelect()||Object.keys(e).forEach(s=>delete e[s]),a.getCanSelect()&&(e[t]=!0)):delete e[t],r&&(o=a.subRows)!=null&&o.length&&a.getCanSelectSubRows()&&a.subRows.forEach(s=>yd(e,s.id,n,r,i))};function tl(e,t){const n=e.getState().rowSelection,r=[],i={},o=function(a,s){return a.map(l=>{var u;const c=bu(l,n);if(c&&(r.push(l),i[l.id]=l),(u=l.subRows)!=null&&u.length&&(l={...l,subRows:o(l.subRows)}),c)return l}).filter(Boolean)};return{rows:o(t.rows),flatRows:r,rowsById:i}}function bu(e,t){var n;return(n=t[e.id])!=null?n:!1}function Rl(e,t,n){var r;if(!((r=e.subRows)!=null&&r.length))return!1;let i=!0,o=!1;return e.subRows.forEach(a=>{if(!(o&&!i)&&(a.getCanSelect()&&(bu(a,t)?o=!0:i=!1),a.subRows&&a.subRows.length)){const s=Rl(a,t);s==="all"?o=!0:(s==="some"&&(o=!0),i=!1)}}),i?"all":o?"some":!1}const Al=/([0-9]+)/gm,rI=(e,t,n)=>z1(Vr(e.getValue(n)).toLowerCase(),Vr(t.getValue(n)).toLowerCase()),iI=(e,t,n)=>z1(Vr(e.getValue(n)),Vr(t.getValue(n))),oI=(e,t,n)=>Bf(Vr(e.getValue(n)).toLowerCase(),Vr(t.getValue(n)).toLowerCase()),aI=(e,t,n)=>Bf(Vr(e.getValue(n)),Vr(t.getValue(n))),sI=(e,t,n)=>{const r=e.getValue(n),i=t.getValue(n);return r>i?1:r<i?-1:0},lI=(e,t,n)=>Bf(e.getValue(n),t.getValue(n));function Bf(e,t){return e===t?0:e>t?1:-1}function Vr(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function z1(e,t){const n=e.split(Al).filter(Boolean),r=t.split(Al).filter(Boolean);for(;n.length&&r.length;){const i=n.shift(),o=r.shift(),a=parseInt(i,10),s=parseInt(o,10),l=[a,s].sort();if(isNaN(l[0])){if(i>o)return 1;if(o>i)return-1;continue}if(isNaN(l[1]))return isNaN(a)?-1:1;if(a>s)return 1;if(s>a)return-1}return n.length-r.length}const Yi={alphanumeric:rI,alphanumericCaseSensitive:iI,text:oI,textCaseSensitive:aI,datetime:sI,basic:lI},G1={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Nt("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const i of n){const o=i==null?void 0:i.getValue(e.id);if(Object.prototype.toString.call(o)==="[object Date]")return Yi.datetime;if(typeof o=="string"&&(r=!0,o.split(Al).length>1))return Yi.alphanumeric}return r?Yi.text:Yi.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return typeof(n==null?void 0:n.getValue(e.id))=="string"?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return Ja(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(n=(r=t.options.sortingFns)==null?void 0:r[e.columnDef.sortingFn])!=null?n:Yi[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const i=e.getNextSortingOrder(),o=typeof n<"u"&&n!==null;t.setSorting(a=>{const s=a==null?void 0:a.find(f=>f.id===e.id),l=a==null?void 0:a.findIndex(f=>f.id===e.id);let u=[],c,d=o?n:i==="desc";if(a!=null&&a.length&&e.getCanMultiSort()&&r?s?c="toggle":c="add":a!=null&&a.length&&l!==a.length-1?c="replace":s?c="toggle":c="replace",c==="toggle"&&(o||i||(c="remove")),c==="add"){var h;u=[...a,{id:e.id,desc:d}],u.splice(0,u.length-((h=t.options.maxMultiSortColCount)!=null?h:Number.MAX_SAFE_INTEGER))}else c==="toggle"?u=a.map(f=>f.id===e.id?{...f,desc:d}:f):c==="remove"?u=a.filter(f=>f.id!==e.id):u=[{id:e.id,desc:d}];return u})},e.getFirstSortDir=()=>{var n,r;return((n=(r=e.columnDef.sortDescFirst)!=null?r:t.options.sortDescFirst)!=null?n:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=n=>{var r,i;const o=e.getFirstSortDir(),a=e.getIsSorted();return a?a!==o&&((r=t.options.enableSortingRemoval)==null||r)&&(!(n&&(i=t.options.enableMultiRemove)!=null)||i)?!1:a==="desc"?"asc":"desc":o},e.getCanSort=()=>{var n,r;return((n=e.columnDef.enableSorting)!=null?n:!0)&&((r=t.options.enableSorting)!=null?r:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return(n=(r=e.columnDef.enableMultiSort)!=null?r:t.options.enableMultiSort)!=null?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const r=(n=t.getState().sorting)==null?void 0:n.find(i=>i.id===e.id);return r?r.desc?"desc":"asc":!1},e.getSortIndex=()=>{var n,r;return(n=(r=t.getState().sorting)==null?void 0:r.findIndex(i=>i.id===e.id))!=null?n:-1},e.clearSorting=()=>{t.setSorting(n=>n!=null&&n.length?n.filter(r=>r.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return r=>{n&&(r.persist==null||r.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(r):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:(n=(r=e.initialState)==null?void 0:r.sorting)!=null?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},uI=[x1,O1,T1,k1,C1,A1,N1,V1,G1,F1,L1,H1,j1,W1,M1];function Z1(e){var t,n;process.env.NODE_ENV!=="production"&&(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");const r=[...uI,...(t=e._features)!=null?t:[]];let i={_features:r};const o=i._features.reduce((h,f)=>Object.assign(h,f.getDefaultOptions==null?void 0:f.getDefaultOptions(i)),{}),a=h=>i.options.mergeOptions?i.options.mergeOptions(o,h):{...o,...h};let l={...{},...(n=e.initialState)!=null?n:{}};i._features.forEach(h=>{var f;l=(f=h.getInitialState==null?void 0:h.getInitialState(l))!=null?f:l});const u=[];let c=!1;const d={_features:r,options:{...o,...e},initialState:l,_queue:h=>{u.push(h),c||(c=!0,Promise.resolve().then(()=>{for(;u.length;)u.shift()();c=!1}).catch(f=>setTimeout(()=>{throw f})))},reset:()=>{i.setState(i.initialState)},setOptions:h=>{const f=sr(h,i.options);i.options=a(f)},getState:()=>i.options.state,setState:h=>{i.options.onStateChange==null||i.options.onStateChange(h)},_getRowId:(h,f,g)=>{var m;return(m=i.options.getRowId==null?void 0:i.options.getRowId(h,f,g))!=null?m:`${g?[g.id,f].join("."):f}`},getCoreRowModel:()=>(i._getCoreRowModel||(i._getCoreRowModel=i.options.getCoreRowModel(i)),i._getCoreRowModel()),getRowModel:()=>i.getPaginationRowModel(),getRow:(h,f)=>{let g=(f?i.getPrePaginationRowModel():i.getRowModel()).rowsById[h];if(!g&&(g=i.getCoreRowModel().rowsById[h],!g))throw process.env.NODE_ENV!=="production"?new Error(`getRow could not find row with ID: ${h}`):new Error;return g},_getDefaultColumnDef:oe(()=>[i.options.defaultColumn],h=>{var f;return h=(f=h)!=null?f:{},{header:g=>{const m=g.header.column.columnDef;return m.accessorKey?m.accessorKey:m.accessorFn?m.id:null},cell:g=>{var m,b;return(m=(b=g.renderValue())==null||b.toString==null?void 0:b.toString())!=null?m:null},...i._features.reduce((g,m)=>Object.assign(g,m.getDefaultColumnDef==null?void 0:m.getDefaultColumnDef()),{}),...h}},ae(e,"debugColumns","_getDefaultColumnDef")),_getColumnDefs:()=>i.options.columns,getAllColumns:oe(()=>[i._getColumnDefs()],h=>{const f=function(g,m,b){return b===void 0&&(b=0),g.map(y=>{const v=y1(i,y,b,m),x=y;return v.columns=x.columns?f(x.columns,v,b+1):[],v})};return f(h)},ae(e,"debugColumns","getAllColumns")),getAllFlatColumns:oe(()=>[i.getAllColumns()],h=>h.flatMap(f=>f.getFlatColumns()),ae(e,"debugColumns","getAllFlatColumns")),_getAllFlatColumnsById:oe(()=>[i.getAllFlatColumns()],h=>h.reduce((f,g)=>(f[g.id]=g,f),{}),ae(e,"debugColumns","getAllFlatColumnsById")),getAllLeafColumns:oe(()=>[i.getAllColumns(),i._getOrderColumnsFn()],(h,f)=>{let g=h.flatMap(m=>m.getLeafColumns());return f(g)},ae(e,"debugColumns","getAllLeafColumns")),getColumn:h=>{const f=i._getAllFlatColumnsById()[h];return process.env.NODE_ENV!=="production"&&!f&&console.error(`[Table] Column with id '${h}' does not exist.`),f}};Object.assign(i,d);for(let h=0;h<i._features.length;h++){const f=i._features[h];f==null||f.createTable==null||f.createTable(i)}return i}function cI(){return e=>oe(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(i,o,a){o===void 0&&(o=0);const s=[];for(let u=0;u<i.length;u++){const c=Ka(e,e._getRowId(i[u],u,a),i[u],u,o,void 0,a==null?void 0:a.id);if(n.flatRows.push(c),n.rowsById[c.id]=c,s.push(c),e.options.getSubRows){var l;c.originalSubRows=e.options.getSubRows(i[u],u),(l=c.originalSubRows)!=null&&l.length&&(c.subRows=r(c.originalSubRows,o+1,c))}}return s};return n.rows=r(t),n},ae(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}function dI(){return e=>oe(()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows],(t,n,r)=>!n.rows.length||t!==!0&&!Object.keys(t??{}).length||!r?n:Of(n),ae(e.options,"debugTable","getExpandedRowModel"))}function Of(e){const t=[],n=r=>{var i;t.push(r),(i=r.subRows)!=null&&i.length&&r.getIsExpanded()&&r.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function fI(){return(e,t)=>oe(()=>{var n;return[(n=e.getColumn(t))==null?void 0:n.getFacetedRowModel()]},n=>{var r;if(!n)return;const i=(r=n.flatRows[0])==null?void 0:r.getUniqueValues(t);if(typeof i>"u")return;let o=[i,i];for(let a=0;a<n.flatRows.length;a++){const s=n.flatRows[a].getUniqueValues(t);for(let l=0;l<s.length;l++){const u=s[l];u<o[0]?o[0]=u:u>o[1]&&(o[1]=u)}}return o},ae(e.options,"debugTable","getFacetedMinMaxValues"))}function X1(e,t,n){return n.options.filterFromLeafRows?hI(e,t,n):gI(e,t,n)}function hI(e,t,n){var r;const i=[],o={},a=(r=n.options.maxLeafRowFilterDepth)!=null?r:100,s=function(l,u){u===void 0&&(u=0);const c=[];for(let h=0;h<l.length;h++){var d;let f=l[h];const g=Ka(n,f.id,f.original,f.index,f.depth,void 0,f.parentId);if(g.columnFilters=f.columnFilters,(d=f.subRows)!=null&&d.length&&u<a){if(g.subRows=s(f.subRows,u+1),f=g,t(f)&&!g.subRows.length){c.push(f),o[f.id]=f,i.push(f);continue}if(t(f)||g.subRows.length){c.push(f),o[f.id]=f,i.push(f);continue}}else f=g,t(f)&&(c.push(f),o[f.id]=f,i.push(f))}return c};return{rows:s(e),flatRows:i,rowsById:o}}function gI(e,t,n){var r;const i=[],o={},a=(r=n.options.maxLeafRowFilterDepth)!=null?r:100,s=function(l,u){u===void 0&&(u=0);const c=[];for(let h=0;h<l.length;h++){let f=l[h];if(t(f)){var d;if((d=f.subRows)!=null&&d.length&&u<a){const m=Ka(n,f.id,f.original,f.index,f.depth,void 0,f.parentId);m.subRows=s(f.subRows,u+1),f=m}c.push(f),i.push(f),o[f.id]=f}}return c};return{rows:s(e),flatRows:i,rowsById:o}}function mI(){return(e,t)=>oe(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter,e.getFilteredRowModel()],(n,r,i)=>{if(!n.rows.length||!(r!=null&&r.length)&&!i)return n;const o=[...r.map(s=>s.id).filter(s=>s!==t),i?"__global__":void 0].filter(Boolean),a=s=>{for(let l=0;l<o.length;l++)if(s.columnFilters[o[l]]===!1)return!1;return!0};return X1(n.rows,a,e)},ae(e.options,"debugTable","getFacetedRowModel"))}function pI(){return(e,t)=>oe(()=>{var n;return[(n=e.getColumn(t))==null?void 0:n.getFacetedRowModel()]},n=>{if(!n)return new Map;let r=new Map;for(let o=0;o<n.flatRows.length;o++){const a=n.flatRows[o].getUniqueValues(t);for(let s=0;s<a.length;s++){const l=a[s];if(r.has(l)){var i;r.set(l,((i=r.get(l))!=null?i:0)+1)}else r.set(l,1)}}return r},ae(e.options,"debugTable",`getFacetedUniqueValues_${t}`))}function bI(){return e=>oe(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(t,n,r)=>{if(!t.rows.length||!(n!=null&&n.length)&&!r){for(let h=0;h<t.flatRows.length;h++)t.flatRows[h].columnFilters={},t.flatRows[h].columnFiltersMeta={};return t}const i=[],o=[];(n??[]).forEach(h=>{var f;const g=e.getColumn(h.id);if(!g)return;const m=g.getFilterFn();if(!m){process.env.NODE_ENV!=="production"&&console.warn(`Could not find a valid 'column.filterFn' for column with the ID: ${g.id}.`);return}i.push({id:h.id,filterFn:m,resolvedValue:(f=m.resolveFilterValue==null?void 0:m.resolveFilterValue(h.value))!=null?f:h.value})});const a=(n??[]).map(h=>h.id),s=e.getGlobalFilterFn(),l=e.getAllLeafColumns().filter(h=>h.getCanGlobalFilter());r&&s&&l.length&&(a.push("__global__"),l.forEach(h=>{var f;o.push({id:h.id,filterFn:s,resolvedValue:(f=s.resolveFilterValue==null?void 0:s.resolveFilterValue(r))!=null?f:r})}));let u,c;for(let h=0;h<t.flatRows.length;h++){const f=t.flatRows[h];if(f.columnFilters={},i.length)for(let g=0;g<i.length;g++){u=i[g];const m=u.id;f.columnFilters[m]=u.filterFn(f,m,u.resolvedValue,b=>{f.columnFiltersMeta[m]=b})}if(o.length){for(let g=0;g<o.length;g++){c=o[g];const m=c.id;if(c.filterFn(f,m,c.resolvedValue,b=>{f.columnFiltersMeta[m]=b})){f.columnFilters.__global__=!0;break}}f.columnFilters.__global__!==!0&&(f.columnFilters.__global__=!1)}}const d=h=>{for(let f=0;f<a.length;f++)if(h.columnFilters[a[f]]===!1)return!1;return!0};return X1(t.rows,d,e)},ae(e.options,"debugTable","getFilteredRowModel",()=>e._autoResetPageIndex()))}function vI(){return e=>oe(()=>[e.getState().grouping,e.getPreGroupedRowModel()],(t,n)=>{if(!n.rows.length||!t.length)return n;const r=t.filter(l=>e.getColumn(l)),i=[],o={},a=function(l,u,c){if(u===void 0&&(u=0),u>=r.length)return l.map(g=>(g.depth=u,i.push(g),o[g.id]=g,g.subRows&&(g.subRows=a(g.subRows,u+1,g.id)),g));const d=r[u],h=yI(l,d);return Array.from(h.entries()).map((g,m)=>{let[b,y]=g,v=`${d}:${b}`;v=c?`${c}>${v}`:v;const x=a(y,u+1,v),C=u?kf(y,I=>I.subRows):y,D=Ka(e,v,C[0].original,m,u,void 0,c);return Object.assign(D,{groupingColumnId:d,groupingValue:b,subRows:x,leafRows:C,getValue:I=>{if(r.includes(I)){if(D._valuesCache.hasOwnProperty(I))return D._valuesCache[I];if(y[0]){var T;D._valuesCache[I]=(T=y[0].getValue(I))!=null?T:void 0}return D._valuesCache[I]}if(D._groupingValuesCache.hasOwnProperty(I))return D._groupingValuesCache[I];const p=e.getColumn(I),S=p==null?void 0:p.getAggregationFn();if(S)return D._groupingValuesCache[I]=S(I,C,y),D._groupingValuesCache[I]}}),x.forEach(I=>{i.push(I),o[I.id]=I}),D})},s=a(n.rows,0);return s.forEach(l=>{i.push(l),o[l.id]=l}),{rows:s,flatRows:i,rowsById:o}},ae(e.options,"debugTable","getGroupedRowModel",()=>{e._queue(()=>{e._autoResetExpanded(),e._autoResetPageIndex()})}))}function yI(e,t){const n=new Map;return e.reduce((r,i)=>{const o=`${i.getGroupingValue(t)}`,a=r.get(o);return a?a.push(i):r.set(o,[i]),r},n)}function xI(e){return t=>oe(()=>[t.getState().pagination,t.getPrePaginationRowModel(),t.options.paginateExpandedRows?void 0:t.getState().expanded],(n,r)=>{if(!r.rows.length)return r;const{pageSize:i,pageIndex:o}=n;let{rows:a,flatRows:s,rowsById:l}=r;const u=i*o,c=u+i;a=a.slice(u,c);let d;t.options.paginateExpandedRows?d={rows:a,flatRows:s,rowsById:l}:d=Of({rows:a,flatRows:s,rowsById:l}),d.flatRows=[];const h=f=>{d.flatRows.push(f),f.subRows.length&&f.subRows.forEach(h)};return d.rows.forEach(h),d},ae(t.options,"debugTable","getPaginationRowModel"))}function CI(){return e=>oe(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,n)=>{if(!n.rows.length||!(t!=null&&t.length))return n;const r=e.getState().sorting,i=[],o=r.filter(l=>{var u;return(u=e.getColumn(l.id))==null?void 0:u.getCanSort()}),a={};o.forEach(l=>{const u=e.getColumn(l.id);u&&(a[l.id]={sortUndefined:u.columnDef.sortUndefined,invertSorting:u.columnDef.invertSorting,sortingFn:u.getSortingFn()})});const s=l=>{const u=l.map(c=>({...c}));return u.sort((c,d)=>{for(let f=0;f<o.length;f+=1){var h;const g=o[f],m=a[g.id],b=m.sortUndefined,y=(h=g==null?void 0:g.desc)!=null?h:!1;let v=0;if(b){const x=c.getValue(g.id),C=d.getValue(g.id),D=x===void 0,I=C===void 0;if(D||I){if(b==="first")return D?-1:1;if(b==="last")return D?1:-1;v=D&&I?0:D?b:-b}}if(v===0&&(v=m.sortingFn(c,d,g.id)),v!==0)return y&&(v*=-1),m.invertSorting&&(v*=-1),v}return c.index-d.index}),u.forEach(c=>{var d;i.push(c),(d=c.subRows)!=null&&d.length&&(c.subRows=s(c.subRows))}),u};return{rows:s(n.rows),flatRows:i,rowsById:n.rowsById}},ae(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex()))}/**
37
37
  * react-table
38
38
  *
39
39
  * Copyright (c) TanStack
@@ -42,7 +42,7 @@
42
42
  * LICENSE.md file in the root directory of this source tree.
43
43
  *
44
44
  * @license MIT
45
- */function ma(e,t){return e?wI(e)?G.createElement(e,t):e:null}function wI(e){return DI(e)||typeof e=="function"||SI(e)}function DI(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function SI(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function EI(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=G.useState(()=>({current:Z1(t)})),[r,i]=G.useState(()=>n.current.initialState);return n.current.setOptions(o=>({...o,...e,state:{...r,...e.state},onStateChange:a=>{i(a),e.onStateChange==null||e.onStateChange(a)}})),n.current}const II=Object.freeze(Object.defineProperty({__proto__:null,ColumnFaceting:C1,ColumnFiltering:A1,ColumnGrouping:F1,ColumnOrdering:T1,ColumnPinning:k1,ColumnSizing:M1,ColumnVisibility:O1,GlobalFaceting:N1,GlobalFiltering:V1,Headers:x1,RowExpanding:L1,RowPagination:j1,RowPinning:H1,RowSelection:W1,RowSorting:G1,_getVisibleLeafColumns:eo,aggregationFns:el,buildHeaderGroups:No,createCell:v1,createColumn:y1,createColumnHelper:ZE,createRow:Ka,createTable:Z1,defaultColumnSizing:Vo,expandRows:Of,filterFns:kn,flattenBy:kf,flexRender:ma,functionalUpdate:sr,getCoreRowModel:cI,getExpandedRowModel:dI,getFacetedMinMaxValues:fI,getFacetedRowModel:mI,getFacetedUniqueValues:pI,getFilteredRowModel:bI,getGroupedRowModel:vI,getMemoOptions:ae,getPaginationRowModel:xI,getSortedRowModel:CI,isFunction:Ja,isNumberArray:b1,isRowSelected:bu,isSubRowSelected:Rl,makeStateUpdater:Nt,memo:oe,noop:XE,orderColumns:P1,passiveEventSupported:B1,reSplitAlphaNumeric:Al,selectRowsFn:tl,shouldAutoRemoveFilter:pd,sortingFns:Yi,useReactTable:EI},Symbol.toStringTag,{value:"Module"})),vu=0,zr=1,Do=2,Y1=4;function pa(e,t){return n=>e(t(n))}function _I(e,t){return t(e)}function U1(e,t){return n=>e(t,n)}function Ug(e,t){return()=>e(t)}function yu(e,t){return t(e),e}function Ge(...e){return e}function $I(e){e()}function Jg(e){return()=>e}function RI(...e){return()=>{e.map($I)}}function Nf(e){return e!==void 0}function Ri(){}function Ve(e,t){return e(zr,t)}function xe(e,t){e(vu,t)}function Vf(e){e(Do)}function wt(e){return e(Y1)}function se(e,t){return Ve(e,U1(t,vu))}function Gn(e,t){const n=e(zr,r=>{n(),t(r)});return n}function $e(){const e=[];return(t,n)=>{switch(t){case Do:e.splice(0,e.length);return;case zr:return e.push(n),()=>{const r=e.indexOf(n);r>-1&&e.splice(r,1)};case vu:e.slice().forEach(r=>{r(n)});return;default:throw new Error(`unrecognized action ${t}`)}}}function q(e){let t=e;const n=$e();return(r,i)=>{switch(r){case zr:i(t);break;case vu:t=i;break;case Y1:return t}return n(r,i)}}function AI(e){let t,n;const r=()=>t&&t();return function(i,o){switch(i){case zr:return o?n===o?void 0:(r(),n=o,t=Ve(e,o),t):(r(),Ri);case Do:r(),n=null;return;default:throw new Error(`unrecognized action ${i}`)}}}function Yt(e){return yu($e(),t=>se(e,t))}function Dt(e,t){return yu(q(t),n=>se(e,n))}function FI(...e){return t=>e.reduceRight(_I,t)}function J(e,...t){const n=FI(...t);return(r,i)=>{switch(r){case zr:return Ve(e,n(i));case Do:Vf(e);return}}}function J1(e,t){return e===t}function ze(e=J1){let t;return n=>r=>{e(t,r)||(t=r,n(r))}}function me(e){return t=>n=>{e(n)&&t(n)}}function te(e){return t=>pa(t,e)}function Bn(e){return t=>()=>t(e)}function Nn(e,t){return n=>r=>n(t=e(t,r))}function ho(e){return t=>n=>{e>0?e--:t(n)}}function Ar(e){let t=null,n;return r=>i=>{t=i,!n&&(n=setTimeout(()=>{n=void 0,r(t)},e))}}function Kg(e){let t,n;return r=>i=>{t=i,n&&clearTimeout(n),n=setTimeout(()=>{r(t)},e)}}function Ce(...e){const t=new Array(e.length);let n=0,r=null;const i=Math.pow(2,e.length)-1;return e.forEach((o,a)=>{const s=Math.pow(2,a);Ve(o,l=>{const u=n;n=n|s,t[a]=l,u!==i&&n===i&&r&&(r(),r=null)})}),o=>a=>{const s=()=>o([a].concat(t));n===i?s():r=s}}function qg(...e){return function(t,n){switch(t){case zr:return RI(...e.map(r=>Ve(r,n)));case Do:return;default:throw new Error(`unrecognized action ${t}`)}}}function pe(e,t=J1){return J(e,ze(t))}function ft(...e){const t=$e(),n=new Array(e.length);let r=0;const i=Math.pow(2,e.length)-1;return e.forEach((o,a)=>{const s=Math.pow(2,a);Ve(o,l=>{n[a]=l,r=r|s,r===i&&xe(t,n)})}),function(o,a){switch(o){case zr:return r===i&&a(n),Ve(t,a);case Do:return Vf(t);default:throw new Error(`unrecognized action ${o}`)}}}function Pe(e,t=[],{singleton:n}={singleton:!0}){return{id:PI(),constructor:e,dependencies:t,singleton:n}}const PI=()=>Symbol();function TI(e){const t=new Map,n=({id:r,constructor:i,dependencies:o,singleton:a})=>{if(a&&t.has(r))return t.get(r);const s=i(o.map(l=>n(l)));return a&&t.set(r,s),s};return n(e)}function kI(e,t){const n={},r={};let i=0;const o=e.length;for(;i<o;)r[e[i]]=1,i+=1;for(const a in t)r.hasOwnProperty(a)||(n[a]=t[a]);return n}const xs=typeof document<"u"?w.useLayoutEffect:w.useEffect;function Lf(e,t,n){const r=Object.keys(t.required||{}),i=Object.keys(t.optional||{}),o=Object.keys(t.methods||{}),a=Object.keys(t.events||{}),s=w.createContext({});function l(y,v){y.propsReady&&xe(y.propsReady,!1);for(const x of r){const C=y[t.required[x]];xe(C,v[x])}for(const x of i)if(x in v){const C=y[t.optional[x]];xe(C,v[x])}y.propsReady&&xe(y.propsReady,!0)}function u(y){return o.reduce((v,x)=>(v[x]=C=>{const D=y[t.methods[x]];xe(D,C)},v),{})}function c(y){return a.reduce((v,x)=>(v[x]=AI(y[t.events[x]]),v),{})}const d=w.forwardRef((y,v)=>{const{children:x,...C}=y,[D]=w.useState(()=>yu(TI(e),T=>l(T,C))),[I]=w.useState(Ug(c,D));return xs(()=>{for(const T of a)T in C&&Ve(I[T],C[T]);return()=>{Object.values(I).map(Vf)}},[C,I,D]),xs(()=>{l(D,C)}),w.useImperativeHandle(v,Jg(u(D))),w.createElement(s.Provider,{value:D},n?w.createElement(n,kI([...r,...i,...a],C),x):x)}),h=y=>w.useCallback(U1(xe,w.useContext(s)[y]),[y]),f=y=>{const x=w.useContext(s)[y],C=w.useCallback(D=>Ve(x,D),[x]);return w.useSyncExternalStore(C,()=>wt(x),()=>wt(x))},g=y=>{const x=w.useContext(s)[y],[C,D]=w.useState(Ug(wt,x));return xs(()=>Ve(x,I=>{I!==C&&D(Jg(I))}),[x,C]),C},m=w.version.startsWith("18")?f:g;return{Component:d,usePublisher:h,useEmitterValue:m,useEmitter:(y,v)=>{const C=w.useContext(s)[y];xs(()=>Ve(C,v),[v,C])}}}const MI=typeof document<"u"?w.useLayoutEffect:w.useEffect,BI=MI;var Ut=(e=>(e[e.DEBUG=0]="DEBUG",e[e.INFO=1]="INFO",e[e.WARN=2]="WARN",e[e.ERROR=3]="ERROR",e))(Ut||{});const OI={0:"debug",1:"log",2:"warn",3:"error"},NI=()=>typeof globalThis>"u"?window:globalThis,Gr=Pe(()=>{const e=q(3);return{log:q((n,r,i=1)=>{var o;const a=(o=NI().VIRTUOSO_LOG_LEVEL)!=null?o:wt(e);i>=a&&console[OI[i]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",n,r)}),logLevel:e}},[],{singleton:!0});function jf(e,t=!0){const n=w.useRef(null);let r=i=>{};if(typeof ResizeObserver<"u"){const i=w.useMemo(()=>new ResizeObserver(o=>{requestAnimationFrame(()=>{const a=o[0].target;a.offsetParent!==null&&e(a)})}),[e]);r=o=>{o&&t?(i.observe(o),n.current=o):(n.current&&i.unobserve(n.current),n.current=null)}}return{ref:n,callbackRef:r}}function Zn(e,t=!0){return jf(e,t).callbackRef}function K1(e,t,n,r,i,o,a){const s=w.useCallback(l=>{const u=VI(l.children,t,"offsetHeight",i);let c=l.parentElement;for(;!c.dataset.virtuosoScroller;)c=c.parentElement;const d=c.lastElementChild.dataset.viewportType==="window",h=a?a.scrollTop:d?window.pageYOffset||document.documentElement.scrollTop:c.scrollTop,f=a?a.scrollHeight:d?document.documentElement.scrollHeight:c.scrollHeight,g=a?a.offsetHeight:d?window.innerHeight:c.offsetHeight;r({scrollTop:Math.max(h,0),scrollHeight:f,viewportHeight:g}),o==null||o(LI("row-gap",getComputedStyle(l).rowGap,i)),u!==null&&e(u)},[e,t,i,o,a,r]);return jf(s,n)}function VI(e,t,n,r){const i=e.length;if(i===0)return null;const o=[];for(let a=0;a<i;a++){const s=e.item(a);if(!s||s.dataset.index===void 0)continue;const l=parseInt(s.dataset.index),u=parseFloat(s.dataset.knownSize),c=t(s,n);if(c===0&&r("Zero-sized element, this should not happen",{child:s},Ut.ERROR),c===u)continue;const d=o[o.length-1];o.length===0||d.size!==c||d.endIndex!==l-1?o.push({startIndex:l,endIndex:l,size:c}):o[o.length-1].endIndex++}return o}function LI(e,t,n){return t!=="normal"&&!(t!=null&&t.endsWith("px"))&&n(`${e} was not resolved to pixel value correctly`,t,Ut.WARN),t==="normal"?0:parseInt(t??"0",10)}function Sn(e,t){return Math.round(e.getBoundingClientRect()[t])}function q1(e,t){return Math.abs(e-t)<1.01}function Q1(e,t,n,r=Ri,i){const o=w.useRef(null),a=w.useRef(null),s=w.useRef(null),l=w.useCallback(d=>{const h=d.target,f=h===window||h===document,g=f?window.pageYOffset||document.documentElement.scrollTop:h.scrollTop,m=f?document.documentElement.scrollHeight:h.scrollHeight,b=f?window.innerHeight:h.offsetHeight,y=()=>{e({scrollTop:Math.max(g,0),scrollHeight:m,viewportHeight:b})};d.suppressFlushSync?y():Xa.flushSync(y),a.current!==null&&(g===a.current||g<=0||g===m-b)&&(a.current=null,t(!0),s.current&&(clearTimeout(s.current),s.current=null))},[e,t]);w.useEffect(()=>{const d=i||o.current;return r(i||o.current),l({target:d,suppressFlushSync:!0}),d.addEventListener("scroll",l,{passive:!0}),()=>{r(null),d.removeEventListener("scroll",l)}},[o,l,n,r,i]);function u(d){const h=o.current;if(!h||"offsetHeight"in h&&h.offsetHeight===0)return;const f=d.behavior==="smooth";let g,m,b;h===window?(m=Math.max(Sn(document.documentElement,"height"),document.documentElement.scrollHeight),g=window.innerHeight,b=document.documentElement.scrollTop):(m=h.scrollHeight,g=Sn(h,"height"),b=h.scrollTop);const y=m-g;if(d.top=Math.ceil(Math.max(Math.min(y,d.top),0)),q1(g,m)||d.top===b){e({scrollTop:b,scrollHeight:m,viewportHeight:g}),f&&t(!0);return}f?(a.current=d.top,s.current&&clearTimeout(s.current),s.current=setTimeout(()=>{s.current=null,a.current=null,t(!0)},1e3)):a.current=null,h.scrollTo(d)}function c(d){o.current.scrollBy(d)}return{scrollerRef:o,scrollByCallback:c,scrollToCallback:u}}const Ft=Pe(()=>{const e=$e(),t=$e(),n=q(0),r=$e(),i=q(0),o=$e(),a=$e(),s=q(0),l=q(0),u=q(0),c=q(0),d=$e(),h=$e(),f=q(!1);return se(J(e,te(({scrollTop:g})=>g)),t),se(J(e,te(({scrollHeight:g})=>g)),a),se(t,i),{scrollContainerState:e,scrollTop:t,viewportHeight:o,headerHeight:s,fixedHeaderHeight:l,fixedFooterHeight:u,footerHeight:c,scrollHeight:a,smoothScrollTargetReached:r,scrollTo:d,scrollBy:h,statefulScrollTop:i,deviation:n,scrollingInProgress:f}},[],{singleton:!0}),ba={lvl:0};function ev(e,t,n,r=ba,i=ba){return{k:e,v:t,lvl:n,l:r,r:i}}function je(e){return e===ba}function to(){return ba}function xd(e,t){if(je(e))return ba;const{k:n,l:r,r:i}=e;if(t===n){if(je(r))return i;if(je(i))return r;{const[o,a]=tv(r);return nl(st(e,{k:o,v:a,l:nv(r)}))}}else return t<n?nl(st(e,{l:xd(r,t)})):nl(st(e,{r:xd(i,t)}))}function va(e,t){if(!je(e))return t===e.k?e.v:t<e.k?va(e.l,t):va(e.r,t)}function En(e,t,n="k"){if(je(e))return[-1/0,void 0];if(Number(e[n])===t)return[e.k,e.v];if(Number(e[n])<t){const r=En(e.r,t,n);return r[0]===-1/0?[e.k,e.v]:r}return En(e.l,t,n)}function Gt(e,t,n){return je(e)?ev(t,n,1):t===e.k?st(e,{k:t,v:n}):t<e.k?Qg(st(e,{l:Gt(e.l,t,n)})):Qg(st(e,{r:Gt(e.r,t,n)}))}function Cd(e,t,n){if(je(e))return[];const{k:r,v:i,l:o,r:a}=e;let s=[];return r>t&&(s=s.concat(Cd(o,t,n))),r>=t&&r<=n&&s.push({k:r,v:i}),r<=n&&(s=s.concat(Cd(a,t,n))),s}function li(e){return je(e)?[]:[...li(e.l),{k:e.k,v:e.v},...li(e.r)]}function tv(e){return je(e.r)?[e.k,e.v]:tv(e.r)}function nv(e){return je(e.r)?e.l:nl(st(e,{r:nv(e.r)}))}function st(e,t){return ev(t.k!==void 0?t.k:e.k,t.v!==void 0?t.v:e.v,t.lvl!==void 0?t.lvl:e.lvl,t.l!==void 0?t.l:e.l,t.r!==void 0?t.r:e.r)}function oc(e){return je(e)||e.lvl>e.r.lvl}function Qg(e){return wd(iv(e))}function nl(e){const{l:t,r:n,lvl:r}=e;if(n.lvl>=r-1&&t.lvl>=r-1)return e;if(r>n.lvl+1){if(oc(t))return iv(st(e,{lvl:r-1}));if(!je(t)&&!je(t.r))return st(t.r,{l:st(t,{r:t.r.l}),r:st(e,{l:t.r.r,lvl:r-1}),lvl:r});throw new Error("Unexpected empty nodes")}else{if(oc(e))return wd(st(e,{lvl:r-1}));if(!je(n)&&!je(n.l)){const i=n.l,o=oc(i)?n.lvl-1:n.lvl;return st(i,{l:st(e,{r:i.l,lvl:r-1}),r:wd(st(n,{l:i.r,lvl:o})),lvl:i.lvl+1})}else throw new Error("Unexpected empty nodes")}}function xu(e,t,n){if(je(e))return[];const r=En(e,t)[0];return jI(Cd(e,r,n))}function rv(e,t){const n=e.length;if(n===0)return[];let{index:r,value:i}=t(e[0]);const o=[];for(let a=1;a<n;a++){const{index:s,value:l}=t(e[a]);o.push({start:r,end:s-1,value:i}),r=s,i=l}return o.push({start:r,end:1/0,value:i}),o}function jI(e){return rv(e,({k:t,v:n})=>({index:t,value:n}))}function wd(e){const{r:t,lvl:n}=e;return!je(t)&&!je(t.r)&&t.lvl===n&&t.r.lvl===n?st(t,{l:st(e,{r:t.l}),lvl:n+1}):e}function iv(e){const{l:t}=e;return!je(t)&&t.lvl===e.lvl?st(t,{r:st(e,{l:t.r})}):e}function Fl(e,t,n,r=0){let i=e.length-1;for(;r<=i;){const o=Math.floor((r+i)/2),a=e[o],s=n(a,t);if(s===0)return o;if(s===-1){if(i-r<2)return o-1;i=o-1}else{if(i===r)return o;r=o+1}}throw new Error(`Failed binary finding record in array - ${e.join(",")}, searched for ${t}`)}function ov(e,t,n){return e[Fl(e,t,n)]}function HI(e,t,n,r){const i=Fl(e,t,r),o=Fl(e,n,r,i);return e.slice(i,o+1)}const Hf=Pe(()=>({recalcInProgress:q(!1)}),[],{singleton:!0});function WI(e){const{size:t,startIndex:n,endIndex:r}=e;return i=>i.start===n&&(i.end===r||i.end===1/0)&&i.value===t}function em(e,t){let n=0,r=0;for(;n<e;)n+=t[r+1]-t[r]-1,r++;return r-(n===e?0:1)}function zI(e,t){let n=je(e)?0:1/0;for(const r of t){const{size:i,startIndex:o,endIndex:a}=r;if(n=Math.min(n,o),je(e)){e=Gt(e,0,i);continue}const s=xu(e,o-1,a+1);if(s.some(WI(r)))continue;let l=!1,u=!1;for(const{start:c,end:d,value:h}of s)l?(a>=c||i===h)&&(e=xd(e,c)):(u=h!==i,l=!0),d>a&&a>=c&&h!==i&&(e=Gt(e,a+1,h));u&&(e=Gt(e,o,i))}return[e,n]}function GI(){return{offsetTree:[],sizeTree:to(),groupOffsetTree:to(),lastIndex:0,lastOffset:0,lastSize:0,groupIndices:[]}}function Wf({index:e},t){return t===e?0:t<e?-1:1}function ZI({offset:e},t){return t===e?0:t<e?-1:1}function XI(e){return{index:e.index,value:e}}function YI(e,t,n,r=0){return r>0&&(t=Math.max(t,ov(e,r,Wf).offset)),rv(HI(e,t,n,ZI),XI)}function Dd(e,t,n,r){let i=e,o=0,a=0,s=0,l=0;if(t!==0){l=Fl(i,t-1,Wf),s=i[l].offset;const c=En(n,t-1);o=c[0],a=c[1],i.length&&i[l].size===En(n,t)[1]&&(l-=1),i=i.slice(0,l+1)}else i=[];for(const{start:u,value:c}of xu(n,t,1/0)){const d=u-o,h=d*a+s+d*r;i.push({offset:h,size:c,index:u}),o=u,s=h,a=c}return{offsetTree:i,lastIndex:o,lastOffset:s,lastSize:a}}function UI(e,[t,n,r,i]){t.length>0&&r("received item sizes",t,Ut.DEBUG);const o=e.sizeTree;let a=o,s=0;if(n.length>0&&je(o)&&t.length===2){const h=t[0].size,f=t[1].size;a=n.reduce((g,m)=>Gt(Gt(g,m,h),m+1,f),a)}else[a,s]=zI(a,t);if(a===o)return e;const{offsetTree:l,lastIndex:u,lastSize:c,lastOffset:d}=Dd(e.offsetTree,s,a,i);return{sizeTree:a,offsetTree:l,lastIndex:u,lastOffset:d,lastSize:c,groupOffsetTree:n.reduce((h,f)=>Gt(h,f,ya(f,l,i)),to()),groupIndices:n}}function ya(e,t,n){if(t.length===0)return 0;const{offset:r,index:i,size:o}=ov(t,e,Wf),a=e-i,s=o*a+(a-1)*n+r;return s>0?s+n:s}function JI(e){return typeof e.groupIndex<"u"}function av(e,t,n){if(JI(e))return t.groupIndices[e.groupIndex]+1;{const r=e.index==="LAST"?n:e.index;let i=sv(r,t);return i=Math.max(0,i,Math.min(n,i)),i}}function sv(e,t){if(!Cu(t))return e;let n=0;for(;t.groupIndices[n]<=e+n;)n++;return e+n}function Cu(e){return!je(e.groupOffsetTree)}function KI(e){return li(e).map(({k:t,v:n},r,i)=>{const o=i[r+1],a=o?o.k-1:1/0;return{startIndex:t,endIndex:a,size:n}})}const qI={offsetHeight:"height",offsetWidth:"width"},Xn=Pe(([{log:e},{recalcInProgress:t}])=>{const n=$e(),r=$e(),i=Dt(r,0),o=$e(),a=$e(),s=q(0),l=q([]),u=q(void 0),c=q(void 0),d=q((D,I)=>Sn(D,qI[I])),h=q(void 0),f=q(0),g=GI(),m=Dt(J(n,Ce(l,e,f),Nn(UI,g),ze()),g),b=Dt(J(l,ze(),Nn((D,I)=>({prev:D.current,current:I}),{prev:[],current:[]}),te(({prev:D})=>D)),[]);se(J(l,me(D=>D.length>0),Ce(m,f),te(([D,I,T])=>{const p=D.reduce((S,$,_)=>Gt(S,$,ya($,I.offsetTree,T)||_),to());return{...I,groupIndices:D,groupOffsetTree:p}})),m),se(J(r,Ce(m),me(([D,{lastIndex:I}])=>D<I),te(([D,{lastIndex:I,lastSize:T}])=>[{startIndex:D,endIndex:I,size:T}])),n),se(u,c);const y=Dt(J(u,te(D=>D===void 0)),!0);se(J(c,me(D=>D!==void 0&&je(wt(m).sizeTree)),te(D=>[{startIndex:0,endIndex:0,size:D}])),n);const v=Yt(J(n,Ce(m),Nn(({sizes:D},[I,T])=>({changed:T!==D,sizes:T}),{changed:!1,sizes:g}),te(D=>D.changed)));Ve(J(s,Nn((D,I)=>({diff:D.prev-I,prev:I}),{diff:0,prev:0}),te(D=>D.diff)),D=>{const{groupIndices:I}=wt(m);if(D>0)xe(t,!0),xe(o,D+em(D,I));else if(D<0){const T=wt(b);T.length>0&&(D-=em(-D,T)),xe(a,D)}}),Ve(J(s,Ce(e)),([D,I])=>{D<0&&I("`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",{firstItemIndex:s},Ut.ERROR)});const x=Yt(o);se(J(o,Ce(m),te(([D,I])=>{const T=I.groupIndices.length>0,p=[],S=I.lastSize;if(T){const $=va(I.sizeTree,0);let _=0,A=0;for(;_<D;){const M=I.groupIndices[A],P=I.groupIndices.length===A+1?1/0:I.groupIndices[A+1]-M-1;p.push({startIndex:M,endIndex:M,size:$}),p.push({startIndex:M+1,endIndex:M+1+P-1,size:S}),A++,_+=P+1}const k=li(I.sizeTree);return _!==D&&k.shift(),k.reduce((M,{k:P,v:F})=>{let B=M.ranges;return M.prevSize!==0&&(B=[...M.ranges,{startIndex:M.prevIndex,endIndex:P+D-1,size:M.prevSize}]),{ranges:B,prevIndex:P+D,prevSize:F}},{ranges:p,prevIndex:D,prevSize:0}).ranges}return li(I.sizeTree).reduce(($,{k:_,v:A})=>({ranges:[...$.ranges,{startIndex:$.prevIndex,endIndex:_+D-1,size:$.prevSize}],prevIndex:_+D,prevSize:A}),{ranges:[],prevIndex:0,prevSize:S}).ranges})),n);const C=Yt(J(a,Ce(m,f),te(([D,{offsetTree:I},T])=>{const p=-D;return ya(p,I,T)})));return se(J(a,Ce(m,f),te(([D,I,T])=>{if(I.groupIndices.length>0){if(je(I.sizeTree))return I;let S=to();const $=wt(b);let _=0,A=0,k=0;for(;_<-D;){k=$[A];const M=$[A+1]-k-1;A++,_+=M+1}if(S=li(I.sizeTree).reduce((M,{k:P,v:F})=>Gt(M,Math.max(0,P+D),F),S),_!==-D){const M=va(I.sizeTree,k);S=Gt(S,0,M);const P=En(I.sizeTree,-D+1)[1];S=Gt(S,1,P)}return{...I,sizeTree:S,...Dd(I.offsetTree,0,S,T)}}else{const S=li(I.sizeTree).reduce(($,{k:_,v:A})=>Gt($,Math.max(0,_+D),A),to());return{...I,sizeTree:S,...Dd(I.offsetTree,0,S,T)}}})),m),{data:h,totalCount:r,sizeRanges:n,groupIndices:l,defaultItemSize:c,fixedItemSize:u,unshiftWith:o,shiftWith:a,shiftWithOffset:C,beforeUnshiftWith:x,firstItemIndex:s,gap:f,sizes:m,listRefresh:v,statefulTotalCount:i,trackItemSizes:y,itemSize:d}},Ge(Gr,Hf),{singleton:!0}),QI=typeof document<"u"&&"scrollBehavior"in document.documentElement.style;function lv(e){const t=typeof e=="number"?{index:e}:e;return t.align||(t.align="start"),(!t.behavior||!QI)&&(t.behavior="auto"),t.offset||(t.offset=0),t}const qa=Pe(([{sizes:e,totalCount:t,listRefresh:n,gap:r},{scrollingInProgress:i,viewportHeight:o,scrollTo:a,smoothScrollTargetReached:s,headerHeight:l,footerHeight:u,fixedHeaderHeight:c,fixedFooterHeight:d},{log:h}])=>{const f=$e(),g=$e(),m=q(0);let b=null,y=null,v=null;function x(){b&&(b(),b=null),v&&(v(),v=null),y&&(clearTimeout(y),y=null),xe(i,!1)}return se(J(f,Ce(e,o,t,m,l,u,h),Ce(r,c,d),te(([[C,D,I,T,p,S,$,_],A,k,R])=>{const M=lv(C),{align:P,behavior:F,offset:B}=M,N=T-1,O=av(M,D,N);let L=ya(O,D.offsetTree,A)+S;P==="end"?(L+=k+En(D.sizeTree,O)[1]-I+R,O===N&&(L+=$)):P==="center"?L+=(k+En(D.sizeTree,O)[1]-I+R)/2:L-=p,B&&(L+=B);const W=Z=>{x(),Z?(_("retrying to scroll to",{location:C},Ut.DEBUG),xe(f,C)):(xe(g,!0),_("list did not change, scroll successful",{},Ut.DEBUG))};if(x(),F==="smooth"){let Z=!1;v=Ve(n,H=>{Z=Z||H}),b=Gn(s,()=>{W(Z)})}else b=Gn(J(n,e_(150)),W);return y=setTimeout(()=>{x()},1200),xe(i,!0),_("scrolling from index to",{index:O,top:L,behavior:F},Ut.DEBUG),{top:L,behavior:F}})),a),{scrollToIndex:f,scrollTargetReached:g,topListHeight:m}},Ge(Xn,Ft,Gr),{singleton:!0});function e_(e){return t=>{const n=setTimeout(()=>{t(!1)},e);return r=>{r&&(t(!0),clearTimeout(n))}}}const xa="up",qo="down",t_="none",n_={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollTop:0,viewportHeight:0,scrollHeight:0}},r_=0,Qa=Pe(([{scrollContainerState:e,scrollTop:t,viewportHeight:n,headerHeight:r,footerHeight:i,scrollBy:o}])=>{const a=q(!1),s=q(!0),l=$e(),u=$e(),c=q(4),d=q(r_),h=Dt(J(qg(J(pe(t),ho(1),Bn(!0)),J(pe(t),ho(1),Bn(!1),Kg(100))),ze()),!1),f=Dt(J(qg(J(o,Bn(!0)),J(o,Bn(!1),Kg(200))),ze()),!1);se(J(ft(pe(t),pe(d)),te(([v,x])=>v<=x),ze()),s),se(J(s,Ar(50)),u);const g=Yt(J(ft(e,pe(n),pe(r),pe(i),pe(c)),Nn((v,[{scrollTop:x,scrollHeight:C},D,I,T,p])=>{const S=x+D-C>-p,$={viewportHeight:D,scrollTop:x,scrollHeight:C};if(S){let A,k;return x>v.state.scrollTop?(A="SCROLLED_DOWN",k=v.state.scrollTop-x):(A="SIZE_DECREASED",k=v.state.scrollTop-x||v.scrollTopDelta),{atBottom:!0,state:$,atBottomBecause:A,scrollTopDelta:k}}let _;return $.scrollHeight>v.state.scrollHeight?_="SIZE_INCREASED":D<v.state.viewportHeight?_="VIEWPORT_HEIGHT_DECREASING":x<v.state.scrollTop?_="SCROLLING_UPWARDS":_="NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM",{atBottom:!1,notAtBottomBecause:_,state:$}},n_),ze((v,x)=>v&&v.atBottom===x.atBottom))),m=Dt(J(e,Nn((v,{scrollTop:x,scrollHeight:C,viewportHeight:D})=>{if(q1(v.scrollHeight,C))return{scrollTop:x,scrollHeight:C,jump:0,changed:!1};{const I=C-(x+D)<1;return v.scrollTop!==x&&I?{scrollHeight:C,scrollTop:x,jump:v.scrollTop-x,changed:!0}:{scrollHeight:C,scrollTop:x,jump:0,changed:!0}}},{scrollHeight:0,jump:0,scrollTop:0,changed:!1}),me(v=>v.changed),te(v=>v.jump)),0);se(J(g,te(v=>v.atBottom)),a),se(J(a,Ar(50)),l);const b=q(qo);se(J(e,te(({scrollTop:v})=>v),ze(),Nn((v,x)=>wt(f)?{direction:v.direction,prevScrollTop:x}:{direction:x<v.prevScrollTop?xa:qo,prevScrollTop:x},{direction:qo,prevScrollTop:0}),te(v=>v.direction)),b),se(J(e,Ar(50),Bn(t_)),b);const y=q(0);return se(J(h,me(v=>!v),Bn(0)),y),se(J(t,Ar(100),Ce(h),me(([v,x])=>!!x),Nn(([v,x],[C])=>[x,C],[0,0]),te(([v,x])=>x-v)),y),{isScrolling:h,isAtTop:s,isAtBottom:a,atBottomState:g,atTopStateChange:u,atBottomStateChange:l,scrollDirection:b,atBottomThreshold:c,atTopThreshold:d,scrollVelocity:y,lastJumpDueToItemResize:m}},Ge(Ft)),Zr=Pe(([{log:e}])=>{const t=q(!1),n=Yt(J(t,me(r=>r),ze()));return Ve(t,r=>{r&&wt(e)("props updated",{},Ut.DEBUG)}),{propsReady:t,didMount:n}},Ge(Gr),{singleton:!0});function zf(e,t){e==0?t():requestAnimationFrame(()=>zf(e-1,t))}function Gf(e,t){const n=t-1;return typeof e=="number"?e:e.index==="LAST"?n:e.index}const es=Pe(([{sizes:e,listRefresh:t,defaultItemSize:n},{scrollTop:r},{scrollToIndex:i,scrollTargetReached:o},{didMount:a}])=>{const s=q(!0),l=q(0),u=q(!0);return se(J(a,Ce(l),me(([c,d])=>!!d),Bn(!1)),s),se(J(a,Ce(l),me(([c,d])=>!!d),Bn(!1)),u),Ve(J(ft(t,a),Ce(s,e,n,u),me(([[,c],d,{sizeTree:h},f,g])=>c&&(!je(h)||Nf(f))&&!d&&!g),Ce(l)),([,c])=>{Gn(o,()=>{xe(u,!0)}),zf(4,()=>{Gn(r,()=>{xe(s,!0)}),xe(i,c)})}),{scrolledToInitialItem:s,initialTopMostItemIndex:l,initialItemFinalLocationReached:u}},Ge(Xn,Ft,qa,Zr),{singleton:!0});function tm(e){return e?e==="smooth"?"smooth":"auto":!1}const i_=(e,t)=>typeof e=="function"?tm(e(t)):t&&tm(e),o_=Pe(([{totalCount:e,listRefresh:t},{isAtBottom:n,atBottomState:r},{scrollToIndex:i},{scrolledToInitialItem:o},{propsReady:a,didMount:s},{log:l},{scrollingInProgress:u}])=>{const c=q(!1),d=$e();let h=null;function f(m){xe(i,{index:"LAST",align:"end",behavior:m})}Ve(J(ft(J(pe(e),ho(1)),s),Ce(pe(c),n,o,u),te(([[m,b],y,v,x,C])=>{let D=b&&x,I="auto";return D&&(I=i_(y,v||C),D=D&&!!I),{totalCount:m,shouldFollow:D,followOutputBehavior:I}}),me(({shouldFollow:m})=>m)),({totalCount:m,followOutputBehavior:b})=>{h&&(h(),h=null),h=Gn(t,()=>{wt(l)("following output to ",{totalCount:m},Ut.DEBUG),f(b),h=null})});function g(m){const b=Gn(r,y=>{m&&!y.atBottom&&y.notAtBottomBecause==="SIZE_INCREASED"&&!h&&(wt(l)("scrolling to bottom due to increased size",{},Ut.DEBUG),f("auto"))});setTimeout(b,100)}return Ve(J(ft(pe(c),e,a),me(([m,,b])=>m&&b),Nn(({value:m},[,b])=>({refreshed:m===b,value:b}),{refreshed:!1,value:0}),me(({refreshed:m})=>m),Ce(c,e)),([,m])=>{wt(o)&&g(m!==!1)}),Ve(d,()=>{g(wt(c)!==!1)}),Ve(ft(pe(c),r),([m,b])=>{m&&!b.atBottom&&b.notAtBottomBecause==="VIEWPORT_HEIGHT_DECREASING"&&f("auto")}),{followOutput:c,autoscrollToBottom:d}},Ge(Xn,Qa,qa,es,Zr,Gr,Ft));function a_(e){return e.reduce((t,n)=>(t.groupIndices.push(t.totalCount),t.totalCount+=n+1,t),{totalCount:0,groupIndices:[]})}const uv=Pe(([{totalCount:e,groupIndices:t,sizes:n},{scrollTop:r,headerHeight:i}])=>{const o=$e(),a=$e(),s=Yt(J(o,te(a_)));return se(J(s,te(l=>l.totalCount)),e),se(J(s,te(l=>l.groupIndices)),t),se(J(ft(r,n,i),me(([l,u])=>Cu(u)),te(([l,u,c])=>En(u.groupOffsetTree,Math.max(l-c,0),"v")[0]),ze(),te(l=>[l])),a),{groupCounts:o,topItemsIndexes:a}},Ge(Xn,Ft));function Ca(e,t){return!!(e&&e[0]===t[0]&&e[1]===t[1])}function cv(e,t){return!!(e&&e.startIndex===t.startIndex&&e.endIndex===t.endIndex)}const Pl="top",Tl="bottom",nm="none";function rm(e,t,n){return typeof e=="number"?n===xa&&t===Pl||n===qo&&t===Tl?e:0:n===xa?t===Pl?e.main:e.reverse:t===Tl?e.main:e.reverse}function im(e,t){return typeof e=="number"?e:e[t]||0}const Zf=Pe(([{scrollTop:e,viewportHeight:t,deviation:n,headerHeight:r,fixedHeaderHeight:i}])=>{const o=$e(),a=q(0),s=q(0),l=q(0),u=Dt(J(ft(pe(e),pe(t),pe(r),pe(o,Ca),pe(l),pe(a),pe(i),pe(n),pe(s)),te(([c,d,h,[f,g],m,b,y,v,x])=>{const C=c-v,D=b+y,I=Math.max(h-C,0);let T=nm;const p=im(x,Pl),S=im(x,Tl);return f-=v,f+=h+y,g+=h+y,g-=v,f>c+D-p&&(T=xa),g<c-I+d+S&&(T=qo),T!==nm?[Math.max(C-h-rm(m,Pl,T)-p,0),C-I-y+d+rm(m,Tl,T)+S]:null}),me(c=>c!=null),ze(Ca)),[0,0]);return{listBoundary:o,overscan:l,topListHeight:a,increaseViewportBy:s,visibleRange:u}},Ge(Ft),{singleton:!0});function s_(e,t,n){if(Cu(t)){const r=sv(e,t);return[{index:En(t.groupOffsetTree,r)[0],size:0,offset:0},{index:r,size:0,offset:0,data:n&&n[0]}]}return[{index:e,size:0,offset:0,data:n&&n[0]}]}const ac={items:[],topItems:[],offsetTop:0,offsetBottom:0,top:0,bottom:0,topListHeight:0,totalCount:0,firstItemIndex:0};function om(e,t,n){if(e.length===0)return[];if(!Cu(t))return e.map(u=>({...u,index:u.index+n,originalIndex:u.index}));const r=e[0].index,i=e[e.length-1].index,o=[],a=xu(t.groupOffsetTree,r,i);let s,l=0;for(const u of e){(!s||s.end<u.index)&&(s=a.shift(),l=t.groupIndices.indexOf(s.start));let c;u.index===s.start?c={type:"group",index:l}:c={index:u.index-(l+1)+n,groupIndex:l},o.push({...c,size:u.size,offset:u.offset,originalIndex:u.index,data:u.data})}return o}function rl(e,t,n,r,i,o){const{lastSize:a,lastOffset:s,lastIndex:l}=i;let u=0,c=0;if(e.length>0){u=e[0].offset;const m=e[e.length-1];c=m.offset+m.size}const d=n-l,h=s+d*a+(d-1)*r,f=u,g=h-c;return{items:om(e,i,o),topItems:om(t,i,o),topListHeight:t.reduce((m,b)=>b.size+m,0),offsetTop:u,offsetBottom:g,top:f,bottom:c,totalCount:n,firstItemIndex:o}}function dv(e,t,n,r,i,o){let a=0;if(n.groupIndices.length>0)for(const c of n.groupIndices){if(c-a>=e)break;a++}const s=e+a,l=Gf(t,s),u=Array.from({length:s}).map((c,d)=>({index:d+l,size:0,offset:0,data:o[d+l]}));return rl(u,[],s,i,n,r)}const Ai=Pe(([{sizes:e,totalCount:t,data:n,firstItemIndex:r,gap:i},o,{visibleRange:a,listBoundary:s,topListHeight:l},{scrolledToInitialItem:u,initialTopMostItemIndex:c},{topListHeight:d},h,{didMount:f},{recalcInProgress:g}])=>{const m=q([]),b=q(0),y=$e();se(o.topItemsIndexes,m);const v=Dt(J(ft(f,g,pe(a,Ca),pe(t),pe(e),pe(c),u,pe(m),pe(r),pe(i),n),me(([I,T,,p,,,,,,,S])=>{const $=S&&S.length!==p;return I&&!T&&!$}),te(([,,[I,T],p,S,$,_,A,k,R,M])=>{const P=S,{sizeTree:F,offsetTree:B}=P,N=wt(b);if(p===0)return{...ac,totalCount:p};if(I===0&&T===0)return N===0?{...ac,totalCount:p}:dv(N,$,S,k,R,M||[]);if(je(F))return N>0?null:rl(s_(Gf($,p),P,M),[],p,R,P,k);const O=[];if(A.length>0){const j=A[0],V=A[A.length-1];let z=0;for(const Y of xu(F,j,V)){const K=Y.value,Q=Math.max(Y.start,j),ee=Math.min(Y.end,V);for(let X=Q;X<=ee;X++)O.push({index:X,size:K,offset:z,data:M&&M[X]}),z+=K}}if(!_)return rl([],O,p,R,P,k);const L=A.length>0?A[A.length-1]+1:0,W=YI(B,I,T,L);if(W.length===0)return null;const Z=p-1,H=yu([],j=>{for(const V of W){const z=V.value;let Y=z.offset,K=V.start;const Q=z.size;if(z.offset<I){K+=Math.floor((I-z.offset+R)/(Q+R));const X=K-V.start;Y+=X*Q+X*R}K<L&&(Y+=(L-K)*Q,K=L);const ee=Math.min(V.end,Z);for(let X=K;X<=ee&&!(Y>=T);X++)j.push({index:X,size:Q,offset:Y,data:M&&M[X]}),Y+=Q+R}});return rl(H,O,p,R,P,k)}),me(I=>I!==null),ze()),ac);se(J(n,me(Nf),te(I=>I==null?void 0:I.length)),t),se(J(v,te(I=>I.topListHeight)),d),se(d,l),se(J(v,te(I=>[I.top,I.bottom])),s),se(J(v,te(I=>I.items)),y);const x=Yt(J(v,me(({items:I})=>I.length>0),Ce(t,n),me(([{items:I},T])=>I[I.length-1].originalIndex===T-1),te(([,I,T])=>[I-1,T]),ze(Ca),te(([I])=>I))),C=Yt(J(v,Ar(200),me(({items:I,topItems:T})=>I.length>0&&I[0].originalIndex===T.length),te(({items:I})=>I[0].index),ze())),D=Yt(J(v,me(({items:I})=>I.length>0),te(({items:I})=>{let T=0,p=I.length-1;for(;I[T].type==="group"&&T<p;)T++;for(;I[p].type==="group"&&p>T;)p--;return{startIndex:I[T].index,endIndex:I[p].index}}),ze(cv)));return{listState:v,topItemsIndexes:m,endReached:x,startReached:C,rangeChanged:D,itemsRendered:y,initialItemCount:b,...h}},Ge(Xn,uv,Zf,es,qa,Qa,Zr,Hf),{singleton:!0}),l_=Pe(([{sizes:e,firstItemIndex:t,data:n,gap:r},{initialTopMostItemIndex:i},{initialItemCount:o,listState:a},{didMount:s}])=>(se(J(s,Ce(o),me(([,l])=>l!==0),Ce(i,e,t,r,n),te(([[,l],u,c,d,h,f=[]])=>dv(l,u,c,d,h,f))),a),{}),Ge(Xn,es,Ai,Zr),{singleton:!0}),fv=Pe(([{scrollVelocity:e}])=>{const t=q(!1),n=$e(),r=q(!1);return se(J(e,Ce(r,t,n),me(([i,o])=>!!o),te(([i,o,a,s])=>{const{exit:l,enter:u}=o;if(a){if(l(i,s))return!1}else if(u(i,s))return!0;return a}),ze()),t),Ve(J(ft(t,e,n),Ce(r)),([[i,o,a],s])=>i&&s&&s.change&&s.change(o,a)),{isSeeking:t,scrollSeekConfiguration:r,scrollVelocity:e,scrollSeekRangeChanged:n}},Ge(Qa),{singleton:!0}),u_=Pe(([{topItemsIndexes:e}])=>{const t=q(0);return se(J(t,me(n=>n>0),te(n=>Array.from({length:n}).map((r,i)=>i))),e),{topItemCount:t}},Ge(Ai)),hv=Pe(([{footerHeight:e,headerHeight:t,fixedHeaderHeight:n,fixedFooterHeight:r},{listState:i}])=>{const o=$e(),a=Dt(J(ft(e,r,t,n,i),te(([s,l,u,c,d])=>s+l+u+c+d.offsetBottom+d.bottom)),0);return se(pe(a),o),{totalListHeight:a,totalListHeightChanged:o}},Ge(Ft,Ai),{singleton:!0});function gv(e){let t=!1,n;return()=>(t||(t=!0,n=e()),n)}const c_=gv(()=>/iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent)),d_=Pe(([{scrollBy:e,scrollTop:t,deviation:n,scrollingInProgress:r},{isScrolling:i,isAtBottom:o,scrollDirection:a,lastJumpDueToItemResize:s},{listState:l},{beforeUnshiftWith:u,shiftWithOffset:c,sizes:d,gap:h},{log:f},{recalcInProgress:g}])=>{const m=Yt(J(l,Ce(s),Nn(([,y,v,x],[{items:C,totalCount:D,bottom:I,offsetBottom:T},p])=>{const S=I+T;let $=0;return v===D&&y.length>0&&C.length>0&&(C[0].originalIndex===0&&y[0].originalIndex===0||($=S-x,$!==0&&($+=p))),[$,C,D,S]},[0,[],0,0]),me(([y])=>y!==0),Ce(t,a,r,o,f,g),me(([,y,v,x,,,C])=>!C&&!x&&y!==0&&v===xa),te(([[y],,,,,v])=>(v("Upward scrolling compensation",{amount:y},Ut.DEBUG),y))));function b(y){y>0?(xe(e,{top:-y,behavior:"auto"}),xe(n,0)):(xe(n,0),xe(e,{top:-y,behavior:"auto"}))}return Ve(J(m,Ce(n,i)),([y,v,x])=>{x&&c_()?xe(n,v-y):b(-y)}),Ve(J(ft(Dt(i,!1),n,g),me(([y,v,x])=>!y&&!x&&v!==0),te(([y,v])=>v),Ar(1)),b),se(J(c,te(y=>({top:-y}))),e),Ve(J(u,Ce(d,h),te(([y,{lastSize:v,groupIndices:x,sizeTree:C},D])=>{function I(T){return T*(v+D)}if(x.length===0)return I(y);{let T=0;const p=va(C,0);let S=0,$=0;for(;S<y;){S++,T+=p;let _=x.length===$+1?1/0:x[$+1]-x[$]-1;S+_>y&&(T-=p,_=y-S+1),S+=_,T+=I(_),$++}return T}})),y=>{xe(n,y),requestAnimationFrame(()=>{xe(e,{top:y}),requestAnimationFrame(()=>{xe(n,0),xe(g,!1)})})}),{deviation:n}},Ge(Ft,Qa,Ai,Xn,Gr,Hf)),f_=Pe(([{didMount:e},{scrollTo:t},{listState:n}])=>{const r=q(0);return Ve(J(e,Ce(r),me(([,i])=>i!==0),te(([,i])=>({top:i}))),i=>{Gn(J(n,ho(1),me(o=>o.items.length>1)),()=>{requestAnimationFrame(()=>{xe(t,i)})})}),{initialScrollTop:r}},Ge(Zr,Ft,Ai),{singleton:!0}),h_=Pe(([{viewportHeight:e},{totalListHeight:t}])=>{const n=q(!1),r=Dt(J(ft(n,e,t),me(([i])=>i),te(([,i,o])=>Math.max(0,i-o)),Ar(0),ze()),0);return{alignToBottom:n,paddingTopAddition:r}},Ge(Ft,hv),{singleton:!0}),Xf=Pe(([{scrollTo:e,scrollContainerState:t}])=>{const n=$e(),r=$e(),i=$e(),o=q(!1),a=q(void 0);return se(J(ft(n,r),te(([{viewportHeight:s,scrollTop:l,scrollHeight:u},{offsetTop:c}])=>({scrollTop:Math.max(0,l-c),scrollHeight:u,viewportHeight:s}))),t),se(J(e,Ce(r),te(([s,{offsetTop:l}])=>({...s,top:s.top+l}))),i),{useWindowScroll:o,customScrollParent:a,windowScrollContainerState:n,windowViewportRect:r,windowScrollTo:i}},Ge(Ft)),g_=({itemTop:e,itemBottom:t,viewportTop:n,viewportBottom:r,locationParams:{behavior:i,align:o,...a}})=>e<n?{...a,behavior:i,align:o??"start"}:t>r?{...a,behavior:i,align:o??"end"}:null,m_=Pe(([{sizes:e,totalCount:t,gap:n},{scrollTop:r,viewportHeight:i,headerHeight:o,fixedHeaderHeight:a,fixedFooterHeight:s,scrollingInProgress:l},{scrollToIndex:u}])=>{const c=$e();return se(J(c,Ce(e,i,t,o,a,s,r),Ce(n),te(([[d,h,f,g,m,b,y,v],x])=>{const{done:C,behavior:D,align:I,calculateViewLocation:T=g_,...p}=d,S=av(d,h,g-1),$=ya(S,h.offsetTree,x)+m+b,_=$+En(h.sizeTree,S)[1],A=v+b,k=v+f-y,R=T({itemTop:$,itemBottom:_,viewportTop:A,viewportBottom:k,locationParams:{behavior:D,align:I,...p}});return R?C&&Gn(J(l,me(M=>M===!1),ho(wt(l)?1:2)),C):C&&C(),R}),me(d=>d!==null)),u),{scrollIntoView:c}},Ge(Xn,Ft,qa,Ai,Gr),{singleton:!0}),p_=Pe(([{sizes:e,sizeRanges:t},{scrollTop:n},{initialTopMostItemIndex:r},{didMount:i},{useWindowScroll:o,windowScrollContainerState:a,windowViewportRect:s}])=>{const l=$e(),u=q(void 0),c=q(null),d=q(null);return se(a,c),se(s,d),Ve(J(l,Ce(e,n,o,c,d)),([h,f,g,m,b,y])=>{const v=KI(f.sizeTree);m&&b!==null&&y!==null&&(g=b.scrollTop-y.offsetTop),h({ranges:v,scrollTop:g})}),se(J(u,me(Nf),te(b_)),r),se(J(i,Ce(u),me(([,h])=>h!==void 0),ze(),te(([,h])=>h.ranges)),t),{getState:l,restoreStateFrom:u}},Ge(Xn,Ft,es,Zr,Xf));function b_(e){return{offset:e.scrollTop,index:0,align:"start"}}const v_=Pe(([e,t,n,r,i,o,a,s,l,u])=>({...e,...t,...n,...r,...i,...o,...a,...s,...l,...u}),Ge(Zf,l_,Zr,fv,hv,f_,h_,Xf,m_,Gr)),mv=Pe(([{totalCount:e,sizeRanges:t,fixedItemSize:n,defaultItemSize:r,trackItemSizes:i,itemSize:o,data:a,firstItemIndex:s,groupIndices:l,statefulTotalCount:u,gap:c,sizes:d},{initialTopMostItemIndex:h,scrolledToInitialItem:f,initialItemFinalLocationReached:g},m,b,y,{listState:v,topItemsIndexes:x,...C},{scrollToIndex:D},I,{topItemCount:T},{groupCounts:p},S])=>(se(C.rangeChanged,S.scrollSeekRangeChanged),se(J(S.windowViewportRect,te($=>$.visibleHeight)),m.viewportHeight),{totalCount:e,data:a,firstItemIndex:s,sizeRanges:t,initialTopMostItemIndex:h,scrolledToInitialItem:f,initialItemFinalLocationReached:g,topItemsIndexes:x,topItemCount:T,groupCounts:p,fixedItemHeight:n,defaultItemHeight:r,gap:c,...y,statefulTotalCount:u,listState:v,scrollToIndex:D,trackItemSizes:i,itemSize:o,groupIndices:l,...C,...S,...m,sizes:d,...b}),Ge(Xn,es,Ft,p_,o_,Ai,qa,d_,u_,uv,v_)),sc="-webkit-sticky",am="sticky",pv=gv(()=>{if(typeof document>"u")return am;const e=document.createElement("div");return e.style.position=sc,e.style.position===sc?sc:am});function Yf(e,t){const n=w.useRef(null),r=w.useCallback(s=>{if(s===null||!s.offsetParent)return;const l=s.getBoundingClientRect(),u=l.width;let c,d;if(t){const h=t.getBoundingClientRect(),f=l.top-h.top;c=h.height-Math.max(0,f),d=f+t.scrollTop}else c=window.innerHeight-Math.max(0,l.top),d=l.top+window.pageYOffset;n.current={offsetTop:d,visibleHeight:c,visibleWidth:u},e(n.current)},[e,t]),{callbackRef:i,ref:o}=jf(r),a=w.useCallback(()=>{r(o.current)},[r,o]);return w.useEffect(()=>{if(t){t.addEventListener("scroll",a);const s=new ResizeObserver(()=>{requestAnimationFrame(a)});return s.observe(t),()=>{t.removeEventListener("scroll",a),s.unobserve(t)}}else return window.addEventListener("scroll",a),window.addEventListener("resize",a),()=>{window.removeEventListener("scroll",a),window.removeEventListener("resize",a)}},[a,t]),i}const wu=w.createContext(void 0),bv=w.createContext(void 0);function Uf(e){return e}const y_=Pe(()=>{const e=q(l=>`Item ${l}`),t=q(null),n=q(l=>`Group ${l}`),r=q({}),i=q(Uf),o=q("div"),a=q(Ri),s=(l,u=null)=>Dt(J(r,te(c=>c[l]),ze()),u);return{context:t,itemContent:e,groupContent:n,components:r,computeItemKey:i,headerFooterTag:o,scrollerRef:a,FooterComponent:s("Footer"),HeaderComponent:s("Header"),TopItemListComponent:s("TopItemList"),ListComponent:s("List","div"),ItemComponent:s("Item","div"),GroupComponent:s("Group","div"),ScrollerComponent:s("Scroller","div"),EmptyPlaceholder:s("EmptyPlaceholder"),ScrollSeekPlaceholder:s("ScrollSeekPlaceholder")}}),x_=Pe(([e,t])=>({...e,...t}),Ge(mv,y_)),C_=({height:e})=>w.createElement("div",{style:{height:e}}),w_={position:pv(),zIndex:1,overflowAnchor:"none"},D_={overflowAnchor:"none"},sm=w.memo(function({showTopList:t=!1}){const n=Se("listState"),r=cn("sizeRanges"),i=Se("useWindowScroll"),o=Se("customScrollParent"),a=cn("windowScrollContainerState"),s=cn("scrollContainerState"),l=o||i?a:s,u=Se("itemContent"),c=Se("context"),d=Se("groupContent"),h=Se("trackItemSizes"),f=Se("itemSize"),g=Se("log"),m=cn("gap"),{callbackRef:b}=K1(r,f,h,t?Ri:l,g,m,o),[y,v]=w.useState(0);qf("deviation",R=>{y!==R&&v(R)});const x=Se("EmptyPlaceholder"),C=Se("ScrollSeekPlaceholder")||C_,D=Se("ListComponent"),I=Se("ItemComponent"),T=Se("GroupComponent"),p=Se("computeItemKey"),S=Se("isSeeking"),$=Se("groupIndices").length>0,_=Se("alignToBottom"),A=Se("initialItemFinalLocationReached"),k=t?{}:{boxSizing:"border-box",paddingTop:n.offsetTop,paddingBottom:n.offsetBottom,marginTop:y!==0?y:_?"auto":0,...A?{}:{visibility:"hidden"}};return!t&&n.totalCount===0&&x?w.createElement(x,qe(x,c)):w.createElement(D,{...qe(D,c),ref:b,style:k,"data-testid":t?"virtuoso-top-item-list":"virtuoso-item-list"},(t?n.topItems:n.items).map(R=>{const M=R.originalIndex,P=p(M+n.firstItemIndex,R.data,c);return S?w.createElement(C,{...qe(C,c),key:P,index:R.index,height:R.size,type:R.type||"item",...R.type==="group"?{}:{groupIndex:R.groupIndex}}):R.type==="group"?w.createElement(T,{...qe(T,c),key:P,"data-index":M,"data-known-size":R.size,"data-item-index":R.index,style:w_},d(R.index,c)):w.createElement(I,{...qe(I,c),...vv(I,R.data),key:P,"data-index":M,"data-known-size":R.size,"data-item-index":R.index,"data-item-group-index":R.groupIndex,style:D_},$?u(R.index,R.groupIndex,R.data,c):u(R.index,R.data,c))}))}),S_={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},So=e=>({width:"100%",height:"100%",position:"absolute",top:0,...e?{display:"flex",flexDirection:"column"}:{}}),E_={width:"100%",position:pv(),top:0,zIndex:1};function qe(e,t){if(typeof e!="string")return{context:t}}function vv(e,t){return{item:typeof e=="string"?void 0:t}}const I_=w.memo(function(){const t=Se("HeaderComponent"),n=cn("headerHeight"),r=Se("headerFooterTag"),i=Zn(a=>n(Sn(a,"height"))),o=Se("context");return t?w.createElement(r,{ref:i},w.createElement(t,qe(t,o))):null}),__=w.memo(function(){const t=Se("FooterComponent"),n=cn("footerHeight"),r=Se("headerFooterTag"),i=Zn(a=>n(Sn(a,"height"))),o=Se("context");return t?w.createElement(r,{ref:i},w.createElement(t,qe(t,o))):null});function Jf({usePublisher:e,useEmitter:t,useEmitterValue:n}){return w.memo(function({style:o,children:a,...s}){const l=e("scrollContainerState"),u=n("ScrollerComponent"),c=e("smoothScrollTargetReached"),d=n("scrollerRef"),h=n("context"),{scrollerRef:f,scrollByCallback:g,scrollToCallback:m}=Q1(l,c,u,d);return t("scrollTo",m),t("scrollBy",g),w.createElement(u,{ref:f,style:{...S_,...o},"data-testid":"virtuoso-scroller","data-virtuoso-scroller":!0,tabIndex:0,...s,...qe(u,h)},a)})}function Kf({usePublisher:e,useEmitter:t,useEmitterValue:n}){return w.memo(function({style:o,children:a,...s}){const l=e("windowScrollContainerState"),u=n("ScrollerComponent"),c=e("smoothScrollTargetReached"),d=n("totalListHeight"),h=n("deviation"),f=n("customScrollParent"),g=n("context"),{scrollerRef:m,scrollByCallback:b,scrollToCallback:y}=Q1(l,c,u,Ri,f);return BI(()=>(m.current=f||window,()=>{m.current=null}),[m,f]),t("windowScrollTo",y),t("scrollBy",b),w.createElement(u,{style:{position:"relative",...o,...d!==0?{height:d+h}:{}},"data-virtuoso-scroller":!0,...s,...qe(u,g)},a)})}const $_=({children:e})=>{const t=w.useContext(wu),n=cn("viewportHeight"),r=cn("fixedItemHeight"),i=Se("alignToBottom"),o=Zn(pa(n,a=>Sn(a,"height")));return w.useEffect(()=>{t&&(n(t.viewportHeight),r(t.itemHeight))},[t,n,r]),w.createElement("div",{style:So(i),ref:o,"data-viewport-type":"element"},e)},R_=({children:e})=>{const t=w.useContext(wu),n=cn("windowViewportRect"),r=cn("fixedItemHeight"),i=Se("customScrollParent"),o=Yf(n,i),a=Se("alignToBottom");return w.useEffect(()=>{t&&(r(t.itemHeight),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,n,r]),w.createElement("div",{ref:o,style:So(a),"data-viewport-type":"window"},e)},A_=({children:e})=>{const t=Se("TopItemListComponent")||"div",n=Se("headerHeight"),r={...E_,marginTop:`${n}px`},i=Se("context");return w.createElement(t,{style:r,...qe(t,i)},e)},F_=w.memo(function(t){const n=Se("useWindowScroll"),r=Se("topItemsIndexes").length>0,i=Se("customScrollParent"),o=i||n?k_:T_,a=i||n?R_:$_;return w.createElement(o,{...t},r&&w.createElement(A_,null,w.createElement(sm,{showTopList:!0})),w.createElement(a,null,w.createElement(I_,null),w.createElement(sm,null),w.createElement(__,null)))}),{Component:P_,usePublisher:cn,useEmitterValue:Se,useEmitter:qf}=Lf(x_,{required:{},optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",itemContent:"itemContent",groupContent:"groupContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",groupCounts:"groupCounts",topItemCount:"topItemCount",firstItemIndex:"firstItemIndex",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",autoscrollToBottom:"autoscrollToBottom",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},F_),T_=Jf({usePublisher:cn,useEmitterValue:Se,useEmitter:qf}),k_=Kf({usePublisher:cn,useEmitterValue:Se,useEmitter:qf}),M_=P_,lm={items:[],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},B_={items:[{index:0}],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},{round:um,ceil:cm,floor:kl,min:lc,max:Qo}=Math;function O_(e){return{...B_,items:e}}function dm(e,t,n){return Array.from({length:t-e+1}).map((r,i)=>{const o=n===null?null:n[i+e];return{index:i+e,data:o}})}function N_(e,t){return e&&e.column===t.column&&e.row===t.row}function Cs(e,t){return e&&e.width===t.width&&e.height===t.height}const V_=Pe(([{overscan:e,visibleRange:t,listBoundary:n},{scrollTop:r,viewportHeight:i,scrollBy:o,scrollTo:a,smoothScrollTargetReached:s,scrollContainerState:l,footerHeight:u,headerHeight:c},d,h,{propsReady:f,didMount:g},{windowViewportRect:m,useWindowScroll:b,customScrollParent:y,windowScrollContainerState:v,windowScrollTo:x},C])=>{const D=q(0),I=q(0),T=q(lm),p=q({height:0,width:0}),S=q({height:0,width:0}),$=$e(),_=$e(),A=q(0),k=q(null),R=q({row:0,column:0}),M=$e(),P=$e(),F=q(!1),B=q(0),N=q(!0),O=q(!1);Ve(J(g,Ce(B),me(([V,z])=>!!z)),()=>{xe(N,!1),xe(I,0)}),Ve(J(ft(g,N,S,p,B,O),me(([V,z,Y,K,,Q])=>V&&!z&&Y.height!==0&&K.height!==0&&!Q)),([,,,,V])=>{xe(O,!0),zf(1,()=>{xe($,V)}),Gn(J(r),()=>{xe(n,[0,0]),xe(N,!0)})}),se(J(P,me(V=>V!=null&&V.scrollTop>0),Bn(0)),I),Ve(J(g,Ce(P),me(([,V])=>V!=null)),([,V])=>{V&&(xe(p,V.viewport),xe(S,V==null?void 0:V.item),xe(R,V.gap),V.scrollTop>0&&(xe(F,!0),Gn(J(r,ho(1)),z=>{xe(F,!1)}),xe(a,{top:V.scrollTop})))}),se(J(p,te(({height:V})=>V)),i),se(J(ft(pe(p,Cs),pe(S,Cs),pe(R,(V,z)=>V&&V.column===z.column&&V.row===z.row),pe(r)),te(([V,z,Y,K])=>({viewport:V,item:z,gap:Y,scrollTop:K}))),M),se(J(ft(pe(D),t,pe(R,N_),pe(S,Cs),pe(p,Cs),pe(k),pe(I),pe(F),pe(N),pe(B)),me(([,,,,,,,V])=>!V),te(([V,[z,Y],K,Q,ee,X,ue,,fe,he])=>{const{row:ht,column:ne}=K,{height:ie,width:ve}=Q,{width:Le}=ee;if(ue===0&&(V===0||Le===0))return lm;if(ve===0){const Hu=Gf(he,V),KC=Hu===0?Math.max(ue-1,0):Hu;return O_(dm(Hu,KC,X))}const at=yv(Le,ve,ne);let Re,Ie;fe?z===0&&Y===0&&ue>0?(Re=0,Ie=ue-1):(Re=at*kl((z+ht)/(ie+ht)),Ie=at*cm((Y+ht)/(ie+ht))-1,Ie=lc(V-1,Qo(Ie,at-1)),Re=lc(Ie,Qo(0,Re))):(Re=0,Ie=-1);const en=dm(Re,Ie,X),{top:hn,bottom:gn}=fm(ee,K,Q,en),Mi=cm(V/at),JC=Mi*ie+(Mi-1)*ht-gn;return{items:en,offsetTop:hn,offsetBottom:JC,top:hn,bottom:gn,itemHeight:ie,itemWidth:ve}})),T),se(J(k,me(V=>V!==null),te(V=>V.length)),D),se(J(ft(p,S,T,R),me(([V,z,{items:Y}])=>Y.length>0&&z.height!==0&&V.height!==0),te(([V,z,{items:Y},K])=>{const{top:Q,bottom:ee}=fm(V,K,z,Y);return[Q,ee]}),ze(Ca)),n);const L=q(!1);se(J(r,Ce(L),te(([V,z])=>z||V!==0)),L);const W=Yt(J(pe(T),me(({items:V})=>V.length>0),Ce(D,L),me(([{items:V},z,Y])=>Y&&V[V.length-1].index===z-1),te(([,V])=>V-1),ze())),Z=Yt(J(pe(T),me(({items:V})=>V.length>0&&V[0].index===0),Bn(0),ze())),H=Yt(J(pe(T),Ce(F),me(([{items:V},z])=>V.length>0&&!z),te(([{items:V}])=>({startIndex:V[0].index,endIndex:V[V.length-1].index})),ze(cv),Ar(0)));se(H,h.scrollSeekRangeChanged),se(J($,Ce(p,S,D,R),te(([V,z,Y,K,Q])=>{const ee=lv(V),{align:X,behavior:ue,offset:fe}=ee;let he=ee.index;he==="LAST"&&(he=K-1),he=Qo(0,he,lc(K-1,he));let ht=Sd(z,Q,Y,he);return X==="end"?ht=um(ht-z.height+Y.height):X==="center"&&(ht=um(ht-z.height/2+Y.height/2)),fe&&(ht+=fe),{top:ht,behavior:ue}})),a);const j=Dt(J(T,te(V=>V.offsetBottom+V.bottom)),0);return se(J(m,te(V=>({width:V.visibleWidth,height:V.visibleHeight}))),p),{data:k,totalCount:D,viewportDimensions:p,itemDimensions:S,scrollTop:r,scrollHeight:_,overscan:e,scrollBy:o,scrollTo:a,scrollToIndex:$,smoothScrollTargetReached:s,windowViewportRect:m,windowScrollTo:x,useWindowScroll:b,customScrollParent:y,windowScrollContainerState:v,deviation:A,scrollContainerState:l,footerHeight:u,headerHeight:c,initialItemCount:I,gap:R,restoreStateFrom:P,...h,initialTopMostItemIndex:B,gridState:T,totalListHeight:j,...d,startReached:Z,endReached:W,rangeChanged:H,stateChanged:M,propsReady:f,stateRestoreInProgress:F,...C}},Ge(Zf,Ft,Qa,fv,Zr,Xf,Gr));function fm(e,t,n,r){const{height:i}=n;if(i===void 0||r.length===0)return{top:0,bottom:0};const o=Sd(e,t,n,r[0].index),a=Sd(e,t,n,r[r.length-1].index)+i;return{top:o,bottom:a}}function Sd(e,t,n,r){const i=yv(e.width,n.width,t.column),o=kl(r/i),a=o*n.height+Qo(0,o-1)*t.row;return a>0?a+t.row:a}function yv(e,t,n){return Qo(1,kl((e+n)/(kl(t)+n)))}const L_=Pe(()=>{const e=q(u=>`Item ${u}`),t=q({}),n=q(null),r=q("virtuoso-grid-item"),i=q("virtuoso-grid-list"),o=q(Uf),a=q("div"),s=q(Ri),l=(u,c=null)=>Dt(J(t,te(d=>d[u]),ze()),c);return{context:n,itemContent:e,components:t,computeItemKey:o,itemClassName:r,listClassName:i,headerFooterTag:a,scrollerRef:s,FooterComponent:l("Footer"),HeaderComponent:l("Header"),ListComponent:l("List","div"),ItemComponent:l("Item","div"),ScrollerComponent:l("Scroller","div"),ScrollSeekPlaceholder:l("ScrollSeekPlaceholder","div")}}),j_=Pe(([e,t])=>({...e,...t}),Ge(V_,L_)),H_=w.memo(function(){const t=Ye("gridState"),n=Ye("listClassName"),r=Ye("itemClassName"),i=Ye("itemContent"),o=Ye("computeItemKey"),a=Ye("isSeeking"),s=Cn("scrollHeight"),l=Ye("ItemComponent"),u=Ye("ListComponent"),c=Ye("ScrollSeekPlaceholder"),d=Ye("context"),h=Cn("itemDimensions"),f=Cn("gap"),g=Ye("log"),m=Ye("stateRestoreInProgress"),b=Zn(y=>{const v=y.parentElement.parentElement.scrollHeight;s(v);const x=y.firstChild;if(x){const{width:C,height:D}=x.getBoundingClientRect();h({width:C,height:D})}f({row:hm("row-gap",getComputedStyle(y).rowGap,g),column:hm("column-gap",getComputedStyle(y).columnGap,g)})});return m?null:w.createElement(u,{ref:b,className:n,...qe(u,d),style:{paddingTop:t.offsetTop,paddingBottom:t.offsetBottom},"data-testid":"virtuoso-item-list"},t.items.map(y=>{const v=o(y.index,y.data,d);return a?w.createElement(c,{key:v,...qe(c,d),index:y.index,height:t.itemHeight,width:t.itemWidth}):w.createElement(l,{...qe(l,d),className:r,"data-index":y.index,key:v},i(y.index,y.data,d))}))}),W_=w.memo(function(){const t=Ye("HeaderComponent"),n=Cn("headerHeight"),r=Ye("headerFooterTag"),i=Zn(a=>n(Sn(a,"height"))),o=Ye("context");return t?w.createElement(r,{ref:i},w.createElement(t,qe(t,o))):null}),z_=w.memo(function(){const t=Ye("FooterComponent"),n=Cn("footerHeight"),r=Ye("headerFooterTag"),i=Zn(a=>n(Sn(a,"height"))),o=Ye("context");return t?w.createElement(r,{ref:i},w.createElement(t,qe(t,o))):null}),G_=({children:e})=>{const t=w.useContext(bv),n=Cn("itemDimensions"),r=Cn("viewportDimensions"),i=Zn(o=>{r(o.getBoundingClientRect())});return w.useEffect(()=>{t&&(r({height:t.viewportHeight,width:t.viewportWidth}),n({height:t.itemHeight,width:t.itemWidth}))},[t,r,n]),w.createElement("div",{style:So(!1),ref:i},e)},Z_=({children:e})=>{const t=w.useContext(bv),n=Cn("windowViewportRect"),r=Cn("itemDimensions"),i=Ye("customScrollParent"),o=Yf(n,i);return w.useEffect(()=>{t&&(r({height:t.itemHeight,width:t.itemWidth}),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:t.viewportWidth}))},[t,n,r]),w.createElement("div",{ref:o,style:So(!1)},e)},X_=w.memo(function({...t}){const n=Ye("useWindowScroll"),r=Ye("customScrollParent"),i=r||n?U_:Y_,o=r||n?Z_:G_;return w.createElement(i,{...t},w.createElement(o,null,w.createElement(W_,null),w.createElement(H_,null),w.createElement(z_,null)))}),{usePublisher:Cn,useEmitterValue:Ye,useEmitter:xv}=Lf(j_,{optional:{context:"context",totalCount:"totalCount",overscan:"overscan",itemContent:"itemContent",components:"components",computeItemKey:"computeItemKey",data:"data",initialItemCount:"initialItemCount",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",listClassName:"listClassName",itemClassName:"itemClassName",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",restoreStateFrom:"restoreStateFrom",initialTopMostItemIndex:"initialTopMostItemIndex"},methods:{scrollTo:"scrollTo",scrollBy:"scrollBy",scrollToIndex:"scrollToIndex"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",stateChanged:"stateChanged"}},X_),Y_=Jf({usePublisher:Cn,useEmitterValue:Ye,useEmitter:xv}),U_=Kf({usePublisher:Cn,useEmitterValue:Ye,useEmitter:xv});function hm(e,t,n){return t!=="normal"&&!(t!=null&&t.endsWith("px"))&&n(`${e} was not resolved to pixel value correctly`,t,Ut.WARN),t==="normal"?0:parseInt(t??"0",10)}const J_=Pe(()=>{const e=q(l=>w.createElement("td",null,"Item $",l)),t=q(null),n=q(null),r=q(null),i=q({}),o=q(Uf),a=q(Ri),s=(l,u=null)=>Dt(J(i,te(c=>c[l]),ze()),u);return{context:t,itemContent:e,fixedHeaderContent:n,fixedFooterContent:r,components:i,computeItemKey:o,scrollerRef:a,TableComponent:s("Table","table"),TableHeadComponent:s("TableHead","thead"),TableFooterComponent:s("TableFoot","tfoot"),TableBodyComponent:s("TableBody","tbody"),TableRowComponent:s("TableRow","tr"),ScrollerComponent:s("Scroller","div"),EmptyPlaceholder:s("EmptyPlaceholder"),ScrollSeekPlaceholder:s("ScrollSeekPlaceholder"),FillerRow:s("FillerRow")}}),K_=Pe(([e,t])=>({...e,...t}),Ge(mv,J_)),q_=({height:e})=>w.createElement("tr",null,w.createElement("td",{style:{height:e}})),Q_=({height:e})=>w.createElement("tr",null,w.createElement("td",{style:{height:e,padding:0,border:0}})),e$={overflowAnchor:"none"},t$=w.memo(function(){const t=Be("listState"),n=wn("sizeRanges"),r=Be("useWindowScroll"),i=Be("customScrollParent"),o=wn("windowScrollContainerState"),a=wn("scrollContainerState"),s=i||r?o:a,l=Be("itemContent"),u=Be("trackItemSizes"),c=Be("itemSize"),d=Be("log"),{callbackRef:h,ref:f}=K1(n,c,u,s,d,void 0,i),[g,m]=w.useState(0);Qf("deviation",P=>{g!==P&&(f.current.style.marginTop=`${P}px`,m(P))});const b=Be("EmptyPlaceholder"),y=Be("ScrollSeekPlaceholder")||q_,v=Be("FillerRow")||Q_,x=Be("TableBodyComponent"),C=Be("TableRowComponent"),D=Be("computeItemKey"),I=Be("isSeeking"),T=Be("paddingTopAddition"),p=Be("firstItemIndex"),S=Be("statefulTotalCount"),$=Be("context");if(S===0&&b)return w.createElement(b,qe(b,$));const _=t.offsetTop+T+g,A=t.offsetBottom,k=_>0?w.createElement(v,{height:_,key:"padding-top",context:$}):null,R=A>0?w.createElement(v,{height:A,key:"padding-bottom",context:$}):null,M=t.items.map(P=>{const F=P.originalIndex,B=D(F+p,P.data,$);return I?w.createElement(y,{...qe(y,$),key:B,index:P.index,height:P.size,type:P.type||"item"}):w.createElement(C,{...qe(C,$),...vv(C,P.data),key:B,"data-index":F,"data-known-size":P.size,"data-item-index":P.index,style:e$},l(P.index,P.data,$))});return w.createElement(x,{ref:h,"data-testid":"virtuoso-item-list",...qe(x,$)},[k,...M,R])}),n$=({children:e})=>{const t=w.useContext(wu),n=wn("viewportHeight"),r=wn("fixedItemHeight"),i=Zn(pa(n,o=>Sn(o,"height")));return w.useEffect(()=>{t&&(n(t.viewportHeight),r(t.itemHeight))},[t,n,r]),w.createElement("div",{style:So(!1),ref:i,"data-viewport-type":"element"},e)},r$=({children:e})=>{const t=w.useContext(wu),n=wn("windowViewportRect"),r=wn("fixedItemHeight"),i=Be("customScrollParent"),o=Yf(n,i);return w.useEffect(()=>{t&&(r(t.itemHeight),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,n,r]),w.createElement("div",{ref:o,style:So(!1),"data-viewport-type":"window"},e)},i$=w.memo(function(t){const n=Be("useWindowScroll"),r=Be("customScrollParent"),i=wn("fixedHeaderHeight"),o=wn("fixedFooterHeight"),a=Be("fixedHeaderContent"),s=Be("fixedFooterContent"),l=Be("context"),u=Zn(pa(i,v=>Sn(v,"height"))),c=Zn(pa(o,v=>Sn(v,"height"))),d=r||n?s$:a$,h=r||n?r$:n$,f=Be("TableComponent"),g=Be("TableHeadComponent"),m=Be("TableFooterComponent"),b=a?w.createElement(g,{key:"TableHead",style:{zIndex:2,position:"sticky",top:0},ref:u,...qe(g,l)},a()):null,y=s?w.createElement(m,{key:"TableFoot",style:{zIndex:1,position:"sticky",bottom:0},ref:c,...qe(m,l)},s()):null;return w.createElement(d,{...t},w.createElement(h,null,w.createElement(f,{style:{borderSpacing:0,overflowAnchor:"none"},...qe(f,l)},[b,w.createElement(t$,{key:"TableBody"}),y])))}),{Component:o$,usePublisher:wn,useEmitterValue:Be,useEmitter:Qf}=Lf(K_,{required:{},optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",firstItemIndex:"firstItemIndex",itemContent:"itemContent",fixedHeaderContent:"fixedHeaderContent",fixedFooterContent:"fixedFooterContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",topItemCount:"topItemCount",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",groupCounts:"groupCounts",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},i$),a$=Jf({usePublisher:wn,useEmitterValue:Be,useEmitter:Qf}),s$=Kf({usePublisher:wn,useEmitterValue:Be,useEmitter:Qf}),l$=o$,u$=({children:e,...t})=>E.jsx(E.Fragment,{children:e(t)}),c$=({children:e,...t})=>E.jsx(E.Fragment,{children:w.isValidElement(e)&&E.jsx(E.Fragment,{children:w.cloneElement(e,t)})}),eh=w.forwardRef((e,t)=>{const{classNameContainer:n="",computeItemKey:r=()=>"",itemSize:i=()=>0,totalCount:o=0,typeHight:a="min-max",minHeightItem:s=0,maxHeightTable:l=0,minLengthItem:u=0,fixedHeaderContent:c,itemContent:d,typeCalculateItemSize:h="manual",itemSizeNames:f=[],overscan:g=null,component:m={},idContainer:b="",triggerCalCulateContainer:y="",accumulationHeight:v=0,delayTriggerCalculateHeight:x=0,increaseViewportBy:C=()=>0,context:D={},endReached:I,increaseTotalCount:T=1}=e,[p,S]=w.useState(0),$=()=>{if(a==="min-max"){const k=(o+T)*s;return{height:o>u?l:p>k?p:k}}return a==="container"?{height:p}:{}},_=k=>{var P;const R=k.getAttribute("data-index");let M=((P=k.getBoundingClientRect())==null?void 0:P.height)||0;return f==null||f.forEach(F=>{var B,N;M+=((N=(B=document.querySelector(`[${F}="${R}"]`))==null?void 0:B.getBoundingClientRect())==null?void 0:N.height)??0}),M},A=()=>{var k;if(b&&a==="container"){const R=((k=document==null?void 0:document.getElementById(b))==null?void 0:k.offsetHeight)??0;S(R-v)}};return w.useEffect(()=>{const k=setTimeout(A,x);return window==null||window.addEventListener("resize",A),window==null||window.addEventListener("load",A),()=>{clearTimeout(k),window==null||window.removeEventListener("resize",A),window==null||window.removeEventListener("load",A)}},[a,y]),E.jsx("div",{className:`1ru-w-full ${n}`,children:E.jsx(l$,{context:D,ref:t,overscan:typeof g=="function"?g(a==="container"?p:l):a==="container"?p:l,totalListHeightChanged:k=>a==="min-max"?S(k):null,style:$(),totalCount:o,computeItemKey:r,itemSize:w.useCallback(k=>h==="manual"?i(k):_(k),[]),components:{TableRow:c$,...m},fixedHeaderContent:c,itemContent:(...k)=>d(u$,...k),endReached:I,increaseViewportBy:C(a==="container"?p:l)})})});eh.displayName="TableVirtualization";const d$="_sorting_1tyuq_45",bn={"payhere-reguler":"_payhere-reguler_1tyuq_1","laba-small":"_laba-small_1tyuq_1","laba-reguler":"_laba-reguler_1tyuq_1","pointer-laba":"_pointer-laba_1tyuq_16","pointer-payhere":"_pointer-payhere_1tyuq_20","resize-menu":"_resize-menu_1tyuq_24",sorting:d$,"laba-grey-02":"_laba-grey-02_1tyuq_59"},Vi="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.6673%2011.3333L8.00065%2014M8.00065%2014L5.33398%2011.3333M8.00065%2014V2'%20stroke='%23CFD8DC'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e";function f$(e,t=null){const[n,r]=w.useState(!1);return w.useEffect(()=>{let i=null,o=null;const a=()=>{const s=i instanceof HTMLElement?i.getBoundingClientRect().width:window.innerWidth,l=window.matchMedia(e.replace("WIDTH",s.toString()));r(l.matches)};if(t){if(i=document.getElementById(t),!i)return;o=new ResizeObserver(a),o.observe(i)}else i=window,window.addEventListener("resize",a);return a(),()=>{o?o.disconnect():window.removeEventListener("resize",a)}},[e,t]),n}const h$=e=>{const t=h=>{const f=new Date,g=h.getTime()-f.getTime();return Math.max(Math.floor(g/1e3),0)},n=new Date(new Date(e.date).setHours(new Date(e.date).getHours()-((e==null?void 0:e.adjustTimesTime)??0))),[r,i]=w.useState(t(n)),[o,a]=w.useState(e.running??!1),[s,l]=w.useState(()=>e==null?void 0:e.callbackDone);return w.useEffect(()=>{let h;return o&&r>0?h=setInterval(()=>{i(f=>Math.max(f-1,0))},e.intervalMs):o&&r===0&&typeof s=="function"&&s(),()=>{h&&clearInterval(h)}},[o,r,e.intervalMs,s]),{count:r,startCountdown:()=>{a(!0)},stopCountdown:()=>{a(!1)},resetCountdown:h=>{i(typeof h=="number"?h:t(h??n))},setCallbackDone:h=>l(()=>h)}};function Cv(e,t=0){const n=w.useRef({promise:null,resolve:null,reject:null,timeout:null});return w.useCallback((...i)=>(n.current.timeout&&clearTimeout(n.current.timeout),n.current.promise||(n.current.promise=new Promise((o,a)=>{n.current.resolve=o,n.current.reject=a})),n.current.timeout=setTimeout(()=>{e(...i).then(o=>{n.current.resolve&&n.current.resolve(o)}).catch(o=>{n.current.reject&&n.current.reject(o)}).finally(()=>{n.current.promise=null,n.current.resolve=null,n.current.reject=null,n.current.timeout=null})},t),n.current.promise),[e,t])}const th=typeof window<"u"?w.useLayoutEffect:w.useEffect,g$=(e,t)=>{const[n,r]=w.useState({width:0,height:0}),[i,o]=w.useState({width:0,height:0,top:0,left:0,bottom:0,right:0,x:0,y:0}),a=w.useRef(null);return th(()=>{const s=()=>{r({width:window.innerWidth,height:window.innerHeight})},l=d=>{for(const h of d){const{width:f,height:g,top:m,left:b,bottom:y,right:v,x,y:C}=h.contentRect;o({width:f,height:g,top:m,left:b,bottom:y,right:v,x,y:C})}};let u=null;t?u=document.querySelector(t):a.current&&(u=a.current);const c=new ResizeObserver(l);return u&&c.observe(u),window.addEventListener("resize",s),s(),()=>{u&&c.unobserve(u),window.removeEventListener("resize",s)}},[t,...e??[]]),{ref:a,windowSize:n,contentRect:i}};function m$(e){const[t,n]=w.useState(e),r=w.useRef(t);return w.useEffect(()=>{r.current=t},[t]),[t,n,r]}function p$(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${JSON.stringify(t)}' to ref '${JSON.stringify(e)}'`)}}}function b$(...e){return t=>{e.forEach(n=>{p$(n,t)})}}function nh(...e){return w.useMemo(()=>b$(...e),e)}function wa(e){const t=w.useRef(e);return xf(e,t.current)||(t.current=e),t.current}function Ci(e,t){const n=t.map(wa);w.useEffect(e,n)}function v$({ref:e,handlerMain:t,eventListener:n="mousedown",useEffectDependency:r=[]}){w.useEffect(()=>{function i(o){t(e,o)}return document.addEventListener(n,i),()=>{document.removeEventListener(n,i)}},[e,t,n,...r])}const y$=({containerRef:e,children:t,columnCount:n,gapX:r,gapY:i,direction:o="masonry-ltr",debounceRecalculate:a=500,durationAnimation:s=500,enableAnimation:l=!1})=>{const u=w.useCallback(()=>{const d=e.current;if(!d)return;const h=Array.from(d.children);if(h.length===0){d.style.height="0px";return}const f=Array(n).fill(0),g=d.offsetWidth;if(g===0)return;const m=(g-(n-1)*r)/n,b=o.includes("rtl"),y=o.includes("top-down");h.forEach((x,C)=>{x.style.width=`${m}px`,x.style.position="absolute",l&&(x.style.transition=`top ${s}ms ease, left ${s}ms ease`);let D;if(y)D=C%n;else{const p=Math.min(...f);D=f.indexOf(p)}const I=f[D];let T;b?T=g-(m*(D+1)+r*D):T=D*(m+r),x.style.top=`${I}px`,x.style.left=`${T}px`,f[D]+=x.offsetHeight+i});const v=Math.max(...f);d.style.height=`${v-i}px`},[e,n,r,o,i]),c=Cv(async()=>{u()},a);return w.useLayoutEffect(()=>{u()},[t,u]),w.useEffect(()=>(window.addEventListener("load",u),window.addEventListener("resize",c),()=>{window.removeEventListener("load",u),window.removeEventListener("resize",c)}),[t,c,u]),{recalculateLayout:u}},x$=(e,t)=>{var r,i;let n={};return e&&(n={position:"sticky",top:0,zIndex:2}),(r=t.column.columnDef.meta)!=null&&r.styleTh&&(n={...n,...(i=t.column.columnDef.meta)==null?void 0:i.styleTh(t.column.columnDef)}),n},Ml=(e,t=!1)=>{const n=e.getIsPinned(),r=n==="left"&&e.getIsLastColumn("left"),i=n==="right"&&e.getIsFirstColumn("right");return n?{boxShadow:r?"-4px 0 4px -4px gray inset":i?"4px 0 4px -4px gray inset":void 0,left:n==="left"?`${e.getStart("left")}px`:void 0,right:n==="right"?`${e.getAfter("right")}px`:void 0,position:"sticky",width:e.getSize(),zIndex:1,background:t?"white":""}:{}},wv=e=>{const t=e.columnPinning.left||[],n=e.columnPinning.right||[],r=e.rowPinning.top||[],i=e.rowPinning.bottom||[];return{left:t,right:n,top:r,bottom:i,isPinning:t.length>0||n.length>0||r.length>0||i.length>0}},Wt=()=>({kind:{"payhere-reguler":bn["payhere-reguler"],"laba-reguler":bn["laba-reguler"],"laba-small":bn["laba-small"]},pointer:{"payhere-reguler":bn["pointer-payhere"],"laba-reguler":bn["pointer-laba"],"laba-small":bn["pointer-laba"]},utility:{"table-scroll-top":""},sortingIcon:{"payhere-reguler":{asc:E.jsx("img",{src:Vi,className:"1ru-w-4 1ru-h-4"}),desc:E.jsx("img",{src:Vi,className:"1ru-w-4 1ru-h-4 1ru-rotate-180"})},"laba-reguler":{asc:E.jsx("img",{src:Vi,className:"1ru-w-4 1ru-h-4"}),desc:E.jsx("img",{src:Vi,className:"1ru-w-4 1ru-h-4 1ru-rotate-180"})},"laba-small":{asc:E.jsx("img",{src:Vi,className:"1ru-w-4 1ru-h-4"}),desc:E.jsx("img",{src:Vi,className:"1ru-w-4 1ru-h-4 1ru-rotate-180"})}},variant:{"laba-grey-02":bn["laba-grey-02"]}}),C$=({tableInstance:e,classNameWrapperTable:t,classNameTable:n,handlerRowClick:r,privillageRowClick:i,headerId:o,tbodyTrId:a,maxHeight:s,idCalculateHeight:l,componentSortASC:u,componentSortDESC:c,classNamePointer:d,emptyPlaceholder:h,renderSubComponent:f})=>E.jsx("div",{id:"1ru-table",style:s?{height:s,overflow:"auto"}:{},className:t??"",children:E.jsxs("table",{className:n,style:{width:wv(e.getState()).isPinning?e.getTotalSize():""},children:[E.jsx("thead",{id:o,"data-calculate-height-header":l,children:e.getHeaderGroups().map(g=>E.jsx("tr",{children:g.headers.map(m=>{var y,v,x,C;const b=(v=(y=m.column.columnDef.meta)==null?void 0:y.rowSpan)==null?void 0:v.call(y,m);return!m.isPlaceholder&&b!==void 0&&m.id===m.column.id?E.jsx(E.Fragment,{}):E.jsxs("th",{style:{...x$(s,m),...Ml(m.column)},colSpan:typeof((x=m.column.columnDef.meta)==null?void 0:x.colSpan)=="function"?(C=m.column.columnDef.meta)==null?void 0:C.colSpan(m.column.columnDef):m.colSpan,rowSpan:b,children:[m.isPlaceholder&&b===void 0?null:E.jsxs("div",{className:m.column.getCanSort()?bn.sorting:"",onClick:m.column.getToggleSortingHandler(),children:[ma(m.column.columnDef.header,m.getContext()),m.column.getCanSort()&&E.jsx("span",{className:"1ru-flex-shrink-0",children:m.column.getIsSorted()==="asc"||m.column.getIsSorted()==="desc"?E.jsxs(E.Fragment,{children:[m.column.getIsSorted()==="asc"&&E.jsx(E.Fragment,{children:u}),m.column.getIsSorted()==="desc"&&E.jsx(E.Fragment,{children:c})]}):E.jsx(E.Fragment,{})})]}),m.column.getIsPinned()&&E.jsx("div",{onDoubleClick:()=>m.column.resetSize(),onMouseDown:m.getResizeHandler(),onTouchStart:m.getResizeHandler(),className:bn["resize-menu"]})]},m.id)})},g.id))}),E.jsxs("tbody",{children:[e.getRowModel().rows.length>0&&e.getRowModel().rows.map((g,m)=>E.jsxs(w.Fragment,{children:[E.jsx("tr",{onClick:b=>{b.stopPropagation(),i&&typeof r=="function"&&r(g.original,g)},className:i?d:"","data-calculate-height":`${l}-${m}`,id:a(g),children:g.getVisibleCells().map(b=>{var y,v,x;return E.jsx("td",{style:{...typeof((y=b.column.columnDef.meta)==null?void 0:y.styleTd)=="function"?b.column.columnDef.meta.styleTd(g.original,g):{},...Ml(b.column,!0)},className:typeof((v=b.column.columnDef.meta)==null?void 0:v.classNameTd)=="function"?(x=b.column.columnDef.meta)==null?void 0:x.classNameTd(g.original,g):"",children:ma(b.column.columnDef.cell,b.getContext())},b.id)})},g.id),g.getIsExpanded()&&typeof f=="function"&&E.jsx("tr",{children:E.jsx("td",{colSpan:g.getVisibleCells().length,children:f(g.original,g)})})]},g.id)),e.getRowModel().rows.length===0&&w.isValidElement(h)&&E.jsx("tr",{children:E.jsx("td",{colSpan:e.getVisibleFlatColumns().length,children:h})})]})]})}),Dv=w.forwardRef((e,t)=>{const{context:n,...r}=e;return E.jsx("thead",{id:(n==null?void 0:n.headerId)??"",...r,ref:t})});Dv.displayName="VirtualizationHead";const w$=({style:e,context:t,...n})=>E.jsx("table",{...n,id:"1ru-table",className:(t==null?void 0:t.classNameTable)??"",style:{...e,width:t==null?void 0:t.width}}),D$=({tableInstance:e,classNameWrapperTable:t,handlerRowClick:n,privillageRowClick:r,virtualizationProps:i,headerId:o,tbodyTrId:a,classNameTable:s,componentSortASC:l,componentSortDESC:u,classNamePointer:c,emptyPlaceholder:d,renderSubComponent:h})=>{var m,b,y;const[f,g]=w.useState(0);return E.jsx(eh,{context:{headerId:o,classNameTable:s,width:wv(e.getState()).isPinning?e.getTotalSize():""},typeHight:"min-max",totalCount:((m=e.getRowModel().rows)==null?void 0:m.length)||0,minLengthItem:((b=e.getRowModel().rows)==null?void 0:b.length)||0,typeCalculateItemSize:"auto",component:{TableHead:Dv,Table:w$,EmptyPlaceholder:()=>E.jsx("tbody",{ref:v=>{var x;return g(((x=v==null?void 0:v.getBoundingClientRect())==null?void 0:x.height)??0)},children:E.jsx("tr",{children:E.jsx("td",{colSpan:e.getVisibleFlatColumns().length,children:w.isValidElement(d)&&d})})})},classNameContainer:t,fixedHeaderContent:()=>e.getHeaderGroups().map(v=>E.jsx("tr",{children:v.headers.map(x=>{var D,I,T,p;const C=(I=(D=x.column.columnDef.meta)==null?void 0:D.rowSpan)==null?void 0:I.call(D,x);return!x.isPlaceholder&&C!==void 0&&x.id===x.column.id?E.jsx(E.Fragment,{}):E.jsxs("th",{colSpan:x.colSpan,rowSpan:C,style:{...typeof((T=x.column.columnDef.meta)==null?void 0:T.styleTh)=="function"?(p=x.column.columnDef.meta)==null?void 0:p.styleTh(x.column.columnDef):{},...Ml(x.column)},children:[x.isPlaceholder&&C===void 0?null:E.jsxs("div",{className:x.column.getCanSort()?bn.sorting:"",onClick:x.column.getToggleSortingHandler(),children:[ma(x.column.columnDef.header,x.getContext()),x.column.getCanSort()&&E.jsx("span",{className:"1ru-flex-shrink-0",children:x.column.getIsSorted()==="asc"||x.column.getIsSorted()==="desc"?E.jsxs(E.Fragment,{children:[x.column.getIsSorted()==="asc"&&E.jsx(E.Fragment,{children:l}),x.column.getIsSorted()==="desc"&&E.jsx(E.Fragment,{children:u})]}):E.jsx(E.Fragment,{})})]}),x.column.getIsPinned()&&E.jsx("div",{onDoubleClick:()=>x.column.resetSize(),onMouseDown:x.getResizeHandler(),onTouchStart:x.getResizeHandler(),className:bn["resize-menu"]})]},x.id)})},v.id)),itemContent:(v,x)=>{var D,I;const C=(I=(D=e.getRowModel())==null?void 0:D.rows)==null?void 0:I[x];return E.jsx(v,{children:({...T})=>E.jsxs(w.Fragment,{children:[E.jsx("tr",{...T,onClick:p=>{p.stopPropagation(),r&&typeof n=="function"&&n(C.original,C)},className:r?c:"",id:a(C),children:C.getVisibleCells().map(p=>{var S,$,_;return E.jsx(E.Fragment,{children:E.jsx("td",{style:{...typeof((S=p.column.columnDef.meta)==null?void 0:S.styleTd)=="function"?p.column.columnDef.meta.styleTd(C.original,C):{},...Ml(p.column,!0)},className:typeof(($=p.column.columnDef.meta)==null?void 0:$.classNameTd)=="function"?(_=p.column.columnDef.meta)==null?void 0:_.classNameTd(C.original,C):"",children:ma(p.column.columnDef.cell,p.getContext())},p.id)})})}),C.getIsExpanded()&&typeof h=="function"&&E.jsx("tr",{"data-sub-component":x,children:E.jsx("td",{colSpan:C.getVisibleCells().length,children:h(C.original,C)})})]},C.id)},C.id)},...i,minHeightItem:((i==null?void 0:i.minHeightItem)??60)+((((y=e.getRowModel().rows)==null?void 0:y.length)||0)>0?0:f),itemSizeNames:typeof h=="function"?[...(i==null?void 0:i.itemSizeNames)??[],"data-sub-component"]:i==null?void 0:i.itemSizeNames})},S$=({tableInstance:e,classNameWrapperTable:t="",classNameTable:n="",collapseAll:r=!0,handlerRowClick:i,privillageRowClick:o=!1,virtualization:a=!1,virtualizationProps:s,headerId:l="",tbodyTrId:u=()=>"",maxHeight:c=0,idCalculateHeight:d=void 0,kind:h="laba-reguler",componentSortASC:f,componentSortDESC:g,scrollTop:m=!1,emptyPlaceholder:b,variant:y,renderSubComponent:v})=>{const x=()=>{if(![void 0,"undefined"].includes(d)){const C=document.querySelector(`[data-calculate-height-header="${d}"]`);let D=0;const I=document.querySelectorAll(`[data-calculate-height^="${d}-"]`);return I==null||I.forEach(T=>{D+=T.offsetHeight}),D>c?c+C.offsetHeight:0}return c};return Ci(()=>{!r&&typeof e.toggleAllRowsExpanded=="function"&&e.toggleAllRowsExpanded()},[r,e==null?void 0:e.toggleAllRowsExpanded]),E.jsxs(E.Fragment,{children:[!a&&E.jsx(C$,{tbodyTrId:u,headerId:l,tableInstance:e,classNameTable:n,classNameWrapperTable:`${Wt().kind[h]} ${y?Wt().variant[y]:""}
45
+ */function ma(e,t){return e?wI(e)?G.createElement(e,t):e:null}function wI(e){return DI(e)||typeof e=="function"||SI(e)}function DI(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function SI(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function EI(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=G.useState(()=>({current:Z1(t)})),[r,i]=G.useState(()=>n.current.initialState);return n.current.setOptions(o=>({...o,...e,state:{...r,...e.state},onStateChange:a=>{i(a),e.onStateChange==null||e.onStateChange(a)}})),n.current}const II=Object.freeze(Object.defineProperty({__proto__:null,ColumnFaceting:C1,ColumnFiltering:A1,ColumnGrouping:F1,ColumnOrdering:T1,ColumnPinning:k1,ColumnSizing:M1,ColumnVisibility:O1,GlobalFaceting:N1,GlobalFiltering:V1,Headers:x1,RowExpanding:L1,RowPagination:H1,RowPinning:j1,RowSelection:W1,RowSorting:G1,_getVisibleLeafColumns:eo,aggregationFns:el,buildHeaderGroups:No,createCell:v1,createColumn:y1,createColumnHelper:ZE,createRow:Ka,createTable:Z1,defaultColumnSizing:Vo,expandRows:Of,filterFns:kn,flattenBy:kf,flexRender:ma,functionalUpdate:sr,getCoreRowModel:cI,getExpandedRowModel:dI,getFacetedMinMaxValues:fI,getFacetedRowModel:mI,getFacetedUniqueValues:pI,getFilteredRowModel:bI,getGroupedRowModel:vI,getMemoOptions:ae,getPaginationRowModel:xI,getSortedRowModel:CI,isFunction:Ja,isNumberArray:b1,isRowSelected:bu,isSubRowSelected:Rl,makeStateUpdater:Nt,memo:oe,noop:XE,orderColumns:P1,passiveEventSupported:B1,reSplitAlphaNumeric:Al,selectRowsFn:tl,shouldAutoRemoveFilter:pd,sortingFns:Yi,useReactTable:EI},Symbol.toStringTag,{value:"Module"})),vu=0,zr=1,Do=2,Y1=4;function pa(e,t){return n=>e(t(n))}function _I(e,t){return t(e)}function U1(e,t){return n=>e(t,n)}function Ug(e,t){return()=>e(t)}function yu(e,t){return t(e),e}function Ge(...e){return e}function $I(e){e()}function Jg(e){return()=>e}function RI(...e){return()=>{e.map($I)}}function Nf(e){return e!==void 0}function Ri(){}function Ve(e,t){return e(zr,t)}function xe(e,t){e(vu,t)}function Vf(e){e(Do)}function wt(e){return e(Y1)}function se(e,t){return Ve(e,U1(t,vu))}function Gn(e,t){const n=e(zr,r=>{n(),t(r)});return n}function $e(){const e=[];return(t,n)=>{switch(t){case Do:e.splice(0,e.length);return;case zr:return e.push(n),()=>{const r=e.indexOf(n);r>-1&&e.splice(r,1)};case vu:e.slice().forEach(r=>{r(n)});return;default:throw new Error(`unrecognized action ${t}`)}}}function q(e){let t=e;const n=$e();return(r,i)=>{switch(r){case zr:i(t);break;case vu:t=i;break;case Y1:return t}return n(r,i)}}function AI(e){let t,n;const r=()=>t&&t();return function(i,o){switch(i){case zr:return o?n===o?void 0:(r(),n=o,t=Ve(e,o),t):(r(),Ri);case Do:r(),n=null;return;default:throw new Error(`unrecognized action ${i}`)}}}function Yt(e){return yu($e(),t=>se(e,t))}function Dt(e,t){return yu(q(t),n=>se(e,n))}function FI(...e){return t=>e.reduceRight(_I,t)}function J(e,...t){const n=FI(...t);return(r,i)=>{switch(r){case zr:return Ve(e,n(i));case Do:Vf(e);return}}}function J1(e,t){return e===t}function ze(e=J1){let t;return n=>r=>{e(t,r)||(t=r,n(r))}}function me(e){return t=>n=>{e(n)&&t(n)}}function te(e){return t=>pa(t,e)}function Bn(e){return t=>()=>t(e)}function Nn(e,t){return n=>r=>n(t=e(t,r))}function ho(e){return t=>n=>{e>0?e--:t(n)}}function Ar(e){let t=null,n;return r=>i=>{t=i,!n&&(n=setTimeout(()=>{n=void 0,r(t)},e))}}function Kg(e){let t,n;return r=>i=>{t=i,n&&clearTimeout(n),n=setTimeout(()=>{r(t)},e)}}function Ce(...e){const t=new Array(e.length);let n=0,r=null;const i=Math.pow(2,e.length)-1;return e.forEach((o,a)=>{const s=Math.pow(2,a);Ve(o,l=>{const u=n;n=n|s,t[a]=l,u!==i&&n===i&&r&&(r(),r=null)})}),o=>a=>{const s=()=>o([a].concat(t));n===i?s():r=s}}function qg(...e){return function(t,n){switch(t){case zr:return RI(...e.map(r=>Ve(r,n)));case Do:return;default:throw new Error(`unrecognized action ${t}`)}}}function pe(e,t=J1){return J(e,ze(t))}function ft(...e){const t=$e(),n=new Array(e.length);let r=0;const i=Math.pow(2,e.length)-1;return e.forEach((o,a)=>{const s=Math.pow(2,a);Ve(o,l=>{n[a]=l,r=r|s,r===i&&xe(t,n)})}),function(o,a){switch(o){case zr:return r===i&&a(n),Ve(t,a);case Do:return Vf(t);default:throw new Error(`unrecognized action ${o}`)}}}function Pe(e,t=[],{singleton:n}={singleton:!0}){return{id:PI(),constructor:e,dependencies:t,singleton:n}}const PI=()=>Symbol();function TI(e){const t=new Map,n=({id:r,constructor:i,dependencies:o,singleton:a})=>{if(a&&t.has(r))return t.get(r);const s=i(o.map(l=>n(l)));return a&&t.set(r,s),s};return n(e)}function kI(e,t){const n={},r={};let i=0;const o=e.length;for(;i<o;)r[e[i]]=1,i+=1;for(const a in t)r.hasOwnProperty(a)||(n[a]=t[a]);return n}const xs=typeof document<"u"?w.useLayoutEffect:w.useEffect;function Lf(e,t,n){const r=Object.keys(t.required||{}),i=Object.keys(t.optional||{}),o=Object.keys(t.methods||{}),a=Object.keys(t.events||{}),s=w.createContext({});function l(y,v){y.propsReady&&xe(y.propsReady,!1);for(const x of r){const C=y[t.required[x]];xe(C,v[x])}for(const x of i)if(x in v){const C=y[t.optional[x]];xe(C,v[x])}y.propsReady&&xe(y.propsReady,!0)}function u(y){return o.reduce((v,x)=>(v[x]=C=>{const D=y[t.methods[x]];xe(D,C)},v),{})}function c(y){return a.reduce((v,x)=>(v[x]=AI(y[t.events[x]]),v),{})}const d=w.forwardRef((y,v)=>{const{children:x,...C}=y,[D]=w.useState(()=>yu(TI(e),T=>l(T,C))),[I]=w.useState(Ug(c,D));return xs(()=>{for(const T of a)T in C&&Ve(I[T],C[T]);return()=>{Object.values(I).map(Vf)}},[C,I,D]),xs(()=>{l(D,C)}),w.useImperativeHandle(v,Jg(u(D))),w.createElement(s.Provider,{value:D},n?w.createElement(n,kI([...r,...i,...a],C),x):x)}),h=y=>w.useCallback(U1(xe,w.useContext(s)[y]),[y]),f=y=>{const x=w.useContext(s)[y],C=w.useCallback(D=>Ve(x,D),[x]);return w.useSyncExternalStore(C,()=>wt(x),()=>wt(x))},g=y=>{const x=w.useContext(s)[y],[C,D]=w.useState(Ug(wt,x));return xs(()=>Ve(x,I=>{I!==C&&D(Jg(I))}),[x,C]),C},m=w.version.startsWith("18")?f:g;return{Component:d,usePublisher:h,useEmitterValue:m,useEmitter:(y,v)=>{const C=w.useContext(s)[y];xs(()=>Ve(C,v),[v,C])}}}const MI=typeof document<"u"?w.useLayoutEffect:w.useEffect,BI=MI;var Ut=(e=>(e[e.DEBUG=0]="DEBUG",e[e.INFO=1]="INFO",e[e.WARN=2]="WARN",e[e.ERROR=3]="ERROR",e))(Ut||{});const OI={0:"debug",1:"log",2:"warn",3:"error"},NI=()=>typeof globalThis>"u"?window:globalThis,Gr=Pe(()=>{const e=q(3);return{log:q((n,r,i=1)=>{var o;const a=(o=NI().VIRTUOSO_LOG_LEVEL)!=null?o:wt(e);i>=a&&console[OI[i]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",n,r)}),logLevel:e}},[],{singleton:!0});function Hf(e,t=!0){const n=w.useRef(null);let r=i=>{};if(typeof ResizeObserver<"u"){const i=w.useMemo(()=>new ResizeObserver(o=>{requestAnimationFrame(()=>{const a=o[0].target;a.offsetParent!==null&&e(a)})}),[e]);r=o=>{o&&t?(i.observe(o),n.current=o):(n.current&&i.unobserve(n.current),n.current=null)}}return{ref:n,callbackRef:r}}function Zn(e,t=!0){return Hf(e,t).callbackRef}function K1(e,t,n,r,i,o,a){const s=w.useCallback(l=>{const u=VI(l.children,t,"offsetHeight",i);let c=l.parentElement;for(;!c.dataset.virtuosoScroller;)c=c.parentElement;const d=c.lastElementChild.dataset.viewportType==="window",h=a?a.scrollTop:d?window.pageYOffset||document.documentElement.scrollTop:c.scrollTop,f=a?a.scrollHeight:d?document.documentElement.scrollHeight:c.scrollHeight,g=a?a.offsetHeight:d?window.innerHeight:c.offsetHeight;r({scrollTop:Math.max(h,0),scrollHeight:f,viewportHeight:g}),o==null||o(LI("row-gap",getComputedStyle(l).rowGap,i)),u!==null&&e(u)},[e,t,i,o,a,r]);return Hf(s,n)}function VI(e,t,n,r){const i=e.length;if(i===0)return null;const o=[];for(let a=0;a<i;a++){const s=e.item(a);if(!s||s.dataset.index===void 0)continue;const l=parseInt(s.dataset.index),u=parseFloat(s.dataset.knownSize),c=t(s,n);if(c===0&&r("Zero-sized element, this should not happen",{child:s},Ut.ERROR),c===u)continue;const d=o[o.length-1];o.length===0||d.size!==c||d.endIndex!==l-1?o.push({startIndex:l,endIndex:l,size:c}):o[o.length-1].endIndex++}return o}function LI(e,t,n){return t!=="normal"&&!(t!=null&&t.endsWith("px"))&&n(`${e} was not resolved to pixel value correctly`,t,Ut.WARN),t==="normal"?0:parseInt(t??"0",10)}function Sn(e,t){return Math.round(e.getBoundingClientRect()[t])}function q1(e,t){return Math.abs(e-t)<1.01}function Q1(e,t,n,r=Ri,i){const o=w.useRef(null),a=w.useRef(null),s=w.useRef(null),l=w.useCallback(d=>{const h=d.target,f=h===window||h===document,g=f?window.pageYOffset||document.documentElement.scrollTop:h.scrollTop,m=f?document.documentElement.scrollHeight:h.scrollHeight,b=f?window.innerHeight:h.offsetHeight,y=()=>{e({scrollTop:Math.max(g,0),scrollHeight:m,viewportHeight:b})};d.suppressFlushSync?y():Xa.flushSync(y),a.current!==null&&(g===a.current||g<=0||g===m-b)&&(a.current=null,t(!0),s.current&&(clearTimeout(s.current),s.current=null))},[e,t]);w.useEffect(()=>{const d=i||o.current;return r(i||o.current),l({target:d,suppressFlushSync:!0}),d.addEventListener("scroll",l,{passive:!0}),()=>{r(null),d.removeEventListener("scroll",l)}},[o,l,n,r,i]);function u(d){const h=o.current;if(!h||"offsetHeight"in h&&h.offsetHeight===0)return;const f=d.behavior==="smooth";let g,m,b;h===window?(m=Math.max(Sn(document.documentElement,"height"),document.documentElement.scrollHeight),g=window.innerHeight,b=document.documentElement.scrollTop):(m=h.scrollHeight,g=Sn(h,"height"),b=h.scrollTop);const y=m-g;if(d.top=Math.ceil(Math.max(Math.min(y,d.top),0)),q1(g,m)||d.top===b){e({scrollTop:b,scrollHeight:m,viewportHeight:g}),f&&t(!0);return}f?(a.current=d.top,s.current&&clearTimeout(s.current),s.current=setTimeout(()=>{s.current=null,a.current=null,t(!0)},1e3)):a.current=null,h.scrollTo(d)}function c(d){o.current.scrollBy(d)}return{scrollerRef:o,scrollByCallback:c,scrollToCallback:u}}const Ft=Pe(()=>{const e=$e(),t=$e(),n=q(0),r=$e(),i=q(0),o=$e(),a=$e(),s=q(0),l=q(0),u=q(0),c=q(0),d=$e(),h=$e(),f=q(!1);return se(J(e,te(({scrollTop:g})=>g)),t),se(J(e,te(({scrollHeight:g})=>g)),a),se(t,i),{scrollContainerState:e,scrollTop:t,viewportHeight:o,headerHeight:s,fixedHeaderHeight:l,fixedFooterHeight:u,footerHeight:c,scrollHeight:a,smoothScrollTargetReached:r,scrollTo:d,scrollBy:h,statefulScrollTop:i,deviation:n,scrollingInProgress:f}},[],{singleton:!0}),ba={lvl:0};function ev(e,t,n,r=ba,i=ba){return{k:e,v:t,lvl:n,l:r,r:i}}function He(e){return e===ba}function to(){return ba}function xd(e,t){if(He(e))return ba;const{k:n,l:r,r:i}=e;if(t===n){if(He(r))return i;if(He(i))return r;{const[o,a]=tv(r);return nl(st(e,{k:o,v:a,l:nv(r)}))}}else return t<n?nl(st(e,{l:xd(r,t)})):nl(st(e,{r:xd(i,t)}))}function va(e,t){if(!He(e))return t===e.k?e.v:t<e.k?va(e.l,t):va(e.r,t)}function En(e,t,n="k"){if(He(e))return[-1/0,void 0];if(Number(e[n])===t)return[e.k,e.v];if(Number(e[n])<t){const r=En(e.r,t,n);return r[0]===-1/0?[e.k,e.v]:r}return En(e.l,t,n)}function Gt(e,t,n){return He(e)?ev(t,n,1):t===e.k?st(e,{k:t,v:n}):t<e.k?Qg(st(e,{l:Gt(e.l,t,n)})):Qg(st(e,{r:Gt(e.r,t,n)}))}function Cd(e,t,n){if(He(e))return[];const{k:r,v:i,l:o,r:a}=e;let s=[];return r>t&&(s=s.concat(Cd(o,t,n))),r>=t&&r<=n&&s.push({k:r,v:i}),r<=n&&(s=s.concat(Cd(a,t,n))),s}function li(e){return He(e)?[]:[...li(e.l),{k:e.k,v:e.v},...li(e.r)]}function tv(e){return He(e.r)?[e.k,e.v]:tv(e.r)}function nv(e){return He(e.r)?e.l:nl(st(e,{r:nv(e.r)}))}function st(e,t){return ev(t.k!==void 0?t.k:e.k,t.v!==void 0?t.v:e.v,t.lvl!==void 0?t.lvl:e.lvl,t.l!==void 0?t.l:e.l,t.r!==void 0?t.r:e.r)}function oc(e){return He(e)||e.lvl>e.r.lvl}function Qg(e){return wd(iv(e))}function nl(e){const{l:t,r:n,lvl:r}=e;if(n.lvl>=r-1&&t.lvl>=r-1)return e;if(r>n.lvl+1){if(oc(t))return iv(st(e,{lvl:r-1}));if(!He(t)&&!He(t.r))return st(t.r,{l:st(t,{r:t.r.l}),r:st(e,{l:t.r.r,lvl:r-1}),lvl:r});throw new Error("Unexpected empty nodes")}else{if(oc(e))return wd(st(e,{lvl:r-1}));if(!He(n)&&!He(n.l)){const i=n.l,o=oc(i)?n.lvl-1:n.lvl;return st(i,{l:st(e,{r:i.l,lvl:r-1}),r:wd(st(n,{l:i.r,lvl:o})),lvl:i.lvl+1})}else throw new Error("Unexpected empty nodes")}}function xu(e,t,n){if(He(e))return[];const r=En(e,t)[0];return HI(Cd(e,r,n))}function rv(e,t){const n=e.length;if(n===0)return[];let{index:r,value:i}=t(e[0]);const o=[];for(let a=1;a<n;a++){const{index:s,value:l}=t(e[a]);o.push({start:r,end:s-1,value:i}),r=s,i=l}return o.push({start:r,end:1/0,value:i}),o}function HI(e){return rv(e,({k:t,v:n})=>({index:t,value:n}))}function wd(e){const{r:t,lvl:n}=e;return!He(t)&&!He(t.r)&&t.lvl===n&&t.r.lvl===n?st(t,{l:st(e,{r:t.l}),lvl:n+1}):e}function iv(e){const{l:t}=e;return!He(t)&&t.lvl===e.lvl?st(t,{r:st(e,{l:t.r})}):e}function Fl(e,t,n,r=0){let i=e.length-1;for(;r<=i;){const o=Math.floor((r+i)/2),a=e[o],s=n(a,t);if(s===0)return o;if(s===-1){if(i-r<2)return o-1;i=o-1}else{if(i===r)return o;r=o+1}}throw new Error(`Failed binary finding record in array - ${e.join(",")}, searched for ${t}`)}function ov(e,t,n){return e[Fl(e,t,n)]}function jI(e,t,n,r){const i=Fl(e,t,r),o=Fl(e,n,r,i);return e.slice(i,o+1)}const jf=Pe(()=>({recalcInProgress:q(!1)}),[],{singleton:!0});function WI(e){const{size:t,startIndex:n,endIndex:r}=e;return i=>i.start===n&&(i.end===r||i.end===1/0)&&i.value===t}function em(e,t){let n=0,r=0;for(;n<e;)n+=t[r+1]-t[r]-1,r++;return r-(n===e?0:1)}function zI(e,t){let n=He(e)?0:1/0;for(const r of t){const{size:i,startIndex:o,endIndex:a}=r;if(n=Math.min(n,o),He(e)){e=Gt(e,0,i);continue}const s=xu(e,o-1,a+1);if(s.some(WI(r)))continue;let l=!1,u=!1;for(const{start:c,end:d,value:h}of s)l?(a>=c||i===h)&&(e=xd(e,c)):(u=h!==i,l=!0),d>a&&a>=c&&h!==i&&(e=Gt(e,a+1,h));u&&(e=Gt(e,o,i))}return[e,n]}function GI(){return{offsetTree:[],sizeTree:to(),groupOffsetTree:to(),lastIndex:0,lastOffset:0,lastSize:0,groupIndices:[]}}function Wf({index:e},t){return t===e?0:t<e?-1:1}function ZI({offset:e},t){return t===e?0:t<e?-1:1}function XI(e){return{index:e.index,value:e}}function YI(e,t,n,r=0){return r>0&&(t=Math.max(t,ov(e,r,Wf).offset)),rv(jI(e,t,n,ZI),XI)}function Dd(e,t,n,r){let i=e,o=0,a=0,s=0,l=0;if(t!==0){l=Fl(i,t-1,Wf),s=i[l].offset;const c=En(n,t-1);o=c[0],a=c[1],i.length&&i[l].size===En(n,t)[1]&&(l-=1),i=i.slice(0,l+1)}else i=[];for(const{start:u,value:c}of xu(n,t,1/0)){const d=u-o,h=d*a+s+d*r;i.push({offset:h,size:c,index:u}),o=u,s=h,a=c}return{offsetTree:i,lastIndex:o,lastOffset:s,lastSize:a}}function UI(e,[t,n,r,i]){t.length>0&&r("received item sizes",t,Ut.DEBUG);const o=e.sizeTree;let a=o,s=0;if(n.length>0&&He(o)&&t.length===2){const h=t[0].size,f=t[1].size;a=n.reduce((g,m)=>Gt(Gt(g,m,h),m+1,f),a)}else[a,s]=zI(a,t);if(a===o)return e;const{offsetTree:l,lastIndex:u,lastSize:c,lastOffset:d}=Dd(e.offsetTree,s,a,i);return{sizeTree:a,offsetTree:l,lastIndex:u,lastOffset:d,lastSize:c,groupOffsetTree:n.reduce((h,f)=>Gt(h,f,ya(f,l,i)),to()),groupIndices:n}}function ya(e,t,n){if(t.length===0)return 0;const{offset:r,index:i,size:o}=ov(t,e,Wf),a=e-i,s=o*a+(a-1)*n+r;return s>0?s+n:s}function JI(e){return typeof e.groupIndex<"u"}function av(e,t,n){if(JI(e))return t.groupIndices[e.groupIndex]+1;{const r=e.index==="LAST"?n:e.index;let i=sv(r,t);return i=Math.max(0,i,Math.min(n,i)),i}}function sv(e,t){if(!Cu(t))return e;let n=0;for(;t.groupIndices[n]<=e+n;)n++;return e+n}function Cu(e){return!He(e.groupOffsetTree)}function KI(e){return li(e).map(({k:t,v:n},r,i)=>{const o=i[r+1],a=o?o.k-1:1/0;return{startIndex:t,endIndex:a,size:n}})}const qI={offsetHeight:"height",offsetWidth:"width"},Xn=Pe(([{log:e},{recalcInProgress:t}])=>{const n=$e(),r=$e(),i=Dt(r,0),o=$e(),a=$e(),s=q(0),l=q([]),u=q(void 0),c=q(void 0),d=q((D,I)=>Sn(D,qI[I])),h=q(void 0),f=q(0),g=GI(),m=Dt(J(n,Ce(l,e,f),Nn(UI,g),ze()),g),b=Dt(J(l,ze(),Nn((D,I)=>({prev:D.current,current:I}),{prev:[],current:[]}),te(({prev:D})=>D)),[]);se(J(l,me(D=>D.length>0),Ce(m,f),te(([D,I,T])=>{const p=D.reduce((S,$,_)=>Gt(S,$,ya($,I.offsetTree,T)||_),to());return{...I,groupIndices:D,groupOffsetTree:p}})),m),se(J(r,Ce(m),me(([D,{lastIndex:I}])=>D<I),te(([D,{lastIndex:I,lastSize:T}])=>[{startIndex:D,endIndex:I,size:T}])),n),se(u,c);const y=Dt(J(u,te(D=>D===void 0)),!0);se(J(c,me(D=>D!==void 0&&He(wt(m).sizeTree)),te(D=>[{startIndex:0,endIndex:0,size:D}])),n);const v=Yt(J(n,Ce(m),Nn(({sizes:D},[I,T])=>({changed:T!==D,sizes:T}),{changed:!1,sizes:g}),te(D=>D.changed)));Ve(J(s,Nn((D,I)=>({diff:D.prev-I,prev:I}),{diff:0,prev:0}),te(D=>D.diff)),D=>{const{groupIndices:I}=wt(m);if(D>0)xe(t,!0),xe(o,D+em(D,I));else if(D<0){const T=wt(b);T.length>0&&(D-=em(-D,T)),xe(a,D)}}),Ve(J(s,Ce(e)),([D,I])=>{D<0&&I("`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",{firstItemIndex:s},Ut.ERROR)});const x=Yt(o);se(J(o,Ce(m),te(([D,I])=>{const T=I.groupIndices.length>0,p=[],S=I.lastSize;if(T){const $=va(I.sizeTree,0);let _=0,A=0;for(;_<D;){const M=I.groupIndices[A],P=I.groupIndices.length===A+1?1/0:I.groupIndices[A+1]-M-1;p.push({startIndex:M,endIndex:M,size:$}),p.push({startIndex:M+1,endIndex:M+1+P-1,size:S}),A++,_+=P+1}const k=li(I.sizeTree);return _!==D&&k.shift(),k.reduce((M,{k:P,v:F})=>{let B=M.ranges;return M.prevSize!==0&&(B=[...M.ranges,{startIndex:M.prevIndex,endIndex:P+D-1,size:M.prevSize}]),{ranges:B,prevIndex:P+D,prevSize:F}},{ranges:p,prevIndex:D,prevSize:0}).ranges}return li(I.sizeTree).reduce(($,{k:_,v:A})=>({ranges:[...$.ranges,{startIndex:$.prevIndex,endIndex:_+D-1,size:$.prevSize}],prevIndex:_+D,prevSize:A}),{ranges:[],prevIndex:0,prevSize:S}).ranges})),n);const C=Yt(J(a,Ce(m,f),te(([D,{offsetTree:I},T])=>{const p=-D;return ya(p,I,T)})));return se(J(a,Ce(m,f),te(([D,I,T])=>{if(I.groupIndices.length>0){if(He(I.sizeTree))return I;let S=to();const $=wt(b);let _=0,A=0,k=0;for(;_<-D;){k=$[A];const M=$[A+1]-k-1;A++,_+=M+1}if(S=li(I.sizeTree).reduce((M,{k:P,v:F})=>Gt(M,Math.max(0,P+D),F),S),_!==-D){const M=va(I.sizeTree,k);S=Gt(S,0,M);const P=En(I.sizeTree,-D+1)[1];S=Gt(S,1,P)}return{...I,sizeTree:S,...Dd(I.offsetTree,0,S,T)}}else{const S=li(I.sizeTree).reduce(($,{k:_,v:A})=>Gt($,Math.max(0,_+D),A),to());return{...I,sizeTree:S,...Dd(I.offsetTree,0,S,T)}}})),m),{data:h,totalCount:r,sizeRanges:n,groupIndices:l,defaultItemSize:c,fixedItemSize:u,unshiftWith:o,shiftWith:a,shiftWithOffset:C,beforeUnshiftWith:x,firstItemIndex:s,gap:f,sizes:m,listRefresh:v,statefulTotalCount:i,trackItemSizes:y,itemSize:d}},Ge(Gr,jf),{singleton:!0}),QI=typeof document<"u"&&"scrollBehavior"in document.documentElement.style;function lv(e){const t=typeof e=="number"?{index:e}:e;return t.align||(t.align="start"),(!t.behavior||!QI)&&(t.behavior="auto"),t.offset||(t.offset=0),t}const qa=Pe(([{sizes:e,totalCount:t,listRefresh:n,gap:r},{scrollingInProgress:i,viewportHeight:o,scrollTo:a,smoothScrollTargetReached:s,headerHeight:l,footerHeight:u,fixedHeaderHeight:c,fixedFooterHeight:d},{log:h}])=>{const f=$e(),g=$e(),m=q(0);let b=null,y=null,v=null;function x(){b&&(b(),b=null),v&&(v(),v=null),y&&(clearTimeout(y),y=null),xe(i,!1)}return se(J(f,Ce(e,o,t,m,l,u,h),Ce(r,c,d),te(([[C,D,I,T,p,S,$,_],A,k,R])=>{const M=lv(C),{align:P,behavior:F,offset:B}=M,N=T-1,O=av(M,D,N);let L=ya(O,D.offsetTree,A)+S;P==="end"?(L+=k+En(D.sizeTree,O)[1]-I+R,O===N&&(L+=$)):P==="center"?L+=(k+En(D.sizeTree,O)[1]-I+R)/2:L-=p,B&&(L+=B);const W=Z=>{x(),Z?(_("retrying to scroll to",{location:C},Ut.DEBUG),xe(f,C)):(xe(g,!0),_("list did not change, scroll successful",{},Ut.DEBUG))};if(x(),F==="smooth"){let Z=!1;v=Ve(n,j=>{Z=Z||j}),b=Gn(s,()=>{W(Z)})}else b=Gn(J(n,e_(150)),W);return y=setTimeout(()=>{x()},1200),xe(i,!0),_("scrolling from index to",{index:O,top:L,behavior:F},Ut.DEBUG),{top:L,behavior:F}})),a),{scrollToIndex:f,scrollTargetReached:g,topListHeight:m}},Ge(Xn,Ft,Gr),{singleton:!0});function e_(e){return t=>{const n=setTimeout(()=>{t(!1)},e);return r=>{r&&(t(!0),clearTimeout(n))}}}const xa="up",qo="down",t_="none",n_={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollTop:0,viewportHeight:0,scrollHeight:0}},r_=0,Qa=Pe(([{scrollContainerState:e,scrollTop:t,viewportHeight:n,headerHeight:r,footerHeight:i,scrollBy:o}])=>{const a=q(!1),s=q(!0),l=$e(),u=$e(),c=q(4),d=q(r_),h=Dt(J(qg(J(pe(t),ho(1),Bn(!0)),J(pe(t),ho(1),Bn(!1),Kg(100))),ze()),!1),f=Dt(J(qg(J(o,Bn(!0)),J(o,Bn(!1),Kg(200))),ze()),!1);se(J(ft(pe(t),pe(d)),te(([v,x])=>v<=x),ze()),s),se(J(s,Ar(50)),u);const g=Yt(J(ft(e,pe(n),pe(r),pe(i),pe(c)),Nn((v,[{scrollTop:x,scrollHeight:C},D,I,T,p])=>{const S=x+D-C>-p,$={viewportHeight:D,scrollTop:x,scrollHeight:C};if(S){let A,k;return x>v.state.scrollTop?(A="SCROLLED_DOWN",k=v.state.scrollTop-x):(A="SIZE_DECREASED",k=v.state.scrollTop-x||v.scrollTopDelta),{atBottom:!0,state:$,atBottomBecause:A,scrollTopDelta:k}}let _;return $.scrollHeight>v.state.scrollHeight?_="SIZE_INCREASED":D<v.state.viewportHeight?_="VIEWPORT_HEIGHT_DECREASING":x<v.state.scrollTop?_="SCROLLING_UPWARDS":_="NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM",{atBottom:!1,notAtBottomBecause:_,state:$}},n_),ze((v,x)=>v&&v.atBottom===x.atBottom))),m=Dt(J(e,Nn((v,{scrollTop:x,scrollHeight:C,viewportHeight:D})=>{if(q1(v.scrollHeight,C))return{scrollTop:x,scrollHeight:C,jump:0,changed:!1};{const I=C-(x+D)<1;return v.scrollTop!==x&&I?{scrollHeight:C,scrollTop:x,jump:v.scrollTop-x,changed:!0}:{scrollHeight:C,scrollTop:x,jump:0,changed:!0}}},{scrollHeight:0,jump:0,scrollTop:0,changed:!1}),me(v=>v.changed),te(v=>v.jump)),0);se(J(g,te(v=>v.atBottom)),a),se(J(a,Ar(50)),l);const b=q(qo);se(J(e,te(({scrollTop:v})=>v),ze(),Nn((v,x)=>wt(f)?{direction:v.direction,prevScrollTop:x}:{direction:x<v.prevScrollTop?xa:qo,prevScrollTop:x},{direction:qo,prevScrollTop:0}),te(v=>v.direction)),b),se(J(e,Ar(50),Bn(t_)),b);const y=q(0);return se(J(h,me(v=>!v),Bn(0)),y),se(J(t,Ar(100),Ce(h),me(([v,x])=>!!x),Nn(([v,x],[C])=>[x,C],[0,0]),te(([v,x])=>x-v)),y),{isScrolling:h,isAtTop:s,isAtBottom:a,atBottomState:g,atTopStateChange:u,atBottomStateChange:l,scrollDirection:b,atBottomThreshold:c,atTopThreshold:d,scrollVelocity:y,lastJumpDueToItemResize:m}},Ge(Ft)),Zr=Pe(([{log:e}])=>{const t=q(!1),n=Yt(J(t,me(r=>r),ze()));return Ve(t,r=>{r&&wt(e)("props updated",{},Ut.DEBUG)}),{propsReady:t,didMount:n}},Ge(Gr),{singleton:!0});function zf(e,t){e==0?t():requestAnimationFrame(()=>zf(e-1,t))}function Gf(e,t){const n=t-1;return typeof e=="number"?e:e.index==="LAST"?n:e.index}const es=Pe(([{sizes:e,listRefresh:t,defaultItemSize:n},{scrollTop:r},{scrollToIndex:i,scrollTargetReached:o},{didMount:a}])=>{const s=q(!0),l=q(0),u=q(!0);return se(J(a,Ce(l),me(([c,d])=>!!d),Bn(!1)),s),se(J(a,Ce(l),me(([c,d])=>!!d),Bn(!1)),u),Ve(J(ft(t,a),Ce(s,e,n,u),me(([[,c],d,{sizeTree:h},f,g])=>c&&(!He(h)||Nf(f))&&!d&&!g),Ce(l)),([,c])=>{Gn(o,()=>{xe(u,!0)}),zf(4,()=>{Gn(r,()=>{xe(s,!0)}),xe(i,c)})}),{scrolledToInitialItem:s,initialTopMostItemIndex:l,initialItemFinalLocationReached:u}},Ge(Xn,Ft,qa,Zr),{singleton:!0});function tm(e){return e?e==="smooth"?"smooth":"auto":!1}const i_=(e,t)=>typeof e=="function"?tm(e(t)):t&&tm(e),o_=Pe(([{totalCount:e,listRefresh:t},{isAtBottom:n,atBottomState:r},{scrollToIndex:i},{scrolledToInitialItem:o},{propsReady:a,didMount:s},{log:l},{scrollingInProgress:u}])=>{const c=q(!1),d=$e();let h=null;function f(m){xe(i,{index:"LAST",align:"end",behavior:m})}Ve(J(ft(J(pe(e),ho(1)),s),Ce(pe(c),n,o,u),te(([[m,b],y,v,x,C])=>{let D=b&&x,I="auto";return D&&(I=i_(y,v||C),D=D&&!!I),{totalCount:m,shouldFollow:D,followOutputBehavior:I}}),me(({shouldFollow:m})=>m)),({totalCount:m,followOutputBehavior:b})=>{h&&(h(),h=null),h=Gn(t,()=>{wt(l)("following output to ",{totalCount:m},Ut.DEBUG),f(b),h=null})});function g(m){const b=Gn(r,y=>{m&&!y.atBottom&&y.notAtBottomBecause==="SIZE_INCREASED"&&!h&&(wt(l)("scrolling to bottom due to increased size",{},Ut.DEBUG),f("auto"))});setTimeout(b,100)}return Ve(J(ft(pe(c),e,a),me(([m,,b])=>m&&b),Nn(({value:m},[,b])=>({refreshed:m===b,value:b}),{refreshed:!1,value:0}),me(({refreshed:m})=>m),Ce(c,e)),([,m])=>{wt(o)&&g(m!==!1)}),Ve(d,()=>{g(wt(c)!==!1)}),Ve(ft(pe(c),r),([m,b])=>{m&&!b.atBottom&&b.notAtBottomBecause==="VIEWPORT_HEIGHT_DECREASING"&&f("auto")}),{followOutput:c,autoscrollToBottom:d}},Ge(Xn,Qa,qa,es,Zr,Gr,Ft));function a_(e){return e.reduce((t,n)=>(t.groupIndices.push(t.totalCount),t.totalCount+=n+1,t),{totalCount:0,groupIndices:[]})}const uv=Pe(([{totalCount:e,groupIndices:t,sizes:n},{scrollTop:r,headerHeight:i}])=>{const o=$e(),a=$e(),s=Yt(J(o,te(a_)));return se(J(s,te(l=>l.totalCount)),e),se(J(s,te(l=>l.groupIndices)),t),se(J(ft(r,n,i),me(([l,u])=>Cu(u)),te(([l,u,c])=>En(u.groupOffsetTree,Math.max(l-c,0),"v")[0]),ze(),te(l=>[l])),a),{groupCounts:o,topItemsIndexes:a}},Ge(Xn,Ft));function Ca(e,t){return!!(e&&e[0]===t[0]&&e[1]===t[1])}function cv(e,t){return!!(e&&e.startIndex===t.startIndex&&e.endIndex===t.endIndex)}const Pl="top",Tl="bottom",nm="none";function rm(e,t,n){return typeof e=="number"?n===xa&&t===Pl||n===qo&&t===Tl?e:0:n===xa?t===Pl?e.main:e.reverse:t===Tl?e.main:e.reverse}function im(e,t){return typeof e=="number"?e:e[t]||0}const Zf=Pe(([{scrollTop:e,viewportHeight:t,deviation:n,headerHeight:r,fixedHeaderHeight:i}])=>{const o=$e(),a=q(0),s=q(0),l=q(0),u=Dt(J(ft(pe(e),pe(t),pe(r),pe(o,Ca),pe(l),pe(a),pe(i),pe(n),pe(s)),te(([c,d,h,[f,g],m,b,y,v,x])=>{const C=c-v,D=b+y,I=Math.max(h-C,0);let T=nm;const p=im(x,Pl),S=im(x,Tl);return f-=v,f+=h+y,g+=h+y,g-=v,f>c+D-p&&(T=xa),g<c-I+d+S&&(T=qo),T!==nm?[Math.max(C-h-rm(m,Pl,T)-p,0),C-I-y+d+rm(m,Tl,T)+S]:null}),me(c=>c!=null),ze(Ca)),[0,0]);return{listBoundary:o,overscan:l,topListHeight:a,increaseViewportBy:s,visibleRange:u}},Ge(Ft),{singleton:!0});function s_(e,t,n){if(Cu(t)){const r=sv(e,t);return[{index:En(t.groupOffsetTree,r)[0],size:0,offset:0},{index:r,size:0,offset:0,data:n&&n[0]}]}return[{index:e,size:0,offset:0,data:n&&n[0]}]}const ac={items:[],topItems:[],offsetTop:0,offsetBottom:0,top:0,bottom:0,topListHeight:0,totalCount:0,firstItemIndex:0};function om(e,t,n){if(e.length===0)return[];if(!Cu(t))return e.map(u=>({...u,index:u.index+n,originalIndex:u.index}));const r=e[0].index,i=e[e.length-1].index,o=[],a=xu(t.groupOffsetTree,r,i);let s,l=0;for(const u of e){(!s||s.end<u.index)&&(s=a.shift(),l=t.groupIndices.indexOf(s.start));let c;u.index===s.start?c={type:"group",index:l}:c={index:u.index-(l+1)+n,groupIndex:l},o.push({...c,size:u.size,offset:u.offset,originalIndex:u.index,data:u.data})}return o}function rl(e,t,n,r,i,o){const{lastSize:a,lastOffset:s,lastIndex:l}=i;let u=0,c=0;if(e.length>0){u=e[0].offset;const m=e[e.length-1];c=m.offset+m.size}const d=n-l,h=s+d*a+(d-1)*r,f=u,g=h-c;return{items:om(e,i,o),topItems:om(t,i,o),topListHeight:t.reduce((m,b)=>b.size+m,0),offsetTop:u,offsetBottom:g,top:f,bottom:c,totalCount:n,firstItemIndex:o}}function dv(e,t,n,r,i,o){let a=0;if(n.groupIndices.length>0)for(const c of n.groupIndices){if(c-a>=e)break;a++}const s=e+a,l=Gf(t,s),u=Array.from({length:s}).map((c,d)=>({index:d+l,size:0,offset:0,data:o[d+l]}));return rl(u,[],s,i,n,r)}const Ai=Pe(([{sizes:e,totalCount:t,data:n,firstItemIndex:r,gap:i},o,{visibleRange:a,listBoundary:s,topListHeight:l},{scrolledToInitialItem:u,initialTopMostItemIndex:c},{topListHeight:d},h,{didMount:f},{recalcInProgress:g}])=>{const m=q([]),b=q(0),y=$e();se(o.topItemsIndexes,m);const v=Dt(J(ft(f,g,pe(a,Ca),pe(t),pe(e),pe(c),u,pe(m),pe(r),pe(i),n),me(([I,T,,p,,,,,,,S])=>{const $=S&&S.length!==p;return I&&!T&&!$}),te(([,,[I,T],p,S,$,_,A,k,R,M])=>{const P=S,{sizeTree:F,offsetTree:B}=P,N=wt(b);if(p===0)return{...ac,totalCount:p};if(I===0&&T===0)return N===0?{...ac,totalCount:p}:dv(N,$,S,k,R,M||[]);if(He(F))return N>0?null:rl(s_(Gf($,p),P,M),[],p,R,P,k);const O=[];if(A.length>0){const H=A[0],V=A[A.length-1];let z=0;for(const Y of xu(F,H,V)){const K=Y.value,Q=Math.max(Y.start,H),ee=Math.min(Y.end,V);for(let X=Q;X<=ee;X++)O.push({index:X,size:K,offset:z,data:M&&M[X]}),z+=K}}if(!_)return rl([],O,p,R,P,k);const L=A.length>0?A[A.length-1]+1:0,W=YI(B,I,T,L);if(W.length===0)return null;const Z=p-1,j=yu([],H=>{for(const V of W){const z=V.value;let Y=z.offset,K=V.start;const Q=z.size;if(z.offset<I){K+=Math.floor((I-z.offset+R)/(Q+R));const X=K-V.start;Y+=X*Q+X*R}K<L&&(Y+=(L-K)*Q,K=L);const ee=Math.min(V.end,Z);for(let X=K;X<=ee&&!(Y>=T);X++)H.push({index:X,size:Q,offset:Y,data:M&&M[X]}),Y+=Q+R}});return rl(j,O,p,R,P,k)}),me(I=>I!==null),ze()),ac);se(J(n,me(Nf),te(I=>I==null?void 0:I.length)),t),se(J(v,te(I=>I.topListHeight)),d),se(d,l),se(J(v,te(I=>[I.top,I.bottom])),s),se(J(v,te(I=>I.items)),y);const x=Yt(J(v,me(({items:I})=>I.length>0),Ce(t,n),me(([{items:I},T])=>I[I.length-1].originalIndex===T-1),te(([,I,T])=>[I-1,T]),ze(Ca),te(([I])=>I))),C=Yt(J(v,Ar(200),me(({items:I,topItems:T})=>I.length>0&&I[0].originalIndex===T.length),te(({items:I})=>I[0].index),ze())),D=Yt(J(v,me(({items:I})=>I.length>0),te(({items:I})=>{let T=0,p=I.length-1;for(;I[T].type==="group"&&T<p;)T++;for(;I[p].type==="group"&&p>T;)p--;return{startIndex:I[T].index,endIndex:I[p].index}}),ze(cv)));return{listState:v,topItemsIndexes:m,endReached:x,startReached:C,rangeChanged:D,itemsRendered:y,initialItemCount:b,...h}},Ge(Xn,uv,Zf,es,qa,Qa,Zr,jf),{singleton:!0}),l_=Pe(([{sizes:e,firstItemIndex:t,data:n,gap:r},{initialTopMostItemIndex:i},{initialItemCount:o,listState:a},{didMount:s}])=>(se(J(s,Ce(o),me(([,l])=>l!==0),Ce(i,e,t,r,n),te(([[,l],u,c,d,h,f=[]])=>dv(l,u,c,d,h,f))),a),{}),Ge(Xn,es,Ai,Zr),{singleton:!0}),fv=Pe(([{scrollVelocity:e}])=>{const t=q(!1),n=$e(),r=q(!1);return se(J(e,Ce(r,t,n),me(([i,o])=>!!o),te(([i,o,a,s])=>{const{exit:l,enter:u}=o;if(a){if(l(i,s))return!1}else if(u(i,s))return!0;return a}),ze()),t),Ve(J(ft(t,e,n),Ce(r)),([[i,o,a],s])=>i&&s&&s.change&&s.change(o,a)),{isSeeking:t,scrollSeekConfiguration:r,scrollVelocity:e,scrollSeekRangeChanged:n}},Ge(Qa),{singleton:!0}),u_=Pe(([{topItemsIndexes:e}])=>{const t=q(0);return se(J(t,me(n=>n>0),te(n=>Array.from({length:n}).map((r,i)=>i))),e),{topItemCount:t}},Ge(Ai)),hv=Pe(([{footerHeight:e,headerHeight:t,fixedHeaderHeight:n,fixedFooterHeight:r},{listState:i}])=>{const o=$e(),a=Dt(J(ft(e,r,t,n,i),te(([s,l,u,c,d])=>s+l+u+c+d.offsetBottom+d.bottom)),0);return se(pe(a),o),{totalListHeight:a,totalListHeightChanged:o}},Ge(Ft,Ai),{singleton:!0});function gv(e){let t=!1,n;return()=>(t||(t=!0,n=e()),n)}const c_=gv(()=>/iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent)),d_=Pe(([{scrollBy:e,scrollTop:t,deviation:n,scrollingInProgress:r},{isScrolling:i,isAtBottom:o,scrollDirection:a,lastJumpDueToItemResize:s},{listState:l},{beforeUnshiftWith:u,shiftWithOffset:c,sizes:d,gap:h},{log:f},{recalcInProgress:g}])=>{const m=Yt(J(l,Ce(s),Nn(([,y,v,x],[{items:C,totalCount:D,bottom:I,offsetBottom:T},p])=>{const S=I+T;let $=0;return v===D&&y.length>0&&C.length>0&&(C[0].originalIndex===0&&y[0].originalIndex===0||($=S-x,$!==0&&($+=p))),[$,C,D,S]},[0,[],0,0]),me(([y])=>y!==0),Ce(t,a,r,o,f,g),me(([,y,v,x,,,C])=>!C&&!x&&y!==0&&v===xa),te(([[y],,,,,v])=>(v("Upward scrolling compensation",{amount:y},Ut.DEBUG),y))));function b(y){y>0?(xe(e,{top:-y,behavior:"auto"}),xe(n,0)):(xe(n,0),xe(e,{top:-y,behavior:"auto"}))}return Ve(J(m,Ce(n,i)),([y,v,x])=>{x&&c_()?xe(n,v-y):b(-y)}),Ve(J(ft(Dt(i,!1),n,g),me(([y,v,x])=>!y&&!x&&v!==0),te(([y,v])=>v),Ar(1)),b),se(J(c,te(y=>({top:-y}))),e),Ve(J(u,Ce(d,h),te(([y,{lastSize:v,groupIndices:x,sizeTree:C},D])=>{function I(T){return T*(v+D)}if(x.length===0)return I(y);{let T=0;const p=va(C,0);let S=0,$=0;for(;S<y;){S++,T+=p;let _=x.length===$+1?1/0:x[$+1]-x[$]-1;S+_>y&&(T-=p,_=y-S+1),S+=_,T+=I(_),$++}return T}})),y=>{xe(n,y),requestAnimationFrame(()=>{xe(e,{top:y}),requestAnimationFrame(()=>{xe(n,0),xe(g,!1)})})}),{deviation:n}},Ge(Ft,Qa,Ai,Xn,Gr,jf)),f_=Pe(([{didMount:e},{scrollTo:t},{listState:n}])=>{const r=q(0);return Ve(J(e,Ce(r),me(([,i])=>i!==0),te(([,i])=>({top:i}))),i=>{Gn(J(n,ho(1),me(o=>o.items.length>1)),()=>{requestAnimationFrame(()=>{xe(t,i)})})}),{initialScrollTop:r}},Ge(Zr,Ft,Ai),{singleton:!0}),h_=Pe(([{viewportHeight:e},{totalListHeight:t}])=>{const n=q(!1),r=Dt(J(ft(n,e,t),me(([i])=>i),te(([,i,o])=>Math.max(0,i-o)),Ar(0),ze()),0);return{alignToBottom:n,paddingTopAddition:r}},Ge(Ft,hv),{singleton:!0}),Xf=Pe(([{scrollTo:e,scrollContainerState:t}])=>{const n=$e(),r=$e(),i=$e(),o=q(!1),a=q(void 0);return se(J(ft(n,r),te(([{viewportHeight:s,scrollTop:l,scrollHeight:u},{offsetTop:c}])=>({scrollTop:Math.max(0,l-c),scrollHeight:u,viewportHeight:s}))),t),se(J(e,Ce(r),te(([s,{offsetTop:l}])=>({...s,top:s.top+l}))),i),{useWindowScroll:o,customScrollParent:a,windowScrollContainerState:n,windowViewportRect:r,windowScrollTo:i}},Ge(Ft)),g_=({itemTop:e,itemBottom:t,viewportTop:n,viewportBottom:r,locationParams:{behavior:i,align:o,...a}})=>e<n?{...a,behavior:i,align:o??"start"}:t>r?{...a,behavior:i,align:o??"end"}:null,m_=Pe(([{sizes:e,totalCount:t,gap:n},{scrollTop:r,viewportHeight:i,headerHeight:o,fixedHeaderHeight:a,fixedFooterHeight:s,scrollingInProgress:l},{scrollToIndex:u}])=>{const c=$e();return se(J(c,Ce(e,i,t,o,a,s,r),Ce(n),te(([[d,h,f,g,m,b,y,v],x])=>{const{done:C,behavior:D,align:I,calculateViewLocation:T=g_,...p}=d,S=av(d,h,g-1),$=ya(S,h.offsetTree,x)+m+b,_=$+En(h.sizeTree,S)[1],A=v+b,k=v+f-y,R=T({itemTop:$,itemBottom:_,viewportTop:A,viewportBottom:k,locationParams:{behavior:D,align:I,...p}});return R?C&&Gn(J(l,me(M=>M===!1),ho(wt(l)?1:2)),C):C&&C(),R}),me(d=>d!==null)),u),{scrollIntoView:c}},Ge(Xn,Ft,qa,Ai,Gr),{singleton:!0}),p_=Pe(([{sizes:e,sizeRanges:t},{scrollTop:n},{initialTopMostItemIndex:r},{didMount:i},{useWindowScroll:o,windowScrollContainerState:a,windowViewportRect:s}])=>{const l=$e(),u=q(void 0),c=q(null),d=q(null);return se(a,c),se(s,d),Ve(J(l,Ce(e,n,o,c,d)),([h,f,g,m,b,y])=>{const v=KI(f.sizeTree);m&&b!==null&&y!==null&&(g=b.scrollTop-y.offsetTop),h({ranges:v,scrollTop:g})}),se(J(u,me(Nf),te(b_)),r),se(J(i,Ce(u),me(([,h])=>h!==void 0),ze(),te(([,h])=>h.ranges)),t),{getState:l,restoreStateFrom:u}},Ge(Xn,Ft,es,Zr,Xf));function b_(e){return{offset:e.scrollTop,index:0,align:"start"}}const v_=Pe(([e,t,n,r,i,o,a,s,l,u])=>({...e,...t,...n,...r,...i,...o,...a,...s,...l,...u}),Ge(Zf,l_,Zr,fv,hv,f_,h_,Xf,m_,Gr)),mv=Pe(([{totalCount:e,sizeRanges:t,fixedItemSize:n,defaultItemSize:r,trackItemSizes:i,itemSize:o,data:a,firstItemIndex:s,groupIndices:l,statefulTotalCount:u,gap:c,sizes:d},{initialTopMostItemIndex:h,scrolledToInitialItem:f,initialItemFinalLocationReached:g},m,b,y,{listState:v,topItemsIndexes:x,...C},{scrollToIndex:D},I,{topItemCount:T},{groupCounts:p},S])=>(se(C.rangeChanged,S.scrollSeekRangeChanged),se(J(S.windowViewportRect,te($=>$.visibleHeight)),m.viewportHeight),{totalCount:e,data:a,firstItemIndex:s,sizeRanges:t,initialTopMostItemIndex:h,scrolledToInitialItem:f,initialItemFinalLocationReached:g,topItemsIndexes:x,topItemCount:T,groupCounts:p,fixedItemHeight:n,defaultItemHeight:r,gap:c,...y,statefulTotalCount:u,listState:v,scrollToIndex:D,trackItemSizes:i,itemSize:o,groupIndices:l,...C,...S,...m,sizes:d,...b}),Ge(Xn,es,Ft,p_,o_,Ai,qa,d_,u_,uv,v_)),sc="-webkit-sticky",am="sticky",pv=gv(()=>{if(typeof document>"u")return am;const e=document.createElement("div");return e.style.position=sc,e.style.position===sc?sc:am});function Yf(e,t){const n=w.useRef(null),r=w.useCallback(s=>{if(s===null||!s.offsetParent)return;const l=s.getBoundingClientRect(),u=l.width;let c,d;if(t){const h=t.getBoundingClientRect(),f=l.top-h.top;c=h.height-Math.max(0,f),d=f+t.scrollTop}else c=window.innerHeight-Math.max(0,l.top),d=l.top+window.pageYOffset;n.current={offsetTop:d,visibleHeight:c,visibleWidth:u},e(n.current)},[e,t]),{callbackRef:i,ref:o}=Hf(r),a=w.useCallback(()=>{r(o.current)},[r,o]);return w.useEffect(()=>{if(t){t.addEventListener("scroll",a);const s=new ResizeObserver(()=>{requestAnimationFrame(a)});return s.observe(t),()=>{t.removeEventListener("scroll",a),s.unobserve(t)}}else return window.addEventListener("scroll",a),window.addEventListener("resize",a),()=>{window.removeEventListener("scroll",a),window.removeEventListener("resize",a)}},[a,t]),i}const wu=w.createContext(void 0),bv=w.createContext(void 0);function Uf(e){return e}const y_=Pe(()=>{const e=q(l=>`Item ${l}`),t=q(null),n=q(l=>`Group ${l}`),r=q({}),i=q(Uf),o=q("div"),a=q(Ri),s=(l,u=null)=>Dt(J(r,te(c=>c[l]),ze()),u);return{context:t,itemContent:e,groupContent:n,components:r,computeItemKey:i,headerFooterTag:o,scrollerRef:a,FooterComponent:s("Footer"),HeaderComponent:s("Header"),TopItemListComponent:s("TopItemList"),ListComponent:s("List","div"),ItemComponent:s("Item","div"),GroupComponent:s("Group","div"),ScrollerComponent:s("Scroller","div"),EmptyPlaceholder:s("EmptyPlaceholder"),ScrollSeekPlaceholder:s("ScrollSeekPlaceholder")}}),x_=Pe(([e,t])=>({...e,...t}),Ge(mv,y_)),C_=({height:e})=>w.createElement("div",{style:{height:e}}),w_={position:pv(),zIndex:1,overflowAnchor:"none"},D_={overflowAnchor:"none"},sm=w.memo(function({showTopList:t=!1}){const n=Se("listState"),r=cn("sizeRanges"),i=Se("useWindowScroll"),o=Se("customScrollParent"),a=cn("windowScrollContainerState"),s=cn("scrollContainerState"),l=o||i?a:s,u=Se("itemContent"),c=Se("context"),d=Se("groupContent"),h=Se("trackItemSizes"),f=Se("itemSize"),g=Se("log"),m=cn("gap"),{callbackRef:b}=K1(r,f,h,t?Ri:l,g,m,o),[y,v]=w.useState(0);qf("deviation",R=>{y!==R&&v(R)});const x=Se("EmptyPlaceholder"),C=Se("ScrollSeekPlaceholder")||C_,D=Se("ListComponent"),I=Se("ItemComponent"),T=Se("GroupComponent"),p=Se("computeItemKey"),S=Se("isSeeking"),$=Se("groupIndices").length>0,_=Se("alignToBottom"),A=Se("initialItemFinalLocationReached"),k=t?{}:{boxSizing:"border-box",paddingTop:n.offsetTop,paddingBottom:n.offsetBottom,marginTop:y!==0?y:_?"auto":0,...A?{}:{visibility:"hidden"}};return!t&&n.totalCount===0&&x?w.createElement(x,qe(x,c)):w.createElement(D,{...qe(D,c),ref:b,style:k,"data-testid":t?"virtuoso-top-item-list":"virtuoso-item-list"},(t?n.topItems:n.items).map(R=>{const M=R.originalIndex,P=p(M+n.firstItemIndex,R.data,c);return S?w.createElement(C,{...qe(C,c),key:P,index:R.index,height:R.size,type:R.type||"item",...R.type==="group"?{}:{groupIndex:R.groupIndex}}):R.type==="group"?w.createElement(T,{...qe(T,c),key:P,"data-index":M,"data-known-size":R.size,"data-item-index":R.index,style:w_},d(R.index,c)):w.createElement(I,{...qe(I,c),...vv(I,R.data),key:P,"data-index":M,"data-known-size":R.size,"data-item-index":R.index,"data-item-group-index":R.groupIndex,style:D_},$?u(R.index,R.groupIndex,R.data,c):u(R.index,R.data,c))}))}),S_={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},So=e=>({width:"100%",height:"100%",position:"absolute",top:0,...e?{display:"flex",flexDirection:"column"}:{}}),E_={width:"100%",position:pv(),top:0,zIndex:1};function qe(e,t){if(typeof e!="string")return{context:t}}function vv(e,t){return{item:typeof e=="string"?void 0:t}}const I_=w.memo(function(){const t=Se("HeaderComponent"),n=cn("headerHeight"),r=Se("headerFooterTag"),i=Zn(a=>n(Sn(a,"height"))),o=Se("context");return t?w.createElement(r,{ref:i},w.createElement(t,qe(t,o))):null}),__=w.memo(function(){const t=Se("FooterComponent"),n=cn("footerHeight"),r=Se("headerFooterTag"),i=Zn(a=>n(Sn(a,"height"))),o=Se("context");return t?w.createElement(r,{ref:i},w.createElement(t,qe(t,o))):null});function Jf({usePublisher:e,useEmitter:t,useEmitterValue:n}){return w.memo(function({style:o,children:a,...s}){const l=e("scrollContainerState"),u=n("ScrollerComponent"),c=e("smoothScrollTargetReached"),d=n("scrollerRef"),h=n("context"),{scrollerRef:f,scrollByCallback:g,scrollToCallback:m}=Q1(l,c,u,d);return t("scrollTo",m),t("scrollBy",g),w.createElement(u,{ref:f,style:{...S_,...o},"data-testid":"virtuoso-scroller","data-virtuoso-scroller":!0,tabIndex:0,...s,...qe(u,h)},a)})}function Kf({usePublisher:e,useEmitter:t,useEmitterValue:n}){return w.memo(function({style:o,children:a,...s}){const l=e("windowScrollContainerState"),u=n("ScrollerComponent"),c=e("smoothScrollTargetReached"),d=n("totalListHeight"),h=n("deviation"),f=n("customScrollParent"),g=n("context"),{scrollerRef:m,scrollByCallback:b,scrollToCallback:y}=Q1(l,c,u,Ri,f);return BI(()=>(m.current=f||window,()=>{m.current=null}),[m,f]),t("windowScrollTo",y),t("scrollBy",b),w.createElement(u,{style:{position:"relative",...o,...d!==0?{height:d+h}:{}},"data-virtuoso-scroller":!0,...s,...qe(u,g)},a)})}const $_=({children:e})=>{const t=w.useContext(wu),n=cn("viewportHeight"),r=cn("fixedItemHeight"),i=Se("alignToBottom"),o=Zn(pa(n,a=>Sn(a,"height")));return w.useEffect(()=>{t&&(n(t.viewportHeight),r(t.itemHeight))},[t,n,r]),w.createElement("div",{style:So(i),ref:o,"data-viewport-type":"element"},e)},R_=({children:e})=>{const t=w.useContext(wu),n=cn("windowViewportRect"),r=cn("fixedItemHeight"),i=Se("customScrollParent"),o=Yf(n,i),a=Se("alignToBottom");return w.useEffect(()=>{t&&(r(t.itemHeight),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,n,r]),w.createElement("div",{ref:o,style:So(a),"data-viewport-type":"window"},e)},A_=({children:e})=>{const t=Se("TopItemListComponent")||"div",n=Se("headerHeight"),r={...E_,marginTop:`${n}px`},i=Se("context");return w.createElement(t,{style:r,...qe(t,i)},e)},F_=w.memo(function(t){const n=Se("useWindowScroll"),r=Se("topItemsIndexes").length>0,i=Se("customScrollParent"),o=i||n?k_:T_,a=i||n?R_:$_;return w.createElement(o,{...t},r&&w.createElement(A_,null,w.createElement(sm,{showTopList:!0})),w.createElement(a,null,w.createElement(I_,null),w.createElement(sm,null),w.createElement(__,null)))}),{Component:P_,usePublisher:cn,useEmitterValue:Se,useEmitter:qf}=Lf(x_,{required:{},optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",itemContent:"itemContent",groupContent:"groupContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",groupCounts:"groupCounts",topItemCount:"topItemCount",firstItemIndex:"firstItemIndex",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",autoscrollToBottom:"autoscrollToBottom",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},F_),T_=Jf({usePublisher:cn,useEmitterValue:Se,useEmitter:qf}),k_=Kf({usePublisher:cn,useEmitterValue:Se,useEmitter:qf}),M_=P_,lm={items:[],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},B_={items:[{index:0}],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},{round:um,ceil:cm,floor:kl,min:lc,max:Qo}=Math;function O_(e){return{...B_,items:e}}function dm(e,t,n){return Array.from({length:t-e+1}).map((r,i)=>{const o=n===null?null:n[i+e];return{index:i+e,data:o}})}function N_(e,t){return e&&e.column===t.column&&e.row===t.row}function Cs(e,t){return e&&e.width===t.width&&e.height===t.height}const V_=Pe(([{overscan:e,visibleRange:t,listBoundary:n},{scrollTop:r,viewportHeight:i,scrollBy:o,scrollTo:a,smoothScrollTargetReached:s,scrollContainerState:l,footerHeight:u,headerHeight:c},d,h,{propsReady:f,didMount:g},{windowViewportRect:m,useWindowScroll:b,customScrollParent:y,windowScrollContainerState:v,windowScrollTo:x},C])=>{const D=q(0),I=q(0),T=q(lm),p=q({height:0,width:0}),S=q({height:0,width:0}),$=$e(),_=$e(),A=q(0),k=q(null),R=q({row:0,column:0}),M=$e(),P=$e(),F=q(!1),B=q(0),N=q(!0),O=q(!1);Ve(J(g,Ce(B),me(([V,z])=>!!z)),()=>{xe(N,!1),xe(I,0)}),Ve(J(ft(g,N,S,p,B,O),me(([V,z,Y,K,,Q])=>V&&!z&&Y.height!==0&&K.height!==0&&!Q)),([,,,,V])=>{xe(O,!0),zf(1,()=>{xe($,V)}),Gn(J(r),()=>{xe(n,[0,0]),xe(N,!0)})}),se(J(P,me(V=>V!=null&&V.scrollTop>0),Bn(0)),I),Ve(J(g,Ce(P),me(([,V])=>V!=null)),([,V])=>{V&&(xe(p,V.viewport),xe(S,V==null?void 0:V.item),xe(R,V.gap),V.scrollTop>0&&(xe(F,!0),Gn(J(r,ho(1)),z=>{xe(F,!1)}),xe(a,{top:V.scrollTop})))}),se(J(p,te(({height:V})=>V)),i),se(J(ft(pe(p,Cs),pe(S,Cs),pe(R,(V,z)=>V&&V.column===z.column&&V.row===z.row),pe(r)),te(([V,z,Y,K])=>({viewport:V,item:z,gap:Y,scrollTop:K}))),M),se(J(ft(pe(D),t,pe(R,N_),pe(S,Cs),pe(p,Cs),pe(k),pe(I),pe(F),pe(N),pe(B)),me(([,,,,,,,V])=>!V),te(([V,[z,Y],K,Q,ee,X,ue,,fe,he])=>{const{row:ht,column:ne}=K,{height:ie,width:ve}=Q,{width:Le}=ee;if(ue===0&&(V===0||Le===0))return lm;if(ve===0){const ju=Gf(he,V),KC=ju===0?Math.max(ue-1,0):ju;return O_(dm(ju,KC,X))}const at=yv(Le,ve,ne);let Re,Ie;fe?z===0&&Y===0&&ue>0?(Re=0,Ie=ue-1):(Re=at*kl((z+ht)/(ie+ht)),Ie=at*cm((Y+ht)/(ie+ht))-1,Ie=lc(V-1,Qo(Ie,at-1)),Re=lc(Ie,Qo(0,Re))):(Re=0,Ie=-1);const en=dm(Re,Ie,X),{top:hn,bottom:gn}=fm(ee,K,Q,en),Mi=cm(V/at),JC=Mi*ie+(Mi-1)*ht-gn;return{items:en,offsetTop:hn,offsetBottom:JC,top:hn,bottom:gn,itemHeight:ie,itemWidth:ve}})),T),se(J(k,me(V=>V!==null),te(V=>V.length)),D),se(J(ft(p,S,T,R),me(([V,z,{items:Y}])=>Y.length>0&&z.height!==0&&V.height!==0),te(([V,z,{items:Y},K])=>{const{top:Q,bottom:ee}=fm(V,K,z,Y);return[Q,ee]}),ze(Ca)),n);const L=q(!1);se(J(r,Ce(L),te(([V,z])=>z||V!==0)),L);const W=Yt(J(pe(T),me(({items:V})=>V.length>0),Ce(D,L),me(([{items:V},z,Y])=>Y&&V[V.length-1].index===z-1),te(([,V])=>V-1),ze())),Z=Yt(J(pe(T),me(({items:V})=>V.length>0&&V[0].index===0),Bn(0),ze())),j=Yt(J(pe(T),Ce(F),me(([{items:V},z])=>V.length>0&&!z),te(([{items:V}])=>({startIndex:V[0].index,endIndex:V[V.length-1].index})),ze(cv),Ar(0)));se(j,h.scrollSeekRangeChanged),se(J($,Ce(p,S,D,R),te(([V,z,Y,K,Q])=>{const ee=lv(V),{align:X,behavior:ue,offset:fe}=ee;let he=ee.index;he==="LAST"&&(he=K-1),he=Qo(0,he,lc(K-1,he));let ht=Sd(z,Q,Y,he);return X==="end"?ht=um(ht-z.height+Y.height):X==="center"&&(ht=um(ht-z.height/2+Y.height/2)),fe&&(ht+=fe),{top:ht,behavior:ue}})),a);const H=Dt(J(T,te(V=>V.offsetBottom+V.bottom)),0);return se(J(m,te(V=>({width:V.visibleWidth,height:V.visibleHeight}))),p),{data:k,totalCount:D,viewportDimensions:p,itemDimensions:S,scrollTop:r,scrollHeight:_,overscan:e,scrollBy:o,scrollTo:a,scrollToIndex:$,smoothScrollTargetReached:s,windowViewportRect:m,windowScrollTo:x,useWindowScroll:b,customScrollParent:y,windowScrollContainerState:v,deviation:A,scrollContainerState:l,footerHeight:u,headerHeight:c,initialItemCount:I,gap:R,restoreStateFrom:P,...h,initialTopMostItemIndex:B,gridState:T,totalListHeight:H,...d,startReached:Z,endReached:W,rangeChanged:j,stateChanged:M,propsReady:f,stateRestoreInProgress:F,...C}},Ge(Zf,Ft,Qa,fv,Zr,Xf,Gr));function fm(e,t,n,r){const{height:i}=n;if(i===void 0||r.length===0)return{top:0,bottom:0};const o=Sd(e,t,n,r[0].index),a=Sd(e,t,n,r[r.length-1].index)+i;return{top:o,bottom:a}}function Sd(e,t,n,r){const i=yv(e.width,n.width,t.column),o=kl(r/i),a=o*n.height+Qo(0,o-1)*t.row;return a>0?a+t.row:a}function yv(e,t,n){return Qo(1,kl((e+n)/(kl(t)+n)))}const L_=Pe(()=>{const e=q(u=>`Item ${u}`),t=q({}),n=q(null),r=q("virtuoso-grid-item"),i=q("virtuoso-grid-list"),o=q(Uf),a=q("div"),s=q(Ri),l=(u,c=null)=>Dt(J(t,te(d=>d[u]),ze()),c);return{context:n,itemContent:e,components:t,computeItemKey:o,itemClassName:r,listClassName:i,headerFooterTag:a,scrollerRef:s,FooterComponent:l("Footer"),HeaderComponent:l("Header"),ListComponent:l("List","div"),ItemComponent:l("Item","div"),ScrollerComponent:l("Scroller","div"),ScrollSeekPlaceholder:l("ScrollSeekPlaceholder","div")}}),H_=Pe(([e,t])=>({...e,...t}),Ge(V_,L_)),j_=w.memo(function(){const t=Ye("gridState"),n=Ye("listClassName"),r=Ye("itemClassName"),i=Ye("itemContent"),o=Ye("computeItemKey"),a=Ye("isSeeking"),s=Cn("scrollHeight"),l=Ye("ItemComponent"),u=Ye("ListComponent"),c=Ye("ScrollSeekPlaceholder"),d=Ye("context"),h=Cn("itemDimensions"),f=Cn("gap"),g=Ye("log"),m=Ye("stateRestoreInProgress"),b=Zn(y=>{const v=y.parentElement.parentElement.scrollHeight;s(v);const x=y.firstChild;if(x){const{width:C,height:D}=x.getBoundingClientRect();h({width:C,height:D})}f({row:hm("row-gap",getComputedStyle(y).rowGap,g),column:hm("column-gap",getComputedStyle(y).columnGap,g)})});return m?null:w.createElement(u,{ref:b,className:n,...qe(u,d),style:{paddingTop:t.offsetTop,paddingBottom:t.offsetBottom},"data-testid":"virtuoso-item-list"},t.items.map(y=>{const v=o(y.index,y.data,d);return a?w.createElement(c,{key:v,...qe(c,d),index:y.index,height:t.itemHeight,width:t.itemWidth}):w.createElement(l,{...qe(l,d),className:r,"data-index":y.index,key:v},i(y.index,y.data,d))}))}),W_=w.memo(function(){const t=Ye("HeaderComponent"),n=Cn("headerHeight"),r=Ye("headerFooterTag"),i=Zn(a=>n(Sn(a,"height"))),o=Ye("context");return t?w.createElement(r,{ref:i},w.createElement(t,qe(t,o))):null}),z_=w.memo(function(){const t=Ye("FooterComponent"),n=Cn("footerHeight"),r=Ye("headerFooterTag"),i=Zn(a=>n(Sn(a,"height"))),o=Ye("context");return t?w.createElement(r,{ref:i},w.createElement(t,qe(t,o))):null}),G_=({children:e})=>{const t=w.useContext(bv),n=Cn("itemDimensions"),r=Cn("viewportDimensions"),i=Zn(o=>{r(o.getBoundingClientRect())});return w.useEffect(()=>{t&&(r({height:t.viewportHeight,width:t.viewportWidth}),n({height:t.itemHeight,width:t.itemWidth}))},[t,r,n]),w.createElement("div",{style:So(!1),ref:i},e)},Z_=({children:e})=>{const t=w.useContext(bv),n=Cn("windowViewportRect"),r=Cn("itemDimensions"),i=Ye("customScrollParent"),o=Yf(n,i);return w.useEffect(()=>{t&&(r({height:t.itemHeight,width:t.itemWidth}),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:t.viewportWidth}))},[t,n,r]),w.createElement("div",{ref:o,style:So(!1)},e)},X_=w.memo(function({...t}){const n=Ye("useWindowScroll"),r=Ye("customScrollParent"),i=r||n?U_:Y_,o=r||n?Z_:G_;return w.createElement(i,{...t},w.createElement(o,null,w.createElement(W_,null),w.createElement(j_,null),w.createElement(z_,null)))}),{usePublisher:Cn,useEmitterValue:Ye,useEmitter:xv}=Lf(H_,{optional:{context:"context",totalCount:"totalCount",overscan:"overscan",itemContent:"itemContent",components:"components",computeItemKey:"computeItemKey",data:"data",initialItemCount:"initialItemCount",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",listClassName:"listClassName",itemClassName:"itemClassName",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",restoreStateFrom:"restoreStateFrom",initialTopMostItemIndex:"initialTopMostItemIndex"},methods:{scrollTo:"scrollTo",scrollBy:"scrollBy",scrollToIndex:"scrollToIndex"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",stateChanged:"stateChanged"}},X_),Y_=Jf({usePublisher:Cn,useEmitterValue:Ye,useEmitter:xv}),U_=Kf({usePublisher:Cn,useEmitterValue:Ye,useEmitter:xv});function hm(e,t,n){return t!=="normal"&&!(t!=null&&t.endsWith("px"))&&n(`${e} was not resolved to pixel value correctly`,t,Ut.WARN),t==="normal"?0:parseInt(t??"0",10)}const J_=Pe(()=>{const e=q(l=>w.createElement("td",null,"Item $",l)),t=q(null),n=q(null),r=q(null),i=q({}),o=q(Uf),a=q(Ri),s=(l,u=null)=>Dt(J(i,te(c=>c[l]),ze()),u);return{context:t,itemContent:e,fixedHeaderContent:n,fixedFooterContent:r,components:i,computeItemKey:o,scrollerRef:a,TableComponent:s("Table","table"),TableHeadComponent:s("TableHead","thead"),TableFooterComponent:s("TableFoot","tfoot"),TableBodyComponent:s("TableBody","tbody"),TableRowComponent:s("TableRow","tr"),ScrollerComponent:s("Scroller","div"),EmptyPlaceholder:s("EmptyPlaceholder"),ScrollSeekPlaceholder:s("ScrollSeekPlaceholder"),FillerRow:s("FillerRow")}}),K_=Pe(([e,t])=>({...e,...t}),Ge(mv,J_)),q_=({height:e})=>w.createElement("tr",null,w.createElement("td",{style:{height:e}})),Q_=({height:e})=>w.createElement("tr",null,w.createElement("td",{style:{height:e,padding:0,border:0}})),e$={overflowAnchor:"none"},t$=w.memo(function(){const t=Be("listState"),n=wn("sizeRanges"),r=Be("useWindowScroll"),i=Be("customScrollParent"),o=wn("windowScrollContainerState"),a=wn("scrollContainerState"),s=i||r?o:a,l=Be("itemContent"),u=Be("trackItemSizes"),c=Be("itemSize"),d=Be("log"),{callbackRef:h,ref:f}=K1(n,c,u,s,d,void 0,i),[g,m]=w.useState(0);Qf("deviation",P=>{g!==P&&(f.current.style.marginTop=`${P}px`,m(P))});const b=Be("EmptyPlaceholder"),y=Be("ScrollSeekPlaceholder")||q_,v=Be("FillerRow")||Q_,x=Be("TableBodyComponent"),C=Be("TableRowComponent"),D=Be("computeItemKey"),I=Be("isSeeking"),T=Be("paddingTopAddition"),p=Be("firstItemIndex"),S=Be("statefulTotalCount"),$=Be("context");if(S===0&&b)return w.createElement(b,qe(b,$));const _=t.offsetTop+T+g,A=t.offsetBottom,k=_>0?w.createElement(v,{height:_,key:"padding-top",context:$}):null,R=A>0?w.createElement(v,{height:A,key:"padding-bottom",context:$}):null,M=t.items.map(P=>{const F=P.originalIndex,B=D(F+p,P.data,$);return I?w.createElement(y,{...qe(y,$),key:B,index:P.index,height:P.size,type:P.type||"item"}):w.createElement(C,{...qe(C,$),...vv(C,P.data),key:B,"data-index":F,"data-known-size":P.size,"data-item-index":P.index,style:e$},l(P.index,P.data,$))});return w.createElement(x,{ref:h,"data-testid":"virtuoso-item-list",...qe(x,$)},[k,...M,R])}),n$=({children:e})=>{const t=w.useContext(wu),n=wn("viewportHeight"),r=wn("fixedItemHeight"),i=Zn(pa(n,o=>Sn(o,"height")));return w.useEffect(()=>{t&&(n(t.viewportHeight),r(t.itemHeight))},[t,n,r]),w.createElement("div",{style:So(!1),ref:i,"data-viewport-type":"element"},e)},r$=({children:e})=>{const t=w.useContext(wu),n=wn("windowViewportRect"),r=wn("fixedItemHeight"),i=Be("customScrollParent"),o=Yf(n,i);return w.useEffect(()=>{t&&(r(t.itemHeight),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,n,r]),w.createElement("div",{ref:o,style:So(!1),"data-viewport-type":"window"},e)},i$=w.memo(function(t){const n=Be("useWindowScroll"),r=Be("customScrollParent"),i=wn("fixedHeaderHeight"),o=wn("fixedFooterHeight"),a=Be("fixedHeaderContent"),s=Be("fixedFooterContent"),l=Be("context"),u=Zn(pa(i,v=>Sn(v,"height"))),c=Zn(pa(o,v=>Sn(v,"height"))),d=r||n?s$:a$,h=r||n?r$:n$,f=Be("TableComponent"),g=Be("TableHeadComponent"),m=Be("TableFooterComponent"),b=a?w.createElement(g,{key:"TableHead",style:{zIndex:2,position:"sticky",top:0},ref:u,...qe(g,l)},a()):null,y=s?w.createElement(m,{key:"TableFoot",style:{zIndex:1,position:"sticky",bottom:0},ref:c,...qe(m,l)},s()):null;return w.createElement(d,{...t},w.createElement(h,null,w.createElement(f,{style:{borderSpacing:0,overflowAnchor:"none"},...qe(f,l)},[b,w.createElement(t$,{key:"TableBody"}),y])))}),{Component:o$,usePublisher:wn,useEmitterValue:Be,useEmitter:Qf}=Lf(K_,{required:{},optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",firstItemIndex:"firstItemIndex",itemContent:"itemContent",fixedHeaderContent:"fixedHeaderContent",fixedFooterContent:"fixedFooterContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",topItemCount:"topItemCount",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",groupCounts:"groupCounts",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},i$),a$=Jf({usePublisher:wn,useEmitterValue:Be,useEmitter:Qf}),s$=Kf({usePublisher:wn,useEmitterValue:Be,useEmitter:Qf}),l$=o$,u$=({children:e,...t})=>E.jsx(E.Fragment,{children:e(t)}),c$=({children:e,...t})=>E.jsx(E.Fragment,{children:w.isValidElement(e)&&E.jsx(E.Fragment,{children:w.cloneElement(e,t)})}),eh=w.forwardRef((e,t)=>{const{classNameContainer:n="",computeItemKey:r=()=>"",itemSize:i=()=>0,totalCount:o=0,typeHight:a="min-max",minHeightItem:s=0,maxHeightTable:l=0,minLengthItem:u=0,fixedHeaderContent:c,itemContent:d,typeCalculateItemSize:h="manual",itemSizeNames:f=[],overscan:g=null,component:m={},idContainer:b="",triggerCalCulateContainer:y="",accumulationHeight:v=0,delayTriggerCalculateHeight:x=0,increaseViewportBy:C=()=>0,context:D={},endReached:I,increaseTotalCount:T=1}=e,[p,S]=w.useState(0),$=()=>{if(a==="min-max"){const k=(o+T)*s;return{height:o>u?l:p>k?p:k}}return a==="container"?{height:p}:{}},_=k=>{var P;const R=k.getAttribute("data-index");let M=((P=k.getBoundingClientRect())==null?void 0:P.height)||0;return f==null||f.forEach(F=>{var B,N;M+=((N=(B=document.querySelector(`[${F}="${R}"]`))==null?void 0:B.getBoundingClientRect())==null?void 0:N.height)??0}),M},A=()=>{var k;if(b&&a==="container"){const R=((k=document==null?void 0:document.getElementById(b))==null?void 0:k.offsetHeight)??0;S(R-v)}};return w.useEffect(()=>{const k=setTimeout(A,x);return window==null||window.addEventListener("resize",A),window==null||window.addEventListener("load",A),()=>{clearTimeout(k),window==null||window.removeEventListener("resize",A),window==null||window.removeEventListener("load",A)}},[a,y]),E.jsx("div",{className:`1ru-w-full ${n}`,children:E.jsx(l$,{context:D,ref:t,overscan:typeof g=="function"?g(a==="container"?p:l):a==="container"?p:l,totalListHeightChanged:k=>a==="min-max"?S(k):null,style:$(),totalCount:o,computeItemKey:r,itemSize:w.useCallback(k=>h==="manual"?i(k):_(k),[]),components:{TableRow:c$,...m},fixedHeaderContent:c,itemContent:(...k)=>d(u$,...k),endReached:I,increaseViewportBy:C(a==="container"?p:l)})})});eh.displayName="TableVirtualization";const d$="_sorting_1tyuq_45",bn={"payhere-reguler":"_payhere-reguler_1tyuq_1","laba-small":"_laba-small_1tyuq_1","laba-reguler":"_laba-reguler_1tyuq_1","pointer-laba":"_pointer-laba_1tyuq_16","pointer-payhere":"_pointer-payhere_1tyuq_20","resize-menu":"_resize-menu_1tyuq_24",sorting:d$,"laba-grey-02":"_laba-grey-02_1tyuq_59"},Vi="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.6673%2011.3333L8.00065%2014M8.00065%2014L5.33398%2011.3333M8.00065%2014V2'%20stroke='%23CFD8DC'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e";function f$(e,t=null){const[n,r]=w.useState(!1);return w.useEffect(()=>{let i=null,o=null;const a=()=>{const s=i instanceof HTMLElement?i.getBoundingClientRect().width:window.innerWidth,l=window.matchMedia(e.replace("WIDTH",s.toString()));r(l.matches)};if(t){if(i=document.getElementById(t),!i)return;o=new ResizeObserver(a),o.observe(i)}else i=window,window.addEventListener("resize",a);return a(),()=>{o?o.disconnect():window.removeEventListener("resize",a)}},[e,t]),n}const h$=e=>{const t=h=>{const f=new Date,g=h.getTime()-f.getTime();return Math.max(Math.floor(g/1e3),0)},n=new Date(new Date(e.date).setHours(new Date(e.date).getHours()-((e==null?void 0:e.adjustTimesTime)??0))),[r,i]=w.useState(t(n)),[o,a]=w.useState(e.running??!1),[s,l]=w.useState(()=>e==null?void 0:e.callbackDone);return w.useEffect(()=>{let h;return o&&r>0?h=setInterval(()=>{i(f=>Math.max(f-1,0))},e.intervalMs):o&&r===0&&typeof s=="function"&&s(),()=>{h&&clearInterval(h)}},[o,r,e.intervalMs,s]),{count:r,startCountdown:()=>{a(!0)},stopCountdown:()=>{a(!1)},resetCountdown:h=>{i(typeof h=="number"?h:t(h??n))},setCallbackDone:h=>l(()=>h)}};function Cv(e,t=0){const n=w.useRef({promise:null,resolve:null,reject:null,timeout:null});return w.useCallback((...i)=>(n.current.timeout&&clearTimeout(n.current.timeout),n.current.promise||(n.current.promise=new Promise((o,a)=>{n.current.resolve=o,n.current.reject=a})),n.current.timeout=setTimeout(()=>{e(...i).then(o=>{n.current.resolve&&n.current.resolve(o)}).catch(o=>{n.current.reject&&n.current.reject(o)}).finally(()=>{n.current.promise=null,n.current.resolve=null,n.current.reject=null,n.current.timeout=null})},t),n.current.promise),[e,t])}const th=typeof window<"u"?w.useLayoutEffect:w.useEffect,g$=(e,t)=>{const[n,r]=w.useState({width:0,height:0}),[i,o]=w.useState({width:0,height:0,top:0,left:0,bottom:0,right:0,x:0,y:0}),a=w.useRef(null);return th(()=>{const s=()=>{r({width:window.innerWidth,height:window.innerHeight})},l=d=>{for(const h of d){const{width:f,height:g,top:m,left:b,bottom:y,right:v,x,y:C}=h.contentRect;o({width:f,height:g,top:m,left:b,bottom:y,right:v,x,y:C})}};let u=null;t?u=document.querySelector(t):a.current&&(u=a.current);const c=new ResizeObserver(l);return u&&c.observe(u),window.addEventListener("resize",s),s(),()=>{u&&c.unobserve(u),window.removeEventListener("resize",s)}},[t,...e??[]]),{ref:a,windowSize:n,contentRect:i}};function m$(e){const[t,n]=w.useState(e),r=w.useRef(t);return w.useEffect(()=>{r.current=t},[t]),[t,n,r]}function p$(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${JSON.stringify(t)}' to ref '${JSON.stringify(e)}'`)}}}function b$(...e){return t=>{e.forEach(n=>{p$(n,t)})}}function nh(...e){return w.useMemo(()=>b$(...e),e)}function wa(e){const t=w.useRef(e);return xf(e,t.current)||(t.current=e),t.current}function Ci(e,t){const n=t.map(wa);w.useEffect(e,n)}function v$({ref:e,handlerMain:t,eventListener:n="mousedown",useEffectDependency:r=[]}){w.useEffect(()=>{function i(o){t(e,o)}return document.addEventListener(n,i),()=>{document.removeEventListener(n,i)}},[e,t,n,...r])}const y$=({containerRef:e,children:t,columnCount:n,gapX:r,gapY:i,direction:o="masonry-ltr",debounceRecalculate:a=500,durationAnimation:s=500,enableAnimation:l=!1})=>{const u=w.useCallback(()=>{const d=e.current;if(!d)return;const h=Array.from(d.children);if(h.length===0){d.style.height="0px";return}const f=Array(n).fill(0),g=d.offsetWidth;if(g===0)return;const m=(g-(n-1)*r)/n,b=o.includes("rtl"),y=o.includes("top-down");h.forEach((x,C)=>{x.style.width=`${m}px`,x.style.position="absolute",l&&(x.style.transition=`top ${s}ms ease, left ${s}ms ease`);let D;if(y)D=C%n;else{const p=Math.min(...f);D=f.indexOf(p)}const I=f[D];let T;b?T=g-(m*(D+1)+r*D):T=D*(m+r),x.style.top=`${I}px`,x.style.left=`${T}px`,f[D]+=x.offsetHeight+i});const v=Math.max(...f);d.style.height=`${v-i}px`},[e,n,r,o,i]),c=Cv(async()=>{u()},a);return w.useLayoutEffect(()=>{u()},[t,u]),w.useEffect(()=>(window.addEventListener("load",u),window.addEventListener("resize",c),()=>{window.removeEventListener("load",u),window.removeEventListener("resize",c)}),[t,c,u]),{recalculateLayout:u}},x$=(e,t)=>{var r,i;let n={};return e&&(n={position:"sticky",top:0,zIndex:2}),(r=t.column.columnDef.meta)!=null&&r.styleTh&&(n={...n,...(i=t.column.columnDef.meta)==null?void 0:i.styleTh(t.column.columnDef)}),n},Ml=(e,t=!1)=>{const n=e.getIsPinned(),r=n==="left"&&e.getIsLastColumn("left"),i=n==="right"&&e.getIsFirstColumn("right");return n?{boxShadow:r?"-4px 0 4px -4px gray inset":i?"4px 0 4px -4px gray inset":void 0,left:n==="left"?`${e.getStart("left")}px`:void 0,right:n==="right"?`${e.getAfter("right")}px`:void 0,position:"sticky",width:e.getSize(),zIndex:1,background:t?"white":""}:{}},wv=e=>{const t=e.columnPinning.left||[],n=e.columnPinning.right||[],r=e.rowPinning.top||[],i=e.rowPinning.bottom||[];return{left:t,right:n,top:r,bottom:i,isPinning:t.length>0||n.length>0||r.length>0||i.length>0}},Wt=()=>({kind:{"payhere-reguler":bn["payhere-reguler"],"laba-reguler":bn["laba-reguler"],"laba-small":bn["laba-small"]},pointer:{"payhere-reguler":bn["pointer-payhere"],"laba-reguler":bn["pointer-laba"],"laba-small":bn["pointer-laba"]},utility:{"table-scroll-top":""},sortingIcon:{"payhere-reguler":{asc:E.jsx("img",{src:Vi,className:"1ru-w-4 1ru-h-4"}),desc:E.jsx("img",{src:Vi,className:"1ru-w-4 1ru-h-4 1ru-rotate-180"})},"laba-reguler":{asc:E.jsx("img",{src:Vi,className:"1ru-w-4 1ru-h-4"}),desc:E.jsx("img",{src:Vi,className:"1ru-w-4 1ru-h-4 1ru-rotate-180"})},"laba-small":{asc:E.jsx("img",{src:Vi,className:"1ru-w-4 1ru-h-4"}),desc:E.jsx("img",{src:Vi,className:"1ru-w-4 1ru-h-4 1ru-rotate-180"})}},variant:{"laba-grey-02":bn["laba-grey-02"]}}),C$=({tableInstance:e,classNameWrapperTable:t,classNameTable:n,handlerRowClick:r,privillageRowClick:i,headerId:o,tbodyTrId:a,maxHeight:s,idCalculateHeight:l,componentSortASC:u,componentSortDESC:c,classNamePointer:d,emptyPlaceholder:h,renderSubComponent:f})=>E.jsx("div",{id:"1ru-table",style:s?{height:s,overflow:"auto"}:{},className:t??"",children:E.jsxs("table",{className:n,style:{width:wv(e.getState()).isPinning?e.getTotalSize():""},children:[E.jsx("thead",{id:o,"data-calculate-height-header":l,children:e.getHeaderGroups().map(g=>E.jsx("tr",{children:g.headers.map(m=>{var y,v,x,C;const b=(v=(y=m.column.columnDef.meta)==null?void 0:y.rowSpan)==null?void 0:v.call(y,m);return!m.isPlaceholder&&b!==void 0&&m.id===m.column.id?E.jsx(E.Fragment,{}):E.jsxs("th",{style:{...x$(s,m),...Ml(m.column)},colSpan:typeof((x=m.column.columnDef.meta)==null?void 0:x.colSpan)=="function"?(C=m.column.columnDef.meta)==null?void 0:C.colSpan(m.column.columnDef):m.colSpan,rowSpan:b,children:[m.isPlaceholder&&b===void 0?null:E.jsxs("div",{className:m.column.getCanSort()?bn.sorting:"",onClick:m.column.getToggleSortingHandler(),children:[ma(m.column.columnDef.header,m.getContext()),m.column.getCanSort()&&E.jsx("span",{className:"1ru-flex-shrink-0",children:m.column.getIsSorted()==="asc"||m.column.getIsSorted()==="desc"?E.jsxs(E.Fragment,{children:[m.column.getIsSorted()==="asc"&&E.jsx(E.Fragment,{children:u}),m.column.getIsSorted()==="desc"&&E.jsx(E.Fragment,{children:c})]}):E.jsx(E.Fragment,{})})]}),m.column.getIsPinned()&&E.jsx("div",{onDoubleClick:()=>m.column.resetSize(),onMouseDown:m.getResizeHandler(),onTouchStart:m.getResizeHandler(),className:bn["resize-menu"]})]},m.id)})},g.id))}),E.jsxs("tbody",{children:[e.getRowModel().rows.length>0&&e.getRowModel().rows.map((g,m)=>E.jsxs(w.Fragment,{children:[E.jsx("tr",{onClick:b=>{b.stopPropagation(),i&&typeof r=="function"&&r(g.original,g)},className:i?d:"","data-calculate-height":`${l}-${m}`,id:a(g),children:g.getVisibleCells().map(b=>{var y,v,x;return E.jsx("td",{style:{...typeof((y=b.column.columnDef.meta)==null?void 0:y.styleTd)=="function"?b.column.columnDef.meta.styleTd(g.original,g):{},...Ml(b.column,!0)},className:typeof((v=b.column.columnDef.meta)==null?void 0:v.classNameTd)=="function"?(x=b.column.columnDef.meta)==null?void 0:x.classNameTd(g.original,g):"",children:ma(b.column.columnDef.cell,b.getContext())},b.id)})},g.id),g.getIsExpanded()&&typeof f=="function"&&E.jsx("tr",{children:E.jsx("td",{colSpan:g.getVisibleCells().length,children:f(g.original,g)})})]},g.id)),e.getRowModel().rows.length===0&&w.isValidElement(h)&&E.jsx("tr",{children:E.jsx("td",{colSpan:e.getVisibleFlatColumns().length,children:h})})]})]})}),Dv=w.forwardRef((e,t)=>{const{context:n,...r}=e;return E.jsx("thead",{id:(n==null?void 0:n.headerId)??"",...r,ref:t})});Dv.displayName="VirtualizationHead";const w$=({style:e,context:t,...n})=>E.jsx("table",{...n,id:"1ru-table",className:(t==null?void 0:t.classNameTable)??"",style:{...e,width:t==null?void 0:t.width}}),D$=({tableInstance:e,classNameWrapperTable:t,handlerRowClick:n,privillageRowClick:r,virtualizationProps:i,headerId:o,tbodyTrId:a,classNameTable:s,componentSortASC:l,componentSortDESC:u,classNamePointer:c,emptyPlaceholder:d,renderSubComponent:h})=>{var m,b,y;const[f,g]=w.useState(0);return E.jsx(eh,{context:{headerId:o,classNameTable:s,width:wv(e.getState()).isPinning?e.getTotalSize():""},typeHight:"min-max",totalCount:((m=e.getRowModel().rows)==null?void 0:m.length)||0,minLengthItem:((b=e.getRowModel().rows)==null?void 0:b.length)||0,typeCalculateItemSize:"auto",component:{TableHead:Dv,Table:w$,EmptyPlaceholder:()=>E.jsx("tbody",{ref:v=>{var x;return g(((x=v==null?void 0:v.getBoundingClientRect())==null?void 0:x.height)??0)},children:E.jsx("tr",{children:E.jsx("td",{colSpan:e.getVisibleFlatColumns().length,children:w.isValidElement(d)&&d})})})},classNameContainer:t,fixedHeaderContent:()=>e.getHeaderGroups().map(v=>E.jsx("tr",{children:v.headers.map(x=>{var D,I,T,p;const C=(I=(D=x.column.columnDef.meta)==null?void 0:D.rowSpan)==null?void 0:I.call(D,x);return!x.isPlaceholder&&C!==void 0&&x.id===x.column.id?E.jsx(E.Fragment,{}):E.jsxs("th",{colSpan:x.colSpan,rowSpan:C,style:{...typeof((T=x.column.columnDef.meta)==null?void 0:T.styleTh)=="function"?(p=x.column.columnDef.meta)==null?void 0:p.styleTh(x.column.columnDef):{},...Ml(x.column)},children:[x.isPlaceholder&&C===void 0?null:E.jsxs("div",{className:x.column.getCanSort()?bn.sorting:"",onClick:x.column.getToggleSortingHandler(),children:[ma(x.column.columnDef.header,x.getContext()),x.column.getCanSort()&&E.jsx("span",{className:"1ru-flex-shrink-0",children:x.column.getIsSorted()==="asc"||x.column.getIsSorted()==="desc"?E.jsxs(E.Fragment,{children:[x.column.getIsSorted()==="asc"&&E.jsx(E.Fragment,{children:l}),x.column.getIsSorted()==="desc"&&E.jsx(E.Fragment,{children:u})]}):E.jsx(E.Fragment,{})})]}),x.column.getIsPinned()&&E.jsx("div",{onDoubleClick:()=>x.column.resetSize(),onMouseDown:x.getResizeHandler(),onTouchStart:x.getResizeHandler(),className:bn["resize-menu"]})]},x.id)})},v.id)),itemContent:(v,x)=>{var D,I;const C=(I=(D=e.getRowModel())==null?void 0:D.rows)==null?void 0:I[x];return E.jsx(v,{children:({...T})=>E.jsxs(w.Fragment,{children:[E.jsx("tr",{...T,onClick:p=>{p.stopPropagation(),r&&typeof n=="function"&&n(C.original,C)},className:r?c:"",id:a(C),children:C.getVisibleCells().map(p=>{var S,$,_;return E.jsx(E.Fragment,{children:E.jsx("td",{style:{...typeof((S=p.column.columnDef.meta)==null?void 0:S.styleTd)=="function"?p.column.columnDef.meta.styleTd(C.original,C):{},...Ml(p.column,!0)},className:typeof(($=p.column.columnDef.meta)==null?void 0:$.classNameTd)=="function"?(_=p.column.columnDef.meta)==null?void 0:_.classNameTd(C.original,C):"",children:ma(p.column.columnDef.cell,p.getContext())},p.id)})})}),C.getIsExpanded()&&typeof h=="function"&&E.jsx("tr",{"data-sub-component":x,children:E.jsx("td",{colSpan:C.getVisibleCells().length,children:h(C.original,C)})})]},C.id)},C.id)},...i,minHeightItem:((i==null?void 0:i.minHeightItem)??60)+((((y=e.getRowModel().rows)==null?void 0:y.length)||0)>0?0:f),itemSizeNames:typeof h=="function"?[...(i==null?void 0:i.itemSizeNames)??[],"data-sub-component"]:i==null?void 0:i.itemSizeNames})},S$=({tableInstance:e,classNameWrapperTable:t="",classNameTable:n="",collapseAll:r=!0,handlerRowClick:i,privillageRowClick:o=!1,virtualization:a=!1,virtualizationProps:s,headerId:l="",tbodyTrId:u=()=>"",maxHeight:c=0,idCalculateHeight:d=void 0,kind:h="laba-reguler",componentSortASC:f,componentSortDESC:g,scrollTop:m=!1,emptyPlaceholder:b,variant:y,renderSubComponent:v})=>{const x=()=>{if(![void 0,"undefined"].includes(d)){const C=document.querySelector(`[data-calculate-height-header="${d}"]`);let D=0;const I=document.querySelectorAll(`[data-calculate-height^="${d}-"]`);return I==null||I.forEach(T=>{D+=T.offsetHeight}),D>c?c+C.offsetHeight:0}return c};return Ci(()=>{!r&&typeof e.toggleAllRowsExpanded=="function"&&e.toggleAllRowsExpanded()},[r,e==null?void 0:e.toggleAllRowsExpanded]),E.jsxs(E.Fragment,{children:[!a&&E.jsx(C$,{tbodyTrId:u,headerId:l,tableInstance:e,classNameTable:n,classNameWrapperTable:`${Wt().kind[h]} ${y?Wt().variant[y]:""}
46
46
  ${m?Wt().utility["table-scroll-top"]:""} ${t}`,handlerRowClick:i,privillageRowClick:o,maxHeight:x(),idCalculateHeight:d,componentSortASC:w.isValidElement(f)?f:Wt().sortingIcon[h].asc,componentSortDESC:w.isValidElement(g)?g:Wt().sortingIcon[h].desc,classNamePointer:Wt().pointer[h],emptyPlaceholder:b,renderSubComponent:v}),a&&E.jsx(D$,{tbodyTrId:u,headerId:l,tableInstance:e,classNameTable:n,classNameWrapperTable:`${Wt().kind[h]} ${y?Wt().variant[y]:""}
47
47
  ${m?Wt().utility["table-scroll-top"]:""} ${t}`,handlerRowClick:i,privillageRowClick:o,virtualizationProps:s,componentSortASC:w.isValidElement(f)?f:Wt().sortingIcon[h].asc,componentSortDESC:w.isValidElement(g)?g:Wt().sortingIcon[h].desc,classNamePointer:Wt().pointer[h],emptyPlaceholder:b,renderSubComponent:v})]})},E$=({children:e,...t})=>E.jsx(E.Fragment,{children:e(t)}),I$=({children:e,...t})=>E.jsx(E.Fragment,{children:w.isValidElement(e)&&E.jsx(E.Fragment,{children:w.cloneElement(e,t)})}),Sv=w.forwardRef((e,t)=>{const{classNameContainer:n="",computeItemKey:r=()=>"",itemSize:i=()=>0,totalCount:o=0,typeHight:a="min-max",minHeightItem:s=0,maxHeightTable:l=0,minLengthItem:u=0,itemContent:c,typeCalculateItemSize:d="manual",itemSizeNames:h=[],overscan:f=null,component:g={},idContainer:m="",triggerCalCulateContainer:b="",accumulationHeight:y=0,delayTriggerCalculateHeight:v=0,increaseViewportBy:x=()=>0,context:C={},endReached:D,increaseTotalCount:I=1}=e,[T,p]=w.useState(0),S=()=>{if(a==="min-max"){const A=(o+I)*s;return{height:o>u?l:T>A?T:A}}return a==="container"?{height:T}:{}},$=A=>{var M;const k=A.getAttribute("data-index");let R=((M=A.getBoundingClientRect())==null?void 0:M.height)||0;return h==null||h.forEach(P=>{var F,B;R+=((B=(F=document.querySelector(`[${P}="${k}"]`))==null?void 0:F.getBoundingClientRect())==null?void 0:B.height)??0}),R},_=()=>{var A;if(m&&a==="container"){const k=((A=document==null?void 0:document.getElementById(m))==null?void 0:A.offsetHeight)??0;p(k-y)}};return w.useEffect(()=>{const A=setTimeout(_,v);return window==null||window.addEventListener("resize",_),window==null||window.addEventListener("load",_),()=>{clearTimeout(A),window==null||window.removeEventListener("resize",_),window==null||window.removeEventListener("load",_)}},[a,b]),E.jsx("div",{className:`1ru-w-full ${n}`,children:E.jsx(M_,{context:C,ref:t,overscan:typeof f=="function"?f(a==="container"?T:l):a==="container"?T:l,totalListHeightChanged:A=>a==="min-max"?p(A):null,style:S(),totalCount:o,computeItemKey:r,itemSize:w.useCallback(A=>d==="manual"?i(A):$(A),[]),itemContent:(...A)=>c(E$,...A),components:{Item:I$,...g},endReached:D,increaseViewportBy:x(a==="container"?T:l)})})});Sv.displayName="ListVirtualization";const _$="_ripple_1vbon_64",$$="_active_1vbon_69",ut={"disable-transition":"_disable-transition_1vbon_1","tab-panel":"_tab-panel_1vbon_5","tabs-medium":"_tabs-medium_1vbon_9","tabs-list":"_tabs-list_1vbon_12","button-tabs":"_button-tabs_1vbon_12","tabs-small":"_tabs-small_1vbon_19","tabs-m":"_tabs-m_1vbon_9","tabs-s":"_tabs-s_1vbon_19","container-tabs":"_container-tabs_1vbon_49","original-laba-blue-10":"_original-laba-blue-10_1vbon_52",ripple:_$,active:$$,"tabs-slider":"_tabs-slider_1vbon_76","container-payhere-brand-base":"_container-payhere-brand-base_1vbon_81","container-laba-blue-10":"_container-laba-blue-10_1vbon_105","container-laba-blue-10-bg_white":"_container-laba-blue-10-bg_white_1vbon_129","container-laba-blue-10-bg_blue-01":"_container-laba-blue-10-bg_blue-01_1vbon_153"},Du={"0px":"1ru-rounded-none","2px":"1ru-rounded-sm","4px":"1ru-rounded","6px":"1ru-rounded-md","8px":"1ru-rounded-lg","12px":"1ru-rounded-xl","16px":"1ru-rounded-2xl","24px":"1ru-rounded-3xl",full:"1ru-rounded-full"},R$=({id:e,value:t="",keyValueTab:n="",tabsList:r,className:i,classNameContainer:o,classNameButton:a,variant:s="original-laba-blue-10",size:l="tabs-m",borderRadius:u="0px",disabled:c,animation:d=!0,mountedExecuteChange:h=!0,typeButton:f="button",onChange:g})=>{var S;const m=w.useRef([]);let b=r||[];const y=Object.fromEntries(new URL(window.location.href).searchParams.entries()),v={tabsVariant:{"original-laba-blue-10":ut["original-laba-blue-10"],"container-payhere-brand-base":ut["container-payhere-brand-base"],"container-laba-blue-10":ut["container-laba-blue-10"],"container-laba-blue-10-bg_white":ut["container-laba-blue-10-bg_white"],"container-laba-blue-10-bg_blue-01":ut["container-laba-blue-10-bg_blue-01"]},size:{"tabs-m":ut["tabs-m"],"tabs-s":ut["tabs-s"],"tabs-medium":ut["tabs-medium"],"tabs-small":ut["tabs-small"]},borderRadius:Du,isContainer:["container-payhere-brand-base","container-laba-blue-10","container-laba-blue-10-bg_white","container-laba-blue-10-bg_blue-01"]},[x,C]=w.useState(-1),[D,I]=w.useState({height:0,width:0,left:0});b=b.filter($=>typeof($==null?void 0:$.isHide)=="boolean"?!$.isHide:!0);const T=$=>{const _=$.currentTarget,A=document.createElement("span"),k=Math.max(_.clientWidth,_.clientHeight),R=k/2;A.style.width=A.style.height=`${k}px`,A.style.left=`${$.clientX-_.getBoundingClientRect().left-R}px`,A.style.top=`${$.clientY-_.getBoundingClientRect().top-R}px`,A.classList.add(ut.ripple);const M=_.getElementsByClassName(ut.ripple)[0];M&&M.remove(),_.appendChild(A),setTimeout(()=>{A.remove()},500)},p=$=>{typeof g=="function"&&g($)};return w.useEffect(()=>{function $(){const _=m.current[x],A={left:(_==null?void 0:_.offsetLeft)??0,width:(_==null?void 0:_.clientWidth)??0,height:v.isContainer.includes(s)?(_==null?void 0:_.clientHeight)||0:4};I(A)}return x>=0&&$(),window.addEventListener("resize",$),()=>window.removeEventListener("resize",$)},[x]),w.useEffect(()=>{const $=b.findIndex(_=>_.id===(y==null?void 0:y[n])||_.id===t);if((y!=null&&y[n]||t)&&$>=0){C($);const _=b==null?void 0:b.find(A=>A.id===(y==null?void 0:y[n]));y!=null&&y[n]&&_&&!t&&h&&p(_)}$<0&&h&&p(b[0])},[JSON.stringify(t),JSON.stringify(y==null?void 0:y[n])]),E.jsx("div",{className:`${ut["container-tabs"]} ${c?"1ru-opacity-50":""} ${o??""}`,children:E.jsxs("div",{className:`${v.tabsVariant[s]}
48
48
  ${v.isContainer.includes(s)?v.size[l]:""}
@@ -51,10 +51,10 @@
51
51
  ${a??""} ${($==null?void 0:$.className)??""}
52
52
  ${x===_?ut.active:""}`,disabled:c,onClick:A=>{v.isContainer.includes(s)||T(A),x!=_&&p($)},children:$.label},_))}),E.jsx("div",{className:`${ut["tabs-slider"]} ${v.borderRadius[u]}
53
53
  ${a??""} ${d?"":ut["disable-transition"]}
54
- `,style:{left:D.left,width:D.width,height:D.height,background:((S=r[x])==null?void 0:S.activeColor)??""}})]})})},A$=({children:e,id:t,value:n,selected:r,className:i,isHide:o})=>E.jsx("div",{role:"tabpanel",id:t??`1ru-tabpanel-${n}`,hidden:o??n!==r,className:`${ut["tab-panel"]} ${i??""}`,children:e}),F$="_option_19vm6_88",P$="_active_19vm6_99",kt={"pagination-nude":"_pagination-nude_19vm6_1","pagination-box":"_pagination-box_19vm6_1","pagination-size":"_pagination-size_19vm6_9","navigation-container":"_navigation-container_19vm6_12","button-container":"_button-container_19vm6_17","button-next":"_button-next_19vm6_17","button-prev":"_button-prev_19vm6_17","pagination-active":"_pagination-active_19vm6_30","goto-page":"_goto-page_19vm6_33","goto-page-input":"_goto-page-input_19vm6_36","options-size":"_options-size_19vm6_88",option:F$,active:P$},T$="_selected_12d64_1",k$="_disabled_12d64_19",M$="_valid_12d64_66",B$="_invalid_12d64_72",O$="_error_12d64_103",ge={"container-calendar":"_container-calendar_12d64_1","month-calendar":"_month-calendar_12d64_1","cell-month":"_cell-month_12d64_1",selected:T$,"year-calendar":"_year-calendar_12d64_2","cell-year":"_cell-year_12d64_2","cell-calendar":"_cell-calendar_12d64_2","active-cell-calendar":"_active-cell-calendar_12d64_2","custom-time-calendar":"_custom-time-calendar_12d64_3","container-cell-time":"_container-cell-time_12d64_3","cell-time":"_cell-time_12d64_3","header-calendar":"_header-calendar_12d64_11","header-button-calendar":"_header-button-calendar_12d64_15",disabled:k$,"days-calendar":"_days-calendar_12d64_26","visible-cell-calendar":"_visible-cell-calendar_12d64_33","header-time":"_header-time_12d64_46","type-time":"_type-time_12d64_51",valid:M$,invalid:B$,"footer-calendar":"_footer-calendar_12d64_91","container-filter-date":"_container-filter-date_12d64_96","button-filter-date":"_button-filter-date_12d64_99",error:O$},jn=({className:e})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",className:`1ru-h-4 1ru-w-4 1ru-text-blue-700 ${e??""}`,viewBox:"0 0 512 512",children:E.jsx("path",{d:"M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"})}),Ev=({title:e,state:t,type:n,setUpYear:r={startYear:1970,endAfterThisYear:20},hiddenHeader:i,setActiveTypeCalendar:o,onChangeYear:a})=>{const s=(u,c)=>{const d=t.focusedDate.set({year:u});c?(o("month"),t.setFocusedDate(d)):!c&&typeof a=="function"&&a(d)},l=(u,c,d)=>Array.from({length:(c-u)/d+1},(h,f)=>u+f*d);return w.useEffect(()=>{const u=document.getElementById(`calendar-year-${t.focusedDate.year}`),c=document.getElementById("wrapper-calendar-year");u&&c&&c.scrollTo({behavior:"instant",top:u.offsetTop-93})},[]),E.jsxs("div",{className:`1ru-w-[296px] ${ge["container-calendar"]}`,children:[!i&&E.jsx("div",{className:`${ge["header-calendar"]} 1ru-my-2`,children:E.jsxs("div",{className:`${ge["header-button-calendar"]} ${n.includes("date")||n.includes("month")?"":ge.disabled}`,onClick:()=>{n.includes("date")?o("date"):n.includes("month")&&o("month")},children:[e," ",(n.includes("date")||n.includes("month"))&&E.jsx(jn,{})]})}),E.jsx("div",{id:"wrapper-calendar-year",className:ge["year-calendar"],children:l(r==null?void 0:r.startYear,new Date().getFullYear()+r.endAfterThisYear,1).map(u=>{var g,m;const c=Number(u),d=t!=null&&t.minValue?c<((g=t==null?void 0:t.minValue)==null?void 0:g.year):!1,h=t!=null&&t.maxValue?c>((m=t==null?void 0:t.maxValue)==null?void 0:m.year):!1,f=d||h;return E.jsx("div",{id:`calendar-year-${u}`,onClick:()=>{f||s(c,n.includes("month"))},className:`${ge["cell-year"]} ${t.focusedDate.year===c&&!f?ge.selected:""} ${t.focusedDate.year!==c&&!f?"hover:1ru-bg-laba-blue-01":""} ${f?"1ru-text-gray-400":"1ru-cursor-pointer"}`,children:u},u)})})]})},ws=(e,t)=>{const n=t-e+1;return Array.from({length:n},(r,i)=>i+e)},N$=({totalData:e,totalPage:t,pageNumber:n,pageSize:r,className:i,id:o,kind:a="box",prevIcon:s,nextIcon:l,onChange:u,optionPageSize:c=[25,50,75,100],offset:d=1.5,zIndex:h,withGotoPage:f=!1,withMorePage:g=!0,withOptionPageSize:m=!1})=>{const b=w.useRef(null),[y,v]=w.useState(n),[x,C]=w.useState(n.toString()),D={box:kt["pagination-box"],nude:kt["pagination-nude"]},I=1,T=(y-1)*r+1,p=r*y,S=e?`${Er(T,"decimal")}-${p>=e?Er(e,"decimal"):Er(p,"decimal")}`:0,$=w.useMemo(()=>{const R=Math.ceil(e/r);if(I+5>=R)return ws(1,R);const P=Math.max(y-I,1),F=Math.min(y+I,R),B=P>2,N=F<R-2,O=1,L=R;if(!B&&N){const W=3+2*I;return[...ws(1,W),"mr",R]}if(B&&!N){const W=3+2*I,Z=ws(R-W+1,R);return[O,"ml",...Z]}if(B&&N){const W=ws(P,F);return[O,"ml",...W,"mr",L]}},[e,r,I,y]),_=R=>{typeof u=="function"&&(u(R),v(R.pageNumber),C(R.pageNumber.toString()))},A=R=>{if(typeof u=="function"&&g){if(R==="ml"){const P=y-5;v(P<1?1:y-5)}else if(R==="mr"){const P=y+5;v(P>t?t:y+5)}}},k=R=>{C(R);const M=Number(R);M>0&&M<=t&&_({pageSize:r,totalData:e,totalPage:t,pageNumber:M})};return E.jsxs(E.Fragment,{children:[E.jsxs("div",{id:o??"1ru-pagination",className:`${D[a]} ${i}`,children:[E.jsxs("div",{className:kt["pagination-size"],children:[E.jsx("span",{children:"Baris per halaman:"}),m&&E.jsx(Dn,{variants:"ghost-blue-gray-100-bg_white",size:"xs",endIcon:E.jsx(jn,{className:"!1ru-text-gray-500 !1ru-w-[14px] !1ru-h-[14px] 1ru-mx-0.5"}),className:"!1ru-rounded-md !1ru-min-w-[60px] 1ru-justify-between",onClick:R=>{var M;return(M=b.current)==null?void 0:M.handlerShow(R)},children:Er(r,"decimal")}),E.jsxs("span",{children:[S," dari ",Er(e,"decimal")]})]}),E.jsxs("div",{className:kt["navigation-container"],children:[E.jsx("button",{id:"1ru-pagination-button-prev",className:`${kt["button-prev"]}`,disabled:y===1,onClick:()=>_({pageSize:r,totalData:e,totalPage:t,pageNumber:n-1}),children:typeof s=="function"||w.isValidElement(s)?w.isValidElement(s)?s:s():E.jsx(jn,{className:"1ru-rotate-90 !1ru-text-gray-500 !1ru-w-[14px] !1ru-h-[14px]"})}),($??[]).map((R,M)=>{if(typeof R!="number"){const P=["ml","mr"].includes(R);return E.jsx("button",{className:kt["button-container"],disabled:!g,onClick:()=>A(R),children:P?"...":R},M)}return E.jsx("button",{id:`1ru-pagination-button-${R}`,className:`${R===n?kt["pagination-active"]:""} ${kt["button-container"]}`,disabled:R===n,onClick:()=>_({pageSize:r,totalData:e,totalPage:t,pageNumber:R}),children:Er(R,"decimal")},M)}),E.jsx("button",{id:"1ru-pagination-button-next",className:`${kt["button-next"]}`,disabled:y===t||!t,onClick:()=>_({pageSize:r,totalData:e,totalPage:t,pageNumber:n+1}),children:typeof l=="function"||w.isValidElement(l)?w.isValidElement(l)?l:l():E.jsx(jn,{className:"-1ru-rotate-90 !1ru-text-gray-500 !1ru-w-[14px] !1ru-h-[14px]"})}),f&&E.jsxs("div",{className:kt["goto-page"],children:[E.jsx("span",{children:"Go to:"}),E.jsx("input",{type:"number",className:kt["goto-page-input"],value:x,onChange:R=>k(R.target.value),onBlur:()=>C(y.toString())})]})]})]}),E.jsx(br,{floatingOptions:{placement:"bottom-end"},ref:b,className:kt["options-size"],offset:d,zIndex:h,children:c.map((R,M)=>E.jsx("p",{className:`${kt.option} ${R===r?kt.active:""}`,onClick:()=>{var P;_({totalData:e,totalPage:t,pageSize:R,pageNumber:1}),(P=b.current)==null||P.setShow(!1)},children:Er(R,"decimal")},M))})]})};function wi(e){"@babel/helpers - typeof";return wi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wi(e)}function V$(e,t){if(wi(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(wi(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Iv(e){var t=V$(e,"string");return wi(t)=="symbol"?t:t+""}function Lo(e,t,n){return(t=Iv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gm(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 ce(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gm(Object(n),!0).forEach(function(r){Lo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function L$(e){if(Array.isArray(e))return e}function j$(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function Ed(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 _v(e,t){if(e){if(typeof e=="string")return Ed(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ed(e,t):void 0}}function H$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
55
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hr(e,t){return L$(e)||j$(e,t)||_v(e,t)||H$()}function W$(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 vr(e,t){if(e==null)return{};var n,r,i=W$(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var z$=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function G$(e){var t=e.defaultInputValue,n=t===void 0?"":t,r=e.defaultMenuIsOpen,i=r===void 0?!1:r,o=e.defaultValue,a=o===void 0?null:o,s=e.inputValue,l=e.menuIsOpen,u=e.onChange,c=e.onInputChange,d=e.onMenuClose,h=e.onMenuOpen,f=e.value,g=vr(e,z$),m=w.useState(s!==void 0?s:n),b=hr(m,2),y=b[0],v=b[1],x=w.useState(l!==void 0?l:i),C=hr(x,2),D=C[0],I=C[1],T=w.useState(f!==void 0?f:a),p=hr(T,2),S=p[0],$=p[1],_=w.useCallback(function(B,N){typeof u=="function"&&u(B,N),$(B)},[u]),A=w.useCallback(function(B,N){var O;typeof c=="function"&&(O=c(B,N)),v(O!==void 0?O:B)},[c]),k=w.useCallback(function(){typeof h=="function"&&h(),I(!0)},[h]),R=w.useCallback(function(){typeof d=="function"&&d(),I(!1)},[d]),M=s!==void 0?s:y,P=l!==void 0?l:D,F=f!==void 0?f:S;return ce(ce({},g),{},{inputValue:M,menuIsOpen:P,onChange:_,onInputChange:A,onMenuClose:R,onMenuOpen:k,value:F})}function de(){return de=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},de.apply(null,arguments)}function Z$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Iv(r.key),r)}}function X$(e,t,n){return t&&mm(e.prototype,t),n&&mm(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Id(e,t){return Id=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Id(e,t)}function Y$(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Id(e,t)}function Bl(e){return Bl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Bl(e)}function $v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($v=function(){return!!e})()}function U$(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function J$(e,t){if(t&&(wi(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return U$(e)}function K$(e){var t=$v();return function(){var n,r=Bl(e);if(t){var i=Bl(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return J$(this,n)}}function q$(e){if(Array.isArray(e))return Ed(e)}function Q$(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function e6(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
54
+ `,style:{left:D.left,width:D.width,height:D.height,background:((S=r[x])==null?void 0:S.activeColor)??""}})]})})},A$=({children:e,id:t,value:n,selected:r,className:i,isHide:o})=>E.jsx("div",{role:"tabpanel",id:t??`1ru-tabpanel-${n}`,hidden:o??n!==r,className:`${ut["tab-panel"]} ${i??""}`,children:e}),F$="_option_19vm6_88",P$="_active_19vm6_99",kt={"pagination-nude":"_pagination-nude_19vm6_1","pagination-box":"_pagination-box_19vm6_1","pagination-size":"_pagination-size_19vm6_9","navigation-container":"_navigation-container_19vm6_12","button-container":"_button-container_19vm6_17","button-next":"_button-next_19vm6_17","button-prev":"_button-prev_19vm6_17","pagination-active":"_pagination-active_19vm6_30","goto-page":"_goto-page_19vm6_33","goto-page-input":"_goto-page-input_19vm6_36","options-size":"_options-size_19vm6_88",option:F$,active:P$},T$="_selected_12d64_1",k$="_disabled_12d64_19",M$="_valid_12d64_66",B$="_invalid_12d64_72",O$="_error_12d64_103",ge={"container-calendar":"_container-calendar_12d64_1","month-calendar":"_month-calendar_12d64_1","cell-month":"_cell-month_12d64_1",selected:T$,"year-calendar":"_year-calendar_12d64_2","cell-year":"_cell-year_12d64_2","cell-calendar":"_cell-calendar_12d64_2","active-cell-calendar":"_active-cell-calendar_12d64_2","custom-time-calendar":"_custom-time-calendar_12d64_3","container-cell-time":"_container-cell-time_12d64_3","cell-time":"_cell-time_12d64_3","header-calendar":"_header-calendar_12d64_11","header-button-calendar":"_header-button-calendar_12d64_15",disabled:k$,"days-calendar":"_days-calendar_12d64_26","visible-cell-calendar":"_visible-cell-calendar_12d64_33","header-time":"_header-time_12d64_46","type-time":"_type-time_12d64_51",valid:M$,invalid:B$,"footer-calendar":"_footer-calendar_12d64_91","container-filter-date":"_container-filter-date_12d64_96","button-filter-date":"_button-filter-date_12d64_99",error:O$},Hn=({className:e})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",className:`1ru-h-4 1ru-w-4 1ru-text-blue-700 ${e??""}`,viewBox:"0 0 512 512",children:E.jsx("path",{d:"M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"})}),Ev=({title:e,state:t,type:n,setUpYear:r={startYear:1970,endAfterThisYear:20},hiddenHeader:i,setActiveTypeCalendar:o,onChangeYear:a})=>{const s=(u,c)=>{const d=t.focusedDate.set({year:u});c?(o("month"),t.setFocusedDate(d)):!c&&typeof a=="function"&&a(d)},l=(u,c,d)=>Array.from({length:(c-u)/d+1},(h,f)=>u+f*d);return w.useEffect(()=>{const u=document.getElementById(`calendar-year-${t.focusedDate.year}`),c=document.getElementById("wrapper-calendar-year");u&&c&&c.scrollTo({behavior:"instant",top:u.offsetTop-93})},[]),E.jsxs("div",{className:`1ru-w-[296px] ${ge["container-calendar"]}`,children:[!i&&E.jsx("div",{className:`${ge["header-calendar"]} 1ru-my-2`,children:E.jsxs("div",{className:`${ge["header-button-calendar"]} ${n.includes("date")||n.includes("month")?"":ge.disabled}`,onClick:()=>{n.includes("date")?o("date"):n.includes("month")&&o("month")},children:[e," ",(n.includes("date")||n.includes("month"))&&E.jsx(Hn,{})]})}),E.jsx("div",{id:"wrapper-calendar-year",className:ge["year-calendar"],children:l(r==null?void 0:r.startYear,new Date().getFullYear()+r.endAfterThisYear,1).map(u=>{var g,m;const c=Number(u),d=t!=null&&t.minValue?c<((g=t==null?void 0:t.minValue)==null?void 0:g.year):!1,h=t!=null&&t.maxValue?c>((m=t==null?void 0:t.maxValue)==null?void 0:m.year):!1,f=d||h;return E.jsx("div",{id:`calendar-year-${u}`,onClick:()=>{f||s(c,n.includes("month"))},className:`${ge["cell-year"]} ${t.focusedDate.year===c&&!f?ge.selected:""} ${t.focusedDate.year!==c&&!f?"hover:1ru-bg-laba-blue-01":""} ${f?"1ru-text-gray-400":"1ru-cursor-pointer"}`,children:u},u)})})]})},ws=(e,t)=>{const n=t-e+1;return Array.from({length:n},(r,i)=>i+e)},N$=({totalData:e,totalPage:t,pageNumber:n,pageSize:r,className:i,id:o,kind:a="box",prevIcon:s,nextIcon:l,onChange:u,optionPageSize:c=[25,50,75,100],offset:d=1.5,zIndex:h,withGotoPage:f=!1,withMorePage:g=!0,withOptionPageSize:m=!1})=>{const b=w.useRef(null),[y,v]=w.useState(n),[x,C]=w.useState(n.toString()),D={box:kt["pagination-box"],nude:kt["pagination-nude"]},I=1,T=(y-1)*r+1,p=r*y,S=e?`${Er(T,"decimal")}-${p>=e?Er(e,"decimal"):Er(p,"decimal")}`:0,$=w.useMemo(()=>{const R=Math.ceil(e/r);if(I+5>=R)return ws(1,R);const P=Math.max(y-I,1),F=Math.min(y+I,R),B=P>2,N=F<R-2,O=1,L=R;if(!B&&N){const W=3+2*I;return[...ws(1,W),"mr",R]}if(B&&!N){const W=3+2*I,Z=ws(R-W+1,R);return[O,"ml",...Z]}if(B&&N){const W=ws(P,F);return[O,"ml",...W,"mr",L]}},[e,r,I,y]),_=R=>{typeof u=="function"&&(u(R),v(R.pageNumber),C(R.pageNumber.toString()))},A=R=>{if(typeof u=="function"&&g){if(R==="ml"){const P=y-5;v(P<1?1:y-5)}else if(R==="mr"){const P=y+5;v(P>t?t:y+5)}}},k=R=>{C(R);const M=Number(R);M>0&&M<=t&&_({pageSize:r,totalData:e,totalPage:t,pageNumber:M})};return E.jsxs(E.Fragment,{children:[E.jsxs("div",{id:o??"1ru-pagination",className:`${D[a]} ${i}`,children:[E.jsxs("div",{className:kt["pagination-size"],children:[E.jsx("span",{children:"Baris per halaman:"}),m&&E.jsx(Dn,{variants:"ghost-blue-gray-100-bg_white",size:"xs",endIcon:E.jsx(Hn,{className:"!1ru-text-gray-500 !1ru-w-[14px] !1ru-h-[14px] 1ru-mx-0.5"}),className:"!1ru-rounded-md !1ru-min-w-[60px] 1ru-justify-between",onClick:R=>{var M;return(M=b.current)==null?void 0:M.handlerShow(R)},children:Er(r,"decimal")}),E.jsxs("span",{children:[S," dari ",Er(e,"decimal")]})]}),E.jsxs("div",{className:kt["navigation-container"],children:[E.jsx("button",{id:"1ru-pagination-button-prev",className:`${kt["button-prev"]}`,disabled:y===1,onClick:()=>_({pageSize:r,totalData:e,totalPage:t,pageNumber:n-1}),children:typeof s=="function"||w.isValidElement(s)?w.isValidElement(s)?s:s():E.jsx(Hn,{className:"1ru-rotate-90 !1ru-text-gray-500 !1ru-w-[14px] !1ru-h-[14px]"})}),($??[]).map((R,M)=>{if(typeof R!="number"){const P=["ml","mr"].includes(R);return E.jsx("button",{className:kt["button-container"],disabled:!g,onClick:()=>A(R),children:P?"...":R},M)}return E.jsx("button",{id:`1ru-pagination-button-${R}`,className:`${R===n?kt["pagination-active"]:""} ${kt["button-container"]}`,disabled:R===n,onClick:()=>_({pageSize:r,totalData:e,totalPage:t,pageNumber:R}),children:Er(R,"decimal")},M)}),E.jsx("button",{id:"1ru-pagination-button-next",className:`${kt["button-next"]}`,disabled:y===t||!t,onClick:()=>_({pageSize:r,totalData:e,totalPage:t,pageNumber:n+1}),children:typeof l=="function"||w.isValidElement(l)?w.isValidElement(l)?l:l():E.jsx(Hn,{className:"-1ru-rotate-90 !1ru-text-gray-500 !1ru-w-[14px] !1ru-h-[14px]"})}),f&&E.jsxs("div",{className:kt["goto-page"],children:[E.jsx("span",{children:"Go to:"}),E.jsx("input",{type:"number",className:kt["goto-page-input"],value:x,onChange:R=>k(R.target.value),onBlur:()=>C(y.toString())})]})]})]}),E.jsx(br,{floatingOptions:{placement:"bottom-end"},ref:b,className:kt["options-size"],offset:d,zIndex:h,children:c.map((R,M)=>E.jsx("p",{className:`${kt.option} ${R===r?kt.active:""}`,onClick:()=>{var P;_({totalData:e,totalPage:t,pageSize:R,pageNumber:1}),(P=b.current)==null||P.setShow(!1)},children:Er(R,"decimal")},M))})]})};function wi(e){"@babel/helpers - typeof";return wi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wi(e)}function V$(e,t){if(wi(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(wi(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Iv(e){var t=V$(e,"string");return wi(t)=="symbol"?t:t+""}function Lo(e,t,n){return(t=Iv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gm(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 ce(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gm(Object(n),!0).forEach(function(r){Lo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function L$(e){if(Array.isArray(e))return e}function H$(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function Ed(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 _v(e,t){if(e){if(typeof e=="string")return Ed(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ed(e,t):void 0}}function j$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
55
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hr(e,t){return L$(e)||H$(e,t)||_v(e,t)||j$()}function W$(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 vr(e,t){if(e==null)return{};var n,r,i=W$(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var z$=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function G$(e){var t=e.defaultInputValue,n=t===void 0?"":t,r=e.defaultMenuIsOpen,i=r===void 0?!1:r,o=e.defaultValue,a=o===void 0?null:o,s=e.inputValue,l=e.menuIsOpen,u=e.onChange,c=e.onInputChange,d=e.onMenuClose,h=e.onMenuOpen,f=e.value,g=vr(e,z$),m=w.useState(s!==void 0?s:n),b=hr(m,2),y=b[0],v=b[1],x=w.useState(l!==void 0?l:i),C=hr(x,2),D=C[0],I=C[1],T=w.useState(f!==void 0?f:a),p=hr(T,2),S=p[0],$=p[1],_=w.useCallback(function(B,N){typeof u=="function"&&u(B,N),$(B)},[u]),A=w.useCallback(function(B,N){var O;typeof c=="function"&&(O=c(B,N)),v(O!==void 0?O:B)},[c]),k=w.useCallback(function(){typeof h=="function"&&h(),I(!0)},[h]),R=w.useCallback(function(){typeof d=="function"&&d(),I(!1)},[d]),M=s!==void 0?s:y,P=l!==void 0?l:D,F=f!==void 0?f:S;return ce(ce({},g),{},{inputValue:M,menuIsOpen:P,onChange:_,onInputChange:A,onMenuClose:R,onMenuOpen:k,value:F})}function de(){return de=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},de.apply(null,arguments)}function Z$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Iv(r.key),r)}}function X$(e,t,n){return t&&mm(e.prototype,t),n&&mm(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Id(e,t){return Id=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Id(e,t)}function Y$(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Id(e,t)}function Bl(e){return Bl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Bl(e)}function $v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($v=function(){return!!e})()}function U$(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function J$(e,t){if(t&&(wi(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return U$(e)}function K$(e){var t=$v();return function(){var n,r=Bl(e);if(t){var i=Bl(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return J$(this,n)}}function q$(e){if(Array.isArray(e))return Ed(e)}function Q$(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function e6(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
56
56
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rh(e){return q$(e)||Q$(e)||_v(e)||e6()}function t6(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function n6(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var r6=function(){function e(n){var r=this;this._insertTag=function(i){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,o),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?process.env.NODE_ENV==="production":n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(n6(this));var i=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var o=r.charCodeAt(0)===64&&r.charCodeAt(1)===105;o&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
57
- `+r+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!o}if(this.isSpeedy){var a=t6(i);try{a.insertRule(r,a.cssRules.length)}catch(s){process.env.NODE_ENV!=="production"&&!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(r)&&console.error('There was a problem inserting the following rule: "'+r+'"',s)}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0,process.env.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),yt="-ms-",Ol="-moz-",Ae="-webkit-",ih="comm",oh="rule",ah="decl",i6="@import",Rv="@keyframes",o6="@layer",a6=Math.abs,Su=String.fromCharCode,s6=Object.assign;function l6(e,t){return mt(e,0)^45?(((t<<2^mt(e,0))<<2^mt(e,1))<<2^mt(e,2))<<2^mt(e,3):0}function Av(e){return e.trim()}function u6(e,t){return(e=t.exec(e))?e[0]:e}function Fe(e,t,n){return e.replace(t,n)}function _d(e,t){return e.indexOf(t)}function mt(e,t){return e.charCodeAt(t)|0}function Da(e,t,n){return e.slice(t,n)}function On(e){return e.length}function sh(e){return e.length}function Ds(e,t){return t.push(e),e}function c6(e,t){return e.map(t).join("")}var Eu=1,go=1,Fv=0,Vt=0,it=0,Eo="";function Iu(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:Eu,column:go,length:a,return:""}}function $o(e,t){return s6(Iu("",null,null,"",null,null,0),e,{length:-e.length},t)}function d6(){return it}function f6(){return it=Vt>0?mt(Eo,--Vt):0,go--,it===10&&(go=1,Eu--),it}function Jt(){return it=Vt<Fv?mt(Eo,Vt++):0,go++,it===10&&(go=1,Eu++),it}function Hn(){return mt(Eo,Vt)}function il(){return Vt}function ts(e,t){return Da(Eo,e,t)}function Sa(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Pv(e){return Eu=go=1,Fv=On(Eo=e),Vt=0,[]}function Tv(e){return Eo="",e}function ol(e){return Av(ts(Vt-1,$d(e===91?e+2:e===40?e+1:e)))}function h6(e){for(;(it=Hn())&&it<33;)Jt();return Sa(e)>2||Sa(it)>3?"":" "}function g6(e,t){for(;--t&&Jt()&&!(it<48||it>102||it>57&&it<65||it>70&&it<97););return ts(e,il()+(t<6&&Hn()==32&&Jt()==32))}function $d(e){for(;Jt();)switch(it){case e:return Vt;case 34:case 39:e!==34&&e!==39&&$d(it);break;case 40:e===41&&$d(e);break;case 92:Jt();break}return Vt}function m6(e,t){for(;Jt()&&e+it!==57;)if(e+it===84&&Hn()===47)break;return"/*"+ts(t,Vt-1)+"*"+Su(e===47?e:Jt())}function p6(e){for(;!Sa(Hn());)Jt();return ts(e,Vt)}function b6(e){return Tv(al("",null,null,null,[""],e=Pv(e),0,[0],e))}function al(e,t,n,r,i,o,a,s,l){for(var u=0,c=0,d=a,h=0,f=0,g=0,m=1,b=1,y=1,v=0,x="",C=i,D=o,I=r,T=x;b;)switch(g=v,v=Jt()){case 40:if(g!=108&&mt(T,d-1)==58){_d(T+=Fe(ol(v),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:T+=ol(v);break;case 9:case 10:case 13:case 32:T+=h6(g);break;case 92:T+=g6(il()-1,7);continue;case 47:switch(Hn()){case 42:case 47:Ds(v6(m6(Jt(),il()),t,n),l);break;default:T+="/"}break;case 123*m:s[u++]=On(T)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:b=0;case 59+c:y==-1&&(T=Fe(T,/\f/g,"")),f>0&&On(T)-d&&Ds(f>32?bm(T+";",r,n,d-1):bm(Fe(T," ","")+";",r,n,d-2),l);break;case 59:T+=";";default:if(Ds(I=pm(T,t,n,u,c,i,s,x,C=[],D=[],d),o),v===123)if(c===0)al(T,t,I,I,C,o,d,s,D);else switch(h===99&&mt(T,3)===110?100:h){case 100:case 108:case 109:case 115:al(e,I,I,r&&Ds(pm(e,I,I,0,0,i,s,x,i,C=[],d),D),i,D,d,s,r?C:D);break;default:al(T,I,I,I,[""],D,0,s,D)}}u=c=f=0,m=y=1,x=T="",d=a;break;case 58:d=1+On(T),f=g;default:if(m<1){if(v==123)--m;else if(v==125&&m++==0&&f6()==125)continue}switch(T+=Su(v),v*m){case 38:y=c>0?1:(T+="\f",-1);break;case 44:s[u++]=(On(T)-1)*y,y=1;break;case 64:Hn()===45&&(T+=ol(Jt())),h=Hn(),c=d=On(x=T+=p6(il())),v++;break;case 45:g===45&&On(T)==2&&(m=0)}}return o}function pm(e,t,n,r,i,o,a,s,l,u,c){for(var d=i-1,h=i===0?o:[""],f=sh(h),g=0,m=0,b=0;g<r;++g)for(var y=0,v=Da(e,d+1,d=a6(m=a[g])),x=e;y<f;++y)(x=Av(m>0?h[y]+" "+v:Fe(v,/&\f/g,h[y])))&&(l[b++]=x);return Iu(e,t,n,i===0?oh:s,l,u,c)}function v6(e,t,n){return Iu(e,t,n,ih,Su(d6()),Da(e,2,-2),0)}function bm(e,t,n,r){return Iu(e,t,n,ah,Da(e,0,r),Da(e,r+1,-1),r)}function no(e,t){for(var n="",r=sh(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function y6(e,t,n,r){switch(e.type){case o6:if(e.children.length)break;case i6:case ah:return e.return=e.return||e.value;case ih:return"";case Rv:return e.return=e.value+"{"+no(e.children,r)+"}";case oh:e.value=e.props.join(",")}return On(n=no(e.children,r))?e.return=e.value+"{"+n+"}":""}function x6(e){var t=sh(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}function C6(e){return function(t){t.root||(t=t.return)&&e(t)}}var w6=function(t,n,r){for(var i=0,o=0;i=o,o=Hn(),i===38&&o===12&&(n[r]=1),!Sa(o);)Jt();return ts(t,Vt)},D6=function(t,n){var r=-1,i=44;do switch(Sa(i)){case 0:i===38&&Hn()===12&&(n[r]=1),t[r]+=w6(Vt-1,n,r);break;case 2:t[r]+=ol(i);break;case 4:if(i===44){t[++r]=Hn()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Su(i)}while(i=Jt());return t},S6=function(t,n){return Tv(D6(Pv(t),n))},vm=new WeakMap,E6=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!vm.get(r))&&!i){vm.set(t,!0);for(var o=[],a=S6(n,o),s=r.props,l=0,u=0;l<a.length;l++)for(var c=0;c<s.length;c++,u++)t.props[u]=o[l]?a[l].replace(/&\f/g,s[c]):s[c]+" "+a[l]}}},I6=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}},_6="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",$6=function(t){return t.type==="comm"&&t.children.indexOf(_6)>-1},R6=function(t){return function(n,r,i){if(!(n.type!=="rule"||t.compat)){var o=n.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var a=!!n.parent,s=a?n.parent.children:i,l=s.length-1;l>=0;l--){var u=s[l];if(u.line<n.line)break;if(u.column<n.column){if($6(u))return;break}}o.forEach(function(c){console.error('The pseudo class "'+c+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+c.split("-child")[0]+'-of-type".')})}}}},kv=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},A6=function(t,n){for(var r=t-1;r>=0;r--)if(!kv(n[r]))return!0;return!1},ym=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},F6=function(t,n,r){kv(t)&&(t.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),ym(t)):A6(n,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),ym(t)))};function Mv(e,t){switch(l6(e,t)){case 5103:return Ae+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ae+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ae+e+Ol+e+yt+e+e;case 6828:case 4268:return Ae+e+yt+e+e;case 6165:return Ae+e+yt+"flex-"+e+e;case 5187:return Ae+e+Fe(e,/(\w+).+(:[^]+)/,Ae+"box-$1$2"+yt+"flex-$1$2")+e;case 5443:return Ae+e+yt+"flex-item-"+Fe(e,/flex-|-self/,"")+e;case 4675:return Ae+e+yt+"flex-line-pack"+Fe(e,/align-content|flex-|-self/,"")+e;case 5548:return Ae+e+yt+Fe(e,"shrink","negative")+e;case 5292:return Ae+e+yt+Fe(e,"basis","preferred-size")+e;case 6060:return Ae+"box-"+Fe(e,"-grow","")+Ae+e+yt+Fe(e,"grow","positive")+e;case 4554:return Ae+Fe(e,/([^-])(transform)/g,"$1"+Ae+"$2")+e;case 6187:return Fe(Fe(Fe(e,/(zoom-|grab)/,Ae+"$1"),/(image-set)/,Ae+"$1"),e,"")+e;case 5495:case 3959:return Fe(e,/(image-set\([^]*)/,Ae+"$1$`$1");case 4968:return Fe(Fe(e,/(.+:)(flex-)?(.*)/,Ae+"box-pack:$3"+yt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ae+e+e;case 4095:case 3583:case 4068:case 2532:return Fe(e,/(.+)-inline(.+)/,Ae+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(On(e)-1-t>6)switch(mt(e,t+1)){case 109:if(mt(e,t+4)!==45)break;case 102:return Fe(e,/(.+:)(.+)-([^]+)/,"$1"+Ae+"$2-$3$1"+Ol+(mt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~_d(e,"stretch")?Mv(Fe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(mt(e,t+1)!==115)break;case 6444:switch(mt(e,On(e)-3-(~_d(e,"!important")&&10))){case 107:return Fe(e,":",":"+Ae)+e;case 101:return Fe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ae+(mt(e,14)===45?"inline-":"")+"box$3$1"+Ae+"$2$3$1"+yt+"$2box$3")+e}break;case 5936:switch(mt(e,t+11)){case 114:return Ae+e+yt+Fe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ae+e+yt+Fe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ae+e+yt+Fe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ae+e+yt+e+e}return e}var P6=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case ah:t.return=Mv(t.value,t.length);break;case Rv:return no([$o(t,{value:Fe(t.value,"@","@"+Ae)})],i);case oh:if(t.length)return c6(t.props,function(o){switch(u6(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return no([$o(t,{props:[Fe(o,/:(read-\w+)/,":"+Ol+"$1")]})],i);case"::placeholder":return no([$o(t,{props:[Fe(o,/:(plac\w+)/,":"+Ae+"input-$1")]}),$o(t,{props:[Fe(o,/:(plac\w+)/,":"+Ol+"$1")]}),$o(t,{props:[Fe(o,/:(plac\w+)/,yt+"input-$1")]})],i)}return""})}},T6=[P6],k6=function(t){var n=t.key;if(process.env.NODE_ENV!=="production"&&!n)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
57
+ `+r+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!o}if(this.isSpeedy){var a=t6(i);try{a.insertRule(r,a.cssRules.length)}catch(s){process.env.NODE_ENV!=="production"&&!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(r)&&console.error('There was a problem inserting the following rule: "'+r+'"',s)}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0,process.env.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),yt="-ms-",Ol="-moz-",Ae="-webkit-",ih="comm",oh="rule",ah="decl",i6="@import",Rv="@keyframes",o6="@layer",a6=Math.abs,Su=String.fromCharCode,s6=Object.assign;function l6(e,t){return mt(e,0)^45?(((t<<2^mt(e,0))<<2^mt(e,1))<<2^mt(e,2))<<2^mt(e,3):0}function Av(e){return e.trim()}function u6(e,t){return(e=t.exec(e))?e[0]:e}function Fe(e,t,n){return e.replace(t,n)}function _d(e,t){return e.indexOf(t)}function mt(e,t){return e.charCodeAt(t)|0}function Da(e,t,n){return e.slice(t,n)}function On(e){return e.length}function sh(e){return e.length}function Ds(e,t){return t.push(e),e}function c6(e,t){return e.map(t).join("")}var Eu=1,go=1,Fv=0,Vt=0,it=0,Eo="";function Iu(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:Eu,column:go,length:a,return:""}}function $o(e,t){return s6(Iu("",null,null,"",null,null,0),e,{length:-e.length},t)}function d6(){return it}function f6(){return it=Vt>0?mt(Eo,--Vt):0,go--,it===10&&(go=1,Eu--),it}function Jt(){return it=Vt<Fv?mt(Eo,Vt++):0,go++,it===10&&(go=1,Eu++),it}function jn(){return mt(Eo,Vt)}function il(){return Vt}function ts(e,t){return Da(Eo,e,t)}function Sa(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Pv(e){return Eu=go=1,Fv=On(Eo=e),Vt=0,[]}function Tv(e){return Eo="",e}function ol(e){return Av(ts(Vt-1,$d(e===91?e+2:e===40?e+1:e)))}function h6(e){for(;(it=jn())&&it<33;)Jt();return Sa(e)>2||Sa(it)>3?"":" "}function g6(e,t){for(;--t&&Jt()&&!(it<48||it>102||it>57&&it<65||it>70&&it<97););return ts(e,il()+(t<6&&jn()==32&&Jt()==32))}function $d(e){for(;Jt();)switch(it){case e:return Vt;case 34:case 39:e!==34&&e!==39&&$d(it);break;case 40:e===41&&$d(e);break;case 92:Jt();break}return Vt}function m6(e,t){for(;Jt()&&e+it!==57;)if(e+it===84&&jn()===47)break;return"/*"+ts(t,Vt-1)+"*"+Su(e===47?e:Jt())}function p6(e){for(;!Sa(jn());)Jt();return ts(e,Vt)}function b6(e){return Tv(al("",null,null,null,[""],e=Pv(e),0,[0],e))}function al(e,t,n,r,i,o,a,s,l){for(var u=0,c=0,d=a,h=0,f=0,g=0,m=1,b=1,y=1,v=0,x="",C=i,D=o,I=r,T=x;b;)switch(g=v,v=Jt()){case 40:if(g!=108&&mt(T,d-1)==58){_d(T+=Fe(ol(v),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:T+=ol(v);break;case 9:case 10:case 13:case 32:T+=h6(g);break;case 92:T+=g6(il()-1,7);continue;case 47:switch(jn()){case 42:case 47:Ds(v6(m6(Jt(),il()),t,n),l);break;default:T+="/"}break;case 123*m:s[u++]=On(T)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:b=0;case 59+c:y==-1&&(T=Fe(T,/\f/g,"")),f>0&&On(T)-d&&Ds(f>32?bm(T+";",r,n,d-1):bm(Fe(T," ","")+";",r,n,d-2),l);break;case 59:T+=";";default:if(Ds(I=pm(T,t,n,u,c,i,s,x,C=[],D=[],d),o),v===123)if(c===0)al(T,t,I,I,C,o,d,s,D);else switch(h===99&&mt(T,3)===110?100:h){case 100:case 108:case 109:case 115:al(e,I,I,r&&Ds(pm(e,I,I,0,0,i,s,x,i,C=[],d),D),i,D,d,s,r?C:D);break;default:al(T,I,I,I,[""],D,0,s,D)}}u=c=f=0,m=y=1,x=T="",d=a;break;case 58:d=1+On(T),f=g;default:if(m<1){if(v==123)--m;else if(v==125&&m++==0&&f6()==125)continue}switch(T+=Su(v),v*m){case 38:y=c>0?1:(T+="\f",-1);break;case 44:s[u++]=(On(T)-1)*y,y=1;break;case 64:jn()===45&&(T+=ol(Jt())),h=jn(),c=d=On(x=T+=p6(il())),v++;break;case 45:g===45&&On(T)==2&&(m=0)}}return o}function pm(e,t,n,r,i,o,a,s,l,u,c){for(var d=i-1,h=i===0?o:[""],f=sh(h),g=0,m=0,b=0;g<r;++g)for(var y=0,v=Da(e,d+1,d=a6(m=a[g])),x=e;y<f;++y)(x=Av(m>0?h[y]+" "+v:Fe(v,/&\f/g,h[y])))&&(l[b++]=x);return Iu(e,t,n,i===0?oh:s,l,u,c)}function v6(e,t,n){return Iu(e,t,n,ih,Su(d6()),Da(e,2,-2),0)}function bm(e,t,n,r){return Iu(e,t,n,ah,Da(e,0,r),Da(e,r+1,-1),r)}function no(e,t){for(var n="",r=sh(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function y6(e,t,n,r){switch(e.type){case o6:if(e.children.length)break;case i6:case ah:return e.return=e.return||e.value;case ih:return"";case Rv:return e.return=e.value+"{"+no(e.children,r)+"}";case oh:e.value=e.props.join(",")}return On(n=no(e.children,r))?e.return=e.value+"{"+n+"}":""}function x6(e){var t=sh(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}function C6(e){return function(t){t.root||(t=t.return)&&e(t)}}var w6=function(t,n,r){for(var i=0,o=0;i=o,o=jn(),i===38&&o===12&&(n[r]=1),!Sa(o);)Jt();return ts(t,Vt)},D6=function(t,n){var r=-1,i=44;do switch(Sa(i)){case 0:i===38&&jn()===12&&(n[r]=1),t[r]+=w6(Vt-1,n,r);break;case 2:t[r]+=ol(i);break;case 4:if(i===44){t[++r]=jn()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Su(i)}while(i=Jt());return t},S6=function(t,n){return Tv(D6(Pv(t),n))},vm=new WeakMap,E6=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!vm.get(r))&&!i){vm.set(t,!0);for(var o=[],a=S6(n,o),s=r.props,l=0,u=0;l<a.length;l++)for(var c=0;c<s.length;c++,u++)t.props[u]=o[l]?a[l].replace(/&\f/g,s[c]):s[c]+" "+a[l]}}},I6=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}},_6="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",$6=function(t){return t.type==="comm"&&t.children.indexOf(_6)>-1},R6=function(t){return function(n,r,i){if(!(n.type!=="rule"||t.compat)){var o=n.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var a=!!n.parent,s=a?n.parent.children:i,l=s.length-1;l>=0;l--){var u=s[l];if(u.line<n.line)break;if(u.column<n.column){if($6(u))return;break}}o.forEach(function(c){console.error('The pseudo class "'+c+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+c.split("-child")[0]+'-of-type".')})}}}},kv=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},A6=function(t,n){for(var r=t-1;r>=0;r--)if(!kv(n[r]))return!0;return!1},ym=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},F6=function(t,n,r){kv(t)&&(t.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),ym(t)):A6(n,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),ym(t)))};function Mv(e,t){switch(l6(e,t)){case 5103:return Ae+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ae+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ae+e+Ol+e+yt+e+e;case 6828:case 4268:return Ae+e+yt+e+e;case 6165:return Ae+e+yt+"flex-"+e+e;case 5187:return Ae+e+Fe(e,/(\w+).+(:[^]+)/,Ae+"box-$1$2"+yt+"flex-$1$2")+e;case 5443:return Ae+e+yt+"flex-item-"+Fe(e,/flex-|-self/,"")+e;case 4675:return Ae+e+yt+"flex-line-pack"+Fe(e,/align-content|flex-|-self/,"")+e;case 5548:return Ae+e+yt+Fe(e,"shrink","negative")+e;case 5292:return Ae+e+yt+Fe(e,"basis","preferred-size")+e;case 6060:return Ae+"box-"+Fe(e,"-grow","")+Ae+e+yt+Fe(e,"grow","positive")+e;case 4554:return Ae+Fe(e,/([^-])(transform)/g,"$1"+Ae+"$2")+e;case 6187:return Fe(Fe(Fe(e,/(zoom-|grab)/,Ae+"$1"),/(image-set)/,Ae+"$1"),e,"")+e;case 5495:case 3959:return Fe(e,/(image-set\([^]*)/,Ae+"$1$`$1");case 4968:return Fe(Fe(e,/(.+:)(flex-)?(.*)/,Ae+"box-pack:$3"+yt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ae+e+e;case 4095:case 3583:case 4068:case 2532:return Fe(e,/(.+)-inline(.+)/,Ae+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(On(e)-1-t>6)switch(mt(e,t+1)){case 109:if(mt(e,t+4)!==45)break;case 102:return Fe(e,/(.+:)(.+)-([^]+)/,"$1"+Ae+"$2-$3$1"+Ol+(mt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~_d(e,"stretch")?Mv(Fe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(mt(e,t+1)!==115)break;case 6444:switch(mt(e,On(e)-3-(~_d(e,"!important")&&10))){case 107:return Fe(e,":",":"+Ae)+e;case 101:return Fe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ae+(mt(e,14)===45?"inline-":"")+"box$3$1"+Ae+"$2$3$1"+yt+"$2box$3")+e}break;case 5936:switch(mt(e,t+11)){case 114:return Ae+e+yt+Fe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ae+e+yt+Fe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ae+e+yt+Fe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ae+e+yt+e+e}return e}var P6=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case ah:t.return=Mv(t.value,t.length);break;case Rv:return no([$o(t,{value:Fe(t.value,"@","@"+Ae)})],i);case oh:if(t.length)return c6(t.props,function(o){switch(u6(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return no([$o(t,{props:[Fe(o,/:(read-\w+)/,":"+Ol+"$1")]})],i);case"::placeholder":return no([$o(t,{props:[Fe(o,/:(plac\w+)/,":"+Ae+"input-$1")]}),$o(t,{props:[Fe(o,/:(plac\w+)/,":"+Ol+"$1")]}),$o(t,{props:[Fe(o,/:(plac\w+)/,yt+"input-$1")]})],i)}return""})}},T6=[P6],k6=function(t){var n=t.key;if(process.env.NODE_ENV!=="production"&&!n)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
58
58
  If multiple caches share the same key they might "fight" for each other's style elements.`);if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var b=m.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var i=t.stylisPlugins||T6;if(process.env.NODE_ENV!=="production"&&/[^a-z-]/.test(n))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+n+'" was passed');var o={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var b=m.getAttribute("data-emotion").split(" "),y=1;y<b.length;y++)o[b[y]]=!0;s.push(m)});var l,u=[E6,I6];process.env.NODE_ENV!=="production"&&u.push(R6({get compat(){return g.compat}}),F6);{var c,d=[y6,process.env.NODE_ENV!=="production"?function(m){m.root||(m.return?c.insert(m.return):m.value&&m.type!==ih&&c.insert(m.value+"{}"))}:C6(function(m){c.insert(m)})],h=x6(u.concat(i,d)),f=function(b){return no(b6(b),h)};l=function(b,y,v,x){c=v,process.env.NODE_ENV!=="production"&&y.map!==void 0&&(c={insert:function(D){v.insert(D+y.map)}}),f(b?b+"{"+y.styles+"}":y.styles),x&&(g.inserted[y.name]=!0)}}var g={key:n,sheet:new r6({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:l};return g.sheet.hydrate(s),g},Rd={exports:{}},Te={};/** @license React v16.13.1
59
59
  * react-is.production.min.js
60
60
  *
@@ -69,19 +69,19 @@ If multiple caches share the same key they might "fight" for each other's style
69
69
  *
70
70
  * This source code is licensed under the MIT license found in the
71
71
  * LICENSE file in the root directory of this source tree.
72
- */var Cm;function B6(){return Cm||(Cm=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function x(X){return typeof X=="string"||typeof X=="function"||X===r||X===u||X===o||X===i||X===d||X===h||typeof X=="object"&&X!==null&&(X.$$typeof===g||X.$$typeof===f||X.$$typeof===a||X.$$typeof===s||X.$$typeof===c||X.$$typeof===b||X.$$typeof===y||X.$$typeof===v||X.$$typeof===m)}function C(X){if(typeof X=="object"&&X!==null){var ue=X.$$typeof;switch(ue){case t:var fe=X.type;switch(fe){case l:case u:case r:case o:case i:case d:return fe;default:var he=fe&&fe.$$typeof;switch(he){case s:case c:case g:case f:case a:return he;default:return ue}}case n:return ue}}}var D=l,I=u,T=s,p=a,S=t,$=c,_=r,A=g,k=f,R=n,M=o,P=i,F=d,B=!1;function N(X){return B||(B=!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.")),O(X)||C(X)===l}function O(X){return C(X)===u}function L(X){return C(X)===s}function W(X){return C(X)===a}function Z(X){return typeof X=="object"&&X!==null&&X.$$typeof===t}function H(X){return C(X)===c}function j(X){return C(X)===r}function V(X){return C(X)===g}function z(X){return C(X)===f}function Y(X){return C(X)===n}function K(X){return C(X)===o}function Q(X){return C(X)===i}function ee(X){return C(X)===d}ke.AsyncMode=D,ke.ConcurrentMode=I,ke.ContextConsumer=T,ke.ContextProvider=p,ke.Element=S,ke.ForwardRef=$,ke.Fragment=_,ke.Lazy=A,ke.Memo=k,ke.Portal=R,ke.Profiler=M,ke.StrictMode=P,ke.Suspense=F,ke.isAsyncMode=N,ke.isConcurrentMode=O,ke.isContextConsumer=L,ke.isContextProvider=W,ke.isElement=Z,ke.isForwardRef=H,ke.isFragment=j,ke.isLazy=V,ke.isMemo=z,ke.isPortal=Y,ke.isProfiler=K,ke.isStrictMode=Q,ke.isSuspense=ee,ke.isValidElementType=x,ke.typeOf=C}()),ke}process.env.NODE_ENV==="production"?Rd.exports=M6():Rd.exports=B6();var lh=Rd.exports,Bv=lh,O6={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},N6={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ov={};Ov[Bv.ForwardRef]=O6;Ov[Bv.Memo]=N6;var V6=!0;function Nv(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var uh=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||V6===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},ch=function(t,n,r){uh(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function L6(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var j6={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function H6(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var wm=`You have illegal escape sequence in your template literal, most likely inside content's property value.
72
+ */var Cm;function B6(){return Cm||(Cm=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function x(X){return typeof X=="string"||typeof X=="function"||X===r||X===u||X===o||X===i||X===d||X===h||typeof X=="object"&&X!==null&&(X.$$typeof===g||X.$$typeof===f||X.$$typeof===a||X.$$typeof===s||X.$$typeof===c||X.$$typeof===b||X.$$typeof===y||X.$$typeof===v||X.$$typeof===m)}function C(X){if(typeof X=="object"&&X!==null){var ue=X.$$typeof;switch(ue){case t:var fe=X.type;switch(fe){case l:case u:case r:case o:case i:case d:return fe;default:var he=fe&&fe.$$typeof;switch(he){case s:case c:case g:case f:case a:return he;default:return ue}}case n:return ue}}}var D=l,I=u,T=s,p=a,S=t,$=c,_=r,A=g,k=f,R=n,M=o,P=i,F=d,B=!1;function N(X){return B||(B=!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.")),O(X)||C(X)===l}function O(X){return C(X)===u}function L(X){return C(X)===s}function W(X){return C(X)===a}function Z(X){return typeof X=="object"&&X!==null&&X.$$typeof===t}function j(X){return C(X)===c}function H(X){return C(X)===r}function V(X){return C(X)===g}function z(X){return C(X)===f}function Y(X){return C(X)===n}function K(X){return C(X)===o}function Q(X){return C(X)===i}function ee(X){return C(X)===d}ke.AsyncMode=D,ke.ConcurrentMode=I,ke.ContextConsumer=T,ke.ContextProvider=p,ke.Element=S,ke.ForwardRef=$,ke.Fragment=_,ke.Lazy=A,ke.Memo=k,ke.Portal=R,ke.Profiler=M,ke.StrictMode=P,ke.Suspense=F,ke.isAsyncMode=N,ke.isConcurrentMode=O,ke.isContextConsumer=L,ke.isContextProvider=W,ke.isElement=Z,ke.isForwardRef=j,ke.isFragment=H,ke.isLazy=V,ke.isMemo=z,ke.isPortal=Y,ke.isProfiler=K,ke.isStrictMode=Q,ke.isSuspense=ee,ke.isValidElementType=x,ke.typeOf=C}()),ke}process.env.NODE_ENV==="production"?Rd.exports=M6():Rd.exports=B6();var lh=Rd.exports,Bv=lh,O6={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},N6={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ov={};Ov[Bv.ForwardRef]=O6;Ov[Bv.Memo]=N6;var V6=!0;function Nv(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var uh=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||V6===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},ch=function(t,n,r){uh(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function L6(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var H6={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function j6(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var wm=`You have illegal escape sequence in your template literal, most likely inside content's property value.
73
73
  Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
74
74
  You can read more about this here:
75
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,W6="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",z6=/[A-Z]|^ms/g,Vv=/_EMO_([^_]+?)_([^]*?)_EMO_/g,dh=function(t){return t.charCodeAt(1)===45},Dm=function(t){return t!=null&&typeof t!="boolean"},uc=H6(function(e){return dh(e)?e:e.replace(z6,"-$&").toLowerCase()}),Nl=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Vv,function(r,i,o){return vn={name:i,styles:o,next:vn},i})}return j6[t]!==1&&!dh(t)&&typeof n=="number"&&n!==0?n+"px":n};if(process.env.NODE_ENV!=="production"){var G6=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,Z6=["normal","none","initial","inherit","unset"],X6=Nl,Y6=/^-ms-/,U6=/-(.)/g,Sm={};Nl=function(t,n){if(t==="content"&&(typeof n!="string"||Z6.indexOf(n)===-1&&!G6.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+n+"\"'`");var r=X6(t,n);return r!==""&&!dh(t)&&t.indexOf("-")!==-1&&Sm[t]===void 0&&(Sm[t]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+t.replace(Y6,"ms-").replace(U6,function(i,o){return o.toUpperCase()})+"?")),r}}var Lv="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Ea(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0){if(process.env.NODE_ENV!=="production"&&n.toString()==="NO_COMPONENT_SELECTOR")throw new Error(Lv);return n}switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return vn={name:n.name,styles:n.styles,next:vn},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)vn={name:r.name,styles:r.styles,next:vn},r=r.next;var i=n.styles+";";return process.env.NODE_ENV!=="production"&&n.map!==void 0&&(i+=n.map),i}return J6(e,t,n)}case"function":{if(e!==void 0){var o=vn,a=n(e);return vn=o,Ea(e,t,a)}else process.env.NODE_ENV!=="production"&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":if(process.env.NODE_ENV!=="production"){var s=[],l=n.replace(Vv,function(c,d,h){var f="animation"+s.length;return s.push("const "+f+" = keyframes`"+h.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+f+"}"});s.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(s,["`"+l+"`"]).join(`
75
+ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,W6="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",z6=/[A-Z]|^ms/g,Vv=/_EMO_([^_]+?)_([^]*?)_EMO_/g,dh=function(t){return t.charCodeAt(1)===45},Dm=function(t){return t!=null&&typeof t!="boolean"},uc=j6(function(e){return dh(e)?e:e.replace(z6,"-$&").toLowerCase()}),Nl=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Vv,function(r,i,o){return vn={name:i,styles:o,next:vn},i})}return H6[t]!==1&&!dh(t)&&typeof n=="number"&&n!==0?n+"px":n};if(process.env.NODE_ENV!=="production"){var G6=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,Z6=["normal","none","initial","inherit","unset"],X6=Nl,Y6=/^-ms-/,U6=/-(.)/g,Sm={};Nl=function(t,n){if(t==="content"&&(typeof n!="string"||Z6.indexOf(n)===-1&&!G6.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+n+"\"'`");var r=X6(t,n);return r!==""&&!dh(t)&&t.indexOf("-")!==-1&&Sm[t]===void 0&&(Sm[t]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+t.replace(Y6,"ms-").replace(U6,function(i,o){return o.toUpperCase()})+"?")),r}}var Lv="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Ea(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0){if(process.env.NODE_ENV!=="production"&&n.toString()==="NO_COMPONENT_SELECTOR")throw new Error(Lv);return n}switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return vn={name:n.name,styles:n.styles,next:vn},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)vn={name:r.name,styles:r.styles,next:vn},r=r.next;var i=n.styles+";";return process.env.NODE_ENV!=="production"&&n.map!==void 0&&(i+=n.map),i}return J6(e,t,n)}case"function":{if(e!==void 0){var o=vn,a=n(e);return vn=o,Ea(e,t,a)}else process.env.NODE_ENV!=="production"&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":if(process.env.NODE_ENV!=="production"){var s=[],l=n.replace(Vv,function(c,d,h){var f="animation"+s.length;return s.push("const "+f+" = keyframes`"+h.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+f+"}"});s.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(s,["`"+l+"`"]).join(`
76
76
  `)+`
77
77
 
78
78
  You should wrap it with \`css\` like this:
79
79
 
80
- `+("css`"+l+"`"))}break}if(t==null)return n;var u=t[n];return u!==void 0?u:n}function J6(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Ea(e,t,n[i])+";";else for(var o in n){var a=n[o];if(typeof a!="object")t!=null&&t[a]!==void 0?r+=o+"{"+t[a]+"}":Dm(a)&&(r+=uc(o)+":"+Nl(o,a)+";");else{if(o==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(Lv);if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var s=0;s<a.length;s++)Dm(a[s])&&(r+=uc(o)+":"+Nl(o,a[s])+";");else{var l=Ea(e,t,a);switch(o){case"animation":case"animationName":{r+=uc(o)+":"+l+";";break}default:process.env.NODE_ENV!=="production"&&o==="undefined"&&console.error(W6),r+=o+"{"+l+"}"}}}}return r}var Em=/label:\s*([^\s;\n{]+)\s*(;|$)/g,jv;process.env.NODE_ENV!=="production"&&(jv=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var vn,Ia=function(t,n,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var i=!0,o="";vn=void 0;var a=t[0];a==null||a.raw===void 0?(i=!1,o+=Ea(r,n,a)):(process.env.NODE_ENV!=="production"&&a[0]===void 0&&console.error(wm),o+=a[0]);for(var s=1;s<t.length;s++)o+=Ea(r,n,t[s]),i&&(process.env.NODE_ENV!=="production"&&a[s]===void 0&&console.error(wm),o+=a[s]);var l;process.env.NODE_ENV!=="production"&&(o=o.replace(jv,function(h){return l=h,""})),Em.lastIndex=0;for(var u="",c;(c=Em.exec(o))!==null;)u+="-"+c[1];var d=L6(o)+u;return process.env.NODE_ENV!=="production"?{name:d,styles:o,map:l,next:vn,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:d,styles:o,next:vn}},K6=function(t){return t()},Hv=G.useInsertionEffect?G.useInsertionEffect:!1,Wv=Hv||K6,Im=Hv||G.useLayoutEffect,fh={}.hasOwnProperty,hh=G.createContext(typeof HTMLElement<"u"?k6({key:"css"}):null);process.env.NODE_ENV!=="production"&&(hh.displayName="EmotionCacheContext");hh.Provider;var gh=function(t){return w.forwardRef(function(n,r){var i=w.useContext(hh);return t(n,i,r)})},_u=G.createContext({});process.env.NODE_ENV!=="production"&&(_u.displayName="EmotionThemeContext");var _m=function(t){var n=t.split(".");return n[n.length-1]},q6=function(t){var n=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(t);if(n||(n=/^([A-Za-z0-9$.]+)@/.exec(t),n))return _m(n[1])},Q6=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),e9=function(t){return t.replace(/\$/g,"-")},t9=function(t){if(t)for(var n=t.split(`
81
- `),r=0;r<n.length;r++){var i=q6(n[r]);if(i){if(Q6.has(i))break;if(/^[A-Z]/.test(i))return e9(i)}}},Ad="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Fd="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",n9=function(t,n){if(process.env.NODE_ENV!=="production"&&typeof n.css=="string"&&n.css.indexOf(":")!==-1)throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+n.css+"`");var r={};for(var i in n)fh.call(n,i)&&(r[i]=n[i]);if(r[Ad]=t,process.env.NODE_ENV!=="production"&&n.css&&(typeof n.css!="object"||typeof n.css.name!="string"||n.css.name.indexOf("-")===-1)){var o=t9(new Error().stack);o&&(r[Fd]=o)}return r},r9=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return uh(n,r,i),Wv(function(){return ch(n,r,i)}),null},zv=gh(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[Ad],o=[r],a="";typeof e.className=="string"?a=Nv(t.registered,o,e.className):e.className!=null&&(a=e.className+" ");var s=Ia(o,void 0,G.useContext(_u));if(process.env.NODE_ENV!=="production"&&s.name.indexOf("-")===-1){var l=e[Fd];l&&(s=Ia([s,"label:"+l+";"]))}a+=t.key+"-"+s.name;var u={};for(var c in e)fh.call(e,c)&&c!=="css"&&c!==Ad&&(process.env.NODE_ENV==="production"||c!==Fd)&&(u[c]=e[c]);return u.ref=n,u.className=a,G.createElement(G.Fragment,null,G.createElement(r9,{cache:t,serialized:s,isStringTag:typeof i=="string"}),G.createElement(i,u))});process.env.NODE_ENV!=="production"&&(zv.displayName="EmotionCssPropInternal");var i9=zv,o9={version:"11.11.4"},le=function(t,n){var r=arguments;if(n==null||!fh.call(n,"css"))return G.createElement.apply(void 0,r);var i=r.length,o=new Array(i);o[0]=i9,o[1]=n9(t,n);for(var a=2;a<i;a++)o[a]=r[a];return G.createElement.apply(null,o)},$m=!1,a9=gh(function(e,t){process.env.NODE_ENV!=="production"&&!$m&&(e.className||e.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),$m=!0);var n=e.styles,r=Ia([n],void 0,G.useContext(_u)),i=G.useRef();return Im(function(){var o=t.key+"-global",a=new t.sheet.constructor({key:o,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,l=document.querySelector('style[data-emotion="'+o+" "+r.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),l!==null&&(s=!0,l.setAttribute("data-emotion",o),a.hydrate([l])),i.current=[a,s],function(){a.flush()}},[t]),Im(function(){var o=i.current,a=o[0],s=o[1];if(s){o[1]=!1;return}if(r.next!==void 0&&ch(t,r.next,!0),a.tags.length){var l=a.tags[a.tags.length-1].nextElementSibling;a.before=l,a.flush()}t.insert("",r,a,!1)},[t,r.name]),null});process.env.NODE_ENV!=="production"&&(a9.displayName="EmotionGlobal");function mh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ia(t)}var s9=function(){var t=mh.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},l9=function e(t){for(var n=t.length,r=0,i="";r<n;r++){var o=t[r];if(o!=null){var a=void 0;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))a=e(o);else{process.env.NODE_ENV!=="production"&&o.styles!==void 0&&o.name!==void 0&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),a="";for(var s in o)o[s]&&s&&(a&&(a+=" "),a+=s)}break}default:a=o}a&&(i&&(i+=" "),i+=a)}}return i};function u9(e,t,n){var r=[],i=Nv(e,r,n);return r.length<2?n:i+t(r)}var c9=function(t){var n=t.cache,r=t.serializedArr;return Wv(function(){for(var i=0;i<r.length;i++)ch(n,r[i],!1)}),null},d9=gh(function(e,t){var n=!1,r=[],i=function(){if(n&&process.env.NODE_ENV!=="production")throw new Error("css can only be used during render");for(var u=arguments.length,c=new Array(u),d=0;d<u;d++)c[d]=arguments[d];var h=Ia(c,t.registered);return r.push(h),uh(t,h,!1),t.key+"-"+h.name},o=function(){if(n&&process.env.NODE_ENV!=="production")throw new Error("cx can only be used during render");for(var u=arguments.length,c=new Array(u),d=0;d<u;d++)c[d]=arguments[d];return u9(t.registered,i,l9(c))},a={css:i,cx:o,theme:G.useContext(_u)},s=e.children(a);return n=!0,G.createElement(G.Fragment,null,G.createElement(c9,{cache:t,serializedArr:r}),s)});process.env.NODE_ENV!=="production"&&(d9.displayName="EmotionClassNames");if(process.env.NODE_ENV!=="production"){var Rm=!0,f9=typeof jest<"u"||typeof vi<"u";if(Rm&&!f9){var Am=typeof globalThis<"u"?globalThis:Rm?window:global,Fm="__EMOTION_REACT_"+o9.version.split(".")[0]+"__";Am[Fm]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),Am[Fm]=!0}}function h9(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Pd=w.useLayoutEffect,g9=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Vl=function(){};function m9(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function p9(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&o.push("".concat(m9(e,a)));return o.filter(function(s){return s}).map(function(s){return String(s).trim()}).join(" ")}var Pm=function(t){return E9(t)?t.filter(Boolean):wi(t)==="object"&&t!==null?[t]:[]},Gv=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var n=vr(t,g9);return ce({},n)},Qe=function(t,n,r){var i=t.cx,o=t.getStyles,a=t.getClassNames,s=t.className;return{css:o(n,t),className:i(r??{},a(n,t),s)}};function $u(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function b9(e){return $u(e)?window.innerHeight:e.clientHeight}function Zv(e){return $u(e)?window.pageYOffset:e.scrollTop}function Ll(e,t){if($u(e)){window.scrollTo(0,t);return}e.scrollTop=t}function v9(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}function y9(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function Ss(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Vl,i=Zv(e),o=t-i,a=10,s=0;function l(){s+=a;var u=y9(s,i,o,n);Ll(e,u),s<n?window.requestAnimationFrame(l):r(e)}l()}function Tm(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?Ll(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&Ll(e,Math.max(t.offsetTop-i,0))}function x9(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function km(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function C9(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var Xv=!1,w9={get passive(){return Xv=!0}},Es=typeof window<"u"?window:{};Es.addEventListener&&Es.removeEventListener&&(Es.addEventListener("p",Vl,w9),Es.removeEventListener("p",Vl,!1));var D9=Xv;function S9(e){return e!=null}function E9(e){return Array.isArray(e)}function Is(e,t,n){return e?t:n}var I9=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];var o=Object.entries(t).filter(function(a){var s=hr(a,1),l=s[0];return!r.includes(l)});return o.reduce(function(a,s){var l=hr(s,2),u=l[0],c=l[1];return a[u]=c,a},{})},_9=["children","innerProps"],$9=["children","innerProps"];function R9(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,o=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,l=v9(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c=l.getBoundingClientRect(),d=c.height,h=n.getBoundingClientRect(),f=h.bottom,g=h.height,m=h.top,b=n.offsetParent.getBoundingClientRect(),y=b.top,v=a?window.innerHeight:b9(l),x=Zv(l),C=parseInt(getComputedStyle(n).marginBottom,10),D=parseInt(getComputedStyle(n).marginTop,10),I=y-D,T=v-m,p=I+x,S=d-x-m,$=f-v+x+C,_=x+m-D,A=160;switch(i){case"auto":case"bottom":if(T>=g)return{placement:"bottom",maxHeight:t};if(S>=g&&!a)return o&&Ss(l,$,A),{placement:"bottom",maxHeight:t};if(!a&&S>=r||a&&T>=r){o&&Ss(l,$,A);var k=a?T-C:S-C;return{placement:"bottom",maxHeight:k}}if(i==="auto"||a){var R=t,M=a?I:p;return M>=r&&(R=Math.min(M-C-s,t)),{placement:"top",maxHeight:R}}if(i==="bottom")return o&&Ll(l,$),{placement:"bottom",maxHeight:t};break;case"top":if(I>=g)return{placement:"top",maxHeight:t};if(p>=g&&!a)return o&&Ss(l,_,A),{placement:"top",maxHeight:t};if(!a&&p>=r||a&&I>=r){var P=t;return(!a&&p>=r||a&&I>=r)&&(P=a?I-D:p-D),o&&Ss(l,_,A),{placement:"top",maxHeight:P}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return u}function A9(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var Yv=function(t){return t==="auto"?"bottom":t},F9=function(t,n){var r,i=t.placement,o=t.theme,a=o.borderRadius,s=o.spacing,l=o.colors;return ce((r={label:"menu"},Lo(r,A9(i),"100%"),Lo(r,"position","absolute"),Lo(r,"width","100%"),Lo(r,"zIndex",1),r),n?{}:{backgroundColor:l.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},Uv=w.createContext(null),P9=function(t){var n=t.children,r=t.minMenuHeight,i=t.maxMenuHeight,o=t.menuPlacement,a=t.menuPosition,s=t.menuShouldScrollIntoView,l=t.theme,u=w.useContext(Uv)||{},c=u.setPortalPlacement,d=w.useRef(null),h=w.useState(i),f=hr(h,2),g=f[0],m=f[1],b=w.useState(null),y=hr(b,2),v=y[0],x=y[1],C=l.spacing.controlHeight;return Pd(function(){var D=d.current;if(D){var I=a==="fixed",T=s&&!I,p=R9({maxHeight:i,menuEl:D,minHeight:r,placement:o,shouldScroll:T,isFixedPosition:I,controlHeight:C});m(p.maxHeight),x(p.placement),c==null||c(p.placement)}},[i,o,a,s,r,c,C]),n({ref:d,placerProps:ce(ce({},t),{},{placement:v||Yv(o),maxHeight:g})})},T9=function(t){var n=t.children,r=t.innerRef,i=t.innerProps;return le("div",de({},Qe(t,"menu",{menu:!0}),{ref:r},i),n)},k9=T9,M9=function(t,n){var r=t.maxHeight,i=t.theme.spacing.baseUnit;return ce({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:i,paddingTop:i})},B9=function(t){var n=t.children,r=t.innerProps,i=t.innerRef,o=t.isMulti;return le("div",de({},Qe(t,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:i},r),n)},Jv=function(t,n){var r=t.theme,i=r.spacing.baseUnit,o=r.colors;return ce({textAlign:"center"},n?{}:{color:o.neutral40,padding:"".concat(i*2,"px ").concat(i*3,"px")})},O9=Jv,N9=Jv,V9=function(t){var n=t.children,r=n===void 0?"No options":n,i=t.innerProps,o=vr(t,_9);return le("div",de({},Qe(ce(ce({},o),{},{children:r,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),r)},L9=function(t){var n=t.children,r=n===void 0?"Loading...":n,i=t.innerProps,o=vr(t,$9);return le("div",de({},Qe(ce(ce({},o),{},{children:r,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),r)},j9=function(t){var n=t.rect,r=t.offset,i=t.position;return{left:n.left,position:i,top:r,width:n.width,zIndex:1}},H9=function(t){var n=t.appendTo,r=t.children,i=t.controlElement,o=t.innerProps,a=t.menuPlacement,s=t.menuPosition,l=w.useRef(null),u=w.useRef(null),c=w.useState(Yv(a)),d=hr(c,2),h=d[0],f=d[1],g=w.useMemo(function(){return{setPortalPlacement:f}},[]),m=w.useState(null),b=hr(m,2),y=b[0],v=b[1],x=w.useCallback(function(){if(i){var T=x9(i),p=s==="fixed"?0:window.pageYOffset,S=T[h]+p;(S!==(y==null?void 0:y.offset)||T.left!==(y==null?void 0:y.rect.left)||T.width!==(y==null?void 0:y.rect.width))&&v({offset:S,rect:T})}},[i,s,h,y==null?void 0:y.offset,y==null?void 0:y.rect.left,y==null?void 0:y.rect.width]);Pd(function(){x()},[x]);var C=w.useCallback(function(){typeof u.current=="function"&&(u.current(),u.current=null),i&&l.current&&(u.current=a1(i,l.current,x,{elementResize:"ResizeObserver"in window}))},[i,x]);Pd(function(){C()},[C]);var D=w.useCallback(function(T){l.current=T,C()},[C]);if(!n&&s!=="fixed"||!y)return null;var I=le("div",de({ref:D},Qe(ce(ce({},t),{},{offset:y.offset,position:s,rect:y.rect}),"menuPortal",{"menu-portal":!0}),o),r);return le(Uv.Provider,{value:g},n?Xa.createPortal(I,n):I)},W9=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},z9=function(t){var n=t.children,r=t.innerProps,i=t.isDisabled,o=t.isRtl;return le("div",de({},Qe(t,"container",{"--is-disabled":i,"--is-rtl":o}),r),n)},G9=function(t,n){var r=t.theme.spacing,i=t.isMulti,o=t.hasValue,a=t.selectProps.controlShouldRenderValue;return ce({alignItems:"center",display:i&&o&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},Z9=function(t){var n=t.children,r=t.innerProps,i=t.isMulti,o=t.hasValue;return le("div",de({},Qe(t,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":o}),r),n)},X9=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},Y9=function(t){var n=t.children,r=t.innerProps;return le("div",de({},Qe(t,"indicatorsContainer",{indicators:!0}),r),n)},Mm,U9=["size"],J9=["innerProps","isRtl","size"];function K9(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var q9=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1oaWRkZW49XCJ0cnVlXCJcbiAgICBmb2N1c2FibGU9XCJmYWxzZVwiXG4gICAgY3NzPXt7XG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIGZpbGw6ICdjdXJyZW50Q29sb3InLFxuICAgICAgbGluZUhlaWdodDogMSxcbiAgICAgIHN0cm9rZTogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBzdHJva2VXaWR0aDogMCxcbiAgICB9fVxuICAgIHsuLi5wcm9wc31cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIENyb3NzSWNvblByb3BzID0gSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZT86IG51bWJlciB9O1xuZXhwb3J0IGNvbnN0IENyb3NzSWNvbiA9IChwcm9wczogQ3Jvc3NJY29uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCB0eXBlIERvd25DaGV2cm9uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgRG93bkNoZXZyb24gPSAocHJvcHM6IERvd25DaGV2cm9uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTQuNTE2IDcuNTQ4YzAuNDM2LTAuNDQ2IDEuMDQzLTAuNDgxIDEuNTc2IDBsMy45MDggMy43NDcgMy45MDgtMy43NDdjMC41MzMtMC40ODEgMS4xNDEtMC40NDYgMS41NzQgMCAwLjQzNiAwLjQ0NSAwLjQwOCAxLjE5NyAwIDEuNjE1LTAuNDA2IDAuNDE4LTQuNjk1IDQuNTAyLTQuNjk1IDQuNTAyLTAuMjE3IDAuMjIzLTAuNTAyIDAuMzM1LTAuNzg3IDAuMzM1cy0wLjU3LTAuMTEyLTAuNzg5LTAuMzM1YzAgMC00LjI4Ny00LjA4NC00LjY5NS00LjUwMnMtMC40MzYtMS4xNyAwLTEuNjE1elwiIC8+XG4gIDwvU3ZnPlxuKTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEJ1dHRvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xufVxuXG5jb25zdCBiYXNlQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTpcbiAgICB8IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbiAgICB8IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JDb250YWluZXInLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICAgICc6aG92ZXInOiB7XG4gICAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsODAgOiBjb2xvcnMubmV1dHJhbDQwLFxuICAgICAgICB9LFxuICAgICAgfSksXG59KTtcblxuZXhwb3J0IGNvbnN0IGRyb3Bkb3duSW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBEcm9wZG93bkluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2Ryb3Bkb3duSW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdkcm9wZG93bi1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPERvd25DaGV2cm9uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuZXhwb3J0IGludGVyZmFjZSBDbGVhckluZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW4/OiBSZWFjdE5vZGU7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGNvbnN0IGNsZWFySW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBDbGVhckluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2NsZWFySW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdjbGVhci1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPENyb3NzSWNvbiAvPn1cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gU2VwYXJhdG9yXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IGludGVyZmFjZSBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaW5uZXJQcm9wcz86IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3BhbiddO1xufVxuXG5leHBvcnQgY29uc3QgaW5kaWNhdG9yU2VwYXJhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNEaXNhYmxlZCxcbiAgICB0aGVtZToge1xuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgICAgY29sb3JzLFxuICAgIH0sXG4gIH06IEluZGljYXRvclNlcGFyYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+LFxuICB1bnN0eWxlZDogYm9vbGVhblxuKTogQ1NTT2JqZWN0V2l0aExhYmVsID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yU2VwYXJhdG9yJyxcbiAgYWxpZ25TZWxmOiAnc3RyZXRjaCcsXG4gIHdpZHRoOiAxLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGJhY2tncm91bmRDb2xvcjogaXNEaXNhYmxlZCA/IGNvbG9ycy5uZXV0cmFsMTAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBtYXJnaW5Cb3R0b206IGJhc2VVbml0ICogMixcbiAgICAgICAgbWFyZ2luVG9wOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxzcGFuXG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnaW5kaWNhdG9yU2VwYXJhdG9yJywge1xuICAgICAgICAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHNpemUsXG4gICAgdGhlbWU6IHtcbiAgICAgIGNvbG9ycyxcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICB9LFxuICB9OiBMb2FkaW5nSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdsb2FkaW5nSW5kaWNhdG9yJyxcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDYwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgICAgICAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICAgICAgfSksXG59KTtcblxuaW50ZXJmYWNlIExvYWRpbmdEb3RQcm9wcyB7XG4gIGRlbGF5OiBudW1iZXI7XG4gIG9mZnNldDogYm9vbGVhbjtcbn1cbmNvbnN0IExvYWRpbmdEb3QgPSAoeyBkZWxheSwgb2Zmc2V0IH06IExvYWRpbmdEb3RQcm9wcykgPT4gKFxuICA8c3BhblxuICAgIGNzcz17e1xuICAgICAgYW5pbWF0aW9uOiBgJHtsb2FkaW5nRG90QW5pbWF0aW9uc30gMXMgZWFzZS1pbi1vdXQgJHtkZWxheX1tcyBpbmZpbml0ZTtgLFxuICAgICAgYmFja2dyb3VuZENvbG9yOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGJvcmRlclJhZGl1czogJzFlbScsXG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIG1hcmdpbkxlZnQ6IG9mZnNldCA/ICcxZW0nIDogdW5kZWZpbmVkLFxuICAgICAgaGVpZ2h0OiAnMWVtJyxcbiAgICAgIHZlcnRpY2FsQWxpZ246ICd0b3AnLFxuICAgICAgd2lkdGg6ICcxZW0nLFxuICAgIH19XG4gIC8+XG4pO1xuXG5leHBvcnQgaW50ZXJmYWNlIExvYWRpbmdJbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgLyoqIFNldCBzaXplIG9mIHRoZSBjb250YWluZXIuICovXG4gIHNpemU6IG51bWJlcjtcbn1cbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KHtcbiAgaW5uZXJQcm9wcyxcbiAgaXNSdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */",toString:K9},Kv=function(t){var n=t.size,r=vr(t,U9);return le("svg",de({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:q9},r))},ph=function(t){return le(Kv,de({size:20},t),le("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},qv=function(t){return le(Kv,de({size:20},t),le("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Qv=function(t,n){var r=t.isFocused,i=t.theme,o=i.spacing.baseUnit,a=i.colors;return ce({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?a.neutral60:a.neutral20,padding:o*2,":hover":{color:r?a.neutral80:a.neutral40}})},Q9=Qv,eR=function(t){var n=t.children,r=t.innerProps;return le("div",de({},Qe(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||le(qv,null))},tR=Qv,nR=function(t){var n=t.children,r=t.innerProps;return le("div",de({},Qe(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||le(ph,null))},rR=function(t,n){var r=t.isDisabled,i=t.theme,o=i.spacing.baseUnit,a=i.colors;return ce({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?a.neutral10:a.neutral20,marginBottom:o*2,marginTop:o*2})},iR=function(t){var n=t.innerProps;return le("span",de({},n,Qe(t,"indicatorSeparator",{"indicator-separator":!0})))},oR=s9(Mm||(Mm=h9([`
80
+ `+("css`"+l+"`"))}break}if(t==null)return n;var u=t[n];return u!==void 0?u:n}function J6(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Ea(e,t,n[i])+";";else for(var o in n){var a=n[o];if(typeof a!="object")t!=null&&t[a]!==void 0?r+=o+"{"+t[a]+"}":Dm(a)&&(r+=uc(o)+":"+Nl(o,a)+";");else{if(o==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(Lv);if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var s=0;s<a.length;s++)Dm(a[s])&&(r+=uc(o)+":"+Nl(o,a[s])+";");else{var l=Ea(e,t,a);switch(o){case"animation":case"animationName":{r+=uc(o)+":"+l+";";break}default:process.env.NODE_ENV!=="production"&&o==="undefined"&&console.error(W6),r+=o+"{"+l+"}"}}}}return r}var Em=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Hv;process.env.NODE_ENV!=="production"&&(Hv=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var vn,Ia=function(t,n,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var i=!0,o="";vn=void 0;var a=t[0];a==null||a.raw===void 0?(i=!1,o+=Ea(r,n,a)):(process.env.NODE_ENV!=="production"&&a[0]===void 0&&console.error(wm),o+=a[0]);for(var s=1;s<t.length;s++)o+=Ea(r,n,t[s]),i&&(process.env.NODE_ENV!=="production"&&a[s]===void 0&&console.error(wm),o+=a[s]);var l;process.env.NODE_ENV!=="production"&&(o=o.replace(Hv,function(h){return l=h,""})),Em.lastIndex=0;for(var u="",c;(c=Em.exec(o))!==null;)u+="-"+c[1];var d=L6(o)+u;return process.env.NODE_ENV!=="production"?{name:d,styles:o,map:l,next:vn,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:d,styles:o,next:vn}},K6=function(t){return t()},jv=G.useInsertionEffect?G.useInsertionEffect:!1,Wv=jv||K6,Im=jv||G.useLayoutEffect,fh={}.hasOwnProperty,hh=G.createContext(typeof HTMLElement<"u"?k6({key:"css"}):null);process.env.NODE_ENV!=="production"&&(hh.displayName="EmotionCacheContext");hh.Provider;var gh=function(t){return w.forwardRef(function(n,r){var i=w.useContext(hh);return t(n,i,r)})},_u=G.createContext({});process.env.NODE_ENV!=="production"&&(_u.displayName="EmotionThemeContext");var _m=function(t){var n=t.split(".");return n[n.length-1]},q6=function(t){var n=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(t);if(n||(n=/^([A-Za-z0-9$.]+)@/.exec(t),n))return _m(n[1])},Q6=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),e9=function(t){return t.replace(/\$/g,"-")},t9=function(t){if(t)for(var n=t.split(`
81
+ `),r=0;r<n.length;r++){var i=q6(n[r]);if(i){if(Q6.has(i))break;if(/^[A-Z]/.test(i))return e9(i)}}},Ad="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Fd="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",n9=function(t,n){if(process.env.NODE_ENV!=="production"&&typeof n.css=="string"&&n.css.indexOf(":")!==-1)throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+n.css+"`");var r={};for(var i in n)fh.call(n,i)&&(r[i]=n[i]);if(r[Ad]=t,process.env.NODE_ENV!=="production"&&n.css&&(typeof n.css!="object"||typeof n.css.name!="string"||n.css.name.indexOf("-")===-1)){var o=t9(new Error().stack);o&&(r[Fd]=o)}return r},r9=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return uh(n,r,i),Wv(function(){return ch(n,r,i)}),null},zv=gh(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[Ad],o=[r],a="";typeof e.className=="string"?a=Nv(t.registered,o,e.className):e.className!=null&&(a=e.className+" ");var s=Ia(o,void 0,G.useContext(_u));if(process.env.NODE_ENV!=="production"&&s.name.indexOf("-")===-1){var l=e[Fd];l&&(s=Ia([s,"label:"+l+";"]))}a+=t.key+"-"+s.name;var u={};for(var c in e)fh.call(e,c)&&c!=="css"&&c!==Ad&&(process.env.NODE_ENV==="production"||c!==Fd)&&(u[c]=e[c]);return u.ref=n,u.className=a,G.createElement(G.Fragment,null,G.createElement(r9,{cache:t,serialized:s,isStringTag:typeof i=="string"}),G.createElement(i,u))});process.env.NODE_ENV!=="production"&&(zv.displayName="EmotionCssPropInternal");var i9=zv,o9={version:"11.11.4"},le=function(t,n){var r=arguments;if(n==null||!fh.call(n,"css"))return G.createElement.apply(void 0,r);var i=r.length,o=new Array(i);o[0]=i9,o[1]=n9(t,n);for(var a=2;a<i;a++)o[a]=r[a];return G.createElement.apply(null,o)},$m=!1,a9=gh(function(e,t){process.env.NODE_ENV!=="production"&&!$m&&(e.className||e.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),$m=!0);var n=e.styles,r=Ia([n],void 0,G.useContext(_u)),i=G.useRef();return Im(function(){var o=t.key+"-global",a=new t.sheet.constructor({key:o,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,l=document.querySelector('style[data-emotion="'+o+" "+r.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),l!==null&&(s=!0,l.setAttribute("data-emotion",o),a.hydrate([l])),i.current=[a,s],function(){a.flush()}},[t]),Im(function(){var o=i.current,a=o[0],s=o[1];if(s){o[1]=!1;return}if(r.next!==void 0&&ch(t,r.next,!0),a.tags.length){var l=a.tags[a.tags.length-1].nextElementSibling;a.before=l,a.flush()}t.insert("",r,a,!1)},[t,r.name]),null});process.env.NODE_ENV!=="production"&&(a9.displayName="EmotionGlobal");function mh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ia(t)}var s9=function(){var t=mh.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},l9=function e(t){for(var n=t.length,r=0,i="";r<n;r++){var o=t[r];if(o!=null){var a=void 0;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))a=e(o);else{process.env.NODE_ENV!=="production"&&o.styles!==void 0&&o.name!==void 0&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),a="";for(var s in o)o[s]&&s&&(a&&(a+=" "),a+=s)}break}default:a=o}a&&(i&&(i+=" "),i+=a)}}return i};function u9(e,t,n){var r=[],i=Nv(e,r,n);return r.length<2?n:i+t(r)}var c9=function(t){var n=t.cache,r=t.serializedArr;return Wv(function(){for(var i=0;i<r.length;i++)ch(n,r[i],!1)}),null},d9=gh(function(e,t){var n=!1,r=[],i=function(){if(n&&process.env.NODE_ENV!=="production")throw new Error("css can only be used during render");for(var u=arguments.length,c=new Array(u),d=0;d<u;d++)c[d]=arguments[d];var h=Ia(c,t.registered);return r.push(h),uh(t,h,!1),t.key+"-"+h.name},o=function(){if(n&&process.env.NODE_ENV!=="production")throw new Error("cx can only be used during render");for(var u=arguments.length,c=new Array(u),d=0;d<u;d++)c[d]=arguments[d];return u9(t.registered,i,l9(c))},a={css:i,cx:o,theme:G.useContext(_u)},s=e.children(a);return n=!0,G.createElement(G.Fragment,null,G.createElement(c9,{cache:t,serializedArr:r}),s)});process.env.NODE_ENV!=="production"&&(d9.displayName="EmotionClassNames");if(process.env.NODE_ENV!=="production"){var Rm=!0,f9=typeof jest<"u"||typeof vi<"u";if(Rm&&!f9){var Am=typeof globalThis<"u"?globalThis:Rm?window:global,Fm="__EMOTION_REACT_"+o9.version.split(".")[0]+"__";Am[Fm]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),Am[Fm]=!0}}function h9(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Pd=w.useLayoutEffect,g9=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Vl=function(){};function m9(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function p9(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&o.push("".concat(m9(e,a)));return o.filter(function(s){return s}).map(function(s){return String(s).trim()}).join(" ")}var Pm=function(t){return E9(t)?t.filter(Boolean):wi(t)==="object"&&t!==null?[t]:[]},Gv=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var n=vr(t,g9);return ce({},n)},Qe=function(t,n,r){var i=t.cx,o=t.getStyles,a=t.getClassNames,s=t.className;return{css:o(n,t),className:i(r??{},a(n,t),s)}};function $u(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function b9(e){return $u(e)?window.innerHeight:e.clientHeight}function Zv(e){return $u(e)?window.pageYOffset:e.scrollTop}function Ll(e,t){if($u(e)){window.scrollTo(0,t);return}e.scrollTop=t}function v9(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}function y9(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function Ss(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Vl,i=Zv(e),o=t-i,a=10,s=0;function l(){s+=a;var u=y9(s,i,o,n);Ll(e,u),s<n?window.requestAnimationFrame(l):r(e)}l()}function Tm(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?Ll(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&Ll(e,Math.max(t.offsetTop-i,0))}function x9(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function km(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function C9(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var Xv=!1,w9={get passive(){return Xv=!0}},Es=typeof window<"u"?window:{};Es.addEventListener&&Es.removeEventListener&&(Es.addEventListener("p",Vl,w9),Es.removeEventListener("p",Vl,!1));var D9=Xv;function S9(e){return e!=null}function E9(e){return Array.isArray(e)}function Is(e,t,n){return e?t:n}var I9=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];var o=Object.entries(t).filter(function(a){var s=hr(a,1),l=s[0];return!r.includes(l)});return o.reduce(function(a,s){var l=hr(s,2),u=l[0],c=l[1];return a[u]=c,a},{})},_9=["children","innerProps"],$9=["children","innerProps"];function R9(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,o=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,l=v9(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c=l.getBoundingClientRect(),d=c.height,h=n.getBoundingClientRect(),f=h.bottom,g=h.height,m=h.top,b=n.offsetParent.getBoundingClientRect(),y=b.top,v=a?window.innerHeight:b9(l),x=Zv(l),C=parseInt(getComputedStyle(n).marginBottom,10),D=parseInt(getComputedStyle(n).marginTop,10),I=y-D,T=v-m,p=I+x,S=d-x-m,$=f-v+x+C,_=x+m-D,A=160;switch(i){case"auto":case"bottom":if(T>=g)return{placement:"bottom",maxHeight:t};if(S>=g&&!a)return o&&Ss(l,$,A),{placement:"bottom",maxHeight:t};if(!a&&S>=r||a&&T>=r){o&&Ss(l,$,A);var k=a?T-C:S-C;return{placement:"bottom",maxHeight:k}}if(i==="auto"||a){var R=t,M=a?I:p;return M>=r&&(R=Math.min(M-C-s,t)),{placement:"top",maxHeight:R}}if(i==="bottom")return o&&Ll(l,$),{placement:"bottom",maxHeight:t};break;case"top":if(I>=g)return{placement:"top",maxHeight:t};if(p>=g&&!a)return o&&Ss(l,_,A),{placement:"top",maxHeight:t};if(!a&&p>=r||a&&I>=r){var P=t;return(!a&&p>=r||a&&I>=r)&&(P=a?I-D:p-D),o&&Ss(l,_,A),{placement:"top",maxHeight:P}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return u}function A9(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var Yv=function(t){return t==="auto"?"bottom":t},F9=function(t,n){var r,i=t.placement,o=t.theme,a=o.borderRadius,s=o.spacing,l=o.colors;return ce((r={label:"menu"},Lo(r,A9(i),"100%"),Lo(r,"position","absolute"),Lo(r,"width","100%"),Lo(r,"zIndex",1),r),n?{}:{backgroundColor:l.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},Uv=w.createContext(null),P9=function(t){var n=t.children,r=t.minMenuHeight,i=t.maxMenuHeight,o=t.menuPlacement,a=t.menuPosition,s=t.menuShouldScrollIntoView,l=t.theme,u=w.useContext(Uv)||{},c=u.setPortalPlacement,d=w.useRef(null),h=w.useState(i),f=hr(h,2),g=f[0],m=f[1],b=w.useState(null),y=hr(b,2),v=y[0],x=y[1],C=l.spacing.controlHeight;return Pd(function(){var D=d.current;if(D){var I=a==="fixed",T=s&&!I,p=R9({maxHeight:i,menuEl:D,minHeight:r,placement:o,shouldScroll:T,isFixedPosition:I,controlHeight:C});m(p.maxHeight),x(p.placement),c==null||c(p.placement)}},[i,o,a,s,r,c,C]),n({ref:d,placerProps:ce(ce({},t),{},{placement:v||Yv(o),maxHeight:g})})},T9=function(t){var n=t.children,r=t.innerRef,i=t.innerProps;return le("div",de({},Qe(t,"menu",{menu:!0}),{ref:r},i),n)},k9=T9,M9=function(t,n){var r=t.maxHeight,i=t.theme.spacing.baseUnit;return ce({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:i,paddingTop:i})},B9=function(t){var n=t.children,r=t.innerProps,i=t.innerRef,o=t.isMulti;return le("div",de({},Qe(t,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:i},r),n)},Jv=function(t,n){var r=t.theme,i=r.spacing.baseUnit,o=r.colors;return ce({textAlign:"center"},n?{}:{color:o.neutral40,padding:"".concat(i*2,"px ").concat(i*3,"px")})},O9=Jv,N9=Jv,V9=function(t){var n=t.children,r=n===void 0?"No options":n,i=t.innerProps,o=vr(t,_9);return le("div",de({},Qe(ce(ce({},o),{},{children:r,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),r)},L9=function(t){var n=t.children,r=n===void 0?"Loading...":n,i=t.innerProps,o=vr(t,$9);return le("div",de({},Qe(ce(ce({},o),{},{children:r,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),r)},H9=function(t){var n=t.rect,r=t.offset,i=t.position;return{left:n.left,position:i,top:r,width:n.width,zIndex:1}},j9=function(t){var n=t.appendTo,r=t.children,i=t.controlElement,o=t.innerProps,a=t.menuPlacement,s=t.menuPosition,l=w.useRef(null),u=w.useRef(null),c=w.useState(Yv(a)),d=hr(c,2),h=d[0],f=d[1],g=w.useMemo(function(){return{setPortalPlacement:f}},[]),m=w.useState(null),b=hr(m,2),y=b[0],v=b[1],x=w.useCallback(function(){if(i){var T=x9(i),p=s==="fixed"?0:window.pageYOffset,S=T[h]+p;(S!==(y==null?void 0:y.offset)||T.left!==(y==null?void 0:y.rect.left)||T.width!==(y==null?void 0:y.rect.width))&&v({offset:S,rect:T})}},[i,s,h,y==null?void 0:y.offset,y==null?void 0:y.rect.left,y==null?void 0:y.rect.width]);Pd(function(){x()},[x]);var C=w.useCallback(function(){typeof u.current=="function"&&(u.current(),u.current=null),i&&l.current&&(u.current=a1(i,l.current,x,{elementResize:"ResizeObserver"in window}))},[i,x]);Pd(function(){C()},[C]);var D=w.useCallback(function(T){l.current=T,C()},[C]);if(!n&&s!=="fixed"||!y)return null;var I=le("div",de({ref:D},Qe(ce(ce({},t),{},{offset:y.offset,position:s,rect:y.rect}),"menuPortal",{"menu-portal":!0}),o),r);return le(Uv.Provider,{value:g},n?Xa.createPortal(I,n):I)},W9=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},z9=function(t){var n=t.children,r=t.innerProps,i=t.isDisabled,o=t.isRtl;return le("div",de({},Qe(t,"container",{"--is-disabled":i,"--is-rtl":o}),r),n)},G9=function(t,n){var r=t.theme.spacing,i=t.isMulti,o=t.hasValue,a=t.selectProps.controlShouldRenderValue;return ce({alignItems:"center",display:i&&o&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},Z9=function(t){var n=t.children,r=t.innerProps,i=t.isMulti,o=t.hasValue;return le("div",de({},Qe(t,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":o}),r),n)},X9=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},Y9=function(t){var n=t.children,r=t.innerProps;return le("div",de({},Qe(t,"indicatorsContainer",{indicators:!0}),r),n)},Mm,U9=["size"],J9=["innerProps","isRtl","size"];function K9(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var q9=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1oaWRkZW49XCJ0cnVlXCJcbiAgICBmb2N1c2FibGU9XCJmYWxzZVwiXG4gICAgY3NzPXt7XG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIGZpbGw6ICdjdXJyZW50Q29sb3InLFxuICAgICAgbGluZUhlaWdodDogMSxcbiAgICAgIHN0cm9rZTogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBzdHJva2VXaWR0aDogMCxcbiAgICB9fVxuICAgIHsuLi5wcm9wc31cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIENyb3NzSWNvblByb3BzID0gSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZT86IG51bWJlciB9O1xuZXhwb3J0IGNvbnN0IENyb3NzSWNvbiA9IChwcm9wczogQ3Jvc3NJY29uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCB0eXBlIERvd25DaGV2cm9uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgRG93bkNoZXZyb24gPSAocHJvcHM6IERvd25DaGV2cm9uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTQuNTE2IDcuNTQ4YzAuNDM2LTAuNDQ2IDEuMDQzLTAuNDgxIDEuNTc2IDBsMy45MDggMy43NDcgMy45MDgtMy43NDdjMC41MzMtMC40ODEgMS4xNDEtMC40NDYgMS41NzQgMCAwLjQzNiAwLjQ0NSAwLjQwOCAxLjE5NyAwIDEuNjE1LTAuNDA2IDAuNDE4LTQuNjk1IDQuNTAyLTQuNjk1IDQuNTAyLTAuMjE3IDAuMjIzLTAuNTAyIDAuMzM1LTAuNzg3IDAuMzM1cy0wLjU3LTAuMTEyLTAuNzg5LTAuMzM1YzAgMC00LjI4Ny00LjA4NC00LjY5NS00LjUwMnMtMC40MzYtMS4xNyAwLTEuNjE1elwiIC8+XG4gIDwvU3ZnPlxuKTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEJ1dHRvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xufVxuXG5jb25zdCBiYXNlQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTpcbiAgICB8IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbiAgICB8IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JDb250YWluZXInLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICAgICc6aG92ZXInOiB7XG4gICAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsODAgOiBjb2xvcnMubmV1dHJhbDQwLFxuICAgICAgICB9LFxuICAgICAgfSksXG59KTtcblxuZXhwb3J0IGNvbnN0IGRyb3Bkb3duSW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBEcm9wZG93bkluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2Ryb3Bkb3duSW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdkcm9wZG93bi1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPERvd25DaGV2cm9uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuZXhwb3J0IGludGVyZmFjZSBDbGVhckluZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW4/OiBSZWFjdE5vZGU7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGNvbnN0IGNsZWFySW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBDbGVhckluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2NsZWFySW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdjbGVhci1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPENyb3NzSWNvbiAvPn1cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gU2VwYXJhdG9yXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IGludGVyZmFjZSBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaW5uZXJQcm9wcz86IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3BhbiddO1xufVxuXG5leHBvcnQgY29uc3QgaW5kaWNhdG9yU2VwYXJhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNEaXNhYmxlZCxcbiAgICB0aGVtZToge1xuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgICAgY29sb3JzLFxuICAgIH0sXG4gIH06IEluZGljYXRvclNlcGFyYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+LFxuICB1bnN0eWxlZDogYm9vbGVhblxuKTogQ1NTT2JqZWN0V2l0aExhYmVsID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yU2VwYXJhdG9yJyxcbiAgYWxpZ25TZWxmOiAnc3RyZXRjaCcsXG4gIHdpZHRoOiAxLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGJhY2tncm91bmRDb2xvcjogaXNEaXNhYmxlZCA/IGNvbG9ycy5uZXV0cmFsMTAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBtYXJnaW5Cb3R0b206IGJhc2VVbml0ICogMixcbiAgICAgICAgbWFyZ2luVG9wOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxzcGFuXG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnaW5kaWNhdG9yU2VwYXJhdG9yJywge1xuICAgICAgICAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHNpemUsXG4gICAgdGhlbWU6IHtcbiAgICAgIGNvbG9ycyxcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICB9LFxuICB9OiBMb2FkaW5nSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdsb2FkaW5nSW5kaWNhdG9yJyxcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDYwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgICAgICAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICAgICAgfSksXG59KTtcblxuaW50ZXJmYWNlIExvYWRpbmdEb3RQcm9wcyB7XG4gIGRlbGF5OiBudW1iZXI7XG4gIG9mZnNldDogYm9vbGVhbjtcbn1cbmNvbnN0IExvYWRpbmdEb3QgPSAoeyBkZWxheSwgb2Zmc2V0IH06IExvYWRpbmdEb3RQcm9wcykgPT4gKFxuICA8c3BhblxuICAgIGNzcz17e1xuICAgICAgYW5pbWF0aW9uOiBgJHtsb2FkaW5nRG90QW5pbWF0aW9uc30gMXMgZWFzZS1pbi1vdXQgJHtkZWxheX1tcyBpbmZpbml0ZTtgLFxuICAgICAgYmFja2dyb3VuZENvbG9yOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGJvcmRlclJhZGl1czogJzFlbScsXG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIG1hcmdpbkxlZnQ6IG9mZnNldCA/ICcxZW0nIDogdW5kZWZpbmVkLFxuICAgICAgaGVpZ2h0OiAnMWVtJyxcbiAgICAgIHZlcnRpY2FsQWxpZ246ICd0b3AnLFxuICAgICAgd2lkdGg6ICcxZW0nLFxuICAgIH19XG4gIC8+XG4pO1xuXG5leHBvcnQgaW50ZXJmYWNlIExvYWRpbmdJbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgLyoqIFNldCBzaXplIG9mIHRoZSBjb250YWluZXIuICovXG4gIHNpemU6IG51bWJlcjtcbn1cbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KHtcbiAgaW5uZXJQcm9wcyxcbiAgaXNSdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */",toString:K9},Kv=function(t){var n=t.size,r=vr(t,U9);return le("svg",de({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:q9},r))},ph=function(t){return le(Kv,de({size:20},t),le("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},qv=function(t){return le(Kv,de({size:20},t),le("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Qv=function(t,n){var r=t.isFocused,i=t.theme,o=i.spacing.baseUnit,a=i.colors;return ce({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?a.neutral60:a.neutral20,padding:o*2,":hover":{color:r?a.neutral80:a.neutral40}})},Q9=Qv,eR=function(t){var n=t.children,r=t.innerProps;return le("div",de({},Qe(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||le(qv,null))},tR=Qv,nR=function(t){var n=t.children,r=t.innerProps;return le("div",de({},Qe(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||le(ph,null))},rR=function(t,n){var r=t.isDisabled,i=t.theme,o=i.spacing.baseUnit,a=i.colors;return ce({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?a.neutral10:a.neutral20,marginBottom:o*2,marginTop:o*2})},iR=function(t){var n=t.innerProps;return le("span",de({},n,Qe(t,"indicatorSeparator",{"indicator-separator":!0})))},oR=s9(Mm||(Mm=h9([`
82
82
  0%, 80%, 100% { opacity: 0; }
83
83
  40% { opacity: 1; }
84
- `]))),aR=function(t,n){var r=t.isFocused,i=t.size,o=t.theme,a=o.colors,s=o.spacing.baseUnit;return ce({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?a.neutral60:a.neutral20,padding:s*2})},cc=function(t){var n=t.delay,r=t.offset;return le("span",{css:mh({animation:"".concat(oR," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1oaWRkZW49XCJ0cnVlXCJcbiAgICBmb2N1c2FibGU9XCJmYWxzZVwiXG4gICAgY3NzPXt7XG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIGZpbGw6ICdjdXJyZW50Q29sb3InLFxuICAgICAgbGluZUhlaWdodDogMSxcbiAgICAgIHN0cm9rZTogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBzdHJva2VXaWR0aDogMCxcbiAgICB9fVxuICAgIHsuLi5wcm9wc31cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIENyb3NzSWNvblByb3BzID0gSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZT86IG51bWJlciB9O1xuZXhwb3J0IGNvbnN0IENyb3NzSWNvbiA9IChwcm9wczogQ3Jvc3NJY29uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCB0eXBlIERvd25DaGV2cm9uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgRG93bkNoZXZyb24gPSAocHJvcHM6IERvd25DaGV2cm9uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTQuNTE2IDcuNTQ4YzAuNDM2LTAuNDQ2IDEuMDQzLTAuNDgxIDEuNTc2IDBsMy45MDggMy43NDcgMy45MDgtMy43NDdjMC41MzMtMC40ODEgMS4xNDEtMC40NDYgMS41NzQgMCAwLjQzNiAwLjQ0NSAwLjQwOCAxLjE5NyAwIDEuNjE1LTAuNDA2IDAuNDE4LTQuNjk1IDQuNTAyLTQuNjk1IDQuNTAyLTAuMjE3IDAuMjIzLTAuNTAyIDAuMzM1LTAuNzg3IDAuMzM1cy0wLjU3LTAuMTEyLTAuNzg5LTAuMzM1YzAgMC00LjI4Ny00LjA4NC00LjY5NS00LjUwMnMtMC40MzYtMS4xNyAwLTEuNjE1elwiIC8+XG4gIDwvU3ZnPlxuKTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEJ1dHRvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xufVxuXG5jb25zdCBiYXNlQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTpcbiAgICB8IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbiAgICB8IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JDb250YWluZXInLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICAgICc6aG92ZXInOiB7XG4gICAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsODAgOiBjb2xvcnMubmV1dHJhbDQwLFxuICAgICAgICB9LFxuICAgICAgfSksXG59KTtcblxuZXhwb3J0IGNvbnN0IGRyb3Bkb3duSW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBEcm9wZG93bkluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2Ryb3Bkb3duSW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdkcm9wZG93bi1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPERvd25DaGV2cm9uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuZXhwb3J0IGludGVyZmFjZSBDbGVhckluZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW4/OiBSZWFjdE5vZGU7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGNvbnN0IGNsZWFySW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBDbGVhckluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2NsZWFySW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdjbGVhci1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPENyb3NzSWNvbiAvPn1cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gU2VwYXJhdG9yXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IGludGVyZmFjZSBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaW5uZXJQcm9wcz86IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3BhbiddO1xufVxuXG5leHBvcnQgY29uc3QgaW5kaWNhdG9yU2VwYXJhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNEaXNhYmxlZCxcbiAgICB0aGVtZToge1xuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgICAgY29sb3JzLFxuICAgIH0sXG4gIH06IEluZGljYXRvclNlcGFyYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+LFxuICB1bnN0eWxlZDogYm9vbGVhblxuKTogQ1NTT2JqZWN0V2l0aExhYmVsID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yU2VwYXJhdG9yJyxcbiAgYWxpZ25TZWxmOiAnc3RyZXRjaCcsXG4gIHdpZHRoOiAxLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGJhY2tncm91bmRDb2xvcjogaXNEaXNhYmxlZCA/IGNvbG9ycy5uZXV0cmFsMTAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBtYXJnaW5Cb3R0b206IGJhc2VVbml0ICogMixcbiAgICAgICAgbWFyZ2luVG9wOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxzcGFuXG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnaW5kaWNhdG9yU2VwYXJhdG9yJywge1xuICAgICAgICAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHNpemUsXG4gICAgdGhlbWU6IHtcbiAgICAgIGNvbG9ycyxcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICB9LFxuICB9OiBMb2FkaW5nSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdsb2FkaW5nSW5kaWNhdG9yJyxcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDYwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgICAgICAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICAgICAgfSksXG59KTtcblxuaW50ZXJmYWNlIExvYWRpbmdEb3RQcm9wcyB7XG4gIGRlbGF5OiBudW1iZXI7XG4gIG9mZnNldDogYm9vbGVhbjtcbn1cbmNvbnN0IExvYWRpbmdEb3QgPSAoeyBkZWxheSwgb2Zmc2V0IH06IExvYWRpbmdEb3RQcm9wcykgPT4gKFxuICA8c3BhblxuICAgIGNzcz17e1xuICAgICAgYW5pbWF0aW9uOiBgJHtsb2FkaW5nRG90QW5pbWF0aW9uc30gMXMgZWFzZS1pbi1vdXQgJHtkZWxheX1tcyBpbmZpbml0ZTtgLFxuICAgICAgYmFja2dyb3VuZENvbG9yOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGJvcmRlclJhZGl1czogJzFlbScsXG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIG1hcmdpbkxlZnQ6IG9mZnNldCA/ICcxZW0nIDogdW5kZWZpbmVkLFxuICAgICAgaGVpZ2h0OiAnMWVtJyxcbiAgICAgIHZlcnRpY2FsQWxpZ246ICd0b3AnLFxuICAgICAgd2lkdGg6ICcxZW0nLFxuICAgIH19XG4gIC8+XG4pO1xuXG5leHBvcnQgaW50ZXJmYWNlIExvYWRpbmdJbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgLyoqIFNldCBzaXplIG9mIHRoZSBjb250YWluZXIuICovXG4gIHNpemU6IG51bWJlcjtcbn1cbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KHtcbiAgaW5uZXJQcm9wcyxcbiAgaXNSdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */")})},sR=function(t){var n=t.innerProps,r=t.isRtl,i=t.size,o=i===void 0?4:i,a=vr(t,J9);return le("div",de({},Qe(ce(ce({},a),{},{innerProps:n,isRtl:r,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),le(cc,{delay:0,offset:r}),le(cc,{delay:160,offset:!0}),le(cc,{delay:320,offset:!r}))},lR=function(t,n){var r=t.isDisabled,i=t.isFocused,o=t.theme,a=o.colors,s=o.borderRadius,l=o.spacing;return ce({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?a.neutral5:a.neutral0,borderColor:r?a.neutral10:i?a.primary:a.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:i?a.primary:a.neutral30}})},uR=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,o=t.innerRef,a=t.innerProps,s=t.menuIsOpen;return le("div",de({ref:o},Qe(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":i,"control--menu-is-open":s}),a,{"aria-disabled":r||void 0}),n)},cR=uR,dR=["data"],fR=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},hR=function(t){var n=t.children,r=t.cx,i=t.getStyles,o=t.getClassNames,a=t.Heading,s=t.headingProps,l=t.innerProps,u=t.label,c=t.theme,d=t.selectProps;return le("div",de({},Qe(t,"group",{group:!0}),l),le(a,de({},s,{selectProps:d,theme:c,getStyles:i,getClassNames:o,cx:r}),u),le("div",null,n))},gR=function(t,n){var r=t.theme,i=r.colors,o=r.spacing;return ce({label:"group",cursor:"default",display:"block"},n?{}:{color:i.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:o.baseUnit*3,paddingRight:o.baseUnit*3,textTransform:"uppercase"})},mR=function(t){var n=Gv(t);n.data;var r=vr(n,dR);return le("div",de({},Qe(t,"groupHeading",{"group-heading":!0}),r))},pR=hR,bR=["innerRef","isDisabled","isHidden","inputClassName"],vR=function(t,n){var r=t.isDisabled,i=t.value,o=t.theme,a=o.spacing,s=o.colors;return ce(ce({visibility:r?"hidden":"visible",transform:i?"translateZ(0)":""},yR),n?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:s.neutral80})},ey={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},yR={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":ce({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},ey)},xR=function(t){return ce({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},ey)},CR=function(t){var n=t.cx,r=t.value,i=Gv(t),o=i.innerRef,a=i.isDisabled,s=i.isHidden,l=i.inputClassName,u=vr(i,bR);return le("div",de({},Qe(t,"input",{"input-container":!0}),{"data-value":r||""}),le("input",de({className:n({input:!0},l),ref:o,style:xR(s),disabled:a},u)))},wR=CR,DR=function(t,n){var r=t.theme,i=r.spacing,o=r.borderRadius,a=r.colors;return ce({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:a.neutral10,borderRadius:o/2,margin:i.baseUnit/2})},SR=function(t,n){var r=t.theme,i=r.borderRadius,o=r.colors,a=t.cropWithEllipsis;return ce({overflow:"hidden",textOverflow:a||a===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:i/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},ER=function(t,n){var r=t.theme,i=r.spacing,o=r.borderRadius,a=r.colors,s=t.isFocused;return ce({alignItems:"center",display:"flex"},n?{}:{borderRadius:o/2,backgroundColor:s?a.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},ty=function(t){var n=t.children,r=t.innerProps;return le("div",r,n)},IR=ty,_R=ty;function $R(e){var t=e.children,n=e.innerProps;return le("div",de({role:"button"},n),t||le(ph,{size:14}))}var RR=function(t){var n=t.children,r=t.components,i=t.data,o=t.innerProps,a=t.isDisabled,s=t.removeProps,l=t.selectProps,u=r.Container,c=r.Label,d=r.Remove;return le(u,{data:i,innerProps:ce(ce({},Qe(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),o),selectProps:l},le(c,{data:i,innerProps:ce({},Qe(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},n),le(d,{data:i,innerProps:ce(ce({},Qe(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},s),selectProps:l}))},AR=RR,FR=function(t,n){var r=t.isDisabled,i=t.isFocused,o=t.isSelected,a=t.theme,s=a.spacing,l=a.colors;return ce({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:o?l.primary:i?l.primary25:"transparent",color:r?l.neutral20:o?l.neutral0:"inherit",padding:"".concat(s.baseUnit*2,"px ").concat(s.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:o?l.primary:l.primary50}})},PR=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,o=t.isSelected,a=t.innerRef,s=t.innerProps;return le("div",de({},Qe(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":i,"option--is-selected":o}),{ref:a,"aria-disabled":r},s),n)},TR=PR,kR=function(t,n){var r=t.theme,i=r.spacing,o=r.colors;return ce({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:o.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},MR=function(t){var n=t.children,r=t.innerProps;return le("div",de({},Qe(t,"placeholder",{placeholder:!0}),r),n)},BR=MR,OR=function(t,n){var r=t.isDisabled,i=t.theme,o=i.spacing,a=i.colors;return ce({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?a.neutral40:a.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},NR=function(t){var n=t.children,r=t.isDisabled,i=t.innerProps;return le("div",de({},Qe(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),i),n)},VR=NR,ny={ClearIndicator:nR,Control:cR,DropdownIndicator:eR,DownChevron:qv,CrossIcon:ph,Group:pR,GroupHeading:mR,IndicatorsContainer:Y9,IndicatorSeparator:iR,Input:wR,LoadingIndicator:sR,Menu:k9,MenuList:B9,MenuPortal:H9,LoadingMessage:L9,NoOptionsMessage:V9,MultiValue:AR,MultiValueContainer:IR,MultiValueLabel:_R,MultiValueRemove:$R,Option:TR,Placeholder:BR,SelectContainer:z9,SingleValue:VR,ValueContainer:Z9},LR=function(t){return ce(ce({},ny),t.components)},Bm=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function jR(e,t){return!!(e===t||Bm(e)&&Bm(t))}function HR(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!jR(e[n],t[n]))return!1;return!0}function WR(e,t){t===void 0&&(t=HR);var n=null;function r(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(n&&n.lastThis===this&&t(i,n.lastArgs))return n.lastResult;var a=e.apply(this,i);return n={lastResult:a,lastArgs:i,lastThis:this},a}return r.clear=function(){n=null},r}function zR(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var GR=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:zR},ZR=function(t){return le("span",de({css:GR},t))},Om=ZR,XR={guidance:function(t){var n=t.isSearchable,r=t.isMulti,i=t.tabSelectsValue,o=t.context,a=t.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(i?", press Tab to select the option and exit the menu":"",".");case"input":return a?"".concat(t["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var n=t.action,r=t.label,i=r===void 0?"":r,o=t.labels,a=t.isDisabled;switch(n){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(i,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return a?"option ".concat(i," is disabled. Select another option."):"option ".concat(i,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,i=t.options,o=t.label,a=o===void 0?"":o,s=t.selectValue,l=t.isDisabled,u=t.isSelected,c=t.isAppleDevice,d=function(m,b){return m&&m.length?"".concat(m.indexOf(b)+1," of ").concat(m.length):""};if(n==="value"&&s)return"value ".concat(a," focused, ").concat(d(s,r),".");if(n==="menu"&&c){var h=l?" disabled":"",f="".concat(u?" selected":"").concat(h);return"".concat(a).concat(f,", ").concat(d(i,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},YR=function(t){var n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,o=t.focusableOptions,a=t.isFocused,s=t.selectValue,l=t.selectProps,u=t.id,c=t.isAppleDevice,d=l.ariaLiveMessages,h=l.getOptionLabel,f=l.inputValue,g=l.isMulti,m=l.isOptionDisabled,b=l.isSearchable,y=l.menuIsOpen,v=l.options,x=l.screenReaderStatus,C=l.tabSelectsValue,D=l.isLoading,I=l["aria-label"],T=l["aria-live"],p=w.useMemo(function(){return ce(ce({},XR),d||{})},[d]),S=w.useMemo(function(){var M="";if(n&&p.onChange){var P=n.option,F=n.options,B=n.removedValue,N=n.removedValues,O=n.value,L=function(Y){return Array.isArray(Y)?null:Y},W=B||P||L(O),Z=W?h(W):"",H=F||N||void 0,j=H?H.map(h):[],V=ce({isDisabled:W&&m(W,s),label:Z,labels:j},n);M=p.onChange(V)}return M},[n,p,m,s,h]),$=w.useMemo(function(){var M="",P=r||i,F=!!(r&&s&&s.includes(r));if(P&&p.onFocus){var B={focused:P,label:h(P),isDisabled:m(P,s),isSelected:F,options:o,context:P===r?"menu":"value",selectValue:s,isAppleDevice:c};M=p.onFocus(B)}return M},[r,i,h,m,p,o,s,c]),_=w.useMemo(function(){var M="";if(y&&v.length&&!D&&p.onFilter){var P=x({count:o.length});M=p.onFilter({inputValue:f,resultsMessage:P})}return M},[o,f,y,p,v,x,D]),A=(n==null?void 0:n.action)==="initial-input-focus",k=w.useMemo(function(){var M="";if(p.guidance){var P=i?"value":y?"menu":"input";M=p.guidance({"aria-label":I,context:P,isDisabled:r&&m(r,s),isMulti:g,isSearchable:b,tabSelectsValue:C,isInitialFocus:A})}return M},[I,r,i,g,m,b,y,p,s,C,A]),R=le(w.Fragment,null,le("span",{id:"aria-selection"},S),le("span",{id:"aria-focused"},$),le("span",{id:"aria-results"},_),le("span",{id:"aria-guidance"},k));return le(w.Fragment,null,le(Om,{id:u},A&&R),le(Om,{"aria-live":T,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!A&&R))},UR=YR,Td=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],JR=new RegExp("["+Td.map(function(e){return e.letters}).join("")+"]","g"),ry={};for(var dc=0;dc<Td.length;dc++)for(var fc=Td[dc],hc=0;hc<fc.letters.length;hc++)ry[fc.letters[hc]]=fc.base;var iy=function(t){return t.replace(JR,function(n){return ry[n]})},KR=WR(iy),Nm=function(t){return t.replace(/^\s+|\s+$/g,"")},qR=function(t){return"".concat(t.label," ").concat(t.value)},QR=function(t){return function(n,r){if(n.data.__isNew__)return!0;var i=ce({ignoreCase:!0,ignoreAccents:!0,stringify:qR,trim:!0,matchFrom:"any"},t),o=i.ignoreCase,a=i.ignoreAccents,s=i.stringify,l=i.trim,u=i.matchFrom,c=l?Nm(r):r,d=l?Nm(s(n)):s(n);return o&&(c=c.toLowerCase(),d=d.toLowerCase()),a&&(c=KR(c),d=iy(d)),u==="start"?d.substr(0,c.length)===c:d.indexOf(c)>-1}},eA=["innerRef"];function tA(e){var t=e.innerRef,n=vr(e,eA),r=I9(n,"onExited","in","enter","exit","appear");return le("input",de({ref:t},r,{css:mh({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVmIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgcmVtb3ZlUHJvcHMgfSBmcm9tICcuLi91dGlscyc7XG5cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIER1bW15SW5wdXQoe1xuICBpbm5lclJlZixcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snaW5wdXQnXSAmIHtcbiAgcmVhZG9ubHkgaW5uZXJSZWY6IFJlZjxIVE1MSW5wdXRFbGVtZW50Pjtcbn0pIHtcbiAgLy8gUmVtb3ZlIGFuaW1hdGlvbiBwcm9wcyBub3QgbWVhbnQgZm9yIEhUTUwgZWxlbWVudHNcbiAgY29uc3QgZmlsdGVyZWRQcm9wcyA9IHJlbW92ZVByb3BzKFxuICAgIHByb3BzLFxuICAgICdvbkV4aXRlZCcsXG4gICAgJ2luJyxcbiAgICAnZW50ZXInLFxuICAgICdleGl0JyxcbiAgICAnYXBwZWFyJ1xuICApO1xuXG4gIHJldHVybiAoXG4gICAgPGlucHV0XG4gICAgICByZWY9e2lubmVyUmVmfVxuICAgICAgey4uLmZpbHRlcmVkUHJvcHN9XG4gICAgICBjc3M9e3tcbiAgICAgICAgbGFiZWw6ICdkdW1teUlucHV0JyxcbiAgICAgICAgLy8gZ2V0IHJpZCBvZiBhbnkgZGVmYXVsdCBzdHlsZXNcbiAgICAgICAgYmFja2dyb3VuZDogMCxcbiAgICAgICAgYm9yZGVyOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHRoaXMgaGlkZXMgdGhlIGZsYXNoaW5nIGN1cnNvclxuICAgICAgICBjYXJldENvbG9yOiAndHJhbnNwYXJlbnQnLFxuICAgICAgICBmb250U2l6ZTogJ2luaGVyaXQnLFxuICAgICAgICBncmlkQXJlYTogJzEgLyAxIC8gMiAvIDMnLFxuICAgICAgICBvdXRsaW5lOiAwLFxuICAgICAgICBwYWRkaW5nOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHdpdGhvdXQgYHdpZHRoYCBicm93c2VycyB3b24ndCBhbGxvdyBmb2N1c1xuICAgICAgICB3aWR0aDogMSxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIGRlc2t0b3BcbiAgICAgICAgY29sb3I6ICd0cmFuc3BhcmVudCcsXG5cbiAgICAgICAgLy8gcmVtb3ZlIGN1cnNvciBvbiBtb2JpbGUgd2hpbHN0IG1haW50YWluaW5nIFwic2Nyb2xsIGludG8gdmlld1wiIGJlaGF2aW91clxuICAgICAgICBsZWZ0OiAtMTAwLFxuICAgICAgICBvcGFjaXR5OiAwLFxuICAgICAgICBwb3NpdGlvbjogJ3JlbGF0aXZlJyxcbiAgICAgICAgdHJhbnNmb3JtOiAnc2NhbGUoLjAxKScsXG4gICAgICB9fVxuICAgIC8+XG4gICk7XG59XG4iXX0= */")}))}var nA=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function rA(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,o=e.onTopLeave,a=w.useRef(!1),s=w.useRef(!1),l=w.useRef(0),u=w.useRef(null),c=w.useCallback(function(b,y){if(u.current!==null){var v=u.current,x=v.scrollTop,C=v.scrollHeight,D=v.clientHeight,I=u.current,T=y>0,p=C-D-x,S=!1;p>y&&a.current&&(r&&r(b),a.current=!1),T&&s.current&&(o&&o(b),s.current=!1),T&&y>p?(n&&!a.current&&n(b),I.scrollTop=C,S=!0,a.current=!0):!T&&-y>x&&(i&&!s.current&&i(b),I.scrollTop=0,S=!0,s.current=!0),S&&nA(b)}},[n,r,i,o]),d=w.useCallback(function(b){c(b,b.deltaY)},[c]),h=w.useCallback(function(b){l.current=b.changedTouches[0].clientY},[]),f=w.useCallback(function(b){var y=l.current-b.changedTouches[0].clientY;c(b,y)},[c]),g=w.useCallback(function(b){if(b){var y=D9?{passive:!1}:!1;b.addEventListener("wheel",d,y),b.addEventListener("touchstart",h,y),b.addEventListener("touchmove",f,y)}},[f,h,d]),m=w.useCallback(function(b){b&&(b.removeEventListener("wheel",d,!1),b.removeEventListener("touchstart",h,!1),b.removeEventListener("touchmove",f,!1))},[f,h,d]);return w.useEffect(function(){if(t){var b=u.current;return g(b),function(){m(b)}}},[t,g,m]),function(b){u.current=b}}var Vm=["boxSizing","height","overflow","paddingRight","position"],Lm={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function jm(e){e.preventDefault()}function Hm(e){e.stopPropagation()}function Wm(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function zm(){return"ontouchstart"in window||navigator.maxTouchPoints}var Gm=!!(typeof window<"u"&&window.document&&window.document.createElement),Ro=0,Li={capture:!1,passive:!1};function iA(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,i=w.useRef({}),o=w.useRef(null),a=w.useCallback(function(l){if(Gm){var u=document.body,c=u&&u.style;if(r&&Vm.forEach(function(g){var m=c&&c[g];i.current[g]=m}),r&&Ro<1){var d=parseInt(i.current.paddingRight,10)||0,h=document.body?document.body.clientWidth:0,f=window.innerWidth-h+d||0;Object.keys(Lm).forEach(function(g){var m=Lm[g];c&&(c[g]=m)}),c&&(c.paddingRight="".concat(f,"px"))}u&&zm()&&(u.addEventListener("touchmove",jm,Li),l&&(l.addEventListener("touchstart",Wm,Li),l.addEventListener("touchmove",Hm,Li))),Ro+=1}},[r]),s=w.useCallback(function(l){if(Gm){var u=document.body,c=u&&u.style;Ro=Math.max(Ro-1,0),r&&Ro<1&&Vm.forEach(function(d){var h=i.current[d];c&&(c[d]=h)}),u&&zm()&&(u.removeEventListener("touchmove",jm,Li),l&&(l.removeEventListener("touchstart",Wm,Li),l.removeEventListener("touchmove",Hm,Li)))}},[r]);return w.useEffect(function(){if(t){var l=o.current;return a(l),function(){s(l)}}},[t,a,s]),function(l){o.current=l}}function oA(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var aA=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},sA=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:oA};function lA(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=r===void 0?!0:r,o=e.onBottomArrive,a=e.onBottomLeave,s=e.onTopArrive,l=e.onTopLeave,u=rA({isEnabled:i,onBottomArrive:o,onBottomLeave:a,onTopArrive:s,onTopLeave:l}),c=iA({isEnabled:n}),d=function(f){u(f),c(f)};return le(w.Fragment,null,n&&le("div",{onClick:aA,css:sA}),t(d))}function uA(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var cA=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:uA},dA=function(t){var n=t.name,r=t.onFocus;return le("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:cA,value:"",onChange:function(){}})},fA=dA;function bh(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function hA(){return bh(/^iPhone/i)}function oy(){return bh(/^Mac/i)}function gA(){return bh(/^iPad/i)||oy()&&navigator.maxTouchPoints>1}function mA(){return hA()||gA()}function pA(){return oy()||mA()}var bA=function(t){return t.label},vA=function(t){return t.label},yA=function(t){return t.value},xA=function(t){return!!t.isDisabled},CA={clearIndicator:tR,container:W9,control:lR,dropdownIndicator:Q9,group:fR,groupHeading:gR,indicatorsContainer:X9,indicatorSeparator:rR,input:vR,loadingIndicator:aR,loadingMessage:N9,menu:F9,menuList:M9,menuPortal:j9,multiValue:DR,multiValueLabel:SR,multiValueRemove:ER,noOptionsMessage:O9,option:FR,placeholder:kR,singleValue:OR,valueContainer:G9},wA={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},DA=4,ay=4,SA=38,EA=ay*2,IA={baseUnit:ay,controlHeight:SA,menuGutter:EA},gc={borderRadius:DA,colors:wA,spacing:IA},_A={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:km(),captureMenuScroll:!km(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:QR(),formatGroupLabel:bA,getOptionLabel:vA,getOptionValue:yA,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:xA,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!C9(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Zm(e,t,n,r){var i=uy(e,t,n),o=cy(e,t,n),a=ly(e,t),s=jl(e,t);return{type:"option",data:t,isDisabled:i,isSelected:o,label:a,value:s,index:r}}function sl(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(a,s){return Zm(e,a,t,s)}).filter(function(a){return Ym(e,a)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=Zm(e,n,t,r);return Ym(e,o)?o:void 0}).filter(S9)}function sy(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,rh(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function Xm(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,rh(r.options.map(function(i){return{data:i.data,id:"".concat(t,"-").concat(r.index,"-").concat(i.index)}}))):n.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),n},[])}function $A(e,t){return sy(sl(e,t))}function Ym(e,t){var n=e.inputValue,r=n===void 0?"":n,i=t.data,o=t.isSelected,a=t.label,s=t.value;return(!fy(e)||!o)&&dy(e,{label:a,value:s,data:i},r)}function RA(e,t){var n=e.focusedValue,r=e.selectValue,i=r.indexOf(n);if(i>-1){var o=t.indexOf(n);if(o>-1)return n;if(i<t.length)return t[i]}return null}function AA(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var mc=function(t,n){var r,i=(r=t.find(function(o){return o.data===n}))===null||r===void 0?void 0:r.id;return i||null},ly=function(t,n){return t.getOptionLabel(n)},jl=function(t,n){return t.getOptionValue(n)};function uy(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function cy(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=jl(e,t);return n.some(function(i){return jl(e,i)===r})}function dy(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var fy=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},FA=1,hy=function(e){Y$(n,e);var t=K$(n);function n(r){var i;if(Z$(this,n),i=t.call(this,r),i.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},i.blockOptionHover=!1,i.isComposing=!1,i.commonProps=void 0,i.initialTouchX=0,i.initialTouchY=0,i.openAfterFocus=!1,i.scrollToFocusedOptionOnUpdate=!1,i.userIsDragging=void 0,i.isAppleDevice=pA(),i.controlRef=null,i.getControlRef=function(l){i.controlRef=l},i.focusedOptionRef=null,i.getFocusedOptionRef=function(l){i.focusedOptionRef=l},i.menuListRef=null,i.getMenuListRef=function(l){i.menuListRef=l},i.inputRef=null,i.getInputRef=function(l){i.inputRef=l},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(l,u){var c=i.props,d=c.onChange,h=c.name;u.name=h,i.ariaOnChange(l,u),d(l,u)},i.setValue=function(l,u,c){var d=i.props,h=d.closeMenuOnSelect,f=d.isMulti,g=d.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:g}),h&&(i.setState({inputIsHiddenAfterUpdate:!f}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(l,{action:u,option:c})},i.selectOption=function(l){var u=i.props,c=u.blurInputOnSelect,d=u.isMulti,h=u.name,f=i.state.selectValue,g=d&&i.isOptionSelected(l,f),m=i.isOptionDisabled(l,f);if(g){var b=i.getOptionValue(l);i.setValue(f.filter(function(y){return i.getOptionValue(y)!==b}),"deselect-option",l)}else if(!m)d?i.setValue([].concat(rh(f),[l]),"select-option",l):i.setValue(l,"select-option");else{i.ariaOnChange(l,{action:"select-option",option:l,name:h});return}c&&i.blurInput()},i.removeValue=function(l){var u=i.props.isMulti,c=i.state.selectValue,d=i.getOptionValue(l),h=c.filter(function(g){return i.getOptionValue(g)!==d}),f=Is(u,h,h[0]||null);i.onChange(f,{action:"remove-value",removedValue:l}),i.focusInput()},i.clearValue=function(){var l=i.state.selectValue;i.onChange(Is(i.props.isMulti,[],null),{action:"clear",removedValues:l})},i.popValue=function(){var l=i.props.isMulti,u=i.state.selectValue,c=u[u.length-1],d=u.slice(0,u.length-1),h=Is(l,d,d[0]||null);i.onChange(h,{action:"pop-value",removedValue:c})},i.getFocusedOptionId=function(l){return mc(i.state.focusableOptionsWithIds,l)},i.getFocusableOptionsWithIds=function(){return Xm(sl(i.props,i.state.selectValue),i.getElementId("option"))},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];return p9.apply(void 0,[i.props.classNamePrefix].concat(u))},i.getOptionLabel=function(l){return ly(i.props,l)},i.getOptionValue=function(l){return jl(i.props,l)},i.getStyles=function(l,u){var c=i.props.unstyled,d=CA[l](u,c);d.boxSizing="border-box";var h=i.props.styles[l];return h?h(d,u):d},i.getClassNames=function(l,u){var c,d;return(c=(d=i.props.classNames)[l])===null||c===void 0?void 0:c.call(d,u)},i.getElementId=function(l){return"".concat(i.state.instancePrefix,"-").concat(l)},i.getComponents=function(){return LR(i.props)},i.buildCategorizedOptions=function(){return sl(i.props,i.state.selectValue)},i.getCategorizedOptions=function(){return i.props.menuIsOpen?i.buildCategorizedOptions():[]},i.buildFocusableOptions=function(){return sy(i.buildCategorizedOptions())},i.getFocusableOptions=function(){return i.props.menuIsOpen?i.buildFocusableOptions():[]},i.ariaOnChange=function(l,u){i.setState({ariaSelection:ce({value:l},u)})},i.onMenuMouseDown=function(l){l.button===0&&(l.stopPropagation(),l.preventDefault(),i.focusInput())},i.onMenuMouseMove=function(l){i.blockOptionHover=!1},i.onControlMouseDown=function(l){if(!l.defaultPrevented){var u=i.props.openMenuOnClick;i.state.isFocused?i.props.menuIsOpen?l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&i.onMenuClose():u&&i.openMenu("first"):(u&&(i.openAfterFocus=!0),i.focusInput()),l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&l.preventDefault()}},i.onDropdownIndicatorMouseDown=function(l){if(!(l&&l.type==="mousedown"&&l.button!==0)&&!i.props.isDisabled){var u=i.props,c=u.isMulti,d=u.menuIsOpen;i.focusInput(),d?(i.setState({inputIsHiddenAfterUpdate:!c}),i.onMenuClose()):i.openMenu("first"),l.preventDefault()}},i.onClearIndicatorMouseDown=function(l){l&&l.type==="mousedown"&&l.button!==0||(i.clearValue(),l.preventDefault(),i.openAfterFocus=!1,l.type==="touchend"?i.focusInput():setTimeout(function(){return i.focusInput()}))},i.onScroll=function(l){typeof i.props.closeMenuOnScroll=="boolean"?l.target instanceof HTMLElement&&$u(l.target)&&i.props.onMenuClose():typeof i.props.closeMenuOnScroll=="function"&&i.props.closeMenuOnScroll(l)&&i.props.onMenuClose()},i.onCompositionStart=function(){i.isComposing=!0},i.onCompositionEnd=function(){i.isComposing=!1},i.onTouchStart=function(l){var u=l.touches,c=u&&u.item(0);c&&(i.initialTouchX=c.clientX,i.initialTouchY=c.clientY,i.userIsDragging=!1)},i.onTouchMove=function(l){var u=l.touches,c=u&&u.item(0);if(c){var d=Math.abs(c.clientX-i.initialTouchX),h=Math.abs(c.clientY-i.initialTouchY),f=5;i.userIsDragging=d>f||h>f}},i.onTouchEnd=function(l){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(l.target)&&i.menuListRef&&!i.menuListRef.contains(l.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(l){i.userIsDragging||i.onControlMouseDown(l)},i.onClearIndicatorTouchEnd=function(l){i.userIsDragging||i.onClearIndicatorMouseDown(l)},i.onDropdownIndicatorTouchEnd=function(l){i.userIsDragging||i.onDropdownIndicatorMouseDown(l)},i.handleInputChange=function(l){var u=i.props.inputValue,c=l.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(c,{action:"input-change",prevInputValue:u}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(l){i.props.onFocus&&i.props.onFocus(l),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(l){var u=i.props.inputValue;if(i.menuListRef&&i.menuListRef.contains(document.activeElement)){i.inputRef.focus();return}i.props.onBlur&&i.props.onBlur(l),i.onInputChange("",{action:"input-blur",prevInputValue:u}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1})},i.onOptionHover=function(l){if(!(i.blockOptionHover||i.state.focusedOption===l)){var u=i.getFocusableOptions(),c=u.indexOf(l);i.setState({focusedOption:l,focusedOptionId:c>-1?i.getFocusedOptionId(l):null})}},i.shouldHideSelectedOptions=function(){return fy(i.props)},i.onValueInputFocus=function(l){l.preventDefault(),l.stopPropagation(),i.focus()},i.onKeyDown=function(l){var u=i.props,c=u.isMulti,d=u.backspaceRemovesValue,h=u.escapeClearsValue,f=u.inputValue,g=u.isClearable,m=u.isDisabled,b=u.menuIsOpen,y=u.onKeyDown,v=u.tabSelectsValue,x=u.openMenuOnFocus,C=i.state,D=C.focusedOption,I=C.focusedValue,T=C.selectValue;if(!m&&!(typeof y=="function"&&(y(l),l.defaultPrevented))){switch(i.blockOptionHover=!0,l.key){case"ArrowLeft":if(!c||f)return;i.focusValue("previous");break;case"ArrowRight":if(!c||f)return;i.focusValue("next");break;case"Delete":case"Backspace":if(f)return;if(I)i.removeValue(I);else{if(!d)return;c?i.popValue():g&&i.clearValue()}break;case"Tab":if(i.isComposing||l.shiftKey||!b||!v||!D||x&&i.isOptionSelected(D,T))return;i.selectOption(D);break;case"Enter":if(l.keyCode===229)break;if(b){if(!D||i.isComposing)return;i.selectOption(D);break}return;case"Escape":b?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:f}),i.onMenuClose()):g&&h&&i.clearValue();break;case" ":if(f)return;if(!b){i.openMenu("first");break}if(!D)return;i.selectOption(D);break;case"ArrowUp":b?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":b?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!b)return;i.focusOption("pageup");break;case"PageDown":if(!b)return;i.focusOption("pagedown");break;case"Home":if(!b)return;i.focusOption("first");break;case"End":if(!b)return;i.focusOption("last");break;default:return}l.preventDefault()}},i.state.instancePrefix="react-select-"+(i.props.instanceId||++FA),i.state.selectValue=Pm(r.value),r.menuIsOpen&&i.state.selectValue.length){var o=i.getFocusableOptionsWithIds(),a=i.buildFocusableOptions(),s=a.indexOf(i.state.selectValue[0]);i.state.focusableOptionsWithIds=o,i.state.focusedOption=a[s],i.state.focusedOptionId=mc(o,a[s])}return i}return X$(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Tm(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(i){var o=this.props,a=o.isDisabled,s=o.menuIsOpen,l=this.state.isFocused;(l&&!a&&i.isDisabled||l&&s&&!i.menuIsOpen)&&this.focusInput(),l&&a&&!i.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!a&&i.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Tm(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(i,o){this.props.onInputChange(i,o)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(i){var o=this,a=this.state,s=a.selectValue,l=a.isFocused,u=this.buildFocusableOptions(),c=i==="first"?0:u.length-1;if(!this.props.isMulti){var d=u.indexOf(s[0]);d>-1&&(c=d)}this.scrollToFocusedOptionOnUpdate=!(l&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:u[c],focusedOptionId:this.getFocusedOptionId(u[c])},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(i){var o=this.state,a=o.selectValue,s=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var l=a.indexOf(s);s||(l=-1);var u=a.length-1,c=-1;if(a.length){switch(i){case"previous":l===0?c=0:l===-1?c=u:c=l-1;break;case"next":l>-1&&l<u&&(c=l+1);break}this.setState({inputIsHidden:c!==-1,focusedValue:a[c]})}}}},{key:"focusOption",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,a=this.state.focusedOption,s=this.getFocusableOptions();if(s.length){var l=0,u=s.indexOf(a);a||(u=-1),i==="up"?l=u>0?u-1:s.length-1:i==="down"?l=(u+1)%s.length:i==="pageup"?(l=u-o,l<0&&(l=0)):i==="pagedown"?(l=u+o,l>s.length-1&&(l=s.length-1)):i==="last"&&(l=s.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:s[l],focusedValue:null,focusedOptionId:this.getFocusedOptionId(s[l])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(gc):ce(ce({},gc),this.props.theme):gc}},{key:"getCommonProps",value:function(){var i=this.clearValue,o=this.cx,a=this.getStyles,s=this.getClassNames,l=this.getValue,u=this.selectOption,c=this.setValue,d=this.props,h=d.isMulti,f=d.isRtl,g=d.options,m=this.hasValue();return{clearValue:i,cx:o,getStyles:a,getClassNames:s,getValue:l,hasValue:m,isMulti:h,isRtl:f,options:g,selectOption:u,selectProps:d,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var i=this.state.selectValue;return i.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var i=this.props,o=i.isClearable,a=i.isMulti;return o===void 0?a:o}},{key:"isOptionDisabled",value:function(i,o){return uy(this.props,i,o)}},{key:"isOptionSelected",value:function(i,o){return cy(this.props,i,o)}},{key:"filterOption",value:function(i,o){return dy(this.props,i,o)}},{key:"formatOptionLabel",value:function(i,o){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,s=this.state.selectValue;return this.props.formatOptionLabel(i,{context:o,inputValue:a,selectValue:s})}else return this.getOptionLabel(i)}},{key:"formatGroupLabel",value:function(i){return this.props.formatGroupLabel(i)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var i=this.props,o=i.isDisabled,a=i.isSearchable,s=i.inputId,l=i.inputValue,u=i.tabIndex,c=i.form,d=i.menuIsOpen,h=i.required,f=this.getComponents(),g=f.Input,m=this.state,b=m.inputIsHidden,y=m.ariaSelection,v=this.commonProps,x=s||this.getElementId("input"),C=ce(ce(ce({"aria-autocomplete":"list","aria-expanded":d,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":h,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},d&&{"aria-controls":this.getElementId("listbox")}),!a&&{"aria-readonly":!0}),this.hasValue()?(y==null?void 0:y.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?G.createElement(g,de({},v,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:x,innerRef:this.getInputRef,isDisabled:o,isHidden:b,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:c,type:"text",value:l},C)):G.createElement(tA,de({id:x,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Vl,onFocus:this.onInputFocus,disabled:o,tabIndex:u,inputMode:"none",form:c,value:""},C))}},{key:"renderPlaceholderOrValue",value:function(){var i=this,o=this.getComponents(),a=o.MultiValue,s=o.MultiValueContainer,l=o.MultiValueLabel,u=o.MultiValueRemove,c=o.SingleValue,d=o.Placeholder,h=this.commonProps,f=this.props,g=f.controlShouldRenderValue,m=f.isDisabled,b=f.isMulti,y=f.inputValue,v=f.placeholder,x=this.state,C=x.selectValue,D=x.focusedValue,I=x.isFocused;if(!this.hasValue()||!g)return y?null:G.createElement(d,de({},h,{key:"placeholder",isDisabled:m,isFocused:I,innerProps:{id:this.getElementId("placeholder")}}),v);if(b)return C.map(function(p,S){var $=p===D,_="".concat(i.getOptionLabel(p),"-").concat(i.getOptionValue(p));return G.createElement(a,de({},h,{components:{Container:s,Label:l,Remove:u},isFocused:$,isDisabled:m,key:_,index:S,removeProps:{onClick:function(){return i.removeValue(p)},onTouchEnd:function(){return i.removeValue(p)},onMouseDown:function(k){k.preventDefault()}},data:p}),i.formatOptionLabel(p,"value"))});if(y)return null;var T=C[0];return G.createElement(c,de({},h,{data:T,isDisabled:m}),this.formatOptionLabel(T,"value"))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),o=i.ClearIndicator,a=this.commonProps,s=this.props,l=s.isDisabled,u=s.isLoading,c=this.state.isFocused;if(!this.isClearable()||!o||l||!this.hasValue()||u)return null;var d={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return G.createElement(o,de({},a,{innerProps:d,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),o=i.LoadingIndicator,a=this.commonProps,s=this.props,l=s.isDisabled,u=s.isLoading,c=this.state.isFocused;if(!o||!u)return null;var d={"aria-hidden":"true"};return G.createElement(o,de({},a,{innerProps:d,isDisabled:l,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator,a=i.IndicatorSeparator;if(!o||!a)return null;var s=this.commonProps,l=this.props.isDisabled,u=this.state.isFocused;return G.createElement(a,de({},s,{isDisabled:l,isFocused:u}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator;if(!o)return null;var a=this.commonProps,s=this.props.isDisabled,l=this.state.isFocused,u={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return G.createElement(o,de({},a,{innerProps:u,isDisabled:s,isFocused:l}))}},{key:"renderMenu",value:function(){var i=this,o=this.getComponents(),a=o.Group,s=o.GroupHeading,l=o.Menu,u=o.MenuList,c=o.MenuPortal,d=o.LoadingMessage,h=o.NoOptionsMessage,f=o.Option,g=this.commonProps,m=this.state.focusedOption,b=this.props,y=b.captureMenuScroll,v=b.inputValue,x=b.isLoading,C=b.loadingMessage,D=b.minMenuHeight,I=b.maxMenuHeight,T=b.menuIsOpen,p=b.menuPlacement,S=b.menuPosition,$=b.menuPortalTarget,_=b.menuShouldBlockScroll,A=b.menuShouldScrollIntoView,k=b.noOptionsMessage,R=b.onMenuScrollToTop,M=b.onMenuScrollToBottom;if(!T)return null;var P=function(Z,H){var j=Z.type,V=Z.data,z=Z.isDisabled,Y=Z.isSelected,K=Z.label,Q=Z.value,ee=m===V,X=z?void 0:function(){return i.onOptionHover(V)},ue=z?void 0:function(){return i.selectOption(V)},fe="".concat(i.getElementId("option"),"-").concat(H),he={id:fe,onClick:ue,onMouseMove:X,onMouseOver:X,tabIndex:-1,role:"option","aria-selected":i.isAppleDevice?void 0:Y};return G.createElement(f,de({},g,{innerProps:he,data:V,isDisabled:z,isSelected:Y,key:fe,label:K,type:j,value:Q,isFocused:ee,innerRef:ee?i.getFocusedOptionRef:void 0}),i.formatOptionLabel(Z.data,"menu"))},F;if(this.hasOptions())F=this.getCategorizedOptions().map(function(W){if(W.type==="group"){var Z=W.data,H=W.options,j=W.index,V="".concat(i.getElementId("group"),"-").concat(j),z="".concat(V,"-heading");return G.createElement(a,de({},g,{key:V,data:Z,options:H,Heading:s,headingProps:{id:z,data:W.data},label:i.formatGroupLabel(W.data)}),W.options.map(function(Y){return P(Y,"".concat(j,"-").concat(Y.index))}))}else if(W.type==="option")return P(W,"".concat(W.index))});else if(x){var B=C({inputValue:v});if(B===null)return null;F=G.createElement(d,g,B)}else{var N=k({inputValue:v});if(N===null)return null;F=G.createElement(h,g,N)}var O={minMenuHeight:D,maxMenuHeight:I,menuPlacement:p,menuPosition:S,menuShouldScrollIntoView:A},L=G.createElement(P9,de({},g,O),function(W){var Z=W.ref,H=W.placerProps,j=H.placement,V=H.maxHeight;return G.createElement(l,de({},g,O,{innerRef:Z,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove},isLoading:x,placement:j}),G.createElement(lA,{captureEnabled:y,onTopArrive:R,onBottomArrive:M,lockEnabled:_},function(z){return G.createElement(u,de({},g,{innerRef:function(K){i.getMenuListRef(K),z(K)},innerProps:{role:"listbox","aria-multiselectable":g.isMulti,id:i.getElementId("listbox")},isLoading:x,maxHeight:V,focusedOption:m}),F)}))});return $||S==="fixed"?G.createElement(c,de({},g,{appendTo:$,controlElement:this.controlRef,menuPlacement:p,menuPosition:S}),L):L}},{key:"renderFormField",value:function(){var i=this,o=this.props,a=o.delimiter,s=o.isDisabled,l=o.isMulti,u=o.name,c=o.required,d=this.state.selectValue;if(c&&!this.hasValue()&&!s)return G.createElement(fA,{name:u,onFocus:this.onValueInputFocus});if(!(!u||s))if(l)if(a){var h=d.map(function(m){return i.getOptionValue(m)}).join(a);return G.createElement("input",{name:u,type:"hidden",value:h})}else{var f=d.length>0?d.map(function(m,b){return G.createElement("input",{key:"i-".concat(b),name:u,type:"hidden",value:i.getOptionValue(m)})}):G.createElement("input",{name:u,type:"hidden",value:""});return G.createElement("div",null,f)}else{var g=d[0]?this.getOptionValue(d[0]):"";return G.createElement("input",{name:u,type:"hidden",value:g})}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,o=this.state,a=o.ariaSelection,s=o.focusedOption,l=o.focusedValue,u=o.isFocused,c=o.selectValue,d=this.getFocusableOptions();return G.createElement(UR,de({},i,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:s,focusedValue:l,isFocused:u,selectValue:c,focusableOptions:d,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var i=this.getComponents(),o=i.Control,a=i.IndicatorsContainer,s=i.SelectContainer,l=i.ValueContainer,u=this.props,c=u.className,d=u.id,h=u.isDisabled,f=u.menuIsOpen,g=this.state.isFocused,m=this.commonProps=this.getCommonProps();return G.createElement(s,de({},m,{className:c,innerProps:{id:d,onKeyDown:this.onKeyDown},isDisabled:h,isFocused:g}),this.renderLiveRegion(),G.createElement(o,de({},m,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:h,isFocused:g,menuIsOpen:f}),G.createElement(l,de({},m,{isDisabled:h}),this.renderPlaceholderOrValue(),this.renderInput()),G.createElement(a,de({},m,{isDisabled:h}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(i,o){var a=o.prevProps,s=o.clearFocusValueOnUpdate,l=o.inputIsHiddenAfterUpdate,u=o.ariaSelection,c=o.isFocused,d=o.prevWasFocused,h=o.instancePrefix,f=i.options,g=i.value,m=i.menuIsOpen,b=i.inputValue,y=i.isMulti,v=Pm(g),x={};if(a&&(g!==a.value||f!==a.options||m!==a.menuIsOpen||b!==a.inputValue)){var C=m?$A(i,v):[],D=m?Xm(sl(i,v),"".concat(h,"-option")):[],I=s?RA(o,v):null,T=AA(o,C),p=mc(D,T);x={selectValue:v,focusedOption:T,focusedOptionId:p,focusableOptionsWithIds:D,focusedValue:I,clearFocusValueOnUpdate:!1}}var S=l!=null&&i!==a?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},$=u,_=c&&d;return c&&!_&&($={value:Is(y,v,v[0]||null),options:v,action:"initial-input-focus"},_=!d),(u==null?void 0:u.action)==="initial-input-focus"&&($=null),ce(ce(ce({},x),S),{},{prevProps:i,ariaSelection:$,prevWasFocused:_})}}]),n}(w.Component);hy.defaultProps=_A;var PA=w.forwardRef(function(e,t){var n=G$(e);return G.createElement(hy,de({ref:t},n))}),TA=PA;const kA="_container_26hat_1",pc={container:kA,"error-payhere":"_error-payhere_26hat_4","error-laba":"_error-laba_26hat_7"},MA={control:e=>({...e,border:"1px solid #D6D6D6","&:hover":{borderColor:"#0163C8"},borderRadius:"4px",outline:"none",boxShadow:"none",color:"#898989",backgroundColor:"white",margin:"0px",cursor:"text",minHeight:32,fontSize:"12px",lineHeight:"16px",fontFamily:"Lato"}),dropdownIndicator:e=>({...e,padding:"0px 8px"}),menu:e=>({...e,position:"static",boxShadow:"none",marginTop:"0px"}),option:(e,t)=>({...e,cursor:"pointer",background:t.isSelected?"#F0F7FF":"white",color:t.isSelected?"#0163C8":e.color,"&:hover":{background:t.isDisabled?"":"#F0F7FF",color:t.isDisabled?"":"#0163C8",cursor:t.isDisabled?"default":""}}),group:e=>({...e,padding:0}),placeholder:e=>({...e,fontSize:"12px",lineHeight:"16px",fontFamily:"Lato"})},BA={control:e=>({...e,border:"1px solid #D6D6D6","&:hover":{borderColor:"#0163C8"},borderRadius:"4px",outline:"none",boxShadow:"none",color:"#898989",backgroundColor:"white",margin:"0px",cursor:"text",minHeight:32}),dropdownIndicator:e=>({...e,padding:"0px 8px"}),menu:e=>({...e,position:"static",boxShadow:"none",marginTop:"0px"}),option:(e,t)=>({...e,cursor:"pointer",background:t.isSelected?"#F0F7FF":"white",color:t.isSelected?"#0163C8":e.color,"&:hover":{background:t.isDisabled?"":"#F0F7FF",color:t.isDisabled?"":"#0163C8",cursor:t.isDisabled?"default":""}}),group:e=>({...e,padding:0})},OA={control:()=>({display:"none"}),dropdownIndicator:e=>({...e,padding:"0px 8px"}),menu:e=>({...e,position:"static",boxShadow:"none",marginTop:"0px"}),option:(e,t)=>({...e,cursor:"pointer",background:t.isSelected?"#F0F7FF":"white",color:t.isSelected?"#0163C8":e.color,"&:hover":{background:t.isDisabled?"":"#F0F7FF",color:t.isDisabled?"":"#0163C8",cursor:t.isDisabled?"default":""}}),group:e=>({...e,padding:0})},gy=w.forwardRef((e,t)=>{const{width:n,children:r,components:i,classNameContainer:o="",classNameContainerShowSelect:a="",classNameContainerSelect:s="",classNameLabelError:l="",error:u,onChange:c,externalValue:d=!1,defaultValueButtonDropdown:h={},autoClose:f=!0,onMenuOpen:g=()=>{},autoCloseOutside:m=!0,styleInnerPopper:b={},onMenuClose:y=()=>{},zIndexPopper:v=0,id:x="select-dropdown-container",idPopover:C="select-dropdown-container-popover",useAutoPlacement:D,flipOptions:I,autoPlacementOptions:T,withSearch:p=!1,floatingOptions:S={},offsetPopover:$=5,selectProps:_={},errorLabel:A="payhere",controlType:k="payhere",actionValueChange:R=()=>{},...M}=e,P={error:{laba:pc["error-laba"],payhere:pc["error-payhere"]}},F=w.useRef(null),B=w.useRef(null),[N,O]=w.useState(""),[L,W]=w.useState(!1),[Z,H]=w.useState({}),[j,V]=w.useState(0),z=ue=>{var fe;(fe=B.current)==null||fe.setShow(ue),W(ue)},Y=()=>{if(d)return e.isMulti?h:[h]},K=ue=>{var fe;(fe=B.current)==null||fe.handlerShow(ue),V(F.current.offsetWidth),W(he=>!he)},Q=()=>{var ue;m&&((ue=B.current)==null||ue.setShow(!1))},ee=(ue,fe)=>{var he;f&&(W(!1),(he=B.current)==null||he.setShow(!1)),typeof c=="function"&&c(ue,fe),d||H(ue)},X=()=>{F.current&&V(F.current.offsetWidth)};return Ci(()=>{d&&H(h),R(h)},[d,h]),w.useEffect(()=>{L?g():L||(y(),O(""))},[L]),w.useImperativeHandle(t,()=>({selectValue:Z,setSelectValue:H,handlerClose:Q,handlerShow:K,show:L,setShow:z}),[L,wa(Z)]),w.useEffect(()=>(window.addEventListener("resize",X),window.addEventListener("load",X),()=>{window.removeEventListener("resize",X),window.removeEventListener("load",X)}),[F]),E.jsxs("div",{id:x,className:`${pc.container} ${o} ${L?`${a} open-popover`:null}`,ref:F,children:[r({selectValue:Z,setSelectValue:H,handlerClose:Q,handlerShow:K,show:L,setShow:z}),E.jsx(br,{ref:B,offset:$,useAutoPlacement:D,flipOptions:I,autoPlacementOptions:T,zIndex:v,styleInnerPopover:b,id:C,width:typeof n=="function"?n(j,Z):n||j,className:s,floatingOptions:S,children:E.jsx(TA,{className:"1ru-w-full",defaultValue:Y(),inputValue:N,onInputChange:(ue,{action:fe})=>{fe==="input-change"&&O(ue)},openMenuOnFocus:!0,autoFocus:!1,backspaceRemovesValue:!1,components:{IndicatorSeparator:null,...i},controlShouldRenderValue:!1,hideSelectedOptions:!1,isClearable:!1,menuIsOpen:!0,tabSelectsValue:!1,styles:p?k==="laba"?MA:BA:OA,noOptionsMessage:()=>"Tidak ada data.",onChange:ee,selectProps:{..._,setShowDropdown:z},...M})}),E.jsx("div",{className:`${P.error[A]} ${l}`,children:u})]})});gy.displayName="SelectDropdownContainer";function ro(e,t){return e-t*Math.floor(e/t)}const my=1721426;function ui(e,t,n,r){t=ns(e,t);let i=t-1,o=-2;return n<=2?o=0:Fr(t)&&(o=-1),my-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+o+r)}function Fr(e){return e%4===0&&(e%100!==0||e%400===0)}function ns(e,t){return e==="BC"?1-t:t}function Ru(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const NA={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class Qt{fromJulianDay(t){let n=t,r=n-my,i=Math.floor(r/146097),o=ro(r,146097),a=Math.floor(o/36524),s=ro(o,36524),l=Math.floor(s/1461),u=ro(s,1461),c=Math.floor(u/365),d=i*400+a*100+l*4+c+(a!==4&&c!==4?1:0),[h,f]=Ru(d),g=n-ui(h,f,1,1),m=2;n<ui(h,f,3,1)?m=0:Fr(f)&&(m=1);let b=Math.floor(((g+m)*12+373)/367),y=n-ui(h,f,b,1)+1;return new tt(h,f,b,y)}toJulianDay(t){return ui(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return NA[Fr(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return Fr(t.year)?366:365}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}}const VA={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function rt(e,t){return t=ct(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function kd(e,t){return e.calendar.identifier===t.calendar.identifier&&e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function LA(e,t){return rt(e,vh(t))}function Au(e,t){let n=e.calendar.toJulianDay(e),r=Math.ceil(n+1-GA(t))%7;return r<0&&(r+=7),r}function jA(e){return lr(Date.now(),e)}function vh(e){return Kt(jA(e))}function py(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function by(e,t){return Um(e)-Um(t)}function Um(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let bc=null;function Di(){return bc==null&&(bc=new Intl.DateTimeFormat().resolvedOptions().timeZone),bc}function rs(e){return e.subtract({days:e.day-1})}function Md(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function HA(e){return rs(e.subtract({months:e.month-1}))}function _a(e,t){let n=Au(e,t);return e.subtract({days:n})}function WA(e,t){return _a(e,t).add({days:6})}const Jm=new Map;function zA(e){if(Intl.Locale){let n=Jm.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&Jm.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function GA(e){let t=zA(e);return t&&VA[t]||0}function vy(e,t){let n=e.calendar.getDaysInMonth(e);return Math.ceil((Au(rs(e),t)+n)/7)}function yh(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function xh(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function mo(e){e=ct(e,new Qt);let t=ns(e.era,e.year);return yy(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function yy(e,t,n,r,i,o,a){let s=new Date;return s.setUTCHours(r,i,o,a),s.setUTCFullYear(e,t-1,n),s.getTime()}function Bd(e,t){if(t==="UTC")return 0;if(e>0&&t===Di())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:o,minute:a,second:s}=xy(e,t);return yy(n,r,i,o,a,s,0)-Math.floor(e/1e3)*1e3}const Km=new Map;function xy(e,t){let n=Km.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),Km.set(t,n));let r=n.formatToParts(new Date(e)),i={};for(let o of r)o.type!=="literal"&&(i[o.type]=o.value);return{year:i.era==="BC"||i.era==="B"?-i.year+1:+i.year,month:+i.month,day:+i.day,hour:i.hour==="24"?0:+i.hour,minute:+i.minute,second:+i.second}}const qm=864e5;function ZA(e,t,n,r){return(n===r?[n]:[n,r]).filter(o=>XA(e,t,o))}function XA(e,t,n){let r=xy(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function rr(e,t,n="compatible"){let r=Lr(e);if(t==="UTC")return mo(r);if(t===Di()&&n==="compatible"){r=ct(r,new Qt);let l=new Date,u=ns(r.era,r.year);return l.setFullYear(u,r.month-1,r.day),l.setHours(r.hour,r.minute,r.second,r.millisecond),l.getTime()}let i=mo(r),o=Bd(i-qm,t),a=Bd(i+qm,t),s=ZA(r,t,i-o,i-a);if(s.length===1)return s[0];if(s.length>1)switch(n){case"compatible":case"earlier":return s[0];case"later":return s[s.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(i-o,i-a);case"compatible":case"later":return Math.max(i-o,i-a);case"reject":throw new RangeError("No such absolute time found")}}function Cy(e,t,n="compatible"){return new Date(rr(e,t,n))}function lr(e,t){let n=Bd(e,t),r=new Date(e+n),i=r.getUTCFullYear(),o=r.getUTCMonth()+1,a=r.getUTCDate(),s=r.getUTCHours(),l=r.getUTCMinutes(),u=r.getUTCSeconds(),c=r.getUTCMilliseconds();return new Ra(i,o,a,t,n,s,l,u,c)}function Kt(e){return new tt(e.calendar,e.era,e.year,e.month,e.day)}function Lr(e,t){let n=0,r=0,i=0,o=0;if("timeZone"in e)({hour:n,minute:r,second:i,millisecond:o}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:i,millisecond:o}=t),new Hl(e.calendar,e.era,e.year,e.month,e.day,n,r,i,o)}function ct(e,t){if(e.calendar.identifier===t.identifier)return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,Si(r),r}function YA(e,t,n){if(e instanceof Ra)return e.timeZone===t?e:JA(e,t);let r=rr(e,t,n);return lr(r,t)}function UA(e){let t=mo(e)-e.offset;return new Date(t)}function JA(e,t){let n=mo(e)-e.offset;return ct(lr(n,t),e.calendar)}const Ao=36e5;function Fu(e,t){let n=e.copy(),r="hour"in n?Ey(n,t):0;Od(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,Nd(n),wy(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,KA(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let i=n.calendar.getYearsInEra(n);if(n.year>i){var o,a;let l=(o=(a=n.calendar).isInverseEra)===null||o===void 0?void 0:o.call(a,n);n.year=i,n.month=l?1:n.calendar.getMonthsInYear(n),n.day=l?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let s=n.calendar.getMonthsInYear(n);return n.month>s&&(n.month=s,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function Od(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function Nd(e){for(;e.month<1;)Od(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Od(e,1)}function KA(e){for(;e.day<1;)e.month--,Nd(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,Nd(e)}function wy(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function Si(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),wy(e)}function Ch(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function Dy(e,t){return Fu(e,Ch(t))}function wh(e,t){let n=e.copy();return t.era!=null&&(n.era=t.era),t.year!=null&&(n.year=t.year),t.month!=null&&(n.month=t.month),t.day!=null&&(n.day=t.day),Si(n),n}function $a(e,t){let n=e.copy();return t.hour!=null&&(n.hour=t.hour),t.minute!=null&&(n.minute=t.minute),t.second!=null&&(n.second=t.second),t.millisecond!=null&&(n.millisecond=t.millisecond),Sy(n),n}function qA(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=_s(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=_s(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=_s(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=_s(e.hour,24),t}function Sy(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function _s(e,t){let n=e%t;return n<0&&(n+=t),n}function Ey(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,qA(e)}function Iy(e,t){let n=e.copy();return Ey(n,t),n}function QA(e,t){return Iy(e,Ch(t))}function Dh(e,t,n,r){let i=e.copy();switch(t){case"era":{let s=e.calendar.getEras(),l=s.indexOf(e.era);if(l<0)throw new Error("Invalid era: "+e.era);l=ur(l,n,0,s.length-1,r==null?void 0:r.round),i.era=s[l],Si(i);break}case"year":var o,a;!((o=(a=i.calendar).isInverseEra)===null||o===void 0)&&o.call(a,i)&&(n=-n),i.year=ur(e.year,n,-1/0,9999,r==null?void 0:r.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,e);break;case"month":i.month=ur(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":i.day=ur(e.day,n,1,e.calendar.getDaysInMonth(e),r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(i),Si(i),i}function Sh(e,t,n,r){let i=e.copy();switch(t){case"hour":{let o=e.hour,a=0,s=23;if((r==null?void 0:r.hourCycle)===12){let l=o>=12;a=l?12:0,s=l?23:11}i.hour=ur(o,n,a,s,r==null?void 0:r.round);break}case"minute":i.minute=ur(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":i.second=ur(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":i.millisecond=ur(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return i}function ur(e,t,n,r,i=!1){if(i){e+=Math.sign(t),e<n&&(e=r);let o=Math.abs(t);t>0?e=Math.ceil(e/o)*o:e=Math.floor(e/o)*o,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function _y(e,t){let n;if(t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0){let i=Fu(Lr(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=rr(i,e.timeZone)}else n=mo(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=lr(n,e.timeZone);return ct(r,e.calendar)}function eF(e,t){return _y(e,Ch(t))}function tF(e,t,n,r){switch(t){case"hour":{let i=0,o=23;if((r==null?void 0:r.hourCycle)===12){let g=e.hour>=12;i=g?12:0,o=g?23:11}let a=Lr(e),s=ct($a(a,{hour:i}),new Qt),l=[rr(s,e.timeZone,"earlier"),rr(s,e.timeZone,"later")].filter(g=>lr(g,e.timeZone).day===s.day)[0],u=ct($a(a,{hour:o}),new Qt),c=[rr(u,e.timeZone,"earlier"),rr(u,e.timeZone,"later")].filter(g=>lr(g,e.timeZone).day===u.day).pop(),d=mo(e)-e.offset,h=Math.floor(d/Ao),f=d%Ao;return d=ur(h,n,Math.floor(l/Ao),Math.floor(c/Ao),r==null?void 0:r.round)*Ao+f,ct(lr(d,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return Sh(e,t,n,r);case"era":case"year":case"month":case"day":{let i=Dh(Lr(e),t,n,r),o=rr(i,e.timeZone);return ct(lr(o,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function nF(e,t,n){let r=Lr(e),i=$a(wh(r,t),t);if(i.compare(r)===0)return e;let o=rr(i,e.timeZone,n);return ct(lr(o,e.timeZone),e.calendar)}const rF=/^(\d{4})-(\d{2})-(\d{2})$/;function Eh(e){let t=e.match(rF);if(!t)throw new Error("Invalid ISO 8601 date string: "+e);let n=new tt(vc(t[1],0,9999),vc(t[2],1,12),1);return n.day=vc(t[3],0,n.calendar.getDaysInMonth(n)),n}function vc(e,t,n){let r=Number(e);if(r<t||r>n)throw new RangeError(`Value out of range: ${t} <= ${r} <= ${n}`);return r}function $y(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function Ry(e){let t=ct(e,new Qt);return`${String(t.year).padStart(4,"0")}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function Ay(e){return`${Ry(e)}T${$y(e)}`}function iF(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let n=Math.floor(e/36e5),r=e%36e5/6e4;return`${t}${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`}function oF(e){return`${Ay(e)}${iF(e.offset)}[${e.timeZone}]`}function aF(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function is(e,t,n){aF(e,t),t.set(e,n)}function Ih(e){let t=typeof e[0]=="object"?e.shift():new Qt,n;if(typeof e[0]=="string")n=e.shift();else{let a=t.getEras();n=a[a.length-1]}let r=e.shift(),i=e.shift(),o=e.shift();return[t,n,r,i,o]}var sF=new WeakMap;class tt{copy(){return this.era?new tt(this.calendar,this.era,this.year,this.month,this.day):new tt(this.calendar,this.year,this.month,this.day)}add(t){return Fu(this,t)}subtract(t){return Dy(this,t)}set(t){return wh(this,t)}cycle(t,n,r){return Dh(this,t,n,r)}toDate(t){return Cy(this,t)}toString(){return Ry(this)}compare(t){return py(this,t)}constructor(...t){is(this,sF,{writable:!0,value:void 0});let[n,r,i,o,a]=Ih(t);this.calendar=n,this.era=r,this.year=i,this.month=o,this.day=a,Si(this)}}var lF=new WeakMap;class _h{copy(){return new _h(this.hour,this.minute,this.second,this.millisecond)}add(t){return Iy(this,t)}subtract(t){return QA(this,t)}set(t){return $a(this,t)}cycle(t,n,r){return Sh(this,t,n,r)}toString(){return $y(this)}compare(t){return by(this,t)}constructor(t=0,n=0,r=0,i=0){is(this,lF,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=i,Sy(this)}}var uF=new WeakMap;class Hl{copy(){return this.era?new Hl(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new Hl(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return Fu(this,t)}subtract(t){return Dy(this,t)}set(t){return wh($a(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return Dh(this,t,n,r);default:return Sh(this,t,n,r)}}toDate(t,n){return Cy(this,t,n)}toString(){return Ay(this)}compare(t){let n=py(this,t);return n===0?by(this,Lr(t)):n}constructor(...t){is(this,uF,{writable:!0,value:void 0});let[n,r,i,o,a]=Ih(t);this.calendar=n,this.era=r,this.year=i,this.month=o,this.day=a,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Si(this)}}var cF=new WeakMap;class Ra{copy(){return this.era?new Ra(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new Ra(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return _y(this,t)}subtract(t){return eF(this,t)}set(t,n){return nF(this,t,n)}cycle(t,n,r){return tF(this,t,n,r)}toDate(){return UA(this)}toString(){return oF(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-YA(t,this.timeZone).toDate().getTime()}constructor(...t){is(this,cF,{writable:!0,value:void 0});let[n,r,i,o,a]=Ih(t),s=t.shift(),l=t.shift();this.calendar=n,this.era=r,this.year=i,this.month=o,this.day=a,this.timeZone=s,this.offset=l,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Si(this)}}const io=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],dF=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],ll=[1867,1911,1925,1988,2018],_r=["meiji","taisho","showa","heisei","reiwa"];function Qm(e){const t=io.findIndex(([n,r,i])=>e.year<n||e.year===n&&e.month<r||e.year===n&&e.month===r&&e.day<i);return t===-1?io.length-1:t===0?0:t-1}function yc(e){let t=ll[_r.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new tt(e.year+t,e.month,e.day)}class fF extends Qt{fromJulianDay(t){let n=super.fromJulianDay(t),r=Qm(n);return new tt(this,_r[r],n.year-ll[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(yc(t))}balanceDate(t){let n=yc(t),r=Qm(n);_r[r]!==t.era&&(t.era=_r[r],t.year=n.year-ll[r]),this.constrainDate(t)}constrainDate(t){let n=_r.indexOf(t.era),r=dF[n];if(r!=null){let[i,o,a]=r,s=i-ll[n];t.year=Math.max(1,Math.min(s,t.year)),t.year===s&&(t.month=Math.min(o,t.month),t.month===o&&(t.day=Math.min(a,t.day)))}if(t.year===1&&n>=0){let[,i,o]=io[n];t.month=Math.max(i,t.month),t.month===i&&(t.day=Math.max(o,t.day))}}getEras(){return _r}getYearsInEra(t){let n=_r.indexOf(t.era),r=io[n],i=io[n+1];if(i==null)return 9999-r[0]+1;let o=i[0]-r[0];return(t.month<i[1]||t.month===i[1]&&t.day<i[2])&&o++,o}getDaysInMonth(t){return super.getDaysInMonth(yc(t))}getMinimumMonthInYear(t){let n=ep(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=ep(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function ep(e){if(e.year===1){let t=_r.indexOf(e.era);return io[t]}}const Fy=-543;class hF extends Qt{fromJulianDay(t){let n=super.fromJulianDay(t),r=ns(n.era,n.year);return new tt(this,r-Fy,n.month,n.day)}toJulianDay(t){return super.toJulianDay(tp(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(tp(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function tp(e){let[t,n]=Ru(e.year+Fy);return new tt(t,n,e.month,e.day)}const Wl=1911;function Py(e){return e.era==="minguo"?e.year+Wl:1-e.year+Wl}function np(e){let t=e-Wl;return t>0?["minguo",t]:["before_minguo",1-t]}class gF extends Qt{fromJulianDay(t){let n=super.fromJulianDay(t),r=ns(n.era,n.year),[i,o]=np(r);return new tt(this,i,o,n.month,n.day)}toJulianDay(t){return super.toJulianDay(rp(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=np(Py(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(rp(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-Wl}constructor(...t){super(...t),this.identifier="roc"}}function rp(e){let[t,n]=Ru(Py(e));return new tt(t,n,e.month,e.day)}const ip=1948320,op=[0,31,62,93,124,155,186,216,246,276,306,336];class mF{fromJulianDay(t){let n=t-ip,r=1+Math.floor((33*n+3)/12053),i=365*(r-1)+Math.floor((8*r+21)/33),o=n-i,a=o<216?Math.floor(o/31):Math.floor((o-6)/30),s=o-op[a]+1;return new tt(this,r,a+1,s)}toJulianDay(t){let n=ip-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=op[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||ro(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const xc=78,ap=80;class pF extends Qt{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-xc,i=t-ui(n.era,n.year,1,1),o;i<ap?(r--,o=Fr(n.year-1)?31:30,i+=o+155+90+10):(o=Fr(n.year)?31:30,i-=ap);let a,s;if(i<o)a=1,s=i+1;else{let l=i-o;l<155?(a=Math.floor(l/31)+2,s=l%31+1):(l-=155,a=Math.floor(l/30)+7,s=l%30+1)}return new tt(this,r,a,s)}toJulianDay(t){let n=t.year+xc,[r,i]=Ru(n),o,a;return Fr(i)?(o=31,a=ui(r,i,3,21)):(o=30,a=ui(r,i,3,22)),t.month===1?a+t.day-1:(a+=o+Math.min(t.month-2,5)*31,t.month>=8&&(a+=(t.month-7)*30),a+=t.day-1,a)}getDaysInMonth(t){return t.month===1&&Fr(t.year+xc)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const zl=1948440,sp=1948439,ln=1300,ji=1600,bF=460322;function Gl(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function Ty(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+Gl(t,r,1,1)))/29.5)+1),o=n-Gl(t,r,i,1)+1;return new tt(e,r,i,o)}function lp(e){return(14+11*e)%30<11}class $h{fromJulianDay(t){return Ty(this,zl,t)}toJulianDay(t){return Gl(zl,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&lp(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return lp(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class vF extends $h{fromJulianDay(t){return Ty(this,sp,t)}toJulianDay(t){return Gl(sp,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const yF="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let Vd,oo;function ul(e){return bF+oo[e-ln]}function jo(e,t){let n=e-ln,r=1<<11-(t-1);return Vd[n]&r?30:29}function up(e,t){let n=ul(e);for(let r=1;r<t;r++)n+=jo(e,r);return n}function cp(e){return oo[e+1-ln]-oo[e-ln]}class xF extends $h{fromJulianDay(t){let n=t-zl,r=ul(ln),i=ul(ji);if(n<r||n>i)return super.fromJulianDay(t);{let o=ln-1,a=1,s=1;for(;s>0;){o++,s=n-ul(o)+1;let l=cp(o);if(s===l){a=12;break}else if(s<l){let u=jo(o,a);for(a=1;s>u;)s-=u,a++,u=jo(o,a);break}}return new tt(this,o,a,n-up(o,a)+1)}}toJulianDay(t){return t.year<ln||t.year>ji?super.toJulianDay(t):zl+up(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<ln||t.year>ji?super.getDaysInMonth(t):jo(t.year,t.month)}getDaysInYear(t){return t.year<ln||t.year>ji?super.getDaysInYear(t):cp(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",Vd||(Vd=new Uint16Array(Uint8Array.from(atob(yF),t=>t.charCodeAt(0)).buffer)),!oo){oo=new Uint32Array(ji-ln+1);let t=0;for(let n=ln;n<=ji;n++){oo[n-ln]=t;for(let r=1;r<=12;r++)t+=jo(n,r)}}}}const dp=347997,ky=1080,My=24*ky,CF=29,wF=12*ky+793,DF=CF*My+wF;function oi(e){return ro(e*7+1,19)<7}function cl(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return ro(3*(r+1),7)<3&&(r+=1),r}function SF(e){let t=cl(e-1),n=cl(e);return cl(e+1)-n===356?2:n-t===382?1:0}function ea(e){return cl(e)+SF(e)}function By(e){return ea(e+1)-ea(e)}function EF(e){let t=By(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function $s(e,t){if(t>=6&&!oi(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=EF(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?oi(e)?30:0:30}class IF{fromJulianDay(t){let n=t-dp,r=n*My/DF,i=Math.floor((19*r+234)/235)+1,o=ea(i),a=Math.floor(n-o);for(;a<1;)i--,o=ea(i),a=Math.floor(n-o);let s=1,l=0;for(;l<a;)l+=$s(i,s),s++;s--,l-=$s(i,s);let u=a-l;return new tt(this,i,s,u)}toJulianDay(t){let n=ea(t.year);for(let r=1;r<t.month;r++)n+=$s(t.year,r);return n+t.day+dp}getDaysInMonth(t){return $s(t.year,t.month)}getMonthsInYear(t){return oi(t.year)?13:12}getDaysInYear(t){return By(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&(oi(n.year)&&!oi(t.year)&&n.month>6?t.month--:!oi(n.year)&&oi(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const Ld=1723856,fp=1824665,jd=5500;function Zl(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function Rh(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-Zl(e,n,1,1))/30),i=t+1-Zl(e,n,r,1);return[n,r,i]}function Oy(e){return Math.floor(e%4/3)}function Ny(e,t){return t%13!==0?30:Oy(e)+5}class Ah{fromJulianDay(t){let[n,r,i]=Rh(Ld,t),o="AM";return n<=0&&(o="AA",n+=jd),new tt(this,o,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=jd),Zl(Ld,n,t.month,t.day)}getDaysInMonth(t){return Ny(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+Oy(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class _F extends Ah{fromJulianDay(t){let[n,r,i]=Rh(Ld,t);return n+=jd,new tt(this,"AA",n,r,i)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class $F extends Ah{fromJulianDay(t){let[n,r,i]=Rh(fp,t),o="CE";return n<=0&&(o="BCE",n=1-n),new tt(this,o,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),Zl(fp,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),Ny(n,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}}function os(e){switch(e){case"buddhist":return new hF;case"ethiopic":return new Ah;case"ethioaa":return new _F;case"coptic":return new $F;case"hebrew":return new IF;case"indian":return new pF;case"islamic-civil":return new $h;case"islamic-tbla":return new vF;case"islamic-umalqura":return new xF;case"japanese":return new fF;case"persian":return new mF;case"roc":return new gF;case"gregory":default:return new Qt}}let Cc=new Map;class Aa{format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,n){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(n)}`}formatRangeToParts(t,n){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.formatter.formatToParts(t),i=this.formatter.formatToParts(n);return[...r.map(o=>({...o,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(o=>({...o,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return FF()&&(this.resolvedHourCycle||(this.resolvedHourCycle=PF(t.locale,this.options)),t.hourCycle=this.resolvedHourCycle,t.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),t.calendar==="ethiopic-amete-alem"&&(t.calendar="ethioaa"),t}constructor(t,n={}){this.formatter=Vy(t,n),this.options=n}}const RF={true:{ja:"h11"},false:{}};function Vy(e,t={}){if(typeof t.hour12=="boolean"&&AF()){t={...t};let i=RF[String(t.hour12)][e.split("-")[0]],o=t.hour12?"h12":"h23";t.hourCycle=i??o,delete t.hour12}let n=e+(t?Object.entries(t).sort((i,o)=>i[0]<o[0]?-1:1).join():"");if(Cc.has(n))return Cc.get(n);let r=new Intl.DateTimeFormat(e,t);return Cc.set(n,r),r}let wc=null;function AF(){return wc==null&&(wc=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),wc}let Dc=null;function FF(){return Dc==null&&(Dc=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),Dc}function PF(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),e+=(e.includes("-u-")?"":"-u")+"-nu-latn";let n=Vy(e,{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(o=>o.type==="hour").value,10),i=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(o=>o.type==="hour").value,10);if(r===0&&i===23)return"h23";if(r===24&&i===23)return"h24";if(r===0&&i===11)return"h11";if(r===12&&i===11)return"h12";throw new Error("Unexpected hour cycle result")}const Fi=typeof document<"u"?w.useLayoutEffect:()=>{};function ir(e){const t=w.useRef(null);return Fi(()=>{t.current=e},[e]),w.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function TF(e){let[t,n]=w.useState(e),r=w.useRef(null),i=ir(()=>{if(!r.current)return;let a=r.current.next();if(a.done){r.current=null;return}t===a.value?i():n(a.value)});Fi(()=>{r.current&&i()});let o=ir(a=>{r.current=a(t),i()});return[t,o]}const Xl={prefix:String(Math.round(Math.random()*1e10)),current:0},Ly=w.createContext(Xl),kF=w.createContext(!1);let MF=!!(typeof window<"u"&&window.document&&window.document.createElement),Sc=new WeakMap;function BF(e=!1){let t=w.useContext(Ly),n=w.useRef(null);if(n.current===null&&!e){var r,i;let o=(i=w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(o){let a=Sc.get(o);a==null?Sc.set(o,{id:t.current,state:o.memoizedState}):o.memoizedState!==a.state&&(t.current=a.id,Sc.delete(o))}n.current=++t.current}return n.current}function OF(e){let t=w.useContext(Ly);t===Xl&&!MF&&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=BF(!!e),r=t===Xl&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function NF(e){let t=w.useId(),[n]=w.useState(jy()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Xl.prefix}`;return e||`${r}-${t}`}const VF=typeof w.useId=="function"?NF:OF;function LF(){return!1}function jF(){return!0}function HF(e){return()=>{}}function jy(){return typeof w.useSyncExternalStore=="function"?w.useSyncExternalStore(HF,LF,jF):w.useContext(kF)}let WF=!!(typeof window<"u"&&window.document&&window.document.createElement),Yl=new Map;function po(e){let[t,n]=w.useState(e),r=w.useRef(null),i=VF(t),o=w.useCallback(a=>{r.current=a},[]);return WF&&Yl.set(i,o),Fi(()=>{let a=i;return()=>{Yl.delete(a)}},[i]),w.useEffect(()=>{let a=r.current;a&&(r.current=null,n(a))}),i}function zF(e,t){if(e===t)return e;let n=Yl.get(e);if(n)return n(t),t;let r=Yl.get(t);return r?(r(e),e):t}function Hd(e=[]){let t=po(),[n,r]=TF(t),i=w.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return Fi(i,[t,i,...e]),n}function Hy(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const Ct=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},yn=e=>e&&"window"in e&&e.window===e?e:Ct(e).defaultView||window;function Lt(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let i in r){let o=t[i],a=r[i];typeof o=="function"&&typeof a=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=Hy(o,a):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof a=="string"?t[i]=ar(o,a):i==="id"&&o&&a?t.id=zF(o,a):t[i]=a!==void 0?a:o}}return t}const GF=new Set(["id"]),ZF=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),XF=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),YF=/^(data-.*)$/;function Fh(e,t={}){let{labelable:n,isLink:r,propNames:i}=t,o={};for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&(GF.has(a)||n&&ZF.has(a)||r&&XF.has(a)||i!=null&&i.has(a)||YF.test(a))&&(o[a]=e[a]);return o}function Pr(e){if(UF())e.focus({preventScroll:!0});else{let t=JF(e);e.focus(),KF(t)}}let Rs=null;function UF(){if(Rs==null){Rs=!1;try{document.createElement("div").focus({get preventScroll(){return Rs=!0,!0}})}catch{}}return Rs}function JF(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function KF(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Pu(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function Ph(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Fa(){return Ph(/^Mac/i)}function qF(){return Ph(/^iPhone/i)}function Wy(){return Ph(/^iPad/i)||Fa()&&navigator.maxTouchPoints>1}function zy(){return qF()||Wy()}function QF(){return Pu(/AppleWebKit/i)&&!e7()}function e7(){return Pu(/Chrome/i)}function Gy(){return Pu(/Android/i)}function t7(){return Pu(/Firefox/i)}function Pa(e,t,n=!0){var r,i;let{metaKey:o,ctrlKey:a,altKey:s,shiftKey:l}=t;t7()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Fa()?o=!0:a=!0);let u=QF()&&Fa()&&!Wy()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:a,altKey:s,shiftKey:l}):new MouseEvent("click",{metaKey:o,ctrlKey:a,altKey:s,shiftKey:l,bubbles:!0,cancelable:!0});Pa.isOpening=n,Pr(e),e.dispatchEvent(u),Pa.isOpening=!1}Pa.isOpening=!1;let Ui=new Map,Wd=new Set;function hp(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let i=Ui.get(r.target);i||(i=new Set,Ui.set(r.target,i),r.target.addEventListener("transitioncancel",n,{once:!0})),i.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let i=Ui.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),Ui.delete(r.target)),Ui.size===0)){for(let o of Wd)o();Wd.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?hp():document.addEventListener("DOMContentLoaded",hp));function Zy(e){requestAnimationFrame(()=>{Ui.size===0?e():Wd.add(e)})}function n7(){let e=w.useRef(new Map),t=w.useCallback((i,o,a,s)=>{let l=s!=null&&s.once?(...u)=>{e.current.delete(a),a(...u)}:a;e.current.set(a,{type:o,eventTarget:i,fn:l,options:s}),i.addEventListener(o,a,s)},[]),n=w.useCallback((i,o,a,s)=>{var l;let u=((l=e.current.get(a))===null||l===void 0?void 0:l.fn)||a;i.removeEventListener(o,u,s),e.current.delete(a)},[]),r=w.useCallback(()=>{e.current.forEach((i,o)=>{n(i.eventTarget,i.type,o,i.options)})},[n]);return w.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function Th(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=po(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}function gp(e,t){const n=w.useRef(!0),r=w.useRef(null);w.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),w.useEffect(()=>{n.current?n.current=!1:(!r.current||t.some((i,o)=>!Object.is(i,r[o])))&&e(),r.current=t},t)}function Xy(e,t){Fi(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function zd(e,t){let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function r7(e,t){let n=e;for(zd(n,t)&&(n=n.parentElement);n&&!zd(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function i7(e,t){const n=[];for(;e&&e!==document.documentElement;)zd(e,t)&&n.push(e),e=e.parentElement;return n}let o7=0;const Ec=new Map;function Yy(e){let[t,n]=w.useState();return Fi(()=>{if(!e)return;let r=Ec.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${o7++}`;n(i);let o=document.createElement("div");o.id=i,o.style.display="none",o.textContent=e,document.body.appendChild(o),r={refCount:0,element:o},Ec.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),Ec.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function Ic(e,t,n,r){let i=ir(n),o=n==null;w.useEffect(()=>{if(o||!e.current)return;let a=e.current;return a.addEventListener(t,i,r),()=>{a.removeEventListener(t,i,r)}},[e,t,r,o,i])}function a7(e,t){let n=mp(e,t,"left"),r=mp(e,t,"top"),i=t.offsetWidth,o=t.offsetHeight,a=e.scrollLeft,s=e.scrollTop,{borderTopWidth:l,borderLeftWidth:u}=getComputedStyle(e),c=e.scrollLeft+parseInt(u,10),d=e.scrollTop+parseInt(l,10),h=c+e.clientWidth,f=d+e.clientHeight;n<=a?a=n-parseInt(u,10):n+i>h&&(a+=n+i-h),r<=d?s=r-parseInt(l,10):r+o>f&&(s+=r+o-f),e.scrollLeft=a,e.scrollTop=s}function mp(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[r];break}t=t.offsetParent}return i}function s7(e,t){if(document.contains(e)){let a=document.scrollingElement||document.documentElement;if(window.getComputedStyle(a).overflow==="hidden"){let l=i7(e);for(let u of l)a7(u,e)}else{var n;let{left:l,top:u}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:c,top:d}=e.getBoundingClientRect();if(Math.abs(l-c)>1||Math.abs(u-d)>1){var r,i,o;t==null||(i=t.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(o=e.scrollIntoView)===null||o===void 0||o.call(e,{block:"nearest"})}}}}function Gd(e){return e.mozInputSource===0&&e.isTrusted?!0:Gy()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function l7(e){return!Gy()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function Uy(e,t){let n=w.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function Ta(e,t,n){let[r,i]=w.useState(e||t),o=w.useRef(e!==void 0),a=e!==void 0;w.useEffect(()=>{let u=o.current;u!==a&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}.`),o.current=a},[a]);let s=a?e:r,l=w.useCallback((u,...c)=>{let d=(h,...f)=>{n&&(Object.is(s,h)||n(h,...f)),a||(s=h)};typeof u=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((f,...g)=>{let m=u(a?s:f,...g);return d(m,...c),a?f:m})):(a||i(u),d(u,...c))},[a,s,n]);return[s,l]}let Ki="default",Zd="",dl=new WeakMap;function pp(e){if(zy()){if(Ki==="default"){const t=Ct(e);Zd=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Ki="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(dl.set(e,e.style.userSelect),e.style.userSelect="none")}function As(e){if(zy()){if(Ki!=="disabled")return;Ki="restoring",setTimeout(()=>{Zy(()=>{if(Ki==="restoring"){const t=Ct(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Zd||""),Zd="",Ki="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&dl.has(e)){let t=dl.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),dl.delete(e)}}const Jy=w.createContext({register:()=>{}});Jy.displayName="PressResponderContext";function u7(e,t){return t.get?t.get.call(e):t.value}function Ky(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function c7(e,t){var n=Ky(e,t,"get");return u7(e,n)}function d7(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function bp(e,t,n){var r=Ky(e,t,"set");return d7(e,r,n),n}function f7(e){let t=w.useContext(Jy);if(t){let{register:n,...r}=t;e=Lt(r,e),n()}return Xy(t,e.ref),e}var Fs=new WeakMap;class Ps{continuePropagation(){bp(this,Fs,!1)}get shouldStopPropagation(){return c7(this,Fs)}constructor(t,n,r){is(this,Fs,{writable:!0,value:void 0}),bp(this,Fs,!0),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey}}const vp=Symbol("linkClicked");function kh(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:o,isDisabled:a,isPressed:s,preventFocusOnPress:l,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:c,ref:d,...h}=f7(e),[f,g]=w.useState(!1),m=w.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:b,removeAllGlobalListeners:y}=n7(),v=ir((p,S)=>{let $=m.current;if(a||$.didFirePressStart)return!1;let _=!0;if($.isTriggeringEvent=!0,r){let A=new Ps("pressstart",S,p);r(A),_=A.shouldStopPropagation}return n&&n(!0),$.isTriggeringEvent=!1,$.didFirePressStart=!0,g(!0),_}),x=ir((p,S,$=!0)=>{let _=m.current;if(!_.didFirePressStart)return!1;_.ignoreClickAfterPress=!0,_.didFirePressStart=!1,_.isTriggeringEvent=!0;let A=!0;if(i){let k=new Ps("pressend",S,p);i(k),A=k.shouldStopPropagation}if(n&&n(!1),g(!1),t&&$&&!a){let k=new Ps("press",S,p);t(k),A&&(A=k.shouldStopPropagation)}return _.isTriggeringEvent=!1,A}),C=ir((p,S)=>{let $=m.current;if(a)return!1;if(o){$.isTriggeringEvent=!0;let _=new Ps("pressup",S,p);return o(_),$.isTriggeringEvent=!1,_.shouldStopPropagation}return!0}),D=ir(p=>{let S=m.current;S.isPressed&&S.target&&(S.isOverTarget&&S.pointerType!=null&&x(Un(S.target,p),S.pointerType,!1),S.isPressed=!1,S.isOverTarget=!1,S.activePointerId=null,S.pointerType=null,y(),c||As(S.target))}),I=ir(p=>{u&&D(p)}),T=w.useMemo(()=>{let p=m.current,S={onKeyDown(_){if(_c(_.nativeEvent,_.currentTarget)&&_.currentTarget.contains(_.target)){var A;xp(_.target,_.key)&&_.preventDefault();let k=!0;if(!p.isPressed&&!_.repeat){p.target=_.currentTarget,p.isPressed=!0,k=v(_,"keyboard");let R=_.currentTarget,M=P=>{_c(P,R)&&!P.repeat&&R.contains(P.target)&&p.target&&C(Un(p.target,P),"keyboard")};b(Ct(_.currentTarget),"keyup",Hy(M,$),!0)}k&&_.stopPropagation(),_.metaKey&&Fa()&&((A=p.metaKeyEvents)===null||A===void 0||A.set(_.key,_.nativeEvent))}else _.key==="Meta"&&(p.metaKeyEvents=new Map)},onClick(_){if(!(_&&!_.currentTarget.contains(_.target))&&_&&_.button===0&&!p.isTriggeringEvent&&!Pa.isOpening){let A=!0;if(a&&_.preventDefault(),!p.ignoreClickAfterPress&&!p.ignoreEmulatedMouseEvents&&!p.isPressed&&(p.pointerType==="virtual"||Gd(_.nativeEvent))){!a&&!l&&Pr(_.currentTarget);let k=v(_,"virtual"),R=C(_,"virtual"),M=x(_,"virtual");A=k&&R&&M}p.ignoreEmulatedMouseEvents=!1,p.ignoreClickAfterPress=!1,A&&_.stopPropagation()}}},$=_=>{var A;if(p.isPressed&&p.target&&_c(_,p.target)){var k;xp(_.target,_.key)&&_.preventDefault();let M=_.target;x(Un(p.target,_),"keyboard",p.target.contains(M)),y(),_.key!=="Enter"&&Mh(p.target)&&p.target.contains(M)&&!_[vp]&&(_[vp]=!0,Pa(p.target,_,!1)),p.isPressed=!1,(k=p.metaKeyEvents)===null||k===void 0||k.delete(_.key)}else if(_.key==="Meta"&&(!((A=p.metaKeyEvents)===null||A===void 0)&&A.size)){var R;let M=p.metaKeyEvents;p.metaKeyEvents=void 0;for(let P of M.values())(R=p.target)===null||R===void 0||R.dispatchEvent(new KeyboardEvent("keyup",P))}};if(typeof PointerEvent<"u"){S.onPointerDown=R=>{if(R.button!==0||!R.currentTarget.contains(R.target))return;if(l7(R.nativeEvent)){p.pointerType="virtual";return}$c(R.currentTarget)&&R.preventDefault(),p.pointerType=R.pointerType;let M=!0;p.isPressed||(p.isPressed=!0,p.isOverTarget=!0,p.activePointerId=R.pointerId,p.target=R.currentTarget,!a&&!l&&Pr(R.currentTarget),c||pp(p.target),M=v(R,p.pointerType),b(Ct(R.currentTarget),"pointermove",_,!1),b(Ct(R.currentTarget),"pointerup",A,!1),b(Ct(R.currentTarget),"pointercancel",k,!1)),M&&R.stopPropagation()},S.onMouseDown=R=>{R.currentTarget.contains(R.target)&&R.button===0&&($c(R.currentTarget)&&R.preventDefault(),R.stopPropagation())},S.onPointerUp=R=>{!R.currentTarget.contains(R.target)||p.pointerType==="virtual"||R.button===0&&Hi(R,R.currentTarget)&&C(R,p.pointerType||R.pointerType)};let _=R=>{R.pointerId===p.activePointerId&&(p.target&&Hi(R,p.target)?!p.isOverTarget&&p.pointerType!=null&&(p.isOverTarget=!0,v(Un(p.target,R),p.pointerType)):p.target&&p.isOverTarget&&p.pointerType!=null&&(p.isOverTarget=!1,x(Un(p.target,R),p.pointerType,!1),I(R)))},A=R=>{R.pointerId===p.activePointerId&&p.isPressed&&R.button===0&&p.target&&(Hi(R,p.target)&&p.pointerType!=null?x(Un(p.target,R),p.pointerType):p.isOverTarget&&p.pointerType!=null&&x(Un(p.target,R),p.pointerType,!1),p.isPressed=!1,p.isOverTarget=!1,p.activePointerId=null,p.pointerType=null,y(),c||As(p.target))},k=R=>{D(R)};S.onDragStart=R=>{R.currentTarget.contains(R.target)&&D(R)}}else{S.onMouseDown=k=>{if(k.button!==0||!k.currentTarget.contains(k.target))return;if($c(k.currentTarget)&&k.preventDefault(),p.ignoreEmulatedMouseEvents){k.stopPropagation();return}p.isPressed=!0,p.isOverTarget=!0,p.target=k.currentTarget,p.pointerType=Gd(k.nativeEvent)?"virtual":"mouse",!a&&!l&&Pr(k.currentTarget),v(k,p.pointerType)&&k.stopPropagation(),b(Ct(k.currentTarget),"mouseup",_,!1)},S.onMouseEnter=k=>{if(!k.currentTarget.contains(k.target))return;let R=!0;p.isPressed&&!p.ignoreEmulatedMouseEvents&&p.pointerType!=null&&(p.isOverTarget=!0,R=v(k,p.pointerType)),R&&k.stopPropagation()},S.onMouseLeave=k=>{if(!k.currentTarget.contains(k.target))return;let R=!0;p.isPressed&&!p.ignoreEmulatedMouseEvents&&p.pointerType!=null&&(p.isOverTarget=!1,R=x(k,p.pointerType,!1),I(k)),R&&k.stopPropagation()},S.onMouseUp=k=>{k.currentTarget.contains(k.target)&&!p.ignoreEmulatedMouseEvents&&k.button===0&&C(k,p.pointerType||"mouse")};let _=k=>{if(k.button===0){if(p.isPressed=!1,y(),p.ignoreEmulatedMouseEvents){p.ignoreEmulatedMouseEvents=!1;return}p.target&&Hi(k,p.target)&&p.pointerType!=null?x(Un(p.target,k),p.pointerType):p.target&&p.isOverTarget&&p.pointerType!=null&&x(Un(p.target,k),p.pointerType,!1),p.isOverTarget=!1}};S.onTouchStart=k=>{if(!k.currentTarget.contains(k.target))return;let R=h7(k.nativeEvent);if(!R)return;p.activePointerId=R.identifier,p.ignoreEmulatedMouseEvents=!0,p.isOverTarget=!0,p.isPressed=!0,p.target=k.currentTarget,p.pointerType="touch",!a&&!l&&Pr(k.currentTarget),c||pp(p.target),v(k,p.pointerType)&&k.stopPropagation(),b(yn(k.currentTarget),"scroll",A,!0)},S.onTouchMove=k=>{if(!k.currentTarget.contains(k.target))return;if(!p.isPressed){k.stopPropagation();return}let R=yp(k.nativeEvent,p.activePointerId),M=!0;R&&Hi(R,k.currentTarget)?!p.isOverTarget&&p.pointerType!=null&&(p.isOverTarget=!0,M=v(k,p.pointerType)):p.isOverTarget&&p.pointerType!=null&&(p.isOverTarget=!1,M=x(k,p.pointerType,!1),I(k)),M&&k.stopPropagation()},S.onTouchEnd=k=>{if(!k.currentTarget.contains(k.target))return;if(!p.isPressed){k.stopPropagation();return}let R=yp(k.nativeEvent,p.activePointerId),M=!0;R&&Hi(R,k.currentTarget)&&p.pointerType!=null?(C(k,p.pointerType),M=x(k,p.pointerType)):p.isOverTarget&&p.pointerType!=null&&(M=x(k,p.pointerType,!1)),M&&k.stopPropagation(),p.isPressed=!1,p.activePointerId=null,p.isOverTarget=!1,p.ignoreEmulatedMouseEvents=!0,p.target&&!c&&As(p.target),y()},S.onTouchCancel=k=>{k.currentTarget.contains(k.target)&&(k.stopPropagation(),p.isPressed&&D(k))};let A=k=>{p.isPressed&&k.target.contains(p.target)&&D({currentTarget:p.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};S.onDragStart=k=>{k.currentTarget.contains(k.target)&&D(k)}}return S},[b,a,l,y,c,D,I,x,v,C]);return w.useEffect(()=>()=>{var p;c||As((p=m.current.target)!==null&&p!==void 0?p:void 0)},[c]),{isPressed:s||f,pressProps:Lt(h,T)}}function Mh(e){return e.tagName==="A"&&e.hasAttribute("href")}function _c(e,t){const{key:n,code:r}=e,i=t,o=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof yn(i).HTMLInputElement&&!qy(i,n)||i instanceof yn(i).HTMLTextAreaElement||i.isContentEditable)&&!((o==="link"||!o&&Mh(i))&&n!=="Enter")}function h7(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function yp(e,t){const n=e.changedTouches;for(let r=0;r<n.length;r++){const i=n[r];if(i.identifier===t)return i}return null}function Un(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function g7(e){let t=0,n=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?n=e.height/2:e.radiusY!==void 0&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function m7(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Hi(e,t){let n=t.getBoundingClientRect(),r=g7(e);return m7(n,r)}function $c(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function xp(e,t){return e instanceof HTMLInputElement?!qy(e,t):e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Mh(e)}const p7=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function qy(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":p7.has(e.type)}class b7{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function Qy(e){let t=w.useRef({isFocused:!1,observer:null});Fi(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=ir(r=>{e==null||e(r)});return w.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r.target,o=a=>{t.current.isFocused=!1,i.disabled&&n(new b7("blur",a)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var a;(a=t.current.observer)===null||a===void 0||a.disconnect();let s=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function ex(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const o=w.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),i&&i(!1),!0},[r,i]),a=Qy(o),s=w.useCallback(l=>{const u=Ct(l.target);l.target===l.currentTarget&&u.activeElement===l.target&&(n&&n(l),i&&i(!0),a(l))},[i,n,a]);return{focusProps:{onFocus:!t&&(n||i||r)?s:void 0,onBlur:!t&&(r||i)?o:void 0}}}let Io=null,Xd=new Set,ta=new Map,Ei=!1,Yd=!1;const v7={Tab:!0,Escape:!0};function Bh(e,t){for(let n of Xd)n(e,t)}function y7(e){return!(e.metaKey||!Fa()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Ul(e){Ei=!0,y7(e)&&(Io="keyboard",Bh("keyboard",e))}function un(e){Io="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Ei=!0,Bh("pointer",e))}function tx(e){Gd(e)&&(Ei=!0,Io="virtual")}function nx(e){e.target===window||e.target===document||(!Ei&&!Yd&&(Io="virtual",Bh("virtual",e)),Ei=!1,Yd=!1)}function rx(){Ei=!1,Yd=!0}function Ud(e){if(typeof window>"u"||ta.get(yn(e)))return;const t=yn(e),n=Ct(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Ei=!0,r.apply(this,arguments)},n.addEventListener("keydown",Ul,!0),n.addEventListener("keyup",Ul,!0),n.addEventListener("click",tx,!0),t.addEventListener("focus",nx,!0),t.addEventListener("blur",rx,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",un,!0),n.addEventListener("pointermove",un,!0),n.addEventListener("pointerup",un,!0)):(n.addEventListener("mousedown",un,!0),n.addEventListener("mousemove",un,!0),n.addEventListener("mouseup",un,!0)),t.addEventListener("beforeunload",()=>{ix(e)},{once:!0}),ta.set(t,{focus:r})}const ix=(e,t)=>{const n=yn(e),r=Ct(e);t&&r.removeEventListener("DOMContentLoaded",t),ta.has(n)&&(n.HTMLElement.prototype.focus=ta.get(n).focus,r.removeEventListener("keydown",Ul,!0),r.removeEventListener("keyup",Ul,!0),r.removeEventListener("click",tx,!0),n.removeEventListener("focus",nx,!0),n.removeEventListener("blur",rx,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",un,!0),r.removeEventListener("pointermove",un,!0),r.removeEventListener("pointerup",un,!0)):(r.removeEventListener("mousedown",un,!0),r.removeEventListener("mousemove",un,!0),r.removeEventListener("mouseup",un,!0)),ta.delete(n))};function x7(e){const t=Ct(e);let n;return t.readyState!=="loading"?Ud(e):(n=()=>{Ud(e)},t.addEventListener("DOMContentLoaded",n)),()=>ix(e,n)}typeof document<"u"&&x7();function ox(){return Io!=="pointer"}function ax(){return Io}const C7=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function w7(e,t,n){var r;const i=typeof window<"u"?yn(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,o=typeof window<"u"?yn(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,a=typeof window<"u"?yn(n==null?void 0:n.target).HTMLElement:HTMLElement,s=typeof window<"u"?yn(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof i&&!C7.has(n==null||(r=n.target)===null||r===void 0?void 0:r.type)||(n==null?void 0:n.target)instanceof o||(n==null?void 0:n.target)instanceof a&&(n==null?void 0:n.target.isContentEditable),!(e&&t==="keyboard"&&n instanceof s&&!v7[n.key])}function D7(e,t,n){Ud(),w.useEffect(()=>{let r=(i,o)=>{w7(!!(n!=null&&n.isTextInput),i,o)&&e(ox())};return Xd.add(r),()=>{Xd.delete(r)}},t)}function sx(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,o=w.useRef({isFocusWithin:!1}),a=w.useCallback(u=>{o.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(o.current.isFocusWithin=!1,n&&n(u),i&&i(!1))},[n,i,o]),s=Qy(a),l=w.useCallback(u=>{!o.current.isFocusWithin&&document.activeElement===u.target&&(r&&r(u),i&&i(!0),o.current.isFocusWithin=!0,s(u))},[r,i,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:a}}}function Cp(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function S7(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Cp(e.onKeyDown),onKeyUp:Cp(e.onKeyUp)}}}function lx(e){const t=Ct(e);if(ax()==="virtual"){let n=t.activeElement;Zy(()=>{t.activeElement===n&&e.isConnected&&Pr(e)})}else Pr(e)}function E7(e){const t=yn(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:o}=e.ownerDocument.defaultView;let{display:a,visibility:s}=o(e);i=a!=="none"&&s!=="hidden"&&s!=="collapse"}return i}function I7(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function ux(e,t){return e.nodeName!=="#comment"&&E7(e)&&I7(e,t)&&(!e.parentElement||ux(e.parentElement,e))}const Oh=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],_7=Oh.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Oh.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const $7=Oh.join(':not([hidden]):not([tabindex="-1"]),');function cx(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function Fo(e,t=!1){if(e!=null&&!t)try{lx(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function Ho(e,t,n){let r=t!=null&&t.tabbable?$7:_7,i=Ct(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(o){var a;return!(t==null||(a=t.from)===null||a===void 0)&&a.contains(o)?NodeFilter.FILTER_REJECT:o.matches(r)&&ux(o)&&(!n||cx(o,n))&&(!(t!=null&&t.accept)||t.accept(o))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(i.currentNode=t.from),i}function dx(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:i,tabbable:o=t.tabbable,wrap:a=t.wrap,accept:s=t.accept}=n,l=i||Ct(r).activeElement,u=Ho(r,{tabbable:o,accept:s});r.contains(l)&&(u.currentNode=l);let c=u.nextNode();return!c&&a&&(u.currentNode=r,c=u.nextNode()),c&&Fo(c,!0),c},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:i,tabbable:o=t.tabbable,wrap:a=t.wrap,accept:s=t.accept}=n,l=i||Ct(r).activeElement,u=Ho(r,{tabbable:o,accept:s});if(r.contains(l))u.currentNode=l;else{let d=Rc(u);return d&&Fo(d,!0),d??null}let c=u.previousNode();if(!c&&a){u.currentNode=r;let d=Rc(u);if(!d)return null;c=d}return c&&Fo(c,!0),c??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:o=t.accept}=n,s=Ho(r,{tabbable:i,accept:o}).nextNode();return s&&Fo(s,!0),s},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:o=t.accept}=n,a=Ho(r,{tabbable:i,accept:o}),s=Rc(a);return s&&Fo(s,!0),s??null}}}function Rc(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class Nh{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let i=this.fastMap.get(n??null);if(!i)return;let o=new wp({scopeRef:t});i.addChild(o),o.parent=i,this.fastMap.set(t,o),r&&(o.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let o of this.traverse())o!==n&&n.nodeToRestore&&o.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&cx(o.nodeToRestore,n.scopeRef.current)&&(o.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(o=>r&&r.addChild(o))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new Nh;var r;for(let i of this.traverse())n.addTreeNode(i.scopeRef,(r=(t=i.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,i.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new wp({scopeRef:null}),this.fastMap.set(null,this.root)}}class wp{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}new Nh;function fx(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=w.useRef({isFocused:!1,isFocusVisible:t||ox()}),[o,a]=w.useState(!1),[s,l]=w.useState(()=>i.current.isFocused&&i.current.isFocusVisible),u=w.useCallback(()=>l(i.current.isFocused&&i.current.isFocusVisible),[]),c=w.useCallback(f=>{i.current.isFocused=f,a(f),u()},[u]);D7(f=>{i.current.isFocusVisible=f,u()},[],{isTextInput:n});let{focusProps:d}=ex({isDisabled:r,onFocusChange:c}),{focusWithinProps:h}=sx({isDisabled:!r,onFocusWithinChange:c});return{isFocused:o,isFocusVisible:s,focusProps:r?h:d}}let R7=w.createContext(null);function A7(e){let t=w.useContext(R7)||{};Xy(t,e);let{ref:n,...r}=t;return r}function F7(e,t){let{focusProps:n}=ex(e),{keyboardProps:r}=S7(e),i=Lt(n,r),o=A7(t),a=e.isDisabled?{}:o,s=w.useRef(e.autoFocus);return w.useEffect(()=>{s.current&&t.current&&lx(t.current),s.current=!1},[t]),{focusableProps:Lt({...i,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},a)}}const P7=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),T7=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function hx(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return P7.has(n.script)}let t=e.split("-")[0];return T7.has(t)}const k7=Symbol.for("react-aria.i18n.locale");function gx(){let e=typeof window<"u"&&window[k7]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:hx(e)?"rtl":"ltr"}}let Jd=gx(),Wo=new Set;function Dp(){Jd=gx();for(let e of Wo)e(Jd)}function mx(){let e=jy(),[t,n]=w.useState(Jd);return w.useEffect(()=>(Wo.size===0&&window.addEventListener("languagechange",Dp),Wo.add(n),()=>{Wo.delete(n),Wo.size===0&&window.removeEventListener("languagechange",Dp)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const px=w.createContext(null);function Vh(e){let{locale:t,children:n}=e,r=mx(),i=w.useMemo(()=>t?{locale:t,direction:hx(t)?"rtl":"ltr"}:r,[r,t]);return w.createElement(px.Provider,{value:i},n)}function In(){let e=mx();return w.useContext(px)||e}const M7=Symbol.for("react-aria.i18n.locale"),B7=Symbol.for("react-aria.i18n.strings");let Wi;class Pi{getStringForLocale(t,n){let i=this.getStringsForLocale(n)[t];if(!i)throw new Error(`Could not find intl message ${t} in ${n} locale`);return i}getStringsForLocale(t){let n=this.strings[t];return n||(n=O7(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[M7];if(Wi===void 0){let i=window[B7];if(!i)return null;Wi={};for(let o in i)Wi[o]=new Pi({[n]:i[o]},n)}let r=Wi==null?void 0:Wi[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,n="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,r])=>r)),this.defaultLocale=n}}function O7(e,t,n="en-US"){if(t[e])return t[e];let r=N7(e);if(t[r])return t[r];for(let i in t)if(i.startsWith(r+"-"))return t[i];return t[n]}function N7(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const Sp=new Map,Ep=new Map;class bx{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let i=n["="+t];if(i)return typeof i=="function"?i():i;let o=this.locale+":"+r,a=Sp.get(o);a||(a=new Intl.PluralRules(this.locale,{type:r}),Sp.set(o,a));let s=a.select(t);return i=n[s]||n.other,typeof i=="function"?i():i}number(t){let n=Ep.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),Ep.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}const Ip=new WeakMap;function V7(e){let t=Ip.get(e);return t||(t=new Pi(e),Ip.set(e,t)),t}function L7(e,t){return t&&Pi.getGlobalDictionaryForPackage(t)||V7(e)}function as(e,t){let{locale:n}=In(),r=L7(e,t);return w.useMemo(()=>new bx(n,r),[n,r])}function jr(e){e=Uy(e??{},j7);let{locale:t}=In();return w.useMemo(()=>new Aa(t,e),[t,e])}function j7(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n)if(t[i]!==e[i])return!1;return!0}function H7(e,t){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:o,onPressEnd:a,onPressUp:s,onPressChange:l,preventFocusOnPress:u,allowFocusWhenDisabled:c,onClick:d,href:h,target:f,rel:g,type:m="button"}=e,b;n==="button"?b={type:m,disabled:r}:b={role:"button",tabIndex:r?void 0:0,href:n==="a"&&r?void 0:h,target:n==="a"?f:void 0,type:n==="input"?m:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?g:void 0};let{pressProps:y,isPressed:v}=kh({onPressStart:o,onPressEnd:a,onPressChange:l,onPress:i,onPressUp:s,isDisabled:r,preventFocusOnPress:u,ref:t}),{focusableProps:x}=F7(e,t);c&&(x.tabIndex=r?-1:x.tabIndex);let C=Lt(x,y,Fh(e,{labelable:!0}));return{isPressed:v,buttonProps:Lt(b,C,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:D=>{d&&(d(D),console.warn("onClick is deprecated, please use onPress"))}})}}var vx={};vx={dateRange:e=>`${e.startDate} إلى ${e.endDate}`,dateSelected:e=>`${e.date} المحدد`,finishRangeSelectionPrompt:"انقر لإنهاء عملية تحديد نطاق التاريخ",maximumDate:"آخر تاريخ متاح",minimumDate:"أول تاريخ متاح",next:"التالي",previous:"السابق",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.dateRange}`,startRangeSelectionPrompt:"انقر لبدء عملية تحديد نطاق التاريخ",todayDate:e=>`اليوم، ${e.date}`,todayDateSelected:e=>`اليوم، ${e.date} محدد`};var yx={};yx={dateRange:e=>`${e.startDate} до ${e.endDate}`,dateSelected:e=>`Избрано е ${e.date}`,finishRangeSelectionPrompt:"Натиснете, за да довършите избора на времеви интервал",maximumDate:"Последна налична дата",minimumDate:"Първа налична дата",next:"Напред",previous:"Назад",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натиснете, за да пристъпите към избора на времеви интервал",todayDate:e=>`Днес, ${e.date}`,todayDateSelected:e=>`Днес, ${e.date} са избрани`};var xx={};xx={dateRange:e=>`${e.startDate} až ${e.endDate}`,dateSelected:e=>`Vybráno ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výběr rozsahu dat",maximumDate:"Poslední dostupné datum",minimumDate:"První dostupné datum",next:"Další",previous:"Předchozí",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím zahájíte výběr rozsahu dat",todayDate:e=>`Dnes, ${e.date}`,todayDateSelected:e=>`Dnes, vybráno ${e.date}`};var Cx={};Cx={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klik for at fuldføre valg af datoområde",maximumDate:"Sidste ledige dato",minimumDate:"Første ledige dato",next:"Næste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.dateRange}`,startRangeSelectionPrompt:"Klik for at starte valg af datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var wx={};wx={dateRange:e=>`${e.startDate} bis ${e.endDate}`,dateSelected:e=>`${e.date} ausgewählt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:"Letztes verfügbares Datum",minimumDate:"Erstes verfügbares Datum",next:"Weiter",previous:"Zurück",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:e=>`Heute, ${e.date}`,todayDateSelected:e=>`Heute, ${e.date} ausgewählt`};var Dx={};Dx={dateRange:e=>`${e.startDate} έως ${e.endDate}`,dateSelected:e=>`Επιλέχθηκε ${e.date}`,finishRangeSelectionPrompt:"Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών",maximumDate:"Τελευταία διαθέσιμη ημερομηνία",minimumDate:"Πρώτη διαθέσιμη ημερομηνία",next:"Επόμενο",previous:"Προηγούμενο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.dateRange}`,startRangeSelectionPrompt:"Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών",todayDate:e=>`Σήμερα, ${e.date}`,todayDateSelected:e=>`Σήμερα, επιλέχτηκε ${e.date}`};var Sx={};Sx={previous:"Previous",next:"Next",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.dateRange}`,todayDate:e=>`Today, ${e.date}`,todayDateSelected:e=>`Today, ${e.date} selected`,dateSelected:e=>`${e.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:e=>`${e.startDate} to ${e.endDate}`};var Ex={};Ex={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:"Última fecha disponible",minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo seleccionado: ${e.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:e=>`Hoy, ${e.date}`,todayDateSelected:e=>`Hoy, ${e.date} seleccionado`};var Ix={};Ix={dateRange:e=>`${e.startDate} kuni ${e.endDate}`,dateSelected:e=>`${e.date} valitud`,finishRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimise lõpetamiseks",maximumDate:"Viimane saadaolev kuupäev",minimumDate:"Esimene saadaolev kuupäev",next:"Järgmine",previous:"Eelmine",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.dateRange}`,startRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimiseks",todayDate:e=>`Täna, ${e.date}`,todayDateSelected:e=>`Täna, ${e.date} valitud`};var _x={};_x={dateRange:e=>`${e.startDate} – ${e.endDate}`,dateSelected:e=>`${e.date} valittu`,finishRangeSelectionPrompt:"Lopeta päivämääräalueen valinta napsauttamalla tätä.",maximumDate:"Viimeinen varattavissa oleva päivämäärä",minimumDate:"Ensimmäinen varattavissa oleva päivämäärä",next:"Seuraava",previous:"Edellinen",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.dateRange}`,startRangeSelectionPrompt:"Aloita päivämääräalueen valinta napsauttamalla tätä.",todayDate:e=>`Tänään, ${e.date}`,todayDateSelected:e=>`Tänään, ${e.date} valittu`};var $x={};$x={dateRange:e=>`${e.startDate} à ${e.endDate}`,dateSelected:e=>`${e.date} sélectionné`,finishRangeSelectionPrompt:"Cliquer pour finir de sélectionner la plage de dates",maximumDate:"Dernière date disponible",minimumDate:"Première date disponible",next:"Suivant",previous:"Précédent",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.dateRange}`,startRangeSelectionPrompt:"Cliquer pour commencer à sélectionner la plage de dates",todayDate:e=>`Aujourd'hui, ${e.date}`,todayDateSelected:e=>`Aujourd’hui, ${e.date} sélectionné`};var Rx={};Rx={dateRange:e=>`${e.startDate} עד ${e.endDate}`,dateSelected:e=>`${e.date} נבחר`,finishRangeSelectionPrompt:"חץ כדי לסיים את בחירת טווח התאריכים",maximumDate:"תאריך פנוי אחרון",minimumDate:"תאריך פנוי ראשון",next:"הבא",previous:"הקודם",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.dateRange}`,startRangeSelectionPrompt:"לחץ כדי להתחיל בבחירת טווח התאריכים",todayDate:e=>`היום, ${e.date}`,todayDateSelected:e=>`היום, ${e.date} נבחר`};var Ax={};Ax={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} odabran`,finishRangeSelectionPrompt:"Kliknite da dovršite raspon odabranih datuma",maximumDate:"Posljednji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sljedeći",previous:"Prethodni",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete raspon odabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, odabran ${e.date}`};var Fx={};Fx={dateRange:e=>`${e.startDate}–${e.endDate}`,dateSelected:e=>`${e.date} kiválasztva`,finishRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének befejezéséhez",maximumDate:"Utolsó elérhető dátum",minimumDate:"Az első elérhető dátum",next:"Következő",previous:"Előző",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.dateRange}`,startRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének indításához",todayDate:e=>`Ma, ${e.date}`,todayDateSelected:e=>`Ma, ${e.date} kijelölve`};var Px={};Px={dateRange:e=>`Da ${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selezionata`,finishRangeSelectionPrompt:"Fai clic per completare la selezione dell’intervallo di date",maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: ${e.dateRange}`,startRangeSelectionPrompt:"Fai clic per selezionare l’intervallo di date",todayDate:e=>`Oggi, ${e.date}`,todayDateSelected:e=>`Oggi, ${e.date} selezionata`};var Tx={};Tx={dateRange:e=>`${e.startDate} から ${e.endDate}`,dateSelected:e=>`${e.date} を選択`,finishRangeSelectionPrompt:"クリックして日付範囲の選択を終了",maximumDate:"最終利用可能日",minimumDate:"最初の利用可能日",next:"次へ",previous:"前へ",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.dateRange}`,startRangeSelectionPrompt:"クリックして日付範囲の選択を開始",todayDate:e=>`本日、${e.date}`,todayDateSelected:e=>`本日、${e.date} を選択`};var kx={};kx={dateRange:e=>`${e.startDate} ~ ${e.endDate}`,dateSelected:e=>`${e.date} 선택됨`,finishRangeSelectionPrompt:"날짜 범위 선택을 완료하려면 클릭하십시오.",maximumDate:"마지막으로 사용 가능한 일자",minimumDate:"처음으로 사용 가능한 일자",next:"다음",previous:"이전",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.dateRange}`,startRangeSelectionPrompt:"날짜 범위 선택을 시작하려면 클릭하십시오.",todayDate:e=>`오늘, ${e.date}`,todayDateSelected:e=>`오늘, ${e.date} 선택됨`};var Mx={};Mx={dateRange:e=>`Nuo ${e.startDate} iki ${e.endDate}`,dateSelected:e=>`Pasirinkta ${e.date}`,finishRangeSelectionPrompt:"Spustelėkite, kad baigtumėte pasirinkti datų intervalą",maximumDate:"Paskutinė galima data",minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: ${e.dateRange}`,startRangeSelectionPrompt:"Spustelėkite, kad pradėtumėte pasirinkti datų intervalą",todayDate:e=>`Šiandien, ${e.date}`,todayDateSelected:e=>`Šiandien, pasirinkta ${e.date}`};var Bx={};Bx={dateRange:e=>`No ${e.startDate} līdz ${e.endDate}`,dateSelected:e=>`Atlasīts: ${e.date}`,finishRangeSelectionPrompt:"Noklikšķiniet, lai pabeigtu datumu diapazona atlasi",maximumDate:"Pēdējais pieejamais datums",minimumDate:"Pirmais pieejamais datums",next:"Tālāk",previous:"Atpakaļ",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: ${e.dateRange}`,startRangeSelectionPrompt:"Noklikšķiniet, lai sāktu datumu diapazona atlasi",todayDate:e=>`Šodien, ${e.date}`,todayDateSelected:e=>`Atlasīta šodiena, ${e.date}`};var Ox={};Ox={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klikk for å fullføre valg av datoområde",maximumDate:"Siste tilgjengelige dato",minimumDate:"Første tilgjengelige dato",next:"Neste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.dateRange}`,startRangeSelectionPrompt:"Klikk for å starte valg av datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var Nx={};Nx={dateRange:e=>`${e.startDate} tot ${e.endDate}`,dateSelected:e=>`${e.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:e=>`Vandaag, ${e.date}`,todayDateSelected:e=>`Vandaag, ${e.date} geselecteerd`};var Vx={};Vx={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`Wybrano ${e.date}`,finishRangeSelectionPrompt:"Kliknij, aby zakończyć wybór zakresu dat",maximumDate:"Ostatnia dostępna data",minimumDate:"Pierwsza dostępna data",next:"Dalej",previous:"Wstecz",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknij, aby rozpocząć wybór zakresu dat",todayDate:e=>`Dzisiaj, ${e.date}`,todayDateSelected:e=>`Dzisiaj wybrano ${e.date}`};var Lx={};Lx={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para concluir a seleção do intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para iniciar a seleção do intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var jx={};jx={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para começar a selecionar o intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var Hx={};Hx={dateRange:e=>`De la ${e.startDate} până la ${e.endDate}`,dateSelected:e=>`${e.date} selectată`,finishRangeSelectionPrompt:"Apăsaţi pentru a finaliza selecţia razei pentru dată",maximumDate:"Ultima dată disponibilă",minimumDate:"Prima dată disponibilă",next:"Următorul",previous:"Înainte",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: ${e.dateRange}`,startRangeSelectionPrompt:"Apăsaţi pentru a începe selecţia razei pentru dată",todayDate:e=>`Astăzi, ${e.date}`,todayDateSelected:e=>`Azi, ${e.date} selectată`};var Wx={};Wx={dateRange:e=>`С ${e.startDate} по ${e.endDate}`,dateSelected:e=>`Выбрано ${e.date}`,finishRangeSelectionPrompt:"Щелкните, чтобы завершить выбор диапазона дат",maximumDate:"Последняя доступная дата",minimumDate:"Первая доступная дата",next:"Далее",previous:"Назад",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Щелкните, чтобы начать выбор диапазона дат",todayDate:e=>`Сегодня, ${e.date}`,todayDateSelected:e=>`Сегодня, выбрано ${e.date}`};var zx={};zx={dateRange:e=>`Od ${e.startDate} do ${e.endDate}`,dateSelected:e=>`Vybratý dátum ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výber rozsahu dátumov",maximumDate:"Posledný dostupný dátum",minimumDate:"Prvý dostupný dátum",next:"Nasledujúce",previous:"Predchádzajúce",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím spustíte výber rozsahu dátumov",todayDate:e=>`Dnes ${e.date}`,todayDateSelected:e=>`Vybratý dnešný dátum ${e.date}`};var Gx={};Gx={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izbrano`,finishRangeSelectionPrompt:"Kliknite za dokončanje izbire datumskega obsega",maximumDate:"Zadnji razpoložljivi datum",minimumDate:"Prvi razpoložljivi datum",next:"Naprej",previous:"Nazaj",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite za začetek izbire datumskega obsega",todayDate:e=>`Danes, ${e.date}`,todayDateSelected:e=>`Danes, ${e.date} izbrano`};var Zx={};Zx={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izabran`,finishRangeSelectionPrompt:"Kliknite da dovršite opseg izabranih datuma",maximumDate:"Zadnji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sledeći",previous:"Prethodni",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani period: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete opseg izabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, izabran ${e.date}`};var Xx={};Xx={dateRange:e=>`${e.startDate} till ${e.endDate}`,dateSelected:e=>`${e.date} har valts`,finishRangeSelectionPrompt:"Klicka för att avsluta val av datumintervall",maximumDate:"Sista tillgängliga datum",minimumDate:"Första tillgängliga datum",next:"Nästa",previous:"Föregående",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.dateRange}`,startRangeSelectionPrompt:"Klicka för att välja datumintervall",todayDate:e=>`Idag, ${e.date}`,todayDateSelected:e=>`Idag, ${e.date} har valts`};var Yx={};Yx={dateRange:e=>`${e.startDate} - ${e.endDate}`,dateSelected:e=>`${e.date} seçildi`,finishRangeSelectionPrompt:"Tarih aralığı seçimini tamamlamak için tıklayın",maximumDate:"Son müsait tarih",minimumDate:"İlk müsait tarih",next:"Sonraki",previous:"Önceki",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.dateRange}`,startRangeSelectionPrompt:"Tarih aralığı seçimini başlatmak için tıklayın",todayDate:e=>`Bugün, ${e.date}`,todayDateSelected:e=>`Bugün, ${e.date} seçildi`};var Ux={};Ux={dateRange:e=>`${e.startDate} — ${e.endDate}`,dateSelected:e=>`Вибрано ${e.date}`,finishRangeSelectionPrompt:"Натисніть, щоб завершити вибір діапазону дат",maximumDate:"Остання доступна дата",minimumDate:"Перша доступна дата",next:"Наступний",previous:"Попередній",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натисніть, щоб почати вибір діапазону дат",todayDate:e=>`Сьогодні, ${e.date}`,todayDateSelected:e=>`Сьогодні, вибрано ${e.date}`};var Jx={};Jx={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已选择 ${e.date}`,finishRangeSelectionPrompt:"单击以完成选择日期范围",maximumDate:"最后一个可用日期",minimumDate:"第一个可用日期",next:"下一页",previous:"上一页",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.dateRange}`,startRangeSelectionPrompt:"单击以开始选择日期范围",todayDate:e=>`今天,即 ${e.date}`,todayDateSelected:e=>`已选择今天,即 ${e.date}`};var Kx={};Kx={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已選取 ${e.date}`,finishRangeSelectionPrompt:"按一下以完成選取日期範圍",maximumDate:"最後一個可用日期",minimumDate:"第一個可用日期",next:"下一頁",previous:"上一頁",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.dateRange}`,startRangeSelectionPrompt:"按一下以開始選取日期範圍",todayDate:e=>`今天,${e.date}`,todayDateSelected:e=>`已選取今天,${e.date}`};var ss={};ss={"ar-AE":vx,"bg-BG":yx,"cs-CZ":xx,"da-DK":Cx,"de-DE":wx,"el-GR":Dx,"en-US":Sx,"es-ES":Ex,"et-EE":Ix,"fi-FI":_x,"fr-FR":$x,"he-IL":Rx,"hr-HR":Ax,"hu-HU":Fx,"it-IT":Px,"ja-JP":Tx,"ko-KR":kx,"lt-LT":Mx,"lv-LV":Bx,"nb-NO":Ox,"nl-NL":Nx,"pl-PL":Vx,"pt-BR":Lx,"pt-PT":jx,"ro-RO":Hx,"ru-RU":Wx,"sk-SK":zx,"sl-SI":Gx,"sr-SP":Zx,"sv-SE":Xx,"tr-TR":Yx,"uk-UA":Ux,"zh-CN":Jx,"zh-TW":Kx};function qx(e){return e&&e.__esModule?e.default:e}const Lh=new WeakMap;function ka(e){return(e==null?void 0:e.calendar.identifier)==="gregory"&&e.era==="BC"?"short":void 0}function W7(e){let t=as(qx(ss),"@react-aria/calendar"),n,r;"highlightedRange"in e?{start:n,end:r}=e.highlightedRange||{}:n=r=e.value;let i=jr({weekday:"long",month:"long",year:"numeric",day:"numeric",era:ka(n)||ka(r),timeZone:e.timeZone}),o="anchorDate"in e?e.anchorDate:null;return w.useMemo(()=>{if(!o&&n&&r)if(rt(n,r)){let a=i.format(n.toDate(e.timeZone));return t.format("selectedDateDescription",{date:a})}else{let a=qd(i,t,n,r,e.timeZone);return t.format("selectedRangeDescription",{dateRange:a})}return""},[n,r,o,e.timeZone,t,i])}function Kd(e,t,n,r){let i=as(qx(ss),"@react-aria/calendar"),o=ka(e)||ka(t),a=jr({month:"long",year:"numeric",era:o,calendar:e.calendar.identifier,timeZone:n}),s=jr({month:"long",year:"numeric",day:"numeric",era:o,calendar:e.calendar.identifier,timeZone:n});return w.useMemo(()=>{if(rt(e,rs(e))){if(rt(t,Md(e)))return a.format(e.toDate(n));if(rt(t,Md(t)))return r?qd(a,i,e,t,n):a.formatRange(e.toDate(n),t.toDate(n))}return r?qd(s,i,e,t,n):s.formatRange(e.toDate(n),t.toDate(n))},[e,t,a,s,i,n,r])}function qd(e,t,n,r,i){let o=e.formatRangeToParts(n.toDate(i),r.toDate(i)),a=-1;for(let u=0;u<o.length;u++){let c=o[u];if(c.source==="shared"&&c.type==="literal")a=u;else if(c.source==="endRange")break}let s="",l="";for(let u=0;u<o.length;u++)u<a?s+=o[u].value:u>a&&(l+=o[u].value);return t.format("dateRange",{startDate:s,endDate:l})}const Qx=7e3;let Ac=null;function _p(e,t="assertive",n=Qx){Ac||(Ac=new z7),Ac.announce(e,t,n)}class z7{createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",r=Qx){if(!this.node)return;let i=document.createElement("div");i.textContent=t,n==="assertive"?this.assertiveLog.appendChild(i):this.politeLog.appendChild(i),t!==""&&setTimeout(()=>{i.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&(this.politeLog.innerHTML=""))}constructor(){this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node)}}function G7(e){return e&&e.__esModule?e.default:e}function e4(e,t){let n=as(G7(ss),"@react-aria/calendar"),r=Fh(e),i=Kd(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),o=Kd(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);gp(()=>{t.isFocused||_p(o)},[o]);let a=W7(t);gp(()=>{a&&_p(a,"polite",4e3)},[a]);let s=Hd([!!e.errorMessage,e.isInvalid,e.validationState]);Lh.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:s,selectedDateDescription:a});let[l,u]=w.useState(!1),c=e.isDisabled||t.isNextVisibleRangeInvalid();c&&l&&(u(!1),t.setFocused(!0));let[d,h]=w.useState(!1),f=e.isDisabled||t.isPreviousVisibleRangeInvalid();f&&d&&(h(!1),t.setFocused(!0));let g=Th({id:e.id,"aria-label":[e["aria-label"],o].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:Lt(r,g,{role:"application","aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":n.format("next"),isDisabled:c,onFocusChange:u},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":n.format("previous"),isDisabled:f,onFocusChange:h},errorMessageProps:{id:s},title:i}}function t4(e,t){return e4(e,t)}function Z7(e,t,n){let r=e4(e,t),i=w.useRef(!1),o=w.useRef(typeof window<"u"?window:null);return Ic(o,"pointerdown",s=>{i.current=s.width===0&&s.height===0}),Ic(o,"pointerup",s=>{if(i.current){i.current=!1;return}if(t.setDragging(!1),!t.anchorDate)return;let l=s.target;n.current&&n.current.contains(document.activeElement)&&(!n.current.contains(l)||!l.closest('button, [role="button"]'))&&t.selectFocusedDate()}),r.calendarProps.onBlur=s=>{n.current&&(!s.relatedTarget||!n.current.contains(s.relatedTarget))&&t.anchorDate&&t.selectFocusedDate()},Ic(n,"touchmove",s=>{t.isDragging&&s.preventDefault()},{passive:!1,capture:!0}),r}function n4(e,t){let{startDate:n=t.visibleRange.start,endDate:r=t.visibleRange.end}=e,{direction:i}=In(),o=f=>{switch(f.key){case"Enter":case" ":f.preventDefault(),t.selectFocusedDate();break;case"PageUp":f.preventDefault(),f.stopPropagation(),t.focusPreviousSection(f.shiftKey);break;case"PageDown":f.preventDefault(),f.stopPropagation(),t.focusNextSection(f.shiftKey);break;case"End":f.preventDefault(),f.stopPropagation(),t.focusSectionEnd();break;case"Home":f.preventDefault(),f.stopPropagation(),t.focusSectionStart();break;case"ArrowLeft":f.preventDefault(),f.stopPropagation(),i==="rtl"?t.focusNextDay():t.focusPreviousDay();break;case"ArrowUp":f.preventDefault(),f.stopPropagation(),t.focusPreviousRow();break;case"ArrowRight":f.preventDefault(),f.stopPropagation(),i==="rtl"?t.focusPreviousDay():t.focusNextDay();break;case"ArrowDown":f.preventDefault(),f.stopPropagation(),t.focusNextRow();break;case"Escape":"setAnchorDate"in t&&(f.preventDefault(),t.setAnchorDate(null));break}},a=Kd(n,r,t.timeZone,!0),{ariaLabel:s,ariaLabelledBy:l}=Lh.get(t),u=Th({"aria-label":[s,a].filter(Boolean).join(", "),"aria-labelledby":l}),c=jr({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:d}=In(),h=w.useMemo(()=>{let f=_a(vh(t.timeZone),d);return[...new Array(7).keys()].map(g=>{let b=f.add({days:g}).toDate(t.timeZone);return c.format(b)})},[d,t.timeZone,c]);return{gridProps:Lt(u,{role:"grid","aria-readonly":t.isReadOnly||null,"aria-disabled":t.isDisabled||null,"aria-multiselectable":"highlightedRange"in t||void 0,onKeyDown:o,onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:h}}function X7(e){return e&&e.__esModule?e.default:e}function Y7(e,t,n){let{date:r,isDisabled:i}=e,{errorMessageId:o,selectedDateDescription:a}=Lh.get(t),s=as(X7(ss),"@react-aria/calendar"),l=jr({weekday:"long",day:"numeric",month:"long",year:"numeric",era:ka(r),timeZone:t.timeZone}),u=t.isSelected(r),c=t.isCellFocused(r);i=i||t.isCellDisabled(r);let d=t.isCellUnavailable(r),h=!i&&!d,f=t.isValueInvalid&&("highlightedRange"in t?!t.anchorDate&&t.highlightedRange&&r.compare(t.highlightedRange.start)>=0&&r.compare(t.highlightedRange.end)<=0:t.value&&rt(t.value,r));f&&(u=!0),r=Uy(r,kd);let g=w.useMemo(()=>r.toDate(t.timeZone),[r,t.timeZone]),m=LA(r,t.timeZone),b=w.useMemo(()=>{let _="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(rt(r,t.value.start)||rt(r,t.value.end))&&(_=a+", "),_+=l.format(g),m?_=s.format(u?"todayDateSelected":"todayDate",{date:_}):u&&(_=s.format("dateSelected",{date:_})),t.minValue&&rt(r,t.minValue)?_+=", "+s.format("minimumDate"):t.maxValue&&rt(r,t.maxValue)&&(_+=", "+s.format("maximumDate")),_},[l,g,s,u,m,r,t,a]),y="";"anchorDate"in t&&c&&!t.isReadOnly&&h&&(t.anchorDate?y=s.format("finishRangeSelectionPrompt"):y=s.format("startRangeSelectionPrompt"));let v=Yy(y),x=w.useRef(!1),C=w.useRef(!1),D=w.useRef(null),{pressProps:I,isPressed:T}=kh({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!h||t.isReadOnly,onPressStart(_){if(t.isReadOnly){t.setFocusedDate(r);return}if("highlightedRange"in t&&!t.anchorDate&&(_.pointerType==="mouse"||_.pointerType==="touch")){if(t.highlightedRange&&!f){if(rt(r,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(r),t.setDragging(!0),C.current=!0;return}else if(rt(r,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(r),t.setDragging(!0),C.current=!0;return}}let A=()=>{t.setDragging(!0),D.current=null,t.selectDate(r),t.setFocusedDate(r),x.current=!0};_.pointerType==="touch"?D.current=setTimeout(A,200):A()}},onPressEnd(){C.current=!1,x.current=!1,clearTimeout(D.current),D.current=null},onPress(){!("anchorDate"in t)&&!t.isReadOnly&&(t.selectDate(r),t.setFocusedDate(r))},onPressUp(_){if(!t.isReadOnly&&("anchorDate"in t&&D.current&&(t.selectDate(r),t.setFocusedDate(r)),"anchorDate"in t))if(C.current)t.setAnchorDate(r);else if(t.anchorDate&&!x.current)t.selectDate(r),t.setFocusedDate(r);else if(_.pointerType==="keyboard"&&!t.anchorDate){t.selectDate(r);let A=r.add({days:1});t.isInvalid(A)&&(A=r.subtract({days:1})),t.isInvalid(A)||t.setFocusedDate(A)}else _.pointerType==="virtual"&&(t.selectDate(r),t.setFocusedDate(r))}}),p=null;i||(p=rt(r,t.focusedDate)?0:-1),w.useEffect(()=>{c&&n.current&&(Pr(n.current),ax()!=="pointer"&&document.activeElement===n.current&&s7(n.current,{containingElement:r7(n.current)}))},[c,n]);let S=jr({day:"numeric",timeZone:t.timeZone,calendar:r.calendar.identifier}),$=w.useMemo(()=>S.formatToParts(g).find(_=>_.type==="day").value,[S,g]);return{cellProps:{role:"gridcell","aria-disabled":!h||null,"aria-selected":u||null,"aria-invalid":f||null},buttonProps:Lt(I,{onFocus(){i||t.setFocusedDate(r)},tabIndex:p,role:"button","aria-disabled":!h||null,"aria-label":b,"aria-invalid":f||null,"aria-describedby":[f?o:null,v["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(_){"highlightDate"in t&&(_.pointerType!=="touch"||t.isDragging)&&h&&t.highlightDate(r)},onPointerDown(_){"releasePointerCapture"in _.target&&_.target.releasePointerCapture(_.pointerId)},onContextMenu(_){_.preventDefault()}}),isPressed:T,isFocused:c,isSelected:u,isDisabled:i,isUnavailable:d,isOutsideVisibleRange:r.compare(t.visibleRange.start)<0||r.compare(t.visibleRange.end)>0,isInvalid:f,formattedDate:$}}const Tu={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},r4={...Tu,customError:!0,valid:!1},ai={isInvalid:!1,validationDetails:Tu,validationErrors:[]},U7=w.createContext({}),Jl="__formValidationState"+Date.now();function J7(e){if(e[Jl]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}=e[Jl];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}}return K7(e)}function K7(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:o,validate:a,validationBehavior:s="aria"}=e;n&&(t||(t=n==="invalid"));let l=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:r4}:null,u=w.useMemo(()=>$p(q7(a,i)),[a,i]);o!=null&&o.validationDetails.valid&&(o=null);let c=w.useContext(U7),d=w.useMemo(()=>r?Array.isArray(r)?r.flatMap($=>Qd(c[$])):Qd(c[r]):[],[c,r]),[h,f]=w.useState(c),[g,m]=w.useState(!1);c!==h&&(f(c),m(!1));let b=w.useMemo(()=>$p(g?[]:d),[g,d]),y=w.useRef(ai),[v,x]=w.useState(ai),C=w.useRef(ai),D=()=>{if(!I)return;T(!1);let $=u||o||y.current;Fc($,C.current)||(C.current=$,x($))},[I,T]=w.useState(!1);return w.useEffect(D),{realtimeValidation:l||b||u||o||ai,displayValidation:s==="native"?l||b||v:l||b||u||o||v,updateValidation($){s==="aria"&&!Fc(v,$)?x($):y.current=$},resetValidation(){let $=ai;Fc($,C.current)||(C.current=$,x($)),s==="native"&&T(!1),m(!0)},commitValidation(){s==="native"&&T(!0),m(!0)}}}function Qd(e){return e?Array.isArray(e)?e:[e]:[]}function q7(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return Qd(n)}return[]}function $p(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:r4}:null}function Fc(e,t){return e===t?!0:e&&t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}function Kl(...e){let t=new Set,n=!1,r={...Tu};for(let a of e){var i,o;for(let s of a.validationErrors)t.add(s);n||(n=a.isInvalid);for(let s in r)(i=r)[o=s]||(i[o]=a.validationDetails[s])}return r.valid=!n,{isInvalid:n,validationErrors:[...t],validationDetails:r}}function Q7(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:o="label"}=e;t=po(t);let a=po(),s={};n?(r=r?`${a} ${r}`:a,s={id:a,htmlFor:o==="label"?t:void 0}):!r&&!i&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=Th({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:s,fieldProps:l}}function eP(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:o,fieldProps:a}=Q7(e),s=Hd([!!t,!!n,r,i]),l=Hd([!!t,!!n,r,i]);return a=Lt(a,{"aria-describedby":[s,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:a,descriptionProps:{id:s},errorMessageProps:{id:l}}}var i4={};i4={calendar:"التقويم",day:"يوم",dayPeriod:"ص/م",endDate:"تاريخ الانتهاء",era:"العصر",hour:"الساعات",minute:"الدقائق",month:"الشهر",second:"الثواني",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.startDate} إلى ${e.endDate}`,selectedTimeDescription:e=>`الوقت المحدد: ${e.time}`,startDate:"تاريخ البدء",timeZoneName:"التوقيت",weekday:"اليوم",year:"السنة"};var o4={};o4={calendar:"Календар",day:"ден",dayPeriod:"пр.об./сл.об.",endDate:"Крайна дата",era:"ера",hour:"час",minute:"минута",month:"месец",second:"секунда",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.startDate} до ${e.endDate}`,selectedTimeDescription:e=>`Избрано време: ${e.time}`,startDate:"Начална дата",timeZoneName:"часова зона",weekday:"ден от седмицата",year:"година"};var a4={};a4={calendar:"Kalendář",day:"den",dayPeriod:"část dne",endDate:"Konečné datum",era:"letopočet",hour:"hodina",minute:"minuta",month:"měsíc",second:"sekunda",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.startDate} až ${e.endDate}`,selectedTimeDescription:e=>`Vybraný čas: ${e.time}`,startDate:"Počáteční datum",timeZoneName:"časové pásmo",weekday:"den v týdnu",year:"rok"};var s4={};s4={calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"æra",hour:"time",minute:"minut",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"år"};var l4={};l4={calendar:"Kalender",day:"Tag",dayPeriod:"Tageshälfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgewählte Zeit: ${e.time}`,startDate:"Anfangsdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"};var u4={};u4={calendar:"Ημερολόγιο",day:"ημέρα",dayPeriod:"π.μ./μ.μ.",endDate:"Ημερομηνία λήξης",era:"περίοδος",hour:"ώρα",minute:"λεπτό",month:"μήνας",second:"δευτερόλεπτο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.startDate} έως ${e.endDate}`,selectedTimeDescription:e=>`Επιλεγμένη ώρα: ${e.time}`,startDate:"Ημερομηνία έναρξης",timeZoneName:"ζώνη ώρας",weekday:"καθημερινή",year:"έτος"};var c4={};c4={era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`};var d4={};d4={calendar:"Calendario",day:"día",dayPeriod:"a. m./p. m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"día de la semana",year:"año"};var f4={};f4={calendar:"Kalender",day:"päev",dayPeriod:"enne/pärast lõunat",endDate:"Lõppkuupäev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:"Alguskuupäev",timeZoneName:"ajavöönd",weekday:"nädalapäev",year:"aasta"};var h4={};h4={calendar:"Kalenteri",day:"päivä",dayPeriod:"vuorokaudenaika",endDate:"Päättymispäivä",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.startDate} – ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:"Alkamispäivä",timeZoneName:"aikavyöhyke",weekday:"viikonpäivä",year:"vuosi"};var g4={};g4={calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"ère",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie : ${e.time}`,startDate:"Date de début",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"année"};var m4={};m4={calendar:"לוח שנה",day:"יום",dayPeriod:"לפנה״צ/אחה״צ",endDate:"תאריך סיום",era:"תקופה",hour:"שעה",minute:"דקה",month:"חודש",second:"שנייה",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.startDate} עד ${e.endDate}`,selectedTimeDescription:e=>`זמן נבחר: ${e.time}`,startDate:"תאריך התחלה",timeZoneName:"אזור זמן",weekday:"יום בשבוע",year:"שנה"};var p4={};p4={calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum završetka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:"Datum početka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"};var b4={};b4={calendar:"Naptár",day:"nap",dayPeriod:"napszak",endDate:"Befejező dátum",era:"éra",hour:"óra",minute:"perc",month:"hónap",second:"másodperc",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.startDate}–${e.endDate}`,selectedTimeDescription:e=>`Kijelölt idő: ${e.time}`,startDate:"Kezdő dátum",timeZoneName:"időzóna",weekday:"hét napja",year:"év"};var v4={};v4={calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"};var y4={};y4={calendar:"カレンダー",day:"日",dayPeriod:"午前/午後",endDate:"終了日",era:"時代",hour:"時",minute:"分",month:"月",second:"秒",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.startDate} から ${e.endDate}`,selectedTimeDescription:e=>`選択した時間 : ${e.time}`,startDate:"開始日",timeZoneName:"タイムゾーン",weekday:"曜日",year:"年"};var x4={};x4={calendar:"달력",day:"일",dayPeriod:"오전/오후",endDate:"종료일",era:"연호",hour:"시",minute:"분",month:"월",second:"초",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`선택 시간: ${e.time}`,startDate:"시작일",timeZoneName:"시간대",weekday:"요일",year:"년"};var C4={};C4={calendar:"Kalendorius",day:"diena",dayPeriod:"iki pietų / po pietų",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minutė",month:"mėnuo",second:"sekundė",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:"Pradžios data",timeZoneName:"laiko juosta",weekday:"savaitės diena",year:"metai"};var w4={};w4={calendar:"Kalendārs",day:"diena",dayPeriod:"priekšpusdienā/pēcpusdienā",endDate:"Beigu datums",era:"ēra",hour:"stundas",minute:"minūtes",month:"mēnesis",second:"sekundes",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: no ${e.startDate} līdz ${e.endDate}`,selectedTimeDescription:e=>`Atlasītais laiks: ${e.time}`,startDate:"Sākuma datums",timeZoneName:"laika josla",weekday:"nedēļas diena",year:"gads"};var D4={};D4={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"år"};var S4={};S4={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"};var E4={};E4={calendar:"Kalendarz",day:"dzień",dayPeriod:"rano / po południu / wieczorem",endDate:"Data końcowa",era:"era",hour:"godzina",minute:"minuta",month:"miesiąc",second:"sekunda",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:"Data początkowa",timeZoneName:"strefa czasowa",weekday:"dzień tygodnia",year:"rok"};var I4={};I4={calendar:"Calendário",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data inicial",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var _4={};_4={calendar:"Calendário",day:"dia",dayPeriod:"am/pm",endDate:"Data de Término",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data de Início",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var $4={};$4={calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dată final",era:"eră",hour:"oră",minute:"minut",month:"lună",second:"secundă",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} până la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectată: ${e.time}`,startDate:"Dată început",timeZoneName:"fus orar",weekday:"ziua din săptămână",year:"an"};var R4={};R4={calendar:"Календарь",day:"день",dayPeriod:"AM/PM",endDate:"Дата окончания",era:"эра",hour:"час",minute:"минута",month:"месяц",second:"секунда",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: с ${e.startDate} по ${e.endDate}`,selectedTimeDescription:e=>`Выбранное время: ${e.time}`,startDate:"Дата начала",timeZoneName:"часовой пояс",weekday:"день недели",year:"год"};var A4={};A4={calendar:"Kalendár",day:"deň",dayPeriod:"AM/PM",endDate:"Dátum ukončenia",era:"letopočet",hour:"hodina",minute:"minúta",month:"mesiac",second:"sekunda",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybratý čas: ${e.time}`,startDate:"Dátum začatia",timeZoneName:"časové pásmo",weekday:"deň týždňa",year:"rok"};var F4={};F4={calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani čas: ${e.time}`,startDate:"Datum začetka",timeZoneName:"časovni pas",weekday:"dan v tednu",year:"leto"};var P4={};P4={calendar:"Kalendar",day:"дан",dayPeriod:"пре подне/по подне",endDate:"Datum završetka",era:"ера",hour:"сат",minute:"минут",month:"месец",second:"секунд",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:"Datum početka",timeZoneName:"временска зона",weekday:"дан у недељи",year:"година"};var T4={};T4={calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"månad",second:"sekund",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"år"};var k4={};k4={calendar:"Takvim",day:"gün",dayPeriod:"ÖÖ/ÖS",endDate:"Bitiş Tarihi",era:"çağ",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Seçilen Zaman: ${e.time}`,startDate:"Başlangıç Tarihi",timeZoneName:"saat dilimi",weekday:"haftanın günü",year:"yıl"};var M4={};M4={calendar:"Календар",day:"день",dayPeriod:"дп/пп",endDate:"Дата завершення",era:"ера",hour:"година",minute:"хвилина",month:"місяць",second:"секунда",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.startDate} — ${e.endDate}`,selectedTimeDescription:e=>`Вибраний час: ${e.time}`,startDate:"Дата початку",timeZoneName:"часовий пояс",weekday:"день тижня",year:"рік"};var B4={};B4={calendar:"日历",day:"日",dayPeriod:"上午/下午",endDate:"结束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`选定的时间:${e.time}`,startDate:"开始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var O4={};O4={calendar:"日曆",day:"日",dayPeriod:"上午/下午",endDate:"結束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`選定的時間:${e.time}`,startDate:"開始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var N4={};N4={"ar-AE":i4,"bg-BG":o4,"cs-CZ":a4,"da-DK":s4,"de-DE":l4,"el-GR":u4,"en-US":c4,"es-ES":d4,"et-EE":f4,"fi-FI":h4,"fr-FR":g4,"he-IL":m4,"hr-HR":p4,"hu-HU":b4,"it-IT":v4,"ja-JP":y4,"ko-KR":x4,"lt-LT":C4,"lv-LV":w4,"nb-NO":D4,"nl-NL":S4,"pl-PL":E4,"pt-BR":I4,"pt-PT":_4,"ro-RO":$4,"ru-RU":R4,"sk-SK":A4,"sl-SI":F4,"sr-SP":P4,"sv-SE":T4,"tr-TR":k4,"uk-UA":M4,"zh-CN":B4,"zh-TW":O4};function tP(e,t,n){let{direction:r}=In(),i=w.useMemo(()=>dx(t),[t]),o=l=>{if(l.currentTarget.contains(l.target)&&(l.altKey&&(l.key==="ArrowDown"||l.key==="ArrowUp")&&"setOpen"in e&&(l.preventDefault(),l.stopPropagation(),e.setOpen(!0)),!n))switch(l.key){case"ArrowLeft":l.preventDefault(),l.stopPropagation(),r==="rtl"?i.focusNext():i.focusPrevious();break;case"ArrowRight":l.preventDefault(),l.stopPropagation(),r==="rtl"?i.focusPrevious():i.focusNext();break}},a=()=>{var l;let u=(l=window.event)===null||l===void 0?void 0:l.target,c=Ho(t.current,{tabbable:!0});if(u&&(c.currentNode=u,u=c.previousNode()),!u){let d;do d=c.lastChild(),d&&(u=d);while(d)}for(;u!=null&&u.hasAttribute("data-placeholder");){let d=c.previousNode();if(d&&d.hasAttribute("data-placeholder"))u=d;else break}u&&u.focus()},{pressProps:s}=kh({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(l){l.pointerType==="mouse"&&a()},onPress(l){l.pointerType!=="mouse"&&a()}});return Lt(s,{onKeyDown:o})}const nP="__role_"+Date.now(),rP="__focusManager_"+Date.now();function iP(e){return e&&e.__esModule?e.default:e}function oP(e,t,n){var r,i;let o=as(iP(N4),"@react-aria/datepicker"),{isInvalid:a,validationErrors:s,validationDetails:l}=t.displayValidation,{labelProps:u,fieldProps:c,descriptionProps:d,errorMessageProps:h}=eP({...e,labelElementType:"span",isInvalid:a,errorMessage:e.errorMessage||s}),f=c["aria-labelledby"]||c.id,{locale:g}=In(),m=t.formatValue(g,{month:"long"}),b=m?o.format("selectedRangeDescription",{startDate:m.start,endDate:m.end}):"",y=Yy(b),v={"aria-label":o.format("startDate"),"aria-labelledby":f},x={"aria-label":o.format("endDate"),"aria-labelledby":f},C=po(),D=po(),I=tP(t,n),T=[y["aria-describedby"],c["aria-describedby"]].filter(Boolean).join(" ")||void 0,p=w.useMemo(()=>dx(n,{accept:R=>R.id!==C}),[n,C]),S={[rP]:p,[nP]:"presentation","aria-describedby":T,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,granularity:e.granularity,shouldForceLeadingZeros:e.shouldForceLeadingZeros,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior},$=Fh(e),{focusWithinProps:_}=sx({...e,isDisabled:t.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),A=w.useRef(ai),k=w.useRef(ai);return{groupProps:Lt($,I,c,y,_,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":T,onKeyDown(R){t.isOpen||e.onKeyDown&&e.onKeyDown(R)},onKeyUp(R){t.isOpen||e.onKeyUp&&e.onKeyUp(R)}}),labelProps:{...u,onClick:()=>{p.focusFirst()}},buttonProps:{...y,id:C,"aria-haspopup":"dialog","aria-label":o.format("calendar"),"aria-labelledby":`${C} ${f}`,"aria-describedby":T,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:D,"aria-labelledby":`${C} ${f}`},startFieldProps:{...v,...S,value:(r=t.value)===null||r===void 0?void 0:r.start,onChange:R=>t.setDateTime("start",R),autoFocus:e.autoFocus,name:e.startName,[Jl]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(R){A.current=R,t.updateValidation(Kl(R,k.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...x,...S,value:(i=t.value)===null||i===void 0?void 0:i.end,onChange:R=>t.setDateTime("end",R),name:e.endName,[Jl]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(R){k.current=R,t.updateValidation(Kl(A.current,R))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},descriptionProps:d,errorMessageProps:h,calendarProps:{autoFocus:!0,value:t.dateRange,onChange:t.setDateRange,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,allowsNonContiguousRanges:e.allowsNonContiguousRanges,defaultFocusedValue:t.dateRange?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" ")},isInvalid:a,validationErrors:s,validationDetails:l}}function ao(e,t,n){return t!=null&&e.compare(t)<0||n!=null&&e.compare(n)>0}function ef(e,t,n,r,i){let o={};for(let s in t)o[s]=Math.floor(t[s]/2),o[s]>0&&t[s]%2===0&&o[s]--;let a=ci(e,t,n).subtract(o);return Ma(e,a,t,n,r,i)}function ci(e,t,n,r,i){let o=e;return t.years?o=HA(e):t.months?o=rs(e):t.weeks&&(o=_a(e,n)),Ma(e,o,t,n,r,i)}function tf(e,t,n,r,i){let o={...t};t.days?o.days--:t.weeks?o.weeks--:t.months?o.months--:t.years&&o.years--;let a=ci(e,t,n).subtract(o);return Ma(e,a,t,n,r,i)}function Ma(e,t,n,r,i,o){return i&&e.compare(i)>=0&&(t=xh(t,ci(Kt(i),n,r))),o&&e.compare(o)<=0&&(t=yh(t,tf(Kt(o),n,r))),t}function Ir(e,t,n){return t&&(e=xh(e,Kt(t))),n&&(e=yh(e,Kt(n))),e}function V4(e,t,n){if(!n)return e;for(;e.compare(t)>=0&&n(e);)e=e.subtract({days:1});if(e.compare(t)>=0)return e}function L4(e){let t=w.useMemo(()=>new Aa(e.locale),[e.locale]),n=w.useMemo(()=>t.resolvedOptions(),[t]),{locale:r,createCalendar:i,visibleDuration:o={months:1},minValue:a,maxValue:s,selectionAlignment:l,isDateUnavailable:u,pageBehavior:c="visible"}=e,d=w.useMemo(()=>i(n.calendar),[i,n.calendar]),[h,f]=Ta(e.value,e.defaultValue,e.onChange),g=w.useMemo(()=>h?ct(Kt(h),d):null,[h,d]),m=w.useMemo(()=>h&&"timeZone"in h?h.timeZone:n.timeZone,[h,n.timeZone]),b=w.useMemo(()=>e.focusedValue?Ir(ct(Kt(e.focusedValue),d),a,s):void 0,[e.focusedValue,d,a,s]),y=w.useMemo(()=>Ir(e.defaultFocusedValue?ct(Kt(e.defaultFocusedValue),d):g||ct(vh(m),d),a,s),[e.defaultFocusedValue,g,m,d,a,s]),[v,x]=Ta(b,y,e.onFocusChange),[C,D]=w.useState(()=>{switch(l){case"start":return ci(v,o,r,a,s);case"end":return tf(v,o,r,a,s);case"center":default:return ef(v,o,r,a,s)}}),[I,T]=w.useState(e.autoFocus||!1),p=w.useMemo(()=>{let F={...o};return F.days?F.days--:F.days=-1,C.add(F)},[C,o]),[S,$]=w.useState(d.identifier);if(d.identifier!==S){let F=ct(v,d);D(ef(F,o,r,a,s)),x(F),$(d.identifier)}ao(v,a,s)?x(Ir(v,a,s)):v.compare(C)<0?D(tf(v,o,r,a,s)):v.compare(p)>0&&D(ci(v,o,r,a,s));function _(F){F=Ir(F,a,s),x(F)}function A(F){if(!e.isDisabled&&!e.isReadOnly){if(F===null){f(null);return}if(F=Ir(F,a,s),F=V4(F,C,u),!F)return;F=ct(F,(h==null?void 0:h.calendar)||new Qt),h&&"hour"in h?f(h.set(F)):f(F)}}let k=w.useMemo(()=>g?u&&u(g)?!0:ao(g,a,s):!1,[g,u,a,s]),R=e.isInvalid||e.validationState==="invalid"||k,M=R?"invalid":null,P=w.useMemo(()=>c==="visible"?o:Pc(o),[c,o]);return{isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,value:g,setValue:A,visibleRange:{start:C,end:p},minValue:a,maxValue:s,focusedDate:v,timeZone:m,validationState:M,isValueInvalid:R,setFocusedDate(F){_(F),T(!0)},focusNextDay(){_(v.add({days:1}))},focusPreviousDay(){_(v.subtract({days:1}))},focusNextRow(){o.days?this.focusNextPage():(o.weeks||o.months||o.years)&&_(v.add({weeks:1}))},focusPreviousRow(){o.days?this.focusPreviousPage():(o.weeks||o.months||o.years)&&_(v.subtract({weeks:1}))},focusNextPage(){let F=C.add(P);x(Ir(v.add(P),a,s)),D(ci(Ma(v,F,P,r,a,s),P,r))},focusPreviousPage(){let F=C.subtract(P);x(Ir(v.subtract(P),a,s)),D(ci(Ma(v,F,P,r,a,s),P,r))},focusSectionStart(){o.days?_(C):o.weeks?_(_a(v,r)):(o.months||o.years)&&_(rs(v))},focusSectionEnd(){o.days?_(p):o.weeks?_(WA(v,r)):(o.months||o.years)&&_(Md(v))},focusNextSection(F){if(!F&&!o.days){_(v.add(Pc(o)));return}o.days?this.focusNextPage():o.weeks?_(v.add({months:1})):(o.months||o.years)&&_(v.add({years:1}))},focusPreviousSection(F){if(!F&&!o.days){_(v.subtract(Pc(o)));return}o.days?this.focusPreviousPage():o.weeks?_(v.subtract({months:1})):(o.months||o.years)&&_(v.subtract({years:1}))},selectFocusedDate(){A(v)},selectDate(F){A(F)},isFocused:I,setFocused:T,isInvalid(F){return ao(F,a,s)},isSelected(F){return g!=null&&rt(F,g)&&!this.isCellDisabled(F)&&!this.isCellUnavailable(F)},isCellFocused(F){return I&&v&&rt(F,v)},isCellDisabled(F){return e.isDisabled||F.compare(C)<0||F.compare(p)>0||this.isInvalid(F,a,s)},isCellUnavailable(F){return e.isDateUnavailable&&e.isDateUnavailable(F)},isPreviousVisibleRangeInvalid(){let F=C.subtract({days:1});return rt(F,C)||this.isInvalid(F,a,s)},isNextVisibleRangeInvalid(){let F=p.add({days:1});return rt(F,p)||this.isInvalid(F,a,s)},getDatesInWeek(F,B=C){let N=B.add({weeks:F}),O=[];N=_a(N,r);let L=Au(N,r);for(let W=0;W<L;W++)O.push(null);for(;O.length<7;){O.push(N);let W=N.add({days:1});if(rt(N,W))break;N=W}for(;O.length<7;)O.push(null);return O}}}function Pc(e){let t={...e};for(let n in e)t[n]=1;return t}function aP(e){let{value:t,defaultValue:n,onChange:r,createCalendar:i,locale:o,visibleDuration:a={months:1},minValue:s,maxValue:l,...u}=e,[c,d]=Ta(t,n||null,r),[h,f]=w.useState(null),g="center";if(c&&c.start&&c.end){let B=ef(Kt(c.start),a,o,s,l).add(a).subtract({days:1});c.end.compare(B)>0&&(g="start")}let m=w.useRef(null),[b,y]=w.useState(null),v=w.useMemo(()=>xh(s,b==null?void 0:b.start),[s,b]),x=w.useMemo(()=>yh(l,b==null?void 0:b.end),[l,b]),C=L4({...u,value:c&&c.start,createCalendar:i,locale:o,visibleDuration:a,minValue:v,maxValue:x,selectionAlignment:g}),D=F=>{F&&e.isDateUnavailable&&!e.allowsNonContiguousRanges?(m.current={start:Ap(F,C,-1),end:Ap(F,C,1)},y(m.current)):(m.current=null,y(null))},[I,T]=w.useState(C.visibleRange);(!kd(C.visibleRange.start,I.start)||!kd(C.visibleRange.end,I.end))&&(D(h),T(C.visibleRange));let p=F=>{F?(f(F),D(F)):(f(null),D(null))},S=h?Tc(h,C.focusedDate):c&&Tc(c.start,c.end),$=F=>{if(!e.isReadOnly&&(F=Ir(F,v,x),F=V4(F,C.visibleRange.start,e.isDateUnavailable),!!F))if(!h)p(F);else{let B=Tc(h,F);d({start:Rp(B.start,c==null?void 0:c.start),end:Rp(B.end,c==null?void 0:c.end)}),p(null)}},[_,A]=w.useState(!1),{isDateUnavailable:k}=e,R=w.useMemo(()=>!c||h?!1:k&&(k(c.start)||k(c.end))?!0:ao(c.start,s,l)||ao(c.end,s,l),[k,c,h,s,l]),M=e.isInvalid||e.validationState==="invalid"||R;return{...C,value:c,setValue:d,anchorDate:h,setAnchorDate:p,highlightedRange:S,validationState:M?"invalid":null,isValueInvalid:M,selectFocusedDate(){$(C.focusedDate)},selectDate:$,highlightDate(F){h&&C.setFocusedDate(F)},isSelected(F){return S&&F.compare(S.start)>=0&&F.compare(S.end)<=0&&!C.isCellDisabled(F)&&!C.isCellUnavailable(F)},isInvalid(F){var B,N;return C.isInvalid(F)||ao(F,(B=m.current)===null||B===void 0?void 0:B.start,(N=m.current)===null||N===void 0?void 0:N.end)},isDragging:_,setDragging:A}}function Tc(e,t){return!e||!t?null:(t.compare(e)<0&&([e,t]=[t,e]),{start:Kt(e),end:Kt(t)})}function Rp(e,t){return e=ct(e,(t==null?void 0:t.calendar)||new Qt),t&&"hour"in t?t.set(e):e}function Ap(e,t,n){let r=e.add({days:n});for(;(n<0?r.compare(t.visibleRange.start)>=0:r.compare(t.visibleRange.end)<=0)&&!t.isCellUnavailable(r);)r=r.add({days:n});return t.isCellUnavailable(r)?r.add({days:-n}):null}function sP(e){let[t,n]=Ta(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=w.useCallback(()=>{n(!0)},[n]),i=w.useCallback(()=>{n(!1)},[n]),o=w.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:i,toggle:o}}var j4={};j4={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var H4={};H4={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var W4={};W4={rangeOverflow:e=>`Hodnota musí být ${e.maxValue} nebo dřívější.`,rangeReversed:"Datum zahájení musí předcházet datu ukončení.",rangeUnderflow:e=>`Hodnota musí být ${e.minValue} nebo pozdější.`,unavailableDate:"Vybrané datum není k dispozici."};var z4={};z4={rangeOverflow:e=>`Værdien skal være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal være før slutdatoen.",rangeUnderflow:e=>`Værdien skal være ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilgængelig."};var G4={};G4={rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder früher sein.`,rangeReversed:"Das Anfangsdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder später sein.`,unavailableDate:"Das ausgewählte Datum ist nicht verfügbar."};var Z4={};Z4={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var X4={};X4={rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."};var Y4={};Y4={rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalización.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."};var U4={};U4={rangeOverflow:e=>`Väärtus peab olema ${e.maxValue} või varasem.`,rangeReversed:"Alguskuupäev peab olema enne lõppkuupäeva.",rangeUnderflow:e=>`Väärtus peab olema ${e.minValue} või hilisem.`,unavailableDate:"Valitud kuupäev pole saadaval."};var J4={};J4={rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sitä aikaisempi.`,rangeReversed:"Aloituspäivän on oltava ennen lopetuspäivää.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sitä myöhäisempi.`,unavailableDate:"Valittu päivämäärä ei ole käytettävissä."};var K4={};K4={rangeOverflow:e=>`La valeur doit être ${e.maxValue} ou antérieure.`,rangeReversed:"La date de début doit être antérieure à la date de fin.",rangeUnderflow:e=>`La valeur doit être ${e.minValue} ou ultérieure.`,unavailableDate:"La date sélectionnée n’est pas disponible."};var q4={};q4={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var Q4={};Q4={rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum početka mora biti prije datuma završetka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."};var e3={};e3={rangeOverflow:e=>`Az értéknek ${e.maxValue} vagy korábbinak kell lennie.`,rangeReversed:"A kezdő dátumnak a befejező dátumnál korábbinak kell lennie.",rangeUnderflow:e=>`Az értéknek ${e.minValue} vagy későbbinek kell lennie.`,unavailableDate:"A kiválasztott dátum nem érhető el."};var t3={};t3={rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."};var n3={};n3={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var r3={};r3={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var i3={};i3={rangeOverflow:e=>`Reikšmė turi būti ${e.maxValue} arba ankstesnė.`,rangeReversed:"Pradžios data turi būti ankstesnė nei pabaigos data.",rangeUnderflow:e=>`Reikšmė turi būti ${e.minValue} arba naujesnė.`,unavailableDate:"Pasirinkta data nepasiekiama."};var o3={};o3={rangeOverflow:e=>`Vērtībai ir jābūt ${e.maxValue} vai agrākai.`,rangeReversed:"Sākuma datumam ir jābūt pirms beigu datuma.",rangeUnderflow:e=>`Vērtībai ir jābūt ${e.minValue} vai vēlākai.`,unavailableDate:"Atlasītais datums nav pieejams."};var a3={};a3={rangeOverflow:e=>`Verdien må være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen må være før sluttdatoen.",rangeUnderflow:e=>`Verdien må være ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."};var s3={};s3={rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."};var l3={};l3={rangeOverflow:e=>`Wartość musi mieć wartość ${e.maxValue} lub wcześniejszą.`,rangeReversed:"Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",rangeUnderflow:e=>`Wartość musi mieć wartość ${e.minValue} lub późniejszą.`,unavailableDate:"Wybrana data jest niedostępna."};var u3={};u3={rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior à data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var c3={};c3={rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de início deve ser anterior à data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var d3={};d3={rangeOverflow:e=>`Valoarea trebuie să fie ${e.maxValue} sau anterioară.`,rangeReversed:"Data de început trebuie să fie anterioară datei de sfârșit.",rangeUnderflow:e=>`Valoarea trebuie să fie ${e.minValue} sau ulterioară.`,unavailableDate:"Data selectată nu este disponibilă."};var f3={};f3={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var h3={};h3={rangeOverflow:e=>`Hodnota musí byť ${e.maxValue} alebo skoršia.`,rangeReversed:"Dátum začiatku musí byť skorší ako dátum konca.",rangeUnderflow:e=>`Hodnota musí byť ${e.minValue} alebo neskoršia.`,unavailableDate:"Vybratý dátum je nedostupný."};var g3={};g3={rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starejša.`,rangeReversed:"Začetni datum mora biti pred končnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novejša.`,unavailableDate:"Izbrani datum ni na voljo."};var m3={};m3={rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum početka mora biti pre datuma završetka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."};var p3={};p3={rangeOverflow:e=>`Värdet måste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet måste vara före slutdatumet.",rangeUnderflow:e=>`Värdet måste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet är inte tillgängligt."};var b3={};b3={rangeOverflow:e=>`Değer, ${e.maxValue} veya öncesi olmalıdır.`,rangeReversed:"Başlangıç tarihi bitiş tarihinden önce olmalıdır.",rangeUnderflow:e=>`Değer, ${e.minValue} veya sonrası olmalıdır.`,unavailableDate:"Seçilen tarih kullanılamıyor."};var v3={};v3={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var y3={};y3={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var x3={};x3={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var C3={};C3={"ar-AE":j4,"bg-BG":H4,"cs-CZ":W4,"da-DK":z4,"de-DE":G4,"el-GR":Z4,"en-US":X4,"es-ES":Y4,"et-EE":U4,"fi-FI":J4,"fr-FR":K4,"he-IL":q4,"hr-HR":Q4,"hu-HU":e3,"it-IT":t3,"ja-JP":n3,"ko-KR":r3,"lt-LT":i3,"lv-LV":o3,"nb-NO":a3,"nl-NL":s3,"pl-PL":l3,"pt-BR":u3,"pt-PT":c3,"ro-RO":d3,"ru-RU":f3,"sk-SK":h3,"sl-SI":g3,"sr-SP":m3,"sv-SE":p3,"tr-TR":b3,"uk-UA":v3,"zh-CN":y3,"zh-TW":x3};function lP(e){return e&&e.__esModule?e.default:e}const w3=new Pi(lP(C3));function D3(){return typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US"}function Fp(e,t,n,r,i){let o=e!=null&&n!=null&&e.compare(n)>0,a=e!=null&&t!=null&&e.compare(t)<0,s=e!=null&&(r==null?void 0:r(e))||!1,l=o||a||s,u=[];if(l){let c=D3(),d=Pi.getGlobalDictionaryForPackage("@react-stately/datepicker")||w3,h=new bx(c,d),f=new Aa(c,nf({},i)),g=f.resolvedOptions().timeZone;a&&u.push(h.format("rangeUnderflow",{minValue:f.format(t.toDate(g))})),o&&u.push(h.format("rangeOverflow",{maxValue:f.format(n.toDate(g))})),s&&u.push(h.format("unavailableDate"))}return{isInvalid:l,validationErrors:u,validationDetails:{badInput:s,customError:!1,patternMismatch:!1,rangeOverflow:o,rangeUnderflow:a,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!l}}}function uP(e,t,n,r,i){let o=Fp(e==null?void 0:e.start,t,n,r,i),a=Fp(e==null?void 0:e.end,t,n,r,i),s=Kl(o,a);if(e.end!=null&&e.start!=null&&e.end.compare(e.start)<0){let l=Pi.getGlobalDictionaryForPackage("@react-stately/datepicker")||w3;s=Kl(s,{isInvalid:!0,validationErrors:[l.getStringForLocale("rangeReversed",D3())],validationDetails:{...Tu,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})}return s}const cP={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},dP={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function nf(e,t){e={...t.shouldForceLeadingZeros?dP:cP,...e};let r=t.granularity||"minute",i=Object.keys(e);var o;let a=i.indexOf((o=t.maxGranularity)!==null&&o!==void 0?o:"year");a<0&&(a=0);let s=i.indexOf(r);if(s<0&&(s=2),a>s)throw new Error("maxGranularity must be greater than granularity");let l=i.slice(a,s+1).reduce((c,d)=>(c[d]=e[d],c),{});return t.hourCycle!=null&&(l.hour12=t.hourCycle===12),l.timeZone=t.timeZone||"UTC",(r==="hour"||r==="minute"||r==="second")&&t.timeZone&&!t.hideTimeZone&&(l.timeZoneName="short"),t.showEra&&a===0&&(l.era="short"),l}function Ts(e){return e&&"hour"in e?e:new _h}function fP(e,t){let n=e&&"timeZone"in e?e.timeZone:void 0,r=e&&"minute"in e?"minute":"day";if(e&&t&&!(t in e))throw new Error("Invalid granularity "+t+" for value "+e.toString());let[i,o]=w.useState([r,n]);e&&(i[0]!==r||i[1]!==n)&&o([r,n]),t||(t=e?r:i[0]);let a=e?n:i[1];return[t,a]}function hP(e){var t,n;let r=sP(e),[i,o]=Ta(e.value,e.defaultValue||null,e.onChange),[a,s]=w.useState(()=>i||{start:null,end:null});i==null&&a.start&&a.end&&(a={start:null,end:null},s(a));let l=i||a,u=P=>{s(P||{start:null,end:null}),P!=null&&P.start&&P.end?o(P):o(null)},c=(l==null?void 0:l.start)||(l==null?void 0:l.end)||e.placeholderValue,[d,h]=fP(c,e.granularity),f=d==="hour"||d==="minute"||d==="second";var g;let m=(g=e.shouldCloseOnSelect)!==null&&g!==void 0?g:!0,[b,y]=w.useState(null),[v,x]=w.useState(null);l&&l.start&&l.end&&(b=l,"hour"in l.start&&(v=l));let C=(P,F)=>{u({start:"timeZone"in F.start?F.start.set(Kt(P.start)):Lr(P.start,F.start),end:"timeZone"in F.end?F.end.set(Kt(P.end)):Lr(P.end,F.end)}),y(null),x(null),k.commitValidation()},D=P=>{let F=typeof m=="function"?m():m;f?F||P.start&&P.end&&(v!=null&&v.start)&&(v!=null&&v.end)?C(P,{start:(v==null?void 0:v.start)||Ts(e.placeholderValue),end:(v==null?void 0:v.end)||Ts(e.placeholderValue)}):y(P):P.start&&P.end?(u(P),k.commitValidation()):y(P),F&&r.setOpen(!1)},I=P=>{b!=null&&b.start&&(b!=null&&b.end)&&P.start&&P.end?C(b,P):x(P)},T=(l==null||(t=l.start)===null||t===void 0?void 0:t.calendar.identifier)==="gregory"&&l.start.era==="BC"||(l==null||(n=l.end)===null||n===void 0?void 0:n.calendar.identifier)==="gregory"&&l.end.era==="BC",p=w.useMemo(()=>({granularity:d,timeZone:h,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:T}),[d,e.hourCycle,e.shouldForceLeadingZeros,h,e.hideTimeZone,T]),{minValue:S,maxValue:$,isDateUnavailable:_}=e,A=w.useMemo(()=>uP(l,S,$,_,p),[l,S,$,_,p]),k=J7({...e,value:i,name:w.useMemo(()=>[e.startName,e.endName],[e.startName,e.endName]),builtinValidation:A}),R=k.displayValidation.isInvalid,M=e.validationState||(R?"invalid":null);return{...k,value:l,setValue:u,dateRange:b,timeRange:v,granularity:d,hasTime:f,setDate(P,F){D({...b,[P]:F})},setTime(P,F){I({...v,[P]:F})},setDateTime(P,F){u({...l,[P]:F})},setDateRange:D,setTimeRange:I,...r,setOpen(P){!P&&!(l!=null&&l.start&&(l!=null&&l.end))&&(b!=null&&b.start)&&(b!=null&&b.end)&&f&&C(b,{start:(v==null?void 0:v.start)||Ts(e.placeholderValue),end:(v==null?void 0:v.end)||Ts(e.placeholderValue)}),r.setOpen(P)},validationState:M,isInvalid:R,formatValue(P,F){if(!l||!l.start||!l.end)return null;let B="timeZone"in l.start?l.start.timeZone:void 0,N=e.granularity||(l.start&&"minute"in l.start?"minute":"day"),O="timeZone"in l.end?l.end.timeZone:void 0,L=e.granularity||(l.end&&"minute"in l.end?"minute":"day"),W=nf(F,{granularity:N,timeZone:B,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:l.start.calendar.identifier==="gregory"&&l.start.era==="BC"||l.end.calendar.identifier==="gregory"&&l.end.era==="BC"}),Z=l.start.toDate(B||"UTC"),H=l.end.toDate(O||"UTC"),j=new Aa(P,W),V;if(B===O&&N===L&&l.start.compare(l.end)!==0){try{let z=j.formatRangeToParts(Z,H),Y=-1;for(let ee=0;ee<z.length;ee++){let X=z[ee];if(X.source==="shared"&&X.type==="literal")Y=ee;else if(X.source==="endRange")break}let K="",Q="";for(let ee=0;ee<z.length;ee++)ee<Y?K+=z[ee].value:ee>Y&&(Q+=z[ee].value);return{start:K,end:Q}}catch{}V=j}else{let z=nf(F,{granularity:L,timeZone:O,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle});V=new Aa(P,z)}return{start:j.format(Z),end:V.format(H)}}}}const S3=e=>{const t=w.useRef(null),{locale:n}=In(),{state:r,date:i}=e,{cellProps:o,buttonProps:a,isSelected:s,isOutsideVisibleRange:l,isDisabled:u,formattedDate:c,isInvalid:d}=Y7({date:i},r,t),{focusProps:h}=fx(),f="highlightedRange"in r?r.highlightedRange?rt(i,r.highlightedRange.start):null:s,g="highlightedRange"in r?r.highlightedRange?rt(i,r.highlightedRange.end):null:s,m=Au(i,n),b=s&&(f||m===0||i.day===1),y=s&&(g||m===6||i.day===i.calendar.getDaysInMonth(i));return E.jsx("td",{...o,children:E.jsx("div",{...Lt(a,h),ref:t,className:`${ge["cell-calendar"]} ${b?"1ru-rounded-l-full":""} ${y?"1ru-rounded-r-full":""} ${s?d?"1ru-bg-red-300":"1ru-bg-laba-blue-02":""} ${u?"1ru-disabled":""}`,children:l?E.jsx("div",{className:ge["visible-cell-calendar"],children:c}):E.jsx("div",{className:`${ge["active-cell-calendar"]} ${u&&!d?ge.disabled:""} ${f||g?d?ge.error:ge.selected:""} ${s&&!u&&!(f??g)?d?"hover:1ru-bg-red-400":"hover:1ru-text-laba-blue-05":""} ${!s&&!u?"hover:1ru-bg-laba-blue-01":""}`,children:c})})})},bo=e=>{const t=w.useRef(null),{buttonProps:n}=H7(e,t),{focusProps:r}=fx();return E.jsx("button",{...Lt(n,r),ref:t,className:`1ru-px-2 1ru-py-1 1ru-rounded-full ${e.isDisabled?"1ru-text-gray-400":"1ru-text-laba-blue-10"} ${e.isDisabled?"":"hover:1ru-bg-laba-blue-01 1ru-cursor-pointer"} 1ru-outline-none`,children:e.children})},E3=({prevIcon:e,nextIcon:t,state:n,setActiveTypeCalendar:r,onChangeMonth:i,type:o,hiddenHeader:a})=>{const s=new Date().getFullYear(),l=n.focusedDate.calendar.getMonthsInYear(n.focusedDate),u=jr({month:"short",timeZone:n.timeZone}),c=(h,f)=>{const g=n.focusedDate.set({month:h});f?(r("date"),n.setFocusedDate(g)):!f&&typeof i=="function"&&i(g)},d=h=>{const f=n.focusedDate.set({year:h});n.setFocusedDate(f)};return E.jsxs("div",{className:`1ru-w-[296px] ${ge["container-calendar"]}`,children:[!a&&E.jsxs("div",{className:ge["header-calendar"],children:[E.jsx(bo,{isDisabled:n!=null&&n.minValue?n.focusedDate.year<=n.minValue.year:!1,onPress:()=>d(n.focusedDate.year-1),children:typeof e=="function"||w.isValidElement(e)?w.isValidElement(e)?e:e():E.jsx(jn,{className:"1ru-rotate-90"})}),E.jsx("div",{className:`${ge["header-button-calendar"]} ${o.includes("year")?"":ge.disabled}`,onClick:()=>{o.includes("year")&&r("year")},children:n.focusedDate.year}),E.jsx(bo,{isDisabled:n!=null&&n.maxValue?n.focusedDate.year>=n.maxValue.year:!1,onPress:()=>d(n.focusedDate.year+1),children:typeof t=="function"||w.isValidElement(t)?w.isValidElement(t)?t:t():E.jsx(jn,{className:"-1ru-rotate-90"})})]}),E.jsx("div",{className:ge["month-calendar"],children:[...Array(l).keys()].map(h=>{var x,C,D,I;const f=n.focusedDate.set({month:h+1}),g=u.format(f.toDate(n.timeZone)),m=((x=n.value)==null?void 0:x.year)||((D=(C=n.value)==null?void 0:C.start)==null?void 0:D.year)||s,b=n!=null&&n.minValue?f.month<((I=n==null?void 0:n.minValue)==null?void 0:I.month)&&f.year<=n.minValue.year:!1,y=n!=null&&n.maxValue?f.month>n.maxValue.month&&f.year>=n.maxValue.year:!1,v=b||y;return E.jsx("div",{onClick:()=>{v||c(f.month,o.includes("date"))},className:`${ge["cell-month"]} ${n.focusedDate.month===f.month&&!v&&f.year===m?ge.selected:""} ${n.focusedDate.month!==f.month&&!v?"hover:1ru-bg-laba-blue-01":""} ${v?"1ru-text-gray-400":"1ru-cursor-pointer"}`,children:g},h)})})]})},gP=e=>{const t=vy(e.state.visibleRange.start,e.locale),{gridProps:n,headerProps:r,weekDays:i}=n4({},e.state),{prevButtonProps:o,nextButtonProps:a,title:s}=t4(e,e.state),l=u=>{let c="";switch(u){case 0:c="Min";break;case 1:c="Sen";break;case 2:c="Sel";break;case 3:c="Rab";break;case 4:c="Kam";break;case 5:c="Jum";break;case 6:c="Sab";break}return c};return E.jsxs("div",{children:[!e.hiddenHeader&&E.jsxs("div",{className:ge["header-calendar"],children:[E.jsx(bo,{...o,children:typeof(e==null?void 0:e.prevIcon)=="function"||w.isValidElement(e==null?void 0:e.prevIcon)?w.isValidElement(e.prevIcon)?e.prevIcon:e.prevIcon():E.jsx(jn,{className:"1ru-rotate-90"})}),E.jsx("div",{className:ge["header-button-calendar"],onClick:()=>e.setActiveTypeCalendar("month"),children:s}),E.jsx(bo,{...a,children:typeof(e==null?void 0:e.nextIcon)=="function"||w.isValidElement(e==null?void 0:e.nextIcon)?w.isValidElement(e.nextIcon)?e.nextIcon:e.nextIcon():E.jsx(jn,{className:"-1ru-rotate-90"})})]}),E.jsxs("table",{...n,children:[E.jsx("thead",{...r,children:E.jsx("tr",{children:i.map((u,c)=>E.jsx("th",{className:ge["days-calendar"],children:l(c)},c))})}),E.jsx("tbody",{children:[...new Array(t).keys()].map(u=>E.jsx("tr",{children:e.state.getDatesInWeek(u).map((c,d)=>c?E.jsx(S3,{state:e.state,date:c},d):E.jsx("td",{},d))},u))})]})]})},mP=({minDate:e,maxDate:t,value:n,time:r,hiddenHeader:i,handlerChangeTime:o})=>{const a=e?new Date(e):null,s=t?new Date(t):null,l=a==null?void 0:a.getHours(),u=s==null?void 0:s.getHours(),c=a==null?void 0:a.getMinutes(),d=s==null?void 0:s.getMinutes(),[h,f]=w.useState(!0),g=(v,x,C)=>Array.from({length:(x-v)/C+1},(D,I)=>v+I*C),m=(v,x)=>{typeof o=="function"&&o({hour:v,minut:x,second:r==null?void 0:r.second})},b=()=>{const v=document.getElementById(`calendar-hour-${r==null?void 0:r.hour}`),x=document.getElementById(`calendar-minut-${r==null?void 0:r.minut}`),C=document.getElementById("wrapper-calendar-hour"),D=document.getElementById("wrapper-calendar-minut");v&&C&&C.scrollTo({behavior:"instant",top:v.offsetTop-75}),x&&D&&D.scrollTo({behavior:"instant",top:x.offsetTop-75})},y=(v,x)=>{let C=!0;if(a&&n){const D=n.year===a.getFullYear(),I=n.month===a.getMonth()+1;n.day===a.getDate()&&I&&D?(x==="hour"&&v<(l??0)||x==="minut"&&((r==null?void 0:r.hour)??0)<=a.getHours()&&v<(c??0))&&(C=!1):n.toDate(Di()).getTime()<a.getTime()&&(C=!1)}if(s&&n){const D=n.year===s.getFullYear(),I=n.month===s.getMonth()+1;n.day===s.getDate()&&I&&D?(x==="hour"&&v>(u??0)||x==="minut"&&((r==null?void 0:r.hour)??0)>=s.getHours()&&v>(d??0))&&(C=!1):n.toDate(Di()).getTime()>s.getTime()&&(C=!1)}return C};return w.useEffect(()=>{h&&b(),r&&f(!1)},[JSON.stringify(n)]),E.jsxs("div",{className:ge["custom-time-calendar"],children:[!i&&E.jsx("div",{className:ge["header-time"],children:"Atur Waktu"}),E.jsxs("div",{className:ge["type-time"],children:[E.jsx("div",{children:"Jam"}),E.jsx("div",{children:"Menit"})]}),E.jsxs("div",{className:"1ru-flex 1ru-justify-around",children:[E.jsx("div",{id:"wrapper-calendar-hour",className:ge["container-cell-time"],children:g(0,23,1).map(v=>E.jsx("div",{id:`calendar-hour-${v}`,className:`${ge["cell-time"]} ${(r==null?void 0:r.hour)===v?y(v,"hour")?ge.selected:ge.error:""} ${y(v,"hour")&&(r==null?void 0:r.hour)!=v?ge.valid:ge.invalid}`,onClick:()=>{y(v,"hour")&&m(v,r==null?void 0:r.minut)},children:v<10?`0${v}`:v},v))}),E.jsx("div",{id:"wrapper-calendar-minut",className:ge["container-cell-time"],children:g(0,59,1).map(v=>E.jsx("div",{id:`calendar-minut-${v}`,className:`${ge["cell-time"]} ${(r==null?void 0:r.minut)===v?y(v,"minut")?ge.selected:ge.error:""} ${y(v,"minut")&&(r==null?void 0:r.minut)!=v?ge.valid:ge.invalid}`,onClick:()=>{y(v,"minut")&&m(r==null?void 0:r.hour,v)},children:v<10?`0${v}`:v},v))})]})]})},ku=e=>{const t=L4({...e,locale:e.locale,createCalendar:os}),{title:n}=t4(e,t),[r,i]=w.useState((e==null?void 0:e.activeType)??"date"),o=a=>{t.setValue(a)};return Ci(()=>{e!=null&&e.activeType&&i(e.activeType)},[e==null?void 0:e.activeType]),E.jsxs("div",{className:"1ru-text-laba-base-sr",children:[r==="date"&&E.jsx(E.Fragment,{children:E.jsxs("div",{className:ge["container-calendar"],children:[E.jsxs("div",{className:"1ru-flex 1ru-gap-2",children:[E.jsx(gP,{state:t,setActiveTypeCalendar:i,...e}),(e==null?void 0:e.isCustomTime)&&E.jsx(mP,{minDate:e.minDate,maxDate:e.maxDate,time:e.time,value:e.value,hiddenHeader:e.hiddenHeader,handlerChangeTime:e.handlerChangeTime})]}),((e==null?void 0:e.withConfirm)??(e==null?void 0:e.isCustomTime))&&E.jsxs("div",{className:`${ge["footer-calendar"]}`,children:[typeof(e==null?void 0:e.buttonReset)=="function"?E.jsx("div",{onClick:()=>e.handlerReset(t),children:e.buttonReset()}):E.jsx(Dn,{variants:"nude-laba-blue-10",size:"small",onClick:()=>e.handlerReset(t),children:"Reset"}),typeof(e==null?void 0:e.buttonSubmit)=="function"?E.jsx("div",{onClick:e.handlerSubmit,children:e.buttonSubmit()}):E.jsx(Dn,{size:"small",onClick:e.handlerSubmit,children:"Terapkan"})]})]})}),r==="month"&&E.jsx(E3,{state:t,setActiveTypeCalendar:i,type:e.type,onChangeMonth:o,hiddenHeader:e.hiddenHeader}),r==="year"&&E.jsx(Ev,{state:t,type:e.type,setActiveTypeCalendar:i,title:n,onChangeYear:o,hiddenHeader:e.hiddenHeader})]})},pP=e=>{const t=w.useRef(null),{locale:n}=In(),r=aP({...e,locale:n,createCalendar:os}),i=m=>{let b="";switch(m){case 0:b="Min";break;case 1:b="Sen";break;case 2:b="Sel";break;case 3:b="Rab";break;case 4:b="Kam";break;case 5:b="Jum";break;case 6:b="Sab";break}return b},{calendarProps:o,prevButtonProps:a,nextButtonProps:s,title:l}=Z7(e,r,t),{gridProps:u,headerProps:c,weekDays:d}=n4({},r),h=vy(r.visibleRange.start,n),[f,g]=w.useState("date");return E.jsxs("div",{className:"1ru-text-laba-base-sr",children:[f==="date"&&E.jsx(E.Fragment,{children:E.jsx("div",{...o,ref:t,children:E.jsxs("div",{className:ge["container-calendar"],children:[E.jsxs("div",{className:ge["header-calendar"],children:[E.jsx(bo,{...a,children:typeof(e==null?void 0:e.prevIcon)=="function"||w.isValidElement(e==null?void 0:e.prevIcon)?w.isValidElement(e.prevIcon)?e.prevIcon:e.prevIcon():E.jsx(jn,{className:"1ru-rotate-90"})}),E.jsx("div",{className:ge["header-button-calendar"],onClick:()=>g("month"),children:l}),E.jsx(bo,{...s,children:typeof(e==null?void 0:e.nextIcon)=="function"||w.isValidElement(e==null?void 0:e.nextIcon)?w.isValidElement(e.nextIcon)?e.nextIcon:e.nextIcon():E.jsx(jn,{className:"-1ru-rotate-90"})})]}),E.jsxs("table",{...u,cellPadding:"0",className:"flex-1",children:[E.jsx("thead",{...c,className:"text-gray-600",children:E.jsx("tr",{children:d.map((m,b)=>E.jsx("th",{className:ge["days-calendar"],children:i(b)},b))})}),E.jsx("tbody",{children:[...new Array(h).keys()].map(m=>E.jsx("tr",{children:r.getDatesInWeek(m).map((b,y)=>b?E.jsx(S3,{state:r,date:b},y):E.jsx("td",{},y))},m))})]}),e.withConfirm&&E.jsxs("div",{className:ge["footer-calendar"],children:[typeof(e==null?void 0:e.buttonReset)=="function"?E.jsx("div",{onClick:()=>e.handlerReset(r),children:e.buttonReset()}):E.jsx(Dn,{variants:"nude-laba-blue-10",size:"small",onClick:()=>e.handlerReset(r),children:"Reset"}),typeof(e==null?void 0:e.buttonSubmit)=="function"?E.jsx("div",{onClick:e.handlerSubmit,children:e.buttonSubmit()}):E.jsx(Dn,{size:"small",onClick:e.handlerSubmit,children:"Terapkan"})]})]})})}),f==="month"&&E.jsx(E3,{state:r,setActiveTypeCalendar:g,type:["date","month","year"]}),f==="year"&&E.jsx(Ev,{state:r,setActiveTypeCalendar:g,title:l,type:["date","month","year"]})]})},I3=e=>{const t=hP(e),n=w.useRef(null),{calendarProps:r}=oP(e,t,n);return E.jsx("div",{ref:n,children:E.jsx(pP,{handlerReset:e.handlerReset,handlerSubmit:e.handlerSubmit,withConfirm:e.withConfirm,prevIcon:e.prevIcon,nextIcon:e.nextIcon,buttonReset:e.buttonReset,buttonSubmit:e.buttonSubmit,...r})})},ks=e=>{let t;const n=new Date(e??new Date);return e&&(t=Eh(new Date(n.setHours(n.getHours()+7)).toISOString().slice(0,10))),t},bP=e=>{const{minDate:t,maxDate:n,value:r,defaultValue:i,withConfirm:o=!1,isCustomTime:a=!1,className:s,classNameButton:l,buttonClick:u,buttonReset:c,buttonSubmit:d,prevIcon:h,nextIcon:f,onChange:g,id:m="date-picker",idPopover:b="date-picker-popover",floatingOptions:y={},offsetPopover:v=5,zIndexPopper:x=1,hiddenHeader:C}=e,D=jr(),{locale:I}=In(),T=ks(t),p=ks(n),S=w.useRef(null),[$,_]=w.useState(),[A,k]=w.useState(),R=N=>{var H;const O=new Date;let L=N.toDate(Di());L.setHours(O.getHours(),O.getMinutes(),O.getSeconds());const W=t?new Date(t):null,Z=n?new Date(n):null;if(a){if(L=new Date(new Date(L).setHours((A==null?void 0:A.hour)??0,A==null?void 0:A.minut,A==null?void 0:A.second)),W&&(W==null?void 0:W.toDateString())===new Date(L).toDateString()&&(W==null?void 0:W.toTimeString())>=(L==null?void 0:L.toTimeString())){if(W&&(W.getHours()>L.getHours()||W.getHours()===L.getHours()&&W.getMinutes()>L.getMinutes()))return;L=new Date(W.setSeconds(W.getSeconds()+1))}if(Z&&(Z==null?void 0:Z.toDateString())===new Date(L).toDateString()&&(Z==null?void 0:Z.toTimeString())<(L==null?void 0:L.toTimeString())){if(Z&&(Z.getHours()<L.getHours()||Z.getHours()===L.getHours()&&Z.getMinutes()<L.getMinutes()))return;L=new Date(Z.setSeconds(Z.getSeconds()-1))}}else W&&D.format(L)===D.format(W)&&W.getTime()>=L.getTime()?L=new Date(W.setSeconds(W.getSeconds()+1)):Z&&D.format(L)===D.format(Z)&&Z.getTime()<=L.getTime()&&(L=new Date(Z.setSeconds(Z.getSeconds()-1)));typeof g=="function"&&(g(L),(H=S.current)==null||H.setShow(!1))},M=(N,O)=>{_(N),(O??(!o&&!a))&&R(N)},P=N=>{k(N)},F=N=>{const O=new Date(r??new Date);k({hour:O.getHours(),minut:O.getMinutes(),second:O.getSeconds()}),_(ks(r))},B=()=>{$&&M($,!0)};return E.jsxs(E.Fragment,{children:[E.jsx("div",{id:m,onClick:N=>{var O;(O=S.current)==null||O.handlerShow(N),F()},className:l,children:typeof u=="function"?u(r):r?new Date(r).toDateString():"Pilih Tanggal"}),E.jsx(br,{zIndex:x,ref:S,offset:v,id:b,floatingOptions:{placement:"bottom-end",...y},children:E.jsx("div",{className:s??"",children:E.jsx(Vh,{locale:"id-ID",children:E.jsx(ku,{minValue:T,maxValue:p,minDate:t,maxDate:n,time:A,locale:I,value:$,buttonReset:c,buttonSubmit:d,prevIcon:h,nextIcon:f,createCalendar:os,defaultValue:ks(r),onChange:M,handlerReset:()=>{var N;typeof g=="function"&&(g(i),(N=S.current)==null||N.setShow(!1))},handlerSubmit:B,handlerChangeTime:P,withConfirm:o,isCustomTime:a,type:["date","month","year"],hiddenHeader:C})})})})]})},kc=e=>{let t;const n=new Date(e??new Date);return e&&(t=Eh(new Date(n.setHours(n.getHours()+7)).toISOString().slice(0,10))),t},Pp=e=>{const t=new Date((e==null?void 0:e.startDate)??new Date),n=new Date((e==null?void 0:e.endDate)??new Date),r=new tt(t.getFullYear(),t.getMonth()+1,t.getDate()),i=new tt(n.getFullYear(),n.getMonth()+1,n.getDate());return e?{start:r,end:i}:void 0},_3=e=>{const{minDate:t,maxDate:n,defaultValue:r,withConfirm:i,prevIcon:o,nextIcon:a,buttonReset:s,buttonSubmit:l,typePicker:u="RANGE",onChange:c,onReset:d}=e,{locale:h}=In(),f=kc(t),g=kc(n),[m,b]=w.useState(),y=D=>{typeof c=="function"&&c(D)},v=(D,I)=>{const T=D.start.toDate(Di()),p=D.end.toDate(Di());b(D),(I??!i)&&y({startDate:T,endDate:new Date(p.setHours(23,59,59))})},x=D=>{if(typeof d=="function")d();else if(r&&D){const I=new Date(r.endDate??new Date),T=D.focusedDate.set({month:I.getMonth()+1,year:I.getFullYear()});D.setFocusedDate(T)}b(Pp(r))},C=()=>{m&&v(m,!0)};return E.jsx("div",{className:"1ru-flex 1ru-flex-col",children:E.jsxs(Vh,{locale:"id-ID",children:[u==="RANGE"&&E.jsx(I3,{defaultValue:Pp(r),value:m,minValue:f,maxValue:g,withConfirm:i,prevIcon:o,nextIcon:a,buttonReset:s,buttonSubmit:l,onChange:v,handlerReset:x,handlerSubmit:C}),u==="SINGLE"&&E.jsx(ku,{defaultValue:kc(r==null?void 0:r.endDate),value:m==null?void 0:m.end,minValue:f,maxValue:g,minDate:t,maxDate:n,withConfirm:i,prevIcon:o,nextIcon:a,buttonReset:s,buttonSubmit:l,locale:h,createCalendar:os,onChange:D=>v({start:D,end:D}),handlerReset:x,handlerSubmit:C,type:["date","month","year"]})]})})},vP=({value:e,prevIcon:t,nextIcon:n,buttonReset:r,buttonSubmit:i,className:o,classNameButton:a,buttonClick:s,buttonList:l,typePicker:u="RANGE",onChange:c,idPopover:d="filter-date-popover",id:h="filter-date",floatingOptions:f={},offsetPopover:g=5,zIndexPopper:m=0,defaultValueLabel:b,mountedExecuteChange:y=!0,formatingDate:v})=>{const x=[{key:"thisDay",value:"Hari ini"},{key:"thisWeek",value:"Minggu ini"},{key:"thisMonth",value:"Bulan ini"},{key:"thisYear",value:"Tahun ini"},{key:"yesterday",value:"Kemarin"},{key:"lastWeek",value:"Minggu lalu"},{key:"lastMonth",value:"Bulan lalu"},{key:"lastYear",value:"Tahun lalu"},{key:"custom",value:"Kustom"}],C=w.useRef(null),[D,I]=w.useState(),[T,p]=w.useState(),[S,$]=w.useState(),_=(H,j)=>{const V=new Date(H??new Date);return j==="start"?new Date(V.setHours(0,0,0)):new Date(V.setHours(23,59,59))},A=()=>{const H=new Date;return{startDate:H,endDate:H}},k=()=>{const H=new Date;H.setDate(H.getDate()-H.getDay());const j=new Date;return j.setDate(j.getDate()+(6-j.getDay())),{startDate:H,endDate:j}},R=()=>{const H=new Date,j=new Date(H.getFullYear(),H.getMonth(),1),V=new Date(H.getFullYear(),H.getMonth()+1,0);return{startDate:j,endDate:V}},M=()=>{const H=new Date(new Date().getFullYear(),0,1),j=new Date(new Date().getFullYear(),11,31);return{startDate:H,endDate:j}},P=()=>{const H=new Date(new Date().setDate(new Date().getDate()-1));return{startDate:H,endDate:H}},F=()=>{const H=new Date;H.setDate(H.getDate()-(7+H.getDay()));const j=new Date;return j.setDate(j.getDate()-(j.getDay()+1)),{startDate:H,endDate:j}},B=()=>{const H=new Date,j=new Date(H.getFullYear(),H.getMonth()-1,1),V=new Date(H.getFullYear(),H.getMonth(),0);return{startDate:j,endDate:V}},N=()=>{const H=new Date(new Date().getFullYear()-1,0,1),j=new Date(new Date().getFullYear()-1,11,31);return{startDate:H,endDate:j}},O=(H,j,V)=>{var z;if($(H),typeof c=="function"){let Y=H;v==="string"&&H?Y={startDate:Ji(H.startDate,v),endDate:Ji(H.endDate,v)}:typeof v=="boolean"&&H&&(Y={startDate:Ji(H.startDate,"yyyy-MM-dd'T'HH:mm:ss.SSSxxx"),endDate:Ji(H.endDate,"yyyy-MM-dd'T'HH:mm:ss.SSSxxx")}),(z=C.current)==null||z.setShow(!1),c(Y,j??"",V)}},L=(H,j)=>{I(H);let V;if((H==null?void 0:H.key)!=="custom"){switch(p(H),H==null?void 0:H.key){case"thisDay":V=A();break;case"thisWeek":V=k();break;case"thisMonth":V=R();break;case"thisYear":V=M();break;case"yesterday":V=P();break;case"lastWeek":V=F();break;case"lastMonth":V=B();break;case"lastYear":V=N();break}V&&j&&O({startDate:_(V.startDate,"start"),endDate:_(V.endDate,"end")},H==null?void 0:H.value,H)}},W=(H,j)=>{const V=(l??x).find(z=>z.key===H);!H&&!V?(j&&O(),L(void 0,j),p(void 0)):typeof H=="object"?(j&&O({startDate:_(H.startDate,"start"),endDate:_(H.endDate,"end")},"Kustom",{key:"custom",value:"Kustom"}),L({key:"custom",value:"Kustom"},j),p({key:"custom",value:"Kustom"})):(L(V,j),p(V))},Z=()=>{var H;if(e){$(e);const j=(H=l??x)==null?void 0:H.find(V=>V.key===e.label||V.value===e.label);Object.keys(j||{}).length>0&&I(j)}else I(void 0),p(void 0)};return w.useEffect(()=>{Z()},[JSON.stringify(e)]),w.useEffect(()=>{W(b??e,y)},[]),E.jsxs(E.Fragment,{children:[E.jsxs("div",{onClick:H=>{var j;(j=C.current)==null||j.handlerShow(H),Z()},className:a,id:h,children:[w.isValidElement(s)&&s,typeof s=="function"?s(S,T):"Pilih Filter"]}),E.jsx(br,{zIndex:m,ref:C,offset:g,id:d,floatingOptions:{placement:"bottom-end",...f},children:E.jsxs("div",{className:`${ge["container-filter-date"]} ${o}`,children:[E.jsx("div",{children:(l??x).map((H,j)=>E.jsx("div",{className:`${ge["button-filter-date"]} hover:1ru-bg-laba-blue-01 ${(D==null?void 0:D.key)===H.key?"1ru-text-laba-blue-10":""}`,onClick:()=>L(H,!0),children:H.value},j))}),(D==null?void 0:D.key)==="custom"&&E.jsx("div",{children:E.jsx(_3,{defaultValue:S,prevIcon:t,nextIcon:n,buttonReset:r,buttonSubmit:i,onChange:H=>{O(H,"Kustom",{key:"custom",value:"Kustom"}),p({key:"custom",value:"Kustom"})},onReset:()=>{W(b,!0)},typePicker:u,withConfirm:!0})})]})})]})},yP="_active_z4wg4_31",xP="_disabled_z4wg4_34",bt={"title-switch-laba":"_title-switch-laba_z4wg4_1","title-switch-payhere":"_title-switch-payhere_z4wg4_6","description-switch-laba":"_description-switch-laba_z4wg4_11","description-switch-payhere":"_description-switch-payhere_z4wg4_16","switch-l":"_switch-l_z4wg4_21","switch-payhere":"_switch-payhere_z4wg4_21",active:yP,disabled:xP,"disabled-nonactive":"_disabled-nonactive_z4wg4_37","thumb-switch":"_thumb-switch_z4wg4_40","switch-laba":"_switch-laba_z4wg4_57","switch-r":"_switch-r_z4wg4_94","switch-s":"_switch-s_z4wg4_167"},CP=({value:e,disabled:t,title:n="",description:r="",size:i="regular",kind:o="payhere",id:a,className:s,classNameTitle:l,classNameDesc:u,onChange:c})=>{const d={size:{large:bt["switch-l"],regular:bt["switch-r"],small:bt["switch-s"]},kind:{laba:bt["switch-laba"],payhere:bt["switch-payhere"]},text:{title:{laba:bt["title-switch-laba"],payhere:bt["title-switch-payhere"]},desc:{laba:bt["description-switch-laba"],payhere:bt["description-switch-payhere"]}}},h=()=>{!t&&typeof c=="function"&&c(!e)};return E.jsxs("div",{id:a??"1ru-switch",className:`1ru-flex 1ru-gap-2 ${s??""}`,onClick:f=>f.stopPropagation(),children:[E.jsxs("label",{children:[E.jsx("input",{type:"checkbox",checked:e,onChange:h,className:"1ru-hidden"}),E.jsx("span",{className:`${d.size[i]} ${d.kind[o]} ${e?bt.active:""} ${t?bt.disabled:""} ${!e&&t?bt["disabled-nonactive"]:""}`,children:E.jsx("span",{className:`${bt["thumb-switch"]} ${e?bt.active:""} ${t?bt.disabled:""} ${!e&&t?bt["disabled-nonactive"]:""}`})})]}),(n||r)&&E.jsxs("div",{children:[n&&E.jsx("div",{className:`${d.text.title[o]} ${l}`,children:n}),r&&E.jsx("div",{className:`${d.text.desc[o]} ${u}`,children:r})]})]})},wP="_loading_11t4k_10",De={"button-xs":"_button-xs_11t4k_6","button-s":"_button-s_11t4k_6","button-m":"_button-m_11t4k_6","button-l":"_button-l_11t4k_6","button-extra-small":"_button-extra-small_11t4k_6","button-small":"_button-small_11t4k_6","button-reguler":"_button-reguler_11t4k_6","button-large":"_button-large_11t4k_6",loading:wP,"nude-laba-red-05":"_nude-laba-red-05_11t4k_18","nude-laba-red-10":"_nude-laba-red-10_11t4k_18","nude-gray-500":"_nude-gray-500_11t4k_18","nude-green-700":"_nude-green-700_11t4k_18","nude-red-700":"_nude-red-700_11t4k_18","nude-laba-blue-10":"_nude-laba-blue-10_11t4k_18","ghost-laba-green-10":"_ghost-laba-green-10_11t4k_18","ghost-blue-gray-100-bg_white":"_ghost-blue-gray-100-bg_white_11t4k_18","ghost-green-700":"_ghost-green-700_11t4k_18","ghost-red-700":"_ghost-red-700_11t4k_18","ghost-laba-blue-10":"_ghost-laba-blue-10_11t4k_18","filled-laba-white_laba-red-05":"_filled-laba-white_laba-red-05_11t4k_18","filled-laba-white_laba-blue-10":"_filled-laba-white_laba-blue-10_11t4k_18","primary-green-700":"_primary-green-700_11t4k_18","primary-red-700-dsb_laba-grey-06":"_primary-red-700-dsb_laba-grey-06_11t4k_18","primary-laba-blue-10":"_primary-laba-blue-10_11t4k_18","tertiary-gray-500":"_tertiary-gray-500_11t4k_18","tertiary-red-600":"_tertiary-red-600_11t4k_18","tertiary-red-300":"_tertiary-red-300_11t4k_18","tertiary-blue-700":"_tertiary-blue-700_11t4k_18","secondary-green-600":"_secondary-green-600_11t4k_18","secondary-red-700":"_secondary-red-700_11t4k_18","secondary-red-600":"_secondary-red-600_11t4k_18","secondary-blue-700":"_secondary-blue-700_11t4k_18","primary-red-700":"_primary-red-700_11t4k_18","primary-blue-700":"_primary-blue-700_11t4k_18","icon-loading":"_icon-loading_11t4k_80"},DP=({className:e=""})=>E.jsx("svg",{className:`${De["icon-loading"]} ${e??""}`,xmlns:"http://www.w3.org/2000/svg",width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",children:E.jsx("path",{d:`M21.6311 6.63315C22.3017 6.23898 22.5321 5.36957 22.0621 4.7497C20.7187 2.9779 18.9029 1.6063 \r
84
+ `]))),aR=function(t,n){var r=t.isFocused,i=t.size,o=t.theme,a=o.colors,s=o.spacing.baseUnit;return ce({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?a.neutral60:a.neutral20,padding:s*2})},cc=function(t){var n=t.delay,r=t.offset;return le("span",{css:mh({animation:"".concat(oR," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1oaWRkZW49XCJ0cnVlXCJcbiAgICBmb2N1c2FibGU9XCJmYWxzZVwiXG4gICAgY3NzPXt7XG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIGZpbGw6ICdjdXJyZW50Q29sb3InLFxuICAgICAgbGluZUhlaWdodDogMSxcbiAgICAgIHN0cm9rZTogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBzdHJva2VXaWR0aDogMCxcbiAgICB9fVxuICAgIHsuLi5wcm9wc31cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIENyb3NzSWNvblByb3BzID0gSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZT86IG51bWJlciB9O1xuZXhwb3J0IGNvbnN0IENyb3NzSWNvbiA9IChwcm9wczogQ3Jvc3NJY29uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCB0eXBlIERvd25DaGV2cm9uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgRG93bkNoZXZyb24gPSAocHJvcHM6IERvd25DaGV2cm9uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTQuNTE2IDcuNTQ4YzAuNDM2LTAuNDQ2IDEuMDQzLTAuNDgxIDEuNTc2IDBsMy45MDggMy43NDcgMy45MDgtMy43NDdjMC41MzMtMC40ODEgMS4xNDEtMC40NDYgMS41NzQgMCAwLjQzNiAwLjQ0NSAwLjQwOCAxLjE5NyAwIDEuNjE1LTAuNDA2IDAuNDE4LTQuNjk1IDQuNTAyLTQuNjk1IDQuNTAyLTAuMjE3IDAuMjIzLTAuNTAyIDAuMzM1LTAuNzg3IDAuMzM1cy0wLjU3LTAuMTEyLTAuNzg5LTAuMzM1YzAgMC00LjI4Ny00LjA4NC00LjY5NS00LjUwMnMtMC40MzYtMS4xNyAwLTEuNjE1elwiIC8+XG4gIDwvU3ZnPlxuKTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEJ1dHRvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xufVxuXG5jb25zdCBiYXNlQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTpcbiAgICB8IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbiAgICB8IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JDb250YWluZXInLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICAgICc6aG92ZXInOiB7XG4gICAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsODAgOiBjb2xvcnMubmV1dHJhbDQwLFxuICAgICAgICB9LFxuICAgICAgfSksXG59KTtcblxuZXhwb3J0IGNvbnN0IGRyb3Bkb3duSW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBEcm9wZG93bkluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2Ryb3Bkb3duSW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdkcm9wZG93bi1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPERvd25DaGV2cm9uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuZXhwb3J0IGludGVyZmFjZSBDbGVhckluZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW4/OiBSZWFjdE5vZGU7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGNvbnN0IGNsZWFySW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBDbGVhckluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2NsZWFySW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdjbGVhci1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPENyb3NzSWNvbiAvPn1cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gU2VwYXJhdG9yXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IGludGVyZmFjZSBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaW5uZXJQcm9wcz86IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3BhbiddO1xufVxuXG5leHBvcnQgY29uc3QgaW5kaWNhdG9yU2VwYXJhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNEaXNhYmxlZCxcbiAgICB0aGVtZToge1xuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgICAgY29sb3JzLFxuICAgIH0sXG4gIH06IEluZGljYXRvclNlcGFyYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+LFxuICB1bnN0eWxlZDogYm9vbGVhblxuKTogQ1NTT2JqZWN0V2l0aExhYmVsID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yU2VwYXJhdG9yJyxcbiAgYWxpZ25TZWxmOiAnc3RyZXRjaCcsXG4gIHdpZHRoOiAxLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGJhY2tncm91bmRDb2xvcjogaXNEaXNhYmxlZCA/IGNvbG9ycy5uZXV0cmFsMTAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBtYXJnaW5Cb3R0b206IGJhc2VVbml0ICogMixcbiAgICAgICAgbWFyZ2luVG9wOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxzcGFuXG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnaW5kaWNhdG9yU2VwYXJhdG9yJywge1xuICAgICAgICAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHNpemUsXG4gICAgdGhlbWU6IHtcbiAgICAgIGNvbG9ycyxcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICB9LFxuICB9OiBMb2FkaW5nSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdsb2FkaW5nSW5kaWNhdG9yJyxcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDYwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgICAgICAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICAgICAgfSksXG59KTtcblxuaW50ZXJmYWNlIExvYWRpbmdEb3RQcm9wcyB7XG4gIGRlbGF5OiBudW1iZXI7XG4gIG9mZnNldDogYm9vbGVhbjtcbn1cbmNvbnN0IExvYWRpbmdEb3QgPSAoeyBkZWxheSwgb2Zmc2V0IH06IExvYWRpbmdEb3RQcm9wcykgPT4gKFxuICA8c3BhblxuICAgIGNzcz17e1xuICAgICAgYW5pbWF0aW9uOiBgJHtsb2FkaW5nRG90QW5pbWF0aW9uc30gMXMgZWFzZS1pbi1vdXQgJHtkZWxheX1tcyBpbmZpbml0ZTtgLFxuICAgICAgYmFja2dyb3VuZENvbG9yOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGJvcmRlclJhZGl1czogJzFlbScsXG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIG1hcmdpbkxlZnQ6IG9mZnNldCA/ICcxZW0nIDogdW5kZWZpbmVkLFxuICAgICAgaGVpZ2h0OiAnMWVtJyxcbiAgICAgIHZlcnRpY2FsQWxpZ246ICd0b3AnLFxuICAgICAgd2lkdGg6ICcxZW0nLFxuICAgIH19XG4gIC8+XG4pO1xuXG5leHBvcnQgaW50ZXJmYWNlIExvYWRpbmdJbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgLyoqIFNldCBzaXplIG9mIHRoZSBjb250YWluZXIuICovXG4gIHNpemU6IG51bWJlcjtcbn1cbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KHtcbiAgaW5uZXJQcm9wcyxcbiAgaXNSdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */")})},sR=function(t){var n=t.innerProps,r=t.isRtl,i=t.size,o=i===void 0?4:i,a=vr(t,J9);return le("div",de({},Qe(ce(ce({},a),{},{innerProps:n,isRtl:r,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),le(cc,{delay:0,offset:r}),le(cc,{delay:160,offset:!0}),le(cc,{delay:320,offset:!r}))},lR=function(t,n){var r=t.isDisabled,i=t.isFocused,o=t.theme,a=o.colors,s=o.borderRadius,l=o.spacing;return ce({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?a.neutral5:a.neutral0,borderColor:r?a.neutral10:i?a.primary:a.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:i?a.primary:a.neutral30}})},uR=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,o=t.innerRef,a=t.innerProps,s=t.menuIsOpen;return le("div",de({ref:o},Qe(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":i,"control--menu-is-open":s}),a,{"aria-disabled":r||void 0}),n)},cR=uR,dR=["data"],fR=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},hR=function(t){var n=t.children,r=t.cx,i=t.getStyles,o=t.getClassNames,a=t.Heading,s=t.headingProps,l=t.innerProps,u=t.label,c=t.theme,d=t.selectProps;return le("div",de({},Qe(t,"group",{group:!0}),l),le(a,de({},s,{selectProps:d,theme:c,getStyles:i,getClassNames:o,cx:r}),u),le("div",null,n))},gR=function(t,n){var r=t.theme,i=r.colors,o=r.spacing;return ce({label:"group",cursor:"default",display:"block"},n?{}:{color:i.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:o.baseUnit*3,paddingRight:o.baseUnit*3,textTransform:"uppercase"})},mR=function(t){var n=Gv(t);n.data;var r=vr(n,dR);return le("div",de({},Qe(t,"groupHeading",{"group-heading":!0}),r))},pR=hR,bR=["innerRef","isDisabled","isHidden","inputClassName"],vR=function(t,n){var r=t.isDisabled,i=t.value,o=t.theme,a=o.spacing,s=o.colors;return ce(ce({visibility:r?"hidden":"visible",transform:i?"translateZ(0)":""},yR),n?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:s.neutral80})},ey={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},yR={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":ce({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},ey)},xR=function(t){return ce({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},ey)},CR=function(t){var n=t.cx,r=t.value,i=Gv(t),o=i.innerRef,a=i.isDisabled,s=i.isHidden,l=i.inputClassName,u=vr(i,bR);return le("div",de({},Qe(t,"input",{"input-container":!0}),{"data-value":r||""}),le("input",de({className:n({input:!0},l),ref:o,style:xR(s),disabled:a},u)))},wR=CR,DR=function(t,n){var r=t.theme,i=r.spacing,o=r.borderRadius,a=r.colors;return ce({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:a.neutral10,borderRadius:o/2,margin:i.baseUnit/2})},SR=function(t,n){var r=t.theme,i=r.borderRadius,o=r.colors,a=t.cropWithEllipsis;return ce({overflow:"hidden",textOverflow:a||a===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:i/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},ER=function(t,n){var r=t.theme,i=r.spacing,o=r.borderRadius,a=r.colors,s=t.isFocused;return ce({alignItems:"center",display:"flex"},n?{}:{borderRadius:o/2,backgroundColor:s?a.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},ty=function(t){var n=t.children,r=t.innerProps;return le("div",r,n)},IR=ty,_R=ty;function $R(e){var t=e.children,n=e.innerProps;return le("div",de({role:"button"},n),t||le(ph,{size:14}))}var RR=function(t){var n=t.children,r=t.components,i=t.data,o=t.innerProps,a=t.isDisabled,s=t.removeProps,l=t.selectProps,u=r.Container,c=r.Label,d=r.Remove;return le(u,{data:i,innerProps:ce(ce({},Qe(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),o),selectProps:l},le(c,{data:i,innerProps:ce({},Qe(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},n),le(d,{data:i,innerProps:ce(ce({},Qe(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},s),selectProps:l}))},AR=RR,FR=function(t,n){var r=t.isDisabled,i=t.isFocused,o=t.isSelected,a=t.theme,s=a.spacing,l=a.colors;return ce({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:o?l.primary:i?l.primary25:"transparent",color:r?l.neutral20:o?l.neutral0:"inherit",padding:"".concat(s.baseUnit*2,"px ").concat(s.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:o?l.primary:l.primary50}})},PR=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,o=t.isSelected,a=t.innerRef,s=t.innerProps;return le("div",de({},Qe(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":i,"option--is-selected":o}),{ref:a,"aria-disabled":r},s),n)},TR=PR,kR=function(t,n){var r=t.theme,i=r.spacing,o=r.colors;return ce({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:o.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},MR=function(t){var n=t.children,r=t.innerProps;return le("div",de({},Qe(t,"placeholder",{placeholder:!0}),r),n)},BR=MR,OR=function(t,n){var r=t.isDisabled,i=t.theme,o=i.spacing,a=i.colors;return ce({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?a.neutral40:a.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},NR=function(t){var n=t.children,r=t.isDisabled,i=t.innerProps;return le("div",de({},Qe(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),i),n)},VR=NR,ny={ClearIndicator:nR,Control:cR,DropdownIndicator:eR,DownChevron:qv,CrossIcon:ph,Group:pR,GroupHeading:mR,IndicatorsContainer:Y9,IndicatorSeparator:iR,Input:wR,LoadingIndicator:sR,Menu:k9,MenuList:B9,MenuPortal:j9,LoadingMessage:L9,NoOptionsMessage:V9,MultiValue:AR,MultiValueContainer:IR,MultiValueLabel:_R,MultiValueRemove:$R,Option:TR,Placeholder:BR,SelectContainer:z9,SingleValue:VR,ValueContainer:Z9},LR=function(t){return ce(ce({},ny),t.components)},Bm=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function HR(e,t){return!!(e===t||Bm(e)&&Bm(t))}function jR(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!HR(e[n],t[n]))return!1;return!0}function WR(e,t){t===void 0&&(t=jR);var n=null;function r(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(n&&n.lastThis===this&&t(i,n.lastArgs))return n.lastResult;var a=e.apply(this,i);return n={lastResult:a,lastArgs:i,lastThis:this},a}return r.clear=function(){n=null},r}function zR(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var GR=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:zR},ZR=function(t){return le("span",de({css:GR},t))},Om=ZR,XR={guidance:function(t){var n=t.isSearchable,r=t.isMulti,i=t.tabSelectsValue,o=t.context,a=t.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(i?", press Tab to select the option and exit the menu":"",".");case"input":return a?"".concat(t["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var n=t.action,r=t.label,i=r===void 0?"":r,o=t.labels,a=t.isDisabled;switch(n){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(i,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return a?"option ".concat(i," is disabled. Select another option."):"option ".concat(i,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,i=t.options,o=t.label,a=o===void 0?"":o,s=t.selectValue,l=t.isDisabled,u=t.isSelected,c=t.isAppleDevice,d=function(m,b){return m&&m.length?"".concat(m.indexOf(b)+1," of ").concat(m.length):""};if(n==="value"&&s)return"value ".concat(a," focused, ").concat(d(s,r),".");if(n==="menu"&&c){var h=l?" disabled":"",f="".concat(u?" selected":"").concat(h);return"".concat(a).concat(f,", ").concat(d(i,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},YR=function(t){var n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,o=t.focusableOptions,a=t.isFocused,s=t.selectValue,l=t.selectProps,u=t.id,c=t.isAppleDevice,d=l.ariaLiveMessages,h=l.getOptionLabel,f=l.inputValue,g=l.isMulti,m=l.isOptionDisabled,b=l.isSearchable,y=l.menuIsOpen,v=l.options,x=l.screenReaderStatus,C=l.tabSelectsValue,D=l.isLoading,I=l["aria-label"],T=l["aria-live"],p=w.useMemo(function(){return ce(ce({},XR),d||{})},[d]),S=w.useMemo(function(){var M="";if(n&&p.onChange){var P=n.option,F=n.options,B=n.removedValue,N=n.removedValues,O=n.value,L=function(Y){return Array.isArray(Y)?null:Y},W=B||P||L(O),Z=W?h(W):"",j=F||N||void 0,H=j?j.map(h):[],V=ce({isDisabled:W&&m(W,s),label:Z,labels:H},n);M=p.onChange(V)}return M},[n,p,m,s,h]),$=w.useMemo(function(){var M="",P=r||i,F=!!(r&&s&&s.includes(r));if(P&&p.onFocus){var B={focused:P,label:h(P),isDisabled:m(P,s),isSelected:F,options:o,context:P===r?"menu":"value",selectValue:s,isAppleDevice:c};M=p.onFocus(B)}return M},[r,i,h,m,p,o,s,c]),_=w.useMemo(function(){var M="";if(y&&v.length&&!D&&p.onFilter){var P=x({count:o.length});M=p.onFilter({inputValue:f,resultsMessage:P})}return M},[o,f,y,p,v,x,D]),A=(n==null?void 0:n.action)==="initial-input-focus",k=w.useMemo(function(){var M="";if(p.guidance){var P=i?"value":y?"menu":"input";M=p.guidance({"aria-label":I,context:P,isDisabled:r&&m(r,s),isMulti:g,isSearchable:b,tabSelectsValue:C,isInitialFocus:A})}return M},[I,r,i,g,m,b,y,p,s,C,A]),R=le(w.Fragment,null,le("span",{id:"aria-selection"},S),le("span",{id:"aria-focused"},$),le("span",{id:"aria-results"},_),le("span",{id:"aria-guidance"},k));return le(w.Fragment,null,le(Om,{id:u},A&&R),le(Om,{"aria-live":T,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!A&&R))},UR=YR,Td=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],JR=new RegExp("["+Td.map(function(e){return e.letters}).join("")+"]","g"),ry={};for(var dc=0;dc<Td.length;dc++)for(var fc=Td[dc],hc=0;hc<fc.letters.length;hc++)ry[fc.letters[hc]]=fc.base;var iy=function(t){return t.replace(JR,function(n){return ry[n]})},KR=WR(iy),Nm=function(t){return t.replace(/^\s+|\s+$/g,"")},qR=function(t){return"".concat(t.label," ").concat(t.value)},QR=function(t){return function(n,r){if(n.data.__isNew__)return!0;var i=ce({ignoreCase:!0,ignoreAccents:!0,stringify:qR,trim:!0,matchFrom:"any"},t),o=i.ignoreCase,a=i.ignoreAccents,s=i.stringify,l=i.trim,u=i.matchFrom,c=l?Nm(r):r,d=l?Nm(s(n)):s(n);return o&&(c=c.toLowerCase(),d=d.toLowerCase()),a&&(c=KR(c),d=iy(d)),u==="start"?d.substr(0,c.length)===c:d.indexOf(c)>-1}},eA=["innerRef"];function tA(e){var t=e.innerRef,n=vr(e,eA),r=I9(n,"onExited","in","enter","exit","appear");return le("input",de({ref:t},r,{css:mh({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVmIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgcmVtb3ZlUHJvcHMgfSBmcm9tICcuLi91dGlscyc7XG5cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIER1bW15SW5wdXQoe1xuICBpbm5lclJlZixcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snaW5wdXQnXSAmIHtcbiAgcmVhZG9ubHkgaW5uZXJSZWY6IFJlZjxIVE1MSW5wdXRFbGVtZW50Pjtcbn0pIHtcbiAgLy8gUmVtb3ZlIGFuaW1hdGlvbiBwcm9wcyBub3QgbWVhbnQgZm9yIEhUTUwgZWxlbWVudHNcbiAgY29uc3QgZmlsdGVyZWRQcm9wcyA9IHJlbW92ZVByb3BzKFxuICAgIHByb3BzLFxuICAgICdvbkV4aXRlZCcsXG4gICAgJ2luJyxcbiAgICAnZW50ZXInLFxuICAgICdleGl0JyxcbiAgICAnYXBwZWFyJ1xuICApO1xuXG4gIHJldHVybiAoXG4gICAgPGlucHV0XG4gICAgICByZWY9e2lubmVyUmVmfVxuICAgICAgey4uLmZpbHRlcmVkUHJvcHN9XG4gICAgICBjc3M9e3tcbiAgICAgICAgbGFiZWw6ICdkdW1teUlucHV0JyxcbiAgICAgICAgLy8gZ2V0IHJpZCBvZiBhbnkgZGVmYXVsdCBzdHlsZXNcbiAgICAgICAgYmFja2dyb3VuZDogMCxcbiAgICAgICAgYm9yZGVyOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHRoaXMgaGlkZXMgdGhlIGZsYXNoaW5nIGN1cnNvclxuICAgICAgICBjYXJldENvbG9yOiAndHJhbnNwYXJlbnQnLFxuICAgICAgICBmb250U2l6ZTogJ2luaGVyaXQnLFxuICAgICAgICBncmlkQXJlYTogJzEgLyAxIC8gMiAvIDMnLFxuICAgICAgICBvdXRsaW5lOiAwLFxuICAgICAgICBwYWRkaW5nOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHdpdGhvdXQgYHdpZHRoYCBicm93c2VycyB3b24ndCBhbGxvdyBmb2N1c1xuICAgICAgICB3aWR0aDogMSxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIGRlc2t0b3BcbiAgICAgICAgY29sb3I6ICd0cmFuc3BhcmVudCcsXG5cbiAgICAgICAgLy8gcmVtb3ZlIGN1cnNvciBvbiBtb2JpbGUgd2hpbHN0IG1haW50YWluaW5nIFwic2Nyb2xsIGludG8gdmlld1wiIGJlaGF2aW91clxuICAgICAgICBsZWZ0OiAtMTAwLFxuICAgICAgICBvcGFjaXR5OiAwLFxuICAgICAgICBwb3NpdGlvbjogJ3JlbGF0aXZlJyxcbiAgICAgICAgdHJhbnNmb3JtOiAnc2NhbGUoLjAxKScsXG4gICAgICB9fVxuICAgIC8+XG4gICk7XG59XG4iXX0= */")}))}var nA=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function rA(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,o=e.onTopLeave,a=w.useRef(!1),s=w.useRef(!1),l=w.useRef(0),u=w.useRef(null),c=w.useCallback(function(b,y){if(u.current!==null){var v=u.current,x=v.scrollTop,C=v.scrollHeight,D=v.clientHeight,I=u.current,T=y>0,p=C-D-x,S=!1;p>y&&a.current&&(r&&r(b),a.current=!1),T&&s.current&&(o&&o(b),s.current=!1),T&&y>p?(n&&!a.current&&n(b),I.scrollTop=C,S=!0,a.current=!0):!T&&-y>x&&(i&&!s.current&&i(b),I.scrollTop=0,S=!0,s.current=!0),S&&nA(b)}},[n,r,i,o]),d=w.useCallback(function(b){c(b,b.deltaY)},[c]),h=w.useCallback(function(b){l.current=b.changedTouches[0].clientY},[]),f=w.useCallback(function(b){var y=l.current-b.changedTouches[0].clientY;c(b,y)},[c]),g=w.useCallback(function(b){if(b){var y=D9?{passive:!1}:!1;b.addEventListener("wheel",d,y),b.addEventListener("touchstart",h,y),b.addEventListener("touchmove",f,y)}},[f,h,d]),m=w.useCallback(function(b){b&&(b.removeEventListener("wheel",d,!1),b.removeEventListener("touchstart",h,!1),b.removeEventListener("touchmove",f,!1))},[f,h,d]);return w.useEffect(function(){if(t){var b=u.current;return g(b),function(){m(b)}}},[t,g,m]),function(b){u.current=b}}var Vm=["boxSizing","height","overflow","paddingRight","position"],Lm={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Hm(e){e.preventDefault()}function jm(e){e.stopPropagation()}function Wm(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function zm(){return"ontouchstart"in window||navigator.maxTouchPoints}var Gm=!!(typeof window<"u"&&window.document&&window.document.createElement),Ro=0,Li={capture:!1,passive:!1};function iA(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,i=w.useRef({}),o=w.useRef(null),a=w.useCallback(function(l){if(Gm){var u=document.body,c=u&&u.style;if(r&&Vm.forEach(function(g){var m=c&&c[g];i.current[g]=m}),r&&Ro<1){var d=parseInt(i.current.paddingRight,10)||0,h=document.body?document.body.clientWidth:0,f=window.innerWidth-h+d||0;Object.keys(Lm).forEach(function(g){var m=Lm[g];c&&(c[g]=m)}),c&&(c.paddingRight="".concat(f,"px"))}u&&zm()&&(u.addEventListener("touchmove",Hm,Li),l&&(l.addEventListener("touchstart",Wm,Li),l.addEventListener("touchmove",jm,Li))),Ro+=1}},[r]),s=w.useCallback(function(l){if(Gm){var u=document.body,c=u&&u.style;Ro=Math.max(Ro-1,0),r&&Ro<1&&Vm.forEach(function(d){var h=i.current[d];c&&(c[d]=h)}),u&&zm()&&(u.removeEventListener("touchmove",Hm,Li),l&&(l.removeEventListener("touchstart",Wm,Li),l.removeEventListener("touchmove",jm,Li)))}},[r]);return w.useEffect(function(){if(t){var l=o.current;return a(l),function(){s(l)}}},[t,a,s]),function(l){o.current=l}}function oA(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var aA=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},sA=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:oA};function lA(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=r===void 0?!0:r,o=e.onBottomArrive,a=e.onBottomLeave,s=e.onTopArrive,l=e.onTopLeave,u=rA({isEnabled:i,onBottomArrive:o,onBottomLeave:a,onTopArrive:s,onTopLeave:l}),c=iA({isEnabled:n}),d=function(f){u(f),c(f)};return le(w.Fragment,null,n&&le("div",{onClick:aA,css:sA}),t(d))}function uA(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var cA=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:uA},dA=function(t){var n=t.name,r=t.onFocus;return le("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:cA,value:"",onChange:function(){}})},fA=dA;function bh(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function hA(){return bh(/^iPhone/i)}function oy(){return bh(/^Mac/i)}function gA(){return bh(/^iPad/i)||oy()&&navigator.maxTouchPoints>1}function mA(){return hA()||gA()}function pA(){return oy()||mA()}var bA=function(t){return t.label},vA=function(t){return t.label},yA=function(t){return t.value},xA=function(t){return!!t.isDisabled},CA={clearIndicator:tR,container:W9,control:lR,dropdownIndicator:Q9,group:fR,groupHeading:gR,indicatorsContainer:X9,indicatorSeparator:rR,input:vR,loadingIndicator:aR,loadingMessage:N9,menu:F9,menuList:M9,menuPortal:H9,multiValue:DR,multiValueLabel:SR,multiValueRemove:ER,noOptionsMessage:O9,option:FR,placeholder:kR,singleValue:OR,valueContainer:G9},wA={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},DA=4,ay=4,SA=38,EA=ay*2,IA={baseUnit:ay,controlHeight:SA,menuGutter:EA},gc={borderRadius:DA,colors:wA,spacing:IA},_A={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:km(),captureMenuScroll:!km(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:QR(),formatGroupLabel:bA,getOptionLabel:vA,getOptionValue:yA,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:xA,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!C9(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Zm(e,t,n,r){var i=uy(e,t,n),o=cy(e,t,n),a=ly(e,t),s=Hl(e,t);return{type:"option",data:t,isDisabled:i,isSelected:o,label:a,value:s,index:r}}function sl(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(a,s){return Zm(e,a,t,s)}).filter(function(a){return Ym(e,a)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=Zm(e,n,t,r);return Ym(e,o)?o:void 0}).filter(S9)}function sy(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,rh(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function Xm(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,rh(r.options.map(function(i){return{data:i.data,id:"".concat(t,"-").concat(r.index,"-").concat(i.index)}}))):n.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),n},[])}function $A(e,t){return sy(sl(e,t))}function Ym(e,t){var n=e.inputValue,r=n===void 0?"":n,i=t.data,o=t.isSelected,a=t.label,s=t.value;return(!fy(e)||!o)&&dy(e,{label:a,value:s,data:i},r)}function RA(e,t){var n=e.focusedValue,r=e.selectValue,i=r.indexOf(n);if(i>-1){var o=t.indexOf(n);if(o>-1)return n;if(i<t.length)return t[i]}return null}function AA(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var mc=function(t,n){var r,i=(r=t.find(function(o){return o.data===n}))===null||r===void 0?void 0:r.id;return i||null},ly=function(t,n){return t.getOptionLabel(n)},Hl=function(t,n){return t.getOptionValue(n)};function uy(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function cy(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=Hl(e,t);return n.some(function(i){return Hl(e,i)===r})}function dy(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var fy=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},FA=1,hy=function(e){Y$(n,e);var t=K$(n);function n(r){var i;if(Z$(this,n),i=t.call(this,r),i.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},i.blockOptionHover=!1,i.isComposing=!1,i.commonProps=void 0,i.initialTouchX=0,i.initialTouchY=0,i.openAfterFocus=!1,i.scrollToFocusedOptionOnUpdate=!1,i.userIsDragging=void 0,i.isAppleDevice=pA(),i.controlRef=null,i.getControlRef=function(l){i.controlRef=l},i.focusedOptionRef=null,i.getFocusedOptionRef=function(l){i.focusedOptionRef=l},i.menuListRef=null,i.getMenuListRef=function(l){i.menuListRef=l},i.inputRef=null,i.getInputRef=function(l){i.inputRef=l},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(l,u){var c=i.props,d=c.onChange,h=c.name;u.name=h,i.ariaOnChange(l,u),d(l,u)},i.setValue=function(l,u,c){var d=i.props,h=d.closeMenuOnSelect,f=d.isMulti,g=d.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:g}),h&&(i.setState({inputIsHiddenAfterUpdate:!f}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(l,{action:u,option:c})},i.selectOption=function(l){var u=i.props,c=u.blurInputOnSelect,d=u.isMulti,h=u.name,f=i.state.selectValue,g=d&&i.isOptionSelected(l,f),m=i.isOptionDisabled(l,f);if(g){var b=i.getOptionValue(l);i.setValue(f.filter(function(y){return i.getOptionValue(y)!==b}),"deselect-option",l)}else if(!m)d?i.setValue([].concat(rh(f),[l]),"select-option",l):i.setValue(l,"select-option");else{i.ariaOnChange(l,{action:"select-option",option:l,name:h});return}c&&i.blurInput()},i.removeValue=function(l){var u=i.props.isMulti,c=i.state.selectValue,d=i.getOptionValue(l),h=c.filter(function(g){return i.getOptionValue(g)!==d}),f=Is(u,h,h[0]||null);i.onChange(f,{action:"remove-value",removedValue:l}),i.focusInput()},i.clearValue=function(){var l=i.state.selectValue;i.onChange(Is(i.props.isMulti,[],null),{action:"clear",removedValues:l})},i.popValue=function(){var l=i.props.isMulti,u=i.state.selectValue,c=u[u.length-1],d=u.slice(0,u.length-1),h=Is(l,d,d[0]||null);i.onChange(h,{action:"pop-value",removedValue:c})},i.getFocusedOptionId=function(l){return mc(i.state.focusableOptionsWithIds,l)},i.getFocusableOptionsWithIds=function(){return Xm(sl(i.props,i.state.selectValue),i.getElementId("option"))},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];return p9.apply(void 0,[i.props.classNamePrefix].concat(u))},i.getOptionLabel=function(l){return ly(i.props,l)},i.getOptionValue=function(l){return Hl(i.props,l)},i.getStyles=function(l,u){var c=i.props.unstyled,d=CA[l](u,c);d.boxSizing="border-box";var h=i.props.styles[l];return h?h(d,u):d},i.getClassNames=function(l,u){var c,d;return(c=(d=i.props.classNames)[l])===null||c===void 0?void 0:c.call(d,u)},i.getElementId=function(l){return"".concat(i.state.instancePrefix,"-").concat(l)},i.getComponents=function(){return LR(i.props)},i.buildCategorizedOptions=function(){return sl(i.props,i.state.selectValue)},i.getCategorizedOptions=function(){return i.props.menuIsOpen?i.buildCategorizedOptions():[]},i.buildFocusableOptions=function(){return sy(i.buildCategorizedOptions())},i.getFocusableOptions=function(){return i.props.menuIsOpen?i.buildFocusableOptions():[]},i.ariaOnChange=function(l,u){i.setState({ariaSelection:ce({value:l},u)})},i.onMenuMouseDown=function(l){l.button===0&&(l.stopPropagation(),l.preventDefault(),i.focusInput())},i.onMenuMouseMove=function(l){i.blockOptionHover=!1},i.onControlMouseDown=function(l){if(!l.defaultPrevented){var u=i.props.openMenuOnClick;i.state.isFocused?i.props.menuIsOpen?l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&i.onMenuClose():u&&i.openMenu("first"):(u&&(i.openAfterFocus=!0),i.focusInput()),l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&l.preventDefault()}},i.onDropdownIndicatorMouseDown=function(l){if(!(l&&l.type==="mousedown"&&l.button!==0)&&!i.props.isDisabled){var u=i.props,c=u.isMulti,d=u.menuIsOpen;i.focusInput(),d?(i.setState({inputIsHiddenAfterUpdate:!c}),i.onMenuClose()):i.openMenu("first"),l.preventDefault()}},i.onClearIndicatorMouseDown=function(l){l&&l.type==="mousedown"&&l.button!==0||(i.clearValue(),l.preventDefault(),i.openAfterFocus=!1,l.type==="touchend"?i.focusInput():setTimeout(function(){return i.focusInput()}))},i.onScroll=function(l){typeof i.props.closeMenuOnScroll=="boolean"?l.target instanceof HTMLElement&&$u(l.target)&&i.props.onMenuClose():typeof i.props.closeMenuOnScroll=="function"&&i.props.closeMenuOnScroll(l)&&i.props.onMenuClose()},i.onCompositionStart=function(){i.isComposing=!0},i.onCompositionEnd=function(){i.isComposing=!1},i.onTouchStart=function(l){var u=l.touches,c=u&&u.item(0);c&&(i.initialTouchX=c.clientX,i.initialTouchY=c.clientY,i.userIsDragging=!1)},i.onTouchMove=function(l){var u=l.touches,c=u&&u.item(0);if(c){var d=Math.abs(c.clientX-i.initialTouchX),h=Math.abs(c.clientY-i.initialTouchY),f=5;i.userIsDragging=d>f||h>f}},i.onTouchEnd=function(l){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(l.target)&&i.menuListRef&&!i.menuListRef.contains(l.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(l){i.userIsDragging||i.onControlMouseDown(l)},i.onClearIndicatorTouchEnd=function(l){i.userIsDragging||i.onClearIndicatorMouseDown(l)},i.onDropdownIndicatorTouchEnd=function(l){i.userIsDragging||i.onDropdownIndicatorMouseDown(l)},i.handleInputChange=function(l){var u=i.props.inputValue,c=l.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(c,{action:"input-change",prevInputValue:u}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(l){i.props.onFocus&&i.props.onFocus(l),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(l){var u=i.props.inputValue;if(i.menuListRef&&i.menuListRef.contains(document.activeElement)){i.inputRef.focus();return}i.props.onBlur&&i.props.onBlur(l),i.onInputChange("",{action:"input-blur",prevInputValue:u}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1})},i.onOptionHover=function(l){if(!(i.blockOptionHover||i.state.focusedOption===l)){var u=i.getFocusableOptions(),c=u.indexOf(l);i.setState({focusedOption:l,focusedOptionId:c>-1?i.getFocusedOptionId(l):null})}},i.shouldHideSelectedOptions=function(){return fy(i.props)},i.onValueInputFocus=function(l){l.preventDefault(),l.stopPropagation(),i.focus()},i.onKeyDown=function(l){var u=i.props,c=u.isMulti,d=u.backspaceRemovesValue,h=u.escapeClearsValue,f=u.inputValue,g=u.isClearable,m=u.isDisabled,b=u.menuIsOpen,y=u.onKeyDown,v=u.tabSelectsValue,x=u.openMenuOnFocus,C=i.state,D=C.focusedOption,I=C.focusedValue,T=C.selectValue;if(!m&&!(typeof y=="function"&&(y(l),l.defaultPrevented))){switch(i.blockOptionHover=!0,l.key){case"ArrowLeft":if(!c||f)return;i.focusValue("previous");break;case"ArrowRight":if(!c||f)return;i.focusValue("next");break;case"Delete":case"Backspace":if(f)return;if(I)i.removeValue(I);else{if(!d)return;c?i.popValue():g&&i.clearValue()}break;case"Tab":if(i.isComposing||l.shiftKey||!b||!v||!D||x&&i.isOptionSelected(D,T))return;i.selectOption(D);break;case"Enter":if(l.keyCode===229)break;if(b){if(!D||i.isComposing)return;i.selectOption(D);break}return;case"Escape":b?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:f}),i.onMenuClose()):g&&h&&i.clearValue();break;case" ":if(f)return;if(!b){i.openMenu("first");break}if(!D)return;i.selectOption(D);break;case"ArrowUp":b?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":b?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!b)return;i.focusOption("pageup");break;case"PageDown":if(!b)return;i.focusOption("pagedown");break;case"Home":if(!b)return;i.focusOption("first");break;case"End":if(!b)return;i.focusOption("last");break;default:return}l.preventDefault()}},i.state.instancePrefix="react-select-"+(i.props.instanceId||++FA),i.state.selectValue=Pm(r.value),r.menuIsOpen&&i.state.selectValue.length){var o=i.getFocusableOptionsWithIds(),a=i.buildFocusableOptions(),s=a.indexOf(i.state.selectValue[0]);i.state.focusableOptionsWithIds=o,i.state.focusedOption=a[s],i.state.focusedOptionId=mc(o,a[s])}return i}return X$(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Tm(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(i){var o=this.props,a=o.isDisabled,s=o.menuIsOpen,l=this.state.isFocused;(l&&!a&&i.isDisabled||l&&s&&!i.menuIsOpen)&&this.focusInput(),l&&a&&!i.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!a&&i.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Tm(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(i,o){this.props.onInputChange(i,o)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(i){var o=this,a=this.state,s=a.selectValue,l=a.isFocused,u=this.buildFocusableOptions(),c=i==="first"?0:u.length-1;if(!this.props.isMulti){var d=u.indexOf(s[0]);d>-1&&(c=d)}this.scrollToFocusedOptionOnUpdate=!(l&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:u[c],focusedOptionId:this.getFocusedOptionId(u[c])},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(i){var o=this.state,a=o.selectValue,s=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var l=a.indexOf(s);s||(l=-1);var u=a.length-1,c=-1;if(a.length){switch(i){case"previous":l===0?c=0:l===-1?c=u:c=l-1;break;case"next":l>-1&&l<u&&(c=l+1);break}this.setState({inputIsHidden:c!==-1,focusedValue:a[c]})}}}},{key:"focusOption",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,a=this.state.focusedOption,s=this.getFocusableOptions();if(s.length){var l=0,u=s.indexOf(a);a||(u=-1),i==="up"?l=u>0?u-1:s.length-1:i==="down"?l=(u+1)%s.length:i==="pageup"?(l=u-o,l<0&&(l=0)):i==="pagedown"?(l=u+o,l>s.length-1&&(l=s.length-1)):i==="last"&&(l=s.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:s[l],focusedValue:null,focusedOptionId:this.getFocusedOptionId(s[l])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(gc):ce(ce({},gc),this.props.theme):gc}},{key:"getCommonProps",value:function(){var i=this.clearValue,o=this.cx,a=this.getStyles,s=this.getClassNames,l=this.getValue,u=this.selectOption,c=this.setValue,d=this.props,h=d.isMulti,f=d.isRtl,g=d.options,m=this.hasValue();return{clearValue:i,cx:o,getStyles:a,getClassNames:s,getValue:l,hasValue:m,isMulti:h,isRtl:f,options:g,selectOption:u,selectProps:d,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var i=this.state.selectValue;return i.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var i=this.props,o=i.isClearable,a=i.isMulti;return o===void 0?a:o}},{key:"isOptionDisabled",value:function(i,o){return uy(this.props,i,o)}},{key:"isOptionSelected",value:function(i,o){return cy(this.props,i,o)}},{key:"filterOption",value:function(i,o){return dy(this.props,i,o)}},{key:"formatOptionLabel",value:function(i,o){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,s=this.state.selectValue;return this.props.formatOptionLabel(i,{context:o,inputValue:a,selectValue:s})}else return this.getOptionLabel(i)}},{key:"formatGroupLabel",value:function(i){return this.props.formatGroupLabel(i)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var i=this.props,o=i.isDisabled,a=i.isSearchable,s=i.inputId,l=i.inputValue,u=i.tabIndex,c=i.form,d=i.menuIsOpen,h=i.required,f=this.getComponents(),g=f.Input,m=this.state,b=m.inputIsHidden,y=m.ariaSelection,v=this.commonProps,x=s||this.getElementId("input"),C=ce(ce(ce({"aria-autocomplete":"list","aria-expanded":d,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":h,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},d&&{"aria-controls":this.getElementId("listbox")}),!a&&{"aria-readonly":!0}),this.hasValue()?(y==null?void 0:y.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?G.createElement(g,de({},v,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:x,innerRef:this.getInputRef,isDisabled:o,isHidden:b,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:c,type:"text",value:l},C)):G.createElement(tA,de({id:x,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Vl,onFocus:this.onInputFocus,disabled:o,tabIndex:u,inputMode:"none",form:c,value:""},C))}},{key:"renderPlaceholderOrValue",value:function(){var i=this,o=this.getComponents(),a=o.MultiValue,s=o.MultiValueContainer,l=o.MultiValueLabel,u=o.MultiValueRemove,c=o.SingleValue,d=o.Placeholder,h=this.commonProps,f=this.props,g=f.controlShouldRenderValue,m=f.isDisabled,b=f.isMulti,y=f.inputValue,v=f.placeholder,x=this.state,C=x.selectValue,D=x.focusedValue,I=x.isFocused;if(!this.hasValue()||!g)return y?null:G.createElement(d,de({},h,{key:"placeholder",isDisabled:m,isFocused:I,innerProps:{id:this.getElementId("placeholder")}}),v);if(b)return C.map(function(p,S){var $=p===D,_="".concat(i.getOptionLabel(p),"-").concat(i.getOptionValue(p));return G.createElement(a,de({},h,{components:{Container:s,Label:l,Remove:u},isFocused:$,isDisabled:m,key:_,index:S,removeProps:{onClick:function(){return i.removeValue(p)},onTouchEnd:function(){return i.removeValue(p)},onMouseDown:function(k){k.preventDefault()}},data:p}),i.formatOptionLabel(p,"value"))});if(y)return null;var T=C[0];return G.createElement(c,de({},h,{data:T,isDisabled:m}),this.formatOptionLabel(T,"value"))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),o=i.ClearIndicator,a=this.commonProps,s=this.props,l=s.isDisabled,u=s.isLoading,c=this.state.isFocused;if(!this.isClearable()||!o||l||!this.hasValue()||u)return null;var d={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return G.createElement(o,de({},a,{innerProps:d,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),o=i.LoadingIndicator,a=this.commonProps,s=this.props,l=s.isDisabled,u=s.isLoading,c=this.state.isFocused;if(!o||!u)return null;var d={"aria-hidden":"true"};return G.createElement(o,de({},a,{innerProps:d,isDisabled:l,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator,a=i.IndicatorSeparator;if(!o||!a)return null;var s=this.commonProps,l=this.props.isDisabled,u=this.state.isFocused;return G.createElement(a,de({},s,{isDisabled:l,isFocused:u}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator;if(!o)return null;var a=this.commonProps,s=this.props.isDisabled,l=this.state.isFocused,u={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return G.createElement(o,de({},a,{innerProps:u,isDisabled:s,isFocused:l}))}},{key:"renderMenu",value:function(){var i=this,o=this.getComponents(),a=o.Group,s=o.GroupHeading,l=o.Menu,u=o.MenuList,c=o.MenuPortal,d=o.LoadingMessage,h=o.NoOptionsMessage,f=o.Option,g=this.commonProps,m=this.state.focusedOption,b=this.props,y=b.captureMenuScroll,v=b.inputValue,x=b.isLoading,C=b.loadingMessage,D=b.minMenuHeight,I=b.maxMenuHeight,T=b.menuIsOpen,p=b.menuPlacement,S=b.menuPosition,$=b.menuPortalTarget,_=b.menuShouldBlockScroll,A=b.menuShouldScrollIntoView,k=b.noOptionsMessage,R=b.onMenuScrollToTop,M=b.onMenuScrollToBottom;if(!T)return null;var P=function(Z,j){var H=Z.type,V=Z.data,z=Z.isDisabled,Y=Z.isSelected,K=Z.label,Q=Z.value,ee=m===V,X=z?void 0:function(){return i.onOptionHover(V)},ue=z?void 0:function(){return i.selectOption(V)},fe="".concat(i.getElementId("option"),"-").concat(j),he={id:fe,onClick:ue,onMouseMove:X,onMouseOver:X,tabIndex:-1,role:"option","aria-selected":i.isAppleDevice?void 0:Y};return G.createElement(f,de({},g,{innerProps:he,data:V,isDisabled:z,isSelected:Y,key:fe,label:K,type:H,value:Q,isFocused:ee,innerRef:ee?i.getFocusedOptionRef:void 0}),i.formatOptionLabel(Z.data,"menu"))},F;if(this.hasOptions())F=this.getCategorizedOptions().map(function(W){if(W.type==="group"){var Z=W.data,j=W.options,H=W.index,V="".concat(i.getElementId("group"),"-").concat(H),z="".concat(V,"-heading");return G.createElement(a,de({},g,{key:V,data:Z,options:j,Heading:s,headingProps:{id:z,data:W.data},label:i.formatGroupLabel(W.data)}),W.options.map(function(Y){return P(Y,"".concat(H,"-").concat(Y.index))}))}else if(W.type==="option")return P(W,"".concat(W.index))});else if(x){var B=C({inputValue:v});if(B===null)return null;F=G.createElement(d,g,B)}else{var N=k({inputValue:v});if(N===null)return null;F=G.createElement(h,g,N)}var O={minMenuHeight:D,maxMenuHeight:I,menuPlacement:p,menuPosition:S,menuShouldScrollIntoView:A},L=G.createElement(P9,de({},g,O),function(W){var Z=W.ref,j=W.placerProps,H=j.placement,V=j.maxHeight;return G.createElement(l,de({},g,O,{innerRef:Z,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove},isLoading:x,placement:H}),G.createElement(lA,{captureEnabled:y,onTopArrive:R,onBottomArrive:M,lockEnabled:_},function(z){return G.createElement(u,de({},g,{innerRef:function(K){i.getMenuListRef(K),z(K)},innerProps:{role:"listbox","aria-multiselectable":g.isMulti,id:i.getElementId("listbox")},isLoading:x,maxHeight:V,focusedOption:m}),F)}))});return $||S==="fixed"?G.createElement(c,de({},g,{appendTo:$,controlElement:this.controlRef,menuPlacement:p,menuPosition:S}),L):L}},{key:"renderFormField",value:function(){var i=this,o=this.props,a=o.delimiter,s=o.isDisabled,l=o.isMulti,u=o.name,c=o.required,d=this.state.selectValue;if(c&&!this.hasValue()&&!s)return G.createElement(fA,{name:u,onFocus:this.onValueInputFocus});if(!(!u||s))if(l)if(a){var h=d.map(function(m){return i.getOptionValue(m)}).join(a);return G.createElement("input",{name:u,type:"hidden",value:h})}else{var f=d.length>0?d.map(function(m,b){return G.createElement("input",{key:"i-".concat(b),name:u,type:"hidden",value:i.getOptionValue(m)})}):G.createElement("input",{name:u,type:"hidden",value:""});return G.createElement("div",null,f)}else{var g=d[0]?this.getOptionValue(d[0]):"";return G.createElement("input",{name:u,type:"hidden",value:g})}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,o=this.state,a=o.ariaSelection,s=o.focusedOption,l=o.focusedValue,u=o.isFocused,c=o.selectValue,d=this.getFocusableOptions();return G.createElement(UR,de({},i,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:s,focusedValue:l,isFocused:u,selectValue:c,focusableOptions:d,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var i=this.getComponents(),o=i.Control,a=i.IndicatorsContainer,s=i.SelectContainer,l=i.ValueContainer,u=this.props,c=u.className,d=u.id,h=u.isDisabled,f=u.menuIsOpen,g=this.state.isFocused,m=this.commonProps=this.getCommonProps();return G.createElement(s,de({},m,{className:c,innerProps:{id:d,onKeyDown:this.onKeyDown},isDisabled:h,isFocused:g}),this.renderLiveRegion(),G.createElement(o,de({},m,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:h,isFocused:g,menuIsOpen:f}),G.createElement(l,de({},m,{isDisabled:h}),this.renderPlaceholderOrValue(),this.renderInput()),G.createElement(a,de({},m,{isDisabled:h}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(i,o){var a=o.prevProps,s=o.clearFocusValueOnUpdate,l=o.inputIsHiddenAfterUpdate,u=o.ariaSelection,c=o.isFocused,d=o.prevWasFocused,h=o.instancePrefix,f=i.options,g=i.value,m=i.menuIsOpen,b=i.inputValue,y=i.isMulti,v=Pm(g),x={};if(a&&(g!==a.value||f!==a.options||m!==a.menuIsOpen||b!==a.inputValue)){var C=m?$A(i,v):[],D=m?Xm(sl(i,v),"".concat(h,"-option")):[],I=s?RA(o,v):null,T=AA(o,C),p=mc(D,T);x={selectValue:v,focusedOption:T,focusedOptionId:p,focusableOptionsWithIds:D,focusedValue:I,clearFocusValueOnUpdate:!1}}var S=l!=null&&i!==a?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},$=u,_=c&&d;return c&&!_&&($={value:Is(y,v,v[0]||null),options:v,action:"initial-input-focus"},_=!d),(u==null?void 0:u.action)==="initial-input-focus"&&($=null),ce(ce(ce({},x),S),{},{prevProps:i,ariaSelection:$,prevWasFocused:_})}}]),n}(w.Component);hy.defaultProps=_A;var PA=w.forwardRef(function(e,t){var n=G$(e);return G.createElement(hy,de({ref:t},n))}),TA=PA;const kA="_container_26hat_1",pc={container:kA,"error-payhere":"_error-payhere_26hat_4","error-laba":"_error-laba_26hat_7"},MA={control:e=>({...e,border:"1px solid #D6D6D6","&:hover":{borderColor:"#0163C8"},borderRadius:"4px",outline:"none",boxShadow:"none",color:"#898989",backgroundColor:"white",margin:"0px",cursor:"text",minHeight:32,fontSize:"12px",lineHeight:"16px",fontFamily:"Lato"}),dropdownIndicator:e=>({...e,padding:"0px 8px"}),menu:e=>({...e,position:"static",boxShadow:"none",marginTop:"0px"}),option:(e,t)=>({...e,cursor:"pointer",background:t.isSelected?"#F0F7FF":"white",color:t.isSelected?"#0163C8":e.color,"&:hover":{background:t.isDisabled?"":"#F0F7FF",color:t.isDisabled?"":"#0163C8",cursor:t.isDisabled?"default":""}}),group:e=>({...e,padding:0}),placeholder:e=>({...e,fontSize:"12px",lineHeight:"16px",fontFamily:"Lato"})},BA={control:e=>({...e,border:"1px solid #D6D6D6","&:hover":{borderColor:"#0163C8"},borderRadius:"4px",outline:"none",boxShadow:"none",color:"#898989",backgroundColor:"white",margin:"0px",cursor:"text",minHeight:32}),dropdownIndicator:e=>({...e,padding:"0px 8px"}),menu:e=>({...e,position:"static",boxShadow:"none",marginTop:"0px"}),option:(e,t)=>({...e,cursor:"pointer",background:t.isSelected?"#F0F7FF":"white",color:t.isSelected?"#0163C8":e.color,"&:hover":{background:t.isDisabled?"":"#F0F7FF",color:t.isDisabled?"":"#0163C8",cursor:t.isDisabled?"default":""}}),group:e=>({...e,padding:0})},OA={control:()=>({display:"none"}),dropdownIndicator:e=>({...e,padding:"0px 8px"}),menu:e=>({...e,position:"static",boxShadow:"none",marginTop:"0px"}),option:(e,t)=>({...e,cursor:"pointer",background:t.isSelected?"#F0F7FF":"white",color:t.isSelected?"#0163C8":e.color,"&:hover":{background:t.isDisabled?"":"#F0F7FF",color:t.isDisabled?"":"#0163C8",cursor:t.isDisabled?"default":""}}),group:e=>({...e,padding:0})},gy=w.forwardRef((e,t)=>{const{width:n,children:r,components:i,classNameContainer:o="",classNameContainerShowSelect:a="",classNameContainerSelect:s="",classNameLabelError:l="",error:u,onChange:c,externalValue:d=!1,defaultValueButtonDropdown:h={},autoClose:f=!0,onMenuOpen:g=()=>{},autoCloseOutside:m=!0,styleInnerPopper:b={},onMenuClose:y=()=>{},zIndexPopper:v=0,id:x="select-dropdown-container",idPopover:C="select-dropdown-container-popover",useAutoPlacement:D,flipOptions:I,autoPlacementOptions:T,withSearch:p=!1,floatingOptions:S={},offsetPopover:$=5,selectProps:_={},errorLabel:A="payhere",controlType:k="payhere",actionValueChange:R=()=>{},...M}=e,P={error:{laba:pc["error-laba"],payhere:pc["error-payhere"]}},F=w.useRef(null),B=w.useRef(null),[N,O]=w.useState(""),[L,W]=w.useState(!1),[Z,j]=w.useState({}),[H,V]=w.useState(0),z=ue=>{var fe;(fe=B.current)==null||fe.setShow(ue),W(ue)},Y=()=>{if(d)return e.isMulti?h:[h]},K=ue=>{var fe;(fe=B.current)==null||fe.handlerShow(ue),V(F.current.offsetWidth),W(he=>!he)},Q=()=>{var ue;m&&((ue=B.current)==null||ue.setShow(!1))},ee=(ue,fe)=>{var he;f&&(W(!1),(he=B.current)==null||he.setShow(!1)),typeof c=="function"&&c(ue,fe),d||j(ue)},X=()=>{F.current&&V(F.current.offsetWidth)};return Ci(()=>{d&&j(h),R(h)},[d,h]),w.useEffect(()=>{L?g():L||(y(),O(""))},[L]),w.useImperativeHandle(t,()=>({selectValue:Z,setSelectValue:j,handlerClose:Q,handlerShow:K,show:L,setShow:z}),[L,wa(Z)]),w.useEffect(()=>(window.addEventListener("resize",X),window.addEventListener("load",X),()=>{window.removeEventListener("resize",X),window.removeEventListener("load",X)}),[F]),E.jsxs("div",{id:x,className:`${pc.container} ${o} ${L?`${a} open-popover`:null}`,ref:F,children:[r({selectValue:Z,setSelectValue:j,handlerClose:Q,handlerShow:K,show:L,setShow:z}),E.jsx(br,{ref:B,offset:$,useAutoPlacement:D,flipOptions:I,autoPlacementOptions:T,zIndex:v,styleInnerPopover:b,id:C,width:typeof n=="function"?n(H,Z):n||H,className:s,floatingOptions:S,children:E.jsx(TA,{className:"1ru-w-full",defaultValue:Y(),inputValue:N,onInputChange:(ue,{action:fe})=>{fe==="input-change"&&O(ue)},openMenuOnFocus:!0,autoFocus:!1,backspaceRemovesValue:!1,components:{IndicatorSeparator:null,...i},controlShouldRenderValue:!1,hideSelectedOptions:!1,isClearable:!1,menuIsOpen:!0,tabSelectsValue:!1,styles:p?k==="laba"?MA:BA:OA,noOptionsMessage:()=>"Tidak ada data.",onChange:ee,selectProps:{..._,setShowDropdown:z},...M})}),E.jsx("div",{className:`${P.error[A]} ${l}`,children:u})]})});gy.displayName="SelectDropdownContainer";function ro(e,t){return e-t*Math.floor(e/t)}const my=1721426;function ui(e,t,n,r){t=ns(e,t);let i=t-1,o=-2;return n<=2?o=0:Fr(t)&&(o=-1),my-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+o+r)}function Fr(e){return e%4===0&&(e%100!==0||e%400===0)}function ns(e,t){return e==="BC"?1-t:t}function Ru(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const NA={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class Qt{fromJulianDay(t){let n=t,r=n-my,i=Math.floor(r/146097),o=ro(r,146097),a=Math.floor(o/36524),s=ro(o,36524),l=Math.floor(s/1461),u=ro(s,1461),c=Math.floor(u/365),d=i*400+a*100+l*4+c+(a!==4&&c!==4?1:0),[h,f]=Ru(d),g=n-ui(h,f,1,1),m=2;n<ui(h,f,3,1)?m=0:Fr(f)&&(m=1);let b=Math.floor(((g+m)*12+373)/367),y=n-ui(h,f,b,1)+1;return new tt(h,f,b,y)}toJulianDay(t){return ui(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return NA[Fr(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return Fr(t.year)?366:365}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}}const VA={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function rt(e,t){return t=ct(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function kd(e,t){return e.calendar.identifier===t.calendar.identifier&&e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function LA(e,t){return rt(e,vh(t))}function Au(e,t){let n=e.calendar.toJulianDay(e),r=Math.ceil(n+1-GA(t))%7;return r<0&&(r+=7),r}function HA(e){return lr(Date.now(),e)}function vh(e){return Kt(HA(e))}function py(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function by(e,t){return Um(e)-Um(t)}function Um(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let bc=null;function Di(){return bc==null&&(bc=new Intl.DateTimeFormat().resolvedOptions().timeZone),bc}function rs(e){return e.subtract({days:e.day-1})}function Md(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function jA(e){return rs(e.subtract({months:e.month-1}))}function _a(e,t){let n=Au(e,t);return e.subtract({days:n})}function WA(e,t){return _a(e,t).add({days:6})}const Jm=new Map;function zA(e){if(Intl.Locale){let n=Jm.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&Jm.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function GA(e){let t=zA(e);return t&&VA[t]||0}function vy(e,t){let n=e.calendar.getDaysInMonth(e);return Math.ceil((Au(rs(e),t)+n)/7)}function yh(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function xh(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function mo(e){e=ct(e,new Qt);let t=ns(e.era,e.year);return yy(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function yy(e,t,n,r,i,o,a){let s=new Date;return s.setUTCHours(r,i,o,a),s.setUTCFullYear(e,t-1,n),s.getTime()}function Bd(e,t){if(t==="UTC")return 0;if(e>0&&t===Di())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:o,minute:a,second:s}=xy(e,t);return yy(n,r,i,o,a,s,0)-Math.floor(e/1e3)*1e3}const Km=new Map;function xy(e,t){let n=Km.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),Km.set(t,n));let r=n.formatToParts(new Date(e)),i={};for(let o of r)o.type!=="literal"&&(i[o.type]=o.value);return{year:i.era==="BC"||i.era==="B"?-i.year+1:+i.year,month:+i.month,day:+i.day,hour:i.hour==="24"?0:+i.hour,minute:+i.minute,second:+i.second}}const qm=864e5;function ZA(e,t,n,r){return(n===r?[n]:[n,r]).filter(o=>XA(e,t,o))}function XA(e,t,n){let r=xy(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function rr(e,t,n="compatible"){let r=Lr(e);if(t==="UTC")return mo(r);if(t===Di()&&n==="compatible"){r=ct(r,new Qt);let l=new Date,u=ns(r.era,r.year);return l.setFullYear(u,r.month-1,r.day),l.setHours(r.hour,r.minute,r.second,r.millisecond),l.getTime()}let i=mo(r),o=Bd(i-qm,t),a=Bd(i+qm,t),s=ZA(r,t,i-o,i-a);if(s.length===1)return s[0];if(s.length>1)switch(n){case"compatible":case"earlier":return s[0];case"later":return s[s.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(i-o,i-a);case"compatible":case"later":return Math.max(i-o,i-a);case"reject":throw new RangeError("No such absolute time found")}}function Cy(e,t,n="compatible"){return new Date(rr(e,t,n))}function lr(e,t){let n=Bd(e,t),r=new Date(e+n),i=r.getUTCFullYear(),o=r.getUTCMonth()+1,a=r.getUTCDate(),s=r.getUTCHours(),l=r.getUTCMinutes(),u=r.getUTCSeconds(),c=r.getUTCMilliseconds();return new Ra(i,o,a,t,n,s,l,u,c)}function Kt(e){return new tt(e.calendar,e.era,e.year,e.month,e.day)}function Lr(e,t){let n=0,r=0,i=0,o=0;if("timeZone"in e)({hour:n,minute:r,second:i,millisecond:o}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:i,millisecond:o}=t),new jl(e.calendar,e.era,e.year,e.month,e.day,n,r,i,o)}function ct(e,t){if(e.calendar.identifier===t.identifier)return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,Si(r),r}function YA(e,t,n){if(e instanceof Ra)return e.timeZone===t?e:JA(e,t);let r=rr(e,t,n);return lr(r,t)}function UA(e){let t=mo(e)-e.offset;return new Date(t)}function JA(e,t){let n=mo(e)-e.offset;return ct(lr(n,t),e.calendar)}const Ao=36e5;function Fu(e,t){let n=e.copy(),r="hour"in n?Ey(n,t):0;Od(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,Nd(n),wy(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,KA(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let i=n.calendar.getYearsInEra(n);if(n.year>i){var o,a;let l=(o=(a=n.calendar).isInverseEra)===null||o===void 0?void 0:o.call(a,n);n.year=i,n.month=l?1:n.calendar.getMonthsInYear(n),n.day=l?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let s=n.calendar.getMonthsInYear(n);return n.month>s&&(n.month=s,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function Od(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function Nd(e){for(;e.month<1;)Od(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Od(e,1)}function KA(e){for(;e.day<1;)e.month--,Nd(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,Nd(e)}function wy(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function Si(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),wy(e)}function Ch(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function Dy(e,t){return Fu(e,Ch(t))}function wh(e,t){let n=e.copy();return t.era!=null&&(n.era=t.era),t.year!=null&&(n.year=t.year),t.month!=null&&(n.month=t.month),t.day!=null&&(n.day=t.day),Si(n),n}function $a(e,t){let n=e.copy();return t.hour!=null&&(n.hour=t.hour),t.minute!=null&&(n.minute=t.minute),t.second!=null&&(n.second=t.second),t.millisecond!=null&&(n.millisecond=t.millisecond),Sy(n),n}function qA(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=_s(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=_s(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=_s(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=_s(e.hour,24),t}function Sy(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function _s(e,t){let n=e%t;return n<0&&(n+=t),n}function Ey(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,qA(e)}function Iy(e,t){let n=e.copy();return Ey(n,t),n}function QA(e,t){return Iy(e,Ch(t))}function Dh(e,t,n,r){let i=e.copy();switch(t){case"era":{let s=e.calendar.getEras(),l=s.indexOf(e.era);if(l<0)throw new Error("Invalid era: "+e.era);l=ur(l,n,0,s.length-1,r==null?void 0:r.round),i.era=s[l],Si(i);break}case"year":var o,a;!((o=(a=i.calendar).isInverseEra)===null||o===void 0)&&o.call(a,i)&&(n=-n),i.year=ur(e.year,n,-1/0,9999,r==null?void 0:r.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,e);break;case"month":i.month=ur(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":i.day=ur(e.day,n,1,e.calendar.getDaysInMonth(e),r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(i),Si(i),i}function Sh(e,t,n,r){let i=e.copy();switch(t){case"hour":{let o=e.hour,a=0,s=23;if((r==null?void 0:r.hourCycle)===12){let l=o>=12;a=l?12:0,s=l?23:11}i.hour=ur(o,n,a,s,r==null?void 0:r.round);break}case"minute":i.minute=ur(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":i.second=ur(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":i.millisecond=ur(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return i}function ur(e,t,n,r,i=!1){if(i){e+=Math.sign(t),e<n&&(e=r);let o=Math.abs(t);t>0?e=Math.ceil(e/o)*o:e=Math.floor(e/o)*o,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function _y(e,t){let n;if(t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0){let i=Fu(Lr(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=rr(i,e.timeZone)}else n=mo(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=lr(n,e.timeZone);return ct(r,e.calendar)}function eF(e,t){return _y(e,Ch(t))}function tF(e,t,n,r){switch(t){case"hour":{let i=0,o=23;if((r==null?void 0:r.hourCycle)===12){let g=e.hour>=12;i=g?12:0,o=g?23:11}let a=Lr(e),s=ct($a(a,{hour:i}),new Qt),l=[rr(s,e.timeZone,"earlier"),rr(s,e.timeZone,"later")].filter(g=>lr(g,e.timeZone).day===s.day)[0],u=ct($a(a,{hour:o}),new Qt),c=[rr(u,e.timeZone,"earlier"),rr(u,e.timeZone,"later")].filter(g=>lr(g,e.timeZone).day===u.day).pop(),d=mo(e)-e.offset,h=Math.floor(d/Ao),f=d%Ao;return d=ur(h,n,Math.floor(l/Ao),Math.floor(c/Ao),r==null?void 0:r.round)*Ao+f,ct(lr(d,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return Sh(e,t,n,r);case"era":case"year":case"month":case"day":{let i=Dh(Lr(e),t,n,r),o=rr(i,e.timeZone);return ct(lr(o,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function nF(e,t,n){let r=Lr(e),i=$a(wh(r,t),t);if(i.compare(r)===0)return e;let o=rr(i,e.timeZone,n);return ct(lr(o,e.timeZone),e.calendar)}const rF=/^(\d{4})-(\d{2})-(\d{2})$/;function Eh(e){let t=e.match(rF);if(!t)throw new Error("Invalid ISO 8601 date string: "+e);let n=new tt(vc(t[1],0,9999),vc(t[2],1,12),1);return n.day=vc(t[3],0,n.calendar.getDaysInMonth(n)),n}function vc(e,t,n){let r=Number(e);if(r<t||r>n)throw new RangeError(`Value out of range: ${t} <= ${r} <= ${n}`);return r}function $y(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function Ry(e){let t=ct(e,new Qt);return`${String(t.year).padStart(4,"0")}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function Ay(e){return`${Ry(e)}T${$y(e)}`}function iF(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let n=Math.floor(e/36e5),r=e%36e5/6e4;return`${t}${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`}function oF(e){return`${Ay(e)}${iF(e.offset)}[${e.timeZone}]`}function aF(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function is(e,t,n){aF(e,t),t.set(e,n)}function Ih(e){let t=typeof e[0]=="object"?e.shift():new Qt,n;if(typeof e[0]=="string")n=e.shift();else{let a=t.getEras();n=a[a.length-1]}let r=e.shift(),i=e.shift(),o=e.shift();return[t,n,r,i,o]}var sF=new WeakMap;class tt{copy(){return this.era?new tt(this.calendar,this.era,this.year,this.month,this.day):new tt(this.calendar,this.year,this.month,this.day)}add(t){return Fu(this,t)}subtract(t){return Dy(this,t)}set(t){return wh(this,t)}cycle(t,n,r){return Dh(this,t,n,r)}toDate(t){return Cy(this,t)}toString(){return Ry(this)}compare(t){return py(this,t)}constructor(...t){is(this,sF,{writable:!0,value:void 0});let[n,r,i,o,a]=Ih(t);this.calendar=n,this.era=r,this.year=i,this.month=o,this.day=a,Si(this)}}var lF=new WeakMap;class _h{copy(){return new _h(this.hour,this.minute,this.second,this.millisecond)}add(t){return Iy(this,t)}subtract(t){return QA(this,t)}set(t){return $a(this,t)}cycle(t,n,r){return Sh(this,t,n,r)}toString(){return $y(this)}compare(t){return by(this,t)}constructor(t=0,n=0,r=0,i=0){is(this,lF,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=i,Sy(this)}}var uF=new WeakMap;class jl{copy(){return this.era?new jl(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new jl(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return Fu(this,t)}subtract(t){return Dy(this,t)}set(t){return wh($a(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return Dh(this,t,n,r);default:return Sh(this,t,n,r)}}toDate(t,n){return Cy(this,t,n)}toString(){return Ay(this)}compare(t){let n=py(this,t);return n===0?by(this,Lr(t)):n}constructor(...t){is(this,uF,{writable:!0,value:void 0});let[n,r,i,o,a]=Ih(t);this.calendar=n,this.era=r,this.year=i,this.month=o,this.day=a,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Si(this)}}var cF=new WeakMap;class Ra{copy(){return this.era?new Ra(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new Ra(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return _y(this,t)}subtract(t){return eF(this,t)}set(t,n){return nF(this,t,n)}cycle(t,n,r){return tF(this,t,n,r)}toDate(){return UA(this)}toString(){return oF(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-YA(t,this.timeZone).toDate().getTime()}constructor(...t){is(this,cF,{writable:!0,value:void 0});let[n,r,i,o,a]=Ih(t),s=t.shift(),l=t.shift();this.calendar=n,this.era=r,this.year=i,this.month=o,this.day=a,this.timeZone=s,this.offset=l,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Si(this)}}const io=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],dF=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],ll=[1867,1911,1925,1988,2018],_r=["meiji","taisho","showa","heisei","reiwa"];function Qm(e){const t=io.findIndex(([n,r,i])=>e.year<n||e.year===n&&e.month<r||e.year===n&&e.month===r&&e.day<i);return t===-1?io.length-1:t===0?0:t-1}function yc(e){let t=ll[_r.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new tt(e.year+t,e.month,e.day)}class fF extends Qt{fromJulianDay(t){let n=super.fromJulianDay(t),r=Qm(n);return new tt(this,_r[r],n.year-ll[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(yc(t))}balanceDate(t){let n=yc(t),r=Qm(n);_r[r]!==t.era&&(t.era=_r[r],t.year=n.year-ll[r]),this.constrainDate(t)}constrainDate(t){let n=_r.indexOf(t.era),r=dF[n];if(r!=null){let[i,o,a]=r,s=i-ll[n];t.year=Math.max(1,Math.min(s,t.year)),t.year===s&&(t.month=Math.min(o,t.month),t.month===o&&(t.day=Math.min(a,t.day)))}if(t.year===1&&n>=0){let[,i,o]=io[n];t.month=Math.max(i,t.month),t.month===i&&(t.day=Math.max(o,t.day))}}getEras(){return _r}getYearsInEra(t){let n=_r.indexOf(t.era),r=io[n],i=io[n+1];if(i==null)return 9999-r[0]+1;let o=i[0]-r[0];return(t.month<i[1]||t.month===i[1]&&t.day<i[2])&&o++,o}getDaysInMonth(t){return super.getDaysInMonth(yc(t))}getMinimumMonthInYear(t){let n=ep(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=ep(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function ep(e){if(e.year===1){let t=_r.indexOf(e.era);return io[t]}}const Fy=-543;class hF extends Qt{fromJulianDay(t){let n=super.fromJulianDay(t),r=ns(n.era,n.year);return new tt(this,r-Fy,n.month,n.day)}toJulianDay(t){return super.toJulianDay(tp(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(tp(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function tp(e){let[t,n]=Ru(e.year+Fy);return new tt(t,n,e.month,e.day)}const Wl=1911;function Py(e){return e.era==="minguo"?e.year+Wl:1-e.year+Wl}function np(e){let t=e-Wl;return t>0?["minguo",t]:["before_minguo",1-t]}class gF extends Qt{fromJulianDay(t){let n=super.fromJulianDay(t),r=ns(n.era,n.year),[i,o]=np(r);return new tt(this,i,o,n.month,n.day)}toJulianDay(t){return super.toJulianDay(rp(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=np(Py(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(rp(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-Wl}constructor(...t){super(...t),this.identifier="roc"}}function rp(e){let[t,n]=Ru(Py(e));return new tt(t,n,e.month,e.day)}const ip=1948320,op=[0,31,62,93,124,155,186,216,246,276,306,336];class mF{fromJulianDay(t){let n=t-ip,r=1+Math.floor((33*n+3)/12053),i=365*(r-1)+Math.floor((8*r+21)/33),o=n-i,a=o<216?Math.floor(o/31):Math.floor((o-6)/30),s=o-op[a]+1;return new tt(this,r,a+1,s)}toJulianDay(t){let n=ip-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=op[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||ro(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const xc=78,ap=80;class pF extends Qt{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-xc,i=t-ui(n.era,n.year,1,1),o;i<ap?(r--,o=Fr(n.year-1)?31:30,i+=o+155+90+10):(o=Fr(n.year)?31:30,i-=ap);let a,s;if(i<o)a=1,s=i+1;else{let l=i-o;l<155?(a=Math.floor(l/31)+2,s=l%31+1):(l-=155,a=Math.floor(l/30)+7,s=l%30+1)}return new tt(this,r,a,s)}toJulianDay(t){let n=t.year+xc,[r,i]=Ru(n),o,a;return Fr(i)?(o=31,a=ui(r,i,3,21)):(o=30,a=ui(r,i,3,22)),t.month===1?a+t.day-1:(a+=o+Math.min(t.month-2,5)*31,t.month>=8&&(a+=(t.month-7)*30),a+=t.day-1,a)}getDaysInMonth(t){return t.month===1&&Fr(t.year+xc)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const zl=1948440,sp=1948439,ln=1300,Hi=1600,bF=460322;function Gl(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function Ty(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+Gl(t,r,1,1)))/29.5)+1),o=n-Gl(t,r,i,1)+1;return new tt(e,r,i,o)}function lp(e){return(14+11*e)%30<11}class $h{fromJulianDay(t){return Ty(this,zl,t)}toJulianDay(t){return Gl(zl,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&lp(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return lp(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class vF extends $h{fromJulianDay(t){return Ty(this,sp,t)}toJulianDay(t){return Gl(sp,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const yF="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let Vd,oo;function ul(e){return bF+oo[e-ln]}function Ho(e,t){let n=e-ln,r=1<<11-(t-1);return Vd[n]&r?30:29}function up(e,t){let n=ul(e);for(let r=1;r<t;r++)n+=Ho(e,r);return n}function cp(e){return oo[e+1-ln]-oo[e-ln]}class xF extends $h{fromJulianDay(t){let n=t-zl,r=ul(ln),i=ul(Hi);if(n<r||n>i)return super.fromJulianDay(t);{let o=ln-1,a=1,s=1;for(;s>0;){o++,s=n-ul(o)+1;let l=cp(o);if(s===l){a=12;break}else if(s<l){let u=Ho(o,a);for(a=1;s>u;)s-=u,a++,u=Ho(o,a);break}}return new tt(this,o,a,n-up(o,a)+1)}}toJulianDay(t){return t.year<ln||t.year>Hi?super.toJulianDay(t):zl+up(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<ln||t.year>Hi?super.getDaysInMonth(t):Ho(t.year,t.month)}getDaysInYear(t){return t.year<ln||t.year>Hi?super.getDaysInYear(t):cp(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",Vd||(Vd=new Uint16Array(Uint8Array.from(atob(yF),t=>t.charCodeAt(0)).buffer)),!oo){oo=new Uint32Array(Hi-ln+1);let t=0;for(let n=ln;n<=Hi;n++){oo[n-ln]=t;for(let r=1;r<=12;r++)t+=Ho(n,r)}}}}const dp=347997,ky=1080,My=24*ky,CF=29,wF=12*ky+793,DF=CF*My+wF;function oi(e){return ro(e*7+1,19)<7}function cl(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return ro(3*(r+1),7)<3&&(r+=1),r}function SF(e){let t=cl(e-1),n=cl(e);return cl(e+1)-n===356?2:n-t===382?1:0}function ea(e){return cl(e)+SF(e)}function By(e){return ea(e+1)-ea(e)}function EF(e){let t=By(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function $s(e,t){if(t>=6&&!oi(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=EF(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?oi(e)?30:0:30}class IF{fromJulianDay(t){let n=t-dp,r=n*My/DF,i=Math.floor((19*r+234)/235)+1,o=ea(i),a=Math.floor(n-o);for(;a<1;)i--,o=ea(i),a=Math.floor(n-o);let s=1,l=0;for(;l<a;)l+=$s(i,s),s++;s--,l-=$s(i,s);let u=a-l;return new tt(this,i,s,u)}toJulianDay(t){let n=ea(t.year);for(let r=1;r<t.month;r++)n+=$s(t.year,r);return n+t.day+dp}getDaysInMonth(t){return $s(t.year,t.month)}getMonthsInYear(t){return oi(t.year)?13:12}getDaysInYear(t){return By(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&(oi(n.year)&&!oi(t.year)&&n.month>6?t.month--:!oi(n.year)&&oi(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const Ld=1723856,fp=1824665,Hd=5500;function Zl(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function Rh(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-Zl(e,n,1,1))/30),i=t+1-Zl(e,n,r,1);return[n,r,i]}function Oy(e){return Math.floor(e%4/3)}function Ny(e,t){return t%13!==0?30:Oy(e)+5}class Ah{fromJulianDay(t){let[n,r,i]=Rh(Ld,t),o="AM";return n<=0&&(o="AA",n+=Hd),new tt(this,o,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=Hd),Zl(Ld,n,t.month,t.day)}getDaysInMonth(t){return Ny(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+Oy(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class _F extends Ah{fromJulianDay(t){let[n,r,i]=Rh(Ld,t);return n+=Hd,new tt(this,"AA",n,r,i)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class $F extends Ah{fromJulianDay(t){let[n,r,i]=Rh(fp,t),o="CE";return n<=0&&(o="BCE",n=1-n),new tt(this,o,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),Zl(fp,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),Ny(n,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}}function os(e){switch(e){case"buddhist":return new hF;case"ethiopic":return new Ah;case"ethioaa":return new _F;case"coptic":return new $F;case"hebrew":return new IF;case"indian":return new pF;case"islamic-civil":return new $h;case"islamic-tbla":return new vF;case"islamic-umalqura":return new xF;case"japanese":return new fF;case"persian":return new mF;case"roc":return new gF;case"gregory":default:return new Qt}}let Cc=new Map;class Aa{format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,n){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(n)}`}formatRangeToParts(t,n){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.formatter.formatToParts(t),i=this.formatter.formatToParts(n);return[...r.map(o=>({...o,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(o=>({...o,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return FF()&&(this.resolvedHourCycle||(this.resolvedHourCycle=PF(t.locale,this.options)),t.hourCycle=this.resolvedHourCycle,t.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),t.calendar==="ethiopic-amete-alem"&&(t.calendar="ethioaa"),t}constructor(t,n={}){this.formatter=Vy(t,n),this.options=n}}const RF={true:{ja:"h11"},false:{}};function Vy(e,t={}){if(typeof t.hour12=="boolean"&&AF()){t={...t};let i=RF[String(t.hour12)][e.split("-")[0]],o=t.hour12?"h12":"h23";t.hourCycle=i??o,delete t.hour12}let n=e+(t?Object.entries(t).sort((i,o)=>i[0]<o[0]?-1:1).join():"");if(Cc.has(n))return Cc.get(n);let r=new Intl.DateTimeFormat(e,t);return Cc.set(n,r),r}let wc=null;function AF(){return wc==null&&(wc=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),wc}let Dc=null;function FF(){return Dc==null&&(Dc=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),Dc}function PF(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),e+=(e.includes("-u-")?"":"-u")+"-nu-latn";let n=Vy(e,{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(o=>o.type==="hour").value,10),i=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(o=>o.type==="hour").value,10);if(r===0&&i===23)return"h23";if(r===24&&i===23)return"h24";if(r===0&&i===11)return"h11";if(r===12&&i===11)return"h12";throw new Error("Unexpected hour cycle result")}const Fi=typeof document<"u"?w.useLayoutEffect:()=>{};function ir(e){const t=w.useRef(null);return Fi(()=>{t.current=e},[e]),w.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function TF(e){let[t,n]=w.useState(e),r=w.useRef(null),i=ir(()=>{if(!r.current)return;let a=r.current.next();if(a.done){r.current=null;return}t===a.value?i():n(a.value)});Fi(()=>{r.current&&i()});let o=ir(a=>{r.current=a(t),i()});return[t,o]}const Xl={prefix:String(Math.round(Math.random()*1e10)),current:0},Ly=w.createContext(Xl),kF=w.createContext(!1);let MF=!!(typeof window<"u"&&window.document&&window.document.createElement),Sc=new WeakMap;function BF(e=!1){let t=w.useContext(Ly),n=w.useRef(null);if(n.current===null&&!e){var r,i;let o=(i=w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(o){let a=Sc.get(o);a==null?Sc.set(o,{id:t.current,state:o.memoizedState}):o.memoizedState!==a.state&&(t.current=a.id,Sc.delete(o))}n.current=++t.current}return n.current}function OF(e){let t=w.useContext(Ly);t===Xl&&!MF&&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=BF(!!e),r=t===Xl&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function NF(e){let t=w.useId(),[n]=w.useState(Hy()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Xl.prefix}`;return e||`${r}-${t}`}const VF=typeof w.useId=="function"?NF:OF;function LF(){return!1}function HF(){return!0}function jF(e){return()=>{}}function Hy(){return typeof w.useSyncExternalStore=="function"?w.useSyncExternalStore(jF,LF,HF):w.useContext(kF)}let WF=!!(typeof window<"u"&&window.document&&window.document.createElement),Yl=new Map;function po(e){let[t,n]=w.useState(e),r=w.useRef(null),i=VF(t),o=w.useCallback(a=>{r.current=a},[]);return WF&&Yl.set(i,o),Fi(()=>{let a=i;return()=>{Yl.delete(a)}},[i]),w.useEffect(()=>{let a=r.current;a&&(r.current=null,n(a))}),i}function zF(e,t){if(e===t)return e;let n=Yl.get(e);if(n)return n(t),t;let r=Yl.get(t);return r?(r(e),e):t}function jd(e=[]){let t=po(),[n,r]=TF(t),i=w.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return Fi(i,[t,i,...e]),n}function jy(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const Ct=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},yn=e=>e&&"window"in e&&e.window===e?e:Ct(e).defaultView||window;function Lt(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let i in r){let o=t[i],a=r[i];typeof o=="function"&&typeof a=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=jy(o,a):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof a=="string"?t[i]=ar(o,a):i==="id"&&o&&a?t.id=zF(o,a):t[i]=a!==void 0?a:o}}return t}const GF=new Set(["id"]),ZF=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),XF=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),YF=/^(data-.*)$/;function Fh(e,t={}){let{labelable:n,isLink:r,propNames:i}=t,o={};for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&(GF.has(a)||n&&ZF.has(a)||r&&XF.has(a)||i!=null&&i.has(a)||YF.test(a))&&(o[a]=e[a]);return o}function Pr(e){if(UF())e.focus({preventScroll:!0});else{let t=JF(e);e.focus(),KF(t)}}let Rs=null;function UF(){if(Rs==null){Rs=!1;try{document.createElement("div").focus({get preventScroll(){return Rs=!0,!0}})}catch{}}return Rs}function JF(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function KF(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Pu(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function Ph(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Fa(){return Ph(/^Mac/i)}function qF(){return Ph(/^iPhone/i)}function Wy(){return Ph(/^iPad/i)||Fa()&&navigator.maxTouchPoints>1}function zy(){return qF()||Wy()}function QF(){return Pu(/AppleWebKit/i)&&!e7()}function e7(){return Pu(/Chrome/i)}function Gy(){return Pu(/Android/i)}function t7(){return Pu(/Firefox/i)}function Pa(e,t,n=!0){var r,i;let{metaKey:o,ctrlKey:a,altKey:s,shiftKey:l}=t;t7()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Fa()?o=!0:a=!0);let u=QF()&&Fa()&&!Wy()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:a,altKey:s,shiftKey:l}):new MouseEvent("click",{metaKey:o,ctrlKey:a,altKey:s,shiftKey:l,bubbles:!0,cancelable:!0});Pa.isOpening=n,Pr(e),e.dispatchEvent(u),Pa.isOpening=!1}Pa.isOpening=!1;let Ui=new Map,Wd=new Set;function hp(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let i=Ui.get(r.target);i||(i=new Set,Ui.set(r.target,i),r.target.addEventListener("transitioncancel",n,{once:!0})),i.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let i=Ui.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),Ui.delete(r.target)),Ui.size===0)){for(let o of Wd)o();Wd.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?hp():document.addEventListener("DOMContentLoaded",hp));function Zy(e){requestAnimationFrame(()=>{Ui.size===0?e():Wd.add(e)})}function n7(){let e=w.useRef(new Map),t=w.useCallback((i,o,a,s)=>{let l=s!=null&&s.once?(...u)=>{e.current.delete(a),a(...u)}:a;e.current.set(a,{type:o,eventTarget:i,fn:l,options:s}),i.addEventListener(o,a,s)},[]),n=w.useCallback((i,o,a,s)=>{var l;let u=((l=e.current.get(a))===null||l===void 0?void 0:l.fn)||a;i.removeEventListener(o,u,s),e.current.delete(a)},[]),r=w.useCallback(()=>{e.current.forEach((i,o)=>{n(i.eventTarget,i.type,o,i.options)})},[n]);return w.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function Th(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=po(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}function gp(e,t){const n=w.useRef(!0),r=w.useRef(null);w.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),w.useEffect(()=>{n.current?n.current=!1:(!r.current||t.some((i,o)=>!Object.is(i,r[o])))&&e(),r.current=t},t)}function Xy(e,t){Fi(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function zd(e,t){let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function r7(e,t){let n=e;for(zd(n,t)&&(n=n.parentElement);n&&!zd(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function i7(e,t){const n=[];for(;e&&e!==document.documentElement;)zd(e,t)&&n.push(e),e=e.parentElement;return n}let o7=0;const Ec=new Map;function Yy(e){let[t,n]=w.useState();return Fi(()=>{if(!e)return;let r=Ec.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${o7++}`;n(i);let o=document.createElement("div");o.id=i,o.style.display="none",o.textContent=e,document.body.appendChild(o),r={refCount:0,element:o},Ec.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),Ec.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function Ic(e,t,n,r){let i=ir(n),o=n==null;w.useEffect(()=>{if(o||!e.current)return;let a=e.current;return a.addEventListener(t,i,r),()=>{a.removeEventListener(t,i,r)}},[e,t,r,o,i])}function a7(e,t){let n=mp(e,t,"left"),r=mp(e,t,"top"),i=t.offsetWidth,o=t.offsetHeight,a=e.scrollLeft,s=e.scrollTop,{borderTopWidth:l,borderLeftWidth:u}=getComputedStyle(e),c=e.scrollLeft+parseInt(u,10),d=e.scrollTop+parseInt(l,10),h=c+e.clientWidth,f=d+e.clientHeight;n<=a?a=n-parseInt(u,10):n+i>h&&(a+=n+i-h),r<=d?s=r-parseInt(l,10):r+o>f&&(s+=r+o-f),e.scrollLeft=a,e.scrollTop=s}function mp(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[r];break}t=t.offsetParent}return i}function s7(e,t){if(document.contains(e)){let a=document.scrollingElement||document.documentElement;if(window.getComputedStyle(a).overflow==="hidden"){let l=i7(e);for(let u of l)a7(u,e)}else{var n;let{left:l,top:u}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:c,top:d}=e.getBoundingClientRect();if(Math.abs(l-c)>1||Math.abs(u-d)>1){var r,i,o;t==null||(i=t.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(o=e.scrollIntoView)===null||o===void 0||o.call(e,{block:"nearest"})}}}}function Gd(e){return e.mozInputSource===0&&e.isTrusted?!0:Gy()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function l7(e){return!Gy()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function Uy(e,t){let n=w.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function Ta(e,t,n){let[r,i]=w.useState(e||t),o=w.useRef(e!==void 0),a=e!==void 0;w.useEffect(()=>{let u=o.current;u!==a&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}.`),o.current=a},[a]);let s=a?e:r,l=w.useCallback((u,...c)=>{let d=(h,...f)=>{n&&(Object.is(s,h)||n(h,...f)),a||(s=h)};typeof u=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((f,...g)=>{let m=u(a?s:f,...g);return d(m,...c),a?f:m})):(a||i(u),d(u,...c))},[a,s,n]);return[s,l]}let Ki="default",Zd="",dl=new WeakMap;function pp(e){if(zy()){if(Ki==="default"){const t=Ct(e);Zd=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Ki="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(dl.set(e,e.style.userSelect),e.style.userSelect="none")}function As(e){if(zy()){if(Ki!=="disabled")return;Ki="restoring",setTimeout(()=>{Zy(()=>{if(Ki==="restoring"){const t=Ct(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Zd||""),Zd="",Ki="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&dl.has(e)){let t=dl.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),dl.delete(e)}}const Jy=w.createContext({register:()=>{}});Jy.displayName="PressResponderContext";function u7(e,t){return t.get?t.get.call(e):t.value}function Ky(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function c7(e,t){var n=Ky(e,t,"get");return u7(e,n)}function d7(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function bp(e,t,n){var r=Ky(e,t,"set");return d7(e,r,n),n}function f7(e){let t=w.useContext(Jy);if(t){let{register:n,...r}=t;e=Lt(r,e),n()}return Xy(t,e.ref),e}var Fs=new WeakMap;class Ps{continuePropagation(){bp(this,Fs,!1)}get shouldStopPropagation(){return c7(this,Fs)}constructor(t,n,r){is(this,Fs,{writable:!0,value:void 0}),bp(this,Fs,!0),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey}}const vp=Symbol("linkClicked");function kh(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:o,isDisabled:a,isPressed:s,preventFocusOnPress:l,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:c,ref:d,...h}=f7(e),[f,g]=w.useState(!1),m=w.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:b,removeAllGlobalListeners:y}=n7(),v=ir((p,S)=>{let $=m.current;if(a||$.didFirePressStart)return!1;let _=!0;if($.isTriggeringEvent=!0,r){let A=new Ps("pressstart",S,p);r(A),_=A.shouldStopPropagation}return n&&n(!0),$.isTriggeringEvent=!1,$.didFirePressStart=!0,g(!0),_}),x=ir((p,S,$=!0)=>{let _=m.current;if(!_.didFirePressStart)return!1;_.ignoreClickAfterPress=!0,_.didFirePressStart=!1,_.isTriggeringEvent=!0;let A=!0;if(i){let k=new Ps("pressend",S,p);i(k),A=k.shouldStopPropagation}if(n&&n(!1),g(!1),t&&$&&!a){let k=new Ps("press",S,p);t(k),A&&(A=k.shouldStopPropagation)}return _.isTriggeringEvent=!1,A}),C=ir((p,S)=>{let $=m.current;if(a)return!1;if(o){$.isTriggeringEvent=!0;let _=new Ps("pressup",S,p);return o(_),$.isTriggeringEvent=!1,_.shouldStopPropagation}return!0}),D=ir(p=>{let S=m.current;S.isPressed&&S.target&&(S.isOverTarget&&S.pointerType!=null&&x(Un(S.target,p),S.pointerType,!1),S.isPressed=!1,S.isOverTarget=!1,S.activePointerId=null,S.pointerType=null,y(),c||As(S.target))}),I=ir(p=>{u&&D(p)}),T=w.useMemo(()=>{let p=m.current,S={onKeyDown(_){if(_c(_.nativeEvent,_.currentTarget)&&_.currentTarget.contains(_.target)){var A;xp(_.target,_.key)&&_.preventDefault();let k=!0;if(!p.isPressed&&!_.repeat){p.target=_.currentTarget,p.isPressed=!0,k=v(_,"keyboard");let R=_.currentTarget,M=P=>{_c(P,R)&&!P.repeat&&R.contains(P.target)&&p.target&&C(Un(p.target,P),"keyboard")};b(Ct(_.currentTarget),"keyup",jy(M,$),!0)}k&&_.stopPropagation(),_.metaKey&&Fa()&&((A=p.metaKeyEvents)===null||A===void 0||A.set(_.key,_.nativeEvent))}else _.key==="Meta"&&(p.metaKeyEvents=new Map)},onClick(_){if(!(_&&!_.currentTarget.contains(_.target))&&_&&_.button===0&&!p.isTriggeringEvent&&!Pa.isOpening){let A=!0;if(a&&_.preventDefault(),!p.ignoreClickAfterPress&&!p.ignoreEmulatedMouseEvents&&!p.isPressed&&(p.pointerType==="virtual"||Gd(_.nativeEvent))){!a&&!l&&Pr(_.currentTarget);let k=v(_,"virtual"),R=C(_,"virtual"),M=x(_,"virtual");A=k&&R&&M}p.ignoreEmulatedMouseEvents=!1,p.ignoreClickAfterPress=!1,A&&_.stopPropagation()}}},$=_=>{var A;if(p.isPressed&&p.target&&_c(_,p.target)){var k;xp(_.target,_.key)&&_.preventDefault();let M=_.target;x(Un(p.target,_),"keyboard",p.target.contains(M)),y(),_.key!=="Enter"&&Mh(p.target)&&p.target.contains(M)&&!_[vp]&&(_[vp]=!0,Pa(p.target,_,!1)),p.isPressed=!1,(k=p.metaKeyEvents)===null||k===void 0||k.delete(_.key)}else if(_.key==="Meta"&&(!((A=p.metaKeyEvents)===null||A===void 0)&&A.size)){var R;let M=p.metaKeyEvents;p.metaKeyEvents=void 0;for(let P of M.values())(R=p.target)===null||R===void 0||R.dispatchEvent(new KeyboardEvent("keyup",P))}};if(typeof PointerEvent<"u"){S.onPointerDown=R=>{if(R.button!==0||!R.currentTarget.contains(R.target))return;if(l7(R.nativeEvent)){p.pointerType="virtual";return}$c(R.currentTarget)&&R.preventDefault(),p.pointerType=R.pointerType;let M=!0;p.isPressed||(p.isPressed=!0,p.isOverTarget=!0,p.activePointerId=R.pointerId,p.target=R.currentTarget,!a&&!l&&Pr(R.currentTarget),c||pp(p.target),M=v(R,p.pointerType),b(Ct(R.currentTarget),"pointermove",_,!1),b(Ct(R.currentTarget),"pointerup",A,!1),b(Ct(R.currentTarget),"pointercancel",k,!1)),M&&R.stopPropagation()},S.onMouseDown=R=>{R.currentTarget.contains(R.target)&&R.button===0&&($c(R.currentTarget)&&R.preventDefault(),R.stopPropagation())},S.onPointerUp=R=>{!R.currentTarget.contains(R.target)||p.pointerType==="virtual"||R.button===0&&ji(R,R.currentTarget)&&C(R,p.pointerType||R.pointerType)};let _=R=>{R.pointerId===p.activePointerId&&(p.target&&ji(R,p.target)?!p.isOverTarget&&p.pointerType!=null&&(p.isOverTarget=!0,v(Un(p.target,R),p.pointerType)):p.target&&p.isOverTarget&&p.pointerType!=null&&(p.isOverTarget=!1,x(Un(p.target,R),p.pointerType,!1),I(R)))},A=R=>{R.pointerId===p.activePointerId&&p.isPressed&&R.button===0&&p.target&&(ji(R,p.target)&&p.pointerType!=null?x(Un(p.target,R),p.pointerType):p.isOverTarget&&p.pointerType!=null&&x(Un(p.target,R),p.pointerType,!1),p.isPressed=!1,p.isOverTarget=!1,p.activePointerId=null,p.pointerType=null,y(),c||As(p.target))},k=R=>{D(R)};S.onDragStart=R=>{R.currentTarget.contains(R.target)&&D(R)}}else{S.onMouseDown=k=>{if(k.button!==0||!k.currentTarget.contains(k.target))return;if($c(k.currentTarget)&&k.preventDefault(),p.ignoreEmulatedMouseEvents){k.stopPropagation();return}p.isPressed=!0,p.isOverTarget=!0,p.target=k.currentTarget,p.pointerType=Gd(k.nativeEvent)?"virtual":"mouse",!a&&!l&&Pr(k.currentTarget),v(k,p.pointerType)&&k.stopPropagation(),b(Ct(k.currentTarget),"mouseup",_,!1)},S.onMouseEnter=k=>{if(!k.currentTarget.contains(k.target))return;let R=!0;p.isPressed&&!p.ignoreEmulatedMouseEvents&&p.pointerType!=null&&(p.isOverTarget=!0,R=v(k,p.pointerType)),R&&k.stopPropagation()},S.onMouseLeave=k=>{if(!k.currentTarget.contains(k.target))return;let R=!0;p.isPressed&&!p.ignoreEmulatedMouseEvents&&p.pointerType!=null&&(p.isOverTarget=!1,R=x(k,p.pointerType,!1),I(k)),R&&k.stopPropagation()},S.onMouseUp=k=>{k.currentTarget.contains(k.target)&&!p.ignoreEmulatedMouseEvents&&k.button===0&&C(k,p.pointerType||"mouse")};let _=k=>{if(k.button===0){if(p.isPressed=!1,y(),p.ignoreEmulatedMouseEvents){p.ignoreEmulatedMouseEvents=!1;return}p.target&&ji(k,p.target)&&p.pointerType!=null?x(Un(p.target,k),p.pointerType):p.target&&p.isOverTarget&&p.pointerType!=null&&x(Un(p.target,k),p.pointerType,!1),p.isOverTarget=!1}};S.onTouchStart=k=>{if(!k.currentTarget.contains(k.target))return;let R=h7(k.nativeEvent);if(!R)return;p.activePointerId=R.identifier,p.ignoreEmulatedMouseEvents=!0,p.isOverTarget=!0,p.isPressed=!0,p.target=k.currentTarget,p.pointerType="touch",!a&&!l&&Pr(k.currentTarget),c||pp(p.target),v(k,p.pointerType)&&k.stopPropagation(),b(yn(k.currentTarget),"scroll",A,!0)},S.onTouchMove=k=>{if(!k.currentTarget.contains(k.target))return;if(!p.isPressed){k.stopPropagation();return}let R=yp(k.nativeEvent,p.activePointerId),M=!0;R&&ji(R,k.currentTarget)?!p.isOverTarget&&p.pointerType!=null&&(p.isOverTarget=!0,M=v(k,p.pointerType)):p.isOverTarget&&p.pointerType!=null&&(p.isOverTarget=!1,M=x(k,p.pointerType,!1),I(k)),M&&k.stopPropagation()},S.onTouchEnd=k=>{if(!k.currentTarget.contains(k.target))return;if(!p.isPressed){k.stopPropagation();return}let R=yp(k.nativeEvent,p.activePointerId),M=!0;R&&ji(R,k.currentTarget)&&p.pointerType!=null?(C(k,p.pointerType),M=x(k,p.pointerType)):p.isOverTarget&&p.pointerType!=null&&(M=x(k,p.pointerType,!1)),M&&k.stopPropagation(),p.isPressed=!1,p.activePointerId=null,p.isOverTarget=!1,p.ignoreEmulatedMouseEvents=!0,p.target&&!c&&As(p.target),y()},S.onTouchCancel=k=>{k.currentTarget.contains(k.target)&&(k.stopPropagation(),p.isPressed&&D(k))};let A=k=>{p.isPressed&&k.target.contains(p.target)&&D({currentTarget:p.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};S.onDragStart=k=>{k.currentTarget.contains(k.target)&&D(k)}}return S},[b,a,l,y,c,D,I,x,v,C]);return w.useEffect(()=>()=>{var p;c||As((p=m.current.target)!==null&&p!==void 0?p:void 0)},[c]),{isPressed:s||f,pressProps:Lt(h,T)}}function Mh(e){return e.tagName==="A"&&e.hasAttribute("href")}function _c(e,t){const{key:n,code:r}=e,i=t,o=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof yn(i).HTMLInputElement&&!qy(i,n)||i instanceof yn(i).HTMLTextAreaElement||i.isContentEditable)&&!((o==="link"||!o&&Mh(i))&&n!=="Enter")}function h7(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function yp(e,t){const n=e.changedTouches;for(let r=0;r<n.length;r++){const i=n[r];if(i.identifier===t)return i}return null}function Un(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function g7(e){let t=0,n=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?n=e.height/2:e.radiusY!==void 0&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function m7(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function ji(e,t){let n=t.getBoundingClientRect(),r=g7(e);return m7(n,r)}function $c(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function xp(e,t){return e instanceof HTMLInputElement?!qy(e,t):e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Mh(e)}const p7=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function qy(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":p7.has(e.type)}class b7{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function Qy(e){let t=w.useRef({isFocused:!1,observer:null});Fi(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=ir(r=>{e==null||e(r)});return w.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r.target,o=a=>{t.current.isFocused=!1,i.disabled&&n(new b7("blur",a)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var a;(a=t.current.observer)===null||a===void 0||a.disconnect();let s=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function ex(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const o=w.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),i&&i(!1),!0},[r,i]),a=Qy(o),s=w.useCallback(l=>{const u=Ct(l.target);l.target===l.currentTarget&&u.activeElement===l.target&&(n&&n(l),i&&i(!0),a(l))},[i,n,a]);return{focusProps:{onFocus:!t&&(n||i||r)?s:void 0,onBlur:!t&&(r||i)?o:void 0}}}let Io=null,Xd=new Set,ta=new Map,Ei=!1,Yd=!1;const v7={Tab:!0,Escape:!0};function Bh(e,t){for(let n of Xd)n(e,t)}function y7(e){return!(e.metaKey||!Fa()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Ul(e){Ei=!0,y7(e)&&(Io="keyboard",Bh("keyboard",e))}function un(e){Io="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Ei=!0,Bh("pointer",e))}function tx(e){Gd(e)&&(Ei=!0,Io="virtual")}function nx(e){e.target===window||e.target===document||(!Ei&&!Yd&&(Io="virtual",Bh("virtual",e)),Ei=!1,Yd=!1)}function rx(){Ei=!1,Yd=!0}function Ud(e){if(typeof window>"u"||ta.get(yn(e)))return;const t=yn(e),n=Ct(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Ei=!0,r.apply(this,arguments)},n.addEventListener("keydown",Ul,!0),n.addEventListener("keyup",Ul,!0),n.addEventListener("click",tx,!0),t.addEventListener("focus",nx,!0),t.addEventListener("blur",rx,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",un,!0),n.addEventListener("pointermove",un,!0),n.addEventListener("pointerup",un,!0)):(n.addEventListener("mousedown",un,!0),n.addEventListener("mousemove",un,!0),n.addEventListener("mouseup",un,!0)),t.addEventListener("beforeunload",()=>{ix(e)},{once:!0}),ta.set(t,{focus:r})}const ix=(e,t)=>{const n=yn(e),r=Ct(e);t&&r.removeEventListener("DOMContentLoaded",t),ta.has(n)&&(n.HTMLElement.prototype.focus=ta.get(n).focus,r.removeEventListener("keydown",Ul,!0),r.removeEventListener("keyup",Ul,!0),r.removeEventListener("click",tx,!0),n.removeEventListener("focus",nx,!0),n.removeEventListener("blur",rx,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",un,!0),r.removeEventListener("pointermove",un,!0),r.removeEventListener("pointerup",un,!0)):(r.removeEventListener("mousedown",un,!0),r.removeEventListener("mousemove",un,!0),r.removeEventListener("mouseup",un,!0)),ta.delete(n))};function x7(e){const t=Ct(e);let n;return t.readyState!=="loading"?Ud(e):(n=()=>{Ud(e)},t.addEventListener("DOMContentLoaded",n)),()=>ix(e,n)}typeof document<"u"&&x7();function ox(){return Io!=="pointer"}function ax(){return Io}const C7=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function w7(e,t,n){var r;const i=typeof window<"u"?yn(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,o=typeof window<"u"?yn(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,a=typeof window<"u"?yn(n==null?void 0:n.target).HTMLElement:HTMLElement,s=typeof window<"u"?yn(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof i&&!C7.has(n==null||(r=n.target)===null||r===void 0?void 0:r.type)||(n==null?void 0:n.target)instanceof o||(n==null?void 0:n.target)instanceof a&&(n==null?void 0:n.target.isContentEditable),!(e&&t==="keyboard"&&n instanceof s&&!v7[n.key])}function D7(e,t,n){Ud(),w.useEffect(()=>{let r=(i,o)=>{w7(!!(n!=null&&n.isTextInput),i,o)&&e(ox())};return Xd.add(r),()=>{Xd.delete(r)}},t)}function sx(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,o=w.useRef({isFocusWithin:!1}),a=w.useCallback(u=>{o.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(o.current.isFocusWithin=!1,n&&n(u),i&&i(!1))},[n,i,o]),s=Qy(a),l=w.useCallback(u=>{!o.current.isFocusWithin&&document.activeElement===u.target&&(r&&r(u),i&&i(!0),o.current.isFocusWithin=!0,s(u))},[r,i,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:a}}}function Cp(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function S7(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Cp(e.onKeyDown),onKeyUp:Cp(e.onKeyUp)}}}function lx(e){const t=Ct(e);if(ax()==="virtual"){let n=t.activeElement;Zy(()=>{t.activeElement===n&&e.isConnected&&Pr(e)})}else Pr(e)}function E7(e){const t=yn(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:o}=e.ownerDocument.defaultView;let{display:a,visibility:s}=o(e);i=a!=="none"&&s!=="hidden"&&s!=="collapse"}return i}function I7(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function ux(e,t){return e.nodeName!=="#comment"&&E7(e)&&I7(e,t)&&(!e.parentElement||ux(e.parentElement,e))}const Oh=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],_7=Oh.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Oh.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const $7=Oh.join(':not([hidden]):not([tabindex="-1"]),');function cx(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function Fo(e,t=!1){if(e!=null&&!t)try{lx(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function jo(e,t,n){let r=t!=null&&t.tabbable?$7:_7,i=Ct(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(o){var a;return!(t==null||(a=t.from)===null||a===void 0)&&a.contains(o)?NodeFilter.FILTER_REJECT:o.matches(r)&&ux(o)&&(!n||cx(o,n))&&(!(t!=null&&t.accept)||t.accept(o))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(i.currentNode=t.from),i}function dx(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:i,tabbable:o=t.tabbable,wrap:a=t.wrap,accept:s=t.accept}=n,l=i||Ct(r).activeElement,u=jo(r,{tabbable:o,accept:s});r.contains(l)&&(u.currentNode=l);let c=u.nextNode();return!c&&a&&(u.currentNode=r,c=u.nextNode()),c&&Fo(c,!0),c},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:i,tabbable:o=t.tabbable,wrap:a=t.wrap,accept:s=t.accept}=n,l=i||Ct(r).activeElement,u=jo(r,{tabbable:o,accept:s});if(r.contains(l))u.currentNode=l;else{let d=Rc(u);return d&&Fo(d,!0),d??null}let c=u.previousNode();if(!c&&a){u.currentNode=r;let d=Rc(u);if(!d)return null;c=d}return c&&Fo(c,!0),c??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:o=t.accept}=n,s=jo(r,{tabbable:i,accept:o}).nextNode();return s&&Fo(s,!0),s},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:o=t.accept}=n,a=jo(r,{tabbable:i,accept:o}),s=Rc(a);return s&&Fo(s,!0),s??null}}}function Rc(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class Nh{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let i=this.fastMap.get(n??null);if(!i)return;let o=new wp({scopeRef:t});i.addChild(o),o.parent=i,this.fastMap.set(t,o),r&&(o.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let o of this.traverse())o!==n&&n.nodeToRestore&&o.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&cx(o.nodeToRestore,n.scopeRef.current)&&(o.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(o=>r&&r.addChild(o))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new Nh;var r;for(let i of this.traverse())n.addTreeNode(i.scopeRef,(r=(t=i.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,i.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new wp({scopeRef:null}),this.fastMap.set(null,this.root)}}class wp{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}new Nh;function fx(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=w.useRef({isFocused:!1,isFocusVisible:t||ox()}),[o,a]=w.useState(!1),[s,l]=w.useState(()=>i.current.isFocused&&i.current.isFocusVisible),u=w.useCallback(()=>l(i.current.isFocused&&i.current.isFocusVisible),[]),c=w.useCallback(f=>{i.current.isFocused=f,a(f),u()},[u]);D7(f=>{i.current.isFocusVisible=f,u()},[],{isTextInput:n});let{focusProps:d}=ex({isDisabled:r,onFocusChange:c}),{focusWithinProps:h}=sx({isDisabled:!r,onFocusWithinChange:c});return{isFocused:o,isFocusVisible:s,focusProps:r?h:d}}let R7=w.createContext(null);function A7(e){let t=w.useContext(R7)||{};Xy(t,e);let{ref:n,...r}=t;return r}function F7(e,t){let{focusProps:n}=ex(e),{keyboardProps:r}=S7(e),i=Lt(n,r),o=A7(t),a=e.isDisabled?{}:o,s=w.useRef(e.autoFocus);return w.useEffect(()=>{s.current&&t.current&&lx(t.current),s.current=!1},[t]),{focusableProps:Lt({...i,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},a)}}const P7=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),T7=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function hx(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return P7.has(n.script)}let t=e.split("-")[0];return T7.has(t)}const k7=Symbol.for("react-aria.i18n.locale");function gx(){let e=typeof window<"u"&&window[k7]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:hx(e)?"rtl":"ltr"}}let Jd=gx(),Wo=new Set;function Dp(){Jd=gx();for(let e of Wo)e(Jd)}function mx(){let e=Hy(),[t,n]=w.useState(Jd);return w.useEffect(()=>(Wo.size===0&&window.addEventListener("languagechange",Dp),Wo.add(n),()=>{Wo.delete(n),Wo.size===0&&window.removeEventListener("languagechange",Dp)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const px=w.createContext(null);function Vh(e){let{locale:t,children:n}=e,r=mx(),i=w.useMemo(()=>t?{locale:t,direction:hx(t)?"rtl":"ltr"}:r,[r,t]);return w.createElement(px.Provider,{value:i},n)}function In(){let e=mx();return w.useContext(px)||e}const M7=Symbol.for("react-aria.i18n.locale"),B7=Symbol.for("react-aria.i18n.strings");let Wi;class Pi{getStringForLocale(t,n){let i=this.getStringsForLocale(n)[t];if(!i)throw new Error(`Could not find intl message ${t} in ${n} locale`);return i}getStringsForLocale(t){let n=this.strings[t];return n||(n=O7(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[M7];if(Wi===void 0){let i=window[B7];if(!i)return null;Wi={};for(let o in i)Wi[o]=new Pi({[n]:i[o]},n)}let r=Wi==null?void 0:Wi[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,n="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,r])=>r)),this.defaultLocale=n}}function O7(e,t,n="en-US"){if(t[e])return t[e];let r=N7(e);if(t[r])return t[r];for(let i in t)if(i.startsWith(r+"-"))return t[i];return t[n]}function N7(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const Sp=new Map,Ep=new Map;class bx{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let i=n["="+t];if(i)return typeof i=="function"?i():i;let o=this.locale+":"+r,a=Sp.get(o);a||(a=new Intl.PluralRules(this.locale,{type:r}),Sp.set(o,a));let s=a.select(t);return i=n[s]||n.other,typeof i=="function"?i():i}number(t){let n=Ep.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),Ep.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}const Ip=new WeakMap;function V7(e){let t=Ip.get(e);return t||(t=new Pi(e),Ip.set(e,t)),t}function L7(e,t){return t&&Pi.getGlobalDictionaryForPackage(t)||V7(e)}function as(e,t){let{locale:n}=In(),r=L7(e,t);return w.useMemo(()=>new bx(n,r),[n,r])}function Hr(e){e=Uy(e??{},H7);let{locale:t}=In();return w.useMemo(()=>new Aa(t,e),[t,e])}function H7(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n)if(t[i]!==e[i])return!1;return!0}function j7(e,t){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:o,onPressEnd:a,onPressUp:s,onPressChange:l,preventFocusOnPress:u,allowFocusWhenDisabled:c,onClick:d,href:h,target:f,rel:g,type:m="button"}=e,b;n==="button"?b={type:m,disabled:r}:b={role:"button",tabIndex:r?void 0:0,href:n==="a"&&r?void 0:h,target:n==="a"?f:void 0,type:n==="input"?m:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?g:void 0};let{pressProps:y,isPressed:v}=kh({onPressStart:o,onPressEnd:a,onPressChange:l,onPress:i,onPressUp:s,isDisabled:r,preventFocusOnPress:u,ref:t}),{focusableProps:x}=F7(e,t);c&&(x.tabIndex=r?-1:x.tabIndex);let C=Lt(x,y,Fh(e,{labelable:!0}));return{isPressed:v,buttonProps:Lt(b,C,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:D=>{d&&(d(D),console.warn("onClick is deprecated, please use onPress"))}})}}var vx={};vx={dateRange:e=>`${e.startDate} إلى ${e.endDate}`,dateSelected:e=>`${e.date} المحدد`,finishRangeSelectionPrompt:"انقر لإنهاء عملية تحديد نطاق التاريخ",maximumDate:"آخر تاريخ متاح",minimumDate:"أول تاريخ متاح",next:"التالي",previous:"السابق",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.dateRange}`,startRangeSelectionPrompt:"انقر لبدء عملية تحديد نطاق التاريخ",todayDate:e=>`اليوم، ${e.date}`,todayDateSelected:e=>`اليوم، ${e.date} محدد`};var yx={};yx={dateRange:e=>`${e.startDate} до ${e.endDate}`,dateSelected:e=>`Избрано е ${e.date}`,finishRangeSelectionPrompt:"Натиснете, за да довършите избора на времеви интервал",maximumDate:"Последна налична дата",minimumDate:"Първа налична дата",next:"Напред",previous:"Назад",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натиснете, за да пристъпите към избора на времеви интервал",todayDate:e=>`Днес, ${e.date}`,todayDateSelected:e=>`Днес, ${e.date} са избрани`};var xx={};xx={dateRange:e=>`${e.startDate} až ${e.endDate}`,dateSelected:e=>`Vybráno ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výběr rozsahu dat",maximumDate:"Poslední dostupné datum",minimumDate:"První dostupné datum",next:"Další",previous:"Předchozí",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím zahájíte výběr rozsahu dat",todayDate:e=>`Dnes, ${e.date}`,todayDateSelected:e=>`Dnes, vybráno ${e.date}`};var Cx={};Cx={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klik for at fuldføre valg af datoområde",maximumDate:"Sidste ledige dato",minimumDate:"Første ledige dato",next:"Næste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.dateRange}`,startRangeSelectionPrompt:"Klik for at starte valg af datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var wx={};wx={dateRange:e=>`${e.startDate} bis ${e.endDate}`,dateSelected:e=>`${e.date} ausgewählt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:"Letztes verfügbares Datum",minimumDate:"Erstes verfügbares Datum",next:"Weiter",previous:"Zurück",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:e=>`Heute, ${e.date}`,todayDateSelected:e=>`Heute, ${e.date} ausgewählt`};var Dx={};Dx={dateRange:e=>`${e.startDate} έως ${e.endDate}`,dateSelected:e=>`Επιλέχθηκε ${e.date}`,finishRangeSelectionPrompt:"Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών",maximumDate:"Τελευταία διαθέσιμη ημερομηνία",minimumDate:"Πρώτη διαθέσιμη ημερομηνία",next:"Επόμενο",previous:"Προηγούμενο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.dateRange}`,startRangeSelectionPrompt:"Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών",todayDate:e=>`Σήμερα, ${e.date}`,todayDateSelected:e=>`Σήμερα, επιλέχτηκε ${e.date}`};var Sx={};Sx={previous:"Previous",next:"Next",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.dateRange}`,todayDate:e=>`Today, ${e.date}`,todayDateSelected:e=>`Today, ${e.date} selected`,dateSelected:e=>`${e.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:e=>`${e.startDate} to ${e.endDate}`};var Ex={};Ex={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:"Última fecha disponible",minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo seleccionado: ${e.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:e=>`Hoy, ${e.date}`,todayDateSelected:e=>`Hoy, ${e.date} seleccionado`};var Ix={};Ix={dateRange:e=>`${e.startDate} kuni ${e.endDate}`,dateSelected:e=>`${e.date} valitud`,finishRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimise lõpetamiseks",maximumDate:"Viimane saadaolev kuupäev",minimumDate:"Esimene saadaolev kuupäev",next:"Järgmine",previous:"Eelmine",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.dateRange}`,startRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimiseks",todayDate:e=>`Täna, ${e.date}`,todayDateSelected:e=>`Täna, ${e.date} valitud`};var _x={};_x={dateRange:e=>`${e.startDate} – ${e.endDate}`,dateSelected:e=>`${e.date} valittu`,finishRangeSelectionPrompt:"Lopeta päivämääräalueen valinta napsauttamalla tätä.",maximumDate:"Viimeinen varattavissa oleva päivämäärä",minimumDate:"Ensimmäinen varattavissa oleva päivämäärä",next:"Seuraava",previous:"Edellinen",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.dateRange}`,startRangeSelectionPrompt:"Aloita päivämääräalueen valinta napsauttamalla tätä.",todayDate:e=>`Tänään, ${e.date}`,todayDateSelected:e=>`Tänään, ${e.date} valittu`};var $x={};$x={dateRange:e=>`${e.startDate} à ${e.endDate}`,dateSelected:e=>`${e.date} sélectionné`,finishRangeSelectionPrompt:"Cliquer pour finir de sélectionner la plage de dates",maximumDate:"Dernière date disponible",minimumDate:"Première date disponible",next:"Suivant",previous:"Précédent",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.dateRange}`,startRangeSelectionPrompt:"Cliquer pour commencer à sélectionner la plage de dates",todayDate:e=>`Aujourd'hui, ${e.date}`,todayDateSelected:e=>`Aujourd’hui, ${e.date} sélectionné`};var Rx={};Rx={dateRange:e=>`${e.startDate} עד ${e.endDate}`,dateSelected:e=>`${e.date} נבחר`,finishRangeSelectionPrompt:"חץ כדי לסיים את בחירת טווח התאריכים",maximumDate:"תאריך פנוי אחרון",minimumDate:"תאריך פנוי ראשון",next:"הבא",previous:"הקודם",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.dateRange}`,startRangeSelectionPrompt:"לחץ כדי להתחיל בבחירת טווח התאריכים",todayDate:e=>`היום, ${e.date}`,todayDateSelected:e=>`היום, ${e.date} נבחר`};var Ax={};Ax={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} odabran`,finishRangeSelectionPrompt:"Kliknite da dovršite raspon odabranih datuma",maximumDate:"Posljednji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sljedeći",previous:"Prethodni",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete raspon odabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, odabran ${e.date}`};var Fx={};Fx={dateRange:e=>`${e.startDate}–${e.endDate}`,dateSelected:e=>`${e.date} kiválasztva`,finishRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének befejezéséhez",maximumDate:"Utolsó elérhető dátum",minimumDate:"Az első elérhető dátum",next:"Következő",previous:"Előző",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.dateRange}`,startRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének indításához",todayDate:e=>`Ma, ${e.date}`,todayDateSelected:e=>`Ma, ${e.date} kijelölve`};var Px={};Px={dateRange:e=>`Da ${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selezionata`,finishRangeSelectionPrompt:"Fai clic per completare la selezione dell’intervallo di date",maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: ${e.dateRange}`,startRangeSelectionPrompt:"Fai clic per selezionare l’intervallo di date",todayDate:e=>`Oggi, ${e.date}`,todayDateSelected:e=>`Oggi, ${e.date} selezionata`};var Tx={};Tx={dateRange:e=>`${e.startDate} から ${e.endDate}`,dateSelected:e=>`${e.date} を選択`,finishRangeSelectionPrompt:"クリックして日付範囲の選択を終了",maximumDate:"最終利用可能日",minimumDate:"最初の利用可能日",next:"次へ",previous:"前へ",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.dateRange}`,startRangeSelectionPrompt:"クリックして日付範囲の選択を開始",todayDate:e=>`本日、${e.date}`,todayDateSelected:e=>`本日、${e.date} を選択`};var kx={};kx={dateRange:e=>`${e.startDate} ~ ${e.endDate}`,dateSelected:e=>`${e.date} 선택됨`,finishRangeSelectionPrompt:"날짜 범위 선택을 완료하려면 클릭하십시오.",maximumDate:"마지막으로 사용 가능한 일자",minimumDate:"처음으로 사용 가능한 일자",next:"다음",previous:"이전",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.dateRange}`,startRangeSelectionPrompt:"날짜 범위 선택을 시작하려면 클릭하십시오.",todayDate:e=>`오늘, ${e.date}`,todayDateSelected:e=>`오늘, ${e.date} 선택됨`};var Mx={};Mx={dateRange:e=>`Nuo ${e.startDate} iki ${e.endDate}`,dateSelected:e=>`Pasirinkta ${e.date}`,finishRangeSelectionPrompt:"Spustelėkite, kad baigtumėte pasirinkti datų intervalą",maximumDate:"Paskutinė galima data",minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: ${e.dateRange}`,startRangeSelectionPrompt:"Spustelėkite, kad pradėtumėte pasirinkti datų intervalą",todayDate:e=>`Šiandien, ${e.date}`,todayDateSelected:e=>`Šiandien, pasirinkta ${e.date}`};var Bx={};Bx={dateRange:e=>`No ${e.startDate} līdz ${e.endDate}`,dateSelected:e=>`Atlasīts: ${e.date}`,finishRangeSelectionPrompt:"Noklikšķiniet, lai pabeigtu datumu diapazona atlasi",maximumDate:"Pēdējais pieejamais datums",minimumDate:"Pirmais pieejamais datums",next:"Tālāk",previous:"Atpakaļ",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: ${e.dateRange}`,startRangeSelectionPrompt:"Noklikšķiniet, lai sāktu datumu diapazona atlasi",todayDate:e=>`Šodien, ${e.date}`,todayDateSelected:e=>`Atlasīta šodiena, ${e.date}`};var Ox={};Ox={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klikk for å fullføre valg av datoområde",maximumDate:"Siste tilgjengelige dato",minimumDate:"Første tilgjengelige dato",next:"Neste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.dateRange}`,startRangeSelectionPrompt:"Klikk for å starte valg av datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var Nx={};Nx={dateRange:e=>`${e.startDate} tot ${e.endDate}`,dateSelected:e=>`${e.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:e=>`Vandaag, ${e.date}`,todayDateSelected:e=>`Vandaag, ${e.date} geselecteerd`};var Vx={};Vx={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`Wybrano ${e.date}`,finishRangeSelectionPrompt:"Kliknij, aby zakończyć wybór zakresu dat",maximumDate:"Ostatnia dostępna data",minimumDate:"Pierwsza dostępna data",next:"Dalej",previous:"Wstecz",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknij, aby rozpocząć wybór zakresu dat",todayDate:e=>`Dzisiaj, ${e.date}`,todayDateSelected:e=>`Dzisiaj wybrano ${e.date}`};var Lx={};Lx={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para concluir a seleção do intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para iniciar a seleção do intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var Hx={};Hx={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para começar a selecionar o intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var jx={};jx={dateRange:e=>`De la ${e.startDate} până la ${e.endDate}`,dateSelected:e=>`${e.date} selectată`,finishRangeSelectionPrompt:"Apăsaţi pentru a finaliza selecţia razei pentru dată",maximumDate:"Ultima dată disponibilă",minimumDate:"Prima dată disponibilă",next:"Următorul",previous:"Înainte",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: ${e.dateRange}`,startRangeSelectionPrompt:"Apăsaţi pentru a începe selecţia razei pentru dată",todayDate:e=>`Astăzi, ${e.date}`,todayDateSelected:e=>`Azi, ${e.date} selectată`};var Wx={};Wx={dateRange:e=>`С ${e.startDate} по ${e.endDate}`,dateSelected:e=>`Выбрано ${e.date}`,finishRangeSelectionPrompt:"Щелкните, чтобы завершить выбор диапазона дат",maximumDate:"Последняя доступная дата",minimumDate:"Первая доступная дата",next:"Далее",previous:"Назад",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Щелкните, чтобы начать выбор диапазона дат",todayDate:e=>`Сегодня, ${e.date}`,todayDateSelected:e=>`Сегодня, выбрано ${e.date}`};var zx={};zx={dateRange:e=>`Od ${e.startDate} do ${e.endDate}`,dateSelected:e=>`Vybratý dátum ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výber rozsahu dátumov",maximumDate:"Posledný dostupný dátum",minimumDate:"Prvý dostupný dátum",next:"Nasledujúce",previous:"Predchádzajúce",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím spustíte výber rozsahu dátumov",todayDate:e=>`Dnes ${e.date}`,todayDateSelected:e=>`Vybratý dnešný dátum ${e.date}`};var Gx={};Gx={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izbrano`,finishRangeSelectionPrompt:"Kliknite za dokončanje izbire datumskega obsega",maximumDate:"Zadnji razpoložljivi datum",minimumDate:"Prvi razpoložljivi datum",next:"Naprej",previous:"Nazaj",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite za začetek izbire datumskega obsega",todayDate:e=>`Danes, ${e.date}`,todayDateSelected:e=>`Danes, ${e.date} izbrano`};var Zx={};Zx={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izabran`,finishRangeSelectionPrompt:"Kliknite da dovršite opseg izabranih datuma",maximumDate:"Zadnji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sledeći",previous:"Prethodni",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani period: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete opseg izabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, izabran ${e.date}`};var Xx={};Xx={dateRange:e=>`${e.startDate} till ${e.endDate}`,dateSelected:e=>`${e.date} har valts`,finishRangeSelectionPrompt:"Klicka för att avsluta val av datumintervall",maximumDate:"Sista tillgängliga datum",minimumDate:"Första tillgängliga datum",next:"Nästa",previous:"Föregående",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.dateRange}`,startRangeSelectionPrompt:"Klicka för att välja datumintervall",todayDate:e=>`Idag, ${e.date}`,todayDateSelected:e=>`Idag, ${e.date} har valts`};var Yx={};Yx={dateRange:e=>`${e.startDate} - ${e.endDate}`,dateSelected:e=>`${e.date} seçildi`,finishRangeSelectionPrompt:"Tarih aralığı seçimini tamamlamak için tıklayın",maximumDate:"Son müsait tarih",minimumDate:"İlk müsait tarih",next:"Sonraki",previous:"Önceki",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.dateRange}`,startRangeSelectionPrompt:"Tarih aralığı seçimini başlatmak için tıklayın",todayDate:e=>`Bugün, ${e.date}`,todayDateSelected:e=>`Bugün, ${e.date} seçildi`};var Ux={};Ux={dateRange:e=>`${e.startDate} — ${e.endDate}`,dateSelected:e=>`Вибрано ${e.date}`,finishRangeSelectionPrompt:"Натисніть, щоб завершити вибір діапазону дат",maximumDate:"Остання доступна дата",minimumDate:"Перша доступна дата",next:"Наступний",previous:"Попередній",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натисніть, щоб почати вибір діапазону дат",todayDate:e=>`Сьогодні, ${e.date}`,todayDateSelected:e=>`Сьогодні, вибрано ${e.date}`};var Jx={};Jx={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已选择 ${e.date}`,finishRangeSelectionPrompt:"单击以完成选择日期范围",maximumDate:"最后一个可用日期",minimumDate:"第一个可用日期",next:"下一页",previous:"上一页",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.dateRange}`,startRangeSelectionPrompt:"单击以开始选择日期范围",todayDate:e=>`今天,即 ${e.date}`,todayDateSelected:e=>`已选择今天,即 ${e.date}`};var Kx={};Kx={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已選取 ${e.date}`,finishRangeSelectionPrompt:"按一下以完成選取日期範圍",maximumDate:"最後一個可用日期",minimumDate:"第一個可用日期",next:"下一頁",previous:"上一頁",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.dateRange}`,startRangeSelectionPrompt:"按一下以開始選取日期範圍",todayDate:e=>`今天,${e.date}`,todayDateSelected:e=>`已選取今天,${e.date}`};var ss={};ss={"ar-AE":vx,"bg-BG":yx,"cs-CZ":xx,"da-DK":Cx,"de-DE":wx,"el-GR":Dx,"en-US":Sx,"es-ES":Ex,"et-EE":Ix,"fi-FI":_x,"fr-FR":$x,"he-IL":Rx,"hr-HR":Ax,"hu-HU":Fx,"it-IT":Px,"ja-JP":Tx,"ko-KR":kx,"lt-LT":Mx,"lv-LV":Bx,"nb-NO":Ox,"nl-NL":Nx,"pl-PL":Vx,"pt-BR":Lx,"pt-PT":Hx,"ro-RO":jx,"ru-RU":Wx,"sk-SK":zx,"sl-SI":Gx,"sr-SP":Zx,"sv-SE":Xx,"tr-TR":Yx,"uk-UA":Ux,"zh-CN":Jx,"zh-TW":Kx};function qx(e){return e&&e.__esModule?e.default:e}const Lh=new WeakMap;function ka(e){return(e==null?void 0:e.calendar.identifier)==="gregory"&&e.era==="BC"?"short":void 0}function W7(e){let t=as(qx(ss),"@react-aria/calendar"),n,r;"highlightedRange"in e?{start:n,end:r}=e.highlightedRange||{}:n=r=e.value;let i=Hr({weekday:"long",month:"long",year:"numeric",day:"numeric",era:ka(n)||ka(r),timeZone:e.timeZone}),o="anchorDate"in e?e.anchorDate:null;return w.useMemo(()=>{if(!o&&n&&r)if(rt(n,r)){let a=i.format(n.toDate(e.timeZone));return t.format("selectedDateDescription",{date:a})}else{let a=qd(i,t,n,r,e.timeZone);return t.format("selectedRangeDescription",{dateRange:a})}return""},[n,r,o,e.timeZone,t,i])}function Kd(e,t,n,r){let i=as(qx(ss),"@react-aria/calendar"),o=ka(e)||ka(t),a=Hr({month:"long",year:"numeric",era:o,calendar:e.calendar.identifier,timeZone:n}),s=Hr({month:"long",year:"numeric",day:"numeric",era:o,calendar:e.calendar.identifier,timeZone:n});return w.useMemo(()=>{if(rt(e,rs(e))){if(rt(t,Md(e)))return a.format(e.toDate(n));if(rt(t,Md(t)))return r?qd(a,i,e,t,n):a.formatRange(e.toDate(n),t.toDate(n))}return r?qd(s,i,e,t,n):s.formatRange(e.toDate(n),t.toDate(n))},[e,t,a,s,i,n,r])}function qd(e,t,n,r,i){let o=e.formatRangeToParts(n.toDate(i),r.toDate(i)),a=-1;for(let u=0;u<o.length;u++){let c=o[u];if(c.source==="shared"&&c.type==="literal")a=u;else if(c.source==="endRange")break}let s="",l="";for(let u=0;u<o.length;u++)u<a?s+=o[u].value:u>a&&(l+=o[u].value);return t.format("dateRange",{startDate:s,endDate:l})}const Qx=7e3;let Ac=null;function _p(e,t="assertive",n=Qx){Ac||(Ac=new z7),Ac.announce(e,t,n)}class z7{createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",r=Qx){if(!this.node)return;let i=document.createElement("div");i.textContent=t,n==="assertive"?this.assertiveLog.appendChild(i):this.politeLog.appendChild(i),t!==""&&setTimeout(()=>{i.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&(this.politeLog.innerHTML=""))}constructor(){this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node)}}function G7(e){return e&&e.__esModule?e.default:e}function e4(e,t){let n=as(G7(ss),"@react-aria/calendar"),r=Fh(e),i=Kd(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),o=Kd(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);gp(()=>{t.isFocused||_p(o)},[o]);let a=W7(t);gp(()=>{a&&_p(a,"polite",4e3)},[a]);let s=jd([!!e.errorMessage,e.isInvalid,e.validationState]);Lh.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:s,selectedDateDescription:a});let[l,u]=w.useState(!1),c=e.isDisabled||t.isNextVisibleRangeInvalid();c&&l&&(u(!1),t.setFocused(!0));let[d,h]=w.useState(!1),f=e.isDisabled||t.isPreviousVisibleRangeInvalid();f&&d&&(h(!1),t.setFocused(!0));let g=Th({id:e.id,"aria-label":[e["aria-label"],o].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:Lt(r,g,{role:"application","aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":n.format("next"),isDisabled:c,onFocusChange:u},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":n.format("previous"),isDisabled:f,onFocusChange:h},errorMessageProps:{id:s},title:i}}function t4(e,t){return e4(e,t)}function Z7(e,t,n){let r=e4(e,t),i=w.useRef(!1),o=w.useRef(typeof window<"u"?window:null);return Ic(o,"pointerdown",s=>{i.current=s.width===0&&s.height===0}),Ic(o,"pointerup",s=>{if(i.current){i.current=!1;return}if(t.setDragging(!1),!t.anchorDate)return;let l=s.target;n.current&&n.current.contains(document.activeElement)&&(!n.current.contains(l)||!l.closest('button, [role="button"]'))&&t.selectFocusedDate()}),r.calendarProps.onBlur=s=>{n.current&&(!s.relatedTarget||!n.current.contains(s.relatedTarget))&&t.anchorDate&&t.selectFocusedDate()},Ic(n,"touchmove",s=>{t.isDragging&&s.preventDefault()},{passive:!1,capture:!0}),r}function n4(e,t){let{startDate:n=t.visibleRange.start,endDate:r=t.visibleRange.end}=e,{direction:i}=In(),o=f=>{switch(f.key){case"Enter":case" ":f.preventDefault(),t.selectFocusedDate();break;case"PageUp":f.preventDefault(),f.stopPropagation(),t.focusPreviousSection(f.shiftKey);break;case"PageDown":f.preventDefault(),f.stopPropagation(),t.focusNextSection(f.shiftKey);break;case"End":f.preventDefault(),f.stopPropagation(),t.focusSectionEnd();break;case"Home":f.preventDefault(),f.stopPropagation(),t.focusSectionStart();break;case"ArrowLeft":f.preventDefault(),f.stopPropagation(),i==="rtl"?t.focusNextDay():t.focusPreviousDay();break;case"ArrowUp":f.preventDefault(),f.stopPropagation(),t.focusPreviousRow();break;case"ArrowRight":f.preventDefault(),f.stopPropagation(),i==="rtl"?t.focusPreviousDay():t.focusNextDay();break;case"ArrowDown":f.preventDefault(),f.stopPropagation(),t.focusNextRow();break;case"Escape":"setAnchorDate"in t&&(f.preventDefault(),t.setAnchorDate(null));break}},a=Kd(n,r,t.timeZone,!0),{ariaLabel:s,ariaLabelledBy:l}=Lh.get(t),u=Th({"aria-label":[s,a].filter(Boolean).join(", "),"aria-labelledby":l}),c=Hr({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:d}=In(),h=w.useMemo(()=>{let f=_a(vh(t.timeZone),d);return[...new Array(7).keys()].map(g=>{let b=f.add({days:g}).toDate(t.timeZone);return c.format(b)})},[d,t.timeZone,c]);return{gridProps:Lt(u,{role:"grid","aria-readonly":t.isReadOnly||null,"aria-disabled":t.isDisabled||null,"aria-multiselectable":"highlightedRange"in t||void 0,onKeyDown:o,onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:h}}function X7(e){return e&&e.__esModule?e.default:e}function Y7(e,t,n){let{date:r,isDisabled:i}=e,{errorMessageId:o,selectedDateDescription:a}=Lh.get(t),s=as(X7(ss),"@react-aria/calendar"),l=Hr({weekday:"long",day:"numeric",month:"long",year:"numeric",era:ka(r),timeZone:t.timeZone}),u=t.isSelected(r),c=t.isCellFocused(r);i=i||t.isCellDisabled(r);let d=t.isCellUnavailable(r),h=!i&&!d,f=t.isValueInvalid&&("highlightedRange"in t?!t.anchorDate&&t.highlightedRange&&r.compare(t.highlightedRange.start)>=0&&r.compare(t.highlightedRange.end)<=0:t.value&&rt(t.value,r));f&&(u=!0),r=Uy(r,kd);let g=w.useMemo(()=>r.toDate(t.timeZone),[r,t.timeZone]),m=LA(r,t.timeZone),b=w.useMemo(()=>{let _="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(rt(r,t.value.start)||rt(r,t.value.end))&&(_=a+", "),_+=l.format(g),m?_=s.format(u?"todayDateSelected":"todayDate",{date:_}):u&&(_=s.format("dateSelected",{date:_})),t.minValue&&rt(r,t.minValue)?_+=", "+s.format("minimumDate"):t.maxValue&&rt(r,t.maxValue)&&(_+=", "+s.format("maximumDate")),_},[l,g,s,u,m,r,t,a]),y="";"anchorDate"in t&&c&&!t.isReadOnly&&h&&(t.anchorDate?y=s.format("finishRangeSelectionPrompt"):y=s.format("startRangeSelectionPrompt"));let v=Yy(y),x=w.useRef(!1),C=w.useRef(!1),D=w.useRef(null),{pressProps:I,isPressed:T}=kh({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!h||t.isReadOnly,onPressStart(_){if(t.isReadOnly){t.setFocusedDate(r);return}if("highlightedRange"in t&&!t.anchorDate&&(_.pointerType==="mouse"||_.pointerType==="touch")){if(t.highlightedRange&&!f){if(rt(r,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(r),t.setDragging(!0),C.current=!0;return}else if(rt(r,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(r),t.setDragging(!0),C.current=!0;return}}let A=()=>{t.setDragging(!0),D.current=null,t.selectDate(r),t.setFocusedDate(r),x.current=!0};_.pointerType==="touch"?D.current=setTimeout(A,200):A()}},onPressEnd(){C.current=!1,x.current=!1,clearTimeout(D.current),D.current=null},onPress(){!("anchorDate"in t)&&!t.isReadOnly&&(t.selectDate(r),t.setFocusedDate(r))},onPressUp(_){if(!t.isReadOnly&&("anchorDate"in t&&D.current&&(t.selectDate(r),t.setFocusedDate(r)),"anchorDate"in t))if(C.current)t.setAnchorDate(r);else if(t.anchorDate&&!x.current)t.selectDate(r),t.setFocusedDate(r);else if(_.pointerType==="keyboard"&&!t.anchorDate){t.selectDate(r);let A=r.add({days:1});t.isInvalid(A)&&(A=r.subtract({days:1})),t.isInvalid(A)||t.setFocusedDate(A)}else _.pointerType==="virtual"&&(t.selectDate(r),t.setFocusedDate(r))}}),p=null;i||(p=rt(r,t.focusedDate)?0:-1),w.useEffect(()=>{c&&n.current&&(Pr(n.current),ax()!=="pointer"&&document.activeElement===n.current&&s7(n.current,{containingElement:r7(n.current)}))},[c,n]);let S=Hr({day:"numeric",timeZone:t.timeZone,calendar:r.calendar.identifier}),$=w.useMemo(()=>S.formatToParts(g).find(_=>_.type==="day").value,[S,g]);return{cellProps:{role:"gridcell","aria-disabled":!h||null,"aria-selected":u||null,"aria-invalid":f||null},buttonProps:Lt(I,{onFocus(){i||t.setFocusedDate(r)},tabIndex:p,role:"button","aria-disabled":!h||null,"aria-label":b,"aria-invalid":f||null,"aria-describedby":[f?o:null,v["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(_){"highlightDate"in t&&(_.pointerType!=="touch"||t.isDragging)&&h&&t.highlightDate(r)},onPointerDown(_){"releasePointerCapture"in _.target&&_.target.releasePointerCapture(_.pointerId)},onContextMenu(_){_.preventDefault()}}),isPressed:T,isFocused:c,isSelected:u,isDisabled:i,isUnavailable:d,isOutsideVisibleRange:r.compare(t.visibleRange.start)<0||r.compare(t.visibleRange.end)>0,isInvalid:f,formattedDate:$}}const Tu={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},r4={...Tu,customError:!0,valid:!1},ai={isInvalid:!1,validationDetails:Tu,validationErrors:[]},U7=w.createContext({}),Jl="__formValidationState"+Date.now();function J7(e){if(e[Jl]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}=e[Jl];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}}return K7(e)}function K7(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:o,validate:a,validationBehavior:s="aria"}=e;n&&(t||(t=n==="invalid"));let l=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:r4}:null,u=w.useMemo(()=>$p(q7(a,i)),[a,i]);o!=null&&o.validationDetails.valid&&(o=null);let c=w.useContext(U7),d=w.useMemo(()=>r?Array.isArray(r)?r.flatMap($=>Qd(c[$])):Qd(c[r]):[],[c,r]),[h,f]=w.useState(c),[g,m]=w.useState(!1);c!==h&&(f(c),m(!1));let b=w.useMemo(()=>$p(g?[]:d),[g,d]),y=w.useRef(ai),[v,x]=w.useState(ai),C=w.useRef(ai),D=()=>{if(!I)return;T(!1);let $=u||o||y.current;Fc($,C.current)||(C.current=$,x($))},[I,T]=w.useState(!1);return w.useEffect(D),{realtimeValidation:l||b||u||o||ai,displayValidation:s==="native"?l||b||v:l||b||u||o||v,updateValidation($){s==="aria"&&!Fc(v,$)?x($):y.current=$},resetValidation(){let $=ai;Fc($,C.current)||(C.current=$,x($)),s==="native"&&T(!1),m(!0)},commitValidation(){s==="native"&&T(!0),m(!0)}}}function Qd(e){return e?Array.isArray(e)?e:[e]:[]}function q7(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return Qd(n)}return[]}function $p(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:r4}:null}function Fc(e,t){return e===t?!0:e&&t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}function Kl(...e){let t=new Set,n=!1,r={...Tu};for(let a of e){var i,o;for(let s of a.validationErrors)t.add(s);n||(n=a.isInvalid);for(let s in r)(i=r)[o=s]||(i[o]=a.validationDetails[s])}return r.valid=!n,{isInvalid:n,validationErrors:[...t],validationDetails:r}}function Q7(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:o="label"}=e;t=po(t);let a=po(),s={};n?(r=r?`${a} ${r}`:a,s={id:a,htmlFor:o==="label"?t:void 0}):!r&&!i&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=Th({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:s,fieldProps:l}}function eP(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:o,fieldProps:a}=Q7(e),s=jd([!!t,!!n,r,i]),l=jd([!!t,!!n,r,i]);return a=Lt(a,{"aria-describedby":[s,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:a,descriptionProps:{id:s},errorMessageProps:{id:l}}}var i4={};i4={calendar:"التقويم",day:"يوم",dayPeriod:"ص/م",endDate:"تاريخ الانتهاء",era:"العصر",hour:"الساعات",minute:"الدقائق",month:"الشهر",second:"الثواني",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.startDate} إلى ${e.endDate}`,selectedTimeDescription:e=>`الوقت المحدد: ${e.time}`,startDate:"تاريخ البدء",timeZoneName:"التوقيت",weekday:"اليوم",year:"السنة"};var o4={};o4={calendar:"Календар",day:"ден",dayPeriod:"пр.об./сл.об.",endDate:"Крайна дата",era:"ера",hour:"час",minute:"минута",month:"месец",second:"секунда",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.startDate} до ${e.endDate}`,selectedTimeDescription:e=>`Избрано време: ${e.time}`,startDate:"Начална дата",timeZoneName:"часова зона",weekday:"ден от седмицата",year:"година"};var a4={};a4={calendar:"Kalendář",day:"den",dayPeriod:"část dne",endDate:"Konečné datum",era:"letopočet",hour:"hodina",minute:"minuta",month:"měsíc",second:"sekunda",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.startDate} až ${e.endDate}`,selectedTimeDescription:e=>`Vybraný čas: ${e.time}`,startDate:"Počáteční datum",timeZoneName:"časové pásmo",weekday:"den v týdnu",year:"rok"};var s4={};s4={calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"æra",hour:"time",minute:"minut",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"år"};var l4={};l4={calendar:"Kalender",day:"Tag",dayPeriod:"Tageshälfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgewählte Zeit: ${e.time}`,startDate:"Anfangsdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"};var u4={};u4={calendar:"Ημερολόγιο",day:"ημέρα",dayPeriod:"π.μ./μ.μ.",endDate:"Ημερομηνία λήξης",era:"περίοδος",hour:"ώρα",minute:"λεπτό",month:"μήνας",second:"δευτερόλεπτο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.startDate} έως ${e.endDate}`,selectedTimeDescription:e=>`Επιλεγμένη ώρα: ${e.time}`,startDate:"Ημερομηνία έναρξης",timeZoneName:"ζώνη ώρας",weekday:"καθημερινή",year:"έτος"};var c4={};c4={era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`};var d4={};d4={calendar:"Calendario",day:"día",dayPeriod:"a. m./p. m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"día de la semana",year:"año"};var f4={};f4={calendar:"Kalender",day:"päev",dayPeriod:"enne/pärast lõunat",endDate:"Lõppkuupäev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:"Alguskuupäev",timeZoneName:"ajavöönd",weekday:"nädalapäev",year:"aasta"};var h4={};h4={calendar:"Kalenteri",day:"päivä",dayPeriod:"vuorokaudenaika",endDate:"Päättymispäivä",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.startDate} – ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:"Alkamispäivä",timeZoneName:"aikavyöhyke",weekday:"viikonpäivä",year:"vuosi"};var g4={};g4={calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"ère",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie : ${e.time}`,startDate:"Date de début",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"année"};var m4={};m4={calendar:"לוח שנה",day:"יום",dayPeriod:"לפנה״צ/אחה״צ",endDate:"תאריך סיום",era:"תקופה",hour:"שעה",minute:"דקה",month:"חודש",second:"שנייה",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.startDate} עד ${e.endDate}`,selectedTimeDescription:e=>`זמן נבחר: ${e.time}`,startDate:"תאריך התחלה",timeZoneName:"אזור זמן",weekday:"יום בשבוע",year:"שנה"};var p4={};p4={calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum završetka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:"Datum početka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"};var b4={};b4={calendar:"Naptár",day:"nap",dayPeriod:"napszak",endDate:"Befejező dátum",era:"éra",hour:"óra",minute:"perc",month:"hónap",second:"másodperc",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.startDate}–${e.endDate}`,selectedTimeDescription:e=>`Kijelölt idő: ${e.time}`,startDate:"Kezdő dátum",timeZoneName:"időzóna",weekday:"hét napja",year:"év"};var v4={};v4={calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"};var y4={};y4={calendar:"カレンダー",day:"日",dayPeriod:"午前/午後",endDate:"終了日",era:"時代",hour:"時",minute:"分",month:"月",second:"秒",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.startDate} から ${e.endDate}`,selectedTimeDescription:e=>`選択した時間 : ${e.time}`,startDate:"開始日",timeZoneName:"タイムゾーン",weekday:"曜日",year:"年"};var x4={};x4={calendar:"달력",day:"일",dayPeriod:"오전/오후",endDate:"종료일",era:"연호",hour:"시",minute:"분",month:"월",second:"초",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`선택 시간: ${e.time}`,startDate:"시작일",timeZoneName:"시간대",weekday:"요일",year:"년"};var C4={};C4={calendar:"Kalendorius",day:"diena",dayPeriod:"iki pietų / po pietų",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minutė",month:"mėnuo",second:"sekundė",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:"Pradžios data",timeZoneName:"laiko juosta",weekday:"savaitės diena",year:"metai"};var w4={};w4={calendar:"Kalendārs",day:"diena",dayPeriod:"priekšpusdienā/pēcpusdienā",endDate:"Beigu datums",era:"ēra",hour:"stundas",minute:"minūtes",month:"mēnesis",second:"sekundes",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: no ${e.startDate} līdz ${e.endDate}`,selectedTimeDescription:e=>`Atlasītais laiks: ${e.time}`,startDate:"Sākuma datums",timeZoneName:"laika josla",weekday:"nedēļas diena",year:"gads"};var D4={};D4={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"år"};var S4={};S4={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"};var E4={};E4={calendar:"Kalendarz",day:"dzień",dayPeriod:"rano / po południu / wieczorem",endDate:"Data końcowa",era:"era",hour:"godzina",minute:"minuta",month:"miesiąc",second:"sekunda",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:"Data początkowa",timeZoneName:"strefa czasowa",weekday:"dzień tygodnia",year:"rok"};var I4={};I4={calendar:"Calendário",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data inicial",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var _4={};_4={calendar:"Calendário",day:"dia",dayPeriod:"am/pm",endDate:"Data de Término",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data de Início",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var $4={};$4={calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dată final",era:"eră",hour:"oră",minute:"minut",month:"lună",second:"secundă",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} până la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectată: ${e.time}`,startDate:"Dată început",timeZoneName:"fus orar",weekday:"ziua din săptămână",year:"an"};var R4={};R4={calendar:"Календарь",day:"день",dayPeriod:"AM/PM",endDate:"Дата окончания",era:"эра",hour:"час",minute:"минута",month:"месяц",second:"секунда",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: с ${e.startDate} по ${e.endDate}`,selectedTimeDescription:e=>`Выбранное время: ${e.time}`,startDate:"Дата начала",timeZoneName:"часовой пояс",weekday:"день недели",year:"год"};var A4={};A4={calendar:"Kalendár",day:"deň",dayPeriod:"AM/PM",endDate:"Dátum ukončenia",era:"letopočet",hour:"hodina",minute:"minúta",month:"mesiac",second:"sekunda",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybratý čas: ${e.time}`,startDate:"Dátum začatia",timeZoneName:"časové pásmo",weekday:"deň týždňa",year:"rok"};var F4={};F4={calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani čas: ${e.time}`,startDate:"Datum začetka",timeZoneName:"časovni pas",weekday:"dan v tednu",year:"leto"};var P4={};P4={calendar:"Kalendar",day:"дан",dayPeriod:"пре подне/по подне",endDate:"Datum završetka",era:"ера",hour:"сат",minute:"минут",month:"месец",second:"секунд",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:"Datum početka",timeZoneName:"временска зона",weekday:"дан у недељи",year:"година"};var T4={};T4={calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"månad",second:"sekund",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"år"};var k4={};k4={calendar:"Takvim",day:"gün",dayPeriod:"ÖÖ/ÖS",endDate:"Bitiş Tarihi",era:"çağ",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Seçilen Zaman: ${e.time}`,startDate:"Başlangıç Tarihi",timeZoneName:"saat dilimi",weekday:"haftanın günü",year:"yıl"};var M4={};M4={calendar:"Календар",day:"день",dayPeriod:"дп/пп",endDate:"Дата завершення",era:"ера",hour:"година",minute:"хвилина",month:"місяць",second:"секунда",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.startDate} — ${e.endDate}`,selectedTimeDescription:e=>`Вибраний час: ${e.time}`,startDate:"Дата початку",timeZoneName:"часовий пояс",weekday:"день тижня",year:"рік"};var B4={};B4={calendar:"日历",day:"日",dayPeriod:"上午/下午",endDate:"结束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`选定的时间:${e.time}`,startDate:"开始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var O4={};O4={calendar:"日曆",day:"日",dayPeriod:"上午/下午",endDate:"結束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`選定的時間:${e.time}`,startDate:"開始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var N4={};N4={"ar-AE":i4,"bg-BG":o4,"cs-CZ":a4,"da-DK":s4,"de-DE":l4,"el-GR":u4,"en-US":c4,"es-ES":d4,"et-EE":f4,"fi-FI":h4,"fr-FR":g4,"he-IL":m4,"hr-HR":p4,"hu-HU":b4,"it-IT":v4,"ja-JP":y4,"ko-KR":x4,"lt-LT":C4,"lv-LV":w4,"nb-NO":D4,"nl-NL":S4,"pl-PL":E4,"pt-BR":I4,"pt-PT":_4,"ro-RO":$4,"ru-RU":R4,"sk-SK":A4,"sl-SI":F4,"sr-SP":P4,"sv-SE":T4,"tr-TR":k4,"uk-UA":M4,"zh-CN":B4,"zh-TW":O4};function tP(e,t,n){let{direction:r}=In(),i=w.useMemo(()=>dx(t),[t]),o=l=>{if(l.currentTarget.contains(l.target)&&(l.altKey&&(l.key==="ArrowDown"||l.key==="ArrowUp")&&"setOpen"in e&&(l.preventDefault(),l.stopPropagation(),e.setOpen(!0)),!n))switch(l.key){case"ArrowLeft":l.preventDefault(),l.stopPropagation(),r==="rtl"?i.focusNext():i.focusPrevious();break;case"ArrowRight":l.preventDefault(),l.stopPropagation(),r==="rtl"?i.focusPrevious():i.focusNext();break}},a=()=>{var l;let u=(l=window.event)===null||l===void 0?void 0:l.target,c=jo(t.current,{tabbable:!0});if(u&&(c.currentNode=u,u=c.previousNode()),!u){let d;do d=c.lastChild(),d&&(u=d);while(d)}for(;u!=null&&u.hasAttribute("data-placeholder");){let d=c.previousNode();if(d&&d.hasAttribute("data-placeholder"))u=d;else break}u&&u.focus()},{pressProps:s}=kh({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(l){l.pointerType==="mouse"&&a()},onPress(l){l.pointerType!=="mouse"&&a()}});return Lt(s,{onKeyDown:o})}const nP="__role_"+Date.now(),rP="__focusManager_"+Date.now();function iP(e){return e&&e.__esModule?e.default:e}function oP(e,t,n){var r,i;let o=as(iP(N4),"@react-aria/datepicker"),{isInvalid:a,validationErrors:s,validationDetails:l}=t.displayValidation,{labelProps:u,fieldProps:c,descriptionProps:d,errorMessageProps:h}=eP({...e,labelElementType:"span",isInvalid:a,errorMessage:e.errorMessage||s}),f=c["aria-labelledby"]||c.id,{locale:g}=In(),m=t.formatValue(g,{month:"long"}),b=m?o.format("selectedRangeDescription",{startDate:m.start,endDate:m.end}):"",y=Yy(b),v={"aria-label":o.format("startDate"),"aria-labelledby":f},x={"aria-label":o.format("endDate"),"aria-labelledby":f},C=po(),D=po(),I=tP(t,n),T=[y["aria-describedby"],c["aria-describedby"]].filter(Boolean).join(" ")||void 0,p=w.useMemo(()=>dx(n,{accept:R=>R.id!==C}),[n,C]),S={[rP]:p,[nP]:"presentation","aria-describedby":T,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,granularity:e.granularity,shouldForceLeadingZeros:e.shouldForceLeadingZeros,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior},$=Fh(e),{focusWithinProps:_}=sx({...e,isDisabled:t.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),A=w.useRef(ai),k=w.useRef(ai);return{groupProps:Lt($,I,c,y,_,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":T,onKeyDown(R){t.isOpen||e.onKeyDown&&e.onKeyDown(R)},onKeyUp(R){t.isOpen||e.onKeyUp&&e.onKeyUp(R)}}),labelProps:{...u,onClick:()=>{p.focusFirst()}},buttonProps:{...y,id:C,"aria-haspopup":"dialog","aria-label":o.format("calendar"),"aria-labelledby":`${C} ${f}`,"aria-describedby":T,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:D,"aria-labelledby":`${C} ${f}`},startFieldProps:{...v,...S,value:(r=t.value)===null||r===void 0?void 0:r.start,onChange:R=>t.setDateTime("start",R),autoFocus:e.autoFocus,name:e.startName,[Jl]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(R){A.current=R,t.updateValidation(Kl(R,k.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...x,...S,value:(i=t.value)===null||i===void 0?void 0:i.end,onChange:R=>t.setDateTime("end",R),name:e.endName,[Jl]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(R){k.current=R,t.updateValidation(Kl(A.current,R))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},descriptionProps:d,errorMessageProps:h,calendarProps:{autoFocus:!0,value:t.dateRange,onChange:t.setDateRange,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,allowsNonContiguousRanges:e.allowsNonContiguousRanges,defaultFocusedValue:t.dateRange?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" ")},isInvalid:a,validationErrors:s,validationDetails:l}}function ao(e,t,n){return t!=null&&e.compare(t)<0||n!=null&&e.compare(n)>0}function ef(e,t,n,r,i){let o={};for(let s in t)o[s]=Math.floor(t[s]/2),o[s]>0&&t[s]%2===0&&o[s]--;let a=ci(e,t,n).subtract(o);return Ma(e,a,t,n,r,i)}function ci(e,t,n,r,i){let o=e;return t.years?o=jA(e):t.months?o=rs(e):t.weeks&&(o=_a(e,n)),Ma(e,o,t,n,r,i)}function tf(e,t,n,r,i){let o={...t};t.days?o.days--:t.weeks?o.weeks--:t.months?o.months--:t.years&&o.years--;let a=ci(e,t,n).subtract(o);return Ma(e,a,t,n,r,i)}function Ma(e,t,n,r,i,o){return i&&e.compare(i)>=0&&(t=xh(t,ci(Kt(i),n,r))),o&&e.compare(o)<=0&&(t=yh(t,tf(Kt(o),n,r))),t}function Ir(e,t,n){return t&&(e=xh(e,Kt(t))),n&&(e=yh(e,Kt(n))),e}function V4(e,t,n){if(!n)return e;for(;e.compare(t)>=0&&n(e);)e=e.subtract({days:1});if(e.compare(t)>=0)return e}function L4(e){let t=w.useMemo(()=>new Aa(e.locale),[e.locale]),n=w.useMemo(()=>t.resolvedOptions(),[t]),{locale:r,createCalendar:i,visibleDuration:o={months:1},minValue:a,maxValue:s,selectionAlignment:l,isDateUnavailable:u,pageBehavior:c="visible"}=e,d=w.useMemo(()=>i(n.calendar),[i,n.calendar]),[h,f]=Ta(e.value,e.defaultValue,e.onChange),g=w.useMemo(()=>h?ct(Kt(h),d):null,[h,d]),m=w.useMemo(()=>h&&"timeZone"in h?h.timeZone:n.timeZone,[h,n.timeZone]),b=w.useMemo(()=>e.focusedValue?Ir(ct(Kt(e.focusedValue),d),a,s):void 0,[e.focusedValue,d,a,s]),y=w.useMemo(()=>Ir(e.defaultFocusedValue?ct(Kt(e.defaultFocusedValue),d):g||ct(vh(m),d),a,s),[e.defaultFocusedValue,g,m,d,a,s]),[v,x]=Ta(b,y,e.onFocusChange),[C,D]=w.useState(()=>{switch(l){case"start":return ci(v,o,r,a,s);case"end":return tf(v,o,r,a,s);case"center":default:return ef(v,o,r,a,s)}}),[I,T]=w.useState(e.autoFocus||!1),p=w.useMemo(()=>{let F={...o};return F.days?F.days--:F.days=-1,C.add(F)},[C,o]),[S,$]=w.useState(d.identifier);if(d.identifier!==S){let F=ct(v,d);D(ef(F,o,r,a,s)),x(F),$(d.identifier)}ao(v,a,s)?x(Ir(v,a,s)):v.compare(C)<0?D(tf(v,o,r,a,s)):v.compare(p)>0&&D(ci(v,o,r,a,s));function _(F){F=Ir(F,a,s),x(F)}function A(F){if(!e.isDisabled&&!e.isReadOnly){if(F===null){f(null);return}if(F=Ir(F,a,s),F=V4(F,C,u),!F)return;F=ct(F,(h==null?void 0:h.calendar)||new Qt),h&&"hour"in h?f(h.set(F)):f(F)}}let k=w.useMemo(()=>g?u&&u(g)?!0:ao(g,a,s):!1,[g,u,a,s]),R=e.isInvalid||e.validationState==="invalid"||k,M=R?"invalid":null,P=w.useMemo(()=>c==="visible"?o:Pc(o),[c,o]);return{isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,value:g,setValue:A,visibleRange:{start:C,end:p},minValue:a,maxValue:s,focusedDate:v,timeZone:m,validationState:M,isValueInvalid:R,setFocusedDate(F){_(F),T(!0)},focusNextDay(){_(v.add({days:1}))},focusPreviousDay(){_(v.subtract({days:1}))},focusNextRow(){o.days?this.focusNextPage():(o.weeks||o.months||o.years)&&_(v.add({weeks:1}))},focusPreviousRow(){o.days?this.focusPreviousPage():(o.weeks||o.months||o.years)&&_(v.subtract({weeks:1}))},focusNextPage(){let F=C.add(P);x(Ir(v.add(P),a,s)),D(ci(Ma(v,F,P,r,a,s),P,r))},focusPreviousPage(){let F=C.subtract(P);x(Ir(v.subtract(P),a,s)),D(ci(Ma(v,F,P,r,a,s),P,r))},focusSectionStart(){o.days?_(C):o.weeks?_(_a(v,r)):(o.months||o.years)&&_(rs(v))},focusSectionEnd(){o.days?_(p):o.weeks?_(WA(v,r)):(o.months||o.years)&&_(Md(v))},focusNextSection(F){if(!F&&!o.days){_(v.add(Pc(o)));return}o.days?this.focusNextPage():o.weeks?_(v.add({months:1})):(o.months||o.years)&&_(v.add({years:1}))},focusPreviousSection(F){if(!F&&!o.days){_(v.subtract(Pc(o)));return}o.days?this.focusPreviousPage():o.weeks?_(v.subtract({months:1})):(o.months||o.years)&&_(v.subtract({years:1}))},selectFocusedDate(){A(v)},selectDate(F){A(F)},isFocused:I,setFocused:T,isInvalid(F){return ao(F,a,s)},isSelected(F){return g!=null&&rt(F,g)&&!this.isCellDisabled(F)&&!this.isCellUnavailable(F)},isCellFocused(F){return I&&v&&rt(F,v)},isCellDisabled(F){return e.isDisabled||F.compare(C)<0||F.compare(p)>0||this.isInvalid(F,a,s)},isCellUnavailable(F){return e.isDateUnavailable&&e.isDateUnavailable(F)},isPreviousVisibleRangeInvalid(){let F=C.subtract({days:1});return rt(F,C)||this.isInvalid(F,a,s)},isNextVisibleRangeInvalid(){let F=p.add({days:1});return rt(F,p)||this.isInvalid(F,a,s)},getDatesInWeek(F,B=C){let N=B.add({weeks:F}),O=[];N=_a(N,r);let L=Au(N,r);for(let W=0;W<L;W++)O.push(null);for(;O.length<7;){O.push(N);let W=N.add({days:1});if(rt(N,W))break;N=W}for(;O.length<7;)O.push(null);return O}}}function Pc(e){let t={...e};for(let n in e)t[n]=1;return t}function aP(e){let{value:t,defaultValue:n,onChange:r,createCalendar:i,locale:o,visibleDuration:a={months:1},minValue:s,maxValue:l,...u}=e,[c,d]=Ta(t,n||null,r),[h,f]=w.useState(null),g="center";if(c&&c.start&&c.end){let B=ef(Kt(c.start),a,o,s,l).add(a).subtract({days:1});c.end.compare(B)>0&&(g="start")}let m=w.useRef(null),[b,y]=w.useState(null),v=w.useMemo(()=>xh(s,b==null?void 0:b.start),[s,b]),x=w.useMemo(()=>yh(l,b==null?void 0:b.end),[l,b]),C=L4({...u,value:c&&c.start,createCalendar:i,locale:o,visibleDuration:a,minValue:v,maxValue:x,selectionAlignment:g}),D=F=>{F&&e.isDateUnavailable&&!e.allowsNonContiguousRanges?(m.current={start:Ap(F,C,-1),end:Ap(F,C,1)},y(m.current)):(m.current=null,y(null))},[I,T]=w.useState(C.visibleRange);(!kd(C.visibleRange.start,I.start)||!kd(C.visibleRange.end,I.end))&&(D(h),T(C.visibleRange));let p=F=>{F?(f(F),D(F)):(f(null),D(null))},S=h?Tc(h,C.focusedDate):c&&Tc(c.start,c.end),$=F=>{if(!e.isReadOnly&&(F=Ir(F,v,x),F=V4(F,C.visibleRange.start,e.isDateUnavailable),!!F))if(!h)p(F);else{let B=Tc(h,F);d({start:Rp(B.start,c==null?void 0:c.start),end:Rp(B.end,c==null?void 0:c.end)}),p(null)}},[_,A]=w.useState(!1),{isDateUnavailable:k}=e,R=w.useMemo(()=>!c||h?!1:k&&(k(c.start)||k(c.end))?!0:ao(c.start,s,l)||ao(c.end,s,l),[k,c,h,s,l]),M=e.isInvalid||e.validationState==="invalid"||R;return{...C,value:c,setValue:d,anchorDate:h,setAnchorDate:p,highlightedRange:S,validationState:M?"invalid":null,isValueInvalid:M,selectFocusedDate(){$(C.focusedDate)},selectDate:$,highlightDate(F){h&&C.setFocusedDate(F)},isSelected(F){return S&&F.compare(S.start)>=0&&F.compare(S.end)<=0&&!C.isCellDisabled(F)&&!C.isCellUnavailable(F)},isInvalid(F){var B,N;return C.isInvalid(F)||ao(F,(B=m.current)===null||B===void 0?void 0:B.start,(N=m.current)===null||N===void 0?void 0:N.end)},isDragging:_,setDragging:A}}function Tc(e,t){return!e||!t?null:(t.compare(e)<0&&([e,t]=[t,e]),{start:Kt(e),end:Kt(t)})}function Rp(e,t){return e=ct(e,(t==null?void 0:t.calendar)||new Qt),t&&"hour"in t?t.set(e):e}function Ap(e,t,n){let r=e.add({days:n});for(;(n<0?r.compare(t.visibleRange.start)>=0:r.compare(t.visibleRange.end)<=0)&&!t.isCellUnavailable(r);)r=r.add({days:n});return t.isCellUnavailable(r)?r.add({days:-n}):null}function sP(e){let[t,n]=Ta(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=w.useCallback(()=>{n(!0)},[n]),i=w.useCallback(()=>{n(!1)},[n]),o=w.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:i,toggle:o}}var H4={};H4={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var j4={};j4={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var W4={};W4={rangeOverflow:e=>`Hodnota musí být ${e.maxValue} nebo dřívější.`,rangeReversed:"Datum zahájení musí předcházet datu ukončení.",rangeUnderflow:e=>`Hodnota musí být ${e.minValue} nebo pozdější.`,unavailableDate:"Vybrané datum není k dispozici."};var z4={};z4={rangeOverflow:e=>`Værdien skal være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal være før slutdatoen.",rangeUnderflow:e=>`Værdien skal være ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilgængelig."};var G4={};G4={rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder früher sein.`,rangeReversed:"Das Anfangsdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder später sein.`,unavailableDate:"Das ausgewählte Datum ist nicht verfügbar."};var Z4={};Z4={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var X4={};X4={rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."};var Y4={};Y4={rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalización.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."};var U4={};U4={rangeOverflow:e=>`Väärtus peab olema ${e.maxValue} või varasem.`,rangeReversed:"Alguskuupäev peab olema enne lõppkuupäeva.",rangeUnderflow:e=>`Väärtus peab olema ${e.minValue} või hilisem.`,unavailableDate:"Valitud kuupäev pole saadaval."};var J4={};J4={rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sitä aikaisempi.`,rangeReversed:"Aloituspäivän on oltava ennen lopetuspäivää.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sitä myöhäisempi.`,unavailableDate:"Valittu päivämäärä ei ole käytettävissä."};var K4={};K4={rangeOverflow:e=>`La valeur doit être ${e.maxValue} ou antérieure.`,rangeReversed:"La date de début doit être antérieure à la date de fin.",rangeUnderflow:e=>`La valeur doit être ${e.minValue} ou ultérieure.`,unavailableDate:"La date sélectionnée n’est pas disponible."};var q4={};q4={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var Q4={};Q4={rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum početka mora biti prije datuma završetka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."};var e3={};e3={rangeOverflow:e=>`Az értéknek ${e.maxValue} vagy korábbinak kell lennie.`,rangeReversed:"A kezdő dátumnak a befejező dátumnál korábbinak kell lennie.",rangeUnderflow:e=>`Az értéknek ${e.minValue} vagy későbbinek kell lennie.`,unavailableDate:"A kiválasztott dátum nem érhető el."};var t3={};t3={rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."};var n3={};n3={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var r3={};r3={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var i3={};i3={rangeOverflow:e=>`Reikšmė turi būti ${e.maxValue} arba ankstesnė.`,rangeReversed:"Pradžios data turi būti ankstesnė nei pabaigos data.",rangeUnderflow:e=>`Reikšmė turi būti ${e.minValue} arba naujesnė.`,unavailableDate:"Pasirinkta data nepasiekiama."};var o3={};o3={rangeOverflow:e=>`Vērtībai ir jābūt ${e.maxValue} vai agrākai.`,rangeReversed:"Sākuma datumam ir jābūt pirms beigu datuma.",rangeUnderflow:e=>`Vērtībai ir jābūt ${e.minValue} vai vēlākai.`,unavailableDate:"Atlasītais datums nav pieejams."};var a3={};a3={rangeOverflow:e=>`Verdien må være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen må være før sluttdatoen.",rangeUnderflow:e=>`Verdien må være ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."};var s3={};s3={rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."};var l3={};l3={rangeOverflow:e=>`Wartość musi mieć wartość ${e.maxValue} lub wcześniejszą.`,rangeReversed:"Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",rangeUnderflow:e=>`Wartość musi mieć wartość ${e.minValue} lub późniejszą.`,unavailableDate:"Wybrana data jest niedostępna."};var u3={};u3={rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior à data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var c3={};c3={rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de início deve ser anterior à data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var d3={};d3={rangeOverflow:e=>`Valoarea trebuie să fie ${e.maxValue} sau anterioară.`,rangeReversed:"Data de început trebuie să fie anterioară datei de sfârșit.",rangeUnderflow:e=>`Valoarea trebuie să fie ${e.minValue} sau ulterioară.`,unavailableDate:"Data selectată nu este disponibilă."};var f3={};f3={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var h3={};h3={rangeOverflow:e=>`Hodnota musí byť ${e.maxValue} alebo skoršia.`,rangeReversed:"Dátum začiatku musí byť skorší ako dátum konca.",rangeUnderflow:e=>`Hodnota musí byť ${e.minValue} alebo neskoršia.`,unavailableDate:"Vybratý dátum je nedostupný."};var g3={};g3={rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starejša.`,rangeReversed:"Začetni datum mora biti pred končnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novejša.`,unavailableDate:"Izbrani datum ni na voljo."};var m3={};m3={rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum početka mora biti pre datuma završetka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."};var p3={};p3={rangeOverflow:e=>`Värdet måste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet måste vara före slutdatumet.",rangeUnderflow:e=>`Värdet måste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet är inte tillgängligt."};var b3={};b3={rangeOverflow:e=>`Değer, ${e.maxValue} veya öncesi olmalıdır.`,rangeReversed:"Başlangıç tarihi bitiş tarihinden önce olmalıdır.",rangeUnderflow:e=>`Değer, ${e.minValue} veya sonrası olmalıdır.`,unavailableDate:"Seçilen tarih kullanılamıyor."};var v3={};v3={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var y3={};y3={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var x3={};x3={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var C3={};C3={"ar-AE":H4,"bg-BG":j4,"cs-CZ":W4,"da-DK":z4,"de-DE":G4,"el-GR":Z4,"en-US":X4,"es-ES":Y4,"et-EE":U4,"fi-FI":J4,"fr-FR":K4,"he-IL":q4,"hr-HR":Q4,"hu-HU":e3,"it-IT":t3,"ja-JP":n3,"ko-KR":r3,"lt-LT":i3,"lv-LV":o3,"nb-NO":a3,"nl-NL":s3,"pl-PL":l3,"pt-BR":u3,"pt-PT":c3,"ro-RO":d3,"ru-RU":f3,"sk-SK":h3,"sl-SI":g3,"sr-SP":m3,"sv-SE":p3,"tr-TR":b3,"uk-UA":v3,"zh-CN":y3,"zh-TW":x3};function lP(e){return e&&e.__esModule?e.default:e}const w3=new Pi(lP(C3));function D3(){return typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US"}function Fp(e,t,n,r,i){let o=e!=null&&n!=null&&e.compare(n)>0,a=e!=null&&t!=null&&e.compare(t)<0,s=e!=null&&(r==null?void 0:r(e))||!1,l=o||a||s,u=[];if(l){let c=D3(),d=Pi.getGlobalDictionaryForPackage("@react-stately/datepicker")||w3,h=new bx(c,d),f=new Aa(c,nf({},i)),g=f.resolvedOptions().timeZone;a&&u.push(h.format("rangeUnderflow",{minValue:f.format(t.toDate(g))})),o&&u.push(h.format("rangeOverflow",{maxValue:f.format(n.toDate(g))})),s&&u.push(h.format("unavailableDate"))}return{isInvalid:l,validationErrors:u,validationDetails:{badInput:s,customError:!1,patternMismatch:!1,rangeOverflow:o,rangeUnderflow:a,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!l}}}function uP(e,t,n,r,i){let o=Fp(e==null?void 0:e.start,t,n,r,i),a=Fp(e==null?void 0:e.end,t,n,r,i),s=Kl(o,a);if(e.end!=null&&e.start!=null&&e.end.compare(e.start)<0){let l=Pi.getGlobalDictionaryForPackage("@react-stately/datepicker")||w3;s=Kl(s,{isInvalid:!0,validationErrors:[l.getStringForLocale("rangeReversed",D3())],validationDetails:{...Tu,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})}return s}const cP={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},dP={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function nf(e,t){e={...t.shouldForceLeadingZeros?dP:cP,...e};let r=t.granularity||"minute",i=Object.keys(e);var o;let a=i.indexOf((o=t.maxGranularity)!==null&&o!==void 0?o:"year");a<0&&(a=0);let s=i.indexOf(r);if(s<0&&(s=2),a>s)throw new Error("maxGranularity must be greater than granularity");let l=i.slice(a,s+1).reduce((c,d)=>(c[d]=e[d],c),{});return t.hourCycle!=null&&(l.hour12=t.hourCycle===12),l.timeZone=t.timeZone||"UTC",(r==="hour"||r==="minute"||r==="second")&&t.timeZone&&!t.hideTimeZone&&(l.timeZoneName="short"),t.showEra&&a===0&&(l.era="short"),l}function Ts(e){return e&&"hour"in e?e:new _h}function fP(e,t){let n=e&&"timeZone"in e?e.timeZone:void 0,r=e&&"minute"in e?"minute":"day";if(e&&t&&!(t in e))throw new Error("Invalid granularity "+t+" for value "+e.toString());let[i,o]=w.useState([r,n]);e&&(i[0]!==r||i[1]!==n)&&o([r,n]),t||(t=e?r:i[0]);let a=e?n:i[1];return[t,a]}function hP(e){var t,n;let r=sP(e),[i,o]=Ta(e.value,e.defaultValue||null,e.onChange),[a,s]=w.useState(()=>i||{start:null,end:null});i==null&&a.start&&a.end&&(a={start:null,end:null},s(a));let l=i||a,u=P=>{s(P||{start:null,end:null}),P!=null&&P.start&&P.end?o(P):o(null)},c=(l==null?void 0:l.start)||(l==null?void 0:l.end)||e.placeholderValue,[d,h]=fP(c,e.granularity),f=d==="hour"||d==="minute"||d==="second";var g;let m=(g=e.shouldCloseOnSelect)!==null&&g!==void 0?g:!0,[b,y]=w.useState(null),[v,x]=w.useState(null);l&&l.start&&l.end&&(b=l,"hour"in l.start&&(v=l));let C=(P,F)=>{u({start:"timeZone"in F.start?F.start.set(Kt(P.start)):Lr(P.start,F.start),end:"timeZone"in F.end?F.end.set(Kt(P.end)):Lr(P.end,F.end)}),y(null),x(null),k.commitValidation()},D=P=>{let F=typeof m=="function"?m():m;f?F||P.start&&P.end&&(v!=null&&v.start)&&(v!=null&&v.end)?C(P,{start:(v==null?void 0:v.start)||Ts(e.placeholderValue),end:(v==null?void 0:v.end)||Ts(e.placeholderValue)}):y(P):P.start&&P.end?(u(P),k.commitValidation()):y(P),F&&r.setOpen(!1)},I=P=>{b!=null&&b.start&&(b!=null&&b.end)&&P.start&&P.end?C(b,P):x(P)},T=(l==null||(t=l.start)===null||t===void 0?void 0:t.calendar.identifier)==="gregory"&&l.start.era==="BC"||(l==null||(n=l.end)===null||n===void 0?void 0:n.calendar.identifier)==="gregory"&&l.end.era==="BC",p=w.useMemo(()=>({granularity:d,timeZone:h,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:T}),[d,e.hourCycle,e.shouldForceLeadingZeros,h,e.hideTimeZone,T]),{minValue:S,maxValue:$,isDateUnavailable:_}=e,A=w.useMemo(()=>uP(l,S,$,_,p),[l,S,$,_,p]),k=J7({...e,value:i,name:w.useMemo(()=>[e.startName,e.endName],[e.startName,e.endName]),builtinValidation:A}),R=k.displayValidation.isInvalid,M=e.validationState||(R?"invalid":null);return{...k,value:l,setValue:u,dateRange:b,timeRange:v,granularity:d,hasTime:f,setDate(P,F){D({...b,[P]:F})},setTime(P,F){I({...v,[P]:F})},setDateTime(P,F){u({...l,[P]:F})},setDateRange:D,setTimeRange:I,...r,setOpen(P){!P&&!(l!=null&&l.start&&(l!=null&&l.end))&&(b!=null&&b.start)&&(b!=null&&b.end)&&f&&C(b,{start:(v==null?void 0:v.start)||Ts(e.placeholderValue),end:(v==null?void 0:v.end)||Ts(e.placeholderValue)}),r.setOpen(P)},validationState:M,isInvalid:R,formatValue(P,F){if(!l||!l.start||!l.end)return null;let B="timeZone"in l.start?l.start.timeZone:void 0,N=e.granularity||(l.start&&"minute"in l.start?"minute":"day"),O="timeZone"in l.end?l.end.timeZone:void 0,L=e.granularity||(l.end&&"minute"in l.end?"minute":"day"),W=nf(F,{granularity:N,timeZone:B,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:l.start.calendar.identifier==="gregory"&&l.start.era==="BC"||l.end.calendar.identifier==="gregory"&&l.end.era==="BC"}),Z=l.start.toDate(B||"UTC"),j=l.end.toDate(O||"UTC"),H=new Aa(P,W),V;if(B===O&&N===L&&l.start.compare(l.end)!==0){try{let z=H.formatRangeToParts(Z,j),Y=-1;for(let ee=0;ee<z.length;ee++){let X=z[ee];if(X.source==="shared"&&X.type==="literal")Y=ee;else if(X.source==="endRange")break}let K="",Q="";for(let ee=0;ee<z.length;ee++)ee<Y?K+=z[ee].value:ee>Y&&(Q+=z[ee].value);return{start:K,end:Q}}catch{}V=H}else{let z=nf(F,{granularity:L,timeZone:O,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle});V=new Aa(P,z)}return{start:H.format(Z),end:V.format(j)}}}}const S3=e=>{const t=w.useRef(null),{locale:n}=In(),{state:r,date:i}=e,{cellProps:o,buttonProps:a,isSelected:s,isOutsideVisibleRange:l,isDisabled:u,formattedDate:c,isInvalid:d}=Y7({date:i},r,t),{focusProps:h}=fx(),f="highlightedRange"in r?r.highlightedRange?rt(i,r.highlightedRange.start):null:s,g="highlightedRange"in r?r.highlightedRange?rt(i,r.highlightedRange.end):null:s,m=Au(i,n),b=s&&(f||m===0||i.day===1),y=s&&(g||m===6||i.day===i.calendar.getDaysInMonth(i));return E.jsx("td",{...o,children:E.jsx("div",{...Lt(a,h),ref:t,className:`${ge["cell-calendar"]} ${b?"1ru-rounded-l-full":""} ${y?"1ru-rounded-r-full":""} ${s?d?"1ru-bg-red-300":"1ru-bg-laba-blue-02":""} ${u?"1ru-disabled":""}`,children:l?E.jsx("div",{className:ge["visible-cell-calendar"],children:c}):E.jsx("div",{className:`${ge["active-cell-calendar"]} ${u&&!d?ge.disabled:""} ${f||g?d?ge.error:ge.selected:""} ${s&&!u&&!(f??g)?d?"hover:1ru-bg-red-400":"hover:1ru-text-laba-blue-05":""} ${!s&&!u?"hover:1ru-bg-laba-blue-01":""}`,children:c})})})},bo=e=>{const t=w.useRef(null),{buttonProps:n}=j7(e,t),{focusProps:r}=fx();return E.jsx("button",{...Lt(n,r),ref:t,className:`1ru-px-2 1ru-py-1 1ru-rounded-full ${e.isDisabled?"1ru-text-gray-400":"1ru-text-laba-blue-10"} ${e.isDisabled?"":"hover:1ru-bg-laba-blue-01 1ru-cursor-pointer"} 1ru-outline-none`,children:e.children})},E3=({prevIcon:e,nextIcon:t,state:n,setActiveTypeCalendar:r,onChangeMonth:i,type:o,hiddenHeader:a})=>{const s=new Date().getFullYear(),l=n.focusedDate.calendar.getMonthsInYear(n.focusedDate),u=Hr({month:"short",timeZone:n.timeZone}),c=(h,f)=>{const g=n.focusedDate.set({month:h});f?(r("date"),n.setFocusedDate(g)):!f&&typeof i=="function"&&i(g)},d=h=>{const f=n.focusedDate.set({year:h});n.setFocusedDate(f)};return E.jsxs("div",{className:`1ru-w-[296px] ${ge["container-calendar"]}`,children:[!a&&E.jsxs("div",{className:ge["header-calendar"],children:[E.jsx(bo,{isDisabled:n!=null&&n.minValue?n.focusedDate.year<=n.minValue.year:!1,onPress:()=>d(n.focusedDate.year-1),children:typeof e=="function"||w.isValidElement(e)?w.isValidElement(e)?e:e():E.jsx(Hn,{className:"1ru-rotate-90"})}),E.jsx("div",{className:`${ge["header-button-calendar"]} ${o.includes("year")?"":ge.disabled}`,onClick:()=>{o.includes("year")&&r("year")},children:n.focusedDate.year}),E.jsx(bo,{isDisabled:n!=null&&n.maxValue?n.focusedDate.year>=n.maxValue.year:!1,onPress:()=>d(n.focusedDate.year+1),children:typeof t=="function"||w.isValidElement(t)?w.isValidElement(t)?t:t():E.jsx(Hn,{className:"-1ru-rotate-90"})})]}),E.jsx("div",{className:ge["month-calendar"],children:[...Array(l).keys()].map(h=>{var x,C,D,I;const f=n.focusedDate.set({month:h+1}),g=u.format(f.toDate(n.timeZone)),m=((x=n.value)==null?void 0:x.year)||((D=(C=n.value)==null?void 0:C.start)==null?void 0:D.year)||s,b=n!=null&&n.minValue?f.month<((I=n==null?void 0:n.minValue)==null?void 0:I.month)&&f.year<=n.minValue.year:!1,y=n!=null&&n.maxValue?f.month>n.maxValue.month&&f.year>=n.maxValue.year:!1,v=b||y;return E.jsx("div",{onClick:()=>{v||c(f.month,o.includes("date"))},className:`${ge["cell-month"]} ${n.focusedDate.month===f.month&&!v&&f.year===m?ge.selected:""} ${n.focusedDate.month!==f.month&&!v?"hover:1ru-bg-laba-blue-01":""} ${v?"1ru-text-gray-400":"1ru-cursor-pointer"}`,children:g},h)})})]})},gP=e=>{const t=vy(e.state.visibleRange.start,e.locale),{gridProps:n,headerProps:r,weekDays:i}=n4({},e.state),{prevButtonProps:o,nextButtonProps:a,title:s}=t4(e,e.state),l=u=>{let c="";switch(u){case 0:c="Min";break;case 1:c="Sen";break;case 2:c="Sel";break;case 3:c="Rab";break;case 4:c="Kam";break;case 5:c="Jum";break;case 6:c="Sab";break}return c};return E.jsxs("div",{children:[!e.hiddenHeader&&E.jsxs("div",{className:ge["header-calendar"],children:[E.jsx(bo,{...o,children:typeof(e==null?void 0:e.prevIcon)=="function"||w.isValidElement(e==null?void 0:e.prevIcon)?w.isValidElement(e.prevIcon)?e.prevIcon:e.prevIcon():E.jsx(Hn,{className:"1ru-rotate-90"})}),E.jsx("div",{className:ge["header-button-calendar"],onClick:()=>e.setActiveTypeCalendar("month"),children:s}),E.jsx(bo,{...a,children:typeof(e==null?void 0:e.nextIcon)=="function"||w.isValidElement(e==null?void 0:e.nextIcon)?w.isValidElement(e.nextIcon)?e.nextIcon:e.nextIcon():E.jsx(Hn,{className:"-1ru-rotate-90"})})]}),E.jsxs("table",{...n,children:[E.jsx("thead",{...r,children:E.jsx("tr",{children:i.map((u,c)=>E.jsx("th",{className:ge["days-calendar"],children:l(c)},c))})}),E.jsx("tbody",{children:[...new Array(t).keys()].map(u=>E.jsx("tr",{children:e.state.getDatesInWeek(u).map((c,d)=>c?E.jsx(S3,{state:e.state,date:c},d):E.jsx("td",{},d))},u))})]})]})},mP=({minDate:e,maxDate:t,value:n,time:r,hiddenHeader:i,handlerChangeTime:o})=>{const a=e?new Date(e):null,s=t?new Date(t):null,l=a==null?void 0:a.getHours(),u=s==null?void 0:s.getHours(),c=a==null?void 0:a.getMinutes(),d=s==null?void 0:s.getMinutes(),[h,f]=w.useState(!0),g=(v,x,C)=>Array.from({length:(x-v)/C+1},(D,I)=>v+I*C),m=(v,x)=>{typeof o=="function"&&o({hour:v,minut:x,second:r==null?void 0:r.second})},b=()=>{const v=document.getElementById(`calendar-hour-${r==null?void 0:r.hour}`),x=document.getElementById(`calendar-minut-${r==null?void 0:r.minut}`),C=document.getElementById("wrapper-calendar-hour"),D=document.getElementById("wrapper-calendar-minut");v&&C&&C.scrollTo({behavior:"instant",top:v.offsetTop-75}),x&&D&&D.scrollTo({behavior:"instant",top:x.offsetTop-75})},y=(v,x)=>{let C=!0;if(a&&n){const D=n.year===a.getFullYear(),I=n.month===a.getMonth()+1;n.day===a.getDate()&&I&&D?(x==="hour"&&v<(l??0)||x==="minut"&&((r==null?void 0:r.hour)??0)<=a.getHours()&&v<(c??0))&&(C=!1):n.toDate(Di()).getTime()<a.getTime()&&(C=!1)}if(s&&n){const D=n.year===s.getFullYear(),I=n.month===s.getMonth()+1;n.day===s.getDate()&&I&&D?(x==="hour"&&v>(u??0)||x==="minut"&&((r==null?void 0:r.hour)??0)>=s.getHours()&&v>(d??0))&&(C=!1):n.toDate(Di()).getTime()>s.getTime()&&(C=!1)}return C};return w.useEffect(()=>{h&&b(),r&&f(!1)},[JSON.stringify(n)]),E.jsxs("div",{className:ge["custom-time-calendar"],children:[!i&&E.jsx("div",{className:ge["header-time"],children:"Atur Waktu"}),E.jsxs("div",{className:ge["type-time"],children:[E.jsx("div",{children:"Jam"}),E.jsx("div",{children:"Menit"})]}),E.jsxs("div",{className:"1ru-flex 1ru-justify-around",children:[E.jsx("div",{id:"wrapper-calendar-hour",className:ge["container-cell-time"],children:g(0,23,1).map(v=>E.jsx("div",{id:`calendar-hour-${v}`,className:`${ge["cell-time"]} ${(r==null?void 0:r.hour)===v?y(v,"hour")?ge.selected:ge.error:""} ${y(v,"hour")&&(r==null?void 0:r.hour)!=v?ge.valid:ge.invalid}`,onClick:()=>{y(v,"hour")&&m(v,r==null?void 0:r.minut)},children:v<10?`0${v}`:v},v))}),E.jsx("div",{id:"wrapper-calendar-minut",className:ge["container-cell-time"],children:g(0,59,1).map(v=>E.jsx("div",{id:`calendar-minut-${v}`,className:`${ge["cell-time"]} ${(r==null?void 0:r.minut)===v?y(v,"minut")?ge.selected:ge.error:""} ${y(v,"minut")&&(r==null?void 0:r.minut)!=v?ge.valid:ge.invalid}`,onClick:()=>{y(v,"minut")&&m(r==null?void 0:r.hour,v)},children:v<10?`0${v}`:v},v))})]})]})},ku=e=>{const t=L4({...e,locale:e.locale,createCalendar:os}),{title:n}=t4(e,t),[r,i]=w.useState((e==null?void 0:e.activeType)??"date"),o=a=>{t.setValue(a)};return Ci(()=>{e!=null&&e.activeType&&i(e.activeType)},[e==null?void 0:e.activeType]),E.jsxs("div",{className:"1ru-text-laba-base-sr",children:[r==="date"&&E.jsx(E.Fragment,{children:E.jsxs("div",{className:ge["container-calendar"],children:[E.jsxs("div",{className:"1ru-flex 1ru-gap-2",children:[E.jsx(gP,{state:t,setActiveTypeCalendar:i,...e}),(e==null?void 0:e.isCustomTime)&&E.jsx(mP,{minDate:e.minDate,maxDate:e.maxDate,time:e.time,value:e.value,hiddenHeader:e.hiddenHeader,handlerChangeTime:e.handlerChangeTime})]}),((e==null?void 0:e.withConfirm)??(e==null?void 0:e.isCustomTime))&&E.jsxs("div",{className:`${ge["footer-calendar"]}`,children:[typeof(e==null?void 0:e.buttonReset)=="function"?E.jsx("div",{onClick:()=>e.handlerReset(t),children:e.buttonReset()}):E.jsx(Dn,{variants:"nude-laba-blue-10",size:"small",onClick:()=>e.handlerReset(t),children:"Reset"}),typeof(e==null?void 0:e.buttonSubmit)=="function"?E.jsx("div",{onClick:e.handlerSubmit,children:e.buttonSubmit()}):E.jsx(Dn,{size:"small",onClick:e.handlerSubmit,children:"Terapkan"})]})]})}),r==="month"&&E.jsx(E3,{state:t,setActiveTypeCalendar:i,type:e.type,onChangeMonth:o,hiddenHeader:e.hiddenHeader}),r==="year"&&E.jsx(Ev,{state:t,type:e.type,setActiveTypeCalendar:i,title:n,onChangeYear:o,hiddenHeader:e.hiddenHeader})]})},pP=e=>{const t=w.useRef(null),{locale:n}=In(),r=aP({...e,locale:n,createCalendar:os}),i=m=>{let b="";switch(m){case 0:b="Min";break;case 1:b="Sen";break;case 2:b="Sel";break;case 3:b="Rab";break;case 4:b="Kam";break;case 5:b="Jum";break;case 6:b="Sab";break}return b},{calendarProps:o,prevButtonProps:a,nextButtonProps:s,title:l}=Z7(e,r,t),{gridProps:u,headerProps:c,weekDays:d}=n4({},r),h=vy(r.visibleRange.start,n),[f,g]=w.useState("date");return E.jsxs("div",{className:"1ru-text-laba-base-sr",children:[f==="date"&&E.jsx(E.Fragment,{children:E.jsx("div",{...o,ref:t,children:E.jsxs("div",{className:ge["container-calendar"],children:[E.jsxs("div",{className:ge["header-calendar"],children:[E.jsx(bo,{...a,children:typeof(e==null?void 0:e.prevIcon)=="function"||w.isValidElement(e==null?void 0:e.prevIcon)?w.isValidElement(e.prevIcon)?e.prevIcon:e.prevIcon():E.jsx(Hn,{className:"1ru-rotate-90"})}),E.jsx("div",{className:ge["header-button-calendar"],onClick:()=>g("month"),children:l}),E.jsx(bo,{...s,children:typeof(e==null?void 0:e.nextIcon)=="function"||w.isValidElement(e==null?void 0:e.nextIcon)?w.isValidElement(e.nextIcon)?e.nextIcon:e.nextIcon():E.jsx(Hn,{className:"-1ru-rotate-90"})})]}),E.jsxs("table",{...u,cellPadding:"0",className:"flex-1",children:[E.jsx("thead",{...c,className:"text-gray-600",children:E.jsx("tr",{children:d.map((m,b)=>E.jsx("th",{className:ge["days-calendar"],children:i(b)},b))})}),E.jsx("tbody",{children:[...new Array(h).keys()].map(m=>E.jsx("tr",{children:r.getDatesInWeek(m).map((b,y)=>b?E.jsx(S3,{state:r,date:b},y):E.jsx("td",{},y))},m))})]}),e.withConfirm&&E.jsxs("div",{className:ge["footer-calendar"],children:[typeof(e==null?void 0:e.buttonReset)=="function"?E.jsx("div",{onClick:()=>e.handlerReset(r),children:e.buttonReset()}):E.jsx(Dn,{variants:"nude-laba-blue-10",size:"small",onClick:()=>e.handlerReset(r),children:"Reset"}),typeof(e==null?void 0:e.buttonSubmit)=="function"?E.jsx("div",{onClick:e.handlerSubmit,children:e.buttonSubmit()}):E.jsx(Dn,{size:"small",onClick:e.handlerSubmit,children:"Terapkan"})]})]})})}),f==="month"&&E.jsx(E3,{state:r,setActiveTypeCalendar:g,type:["date","month","year"]}),f==="year"&&E.jsx(Ev,{state:r,setActiveTypeCalendar:g,title:l,type:["date","month","year"]})]})},I3=e=>{const t=hP(e),n=w.useRef(null),{calendarProps:r}=oP(e,t,n);return E.jsx("div",{ref:n,children:E.jsx(pP,{handlerReset:e.handlerReset,handlerSubmit:e.handlerSubmit,withConfirm:e.withConfirm,prevIcon:e.prevIcon,nextIcon:e.nextIcon,buttonReset:e.buttonReset,buttonSubmit:e.buttonSubmit,...r})})},ks=e=>{let t;const n=new Date(e??new Date);return e&&(t=Eh(new Date(n.setHours(n.getHours()+7)).toISOString().slice(0,10))),t},bP=e=>{const{minDate:t,maxDate:n,value:r,defaultValue:i,withConfirm:o=!1,isCustomTime:a=!1,className:s,classNameButton:l,buttonClick:u,buttonReset:c,buttonSubmit:d,prevIcon:h,nextIcon:f,onChange:g,id:m="date-picker",idPopover:b="date-picker-popover",floatingOptions:y={},offsetPopover:v=5,zIndexPopper:x=1,hiddenHeader:C}=e,D=Hr(),{locale:I}=In(),T=ks(t),p=ks(n),S=w.useRef(null),[$,_]=w.useState(),[A,k]=w.useState(),R=N=>{var j;const O=new Date;let L=N.toDate(Di());L.setHours(O.getHours(),O.getMinutes(),O.getSeconds());const W=t?new Date(t):null,Z=n?new Date(n):null;if(a){if(L=new Date(new Date(L).setHours((A==null?void 0:A.hour)??0,A==null?void 0:A.minut,A==null?void 0:A.second)),W&&(W==null?void 0:W.toDateString())===new Date(L).toDateString()&&(W==null?void 0:W.toTimeString())>=(L==null?void 0:L.toTimeString())){if(W&&(W.getHours()>L.getHours()||W.getHours()===L.getHours()&&W.getMinutes()>L.getMinutes()))return;L=new Date(W.setSeconds(W.getSeconds()+1))}if(Z&&(Z==null?void 0:Z.toDateString())===new Date(L).toDateString()&&(Z==null?void 0:Z.toTimeString())<(L==null?void 0:L.toTimeString())){if(Z&&(Z.getHours()<L.getHours()||Z.getHours()===L.getHours()&&Z.getMinutes()<L.getMinutes()))return;L=new Date(Z.setSeconds(Z.getSeconds()-1))}}else W&&D.format(L)===D.format(W)&&W.getTime()>=L.getTime()?L=new Date(W.setSeconds(W.getSeconds()+1)):Z&&D.format(L)===D.format(Z)&&Z.getTime()<=L.getTime()&&(L=new Date(Z.setSeconds(Z.getSeconds()-1)));typeof g=="function"&&(g(L),(j=S.current)==null||j.setShow(!1))},M=(N,O)=>{_(N),(O??(!o&&!a))&&R(N)},P=N=>{k(N)},F=N=>{const O=new Date(r??new Date);k({hour:O.getHours(),minut:O.getMinutes(),second:O.getSeconds()}),_(ks(r))},B=()=>{$&&M($,!0)};return E.jsxs(E.Fragment,{children:[E.jsx("div",{id:m,onClick:N=>{var O;(O=S.current)==null||O.handlerShow(N),F()},className:l,children:typeof u=="function"?u(r):r?new Date(r).toDateString():"Pilih Tanggal"}),E.jsx(br,{zIndex:x,ref:S,offset:v,id:b,floatingOptions:{placement:"bottom-end",...y},children:E.jsx("div",{className:s??"",children:E.jsx(Vh,{locale:"id-ID",children:E.jsx(ku,{minValue:T,maxValue:p,minDate:t,maxDate:n,time:A,locale:I,value:$,buttonReset:c,buttonSubmit:d,prevIcon:h,nextIcon:f,createCalendar:os,defaultValue:ks(r),onChange:M,handlerReset:()=>{var N;typeof g=="function"&&(g(i),(N=S.current)==null||N.setShow(!1))},handlerSubmit:B,handlerChangeTime:P,withConfirm:o,isCustomTime:a,type:["date","month","year"],hiddenHeader:C})})})})]})},kc=e=>{let t;const n=new Date(e??new Date);return e&&(t=Eh(new Date(n.setHours(n.getHours()+7)).toISOString().slice(0,10))),t},Pp=e=>{const t=new Date((e==null?void 0:e.startDate)??new Date),n=new Date((e==null?void 0:e.endDate)??new Date),r=new tt(t.getFullYear(),t.getMonth()+1,t.getDate()),i=new tt(n.getFullYear(),n.getMonth()+1,n.getDate());return e?{start:r,end:i}:void 0},_3=e=>{const{minDate:t,maxDate:n,defaultValue:r,withConfirm:i,prevIcon:o,nextIcon:a,buttonReset:s,buttonSubmit:l,typePicker:u="RANGE",onChange:c,onReset:d}=e,{locale:h}=In(),f=kc(t),g=kc(n),[m,b]=w.useState(),y=D=>{typeof c=="function"&&c(D)},v=(D,I)=>{const T=D.start.toDate(Di()),p=D.end.toDate(Di());b(D),(I??!i)&&y({startDate:T,endDate:new Date(p.setHours(23,59,59))})},x=D=>{if(typeof d=="function")d();else if(r&&D){const I=new Date(r.endDate??new Date),T=D.focusedDate.set({month:I.getMonth()+1,year:I.getFullYear()});D.setFocusedDate(T)}b(Pp(r))},C=()=>{m&&v(m,!0)};return E.jsx("div",{className:"1ru-flex 1ru-flex-col",children:E.jsxs(Vh,{locale:"id-ID",children:[u==="RANGE"&&E.jsx(I3,{defaultValue:Pp(r),value:m,minValue:f,maxValue:g,withConfirm:i,prevIcon:o,nextIcon:a,buttonReset:s,buttonSubmit:l,onChange:v,handlerReset:x,handlerSubmit:C}),u==="SINGLE"&&E.jsx(ku,{defaultValue:kc(r==null?void 0:r.endDate),value:m==null?void 0:m.end,minValue:f,maxValue:g,minDate:t,maxDate:n,withConfirm:i,prevIcon:o,nextIcon:a,buttonReset:s,buttonSubmit:l,locale:h,createCalendar:os,onChange:D=>v({start:D,end:D}),handlerReset:x,handlerSubmit:C,type:["date","month","year"]})]})})},vP=({value:e,prevIcon:t,nextIcon:n,buttonReset:r,buttonSubmit:i,className:o,classNameButton:a,buttonClick:s,buttonList:l,typePicker:u="RANGE",onChange:c,idPopover:d="filter-date-popover",id:h="filter-date",floatingOptions:f={},offsetPopover:g=5,zIndexPopper:m=0,defaultValueLabel:b,mountedExecuteChange:y=!0,formatingDate:v})=>{const x=[{key:"thisDay",value:"Hari ini"},{key:"thisWeek",value:"Minggu ini"},{key:"thisMonth",value:"Bulan ini"},{key:"thisYear",value:"Tahun ini"},{key:"yesterday",value:"Kemarin"},{key:"lastWeek",value:"Minggu lalu"},{key:"lastMonth",value:"Bulan lalu"},{key:"lastYear",value:"Tahun lalu"},{key:"custom",value:"Kustom"}],C=w.useRef(null),[D,I]=w.useState(),[T,p]=w.useState(),[S,$]=w.useState(),_=(j,H)=>{const V=new Date(j??new Date);return H==="start"?new Date(V.setHours(0,0,0)):new Date(V.setHours(23,59,59))},A=()=>{const j=new Date;return{startDate:j,endDate:j}},k=()=>{const j=new Date;j.setDate(j.getDate()-j.getDay());const H=new Date;return H.setDate(H.getDate()+(6-H.getDay())),{startDate:j,endDate:H}},R=()=>{const j=new Date,H=new Date(j.getFullYear(),j.getMonth(),1),V=new Date(j.getFullYear(),j.getMonth()+1,0);return{startDate:H,endDate:V}},M=()=>{const j=new Date(new Date().getFullYear(),0,1),H=new Date(new Date().getFullYear(),11,31);return{startDate:j,endDate:H}},P=()=>{const j=new Date(new Date().setDate(new Date().getDate()-1));return{startDate:j,endDate:j}},F=()=>{const j=new Date;j.setDate(j.getDate()-(7+j.getDay()));const H=new Date;return H.setDate(H.getDate()-(H.getDay()+1)),{startDate:j,endDate:H}},B=()=>{const j=new Date,H=new Date(j.getFullYear(),j.getMonth()-1,1),V=new Date(j.getFullYear(),j.getMonth(),0);return{startDate:H,endDate:V}},N=()=>{const j=new Date(new Date().getFullYear()-1,0,1),H=new Date(new Date().getFullYear()-1,11,31);return{startDate:j,endDate:H}},O=(j,H,V)=>{var z;if($(j),typeof c=="function"){let Y=j;v==="string"&&j?Y={startDate:Ji(j.startDate,v),endDate:Ji(j.endDate,v)}:typeof v=="boolean"&&j&&(Y={startDate:Ji(j.startDate,"yyyy-MM-dd'T'HH:mm:ss.SSSxxx"),endDate:Ji(j.endDate,"yyyy-MM-dd'T'HH:mm:ss.SSSxxx")}),(z=C.current)==null||z.setShow(!1),c(Y,H??"",V)}},L=(j,H)=>{I(j);let V;if((j==null?void 0:j.key)!=="custom"){switch(p(j),j==null?void 0:j.key){case"thisDay":V=A();break;case"thisWeek":V=k();break;case"thisMonth":V=R();break;case"thisYear":V=M();break;case"yesterday":V=P();break;case"lastWeek":V=F();break;case"lastMonth":V=B();break;case"lastYear":V=N();break}V&&H&&O({startDate:_(V.startDate,"start"),endDate:_(V.endDate,"end")},j==null?void 0:j.value,j)}},W=(j,H)=>{const V=(l??x).find(z=>z.key===j);!j&&!V?(H&&O(),L(void 0,H),p(void 0)):typeof j=="object"?(H&&O({startDate:_(j.startDate,"start"),endDate:_(j.endDate,"end")},"Kustom",{key:"custom",value:"Kustom"}),L({key:"custom",value:"Kustom"},H),p({key:"custom",value:"Kustom"})):(L(V,H),p(V))},Z=()=>{var j;if(e){$(e);const H=(j=l??x)==null?void 0:j.find(V=>V.key===e.label||V.value===e.label);Object.keys(H||{}).length>0&&I(H)}else I(void 0),p(void 0)};return w.useEffect(()=>{Z()},[JSON.stringify(e)]),w.useEffect(()=>{W(b??e,y)},[]),E.jsxs(E.Fragment,{children:[E.jsxs("div",{onClick:j=>{var H;(H=C.current)==null||H.handlerShow(j),Z()},className:a,id:h,children:[w.isValidElement(s)&&s,typeof s=="function"?s(S,T):"Pilih Filter"]}),E.jsx(br,{zIndex:m,ref:C,offset:g,id:d,floatingOptions:{placement:"bottom-end",...f},children:E.jsxs("div",{className:`${ge["container-filter-date"]} ${o}`,children:[E.jsx("div",{children:(l??x).map((j,H)=>E.jsx("div",{className:`${ge["button-filter-date"]} hover:1ru-bg-laba-blue-01 ${(D==null?void 0:D.key)===j.key?"1ru-text-laba-blue-10":""}`,onClick:()=>L(j,!0),children:j.value},H))}),(D==null?void 0:D.key)==="custom"&&E.jsx("div",{children:E.jsx(_3,{defaultValue:S,prevIcon:t,nextIcon:n,buttonReset:r,buttonSubmit:i,onChange:j=>{O(j,"Kustom",{key:"custom",value:"Kustom"}),p({key:"custom",value:"Kustom"})},onReset:()=>{W(b,!0)},typePicker:u,withConfirm:!0})})]})})]})},yP="_active_z4wg4_31",xP="_disabled_z4wg4_34",bt={"title-switch-laba":"_title-switch-laba_z4wg4_1","title-switch-payhere":"_title-switch-payhere_z4wg4_6","description-switch-laba":"_description-switch-laba_z4wg4_11","description-switch-payhere":"_description-switch-payhere_z4wg4_16","switch-l":"_switch-l_z4wg4_21","switch-payhere":"_switch-payhere_z4wg4_21",active:yP,disabled:xP,"disabled-nonactive":"_disabled-nonactive_z4wg4_37","thumb-switch":"_thumb-switch_z4wg4_40","switch-laba":"_switch-laba_z4wg4_57","switch-r":"_switch-r_z4wg4_94","switch-s":"_switch-s_z4wg4_167"},CP=({value:e,disabled:t,title:n="",description:r="",size:i="regular",kind:o="payhere",id:a,className:s,classNameTitle:l,classNameDesc:u,onChange:c})=>{const d={size:{large:bt["switch-l"],regular:bt["switch-r"],small:bt["switch-s"]},kind:{laba:bt["switch-laba"],payhere:bt["switch-payhere"]},text:{title:{laba:bt["title-switch-laba"],payhere:bt["title-switch-payhere"]},desc:{laba:bt["description-switch-laba"],payhere:bt["description-switch-payhere"]}}},h=()=>{!t&&typeof c=="function"&&c(!e)};return E.jsxs("div",{id:a??"1ru-switch",className:`1ru-flex 1ru-gap-2 ${s??""}`,onClick:f=>f.stopPropagation(),children:[E.jsxs("label",{children:[E.jsx("input",{type:"checkbox",checked:e,onChange:h,className:"1ru-hidden"}),E.jsx("span",{className:`${d.size[i]} ${d.kind[o]} ${e?bt.active:""} ${t?bt.disabled:""} ${!e&&t?bt["disabled-nonactive"]:""}`,children:E.jsx("span",{className:`${bt["thumb-switch"]} ${e?bt.active:""} ${t?bt.disabled:""} ${!e&&t?bt["disabled-nonactive"]:""}`})})]}),(n||r)&&E.jsxs("div",{children:[n&&E.jsx("div",{className:`${d.text.title[o]} ${l}`,children:n}),r&&E.jsx("div",{className:`${d.text.desc[o]} ${u}`,children:r})]})]})},wP="_loading_11t4k_10",De={"button-xs":"_button-xs_11t4k_6","button-s":"_button-s_11t4k_6","button-m":"_button-m_11t4k_6","button-l":"_button-l_11t4k_6","button-extra-small":"_button-extra-small_11t4k_6","button-small":"_button-small_11t4k_6","button-reguler":"_button-reguler_11t4k_6","button-large":"_button-large_11t4k_6",loading:wP,"nude-laba-red-05":"_nude-laba-red-05_11t4k_18","nude-laba-red-10":"_nude-laba-red-10_11t4k_18","nude-gray-500":"_nude-gray-500_11t4k_18","nude-green-700":"_nude-green-700_11t4k_18","nude-red-700":"_nude-red-700_11t4k_18","nude-laba-blue-10":"_nude-laba-blue-10_11t4k_18","ghost-laba-green-10":"_ghost-laba-green-10_11t4k_18","ghost-blue-gray-100-bg_white":"_ghost-blue-gray-100-bg_white_11t4k_18","ghost-green-700":"_ghost-green-700_11t4k_18","ghost-red-700":"_ghost-red-700_11t4k_18","ghost-laba-blue-10":"_ghost-laba-blue-10_11t4k_18","filled-laba-white_laba-red-05":"_filled-laba-white_laba-red-05_11t4k_18","filled-laba-white_laba-blue-10":"_filled-laba-white_laba-blue-10_11t4k_18","primary-green-700":"_primary-green-700_11t4k_18","primary-red-700-dsb_laba-grey-06":"_primary-red-700-dsb_laba-grey-06_11t4k_18","primary-laba-blue-10":"_primary-laba-blue-10_11t4k_18","tertiary-gray-500":"_tertiary-gray-500_11t4k_18","tertiary-red-600":"_tertiary-red-600_11t4k_18","tertiary-red-300":"_tertiary-red-300_11t4k_18","tertiary-blue-700":"_tertiary-blue-700_11t4k_18","secondary-green-600":"_secondary-green-600_11t4k_18","secondary-red-700":"_secondary-red-700_11t4k_18","secondary-red-600":"_secondary-red-600_11t4k_18","secondary-blue-700":"_secondary-blue-700_11t4k_18","primary-red-700":"_primary-red-700_11t4k_18","primary-blue-700":"_primary-blue-700_11t4k_18","icon-loading":"_icon-loading_11t4k_80"},DP=({className:e=""})=>E.jsx("svg",{className:`${De["icon-loading"]} ${e??""}`,xmlns:"http://www.w3.org/2000/svg",width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",children:E.jsx("path",{d:`M21.6311 6.63315C22.3017 6.23898 22.5321 5.36957 22.0621 4.7497C20.7187 2.9779 18.9029 1.6063 \r
85
85
  16.8106 0.800956C14.2782 -0.173807 11.4901 -0.261467 8.90143 0.552281C6.31275 1.36603 4.07629 \r
86
86
  3.03314 2.55704 5.28155C1.0378 7.52995 0.325454 10.2269 0.536268 12.9323C0.747083 15.6376 1.86861 \r
87
87
  18.1917 3.71782 20.1776C5.56702 22.1635 8.03473 23.4641 10.7182 23.867C13.4017 24.2699 16.1425 23.7514 \r
@@ -105,7 +105,7 @@ You should wrap it with \`css\` like this:
105
105
  ${m||u.subs.length>0&&y?(C=c.activeColor)==null?void 0:C[o]:""} ${typeof n=="boolean"&&n?Xe["item-sidebar-open"]:""} ${typeof n=="boolean"&&!n?Xe["item-sidebar-close"]:""}
106
106
  `,onClick:v,onMouseOver:()=>g(!0),onMouseOut:()=>g(!1),...l?l(u.slug):{},children:[E.jsxs("div",{className:"1ru-flex 1ru-items-center 1ru-gap-3 1ru-relative",children:[w.isValidElement(u.svgIcon)&&E.jsx("div",{className:Xe["item-icon"],children:m||u.subs.length>0&&y||f?u.svgIconActive:u.svgIcon}),E.jsx("div",{className:Xe["item-label"],children:u.label})]}),u.subs.length>0&&n&&E.jsxs("div",{className:Xe["item-icon-subs"],children:[w.isValidElement(i)&&i,typeof i=="function"&&i()]})]}),u.parent===3&&!u.subs.length&&E.jsx("div",{className:Xe["divider-item-sidebar"]})]})),(u.parent===2||u.parent===4)&&(d=E.jsxs(E.Fragment,{children:[E.jsxs(h,{id:u.name,className:`${Xe["item-sidebar-2"]} ${(D=c.hoverColor)==null?void 0:D[o]}
107
107
  ${m||u.subs.length>0&&y?(I=c.activeColor)==null?void 0:I[o]:""} ${typeof n=="boolean"&&n?Xe["item-sidebar-open"]:""} ${typeof n=="boolean"&&!n?Xe["item-sidebar-close"]:""}
108
- `,onClick:v,onMouseOver:()=>g(!0),onMouseOut:()=>g(!1),...l?l(u.slug):{},children:[w.isValidElement(u.svgIcon)&&E.jsx("div",{className:Xe["item-icon"],children:m||u.subs.length>0&&y||f?u.svgIconActive:u.svgIcon}),E.jsx("div",{className:Xe["item-label"],children:u.label}),u.subs.length>0&&n&&E.jsxs("div",{className:Xe["item-icon-subs"],children:[w.isValidElement(i)&&i,typeof i=="function"&&i()]})]}),u.parent===4&&!u.subs.length&&E.jsx("div",{className:Xe["divider-item-sidebar"]})]})),u.subs.length>0?E.jsxs("div",{className:`${n||y?"":"-mt-2"}`,children:[d,E.jsx("div",{className:`${Xe["item-subs-sidebar"]} ${!n||!y?Xe.hidden:""}`,children:u.subs.map(T=>w.createElement(T3,{...T,as:T.manualRoute?"div":T.subs.length>0?e:u.linkComponent,key:T.name,patch:r,iconSubs:i,show:t,open:n,variant:o,setShow:a}))}),[3,4].includes(u.parent)&&E.jsx("div",{className:Xe["divider-item-sidebar"]})]}):d):E.jsx(E.Fragment,{})},k3=w.forwardRef((e,t)=>{var M;const{as:n,children:r,patch:i="/",iconCompany:o,iconSubs:a,iconCollapse:s,iconCollapseClose:l,modules:u,toleranceWidthIconCompany:c=25,onClickItems:d,variant:h="payhere-brand-base-white",footer:f,withInheritance:g,...m}=e,b=w.useRef(null),y={withCuctomWidthIconCompany:["payhere-brand-base-white","payhere-brand-base-transparent"],variants:{"payhere-brand-base-white":nn["payhere-brand-base-white"],"payhere-brand-base-transparent":nn["payhere-brand-base-transparent"],"laba-white":nn["laba-white"]}},[v,x]=w.useState(null),[C,D]=w.useState(null),[I,T]=w.useState(""),[p,S]=w.useState(),[$,_]=w.useState(0),A=()=>{var B;let P=0;const F=document.getElementById("icon-company-sidebar");(B=F==null?void 0:F.childNodes)==null||B.forEach(N=>{P+=N.getBoundingClientRect().width??0}),S(P+c+"px")},k=()=>{_(window.innerWidth)},R=()=>{x(!C),C?S("auto"):setTimeout(()=>{A()},100)};return w.useEffect(()=>{$>=768?(x(!0),setTimeout(()=>{A()},100)):(x(!1),S("auto"))},[$]),w.useEffect(()=>{typeof v=="boolean"&&D(v)},[v]),w.useImperativeHandle(t,()=>({openSidebar:v,setOpenSidebar:x,handlerClickCollapse:R}),[v,C]),w.useEffect(()=>(i&&i.split("/").length>1&&T(i+"/"),A(),k(),window.addEventListener("resize",k),()=>window.removeEventListener("resize",k)),[]),E.jsxs("div",{className:y.variants[h],...m,ref:b,children:[E.jsxs("div",{id:"1ru-sidebar",className:`${nn.sidebar} ${typeof C=="boolean"&&C?nn["sidebar-open"]:""} ${typeof C=="boolean"&&!C?nn["sidebar-close"]:""}`,children:[w.isValidElement(s)&&E.jsxs("div",{className:nn["button-collaps-sidebar"],onClick:R,children:[v&&s,v?"":w.isValidElement(l)?l:s]}),E.jsx("div",{className:nn["container-icon-company-sidebar"],children:E.jsxs("div",{id:"icon-company-sidebar",className:nn["icon-company-sidebar"],style:{width:p&&y.withCuctomWidthIconCompany.includes(h)?p:"100%"},children:[w.isValidElement(o)&&o,typeof o=="function"&&o({openSidebar:C,setOpenSidebar:x})]})}),E.jsx("div",{className:nn["menu-sidebar"],onMouseOver:()=>{v||D(!0)},onMouseOut:()=>{v||D(!1)},children:u.map(P=>w.createElement(T3,{...P,as:P.manualRoute||P.subs.length>0?"div":n,linkComponent:n,key:P.name,show:I,open:C,patch:i,iconSubs:a,variant:h,setShow:T,onClickItems:d}))}),f&&E.jsxs("div",{className:C?"1ru-opacity-[1]":"1ru-opacity-0",children:[w.isValidElement(f)&&E.jsx("div",{children:f}),typeof f=="function"&&E.jsx("div",{children:f()})]})]}),v&&E.jsx("div",{className:nn["splace-screen"],onClick:R}),E.jsxs("div",{className:nn["content-sidebar"],children:[g&&((M=w.Children)==null?void 0:M.map(r,P=>E.jsx(E.Fragment,{children:w.isValidElement(P)&&E.jsx(E.Fragment,{children:w.cloneElement(P,{openSidebar:v,handlerClickCollapse:R})})}))),!g&&E.jsx(E.Fragment,{children:r})]})]})});k3.displayName="Sidebar";const VP="_collapse_gto9s_1",LP={collapse:VP},jP=({children:e,id:t,open:n,className:r,classNameContainer:i,maxCollapsedHeight:o="0px",triggerCalCulateContainer:a,delayTriggerCalculateHeight:s=0})=>{const[l,u]=w.useState("1000vh"),c=()=>{var h;const d=((h=document==null?void 0:document.getElementById(t))==null?void 0:h.offsetHeight)??0;u(d||"1000vh")};return w.useEffect(()=>{const d=setTimeout(c,s);return window==null||window.addEventListener("resize",c),window==null||window.addEventListener("load",c),()=>{clearTimeout(d),window==null||window.removeEventListener("resize",c),window==null||window.removeEventListener("load",c)}},[a]),E.jsx("div",{className:`${LP.collapse} ${i??""}`,style:{maxHeight:n?l:o},children:E.jsx("div",{id:t,className:r??"",children:e})})},HP="_modal_9v1mi_1",wr={modal:HP,"modal-content":"_modal-content_9v1mi_1","with-overlay":"_with-overlay_9v1mi_14","modal-small":"_modal-small_9v1mi_24","modal-medium":"_modal-medium_9v1mi_28","modal-regular":"_modal-regular_9v1mi_32","modal-large":"_modal-large_9v1mi_36","modal-show":"_modal-show_9v1mi_40"},WP=({as:e,children:t,id:n="modal",idModal:r="1ru-modal",withOverlay:i=!0,show:o,size:a="regular",className:s,classNameContainer:l,onClose:u,...c})=>{const d=e??"div",h={size:{small:wr["modal-small"],medium:wr["modal-medium"],regular:wr["modal-regular"],large:wr["modal-large"]}},f=()=>{typeof u=="function"&&u()};return E.jsx(E.Fragment,{children:o&&document.getElementById(r)&&Xa.createPortal(E.jsx("div",{id:n,onClick:f,className:`${wr.modal} ${i?wr["with-overlay"]:""} ${o?wr["modal-show"]:""} ${l??""}`,children:E.jsx(d,{onClick:g=>g.stopPropagation(),className:`${wr["modal-content"]} ${h.size[a]} ${s??""}`,...c,children:t})}),document.getElementById(r))})},zP="_dot_10oqk_31",Fn={"timeline-container":"_timeline-container_10oqk_1","no-time":"_no-time_10oqk_11","timeline-content":"_timeline-content_10oqk_15","left-content":"_left-content_10oqk_18","time-content":"_time-content_10oqk_24","text-time":"_text-time_10oqk_27",dot:zP,"right-content":"_right-content_10oqk_34"},GP=({children:e,noTime:t=!1})=>E.jsx("div",{className:`${Fn["timeline-container"]} ${t?Fn["no-time"]:""}`,children:e}),ZP=({children:e,time:t,clasName:n,noTime:r=!1})=>E.jsxs("div",{className:Fn["timeline-content"],children:[E.jsx("div",{className:`${Fn["left-content"]} ${r?Fn["no-time"]:""}`,children:E.jsxs("div",{className:Fn["time-content"],children:[!r&&E.jsx("time",{className:Fn["text-time"],children:t??""}),E.jsx("div",{className:Fn.dot})]})}),E.jsx("div",{className:`${Fn["right-content"]} ${r?Fn["no-time"]:""} ${n??""}`,children:e})]}),XP=Object.assign(GP,{TimelineContent:ZP}),Ms=(e,t,n)=>{if((t==null?void 0:t.length)>0){const r={};return t.forEach(i=>{e[i]&&(r[i]=e[i]),n&&e[`${n}${i}`]&&(r[`${n}${i}`]=e[`${n}${i}`])}),r}return e},M3=w.forwardRef((e,t)=>{const{children:n,onChange:r,prefixNativeValue:i="",defaultNativeValue:o,defaultValue:a,mountedExecuteChange:s=!0,keepKeys:l=[],resetPagination:u=!0,keyPageNumber:c="pageNumber",triggerReset:d={},reset:h}=e,f=u?{[c]:1}:{},[g,m]=w.useState(Ms(a??{},l,"")),[b,y]=w.useState(bg(i,Ms(o??{},l,i))),[v,x]=w.useState(!1),C=(T,p)=>{const S={};return Object.keys(p).forEach($=>{S[`${T}${$}`]=p[$]}),S},D=(T,p,S,$)=>{let _=T;const A=C(i,{[p]:T});Array.isArray(T)&&(S==="array-of-object-to-array"?_=yf(T,$):S==="array-of-object-to-string"?_=vf(T,$):S==="array-to-string"&&(_=_.toString())),typeof r=="function"&&r({...g,[p]:_,...f},{...b,...A}),m(k=>({...k,[p]:_})),y(k=>({...k,...A}))},I=(T,p)=>{const $=C(i,{...p??T});typeof r=="function"&&r({...g,...T,...f},{...b,...$}),m(_=>({..._,...T})),y(_=>({..._,...$}))};return Ci(()=>{!v&&typeof r=="function"&&s&&(r(g,b),x(!0))},[g,b,v,s]),Ci(()=>{h&&(y(bg(i,Ms(o??{},l,i))),m(Ms(a??{},l,"")))},[h,d]),w.useImperativeHandle(t,()=>({nativeValue:b,value:g,handlerOnChange:D,handlerOnChangeNative:I}),[wa(g),wa(b)]),E.jsx(E.Fragment,{children:n({handlerOnChange:D,handlerOnChangeNative:I,value:g,nativeValue:b})})});M3.displayName="FilterContainer";function jh(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 Oa;(function(e){e.event="event",e.props="prop"})(Oa||(Oa={}));function or(){}function YP(e){var t,n=void 0;return function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return t&&r.length===t.length&&r.every(function(o,a){return o===t[a]})||(t=r,n=e.apply(void 0,r)),n}}function Ii(e){return!!(e||"").match(/\d/)}function gi(e){return e==null}function UP(e){return typeof e=="number"&&isNaN(e)}function B3(e){return gi(e)||UP(e)||typeof e=="number"&&!isFinite(e)}function O3(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function JP(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 KP(e,t,n){var r=JP(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 qP(e){var t=w.useRef(e);t.current=e;var n=w.useRef(function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return t.current.apply(t,r)});return n.current}function Hh(e,t){t===void 0&&(t=!0);var n=e[0]==="-",r=n&&t;e=e.replace("-","");var i=e.split("."),o=i[0],a=i[1]||"";return{beforeDecimal:o,afterDecimal:a,hasNegation:n,addNegation:r}}function QP(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 N3(e,t,n){for(var r="",i=n?"0":"",o=0;o<=t-1;o++)r+=e[o]||i;return r}function kp(e,t){return Array(t+1).join(e)}function V3(e){var t=e+"",n=t[0]==="-"?"-":"";n&&(t=t.substring(1));var r=t.split(/[eE]/g),i=r[0],o=r[1];if(o=Number(o),!o)return n+i;i=i.replace(".","");var a=1+o,s=i.length;return a<0?i="0."+kp("0",Math.abs(a))+i:a>=s?i=i+kp("0",a-s):i=(i.substring(0,a)||"0")+"."+i.substring(a),n+i}function Mp(e,t,n){if(["","-"].indexOf(e)!==-1)return e;var r=(e.indexOf(".")!==-1||n)&&t,i=Hh(e),o=i.beforeDecimal,a=i.afterDecimal,s=i.hasNegation,l=parseFloat("0."+(a||"0")),u=a.length<=t?"0."+a:l.toFixed(t),c=u.split("."),d=o;o&&Number(c[0])&&(d=o.split("").reverse().reduce(function(m,b,y){return m.length>y?(Number(m[0])+Number(b)).toString()+m.substring(1,m.length):b+m},c[0]));var h=N3(c[1]||"",t,n),f=s?"-":"",g=r?".":"";return""+f+d+g+h}function Rr(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 L3=YP(function(e,t){for(var n=0,r=0,i=e.length,o=t.length;e[n]===t[n]&&n<i;)n++;for(;e[i-1-r]===t[o-1-r]&&o-r>n&&i-r>n;)r++;return{from:{start:n,end:i-r},to:{start:n,end:o-r}}}),eT=function(e,t){var n=Math.min(e.selectionStart,t);return{from:{start:n,end:e.selectionEnd},to:{start:n,end:t}}};function tT(e,t,n){return Math.min(Math.max(e,t),n)}function Mc(e){return Math.max(e.selectionStart,e.selectionEnd)}function nT(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function j3(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function H3(e,t){return e===void 0&&(e=" "),typeof e=="string"?e:e[t]||" "}function rT(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,i=e.formattedValueIndex;return t[r]===n[i]}function iT(e,t,n,r,i,o,a){a===void 0&&(a=rT);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 u=n.length,c=e.length,d={},h=new Array(u),f=0;f<u;f++){h[f]=-1;for(var g=0,m=c;g<m;g++){var b=a({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:f,formattedValueIndex:g});if(b&&d[g]!==!0){h[f]=g,d[g]=!0;break}}}for(var y=r;y<u&&(h[y]===-1||!o(n[y]));)y++;var v=y===u||h[y]===-1?c:h[y];for(y=r-1;y>0&&h[y]===-1;)y--;var x=y===-1||h[y]===-1?0:h[y]+1;return x>v?v:r-x<v-r?x:v}function ql(e,t,n,r){var i=e.length;if(t=tT(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 oT(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),n=0,r=t.length;n<r;n++)t[n]=!!(Ii(e[n])||Ii(e[n-1]));return t}function W3(e,t,n,r,i,o){o===void 0&&(o=or);var a=qP(function(g,m){var b,y;return B3(g)?(y="",b=""):typeof g=="number"||m?(y=typeof g=="number"?V3(g):g,b=r(y)):(y=i(g,void 0),b=r(y)),{formattedValue:b,numAsString:y}}),s=w.useState(function(){return a(gi(e)?t:e,n)}),l=s[0],u=s[1],c=function(g,m){g.formattedValue!==l.formattedValue&&u({formattedValue:g.formattedValue,numAsString:g.value}),o(g,m)},d=e,h=n;gi(e)&&(d=l.numAsString,h=!0);var f=a(d,h);return w.useMemo(function(){u(f)},[f.formattedValue]),[l,c]}function aT(e){return e.replace(/[^0-9]/g,"")}function sT(e){return e}function z3(e){var t=e.type;t===void 0&&(t="text");var n=e.displayType;n===void 0&&(n="input");var r=e.customInput,i=e.renderText,o=e.getInputRef,a=e.format;a===void 0&&(a=sT);var s=e.removeFormatting;s===void 0&&(s=aT);var l=e.defaultValue,u=e.valueIsNumericString,c=e.onValueChange,d=e.isAllowed,h=e.onChange;h===void 0&&(h=or);var f=e.onKeyDown;f===void 0&&(f=or);var g=e.onMouseUp;g===void 0&&(g=or);var m=e.onFocus;m===void 0&&(m=or);var b=e.onBlur;b===void 0&&(b=or);var y=e.value,v=e.getCaretBoundary;v===void 0&&(v=oT);var x=e.isValidInputCharacter;x===void 0&&(x=Ii);var C=e.isCharacterSame,D=jh(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),I=W3(y,l,!!u,a,s,c),T=I[0],p=T.formattedValue,S=T.numAsString,$=I[1],_=w.useRef(),A=w.useRef({formattedValue:p,numAsString:S}),k=function(ne,ie){A.current={formattedValue:ne.formattedValue,numAsString:ne.value},$(ne,ie)},R=w.useState(!1),M=R[0],P=R[1],F=w.useRef(null),B=w.useRef({setCaretTimeout:null,focusTimeout:null});w.useEffect(function(){return P(!0),function(){clearTimeout(B.current.setCaretTimeout),clearTimeout(B.current.focusTimeout)}},[]);var N=a,O=function(ne,ie){var ve=parseFloat(ie);return{formattedValue:ne,value:ie,floatValue:isNaN(ve)?void 0:ve}},L=function(ne,ie,ve){ne.selectionStart===0&&ne.selectionEnd===ne.value.length||(Rr(ne,ie),B.current.setCaretTimeout=setTimeout(function(){ne.value===ve&&ne.selectionStart!==ie&&Rr(ne,ie)},0))},W=function(ne,ie,ve){return ql(ne,ie,v(ne),ve)},Z=function(ne,ie,ve){var Le=v(ie),at=iT(ie,p,ne,ve,Le,x,C);return at=ql(ie,at,Le),at},H=function(ne){var ie=ne.formattedValue;ie===void 0&&(ie="");var ve=ne.input,Le=ne.source,at=ne.event,Re=ne.numAsString,Ie;if(ve){var en=ne.inputValue||ve.value,hn=Mc(ve);ve.value=ie,Ie=Z(en,ie,hn),Ie!==void 0&&L(ve,Ie,ie)}ie!==p&&k(O(ie,Re),{event:at,source:Le})};w.useEffect(function(){var ne=A.current,ie=ne.formattedValue,ve=ne.numAsString;(p!==ie||S!==ve)&&k(O(p,S),{event:void 0,source:Oa.props})},[p,S]);var j=F.current?Mc(F.current):void 0,V=typeof window<"u"?w.useLayoutEffect:w.useEffect;V(function(){var ne=F.current;if(p!==A.current.formattedValue&&ne){var ie=Z(A.current.formattedValue,p,j);ne.value=p,L(ne,ie,p)}},[p]);var z=function(ne,ie,ve){var Le=ie.target,at=_.current?eT(_.current,Le.selectionEnd):L3(p,ne),Re=Object.assign(Object.assign({},at),{lastValue:p}),Ie=s(ne,Re),en=N(Ie);if(Ie=s(en,void 0),d&&!d(O(en,Ie))){var hn=ie.target,gn=Mc(hn),Mi=Z(ne,p,gn);return hn.value=p,L(hn,Mi,p),!1}return H({formattedValue:en,numAsString:Ie,inputValue:ne,event:ie,source:ve,input:ie.target}),!0},Y=function(ne,ie){ie===void 0&&(ie=0);var ve=ne.selectionStart,Le=ne.selectionEnd;_.current={selectionStart:ve,selectionEnd:Le+ie}},K=function(ne){var ie=ne.target,ve=ie.value,Le=z(ve,ne,Oa.event);Le&&h(ne),_.current=void 0},Q=function(ne){var ie=ne.target,ve=ne.key,Le=ie.selectionStart,at=ie.selectionEnd,Re=ie.value;Re===void 0&&(Re="");var Ie;ve==="ArrowLeft"||ve==="Backspace"?Ie=Math.max(Le-1,0):ve==="ArrowRight"?Ie=Math.min(Le+1,Re.length):ve==="Delete"&&(Ie=Le);var en=0;ve==="Delete"&&Le===at&&(en=1);var hn=ve==="ArrowLeft"||ve==="ArrowRight";if(Ie===void 0||Le!==at&&!hn){f(ne),Y(ie,en);return}var gn=Ie;if(hn){var Mi=ve==="ArrowLeft"?"left":"right";gn=W(Re,Ie,Mi),gn!==Ie&&ne.preventDefault()}else ve==="Delete"&&!x(Re[Ie])?gn=W(Re,Ie,"right"):ve==="Backspace"&&!x(Re[Ie])&&(gn=W(Re,Ie,"left"));gn!==Ie&&L(ie,gn,Re),f(ne),Y(ie,en)},ee=function(ne){var ie=ne.target,ve=function(){var Le=ie.selectionStart,at=ie.selectionEnd,Re=ie.value;if(Re===void 0&&(Re=""),Le===at){var Ie=W(Re,Le);Ie!==Le&&L(ie,Ie,Re)}};ve(),requestAnimationFrame(function(){ve()}),g(ne),Y(ie)},X=function(ne){ne.persist&&ne.persist();var ie=ne.target,ve=ne.currentTarget;F.current=ie,B.current.focusTimeout=setTimeout(function(){var Le=ie.selectionStart,at=ie.selectionEnd,Re=ie.value;Re===void 0&&(Re="");var Ie=W(Re,Le);Ie!==Le&&!(Le===0&&at===Re.length)&&L(ie,Ie,Re),m(Object.assign(Object.assign({},ne),{currentTarget:ve}))},0)},ue=function(ne){F.current=null,clearTimeout(B.current.focusTimeout),clearTimeout(B.current.setCaretTimeout),b(ne)},fe=M&&nT()?"numeric":void 0,he=Object.assign({inputMode:fe},D,{type:t,value:p,onChange:K,onKeyDown:Q,onMouseUp:ee,onFocus:X,onBlur:ue});if(n==="text")return i?w.createElement(w.Fragment,null,i(p,D)||null):w.createElement("span",Object.assign({},D,{ref:o}),p);if(r){var ht=r;return w.createElement(ht,Object.assign({},he,{ref:o}))}return w.createElement("input",Object.assign({},he,{ref:o}))}function Bp(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,i=t.prefix;i===void 0&&(i="");var o=t.suffix;o===void 0&&(o="");var a=t.allowNegative,s=t.thousandsGroupStyle;if(s===void 0&&(s="thousand"),e===""||e==="-")return e;var l=Bu(t),u=l.thousandSeparator,c=l.decimalSeparator,d=n!==0&&e.indexOf(".")!==-1||n&&r,h=Hh(e,a),f=h.beforeDecimal,g=h.afterDecimal,m=h.addNegation;return n!==void 0&&(g=N3(g,n,!!r)),u&&(f=KP(f,u,s)),i&&(f=i+f),o&&(g=g+o),m&&(f="-"+f),e=f+(d&&c||"")+g,e}function Bu(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 lT(e,t){e===void 0&&(e="");var n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),i=n.test(e),o=r.test(e);return e=e.replace(/-/g,""),i&&!o&&t&&(e="-"+e),e}function uT(e,t){return new RegExp("(^-)|[0-9]|"+O3(e),"g")}function cT(e,t,n){return e===""?!0:!(t!=null&&t.match(/\d/))&&!(n!=null&&n.match(/\d/))&&typeof e=="string"&&!isNaN(Number(e))}function dT(e,t,n){var r;t===void 0&&(t=j3(e));var i=n.allowNegative,o=n.prefix;o===void 0&&(o="");var a=n.suffix;a===void 0&&(a="");var s=n.decimalScale,l=t.from,u=t.to,c=u.start,d=u.end,h=Bu(n),f=h.allowedDecimalSeparators,g=h.decimalSeparator,m=e[d]===g;if(Ii(e)&&(e===o||e===a)&&t.lastValue==="")return e;if(d-c===1&&f.indexOf(e[c])!==-1){var b=s===0?"":g;e=e.substring(0,c)+b+e.substring(c+1,e.length)}var y=function(F,B,N){var O=!1,L=!1;o.startsWith("-")?O=!1:F.startsWith("--")?(O=!1,L=!0):a.startsWith("-")&&F.length===a.length?O=!1:F[0]==="-"&&(O=!0);var W=O?1:0;return L&&(W=2),W&&(F=F.substring(W),B-=W,N-=W),{value:F,start:B,end:N,hasNegation:O}},v=y(e,c,d),x=v.hasNegation;r=v,e=r.value,c=r.start,d=r.end;var C=y(t.lastValue,l.start,l.end),D=C.start,I=C.end,T=C.value,p=e.substring(c,d);e.length&&T.length&&(D>T.length-a.length||I<o.length)&&!(p&&a.startsWith(p))&&(e=T);var S=0;e.startsWith(o)?S+=o.length:c<o.length&&(S=c),e=e.substring(S),d-=S;var $=e.length,_=e.length-a.length;e.endsWith(a)?$=_:(d>_||d>e.length-a.length)&&($=d),e=e.substring(0,$),e=lT(x?"-"+e:e,i),e=(e.match(uT(g))||[]).join("");var A=e.indexOf(g);e=e.replace(new RegExp(O3(g),"g"),function(F,B){return B===A?".":""});var k=Hh(e,i),R=k.beforeDecimal,M=k.afterDecimal,P=k.addNegation;return u.end-u.start<l.end-l.start&&R===""&&m&&!parseFloat(M)&&(e=P?"-":""),e}function fT(e,t){var n=t.prefix;n===void 0&&(n="");var r=t.suffix;r===void 0&&(r="");var i=Array.from({length:e.length+1}).map(function(){return!0}),o=e[0]==="-";i.fill(!1,0,n.length+(o?1:0));var a=e.length;return i.fill(!1,a-r.length+1,a+1),i}function hT(e){var t=Bu(e),n=t.thousandSeparator,r=t.decimalSeparator,i=e.prefix;i===void 0&&(i="");var o=e.allowNegative;if(o===void 0&&(o=!0),n===r)throw new Error(`
108
+ `,onClick:v,onMouseOver:()=>g(!0),onMouseOut:()=>g(!1),...l?l(u.slug):{},children:[w.isValidElement(u.svgIcon)&&E.jsx("div",{className:Xe["item-icon"],children:m||u.subs.length>0&&y||f?u.svgIconActive:u.svgIcon}),E.jsx("div",{className:Xe["item-label"],children:u.label}),u.subs.length>0&&n&&E.jsxs("div",{className:Xe["item-icon-subs"],children:[w.isValidElement(i)&&i,typeof i=="function"&&i()]})]}),u.parent===4&&!u.subs.length&&E.jsx("div",{className:Xe["divider-item-sidebar"]})]})),u.subs.length>0?E.jsxs("div",{className:`${n||y?"":"-mt-2"}`,children:[d,E.jsx("div",{className:`${Xe["item-subs-sidebar"]} ${!n||!y?Xe.hidden:""}`,children:u.subs.map(T=>w.createElement(T3,{...T,as:T.manualRoute?"div":T.subs.length>0?e:u.linkComponent,key:T.name,patch:r,iconSubs:i,show:t,open:n,variant:o,setShow:a}))}),[3,4].includes(u.parent)&&E.jsx("div",{className:Xe["divider-item-sidebar"]})]}):d):E.jsx(E.Fragment,{})},k3=w.forwardRef((e,t)=>{var M;const{as:n,children:r,patch:i="/",iconCompany:o,iconSubs:a,iconCollapse:s,iconCollapseClose:l,modules:u,toleranceWidthIconCompany:c=25,onClickItems:d,variant:h="payhere-brand-base-white",footer:f,withInheritance:g,...m}=e,b=w.useRef(null),y={withCuctomWidthIconCompany:["payhere-brand-base-white","payhere-brand-base-transparent"],variants:{"payhere-brand-base-white":nn["payhere-brand-base-white"],"payhere-brand-base-transparent":nn["payhere-brand-base-transparent"],"laba-white":nn["laba-white"]}},[v,x]=w.useState(null),[C,D]=w.useState(null),[I,T]=w.useState(""),[p,S]=w.useState(),[$,_]=w.useState(0),A=()=>{var B;let P=0;const F=document.getElementById("icon-company-sidebar");(B=F==null?void 0:F.childNodes)==null||B.forEach(N=>{P+=N.getBoundingClientRect().width??0}),S(P+c+"px")},k=()=>{_(window.innerWidth)},R=()=>{x(!C),C?S("auto"):setTimeout(()=>{A()},100)};return w.useEffect(()=>{$>=768?(x(!0),setTimeout(()=>{A()},100)):(x(!1),S("auto"))},[$]),w.useEffect(()=>{typeof v=="boolean"&&D(v)},[v]),w.useImperativeHandle(t,()=>({openSidebar:v,setOpenSidebar:x,handlerClickCollapse:R}),[v,C]),w.useEffect(()=>(i&&i.split("/").length>1&&T(i+"/"),A(),k(),window.addEventListener("resize",k),()=>window.removeEventListener("resize",k)),[]),E.jsxs("div",{className:y.variants[h],...m,ref:b,children:[E.jsxs("div",{id:"1ru-sidebar",className:`${nn.sidebar} ${typeof C=="boolean"&&C?nn["sidebar-open"]:""} ${typeof C=="boolean"&&!C?nn["sidebar-close"]:""}`,children:[w.isValidElement(s)&&E.jsxs("div",{className:nn["button-collaps-sidebar"],onClick:R,children:[v&&s,v?"":w.isValidElement(l)?l:s]}),E.jsx("div",{className:nn["container-icon-company-sidebar"],children:E.jsxs("div",{id:"icon-company-sidebar",className:nn["icon-company-sidebar"],style:{width:p&&y.withCuctomWidthIconCompany.includes(h)?p:"100%"},children:[w.isValidElement(o)&&o,typeof o=="function"&&o({openSidebar:C,setOpenSidebar:x})]})}),E.jsx("div",{className:nn["menu-sidebar"],onMouseOver:()=>{v||D(!0)},onMouseOut:()=>{v||D(!1)},children:u.map(P=>w.createElement(T3,{...P,as:P.manualRoute||P.subs.length>0?"div":n,linkComponent:n,key:P.name,show:I,open:C,patch:i,iconSubs:a,variant:h,setShow:T,onClickItems:d}))}),f&&E.jsxs("div",{className:C?"1ru-opacity-[1]":"1ru-opacity-0",children:[w.isValidElement(f)&&E.jsx("div",{children:f}),typeof f=="function"&&E.jsx("div",{children:f()})]})]}),v&&E.jsx("div",{className:nn["splace-screen"],onClick:R}),E.jsxs("div",{className:nn["content-sidebar"],children:[g&&((M=w.Children)==null?void 0:M.map(r,P=>E.jsx(E.Fragment,{children:w.isValidElement(P)&&E.jsx(E.Fragment,{children:w.cloneElement(P,{openSidebar:v,handlerClickCollapse:R})})}))),!g&&E.jsx(E.Fragment,{children:r})]})]})});k3.displayName="Sidebar";const VP="_collapse_gto9s_1",LP={collapse:VP},HP=({children:e,id:t,open:n,className:r,classNameContainer:i,maxCollapsedHeight:o="0px",triggerCalCulateContainer:a,delayTriggerCalculateHeight:s=0})=>{const[l,u]=w.useState("1000vh"),c=()=>{var h;const d=((h=document==null?void 0:document.getElementById(t))==null?void 0:h.offsetHeight)??0;u(d||"1000vh")};return w.useEffect(()=>{const d=setTimeout(c,s);return window==null||window.addEventListener("resize",c),window==null||window.addEventListener("load",c),()=>{clearTimeout(d),window==null||window.removeEventListener("resize",c),window==null||window.removeEventListener("load",c)}},[a]),E.jsx("div",{className:`${LP.collapse} ${i??""}`,style:{maxHeight:n?l:o},children:E.jsx("div",{id:t,className:r??"",children:e})})},jP="_modal_9v1mi_1",wr={modal:jP,"modal-content":"_modal-content_9v1mi_1","with-overlay":"_with-overlay_9v1mi_14","modal-small":"_modal-small_9v1mi_24","modal-medium":"_modal-medium_9v1mi_28","modal-regular":"_modal-regular_9v1mi_32","modal-large":"_modal-large_9v1mi_36","modal-show":"_modal-show_9v1mi_40"},WP=({as:e,children:t,id:n="modal",idModal:r="1ru-modal",withOverlay:i=!0,show:o,size:a="regular",className:s,classNameContainer:l,onClose:u,...c})=>{const d=e??"div",h={size:{small:wr["modal-small"],medium:wr["modal-medium"],regular:wr["modal-regular"],large:wr["modal-large"]}},f=()=>{typeof u=="function"&&u()};return E.jsx(E.Fragment,{children:o&&document.getElementById(r)&&Xa.createPortal(E.jsx("div",{id:n,onClick:f,className:`${wr.modal} ${i?wr["with-overlay"]:""} ${o?wr["modal-show"]:""} ${l??""}`,children:E.jsx(d,{onClick:g=>g.stopPropagation(),className:`${wr["modal-content"]} ${h.size[a]} ${s??""}`,...c,children:t})}),document.getElementById(r))})},zP="_dot_10oqk_31",Fn={"timeline-container":"_timeline-container_10oqk_1","no-time":"_no-time_10oqk_11","timeline-content":"_timeline-content_10oqk_15","left-content":"_left-content_10oqk_18","time-content":"_time-content_10oqk_24","text-time":"_text-time_10oqk_27",dot:zP,"right-content":"_right-content_10oqk_34"},GP=({children:e,noTime:t=!1})=>E.jsx("div",{className:`${Fn["timeline-container"]} ${t?Fn["no-time"]:""}`,children:e}),ZP=({children:e,time:t,clasName:n,noTime:r=!1})=>E.jsxs("div",{className:Fn["timeline-content"],children:[E.jsx("div",{className:`${Fn["left-content"]} ${r?Fn["no-time"]:""}`,children:E.jsxs("div",{className:Fn["time-content"],children:[!r&&E.jsx("time",{className:Fn["text-time"],children:t??""}),E.jsx("div",{className:Fn.dot})]})}),E.jsx("div",{className:`${Fn["right-content"]} ${r?Fn["no-time"]:""} ${n??""}`,children:e})]}),XP=Object.assign(GP,{TimelineContent:ZP}),Ms=(e,t,n)=>{if((t==null?void 0:t.length)>0){const r={};return t.forEach(i=>{e[i]&&(r[i]=e[i]),n&&e[`${n}${i}`]&&(r[`${n}${i}`]=e[`${n}${i}`])}),r}return e},M3=w.forwardRef((e,t)=>{const{children:n,onChange:r,prefixNativeValue:i="",defaultNativeValue:o,defaultValue:a,mountedExecuteChange:s=!0,keepKeys:l=[],resetPagination:u=!0,keyPageNumber:c="pageNumber",triggerReset:d={},reset:h}=e,f=u?{[c]:1}:{},[g,m]=w.useState(Ms(a??{},l,"")),[b,y]=w.useState(bg(i,Ms(o??{},l,i))),[v,x]=w.useState(!1),C=(T,p)=>{const S={};return Object.keys(p).forEach($=>{S[`${T}${$}`]=p[$]}),S},D=(T,p,S,$)=>{let _=T;const A=C(i,{[p]:T});Array.isArray(T)&&(S==="array-of-object-to-array"?_=yf(T,$):S==="array-of-object-to-string"?_=vf(T,$):S==="array-to-string"&&(_=_.toString())),typeof r=="function"&&r({...g,[p]:_,...f},{...b,...A}),m(k=>({...k,[p]:_})),y(k=>({...k,...A}))},I=(T,p)=>{const $=C(i,{...p??T});typeof r=="function"&&r({...g,...T,...f},{...b,...$}),m(_=>({..._,...T})),y(_=>({..._,...$}))};return Ci(()=>{!v&&typeof r=="function"&&s&&(r(g,b),x(!0))},[g,b,v,s]),Ci(()=>{h&&(y(bg(i,Ms(o??{},l,i))),m(Ms(a??{},l,"")))},[h,d]),w.useImperativeHandle(t,()=>({nativeValue:b,value:g,handlerOnChange:D,handlerOnChangeNative:I}),[wa(g),wa(b)]),E.jsx(E.Fragment,{children:n({handlerOnChange:D,handlerOnChangeNative:I,value:g,nativeValue:b})})});M3.displayName="FilterContainer";function Hh(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 Oa;(function(e){e.event="event",e.props="prop"})(Oa||(Oa={}));function or(){}function YP(e){var t,n=void 0;return function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return t&&r.length===t.length&&r.every(function(o,a){return o===t[a]})||(t=r,n=e.apply(void 0,r)),n}}function Ii(e){return!!(e||"").match(/\d/)}function gi(e){return e==null}function UP(e){return typeof e=="number"&&isNaN(e)}function B3(e){return gi(e)||UP(e)||typeof e=="number"&&!isFinite(e)}function O3(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function JP(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 KP(e,t,n){var r=JP(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 qP(e){var t=w.useRef(e);t.current=e;var n=w.useRef(function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return t.current.apply(t,r)});return n.current}function jh(e,t){t===void 0&&(t=!0);var n=e[0]==="-",r=n&&t;e=e.replace("-","");var i=e.split("."),o=i[0],a=i[1]||"";return{beforeDecimal:o,afterDecimal:a,hasNegation:n,addNegation:r}}function QP(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 N3(e,t,n){for(var r="",i=n?"0":"",o=0;o<=t-1;o++)r+=e[o]||i;return r}function kp(e,t){return Array(t+1).join(e)}function V3(e){var t=e+"",n=t[0]==="-"?"-":"";n&&(t=t.substring(1));var r=t.split(/[eE]/g),i=r[0],o=r[1];if(o=Number(o),!o)return n+i;i=i.replace(".","");var a=1+o,s=i.length;return a<0?i="0."+kp("0",Math.abs(a))+i:a>=s?i=i+kp("0",a-s):i=(i.substring(0,a)||"0")+"."+i.substring(a),n+i}function Mp(e,t,n){if(["","-"].indexOf(e)!==-1)return e;var r=(e.indexOf(".")!==-1||n)&&t,i=jh(e),o=i.beforeDecimal,a=i.afterDecimal,s=i.hasNegation,l=parseFloat("0."+(a||"0")),u=a.length<=t?"0."+a:l.toFixed(t),c=u.split("."),d=o;o&&Number(c[0])&&(d=o.split("").reverse().reduce(function(m,b,y){return m.length>y?(Number(m[0])+Number(b)).toString()+m.substring(1,m.length):b+m},c[0]));var h=N3(c[1]||"",t,n),f=s?"-":"",g=r?".":"";return""+f+d+g+h}function Rr(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 L3=YP(function(e,t){for(var n=0,r=0,i=e.length,o=t.length;e[n]===t[n]&&n<i;)n++;for(;e[i-1-r]===t[o-1-r]&&o-r>n&&i-r>n;)r++;return{from:{start:n,end:i-r},to:{start:n,end:o-r}}}),eT=function(e,t){var n=Math.min(e.selectionStart,t);return{from:{start:n,end:e.selectionEnd},to:{start:n,end:t}}};function tT(e,t,n){return Math.min(Math.max(e,t),n)}function Mc(e){return Math.max(e.selectionStart,e.selectionEnd)}function nT(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function H3(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function j3(e,t){return e===void 0&&(e=" "),typeof e=="string"?e:e[t]||" "}function rT(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,i=e.formattedValueIndex;return t[r]===n[i]}function iT(e,t,n,r,i,o,a){a===void 0&&(a=rT);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 u=n.length,c=e.length,d={},h=new Array(u),f=0;f<u;f++){h[f]=-1;for(var g=0,m=c;g<m;g++){var b=a({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:f,formattedValueIndex:g});if(b&&d[g]!==!0){h[f]=g,d[g]=!0;break}}}for(var y=r;y<u&&(h[y]===-1||!o(n[y]));)y++;var v=y===u||h[y]===-1?c:h[y];for(y=r-1;y>0&&h[y]===-1;)y--;var x=y===-1||h[y]===-1?0:h[y]+1;return x>v?v:r-x<v-r?x:v}function ql(e,t,n,r){var i=e.length;if(t=tT(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 oT(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),n=0,r=t.length;n<r;n++)t[n]=!!(Ii(e[n])||Ii(e[n-1]));return t}function W3(e,t,n,r,i,o){o===void 0&&(o=or);var a=qP(function(g,m){var b,y;return B3(g)?(y="",b=""):typeof g=="number"||m?(y=typeof g=="number"?V3(g):g,b=r(y)):(y=i(g,void 0),b=r(y)),{formattedValue:b,numAsString:y}}),s=w.useState(function(){return a(gi(e)?t:e,n)}),l=s[0],u=s[1],c=function(g,m){g.formattedValue!==l.formattedValue&&u({formattedValue:g.formattedValue,numAsString:g.value}),o(g,m)},d=e,h=n;gi(e)&&(d=l.numAsString,h=!0);var f=a(d,h);return w.useMemo(function(){u(f)},[f.formattedValue]),[l,c]}function aT(e){return e.replace(/[^0-9]/g,"")}function sT(e){return e}function z3(e){var t=e.type;t===void 0&&(t="text");var n=e.displayType;n===void 0&&(n="input");var r=e.customInput,i=e.renderText,o=e.getInputRef,a=e.format;a===void 0&&(a=sT);var s=e.removeFormatting;s===void 0&&(s=aT);var l=e.defaultValue,u=e.valueIsNumericString,c=e.onValueChange,d=e.isAllowed,h=e.onChange;h===void 0&&(h=or);var f=e.onKeyDown;f===void 0&&(f=or);var g=e.onMouseUp;g===void 0&&(g=or);var m=e.onFocus;m===void 0&&(m=or);var b=e.onBlur;b===void 0&&(b=or);var y=e.value,v=e.getCaretBoundary;v===void 0&&(v=oT);var x=e.isValidInputCharacter;x===void 0&&(x=Ii);var C=e.isCharacterSame,D=Hh(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),I=W3(y,l,!!u,a,s,c),T=I[0],p=T.formattedValue,S=T.numAsString,$=I[1],_=w.useRef(),A=w.useRef({formattedValue:p,numAsString:S}),k=function(ne,ie){A.current={formattedValue:ne.formattedValue,numAsString:ne.value},$(ne,ie)},R=w.useState(!1),M=R[0],P=R[1],F=w.useRef(null),B=w.useRef({setCaretTimeout:null,focusTimeout:null});w.useEffect(function(){return P(!0),function(){clearTimeout(B.current.setCaretTimeout),clearTimeout(B.current.focusTimeout)}},[]);var N=a,O=function(ne,ie){var ve=parseFloat(ie);return{formattedValue:ne,value:ie,floatValue:isNaN(ve)?void 0:ve}},L=function(ne,ie,ve){ne.selectionStart===0&&ne.selectionEnd===ne.value.length||(Rr(ne,ie),B.current.setCaretTimeout=setTimeout(function(){ne.value===ve&&ne.selectionStart!==ie&&Rr(ne,ie)},0))},W=function(ne,ie,ve){return ql(ne,ie,v(ne),ve)},Z=function(ne,ie,ve){var Le=v(ie),at=iT(ie,p,ne,ve,Le,x,C);return at=ql(ie,at,Le),at},j=function(ne){var ie=ne.formattedValue;ie===void 0&&(ie="");var ve=ne.input,Le=ne.source,at=ne.event,Re=ne.numAsString,Ie;if(ve){var en=ne.inputValue||ve.value,hn=Mc(ve);ve.value=ie,Ie=Z(en,ie,hn),Ie!==void 0&&L(ve,Ie,ie)}ie!==p&&k(O(ie,Re),{event:at,source:Le})};w.useEffect(function(){var ne=A.current,ie=ne.formattedValue,ve=ne.numAsString;(p!==ie||S!==ve)&&k(O(p,S),{event:void 0,source:Oa.props})},[p,S]);var H=F.current?Mc(F.current):void 0,V=typeof window<"u"?w.useLayoutEffect:w.useEffect;V(function(){var ne=F.current;if(p!==A.current.formattedValue&&ne){var ie=Z(A.current.formattedValue,p,H);ne.value=p,L(ne,ie,p)}},[p]);var z=function(ne,ie,ve){var Le=ie.target,at=_.current?eT(_.current,Le.selectionEnd):L3(p,ne),Re=Object.assign(Object.assign({},at),{lastValue:p}),Ie=s(ne,Re),en=N(Ie);if(Ie=s(en,void 0),d&&!d(O(en,Ie))){var hn=ie.target,gn=Mc(hn),Mi=Z(ne,p,gn);return hn.value=p,L(hn,Mi,p),!1}return j({formattedValue:en,numAsString:Ie,inputValue:ne,event:ie,source:ve,input:ie.target}),!0},Y=function(ne,ie){ie===void 0&&(ie=0);var ve=ne.selectionStart,Le=ne.selectionEnd;_.current={selectionStart:ve,selectionEnd:Le+ie}},K=function(ne){var ie=ne.target,ve=ie.value,Le=z(ve,ne,Oa.event);Le&&h(ne),_.current=void 0},Q=function(ne){var ie=ne.target,ve=ne.key,Le=ie.selectionStart,at=ie.selectionEnd,Re=ie.value;Re===void 0&&(Re="");var Ie;ve==="ArrowLeft"||ve==="Backspace"?Ie=Math.max(Le-1,0):ve==="ArrowRight"?Ie=Math.min(Le+1,Re.length):ve==="Delete"&&(Ie=Le);var en=0;ve==="Delete"&&Le===at&&(en=1);var hn=ve==="ArrowLeft"||ve==="ArrowRight";if(Ie===void 0||Le!==at&&!hn){f(ne),Y(ie,en);return}var gn=Ie;if(hn){var Mi=ve==="ArrowLeft"?"left":"right";gn=W(Re,Ie,Mi),gn!==Ie&&ne.preventDefault()}else ve==="Delete"&&!x(Re[Ie])?gn=W(Re,Ie,"right"):ve==="Backspace"&&!x(Re[Ie])&&(gn=W(Re,Ie,"left"));gn!==Ie&&L(ie,gn,Re),f(ne),Y(ie,en)},ee=function(ne){var ie=ne.target,ve=function(){var Le=ie.selectionStart,at=ie.selectionEnd,Re=ie.value;if(Re===void 0&&(Re=""),Le===at){var Ie=W(Re,Le);Ie!==Le&&L(ie,Ie,Re)}};ve(),requestAnimationFrame(function(){ve()}),g(ne),Y(ie)},X=function(ne){ne.persist&&ne.persist();var ie=ne.target,ve=ne.currentTarget;F.current=ie,B.current.focusTimeout=setTimeout(function(){var Le=ie.selectionStart,at=ie.selectionEnd,Re=ie.value;Re===void 0&&(Re="");var Ie=W(Re,Le);Ie!==Le&&!(Le===0&&at===Re.length)&&L(ie,Ie,Re),m(Object.assign(Object.assign({},ne),{currentTarget:ve}))},0)},ue=function(ne){F.current=null,clearTimeout(B.current.focusTimeout),clearTimeout(B.current.setCaretTimeout),b(ne)},fe=M&&nT()?"numeric":void 0,he=Object.assign({inputMode:fe},D,{type:t,value:p,onChange:K,onKeyDown:Q,onMouseUp:ee,onFocus:X,onBlur:ue});if(n==="text")return i?w.createElement(w.Fragment,null,i(p,D)||null):w.createElement("span",Object.assign({},D,{ref:o}),p);if(r){var ht=r;return w.createElement(ht,Object.assign({},he,{ref:o}))}return w.createElement("input",Object.assign({},he,{ref:o}))}function Bp(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,i=t.prefix;i===void 0&&(i="");var o=t.suffix;o===void 0&&(o="");var a=t.allowNegative,s=t.thousandsGroupStyle;if(s===void 0&&(s="thousand"),e===""||e==="-")return e;var l=Bu(t),u=l.thousandSeparator,c=l.decimalSeparator,d=n!==0&&e.indexOf(".")!==-1||n&&r,h=jh(e,a),f=h.beforeDecimal,g=h.afterDecimal,m=h.addNegation;return n!==void 0&&(g=N3(g,n,!!r)),u&&(f=KP(f,u,s)),i&&(f=i+f),o&&(g=g+o),m&&(f="-"+f),e=f+(d&&c||"")+g,e}function Bu(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 lT(e,t){e===void 0&&(e="");var n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),i=n.test(e),o=r.test(e);return e=e.replace(/-/g,""),i&&!o&&t&&(e="-"+e),e}function uT(e,t){return new RegExp("(^-)|[0-9]|"+O3(e),"g")}function cT(e,t,n){return e===""?!0:!(t!=null&&t.match(/\d/))&&!(n!=null&&n.match(/\d/))&&typeof e=="string"&&!isNaN(Number(e))}function dT(e,t,n){var r;t===void 0&&(t=H3(e));var i=n.allowNegative,o=n.prefix;o===void 0&&(o="");var a=n.suffix;a===void 0&&(a="");var s=n.decimalScale,l=t.from,u=t.to,c=u.start,d=u.end,h=Bu(n),f=h.allowedDecimalSeparators,g=h.decimalSeparator,m=e[d]===g;if(Ii(e)&&(e===o||e===a)&&t.lastValue==="")return e;if(d-c===1&&f.indexOf(e[c])!==-1){var b=s===0?"":g;e=e.substring(0,c)+b+e.substring(c+1,e.length)}var y=function(F,B,N){var O=!1,L=!1;o.startsWith("-")?O=!1:F.startsWith("--")?(O=!1,L=!0):a.startsWith("-")&&F.length===a.length?O=!1:F[0]==="-"&&(O=!0);var W=O?1:0;return L&&(W=2),W&&(F=F.substring(W),B-=W,N-=W),{value:F,start:B,end:N,hasNegation:O}},v=y(e,c,d),x=v.hasNegation;r=v,e=r.value,c=r.start,d=r.end;var C=y(t.lastValue,l.start,l.end),D=C.start,I=C.end,T=C.value,p=e.substring(c,d);e.length&&T.length&&(D>T.length-a.length||I<o.length)&&!(p&&a.startsWith(p))&&(e=T);var S=0;e.startsWith(o)?S+=o.length:c<o.length&&(S=c),e=e.substring(S),d-=S;var $=e.length,_=e.length-a.length;e.endsWith(a)?$=_:(d>_||d>e.length-a.length)&&($=d),e=e.substring(0,$),e=lT(x?"-"+e:e,i),e=(e.match(uT(g))||[]).join("");var A=e.indexOf(g);e=e.replace(new RegExp(O3(g),"g"),function(F,B){return B===A?".":""});var k=jh(e,i),R=k.beforeDecimal,M=k.afterDecimal,P=k.addNegation;return u.end-u.start<l.end-l.start&&R===""&&m&&!parseFloat(M)&&(e=P?"-":""),e}function fT(e,t){var n=t.prefix;n===void 0&&(n="");var r=t.suffix;r===void 0&&(r="");var i=Array.from({length:e.length+1}).map(function(){return!0}),o=e[0]==="-";i.fill(!1,0,n.length+(o?1:0));var a=e.length;return i.fill(!1,a-r.length+1,a+1),i}function hT(e){var t=Bu(e),n=t.thousandSeparator,r=t.decimalSeparator,i=e.prefix;i===void 0&&(i="");var o=e.allowNegative;if(o===void 0&&(o=!0),n===r)throw new Error(`
109
109
  Decimal separator can't be same as thousand separator.
110
110
  thousandSeparator: `+n+` (thousandSeparator = {true} is same as thousandSeparator = ",")
111
111
  decimalSeparator: `+r+` (default value for decimalSeparator is .)
@@ -113,7 +113,7 @@ You should wrap it with \`css\` like this:
113
113
  Prefix can't start with '-' when allowNegative is true.
114
114
  prefix: `+i+`
115
115
  allowNegative: `+o+`
116
- `),o=!1),Object.assign(Object.assign({},e),{allowNegative:o})}function gT(e){e=hT(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,i=e.onKeyDown;i===void 0&&(i=or);var o=e.onBlur;o===void 0&&(o=or);var a=e.thousandSeparator,s=e.decimalScale,l=e.fixedDecimalScale,u=e.prefix;u===void 0&&(u="");var c=e.defaultValue,d=e.value,h=e.valueIsNumericString,f=e.onValueChange,g=jh(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),m=Bu(e),b=m.decimalSeparator,y=m.allowedDecimalSeparators,v=function(P){return Bp(P,e)},x=function(P,F){return dT(P,F,e)},C=gi(d)?c:d,D=h??cT(C,u,t);gi(d)?gi(c)||(D=D||typeof c=="number"):D=D||typeof d=="number";var I=function(P){return B3(P)?P:(typeof P=="number"&&(P=V3(P)),D&&typeof s=="number"?Mp(P,s,!!l):P)},T=W3(I(d),I(c),!!D,v,x,f),p=T[0],S=p.numAsString,$=p.formattedValue,_=T[1],A=function(P){var F=P.target,B=P.key,N=F.selectionStart,O=F.selectionEnd,L=F.value;if(L===void 0&&(L=""),(B==="Backspace"||B==="Delete")&&O<u.length){P.preventDefault();return}if(N!==O){i(P);return}B==="Backspace"&&L[0]==="-"&&N===u.length+1&&n&&Rr(F,1),s&&l&&(B==="Backspace"&&L[N-1]===b?(Rr(F,N-1),P.preventDefault()):B==="Delete"&&L[N]===b&&P.preventDefault()),y!=null&&y.includes(B)&&L[N]===b&&Rr(F,N+1);var W=a===!0?",":a;B==="Backspace"&&L[N-1]===W&&Rr(F,N-1),B==="Delete"&&L[N]===W&&Rr(F,N+1),i(P)},k=function(P){var F=S;if(F.match(/\d/g)||(F=""),r||(F=QP(F)),l&&s&&(F=Mp(F,s,l)),F!==S){var B=Bp(F,e);_({formattedValue:B,value:F,floatValue:parseFloat(F)},{event:P,source:Oa.event})}o(P)},R=function(P){return P===b?!0:Ii(P)},M=function(P){var F=P.currentValue,B=P.lastValue,N=P.formattedValue,O=P.currentValueIndex,L=P.formattedValueIndex,W=F[O],Z=N[L],H=L3(B,F),j=H.to;return O>=j.start&&O<j.end&&y&&y.includes(W)&&Z===b?!0:W===Z};return Object.assign(Object.assign({},g),{value:$,valueIsNumericString:!1,isValidInputCharacter:R,isCharacterSame:M,onValueChange:_,format:v,removeFormatting:x,getCaretBoundary:function(P){return fT(P,e)},onKeyDown:A,onBlur:k})}function mT(e){var t=gT(e);return w.createElement(z3,Object.assign({},t))}function pT(e,t){var n=t.format,r=t.allowEmptyFormatting,i=t.mask,o=t.patternChar;if(o===void 0&&(o="#"),e===""&&!r)return"";for(var a=0,s=n.split(""),l=0,u=n.length;l<u;l++)n[l]===o&&(s[l]=e[a]||H3(i,a),a+=1);return s.join("")}function bT(e,t,n){t===void 0&&(t=j3(e));var r=n.format,i=n.patternChar;i===void 0&&(i="#");var o=t.from,a=t.to,s=t.lastValue;s===void 0&&(s="");var l=function(b){return r[b]===i},u=function(b,y){for(var v="",x=0;x<b.length;x++)l(y+x)&&Ii(b[x])&&(v+=b[x]);return v},c=function(b){return b.replace(/[^0-9]/g,"")};if(!r.match(/\d/))return c(e);if((s===""||o.end-o.start===s.length)&&e.length===r.length){for(var d="",h=0;h<e.length;h++)if(l(h))Ii(e[h])&&(d+=e[h]);else if(e[h]!==r[h])return c(e);return d}var f=s.substring(0,o.start),g=e.substring(a.start,a.end),m=s.substring(o.end);return""+u(f,0)+c(g)+u(m,o.end)}function vT(e,t){var n=t.format,r=t.mask,i=t.patternChar;i===void 0&&(i="#");var o=Array.from({length:e.length+1}).map(function(){return!0}),a=0,s=-1,l={};n.split("").forEach(function(h,f){var g=void 0;h===i&&(a++,g=H3(r,a-1),s===-1&&e[f]===g&&(s=f)),l[f]=g});for(var u=function(h){return n[h]===i&&e[h]!==l[h]},c=0,d=o.length;c<d;c++)o[c]=c===s||u(c)||u(c-1);return o[n.indexOf(i)]=!0,o}function yT(e){var t=e.mask;if(t){var n=t==="string"?t:t.toString();if(n.match(/\d/g))throw new Error("Mask "+t+" should not contain numeric character;")}}function xT(e,t){return e===""?!0:!(t!=null&&t.match(/\d/))&&typeof e=="string"&&(!!e.match(/^\d+$/)||e==="")}function CT(e){e.mask,e.allowEmptyFormatting;var t=e.format,n=e.inputMode;n===void 0&&(n="numeric");var r=e.onKeyDown;r===void 0&&(r=or);var i=e.patternChar;i===void 0&&(i="#");var o=e.value,a=e.defaultValue,s=e.valueIsNumericString,l=jh(e,["mask","allowEmptyFormatting","format","inputMode","onKeyDown","patternChar","value","defaultValue","valueIsNumericString"]);yT(e);var u=function(g){return vT(g,e)},c=function(g){var m=g.key,b=g.target,y=b.selectionStart,v=b.selectionEnd,x=b.value;if(y!==v){r(g);return}var C=y;if(m==="Backspace"||m==="Delete"){var D="right";if(m==="Backspace"){for(;C>0&&t[C-1]!==i;)C--;D="left"}else{for(var I=t.length;C<I&&t[C]!==i;)C++;D="right"}C=ql(x,C,u(x),D)}else t[C]!==i&&m!=="ArrowLeft"&&m!=="ArrowRight"&&(C=ql(x,C+1,u(x),"right"));C!==y&&Rr(b,C),r(g)},d=gi(o)?a:o,h=s??xT(d,t),f=Object.assign(Object.assign({},e),{valueIsNumericString:h});return Object.assign(Object.assign({},l),{value:o,defaultValue:a,valueIsNumericString:h,inputMode:n,format:function(g){return pT(g,f)},removeFormatting:function(g,m){return bT(g,m,f)},getCaretBoundary:u,onKeyDown:c})}function wT(e){var t=CT(e);return w.createElement(z3,Object.assign({},t))}const DT=({max:e,min:t,selectedText:n="Rp0",onChange:r,onFocusInput:i,...o})=>E.jsx(mT,{isAllowed:a=>e!==void 0&&zn(e)&&Ue(a.value).isGreaterThan(e)?(typeof r=="function"&&r({target:{value:Ue(e).toString()}}),!1):t!==void 0&&zn(t)&&Ue(a.value).isLessThan(t)?(typeof r=="function"&&r({target:{value:Ue(t).toString()}}),!1):!0,onValueChange:(a,{source:s})=>{typeof r=="function"&&s.includes("event")&&r({target:{value:a.value}})},decimalSeparator:",",thousandSeparator:".",decimalScale:2,valueIsNumericString:!0,thousandsGroupStyle:"thousand",onFocus:a=>{var s;((s=a==null?void 0:a.target)==null?void 0:s.value)===n&&(typeof i=="function"?i(""):typeof r=="function"&&r({target:{value:""}}))},...o}),Wh=({children:e,containerId:t="portal-root",selector:n})=>{const[r,i]=w.useState(null);return w.useEffect(()=>{let o=n?document.querySelector(n):document.getElementById(t),a=!1;return o||(o=document.createElement("div"),o.id=t,document.body.appendChild(o),a=!0),i(o),()=>{a&&o&&document.body.removeChild(o)}},[t,n]),r?Xa.createPortal(e,r):null},ST={"button-remove":"_button-remove_1o2yg_1"},ET=()=>E.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.19544 6.19126C6.32045 6.06628 6.48999 5.99607 6.66677 5.99607C6.84354 5.99607 7.01308 6.06628 7.1381 6.19126L10.0001 9.05326L12.8621 6.19126C12.9236 6.12758 12.9972 6.0768 13.0785 6.04186C13.1598 6.00692 13.2473 5.98853 13.3358 5.98776C13.4244 5.98699 13.5121 6.00386 13.5941 6.03738C13.676 6.0709 13.7504 6.1204 13.813 6.18299C13.8756 6.24559 13.9251 6.32002 13.9587 6.40195C13.9922 6.48389 14.009 6.57167 14.0083 6.66019C14.0075 6.74871 13.9891 6.83619 13.9542 6.91753C13.9192 6.99886 13.8684 7.07243 13.8048 7.13392L10.9428 9.99592L13.8048 12.8579C13.9262 12.9837 13.9934 13.1521 13.9919 13.3269C13.9904 13.5017 13.9203 13.6689 13.7966 13.7925C13.673 13.9161 13.5058 13.9862 13.331 13.9877C13.1562 13.9892 12.9878 13.922 12.8621 13.8006L10.0001 10.9386L7.1381 13.8006C7.01237 13.922 6.84397 13.9892 6.66917 13.9877C6.49437 13.9862 6.32716 13.9161 6.20356 13.7925C6.07995 13.6689 6.00984 13.5017 6.00832 13.3269C6.0068 13.1521 6.074 12.9837 6.19544 12.8579L9.05744 9.99592L6.19544 7.13392C6.07045 7.00891 6.00024 6.83937 6.00024 6.66259C6.00024 6.48581 6.07045 6.31628 6.19544 6.19126Z",fill:"#212121"})}),IT=()=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:E.jsx("path",{d:"M2 11.3334V4.66671C2 4.31309 2.14048 3.97395 2.39052 3.7239C2.64057 3.47385 2.97971 3.33337 3.33333 3.33337H7.33333L8.66667 4.66671H12.6667C13.0203 4.66671 13.3594 4.80718 13.6095 5.05723C13.8595 5.30728 14 5.64642 14 6.00004V11.3334C14 11.687 13.8595 12.0261 13.6095 12.2762C13.3594 12.5262 13.0203 12.6667 12.6667 12.6667H3.33333C2.97971 12.6667 2.64057 12.5262 2.39052 12.2762C2.14048 12.0261 2 11.687 2 11.3334Z",stroke:"#9E9E9E",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),G3=e=>{const t=w.useRef(null),{fileName:n,onChange:r,maxFile:i,maxSize:o=2,validateFile:a,error:s,label:l,inputProps:u,priorityError:c="external",eventError:d}=e,h=a||["image/png","image/jpeg","image/jpg"],[f,g]=w.useState(""),m={internal:f||s,external:s||f},b=x=>{if(x!=null&&x.length){const C=x[0],D=C.size/1024/1024;let I="";if(h.some(T=>{var p;return(p=x[0].type)==null?void 0:p.includes(T)})?D>o?I=`${x.length>1?"Jumlah u":"U"}kuran berkas tidak boleh melebihi ${o}MB.`:r(C):I="Berkas tidak didukung, silahkan pilih file kembali.",g(I),d==null||d(I),!(t!=null&&t.current))return;t.current.value=""}},y=x=>{var C;x.preventDefault(),t!=null&&t.current&&((C=t.current)==null||C.click())},v=x=>{x.preventDefault(),t!=null&&t.current&&(r(null),t.current.value="")};return E.jsxs(E.Fragment,{children:[E.jsx("input",{accept:h==null?void 0:h.join(", "),ref:t,hidden:!0,type:"file",max:i,onChange:x=>{b(x.target.files)}}),E.jsx(Tf,{sizeInput:"medium",placeholder:"Pilih Berkas",label:l,value:n,readOnly:!0,onClick:x=>y(x),startIcon:E.jsx(IT,{}),endIcon:n&&E.jsx("div",{className:ST["button-remove"],onClick:x=>v(x),children:E.jsx(ET,{})}),error:m[c],...u})]})};G3.displayName="UploadFile";const _T=({children:e,initialVisibleCount:t,maxWidth:n,moreElement:r,style:i={},className:o,gap:a=0,gapStyle:s,triggerCalCulateContainer:l={},...u})=>{const[c,d]=w.useState(e),[h,f]=w.useState(0),g=w.useRef(new Array(t).fill(null)),m=w.useRef(null),b=w.useCallback(()=>{var I;const x=((I=m.current)==null?void 0:I.offsetWidth)??0;let C=0,D=0;g.current.forEach((T,p)=>{T&&(C+=T.offsetWidth,p>0&&(C+=a),C<=x&&D++)}),d(w.Children.toArray(e).slice(0,D)),f(w.Children.count(e)-D)},[e,a]);w.useEffect(()=>(b(),window.addEventListener("resize",b),()=>{window.removeEventListener("resize",b)}),[]);const y=w.useMemo(()=>w.Children.map(c,(x,C)=>w.cloneElement(x,{ref:D=>g.current[C]=D,key:`child-${C}`})),[c]);Ci(()=>{l&&(d(e),setTimeout(()=>b(),100))},[l]);const v={overflow:"hidden",display:"flex",flexWrap:"nowrap",gap:s??0,...i};return n&&(v.maxWidth=n),E.jsxs(E.Fragment,{children:[E.jsx("div",{ref:m,style:v,className:o??"",...u,children:y}),h>0&&E.jsx(E.Fragment,{children:r(h)})]})},$T="_container_1wopr_1",RT="_image_1wopr_5",Kn={container:$T,"image-content":"_image-content_1wopr_5",image:RT,"text-desc":"_text-desc_1wopr_13","action-content":"_action-content_1wopr_20","button-content":"_button-content_1wopr_24","text-error":"_text-error_1wopr_31"},AT=({className:e})=>E.jsx("svg",{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",className:`1ru-h-5 1ru-w-5 1ru-text-red-600 ${e??""}`,fill:"currentColor",children:E.jsx("g",{id:"x",children:E.jsx("path",{id:"Vector",fillRule:"evenodd",clipRule:"evenodd",d:`M6.19544 6.19126C6.32045 6.06628 6.48999 5.99607 6.66677 5.99607C6.84354 5.99607 7.01308 6.06628 7.1381 \r
116
+ `),o=!1),Object.assign(Object.assign({},e),{allowNegative:o})}function gT(e){e=hT(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,i=e.onKeyDown;i===void 0&&(i=or);var o=e.onBlur;o===void 0&&(o=or);var a=e.thousandSeparator,s=e.decimalScale,l=e.fixedDecimalScale,u=e.prefix;u===void 0&&(u="");var c=e.defaultValue,d=e.value,h=e.valueIsNumericString,f=e.onValueChange,g=Hh(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),m=Bu(e),b=m.decimalSeparator,y=m.allowedDecimalSeparators,v=function(P){return Bp(P,e)},x=function(P,F){return dT(P,F,e)},C=gi(d)?c:d,D=h??cT(C,u,t);gi(d)?gi(c)||(D=D||typeof c=="number"):D=D||typeof d=="number";var I=function(P){return B3(P)?P:(typeof P=="number"&&(P=V3(P)),D&&typeof s=="number"?Mp(P,s,!!l):P)},T=W3(I(d),I(c),!!D,v,x,f),p=T[0],S=p.numAsString,$=p.formattedValue,_=T[1],A=function(P){var F=P.target,B=P.key,N=F.selectionStart,O=F.selectionEnd,L=F.value;if(L===void 0&&(L=""),(B==="Backspace"||B==="Delete")&&O<u.length){P.preventDefault();return}if(N!==O){i(P);return}B==="Backspace"&&L[0]==="-"&&N===u.length+1&&n&&Rr(F,1),s&&l&&(B==="Backspace"&&L[N-1]===b?(Rr(F,N-1),P.preventDefault()):B==="Delete"&&L[N]===b&&P.preventDefault()),y!=null&&y.includes(B)&&L[N]===b&&Rr(F,N+1);var W=a===!0?",":a;B==="Backspace"&&L[N-1]===W&&Rr(F,N-1),B==="Delete"&&L[N]===W&&Rr(F,N+1),i(P)},k=function(P){var F=S;if(F.match(/\d/g)||(F=""),r||(F=QP(F)),l&&s&&(F=Mp(F,s,l)),F!==S){var B=Bp(F,e);_({formattedValue:B,value:F,floatValue:parseFloat(F)},{event:P,source:Oa.event})}o(P)},R=function(P){return P===b?!0:Ii(P)},M=function(P){var F=P.currentValue,B=P.lastValue,N=P.formattedValue,O=P.currentValueIndex,L=P.formattedValueIndex,W=F[O],Z=N[L],j=L3(B,F),H=j.to;return O>=H.start&&O<H.end&&y&&y.includes(W)&&Z===b?!0:W===Z};return Object.assign(Object.assign({},g),{value:$,valueIsNumericString:!1,isValidInputCharacter:R,isCharacterSame:M,onValueChange:_,format:v,removeFormatting:x,getCaretBoundary:function(P){return fT(P,e)},onKeyDown:A,onBlur:k})}function mT(e){var t=gT(e);return w.createElement(z3,Object.assign({},t))}function pT(e,t){var n=t.format,r=t.allowEmptyFormatting,i=t.mask,o=t.patternChar;if(o===void 0&&(o="#"),e===""&&!r)return"";for(var a=0,s=n.split(""),l=0,u=n.length;l<u;l++)n[l]===o&&(s[l]=e[a]||j3(i,a),a+=1);return s.join("")}function bT(e,t,n){t===void 0&&(t=H3(e));var r=n.format,i=n.patternChar;i===void 0&&(i="#");var o=t.from,a=t.to,s=t.lastValue;s===void 0&&(s="");var l=function(b){return r[b]===i},u=function(b,y){for(var v="",x=0;x<b.length;x++)l(y+x)&&Ii(b[x])&&(v+=b[x]);return v},c=function(b){return b.replace(/[^0-9]/g,"")};if(!r.match(/\d/))return c(e);if((s===""||o.end-o.start===s.length)&&e.length===r.length){for(var d="",h=0;h<e.length;h++)if(l(h))Ii(e[h])&&(d+=e[h]);else if(e[h]!==r[h])return c(e);return d}var f=s.substring(0,o.start),g=e.substring(a.start,a.end),m=s.substring(o.end);return""+u(f,0)+c(g)+u(m,o.end)}function vT(e,t){var n=t.format,r=t.mask,i=t.patternChar;i===void 0&&(i="#");var o=Array.from({length:e.length+1}).map(function(){return!0}),a=0,s=-1,l={};n.split("").forEach(function(h,f){var g=void 0;h===i&&(a++,g=j3(r,a-1),s===-1&&e[f]===g&&(s=f)),l[f]=g});for(var u=function(h){return n[h]===i&&e[h]!==l[h]},c=0,d=o.length;c<d;c++)o[c]=c===s||u(c)||u(c-1);return o[n.indexOf(i)]=!0,o}function yT(e){var t=e.mask;if(t){var n=t==="string"?t:t.toString();if(n.match(/\d/g))throw new Error("Mask "+t+" should not contain numeric character;")}}function xT(e,t){return e===""?!0:!(t!=null&&t.match(/\d/))&&typeof e=="string"&&(!!e.match(/^\d+$/)||e==="")}function CT(e){e.mask,e.allowEmptyFormatting;var t=e.format,n=e.inputMode;n===void 0&&(n="numeric");var r=e.onKeyDown;r===void 0&&(r=or);var i=e.patternChar;i===void 0&&(i="#");var o=e.value,a=e.defaultValue,s=e.valueIsNumericString,l=Hh(e,["mask","allowEmptyFormatting","format","inputMode","onKeyDown","patternChar","value","defaultValue","valueIsNumericString"]);yT(e);var u=function(g){return vT(g,e)},c=function(g){var m=g.key,b=g.target,y=b.selectionStart,v=b.selectionEnd,x=b.value;if(y!==v){r(g);return}var C=y;if(m==="Backspace"||m==="Delete"){var D="right";if(m==="Backspace"){for(;C>0&&t[C-1]!==i;)C--;D="left"}else{for(var I=t.length;C<I&&t[C]!==i;)C++;D="right"}C=ql(x,C,u(x),D)}else t[C]!==i&&m!=="ArrowLeft"&&m!=="ArrowRight"&&(C=ql(x,C+1,u(x),"right"));C!==y&&Rr(b,C),r(g)},d=gi(o)?a:o,h=s??xT(d,t),f=Object.assign(Object.assign({},e),{valueIsNumericString:h});return Object.assign(Object.assign({},l),{value:o,defaultValue:a,valueIsNumericString:h,inputMode:n,format:function(g){return pT(g,f)},removeFormatting:function(g,m){return bT(g,m,f)},getCaretBoundary:u,onKeyDown:c})}function wT(e){var t=CT(e);return w.createElement(z3,Object.assign({},t))}const DT=({max:e,min:t,selectedText:n="Rp0",onChange:r,onFocusInput:i,...o})=>E.jsx(mT,{isAllowed:a=>e!==void 0&&zn(e)&&Ue(a.value).isGreaterThan(e)?(typeof r=="function"&&r({target:{value:Ue(e).toString()}}),!1):t!==void 0&&zn(t)&&Ue(a.value).isLessThan(t)?(typeof r=="function"&&r({target:{value:Ue(t).toString()}}),!1):!0,onValueChange:(a,{source:s})=>{typeof r=="function"&&s.includes("event")&&r({target:{value:a.value}})},decimalSeparator:",",thousandSeparator:".",decimalScale:2,valueIsNumericString:!0,thousandsGroupStyle:"thousand",onFocus:a=>{var s;((s=a==null?void 0:a.target)==null?void 0:s.value)===n&&(typeof i=="function"?i(""):typeof r=="function"&&r({target:{value:""}}))},...o}),Wh=({children:e,containerId:t="portal-root",selector:n})=>{const[r,i]=w.useState(null);return w.useEffect(()=>{let o=n?document.querySelector(n):document.getElementById(t),a=!1;return o||(o=document.createElement("div"),o.id=t,document.body.appendChild(o),a=!0),i(o),()=>{a&&o&&document.body.removeChild(o)}},[t,n]),r?Xa.createPortal(e,r):null},ST={"button-remove":"_button-remove_1o2yg_1"},ET=()=>E.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.19544 6.19126C6.32045 6.06628 6.48999 5.99607 6.66677 5.99607C6.84354 5.99607 7.01308 6.06628 7.1381 6.19126L10.0001 9.05326L12.8621 6.19126C12.9236 6.12758 12.9972 6.0768 13.0785 6.04186C13.1598 6.00692 13.2473 5.98853 13.3358 5.98776C13.4244 5.98699 13.5121 6.00386 13.5941 6.03738C13.676 6.0709 13.7504 6.1204 13.813 6.18299C13.8756 6.24559 13.9251 6.32002 13.9587 6.40195C13.9922 6.48389 14.009 6.57167 14.0083 6.66019C14.0075 6.74871 13.9891 6.83619 13.9542 6.91753C13.9192 6.99886 13.8684 7.07243 13.8048 7.13392L10.9428 9.99592L13.8048 12.8579C13.9262 12.9837 13.9934 13.1521 13.9919 13.3269C13.9904 13.5017 13.9203 13.6689 13.7966 13.7925C13.673 13.9161 13.5058 13.9862 13.331 13.9877C13.1562 13.9892 12.9878 13.922 12.8621 13.8006L10.0001 10.9386L7.1381 13.8006C7.01237 13.922 6.84397 13.9892 6.66917 13.9877C6.49437 13.9862 6.32716 13.9161 6.20356 13.7925C6.07995 13.6689 6.00984 13.5017 6.00832 13.3269C6.0068 13.1521 6.074 12.9837 6.19544 12.8579L9.05744 9.99592L6.19544 7.13392C6.07045 7.00891 6.00024 6.83937 6.00024 6.66259C6.00024 6.48581 6.07045 6.31628 6.19544 6.19126Z",fill:"#212121"})}),IT=()=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:E.jsx("path",{d:"M2 11.3334V4.66671C2 4.31309 2.14048 3.97395 2.39052 3.7239C2.64057 3.47385 2.97971 3.33337 3.33333 3.33337H7.33333L8.66667 4.66671H12.6667C13.0203 4.66671 13.3594 4.80718 13.6095 5.05723C13.8595 5.30728 14 5.64642 14 6.00004V11.3334C14 11.687 13.8595 12.0261 13.6095 12.2762C13.3594 12.5262 13.0203 12.6667 12.6667 12.6667H3.33333C2.97971 12.6667 2.64057 12.5262 2.39052 12.2762C2.14048 12.0261 2 11.687 2 11.3334Z",stroke:"#9E9E9E",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),G3=e=>{const t=w.useRef(null),{fileName:n,onChange:r,maxFile:i,maxSize:o=2,validateFile:a,error:s,label:l,inputProps:u,priorityError:c="external",eventError:d}=e,h=a||["image/png","image/jpeg","image/jpg"],[f,g]=w.useState(""),m={internal:f||s,external:s||f},b=x=>{if(x!=null&&x.length){const C=x[0],D=C.size/1024/1024;let I="";if(h.some(T=>{var p;return(p=x[0].type)==null?void 0:p.includes(T)})?D>o?I=`${x.length>1?"Jumlah u":"U"}kuran berkas tidak boleh melebihi ${o}MB.`:r(C):I="Berkas tidak didukung, silahkan pilih file kembali.",g(I),d==null||d(I),!(t!=null&&t.current))return;t.current.value=""}},y=x=>{var C;x.preventDefault(),t!=null&&t.current&&((C=t.current)==null||C.click())},v=x=>{x.preventDefault(),t!=null&&t.current&&(r(null),t.current.value="")};return E.jsxs(E.Fragment,{children:[E.jsx("input",{accept:h==null?void 0:h.join(", "),ref:t,hidden:!0,type:"file",max:i,onChange:x=>{b(x.target.files)}}),E.jsx(Tf,{sizeInput:"medium",placeholder:"Pilih Berkas",label:l,value:n,readOnly:!0,onClick:x=>y(x),startIcon:E.jsx(IT,{}),endIcon:n&&E.jsx("div",{className:ST["button-remove"],onClick:x=>v(x),children:E.jsx(ET,{})}),error:m[c],...u})]})};G3.displayName="UploadFile";const _T=({children:e,initialVisibleCount:t,maxWidth:n,moreElement:r,style:i={},className:o,gap:a=0,gapStyle:s,triggerCalCulateContainer:l={},...u})=>{const[c,d]=w.useState(e),[h,f]=w.useState(0),g=w.useRef(new Array(t).fill(null)),m=w.useRef(null),b=w.useCallback(()=>{var I;const x=((I=m.current)==null?void 0:I.offsetWidth)??0;let C=0,D=0;g.current.forEach((T,p)=>{T&&(C+=T.offsetWidth,p>0&&(C+=a),C<=x&&D++)}),d(w.Children.toArray(e).slice(0,D)),f(w.Children.count(e)-D)},[e,a]);w.useEffect(()=>(b(),window.addEventListener("resize",b),()=>{window.removeEventListener("resize",b)}),[]);const y=w.useMemo(()=>w.Children.map(c,(x,C)=>w.cloneElement(x,{ref:D=>g.current[C]=D,key:`child-${C}`})),[c]);Ci(()=>{l&&(d(e),setTimeout(()=>b(),100))},[l]);const v={overflow:"hidden",display:"flex",flexWrap:"nowrap",gap:s??0,...i};return n&&(v.maxWidth=n),E.jsxs(E.Fragment,{children:[E.jsx("div",{ref:m,style:v,className:o??"",...u,children:y}),h>0&&E.jsx(E.Fragment,{children:r(h)})]})},$T="_container_1wopr_1",RT="_image_1wopr_5",Kn={container:$T,"image-content":"_image-content_1wopr_5",image:RT,"text-desc":"_text-desc_1wopr_13","action-content":"_action-content_1wopr_20","button-content":"_button-content_1wopr_24","text-error":"_text-error_1wopr_31"},AT=({className:e})=>E.jsx("svg",{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",className:`1ru-h-5 1ru-w-5 1ru-text-red-600 ${e??""}`,fill:"currentColor",children:E.jsx("g",{id:"x",children:E.jsx("path",{id:"Vector",fillRule:"evenodd",clipRule:"evenodd",d:`M6.19544 6.19126C6.32045 6.06628 6.48999 5.99607 6.66677 5.99607C6.84354 5.99607 7.01308 6.06628 7.1381 \r
117
117
  6.19126L10.0001 9.05326L12.8621 6.19126C12.9236 6.12758 12.9972 6.0768 13.0785 6.04186C13.1598 6.00692 13.2473 \r
118
118
  5.98853 13.3358 5.98776C13.4244 5.98699 13.5121 6.00386 13.5941 6.03738C13.676 6.0709 13.7504 6.1204 13.813 \r
119
119
  6.18299C13.8756 6.24559 13.9251 6.32002 13.9587 6.40195C13.9922 6.48389 14.009 6.57167 14.0083 6.66019C14.0075 \r
@@ -135,19 +135,19 @@ You should wrap it with \`css\` like this:
135
135
  * https://github.com/kurkle/color#readme
136
136
  * (c) 2023 Jukka Kurkela
137
137
  * Released under the MIT License
138
- */function ls(e){return e+.5|0}const Tr=(e,t,n)=>Math.max(Math.min(e,n),t);function zo(e){return Tr(ls(e*2.55),0,255)}function Br(e){return Tr(ls(e*255),0,255)}function nr(e){return Tr(ls(e/2.55)/100,0,1)}function Op(e){return Tr(ls(e*100),0,100)}const rn={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},rf=[..."0123456789ABCDEF"],NT=e=>rf[e&15],VT=e=>rf[(e&240)>>4]+rf[e&15],Bs=e=>(e&240)>>4===(e&15),LT=e=>Bs(e.r)&&Bs(e.g)&&Bs(e.b)&&Bs(e.a);function jT(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&rn[e[1]]*17,g:255&rn[e[2]]*17,b:255&rn[e[3]]*17,a:t===5?rn[e[4]]*17:255}:(t===7||t===9)&&(n={r:rn[e[1]]<<4|rn[e[2]],g:rn[e[3]]<<4|rn[e[4]],b:rn[e[5]]<<4|rn[e[6]],a:t===9?rn[e[7]]<<4|rn[e[8]]:255})),n}const HT=(e,t)=>e<255?t(e):"";function WT(e){var t=LT(e)?NT:VT;return e?"#"+t(e.r)+t(e.g)+t(e.b)+HT(e.a,t):void 0}const zT=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function X3(e,t,n){const r=t*Math.min(n,1-n),i=(o,a=(o+e/30)%12)=>n-r*Math.max(Math.min(a-3,9-a,1),-1);return[i(0),i(8),i(4)]}function GT(e,t,n){const r=(i,o=(i+e/60)%6)=>n-n*t*Math.max(Math.min(o,4-o,1),0);return[r(5),r(3),r(1)]}function ZT(e,t,n){const r=X3(e,1,.5);let i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)r[i]*=1-t-n,r[i]+=t;return r}function XT(e,t,n,r,i){return e===i?(t-n)/r+(t<n?6:0):t===i?(n-e)/r+2:(e-t)/r+4}function zh(e){const n=e.r/255,r=e.g/255,i=e.b/255,o=Math.max(n,r,i),a=Math.min(n,r,i),s=(o+a)/2;let l,u,c;return o!==a&&(c=o-a,u=s>.5?c/(2-o-a):c/(o+a),l=XT(n,r,i,c,o),l=l*60+.5),[l|0,u||0,s]}function Gh(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(Br)}function Zh(e,t,n){return Gh(X3,e,t,n)}function YT(e,t,n){return Gh(ZT,e,t,n)}function UT(e,t,n){return Gh(GT,e,t,n)}function Y3(e){return(e%360+360)%360}function JT(e){const t=zT.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?zo(+t[5]):Br(+t[5]));const i=Y3(+t[2]),o=+t[3]/100,a=+t[4]/100;return t[1]==="hwb"?r=YT(i,o,a):t[1]==="hsv"?r=UT(i,o,a):r=Zh(i,o,a),{r:r[0],g:r[1],b:r[2],a:n}}function KT(e,t){var n=zh(e);n[0]=Y3(n[0]+t),n=Zh(n),e.r=n[0],e.g=n[1],e.b=n[2]}function qT(e){if(!e)return;const t=zh(e),n=t[0],r=Op(t[1]),i=Op(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${nr(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}const Np={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Vp={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function QT(){const e={},t=Object.keys(Vp),n=Object.keys(Np);let r,i,o,a,s;for(r=0;r<t.length;r++){for(a=s=t[r],i=0;i<n.length;i++)o=n[i],s=s.replace(o,Np[o]);o=parseInt(Vp[a],16),e[s]=[o>>16&255,o>>8&255,o&255]}return e}let Os;function ek(e){Os||(Os=QT(),Os.transparent=[0,0,0,0]);const t=Os[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const tk=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function nk(e){const t=tk.exec(e);let n=255,r,i,o;if(t){if(t[7]!==r){const a=+t[7];n=t[8]?zo(a):Tr(a*255,0,255)}return r=+t[1],i=+t[3],o=+t[5],r=255&(t[2]?zo(r):Tr(r,0,255)),i=255&(t[4]?zo(i):Tr(i,0,255)),o=255&(t[6]?zo(o):Tr(o,0,255)),{r,g:i,b:o,a:n}}}function rk(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${nr(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const Bc=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,Gi=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function ik(e,t,n){const r=Gi(nr(e.r)),i=Gi(nr(e.g)),o=Gi(nr(e.b));return{r:Br(Bc(r+n*(Gi(nr(t.r))-r))),g:Br(Bc(i+n*(Gi(nr(t.g))-i))),b:Br(Bc(o+n*(Gi(nr(t.b))-o))),a:e.a+n*(t.a-e.a)}}function Ns(e,t,n){if(e){let r=zh(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=Zh(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function U3(e,t){return e&&Object.assign(t||{},e)}function Lp(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=Br(e[3]))):(t=U3(e,{r:0,g:0,b:0,a:1}),t.a=Br(t.a)),t}function ok(e){return e.charAt(0)==="r"?nk(e):JT(e)}class Na{constructor(t){if(t instanceof Na)return t;const n=typeof t;let r;n==="object"?r=Lp(t):n==="string"&&(r=jT(t)||ek(t)||ok(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=U3(this._rgb);return t&&(t.a=nr(t.a)),t}set rgb(t){this._rgb=Lp(t)}rgbString(){return this._valid?rk(this._rgb):void 0}hexString(){return this._valid?WT(this._rgb):void 0}hslString(){return this._valid?qT(this._rgb):void 0}mix(t,n){if(t){const r=this.rgb,i=t.rgb;let o;const a=n===o?.5:n,s=2*a-1,l=r.a-i.a,u=((s*l===-1?s:(s+l)/(1+s*l))+1)/2;o=1-u,r.r=255&u*r.r+o*i.r+.5,r.g=255&u*r.g+o*i.g+.5,r.b=255&u*r.b+o*i.b+.5,r.a=a*r.a+(1-a)*i.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=ik(this._rgb,t._rgb,n)),this}clone(){return new Na(this.rgb)}alpha(t){return this._rgb.a=Br(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=ls(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Ns(this._rgb,2,t),this}darken(t){return Ns(this._rgb,2,-t),this}saturate(t){return Ns(this._rgb,1,t),this}desaturate(t){return Ns(this._rgb,1,-t),this}rotate(t){return KT(this._rgb,t),this}}/*!
138
+ */function ls(e){return e+.5|0}const Tr=(e,t,n)=>Math.max(Math.min(e,n),t);function zo(e){return Tr(ls(e*2.55),0,255)}function Br(e){return Tr(ls(e*255),0,255)}function nr(e){return Tr(ls(e/2.55)/100,0,1)}function Op(e){return Tr(ls(e*100),0,100)}const rn={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},rf=[..."0123456789ABCDEF"],NT=e=>rf[e&15],VT=e=>rf[(e&240)>>4]+rf[e&15],Bs=e=>(e&240)>>4===(e&15),LT=e=>Bs(e.r)&&Bs(e.g)&&Bs(e.b)&&Bs(e.a);function HT(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&rn[e[1]]*17,g:255&rn[e[2]]*17,b:255&rn[e[3]]*17,a:t===5?rn[e[4]]*17:255}:(t===7||t===9)&&(n={r:rn[e[1]]<<4|rn[e[2]],g:rn[e[3]]<<4|rn[e[4]],b:rn[e[5]]<<4|rn[e[6]],a:t===9?rn[e[7]]<<4|rn[e[8]]:255})),n}const jT=(e,t)=>e<255?t(e):"";function WT(e){var t=LT(e)?NT:VT;return e?"#"+t(e.r)+t(e.g)+t(e.b)+jT(e.a,t):void 0}const zT=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function X3(e,t,n){const r=t*Math.min(n,1-n),i=(o,a=(o+e/30)%12)=>n-r*Math.max(Math.min(a-3,9-a,1),-1);return[i(0),i(8),i(4)]}function GT(e,t,n){const r=(i,o=(i+e/60)%6)=>n-n*t*Math.max(Math.min(o,4-o,1),0);return[r(5),r(3),r(1)]}function ZT(e,t,n){const r=X3(e,1,.5);let i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)r[i]*=1-t-n,r[i]+=t;return r}function XT(e,t,n,r,i){return e===i?(t-n)/r+(t<n?6:0):t===i?(n-e)/r+2:(e-t)/r+4}function zh(e){const n=e.r/255,r=e.g/255,i=e.b/255,o=Math.max(n,r,i),a=Math.min(n,r,i),s=(o+a)/2;let l,u,c;return o!==a&&(c=o-a,u=s>.5?c/(2-o-a):c/(o+a),l=XT(n,r,i,c,o),l=l*60+.5),[l|0,u||0,s]}function Gh(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(Br)}function Zh(e,t,n){return Gh(X3,e,t,n)}function YT(e,t,n){return Gh(ZT,e,t,n)}function UT(e,t,n){return Gh(GT,e,t,n)}function Y3(e){return(e%360+360)%360}function JT(e){const t=zT.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?zo(+t[5]):Br(+t[5]));const i=Y3(+t[2]),o=+t[3]/100,a=+t[4]/100;return t[1]==="hwb"?r=YT(i,o,a):t[1]==="hsv"?r=UT(i,o,a):r=Zh(i,o,a),{r:r[0],g:r[1],b:r[2],a:n}}function KT(e,t){var n=zh(e);n[0]=Y3(n[0]+t),n=Zh(n),e.r=n[0],e.g=n[1],e.b=n[2]}function qT(e){if(!e)return;const t=zh(e),n=t[0],r=Op(t[1]),i=Op(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${nr(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}const Np={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Vp={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function QT(){const e={},t=Object.keys(Vp),n=Object.keys(Np);let r,i,o,a,s;for(r=0;r<t.length;r++){for(a=s=t[r],i=0;i<n.length;i++)o=n[i],s=s.replace(o,Np[o]);o=parseInt(Vp[a],16),e[s]=[o>>16&255,o>>8&255,o&255]}return e}let Os;function ek(e){Os||(Os=QT(),Os.transparent=[0,0,0,0]);const t=Os[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const tk=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function nk(e){const t=tk.exec(e);let n=255,r,i,o;if(t){if(t[7]!==r){const a=+t[7];n=t[8]?zo(a):Tr(a*255,0,255)}return r=+t[1],i=+t[3],o=+t[5],r=255&(t[2]?zo(r):Tr(r,0,255)),i=255&(t[4]?zo(i):Tr(i,0,255)),o=255&(t[6]?zo(o):Tr(o,0,255)),{r,g:i,b:o,a:n}}}function rk(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${nr(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const Bc=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,Gi=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function ik(e,t,n){const r=Gi(nr(e.r)),i=Gi(nr(e.g)),o=Gi(nr(e.b));return{r:Br(Bc(r+n*(Gi(nr(t.r))-r))),g:Br(Bc(i+n*(Gi(nr(t.g))-i))),b:Br(Bc(o+n*(Gi(nr(t.b))-o))),a:e.a+n*(t.a-e.a)}}function Ns(e,t,n){if(e){let r=zh(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=Zh(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function U3(e,t){return e&&Object.assign(t||{},e)}function Lp(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=Br(e[3]))):(t=U3(e,{r:0,g:0,b:0,a:1}),t.a=Br(t.a)),t}function ok(e){return e.charAt(0)==="r"?nk(e):JT(e)}class Na{constructor(t){if(t instanceof Na)return t;const n=typeof t;let r;n==="object"?r=Lp(t):n==="string"&&(r=HT(t)||ek(t)||ok(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=U3(this._rgb);return t&&(t.a=nr(t.a)),t}set rgb(t){this._rgb=Lp(t)}rgbString(){return this._valid?rk(this._rgb):void 0}hexString(){return this._valid?WT(this._rgb):void 0}hslString(){return this._valid?qT(this._rgb):void 0}mix(t,n){if(t){const r=this.rgb,i=t.rgb;let o;const a=n===o?.5:n,s=2*a-1,l=r.a-i.a,u=((s*l===-1?s:(s+l)/(1+s*l))+1)/2;o=1-u,r.r=255&u*r.r+o*i.r+.5,r.g=255&u*r.g+o*i.g+.5,r.b=255&u*r.b+o*i.b+.5,r.a=a*r.a+(1-a)*i.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=ik(this._rgb,t._rgb,n)),this}clone(){return new Na(this.rgb)}alpha(t){return this._rgb.a=Br(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=ls(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Ns(this._rgb,2,t),this}darken(t){return Ns(this._rgb,2,-t),this}saturate(t){return Ns(this._rgb,1,t),this}desaturate(t){return Ns(this._rgb,1,-t),this}rotate(t){return KT(this._rgb,t),this}}/*!
139
139
  * Chart.js v4.4.3
140
140
  * https://www.chartjs.org
141
141
  * (c) 2024 Chart.js Contributors
142
142
  * Released under the MIT License
143
- */function qn(){}const ak=(()=>{let e=0;return()=>e++})();function He(e){return e===null||typeof e>"u"}function ot(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function Ee(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function It(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function Rn(e,t){return It(e)?e:t}function we(e,t){return typeof e>"u"?t:e}const sk=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,J3=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function We(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function Ne(e,t,n,r){let i,o,a;if(ot(e))for(o=e.length,i=0;i<o;i++)t.call(n,e[i],i);else if(Ee(e))for(a=Object.keys(e),o=a.length,i=0;i<o;i++)t.call(n,e[a[i]],a[i])}function Ql(e,t){let n,r,i,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(i=e[n],o=t[n],i.datasetIndex!==o.datasetIndex||i.index!==o.index)return!1;return!0}function eu(e){if(ot(e))return e.map(eu);if(Ee(e)){const t=Object.create(null),n=Object.keys(e),r=n.length;let i=0;for(;i<r;++i)t[n[i]]=eu(e[n[i]]);return t}return e}function K3(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function lk(e,t,n,r){if(!K3(e))return;const i=t[e],o=n[e];Ee(i)&&Ee(o)?Va(i,o,r):t[e]=eu(o)}function Va(e,t,n){const r=ot(t)?t:[t],i=r.length;if(!Ee(e))return e;n=n||{};const o=n.merger||lk;let a;for(let s=0;s<i;++s){if(a=r[s],!Ee(a))continue;const l=Object.keys(a);for(let u=0,c=l.length;u<c;++u)o(l[u],e,a,n)}return e}function na(e,t){return Va(e,t,{merger:uk})}function uk(e,t,n){if(!K3(e))return;const r=t[e],i=n[e];Ee(r)&&Ee(i)?na(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=eu(i))}const jp={"":e=>e,x:e=>e.x,y:e=>e.y};function ck(e){const t=e.split("."),n=[];let r="";for(const i of t)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function dk(e){const t=ck(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function _i(e,t){return(jp[t]||(jp[t]=dk(t)))(e)}function Xh(e){return e.charAt(0).toUpperCase()+e.slice(1)}const La=e=>typeof e<"u",Hr=e=>typeof e=="function",Hp=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function fk(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const et=Math.PI,Je=2*et,hk=Je+et,tu=Number.POSITIVE_INFINITY,gk=et/180,lt=et/2,Jr=et/4,Wp=et*2/3,q3=Math.log10,Wn=Math.sign;function ra(e,t,n){return Math.abs(e-t)<n}function zp(e){const t=Math.round(e);e=ra(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(q3(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function mk(e){const t=[],n=Math.sqrt(e);let r;for(r=1;r<n;r++)e%r===0&&(t.push(r),t.push(e/r));return n===(n|0)&&t.push(n),t.sort((i,o)=>i-o).pop(),t}function ja(e){return!isNaN(parseFloat(e))&&isFinite(e)}function pk(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function bk(e,t,n){let r,i,o;for(r=0,i=e.length;r<i;r++)o=e[r][n],isNaN(o)||(t.min=Math.min(t.min,o),t.max=Math.max(t.max,o))}function cr(e){return e*(et/180)}function vk(e){return e*(180/et)}function Gp(e){if(!It(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function Q3(e,t){const n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r);let o=Math.atan2(r,n);return o<-.5*et&&(o+=Je),{angle:o,distance:i}}function of(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function yk(e,t){return(e-t+hk)%Je-et}function Mn(e){return(e%Je+Je)%Je}function Ha(e,t,n,r){const i=Mn(e),o=Mn(t),a=Mn(n),s=Mn(o-i),l=Mn(a-i),u=Mn(i-o),c=Mn(i-a);return i===o||i===a||r&&o===a||s>l&&u<c}function St(e,t,n){return Math.max(t,Math.min(n,e))}function xk(e){return St(e,-32768,32767)}function dr(e,t,n,r=1e-6){return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function Yh(e,t,n){n=n||(a=>e[a]<t);let r=e.length-1,i=0,o;for(;r-i>1;)o=i+r>>1,n(o)?i=o:r=o;return{lo:i,hi:r}}const di=(e,t,n,r)=>Yh(e,n,r?i=>{const o=e[i][t];return o<n||o===n&&e[i+1][t]===n}:i=>e[i][t]<n),Ck=(e,t,n)=>Yh(e,n,r=>e[r][t]>=n);function wk(e,t,n){let r=0,i=e.length;for(;r<i&&e[r]<t;)r++;for(;i>r&&e[i-1]>n;)i--;return r>0||i<e.length?e.slice(r,i):e}const eC=["push","pop","shift","splice","unshift"];function Dk(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),eC.forEach(n=>{const r="_onData"+Xh(n),i=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...o){const a=i.apply(this,o);return e._chartjs.listeners.forEach(s=>{typeof s[r]=="function"&&s[r](...o)}),a}})})}function Zp(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(t);i!==-1&&r.splice(i,1),!(r.length>0)&&(eC.forEach(o=>{delete e[o]}),delete e._chartjs)}function tC(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const nC=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function rC(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,nC.call(window,()=>{r=!1,e.apply(t,n)}))}}function Sk(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const Uh=e=>e==="start"?"left":e==="end"?"right":"center",xt=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,Ek=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t;function Ik(e,t,n){const r=t.length;let i=0,o=r;if(e._sorted){const{iScale:a,_parsed:s}=e,l=a.axis,{min:u,max:c,minDefined:d,maxDefined:h}=a.getUserBounds();d&&(i=St(Math.min(di(s,l,u).lo,n?r:di(t,l,a.getPixelForValue(u)).lo),0,r-1)),h?o=St(Math.max(di(s,a.axis,c,!0).hi+1,n?0:di(t,l,a.getPixelForValue(c),!0).hi+1),i,r)-i:o=r-i}return{start:i,count:o}}function _k(e){const{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;const o=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),o}const Vs=e=>e===0||e===1,Xp=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*Je/n)),Yp=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*Je/n)+1,ia={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*lt)+1,easeOutSine:e=>Math.sin(e*lt),easeInOutSine:e=>-.5*(Math.cos(et*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>Vs(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>Vs(e)?e:Xp(e,.075,.3),easeOutElastic:e=>Vs(e)?e:Yp(e,.075,.3),easeInOutElastic(e){return Vs(e)?e:e<.5?.5*Xp(e*2,.1125,.45):.5+.5*Yp(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-ia.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?ia.easeInBounce(e*2)*.5:ia.easeOutBounce(e*2-1)*.5+.5};function Jh(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function Up(e){return Jh(e)?e:new Na(e)}function Oc(e){return Jh(e)?e:new Na(e).saturate(.5).darken(.1).hexString()}const $k=["x","y","borderWidth","radius","tension"],Rk=["color","borderColor","backgroundColor"];function Ak(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:Rk},numbers:{type:"number",properties:$k}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function Fk(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const Jp=new Map;function Pk(e,t){t=t||{};const n=e+JSON.stringify(t);let r=Jp.get(n);return r||(r=new Intl.NumberFormat(e,t),Jp.set(n,r)),r}function Kh(e,t,n){return Pk(t,n).format(e)}const Tk={values(e){return ot(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const r=this.chart.options.locale;let i,o=e;if(n.length>1){const u=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(u<1e-4||u>1e15)&&(i="scientific"),o=kk(e,n)}const a=q3(Math.abs(o)),s=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:i,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),Kh(e,r,l)}};function kk(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var iC={formatters:Tk};function Mk(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:iC.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const $i=Object.create(null),af=Object.create(null);function oa(e,t){if(!t)return e;const n=t.split(".");for(let r=0,i=n.length;r<i;++r){const o=n[r];e=e[o]||(e[o]=Object.create(null))}return e}function Nc(e,t,n){return typeof t=="string"?Va(oa(e,t),n):Va(oa(e,""),t)}class Bk{constructor(t,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=r=>r.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,i)=>Oc(i.backgroundColor),this.hoverBorderColor=(r,i)=>Oc(i.borderColor),this.hoverColor=(r,i)=>Oc(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return Nc(this,t,n)}get(t){return oa(this,t)}describe(t,n){return Nc(af,t,n)}override(t,n){return Nc($i,t,n)}route(t,n,r,i){const o=oa(this,t),a=oa(this,r),s="_"+n;Object.defineProperties(o,{[s]:{value:o[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[s],u=a[i];return Ee(l)?Object.assign({},u,l):we(l,u)},set(l){this[s]=l}}})}apply(t){t.forEach(n=>n(this))}}var nt=new Bk({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[Ak,Fk,Mk]);function Ok(e){return!e||He(e.size)||He(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function Kp(e,t,n,r,i){let o=t[i];return o||(o=t[i]=e.measureText(i).width,n.push(i)),o>r&&(r=o),r}function Kr(e,t,n){const r=e.currentDevicePixelRatio,i=n!==0?Math.max(n/2,.5):0;return Math.round((t-i)*r)/r+i}function qp(e,t){!t&&!e||(t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function sf(e,t,n,r){oC(e,t,n,r,null)}function oC(e,t,n,r,i){let o,a,s,l,u,c,d,h;const f=t.pointStyle,g=t.rotation,m=t.radius;let b=(g||0)*gk;if(f&&typeof f=="object"&&(o=f.toString(),o==="[object HTMLImageElement]"||o==="[object HTMLCanvasElement]")){e.save(),e.translate(n,r),e.rotate(b),e.drawImage(f,-f.width/2,-f.height/2,f.width,f.height),e.restore();return}if(!(isNaN(m)||m<=0)){switch(e.beginPath(),f){default:i?e.ellipse(n,r,i/2,m,0,0,Je):e.arc(n,r,m,0,Je),e.closePath();break;case"triangle":c=i?i/2:m,e.moveTo(n+Math.sin(b)*c,r-Math.cos(b)*m),b+=Wp,e.lineTo(n+Math.sin(b)*c,r-Math.cos(b)*m),b+=Wp,e.lineTo(n+Math.sin(b)*c,r-Math.cos(b)*m),e.closePath();break;case"rectRounded":u=m*.516,l=m-u,a=Math.cos(b+Jr)*l,d=Math.cos(b+Jr)*(i?i/2-u:l),s=Math.sin(b+Jr)*l,h=Math.sin(b+Jr)*(i?i/2-u:l),e.arc(n-d,r-s,u,b-et,b-lt),e.arc(n+h,r-a,u,b-lt,b),e.arc(n+d,r+s,u,b,b+lt),e.arc(n-h,r+a,u,b+lt,b+et),e.closePath();break;case"rect":if(!g){l=Math.SQRT1_2*m,c=i?i/2:l,e.rect(n-c,r-l,2*c,2*l);break}b+=Jr;case"rectRot":d=Math.cos(b)*(i?i/2:m),a=Math.cos(b)*m,s=Math.sin(b)*m,h=Math.sin(b)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+h,r-a),e.lineTo(n+d,r+s),e.lineTo(n-h,r+a),e.closePath();break;case"crossRot":b+=Jr;case"cross":d=Math.cos(b)*(i?i/2:m),a=Math.cos(b)*m,s=Math.sin(b)*m,h=Math.sin(b)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+h,r-a),e.lineTo(n-h,r+a);break;case"star":d=Math.cos(b)*(i?i/2:m),a=Math.cos(b)*m,s=Math.sin(b)*m,h=Math.sin(b)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+h,r-a),e.lineTo(n-h,r+a),b+=Jr,d=Math.cos(b)*(i?i/2:m),a=Math.cos(b)*m,s=Math.sin(b)*m,h=Math.sin(b)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+h,r-a),e.lineTo(n-h,r+a);break;case"line":a=i?i/2:Math.cos(b)*m,s=Math.sin(b)*m,e.moveTo(n-a,r-s),e.lineTo(n+a,r+s);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(b)*(i?i/2:m),r+Math.sin(b)*m);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function Wa(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function Ou(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function Nu(e){e.restore()}function Nk(e,t,n,r,i){if(!t)return e.lineTo(n.x,n.y);if(i==="middle"){const o=(t.x+n.x)/2;e.lineTo(o,t.y),e.lineTo(o,n.y)}else i==="after"!=!!r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function Vk(e,t,n,r){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function Lk(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),He(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function jk(e,t,n,r,i){if(i.strikethrough||i.underline){const o=e.measureText(r),a=t-o.actualBoundingBoxLeft,s=t+o.actualBoundingBoxRight,l=n-o.actualBoundingBoxAscent,u=n+o.actualBoundingBoxDescent,c=i.strikethrough?(l+u)/2:u;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(a,c),e.lineTo(s,c),e.stroke()}}function Hk(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function za(e,t,n,r,i,o={}){const a=ot(t)?t:[t],s=o.strokeWidth>0&&o.strokeColor!=="";let l,u;for(e.save(),e.font=i.string,Lk(e,o),l=0;l<a.length;++l)u=a[l],o.backdrop&&Hk(e,o.backdrop),s&&(o.strokeColor&&(e.strokeStyle=o.strokeColor),He(o.strokeWidth)||(e.lineWidth=o.strokeWidth),e.strokeText(u,n,r,o.maxWidth)),e.fillText(u,n,r,o.maxWidth),jk(e,n,r,u,o),r+=Number(i.lineHeight);e.restore()}function nu(e,t){const{x:n,y:r,w:i,h:o,radius:a}=t;e.arc(n+a.topLeft,r+a.topLeft,a.topLeft,1.5*et,et,!0),e.lineTo(n,r+o-a.bottomLeft),e.arc(n+a.bottomLeft,r+o-a.bottomLeft,a.bottomLeft,et,lt,!0),e.lineTo(n+i-a.bottomRight,r+o),e.arc(n+i-a.bottomRight,r+o-a.bottomRight,a.bottomRight,lt,0,!0),e.lineTo(n+i,r+a.topRight),e.arc(n+i-a.topRight,r+a.topRight,a.topRight,0,-lt,!0),e.lineTo(n+a.topLeft,r)}const Wk=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,zk=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function Gk(e,t){const n=(""+e).match(Wk);if(!n||n[1]==="normal")return t*1.2;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100;break}return t*e}const Zk=e=>+e||0;function qh(e,t){const n={},r=Ee(t),i=r?Object.keys(t):t,o=Ee(e)?r?a=>we(e[a],e[t[a]]):a=>e[a]:()=>e;for(const a of i)n[a]=Zk(o(a));return n}function aC(e){return qh(e,{top:"y",right:"x",bottom:"y",left:"x"})}function so(e){return qh(e,["topLeft","topRight","bottomLeft","bottomRight"])}function fn(e){const t=aC(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Et(e,t){e=e||{},t=t||nt.font;let n=we(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=we(e.style,t.style);r&&!(""+r).match(zk)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:we(e.family,t.family),lineHeight:Gk(we(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:we(e.weight,t.weight),string:""};return i.string=Ok(i),i}function Ls(e,t,n,r){let i,o,a;for(i=0,o=e.length;i<o;++i)if(a=e[i],a!==void 0&&a!==void 0)return a}function Xk(e,t,n){const{min:r,max:i}=e,o=J3(t,(i-r)/2),a=(s,l)=>n&&s===0?0:s+l;return{min:a(r,-Math.abs(o)),max:a(i,o)}}function Ti(e,t){return Object.assign(Object.create(e),t)}function Qh(e,t=[""],n,r,i=()=>e[0]){const o=n||e;typeof r>"u"&&(r=cC("_fallback",e));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:o,_fallback:r,_getTarget:i,override:s=>Qh([s,...e],t,o,r)};return new Proxy(a,{deleteProperty(s,l){return delete s[l],delete s._keys,delete e[0][l],!0},get(s,l){return lC(s,l,()=>tM(l,t,e,s))},getOwnPropertyDescriptor(s,l){return Reflect.getOwnPropertyDescriptor(s._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(s,l){return e0(s).includes(l)},ownKeys(s){return e0(s)},set(s,l,u){const c=s._storage||(s._storage=i());return s[l]=c[l]=u,delete s._keys,!0}})}function vo(e,t,n,r){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:sC(e,r),setContext:o=>vo(e,o,n,r),override:o=>vo(e.override(o),t,n,r)};return new Proxy(i,{deleteProperty(o,a){return delete o[a],delete e[a],!0},get(o,a,s){return lC(o,a,()=>Uk(o,a,s))},getOwnPropertyDescriptor(o,a){return o._descriptors.allKeys?Reflect.has(e,a)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,a)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(o,a){return Reflect.has(e,a)},ownKeys(){return Reflect.ownKeys(e)},set(o,a,s){return e[a]=s,delete o[a],!0}})}function sC(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:Hr(n)?n:()=>n,isIndexable:Hr(r)?r:()=>r}}const Yk=(e,t)=>e?e+Xh(t):t,eg=(e,t)=>Ee(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function lC(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||t==="constructor")return e[t];const r=n();return e[t]=r,r}function Uk(e,t,n){const{_proxy:r,_context:i,_subProxy:o,_descriptors:a}=e;let s=r[t];return Hr(s)&&a.isScriptable(t)&&(s=Jk(t,s,e,n)),ot(s)&&s.length&&(s=Kk(t,s,e,a.isIndexable)),eg(t,s)&&(s=vo(s,i,o&&o[t],a)),s}function Jk(e,t,n,r){const{_proxy:i,_context:o,_subProxy:a,_stack:s}=n;if(s.has(e))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e);let l=t(o,a||r);return s.delete(e),eg(e,l)&&(l=tg(i._scopes,i,e,l)),l}function Kk(e,t,n,r){const{_proxy:i,_context:o,_subProxy:a,_descriptors:s}=n;if(typeof o.index<"u"&&r(e))return t[o.index%t.length];if(Ee(t[0])){const l=t,u=i._scopes.filter(c=>c!==l);t=[];for(const c of l){const d=tg(u,i,e,c);t.push(vo(d,o,a&&a[e],s))}}return t}function uC(e,t,n){return Hr(e)?e(t,n):e}const qk=(e,t)=>e===!0?t:typeof e=="string"?_i(t,e):void 0;function Qk(e,t,n,r,i){for(const o of t){const a=qk(n,o);if(a){e.add(a);const s=uC(a._fallback,n,i);if(typeof s<"u"&&s!==n&&s!==r)return s}else if(a===!1&&typeof r<"u"&&n!==r)return null}return!1}function tg(e,t,n,r){const i=t._rootScopes,o=uC(t._fallback,n,r),a=[...e,...i],s=new Set;s.add(r);let l=Qp(s,a,n,o||n,r);return l===null||typeof o<"u"&&o!==n&&(l=Qp(s,a,o,l,r),l===null)?!1:Qh(Array.from(s),[""],i,o,()=>eM(t,n,r))}function Qp(e,t,n,r,i){for(;n;)n=Qk(e,t,n,r,i);return n}function eM(e,t,n){const r=e._getTarget();t in r||(r[t]={});const i=r[t];return ot(i)&&Ee(n)?n:i||{}}function tM(e,t,n,r){let i;for(const o of t)if(i=cC(Yk(o,e),n),typeof i<"u")return eg(e,i)?tg(n,r,e,i):i}function cC(e,t){for(const n of t){if(!n)continue;const r=n[e];if(typeof r<"u")return r}}function e0(e){let t=e._keys;return t||(t=e._keys=nM(e._scopes)),t}function nM(e){const t=new Set;for(const n of e)for(const r of Object.keys(n).filter(i=>!i.startsWith("_")))t.add(r);return Array.from(t)}const rM=Number.EPSILON||1e-14,yo=(e,t)=>t<e.length&&!e[t].skip&&e[t],dC=e=>e==="x"?"y":"x";function iM(e,t,n,r){const i=e.skip?t:e,o=t,a=n.skip?t:n,s=of(o,i),l=of(a,o);let u=s/(s+l),c=l/(s+l);u=isNaN(u)?0:u,c=isNaN(c)?0:c;const d=r*u,h=r*c;return{previous:{x:o.x-d*(a.x-i.x),y:o.y-d*(a.y-i.y)},next:{x:o.x+h*(a.x-i.x),y:o.y+h*(a.y-i.y)}}}function oM(e,t,n){const r=e.length;let i,o,a,s,l,u=yo(e,0);for(let c=0;c<r-1;++c)if(l=u,u=yo(e,c+1),!(!l||!u)){if(ra(t[c],0,rM)){n[c]=n[c+1]=0;continue}i=n[c]/t[c],o=n[c+1]/t[c],s=Math.pow(i,2)+Math.pow(o,2),!(s<=9)&&(a=3/Math.sqrt(s),n[c]=i*a*t[c],n[c+1]=o*a*t[c])}}function aM(e,t,n="x"){const r=dC(n),i=e.length;let o,a,s,l=yo(e,0);for(let u=0;u<i;++u){if(a=s,s=l,l=yo(e,u+1),!s)continue;const c=s[n],d=s[r];a&&(o=(c-a[n])/3,s[`cp1${n}`]=c-o,s[`cp1${r}`]=d-o*t[u]),l&&(o=(l[n]-c)/3,s[`cp2${n}`]=c+o,s[`cp2${r}`]=d+o*t[u])}}function sM(e,t="x"){const n=dC(t),r=e.length,i=Array(r).fill(0),o=Array(r);let a,s,l,u=yo(e,0);for(a=0;a<r;++a)if(s=l,l=u,u=yo(e,a+1),!!l){if(u){const c=u[t]-l[t];i[a]=c!==0?(u[n]-l[n])/c:0}o[a]=s?u?Wn(i[a-1])!==Wn(i[a])?0:(i[a-1]+i[a])/2:i[a-1]:i[a]}oM(e,i,o),aM(e,o,t)}function js(e,t,n){return Math.max(Math.min(e,n),t)}function lM(e,t){let n,r,i,o,a,s=Wa(e[0],t);for(n=0,r=e.length;n<r;++n)a=o,o=s,s=n<r-1&&Wa(e[n+1],t),o&&(i=e[n],a&&(i.cp1x=js(i.cp1x,t.left,t.right),i.cp1y=js(i.cp1y,t.top,t.bottom)),s&&(i.cp2x=js(i.cp2x,t.left,t.right),i.cp2y=js(i.cp2y,t.top,t.bottom)))}function uM(e,t,n,r,i){let o,a,s,l;if(t.spanGaps&&(e=e.filter(u=>!u.skip)),t.cubicInterpolationMode==="monotone")sM(e,i);else{let u=r?e[e.length-1]:e[0];for(o=0,a=e.length;o<a;++o)s=e[o],l=iM(u,s,e[Math.min(o+1,a-(r?0:1))%a],t.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,u=s}t.capBezierPoints&&lM(e,n)}function ng(){return typeof window<"u"&&typeof document<"u"}function rg(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function ru(e,t,n){let r;return typeof e=="string"?(r=parseInt(e,10),e.indexOf("%")!==-1&&(r=r/100*t.parentNode[n])):r=e,r}const Vu=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function cM(e,t){return Vu(e).getPropertyValue(t)}const dM=["top","right","bottom","left"];function mi(e,t,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const o=dM[i];r[o]=parseFloat(e[t+"-"+o+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const fM=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function hM(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:o}=r;let a=!1,s,l;if(fM(i,o,e.target))s=i,l=o;else{const u=t.getBoundingClientRect();s=r.clientX-u.left,l=r.clientY-u.top,a=!0}return{x:s,y:l,box:a}}function ni(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,i=Vu(n),o=i.boxSizing==="border-box",a=mi(i,"padding"),s=mi(i,"border","width"),{x:l,y:u,box:c}=hM(e,n),d=a.left+(c&&s.left),h=a.top+(c&&s.top);let{width:f,height:g}=t;return o&&(f-=a.width+s.width,g-=a.height+s.height),{x:Math.round((l-d)/f*n.width/r),y:Math.round((u-h)/g*n.height/r)}}function gM(e,t,n){let r,i;if(t===void 0||n===void 0){const o=e&&rg(e);if(!o)t=e.clientWidth,n=e.clientHeight;else{const a=o.getBoundingClientRect(),s=Vu(o),l=mi(s,"border","width"),u=mi(s,"padding");t=a.width-u.width-l.width,n=a.height-u.height-l.height,r=ru(s.maxWidth,o,"clientWidth"),i=ru(s.maxHeight,o,"clientHeight")}}return{width:t,height:n,maxWidth:r||tu,maxHeight:i||tu}}const Hs=e=>Math.round(e*10)/10;function mM(e,t,n,r){const i=Vu(e),o=mi(i,"margin"),a=ru(i.maxWidth,e,"clientWidth")||tu,s=ru(i.maxHeight,e,"clientHeight")||tu,l=gM(e,t,n);let{width:u,height:c}=l;if(i.boxSizing==="content-box"){const h=mi(i,"border","width"),f=mi(i,"padding");u-=f.width+h.width,c-=f.height+h.height}return u=Math.max(0,u-o.width),c=Math.max(0,r?u/r:c-o.height),u=Hs(Math.min(u,a,l.maxWidth)),c=Hs(Math.min(c,s,l.maxHeight)),u&&!c&&(c=Hs(u/2)),(t!==void 0||n!==void 0)&&r&&l.height&&c>l.height&&(c=l.height,u=Hs(Math.floor(c*r))),{width:u,height:c}}function t0(e,t,n){const r=t||1,i=Math.floor(e.height*r),o=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const a=e.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${e.height}px`,a.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||a.height!==i||a.width!==o?(e.currentDevicePixelRatio=r,a.height=i,a.width=o,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const pM=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};ng()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e}();function n0(e,t){const n=cM(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function ri(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function bM(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:r==="middle"?n<.5?e.y:t.y:r==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function vM(e,t,n,r){const i={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},a=ri(e,i,n),s=ri(i,o,n),l=ri(o,t,n),u=ri(a,s,n),c=ri(s,l,n);return ri(u,c,n)}const yM=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},xM=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function lo(e,t,n){return e?yM(t,n):xM()}function fC(e,t){let n,r;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function hC(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function gC(e){return e==="angle"?{between:Ha,compare:yk,normalize:Mn}:{between:dr,compare:(t,n)=>t-n,normalize:t=>t}}function r0({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n===0,style:i}}function CM(e,t,n){const{property:r,start:i,end:o}=n,{between:a,normalize:s}=gC(r),l=t.length;let{start:u,end:c,loop:d}=e,h,f;if(d){for(u+=l,c+=l,h=0,f=l;h<f&&a(s(t[u%l][r]),i,o);++h)u--,c--;u%=l,c%=l}return c<u&&(c+=l),{start:u,end:c,loop:d,style:e.style}}function mC(e,t,n){if(!n)return[e];const{property:r,start:i,end:o}=n,a=t.length,{compare:s,between:l,normalize:u}=gC(r),{start:c,end:d,loop:h,style:f}=CM(e,t,n),g=[];let m=!1,b=null,y,v,x;const C=()=>l(i,x,y)&&s(i,x)!==0,D=()=>s(o,y)===0||l(o,x,y),I=()=>m||C(),T=()=>!m||D();for(let p=c,S=c;p<=d;++p)v=t[p%a],!v.skip&&(y=u(v[r]),y!==x&&(m=l(y,i,o),b===null&&I()&&(b=s(y,i)===0?p:S),b!==null&&T()&&(g.push(r0({start:b,end:p,loop:h,count:a,style:f})),b=null),S=p,x=y));return b!==null&&g.push(r0({start:b,end:d,loop:h,count:a,style:f})),g}function pC(e,t){const n=[],r=e.segments;for(let i=0;i<r.length;i++){const o=mC(r[i],e.points,t);o.length&&n.push(...o)}return n}function wM(e,t,n,r){let i=0,o=t-1;if(n&&!r)for(;i<t&&!e[i].skip;)i++;for(;i<t&&e[i].skip;)i++;for(i%=t,n&&(o+=i);o>i&&e[o%t].skip;)o--;return o%=t,{start:i,end:o}}function DM(e,t,n,r){const i=e.length,o=[];let a=t,s=e[t],l;for(l=t+1;l<=n;++l){const u=e[l%i];u.skip||u.stop?s.skip||(r=!1,o.push({start:t%i,end:(l-1)%i,loop:r}),t=a=u.stop?l:null):(a=l,s.skip&&(t=l)),s=u}return a!==null&&o.push({start:t%i,end:a%i,loop:r}),o}function SM(e,t){const n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];const o=!!e._loop,{start:a,end:s}=wM(n,i,o,r);if(r===!0)return i0(e,[{start:a,end:s,loop:o}],n,t);const l=s<a?s+i:s,u=!!e._fullLoop&&a===0&&s===i-1;return i0(e,DM(n,a,l,u),n,t)}function i0(e,t,n,r){return!r||!r.setContext||!n?t:EM(e,t,n,r)}function EM(e,t,n,r){const i=e._chart.getContext(),o=o0(e.options),{_datasetIndex:a,options:{spanGaps:s}}=e,l=n.length,u=[];let c=o,d=t[0].start,h=d;function f(g,m,b,y){const v=s?-1:1;if(g!==m){for(g+=l;n[g%l].skip;)g-=v;for(;n[m%l].skip;)m+=v;g%l!==m%l&&(u.push({start:g%l,end:m%l,loop:b,style:y}),c=y,d=m%l)}}for(const g of t){d=s?d:g.start;let m=n[d%l],b;for(h=d+1;h<=g.end;h++){const y=n[h%l];b=o0(r.setContext(Ti(i,{type:"segment",p0:m,p1:y,p0DataIndex:(h-1)%l,p1DataIndex:h%l,datasetIndex:a}))),IM(b,c)&&f(d,h-1,g.loop,c),m=y,c=b}d<h-1&&f(d,h-1,g.loop,c)}return u}function o0(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function IM(e,t){if(!t)return!1;const n=[],r=function(i,o){return Jh(o)?(n.includes(o)||n.push(o),n.indexOf(o)):o};return JSON.stringify(e,r)!==JSON.stringify(t,r)}/*!
143
+ */function qn(){}const ak=(()=>{let e=0;return()=>e++})();function je(e){return e===null||typeof e>"u"}function ot(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function Ee(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function It(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function Rn(e,t){return It(e)?e:t}function we(e,t){return typeof e>"u"?t:e}const sk=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,J3=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function We(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function Ne(e,t,n,r){let i,o,a;if(ot(e))for(o=e.length,i=0;i<o;i++)t.call(n,e[i],i);else if(Ee(e))for(a=Object.keys(e),o=a.length,i=0;i<o;i++)t.call(n,e[a[i]],a[i])}function Ql(e,t){let n,r,i,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(i=e[n],o=t[n],i.datasetIndex!==o.datasetIndex||i.index!==o.index)return!1;return!0}function eu(e){if(ot(e))return e.map(eu);if(Ee(e)){const t=Object.create(null),n=Object.keys(e),r=n.length;let i=0;for(;i<r;++i)t[n[i]]=eu(e[n[i]]);return t}return e}function K3(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function lk(e,t,n,r){if(!K3(e))return;const i=t[e],o=n[e];Ee(i)&&Ee(o)?Va(i,o,r):t[e]=eu(o)}function Va(e,t,n){const r=ot(t)?t:[t],i=r.length;if(!Ee(e))return e;n=n||{};const o=n.merger||lk;let a;for(let s=0;s<i;++s){if(a=r[s],!Ee(a))continue;const l=Object.keys(a);for(let u=0,c=l.length;u<c;++u)o(l[u],e,a,n)}return e}function na(e,t){return Va(e,t,{merger:uk})}function uk(e,t,n){if(!K3(e))return;const r=t[e],i=n[e];Ee(r)&&Ee(i)?na(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=eu(i))}const Hp={"":e=>e,x:e=>e.x,y:e=>e.y};function ck(e){const t=e.split("."),n=[];let r="";for(const i of t)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function dk(e){const t=ck(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function _i(e,t){return(Hp[t]||(Hp[t]=dk(t)))(e)}function Xh(e){return e.charAt(0).toUpperCase()+e.slice(1)}const La=e=>typeof e<"u",jr=e=>typeof e=="function",jp=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function fk(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const et=Math.PI,Je=2*et,hk=Je+et,tu=Number.POSITIVE_INFINITY,gk=et/180,lt=et/2,Jr=et/4,Wp=et*2/3,q3=Math.log10,Wn=Math.sign;function ra(e,t,n){return Math.abs(e-t)<n}function zp(e){const t=Math.round(e);e=ra(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(q3(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function mk(e){const t=[],n=Math.sqrt(e);let r;for(r=1;r<n;r++)e%r===0&&(t.push(r),t.push(e/r));return n===(n|0)&&t.push(n),t.sort((i,o)=>i-o).pop(),t}function Ha(e){return!isNaN(parseFloat(e))&&isFinite(e)}function pk(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function bk(e,t,n){let r,i,o;for(r=0,i=e.length;r<i;r++)o=e[r][n],isNaN(o)||(t.min=Math.min(t.min,o),t.max=Math.max(t.max,o))}function cr(e){return e*(et/180)}function vk(e){return e*(180/et)}function Gp(e){if(!It(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function Q3(e,t){const n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r);let o=Math.atan2(r,n);return o<-.5*et&&(o+=Je),{angle:o,distance:i}}function of(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function yk(e,t){return(e-t+hk)%Je-et}function Mn(e){return(e%Je+Je)%Je}function ja(e,t,n,r){const i=Mn(e),o=Mn(t),a=Mn(n),s=Mn(o-i),l=Mn(a-i),u=Mn(i-o),c=Mn(i-a);return i===o||i===a||r&&o===a||s>l&&u<c}function St(e,t,n){return Math.max(t,Math.min(n,e))}function xk(e){return St(e,-32768,32767)}function dr(e,t,n,r=1e-6){return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function Yh(e,t,n){n=n||(a=>e[a]<t);let r=e.length-1,i=0,o;for(;r-i>1;)o=i+r>>1,n(o)?i=o:r=o;return{lo:i,hi:r}}const di=(e,t,n,r)=>Yh(e,n,r?i=>{const o=e[i][t];return o<n||o===n&&e[i+1][t]===n}:i=>e[i][t]<n),Ck=(e,t,n)=>Yh(e,n,r=>e[r][t]>=n);function wk(e,t,n){let r=0,i=e.length;for(;r<i&&e[r]<t;)r++;for(;i>r&&e[i-1]>n;)i--;return r>0||i<e.length?e.slice(r,i):e}const eC=["push","pop","shift","splice","unshift"];function Dk(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),eC.forEach(n=>{const r="_onData"+Xh(n),i=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...o){const a=i.apply(this,o);return e._chartjs.listeners.forEach(s=>{typeof s[r]=="function"&&s[r](...o)}),a}})})}function Zp(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(t);i!==-1&&r.splice(i,1),!(r.length>0)&&(eC.forEach(o=>{delete e[o]}),delete e._chartjs)}function tC(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const nC=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function rC(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,nC.call(window,()=>{r=!1,e.apply(t,n)}))}}function Sk(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const Uh=e=>e==="start"?"left":e==="end"?"right":"center",xt=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,Ek=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t;function Ik(e,t,n){const r=t.length;let i=0,o=r;if(e._sorted){const{iScale:a,_parsed:s}=e,l=a.axis,{min:u,max:c,minDefined:d,maxDefined:h}=a.getUserBounds();d&&(i=St(Math.min(di(s,l,u).lo,n?r:di(t,l,a.getPixelForValue(u)).lo),0,r-1)),h?o=St(Math.max(di(s,a.axis,c,!0).hi+1,n?0:di(t,l,a.getPixelForValue(c),!0).hi+1),i,r)-i:o=r-i}return{start:i,count:o}}function _k(e){const{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;const o=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),o}const Vs=e=>e===0||e===1,Xp=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*Je/n)),Yp=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*Je/n)+1,ia={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*lt)+1,easeOutSine:e=>Math.sin(e*lt),easeInOutSine:e=>-.5*(Math.cos(et*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>Vs(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>Vs(e)?e:Xp(e,.075,.3),easeOutElastic:e=>Vs(e)?e:Yp(e,.075,.3),easeInOutElastic(e){return Vs(e)?e:e<.5?.5*Xp(e*2,.1125,.45):.5+.5*Yp(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-ia.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?ia.easeInBounce(e*2)*.5:ia.easeOutBounce(e*2-1)*.5+.5};function Jh(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function Up(e){return Jh(e)?e:new Na(e)}function Oc(e){return Jh(e)?e:new Na(e).saturate(.5).darken(.1).hexString()}const $k=["x","y","borderWidth","radius","tension"],Rk=["color","borderColor","backgroundColor"];function Ak(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:Rk},numbers:{type:"number",properties:$k}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function Fk(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const Jp=new Map;function Pk(e,t){t=t||{};const n=e+JSON.stringify(t);let r=Jp.get(n);return r||(r=new Intl.NumberFormat(e,t),Jp.set(n,r)),r}function Kh(e,t,n){return Pk(t,n).format(e)}const Tk={values(e){return ot(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const r=this.chart.options.locale;let i,o=e;if(n.length>1){const u=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(u<1e-4||u>1e15)&&(i="scientific"),o=kk(e,n)}const a=q3(Math.abs(o)),s=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:i,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),Kh(e,r,l)}};function kk(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var iC={formatters:Tk};function Mk(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:iC.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const $i=Object.create(null),af=Object.create(null);function oa(e,t){if(!t)return e;const n=t.split(".");for(let r=0,i=n.length;r<i;++r){const o=n[r];e=e[o]||(e[o]=Object.create(null))}return e}function Nc(e,t,n){return typeof t=="string"?Va(oa(e,t),n):Va(oa(e,""),t)}class Bk{constructor(t,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=r=>r.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,i)=>Oc(i.backgroundColor),this.hoverBorderColor=(r,i)=>Oc(i.borderColor),this.hoverColor=(r,i)=>Oc(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return Nc(this,t,n)}get(t){return oa(this,t)}describe(t,n){return Nc(af,t,n)}override(t,n){return Nc($i,t,n)}route(t,n,r,i){const o=oa(this,t),a=oa(this,r),s="_"+n;Object.defineProperties(o,{[s]:{value:o[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[s],u=a[i];return Ee(l)?Object.assign({},u,l):we(l,u)},set(l){this[s]=l}}})}apply(t){t.forEach(n=>n(this))}}var nt=new Bk({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[Ak,Fk,Mk]);function Ok(e){return!e||je(e.size)||je(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function Kp(e,t,n,r,i){let o=t[i];return o||(o=t[i]=e.measureText(i).width,n.push(i)),o>r&&(r=o),r}function Kr(e,t,n){const r=e.currentDevicePixelRatio,i=n!==0?Math.max(n/2,.5):0;return Math.round((t-i)*r)/r+i}function qp(e,t){!t&&!e||(t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function sf(e,t,n,r){oC(e,t,n,r,null)}function oC(e,t,n,r,i){let o,a,s,l,u,c,d,h;const f=t.pointStyle,g=t.rotation,m=t.radius;let b=(g||0)*gk;if(f&&typeof f=="object"&&(o=f.toString(),o==="[object HTMLImageElement]"||o==="[object HTMLCanvasElement]")){e.save(),e.translate(n,r),e.rotate(b),e.drawImage(f,-f.width/2,-f.height/2,f.width,f.height),e.restore();return}if(!(isNaN(m)||m<=0)){switch(e.beginPath(),f){default:i?e.ellipse(n,r,i/2,m,0,0,Je):e.arc(n,r,m,0,Je),e.closePath();break;case"triangle":c=i?i/2:m,e.moveTo(n+Math.sin(b)*c,r-Math.cos(b)*m),b+=Wp,e.lineTo(n+Math.sin(b)*c,r-Math.cos(b)*m),b+=Wp,e.lineTo(n+Math.sin(b)*c,r-Math.cos(b)*m),e.closePath();break;case"rectRounded":u=m*.516,l=m-u,a=Math.cos(b+Jr)*l,d=Math.cos(b+Jr)*(i?i/2-u:l),s=Math.sin(b+Jr)*l,h=Math.sin(b+Jr)*(i?i/2-u:l),e.arc(n-d,r-s,u,b-et,b-lt),e.arc(n+h,r-a,u,b-lt,b),e.arc(n+d,r+s,u,b,b+lt),e.arc(n-h,r+a,u,b+lt,b+et),e.closePath();break;case"rect":if(!g){l=Math.SQRT1_2*m,c=i?i/2:l,e.rect(n-c,r-l,2*c,2*l);break}b+=Jr;case"rectRot":d=Math.cos(b)*(i?i/2:m),a=Math.cos(b)*m,s=Math.sin(b)*m,h=Math.sin(b)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+h,r-a),e.lineTo(n+d,r+s),e.lineTo(n-h,r+a),e.closePath();break;case"crossRot":b+=Jr;case"cross":d=Math.cos(b)*(i?i/2:m),a=Math.cos(b)*m,s=Math.sin(b)*m,h=Math.sin(b)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+h,r-a),e.lineTo(n-h,r+a);break;case"star":d=Math.cos(b)*(i?i/2:m),a=Math.cos(b)*m,s=Math.sin(b)*m,h=Math.sin(b)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+h,r-a),e.lineTo(n-h,r+a),b+=Jr,d=Math.cos(b)*(i?i/2:m),a=Math.cos(b)*m,s=Math.sin(b)*m,h=Math.sin(b)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+h,r-a),e.lineTo(n-h,r+a);break;case"line":a=i?i/2:Math.cos(b)*m,s=Math.sin(b)*m,e.moveTo(n-a,r-s),e.lineTo(n+a,r+s);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(b)*(i?i/2:m),r+Math.sin(b)*m);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function Wa(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function Ou(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function Nu(e){e.restore()}function Nk(e,t,n,r,i){if(!t)return e.lineTo(n.x,n.y);if(i==="middle"){const o=(t.x+n.x)/2;e.lineTo(o,t.y),e.lineTo(o,n.y)}else i==="after"!=!!r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function Vk(e,t,n,r){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function Lk(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),je(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function Hk(e,t,n,r,i){if(i.strikethrough||i.underline){const o=e.measureText(r),a=t-o.actualBoundingBoxLeft,s=t+o.actualBoundingBoxRight,l=n-o.actualBoundingBoxAscent,u=n+o.actualBoundingBoxDescent,c=i.strikethrough?(l+u)/2:u;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(a,c),e.lineTo(s,c),e.stroke()}}function jk(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function za(e,t,n,r,i,o={}){const a=ot(t)?t:[t],s=o.strokeWidth>0&&o.strokeColor!=="";let l,u;for(e.save(),e.font=i.string,Lk(e,o),l=0;l<a.length;++l)u=a[l],o.backdrop&&jk(e,o.backdrop),s&&(o.strokeColor&&(e.strokeStyle=o.strokeColor),je(o.strokeWidth)||(e.lineWidth=o.strokeWidth),e.strokeText(u,n,r,o.maxWidth)),e.fillText(u,n,r,o.maxWidth),Hk(e,n,r,u,o),r+=Number(i.lineHeight);e.restore()}function nu(e,t){const{x:n,y:r,w:i,h:o,radius:a}=t;e.arc(n+a.topLeft,r+a.topLeft,a.topLeft,1.5*et,et,!0),e.lineTo(n,r+o-a.bottomLeft),e.arc(n+a.bottomLeft,r+o-a.bottomLeft,a.bottomLeft,et,lt,!0),e.lineTo(n+i-a.bottomRight,r+o),e.arc(n+i-a.bottomRight,r+o-a.bottomRight,a.bottomRight,lt,0,!0),e.lineTo(n+i,r+a.topRight),e.arc(n+i-a.topRight,r+a.topRight,a.topRight,0,-lt,!0),e.lineTo(n+a.topLeft,r)}const Wk=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,zk=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function Gk(e,t){const n=(""+e).match(Wk);if(!n||n[1]==="normal")return t*1.2;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100;break}return t*e}const Zk=e=>+e||0;function qh(e,t){const n={},r=Ee(t),i=r?Object.keys(t):t,o=Ee(e)?r?a=>we(e[a],e[t[a]]):a=>e[a]:()=>e;for(const a of i)n[a]=Zk(o(a));return n}function aC(e){return qh(e,{top:"y",right:"x",bottom:"y",left:"x"})}function so(e){return qh(e,["topLeft","topRight","bottomLeft","bottomRight"])}function fn(e){const t=aC(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Et(e,t){e=e||{},t=t||nt.font;let n=we(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=we(e.style,t.style);r&&!(""+r).match(zk)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:we(e.family,t.family),lineHeight:Gk(we(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:we(e.weight,t.weight),string:""};return i.string=Ok(i),i}function Ls(e,t,n,r){let i,o,a;for(i=0,o=e.length;i<o;++i)if(a=e[i],a!==void 0&&a!==void 0)return a}function Xk(e,t,n){const{min:r,max:i}=e,o=J3(t,(i-r)/2),a=(s,l)=>n&&s===0?0:s+l;return{min:a(r,-Math.abs(o)),max:a(i,o)}}function Ti(e,t){return Object.assign(Object.create(e),t)}function Qh(e,t=[""],n,r,i=()=>e[0]){const o=n||e;typeof r>"u"&&(r=cC("_fallback",e));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:o,_fallback:r,_getTarget:i,override:s=>Qh([s,...e],t,o,r)};return new Proxy(a,{deleteProperty(s,l){return delete s[l],delete s._keys,delete e[0][l],!0},get(s,l){return lC(s,l,()=>tM(l,t,e,s))},getOwnPropertyDescriptor(s,l){return Reflect.getOwnPropertyDescriptor(s._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(s,l){return e0(s).includes(l)},ownKeys(s){return e0(s)},set(s,l,u){const c=s._storage||(s._storage=i());return s[l]=c[l]=u,delete s._keys,!0}})}function vo(e,t,n,r){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:sC(e,r),setContext:o=>vo(e,o,n,r),override:o=>vo(e.override(o),t,n,r)};return new Proxy(i,{deleteProperty(o,a){return delete o[a],delete e[a],!0},get(o,a,s){return lC(o,a,()=>Uk(o,a,s))},getOwnPropertyDescriptor(o,a){return o._descriptors.allKeys?Reflect.has(e,a)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,a)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(o,a){return Reflect.has(e,a)},ownKeys(){return Reflect.ownKeys(e)},set(o,a,s){return e[a]=s,delete o[a],!0}})}function sC(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:jr(n)?n:()=>n,isIndexable:jr(r)?r:()=>r}}const Yk=(e,t)=>e?e+Xh(t):t,eg=(e,t)=>Ee(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function lC(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||t==="constructor")return e[t];const r=n();return e[t]=r,r}function Uk(e,t,n){const{_proxy:r,_context:i,_subProxy:o,_descriptors:a}=e;let s=r[t];return jr(s)&&a.isScriptable(t)&&(s=Jk(t,s,e,n)),ot(s)&&s.length&&(s=Kk(t,s,e,a.isIndexable)),eg(t,s)&&(s=vo(s,i,o&&o[t],a)),s}function Jk(e,t,n,r){const{_proxy:i,_context:o,_subProxy:a,_stack:s}=n;if(s.has(e))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e);let l=t(o,a||r);return s.delete(e),eg(e,l)&&(l=tg(i._scopes,i,e,l)),l}function Kk(e,t,n,r){const{_proxy:i,_context:o,_subProxy:a,_descriptors:s}=n;if(typeof o.index<"u"&&r(e))return t[o.index%t.length];if(Ee(t[0])){const l=t,u=i._scopes.filter(c=>c!==l);t=[];for(const c of l){const d=tg(u,i,e,c);t.push(vo(d,o,a&&a[e],s))}}return t}function uC(e,t,n){return jr(e)?e(t,n):e}const qk=(e,t)=>e===!0?t:typeof e=="string"?_i(t,e):void 0;function Qk(e,t,n,r,i){for(const o of t){const a=qk(n,o);if(a){e.add(a);const s=uC(a._fallback,n,i);if(typeof s<"u"&&s!==n&&s!==r)return s}else if(a===!1&&typeof r<"u"&&n!==r)return null}return!1}function tg(e,t,n,r){const i=t._rootScopes,o=uC(t._fallback,n,r),a=[...e,...i],s=new Set;s.add(r);let l=Qp(s,a,n,o||n,r);return l===null||typeof o<"u"&&o!==n&&(l=Qp(s,a,o,l,r),l===null)?!1:Qh(Array.from(s),[""],i,o,()=>eM(t,n,r))}function Qp(e,t,n,r,i){for(;n;)n=Qk(e,t,n,r,i);return n}function eM(e,t,n){const r=e._getTarget();t in r||(r[t]={});const i=r[t];return ot(i)&&Ee(n)?n:i||{}}function tM(e,t,n,r){let i;for(const o of t)if(i=cC(Yk(o,e),n),typeof i<"u")return eg(e,i)?tg(n,r,e,i):i}function cC(e,t){for(const n of t){if(!n)continue;const r=n[e];if(typeof r<"u")return r}}function e0(e){let t=e._keys;return t||(t=e._keys=nM(e._scopes)),t}function nM(e){const t=new Set;for(const n of e)for(const r of Object.keys(n).filter(i=>!i.startsWith("_")))t.add(r);return Array.from(t)}const rM=Number.EPSILON||1e-14,yo=(e,t)=>t<e.length&&!e[t].skip&&e[t],dC=e=>e==="x"?"y":"x";function iM(e,t,n,r){const i=e.skip?t:e,o=t,a=n.skip?t:n,s=of(o,i),l=of(a,o);let u=s/(s+l),c=l/(s+l);u=isNaN(u)?0:u,c=isNaN(c)?0:c;const d=r*u,h=r*c;return{previous:{x:o.x-d*(a.x-i.x),y:o.y-d*(a.y-i.y)},next:{x:o.x+h*(a.x-i.x),y:o.y+h*(a.y-i.y)}}}function oM(e,t,n){const r=e.length;let i,o,a,s,l,u=yo(e,0);for(let c=0;c<r-1;++c)if(l=u,u=yo(e,c+1),!(!l||!u)){if(ra(t[c],0,rM)){n[c]=n[c+1]=0;continue}i=n[c]/t[c],o=n[c+1]/t[c],s=Math.pow(i,2)+Math.pow(o,2),!(s<=9)&&(a=3/Math.sqrt(s),n[c]=i*a*t[c],n[c+1]=o*a*t[c])}}function aM(e,t,n="x"){const r=dC(n),i=e.length;let o,a,s,l=yo(e,0);for(let u=0;u<i;++u){if(a=s,s=l,l=yo(e,u+1),!s)continue;const c=s[n],d=s[r];a&&(o=(c-a[n])/3,s[`cp1${n}`]=c-o,s[`cp1${r}`]=d-o*t[u]),l&&(o=(l[n]-c)/3,s[`cp2${n}`]=c+o,s[`cp2${r}`]=d+o*t[u])}}function sM(e,t="x"){const n=dC(t),r=e.length,i=Array(r).fill(0),o=Array(r);let a,s,l,u=yo(e,0);for(a=0;a<r;++a)if(s=l,l=u,u=yo(e,a+1),!!l){if(u){const c=u[t]-l[t];i[a]=c!==0?(u[n]-l[n])/c:0}o[a]=s?u?Wn(i[a-1])!==Wn(i[a])?0:(i[a-1]+i[a])/2:i[a-1]:i[a]}oM(e,i,o),aM(e,o,t)}function Hs(e,t,n){return Math.max(Math.min(e,n),t)}function lM(e,t){let n,r,i,o,a,s=Wa(e[0],t);for(n=0,r=e.length;n<r;++n)a=o,o=s,s=n<r-1&&Wa(e[n+1],t),o&&(i=e[n],a&&(i.cp1x=Hs(i.cp1x,t.left,t.right),i.cp1y=Hs(i.cp1y,t.top,t.bottom)),s&&(i.cp2x=Hs(i.cp2x,t.left,t.right),i.cp2y=Hs(i.cp2y,t.top,t.bottom)))}function uM(e,t,n,r,i){let o,a,s,l;if(t.spanGaps&&(e=e.filter(u=>!u.skip)),t.cubicInterpolationMode==="monotone")sM(e,i);else{let u=r?e[e.length-1]:e[0];for(o=0,a=e.length;o<a;++o)s=e[o],l=iM(u,s,e[Math.min(o+1,a-(r?0:1))%a],t.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,u=s}t.capBezierPoints&&lM(e,n)}function ng(){return typeof window<"u"&&typeof document<"u"}function rg(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function ru(e,t,n){let r;return typeof e=="string"?(r=parseInt(e,10),e.indexOf("%")!==-1&&(r=r/100*t.parentNode[n])):r=e,r}const Vu=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function cM(e,t){return Vu(e).getPropertyValue(t)}const dM=["top","right","bottom","left"];function mi(e,t,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const o=dM[i];r[o]=parseFloat(e[t+"-"+o+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const fM=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function hM(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:o}=r;let a=!1,s,l;if(fM(i,o,e.target))s=i,l=o;else{const u=t.getBoundingClientRect();s=r.clientX-u.left,l=r.clientY-u.top,a=!0}return{x:s,y:l,box:a}}function ni(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,i=Vu(n),o=i.boxSizing==="border-box",a=mi(i,"padding"),s=mi(i,"border","width"),{x:l,y:u,box:c}=hM(e,n),d=a.left+(c&&s.left),h=a.top+(c&&s.top);let{width:f,height:g}=t;return o&&(f-=a.width+s.width,g-=a.height+s.height),{x:Math.round((l-d)/f*n.width/r),y:Math.round((u-h)/g*n.height/r)}}function gM(e,t,n){let r,i;if(t===void 0||n===void 0){const o=e&&rg(e);if(!o)t=e.clientWidth,n=e.clientHeight;else{const a=o.getBoundingClientRect(),s=Vu(o),l=mi(s,"border","width"),u=mi(s,"padding");t=a.width-u.width-l.width,n=a.height-u.height-l.height,r=ru(s.maxWidth,o,"clientWidth"),i=ru(s.maxHeight,o,"clientHeight")}}return{width:t,height:n,maxWidth:r||tu,maxHeight:i||tu}}const js=e=>Math.round(e*10)/10;function mM(e,t,n,r){const i=Vu(e),o=mi(i,"margin"),a=ru(i.maxWidth,e,"clientWidth")||tu,s=ru(i.maxHeight,e,"clientHeight")||tu,l=gM(e,t,n);let{width:u,height:c}=l;if(i.boxSizing==="content-box"){const h=mi(i,"border","width"),f=mi(i,"padding");u-=f.width+h.width,c-=f.height+h.height}return u=Math.max(0,u-o.width),c=Math.max(0,r?u/r:c-o.height),u=js(Math.min(u,a,l.maxWidth)),c=js(Math.min(c,s,l.maxHeight)),u&&!c&&(c=js(u/2)),(t!==void 0||n!==void 0)&&r&&l.height&&c>l.height&&(c=l.height,u=js(Math.floor(c*r))),{width:u,height:c}}function t0(e,t,n){const r=t||1,i=Math.floor(e.height*r),o=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const a=e.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${e.height}px`,a.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||a.height!==i||a.width!==o?(e.currentDevicePixelRatio=r,a.height=i,a.width=o,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const pM=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};ng()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e}();function n0(e,t){const n=cM(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function ri(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function bM(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:r==="middle"?n<.5?e.y:t.y:r==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function vM(e,t,n,r){const i={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},a=ri(e,i,n),s=ri(i,o,n),l=ri(o,t,n),u=ri(a,s,n),c=ri(s,l,n);return ri(u,c,n)}const yM=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},xM=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function lo(e,t,n){return e?yM(t,n):xM()}function fC(e,t){let n,r;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function hC(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function gC(e){return e==="angle"?{between:ja,compare:yk,normalize:Mn}:{between:dr,compare:(t,n)=>t-n,normalize:t=>t}}function r0({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n===0,style:i}}function CM(e,t,n){const{property:r,start:i,end:o}=n,{between:a,normalize:s}=gC(r),l=t.length;let{start:u,end:c,loop:d}=e,h,f;if(d){for(u+=l,c+=l,h=0,f=l;h<f&&a(s(t[u%l][r]),i,o);++h)u--,c--;u%=l,c%=l}return c<u&&(c+=l),{start:u,end:c,loop:d,style:e.style}}function mC(e,t,n){if(!n)return[e];const{property:r,start:i,end:o}=n,a=t.length,{compare:s,between:l,normalize:u}=gC(r),{start:c,end:d,loop:h,style:f}=CM(e,t,n),g=[];let m=!1,b=null,y,v,x;const C=()=>l(i,x,y)&&s(i,x)!==0,D=()=>s(o,y)===0||l(o,x,y),I=()=>m||C(),T=()=>!m||D();for(let p=c,S=c;p<=d;++p)v=t[p%a],!v.skip&&(y=u(v[r]),y!==x&&(m=l(y,i,o),b===null&&I()&&(b=s(y,i)===0?p:S),b!==null&&T()&&(g.push(r0({start:b,end:p,loop:h,count:a,style:f})),b=null),S=p,x=y));return b!==null&&g.push(r0({start:b,end:d,loop:h,count:a,style:f})),g}function pC(e,t){const n=[],r=e.segments;for(let i=0;i<r.length;i++){const o=mC(r[i],e.points,t);o.length&&n.push(...o)}return n}function wM(e,t,n,r){let i=0,o=t-1;if(n&&!r)for(;i<t&&!e[i].skip;)i++;for(;i<t&&e[i].skip;)i++;for(i%=t,n&&(o+=i);o>i&&e[o%t].skip;)o--;return o%=t,{start:i,end:o}}function DM(e,t,n,r){const i=e.length,o=[];let a=t,s=e[t],l;for(l=t+1;l<=n;++l){const u=e[l%i];u.skip||u.stop?s.skip||(r=!1,o.push({start:t%i,end:(l-1)%i,loop:r}),t=a=u.stop?l:null):(a=l,s.skip&&(t=l)),s=u}return a!==null&&o.push({start:t%i,end:a%i,loop:r}),o}function SM(e,t){const n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];const o=!!e._loop,{start:a,end:s}=wM(n,i,o,r);if(r===!0)return i0(e,[{start:a,end:s,loop:o}],n,t);const l=s<a?s+i:s,u=!!e._fullLoop&&a===0&&s===i-1;return i0(e,DM(n,a,l,u),n,t)}function i0(e,t,n,r){return!r||!r.setContext||!n?t:EM(e,t,n,r)}function EM(e,t,n,r){const i=e._chart.getContext(),o=o0(e.options),{_datasetIndex:a,options:{spanGaps:s}}=e,l=n.length,u=[];let c=o,d=t[0].start,h=d;function f(g,m,b,y){const v=s?-1:1;if(g!==m){for(g+=l;n[g%l].skip;)g-=v;for(;n[m%l].skip;)m+=v;g%l!==m%l&&(u.push({start:g%l,end:m%l,loop:b,style:y}),c=y,d=m%l)}}for(const g of t){d=s?d:g.start;let m=n[d%l],b;for(h=d+1;h<=g.end;h++){const y=n[h%l];b=o0(r.setContext(Ti(i,{type:"segment",p0:m,p1:y,p0DataIndex:(h-1)%l,p1DataIndex:h%l,datasetIndex:a}))),IM(b,c)&&f(d,h-1,g.loop,c),m=y,c=b}d<h-1&&f(d,h-1,g.loop,c)}return u}function o0(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function IM(e,t){if(!t)return!1;const n=[],r=function(i,o){return Jh(o)?(n.includes(o)||n.push(o),n.indexOf(o)):o};return JSON.stringify(e,r)!==JSON.stringify(t,r)}/*!
144
144
  * Chart.js v4.4.3
145
145
  * https://www.chartjs.org
146
146
  * (c) 2024 Chart.js Contributors
147
147
  * Released under the MIT License
148
- */class _M{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,r,i){const o=n.listeners[i],a=n.duration;o.forEach(s=>s({chart:t,initial:n.initial,numSteps:a,currentStep:Math.min(r-n.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=nC.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;const o=r.items;let a=o.length-1,s=!1,l;for(;a>=0;--a)l=o[a],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(t),s=!0):(o[a]=o[o.length-1],o.pop());s&&(i.draw(),this._notify(i,r,t,"progress")),o.length||(r.running=!1,this._notify(i,r,t,"complete"),r.initial=!1),n+=o.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,i)=>Math.max(r,i._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const r=n.items;let i=r.length-1;for(;i>=0;--i)r[i].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var er=new _M;const a0="transparent",$M={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=Up(e||a0),i=r.valid&&Up(t||a0);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class RM{constructor(t,n,r,i){const o=n[r];i=Ls([t.to,i,o,t.from]);const a=Ls([t.from,o,i]);this._active=!0,this._fn=t.fn||$M[t.type||typeof a],this._easing=ia[t.easing]||ia.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=a,this._to=i,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);const i=this._target[this._prop],o=r-this._start,a=this._duration-o;this._start=r,this._duration=Math.floor(Math.max(a,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=Ls([t.to,n,i,t.from]),this._from=Ls([t.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,r=this._duration,i=this._prop,o=this._from,a=this._loop,s=this._to;let l;if(this._active=o!==s&&(a||n<r),!this._active){this._target[i]=s,this._notify(!0);return}if(n<0){this._target[i]=o;return}l=n/r%2,l=a&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(o,s,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){const n=t?"res":"rej",r=this._promises||[];for(let i=0;i<r.length;i++)r[i][n]()}}class bC{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!Ee(t))return;const n=Object.keys(nt.animation),r=this._properties;Object.getOwnPropertyNames(t).forEach(i=>{const o=t[i];if(!Ee(o))return;const a={};for(const s of n)a[s]=o[s];(ot(o.properties)&&o.properties||[i]).forEach(s=>{(s===i||!r.has(s))&&r.set(s,a)})})}_animateOptions(t,n){const r=n.options,i=FM(t,r);if(!i)return[];const o=this._createAnimations(i,r);return r.$shared&&AM(t.options.$animations,r).then(()=>{t.options=r},()=>{}),o}_createAnimations(t,n){const r=this._properties,i=[],o=t.$animations||(t.$animations={}),a=Object.keys(n),s=Date.now();let l;for(l=a.length-1;l>=0;--l){const u=a[l];if(u.charAt(0)==="$")continue;if(u==="options"){i.push(...this._animateOptions(t,n));continue}const c=n[u];let d=o[u];const h=r.get(u);if(d)if(h&&d.active()){d.update(h,c,s);continue}else d.cancel();if(!h||!h.duration){t[u]=c;continue}o[u]=d=new RM(h,t,u,c),i.push(d)}return i}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const r=this._createAnimations(t,n);if(r.length)return er.add(this._chart,r),!0}}function AM(e,t){const n=[],r=Object.keys(t);for(let i=0;i<r.length;i++){const o=e[r[i]];o&&o.active()&&n.push(o.wait())}return Promise.all(n)}function FM(e,t){if(!t)return;let n=e.options;if(!n){e.options=t;return}return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function s0(e,t){const n=e&&e.options||{},r=n.reverse,i=n.min===void 0?t:0,o=n.max===void 0?t:0;return{start:r?o:i,end:r?i:o}}function PM(e,t,n){if(n===!1)return!1;const r=s0(e,n),i=s0(t,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}function TM(e){let t,n,r,i;return Ee(e)?(t=e.top,n=e.right,r=e.bottom,i=e.left):t=n=r=i=e,{top:t,right:n,bottom:r,left:i,disabled:e===!1}}function vC(e,t){const n=[],r=e._getSortedDatasetMetas(t);let i,o;for(i=0,o=r.length;i<o;++i)n.push(r[i].index);return n}function l0(e,t,n,r={}){const i=e.keys,o=r.mode==="single";let a,s,l,u;if(t!==null){for(a=0,s=i.length;a<s;++a){if(l=+i[a],l===n){if(r.all)continue;break}u=e.values[l],It(u)&&(o||t===0||Wn(t)===Wn(u))&&(t+=u)}return t}}function kM(e,t){const{iScale:n,vScale:r}=t,i=n.axis==="x"?"x":"y",o=r.axis==="x"?"x":"y",a=Object.keys(e),s=new Array(a.length);let l,u,c;for(l=0,u=a.length;l<u;++l)c=a[l],s[l]={[i]:c,[o]:e[c]};return s}function u0(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function MM(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function BM(e){const{min:t,max:n,minDefined:r,maxDefined:i}=e.getUserBounds();return{min:r?t:Number.NEGATIVE_INFINITY,max:i?n:Number.POSITIVE_INFINITY}}function OM(e,t,n){const r=e[t]||(e[t]={});return r[n]||(r[n]={})}function c0(e,t,n,r){for(const i of t.getMatchingVisibleMetas(r).reverse()){const o=e[i.index];if(n&&o>0||!n&&o<0)return i.index}return null}function d0(e,t){const{chart:n,_cachedMeta:r}=e,i=n._stacks||(n._stacks={}),{iScale:o,vScale:a,index:s}=r,l=o.axis,u=a.axis,c=MM(o,a,r),d=t.length;let h;for(let f=0;f<d;++f){const g=t[f],{[l]:m,[u]:b}=g,y=g._stacks||(g._stacks={});h=y[u]=OM(i,c,m),h[s]=b,h._top=c0(h,a,!0,r.type),h._bottom=c0(h,a,!1,r.type);const v=h._visualValues||(h._visualValues={});v[s]=b}}function Vc(e,t){const n=e.scales;return Object.keys(n).filter(r=>n[r].axis===t).shift()}function NM(e,t){return Ti(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function VM(e,t,n){return Ti(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function Po(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;for(const i of t){const o=i._stacks;if(!o||o[r]===void 0||o[r][n]===void 0)return;delete o[r][n],o[r]._visualValues!==void 0&&o[r]._visualValues[n]!==void 0&&delete o[r]._visualValues[n]}}}const Lc=e=>e==="reset"||e==="none",f0=(e,t)=>t?e:Object.assign({},e),LM=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:vC(n,!0),values:null};class pi{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=u0(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Po(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(d,h,f,g)=>d==="x"?h:d==="r"?g:f,o=n.xAxisID=we(r.xAxisID,Vc(t,"x")),a=n.yAxisID=we(r.yAxisID,Vc(t,"y")),s=n.rAxisID=we(r.rAxisID,Vc(t,"r")),l=n.indexAxis,u=n.iAxisID=i(l,o,a,s),c=n.vAxisID=i(l,a,o,s);n.xScale=this.getScaleForId(o),n.yScale=this.getScaleForId(a),n.rScale=this.getScaleForId(s),n.iScale=this.getScaleForId(u),n.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Zp(this._data,this),t._stacked&&Po(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(Ee(n)){const i=this._cachedMeta;this._data=kM(n,i)}else if(r!==n){if(r){Zp(r,this);const i=this._cachedMeta;Po(i),i._parsed=[]}n&&Object.isExtensible(n)&&Dk(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,r=this.getDataset();let i=!1;this._dataCheck();const o=n._stacked;n._stacked=u0(n.vScale,n),n.stack!==r.stack&&(i=!0,Po(n),n.stack=r.stack),this._resyncElements(t),(i||o!==n._stacked)&&d0(this,n._parsed)}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:r,_data:i}=this,{iScale:o,_stacked:a}=r,s=o.axis;let l=t===0&&n===i.length?!0:r._sorted,u=t>0&&r._parsed[t-1],c,d,h;if(this._parsing===!1)r._parsed=i,r._sorted=!0,h=i;else{ot(i[t])?h=this.parseArrayData(r,i,t,n):Ee(i[t])?h=this.parseObjectData(r,i,t,n):h=this.parsePrimitiveData(r,i,t,n);const f=()=>d[s]===null||u&&d[s]<u[s];for(c=0;c<n;++c)r._parsed[c+t]=d=h[c],l&&(f()&&(l=!1),u=d);r._sorted=l}a&&d0(this,h)}parsePrimitiveData(t,n,r,i){const{iScale:o,vScale:a}=t,s=o.axis,l=a.axis,u=o.getLabels(),c=o===a,d=new Array(i);let h,f,g;for(h=0,f=i;h<f;++h)g=h+r,d[h]={[s]:c||o.parse(u[g],g),[l]:a.parse(n[g],g)};return d}parseArrayData(t,n,r,i){const{xScale:o,yScale:a}=t,s=new Array(i);let l,u,c,d;for(l=0,u=i;l<u;++l)c=l+r,d=n[c],s[l]={x:o.parse(d[0],c),y:a.parse(d[1],c)};return s}parseObjectData(t,n,r,i){const{xScale:o,yScale:a}=t,{xAxisKey:s="x",yAxisKey:l="y"}=this._parsing,u=new Array(i);let c,d,h,f;for(c=0,d=i;c<d;++c)h=c+r,f=n[h],u[c]={x:o.parse(_i(f,s),h),y:a.parse(_i(f,l),h)};return u}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,n,r){const i=this.chart,o=this._cachedMeta,a=n[t.axis],s={keys:vC(i,!0),values:n._stacks[t.axis]._visualValues};return l0(s,a,o.index,{mode:r})}updateRangeFromParsed(t,n,r,i){const o=r[n.axis];let a=o===null?NaN:o;const s=i&&r._stacks[n.axis];i&&s&&(i.values=s,a=l0(i,o,this._cachedMeta.index)),t.min=Math.min(t.min,a),t.max=Math.max(t.max,a)}getMinMax(t,n){const r=this._cachedMeta,i=r._parsed,o=r._sorted&&t===r.iScale,a=i.length,s=this._getOtherScale(t),l=LM(n,r,this.chart),u={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:d}=BM(s);let h,f;function g(){f=i[h];const m=f[s.axis];return!It(f[t.axis])||c>m||d<m}for(h=0;h<a&&!(!g()&&(this.updateRangeFromParsed(u,t,f,l),o));++h);if(o){for(h=a-1;h>=0;--h)if(!g()){this.updateRangeFromParsed(u,t,f,l);break}}return u}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let i,o,a;for(i=0,o=n.length;i<o;++i)a=n[i][t.axis],It(a)&&r.push(a);return r}getMaxOverflow(){return!1}getLabelAndValue(t){const n=this._cachedMeta,r=n.iScale,i=n.vScale,o=this.getParsed(t);return{label:r?""+r.getLabelForValue(o[r.axis]):"",value:i?""+i.getLabelForValue(o[i.axis]):""}}_update(t){const n=this._cachedMeta;this.update(t||"default"),n._clip=TM(we(this.options.clip,PM(n.xScale,n.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,n=this.chart,r=this._cachedMeta,i=r.data||[],o=n.chartArea,a=[],s=this._drawStart||0,l=this._drawCount||i.length-s,u=this.options.drawActiveElementsOnTop;let c;for(r.dataset&&r.dataset.draw(t,o,s,l),c=s;c<s+l;++c){const d=i[c];d.hidden||(d.active&&u?a.push(d):d.draw(t,o))}for(c=0;c<a.length;++c)a[c].draw(t,o)}getStyle(t,n){const r=n?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(t||0,r)}getContext(t,n,r){const i=this.getDataset();let o;if(t>=0&&t<this._cachedMeta.data.length){const a=this._cachedMeta.data[t];o=a.$context||(a.$context=VM(this.getContext(),t,a)),o.parsed=this.getParsed(t),o.raw=i.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=NM(this.chart.getContext(),this.index)),o.dataset=i,o.index=o.datasetIndex=this.index;return o.active=!!n,o.mode=r,o}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,n){return this._resolveElementOptions(this.dataElementType.id,n,t)}_resolveElementOptions(t,n="default",r){const i=n==="active",o=this._cachedDataOpts,a=t+"-"+n,s=o[a],l=this.enableOptionSharing&&La(r);if(s)return f0(s,l);const u=this.chart.config,c=u.datasetElementScopeKeys(this._type,t),d=i?[`${t}Hover`,"hover",t,""]:[t,""],h=u.getOptionScopes(this.getDataset(),c),f=Object.keys(nt.elements[t]),g=()=>this.getContext(r,i,n),m=u.resolveNamedOptions(h,f,g,d);return m.$shared&&(m.$shared=l,o[a]=Object.freeze(f0(m,l))),m}_resolveAnimations(t,n,r){const i=this.chart,o=this._cachedDataOpts,a=`animation-${n}`,s=o[a];if(s)return s;let l;if(i.options.animation!==!1){const c=this.chart.config,d=c.datasetAnimationScopeKeys(this._type,n),h=c.getOptionScopes(this.getDataset(),d);l=c.createResolver(h,this.getContext(t,r,n))}const u=new bC(i,l&&l.animations);return l&&l._cacheable&&(o[a]=Object.freeze(u)),u}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||Lc(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),i=this._sharedOptions,o=this.getSharedOptions(r),a=this.includeOptions(n,o)||o!==i;return this.updateSharedOptions(o,n,r),{sharedOptions:o,includeOptions:a}}updateElement(t,n,r,i){Lc(i)?Object.assign(t,r):this._resolveAnimations(n,i).update(t,r)}updateSharedOptions(t,n,r){t&&!Lc(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,i){t.active=i;const o=this.getStyle(n,i);this._resolveAnimations(n,r,i).update(t,{options:!i&&this.getSharedOptions(o)||o})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,r=this._cachedMeta.data;for(const[s,l,u]of this._syncList)this[s](l,u);this._syncList=[];const i=r.length,o=n.length,a=Math.min(o,i);a&&this.parse(0,a),o>i?this._insertElements(i,o-i,t):o<i&&this._removeElements(o,i-o)}_insertElements(t,n,r=!0){const i=this._cachedMeta,o=i.data,a=t+n;let s;const l=u=>{for(u.length+=n,s=u.length-1;s>=a;s--)u[s]=u[s-n]};for(l(o),s=t;s<a;++s)o[s]=new this.dataElementType;this._parsing&&l(i._parsed),this.parse(t,n),r&&this.updateElements(o,t,n,"reset")}updateElements(t,n,r,i){}_removeElements(t,n){const r=this._cachedMeta;if(this._parsing){const i=r._parsed.splice(t,n);r._stacked&&Po(r,i)}r.data.splice(t,n)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[n,r,i]=t;this[n](r,i)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,n){n&&this._sync(["_removeElements",t,n]);const r=arguments.length-2;r&&this._sync(["_insertElements",t,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}re(pi,"defaults",{}),re(pi,"datasetElementType",null),re(pi,"dataElementType",null);function jM(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let r=[];for(let i=0,o=n.length;i<o;i++)r=r.concat(n[i].controller.getAllParsedValues(e));e._cache.$bar=tC(r.sort((i,o)=>i-o))}return e._cache.$bar}function HM(e){const t=e.iScale,n=jM(t,e.type);let r=t._length,i,o,a,s;const l=()=>{a===32767||a===-32768||(La(s)&&(r=Math.min(r,Math.abs(a-s)||r)),s=a)};for(i=0,o=n.length;i<o;++i)a=t.getPixelForValue(n[i]),l();for(s=void 0,i=0,o=t.ticks.length;i<o;++i)a=t.getPixelForTick(i),l();return r}function WM(e,t,n,r){const i=n.barThickness;let o,a;return He(i)?(o=t.min*n.categoryPercentage,a=n.barPercentage):(o=i*r,a=1),{chunk:o/r,ratio:a,start:t.pixels[e]-o/2}}function zM(e,t,n,r){const i=t.pixels,o=i[e];let a=e>0?i[e-1]:null,s=e<i.length-1?i[e+1]:null;const l=n.categoryPercentage;a===null&&(a=o-(s===null?t.end-t.start:s-o)),s===null&&(s=o+o-a);const u=o-(o-Math.min(a,s))/2*l;return{chunk:Math.abs(s-a)/2*l/r,ratio:n.barPercentage,start:u}}function GM(e,t,n,r){const i=n.parse(e[0],r),o=n.parse(e[1],r),a=Math.min(i,o),s=Math.max(i,o);let l=a,u=s;Math.abs(a)>Math.abs(s)&&(l=s,u=a),t[n.axis]=u,t._custom={barStart:l,barEnd:u,start:i,end:o,min:a,max:s}}function yC(e,t,n,r){return ot(e)?GM(e,t,n,r):t[n.axis]=n.parse(e,r),t}function h0(e,t,n,r){const i=e.iScale,o=e.vScale,a=i.getLabels(),s=i===o,l=[];let u,c,d,h;for(u=n,c=n+r;u<c;++u)h=t[u],d={},d[i.axis]=s||i.parse(a[u],u),l.push(yC(h,d,o,u));return l}function jc(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function ZM(e,t,n){return e!==0?Wn(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}function XM(e){let t,n,r,i,o;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.base<e.y,n="bottom",r="top"),t?(i="end",o="start"):(i="start",o="end"),{start:n,end:r,reverse:t,top:i,bottom:o}}function YM(e,t,n,r){let i=t.borderSkipped;const o={};if(!i){e.borderSkipped=o;return}if(i===!0){e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:a,end:s,reverse:l,top:u,bottom:c}=XM(e);i==="middle"&&n&&(e.enableBorderRadius=!0,(n._top||0)===r?i=u:(n._bottom||0)===r?i=c:(o[g0(c,a,s,l)]=!0,i=u)),o[g0(i,a,s,l)]=!0,e.borderSkipped=o}function g0(e,t,n,r){return r?(e=UM(e,t,n),e=m0(e,n,t)):e=m0(e,t,n),e}function UM(e,t,n){return e===t?n:e===n?t:e}function m0(e,t,n){return e==="start"?t:e==="end"?n:e}function JM(e,{inflateAmount:t},n){e.inflateAmount=t==="auto"?n===1?.33:0:t}class fl extends pi{parsePrimitiveData(t,n,r,i){return h0(t,n,r,i)}parseArrayData(t,n,r,i){return h0(t,n,r,i)}parseObjectData(t,n,r,i){const{iScale:o,vScale:a}=t,{xAxisKey:s="x",yAxisKey:l="y"}=this._parsing,u=o.axis==="x"?s:l,c=a.axis==="x"?s:l,d=[];let h,f,g,m;for(h=r,f=r+i;h<f;++h)m=n[h],g={},g[o.axis]=o.parse(_i(m,u),h),d.push(yC(_i(m,c),g,a,h));return d}updateRangeFromParsed(t,n,r,i){super.updateRangeFromParsed(t,n,r,i);const o=r._custom;o&&n===this._cachedMeta.vScale&&(t.min=Math.min(t.min,o.min),t.max=Math.max(t.max,o.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const n=this._cachedMeta,{iScale:r,vScale:i}=n,o=this.getParsed(t),a=o._custom,s=jc(a)?"["+a.start+", "+a.end+"]":""+i.getLabelForValue(o[i.axis]);return{label:""+r.getLabelForValue(o[r.axis]),value:s}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){const n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,t)}updateElements(t,n,r,i){const o=i==="reset",{index:a,_cachedMeta:{vScale:s}}=this,l=s.getBasePixel(),u=s.isHorizontal(),c=this._getRuler(),{sharedOptions:d,includeOptions:h}=this._getSharedOptions(n,i);for(let f=n;f<n+r;f++){const g=this.getParsed(f),m=o||He(g[s.axis])?{base:l,head:l}:this._calculateBarValuePixels(f),b=this._calculateBarIndexPixels(f,c),y=(g._stacks||{})[s.axis],v={horizontal:u,base:m.base,enableBorderRadius:!y||jc(g._custom)||a===y._top||a===y._bottom,x:u?m.head:b.center,y:u?b.center:m.head,height:u?b.size:Math.abs(m.size),width:u?Math.abs(m.size):b.size};h&&(v.options=d||this.resolveDataElementOptions(f,t[f].active?"active":i));const x=v.options||t[f].options;YM(v,x,y,a),JM(v,x,c.ratio),this.updateElement(t[f],f,v,i)}}_getStacks(t,n){const{iScale:r}=this._cachedMeta,i=r.getMatchingVisibleMetas(this._type).filter(l=>l.controller.options.grouped),o=r.options.stacked,a=[],s=l=>{const u=l.controller.getParsed(n),c=u&&u[l.vScale.axis];if(He(c)||isNaN(c))return!0};for(const l of i)if(!(n!==void 0&&s(l))&&((o===!1||a.indexOf(l.stack)===-1||o===void 0&&l.stack===void 0)&&a.push(l.stack),l.index===t))break;return a.length||a.push(void 0),a}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,r){const i=this._getStacks(t,r),o=n!==void 0?i.indexOf(n):-1;return o===-1?i.length-1:o}_getRuler(){const t=this.options,n=this._cachedMeta,r=n.iScale,i=[];let o,a;for(o=0,a=n.data.length;o<a;++o)i.push(r.getPixelForValue(this.getParsed(o)[r.axis],o));const s=t.barThickness;return{min:s||HM(n),pixels:i,start:r._startPixel,end:r._endPixel,stackCount:this._getStackCount(),scale:r,grouped:t.grouped,ratio:s?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:n,_stacked:r,index:i},options:{base:o,minBarLength:a}}=this,s=o||0,l=this.getParsed(t),u=l._custom,c=jc(u);let d=l[n.axis],h=0,f=r?this.applyStack(n,l,r):d,g,m;f!==d&&(h=f-d,f=d),c&&(d=u.barStart,f=u.barEnd-u.barStart,d!==0&&Wn(d)!==Wn(u.barEnd)&&(h=0),h+=d);const b=!He(o)&&!c?o:h;let y=n.getPixelForValue(b);if(this.chart.getDataVisibility(t)?g=n.getPixelForValue(h+f):g=y,m=g-y,Math.abs(m)<a){m=ZM(m,n,s)*a,d===s&&(y-=m/2);const v=n.getPixelForDecimal(0),x=n.getPixelForDecimal(1),C=Math.min(v,x),D=Math.max(v,x);y=Math.max(Math.min(y,D),C),g=y+m,r&&!c&&(l._stacks[n.axis]._visualValues[i]=n.getValueForPixel(g)-n.getValueForPixel(y))}if(y===n.getPixelForValue(s)){const v=Wn(m)*n.getLineWidthForValue(s)/2;y+=v,m-=v}return{size:m,base:y,head:g,center:g+m/2}}_calculateBarIndexPixels(t,n){const r=n.scale,i=this.options,o=i.skipNull,a=we(i.maxBarThickness,1/0);let s,l;if(n.grouped){const u=o?this._getStackCount(t):n.stackCount,c=i.barThickness==="flex"?zM(t,n,i,u):WM(t,n,i,u),d=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0);s=c.start+c.chunk*d+c.chunk/2,l=Math.min(a,c.chunk*c.ratio)}else s=r.getPixelForValue(this.getParsed(t)[r.axis],t),l=Math.min(a,n.min*n.ratio);return{base:s-l/2,head:s+l/2,center:s,size:l}}draw(){const t=this._cachedMeta,n=t.vScale,r=t.data,i=r.length;let o=0;for(;o<i;++o)this.getParsed(o)[n.axis]!==null&&!r[o].hidden&&r[o].draw(this._ctx)}}re(fl,"id","bar"),re(fl,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),re(fl,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});function KM(e,t,n){let r=1,i=1,o=0,a=0;if(t<Je){const s=e,l=s+t,u=Math.cos(s),c=Math.sin(s),d=Math.cos(l),h=Math.sin(l),f=(x,C,D)=>Ha(x,s,l,!0)?1:Math.max(C,C*n,D,D*n),g=(x,C,D)=>Ha(x,s,l,!0)?-1:Math.min(C,C*n,D,D*n),m=f(0,u,d),b=f(lt,c,h),y=g(et,u,d),v=g(et+lt,c,h);r=(m-y)/2,i=(b-v)/2,o=-(m+y)/2,a=-(b+v)/2}return{ratioX:r,ratioY:i,offsetX:o,offsetY:a}}class Go extends pi{constructor(t,n){super(t,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){const r=this.getDataset().data,i=this._cachedMeta;if(this._parsing===!1)i._parsed=r;else{let o=l=>+r[l];if(Ee(r[t])){const{key:l="value"}=this._parsing;o=u=>+_i(r[u],l)}let a,s;for(a=t,s=t+n;a<s;++a)i._parsed[a]=o(a)}}_getRotation(){return cr(this.options.rotation-90)}_getCircumference(){return cr(this.options.circumference)}_getRotationExtents(){let t=Je,n=-Je;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)&&this.chart.getDatasetMeta(r).type===this._type){const i=this.chart.getDatasetMeta(r).controller,o=i._getRotation(),a=i._getCircumference();t=Math.min(t,o),n=Math.max(n,o+a)}return{rotation:t,circumference:n-t}}update(t){const n=this.chart,{chartArea:r}=n,i=this._cachedMeta,o=i.data,a=this.getMaxBorderWidth()+this.getMaxOffset(o)+this.options.spacing,s=Math.max((Math.min(r.width,r.height)-a)/2,0),l=Math.min(sk(this.options.cutout,s),1),u=this._getRingWeight(this.index),{circumference:c,rotation:d}=this._getRotationExtents(),{ratioX:h,ratioY:f,offsetX:g,offsetY:m}=KM(d,c,l),b=(r.width-a)/h,y=(r.height-a)/f,v=Math.max(Math.min(b,y)/2,0),x=J3(this.options.radius,v),C=Math.max(x*l,0),D=(x-C)/this._getVisibleDatasetWeightTotal();this.offsetX=g*x,this.offsetY=m*x,i.total=this.calculateTotal(),this.outerRadius=x-D*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-D*u,0),this.updateElements(o,0,o.length,t)}_circumference(t,n){const r=this.options,i=this._cachedMeta,o=this._getCircumference();return n&&r.animation.animateRotate||!this.chart.getDataVisibility(t)||i._parsed[t]===null||i.data[t].hidden?0:this.calculateCircumference(i._parsed[t]*o/Je)}updateElements(t,n,r,i){const o=i==="reset",a=this.chart,s=a.chartArea,u=a.options.animation,c=(s.left+s.right)/2,d=(s.top+s.bottom)/2,h=o&&u.animateScale,f=h?0:this.innerRadius,g=h?0:this.outerRadius,{sharedOptions:m,includeOptions:b}=this._getSharedOptions(n,i);let y=this._getRotation(),v;for(v=0;v<n;++v)y+=this._circumference(v,o);for(v=n;v<n+r;++v){const x=this._circumference(v,o),C=t[v],D={x:c+this.offsetX,y:d+this.offsetY,startAngle:y,endAngle:y+x,circumference:x,outerRadius:g,innerRadius:f};b&&(D.options=m||this.resolveDataElementOptions(v,C.active?"active":i)),y+=x,this.updateElement(C,v,D,i)}}calculateTotal(){const t=this._cachedMeta,n=t.data;let r=0,i;for(i=0;i<n.length;i++){const o=t._parsed[i];o!==null&&!isNaN(o)&&this.chart.getDataVisibility(i)&&!n[i].hidden&&(r+=Math.abs(o))}return r}calculateCircumference(t){const n=this._cachedMeta.total;return n>0&&!isNaN(t)?Je*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],o=Kh(n._parsed[t],r.options.locale);return{label:i[t]||"",value:o}}getMaxBorderWidth(t){let n=0;const r=this.chart;let i,o,a,s,l;if(!t){for(i=0,o=r.data.datasets.length;i<o;++i)if(r.isDatasetVisible(i)){a=r.getDatasetMeta(i),t=a.data,s=a.controller;break}}if(!t)return 0;for(i=0,o=t.length;i<o;++i)l=s.resolveDataElementOptions(i),l.borderAlign!=="inner"&&(n=Math.max(n,l.borderWidth||0,l.hoverBorderWidth||0));return n}getMaxOffset(t){let n=0;for(let r=0,i=t.length;r<i;++r){const o=this.resolveDataElementOptions(r);n=Math.max(n,o.offset||0,o.hoverOffset||0)}return n}_getRingWeightOffset(t){let n=0;for(let r=0;r<t;++r)this.chart.isDatasetVisible(r)&&(n+=this._getRingWeight(r));return n}_getRingWeight(t){return Math.max(we(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}re(Go,"id","doughnut"),re(Go,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),re(Go,"descriptors",{_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),re(Go,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:r,color:i}}=t.legend.options;return n.labels.map((o,a)=>{const l=t.getDatasetMeta(0).controller.getStyle(a);return{text:o,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:i,lineWidth:l.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(a),index:a}})}return[]}},onClick(t,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}}});class hl extends pi{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:r,data:i=[],_dataset:o}=n,a=this.chart._animationsDisabled;let{start:s,count:l}=Ik(n,i,a);this._drawStart=s,this._drawCount=l,_k(n)&&(s=0,l=i.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!o._decimated,r.points=i;const u=this.resolveDatasetElementOptions(t);this.options.showLine||(u.borderWidth=0),u.segment=this.options.segment,this.updateElement(r,void 0,{animated:!a,options:u},t),this.updateElements(i,s,l,t)}updateElements(t,n,r,i){const o=i==="reset",{iScale:a,vScale:s,_stacked:l,_dataset:u}=this._cachedMeta,{sharedOptions:c,includeOptions:d}=this._getSharedOptions(n,i),h=a.axis,f=s.axis,{spanGaps:g,segment:m}=this.options,b=ja(g)?g:Number.POSITIVE_INFINITY,y=this.chart._animationsDisabled||o||i==="none",v=n+r,x=t.length;let C=n>0&&this.getParsed(n-1);for(let D=0;D<x;++D){const I=t[D],T=y?I:{};if(D<n||D>=v){T.skip=!0;continue}const p=this.getParsed(D),S=He(p[f]),$=T[h]=a.getPixelForValue(p[h],D),_=T[f]=o||S?s.getBasePixel():s.getPixelForValue(l?this.applyStack(s,p,l):p[f],D);T.skip=isNaN($)||isNaN(_)||S,T.stop=D>0&&Math.abs(p[h]-C[h])>b,m&&(T.parsed=p,T.raw=u.data[D]),d&&(T.options=c||this.resolveDataElementOptions(D,I.active?"active":i)),y||this.updateElement(I,D,T,i),C=p}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,r=n.options&&n.options.borderWidth||0,i=t.data||[];if(!i.length)return r;const o=i[0].size(this.resolveDataElementOptions(0)),a=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,o,a)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}re(hl,"id","line"),re(hl,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),re(hl,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});function qr(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class ig{constructor(t){re(this,"options");this.options=t||{}}static override(t){Object.assign(ig.prototype,t)}init(){}formats(){return qr()}parse(){return qr()}format(){return qr()}add(){return qr()}diff(){return qr()}startOf(){return qr()}endOf(){return qr()}}var qM={_date:ig};function QM(e,t,n,r){const{controller:i,data:o,_sorted:a}=e,s=i._cachedMeta.iScale;if(s&&t===s.axis&&t!=="r"&&a&&o.length){const l=s._reversePixels?Ck:di;if(r){if(i._sharedOptions){const u=o[0],c=typeof u.getRange=="function"&&u.getRange(t);if(c){const d=l(o,t,n-c),h=l(o,t,n+c);return{lo:d.lo,hi:h.hi}}}}else return l(o,t,n)}return{lo:0,hi:o.length-1}}function Lu(e,t,n,r,i){const o=e.getSortedVisibleDatasetMetas(),a=n[t];for(let s=0,l=o.length;s<l;++s){const{index:u,data:c}=o[s],{lo:d,hi:h}=QM(o[s],t,a,i);for(let f=d;f<=h;++f){const g=c[f];g.skip||r(g,u,f)}}}function eB(e){const t=e.indexOf("x")!==-1,n=e.indexOf("y")!==-1;return function(r,i){const o=t?Math.abs(r.x-i.x):0,a=n?Math.abs(r.y-i.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(a,2))}}function Hc(e,t,n,r,i){const o=[];return!i&&!e.isPointInArea(t)||Lu(e,n,t,function(s,l,u){!i&&!Wa(s,e.chartArea,0)||s.inRange(t.x,t.y,r)&&o.push({element:s,datasetIndex:l,index:u})},!0),o}function tB(e,t,n,r){let i=[];function o(a,s,l){const{startAngle:u,endAngle:c}=a.getProps(["startAngle","endAngle"],r),{angle:d}=Q3(a,{x:t.x,y:t.y});Ha(d,u,c)&&i.push({element:a,datasetIndex:s,index:l})}return Lu(e,n,t,o),i}function nB(e,t,n,r,i,o){let a=[];const s=eB(n);let l=Number.POSITIVE_INFINITY;function u(c,d,h){const f=c.inRange(t.x,t.y,i);if(r&&!f)return;const g=c.getCenterPoint(i);if(!(!!o||e.isPointInArea(g))&&!f)return;const b=s(t,g);b<l?(a=[{element:c,datasetIndex:d,index:h}],l=b):b===l&&a.push({element:c,datasetIndex:d,index:h})}return Lu(e,n,t,u),a}function Wc(e,t,n,r,i,o){return!o&&!e.isPointInArea(t)?[]:n==="r"&&!r?tB(e,t,n,i):nB(e,t,n,r,i,o)}function p0(e,t,n,r,i){const o=[],a=n==="x"?"inXRange":"inYRange";let s=!1;return Lu(e,n,t,(l,u,c)=>{l[a](t[n],i)&&(o.push({element:l,datasetIndex:u,index:c}),s=s||l.inRange(t.x,t.y,i))}),r&&!s?[]:o}var rB={modes:{index(e,t,n,r){const i=ni(t,e),o=n.axis||"x",a=n.includeInvisible||!1,s=n.intersect?Hc(e,i,o,r,a):Wc(e,i,o,!1,r,a),l=[];return s.length?(e.getSortedVisibleDatasetMetas().forEach(u=>{const c=s[0].index,d=u.data[c];d&&!d.skip&&l.push({element:d,datasetIndex:u.index,index:c})}),l):[]},dataset(e,t,n,r){const i=ni(t,e),o=n.axis||"xy",a=n.includeInvisible||!1;let s=n.intersect?Hc(e,i,o,r,a):Wc(e,i,o,!1,r,a);if(s.length>0){const l=s[0].datasetIndex,u=e.getDatasetMeta(l).data;s=[];for(let c=0;c<u.length;++c)s.push({element:u[c],datasetIndex:l,index:c})}return s},point(e,t,n,r){const i=ni(t,e),o=n.axis||"xy",a=n.includeInvisible||!1;return Hc(e,i,o,r,a)},nearest(e,t,n,r){const i=ni(t,e),o=n.axis||"xy",a=n.includeInvisible||!1;return Wc(e,i,o,n.intersect,r,a)},x(e,t,n,r){const i=ni(t,e);return p0(e,i,"x",n.intersect,r)},y(e,t,n,r){const i=ni(t,e);return p0(e,i,"y",n.intersect,r)}}};const xC=["left","top","right","bottom"];function To(e,t){return e.filter(n=>n.pos===t)}function b0(e,t){return e.filter(n=>xC.indexOf(n.pos)===-1&&n.box.axis===t)}function ko(e,t){return e.sort((n,r)=>{const i=t?r:n,o=t?n:r;return i.weight===o.weight?i.index-o.index:i.weight-o.weight})}function iB(e){const t=[];let n,r,i,o,a,s;for(n=0,r=(e||[]).length;n<r;++n)i=e[n],{position:o,options:{stack:a,stackWeight:s=1}}=i,t.push({index:n,box:i,pos:o,horizontal:i.isHorizontal(),weight:i.weight,stack:a&&o+a,stackWeight:s});return t}function oB(e){const t={};for(const n of e){const{stack:r,pos:i,stackWeight:o}=n;if(!r||!xC.includes(i))continue;const a=t[r]||(t[r]={count:0,placed:0,weight:0,size:0});a.count++,a.weight+=o}return t}function aB(e,t){const n=oB(e),{vBoxMaxWidth:r,hBoxMaxHeight:i}=t;let o,a,s;for(o=0,a=e.length;o<a;++o){s=e[o];const{fullSize:l}=s.box,u=n[s.stack],c=u&&s.stackWeight/u.weight;s.horizontal?(s.width=c?c*r:l&&t.availableWidth,s.height=i):(s.width=r,s.height=c?c*i:l&&t.availableHeight)}return n}function sB(e){const t=iB(e),n=ko(t.filter(u=>u.box.fullSize),!0),r=ko(To(t,"left"),!0),i=ko(To(t,"right")),o=ko(To(t,"top"),!0),a=ko(To(t,"bottom")),s=b0(t,"x"),l=b0(t,"y");return{fullSize:n,leftAndTop:r.concat(o),rightAndBottom:i.concat(l).concat(a).concat(s),chartArea:To(t,"chartArea"),vertical:r.concat(i).concat(l),horizontal:o.concat(a).concat(s)}}function v0(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function CC(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function lB(e,t,n,r){const{pos:i,box:o}=n,a=e.maxPadding;if(!Ee(i)){n.size&&(e[i]-=n.size);const d=r[n.stack]||{size:0,count:1};d.size=Math.max(d.size,n.horizontal?o.height:o.width),n.size=d.size/d.count,e[i]+=n.size}o.getPadding&&CC(a,o.getPadding());const s=Math.max(0,t.outerWidth-v0(a,e,"left","right")),l=Math.max(0,t.outerHeight-v0(a,e,"top","bottom")),u=s!==e.w,c=l!==e.h;return e.w=s,e.h=l,n.horizontal?{same:u,other:c}:{same:c,other:u}}function uB(e){const t=e.maxPadding;function n(r){const i=Math.max(t[r]-e[r],0);return e[r]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function cB(e,t){const n=t.maxPadding;function r(i){const o={left:0,top:0,right:0,bottom:0};return i.forEach(a=>{o[a]=Math.max(t[a],n[a])}),o}return r(e?["left","right"]:["top","bottom"])}function Zo(e,t,n,r){const i=[];let o,a,s,l,u,c;for(o=0,a=e.length,u=0;o<a;++o){s=e[o],l=s.box,l.update(s.width||t.w,s.height||t.h,cB(s.horizontal,t));const{same:d,other:h}=lB(t,n,s,r);u|=d&&i.length,c=c||h,l.fullSize||i.push(s)}return u&&Zo(i,t,n,r)||c}function Ws(e,t,n,r,i){e.top=n,e.left=t,e.right=t+r,e.bottom=n+i,e.width=r,e.height=i}function y0(e,t,n,r){const i=n.padding;let{x:o,y:a}=t;for(const s of e){const l=s.box,u=r[s.stack]||{placed:0,weight:1},c=s.stackWeight/u.weight||1;if(s.horizontal){const d=t.w*c,h=u.size||l.height;La(u.start)&&(a=u.start),l.fullSize?Ws(l,i.left,a,n.outerWidth-i.right-i.left,h):Ws(l,t.left+u.placed,a,d,h),u.start=a,u.placed+=d,a=l.bottom}else{const d=t.h*c,h=u.size||l.width;La(u.start)&&(o=u.start),l.fullSize?Ws(l,o,i.top,h,n.outerHeight-i.bottom-i.top):Ws(l,o,t.top+u.placed,h,d),u.start=o,u.placed+=d,o=l.right}}t.x=o,t.y=a}var dn={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(n){t.draw(n)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;n!==-1&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,r){if(!e)return;const i=fn(e.options.layout.padding),o=Math.max(t-i.width,0),a=Math.max(n-i.height,0),s=sB(e.boxes),l=s.vertical,u=s.horizontal;Ne(e.boxes,m=>{typeof m.beforeLayout=="function"&&m.beforeLayout()});const c=l.reduce((m,b)=>b.box.options&&b.box.options.display===!1?m:m+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:o,availableHeight:a,vBoxMaxWidth:o/2/c,hBoxMaxHeight:a/2}),h=Object.assign({},i);CC(h,fn(r));const f=Object.assign({maxPadding:h,w:o,h:a,x:i.left,y:i.top},i),g=aB(l.concat(u),d);Zo(s.fullSize,f,d,g),Zo(l,f,d,g),Zo(u,f,d,g)&&Zo(l,f,d,g),uB(f),y0(s.leftAndTop,f,d,g),f.x+=f.w,f.y+=f.h,y0(s.rightAndBottom,f,d,g),e.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},Ne(s.chartArea,m=>{const b=m.box;Object.assign(b,e.chartArea),b.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})})}};class wC{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,i){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,i?Math.floor(n/i):r)}}isAttached(t){return!0}updateConfig(t){}}class dB extends wC{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const gl="$chartjs",fB={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},x0=e=>e===null||e==="";function hB(e,t){const n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e[gl]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",x0(i)){const o=n0(e,"width");o!==void 0&&(e.width=o)}if(x0(r))if(e.style.height==="")e.height=e.width/(t||2);else{const o=n0(e,"height");o!==void 0&&(e.height=o)}return e}const DC=pM?{passive:!0}:!1;function gB(e,t,n){e&&e.addEventListener(t,n,DC)}function mB(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,DC)}function pB(e,t){const n=fB[e.type]||e.type,{x:r,y:i}=ni(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:i!==void 0?i:null}}function iu(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function bB(e,t,n){const r=e.canvas,i=new MutationObserver(o=>{let a=!1;for(const s of o)a=a||iu(s.addedNodes,r),a=a&&!iu(s.removedNodes,r);a&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function vB(e,t,n){const r=e.canvas,i=new MutationObserver(o=>{let a=!1;for(const s of o)a=a||iu(s.removedNodes,r),a=a&&!iu(s.addedNodes,r);a&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const Ga=new Map;let C0=0;function SC(){const e=window.devicePixelRatio;e!==C0&&(C0=e,Ga.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function yB(e,t){Ga.size||window.addEventListener("resize",SC),Ga.set(e,t)}function xB(e){Ga.delete(e),Ga.size||window.removeEventListener("resize",SC)}function CB(e,t,n){const r=e.canvas,i=r&&rg(r);if(!i)return;const o=rC((s,l)=>{const u=i.clientWidth;n(s,l),u<i.clientWidth&&n()},window),a=new ResizeObserver(s=>{const l=s[0],u=l.contentRect.width,c=l.contentRect.height;u===0&&c===0||o(u,c)});return a.observe(i),yB(e,o),a}function zc(e,t,n){n&&n.disconnect(),t==="resize"&&xB(e)}function wB(e,t,n){const r=e.canvas,i=rC(o=>{e.ctx!==null&&n(pB(o,e))},e);return gB(r,t,i),i}class DB extends wC{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(hB(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[gl])return!1;const r=n[gl].initial;["height","width"].forEach(o=>{const a=r[o];He(a)?n.removeAttribute(o):n.setAttribute(o,a)});const i=r.style||{};return Object.keys(i).forEach(o=>{n.style[o]=i[o]}),n.width=n.width,delete n[gl],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const i=t.$proxies||(t.$proxies={}),a={attach:bB,detach:vB,resize:CB}[n]||wB;i[n]=a(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),i=r[n];if(!i)return;({attach:zc,detach:zc,resize:zc}[n]||mB)(t,n,i),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,i){return mM(t,n,r,i)}isAttached(t){const n=t&&rg(t);return!!(n&&n.isConnected)}}function SB(e){return!ng()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?dB:DB}var Ks;let yr=(Ks=class{constructor(){re(this,"x");re(this,"y");re(this,"active",!1);re(this,"options");re(this,"$animations")}tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return ja(this.x)&&ja(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const i={};return t.forEach(o=>{i[o]=r[o]&&r[o].active()?r[o]._to:this[o]}),i}},re(Ks,"defaults",{}),re(Ks,"defaultRoutes"),Ks);function EB(e,t){const n=e.options.ticks,r=IB(e),i=Math.min(n.maxTicksLimit||r,r),o=n.major.enabled?$B(t):[],a=o.length,s=o[0],l=o[a-1],u=[];if(a>i)return RB(t,u,o,a/i),u;const c=_B(o,t,i);if(a>0){let d,h;const f=a>1?Math.round((l-s)/(a-1)):null;for(zs(t,u,c,He(f)?0:s-f,s),d=0,h=a-1;d<h;d++)zs(t,u,c,o[d],o[d+1]);return zs(t,u,c,l,He(f)?t.length:l+f),u}return zs(t,u,c),u}function IB(e){const t=e.options.offset,n=e._tickSize(),r=e._length/n+(t?0:1),i=e._maxLength/n;return Math.floor(Math.min(r,i))}function _B(e,t,n){const r=AB(e),i=t.length/n;if(!r)return Math.max(i,1);const o=mk(r);for(let a=0,s=o.length-1;a<s;a++){const l=o[a];if(l>i)return l}return Math.max(i,1)}function $B(e){const t=[];let n,r;for(n=0,r=e.length;n<r;n++)e[n].major&&t.push(n);return t}function RB(e,t,n,r){let i=0,o=n[0],a;for(r=Math.ceil(r),a=0;a<e.length;a++)a===o&&(t.push(e[a]),i++,o=n[i*r])}function zs(e,t,n,r,i){const o=we(r,0),a=Math.min(we(i,e.length),e.length);let s=0,l,u,c;for(n=Math.ceil(n),i&&(l=i-r,n=l/Math.floor(l/n)),c=o;c<0;)s++,c=Math.round(o+s*n);for(u=Math.max(o,0);u<a;u++)u===c&&(t.push(e[u]),s++,c=Math.round(o+s*n))}function AB(e){const t=e.length;let n,r;if(t<2)return!1;for(r=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==r)return!1;return r}const FB=e=>e==="left"?"right":e==="right"?"left":e,w0=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,D0=(e,t)=>Math.min(t||e,e);function S0(e,t){const n=[],r=e.length/t,i=e.length;let o=0;for(;o<i;o+=r)n.push(e[Math.floor(o)]);return n}function PB(e,t,n){const r=e.ticks.length,i=Math.min(t,r-1),o=e._startPixel,a=e._endPixel,s=1e-6;let l=e.getPixelForTick(i),u;if(!(n&&(r===1?u=Math.max(l-o,a-l):t===0?u=(e.getPixelForTick(1)-l)/2:u=(l-e.getPixelForTick(i-1))/2,l+=i<t?u:-u,l<o-s||l>a+s)))return l}function TB(e,t){Ne(e,n=>{const r=n.gc,i=r.length/2;let o;if(i>t){for(o=0;o<i;++o)delete n.data[r[o]];r.splice(0,i)}})}function Mo(e){return e.drawTicks?e.tickLength:0}function E0(e,t){if(!e.display)return 0;const n=Et(e.font,t),r=fn(e.padding);return(ot(e.text)?e.text.length:1)*n.lineHeight+r.height}function kB(e,t){return Ti(e,{scale:t,type:"scale"})}function MB(e,t,n){return Ti(e,{tick:n,index:t,type:"tick"})}function BB(e,t,n){let r=Uh(e);return(n&&t!=="right"||!n&&t==="right")&&(r=FB(r)),r}function OB(e,t,n,r){const{top:i,left:o,bottom:a,right:s,chart:l}=e,{chartArea:u,scales:c}=l;let d=0,h,f,g;const m=a-i,b=s-o;if(e.isHorizontal()){if(f=xt(r,o,s),Ee(n)){const y=Object.keys(n)[0],v=n[y];g=c[y].getPixelForValue(v)+m-t}else n==="center"?g=(u.bottom+u.top)/2+m-t:g=w0(e,n,t);h=s-o}else{if(Ee(n)){const y=Object.keys(n)[0],v=n[y];f=c[y].getPixelForValue(v)-b+t}else n==="center"?f=(u.left+u.right)/2-b+t:f=w0(e,n,t);g=xt(r,a,i),d=n==="left"?-lt:lt}return{titleX:f,titleY:g,maxWidth:h,rotation:d}}class _o extends yr{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,n){return t}getUserBounds(){let{_userMin:t,_userMax:n,_suggestedMin:r,_suggestedMax:i}=this;return t=Rn(t,Number.POSITIVE_INFINITY),n=Rn(n,Number.NEGATIVE_INFINITY),r=Rn(r,Number.POSITIVE_INFINITY),i=Rn(i,Number.NEGATIVE_INFINITY),{min:Rn(t,r),max:Rn(n,i),minDefined:It(t),maxDefined:It(n)}}getMinMax(t){let{min:n,max:r,minDefined:i,maxDefined:o}=this.getUserBounds(),a;if(i&&o)return{min:n,max:r};const s=this.getMatchingVisibleMetas();for(let l=0,u=s.length;l<u;++l)a=s[l].controller.getMinMax(this,t),i||(n=Math.min(n,a.min)),o||(r=Math.max(r,a.max));return n=o&&n>r?r:n,r=i&&n>r?n:r,{min:Rn(n,Rn(r,n)),max:Rn(r,Rn(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){We(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:i,grace:o,ticks:a}=this.options,s=a.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=Xk(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=s<this.ticks.length;this._convertTicksToLabels(l?S0(this.ticks,s):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),a.display&&(a.autoSkip||a.source==="auto")&&(this.ticks=EB(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,n,r;this.isHorizontal()?(n=this.left,r=this.right):(n=this.top,r=this.bottom,t=!t),this._startPixel=n,this._endPixel=r,this._reversePixels=t,this._length=r-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){We(this.options.afterUpdate,[this])}beforeSetDimensions(){We(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){We(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),We(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){We(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const n=this.options.ticks;let r,i,o;for(r=0,i=t.length;r<i;r++)o=t[r],o.label=We(n.callback,[o.value,r,t],this)}afterTickToLabelConversion(){We(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){We(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,n=t.ticks,r=D0(this.ticks.length,t.ticks.maxTicksLimit),i=n.minRotation||0,o=n.maxRotation;let a=i,s,l,u;if(!this._isVisible()||!n.display||i>=o||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const c=this._getLabelSizes(),d=c.widest.width,h=c.highest.height,f=St(this.chart.width-d,0,this.maxWidth);s=t.offset?this.maxWidth/r:f/(r-1),d+6>s&&(s=f/(r-(t.offset?.5:1)),l=this.maxHeight-Mo(t.grid)-n.padding-E0(t.title,this.chart.options.font),u=Math.sqrt(d*d+h*h),a=vk(Math.min(Math.asin(St((c.highest.height+6)/s,-1,1)),Math.asin(St(l/u,-1,1))-Math.asin(St(h/u,-1,1)))),a=Math.max(i,Math.min(o,a))),this.labelRotation=a}afterCalculateLabelRotation(){We(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){We(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:o}}=this,a=this._isVisible(),s=this.isHorizontal();if(a){const l=E0(i,n.options.font);if(s?(t.width=this.maxWidth,t.height=Mo(o)+l):(t.height=this.maxHeight,t.width=Mo(o)+l),r.display&&this.ticks.length){const{first:u,last:c,widest:d,highest:h}=this._getLabelSizes(),f=r.padding*2,g=cr(this.labelRotation),m=Math.cos(g),b=Math.sin(g);if(s){const y=r.mirror?0:b*d.width+m*h.height;t.height=Math.min(this.maxHeight,t.height+y+f)}else{const y=r.mirror?0:m*d.width+b*h.height;t.width=Math.min(this.maxWidth,t.width+y+f)}this._calculatePadding(u,c,b,m)}}this._handleMargins(),s?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,r,i){const{ticks:{align:o,padding:a},position:s}=this.options,l=this.labelRotation!==0,u=s!=="top"&&this.axis==="x";if(this.isHorizontal()){const c=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,f=0;l?u?(h=i*t.width,f=r*n.height):(h=r*t.height,f=i*n.width):o==="start"?f=n.width:o==="end"?h=t.width:o!=="inner"&&(h=t.width/2,f=n.width/2),this.paddingLeft=Math.max((h-c+a)*this.width/(this.width-c),0),this.paddingRight=Math.max((f-d+a)*this.width/(this.width-d),0)}else{let c=n.height/2,d=t.height/2;o==="start"?(c=0,d=t.height):o==="end"&&(c=n.height,d=0),this.paddingTop=c+a,this.paddingBottom=d+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){We(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,r;for(n=0,r=t.length;n<r;n++)He(t[n].label)&&(t.splice(n,1),r--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const n=this.options.ticks.sampleSize;let r=this.ticks;n<r.length&&(r=S0(r,n)),this._labelSizes=t=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,n,r){const{ctx:i,_longestTextCache:o}=this,a=[],s=[],l=Math.floor(n/D0(n,r));let u=0,c=0,d,h,f,g,m,b,y,v,x,C,D;for(d=0;d<n;d+=l){if(g=t[d].label,m=this._resolveTickFontOptions(d),i.font=b=m.string,y=o[b]=o[b]||{data:{},gc:[]},v=m.lineHeight,x=C=0,!He(g)&&!ot(g))x=Kp(i,y.data,y.gc,x,g),C=v;else if(ot(g))for(h=0,f=g.length;h<f;++h)D=g[h],!He(D)&&!ot(D)&&(x=Kp(i,y.data,y.gc,x,D),C+=v);a.push(x),s.push(C),u=Math.max(x,u),c=Math.max(C,c)}TB(o,n);const I=a.indexOf(u),T=s.indexOf(c),p=S=>({width:a[S]||0,height:s[S]||0});return{first:p(0),last:p(n-1),widest:p(I),highest:p(T),widths:a,heights:s}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return xk(this._alignToPixels?Kr(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&t<n.length){const r=n[t];return r.$context||(r.$context=MB(this.getContext(),t,r))}return this.$context||(this.$context=kB(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=cr(this.labelRotation),r=Math.abs(Math.cos(n)),i=Math.abs(Math.sin(n)),o=this._getLabelSizes(),a=t.autoSkipPadding||0,s=o?o.widest.width+a:0,l=o?o.highest.height+a:0;return this.isHorizontal()?l*r>s*i?s/r:l/i:l*i<s*r?l/r:s/i}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const n=this.axis,r=this.chart,i=this.options,{grid:o,position:a,border:s}=i,l=o.offset,u=this.isHorizontal(),d=this.ticks.length+(l?1:0),h=Mo(o),f=[],g=s.setContext(this.getContext()),m=g.display?g.width:0,b=m/2,y=function(P){return Kr(r,P,m)};let v,x,C,D,I,T,p,S,$,_,A,k;if(a==="top")v=y(this.bottom),T=this.bottom-h,S=v-b,_=y(t.top)+b,k=t.bottom;else if(a==="bottom")v=y(this.top),_=t.top,k=y(t.bottom)-b,T=v+b,S=this.top+h;else if(a==="left")v=y(this.right),I=this.right-h,p=v-b,$=y(t.left)+b,A=t.right;else if(a==="right")v=y(this.left),$=t.left,A=y(t.right)-b,I=v+b,p=this.left+h;else if(n==="x"){if(a==="center")v=y((t.top+t.bottom)/2+.5);else if(Ee(a)){const P=Object.keys(a)[0],F=a[P];v=y(this.chart.scales[P].getPixelForValue(F))}_=t.top,k=t.bottom,T=v+b,S=T+h}else if(n==="y"){if(a==="center")v=y((t.left+t.right)/2);else if(Ee(a)){const P=Object.keys(a)[0],F=a[P];v=y(this.chart.scales[P].getPixelForValue(F))}I=v-b,p=I-h,$=t.left,A=t.right}const R=we(i.ticks.maxTicksLimit,d),M=Math.max(1,Math.ceil(d/R));for(x=0;x<d;x+=M){const P=this.getContext(x),F=o.setContext(P),B=s.setContext(P),N=F.lineWidth,O=F.color,L=B.dash||[],W=B.dashOffset,Z=F.tickWidth,H=F.tickColor,j=F.tickBorderDash||[],V=F.tickBorderDashOffset;C=PB(this,x,l),C!==void 0&&(D=Kr(r,C,N),u?I=p=$=A=D:T=S=_=k=D,f.push({tx1:I,ty1:T,tx2:p,ty2:S,x1:$,y1:_,x2:A,y2:k,width:N,color:O,borderDash:L,borderDashOffset:W,tickWidth:Z,tickColor:H,tickBorderDash:j,tickBorderDashOffset:V}))}return this._ticksLength=d,this._borderValue=v,f}_computeLabelItems(t){const n=this.axis,r=this.options,{position:i,ticks:o}=r,a=this.isHorizontal(),s=this.ticks,{align:l,crossAlign:u,padding:c,mirror:d}=o,h=Mo(r.grid),f=h+c,g=d?-c:f,m=-cr(this.labelRotation),b=[];let y,v,x,C,D,I,T,p,S,$,_,A,k="middle";if(i==="top")I=this.bottom-g,T=this._getXAxisLabelAlignment();else if(i==="bottom")I=this.top+g,T=this._getXAxisLabelAlignment();else if(i==="left"){const M=this._getYAxisLabelAlignment(h);T=M.textAlign,D=M.x}else if(i==="right"){const M=this._getYAxisLabelAlignment(h);T=M.textAlign,D=M.x}else if(n==="x"){if(i==="center")I=(t.top+t.bottom)/2+f;else if(Ee(i)){const M=Object.keys(i)[0],P=i[M];I=this.chart.scales[M].getPixelForValue(P)+f}T=this._getXAxisLabelAlignment()}else if(n==="y"){if(i==="center")D=(t.left+t.right)/2-f;else if(Ee(i)){const M=Object.keys(i)[0],P=i[M];D=this.chart.scales[M].getPixelForValue(P)}T=this._getYAxisLabelAlignment(h).textAlign}n==="y"&&(l==="start"?k="top":l==="end"&&(k="bottom"));const R=this._getLabelSizes();for(y=0,v=s.length;y<v;++y){x=s[y],C=x.label;const M=o.setContext(this.getContext(y));p=this.getPixelForTick(y)+o.labelOffset,S=this._resolveTickFontOptions(y),$=S.lineHeight,_=ot(C)?C.length:1;const P=_/2,F=M.color,B=M.textStrokeColor,N=M.textStrokeWidth;let O=T;a?(D=p,T==="inner"&&(y===v-1?O=this.options.reverse?"left":"right":y===0?O=this.options.reverse?"right":"left":O="center"),i==="top"?u==="near"||m!==0?A=-_*$+$/2:u==="center"?A=-R.highest.height/2-P*$+$:A=-R.highest.height+$/2:u==="near"||m!==0?A=$/2:u==="center"?A=R.highest.height/2-P*$:A=R.highest.height-_*$,d&&(A*=-1),m!==0&&!M.showLabelBackdrop&&(D+=$/2*Math.sin(m))):(I=p,A=(1-_)*$/2);let L;if(M.showLabelBackdrop){const W=fn(M.backdropPadding),Z=R.heights[y],H=R.widths[y];let j=A-W.top,V=0-W.left;switch(k){case"middle":j-=Z/2;break;case"bottom":j-=Z;break}switch(T){case"center":V-=H/2;break;case"right":V-=H;break;case"inner":y===v-1?V-=H:y>0&&(V-=H/2);break}L={left:V,top:j,width:H+W.width,height:Z+W.height,color:M.backdropColor}}b.push({label:C,font:S,textOffset:A,options:{rotation:m,color:F,strokeColor:B,strokeWidth:N,textAlign:O,textBaseline:k,translation:[D,I],backdrop:L}})}return b}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-cr(this.labelRotation))return t==="top"?"left":"right";let i="center";return n.align==="start"?i="left":n.align==="end"?i="right":n.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:r,mirror:i,padding:o}}=this.options,a=this._getLabelSizes(),s=t+o,l=a.widest.width;let u,c;return n==="left"?i?(c=this.right+o,r==="near"?u="left":r==="center"?(u="center",c+=l/2):(u="right",c+=l)):(c=this.right-s,r==="near"?u="right":r==="center"?(u="center",c-=l/2):(u="left",c=this.left)):n==="right"?i?(c=this.left+o,r==="near"?u="right":r==="center"?(u="center",c-=l/2):(u="left",c-=l)):(c=this.left+s,r==="near"?u="left":r==="center"?(u="center",c+=l/2):(u="right",c=this.right)):u="right",{textAlign:u,x:c}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:r,top:i,width:o,height:a}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(r,i,o,a),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const i=this.ticks.findIndex(o=>o.value===t);return i>=0?n.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,a;const s=(l,u,c)=>{!c.width||!c.color||(r.save(),r.lineWidth=c.width,r.strokeStyle=c.color,r.setLineDash(c.borderDash||[]),r.lineDashOffset=c.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(u.x,u.y),r.stroke(),r.restore())};if(n.display)for(o=0,a=i.length;o<a;++o){const l=i[o];n.drawOnChartArea&&s({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&s({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:n,options:{border:r,grid:i}}=this,o=r.setContext(this.getContext()),a=r.display?o.width:0;if(!a)return;const s=i.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let u,c,d,h;this.isHorizontal()?(u=Kr(t,this.left,a)-a/2,c=Kr(t,this.right,s)+s/2,d=h=l):(d=Kr(t,this.top,a)-a/2,h=Kr(t,this.bottom,s)+s/2,u=c=l),n.save(),n.lineWidth=o.width,n.strokeStyle=o.color,n.beginPath(),n.moveTo(u,d),n.lineTo(c,h),n.stroke(),n.restore()}drawLabels(t){if(!this.options.ticks.display)return;const r=this.ctx,i=this._computeLabelArea();i&&Ou(r,i);const o=this.getLabelItems(t);for(const a of o){const s=a.options,l=a.font,u=a.label,c=a.textOffset;za(r,u,0,c,l,s)}i&&Nu(r)}drawTitle(){const{ctx:t,options:{position:n,title:r,reverse:i}}=this;if(!r.display)return;const o=Et(r.font),a=fn(r.padding),s=r.align;let l=o.lineHeight/2;n==="bottom"||n==="center"||Ee(n)?(l+=a.bottom,ot(r.text)&&(l+=o.lineHeight*(r.text.length-1))):l+=a.top;const{titleX:u,titleY:c,maxWidth:d,rotation:h}=OB(this,l,n,s);za(t,r.text,0,0,o,{color:r.color,maxWidth:d,rotation:h,textAlign:BB(s,n,i),textBaseline:"middle",translation:[u,c]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,n=t.ticks&&t.ticks.z||0,r=we(t.grid&&t.grid.z,-1),i=we(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==_o.prototype.draw?[{z:n,draw:o=>{this.draw(o)}}]:[{z:r,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let o,a;for(o=0,a=n.length;o<a;++o){const s=n[o];s[r]===this.id&&(!t||s.type===t)&&i.push(s)}return i}_resolveTickFontOptions(t){const n=this.options.ticks.setContext(this.getContext(t));return Et(n.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Gs{constructor(t,n,r){this.type=t,this.scope=n,this.override=r,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const n=Object.getPrototypeOf(t);let r;LB(n)&&(r=this.register(n));const i=this.items,o=t.id,a=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in i||(i[o]=t,NB(t,a,r),this.override&&nt.override(t.id,t.overrides)),a}get(t){return this.items[t]}unregister(t){const n=this.items,r=t.id,i=this.scope;r in n&&delete n[r],i&&r in nt[i]&&(delete nt[i][r],this.override&&delete $i[r])}}function NB(e,t,n){const r=Va(Object.create(null),[n?nt.get(n):{},nt.get(t),e.defaults]);nt.set(t,r),e.defaultRoutes&&VB(t,e.defaultRoutes),e.descriptors&&nt.describe(t,e.descriptors)}function VB(e,t){Object.keys(t).forEach(n=>{const r=n.split("."),i=r.pop(),o=[e].concat(r).join("."),a=t[n].split("."),s=a.pop(),l=a.join(".");nt.route(o,i,l,s)})}function LB(e){return"id"in e&&"defaults"in e}class jB{constructor(){this.controllers=new Gs(pi,"datasets",!0),this.elements=new Gs(yr,"elements"),this.plugins=new Gs(Object,"plugins"),this.scales=new Gs(_o,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,r){[...n].forEach(i=>{const o=r||this._getRegistryForType(i);r||o.isForType(i)||o===this.plugins&&i.id?this._exec(t,o,i):Ne(i,a=>{const s=r||this._getRegistryForType(a);this._exec(t,s,a)})})}_exec(t,n,r){const i=Xh(t);We(r["before"+i],[],r),n[t](r),We(r["after"+i],[],r)}_getRegistryForType(t){for(let n=0;n<this._typedRegistries.length;n++){const r=this._typedRegistries[n];if(r.isForType(t))return r}return this.plugins}_get(t,n,r){const i=n.get(t);if(i===void 0)throw new Error('"'+t+'" is not a registered '+r+".");return i}}var Pn=new jB;class HB{constructor(){this._init=[]}notify(t,n,r,i){n==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const o=i?this._descriptors(t).filter(i):this._descriptors(t),a=this._notify(o,t,n,r);return n==="afterDestroy"&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall")),a}_notify(t,n,r,i){i=i||{};for(const o of t){const a=o.plugin,s=a[r],l=[n,i,o.options];if(We(s,l,a)===!1&&i.cancelable)return!1}return!0}invalidate(){He(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),n}_createDescriptors(t,n){const r=t&&t.config,i=we(r.options&&r.options.plugins,{}),o=WB(r);return i===!1&&!n?[]:GB(t,o,i,n)}_notifyStateChanges(t){const n=this._oldCache||[],r=this._cache,i=(o,a)=>o.filter(s=>!a.some(l=>s.plugin.id===l.plugin.id));this._notify(i(n,r),t,"stop"),this._notify(i(r,n),t,"start")}}function WB(e){const t={},n=[],r=Object.keys(Pn.plugins.items);for(let o=0;o<r.length;o++)n.push(Pn.getPlugin(r[o]));const i=e.plugins||[];for(let o=0;o<i.length;o++){const a=i[o];n.indexOf(a)===-1&&(n.push(a),t[a.id]=!0)}return{plugins:n,localIds:t}}function zB(e,t){return!t&&e===!1?null:e===!0?{}:e}function GB(e,{plugins:t,localIds:n},r,i){const o=[],a=e.getContext();for(const s of t){const l=s.id,u=zB(r[l],i);u!==null&&o.push({plugin:s,options:ZB(e.config,{plugin:s,local:n[l]},u,a)})}return o}function ZB(e,{plugin:t,local:n},r,i){const o=e.pluginScopeKeys(t),a=e.getOptionScopes(r,o);return n&&t.defaults&&a.push(t.defaults),e.createResolver(a,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function lf(e,t){const n=nt.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function XB(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function YB(e,t){return e===t?"_index_":"_value_"}function I0(e){if(e==="x"||e==="y"||e==="r")return e}function UB(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function uf(e,...t){if(I0(e))return e;for(const n of t){const r=n.axis||UB(n.position)||e.length>1&&I0(e[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function _0(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function JB(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(r=>r.xAxisID===e||r.yAxisID===e);if(n.length)return _0(e,"x",n[0])||_0(e,"y",n[0])}return{}}function KB(e,t){const n=$i[e.type]||{scales:{}},r=t.scales||{},i=lf(e.type,t),o=Object.create(null);return Object.keys(r).forEach(a=>{const s=r[a];if(!Ee(s))return console.error(`Invalid scale configuration for scale: ${a}`);if(s._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);const l=uf(a,s,JB(a,e),nt.scales[s.type]),u=YB(l,i),c=n.scales||{};o[a]=na(Object.create(null),[{axis:l},s,c[l],c[u]])}),e.data.datasets.forEach(a=>{const s=a.type||e.type,l=a.indexAxis||lf(s,t),c=($i[s]||{}).scales||{};Object.keys(c).forEach(d=>{const h=XB(d,l),f=a[h+"AxisID"]||h;o[f]=o[f]||Object.create(null),na(o[f],[{axis:h},r[f],c[d]])})}),Object.keys(o).forEach(a=>{const s=o[a];na(s,[nt.scales[s.type],nt.scale])}),o}function EC(e){const t=e.options||(e.options={});t.plugins=we(t.plugins,{}),t.scales=KB(e,t)}function IC(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function qB(e){return e=e||{},e.data=IC(e.data),EC(e),e}const $0=new Map,_C=new Set;function Zs(e,t){let n=$0.get(e);return n||(n=t(),$0.set(e,n),_C.add(n)),n}const Bo=(e,t,n)=>{const r=_i(t,n);r!==void 0&&e.add(r)};class QB{constructor(t){this._config=qB(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=IC(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),EC(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Zs(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return Zs(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return Zs(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return Zs(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const r=this._scopeCache;let i=r.get(t);return(!i||n)&&(i=new Map,r.set(t,i)),i}getOptionScopes(t,n,r){const{options:i,type:o}=this,a=this._cachedScopes(t,r),s=a.get(n);if(s)return s;const l=new Set;n.forEach(c=>{t&&(l.add(t),c.forEach(d=>Bo(l,t,d))),c.forEach(d=>Bo(l,i,d)),c.forEach(d=>Bo(l,$i[o]||{},d)),c.forEach(d=>Bo(l,nt,d)),c.forEach(d=>Bo(l,af,d))});const u=Array.from(l);return u.length===0&&u.push(Object.create(null)),_C.has(n)&&a.set(n,u),u}chartOptionScopes(){const{options:t,type:n}=this;return[t,$i[n]||{},nt.datasets[n]||{},{type:n},nt,af]}resolveNamedOptions(t,n,r,i=[""]){const o={$shared:!0},{resolver:a,subPrefixes:s}=R0(this._resolverCache,t,i);let l=a;if(t8(a,n)){o.$shared=!1,r=Hr(r)?r():r;const u=this.createResolver(t,r,s);l=vo(a,r,u)}for(const u of n)o[u]=l[u];return o}createResolver(t,n,r=[""],i){const{resolver:o}=R0(this._resolverCache,t,r);return Ee(n)?vo(o,n,void 0,i):o}}function R0(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const i=n.join();let o=r.get(i);return o||(o={resolver:Qh(t,n),subPrefixes:n.filter(s=>!s.toLowerCase().includes("hover"))},r.set(i,o)),o}const e8=e=>Ee(e)&&Object.getOwnPropertyNames(e).some(t=>Hr(e[t]));function t8(e,t){const{isScriptable:n,isIndexable:r}=sC(e);for(const i of t){const o=n(i),a=r(i),s=(a||o)&&e[i];if(o&&(Hr(s)||e8(s))||a&&ot(s))return!0}return!1}var n8="4.4.3";const r8=["top","bottom","left","right","chartArea"];function A0(e,t){return e==="top"||e==="bottom"||r8.indexOf(e)===-1&&t==="x"}function F0(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function P0(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),We(n&&n.onComplete,[e],t)}function i8(e){const t=e.chart,n=t.options.animation;We(n&&n.onProgress,[e],t)}function $C(e){return ng()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const ml={},T0=e=>{const t=$C(e);return Object.values(ml).filter(n=>n.canvas===t).pop()};function o8(e,t,n){const r=Object.keys(e);for(const i of r){const o=+i;if(o>=t){const a=e[i];delete e[i],(n>0||o>t)&&(e[o+n]=a)}}}function a8(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}function Xs(e,t,n){return e.options.clip?e[n]:t[n]}function s8(e,t){const{xScale:n,yScale:r}=e;return n&&r?{left:Xs(n,t,"left"),right:Xs(n,t,"right"),top:Xs(r,t,"top"),bottom:Xs(r,t,"bottom")}:t}var Sr;let ki=(Sr=class{static register(...t){Pn.add(...t),k0()}static unregister(...t){Pn.remove(...t),k0()}constructor(t,n){const r=this.config=new QB(n),i=$C(t),o=T0(i);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const a=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||SB(i)),this.platform.updateConfig(r);const s=this.platform.acquireContext(i,a.aspectRatio),l=s&&s.canvas,u=l&&l.height,c=l&&l.width;if(this.id=ak(),this.ctx=s,this.canvas=l,this.width=c,this.height=u,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new HB,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Sk(d=>this.update(d),a.resizeDelay||0),this._dataChanges=[],ml[this.id]=this,!s||!l){console.error("Failed to create chart: can't acquire context from the given item");return}er.listen(this,"complete",P0),er.listen(this,"progress",i8),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:i,_aspectRatio:o}=this;return He(t)?n&&o?o:i?r/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Pn}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():t0(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return qp(this.canvas,this.ctx),this}stop(){return er.stop(this),this}resize(t,n){er.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,i=this.canvas,o=r.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(i,t,n,o),s=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,t0(this,s,!0)&&(this.notifyPlugins("resize",{size:a}),We(r.onResize,[this,a],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};Ne(n,(r,i)=>{r.id=i})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,i=Object.keys(r).reduce((a,s)=>(a[s]=!1,a),{});let o=[];n&&(o=o.concat(Object.keys(n).map(a=>{const s=n[a],l=uf(a,s),u=l==="r",c=l==="x";return{options:s,dposition:u?"chartArea":c?"bottom":"left",dtype:u?"radialLinear":c?"category":"linear"}}))),Ne(o,a=>{const s=a.options,l=s.id,u=uf(l,s),c=we(s.type,a.dtype);(s.position===void 0||A0(s.position,u)!==A0(a.dposition))&&(s.position=a.dposition),i[l]=!0;let d=null;if(l in r&&r[l].type===c)d=r[l];else{const h=Pn.getScale(c);d=new h({id:l,type:c,ctx:this.ctx,chart:this}),r[d.id]=d}d.init(s,t)}),Ne(i,(a,s)=>{a||delete r[s]}),Ne(r,a=>{dn.configure(this,a,a.options),dn.addBox(this,a)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((i,o)=>i.index-o.index),r>n){for(let i=n;i<r;++i)this._destroyDatasetMeta(i);t.splice(n,r-n)}this._sortedMetasets=t.slice(0).sort(F0("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:n}}=this;t.length>n.length&&delete this._stacks,t.forEach((r,i)=>{n.filter(o=>o===r._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let r,i;for(this._removeUnreferencedMetasets(),r=0,i=n.length;r<i;r++){const o=n[r];let a=this.getDatasetMeta(r);const s=o.type||this.config.type;if(a.type&&a.type!==s&&(this._destroyDatasetMeta(r),a=this.getDatasetMeta(r)),a.type=s,a.indexAxis=o.indexAxis||lf(s,this.options),a.order=o.order||0,a.index=r,a.label=""+o.label,a.visible=this.isDatasetVisible(r),a.controller)a.controller.updateIndex(r),a.controller.linkScales();else{const l=Pn.getController(s),{datasetElementType:u,dataElementType:c}=nt.datasets[s];Object.assign(l,{dataElementType:Pn.getElement(c),datasetElementType:u&&Pn.getElement(u)}),a.controller=new l(this,r),t.push(a.controller)}}return this._updateMetasets(),t}_resetElements(){Ne(this.data.datasets,(t,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let u=0,c=this.data.datasets.length;u<c;u++){const{controller:d}=this.getDatasetMeta(u),h=!i&&o.indexOf(d)===-1;d.buildOrUpdateElements(h),a=Math.max(+d.getMaxOverflow(),a)}a=this._minPadding=r.layout.autoPadding?a:0,this._updateLayout(a),i||Ne(o,u=>{u.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(F0("z","_idx"));const{_active:s,_lastEvent:l}=this;l?this._eventHandler(l,!0):s.length&&this._updateHoverStyles(s,s,!0),this.render()}_updateScales(){Ne(this.scales,t=>{dn.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!Hp(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:i,count:o}of n){const a=r==="_removeElements"?-o:o;o8(t,i,a)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=o=>new Set(t.filter(a=>a[0]===o).map((a,s)=>s+","+a.splice(1).join(","))),i=r(0);for(let o=1;o<n;o++)if(!Hp(i,r(o)))return;return Array.from(i).map(o=>o.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;dn.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],Ne(this.boxes,i=>{r&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,o)=>{i._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n<r;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,r=this.data.datasets.length;n<r;++n)this._updateDataset(n,Hr(t)?t({datasetIndex:n}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,n){const r=this.getDatasetMeta(t),i={meta:r,index:t,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",i)!==!1&&(r.controller._update(n),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(er.has(this)?this.attached&&!er.running(this)&&er.start(this):(this.draw(),P0({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:r,height:i}=this._resizeBeforeDraw;this._resize(r,i),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(this.chartArea);for(this._drawDatasets();t<n.length;++t)n[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const n=this._sortedMetasets,r=[];let i,o;for(i=0,o=n.length;i<o;++i){const a=n[i];(!t||a.visible)&&r.push(a)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let n=t.length-1;n>=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,r=t._clip,i=!r.disabled,o=s8(t,this.chartArea),a={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",a)!==!1&&(i&&Ou(n,{left:r.left===!1?0:o.left-r.left,right:r.right===!1?this.width:o.right+r.right,top:r.top===!1?0:o.top-r.top,bottom:r.bottom===!1?this.height:o.bottom+r.bottom}),t.controller.draw(),i&&Nu(n),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(t){return Wa(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,i){const o=rB.modes[n];return typeof o=="function"?o(this,t,r,i):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let i=r.filter(o=>o&&o._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},r.push(i)),i}getContext(){return this.$context||(this.$context=Ti(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(t,n){const r=this.getDatasetMeta(t);r.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,r){const i=r?"show":"hide",o=this.getDatasetMeta(t),a=o.controller._resolveAnimations(void 0,i);La(n)?(o.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),a.update(o,{visible:r}),this.update(s=>s.datasetIndex===t?i:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),er.remove(this),t=0,n=this.data.datasets.length;t<n;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:n}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),qp(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete ml[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,n=this.platform,r=(o,a)=>{n.addEventListener(this,o,a),t[o]=a},i=(o,a,s)=>{o.offsetX=a,o.offsetY=s,this._eventHandler(o)};Ne(this.options.events,o=>r(o,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,r=(l,u)=>{n.addEventListener(this,l,u),t[l]=u},i=(l,u)=>{t[l]&&(n.removeEventListener(this,l,u),delete t[l])},o=(l,u)=>{this.canvas&&this.resize(l,u)};let a;const s=()=>{i("attach",s),this.attached=!0,this.resize(),r("resize",o),r("detach",a)};a=()=>{this.attached=!1,i("resize",o),this._stop(),this._resize(0,0),r("attach",s)},n.isAttached(this.canvas)?s():a()}unbindEvents(){Ne(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},Ne(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const i=r?"set":"remove";let o,a,s,l;for(n==="dataset"&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+i+"DatasetHoverStyle"]()),s=0,l=t.length;s<l;++s){a=t[s];const u=a&&this.getDatasetMeta(a.datasetIndex).controller;u&&u[i+"HoverStyle"](a.element,a.datasetIndex,a.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const n=this._active||[],r=t.map(({datasetIndex:o,index:a})=>{const s=this.getDatasetMeta(o);if(!s)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:s.data[a],index:a}});!Ql(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(t,n,r){return this._plugins.notify(this,t,n,r)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,r){const i=this.options.hover,o=(l,u)=>l.filter(c=>!u.some(d=>c.datasetIndex===d.datasetIndex&&c.index===d.index)),a=o(n,t),s=r?t:o(t,n);a.length&&this.updateHoverStyle(a,i.mode,!1),s.length&&i.mode&&this.updateHoverStyle(s,i.mode,!0)}_eventHandler(t,n){const r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},i=a=>(a.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,i)===!1)return;const o=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(o||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:i=[],options:o}=this,a=n,s=this._getActiveElements(t,i,r,a),l=fk(t),u=a8(t,this._lastEvent,r,l);r&&(this._lastEvent=null,We(o.onHover,[t,s,this],this),l&&We(o.onClick,[t,s,this],this));const c=!Ql(s,i);return(c||n)&&(this._active=s,this._updateHoverStyles(s,i,n)),this._lastEvent=u,c}_getActiveElements(t,n,r,i){if(t.type==="mouseout")return[];if(!r)return n;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,i)}},re(Sr,"defaults",nt),re(Sr,"instances",ml),re(Sr,"overrides",$i),re(Sr,"registry",Pn),re(Sr,"version",n8),re(Sr,"getChart",T0),Sr);function k0(){return Ne(ki.instances,e=>e._plugins.invalidate())}function l8(e,t,n){const{startAngle:r,pixelMargin:i,x:o,y:a,outerRadius:s,innerRadius:l}=t;let u=i/s;e.beginPath(),e.arc(o,a,s,r-u,n+u),l>i?(u=i/l,e.arc(o,a,l,n+u,r-u,!0)):e.arc(o,a,i,n+lt,r-lt),e.closePath(),e.clip()}function u8(e){return qh(e,["outerStart","outerEnd","innerStart","innerEnd"])}function c8(e,t,n,r){const i=u8(e.options.borderRadius),o=(n-t)/2,a=Math.min(o,r*t/2),s=l=>{const u=(n-Math.min(o,l))*r/2;return St(l,0,Math.min(o,u))};return{outerStart:s(i.outerStart),outerEnd:s(i.outerEnd),innerStart:St(i.innerStart,0,a),innerEnd:St(i.innerEnd,0,a)}}function Zi(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function ou(e,t,n,r,i,o){const{x:a,y:s,startAngle:l,pixelMargin:u,innerRadius:c}=t,d=Math.max(t.outerRadius+r+n-u,0),h=c>0?c+r+n+u:0;let f=0;const g=i-l;if(r){const M=c>0?c-r:0,P=d>0?d-r:0,F=(M+P)/2,B=F!==0?g*F/(F+r):g;f=(g-B)/2}const m=Math.max(.001,g*d-n/et)/d,b=(g-m)/2,y=l+b+f,v=i-b-f,{outerStart:x,outerEnd:C,innerStart:D,innerEnd:I}=c8(t,h,d,v-y),T=d-x,p=d-C,S=y+x/T,$=v-C/p,_=h+D,A=h+I,k=y+D/_,R=v-I/A;if(e.beginPath(),o){const M=(S+$)/2;if(e.arc(a,s,d,S,M),e.arc(a,s,d,M,$),C>0){const N=Zi(p,$,a,s);e.arc(N.x,N.y,C,$,v+lt)}const P=Zi(A,v,a,s);if(e.lineTo(P.x,P.y),I>0){const N=Zi(A,R,a,s);e.arc(N.x,N.y,I,v+lt,R+Math.PI)}const F=(v-I/h+(y+D/h))/2;if(e.arc(a,s,h,v-I/h,F,!0),e.arc(a,s,h,F,y+D/h,!0),D>0){const N=Zi(_,k,a,s);e.arc(N.x,N.y,D,k+Math.PI,y-lt)}const B=Zi(T,y,a,s);if(e.lineTo(B.x,B.y),x>0){const N=Zi(T,S,a,s);e.arc(N.x,N.y,x,y-lt,S)}}else{e.moveTo(a,s);const M=Math.cos(S)*d+a,P=Math.sin(S)*d+s;e.lineTo(M,P);const F=Math.cos($)*d+a,B=Math.sin($)*d+s;e.lineTo(F,B)}e.closePath()}function d8(e,t,n,r,i){const{fullCircles:o,startAngle:a,circumference:s}=t;let l=t.endAngle;if(o){ou(e,t,n,r,l,i);for(let u=0;u<o;++u)e.fill();isNaN(s)||(l=a+(s%Je||Je))}return ou(e,t,n,r,l,i),e.fill(),l}function f8(e,t,n,r,i){const{fullCircles:o,startAngle:a,circumference:s,options:l}=t,{borderWidth:u,borderJoinStyle:c,borderDash:d,borderDashOffset:h}=l,f=l.borderAlign==="inner";if(!u)return;e.setLineDash(d||[]),e.lineDashOffset=h,f?(e.lineWidth=u*2,e.lineJoin=c||"round"):(e.lineWidth=u,e.lineJoin=c||"bevel");let g=t.endAngle;if(o){ou(e,t,n,r,g,i);for(let m=0;m<o;++m)e.stroke();isNaN(s)||(g=a+(s%Je||Je))}f&&l8(e,t,g),o||(ou(e,t,n,r,g,i),e.stroke())}class Xo extends yr{constructor(n){super();re(this,"circumference");re(this,"endAngle");re(this,"fullCircles");re(this,"innerRadius");re(this,"outerRadius");re(this,"pixelMargin");re(this,"startAngle");this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,n&&Object.assign(this,n)}inRange(n,r,i){const o=this.getProps(["x","y"],i),{angle:a,distance:s}=Q3(o,{x:n,y:r}),{startAngle:l,endAngle:u,innerRadius:c,outerRadius:d,circumference:h}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),f=(this.options.spacing+this.options.borderWidth)/2,m=we(h,u-l)>=Je||Ha(a,l,u),b=dr(s,c+f,d+f);return m&&b}getCenterPoint(n){const{x:r,y:i,startAngle:o,endAngle:a,innerRadius:s,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:u,spacing:c}=this.options,d=(o+a)/2,h=(s+l+c+u)/2;return{x:r+Math.cos(d)*h,y:i+Math.sin(d)*h}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:r,circumference:i}=this,o=(r.offset||0)/4,a=(r.spacing||0)/2,s=r.circular;if(this.pixelMargin=r.borderAlign==="inner"?.33:0,this.fullCircles=i>Je?Math.floor(i/Je):0,i===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const l=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(l)*o,Math.sin(l)*o);const u=1-Math.sin(Math.min(et,i||0)),c=o*u;n.fillStyle=r.backgroundColor,n.strokeStyle=r.borderColor,d8(n,this,c,a,s),f8(n,this,c,a,s),n.restore()}}re(Xo,"id","arc"),re(Xo,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),re(Xo,"defaultRoutes",{backgroundColor:"backgroundColor"}),re(Xo,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function RC(e,t,n=t){e.lineCap=we(n.borderCapStyle,t.borderCapStyle),e.setLineDash(we(n.borderDash,t.borderDash)),e.lineDashOffset=we(n.borderDashOffset,t.borderDashOffset),e.lineJoin=we(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=we(n.borderWidth,t.borderWidth),e.strokeStyle=we(n.borderColor,t.borderColor)}function h8(e,t,n){e.lineTo(n.x,n.y)}function g8(e){return e.stepped?Nk:e.tension||e.cubicInterpolationMode==="monotone"?Vk:h8}function AC(e,t,n={}){const r=e.length,{start:i=0,end:o=r-1}=n,{start:a,end:s}=t,l=Math.max(i,a),u=Math.min(o,s),c=i<a&&o<a||i>s&&o>s;return{count:r,start:l,loop:t.loop,ilen:u<l&&!c?r+u-l:u-l}}function m8(e,t,n,r){const{points:i,options:o}=t,{count:a,start:s,loop:l,ilen:u}=AC(i,n,r),c=g8(o);let{move:d=!0,reverse:h}=r||{},f,g,m;for(f=0;f<=u;++f)g=i[(s+(h?u-f:f))%a],!g.skip&&(d?(e.moveTo(g.x,g.y),d=!1):c(e,m,g,h,o.stepped),m=g);return l&&(g=i[(s+(h?u:0))%a],c(e,m,g,h,o.stepped)),!!l}function p8(e,t,n,r){const i=t.points,{count:o,start:a,ilen:s}=AC(i,n,r),{move:l=!0,reverse:u}=r||{};let c=0,d=0,h,f,g,m,b,y;const v=C=>(a+(u?s-C:C))%o,x=()=>{m!==b&&(e.lineTo(c,b),e.lineTo(c,m),e.lineTo(c,y))};for(l&&(f=i[v(0)],e.moveTo(f.x,f.y)),h=0;h<=s;++h){if(f=i[v(h)],f.skip)continue;const C=f.x,D=f.y,I=C|0;I===g?(D<m?m=D:D>b&&(b=D),c=(d*c+C)/++d):(x(),e.lineTo(C,D),g=I,d=0,m=b=D),y=D}x()}function cf(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?p8:m8}function b8(e){return e.stepped?bM:e.tension||e.cubicInterpolationMode==="monotone"?vM:ri}function v8(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),RC(e,t.options),e.stroke(i)}function y8(e,t,n,r){const{segments:i,options:o}=t,a=cf(t);for(const s of i)RC(e,o,s.style),e.beginPath(),a(e,t,s,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}const x8=typeof Path2D=="function";function C8(e,t,n,r){x8&&!t.options.segment?v8(e,t,n,r):y8(e,t,n,r)}class Vn extends yr{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const i=r.spanGaps?this._loop:this._fullLoop;uM(this._points,r,t,i,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=SM(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,r=t.length;return r&&n[t[r-1].end]}interpolate(t,n){const r=this.options,i=t[n],o=this.points,a=pC(this,{property:n,start:i,end:i});if(!a.length)return;const s=[],l=b8(r);let u,c;for(u=0,c=a.length;u<c;++u){const{start:d,end:h}=a[u],f=o[d],g=o[h];if(f===g){s.push(f);continue}const m=Math.abs((i-f[n])/(g[n]-f[n])),b=l(f,g,m,r.stepped);b[n]=t[n],s.push(b)}return s.length===1?s[0]:s}pathSegment(t,n,r){return cf(this)(t,this,n,r)}path(t,n,r){const i=this.segments,o=cf(this);let a=this._loop;n=n||0,r=r||this.points.length-n;for(const s of i)a&=o(t,this,s,{start:n,end:n+r-1});return!!a}draw(t,n,r,i){const o=this.options||{};(this.points||[]).length&&o.borderWidth&&(t.save(),C8(t,this,r,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}re(Vn,"id","line"),re(Vn,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),re(Vn,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),re(Vn,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"});function M0(e,t,n,r){const i=e.options,{[n]:o}=e.getProps([n],r);return Math.abs(t-o)<i.radius+i.hitRadius}class bi extends yr{constructor(n){super();re(this,"parsed");re(this,"skip");re(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,n&&Object.assign(this,n)}inRange(n,r,i){const o=this.options,{x:a,y:s}=this.getProps(["x","y"],i);return Math.pow(n-a,2)+Math.pow(r-s,2)<Math.pow(o.hitRadius+o.radius,2)}inXRange(n,r){return M0(this,n,"x",r)}inYRange(n,r){return M0(this,n,"y",r)}getCenterPoint(n){const{x:r,y:i}=this.getProps(["x","y"],n);return{x:r,y:i}}size(n){n=n||this.options||{};let r=n.radius||0;r=Math.max(r,r&&n.hoverRadius||0);const i=r&&n.borderWidth||0;return(r+i)*2}draw(n,r){const i=this.options;this.skip||i.radius<.1||!Wa(this,r,this.size(i)/2)||(n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.fillStyle=i.backgroundColor,sf(n,i,this.x,this.y))}getRange(){const n=this.options||{};return n.radius+n.hitRadius}}re(bi,"id","point"),re(bi,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),re(bi,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function FC(e,t){const{x:n,y:r,base:i,width:o,height:a}=e.getProps(["x","y","base","width","height"],t);let s,l,u,c,d;return e.horizontal?(d=a/2,s=Math.min(n,i),l=Math.max(n,i),u=r-d,c=r+d):(d=o/2,s=n-d,l=n+d,u=Math.min(r,i),c=Math.max(r,i)),{left:s,top:u,right:l,bottom:c}}function kr(e,t,n,r){return e?0:St(t,n,r)}function w8(e,t,n){const r=e.options.borderWidth,i=e.borderSkipped,o=aC(r);return{t:kr(i.top,o.top,0,n),r:kr(i.right,o.right,0,t),b:kr(i.bottom,o.bottom,0,n),l:kr(i.left,o.left,0,t)}}function D8(e,t,n){const{enableBorderRadius:r}=e.getProps(["enableBorderRadius"]),i=e.options.borderRadius,o=so(i),a=Math.min(t,n),s=e.borderSkipped,l=r||Ee(i);return{topLeft:kr(!l||s.top||s.left,o.topLeft,0,a),topRight:kr(!l||s.top||s.right,o.topRight,0,a),bottomLeft:kr(!l||s.bottom||s.left,o.bottomLeft,0,a),bottomRight:kr(!l||s.bottom||s.right,o.bottomRight,0,a)}}function S8(e){const t=FC(e),n=t.right-t.left,r=t.bottom-t.top,i=w8(e,n/2,r/2),o=D8(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r,radius:o},inner:{x:t.left+i.l,y:t.top+i.t,w:n-i.l-i.r,h:r-i.t-i.b,radius:{topLeft:Math.max(0,o.topLeft-Math.max(i.t,i.l)),topRight:Math.max(0,o.topRight-Math.max(i.t,i.r)),bottomLeft:Math.max(0,o.bottomLeft-Math.max(i.b,i.l)),bottomRight:Math.max(0,o.bottomRight-Math.max(i.b,i.r))}}}}function Gc(e,t,n,r){const i=t===null,o=n===null,s=e&&!(i&&o)&&FC(e,r);return s&&(i||dr(t,s.left,s.right))&&(o||dr(n,s.top,s.bottom))}function E8(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function I8(e,t){e.rect(t.x,t.y,t.w,t.h)}function Zc(e,t,n={}){const r=e.x!==n.x?-t:0,i=e.y!==n.y?-t:0,o=(e.x+e.w!==n.x+n.w?t:0)-r,a=(e.y+e.h!==n.y+n.h?t:0)-i;return{x:e.x+r,y:e.y+i,w:e.w+o,h:e.h+a,radius:e.radius}}class pl extends yr{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:n,options:{borderColor:r,backgroundColor:i}}=this,{inner:o,outer:a}=S8(this),s=E8(a.radius)?nu:I8;t.save(),(a.w!==o.w||a.h!==o.h)&&(t.beginPath(),s(t,Zc(a,n,o)),t.clip(),s(t,Zc(o,-n,a)),t.fillStyle=r,t.fill("evenodd")),t.beginPath(),s(t,Zc(o,n)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,n,r){return Gc(this,t,n,r)}inXRange(t,n){return Gc(this,t,null,n)}inYRange(t,n){return Gc(this,null,t,n)}getCenterPoint(t){const{x:n,y:r,base:i,horizontal:o}=this.getProps(["x","y","base","horizontal"],t);return{x:o?(n+i)/2:n,y:o?r:(r+i)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}re(pl,"id","bar"),re(pl,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),re(pl,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function _8(e,t,n){const r=e.segments,i=e.points,o=t.points,a=[];for(const s of r){let{start:l,end:u}=s;u=og(l,u,i);const c=df(n,i[l],i[u],s.loop);if(!t.segments){a.push({source:s,target:c,start:i[l],end:i[u]});continue}const d=pC(t,c);for(const h of d){const f=df(n,o[h.start],o[h.end],h.loop),g=mC(s,i,f);for(const m of g)a.push({source:m,target:h,start:{[n]:B0(c,f,"start",Math.max)},end:{[n]:B0(c,f,"end",Math.min)}})}}return a}function df(e,t,n,r){if(r)return;let i=t[e],o=n[e];return e==="angle"&&(i=Mn(i),o=Mn(o)),{property:e,start:i,end:o}}function $8(e,t){const{x:n=null,y:r=null}=e||{},i=t.points,o=[];return t.segments.forEach(({start:a,end:s})=>{s=og(a,s,i);const l=i[a],u=i[s];r!==null?(o.push({x:l.x,y:r}),o.push({x:u.x,y:r})):n!==null&&(o.push({x:n,y:l.y}),o.push({x:n,y:u.y}))}),o}function og(e,t,n){for(;t>e;t--){const r=n[t];if(!isNaN(r.x)&&!isNaN(r.y))break}return t}function B0(e,t,n,r){return e&&t?r(e[n],t[n]):e?e[n]:t?t[n]:0}function PC(e,t){let n=[],r=!1;return ot(e)?(r=!0,n=e):n=$8(e,t),n.length?new Vn({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function O0(e){return e&&e.fill!==!1}function R8(e,t,n){let i=e[t].fill;const o=[t];let a;if(!n)return i;for(;i!==!1&&o.indexOf(i)===-1;){if(!It(i))return i;if(a=e[i],!a)return!1;if(a.visible)return i;o.push(i),i=a.fill}return!1}function A8(e,t,n){const r=k8(e);if(Ee(r))return isNaN(r.value)?!1:r;let i=parseFloat(r);return It(i)&&Math.floor(i)===i?F8(r[0],t,i,n):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function F8(e,t,n,r){return(e==="-"||e==="+")&&(n=t+n),n===t||n<0||n>=r?!1:n}function P8(e,t){let n=null;return e==="start"?n=t.bottom:e==="end"?n=t.top:Ee(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}function T8(e,t,n){let r;return e==="start"?r=n:e==="end"?r=t.options.reverse?t.min:t.max:Ee(e)?r=e.value:r=t.getBaseValue(),r}function k8(e){const t=e.options,n=t.fill;let r=we(n&&n.target,n);return r===void 0&&(r=!!t.backgroundColor),r===!1||r===null?!1:r===!0?"origin":r}function M8(e){const{scale:t,index:n,line:r}=e,i=[],o=r.segments,a=r.points,s=B8(t,n);s.push(PC({x:null,y:t.bottom},r));for(let l=0;l<o.length;l++){const u=o[l];for(let c=u.start;c<=u.end;c++)O8(i,a[c],s)}return new Vn({points:i,options:{}})}function B8(e,t){const n=[],r=e.getMatchingVisibleMetas("line");for(let i=0;i<r.length;i++){const o=r[i];if(o.index===t)break;o.hidden||n.unshift(o.dataset)}return n}function O8(e,t,n){const r=[];for(let i=0;i<n.length;i++){const o=n[i],{first:a,last:s,point:l}=N8(o,t,"x");if(!(!l||a&&s)){if(a)r.unshift(l);else if(e.push(l),!s)break}}e.push(...r)}function N8(e,t,n){const r=e.interpolate(t,n);if(!r)return{};const i=r[n],o=e.segments,a=e.points;let s=!1,l=!1;for(let u=0;u<o.length;u++){const c=o[u],d=a[c.start][n],h=a[c.end][n];if(dr(i,d,h)){s=i===d,l=i===h;break}}return{first:s,last:l,point:r}}class TC{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,n,r){const{x:i,y:o,radius:a}=this;return n=n||{start:0,end:Je},t.arc(i,o,a,n.end,n.start,!0),!r.bounds}interpolate(t){const{x:n,y:r,radius:i}=this,o=t.angle;return{x:n+Math.cos(o)*i,y:r+Math.sin(o)*i,angle:o}}}function V8(e){const{chart:t,fill:n,line:r}=e;if(It(n))return L8(t,n);if(n==="stack")return M8(e);if(n==="shape")return!0;const i=j8(e);return i instanceof TC?i:PC(i,r)}function L8(e,t){const n=e.getDatasetMeta(t);return n&&e.isDatasetVisible(t)?n.dataset:null}function j8(e){return(e.scale||{}).getPointPositionForValue?W8(e):H8(e)}function H8(e){const{scale:t={},fill:n}=e,r=P8(n,t);if(It(r)){const i=t.isHorizontal();return{x:i?r:null,y:i?null:r}}return null}function W8(e){const{scale:t,fill:n}=e,r=t.options,i=t.getLabels().length,o=r.reverse?t.max:t.min,a=T8(n,t,o),s=[];if(r.grid.circular){const l=t.getPointPositionForValue(0,o);return new TC({x:l.x,y:l.y,radius:t.getDistanceFromCenterForValue(a)})}for(let l=0;l<i;++l)s.push(t.getPointPositionForValue(l,a));return s}function Xc(e,t,n){const r=V8(t),{line:i,scale:o,axis:a}=t,s=i.options,l=s.fill,u=s.backgroundColor,{above:c=u,below:d=u}=l||{};r&&i.points.length&&(Ou(e,n),z8(e,{line:i,target:r,above:c,below:d,area:n,scale:o,axis:a}),Nu(e))}function z8(e,t){const{line:n,target:r,above:i,below:o,area:a,scale:s}=t,l=n._loop?"angle":t.axis;e.save(),l==="x"&&o!==i&&(N0(e,r,a.top),V0(e,{line:n,target:r,color:i,scale:s,property:l}),e.restore(),e.save(),N0(e,r,a.bottom)),V0(e,{line:n,target:r,color:o,scale:s,property:l}),e.restore()}function N0(e,t,n){const{segments:r,points:i}=t;let o=!0,a=!1;e.beginPath();for(const s of r){const{start:l,end:u}=s,c=i[l],d=i[og(l,u,i)];o?(e.moveTo(c.x,c.y),o=!1):(e.lineTo(c.x,n),e.lineTo(c.x,c.y)),a=!!t.pathSegment(e,s,{move:a}),a?e.closePath():e.lineTo(d.x,n)}e.lineTo(t.first().x,n),e.closePath(),e.clip()}function V0(e,t){const{line:n,target:r,property:i,color:o,scale:a}=t,s=_8(n,r,i);for(const{source:l,target:u,start:c,end:d}of s){const{style:{backgroundColor:h=o}={}}=l,f=r!==!0;e.save(),e.fillStyle=h,G8(e,a,f&&df(i,c,d)),e.beginPath();const g=!!n.pathSegment(e,l);let m;if(f){g?e.closePath():L0(e,r,d,i);const b=!!r.pathSegment(e,u,{move:g,reverse:!0});m=g&&b,m||L0(e,r,c,i)}e.closePath(),e.fill(m?"evenodd":"nonzero"),e.restore()}}function G8(e,t,n){const{top:r,bottom:i}=t.chart.chartArea,{property:o,start:a,end:s}=n||{};o==="x"&&(e.beginPath(),e.rect(a,r,s-a,i-r),e.clip())}function L0(e,t,n,r){const i=t.interpolate(n,r);i&&e.lineTo(i.x,i.y)}var kC={id:"filler",afterDatasetsUpdate(e,t,n){const r=(e.data.datasets||[]).length,i=[];let o,a,s,l;for(a=0;a<r;++a)o=e.getDatasetMeta(a),s=o.dataset,l=null,s&&s.options&&s instanceof Vn&&(l={visible:e.isDatasetVisible(a),index:a,fill:A8(s,a,r),chart:e,axis:o.controller.options.indexAxis,scale:o.vScale,line:s}),o.$filler=l,i.push(l);for(a=0;a<r;++a)l=i[a],!(!l||l.fill===!1)&&(l.fill=R8(i,a,n.propagate))},beforeDraw(e,t,n){const r=n.drawTime==="beforeDraw",i=e.getSortedVisibleDatasetMetas(),o=e.chartArea;for(let a=i.length-1;a>=0;--a){const s=i[a].$filler;s&&(s.line.updateControlPoints(o,s.axis),r&&s.fill&&Xc(e.ctx,s,o))}},beforeDatasetsDraw(e,t,n){if(n.drawTime!=="beforeDatasetsDraw")return;const r=e.getSortedVisibleDatasetMetas();for(let i=r.length-1;i>=0;--i){const o=r[i].$filler;O0(o)&&Xc(e.ctx,o,e.chartArea)}},beforeDatasetDraw(e,t,n){const r=t.meta.$filler;!O0(r)||n.drawTime!=="beforeDatasetDraw"||Xc(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const j0=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},Z8=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class H0 extends yr{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,r){this.maxWidth=t,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=We(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(r=>t.filter(r,this.chart.data))),t.sort&&(n=n.sort((r,i)=>t.sort(r,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const r=t.labels,i=Et(r.font),o=i.size,a=this._computeTitleHeight(),{boxWidth:s,itemHeight:l}=j0(r,o);let u,c;n.font=i.string,this.isHorizontal()?(u=this.maxWidth,c=this._fitRows(a,o,s,l)+10):(c=this.maxHeight,u=this._fitCols(a,i,s,l)+10),this.width=Math.min(u,t.maxWidth||this.maxWidth),this.height=Math.min(c,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,i){const{ctx:o,maxWidth:a,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],u=this.lineWidths=[0],c=i+s;let d=t;o.textAlign="left",o.textBaseline="middle";let h=-1,f=-c;return this.legendItems.forEach((g,m)=>{const b=r+n/2+o.measureText(g.text).width;(m===0||u[u.length-1]+b+2*s>a)&&(d+=c,u[u.length-(m>0?0:1)]=0,f+=c,h++),l[m]={left:0,top:f,row:h,width:b,height:i},u[u.length-1]+=b+s}),d}_fitCols(t,n,r,i){const{ctx:o,maxHeight:a,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],u=this.columnSizes=[],c=a-t;let d=s,h=0,f=0,g=0,m=0;return this.legendItems.forEach((b,y)=>{const{itemWidth:v,itemHeight:x}=X8(r,n,o,b,i);y>0&&f+x+2*s>c&&(d+=h+s,u.push({width:h,height:f}),g+=h+s,m++,h=f=0),l[y]={left:g,top:f,col:m,width:v,height:x},h=Math.max(h,v),f+=x+s}),d+=h,u.push({width:h,height:f}),d}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:i},rtl:o}}=this,a=lo(o,this.left,this.width);if(this.isHorizontal()){let s=0,l=xt(r,this.left+i,this.right-this.lineWidths[s]);for(const u of n)s!==u.row&&(s=u.row,l=xt(r,this.left+i,this.right-this.lineWidths[s])),u.top+=this.top+t+i,u.left=a.leftForLtr(a.x(l),u.width),l+=u.width+i}else{let s=0,l=xt(r,this.top+t+i,this.bottom-this.columnSizes[s].height);for(const u of n)u.col!==s&&(s=u.col,l=xt(r,this.top+t+i,this.bottom-this.columnSizes[s].height)),u.top=l,u.left+=this.left+i,u.left=a.leftForLtr(a.x(u.left),u.width),l+=u.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;Ou(t,this),this._draw(),Nu(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:i}=this,{align:o,labels:a}=t,s=nt.color,l=lo(t.rtl,this.left,this.width),u=Et(a.font),{padding:c}=a,d=u.size,h=d/2;let f;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=u.string;const{boxWidth:g,boxHeight:m,itemHeight:b}=j0(a,d),y=function(I,T,p){if(isNaN(g)||g<=0||isNaN(m)||m<0)return;i.save();const S=we(p.lineWidth,1);if(i.fillStyle=we(p.fillStyle,s),i.lineCap=we(p.lineCap,"butt"),i.lineDashOffset=we(p.lineDashOffset,0),i.lineJoin=we(p.lineJoin,"miter"),i.lineWidth=S,i.strokeStyle=we(p.strokeStyle,s),i.setLineDash(we(p.lineDash,[])),a.usePointStyle){const $={radius:m*Math.SQRT2/2,pointStyle:p.pointStyle,rotation:p.rotation,borderWidth:S},_=l.xPlus(I,g/2),A=T+h;oC(i,$,_,A,a.pointStyleWidth&&g)}else{const $=T+Math.max((d-m)/2,0),_=l.leftForLtr(I,g),A=so(p.borderRadius);i.beginPath(),Object.values(A).some(k=>k!==0)?nu(i,{x:_,y:$,w:g,h:m,radius:A}):i.rect(_,$,g,m),i.fill(),S!==0&&i.stroke()}i.restore()},v=function(I,T,p){za(i,p.text,I,T+b/2,u,{strikethrough:p.hidden,textAlign:l.textAlign(p.textAlign)})},x=this.isHorizontal(),C=this._computeTitleHeight();x?f={x:xt(o,this.left+c,this.right-r[0]),y:this.top+c+C,line:0}:f={x:this.left+c,y:xt(o,this.top+C+c,this.bottom-n[0].height),line:0},fC(this.ctx,t.textDirection);const D=b+c;this.legendItems.forEach((I,T)=>{i.strokeStyle=I.fontColor,i.fillStyle=I.fontColor;const p=i.measureText(I.text).width,S=l.textAlign(I.textAlign||(I.textAlign=a.textAlign)),$=g+h+p;let _=f.x,A=f.y;l.setWidth(this.width),x?T>0&&_+$+c>this.right&&(A=f.y+=D,f.line++,_=f.x=xt(o,this.left+c,this.right-r[f.line])):T>0&&A+D>this.bottom&&(_=f.x=_+n[f.line].width+c,f.line++,A=f.y=xt(o,this.top+C+c,this.bottom-n[f.line].height));const k=l.x(_);if(y(k,A,I),_=Ek(S,_+g+h,x?_+$:this.right,t.rtl),v(l.x(_),A,I),x)f.x+=$+c;else if(typeof I.text!="string"){const R=u.lineHeight;f.y+=MC(I,R)+c}else f.y+=D}),hC(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=Et(n.font),i=fn(n.padding);if(!n.display)return;const o=lo(t.rtl,this.left,this.width),a=this.ctx,s=n.position,l=r.size/2,u=i.top+l;let c,d=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),c=this.top+u,d=xt(t.align,d,this.right-h);else{const g=this.columnSizes.reduce((m,b)=>Math.max(m,b.height),0);c=u+xt(t.align,this.top,this.bottom-g-t.labels.padding-this._computeTitleHeight())}const f=xt(s,d,d+h);a.textAlign=o.textAlign(Uh(s)),a.textBaseline="middle",a.strokeStyle=n.color,a.fillStyle=n.color,a.font=r.string,za(a,n.text,f,c,r)}_computeTitleHeight(){const t=this.options.title,n=Et(t.font),r=fn(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,i,o;if(dr(t,this.left,this.right)&&dr(n,this.top,this.bottom)){for(o=this.legendHitBoxes,r=0;r<o.length;++r)if(i=o[r],dr(t,i.left,i.left+i.width)&&dr(n,i.top,i.top+i.height))return this.legendItems[r]}return null}handleEvent(t){const n=this.options;if(!J8(t.type,n))return;const r=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const i=this._hoveredItem,o=Z8(i,r);i&&!o&&We(n.onLeave,[t,i,this],this),this._hoveredItem=r,r&&!o&&We(n.onHover,[t,r,this],this)}else r&&We(n.onClick,[t,r,this],this)}}function X8(e,t,n,r,i){const o=Y8(r,e,t,n),a=U8(i,r,t.lineHeight);return{itemWidth:o,itemHeight:a}}function Y8(e,t,n,r){let i=e.text;return i&&typeof i!="string"&&(i=i.reduce((o,a)=>o.length>a.length?o:a)),t+n.size/2+r.measureText(i).width}function U8(e,t,n){let r=e;return typeof t.text!="string"&&(r=MC(t,n)),r}function MC(e,t){const n=e.text?e.text.length:0;return t*n}function J8(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var BC={id:"legend",_element:H0,start(e,t,n){const r=e.legend=new H0({ctx:e.ctx,options:n,chart:e});dn.configure(e,r,n),dn.addBox(e,r)},stop(e){dn.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;dn.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:o,useBorderRadius:a,borderRadius:s}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const u=l.controller.getStyle(n?0:void 0),c=fn(u.borderWidth);return{text:t[l.index].label,fillStyle:u.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:u.borderCapStyle,lineDash:u.borderDash,lineDashOffset:u.borderDashOffset,lineJoin:u.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:u.borderColor,pointStyle:r||u.pointStyle,rotation:u.rotation,textAlign:i||u.textAlign,borderRadius:a&&(s||u.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class OC extends yr{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const i=ot(r.text)?r.text.length:1;this._padding=fn(r.padding);const o=i*Et(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:r,bottom:i,right:o,options:a}=this,s=a.align;let l=0,u,c,d;return this.isHorizontal()?(c=xt(s,r,o),d=n+t,u=o-r):(a.position==="left"?(c=r+t,d=xt(s,i,n),l=et*-.5):(c=o-t,d=xt(s,n,i),l=et*.5),u=i-n),{titleX:c,titleY:d,maxWidth:u,rotation:l}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const r=Et(n.font),o=r.lineHeight/2+this._padding.top,{titleX:a,titleY:s,maxWidth:l,rotation:u}=this._drawArgs(o);za(t,n.text,0,0,r,{color:n.color,maxWidth:l,rotation:u,textAlign:Uh(n.align),textBaseline:"middle",translation:[a,s]})}}function K8(e,t){const n=new OC({ctx:e.ctx,options:t,chart:e});dn.configure(e,n,t),dn.addBox(e,n),e.titleBlock=n}var NC={id:"title",_element:OC,start(e,t,n){K8(e,n)},stop(e){const t=e.titleBlock;dn.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;dn.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Yo={average(e){if(!e.length)return!1;let t,n,r=new Set,i=0,o=0;for(t=0,n=e.length;t<n;++t){const s=e[t].element;if(s&&s.hasValue()){const l=s.tooltipPosition();r.add(l.x),i+=l.y,++o}}return{x:[...r].reduce((s,l)=>s+l)/r.size,y:i/o}},nearest(e,t){if(!e.length)return!1;let n=t.x,r=t.y,i=Number.POSITIVE_INFINITY,o,a,s;for(o=0,a=e.length;o<a;++o){const l=e[o].element;if(l&&l.hasValue()){const u=l.getCenterPoint(),c=of(t,u);c<i&&(i=c,s=l)}}if(s){const l=s.tooltipPosition();n=l.x,r=l.y}return{x:n,y:r}}};function An(e,t){return t&&(ot(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function tr(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
148
+ */class _M{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,r,i){const o=n.listeners[i],a=n.duration;o.forEach(s=>s({chart:t,initial:n.initial,numSteps:a,currentStep:Math.min(r-n.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=nC.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;const o=r.items;let a=o.length-1,s=!1,l;for(;a>=0;--a)l=o[a],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(t),s=!0):(o[a]=o[o.length-1],o.pop());s&&(i.draw(),this._notify(i,r,t,"progress")),o.length||(r.running=!1,this._notify(i,r,t,"complete"),r.initial=!1),n+=o.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,i)=>Math.max(r,i._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const r=n.items;let i=r.length-1;for(;i>=0;--i)r[i].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var er=new _M;const a0="transparent",$M={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=Up(e||a0),i=r.valid&&Up(t||a0);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class RM{constructor(t,n,r,i){const o=n[r];i=Ls([t.to,i,o,t.from]);const a=Ls([t.from,o,i]);this._active=!0,this._fn=t.fn||$M[t.type||typeof a],this._easing=ia[t.easing]||ia.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=a,this._to=i,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);const i=this._target[this._prop],o=r-this._start,a=this._duration-o;this._start=r,this._duration=Math.floor(Math.max(a,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=Ls([t.to,n,i,t.from]),this._from=Ls([t.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,r=this._duration,i=this._prop,o=this._from,a=this._loop,s=this._to;let l;if(this._active=o!==s&&(a||n<r),!this._active){this._target[i]=s,this._notify(!0);return}if(n<0){this._target[i]=o;return}l=n/r%2,l=a&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(o,s,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){const n=t?"res":"rej",r=this._promises||[];for(let i=0;i<r.length;i++)r[i][n]()}}class bC{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!Ee(t))return;const n=Object.keys(nt.animation),r=this._properties;Object.getOwnPropertyNames(t).forEach(i=>{const o=t[i];if(!Ee(o))return;const a={};for(const s of n)a[s]=o[s];(ot(o.properties)&&o.properties||[i]).forEach(s=>{(s===i||!r.has(s))&&r.set(s,a)})})}_animateOptions(t,n){const r=n.options,i=FM(t,r);if(!i)return[];const o=this._createAnimations(i,r);return r.$shared&&AM(t.options.$animations,r).then(()=>{t.options=r},()=>{}),o}_createAnimations(t,n){const r=this._properties,i=[],o=t.$animations||(t.$animations={}),a=Object.keys(n),s=Date.now();let l;for(l=a.length-1;l>=0;--l){const u=a[l];if(u.charAt(0)==="$")continue;if(u==="options"){i.push(...this._animateOptions(t,n));continue}const c=n[u];let d=o[u];const h=r.get(u);if(d)if(h&&d.active()){d.update(h,c,s);continue}else d.cancel();if(!h||!h.duration){t[u]=c;continue}o[u]=d=new RM(h,t,u,c),i.push(d)}return i}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const r=this._createAnimations(t,n);if(r.length)return er.add(this._chart,r),!0}}function AM(e,t){const n=[],r=Object.keys(t);for(let i=0;i<r.length;i++){const o=e[r[i]];o&&o.active()&&n.push(o.wait())}return Promise.all(n)}function FM(e,t){if(!t)return;let n=e.options;if(!n){e.options=t;return}return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function s0(e,t){const n=e&&e.options||{},r=n.reverse,i=n.min===void 0?t:0,o=n.max===void 0?t:0;return{start:r?o:i,end:r?i:o}}function PM(e,t,n){if(n===!1)return!1;const r=s0(e,n),i=s0(t,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}function TM(e){let t,n,r,i;return Ee(e)?(t=e.top,n=e.right,r=e.bottom,i=e.left):t=n=r=i=e,{top:t,right:n,bottom:r,left:i,disabled:e===!1}}function vC(e,t){const n=[],r=e._getSortedDatasetMetas(t);let i,o;for(i=0,o=r.length;i<o;++i)n.push(r[i].index);return n}function l0(e,t,n,r={}){const i=e.keys,o=r.mode==="single";let a,s,l,u;if(t!==null){for(a=0,s=i.length;a<s;++a){if(l=+i[a],l===n){if(r.all)continue;break}u=e.values[l],It(u)&&(o||t===0||Wn(t)===Wn(u))&&(t+=u)}return t}}function kM(e,t){const{iScale:n,vScale:r}=t,i=n.axis==="x"?"x":"y",o=r.axis==="x"?"x":"y",a=Object.keys(e),s=new Array(a.length);let l,u,c;for(l=0,u=a.length;l<u;++l)c=a[l],s[l]={[i]:c,[o]:e[c]};return s}function u0(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function MM(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function BM(e){const{min:t,max:n,minDefined:r,maxDefined:i}=e.getUserBounds();return{min:r?t:Number.NEGATIVE_INFINITY,max:i?n:Number.POSITIVE_INFINITY}}function OM(e,t,n){const r=e[t]||(e[t]={});return r[n]||(r[n]={})}function c0(e,t,n,r){for(const i of t.getMatchingVisibleMetas(r).reverse()){const o=e[i.index];if(n&&o>0||!n&&o<0)return i.index}return null}function d0(e,t){const{chart:n,_cachedMeta:r}=e,i=n._stacks||(n._stacks={}),{iScale:o,vScale:a,index:s}=r,l=o.axis,u=a.axis,c=MM(o,a,r),d=t.length;let h;for(let f=0;f<d;++f){const g=t[f],{[l]:m,[u]:b}=g,y=g._stacks||(g._stacks={});h=y[u]=OM(i,c,m),h[s]=b,h._top=c0(h,a,!0,r.type),h._bottom=c0(h,a,!1,r.type);const v=h._visualValues||(h._visualValues={});v[s]=b}}function Vc(e,t){const n=e.scales;return Object.keys(n).filter(r=>n[r].axis===t).shift()}function NM(e,t){return Ti(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function VM(e,t,n){return Ti(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function Po(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;for(const i of t){const o=i._stacks;if(!o||o[r]===void 0||o[r][n]===void 0)return;delete o[r][n],o[r]._visualValues!==void 0&&o[r]._visualValues[n]!==void 0&&delete o[r]._visualValues[n]}}}const Lc=e=>e==="reset"||e==="none",f0=(e,t)=>t?e:Object.assign({},e),LM=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:vC(n,!0),values:null};class pi{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=u0(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Po(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(d,h,f,g)=>d==="x"?h:d==="r"?g:f,o=n.xAxisID=we(r.xAxisID,Vc(t,"x")),a=n.yAxisID=we(r.yAxisID,Vc(t,"y")),s=n.rAxisID=we(r.rAxisID,Vc(t,"r")),l=n.indexAxis,u=n.iAxisID=i(l,o,a,s),c=n.vAxisID=i(l,a,o,s);n.xScale=this.getScaleForId(o),n.yScale=this.getScaleForId(a),n.rScale=this.getScaleForId(s),n.iScale=this.getScaleForId(u),n.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Zp(this._data,this),t._stacked&&Po(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(Ee(n)){const i=this._cachedMeta;this._data=kM(n,i)}else if(r!==n){if(r){Zp(r,this);const i=this._cachedMeta;Po(i),i._parsed=[]}n&&Object.isExtensible(n)&&Dk(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,r=this.getDataset();let i=!1;this._dataCheck();const o=n._stacked;n._stacked=u0(n.vScale,n),n.stack!==r.stack&&(i=!0,Po(n),n.stack=r.stack),this._resyncElements(t),(i||o!==n._stacked)&&d0(this,n._parsed)}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:r,_data:i}=this,{iScale:o,_stacked:a}=r,s=o.axis;let l=t===0&&n===i.length?!0:r._sorted,u=t>0&&r._parsed[t-1],c,d,h;if(this._parsing===!1)r._parsed=i,r._sorted=!0,h=i;else{ot(i[t])?h=this.parseArrayData(r,i,t,n):Ee(i[t])?h=this.parseObjectData(r,i,t,n):h=this.parsePrimitiveData(r,i,t,n);const f=()=>d[s]===null||u&&d[s]<u[s];for(c=0;c<n;++c)r._parsed[c+t]=d=h[c],l&&(f()&&(l=!1),u=d);r._sorted=l}a&&d0(this,h)}parsePrimitiveData(t,n,r,i){const{iScale:o,vScale:a}=t,s=o.axis,l=a.axis,u=o.getLabels(),c=o===a,d=new Array(i);let h,f,g;for(h=0,f=i;h<f;++h)g=h+r,d[h]={[s]:c||o.parse(u[g],g),[l]:a.parse(n[g],g)};return d}parseArrayData(t,n,r,i){const{xScale:o,yScale:a}=t,s=new Array(i);let l,u,c,d;for(l=0,u=i;l<u;++l)c=l+r,d=n[c],s[l]={x:o.parse(d[0],c),y:a.parse(d[1],c)};return s}parseObjectData(t,n,r,i){const{xScale:o,yScale:a}=t,{xAxisKey:s="x",yAxisKey:l="y"}=this._parsing,u=new Array(i);let c,d,h,f;for(c=0,d=i;c<d;++c)h=c+r,f=n[h],u[c]={x:o.parse(_i(f,s),h),y:a.parse(_i(f,l),h)};return u}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,n,r){const i=this.chart,o=this._cachedMeta,a=n[t.axis],s={keys:vC(i,!0),values:n._stacks[t.axis]._visualValues};return l0(s,a,o.index,{mode:r})}updateRangeFromParsed(t,n,r,i){const o=r[n.axis];let a=o===null?NaN:o;const s=i&&r._stacks[n.axis];i&&s&&(i.values=s,a=l0(i,o,this._cachedMeta.index)),t.min=Math.min(t.min,a),t.max=Math.max(t.max,a)}getMinMax(t,n){const r=this._cachedMeta,i=r._parsed,o=r._sorted&&t===r.iScale,a=i.length,s=this._getOtherScale(t),l=LM(n,r,this.chart),u={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:d}=BM(s);let h,f;function g(){f=i[h];const m=f[s.axis];return!It(f[t.axis])||c>m||d<m}for(h=0;h<a&&!(!g()&&(this.updateRangeFromParsed(u,t,f,l),o));++h);if(o){for(h=a-1;h>=0;--h)if(!g()){this.updateRangeFromParsed(u,t,f,l);break}}return u}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let i,o,a;for(i=0,o=n.length;i<o;++i)a=n[i][t.axis],It(a)&&r.push(a);return r}getMaxOverflow(){return!1}getLabelAndValue(t){const n=this._cachedMeta,r=n.iScale,i=n.vScale,o=this.getParsed(t);return{label:r?""+r.getLabelForValue(o[r.axis]):"",value:i?""+i.getLabelForValue(o[i.axis]):""}}_update(t){const n=this._cachedMeta;this.update(t||"default"),n._clip=TM(we(this.options.clip,PM(n.xScale,n.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,n=this.chart,r=this._cachedMeta,i=r.data||[],o=n.chartArea,a=[],s=this._drawStart||0,l=this._drawCount||i.length-s,u=this.options.drawActiveElementsOnTop;let c;for(r.dataset&&r.dataset.draw(t,o,s,l),c=s;c<s+l;++c){const d=i[c];d.hidden||(d.active&&u?a.push(d):d.draw(t,o))}for(c=0;c<a.length;++c)a[c].draw(t,o)}getStyle(t,n){const r=n?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(t||0,r)}getContext(t,n,r){const i=this.getDataset();let o;if(t>=0&&t<this._cachedMeta.data.length){const a=this._cachedMeta.data[t];o=a.$context||(a.$context=VM(this.getContext(),t,a)),o.parsed=this.getParsed(t),o.raw=i.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=NM(this.chart.getContext(),this.index)),o.dataset=i,o.index=o.datasetIndex=this.index;return o.active=!!n,o.mode=r,o}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,n){return this._resolveElementOptions(this.dataElementType.id,n,t)}_resolveElementOptions(t,n="default",r){const i=n==="active",o=this._cachedDataOpts,a=t+"-"+n,s=o[a],l=this.enableOptionSharing&&La(r);if(s)return f0(s,l);const u=this.chart.config,c=u.datasetElementScopeKeys(this._type,t),d=i?[`${t}Hover`,"hover",t,""]:[t,""],h=u.getOptionScopes(this.getDataset(),c),f=Object.keys(nt.elements[t]),g=()=>this.getContext(r,i,n),m=u.resolveNamedOptions(h,f,g,d);return m.$shared&&(m.$shared=l,o[a]=Object.freeze(f0(m,l))),m}_resolveAnimations(t,n,r){const i=this.chart,o=this._cachedDataOpts,a=`animation-${n}`,s=o[a];if(s)return s;let l;if(i.options.animation!==!1){const c=this.chart.config,d=c.datasetAnimationScopeKeys(this._type,n),h=c.getOptionScopes(this.getDataset(),d);l=c.createResolver(h,this.getContext(t,r,n))}const u=new bC(i,l&&l.animations);return l&&l._cacheable&&(o[a]=Object.freeze(u)),u}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||Lc(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),i=this._sharedOptions,o=this.getSharedOptions(r),a=this.includeOptions(n,o)||o!==i;return this.updateSharedOptions(o,n,r),{sharedOptions:o,includeOptions:a}}updateElement(t,n,r,i){Lc(i)?Object.assign(t,r):this._resolveAnimations(n,i).update(t,r)}updateSharedOptions(t,n,r){t&&!Lc(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,i){t.active=i;const o=this.getStyle(n,i);this._resolveAnimations(n,r,i).update(t,{options:!i&&this.getSharedOptions(o)||o})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,r=this._cachedMeta.data;for(const[s,l,u]of this._syncList)this[s](l,u);this._syncList=[];const i=r.length,o=n.length,a=Math.min(o,i);a&&this.parse(0,a),o>i?this._insertElements(i,o-i,t):o<i&&this._removeElements(o,i-o)}_insertElements(t,n,r=!0){const i=this._cachedMeta,o=i.data,a=t+n;let s;const l=u=>{for(u.length+=n,s=u.length-1;s>=a;s--)u[s]=u[s-n]};for(l(o),s=t;s<a;++s)o[s]=new this.dataElementType;this._parsing&&l(i._parsed),this.parse(t,n),r&&this.updateElements(o,t,n,"reset")}updateElements(t,n,r,i){}_removeElements(t,n){const r=this._cachedMeta;if(this._parsing){const i=r._parsed.splice(t,n);r._stacked&&Po(r,i)}r.data.splice(t,n)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[n,r,i]=t;this[n](r,i)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,n){n&&this._sync(["_removeElements",t,n]);const r=arguments.length-2;r&&this._sync(["_insertElements",t,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}re(pi,"defaults",{}),re(pi,"datasetElementType",null),re(pi,"dataElementType",null);function HM(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let r=[];for(let i=0,o=n.length;i<o;i++)r=r.concat(n[i].controller.getAllParsedValues(e));e._cache.$bar=tC(r.sort((i,o)=>i-o))}return e._cache.$bar}function jM(e){const t=e.iScale,n=HM(t,e.type);let r=t._length,i,o,a,s;const l=()=>{a===32767||a===-32768||(La(s)&&(r=Math.min(r,Math.abs(a-s)||r)),s=a)};for(i=0,o=n.length;i<o;++i)a=t.getPixelForValue(n[i]),l();for(s=void 0,i=0,o=t.ticks.length;i<o;++i)a=t.getPixelForTick(i),l();return r}function WM(e,t,n,r){const i=n.barThickness;let o,a;return je(i)?(o=t.min*n.categoryPercentage,a=n.barPercentage):(o=i*r,a=1),{chunk:o/r,ratio:a,start:t.pixels[e]-o/2}}function zM(e,t,n,r){const i=t.pixels,o=i[e];let a=e>0?i[e-1]:null,s=e<i.length-1?i[e+1]:null;const l=n.categoryPercentage;a===null&&(a=o-(s===null?t.end-t.start:s-o)),s===null&&(s=o+o-a);const u=o-(o-Math.min(a,s))/2*l;return{chunk:Math.abs(s-a)/2*l/r,ratio:n.barPercentage,start:u}}function GM(e,t,n,r){const i=n.parse(e[0],r),o=n.parse(e[1],r),a=Math.min(i,o),s=Math.max(i,o);let l=a,u=s;Math.abs(a)>Math.abs(s)&&(l=s,u=a),t[n.axis]=u,t._custom={barStart:l,barEnd:u,start:i,end:o,min:a,max:s}}function yC(e,t,n,r){return ot(e)?GM(e,t,n,r):t[n.axis]=n.parse(e,r),t}function h0(e,t,n,r){const i=e.iScale,o=e.vScale,a=i.getLabels(),s=i===o,l=[];let u,c,d,h;for(u=n,c=n+r;u<c;++u)h=t[u],d={},d[i.axis]=s||i.parse(a[u],u),l.push(yC(h,d,o,u));return l}function Hc(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function ZM(e,t,n){return e!==0?Wn(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}function XM(e){let t,n,r,i,o;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.base<e.y,n="bottom",r="top"),t?(i="end",o="start"):(i="start",o="end"),{start:n,end:r,reverse:t,top:i,bottom:o}}function YM(e,t,n,r){let i=t.borderSkipped;const o={};if(!i){e.borderSkipped=o;return}if(i===!0){e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:a,end:s,reverse:l,top:u,bottom:c}=XM(e);i==="middle"&&n&&(e.enableBorderRadius=!0,(n._top||0)===r?i=u:(n._bottom||0)===r?i=c:(o[g0(c,a,s,l)]=!0,i=u)),o[g0(i,a,s,l)]=!0,e.borderSkipped=o}function g0(e,t,n,r){return r?(e=UM(e,t,n),e=m0(e,n,t)):e=m0(e,t,n),e}function UM(e,t,n){return e===t?n:e===n?t:e}function m0(e,t,n){return e==="start"?t:e==="end"?n:e}function JM(e,{inflateAmount:t},n){e.inflateAmount=t==="auto"?n===1?.33:0:t}class fl extends pi{parsePrimitiveData(t,n,r,i){return h0(t,n,r,i)}parseArrayData(t,n,r,i){return h0(t,n,r,i)}parseObjectData(t,n,r,i){const{iScale:o,vScale:a}=t,{xAxisKey:s="x",yAxisKey:l="y"}=this._parsing,u=o.axis==="x"?s:l,c=a.axis==="x"?s:l,d=[];let h,f,g,m;for(h=r,f=r+i;h<f;++h)m=n[h],g={},g[o.axis]=o.parse(_i(m,u),h),d.push(yC(_i(m,c),g,a,h));return d}updateRangeFromParsed(t,n,r,i){super.updateRangeFromParsed(t,n,r,i);const o=r._custom;o&&n===this._cachedMeta.vScale&&(t.min=Math.min(t.min,o.min),t.max=Math.max(t.max,o.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const n=this._cachedMeta,{iScale:r,vScale:i}=n,o=this.getParsed(t),a=o._custom,s=Hc(a)?"["+a.start+", "+a.end+"]":""+i.getLabelForValue(o[i.axis]);return{label:""+r.getLabelForValue(o[r.axis]),value:s}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){const n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,t)}updateElements(t,n,r,i){const o=i==="reset",{index:a,_cachedMeta:{vScale:s}}=this,l=s.getBasePixel(),u=s.isHorizontal(),c=this._getRuler(),{sharedOptions:d,includeOptions:h}=this._getSharedOptions(n,i);for(let f=n;f<n+r;f++){const g=this.getParsed(f),m=o||je(g[s.axis])?{base:l,head:l}:this._calculateBarValuePixels(f),b=this._calculateBarIndexPixels(f,c),y=(g._stacks||{})[s.axis],v={horizontal:u,base:m.base,enableBorderRadius:!y||Hc(g._custom)||a===y._top||a===y._bottom,x:u?m.head:b.center,y:u?b.center:m.head,height:u?b.size:Math.abs(m.size),width:u?Math.abs(m.size):b.size};h&&(v.options=d||this.resolveDataElementOptions(f,t[f].active?"active":i));const x=v.options||t[f].options;YM(v,x,y,a),JM(v,x,c.ratio),this.updateElement(t[f],f,v,i)}}_getStacks(t,n){const{iScale:r}=this._cachedMeta,i=r.getMatchingVisibleMetas(this._type).filter(l=>l.controller.options.grouped),o=r.options.stacked,a=[],s=l=>{const u=l.controller.getParsed(n),c=u&&u[l.vScale.axis];if(je(c)||isNaN(c))return!0};for(const l of i)if(!(n!==void 0&&s(l))&&((o===!1||a.indexOf(l.stack)===-1||o===void 0&&l.stack===void 0)&&a.push(l.stack),l.index===t))break;return a.length||a.push(void 0),a}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,r){const i=this._getStacks(t,r),o=n!==void 0?i.indexOf(n):-1;return o===-1?i.length-1:o}_getRuler(){const t=this.options,n=this._cachedMeta,r=n.iScale,i=[];let o,a;for(o=0,a=n.data.length;o<a;++o)i.push(r.getPixelForValue(this.getParsed(o)[r.axis],o));const s=t.barThickness;return{min:s||jM(n),pixels:i,start:r._startPixel,end:r._endPixel,stackCount:this._getStackCount(),scale:r,grouped:t.grouped,ratio:s?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:n,_stacked:r,index:i},options:{base:o,minBarLength:a}}=this,s=o||0,l=this.getParsed(t),u=l._custom,c=Hc(u);let d=l[n.axis],h=0,f=r?this.applyStack(n,l,r):d,g,m;f!==d&&(h=f-d,f=d),c&&(d=u.barStart,f=u.barEnd-u.barStart,d!==0&&Wn(d)!==Wn(u.barEnd)&&(h=0),h+=d);const b=!je(o)&&!c?o:h;let y=n.getPixelForValue(b);if(this.chart.getDataVisibility(t)?g=n.getPixelForValue(h+f):g=y,m=g-y,Math.abs(m)<a){m=ZM(m,n,s)*a,d===s&&(y-=m/2);const v=n.getPixelForDecimal(0),x=n.getPixelForDecimal(1),C=Math.min(v,x),D=Math.max(v,x);y=Math.max(Math.min(y,D),C),g=y+m,r&&!c&&(l._stacks[n.axis]._visualValues[i]=n.getValueForPixel(g)-n.getValueForPixel(y))}if(y===n.getPixelForValue(s)){const v=Wn(m)*n.getLineWidthForValue(s)/2;y+=v,m-=v}return{size:m,base:y,head:g,center:g+m/2}}_calculateBarIndexPixels(t,n){const r=n.scale,i=this.options,o=i.skipNull,a=we(i.maxBarThickness,1/0);let s,l;if(n.grouped){const u=o?this._getStackCount(t):n.stackCount,c=i.barThickness==="flex"?zM(t,n,i,u):WM(t,n,i,u),d=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0);s=c.start+c.chunk*d+c.chunk/2,l=Math.min(a,c.chunk*c.ratio)}else s=r.getPixelForValue(this.getParsed(t)[r.axis],t),l=Math.min(a,n.min*n.ratio);return{base:s-l/2,head:s+l/2,center:s,size:l}}draw(){const t=this._cachedMeta,n=t.vScale,r=t.data,i=r.length;let o=0;for(;o<i;++o)this.getParsed(o)[n.axis]!==null&&!r[o].hidden&&r[o].draw(this._ctx)}}re(fl,"id","bar"),re(fl,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),re(fl,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});function KM(e,t,n){let r=1,i=1,o=0,a=0;if(t<Je){const s=e,l=s+t,u=Math.cos(s),c=Math.sin(s),d=Math.cos(l),h=Math.sin(l),f=(x,C,D)=>ja(x,s,l,!0)?1:Math.max(C,C*n,D,D*n),g=(x,C,D)=>ja(x,s,l,!0)?-1:Math.min(C,C*n,D,D*n),m=f(0,u,d),b=f(lt,c,h),y=g(et,u,d),v=g(et+lt,c,h);r=(m-y)/2,i=(b-v)/2,o=-(m+y)/2,a=-(b+v)/2}return{ratioX:r,ratioY:i,offsetX:o,offsetY:a}}class Go extends pi{constructor(t,n){super(t,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){const r=this.getDataset().data,i=this._cachedMeta;if(this._parsing===!1)i._parsed=r;else{let o=l=>+r[l];if(Ee(r[t])){const{key:l="value"}=this._parsing;o=u=>+_i(r[u],l)}let a,s;for(a=t,s=t+n;a<s;++a)i._parsed[a]=o(a)}}_getRotation(){return cr(this.options.rotation-90)}_getCircumference(){return cr(this.options.circumference)}_getRotationExtents(){let t=Je,n=-Je;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)&&this.chart.getDatasetMeta(r).type===this._type){const i=this.chart.getDatasetMeta(r).controller,o=i._getRotation(),a=i._getCircumference();t=Math.min(t,o),n=Math.max(n,o+a)}return{rotation:t,circumference:n-t}}update(t){const n=this.chart,{chartArea:r}=n,i=this._cachedMeta,o=i.data,a=this.getMaxBorderWidth()+this.getMaxOffset(o)+this.options.spacing,s=Math.max((Math.min(r.width,r.height)-a)/2,0),l=Math.min(sk(this.options.cutout,s),1),u=this._getRingWeight(this.index),{circumference:c,rotation:d}=this._getRotationExtents(),{ratioX:h,ratioY:f,offsetX:g,offsetY:m}=KM(d,c,l),b=(r.width-a)/h,y=(r.height-a)/f,v=Math.max(Math.min(b,y)/2,0),x=J3(this.options.radius,v),C=Math.max(x*l,0),D=(x-C)/this._getVisibleDatasetWeightTotal();this.offsetX=g*x,this.offsetY=m*x,i.total=this.calculateTotal(),this.outerRadius=x-D*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-D*u,0),this.updateElements(o,0,o.length,t)}_circumference(t,n){const r=this.options,i=this._cachedMeta,o=this._getCircumference();return n&&r.animation.animateRotate||!this.chart.getDataVisibility(t)||i._parsed[t]===null||i.data[t].hidden?0:this.calculateCircumference(i._parsed[t]*o/Je)}updateElements(t,n,r,i){const o=i==="reset",a=this.chart,s=a.chartArea,u=a.options.animation,c=(s.left+s.right)/2,d=(s.top+s.bottom)/2,h=o&&u.animateScale,f=h?0:this.innerRadius,g=h?0:this.outerRadius,{sharedOptions:m,includeOptions:b}=this._getSharedOptions(n,i);let y=this._getRotation(),v;for(v=0;v<n;++v)y+=this._circumference(v,o);for(v=n;v<n+r;++v){const x=this._circumference(v,o),C=t[v],D={x:c+this.offsetX,y:d+this.offsetY,startAngle:y,endAngle:y+x,circumference:x,outerRadius:g,innerRadius:f};b&&(D.options=m||this.resolveDataElementOptions(v,C.active?"active":i)),y+=x,this.updateElement(C,v,D,i)}}calculateTotal(){const t=this._cachedMeta,n=t.data;let r=0,i;for(i=0;i<n.length;i++){const o=t._parsed[i];o!==null&&!isNaN(o)&&this.chart.getDataVisibility(i)&&!n[i].hidden&&(r+=Math.abs(o))}return r}calculateCircumference(t){const n=this._cachedMeta.total;return n>0&&!isNaN(t)?Je*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],o=Kh(n._parsed[t],r.options.locale);return{label:i[t]||"",value:o}}getMaxBorderWidth(t){let n=0;const r=this.chart;let i,o,a,s,l;if(!t){for(i=0,o=r.data.datasets.length;i<o;++i)if(r.isDatasetVisible(i)){a=r.getDatasetMeta(i),t=a.data,s=a.controller;break}}if(!t)return 0;for(i=0,o=t.length;i<o;++i)l=s.resolveDataElementOptions(i),l.borderAlign!=="inner"&&(n=Math.max(n,l.borderWidth||0,l.hoverBorderWidth||0));return n}getMaxOffset(t){let n=0;for(let r=0,i=t.length;r<i;++r){const o=this.resolveDataElementOptions(r);n=Math.max(n,o.offset||0,o.hoverOffset||0)}return n}_getRingWeightOffset(t){let n=0;for(let r=0;r<t;++r)this.chart.isDatasetVisible(r)&&(n+=this._getRingWeight(r));return n}_getRingWeight(t){return Math.max(we(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}re(Go,"id","doughnut"),re(Go,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),re(Go,"descriptors",{_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),re(Go,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:r,color:i}}=t.legend.options;return n.labels.map((o,a)=>{const l=t.getDatasetMeta(0).controller.getStyle(a);return{text:o,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:i,lineWidth:l.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(a),index:a}})}return[]}},onClick(t,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}}});class hl extends pi{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:r,data:i=[],_dataset:o}=n,a=this.chart._animationsDisabled;let{start:s,count:l}=Ik(n,i,a);this._drawStart=s,this._drawCount=l,_k(n)&&(s=0,l=i.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!o._decimated,r.points=i;const u=this.resolveDatasetElementOptions(t);this.options.showLine||(u.borderWidth=0),u.segment=this.options.segment,this.updateElement(r,void 0,{animated:!a,options:u},t),this.updateElements(i,s,l,t)}updateElements(t,n,r,i){const o=i==="reset",{iScale:a,vScale:s,_stacked:l,_dataset:u}=this._cachedMeta,{sharedOptions:c,includeOptions:d}=this._getSharedOptions(n,i),h=a.axis,f=s.axis,{spanGaps:g,segment:m}=this.options,b=Ha(g)?g:Number.POSITIVE_INFINITY,y=this.chart._animationsDisabled||o||i==="none",v=n+r,x=t.length;let C=n>0&&this.getParsed(n-1);for(let D=0;D<x;++D){const I=t[D],T=y?I:{};if(D<n||D>=v){T.skip=!0;continue}const p=this.getParsed(D),S=je(p[f]),$=T[h]=a.getPixelForValue(p[h],D),_=T[f]=o||S?s.getBasePixel():s.getPixelForValue(l?this.applyStack(s,p,l):p[f],D);T.skip=isNaN($)||isNaN(_)||S,T.stop=D>0&&Math.abs(p[h]-C[h])>b,m&&(T.parsed=p,T.raw=u.data[D]),d&&(T.options=c||this.resolveDataElementOptions(D,I.active?"active":i)),y||this.updateElement(I,D,T,i),C=p}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,r=n.options&&n.options.borderWidth||0,i=t.data||[];if(!i.length)return r;const o=i[0].size(this.resolveDataElementOptions(0)),a=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,o,a)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}re(hl,"id","line"),re(hl,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),re(hl,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});function qr(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class ig{constructor(t){re(this,"options");this.options=t||{}}static override(t){Object.assign(ig.prototype,t)}init(){}formats(){return qr()}parse(){return qr()}format(){return qr()}add(){return qr()}diff(){return qr()}startOf(){return qr()}endOf(){return qr()}}var qM={_date:ig};function QM(e,t,n,r){const{controller:i,data:o,_sorted:a}=e,s=i._cachedMeta.iScale;if(s&&t===s.axis&&t!=="r"&&a&&o.length){const l=s._reversePixels?Ck:di;if(r){if(i._sharedOptions){const u=o[0],c=typeof u.getRange=="function"&&u.getRange(t);if(c){const d=l(o,t,n-c),h=l(o,t,n+c);return{lo:d.lo,hi:h.hi}}}}else return l(o,t,n)}return{lo:0,hi:o.length-1}}function Lu(e,t,n,r,i){const o=e.getSortedVisibleDatasetMetas(),a=n[t];for(let s=0,l=o.length;s<l;++s){const{index:u,data:c}=o[s],{lo:d,hi:h}=QM(o[s],t,a,i);for(let f=d;f<=h;++f){const g=c[f];g.skip||r(g,u,f)}}}function eB(e){const t=e.indexOf("x")!==-1,n=e.indexOf("y")!==-1;return function(r,i){const o=t?Math.abs(r.x-i.x):0,a=n?Math.abs(r.y-i.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(a,2))}}function jc(e,t,n,r,i){const o=[];return!i&&!e.isPointInArea(t)||Lu(e,n,t,function(s,l,u){!i&&!Wa(s,e.chartArea,0)||s.inRange(t.x,t.y,r)&&o.push({element:s,datasetIndex:l,index:u})},!0),o}function tB(e,t,n,r){let i=[];function o(a,s,l){const{startAngle:u,endAngle:c}=a.getProps(["startAngle","endAngle"],r),{angle:d}=Q3(a,{x:t.x,y:t.y});ja(d,u,c)&&i.push({element:a,datasetIndex:s,index:l})}return Lu(e,n,t,o),i}function nB(e,t,n,r,i,o){let a=[];const s=eB(n);let l=Number.POSITIVE_INFINITY;function u(c,d,h){const f=c.inRange(t.x,t.y,i);if(r&&!f)return;const g=c.getCenterPoint(i);if(!(!!o||e.isPointInArea(g))&&!f)return;const b=s(t,g);b<l?(a=[{element:c,datasetIndex:d,index:h}],l=b):b===l&&a.push({element:c,datasetIndex:d,index:h})}return Lu(e,n,t,u),a}function Wc(e,t,n,r,i,o){return!o&&!e.isPointInArea(t)?[]:n==="r"&&!r?tB(e,t,n,i):nB(e,t,n,r,i,o)}function p0(e,t,n,r,i){const o=[],a=n==="x"?"inXRange":"inYRange";let s=!1;return Lu(e,n,t,(l,u,c)=>{l[a](t[n],i)&&(o.push({element:l,datasetIndex:u,index:c}),s=s||l.inRange(t.x,t.y,i))}),r&&!s?[]:o}var rB={modes:{index(e,t,n,r){const i=ni(t,e),o=n.axis||"x",a=n.includeInvisible||!1,s=n.intersect?jc(e,i,o,r,a):Wc(e,i,o,!1,r,a),l=[];return s.length?(e.getSortedVisibleDatasetMetas().forEach(u=>{const c=s[0].index,d=u.data[c];d&&!d.skip&&l.push({element:d,datasetIndex:u.index,index:c})}),l):[]},dataset(e,t,n,r){const i=ni(t,e),o=n.axis||"xy",a=n.includeInvisible||!1;let s=n.intersect?jc(e,i,o,r,a):Wc(e,i,o,!1,r,a);if(s.length>0){const l=s[0].datasetIndex,u=e.getDatasetMeta(l).data;s=[];for(let c=0;c<u.length;++c)s.push({element:u[c],datasetIndex:l,index:c})}return s},point(e,t,n,r){const i=ni(t,e),o=n.axis||"xy",a=n.includeInvisible||!1;return jc(e,i,o,r,a)},nearest(e,t,n,r){const i=ni(t,e),o=n.axis||"xy",a=n.includeInvisible||!1;return Wc(e,i,o,n.intersect,r,a)},x(e,t,n,r){const i=ni(t,e);return p0(e,i,"x",n.intersect,r)},y(e,t,n,r){const i=ni(t,e);return p0(e,i,"y",n.intersect,r)}}};const xC=["left","top","right","bottom"];function To(e,t){return e.filter(n=>n.pos===t)}function b0(e,t){return e.filter(n=>xC.indexOf(n.pos)===-1&&n.box.axis===t)}function ko(e,t){return e.sort((n,r)=>{const i=t?r:n,o=t?n:r;return i.weight===o.weight?i.index-o.index:i.weight-o.weight})}function iB(e){const t=[];let n,r,i,o,a,s;for(n=0,r=(e||[]).length;n<r;++n)i=e[n],{position:o,options:{stack:a,stackWeight:s=1}}=i,t.push({index:n,box:i,pos:o,horizontal:i.isHorizontal(),weight:i.weight,stack:a&&o+a,stackWeight:s});return t}function oB(e){const t={};for(const n of e){const{stack:r,pos:i,stackWeight:o}=n;if(!r||!xC.includes(i))continue;const a=t[r]||(t[r]={count:0,placed:0,weight:0,size:0});a.count++,a.weight+=o}return t}function aB(e,t){const n=oB(e),{vBoxMaxWidth:r,hBoxMaxHeight:i}=t;let o,a,s;for(o=0,a=e.length;o<a;++o){s=e[o];const{fullSize:l}=s.box,u=n[s.stack],c=u&&s.stackWeight/u.weight;s.horizontal?(s.width=c?c*r:l&&t.availableWidth,s.height=i):(s.width=r,s.height=c?c*i:l&&t.availableHeight)}return n}function sB(e){const t=iB(e),n=ko(t.filter(u=>u.box.fullSize),!0),r=ko(To(t,"left"),!0),i=ko(To(t,"right")),o=ko(To(t,"top"),!0),a=ko(To(t,"bottom")),s=b0(t,"x"),l=b0(t,"y");return{fullSize:n,leftAndTop:r.concat(o),rightAndBottom:i.concat(l).concat(a).concat(s),chartArea:To(t,"chartArea"),vertical:r.concat(i).concat(l),horizontal:o.concat(a).concat(s)}}function v0(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function CC(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function lB(e,t,n,r){const{pos:i,box:o}=n,a=e.maxPadding;if(!Ee(i)){n.size&&(e[i]-=n.size);const d=r[n.stack]||{size:0,count:1};d.size=Math.max(d.size,n.horizontal?o.height:o.width),n.size=d.size/d.count,e[i]+=n.size}o.getPadding&&CC(a,o.getPadding());const s=Math.max(0,t.outerWidth-v0(a,e,"left","right")),l=Math.max(0,t.outerHeight-v0(a,e,"top","bottom")),u=s!==e.w,c=l!==e.h;return e.w=s,e.h=l,n.horizontal?{same:u,other:c}:{same:c,other:u}}function uB(e){const t=e.maxPadding;function n(r){const i=Math.max(t[r]-e[r],0);return e[r]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function cB(e,t){const n=t.maxPadding;function r(i){const o={left:0,top:0,right:0,bottom:0};return i.forEach(a=>{o[a]=Math.max(t[a],n[a])}),o}return r(e?["left","right"]:["top","bottom"])}function Zo(e,t,n,r){const i=[];let o,a,s,l,u,c;for(o=0,a=e.length,u=0;o<a;++o){s=e[o],l=s.box,l.update(s.width||t.w,s.height||t.h,cB(s.horizontal,t));const{same:d,other:h}=lB(t,n,s,r);u|=d&&i.length,c=c||h,l.fullSize||i.push(s)}return u&&Zo(i,t,n,r)||c}function Ws(e,t,n,r,i){e.top=n,e.left=t,e.right=t+r,e.bottom=n+i,e.width=r,e.height=i}function y0(e,t,n,r){const i=n.padding;let{x:o,y:a}=t;for(const s of e){const l=s.box,u=r[s.stack]||{placed:0,weight:1},c=s.stackWeight/u.weight||1;if(s.horizontal){const d=t.w*c,h=u.size||l.height;La(u.start)&&(a=u.start),l.fullSize?Ws(l,i.left,a,n.outerWidth-i.right-i.left,h):Ws(l,t.left+u.placed,a,d,h),u.start=a,u.placed+=d,a=l.bottom}else{const d=t.h*c,h=u.size||l.width;La(u.start)&&(o=u.start),l.fullSize?Ws(l,o,i.top,h,n.outerHeight-i.bottom-i.top):Ws(l,o,t.top+u.placed,h,d),u.start=o,u.placed+=d,o=l.right}}t.x=o,t.y=a}var dn={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(n){t.draw(n)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;n!==-1&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,r){if(!e)return;const i=fn(e.options.layout.padding),o=Math.max(t-i.width,0),a=Math.max(n-i.height,0),s=sB(e.boxes),l=s.vertical,u=s.horizontal;Ne(e.boxes,m=>{typeof m.beforeLayout=="function"&&m.beforeLayout()});const c=l.reduce((m,b)=>b.box.options&&b.box.options.display===!1?m:m+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:o,availableHeight:a,vBoxMaxWidth:o/2/c,hBoxMaxHeight:a/2}),h=Object.assign({},i);CC(h,fn(r));const f=Object.assign({maxPadding:h,w:o,h:a,x:i.left,y:i.top},i),g=aB(l.concat(u),d);Zo(s.fullSize,f,d,g),Zo(l,f,d,g),Zo(u,f,d,g)&&Zo(l,f,d,g),uB(f),y0(s.leftAndTop,f,d,g),f.x+=f.w,f.y+=f.h,y0(s.rightAndBottom,f,d,g),e.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},Ne(s.chartArea,m=>{const b=m.box;Object.assign(b,e.chartArea),b.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})})}};class wC{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,i){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,i?Math.floor(n/i):r)}}isAttached(t){return!0}updateConfig(t){}}class dB extends wC{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const gl="$chartjs",fB={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},x0=e=>e===null||e==="";function hB(e,t){const n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e[gl]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",x0(i)){const o=n0(e,"width");o!==void 0&&(e.width=o)}if(x0(r))if(e.style.height==="")e.height=e.width/(t||2);else{const o=n0(e,"height");o!==void 0&&(e.height=o)}return e}const DC=pM?{passive:!0}:!1;function gB(e,t,n){e&&e.addEventListener(t,n,DC)}function mB(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,DC)}function pB(e,t){const n=fB[e.type]||e.type,{x:r,y:i}=ni(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:i!==void 0?i:null}}function iu(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function bB(e,t,n){const r=e.canvas,i=new MutationObserver(o=>{let a=!1;for(const s of o)a=a||iu(s.addedNodes,r),a=a&&!iu(s.removedNodes,r);a&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function vB(e,t,n){const r=e.canvas,i=new MutationObserver(o=>{let a=!1;for(const s of o)a=a||iu(s.removedNodes,r),a=a&&!iu(s.addedNodes,r);a&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const Ga=new Map;let C0=0;function SC(){const e=window.devicePixelRatio;e!==C0&&(C0=e,Ga.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function yB(e,t){Ga.size||window.addEventListener("resize",SC),Ga.set(e,t)}function xB(e){Ga.delete(e),Ga.size||window.removeEventListener("resize",SC)}function CB(e,t,n){const r=e.canvas,i=r&&rg(r);if(!i)return;const o=rC((s,l)=>{const u=i.clientWidth;n(s,l),u<i.clientWidth&&n()},window),a=new ResizeObserver(s=>{const l=s[0],u=l.contentRect.width,c=l.contentRect.height;u===0&&c===0||o(u,c)});return a.observe(i),yB(e,o),a}function zc(e,t,n){n&&n.disconnect(),t==="resize"&&xB(e)}function wB(e,t,n){const r=e.canvas,i=rC(o=>{e.ctx!==null&&n(pB(o,e))},e);return gB(r,t,i),i}class DB extends wC{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(hB(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[gl])return!1;const r=n[gl].initial;["height","width"].forEach(o=>{const a=r[o];je(a)?n.removeAttribute(o):n.setAttribute(o,a)});const i=r.style||{};return Object.keys(i).forEach(o=>{n.style[o]=i[o]}),n.width=n.width,delete n[gl],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const i=t.$proxies||(t.$proxies={}),a={attach:bB,detach:vB,resize:CB}[n]||wB;i[n]=a(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),i=r[n];if(!i)return;({attach:zc,detach:zc,resize:zc}[n]||mB)(t,n,i),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,i){return mM(t,n,r,i)}isAttached(t){const n=t&&rg(t);return!!(n&&n.isConnected)}}function SB(e){return!ng()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?dB:DB}var Ks;let yr=(Ks=class{constructor(){re(this,"x");re(this,"y");re(this,"active",!1);re(this,"options");re(this,"$animations")}tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return Ha(this.x)&&Ha(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const i={};return t.forEach(o=>{i[o]=r[o]&&r[o].active()?r[o]._to:this[o]}),i}},re(Ks,"defaults",{}),re(Ks,"defaultRoutes"),Ks);function EB(e,t){const n=e.options.ticks,r=IB(e),i=Math.min(n.maxTicksLimit||r,r),o=n.major.enabled?$B(t):[],a=o.length,s=o[0],l=o[a-1],u=[];if(a>i)return RB(t,u,o,a/i),u;const c=_B(o,t,i);if(a>0){let d,h;const f=a>1?Math.round((l-s)/(a-1)):null;for(zs(t,u,c,je(f)?0:s-f,s),d=0,h=a-1;d<h;d++)zs(t,u,c,o[d],o[d+1]);return zs(t,u,c,l,je(f)?t.length:l+f),u}return zs(t,u,c),u}function IB(e){const t=e.options.offset,n=e._tickSize(),r=e._length/n+(t?0:1),i=e._maxLength/n;return Math.floor(Math.min(r,i))}function _B(e,t,n){const r=AB(e),i=t.length/n;if(!r)return Math.max(i,1);const o=mk(r);for(let a=0,s=o.length-1;a<s;a++){const l=o[a];if(l>i)return l}return Math.max(i,1)}function $B(e){const t=[];let n,r;for(n=0,r=e.length;n<r;n++)e[n].major&&t.push(n);return t}function RB(e,t,n,r){let i=0,o=n[0],a;for(r=Math.ceil(r),a=0;a<e.length;a++)a===o&&(t.push(e[a]),i++,o=n[i*r])}function zs(e,t,n,r,i){const o=we(r,0),a=Math.min(we(i,e.length),e.length);let s=0,l,u,c;for(n=Math.ceil(n),i&&(l=i-r,n=l/Math.floor(l/n)),c=o;c<0;)s++,c=Math.round(o+s*n);for(u=Math.max(o,0);u<a;u++)u===c&&(t.push(e[u]),s++,c=Math.round(o+s*n))}function AB(e){const t=e.length;let n,r;if(t<2)return!1;for(r=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==r)return!1;return r}const FB=e=>e==="left"?"right":e==="right"?"left":e,w0=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,D0=(e,t)=>Math.min(t||e,e);function S0(e,t){const n=[],r=e.length/t,i=e.length;let o=0;for(;o<i;o+=r)n.push(e[Math.floor(o)]);return n}function PB(e,t,n){const r=e.ticks.length,i=Math.min(t,r-1),o=e._startPixel,a=e._endPixel,s=1e-6;let l=e.getPixelForTick(i),u;if(!(n&&(r===1?u=Math.max(l-o,a-l):t===0?u=(e.getPixelForTick(1)-l)/2:u=(l-e.getPixelForTick(i-1))/2,l+=i<t?u:-u,l<o-s||l>a+s)))return l}function TB(e,t){Ne(e,n=>{const r=n.gc,i=r.length/2;let o;if(i>t){for(o=0;o<i;++o)delete n.data[r[o]];r.splice(0,i)}})}function Mo(e){return e.drawTicks?e.tickLength:0}function E0(e,t){if(!e.display)return 0;const n=Et(e.font,t),r=fn(e.padding);return(ot(e.text)?e.text.length:1)*n.lineHeight+r.height}function kB(e,t){return Ti(e,{scale:t,type:"scale"})}function MB(e,t,n){return Ti(e,{tick:n,index:t,type:"tick"})}function BB(e,t,n){let r=Uh(e);return(n&&t!=="right"||!n&&t==="right")&&(r=FB(r)),r}function OB(e,t,n,r){const{top:i,left:o,bottom:a,right:s,chart:l}=e,{chartArea:u,scales:c}=l;let d=0,h,f,g;const m=a-i,b=s-o;if(e.isHorizontal()){if(f=xt(r,o,s),Ee(n)){const y=Object.keys(n)[0],v=n[y];g=c[y].getPixelForValue(v)+m-t}else n==="center"?g=(u.bottom+u.top)/2+m-t:g=w0(e,n,t);h=s-o}else{if(Ee(n)){const y=Object.keys(n)[0],v=n[y];f=c[y].getPixelForValue(v)-b+t}else n==="center"?f=(u.left+u.right)/2-b+t:f=w0(e,n,t);g=xt(r,a,i),d=n==="left"?-lt:lt}return{titleX:f,titleY:g,maxWidth:h,rotation:d}}class _o extends yr{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,n){return t}getUserBounds(){let{_userMin:t,_userMax:n,_suggestedMin:r,_suggestedMax:i}=this;return t=Rn(t,Number.POSITIVE_INFINITY),n=Rn(n,Number.NEGATIVE_INFINITY),r=Rn(r,Number.POSITIVE_INFINITY),i=Rn(i,Number.NEGATIVE_INFINITY),{min:Rn(t,r),max:Rn(n,i),minDefined:It(t),maxDefined:It(n)}}getMinMax(t){let{min:n,max:r,minDefined:i,maxDefined:o}=this.getUserBounds(),a;if(i&&o)return{min:n,max:r};const s=this.getMatchingVisibleMetas();for(let l=0,u=s.length;l<u;++l)a=s[l].controller.getMinMax(this,t),i||(n=Math.min(n,a.min)),o||(r=Math.max(r,a.max));return n=o&&n>r?r:n,r=i&&n>r?n:r,{min:Rn(n,Rn(r,n)),max:Rn(r,Rn(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){We(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:i,grace:o,ticks:a}=this.options,s=a.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=Xk(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=s<this.ticks.length;this._convertTicksToLabels(l?S0(this.ticks,s):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),a.display&&(a.autoSkip||a.source==="auto")&&(this.ticks=EB(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,n,r;this.isHorizontal()?(n=this.left,r=this.right):(n=this.top,r=this.bottom,t=!t),this._startPixel=n,this._endPixel=r,this._reversePixels=t,this._length=r-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){We(this.options.afterUpdate,[this])}beforeSetDimensions(){We(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){We(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),We(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){We(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const n=this.options.ticks;let r,i,o;for(r=0,i=t.length;r<i;r++)o=t[r],o.label=We(n.callback,[o.value,r,t],this)}afterTickToLabelConversion(){We(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){We(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,n=t.ticks,r=D0(this.ticks.length,t.ticks.maxTicksLimit),i=n.minRotation||0,o=n.maxRotation;let a=i,s,l,u;if(!this._isVisible()||!n.display||i>=o||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const c=this._getLabelSizes(),d=c.widest.width,h=c.highest.height,f=St(this.chart.width-d,0,this.maxWidth);s=t.offset?this.maxWidth/r:f/(r-1),d+6>s&&(s=f/(r-(t.offset?.5:1)),l=this.maxHeight-Mo(t.grid)-n.padding-E0(t.title,this.chart.options.font),u=Math.sqrt(d*d+h*h),a=vk(Math.min(Math.asin(St((c.highest.height+6)/s,-1,1)),Math.asin(St(l/u,-1,1))-Math.asin(St(h/u,-1,1)))),a=Math.max(i,Math.min(o,a))),this.labelRotation=a}afterCalculateLabelRotation(){We(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){We(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:o}}=this,a=this._isVisible(),s=this.isHorizontal();if(a){const l=E0(i,n.options.font);if(s?(t.width=this.maxWidth,t.height=Mo(o)+l):(t.height=this.maxHeight,t.width=Mo(o)+l),r.display&&this.ticks.length){const{first:u,last:c,widest:d,highest:h}=this._getLabelSizes(),f=r.padding*2,g=cr(this.labelRotation),m=Math.cos(g),b=Math.sin(g);if(s){const y=r.mirror?0:b*d.width+m*h.height;t.height=Math.min(this.maxHeight,t.height+y+f)}else{const y=r.mirror?0:m*d.width+b*h.height;t.width=Math.min(this.maxWidth,t.width+y+f)}this._calculatePadding(u,c,b,m)}}this._handleMargins(),s?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,r,i){const{ticks:{align:o,padding:a},position:s}=this.options,l=this.labelRotation!==0,u=s!=="top"&&this.axis==="x";if(this.isHorizontal()){const c=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,f=0;l?u?(h=i*t.width,f=r*n.height):(h=r*t.height,f=i*n.width):o==="start"?f=n.width:o==="end"?h=t.width:o!=="inner"&&(h=t.width/2,f=n.width/2),this.paddingLeft=Math.max((h-c+a)*this.width/(this.width-c),0),this.paddingRight=Math.max((f-d+a)*this.width/(this.width-d),0)}else{let c=n.height/2,d=t.height/2;o==="start"?(c=0,d=t.height):o==="end"&&(c=n.height,d=0),this.paddingTop=c+a,this.paddingBottom=d+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){We(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,r;for(n=0,r=t.length;n<r;n++)je(t[n].label)&&(t.splice(n,1),r--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const n=this.options.ticks.sampleSize;let r=this.ticks;n<r.length&&(r=S0(r,n)),this._labelSizes=t=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,n,r){const{ctx:i,_longestTextCache:o}=this,a=[],s=[],l=Math.floor(n/D0(n,r));let u=0,c=0,d,h,f,g,m,b,y,v,x,C,D;for(d=0;d<n;d+=l){if(g=t[d].label,m=this._resolveTickFontOptions(d),i.font=b=m.string,y=o[b]=o[b]||{data:{},gc:[]},v=m.lineHeight,x=C=0,!je(g)&&!ot(g))x=Kp(i,y.data,y.gc,x,g),C=v;else if(ot(g))for(h=0,f=g.length;h<f;++h)D=g[h],!je(D)&&!ot(D)&&(x=Kp(i,y.data,y.gc,x,D),C+=v);a.push(x),s.push(C),u=Math.max(x,u),c=Math.max(C,c)}TB(o,n);const I=a.indexOf(u),T=s.indexOf(c),p=S=>({width:a[S]||0,height:s[S]||0});return{first:p(0),last:p(n-1),widest:p(I),highest:p(T),widths:a,heights:s}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return xk(this._alignToPixels?Kr(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&t<n.length){const r=n[t];return r.$context||(r.$context=MB(this.getContext(),t,r))}return this.$context||(this.$context=kB(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=cr(this.labelRotation),r=Math.abs(Math.cos(n)),i=Math.abs(Math.sin(n)),o=this._getLabelSizes(),a=t.autoSkipPadding||0,s=o?o.widest.width+a:0,l=o?o.highest.height+a:0;return this.isHorizontal()?l*r>s*i?s/r:l/i:l*i<s*r?l/r:s/i}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const n=this.axis,r=this.chart,i=this.options,{grid:o,position:a,border:s}=i,l=o.offset,u=this.isHorizontal(),d=this.ticks.length+(l?1:0),h=Mo(o),f=[],g=s.setContext(this.getContext()),m=g.display?g.width:0,b=m/2,y=function(P){return Kr(r,P,m)};let v,x,C,D,I,T,p,S,$,_,A,k;if(a==="top")v=y(this.bottom),T=this.bottom-h,S=v-b,_=y(t.top)+b,k=t.bottom;else if(a==="bottom")v=y(this.top),_=t.top,k=y(t.bottom)-b,T=v+b,S=this.top+h;else if(a==="left")v=y(this.right),I=this.right-h,p=v-b,$=y(t.left)+b,A=t.right;else if(a==="right")v=y(this.left),$=t.left,A=y(t.right)-b,I=v+b,p=this.left+h;else if(n==="x"){if(a==="center")v=y((t.top+t.bottom)/2+.5);else if(Ee(a)){const P=Object.keys(a)[0],F=a[P];v=y(this.chart.scales[P].getPixelForValue(F))}_=t.top,k=t.bottom,T=v+b,S=T+h}else if(n==="y"){if(a==="center")v=y((t.left+t.right)/2);else if(Ee(a)){const P=Object.keys(a)[0],F=a[P];v=y(this.chart.scales[P].getPixelForValue(F))}I=v-b,p=I-h,$=t.left,A=t.right}const R=we(i.ticks.maxTicksLimit,d),M=Math.max(1,Math.ceil(d/R));for(x=0;x<d;x+=M){const P=this.getContext(x),F=o.setContext(P),B=s.setContext(P),N=F.lineWidth,O=F.color,L=B.dash||[],W=B.dashOffset,Z=F.tickWidth,j=F.tickColor,H=F.tickBorderDash||[],V=F.tickBorderDashOffset;C=PB(this,x,l),C!==void 0&&(D=Kr(r,C,N),u?I=p=$=A=D:T=S=_=k=D,f.push({tx1:I,ty1:T,tx2:p,ty2:S,x1:$,y1:_,x2:A,y2:k,width:N,color:O,borderDash:L,borderDashOffset:W,tickWidth:Z,tickColor:j,tickBorderDash:H,tickBorderDashOffset:V}))}return this._ticksLength=d,this._borderValue=v,f}_computeLabelItems(t){const n=this.axis,r=this.options,{position:i,ticks:o}=r,a=this.isHorizontal(),s=this.ticks,{align:l,crossAlign:u,padding:c,mirror:d}=o,h=Mo(r.grid),f=h+c,g=d?-c:f,m=-cr(this.labelRotation),b=[];let y,v,x,C,D,I,T,p,S,$,_,A,k="middle";if(i==="top")I=this.bottom-g,T=this._getXAxisLabelAlignment();else if(i==="bottom")I=this.top+g,T=this._getXAxisLabelAlignment();else if(i==="left"){const M=this._getYAxisLabelAlignment(h);T=M.textAlign,D=M.x}else if(i==="right"){const M=this._getYAxisLabelAlignment(h);T=M.textAlign,D=M.x}else if(n==="x"){if(i==="center")I=(t.top+t.bottom)/2+f;else if(Ee(i)){const M=Object.keys(i)[0],P=i[M];I=this.chart.scales[M].getPixelForValue(P)+f}T=this._getXAxisLabelAlignment()}else if(n==="y"){if(i==="center")D=(t.left+t.right)/2-f;else if(Ee(i)){const M=Object.keys(i)[0],P=i[M];D=this.chart.scales[M].getPixelForValue(P)}T=this._getYAxisLabelAlignment(h).textAlign}n==="y"&&(l==="start"?k="top":l==="end"&&(k="bottom"));const R=this._getLabelSizes();for(y=0,v=s.length;y<v;++y){x=s[y],C=x.label;const M=o.setContext(this.getContext(y));p=this.getPixelForTick(y)+o.labelOffset,S=this._resolveTickFontOptions(y),$=S.lineHeight,_=ot(C)?C.length:1;const P=_/2,F=M.color,B=M.textStrokeColor,N=M.textStrokeWidth;let O=T;a?(D=p,T==="inner"&&(y===v-1?O=this.options.reverse?"left":"right":y===0?O=this.options.reverse?"right":"left":O="center"),i==="top"?u==="near"||m!==0?A=-_*$+$/2:u==="center"?A=-R.highest.height/2-P*$+$:A=-R.highest.height+$/2:u==="near"||m!==0?A=$/2:u==="center"?A=R.highest.height/2-P*$:A=R.highest.height-_*$,d&&(A*=-1),m!==0&&!M.showLabelBackdrop&&(D+=$/2*Math.sin(m))):(I=p,A=(1-_)*$/2);let L;if(M.showLabelBackdrop){const W=fn(M.backdropPadding),Z=R.heights[y],j=R.widths[y];let H=A-W.top,V=0-W.left;switch(k){case"middle":H-=Z/2;break;case"bottom":H-=Z;break}switch(T){case"center":V-=j/2;break;case"right":V-=j;break;case"inner":y===v-1?V-=j:y>0&&(V-=j/2);break}L={left:V,top:H,width:j+W.width,height:Z+W.height,color:M.backdropColor}}b.push({label:C,font:S,textOffset:A,options:{rotation:m,color:F,strokeColor:B,strokeWidth:N,textAlign:O,textBaseline:k,translation:[D,I],backdrop:L}})}return b}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-cr(this.labelRotation))return t==="top"?"left":"right";let i="center";return n.align==="start"?i="left":n.align==="end"?i="right":n.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:r,mirror:i,padding:o}}=this.options,a=this._getLabelSizes(),s=t+o,l=a.widest.width;let u,c;return n==="left"?i?(c=this.right+o,r==="near"?u="left":r==="center"?(u="center",c+=l/2):(u="right",c+=l)):(c=this.right-s,r==="near"?u="right":r==="center"?(u="center",c-=l/2):(u="left",c=this.left)):n==="right"?i?(c=this.left+o,r==="near"?u="right":r==="center"?(u="center",c-=l/2):(u="left",c-=l)):(c=this.left+s,r==="near"?u="left":r==="center"?(u="center",c+=l/2):(u="right",c=this.right)):u="right",{textAlign:u,x:c}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:r,top:i,width:o,height:a}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(r,i,o,a),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const i=this.ticks.findIndex(o=>o.value===t);return i>=0?n.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,a;const s=(l,u,c)=>{!c.width||!c.color||(r.save(),r.lineWidth=c.width,r.strokeStyle=c.color,r.setLineDash(c.borderDash||[]),r.lineDashOffset=c.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(u.x,u.y),r.stroke(),r.restore())};if(n.display)for(o=0,a=i.length;o<a;++o){const l=i[o];n.drawOnChartArea&&s({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&s({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:n,options:{border:r,grid:i}}=this,o=r.setContext(this.getContext()),a=r.display?o.width:0;if(!a)return;const s=i.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let u,c,d,h;this.isHorizontal()?(u=Kr(t,this.left,a)-a/2,c=Kr(t,this.right,s)+s/2,d=h=l):(d=Kr(t,this.top,a)-a/2,h=Kr(t,this.bottom,s)+s/2,u=c=l),n.save(),n.lineWidth=o.width,n.strokeStyle=o.color,n.beginPath(),n.moveTo(u,d),n.lineTo(c,h),n.stroke(),n.restore()}drawLabels(t){if(!this.options.ticks.display)return;const r=this.ctx,i=this._computeLabelArea();i&&Ou(r,i);const o=this.getLabelItems(t);for(const a of o){const s=a.options,l=a.font,u=a.label,c=a.textOffset;za(r,u,0,c,l,s)}i&&Nu(r)}drawTitle(){const{ctx:t,options:{position:n,title:r,reverse:i}}=this;if(!r.display)return;const o=Et(r.font),a=fn(r.padding),s=r.align;let l=o.lineHeight/2;n==="bottom"||n==="center"||Ee(n)?(l+=a.bottom,ot(r.text)&&(l+=o.lineHeight*(r.text.length-1))):l+=a.top;const{titleX:u,titleY:c,maxWidth:d,rotation:h}=OB(this,l,n,s);za(t,r.text,0,0,o,{color:r.color,maxWidth:d,rotation:h,textAlign:BB(s,n,i),textBaseline:"middle",translation:[u,c]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,n=t.ticks&&t.ticks.z||0,r=we(t.grid&&t.grid.z,-1),i=we(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==_o.prototype.draw?[{z:n,draw:o=>{this.draw(o)}}]:[{z:r,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let o,a;for(o=0,a=n.length;o<a;++o){const s=n[o];s[r]===this.id&&(!t||s.type===t)&&i.push(s)}return i}_resolveTickFontOptions(t){const n=this.options.ticks.setContext(this.getContext(t));return Et(n.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Gs{constructor(t,n,r){this.type=t,this.scope=n,this.override=r,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const n=Object.getPrototypeOf(t);let r;LB(n)&&(r=this.register(n));const i=this.items,o=t.id,a=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in i||(i[o]=t,NB(t,a,r),this.override&&nt.override(t.id,t.overrides)),a}get(t){return this.items[t]}unregister(t){const n=this.items,r=t.id,i=this.scope;r in n&&delete n[r],i&&r in nt[i]&&(delete nt[i][r],this.override&&delete $i[r])}}function NB(e,t,n){const r=Va(Object.create(null),[n?nt.get(n):{},nt.get(t),e.defaults]);nt.set(t,r),e.defaultRoutes&&VB(t,e.defaultRoutes),e.descriptors&&nt.describe(t,e.descriptors)}function VB(e,t){Object.keys(t).forEach(n=>{const r=n.split("."),i=r.pop(),o=[e].concat(r).join("."),a=t[n].split("."),s=a.pop(),l=a.join(".");nt.route(o,i,l,s)})}function LB(e){return"id"in e&&"defaults"in e}class HB{constructor(){this.controllers=new Gs(pi,"datasets",!0),this.elements=new Gs(yr,"elements"),this.plugins=new Gs(Object,"plugins"),this.scales=new Gs(_o,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,r){[...n].forEach(i=>{const o=r||this._getRegistryForType(i);r||o.isForType(i)||o===this.plugins&&i.id?this._exec(t,o,i):Ne(i,a=>{const s=r||this._getRegistryForType(a);this._exec(t,s,a)})})}_exec(t,n,r){const i=Xh(t);We(r["before"+i],[],r),n[t](r),We(r["after"+i],[],r)}_getRegistryForType(t){for(let n=0;n<this._typedRegistries.length;n++){const r=this._typedRegistries[n];if(r.isForType(t))return r}return this.plugins}_get(t,n,r){const i=n.get(t);if(i===void 0)throw new Error('"'+t+'" is not a registered '+r+".");return i}}var Pn=new HB;class jB{constructor(){this._init=[]}notify(t,n,r,i){n==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const o=i?this._descriptors(t).filter(i):this._descriptors(t),a=this._notify(o,t,n,r);return n==="afterDestroy"&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall")),a}_notify(t,n,r,i){i=i||{};for(const o of t){const a=o.plugin,s=a[r],l=[n,i,o.options];if(We(s,l,a)===!1&&i.cancelable)return!1}return!0}invalidate(){je(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),n}_createDescriptors(t,n){const r=t&&t.config,i=we(r.options&&r.options.plugins,{}),o=WB(r);return i===!1&&!n?[]:GB(t,o,i,n)}_notifyStateChanges(t){const n=this._oldCache||[],r=this._cache,i=(o,a)=>o.filter(s=>!a.some(l=>s.plugin.id===l.plugin.id));this._notify(i(n,r),t,"stop"),this._notify(i(r,n),t,"start")}}function WB(e){const t={},n=[],r=Object.keys(Pn.plugins.items);for(let o=0;o<r.length;o++)n.push(Pn.getPlugin(r[o]));const i=e.plugins||[];for(let o=0;o<i.length;o++){const a=i[o];n.indexOf(a)===-1&&(n.push(a),t[a.id]=!0)}return{plugins:n,localIds:t}}function zB(e,t){return!t&&e===!1?null:e===!0?{}:e}function GB(e,{plugins:t,localIds:n},r,i){const o=[],a=e.getContext();for(const s of t){const l=s.id,u=zB(r[l],i);u!==null&&o.push({plugin:s,options:ZB(e.config,{plugin:s,local:n[l]},u,a)})}return o}function ZB(e,{plugin:t,local:n},r,i){const o=e.pluginScopeKeys(t),a=e.getOptionScopes(r,o);return n&&t.defaults&&a.push(t.defaults),e.createResolver(a,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function lf(e,t){const n=nt.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function XB(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function YB(e,t){return e===t?"_index_":"_value_"}function I0(e){if(e==="x"||e==="y"||e==="r")return e}function UB(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function uf(e,...t){if(I0(e))return e;for(const n of t){const r=n.axis||UB(n.position)||e.length>1&&I0(e[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function _0(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function JB(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(r=>r.xAxisID===e||r.yAxisID===e);if(n.length)return _0(e,"x",n[0])||_0(e,"y",n[0])}return{}}function KB(e,t){const n=$i[e.type]||{scales:{}},r=t.scales||{},i=lf(e.type,t),o=Object.create(null);return Object.keys(r).forEach(a=>{const s=r[a];if(!Ee(s))return console.error(`Invalid scale configuration for scale: ${a}`);if(s._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);const l=uf(a,s,JB(a,e),nt.scales[s.type]),u=YB(l,i),c=n.scales||{};o[a]=na(Object.create(null),[{axis:l},s,c[l],c[u]])}),e.data.datasets.forEach(a=>{const s=a.type||e.type,l=a.indexAxis||lf(s,t),c=($i[s]||{}).scales||{};Object.keys(c).forEach(d=>{const h=XB(d,l),f=a[h+"AxisID"]||h;o[f]=o[f]||Object.create(null),na(o[f],[{axis:h},r[f],c[d]])})}),Object.keys(o).forEach(a=>{const s=o[a];na(s,[nt.scales[s.type],nt.scale])}),o}function EC(e){const t=e.options||(e.options={});t.plugins=we(t.plugins,{}),t.scales=KB(e,t)}function IC(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function qB(e){return e=e||{},e.data=IC(e.data),EC(e),e}const $0=new Map,_C=new Set;function Zs(e,t){let n=$0.get(e);return n||(n=t(),$0.set(e,n),_C.add(n)),n}const Bo=(e,t,n)=>{const r=_i(t,n);r!==void 0&&e.add(r)};class QB{constructor(t){this._config=qB(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=IC(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),EC(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Zs(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return Zs(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return Zs(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return Zs(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const r=this._scopeCache;let i=r.get(t);return(!i||n)&&(i=new Map,r.set(t,i)),i}getOptionScopes(t,n,r){const{options:i,type:o}=this,a=this._cachedScopes(t,r),s=a.get(n);if(s)return s;const l=new Set;n.forEach(c=>{t&&(l.add(t),c.forEach(d=>Bo(l,t,d))),c.forEach(d=>Bo(l,i,d)),c.forEach(d=>Bo(l,$i[o]||{},d)),c.forEach(d=>Bo(l,nt,d)),c.forEach(d=>Bo(l,af,d))});const u=Array.from(l);return u.length===0&&u.push(Object.create(null)),_C.has(n)&&a.set(n,u),u}chartOptionScopes(){const{options:t,type:n}=this;return[t,$i[n]||{},nt.datasets[n]||{},{type:n},nt,af]}resolveNamedOptions(t,n,r,i=[""]){const o={$shared:!0},{resolver:a,subPrefixes:s}=R0(this._resolverCache,t,i);let l=a;if(t8(a,n)){o.$shared=!1,r=jr(r)?r():r;const u=this.createResolver(t,r,s);l=vo(a,r,u)}for(const u of n)o[u]=l[u];return o}createResolver(t,n,r=[""],i){const{resolver:o}=R0(this._resolverCache,t,r);return Ee(n)?vo(o,n,void 0,i):o}}function R0(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const i=n.join();let o=r.get(i);return o||(o={resolver:Qh(t,n),subPrefixes:n.filter(s=>!s.toLowerCase().includes("hover"))},r.set(i,o)),o}const e8=e=>Ee(e)&&Object.getOwnPropertyNames(e).some(t=>jr(e[t]));function t8(e,t){const{isScriptable:n,isIndexable:r}=sC(e);for(const i of t){const o=n(i),a=r(i),s=(a||o)&&e[i];if(o&&(jr(s)||e8(s))||a&&ot(s))return!0}return!1}var n8="4.4.3";const r8=["top","bottom","left","right","chartArea"];function A0(e,t){return e==="top"||e==="bottom"||r8.indexOf(e)===-1&&t==="x"}function F0(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function P0(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),We(n&&n.onComplete,[e],t)}function i8(e){const t=e.chart,n=t.options.animation;We(n&&n.onProgress,[e],t)}function $C(e){return ng()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const ml={},T0=e=>{const t=$C(e);return Object.values(ml).filter(n=>n.canvas===t).pop()};function o8(e,t,n){const r=Object.keys(e);for(const i of r){const o=+i;if(o>=t){const a=e[i];delete e[i],(n>0||o>t)&&(e[o+n]=a)}}}function a8(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}function Xs(e,t,n){return e.options.clip?e[n]:t[n]}function s8(e,t){const{xScale:n,yScale:r}=e;return n&&r?{left:Xs(n,t,"left"),right:Xs(n,t,"right"),top:Xs(r,t,"top"),bottom:Xs(r,t,"bottom")}:t}var Sr;let ki=(Sr=class{static register(...t){Pn.add(...t),k0()}static unregister(...t){Pn.remove(...t),k0()}constructor(t,n){const r=this.config=new QB(n),i=$C(t),o=T0(i);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const a=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||SB(i)),this.platform.updateConfig(r);const s=this.platform.acquireContext(i,a.aspectRatio),l=s&&s.canvas,u=l&&l.height,c=l&&l.width;if(this.id=ak(),this.ctx=s,this.canvas=l,this.width=c,this.height=u,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new jB,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Sk(d=>this.update(d),a.resizeDelay||0),this._dataChanges=[],ml[this.id]=this,!s||!l){console.error("Failed to create chart: can't acquire context from the given item");return}er.listen(this,"complete",P0),er.listen(this,"progress",i8),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:i,_aspectRatio:o}=this;return je(t)?n&&o?o:i?r/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Pn}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():t0(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return qp(this.canvas,this.ctx),this}stop(){return er.stop(this),this}resize(t,n){er.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,i=this.canvas,o=r.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(i,t,n,o),s=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,t0(this,s,!0)&&(this.notifyPlugins("resize",{size:a}),We(r.onResize,[this,a],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};Ne(n,(r,i)=>{r.id=i})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,i=Object.keys(r).reduce((a,s)=>(a[s]=!1,a),{});let o=[];n&&(o=o.concat(Object.keys(n).map(a=>{const s=n[a],l=uf(a,s),u=l==="r",c=l==="x";return{options:s,dposition:u?"chartArea":c?"bottom":"left",dtype:u?"radialLinear":c?"category":"linear"}}))),Ne(o,a=>{const s=a.options,l=s.id,u=uf(l,s),c=we(s.type,a.dtype);(s.position===void 0||A0(s.position,u)!==A0(a.dposition))&&(s.position=a.dposition),i[l]=!0;let d=null;if(l in r&&r[l].type===c)d=r[l];else{const h=Pn.getScale(c);d=new h({id:l,type:c,ctx:this.ctx,chart:this}),r[d.id]=d}d.init(s,t)}),Ne(i,(a,s)=>{a||delete r[s]}),Ne(r,a=>{dn.configure(this,a,a.options),dn.addBox(this,a)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((i,o)=>i.index-o.index),r>n){for(let i=n;i<r;++i)this._destroyDatasetMeta(i);t.splice(n,r-n)}this._sortedMetasets=t.slice(0).sort(F0("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:n}}=this;t.length>n.length&&delete this._stacks,t.forEach((r,i)=>{n.filter(o=>o===r._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let r,i;for(this._removeUnreferencedMetasets(),r=0,i=n.length;r<i;r++){const o=n[r];let a=this.getDatasetMeta(r);const s=o.type||this.config.type;if(a.type&&a.type!==s&&(this._destroyDatasetMeta(r),a=this.getDatasetMeta(r)),a.type=s,a.indexAxis=o.indexAxis||lf(s,this.options),a.order=o.order||0,a.index=r,a.label=""+o.label,a.visible=this.isDatasetVisible(r),a.controller)a.controller.updateIndex(r),a.controller.linkScales();else{const l=Pn.getController(s),{datasetElementType:u,dataElementType:c}=nt.datasets[s];Object.assign(l,{dataElementType:Pn.getElement(c),datasetElementType:u&&Pn.getElement(u)}),a.controller=new l(this,r),t.push(a.controller)}}return this._updateMetasets(),t}_resetElements(){Ne(this.data.datasets,(t,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let u=0,c=this.data.datasets.length;u<c;u++){const{controller:d}=this.getDatasetMeta(u),h=!i&&o.indexOf(d)===-1;d.buildOrUpdateElements(h),a=Math.max(+d.getMaxOverflow(),a)}a=this._minPadding=r.layout.autoPadding?a:0,this._updateLayout(a),i||Ne(o,u=>{u.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(F0("z","_idx"));const{_active:s,_lastEvent:l}=this;l?this._eventHandler(l,!0):s.length&&this._updateHoverStyles(s,s,!0),this.render()}_updateScales(){Ne(this.scales,t=>{dn.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!jp(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:i,count:o}of n){const a=r==="_removeElements"?-o:o;o8(t,i,a)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=o=>new Set(t.filter(a=>a[0]===o).map((a,s)=>s+","+a.splice(1).join(","))),i=r(0);for(let o=1;o<n;o++)if(!jp(i,r(o)))return;return Array.from(i).map(o=>o.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;dn.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],Ne(this.boxes,i=>{r&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,o)=>{i._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n<r;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,r=this.data.datasets.length;n<r;++n)this._updateDataset(n,jr(t)?t({datasetIndex:n}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,n){const r=this.getDatasetMeta(t),i={meta:r,index:t,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",i)!==!1&&(r.controller._update(n),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(er.has(this)?this.attached&&!er.running(this)&&er.start(this):(this.draw(),P0({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:r,height:i}=this._resizeBeforeDraw;this._resize(r,i),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(this.chartArea);for(this._drawDatasets();t<n.length;++t)n[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const n=this._sortedMetasets,r=[];let i,o;for(i=0,o=n.length;i<o;++i){const a=n[i];(!t||a.visible)&&r.push(a)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let n=t.length-1;n>=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,r=t._clip,i=!r.disabled,o=s8(t,this.chartArea),a={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",a)!==!1&&(i&&Ou(n,{left:r.left===!1?0:o.left-r.left,right:r.right===!1?this.width:o.right+r.right,top:r.top===!1?0:o.top-r.top,bottom:r.bottom===!1?this.height:o.bottom+r.bottom}),t.controller.draw(),i&&Nu(n),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(t){return Wa(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,i){const o=rB.modes[n];return typeof o=="function"?o(this,t,r,i):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let i=r.filter(o=>o&&o._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},r.push(i)),i}getContext(){return this.$context||(this.$context=Ti(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(t,n){const r=this.getDatasetMeta(t);r.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,r){const i=r?"show":"hide",o=this.getDatasetMeta(t),a=o.controller._resolveAnimations(void 0,i);La(n)?(o.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),a.update(o,{visible:r}),this.update(s=>s.datasetIndex===t?i:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),er.remove(this),t=0,n=this.data.datasets.length;t<n;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:n}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),qp(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete ml[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,n=this.platform,r=(o,a)=>{n.addEventListener(this,o,a),t[o]=a},i=(o,a,s)=>{o.offsetX=a,o.offsetY=s,this._eventHandler(o)};Ne(this.options.events,o=>r(o,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,r=(l,u)=>{n.addEventListener(this,l,u),t[l]=u},i=(l,u)=>{t[l]&&(n.removeEventListener(this,l,u),delete t[l])},o=(l,u)=>{this.canvas&&this.resize(l,u)};let a;const s=()=>{i("attach",s),this.attached=!0,this.resize(),r("resize",o),r("detach",a)};a=()=>{this.attached=!1,i("resize",o),this._stop(),this._resize(0,0),r("attach",s)},n.isAttached(this.canvas)?s():a()}unbindEvents(){Ne(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},Ne(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const i=r?"set":"remove";let o,a,s,l;for(n==="dataset"&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+i+"DatasetHoverStyle"]()),s=0,l=t.length;s<l;++s){a=t[s];const u=a&&this.getDatasetMeta(a.datasetIndex).controller;u&&u[i+"HoverStyle"](a.element,a.datasetIndex,a.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const n=this._active||[],r=t.map(({datasetIndex:o,index:a})=>{const s=this.getDatasetMeta(o);if(!s)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:s.data[a],index:a}});!Ql(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(t,n,r){return this._plugins.notify(this,t,n,r)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,r){const i=this.options.hover,o=(l,u)=>l.filter(c=>!u.some(d=>c.datasetIndex===d.datasetIndex&&c.index===d.index)),a=o(n,t),s=r?t:o(t,n);a.length&&this.updateHoverStyle(a,i.mode,!1),s.length&&i.mode&&this.updateHoverStyle(s,i.mode,!0)}_eventHandler(t,n){const r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},i=a=>(a.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,i)===!1)return;const o=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(o||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:i=[],options:o}=this,a=n,s=this._getActiveElements(t,i,r,a),l=fk(t),u=a8(t,this._lastEvent,r,l);r&&(this._lastEvent=null,We(o.onHover,[t,s,this],this),l&&We(o.onClick,[t,s,this],this));const c=!Ql(s,i);return(c||n)&&(this._active=s,this._updateHoverStyles(s,i,n)),this._lastEvent=u,c}_getActiveElements(t,n,r,i){if(t.type==="mouseout")return[];if(!r)return n;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,i)}},re(Sr,"defaults",nt),re(Sr,"instances",ml),re(Sr,"overrides",$i),re(Sr,"registry",Pn),re(Sr,"version",n8),re(Sr,"getChart",T0),Sr);function k0(){return Ne(ki.instances,e=>e._plugins.invalidate())}function l8(e,t,n){const{startAngle:r,pixelMargin:i,x:o,y:a,outerRadius:s,innerRadius:l}=t;let u=i/s;e.beginPath(),e.arc(o,a,s,r-u,n+u),l>i?(u=i/l,e.arc(o,a,l,n+u,r-u,!0)):e.arc(o,a,i,n+lt,r-lt),e.closePath(),e.clip()}function u8(e){return qh(e,["outerStart","outerEnd","innerStart","innerEnd"])}function c8(e,t,n,r){const i=u8(e.options.borderRadius),o=(n-t)/2,a=Math.min(o,r*t/2),s=l=>{const u=(n-Math.min(o,l))*r/2;return St(l,0,Math.min(o,u))};return{outerStart:s(i.outerStart),outerEnd:s(i.outerEnd),innerStart:St(i.innerStart,0,a),innerEnd:St(i.innerEnd,0,a)}}function Zi(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function ou(e,t,n,r,i,o){const{x:a,y:s,startAngle:l,pixelMargin:u,innerRadius:c}=t,d=Math.max(t.outerRadius+r+n-u,0),h=c>0?c+r+n+u:0;let f=0;const g=i-l;if(r){const M=c>0?c-r:0,P=d>0?d-r:0,F=(M+P)/2,B=F!==0?g*F/(F+r):g;f=(g-B)/2}const m=Math.max(.001,g*d-n/et)/d,b=(g-m)/2,y=l+b+f,v=i-b-f,{outerStart:x,outerEnd:C,innerStart:D,innerEnd:I}=c8(t,h,d,v-y),T=d-x,p=d-C,S=y+x/T,$=v-C/p,_=h+D,A=h+I,k=y+D/_,R=v-I/A;if(e.beginPath(),o){const M=(S+$)/2;if(e.arc(a,s,d,S,M),e.arc(a,s,d,M,$),C>0){const N=Zi(p,$,a,s);e.arc(N.x,N.y,C,$,v+lt)}const P=Zi(A,v,a,s);if(e.lineTo(P.x,P.y),I>0){const N=Zi(A,R,a,s);e.arc(N.x,N.y,I,v+lt,R+Math.PI)}const F=(v-I/h+(y+D/h))/2;if(e.arc(a,s,h,v-I/h,F,!0),e.arc(a,s,h,F,y+D/h,!0),D>0){const N=Zi(_,k,a,s);e.arc(N.x,N.y,D,k+Math.PI,y-lt)}const B=Zi(T,y,a,s);if(e.lineTo(B.x,B.y),x>0){const N=Zi(T,S,a,s);e.arc(N.x,N.y,x,y-lt,S)}}else{e.moveTo(a,s);const M=Math.cos(S)*d+a,P=Math.sin(S)*d+s;e.lineTo(M,P);const F=Math.cos($)*d+a,B=Math.sin($)*d+s;e.lineTo(F,B)}e.closePath()}function d8(e,t,n,r,i){const{fullCircles:o,startAngle:a,circumference:s}=t;let l=t.endAngle;if(o){ou(e,t,n,r,l,i);for(let u=0;u<o;++u)e.fill();isNaN(s)||(l=a+(s%Je||Je))}return ou(e,t,n,r,l,i),e.fill(),l}function f8(e,t,n,r,i){const{fullCircles:o,startAngle:a,circumference:s,options:l}=t,{borderWidth:u,borderJoinStyle:c,borderDash:d,borderDashOffset:h}=l,f=l.borderAlign==="inner";if(!u)return;e.setLineDash(d||[]),e.lineDashOffset=h,f?(e.lineWidth=u*2,e.lineJoin=c||"round"):(e.lineWidth=u,e.lineJoin=c||"bevel");let g=t.endAngle;if(o){ou(e,t,n,r,g,i);for(let m=0;m<o;++m)e.stroke();isNaN(s)||(g=a+(s%Je||Je))}f&&l8(e,t,g),o||(ou(e,t,n,r,g,i),e.stroke())}class Xo extends yr{constructor(n){super();re(this,"circumference");re(this,"endAngle");re(this,"fullCircles");re(this,"innerRadius");re(this,"outerRadius");re(this,"pixelMargin");re(this,"startAngle");this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,n&&Object.assign(this,n)}inRange(n,r,i){const o=this.getProps(["x","y"],i),{angle:a,distance:s}=Q3(o,{x:n,y:r}),{startAngle:l,endAngle:u,innerRadius:c,outerRadius:d,circumference:h}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),f=(this.options.spacing+this.options.borderWidth)/2,m=we(h,u-l)>=Je||ja(a,l,u),b=dr(s,c+f,d+f);return m&&b}getCenterPoint(n){const{x:r,y:i,startAngle:o,endAngle:a,innerRadius:s,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:u,spacing:c}=this.options,d=(o+a)/2,h=(s+l+c+u)/2;return{x:r+Math.cos(d)*h,y:i+Math.sin(d)*h}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:r,circumference:i}=this,o=(r.offset||0)/4,a=(r.spacing||0)/2,s=r.circular;if(this.pixelMargin=r.borderAlign==="inner"?.33:0,this.fullCircles=i>Je?Math.floor(i/Je):0,i===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const l=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(l)*o,Math.sin(l)*o);const u=1-Math.sin(Math.min(et,i||0)),c=o*u;n.fillStyle=r.backgroundColor,n.strokeStyle=r.borderColor,d8(n,this,c,a,s),f8(n,this,c,a,s),n.restore()}}re(Xo,"id","arc"),re(Xo,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),re(Xo,"defaultRoutes",{backgroundColor:"backgroundColor"}),re(Xo,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function RC(e,t,n=t){e.lineCap=we(n.borderCapStyle,t.borderCapStyle),e.setLineDash(we(n.borderDash,t.borderDash)),e.lineDashOffset=we(n.borderDashOffset,t.borderDashOffset),e.lineJoin=we(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=we(n.borderWidth,t.borderWidth),e.strokeStyle=we(n.borderColor,t.borderColor)}function h8(e,t,n){e.lineTo(n.x,n.y)}function g8(e){return e.stepped?Nk:e.tension||e.cubicInterpolationMode==="monotone"?Vk:h8}function AC(e,t,n={}){const r=e.length,{start:i=0,end:o=r-1}=n,{start:a,end:s}=t,l=Math.max(i,a),u=Math.min(o,s),c=i<a&&o<a||i>s&&o>s;return{count:r,start:l,loop:t.loop,ilen:u<l&&!c?r+u-l:u-l}}function m8(e,t,n,r){const{points:i,options:o}=t,{count:a,start:s,loop:l,ilen:u}=AC(i,n,r),c=g8(o);let{move:d=!0,reverse:h}=r||{},f,g,m;for(f=0;f<=u;++f)g=i[(s+(h?u-f:f))%a],!g.skip&&(d?(e.moveTo(g.x,g.y),d=!1):c(e,m,g,h,o.stepped),m=g);return l&&(g=i[(s+(h?u:0))%a],c(e,m,g,h,o.stepped)),!!l}function p8(e,t,n,r){const i=t.points,{count:o,start:a,ilen:s}=AC(i,n,r),{move:l=!0,reverse:u}=r||{};let c=0,d=0,h,f,g,m,b,y;const v=C=>(a+(u?s-C:C))%o,x=()=>{m!==b&&(e.lineTo(c,b),e.lineTo(c,m),e.lineTo(c,y))};for(l&&(f=i[v(0)],e.moveTo(f.x,f.y)),h=0;h<=s;++h){if(f=i[v(h)],f.skip)continue;const C=f.x,D=f.y,I=C|0;I===g?(D<m?m=D:D>b&&(b=D),c=(d*c+C)/++d):(x(),e.lineTo(C,D),g=I,d=0,m=b=D),y=D}x()}function cf(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?p8:m8}function b8(e){return e.stepped?bM:e.tension||e.cubicInterpolationMode==="monotone"?vM:ri}function v8(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),RC(e,t.options),e.stroke(i)}function y8(e,t,n,r){const{segments:i,options:o}=t,a=cf(t);for(const s of i)RC(e,o,s.style),e.beginPath(),a(e,t,s,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}const x8=typeof Path2D=="function";function C8(e,t,n,r){x8&&!t.options.segment?v8(e,t,n,r):y8(e,t,n,r)}class Vn extends yr{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const i=r.spanGaps?this._loop:this._fullLoop;uM(this._points,r,t,i,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=SM(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,r=t.length;return r&&n[t[r-1].end]}interpolate(t,n){const r=this.options,i=t[n],o=this.points,a=pC(this,{property:n,start:i,end:i});if(!a.length)return;const s=[],l=b8(r);let u,c;for(u=0,c=a.length;u<c;++u){const{start:d,end:h}=a[u],f=o[d],g=o[h];if(f===g){s.push(f);continue}const m=Math.abs((i-f[n])/(g[n]-f[n])),b=l(f,g,m,r.stepped);b[n]=t[n],s.push(b)}return s.length===1?s[0]:s}pathSegment(t,n,r){return cf(this)(t,this,n,r)}path(t,n,r){const i=this.segments,o=cf(this);let a=this._loop;n=n||0,r=r||this.points.length-n;for(const s of i)a&=o(t,this,s,{start:n,end:n+r-1});return!!a}draw(t,n,r,i){const o=this.options||{};(this.points||[]).length&&o.borderWidth&&(t.save(),C8(t,this,r,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}re(Vn,"id","line"),re(Vn,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),re(Vn,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),re(Vn,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"});function M0(e,t,n,r){const i=e.options,{[n]:o}=e.getProps([n],r);return Math.abs(t-o)<i.radius+i.hitRadius}class bi extends yr{constructor(n){super();re(this,"parsed");re(this,"skip");re(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,n&&Object.assign(this,n)}inRange(n,r,i){const o=this.options,{x:a,y:s}=this.getProps(["x","y"],i);return Math.pow(n-a,2)+Math.pow(r-s,2)<Math.pow(o.hitRadius+o.radius,2)}inXRange(n,r){return M0(this,n,"x",r)}inYRange(n,r){return M0(this,n,"y",r)}getCenterPoint(n){const{x:r,y:i}=this.getProps(["x","y"],n);return{x:r,y:i}}size(n){n=n||this.options||{};let r=n.radius||0;r=Math.max(r,r&&n.hoverRadius||0);const i=r&&n.borderWidth||0;return(r+i)*2}draw(n,r){const i=this.options;this.skip||i.radius<.1||!Wa(this,r,this.size(i)/2)||(n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.fillStyle=i.backgroundColor,sf(n,i,this.x,this.y))}getRange(){const n=this.options||{};return n.radius+n.hitRadius}}re(bi,"id","point"),re(bi,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),re(bi,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function FC(e,t){const{x:n,y:r,base:i,width:o,height:a}=e.getProps(["x","y","base","width","height"],t);let s,l,u,c,d;return e.horizontal?(d=a/2,s=Math.min(n,i),l=Math.max(n,i),u=r-d,c=r+d):(d=o/2,s=n-d,l=n+d,u=Math.min(r,i),c=Math.max(r,i)),{left:s,top:u,right:l,bottom:c}}function kr(e,t,n,r){return e?0:St(t,n,r)}function w8(e,t,n){const r=e.options.borderWidth,i=e.borderSkipped,o=aC(r);return{t:kr(i.top,o.top,0,n),r:kr(i.right,o.right,0,t),b:kr(i.bottom,o.bottom,0,n),l:kr(i.left,o.left,0,t)}}function D8(e,t,n){const{enableBorderRadius:r}=e.getProps(["enableBorderRadius"]),i=e.options.borderRadius,o=so(i),a=Math.min(t,n),s=e.borderSkipped,l=r||Ee(i);return{topLeft:kr(!l||s.top||s.left,o.topLeft,0,a),topRight:kr(!l||s.top||s.right,o.topRight,0,a),bottomLeft:kr(!l||s.bottom||s.left,o.bottomLeft,0,a),bottomRight:kr(!l||s.bottom||s.right,o.bottomRight,0,a)}}function S8(e){const t=FC(e),n=t.right-t.left,r=t.bottom-t.top,i=w8(e,n/2,r/2),o=D8(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r,radius:o},inner:{x:t.left+i.l,y:t.top+i.t,w:n-i.l-i.r,h:r-i.t-i.b,radius:{topLeft:Math.max(0,o.topLeft-Math.max(i.t,i.l)),topRight:Math.max(0,o.topRight-Math.max(i.t,i.r)),bottomLeft:Math.max(0,o.bottomLeft-Math.max(i.b,i.l)),bottomRight:Math.max(0,o.bottomRight-Math.max(i.b,i.r))}}}}function Gc(e,t,n,r){const i=t===null,o=n===null,s=e&&!(i&&o)&&FC(e,r);return s&&(i||dr(t,s.left,s.right))&&(o||dr(n,s.top,s.bottom))}function E8(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function I8(e,t){e.rect(t.x,t.y,t.w,t.h)}function Zc(e,t,n={}){const r=e.x!==n.x?-t:0,i=e.y!==n.y?-t:0,o=(e.x+e.w!==n.x+n.w?t:0)-r,a=(e.y+e.h!==n.y+n.h?t:0)-i;return{x:e.x+r,y:e.y+i,w:e.w+o,h:e.h+a,radius:e.radius}}class pl extends yr{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:n,options:{borderColor:r,backgroundColor:i}}=this,{inner:o,outer:a}=S8(this),s=E8(a.radius)?nu:I8;t.save(),(a.w!==o.w||a.h!==o.h)&&(t.beginPath(),s(t,Zc(a,n,o)),t.clip(),s(t,Zc(o,-n,a)),t.fillStyle=r,t.fill("evenodd")),t.beginPath(),s(t,Zc(o,n)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,n,r){return Gc(this,t,n,r)}inXRange(t,n){return Gc(this,t,null,n)}inYRange(t,n){return Gc(this,null,t,n)}getCenterPoint(t){const{x:n,y:r,base:i,horizontal:o}=this.getProps(["x","y","base","horizontal"],t);return{x:o?(n+i)/2:n,y:o?r:(r+i)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}re(pl,"id","bar"),re(pl,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),re(pl,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function _8(e,t,n){const r=e.segments,i=e.points,o=t.points,a=[];for(const s of r){let{start:l,end:u}=s;u=og(l,u,i);const c=df(n,i[l],i[u],s.loop);if(!t.segments){a.push({source:s,target:c,start:i[l],end:i[u]});continue}const d=pC(t,c);for(const h of d){const f=df(n,o[h.start],o[h.end],h.loop),g=mC(s,i,f);for(const m of g)a.push({source:m,target:h,start:{[n]:B0(c,f,"start",Math.max)},end:{[n]:B0(c,f,"end",Math.min)}})}}return a}function df(e,t,n,r){if(r)return;let i=t[e],o=n[e];return e==="angle"&&(i=Mn(i),o=Mn(o)),{property:e,start:i,end:o}}function $8(e,t){const{x:n=null,y:r=null}=e||{},i=t.points,o=[];return t.segments.forEach(({start:a,end:s})=>{s=og(a,s,i);const l=i[a],u=i[s];r!==null?(o.push({x:l.x,y:r}),o.push({x:u.x,y:r})):n!==null&&(o.push({x:n,y:l.y}),o.push({x:n,y:u.y}))}),o}function og(e,t,n){for(;t>e;t--){const r=n[t];if(!isNaN(r.x)&&!isNaN(r.y))break}return t}function B0(e,t,n,r){return e&&t?r(e[n],t[n]):e?e[n]:t?t[n]:0}function PC(e,t){let n=[],r=!1;return ot(e)?(r=!0,n=e):n=$8(e,t),n.length?new Vn({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function O0(e){return e&&e.fill!==!1}function R8(e,t,n){let i=e[t].fill;const o=[t];let a;if(!n)return i;for(;i!==!1&&o.indexOf(i)===-1;){if(!It(i))return i;if(a=e[i],!a)return!1;if(a.visible)return i;o.push(i),i=a.fill}return!1}function A8(e,t,n){const r=k8(e);if(Ee(r))return isNaN(r.value)?!1:r;let i=parseFloat(r);return It(i)&&Math.floor(i)===i?F8(r[0],t,i,n):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function F8(e,t,n,r){return(e==="-"||e==="+")&&(n=t+n),n===t||n<0||n>=r?!1:n}function P8(e,t){let n=null;return e==="start"?n=t.bottom:e==="end"?n=t.top:Ee(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}function T8(e,t,n){let r;return e==="start"?r=n:e==="end"?r=t.options.reverse?t.min:t.max:Ee(e)?r=e.value:r=t.getBaseValue(),r}function k8(e){const t=e.options,n=t.fill;let r=we(n&&n.target,n);return r===void 0&&(r=!!t.backgroundColor),r===!1||r===null?!1:r===!0?"origin":r}function M8(e){const{scale:t,index:n,line:r}=e,i=[],o=r.segments,a=r.points,s=B8(t,n);s.push(PC({x:null,y:t.bottom},r));for(let l=0;l<o.length;l++){const u=o[l];for(let c=u.start;c<=u.end;c++)O8(i,a[c],s)}return new Vn({points:i,options:{}})}function B8(e,t){const n=[],r=e.getMatchingVisibleMetas("line");for(let i=0;i<r.length;i++){const o=r[i];if(o.index===t)break;o.hidden||n.unshift(o.dataset)}return n}function O8(e,t,n){const r=[];for(let i=0;i<n.length;i++){const o=n[i],{first:a,last:s,point:l}=N8(o,t,"x");if(!(!l||a&&s)){if(a)r.unshift(l);else if(e.push(l),!s)break}}e.push(...r)}function N8(e,t,n){const r=e.interpolate(t,n);if(!r)return{};const i=r[n],o=e.segments,a=e.points;let s=!1,l=!1;for(let u=0;u<o.length;u++){const c=o[u],d=a[c.start][n],h=a[c.end][n];if(dr(i,d,h)){s=i===d,l=i===h;break}}return{first:s,last:l,point:r}}class TC{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,n,r){const{x:i,y:o,radius:a}=this;return n=n||{start:0,end:Je},t.arc(i,o,a,n.end,n.start,!0),!r.bounds}interpolate(t){const{x:n,y:r,radius:i}=this,o=t.angle;return{x:n+Math.cos(o)*i,y:r+Math.sin(o)*i,angle:o}}}function V8(e){const{chart:t,fill:n,line:r}=e;if(It(n))return L8(t,n);if(n==="stack")return M8(e);if(n==="shape")return!0;const i=H8(e);return i instanceof TC?i:PC(i,r)}function L8(e,t){const n=e.getDatasetMeta(t);return n&&e.isDatasetVisible(t)?n.dataset:null}function H8(e){return(e.scale||{}).getPointPositionForValue?W8(e):j8(e)}function j8(e){const{scale:t={},fill:n}=e,r=P8(n,t);if(It(r)){const i=t.isHorizontal();return{x:i?r:null,y:i?null:r}}return null}function W8(e){const{scale:t,fill:n}=e,r=t.options,i=t.getLabels().length,o=r.reverse?t.max:t.min,a=T8(n,t,o),s=[];if(r.grid.circular){const l=t.getPointPositionForValue(0,o);return new TC({x:l.x,y:l.y,radius:t.getDistanceFromCenterForValue(a)})}for(let l=0;l<i;++l)s.push(t.getPointPositionForValue(l,a));return s}function Xc(e,t,n){const r=V8(t),{line:i,scale:o,axis:a}=t,s=i.options,l=s.fill,u=s.backgroundColor,{above:c=u,below:d=u}=l||{};r&&i.points.length&&(Ou(e,n),z8(e,{line:i,target:r,above:c,below:d,area:n,scale:o,axis:a}),Nu(e))}function z8(e,t){const{line:n,target:r,above:i,below:o,area:a,scale:s}=t,l=n._loop?"angle":t.axis;e.save(),l==="x"&&o!==i&&(N0(e,r,a.top),V0(e,{line:n,target:r,color:i,scale:s,property:l}),e.restore(),e.save(),N0(e,r,a.bottom)),V0(e,{line:n,target:r,color:o,scale:s,property:l}),e.restore()}function N0(e,t,n){const{segments:r,points:i}=t;let o=!0,a=!1;e.beginPath();for(const s of r){const{start:l,end:u}=s,c=i[l],d=i[og(l,u,i)];o?(e.moveTo(c.x,c.y),o=!1):(e.lineTo(c.x,n),e.lineTo(c.x,c.y)),a=!!t.pathSegment(e,s,{move:a}),a?e.closePath():e.lineTo(d.x,n)}e.lineTo(t.first().x,n),e.closePath(),e.clip()}function V0(e,t){const{line:n,target:r,property:i,color:o,scale:a}=t,s=_8(n,r,i);for(const{source:l,target:u,start:c,end:d}of s){const{style:{backgroundColor:h=o}={}}=l,f=r!==!0;e.save(),e.fillStyle=h,G8(e,a,f&&df(i,c,d)),e.beginPath();const g=!!n.pathSegment(e,l);let m;if(f){g?e.closePath():L0(e,r,d,i);const b=!!r.pathSegment(e,u,{move:g,reverse:!0});m=g&&b,m||L0(e,r,c,i)}e.closePath(),e.fill(m?"evenodd":"nonzero"),e.restore()}}function G8(e,t,n){const{top:r,bottom:i}=t.chart.chartArea,{property:o,start:a,end:s}=n||{};o==="x"&&(e.beginPath(),e.rect(a,r,s-a,i-r),e.clip())}function L0(e,t,n,r){const i=t.interpolate(n,r);i&&e.lineTo(i.x,i.y)}var kC={id:"filler",afterDatasetsUpdate(e,t,n){const r=(e.data.datasets||[]).length,i=[];let o,a,s,l;for(a=0;a<r;++a)o=e.getDatasetMeta(a),s=o.dataset,l=null,s&&s.options&&s instanceof Vn&&(l={visible:e.isDatasetVisible(a),index:a,fill:A8(s,a,r),chart:e,axis:o.controller.options.indexAxis,scale:o.vScale,line:s}),o.$filler=l,i.push(l);for(a=0;a<r;++a)l=i[a],!(!l||l.fill===!1)&&(l.fill=R8(i,a,n.propagate))},beforeDraw(e,t,n){const r=n.drawTime==="beforeDraw",i=e.getSortedVisibleDatasetMetas(),o=e.chartArea;for(let a=i.length-1;a>=0;--a){const s=i[a].$filler;s&&(s.line.updateControlPoints(o,s.axis),r&&s.fill&&Xc(e.ctx,s,o))}},beforeDatasetsDraw(e,t,n){if(n.drawTime!=="beforeDatasetsDraw")return;const r=e.getSortedVisibleDatasetMetas();for(let i=r.length-1;i>=0;--i){const o=r[i].$filler;O0(o)&&Xc(e.ctx,o,e.chartArea)}},beforeDatasetDraw(e,t,n){const r=t.meta.$filler;!O0(r)||n.drawTime!=="beforeDatasetDraw"||Xc(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const H0=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},Z8=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class j0 extends yr{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,r){this.maxWidth=t,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=We(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(r=>t.filter(r,this.chart.data))),t.sort&&(n=n.sort((r,i)=>t.sort(r,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const r=t.labels,i=Et(r.font),o=i.size,a=this._computeTitleHeight(),{boxWidth:s,itemHeight:l}=H0(r,o);let u,c;n.font=i.string,this.isHorizontal()?(u=this.maxWidth,c=this._fitRows(a,o,s,l)+10):(c=this.maxHeight,u=this._fitCols(a,i,s,l)+10),this.width=Math.min(u,t.maxWidth||this.maxWidth),this.height=Math.min(c,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,i){const{ctx:o,maxWidth:a,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],u=this.lineWidths=[0],c=i+s;let d=t;o.textAlign="left",o.textBaseline="middle";let h=-1,f=-c;return this.legendItems.forEach((g,m)=>{const b=r+n/2+o.measureText(g.text).width;(m===0||u[u.length-1]+b+2*s>a)&&(d+=c,u[u.length-(m>0?0:1)]=0,f+=c,h++),l[m]={left:0,top:f,row:h,width:b,height:i},u[u.length-1]+=b+s}),d}_fitCols(t,n,r,i){const{ctx:o,maxHeight:a,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],u=this.columnSizes=[],c=a-t;let d=s,h=0,f=0,g=0,m=0;return this.legendItems.forEach((b,y)=>{const{itemWidth:v,itemHeight:x}=X8(r,n,o,b,i);y>0&&f+x+2*s>c&&(d+=h+s,u.push({width:h,height:f}),g+=h+s,m++,h=f=0),l[y]={left:g,top:f,col:m,width:v,height:x},h=Math.max(h,v),f+=x+s}),d+=h,u.push({width:h,height:f}),d}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:i},rtl:o}}=this,a=lo(o,this.left,this.width);if(this.isHorizontal()){let s=0,l=xt(r,this.left+i,this.right-this.lineWidths[s]);for(const u of n)s!==u.row&&(s=u.row,l=xt(r,this.left+i,this.right-this.lineWidths[s])),u.top+=this.top+t+i,u.left=a.leftForLtr(a.x(l),u.width),l+=u.width+i}else{let s=0,l=xt(r,this.top+t+i,this.bottom-this.columnSizes[s].height);for(const u of n)u.col!==s&&(s=u.col,l=xt(r,this.top+t+i,this.bottom-this.columnSizes[s].height)),u.top=l,u.left+=this.left+i,u.left=a.leftForLtr(a.x(u.left),u.width),l+=u.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;Ou(t,this),this._draw(),Nu(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:i}=this,{align:o,labels:a}=t,s=nt.color,l=lo(t.rtl,this.left,this.width),u=Et(a.font),{padding:c}=a,d=u.size,h=d/2;let f;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=u.string;const{boxWidth:g,boxHeight:m,itemHeight:b}=H0(a,d),y=function(I,T,p){if(isNaN(g)||g<=0||isNaN(m)||m<0)return;i.save();const S=we(p.lineWidth,1);if(i.fillStyle=we(p.fillStyle,s),i.lineCap=we(p.lineCap,"butt"),i.lineDashOffset=we(p.lineDashOffset,0),i.lineJoin=we(p.lineJoin,"miter"),i.lineWidth=S,i.strokeStyle=we(p.strokeStyle,s),i.setLineDash(we(p.lineDash,[])),a.usePointStyle){const $={radius:m*Math.SQRT2/2,pointStyle:p.pointStyle,rotation:p.rotation,borderWidth:S},_=l.xPlus(I,g/2),A=T+h;oC(i,$,_,A,a.pointStyleWidth&&g)}else{const $=T+Math.max((d-m)/2,0),_=l.leftForLtr(I,g),A=so(p.borderRadius);i.beginPath(),Object.values(A).some(k=>k!==0)?nu(i,{x:_,y:$,w:g,h:m,radius:A}):i.rect(_,$,g,m),i.fill(),S!==0&&i.stroke()}i.restore()},v=function(I,T,p){za(i,p.text,I,T+b/2,u,{strikethrough:p.hidden,textAlign:l.textAlign(p.textAlign)})},x=this.isHorizontal(),C=this._computeTitleHeight();x?f={x:xt(o,this.left+c,this.right-r[0]),y:this.top+c+C,line:0}:f={x:this.left+c,y:xt(o,this.top+C+c,this.bottom-n[0].height),line:0},fC(this.ctx,t.textDirection);const D=b+c;this.legendItems.forEach((I,T)=>{i.strokeStyle=I.fontColor,i.fillStyle=I.fontColor;const p=i.measureText(I.text).width,S=l.textAlign(I.textAlign||(I.textAlign=a.textAlign)),$=g+h+p;let _=f.x,A=f.y;l.setWidth(this.width),x?T>0&&_+$+c>this.right&&(A=f.y+=D,f.line++,_=f.x=xt(o,this.left+c,this.right-r[f.line])):T>0&&A+D>this.bottom&&(_=f.x=_+n[f.line].width+c,f.line++,A=f.y=xt(o,this.top+C+c,this.bottom-n[f.line].height));const k=l.x(_);if(y(k,A,I),_=Ek(S,_+g+h,x?_+$:this.right,t.rtl),v(l.x(_),A,I),x)f.x+=$+c;else if(typeof I.text!="string"){const R=u.lineHeight;f.y+=MC(I,R)+c}else f.y+=D}),hC(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=Et(n.font),i=fn(n.padding);if(!n.display)return;const o=lo(t.rtl,this.left,this.width),a=this.ctx,s=n.position,l=r.size/2,u=i.top+l;let c,d=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),c=this.top+u,d=xt(t.align,d,this.right-h);else{const g=this.columnSizes.reduce((m,b)=>Math.max(m,b.height),0);c=u+xt(t.align,this.top,this.bottom-g-t.labels.padding-this._computeTitleHeight())}const f=xt(s,d,d+h);a.textAlign=o.textAlign(Uh(s)),a.textBaseline="middle",a.strokeStyle=n.color,a.fillStyle=n.color,a.font=r.string,za(a,n.text,f,c,r)}_computeTitleHeight(){const t=this.options.title,n=Et(t.font),r=fn(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,i,o;if(dr(t,this.left,this.right)&&dr(n,this.top,this.bottom)){for(o=this.legendHitBoxes,r=0;r<o.length;++r)if(i=o[r],dr(t,i.left,i.left+i.width)&&dr(n,i.top,i.top+i.height))return this.legendItems[r]}return null}handleEvent(t){const n=this.options;if(!J8(t.type,n))return;const r=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const i=this._hoveredItem,o=Z8(i,r);i&&!o&&We(n.onLeave,[t,i,this],this),this._hoveredItem=r,r&&!o&&We(n.onHover,[t,r,this],this)}else r&&We(n.onClick,[t,r,this],this)}}function X8(e,t,n,r,i){const o=Y8(r,e,t,n),a=U8(i,r,t.lineHeight);return{itemWidth:o,itemHeight:a}}function Y8(e,t,n,r){let i=e.text;return i&&typeof i!="string"&&(i=i.reduce((o,a)=>o.length>a.length?o:a)),t+n.size/2+r.measureText(i).width}function U8(e,t,n){let r=e;return typeof t.text!="string"&&(r=MC(t,n)),r}function MC(e,t){const n=e.text?e.text.length:0;return t*n}function J8(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var BC={id:"legend",_element:j0,start(e,t,n){const r=e.legend=new j0({ctx:e.ctx,options:n,chart:e});dn.configure(e,r,n),dn.addBox(e,r)},stop(e){dn.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;dn.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:o,useBorderRadius:a,borderRadius:s}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const u=l.controller.getStyle(n?0:void 0),c=fn(u.borderWidth);return{text:t[l.index].label,fillStyle:u.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:u.borderCapStyle,lineDash:u.borderDash,lineDashOffset:u.borderDashOffset,lineJoin:u.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:u.borderColor,pointStyle:r||u.pointStyle,rotation:u.rotation,textAlign:i||u.textAlign,borderRadius:a&&(s||u.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class OC extends yr{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const i=ot(r.text)?r.text.length:1;this._padding=fn(r.padding);const o=i*Et(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:r,bottom:i,right:o,options:a}=this,s=a.align;let l=0,u,c,d;return this.isHorizontal()?(c=xt(s,r,o),d=n+t,u=o-r):(a.position==="left"?(c=r+t,d=xt(s,i,n),l=et*-.5):(c=o-t,d=xt(s,n,i),l=et*.5),u=i-n),{titleX:c,titleY:d,maxWidth:u,rotation:l}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const r=Et(n.font),o=r.lineHeight/2+this._padding.top,{titleX:a,titleY:s,maxWidth:l,rotation:u}=this._drawArgs(o);za(t,n.text,0,0,r,{color:n.color,maxWidth:l,rotation:u,textAlign:Uh(n.align),textBaseline:"middle",translation:[a,s]})}}function K8(e,t){const n=new OC({ctx:e.ctx,options:t,chart:e});dn.configure(e,n,t),dn.addBox(e,n),e.titleBlock=n}var NC={id:"title",_element:OC,start(e,t,n){K8(e,n)},stop(e){const t=e.titleBlock;dn.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;dn.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Yo={average(e){if(!e.length)return!1;let t,n,r=new Set,i=0,o=0;for(t=0,n=e.length;t<n;++t){const s=e[t].element;if(s&&s.hasValue()){const l=s.tooltipPosition();r.add(l.x),i+=l.y,++o}}return{x:[...r].reduce((s,l)=>s+l)/r.size,y:i/o}},nearest(e,t){if(!e.length)return!1;let n=t.x,r=t.y,i=Number.POSITIVE_INFINITY,o,a,s;for(o=0,a=e.length;o<a;++o){const l=e[o].element;if(l&&l.hasValue()){const u=l.getCenterPoint(),c=of(t,u);c<i&&(i=c,s=l)}}if(s){const l=s.tooltipPosition();n=l.x,r=l.y}return{x:n,y:r}}};function An(e,t){return t&&(ot(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function tr(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
149
149
  `)>-1?e.split(`
150
- `):e}function q8(e,t){const{element:n,datasetIndex:r,index:i}=t,o=e.getDatasetMeta(r).controller,{label:a,value:s}=o.getLabelAndValue(i);return{chart:e,label:a,parsed:o.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:s,dataset:o.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function W0(e,t){const n=e.chart.ctx,{body:r,footer:i,title:o}=e,{boxWidth:a,boxHeight:s}=t,l=Et(t.bodyFont),u=Et(t.titleFont),c=Et(t.footerFont),d=o.length,h=i.length,f=r.length,g=fn(t.padding);let m=g.height,b=0,y=r.reduce((C,D)=>C+D.before.length+D.lines.length+D.after.length,0);if(y+=e.beforeBody.length+e.afterBody.length,d&&(m+=d*u.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),y){const C=t.displayColors?Math.max(s,l.lineHeight):l.lineHeight;m+=f*C+(y-f)*l.lineHeight+(y-1)*t.bodySpacing}h&&(m+=t.footerMarginTop+h*c.lineHeight+(h-1)*t.footerSpacing);let v=0;const x=function(C){b=Math.max(b,n.measureText(C).width+v)};return n.save(),n.font=u.string,Ne(e.title,x),n.font=l.string,Ne(e.beforeBody.concat(e.afterBody),x),v=t.displayColors?a+2+t.boxPadding:0,Ne(r,C=>{Ne(C.before,x),Ne(C.lines,x),Ne(C.after,x)}),v=0,n.font=c.string,Ne(e.footer,x),n.restore(),b+=g.width,{width:b,height:m}}function Q8(e,t){const{y:n,height:r}=t;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}function eO(e,t,n,r){const{x:i,width:o}=r,a=n.caretSize+n.caretPadding;if(e==="left"&&i+o+a>t.width||e==="right"&&i-o-a<0)return!0}function tO(e,t,n,r){const{x:i,width:o}=n,{width:a,chartArea:{left:s,right:l}}=e;let u="center";return r==="center"?u=i<=(s+l)/2?"left":"right":i<=o/2?u="left":i>=a-o/2&&(u="right"),eO(u,e,t,n)&&(u="center"),u}function z0(e,t,n){const r=n.yAlign||t.yAlign||Q8(e,n);return{xAlign:n.xAlign||t.xAlign||tO(e,t,n,r),yAlign:r}}function nO(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function rO(e,t,n){let{y:r,height:i}=e;return t==="top"?r+=n:t==="bottom"?r-=i+n:r-=i/2,r}function G0(e,t,n,r){const{caretSize:i,caretPadding:o,cornerRadius:a}=e,{xAlign:s,yAlign:l}=n,u=i+o,{topLeft:c,topRight:d,bottomLeft:h,bottomRight:f}=so(a);let g=nO(t,s);const m=rO(t,l,u);return l==="center"?s==="left"?g+=u:s==="right"&&(g-=u):s==="left"?g-=Math.max(c,h)+i:s==="right"&&(g+=Math.max(d,f)+i),{x:St(g,0,r.width-t.width),y:St(m,0,r.height-t.height)}}function Ys(e,t,n){const r=fn(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function Z0(e){return An([],tr(e))}function iO(e,t,n){return Ti(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function X0(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const VC={beforeTitle:qn,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex<r)return n[t.dataIndex]}return""},afterTitle:qn,beforeBody:qn,beforeLabel:qn,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return He(n)||(t+=n),t},labelColor(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:qn,afterBody:qn,beforeFooter:qn,footer:qn,afterFooter:qn};function Mt(e,t,n,r){const i=e[t].call(n,r);return typeof i>"u"?VC[t].call(n,r):i}var rd;let Y0=(rd=class extends yr{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,r=this.options.setContext(this.getContext()),i=r.enabled&&n.options.animation&&r.animations,o=new bC(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=iO(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,i=Mt(r,"beforeTitle",this,t),o=Mt(r,"title",this,t),a=Mt(r,"afterTitle",this,t);let s=[];return s=An(s,tr(i)),s=An(s,tr(o)),s=An(s,tr(a)),s}getBeforeBody(t,n){return Z0(Mt(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,i=[];return Ne(t,o=>{const a={before:[],lines:[],after:[]},s=X0(r,o);An(a.before,tr(Mt(s,"beforeLabel",this,o))),An(a.lines,Mt(s,"label",this,o)),An(a.after,tr(Mt(s,"afterLabel",this,o))),i.push(a)}),i}getAfterBody(t,n){return Z0(Mt(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,i=Mt(r,"beforeFooter",this,t),o=Mt(r,"footer",this,t),a=Mt(r,"afterFooter",this,t);let s=[];return s=An(s,tr(i)),s=An(s,tr(o)),s=An(s,tr(a)),s}_createItems(t){const n=this._active,r=this.chart.data,i=[],o=[],a=[];let s=[],l,u;for(l=0,u=n.length;l<u;++l)s.push(q8(this.chart,n[l]));return t.filter&&(s=s.filter((c,d,h)=>t.filter(c,d,h,r))),t.itemSort&&(s=s.sort((c,d)=>t.itemSort(c,d,r))),Ne(s,c=>{const d=X0(t.callbacks,c);i.push(Mt(d,"labelColor",this,c)),o.push(Mt(d,"labelPointStyle",this,c)),a.push(Mt(d,"labelTextColor",this,c))}),this.labelColors=i,this.labelPointStyles=o,this.labelTextColors=a,this.dataPoints=s,s}update(t,n){const r=this.options.setContext(this.getContext()),i=this._active;let o,a=[];if(!i.length)this.opacity!==0&&(o={opacity:0});else{const s=Yo[r.position].call(this,i,this._eventPosition);a=this._createItems(r),this.title=this.getTitle(a,r),this.beforeBody=this.getBeforeBody(a,r),this.body=this.getBody(a,r),this.afterBody=this.getAfterBody(a,r),this.footer=this.getFooter(a,r);const l=this._size=W0(this,r),u=Object.assign({},s,l),c=z0(this.chart,r,u),d=G0(r,u,c,this.chart);this.xAlign=c.xAlign,this.yAlign=c.yAlign,o={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:s.x,caretY:s.y}}this._tooltipItems=a,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,i){const o=this.getCaretPosition(t,r,i);n.lineTo(o.x1,o.y1),n.lineTo(o.x2,o.y2),n.lineTo(o.x3,o.y3)}getCaretPosition(t,n,r){const{xAlign:i,yAlign:o}=this,{caretSize:a,cornerRadius:s}=r,{topLeft:l,topRight:u,bottomLeft:c,bottomRight:d}=so(s),{x:h,y:f}=t,{width:g,height:m}=n;let b,y,v,x,C,D;return o==="center"?(C=f+m/2,i==="left"?(b=h,y=b-a,x=C+a,D=C-a):(b=h+g,y=b+a,x=C-a,D=C+a),v=b):(i==="left"?y=h+Math.max(l,c)+a:i==="right"?y=h+g-Math.max(u,d)-a:y=this.caretX,o==="top"?(x=f,C=x-a,b=y-a,v=y+a):(x=f+m,C=x+a,b=y+a,v=y-a),D=x),{x1:b,x2:y,x3:v,y1:x,y2:C,y3:D}}drawTitle(t,n,r){const i=this.title,o=i.length;let a,s,l;if(o){const u=lo(r.rtl,this.x,this.width);for(t.x=Ys(this,r.titleAlign,r),n.textAlign=u.textAlign(r.titleAlign),n.textBaseline="middle",a=Et(r.titleFont),s=r.titleSpacing,n.fillStyle=r.titleColor,n.font=a.string,l=0;l<o;++l)n.fillText(i[l],u.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+s,l+1===o&&(t.y+=r.titleMarginBottom-s)}}_drawColorBox(t,n,r,i,o){const a=this.labelColors[r],s=this.labelPointStyles[r],{boxHeight:l,boxWidth:u}=o,c=Et(o.bodyFont),d=Ys(this,"left",o),h=i.x(d),f=l<c.lineHeight?(c.lineHeight-l)/2:0,g=n.y+f;if(o.usePointStyle){const m={radius:Math.min(u,l)/2,pointStyle:s.pointStyle,rotation:s.rotation,borderWidth:1},b=i.leftForLtr(h,u)+u/2,y=g+l/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,sf(t,m,b,y),t.strokeStyle=a.borderColor,t.fillStyle=a.backgroundColor,sf(t,m,b,y)}else{t.lineWidth=Ee(a.borderWidth)?Math.max(...Object.values(a.borderWidth)):a.borderWidth||1,t.strokeStyle=a.borderColor,t.setLineDash(a.borderDash||[]),t.lineDashOffset=a.borderDashOffset||0;const m=i.leftForLtr(h,u),b=i.leftForLtr(i.xPlus(h,1),u-2),y=so(a.borderRadius);Object.values(y).some(v=>v!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,nu(t,{x:m,y:g,w:u,h:l,radius:y}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),nu(t,{x:b,y:g+1,w:u-2,h:l-2,radius:y}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(m,g,u,l),t.strokeRect(m,g,u,l),t.fillStyle=a.backgroundColor,t.fillRect(b,g+1,u-2,l-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:i}=this,{bodySpacing:o,bodyAlign:a,displayColors:s,boxHeight:l,boxWidth:u,boxPadding:c}=r,d=Et(r.bodyFont);let h=d.lineHeight,f=0;const g=lo(r.rtl,this.x,this.width),m=function(p){n.fillText(p,g.x(t.x+f),t.y+h/2),t.y+=h+o},b=g.textAlign(a);let y,v,x,C,D,I,T;for(n.textAlign=a,n.textBaseline="middle",n.font=d.string,t.x=Ys(this,b,r),n.fillStyle=r.bodyColor,Ne(this.beforeBody,m),f=s&&b!=="right"?a==="center"?u/2+c:u+2+c:0,C=0,I=i.length;C<I;++C){for(y=i[C],v=this.labelTextColors[C],n.fillStyle=v,Ne(y.before,m),x=y.lines,s&&x.length&&(this._drawColorBox(n,t,C,g,r),h=Math.max(d.lineHeight,l)),D=0,T=x.length;D<T;++D)m(x[D]),h=d.lineHeight;Ne(y.after,m)}f=0,h=d.lineHeight,Ne(this.afterBody,m),t.y-=o}drawFooter(t,n,r){const i=this.footer,o=i.length;let a,s;if(o){const l=lo(r.rtl,this.x,this.width);for(t.x=Ys(this,r.footerAlign,r),t.y+=r.footerMarginTop,n.textAlign=l.textAlign(r.footerAlign),n.textBaseline="middle",a=Et(r.footerFont),n.fillStyle=r.footerColor,n.font=a.string,s=0;s<o;++s)n.fillText(i[s],l.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+r.footerSpacing}}drawBackground(t,n,r,i){const{xAlign:o,yAlign:a}=this,{x:s,y:l}=t,{width:u,height:c}=r,{topLeft:d,topRight:h,bottomLeft:f,bottomRight:g}=so(i.cornerRadius);n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.beginPath(),n.moveTo(s+d,l),a==="top"&&this.drawCaret(t,n,r,i),n.lineTo(s+u-h,l),n.quadraticCurveTo(s+u,l,s+u,l+h),a==="center"&&o==="right"&&this.drawCaret(t,n,r,i),n.lineTo(s+u,l+c-g),n.quadraticCurveTo(s+u,l+c,s+u-g,l+c),a==="bottom"&&this.drawCaret(t,n,r,i),n.lineTo(s+f,l+c),n.quadraticCurveTo(s,l+c,s,l+c-f),a==="center"&&o==="left"&&this.drawCaret(t,n,r,i),n.lineTo(s,l+d),n.quadraticCurveTo(s,l,s+d,l),n.closePath(),n.fill(),i.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,i=r&&r.x,o=r&&r.y;if(i||o){const a=Yo[t.position].call(this,this._active,this._eventPosition);if(!a)return;const s=this._size=W0(this,t),l=Object.assign({},a,this._size),u=z0(n,t,l),c=G0(t,l,u,n);(i._to!==c.x||o._to!==c.y)&&(this.xAlign=u.xAlign,this.yAlign=u.yAlign,this.width=s.width,this.height=s.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,c))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},o={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const a=fn(n.padding),s=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&s&&(t.save(),t.globalAlpha=r,this.drawBackground(o,t,i,n),fC(t,n.textDirection),o.y+=a.top,this.drawTitle(o,t,n),this.drawBody(o,t,n),this.drawFooter(o,t,n),hC(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,i=t.map(({datasetIndex:s,index:l})=>{const u=this.chart.getDatasetMeta(s);if(!u)throw new Error("Cannot find a dataset at index "+s);return{datasetIndex:s,element:u.data[l],index:l}}),o=!Ql(r,i),a=this._positionChanged(i,n);(o||a)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,o=this._active||[],a=this._getActiveElements(t,o,n,r),s=this._positionChanged(a,t),l=n||!Ql(a,o)||s;return l&&(this._active=a,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),l}_getActiveElements(t,n,r,i){const o=this.options;if(t.type==="mouseout")return[];if(!i)return n.filter(s=>this.chart.data.datasets[s.datasetIndex]&&this.chart.getDatasetMeta(s.datasetIndex).controller.getParsed(s.index)!==void 0);const a=this.chart.getElementsAtEventForMode(t,o.mode,o,r);return o.reverse&&a.reverse(),a}_positionChanged(t,n){const{caretX:r,caretY:i,options:o}=this,a=Yo[o.position].call(this,t,n);return a!==!1&&(r!==a.x||i!==a.y)}},re(rd,"positioners",Yo),rd);var Za={id:"tooltip",_element:Y0,positioners:Yo,afterInit(e,t,n){n&&(e.tooltip=new Y0({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:VC},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const oO=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function aO(e,t,n,r){const i=e.indexOf(t);if(i===-1)return oO(e,t,n,r);const o=e.lastIndexOf(t);return i!==o?n:i}const sO=(e,t)=>e===null?null:St(Math.round(e),0,t);function U0(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class xo extends _o{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const n=this._addedLabels;if(n.length){const r=this.getLabels();for(const{index:i,label:o}of n)r[i]===o&&r.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(He(t))return null;const r=this.getLabels();return n=isFinite(n)&&r[n]===t?n:aO(r,t,we(n,t),this._addedLabels),sO(n,r.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:r,max:i}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(r=0),n||(i=this.getLabels().length-1)),this.min=r,this.max=i}buildTicks(){const t=this.min,n=this.max,r=this.options.offset,i=[];let o=this.getLabels();o=t===0&&n===o.length-1?o:o.slice(t,n+1),this._valueRange=Math.max(o.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let a=t;a<=n;a++)i.push({value:a});return i}getLabelForValue(t){return U0.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}re(xo,"id","category"),re(xo,"defaults",{ticks:{callback:U0}});function lO(e,t){const n=[],{bounds:i,step:o,min:a,max:s,precision:l,count:u,maxTicks:c,maxDigits:d,includeBounds:h}=e,f=o||1,g=c-1,{min:m,max:b}=t,y=!He(a),v=!He(s),x=!He(u),C=(b-m)/(d+1);let D=zp((b-m)/g/f)*f,I,T,p,S;if(D<1e-14&&!y&&!v)return[{value:m},{value:b}];S=Math.ceil(b/D)-Math.floor(m/D),S>g&&(D=zp(S*D/g/f)*f),He(l)||(I=Math.pow(10,l),D=Math.ceil(D*I)/I),i==="ticks"?(T=Math.floor(m/D)*D,p=Math.ceil(b/D)*D):(T=m,p=b),y&&v&&o&&pk((s-a)/o,D/1e3)?(S=Math.round(Math.min((s-a)/D,c)),D=(s-a)/S,T=a,p=s):x?(T=y?a:T,p=v?s:p,S=u-1,D=(p-T)/S):(S=(p-T)/D,ra(S,Math.round(S),D/1e3)?S=Math.round(S):S=Math.ceil(S));const $=Math.max(Gp(D),Gp(T));I=Math.pow(10,He(l)?$:l),T=Math.round(T*I)/I,p=Math.round(p*I)/I;let _=0;for(y&&(h&&T!==a?(n.push({value:a}),T<a&&_++,ra(Math.round((T+_*D)*I)/I,a,J0(a,C,e))&&_++):T<a&&_++);_<S;++_){const A=Math.round((T+_*D)*I)/I;if(v&&A>s)break;n.push({value:A})}return v&&h&&p!==s?n.length&&ra(n[n.length-1].value,s,J0(s,C,e))?n[n.length-1].value=s:n.push({value:s}):(!v||p===s)&&n.push({value:p}),n}function J0(e,t,{horizontal:n,minRotation:r}){const i=cr(r),o=(n?Math.sin(i):Math.cos(i))||.001,a=.75*t*(""+e).length;return Math.min(t/o,a)}class uO extends _o{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return He(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:i,max:o}=this;const a=l=>i=n?i:l,s=l=>o=r?o:l;if(t){const l=Wn(i),u=Wn(o);l<0&&u<0?s(0):l>0&&u>0&&a(0)}if(i===o){let l=o===0?1:Math.abs(o*.05);s(o+l),t||a(i-l)}this.min=i,this.max=o}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,i;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const i={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},o=this._range||this,a=lO(i,o);return t.bounds==="ticks"&&bk(a,this,"value"),t.reverse?(a.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),a}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const i=(r-n)/Math.max(t.length-1,1)/2;n-=i,r+=i}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return Kh(t,this.chart.options.locale,this.options.ticks.format)}}class Co extends uO{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=It(t)?t:0,this.max=It(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=cr(this.options.ticks.minRotation),i=(t?Math.sin(r):Math.cos(r))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,o.lineHeight/i))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}re(Co,"id","linear"),re(Co,"defaults",{ticks:{callback:iC.formatters.numeric}});const ju={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Ot=Object.keys(ju);function K0(e,t){return e-t}function q0(e,t){if(He(t))return null;const n=e._adapter,{parser:r,round:i,isoWeekday:o}=e._parseOpts;let a=t;return typeof r=="function"&&(a=r(a)),It(a)||(a=typeof r=="string"?n.parse(a,r):n.parse(a)),a===null?null:(i&&(a=i==="week"&&(ja(o)||o===!0)?n.startOf(a,"isoWeek",o):n.startOf(a,i)),+a)}function Q0(e,t,n,r){const i=Ot.length;for(let o=Ot.indexOf(e);o<i-1;++o){const a=ju[Ot[o]],s=a.steps?a.steps:Number.MAX_SAFE_INTEGER;if(a.common&&Math.ceil((n-t)/(s*a.size))<=r)return Ot[o]}return Ot[i-1]}function cO(e,t,n,r,i){for(let o=Ot.length-1;o>=Ot.indexOf(n);o--){const a=Ot[o];if(ju[a].common&&e._adapter.diff(i,r,a)>=t-1)return a}return Ot[n?Ot.indexOf(n):0]}function dO(e){for(let t=Ot.indexOf(e)+1,n=Ot.length;t<n;++t)if(ju[Ot[t]].common)return Ot[t]}function eb(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:r,hi:i}=Yh(n,t),o=n[r]>=t?n[r]:n[i];e[o]=!0}}function fO(e,t,n,r){const i=e._adapter,o=+i.startOf(t[0].value,r),a=t[t.length-1].value;let s,l;for(s=o;s<=a;s=+i.add(s,1,r))l=n[s],l>=0&&(t[l].major=!0);return t}function tb(e,t,n){const r=[],i={},o=t.length;let a,s;for(a=0;a<o;++a)s=t[a],i[s]=a,r.push({value:s,major:!1});return o===0||!n?r:fO(e,r,i,n)}class au extends _o{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,n={}){const r=t.time||(t.time={}),i=this._adapter=new qM._date(t.adapters.date);i.init(n),na(r.displayFormats,i.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:q0(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,n=this._adapter,r=t.time.unit||"day";let{min:i,max:o,minDefined:a,maxDefined:s}=this.getUserBounds();function l(u){!a&&!isNaN(u.min)&&(i=Math.min(i,u.min)),!s&&!isNaN(u.max)&&(o=Math.max(o,u.max))}(!a||!s)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),i=It(i)&&!isNaN(i)?i:+n.startOf(Date.now(),r),o=It(o)&&!isNaN(o)?o:+n.endOf(Date.now(),r)+1,this.min=Math.min(i,o-1),this.max=Math.max(i+1,o)}_getLabelBounds(){const t=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],r=t[t.length-1]),{min:n,max:r}}buildTicks(){const t=this.options,n=t.time,r=t.ticks,i=r.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const o=this.min,a=this.max,s=wk(i,o,a);return this._unit=n.unit||(r.autoSkip?Q0(n.minUnit,this.min,this.max,this._getLabelCapacity(o)):cO(this,s.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:dO(this._unit),this.initOffsets(i),t.reverse&&s.reverse(),tb(this,s,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,r=0,i,o;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?n=1-i:n=(this.getDecimalForValue(t[1])-i)/2,o=this.getDecimalForValue(t[t.length-1]),t.length===1?r=o:r=(o-this.getDecimalForValue(t[t.length-2]))/2);const a=t.length<3?.5:.25;n=St(n,0,a),r=St(r,0,a),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,i=this.options,o=i.time,a=o.unit||Q0(o.minUnit,n,r,this._getLabelCapacity(n)),s=we(i.ticks.stepSize,1),l=a==="week"?o.isoWeekday:!1,u=ja(l)||l===!0,c={};let d=n,h,f;if(u&&(d=+t.startOf(d,"isoWeek",l)),d=+t.startOf(d,u?"day":a),t.diff(r,n,a)>1e5*s)throw new Error(n+" and "+r+" are too far apart with stepSize of "+s+" "+a);const g=i.ticks.source==="data"&&this.getDataTimestamps();for(h=d,f=0;h<r;h=+t.add(h,s,a),f++)eb(c,h,g);return(h===r||i.bounds==="ticks"||f===1)&&eb(c,h,g),Object.keys(c).sort(K0).map(m=>+m)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}format(t,n){const i=this.options.time.displayFormats,o=this._unit,a=n||i[o];return this._adapter.format(t,a)}_tickFormatFunction(t,n,r,i){const o=this.options,a=o.ticks.callback;if(a)return We(a,[t,n,r],this);const s=o.time.displayFormats,l=this._unit,u=this._majorUnit,c=l&&s[l],d=u&&s[u],h=r[n],f=u&&d&&h&&h.major;return this._adapter.format(t,i||(f?d:c))}generateTickLabels(t){let n,r,i;for(n=0,r=t.length;n<r;++n)i=t[n],i.label=this._tickFormatFunction(i.value,n,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const n=this._offsets,r=this.getDecimalForValue(t);return this.getPixelForDecimal((n.start+r)*n.factor)}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return this.min+r*(this.max-this.min)}_getLabelSize(t){const n=this.options.ticks,r=this.ctx.measureText(t).width,i=cr(this.isHorizontal()?n.maxRotation:n.minRotation),o=Math.cos(i),a=Math.sin(i),s=this._resolveTickFontOptions(0).size;return{w:r*o+s*a,h:r*a+s*o}}_getLabelCapacity(t){const n=this.options.time,r=n.displayFormats,i=r[n.unit]||r.millisecond,o=this._tickFormatFunction(t,0,tb(this,[t],this._majorUnit),i),a=this._getLabelSize(o),s=Math.floor(this.isHorizontal()?this.width/a.w:this.height/a.h)-1;return s>0?s:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,r=i.length;n<r;++n)t=t.concat(i[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let n,r;if(t.length)return t;const i=this.getLabels();for(n=0,r=i.length;n<r;++n)t.push(q0(this,i[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return tC(t.sort(K0))}}re(au,"id","time"),re(au,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function Us(e,t,n){let r=0,i=e.length-1,o,a,s,l;n?(t>=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=di(e,"pos",t)),{pos:o,time:s}=e[r],{pos:a,time:l}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=di(e,"time",t)),{time:o,pos:s}=e[r],{time:a,pos:l}=e[i]);const u=a-o;return u?s+(l-s)*(t-o)/u:s}class nb extends au{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=Us(n,this.min),this._tableRange=Us(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,i=[],o=[];let a,s,l,u,c;for(a=0,s=t.length;a<s;++a)u=t[a],u>=n&&u<=r&&i.push(u);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(a=0,s=i.length;a<s;++a)c=i[a+1],l=i[a-1],u=i[a],Math.round((c+l)/2)!==u&&o.push({time:u,pos:a/(s-1)});return o}_generate(){const t=this.min,n=this.max;let r=super.getDataTimestamps();return(!r.includes(t)||!r.length)&&r.splice(0,0,t),(!r.includes(n)||r.length===1)&&r.push(n),r.sort((i,o)=>i-o)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?t=this.normalize(n.concat(r)):t=n.length?n:r,t=this._cache.all=t,t}getDecimalForValue(t){return(Us(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return Us(this._table,r*this._tableRange+this._minPos,!0)}}re(nb,"id","timeseries"),re(nb,"defaults",au.defaults);const LC="label";function rb(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function hO(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function jC(e,t){e.labels=t}function HC(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:LC;const r=[];e.datasets=t.map(i=>{const o=e.datasets.find(a=>a[n]===i[n]);return!o||!i.data||r.includes(o)?{...i}:(r.push(o),Object.assign(o,i),o)})}function gO(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:LC;const n={labels:[],datasets:[]};return jC(n,e.labels),HC(n,e.datasets,t),n}function mO(e,t){const{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:o,type:a,data:s,options:l,plugins:u=[],fallbackContent:c,updateMode:d,...h}=e,f=w.useRef(null),g=w.useRef(),m=()=>{f.current&&(g.current=new ki(f.current,{type:a,data:gO(s,o),options:l&&{...l},plugins:u}),rb(t,g.current))},b=()=>{rb(t,null),g.current&&(g.current.destroy(),g.current=null)};return w.useEffect(()=>{!i&&g.current&&l&&hO(g.current,l)},[i,l]),w.useEffect(()=>{!i&&g.current&&jC(g.current.config.data,s.labels)},[i,s.labels]),w.useEffect(()=>{!i&&g.current&&s.datasets&&HC(g.current.config.data,s.datasets,o)},[i,s.datasets]),w.useEffect(()=>{g.current&&(i?(b(),setTimeout(m)):g.current.update(d))},[i,l,s.labels,s.datasets,d]),w.useEffect(()=>{g.current&&(b(),setTimeout(m))},[a]),w.useEffect(()=>(m(),()=>b()),[]),w.createElement("canvas",Object.assign({ref:f,role:"img",height:n,width:r},h),c)}const pO=w.forwardRef(mO);function ag(e,t){return ki.register(t),w.forwardRef((n,r)=>w.createElement(pO,Object.assign({},n,{ref:r,type:e})))}const WC=ag("line",hl),bO=ag("bar",fl),ib=ag("doughnut",Go);ki.register(xo,Co,bi,Vn,Xo,NC,Za,BC);const ob=(e,t)=>{var i,o,a,s;const n=e.getVisibleDatasetCount(),r=e.getDatasetMeta(n-1).data.at(0);if(r){const{innerRadius:l}=r.getProps(["innerRadius"]),{ctx:u}=e,c=()=>{var _;const C=[].concat(t),D=C.length,I=u.font;let T=0,p=0,S;for(S=0;S<D;++S)u.font=C[S].font,T=Math.max(u.measureText(C[S].text).width,T),p+=(_=C[S].font)==null?void 0:_.lineHeight;return u.font=I,{height:p,width:T}},d=(C,D)=>{let I=document.createElement("div");document.body.appendChild(I),I.style.fontSize=`${D}px`,I.style.position="absolute",I.style.left="-10",I.style.top="-10",I.textContent=C;const T={width:I.clientWidth,height:I.clientHeight};return document.body.removeChild(I),I=null,T},h=c(),f=parseFloat(parseFloat(l).toFixed(2));u.textAlign="center",u.textBaseline="middle";const g=(e.chartArea.left+e.chartArea.right)/2,b=(e.chartArea.top+e.chartArea.bottom)/2-h.height/2;let y;const v=t.length;let x=0;for(y=0;y<v;++y){let C=(i=t[y].font)==null?void 0:i.size,D=(o=t[y].font)==null?void 0:o.lineHeight;const I=typeof t[y].text=="number"?t[y].text.toString():t[y].text;for(;d(I,C).width>f+(t[y].id==="value"?50:0);)C-=1,D=d(I,C).height;I.length>22&&D<14&&(D=18);const T=b+D/2+x,p=typeof t[y].text=="number"?new Intl.NumberFormat("id-ID",{style:"currency",currency:"IDR"}).format(t[y].text):t[y].text;let S=t[y].urlIconDesc?" ":"";if(t[y].percentage!==void 0?S+=`${t[y].percentage}% ${t[y].text}`:S+=p,u.fillStyle=t[y].color,u.font=`${C<10?10:C}px sans-serif`,x+=D,t[y].percentage!==void 0&&t[y].urlIconDesc){const $=((s=(a=t[y])==null?void 0:a.percentage)==null?void 0:s.length)??0,_=new Image;_.src=t[y].urlIconDesc,u.drawImage(_,45-($>6?$+2:$-2.5),T-8,16,14)}u.fillText(S,g,T)}u.restore(),u.save()}},vO=({labels:e,data:t,backgroundColor:n,options:r={},redraw:i,widthInnerDoughnut:o,innerLabels:a,open:s=!0,keyRemoveDataOpen:l="gap",keyLabel:u="title",keyValue:c="originalValue",keyBackground:d="backgroundColor",className:h})=>{const f={labels:e||t.map(m=>m[u]),datasets:[{data:t.map(m=>m[c]),backgroundColor:n||t.map(m=>m[d])}]},g={cutout:o,animation:{duration:i?400:0},plugins:{legend:{display:!1},tooltip:{external(m){let b=document.getElementById("chartjs-tooltip");b||(b=document.createElement("div"),b.id="chartjs-tooltip",b.innerHTML="<table></table>",document.body.appendChild(b));const y=m.tooltip;if(y.opacity===0){b.style.opacity="0";return}b.classList.remove("above","below","no-transform"),y.yAlign?b.classList.add(y.yAlign):b.classList.add("no-transform");const v=t.filter(T=>!T[u]),x=t.filter(T=>T[c]>0&&T[c]<1);if(v.length===1&&x.length===1)return;function C(T){return T.lines}if(y.body){const T=y.title||[];let p=y.body.map(C),S="<thead>";T.forEach(_=>{let A="";A+="display: flex",A+="; justify-content: center",A+="; font-weight: 600",A+="; font-size: 12px",A+="; padding: 0px 14px",S+=`<tr><span style="${A}">${_}</span></tr>`}),S+="</thead><tbody>",p.length>1&&p[0][0]===p[1][0]&&(p=[p[0]]),p.forEach(_=>{let A="";A+="display: flex",A+="; justify-content: center",A+="; color: #0163C8",A+="; padding: 0px 14px",A+="; font-size: 12px";const k=`<span style="${A}">${_}</span>`;S+=`<tr><td>${k}</td></tr>`}),S+="</tbody>";const $=b.querySelector("table");$&&($.innerHTML=S)}const D=m.chart.canvas.getBoundingClientRect(),I=D.top+window.pageYOffset+y.caretY;b.style.opacity="1",b.style.border="solid 1px #0163C8",b.style.background="white",b.style.height="fit-content",b.style.borderRadius="10px",b.style.position="absolute",b.style.zIndex="10",b.style.padding="4px 0",b.style.left=`${D.left+window.pageXOffset+y.caretX-80}px`,b.style.top=`${I>300&&!s?280:I}px`,b.style.pointerEvents="none"},displayColors:!0,enabled:!1,callbacks:{title(m){const b=t[m[0].dataIndex];return b==null?void 0:b[u]},label(m){const b=t==null?void 0:t[m.dataIndex];let y="Nilai: ";return b&&(y+=b.value),y}}}},elements:{arc:{borderWidth:0}}};return E.jsxs("div",{className:h??"",children:[!s&&E.jsx(ib,{data:f,redraw:i,plugins:[{id:"draw",beforeDraw(m){ob(m,a)}}],options:Object.keys(r).length>1?r:g}),s&&E.jsx(ib,{data:f,redraw:i,plugins:[{id:"draw",beforeDraw(m){ob(m,a.filter(b=>b.id!==l))}}],options:Object.keys(r).length>1?r:g})]})},Js=e=>{let t;const n=new Date(e??new Date);return e&&(t=Eh(new Date(n.setHours(n.getHours()+7)).toISOString().slice(0,10))),t},yO=({month:e,year:t,type:n=["month","year"],activeType:r="month",minDate:i,maxDate:o,className:a,classNameButton:s,onChange:l,buttonClick:u,id:c="date-picker",idPopover:d="date-picker-popover",floatingOptions:h={},offsetPopover:f=5,zIndexPopper:g=1,hiddenHeader:m})=>{const{locale:b}=In(),y=w.useRef(null),v=Js(i),x=Js(o),C=D=>{var I;typeof l=="function"&&(l({month:D.month,year:D.year}),(I=y.current)==null||I.setShow(!1))};return E.jsxs(E.Fragment,{children:[E.jsx("div",{id:c,onClick:D=>{var I;D.stopPropagation(),(I=y.current)==null||I.handlerShow(D)},className:s,children:typeof u=="function"?u({month:e,year:t}):"Pilih Tanggal"}),E.jsx("div",{className:a??"",children:E.jsx(br,{zIndex:g,ref:y,offset:f,id:d,floatingOptions:{placement:"bottom-end",...h},onClick:D=>D.stopPropagation(),children:E.jsx(Vh,{locale:"id-ID",children:E.jsx(ku,{minValue:v,maxValue:x,minDate:i,maxDate:o,activeType:n.length===1?n[0]:r,locale:b,value:Js(`${t}/${e}/1`),createCalendar:os,defaultValue:Js(`${t}/${e}/1`),onChange:C,handlerReset:()=>{},handlerSubmit:()=>{},withDateSelect:!1,type:n,hiddenHeader:m})})})})]})},xO=({indeterminate:e,className:t="",classNameContainer:n,...r})=>{const i=w.useRef(null);return w.useEffect(()=>{typeof e=="boolean"&&(i.current.indeterminate=!r.checked&&e)},[i,e]),E.jsx("div",{className:`1ru-flex 1ru-items-center 1ru-h-full ${t??""}`,children:E.jsx(Mu,{ref:i,label:"",variants:"blue-700",borderRadius:"full",className:"1ru-flex 1ru-items-center 1ru-h-full",classNameContainer:`1ru-flex 1ru-items-center 1ru-h-full ${n??""}}`,...r,onClick:o=>{o.stopPropagation(),typeof r.onClick=="function"&&r.onClick(o)},type:"checkbox"})})},CO="_input_6rs0g_7",wO="_error_6rs0g_32",on={"container-xs":"_container-xs_6rs0g_1","container-input":"_container-input_6rs0g_4",input:CO,error:wO,"isset-right-icon":"_isset-right-icon_6rs0g_41","isset-left-icon":"_isset-left-icon_6rs0g_45","start-icon":"_start-icon_6rs0g_49","end-icon":"_end-icon_6rs0g_52","label-error":"_label-error_6rs0g_55","container-s":"_container-s_6rs0g_61","container-l":"_container-l_6rs0g_121"},sg=w.forwardRef(({name:e,classNameContainer:t,id:n,type:r="text",startIcon:i,endIcon:o,error:a,sizeInput:s="xs",classNameLabelError:l,className:u,...c},d)=>{const h={size:{l:on["container-l"],s:on["container-s"],xs:on["container-xs"]}},f=()=>typeof i=="function"||w.isValidElement(i),g=()=>typeof o=="function"||w.isValidElement(o);return E.jsxs("div",{className:`${h.size[s]} ${t}`,children:[E.jsxs("div",{className:`${on["container-input"]}`,children:[E.jsxs("div",{className:on["start-icon"],children:[typeof i=="function"&&i(),w.isValidElement(i)&&i]}),E.jsx("input",{id:n??e,className:`${on.input} ${a?on.error:""}
150
+ `):e}function q8(e,t){const{element:n,datasetIndex:r,index:i}=t,o=e.getDatasetMeta(r).controller,{label:a,value:s}=o.getLabelAndValue(i);return{chart:e,label:a,parsed:o.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:s,dataset:o.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function W0(e,t){const n=e.chart.ctx,{body:r,footer:i,title:o}=e,{boxWidth:a,boxHeight:s}=t,l=Et(t.bodyFont),u=Et(t.titleFont),c=Et(t.footerFont),d=o.length,h=i.length,f=r.length,g=fn(t.padding);let m=g.height,b=0,y=r.reduce((C,D)=>C+D.before.length+D.lines.length+D.after.length,0);if(y+=e.beforeBody.length+e.afterBody.length,d&&(m+=d*u.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),y){const C=t.displayColors?Math.max(s,l.lineHeight):l.lineHeight;m+=f*C+(y-f)*l.lineHeight+(y-1)*t.bodySpacing}h&&(m+=t.footerMarginTop+h*c.lineHeight+(h-1)*t.footerSpacing);let v=0;const x=function(C){b=Math.max(b,n.measureText(C).width+v)};return n.save(),n.font=u.string,Ne(e.title,x),n.font=l.string,Ne(e.beforeBody.concat(e.afterBody),x),v=t.displayColors?a+2+t.boxPadding:0,Ne(r,C=>{Ne(C.before,x),Ne(C.lines,x),Ne(C.after,x)}),v=0,n.font=c.string,Ne(e.footer,x),n.restore(),b+=g.width,{width:b,height:m}}function Q8(e,t){const{y:n,height:r}=t;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}function eO(e,t,n,r){const{x:i,width:o}=r,a=n.caretSize+n.caretPadding;if(e==="left"&&i+o+a>t.width||e==="right"&&i-o-a<0)return!0}function tO(e,t,n,r){const{x:i,width:o}=n,{width:a,chartArea:{left:s,right:l}}=e;let u="center";return r==="center"?u=i<=(s+l)/2?"left":"right":i<=o/2?u="left":i>=a-o/2&&(u="right"),eO(u,e,t,n)&&(u="center"),u}function z0(e,t,n){const r=n.yAlign||t.yAlign||Q8(e,n);return{xAlign:n.xAlign||t.xAlign||tO(e,t,n,r),yAlign:r}}function nO(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function rO(e,t,n){let{y:r,height:i}=e;return t==="top"?r+=n:t==="bottom"?r-=i+n:r-=i/2,r}function G0(e,t,n,r){const{caretSize:i,caretPadding:o,cornerRadius:a}=e,{xAlign:s,yAlign:l}=n,u=i+o,{topLeft:c,topRight:d,bottomLeft:h,bottomRight:f}=so(a);let g=nO(t,s);const m=rO(t,l,u);return l==="center"?s==="left"?g+=u:s==="right"&&(g-=u):s==="left"?g-=Math.max(c,h)+i:s==="right"&&(g+=Math.max(d,f)+i),{x:St(g,0,r.width-t.width),y:St(m,0,r.height-t.height)}}function Ys(e,t,n){const r=fn(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function Z0(e){return An([],tr(e))}function iO(e,t,n){return Ti(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function X0(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const VC={beforeTitle:qn,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex<r)return n[t.dataIndex]}return""},afterTitle:qn,beforeBody:qn,beforeLabel:qn,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return je(n)||(t+=n),t},labelColor(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:qn,afterBody:qn,beforeFooter:qn,footer:qn,afterFooter:qn};function Mt(e,t,n,r){const i=e[t].call(n,r);return typeof i>"u"?VC[t].call(n,r):i}var rd;let Y0=(rd=class extends yr{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,r=this.options.setContext(this.getContext()),i=r.enabled&&n.options.animation&&r.animations,o=new bC(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=iO(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,i=Mt(r,"beforeTitle",this,t),o=Mt(r,"title",this,t),a=Mt(r,"afterTitle",this,t);let s=[];return s=An(s,tr(i)),s=An(s,tr(o)),s=An(s,tr(a)),s}getBeforeBody(t,n){return Z0(Mt(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,i=[];return Ne(t,o=>{const a={before:[],lines:[],after:[]},s=X0(r,o);An(a.before,tr(Mt(s,"beforeLabel",this,o))),An(a.lines,Mt(s,"label",this,o)),An(a.after,tr(Mt(s,"afterLabel",this,o))),i.push(a)}),i}getAfterBody(t,n){return Z0(Mt(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,i=Mt(r,"beforeFooter",this,t),o=Mt(r,"footer",this,t),a=Mt(r,"afterFooter",this,t);let s=[];return s=An(s,tr(i)),s=An(s,tr(o)),s=An(s,tr(a)),s}_createItems(t){const n=this._active,r=this.chart.data,i=[],o=[],a=[];let s=[],l,u;for(l=0,u=n.length;l<u;++l)s.push(q8(this.chart,n[l]));return t.filter&&(s=s.filter((c,d,h)=>t.filter(c,d,h,r))),t.itemSort&&(s=s.sort((c,d)=>t.itemSort(c,d,r))),Ne(s,c=>{const d=X0(t.callbacks,c);i.push(Mt(d,"labelColor",this,c)),o.push(Mt(d,"labelPointStyle",this,c)),a.push(Mt(d,"labelTextColor",this,c))}),this.labelColors=i,this.labelPointStyles=o,this.labelTextColors=a,this.dataPoints=s,s}update(t,n){const r=this.options.setContext(this.getContext()),i=this._active;let o,a=[];if(!i.length)this.opacity!==0&&(o={opacity:0});else{const s=Yo[r.position].call(this,i,this._eventPosition);a=this._createItems(r),this.title=this.getTitle(a,r),this.beforeBody=this.getBeforeBody(a,r),this.body=this.getBody(a,r),this.afterBody=this.getAfterBody(a,r),this.footer=this.getFooter(a,r);const l=this._size=W0(this,r),u=Object.assign({},s,l),c=z0(this.chart,r,u),d=G0(r,u,c,this.chart);this.xAlign=c.xAlign,this.yAlign=c.yAlign,o={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:s.x,caretY:s.y}}this._tooltipItems=a,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,i){const o=this.getCaretPosition(t,r,i);n.lineTo(o.x1,o.y1),n.lineTo(o.x2,o.y2),n.lineTo(o.x3,o.y3)}getCaretPosition(t,n,r){const{xAlign:i,yAlign:o}=this,{caretSize:a,cornerRadius:s}=r,{topLeft:l,topRight:u,bottomLeft:c,bottomRight:d}=so(s),{x:h,y:f}=t,{width:g,height:m}=n;let b,y,v,x,C,D;return o==="center"?(C=f+m/2,i==="left"?(b=h,y=b-a,x=C+a,D=C-a):(b=h+g,y=b+a,x=C-a,D=C+a),v=b):(i==="left"?y=h+Math.max(l,c)+a:i==="right"?y=h+g-Math.max(u,d)-a:y=this.caretX,o==="top"?(x=f,C=x-a,b=y-a,v=y+a):(x=f+m,C=x+a,b=y+a,v=y-a),D=x),{x1:b,x2:y,x3:v,y1:x,y2:C,y3:D}}drawTitle(t,n,r){const i=this.title,o=i.length;let a,s,l;if(o){const u=lo(r.rtl,this.x,this.width);for(t.x=Ys(this,r.titleAlign,r),n.textAlign=u.textAlign(r.titleAlign),n.textBaseline="middle",a=Et(r.titleFont),s=r.titleSpacing,n.fillStyle=r.titleColor,n.font=a.string,l=0;l<o;++l)n.fillText(i[l],u.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+s,l+1===o&&(t.y+=r.titleMarginBottom-s)}}_drawColorBox(t,n,r,i,o){const a=this.labelColors[r],s=this.labelPointStyles[r],{boxHeight:l,boxWidth:u}=o,c=Et(o.bodyFont),d=Ys(this,"left",o),h=i.x(d),f=l<c.lineHeight?(c.lineHeight-l)/2:0,g=n.y+f;if(o.usePointStyle){const m={radius:Math.min(u,l)/2,pointStyle:s.pointStyle,rotation:s.rotation,borderWidth:1},b=i.leftForLtr(h,u)+u/2,y=g+l/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,sf(t,m,b,y),t.strokeStyle=a.borderColor,t.fillStyle=a.backgroundColor,sf(t,m,b,y)}else{t.lineWidth=Ee(a.borderWidth)?Math.max(...Object.values(a.borderWidth)):a.borderWidth||1,t.strokeStyle=a.borderColor,t.setLineDash(a.borderDash||[]),t.lineDashOffset=a.borderDashOffset||0;const m=i.leftForLtr(h,u),b=i.leftForLtr(i.xPlus(h,1),u-2),y=so(a.borderRadius);Object.values(y).some(v=>v!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,nu(t,{x:m,y:g,w:u,h:l,radius:y}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),nu(t,{x:b,y:g+1,w:u-2,h:l-2,radius:y}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(m,g,u,l),t.strokeRect(m,g,u,l),t.fillStyle=a.backgroundColor,t.fillRect(b,g+1,u-2,l-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:i}=this,{bodySpacing:o,bodyAlign:a,displayColors:s,boxHeight:l,boxWidth:u,boxPadding:c}=r,d=Et(r.bodyFont);let h=d.lineHeight,f=0;const g=lo(r.rtl,this.x,this.width),m=function(p){n.fillText(p,g.x(t.x+f),t.y+h/2),t.y+=h+o},b=g.textAlign(a);let y,v,x,C,D,I,T;for(n.textAlign=a,n.textBaseline="middle",n.font=d.string,t.x=Ys(this,b,r),n.fillStyle=r.bodyColor,Ne(this.beforeBody,m),f=s&&b!=="right"?a==="center"?u/2+c:u+2+c:0,C=0,I=i.length;C<I;++C){for(y=i[C],v=this.labelTextColors[C],n.fillStyle=v,Ne(y.before,m),x=y.lines,s&&x.length&&(this._drawColorBox(n,t,C,g,r),h=Math.max(d.lineHeight,l)),D=0,T=x.length;D<T;++D)m(x[D]),h=d.lineHeight;Ne(y.after,m)}f=0,h=d.lineHeight,Ne(this.afterBody,m),t.y-=o}drawFooter(t,n,r){const i=this.footer,o=i.length;let a,s;if(o){const l=lo(r.rtl,this.x,this.width);for(t.x=Ys(this,r.footerAlign,r),t.y+=r.footerMarginTop,n.textAlign=l.textAlign(r.footerAlign),n.textBaseline="middle",a=Et(r.footerFont),n.fillStyle=r.footerColor,n.font=a.string,s=0;s<o;++s)n.fillText(i[s],l.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+r.footerSpacing}}drawBackground(t,n,r,i){const{xAlign:o,yAlign:a}=this,{x:s,y:l}=t,{width:u,height:c}=r,{topLeft:d,topRight:h,bottomLeft:f,bottomRight:g}=so(i.cornerRadius);n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.beginPath(),n.moveTo(s+d,l),a==="top"&&this.drawCaret(t,n,r,i),n.lineTo(s+u-h,l),n.quadraticCurveTo(s+u,l,s+u,l+h),a==="center"&&o==="right"&&this.drawCaret(t,n,r,i),n.lineTo(s+u,l+c-g),n.quadraticCurveTo(s+u,l+c,s+u-g,l+c),a==="bottom"&&this.drawCaret(t,n,r,i),n.lineTo(s+f,l+c),n.quadraticCurveTo(s,l+c,s,l+c-f),a==="center"&&o==="left"&&this.drawCaret(t,n,r,i),n.lineTo(s,l+d),n.quadraticCurveTo(s,l,s+d,l),n.closePath(),n.fill(),i.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,i=r&&r.x,o=r&&r.y;if(i||o){const a=Yo[t.position].call(this,this._active,this._eventPosition);if(!a)return;const s=this._size=W0(this,t),l=Object.assign({},a,this._size),u=z0(n,t,l),c=G0(t,l,u,n);(i._to!==c.x||o._to!==c.y)&&(this.xAlign=u.xAlign,this.yAlign=u.yAlign,this.width=s.width,this.height=s.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,c))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},o={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const a=fn(n.padding),s=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&s&&(t.save(),t.globalAlpha=r,this.drawBackground(o,t,i,n),fC(t,n.textDirection),o.y+=a.top,this.drawTitle(o,t,n),this.drawBody(o,t,n),this.drawFooter(o,t,n),hC(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,i=t.map(({datasetIndex:s,index:l})=>{const u=this.chart.getDatasetMeta(s);if(!u)throw new Error("Cannot find a dataset at index "+s);return{datasetIndex:s,element:u.data[l],index:l}}),o=!Ql(r,i),a=this._positionChanged(i,n);(o||a)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,o=this._active||[],a=this._getActiveElements(t,o,n,r),s=this._positionChanged(a,t),l=n||!Ql(a,o)||s;return l&&(this._active=a,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),l}_getActiveElements(t,n,r,i){const o=this.options;if(t.type==="mouseout")return[];if(!i)return n.filter(s=>this.chart.data.datasets[s.datasetIndex]&&this.chart.getDatasetMeta(s.datasetIndex).controller.getParsed(s.index)!==void 0);const a=this.chart.getElementsAtEventForMode(t,o.mode,o,r);return o.reverse&&a.reverse(),a}_positionChanged(t,n){const{caretX:r,caretY:i,options:o}=this,a=Yo[o.position].call(this,t,n);return a!==!1&&(r!==a.x||i!==a.y)}},re(rd,"positioners",Yo),rd);var Za={id:"tooltip",_element:Y0,positioners:Yo,afterInit(e,t,n){n&&(e.tooltip=new Y0({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:VC},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const oO=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function aO(e,t,n,r){const i=e.indexOf(t);if(i===-1)return oO(e,t,n,r);const o=e.lastIndexOf(t);return i!==o?n:i}const sO=(e,t)=>e===null?null:St(Math.round(e),0,t);function U0(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class xo extends _o{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const n=this._addedLabels;if(n.length){const r=this.getLabels();for(const{index:i,label:o}of n)r[i]===o&&r.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(je(t))return null;const r=this.getLabels();return n=isFinite(n)&&r[n]===t?n:aO(r,t,we(n,t),this._addedLabels),sO(n,r.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:r,max:i}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(r=0),n||(i=this.getLabels().length-1)),this.min=r,this.max=i}buildTicks(){const t=this.min,n=this.max,r=this.options.offset,i=[];let o=this.getLabels();o=t===0&&n===o.length-1?o:o.slice(t,n+1),this._valueRange=Math.max(o.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let a=t;a<=n;a++)i.push({value:a});return i}getLabelForValue(t){return U0.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}re(xo,"id","category"),re(xo,"defaults",{ticks:{callback:U0}});function lO(e,t){const n=[],{bounds:i,step:o,min:a,max:s,precision:l,count:u,maxTicks:c,maxDigits:d,includeBounds:h}=e,f=o||1,g=c-1,{min:m,max:b}=t,y=!je(a),v=!je(s),x=!je(u),C=(b-m)/(d+1);let D=zp((b-m)/g/f)*f,I,T,p,S;if(D<1e-14&&!y&&!v)return[{value:m},{value:b}];S=Math.ceil(b/D)-Math.floor(m/D),S>g&&(D=zp(S*D/g/f)*f),je(l)||(I=Math.pow(10,l),D=Math.ceil(D*I)/I),i==="ticks"?(T=Math.floor(m/D)*D,p=Math.ceil(b/D)*D):(T=m,p=b),y&&v&&o&&pk((s-a)/o,D/1e3)?(S=Math.round(Math.min((s-a)/D,c)),D=(s-a)/S,T=a,p=s):x?(T=y?a:T,p=v?s:p,S=u-1,D=(p-T)/S):(S=(p-T)/D,ra(S,Math.round(S),D/1e3)?S=Math.round(S):S=Math.ceil(S));const $=Math.max(Gp(D),Gp(T));I=Math.pow(10,je(l)?$:l),T=Math.round(T*I)/I,p=Math.round(p*I)/I;let _=0;for(y&&(h&&T!==a?(n.push({value:a}),T<a&&_++,ra(Math.round((T+_*D)*I)/I,a,J0(a,C,e))&&_++):T<a&&_++);_<S;++_){const A=Math.round((T+_*D)*I)/I;if(v&&A>s)break;n.push({value:A})}return v&&h&&p!==s?n.length&&ra(n[n.length-1].value,s,J0(s,C,e))?n[n.length-1].value=s:n.push({value:s}):(!v||p===s)&&n.push({value:p}),n}function J0(e,t,{horizontal:n,minRotation:r}){const i=cr(r),o=(n?Math.sin(i):Math.cos(i))||.001,a=.75*t*(""+e).length;return Math.min(t/o,a)}class uO extends _o{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return je(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:i,max:o}=this;const a=l=>i=n?i:l,s=l=>o=r?o:l;if(t){const l=Wn(i),u=Wn(o);l<0&&u<0?s(0):l>0&&u>0&&a(0)}if(i===o){let l=o===0?1:Math.abs(o*.05);s(o+l),t||a(i-l)}this.min=i,this.max=o}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,i;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const i={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},o=this._range||this,a=lO(i,o);return t.bounds==="ticks"&&bk(a,this,"value"),t.reverse?(a.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),a}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const i=(r-n)/Math.max(t.length-1,1)/2;n-=i,r+=i}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return Kh(t,this.chart.options.locale,this.options.ticks.format)}}class Co extends uO{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=It(t)?t:0,this.max=It(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=cr(this.options.ticks.minRotation),i=(t?Math.sin(r):Math.cos(r))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,o.lineHeight/i))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}re(Co,"id","linear"),re(Co,"defaults",{ticks:{callback:iC.formatters.numeric}});const Hu={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Ot=Object.keys(Hu);function K0(e,t){return e-t}function q0(e,t){if(je(t))return null;const n=e._adapter,{parser:r,round:i,isoWeekday:o}=e._parseOpts;let a=t;return typeof r=="function"&&(a=r(a)),It(a)||(a=typeof r=="string"?n.parse(a,r):n.parse(a)),a===null?null:(i&&(a=i==="week"&&(Ha(o)||o===!0)?n.startOf(a,"isoWeek",o):n.startOf(a,i)),+a)}function Q0(e,t,n,r){const i=Ot.length;for(let o=Ot.indexOf(e);o<i-1;++o){const a=Hu[Ot[o]],s=a.steps?a.steps:Number.MAX_SAFE_INTEGER;if(a.common&&Math.ceil((n-t)/(s*a.size))<=r)return Ot[o]}return Ot[i-1]}function cO(e,t,n,r,i){for(let o=Ot.length-1;o>=Ot.indexOf(n);o--){const a=Ot[o];if(Hu[a].common&&e._adapter.diff(i,r,a)>=t-1)return a}return Ot[n?Ot.indexOf(n):0]}function dO(e){for(let t=Ot.indexOf(e)+1,n=Ot.length;t<n;++t)if(Hu[Ot[t]].common)return Ot[t]}function eb(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:r,hi:i}=Yh(n,t),o=n[r]>=t?n[r]:n[i];e[o]=!0}}function fO(e,t,n,r){const i=e._adapter,o=+i.startOf(t[0].value,r),a=t[t.length-1].value;let s,l;for(s=o;s<=a;s=+i.add(s,1,r))l=n[s],l>=0&&(t[l].major=!0);return t}function tb(e,t,n){const r=[],i={},o=t.length;let a,s;for(a=0;a<o;++a)s=t[a],i[s]=a,r.push({value:s,major:!1});return o===0||!n?r:fO(e,r,i,n)}class au extends _o{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,n={}){const r=t.time||(t.time={}),i=this._adapter=new qM._date(t.adapters.date);i.init(n),na(r.displayFormats,i.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:q0(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,n=this._adapter,r=t.time.unit||"day";let{min:i,max:o,minDefined:a,maxDefined:s}=this.getUserBounds();function l(u){!a&&!isNaN(u.min)&&(i=Math.min(i,u.min)),!s&&!isNaN(u.max)&&(o=Math.max(o,u.max))}(!a||!s)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),i=It(i)&&!isNaN(i)?i:+n.startOf(Date.now(),r),o=It(o)&&!isNaN(o)?o:+n.endOf(Date.now(),r)+1,this.min=Math.min(i,o-1),this.max=Math.max(i+1,o)}_getLabelBounds(){const t=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],r=t[t.length-1]),{min:n,max:r}}buildTicks(){const t=this.options,n=t.time,r=t.ticks,i=r.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const o=this.min,a=this.max,s=wk(i,o,a);return this._unit=n.unit||(r.autoSkip?Q0(n.minUnit,this.min,this.max,this._getLabelCapacity(o)):cO(this,s.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:dO(this._unit),this.initOffsets(i),t.reverse&&s.reverse(),tb(this,s,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,r=0,i,o;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?n=1-i:n=(this.getDecimalForValue(t[1])-i)/2,o=this.getDecimalForValue(t[t.length-1]),t.length===1?r=o:r=(o-this.getDecimalForValue(t[t.length-2]))/2);const a=t.length<3?.5:.25;n=St(n,0,a),r=St(r,0,a),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,i=this.options,o=i.time,a=o.unit||Q0(o.minUnit,n,r,this._getLabelCapacity(n)),s=we(i.ticks.stepSize,1),l=a==="week"?o.isoWeekday:!1,u=Ha(l)||l===!0,c={};let d=n,h,f;if(u&&(d=+t.startOf(d,"isoWeek",l)),d=+t.startOf(d,u?"day":a),t.diff(r,n,a)>1e5*s)throw new Error(n+" and "+r+" are too far apart with stepSize of "+s+" "+a);const g=i.ticks.source==="data"&&this.getDataTimestamps();for(h=d,f=0;h<r;h=+t.add(h,s,a),f++)eb(c,h,g);return(h===r||i.bounds==="ticks"||f===1)&&eb(c,h,g),Object.keys(c).sort(K0).map(m=>+m)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}format(t,n){const i=this.options.time.displayFormats,o=this._unit,a=n||i[o];return this._adapter.format(t,a)}_tickFormatFunction(t,n,r,i){const o=this.options,a=o.ticks.callback;if(a)return We(a,[t,n,r],this);const s=o.time.displayFormats,l=this._unit,u=this._majorUnit,c=l&&s[l],d=u&&s[u],h=r[n],f=u&&d&&h&&h.major;return this._adapter.format(t,i||(f?d:c))}generateTickLabels(t){let n,r,i;for(n=0,r=t.length;n<r;++n)i=t[n],i.label=this._tickFormatFunction(i.value,n,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const n=this._offsets,r=this.getDecimalForValue(t);return this.getPixelForDecimal((n.start+r)*n.factor)}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return this.min+r*(this.max-this.min)}_getLabelSize(t){const n=this.options.ticks,r=this.ctx.measureText(t).width,i=cr(this.isHorizontal()?n.maxRotation:n.minRotation),o=Math.cos(i),a=Math.sin(i),s=this._resolveTickFontOptions(0).size;return{w:r*o+s*a,h:r*a+s*o}}_getLabelCapacity(t){const n=this.options.time,r=n.displayFormats,i=r[n.unit]||r.millisecond,o=this._tickFormatFunction(t,0,tb(this,[t],this._majorUnit),i),a=this._getLabelSize(o),s=Math.floor(this.isHorizontal()?this.width/a.w:this.height/a.h)-1;return s>0?s:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,r=i.length;n<r;++n)t=t.concat(i[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let n,r;if(t.length)return t;const i=this.getLabels();for(n=0,r=i.length;n<r;++n)t.push(q0(this,i[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return tC(t.sort(K0))}}re(au,"id","time"),re(au,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function Us(e,t,n){let r=0,i=e.length-1,o,a,s,l;n?(t>=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=di(e,"pos",t)),{pos:o,time:s}=e[r],{pos:a,time:l}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=di(e,"time",t)),{time:o,pos:s}=e[r],{time:a,pos:l}=e[i]);const u=a-o;return u?s+(l-s)*(t-o)/u:s}class nb extends au{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=Us(n,this.min),this._tableRange=Us(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,i=[],o=[];let a,s,l,u,c;for(a=0,s=t.length;a<s;++a)u=t[a],u>=n&&u<=r&&i.push(u);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(a=0,s=i.length;a<s;++a)c=i[a+1],l=i[a-1],u=i[a],Math.round((c+l)/2)!==u&&o.push({time:u,pos:a/(s-1)});return o}_generate(){const t=this.min,n=this.max;let r=super.getDataTimestamps();return(!r.includes(t)||!r.length)&&r.splice(0,0,t),(!r.includes(n)||r.length===1)&&r.push(n),r.sort((i,o)=>i-o)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?t=this.normalize(n.concat(r)):t=n.length?n:r,t=this._cache.all=t,t}getDecimalForValue(t){return(Us(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return Us(this._table,r*this._tableRange+this._minPos,!0)}}re(nb,"id","timeseries"),re(nb,"defaults",au.defaults);const LC="label";function rb(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function hO(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function HC(e,t){e.labels=t}function jC(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:LC;const r=[];e.datasets=t.map(i=>{const o=e.datasets.find(a=>a[n]===i[n]);return!o||!i.data||r.includes(o)?{...i}:(r.push(o),Object.assign(o,i),o)})}function gO(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:LC;const n={labels:[],datasets:[]};return HC(n,e.labels),jC(n,e.datasets,t),n}function mO(e,t){const{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:o,type:a,data:s,options:l,plugins:u=[],fallbackContent:c,updateMode:d,...h}=e,f=w.useRef(null),g=w.useRef(),m=()=>{f.current&&(g.current=new ki(f.current,{type:a,data:gO(s,o),options:l&&{...l},plugins:u}),rb(t,g.current))},b=()=>{rb(t,null),g.current&&(g.current.destroy(),g.current=null)};return w.useEffect(()=>{!i&&g.current&&l&&hO(g.current,l)},[i,l]),w.useEffect(()=>{!i&&g.current&&HC(g.current.config.data,s.labels)},[i,s.labels]),w.useEffect(()=>{!i&&g.current&&s.datasets&&jC(g.current.config.data,s.datasets,o)},[i,s.datasets]),w.useEffect(()=>{g.current&&(i?(b(),setTimeout(m)):g.current.update(d))},[i,l,s.labels,s.datasets,d]),w.useEffect(()=>{g.current&&(b(),setTimeout(m))},[a]),w.useEffect(()=>(m(),()=>b()),[]),w.createElement("canvas",Object.assign({ref:f,role:"img",height:n,width:r},h),c)}const pO=w.forwardRef(mO);function ag(e,t){return ki.register(t),w.forwardRef((n,r)=>w.createElement(pO,Object.assign({},n,{ref:r,type:e})))}const WC=ag("line",hl),bO=ag("bar",fl),ib=ag("doughnut",Go);ki.register(xo,Co,bi,Vn,Xo,NC,Za,BC);const ob=(e,t)=>{var i,o,a,s;const n=e.getVisibleDatasetCount(),r=e.getDatasetMeta(n-1).data.at(0);if(r){const{innerRadius:l}=r.getProps(["innerRadius"]),{ctx:u}=e,c=()=>{var _;const C=[].concat(t),D=C.length,I=u.font;let T=0,p=0,S;for(S=0;S<D;++S)u.font=C[S].font,T=Math.max(u.measureText(C[S].text).width,T),p+=(_=C[S].font)==null?void 0:_.lineHeight;return u.font=I,{height:p,width:T}},d=(C,D)=>{let I=document.createElement("div");document.body.appendChild(I),I.style.fontSize=`${D}px`,I.style.position="absolute",I.style.left="-10",I.style.top="-10",I.textContent=C;const T={width:I.clientWidth,height:I.clientHeight};return document.body.removeChild(I),I=null,T},h=c(),f=parseFloat(parseFloat(l).toFixed(2));u.textAlign="center",u.textBaseline="middle";const g=(e.chartArea.left+e.chartArea.right)/2,b=(e.chartArea.top+e.chartArea.bottom)/2-h.height/2;let y;const v=t.length;let x=0;for(y=0;y<v;++y){let C=(i=t[y].font)==null?void 0:i.size,D=(o=t[y].font)==null?void 0:o.lineHeight;const I=typeof t[y].text=="number"?t[y].text.toString():t[y].text;for(;d(I,C).width>f+(t[y].id==="value"?50:0);)C-=1,D=d(I,C).height;I.length>22&&D<14&&(D=18);const T=b+D/2+x,p=typeof t[y].text=="number"?new Intl.NumberFormat("id-ID",{style:"currency",currency:"IDR"}).format(t[y].text):t[y].text;let S=t[y].urlIconDesc?" ":"";if(t[y].percentage!==void 0?S+=`${t[y].percentage}% ${t[y].text}`:S+=p,u.fillStyle=t[y].color,u.font=`${C<10?10:C}px sans-serif`,x+=D,t[y].percentage!==void 0&&t[y].urlIconDesc){const $=((s=(a=t[y])==null?void 0:a.percentage)==null?void 0:s.length)??0,_=new Image;_.src=t[y].urlIconDesc,u.drawImage(_,45-($>6?$+2:$-2.5),T-8,16,14)}u.fillText(S,g,T)}u.restore(),u.save()}},vO=({labels:e,data:t,backgroundColor:n,options:r={},redraw:i,widthInnerDoughnut:o,innerLabels:a,open:s=!0,keyRemoveDataOpen:l="gap",keyLabel:u="title",keyValue:c="originalValue",keyBackground:d="backgroundColor",className:h})=>{const f={labels:e||t.map(m=>m[u]),datasets:[{data:t.map(m=>m[c]),backgroundColor:n||t.map(m=>m[d])}]},g={cutout:o,animation:{duration:i?400:0},plugins:{legend:{display:!1},tooltip:{external(m){let b=document.getElementById("chartjs-tooltip");b||(b=document.createElement("div"),b.id="chartjs-tooltip",b.innerHTML="<table></table>",document.body.appendChild(b));const y=m.tooltip;if(y.opacity===0){b.style.opacity="0";return}b.classList.remove("above","below","no-transform"),y.yAlign?b.classList.add(y.yAlign):b.classList.add("no-transform");const v=t.filter(T=>!T[u]),x=t.filter(T=>T[c]>0&&T[c]<1);if(v.length===1&&x.length===1)return;function C(T){return T.lines}if(y.body){const T=y.title||[];let p=y.body.map(C),S="<thead>";T.forEach(_=>{let A="";A+="display: flex",A+="; justify-content: center",A+="; font-weight: 600",A+="; font-size: 12px",A+="; padding: 0px 14px",S+=`<tr><span style="${A}">${_}</span></tr>`}),S+="</thead><tbody>",p.length>1&&p[0][0]===p[1][0]&&(p=[p[0]]),p.forEach(_=>{let A="";A+="display: flex",A+="; justify-content: center",A+="; color: #0163C8",A+="; padding: 0px 14px",A+="; font-size: 12px";const k=`<span style="${A}">${_}</span>`;S+=`<tr><td>${k}</td></tr>`}),S+="</tbody>";const $=b.querySelector("table");$&&($.innerHTML=S)}const D=m.chart.canvas.getBoundingClientRect(),I=D.top+window.pageYOffset+y.caretY;b.style.opacity="1",b.style.border="solid 1px #0163C8",b.style.background="white",b.style.height="fit-content",b.style.borderRadius="10px",b.style.position="absolute",b.style.zIndex="10",b.style.padding="4px 0",b.style.left=`${D.left+window.pageXOffset+y.caretX-80}px`,b.style.top=`${I>300&&!s?280:I}px`,b.style.pointerEvents="none"},displayColors:!0,enabled:!1,callbacks:{title(m){const b=t[m[0].dataIndex];return b==null?void 0:b[u]},label(m){const b=t==null?void 0:t[m.dataIndex];let y="Nilai: ";return b&&(y+=b.value),y}}}},elements:{arc:{borderWidth:0}}};return E.jsxs("div",{className:h??"",children:[!s&&E.jsx(ib,{data:f,redraw:i,plugins:[{id:"draw",beforeDraw(m){ob(m,a)}}],options:Object.keys(r).length>1?r:g}),s&&E.jsx(ib,{data:f,redraw:i,plugins:[{id:"draw",beforeDraw(m){ob(m,a.filter(b=>b.id!==l))}}],options:Object.keys(r).length>1?r:g})]})},Js=e=>{let t;const n=new Date(e??new Date);return e&&(t=Eh(new Date(n.setHours(n.getHours()+7)).toISOString().slice(0,10))),t},yO=({month:e,year:t,type:n=["month","year"],activeType:r="month",minDate:i,maxDate:o,className:a,classNameButton:s,onChange:l,buttonClick:u,id:c="date-picker",idPopover:d="date-picker-popover",floatingOptions:h={},offsetPopover:f=5,zIndexPopper:g=1,hiddenHeader:m})=>{const{locale:b}=In(),y=w.useRef(null),v=Js(i),x=Js(o),C=D=>{var I;typeof l=="function"&&(l({month:D.month,year:D.year}),(I=y.current)==null||I.setShow(!1))};return E.jsxs(E.Fragment,{children:[E.jsx("div",{id:c,onClick:D=>{var I;D.stopPropagation(),(I=y.current)==null||I.handlerShow(D)},className:s,children:typeof u=="function"?u({month:e,year:t}):"Pilih Tanggal"}),E.jsx("div",{className:a??"",children:E.jsx(br,{zIndex:g,ref:y,offset:f,id:d,floatingOptions:{placement:"bottom-end",...h},onClick:D=>D.stopPropagation(),children:E.jsx(Vh,{locale:"id-ID",children:E.jsx(ku,{minValue:v,maxValue:x,minDate:i,maxDate:o,activeType:n.length===1?n[0]:r,locale:b,value:Js(`${t}/${e}/1`),createCalendar:os,defaultValue:Js(`${t}/${e}/1`),onChange:C,handlerReset:()=>{},handlerSubmit:()=>{},withDateSelect:!1,type:n,hiddenHeader:m})})})})]})},xO=({indeterminate:e,className:t="",classNameContainer:n,...r})=>{const i=w.useRef(null);return w.useEffect(()=>{typeof e=="boolean"&&(i.current.indeterminate=!r.checked&&e)},[i,e]),E.jsx("div",{className:`1ru-flex 1ru-items-center 1ru-h-full ${t??""}`,children:E.jsx(Mu,{ref:i,label:"",variants:"blue-700",borderRadius:"full",className:"1ru-flex 1ru-items-center 1ru-h-full",classNameContainer:`1ru-flex 1ru-items-center 1ru-h-full ${n??""}}`,...r,onClick:o=>{o.stopPropagation(),typeof r.onClick=="function"&&r.onClick(o)},type:"checkbox"})})},CO="_input_6rs0g_7",wO="_error_6rs0g_32",on={"container-xs":"_container-xs_6rs0g_1","container-input":"_container-input_6rs0g_4",input:CO,error:wO,"isset-right-icon":"_isset-right-icon_6rs0g_41","isset-left-icon":"_isset-left-icon_6rs0g_45","start-icon":"_start-icon_6rs0g_49","end-icon":"_end-icon_6rs0g_52","label-error":"_label-error_6rs0g_55","container-s":"_container-s_6rs0g_61","container-l":"_container-l_6rs0g_121"},sg=w.forwardRef(({name:e,classNameContainer:t,id:n,type:r="text",startIcon:i,endIcon:o,error:a,sizeInput:s="xs",classNameLabelError:l,className:u,...c},d)=>{const h={size:{l:on["container-l"],s:on["container-s"],xs:on["container-xs"]}},f=()=>typeof i=="function"||w.isValidElement(i),g=()=>typeof o=="function"||w.isValidElement(o);return E.jsxs("div",{className:`${h.size[s]} ${t}`,children:[E.jsxs("div",{className:`${on["container-input"]}`,children:[E.jsxs("div",{className:on["start-icon"],children:[typeof i=="function"&&i(),w.isValidElement(i)&&i]}),E.jsx("input",{id:n??e,className:`${on.input} ${a?on.error:""}
151
151
  ${f()?on["isset-left-icon"]:""}
152
152
  ${g()?on["isset-right-icon"]:""}
153
153
  ${u??""}`,ref:d,type:r,...c}),E.jsxs("div",{className:on["end-icon"],children:[typeof o=="function"&&o(),w.isValidElement(o)&&o]})]}),a&&E.jsx("label",{className:`${on["label-error"]}
@@ -160,10 +160,10 @@ You should wrap it with \`css\` like this:
160
160
  ${(d.step??f)<e?Tn.passed:""}
161
161
  ${(d.step??f)===e?Tn.active:""}
162
162
  ${d.className??""}`,children:e>d.step&&d.valueDone?E.jsx(E.Fragment,{children:d.valueDone}):E.jsx(E.Fragment,{children:d.value?d.value:f})}),h+1!==(t==null?void 0:t.length)&&E.jsx("div",{style:{width:n/2}})]}),d.desc&&E.jsx("div",{className:`${Tn["content-description"]} ${o??""}
163
- ${(d.step??f)<=e?Tn.active:""}`,style:{maxWidth:h+1===(t==null?void 0:t.length)||h===0?(n-30)*2:n-30,marginRight:h+1===(t==null?void 0:t.length)?-(n/2):0,marginLeft:h===0?-(n/2):0},children:d.desc})]},h)})});ki.register(xo,Co,bi,Vn,NC,Za,BC);const BO=(e,t,n)=>{const r=e,i=t||new Date().getMonth(),o=n||new Date().getFullYear();return new Date(`${i}/${r}/${o}`)},OO=({data:e,className:t,height:n=65})=>{const r=w.useRef(null),i=e.map(h=>sa(BO(1,h.label,h.year),"MMM yy",{locale:vl}))||[],[o,a]=w.useState(""),[s,l]=w.useState(""),u=h=>{const f=[],g=[];let m=!h.find(b=>b.isCurrent);return h.forEach(b=>{m?(g.push(b.value),f.push(null)):(f.push(b.value),b.isCurrent?(m=!0,g.push(b.value)):g.push(null))}),{passed:f,notPassed:g}},c={labels:i,datasets:[{label:"",fill:"blue",backgroundColor:"rgba(75,192,192,1)",borderColor:o,borderCapStyle:"butt",borderDashOffset:0,borderJoinStyle:"miter",pointBackgroundColor:function(h){const f=e[h.dataIndex];let g=s;return f.isCurrent&&(g="#ED0019"),g},pointBorderWidth:.1,pointHoverRadius:4,pointRadius:5,pointBorderColor:s,pointHoverBorderColor:o,data:u(e).passed||[]},{label:"",fill:"grey",backgroundColor:"rgba(75,192,192,1)",borderColor:"#D6D6D6",borderCapStyle:"butt",borderDashOffset:0,pointRadius:5,borderJoinStyle:"miter",pointBackgroundColor:s,pointBorderWidth:.1,pointHoverRadius:4,borderDash:[15,5],data:u(e).notPassed||[]}]},d={interaction:{mode:"index",intersect:!1},plugins:{legend:{display:!1,labels:{usePointStyle:!0}},tooltip:{external:function(h){let f=document.getElementById("chartjs-tooltip");f||(f=document.createElement("div"),f.id="chartjs-tooltip",f.innerHTML="<table></table>",document.body.appendChild(f));const g=h.tooltip;if(g.opacity===0){f.style.opacity="0";return}f.classList.remove("above","below","no-transform"),g.yAlign?f.classList.add(g.yAlign):f.classList.add("no-transform");function m(y){return y.lines}if(g.body){const y=g.title||[];let v=g.body.map(m),x="<thead>";y.forEach(D=>{let I="";I+="display: flex",I+="; justify-content: center",I+="; font-weight: 600",I+="; font-size: 12px",I+="; padding: 0px 14px",x+=`<tr><span style="${I}">${D}</span></tr>`}),x+="</thead><tbody>",v.length>1&&v[0][0]===v[1][0]&&(v=[v[0]]),v.forEach(D=>{let I="";I+="display: flex",I+="; justify-content: center",I+="; color: #0163C8",I+="; padding: 0px 14px",I+="; font-size: 12px";const T=`<span style="${I}">${D}</span>`;x+=`<tr><td>${T}</td></tr>`}),x+="</tbody>";const C=f.querySelector("table");C&&(C.innerHTML=x)}const b=h.chart.canvas.getBoundingClientRect();f.style.opacity="1",f.style.border="solid 1px #0163C8",f.style.background="white",f.style.height="fit-content",f.style.borderRadius="10px",f.style.position="absolute",f.style.zIndex="10",f.style.padding="4px 0",f.style.left=b.left+window.pageXOffset+g.caretX-30+"px",f.style.top=b.top+window.pageYOffset+g.caretY-60+"px",f.style.pointerEvents="none"},displayColors:!0,enabled:!1,callbacks:{title:function(h){const f=e[h[0].dataIndex];return sa(new Date(`1/${f.label}/${f.year}`),"MMMM yyyy",{locale:vl})},label:function(h){let f=h.dataset.label??"";return f&&(f+=": "),h.parsed.y!==null&&(f+=new Intl.NumberFormat("id-ID",{style:"currency",currency:"IDR"}).format(h.parsed.y)),f}}}},scales:{x:{grid:{display:!1},beginAtZero:!0,ticks:{autoSkip:!0,maxTicksLimit:20}},y:{min:0,grid:{display:!1},beginAtZero:!0,ticks:{maxTicksLimit:6,callback:function(h){return cu(h)??0}}}}};return w.useEffect(()=>{if(r.current){const h=r.current.getContext("2d"),f=h==null?void 0:h.createLinearGradient(0,100,500,-500);f==null||f.addColorStop(0,"rgba(237, 0, 25, 0)"),f==null||f.addColorStop(1,"rgba(237, 0, 25, 20)");const g=h.fillStyle="rgba(255, 255, 255, 0)";l(g),a(f)}},[]),E.jsxs("div",{className:t??"",children:[E.jsx(WC,{options:d,data:c,height:n}),E.jsx("div",{className:"1ru-h-5",children:E.jsx("canvas",{ref:r})})]})},NO="_container_1oiqk_1",ub={container:NO,"container-popover":"_container-popover_1oiqk_5"},VO=({id:e="1ru-tooltip",children:t,text:n,zIndexPopover:r=1,onShow:i,onClose:o,placement:a="top",backgroundColor:s="black",popoverProps:l={},arrowProps:u={},className:c,isHover:d,delay:h=600})=>{let f;const g=w.useRef(null),m={backgroundColor:jb[s]||s},[b,y]=w.useState(!1),[v,x]=w.useState(!1),C=I=>{var T;(T=g.current)==null||T.handlerShow(I),x(!0),typeof i=="function"&&i()},D=()=>{var I;x(!1),b||(clearInterval(f),(I=g.current)==null||I.setShow(!1),typeof o=="function"&&o())};return E.jsxs(E.Fragment,{children:[E.jsx("div",{id:e,onMouseEnter:I=>{if(d&&!b){const T=I.currentTarget;f=setTimeout(()=>{C({...I,currentTarget:T})},h)}},onMouseLeave:()=>{d&&!b&&D()},onClick:I=>{y(!0),clearInterval(f),v||C(I)},className:ub.container,children:t}),E.jsx(br,{floatingOptions:{placement:a},ref:g,id:"1ru-popover-tooltip",offset:10,withArrow:!0,zIndex:r,onClose:()=>{b&&(y(!1),D())},styleInnerPopover:{backgroundColor:m.backgroundColor},propsArrow:{fill:m.backgroundColor,...u},className:`${ub["container-popover"]} ${c??""}`,...l,children:n})]})},LO="_icon_i1q12_5",jO="_show_i1q12_8",Yc={"container-popover":"_container-popover_i1q12_1",icon:LO,show:jO},GC=w.forwardRef((e,t)=>{const{children:n,id:r="1ru-button-popover",text:i="",startIcon:o,endIcon:a,startIconShow:s,endIconShow:l,classNameButton:u="",classNameButtonShow:c="",className:d="",placement:h="top-end",popoverProps:f,zIndexPopover:g=1,offset:m=5,idPopover:b="1ru-popover-button-popover",onClick:y,onClose:v,...x}=e,C=w.useRef(null),D=w.useRef(null),[I,T]=w.useState(!1),p=(A,k,R)=>{let M=E.jsx(E.Fragment,{});return A&&w.isValidElement(k)?M=k:w.isValidElement(R)&&(M=E.jsx("div",{className:`${Yc.icon} ${A?Yc.show:""}`,children:R})),M},S=A=>{var k;(k=C.current)==null||k.setShow(A),T(A)},$=A=>{var k;(k=C.current)==null||k.handlerShow(A),T(!0)},_=()=>{var A;T(!1),(A=C.current)==null||A.setShow(!1),typeof v=="function"&&v()};return w.useImperativeHandle(t,()=>({show:I,setShow:S,handlerClose:_,handlerShow:$}),[I]),E.jsxs(E.Fragment,{children:[E.jsx(Dn,{ref:D,id:r,className:`${u} ${I?c:""}`,onClick:A=>{I?_():typeof y=="function"?y(A):$(A)},startIcon:p(I,s,o),endIcon:p(I,l,a),...x,children:i}),E.jsx(br,{ref:C,id:b,offset:m,floatingOptions:{placement:h},zIndex:g,onClose:_,className:`${Yc["container-popover"]} ${d}`,...f,children:n})]})});GC.displayName="ButtonPopover";ki.register(xo,Co,bi,Vn,kC,Za);const HO=e=>({chart:t,tooltip:n})=>{var l,u,c,d,h,f;const r={};if(n.opacity===0){e(g=>({...g,style:{...g.style,opacity:0,pointerEvents:"none"}}));return}if(!n.dataPoints||n.dataPoints.length===0)return;r.opacity="1",r.position="absolute",r.pointerEvents="none";const i=t.canvas.getBoundingClientRect();r.left=i.left+window.pageXOffset+n.caretX+"px",r.top=i.top+window.pageYOffset+n.caretY+"px";const o=((u=(l=n.dataPoints)==null?void 0:l[0])==null?void 0:u.label)??"",a=((d=(c=n.dataPoints)==null?void 0:c[0])==null?void 0:d.raw)??"",s=((f=(h=n.dataPoints)==null?void 0:h[0])==null?void 0:f.dataset.label)??"";e({dataset:s,label:o,value:a,style:r,dataPoints:n.dataPoints})},WO={id:"hairlinePlugin",beforeDatasetsDraw:e=>{const t=e.scales.y;if(!t)return;const{ctx:n}=e,{top:r,bottom:i,left:o,right:a}=e.chartArea;if(t.min>0||t.max<0)return;const s=t.getPixelForValue(0);s<r||s>i||(n.save(),n.beginPath(),n.moveTo(o,s),n.lineTo(a,s),n.lineWidth=2,n.strokeStyle="rgb(207, 216, 220)",n.setLineDash([4,3]),n.stroke(),n.restore())}},zO={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1}},scales:{y:{grace:"15%",position:"right",border:{display:!1,dash:[5,3],color:"#CFD8DC"},ticks:{font:{size:10,weight:"normal"},padding:10,color:"#898989"}},x:{border:{dash:[5,3],color:"#CFD8DC"},ticks:{font:{size:10,weight:"normal"},color:"#898989"}}},interaction:{mode:"index",intersect:!1}},GO=({data:e,height:t,classNameContainer:n,id:r,options:i,CustomTooltip:o})=>{const a=w.useRef(void 0),s=w.useRef(0),l=w.useRef(0),[u,c]=w.useState({dataset:"",label:"",value:0,style:{opacity:0,position:"absolute",left:0,bottom:0},dataPoints:[]}),d=w.useCallback(function({ctx:m,chartArea:b,scales:y,chartHeight:v,gradientFor:x,item:C}){let T=(y.y.getPixelForValue(0)-b.top)/v;T=T<0?0:T>1?1:T,a.current=m.createLinearGradient(0,b.top,0,v+b.top),x==="background"?(a.current.addColorStop(0,(C==null?void 0:C.colorBackgroundPositiveZero)||"#9FD2FF"),a.current.addColorStop(T,(C==null?void 0:C.colorBackgroundPositivePercentage)||"rgba(115, 235, 163, 0.1)"),a.current.addColorStop(T,(C==null?void 0:C.colorBackgroundNegativePercentage)||"rgba(235, 107, 107, 0.1)"),a.current.addColorStop(1,(C==null?void 0:C.colorBackgroundNegativeOne)||"#EB6B6B")):(a.current.addColorStop(T,(C==null?void 0:C.colorBorderPositive)||"#80CBC4"),a.current.addColorStop(T,(C==null?void 0:C.colorBorderNegative)||"#EB6B6B"))},[]),h=w.useCallback(function({ctx:m,chartArea:b,scales:y,gradientFor:v,item:x}){const C=b.right-b.left,D=b.bottom-b.top;return(!a.current||s.current!==C||l.current!==D)&&(s.current=C,l.current=D,d({ctx:m,chartArea:b,scales:y,chartHeight:D,gradientFor:v,item:x})),d({ctx:m,chartArea:b,scales:y,chartHeight:D,gradientFor:v,item:x}),a.current},[]),f=w.useMemo(()=>({...e,datasets:e.datasets.map(b=>({fill:!0,backgroundColor:function(y){const v=y.chart,{ctx:x,chartArea:C,scales:D}=v;if(C)return h({ctx:x,chartArea:C,scales:D,gradientFor:"background",item:b})},borderColor:function(y){const v=y.chart,{ctx:x,chartArea:C,scales:D}=v;if(C)return h({ctx:x,chartArea:C,scales:D,gradientFor:"border",item:b})},borderWidth:3,tension:0,pointRadius:0,pointHoverRadius:4,...b,data:b.data}))}),[e]),g=w.useMemo(()=>la(zO,{plugins:{tooltip:{enabled:!o,external:({chart:b,tooltip:y})=>o?HO(c)({chart:b,tooltip:y}):void 0}}},i??{}),[i,o]);return E.jsxs("div",{id:r,className:n,style:{height:t||"300px"},children:[o&&E.jsx(Wh,{selector:"body",children:E.jsx(o,{...u})}),E.jsx(WC,{data:f,options:g,plugins:[WO]})]})};ki.register(xo,Co,pl,Za,bi,kC,Za);const ZO=e=>({chart:t,tooltip:n})=>{var l,u,c,d,h,f;const r={};if(n.opacity===0){e(g=>({...g,style:{...g.style,opacity:0,pointerEvents:"none"}}));return}if(!n.dataPoints||n.dataPoints.length===0)return;r.opacity="1",r.position="absolute",r.pointerEvents="none";const i=t.canvas.getBoundingClientRect();r.left=i.left+window.pageXOffset+n.caretX+"px",r.top=i.top+window.pageYOffset+n.caretY+"px";const o=((u=(l=n.dataPoints)==null?void 0:l[0])==null?void 0:u.label)??"",a=((d=(c=n.dataPoints)==null?void 0:c[0])==null?void 0:d.raw)??"",s=((f=(h=n.dataPoints)==null?void 0:h[0])==null?void 0:f.dataset.label)??"";e({dataset:s,label:o,value:a,style:r,dataPoints:n.dataPoints})},XO={id:"labelplugin",afterDatasetsDraw(e){const{ctx:t,chartArea:{top:n,bottom:r}}=e;t.save(),e.data.datasets.forEach((i,o)=>{const a=e.getDatasetMeta(o);a.visible&&a.data.forEach((s,l)=>{const u=i.data[l]||0,c=i!=null&&i.setDigit?cu(String(u)):String(u);t.font="12px Lato",t.textAlign="center";let d,h=!1;typeof u=="number"&&u>=0?(t.textBaseline="bottom",t.fillStyle=(i==null?void 0:i.colorTextLabelPositive)||s.options.borderColor,d=s.y-5,d>n&&(h=!0)):(t.textBaseline="top",t.fillStyle=(i==null?void 0:i.colorTextLabelNegative)||s.options.borderColor,d=s.y+5,d<r&&(h=!0)),h&&t.fillText(c,s.x,d)})}),t.restore()}},YO={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1}},scales:{y:{grace:"15%",position:"left",border:{display:!1,dash:[5,3],color:"#CFD8DC"},ticks:{callback:function(e){return cu(e)??0},font:{size:10,weight:"normal"},padding:10,color:"#898989"}},x:{grid:{display:!1},border:{dash:[5,3],color:"#CFD8DC"},ticks:{font:{size:10,weight:"normal"},color:"#898989"}}},interaction:{mode:"index",intersect:!1}},UO=({data:e,classNameContainer:t,height:n,id:r,options:i,CustomTooltip:o})=>{const a=w.useRef(void 0),s=w.useRef(0),l=w.useRef(0),[u,c]=w.useState({dataset:"",label:"",value:0,style:{opacity:0,position:"absolute",left:0,bottom:0},dataPoints:[]}),d=w.useCallback(function({ctx:m,chartArea:b,scales:y,chartHeight:v,gradientFor:x,item:C}){let T=(y.y.getPixelForValue(0)-b.top)/v;T=T<0?0:T>1?1:T,a.current=m.createLinearGradient(0,b.top,0,v+b.top),x==="background"?(a.current.addColorStop(0,(C==null?void 0:C.colorBackgroundPositiveZero)||"#9FD2FF"),a.current.addColorStop(T,(C==null?void 0:C.colorBackgroundPositivePercentage)||"rgba(115, 235, 163, 0.1)"),a.current.addColorStop(T,(C==null?void 0:C.colorBackgroundNegativePercentage)||"rgba(235, 107, 107, 0.1)"),a.current.addColorStop(1,(C==null?void 0:C.colorBackgroundNegativeOne)||"#EB6B6B")):(a.current.addColorStop(T,(C==null?void 0:C.colorBorderPositive)||"#80CBC4"),a.current.addColorStop(T,(C==null?void 0:C.colorBorderNegative)||"#EB6B6B"))},[]),h=w.useCallback(function({ctx:m,chartArea:b,scales:y,gradientFor:v,item:x}){const C=b.right-b.left,D=b.bottom-b.top;return(!a.current||s.current!==C||l.current!==D)&&(s.current=C,l.current=D,d({ctx:m,chartArea:b,scales:y,chartHeight:D,gradientFor:v,item:x})),d({ctx:m,chartArea:b,scales:y,chartHeight:D,gradientFor:v,item:x}),a.current},[]),f=w.useMemo(()=>({...e,datasets:e.datasets.map(b=>({fill:!0,backgroundColor:function(y){const v=y.chart,{ctx:x,chartArea:C,scales:D}=v;if(C)return h({ctx:x,chartArea:C,scales:D,gradientFor:"background",item:b})},borderColor:function(y){const v=y.chart,{ctx:x,chartArea:C,scales:D}=v;if(C)return h({ctx:x,chartArea:C,scales:D,gradientFor:"border",item:b})},borderWidth:0,tension:0,pointRadius:0,pointHoverRadius:4,setDigit:!0,...b,data:b.data}))}),[e]),g=w.useMemo(()=>la(YO,{plugins:{tooltip:{enabled:!o,external:({chart:b,tooltip:y})=>o?ZO(c)({chart:b,tooltip:y}):void 0}}},i??{}),[i,o]);return E.jsxs("div",{id:r,className:t,style:{height:n||"300px"},children:[o&&E.jsx(Wh,{selector:"body",children:E.jsx(o,{...u})}),E.jsx(bO,{data:f,options:g,plugins:[XO]})]})},JO="_left_1s2i5_4",KO="_right_1s2i5_7",qO="_indicator_1s2i5_16",QO="_active_1s2i5_19",Dr={"container-step-indicator":"_container-step-indicator_1s2i5_1",left:JO,right:KO,"text-step-indicator":"_text-step-indicator_1s2i5_10","step-indicator":"_step-indicator_1s2i5_13",indicator:qO,active:QO};function eN(e,t){if(e<=0)return"0px";if(e===1)return"100%";const n=e-1;return`calc((100% - (${t} * ${n})) / ${e})`}const tN=({activeStep:e=0,countStep:t=0,classNameActiveStepIndicator:n="",classNameContainer:r="",classNameDesc:i="",classNameStepIndicator:o="",id:a="1ru-step-indicator",locationStepIndicator:s="right",widthStepIndicator:l=120,dynamicWidthStepIndicator:u=!1,gapStepIndicator:c="2px",classNameStepIndicatorContainer:d=""})=>E.jsxs("div",{id:a,className:`${Dr["container-step-indicator"]}
163
+ ${(d.step??f)<=e?Tn.active:""}`,style:{maxWidth:h+1===(t==null?void 0:t.length)||h===0?(n-30)*2:n-30,marginRight:h+1===(t==null?void 0:t.length)?-(n/2):0,marginLeft:h===0?-(n/2):0},children:d.desc})]},h)})});ki.register(xo,Co,bi,Vn,NC,Za,BC);const BO=(e,t,n)=>{const r=e,i=t||new Date().getMonth(),o=n||new Date().getFullYear();return new Date(`${i}/${r}/${o}`)},OO=({data:e,className:t,height:n=65})=>{const r=w.useRef(null),i=e.map(h=>sa(BO(1,h.label,h.year),"MMM yy",{locale:vl}))||[],[o,a]=w.useState(""),[s,l]=w.useState(""),u=h=>{const f=[],g=[];let m=!h.find(b=>b.isCurrent);return h.forEach(b=>{m?(g.push(b.value),f.push(null)):(f.push(b.value),b.isCurrent?(m=!0,g.push(b.value)):g.push(null))}),{passed:f,notPassed:g}},c={labels:i,datasets:[{label:"",fill:"blue",backgroundColor:"rgba(75,192,192,1)",borderColor:o,borderCapStyle:"butt",borderDashOffset:0,borderJoinStyle:"miter",pointBackgroundColor:function(h){const f=e[h.dataIndex];let g=s;return f.isCurrent&&(g="#ED0019"),g},pointBorderWidth:.1,pointHoverRadius:4,pointRadius:5,pointBorderColor:s,pointHoverBorderColor:o,data:u(e).passed||[]},{label:"",fill:"grey",backgroundColor:"rgba(75,192,192,1)",borderColor:"#D6D6D6",borderCapStyle:"butt",borderDashOffset:0,pointRadius:5,borderJoinStyle:"miter",pointBackgroundColor:s,pointBorderWidth:.1,pointHoverRadius:4,borderDash:[15,5],data:u(e).notPassed||[]}]},d={interaction:{mode:"index",intersect:!1},plugins:{legend:{display:!1,labels:{usePointStyle:!0}},tooltip:{external:function(h){let f=document.getElementById("chartjs-tooltip");f||(f=document.createElement("div"),f.id="chartjs-tooltip",f.innerHTML="<table></table>",document.body.appendChild(f));const g=h.tooltip;if(g.opacity===0){f.style.opacity="0";return}f.classList.remove("above","below","no-transform"),g.yAlign?f.classList.add(g.yAlign):f.classList.add("no-transform");function m(y){return y.lines}if(g.body){const y=g.title||[];let v=g.body.map(m),x="<thead>";y.forEach(D=>{let I="";I+="display: flex",I+="; justify-content: center",I+="; font-weight: 600",I+="; font-size: 12px",I+="; padding: 0px 14px",x+=`<tr><span style="${I}">${D}</span></tr>`}),x+="</thead><tbody>",v.length>1&&v[0][0]===v[1][0]&&(v=[v[0]]),v.forEach(D=>{let I="";I+="display: flex",I+="; justify-content: center",I+="; color: #0163C8",I+="; padding: 0px 14px",I+="; font-size: 12px";const T=`<span style="${I}">${D}</span>`;x+=`<tr><td>${T}</td></tr>`}),x+="</tbody>";const C=f.querySelector("table");C&&(C.innerHTML=x)}const b=h.chart.canvas.getBoundingClientRect();f.style.opacity="1",f.style.border="solid 1px #0163C8",f.style.background="white",f.style.height="fit-content",f.style.borderRadius="10px",f.style.position="absolute",f.style.zIndex="10",f.style.padding="4px 0",f.style.left=b.left+window.pageXOffset+g.caretX-30+"px",f.style.top=b.top+window.pageYOffset+g.caretY-60+"px",f.style.pointerEvents="none"},displayColors:!0,enabled:!1,callbacks:{title:function(h){const f=e[h[0].dataIndex];return sa(new Date(`1/${f.label}/${f.year}`),"MMMM yyyy",{locale:vl})},label:function(h){let f=h.dataset.label??"";return f&&(f+=": "),h.parsed.y!==null&&(f+=new Intl.NumberFormat("id-ID",{style:"currency",currency:"IDR"}).format(h.parsed.y)),f}}}},scales:{x:{grid:{display:!1},beginAtZero:!0,ticks:{autoSkip:!0,maxTicksLimit:20}},y:{min:0,grid:{display:!1},beginAtZero:!0,ticks:{maxTicksLimit:6,callback:function(h){return cu(h)??0}}}}};return w.useEffect(()=>{if(r.current){const h=r.current.getContext("2d"),f=h==null?void 0:h.createLinearGradient(0,100,500,-500);f==null||f.addColorStop(0,"rgba(237, 0, 25, 0)"),f==null||f.addColorStop(1,"rgba(237, 0, 25, 20)");const g=h.fillStyle="rgba(255, 255, 255, 0)";l(g),a(f)}},[]),E.jsxs("div",{className:t??"",children:[E.jsx(WC,{options:d,data:c,height:n}),E.jsx("div",{className:"1ru-h-5",children:E.jsx("canvas",{ref:r})})]})},NO="_container_1oiqk_1",ub={container:NO,"container-popover":"_container-popover_1oiqk_5"},VO=({id:e="1ru-tooltip",children:t,text:n,zIndexPopover:r=1,onShow:i,onClose:o,placement:a="top",backgroundColor:s="black",popoverProps:l={},arrowProps:u={},className:c,isHover:d,delay:h=600})=>{let f;const g=w.useRef(null),m={backgroundColor:Hb[s]||s},[b,y]=w.useState(!1),[v,x]=w.useState(!1),C=I=>{var T;(T=g.current)==null||T.handlerShow(I),x(!0),typeof i=="function"&&i()},D=()=>{var I;x(!1),b||(clearInterval(f),(I=g.current)==null||I.setShow(!1),typeof o=="function"&&o())};return E.jsxs(E.Fragment,{children:[E.jsx("div",{id:e,onMouseEnter:I=>{if(d&&!b){const T=I.currentTarget;f=setTimeout(()=>{C({...I,currentTarget:T})},h)}},onMouseLeave:()=>{d&&!b&&D()},onClick:I=>{y(!0),clearInterval(f),v||C(I)},className:ub.container,children:t}),E.jsx(br,{floatingOptions:{placement:a},ref:g,id:"1ru-popover-tooltip",offset:10,withArrow:!0,zIndex:r,onClose:()=>{b&&(y(!1),D())},styleInnerPopover:{backgroundColor:m.backgroundColor},propsArrow:{fill:m.backgroundColor,...u},className:`${ub["container-popover"]} ${c??""}`,...l,children:n})]})},LO="_icon_i1q12_5",HO="_show_i1q12_8",Yc={"container-popover":"_container-popover_i1q12_1",icon:LO,show:HO},GC=w.forwardRef((e,t)=>{const{children:n,id:r="1ru-button-popover",text:i="",startIcon:o,endIcon:a,startIconShow:s,endIconShow:l,classNameButton:u="",classNameButtonShow:c="",className:d="",placement:h="top-end",popoverProps:f,zIndexPopover:g=1,offset:m=5,idPopover:b="1ru-popover-button-popover",onClick:y,onClose:v,...x}=e,C=w.useRef(null),D=w.useRef(null),[I,T]=w.useState(!1),p=(A,k,R)=>{let M=E.jsx(E.Fragment,{});return A&&w.isValidElement(k)?M=k:w.isValidElement(R)&&(M=E.jsx("div",{className:`${Yc.icon} ${A?Yc.show:""}`,children:R})),M},S=A=>{var k;(k=C.current)==null||k.setShow(A),T(A)},$=A=>{var k;(k=C.current)==null||k.handlerShow(A),T(!0)},_=()=>{var A;T(!1),(A=C.current)==null||A.setShow(!1),typeof v=="function"&&v()};return w.useImperativeHandle(t,()=>({show:I,setShow:S,handlerClose:_,handlerShow:$}),[I]),E.jsxs(E.Fragment,{children:[E.jsx(Dn,{ref:D,id:r,className:`${u} ${I?c:""}`,onClick:A=>{I?_():typeof y=="function"?y(A):$(A)},startIcon:p(I,s,o),endIcon:p(I,l,a),...x,children:i}),E.jsx(br,{ref:C,id:b,offset:m,floatingOptions:{placement:h},zIndex:g,onClose:_,className:`${Yc["container-popover"]} ${d}`,...f,children:n})]})});GC.displayName="ButtonPopover";ki.register(xo,Co,bi,Vn,kC,Za);const jO=e=>({chart:t,tooltip:n})=>{var l,u,c,d,h,f;const r={};if(n.opacity===0){e(g=>({...g,style:{...g.style,opacity:0,pointerEvents:"none"}}));return}if(!n.dataPoints||n.dataPoints.length===0)return;r.opacity="1",r.position="absolute",r.pointerEvents="none";const i=t.canvas.getBoundingClientRect();r.left=i.left+window.pageXOffset+n.caretX+"px",r.top=i.top+window.pageYOffset+n.caretY+"px";const o=((u=(l=n.dataPoints)==null?void 0:l[0])==null?void 0:u.label)??"",a=((d=(c=n.dataPoints)==null?void 0:c[0])==null?void 0:d.raw)??"",s=((f=(h=n.dataPoints)==null?void 0:h[0])==null?void 0:f.dataset.label)??"";e({dataset:s,label:o,value:a,style:r,dataPoints:n.dataPoints})},WO={id:"hairlinePlugin",beforeDatasetsDraw:e=>{const t=e.scales.y;if(!t)return;const{ctx:n}=e,{top:r,bottom:i,left:o,right:a}=e.chartArea;if(t.min>0||t.max<0)return;const s=t.getPixelForValue(0);s<r||s>i||(n.save(),n.beginPath(),n.moveTo(o,s),n.lineTo(a,s),n.lineWidth=2,n.strokeStyle="rgb(207, 216, 220)",n.setLineDash([4,3]),n.stroke(),n.restore())}},zO={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1}},scales:{y:{grace:"15%",position:"right",border:{display:!1,dash:[5,3],color:"#CFD8DC"},ticks:{font:{size:10,weight:"normal"},padding:10,color:"#898989"}},x:{border:{dash:[5,3],color:"#CFD8DC"},ticks:{font:{size:10,weight:"normal"},color:"#898989"}}},interaction:{mode:"index",intersect:!1}},GO=({data:e,height:t,classNameContainer:n,id:r,options:i,CustomTooltip:o})=>{const a=w.useRef(void 0),s=w.useRef(0),l=w.useRef(0),[u,c]=w.useState({dataset:"",label:"",value:0,style:{opacity:0,position:"absolute",left:0,bottom:0},dataPoints:[]}),d=w.useCallback(function({ctx:m,chartArea:b,scales:y,chartHeight:v,gradientFor:x,item:C}){let T=(y.y.getPixelForValue(0)-b.top)/v;T=T<0?0:T>1?1:T,a.current=m.createLinearGradient(0,b.top,0,v+b.top),x==="background"?(a.current.addColorStop(0,(C==null?void 0:C.colorBackgroundPositiveZero)||"#9FD2FF"),a.current.addColorStop(T,(C==null?void 0:C.colorBackgroundPositivePercentage)||"rgba(115, 235, 163, 0.1)"),a.current.addColorStop(T,(C==null?void 0:C.colorBackgroundNegativePercentage)||"rgba(235, 107, 107, 0.1)"),a.current.addColorStop(1,(C==null?void 0:C.colorBackgroundNegativeOne)||"#EB6B6B")):(a.current.addColorStop(T,(C==null?void 0:C.colorBorderPositive)||"#80CBC4"),a.current.addColorStop(T,(C==null?void 0:C.colorBorderNegative)||"#EB6B6B"))},[]),h=w.useCallback(function({ctx:m,chartArea:b,scales:y,gradientFor:v,item:x}){const C=b.right-b.left,D=b.bottom-b.top;return(!a.current||s.current!==C||l.current!==D)&&(s.current=C,l.current=D,d({ctx:m,chartArea:b,scales:y,chartHeight:D,gradientFor:v,item:x})),d({ctx:m,chartArea:b,scales:y,chartHeight:D,gradientFor:v,item:x}),a.current},[]),f=w.useMemo(()=>({...e,datasets:e.datasets.map(b=>({fill:!0,backgroundColor:function(y){const v=y.chart,{ctx:x,chartArea:C,scales:D}=v;if(C)return h({ctx:x,chartArea:C,scales:D,gradientFor:"background",item:b})},borderColor:function(y){const v=y.chart,{ctx:x,chartArea:C,scales:D}=v;if(C)return h({ctx:x,chartArea:C,scales:D,gradientFor:"border",item:b})},borderWidth:3,tension:0,pointRadius:0,pointHoverRadius:4,...b,data:b.data}))}),[e]),g=w.useMemo(()=>la(zO,{plugins:{tooltip:{enabled:!o,external:({chart:b,tooltip:y})=>o?jO(c)({chart:b,tooltip:y}):void 0}}},i??{}),[i,o]);return E.jsxs("div",{id:r,className:n,style:{height:t||"300px"},children:[o&&E.jsx(Wh,{selector:"body",children:E.jsx(o,{...u})}),E.jsx(WC,{data:f,options:g,plugins:[WO]})]})};ki.register(xo,Co,pl,Za,bi,kC,Za);const ZO=e=>({chart:t,tooltip:n})=>{var l,u,c,d,h,f;const r={};if(n.opacity===0){e(g=>({...g,style:{...g.style,opacity:0,pointerEvents:"none"}}));return}if(!n.dataPoints||n.dataPoints.length===0)return;r.opacity="1",r.position="absolute",r.pointerEvents="none";const i=t.canvas.getBoundingClientRect();r.left=i.left+window.pageXOffset+n.caretX+"px",r.top=i.top+window.pageYOffset+n.caretY+"px";const o=((u=(l=n.dataPoints)==null?void 0:l[0])==null?void 0:u.label)??"",a=((d=(c=n.dataPoints)==null?void 0:c[0])==null?void 0:d.raw)??"",s=((f=(h=n.dataPoints)==null?void 0:h[0])==null?void 0:f.dataset.label)??"";e({dataset:s,label:o,value:a,style:r,dataPoints:n.dataPoints})},XO={id:"labelplugin",afterDatasetsDraw(e){const{ctx:t,chartArea:{top:n,bottom:r}}=e;t.save(),e.data.datasets.forEach((i,o)=>{const a=e.getDatasetMeta(o);a.visible&&a.data.forEach((s,l)=>{const u=i.data[l]||0,c=i!=null&&i.setDigit?cu(String(u)):String(u);t.font="12px Lato",t.textAlign="center";let d,h=!1;typeof u=="number"&&u>=0?(t.textBaseline="bottom",t.fillStyle=(i==null?void 0:i.colorTextLabelPositive)||s.options.borderColor,d=s.y-5,d>n&&(h=!0)):(t.textBaseline="top",t.fillStyle=(i==null?void 0:i.colorTextLabelNegative)||s.options.borderColor,d=s.y+5,d<r&&(h=!0)),h&&t.fillText(c,s.x,d)})}),t.restore()}},YO={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1}},scales:{y:{grace:"15%",position:"left",border:{display:!1,dash:[5,3],color:"#CFD8DC"},ticks:{callback:function(e){return cu(e)??0},font:{size:10,weight:"normal"},padding:10,color:"#898989"}},x:{grid:{display:!1},border:{dash:[5,3],color:"#CFD8DC"},ticks:{font:{size:10,weight:"normal"},color:"#898989"}}},interaction:{mode:"index",intersect:!1}},UO=({data:e,classNameContainer:t,height:n,id:r,options:i,CustomTooltip:o})=>{const a=w.useRef(void 0),s=w.useRef(0),l=w.useRef(0),[u,c]=w.useState({dataset:"",label:"",value:0,style:{opacity:0,position:"absolute",left:0,bottom:0},dataPoints:[]}),d=w.useCallback(function({ctx:m,chartArea:b,scales:y,chartHeight:v,gradientFor:x,item:C}){let T=(y.y.getPixelForValue(0)-b.top)/v;T=T<0?0:T>1?1:T,a.current=m.createLinearGradient(0,b.top,0,v+b.top),x==="background"?(a.current.addColorStop(0,(C==null?void 0:C.colorBackgroundPositiveZero)||"#9FD2FF"),a.current.addColorStop(T,(C==null?void 0:C.colorBackgroundPositivePercentage)||"rgba(115, 235, 163, 0.1)"),a.current.addColorStop(T,(C==null?void 0:C.colorBackgroundNegativePercentage)||"rgba(235, 107, 107, 0.1)"),a.current.addColorStop(1,(C==null?void 0:C.colorBackgroundNegativeOne)||"#EB6B6B")):(a.current.addColorStop(T,(C==null?void 0:C.colorBorderPositive)||"#80CBC4"),a.current.addColorStop(T,(C==null?void 0:C.colorBorderNegative)||"#EB6B6B"))},[]),h=w.useCallback(function({ctx:m,chartArea:b,scales:y,gradientFor:v,item:x}){const C=b.right-b.left,D=b.bottom-b.top;return(!a.current||s.current!==C||l.current!==D)&&(s.current=C,l.current=D,d({ctx:m,chartArea:b,scales:y,chartHeight:D,gradientFor:v,item:x})),d({ctx:m,chartArea:b,scales:y,chartHeight:D,gradientFor:v,item:x}),a.current},[]),f=w.useMemo(()=>({...e,datasets:e.datasets.map(b=>({fill:!0,backgroundColor:function(y){const v=y.chart,{ctx:x,chartArea:C,scales:D}=v;if(C)return h({ctx:x,chartArea:C,scales:D,gradientFor:"background",item:b})},borderColor:function(y){const v=y.chart,{ctx:x,chartArea:C,scales:D}=v;if(C)return h({ctx:x,chartArea:C,scales:D,gradientFor:"border",item:b})},borderWidth:0,tension:0,pointRadius:0,pointHoverRadius:4,setDigit:!0,...b,data:b.data}))}),[e]),g=w.useMemo(()=>la(YO,{plugins:{tooltip:{enabled:!o,external:({chart:b,tooltip:y})=>o?ZO(c)({chart:b,tooltip:y}):void 0}}},i??{}),[i,o]);return E.jsxs("div",{id:r,className:t,style:{height:n||"300px"},children:[o&&E.jsx(Wh,{selector:"body",children:E.jsx(o,{...u})}),E.jsx(bO,{data:f,options:g,plugins:[XO]})]})},JO="_left_1s2i5_4",KO="_right_1s2i5_7",qO="_indicator_1s2i5_16",QO="_active_1s2i5_19",Dr={"container-step-indicator":"_container-step-indicator_1s2i5_1",left:JO,right:KO,"text-step-indicator":"_text-step-indicator_1s2i5_10","step-indicator":"_step-indicator_1s2i5_13",indicator:qO,active:QO};function eN(e,t){if(e<=0)return"0px";if(e===1)return"100%";const n=e-1;return`calc((100% - (${t} * ${n})) / ${e})`}const tN=({activeStep:e=0,countStep:t=0,classNameActiveStepIndicator:n="",classNameContainer:r="",classNameDesc:i="",classNameStepIndicator:o="",id:a="1ru-step-indicator",locationStepIndicator:s="right",widthStepIndicator:l=120,dynamicWidthStepIndicator:u=!1,gapStepIndicator:c="2px",classNameStepIndicatorContainer:d=""})=>E.jsxs("div",{id:a,className:`${Dr["container-step-indicator"]}
164
164
  ${s==="left"?Dr.left:Dr.right} ${r||""}`,children:[s==="left"&&E.jsxs("p",{className:`${Dr["text-step-indicator"]} ${i||""}`,children:[e+1,"/",t]}),E.jsx("div",{className:`${Dr["step-indicator"]} ${d||""}
165
165
  ${u?"1ru-w-full":""} ${c}`,style:{gap:c},children:Array.from({length:t}).map((h,f)=>E.jsx("div",{className:`${Dr.indicator} ${o||""}
166
- ${f<=e?`${Dr.active} ${n}`:""}`,style:{width:u?eN(t,c):l}},f))}),s==="right"&&E.jsxs("p",{className:`${Dr["text-step-indicator"]} ${i||""}`,children:[e+1,"/",t]})]}),nN="0.1.1",cb={version:nN},rN=({label:e})=>({tinymceScriptSrc:`https://unpkg.com/1mpacto-react-ui@${cb.version}/dist/tinymce/js/tinymce/tinymce.min.js`,init:{plugins:"lists",menubar:!1,statusbar:!1,content_css:`https://unpkg.com/1mpacto-react-ui@${cb.version}/dist/assets/fontfamily.css`,toolbar:"fontfamily fontsize italic bold underline bullist numlist",font_size_formats:"8px 10px 12px 14px 16px 18px 24px 36px 48px",image_advtab:!0,importcss_append:!0,min_height:220,image_caption:!0,noneditable_class:"mceNonEditable",toolbar_mode:"sliding",table_tab_navigation:!1,line_height_formats:"100px",font_family_formats:`
166
+ ${f<=e?`${Dr.active} ${n}`:""}`,style:{width:u?eN(t,c):l}},f))}),s==="right"&&E.jsxs("p",{className:`${Dr["text-step-indicator"]} ${i||""}`,children:[e+1,"/",t]})]}),nN="0.1.2",cb={version:nN},rN=({label:e})=>({tinymceScriptSrc:`https://unpkg.com/1mpacto-react-ui@${cb.version}/dist/tinymce/js/tinymce/tinymce.min.js`,init:{plugins:"lists",menubar:!1,statusbar:!1,content_css:`https://unpkg.com/1mpacto-react-ui@${cb.version}/dist/assets/fontfamily.css`,toolbar:"fontfamily fontsize italic bold underline bullist numlist",font_size_formats:"8px 10px 12px 14px 16px 18px 24px 36px 48px",image_advtab:!0,importcss_append:!0,min_height:220,image_caption:!0,noneditable_class:"mceNonEditable",toolbar_mode:"sliding",table_tab_navigation:!1,line_height_formats:"100px",font_family_formats:`
167
167
  Lato=Lato;
168
168
  Inter=Inter;
169
169
  Andale Mono=Andale Mono,times;
@@ -194,6 +194,6 @@ You should wrap it with \`css\` like this:
194
194
  object-assign
195
195
  (c) Sindre Sorhus
196
196
  @license MIT
197
- */var Uc,db;function aN(){if(db)return Uc;db=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var a={},s=0;s<10;s++)a["_"+String.fromCharCode(s)]=s;var l=Object.getOwnPropertyNames(a).map(function(c){return a[c]});if(l.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(c){u[c]=c}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Uc=i()?Object.assign:function(o,a){for(var s,l=r(o),u,c=1;c<arguments.length;c++){s=Object(arguments[c]);for(var d in s)t.call(s,d)&&(l[d]=s[d]);if(e){u=e(s);for(var h=0;h<u.length;h++)n.call(s,u[h])&&(l[u[h]]=s[u[h]])}}return l},Uc}var Jc,fb;function lg(){if(fb)return Jc;fb=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Jc=e,Jc}var Kc,hb;function ZC(){return hb||(hb=1,Kc=Function.call.bind(Object.prototype.hasOwnProperty)),Kc}var qc,gb;function sN(){if(gb)return qc;gb=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=lg(),n={},r=ZC();e=function(o){var a="Warning: "+o;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(o,a,s,l,u){if(process.env.NODE_ENV!=="production"){for(var c in o)if(r(o,c)){var d;try{if(typeof o[c]!="function"){var h=Error((l||"React class")+": "+s+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}d=o[c](a,c,l,s,null,t)}catch(g){d=g}if(d&&!(d instanceof Error)&&e((l||"React class")+": type specification of "+s+" `"+c+"` 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 f=u?u():"";e("Failed "+s+" type: "+d.message+(f??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},qc=i,qc}var Qc,mb;function lN(){if(mb)return Qc;mb=1;var e=lh,t=aN(),n=lg(),r=ZC(),i=sN(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function a(){return null}return Qc=function(s,l){var u=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function d(O){var L=O&&(u&&O[u]||O[c]);if(typeof L=="function")return L}var h="<<anonymous>>",f={array:y("array"),bigint:y("bigint"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:v(),arrayOf:x,element:C(),elementType:D(),instanceOf:I,node:$(),objectOf:p,oneOf:T,oneOfType:S,shape:A,exact:k};function g(O,L){return O===L?O!==0||1/O===1/L:O!==O&&L!==L}function m(O,L){this.message=O,this.data=L&&typeof L=="object"?L:{},this.stack=""}m.prototype=Error.prototype;function b(O){if(process.env.NODE_ENV!=="production")var L={},W=0;function Z(j,V,z,Y,K,Q,ee){if(Y=Y||h,Q=Q||z,ee!==n){if(l){var X=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 X.name="Invariant Violation",X}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ue=Y+":"+z;!L[ue]&&W<3&&(o("You are manually calling a React.PropTypes validation function for the `"+Q+"` prop on `"+Y+"`. 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."),L[ue]=!0,W++)}}return V[z]==null?j?V[z]===null?new m("The "+K+" `"+Q+"` is marked as required "+("in `"+Y+"`, but its value is `null`.")):new m("The "+K+" `"+Q+"` is marked as required in "+("`"+Y+"`, but its value is `undefined`.")):null:O(V,z,Y,K,Q)}var H=Z.bind(null,!1);return H.isRequired=Z.bind(null,!0),H}function y(O){function L(W,Z,H,j,V,z){var Y=W[Z],K=P(Y);if(K!==O){var Q=F(Y);return new m("Invalid "+j+" `"+V+"` of type "+("`"+Q+"` supplied to `"+H+"`, expected ")+("`"+O+"`."),{expectedType:O})}return null}return b(L)}function v(){return b(a)}function x(O){function L(W,Z,H,j,V){if(typeof O!="function")return new m("Property `"+V+"` of component `"+H+"` has invalid PropType notation inside arrayOf.");var z=W[Z];if(!Array.isArray(z)){var Y=P(z);return new m("Invalid "+j+" `"+V+"` of type "+("`"+Y+"` supplied to `"+H+"`, expected an array."))}for(var K=0;K<z.length;K++){var Q=O(z,K,H,j,V+"["+K+"]",n);if(Q instanceof Error)return Q}return null}return b(L)}function C(){function O(L,W,Z,H,j){var V=L[W];if(!s(V)){var z=P(V);return new m("Invalid "+H+" `"+j+"` of type "+("`"+z+"` supplied to `"+Z+"`, expected a single ReactElement."))}return null}return b(O)}function D(){function O(L,W,Z,H,j){var V=L[W];if(!e.isValidElementType(V)){var z=P(V);return new m("Invalid "+H+" `"+j+"` of type "+("`"+z+"` supplied to `"+Z+"`, expected a single ReactElement type."))}return null}return b(O)}function I(O){function L(W,Z,H,j,V){if(!(W[Z]instanceof O)){var z=O.name||h,Y=N(W[Z]);return new m("Invalid "+j+" `"+V+"` of type "+("`"+Y+"` supplied to `"+H+"`, expected ")+("instance of `"+z+"`."))}return null}return b(L)}function T(O){if(!Array.isArray(O))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),a;function L(W,Z,H,j,V){for(var z=W[Z],Y=0;Y<O.length;Y++)if(g(z,O[Y]))return null;var K=JSON.stringify(O,function(ee,X){var ue=F(X);return ue==="symbol"?String(X):X});return new m("Invalid "+j+" `"+V+"` of value `"+String(z)+"` "+("supplied to `"+H+"`, expected one of "+K+"."))}return b(L)}function p(O){function L(W,Z,H,j,V){if(typeof O!="function")return new m("Property `"+V+"` of component `"+H+"` has invalid PropType notation inside objectOf.");var z=W[Z],Y=P(z);if(Y!=="object")return new m("Invalid "+j+" `"+V+"` of type "+("`"+Y+"` supplied to `"+H+"`, expected an object."));for(var K in z)if(r(z,K)){var Q=O(z,K,H,j,V+"."+K,n);if(Q instanceof Error)return Q}return null}return b(L)}function S(O){if(!Array.isArray(O))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var L=0;L<O.length;L++){var W=O[L];if(typeof W!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+B(W)+" at index "+L+"."),a}function Z(H,j,V,z,Y){for(var K=[],Q=0;Q<O.length;Q++){var ee=O[Q],X=ee(H,j,V,z,Y,n);if(X==null)return null;X.data&&r(X.data,"expectedType")&&K.push(X.data.expectedType)}var ue=K.length>0?", expected one of type ["+K.join(", ")+"]":"";return new m("Invalid "+z+" `"+Y+"` supplied to "+("`"+V+"`"+ue+"."))}return b(Z)}function $(){function O(L,W,Z,H,j){return R(L[W])?null:new m("Invalid "+H+" `"+j+"` supplied to "+("`"+Z+"`, expected a ReactNode."))}return b(O)}function _(O,L,W,Z,H){return new m((O||"React class")+": "+L+" type `"+W+"."+Z+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+H+"`.")}function A(O){function L(W,Z,H,j,V){var z=W[Z],Y=P(z);if(Y!=="object")return new m("Invalid "+j+" `"+V+"` of type `"+Y+"` "+("supplied to `"+H+"`, expected `object`."));for(var K in O){var Q=O[K];if(typeof Q!="function")return _(H,j,V,K,F(Q));var ee=Q(z,K,H,j,V+"."+K,n);if(ee)return ee}return null}return b(L)}function k(O){function L(W,Z,H,j,V){var z=W[Z],Y=P(z);if(Y!=="object")return new m("Invalid "+j+" `"+V+"` of type `"+Y+"` "+("supplied to `"+H+"`, expected `object`."));var K=t({},W[Z],O);for(var Q in K){var ee=O[Q];if(r(O,Q)&&typeof ee!="function")return _(H,j,V,Q,F(ee));if(!ee)return new m("Invalid "+j+" `"+V+"` key `"+Q+"` supplied to `"+H+"`.\nBad object: "+JSON.stringify(W[Z],null," ")+`
198
- Valid keys: `+JSON.stringify(Object.keys(O),null," "));var X=ee(z,Q,H,j,V+"."+Q,n);if(X)return X}return null}return b(L)}function R(O){switch(typeof O){case"number":case"string":case"undefined":return!0;case"boolean":return!O;case"object":if(Array.isArray(O))return O.every(R);if(O===null||s(O))return!0;var L=d(O);if(L){var W=L.call(O),Z;if(L!==O.entries){for(;!(Z=W.next()).done;)if(!R(Z.value))return!1}else for(;!(Z=W.next()).done;){var H=Z.value;if(H&&!R(H[1]))return!1}}else return!1;return!0;default:return!1}}function M(O,L){return O==="symbol"?!0:L?L["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&L instanceof Symbol:!1}function P(O){var L=typeof O;return Array.isArray(O)?"array":O instanceof RegExp?"object":M(L,O)?"symbol":L}function F(O){if(typeof O>"u"||O===null)return""+O;var L=P(O);if(L==="object"){if(O instanceof Date)return"date";if(O instanceof RegExp)return"regexp"}return L}function B(O){var L=F(O);switch(L){case"array":case"object":return"an "+L;case"boolean":case"date":case"regexp":return"a "+L;default:return L}}function N(O){return!O.constructor||!O.constructor.name?h:O.constructor.name}return f.checkPropTypes=i,f.resetWarningCache=i.resetWarningCache,f.PropTypes=f,f},Qc}var ed,pb;function uN(){if(pb)return ed;pb=1;var e=lg();function t(){}function n(){}return n.resetWarningCache=t,ed=function(){function r(a,s,l,u,c,d){if(d!==e){var h=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 h.name="Invariant Violation",h}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},ed}if(process.env.NODE_ENV!=="production"){var cN=lh,dN=!0;ff.exports=lN()(cN.isElement,dN)}else ff.exports=uN()();var U=ff.exports,hf=function(){return hf=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},hf.apply(this,arguments)},XC={onActivate:U.func,onAddUndo:U.func,onBeforeAddUndo:U.func,onBeforeExecCommand:U.func,onBeforeGetContent:U.func,onBeforeRenderUI:U.func,onBeforeSetContent:U.func,onBeforePaste:U.func,onBlur:U.func,onChange:U.func,onClearUndos:U.func,onClick:U.func,onContextMenu:U.func,onCommentChange:U.func,onCompositionEnd:U.func,onCompositionStart:U.func,onCompositionUpdate:U.func,onCopy:U.func,onCut:U.func,onDblclick:U.func,onDeactivate:U.func,onDirty:U.func,onDrag:U.func,onDragDrop:U.func,onDragEnd:U.func,onDragGesture:U.func,onDragOver:U.func,onDrop:U.func,onExecCommand:U.func,onFocus:U.func,onFocusIn:U.func,onFocusOut:U.func,onGetContent:U.func,onHide:U.func,onInit:U.func,onInput:U.func,onKeyDown:U.func,onKeyPress:U.func,onKeyUp:U.func,onLoadContent:U.func,onMouseDown:U.func,onMouseEnter:U.func,onMouseLeave:U.func,onMouseMove:U.func,onMouseOut:U.func,onMouseOver:U.func,onMouseUp:U.func,onNodeChange:U.func,onObjectResizeStart:U.func,onObjectResized:U.func,onObjectSelected:U.func,onPaste:U.func,onPostProcess:U.func,onPostRender:U.func,onPreProcess:U.func,onProgressState:U.func,onRedo:U.func,onRemove:U.func,onReset:U.func,onSaveContent:U.func,onSelectionChange:U.func,onSetAttrib:U.func,onSetContent:U.func,onShow:U.func,onSubmit:U.func,onUndo:U.func,onVisualAid:U.func,onSkinLoadError:U.func,onThemeLoadError:U.func,onModelLoadError:U.func,onPluginLoadError:U.func,onIconsLoadError:U.func,onLanguageLoadError:U.func,onScriptsLoad:U.func,onScriptsLoadError:U.func},fN=hf({apiKey:U.string,licenseKey:U.string,id:U.string,inline:U.bool,init:U.object,initialValue:U.string,onEditorChange:U.func,value:U.string,tagName:U.string,tabIndex:U.number,cloudChannel:U.string,plugins:U.oneOfType([U.string,U.array]),toolbar:U.oneOfType([U.string,U.array]),disabled:U.bool,readonly:U.bool,textareaName:U.string,tinymceScriptSrc:U.oneOfType([U.string,U.arrayOf(U.string),U.arrayOf(U.shape({src:U.string,async:U.bool,defer:U.bool}))]),rollback:U.oneOfType([U.number,U.oneOf([!1])]),scriptLoading:U.shape({async:U.bool,defer:U.bool,delay:U.number})},XC),YC=function(e){var t=e;return t&&t.tinymce?t.tinymce:null},td=function(e){return typeof e=="function"},bb=function(e){return e in XC},vb=function(e){return e.substr(2)},hN=function(e,t,n,r,i,o,a){var s=Object.keys(i).filter(bb),l=Object.keys(o).filter(bb),u=s.filter(function(d){return o[d]===void 0}),c=l.filter(function(d){return i[d]===void 0});u.forEach(function(d){var h=vb(d),f=a[h];n(h,f),delete a[h]}),c.forEach(function(d){var h=r(e,d),f=vb(d);a[f]=h,t(f,h)})},gN=function(e,t,n,r,i){return hN(i,e.on.bind(e),e.off.bind(e),function(o,a){return function(s){var l;return(l=o(a))===null||l===void 0?void 0:l(s,e)}},t,n,r)},yb=0,UC=function(e){var t=Date.now(),n=Math.floor(Math.random()*1e9);return yb++,e+"_"+n+yb+String(t)},xb=function(e){return e!==null&&(e.tagName.toLowerCase()==="textarea"||e.tagName.toLowerCase()==="input")},Cb=function(e){return typeof e>"u"||e===""?[]:Array.isArray(e)?e:e.split(" ")},mN=function(e,t){return Cb(e).concat(Cb(t))},pN=function(){return window.InputEvent&&typeof InputEvent.prototype.getTargetRanges=="function"},bN=function(e){if(!("isConnected"in Node.prototype)){for(var t=e,n=e.parentNode;n!=null;)t=n,n=t.parentNode;return t===e.ownerDocument}return e.isConnected},wb=function(e,t){e!==void 0&&(e.mode!=null&&typeof e.mode=="object"&&typeof e.mode.set=="function"?e.mode.set(t):e.setMode(t))},vN=function(e){var t=YC(e);if(!t)throw new Error("tinymce should have been loaded into global scope");return t},Db=function(e){return e.options&&e.options.isRegistered("disabled")},gf=function(){return gf=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},gf.apply(this,arguments)},yN=function(e,t,n){var r,i,o=e.createElement("script");o.referrerPolicy="origin",o.type="application/javascript",o.id=t.id,o.src=t.src,o.async=(r=t.async)!==null&&r!==void 0?r:!1,o.defer=(i=t.defer)!==null&&i!==void 0?i:!1;var a=function(){o.removeEventListener("load",a),o.removeEventListener("error",s),n(t.src)},s=function(l){o.removeEventListener("load",a),o.removeEventListener("error",s),n(t.src,l)};o.addEventListener("load",a),o.addEventListener("error",s),e.head&&e.head.appendChild(o)},xN=function(e){var t={},n=function(a,s){var l=t[a];l.done=!0,l.error=s;for(var u=0,c=l.handlers;u<c.length;u++){var d=c[u];d(a,s)}l.handlers=[]},r=function(a,s,l){var u=function(v){return l!==void 0?l(v):console.error(v)};if(a.length===0){u(new Error("At least one script must be provided"));return}for(var c=0,d=!1,h=function(v,x){d||(x?(d=!0,u(x)):++c===a.length&&s())},f=0,g=a;f<g.length;f++){var m=g[f],b=t[m.src];if(b)b.done?h(m.src,b.error):b.handlers.push(h);else{var y=UC("tiny-");t[m.src]={id:y,src:m.src,done:!1,error:null,handlers:[h]},yN(e,gf({id:y},m),n)}}},i=function(){for(var a,s=0,l=Object.values(t);s<l.length;s++){var u=l[s],c=e.getElementById(u.id);c!=null&&c.tagName==="SCRIPT"&&((a=c.parentNode)===null||a===void 0||a.removeChild(c))}t={}},o=function(){return e};return{loadScripts:r,deleteScripts:i,getDocument:o}},CN=function(){var e=[],t=function(i){var o=e.find(function(a){return a.getDocument()===i});return o===void 0&&(o=xN(i),e.push(o)),o},n=function(i,o,a,s,l){var u=function(){return t(i).loadScripts(o,s,l)};a>0?setTimeout(u,a):u()},r=function(){for(var i=e.pop();i!=null;i=e.pop())i.deleteScripts()};return{loadList:n,reinitialize:r}},wN=CN(),DN=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),qi=function(){return qi=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},qi.apply(this,arguments)},nd="change keyup compositionend setcontent CommentChange",SN=function(e){DN(t,e);function t(n){var r,i,o,a=e.call(this,n)||this;return a.rollbackTimer=void 0,a.valueCursor=void 0,a.rollbackChange=function(){var s=a.editor,l=a.props.value;s&&l&&l!==a.currentContent&&s.undoManager.ignore(function(){if(s.setContent(l),a.valueCursor&&(!a.inline||s.hasFocus()))try{s.selection.moveToBookmark(a.valueCursor)}catch{}}),a.rollbackTimer=void 0},a.handleBeforeInput=function(s){if(a.props.value!==void 0&&a.props.value===a.currentContent&&a.editor&&(!a.inline||a.editor.hasFocus()))try{a.valueCursor=a.editor.selection.getBookmark(3)}catch{}},a.handleBeforeInputSpecial=function(s){(s.key==="Enter"||s.key==="Backspace"||s.key==="Delete")&&a.handleBeforeInput(s)},a.handleEditorChange=function(s){var l=a.editor;if(l&&l.initialized){var u=l.getContent();a.props.value!==void 0&&a.props.value!==u&&a.props.rollback!==!1&&(a.rollbackTimer||(a.rollbackTimer=window.setTimeout(a.rollbackChange,typeof a.props.rollback=="number"?a.props.rollback:200))),u!==a.currentContent&&(a.currentContent=u,td(a.props.onEditorChange)&&a.props.onEditorChange(u,l))}},a.handleEditorChangeSpecial=function(s){(s.key==="Backspace"||s.key==="Delete")&&a.handleEditorChange(s)},a.initialise=function(s){var l,u,c;s===void 0&&(s=0);var d=a.elementRef.current;if(d){if(!bN(d)){if(s===0)setTimeout(function(){return a.initialise(1)},1);else if(s<100)setTimeout(function(){return a.initialise(s+1)},100);else throw new Error("tinymce can only be initialised when in a document");return}var h=vN(a.view),f=qi(qi(qi(qi({},a.props.init),{selector:void 0,target:d,disabled:a.props.disabled,readonly:a.props.readonly,inline:a.inline,plugins:mN((l=a.props.init)===null||l===void 0?void 0:l.plugins,a.props.plugins),toolbar:(u=a.props.toolbar)!==null&&u!==void 0?u:(c=a.props.init)===null||c===void 0?void 0:c.toolbar}),a.props.licenseKey?{license_key:a.props.licenseKey}:{}),{setup:function(g){a.editor=g,a.bindHandlers({}),a.inline&&!xb(d)&&g.once("PostRender",function(m){g.setContent(a.getInitialValue(),{no_events:!0})}),a.props.init&&td(a.props.init.setup)&&a.props.init.setup(g),a.props.disabled&&(Db(a.editor)?a.editor.options.set("disabled",a.props.disabled):a.editor.mode.set("readonly"))},init_instance_callback:function(g){var m,b=a.getInitialValue();a.currentContent=(m=a.currentContent)!==null&&m!==void 0?m:g.getContent(),a.currentContent!==b&&(a.currentContent=b,g.setContent(b),g.undoManager.clear(),g.undoManager.add(),g.setDirty(!1)),a.props.init&&td(a.props.init.init_instance_callback)&&a.props.init.init_instance_callback(g)}});a.inline||(d.style.visibility=""),xb(d)&&(d.value=a.getInitialValue()),h.init(f)}},a.id=a.props.id||UC("tiny-react"),a.elementRef=G.createRef(),a.inline=(o=(r=a.props.inline)!==null&&r!==void 0?r:(i=a.props.init)===null||i===void 0?void 0:i.inline)!==null&&o!==void 0?o:!1,a.boundHandlers={},a}return Object.defineProperty(t.prototype,"view",{get:function(){var n,r;return(r=(n=this.elementRef.current)===null||n===void 0?void 0:n.ownerDocument.defaultView)!==null&&r!==void 0?r:window},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(n){var r=this,i,o;if(this.rollbackTimer&&(clearTimeout(this.rollbackTimer),this.rollbackTimer=void 0),this.editor&&(this.bindHandlers(n),this.editor.initialized)){if(this.currentContent=(i=this.currentContent)!==null&&i!==void 0?i:this.editor.getContent(),typeof this.props.initialValue=="string"&&this.props.initialValue!==n.initialValue)this.editor.setContent(this.props.initialValue),this.editor.undoManager.clear(),this.editor.undoManager.add(),this.editor.setDirty(!1);else if(typeof this.props.value=="string"&&this.props.value!==this.currentContent){var a=this.editor;a.undoManager.transact(function(){var l;if(!r.inline||a.hasFocus())try{l=a.selection.getBookmark(3)}catch{}var u=r.valueCursor;if(a.setContent(r.props.value),!r.inline||a.hasFocus())for(var c=0,d=[l,u];c<d.length;c++){var h=d[c];if(h)try{a.selection.moveToBookmark(h),r.valueCursor=h;break}catch{}}})}if(this.props.readonly!==n.readonly){var s=(o=this.props.readonly)!==null&&o!==void 0?o:!1;wb(this.editor,s?"readonly":"design")}this.props.disabled!==n.disabled&&(Db(this.editor)?this.editor.options.set("disabled",this.props.disabled):wb(this.editor,this.props.disabled?"readonly":"design"))}},t.prototype.componentDidMount=function(){var n=this,r,i,o,a,s;if(YC(this.view)!==null)this.initialise();else if(Array.isArray(this.props.tinymceScriptSrc)&&this.props.tinymceScriptSrc.length===0)(i=(r=this.props).onScriptsLoadError)===null||i===void 0||i.call(r,new Error("No `tinymce` global is present but the `tinymceScriptSrc` prop was an empty array."));else if(!((o=this.elementRef.current)===null||o===void 0)&&o.ownerDocument){var l=function(){var c,d;(d=(c=n.props).onScriptsLoad)===null||d===void 0||d.call(c),n.initialise()},u=function(c){var d,h;(h=(d=n.props).onScriptsLoadError)===null||h===void 0||h.call(d,c)};wN.loadList(this.elementRef.current.ownerDocument,this.getScriptSources(),(s=(a=this.props.scriptLoading)===null||a===void 0?void 0:a.delay)!==null&&s!==void 0?s:0,l,u)}},t.prototype.componentWillUnmount=function(){var n=this,r=this.editor;r&&(r.off(nd,this.handleEditorChange),r.off(this.beforeInputEvent(),this.handleBeforeInput),r.off("keypress",this.handleEditorChangeSpecial),r.off("keydown",this.handleBeforeInputSpecial),r.off("NewBlock",this.handleEditorChange),Object.keys(this.boundHandlers).forEach(function(i){r.off(i,n.boundHandlers[i])}),this.boundHandlers={},r.remove(),this.editor=void 0)},t.prototype.render=function(){return this.inline?this.renderInline():this.renderIframe()},t.prototype.beforeInputEvent=function(){return pN()?"beforeinput SelectionChange":"SelectionChange"},t.prototype.renderInline=function(){var n=this.props.tagName,r=n===void 0?"div":n;return G.createElement(r,{ref:this.elementRef,id:this.id,tabIndex:this.props.tabIndex})},t.prototype.renderIframe=function(){return G.createElement("textarea",{ref:this.elementRef,style:{visibility:"hidden"},name:this.props.textareaName,id:this.id,tabIndex:this.props.tabIndex})},t.prototype.getScriptSources=function(){var n,r,i=(n=this.props.scriptLoading)===null||n===void 0?void 0:n.async,o=(r=this.props.scriptLoading)===null||r===void 0?void 0:r.defer;if(this.props.tinymceScriptSrc!==void 0)return typeof this.props.tinymceScriptSrc=="string"?[{src:this.props.tinymceScriptSrc,async:i,defer:o}]:this.props.tinymceScriptSrc.map(function(u){return typeof u=="string"?{src:u,async:i,defer:o}:u});var a=this.props.cloudChannel,s=this.props.apiKey?this.props.apiKey:"no-api-key",l="https://cdn.tiny.cloud/1/".concat(s,"/tinymce/").concat(a,"/tinymce.min.js");return[{src:l,async:i,defer:o}]},t.prototype.getInitialValue=function(){return typeof this.props.initialValue=="string"?this.props.initialValue:typeof this.props.value=="string"?this.props.value:""},t.prototype.bindHandlers=function(n){var r=this;if(this.editor!==void 0){gN(this.editor,n,this.props,this.boundHandlers,function(s){return r.props[s]});var i=function(s){return s.onEditorChange!==void 0||s.value!==void 0},o=i(n),a=i(this.props);!o&&a?(this.editor.on(nd,this.handleEditorChange),this.editor.on(this.beforeInputEvent(),this.handleBeforeInput),this.editor.on("keydown",this.handleBeforeInputSpecial),this.editor.on("keyup",this.handleEditorChangeSpecial),this.editor.on("NewBlock",this.handleEditorChange)):o&&!a&&(this.editor.off(nd,this.handleEditorChange),this.editor.off(this.beforeInputEvent(),this.handleBeforeInput),this.editor.off("keydown",this.handleBeforeInputSpecial),this.editor.off("keyup",this.handleEditorChangeSpecial),this.editor.off("NewBlock",this.handleEditorChange))}},t.propTypes=fN,t.defaultProps={cloudChannel:"7"},t}(G.Component);const EN=e=>E.jsx("div",{className:`${oN.container}`,children:E.jsx(SN,{...la(rN({label:e.label}),e)})});exports.AlertContainer=kD;exports.Badges=R3;exports.BigNumber=Ue;exports.Breadcrumbs=BP;exports.Button=Dn;exports.ButtonIcon=$3;exports.ButtonPopover=GC;exports.Calendar=ku;exports.CalendarRange=I3;exports.CheckboxTable=xO;exports.Chips=A3;exports.Collapse=jP;exports.ConfigColors=jb;exports.ConfigTable=Wt;exports.DatePicker=bP;exports.DateRangePicker=_3;exports.DefaultCheckedChecboxIcon=F3;exports.DefaultRadioChecboxIcon=P3;exports.DoughnutChart=vO;exports.ErrorMessage=_O;exports.FilterContainer=M3;exports.FilterDate=vP;exports.GradientBarChart=UO;exports.GradientLineChart=GO;exports.InputFloatingInner=p1;exports.InputNative=sg;exports.InputReguler=Tf;exports.LineChart=OO;exports.ListVirtualization=Sv;exports.ModalDialog=WP;exports.MonthYearPicker=yO;exports.NumberFormat=DT;exports.Pagination=N$;exports.PatternFormat=wT;exports.Popover=br;exports.PortalComponent=Wh;exports.RadioCheckbox=Mu;exports.RadioCheckboxLabel=FP;exports.SelectDropdownContainer=gy;exports.SelectDropdownContainerComponents=ny;exports.Sidebar=k3;exports.Step=MO;exports.StepIndicator=tN;exports.Switch=CP;exports.TPublish=M5;exports.TabPanel=A$;exports.Table=S$;exports.TableVirtualization=eh;exports.Tabs=R$;exports.TextEditor=EN;exports.Textarea=Z3;exports.TextareaFloatingInner=zC;exports.Timeline=XP;exports.Tooltip=VO;exports.TruncateComponent=_T;exports.TypeBigNumber=lu;exports.UploadFile=G3;exports.UploadImage=PT;exports.UploadMultipleFile=IO;exports.betweenBig=YD;exports.configScreens=k5;exports.configTypography=T5;exports.configTypographyLabaBisnis=Wb;exports.configTypographyPayhere=Hb;exports.convertBigNumbersToStrings=dd;exports.convertNumbersToBigNumbers=cd;exports.convertTextToJsonBigNumbers=P5;exports.cookieStorage=wD;exports.deepCompareEquals=xf;exports.defaultConfig=Pb;exports.extractElementStringToOriginalValue=vD;exports.formatBigNumber=yD;exports.formatDate=Ji;exports.formatDateRange=lD;exports.formatNumber=Er;exports.groupByKey=kb;exports.isAccurateBigNumber=zn;exports.isAccurateNumber=Tb;exports.lessThanBig=XD;exports.maxBig=GD;exports.minBig=zD;exports.moreThanBig=ZD;exports.openAlert=MD;exports.parseBigDecimal=uu;exports.parseDecimal=bf;exports.parseFileName=od;exports.removeKeyObjectEmptyValue=cD;exports.removeTrailingZeros=xD;exports.setDigit=cu;exports.transformArrayMapping=fD;exports.transformArrayMappingObjectFC=hD;exports.transformArrayOfObjectToArray=yf;exports.transformArrayOfObjectToString=vf;exports.transformBigNumber=pD;exports.transformDataHistory=uD;exports.transformLatLong=dD;exports.transformNumber=mD;exports.transformSecondTime=gD;exports.transfromIsNan=bD;exports.useAsyncDebounce=Cv;exports.useCombinedResizeObserver=g$;exports.useCountdown=h$;exports.useDeepCompareEffect=Ci;exports.useDeepCompareMemoize=wa;exports.useElementOrWindowMediaQuery=f$;exports.useEventListener=v$;exports.useMasonry=y$;exports.useMergeRefs=nh;exports.useStateRef=m$;exports.utilTable=II;
197
+ */var Uc,db;function aN(){if(db)return Uc;db=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var a={},s=0;s<10;s++)a["_"+String.fromCharCode(s)]=s;var l=Object.getOwnPropertyNames(a).map(function(c){return a[c]});if(l.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(c){u[c]=c}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Uc=i()?Object.assign:function(o,a){for(var s,l=r(o),u,c=1;c<arguments.length;c++){s=Object(arguments[c]);for(var d in s)t.call(s,d)&&(l[d]=s[d]);if(e){u=e(s);for(var h=0;h<u.length;h++)n.call(s,u[h])&&(l[u[h]]=s[u[h]])}}return l},Uc}var Jc,fb;function lg(){if(fb)return Jc;fb=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Jc=e,Jc}var Kc,hb;function ZC(){return hb||(hb=1,Kc=Function.call.bind(Object.prototype.hasOwnProperty)),Kc}var qc,gb;function sN(){if(gb)return qc;gb=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=lg(),n={},r=ZC();e=function(o){var a="Warning: "+o;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(o,a,s,l,u){if(process.env.NODE_ENV!=="production"){for(var c in o)if(r(o,c)){var d;try{if(typeof o[c]!="function"){var h=Error((l||"React class")+": "+s+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}d=o[c](a,c,l,s,null,t)}catch(g){d=g}if(d&&!(d instanceof Error)&&e((l||"React class")+": type specification of "+s+" `"+c+"` 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 f=u?u():"";e("Failed "+s+" type: "+d.message+(f??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},qc=i,qc}var Qc,mb;function lN(){if(mb)return Qc;mb=1;var e=lh,t=aN(),n=lg(),r=ZC(),i=sN(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function a(){return null}return Qc=function(s,l){var u=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function d(O){var L=O&&(u&&O[u]||O[c]);if(typeof L=="function")return L}var h="<<anonymous>>",f={array:y("array"),bigint:y("bigint"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:v(),arrayOf:x,element:C(),elementType:D(),instanceOf:I,node:$(),objectOf:p,oneOf:T,oneOfType:S,shape:A,exact:k};function g(O,L){return O===L?O!==0||1/O===1/L:O!==O&&L!==L}function m(O,L){this.message=O,this.data=L&&typeof L=="object"?L:{},this.stack=""}m.prototype=Error.prototype;function b(O){if(process.env.NODE_ENV!=="production")var L={},W=0;function Z(H,V,z,Y,K,Q,ee){if(Y=Y||h,Q=Q||z,ee!==n){if(l){var X=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 X.name="Invariant Violation",X}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ue=Y+":"+z;!L[ue]&&W<3&&(o("You are manually calling a React.PropTypes validation function for the `"+Q+"` prop on `"+Y+"`. 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."),L[ue]=!0,W++)}}return V[z]==null?H?V[z]===null?new m("The "+K+" `"+Q+"` is marked as required "+("in `"+Y+"`, but its value is `null`.")):new m("The "+K+" `"+Q+"` is marked as required in "+("`"+Y+"`, but its value is `undefined`.")):null:O(V,z,Y,K,Q)}var j=Z.bind(null,!1);return j.isRequired=Z.bind(null,!0),j}function y(O){function L(W,Z,j,H,V,z){var Y=W[Z],K=P(Y);if(K!==O){var Q=F(Y);return new m("Invalid "+H+" `"+V+"` of type "+("`"+Q+"` supplied to `"+j+"`, expected ")+("`"+O+"`."),{expectedType:O})}return null}return b(L)}function v(){return b(a)}function x(O){function L(W,Z,j,H,V){if(typeof O!="function")return new m("Property `"+V+"` of component `"+j+"` has invalid PropType notation inside arrayOf.");var z=W[Z];if(!Array.isArray(z)){var Y=P(z);return new m("Invalid "+H+" `"+V+"` of type "+("`"+Y+"` supplied to `"+j+"`, expected an array."))}for(var K=0;K<z.length;K++){var Q=O(z,K,j,H,V+"["+K+"]",n);if(Q instanceof Error)return Q}return null}return b(L)}function C(){function O(L,W,Z,j,H){var V=L[W];if(!s(V)){var z=P(V);return new m("Invalid "+j+" `"+H+"` of type "+("`"+z+"` supplied to `"+Z+"`, expected a single ReactElement."))}return null}return b(O)}function D(){function O(L,W,Z,j,H){var V=L[W];if(!e.isValidElementType(V)){var z=P(V);return new m("Invalid "+j+" `"+H+"` of type "+("`"+z+"` supplied to `"+Z+"`, expected a single ReactElement type."))}return null}return b(O)}function I(O){function L(W,Z,j,H,V){if(!(W[Z]instanceof O)){var z=O.name||h,Y=N(W[Z]);return new m("Invalid "+H+" `"+V+"` of type "+("`"+Y+"` supplied to `"+j+"`, expected ")+("instance of `"+z+"`."))}return null}return b(L)}function T(O){if(!Array.isArray(O))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),a;function L(W,Z,j,H,V){for(var z=W[Z],Y=0;Y<O.length;Y++)if(g(z,O[Y]))return null;var K=JSON.stringify(O,function(ee,X){var ue=F(X);return ue==="symbol"?String(X):X});return new m("Invalid "+H+" `"+V+"` of value `"+String(z)+"` "+("supplied to `"+j+"`, expected one of "+K+"."))}return b(L)}function p(O){function L(W,Z,j,H,V){if(typeof O!="function")return new m("Property `"+V+"` of component `"+j+"` has invalid PropType notation inside objectOf.");var z=W[Z],Y=P(z);if(Y!=="object")return new m("Invalid "+H+" `"+V+"` of type "+("`"+Y+"` supplied to `"+j+"`, expected an object."));for(var K in z)if(r(z,K)){var Q=O(z,K,j,H,V+"."+K,n);if(Q instanceof Error)return Q}return null}return b(L)}function S(O){if(!Array.isArray(O))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var L=0;L<O.length;L++){var W=O[L];if(typeof W!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+B(W)+" at index "+L+"."),a}function Z(j,H,V,z,Y){for(var K=[],Q=0;Q<O.length;Q++){var ee=O[Q],X=ee(j,H,V,z,Y,n);if(X==null)return null;X.data&&r(X.data,"expectedType")&&K.push(X.data.expectedType)}var ue=K.length>0?", expected one of type ["+K.join(", ")+"]":"";return new m("Invalid "+z+" `"+Y+"` supplied to "+("`"+V+"`"+ue+"."))}return b(Z)}function $(){function O(L,W,Z,j,H){return R(L[W])?null:new m("Invalid "+j+" `"+H+"` supplied to "+("`"+Z+"`, expected a ReactNode."))}return b(O)}function _(O,L,W,Z,j){return new m((O||"React class")+": "+L+" type `"+W+"."+Z+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+j+"`.")}function A(O){function L(W,Z,j,H,V){var z=W[Z],Y=P(z);if(Y!=="object")return new m("Invalid "+H+" `"+V+"` of type `"+Y+"` "+("supplied to `"+j+"`, expected `object`."));for(var K in O){var Q=O[K];if(typeof Q!="function")return _(j,H,V,K,F(Q));var ee=Q(z,K,j,H,V+"."+K,n);if(ee)return ee}return null}return b(L)}function k(O){function L(W,Z,j,H,V){var z=W[Z],Y=P(z);if(Y!=="object")return new m("Invalid "+H+" `"+V+"` of type `"+Y+"` "+("supplied to `"+j+"`, expected `object`."));var K=t({},W[Z],O);for(var Q in K){var ee=O[Q];if(r(O,Q)&&typeof ee!="function")return _(j,H,V,Q,F(ee));if(!ee)return new m("Invalid "+H+" `"+V+"` key `"+Q+"` supplied to `"+j+"`.\nBad object: "+JSON.stringify(W[Z],null," ")+`
198
+ Valid keys: `+JSON.stringify(Object.keys(O),null," "));var X=ee(z,Q,j,H,V+"."+Q,n);if(X)return X}return null}return b(L)}function R(O){switch(typeof O){case"number":case"string":case"undefined":return!0;case"boolean":return!O;case"object":if(Array.isArray(O))return O.every(R);if(O===null||s(O))return!0;var L=d(O);if(L){var W=L.call(O),Z;if(L!==O.entries){for(;!(Z=W.next()).done;)if(!R(Z.value))return!1}else for(;!(Z=W.next()).done;){var j=Z.value;if(j&&!R(j[1]))return!1}}else return!1;return!0;default:return!1}}function M(O,L){return O==="symbol"?!0:L?L["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&L instanceof Symbol:!1}function P(O){var L=typeof O;return Array.isArray(O)?"array":O instanceof RegExp?"object":M(L,O)?"symbol":L}function F(O){if(typeof O>"u"||O===null)return""+O;var L=P(O);if(L==="object"){if(O instanceof Date)return"date";if(O instanceof RegExp)return"regexp"}return L}function B(O){var L=F(O);switch(L){case"array":case"object":return"an "+L;case"boolean":case"date":case"regexp":return"a "+L;default:return L}}function N(O){return!O.constructor||!O.constructor.name?h:O.constructor.name}return f.checkPropTypes=i,f.resetWarningCache=i.resetWarningCache,f.PropTypes=f,f},Qc}var ed,pb;function uN(){if(pb)return ed;pb=1;var e=lg();function t(){}function n(){}return n.resetWarningCache=t,ed=function(){function r(a,s,l,u,c,d){if(d!==e){var h=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 h.name="Invariant Violation",h}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},ed}if(process.env.NODE_ENV!=="production"){var cN=lh,dN=!0;ff.exports=lN()(cN.isElement,dN)}else ff.exports=uN()();var U=ff.exports,hf=function(){return hf=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},hf.apply(this,arguments)},XC={onActivate:U.func,onAddUndo:U.func,onBeforeAddUndo:U.func,onBeforeExecCommand:U.func,onBeforeGetContent:U.func,onBeforeRenderUI:U.func,onBeforeSetContent:U.func,onBeforePaste:U.func,onBlur:U.func,onChange:U.func,onClearUndos:U.func,onClick:U.func,onContextMenu:U.func,onCommentChange:U.func,onCompositionEnd:U.func,onCompositionStart:U.func,onCompositionUpdate:U.func,onCopy:U.func,onCut:U.func,onDblclick:U.func,onDeactivate:U.func,onDirty:U.func,onDrag:U.func,onDragDrop:U.func,onDragEnd:U.func,onDragGesture:U.func,onDragOver:U.func,onDrop:U.func,onExecCommand:U.func,onFocus:U.func,onFocusIn:U.func,onFocusOut:U.func,onGetContent:U.func,onHide:U.func,onInit:U.func,onInput:U.func,onKeyDown:U.func,onKeyPress:U.func,onKeyUp:U.func,onLoadContent:U.func,onMouseDown:U.func,onMouseEnter:U.func,onMouseLeave:U.func,onMouseMove:U.func,onMouseOut:U.func,onMouseOver:U.func,onMouseUp:U.func,onNodeChange:U.func,onObjectResizeStart:U.func,onObjectResized:U.func,onObjectSelected:U.func,onPaste:U.func,onPostProcess:U.func,onPostRender:U.func,onPreProcess:U.func,onProgressState:U.func,onRedo:U.func,onRemove:U.func,onReset:U.func,onSaveContent:U.func,onSelectionChange:U.func,onSetAttrib:U.func,onSetContent:U.func,onShow:U.func,onSubmit:U.func,onUndo:U.func,onVisualAid:U.func,onSkinLoadError:U.func,onThemeLoadError:U.func,onModelLoadError:U.func,onPluginLoadError:U.func,onIconsLoadError:U.func,onLanguageLoadError:U.func,onScriptsLoad:U.func,onScriptsLoadError:U.func},fN=hf({apiKey:U.string,licenseKey:U.string,id:U.string,inline:U.bool,init:U.object,initialValue:U.string,onEditorChange:U.func,value:U.string,tagName:U.string,tabIndex:U.number,cloudChannel:U.string,plugins:U.oneOfType([U.string,U.array]),toolbar:U.oneOfType([U.string,U.array]),disabled:U.bool,readonly:U.bool,textareaName:U.string,tinymceScriptSrc:U.oneOfType([U.string,U.arrayOf(U.string),U.arrayOf(U.shape({src:U.string,async:U.bool,defer:U.bool}))]),rollback:U.oneOfType([U.number,U.oneOf([!1])]),scriptLoading:U.shape({async:U.bool,defer:U.bool,delay:U.number})},XC),YC=function(e){var t=e;return t&&t.tinymce?t.tinymce:null},td=function(e){return typeof e=="function"},bb=function(e){return e in XC},vb=function(e){return e.substr(2)},hN=function(e,t,n,r,i,o,a){var s=Object.keys(i).filter(bb),l=Object.keys(o).filter(bb),u=s.filter(function(d){return o[d]===void 0}),c=l.filter(function(d){return i[d]===void 0});u.forEach(function(d){var h=vb(d),f=a[h];n(h,f),delete a[h]}),c.forEach(function(d){var h=r(e,d),f=vb(d);a[f]=h,t(f,h)})},gN=function(e,t,n,r,i){return hN(i,e.on.bind(e),e.off.bind(e),function(o,a){return function(s){var l;return(l=o(a))===null||l===void 0?void 0:l(s,e)}},t,n,r)},yb=0,UC=function(e){var t=Date.now(),n=Math.floor(Math.random()*1e9);return yb++,e+"_"+n+yb+String(t)},xb=function(e){return e!==null&&(e.tagName.toLowerCase()==="textarea"||e.tagName.toLowerCase()==="input")},Cb=function(e){return typeof e>"u"||e===""?[]:Array.isArray(e)?e:e.split(" ")},mN=function(e,t){return Cb(e).concat(Cb(t))},pN=function(){return window.InputEvent&&typeof InputEvent.prototype.getTargetRanges=="function"},bN=function(e){if(!("isConnected"in Node.prototype)){for(var t=e,n=e.parentNode;n!=null;)t=n,n=t.parentNode;return t===e.ownerDocument}return e.isConnected},wb=function(e,t){e!==void 0&&(e.mode!=null&&typeof e.mode=="object"&&typeof e.mode.set=="function"?e.mode.set(t):e.setMode(t))},vN=function(e){var t=YC(e);if(!t)throw new Error("tinymce should have been loaded into global scope");return t},Db=function(e){return e.options&&e.options.isRegistered("disabled")},gf=function(){return gf=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},gf.apply(this,arguments)},yN=function(e,t,n){var r,i,o=e.createElement("script");o.referrerPolicy="origin",o.type="application/javascript",o.id=t.id,o.src=t.src,o.async=(r=t.async)!==null&&r!==void 0?r:!1,o.defer=(i=t.defer)!==null&&i!==void 0?i:!1;var a=function(){o.removeEventListener("load",a),o.removeEventListener("error",s),n(t.src)},s=function(l){o.removeEventListener("load",a),o.removeEventListener("error",s),n(t.src,l)};o.addEventListener("load",a),o.addEventListener("error",s),e.head&&e.head.appendChild(o)},xN=function(e){var t={},n=function(a,s){var l=t[a];l.done=!0,l.error=s;for(var u=0,c=l.handlers;u<c.length;u++){var d=c[u];d(a,s)}l.handlers=[]},r=function(a,s,l){var u=function(v){return l!==void 0?l(v):console.error(v)};if(a.length===0){u(new Error("At least one script must be provided"));return}for(var c=0,d=!1,h=function(v,x){d||(x?(d=!0,u(x)):++c===a.length&&s())},f=0,g=a;f<g.length;f++){var m=g[f],b=t[m.src];if(b)b.done?h(m.src,b.error):b.handlers.push(h);else{var y=UC("tiny-");t[m.src]={id:y,src:m.src,done:!1,error:null,handlers:[h]},yN(e,gf({id:y},m),n)}}},i=function(){for(var a,s=0,l=Object.values(t);s<l.length;s++){var u=l[s],c=e.getElementById(u.id);c!=null&&c.tagName==="SCRIPT"&&((a=c.parentNode)===null||a===void 0||a.removeChild(c))}t={}},o=function(){return e};return{loadScripts:r,deleteScripts:i,getDocument:o}},CN=function(){var e=[],t=function(i){var o=e.find(function(a){return a.getDocument()===i});return o===void 0&&(o=xN(i),e.push(o)),o},n=function(i,o,a,s,l){var u=function(){return t(i).loadScripts(o,s,l)};a>0?setTimeout(u,a):u()},r=function(){for(var i=e.pop();i!=null;i=e.pop())i.deleteScripts()};return{loadList:n,reinitialize:r}},wN=CN(),DN=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),qi=function(){return qi=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},qi.apply(this,arguments)},nd="change keyup compositionend setcontent CommentChange",SN=function(e){DN(t,e);function t(n){var r,i,o,a=e.call(this,n)||this;return a.rollbackTimer=void 0,a.valueCursor=void 0,a.rollbackChange=function(){var s=a.editor,l=a.props.value;s&&l&&l!==a.currentContent&&s.undoManager.ignore(function(){if(s.setContent(l),a.valueCursor&&(!a.inline||s.hasFocus()))try{s.selection.moveToBookmark(a.valueCursor)}catch{}}),a.rollbackTimer=void 0},a.handleBeforeInput=function(s){if(a.props.value!==void 0&&a.props.value===a.currentContent&&a.editor&&(!a.inline||a.editor.hasFocus()))try{a.valueCursor=a.editor.selection.getBookmark(3)}catch{}},a.handleBeforeInputSpecial=function(s){(s.key==="Enter"||s.key==="Backspace"||s.key==="Delete")&&a.handleBeforeInput(s)},a.handleEditorChange=function(s){var l=a.editor;if(l&&l.initialized){var u=l.getContent();a.props.value!==void 0&&a.props.value!==u&&a.props.rollback!==!1&&(a.rollbackTimer||(a.rollbackTimer=window.setTimeout(a.rollbackChange,typeof a.props.rollback=="number"?a.props.rollback:200))),u!==a.currentContent&&(a.currentContent=u,td(a.props.onEditorChange)&&a.props.onEditorChange(u,l))}},a.handleEditorChangeSpecial=function(s){(s.key==="Backspace"||s.key==="Delete")&&a.handleEditorChange(s)},a.initialise=function(s){var l,u,c;s===void 0&&(s=0);var d=a.elementRef.current;if(d){if(!bN(d)){if(s===0)setTimeout(function(){return a.initialise(1)},1);else if(s<100)setTimeout(function(){return a.initialise(s+1)},100);else throw new Error("tinymce can only be initialised when in a document");return}var h=vN(a.view),f=qi(qi(qi(qi({},a.props.init),{selector:void 0,target:d,disabled:a.props.disabled,readonly:a.props.readonly,inline:a.inline,plugins:mN((l=a.props.init)===null||l===void 0?void 0:l.plugins,a.props.plugins),toolbar:(u=a.props.toolbar)!==null&&u!==void 0?u:(c=a.props.init)===null||c===void 0?void 0:c.toolbar}),a.props.licenseKey?{license_key:a.props.licenseKey}:{}),{setup:function(g){a.editor=g,a.bindHandlers({}),a.inline&&!xb(d)&&g.once("PostRender",function(m){g.setContent(a.getInitialValue(),{no_events:!0})}),a.props.init&&td(a.props.init.setup)&&a.props.init.setup(g),a.props.disabled&&(Db(a.editor)?a.editor.options.set("disabled",a.props.disabled):a.editor.mode.set("readonly"))},init_instance_callback:function(g){var m,b=a.getInitialValue();a.currentContent=(m=a.currentContent)!==null&&m!==void 0?m:g.getContent(),a.currentContent!==b&&(a.currentContent=b,g.setContent(b),g.undoManager.clear(),g.undoManager.add(),g.setDirty(!1)),a.props.init&&td(a.props.init.init_instance_callback)&&a.props.init.init_instance_callback(g)}});a.inline||(d.style.visibility=""),xb(d)&&(d.value=a.getInitialValue()),h.init(f)}},a.id=a.props.id||UC("tiny-react"),a.elementRef=G.createRef(),a.inline=(o=(r=a.props.inline)!==null&&r!==void 0?r:(i=a.props.init)===null||i===void 0?void 0:i.inline)!==null&&o!==void 0?o:!1,a.boundHandlers={},a}return Object.defineProperty(t.prototype,"view",{get:function(){var n,r;return(r=(n=this.elementRef.current)===null||n===void 0?void 0:n.ownerDocument.defaultView)!==null&&r!==void 0?r:window},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(n){var r=this,i,o;if(this.rollbackTimer&&(clearTimeout(this.rollbackTimer),this.rollbackTimer=void 0),this.editor&&(this.bindHandlers(n),this.editor.initialized)){if(this.currentContent=(i=this.currentContent)!==null&&i!==void 0?i:this.editor.getContent(),typeof this.props.initialValue=="string"&&this.props.initialValue!==n.initialValue)this.editor.setContent(this.props.initialValue),this.editor.undoManager.clear(),this.editor.undoManager.add(),this.editor.setDirty(!1);else if(typeof this.props.value=="string"&&this.props.value!==this.currentContent){var a=this.editor;a.undoManager.transact(function(){var l;if(!r.inline||a.hasFocus())try{l=a.selection.getBookmark(3)}catch{}var u=r.valueCursor;if(a.setContent(r.props.value),!r.inline||a.hasFocus())for(var c=0,d=[l,u];c<d.length;c++){var h=d[c];if(h)try{a.selection.moveToBookmark(h),r.valueCursor=h;break}catch{}}})}if(this.props.readonly!==n.readonly){var s=(o=this.props.readonly)!==null&&o!==void 0?o:!1;wb(this.editor,s?"readonly":"design")}this.props.disabled!==n.disabled&&(Db(this.editor)?this.editor.options.set("disabled",this.props.disabled):wb(this.editor,this.props.disabled?"readonly":"design"))}},t.prototype.componentDidMount=function(){var n=this,r,i,o,a,s;if(YC(this.view)!==null)this.initialise();else if(Array.isArray(this.props.tinymceScriptSrc)&&this.props.tinymceScriptSrc.length===0)(i=(r=this.props).onScriptsLoadError)===null||i===void 0||i.call(r,new Error("No `tinymce` global is present but the `tinymceScriptSrc` prop was an empty array."));else if(!((o=this.elementRef.current)===null||o===void 0)&&o.ownerDocument){var l=function(){var c,d;(d=(c=n.props).onScriptsLoad)===null||d===void 0||d.call(c),n.initialise()},u=function(c){var d,h;(h=(d=n.props).onScriptsLoadError)===null||h===void 0||h.call(d,c)};wN.loadList(this.elementRef.current.ownerDocument,this.getScriptSources(),(s=(a=this.props.scriptLoading)===null||a===void 0?void 0:a.delay)!==null&&s!==void 0?s:0,l,u)}},t.prototype.componentWillUnmount=function(){var n=this,r=this.editor;r&&(r.off(nd,this.handleEditorChange),r.off(this.beforeInputEvent(),this.handleBeforeInput),r.off("keypress",this.handleEditorChangeSpecial),r.off("keydown",this.handleBeforeInputSpecial),r.off("NewBlock",this.handleEditorChange),Object.keys(this.boundHandlers).forEach(function(i){r.off(i,n.boundHandlers[i])}),this.boundHandlers={},r.remove(),this.editor=void 0)},t.prototype.render=function(){return this.inline?this.renderInline():this.renderIframe()},t.prototype.beforeInputEvent=function(){return pN()?"beforeinput SelectionChange":"SelectionChange"},t.prototype.renderInline=function(){var n=this.props.tagName,r=n===void 0?"div":n;return G.createElement(r,{ref:this.elementRef,id:this.id,tabIndex:this.props.tabIndex})},t.prototype.renderIframe=function(){return G.createElement("textarea",{ref:this.elementRef,style:{visibility:"hidden"},name:this.props.textareaName,id:this.id,tabIndex:this.props.tabIndex})},t.prototype.getScriptSources=function(){var n,r,i=(n=this.props.scriptLoading)===null||n===void 0?void 0:n.async,o=(r=this.props.scriptLoading)===null||r===void 0?void 0:r.defer;if(this.props.tinymceScriptSrc!==void 0)return typeof this.props.tinymceScriptSrc=="string"?[{src:this.props.tinymceScriptSrc,async:i,defer:o}]:this.props.tinymceScriptSrc.map(function(u){return typeof u=="string"?{src:u,async:i,defer:o}:u});var a=this.props.cloudChannel,s=this.props.apiKey?this.props.apiKey:"no-api-key",l="https://cdn.tiny.cloud/1/".concat(s,"/tinymce/").concat(a,"/tinymce.min.js");return[{src:l,async:i,defer:o}]},t.prototype.getInitialValue=function(){return typeof this.props.initialValue=="string"?this.props.initialValue:typeof this.props.value=="string"?this.props.value:""},t.prototype.bindHandlers=function(n){var r=this;if(this.editor!==void 0){gN(this.editor,n,this.props,this.boundHandlers,function(s){return r.props[s]});var i=function(s){return s.onEditorChange!==void 0||s.value!==void 0},o=i(n),a=i(this.props);!o&&a?(this.editor.on(nd,this.handleEditorChange),this.editor.on(this.beforeInputEvent(),this.handleBeforeInput),this.editor.on("keydown",this.handleBeforeInputSpecial),this.editor.on("keyup",this.handleEditorChangeSpecial),this.editor.on("NewBlock",this.handleEditorChange)):o&&!a&&(this.editor.off(nd,this.handleEditorChange),this.editor.off(this.beforeInputEvent(),this.handleBeforeInput),this.editor.off("keydown",this.handleBeforeInputSpecial),this.editor.off("keyup",this.handleEditorChangeSpecial),this.editor.off("NewBlock",this.handleEditorChange))}},t.propTypes=fN,t.defaultProps={cloudChannel:"7"},t}(G.Component);const EN=e=>E.jsx("div",{className:`${oN.container}`,children:E.jsx(SN,{...la(rN({label:e.label}),e)})});exports.AlertContainer=kD;exports.Badges=R3;exports.BigNumber=Ue;exports.Breadcrumbs=BP;exports.Button=Dn;exports.ButtonIcon=$3;exports.ButtonPopover=GC;exports.Calendar=ku;exports.CalendarRange=I3;exports.CheckboxTable=xO;exports.Chips=A3;exports.Collapse=HP;exports.ConfigColors=Hb;exports.ConfigTable=Wt;exports.DatePicker=bP;exports.DateRangePicker=_3;exports.DefaultCheckedChecboxIcon=F3;exports.DefaultRadioChecboxIcon=P3;exports.DoughnutChart=vO;exports.ErrorMessage=_O;exports.FilterContainer=M3;exports.FilterDate=vP;exports.GradientBarChart=UO;exports.GradientLineChart=GO;exports.InputFloatingInner=p1;exports.InputNative=sg;exports.InputReguler=Tf;exports.LineChart=OO;exports.ListVirtualization=Sv;exports.ModalDialog=WP;exports.MonthYearPicker=yO;exports.NumberFormat=DT;exports.Pagination=N$;exports.PatternFormat=wT;exports.Popover=br;exports.PortalComponent=Wh;exports.RadioCheckbox=Mu;exports.RadioCheckboxLabel=FP;exports.SelectDropdownContainer=gy;exports.SelectDropdownContainerComponents=ny;exports.Sidebar=k3;exports.Step=MO;exports.StepIndicator=tN;exports.Switch=CP;exports.TPublish=M5;exports.TabPanel=A$;exports.Table=S$;exports.TableVirtualization=eh;exports.Tabs=R$;exports.TextEditor=EN;exports.Textarea=Z3;exports.TextareaFloatingInner=zC;exports.Timeline=XP;exports.Tooltip=VO;exports.TruncateComponent=_T;exports.TypeBigNumber=lu;exports.UploadFile=G3;exports.UploadImage=PT;exports.UploadMultipleFile=IO;exports.betweenBig=YD;exports.configScreens=k5;exports.configTypography=T5;exports.configTypographyLabaBisnis=Wb;exports.configTypographyPayhere=jb;exports.convertBigNumbersToStrings=dd;exports.convertNumbersToBigNumbers=cd;exports.convertTextToJsonBigNumbers=P5;exports.cookieStorage=wD;exports.deepCompareEquals=xf;exports.defaultConfig=Pb;exports.extractElementStringToOriginalValue=vD;exports.formatBigNumber=yD;exports.formatDate=Ji;exports.formatDateRange=lD;exports.formatNumber=Er;exports.groupByKey=kb;exports.isAccurateBigNumber=zn;exports.isAccurateNumber=Tb;exports.lessThanBig=XD;exports.maxBig=GD;exports.minBig=zD;exports.moreThanBig=ZD;exports.openAlert=MD;exports.parseBigDecimal=uu;exports.parseDecimal=bf;exports.parseFileName=od;exports.removeKeyObjectEmptyValue=cD;exports.removeTrailingZeros=xD;exports.setDigit=cu;exports.transformArrayMapping=fD;exports.transformArrayMappingObjectFC=hD;exports.transformArrayOfObjectToArray=yf;exports.transformArrayOfObjectToString=vf;exports.transformBigNumber=pD;exports.transformDataHistory=uD;exports.transformLatLong=dD;exports.transformNumber=mD;exports.transformSecondTime=gD;exports.transfromIsNan=bD;exports.useAsyncDebounce=Cv;exports.useCombinedResizeObserver=g$;exports.useCountdown=h$;exports.useDeepCompareEffect=Ci;exports.useDeepCompareMemoize=wa;exports.useElementOrWindowMediaQuery=f$;exports.useEventListener=v$;exports.useMasonry=y$;exports.useMergeRefs=nh;exports.useStateRef=m$;exports.utilTable=II;
199
199
  //# sourceMappingURL=index.cjs.map