1mpacto-react-ui 0.0.119 → 0.0.120

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,4 +1,4 @@
1
- "use strict";var $C=Object.defineProperty;var RC=(e,t,n)=>t in e?$C(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ae=(e,t,n)=>RC(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("react"),ts=require("react-dom");function e1(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 W=e1(w),t1=e1(ts);function Vn(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function Ii(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const n1=6048e5,AC=864e5;let FC={};function pu(){return FC}function bo(e,t){var s,l,u,c;const n=pu(),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=Vn(e),a=i.getDay(),o=(a<r?7:0)+a-r;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function Sl(e){return bo(e,{weekStartsOn:1})}function r1(e){const t=Vn(e),n=t.getFullYear(),r=Ii(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const i=Sl(r),a=Ii(e,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);const o=Sl(a);return t.getTime()>=i.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function sg(e){const t=Vn(e);return t.setHours(0,0,0,0),t}function lg(e){const t=Vn(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function TC(e,t){const n=sg(e),r=sg(t),i=+n-lg(n),a=+r-lg(r);return Math.round((i-a)/AC)}function PC(e){const t=r1(e),n=Ii(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Sl(n)}function kC(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function MC(e){if(!kC(e)&&typeof e!="number")return!1;const t=Vn(e);return!isNaN(Number(t))}function BC(e){const t=Vn(e),n=Ii(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const OC={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"}},NC=(e,t,n)=>{let r;const i=OC[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 Cr(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const VC={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},LC={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},HC={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},jC={date:Cr({formats:VC,defaultWidth:"full"}),time:Cr({formats:LC,defaultWidth:"full"}),dateTime:Cr({formats:HC,defaultWidth:"full"})},WC={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},zC=(e,t,n,r)=>WC[e];function Mt(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):o;i=e.formattingValues[s]||e.formattingValues[o]}else{const o=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[s]||e.values[o]}const a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}const GC={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},XC={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ZC={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"]},YC={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"]},UC={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"}},JC={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"}},KC=(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"},qC={ordinalNumber:KC,era:Mt({values:GC,defaultWidth:"wide"}),quarter:Mt({values:XC,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Mt({values:ZC,defaultWidth:"wide"}),day:Mt({values:YC,defaultWidth:"wide"}),dayPeriod:Mt({values:UC,defaultWidth:"wide",formattingValues:JC,defaultFormattingWidth:"wide"})};function Bt(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;const o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?e2(s,d=>d.test(o)):QC(s,d=>d.test(o));let u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const c=t.slice(o.length);return{value:u,rest:c}}}function QC(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function e2(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function lf(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;const s=t.slice(i.length);return{value:o,rest:s}}}const t2=/^(\d+)(th|st|nd|rd)?/i,n2=/\d+/i,r2={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},i2={any:[/^b/i,/^(a|c)/i]},a2={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},o2={any:[/1/i,/2/i,/3/i,/4/i]},s2={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},l2={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]},u2={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},c2={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]},d2={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},f2={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}},h2={ordinalNumber:lf({matchPattern:t2,parsePattern:n2,valueCallback:e=>parseInt(e,10)}),era:Bt({matchPatterns:r2,defaultMatchWidth:"wide",parsePatterns:i2,defaultParseWidth:"any"}),quarter:Bt({matchPatterns:a2,defaultMatchWidth:"wide",parsePatterns:o2,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Bt({matchPatterns:s2,defaultMatchWidth:"wide",parsePatterns:l2,defaultParseWidth:"any"}),day:Bt({matchPatterns:u2,defaultMatchWidth:"wide",parsePatterns:c2,defaultParseWidth:"any"}),dayPeriod:Bt({matchPatterns:d2,defaultMatchWidth:"any",parsePatterns:f2,defaultParseWidth:"any"})},uf={code:"en-US",formatDistance:NC,formatLong:jC,formatRelative:zC,localize:qC,match:h2,options:{weekStartsOn:0,firstWeekContainsDate:1}};function g2(e){const t=Vn(e);return TC(t,BC(t))+1}function m2(e){const t=Vn(e),n=+Sl(t)-+PC(t);return Math.round(n/n1)+1}function i1(e,t){var c,d,h,f;const n=Vn(e),r=n.getFullYear(),i=pu(),a=(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,o=Ii(e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);const s=bo(o,t),l=Ii(e,0);l.setFullYear(r,0,a),l.setHours(0,0,0,0);const u=bo(l,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function p2(e,t){var s,l,u,c;const n=pu(),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=i1(e,t),a=Ii(e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),bo(a,t)}function b2(e,t){const n=Vn(e),r=+bo(n,t)-+p2(n,t);return Math.round(r/n1)+1}function ze(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const $r={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return ze(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):ze(n+1,2)},d(e,t){return ze(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 ze(e.getHours()%12||12,t.length)},H(e,t){return ze(e.getHours(),t.length)},m(e,t){return ze(e.getMinutes(),t.length)},s(e,t){return ze(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return ze(i,t.length)}},ji={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},ug={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 $r.y(e,t)},Y:function(e,t,n,r){const i=i1(e,r),a=i>0?i:1-i;if(t==="YY"){const o=a%100;return ze(o,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):ze(a,t.length)},R:function(e,t){const n=r1(e);return ze(n,t.length)},u:function(e,t){const n=e.getFullYear();return ze(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 ze(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 ze(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 $r.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 ze(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=b2(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):ze(i,t.length)},I:function(e,t,n){const r=m2(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):ze(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):$r.d(e,t)},D:function(e,t,n){const r=g2(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):ze(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return ze(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return ze(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return ze(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=ji.noon:r===0?i=ji.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=ji.evening:r>=12?i=ji.afternoon:r>=4?i=ji.morning:i=ji.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 $r.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):$r.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):ze(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):ze(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):$r.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):$r.s(e,t)},S:function(e,t){return $r.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return dg(r);case"XXXX":case"XX":return li(r);case"XXXXX":case"XXX":default:return li(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return dg(r);case"xxxx":case"xx":return li(r);case"xxxxx":case"xxx":default:return li(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+cg(r,":");case"OOOO":default:return"GMT"+li(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+cg(r,":");case"zzzz":default:return"GMT"+li(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return ze(r,t.length)},T:function(e,t,n){const r=e.getTime();return ze(r,t.length)}};function cg(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+ze(a,2)}function dg(e,t){return e%60===0?(e>0?"-":"+")+ze(Math.abs(e)/60,2):li(e,t)}function li(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=ze(Math.trunc(r/60),2),a=ze(r%60,2);return n+i+t+a}const fg=(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"})}},a1=(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"})}},v2=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return fg(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",fg(r,t)).replace("{{time}}",a1(i,t))},y2={p:a1,P:v2},x2=/^D+$/,C2=/^Y+$/,w2=["D","DD","YY","YYYY"];function D2(e){return x2.test(e)}function S2(e){return C2.test(e)}function E2(e,t,n){const r=I2(e,t,n);if(console.warn(r),w2.includes(e))throw new RangeError(r)}function I2(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 _2=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,$2=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,R2=/^'([^]*?)'?$/,A2=/''/g,F2=/[a-zA-Z]/;function vo(e,t,n){var c,d,h,f,g,p,b,v;const r=pu(),i=(n==null?void 0:n.locale)??r.locale??uf,a=(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,o=(n==null?void 0:n.weekStartsOn)??((p=(g=n==null?void 0:n.locale)==null?void 0:g.options)==null?void 0:p.weekStartsOn)??r.weekStartsOn??((v=(b=r.locale)==null?void 0:b.options)==null?void 0:v.weekStartsOn)??0,s=Vn(e);if(!MC(s))throw new RangeError("Invalid time value");let l=t.match($2).map(y=>{const x=y[0];if(x==="p"||x==="P"){const S=y2[x];return S(y,i.formatLong)}return y}).join("").match(_2).map(y=>{if(y==="''")return{isToken:!1,value:"'"};const x=y[0];if(x==="'")return{isToken:!1,value:T2(y)};if(ug[x])return{isToken:!0,value:y};if(x.match(F2))throw new RangeError("Format string contains an unescaped latin alphabet character `"+x+"`");return{isToken:!1,value:y}});i.localize.preprocessor&&(l=i.localize.preprocessor(s,l));const u={firstWeekContainsDate:a,weekStartsOn:o,locale:i};return l.map(y=>{if(!y.isToken)return y.value;const x=y.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&S2(x)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&D2(x))&&E2(x,t,String(e));const S=ug[x[0]];return S(s,x,i.localize,u)}).join("")}function T2(e){const t=e.match(R2);return t?t[1].replace(A2,"'"):e}const P2={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"}},k2=(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}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"dalam waktu "+r:r+" yang lalu":r},M2={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"d/M/yyyy"},B2={full:"HH.mm.ss",long:"HH.mm.ss",medium:"HH.mm",short:"HH.mm"},O2={full:"{{date}} 'pukul' {{time}}",long:"{{date}} 'pukul' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},N2={date:Cr({formats:M2,defaultWidth:"full"}),time:Cr({formats:B2,defaultWidth:"full"}),dateTime:Cr({formats:O2,defaultWidth:"full"})},V2={lastWeek:"eeee 'lalu pukul' p",yesterday:"'Kemarin pukul' p",today:"'Hari ini pukul' p",tomorrow:"'Besok pukul' p",nextWeek:"eeee 'pukul' p",other:"P"},L2=(e,t,n,r)=>V2[e],H2={narrow:["SM","M"],abbreviated:["SM","M"],wide:["Sebelum Masehi","Masehi"]},j2={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["Kuartal ke-1","Kuartal ke-2","Kuartal ke-3","Kuartal ke-4"]},W2={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"]},z2={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"]},G2={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"}},X2={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"}},Z2=(e,t)=>"ke-"+Number(e),Y2={ordinalNumber:Z2,era:Mt({values:H2,defaultWidth:"wide"}),quarter:Mt({values:j2,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Mt({values:W2,defaultWidth:"wide"}),day:Mt({values:z2,defaultWidth:"wide"}),dayPeriod:Mt({values:G2,defaultWidth:"wide",formattingValues:X2,defaultFormattingWidth:"wide"})},U2=/^ke-(\d+)?/i,J2=/\d+/i,K2={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},q2={any:[/^s/i,/^(m|e)/i]},Q2={narrow:/^[1234]/i,abbreviated:/^K-?\s[1234]/i,wide:/^Kuartal ke-?\s?[1234]/i},ew={any:[/1/i,/2/i,/3/i,/4/i]},tw={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},nw={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]},rw={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},iw={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]},aw={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},ow={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}},sw={ordinalNumber:lf({matchPattern:U2,parsePattern:J2,valueCallback:e=>parseInt(e,10)}),era:Bt({matchPatterns:K2,defaultMatchWidth:"wide",parsePatterns:q2,defaultParseWidth:"any"}),quarter:Bt({matchPatterns:Q2,defaultMatchWidth:"wide",parsePatterns:ew,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Bt({matchPatterns:tw,defaultMatchWidth:"wide",parsePatterns:nw,defaultParseWidth:"any"}),day:Bt({matchPatterns:rw,defaultMatchWidth:"wide",parsePatterns:iw,defaultParseWidth:"any"}),dayPeriod:Bt({matchPatterns:aw,defaultMatchWidth:"any",parsePatterns:ow,defaultParseWidth:"any"})},El={code:"id",formatDistance:k2,formatLong:N2,formatRelative:L2,localize:Y2,match:sw,options:{weekStartsOn:1,firstWeekContainsDate:1}},lw={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"}},uw=(e,t,n)=>{let r;const i=lw[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},cw={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"},dw={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},fw={full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},hw={date:Cr({formats:cw,defaultWidth:"full"}),time:Cr({formats:dw,defaultWidth:"full"}),dateTime:Cr({formats:fw,defaultWidth:"full"})},gw={lastWeek:"'afgelopen' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"},mw=(e,t,n,r)=>gw[e],pw={narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]},bw={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]},vw={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"]},yw={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"]},xw={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"}},Cw=(e,t)=>Number(e)+"e",ww={ordinalNumber:Cw,era:Mt({values:pw,defaultWidth:"wide"}),quarter:Mt({values:bw,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Mt({values:vw,defaultWidth:"wide"}),day:Mt({values:yw,defaultWidth:"wide"}),dayPeriod:Mt({values:xw,defaultWidth:"wide"})},Dw=/^(\d+)e?/i,Sw=/\d+/i,Ew={narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},Iw={any:[/^v/,/^n/]},_w={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},$w={any:[/1/i,/2/i,/3/i,/4/i]},Rw={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},Aw={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]},Fw={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},Tw={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]},Pw={any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},kw={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}},Mw={ordinalNumber:lf({matchPattern:Dw,parsePattern:Sw,valueCallback:e=>parseInt(e,10)}),era:Bt({matchPatterns:Ew,defaultMatchWidth:"wide",parsePatterns:Iw,defaultParseWidth:"any"}),quarter:Bt({matchPatterns:_w,defaultMatchWidth:"wide",parsePatterns:$w,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Bt({matchPatterns:Rw,defaultMatchWidth:"wide",parsePatterns:Aw,defaultParseWidth:"any"}),day:Bt({matchPatterns:Fw,defaultMatchWidth:"wide",parsePatterns:Tw,defaultParseWidth:"any"}),dayPeriod:Bt({matchPatterns:Pw,defaultMatchWidth:"any",parsePatterns:kw,defaultParseWidth:"any"})},o1={code:"nl",formatDistance:uw,formatLong:hw,formatRelative:mw,localize:ww,match:Mw,options:{weekStartsOn:1,firstWeekContainsDate:4}};var Bw=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,qu=Math.ceil,yn=Math.floor,Yt="[BigNumber Error] ",hg=Yt+"Number primitive has more than 15 significant digits: ",_n=1e14,Ce=14,gg=9007199254740991,Qu=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],Rr=1e7,Qt=1e9;function s1(e){var t,n,r,i=y.prototype={constructor:y,toString:null,valueOf:null},a=new y(1),o=20,s=4,l=-7,u=21,c=-1e7,d=1e7,h=!1,f=1,g=0,p={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},b="0123456789abcdefghijklmnopqrstuvwxyz",v=!0;function y(m,C){var I,E,R,P,A,M,k,T,B=this;if(!(B instanceof y))return new y(m,C);if(C==null){if(m&&m._isBigNumber===!0){B.s=m.s,!m.c||m.e>d?B.c=B.e=null:m.e<c?B.c=[B.e=0]:(B.e=m.e,B.c=m.c.slice());return}if((M=typeof m=="number")&&m*0==0){if(B.s=1/m<0?(m=-m,-1):1,m===~~m){for(P=0,A=m;A>=10;A/=10,P++);P>d?B.c=B.e=null:(B.e=P,B.c=[m]);return}T=String(m)}else{if(!Bw.test(T=String(m)))return r(B,T,M);B.s=T.charCodeAt(0)==45?(T=T.slice(1),-1):1}(P=T.indexOf("."))>-1&&(T=T.replace(".","")),(A=T.search(/e/i))>0?(P<0&&(P=A),P+=+T.slice(A+1),T=T.substring(0,A)):P<0&&(P=T.length)}else{if(Qe(C,2,b.length,"Base"),C==10&&v)return B=new y(m),$(B,o+B.e+1,s);if(T=String(m),M=typeof m=="number"){if(m*0!=0)return r(B,T,M,C);if(B.s=1/m<0?(T=T.slice(1),-1):1,y.DEBUG&&T.replace(/^0\.0*|\./,"").length>15)throw Error(hg+m)}else B.s=T.charCodeAt(0)===45?(T=T.slice(1),-1):1;for(I=b.slice(0,C),P=A=0,k=T.length;A<k;A++)if(I.indexOf(E=T.charAt(A))<0){if(E=="."){if(A>P){P=k;continue}}else if(!R&&(T==T.toUpperCase()&&(T=T.toLowerCase())||T==T.toLowerCase()&&(T=T.toUpperCase()))){R=!0,A=-1,P=0;continue}return r(B,String(m),M,C)}M=!1,T=n(T,C,10,B.s),(P=T.indexOf("."))>-1?T=T.replace(".",""):P=T.length}for(A=0;T.charCodeAt(A)===48;A++);for(k=T.length;T.charCodeAt(--k)===48;);if(T=T.slice(A,++k)){if(k-=A,M&&y.DEBUG&&k>15&&(m>gg||m!==yn(m)))throw Error(hg+B.s*m);if((P=P-A-1)>d)B.c=B.e=null;else if(P<c)B.c=[B.e=0];else{if(B.e=P,B.c=[],A=(P+1)%Ce,P<0&&(A+=Ce),A<k){for(A&&B.c.push(+T.slice(0,A)),k-=Ce;A<k;)B.c.push(+T.slice(A,A+=Ce));A=Ce-(T=T.slice(A)).length}else A-=k;for(;A--;T+="0");B.c.push(+T)}}else B.c=[B.e=0]}y.clone=s1,y.ROUND_UP=0,y.ROUND_DOWN=1,y.ROUND_CEIL=2,y.ROUND_FLOOR=3,y.ROUND_HALF_UP=4,y.ROUND_HALF_DOWN=5,y.ROUND_HALF_EVEN=6,y.ROUND_HALF_CEIL=7,y.ROUND_HALF_FLOOR=8,y.EUCLID=9,y.config=y.set=function(m){var C,I;if(m!=null)if(typeof m=="object"){if(m.hasOwnProperty(C="DECIMAL_PLACES")&&(I=m[C],Qe(I,0,Qt,C),o=I),m.hasOwnProperty(C="ROUNDING_MODE")&&(I=m[C],Qe(I,0,8,C),s=I),m.hasOwnProperty(C="EXPONENTIAL_AT")&&(I=m[C],I&&I.pop?(Qe(I[0],-1e9,0,C),Qe(I[1],0,Qt,C),l=I[0],u=I[1]):(Qe(I,-1e9,Qt,C),l=-(u=I<0?-I:I))),m.hasOwnProperty(C="RANGE"))if(I=m[C],I&&I.pop)Qe(I[0],-1e9,-1,C),Qe(I[1],1,Qt,C),c=I[0],d=I[1];else if(Qe(I,-1e9,Qt,C),I)c=-(d=I<0?-I:I);else throw Error(Yt+C+" cannot be zero: "+I);if(m.hasOwnProperty(C="CRYPTO"))if(I=m[C],I===!!I)if(I)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))h=I;else throw h=!I,Error(Yt+"crypto unavailable");else h=I;else throw Error(Yt+C+" not true or false: "+I);if(m.hasOwnProperty(C="MODULO_MODE")&&(I=m[C],Qe(I,0,9,C),f=I),m.hasOwnProperty(C="POW_PRECISION")&&(I=m[C],Qe(I,0,Qt,C),g=I),m.hasOwnProperty(C="FORMAT"))if(I=m[C],typeof I=="object")p=I;else throw Error(Yt+C+" not an object: "+I);if(m.hasOwnProperty(C="ALPHABET"))if(I=m[C],typeof I=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test(I))v=I.slice(0,10)=="0123456789",b=I;else throw Error(Yt+C+" invalid: "+I)}else throw Error(Yt+"Object expected: "+m);return{DECIMAL_PLACES:o,ROUNDING_MODE:s,EXPONENTIAL_AT:[l,u],RANGE:[c,d],CRYPTO:h,MODULO_MODE:f,POW_PRECISION:g,FORMAT:p,ALPHABET:b}},y.isBigNumber=function(m){if(!m||m._isBigNumber!==!0)return!1;if(!y.DEBUG)return!0;var C,I,E=m.c,R=m.e,P=m.s;e:if({}.toString.call(E)=="[object Array]"){if((P===1||P===-1)&&R>=-1e9&&R<=Qt&&R===yn(R)){if(E[0]===0){if(R===0&&E.length===1)return!0;break e}if(C=(R+1)%Ce,C<1&&(C+=Ce),String(E[0]).length==C){for(C=0;C<E.length;C++)if(I=E[C],I<0||I>=_n||I!==yn(I))break e;if(I!==0)return!0}}}else if(E===null&&R===null&&(P===null||P===1||P===-1))return!0;throw Error(Yt+"Invalid BigNumber: "+m)},y.maximum=y.max=function(){return S(arguments,-1)},y.minimum=y.min=function(){return S(arguments,1)},y.random=function(){var m=9007199254740992,C=Math.random()*m&2097151?function(){return yn(Math.random()*m)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(I){var E,R,P,A,M,k=0,T=[],B=new y(a);if(I==null?I=o:Qe(I,0,Qt),A=qu(I/Ce),h)if(crypto.getRandomValues){for(E=crypto.getRandomValues(new Uint32Array(A*=2));k<A;)M=E[k]*131072+(E[k+1]>>>11),M>=9e15?(R=crypto.getRandomValues(new Uint32Array(2)),E[k]=R[0],E[k+1]=R[1]):(T.push(M%1e14),k+=2);k=A/2}else if(crypto.randomBytes){for(E=crypto.randomBytes(A*=7);k<A;)M=(E[k]&31)*281474976710656+E[k+1]*1099511627776+E[k+2]*4294967296+E[k+3]*16777216+(E[k+4]<<16)+(E[k+5]<<8)+E[k+6],M>=9e15?crypto.randomBytes(7).copy(E,k):(T.push(M%1e14),k+=7);k=A/7}else throw h=!1,Error(Yt+"crypto unavailable");if(!h)for(;k<A;)M=C(),M<9e15&&(T[k++]=M%1e14);for(A=T[--k],I%=Ce,A&&I&&(M=Qu[Ce-I],T[k]=yn(A/M)*M);T[k]===0;T.pop(),k--);if(k<0)T=[P=0];else{for(P=-1;T[0]===0;T.splice(0,1),P-=Ce);for(k=1,M=T[0];M>=10;M/=10,k++);k<Ce&&(P-=Ce-k)}return B.e=P,B.c=T,B}}(),y.sum=function(){for(var m=1,C=arguments,I=new y(C[0]);m<C.length;)I=I.plus(C[m++]);return I},n=function(){var m="0123456789";function C(I,E,R,P){for(var A,M=[0],k,T=0,B=I.length;T<B;){for(k=M.length;k--;M[k]*=E);for(M[0]+=P.indexOf(I.charAt(T++)),A=0;A<M.length;A++)M[A]>R-1&&(M[A+1]==null&&(M[A+1]=0),M[A+1]+=M[A]/R|0,M[A]%=R)}return M.reverse()}return function(I,E,R,P,A){var M,k,T,B,O,L,j,z,Y=I.indexOf("."),G=o,H=s;for(Y>=0&&(B=g,g=0,I=I.replace(".",""),z=new y(E),L=z.pow(I.length-Y),g=B,z.c=C(ir(gn(L.c),L.e,"0"),10,R,m),z.e=z.c.length),j=C(I,E,R,A?(M=b,m):(M=m,b)),T=B=j.length;j[--B]==0;j.pop());if(!j[0])return M.charAt(0);if(Y<0?--T:(L.c=j,L.e=T,L.s=P,L=t(L,z,G,H,R),j=L.c,O=L.r,T=L.e),k=T+G+1,Y=j[k],B=R/2,O=O||k<0||j[k+1]!=null,O=H<4?(Y!=null||O)&&(H==0||H==(L.s<0?3:2)):Y>B||Y==B&&(H==4||O||H==6&&j[k-1]&1||H==(L.s<0?8:7)),k<1||!j[0])I=O?ir(M.charAt(1),-G,M.charAt(0)):M.charAt(0);else{if(j.length=k,O)for(--R;++j[--k]>R;)j[k]=0,k||(++T,j=[1].concat(j));for(B=j.length;!j[--B];);for(Y=0,I="";Y<=B;I+=M.charAt(j[Y++]));I=ir(I,T,M.charAt(0))}return I}}(),t=function(){function m(E,R,P){var A,M,k,T,B=0,O=E.length,L=R%Rr,j=R/Rr|0;for(E=E.slice();O--;)k=E[O]%Rr,T=E[O]/Rr|0,A=j*k+T*L,M=L*k+A%Rr*Rr+B,B=(M/P|0)+(A/Rr|0)+j*T,E[O]=M%P;return B&&(E=[B].concat(E)),E}function C(E,R,P,A){var M,k;if(P!=A)k=P>A?1:-1;else for(M=k=0;M<P;M++)if(E[M]!=R[M]){k=E[M]>R[M]?1:-1;break}return k}function I(E,R,P,A){for(var M=0;P--;)E[P]-=M,M=E[P]<R[P]?1:0,E[P]=M*A+E[P]-R[P];for(;!E[0]&&E.length>1;E.splice(0,1));}return function(E,R,P,A,M){var k,T,B,O,L,j,z,Y,G,H,V,X,K,te,ue,ie,Z,me=E.s==R.s?1:-1,he=E.c,ce=R.c;if(!he||!he[0]||!ce||!ce[0])return new y(!E.s||!R.s||(he?ce&&he[0]==ce[0]:!ce)?NaN:he&&he[0]==0||!ce?me*0:me/0);for(Y=new y(me),G=Y.c=[],T=E.e-R.e,me=P+T+1,M||(M=_n,T=xn(E.e/Ce)-xn(R.e/Ce),me=me/Ce|0),B=0;ce[B]==(he[B]||0);B++);if(ce[B]>(he[B]||0)&&T--,me<0)G.push(1),O=!0;else{for(te=he.length,ie=ce.length,B=0,me+=2,L=yn(M/(ce[0]+1)),L>1&&(ce=m(ce,L,M),he=m(he,L,M),ie=ce.length,te=he.length),K=ie,H=he.slice(0,ie),V=H.length;V<ie;H[V++]=0);Z=ce.slice(),Z=[0].concat(Z),ue=ce[0],ce[1]>=M/2&&ue++;do{if(L=0,k=C(ce,H,ie,V),k<0){if(X=H[0],ie!=V&&(X=X*M+(H[1]||0)),L=yn(X/ue),L>1)for(L>=M&&(L=M-1),j=m(ce,L,M),z=j.length,V=H.length;C(j,H,z,V)==1;)L--,I(j,ie<z?Z:ce,z,M),z=j.length,k=1;else L==0&&(k=L=1),j=ce.slice(),z=j.length;if(z<V&&(j=[0].concat(j)),I(H,j,V,M),V=H.length,k==-1)for(;C(ce,H,ie,V)<1;)L++,I(H,ie<V?Z:ce,V,M),V=H.length}else k===0&&(L++,H=[0]);G[B++]=L,H[0]?H[V++]=he[K]||0:(H=[he[K]],V=1)}while((K++<te||H[0]!=null)&&me--);O=H[0]!=null,G[0]||G.splice(0,1)}if(M==_n){for(B=1,me=G[0];me>=10;me/=10,B++);$(Y,P+(Y.e=B+T*Ce-1)+1,A,O)}else Y.e=T,Y.r=+O;return Y}}();function x(m,C,I,E){var R,P,A,M,k;if(I==null?I=s:Qe(I,0,8),!m.c)return m.toString();if(R=m.c[0],A=m.e,C==null)k=gn(m.c),k=E==1||E==2&&(A<=l||A>=u)?ys(k,A):ir(k,A,"0");else if(m=$(new y(m),C,I),P=m.e,k=gn(m.c),M=k.length,E==1||E==2&&(C<=P||P<=l)){for(;M<C;k+="0",M++);k=ys(k,P)}else if(C-=A,k=ir(k,P,"0"),P+1>M){if(--C>0)for(k+=".";C--;k+="0");}else if(C+=P-M,C>0)for(P+1==M&&(k+=".");C--;k+="0");return m.s<0&&R?"-"+k:k}function S(m,C){for(var I,E,R=1,P=new y(m[0]);R<m.length;R++)E=new y(m[R]),(!E.s||(I=ni(P,E))===C||I===0&&P.s===C)&&(P=E);return P}function D(m,C,I){for(var E=1,R=C.length;!C[--R];C.pop());for(R=C[0];R>=10;R/=10,E++);return(I=E+I*Ce-1)>d?m.c=m.e=null:I<c?m.c=[m.e=0]:(m.e=I,m.c=C),m}r=function(){var m=/^(-?)0([xbo])(?=\w[\w.]*$)/i,C=/^([^.]+)\.$/,I=/^\.([^.]+)$/,E=/^-?(Infinity|NaN)$/,R=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(P,A,M,k){var T,B=M?A:A.replace(R,"");if(E.test(B))P.s=isNaN(B)?null:B<0?-1:1;else{if(!M&&(B=B.replace(m,function(O,L,j){return T=(j=j.toLowerCase())=="x"?16:j=="b"?2:8,!k||k==T?L:O}),k&&(T=k,B=B.replace(C,"$1").replace(I,"0.$1")),A!=B))return new y(B,T);if(y.DEBUG)throw Error(Yt+"Not a"+(k?" base "+k:"")+" number: "+A);P.s=null}P.c=P.e=null}}();function $(m,C,I,E){var R,P,A,M,k,T,B,O=m.c,L=Qu;if(O){e:{for(R=1,M=O[0];M>=10;M/=10,R++);if(P=C-R,P<0)P+=Ce,A=C,k=O[T=0],B=yn(k/L[R-A-1]%10);else if(T=qu((P+1)/Ce),T>=O.length)if(E){for(;O.length<=T;O.push(0));k=B=0,R=1,P%=Ce,A=P-Ce+1}else break e;else{for(k=M=O[T],R=1;M>=10;M/=10,R++);P%=Ce,A=P-Ce+R,B=A<0?0:yn(k/L[R-A-1]%10)}if(E=E||C<0||O[T+1]!=null||(A<0?k:k%L[R-A-1]),E=I<4?(B||E)&&(I==0||I==(m.s<0?3:2)):B>5||B==5&&(I==4||E||I==6&&(P>0?A>0?k/L[R-A]:0:O[T-1])%10&1||I==(m.s<0?8:7)),C<1||!O[0])return O.length=0,E?(C-=m.e+1,O[0]=L[(Ce-C%Ce)%Ce],m.e=-C||0):O[0]=m.e=0,m;if(P==0?(O.length=T,M=1,T--):(O.length=T+1,M=L[Ce-P],O[T]=A>0?yn(k/L[R-A]%L[A])*M:0),E)for(;;)if(T==0){for(P=1,A=O[0];A>=10;A/=10,P++);for(A=O[0]+=M,M=1;A>=10;A/=10,M++);P!=M&&(m.e++,O[0]==_n&&(O[0]=1));break}else{if(O[T]+=M,O[T]!=_n)break;O[T--]=0,M=1}for(P=O.length;O[--P]===0;O.pop());}m.e>d?m.c=m.e=null:m.e<c&&(m.c=[m.e=0])}return m}function F(m){var C,I=m.e;return I===null?m.toString():(C=gn(m.c),C=I<=l||I>=u?ys(C,I):ir(C,I,"0"),m.s<0?"-"+C:C)}return i.absoluteValue=i.abs=function(){var m=new y(this);return m.s<0&&(m.s=1),m},i.comparedTo=function(m,C){return ni(this,new y(m,C))},i.decimalPlaces=i.dp=function(m,C){var I,E,R,P=this;if(m!=null)return Qe(m,0,Qt),C==null?C=s:Qe(C,0,8),$(new y(P),m+P.e+1,C);if(!(I=P.c))return null;if(E=((R=I.length-1)-xn(this.e/Ce))*Ce,R=I[R])for(;R%10==0;R/=10,E--);return E<0&&(E=0),E},i.dividedBy=i.div=function(m,C){return t(this,new y(m,C),o,s)},i.dividedToIntegerBy=i.idiv=function(m,C){return t(this,new y(m,C),0,1)},i.exponentiatedBy=i.pow=function(m,C){var I,E,R,P,A,M,k,T,B,O=this;if(m=new y(m),m.c&&!m.isInteger())throw Error(Yt+"Exponent not an integer: "+F(m));if(C!=null&&(C=new y(C)),M=m.e>14,!O.c||!O.c[0]||O.c[0]==1&&!O.e&&O.c.length==1||!m.c||!m.c[0])return B=new y(Math.pow(+F(O),M?m.s*(2-vs(m)):+F(m))),C?B.mod(C):B;if(k=m.s<0,C){if(C.c?!C.c[0]:!C.s)return new y(NaN);E=!k&&O.isInteger()&&C.isInteger(),E&&(O=O.mod(C))}else{if(m.e>9&&(O.e>0||O.e<-1||(O.e==0?O.c[0]>1||M&&O.c[1]>=24e7:O.c[0]<8e13||M&&O.c[0]<=9999975e7)))return P=O.s<0&&vs(m)?-0:0,O.e>-1&&(P=1/P),new y(k?1/P:P);g&&(P=qu(g/Ce+2))}for(M?(I=new y(.5),k&&(m.s=1),T=vs(m)):(R=Math.abs(+F(m)),T=R%2),B=new y(a);;){if(T){if(B=B.times(O),!B.c)break;P?B.c.length>P&&(B.c.length=P):E&&(B=B.mod(C))}if(R){if(R=yn(R/2),R===0)break;T=R%2}else if(m=m.times(I),$(m,m.e+1,1),m.e>14)T=vs(m);else{if(R=+F(m),R===0)break;T=R%2}O=O.times(O),P?O.c&&O.c.length>P&&(O.c.length=P):E&&(O=O.mod(C))}return E?B:(k&&(B=a.div(B)),C?B.mod(C):P?$(B,g,s,A):B)},i.integerValue=function(m){var C=new y(this);return m==null?m=s:Qe(m,0,8),$(C,C.e+1,m)},i.isEqualTo=i.eq=function(m,C){return ni(this,new y(m,C))===0},i.isFinite=function(){return!!this.c},i.isGreaterThan=i.gt=function(m,C){return ni(this,new y(m,C))>0},i.isGreaterThanOrEqualTo=i.gte=function(m,C){return(C=ni(this,new y(m,C)))===1||C===0},i.isInteger=function(){return!!this.c&&xn(this.e/Ce)>this.c.length-2},i.isLessThan=i.lt=function(m,C){return ni(this,new y(m,C))<0},i.isLessThanOrEqualTo=i.lte=function(m,C){return(C=ni(this,new y(m,C)))===-1||C===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(m,C){var I,E,R,P,A=this,M=A.s;if(m=new y(m,C),C=m.s,!M||!C)return new y(NaN);if(M!=C)return m.s=-C,A.plus(m);var k=A.e/Ce,T=m.e/Ce,B=A.c,O=m.c;if(!k||!T){if(!B||!O)return B?(m.s=-C,m):new y(O?A:NaN);if(!B[0]||!O[0])return O[0]?(m.s=-C,m):new y(B[0]?A:s==3?-0:0)}if(k=xn(k),T=xn(T),B=B.slice(),M=k-T){for((P=M<0)?(M=-M,R=B):(T=k,R=O),R.reverse(),C=M;C--;R.push(0));R.reverse()}else for(E=(P=(M=B.length)<(C=O.length))?M:C,M=C=0;C<E;C++)if(B[C]!=O[C]){P=B[C]<O[C];break}if(P&&(R=B,B=O,O=R,m.s=-m.s),C=(E=O.length)-(I=B.length),C>0)for(;C--;B[I++]=0);for(C=_n-1;E>M;){if(B[--E]<O[E]){for(I=E;I&&!B[--I];B[I]=C);--B[I],B[E]+=_n}B[E]-=O[E]}for(;B[0]==0;B.splice(0,1),--T);return B[0]?D(m,B,T):(m.s=s==3?-1:1,m.c=[m.e=0],m)},i.modulo=i.mod=function(m,C){var I,E,R=this;return m=new y(m,C),!R.c||!m.s||m.c&&!m.c[0]?new y(NaN):!m.c||R.c&&!R.c[0]?new y(R):(f==9?(E=m.s,m.s=1,I=t(R,m,0,3),m.s=E,I.s*=E):I=t(R,m,0,f),m=R.minus(I.times(m)),!m.c[0]&&f==1&&(m.s=R.s),m)},i.multipliedBy=i.times=function(m,C){var I,E,R,P,A,M,k,T,B,O,L,j,z,Y,G,H=this,V=H.c,X=(m=new y(m,C)).c;if(!V||!X||!V[0]||!X[0])return!H.s||!m.s||V&&!V[0]&&!X||X&&!X[0]&&!V?m.c=m.e=m.s=null:(m.s*=H.s,!V||!X?m.c=m.e=null:(m.c=[0],m.e=0)),m;for(E=xn(H.e/Ce)+xn(m.e/Ce),m.s*=H.s,k=V.length,O=X.length,k<O&&(z=V,V=X,X=z,R=k,k=O,O=R),R=k+O,z=[];R--;z.push(0));for(Y=_n,G=Rr,R=O;--R>=0;){for(I=0,L=X[R]%G,j=X[R]/G|0,A=k,P=R+A;P>R;)T=V[--A]%G,B=V[A]/G|0,M=j*T+B*L,T=L*T+M%G*G+z[P]+I,I=(T/Y|0)+(M/G|0)+j*B,z[P--]=T%Y;z[P]=I}return I?++E:z.splice(0,1),D(m,z,E)},i.negated=function(){var m=new y(this);return m.s=-m.s||null,m},i.plus=function(m,C){var I,E=this,R=E.s;if(m=new y(m,C),C=m.s,!R||!C)return new y(NaN);if(R!=C)return m.s=-C,E.minus(m);var P=E.e/Ce,A=m.e/Ce,M=E.c,k=m.c;if(!P||!A){if(!M||!k)return new y(R/0);if(!M[0]||!k[0])return k[0]?m:new y(M[0]?E:R*0)}if(P=xn(P),A=xn(A),M=M.slice(),R=P-A){for(R>0?(A=P,I=k):(R=-R,I=M),I.reverse();R--;I.push(0));I.reverse()}for(R=M.length,C=k.length,R-C<0&&(I=k,k=M,M=I,C=R),R=0;C;)R=(M[--C]=M[C]+k[C]+R)/_n|0,M[C]=_n===M[C]?0:M[C]%_n;return R&&(M=[R].concat(M),++A),D(m,M,A)},i.precision=i.sd=function(m,C){var I,E,R,P=this;if(m!=null&&m!==!!m)return Qe(m,1,Qt),C==null?C=s:Qe(C,0,8),$(new y(P),m,C);if(!(I=P.c))return null;if(R=I.length-1,E=R*Ce+1,R=I[R]){for(;R%10==0;R/=10,E--);for(R=I[0];R>=10;R/=10,E++);}return m&&P.e+1>E&&(E=P.e+1),E},i.shiftedBy=function(m){return Qe(m,-9007199254740991,gg),this.times("1e"+m)},i.squareRoot=i.sqrt=function(){var m,C,I,E,R,P=this,A=P.c,M=P.s,k=P.e,T=o+4,B=new y("0.5");if(M!==1||!A||!A[0])return new y(!M||M<0&&(!A||A[0])?NaN:A?P:1/0);if(M=Math.sqrt(+F(P)),M==0||M==1/0?(C=gn(A),(C.length+k)%2==0&&(C+="0"),M=Math.sqrt(+C),k=xn((k+1)/2)-(k<0||k%2),M==1/0?C="5e"+k:(C=M.toExponential(),C=C.slice(0,C.indexOf("e")+1)+k),I=new y(C)):I=new y(M+""),I.c[0]){for(k=I.e,M=k+T,M<3&&(M=0);;)if(R=I,I=B.times(R.plus(t(P,R,T,1))),gn(R.c).slice(0,M)===(C=gn(I.c)).slice(0,M))if(I.e<k&&--M,C=C.slice(M-3,M+1),C=="9999"||!E&&C=="4999"){if(!E&&($(R,R.e+o+2,0),R.times(R).eq(P))){I=R;break}T+=4,M+=4,E=1}else{(!+C||!+C.slice(1)&&C.charAt(0)=="5")&&($(I,I.e+o+2,1),m=!I.times(I).eq(P));break}}return $(I,I.e+o+1,s,m)},i.toExponential=function(m,C){return m!=null&&(Qe(m,0,Qt),m++),x(this,m,C,1)},i.toFixed=function(m,C){return m!=null&&(Qe(m,0,Qt),m=m+this.e+1),x(this,m,C)},i.toFormat=function(m,C,I){var E,R=this;if(I==null)m!=null&&C&&typeof C=="object"?(I=C,C=null):m&&typeof m=="object"?(I=m,m=C=null):I=p;else if(typeof I!="object")throw Error(Yt+"Argument not an object: "+I);if(E=R.toFixed(m,C),R.c){var P,A=E.split("."),M=+I.groupSize,k=+I.secondaryGroupSize,T=I.groupSeparator||"",B=A[0],O=A[1],L=R.s<0,j=L?B.slice(1):B,z=j.length;if(k&&(P=M,M=k,k=P,z-=P),M>0&&z>0){for(P=z%M||M,B=j.substr(0,P);P<z;P+=M)B+=T+j.substr(P,M);k>0&&(B+=T+j.slice(P)),L&&(B="-"+B)}E=O?B+(I.decimalSeparator||"")+((k=+I.fractionGroupSize)?O.replace(new RegExp("\\d{"+k+"}\\B","g"),"$&"+(I.fractionGroupSeparator||"")):O):B}return(I.prefix||"")+E+(I.suffix||"")},i.toFraction=function(m){var C,I,E,R,P,A,M,k,T,B,O,L,j=this,z=j.c;if(m!=null&&(M=new y(m),!M.isInteger()&&(M.c||M.s!==1)||M.lt(a)))throw Error(Yt+"Argument "+(M.isInteger()?"out of range: ":"not an integer: ")+F(M));if(!z)return new y(j);for(C=new y(a),T=I=new y(a),E=k=new y(a),L=gn(z),P=C.e=L.length-j.e-1,C.c[0]=Qu[(A=P%Ce)<0?Ce+A:A],m=!m||M.comparedTo(C)>0?P>0?C:T:M,A=d,d=1/0,M=new y(L),k.c[0]=0;B=t(M,C,0,1),R=I.plus(B.times(E)),R.comparedTo(m)!=1;)I=E,E=R,T=k.plus(B.times(R=T)),k=R,C=M.minus(B.times(R=C)),M=R;return R=t(m.minus(I),E,0,1),k=k.plus(R.times(T)),I=I.plus(R.times(E)),k.s=T.s=j.s,P=P*2,O=t(T,E,P,s).minus(j).abs().comparedTo(t(k,I,P,s).minus(j).abs())<1?[T,E]:[k,I],d=A,O},i.toNumber=function(){return+F(this)},i.toPrecision=function(m,C){return m!=null&&Qe(m,1,Qt),x(this,m,C,2)},i.toString=function(m){var C,I=this,E=I.s,R=I.e;return R===null?E?(C="Infinity",E<0&&(C="-"+C)):C="NaN":(m==null?C=R<=l||R>=u?ys(gn(I.c),R):ir(gn(I.c),R,"0"):m===10&&v?(I=$(new y(I),o+R+1,s),C=ir(gn(I.c),I.e,"0")):(Qe(m,2,b.length,"Base"),C=n(ir(gn(I.c),R,"0"),10,m,E,!0)),E<0&&I.c[0]&&(C="-"+C)),C},i.valueOf=i.toJSON=function(){return F(this)},i._isBigNumber=!0,i[Symbol.toStringTag]="BigNumber",i[Symbol.for("nodejs.util.inspect.custom")]=i.valueOf,e!=null&&y.set(e),y}function xn(e){var t=e|0;return e>0||e===t?t:t-1}function gn(e){for(var t,n,r=1,i=e.length,a=e[0]+"";r<i;){for(t=e[r++]+"",n=Ce-t.length;n--;t="0"+t);a+=t}for(i=a.length;a.charCodeAt(--i)===48;);return a.slice(0,i+1||1)}function ni(e,t){var n,r,i=e.c,a=t.c,o=e.s,s=t.s,l=e.e,u=t.e;if(!o||!s)return null;if(n=i&&!i[0],r=a&&!a[0],n||r)return n?r?0:-s:o;if(o!=s)return o;if(n=o<0,r=l==u,!i||!a)return r?0:!i^n?1:-1;if(!r)return l>u^n?1:-1;for(s=(l=i.length)<(u=a.length)?l:u,o=0;o<s;o++)if(i[o]!=a[o])return i[o]>a[o]^n?1:-1;return l==u?0:l>u^n?1:-1}function Qe(e,t,n,r){if(e<t||e>n||e!==yn(e))throw Error(Yt+(r||"Argument")+(typeof e=="number"?e<t||e>n?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function vs(e){var t=e.c.length-1;return xn(e.e/Ce)==t&&e.c[t]%2!=0}function ys(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function ir(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 bu=s1();const l1={ROUNDING_MODE:bu.ROUND_HALF_UP,EXPONENTIAL_AT:[-1e9,1e9]};let ed=!1;const Ow=(e=l1)=>{ed||(bu.config(e),ed=!0)},nt=(e,t)=>(ed||Ow(),new bu(e,t)),Qn=e=>{try{return nt(e).isFinite()}catch{return!1}},u1=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 cf(e,t){const{decimals:n=2,instance:r=!1}=t||{};Qn(e)||(e="0");const i=nt(e).toFixed(n);return r?nt(i):i}const df=(e,t=2)=>{let n=parseFloat(u1(e)?e:0);return n=(+(Math.round(n+"e"+t)+"e-"+t)).toFixed(t),n=Number(n),n};function Tr(e,t="currency",n={minimumFractionDigits:0,locale:"id-ID",currency:"IDR",withSpace:!1}){const{minimumFractionDigits:r,locale:i,currency:a,withSpace:o}=n,s=new Intl.NumberFormat(i,{style:t,currency:a,minimumFractionDigits:r}).format(df(e,r>0?r:2));return o?s:s.replace(/\s/g,"")}const na=(e,t,n,r)=>{const i={id:El,enUS:uf,nl:o1};let a=n??"-";return e&&!isNaN(new Date(e).getTime())&&(a=vo(e,t??"dd/MM/yyyy",{locale:i[r??"id"]})),a},Nw=(e,t,n,r,i,a)=>{const o={id:El,enUS:uf,nl:o1};if(e&&!isNaN(new Date(e).getTime())){const s=vo(e,n??"dd/MM/yyyy",{locale:o[a??"id"]});if(t&&!isNaN(new Date(t).getTime())){const l=vo(t,n??"dd/MM/yyyy",{locale:o[a??"id"]});return s===l?s:`${s}${r??"-"}${l}`}return s}return i??"-"},c1=(e,t)=>e.reduce((n,r)=>{const i=String(r[t]);return n[i]||(n[i]=[]),n[i].push(r),n},{}),Vw=({value:e,keyDate:t="date",keyFormat:n="formatDate",format:r="dd/MM/yyyy"})=>{const i=e.map(a=>({...a,[n]:na(a[t],r)}));return c1(i,n)},Lw=e=>(Object.keys(e).forEach(t=>{["",null,void 0,[],{}].includes(e[t])&&delete e[t]}),e),Hw=(e,t)=>{var h,f;const n=/^-?\d+[0-9.,]*$/,r=/([.])(?=.*\1)/,i=/([,])(?=.*\1)/,a=((h=e.split(",")[0])==null?void 0:h.trim())||"",o=((f=e.split(",")[1])==null?void 0:f.trim())||"",s=!r.test(a)&&(a==="-"||n.test(a)||!a),l=!r.test(o)&&(o==="-"||n.test(o)||!o),u=(g,p,b)=>{let v=g;const y=g.split(".")[0];return isNaN(parseFloat(y.split(".")[0]))||(parseFloat(y.split(".")[0])<=p?v=`${p}`:parseFloat(y)>=b&&(v=`${b}`)),v},c=u(a,(t==null?void 0:t.latMin)??-85,(t==null?void 0:t.latMax)??85),d=u(o,(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}},mg=(e,t)=>e?Object.fromEntries(Object.entries(t).filter(([r])=>r.startsWith(e))):t;function ff(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)||!ff(e[i],t[i]))return!1;return!0}function jw(e,t={maxTime:"hour"}){const{maxTime:n="hour"}=t,r=l=>l<10?`0${l}`:l;let i=r(0),a=r(0);const o=r(Math.floor(e%3600/60)),s=r(Math.floor(e%60));return n==="hour"?a=r(Math.floor(e/3600)):n==="day"&&(i=r(Math.floor(e/(3600*24))),a=r(Math.floor(e%(3600*24)/3600))),{day:i,hour:a,minute:o,second:s}}const Ww=e=>df(e||0),zw=e=>cf(e||0),Gw=e=>isNaN(e)?void 0:e;function Xw(e,t={}){const{locale:n,currency:r,minimumFractionDigits:i,maximumFractionDigits:a=2,withSpace:o,currencyDisplay:s}=t,l=cf(e,{decimals:a}),[u,c=""]=l.split("."),d=u.replace(/\B(?=(\d{3})+(?!\d))/g,".");let h=c.slice(0,a);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 p={"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:p.symbol,code:p.code,name:p.name}[s||"symbol"],v=f.includes("-");return f=p.negativePosition==="start"?f.replace("-",""):f,o?`${p.negativePosition==="start"&&v?"-":""}${b} ${f}`:`${p.negativePosition==="start"&&v?"-":""}${b}${f}`}function Zw(e){if(!Qn(e))return"0";const t=typeof e=="number"?nt(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 xs(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 Yw={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 td(e,t){function n(i,a,o){if(!(typeof document>"u")){o=xs({},t,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var l in o)o[l]&&(s+="; "+l,o[l]!==!0&&(s+="="+o[l].split(";")[0]));return document.cookie=i+"="+e.write(a,i)+s}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var a=document.cookie?document.cookie.split("; "):[],o={},s=0;s<a.length;s++){var l=a[s].split("="),u=l.slice(1).join("=");try{var c=decodeURIComponent(l[0]);if(o[c]=e.read(u,c),i===c)break}catch{}}return i?o[i]:o}}return Object.create({set:n,get:r,remove:function(i,a){n(i,"",xs({},a,{expires:-1}))},withAttributes:function(i){return td(this.converter,xs({},this.attributes,i))},withConverter:function(i){return td(xs({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Ln=td(Yw,{path:"/"});const Uw={setItem(e,t,n={},r=3e3){const a={...{path:"/"},...n};parseInt(Ln.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);Ln.set(`${e}_${l}`,u,a)}Ln.set(`${e}_count`,s.toString(),a)},getItem(e){const t=parseInt(Ln.get(`${e}_count`)??"0",10);if(!t)return null;let n="";for(let r=0;r<t;r++){const i=Ln.get(`${e}_${r}`);if(!i)return null;n+=i}return n},removeItem(e,t={}){const n=parseInt(Ln.get(`${e}_count`)??"0",10),r={path:"/",...t};if(!isNaN(n)){for(let i=0;i<n;i++)Ln.remove(`${e}_${i}`,r);Ln.remove(`${e}_count`,r)}},clear(e={}){const t={path:"/",...e},n=Ln.get();Object.keys(n).forEach(r=>Ln.remove(r,t))}};var nd={exports:{}},ka={};/**
1
+ "use strict";var $C=Object.defineProperty;var RC=(e,t,n)=>t in e?$C(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ae=(e,t,n)=>RC(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("react"),ts=require("react-dom");function e1(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 W=e1(w),t1=e1(ts);function Vn(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function Ii(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const n1=6048e5,AC=864e5;let FC={};function pu(){return FC}function bo(e,t){var s,l,u,c;const n=pu(),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=Vn(e),a=i.getDay(),o=(a<r?7:0)+a-r;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function Sl(e){return bo(e,{weekStartsOn:1})}function r1(e){const t=Vn(e),n=t.getFullYear(),r=Ii(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const i=Sl(r),a=Ii(e,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);const o=Sl(a);return t.getTime()>=i.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function sg(e){const t=Vn(e);return t.setHours(0,0,0,0),t}function lg(e){const t=Vn(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function TC(e,t){const n=sg(e),r=sg(t),i=+n-lg(n),a=+r-lg(r);return Math.round((i-a)/AC)}function PC(e){const t=r1(e),n=Ii(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Sl(n)}function kC(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function MC(e){if(!kC(e)&&typeof e!="number")return!1;const t=Vn(e);return!isNaN(Number(t))}function BC(e){const t=Vn(e),n=Ii(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const OC={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"}},NC=(e,t,n)=>{let r;const i=OC[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 Cr(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const VC={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},LC={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},HC={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},jC={date:Cr({formats:VC,defaultWidth:"full"}),time:Cr({formats:LC,defaultWidth:"full"}),dateTime:Cr({formats:HC,defaultWidth:"full"})},WC={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},zC=(e,t,n,r)=>WC[e];function Mt(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):o;i=e.formattingValues[s]||e.formattingValues[o]}else{const o=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[s]||e.values[o]}const a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}const GC={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},XC={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ZC={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"]},YC={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"]},UC={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"}},JC={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"}},KC=(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"},qC={ordinalNumber:KC,era:Mt({values:GC,defaultWidth:"wide"}),quarter:Mt({values:XC,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Mt({values:ZC,defaultWidth:"wide"}),day:Mt({values:YC,defaultWidth:"wide"}),dayPeriod:Mt({values:UC,defaultWidth:"wide",formattingValues:JC,defaultFormattingWidth:"wide"})};function Bt(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;const o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?e2(s,d=>d.test(o)):QC(s,d=>d.test(o));let u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const c=t.slice(o.length);return{value:u,rest:c}}}function QC(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function e2(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function lf(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;const s=t.slice(i.length);return{value:o,rest:s}}}const t2=/^(\d+)(th|st|nd|rd)?/i,n2=/\d+/i,r2={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},i2={any:[/^b/i,/^(a|c)/i]},a2={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},o2={any:[/1/i,/2/i,/3/i,/4/i]},s2={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},l2={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]},u2={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},c2={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]},d2={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},f2={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}},h2={ordinalNumber:lf({matchPattern:t2,parsePattern:n2,valueCallback:e=>parseInt(e,10)}),era:Bt({matchPatterns:r2,defaultMatchWidth:"wide",parsePatterns:i2,defaultParseWidth:"any"}),quarter:Bt({matchPatterns:a2,defaultMatchWidth:"wide",parsePatterns:o2,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Bt({matchPatterns:s2,defaultMatchWidth:"wide",parsePatterns:l2,defaultParseWidth:"any"}),day:Bt({matchPatterns:u2,defaultMatchWidth:"wide",parsePatterns:c2,defaultParseWidth:"any"}),dayPeriod:Bt({matchPatterns:d2,defaultMatchWidth:"any",parsePatterns:f2,defaultParseWidth:"any"})},uf={code:"en-US",formatDistance:NC,formatLong:jC,formatRelative:zC,localize:qC,match:h2,options:{weekStartsOn:0,firstWeekContainsDate:1}};function g2(e){const t=Vn(e);return TC(t,BC(t))+1}function m2(e){const t=Vn(e),n=+Sl(t)-+PC(t);return Math.round(n/n1)+1}function i1(e,t){var c,d,h,f;const n=Vn(e),r=n.getFullYear(),i=pu(),a=(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,o=Ii(e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);const s=bo(o,t),l=Ii(e,0);l.setFullYear(r,0,a),l.setHours(0,0,0,0);const u=bo(l,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function p2(e,t){var s,l,u,c;const n=pu(),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=i1(e,t),a=Ii(e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),bo(a,t)}function b2(e,t){const n=Vn(e),r=+bo(n,t)-+p2(n,t);return Math.round(r/n1)+1}function ze(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const $r={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return ze(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):ze(n+1,2)},d(e,t){return ze(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 ze(e.getHours()%12||12,t.length)},H(e,t){return ze(e.getHours(),t.length)},m(e,t){return ze(e.getMinutes(),t.length)},s(e,t){return ze(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return ze(i,t.length)}},Wi={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},ug={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 $r.y(e,t)},Y:function(e,t,n,r){const i=i1(e,r),a=i>0?i:1-i;if(t==="YY"){const o=a%100;return ze(o,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):ze(a,t.length)},R:function(e,t){const n=r1(e);return ze(n,t.length)},u:function(e,t){const n=e.getFullYear();return ze(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 ze(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 ze(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 $r.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 ze(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=b2(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):ze(i,t.length)},I:function(e,t,n){const r=m2(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):ze(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):$r.d(e,t)},D:function(e,t,n){const r=g2(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):ze(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return ze(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return ze(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return ze(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=Wi.noon:r===0?i=Wi.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=Wi.evening:r>=12?i=Wi.afternoon:r>=4?i=Wi.morning:i=Wi.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 $r.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):$r.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):ze(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):ze(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):$r.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):$r.s(e,t)},S:function(e,t){return $r.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return dg(r);case"XXXX":case"XX":return li(r);case"XXXXX":case"XXX":default:return li(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return dg(r);case"xxxx":case"xx":return li(r);case"xxxxx":case"xxx":default:return li(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+cg(r,":");case"OOOO":default:return"GMT"+li(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+cg(r,":");case"zzzz":default:return"GMT"+li(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return ze(r,t.length)},T:function(e,t,n){const r=e.getTime();return ze(r,t.length)}};function cg(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+ze(a,2)}function dg(e,t){return e%60===0?(e>0?"-":"+")+ze(Math.abs(e)/60,2):li(e,t)}function li(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=ze(Math.trunc(r/60),2),a=ze(r%60,2);return n+i+t+a}const fg=(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"})}},a1=(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"})}},v2=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return fg(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",fg(r,t)).replace("{{time}}",a1(i,t))},y2={p:a1,P:v2},x2=/^D+$/,C2=/^Y+$/,w2=["D","DD","YY","YYYY"];function D2(e){return x2.test(e)}function S2(e){return C2.test(e)}function E2(e,t,n){const r=I2(e,t,n);if(console.warn(r),w2.includes(e))throw new RangeError(r)}function I2(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 _2=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,$2=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,R2=/^'([^]*?)'?$/,A2=/''/g,F2=/[a-zA-Z]/;function vo(e,t,n){var c,d,h,f,g,p,b,v;const r=pu(),i=(n==null?void 0:n.locale)??r.locale??uf,a=(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,o=(n==null?void 0:n.weekStartsOn)??((p=(g=n==null?void 0:n.locale)==null?void 0:g.options)==null?void 0:p.weekStartsOn)??r.weekStartsOn??((v=(b=r.locale)==null?void 0:b.options)==null?void 0:v.weekStartsOn)??0,s=Vn(e);if(!MC(s))throw new RangeError("Invalid time value");let l=t.match($2).map(y=>{const x=y[0];if(x==="p"||x==="P"){const S=y2[x];return S(y,i.formatLong)}return y}).join("").match(_2).map(y=>{if(y==="''")return{isToken:!1,value:"'"};const x=y[0];if(x==="'")return{isToken:!1,value:T2(y)};if(ug[x])return{isToken:!0,value:y};if(x.match(F2))throw new RangeError("Format string contains an unescaped latin alphabet character `"+x+"`");return{isToken:!1,value:y}});i.localize.preprocessor&&(l=i.localize.preprocessor(s,l));const u={firstWeekContainsDate:a,weekStartsOn:o,locale:i};return l.map(y=>{if(!y.isToken)return y.value;const x=y.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&S2(x)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&D2(x))&&E2(x,t,String(e));const S=ug[x[0]];return S(s,x,i.localize,u)}).join("")}function T2(e){const t=e.match(R2);return t?t[1].replace(A2,"'"):e}const P2={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"}},k2=(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}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"dalam waktu "+r:r+" yang lalu":r},M2={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"d/M/yyyy"},B2={full:"HH.mm.ss",long:"HH.mm.ss",medium:"HH.mm",short:"HH.mm"},O2={full:"{{date}} 'pukul' {{time}}",long:"{{date}} 'pukul' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},N2={date:Cr({formats:M2,defaultWidth:"full"}),time:Cr({formats:B2,defaultWidth:"full"}),dateTime:Cr({formats:O2,defaultWidth:"full"})},V2={lastWeek:"eeee 'lalu pukul' p",yesterday:"'Kemarin pukul' p",today:"'Hari ini pukul' p",tomorrow:"'Besok pukul' p",nextWeek:"eeee 'pukul' p",other:"P"},L2=(e,t,n,r)=>V2[e],H2={narrow:["SM","M"],abbreviated:["SM","M"],wide:["Sebelum Masehi","Masehi"]},j2={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["Kuartal ke-1","Kuartal ke-2","Kuartal ke-3","Kuartal ke-4"]},W2={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"]},z2={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"]},G2={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"}},X2={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"}},Z2=(e,t)=>"ke-"+Number(e),Y2={ordinalNumber:Z2,era:Mt({values:H2,defaultWidth:"wide"}),quarter:Mt({values:j2,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Mt({values:W2,defaultWidth:"wide"}),day:Mt({values:z2,defaultWidth:"wide"}),dayPeriod:Mt({values:G2,defaultWidth:"wide",formattingValues:X2,defaultFormattingWidth:"wide"})},U2=/^ke-(\d+)?/i,J2=/\d+/i,K2={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},q2={any:[/^s/i,/^(m|e)/i]},Q2={narrow:/^[1234]/i,abbreviated:/^K-?\s[1234]/i,wide:/^Kuartal ke-?\s?[1234]/i},ew={any:[/1/i,/2/i,/3/i,/4/i]},tw={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},nw={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]},rw={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},iw={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]},aw={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},ow={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}},sw={ordinalNumber:lf({matchPattern:U2,parsePattern:J2,valueCallback:e=>parseInt(e,10)}),era:Bt({matchPatterns:K2,defaultMatchWidth:"wide",parsePatterns:q2,defaultParseWidth:"any"}),quarter:Bt({matchPatterns:Q2,defaultMatchWidth:"wide",parsePatterns:ew,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Bt({matchPatterns:tw,defaultMatchWidth:"wide",parsePatterns:nw,defaultParseWidth:"any"}),day:Bt({matchPatterns:rw,defaultMatchWidth:"wide",parsePatterns:iw,defaultParseWidth:"any"}),dayPeriod:Bt({matchPatterns:aw,defaultMatchWidth:"any",parsePatterns:ow,defaultParseWidth:"any"})},El={code:"id",formatDistance:k2,formatLong:N2,formatRelative:L2,localize:Y2,match:sw,options:{weekStartsOn:1,firstWeekContainsDate:1}},lw={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"}},uw=(e,t,n)=>{let r;const i=lw[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},cw={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"},dw={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},fw={full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},hw={date:Cr({formats:cw,defaultWidth:"full"}),time:Cr({formats:dw,defaultWidth:"full"}),dateTime:Cr({formats:fw,defaultWidth:"full"})},gw={lastWeek:"'afgelopen' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"},mw=(e,t,n,r)=>gw[e],pw={narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]},bw={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]},vw={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"]},yw={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"]},xw={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"}},Cw=(e,t)=>Number(e)+"e",ww={ordinalNumber:Cw,era:Mt({values:pw,defaultWidth:"wide"}),quarter:Mt({values:bw,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Mt({values:vw,defaultWidth:"wide"}),day:Mt({values:yw,defaultWidth:"wide"}),dayPeriod:Mt({values:xw,defaultWidth:"wide"})},Dw=/^(\d+)e?/i,Sw=/\d+/i,Ew={narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},Iw={any:[/^v/,/^n/]},_w={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},$w={any:[/1/i,/2/i,/3/i,/4/i]},Rw={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},Aw={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]},Fw={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},Tw={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]},Pw={any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},kw={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}},Mw={ordinalNumber:lf({matchPattern:Dw,parsePattern:Sw,valueCallback:e=>parseInt(e,10)}),era:Bt({matchPatterns:Ew,defaultMatchWidth:"wide",parsePatterns:Iw,defaultParseWidth:"any"}),quarter:Bt({matchPatterns:_w,defaultMatchWidth:"wide",parsePatterns:$w,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Bt({matchPatterns:Rw,defaultMatchWidth:"wide",parsePatterns:Aw,defaultParseWidth:"any"}),day:Bt({matchPatterns:Fw,defaultMatchWidth:"wide",parsePatterns:Tw,defaultParseWidth:"any"}),dayPeriod:Bt({matchPatterns:Pw,defaultMatchWidth:"any",parsePatterns:kw,defaultParseWidth:"any"})},o1={code:"nl",formatDistance:uw,formatLong:hw,formatRelative:mw,localize:ww,match:Mw,options:{weekStartsOn:1,firstWeekContainsDate:4}};var Bw=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,qu=Math.ceil,yn=Math.floor,Yt="[BigNumber Error] ",hg=Yt+"Number primitive has more than 15 significant digits: ",_n=1e14,Ce=14,gg=9007199254740991,Qu=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],Rr=1e7,Qt=1e9;function s1(e){var t,n,r,i=y.prototype={constructor:y,toString:null,valueOf:null},a=new y(1),o=20,s=4,l=-7,u=21,c=-1e7,d=1e7,h=!1,f=1,g=0,p={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},b="0123456789abcdefghijklmnopqrstuvwxyz",v=!0;function y(m,C){var I,E,R,P,A,M,k,T,B=this;if(!(B instanceof y))return new y(m,C);if(C==null){if(m&&m._isBigNumber===!0){B.s=m.s,!m.c||m.e>d?B.c=B.e=null:m.e<c?B.c=[B.e=0]:(B.e=m.e,B.c=m.c.slice());return}if((M=typeof m=="number")&&m*0==0){if(B.s=1/m<0?(m=-m,-1):1,m===~~m){for(P=0,A=m;A>=10;A/=10,P++);P>d?B.c=B.e=null:(B.e=P,B.c=[m]);return}T=String(m)}else{if(!Bw.test(T=String(m)))return r(B,T,M);B.s=T.charCodeAt(0)==45?(T=T.slice(1),-1):1}(P=T.indexOf("."))>-1&&(T=T.replace(".","")),(A=T.search(/e/i))>0?(P<0&&(P=A),P+=+T.slice(A+1),T=T.substring(0,A)):P<0&&(P=T.length)}else{if(Qe(C,2,b.length,"Base"),C==10&&v)return B=new y(m),$(B,o+B.e+1,s);if(T=String(m),M=typeof m=="number"){if(m*0!=0)return r(B,T,M,C);if(B.s=1/m<0?(T=T.slice(1),-1):1,y.DEBUG&&T.replace(/^0\.0*|\./,"").length>15)throw Error(hg+m)}else B.s=T.charCodeAt(0)===45?(T=T.slice(1),-1):1;for(I=b.slice(0,C),P=A=0,k=T.length;A<k;A++)if(I.indexOf(E=T.charAt(A))<0){if(E=="."){if(A>P){P=k;continue}}else if(!R&&(T==T.toUpperCase()&&(T=T.toLowerCase())||T==T.toLowerCase()&&(T=T.toUpperCase()))){R=!0,A=-1,P=0;continue}return r(B,String(m),M,C)}M=!1,T=n(T,C,10,B.s),(P=T.indexOf("."))>-1?T=T.replace(".",""):P=T.length}for(A=0;T.charCodeAt(A)===48;A++);for(k=T.length;T.charCodeAt(--k)===48;);if(T=T.slice(A,++k)){if(k-=A,M&&y.DEBUG&&k>15&&(m>gg||m!==yn(m)))throw Error(hg+B.s*m);if((P=P-A-1)>d)B.c=B.e=null;else if(P<c)B.c=[B.e=0];else{if(B.e=P,B.c=[],A=(P+1)%Ce,P<0&&(A+=Ce),A<k){for(A&&B.c.push(+T.slice(0,A)),k-=Ce;A<k;)B.c.push(+T.slice(A,A+=Ce));A=Ce-(T=T.slice(A)).length}else A-=k;for(;A--;T+="0");B.c.push(+T)}}else B.c=[B.e=0]}y.clone=s1,y.ROUND_UP=0,y.ROUND_DOWN=1,y.ROUND_CEIL=2,y.ROUND_FLOOR=3,y.ROUND_HALF_UP=4,y.ROUND_HALF_DOWN=5,y.ROUND_HALF_EVEN=6,y.ROUND_HALF_CEIL=7,y.ROUND_HALF_FLOOR=8,y.EUCLID=9,y.config=y.set=function(m){var C,I;if(m!=null)if(typeof m=="object"){if(m.hasOwnProperty(C="DECIMAL_PLACES")&&(I=m[C],Qe(I,0,Qt,C),o=I),m.hasOwnProperty(C="ROUNDING_MODE")&&(I=m[C],Qe(I,0,8,C),s=I),m.hasOwnProperty(C="EXPONENTIAL_AT")&&(I=m[C],I&&I.pop?(Qe(I[0],-1e9,0,C),Qe(I[1],0,Qt,C),l=I[0],u=I[1]):(Qe(I,-1e9,Qt,C),l=-(u=I<0?-I:I))),m.hasOwnProperty(C="RANGE"))if(I=m[C],I&&I.pop)Qe(I[0],-1e9,-1,C),Qe(I[1],1,Qt,C),c=I[0],d=I[1];else if(Qe(I,-1e9,Qt,C),I)c=-(d=I<0?-I:I);else throw Error(Yt+C+" cannot be zero: "+I);if(m.hasOwnProperty(C="CRYPTO"))if(I=m[C],I===!!I)if(I)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))h=I;else throw h=!I,Error(Yt+"crypto unavailable");else h=I;else throw Error(Yt+C+" not true or false: "+I);if(m.hasOwnProperty(C="MODULO_MODE")&&(I=m[C],Qe(I,0,9,C),f=I),m.hasOwnProperty(C="POW_PRECISION")&&(I=m[C],Qe(I,0,Qt,C),g=I),m.hasOwnProperty(C="FORMAT"))if(I=m[C],typeof I=="object")p=I;else throw Error(Yt+C+" not an object: "+I);if(m.hasOwnProperty(C="ALPHABET"))if(I=m[C],typeof I=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test(I))v=I.slice(0,10)=="0123456789",b=I;else throw Error(Yt+C+" invalid: "+I)}else throw Error(Yt+"Object expected: "+m);return{DECIMAL_PLACES:o,ROUNDING_MODE:s,EXPONENTIAL_AT:[l,u],RANGE:[c,d],CRYPTO:h,MODULO_MODE:f,POW_PRECISION:g,FORMAT:p,ALPHABET:b}},y.isBigNumber=function(m){if(!m||m._isBigNumber!==!0)return!1;if(!y.DEBUG)return!0;var C,I,E=m.c,R=m.e,P=m.s;e:if({}.toString.call(E)=="[object Array]"){if((P===1||P===-1)&&R>=-1e9&&R<=Qt&&R===yn(R)){if(E[0]===0){if(R===0&&E.length===1)return!0;break e}if(C=(R+1)%Ce,C<1&&(C+=Ce),String(E[0]).length==C){for(C=0;C<E.length;C++)if(I=E[C],I<0||I>=_n||I!==yn(I))break e;if(I!==0)return!0}}}else if(E===null&&R===null&&(P===null||P===1||P===-1))return!0;throw Error(Yt+"Invalid BigNumber: "+m)},y.maximum=y.max=function(){return S(arguments,-1)},y.minimum=y.min=function(){return S(arguments,1)},y.random=function(){var m=9007199254740992,C=Math.random()*m&2097151?function(){return yn(Math.random()*m)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(I){var E,R,P,A,M,k=0,T=[],B=new y(a);if(I==null?I=o:Qe(I,0,Qt),A=qu(I/Ce),h)if(crypto.getRandomValues){for(E=crypto.getRandomValues(new Uint32Array(A*=2));k<A;)M=E[k]*131072+(E[k+1]>>>11),M>=9e15?(R=crypto.getRandomValues(new Uint32Array(2)),E[k]=R[0],E[k+1]=R[1]):(T.push(M%1e14),k+=2);k=A/2}else if(crypto.randomBytes){for(E=crypto.randomBytes(A*=7);k<A;)M=(E[k]&31)*281474976710656+E[k+1]*1099511627776+E[k+2]*4294967296+E[k+3]*16777216+(E[k+4]<<16)+(E[k+5]<<8)+E[k+6],M>=9e15?crypto.randomBytes(7).copy(E,k):(T.push(M%1e14),k+=7);k=A/7}else throw h=!1,Error(Yt+"crypto unavailable");if(!h)for(;k<A;)M=C(),M<9e15&&(T[k++]=M%1e14);for(A=T[--k],I%=Ce,A&&I&&(M=Qu[Ce-I],T[k]=yn(A/M)*M);T[k]===0;T.pop(),k--);if(k<0)T=[P=0];else{for(P=-1;T[0]===0;T.splice(0,1),P-=Ce);for(k=1,M=T[0];M>=10;M/=10,k++);k<Ce&&(P-=Ce-k)}return B.e=P,B.c=T,B}}(),y.sum=function(){for(var m=1,C=arguments,I=new y(C[0]);m<C.length;)I=I.plus(C[m++]);return I},n=function(){var m="0123456789";function C(I,E,R,P){for(var A,M=[0],k,T=0,B=I.length;T<B;){for(k=M.length;k--;M[k]*=E);for(M[0]+=P.indexOf(I.charAt(T++)),A=0;A<M.length;A++)M[A]>R-1&&(M[A+1]==null&&(M[A+1]=0),M[A+1]+=M[A]/R|0,M[A]%=R)}return M.reverse()}return function(I,E,R,P,A){var M,k,T,B,O,L,j,z,Y=I.indexOf("."),G=o,H=s;for(Y>=0&&(B=g,g=0,I=I.replace(".",""),z=new y(E),L=z.pow(I.length-Y),g=B,z.c=C(ir(gn(L.c),L.e,"0"),10,R,m),z.e=z.c.length),j=C(I,E,R,A?(M=b,m):(M=m,b)),T=B=j.length;j[--B]==0;j.pop());if(!j[0])return M.charAt(0);if(Y<0?--T:(L.c=j,L.e=T,L.s=P,L=t(L,z,G,H,R),j=L.c,O=L.r,T=L.e),k=T+G+1,Y=j[k],B=R/2,O=O||k<0||j[k+1]!=null,O=H<4?(Y!=null||O)&&(H==0||H==(L.s<0?3:2)):Y>B||Y==B&&(H==4||O||H==6&&j[k-1]&1||H==(L.s<0?8:7)),k<1||!j[0])I=O?ir(M.charAt(1),-G,M.charAt(0)):M.charAt(0);else{if(j.length=k,O)for(--R;++j[--k]>R;)j[k]=0,k||(++T,j=[1].concat(j));for(B=j.length;!j[--B];);for(Y=0,I="";Y<=B;I+=M.charAt(j[Y++]));I=ir(I,T,M.charAt(0))}return I}}(),t=function(){function m(E,R,P){var A,M,k,T,B=0,O=E.length,L=R%Rr,j=R/Rr|0;for(E=E.slice();O--;)k=E[O]%Rr,T=E[O]/Rr|0,A=j*k+T*L,M=L*k+A%Rr*Rr+B,B=(M/P|0)+(A/Rr|0)+j*T,E[O]=M%P;return B&&(E=[B].concat(E)),E}function C(E,R,P,A){var M,k;if(P!=A)k=P>A?1:-1;else for(M=k=0;M<P;M++)if(E[M]!=R[M]){k=E[M]>R[M]?1:-1;break}return k}function I(E,R,P,A){for(var M=0;P--;)E[P]-=M,M=E[P]<R[P]?1:0,E[P]=M*A+E[P]-R[P];for(;!E[0]&&E.length>1;E.splice(0,1));}return function(E,R,P,A,M){var k,T,B,O,L,j,z,Y,G,H,V,X,K,te,ue,ie,Z,me=E.s==R.s?1:-1,he=E.c,ce=R.c;if(!he||!he[0]||!ce||!ce[0])return new y(!E.s||!R.s||(he?ce&&he[0]==ce[0]:!ce)?NaN:he&&he[0]==0||!ce?me*0:me/0);for(Y=new y(me),G=Y.c=[],T=E.e-R.e,me=P+T+1,M||(M=_n,T=xn(E.e/Ce)-xn(R.e/Ce),me=me/Ce|0),B=0;ce[B]==(he[B]||0);B++);if(ce[B]>(he[B]||0)&&T--,me<0)G.push(1),O=!0;else{for(te=he.length,ie=ce.length,B=0,me+=2,L=yn(M/(ce[0]+1)),L>1&&(ce=m(ce,L,M),he=m(he,L,M),ie=ce.length,te=he.length),K=ie,H=he.slice(0,ie),V=H.length;V<ie;H[V++]=0);Z=ce.slice(),Z=[0].concat(Z),ue=ce[0],ce[1]>=M/2&&ue++;do{if(L=0,k=C(ce,H,ie,V),k<0){if(X=H[0],ie!=V&&(X=X*M+(H[1]||0)),L=yn(X/ue),L>1)for(L>=M&&(L=M-1),j=m(ce,L,M),z=j.length,V=H.length;C(j,H,z,V)==1;)L--,I(j,ie<z?Z:ce,z,M),z=j.length,k=1;else L==0&&(k=L=1),j=ce.slice(),z=j.length;if(z<V&&(j=[0].concat(j)),I(H,j,V,M),V=H.length,k==-1)for(;C(ce,H,ie,V)<1;)L++,I(H,ie<V?Z:ce,V,M),V=H.length}else k===0&&(L++,H=[0]);G[B++]=L,H[0]?H[V++]=he[K]||0:(H=[he[K]],V=1)}while((K++<te||H[0]!=null)&&me--);O=H[0]!=null,G[0]||G.splice(0,1)}if(M==_n){for(B=1,me=G[0];me>=10;me/=10,B++);$(Y,P+(Y.e=B+T*Ce-1)+1,A,O)}else Y.e=T,Y.r=+O;return Y}}();function x(m,C,I,E){var R,P,A,M,k;if(I==null?I=s:Qe(I,0,8),!m.c)return m.toString();if(R=m.c[0],A=m.e,C==null)k=gn(m.c),k=E==1||E==2&&(A<=l||A>=u)?ys(k,A):ir(k,A,"0");else if(m=$(new y(m),C,I),P=m.e,k=gn(m.c),M=k.length,E==1||E==2&&(C<=P||P<=l)){for(;M<C;k+="0",M++);k=ys(k,P)}else if(C-=A,k=ir(k,P,"0"),P+1>M){if(--C>0)for(k+=".";C--;k+="0");}else if(C+=P-M,C>0)for(P+1==M&&(k+=".");C--;k+="0");return m.s<0&&R?"-"+k:k}function S(m,C){for(var I,E,R=1,P=new y(m[0]);R<m.length;R++)E=new y(m[R]),(!E.s||(I=ni(P,E))===C||I===0&&P.s===C)&&(P=E);return P}function D(m,C,I){for(var E=1,R=C.length;!C[--R];C.pop());for(R=C[0];R>=10;R/=10,E++);return(I=E+I*Ce-1)>d?m.c=m.e=null:I<c?m.c=[m.e=0]:(m.e=I,m.c=C),m}r=function(){var m=/^(-?)0([xbo])(?=\w[\w.]*$)/i,C=/^([^.]+)\.$/,I=/^\.([^.]+)$/,E=/^-?(Infinity|NaN)$/,R=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(P,A,M,k){var T,B=M?A:A.replace(R,"");if(E.test(B))P.s=isNaN(B)?null:B<0?-1:1;else{if(!M&&(B=B.replace(m,function(O,L,j){return T=(j=j.toLowerCase())=="x"?16:j=="b"?2:8,!k||k==T?L:O}),k&&(T=k,B=B.replace(C,"$1").replace(I,"0.$1")),A!=B))return new y(B,T);if(y.DEBUG)throw Error(Yt+"Not a"+(k?" base "+k:"")+" number: "+A);P.s=null}P.c=P.e=null}}();function $(m,C,I,E){var R,P,A,M,k,T,B,O=m.c,L=Qu;if(O){e:{for(R=1,M=O[0];M>=10;M/=10,R++);if(P=C-R,P<0)P+=Ce,A=C,k=O[T=0],B=yn(k/L[R-A-1]%10);else if(T=qu((P+1)/Ce),T>=O.length)if(E){for(;O.length<=T;O.push(0));k=B=0,R=1,P%=Ce,A=P-Ce+1}else break e;else{for(k=M=O[T],R=1;M>=10;M/=10,R++);P%=Ce,A=P-Ce+R,B=A<0?0:yn(k/L[R-A-1]%10)}if(E=E||C<0||O[T+1]!=null||(A<0?k:k%L[R-A-1]),E=I<4?(B||E)&&(I==0||I==(m.s<0?3:2)):B>5||B==5&&(I==4||E||I==6&&(P>0?A>0?k/L[R-A]:0:O[T-1])%10&1||I==(m.s<0?8:7)),C<1||!O[0])return O.length=0,E?(C-=m.e+1,O[0]=L[(Ce-C%Ce)%Ce],m.e=-C||0):O[0]=m.e=0,m;if(P==0?(O.length=T,M=1,T--):(O.length=T+1,M=L[Ce-P],O[T]=A>0?yn(k/L[R-A]%L[A])*M:0),E)for(;;)if(T==0){for(P=1,A=O[0];A>=10;A/=10,P++);for(A=O[0]+=M,M=1;A>=10;A/=10,M++);P!=M&&(m.e++,O[0]==_n&&(O[0]=1));break}else{if(O[T]+=M,O[T]!=_n)break;O[T--]=0,M=1}for(P=O.length;O[--P]===0;O.pop());}m.e>d?m.c=m.e=null:m.e<c&&(m.c=[m.e=0])}return m}function F(m){var C,I=m.e;return I===null?m.toString():(C=gn(m.c),C=I<=l||I>=u?ys(C,I):ir(C,I,"0"),m.s<0?"-"+C:C)}return i.absoluteValue=i.abs=function(){var m=new y(this);return m.s<0&&(m.s=1),m},i.comparedTo=function(m,C){return ni(this,new y(m,C))},i.decimalPlaces=i.dp=function(m,C){var I,E,R,P=this;if(m!=null)return Qe(m,0,Qt),C==null?C=s:Qe(C,0,8),$(new y(P),m+P.e+1,C);if(!(I=P.c))return null;if(E=((R=I.length-1)-xn(this.e/Ce))*Ce,R=I[R])for(;R%10==0;R/=10,E--);return E<0&&(E=0),E},i.dividedBy=i.div=function(m,C){return t(this,new y(m,C),o,s)},i.dividedToIntegerBy=i.idiv=function(m,C){return t(this,new y(m,C),0,1)},i.exponentiatedBy=i.pow=function(m,C){var I,E,R,P,A,M,k,T,B,O=this;if(m=new y(m),m.c&&!m.isInteger())throw Error(Yt+"Exponent not an integer: "+F(m));if(C!=null&&(C=new y(C)),M=m.e>14,!O.c||!O.c[0]||O.c[0]==1&&!O.e&&O.c.length==1||!m.c||!m.c[0])return B=new y(Math.pow(+F(O),M?m.s*(2-vs(m)):+F(m))),C?B.mod(C):B;if(k=m.s<0,C){if(C.c?!C.c[0]:!C.s)return new y(NaN);E=!k&&O.isInteger()&&C.isInteger(),E&&(O=O.mod(C))}else{if(m.e>9&&(O.e>0||O.e<-1||(O.e==0?O.c[0]>1||M&&O.c[1]>=24e7:O.c[0]<8e13||M&&O.c[0]<=9999975e7)))return P=O.s<0&&vs(m)?-0:0,O.e>-1&&(P=1/P),new y(k?1/P:P);g&&(P=qu(g/Ce+2))}for(M?(I=new y(.5),k&&(m.s=1),T=vs(m)):(R=Math.abs(+F(m)),T=R%2),B=new y(a);;){if(T){if(B=B.times(O),!B.c)break;P?B.c.length>P&&(B.c.length=P):E&&(B=B.mod(C))}if(R){if(R=yn(R/2),R===0)break;T=R%2}else if(m=m.times(I),$(m,m.e+1,1),m.e>14)T=vs(m);else{if(R=+F(m),R===0)break;T=R%2}O=O.times(O),P?O.c&&O.c.length>P&&(O.c.length=P):E&&(O=O.mod(C))}return E?B:(k&&(B=a.div(B)),C?B.mod(C):P?$(B,g,s,A):B)},i.integerValue=function(m){var C=new y(this);return m==null?m=s:Qe(m,0,8),$(C,C.e+1,m)},i.isEqualTo=i.eq=function(m,C){return ni(this,new y(m,C))===0},i.isFinite=function(){return!!this.c},i.isGreaterThan=i.gt=function(m,C){return ni(this,new y(m,C))>0},i.isGreaterThanOrEqualTo=i.gte=function(m,C){return(C=ni(this,new y(m,C)))===1||C===0},i.isInteger=function(){return!!this.c&&xn(this.e/Ce)>this.c.length-2},i.isLessThan=i.lt=function(m,C){return ni(this,new y(m,C))<0},i.isLessThanOrEqualTo=i.lte=function(m,C){return(C=ni(this,new y(m,C)))===-1||C===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(m,C){var I,E,R,P,A=this,M=A.s;if(m=new y(m,C),C=m.s,!M||!C)return new y(NaN);if(M!=C)return m.s=-C,A.plus(m);var k=A.e/Ce,T=m.e/Ce,B=A.c,O=m.c;if(!k||!T){if(!B||!O)return B?(m.s=-C,m):new y(O?A:NaN);if(!B[0]||!O[0])return O[0]?(m.s=-C,m):new y(B[0]?A:s==3?-0:0)}if(k=xn(k),T=xn(T),B=B.slice(),M=k-T){for((P=M<0)?(M=-M,R=B):(T=k,R=O),R.reverse(),C=M;C--;R.push(0));R.reverse()}else for(E=(P=(M=B.length)<(C=O.length))?M:C,M=C=0;C<E;C++)if(B[C]!=O[C]){P=B[C]<O[C];break}if(P&&(R=B,B=O,O=R,m.s=-m.s),C=(E=O.length)-(I=B.length),C>0)for(;C--;B[I++]=0);for(C=_n-1;E>M;){if(B[--E]<O[E]){for(I=E;I&&!B[--I];B[I]=C);--B[I],B[E]+=_n}B[E]-=O[E]}for(;B[0]==0;B.splice(0,1),--T);return B[0]?D(m,B,T):(m.s=s==3?-1:1,m.c=[m.e=0],m)},i.modulo=i.mod=function(m,C){var I,E,R=this;return m=new y(m,C),!R.c||!m.s||m.c&&!m.c[0]?new y(NaN):!m.c||R.c&&!R.c[0]?new y(R):(f==9?(E=m.s,m.s=1,I=t(R,m,0,3),m.s=E,I.s*=E):I=t(R,m,0,f),m=R.minus(I.times(m)),!m.c[0]&&f==1&&(m.s=R.s),m)},i.multipliedBy=i.times=function(m,C){var I,E,R,P,A,M,k,T,B,O,L,j,z,Y,G,H=this,V=H.c,X=(m=new y(m,C)).c;if(!V||!X||!V[0]||!X[0])return!H.s||!m.s||V&&!V[0]&&!X||X&&!X[0]&&!V?m.c=m.e=m.s=null:(m.s*=H.s,!V||!X?m.c=m.e=null:(m.c=[0],m.e=0)),m;for(E=xn(H.e/Ce)+xn(m.e/Ce),m.s*=H.s,k=V.length,O=X.length,k<O&&(z=V,V=X,X=z,R=k,k=O,O=R),R=k+O,z=[];R--;z.push(0));for(Y=_n,G=Rr,R=O;--R>=0;){for(I=0,L=X[R]%G,j=X[R]/G|0,A=k,P=R+A;P>R;)T=V[--A]%G,B=V[A]/G|0,M=j*T+B*L,T=L*T+M%G*G+z[P]+I,I=(T/Y|0)+(M/G|0)+j*B,z[P--]=T%Y;z[P]=I}return I?++E:z.splice(0,1),D(m,z,E)},i.negated=function(){var m=new y(this);return m.s=-m.s||null,m},i.plus=function(m,C){var I,E=this,R=E.s;if(m=new y(m,C),C=m.s,!R||!C)return new y(NaN);if(R!=C)return m.s=-C,E.minus(m);var P=E.e/Ce,A=m.e/Ce,M=E.c,k=m.c;if(!P||!A){if(!M||!k)return new y(R/0);if(!M[0]||!k[0])return k[0]?m:new y(M[0]?E:R*0)}if(P=xn(P),A=xn(A),M=M.slice(),R=P-A){for(R>0?(A=P,I=k):(R=-R,I=M),I.reverse();R--;I.push(0));I.reverse()}for(R=M.length,C=k.length,R-C<0&&(I=k,k=M,M=I,C=R),R=0;C;)R=(M[--C]=M[C]+k[C]+R)/_n|0,M[C]=_n===M[C]?0:M[C]%_n;return R&&(M=[R].concat(M),++A),D(m,M,A)},i.precision=i.sd=function(m,C){var I,E,R,P=this;if(m!=null&&m!==!!m)return Qe(m,1,Qt),C==null?C=s:Qe(C,0,8),$(new y(P),m,C);if(!(I=P.c))return null;if(R=I.length-1,E=R*Ce+1,R=I[R]){for(;R%10==0;R/=10,E--);for(R=I[0];R>=10;R/=10,E++);}return m&&P.e+1>E&&(E=P.e+1),E},i.shiftedBy=function(m){return Qe(m,-9007199254740991,gg),this.times("1e"+m)},i.squareRoot=i.sqrt=function(){var m,C,I,E,R,P=this,A=P.c,M=P.s,k=P.e,T=o+4,B=new y("0.5");if(M!==1||!A||!A[0])return new y(!M||M<0&&(!A||A[0])?NaN:A?P:1/0);if(M=Math.sqrt(+F(P)),M==0||M==1/0?(C=gn(A),(C.length+k)%2==0&&(C+="0"),M=Math.sqrt(+C),k=xn((k+1)/2)-(k<0||k%2),M==1/0?C="5e"+k:(C=M.toExponential(),C=C.slice(0,C.indexOf("e")+1)+k),I=new y(C)):I=new y(M+""),I.c[0]){for(k=I.e,M=k+T,M<3&&(M=0);;)if(R=I,I=B.times(R.plus(t(P,R,T,1))),gn(R.c).slice(0,M)===(C=gn(I.c)).slice(0,M))if(I.e<k&&--M,C=C.slice(M-3,M+1),C=="9999"||!E&&C=="4999"){if(!E&&($(R,R.e+o+2,0),R.times(R).eq(P))){I=R;break}T+=4,M+=4,E=1}else{(!+C||!+C.slice(1)&&C.charAt(0)=="5")&&($(I,I.e+o+2,1),m=!I.times(I).eq(P));break}}return $(I,I.e+o+1,s,m)},i.toExponential=function(m,C){return m!=null&&(Qe(m,0,Qt),m++),x(this,m,C,1)},i.toFixed=function(m,C){return m!=null&&(Qe(m,0,Qt),m=m+this.e+1),x(this,m,C)},i.toFormat=function(m,C,I){var E,R=this;if(I==null)m!=null&&C&&typeof C=="object"?(I=C,C=null):m&&typeof m=="object"?(I=m,m=C=null):I=p;else if(typeof I!="object")throw Error(Yt+"Argument not an object: "+I);if(E=R.toFixed(m,C),R.c){var P,A=E.split("."),M=+I.groupSize,k=+I.secondaryGroupSize,T=I.groupSeparator||"",B=A[0],O=A[1],L=R.s<0,j=L?B.slice(1):B,z=j.length;if(k&&(P=M,M=k,k=P,z-=P),M>0&&z>0){for(P=z%M||M,B=j.substr(0,P);P<z;P+=M)B+=T+j.substr(P,M);k>0&&(B+=T+j.slice(P)),L&&(B="-"+B)}E=O?B+(I.decimalSeparator||"")+((k=+I.fractionGroupSize)?O.replace(new RegExp("\\d{"+k+"}\\B","g"),"$&"+(I.fractionGroupSeparator||"")):O):B}return(I.prefix||"")+E+(I.suffix||"")},i.toFraction=function(m){var C,I,E,R,P,A,M,k,T,B,O,L,j=this,z=j.c;if(m!=null&&(M=new y(m),!M.isInteger()&&(M.c||M.s!==1)||M.lt(a)))throw Error(Yt+"Argument "+(M.isInteger()?"out of range: ":"not an integer: ")+F(M));if(!z)return new y(j);for(C=new y(a),T=I=new y(a),E=k=new y(a),L=gn(z),P=C.e=L.length-j.e-1,C.c[0]=Qu[(A=P%Ce)<0?Ce+A:A],m=!m||M.comparedTo(C)>0?P>0?C:T:M,A=d,d=1/0,M=new y(L),k.c[0]=0;B=t(M,C,0,1),R=I.plus(B.times(E)),R.comparedTo(m)!=1;)I=E,E=R,T=k.plus(B.times(R=T)),k=R,C=M.minus(B.times(R=C)),M=R;return R=t(m.minus(I),E,0,1),k=k.plus(R.times(T)),I=I.plus(R.times(E)),k.s=T.s=j.s,P=P*2,O=t(T,E,P,s).minus(j).abs().comparedTo(t(k,I,P,s).minus(j).abs())<1?[T,E]:[k,I],d=A,O},i.toNumber=function(){return+F(this)},i.toPrecision=function(m,C){return m!=null&&Qe(m,1,Qt),x(this,m,C,2)},i.toString=function(m){var C,I=this,E=I.s,R=I.e;return R===null?E?(C="Infinity",E<0&&(C="-"+C)):C="NaN":(m==null?C=R<=l||R>=u?ys(gn(I.c),R):ir(gn(I.c),R,"0"):m===10&&v?(I=$(new y(I),o+R+1,s),C=ir(gn(I.c),I.e,"0")):(Qe(m,2,b.length,"Base"),C=n(ir(gn(I.c),R,"0"),10,m,E,!0)),E<0&&I.c[0]&&(C="-"+C)),C},i.valueOf=i.toJSON=function(){return F(this)},i._isBigNumber=!0,i[Symbol.toStringTag]="BigNumber",i[Symbol.for("nodejs.util.inspect.custom")]=i.valueOf,e!=null&&y.set(e),y}function xn(e){var t=e|0;return e>0||e===t?t:t-1}function gn(e){for(var t,n,r=1,i=e.length,a=e[0]+"";r<i;){for(t=e[r++]+"",n=Ce-t.length;n--;t="0"+t);a+=t}for(i=a.length;a.charCodeAt(--i)===48;);return a.slice(0,i+1||1)}function ni(e,t){var n,r,i=e.c,a=t.c,o=e.s,s=t.s,l=e.e,u=t.e;if(!o||!s)return null;if(n=i&&!i[0],r=a&&!a[0],n||r)return n?r?0:-s:o;if(o!=s)return o;if(n=o<0,r=l==u,!i||!a)return r?0:!i^n?1:-1;if(!r)return l>u^n?1:-1;for(s=(l=i.length)<(u=a.length)?l:u,o=0;o<s;o++)if(i[o]!=a[o])return i[o]>a[o]^n?1:-1;return l==u?0:l>u^n?1:-1}function Qe(e,t,n,r){if(e<t||e>n||e!==yn(e))throw Error(Yt+(r||"Argument")+(typeof e=="number"?e<t||e>n?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function vs(e){var t=e.c.length-1;return xn(e.e/Ce)==t&&e.c[t]%2!=0}function ys(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function ir(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 bu=s1();const l1={ROUNDING_MODE:bu.ROUND_HALF_UP,EXPONENTIAL_AT:[-1e9,1e9]};let ed=!1;const Ow=(e=l1)=>{ed||(bu.config(e),ed=!0)},nt=(e,t)=>(ed||Ow(),new bu(e,t)),Qn=e=>{try{return nt(e).isFinite()}catch{return!1}},u1=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 cf(e,t){const{decimals:n=2,instance:r=!1}=t||{};Qn(e)||(e="0");const i=nt(e).toFixed(n);return r?nt(i):i}const df=(e,t=2)=>{let n=parseFloat(u1(e)?e:0);return n=(+(Math.round(n+"e"+t)+"e-"+t)).toFixed(t),n=Number(n),n};function Tr(e,t="currency",n={minimumFractionDigits:0,locale:"id-ID",currency:"IDR",withSpace:!1}){const{minimumFractionDigits:r,locale:i,currency:a,withSpace:o}=n,s=new Intl.NumberFormat(i,{style:t,currency:a,minimumFractionDigits:r}).format(df(e,r>0?r:2));return o?s:s.replace(/\s/g,"")}const ra=(e,t,n,r)=>{const i={id:El,enUS:uf,nl:o1};let a=n??"-";return e&&!isNaN(new Date(e).getTime())&&(a=vo(e,t??"dd/MM/yyyy",{locale:i[r??"id"]})),a},Nw=(e,t,n,r,i,a)=>{const o={id:El,enUS:uf,nl:o1};if(e&&!isNaN(new Date(e).getTime())){const s=vo(e,n??"dd/MM/yyyy",{locale:o[a??"id"]});if(t&&!isNaN(new Date(t).getTime())){const l=vo(t,n??"dd/MM/yyyy",{locale:o[a??"id"]});return s===l?s:`${s}${r??"-"}${l}`}return s}return i??"-"},c1=(e,t)=>e.reduce((n,r)=>{const i=String(r[t]);return n[i]||(n[i]=[]),n[i].push(r),n},{}),Vw=({value:e,keyDate:t="date",keyFormat:n="formatDate",format:r="dd/MM/yyyy"})=>{const i=e.map(a=>({...a,[n]:ra(a[t],r)}));return c1(i,n)},Lw=e=>(Object.keys(e).forEach(t=>{["",null,void 0,[],{}].includes(e[t])&&delete e[t]}),e),Hw=(e,t)=>{var h,f;const n=/^-?\d+[0-9.,]*$/,r=/([.])(?=.*\1)/,i=/([,])(?=.*\1)/,a=((h=e.split(",")[0])==null?void 0:h.trim())||"",o=((f=e.split(",")[1])==null?void 0:f.trim())||"",s=!r.test(a)&&(a==="-"||n.test(a)||!a),l=!r.test(o)&&(o==="-"||n.test(o)||!o),u=(g,p,b)=>{let v=g;const y=g.split(".")[0];return isNaN(parseFloat(y.split(".")[0]))||(parseFloat(y.split(".")[0])<=p?v=`${p}`:parseFloat(y)>=b&&(v=`${b}`)),v},c=u(a,(t==null?void 0:t.latMin)??-85,(t==null?void 0:t.latMax)??85),d=u(o,(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}},mg=(e,t)=>e?Object.fromEntries(Object.entries(t).filter(([r])=>r.startsWith(e))):t;function ff(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)||!ff(e[i],t[i]))return!1;return!0}function jw(e,t={maxTime:"hour"}){const{maxTime:n="hour"}=t,r=l=>l<10?`0${l}`:l;let i=r(0),a=r(0);const o=r(Math.floor(e%3600/60)),s=r(Math.floor(e%60));return n==="hour"?a=r(Math.floor(e/3600)):n==="day"&&(i=r(Math.floor(e/(3600*24))),a=r(Math.floor(e%(3600*24)/3600))),{day:i,hour:a,minute:o,second:s}}const Ww=e=>df(e||0),zw=e=>cf(e||0),Gw=e=>isNaN(e)?void 0:e;function Xw(e,t={}){const{locale:n,currency:r,minimumFractionDigits:i,maximumFractionDigits:a=2,withSpace:o,currencyDisplay:s}=t,l=cf(e,{decimals:a}),[u,c=""]=l.split("."),d=u.replace(/\B(?=(\d{3})+(?!\d))/g,".");let h=c.slice(0,a);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 p={"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:p.symbol,code:p.code,name:p.name}[s||"symbol"],v=f.includes("-");return f=p.negativePosition==="start"?f.replace("-",""):f,o?`${p.negativePosition==="start"&&v?"-":""}${b} ${f}`:`${p.negativePosition==="start"&&v?"-":""}${b}${f}`}function Zw(e){if(!Qn(e))return"0";const t=typeof e=="number"?nt(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 xs(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 Yw={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 td(e,t){function n(i,a,o){if(!(typeof document>"u")){o=xs({},t,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var l in o)o[l]&&(s+="; "+l,o[l]!==!0&&(s+="="+o[l].split(";")[0]));return document.cookie=i+"="+e.write(a,i)+s}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var a=document.cookie?document.cookie.split("; "):[],o={},s=0;s<a.length;s++){var l=a[s].split("="),u=l.slice(1).join("=");try{var c=decodeURIComponent(l[0]);if(o[c]=e.read(u,c),i===c)break}catch{}}return i?o[i]:o}}return Object.create({set:n,get:r,remove:function(i,a){n(i,"",xs({},a,{expires:-1}))},withAttributes:function(i){return td(this.converter,xs({},this.attributes,i))},withConverter:function(i){return td(xs({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Ln=td(Yw,{path:"/"});const Uw={setItem(e,t,n={},r=3e3){const a={...{path:"/"},...n};parseInt(Ln.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);Ln.set(`${e}_${l}`,u,a)}Ln.set(`${e}_count`,s.toString(),a)},getItem(e){const t=parseInt(Ln.get(`${e}_count`)??"0",10);if(!t)return null;let n="";for(let r=0;r<t;r++){const i=Ln.get(`${e}_${r}`);if(!i)return null;n+=i}return n},removeItem(e,t={}){const n=parseInt(Ln.get(`${e}_count`)??"0",10),r={path:"/",...t};if(!isNaN(n)){for(let i=0;i<n;i++)Ln.remove(`${e}_${i}`,r);Ln.remove(`${e}_count`,r)}},clear(e={}){const t={path:"/",...e},n=Ln.get();Object.keys(n).forEach(r=>Ln.remove(r,t))}};var nd={exports:{}},ka={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -18,11 +18,11 @@
18
18
  `+X+N}}var te=!1,ue;{var ie=typeof WeakMap=="function"?WeakMap:Map;ue=new ie}function Z(N,U){if(!N||te)return"";{var Q=ue.get(N);if(Q!==void 0)return Q}var ve;te=!0;var Ne=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Ze;Ze=V.current,V.current=null,G();try{if(U){var Fe=function(){throw Error()};if(Object.defineProperty(Fe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Fe,[])}catch(zt){ve=zt}Reflect.construct(N,[],Fe)}else{try{Fe.call()}catch(zt){ve=zt}N.call(Fe.prototype)}}else{try{throw Error()}catch(zt){ve=zt}N()}}catch(zt){if(zt&&ve&&typeof zt.stack=="string"){for(var Ie=zt.stack.split(`
19
19
  `),kt=ve.stack.split(`
20
20
  `),dt=Ie.length-1,ht=kt.length-1;dt>=1&&ht>=0&&Ie[dt]!==kt[ht];)ht--;for(;dt>=1&&ht>=0;dt--,ht--)if(Ie[dt]!==kt[ht]){if(dt!==1||ht!==1)do if(dt--,ht--,ht<0||Ie[dt]!==kt[ht]){var hn=`
21
- `+Ie[dt].replace(" at new "," at ");return N.displayName&&hn.includes("<anonymous>")&&(hn=hn.replace("<anonymous>",N.displayName)),typeof N=="function"&&ue.set(N,hn),hn}while(dt>=1&&ht>=0);break}}}finally{te=!1,V.current=Ze,H(),Error.prepareStackTrace=Ne}var Hi=N?N.displayName||N.name:"",ti=Hi?K(Hi):"";return typeof N=="function"&&ue.set(N,ti),ti}function me(N,U,Q){return Z(N,!1)}function he(N){var U=N.prototype;return!!(U&&U.isReactComponent)}function ce(N,U,Q){if(N==null)return"";if(typeof N=="function")return Z(N,he(N));if(typeof N=="string")return K(N);switch(N){case u:return K("Suspense");case c:return K("SuspenseList")}if(typeof N=="object")switch(N.$$typeof){case l:return me(N.render);case d:return ce(N.type,U,Q);case h:{var ve=N,Ne=ve._payload,Ze=ve._init;try{return ce(Ze(Ne),U,Q)}catch{}}}return""}var qe=Object.prototype.hasOwnProperty,ee={},re=v.ReactDebugCurrentFrame;function pe(N){if(N){var U=N._owner,Q=ce(N.type,N._source,U?U.type:null);re.setExtraStackFrame(Q)}else re.setExtraStackFrame(null)}function He(N,U,Q,ve,Ne){{var Ze=Function.call.bind(qe);for(var Fe in N)if(Ze(N,Fe)){var Ie=void 0;try{if(typeof N[Fe]!="function"){var kt=Error((ve||"React class")+": "+Q+" type `"+Fe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof N[Fe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw kt.name="Invariant Violation",kt}Ie=N[Fe](U,Fe,ve,Q,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(dt){Ie=dt}Ie&&!(Ie instanceof Error)&&(pe(Ne),y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",ve||"React class",Q,Fe,typeof Ie),pe(null)),Ie instanceof Error&&!(Ie.message in ee)&&(ee[Ie.message]=!0,pe(Ne),y("Failed %s type: %s",Q,Ie.message),pe(null))}}}var ct=Array.isArray;function Ae(N){return ct(N)}function Ee(N){{var U=typeof Symbol=="function"&&Symbol.toStringTag,Q=U&&N[Symbol.toStringTag]||N.constructor.name||"Object";return Q}}function Ht(N){try{return jt(N),!1}catch{return!0}}function jt(N){return""+N}function Wt(N){if(Ht(N))return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ee(N)),jt(N)}var rr=v.ReactCurrentOwner,Qh={key:!0,ref:!0,__self:!0,__source:!0},bs,Vi;function Zu(N){if(qe.call(N,"ref")){var U=Object.getOwnPropertyDescriptor(N,"ref").get;if(U&&U.isReactWarning)return!1}return N.ref!==void 0}function fC(N){if(qe.call(N,"key")){var U=Object.getOwnPropertyDescriptor(N,"key").get;if(U&&U.isReactWarning)return!1}return N.key!==void 0}function hC(N,U){typeof N.ref=="string"&&rr.current}function gC(N,U){{var Q=function(){bs||(bs=!0,y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",U))};Q.isReactWarning=!0,Object.defineProperty(N,"key",{get:Q,configurable:!0})}}function mC(N,U){{var Q=function(){Vi||(Vi=!0,y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",U))};Q.isReactWarning=!0,Object.defineProperty(N,"ref",{get:Q,configurable:!0})}}var pC=function(N,U,Q,ve,Ne,Ze,Fe){var Ie={$$typeof:t,type:N,key:U,ref:Q,props:Fe,_owner:Ze};return Ie._store={},Object.defineProperty(Ie._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ie,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ve}),Object.defineProperty(Ie,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Ne}),Object.freeze&&(Object.freeze(Ie.props),Object.freeze(Ie)),Ie};function bC(N,U,Q,ve,Ne){{var Ze,Fe={},Ie=null,kt=null;Q!==void 0&&(Wt(Q),Ie=""+Q),fC(U)&&(Wt(U.key),Ie=""+U.key),Zu(U)&&(kt=U.ref,hC(U,Ne));for(Ze in U)qe.call(U,Ze)&&!Qh.hasOwnProperty(Ze)&&(Fe[Ze]=U[Ze]);if(N&&N.defaultProps){var dt=N.defaultProps;for(Ze in dt)Fe[Ze]===void 0&&(Fe[Ze]=dt[Ze])}if(Ie||kt){var ht=typeof N=="function"?N.displayName||N.name||"Unknown":N;Ie&&gC(Fe,ht),kt&&mC(Fe,ht)}return pC(N,Ie,kt,Ne,ve,rr.current,Fe)}}var Yu=v.ReactCurrentOwner,eg=v.ReactDebugCurrentFrame;function Li(N){if(N){var U=N._owner,Q=ce(N.type,N._source,U?U.type:null);eg.setExtraStackFrame(Q)}else eg.setExtraStackFrame(null)}var Uu;Uu=!1;function Ju(N){return typeof N=="object"&&N!==null&&N.$$typeof===t}function tg(){{if(Yu.current){var N=P(Yu.current.type);if(N)return`
21
+ `+Ie[dt].replace(" at new "," at ");return N.displayName&&hn.includes("<anonymous>")&&(hn=hn.replace("<anonymous>",N.displayName)),typeof N=="function"&&ue.set(N,hn),hn}while(dt>=1&&ht>=0);break}}}finally{te=!1,V.current=Ze,H(),Error.prepareStackTrace=Ne}var ji=N?N.displayName||N.name:"",ti=ji?K(ji):"";return typeof N=="function"&&ue.set(N,ti),ti}function me(N,U,Q){return Z(N,!1)}function he(N){var U=N.prototype;return!!(U&&U.isReactComponent)}function ce(N,U,Q){if(N==null)return"";if(typeof N=="function")return Z(N,he(N));if(typeof N=="string")return K(N);switch(N){case u:return K("Suspense");case c:return K("SuspenseList")}if(typeof N=="object")switch(N.$$typeof){case l:return me(N.render);case d:return ce(N.type,U,Q);case h:{var ve=N,Ne=ve._payload,Ze=ve._init;try{return ce(Ze(Ne),U,Q)}catch{}}}return""}var qe=Object.prototype.hasOwnProperty,ee={},re=v.ReactDebugCurrentFrame;function pe(N){if(N){var U=N._owner,Q=ce(N.type,N._source,U?U.type:null);re.setExtraStackFrame(Q)}else re.setExtraStackFrame(null)}function He(N,U,Q,ve,Ne){{var Ze=Function.call.bind(qe);for(var Fe in N)if(Ze(N,Fe)){var Ie=void 0;try{if(typeof N[Fe]!="function"){var kt=Error((ve||"React class")+": "+Q+" type `"+Fe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof N[Fe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw kt.name="Invariant Violation",kt}Ie=N[Fe](U,Fe,ve,Q,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(dt){Ie=dt}Ie&&!(Ie instanceof Error)&&(pe(Ne),y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",ve||"React class",Q,Fe,typeof Ie),pe(null)),Ie instanceof Error&&!(Ie.message in ee)&&(ee[Ie.message]=!0,pe(Ne),y("Failed %s type: %s",Q,Ie.message),pe(null))}}}var ct=Array.isArray;function Ae(N){return ct(N)}function Ee(N){{var U=typeof Symbol=="function"&&Symbol.toStringTag,Q=U&&N[Symbol.toStringTag]||N.constructor.name||"Object";return Q}}function Ht(N){try{return jt(N),!1}catch{return!0}}function jt(N){return""+N}function Wt(N){if(Ht(N))return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ee(N)),jt(N)}var rr=v.ReactCurrentOwner,Qh={key:!0,ref:!0,__self:!0,__source:!0},bs,Li;function Zu(N){if(qe.call(N,"ref")){var U=Object.getOwnPropertyDescriptor(N,"ref").get;if(U&&U.isReactWarning)return!1}return N.ref!==void 0}function fC(N){if(qe.call(N,"key")){var U=Object.getOwnPropertyDescriptor(N,"key").get;if(U&&U.isReactWarning)return!1}return N.key!==void 0}function hC(N,U){typeof N.ref=="string"&&rr.current}function gC(N,U){{var Q=function(){bs||(bs=!0,y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",U))};Q.isReactWarning=!0,Object.defineProperty(N,"key",{get:Q,configurable:!0})}}function mC(N,U){{var Q=function(){Li||(Li=!0,y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",U))};Q.isReactWarning=!0,Object.defineProperty(N,"ref",{get:Q,configurable:!0})}}var pC=function(N,U,Q,ve,Ne,Ze,Fe){var Ie={$$typeof:t,type:N,key:U,ref:Q,props:Fe,_owner:Ze};return Ie._store={},Object.defineProperty(Ie._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ie,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ve}),Object.defineProperty(Ie,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Ne}),Object.freeze&&(Object.freeze(Ie.props),Object.freeze(Ie)),Ie};function bC(N,U,Q,ve,Ne){{var Ze,Fe={},Ie=null,kt=null;Q!==void 0&&(Wt(Q),Ie=""+Q),fC(U)&&(Wt(U.key),Ie=""+U.key),Zu(U)&&(kt=U.ref,hC(U,Ne));for(Ze in U)qe.call(U,Ze)&&!Qh.hasOwnProperty(Ze)&&(Fe[Ze]=U[Ze]);if(N&&N.defaultProps){var dt=N.defaultProps;for(Ze in dt)Fe[Ze]===void 0&&(Fe[Ze]=dt[Ze])}if(Ie||kt){var ht=typeof N=="function"?N.displayName||N.name||"Unknown":N;Ie&&gC(Fe,ht),kt&&mC(Fe,ht)}return pC(N,Ie,kt,Ne,ve,rr.current,Fe)}}var Yu=v.ReactCurrentOwner,eg=v.ReactDebugCurrentFrame;function Hi(N){if(N){var U=N._owner,Q=ce(N.type,N._source,U?U.type:null);eg.setExtraStackFrame(Q)}else eg.setExtraStackFrame(null)}var Uu;Uu=!1;function Ju(N){return typeof N=="object"&&N!==null&&N.$$typeof===t}function tg(){{if(Yu.current){var N=P(Yu.current.type);if(N)return`
22
22
 
23
23
  Check the render method of \``+N+"`."}return""}}function vC(N){return""}var ng={};function yC(N){{var U=tg();if(!U){var Q=typeof N=="string"?N:N.displayName||N.name;Q&&(U=`
24
24
 
25
- Check the top-level render call using <`+Q+">.")}return U}}function rg(N,U){{if(!N._store||N._store.validated||N.key!=null)return;N._store.validated=!0;var Q=yC(U);if(ng[Q])return;ng[Q]=!0;var ve="";N&&N._owner&&N._owner!==Yu.current&&(ve=" It was passed a child from "+P(N._owner.type)+"."),Li(N),y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Q,ve),Li(null)}}function ig(N,U){{if(typeof N!="object")return;if(Ae(N))for(var Q=0;Q<N.length;Q++){var ve=N[Q];Ju(ve)&&rg(ve,U)}else if(Ju(N))N._store&&(N._store.validated=!0);else if(N){var Ne=b(N);if(typeof Ne=="function"&&Ne!==N.entries)for(var Ze=Ne.call(N),Fe;!(Fe=Ze.next()).done;)Ju(Fe.value)&&rg(Fe.value,U)}}}function xC(N){{var U=N.type;if(U==null||typeof U=="string")return;var Q;if(typeof U=="function")Q=U.propTypes;else if(typeof U=="object"&&(U.$$typeof===l||U.$$typeof===d))Q=U.propTypes;else return;if(Q){var ve=P(U);He(Q,N.props,"prop",ve,N)}else if(U.PropTypes!==void 0&&!Uu){Uu=!0;var Ne=P(U);y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Ne||"Unknown")}typeof U.getDefaultProps=="function"&&!U.getDefaultProps.isReactClassApproved&&y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function CC(N){{for(var U=Object.keys(N.props),Q=0;Q<U.length;Q++){var ve=U[Q];if(ve!=="children"&&ve!=="key"){Li(N),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ve),Li(null);break}}N.ref!==null&&(Li(N),y("Invalid attribute `ref` supplied to `React.Fragment`."),Li(null))}}var ag={};function og(N,U,Q,ve,Ne,Ze){{var Fe=I(N);if(!Fe){var Ie="";(N===void 0||typeof N=="object"&&N!==null&&Object.keys(N).length===0)&&(Ie+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var kt=vC();kt?Ie+=kt:Ie+=tg();var dt;N===null?dt="null":Ae(N)?dt="array":N!==void 0&&N.$$typeof===t?(dt="<"+(P(N.type)||"Unknown")+" />",Ie=" Did you accidentally export a JSX literal instead of a component?"):dt=typeof N,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",dt,Ie)}var ht=bC(N,U,Q,Ne,Ze);if(ht==null)return ht;if(Fe){var hn=U.children;if(hn!==void 0)if(ve)if(Ae(hn)){for(var Hi=0;Hi<hn.length;Hi++)ig(hn[Hi],N);Object.freeze&&Object.freeze(hn)}else y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ig(hn,N)}if(qe.call(U,"key")){var ti=P(N),zt=Object.keys(U).filter(function(_C){return _C!=="key"}),Ku=zt.length>0?"{key: someKey, "+zt.join(": ..., ")+": ...}":"{key: someKey}";if(!ag[ti+Ku]){var IC=zt.length>0?"{"+zt.join(": ..., ")+": ...}":"{}";y(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+Q+">.")}return U}}function rg(N,U){{if(!N._store||N._store.validated||N.key!=null)return;N._store.validated=!0;var Q=yC(U);if(ng[Q])return;ng[Q]=!0;var ve="";N&&N._owner&&N._owner!==Yu.current&&(ve=" It was passed a child from "+P(N._owner.type)+"."),Hi(N),y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Q,ve),Hi(null)}}function ig(N,U){{if(typeof N!="object")return;if(Ae(N))for(var Q=0;Q<N.length;Q++){var ve=N[Q];Ju(ve)&&rg(ve,U)}else if(Ju(N))N._store&&(N._store.validated=!0);else if(N){var Ne=b(N);if(typeof Ne=="function"&&Ne!==N.entries)for(var Ze=Ne.call(N),Fe;!(Fe=Ze.next()).done;)Ju(Fe.value)&&rg(Fe.value,U)}}}function xC(N){{var U=N.type;if(U==null||typeof U=="string")return;var Q;if(typeof U=="function")Q=U.propTypes;else if(typeof U=="object"&&(U.$$typeof===l||U.$$typeof===d))Q=U.propTypes;else return;if(Q){var ve=P(U);He(Q,N.props,"prop",ve,N)}else if(U.PropTypes!==void 0&&!Uu){Uu=!0;var Ne=P(U);y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Ne||"Unknown")}typeof U.getDefaultProps=="function"&&!U.getDefaultProps.isReactClassApproved&&y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function CC(N){{for(var U=Object.keys(N.props),Q=0;Q<U.length;Q++){var ve=U[Q];if(ve!=="children"&&ve!=="key"){Hi(N),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ve),Hi(null);break}}N.ref!==null&&(Hi(N),y("Invalid attribute `ref` supplied to `React.Fragment`."),Hi(null))}}var ag={};function og(N,U,Q,ve,Ne,Ze){{var Fe=I(N);if(!Fe){var Ie="";(N===void 0||typeof N=="object"&&N!==null&&Object.keys(N).length===0)&&(Ie+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var kt=vC();kt?Ie+=kt:Ie+=tg();var dt;N===null?dt="null":Ae(N)?dt="array":N!==void 0&&N.$$typeof===t?(dt="<"+(P(N.type)||"Unknown")+" />",Ie=" Did you accidentally export a JSX literal instead of a component?"):dt=typeof N,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",dt,Ie)}var ht=bC(N,U,Q,Ne,Ze);if(ht==null)return ht;if(Fe){var hn=U.children;if(hn!==void 0)if(ve)if(Ae(hn)){for(var ji=0;ji<hn.length;ji++)ig(hn[ji],N);Object.freeze&&Object.freeze(hn)}else y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ig(hn,N)}if(qe.call(U,"key")){var ti=P(N),zt=Object.keys(U).filter(function(_C){return _C!=="key"}),Ku=zt.length>0?"{key: someKey, "+zt.join(": ..., ")+": ...}":"{key: someKey}";if(!ag[ti+Ku]){var IC=zt.length>0?"{"+zt.join(": ..., ")+": ...}":"{}";y(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
@@ -39,10 +39,10 @@ React keys must be passed directly to JSX without using spread:
39
39
  8.57931 4.89118 6.85872C6.05378 5.13813 7.76522 3.86239 9.7462 3.23967C11.7272 2.61695 13.8607 \r
40
40
  2.68403 15.7987 3.42996C17.296 4.0063 18.6083 4.96159 19.6129 6.19191C20.1049 \r
41
41
  6.79445 20.9604 7.02733 21.6311 6.63315Z`,fill:"currentColor"})}),Mn=w.forwardRef((e,t)=>{const{size:n="reguler",variants:r="primary-laba-blue-10",startIcon:i=()=>_.jsx(_.Fragment,{}),endIcon:a=()=>_.jsx(_.Fragment,{}),children:o,className:s,classNameIconLoading:l,loading:u,onClick:c,type:d="button",disabled:h,...f}=e,g={size:{large:De["button-large"],reguler:De["button-reguler"],small:De["button-small"],"extra-small":De["button-extra-small"],l:De["button-l"],m:De["button-m"],s:De["button-s"],xs:De["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":De["primary-laba-blue-10"],"primary-red-700-dsb_laba-grey-06":De["primary-red-700-dsb_laba-grey-06"],"primary-green-700":De["primary-green-700"],"ghost-laba-blue-10":De["ghost-laba-blue-10"],"ghost-red-700":De["ghost-red-700"],"ghost-green-700":De["ghost-green-700"],"ghost-laba-green-10":De["ghost-laba-green-10"],"nude-laba-blue-10":De["nude-laba-blue-10"],"nude-red-700":De["nude-red-700"],"nude-green-700":De["nude-green-700"],"nude-gray-500":De["nude-gray-500"],"primary-blue-700":De["primary-blue-700"],"secondary-blue-700":De["secondary-blue-700"],"tertiary-blue-700":De["tertiary-blue-700"],"ghost-blue-gray-100-bg_white":De["ghost-blue-gray-100-bg_white"],"secondary-red-600":De["secondary-red-600"],"tertiary-red-300":De["tertiary-red-300"],"tertiary-gray-500":De["tertiary-gray-500"],"tertiary-red-600":De["tertiary-red-600"],"secondary-green-600":De["secondary-green-600"],"nude-laba-red-10":De["nude-laba-red-10"],"nude-laba-red-05":De["nude-laba-red-05"],"primary-red-700":De["primary-red-700"],"nude-laba-red-08":De["nude-laba-red-08"],"ghost-laba-blue-01":De["ghost-laba-blue-01"],"filled-laba-white_laba-blue-10":De["filled-laba-white_laba-blue-10"],"filled-laba-white_laba-red-05":De["filled-laba-white_laba-red-05"],"secondary-red-700":De["secondary-red-700"]}};return _.jsxs("button",{onClick:u?void 0:c,ref:t,className:`${g.size[n]} ${g.variants[r]}
42
- ${u?De.loading:""} ${s??""}`,type:d,disabled:h??u,...f,children:[!u&&_.jsxs(_.Fragment,{children:[typeof i=="function"&&i(),w.isValidElement(i)&&i]}),u&&_.jsx(f5,{className:`${g.loadingSize[n]} ${l}`}),o,!u&&_.jsxs(_.Fragment,{children:[typeof a=="function"&&a(),w.isValidElement(a)&&a]})]})});Mn.displayName="Button";function Jr(e){return x1(e)?(e.nodeName||"").toLowerCase():"#document"}function on(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Er(e){var t;return(t=(x1(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function x1(e){return e instanceof Node||e instanceof on(e).Node}function rt(e){return e instanceof Element||e instanceof on(e).Element}function xt(e){return e instanceof HTMLElement||e instanceof on(e).HTMLElement}function ld(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof on(e).ShadowRoot}function ns(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=dn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function h5(e){return["table","td","th"].includes(Jr(e))}function xu(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function bf(e){const t=vf(),n=dn(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 g5(e){let t=Dr(e);for(;xt(t)&&!zr(t);){if(xu(t))return null;if(bf(t))return t;t=Dr(t)}return null}function vf(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function zr(e){return["html","body","#document"].includes(Jr(e))}function dn(e){return on(e).getComputedStyle(e)}function Cu(e){return rt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Dr(e){if(Jr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ld(e)&&e.host||Er(e);return ld(t)?t.host:t}function C1(e){const t=Dr(e);return zr(t)?e.ownerDocument?e.ownerDocument.body:e.body:xt(t)&&ns(t)?t:C1(t)}function jr(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=C1(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),o=on(i);return a?t.concat(o,o.visualViewport||[],ns(i)?i:[],o.frameElement&&n?jr(o.frameElement):[]):t.concat(i,jr(i,[],n))}function ui(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 nn(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&ld(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function m5(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function w1(){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 p5(e){return e.mozInputSource===0&&e.isTrusted?!0:ud()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function b5(e){return y5()?!1:!ud()&&e.width===0&&e.height===0||ud()&&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 v5(){return/apple/i.test(navigator.vendor)}function ud(){const e=/android/i;return e.test(m5())||e.test(w1())}function y5(){return w1().includes("jsdom/")}function Eg(e,t){return["mouse","pen"].includes(e)}function x5(e){return"nativeEvent"in e}function C5(e){return e.matches("html,body")}function $n(e){return(e==null?void 0:e.ownerDocument)||document}function nc(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 hi(e){return"composedPath"in e?e.composedPath()[0]:e.target}const w5="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function D1(e){return xt(e)&&e.matches(w5)}function rc(e){e.preventDefault(),e.stopPropagation()}function D5(e){return e?e.getAttribute("role")==="combobox"&&D1(e):!1}const S5=["top","right","bottom","left"],Ig=["start","end"],_g=S5.reduce((e,t)=>e.concat(t,t+"-"+Ig[0],t+"-"+Ig[1]),[]),pa=Math.min,Di=Math.max,_l=Math.round,Es=Math.floor,Gr=e=>({x:e,y:e}),E5={left:"right",right:"left",bottom:"top",top:"bottom"},I5={start:"end",end:"start"};function cd(e,t,n){return Di(e,pa(t,n))}function $a(e,t){return typeof e=="function"?e(t):e}function Sr(e){return e.split("-")[0]}function Jn(e){return e.split("-")[1]}function S1(e){return e==="x"?"y":"x"}function yf(e){return e==="y"?"height":"width"}function ba(e){return["top","bottom"].includes(Sr(e))?"y":"x"}function xf(e){return S1(ba(e))}function E1(e,t,n){n===void 0&&(n=!1);const r=Jn(e),i=xf(e),a=yf(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=Rl(o)),[o,Rl(o)]}function _5(e){const t=Rl(e);return[$l(e),t,$l(t)]}function $l(e){return e.replace(/start|end/g,t=>I5[t])}function $5(e,t,n){const r=["left","right"],i=["right","left"],a=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?a:o;default:return[]}}function R5(e,t,n,r){const i=Jn(e);let a=$5(Sr(e),n==="start",r);return i&&(a=a.map(o=>o+"-"+i),t&&(a=a.concat(a.map($l)))),a}function Rl(e){return e.replace(/left|right|bottom|top/g,t=>E5[t])}function A5(e){return{top:0,right:0,bottom:0,left:0,...e}}function I1(e){return typeof e!="number"?A5(e):{top:e,right:e,bottom:e,left:e}}function Al(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}}/*!
42
+ ${u?De.loading:""} ${s??""}`,type:d,disabled:h??u,...f,children:[!u&&_.jsxs(_.Fragment,{children:[typeof i=="function"&&i(),w.isValidElement(i)&&i]}),u&&_.jsx(f5,{className:`${g.loadingSize[n]} ${l}`}),o,!u&&_.jsxs(_.Fragment,{children:[typeof a=="function"&&a(),w.isValidElement(a)&&a]})]})});Mn.displayName="Button";function Jr(e){return x1(e)?(e.nodeName||"").toLowerCase():"#document"}function on(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Er(e){var t;return(t=(x1(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function x1(e){return e instanceof Node||e instanceof on(e).Node}function rt(e){return e instanceof Element||e instanceof on(e).Element}function xt(e){return e instanceof HTMLElement||e instanceof on(e).HTMLElement}function ld(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof on(e).ShadowRoot}function ns(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=dn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function h5(e){return["table","td","th"].includes(Jr(e))}function xu(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function bf(e){const t=vf(),n=dn(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 g5(e){let t=Dr(e);for(;xt(t)&&!zr(t);){if(xu(t))return null;if(bf(t))return t;t=Dr(t)}return null}function vf(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function zr(e){return["html","body","#document"].includes(Jr(e))}function dn(e){return on(e).getComputedStyle(e)}function Cu(e){return rt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Dr(e){if(Jr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ld(e)&&e.host||Er(e);return ld(t)?t.host:t}function C1(e){const t=Dr(e);return zr(t)?e.ownerDocument?e.ownerDocument.body:e.body:xt(t)&&ns(t)?t:C1(t)}function jr(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=C1(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),o=on(i);return a?t.concat(o,o.visualViewport||[],ns(i)?i:[],o.frameElement&&n?jr(o.frameElement):[]):t.concat(i,jr(i,[],n))}function ui(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 nn(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&ld(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function m5(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function w1(){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 p5(e){return e.mozInputSource===0&&e.isTrusted?!0:ud()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function b5(e){return y5()?!1:!ud()&&e.width===0&&e.height===0||ud()&&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 v5(){return/apple/i.test(navigator.vendor)}function ud(){const e=/android/i;return e.test(m5())||e.test(w1())}function y5(){return w1().includes("jsdom/")}function Eg(e,t){return["mouse","pen"].includes(e)}function x5(e){return"nativeEvent"in e}function C5(e){return e.matches("html,body")}function $n(e){return(e==null?void 0:e.ownerDocument)||document}function nc(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 hi(e){return"composedPath"in e?e.composedPath()[0]:e.target}const w5="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function D1(e){return xt(e)&&e.matches(w5)}function rc(e){e.preventDefault(),e.stopPropagation()}function D5(e){return e?e.getAttribute("role")==="combobox"&&D1(e):!1}const S5=["top","right","bottom","left"],Ig=["start","end"],_g=S5.reduce((e,t)=>e.concat(t,t+"-"+Ig[0],t+"-"+Ig[1]),[]),ba=Math.min,Di=Math.max,_l=Math.round,Es=Math.floor,Gr=e=>({x:e,y:e}),E5={left:"right",right:"left",bottom:"top",top:"bottom"},I5={start:"end",end:"start"};function cd(e,t,n){return Di(e,ba(t,n))}function $a(e,t){return typeof e=="function"?e(t):e}function Sr(e){return e.split("-")[0]}function Jn(e){return e.split("-")[1]}function S1(e){return e==="x"?"y":"x"}function yf(e){return e==="y"?"height":"width"}function va(e){return["top","bottom"].includes(Sr(e))?"y":"x"}function xf(e){return S1(va(e))}function E1(e,t,n){n===void 0&&(n=!1);const r=Jn(e),i=xf(e),a=yf(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=Rl(o)),[o,Rl(o)]}function _5(e){const t=Rl(e);return[$l(e),t,$l(t)]}function $l(e){return e.replace(/start|end/g,t=>I5[t])}function $5(e,t,n){const r=["left","right"],i=["right","left"],a=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?a:o;default:return[]}}function R5(e,t,n,r){const i=Jn(e);let a=$5(Sr(e),n==="start",r);return i&&(a=a.map(o=>o+"-"+i),t&&(a=a.concat(a.map($l)))),a}function Rl(e){return e.replace(/left|right|bottom|top/g,t=>E5[t])}function A5(e){return{top:0,right:0,bottom:0,left:0,...e}}function I1(e){return typeof e!="number"?A5(e):{top:e,right:e,bottom:e,left:e}}function Al(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}}/*!
43
43
  * tabbable 6.2.0
44
44
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
45
- */var F5=["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])"],Fl=F5.join(","),_1=typeof Element>"u",va=_1?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Tl=!_1&&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},Pl=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"),a=i===""||i==="true",o=a||n&&t&&e(t.parentNode);return o},T5=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},P5=function(t,n,r){if(Pl(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(Fl));return n&&va.call(t,Fl)&&i.unshift(t),i=i.filter(r),i},k5=function e(t,n,r){for(var i=[],a=Array.from(t);a.length;){var o=a.shift();if(!Pl(o,!1))if(o.tagName==="SLOT"){var s=o.assignedElements(),l=s.length?s:o.children,u=e(l,!0,r);r.flatten?i.push.apply(i,u):i.push({scopeParent:o,candidates:u})}else{var c=va.call(o,Fl);c&&r.filter(o)&&(n||!t.includes(o))&&i.push(o);var d=o.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(o),h=!Pl(d,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(o));if(d&&h){var f=e(d===!0?o.children:d.children,!0,r);r.flatten?i.push.apply(i,f):i.push({scopeParent:o,candidates:f})}else a.unshift.apply(a,o.children)}}return i},$1=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},R1=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||T5(t))&&!$1(t)?0:t.tabIndex},M5=function(t,n){var r=R1(t);return r<0&&n&&!$1(t)?0:r},B5=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},A1=function(t){return t.tagName==="INPUT"},O5=function(t){return A1(t)&&t.type==="hidden"},N5=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},V5=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},L5=function(t){if(!t.name)return!0;var n=t.form||Tl(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(o){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",o.message),!1}var a=V5(i,t.form);return!a||a===t},H5=function(t){return A1(t)&&t.type==="radio"},j5=function(t){return H5(t)&&!L5(t)},W5=function(t){var n,r=t&&Tl(t),i=(n=r)===null||n===void 0?void 0:n.host,a=!1;if(r&&r!==t){var o,s,l;for(a=!!((o=i)!==null&&o!==void 0&&(s=o.ownerDocument)!==null&&s!==void 0&&s.contains(i)||t!=null&&(l=t.ownerDocument)!==null&&l!==void 0&&l.contains(t));!a&&i;){var u,c,d;r=Tl(i),i=(u=r)===null||u===void 0?void 0:u.host,a=!!((c=i)!==null&&c!==void 0&&(d=c.ownerDocument)!==null&&d!==void 0&&d.contains(i))}}return a},$g=function(t){var n=t.getBoundingClientRect(),r=n.width,i=n.height;return r===0&&i===0},z5=function(t,n){var r=n.displayCheck,i=n.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var a=va.call(t,"details>summary:first-of-type"),o=a?t.parentElement:t;if(va.call(o,"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=Tl(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(W5(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return $g(t);return!1},G5=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 va.call(n,"fieldset[disabled] *")?!0:!i.contains(t)}return!0}n=n.parentElement}return!1},X5=function(t,n){return!(n.disabled||Pl(n)||O5(n)||z5(n,t)||N5(n)||G5(n))},dd=function(t,n){return!(j5(n)||R1(n)<0||!X5(t,n))},Z5=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},Y5=function e(t){var n=[],r=[];return t.forEach(function(i,a){var o=!!i.scopeParent,s=o?i.scopeParent:i,l=M5(s,o),u=o?e(i.candidates):s;l===0?o?n.push.apply(n,u):n.push(s):r.push({documentOrder:a,tabIndex:l,item:i,isScope:o,content:u})}),r.sort(B5).reduce(function(i,a){return a.isScope?i.push.apply(i,a.content):i.push(a.content),i},[]).concat(n)},wu=function(t,n){n=n||{};var r;return n.getShadowRoot?r=k5([t],n.includeContainer,{filter:dd.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:Z5}):r=P5(t,n.includeContainer,dd.bind(null,n)),Y5(r)},U5=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return va.call(t,Fl)===!1?!1:dd(n,t)};function Rg(e,t,n){let{reference:r,floating:i}=e;const a=ba(t),o=xf(t),s=yf(o),l=Sr(t),u=a==="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(Jn(t)){case"start":f[o]-=h*(n&&u?-1:1);break;case"end":f[o]+=h*(n&&u?-1:1);break}return f}const J5=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:o}=n,s=a.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=Rg(u,r,l),h=r,f={},g=0;for(let p=0;p<s.length;p++){const{name:b,fn:v}=s[p],{x:y,y:x,data:S,reset:D}=await v({x:c,y:d,initialPlacement:r,placement:h,strategy:i,middlewareData:f,rects:u,platform:o,elements:{reference:e,floating:t}});c=y??c,d=x??d,f={...f,[b]:{...f[b],...S}},D&&g<=50&&(g++,typeof D=="object"&&(D.placement&&(h=D.placement),D.rects&&(u=D.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):D.rects),{x:c,y:d}=Rg(u,h,l)),p=-1)}return{x:c,y:d,placement:h,strategy:i,middlewareData:f}};async function Cf(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:a,rects:o,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:h=!1,padding:f=0}=$a(t,e),g=I1(f),b=s[h?d==="floating"?"reference":"floating":d],v=Al(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(b)))==null||n?b:b.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),y=d==="floating"?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,x=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),S=await(a.isElement==null?void 0:a.isElement(x))?await(a.getScale==null?void 0:a.getScale(x))||{x:1,y:1}:{x:1,y:1},D=Al(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:x,strategy:l}):y);return{top:(v.top-D.top+g.top)/S.y,bottom:(D.bottom-v.bottom+g.bottom)/S.y,left:(v.left-D.left+g.left)/S.x,right:(D.right-v.right+g.right)/S.x}}const K5=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:l}=t,{element:u,padding:c=0}=$a(e,t)||{};if(u==null)return{};const d=I1(c),h={x:n,y:r},f=xf(i),g=yf(f),p=await o.getDimensions(u),b=f==="y",v=b?"top":"left",y=b?"bottom":"right",x=b?"clientHeight":"clientWidth",S=a.reference[g]+a.reference[f]-h[f]-a.floating[g],D=h[f]-a.reference[f],$=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let F=$?$[x]:0;(!F||!await(o.isElement==null?void 0:o.isElement($)))&&(F=s.floating[x]||a.floating[g]);const m=S/2-D/2,C=F/2-p[g]/2-1,I=pa(d[v],C),E=pa(d[y],C),R=I,P=F-p[g]-E,A=F/2-p[g]/2+m,M=cd(R,A,P),k=!l.arrow&&Jn(i)!=null&&A!==M&&a.reference[g]/2-(A<R?I:E)-p[g]/2<0,T=k?A<R?A-R:A-P:0;return{[f]:h[f]+T,data:{[f]:M,centerOffset:A-M-T,...k&&{alignmentOffset:T}},reset:k}}});function q5(e,t,n){return(e?[...n.filter(i=>Jn(i)===e),...n.filter(i=>Jn(i)!==e)]:n.filter(i=>Sr(i)===i)).filter(i=>e?Jn(i)===e||(t?$l(i)!==i:!1):!0)}const Q5=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,i;const{rects:a,middlewareData:o,placement:s,platform:l,elements:u}=t,{crossAxis:c=!1,alignment:d,allowedPlacements:h=_g,autoAlignment:f=!0,...g}=$a(e,t),p=d!==void 0||h===_g?q5(d||null,f,h):h,b=await Cf(t,g),v=((n=o.autoPlacement)==null?void 0:n.index)||0,y=p[v];if(y==null)return{};const x=E1(y,a,await(l.isRTL==null?void 0:l.isRTL(u.floating)));if(s!==y)return{reset:{placement:p[0]}};const S=[b[Sr(y)],b[x[0]],b[x[1]]],D=[...((r=o.autoPlacement)==null?void 0:r.overflows)||[],{placement:y,overflows:S}],$=p[v+1];if($)return{data:{index:v+1,overflows:D},reset:{placement:$}};const F=D.map(I=>{const E=Jn(I.placement);return[I.placement,E&&c?I.overflows.slice(0,2).reduce((R,P)=>R+P,0):I.overflows[0],I.overflows]}).sort((I,E)=>I[1]-E[1]),C=((i=F.filter(I=>I[2].slice(0,Jn(I[0])?2:3).every(E=>E<=0))[0])==null?void 0:i[0])||F[0][0];return C!==s?{data:{index:v+1,overflows:D},reset:{placement:C}}:{}}}},eS=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:a,rects:o,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:p=!0,...b}=$a(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const v=Sr(i),y=ba(s),x=Sr(s)===s,S=await(l.isRTL==null?void 0:l.isRTL(u.floating)),D=h||(x||!p?[Rl(s)]:_5(s)),$=g!=="none";!h&&$&&D.push(...R5(s,p,g,S));const F=[s,...D],m=await Cf(t,b),C=[];let I=((r=a.flip)==null?void 0:r.overflows)||[];if(c&&C.push(m[v]),d){const A=E1(i,o,S);C.push(m[A[0]],m[A[1]])}if(I=[...I,{placement:i,overflows:C}],!C.every(A=>A<=0)){var E,R;const A=(((E=a.flip)==null?void 0:E.index)||0)+1,M=F[A];if(M)return{data:{index:A,overflows:I},reset:{placement:M}};let k=(R=I.filter(T=>T.overflows[0]<=0).sort((T,B)=>T.overflows[1]-B.overflows[1])[0])==null?void 0:R.placement;if(!k)switch(f){case"bestFit":{var P;const T=(P=I.filter(B=>{if($){const O=ba(B.placement);return O===y||O==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(O=>O>0).reduce((O,L)=>O+L,0)]).sort((B,O)=>B[1]-O[1])[0])==null?void 0:P[0];T&&(k=T);break}case"initialPlacement":k=s;break}if(i!==k)return{reset:{placement:k}}}return{}}}};async function tS(e,t){const{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Sr(n),s=Jn(n),l=ba(n)==="y",u=["left","top"].includes(o)?-1:1,c=a&&l?-1:1,d=$a(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 nS=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:a,placement:o,middlewareData:s}=t,l=await tS(t,e);return o===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:a+l.y,data:{...l,placement:o}}}}},rS=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:b=>{let{x:v,y}=b;return{x:v,y}}},...l}=$a(e,t),u={x:n,y:r},c=await Cf(t,l),d=ba(Sr(i)),h=S1(d);let f=u[h],g=u[d];if(a){const b=h==="y"?"top":"left",v=h==="y"?"bottom":"right",y=f+c[b],x=f-c[v];f=cd(y,f,x)}if(o){const b=d==="y"?"top":"left",v=d==="y"?"bottom":"right",y=g+c[b],x=g-c[v];g=cd(y,g,x)}const p=s.fn({...t,[h]:f,[d]:g});return{...p,data:{x:p.x-n,y:p.y-r}}}}};function F1(e){const t=dn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=xt(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=_l(n)!==a||_l(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function wf(e){return rt(e)?e:e.contextElement}function oa(e){const t=wf(e);if(!xt(t))return Gr(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=F1(t);let o=(a?_l(n.width):n.width)/r,s=(a?_l(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const iS=Gr(0);function T1(e){const t=on(e);return!vf()||!t.visualViewport?iS:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function aS(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==on(e)?!1:t}function _i(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=wf(e);let o=Gr(1);t&&(r?rt(r)&&(o=oa(r)):o=oa(e));const s=aS(a,n,r)?T1(a):Gr(0);let l=(i.left+s.x)/o.x,u=(i.top+s.y)/o.y,c=i.width/o.x,d=i.height/o.y;if(a){const h=on(a),f=r&&rt(r)?on(r):r;let g=h,p=g.frameElement;for(;p&&r&&f!==g;){const b=oa(p),v=p.getBoundingClientRect(),y=dn(p),x=v.left+(p.clientLeft+parseFloat(y.paddingLeft))*b.x,S=v.top+(p.clientTop+parseFloat(y.paddingTop))*b.y;l*=b.x,u*=b.y,c*=b.x,d*=b.y,l+=x,u+=S,g=on(p),p=g.frameElement}}return Al({width:c,height:d,x:l,y:u})}function oS(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const a=i==="fixed",o=Er(r),s=t?xu(t.floating):!1;if(r===o||s&&a)return n;let l={scrollLeft:0,scrollTop:0},u=Gr(1);const c=Gr(0),d=xt(r);if((d||!d&&!a)&&((Jr(r)!=="body"||ns(o))&&(l=Cu(r)),xt(r))){const h=_i(r);u=oa(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 sS(e){return Array.from(e.getClientRects())}function P1(e){return _i(Er(e)).left+Cu(e).scrollLeft}function lS(e){const t=Er(e),n=Cu(e),r=e.ownerDocument.body,i=Di(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Di(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+P1(e);const s=-n.scrollTop;return dn(r).direction==="rtl"&&(o+=Di(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}function uS(e,t){const n=on(e),r=Er(e),i=n.visualViewport;let a=r.clientWidth,o=r.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;const u=vf();(!u||u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:a,height:o,x:s,y:l}}function cS(e,t){const n=_i(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=xt(e)?oa(e):Gr(1),o=e.clientWidth*a.x,s=e.clientHeight*a.y,l=i*a.x,u=r*a.y;return{width:o,height:s,x:l,y:u}}function Ag(e,t,n){let r;if(t==="viewport")r=uS(e,n);else if(t==="document")r=lS(Er(e));else if(rt(t))r=cS(t,n);else{const i=T1(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return Al(r)}function k1(e,t){const n=Dr(e);return n===t||!rt(n)||zr(n)?!1:dn(n).position==="fixed"||k1(n,t)}function dS(e,t){const n=t.get(e);if(n)return n;let r=jr(e,[],!1).filter(s=>rt(s)&&Jr(s)!=="body"),i=null;const a=dn(e).position==="fixed";let o=a?Dr(e):e;for(;rt(o)&&!zr(o);){const s=dn(o),l=bf(o);!l&&s.position==="fixed"&&(i=null),(a?!l&&!i:!l&&s.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||ns(o)&&!l&&k1(e,o))?r=r.filter(c=>c!==o):i=s,o=Dr(o)}return t.set(e,r),r}function fS(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?xu(t)?[]:dS(t,this._c):[].concat(n),r],s=o[0],l=o.reduce((u,c)=>{const d=Ag(t,c,i);return u.top=Di(d.top,u.top),u.right=pa(d.right,u.right),u.bottom=pa(d.bottom,u.bottom),u.left=Di(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 hS(e){const{width:t,height:n}=F1(e);return{width:t,height:n}}function gS(e,t,n){const r=xt(t),i=Er(t),a=n==="fixed",o=_i(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=Gr(0);if(r||!r&&!a)if((Jr(t)!=="body"||ns(i))&&(s=Cu(t)),r){const d=_i(t,!0,a,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else i&&(l.x=P1(i));const u=o.left+s.scrollLeft-l.x,c=o.top+s.scrollTop-l.y;return{x:u,y:c,width:o.width,height:o.height}}function ic(e){return dn(e).position==="static"}function Fg(e,t){return!xt(e)||dn(e).position==="fixed"?null:t?t(e):e.offsetParent}function M1(e,t){const n=on(e);if(xu(e))return n;if(!xt(e)){let i=Dr(e);for(;i&&!zr(i);){if(rt(i)&&!ic(i))return i;i=Dr(i)}return n}let r=Fg(e,t);for(;r&&h5(r)&&ic(r);)r=Fg(r,t);return r&&zr(r)&&ic(r)&&!bf(r)?n:r||g5(e)||n}const mS=async function(e){const t=this.getOffsetParent||M1,n=this.getDimensions,r=await n(e.floating);return{reference:gS(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function pS(e){return dn(e).direction==="rtl"}const bS={convertOffsetParentRelativeRectToViewportRelativeRect:oS,getDocumentElement:Er,getClippingRect:fS,getOffsetParent:M1,getElementRects:mS,getClientRects:sS,getDimensions:hS,getScale:oa,isElement:rt,isRTL:pS};function vS(e,t){let n=null,r;const i=Er(e);function a(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function o(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),a();const{left:u,top:c,width:d,height:h}=e.getBoundingClientRect();if(s||t(),!d||!h)return;const f=Es(c),g=Es(i.clientWidth-(u+d)),p=Es(i.clientHeight-(c+h)),b=Es(u),y={rootMargin:-f+"px "+-g+"px "+-p+"px "+-b+"px",threshold:Di(0,pa(1,l))||1};let x=!0;function S(D){const $=D[0].intersectionRatio;if($!==l){if(!x)return o();$?o(!1,$):r=setTimeout(()=>{o(!1,1e-7)},1e3)}x=!1}try{n=new IntersectionObserver(S,{...y,root:i.ownerDocument})}catch{n=new IntersectionObserver(S,y)}n.observe(e)}return o(!0),a}function B1(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=wf(e),c=i||a?[...u?jr(u):[],...jr(t)]:[];c.forEach(v=>{i&&v.addEventListener("scroll",n,{passive:!0}),a&&v.addEventListener("resize",n)});const d=u&&s?vS(u,n):null;let h=-1,f=null;o&&(f=new ResizeObserver(v=>{let[y]=v;y&&y.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,p=l?_i(e):null;l&&b();function b(){const v=_i(e);p&&(v.x!==p.x||v.y!==p.y||v.width!==p.width||v.height!==p.height)&&n(),p=v,g=requestAnimationFrame(b)}return n(),()=>{var v;c.forEach(y=>{i&&y.removeEventListener("scroll",n),a&&y.removeEventListener("resize",n)}),d==null||d(),(v=f)==null||v.disconnect(),f=null,l&&cancelAnimationFrame(g)}}const yS=nS,xS=Q5,CS=rS,wS=eS,Tg=K5,DS=(e,t,n)=>{const r=new Map,i={platform:bS,...n},a={...i.platform,_c:r};return J5(e,t,{...i,platform:a})};var ll=typeof document<"u"?w.useLayoutEffect:w.useEffect;function kl(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(!kl(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 a=i[r];if(!(a==="_owner"&&e.$$typeof)&&!kl(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function O1(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Pg(e,t){const n=O1(e);return Math.round(t*n)/n}function kg(e){const t=W.useRef(e);return ll(()=>{t.current=e}),t}function SS(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[c,d]=W.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,f]=W.useState(r);kl(h,r)||f(r);const[g,p]=W.useState(null),[b,v]=W.useState(null),y=W.useCallback(T=>{T!==$.current&&($.current=T,p(T))},[]),x=W.useCallback(T=>{T!==F.current&&(F.current=T,v(T))},[]),S=a||g,D=o||b,$=W.useRef(null),F=W.useRef(null),m=W.useRef(c),C=l!=null,I=kg(l),E=kg(i),R=W.useCallback(()=>{if(!$.current||!F.current)return;const T={placement:t,strategy:n,middleware:h};E.current&&(T.platform=E.current),DS($.current,F.current,T).then(B=>{const O={...B,isPositioned:!0};P.current&&!kl(m.current,O)&&(m.current=O,t1.flushSync(()=>{d(O)}))})},[h,t,n,E]);ll(()=>{u===!1&&m.current.isPositioned&&(m.current.isPositioned=!1,d(T=>({...T,isPositioned:!1})))},[u]);const P=W.useRef(!1);ll(()=>(P.current=!0,()=>{P.current=!1}),[]),ll(()=>{if(S&&($.current=S),D&&(F.current=D),S&&D){if(I.current)return I.current(S,D,R);R()}},[S,D,R,I,C]);const A=W.useMemo(()=>({reference:$,floating:F,setReference:y,setFloating:x}),[y,x]),M=W.useMemo(()=>({reference:S,floating:D}),[S,D]),k=W.useMemo(()=>{const T={position:n,left:0,top:0};if(!M.floating)return T;const B=Pg(M.floating,c.x),O=Pg(M.floating,c.y);return s?{...T,transform:"translate("+B+"px, "+O+"px)",...O1(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:B,top:O}},[n,s,M.floating,c.x,c.y]);return W.useMemo(()=>({...c,update:R,refs:A,elements:M,floatingStyles:k}),[c,R,A,M,k])}const ES=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?Tg({element:r.current,padding:i}).fn(n):{}:r?Tg({element:r,padding:i}).fn(n):{}}}},IS=(e,t)=>({...yS(e),options:[e,t]}),_S=(e,t)=>({...CS(e),options:[e,t]}),$S=(e,t)=>({...wS(e),options:[e,t]}),RS=(e,t)=>({...xS(e),options:[e,t]}),AS=(e,t)=>({...ES(e),options:[e,t]}),N1={...W},FS=N1.useInsertionEffect,TS=FS||(e=>e());function Br(e){const t=W.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return TS(()=>{t.current=e}),W.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 ri(e,t){t===void 0&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:i=!1}=t;r&&cancelAnimationFrame(Mg);const a=()=>e==null?void 0:e.focus({preventScroll:n});i?a():Mg=requestAnimationFrame(a)}var Nt=typeof document<"u"?w.useLayoutEffect:w.useEffect;function Co(){return Co=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},Co.apply(this,arguments)}let Bg=!1,PS=0;const Og=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+PS++;function kS(){const[e,t]=W.useState(()=>Bg?Og():void 0);return Nt(()=>{e==null&&t(Og())},[]),W.useEffect(()=>{Bg=!0},[]),e}const MS=N1.useId,Du=MS||kS;let wo;process.env.NODE_ENV!=="production"&&(wo=new Set);function BS(){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=wo)!=null&&e.has(i))){var a;(a=wo)==null||a.add(i),console.warn(i)}}function OS(){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=wo)!=null&&e.has(i))){var a;(a=wo)==null||a.add(i),console.error(i)}}const NS=W.forwardRef(function(t,n){const{context:{placement:r,elements:{floating:i},middlewareData:{arrow:a}},width:o=14,height:s=7,tipRadius:l=0,strokeWidth:u=0,staticOffset:c,stroke:d,d:h,style:{transform:f,...g}={},...p}=t;process.env.NODE_ENV!=="production"&&(n||BS("The `ref` prop is required for `FloatingArrow`."));const b=Du(),[v,y]=W.useState(!1);if(Nt(()=>{if(!i)return;dn(i).direction==="rtl"&&y(!0)},[i]),!i)return null;const x=u*2,S=x/2,D=o/2*(l/-8+1),$=s/2*l/4,[F,m]=r.split("-"),C=!!h,I=F==="top"||F==="bottom",E=c&&m==="end"?"bottom":"top";let R=c&&m==="end"?"right":"left";c&&v&&(R=m==="end"?"left":"right");const P=(a==null?void 0:a.x)!=null?c||a.x:"",A=(a==null?void 0:a.y)!=null?c||a.y:"",M=h||"M0,0"+(" H"+o)+(" L"+(o-D)+","+(s-$))+(" Q"+o/2+","+s+" "+D+","+(s-$))+" Z",k={top:C?"rotate(180deg)":"",left:C?"rotate(90deg)":"rotate(-90deg)",bottom:C?"":"rotate(180deg)",right:C?"rotate(-90deg)":"rotate(90deg)"}[F];return W.createElement("svg",Co({},p,{"aria-hidden":!0,ref:n,width:C?o:o+x,height:o,viewBox:"0 0 "+o+" "+(s>o?s:o),style:{position:"absolute",pointerEvents:"none",[R]:P,[E]:A,[F]:I||C?"100%":"calc(100% - "+x/2+"px)",transform:""+k+(f??""),...g}}),x>0&&W.createElement("path",{clipPath:"url(#"+b+")",fill:"none",stroke:d,strokeWidth:x+(h?0:1),d:M}),W.createElement("path",{stroke:x&&!h?p.fill:"none",d:M}),W.createElement("clipPath",{id:b},W.createElement("rect",{x:-S,y:S*(C?-1:1),width:o+x,height:o})))});function VS(){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 LS=W.createContext(null),HS=W.createContext(null),V1=()=>{var e;return((e=W.useContext(LS))==null?void 0:e.id)||null},Df=()=>W.useContext(HS);function Do(e){return"data-floating-ui-"+e}function pi(e){const t=w.useRef(e);return Nt(()=>{t.current=e}),t}function jS(e,t){var n;let r=[],i=(n=e.find(a=>a.id===t))==null?void 0:n.parentId;for(;i;){const a=e.find(o=>o.id===i);i=a==null?void 0:a.parentId,a&&(r=r.concat(a))}return r}function io(e,t){let n=e.filter(i=>{var a;return i.parentId===t&&((a=i.context)==null?void 0:a.open)}),r=n;for(;r.length;)r=e.filter(i=>{var a;return(a=r)==null?void 0:a.some(o=>{var s;return i.parentId===o.id&&((s=i.context)==null?void 0:s.open)})}),n=n.concat(r);return n}let Wi=new WeakMap,Is=new WeakSet,_s={},ac=0;const WS=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,L1=e=>e&&(e.host||L1(e.parentNode)),zS=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=L1(n);return e.contains(r)?r:null}).filter(n=>n!=null);function GS(e,t,n,r){const i="data-floating-ui-inert",a=r?"inert":n?"aria-hidden":null,o=zS(t,e),s=new Set,l=new Set(o),u=[];_s[i]||(_s[i]=new WeakMap);const c=_s[i];o.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(Jr(g)!=="script")if(s.has(g))h(g);else{const p=a?g.getAttribute(a):null,b=p!==null&&p!=="false",v=(Wi.get(g)||0)+1,y=(c.get(g)||0)+1;Wi.set(g,v),c.set(g,y),u.push(g),v===1&&b&&Is.add(g),y===1&&g.setAttribute(i,""),!b&&a&&g.setAttribute(a,"true")}})}return ac++,()=>{u.forEach(f=>{const g=(Wi.get(f)||0)-1,p=(c.get(f)||0)-1;Wi.set(f,g),c.set(f,p),g||(!Is.has(f)&&a&&f.removeAttribute(a),Is.delete(f)),p||f.removeAttribute(i)}),ac--,ac||(Wi=new WeakMap,Wi=new WeakMap,Is=new WeakSet,_s={})}}function Ng(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=$n(e[0]).body;return GS(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const So=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function H1(e,t){const n=wu(e,So());t==="prev"&&n.reverse();const r=n.indexOf(ui($n(e)));return n.slice(r+1)[0]}function j1(){return H1(document.body,"next")}function W1(){return H1(document.body,"prev")}function ao(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!nn(n,r)}function XS(e){wu(e,So()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function ZS(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 Sf={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 YS;function Vg(e){e.key==="Tab"&&(e.target,clearTimeout(YS))}const Ml=W.forwardRef(function(t,n){const[r,i]=W.useState();Nt(()=>(v5()&&i("button"),document.addEventListener("keydown",Vg),()=>{document.removeEventListener("keydown",Vg)}),[]);const a={ref:n,tabIndex:0,role:r,"aria-hidden":r?void 0:!0,[Do("focus-guard")]:"",style:Sf};return W.createElement("span",Co({},t,a))}),z1=W.createContext(null),Lg=Do("portal");function US(e){e===void 0&&(e={});const{id:t,root:n}=e,r=Du(),i=G1(),[a,o]=W.useState(null),s=W.useRef(null);return Nt(()=>()=>{a==null||a.remove(),queueMicrotask(()=>{s.current=null})},[a]),Nt(()=>{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,o(u)},[t,r]),Nt(()=>{if(!r||s.current)return;let l=n||(i==null?void 0:i.portalNode);l&&!rt(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,o(c)},[t,n,r,i]),a}function JS(e){const{children:t,id:n,root:r=null,preserveTabOrder:i=!0}=e,a=US({id:n,root:r}),[o,s]=W.useState(null),l=W.useRef(null),u=W.useRef(null),c=W.useRef(null),d=W.useRef(null),h=!!o&&!o.modal&&o.open&&i&&!!(r||a);return W.useEffect(()=>{if(!a||!i||o!=null&&o.modal)return;function f(g){a&&ao(g)&&(g.type==="focusin"?ZS:XS)(a)}return a.addEventListener("focusin",f,!0),a.addEventListener("focusout",f,!0),()=>{a.removeEventListener("focusin",f,!0),a.removeEventListener("focusout",f,!0)}},[a,i,o==null?void 0:o.modal]),W.createElement(z1.Provider,{value:W.useMemo(()=>({preserveTabOrder:i,beforeOutsideRef:l,afterOutsideRef:u,beforeInsideRef:c,afterInsideRef:d,portalNode:a,setFocusManagerState:s}),[i,a])},h&&a&&W.createElement(Ml,{"data-type":"outside",ref:l,onFocus:f=>{if(ao(f,a)){var g;(g=c.current)==null||g.focus()}else{const p=W1()||(o==null?void 0:o.refs.domReference.current);p==null||p.focus()}}}),h&&a&&W.createElement("span",{"aria-owns":a.id,style:Sf}),a&&t1.createPortal(t,a),h&&a&&W.createElement(Ml,{"data-type":"outside",ref:u,onFocus:f=>{if(ao(f,a)){var g;(g=d.current)==null||g.focus()}else{const p=j1()||(o==null?void 0:o.refs.domReference.current);p==null||p.focus(),o!=null&&o.closeOnFocusOut&&(o==null||o.onOpenChange(!1,f.nativeEvent))}}}))}const G1=()=>W.useContext(z1),KS=20;let ci=[];function oc(e){ci=ci.filter(n=>n.isConnected);let t=e;if(!(!t||Jr(t)==="body")){if(!U5(t,So())){const n=wu(t,So())[0];n&&(t=n)}ci.push(t),ci.length>KS&&(ci=ci.slice(-20))}}function Hg(){return ci.slice().reverse().find(e=>e.isConnected)}const qS=W.forwardRef(function(t,n){return W.createElement("button",Co({},t,{type:"button",ref:n,tabIndex:-1,style:Sf}))});function QS(e){const{context:t,children:n,disabled:r=!1,order:i=["content"],guards:a=!0,initialFocus:o=0,returnFocus:s=!0,restoreFocus:l=!1,modal:u=!0,visuallyHiddenDismiss:c=!1,closeOnFocusOut:d=!0}=e,{open:h,refs:f,nodeId:g,onOpenChange:p,events:b,dataRef:v,floatingId:y,elements:{domReference:x,floating:S}}=t,D=typeof o=="number"&&o<0,$=D5(x)&&D,F=WS()?a:!0,m=pi(i),C=pi(o),I=pi(s),E=Df(),R=G1(),P=W.useRef(null),A=W.useRef(null),M=W.useRef(!1),k=W.useRef(!1),T=W.useRef(-1),B=R!=null,O=S==null?void 0:S.firstElementChild,L=(O==null?void 0:O.id)===y?O:S,j=Br(function(H){return H===void 0&&(H=L),H?wu(H,So()):[]}),z=Br(H=>{const V=j(H);return m.current.map(X=>x&&X==="reference"?x:L&&X==="floating"?L:V).filter(Boolean).flat()});W.useEffect(()=>{if(r||!u)return;function H(X){if(X.key==="Tab"){nn(L,ui($n(L)))&&j().length===0&&!$&&rc(X);const K=z(),te=hi(X);m.current[0]==="reference"&&te===x&&(rc(X),X.shiftKey?ri(K[K.length-1]):ri(K[1])),m.current[1]==="floating"&&te===L&&X.shiftKey&&(rc(X),ri(K[0]))}}const V=$n(L);return V.addEventListener("keydown",H),()=>{V.removeEventListener("keydown",H)}},[r,x,L,u,m,$,j,z]),W.useEffect(()=>{if(r||!S)return;function H(V){const X=hi(V),te=j().indexOf(X);te!==-1&&(T.current=te)}return S.addEventListener("focusin",H),()=>{S.removeEventListener("focusin",H)}},[r,S,j]),W.useEffect(()=>{if(r||!d)return;function H(){k.current=!0,setTimeout(()=>{k.current=!1})}function V(X){const K=X.relatedTarget;queueMicrotask(()=>{const te=!(nn(x,K)||nn(S,K)||nn(K,S)||nn(R==null?void 0:R.portalNode,K)||K!=null&&K.hasAttribute(Do("focus-guard"))||E&&(io(E.nodesRef.current,g).find(ue=>{var ie,Z;return nn((ie=ue.context)==null?void 0:ie.elements.floating,K)||nn((Z=ue.context)==null?void 0:Z.elements.domReference,K)})||jS(E.nodesRef.current,g).find(ue=>{var ie,Z;return((ie=ue.context)==null?void 0:ie.elements.floating)===K||((Z=ue.context)==null?void 0:Z.elements.domReference)===K})));if(l&&te&&ui($n(L))===$n(L).body){xt(L)&&(L==null||L.focus());const ue=T.current,ie=j(),Z=ie[ue]||ie[ie.length-1]||L;xt(Z)&&Z.focus()}($||!u)&&K&&te&&!k.current&&K!==Hg()&&(M.current=!0,p(!1,X))})}if(S&&xt(x))return x.addEventListener("focusout",V),x.addEventListener("pointerdown",H),S.addEventListener("focusout",V),()=>{x.removeEventListener("focusout",V),x.removeEventListener("pointerdown",H),S.removeEventListener("focusout",V)}},[r,x,S,L,u,g,E,R,p,d,l,j,$]),W.useEffect(()=>{var H;if(r)return;const V=Array.from((R==null||(H=R.portalNode)==null?void 0:H.querySelectorAll("["+Do("portal")+"]"))||[]);if(S){const X=[S,...V,P.current,A.current,m.current.includes("reference")||$?x:null].filter(te=>te!=null),K=u||$?Ng(X,F,!F):Ng(X);return()=>{K()}}},[r,x,S,u,m,R,$,F]),Nt(()=>{if(r||!xt(L))return;const H=$n(L),V=ui(H);queueMicrotask(()=>{const X=z(L),K=C.current,te=(typeof K=="number"?X[K]:K.current)||L,ue=nn(L,V);!D&&!ue&&h&&ri(te,{preventScroll:te===L})})},[r,h,L,D,z,C]),Nt(()=>{if(r||!L)return;let H=!1;const V=$n(L),X=ui(V);let te=v.current.openEvent;oc(X);function ue(ie){let{open:Z,reason:me,event:he,nested:ce}=ie;Z&&(te=he),me==="escape-key"&&f.domReference.current&&oc(f.domReference.current),me==="hover"&&he.type==="mouseleave"&&(M.current=!0),me==="outside-press"&&(ce?(M.current=!1,H=!0):M.current=!(p5(he)||b5(he)))}return b.on("openchange",ue),()=>{b.off("openchange",ue);const ie=ui(V),Z=nn(S,ie)||E&&io(E.nodesRef.current,g).some(ce=>{var qe;return nn((qe=ce.context)==null?void 0:qe.elements.floating,ie)});(Z||te&&["click","mousedown"].includes(te.type))&&f.domReference.current&&oc(f.domReference.current);const he=Hg();I.current&&!M.current&&xt(he)&&(!(he!==ie&&ie!==V.body)||Z)&&ri(he,{cancelPrevious:!1,preventScroll:H})}},[r,S,L,I,v,f,b,E,g]),Nt(()=>{if(!r&&R)return R.setFocusManagerState({modal:u,closeOnFocusOut:d,open:h,onOpenChange:p,refs:f}),()=>{R.setFocusManagerState(null)}},[r,R,u,h,p,f,d]),Nt(()=>{if(r||!L||typeof MutationObserver!="function"||D)return;const H=()=>{const X=L.getAttribute("tabindex"),K=j(),te=ui($n(S)),ue=K.indexOf(te);ue!==-1&&(T.current=ue),m.current.includes("floating")||te!==f.domReference.current&&K.length===0?X!=="0"&&L.setAttribute("tabindex","0"):X!=="-1"&&L.setAttribute("tabindex","-1")};H();const V=new MutationObserver(H);return V.observe(L,{childList:!0,subtree:!0,attributes:!0}),()=>{V.disconnect()}},[r,S,L,f,m,j,D]);function Y(H){return r||!c||!u?null:W.createElement(qS,{ref:H==="start"?P:A,onClick:V=>p(!1,V.nativeEvent)},typeof c=="string"?c:"Dismiss")}const G=!r&&F&&(u?!$:!0)&&(B||u);return W.createElement(W.Fragment,null,G&&W.createElement(Ml,{"data-type":"inside",ref:R==null?void 0:R.beforeInsideRef,onFocus:H=>{if(u){const X=z();ri(i[0]==="reference"?X[0]:X[X.length-1])}else if(R!=null&&R.preserveTabOrder&&R.portalNode)if(M.current=!1,ao(H,R.portalNode)){const X=j1()||x;X==null||X.focus()}else{var V;(V=R.beforeOutsideRef.current)==null||V.focus()}}}),!$&&Y("start"),n,Y("end"),G&&W.createElement(Ml,{"data-type":"inside",ref:R==null?void 0:R.afterInsideRef,onFocus:H=>{if(u)ri(z()[0]);else if(R!=null&&R.preserveTabOrder&&R.portalNode)if(d&&(M.current=!0),ao(H,R.portalNode)){const X=W1()||x;X==null||X.focus()}else{var V;(V=R.afterOutsideRef.current)==null||V.focus()}}}))}function jg(e){return xt(e.target)&&e.target.tagName==="BUTTON"}function Wg(e){return D1(e)}function eE(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,elements:{domReference:a}}=e,{enabled:o=!0,event:s="click",toggle:l=!0,ignoreMouse:u=!1,keyboardHandlers:c=!0}=t,d=W.useRef(),h=W.useRef(!1),f=W.useMemo(()=>({onPointerDown(g){d.current=g.pointerType},onMouseDown(g){const p=d.current;g.button===0&&s!=="click"&&(Eg(p)&&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 p=d.current;if(s==="mousedown"&&d.current){d.current=void 0;return}Eg(p)&&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(a)&&(g.preventDefault(),h.current=!0),g.key==="Enter"&&r(!(n&&l),g.nativeEvent,"click"))},onKeyUp(g){g.defaultPrevented||!c||jg(g)||Wg(a)||g.key===" "&&h.current&&(h.current=!1,r(!(n&&l),g.nativeEvent,"click"))}}),[i,a,s,u,c,r,n,l]);return W.useMemo(()=>o?{reference:f}:{},[o,f])}const tE={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},nE={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 rE(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:i,dataRef:a}=e,{enabled:o=!0,escapeKey:s=!0,outsidePress:l=!0,outsidePressEvent:u="pointerdown",referencePress:c=!1,referencePressEvent:d="pointerdown",ancestorScroll:h=!1,bubbles:f,capture:g}=t,p=Df(),b=Br(typeof l=="function"?l:()=>!1),v=typeof l=="function"?b:l,y=W.useRef(!1),x=W.useRef(!1),{escapeKey:S,outsidePress:D}=zg(f),{escapeKey:$,outsidePress:F}=zg(g),m=Br(A=>{var M;if(!n||!o||!s||A.key!=="Escape")return;const k=(M=a.current.floatingContext)==null?void 0:M.nodeId,T=p?io(p.nodesRef.current,k):[];if(!S&&(A.stopPropagation(),T.length>0)){let B=!0;if(T.forEach(O=>{var L;if((L=O.context)!=null&&L.open&&!O.context.dataRef.current.__escapeKeyBubbles){B=!1;return}}),!B)return}r(!1,x5(A)?A.nativeEvent:A,"escape-key")}),C=Br(A=>{var M;const k=()=>{var T;m(A),(T=hi(A))==null||T.removeEventListener("keydown",k)};(M=hi(A))==null||M.addEventListener("keydown",k)}),I=Br(A=>{var M;const k=y.current;y.current=!1;const T=x.current;if(x.current=!1,u==="click"&&T||k||typeof v=="function"&&!v(A))return;const B=hi(A),O="["+Do("inert")+"]",L=$n(i.floating).querySelectorAll(O);let j=rt(B)?B:null;for(;j&&!zr(j);){const H=Dr(j);if(zr(H)||!rt(H))break;j=H}if(L.length&&rt(B)&&!C5(B)&&!nn(B,i.floating)&&Array.from(L).every(H=>!nn(j,H)))return;if(xt(B)&&P){const H=B.clientWidth>0&&B.scrollWidth>B.clientWidth,V=B.clientHeight>0&&B.scrollHeight>B.clientHeight;let X=V&&A.offsetX>B.clientWidth;if(V&&dn(B).direction==="rtl"&&(X=A.offsetX<=B.offsetWidth-B.clientWidth),X||H&&A.offsetY>B.clientHeight)return}const z=(M=a.current.floatingContext)==null?void 0:M.nodeId,Y=p&&io(p.nodesRef.current,z).some(H=>{var V;return nc(A,(V=H.context)==null?void 0:V.elements.floating)});if(nc(A,i.floating)||nc(A,i.domReference)||Y)return;const G=p?io(p.nodesRef.current,z):[];if(G.length>0){let H=!0;if(G.forEach(V=>{var X;if((X=V.context)!=null&&X.open&&!V.context.dataRef.current.__outsidePressBubbles){H=!1;return}}),!H)return}r(!1,A,"outside-press")}),E=Br(A=>{var M;const k=()=>{var T;I(A),(T=hi(A))==null||T.removeEventListener(u,k)};(M=hi(A))==null||M.addEventListener(u,k)});W.useEffect(()=>{if(!n||!o)return;a.current.__escapeKeyBubbles=S,a.current.__outsidePressBubbles=D;function A(T){r(!1,T,"ancestor-scroll")}const M=$n(i.floating);s&&M.addEventListener("keydown",$?C:m,$),v&&M.addEventListener(u,F?E:I,F);let k=[];return h&&(rt(i.domReference)&&(k=jr(i.domReference)),rt(i.floating)&&(k=k.concat(jr(i.floating))),!rt(i.reference)&&i.reference&&i.reference.contextElement&&(k=k.concat(jr(i.reference.contextElement)))),k=k.filter(T=>{var B;return T!==((B=M.defaultView)==null?void 0:B.visualViewport)}),k.forEach(T=>{T.addEventListener("scroll",A,{passive:!0})}),()=>{s&&M.removeEventListener("keydown",$?C:m,$),v&&M.removeEventListener(u,F?E:I,F),k.forEach(T=>{T.removeEventListener("scroll",A)})}},[a,i,s,v,u,n,r,h,o,S,D,m,$,C,I,F,E]),W.useEffect(()=>{y.current=!1},[v,u]);const R=W.useMemo(()=>({onKeyDown:m,[tE[d]]:A=>{c&&r(!1,A.nativeEvent,"reference-press")}}),[m,r,c,d]),P=W.useMemo(()=>({onKeyDown:m,onMouseDown(){x.current=!0},onMouseUp(){x.current=!0},[nE[u]]:()=>{y.current=!0}}),[m,u]);return W.useMemo(()=>o?{reference:R,floating:P}:{},[o,R,P])}function iE(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=Du(),a=W.useRef({}),[o]=W.useState(()=>VS()),s=V1()!=null;if(process.env.NODE_ENV!=="production"){const f=r.reference;f&&!rt(f)&&OS("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]=W.useState(r.reference),c=Br((f,g,p)=>{a.current.openEvent=f?g:void 0,o.emit("openchange",{open:f,event:g,reason:p,nested:s}),n==null||n(f,g,p)}),d=W.useMemo(()=>({setPositionReference:u}),[]),h=W.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return W.useMemo(()=>({dataRef:a,open:t,onOpenChange:c,elements:h,events:o,floatingId:i,refs:d}),[t,c,h,o,i,d])}function aE(e){e===void 0&&(e={});const{nodeId:t}=e,n=iE({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[a,o]=W.useState(null),[s,l]=W.useState(null),c=(i==null?void 0:i.reference)||a,d=W.useRef(null),h=Df();Nt(()=>{c&&(d.current=c)},[c]);const f=SS({...e,elements:{...i,...s&&{reference:s}}}),g=W.useCallback(x=>{const S=rt(x)?{getBoundingClientRect:()=>x.getBoundingClientRect(),contextElement:x}:x;l(S),f.refs.setReference(S)},[f.refs]),p=W.useCallback(x=>{(rt(x)||x===null)&&(d.current=x,o(x)),(rt(f.refs.reference.current)||f.refs.reference.current===null||x!==null&&!rt(x))&&f.refs.setReference(x)},[f.refs]),b=W.useMemo(()=>({...f.refs,setReference:p,setPositionReference:g,domReference:d}),[f.refs,p,g]),v=W.useMemo(()=>({...f.elements,domReference:c}),[f.elements,c]),y=W.useMemo(()=>({...f,...r,refs:b,elements:v,nodeId:t}),[f,b,v,t,r]);return Nt(()=>{r.dataRef.current.floatingContext=y;const x=h==null?void 0:h.nodesRef.current.find(S=>S.id===t);x&&(x.context=y)}),W.useMemo(()=>({...f,context:y,refs:b,elements:v}),[f,b,v,y])}const Gg="active",Xg="selected";function sc(e,t,n){const r=new Map,i=n==="item";let a=e;if(i&&e){const{[Gg]:o,[Xg]:s,...l}=e;a=l}return{...n==="floating"&&{tabIndex:-1},...a,...t.map(o=>{const s=o?o[n]:null;return typeof s=="function"?e?s(e):null:s}).concat(e).reduce((o,s)=>(s&&Object.entries(s).forEach(l=>{let[u,c]=l;if(!(i&&[Gg,Xg].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),o[u]=function(){for(var h,f=arguments.length,g=new Array(f),p=0;p<f;p++)g[p]=arguments[p];return(h=r.get(u))==null?void 0:h.map(b=>b(...g)).find(b=>b!==void 0)}}}else o[u]=c}),o),{})}}function oE(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=W.useCallback(s=>sc(s,e,"reference"),t),a=W.useCallback(s=>sc(s,e,"floating"),n),o=W.useCallback(s=>sc(s,e,"item"),r);return W.useMemo(()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:o}),[i,a,o])}const sE=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function lE(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:i}=e,{enabled:a=!0,role:o="dialog"}=t,s=(n=sE.get(o))!=null?n:o,l=Du(),c=V1()!=null,d=W.useMemo(()=>s==="tooltip"||o==="label"?{["aria-"+(o==="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"},...o==="select"&&{"aria-autocomplete":"none"},...o==="combobox"&&{"aria-autocomplete":"list"}},[s,i,c,r,l,o]),h=W.useMemo(()=>{const g={id:i,...s&&{role:s}};return s==="tooltip"||o==="label"?g:{...g,...s==="menu"&&{"aria-labelledby":l}}},[s,i,l,o]),f=W.useCallback(g=>{let{active:p,selected:b}=g;const v={role:"option",...p&&{id:i+"-option"}};switch(o){case"select":return{...v,"aria-selected":p&&b};case"combobox":return{...v,...p&&{"aria-selected":!0}}}return{}},[i,o]);return W.useMemo(()=>a?{reference:d,floating:h,item:f}:{},[a,d,h,f])}const Zg=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,n)=>(n?"-":"")+t.toLowerCase());function zi(e,t){return typeof e=="function"?e(t):e}function uE(e,t){const[n,r]=W.useState(e);return e&&!n&&r(!0),W.useEffect(()=>{if(!e&&n){const i=setTimeout(()=>r(!1),t);return()=>clearTimeout(i)}},[e,n,t]),n}function cE(e,t){t===void 0&&(t={});const{open:n,elements:{floating:r}}=e,{duration:i=250}=t,o=(typeof i=="number"?i:i.close)||0,[s,l]=W.useState("unmounted"),u=uE(n,o);return!u&&s==="close"&&l("unmounted"),Nt(()=>{if(r){if(n){l("initial");const c=requestAnimationFrame(()=>{l("open")});return()=>{cancelAnimationFrame(c)}}l("close")}},[n,r]),{isMounted:u,status:s}}function dE(e,t){t===void 0&&(t={});const{initial:n={opacity:0},open:r,close:i,common:a,duration:o=250}=t,s=e.placement,l=s.split("-")[0],u=W.useMemo(()=>({side:l,placement:s}),[l,s]),c=typeof o=="number",d=(c?o:o.open)||0,h=(c?o:o.close)||0,[f,g]=W.useState(()=>({...zi(a,u),...zi(n,u)})),{isMounted:p,status:b}=cE(e,{duration:o}),v=pi(n),y=pi(r),x=pi(i),S=pi(a);return Nt(()=>{const D=zi(v.current,u),$=zi(x.current,u),F=zi(S.current,u),m=zi(y.current,u)||Object.keys(D).reduce((C,I)=>(C[I]="",C),{});if(b==="initial"&&g(C=>({transitionProperty:C.transitionProperty,...F,...D})),b==="open"&&g({transitionProperty:Object.keys(m).map(Zg).join(","),transitionDuration:d+"ms",...F,...m}),b==="close"){const C=$||D;g({transitionProperty:Object.keys(C).map(Zg).join(","),transitionDuration:h+"ms",...F,...C})}},[h,x,v,y,S,d,b,u]),{isMounted:p,styles:f}}const fE="_popover_7cinv_1",hE={popover:fE},Ir=w.forwardRef((e,t)=>{const{children:n,className:r,offset:i=10,isShow:a,anchorEl:o,useAutoPlacement:s=!1,flipOptions:l,autoPlacementOptions:u,zIndex:c=10,width:d,styleInnerPopover:h={},floatingOptions:f={},onClose:g=()=>{},withArrow:p,propsArrow:b={},...v}=e,y=w.useRef(null),[x,S]=w.useState(!1),{refs:D,floatingStyles:$,context:F}=aE({open:x,onOpenChange:T=>{S(T),T||g()},middleware:[IS(i),s?RS(u):$S(l),_S(),AS({element:y})],whileElementsMounted:B1,...f}),m=eE(F),C=rE(F),I=lE(F),{getReferenceProps:E,getFloatingProps:R}=oE([m,C,I]),{styles:P,isMounted:A}=dE(F),M=T=>{D.setReference(T.currentTarget),S(B=>!B),x&&g()};w.useEffect(()=>{a&&o?M({currentTarget:o}):a||S(!1)},[a,o]),w.useImperativeHandle(t,()=>({show:x,setShow:S,handlerShow:M,getReferenceProps:E}),[x]);const k=()=>{let T={...$,...P,...h,zIndex:c};return d&&(T={...T,width:d}),T};return _.jsx(_.Fragment,{children:A&&x&&_.jsx(JS,{children:_.jsx(QS,{context:F,modal:!1,children:_.jsxs("div",{ref:D.setFloating,style:k(),...R(),className:`${hE.popover} ${r??""}`,...v,children:[n,p&&_.jsx(NS,{ref:y,context:F,...b})]})})})})});Ir.displayName="Popover";const gE="_input_192cn_7",mE="_label_192cn_36",pE="_error_192cn_43",Gt={"container-large":"_container-large_192cn_1","container-input":"_container-input_192cn_4",input:gE,label:mE,error:pE,"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"},X1=w.forwardRef((e,t)=>{var x;const{isRequired:n,classNameContainer:r,classNameLabelError:i,classNameLabel:a,className:o,name:s,id:l,label:u,type:c="text",startIcon:d,endIcon:h,error:f,sizeInput:g="large",...p}=e,b={size:{large:Gt["container-large"],medium:Gt["container-medium"],small:Gt["container-small"]}},v=()=>typeof d=="function"||w.isValidElement(d),y=()=>typeof h=="function"||w.isValidElement(h);return _.jsxs("div",{className:`${Gt.container} ${(x=b.size)==null?void 0:x[g]} ${r??""}`,children:[_.jsxs("div",{className:Gt["container-input"],children:[_.jsx("input",{id:l??s,className:`${Gt.input} ${f?Gt.error:""}
45
+ */var F5=["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])"],Fl=F5.join(","),_1=typeof Element>"u",ya=_1?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Tl=!_1&&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},Pl=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"),a=i===""||i==="true",o=a||n&&t&&e(t.parentNode);return o},T5=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},P5=function(t,n,r){if(Pl(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(Fl));return n&&ya.call(t,Fl)&&i.unshift(t),i=i.filter(r),i},k5=function e(t,n,r){for(var i=[],a=Array.from(t);a.length;){var o=a.shift();if(!Pl(o,!1))if(o.tagName==="SLOT"){var s=o.assignedElements(),l=s.length?s:o.children,u=e(l,!0,r);r.flatten?i.push.apply(i,u):i.push({scopeParent:o,candidates:u})}else{var c=ya.call(o,Fl);c&&r.filter(o)&&(n||!t.includes(o))&&i.push(o);var d=o.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(o),h=!Pl(d,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(o));if(d&&h){var f=e(d===!0?o.children:d.children,!0,r);r.flatten?i.push.apply(i,f):i.push({scopeParent:o,candidates:f})}else a.unshift.apply(a,o.children)}}return i},$1=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},R1=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||T5(t))&&!$1(t)?0:t.tabIndex},M5=function(t,n){var r=R1(t);return r<0&&n&&!$1(t)?0:r},B5=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},A1=function(t){return t.tagName==="INPUT"},O5=function(t){return A1(t)&&t.type==="hidden"},N5=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},V5=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},L5=function(t){if(!t.name)return!0;var n=t.form||Tl(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(o){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",o.message),!1}var a=V5(i,t.form);return!a||a===t},H5=function(t){return A1(t)&&t.type==="radio"},j5=function(t){return H5(t)&&!L5(t)},W5=function(t){var n,r=t&&Tl(t),i=(n=r)===null||n===void 0?void 0:n.host,a=!1;if(r&&r!==t){var o,s,l;for(a=!!((o=i)!==null&&o!==void 0&&(s=o.ownerDocument)!==null&&s!==void 0&&s.contains(i)||t!=null&&(l=t.ownerDocument)!==null&&l!==void 0&&l.contains(t));!a&&i;){var u,c,d;r=Tl(i),i=(u=r)===null||u===void 0?void 0:u.host,a=!!((c=i)!==null&&c!==void 0&&(d=c.ownerDocument)!==null&&d!==void 0&&d.contains(i))}}return a},$g=function(t){var n=t.getBoundingClientRect(),r=n.width,i=n.height;return r===0&&i===0},z5=function(t,n){var r=n.displayCheck,i=n.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var a=ya.call(t,"details>summary:first-of-type"),o=a?t.parentElement:t;if(ya.call(o,"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=Tl(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(W5(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return $g(t);return!1},G5=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 ya.call(n,"fieldset[disabled] *")?!0:!i.contains(t)}return!0}n=n.parentElement}return!1},X5=function(t,n){return!(n.disabled||Pl(n)||O5(n)||z5(n,t)||N5(n)||G5(n))},dd=function(t,n){return!(j5(n)||R1(n)<0||!X5(t,n))},Z5=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},Y5=function e(t){var n=[],r=[];return t.forEach(function(i,a){var o=!!i.scopeParent,s=o?i.scopeParent:i,l=M5(s,o),u=o?e(i.candidates):s;l===0?o?n.push.apply(n,u):n.push(s):r.push({documentOrder:a,tabIndex:l,item:i,isScope:o,content:u})}),r.sort(B5).reduce(function(i,a){return a.isScope?i.push.apply(i,a.content):i.push(a.content),i},[]).concat(n)},wu=function(t,n){n=n||{};var r;return n.getShadowRoot?r=k5([t],n.includeContainer,{filter:dd.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:Z5}):r=P5(t,n.includeContainer,dd.bind(null,n)),Y5(r)},U5=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return ya.call(t,Fl)===!1?!1:dd(n,t)};function Rg(e,t,n){let{reference:r,floating:i}=e;const a=va(t),o=xf(t),s=yf(o),l=Sr(t),u=a==="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(Jn(t)){case"start":f[o]-=h*(n&&u?-1:1);break;case"end":f[o]+=h*(n&&u?-1:1);break}return f}const J5=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:o}=n,s=a.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=Rg(u,r,l),h=r,f={},g=0;for(let p=0;p<s.length;p++){const{name:b,fn:v}=s[p],{x:y,y:x,data:S,reset:D}=await v({x:c,y:d,initialPlacement:r,placement:h,strategy:i,middlewareData:f,rects:u,platform:o,elements:{reference:e,floating:t}});c=y??c,d=x??d,f={...f,[b]:{...f[b],...S}},D&&g<=50&&(g++,typeof D=="object"&&(D.placement&&(h=D.placement),D.rects&&(u=D.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):D.rects),{x:c,y:d}=Rg(u,h,l)),p=-1)}return{x:c,y:d,placement:h,strategy:i,middlewareData:f}};async function Cf(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:a,rects:o,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:h=!1,padding:f=0}=$a(t,e),g=I1(f),b=s[h?d==="floating"?"reference":"floating":d],v=Al(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(b)))==null||n?b:b.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),y=d==="floating"?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,x=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),S=await(a.isElement==null?void 0:a.isElement(x))?await(a.getScale==null?void 0:a.getScale(x))||{x:1,y:1}:{x:1,y:1},D=Al(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:x,strategy:l}):y);return{top:(v.top-D.top+g.top)/S.y,bottom:(D.bottom-v.bottom+g.bottom)/S.y,left:(v.left-D.left+g.left)/S.x,right:(D.right-v.right+g.right)/S.x}}const K5=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:l}=t,{element:u,padding:c=0}=$a(e,t)||{};if(u==null)return{};const d=I1(c),h={x:n,y:r},f=xf(i),g=yf(f),p=await o.getDimensions(u),b=f==="y",v=b?"top":"left",y=b?"bottom":"right",x=b?"clientHeight":"clientWidth",S=a.reference[g]+a.reference[f]-h[f]-a.floating[g],D=h[f]-a.reference[f],$=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let F=$?$[x]:0;(!F||!await(o.isElement==null?void 0:o.isElement($)))&&(F=s.floating[x]||a.floating[g]);const m=S/2-D/2,C=F/2-p[g]/2-1,I=ba(d[v],C),E=ba(d[y],C),R=I,P=F-p[g]-E,A=F/2-p[g]/2+m,M=cd(R,A,P),k=!l.arrow&&Jn(i)!=null&&A!==M&&a.reference[g]/2-(A<R?I:E)-p[g]/2<0,T=k?A<R?A-R:A-P:0;return{[f]:h[f]+T,data:{[f]:M,centerOffset:A-M-T,...k&&{alignmentOffset:T}},reset:k}}});function q5(e,t,n){return(e?[...n.filter(i=>Jn(i)===e),...n.filter(i=>Jn(i)!==e)]:n.filter(i=>Sr(i)===i)).filter(i=>e?Jn(i)===e||(t?$l(i)!==i:!1):!0)}const Q5=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,i;const{rects:a,middlewareData:o,placement:s,platform:l,elements:u}=t,{crossAxis:c=!1,alignment:d,allowedPlacements:h=_g,autoAlignment:f=!0,...g}=$a(e,t),p=d!==void 0||h===_g?q5(d||null,f,h):h,b=await Cf(t,g),v=((n=o.autoPlacement)==null?void 0:n.index)||0,y=p[v];if(y==null)return{};const x=E1(y,a,await(l.isRTL==null?void 0:l.isRTL(u.floating)));if(s!==y)return{reset:{placement:p[0]}};const S=[b[Sr(y)],b[x[0]],b[x[1]]],D=[...((r=o.autoPlacement)==null?void 0:r.overflows)||[],{placement:y,overflows:S}],$=p[v+1];if($)return{data:{index:v+1,overflows:D},reset:{placement:$}};const F=D.map(I=>{const E=Jn(I.placement);return[I.placement,E&&c?I.overflows.slice(0,2).reduce((R,P)=>R+P,0):I.overflows[0],I.overflows]}).sort((I,E)=>I[1]-E[1]),C=((i=F.filter(I=>I[2].slice(0,Jn(I[0])?2:3).every(E=>E<=0))[0])==null?void 0:i[0])||F[0][0];return C!==s?{data:{index:v+1,overflows:D},reset:{placement:C}}:{}}}},eS=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:a,rects:o,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:p=!0,...b}=$a(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const v=Sr(i),y=va(s),x=Sr(s)===s,S=await(l.isRTL==null?void 0:l.isRTL(u.floating)),D=h||(x||!p?[Rl(s)]:_5(s)),$=g!=="none";!h&&$&&D.push(...R5(s,p,g,S));const F=[s,...D],m=await Cf(t,b),C=[];let I=((r=a.flip)==null?void 0:r.overflows)||[];if(c&&C.push(m[v]),d){const A=E1(i,o,S);C.push(m[A[0]],m[A[1]])}if(I=[...I,{placement:i,overflows:C}],!C.every(A=>A<=0)){var E,R;const A=(((E=a.flip)==null?void 0:E.index)||0)+1,M=F[A];if(M)return{data:{index:A,overflows:I},reset:{placement:M}};let k=(R=I.filter(T=>T.overflows[0]<=0).sort((T,B)=>T.overflows[1]-B.overflows[1])[0])==null?void 0:R.placement;if(!k)switch(f){case"bestFit":{var P;const T=(P=I.filter(B=>{if($){const O=va(B.placement);return O===y||O==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(O=>O>0).reduce((O,L)=>O+L,0)]).sort((B,O)=>B[1]-O[1])[0])==null?void 0:P[0];T&&(k=T);break}case"initialPlacement":k=s;break}if(i!==k)return{reset:{placement:k}}}return{}}}};async function tS(e,t){const{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Sr(n),s=Jn(n),l=va(n)==="y",u=["left","top"].includes(o)?-1:1,c=a&&l?-1:1,d=$a(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 nS=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:a,placement:o,middlewareData:s}=t,l=await tS(t,e);return o===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:a+l.y,data:{...l,placement:o}}}}},rS=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:b=>{let{x:v,y}=b;return{x:v,y}}},...l}=$a(e,t),u={x:n,y:r},c=await Cf(t,l),d=va(Sr(i)),h=S1(d);let f=u[h],g=u[d];if(a){const b=h==="y"?"top":"left",v=h==="y"?"bottom":"right",y=f+c[b],x=f-c[v];f=cd(y,f,x)}if(o){const b=d==="y"?"top":"left",v=d==="y"?"bottom":"right",y=g+c[b],x=g-c[v];g=cd(y,g,x)}const p=s.fn({...t,[h]:f,[d]:g});return{...p,data:{x:p.x-n,y:p.y-r}}}}};function F1(e){const t=dn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=xt(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=_l(n)!==a||_l(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function wf(e){return rt(e)?e:e.contextElement}function sa(e){const t=wf(e);if(!xt(t))return Gr(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=F1(t);let o=(a?_l(n.width):n.width)/r,s=(a?_l(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const iS=Gr(0);function T1(e){const t=on(e);return!vf()||!t.visualViewport?iS:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function aS(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==on(e)?!1:t}function _i(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=wf(e);let o=Gr(1);t&&(r?rt(r)&&(o=sa(r)):o=sa(e));const s=aS(a,n,r)?T1(a):Gr(0);let l=(i.left+s.x)/o.x,u=(i.top+s.y)/o.y,c=i.width/o.x,d=i.height/o.y;if(a){const h=on(a),f=r&&rt(r)?on(r):r;let g=h,p=g.frameElement;for(;p&&r&&f!==g;){const b=sa(p),v=p.getBoundingClientRect(),y=dn(p),x=v.left+(p.clientLeft+parseFloat(y.paddingLeft))*b.x,S=v.top+(p.clientTop+parseFloat(y.paddingTop))*b.y;l*=b.x,u*=b.y,c*=b.x,d*=b.y,l+=x,u+=S,g=on(p),p=g.frameElement}}return Al({width:c,height:d,x:l,y:u})}function oS(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const a=i==="fixed",o=Er(r),s=t?xu(t.floating):!1;if(r===o||s&&a)return n;let l={scrollLeft:0,scrollTop:0},u=Gr(1);const c=Gr(0),d=xt(r);if((d||!d&&!a)&&((Jr(r)!=="body"||ns(o))&&(l=Cu(r)),xt(r))){const h=_i(r);u=sa(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 sS(e){return Array.from(e.getClientRects())}function P1(e){return _i(Er(e)).left+Cu(e).scrollLeft}function lS(e){const t=Er(e),n=Cu(e),r=e.ownerDocument.body,i=Di(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Di(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+P1(e);const s=-n.scrollTop;return dn(r).direction==="rtl"&&(o+=Di(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}function uS(e,t){const n=on(e),r=Er(e),i=n.visualViewport;let a=r.clientWidth,o=r.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;const u=vf();(!u||u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:a,height:o,x:s,y:l}}function cS(e,t){const n=_i(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=xt(e)?sa(e):Gr(1),o=e.clientWidth*a.x,s=e.clientHeight*a.y,l=i*a.x,u=r*a.y;return{width:o,height:s,x:l,y:u}}function Ag(e,t,n){let r;if(t==="viewport")r=uS(e,n);else if(t==="document")r=lS(Er(e));else if(rt(t))r=cS(t,n);else{const i=T1(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return Al(r)}function k1(e,t){const n=Dr(e);return n===t||!rt(n)||zr(n)?!1:dn(n).position==="fixed"||k1(n,t)}function dS(e,t){const n=t.get(e);if(n)return n;let r=jr(e,[],!1).filter(s=>rt(s)&&Jr(s)!=="body"),i=null;const a=dn(e).position==="fixed";let o=a?Dr(e):e;for(;rt(o)&&!zr(o);){const s=dn(o),l=bf(o);!l&&s.position==="fixed"&&(i=null),(a?!l&&!i:!l&&s.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||ns(o)&&!l&&k1(e,o))?r=r.filter(c=>c!==o):i=s,o=Dr(o)}return t.set(e,r),r}function fS(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?xu(t)?[]:dS(t,this._c):[].concat(n),r],s=o[0],l=o.reduce((u,c)=>{const d=Ag(t,c,i);return u.top=Di(d.top,u.top),u.right=ba(d.right,u.right),u.bottom=ba(d.bottom,u.bottom),u.left=Di(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 hS(e){const{width:t,height:n}=F1(e);return{width:t,height:n}}function gS(e,t,n){const r=xt(t),i=Er(t),a=n==="fixed",o=_i(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=Gr(0);if(r||!r&&!a)if((Jr(t)!=="body"||ns(i))&&(s=Cu(t)),r){const d=_i(t,!0,a,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else i&&(l.x=P1(i));const u=o.left+s.scrollLeft-l.x,c=o.top+s.scrollTop-l.y;return{x:u,y:c,width:o.width,height:o.height}}function ic(e){return dn(e).position==="static"}function Fg(e,t){return!xt(e)||dn(e).position==="fixed"?null:t?t(e):e.offsetParent}function M1(e,t){const n=on(e);if(xu(e))return n;if(!xt(e)){let i=Dr(e);for(;i&&!zr(i);){if(rt(i)&&!ic(i))return i;i=Dr(i)}return n}let r=Fg(e,t);for(;r&&h5(r)&&ic(r);)r=Fg(r,t);return r&&zr(r)&&ic(r)&&!bf(r)?n:r||g5(e)||n}const mS=async function(e){const t=this.getOffsetParent||M1,n=this.getDimensions,r=await n(e.floating);return{reference:gS(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function pS(e){return dn(e).direction==="rtl"}const bS={convertOffsetParentRelativeRectToViewportRelativeRect:oS,getDocumentElement:Er,getClippingRect:fS,getOffsetParent:M1,getElementRects:mS,getClientRects:sS,getDimensions:hS,getScale:sa,isElement:rt,isRTL:pS};function vS(e,t){let n=null,r;const i=Er(e);function a(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function o(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),a();const{left:u,top:c,width:d,height:h}=e.getBoundingClientRect();if(s||t(),!d||!h)return;const f=Es(c),g=Es(i.clientWidth-(u+d)),p=Es(i.clientHeight-(c+h)),b=Es(u),y={rootMargin:-f+"px "+-g+"px "+-p+"px "+-b+"px",threshold:Di(0,ba(1,l))||1};let x=!0;function S(D){const $=D[0].intersectionRatio;if($!==l){if(!x)return o();$?o(!1,$):r=setTimeout(()=>{o(!1,1e-7)},1e3)}x=!1}try{n=new IntersectionObserver(S,{...y,root:i.ownerDocument})}catch{n=new IntersectionObserver(S,y)}n.observe(e)}return o(!0),a}function B1(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=wf(e),c=i||a?[...u?jr(u):[],...jr(t)]:[];c.forEach(v=>{i&&v.addEventListener("scroll",n,{passive:!0}),a&&v.addEventListener("resize",n)});const d=u&&s?vS(u,n):null;let h=-1,f=null;o&&(f=new ResizeObserver(v=>{let[y]=v;y&&y.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,p=l?_i(e):null;l&&b();function b(){const v=_i(e);p&&(v.x!==p.x||v.y!==p.y||v.width!==p.width||v.height!==p.height)&&n(),p=v,g=requestAnimationFrame(b)}return n(),()=>{var v;c.forEach(y=>{i&&y.removeEventListener("scroll",n),a&&y.removeEventListener("resize",n)}),d==null||d(),(v=f)==null||v.disconnect(),f=null,l&&cancelAnimationFrame(g)}}const yS=nS,xS=Q5,CS=rS,wS=eS,Tg=K5,DS=(e,t,n)=>{const r=new Map,i={platform:bS,...n},a={...i.platform,_c:r};return J5(e,t,{...i,platform:a})};var ll=typeof document<"u"?w.useLayoutEffect:w.useEffect;function kl(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(!kl(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 a=i[r];if(!(a==="_owner"&&e.$$typeof)&&!kl(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function O1(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Pg(e,t){const n=O1(e);return Math.round(t*n)/n}function kg(e){const t=W.useRef(e);return ll(()=>{t.current=e}),t}function SS(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[c,d]=W.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,f]=W.useState(r);kl(h,r)||f(r);const[g,p]=W.useState(null),[b,v]=W.useState(null),y=W.useCallback(T=>{T!==$.current&&($.current=T,p(T))},[]),x=W.useCallback(T=>{T!==F.current&&(F.current=T,v(T))},[]),S=a||g,D=o||b,$=W.useRef(null),F=W.useRef(null),m=W.useRef(c),C=l!=null,I=kg(l),E=kg(i),R=W.useCallback(()=>{if(!$.current||!F.current)return;const T={placement:t,strategy:n,middleware:h};E.current&&(T.platform=E.current),DS($.current,F.current,T).then(B=>{const O={...B,isPositioned:!0};P.current&&!kl(m.current,O)&&(m.current=O,t1.flushSync(()=>{d(O)}))})},[h,t,n,E]);ll(()=>{u===!1&&m.current.isPositioned&&(m.current.isPositioned=!1,d(T=>({...T,isPositioned:!1})))},[u]);const P=W.useRef(!1);ll(()=>(P.current=!0,()=>{P.current=!1}),[]),ll(()=>{if(S&&($.current=S),D&&(F.current=D),S&&D){if(I.current)return I.current(S,D,R);R()}},[S,D,R,I,C]);const A=W.useMemo(()=>({reference:$,floating:F,setReference:y,setFloating:x}),[y,x]),M=W.useMemo(()=>({reference:S,floating:D}),[S,D]),k=W.useMemo(()=>{const T={position:n,left:0,top:0};if(!M.floating)return T;const B=Pg(M.floating,c.x),O=Pg(M.floating,c.y);return s?{...T,transform:"translate("+B+"px, "+O+"px)",...O1(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:B,top:O}},[n,s,M.floating,c.x,c.y]);return W.useMemo(()=>({...c,update:R,refs:A,elements:M,floatingStyles:k}),[c,R,A,M,k])}const ES=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?Tg({element:r.current,padding:i}).fn(n):{}:r?Tg({element:r,padding:i}).fn(n):{}}}},IS=(e,t)=>({...yS(e),options:[e,t]}),_S=(e,t)=>({...CS(e),options:[e,t]}),$S=(e,t)=>({...wS(e),options:[e,t]}),RS=(e,t)=>({...xS(e),options:[e,t]}),AS=(e,t)=>({...ES(e),options:[e,t]}),N1={...W},FS=N1.useInsertionEffect,TS=FS||(e=>e());function Br(e){const t=W.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return TS(()=>{t.current=e}),W.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 ri(e,t){t===void 0&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:i=!1}=t;r&&cancelAnimationFrame(Mg);const a=()=>e==null?void 0:e.focus({preventScroll:n});i?a():Mg=requestAnimationFrame(a)}var Nt=typeof document<"u"?w.useLayoutEffect:w.useEffect;function Co(){return Co=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},Co.apply(this,arguments)}let Bg=!1,PS=0;const Og=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+PS++;function kS(){const[e,t]=W.useState(()=>Bg?Og():void 0);return Nt(()=>{e==null&&t(Og())},[]),W.useEffect(()=>{Bg=!0},[]),e}const MS=N1.useId,Du=MS||kS;let wo;process.env.NODE_ENV!=="production"&&(wo=new Set);function BS(){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=wo)!=null&&e.has(i))){var a;(a=wo)==null||a.add(i),console.warn(i)}}function OS(){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=wo)!=null&&e.has(i))){var a;(a=wo)==null||a.add(i),console.error(i)}}const NS=W.forwardRef(function(t,n){const{context:{placement:r,elements:{floating:i},middlewareData:{arrow:a}},width:o=14,height:s=7,tipRadius:l=0,strokeWidth:u=0,staticOffset:c,stroke:d,d:h,style:{transform:f,...g}={},...p}=t;process.env.NODE_ENV!=="production"&&(n||BS("The `ref` prop is required for `FloatingArrow`."));const b=Du(),[v,y]=W.useState(!1);if(Nt(()=>{if(!i)return;dn(i).direction==="rtl"&&y(!0)},[i]),!i)return null;const x=u*2,S=x/2,D=o/2*(l/-8+1),$=s/2*l/4,[F,m]=r.split("-"),C=!!h,I=F==="top"||F==="bottom",E=c&&m==="end"?"bottom":"top";let R=c&&m==="end"?"right":"left";c&&v&&(R=m==="end"?"left":"right");const P=(a==null?void 0:a.x)!=null?c||a.x:"",A=(a==null?void 0:a.y)!=null?c||a.y:"",M=h||"M0,0"+(" H"+o)+(" L"+(o-D)+","+(s-$))+(" Q"+o/2+","+s+" "+D+","+(s-$))+" Z",k={top:C?"rotate(180deg)":"",left:C?"rotate(90deg)":"rotate(-90deg)",bottom:C?"":"rotate(180deg)",right:C?"rotate(-90deg)":"rotate(90deg)"}[F];return W.createElement("svg",Co({},p,{"aria-hidden":!0,ref:n,width:C?o:o+x,height:o,viewBox:"0 0 "+o+" "+(s>o?s:o),style:{position:"absolute",pointerEvents:"none",[R]:P,[E]:A,[F]:I||C?"100%":"calc(100% - "+x/2+"px)",transform:""+k+(f??""),...g}}),x>0&&W.createElement("path",{clipPath:"url(#"+b+")",fill:"none",stroke:d,strokeWidth:x+(h?0:1),d:M}),W.createElement("path",{stroke:x&&!h?p.fill:"none",d:M}),W.createElement("clipPath",{id:b},W.createElement("rect",{x:-S,y:S*(C?-1:1),width:o+x,height:o})))});function VS(){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 LS=W.createContext(null),HS=W.createContext(null),V1=()=>{var e;return((e=W.useContext(LS))==null?void 0:e.id)||null},Df=()=>W.useContext(HS);function Do(e){return"data-floating-ui-"+e}function pi(e){const t=w.useRef(e);return Nt(()=>{t.current=e}),t}function jS(e,t){var n;let r=[],i=(n=e.find(a=>a.id===t))==null?void 0:n.parentId;for(;i;){const a=e.find(o=>o.id===i);i=a==null?void 0:a.parentId,a&&(r=r.concat(a))}return r}function io(e,t){let n=e.filter(i=>{var a;return i.parentId===t&&((a=i.context)==null?void 0:a.open)}),r=n;for(;r.length;)r=e.filter(i=>{var a;return(a=r)==null?void 0:a.some(o=>{var s;return i.parentId===o.id&&((s=i.context)==null?void 0:s.open)})}),n=n.concat(r);return n}let zi=new WeakMap,Is=new WeakSet,_s={},ac=0;const WS=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,L1=e=>e&&(e.host||L1(e.parentNode)),zS=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=L1(n);return e.contains(r)?r:null}).filter(n=>n!=null);function GS(e,t,n,r){const i="data-floating-ui-inert",a=r?"inert":n?"aria-hidden":null,o=zS(t,e),s=new Set,l=new Set(o),u=[];_s[i]||(_s[i]=new WeakMap);const c=_s[i];o.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(Jr(g)!=="script")if(s.has(g))h(g);else{const p=a?g.getAttribute(a):null,b=p!==null&&p!=="false",v=(zi.get(g)||0)+1,y=(c.get(g)||0)+1;zi.set(g,v),c.set(g,y),u.push(g),v===1&&b&&Is.add(g),y===1&&g.setAttribute(i,""),!b&&a&&g.setAttribute(a,"true")}})}return ac++,()=>{u.forEach(f=>{const g=(zi.get(f)||0)-1,p=(c.get(f)||0)-1;zi.set(f,g),c.set(f,p),g||(!Is.has(f)&&a&&f.removeAttribute(a),Is.delete(f)),p||f.removeAttribute(i)}),ac--,ac||(zi=new WeakMap,zi=new WeakMap,Is=new WeakSet,_s={})}}function Ng(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=$n(e[0]).body;return GS(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const So=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function H1(e,t){const n=wu(e,So());t==="prev"&&n.reverse();const r=n.indexOf(ui($n(e)));return n.slice(r+1)[0]}function j1(){return H1(document.body,"next")}function W1(){return H1(document.body,"prev")}function ao(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!nn(n,r)}function XS(e){wu(e,So()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function ZS(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 Sf={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 YS;function Vg(e){e.key==="Tab"&&(e.target,clearTimeout(YS))}const Ml=W.forwardRef(function(t,n){const[r,i]=W.useState();Nt(()=>(v5()&&i("button"),document.addEventListener("keydown",Vg),()=>{document.removeEventListener("keydown",Vg)}),[]);const a={ref:n,tabIndex:0,role:r,"aria-hidden":r?void 0:!0,[Do("focus-guard")]:"",style:Sf};return W.createElement("span",Co({},t,a))}),z1=W.createContext(null),Lg=Do("portal");function US(e){e===void 0&&(e={});const{id:t,root:n}=e,r=Du(),i=G1(),[a,o]=W.useState(null),s=W.useRef(null);return Nt(()=>()=>{a==null||a.remove(),queueMicrotask(()=>{s.current=null})},[a]),Nt(()=>{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,o(u)},[t,r]),Nt(()=>{if(!r||s.current)return;let l=n||(i==null?void 0:i.portalNode);l&&!rt(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,o(c)},[t,n,r,i]),a}function JS(e){const{children:t,id:n,root:r=null,preserveTabOrder:i=!0}=e,a=US({id:n,root:r}),[o,s]=W.useState(null),l=W.useRef(null),u=W.useRef(null),c=W.useRef(null),d=W.useRef(null),h=!!o&&!o.modal&&o.open&&i&&!!(r||a);return W.useEffect(()=>{if(!a||!i||o!=null&&o.modal)return;function f(g){a&&ao(g)&&(g.type==="focusin"?ZS:XS)(a)}return a.addEventListener("focusin",f,!0),a.addEventListener("focusout",f,!0),()=>{a.removeEventListener("focusin",f,!0),a.removeEventListener("focusout",f,!0)}},[a,i,o==null?void 0:o.modal]),W.createElement(z1.Provider,{value:W.useMemo(()=>({preserveTabOrder:i,beforeOutsideRef:l,afterOutsideRef:u,beforeInsideRef:c,afterInsideRef:d,portalNode:a,setFocusManagerState:s}),[i,a])},h&&a&&W.createElement(Ml,{"data-type":"outside",ref:l,onFocus:f=>{if(ao(f,a)){var g;(g=c.current)==null||g.focus()}else{const p=W1()||(o==null?void 0:o.refs.domReference.current);p==null||p.focus()}}}),h&&a&&W.createElement("span",{"aria-owns":a.id,style:Sf}),a&&t1.createPortal(t,a),h&&a&&W.createElement(Ml,{"data-type":"outside",ref:u,onFocus:f=>{if(ao(f,a)){var g;(g=d.current)==null||g.focus()}else{const p=j1()||(o==null?void 0:o.refs.domReference.current);p==null||p.focus(),o!=null&&o.closeOnFocusOut&&(o==null||o.onOpenChange(!1,f.nativeEvent))}}}))}const G1=()=>W.useContext(z1),KS=20;let ci=[];function oc(e){ci=ci.filter(n=>n.isConnected);let t=e;if(!(!t||Jr(t)==="body")){if(!U5(t,So())){const n=wu(t,So())[0];n&&(t=n)}ci.push(t),ci.length>KS&&(ci=ci.slice(-20))}}function Hg(){return ci.slice().reverse().find(e=>e.isConnected)}const qS=W.forwardRef(function(t,n){return W.createElement("button",Co({},t,{type:"button",ref:n,tabIndex:-1,style:Sf}))});function QS(e){const{context:t,children:n,disabled:r=!1,order:i=["content"],guards:a=!0,initialFocus:o=0,returnFocus:s=!0,restoreFocus:l=!1,modal:u=!0,visuallyHiddenDismiss:c=!1,closeOnFocusOut:d=!0}=e,{open:h,refs:f,nodeId:g,onOpenChange:p,events:b,dataRef:v,floatingId:y,elements:{domReference:x,floating:S}}=t,D=typeof o=="number"&&o<0,$=D5(x)&&D,F=WS()?a:!0,m=pi(i),C=pi(o),I=pi(s),E=Df(),R=G1(),P=W.useRef(null),A=W.useRef(null),M=W.useRef(!1),k=W.useRef(!1),T=W.useRef(-1),B=R!=null,O=S==null?void 0:S.firstElementChild,L=(O==null?void 0:O.id)===y?O:S,j=Br(function(H){return H===void 0&&(H=L),H?wu(H,So()):[]}),z=Br(H=>{const V=j(H);return m.current.map(X=>x&&X==="reference"?x:L&&X==="floating"?L:V).filter(Boolean).flat()});W.useEffect(()=>{if(r||!u)return;function H(X){if(X.key==="Tab"){nn(L,ui($n(L)))&&j().length===0&&!$&&rc(X);const K=z(),te=hi(X);m.current[0]==="reference"&&te===x&&(rc(X),X.shiftKey?ri(K[K.length-1]):ri(K[1])),m.current[1]==="floating"&&te===L&&X.shiftKey&&(rc(X),ri(K[0]))}}const V=$n(L);return V.addEventListener("keydown",H),()=>{V.removeEventListener("keydown",H)}},[r,x,L,u,m,$,j,z]),W.useEffect(()=>{if(r||!S)return;function H(V){const X=hi(V),te=j().indexOf(X);te!==-1&&(T.current=te)}return S.addEventListener("focusin",H),()=>{S.removeEventListener("focusin",H)}},[r,S,j]),W.useEffect(()=>{if(r||!d)return;function H(){k.current=!0,setTimeout(()=>{k.current=!1})}function V(X){const K=X.relatedTarget;queueMicrotask(()=>{const te=!(nn(x,K)||nn(S,K)||nn(K,S)||nn(R==null?void 0:R.portalNode,K)||K!=null&&K.hasAttribute(Do("focus-guard"))||E&&(io(E.nodesRef.current,g).find(ue=>{var ie,Z;return nn((ie=ue.context)==null?void 0:ie.elements.floating,K)||nn((Z=ue.context)==null?void 0:Z.elements.domReference,K)})||jS(E.nodesRef.current,g).find(ue=>{var ie,Z;return((ie=ue.context)==null?void 0:ie.elements.floating)===K||((Z=ue.context)==null?void 0:Z.elements.domReference)===K})));if(l&&te&&ui($n(L))===$n(L).body){xt(L)&&(L==null||L.focus());const ue=T.current,ie=j(),Z=ie[ue]||ie[ie.length-1]||L;xt(Z)&&Z.focus()}($||!u)&&K&&te&&!k.current&&K!==Hg()&&(M.current=!0,p(!1,X))})}if(S&&xt(x))return x.addEventListener("focusout",V),x.addEventListener("pointerdown",H),S.addEventListener("focusout",V),()=>{x.removeEventListener("focusout",V),x.removeEventListener("pointerdown",H),S.removeEventListener("focusout",V)}},[r,x,S,L,u,g,E,R,p,d,l,j,$]),W.useEffect(()=>{var H;if(r)return;const V=Array.from((R==null||(H=R.portalNode)==null?void 0:H.querySelectorAll("["+Do("portal")+"]"))||[]);if(S){const X=[S,...V,P.current,A.current,m.current.includes("reference")||$?x:null].filter(te=>te!=null),K=u||$?Ng(X,F,!F):Ng(X);return()=>{K()}}},[r,x,S,u,m,R,$,F]),Nt(()=>{if(r||!xt(L))return;const H=$n(L),V=ui(H);queueMicrotask(()=>{const X=z(L),K=C.current,te=(typeof K=="number"?X[K]:K.current)||L,ue=nn(L,V);!D&&!ue&&h&&ri(te,{preventScroll:te===L})})},[r,h,L,D,z,C]),Nt(()=>{if(r||!L)return;let H=!1;const V=$n(L),X=ui(V);let te=v.current.openEvent;oc(X);function ue(ie){let{open:Z,reason:me,event:he,nested:ce}=ie;Z&&(te=he),me==="escape-key"&&f.domReference.current&&oc(f.domReference.current),me==="hover"&&he.type==="mouseleave"&&(M.current=!0),me==="outside-press"&&(ce?(M.current=!1,H=!0):M.current=!(p5(he)||b5(he)))}return b.on("openchange",ue),()=>{b.off("openchange",ue);const ie=ui(V),Z=nn(S,ie)||E&&io(E.nodesRef.current,g).some(ce=>{var qe;return nn((qe=ce.context)==null?void 0:qe.elements.floating,ie)});(Z||te&&["click","mousedown"].includes(te.type))&&f.domReference.current&&oc(f.domReference.current);const he=Hg();I.current&&!M.current&&xt(he)&&(!(he!==ie&&ie!==V.body)||Z)&&ri(he,{cancelPrevious:!1,preventScroll:H})}},[r,S,L,I,v,f,b,E,g]),Nt(()=>{if(!r&&R)return R.setFocusManagerState({modal:u,closeOnFocusOut:d,open:h,onOpenChange:p,refs:f}),()=>{R.setFocusManagerState(null)}},[r,R,u,h,p,f,d]),Nt(()=>{if(r||!L||typeof MutationObserver!="function"||D)return;const H=()=>{const X=L.getAttribute("tabindex"),K=j(),te=ui($n(S)),ue=K.indexOf(te);ue!==-1&&(T.current=ue),m.current.includes("floating")||te!==f.domReference.current&&K.length===0?X!=="0"&&L.setAttribute("tabindex","0"):X!=="-1"&&L.setAttribute("tabindex","-1")};H();const V=new MutationObserver(H);return V.observe(L,{childList:!0,subtree:!0,attributes:!0}),()=>{V.disconnect()}},[r,S,L,f,m,j,D]);function Y(H){return r||!c||!u?null:W.createElement(qS,{ref:H==="start"?P:A,onClick:V=>p(!1,V.nativeEvent)},typeof c=="string"?c:"Dismiss")}const G=!r&&F&&(u?!$:!0)&&(B||u);return W.createElement(W.Fragment,null,G&&W.createElement(Ml,{"data-type":"inside",ref:R==null?void 0:R.beforeInsideRef,onFocus:H=>{if(u){const X=z();ri(i[0]==="reference"?X[0]:X[X.length-1])}else if(R!=null&&R.preserveTabOrder&&R.portalNode)if(M.current=!1,ao(H,R.portalNode)){const X=j1()||x;X==null||X.focus()}else{var V;(V=R.beforeOutsideRef.current)==null||V.focus()}}}),!$&&Y("start"),n,Y("end"),G&&W.createElement(Ml,{"data-type":"inside",ref:R==null?void 0:R.afterInsideRef,onFocus:H=>{if(u)ri(z()[0]);else if(R!=null&&R.preserveTabOrder&&R.portalNode)if(d&&(M.current=!0),ao(H,R.portalNode)){const X=W1()||x;X==null||X.focus()}else{var V;(V=R.afterOutsideRef.current)==null||V.focus()}}}))}function jg(e){return xt(e.target)&&e.target.tagName==="BUTTON"}function Wg(e){return D1(e)}function eE(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,elements:{domReference:a}}=e,{enabled:o=!0,event:s="click",toggle:l=!0,ignoreMouse:u=!1,keyboardHandlers:c=!0}=t,d=W.useRef(),h=W.useRef(!1),f=W.useMemo(()=>({onPointerDown(g){d.current=g.pointerType},onMouseDown(g){const p=d.current;g.button===0&&s!=="click"&&(Eg(p)&&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 p=d.current;if(s==="mousedown"&&d.current){d.current=void 0;return}Eg(p)&&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(a)&&(g.preventDefault(),h.current=!0),g.key==="Enter"&&r(!(n&&l),g.nativeEvent,"click"))},onKeyUp(g){g.defaultPrevented||!c||jg(g)||Wg(a)||g.key===" "&&h.current&&(h.current=!1,r(!(n&&l),g.nativeEvent,"click"))}}),[i,a,s,u,c,r,n,l]);return W.useMemo(()=>o?{reference:f}:{},[o,f])}const tE={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},nE={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 rE(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:i,dataRef:a}=e,{enabled:o=!0,escapeKey:s=!0,outsidePress:l=!0,outsidePressEvent:u="pointerdown",referencePress:c=!1,referencePressEvent:d="pointerdown",ancestorScroll:h=!1,bubbles:f,capture:g}=t,p=Df(),b=Br(typeof l=="function"?l:()=>!1),v=typeof l=="function"?b:l,y=W.useRef(!1),x=W.useRef(!1),{escapeKey:S,outsidePress:D}=zg(f),{escapeKey:$,outsidePress:F}=zg(g),m=Br(A=>{var M;if(!n||!o||!s||A.key!=="Escape")return;const k=(M=a.current.floatingContext)==null?void 0:M.nodeId,T=p?io(p.nodesRef.current,k):[];if(!S&&(A.stopPropagation(),T.length>0)){let B=!0;if(T.forEach(O=>{var L;if((L=O.context)!=null&&L.open&&!O.context.dataRef.current.__escapeKeyBubbles){B=!1;return}}),!B)return}r(!1,x5(A)?A.nativeEvent:A,"escape-key")}),C=Br(A=>{var M;const k=()=>{var T;m(A),(T=hi(A))==null||T.removeEventListener("keydown",k)};(M=hi(A))==null||M.addEventListener("keydown",k)}),I=Br(A=>{var M;const k=y.current;y.current=!1;const T=x.current;if(x.current=!1,u==="click"&&T||k||typeof v=="function"&&!v(A))return;const B=hi(A),O="["+Do("inert")+"]",L=$n(i.floating).querySelectorAll(O);let j=rt(B)?B:null;for(;j&&!zr(j);){const H=Dr(j);if(zr(H)||!rt(H))break;j=H}if(L.length&&rt(B)&&!C5(B)&&!nn(B,i.floating)&&Array.from(L).every(H=>!nn(j,H)))return;if(xt(B)&&P){const H=B.clientWidth>0&&B.scrollWidth>B.clientWidth,V=B.clientHeight>0&&B.scrollHeight>B.clientHeight;let X=V&&A.offsetX>B.clientWidth;if(V&&dn(B).direction==="rtl"&&(X=A.offsetX<=B.offsetWidth-B.clientWidth),X||H&&A.offsetY>B.clientHeight)return}const z=(M=a.current.floatingContext)==null?void 0:M.nodeId,Y=p&&io(p.nodesRef.current,z).some(H=>{var V;return nc(A,(V=H.context)==null?void 0:V.elements.floating)});if(nc(A,i.floating)||nc(A,i.domReference)||Y)return;const G=p?io(p.nodesRef.current,z):[];if(G.length>0){let H=!0;if(G.forEach(V=>{var X;if((X=V.context)!=null&&X.open&&!V.context.dataRef.current.__outsidePressBubbles){H=!1;return}}),!H)return}r(!1,A,"outside-press")}),E=Br(A=>{var M;const k=()=>{var T;I(A),(T=hi(A))==null||T.removeEventListener(u,k)};(M=hi(A))==null||M.addEventListener(u,k)});W.useEffect(()=>{if(!n||!o)return;a.current.__escapeKeyBubbles=S,a.current.__outsidePressBubbles=D;function A(T){r(!1,T,"ancestor-scroll")}const M=$n(i.floating);s&&M.addEventListener("keydown",$?C:m,$),v&&M.addEventListener(u,F?E:I,F);let k=[];return h&&(rt(i.domReference)&&(k=jr(i.domReference)),rt(i.floating)&&(k=k.concat(jr(i.floating))),!rt(i.reference)&&i.reference&&i.reference.contextElement&&(k=k.concat(jr(i.reference.contextElement)))),k=k.filter(T=>{var B;return T!==((B=M.defaultView)==null?void 0:B.visualViewport)}),k.forEach(T=>{T.addEventListener("scroll",A,{passive:!0})}),()=>{s&&M.removeEventListener("keydown",$?C:m,$),v&&M.removeEventListener(u,F?E:I,F),k.forEach(T=>{T.removeEventListener("scroll",A)})}},[a,i,s,v,u,n,r,h,o,S,D,m,$,C,I,F,E]),W.useEffect(()=>{y.current=!1},[v,u]);const R=W.useMemo(()=>({onKeyDown:m,[tE[d]]:A=>{c&&r(!1,A.nativeEvent,"reference-press")}}),[m,r,c,d]),P=W.useMemo(()=>({onKeyDown:m,onMouseDown(){x.current=!0},onMouseUp(){x.current=!0},[nE[u]]:()=>{y.current=!0}}),[m,u]);return W.useMemo(()=>o?{reference:R,floating:P}:{},[o,R,P])}function iE(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=Du(),a=W.useRef({}),[o]=W.useState(()=>VS()),s=V1()!=null;if(process.env.NODE_ENV!=="production"){const f=r.reference;f&&!rt(f)&&OS("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]=W.useState(r.reference),c=Br((f,g,p)=>{a.current.openEvent=f?g:void 0,o.emit("openchange",{open:f,event:g,reason:p,nested:s}),n==null||n(f,g,p)}),d=W.useMemo(()=>({setPositionReference:u}),[]),h=W.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return W.useMemo(()=>({dataRef:a,open:t,onOpenChange:c,elements:h,events:o,floatingId:i,refs:d}),[t,c,h,o,i,d])}function aE(e){e===void 0&&(e={});const{nodeId:t}=e,n=iE({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[a,o]=W.useState(null),[s,l]=W.useState(null),c=(i==null?void 0:i.reference)||a,d=W.useRef(null),h=Df();Nt(()=>{c&&(d.current=c)},[c]);const f=SS({...e,elements:{...i,...s&&{reference:s}}}),g=W.useCallback(x=>{const S=rt(x)?{getBoundingClientRect:()=>x.getBoundingClientRect(),contextElement:x}:x;l(S),f.refs.setReference(S)},[f.refs]),p=W.useCallback(x=>{(rt(x)||x===null)&&(d.current=x,o(x)),(rt(f.refs.reference.current)||f.refs.reference.current===null||x!==null&&!rt(x))&&f.refs.setReference(x)},[f.refs]),b=W.useMemo(()=>({...f.refs,setReference:p,setPositionReference:g,domReference:d}),[f.refs,p,g]),v=W.useMemo(()=>({...f.elements,domReference:c}),[f.elements,c]),y=W.useMemo(()=>({...f,...r,refs:b,elements:v,nodeId:t}),[f,b,v,t,r]);return Nt(()=>{r.dataRef.current.floatingContext=y;const x=h==null?void 0:h.nodesRef.current.find(S=>S.id===t);x&&(x.context=y)}),W.useMemo(()=>({...f,context:y,refs:b,elements:v}),[f,b,v,y])}const Gg="active",Xg="selected";function sc(e,t,n){const r=new Map,i=n==="item";let a=e;if(i&&e){const{[Gg]:o,[Xg]:s,...l}=e;a=l}return{...n==="floating"&&{tabIndex:-1},...a,...t.map(o=>{const s=o?o[n]:null;return typeof s=="function"?e?s(e):null:s}).concat(e).reduce((o,s)=>(s&&Object.entries(s).forEach(l=>{let[u,c]=l;if(!(i&&[Gg,Xg].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),o[u]=function(){for(var h,f=arguments.length,g=new Array(f),p=0;p<f;p++)g[p]=arguments[p];return(h=r.get(u))==null?void 0:h.map(b=>b(...g)).find(b=>b!==void 0)}}}else o[u]=c}),o),{})}}function oE(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=W.useCallback(s=>sc(s,e,"reference"),t),a=W.useCallback(s=>sc(s,e,"floating"),n),o=W.useCallback(s=>sc(s,e,"item"),r);return W.useMemo(()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:o}),[i,a,o])}const sE=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function lE(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:i}=e,{enabled:a=!0,role:o="dialog"}=t,s=(n=sE.get(o))!=null?n:o,l=Du(),c=V1()!=null,d=W.useMemo(()=>s==="tooltip"||o==="label"?{["aria-"+(o==="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"},...o==="select"&&{"aria-autocomplete":"none"},...o==="combobox"&&{"aria-autocomplete":"list"}},[s,i,c,r,l,o]),h=W.useMemo(()=>{const g={id:i,...s&&{role:s}};return s==="tooltip"||o==="label"?g:{...g,...s==="menu"&&{"aria-labelledby":l}}},[s,i,l,o]),f=W.useCallback(g=>{let{active:p,selected:b}=g;const v={role:"option",...p&&{id:i+"-option"}};switch(o){case"select":return{...v,"aria-selected":p&&b};case"combobox":return{...v,...p&&{"aria-selected":!0}}}return{}},[i,o]);return W.useMemo(()=>a?{reference:d,floating:h,item:f}:{},[a,d,h,f])}const Zg=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,n)=>(n?"-":"")+t.toLowerCase());function Gi(e,t){return typeof e=="function"?e(t):e}function uE(e,t){const[n,r]=W.useState(e);return e&&!n&&r(!0),W.useEffect(()=>{if(!e&&n){const i=setTimeout(()=>r(!1),t);return()=>clearTimeout(i)}},[e,n,t]),n}function cE(e,t){t===void 0&&(t={});const{open:n,elements:{floating:r}}=e,{duration:i=250}=t,o=(typeof i=="number"?i:i.close)||0,[s,l]=W.useState("unmounted"),u=uE(n,o);return!u&&s==="close"&&l("unmounted"),Nt(()=>{if(r){if(n){l("initial");const c=requestAnimationFrame(()=>{l("open")});return()=>{cancelAnimationFrame(c)}}l("close")}},[n,r]),{isMounted:u,status:s}}function dE(e,t){t===void 0&&(t={});const{initial:n={opacity:0},open:r,close:i,common:a,duration:o=250}=t,s=e.placement,l=s.split("-")[0],u=W.useMemo(()=>({side:l,placement:s}),[l,s]),c=typeof o=="number",d=(c?o:o.open)||0,h=(c?o:o.close)||0,[f,g]=W.useState(()=>({...Gi(a,u),...Gi(n,u)})),{isMounted:p,status:b}=cE(e,{duration:o}),v=pi(n),y=pi(r),x=pi(i),S=pi(a);return Nt(()=>{const D=Gi(v.current,u),$=Gi(x.current,u),F=Gi(S.current,u),m=Gi(y.current,u)||Object.keys(D).reduce((C,I)=>(C[I]="",C),{});if(b==="initial"&&g(C=>({transitionProperty:C.transitionProperty,...F,...D})),b==="open"&&g({transitionProperty:Object.keys(m).map(Zg).join(","),transitionDuration:d+"ms",...F,...m}),b==="close"){const C=$||D;g({transitionProperty:Object.keys(C).map(Zg).join(","),transitionDuration:h+"ms",...F,...C})}},[h,x,v,y,S,d,b,u]),{isMounted:p,styles:f}}const fE="_popover_7cinv_1",hE={popover:fE},Ir=w.forwardRef((e,t)=>{const{children:n,className:r,offset:i=10,isShow:a,anchorEl:o,useAutoPlacement:s=!1,flipOptions:l,autoPlacementOptions:u,zIndex:c=10,width:d,styleInnerPopover:h={},floatingOptions:f={},onClose:g=()=>{},withArrow:p,propsArrow:b={},...v}=e,y=w.useRef(null),[x,S]=w.useState(!1),{refs:D,floatingStyles:$,context:F}=aE({open:x,onOpenChange:T=>{S(T),T||g()},middleware:[IS(i),s?RS(u):$S(l),_S(),AS({element:y})],whileElementsMounted:B1,...f}),m=eE(F),C=rE(F),I=lE(F),{getReferenceProps:E,getFloatingProps:R}=oE([m,C,I]),{styles:P,isMounted:A}=dE(F),M=T=>{D.setReference(T.currentTarget),S(B=>!B),x&&g()};w.useEffect(()=>{a&&o?M({currentTarget:o}):a||S(!1)},[a,o]),w.useImperativeHandle(t,()=>({show:x,setShow:S,handlerShow:M,getReferenceProps:E}),[x]);const k=()=>{let T={...$,...P,...h,zIndex:c};return d&&(T={...T,width:d}),T};return _.jsx(_.Fragment,{children:A&&x&&_.jsx(JS,{children:_.jsx(QS,{context:F,modal:!1,children:_.jsxs("div",{ref:D.setFloating,style:k(),...R(),className:`${hE.popover} ${r??""}`,...v,children:[n,p&&_.jsx(NS,{ref:y,context:F,...b})]})})})})});Ir.displayName="Popover";const gE="_input_192cn_7",mE="_label_192cn_36",pE="_error_192cn_43",Gt={"container-large":"_container-large_192cn_1","container-input":"_container-input_192cn_4",input:gE,label:mE,error:pE,"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"},X1=w.forwardRef((e,t)=>{var x;const{isRequired:n,classNameContainer:r,classNameLabelError:i,classNameLabel:a,className:o,name:s,id:l,label:u,type:c="text",startIcon:d,endIcon:h,error:f,sizeInput:g="large",...p}=e,b={size:{large:Gt["container-large"],medium:Gt["container-medium"],small:Gt["container-small"]}},v=()=>typeof d=="function"||w.isValidElement(d),y=()=>typeof h=="function"||w.isValidElement(h);return _.jsxs("div",{className:`${Gt.container} ${(x=b.size)==null?void 0:x[g]} ${r??""}`,children:[_.jsxs("div",{className:Gt["container-input"],children:[_.jsx("input",{id:l??s,className:`${Gt.input} ${f?Gt.error:""}
46
46
  ${v()?Gt["isset-left-icon"]:""}
47
47
  ${y()?Gt["isset-right-icon"]:""}
48
48
  ${o??""}`,ref:t,type:c,...p}),_.jsxs("div",{className:Gt["start-icon"],children:[typeof d=="function"&&d(),w.isValidElement(d)&&d]}),_.jsxs("label",{className:`${Gt.label} ${a??""}`,htmlFor:l??s,children:[u," ",n&&_.jsx("span",{className:"1ru-text-laba-red-08",children:"*"})]}),_.jsxs("div",{className:Gt["end-icon"],children:[typeof h=="function"&&h(),w.isValidElement(h)&&h]})]}),f&&_.jsx("label",{className:`${Gt["label-error"]}
@@ -62,7 +62,7 @@ React keys must be passed directly to JSX without using spread:
62
62
  */function CE(){return{accessor:(e,t)=>typeof e=="function"?{...t,accessorFn:e}:{...t,accessorKey:e},display:e=>e,group:e=>e}}function br(e,t){return typeof e=="function"?e(t):e}function wE(){}function Jt(e,t){return n=>{t.setState(r=>({...r,[e]:br(n,r[e])}))}}function rs(e){return e instanceof Function}function Z1(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function If(e,t){const n=[],r=i=>{i.forEach(a=>{n.push(a);const o=t(a);o!=null&&o.length&&r(o)})};return r(e),n}function oe(e,t,n){let r=[],i;return a=>{let o;n.key&&n.debug&&(o=Date.now());const s=e(a);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()-o)*100)/100,d=Math.round((Date.now()-u)*100)/100,h=d/16,f=(g,p)=>{for(g=String(g);g.length<p;)g=" "+g;return g};console.info(`%c⏱ ${f(d,5)} /${f(c,5)} ms`,`
63
63
  font-size: .6rem;
64
64
  font-weight: bold;
65
- color: hsl(${Math.max(0,Math.min(120-120*h,120))}deg 100% 31%);`,n==null?void 0:n.key)}return i}}function se(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 Y1(e,t,n,r){const i=()=>{var o;return(o=a.getValue())!=null?o:e.options.renderFallbackValue},a={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:i,getContext:oe(()=>[e,n,t,a],(o,s,l,u)=>({table:o,column:s,row:l,cell:u,getValue:u.getValue,renderValue:u.renderValue}),se(e.options,"debugCells","cell.getContext"))};return e._features.forEach(o=>{o.createCell==null||o.createCell(a,n,t,e)},{}),a}function U1(e,t,n,r){var i,a;const s={...e._getDefaultColumnDef(),...t},l=s.accessorKey;let u=(i=(a=s.id)!=null?a: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 p of l.split(".")){var g;f=(g=f)==null?void 0:g[p],process.env.NODE_ENV!=="production"&&f===void 0&&console.warn(`"${p}" 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())]},se(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:oe(()=>[e._getOrderColumnsFn()],h=>{var f;if((f=d.columns)!=null&&f.length){let g=d.columns.flatMap(p=>p.getLeafColumns());return h(g)}return[d]},se(e.options,"debugColumns","column.getLeafColumns"))};for(const h of e._features)h.createColumn==null||h.createColumn(d,e);return d}const Et="debugHeaders";function Yg(e,t,n){var r;let a={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 o=[],s=l=>{l.subHeaders&&l.subHeaders.length&&l.subHeaders.map(s),o.push(l)};return s(a),o},getContext:()=>({table:e,header:a,column:t})};return e._features.forEach(o=>{o.createHeader==null||o.createHeader(a,e)}),a}const J1={createTable:e=>{e.getHeaderGroups=oe(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>{var a,o;const s=(a=r==null?void 0:r.map(d=>n.find(h=>h.id===d)).filter(Boolean))!=null?a:[],l=(o=i==null?void 0:i.map(d=>n.find(h=>h.id===d)).filter(Boolean))!=null?o:[],u=n.filter(d=>!(r!=null&&r.includes(d.id))&&!(i!=null&&i.includes(d.id)));return Xa(t,[...s,...u,...l],e)},se(e.options,Et,"getHeaderGroups")),e.getCenterHeaderGroups=oe(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>(n=n.filter(a=>!(r!=null&&r.includes(a.id))&&!(i!=null&&i.includes(a.id))),Xa(t,n,e,"center")),se(e.options,Et,"getCenterHeaderGroups")),e.getLeftHeaderGroups=oe(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var i;const a=(i=r==null?void 0:r.map(o=>n.find(s=>s.id===o)).filter(Boolean))!=null?i:[];return Xa(t,a,e,"left")},se(e.options,Et,"getLeftHeaderGroups")),e.getRightHeaderGroups=oe(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var i;const a=(i=r==null?void 0:r.map(o=>n.find(s=>s.id===o)).filter(Boolean))!=null?i:[];return Xa(t,a,e,"right")},se(e.options,Et,"getRightHeaderGroups")),e.getFooterGroups=oe(()=>[e.getHeaderGroups()],t=>[...t].reverse(),se(e.options,Et,"getFooterGroups")),e.getLeftFooterGroups=oe(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),se(e.options,Et,"getLeftFooterGroups")),e.getCenterFooterGroups=oe(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),se(e.options,Et,"getCenterFooterGroups")),e.getRightFooterGroups=oe(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),se(e.options,Et,"getRightFooterGroups")),e.getFlatHeaders=oe(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),se(e.options,Et,"getFlatHeaders")),e.getLeftFlatHeaders=oe(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),se(e.options,Et,"getLeftFlatHeaders")),e.getCenterFlatHeaders=oe(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),se(e.options,Et,"getCenterFlatHeaders")),e.getRightFlatHeaders=oe(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),se(e.options,Et,"getRightFlatHeaders")),e.getCenterLeafHeaders=oe(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),se(e.options,Et,"getCenterLeafHeaders")),e.getLeftLeafHeaders=oe(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),se(e.options,Et,"getLeftLeafHeaders")),e.getRightLeafHeaders=oe(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),se(e.options,Et,"getRightLeafHeaders")),e.getLeafHeaders=oe(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,n,r)=>{var i,a,o,s,l,u;return[...(i=(a=t[0])==null?void 0:a.headers)!=null?i:[],...(o=(s=n[0])==null?void 0:s.headers)!=null?o:[],...(l=(u=r[0])==null?void 0:u.headers)!=null?l:[]].map(c=>c.getLeafHeaders()).flat()},se(e.options,Et,"getLeafHeaders"))}};function Xa(e,t,n,r){var i,a;let o=0;const s=function(h,f){f===void 0&&(f=1),o=Math.max(o,f),h.filter(g=>g.getIsVisible()).forEach(g=>{var p;(p=g.columns)!=null&&p.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:[]},p=[];h.forEach(b=>{const v=[...p].reverse()[0],y=b.column.depth===g.depth;let x,S=!1;if(y&&b.column.parent?x=b.column.parent:(x=b.column,S=!0),v&&(v==null?void 0:v.column)===x)v.subHeaders.push(b);else{const D=Yg(n,x,{id:[r,f,x.id,b==null?void 0:b.id].filter(Boolean).join("_"),isPlaceholder:S,placeholderId:S?`${p.filter($=>$.column===x).length}`:void 0,depth:f,index:p.length});D.subHeaders.push(b),p.push(D)}g.headers.push(b),b.headerGroup=g}),l.push(g),f>0&&u(p,f-1)},c=t.map((h,f)=>Yg(n,h,{depth:o,index:f}));u(c,o-1),l.reverse();const d=h=>h.filter(g=>g.column.getIsVisible()).map(g=>{let p=0,b=0,v=[0];g.subHeaders&&g.subHeaders.length?(v=[],d(g.subHeaders).forEach(x=>{let{colSpan:S,rowSpan:D}=x;p+=S,v.push(D)})):p=1;const y=Math.min(...v);return b=b+y,g.colSpan=p,g.rowSpan=b,{colSpan:p,rowSpan:b}});return d((i=(a=l[0])==null?void 0:a.headers)!=null?i:[]),l}const is=(e,t,n,r,i,a,o)=>{let s={id:t,index:r,original:n,depth:i,parentId:o,_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:a??[],getLeafRows:()=>If(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=>Y1(e,s,u,u.id)),se(e.options,"debugRows","getAllCells")),_getAllCellsByColumnId:oe(()=>[s.getAllCells()],l=>l.reduce((u,c)=>(u[c.column.id]=c,u),{}),se(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},K1={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()}}},q1=(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))};q1.autoRemove=e=>Tn(e);const Q1=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};Q1.autoRemove=e=>Tn(e);const eb=(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())};eb.autoRemove=e=>Tn(e);const tb=(e,t,n)=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(n)};tb.autoRemove=e=>Tn(e)||!(e!=null&&e.length);const nb=(e,t,n)=>!n.some(r=>{var i;return!((i=e.getValue(t))!=null&&i.includes(r))});nb.autoRemove=e=>Tn(e)||!(e!=null&&e.length);const rb=(e,t,n)=>n.some(r=>{var i;return(i=e.getValue(t))==null?void 0:i.includes(r)});rb.autoRemove=e=>Tn(e)||!(e!=null&&e.length);const ib=(e,t,n)=>e.getValue(t)===n;ib.autoRemove=e=>Tn(e);const ab=(e,t,n)=>e.getValue(t)==n;ab.autoRemove=e=>Tn(e);const _f=(e,t,n)=>{let[r,i]=n;const a=e.getValue(t);return a>=r&&a<=i};_f.resolveFilterValue=e=>{let[t,n]=e,r=typeof t!="number"?parseFloat(t):t,i=typeof n!="number"?parseFloat(n):n,a=t===null||Number.isNaN(r)?-1/0:r,o=n===null||Number.isNaN(i)?1/0:i;if(a>o){const s=a;a=o,o=s}return[a,o]};_f.autoRemove=e=>Tn(e)||Tn(e[0])&&Tn(e[1]);const Xn={includesString:q1,includesStringSensitive:Q1,equalsString:eb,arrIncludes:tb,arrIncludesAll:nb,arrIncludesSome:rb,equals:ib,weakEquals:ab,inNumberRange:_f};function Tn(e){return e==null||e===""}const ob={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:Jt("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"?Xn.includesString:typeof r=="number"?Xn.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?Xn.equals:Array.isArray(r)?Xn.arrIncludes:Xn.weakEquals},e.getFilterFn=()=>{var n,r;return rs(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:Xn[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(),a=r==null?void 0:r.find(c=>c.id===e.id),o=br(n,a?a.value:void 0);if(fd(i,o,e)){var s;return(s=r==null?void 0:r.filter(c=>c.id!==e.id))!=null?s:[]}const l={id:e.id,value:o};if(a){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 a;return(a=br(t,i))==null?void 0:a.filter(o=>{const s=n.find(l=>l.id===o.id);if(s){const l=s.getFilterFn();if(fd(l,o.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 fd(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const DE=(e,t,n)=>n.reduce((r,i)=>{const a=i.getValue(e);return r+(typeof a=="number"?a:0)},0),SE=(e,t,n)=>{let r;return n.forEach(i=>{const a=i.getValue(e);a!=null&&(r>a||r===void 0&&a>=a)&&(r=a)}),r},EE=(e,t,n)=>{let r;return n.forEach(i=>{const a=i.getValue(e);a!=null&&(r<a||r===void 0&&a>=a)&&(r=a)}),r},IE=(e,t,n)=>{let r,i;return n.forEach(a=>{const o=a.getValue(e);o!=null&&(r===void 0?o>=o&&(r=i=o):(r>o&&(r=o),i<o&&(i=o)))}),[r,i]},_E=(e,t)=>{let n=0,r=0;if(t.forEach(i=>{let a=i.getValue(e);a!=null&&(a=+a)>=a&&(++n,r+=a)}),n)return r/n},$E=(e,t)=>{if(!t.length)return;const n=t.map(a=>a.getValue(e));if(!Z1(n))return;if(n.length===1)return n[0];const r=Math.floor(n.length/2),i=n.sort((a,o)=>a-o);return n.length%2!==0?i[r]:(i[r-1]+i[r])/2},RE=(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),AE=(e,t)=>new Set(t.map(n=>n.getValue(e))).size,FE=(e,t)=>t.length,ul={sum:DE,min:SE,max:EE,extent:IE,mean:_E,median:$E,unique:RE,uniqueCount:AE,count:FE},sb={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:Jt("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 ul.sum;if(Object.prototype.toString.call(r)==="[object Date]")return ul.extent},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return rs(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:ul[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 lb(e,t,n){if(!(t!=null&&t.length)||!n)return e;const r=e.filter(a=>!t.includes(a.id));return n==="remove"?r:[...t.map(a=>e.find(o=>o.id===a)).filter(Boolean),...r]}const ub={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Jt("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=oe(n=>[sa(t,n)],n=>n.findIndex(r=>r.id===e.id),se(t.options,"debugColumns","getIndex")),e.getIsFirstColumn=n=>{var r;return((r=sa(t,n)[0])==null?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const i=sa(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 a=[];if(!(t!=null&&t.length))a=i;else{const o=[...t],s=[...i];for(;s.length&&o.length;){const l=o.shift(),u=s.findIndex(c=>c.id===l);u>-1&&a.push(s.splice(u,1)[0])}a=[...a,...s]}return lb(a,n,r)},se(e.options,"debugTable","_getOrderColumnsFn"))}},lc=()=>({left:[],right:[]}),cb={getInitialState:e=>({columnPinning:lc(),...e}),getDefaultOptions:e=>({onColumnPinningChange:Jt("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map(i=>i.id).filter(Boolean);t.setColumnPinning(i=>{var a,o;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:((a=i==null?void 0:i.left)!=null?a:[]).filter(d=>!(r!=null&&r.includes(d))),right:((o=i==null?void 0:i.right)!=null?o:[]).filter(d=>!(r!=null&&r.includes(d)))}})},e.getCanPin=()=>e.getLeafColumns().some(r=>{var i,a,o;return((i=r.columnDef.enablePinning)!=null?i:!0)&&((a=(o=t.options.enableColumnPinning)!=null?o:t.options.enablePinning)!=null?a:!0)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(s=>s.id),{left:r,right:i}=t.getState().columnPinning,a=n.some(s=>r==null?void 0:r.includes(s)),o=n.some(s=>i==null?void 0:i.includes(s));return a?"left":o?"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 a=[...r??[],...i??[]];return n.filter(o=>!a.includes(o.column.id))},se(t.options,"debugRows","getCenterVisibleCells")),e.getLeftVisibleCells=oe(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(n,r)=>(r??[]).map(a=>n.find(o=>o.column.id===a)).filter(Boolean).map(a=>({...a,position:"left"})),se(t.options,"debugRows","getLeftVisibleCells")),e.getRightVisibleCells=oe(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(n,r)=>(r??[]).map(a=>n.find(o=>o.column.id===a)).filter(Boolean).map(a=>({...a,position:"right"})),se(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?lc():(n=(r=e.initialState)==null?void 0:r.columnPinning)!=null?n:lc())},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;if(!t){var i,a;return!!((i=r.left)!=null&&i.length||(a=r.right)!=null&&a.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),se(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),se(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(a=>!i.includes(a.id))},se(e.options,"debugColumns","getCenterLeafColumns"))}},Za={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},uc=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),db={getDefaultColumnDef:()=>Za,getInitialState:e=>({columnSizing:{},columnSizingInfo:uc(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Jt("columnSizing",e),onColumnSizingInfoChange:Jt("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,i;const a=t.getState().columnSizing[e.id];return Math.min(Math.max((n=e.columnDef.minSize)!=null?n:Za.minSize,(r=a??e.columnDef.size)!=null?r:Za.size),(i=e.columnDef.maxSize)!=null?i:Za.maxSize)},e.getStart=oe(n=>[n,sa(t,n),t.getState().columnSizing],(n,r)=>r.slice(0,e.getIndex(n)).reduce((i,a)=>i+a.getSize(),0),se(t.options,"debugColumns","getStart")),e.getAfter=oe(n=>[n,sa(t,n),t.getState().columnSizing],(n,r)=>r.slice(e.getIndex(n)+1).reduce((i,a)=>i+a.getSize(),0),se(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 a;n+=(a=i.column.getSize())!=null?a: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 a=>{if(!r||!i||(a.persist==null||a.persist(),cc(a)&&a.touches&&a.touches.length>1))return;const o=e.getSize(),s=e?e.getLeafHeaders().map(v=>[v.column.id,v.column.getSize()]):[[r.id,r.getSize()]],l=cc(a)?Math.round(a.touches[0].clientX):a.clientX,u={},c=(v,y)=>{typeof y=="number"&&(t.setColumnSizingInfo(x=>{var S,D;const $=t.options.columnResizeDirection==="rtl"?-1:1,F=(y-((S=x==null?void 0:x.startOffset)!=null?S:0))*$,m=Math.max(F/((D=x==null?void 0:x.startSize)!=null?D:0),-.999999);return x.columnSizingStart.forEach(C=>{let[I,E]=C;u[I]=Math.round(Math.max(E+E*m,0)*100)/100}),{...x,deltaOffset:F,deltaPercentage:m}}),(t.options.columnResizeMode==="onChange"||v==="end")&&t.setColumnSizing(x=>({...x,...u})))},d=v=>c("move",v),h=v=>{c("end",v),t.setColumnSizingInfo(y=>({...y,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},f=n||typeof document<"u"?document:null,g={moveHandler:v=>d(v.clientX),upHandler:v=>{f==null||f.removeEventListener("mousemove",g.moveHandler),f==null||f.removeEventListener("mouseup",g.upHandler),h(v.clientX)}},p={moveHandler:v=>(v.cancelable&&(v.preventDefault(),v.stopPropagation()),d(v.touches[0].clientX),!1),upHandler:v=>{var y;f==null||f.removeEventListener("touchmove",p.moveHandler),f==null||f.removeEventListener("touchend",p.upHandler),v.cancelable&&(v.preventDefault(),v.stopPropagation()),h((y=v.touches[0])==null?void 0:y.clientX)}},b=fb()?{passive:!1}:!1;cc(a)?(f==null||f.addEventListener("touchmove",p.moveHandler,b),f==null||f.addEventListener("touchend",p.upHandler,b)):(f==null||f.addEventListener("mousemove",g.moveHandler,b),f==null||f.addEventListener("mouseup",g.upHandler,b)),t.setColumnSizingInfo(v=>({...v,startOffset:l,startSize:o,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?uc():(n=e.initialState.columnSizingInfo)!=null?n:uc())},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 $s=null;function fb(){if(typeof $s=="boolean")return $s;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 $s=e,$s}function cc(e){return e.type==="touchstart"}const hb={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Jt("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(a=>a.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()),se(t.options,"debugRows","_getAllVisibleCells")),e.getVisibleCells=oe(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,r,i)=>[...n,...r,...i],se(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(a=>a.getIsVisible==null?void 0:a.getIsVisible()),se(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,a)=>({...i,[a.id]:n||!(a.getCanHide!=null&&a.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 sa(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const gb={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()}}},mb={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:Jt("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,a;return((n=e.columnDef.enableGlobalFilter)!=null?n:!0)&&((r=t.options.enableGlobalFilter)!=null?r:!0)&&((i=t.options.enableFilters)!=null?i:!0)&&((a=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?a:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>Xn.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return rs(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[r])!=null?t:Xn[r]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},pb={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Jt("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,a;e.setExpanded(r?{}:(i=(a=e.initialState)==null?void 0:a.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(a=>{const o=a.split(".");r=Math.max(r,o.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 a=r===!0?!0:!!(r!=null&&r[e.id]);let o={};if(r===!0?Object.keys(t.getRowModel().rowsById).forEach(s=>{o[s]=!0}):o=r,n=(i=n)!=null?i:!a,!a&&n)return{...o,[e.id]:!0};if(a&&!n){const{[e.id]:s,...l}=o;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()}}}},hd=0,gd=10,dc=()=>({pageIndex:hd,pageSize:gd}),bb={getInitialState:e=>({...e,pagination:{...dc(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:Jt("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=a=>br(r,a);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(i)},e.resetPagination=r=>{var i;e.setPagination(r?dc():(i=e.initialState.pagination)!=null?i:dc())},e.setPageIndex=r=>{e.setPagination(i=>{let a=br(r,i.pageIndex);const o=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return a=Math.max(0,Math.min(a,o)),{...i,pageIndex:a}})},e.resetPageIndex=r=>{var i,a;e.setPageIndex(r?hd:(i=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageIndex)!=null?i:hd)},e.resetPageSize=r=>{var i,a;e.setPageSize(r?gd:(i=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageSize)!=null?i:gd)},e.setPageSize=r=>{e.setPagination(i=>{const a=Math.max(1,br(r,i.pageSize)),o=i.pageSize*i.pageIndex,s=Math.floor(o/a);return{...i,pageIndex:s,pageSize:a}})},e.setPageCount=r=>e.setPagination(i=>{var a;let o=br(r,(a=e.options.pageCount)!=null?a:-1);return typeof o=="number"&&(o=Math.max(-1,o)),{...i,pageCount:o}}),e.getPageOptions=oe(()=>[e.getPageCount()],r=>{let i=[];return r&&r>0&&(i=[...new Array(r)].fill(null).map((a,o)=>o)),i},se(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}}},fc=()=>({top:[],bottom:[]}),vb={getInitialState:e=>({rowPinning:fc(),...e}),getDefaultOptions:e=>({onRowPinningChange:Jt("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,r,i)=>{const a=r?e.getLeafRows().map(l=>{let{id:u}=l;return u}):[],o=i?e.getParentRows().map(l=>{let{id:u}=l;return u}):[],s=new Set([...o,e.id,...a]);t.setRowPinning(l=>{var u,c;if(n==="bottom"){var d,h;return{top:((d=l==null?void 0:l.top)!=null?d:[]).filter(p=>!(s!=null&&s.has(p))),bottom:[...((h=l==null?void 0:l.bottom)!=null?h:[]).filter(p=>!(s!=null&&s.has(p))),...Array.from(s)]}}if(n==="top"){var f,g;return{top:[...((f=l==null?void 0:l.top)!=null?f:[]).filter(p=>!(s!=null&&s.has(p))),...Array.from(s)],bottom:((g=l==null?void 0:l.bottom)!=null?g:[]).filter(p=>!(s!=null&&s.has(p)))}}return{top:((u=l==null?void 0:l.top)!=null?u:[]).filter(p=>!(s!=null&&s.has(p))),bottom:((c=l==null?void 0:l.bottom)!=null?c:[]).filter(p=>!(s!=null&&s.has(p)))}})},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,a=n.some(s=>r==null?void 0:r.includes(s)),o=n.some(s=>i==null?void 0:i.includes(s));return a?"top":o?"bottom":!1},e.getPinnedIndex=()=>{var n,r;const i=e.getIsPinned();if(!i)return-1;const a=(n=i==="top"?t.getTopRows():t.getBottomRows())==null?void 0:n.map(o=>{let{id:s}=o;return s});return(r=a==null?void 0:a.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?fc():(n=(r=e.initialState)==null?void 0:r.rowPinning)!=null?n:fc())},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;if(!t){var i,a;return!!((i=r.top)!=null&&i.length||(a=r.bottom)!=null&&a.length)}return!!((n=r[t])!=null&&n.length)},e._getPinnedRows=(t,n,r)=>{var i;return((i=e.options.keepPinnedRows)==null||i?(n??[]).map(o=>{const s=e.getRow(o,!0);return s.getIsAllParentsExpanded()?s:null}):(n??[]).map(o=>t.find(s=>s.id===o))).filter(Boolean).map(o=>({...o,position:r}))},e.getTopRows=oe(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),se(e.options,"debugRows","getTopRows")),e.getBottomRows=oe(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),se(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(a=>!i.has(a.id))},se(e.options,"debugRows","getCenterRows"))}},yb={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Jt("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(a=>{a.getCanSelect()&&(r[a.id]=!0)}):i.forEach(a=>{delete r[a.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const r=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),i={...n};return e.getRowModel().rows.forEach(a=>{md(i,a.id,r,!0,e)}),i}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=oe(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?cl(e,n):{rows:[],flatRows:[],rowsById:{}},se(e.options,"debugTable","getSelectedRowModel")),e.getFilteredSelectedRowModel=oe(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?cl(e,n):{rows:[],flatRows:[],rowsById:{}},se(e.options,"debugTable","getFilteredSelectedRowModel")),e.getGroupedSelectedRowModel=oe(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?cl(e,n):{rows:[],flatRows:[],rowsById:{}},se(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(a=>{var o;if(n=typeof n<"u"?n:!i,e.getCanSelect()&&i===n)return a;const s={...a};return md(s,e.id,n,(o=r==null?void 0:r.selectChildren)!=null?o:!0,t),s})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return Su(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return Bl(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return Bl(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)}}}},md=(e,t,n,r,i)=>{var a;const o=i.getRow(t,!0);n?(o.getCanMultiSelect()||Object.keys(e).forEach(s=>delete e[s]),o.getCanSelect()&&(e[t]=!0)):delete e[t],r&&(a=o.subRows)!=null&&a.length&&o.getCanSelectSubRows()&&o.subRows.forEach(s=>md(e,s.id,n,r,i))};function cl(e,t){const n=e.getState().rowSelection,r=[],i={},a=function(o,s){return o.map(l=>{var u;const c=Su(l,n);if(c&&(r.push(l),i[l.id]=l),(u=l.subRows)!=null&&u.length&&(l={...l,subRows:a(l.subRows)}),c)return l}).filter(Boolean)};return{rows:a(t.rows),flatRows:r,rowsById:i}}function Su(e,t){var n;return(n=t[e.id])!=null?n:!1}function Bl(e,t,n){var r;if(!((r=e.subRows)!=null&&r.length))return!1;let i=!0,a=!1;return e.subRows.forEach(o=>{if(!(a&&!i)&&(o.getCanSelect()&&(Su(o,t)?a=!0:i=!1),o.subRows&&o.subRows.length)){const s=Bl(o,t);s==="all"?a=!0:(s==="some"&&(a=!0),i=!1)}}),i?"all":a?"some":!1}const Ol=/([0-9]+)/gm,TE=(e,t,n)=>xb(Xr(e.getValue(n)).toLowerCase(),Xr(t.getValue(n)).toLowerCase()),PE=(e,t,n)=>xb(Xr(e.getValue(n)),Xr(t.getValue(n))),kE=(e,t,n)=>$f(Xr(e.getValue(n)).toLowerCase(),Xr(t.getValue(n)).toLowerCase()),ME=(e,t,n)=>$f(Xr(e.getValue(n)),Xr(t.getValue(n))),BE=(e,t,n)=>{const r=e.getValue(n),i=t.getValue(n);return r>i?1:r<i?-1:0},OE=(e,t,n)=>$f(e.getValue(n),t.getValue(n));function $f(e,t){return e===t?0:e>t?1:-1}function Xr(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function xb(e,t){const n=e.split(Ol).filter(Boolean),r=t.split(Ol).filter(Boolean);for(;n.length&&r.length;){const i=n.shift(),a=r.shift(),o=parseInt(i,10),s=parseInt(a,10),l=[o,s].sort();if(isNaN(l[0])){if(i>a)return 1;if(a>i)return-1;continue}if(isNaN(l[1]))return isNaN(o)?-1:1;if(o>s)return 1;if(s>o)return-1}return n.length-r.length}const ea={alphanumeric:TE,alphanumericCaseSensitive:PE,text:kE,textCaseSensitive:ME,datetime:BE,basic:OE},Cb={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Jt("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 a=i==null?void 0:i.getValue(e.id);if(Object.prototype.toString.call(a)==="[object Date]")return ea.datetime;if(typeof a=="string"&&(r=!0,a.split(Ol).length>1))return ea.alphanumeric}return r?ea.text:ea.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 rs(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:ea[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const i=e.getNextSortingOrder(),a=typeof n<"u"&&n!==null;t.setSorting(o=>{const s=o==null?void 0:o.find(f=>f.id===e.id),l=o==null?void 0:o.findIndex(f=>f.id===e.id);let u=[],c,d=a?n:i==="desc";if(o!=null&&o.length&&e.getCanMultiSort()&&r?s?c="toggle":c="add":o!=null&&o.length&&l!==o.length-1?c="replace":s?c="toggle":c="replace",c==="toggle"&&(a||i||(c="remove")),c==="add"){var h;u=[...o,{id:e.id,desc:d}],u.splice(0,u.length-((h=t.options.maxMultiSortColCount)!=null?h:Number.MAX_SAFE_INTEGER))}else c==="toggle"?u=o.map(f=>f.id===e.id?{...f,desc:d}:f):c==="remove"?u=o.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 a=e.getFirstSortDir(),o=e.getIsSorted();return o?o!==a&&((r=t.options.enableSortingRemoval)==null||r)&&(!(n&&(i=t.options.enableMultiRemove)!=null)||i)?!1:o==="desc"?"asc":"desc":a},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())}},NE=[J1,hb,ub,cb,K1,ob,gb,mb,Cb,sb,pb,bb,vb,yb,db];function wb(e){var t,n;process.env.NODE_ENV!=="production"&&(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");const r=[...NE,...(t=e._features)!=null?t:[]];let i={_features:r};const a=i._features.reduce((h,f)=>Object.assign(h,f.getDefaultOptions==null?void 0:f.getDefaultOptions(i)),{}),o=h=>i.options.mergeOptions?i.options.mergeOptions(a,h):{...a,...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:{...a,...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=br(h,i.options);i.options=o(f)},getState:()=>i.options.state,setState:h=>{i.options.onStateChange==null||i.options.onStateChange(h)},_getRowId:(h,f,g)=>{var p;return(p=i.options.getRowId==null?void 0:i.options.getRowId(h,f,g))!=null?p:`${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 p=g.header.column.columnDef;return p.accessorKey?p.accessorKey:p.accessorFn?p.id:null},cell:g=>{var p,b;return(p=(b=g.renderValue())==null||b.toString==null?void 0:b.toString())!=null?p:null},...i._features.reduce((g,p)=>Object.assign(g,p.getDefaultColumnDef==null?void 0:p.getDefaultColumnDef()),{}),...h}},se(e,"debugColumns","_getDefaultColumnDef")),_getColumnDefs:()=>i.options.columns,getAllColumns:oe(()=>[i._getColumnDefs()],h=>{const f=function(g,p,b){return b===void 0&&(b=0),g.map(v=>{const y=U1(i,v,b,p),x=v;return y.columns=x.columns?f(x.columns,y,b+1):[],y})};return f(h)},se(e,"debugColumns","getAllColumns")),getAllFlatColumns:oe(()=>[i.getAllColumns()],h=>h.flatMap(f=>f.getFlatColumns()),se(e,"debugColumns","getAllFlatColumns")),_getAllFlatColumnsById:oe(()=>[i.getAllFlatColumns()],h=>h.reduce((f,g)=>(f[g.id]=g,f),{}),se(e,"debugColumns","getAllFlatColumnsById")),getAllLeafColumns:oe(()=>[i.getAllColumns(),i._getOrderColumnsFn()],(h,f)=>{let g=h.flatMap(p=>p.getLeafColumns());return f(g)},se(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 VE(){return e=>oe(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(i,a,o){a===void 0&&(a=0);const s=[];for(let u=0;u<i.length;u++){const c=is(e,e._getRowId(i[u],u,o),i[u],u,a,void 0,o==null?void 0:o.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,a+1,c))}}return s};return n.rows=r(t),n},se(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}function LE(){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:Rf(n),se(e.options,"debugTable","getExpandedRowModel"))}function Rf(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 HE(){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 a=[i,i];for(let o=0;o<n.flatRows.length;o++){const s=n.flatRows[o].getUniqueValues(t);for(let l=0;l<s.length;l++){const u=s[l];u<a[0]?a[0]=u:u>a[1]&&(a[1]=u)}}return a},se(e.options,"debugTable","getFacetedMinMaxValues"))}function Db(e,t,n){return n.options.filterFromLeafRows?jE(e,t,n):WE(e,t,n)}function jE(e,t,n){var r;const i=[],a={},o=(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=is(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<o){if(g.subRows=s(f.subRows,u+1),f=g,t(f)&&!g.subRows.length){c.push(f),a[f.id]=f,i.push(f);continue}if(t(f)||g.subRows.length){c.push(f),a[f.id]=f,i.push(f);continue}}else f=g,t(f)&&(c.push(f),a[f.id]=f,i.push(f))}return c};return{rows:s(e),flatRows:i,rowsById:a}}function WE(e,t,n){var r;const i=[],a={},o=(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<o){const p=is(n,f.id,f.original,f.index,f.depth,void 0,f.parentId);p.subRows=s(f.subRows,u+1),f=p}c.push(f),i.push(f),a[f.id]=f}}return c};return{rows:s(e),flatRows:i,rowsById:a}}function zE(){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 a=[...r.map(s=>s.id).filter(s=>s!==t),i?"__global__":void 0].filter(Boolean),o=s=>{for(let l=0;l<a.length;l++)if(s.columnFilters[a[l]]===!1)return!1;return!0};return Db(n.rows,o,e)},se(e.options,"debugTable","getFacetedRowModel"))}function GE(){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 a=0;a<n.flatRows.length;a++){const o=n.flatRows[a].getUniqueValues(t);for(let s=0;s<o.length;s++){const l=o[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},se(e.options,"debugTable",`getFacetedUniqueValues_${t}`))}function XE(){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=[],a=[];(n??[]).forEach(h=>{var f;const g=e.getColumn(h.id);if(!g)return;const p=g.getFilterFn();if(!p){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:p,resolvedValue:(f=p.resolveFilterValue==null?void 0:p.resolveFilterValue(h.value))!=null?f:h.value})});const o=(n??[]).map(h=>h.id),s=e.getGlobalFilterFn(),l=e.getAllLeafColumns().filter(h=>h.getCanGlobalFilter());r&&s&&l.length&&(o.push("__global__"),l.forEach(h=>{var f;a.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 p=u.id;f.columnFilters[p]=u.filterFn(f,p,u.resolvedValue,b=>{f.columnFiltersMeta[p]=b})}if(a.length){for(let g=0;g<a.length;g++){c=a[g];const p=c.id;if(c.filterFn(f,p,c.resolvedValue,b=>{f.columnFiltersMeta[p]=b})){f.columnFilters.__global__=!0;break}}f.columnFilters.__global__!==!0&&(f.columnFilters.__global__=!1)}}const d=h=>{for(let f=0;f<o.length;f++)if(h.columnFilters[o[f]]===!1)return!1;return!0};return Db(t.rows,d,e)},se(e.options,"debugTable","getFilteredRowModel",()=>e._autoResetPageIndex()))}function ZE(){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=[],a={},o=function(l,u,c){if(u===void 0&&(u=0),u>=r.length)return l.map(g=>(g.depth=u,i.push(g),a[g.id]=g,g.subRows&&(g.subRows=o(g.subRows,u+1,g.id)),g));const d=r[u],h=YE(l,d);return Array.from(h.entries()).map((g,p)=>{let[b,v]=g,y=`${d}:${b}`;y=c?`${c}>${y}`:y;const x=o(v,u+1,y),S=u?If(v,$=>$.subRows):v,D=is(e,y,S[0].original,p,u,void 0,c);return Object.assign(D,{groupingColumnId:d,groupingValue:b,subRows:x,leafRows:S,getValue:$=>{if(r.includes($)){if(D._valuesCache.hasOwnProperty($))return D._valuesCache[$];if(v[0]){var F;D._valuesCache[$]=(F=v[0].getValue($))!=null?F:void 0}return D._valuesCache[$]}if(D._groupingValuesCache.hasOwnProperty($))return D._groupingValuesCache[$];const m=e.getColumn($),C=m==null?void 0:m.getAggregationFn();if(C)return D._groupingValuesCache[$]=C($,S,v),D._groupingValuesCache[$]}}),x.forEach($=>{i.push($),a[$.id]=$}),D})},s=o(n.rows,0);return s.forEach(l=>{i.push(l),a[l.id]=l}),{rows:s,flatRows:i,rowsById:a}},se(e.options,"debugTable","getGroupedRowModel",()=>{e._queue(()=>{e._autoResetExpanded(),e._autoResetPageIndex()})}))}function YE(e,t){const n=new Map;return e.reduce((r,i)=>{const a=`${i.getGroupingValue(t)}`,o=r.get(a);return o?o.push(i):r.set(a,[i]),r},n)}function UE(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:a}=n;let{rows:o,flatRows:s,rowsById:l}=r;const u=i*a,c=u+i;o=o.slice(u,c);let d;t.options.paginateExpandedRows?d={rows:o,flatRows:s,rowsById:l}:d=Rf({rows:o,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},se(t.options,"debugTable","getPaginationRowModel"))}function JE(){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=[],a=r.filter(l=>{var u;return(u=e.getColumn(l.id))==null?void 0:u.getCanSort()}),o={};a.forEach(l=>{const u=e.getColumn(l.id);u&&(o[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<a.length;f+=1){var h;const g=a[f],p=o[g.id],b=p.sortUndefined,v=(h=g==null?void 0:g.desc)!=null?h:!1;let y=0;if(b){const x=c.getValue(g.id),S=d.getValue(g.id),D=x===void 0,$=S===void 0;if(D||$){if(b==="first")return D?-1:1;if(b==="last")return D?1:-1;y=D&&$?0:D?b:-b}}if(y===0&&(y=p.sortingFn(c,d,g.id)),y!==0)return v&&(y*=-1),p.invertSorting&&(y*=-1),y}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}},se(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex()))}/**
65
+ color: hsl(${Math.max(0,Math.min(120-120*h,120))}deg 100% 31%);`,n==null?void 0:n.key)}return i}}function se(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 Y1(e,t,n,r){const i=()=>{var o;return(o=a.getValue())!=null?o:e.options.renderFallbackValue},a={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:i,getContext:oe(()=>[e,n,t,a],(o,s,l,u)=>({table:o,column:s,row:l,cell:u,getValue:u.getValue,renderValue:u.renderValue}),se(e.options,"debugCells","cell.getContext"))};return e._features.forEach(o=>{o.createCell==null||o.createCell(a,n,t,e)},{}),a}function U1(e,t,n,r){var i,a;const s={...e._getDefaultColumnDef(),...t},l=s.accessorKey;let u=(i=(a=s.id)!=null?a: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 p of l.split(".")){var g;f=(g=f)==null?void 0:g[p],process.env.NODE_ENV!=="production"&&f===void 0&&console.warn(`"${p}" 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())]},se(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:oe(()=>[e._getOrderColumnsFn()],h=>{var f;if((f=d.columns)!=null&&f.length){let g=d.columns.flatMap(p=>p.getLeafColumns());return h(g)}return[d]},se(e.options,"debugColumns","column.getLeafColumns"))};for(const h of e._features)h.createColumn==null||h.createColumn(d,e);return d}const Et="debugHeaders";function Yg(e,t,n){var r;let a={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 o=[],s=l=>{l.subHeaders&&l.subHeaders.length&&l.subHeaders.map(s),o.push(l)};return s(a),o},getContext:()=>({table:e,header:a,column:t})};return e._features.forEach(o=>{o.createHeader==null||o.createHeader(a,e)}),a}const J1={createTable:e=>{e.getHeaderGroups=oe(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>{var a,o;const s=(a=r==null?void 0:r.map(d=>n.find(h=>h.id===d)).filter(Boolean))!=null?a:[],l=(o=i==null?void 0:i.map(d=>n.find(h=>h.id===d)).filter(Boolean))!=null?o:[],u=n.filter(d=>!(r!=null&&r.includes(d.id))&&!(i!=null&&i.includes(d.id)));return Xa(t,[...s,...u,...l],e)},se(e.options,Et,"getHeaderGroups")),e.getCenterHeaderGroups=oe(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>(n=n.filter(a=>!(r!=null&&r.includes(a.id))&&!(i!=null&&i.includes(a.id))),Xa(t,n,e,"center")),se(e.options,Et,"getCenterHeaderGroups")),e.getLeftHeaderGroups=oe(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var i;const a=(i=r==null?void 0:r.map(o=>n.find(s=>s.id===o)).filter(Boolean))!=null?i:[];return Xa(t,a,e,"left")},se(e.options,Et,"getLeftHeaderGroups")),e.getRightHeaderGroups=oe(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var i;const a=(i=r==null?void 0:r.map(o=>n.find(s=>s.id===o)).filter(Boolean))!=null?i:[];return Xa(t,a,e,"right")},se(e.options,Et,"getRightHeaderGroups")),e.getFooterGroups=oe(()=>[e.getHeaderGroups()],t=>[...t].reverse(),se(e.options,Et,"getFooterGroups")),e.getLeftFooterGroups=oe(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),se(e.options,Et,"getLeftFooterGroups")),e.getCenterFooterGroups=oe(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),se(e.options,Et,"getCenterFooterGroups")),e.getRightFooterGroups=oe(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),se(e.options,Et,"getRightFooterGroups")),e.getFlatHeaders=oe(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),se(e.options,Et,"getFlatHeaders")),e.getLeftFlatHeaders=oe(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),se(e.options,Et,"getLeftFlatHeaders")),e.getCenterFlatHeaders=oe(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),se(e.options,Et,"getCenterFlatHeaders")),e.getRightFlatHeaders=oe(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),se(e.options,Et,"getRightFlatHeaders")),e.getCenterLeafHeaders=oe(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),se(e.options,Et,"getCenterLeafHeaders")),e.getLeftLeafHeaders=oe(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),se(e.options,Et,"getLeftLeafHeaders")),e.getRightLeafHeaders=oe(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),se(e.options,Et,"getRightLeafHeaders")),e.getLeafHeaders=oe(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,n,r)=>{var i,a,o,s,l,u;return[...(i=(a=t[0])==null?void 0:a.headers)!=null?i:[],...(o=(s=n[0])==null?void 0:s.headers)!=null?o:[],...(l=(u=r[0])==null?void 0:u.headers)!=null?l:[]].map(c=>c.getLeafHeaders()).flat()},se(e.options,Et,"getLeafHeaders"))}};function Xa(e,t,n,r){var i,a;let o=0;const s=function(h,f){f===void 0&&(f=1),o=Math.max(o,f),h.filter(g=>g.getIsVisible()).forEach(g=>{var p;(p=g.columns)!=null&&p.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:[]},p=[];h.forEach(b=>{const v=[...p].reverse()[0],y=b.column.depth===g.depth;let x,S=!1;if(y&&b.column.parent?x=b.column.parent:(x=b.column,S=!0),v&&(v==null?void 0:v.column)===x)v.subHeaders.push(b);else{const D=Yg(n,x,{id:[r,f,x.id,b==null?void 0:b.id].filter(Boolean).join("_"),isPlaceholder:S,placeholderId:S?`${p.filter($=>$.column===x).length}`:void 0,depth:f,index:p.length});D.subHeaders.push(b),p.push(D)}g.headers.push(b),b.headerGroup=g}),l.push(g),f>0&&u(p,f-1)},c=t.map((h,f)=>Yg(n,h,{depth:o,index:f}));u(c,o-1),l.reverse();const d=h=>h.filter(g=>g.column.getIsVisible()).map(g=>{let p=0,b=0,v=[0];g.subHeaders&&g.subHeaders.length?(v=[],d(g.subHeaders).forEach(x=>{let{colSpan:S,rowSpan:D}=x;p+=S,v.push(D)})):p=1;const y=Math.min(...v);return b=b+y,g.colSpan=p,g.rowSpan=b,{colSpan:p,rowSpan:b}});return d((i=(a=l[0])==null?void 0:a.headers)!=null?i:[]),l}const is=(e,t,n,r,i,a,o)=>{let s={id:t,index:r,original:n,depth:i,parentId:o,_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:a??[],getLeafRows:()=>If(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=>Y1(e,s,u,u.id)),se(e.options,"debugRows","getAllCells")),_getAllCellsByColumnId:oe(()=>[s.getAllCells()],l=>l.reduce((u,c)=>(u[c.column.id]=c,u),{}),se(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},K1={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()}}},q1=(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))};q1.autoRemove=e=>Tn(e);const Q1=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};Q1.autoRemove=e=>Tn(e);const eb=(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())};eb.autoRemove=e=>Tn(e);const tb=(e,t,n)=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(n)};tb.autoRemove=e=>Tn(e)||!(e!=null&&e.length);const nb=(e,t,n)=>!n.some(r=>{var i;return!((i=e.getValue(t))!=null&&i.includes(r))});nb.autoRemove=e=>Tn(e)||!(e!=null&&e.length);const rb=(e,t,n)=>n.some(r=>{var i;return(i=e.getValue(t))==null?void 0:i.includes(r)});rb.autoRemove=e=>Tn(e)||!(e!=null&&e.length);const ib=(e,t,n)=>e.getValue(t)===n;ib.autoRemove=e=>Tn(e);const ab=(e,t,n)=>e.getValue(t)==n;ab.autoRemove=e=>Tn(e);const _f=(e,t,n)=>{let[r,i]=n;const a=e.getValue(t);return a>=r&&a<=i};_f.resolveFilterValue=e=>{let[t,n]=e,r=typeof t!="number"?parseFloat(t):t,i=typeof n!="number"?parseFloat(n):n,a=t===null||Number.isNaN(r)?-1/0:r,o=n===null||Number.isNaN(i)?1/0:i;if(a>o){const s=a;a=o,o=s}return[a,o]};_f.autoRemove=e=>Tn(e)||Tn(e[0])&&Tn(e[1]);const Xn={includesString:q1,includesStringSensitive:Q1,equalsString:eb,arrIncludes:tb,arrIncludesAll:nb,arrIncludesSome:rb,equals:ib,weakEquals:ab,inNumberRange:_f};function Tn(e){return e==null||e===""}const ob={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:Jt("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"?Xn.includesString:typeof r=="number"?Xn.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?Xn.equals:Array.isArray(r)?Xn.arrIncludes:Xn.weakEquals},e.getFilterFn=()=>{var n,r;return rs(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:Xn[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(),a=r==null?void 0:r.find(c=>c.id===e.id),o=br(n,a?a.value:void 0);if(fd(i,o,e)){var s;return(s=r==null?void 0:r.filter(c=>c.id!==e.id))!=null?s:[]}const l={id:e.id,value:o};if(a){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 a;return(a=br(t,i))==null?void 0:a.filter(o=>{const s=n.find(l=>l.id===o.id);if(s){const l=s.getFilterFn();if(fd(l,o.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 fd(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const DE=(e,t,n)=>n.reduce((r,i)=>{const a=i.getValue(e);return r+(typeof a=="number"?a:0)},0),SE=(e,t,n)=>{let r;return n.forEach(i=>{const a=i.getValue(e);a!=null&&(r>a||r===void 0&&a>=a)&&(r=a)}),r},EE=(e,t,n)=>{let r;return n.forEach(i=>{const a=i.getValue(e);a!=null&&(r<a||r===void 0&&a>=a)&&(r=a)}),r},IE=(e,t,n)=>{let r,i;return n.forEach(a=>{const o=a.getValue(e);o!=null&&(r===void 0?o>=o&&(r=i=o):(r>o&&(r=o),i<o&&(i=o)))}),[r,i]},_E=(e,t)=>{let n=0,r=0;if(t.forEach(i=>{let a=i.getValue(e);a!=null&&(a=+a)>=a&&(++n,r+=a)}),n)return r/n},$E=(e,t)=>{if(!t.length)return;const n=t.map(a=>a.getValue(e));if(!Z1(n))return;if(n.length===1)return n[0];const r=Math.floor(n.length/2),i=n.sort((a,o)=>a-o);return n.length%2!==0?i[r]:(i[r-1]+i[r])/2},RE=(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),AE=(e,t)=>new Set(t.map(n=>n.getValue(e))).size,FE=(e,t)=>t.length,ul={sum:DE,min:SE,max:EE,extent:IE,mean:_E,median:$E,unique:RE,uniqueCount:AE,count:FE},sb={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:Jt("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 ul.sum;if(Object.prototype.toString.call(r)==="[object Date]")return ul.extent},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return rs(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:ul[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 lb(e,t,n){if(!(t!=null&&t.length)||!n)return e;const r=e.filter(a=>!t.includes(a.id));return n==="remove"?r:[...t.map(a=>e.find(o=>o.id===a)).filter(Boolean),...r]}const ub={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Jt("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=oe(n=>[la(t,n)],n=>n.findIndex(r=>r.id===e.id),se(t.options,"debugColumns","getIndex")),e.getIsFirstColumn=n=>{var r;return((r=la(t,n)[0])==null?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const i=la(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 a=[];if(!(t!=null&&t.length))a=i;else{const o=[...t],s=[...i];for(;s.length&&o.length;){const l=o.shift(),u=s.findIndex(c=>c.id===l);u>-1&&a.push(s.splice(u,1)[0])}a=[...a,...s]}return lb(a,n,r)},se(e.options,"debugTable","_getOrderColumnsFn"))}},lc=()=>({left:[],right:[]}),cb={getInitialState:e=>({columnPinning:lc(),...e}),getDefaultOptions:e=>({onColumnPinningChange:Jt("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map(i=>i.id).filter(Boolean);t.setColumnPinning(i=>{var a,o;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:((a=i==null?void 0:i.left)!=null?a:[]).filter(d=>!(r!=null&&r.includes(d))),right:((o=i==null?void 0:i.right)!=null?o:[]).filter(d=>!(r!=null&&r.includes(d)))}})},e.getCanPin=()=>e.getLeafColumns().some(r=>{var i,a,o;return((i=r.columnDef.enablePinning)!=null?i:!0)&&((a=(o=t.options.enableColumnPinning)!=null?o:t.options.enablePinning)!=null?a:!0)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(s=>s.id),{left:r,right:i}=t.getState().columnPinning,a=n.some(s=>r==null?void 0:r.includes(s)),o=n.some(s=>i==null?void 0:i.includes(s));return a?"left":o?"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 a=[...r??[],...i??[]];return n.filter(o=>!a.includes(o.column.id))},se(t.options,"debugRows","getCenterVisibleCells")),e.getLeftVisibleCells=oe(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(n,r)=>(r??[]).map(a=>n.find(o=>o.column.id===a)).filter(Boolean).map(a=>({...a,position:"left"})),se(t.options,"debugRows","getLeftVisibleCells")),e.getRightVisibleCells=oe(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(n,r)=>(r??[]).map(a=>n.find(o=>o.column.id===a)).filter(Boolean).map(a=>({...a,position:"right"})),se(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?lc():(n=(r=e.initialState)==null?void 0:r.columnPinning)!=null?n:lc())},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;if(!t){var i,a;return!!((i=r.left)!=null&&i.length||(a=r.right)!=null&&a.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),se(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),se(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(a=>!i.includes(a.id))},se(e.options,"debugColumns","getCenterLeafColumns"))}},Za={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},uc=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),db={getDefaultColumnDef:()=>Za,getInitialState:e=>({columnSizing:{},columnSizingInfo:uc(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Jt("columnSizing",e),onColumnSizingInfoChange:Jt("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,i;const a=t.getState().columnSizing[e.id];return Math.min(Math.max((n=e.columnDef.minSize)!=null?n:Za.minSize,(r=a??e.columnDef.size)!=null?r:Za.size),(i=e.columnDef.maxSize)!=null?i:Za.maxSize)},e.getStart=oe(n=>[n,la(t,n),t.getState().columnSizing],(n,r)=>r.slice(0,e.getIndex(n)).reduce((i,a)=>i+a.getSize(),0),se(t.options,"debugColumns","getStart")),e.getAfter=oe(n=>[n,la(t,n),t.getState().columnSizing],(n,r)=>r.slice(e.getIndex(n)+1).reduce((i,a)=>i+a.getSize(),0),se(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 a;n+=(a=i.column.getSize())!=null?a: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 a=>{if(!r||!i||(a.persist==null||a.persist(),cc(a)&&a.touches&&a.touches.length>1))return;const o=e.getSize(),s=e?e.getLeafHeaders().map(v=>[v.column.id,v.column.getSize()]):[[r.id,r.getSize()]],l=cc(a)?Math.round(a.touches[0].clientX):a.clientX,u={},c=(v,y)=>{typeof y=="number"&&(t.setColumnSizingInfo(x=>{var S,D;const $=t.options.columnResizeDirection==="rtl"?-1:1,F=(y-((S=x==null?void 0:x.startOffset)!=null?S:0))*$,m=Math.max(F/((D=x==null?void 0:x.startSize)!=null?D:0),-.999999);return x.columnSizingStart.forEach(C=>{let[I,E]=C;u[I]=Math.round(Math.max(E+E*m,0)*100)/100}),{...x,deltaOffset:F,deltaPercentage:m}}),(t.options.columnResizeMode==="onChange"||v==="end")&&t.setColumnSizing(x=>({...x,...u})))},d=v=>c("move",v),h=v=>{c("end",v),t.setColumnSizingInfo(y=>({...y,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},f=n||typeof document<"u"?document:null,g={moveHandler:v=>d(v.clientX),upHandler:v=>{f==null||f.removeEventListener("mousemove",g.moveHandler),f==null||f.removeEventListener("mouseup",g.upHandler),h(v.clientX)}},p={moveHandler:v=>(v.cancelable&&(v.preventDefault(),v.stopPropagation()),d(v.touches[0].clientX),!1),upHandler:v=>{var y;f==null||f.removeEventListener("touchmove",p.moveHandler),f==null||f.removeEventListener("touchend",p.upHandler),v.cancelable&&(v.preventDefault(),v.stopPropagation()),h((y=v.touches[0])==null?void 0:y.clientX)}},b=fb()?{passive:!1}:!1;cc(a)?(f==null||f.addEventListener("touchmove",p.moveHandler,b),f==null||f.addEventListener("touchend",p.upHandler,b)):(f==null||f.addEventListener("mousemove",g.moveHandler,b),f==null||f.addEventListener("mouseup",g.upHandler,b)),t.setColumnSizingInfo(v=>({...v,startOffset:l,startSize:o,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?uc():(n=e.initialState.columnSizingInfo)!=null?n:uc())},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 $s=null;function fb(){if(typeof $s=="boolean")return $s;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 $s=e,$s}function cc(e){return e.type==="touchstart"}const hb={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Jt("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(a=>a.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()),se(t.options,"debugRows","_getAllVisibleCells")),e.getVisibleCells=oe(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,r,i)=>[...n,...r,...i],se(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(a=>a.getIsVisible==null?void 0:a.getIsVisible()),se(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,a)=>({...i,[a.id]:n||!(a.getCanHide!=null&&a.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 la(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const gb={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()}}},mb={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:Jt("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,a;return((n=e.columnDef.enableGlobalFilter)!=null?n:!0)&&((r=t.options.enableGlobalFilter)!=null?r:!0)&&((i=t.options.enableFilters)!=null?i:!0)&&((a=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?a:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>Xn.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return rs(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[r])!=null?t:Xn[r]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},pb={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Jt("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,a;e.setExpanded(r?{}:(i=(a=e.initialState)==null?void 0:a.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(a=>{const o=a.split(".");r=Math.max(r,o.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 a=r===!0?!0:!!(r!=null&&r[e.id]);let o={};if(r===!0?Object.keys(t.getRowModel().rowsById).forEach(s=>{o[s]=!0}):o=r,n=(i=n)!=null?i:!a,!a&&n)return{...o,[e.id]:!0};if(a&&!n){const{[e.id]:s,...l}=o;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()}}}},hd=0,gd=10,dc=()=>({pageIndex:hd,pageSize:gd}),bb={getInitialState:e=>({...e,pagination:{...dc(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:Jt("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=a=>br(r,a);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(i)},e.resetPagination=r=>{var i;e.setPagination(r?dc():(i=e.initialState.pagination)!=null?i:dc())},e.setPageIndex=r=>{e.setPagination(i=>{let a=br(r,i.pageIndex);const o=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return a=Math.max(0,Math.min(a,o)),{...i,pageIndex:a}})},e.resetPageIndex=r=>{var i,a;e.setPageIndex(r?hd:(i=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageIndex)!=null?i:hd)},e.resetPageSize=r=>{var i,a;e.setPageSize(r?gd:(i=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageSize)!=null?i:gd)},e.setPageSize=r=>{e.setPagination(i=>{const a=Math.max(1,br(r,i.pageSize)),o=i.pageSize*i.pageIndex,s=Math.floor(o/a);return{...i,pageIndex:s,pageSize:a}})},e.setPageCount=r=>e.setPagination(i=>{var a;let o=br(r,(a=e.options.pageCount)!=null?a:-1);return typeof o=="number"&&(o=Math.max(-1,o)),{...i,pageCount:o}}),e.getPageOptions=oe(()=>[e.getPageCount()],r=>{let i=[];return r&&r>0&&(i=[...new Array(r)].fill(null).map((a,o)=>o)),i},se(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}}},fc=()=>({top:[],bottom:[]}),vb={getInitialState:e=>({rowPinning:fc(),...e}),getDefaultOptions:e=>({onRowPinningChange:Jt("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,r,i)=>{const a=r?e.getLeafRows().map(l=>{let{id:u}=l;return u}):[],o=i?e.getParentRows().map(l=>{let{id:u}=l;return u}):[],s=new Set([...o,e.id,...a]);t.setRowPinning(l=>{var u,c;if(n==="bottom"){var d,h;return{top:((d=l==null?void 0:l.top)!=null?d:[]).filter(p=>!(s!=null&&s.has(p))),bottom:[...((h=l==null?void 0:l.bottom)!=null?h:[]).filter(p=>!(s!=null&&s.has(p))),...Array.from(s)]}}if(n==="top"){var f,g;return{top:[...((f=l==null?void 0:l.top)!=null?f:[]).filter(p=>!(s!=null&&s.has(p))),...Array.from(s)],bottom:((g=l==null?void 0:l.bottom)!=null?g:[]).filter(p=>!(s!=null&&s.has(p)))}}return{top:((u=l==null?void 0:l.top)!=null?u:[]).filter(p=>!(s!=null&&s.has(p))),bottom:((c=l==null?void 0:l.bottom)!=null?c:[]).filter(p=>!(s!=null&&s.has(p)))}})},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,a=n.some(s=>r==null?void 0:r.includes(s)),o=n.some(s=>i==null?void 0:i.includes(s));return a?"top":o?"bottom":!1},e.getPinnedIndex=()=>{var n,r;const i=e.getIsPinned();if(!i)return-1;const a=(n=i==="top"?t.getTopRows():t.getBottomRows())==null?void 0:n.map(o=>{let{id:s}=o;return s});return(r=a==null?void 0:a.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?fc():(n=(r=e.initialState)==null?void 0:r.rowPinning)!=null?n:fc())},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;if(!t){var i,a;return!!((i=r.top)!=null&&i.length||(a=r.bottom)!=null&&a.length)}return!!((n=r[t])!=null&&n.length)},e._getPinnedRows=(t,n,r)=>{var i;return((i=e.options.keepPinnedRows)==null||i?(n??[]).map(o=>{const s=e.getRow(o,!0);return s.getIsAllParentsExpanded()?s:null}):(n??[]).map(o=>t.find(s=>s.id===o))).filter(Boolean).map(o=>({...o,position:r}))},e.getTopRows=oe(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),se(e.options,"debugRows","getTopRows")),e.getBottomRows=oe(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),se(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(a=>!i.has(a.id))},se(e.options,"debugRows","getCenterRows"))}},yb={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Jt("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(a=>{a.getCanSelect()&&(r[a.id]=!0)}):i.forEach(a=>{delete r[a.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const r=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),i={...n};return e.getRowModel().rows.forEach(a=>{md(i,a.id,r,!0,e)}),i}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=oe(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?cl(e,n):{rows:[],flatRows:[],rowsById:{}},se(e.options,"debugTable","getSelectedRowModel")),e.getFilteredSelectedRowModel=oe(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?cl(e,n):{rows:[],flatRows:[],rowsById:{}},se(e.options,"debugTable","getFilteredSelectedRowModel")),e.getGroupedSelectedRowModel=oe(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?cl(e,n):{rows:[],flatRows:[],rowsById:{}},se(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(a=>{var o;if(n=typeof n<"u"?n:!i,e.getCanSelect()&&i===n)return a;const s={...a};return md(s,e.id,n,(o=r==null?void 0:r.selectChildren)!=null?o:!0,t),s})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return Su(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return Bl(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return Bl(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)}}}},md=(e,t,n,r,i)=>{var a;const o=i.getRow(t,!0);n?(o.getCanMultiSelect()||Object.keys(e).forEach(s=>delete e[s]),o.getCanSelect()&&(e[t]=!0)):delete e[t],r&&(a=o.subRows)!=null&&a.length&&o.getCanSelectSubRows()&&o.subRows.forEach(s=>md(e,s.id,n,r,i))};function cl(e,t){const n=e.getState().rowSelection,r=[],i={},a=function(o,s){return o.map(l=>{var u;const c=Su(l,n);if(c&&(r.push(l),i[l.id]=l),(u=l.subRows)!=null&&u.length&&(l={...l,subRows:a(l.subRows)}),c)return l}).filter(Boolean)};return{rows:a(t.rows),flatRows:r,rowsById:i}}function Su(e,t){var n;return(n=t[e.id])!=null?n:!1}function Bl(e,t,n){var r;if(!((r=e.subRows)!=null&&r.length))return!1;let i=!0,a=!1;return e.subRows.forEach(o=>{if(!(a&&!i)&&(o.getCanSelect()&&(Su(o,t)?a=!0:i=!1),o.subRows&&o.subRows.length)){const s=Bl(o,t);s==="all"?a=!0:(s==="some"&&(a=!0),i=!1)}}),i?"all":a?"some":!1}const Ol=/([0-9]+)/gm,TE=(e,t,n)=>xb(Xr(e.getValue(n)).toLowerCase(),Xr(t.getValue(n)).toLowerCase()),PE=(e,t,n)=>xb(Xr(e.getValue(n)),Xr(t.getValue(n))),kE=(e,t,n)=>$f(Xr(e.getValue(n)).toLowerCase(),Xr(t.getValue(n)).toLowerCase()),ME=(e,t,n)=>$f(Xr(e.getValue(n)),Xr(t.getValue(n))),BE=(e,t,n)=>{const r=e.getValue(n),i=t.getValue(n);return r>i?1:r<i?-1:0},OE=(e,t,n)=>$f(e.getValue(n),t.getValue(n));function $f(e,t){return e===t?0:e>t?1:-1}function Xr(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function xb(e,t){const n=e.split(Ol).filter(Boolean),r=t.split(Ol).filter(Boolean);for(;n.length&&r.length;){const i=n.shift(),a=r.shift(),o=parseInt(i,10),s=parseInt(a,10),l=[o,s].sort();if(isNaN(l[0])){if(i>a)return 1;if(a>i)return-1;continue}if(isNaN(l[1]))return isNaN(o)?-1:1;if(o>s)return 1;if(s>o)return-1}return n.length-r.length}const ta={alphanumeric:TE,alphanumericCaseSensitive:PE,text:kE,textCaseSensitive:ME,datetime:BE,basic:OE},Cb={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Jt("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 a=i==null?void 0:i.getValue(e.id);if(Object.prototype.toString.call(a)==="[object Date]")return ta.datetime;if(typeof a=="string"&&(r=!0,a.split(Ol).length>1))return ta.alphanumeric}return r?ta.text:ta.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 rs(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:ta[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const i=e.getNextSortingOrder(),a=typeof n<"u"&&n!==null;t.setSorting(o=>{const s=o==null?void 0:o.find(f=>f.id===e.id),l=o==null?void 0:o.findIndex(f=>f.id===e.id);let u=[],c,d=a?n:i==="desc";if(o!=null&&o.length&&e.getCanMultiSort()&&r?s?c="toggle":c="add":o!=null&&o.length&&l!==o.length-1?c="replace":s?c="toggle":c="replace",c==="toggle"&&(a||i||(c="remove")),c==="add"){var h;u=[...o,{id:e.id,desc:d}],u.splice(0,u.length-((h=t.options.maxMultiSortColCount)!=null?h:Number.MAX_SAFE_INTEGER))}else c==="toggle"?u=o.map(f=>f.id===e.id?{...f,desc:d}:f):c==="remove"?u=o.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 a=e.getFirstSortDir(),o=e.getIsSorted();return o?o!==a&&((r=t.options.enableSortingRemoval)==null||r)&&(!(n&&(i=t.options.enableMultiRemove)!=null)||i)?!1:o==="desc"?"asc":"desc":a},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())}},NE=[J1,hb,ub,cb,K1,ob,gb,mb,Cb,sb,pb,bb,vb,yb,db];function wb(e){var t,n;process.env.NODE_ENV!=="production"&&(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");const r=[...NE,...(t=e._features)!=null?t:[]];let i={_features:r};const a=i._features.reduce((h,f)=>Object.assign(h,f.getDefaultOptions==null?void 0:f.getDefaultOptions(i)),{}),o=h=>i.options.mergeOptions?i.options.mergeOptions(a,h):{...a,...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:{...a,...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=br(h,i.options);i.options=o(f)},getState:()=>i.options.state,setState:h=>{i.options.onStateChange==null||i.options.onStateChange(h)},_getRowId:(h,f,g)=>{var p;return(p=i.options.getRowId==null?void 0:i.options.getRowId(h,f,g))!=null?p:`${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 p=g.header.column.columnDef;return p.accessorKey?p.accessorKey:p.accessorFn?p.id:null},cell:g=>{var p,b;return(p=(b=g.renderValue())==null||b.toString==null?void 0:b.toString())!=null?p:null},...i._features.reduce((g,p)=>Object.assign(g,p.getDefaultColumnDef==null?void 0:p.getDefaultColumnDef()),{}),...h}},se(e,"debugColumns","_getDefaultColumnDef")),_getColumnDefs:()=>i.options.columns,getAllColumns:oe(()=>[i._getColumnDefs()],h=>{const f=function(g,p,b){return b===void 0&&(b=0),g.map(v=>{const y=U1(i,v,b,p),x=v;return y.columns=x.columns?f(x.columns,y,b+1):[],y})};return f(h)},se(e,"debugColumns","getAllColumns")),getAllFlatColumns:oe(()=>[i.getAllColumns()],h=>h.flatMap(f=>f.getFlatColumns()),se(e,"debugColumns","getAllFlatColumns")),_getAllFlatColumnsById:oe(()=>[i.getAllFlatColumns()],h=>h.reduce((f,g)=>(f[g.id]=g,f),{}),se(e,"debugColumns","getAllFlatColumnsById")),getAllLeafColumns:oe(()=>[i.getAllColumns(),i._getOrderColumnsFn()],(h,f)=>{let g=h.flatMap(p=>p.getLeafColumns());return f(g)},se(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 VE(){return e=>oe(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(i,a,o){a===void 0&&(a=0);const s=[];for(let u=0;u<i.length;u++){const c=is(e,e._getRowId(i[u],u,o),i[u],u,a,void 0,o==null?void 0:o.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,a+1,c))}}return s};return n.rows=r(t),n},se(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}function LE(){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:Rf(n),se(e.options,"debugTable","getExpandedRowModel"))}function Rf(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 HE(){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 a=[i,i];for(let o=0;o<n.flatRows.length;o++){const s=n.flatRows[o].getUniqueValues(t);for(let l=0;l<s.length;l++){const u=s[l];u<a[0]?a[0]=u:u>a[1]&&(a[1]=u)}}return a},se(e.options,"debugTable","getFacetedMinMaxValues"))}function Db(e,t,n){return n.options.filterFromLeafRows?jE(e,t,n):WE(e,t,n)}function jE(e,t,n){var r;const i=[],a={},o=(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=is(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<o){if(g.subRows=s(f.subRows,u+1),f=g,t(f)&&!g.subRows.length){c.push(f),a[f.id]=f,i.push(f);continue}if(t(f)||g.subRows.length){c.push(f),a[f.id]=f,i.push(f);continue}}else f=g,t(f)&&(c.push(f),a[f.id]=f,i.push(f))}return c};return{rows:s(e),flatRows:i,rowsById:a}}function WE(e,t,n){var r;const i=[],a={},o=(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<o){const p=is(n,f.id,f.original,f.index,f.depth,void 0,f.parentId);p.subRows=s(f.subRows,u+1),f=p}c.push(f),i.push(f),a[f.id]=f}}return c};return{rows:s(e),flatRows:i,rowsById:a}}function zE(){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 a=[...r.map(s=>s.id).filter(s=>s!==t),i?"__global__":void 0].filter(Boolean),o=s=>{for(let l=0;l<a.length;l++)if(s.columnFilters[a[l]]===!1)return!1;return!0};return Db(n.rows,o,e)},se(e.options,"debugTable","getFacetedRowModel"))}function GE(){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 a=0;a<n.flatRows.length;a++){const o=n.flatRows[a].getUniqueValues(t);for(let s=0;s<o.length;s++){const l=o[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},se(e.options,"debugTable",`getFacetedUniqueValues_${t}`))}function XE(){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=[],a=[];(n??[]).forEach(h=>{var f;const g=e.getColumn(h.id);if(!g)return;const p=g.getFilterFn();if(!p){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:p,resolvedValue:(f=p.resolveFilterValue==null?void 0:p.resolveFilterValue(h.value))!=null?f:h.value})});const o=(n??[]).map(h=>h.id),s=e.getGlobalFilterFn(),l=e.getAllLeafColumns().filter(h=>h.getCanGlobalFilter());r&&s&&l.length&&(o.push("__global__"),l.forEach(h=>{var f;a.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 p=u.id;f.columnFilters[p]=u.filterFn(f,p,u.resolvedValue,b=>{f.columnFiltersMeta[p]=b})}if(a.length){for(let g=0;g<a.length;g++){c=a[g];const p=c.id;if(c.filterFn(f,p,c.resolvedValue,b=>{f.columnFiltersMeta[p]=b})){f.columnFilters.__global__=!0;break}}f.columnFilters.__global__!==!0&&(f.columnFilters.__global__=!1)}}const d=h=>{for(let f=0;f<o.length;f++)if(h.columnFilters[o[f]]===!1)return!1;return!0};return Db(t.rows,d,e)},se(e.options,"debugTable","getFilteredRowModel",()=>e._autoResetPageIndex()))}function ZE(){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=[],a={},o=function(l,u,c){if(u===void 0&&(u=0),u>=r.length)return l.map(g=>(g.depth=u,i.push(g),a[g.id]=g,g.subRows&&(g.subRows=o(g.subRows,u+1,g.id)),g));const d=r[u],h=YE(l,d);return Array.from(h.entries()).map((g,p)=>{let[b,v]=g,y=`${d}:${b}`;y=c?`${c}>${y}`:y;const x=o(v,u+1,y),S=u?If(v,$=>$.subRows):v,D=is(e,y,S[0].original,p,u,void 0,c);return Object.assign(D,{groupingColumnId:d,groupingValue:b,subRows:x,leafRows:S,getValue:$=>{if(r.includes($)){if(D._valuesCache.hasOwnProperty($))return D._valuesCache[$];if(v[0]){var F;D._valuesCache[$]=(F=v[0].getValue($))!=null?F:void 0}return D._valuesCache[$]}if(D._groupingValuesCache.hasOwnProperty($))return D._groupingValuesCache[$];const m=e.getColumn($),C=m==null?void 0:m.getAggregationFn();if(C)return D._groupingValuesCache[$]=C($,S,v),D._groupingValuesCache[$]}}),x.forEach($=>{i.push($),a[$.id]=$}),D})},s=o(n.rows,0);return s.forEach(l=>{i.push(l),a[l.id]=l}),{rows:s,flatRows:i,rowsById:a}},se(e.options,"debugTable","getGroupedRowModel",()=>{e._queue(()=>{e._autoResetExpanded(),e._autoResetPageIndex()})}))}function YE(e,t){const n=new Map;return e.reduce((r,i)=>{const a=`${i.getGroupingValue(t)}`,o=r.get(a);return o?o.push(i):r.set(a,[i]),r},n)}function UE(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:a}=n;let{rows:o,flatRows:s,rowsById:l}=r;const u=i*a,c=u+i;o=o.slice(u,c);let d;t.options.paginateExpandedRows?d={rows:o,flatRows:s,rowsById:l}:d=Rf({rows:o,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},se(t.options,"debugTable","getPaginationRowModel"))}function JE(){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=[],a=r.filter(l=>{var u;return(u=e.getColumn(l.id))==null?void 0:u.getCanSort()}),o={};a.forEach(l=>{const u=e.getColumn(l.id);u&&(o[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<a.length;f+=1){var h;const g=a[f],p=o[g.id],b=p.sortUndefined,v=(h=g==null?void 0:g.desc)!=null?h:!1;let y=0;if(b){const x=c.getValue(g.id),S=d.getValue(g.id),D=x===void 0,$=S===void 0;if(D||$){if(b==="first")return D?-1:1;if(b==="last")return D?1:-1;y=D&&$?0:D?b:-b}}if(y===0&&(y=p.sortingFn(c,d,g.id)),y!==0)return v&&(y*=-1),p.invertSorting&&(y*=-1),y}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}},se(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex()))}/**
66
66
  * react-table
67
67
  *
68
68
  * Copyright (c) TanStack
@@ -71,7 +71,7 @@ React keys must be passed directly to JSX without using spread:
71
71
  * LICENSE.md file in the root directory of this source tree.
72
72
  *
73
73
  * @license MIT
74
- */function Eo(e,t){return e?KE(e)?W.createElement(e,t):e:null}function KE(e){return qE(e)||typeof e=="function"||QE(e)}function qE(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function QE(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]=W.useState(()=>({current:wb(t)})),[r,i]=W.useState(()=>n.current.initialState);return n.current.setOptions(a=>({...a,...e,state:{...r,...e.state},onStateChange:o=>{i(o),e.onStateChange==null||e.onStateChange(o)}})),n.current}const tI=Object.freeze(Object.defineProperty({__proto__:null,ColumnFaceting:K1,ColumnFiltering:ob,ColumnGrouping:sb,ColumnOrdering:ub,ColumnPinning:cb,ColumnSizing:db,ColumnVisibility:hb,GlobalFaceting:gb,GlobalFiltering:mb,Headers:J1,RowExpanding:pb,RowPagination:bb,RowPinning:vb,RowSelection:yb,RowSorting:Cb,_getVisibleLeafColumns:sa,aggregationFns:ul,buildHeaderGroups:Xa,createCell:Y1,createColumn:U1,createColumnHelper:CE,createRow:is,createTable:wb,defaultColumnSizing:Za,expandRows:Rf,filterFns:Xn,flattenBy:If,flexRender:Eo,functionalUpdate:br,getCoreRowModel:VE,getExpandedRowModel:LE,getFacetedMinMaxValues:HE,getFacetedRowModel:zE,getFacetedUniqueValues:GE,getFilteredRowModel:XE,getGroupedRowModel:ZE,getMemoOptions:se,getPaginationRowModel:UE,getSortedRowModel:JE,isFunction:rs,isNumberArray:Z1,isRowSelected:Su,isSubRowSelected:Bl,makeStateUpdater:Jt,memo:oe,noop:wE,orderColumns:lb,passiveEventSupported:fb,reSplitAlphaNumeric:Ol,selectRowsFn:cl,shouldAutoRemoveFilter:fd,sortingFns:ea,useReactTable:eI},Symbol.toStringTag,{value:"Module"})),Eu=0,Kr=1,Ra=2,Sb=4;function Io(e,t){return n=>e(t(n))}function nI(e,t){return t(e)}function Eb(e,t){return n=>e(t,n)}function Ug(e,t){return()=>e(t)}function Iu(e,t){return t(e),e}function Ke(...e){return e}function rI(e){e()}function Jg(e){return()=>e}function iI(...e){return()=>{e.map(rI)}}function Af(e){return e!==void 0}function ki(){}function Xe(e,t){return e(Kr,t)}function we(e,t){e(Eu,t)}function Ff(e){e(Ra)}function Ft(e){return e(Sb)}function le(e,t){return Xe(e,Eb(t,Eu))}function er(e,t){const n=e(Kr,r=>{n(),t(r)});return n}function Te(){const e=[];return(t,n)=>{switch(t){case Ra:e.splice(0,e.length);return;case Kr:return e.push(n),()=>{const r=e.indexOf(n);r>-1&&e.splice(r,1)};case Eu:e.slice().forEach(r=>{r(n)});return;default:throw new Error(`unrecognized action ${t}`)}}}function q(e){let t=e;const n=Te();return(r,i)=>{switch(r){case Kr:i(t);break;case Eu:t=i;break;case Sb:return t}return n(r,i)}}function aI(e){let t,n;const r=()=>t&&t();return function(i,a){switch(i){case Kr:return a?n===a?void 0:(r(),n=a,t=Xe(e,a),t):(r(),ki);case Ra:r(),n=null;return;default:throw new Error(`unrecognized action ${i}`)}}}function sn(e){return Iu(Te(),t=>le(e,t))}function Tt(e,t){return Iu(q(t),n=>le(e,n))}function oI(...e){return t=>e.reduceRight(nI,t)}function J(e,...t){const n=oI(...t);return(r,i)=>{switch(r){case Kr:return Xe(e,n(i));case Ra:Ff(e);return}}}function Ib(e,t){return e===t}function Je(e=Ib){let t;return n=>r=>{e(t,r)||(t=r,n(r))}}function ye(e){return t=>n=>{e(n)&&t(n)}}function ne(e){return t=>Io(t,e)}function Zn(e){return t=>()=>t(e)}function Un(e,t){return n=>r=>n(t=e(t,r))}function ya(e){return t=>n=>{e>0?e--:t(n)}}function Nr(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 Se(...e){const t=new Array(e.length);let n=0,r=null;const i=Math.pow(2,e.length)-1;return e.forEach((a,o)=>{const s=Math.pow(2,o);Xe(a,l=>{const u=n;n=n|s,t[o]=l,u!==i&&n===i&&r&&(r(),r=null)})}),a=>o=>{const s=()=>a([o].concat(t));n===i?s():r=s}}function qg(...e){return function(t,n){switch(t){case Kr:return iI(...e.map(r=>Xe(r,n)));case Ra:return;default:throw new Error(`unrecognized action ${t}`)}}}function xe(e,t=Ib){return J(e,Je(t))}function wt(...e){const t=Te(),n=new Array(e.length);let r=0;const i=Math.pow(2,e.length)-1;return e.forEach((a,o)=>{const s=Math.pow(2,o);Xe(a,l=>{n[o]=l,r=r|s,r===i&&we(t,n)})}),function(a,o){switch(a){case Kr:return r===i&&o(n),Xe(t,o);case Ra:return Ff(t);default:throw new Error(`unrecognized action ${a}`)}}}function Oe(e,t=[],{singleton:n}={singleton:!0}){return{id:sI(),constructor:e,dependencies:t,singleton:n}}const sI=()=>Symbol();function lI(e){const t=new Map,n=({id:r,constructor:i,dependencies:a,singleton:o})=>{if(o&&t.has(r))return t.get(r);const s=i(a.map(l=>n(l)));return o&&t.set(r,s),s};return n(e)}function uI(e,t){const n={},r={};let i=0;const a=e.length;for(;i<a;)r[e[i]]=1,i+=1;for(const o in t)r.hasOwnProperty(o)||(n[o]=t[o]);return n}const Rs=typeof document<"u"?w.useLayoutEffect:w.useEffect;function Tf(e,t,n){const r=Object.keys(t.required||{}),i=Object.keys(t.optional||{}),a=Object.keys(t.methods||{}),o=Object.keys(t.events||{}),s=w.createContext({});function l(v,y){v.propsReady&&we(v.propsReady,!1);for(const x of r){const S=v[t.required[x]];we(S,y[x])}for(const x of i)if(x in y){const S=v[t.optional[x]];we(S,y[x])}v.propsReady&&we(v.propsReady,!0)}function u(v){return a.reduce((y,x)=>(y[x]=S=>{const D=v[t.methods[x]];we(D,S)},y),{})}function c(v){return o.reduce((y,x)=>(y[x]=aI(v[t.events[x]]),y),{})}const d=w.forwardRef((v,y)=>{const{children:x,...S}=v,[D]=w.useState(()=>Iu(lI(e),F=>l(F,S))),[$]=w.useState(Ug(c,D));return Rs(()=>{for(const F of o)F in S&&Xe($[F],S[F]);return()=>{Object.values($).map(Ff)}},[S,$,D]),Rs(()=>{l(D,S)}),w.useImperativeHandle(y,Jg(u(D))),w.createElement(s.Provider,{value:D},n?w.createElement(n,uI([...r,...i,...o],S),x):x)}),h=v=>w.useCallback(Eb(we,w.useContext(s)[v]),[v]),f=v=>{const x=w.useContext(s)[v],S=w.useCallback(D=>Xe(x,D),[x]);return w.useSyncExternalStore(S,()=>Ft(x),()=>Ft(x))},g=v=>{const x=w.useContext(s)[v],[S,D]=w.useState(Ug(Ft,x));return Rs(()=>Xe(x,$=>{$!==S&&D(Jg($))}),[x,S]),S},p=w.version.startsWith("18")?f:g;return{Component:d,usePublisher:h,useEmitterValue:p,useEmitter:(v,y)=>{const S=w.useContext(s)[v];Rs(()=>Xe(S,y),[y,S])}}}const cI=typeof document<"u"?w.useLayoutEffect:w.useEffect,dI=cI;var ln=(e=>(e[e.DEBUG=0]="DEBUG",e[e.INFO=1]="INFO",e[e.WARN=2]="WARN",e[e.ERROR=3]="ERROR",e))(ln||{});const fI={0:"debug",1:"log",2:"warn",3:"error"},hI=()=>typeof globalThis>"u"?window:globalThis,qr=Oe(()=>{const e=q(3);return{log:q((n,r,i=1)=>{var a;const o=(a=hI().VIRTUOSO_LOG_LEVEL)!=null?a:Ft(e);i>=o&&console[fI[i]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",n,r)}),logLevel:e}},[],{singleton:!0});function Pf(e,t=!0){const n=w.useRef(null);let r=i=>{};if(typeof ResizeObserver<"u"){const i=w.useMemo(()=>new ResizeObserver(a=>{requestAnimationFrame(()=>{const o=a[0].target;o.offsetParent!==null&&e(o)})}),[e]);r=a=>{a&&t?(i.observe(a),n.current=a):(n.current&&i.unobserve(n.current),n.current=null)}}return{ref:n,callbackRef:r}}function tr(e,t=!0){return Pf(e,t).callbackRef}function _b(e,t,n,r,i,a,o){const s=w.useCallback(l=>{const u=gI(l.children,t,"offsetHeight",i);let c=l.parentElement;for(;!c.dataset.virtuosoScroller;)c=c.parentElement;const d=c.lastElementChild.dataset.viewportType==="window",h=o?o.scrollTop:d?window.pageYOffset||document.documentElement.scrollTop:c.scrollTop,f=o?o.scrollHeight:d?document.documentElement.scrollHeight:c.scrollHeight,g=o?o.offsetHeight:d?window.innerHeight:c.offsetHeight;r({scrollTop:Math.max(h,0),scrollHeight:f,viewportHeight:g}),a==null||a(mI("row-gap",getComputedStyle(l).rowGap,i)),u!==null&&e(u)},[e,t,i,a,o,r]);return Pf(s,n)}function gI(e,t,n,r){const i=e.length;if(i===0)return null;const a=[];for(let o=0;o<i;o++){const s=e.item(o);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},ln.ERROR),c===u)continue;const d=a[a.length-1];a.length===0||d.size!==c||d.endIndex!==l-1?a.push({startIndex:l,endIndex:l,size:c}):a[a.length-1].endIndex++}return a}function mI(e,t,n){return t!=="normal"&&!(t!=null&&t.endsWith("px"))&&n(`${e} was not resolved to pixel value correctly`,t,ln.WARN),t==="normal"?0:parseInt(t??"0",10)}function Bn(e,t){return Math.round(e.getBoundingClientRect()[t])}function $b(e,t){return Math.abs(e-t)<1.01}function Rb(e,t,n,r=ki,i){const a=w.useRef(null),o=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,p=f?document.documentElement.scrollHeight:h.scrollHeight,b=f?window.innerHeight:h.offsetHeight,v=()=>{e({scrollTop:Math.max(g,0),scrollHeight:p,viewportHeight:b})};d.suppressFlushSync?v():ts.flushSync(v),o.current!==null&&(g===o.current||g<=0||g===p-b)&&(o.current=null,t(!0),s.current&&(clearTimeout(s.current),s.current=null))},[e,t]);w.useEffect(()=>{const d=i||a.current;return r(i||a.current),l({target:d,suppressFlushSync:!0}),d.addEventListener("scroll",l,{passive:!0}),()=>{r(null),d.removeEventListener("scroll",l)}},[a,l,n,r,i]);function u(d){const h=a.current;if(!h||"offsetHeight"in h&&h.offsetHeight===0)return;const f=d.behavior==="smooth";let g,p,b;h===window?(p=Math.max(Bn(document.documentElement,"height"),document.documentElement.scrollHeight),g=window.innerHeight,b=document.documentElement.scrollTop):(p=h.scrollHeight,g=Bn(h,"height"),b=h.scrollTop);const v=p-g;if(d.top=Math.ceil(Math.max(Math.min(v,d.top),0)),$b(g,p)||d.top===b){e({scrollTop:b,scrollHeight:p,viewportHeight:g}),f&&t(!0);return}f?(o.current=d.top,s.current&&clearTimeout(s.current),s.current=setTimeout(()=>{s.current=null,o.current=null,t(!0)},1e3)):o.current=null,h.scrollTo(d)}function c(d){a.current.scrollBy(d)}return{scrollerRef:a,scrollByCallback:c,scrollToCallback:u}}const Lt=Oe(()=>{const e=Te(),t=Te(),n=q(0),r=Te(),i=q(0),a=Te(),o=Te(),s=q(0),l=q(0),u=q(0),c=q(0),d=Te(),h=Te(),f=q(!1);return le(J(e,ne(({scrollTop:g})=>g)),t),le(J(e,ne(({scrollHeight:g})=>g)),o),le(t,i),{scrollContainerState:e,scrollTop:t,viewportHeight:a,headerHeight:s,fixedHeaderHeight:l,fixedFooterHeight:u,footerHeight:c,scrollHeight:o,smoothScrollTargetReached:r,scrollTo:d,scrollBy:h,statefulScrollTop:i,deviation:n,scrollingInProgress:f}},[],{singleton:!0}),_o={lvl:0};function Ab(e,t,n,r=_o,i=_o){return{k:e,v:t,lvl:n,l:r,r:i}}function Ye(e){return e===_o}function la(){return _o}function pd(e,t){if(Ye(e))return _o;const{k:n,l:r,r:i}=e;if(t===n){if(Ye(r))return i;if(Ye(i))return r;{const[a,o]=Fb(r);return dl(pt(e,{k:a,v:o,l:Tb(r)}))}}else return t<n?dl(pt(e,{l:pd(r,t)})):dl(pt(e,{r:pd(i,t)}))}function $o(e,t){if(!Ye(e))return t===e.k?e.v:t<e.k?$o(e.l,t):$o(e.r,t)}function On(e,t,n="k"){if(Ye(e))return[-1/0,void 0];if(Number(e[n])===t)return[e.k,e.v];if(Number(e[n])<t){const r=On(e.r,t,n);return r[0]===-1/0?[e.k,e.v]:r}return On(e.l,t,n)}function rn(e,t,n){return Ye(e)?Ab(t,n,1):t===e.k?pt(e,{k:t,v:n}):t<e.k?Qg(pt(e,{l:rn(e.l,t,n)})):Qg(pt(e,{r:rn(e.r,t,n)}))}function bd(e,t,n){if(Ye(e))return[];const{k:r,v:i,l:a,r:o}=e;let s=[];return r>t&&(s=s.concat(bd(a,t,n))),r>=t&&r<=n&&s.push({k:r,v:i}),r<=n&&(s=s.concat(bd(o,t,n))),s}function bi(e){return Ye(e)?[]:[...bi(e.l),{k:e.k,v:e.v},...bi(e.r)]}function Fb(e){return Ye(e.r)?[e.k,e.v]:Fb(e.r)}function Tb(e){return Ye(e.r)?e.l:dl(pt(e,{r:Tb(e.r)}))}function pt(e,t){return Ab(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 hc(e){return Ye(e)||e.lvl>e.r.lvl}function Qg(e){return vd(kb(e))}function dl(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(hc(t))return kb(pt(e,{lvl:r-1}));if(!Ye(t)&&!Ye(t.r))return pt(t.r,{l:pt(t,{r:t.r.l}),r:pt(e,{l:t.r.r,lvl:r-1}),lvl:r});throw new Error("Unexpected empty nodes")}else{if(hc(e))return vd(pt(e,{lvl:r-1}));if(!Ye(n)&&!Ye(n.l)){const i=n.l,a=hc(i)?n.lvl-1:n.lvl;return pt(i,{l:pt(e,{r:i.l,lvl:r-1}),r:vd(pt(n,{l:i.r,lvl:a})),lvl:i.lvl+1})}else throw new Error("Unexpected empty nodes")}}function _u(e,t,n){if(Ye(e))return[];const r=On(e,t)[0];return pI(bd(e,r,n))}function Pb(e,t){const n=e.length;if(n===0)return[];let{index:r,value:i}=t(e[0]);const a=[];for(let o=1;o<n;o++){const{index:s,value:l}=t(e[o]);a.push({start:r,end:s-1,value:i}),r=s,i=l}return a.push({start:r,end:1/0,value:i}),a}function pI(e){return Pb(e,({k:t,v:n})=>({index:t,value:n}))}function vd(e){const{r:t,lvl:n}=e;return!Ye(t)&&!Ye(t.r)&&t.lvl===n&&t.r.lvl===n?pt(t,{l:pt(e,{r:t.l}),lvl:n+1}):e}function kb(e){const{l:t}=e;return!Ye(t)&&t.lvl===e.lvl?pt(t,{r:pt(e,{l:t.r})}):e}function Nl(e,t,n,r=0){let i=e.length-1;for(;r<=i;){const a=Math.floor((r+i)/2),o=e[a],s=n(o,t);if(s===0)return a;if(s===-1){if(i-r<2)return a-1;i=a-1}else{if(i===r)return a;r=a+1}}throw new Error(`Failed binary finding record in array - ${e.join(",")}, searched for ${t}`)}function Mb(e,t,n){return e[Nl(e,t,n)]}function bI(e,t,n,r){const i=Nl(e,t,r),a=Nl(e,n,r,i);return e.slice(i,a+1)}const kf=Oe(()=>({recalcInProgress:q(!1)}),[],{singleton:!0});function vI(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 yI(e,t){let n=Ye(e)?0:1/0;for(const r of t){const{size:i,startIndex:a,endIndex:o}=r;if(n=Math.min(n,a),Ye(e)){e=rn(e,0,i);continue}const s=_u(e,a-1,o+1);if(s.some(vI(r)))continue;let l=!1,u=!1;for(const{start:c,end:d,value:h}of s)l?(o>=c||i===h)&&(e=pd(e,c)):(u=h!==i,l=!0),d>o&&o>=c&&h!==i&&(e=rn(e,o+1,h));u&&(e=rn(e,a,i))}return[e,n]}function xI(){return{offsetTree:[],sizeTree:la(),groupOffsetTree:la(),lastIndex:0,lastOffset:0,lastSize:0,groupIndices:[]}}function Mf({index:e},t){return t===e?0:t<e?-1:1}function CI({offset:e},t){return t===e?0:t<e?-1:1}function wI(e){return{index:e.index,value:e}}function DI(e,t,n,r=0){return r>0&&(t=Math.max(t,Mb(e,r,Mf).offset)),Pb(bI(e,t,n,CI),wI)}function yd(e,t,n,r){let i=e,a=0,o=0,s=0,l=0;if(t!==0){l=Nl(i,t-1,Mf),s=i[l].offset;const c=On(n,t-1);a=c[0],o=c[1],i.length&&i[l].size===On(n,t)[1]&&(l-=1),i=i.slice(0,l+1)}else i=[];for(const{start:u,value:c}of _u(n,t,1/0)){const d=u-a,h=d*o+s+d*r;i.push({offset:h,size:c,index:u}),a=u,s=h,o=c}return{offsetTree:i,lastIndex:a,lastOffset:s,lastSize:o}}function SI(e,[t,n,r,i]){t.length>0&&r("received item sizes",t,ln.DEBUG);const a=e.sizeTree;let o=a,s=0;if(n.length>0&&Ye(a)&&t.length===2){const h=t[0].size,f=t[1].size;o=n.reduce((g,p)=>rn(rn(g,p,h),p+1,f),o)}else[o,s]=yI(o,t);if(o===a)return e;const{offsetTree:l,lastIndex:u,lastSize:c,lastOffset:d}=yd(e.offsetTree,s,o,i);return{sizeTree:o,offsetTree:l,lastIndex:u,lastOffset:d,lastSize:c,groupOffsetTree:n.reduce((h,f)=>rn(h,f,Ro(f,l,i)),la()),groupIndices:n}}function Ro(e,t,n){if(t.length===0)return 0;const{offset:r,index:i,size:a}=Mb(t,e,Mf),o=e-i,s=a*o+(o-1)*n+r;return s>0?s+n:s}function EI(e){return typeof e.groupIndex<"u"}function Bb(e,t,n){if(EI(e))return t.groupIndices[e.groupIndex]+1;{const r=e.index==="LAST"?n:e.index;let i=Ob(r,t);return i=Math.max(0,i,Math.min(n,i)),i}}function Ob(e,t){if(!$u(t))return e;let n=0;for(;t.groupIndices[n]<=e+n;)n++;return e+n}function $u(e){return!Ye(e.groupOffsetTree)}function II(e){return bi(e).map(({k:t,v:n},r,i)=>{const a=i[r+1],o=a?a.k-1:1/0;return{startIndex:t,endIndex:o,size:n}})}const _I={offsetHeight:"height",offsetWidth:"width"},nr=Oe(([{log:e},{recalcInProgress:t}])=>{const n=Te(),r=Te(),i=Tt(r,0),a=Te(),o=Te(),s=q(0),l=q([]),u=q(void 0),c=q(void 0),d=q((D,$)=>Bn(D,_I[$])),h=q(void 0),f=q(0),g=xI(),p=Tt(J(n,Se(l,e,f),Un(SI,g),Je()),g),b=Tt(J(l,Je(),Un((D,$)=>({prev:D.current,current:$}),{prev:[],current:[]}),ne(({prev:D})=>D)),[]);le(J(l,ye(D=>D.length>0),Se(p,f),ne(([D,$,F])=>{const m=D.reduce((C,I,E)=>rn(C,I,Ro(I,$.offsetTree,F)||E),la());return{...$,groupIndices:D,groupOffsetTree:m}})),p),le(J(r,Se(p),ye(([D,{lastIndex:$}])=>D<$),ne(([D,{lastIndex:$,lastSize:F}])=>[{startIndex:D,endIndex:$,size:F}])),n),le(u,c);const v=Tt(J(u,ne(D=>D===void 0)),!0);le(J(c,ye(D=>D!==void 0&&Ye(Ft(p).sizeTree)),ne(D=>[{startIndex:0,endIndex:0,size:D}])),n);const y=sn(J(n,Se(p),Un(({sizes:D},[$,F])=>({changed:F!==D,sizes:F}),{changed:!1,sizes:g}),ne(D=>D.changed)));Xe(J(s,Un((D,$)=>({diff:D.prev-$,prev:$}),{diff:0,prev:0}),ne(D=>D.diff)),D=>{const{groupIndices:$}=Ft(p);if(D>0)we(t,!0),we(a,D+em(D,$));else if(D<0){const F=Ft(b);F.length>0&&(D-=em(-D,F)),we(o,D)}}),Xe(J(s,Se(e)),([D,$])=>{D<0&&$("`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},ln.ERROR)});const x=sn(a);le(J(a,Se(p),ne(([D,$])=>{const F=$.groupIndices.length>0,m=[],C=$.lastSize;if(F){const I=$o($.sizeTree,0);let E=0,R=0;for(;E<D;){const M=$.groupIndices[R],k=$.groupIndices.length===R+1?1/0:$.groupIndices[R+1]-M-1;m.push({startIndex:M,endIndex:M,size:I}),m.push({startIndex:M+1,endIndex:M+1+k-1,size:C}),R++,E+=k+1}const P=bi($.sizeTree);return E!==D&&P.shift(),P.reduce((M,{k,v:T})=>{let B=M.ranges;return M.prevSize!==0&&(B=[...M.ranges,{startIndex:M.prevIndex,endIndex:k+D-1,size:M.prevSize}]),{ranges:B,prevIndex:k+D,prevSize:T}},{ranges:m,prevIndex:D,prevSize:0}).ranges}return bi($.sizeTree).reduce((I,{k:E,v:R})=>({ranges:[...I.ranges,{startIndex:I.prevIndex,endIndex:E+D-1,size:I.prevSize}],prevIndex:E+D,prevSize:R}),{ranges:[],prevIndex:0,prevSize:C}).ranges})),n);const S=sn(J(o,Se(p,f),ne(([D,{offsetTree:$},F])=>{const m=-D;return Ro(m,$,F)})));return le(J(o,Se(p,f),ne(([D,$,F])=>{if($.groupIndices.length>0){if(Ye($.sizeTree))return $;let C=la();const I=Ft(b);let E=0,R=0,P=0;for(;E<-D;){P=I[R];const M=I[R+1]-P-1;R++,E+=M+1}if(C=bi($.sizeTree).reduce((M,{k,v:T})=>rn(M,Math.max(0,k+D),T),C),E!==-D){const M=$o($.sizeTree,P);C=rn(C,0,M);const k=On($.sizeTree,-D+1)[1];C=rn(C,1,k)}return{...$,sizeTree:C,...yd($.offsetTree,0,C,F)}}else{const C=bi($.sizeTree).reduce((I,{k:E,v:R})=>rn(I,Math.max(0,E+D),R),la());return{...$,sizeTree:C,...yd($.offsetTree,0,C,F)}}})),p),{data:h,totalCount:r,sizeRanges:n,groupIndices:l,defaultItemSize:c,fixedItemSize:u,unshiftWith:a,shiftWith:o,shiftWithOffset:S,beforeUnshiftWith:x,firstItemIndex:s,gap:f,sizes:p,listRefresh:y,statefulTotalCount:i,trackItemSizes:v,itemSize:d}},Ke(qr,kf),{singleton:!0}),$I=typeof document<"u"&&"scrollBehavior"in document.documentElement.style;function Nb(e){const t=typeof e=="number"?{index:e}:e;return t.align||(t.align="start"),(!t.behavior||!$I)&&(t.behavior="auto"),t.offset||(t.offset=0),t}const as=Oe(([{sizes:e,totalCount:t,listRefresh:n,gap:r},{scrollingInProgress:i,viewportHeight:a,scrollTo:o,smoothScrollTargetReached:s,headerHeight:l,footerHeight:u,fixedHeaderHeight:c,fixedFooterHeight:d},{log:h}])=>{const f=Te(),g=Te(),p=q(0);let b=null,v=null,y=null;function x(){b&&(b(),b=null),y&&(y(),y=null),v&&(clearTimeout(v),v=null),we(i,!1)}return le(J(f,Se(e,a,t,p,l,u,h),Se(r,c,d),ne(([[S,D,$,F,m,C,I,E],R,P,A])=>{const M=Nb(S),{align:k,behavior:T,offset:B}=M,O=F-1,L=Bb(M,D,O);let j=Ro(L,D.offsetTree,R)+C;k==="end"?(j+=P+On(D.sizeTree,L)[1]-$+A,L===O&&(j+=I)):k==="center"?j+=(P+On(D.sizeTree,L)[1]-$+A)/2:j-=m,B&&(j+=B);const z=Y=>{x(),Y?(E("retrying to scroll to",{location:S},ln.DEBUG),we(f,S)):(we(g,!0),E("list did not change, scroll successful",{},ln.DEBUG))};if(x(),T==="smooth"){let Y=!1;y=Xe(n,G=>{Y=Y||G}),b=er(s,()=>{z(Y)})}else b=er(J(n,RI(150)),z);return v=setTimeout(()=>{x()},1200),we(i,!0),E("scrolling from index to",{index:L,top:j,behavior:T},ln.DEBUG),{top:j,behavior:T}})),o),{scrollToIndex:f,scrollTargetReached:g,topListHeight:p}},Ke(nr,Lt,qr),{singleton:!0});function RI(e){return t=>{const n=setTimeout(()=>{t(!1)},e);return r=>{r&&(t(!0),clearTimeout(n))}}}const Ao="up",oo="down",AI="none",FI={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollTop:0,viewportHeight:0,scrollHeight:0}},TI=0,os=Oe(([{scrollContainerState:e,scrollTop:t,viewportHeight:n,headerHeight:r,footerHeight:i,scrollBy:a}])=>{const o=q(!1),s=q(!0),l=Te(),u=Te(),c=q(4),d=q(TI),h=Tt(J(qg(J(xe(t),ya(1),Zn(!0)),J(xe(t),ya(1),Zn(!1),Kg(100))),Je()),!1),f=Tt(J(qg(J(a,Zn(!0)),J(a,Zn(!1),Kg(200))),Je()),!1);le(J(wt(xe(t),xe(d)),ne(([y,x])=>y<=x),Je()),s),le(J(s,Nr(50)),u);const g=sn(J(wt(e,xe(n),xe(r),xe(i),xe(c)),Un((y,[{scrollTop:x,scrollHeight:S},D,$,F,m])=>{const C=x+D-S>-m,I={viewportHeight:D,scrollTop:x,scrollHeight:S};if(C){let R,P;return x>y.state.scrollTop?(R="SCROLLED_DOWN",P=y.state.scrollTop-x):(R="SIZE_DECREASED",P=y.state.scrollTop-x||y.scrollTopDelta),{atBottom:!0,state:I,atBottomBecause:R,scrollTopDelta:P}}let E;return I.scrollHeight>y.state.scrollHeight?E="SIZE_INCREASED":D<y.state.viewportHeight?E="VIEWPORT_HEIGHT_DECREASING":x<y.state.scrollTop?E="SCROLLING_UPWARDS":E="NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM",{atBottom:!1,notAtBottomBecause:E,state:I}},FI),Je((y,x)=>y&&y.atBottom===x.atBottom))),p=Tt(J(e,Un((y,{scrollTop:x,scrollHeight:S,viewportHeight:D})=>{if($b(y.scrollHeight,S))return{scrollTop:x,scrollHeight:S,jump:0,changed:!1};{const $=S-(x+D)<1;return y.scrollTop!==x&&$?{scrollHeight:S,scrollTop:x,jump:y.scrollTop-x,changed:!0}:{scrollHeight:S,scrollTop:x,jump:0,changed:!0}}},{scrollHeight:0,jump:0,scrollTop:0,changed:!1}),ye(y=>y.changed),ne(y=>y.jump)),0);le(J(g,ne(y=>y.atBottom)),o),le(J(o,Nr(50)),l);const b=q(oo);le(J(e,ne(({scrollTop:y})=>y),Je(),Un((y,x)=>Ft(f)?{direction:y.direction,prevScrollTop:x}:{direction:x<y.prevScrollTop?Ao:oo,prevScrollTop:x},{direction:oo,prevScrollTop:0}),ne(y=>y.direction)),b),le(J(e,Nr(50),Zn(AI)),b);const v=q(0);return le(J(h,ye(y=>!y),Zn(0)),v),le(J(t,Nr(100),Se(h),ye(([y,x])=>!!x),Un(([y,x],[S])=>[x,S],[0,0]),ne(([y,x])=>x-y)),v),{isScrolling:h,isAtTop:s,isAtBottom:o,atBottomState:g,atTopStateChange:u,atBottomStateChange:l,scrollDirection:b,atBottomThreshold:c,atTopThreshold:d,scrollVelocity:v,lastJumpDueToItemResize:p}},Ke(Lt)),Qr=Oe(([{log:e}])=>{const t=q(!1),n=sn(J(t,ye(r=>r),Je()));return Xe(t,r=>{r&&Ft(e)("props updated",{},ln.DEBUG)}),{propsReady:t,didMount:n}},Ke(qr),{singleton:!0});function Bf(e,t){e==0?t():requestAnimationFrame(()=>Bf(e-1,t))}function Of(e,t){const n=t-1;return typeof e=="number"?e:e.index==="LAST"?n:e.index}const ss=Oe(([{sizes:e,listRefresh:t,defaultItemSize:n},{scrollTop:r},{scrollToIndex:i,scrollTargetReached:a},{didMount:o}])=>{const s=q(!0),l=q(0),u=q(!0);return le(J(o,Se(l),ye(([c,d])=>!!d),Zn(!1)),s),le(J(o,Se(l),ye(([c,d])=>!!d),Zn(!1)),u),Xe(J(wt(t,o),Se(s,e,n,u),ye(([[,c],d,{sizeTree:h},f,g])=>c&&(!Ye(h)||Af(f))&&!d&&!g),Se(l)),([,c])=>{er(a,()=>{we(u,!0)}),Bf(4,()=>{er(r,()=>{we(s,!0)}),we(i,c)})}),{scrolledToInitialItem:s,initialTopMostItemIndex:l,initialItemFinalLocationReached:u}},Ke(nr,Lt,as,Qr),{singleton:!0});function tm(e){return e?e==="smooth"?"smooth":"auto":!1}const PI=(e,t)=>typeof e=="function"?tm(e(t)):t&&tm(e),kI=Oe(([{totalCount:e,listRefresh:t},{isAtBottom:n,atBottomState:r},{scrollToIndex:i},{scrolledToInitialItem:a},{propsReady:o,didMount:s},{log:l},{scrollingInProgress:u}])=>{const c=q(!1),d=Te();let h=null;function f(p){we(i,{index:"LAST",align:"end",behavior:p})}Xe(J(wt(J(xe(e),ya(1)),s),Se(xe(c),n,a,u),ne(([[p,b],v,y,x,S])=>{let D=b&&x,$="auto";return D&&($=PI(v,y||S),D=D&&!!$),{totalCount:p,shouldFollow:D,followOutputBehavior:$}}),ye(({shouldFollow:p})=>p)),({totalCount:p,followOutputBehavior:b})=>{h&&(h(),h=null),h=er(t,()=>{Ft(l)("following output to ",{totalCount:p},ln.DEBUG),f(b),h=null})});function g(p){const b=er(r,v=>{p&&!v.atBottom&&v.notAtBottomBecause==="SIZE_INCREASED"&&!h&&(Ft(l)("scrolling to bottom due to increased size",{},ln.DEBUG),f("auto"))});setTimeout(b,100)}return Xe(J(wt(xe(c),e,o),ye(([p,,b])=>p&&b),Un(({value:p},[,b])=>({refreshed:p===b,value:b}),{refreshed:!1,value:0}),ye(({refreshed:p})=>p),Se(c,e)),([,p])=>{Ft(a)&&g(p!==!1)}),Xe(d,()=>{g(Ft(c)!==!1)}),Xe(wt(xe(c),r),([p,b])=>{p&&!b.atBottom&&b.notAtBottomBecause==="VIEWPORT_HEIGHT_DECREASING"&&f("auto")}),{followOutput:c,autoscrollToBottom:d}},Ke(nr,os,as,ss,Qr,qr,Lt));function MI(e){return e.reduce((t,n)=>(t.groupIndices.push(t.totalCount),t.totalCount+=n+1,t),{totalCount:0,groupIndices:[]})}const Vb=Oe(([{totalCount:e,groupIndices:t,sizes:n},{scrollTop:r,headerHeight:i}])=>{const a=Te(),o=Te(),s=sn(J(a,ne(MI)));return le(J(s,ne(l=>l.totalCount)),e),le(J(s,ne(l=>l.groupIndices)),t),le(J(wt(r,n,i),ye(([l,u])=>$u(u)),ne(([l,u,c])=>On(u.groupOffsetTree,Math.max(l-c,0),"v")[0]),Je(),ne(l=>[l])),o),{groupCounts:a,topItemsIndexes:o}},Ke(nr,Lt));function Fo(e,t){return!!(e&&e[0]===t[0]&&e[1]===t[1])}function Lb(e,t){return!!(e&&e.startIndex===t.startIndex&&e.endIndex===t.endIndex)}const Vl="top",Ll="bottom",nm="none";function rm(e,t,n){return typeof e=="number"?n===Ao&&t===Vl||n===oo&&t===Ll?e:0:n===Ao?t===Vl?e.main:e.reverse:t===Ll?e.main:e.reverse}function im(e,t){return typeof e=="number"?e:e[t]||0}const Nf=Oe(([{scrollTop:e,viewportHeight:t,deviation:n,headerHeight:r,fixedHeaderHeight:i}])=>{const a=Te(),o=q(0),s=q(0),l=q(0),u=Tt(J(wt(xe(e),xe(t),xe(r),xe(a,Fo),xe(l),xe(o),xe(i),xe(n),xe(s)),ne(([c,d,h,[f,g],p,b,v,y,x])=>{const S=c-y,D=b+v,$=Math.max(h-S,0);let F=nm;const m=im(x,Vl),C=im(x,Ll);return f-=y,f+=h+v,g+=h+v,g-=y,f>c+D-m&&(F=Ao),g<c-$+d+C&&(F=oo),F!==nm?[Math.max(S-h-rm(p,Vl,F)-m,0),S-$-v+d+rm(p,Ll,F)+C]:null}),ye(c=>c!=null),Je(Fo)),[0,0]);return{listBoundary:a,overscan:l,topListHeight:o,increaseViewportBy:s,visibleRange:u}},Ke(Lt),{singleton:!0});function BI(e,t,n){if($u(t)){const r=Ob(e,t);return[{index:On(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 gc={items:[],topItems:[],offsetTop:0,offsetBottom:0,top:0,bottom:0,topListHeight:0,totalCount:0,firstItemIndex:0};function am(e,t,n){if(e.length===0)return[];if(!$u(t))return e.map(u=>({...u,index:u.index+n,originalIndex:u.index}));const r=e[0].index,i=e[e.length-1].index,a=[],o=_u(t.groupOffsetTree,r,i);let s,l=0;for(const u of e){(!s||s.end<u.index)&&(s=o.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},a.push({...c,size:u.size,offset:u.offset,originalIndex:u.index,data:u.data})}return a}function fl(e,t,n,r,i,a){const{lastSize:o,lastOffset:s,lastIndex:l}=i;let u=0,c=0;if(e.length>0){u=e[0].offset;const p=e[e.length-1];c=p.offset+p.size}const d=n-l,h=s+d*o+(d-1)*r,f=u,g=h-c;return{items:am(e,i,a),topItems:am(t,i,a),topListHeight:t.reduce((p,b)=>b.size+p,0),offsetTop:u,offsetBottom:g,top:f,bottom:c,totalCount:n,firstItemIndex:a}}function Hb(e,t,n,r,i,a){let o=0;if(n.groupIndices.length>0)for(const c of n.groupIndices){if(c-o>=e)break;o++}const s=e+o,l=Of(t,s),u=Array.from({length:s}).map((c,d)=>({index:d+l,size:0,offset:0,data:a[d+l]}));return fl(u,[],s,i,n,r)}const Mi=Oe(([{sizes:e,totalCount:t,data:n,firstItemIndex:r,gap:i},a,{visibleRange:o,listBoundary:s,topListHeight:l},{scrolledToInitialItem:u,initialTopMostItemIndex:c},{topListHeight:d},h,{didMount:f},{recalcInProgress:g}])=>{const p=q([]),b=q(0),v=Te();le(a.topItemsIndexes,p);const y=Tt(J(wt(f,g,xe(o,Fo),xe(t),xe(e),xe(c),u,xe(p),xe(r),xe(i),n),ye(([$,F,,m,,,,,,,C])=>{const I=C&&C.length!==m;return $&&!F&&!I}),ne(([,,[$,F],m,C,I,E,R,P,A,M])=>{const k=C,{sizeTree:T,offsetTree:B}=k,O=Ft(b);if(m===0)return{...gc,totalCount:m};if($===0&&F===0)return O===0?{...gc,totalCount:m}:Hb(O,I,C,P,A,M||[]);if(Ye(T))return O>0?null:fl(BI(Of(I,m),k,M),[],m,A,k,P);const L=[];if(R.length>0){const H=R[0],V=R[R.length-1];let X=0;for(const K of _u(T,H,V)){const te=K.value,ue=Math.max(K.start,H),ie=Math.min(K.end,V);for(let Z=ue;Z<=ie;Z++)L.push({index:Z,size:te,offset:X,data:M&&M[Z]}),X+=te}}if(!E)return fl([],L,m,A,k,P);const j=R.length>0?R[R.length-1]+1:0,z=DI(B,$,F,j);if(z.length===0)return null;const Y=m-1,G=Iu([],H=>{for(const V of z){const X=V.value;let K=X.offset,te=V.start;const ue=X.size;if(X.offset<$){te+=Math.floor(($-X.offset+A)/(ue+A));const Z=te-V.start;K+=Z*ue+Z*A}te<j&&(K+=(j-te)*ue,te=j);const ie=Math.min(V.end,Y);for(let Z=te;Z<=ie&&!(K>=F);Z++)H.push({index:Z,size:ue,offset:K,data:M&&M[Z]}),K+=ue+A}});return fl(G,L,m,A,k,P)}),ye($=>$!==null),Je()),gc);le(J(n,ye(Af),ne($=>$==null?void 0:$.length)),t),le(J(y,ne($=>$.topListHeight)),d),le(d,l),le(J(y,ne($=>[$.top,$.bottom])),s),le(J(y,ne($=>$.items)),v);const x=sn(J(y,ye(({items:$})=>$.length>0),Se(t,n),ye(([{items:$},F])=>$[$.length-1].originalIndex===F-1),ne(([,$,F])=>[$-1,F]),Je(Fo),ne(([$])=>$))),S=sn(J(y,Nr(200),ye(({items:$,topItems:F})=>$.length>0&&$[0].originalIndex===F.length),ne(({items:$})=>$[0].index),Je())),D=sn(J(y,ye(({items:$})=>$.length>0),ne(({items:$})=>{let F=0,m=$.length-1;for(;$[F].type==="group"&&F<m;)F++;for(;$[m].type==="group"&&m>F;)m--;return{startIndex:$[F].index,endIndex:$[m].index}}),Je(Lb)));return{listState:y,topItemsIndexes:p,endReached:x,startReached:S,rangeChanged:D,itemsRendered:v,initialItemCount:b,...h}},Ke(nr,Vb,Nf,ss,as,os,Qr,kf),{singleton:!0}),OI=Oe(([{sizes:e,firstItemIndex:t,data:n,gap:r},{initialTopMostItemIndex:i},{initialItemCount:a,listState:o},{didMount:s}])=>(le(J(s,Se(a),ye(([,l])=>l!==0),Se(i,e,t,r,n),ne(([[,l],u,c,d,h,f=[]])=>Hb(l,u,c,d,h,f))),o),{}),Ke(nr,ss,Mi,Qr),{singleton:!0}),jb=Oe(([{scrollVelocity:e}])=>{const t=q(!1),n=Te(),r=q(!1);return le(J(e,Se(r,t,n),ye(([i,a])=>!!a),ne(([i,a,o,s])=>{const{exit:l,enter:u}=a;if(o){if(l(i,s))return!1}else if(u(i,s))return!0;return o}),Je()),t),Xe(J(wt(t,e,n),Se(r)),([[i,a,o],s])=>i&&s&&s.change&&s.change(a,o)),{isSeeking:t,scrollSeekConfiguration:r,scrollVelocity:e,scrollSeekRangeChanged:n}},Ke(os),{singleton:!0}),NI=Oe(([{topItemsIndexes:e}])=>{const t=q(0);return le(J(t,ye(n=>n>0),ne(n=>Array.from({length:n}).map((r,i)=>i))),e),{topItemCount:t}},Ke(Mi)),Wb=Oe(([{footerHeight:e,headerHeight:t,fixedHeaderHeight:n,fixedFooterHeight:r},{listState:i}])=>{const a=Te(),o=Tt(J(wt(e,r,t,n,i),ne(([s,l,u,c,d])=>s+l+u+c+d.offsetBottom+d.bottom)),0);return le(xe(o),a),{totalListHeight:o,totalListHeightChanged:a}},Ke(Lt,Mi),{singleton:!0});function zb(e){let t=!1,n;return()=>(t||(t=!0,n=e()),n)}const VI=zb(()=>/iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent)),LI=Oe(([{scrollBy:e,scrollTop:t,deviation:n,scrollingInProgress:r},{isScrolling:i,isAtBottom:a,scrollDirection:o,lastJumpDueToItemResize:s},{listState:l},{beforeUnshiftWith:u,shiftWithOffset:c,sizes:d,gap:h},{log:f},{recalcInProgress:g}])=>{const p=sn(J(l,Se(s),Un(([,v,y,x],[{items:S,totalCount:D,bottom:$,offsetBottom:F},m])=>{const C=$+F;let I=0;return y===D&&v.length>0&&S.length>0&&(S[0].originalIndex===0&&v[0].originalIndex===0||(I=C-x,I!==0&&(I+=m))),[I,S,D,C]},[0,[],0,0]),ye(([v])=>v!==0),Se(t,o,r,a,f,g),ye(([,v,y,x,,,S])=>!S&&!x&&v!==0&&y===Ao),ne(([[v],,,,,y])=>(y("Upward scrolling compensation",{amount:v},ln.DEBUG),v))));function b(v){v>0?(we(e,{top:-v,behavior:"auto"}),we(n,0)):(we(n,0),we(e,{top:-v,behavior:"auto"}))}return Xe(J(p,Se(n,i)),([v,y,x])=>{x&&VI()?we(n,y-v):b(-v)}),Xe(J(wt(Tt(i,!1),n,g),ye(([v,y,x])=>!v&&!x&&y!==0),ne(([v,y])=>y),Nr(1)),b),le(J(c,ne(v=>({top:-v}))),e),Xe(J(u,Se(d,h),ne(([v,{lastSize:y,groupIndices:x,sizeTree:S},D])=>{function $(F){return F*(y+D)}if(x.length===0)return $(v);{let F=0;const m=$o(S,0);let C=0,I=0;for(;C<v;){C++,F+=m;let E=x.length===I+1?1/0:x[I+1]-x[I]-1;C+E>v&&(F-=m,E=v-C+1),C+=E,F+=$(E),I++}return F}})),v=>{we(n,v),requestAnimationFrame(()=>{we(e,{top:v}),requestAnimationFrame(()=>{we(n,0),we(g,!1)})})}),{deviation:n}},Ke(Lt,os,Mi,nr,qr,kf)),HI=Oe(([{didMount:e},{scrollTo:t},{listState:n}])=>{const r=q(0);return Xe(J(e,Se(r),ye(([,i])=>i!==0),ne(([,i])=>({top:i}))),i=>{er(J(n,ya(1),ye(a=>a.items.length>1)),()=>{requestAnimationFrame(()=>{we(t,i)})})}),{initialScrollTop:r}},Ke(Qr,Lt,Mi),{singleton:!0}),jI=Oe(([{viewportHeight:e},{totalListHeight:t}])=>{const n=q(!1),r=Tt(J(wt(n,e,t),ye(([i])=>i),ne(([,i,a])=>Math.max(0,i-a)),Nr(0),Je()),0);return{alignToBottom:n,paddingTopAddition:r}},Ke(Lt,Wb),{singleton:!0}),Vf=Oe(([{scrollTo:e,scrollContainerState:t}])=>{const n=Te(),r=Te(),i=Te(),a=q(!1),o=q(void 0);return le(J(wt(n,r),ne(([{viewportHeight:s,scrollTop:l,scrollHeight:u},{offsetTop:c}])=>({scrollTop:Math.max(0,l-c),scrollHeight:u,viewportHeight:s}))),t),le(J(e,Se(r),ne(([s,{offsetTop:l}])=>({...s,top:s.top+l}))),i),{useWindowScroll:a,customScrollParent:o,windowScrollContainerState:n,windowViewportRect:r,windowScrollTo:i}},Ke(Lt)),WI=({itemTop:e,itemBottom:t,viewportTop:n,viewportBottom:r,locationParams:{behavior:i,align:a,...o}})=>e<n?{...o,behavior:i,align:a??"start"}:t>r?{...o,behavior:i,align:a??"end"}:null,zI=Oe(([{sizes:e,totalCount:t,gap:n},{scrollTop:r,viewportHeight:i,headerHeight:a,fixedHeaderHeight:o,fixedFooterHeight:s,scrollingInProgress:l},{scrollToIndex:u}])=>{const c=Te();return le(J(c,Se(e,i,t,a,o,s,r),Se(n),ne(([[d,h,f,g,p,b,v,y],x])=>{const{done:S,behavior:D,align:$,calculateViewLocation:F=WI,...m}=d,C=Bb(d,h,g-1),I=Ro(C,h.offsetTree,x)+p+b,E=I+On(h.sizeTree,C)[1],R=y+b,P=y+f-v,A=F({itemTop:I,itemBottom:E,viewportTop:R,viewportBottom:P,locationParams:{behavior:D,align:$,...m}});return A?S&&er(J(l,ye(M=>M===!1),ya(Ft(l)?1:2)),S):S&&S(),A}),ye(d=>d!==null)),u),{scrollIntoView:c}},Ke(nr,Lt,as,Mi,qr),{singleton:!0}),GI=Oe(([{sizes:e,sizeRanges:t},{scrollTop:n},{initialTopMostItemIndex:r},{didMount:i},{useWindowScroll:a,windowScrollContainerState:o,windowViewportRect:s}])=>{const l=Te(),u=q(void 0),c=q(null),d=q(null);return le(o,c),le(s,d),Xe(J(l,Se(e,n,a,c,d)),([h,f,g,p,b,v])=>{const y=II(f.sizeTree);p&&b!==null&&v!==null&&(g=b.scrollTop-v.offsetTop),h({ranges:y,scrollTop:g})}),le(J(u,ye(Af),ne(XI)),r),le(J(i,Se(u),ye(([,h])=>h!==void 0),Je(),ne(([,h])=>h.ranges)),t),{getState:l,restoreStateFrom:u}},Ke(nr,Lt,ss,Qr,Vf));function XI(e){return{offset:e.scrollTop,index:0,align:"start"}}const ZI=Oe(([e,t,n,r,i,a,o,s,l,u])=>({...e,...t,...n,...r,...i,...a,...o,...s,...l,...u}),Ke(Nf,OI,Qr,jb,Wb,HI,jI,Vf,zI,qr)),Gb=Oe(([{totalCount:e,sizeRanges:t,fixedItemSize:n,defaultItemSize:r,trackItemSizes:i,itemSize:a,data:o,firstItemIndex:s,groupIndices:l,statefulTotalCount:u,gap:c,sizes:d},{initialTopMostItemIndex:h,scrolledToInitialItem:f,initialItemFinalLocationReached:g},p,b,v,{listState:y,topItemsIndexes:x,...S},{scrollToIndex:D},$,{topItemCount:F},{groupCounts:m},C])=>(le(S.rangeChanged,C.scrollSeekRangeChanged),le(J(C.windowViewportRect,ne(I=>I.visibleHeight)),p.viewportHeight),{totalCount:e,data:o,firstItemIndex:s,sizeRanges:t,initialTopMostItemIndex:h,scrolledToInitialItem:f,initialItemFinalLocationReached:g,topItemsIndexes:x,topItemCount:F,groupCounts:m,fixedItemHeight:n,defaultItemHeight:r,gap:c,...v,statefulTotalCount:u,listState:y,scrollToIndex:D,trackItemSizes:i,itemSize:a,groupIndices:l,...S,...C,...p,sizes:d,...b}),Ke(nr,ss,Lt,GI,kI,Mi,as,LI,NI,Vb,ZI)),mc="-webkit-sticky",om="sticky",Xb=zb(()=>{if(typeof document>"u")return om;const e=document.createElement("div");return e.style.position=mc,e.style.position===mc?mc:om});function Lf(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:a}=Pf(r),o=w.useCallback(()=>{r(a.current)},[r,a]);return w.useEffect(()=>{if(t){t.addEventListener("scroll",o);const s=new ResizeObserver(()=>{requestAnimationFrame(o)});return s.observe(t),()=>{t.removeEventListener("scroll",o),s.unobserve(t)}}else return window.addEventListener("scroll",o),window.addEventListener("resize",o),()=>{window.removeEventListener("scroll",o),window.removeEventListener("resize",o)}},[o,t]),i}const Ru=w.createContext(void 0),Zb=w.createContext(void 0);function Hf(e){return e}const YI=Oe(()=>{const e=q(l=>`Item ${l}`),t=q(null),n=q(l=>`Group ${l}`),r=q({}),i=q(Hf),a=q("div"),o=q(ki),s=(l,u=null)=>Tt(J(r,ne(c=>c[l]),Je()),u);return{context:t,itemContent:e,groupContent:n,components:r,computeItemKey:i,headerFooterTag:a,scrollerRef:o,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")}}),UI=Oe(([e,t])=>({...e,...t}),Ke(Gb,YI)),JI=({height:e})=>w.createElement("div",{style:{height:e}}),KI={position:Xb(),zIndex:1,overflowAnchor:"none"},qI={overflowAnchor:"none"},sm=w.memo(function({showTopList:t=!1}){const n=$e("listState"),r=Dn("sizeRanges"),i=$e("useWindowScroll"),a=$e("customScrollParent"),o=Dn("windowScrollContainerState"),s=Dn("scrollContainerState"),l=a||i?o:s,u=$e("itemContent"),c=$e("context"),d=$e("groupContent"),h=$e("trackItemSizes"),f=$e("itemSize"),g=$e("log"),p=Dn("gap"),{callbackRef:b}=_b(r,f,h,t?ki:l,g,p,a),[v,y]=w.useState(0);zf("deviation",A=>{v!==A&&y(A)});const x=$e("EmptyPlaceholder"),S=$e("ScrollSeekPlaceholder")||JI,D=$e("ListComponent"),$=$e("ItemComponent"),F=$e("GroupComponent"),m=$e("computeItemKey"),C=$e("isSeeking"),I=$e("groupIndices").length>0,E=$e("alignToBottom"),R=$e("initialItemFinalLocationReached"),P=t?{}:{boxSizing:"border-box",paddingTop:n.offsetTop,paddingBottom:n.offsetBottom,marginTop:v!==0?v:E?"auto":0,...R?{}:{visibility:"hidden"}};return!t&&n.totalCount===0&&x?w.createElement(x,it(x,c)):w.createElement(D,{...it(D,c),ref:b,style:P,"data-testid":t?"virtuoso-top-item-list":"virtuoso-item-list"},(t?n.topItems:n.items).map(A=>{const M=A.originalIndex,k=m(M+n.firstItemIndex,A.data,c);return C?w.createElement(S,{...it(S,c),key:k,index:A.index,height:A.size,type:A.type||"item",...A.type==="group"?{}:{groupIndex:A.groupIndex}}):A.type==="group"?w.createElement(F,{...it(F,c),key:k,"data-index":M,"data-known-size":A.size,"data-item-index":A.index,style:KI},d(A.index,c)):w.createElement($,{...it($,c),...Yb($,A.data),key:k,"data-index":M,"data-known-size":A.size,"data-item-index":A.index,"data-item-group-index":A.groupIndex,style:qI},I?u(A.index,A.groupIndex,A.data,c):u(A.index,A.data,c))}))}),QI={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},Aa=e=>({width:"100%",height:"100%",position:"absolute",top:0,...e?{display:"flex",flexDirection:"column"}:{}}),e_={width:"100%",position:Xb(),top:0,zIndex:1};function it(e,t){if(typeof e!="string")return{context:t}}function Yb(e,t){return{item:typeof e=="string"?void 0:t}}const t_=w.memo(function(){const t=$e("HeaderComponent"),n=Dn("headerHeight"),r=$e("headerFooterTag"),i=tr(o=>n(Bn(o,"height"))),a=$e("context");return t?w.createElement(r,{ref:i},w.createElement(t,it(t,a))):null}),n_=w.memo(function(){const t=$e("FooterComponent"),n=Dn("footerHeight"),r=$e("headerFooterTag"),i=tr(o=>n(Bn(o,"height"))),a=$e("context");return t?w.createElement(r,{ref:i},w.createElement(t,it(t,a))):null});function jf({usePublisher:e,useEmitter:t,useEmitterValue:n}){return w.memo(function({style:a,children:o,...s}){const l=e("scrollContainerState"),u=n("ScrollerComponent"),c=e("smoothScrollTargetReached"),d=n("scrollerRef"),h=n("context"),{scrollerRef:f,scrollByCallback:g,scrollToCallback:p}=Rb(l,c,u,d);return t("scrollTo",p),t("scrollBy",g),w.createElement(u,{ref:f,style:{...QI,...a},"data-testid":"virtuoso-scroller","data-virtuoso-scroller":!0,tabIndex:0,...s,...it(u,h)},o)})}function Wf({usePublisher:e,useEmitter:t,useEmitterValue:n}){return w.memo(function({style:a,children:o,...s}){const l=e("windowScrollContainerState"),u=n("ScrollerComponent"),c=e("smoothScrollTargetReached"),d=n("totalListHeight"),h=n("deviation"),f=n("customScrollParent"),g=n("context"),{scrollerRef:p,scrollByCallback:b,scrollToCallback:v}=Rb(l,c,u,ki,f);return dI(()=>(p.current=f||window,()=>{p.current=null}),[p,f]),t("windowScrollTo",v),t("scrollBy",b),w.createElement(u,{style:{position:"relative",...a,...d!==0?{height:d+h}:{}},"data-virtuoso-scroller":!0,...s,...it(u,g)},o)})}const r_=({children:e})=>{const t=w.useContext(Ru),n=Dn("viewportHeight"),r=Dn("fixedItemHeight"),i=$e("alignToBottom"),a=tr(Io(n,o=>Bn(o,"height")));return w.useEffect(()=>{t&&(n(t.viewportHeight),r(t.itemHeight))},[t,n,r]),w.createElement("div",{style:Aa(i),ref:a,"data-viewport-type":"element"},e)},i_=({children:e})=>{const t=w.useContext(Ru),n=Dn("windowViewportRect"),r=Dn("fixedItemHeight"),i=$e("customScrollParent"),a=Lf(n,i),o=$e("alignToBottom");return w.useEffect(()=>{t&&(r(t.itemHeight),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,n,r]),w.createElement("div",{ref:a,style:Aa(o),"data-viewport-type":"window"},e)},a_=({children:e})=>{const t=$e("TopItemListComponent")||"div",n=$e("headerHeight"),r={...e_,marginTop:`${n}px`},i=$e("context");return w.createElement(t,{style:r,...it(t,i)},e)},o_=w.memo(function(t){const n=$e("useWindowScroll"),r=$e("topItemsIndexes").length>0,i=$e("customScrollParent"),a=i||n?u_:l_,o=i||n?i_:r_;return w.createElement(a,{...t},r&&w.createElement(a_,null,w.createElement(sm,{showTopList:!0})),w.createElement(o,null,w.createElement(t_,null),w.createElement(sm,null),w.createElement(n_,null)))}),{Component:s_,usePublisher:Dn,useEmitterValue:$e,useEmitter:zf}=Tf(UI,{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"}},o_),l_=jf({usePublisher:Dn,useEmitterValue:$e,useEmitter:zf}),u_=Wf({usePublisher:Dn,useEmitterValue:$e,useEmitter:zf}),c_=s_,lm={items:[],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},d_={items:[{index:0}],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},{round:um,ceil:cm,floor:Hl,min:pc,max:so}=Math;function f_(e){return{...d_,items:e}}function dm(e,t,n){return Array.from({length:t-e+1}).map((r,i)=>{const a=n===null?null:n[i+e];return{index:i+e,data:a}})}function h_(e,t){return e&&e.column===t.column&&e.row===t.row}function As(e,t){return e&&e.width===t.width&&e.height===t.height}const g_=Oe(([{overscan:e,visibleRange:t,listBoundary:n},{scrollTop:r,viewportHeight:i,scrollBy:a,scrollTo:o,smoothScrollTargetReached:s,scrollContainerState:l,footerHeight:u,headerHeight:c},d,h,{propsReady:f,didMount:g},{windowViewportRect:p,useWindowScroll:b,customScrollParent:v,windowScrollContainerState:y,windowScrollTo:x},S])=>{const D=q(0),$=q(0),F=q(lm),m=q({height:0,width:0}),C=q({height:0,width:0}),I=Te(),E=Te(),R=q(0),P=q(null),A=q({row:0,column:0}),M=Te(),k=Te(),T=q(!1),B=q(0),O=q(!0),L=q(!1);Xe(J(g,Se(B),ye(([V,X])=>!!X)),()=>{we(O,!1),we($,0)}),Xe(J(wt(g,O,C,m,B,L),ye(([V,X,K,te,,ue])=>V&&!X&&K.height!==0&&te.height!==0&&!ue)),([,,,,V])=>{we(L,!0),Bf(1,()=>{we(I,V)}),er(J(r),()=>{we(n,[0,0]),we(O,!0)})}),le(J(k,ye(V=>V!=null&&V.scrollTop>0),Zn(0)),$),Xe(J(g,Se(k),ye(([,V])=>V!=null)),([,V])=>{V&&(we(m,V.viewport),we(C,V==null?void 0:V.item),we(A,V.gap),V.scrollTop>0&&(we(T,!0),er(J(r,ya(1)),X=>{we(T,!1)}),we(o,{top:V.scrollTop})))}),le(J(m,ne(({height:V})=>V)),i),le(J(wt(xe(m,As),xe(C,As),xe(A,(V,X)=>V&&V.column===X.column&&V.row===X.row),xe(r)),ne(([V,X,K,te])=>({viewport:V,item:X,gap:K,scrollTop:te}))),M),le(J(wt(xe(D),t,xe(A,h_),xe(C,As),xe(m,As),xe(P),xe($),xe(T),xe(O),xe(B)),ye(([,,,,,,,V])=>!V),ne(([V,[X,K],te,ue,ie,Z,me,,he,ce])=>{const{row:qe,column:ee}=te,{height:re,width:pe}=ue,{width:He}=ie;if(me===0&&(V===0||He===0))return lm;if(pe===0){const Vi=Of(ce,V),Zu=Vi===0?Math.max(me-1,0):Vi;return f_(dm(Vi,Zu,Z))}const ct=Ub(He,pe,ee);let Ae,Ee;he?X===0&&K===0&&me>0?(Ae=0,Ee=me-1):(Ae=ct*Hl((X+qe)/(re+qe)),Ee=ct*cm((K+qe)/(re+qe))-1,Ee=pc(V-1,so(Ee,ct-1)),Ae=pc(Ee,so(0,Ae))):(Ae=0,Ee=-1);const Ht=dm(Ae,Ee,Z),{top:jt,bottom:Wt}=fm(ie,te,ue,Ht),rr=cm(V/ct),bs=rr*re+(rr-1)*qe-Wt;return{items:Ht,offsetTop:jt,offsetBottom:bs,top:jt,bottom:Wt,itemHeight:re,itemWidth:pe}})),F),le(J(P,ye(V=>V!==null),ne(V=>V.length)),D),le(J(wt(m,C,F,A),ye(([V,X,{items:K}])=>K.length>0&&X.height!==0&&V.height!==0),ne(([V,X,{items:K},te])=>{const{top:ue,bottom:ie}=fm(V,te,X,K);return[ue,ie]}),Je(Fo)),n);const j=q(!1);le(J(r,Se(j),ne(([V,X])=>X||V!==0)),j);const z=sn(J(xe(F),ye(({items:V})=>V.length>0),Se(D,j),ye(([{items:V},X,K])=>K&&V[V.length-1].index===X-1),ne(([,V])=>V-1),Je())),Y=sn(J(xe(F),ye(({items:V})=>V.length>0&&V[0].index===0),Zn(0),Je())),G=sn(J(xe(F),Se(T),ye(([{items:V},X])=>V.length>0&&!X),ne(([{items:V}])=>({startIndex:V[0].index,endIndex:V[V.length-1].index})),Je(Lb),Nr(0)));le(G,h.scrollSeekRangeChanged),le(J(I,Se(m,C,D,A),ne(([V,X,K,te,ue])=>{const ie=Nb(V),{align:Z,behavior:me,offset:he}=ie;let ce=ie.index;ce==="LAST"&&(ce=te-1),ce=so(0,ce,pc(te-1,ce));let qe=xd(X,ue,K,ce);return Z==="end"?qe=um(qe-X.height+K.height):Z==="center"&&(qe=um(qe-X.height/2+K.height/2)),he&&(qe+=he),{top:qe,behavior:me}})),o);const H=Tt(J(F,ne(V=>V.offsetBottom+V.bottom)),0);return le(J(p,ne(V=>({width:V.visibleWidth,height:V.visibleHeight}))),m),{data:P,totalCount:D,viewportDimensions:m,itemDimensions:C,scrollTop:r,scrollHeight:E,overscan:e,scrollBy:a,scrollTo:o,scrollToIndex:I,smoothScrollTargetReached:s,windowViewportRect:p,windowScrollTo:x,useWindowScroll:b,customScrollParent:v,windowScrollContainerState:y,deviation:R,scrollContainerState:l,footerHeight:u,headerHeight:c,initialItemCount:$,gap:A,restoreStateFrom:k,...h,initialTopMostItemIndex:B,gridState:F,totalListHeight:H,...d,startReached:Y,endReached:z,rangeChanged:G,stateChanged:M,propsReady:f,stateRestoreInProgress:T,...S}},Ke(Nf,Lt,os,jb,Qr,Vf,qr));function fm(e,t,n,r){const{height:i}=n;if(i===void 0||r.length===0)return{top:0,bottom:0};const a=xd(e,t,n,r[0].index),o=xd(e,t,n,r[r.length-1].index)+i;return{top:a,bottom:o}}function xd(e,t,n,r){const i=Ub(e.width,n.width,t.column),a=Hl(r/i),o=a*n.height+so(0,a-1)*t.row;return o>0?o+t.row:o}function Ub(e,t,n){return so(1,Hl((e+n)/(Hl(t)+n)))}const m_=Oe(()=>{const e=q(u=>`Item ${u}`),t=q({}),n=q(null),r=q("virtuoso-grid-item"),i=q("virtuoso-grid-list"),a=q(Hf),o=q("div"),s=q(ki),l=(u,c=null)=>Tt(J(t,ne(d=>d[u]),Je()),c);return{context:n,itemContent:e,components:t,computeItemKey:a,itemClassName:r,listClassName:i,headerFooterTag:o,scrollerRef:s,FooterComponent:l("Footer"),HeaderComponent:l("Header"),ListComponent:l("List","div"),ItemComponent:l("Item","div"),ScrollerComponent:l("Scroller","div"),ScrollSeekPlaceholder:l("ScrollSeekPlaceholder","div")}}),p_=Oe(([e,t])=>({...e,...t}),Ke(g_,m_)),b_=w.memo(function(){const t=tt("gridState"),n=tt("listClassName"),r=tt("itemClassName"),i=tt("itemContent"),a=tt("computeItemKey"),o=tt("isSeeking"),s=Pn("scrollHeight"),l=tt("ItemComponent"),u=tt("ListComponent"),c=tt("ScrollSeekPlaceholder"),d=tt("context"),h=Pn("itemDimensions"),f=Pn("gap"),g=tt("log"),p=tt("stateRestoreInProgress"),b=tr(v=>{const y=v.parentElement.parentElement.scrollHeight;s(y);const x=v.firstChild;if(x){const{width:S,height:D}=x.getBoundingClientRect();h({width:S,height:D})}f({row:hm("row-gap",getComputedStyle(v).rowGap,g),column:hm("column-gap",getComputedStyle(v).columnGap,g)})});return p?null:w.createElement(u,{ref:b,className:n,...it(u,d),style:{paddingTop:t.offsetTop,paddingBottom:t.offsetBottom},"data-testid":"virtuoso-item-list"},t.items.map(v=>{const y=a(v.index,v.data,d);return o?w.createElement(c,{key:y,...it(c,d),index:v.index,height:t.itemHeight,width:t.itemWidth}):w.createElement(l,{...it(l,d),className:r,"data-index":v.index,key:y},i(v.index,v.data,d))}))}),v_=w.memo(function(){const t=tt("HeaderComponent"),n=Pn("headerHeight"),r=tt("headerFooterTag"),i=tr(o=>n(Bn(o,"height"))),a=tt("context");return t?w.createElement(r,{ref:i},w.createElement(t,it(t,a))):null}),y_=w.memo(function(){const t=tt("FooterComponent"),n=Pn("footerHeight"),r=tt("headerFooterTag"),i=tr(o=>n(Bn(o,"height"))),a=tt("context");return t?w.createElement(r,{ref:i},w.createElement(t,it(t,a))):null}),x_=({children:e})=>{const t=w.useContext(Zb),n=Pn("itemDimensions"),r=Pn("viewportDimensions"),i=tr(a=>{r(a.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:Aa(!1),ref:i},e)},C_=({children:e})=>{const t=w.useContext(Zb),n=Pn("windowViewportRect"),r=Pn("itemDimensions"),i=tt("customScrollParent"),a=Lf(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:a,style:Aa(!1)},e)},w_=w.memo(function({...t}){const n=tt("useWindowScroll"),r=tt("customScrollParent"),i=r||n?S_:D_,a=r||n?C_:x_;return w.createElement(i,{...t},w.createElement(a,null,w.createElement(v_,null),w.createElement(b_,null),w.createElement(y_,null)))}),{usePublisher:Pn,useEmitterValue:tt,useEmitter:Jb}=Tf(p_,{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"}},w_),D_=jf({usePublisher:Pn,useEmitterValue:tt,useEmitter:Jb}),S_=Wf({usePublisher:Pn,useEmitterValue:tt,useEmitter:Jb});function hm(e,t,n){return t!=="normal"&&!(t!=null&&t.endsWith("px"))&&n(`${e} was not resolved to pixel value correctly`,t,ln.WARN),t==="normal"?0:parseInt(t??"0",10)}const E_=Oe(()=>{const e=q(l=>w.createElement("td",null,"Item $",l)),t=q(null),n=q(null),r=q(null),i=q({}),a=q(Hf),o=q(ki),s=(l,u=null)=>Tt(J(i,ne(c=>c[l]),Je()),u);return{context:t,itemContent:e,fixedHeaderContent:n,fixedFooterContent:r,components:i,computeItemKey:a,scrollerRef:o,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")}}),I_=Oe(([e,t])=>({...e,...t}),Ke(Gb,E_)),__=({height:e})=>w.createElement("tr",null,w.createElement("td",{style:{height:e}})),$_=({height:e})=>w.createElement("tr",null,w.createElement("td",{style:{height:e,padding:0,border:0}})),R_={overflowAnchor:"none"},A_=w.memo(function(){const t=We("listState"),n=kn("sizeRanges"),r=We("useWindowScroll"),i=We("customScrollParent"),a=kn("windowScrollContainerState"),o=kn("scrollContainerState"),s=i||r?a:o,l=We("itemContent"),u=We("trackItemSizes"),c=We("itemSize"),d=We("log"),{callbackRef:h,ref:f}=_b(n,c,u,s,d,void 0,i),[g,p]=w.useState(0);Gf("deviation",k=>{g!==k&&(f.current.style.marginTop=`${k}px`,p(k))});const b=We("EmptyPlaceholder"),v=We("ScrollSeekPlaceholder")||__,y=We("FillerRow")||$_,x=We("TableBodyComponent"),S=We("TableRowComponent"),D=We("computeItemKey"),$=We("isSeeking"),F=We("paddingTopAddition"),m=We("firstItemIndex"),C=We("statefulTotalCount"),I=We("context");if(C===0&&b)return w.createElement(b,it(b,I));const E=t.offsetTop+F+g,R=t.offsetBottom,P=E>0?w.createElement(y,{height:E,key:"padding-top",context:I}):null,A=R>0?w.createElement(y,{height:R,key:"padding-bottom",context:I}):null,M=t.items.map(k=>{const T=k.originalIndex,B=D(T+m,k.data,I);return $?w.createElement(v,{...it(v,I),key:B,index:k.index,height:k.size,type:k.type||"item"}):w.createElement(S,{...it(S,I),...Yb(S,k.data),key:B,"data-index":T,"data-known-size":k.size,"data-item-index":k.index,style:R_},l(k.index,k.data,I))});return w.createElement(x,{ref:h,"data-testid":"virtuoso-item-list",...it(x,I)},[P,...M,A])}),F_=({children:e})=>{const t=w.useContext(Ru),n=kn("viewportHeight"),r=kn("fixedItemHeight"),i=tr(Io(n,a=>Bn(a,"height")));return w.useEffect(()=>{t&&(n(t.viewportHeight),r(t.itemHeight))},[t,n,r]),w.createElement("div",{style:Aa(!1),ref:i,"data-viewport-type":"element"},e)},T_=({children:e})=>{const t=w.useContext(Ru),n=kn("windowViewportRect"),r=kn("fixedItemHeight"),i=We("customScrollParent"),a=Lf(n,i);return w.useEffect(()=>{t&&(r(t.itemHeight),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,n,r]),w.createElement("div",{ref:a,style:Aa(!1),"data-viewport-type":"window"},e)},P_=w.memo(function(t){const n=We("useWindowScroll"),r=We("customScrollParent"),i=kn("fixedHeaderHeight"),a=kn("fixedFooterHeight"),o=We("fixedHeaderContent"),s=We("fixedFooterContent"),l=We("context"),u=tr(Io(i,y=>Bn(y,"height"))),c=tr(Io(a,y=>Bn(y,"height"))),d=r||n?B_:M_,h=r||n?T_:F_,f=We("TableComponent"),g=We("TableHeadComponent"),p=We("TableFooterComponent"),b=o?w.createElement(g,{key:"TableHead",style:{zIndex:2,position:"sticky",top:0},ref:u,...it(g,l)},o()):null,v=s?w.createElement(p,{key:"TableFoot",style:{zIndex:1,position:"sticky",bottom:0},ref:c,...it(p,l)},s()):null;return w.createElement(d,{...t},w.createElement(h,null,w.createElement(f,{style:{borderSpacing:0,overflowAnchor:"none"},...it(f,l)},[b,w.createElement(A_,{key:"TableBody"}),v])))}),{Component:k_,usePublisher:kn,useEmitterValue:We,useEmitter:Gf}=Tf(I_,{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"}},P_),M_=jf({usePublisher:kn,useEmitterValue:We,useEmitter:Gf}),B_=Wf({usePublisher:kn,useEmitterValue:We,useEmitter:Gf}),O_=k_,N_=({children:e,...t})=>_.jsx(_.Fragment,{children:e(t)}),V_=({children:e,...t})=>_.jsx(_.Fragment,{children:w.isValidElement(e)&&_.jsx(_.Fragment,{children:w.cloneElement(e,t)})}),Xf=w.forwardRef((e,t)=>{const{classNameContainer:n="",computeItemKey:r=()=>"",itemSize:i=()=>0,totalCount:a=0,typeHight:o="min-max",minHeightItem:s=0,maxHeightTable:l=0,minLengthItem:u=0,fixedHeaderContent:c,itemContent:d,typeCalculateItemSize:h="manual",itemSizeNames:f=[],overscan:g=null,component:p={},idContainer:b="",triggerCalCulateContainer:v="",accumulationHeight:y=0,delayTriggerCalculateHeight:x=0,increaseViewportBy:S=()=>0,context:D={},endReached:$,increaseTotalCount:F=1}=e,[m,C]=w.useState(0),I=()=>{if(o==="min-max"){const P=(a+F)*s;return{height:a>u?l:m>P?m:P}}return o==="container"?{height:m}:{}},E=P=>{var k;const A=P.getAttribute("data-index");let M=((k=P.getBoundingClientRect())==null?void 0:k.height)||0;return f==null||f.forEach(T=>{var B,O;M+=((O=(B=document.querySelector(`[${T}="${A}"]`))==null?void 0:B.getBoundingClientRect())==null?void 0:O.height)??0}),M},R=()=>{var P;if(b&&o==="container"){const A=((P=document==null?void 0:document.getElementById(b))==null?void 0:P.offsetHeight)??0;C(A-y)}};return w.useEffect(()=>{const P=setTimeout(R,x);return window==null||window.addEventListener("resize",R),window==null||window.addEventListener("load",R),()=>{clearTimeout(P),window==null||window.removeEventListener("resize",R),window==null||window.removeEventListener("load",R)}},[o,v]),_.jsx("div",{className:`1ru-w-full ${n}`,children:_.jsx(O_,{context:D,ref:t,overscan:typeof g=="function"?g(o==="container"?m:l):o==="container"?m:l,totalListHeightChanged:P=>o==="min-max"?C(P):null,style:I(),totalCount:a,computeItemKey:r,itemSize:w.useCallback(P=>h==="manual"?i(P):E(P),[]),components:{TableRow:V_,...p},fixedHeaderContent:c,itemContent:(...P)=>d(N_,...P),endReached:$,increaseViewportBy:S(o==="container"?m:l)})})});Xf.displayName="TableVirtualization";const L_="_sorting_1tyuq_45",Rn={"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:L_,"laba-grey-02":"_laba-grey-02_1tyuq_59"},Gi="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 H_(e,t=null){const[n,r]=w.useState(!1);return w.useEffect(()=>{let i=null,a=null;const o=()=>{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;a=new ResizeObserver(o),a.observe(i)}else i=window,window.addEventListener("resize",o);return o(),()=>{a?a.disconnect():window.removeEventListener("resize",o)}},[e,t]),n}const j_=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)),[a,o]=w.useState(e.running??!1),[s,l]=w.useState(()=>e==null?void 0:e.callbackDone);return w.useEffect(()=>{let h;return a&&r>0?h=setInterval(()=>{i(f=>Math.max(f-1,0))},e.intervalMs):a&&r===0&&typeof s=="function"&&s(),()=>{h&&clearInterval(h)}},[a,r,e.intervalMs,s]),{count:r,startCountdown:()=>{o(!0)},stopCountdown:()=>{o(!1)},resetCountdown:h=>{i(typeof h=="number"?h:t(h??n))},setCallbackDone:h=>l(()=>h)}};function W_(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((a,o)=>{n.current.resolve=a,n.current.reject=o})),n.current.timeout=setTimeout(()=>{e(...i).then(a=>{n.current.resolve&&n.current.resolve(a)}).catch(a=>{n.current.reject&&n.current.reject(a)}).finally(()=>{n.current.promise=null,n.current.resolve=null,n.current.reject=null,n.current.timeout=null})},t),n.current.promise),[e,t])}const Zf=typeof window<"u"?w.useLayoutEffect:w.useEffect,z_=(e,t)=>{const[n,r]=w.useState({width:0,height:0}),[i,a]=w.useState({width:0,height:0,top:0,left:0,bottom:0,right:0,x:0,y:0}),o=w.useRef(null);return Zf(()=>{const s=()=>{r({width:window.innerWidth,height:window.innerHeight})},l=d=>{for(const h of d){const{width:f,height:g,top:p,left:b,bottom:v,right:y,x,y:S}=h.contentRect;a({width:f,height:g,top:p,left:b,bottom:v,right:y,x,y:S})}};let u=null;t?u=document.querySelector(t):o.current&&(u=o.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:o,windowSize:n,contentRect:i}};function G_(e){const[t,n]=w.useState(e),r=w.useRef(t);return w.useEffect(()=>{r.current=t},[t]),[t,n,r]}function X_(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 Z_(...e){return t=>{e.forEach(n=>{X_(n,t)})}}function Yf(...e){return w.useMemo(()=>Z_(...e),e)}function Uf(e){const t=w.useRef(e);return ff(e,t.current)||(t.current=e),t.current}function xa(e,t){const n=t.map(Uf);w.useEffect(e,n)}function Y_({ref:e,handlerMain:t,eventListener:n="mousedown",useEffectDependency:r=[]}){w.useEffect(()=>{function i(a){t(e,a)}return document.addEventListener(n,i),()=>{document.removeEventListener(n,i)}},[e,t,n,...r])}const U_=(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},jl=(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":""}:{}},Kb=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}},tn=()=>({kind:{"payhere-reguler":Rn["payhere-reguler"],"laba-reguler":Rn["laba-reguler"],"laba-small":Rn["laba-small"]},pointer:{"payhere-reguler":Rn["pointer-payhere"],"laba-reguler":Rn["pointer-laba"],"laba-small":Rn["pointer-laba"]},utility:{"table-scroll-top":""},sortingIcon:{"payhere-reguler":{asc:_.jsx("img",{src:Gi,className:"1ru-w-4 1ru-h-4"}),desc:_.jsx("img",{src:Gi,className:"1ru-w-4 1ru-h-4 1ru-rotate-180"})},"laba-reguler":{asc:_.jsx("img",{src:Gi,className:"1ru-w-4 1ru-h-4"}),desc:_.jsx("img",{src:Gi,className:"1ru-w-4 1ru-h-4 1ru-rotate-180"})},"laba-small":{asc:_.jsx("img",{src:Gi,className:"1ru-w-4 1ru-h-4"}),desc:_.jsx("img",{src:Gi,className:"1ru-w-4 1ru-h-4 1ru-rotate-180"})}},variant:{"laba-grey-02":Rn["laba-grey-02"]}}),J_=({tableInstance:e,classNameWrapperTable:t,classNameTable:n,handlerRowClick:r,privillageRowClick:i,headerId:a,tbodyTrId:o,maxHeight:s,idCalculateHeight:l,componentSortASC:u,componentSortDESC:c,classNamePointer:d,emptyPlaceholder:h,renderSubComponent:f})=>_.jsx("div",{id:"1ru-table",style:s?{height:s,overflow:"auto"}:{},className:t??"",children:_.jsxs("table",{className:n,style:{width:Kb(e.getState()).isPinning?e.getTotalSize():""},children:[_.jsx("thead",{id:a,"data-calculate-height-header":l,children:e.getHeaderGroups().map(g=>_.jsx("tr",{children:g.headers.map(p=>{var v,y,x,S;const b=(y=(v=p.column.columnDef.meta)==null?void 0:v.rowSpan)==null?void 0:y.call(v,p);return!p.isPlaceholder&&b!==void 0&&p.id===p.column.id?_.jsx(_.Fragment,{}):_.jsxs("th",{style:{...U_(s,p),...jl(p.column)},colSpan:typeof((x=p.column.columnDef.meta)==null?void 0:x.colSpan)=="function"?(S=p.column.columnDef.meta)==null?void 0:S.colSpan(p.column.columnDef):p.colSpan,rowSpan:b,children:[p.isPlaceholder&&b===void 0?null:_.jsxs("div",{className:p.column.getCanSort()?Rn.sorting:"",onClick:p.column.getToggleSortingHandler(),children:[Eo(p.column.columnDef.header,p.getContext()),p.column.getCanSort()&&_.jsx("span",{className:"1ru-flex-shrink-0",children:p.column.getIsSorted()==="asc"||p.column.getIsSorted()==="desc"?_.jsxs(_.Fragment,{children:[p.column.getIsSorted()==="asc"&&_.jsx(_.Fragment,{children:u}),p.column.getIsSorted()==="desc"&&_.jsx(_.Fragment,{children:c})]}):_.jsx(_.Fragment,{})})]}),p.column.getIsPinned()&&_.jsx("div",{onDoubleClick:()=>p.column.resetSize(),onMouseDown:p.getResizeHandler(),onTouchStart:p.getResizeHandler(),className:Rn["resize-menu"]})]},p.id)})},g.id))}),_.jsxs("tbody",{children:[e.getRowModel().rows.length>0&&e.getRowModel().rows.map((g,p)=>_.jsxs(w.Fragment,{children:[_.jsx("tr",{onClick:b=>{b.stopPropagation(),i&&typeof r=="function"&&r(g.original,g)},className:i?d:"","data-calculate-height":`${l}-${p}`,id:o(g),children:g.getVisibleCells().map(b=>{var v,y,x;return _.jsx("td",{style:{...typeof((v=b.column.columnDef.meta)==null?void 0:v.styleTd)=="function"?b.column.columnDef.meta.styleTd(g.original,g):{},...jl(b.column,!0)},className:typeof((y=b.column.columnDef.meta)==null?void 0:y.classNameTd)=="function"?(x=b.column.columnDef.meta)==null?void 0:x.classNameTd(g.original,g):"",children:Eo(b.column.columnDef.cell,b.getContext())},b.id)})},g.id),g.getIsExpanded()&&typeof f=="function"&&_.jsx("tr",{children:_.jsx("td",{colSpan:g.getVisibleCells().length,children:f(g.original,g)})})]},g.id)),e.getRowModel().rows.length===0&&w.isValidElement(h)&&_.jsx("tr",{children:_.jsx("td",{colSpan:e.getVisibleFlatColumns().length,children:h})})]})]})}),qb=w.forwardRef((e,t)=>{const{context:n,...r}=e;return _.jsx("thead",{id:(n==null?void 0:n.headerId)??"",...r,ref:t})});qb.displayName="VirtualizationHead";const K_=({style:e,context:t,...n})=>_.jsx("table",{...n,id:"1ru-table",className:(t==null?void 0:t.classNameTable)??"",style:{...e,width:t==null?void 0:t.width}}),q_=({tableInstance:e,classNameWrapperTable:t,handlerRowClick:n,privillageRowClick:r,virtualizationProps:i,headerId:a,tbodyTrId:o,classNameTable:s,componentSortASC:l,componentSortDESC:u,classNamePointer:c,emptyPlaceholder:d,renderSubComponent:h})=>{var p,b,v;const[f,g]=w.useState(0);return _.jsx(Xf,{context:{headerId:a,classNameTable:s,width:Kb(e.getState()).isPinning?e.getTotalSize():""},typeHight:"min-max",totalCount:((p=e.getRowModel().rows)==null?void 0:p.length)||0,minLengthItem:((b=e.getRowModel().rows)==null?void 0:b.length)||0,typeCalculateItemSize:"auto",component:{TableHead:qb,Table:K_,EmptyPlaceholder:()=>_.jsx("tbody",{ref:y=>{var x;return g(((x=y==null?void 0:y.getBoundingClientRect())==null?void 0:x.height)??0)},children:_.jsx("tr",{children:_.jsx("td",{colSpan:e.getVisibleFlatColumns().length,children:w.isValidElement(d)&&d})})})},classNameContainer:t,fixedHeaderContent:()=>e.getHeaderGroups().map(y=>_.jsx("tr",{children:y.headers.map(x=>{var D,$,F,m;const S=($=(D=x.column.columnDef.meta)==null?void 0:D.rowSpan)==null?void 0:$.call(D,x);return!x.isPlaceholder&&S!==void 0&&x.id===x.column.id?_.jsx(_.Fragment,{}):_.jsxs("th",{colSpan:x.colSpan,rowSpan:S,style:{...typeof((F=x.column.columnDef.meta)==null?void 0:F.styleTh)=="function"?(m=x.column.columnDef.meta)==null?void 0:m.styleTh(x.column.columnDef):{},...jl(x.column)},children:[x.isPlaceholder&&S===void 0?null:_.jsxs("div",{className:x.column.getCanSort()?Rn.sorting:"",onClick:x.column.getToggleSortingHandler(),children:[Eo(x.column.columnDef.header,x.getContext()),x.column.getCanSort()&&_.jsx("span",{className:"1ru-flex-shrink-0",children:x.column.getIsSorted()==="asc"||x.column.getIsSorted()==="desc"?_.jsxs(_.Fragment,{children:[x.column.getIsSorted()==="asc"&&_.jsx(_.Fragment,{children:l}),x.column.getIsSorted()==="desc"&&_.jsx(_.Fragment,{children:u})]}):_.jsx(_.Fragment,{})})]}),x.column.getIsPinned()&&_.jsx("div",{onDoubleClick:()=>x.column.resetSize(),onMouseDown:x.getResizeHandler(),onTouchStart:x.getResizeHandler(),className:Rn["resize-menu"]})]},x.id)})},y.id)),itemContent:(y,x)=>{var D,$;const S=($=(D=e.getRowModel())==null?void 0:D.rows)==null?void 0:$[x];return _.jsx(y,{children:({...F})=>_.jsxs(w.Fragment,{children:[_.jsx("tr",{...F,onClick:m=>{m.stopPropagation(),r&&typeof n=="function"&&n(S.original,S)},className:r?c:"",id:o(S),children:S.getVisibleCells().map(m=>{var C,I,E;return _.jsx(_.Fragment,{children:_.jsx("td",{style:{...typeof((C=m.column.columnDef.meta)==null?void 0:C.styleTd)=="function"?m.column.columnDef.meta.styleTd(S.original,S):{},...jl(m.column,!0)},className:typeof((I=m.column.columnDef.meta)==null?void 0:I.classNameTd)=="function"?(E=m.column.columnDef.meta)==null?void 0:E.classNameTd(S.original,S):"",children:Eo(m.column.columnDef.cell,m.getContext())},m.id)})})}),S.getIsExpanded()&&typeof h=="function"&&_.jsx("tr",{"data-sub-component":x,children:_.jsx("td",{colSpan:S.getVisibleCells().length,children:h(S.original,S)})})]},S.id)},S.id)},...i,minHeightItem:((i==null?void 0:i.minHeightItem)??60)+((((v=e.getRowModel().rows)==null?void 0:v.length)||0)>0?0:f),itemSizeNames:typeof h=="function"?[...(i==null?void 0:i.itemSizeNames)??[],"data-sub-component"]:i==null?void 0:i.itemSizeNames})},Q_=({tableInstance:e,classNameWrapperTable:t="",classNameTable:n="",collapseAll:r=!0,handlerRowClick:i,privillageRowClick:a=!1,virtualization:o=!1,virtualizationProps:s,headerId:l="",tbodyTrId:u=()=>"",maxHeight:c=0,idCalculateHeight:d=void 0,kind:h="laba-reguler",componentSortASC:f,componentSortDESC:g,scrollTop:p=!1,emptyPlaceholder:b,variant:v,renderSubComponent:y})=>{const x=()=>{if(![void 0,"undefined"].includes(d)){const S=document.querySelector(`[data-calculate-height-header="${d}"]`);let D=0;const $=document.querySelectorAll(`[data-calculate-height^="${d}-"]`);return $==null||$.forEach(F=>{D+=F.offsetHeight}),D>c?c+S.offsetHeight:0}return c};return xa(()=>{!r&&typeof e.toggleAllRowsExpanded=="function"&&e.toggleAllRowsExpanded()},[r,e==null?void 0:e.toggleAllRowsExpanded]),_.jsxs(_.Fragment,{children:[!o&&_.jsx(J_,{tbodyTrId:u,headerId:l,tableInstance:e,classNameTable:n,classNameWrapperTable:`${tn().kind[h]} ${v?tn().variant[v]:""}
74
+ */function Eo(e,t){return e?KE(e)?W.createElement(e,t):e:null}function KE(e){return qE(e)||typeof e=="function"||QE(e)}function qE(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function QE(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]=W.useState(()=>({current:wb(t)})),[r,i]=W.useState(()=>n.current.initialState);return n.current.setOptions(a=>({...a,...e,state:{...r,...e.state},onStateChange:o=>{i(o),e.onStateChange==null||e.onStateChange(o)}})),n.current}const tI=Object.freeze(Object.defineProperty({__proto__:null,ColumnFaceting:K1,ColumnFiltering:ob,ColumnGrouping:sb,ColumnOrdering:ub,ColumnPinning:cb,ColumnSizing:db,ColumnVisibility:hb,GlobalFaceting:gb,GlobalFiltering:mb,Headers:J1,RowExpanding:pb,RowPagination:bb,RowPinning:vb,RowSelection:yb,RowSorting:Cb,_getVisibleLeafColumns:la,aggregationFns:ul,buildHeaderGroups:Xa,createCell:Y1,createColumn:U1,createColumnHelper:CE,createRow:is,createTable:wb,defaultColumnSizing:Za,expandRows:Rf,filterFns:Xn,flattenBy:If,flexRender:Eo,functionalUpdate:br,getCoreRowModel:VE,getExpandedRowModel:LE,getFacetedMinMaxValues:HE,getFacetedRowModel:zE,getFacetedUniqueValues:GE,getFilteredRowModel:XE,getGroupedRowModel:ZE,getMemoOptions:se,getPaginationRowModel:UE,getSortedRowModel:JE,isFunction:rs,isNumberArray:Z1,isRowSelected:Su,isSubRowSelected:Bl,makeStateUpdater:Jt,memo:oe,noop:wE,orderColumns:lb,passiveEventSupported:fb,reSplitAlphaNumeric:Ol,selectRowsFn:cl,shouldAutoRemoveFilter:fd,sortingFns:ta,useReactTable:eI},Symbol.toStringTag,{value:"Module"})),Eu=0,Kr=1,Ra=2,Sb=4;function Io(e,t){return n=>e(t(n))}function nI(e,t){return t(e)}function Eb(e,t){return n=>e(t,n)}function Ug(e,t){return()=>e(t)}function Iu(e,t){return t(e),e}function Ke(...e){return e}function rI(e){e()}function Jg(e){return()=>e}function iI(...e){return()=>{e.map(rI)}}function Af(e){return e!==void 0}function Mi(){}function Xe(e,t){return e(Kr,t)}function we(e,t){e(Eu,t)}function Ff(e){e(Ra)}function Ft(e){return e(Sb)}function le(e,t){return Xe(e,Eb(t,Eu))}function er(e,t){const n=e(Kr,r=>{n(),t(r)});return n}function Te(){const e=[];return(t,n)=>{switch(t){case Ra:e.splice(0,e.length);return;case Kr:return e.push(n),()=>{const r=e.indexOf(n);r>-1&&e.splice(r,1)};case Eu:e.slice().forEach(r=>{r(n)});return;default:throw new Error(`unrecognized action ${t}`)}}}function q(e){let t=e;const n=Te();return(r,i)=>{switch(r){case Kr:i(t);break;case Eu:t=i;break;case Sb:return t}return n(r,i)}}function aI(e){let t,n;const r=()=>t&&t();return function(i,a){switch(i){case Kr:return a?n===a?void 0:(r(),n=a,t=Xe(e,a),t):(r(),Mi);case Ra:r(),n=null;return;default:throw new Error(`unrecognized action ${i}`)}}}function sn(e){return Iu(Te(),t=>le(e,t))}function Tt(e,t){return Iu(q(t),n=>le(e,n))}function oI(...e){return t=>e.reduceRight(nI,t)}function J(e,...t){const n=oI(...t);return(r,i)=>{switch(r){case Kr:return Xe(e,n(i));case Ra:Ff(e);return}}}function Ib(e,t){return e===t}function Je(e=Ib){let t;return n=>r=>{e(t,r)||(t=r,n(r))}}function ye(e){return t=>n=>{e(n)&&t(n)}}function ne(e){return t=>Io(t,e)}function Zn(e){return t=>()=>t(e)}function Un(e,t){return n=>r=>n(t=e(t,r))}function xa(e){return t=>n=>{e>0?e--:t(n)}}function Nr(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 Se(...e){const t=new Array(e.length);let n=0,r=null;const i=Math.pow(2,e.length)-1;return e.forEach((a,o)=>{const s=Math.pow(2,o);Xe(a,l=>{const u=n;n=n|s,t[o]=l,u!==i&&n===i&&r&&(r(),r=null)})}),a=>o=>{const s=()=>a([o].concat(t));n===i?s():r=s}}function qg(...e){return function(t,n){switch(t){case Kr:return iI(...e.map(r=>Xe(r,n)));case Ra:return;default:throw new Error(`unrecognized action ${t}`)}}}function xe(e,t=Ib){return J(e,Je(t))}function wt(...e){const t=Te(),n=new Array(e.length);let r=0;const i=Math.pow(2,e.length)-1;return e.forEach((a,o)=>{const s=Math.pow(2,o);Xe(a,l=>{n[o]=l,r=r|s,r===i&&we(t,n)})}),function(a,o){switch(a){case Kr:return r===i&&o(n),Xe(t,o);case Ra:return Ff(t);default:throw new Error(`unrecognized action ${a}`)}}}function Oe(e,t=[],{singleton:n}={singleton:!0}){return{id:sI(),constructor:e,dependencies:t,singleton:n}}const sI=()=>Symbol();function lI(e){const t=new Map,n=({id:r,constructor:i,dependencies:a,singleton:o})=>{if(o&&t.has(r))return t.get(r);const s=i(a.map(l=>n(l)));return o&&t.set(r,s),s};return n(e)}function uI(e,t){const n={},r={};let i=0;const a=e.length;for(;i<a;)r[e[i]]=1,i+=1;for(const o in t)r.hasOwnProperty(o)||(n[o]=t[o]);return n}const Rs=typeof document<"u"?w.useLayoutEffect:w.useEffect;function Tf(e,t,n){const r=Object.keys(t.required||{}),i=Object.keys(t.optional||{}),a=Object.keys(t.methods||{}),o=Object.keys(t.events||{}),s=w.createContext({});function l(v,y){v.propsReady&&we(v.propsReady,!1);for(const x of r){const S=v[t.required[x]];we(S,y[x])}for(const x of i)if(x in y){const S=v[t.optional[x]];we(S,y[x])}v.propsReady&&we(v.propsReady,!0)}function u(v){return a.reduce((y,x)=>(y[x]=S=>{const D=v[t.methods[x]];we(D,S)},y),{})}function c(v){return o.reduce((y,x)=>(y[x]=aI(v[t.events[x]]),y),{})}const d=w.forwardRef((v,y)=>{const{children:x,...S}=v,[D]=w.useState(()=>Iu(lI(e),F=>l(F,S))),[$]=w.useState(Ug(c,D));return Rs(()=>{for(const F of o)F in S&&Xe($[F],S[F]);return()=>{Object.values($).map(Ff)}},[S,$,D]),Rs(()=>{l(D,S)}),w.useImperativeHandle(y,Jg(u(D))),w.createElement(s.Provider,{value:D},n?w.createElement(n,uI([...r,...i,...o],S),x):x)}),h=v=>w.useCallback(Eb(we,w.useContext(s)[v]),[v]),f=v=>{const x=w.useContext(s)[v],S=w.useCallback(D=>Xe(x,D),[x]);return w.useSyncExternalStore(S,()=>Ft(x),()=>Ft(x))},g=v=>{const x=w.useContext(s)[v],[S,D]=w.useState(Ug(Ft,x));return Rs(()=>Xe(x,$=>{$!==S&&D(Jg($))}),[x,S]),S},p=w.version.startsWith("18")?f:g;return{Component:d,usePublisher:h,useEmitterValue:p,useEmitter:(v,y)=>{const S=w.useContext(s)[v];Rs(()=>Xe(S,y),[y,S])}}}const cI=typeof document<"u"?w.useLayoutEffect:w.useEffect,dI=cI;var ln=(e=>(e[e.DEBUG=0]="DEBUG",e[e.INFO=1]="INFO",e[e.WARN=2]="WARN",e[e.ERROR=3]="ERROR",e))(ln||{});const fI={0:"debug",1:"log",2:"warn",3:"error"},hI=()=>typeof globalThis>"u"?window:globalThis,qr=Oe(()=>{const e=q(3);return{log:q((n,r,i=1)=>{var a;const o=(a=hI().VIRTUOSO_LOG_LEVEL)!=null?a:Ft(e);i>=o&&console[fI[i]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",n,r)}),logLevel:e}},[],{singleton:!0});function Pf(e,t=!0){const n=w.useRef(null);let r=i=>{};if(typeof ResizeObserver<"u"){const i=w.useMemo(()=>new ResizeObserver(a=>{requestAnimationFrame(()=>{const o=a[0].target;o.offsetParent!==null&&e(o)})}),[e]);r=a=>{a&&t?(i.observe(a),n.current=a):(n.current&&i.unobserve(n.current),n.current=null)}}return{ref:n,callbackRef:r}}function tr(e,t=!0){return Pf(e,t).callbackRef}function _b(e,t,n,r,i,a,o){const s=w.useCallback(l=>{const u=gI(l.children,t,"offsetHeight",i);let c=l.parentElement;for(;!c.dataset.virtuosoScroller;)c=c.parentElement;const d=c.lastElementChild.dataset.viewportType==="window",h=o?o.scrollTop:d?window.pageYOffset||document.documentElement.scrollTop:c.scrollTop,f=o?o.scrollHeight:d?document.documentElement.scrollHeight:c.scrollHeight,g=o?o.offsetHeight:d?window.innerHeight:c.offsetHeight;r({scrollTop:Math.max(h,0),scrollHeight:f,viewportHeight:g}),a==null||a(mI("row-gap",getComputedStyle(l).rowGap,i)),u!==null&&e(u)},[e,t,i,a,o,r]);return Pf(s,n)}function gI(e,t,n,r){const i=e.length;if(i===0)return null;const a=[];for(let o=0;o<i;o++){const s=e.item(o);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},ln.ERROR),c===u)continue;const d=a[a.length-1];a.length===0||d.size!==c||d.endIndex!==l-1?a.push({startIndex:l,endIndex:l,size:c}):a[a.length-1].endIndex++}return a}function mI(e,t,n){return t!=="normal"&&!(t!=null&&t.endsWith("px"))&&n(`${e} was not resolved to pixel value correctly`,t,ln.WARN),t==="normal"?0:parseInt(t??"0",10)}function Bn(e,t){return Math.round(e.getBoundingClientRect()[t])}function $b(e,t){return Math.abs(e-t)<1.01}function Rb(e,t,n,r=Mi,i){const a=w.useRef(null),o=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,p=f?document.documentElement.scrollHeight:h.scrollHeight,b=f?window.innerHeight:h.offsetHeight,v=()=>{e({scrollTop:Math.max(g,0),scrollHeight:p,viewportHeight:b})};d.suppressFlushSync?v():ts.flushSync(v),o.current!==null&&(g===o.current||g<=0||g===p-b)&&(o.current=null,t(!0),s.current&&(clearTimeout(s.current),s.current=null))},[e,t]);w.useEffect(()=>{const d=i||a.current;return r(i||a.current),l({target:d,suppressFlushSync:!0}),d.addEventListener("scroll",l,{passive:!0}),()=>{r(null),d.removeEventListener("scroll",l)}},[a,l,n,r,i]);function u(d){const h=a.current;if(!h||"offsetHeight"in h&&h.offsetHeight===0)return;const f=d.behavior==="smooth";let g,p,b;h===window?(p=Math.max(Bn(document.documentElement,"height"),document.documentElement.scrollHeight),g=window.innerHeight,b=document.documentElement.scrollTop):(p=h.scrollHeight,g=Bn(h,"height"),b=h.scrollTop);const v=p-g;if(d.top=Math.ceil(Math.max(Math.min(v,d.top),0)),$b(g,p)||d.top===b){e({scrollTop:b,scrollHeight:p,viewportHeight:g}),f&&t(!0);return}f?(o.current=d.top,s.current&&clearTimeout(s.current),s.current=setTimeout(()=>{s.current=null,o.current=null,t(!0)},1e3)):o.current=null,h.scrollTo(d)}function c(d){a.current.scrollBy(d)}return{scrollerRef:a,scrollByCallback:c,scrollToCallback:u}}const Lt=Oe(()=>{const e=Te(),t=Te(),n=q(0),r=Te(),i=q(0),a=Te(),o=Te(),s=q(0),l=q(0),u=q(0),c=q(0),d=Te(),h=Te(),f=q(!1);return le(J(e,ne(({scrollTop:g})=>g)),t),le(J(e,ne(({scrollHeight:g})=>g)),o),le(t,i),{scrollContainerState:e,scrollTop:t,viewportHeight:a,headerHeight:s,fixedHeaderHeight:l,fixedFooterHeight:u,footerHeight:c,scrollHeight:o,smoothScrollTargetReached:r,scrollTo:d,scrollBy:h,statefulScrollTop:i,deviation:n,scrollingInProgress:f}},[],{singleton:!0}),_o={lvl:0};function Ab(e,t,n,r=_o,i=_o){return{k:e,v:t,lvl:n,l:r,r:i}}function Ye(e){return e===_o}function ua(){return _o}function pd(e,t){if(Ye(e))return _o;const{k:n,l:r,r:i}=e;if(t===n){if(Ye(r))return i;if(Ye(i))return r;{const[a,o]=Fb(r);return dl(pt(e,{k:a,v:o,l:Tb(r)}))}}else return t<n?dl(pt(e,{l:pd(r,t)})):dl(pt(e,{r:pd(i,t)}))}function $o(e,t){if(!Ye(e))return t===e.k?e.v:t<e.k?$o(e.l,t):$o(e.r,t)}function On(e,t,n="k"){if(Ye(e))return[-1/0,void 0];if(Number(e[n])===t)return[e.k,e.v];if(Number(e[n])<t){const r=On(e.r,t,n);return r[0]===-1/0?[e.k,e.v]:r}return On(e.l,t,n)}function rn(e,t,n){return Ye(e)?Ab(t,n,1):t===e.k?pt(e,{k:t,v:n}):t<e.k?Qg(pt(e,{l:rn(e.l,t,n)})):Qg(pt(e,{r:rn(e.r,t,n)}))}function bd(e,t,n){if(Ye(e))return[];const{k:r,v:i,l:a,r:o}=e;let s=[];return r>t&&(s=s.concat(bd(a,t,n))),r>=t&&r<=n&&s.push({k:r,v:i}),r<=n&&(s=s.concat(bd(o,t,n))),s}function bi(e){return Ye(e)?[]:[...bi(e.l),{k:e.k,v:e.v},...bi(e.r)]}function Fb(e){return Ye(e.r)?[e.k,e.v]:Fb(e.r)}function Tb(e){return Ye(e.r)?e.l:dl(pt(e,{r:Tb(e.r)}))}function pt(e,t){return Ab(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 hc(e){return Ye(e)||e.lvl>e.r.lvl}function Qg(e){return vd(kb(e))}function dl(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(hc(t))return kb(pt(e,{lvl:r-1}));if(!Ye(t)&&!Ye(t.r))return pt(t.r,{l:pt(t,{r:t.r.l}),r:pt(e,{l:t.r.r,lvl:r-1}),lvl:r});throw new Error("Unexpected empty nodes")}else{if(hc(e))return vd(pt(e,{lvl:r-1}));if(!Ye(n)&&!Ye(n.l)){const i=n.l,a=hc(i)?n.lvl-1:n.lvl;return pt(i,{l:pt(e,{r:i.l,lvl:r-1}),r:vd(pt(n,{l:i.r,lvl:a})),lvl:i.lvl+1})}else throw new Error("Unexpected empty nodes")}}function _u(e,t,n){if(Ye(e))return[];const r=On(e,t)[0];return pI(bd(e,r,n))}function Pb(e,t){const n=e.length;if(n===0)return[];let{index:r,value:i}=t(e[0]);const a=[];for(let o=1;o<n;o++){const{index:s,value:l}=t(e[o]);a.push({start:r,end:s-1,value:i}),r=s,i=l}return a.push({start:r,end:1/0,value:i}),a}function pI(e){return Pb(e,({k:t,v:n})=>({index:t,value:n}))}function vd(e){const{r:t,lvl:n}=e;return!Ye(t)&&!Ye(t.r)&&t.lvl===n&&t.r.lvl===n?pt(t,{l:pt(e,{r:t.l}),lvl:n+1}):e}function kb(e){const{l:t}=e;return!Ye(t)&&t.lvl===e.lvl?pt(t,{r:pt(e,{l:t.r})}):e}function Nl(e,t,n,r=0){let i=e.length-1;for(;r<=i;){const a=Math.floor((r+i)/2),o=e[a],s=n(o,t);if(s===0)return a;if(s===-1){if(i-r<2)return a-1;i=a-1}else{if(i===r)return a;r=a+1}}throw new Error(`Failed binary finding record in array - ${e.join(",")}, searched for ${t}`)}function Mb(e,t,n){return e[Nl(e,t,n)]}function bI(e,t,n,r){const i=Nl(e,t,r),a=Nl(e,n,r,i);return e.slice(i,a+1)}const kf=Oe(()=>({recalcInProgress:q(!1)}),[],{singleton:!0});function vI(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 yI(e,t){let n=Ye(e)?0:1/0;for(const r of t){const{size:i,startIndex:a,endIndex:o}=r;if(n=Math.min(n,a),Ye(e)){e=rn(e,0,i);continue}const s=_u(e,a-1,o+1);if(s.some(vI(r)))continue;let l=!1,u=!1;for(const{start:c,end:d,value:h}of s)l?(o>=c||i===h)&&(e=pd(e,c)):(u=h!==i,l=!0),d>o&&o>=c&&h!==i&&(e=rn(e,o+1,h));u&&(e=rn(e,a,i))}return[e,n]}function xI(){return{offsetTree:[],sizeTree:ua(),groupOffsetTree:ua(),lastIndex:0,lastOffset:0,lastSize:0,groupIndices:[]}}function Mf({index:e},t){return t===e?0:t<e?-1:1}function CI({offset:e},t){return t===e?0:t<e?-1:1}function wI(e){return{index:e.index,value:e}}function DI(e,t,n,r=0){return r>0&&(t=Math.max(t,Mb(e,r,Mf).offset)),Pb(bI(e,t,n,CI),wI)}function yd(e,t,n,r){let i=e,a=0,o=0,s=0,l=0;if(t!==0){l=Nl(i,t-1,Mf),s=i[l].offset;const c=On(n,t-1);a=c[0],o=c[1],i.length&&i[l].size===On(n,t)[1]&&(l-=1),i=i.slice(0,l+1)}else i=[];for(const{start:u,value:c}of _u(n,t,1/0)){const d=u-a,h=d*o+s+d*r;i.push({offset:h,size:c,index:u}),a=u,s=h,o=c}return{offsetTree:i,lastIndex:a,lastOffset:s,lastSize:o}}function SI(e,[t,n,r,i]){t.length>0&&r("received item sizes",t,ln.DEBUG);const a=e.sizeTree;let o=a,s=0;if(n.length>0&&Ye(a)&&t.length===2){const h=t[0].size,f=t[1].size;o=n.reduce((g,p)=>rn(rn(g,p,h),p+1,f),o)}else[o,s]=yI(o,t);if(o===a)return e;const{offsetTree:l,lastIndex:u,lastSize:c,lastOffset:d}=yd(e.offsetTree,s,o,i);return{sizeTree:o,offsetTree:l,lastIndex:u,lastOffset:d,lastSize:c,groupOffsetTree:n.reduce((h,f)=>rn(h,f,Ro(f,l,i)),ua()),groupIndices:n}}function Ro(e,t,n){if(t.length===0)return 0;const{offset:r,index:i,size:a}=Mb(t,e,Mf),o=e-i,s=a*o+(o-1)*n+r;return s>0?s+n:s}function EI(e){return typeof e.groupIndex<"u"}function Bb(e,t,n){if(EI(e))return t.groupIndices[e.groupIndex]+1;{const r=e.index==="LAST"?n:e.index;let i=Ob(r,t);return i=Math.max(0,i,Math.min(n,i)),i}}function Ob(e,t){if(!$u(t))return e;let n=0;for(;t.groupIndices[n]<=e+n;)n++;return e+n}function $u(e){return!Ye(e.groupOffsetTree)}function II(e){return bi(e).map(({k:t,v:n},r,i)=>{const a=i[r+1],o=a?a.k-1:1/0;return{startIndex:t,endIndex:o,size:n}})}const _I={offsetHeight:"height",offsetWidth:"width"},nr=Oe(([{log:e},{recalcInProgress:t}])=>{const n=Te(),r=Te(),i=Tt(r,0),a=Te(),o=Te(),s=q(0),l=q([]),u=q(void 0),c=q(void 0),d=q((D,$)=>Bn(D,_I[$])),h=q(void 0),f=q(0),g=xI(),p=Tt(J(n,Se(l,e,f),Un(SI,g),Je()),g),b=Tt(J(l,Je(),Un((D,$)=>({prev:D.current,current:$}),{prev:[],current:[]}),ne(({prev:D})=>D)),[]);le(J(l,ye(D=>D.length>0),Se(p,f),ne(([D,$,F])=>{const m=D.reduce((C,I,E)=>rn(C,I,Ro(I,$.offsetTree,F)||E),ua());return{...$,groupIndices:D,groupOffsetTree:m}})),p),le(J(r,Se(p),ye(([D,{lastIndex:$}])=>D<$),ne(([D,{lastIndex:$,lastSize:F}])=>[{startIndex:D,endIndex:$,size:F}])),n),le(u,c);const v=Tt(J(u,ne(D=>D===void 0)),!0);le(J(c,ye(D=>D!==void 0&&Ye(Ft(p).sizeTree)),ne(D=>[{startIndex:0,endIndex:0,size:D}])),n);const y=sn(J(n,Se(p),Un(({sizes:D},[$,F])=>({changed:F!==D,sizes:F}),{changed:!1,sizes:g}),ne(D=>D.changed)));Xe(J(s,Un((D,$)=>({diff:D.prev-$,prev:$}),{diff:0,prev:0}),ne(D=>D.diff)),D=>{const{groupIndices:$}=Ft(p);if(D>0)we(t,!0),we(a,D+em(D,$));else if(D<0){const F=Ft(b);F.length>0&&(D-=em(-D,F)),we(o,D)}}),Xe(J(s,Se(e)),([D,$])=>{D<0&&$("`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},ln.ERROR)});const x=sn(a);le(J(a,Se(p),ne(([D,$])=>{const F=$.groupIndices.length>0,m=[],C=$.lastSize;if(F){const I=$o($.sizeTree,0);let E=0,R=0;for(;E<D;){const M=$.groupIndices[R],k=$.groupIndices.length===R+1?1/0:$.groupIndices[R+1]-M-1;m.push({startIndex:M,endIndex:M,size:I}),m.push({startIndex:M+1,endIndex:M+1+k-1,size:C}),R++,E+=k+1}const P=bi($.sizeTree);return E!==D&&P.shift(),P.reduce((M,{k,v:T})=>{let B=M.ranges;return M.prevSize!==0&&(B=[...M.ranges,{startIndex:M.prevIndex,endIndex:k+D-1,size:M.prevSize}]),{ranges:B,prevIndex:k+D,prevSize:T}},{ranges:m,prevIndex:D,prevSize:0}).ranges}return bi($.sizeTree).reduce((I,{k:E,v:R})=>({ranges:[...I.ranges,{startIndex:I.prevIndex,endIndex:E+D-1,size:I.prevSize}],prevIndex:E+D,prevSize:R}),{ranges:[],prevIndex:0,prevSize:C}).ranges})),n);const S=sn(J(o,Se(p,f),ne(([D,{offsetTree:$},F])=>{const m=-D;return Ro(m,$,F)})));return le(J(o,Se(p,f),ne(([D,$,F])=>{if($.groupIndices.length>0){if(Ye($.sizeTree))return $;let C=ua();const I=Ft(b);let E=0,R=0,P=0;for(;E<-D;){P=I[R];const M=I[R+1]-P-1;R++,E+=M+1}if(C=bi($.sizeTree).reduce((M,{k,v:T})=>rn(M,Math.max(0,k+D),T),C),E!==-D){const M=$o($.sizeTree,P);C=rn(C,0,M);const k=On($.sizeTree,-D+1)[1];C=rn(C,1,k)}return{...$,sizeTree:C,...yd($.offsetTree,0,C,F)}}else{const C=bi($.sizeTree).reduce((I,{k:E,v:R})=>rn(I,Math.max(0,E+D),R),ua());return{...$,sizeTree:C,...yd($.offsetTree,0,C,F)}}})),p),{data:h,totalCount:r,sizeRanges:n,groupIndices:l,defaultItemSize:c,fixedItemSize:u,unshiftWith:a,shiftWith:o,shiftWithOffset:S,beforeUnshiftWith:x,firstItemIndex:s,gap:f,sizes:p,listRefresh:y,statefulTotalCount:i,trackItemSizes:v,itemSize:d}},Ke(qr,kf),{singleton:!0}),$I=typeof document<"u"&&"scrollBehavior"in document.documentElement.style;function Nb(e){const t=typeof e=="number"?{index:e}:e;return t.align||(t.align="start"),(!t.behavior||!$I)&&(t.behavior="auto"),t.offset||(t.offset=0),t}const as=Oe(([{sizes:e,totalCount:t,listRefresh:n,gap:r},{scrollingInProgress:i,viewportHeight:a,scrollTo:o,smoothScrollTargetReached:s,headerHeight:l,footerHeight:u,fixedHeaderHeight:c,fixedFooterHeight:d},{log:h}])=>{const f=Te(),g=Te(),p=q(0);let b=null,v=null,y=null;function x(){b&&(b(),b=null),y&&(y(),y=null),v&&(clearTimeout(v),v=null),we(i,!1)}return le(J(f,Se(e,a,t,p,l,u,h),Se(r,c,d),ne(([[S,D,$,F,m,C,I,E],R,P,A])=>{const M=Nb(S),{align:k,behavior:T,offset:B}=M,O=F-1,L=Bb(M,D,O);let j=Ro(L,D.offsetTree,R)+C;k==="end"?(j+=P+On(D.sizeTree,L)[1]-$+A,L===O&&(j+=I)):k==="center"?j+=(P+On(D.sizeTree,L)[1]-$+A)/2:j-=m,B&&(j+=B);const z=Y=>{x(),Y?(E("retrying to scroll to",{location:S},ln.DEBUG),we(f,S)):(we(g,!0),E("list did not change, scroll successful",{},ln.DEBUG))};if(x(),T==="smooth"){let Y=!1;y=Xe(n,G=>{Y=Y||G}),b=er(s,()=>{z(Y)})}else b=er(J(n,RI(150)),z);return v=setTimeout(()=>{x()},1200),we(i,!0),E("scrolling from index to",{index:L,top:j,behavior:T},ln.DEBUG),{top:j,behavior:T}})),o),{scrollToIndex:f,scrollTargetReached:g,topListHeight:p}},Ke(nr,Lt,qr),{singleton:!0});function RI(e){return t=>{const n=setTimeout(()=>{t(!1)},e);return r=>{r&&(t(!0),clearTimeout(n))}}}const Ao="up",oo="down",AI="none",FI={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollTop:0,viewportHeight:0,scrollHeight:0}},TI=0,os=Oe(([{scrollContainerState:e,scrollTop:t,viewportHeight:n,headerHeight:r,footerHeight:i,scrollBy:a}])=>{const o=q(!1),s=q(!0),l=Te(),u=Te(),c=q(4),d=q(TI),h=Tt(J(qg(J(xe(t),xa(1),Zn(!0)),J(xe(t),xa(1),Zn(!1),Kg(100))),Je()),!1),f=Tt(J(qg(J(a,Zn(!0)),J(a,Zn(!1),Kg(200))),Je()),!1);le(J(wt(xe(t),xe(d)),ne(([y,x])=>y<=x),Je()),s),le(J(s,Nr(50)),u);const g=sn(J(wt(e,xe(n),xe(r),xe(i),xe(c)),Un((y,[{scrollTop:x,scrollHeight:S},D,$,F,m])=>{const C=x+D-S>-m,I={viewportHeight:D,scrollTop:x,scrollHeight:S};if(C){let R,P;return x>y.state.scrollTop?(R="SCROLLED_DOWN",P=y.state.scrollTop-x):(R="SIZE_DECREASED",P=y.state.scrollTop-x||y.scrollTopDelta),{atBottom:!0,state:I,atBottomBecause:R,scrollTopDelta:P}}let E;return I.scrollHeight>y.state.scrollHeight?E="SIZE_INCREASED":D<y.state.viewportHeight?E="VIEWPORT_HEIGHT_DECREASING":x<y.state.scrollTop?E="SCROLLING_UPWARDS":E="NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM",{atBottom:!1,notAtBottomBecause:E,state:I}},FI),Je((y,x)=>y&&y.atBottom===x.atBottom))),p=Tt(J(e,Un((y,{scrollTop:x,scrollHeight:S,viewportHeight:D})=>{if($b(y.scrollHeight,S))return{scrollTop:x,scrollHeight:S,jump:0,changed:!1};{const $=S-(x+D)<1;return y.scrollTop!==x&&$?{scrollHeight:S,scrollTop:x,jump:y.scrollTop-x,changed:!0}:{scrollHeight:S,scrollTop:x,jump:0,changed:!0}}},{scrollHeight:0,jump:0,scrollTop:0,changed:!1}),ye(y=>y.changed),ne(y=>y.jump)),0);le(J(g,ne(y=>y.atBottom)),o),le(J(o,Nr(50)),l);const b=q(oo);le(J(e,ne(({scrollTop:y})=>y),Je(),Un((y,x)=>Ft(f)?{direction:y.direction,prevScrollTop:x}:{direction:x<y.prevScrollTop?Ao:oo,prevScrollTop:x},{direction:oo,prevScrollTop:0}),ne(y=>y.direction)),b),le(J(e,Nr(50),Zn(AI)),b);const v=q(0);return le(J(h,ye(y=>!y),Zn(0)),v),le(J(t,Nr(100),Se(h),ye(([y,x])=>!!x),Un(([y,x],[S])=>[x,S],[0,0]),ne(([y,x])=>x-y)),v),{isScrolling:h,isAtTop:s,isAtBottom:o,atBottomState:g,atTopStateChange:u,atBottomStateChange:l,scrollDirection:b,atBottomThreshold:c,atTopThreshold:d,scrollVelocity:v,lastJumpDueToItemResize:p}},Ke(Lt)),Qr=Oe(([{log:e}])=>{const t=q(!1),n=sn(J(t,ye(r=>r),Je()));return Xe(t,r=>{r&&Ft(e)("props updated",{},ln.DEBUG)}),{propsReady:t,didMount:n}},Ke(qr),{singleton:!0});function Bf(e,t){e==0?t():requestAnimationFrame(()=>Bf(e-1,t))}function Of(e,t){const n=t-1;return typeof e=="number"?e:e.index==="LAST"?n:e.index}const ss=Oe(([{sizes:e,listRefresh:t,defaultItemSize:n},{scrollTop:r},{scrollToIndex:i,scrollTargetReached:a},{didMount:o}])=>{const s=q(!0),l=q(0),u=q(!0);return le(J(o,Se(l),ye(([c,d])=>!!d),Zn(!1)),s),le(J(o,Se(l),ye(([c,d])=>!!d),Zn(!1)),u),Xe(J(wt(t,o),Se(s,e,n,u),ye(([[,c],d,{sizeTree:h},f,g])=>c&&(!Ye(h)||Af(f))&&!d&&!g),Se(l)),([,c])=>{er(a,()=>{we(u,!0)}),Bf(4,()=>{er(r,()=>{we(s,!0)}),we(i,c)})}),{scrolledToInitialItem:s,initialTopMostItemIndex:l,initialItemFinalLocationReached:u}},Ke(nr,Lt,as,Qr),{singleton:!0});function tm(e){return e?e==="smooth"?"smooth":"auto":!1}const PI=(e,t)=>typeof e=="function"?tm(e(t)):t&&tm(e),kI=Oe(([{totalCount:e,listRefresh:t},{isAtBottom:n,atBottomState:r},{scrollToIndex:i},{scrolledToInitialItem:a},{propsReady:o,didMount:s},{log:l},{scrollingInProgress:u}])=>{const c=q(!1),d=Te();let h=null;function f(p){we(i,{index:"LAST",align:"end",behavior:p})}Xe(J(wt(J(xe(e),xa(1)),s),Se(xe(c),n,a,u),ne(([[p,b],v,y,x,S])=>{let D=b&&x,$="auto";return D&&($=PI(v,y||S),D=D&&!!$),{totalCount:p,shouldFollow:D,followOutputBehavior:$}}),ye(({shouldFollow:p})=>p)),({totalCount:p,followOutputBehavior:b})=>{h&&(h(),h=null),h=er(t,()=>{Ft(l)("following output to ",{totalCount:p},ln.DEBUG),f(b),h=null})});function g(p){const b=er(r,v=>{p&&!v.atBottom&&v.notAtBottomBecause==="SIZE_INCREASED"&&!h&&(Ft(l)("scrolling to bottom due to increased size",{},ln.DEBUG),f("auto"))});setTimeout(b,100)}return Xe(J(wt(xe(c),e,o),ye(([p,,b])=>p&&b),Un(({value:p},[,b])=>({refreshed:p===b,value:b}),{refreshed:!1,value:0}),ye(({refreshed:p})=>p),Se(c,e)),([,p])=>{Ft(a)&&g(p!==!1)}),Xe(d,()=>{g(Ft(c)!==!1)}),Xe(wt(xe(c),r),([p,b])=>{p&&!b.atBottom&&b.notAtBottomBecause==="VIEWPORT_HEIGHT_DECREASING"&&f("auto")}),{followOutput:c,autoscrollToBottom:d}},Ke(nr,os,as,ss,Qr,qr,Lt));function MI(e){return e.reduce((t,n)=>(t.groupIndices.push(t.totalCount),t.totalCount+=n+1,t),{totalCount:0,groupIndices:[]})}const Vb=Oe(([{totalCount:e,groupIndices:t,sizes:n},{scrollTop:r,headerHeight:i}])=>{const a=Te(),o=Te(),s=sn(J(a,ne(MI)));return le(J(s,ne(l=>l.totalCount)),e),le(J(s,ne(l=>l.groupIndices)),t),le(J(wt(r,n,i),ye(([l,u])=>$u(u)),ne(([l,u,c])=>On(u.groupOffsetTree,Math.max(l-c,0),"v")[0]),Je(),ne(l=>[l])),o),{groupCounts:a,topItemsIndexes:o}},Ke(nr,Lt));function Fo(e,t){return!!(e&&e[0]===t[0]&&e[1]===t[1])}function Lb(e,t){return!!(e&&e.startIndex===t.startIndex&&e.endIndex===t.endIndex)}const Vl="top",Ll="bottom",nm="none";function rm(e,t,n){return typeof e=="number"?n===Ao&&t===Vl||n===oo&&t===Ll?e:0:n===Ao?t===Vl?e.main:e.reverse:t===Ll?e.main:e.reverse}function im(e,t){return typeof e=="number"?e:e[t]||0}const Nf=Oe(([{scrollTop:e,viewportHeight:t,deviation:n,headerHeight:r,fixedHeaderHeight:i}])=>{const a=Te(),o=q(0),s=q(0),l=q(0),u=Tt(J(wt(xe(e),xe(t),xe(r),xe(a,Fo),xe(l),xe(o),xe(i),xe(n),xe(s)),ne(([c,d,h,[f,g],p,b,v,y,x])=>{const S=c-y,D=b+v,$=Math.max(h-S,0);let F=nm;const m=im(x,Vl),C=im(x,Ll);return f-=y,f+=h+v,g+=h+v,g-=y,f>c+D-m&&(F=Ao),g<c-$+d+C&&(F=oo),F!==nm?[Math.max(S-h-rm(p,Vl,F)-m,0),S-$-v+d+rm(p,Ll,F)+C]:null}),ye(c=>c!=null),Je(Fo)),[0,0]);return{listBoundary:a,overscan:l,topListHeight:o,increaseViewportBy:s,visibleRange:u}},Ke(Lt),{singleton:!0});function BI(e,t,n){if($u(t)){const r=Ob(e,t);return[{index:On(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 gc={items:[],topItems:[],offsetTop:0,offsetBottom:0,top:0,bottom:0,topListHeight:0,totalCount:0,firstItemIndex:0};function am(e,t,n){if(e.length===0)return[];if(!$u(t))return e.map(u=>({...u,index:u.index+n,originalIndex:u.index}));const r=e[0].index,i=e[e.length-1].index,a=[],o=_u(t.groupOffsetTree,r,i);let s,l=0;for(const u of e){(!s||s.end<u.index)&&(s=o.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},a.push({...c,size:u.size,offset:u.offset,originalIndex:u.index,data:u.data})}return a}function fl(e,t,n,r,i,a){const{lastSize:o,lastOffset:s,lastIndex:l}=i;let u=0,c=0;if(e.length>0){u=e[0].offset;const p=e[e.length-1];c=p.offset+p.size}const d=n-l,h=s+d*o+(d-1)*r,f=u,g=h-c;return{items:am(e,i,a),topItems:am(t,i,a),topListHeight:t.reduce((p,b)=>b.size+p,0),offsetTop:u,offsetBottom:g,top:f,bottom:c,totalCount:n,firstItemIndex:a}}function Hb(e,t,n,r,i,a){let o=0;if(n.groupIndices.length>0)for(const c of n.groupIndices){if(c-o>=e)break;o++}const s=e+o,l=Of(t,s),u=Array.from({length:s}).map((c,d)=>({index:d+l,size:0,offset:0,data:a[d+l]}));return fl(u,[],s,i,n,r)}const Bi=Oe(([{sizes:e,totalCount:t,data:n,firstItemIndex:r,gap:i},a,{visibleRange:o,listBoundary:s,topListHeight:l},{scrolledToInitialItem:u,initialTopMostItemIndex:c},{topListHeight:d},h,{didMount:f},{recalcInProgress:g}])=>{const p=q([]),b=q(0),v=Te();le(a.topItemsIndexes,p);const y=Tt(J(wt(f,g,xe(o,Fo),xe(t),xe(e),xe(c),u,xe(p),xe(r),xe(i),n),ye(([$,F,,m,,,,,,,C])=>{const I=C&&C.length!==m;return $&&!F&&!I}),ne(([,,[$,F],m,C,I,E,R,P,A,M])=>{const k=C,{sizeTree:T,offsetTree:B}=k,O=Ft(b);if(m===0)return{...gc,totalCount:m};if($===0&&F===0)return O===0?{...gc,totalCount:m}:Hb(O,I,C,P,A,M||[]);if(Ye(T))return O>0?null:fl(BI(Of(I,m),k,M),[],m,A,k,P);const L=[];if(R.length>0){const H=R[0],V=R[R.length-1];let X=0;for(const K of _u(T,H,V)){const te=K.value,ue=Math.max(K.start,H),ie=Math.min(K.end,V);for(let Z=ue;Z<=ie;Z++)L.push({index:Z,size:te,offset:X,data:M&&M[Z]}),X+=te}}if(!E)return fl([],L,m,A,k,P);const j=R.length>0?R[R.length-1]+1:0,z=DI(B,$,F,j);if(z.length===0)return null;const Y=m-1,G=Iu([],H=>{for(const V of z){const X=V.value;let K=X.offset,te=V.start;const ue=X.size;if(X.offset<$){te+=Math.floor(($-X.offset+A)/(ue+A));const Z=te-V.start;K+=Z*ue+Z*A}te<j&&(K+=(j-te)*ue,te=j);const ie=Math.min(V.end,Y);for(let Z=te;Z<=ie&&!(K>=F);Z++)H.push({index:Z,size:ue,offset:K,data:M&&M[Z]}),K+=ue+A}});return fl(G,L,m,A,k,P)}),ye($=>$!==null),Je()),gc);le(J(n,ye(Af),ne($=>$==null?void 0:$.length)),t),le(J(y,ne($=>$.topListHeight)),d),le(d,l),le(J(y,ne($=>[$.top,$.bottom])),s),le(J(y,ne($=>$.items)),v);const x=sn(J(y,ye(({items:$})=>$.length>0),Se(t,n),ye(([{items:$},F])=>$[$.length-1].originalIndex===F-1),ne(([,$,F])=>[$-1,F]),Je(Fo),ne(([$])=>$))),S=sn(J(y,Nr(200),ye(({items:$,topItems:F})=>$.length>0&&$[0].originalIndex===F.length),ne(({items:$})=>$[0].index),Je())),D=sn(J(y,ye(({items:$})=>$.length>0),ne(({items:$})=>{let F=0,m=$.length-1;for(;$[F].type==="group"&&F<m;)F++;for(;$[m].type==="group"&&m>F;)m--;return{startIndex:$[F].index,endIndex:$[m].index}}),Je(Lb)));return{listState:y,topItemsIndexes:p,endReached:x,startReached:S,rangeChanged:D,itemsRendered:v,initialItemCount:b,...h}},Ke(nr,Vb,Nf,ss,as,os,Qr,kf),{singleton:!0}),OI=Oe(([{sizes:e,firstItemIndex:t,data:n,gap:r},{initialTopMostItemIndex:i},{initialItemCount:a,listState:o},{didMount:s}])=>(le(J(s,Se(a),ye(([,l])=>l!==0),Se(i,e,t,r,n),ne(([[,l],u,c,d,h,f=[]])=>Hb(l,u,c,d,h,f))),o),{}),Ke(nr,ss,Bi,Qr),{singleton:!0}),jb=Oe(([{scrollVelocity:e}])=>{const t=q(!1),n=Te(),r=q(!1);return le(J(e,Se(r,t,n),ye(([i,a])=>!!a),ne(([i,a,o,s])=>{const{exit:l,enter:u}=a;if(o){if(l(i,s))return!1}else if(u(i,s))return!0;return o}),Je()),t),Xe(J(wt(t,e,n),Se(r)),([[i,a,o],s])=>i&&s&&s.change&&s.change(a,o)),{isSeeking:t,scrollSeekConfiguration:r,scrollVelocity:e,scrollSeekRangeChanged:n}},Ke(os),{singleton:!0}),NI=Oe(([{topItemsIndexes:e}])=>{const t=q(0);return le(J(t,ye(n=>n>0),ne(n=>Array.from({length:n}).map((r,i)=>i))),e),{topItemCount:t}},Ke(Bi)),Wb=Oe(([{footerHeight:e,headerHeight:t,fixedHeaderHeight:n,fixedFooterHeight:r},{listState:i}])=>{const a=Te(),o=Tt(J(wt(e,r,t,n,i),ne(([s,l,u,c,d])=>s+l+u+c+d.offsetBottom+d.bottom)),0);return le(xe(o),a),{totalListHeight:o,totalListHeightChanged:a}},Ke(Lt,Bi),{singleton:!0});function zb(e){let t=!1,n;return()=>(t||(t=!0,n=e()),n)}const VI=zb(()=>/iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent)),LI=Oe(([{scrollBy:e,scrollTop:t,deviation:n,scrollingInProgress:r},{isScrolling:i,isAtBottom:a,scrollDirection:o,lastJumpDueToItemResize:s},{listState:l},{beforeUnshiftWith:u,shiftWithOffset:c,sizes:d,gap:h},{log:f},{recalcInProgress:g}])=>{const p=sn(J(l,Se(s),Un(([,v,y,x],[{items:S,totalCount:D,bottom:$,offsetBottom:F},m])=>{const C=$+F;let I=0;return y===D&&v.length>0&&S.length>0&&(S[0].originalIndex===0&&v[0].originalIndex===0||(I=C-x,I!==0&&(I+=m))),[I,S,D,C]},[0,[],0,0]),ye(([v])=>v!==0),Se(t,o,r,a,f,g),ye(([,v,y,x,,,S])=>!S&&!x&&v!==0&&y===Ao),ne(([[v],,,,,y])=>(y("Upward scrolling compensation",{amount:v},ln.DEBUG),v))));function b(v){v>0?(we(e,{top:-v,behavior:"auto"}),we(n,0)):(we(n,0),we(e,{top:-v,behavior:"auto"}))}return Xe(J(p,Se(n,i)),([v,y,x])=>{x&&VI()?we(n,y-v):b(-v)}),Xe(J(wt(Tt(i,!1),n,g),ye(([v,y,x])=>!v&&!x&&y!==0),ne(([v,y])=>y),Nr(1)),b),le(J(c,ne(v=>({top:-v}))),e),Xe(J(u,Se(d,h),ne(([v,{lastSize:y,groupIndices:x,sizeTree:S},D])=>{function $(F){return F*(y+D)}if(x.length===0)return $(v);{let F=0;const m=$o(S,0);let C=0,I=0;for(;C<v;){C++,F+=m;let E=x.length===I+1?1/0:x[I+1]-x[I]-1;C+E>v&&(F-=m,E=v-C+1),C+=E,F+=$(E),I++}return F}})),v=>{we(n,v),requestAnimationFrame(()=>{we(e,{top:v}),requestAnimationFrame(()=>{we(n,0),we(g,!1)})})}),{deviation:n}},Ke(Lt,os,Bi,nr,qr,kf)),HI=Oe(([{didMount:e},{scrollTo:t},{listState:n}])=>{const r=q(0);return Xe(J(e,Se(r),ye(([,i])=>i!==0),ne(([,i])=>({top:i}))),i=>{er(J(n,xa(1),ye(a=>a.items.length>1)),()=>{requestAnimationFrame(()=>{we(t,i)})})}),{initialScrollTop:r}},Ke(Qr,Lt,Bi),{singleton:!0}),jI=Oe(([{viewportHeight:e},{totalListHeight:t}])=>{const n=q(!1),r=Tt(J(wt(n,e,t),ye(([i])=>i),ne(([,i,a])=>Math.max(0,i-a)),Nr(0),Je()),0);return{alignToBottom:n,paddingTopAddition:r}},Ke(Lt,Wb),{singleton:!0}),Vf=Oe(([{scrollTo:e,scrollContainerState:t}])=>{const n=Te(),r=Te(),i=Te(),a=q(!1),o=q(void 0);return le(J(wt(n,r),ne(([{viewportHeight:s,scrollTop:l,scrollHeight:u},{offsetTop:c}])=>({scrollTop:Math.max(0,l-c),scrollHeight:u,viewportHeight:s}))),t),le(J(e,Se(r),ne(([s,{offsetTop:l}])=>({...s,top:s.top+l}))),i),{useWindowScroll:a,customScrollParent:o,windowScrollContainerState:n,windowViewportRect:r,windowScrollTo:i}},Ke(Lt)),WI=({itemTop:e,itemBottom:t,viewportTop:n,viewportBottom:r,locationParams:{behavior:i,align:a,...o}})=>e<n?{...o,behavior:i,align:a??"start"}:t>r?{...o,behavior:i,align:a??"end"}:null,zI=Oe(([{sizes:e,totalCount:t,gap:n},{scrollTop:r,viewportHeight:i,headerHeight:a,fixedHeaderHeight:o,fixedFooterHeight:s,scrollingInProgress:l},{scrollToIndex:u}])=>{const c=Te();return le(J(c,Se(e,i,t,a,o,s,r),Se(n),ne(([[d,h,f,g,p,b,v,y],x])=>{const{done:S,behavior:D,align:$,calculateViewLocation:F=WI,...m}=d,C=Bb(d,h,g-1),I=Ro(C,h.offsetTree,x)+p+b,E=I+On(h.sizeTree,C)[1],R=y+b,P=y+f-v,A=F({itemTop:I,itemBottom:E,viewportTop:R,viewportBottom:P,locationParams:{behavior:D,align:$,...m}});return A?S&&er(J(l,ye(M=>M===!1),xa(Ft(l)?1:2)),S):S&&S(),A}),ye(d=>d!==null)),u),{scrollIntoView:c}},Ke(nr,Lt,as,Bi,qr),{singleton:!0}),GI=Oe(([{sizes:e,sizeRanges:t},{scrollTop:n},{initialTopMostItemIndex:r},{didMount:i},{useWindowScroll:a,windowScrollContainerState:o,windowViewportRect:s}])=>{const l=Te(),u=q(void 0),c=q(null),d=q(null);return le(o,c),le(s,d),Xe(J(l,Se(e,n,a,c,d)),([h,f,g,p,b,v])=>{const y=II(f.sizeTree);p&&b!==null&&v!==null&&(g=b.scrollTop-v.offsetTop),h({ranges:y,scrollTop:g})}),le(J(u,ye(Af),ne(XI)),r),le(J(i,Se(u),ye(([,h])=>h!==void 0),Je(),ne(([,h])=>h.ranges)),t),{getState:l,restoreStateFrom:u}},Ke(nr,Lt,ss,Qr,Vf));function XI(e){return{offset:e.scrollTop,index:0,align:"start"}}const ZI=Oe(([e,t,n,r,i,a,o,s,l,u])=>({...e,...t,...n,...r,...i,...a,...o,...s,...l,...u}),Ke(Nf,OI,Qr,jb,Wb,HI,jI,Vf,zI,qr)),Gb=Oe(([{totalCount:e,sizeRanges:t,fixedItemSize:n,defaultItemSize:r,trackItemSizes:i,itemSize:a,data:o,firstItemIndex:s,groupIndices:l,statefulTotalCount:u,gap:c,sizes:d},{initialTopMostItemIndex:h,scrolledToInitialItem:f,initialItemFinalLocationReached:g},p,b,v,{listState:y,topItemsIndexes:x,...S},{scrollToIndex:D},$,{topItemCount:F},{groupCounts:m},C])=>(le(S.rangeChanged,C.scrollSeekRangeChanged),le(J(C.windowViewportRect,ne(I=>I.visibleHeight)),p.viewportHeight),{totalCount:e,data:o,firstItemIndex:s,sizeRanges:t,initialTopMostItemIndex:h,scrolledToInitialItem:f,initialItemFinalLocationReached:g,topItemsIndexes:x,topItemCount:F,groupCounts:m,fixedItemHeight:n,defaultItemHeight:r,gap:c,...v,statefulTotalCount:u,listState:y,scrollToIndex:D,trackItemSizes:i,itemSize:a,groupIndices:l,...S,...C,...p,sizes:d,...b}),Ke(nr,ss,Lt,GI,kI,Bi,as,LI,NI,Vb,ZI)),mc="-webkit-sticky",om="sticky",Xb=zb(()=>{if(typeof document>"u")return om;const e=document.createElement("div");return e.style.position=mc,e.style.position===mc?mc:om});function Lf(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:a}=Pf(r),o=w.useCallback(()=>{r(a.current)},[r,a]);return w.useEffect(()=>{if(t){t.addEventListener("scroll",o);const s=new ResizeObserver(()=>{requestAnimationFrame(o)});return s.observe(t),()=>{t.removeEventListener("scroll",o),s.unobserve(t)}}else return window.addEventListener("scroll",o),window.addEventListener("resize",o),()=>{window.removeEventListener("scroll",o),window.removeEventListener("resize",o)}},[o,t]),i}const Ru=w.createContext(void 0),Zb=w.createContext(void 0);function Hf(e){return e}const YI=Oe(()=>{const e=q(l=>`Item ${l}`),t=q(null),n=q(l=>`Group ${l}`),r=q({}),i=q(Hf),a=q("div"),o=q(Mi),s=(l,u=null)=>Tt(J(r,ne(c=>c[l]),Je()),u);return{context:t,itemContent:e,groupContent:n,components:r,computeItemKey:i,headerFooterTag:a,scrollerRef:o,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")}}),UI=Oe(([e,t])=>({...e,...t}),Ke(Gb,YI)),JI=({height:e})=>w.createElement("div",{style:{height:e}}),KI={position:Xb(),zIndex:1,overflowAnchor:"none"},qI={overflowAnchor:"none"},sm=w.memo(function({showTopList:t=!1}){const n=$e("listState"),r=Dn("sizeRanges"),i=$e("useWindowScroll"),a=$e("customScrollParent"),o=Dn("windowScrollContainerState"),s=Dn("scrollContainerState"),l=a||i?o:s,u=$e("itemContent"),c=$e("context"),d=$e("groupContent"),h=$e("trackItemSizes"),f=$e("itemSize"),g=$e("log"),p=Dn("gap"),{callbackRef:b}=_b(r,f,h,t?Mi:l,g,p,a),[v,y]=w.useState(0);zf("deviation",A=>{v!==A&&y(A)});const x=$e("EmptyPlaceholder"),S=$e("ScrollSeekPlaceholder")||JI,D=$e("ListComponent"),$=$e("ItemComponent"),F=$e("GroupComponent"),m=$e("computeItemKey"),C=$e("isSeeking"),I=$e("groupIndices").length>0,E=$e("alignToBottom"),R=$e("initialItemFinalLocationReached"),P=t?{}:{boxSizing:"border-box",paddingTop:n.offsetTop,paddingBottom:n.offsetBottom,marginTop:v!==0?v:E?"auto":0,...R?{}:{visibility:"hidden"}};return!t&&n.totalCount===0&&x?w.createElement(x,it(x,c)):w.createElement(D,{...it(D,c),ref:b,style:P,"data-testid":t?"virtuoso-top-item-list":"virtuoso-item-list"},(t?n.topItems:n.items).map(A=>{const M=A.originalIndex,k=m(M+n.firstItemIndex,A.data,c);return C?w.createElement(S,{...it(S,c),key:k,index:A.index,height:A.size,type:A.type||"item",...A.type==="group"?{}:{groupIndex:A.groupIndex}}):A.type==="group"?w.createElement(F,{...it(F,c),key:k,"data-index":M,"data-known-size":A.size,"data-item-index":A.index,style:KI},d(A.index,c)):w.createElement($,{...it($,c),...Yb($,A.data),key:k,"data-index":M,"data-known-size":A.size,"data-item-index":A.index,"data-item-group-index":A.groupIndex,style:qI},I?u(A.index,A.groupIndex,A.data,c):u(A.index,A.data,c))}))}),QI={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},Aa=e=>({width:"100%",height:"100%",position:"absolute",top:0,...e?{display:"flex",flexDirection:"column"}:{}}),e_={width:"100%",position:Xb(),top:0,zIndex:1};function it(e,t){if(typeof e!="string")return{context:t}}function Yb(e,t){return{item:typeof e=="string"?void 0:t}}const t_=w.memo(function(){const t=$e("HeaderComponent"),n=Dn("headerHeight"),r=$e("headerFooterTag"),i=tr(o=>n(Bn(o,"height"))),a=$e("context");return t?w.createElement(r,{ref:i},w.createElement(t,it(t,a))):null}),n_=w.memo(function(){const t=$e("FooterComponent"),n=Dn("footerHeight"),r=$e("headerFooterTag"),i=tr(o=>n(Bn(o,"height"))),a=$e("context");return t?w.createElement(r,{ref:i},w.createElement(t,it(t,a))):null});function jf({usePublisher:e,useEmitter:t,useEmitterValue:n}){return w.memo(function({style:a,children:o,...s}){const l=e("scrollContainerState"),u=n("ScrollerComponent"),c=e("smoothScrollTargetReached"),d=n("scrollerRef"),h=n("context"),{scrollerRef:f,scrollByCallback:g,scrollToCallback:p}=Rb(l,c,u,d);return t("scrollTo",p),t("scrollBy",g),w.createElement(u,{ref:f,style:{...QI,...a},"data-testid":"virtuoso-scroller","data-virtuoso-scroller":!0,tabIndex:0,...s,...it(u,h)},o)})}function Wf({usePublisher:e,useEmitter:t,useEmitterValue:n}){return w.memo(function({style:a,children:o,...s}){const l=e("windowScrollContainerState"),u=n("ScrollerComponent"),c=e("smoothScrollTargetReached"),d=n("totalListHeight"),h=n("deviation"),f=n("customScrollParent"),g=n("context"),{scrollerRef:p,scrollByCallback:b,scrollToCallback:v}=Rb(l,c,u,Mi,f);return dI(()=>(p.current=f||window,()=>{p.current=null}),[p,f]),t("windowScrollTo",v),t("scrollBy",b),w.createElement(u,{style:{position:"relative",...a,...d!==0?{height:d+h}:{}},"data-virtuoso-scroller":!0,...s,...it(u,g)},o)})}const r_=({children:e})=>{const t=w.useContext(Ru),n=Dn("viewportHeight"),r=Dn("fixedItemHeight"),i=$e("alignToBottom"),a=tr(Io(n,o=>Bn(o,"height")));return w.useEffect(()=>{t&&(n(t.viewportHeight),r(t.itemHeight))},[t,n,r]),w.createElement("div",{style:Aa(i),ref:a,"data-viewport-type":"element"},e)},i_=({children:e})=>{const t=w.useContext(Ru),n=Dn("windowViewportRect"),r=Dn("fixedItemHeight"),i=$e("customScrollParent"),a=Lf(n,i),o=$e("alignToBottom");return w.useEffect(()=>{t&&(r(t.itemHeight),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,n,r]),w.createElement("div",{ref:a,style:Aa(o),"data-viewport-type":"window"},e)},a_=({children:e})=>{const t=$e("TopItemListComponent")||"div",n=$e("headerHeight"),r={...e_,marginTop:`${n}px`},i=$e("context");return w.createElement(t,{style:r,...it(t,i)},e)},o_=w.memo(function(t){const n=$e("useWindowScroll"),r=$e("topItemsIndexes").length>0,i=$e("customScrollParent"),a=i||n?u_:l_,o=i||n?i_:r_;return w.createElement(a,{...t},r&&w.createElement(a_,null,w.createElement(sm,{showTopList:!0})),w.createElement(o,null,w.createElement(t_,null),w.createElement(sm,null),w.createElement(n_,null)))}),{Component:s_,usePublisher:Dn,useEmitterValue:$e,useEmitter:zf}=Tf(UI,{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"}},o_),l_=jf({usePublisher:Dn,useEmitterValue:$e,useEmitter:zf}),u_=Wf({usePublisher:Dn,useEmitterValue:$e,useEmitter:zf}),c_=s_,lm={items:[],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},d_={items:[{index:0}],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},{round:um,ceil:cm,floor:Hl,min:pc,max:so}=Math;function f_(e){return{...d_,items:e}}function dm(e,t,n){return Array.from({length:t-e+1}).map((r,i)=>{const a=n===null?null:n[i+e];return{index:i+e,data:a}})}function h_(e,t){return e&&e.column===t.column&&e.row===t.row}function As(e,t){return e&&e.width===t.width&&e.height===t.height}const g_=Oe(([{overscan:e,visibleRange:t,listBoundary:n},{scrollTop:r,viewportHeight:i,scrollBy:a,scrollTo:o,smoothScrollTargetReached:s,scrollContainerState:l,footerHeight:u,headerHeight:c},d,h,{propsReady:f,didMount:g},{windowViewportRect:p,useWindowScroll:b,customScrollParent:v,windowScrollContainerState:y,windowScrollTo:x},S])=>{const D=q(0),$=q(0),F=q(lm),m=q({height:0,width:0}),C=q({height:0,width:0}),I=Te(),E=Te(),R=q(0),P=q(null),A=q({row:0,column:0}),M=Te(),k=Te(),T=q(!1),B=q(0),O=q(!0),L=q(!1);Xe(J(g,Se(B),ye(([V,X])=>!!X)),()=>{we(O,!1),we($,0)}),Xe(J(wt(g,O,C,m,B,L),ye(([V,X,K,te,,ue])=>V&&!X&&K.height!==0&&te.height!==0&&!ue)),([,,,,V])=>{we(L,!0),Bf(1,()=>{we(I,V)}),er(J(r),()=>{we(n,[0,0]),we(O,!0)})}),le(J(k,ye(V=>V!=null&&V.scrollTop>0),Zn(0)),$),Xe(J(g,Se(k),ye(([,V])=>V!=null)),([,V])=>{V&&(we(m,V.viewport),we(C,V==null?void 0:V.item),we(A,V.gap),V.scrollTop>0&&(we(T,!0),er(J(r,xa(1)),X=>{we(T,!1)}),we(o,{top:V.scrollTop})))}),le(J(m,ne(({height:V})=>V)),i),le(J(wt(xe(m,As),xe(C,As),xe(A,(V,X)=>V&&V.column===X.column&&V.row===X.row),xe(r)),ne(([V,X,K,te])=>({viewport:V,item:X,gap:K,scrollTop:te}))),M),le(J(wt(xe(D),t,xe(A,h_),xe(C,As),xe(m,As),xe(P),xe($),xe(T),xe(O),xe(B)),ye(([,,,,,,,V])=>!V),ne(([V,[X,K],te,ue,ie,Z,me,,he,ce])=>{const{row:qe,column:ee}=te,{height:re,width:pe}=ue,{width:He}=ie;if(me===0&&(V===0||He===0))return lm;if(pe===0){const Li=Of(ce,V),Zu=Li===0?Math.max(me-1,0):Li;return f_(dm(Li,Zu,Z))}const ct=Ub(He,pe,ee);let Ae,Ee;he?X===0&&K===0&&me>0?(Ae=0,Ee=me-1):(Ae=ct*Hl((X+qe)/(re+qe)),Ee=ct*cm((K+qe)/(re+qe))-1,Ee=pc(V-1,so(Ee,ct-1)),Ae=pc(Ee,so(0,Ae))):(Ae=0,Ee=-1);const Ht=dm(Ae,Ee,Z),{top:jt,bottom:Wt}=fm(ie,te,ue,Ht),rr=cm(V/ct),bs=rr*re+(rr-1)*qe-Wt;return{items:Ht,offsetTop:jt,offsetBottom:bs,top:jt,bottom:Wt,itemHeight:re,itemWidth:pe}})),F),le(J(P,ye(V=>V!==null),ne(V=>V.length)),D),le(J(wt(m,C,F,A),ye(([V,X,{items:K}])=>K.length>0&&X.height!==0&&V.height!==0),ne(([V,X,{items:K},te])=>{const{top:ue,bottom:ie}=fm(V,te,X,K);return[ue,ie]}),Je(Fo)),n);const j=q(!1);le(J(r,Se(j),ne(([V,X])=>X||V!==0)),j);const z=sn(J(xe(F),ye(({items:V})=>V.length>0),Se(D,j),ye(([{items:V},X,K])=>K&&V[V.length-1].index===X-1),ne(([,V])=>V-1),Je())),Y=sn(J(xe(F),ye(({items:V})=>V.length>0&&V[0].index===0),Zn(0),Je())),G=sn(J(xe(F),Se(T),ye(([{items:V},X])=>V.length>0&&!X),ne(([{items:V}])=>({startIndex:V[0].index,endIndex:V[V.length-1].index})),Je(Lb),Nr(0)));le(G,h.scrollSeekRangeChanged),le(J(I,Se(m,C,D,A),ne(([V,X,K,te,ue])=>{const ie=Nb(V),{align:Z,behavior:me,offset:he}=ie;let ce=ie.index;ce==="LAST"&&(ce=te-1),ce=so(0,ce,pc(te-1,ce));let qe=xd(X,ue,K,ce);return Z==="end"?qe=um(qe-X.height+K.height):Z==="center"&&(qe=um(qe-X.height/2+K.height/2)),he&&(qe+=he),{top:qe,behavior:me}})),o);const H=Tt(J(F,ne(V=>V.offsetBottom+V.bottom)),0);return le(J(p,ne(V=>({width:V.visibleWidth,height:V.visibleHeight}))),m),{data:P,totalCount:D,viewportDimensions:m,itemDimensions:C,scrollTop:r,scrollHeight:E,overscan:e,scrollBy:a,scrollTo:o,scrollToIndex:I,smoothScrollTargetReached:s,windowViewportRect:p,windowScrollTo:x,useWindowScroll:b,customScrollParent:v,windowScrollContainerState:y,deviation:R,scrollContainerState:l,footerHeight:u,headerHeight:c,initialItemCount:$,gap:A,restoreStateFrom:k,...h,initialTopMostItemIndex:B,gridState:F,totalListHeight:H,...d,startReached:Y,endReached:z,rangeChanged:G,stateChanged:M,propsReady:f,stateRestoreInProgress:T,...S}},Ke(Nf,Lt,os,jb,Qr,Vf,qr));function fm(e,t,n,r){const{height:i}=n;if(i===void 0||r.length===0)return{top:0,bottom:0};const a=xd(e,t,n,r[0].index),o=xd(e,t,n,r[r.length-1].index)+i;return{top:a,bottom:o}}function xd(e,t,n,r){const i=Ub(e.width,n.width,t.column),a=Hl(r/i),o=a*n.height+so(0,a-1)*t.row;return o>0?o+t.row:o}function Ub(e,t,n){return so(1,Hl((e+n)/(Hl(t)+n)))}const m_=Oe(()=>{const e=q(u=>`Item ${u}`),t=q({}),n=q(null),r=q("virtuoso-grid-item"),i=q("virtuoso-grid-list"),a=q(Hf),o=q("div"),s=q(Mi),l=(u,c=null)=>Tt(J(t,ne(d=>d[u]),Je()),c);return{context:n,itemContent:e,components:t,computeItemKey:a,itemClassName:r,listClassName:i,headerFooterTag:o,scrollerRef:s,FooterComponent:l("Footer"),HeaderComponent:l("Header"),ListComponent:l("List","div"),ItemComponent:l("Item","div"),ScrollerComponent:l("Scroller","div"),ScrollSeekPlaceholder:l("ScrollSeekPlaceholder","div")}}),p_=Oe(([e,t])=>({...e,...t}),Ke(g_,m_)),b_=w.memo(function(){const t=tt("gridState"),n=tt("listClassName"),r=tt("itemClassName"),i=tt("itemContent"),a=tt("computeItemKey"),o=tt("isSeeking"),s=Pn("scrollHeight"),l=tt("ItemComponent"),u=tt("ListComponent"),c=tt("ScrollSeekPlaceholder"),d=tt("context"),h=Pn("itemDimensions"),f=Pn("gap"),g=tt("log"),p=tt("stateRestoreInProgress"),b=tr(v=>{const y=v.parentElement.parentElement.scrollHeight;s(y);const x=v.firstChild;if(x){const{width:S,height:D}=x.getBoundingClientRect();h({width:S,height:D})}f({row:hm("row-gap",getComputedStyle(v).rowGap,g),column:hm("column-gap",getComputedStyle(v).columnGap,g)})});return p?null:w.createElement(u,{ref:b,className:n,...it(u,d),style:{paddingTop:t.offsetTop,paddingBottom:t.offsetBottom},"data-testid":"virtuoso-item-list"},t.items.map(v=>{const y=a(v.index,v.data,d);return o?w.createElement(c,{key:y,...it(c,d),index:v.index,height:t.itemHeight,width:t.itemWidth}):w.createElement(l,{...it(l,d),className:r,"data-index":v.index,key:y},i(v.index,v.data,d))}))}),v_=w.memo(function(){const t=tt("HeaderComponent"),n=Pn("headerHeight"),r=tt("headerFooterTag"),i=tr(o=>n(Bn(o,"height"))),a=tt("context");return t?w.createElement(r,{ref:i},w.createElement(t,it(t,a))):null}),y_=w.memo(function(){const t=tt("FooterComponent"),n=Pn("footerHeight"),r=tt("headerFooterTag"),i=tr(o=>n(Bn(o,"height"))),a=tt("context");return t?w.createElement(r,{ref:i},w.createElement(t,it(t,a))):null}),x_=({children:e})=>{const t=w.useContext(Zb),n=Pn("itemDimensions"),r=Pn("viewportDimensions"),i=tr(a=>{r(a.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:Aa(!1),ref:i},e)},C_=({children:e})=>{const t=w.useContext(Zb),n=Pn("windowViewportRect"),r=Pn("itemDimensions"),i=tt("customScrollParent"),a=Lf(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:a,style:Aa(!1)},e)},w_=w.memo(function({...t}){const n=tt("useWindowScroll"),r=tt("customScrollParent"),i=r||n?S_:D_,a=r||n?C_:x_;return w.createElement(i,{...t},w.createElement(a,null,w.createElement(v_,null),w.createElement(b_,null),w.createElement(y_,null)))}),{usePublisher:Pn,useEmitterValue:tt,useEmitter:Jb}=Tf(p_,{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"}},w_),D_=jf({usePublisher:Pn,useEmitterValue:tt,useEmitter:Jb}),S_=Wf({usePublisher:Pn,useEmitterValue:tt,useEmitter:Jb});function hm(e,t,n){return t!=="normal"&&!(t!=null&&t.endsWith("px"))&&n(`${e} was not resolved to pixel value correctly`,t,ln.WARN),t==="normal"?0:parseInt(t??"0",10)}const E_=Oe(()=>{const e=q(l=>w.createElement("td",null,"Item $",l)),t=q(null),n=q(null),r=q(null),i=q({}),a=q(Hf),o=q(Mi),s=(l,u=null)=>Tt(J(i,ne(c=>c[l]),Je()),u);return{context:t,itemContent:e,fixedHeaderContent:n,fixedFooterContent:r,components:i,computeItemKey:a,scrollerRef:o,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")}}),I_=Oe(([e,t])=>({...e,...t}),Ke(Gb,E_)),__=({height:e})=>w.createElement("tr",null,w.createElement("td",{style:{height:e}})),$_=({height:e})=>w.createElement("tr",null,w.createElement("td",{style:{height:e,padding:0,border:0}})),R_={overflowAnchor:"none"},A_=w.memo(function(){const t=We("listState"),n=kn("sizeRanges"),r=We("useWindowScroll"),i=We("customScrollParent"),a=kn("windowScrollContainerState"),o=kn("scrollContainerState"),s=i||r?a:o,l=We("itemContent"),u=We("trackItemSizes"),c=We("itemSize"),d=We("log"),{callbackRef:h,ref:f}=_b(n,c,u,s,d,void 0,i),[g,p]=w.useState(0);Gf("deviation",k=>{g!==k&&(f.current.style.marginTop=`${k}px`,p(k))});const b=We("EmptyPlaceholder"),v=We("ScrollSeekPlaceholder")||__,y=We("FillerRow")||$_,x=We("TableBodyComponent"),S=We("TableRowComponent"),D=We("computeItemKey"),$=We("isSeeking"),F=We("paddingTopAddition"),m=We("firstItemIndex"),C=We("statefulTotalCount"),I=We("context");if(C===0&&b)return w.createElement(b,it(b,I));const E=t.offsetTop+F+g,R=t.offsetBottom,P=E>0?w.createElement(y,{height:E,key:"padding-top",context:I}):null,A=R>0?w.createElement(y,{height:R,key:"padding-bottom",context:I}):null,M=t.items.map(k=>{const T=k.originalIndex,B=D(T+m,k.data,I);return $?w.createElement(v,{...it(v,I),key:B,index:k.index,height:k.size,type:k.type||"item"}):w.createElement(S,{...it(S,I),...Yb(S,k.data),key:B,"data-index":T,"data-known-size":k.size,"data-item-index":k.index,style:R_},l(k.index,k.data,I))});return w.createElement(x,{ref:h,"data-testid":"virtuoso-item-list",...it(x,I)},[P,...M,A])}),F_=({children:e})=>{const t=w.useContext(Ru),n=kn("viewportHeight"),r=kn("fixedItemHeight"),i=tr(Io(n,a=>Bn(a,"height")));return w.useEffect(()=>{t&&(n(t.viewportHeight),r(t.itemHeight))},[t,n,r]),w.createElement("div",{style:Aa(!1),ref:i,"data-viewport-type":"element"},e)},T_=({children:e})=>{const t=w.useContext(Ru),n=kn("windowViewportRect"),r=kn("fixedItemHeight"),i=We("customScrollParent"),a=Lf(n,i);return w.useEffect(()=>{t&&(r(t.itemHeight),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,n,r]),w.createElement("div",{ref:a,style:Aa(!1),"data-viewport-type":"window"},e)},P_=w.memo(function(t){const n=We("useWindowScroll"),r=We("customScrollParent"),i=kn("fixedHeaderHeight"),a=kn("fixedFooterHeight"),o=We("fixedHeaderContent"),s=We("fixedFooterContent"),l=We("context"),u=tr(Io(i,y=>Bn(y,"height"))),c=tr(Io(a,y=>Bn(y,"height"))),d=r||n?B_:M_,h=r||n?T_:F_,f=We("TableComponent"),g=We("TableHeadComponent"),p=We("TableFooterComponent"),b=o?w.createElement(g,{key:"TableHead",style:{zIndex:2,position:"sticky",top:0},ref:u,...it(g,l)},o()):null,v=s?w.createElement(p,{key:"TableFoot",style:{zIndex:1,position:"sticky",bottom:0},ref:c,...it(p,l)},s()):null;return w.createElement(d,{...t},w.createElement(h,null,w.createElement(f,{style:{borderSpacing:0,overflowAnchor:"none"},...it(f,l)},[b,w.createElement(A_,{key:"TableBody"}),v])))}),{Component:k_,usePublisher:kn,useEmitterValue:We,useEmitter:Gf}=Tf(I_,{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"}},P_),M_=jf({usePublisher:kn,useEmitterValue:We,useEmitter:Gf}),B_=Wf({usePublisher:kn,useEmitterValue:We,useEmitter:Gf}),O_=k_,N_=({children:e,...t})=>_.jsx(_.Fragment,{children:e(t)}),V_=({children:e,...t})=>_.jsx(_.Fragment,{children:w.isValidElement(e)&&_.jsx(_.Fragment,{children:w.cloneElement(e,t)})}),Xf=w.forwardRef((e,t)=>{const{classNameContainer:n="",computeItemKey:r=()=>"",itemSize:i=()=>0,totalCount:a=0,typeHight:o="min-max",minHeightItem:s=0,maxHeightTable:l=0,minLengthItem:u=0,fixedHeaderContent:c,itemContent:d,typeCalculateItemSize:h="manual",itemSizeNames:f=[],overscan:g=null,component:p={},idContainer:b="",triggerCalCulateContainer:v="",accumulationHeight:y=0,delayTriggerCalculateHeight:x=0,increaseViewportBy:S=()=>0,context:D={},endReached:$,increaseTotalCount:F=1}=e,[m,C]=w.useState(0),I=()=>{if(o==="min-max"){const P=(a+F)*s;return{height:a>u?l:m>P?m:P}}return o==="container"?{height:m}:{}},E=P=>{var k;const A=P.getAttribute("data-index");let M=((k=P.getBoundingClientRect())==null?void 0:k.height)||0;return f==null||f.forEach(T=>{var B,O;M+=((O=(B=document.querySelector(`[${T}="${A}"]`))==null?void 0:B.getBoundingClientRect())==null?void 0:O.height)??0}),M},R=()=>{var P;if(b&&o==="container"){const A=((P=document==null?void 0:document.getElementById(b))==null?void 0:P.offsetHeight)??0;C(A-y)}};return w.useEffect(()=>{const P=setTimeout(R,x);return window==null||window.addEventListener("resize",R),window==null||window.addEventListener("load",R),()=>{clearTimeout(P),window==null||window.removeEventListener("resize",R),window==null||window.removeEventListener("load",R)}},[o,v]),_.jsx("div",{className:`1ru-w-full ${n}`,children:_.jsx(O_,{context:D,ref:t,overscan:typeof g=="function"?g(o==="container"?m:l):o==="container"?m:l,totalListHeightChanged:P=>o==="min-max"?C(P):null,style:I(),totalCount:a,computeItemKey:r,itemSize:w.useCallback(P=>h==="manual"?i(P):E(P),[]),components:{TableRow:V_,...p},fixedHeaderContent:c,itemContent:(...P)=>d(N_,...P),endReached:$,increaseViewportBy:S(o==="container"?m:l)})})});Xf.displayName="TableVirtualization";const L_="_sorting_1tyuq_45",Rn={"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:L_,"laba-grey-02":"_laba-grey-02_1tyuq_59"},Xi="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 H_(e,t=null){const[n,r]=w.useState(!1);return w.useEffect(()=>{let i=null,a=null;const o=()=>{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;a=new ResizeObserver(o),a.observe(i)}else i=window,window.addEventListener("resize",o);return o(),()=>{a?a.disconnect():window.removeEventListener("resize",o)}},[e,t]),n}const j_=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)),[a,o]=w.useState(e.running??!1),[s,l]=w.useState(()=>e==null?void 0:e.callbackDone);return w.useEffect(()=>{let h;return a&&r>0?h=setInterval(()=>{i(f=>Math.max(f-1,0))},e.intervalMs):a&&r===0&&typeof s=="function"&&s(),()=>{h&&clearInterval(h)}},[a,r,e.intervalMs,s]),{count:r,startCountdown:()=>{o(!0)},stopCountdown:()=>{o(!1)},resetCountdown:h=>{i(typeof h=="number"?h:t(h??n))},setCallbackDone:h=>l(()=>h)}};function W_(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((a,o)=>{n.current.resolve=a,n.current.reject=o})),n.current.timeout=setTimeout(()=>{e(...i).then(a=>{n.current.resolve&&n.current.resolve(a)}).catch(a=>{n.current.reject&&n.current.reject(a)}).finally(()=>{n.current.promise=null,n.current.resolve=null,n.current.reject=null,n.current.timeout=null})},t),n.current.promise),[e,t])}const Zf=typeof window<"u"?w.useLayoutEffect:w.useEffect,z_=(e,t)=>{const[n,r]=w.useState({width:0,height:0}),[i,a]=w.useState({width:0,height:0,top:0,left:0,bottom:0,right:0,x:0,y:0}),o=w.useRef(null);return Zf(()=>{const s=()=>{r({width:window.innerWidth,height:window.innerHeight})},l=d=>{for(const h of d){const{width:f,height:g,top:p,left:b,bottom:v,right:y,x,y:S}=h.contentRect;a({width:f,height:g,top:p,left:b,bottom:v,right:y,x,y:S})}};let u=null;t?u=document.querySelector(t):o.current&&(u=o.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:o,windowSize:n,contentRect:i}};function G_(e){const[t,n]=w.useState(e),r=w.useRef(t);return w.useEffect(()=>{r.current=t},[t]),[t,n,r]}function X_(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 Z_(...e){return t=>{e.forEach(n=>{X_(n,t)})}}function Yf(...e){return w.useMemo(()=>Z_(...e),e)}function Uf(e){const t=w.useRef(e);return ff(e,t.current)||(t.current=e),t.current}function $i(e,t){const n=t.map(Uf);w.useEffect(e,n)}function Y_({ref:e,handlerMain:t,eventListener:n="mousedown",useEffectDependency:r=[]}){w.useEffect(()=>{function i(a){t(e,a)}return document.addEventListener(n,i),()=>{document.removeEventListener(n,i)}},[e,t,n,...r])}const U_=(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},jl=(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":""}:{}},Kb=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}},tn=()=>({kind:{"payhere-reguler":Rn["payhere-reguler"],"laba-reguler":Rn["laba-reguler"],"laba-small":Rn["laba-small"]},pointer:{"payhere-reguler":Rn["pointer-payhere"],"laba-reguler":Rn["pointer-laba"],"laba-small":Rn["pointer-laba"]},utility:{"table-scroll-top":""},sortingIcon:{"payhere-reguler":{asc:_.jsx("img",{src:Xi,className:"1ru-w-4 1ru-h-4"}),desc:_.jsx("img",{src:Xi,className:"1ru-w-4 1ru-h-4 1ru-rotate-180"})},"laba-reguler":{asc:_.jsx("img",{src:Xi,className:"1ru-w-4 1ru-h-4"}),desc:_.jsx("img",{src:Xi,className:"1ru-w-4 1ru-h-4 1ru-rotate-180"})},"laba-small":{asc:_.jsx("img",{src:Xi,className:"1ru-w-4 1ru-h-4"}),desc:_.jsx("img",{src:Xi,className:"1ru-w-4 1ru-h-4 1ru-rotate-180"})}},variant:{"laba-grey-02":Rn["laba-grey-02"]}}),J_=({tableInstance:e,classNameWrapperTable:t,classNameTable:n,handlerRowClick:r,privillageRowClick:i,headerId:a,tbodyTrId:o,maxHeight:s,idCalculateHeight:l,componentSortASC:u,componentSortDESC:c,classNamePointer:d,emptyPlaceholder:h,renderSubComponent:f})=>_.jsx("div",{id:"1ru-table",style:s?{height:s,overflow:"auto"}:{},className:t??"",children:_.jsxs("table",{className:n,style:{width:Kb(e.getState()).isPinning?e.getTotalSize():""},children:[_.jsx("thead",{id:a,"data-calculate-height-header":l,children:e.getHeaderGroups().map(g=>_.jsx("tr",{children:g.headers.map(p=>{var v,y,x,S;const b=(y=(v=p.column.columnDef.meta)==null?void 0:v.rowSpan)==null?void 0:y.call(v,p);return!p.isPlaceholder&&b!==void 0&&p.id===p.column.id?_.jsx(_.Fragment,{}):_.jsxs("th",{style:{...U_(s,p),...jl(p.column)},colSpan:typeof((x=p.column.columnDef.meta)==null?void 0:x.colSpan)=="function"?(S=p.column.columnDef.meta)==null?void 0:S.colSpan(p.column.columnDef):p.colSpan,rowSpan:b,children:[p.isPlaceholder&&b===void 0?null:_.jsxs("div",{className:p.column.getCanSort()?Rn.sorting:"",onClick:p.column.getToggleSortingHandler(),children:[Eo(p.column.columnDef.header,p.getContext()),p.column.getCanSort()&&_.jsx("span",{className:"1ru-flex-shrink-0",children:p.column.getIsSorted()==="asc"||p.column.getIsSorted()==="desc"?_.jsxs(_.Fragment,{children:[p.column.getIsSorted()==="asc"&&_.jsx(_.Fragment,{children:u}),p.column.getIsSorted()==="desc"&&_.jsx(_.Fragment,{children:c})]}):_.jsx(_.Fragment,{})})]}),p.column.getIsPinned()&&_.jsx("div",{onDoubleClick:()=>p.column.resetSize(),onMouseDown:p.getResizeHandler(),onTouchStart:p.getResizeHandler(),className:Rn["resize-menu"]})]},p.id)})},g.id))}),_.jsxs("tbody",{children:[e.getRowModel().rows.length>0&&e.getRowModel().rows.map((g,p)=>_.jsxs(w.Fragment,{children:[_.jsx("tr",{onClick:b=>{b.stopPropagation(),i&&typeof r=="function"&&r(g.original,g)},className:i?d:"","data-calculate-height":`${l}-${p}`,id:o(g),children:g.getVisibleCells().map(b=>{var v,y,x;return _.jsx("td",{style:{...typeof((v=b.column.columnDef.meta)==null?void 0:v.styleTd)=="function"?b.column.columnDef.meta.styleTd(g.original,g):{},...jl(b.column,!0)},className:typeof((y=b.column.columnDef.meta)==null?void 0:y.classNameTd)=="function"?(x=b.column.columnDef.meta)==null?void 0:x.classNameTd(g.original,g):"",children:Eo(b.column.columnDef.cell,b.getContext())},b.id)})},g.id),g.getIsExpanded()&&typeof f=="function"&&_.jsx("tr",{children:_.jsx("td",{colSpan:g.getVisibleCells().length,children:f(g.original,g)})})]},g.id)),e.getRowModel().rows.length===0&&w.isValidElement(h)&&_.jsx("tr",{children:_.jsx("td",{colSpan:e.getVisibleFlatColumns().length,children:h})})]})]})}),qb=w.forwardRef((e,t)=>{const{context:n,...r}=e;return _.jsx("thead",{id:(n==null?void 0:n.headerId)??"",...r,ref:t})});qb.displayName="VirtualizationHead";const K_=({style:e,context:t,...n})=>_.jsx("table",{...n,id:"1ru-table",className:(t==null?void 0:t.classNameTable)??"",style:{...e,width:t==null?void 0:t.width}}),q_=({tableInstance:e,classNameWrapperTable:t,handlerRowClick:n,privillageRowClick:r,virtualizationProps:i,headerId:a,tbodyTrId:o,classNameTable:s,componentSortASC:l,componentSortDESC:u,classNamePointer:c,emptyPlaceholder:d,renderSubComponent:h})=>{var p,b,v;const[f,g]=w.useState(0);return _.jsx(Xf,{context:{headerId:a,classNameTable:s,width:Kb(e.getState()).isPinning?e.getTotalSize():""},typeHight:"min-max",totalCount:((p=e.getRowModel().rows)==null?void 0:p.length)||0,minLengthItem:((b=e.getRowModel().rows)==null?void 0:b.length)||0,typeCalculateItemSize:"auto",component:{TableHead:qb,Table:K_,EmptyPlaceholder:()=>_.jsx("tbody",{ref:y=>{var x;return g(((x=y==null?void 0:y.getBoundingClientRect())==null?void 0:x.height)??0)},children:_.jsx("tr",{children:_.jsx("td",{colSpan:e.getVisibleFlatColumns().length,children:w.isValidElement(d)&&d})})})},classNameContainer:t,fixedHeaderContent:()=>e.getHeaderGroups().map(y=>_.jsx("tr",{children:y.headers.map(x=>{var D,$,F,m;const S=($=(D=x.column.columnDef.meta)==null?void 0:D.rowSpan)==null?void 0:$.call(D,x);return!x.isPlaceholder&&S!==void 0&&x.id===x.column.id?_.jsx(_.Fragment,{}):_.jsxs("th",{colSpan:x.colSpan,rowSpan:S,style:{...typeof((F=x.column.columnDef.meta)==null?void 0:F.styleTh)=="function"?(m=x.column.columnDef.meta)==null?void 0:m.styleTh(x.column.columnDef):{},...jl(x.column)},children:[x.isPlaceholder&&S===void 0?null:_.jsxs("div",{className:x.column.getCanSort()?Rn.sorting:"",onClick:x.column.getToggleSortingHandler(),children:[Eo(x.column.columnDef.header,x.getContext()),x.column.getCanSort()&&_.jsx("span",{className:"1ru-flex-shrink-0",children:x.column.getIsSorted()==="asc"||x.column.getIsSorted()==="desc"?_.jsxs(_.Fragment,{children:[x.column.getIsSorted()==="asc"&&_.jsx(_.Fragment,{children:l}),x.column.getIsSorted()==="desc"&&_.jsx(_.Fragment,{children:u})]}):_.jsx(_.Fragment,{})})]}),x.column.getIsPinned()&&_.jsx("div",{onDoubleClick:()=>x.column.resetSize(),onMouseDown:x.getResizeHandler(),onTouchStart:x.getResizeHandler(),className:Rn["resize-menu"]})]},x.id)})},y.id)),itemContent:(y,x)=>{var D,$;const S=($=(D=e.getRowModel())==null?void 0:D.rows)==null?void 0:$[x];return _.jsx(y,{children:({...F})=>_.jsxs(w.Fragment,{children:[_.jsx("tr",{...F,onClick:m=>{m.stopPropagation(),r&&typeof n=="function"&&n(S.original,S)},className:r?c:"",id:o(S),children:S.getVisibleCells().map(m=>{var C,I,E;return _.jsx(_.Fragment,{children:_.jsx("td",{style:{...typeof((C=m.column.columnDef.meta)==null?void 0:C.styleTd)=="function"?m.column.columnDef.meta.styleTd(S.original,S):{},...jl(m.column,!0)},className:typeof((I=m.column.columnDef.meta)==null?void 0:I.classNameTd)=="function"?(E=m.column.columnDef.meta)==null?void 0:E.classNameTd(S.original,S):"",children:Eo(m.column.columnDef.cell,m.getContext())},m.id)})})}),S.getIsExpanded()&&typeof h=="function"&&_.jsx("tr",{"data-sub-component":x,children:_.jsx("td",{colSpan:S.getVisibleCells().length,children:h(S.original,S)})})]},S.id)},S.id)},...i,minHeightItem:((i==null?void 0:i.minHeightItem)??60)+((((v=e.getRowModel().rows)==null?void 0:v.length)||0)>0?0:f),itemSizeNames:typeof h=="function"?[...(i==null?void 0:i.itemSizeNames)??[],"data-sub-component"]:i==null?void 0:i.itemSizeNames})},Q_=({tableInstance:e,classNameWrapperTable:t="",classNameTable:n="",collapseAll:r=!0,handlerRowClick:i,privillageRowClick:a=!1,virtualization:o=!1,virtualizationProps:s,headerId:l="",tbodyTrId:u=()=>"",maxHeight:c=0,idCalculateHeight:d=void 0,kind:h="laba-reguler",componentSortASC:f,componentSortDESC:g,scrollTop:p=!1,emptyPlaceholder:b,variant:v,renderSubComponent:y})=>{const x=()=>{if(![void 0,"undefined"].includes(d)){const S=document.querySelector(`[data-calculate-height-header="${d}"]`);let D=0;const $=document.querySelectorAll(`[data-calculate-height^="${d}-"]`);return $==null||$.forEach(F=>{D+=F.offsetHeight}),D>c?c+S.offsetHeight:0}return c};return $i(()=>{!r&&typeof e.toggleAllRowsExpanded=="function"&&e.toggleAllRowsExpanded()},[r,e==null?void 0:e.toggleAllRowsExpanded]),_.jsxs(_.Fragment,{children:[!o&&_.jsx(J_,{tbodyTrId:u,headerId:l,tableInstance:e,classNameTable:n,classNameWrapperTable:`${tn().kind[h]} ${v?tn().variant[v]:""}
75
75
  ${p?tn().utility["table-scroll-top"]:""} ${t}`,handlerRowClick:i,privillageRowClick:a,maxHeight:x(),idCalculateHeight:d,componentSortASC:w.isValidElement(f)?f:tn().sortingIcon[h].asc,componentSortDESC:w.isValidElement(g)?g:tn().sortingIcon[h].desc,classNamePointer:tn().pointer[h],emptyPlaceholder:b,renderSubComponent:y}),o&&_.jsx(q_,{tbodyTrId:u,headerId:l,tableInstance:e,classNameTable:n,classNameWrapperTable:`${tn().kind[h]} ${v?tn().variant[v]:""}
76
76
  ${p?tn().utility["table-scroll-top"]:""} ${t}`,handlerRowClick:i,privillageRowClick:a,virtualizationProps:s,componentSortASC:w.isValidElement(f)?f:tn().sortingIcon[h].asc,componentSortDESC:w.isValidElement(g)?g:tn().sortingIcon[h].desc,classNamePointer:tn().pointer[h],emptyPlaceholder:b,renderSubComponent:y})]})},e$=({children:e,...t})=>_.jsx(_.Fragment,{children:e(t)}),t$=({children:e,...t})=>_.jsx(_.Fragment,{children:w.isValidElement(e)&&_.jsx(_.Fragment,{children:w.cloneElement(e,t)})}),Qb=w.forwardRef((e,t)=>{const{classNameContainer:n="",computeItemKey:r=()=>"",itemSize:i=()=>0,totalCount:a=0,typeHight:o="min-max",minHeightItem:s=0,maxHeightTable:l=0,minLengthItem:u=0,itemContent:c,typeCalculateItemSize:d="manual",itemSizeNames:h=[],overscan:f=null,component:g={},idContainer:p="",triggerCalCulateContainer:b="",accumulationHeight:v=0,delayTriggerCalculateHeight:y=0,increaseViewportBy:x=()=>0,context:S={},endReached:D,increaseTotalCount:$=1}=e,[F,m]=w.useState(0),C=()=>{if(o==="min-max"){const R=(a+$)*s;return{height:a>u?l:F>R?F:R}}return o==="container"?{height:F}:{}},I=R=>{var M;const P=R.getAttribute("data-index");let A=((M=R.getBoundingClientRect())==null?void 0:M.height)||0;return h==null||h.forEach(k=>{var T,B;A+=((B=(T=document.querySelector(`[${k}="${P}"]`))==null?void 0:T.getBoundingClientRect())==null?void 0:B.height)??0}),A},E=()=>{var R;if(p&&o==="container"){const P=((R=document==null?void 0:document.getElementById(p))==null?void 0:R.offsetHeight)??0;m(P-v)}};return w.useEffect(()=>{const R=setTimeout(E,y);return window==null||window.addEventListener("resize",E),window==null||window.addEventListener("load",E),()=>{clearTimeout(R),window==null||window.removeEventListener("resize",E),window==null||window.removeEventListener("load",E)}},[o,b]),_.jsx("div",{className:`1ru-w-full ${n}`,children:_.jsx(c_,{context:S,ref:t,overscan:typeof f=="function"?f(o==="container"?F:l):o==="container"?F:l,totalListHeightChanged:R=>o==="min-max"?m(R):null,style:C(),totalCount:a,computeItemKey:r,itemSize:w.useCallback(R=>d==="manual"?i(R):I(R),[]),itemContent:(...R)=>c(e$,...R),components:{Item:t$,...g},endReached:D,increaseViewportBy:x(o==="container"?F:l)})})});Qb.displayName="ListVirtualization";const n$="_ripple_1vbon_64",r$="_active_1vbon_69",vt={"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:n$,active:r$,"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"},Au={"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"},i$=({id:e,value:t="",keyValueTab:n="",tabsList:r,className:i,classNameContainer:a,classNameButton:o,variant:s="original-laba-blue-10",size:l="tabs-m",borderRadius:u="0px",disabled:c,animation:d=!0,mountedExecuteChange:h=!0,onChange:f})=>{var m;const g=w.useRef([]);let p=r||[];const b=Object.fromEntries(new URL(window.location.href).searchParams.entries()),v={tabsVariant:{"original-laba-blue-10":vt["original-laba-blue-10"],"container-payhere-brand-base":vt["container-payhere-brand-base"],"container-laba-blue-10":vt["container-laba-blue-10"],"container-laba-blue-10-bg_white":vt["container-laba-blue-10-bg_white"],"container-laba-blue-10-bg_blue-01":vt["container-laba-blue-10-bg_blue-01"]},size:{"tabs-m":vt["tabs-m"],"tabs-s":vt["tabs-s"],"tabs-medium":vt["tabs-medium"],"tabs-small":vt["tabs-small"]},borderRadius:Au,isContainer:["container-payhere-brand-base","container-laba-blue-10","container-laba-blue-10-bg_white","container-laba-blue-10-bg_blue-01"]},[y,x]=w.useState(-1),[S,D]=w.useState({height:0,width:0,left:0});p=p.filter(C=>typeof(C==null?void 0:C.isHide)=="boolean"?!C.isHide:!0);const $=C=>{const I=C.currentTarget,E=document.createElement("span"),R=Math.max(I.clientWidth,I.clientHeight),P=R/2;E.style.width=E.style.height=`${R}px`,E.style.left=`${C.clientX-I.getBoundingClientRect().left-P}px`,E.style.top=`${C.clientY-I.getBoundingClientRect().top-P}px`,E.classList.add(vt.ripple);const A=I.getElementsByClassName(vt.ripple)[0];A&&A.remove(),I.appendChild(E),setTimeout(()=>{E.remove()},500)},F=C=>{typeof f=="function"&&f(C)};return w.useEffect(()=>{function C(){const I=g.current[y],E={left:(I==null?void 0:I.offsetLeft)??0,width:(I==null?void 0:I.clientWidth)??0,height:v.isContainer.includes(s)?(I==null?void 0:I.clientHeight)??0:4};D(E)}return y>=0&&C(),window.addEventListener("resize",C),()=>window.removeEventListener("resize",C)},[y]),w.useEffect(()=>{const C=p.findIndex(I=>I.id===(b==null?void 0:b[n])||I.id===t);if((b!=null&&b[n]||t)&&C>=0){x(C);const I=p==null?void 0:p.find(E=>E.id===(b==null?void 0:b[n]));b!=null&&b[n]&&I&&!t&&h&&F(I)}C<0&&h&&F(p[0])},[JSON.stringify(t),JSON.stringify(b==null?void 0:b[n])]),_.jsx("div",{className:`${vt["container-tabs"]} ${c?"1ru-opacity-50":""} ${a??""}`,children:_.jsxs("div",{className:`${v.tabsVariant[s]}
77
77
  ${v.isContainer.includes(s)?v.size[l]:""}
@@ -80,11 +80,11 @@ React keys must be passed directly to JSX without using spread:
80
80
  ${o??""} ${(C==null?void 0:C.className)??""}
81
81
  ${y===I?vt.active:""}`,disabled:c,onClick:E=>{v.isContainer.includes(s)||$(E),y!=I&&F(C)},children:C.label},I))}),_.jsx("div",{className:`${vt["tabs-slider"]} ${v.borderRadius[u]}
82
82
  ${o??""} ${d?"":vt["disable-transition"]}
83
- `,style:{left:S.left,width:S.width,height:S.height,background:((m=r[y])==null?void 0:m.activeColor)??""}})]})})},a$=({children:e,id:t,value:n,selected:r,className:i,isHide:a})=>_.jsx("div",{role:"tabpanel",id:t??`1ru-tabpanel-${n}`,hidden:a??n!==r,className:`${vt["tab-panel"]} ${i??""}`,children:e}),o$="_option_eztw3_62",s$="_active_eztw3_73",mn={"pagination-nude":"_pagination-nude_eztw3_1","pagination-box":"_pagination-box_eztw3_1","pagination-size":"_pagination-size_eztw3_9","navigation-container":"_navigation-container_eztw3_12","button-container":"_button-container_eztw3_17","button-next":"_button-next_eztw3_17","button-prev":"_button-prev_eztw3_17","pagination-active":"_pagination-active_eztw3_30","options-size":"_options-size_eztw3_62",option:o$,active:s$},l$="_selected_1is24_1",u$="_disabled_1is24_19",c$="_valid_1is24_66",d$="_invalid_1is24_72",f$="_error_1is24_103",be={"container-calendar":"_container-calendar_1is24_1","month-calendar":"_month-calendar_1is24_1","cell-month":"_cell-month_1is24_1",selected:l$,"year-calendar":"_year-calendar_1is24_2","cell-year":"_cell-year_1is24_2","cell-calendar":"_cell-calendar_1is24_2","active-cell-calendar":"_active-cell-calendar_1is24_2","custom-time-calendar":"_custom-time-calendar_1is24_3","container-cell-time":"_container-cell-time_1is24_3","cell-time":"_cell-time_1is24_3","header-calendar":"_header-calendar_1is24_11","header-button-calendar":"_header-button-calendar_1is24_15",disabled:u$,"days-calendar":"_days-calendar_1is24_26","visible-cell-calendar":"_visible-cell-calendar_1is24_33","header-time":"_header-time_1is24_46","type-time":"_type-time_1is24_51",valid:c$,invalid:d$,"footer-calendar":"_footer-calendar_1is24_91","container-filter-date":"_container-filter-date_1is24_96","button-filter-date":"_button-filter-date_1is24_99",error:f$},Kn=({className: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:_.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:10},setActiveTypeCalendar:i,onChangeYear:a})=>{const o=(l,u)=>{const c=t.focusedDate.set({year:l});u?(i("month"),t.setFocusedDate(c)):!u&&typeof a=="function"&&a(c)},s=(l,u,c)=>Array.from({length:(u-l)/c+1},(d,h)=>l+h*c);return w.useEffect(()=>{const l=document.getElementById(`calendar-year-${t.focusedDate.year}`),u=document.getElementById("wrapper-calendar-year");l&&u&&u.scrollTo({behavior:"instant",top:l.offsetTop-93})},[]),_.jsxs("div",{className:`1ru-w-[296px] ${be["container-calendar"]}`,children:[_.jsx("div",{className:`${be["header-calendar"]} 1ru-my-2`,children:_.jsxs("div",{className:`${be["header-button-calendar"]} ${n.includes("date")||n.includes("month")?"":be.disabled}`,onClick:()=>{n.includes("date")?i("date"):n.includes("month")&&i("month")},children:[e," ",(n.includes("date")||n.includes("month"))&&_.jsx(Kn,{})]})}),_.jsx("div",{id:"wrapper-calendar-year",className:be["year-calendar"],children:s(r==null?void 0:r.startYear,new Date().getFullYear()+r.endAfterThisYear,1).map(l=>{var f,g;const u=Number(l),c=t!=null&&t.minValue?u<((f=t==null?void 0:t.minValue)==null?void 0:f.year):!1,d=t!=null&&t.maxValue?u>((g=t==null?void 0:t.maxValue)==null?void 0:g.year):!1,h=c||d;return _.jsx("div",{id:`calendar-year-${l}`,onClick:()=>{h||o(u,n.includes("month"))},className:`${be["cell-year"]} ${t.focusedDate.year===u&&!h?be.selected:""} ${t.focusedDate.year!==u&&!h?"hover:1ru-bg-laba-blue-01":""} ${h?"1ru-text-gray-400":"1ru-cursor-pointer"}`,children:l},l)})})]})},Fs=(e,t)=>{const n=t-e+1;return Array.from({length:n},(r,i)=>i+e)},h$=({totalData:e,totalPage:t,pageNumber:n,pageSize:r,className:i,id:a,kind:o="box",prevIcon:s,nextIcon:l,onChange:u,optionPageSize:c=[25,50,75,100],offset:d=1.5,zIndex:h,withOptionPageSize:f=!1})=>{const g=w.useRef(null),p={box:mn["pagination-box"],nude:mn["pagination-nude"]},b=1,v=(n-1)*r+1,y=r*n,x=e?`${Tr(v,"decimal")}-${y>=e?Tr(e,"decimal"):Tr(y,"decimal")}`:0,S=w.useMemo(()=>{const $=Math.ceil(e/r);if(b+5>=$)return Fs(1,$);const m=Math.max(n-b,1),C=Math.min(n+b,$),I=m>2,E=C<$-2,R=1,P=$;if(!I&&E){const A=3+2*b;return[...Fs(1,A),"...",$]}if(I&&!E){const A=3+2*b,M=Fs($-A+1,$);return[R,"...",...M]}if(I&&E){const A=Fs(m,C);return[R,"...",...A,"...",P]}},[e,r,b,n]),D=$=>{typeof u=="function"&&u($)};return _.jsxs(_.Fragment,{children:[_.jsxs("div",{id:a??"1ru-pagination",className:`${p[o]} ${i}`,children:[_.jsxs("div",{className:mn["pagination-size"],children:[_.jsx("span",{children:"Baris per halaman:"}),f&&_.jsx(Mn,{variants:"ghost-blue-gray-100-bg_white",size:"xs",endIcon:_.jsx(Kn,{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:$=>{var F;return(F=g.current)==null?void 0:F.handlerShow($)},children:Tr(r,"decimal")}),_.jsxs("span",{children:[x," dari ",Tr(e,"decimal")]})]}),_.jsxs("div",{className:mn["navigation-container"],children:[_.jsx("button",{id:"1ru-pagination-button-prev",className:`${mn["button-prev"]}`,disabled:n===1,onClick:()=>D({pageSize:r,totalData:e,totalPage:t,pageNumber:n-1}),children:typeof s=="function"||w.isValidElement(s)?w.isValidElement(s)?s:s():_.jsx(Kn,{className:"1ru-rotate-90 !1ru-text-gray-500 !1ru-w-[14px] !1ru-h-[14px]"})}),(S??[]).map(($,F)=>typeof $!="number"?_.jsx("button",{className:mn["button-container"],disabled:!0,children:$},F):_.jsx("button",{id:`1ru-pagination-button-${$}`,className:`${$===n?mn["pagination-active"]:""} ${mn["button-container"]}`,disabled:$===n,onClick:()=>D({pageSize:r,totalData:e,totalPage:t,pageNumber:$}),children:Tr($,"decimal")},F)),_.jsx("button",{id:"1ru-pagination-button-next",className:`${mn["button-next"]}`,disabled:n===t||!t,onClick:()=>D({pageSize:r,totalData:e,totalPage:t,pageNumber:n+1}),children:typeof l=="function"||w.isValidElement(l)?w.isValidElement(l)?l:l():_.jsx(Kn,{className:"-1ru-rotate-90 !1ru-text-gray-500 !1ru-w-[14px] !1ru-h-[14px]"})})]})]}),_.jsx(Ir,{floatingOptions:{placement:"bottom-end"},ref:g,className:mn["options-size"],offset:d,zIndex:h,children:c.map(($,F)=>_.jsx("p",{className:`${mn.option} ${$===r?mn.active:""}`,onClick:()=>{var m;D({totalData:e,totalPage:t,pageSize:$,pageNumber:1}),(m=g.current)==null||m.setShow(!1)},children:Tr($,"decimal")},F))})]})};function $i(e){"@babel/helpers - typeof";return $i=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},$i(e)}function g$(e,t){if($i(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if($i(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tv(e){var t=g$(e,"string");return $i(t)=="symbol"?t:t+""}function Ya(e,t,n){return(t=tv(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 fe(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){Ya(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 m$(e){if(Array.isArray(e))return e}function p$(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.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&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function Cd(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 nv(e,t){if(e){if(typeof e=="string")return Cd(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)?Cd(e,t):void 0}}function b$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
84
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wr(e,t){return m$(e)||p$(e,t)||nv(e,t)||b$()}function v$(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function _r(e,t){if(e==null)return{};var n,r,i=v$(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var y$=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function x$(e){var t=e.defaultInputValue,n=t===void 0?"":t,r=e.defaultMenuIsOpen,i=r===void 0?!1:r,a=e.defaultValue,o=a===void 0?null:a,s=e.inputValue,l=e.menuIsOpen,u=e.onChange,c=e.onInputChange,d=e.onMenuClose,h=e.onMenuOpen,f=e.value,g=_r(e,y$),p=w.useState(s!==void 0?s:n),b=wr(p,2),v=b[0],y=b[1],x=w.useState(l!==void 0?l:i),S=wr(x,2),D=S[0],$=S[1],F=w.useState(f!==void 0?f:o),m=wr(F,2),C=m[0],I=m[1],E=w.useCallback(function(B,O){typeof u=="function"&&u(B,O),I(B)},[u]),R=w.useCallback(function(B,O){var L;typeof c=="function"&&(L=c(B,O)),y(L!==void 0?L:B)},[c]),P=w.useCallback(function(){typeof h=="function"&&h(),$(!0)},[h]),A=w.useCallback(function(){typeof d=="function"&&d(),$(!1)},[d]),M=s!==void 0?s:v,k=l!==void 0?l:D,T=f!==void 0?f:C;return fe(fe({},g),{},{inputValue:M,menuIsOpen:k,onChange:E,onInputChange:R,onMenuClose:A,onMenuOpen:P,value:T})}function ge(){return ge=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},ge.apply(null,arguments)}function C$(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,tv(r.key),r)}}function w$(e,t,n){return t&&mm(e.prototype,t),n&&mm(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function wd(e,t){return wd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},wd(e,t)}function D$(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&&wd(e,t)}function Wl(e){return Wl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Wl(e)}function rv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(rv=function(){return!!e})()}function S$(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E$(e,t){if(t&&($i(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return S$(e)}function I$(e){var t=rv();return function(){var n,r=Wl(e);if(t){var i=Wl(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return E$(this,n)}}function _$(e){if(Array.isArray(e))return Cd(e)}function $$(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function R$(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
83
+ `,style:{left:S.left,width:S.width,height:S.height,background:((m=r[y])==null?void 0:m.activeColor)??""}})]})})},a$=({children:e,id:t,value:n,selected:r,className:i,isHide:a})=>_.jsx("div",{role:"tabpanel",id:t??`1ru-tabpanel-${n}`,hidden:a??n!==r,className:`${vt["tab-panel"]} ${i??""}`,children:e}),o$="_option_eztw3_62",s$="_active_eztw3_73",mn={"pagination-nude":"_pagination-nude_eztw3_1","pagination-box":"_pagination-box_eztw3_1","pagination-size":"_pagination-size_eztw3_9","navigation-container":"_navigation-container_eztw3_12","button-container":"_button-container_eztw3_17","button-next":"_button-next_eztw3_17","button-prev":"_button-prev_eztw3_17","pagination-active":"_pagination-active_eztw3_30","options-size":"_options-size_eztw3_62",option:o$,active:s$},l$="_selected_1is24_1",u$="_disabled_1is24_19",c$="_valid_1is24_66",d$="_invalid_1is24_72",f$="_error_1is24_103",be={"container-calendar":"_container-calendar_1is24_1","month-calendar":"_month-calendar_1is24_1","cell-month":"_cell-month_1is24_1",selected:l$,"year-calendar":"_year-calendar_1is24_2","cell-year":"_cell-year_1is24_2","cell-calendar":"_cell-calendar_1is24_2","active-cell-calendar":"_active-cell-calendar_1is24_2","custom-time-calendar":"_custom-time-calendar_1is24_3","container-cell-time":"_container-cell-time_1is24_3","cell-time":"_cell-time_1is24_3","header-calendar":"_header-calendar_1is24_11","header-button-calendar":"_header-button-calendar_1is24_15",disabled:u$,"days-calendar":"_days-calendar_1is24_26","visible-cell-calendar":"_visible-cell-calendar_1is24_33","header-time":"_header-time_1is24_46","type-time":"_type-time_1is24_51",valid:c$,invalid:d$,"footer-calendar":"_footer-calendar_1is24_91","container-filter-date":"_container-filter-date_1is24_96","button-filter-date":"_button-filter-date_1is24_99",error:f$},Kn=({className: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:_.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:10},setActiveTypeCalendar:i,onChangeYear:a})=>{const o=(l,u)=>{const c=t.focusedDate.set({year:l});u?(i("month"),t.setFocusedDate(c)):!u&&typeof a=="function"&&a(c)},s=(l,u,c)=>Array.from({length:(u-l)/c+1},(d,h)=>l+h*c);return w.useEffect(()=>{const l=document.getElementById(`calendar-year-${t.focusedDate.year}`),u=document.getElementById("wrapper-calendar-year");l&&u&&u.scrollTo({behavior:"instant",top:l.offsetTop-93})},[]),_.jsxs("div",{className:`1ru-w-[296px] ${be["container-calendar"]}`,children:[_.jsx("div",{className:`${be["header-calendar"]} 1ru-my-2`,children:_.jsxs("div",{className:`${be["header-button-calendar"]} ${n.includes("date")||n.includes("month")?"":be.disabled}`,onClick:()=>{n.includes("date")?i("date"):n.includes("month")&&i("month")},children:[e," ",(n.includes("date")||n.includes("month"))&&_.jsx(Kn,{})]})}),_.jsx("div",{id:"wrapper-calendar-year",className:be["year-calendar"],children:s(r==null?void 0:r.startYear,new Date().getFullYear()+r.endAfterThisYear,1).map(l=>{var f,g;const u=Number(l),c=t!=null&&t.minValue?u<((f=t==null?void 0:t.minValue)==null?void 0:f.year):!1,d=t!=null&&t.maxValue?u>((g=t==null?void 0:t.maxValue)==null?void 0:g.year):!1,h=c||d;return _.jsx("div",{id:`calendar-year-${l}`,onClick:()=>{h||o(u,n.includes("month"))},className:`${be["cell-year"]} ${t.focusedDate.year===u&&!h?be.selected:""} ${t.focusedDate.year!==u&&!h?"hover:1ru-bg-laba-blue-01":""} ${h?"1ru-text-gray-400":"1ru-cursor-pointer"}`,children:l},l)})})]})},Fs=(e,t)=>{const n=t-e+1;return Array.from({length:n},(r,i)=>i+e)},h$=({totalData:e,totalPage:t,pageNumber:n,pageSize:r,className:i,id:a,kind:o="box",prevIcon:s,nextIcon:l,onChange:u,optionPageSize:c=[25,50,75,100],offset:d=1.5,zIndex:h,withOptionPageSize:f=!1})=>{const g=w.useRef(null),p={box:mn["pagination-box"],nude:mn["pagination-nude"]},b=1,v=(n-1)*r+1,y=r*n,x=e?`${Tr(v,"decimal")}-${y>=e?Tr(e,"decimal"):Tr(y,"decimal")}`:0,S=w.useMemo(()=>{const $=Math.ceil(e/r);if(b+5>=$)return Fs(1,$);const m=Math.max(n-b,1),C=Math.min(n+b,$),I=m>2,E=C<$-2,R=1,P=$;if(!I&&E){const A=3+2*b;return[...Fs(1,A),"...",$]}if(I&&!E){const A=3+2*b,M=Fs($-A+1,$);return[R,"...",...M]}if(I&&E){const A=Fs(m,C);return[R,"...",...A,"...",P]}},[e,r,b,n]),D=$=>{typeof u=="function"&&u($)};return _.jsxs(_.Fragment,{children:[_.jsxs("div",{id:a??"1ru-pagination",className:`${p[o]} ${i}`,children:[_.jsxs("div",{className:mn["pagination-size"],children:[_.jsx("span",{children:"Baris per halaman:"}),f&&_.jsx(Mn,{variants:"ghost-blue-gray-100-bg_white",size:"xs",endIcon:_.jsx(Kn,{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:$=>{var F;return(F=g.current)==null?void 0:F.handlerShow($)},children:Tr(r,"decimal")}),_.jsxs("span",{children:[x," dari ",Tr(e,"decimal")]})]}),_.jsxs("div",{className:mn["navigation-container"],children:[_.jsx("button",{id:"1ru-pagination-button-prev",className:`${mn["button-prev"]}`,disabled:n===1,onClick:()=>D({pageSize:r,totalData:e,totalPage:t,pageNumber:n-1}),children:typeof s=="function"||w.isValidElement(s)?w.isValidElement(s)?s:s():_.jsx(Kn,{className:"1ru-rotate-90 !1ru-text-gray-500 !1ru-w-[14px] !1ru-h-[14px]"})}),(S??[]).map(($,F)=>typeof $!="number"?_.jsx("button",{className:mn["button-container"],disabled:!0,children:$},F):_.jsx("button",{id:`1ru-pagination-button-${$}`,className:`${$===n?mn["pagination-active"]:""} ${mn["button-container"]}`,disabled:$===n,onClick:()=>D({pageSize:r,totalData:e,totalPage:t,pageNumber:$}),children:Tr($,"decimal")},F)),_.jsx("button",{id:"1ru-pagination-button-next",className:`${mn["button-next"]}`,disabled:n===t||!t,onClick:()=>D({pageSize:r,totalData:e,totalPage:t,pageNumber:n+1}),children:typeof l=="function"||w.isValidElement(l)?w.isValidElement(l)?l:l():_.jsx(Kn,{className:"-1ru-rotate-90 !1ru-text-gray-500 !1ru-w-[14px] !1ru-h-[14px]"})})]})]}),_.jsx(Ir,{floatingOptions:{placement:"bottom-end"},ref:g,className:mn["options-size"],offset:d,zIndex:h,children:c.map(($,F)=>_.jsx("p",{className:`${mn.option} ${$===r?mn.active:""}`,onClick:()=>{var m;D({totalData:e,totalPage:t,pageSize:$,pageNumber:1}),(m=g.current)==null||m.setShow(!1)},children:Tr($,"decimal")},F))})]})};function Ri(e){"@babel/helpers - typeof";return Ri=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},Ri(e)}function g$(e,t){if(Ri(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ri(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tv(e){var t=g$(e,"string");return Ri(t)=="symbol"?t:t+""}function Ya(e,t,n){return(t=tv(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 fe(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){Ya(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 m$(e){if(Array.isArray(e))return e}function p$(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.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&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function Cd(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 nv(e,t){if(e){if(typeof e=="string")return Cd(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)?Cd(e,t):void 0}}function b$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
84
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wr(e,t){return m$(e)||p$(e,t)||nv(e,t)||b$()}function v$(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function _r(e,t){if(e==null)return{};var n,r,i=v$(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var y$=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function x$(e){var t=e.defaultInputValue,n=t===void 0?"":t,r=e.defaultMenuIsOpen,i=r===void 0?!1:r,a=e.defaultValue,o=a===void 0?null:a,s=e.inputValue,l=e.menuIsOpen,u=e.onChange,c=e.onInputChange,d=e.onMenuClose,h=e.onMenuOpen,f=e.value,g=_r(e,y$),p=w.useState(s!==void 0?s:n),b=wr(p,2),v=b[0],y=b[1],x=w.useState(l!==void 0?l:i),S=wr(x,2),D=S[0],$=S[1],F=w.useState(f!==void 0?f:o),m=wr(F,2),C=m[0],I=m[1],E=w.useCallback(function(B,O){typeof u=="function"&&u(B,O),I(B)},[u]),R=w.useCallback(function(B,O){var L;typeof c=="function"&&(L=c(B,O)),y(L!==void 0?L:B)},[c]),P=w.useCallback(function(){typeof h=="function"&&h(),$(!0)},[h]),A=w.useCallback(function(){typeof d=="function"&&d(),$(!1)},[d]),M=s!==void 0?s:v,k=l!==void 0?l:D,T=f!==void 0?f:C;return fe(fe({},g),{},{inputValue:M,menuIsOpen:k,onChange:E,onInputChange:R,onMenuClose:A,onMenuOpen:P,value:T})}function ge(){return ge=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},ge.apply(null,arguments)}function C$(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,tv(r.key),r)}}function w$(e,t,n){return t&&mm(e.prototype,t),n&&mm(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function wd(e,t){return wd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},wd(e,t)}function D$(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&&wd(e,t)}function Wl(e){return Wl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Wl(e)}function rv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(rv=function(){return!!e})()}function S$(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E$(e,t){if(t&&(Ri(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return S$(e)}function I$(e){var t=rv();return function(){var n,r=Wl(e);if(t){var i=Wl(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return E$(this,n)}}function _$(e){if(Array.isArray(e))return Cd(e)}function $$(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function R$(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
85
85
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jf(e){return _$(e)||$$(e)||nv(e)||R$()}function A$(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 F$(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 T$=function(){function e(n){var r=this;this._insertTag=function(i){var a;r.tags.length===0?r.insertionPoint?a=r.insertionPoint.nextSibling:r.prepend?a=r.container.firstChild:a=r.before:a=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,a),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(F$(this));var i=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var a=r.charCodeAt(0)===64&&r.charCodeAt(1)===105;a&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
86
- `+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||!a}if(this.isSpeedy){var o=A$(i);try{o.insertRule(r,o.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}(),$t="-ms-",zl="-moz-",Me="-webkit-",Kf="comm",qf="rule",Qf="decl",P$="@import",iv="@keyframes",k$="@layer",M$=Math.abs,Fu=String.fromCharCode,B$=Object.assign;function O$(e,t){return St(e,0)^45?(((t<<2^St(e,0))<<2^St(e,1))<<2^St(e,2))<<2^St(e,3):0}function av(e){return e.trim()}function N$(e,t){return(e=t.exec(e))?e[0]:e}function Be(e,t,n){return e.replace(t,n)}function Dd(e,t){return e.indexOf(t)}function St(e,t){return e.charCodeAt(t)|0}function To(e,t,n){return e.slice(t,n)}function Yn(e){return e.length}function eh(e){return e.length}function Ts(e,t){return t.push(e),e}function V$(e,t){return e.map(t).join("")}var Tu=1,Ca=1,ov=0,Kt=0,mt=0,Fa="";function Pu(e,t,n,r,i,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:Tu,column:Ca,length:o,return:""}}function Ba(e,t){return B$(Pu("",null,null,"",null,null,0),e,{length:-e.length},t)}function L$(){return mt}function H$(){return mt=Kt>0?St(Fa,--Kt):0,Ca--,mt===10&&(Ca=1,Tu--),mt}function un(){return mt=Kt<ov?St(Fa,Kt++):0,Ca++,mt===10&&(Ca=1,Tu++),mt}function qn(){return St(Fa,Kt)}function hl(){return Kt}function ls(e,t){return To(Fa,e,t)}function Po(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 sv(e){return Tu=Ca=1,ov=Yn(Fa=e),Kt=0,[]}function lv(e){return Fa="",e}function gl(e){return av(ls(Kt-1,Sd(e===91?e+2:e===40?e+1:e)))}function j$(e){for(;(mt=qn())&&mt<33;)un();return Po(e)>2||Po(mt)>3?"":" "}function W$(e,t){for(;--t&&un()&&!(mt<48||mt>102||mt>57&&mt<65||mt>70&&mt<97););return ls(e,hl()+(t<6&&qn()==32&&un()==32))}function Sd(e){for(;un();)switch(mt){case e:return Kt;case 34:case 39:e!==34&&e!==39&&Sd(mt);break;case 40:e===41&&Sd(e);break;case 92:un();break}return Kt}function z$(e,t){for(;un()&&e+mt!==57;)if(e+mt===84&&qn()===47)break;return"/*"+ls(t,Kt-1)+"*"+Fu(e===47?e:un())}function G$(e){for(;!Po(qn());)un();return ls(e,Kt)}function X$(e){return lv(ml("",null,null,null,[""],e=sv(e),0,[0],e))}function ml(e,t,n,r,i,a,o,s,l){for(var u=0,c=0,d=o,h=0,f=0,g=0,p=1,b=1,v=1,y=0,x="",S=i,D=a,$=r,F=x;b;)switch(g=y,y=un()){case 40:if(g!=108&&St(F,d-1)==58){Dd(F+=Be(gl(y),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:F+=gl(y);break;case 9:case 10:case 13:case 32:F+=j$(g);break;case 92:F+=W$(hl()-1,7);continue;case 47:switch(qn()){case 42:case 47:Ts(Z$(z$(un(),hl()),t,n),l);break;default:F+="/"}break;case 123*p:s[u++]=Yn(F)*v;case 125*p:case 59:case 0:switch(y){case 0:case 125:b=0;case 59+c:v==-1&&(F=Be(F,/\f/g,"")),f>0&&Yn(F)-d&&Ts(f>32?bm(F+";",r,n,d-1):bm(Be(F," ","")+";",r,n,d-2),l);break;case 59:F+=";";default:if(Ts($=pm(F,t,n,u,c,i,s,x,S=[],D=[],d),a),y===123)if(c===0)ml(F,t,$,$,S,a,d,s,D);else switch(h===99&&St(F,3)===110?100:h){case 100:case 108:case 109:case 115:ml(e,$,$,r&&Ts(pm(e,$,$,0,0,i,s,x,i,S=[],d),D),i,D,d,s,r?S:D);break;default:ml(F,$,$,$,[""],D,0,s,D)}}u=c=f=0,p=v=1,x=F="",d=o;break;case 58:d=1+Yn(F),f=g;default:if(p<1){if(y==123)--p;else if(y==125&&p++==0&&H$()==125)continue}switch(F+=Fu(y),y*p){case 38:v=c>0?1:(F+="\f",-1);break;case 44:s[u++]=(Yn(F)-1)*v,v=1;break;case 64:qn()===45&&(F+=gl(un())),h=qn(),c=d=Yn(x=F+=G$(hl())),y++;break;case 45:g===45&&Yn(F)==2&&(p=0)}}return a}function pm(e,t,n,r,i,a,o,s,l,u,c){for(var d=i-1,h=i===0?a:[""],f=eh(h),g=0,p=0,b=0;g<r;++g)for(var v=0,y=To(e,d+1,d=M$(p=o[g])),x=e;v<f;++v)(x=av(p>0?h[v]+" "+y:Be(y,/&\f/g,h[v])))&&(l[b++]=x);return Pu(e,t,n,i===0?qf:s,l,u,c)}function Z$(e,t,n){return Pu(e,t,n,Kf,Fu(L$()),To(e,2,-2),0)}function bm(e,t,n,r){return Pu(e,t,n,Qf,To(e,0,r),To(e,r+1,-1),r)}function ua(e,t){for(var n="",r=eh(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function Y$(e,t,n,r){switch(e.type){case k$:if(e.children.length)break;case P$:case Qf:return e.return=e.return||e.value;case Kf:return"";case iv:return e.return=e.value+"{"+ua(e.children,r)+"}";case qf:e.value=e.props.join(",")}return Yn(n=ua(e.children,r))?e.return=e.value+"{"+n+"}":""}function U$(e){var t=eh(e);return function(n,r,i,a){for(var o="",s=0;s<t;s++)o+=e[s](n,r,i,a)||"";return o}}function J$(e){return function(t){t.root||(t=t.return)&&e(t)}}var K$=function(t,n,r){for(var i=0,a=0;i=a,a=qn(),i===38&&a===12&&(n[r]=1),!Po(a);)un();return ls(t,Kt)},q$=function(t,n){var r=-1,i=44;do switch(Po(i)){case 0:i===38&&qn()===12&&(n[r]=1),t[r]+=K$(Kt-1,n,r);break;case 2:t[r]+=gl(i);break;case 4:if(i===44){t[++r]=qn()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Fu(i)}while(i=un());return t},Q$=function(t,n){return lv(q$(sv(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 a=[],o=Q$(n,a),s=r.props,l=0,u=0;l<o.length;l++)for(var c=0;c<s.length;c++,u++)t.props[u]=a[l]?o[l].replace(/&\f/g,s[c]):s[c]+" "+o[l]}}},t6=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}},n6="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",r6=function(t){return t.type==="comm"&&t.children.indexOf(n6)>-1},i6=function(t){return function(n,r,i){if(!(n.type!=="rule"||t.compat)){var a=n.value.match(/(:first|:nth|:nth-last)-child/g);if(a){for(var o=!!n.parent,s=o?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(r6(u))return;break}}a.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".')})}}}},uv=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(!uv(n[r]))return!0;return!1},ym=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},o6=function(t,n,r){uv(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 cv(e,t){switch(O$(e,t)){case 5103:return Me+"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 Me+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Me+e+zl+e+$t+e+e;case 6828:case 4268:return Me+e+$t+e+e;case 6165:return Me+e+$t+"flex-"+e+e;case 5187:return Me+e+Be(e,/(\w+).+(:[^]+)/,Me+"box-$1$2"+$t+"flex-$1$2")+e;case 5443:return Me+e+$t+"flex-item-"+Be(e,/flex-|-self/,"")+e;case 4675:return Me+e+$t+"flex-line-pack"+Be(e,/align-content|flex-|-self/,"")+e;case 5548:return Me+e+$t+Be(e,"shrink","negative")+e;case 5292:return Me+e+$t+Be(e,"basis","preferred-size")+e;case 6060:return Me+"box-"+Be(e,"-grow","")+Me+e+$t+Be(e,"grow","positive")+e;case 4554:return Me+Be(e,/([^-])(transform)/g,"$1"+Me+"$2")+e;case 6187:return Be(Be(Be(e,/(zoom-|grab)/,Me+"$1"),/(image-set)/,Me+"$1"),e,"")+e;case 5495:case 3959:return Be(e,/(image-set\([^]*)/,Me+"$1$`$1");case 4968:return Be(Be(e,/(.+:)(flex-)?(.*)/,Me+"box-pack:$3"+$t+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Me+e+e;case 4095:case 3583:case 4068:case 2532:return Be(e,/(.+)-inline(.+)/,Me+"$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(Yn(e)-1-t>6)switch(St(e,t+1)){case 109:if(St(e,t+4)!==45)break;case 102:return Be(e,/(.+:)(.+)-([^]+)/,"$1"+Me+"$2-$3$1"+zl+(St(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Dd(e,"stretch")?cv(Be(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(St(e,t+1)!==115)break;case 6444:switch(St(e,Yn(e)-3-(~Dd(e,"!important")&&10))){case 107:return Be(e,":",":"+Me)+e;case 101:return Be(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Me+(St(e,14)===45?"inline-":"")+"box$3$1"+Me+"$2$3$1"+$t+"$2box$3")+e}break;case 5936:switch(St(e,t+11)){case 114:return Me+e+$t+Be(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Me+e+$t+Be(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Me+e+$t+Be(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Me+e+$t+e+e}return e}var s6=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Qf:t.return=cv(t.value,t.length);break;case iv:return ua([Ba(t,{value:Be(t.value,"@","@"+Me)})],i);case qf:if(t.length)return V$(t.props,function(a){switch(N$(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ua([Ba(t,{props:[Be(a,/:(read-\w+)/,":"+zl+"$1")]})],i);case"::placeholder":return ua([Ba(t,{props:[Be(a,/:(plac\w+)/,":"+Me+"input-$1")]}),Ba(t,{props:[Be(a,/:(plac\w+)/,":"+zl+"$1")]}),Ba(t,{props:[Be(a,/:(plac\w+)/,$t+"input-$1")]})],i)}return""})}},l6=[s6],u6=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.
87
- 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(p){var b=p.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var i=t.stylisPlugins||l6;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 a={},o,s=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(p){for(var b=p.getAttribute("data-emotion").split(" "),v=1;v<b.length;v++)a[b[v]]=!0;s.push(p)});var l,u=[e6,t6];process.env.NODE_ENV!=="production"&&u.push(i6({get compat(){return g.compat}}),o6);{var c,d=[Y$,process.env.NODE_ENV!=="production"?function(p){p.root||(p.return?c.insert(p.return):p.value&&p.type!==Kf&&c.insert(p.value+"{}"))}:J$(function(p){c.insert(p)})],h=U$(u.concat(i,d)),f=function(b){return ua(X$(b),h)};l=function(b,v,y,x){c=y,process.env.NODE_ENV!=="production"&&v.map!==void 0&&(c={insert:function(D){y.insert(D+v.map)}}),f(b?b+"{"+v.styles+"}":v.styles),x&&(g.inserted[v.name]=!0)}}var g={key:n,sheet:new T$({key:n,container:o,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:l};return g.sheet.hydrate(s),g},Ed={exports:{}},Ve={};/** @license React v16.13.1
86
+ `+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||!a}if(this.isSpeedy){var o=A$(i);try{o.insertRule(r,o.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}(),$t="-ms-",zl="-moz-",Me="-webkit-",Kf="comm",qf="rule",Qf="decl",P$="@import",iv="@keyframes",k$="@layer",M$=Math.abs,Fu=String.fromCharCode,B$=Object.assign;function O$(e,t){return St(e,0)^45?(((t<<2^St(e,0))<<2^St(e,1))<<2^St(e,2))<<2^St(e,3):0}function av(e){return e.trim()}function N$(e,t){return(e=t.exec(e))?e[0]:e}function Be(e,t,n){return e.replace(t,n)}function Dd(e,t){return e.indexOf(t)}function St(e,t){return e.charCodeAt(t)|0}function To(e,t,n){return e.slice(t,n)}function Yn(e){return e.length}function eh(e){return e.length}function Ts(e,t){return t.push(e),e}function V$(e,t){return e.map(t).join("")}var Tu=1,Ca=1,ov=0,Kt=0,mt=0,Fa="";function Pu(e,t,n,r,i,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:Tu,column:Ca,length:o,return:""}}function Ba(e,t){return B$(Pu("",null,null,"",null,null,0),e,{length:-e.length},t)}function L$(){return mt}function H$(){return mt=Kt>0?St(Fa,--Kt):0,Ca--,mt===10&&(Ca=1,Tu--),mt}function un(){return mt=Kt<ov?St(Fa,Kt++):0,Ca++,mt===10&&(Ca=1,Tu++),mt}function qn(){return St(Fa,Kt)}function hl(){return Kt}function ls(e,t){return To(Fa,e,t)}function Po(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 sv(e){return Tu=Ca=1,ov=Yn(Fa=e),Kt=0,[]}function lv(e){return Fa="",e}function gl(e){return av(ls(Kt-1,Sd(e===91?e+2:e===40?e+1:e)))}function j$(e){for(;(mt=qn())&&mt<33;)un();return Po(e)>2||Po(mt)>3?"":" "}function W$(e,t){for(;--t&&un()&&!(mt<48||mt>102||mt>57&&mt<65||mt>70&&mt<97););return ls(e,hl()+(t<6&&qn()==32&&un()==32))}function Sd(e){for(;un();)switch(mt){case e:return Kt;case 34:case 39:e!==34&&e!==39&&Sd(mt);break;case 40:e===41&&Sd(e);break;case 92:un();break}return Kt}function z$(e,t){for(;un()&&e+mt!==57;)if(e+mt===84&&qn()===47)break;return"/*"+ls(t,Kt-1)+"*"+Fu(e===47?e:un())}function G$(e){for(;!Po(qn());)un();return ls(e,Kt)}function X$(e){return lv(ml("",null,null,null,[""],e=sv(e),0,[0],e))}function ml(e,t,n,r,i,a,o,s,l){for(var u=0,c=0,d=o,h=0,f=0,g=0,p=1,b=1,v=1,y=0,x="",S=i,D=a,$=r,F=x;b;)switch(g=y,y=un()){case 40:if(g!=108&&St(F,d-1)==58){Dd(F+=Be(gl(y),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:F+=gl(y);break;case 9:case 10:case 13:case 32:F+=j$(g);break;case 92:F+=W$(hl()-1,7);continue;case 47:switch(qn()){case 42:case 47:Ts(Z$(z$(un(),hl()),t,n),l);break;default:F+="/"}break;case 123*p:s[u++]=Yn(F)*v;case 125*p:case 59:case 0:switch(y){case 0:case 125:b=0;case 59+c:v==-1&&(F=Be(F,/\f/g,"")),f>0&&Yn(F)-d&&Ts(f>32?bm(F+";",r,n,d-1):bm(Be(F," ","")+";",r,n,d-2),l);break;case 59:F+=";";default:if(Ts($=pm(F,t,n,u,c,i,s,x,S=[],D=[],d),a),y===123)if(c===0)ml(F,t,$,$,S,a,d,s,D);else switch(h===99&&St(F,3)===110?100:h){case 100:case 108:case 109:case 115:ml(e,$,$,r&&Ts(pm(e,$,$,0,0,i,s,x,i,S=[],d),D),i,D,d,s,r?S:D);break;default:ml(F,$,$,$,[""],D,0,s,D)}}u=c=f=0,p=v=1,x=F="",d=o;break;case 58:d=1+Yn(F),f=g;default:if(p<1){if(y==123)--p;else if(y==125&&p++==0&&H$()==125)continue}switch(F+=Fu(y),y*p){case 38:v=c>0?1:(F+="\f",-1);break;case 44:s[u++]=(Yn(F)-1)*v,v=1;break;case 64:qn()===45&&(F+=gl(un())),h=qn(),c=d=Yn(x=F+=G$(hl())),y++;break;case 45:g===45&&Yn(F)==2&&(p=0)}}return a}function pm(e,t,n,r,i,a,o,s,l,u,c){for(var d=i-1,h=i===0?a:[""],f=eh(h),g=0,p=0,b=0;g<r;++g)for(var v=0,y=To(e,d+1,d=M$(p=o[g])),x=e;v<f;++v)(x=av(p>0?h[v]+" "+y:Be(y,/&\f/g,h[v])))&&(l[b++]=x);return Pu(e,t,n,i===0?qf:s,l,u,c)}function Z$(e,t,n){return Pu(e,t,n,Kf,Fu(L$()),To(e,2,-2),0)}function bm(e,t,n,r){return Pu(e,t,n,Qf,To(e,0,r),To(e,r+1,-1),r)}function ca(e,t){for(var n="",r=eh(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function Y$(e,t,n,r){switch(e.type){case k$:if(e.children.length)break;case P$:case Qf:return e.return=e.return||e.value;case Kf:return"";case iv:return e.return=e.value+"{"+ca(e.children,r)+"}";case qf:e.value=e.props.join(",")}return Yn(n=ca(e.children,r))?e.return=e.value+"{"+n+"}":""}function U$(e){var t=eh(e);return function(n,r,i,a){for(var o="",s=0;s<t;s++)o+=e[s](n,r,i,a)||"";return o}}function J$(e){return function(t){t.root||(t=t.return)&&e(t)}}var K$=function(t,n,r){for(var i=0,a=0;i=a,a=qn(),i===38&&a===12&&(n[r]=1),!Po(a);)un();return ls(t,Kt)},q$=function(t,n){var r=-1,i=44;do switch(Po(i)){case 0:i===38&&qn()===12&&(n[r]=1),t[r]+=K$(Kt-1,n,r);break;case 2:t[r]+=gl(i);break;case 4:if(i===44){t[++r]=qn()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Fu(i)}while(i=un());return t},Q$=function(t,n){return lv(q$(sv(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 a=[],o=Q$(n,a),s=r.props,l=0,u=0;l<o.length;l++)for(var c=0;c<s.length;c++,u++)t.props[u]=a[l]?o[l].replace(/&\f/g,s[c]):s[c]+" "+o[l]}}},t6=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}},n6="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",r6=function(t){return t.type==="comm"&&t.children.indexOf(n6)>-1},i6=function(t){return function(n,r,i){if(!(n.type!=="rule"||t.compat)){var a=n.value.match(/(:first|:nth|:nth-last)-child/g);if(a){for(var o=!!n.parent,s=o?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(r6(u))return;break}}a.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".')})}}}},uv=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(!uv(n[r]))return!0;return!1},ym=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},o6=function(t,n,r){uv(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 cv(e,t){switch(O$(e,t)){case 5103:return Me+"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 Me+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Me+e+zl+e+$t+e+e;case 6828:case 4268:return Me+e+$t+e+e;case 6165:return Me+e+$t+"flex-"+e+e;case 5187:return Me+e+Be(e,/(\w+).+(:[^]+)/,Me+"box-$1$2"+$t+"flex-$1$2")+e;case 5443:return Me+e+$t+"flex-item-"+Be(e,/flex-|-self/,"")+e;case 4675:return Me+e+$t+"flex-line-pack"+Be(e,/align-content|flex-|-self/,"")+e;case 5548:return Me+e+$t+Be(e,"shrink","negative")+e;case 5292:return Me+e+$t+Be(e,"basis","preferred-size")+e;case 6060:return Me+"box-"+Be(e,"-grow","")+Me+e+$t+Be(e,"grow","positive")+e;case 4554:return Me+Be(e,/([^-])(transform)/g,"$1"+Me+"$2")+e;case 6187:return Be(Be(Be(e,/(zoom-|grab)/,Me+"$1"),/(image-set)/,Me+"$1"),e,"")+e;case 5495:case 3959:return Be(e,/(image-set\([^]*)/,Me+"$1$`$1");case 4968:return Be(Be(e,/(.+:)(flex-)?(.*)/,Me+"box-pack:$3"+$t+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Me+e+e;case 4095:case 3583:case 4068:case 2532:return Be(e,/(.+)-inline(.+)/,Me+"$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(Yn(e)-1-t>6)switch(St(e,t+1)){case 109:if(St(e,t+4)!==45)break;case 102:return Be(e,/(.+:)(.+)-([^]+)/,"$1"+Me+"$2-$3$1"+zl+(St(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Dd(e,"stretch")?cv(Be(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(St(e,t+1)!==115)break;case 6444:switch(St(e,Yn(e)-3-(~Dd(e,"!important")&&10))){case 107:return Be(e,":",":"+Me)+e;case 101:return Be(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Me+(St(e,14)===45?"inline-":"")+"box$3$1"+Me+"$2$3$1"+$t+"$2box$3")+e}break;case 5936:switch(St(e,t+11)){case 114:return Me+e+$t+Be(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Me+e+$t+Be(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Me+e+$t+Be(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Me+e+$t+e+e}return e}var s6=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Qf:t.return=cv(t.value,t.length);break;case iv:return ca([Ba(t,{value:Be(t.value,"@","@"+Me)})],i);case qf:if(t.length)return V$(t.props,function(a){switch(N$(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ca([Ba(t,{props:[Be(a,/:(read-\w+)/,":"+zl+"$1")]})],i);case"::placeholder":return ca([Ba(t,{props:[Be(a,/:(plac\w+)/,":"+Me+"input-$1")]}),Ba(t,{props:[Be(a,/:(plac\w+)/,":"+zl+"$1")]}),Ba(t,{props:[Be(a,/:(plac\w+)/,$t+"input-$1")]})],i)}return""})}},l6=[s6],u6=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.
87
+ 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(p){var b=p.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var i=t.stylisPlugins||l6;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 a={},o,s=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(p){for(var b=p.getAttribute("data-emotion").split(" "),v=1;v<b.length;v++)a[b[v]]=!0;s.push(p)});var l,u=[e6,t6];process.env.NODE_ENV!=="production"&&u.push(i6({get compat(){return g.compat}}),o6);{var c,d=[Y$,process.env.NODE_ENV!=="production"?function(p){p.root||(p.return?c.insert(p.return):p.value&&p.type!==Kf&&c.insert(p.value+"{}"))}:J$(function(p){c.insert(p)})],h=U$(u.concat(i,d)),f=function(b){return ca(X$(b),h)};l=function(b,v,y,x){c=y,process.env.NODE_ENV!=="production"&&v.map!==void 0&&(c={insert:function(D){y.insert(D+v.map)}}),f(b?b+"{"+v.styles+"}":v.styles),x&&(g.inserted[v.name]=!0)}}var g={key:n,sheet:new T$({key:n,container:o,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:l};return g.sheet.hydrate(s),g},Ed={exports:{}},Ve={};/** @license React v16.13.1
88
88
  * react-is.production.min.js
89
89
  *
90
90
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -107,10 +107,10 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
107
107
  You should wrap it with \`css\` like this:
108
108
 
109
109
  `+("css`"+l+"`"))}break}if(t==null)return n;var u=t[n];return u!==void 0?u:n}function I6(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=ko(e,t,n[i])+";";else for(var a in n){var o=n[a];if(typeof o!="object")t!=null&&t[o]!==void 0?r+=a+"{"+t[o]+"}":Dm(o)&&(r+=bc(a)+":"+Gl(a,o)+";");else{if(a==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(mv);if(Array.isArray(o)&&typeof o[0]=="string"&&(t==null||t[o[0]]===void 0))for(var s=0;s<o.length;s++)Dm(o[s])&&(r+=bc(a)+":"+Gl(a,o[s])+";");else{var l=ko(e,t,o);switch(a){case"animation":case"animationName":{r+=bc(a)+":"+l+";";break}default:process.env.NODE_ENV!=="production"&&a==="undefined"&&console.error(y6),r+=a+"{"+l+"}"}}}}return r}var Em=/label:\s*([^\s;\n{]+)\s*(;|$)/g,pv;process.env.NODE_ENV!=="production"&&(pv=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var An,Mo=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,a="";An=void 0;var o=t[0];o==null||o.raw===void 0?(i=!1,a+=ko(r,n,o)):(process.env.NODE_ENV!=="production"&&o[0]===void 0&&console.error(wm),a+=o[0]);for(var s=1;s<t.length;s++)a+=ko(r,n,t[s]),i&&(process.env.NODE_ENV!=="production"&&o[s]===void 0&&console.error(wm),a+=o[s]);var l;process.env.NODE_ENV!=="production"&&(a=a.replace(pv,function(h){return l=h,""})),Em.lastIndex=0;for(var u="",c;(c=Em.exec(a))!==null;)u+="-"+c[1];var d=p6(a)+u;return process.env.NODE_ENV!=="production"?{name:d,styles:a,map:l,next:An,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:a,next:An}},_6=function(t){return t()},bv=W.useInsertionEffect?W.useInsertionEffect:!1,vv=bv||_6,Im=bv||W.useLayoutEffect,ih={}.hasOwnProperty,ah=W.createContext(typeof HTMLElement<"u"?u6({key:"css"}):null);process.env.NODE_ENV!=="production"&&(ah.displayName="EmotionCacheContext");ah.Provider;var oh=function(t){return w.forwardRef(function(n,r){var i=w.useContext(ah);return t(n,i,r)})},ku=W.createContext({});process.env.NODE_ENV!=="production"&&(ku.displayName="EmotionThemeContext");var _m=function(t){var n=t.split(".");return n[n.length-1]},$6=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])},R6=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),A6=function(t){return t.replace(/\$/g,"-")},F6=function(t){if(t)for(var n=t.split(`
110
- `),r=0;r<n.length;r++){var i=$6(n[r]);if(i){if(R6.has(i))break;if(/^[A-Z]/.test(i))return A6(i)}}},Id="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",_d="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",T6=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)ih.call(n,i)&&(r[i]=n[i]);if(r[Id]=t,process.env.NODE_ENV!=="production"&&n.css&&(typeof n.css!="object"||typeof n.css.name!="string"||n.css.name.indexOf("-")===-1)){var a=F6(new Error().stack);a&&(r[_d]=a)}return r},P6=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return th(n,r,i),vv(function(){return nh(n,r,i)}),null},yv=oh(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[Id],a=[r],o="";typeof e.className=="string"?o=hv(t.registered,a,e.className):e.className!=null&&(o=e.className+" ");var s=Mo(a,void 0,W.useContext(ku));if(process.env.NODE_ENV!=="production"&&s.name.indexOf("-")===-1){var l=e[_d];l&&(s=Mo([s,"label:"+l+";"]))}o+=t.key+"-"+s.name;var u={};for(var c in e)ih.call(e,c)&&c!=="css"&&c!==Id&&(process.env.NODE_ENV==="production"||c!==_d)&&(u[c]=e[c]);return u.ref=n,u.className=o,W.createElement(W.Fragment,null,W.createElement(P6,{cache:t,serialized:s,isStringTag:typeof i=="string"}),W.createElement(i,u))});process.env.NODE_ENV!=="production"&&(yv.displayName="EmotionCssPropInternal");var k6=yv,M6={version:"11.11.4"},de=function(t,n){var r=arguments;if(n==null||!ih.call(n,"css"))return W.createElement.apply(void 0,r);var i=r.length,a=new Array(i);a[0]=k6,a[1]=T6(t,n);for(var o=2;o<i;o++)a[o]=r[o];return W.createElement.apply(null,a)},$m=!1,B6=oh(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=Mo([n],void 0,W.useContext(ku)),i=W.useRef();return Im(function(){var a=t.key+"-global",o=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,l=document.querySelector('style[data-emotion="'+a+" "+r.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),l!==null&&(s=!0,l.setAttribute("data-emotion",a),o.hydrate([l])),i.current=[o,s],function(){o.flush()}},[t]),Im(function(){var a=i.current,o=a[0],s=a[1];if(s){a[1]=!1;return}if(r.next!==void 0&&nh(t,r.next,!0),o.tags.length){var l=o.tags[o.tags.length-1].nextElementSibling;o.before=l,o.flush()}t.insert("",r,o,!1)},[t,r.name]),null});process.env.NODE_ENV!=="production"&&(B6.displayName="EmotionGlobal");function sh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Mo(t)}var O6=function(){var t=sh.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_"}}},N6=function e(t){for(var n=t.length,r=0,i="";r<n;r++){var a=t[r];if(a!=null){var o=void 0;switch(typeof a){case"boolean":break;case"object":{if(Array.isArray(a))o=e(a);else{process.env.NODE_ENV!=="production"&&a.styles!==void 0&&a.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."),o="";for(var s in a)a[s]&&s&&(o&&(o+=" "),o+=s)}break}default:o=a}o&&(i&&(i+=" "),i+=o)}}return i};function V6(e,t,n){var r=[],i=hv(e,r,n);return r.length<2?n:i+t(r)}var L6=function(t){var n=t.cache,r=t.serializedArr;return vv(function(){for(var i=0;i<r.length;i++)nh(n,r[i],!1)}),null},H6=oh(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=Mo(c,t.registered);return r.push(h),th(t,h,!1),t.key+"-"+h.name},a=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 V6(t.registered,i,N6(c))},o={css:i,cx:a,theme:W.useContext(ku)},s=e.children(o);return n=!0,W.createElement(W.Fragment,null,W.createElement(L6,{cache:t,serializedArr:r}),s)});process.env.NODE_ENV!=="production"&&(H6.displayName="EmotionClassNames");if(process.env.NODE_ENV!=="production"){var Rm=!0,j6=typeof jest<"u"||typeof vi<"u";if(Rm&&!j6){var Am=typeof globalThis<"u"?globalThis:Rm?window:global,Fm="__EMOTION_REACT_"+M6.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 W6(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var $d=w.useLayoutEffect,z6=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Xl=function(){};function G6(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function X6(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 a=[].concat(r);if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&a.push("".concat(G6(e,o)));return a.filter(function(s){return s}).map(function(s){return String(s).trim()}).join(" ")}var Tm=function(t){return t9(t)?t.filter(Boolean):$i(t)==="object"&&t!==null?[t]:[]},xv=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=_r(t,z6);return fe({},n)},st=function(t,n,r){var i=t.cx,a=t.getStyles,o=t.getClassNames,s=t.className;return{css:a(n,t),className:i(r??{},o(n,t),s)}};function Mu(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Z6(e){return Mu(e)?window.innerHeight:e.clientHeight}function Cv(e){return Mu(e)?window.pageYOffset:e.scrollTop}function Zl(e,t){if(Mu(e)){window.scrollTo(0,t);return}e.scrollTop=t}function Y6(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 U6(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function Ps(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Xl,i=Cv(e),a=t-i,o=10,s=0;function l(){s+=o;var u=U6(s,i,a,n);Zl(e,u),s<n?window.requestAnimationFrame(l):r(e)}l()}function Pm(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?Zl(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&Zl(e,Math.max(t.offsetTop-i,0))}function J6(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 K6(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var wv=!1,q6={get passive(){return wv=!0}},ks=typeof window<"u"?window:{};ks.addEventListener&&ks.removeEventListener&&(ks.addEventListener("p",Xl,q6),ks.removeEventListener("p",Xl,!1));var Q6=wv;function e9(e){return e!=null}function t9(e){return Array.isArray(e)}function Ms(e,t,n){return e?t:n}var n9=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 a=Object.entries(t).filter(function(o){var s=wr(o,1),l=s[0];return!r.includes(l)});return a.reduce(function(o,s){var l=wr(s,2),u=l[0],c=l[1];return o[u]=c,o},{})},r9=["children","innerProps"],i9=["children","innerProps"];function a9(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,a=e.shouldScroll,o=e.isFixedPosition,s=e.controlHeight,l=Y6(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,p=h.top,b=n.offsetParent.getBoundingClientRect(),v=b.top,y=o?window.innerHeight:Z6(l),x=Cv(l),S=parseInt(getComputedStyle(n).marginBottom,10),D=parseInt(getComputedStyle(n).marginTop,10),$=v-D,F=y-p,m=$+x,C=d-x-p,I=f-y+x+S,E=x+p-D,R=160;switch(i){case"auto":case"bottom":if(F>=g)return{placement:"bottom",maxHeight:t};if(C>=g&&!o)return a&&Ps(l,I,R),{placement:"bottom",maxHeight:t};if(!o&&C>=r||o&&F>=r){a&&Ps(l,I,R);var P=o?F-S:C-S;return{placement:"bottom",maxHeight:P}}if(i==="auto"||o){var A=t,M=o?$:m;return M>=r&&(A=Math.min(M-S-s,t)),{placement:"top",maxHeight:A}}if(i==="bottom")return a&&Zl(l,I),{placement:"bottom",maxHeight:t};break;case"top":if($>=g)return{placement:"top",maxHeight:t};if(m>=g&&!o)return a&&Ps(l,E,R),{placement:"top",maxHeight:t};if(!o&&m>=r||o&&$>=r){var k=t;return(!o&&m>=r||o&&$>=r)&&(k=o?$-D:m-D),a&&Ps(l,E,R),{placement:"top",maxHeight:k}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return u}function o9(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var Dv=function(t){return t==="auto"?"bottom":t},s9=function(t,n){var r,i=t.placement,a=t.theme,o=a.borderRadius,s=a.spacing,l=a.colors;return fe((r={label:"menu"},Ya(r,o9(i),"100%"),Ya(r,"position","absolute"),Ya(r,"width","100%"),Ya(r,"zIndex",1),r),n?{}:{backgroundColor:l.neutral0,borderRadius:o,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})},Sv=w.createContext(null),l9=function(t){var n=t.children,r=t.minMenuHeight,i=t.maxMenuHeight,a=t.menuPlacement,o=t.menuPosition,s=t.menuShouldScrollIntoView,l=t.theme,u=w.useContext(Sv)||{},c=u.setPortalPlacement,d=w.useRef(null),h=w.useState(i),f=wr(h,2),g=f[0],p=f[1],b=w.useState(null),v=wr(b,2),y=v[0],x=v[1],S=l.spacing.controlHeight;return $d(function(){var D=d.current;if(D){var $=o==="fixed",F=s&&!$,m=a9({maxHeight:i,menuEl:D,minHeight:r,placement:a,shouldScroll:F,isFixedPosition:$,controlHeight:S});p(m.maxHeight),x(m.placement),c==null||c(m.placement)}},[i,a,o,s,r,c,S]),n({ref:d,placerProps:fe(fe({},t),{},{placement:y||Dv(a),maxHeight:g})})},u9=function(t){var n=t.children,r=t.innerRef,i=t.innerProps;return de("div",ge({},st(t,"menu",{menu:!0}),{ref:r},i),n)},c9=u9,d9=function(t,n){var r=t.maxHeight,i=t.theme.spacing.baseUnit;return fe({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:i,paddingTop:i})},f9=function(t){var n=t.children,r=t.innerProps,i=t.innerRef,a=t.isMulti;return de("div",ge({},st(t,"menuList",{"menu-list":!0,"menu-list--is-multi":a}),{ref:i},r),n)},Ev=function(t,n){var r=t.theme,i=r.spacing.baseUnit,a=r.colors;return fe({textAlign:"center"},n?{}:{color:a.neutral40,padding:"".concat(i*2,"px ").concat(i*3,"px")})},h9=Ev,g9=Ev,m9=function(t){var n=t.children,r=n===void 0?"No options":n,i=t.innerProps,a=_r(t,r9);return de("div",ge({},st(fe(fe({},a),{},{children:r,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),r)},p9=function(t){var n=t.children,r=n===void 0?"Loading...":n,i=t.innerProps,a=_r(t,i9);return de("div",ge({},st(fe(fe({},a),{},{children:r,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),r)},b9=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}},v9=function(t){var n=t.appendTo,r=t.children,i=t.controlElement,a=t.innerProps,o=t.menuPlacement,s=t.menuPosition,l=w.useRef(null),u=w.useRef(null),c=w.useState(Dv(o)),d=wr(c,2),h=d[0],f=d[1],g=w.useMemo(function(){return{setPortalPlacement:f}},[]),p=w.useState(null),b=wr(p,2),v=b[0],y=b[1],x=w.useCallback(function(){if(i){var F=J6(i),m=s==="fixed"?0:window.pageYOffset,C=F[h]+m;(C!==(v==null?void 0:v.offset)||F.left!==(v==null?void 0:v.rect.left)||F.width!==(v==null?void 0:v.rect.width))&&y({offset:C,rect:F})}},[i,s,h,v==null?void 0:v.offset,v==null?void 0:v.rect.left,v==null?void 0:v.rect.width]);$d(function(){x()},[x]);var S=w.useCallback(function(){typeof u.current=="function"&&(u.current(),u.current=null),i&&l.current&&(u.current=B1(i,l.current,x,{elementResize:"ResizeObserver"in window}))},[i,x]);$d(function(){S()},[S]);var D=w.useCallback(function(F){l.current=F,S()},[S]);if(!n&&s!=="fixed"||!v)return null;var $=de("div",ge({ref:D},st(fe(fe({},t),{},{offset:v.offset,position:s,rect:v.rect}),"menuPortal",{"menu-portal":!0}),a),r);return de(Sv.Provider,{value:g},n?ts.createPortal($,n):$)},y9=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},x9=function(t){var n=t.children,r=t.innerProps,i=t.isDisabled,a=t.isRtl;return de("div",ge({},st(t,"container",{"--is-disabled":i,"--is-rtl":a}),r),n)},C9=function(t,n){var r=t.theme.spacing,i=t.isMulti,a=t.hasValue,o=t.selectProps.controlShouldRenderValue;return fe({alignItems:"center",display:i&&a&&o?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},w9=function(t){var n=t.children,r=t.innerProps,i=t.isMulti,a=t.hasValue;return de("div",ge({},st(t,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":a}),r),n)},D9=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},S9=function(t){var n=t.children,r=t.innerProps;return de("div",ge({},st(t,"indicatorsContainer",{indicators:!0}),r),n)},Mm,E9=["size"],I9=["innerProps","isRtl","size"];function _9(){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 $9=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:_9},Iv=function(t){var n=t.size,r=_r(t,E9);return de("svg",ge({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:$9},r))},lh=function(t){return de(Iv,ge({size:20},t),de("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"}))},_v=function(t){return de(Iv,ge({size:20},t),de("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"}))},$v=function(t,n){var r=t.isFocused,i=t.theme,a=i.spacing.baseUnit,o=i.colors;return fe({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?o.neutral60:o.neutral20,padding:a*2,":hover":{color:r?o.neutral80:o.neutral40}})},R9=$v,A9=function(t){var n=t.children,r=t.innerProps;return de("div",ge({},st(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||de(_v,null))},F9=$v,T9=function(t){var n=t.children,r=t.innerProps;return de("div",ge({},st(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||de(lh,null))},P9=function(t,n){var r=t.isDisabled,i=t.theme,a=i.spacing.baseUnit,o=i.colors;return fe({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?o.neutral10:o.neutral20,marginBottom:a*2,marginTop:a*2})},k9=function(t){var n=t.innerProps;return de("span",ge({},n,st(t,"indicatorSeparator",{"indicator-separator":!0})))},M9=O6(Mm||(Mm=W6([`
110
+ `),r=0;r<n.length;r++){var i=$6(n[r]);if(i){if(R6.has(i))break;if(/^[A-Z]/.test(i))return A6(i)}}},Id="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",_d="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",T6=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)ih.call(n,i)&&(r[i]=n[i]);if(r[Id]=t,process.env.NODE_ENV!=="production"&&n.css&&(typeof n.css!="object"||typeof n.css.name!="string"||n.css.name.indexOf("-")===-1)){var a=F6(new Error().stack);a&&(r[_d]=a)}return r},P6=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return th(n,r,i),vv(function(){return nh(n,r,i)}),null},yv=oh(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[Id],a=[r],o="";typeof e.className=="string"?o=hv(t.registered,a,e.className):e.className!=null&&(o=e.className+" ");var s=Mo(a,void 0,W.useContext(ku));if(process.env.NODE_ENV!=="production"&&s.name.indexOf("-")===-1){var l=e[_d];l&&(s=Mo([s,"label:"+l+";"]))}o+=t.key+"-"+s.name;var u={};for(var c in e)ih.call(e,c)&&c!=="css"&&c!==Id&&(process.env.NODE_ENV==="production"||c!==_d)&&(u[c]=e[c]);return u.ref=n,u.className=o,W.createElement(W.Fragment,null,W.createElement(P6,{cache:t,serialized:s,isStringTag:typeof i=="string"}),W.createElement(i,u))});process.env.NODE_ENV!=="production"&&(yv.displayName="EmotionCssPropInternal");var k6=yv,M6={version:"11.11.4"},de=function(t,n){var r=arguments;if(n==null||!ih.call(n,"css"))return W.createElement.apply(void 0,r);var i=r.length,a=new Array(i);a[0]=k6,a[1]=T6(t,n);for(var o=2;o<i;o++)a[o]=r[o];return W.createElement.apply(null,a)},$m=!1,B6=oh(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=Mo([n],void 0,W.useContext(ku)),i=W.useRef();return Im(function(){var a=t.key+"-global",o=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,l=document.querySelector('style[data-emotion="'+a+" "+r.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),l!==null&&(s=!0,l.setAttribute("data-emotion",a),o.hydrate([l])),i.current=[o,s],function(){o.flush()}},[t]),Im(function(){var a=i.current,o=a[0],s=a[1];if(s){a[1]=!1;return}if(r.next!==void 0&&nh(t,r.next,!0),o.tags.length){var l=o.tags[o.tags.length-1].nextElementSibling;o.before=l,o.flush()}t.insert("",r,o,!1)},[t,r.name]),null});process.env.NODE_ENV!=="production"&&(B6.displayName="EmotionGlobal");function sh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Mo(t)}var O6=function(){var t=sh.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_"}}},N6=function e(t){for(var n=t.length,r=0,i="";r<n;r++){var a=t[r];if(a!=null){var o=void 0;switch(typeof a){case"boolean":break;case"object":{if(Array.isArray(a))o=e(a);else{process.env.NODE_ENV!=="production"&&a.styles!==void 0&&a.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."),o="";for(var s in a)a[s]&&s&&(o&&(o+=" "),o+=s)}break}default:o=a}o&&(i&&(i+=" "),i+=o)}}return i};function V6(e,t,n){var r=[],i=hv(e,r,n);return r.length<2?n:i+t(r)}var L6=function(t){var n=t.cache,r=t.serializedArr;return vv(function(){for(var i=0;i<r.length;i++)nh(n,r[i],!1)}),null},H6=oh(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=Mo(c,t.registered);return r.push(h),th(t,h,!1),t.key+"-"+h.name},a=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 V6(t.registered,i,N6(c))},o={css:i,cx:a,theme:W.useContext(ku)},s=e.children(o);return n=!0,W.createElement(W.Fragment,null,W.createElement(L6,{cache:t,serializedArr:r}),s)});process.env.NODE_ENV!=="production"&&(H6.displayName="EmotionClassNames");if(process.env.NODE_ENV!=="production"){var Rm=!0,j6=typeof jest<"u"||typeof vi<"u";if(Rm&&!j6){var Am=typeof globalThis<"u"?globalThis:Rm?window:global,Fm="__EMOTION_REACT_"+M6.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 W6(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var $d=w.useLayoutEffect,z6=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Xl=function(){};function G6(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function X6(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 a=[].concat(r);if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&a.push("".concat(G6(e,o)));return a.filter(function(s){return s}).map(function(s){return String(s).trim()}).join(" ")}var Tm=function(t){return t9(t)?t.filter(Boolean):Ri(t)==="object"&&t!==null?[t]:[]},xv=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=_r(t,z6);return fe({},n)},st=function(t,n,r){var i=t.cx,a=t.getStyles,o=t.getClassNames,s=t.className;return{css:a(n,t),className:i(r??{},o(n,t),s)}};function Mu(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Z6(e){return Mu(e)?window.innerHeight:e.clientHeight}function Cv(e){return Mu(e)?window.pageYOffset:e.scrollTop}function Zl(e,t){if(Mu(e)){window.scrollTo(0,t);return}e.scrollTop=t}function Y6(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 U6(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function Ps(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Xl,i=Cv(e),a=t-i,o=10,s=0;function l(){s+=o;var u=U6(s,i,a,n);Zl(e,u),s<n?window.requestAnimationFrame(l):r(e)}l()}function Pm(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?Zl(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&Zl(e,Math.max(t.offsetTop-i,0))}function J6(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 K6(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var wv=!1,q6={get passive(){return wv=!0}},ks=typeof window<"u"?window:{};ks.addEventListener&&ks.removeEventListener&&(ks.addEventListener("p",Xl,q6),ks.removeEventListener("p",Xl,!1));var Q6=wv;function e9(e){return e!=null}function t9(e){return Array.isArray(e)}function Ms(e,t,n){return e?t:n}var n9=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 a=Object.entries(t).filter(function(o){var s=wr(o,1),l=s[0];return!r.includes(l)});return a.reduce(function(o,s){var l=wr(s,2),u=l[0],c=l[1];return o[u]=c,o},{})},r9=["children","innerProps"],i9=["children","innerProps"];function a9(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,a=e.shouldScroll,o=e.isFixedPosition,s=e.controlHeight,l=Y6(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,p=h.top,b=n.offsetParent.getBoundingClientRect(),v=b.top,y=o?window.innerHeight:Z6(l),x=Cv(l),S=parseInt(getComputedStyle(n).marginBottom,10),D=parseInt(getComputedStyle(n).marginTop,10),$=v-D,F=y-p,m=$+x,C=d-x-p,I=f-y+x+S,E=x+p-D,R=160;switch(i){case"auto":case"bottom":if(F>=g)return{placement:"bottom",maxHeight:t};if(C>=g&&!o)return a&&Ps(l,I,R),{placement:"bottom",maxHeight:t};if(!o&&C>=r||o&&F>=r){a&&Ps(l,I,R);var P=o?F-S:C-S;return{placement:"bottom",maxHeight:P}}if(i==="auto"||o){var A=t,M=o?$:m;return M>=r&&(A=Math.min(M-S-s,t)),{placement:"top",maxHeight:A}}if(i==="bottom")return a&&Zl(l,I),{placement:"bottom",maxHeight:t};break;case"top":if($>=g)return{placement:"top",maxHeight:t};if(m>=g&&!o)return a&&Ps(l,E,R),{placement:"top",maxHeight:t};if(!o&&m>=r||o&&$>=r){var k=t;return(!o&&m>=r||o&&$>=r)&&(k=o?$-D:m-D),a&&Ps(l,E,R),{placement:"top",maxHeight:k}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return u}function o9(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var Dv=function(t){return t==="auto"?"bottom":t},s9=function(t,n){var r,i=t.placement,a=t.theme,o=a.borderRadius,s=a.spacing,l=a.colors;return fe((r={label:"menu"},Ya(r,o9(i),"100%"),Ya(r,"position","absolute"),Ya(r,"width","100%"),Ya(r,"zIndex",1),r),n?{}:{backgroundColor:l.neutral0,borderRadius:o,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})},Sv=w.createContext(null),l9=function(t){var n=t.children,r=t.minMenuHeight,i=t.maxMenuHeight,a=t.menuPlacement,o=t.menuPosition,s=t.menuShouldScrollIntoView,l=t.theme,u=w.useContext(Sv)||{},c=u.setPortalPlacement,d=w.useRef(null),h=w.useState(i),f=wr(h,2),g=f[0],p=f[1],b=w.useState(null),v=wr(b,2),y=v[0],x=v[1],S=l.spacing.controlHeight;return $d(function(){var D=d.current;if(D){var $=o==="fixed",F=s&&!$,m=a9({maxHeight:i,menuEl:D,minHeight:r,placement:a,shouldScroll:F,isFixedPosition:$,controlHeight:S});p(m.maxHeight),x(m.placement),c==null||c(m.placement)}},[i,a,o,s,r,c,S]),n({ref:d,placerProps:fe(fe({},t),{},{placement:y||Dv(a),maxHeight:g})})},u9=function(t){var n=t.children,r=t.innerRef,i=t.innerProps;return de("div",ge({},st(t,"menu",{menu:!0}),{ref:r},i),n)},c9=u9,d9=function(t,n){var r=t.maxHeight,i=t.theme.spacing.baseUnit;return fe({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:i,paddingTop:i})},f9=function(t){var n=t.children,r=t.innerProps,i=t.innerRef,a=t.isMulti;return de("div",ge({},st(t,"menuList",{"menu-list":!0,"menu-list--is-multi":a}),{ref:i},r),n)},Ev=function(t,n){var r=t.theme,i=r.spacing.baseUnit,a=r.colors;return fe({textAlign:"center"},n?{}:{color:a.neutral40,padding:"".concat(i*2,"px ").concat(i*3,"px")})},h9=Ev,g9=Ev,m9=function(t){var n=t.children,r=n===void 0?"No options":n,i=t.innerProps,a=_r(t,r9);return de("div",ge({},st(fe(fe({},a),{},{children:r,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),r)},p9=function(t){var n=t.children,r=n===void 0?"Loading...":n,i=t.innerProps,a=_r(t,i9);return de("div",ge({},st(fe(fe({},a),{},{children:r,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),r)},b9=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}},v9=function(t){var n=t.appendTo,r=t.children,i=t.controlElement,a=t.innerProps,o=t.menuPlacement,s=t.menuPosition,l=w.useRef(null),u=w.useRef(null),c=w.useState(Dv(o)),d=wr(c,2),h=d[0],f=d[1],g=w.useMemo(function(){return{setPortalPlacement:f}},[]),p=w.useState(null),b=wr(p,2),v=b[0],y=b[1],x=w.useCallback(function(){if(i){var F=J6(i),m=s==="fixed"?0:window.pageYOffset,C=F[h]+m;(C!==(v==null?void 0:v.offset)||F.left!==(v==null?void 0:v.rect.left)||F.width!==(v==null?void 0:v.rect.width))&&y({offset:C,rect:F})}},[i,s,h,v==null?void 0:v.offset,v==null?void 0:v.rect.left,v==null?void 0:v.rect.width]);$d(function(){x()},[x]);var S=w.useCallback(function(){typeof u.current=="function"&&(u.current(),u.current=null),i&&l.current&&(u.current=B1(i,l.current,x,{elementResize:"ResizeObserver"in window}))},[i,x]);$d(function(){S()},[S]);var D=w.useCallback(function(F){l.current=F,S()},[S]);if(!n&&s!=="fixed"||!v)return null;var $=de("div",ge({ref:D},st(fe(fe({},t),{},{offset:v.offset,position:s,rect:v.rect}),"menuPortal",{"menu-portal":!0}),a),r);return de(Sv.Provider,{value:g},n?ts.createPortal($,n):$)},y9=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},x9=function(t){var n=t.children,r=t.innerProps,i=t.isDisabled,a=t.isRtl;return de("div",ge({},st(t,"container",{"--is-disabled":i,"--is-rtl":a}),r),n)},C9=function(t,n){var r=t.theme.spacing,i=t.isMulti,a=t.hasValue,o=t.selectProps.controlShouldRenderValue;return fe({alignItems:"center",display:i&&a&&o?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},w9=function(t){var n=t.children,r=t.innerProps,i=t.isMulti,a=t.hasValue;return de("div",ge({},st(t,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":a}),r),n)},D9=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},S9=function(t){var n=t.children,r=t.innerProps;return de("div",ge({},st(t,"indicatorsContainer",{indicators:!0}),r),n)},Mm,E9=["size"],I9=["innerProps","isRtl","size"];function _9(){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 $9=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:_9},Iv=function(t){var n=t.size,r=_r(t,E9);return de("svg",ge({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:$9},r))},lh=function(t){return de(Iv,ge({size:20},t),de("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"}))},_v=function(t){return de(Iv,ge({size:20},t),de("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"}))},$v=function(t,n){var r=t.isFocused,i=t.theme,a=i.spacing.baseUnit,o=i.colors;return fe({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?o.neutral60:o.neutral20,padding:a*2,":hover":{color:r?o.neutral80:o.neutral40}})},R9=$v,A9=function(t){var n=t.children,r=t.innerProps;return de("div",ge({},st(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||de(_v,null))},F9=$v,T9=function(t){var n=t.children,r=t.innerProps;return de("div",ge({},st(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||de(lh,null))},P9=function(t,n){var r=t.isDisabled,i=t.theme,a=i.spacing.baseUnit,o=i.colors;return fe({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?o.neutral10:o.neutral20,marginBottom:a*2,marginTop:a*2})},k9=function(t){var n=t.innerProps;return de("span",ge({},n,st(t,"indicatorSeparator",{"indicator-separator":!0})))},M9=O6(Mm||(Mm=W6([`
111
111
  0%, 80%, 100% { opacity: 0; }
112
112
  40% { opacity: 1; }
113
- `]))),B9=function(t,n){var r=t.isFocused,i=t.size,a=t.theme,o=a.colors,s=a.spacing.baseUnit;return fe({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?o.neutral60:o.neutral20,padding:s*2})},vc=function(t){var n=t.delay,r=t.offset;return de("span",{css:sh({animation:"".concat(M9," 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 */")})},O9=function(t){var n=t.innerProps,r=t.isRtl,i=t.size,a=i===void 0?4:i,o=_r(t,I9);return de("div",ge({},st(fe(fe({},o),{},{innerProps:n,isRtl:r,size:a}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),de(vc,{delay:0,offset:r}),de(vc,{delay:160,offset:!0}),de(vc,{delay:320,offset:!r}))},N9=function(t,n){var r=t.isDisabled,i=t.isFocused,a=t.theme,o=a.colors,s=a.borderRadius,l=a.spacing;return fe({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?o.neutral5:o.neutral0,borderColor:r?o.neutral10:i?o.primary:o.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(o.primary):void 0,"&:hover":{borderColor:i?o.primary:o.neutral30}})},V9=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,a=t.innerRef,o=t.innerProps,s=t.menuIsOpen;return de("div",ge({ref:a},st(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":i,"control--menu-is-open":s}),o,{"aria-disabled":r||void 0}),n)},L9=V9,H9=["data"],j9=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},W9=function(t){var n=t.children,r=t.cx,i=t.getStyles,a=t.getClassNames,o=t.Heading,s=t.headingProps,l=t.innerProps,u=t.label,c=t.theme,d=t.selectProps;return de("div",ge({},st(t,"group",{group:!0}),l),de(o,ge({},s,{selectProps:d,theme:c,getStyles:i,getClassNames:a,cx:r}),u),de("div",null,n))},z9=function(t,n){var r=t.theme,i=r.colors,a=r.spacing;return fe({label:"group",cursor:"default",display:"block"},n?{}:{color:i.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:a.baseUnit*3,paddingRight:a.baseUnit*3,textTransform:"uppercase"})},G9=function(t){var n=xv(t);n.data;var r=_r(n,H9);return de("div",ge({},st(t,"groupHeading",{"group-heading":!0}),r))},X9=W9,Z9=["innerRef","isDisabled","isHidden","inputClassName"],Y9=function(t,n){var r=t.isDisabled,i=t.value,a=t.theme,o=a.spacing,s=a.colors;return fe(fe({visibility:r?"hidden":"visible",transform:i?"translateZ(0)":""},U9),n?{}:{margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,color:s.neutral80})},Rv={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},U9={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":fe({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Rv)},J9=function(t){return fe({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},Rv)},K9=function(t){var n=t.cx,r=t.value,i=xv(t),a=i.innerRef,o=i.isDisabled,s=i.isHidden,l=i.inputClassName,u=_r(i,Z9);return de("div",ge({},st(t,"input",{"input-container":!0}),{"data-value":r||""}),de("input",ge({className:n({input:!0},l),ref:a,style:J9(s),disabled:o},u)))},q9=K9,Q9=function(t,n){var r=t.theme,i=r.spacing,a=r.borderRadius,o=r.colors;return fe({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:o.neutral10,borderRadius:a/2,margin:i.baseUnit/2})},eR=function(t,n){var r=t.theme,i=r.borderRadius,a=r.colors,o=t.cropWithEllipsis;return fe({overflow:"hidden",textOverflow:o||o===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:i/2,color:a.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},tR=function(t,n){var r=t.theme,i=r.spacing,a=r.borderRadius,o=r.colors,s=t.isFocused;return fe({alignItems:"center",display:"flex"},n?{}:{borderRadius:a/2,backgroundColor:s?o.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}})},Av=function(t){var n=t.children,r=t.innerProps;return de("div",r,n)},nR=Av,rR=Av;function iR(e){var t=e.children,n=e.innerProps;return de("div",ge({role:"button"},n),t||de(lh,{size:14}))}var aR=function(t){var n=t.children,r=t.components,i=t.data,a=t.innerProps,o=t.isDisabled,s=t.removeProps,l=t.selectProps,u=r.Container,c=r.Label,d=r.Remove;return de(u,{data:i,innerProps:fe(fe({},st(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":o})),a),selectProps:l},de(c,{data:i,innerProps:fe({},st(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},n),de(d,{data:i,innerProps:fe(fe({},st(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},s),selectProps:l}))},oR=aR,sR=function(t,n){var r=t.isDisabled,i=t.isFocused,a=t.isSelected,o=t.theme,s=o.spacing,l=o.colors;return fe({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:a?l.primary:i?l.primary25:"transparent",color:r?l.neutral20:a?l.neutral0:"inherit",padding:"".concat(s.baseUnit*2,"px ").concat(s.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:a?l.primary:l.primary50}})},lR=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,a=t.isSelected,o=t.innerRef,s=t.innerProps;return de("div",ge({},st(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":i,"option--is-selected":a}),{ref:o,"aria-disabled":r},s),n)},uR=lR,cR=function(t,n){var r=t.theme,i=r.spacing,a=r.colors;return fe({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:a.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},dR=function(t){var n=t.children,r=t.innerProps;return de("div",ge({},st(t,"placeholder",{placeholder:!0}),r),n)},fR=dR,hR=function(t,n){var r=t.isDisabled,i=t.theme,a=i.spacing,o=i.colors;return fe({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?o.neutral40:o.neutral80,marginLeft:a.baseUnit/2,marginRight:a.baseUnit/2})},gR=function(t){var n=t.children,r=t.isDisabled,i=t.innerProps;return de("div",ge({},st(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),i),n)},mR=gR,Fv={ClearIndicator:T9,Control:L9,DropdownIndicator:A9,DownChevron:_v,CrossIcon:lh,Group:X9,GroupHeading:G9,IndicatorsContainer:S9,IndicatorSeparator:k9,Input:q9,LoadingIndicator:O9,Menu:c9,MenuList:f9,MenuPortal:v9,LoadingMessage:p9,NoOptionsMessage:m9,MultiValue:oR,MultiValueContainer:nR,MultiValueLabel:rR,MultiValueRemove:iR,Option:uR,Placeholder:fR,SelectContainer:x9,SingleValue:mR,ValueContainer:w9},pR=function(t){return fe(fe({},Fv),t.components)},Bm=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function bR(e,t){return!!(e===t||Bm(e)&&Bm(t))}function vR(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!bR(e[n],t[n]))return!1;return!0}function yR(e,t){t===void 0&&(t=vR);var n=null;function r(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];if(n&&n.lastThis===this&&t(i,n.lastArgs))return n.lastResult;var o=e.apply(this,i);return n={lastResult:o,lastArgs:i,lastThis:this},o}return r.clear=function(){n=null},r}function xR(){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 CR=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:xR},wR=function(t){return de("span",ge({css:CR},t))},Om=wR,DR={guidance:function(t){var n=t.isSearchable,r=t.isMulti,i=t.tabSelectsValue,a=t.context,o=t.isInitialFocus;switch(a){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 o?"".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,a=t.labels,o=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(a.length>1?"s":""," ").concat(a.join(","),", selected.");case"select-option":return o?"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,a=t.label,o=a===void 0?"":a,s=t.selectValue,l=t.isDisabled,u=t.isSelected,c=t.isAppleDevice,d=function(p,b){return p&&p.length?"".concat(p.indexOf(b)+1," of ").concat(p.length):""};if(n==="value"&&s)return"value ".concat(o," focused, ").concat(d(s,r),".");if(n==="menu"&&c){var h=l?" disabled":"",f="".concat(u?" selected":"").concat(h);return"".concat(o).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:"",".")}},SR=function(t){var n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,a=t.focusableOptions,o=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,p=l.isOptionDisabled,b=l.isSearchable,v=l.menuIsOpen,y=l.options,x=l.screenReaderStatus,S=l.tabSelectsValue,D=l.isLoading,$=l["aria-label"],F=l["aria-live"],m=w.useMemo(function(){return fe(fe({},DR),d||{})},[d]),C=w.useMemo(function(){var M="";if(n&&m.onChange){var k=n.option,T=n.options,B=n.removedValue,O=n.removedValues,L=n.value,j=function(K){return Array.isArray(K)?null:K},z=B||k||j(L),Y=z?h(z):"",G=T||O||void 0,H=G?G.map(h):[],V=fe({isDisabled:z&&p(z,s),label:Y,labels:H},n);M=m.onChange(V)}return M},[n,m,p,s,h]),I=w.useMemo(function(){var M="",k=r||i,T=!!(r&&s&&s.includes(r));if(k&&m.onFocus){var B={focused:k,label:h(k),isDisabled:p(k,s),isSelected:T,options:a,context:k===r?"menu":"value",selectValue:s,isAppleDevice:c};M=m.onFocus(B)}return M},[r,i,h,p,m,a,s,c]),E=w.useMemo(function(){var M="";if(v&&y.length&&!D&&m.onFilter){var k=x({count:a.length});M=m.onFilter({inputValue:f,resultsMessage:k})}return M},[a,f,v,m,y,x,D]),R=(n==null?void 0:n.action)==="initial-input-focus",P=w.useMemo(function(){var M="";if(m.guidance){var k=i?"value":v?"menu":"input";M=m.guidance({"aria-label":$,context:k,isDisabled:r&&p(r,s),isMulti:g,isSearchable:b,tabSelectsValue:S,isInitialFocus:R})}return M},[$,r,i,g,p,b,v,m,s,S,R]),A=de(w.Fragment,null,de("span",{id:"aria-selection"},C),de("span",{id:"aria-focused"},I),de("span",{id:"aria-results"},E),de("span",{id:"aria-guidance"},P));return de(w.Fragment,null,de(Om,{id:u},R&&A),de(Om,{"aria-live":F,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},o&&!R&&A))},ER=SR,Rd=[{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źẑżžẓẕƶȥɀⱬꝣ"}],IR=new RegExp("["+Rd.map(function(e){return e.letters}).join("")+"]","g"),Tv={};for(var yc=0;yc<Rd.length;yc++)for(var xc=Rd[yc],Cc=0;Cc<xc.letters.length;Cc++)Tv[xc.letters[Cc]]=xc.base;var Pv=function(t){return t.replace(IR,function(n){return Tv[n]})},_R=yR(Pv),Nm=function(t){return t.replace(/^\s+|\s+$/g,"")},$R=function(t){return"".concat(t.label," ").concat(t.value)},RR=function(t){return function(n,r){if(n.data.__isNew__)return!0;var i=fe({ignoreCase:!0,ignoreAccents:!0,stringify:$R,trim:!0,matchFrom:"any"},t),a=i.ignoreCase,o=i.ignoreAccents,s=i.stringify,l=i.trim,u=i.matchFrom,c=l?Nm(r):r,d=l?Nm(s(n)):s(n);return a&&(c=c.toLowerCase(),d=d.toLowerCase()),o&&(c=_R(c),d=Pv(d)),u==="start"?d.substr(0,c.length)===c:d.indexOf(c)>-1}},AR=["innerRef"];function FR(e){var t=e.innerRef,n=_r(e,AR),r=n9(n,"onExited","in","enter","exit","appear");return de("input",ge({ref:t},r,{css:sh({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 TR=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function PR(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,a=e.onTopLeave,o=w.useRef(!1),s=w.useRef(!1),l=w.useRef(0),u=w.useRef(null),c=w.useCallback(function(b,v){if(u.current!==null){var y=u.current,x=y.scrollTop,S=y.scrollHeight,D=y.clientHeight,$=u.current,F=v>0,m=S-D-x,C=!1;m>v&&o.current&&(r&&r(b),o.current=!1),F&&s.current&&(a&&a(b),s.current=!1),F&&v>m?(n&&!o.current&&n(b),$.scrollTop=S,C=!0,o.current=!0):!F&&-v>x&&(i&&!s.current&&i(b),$.scrollTop=0,C=!0,s.current=!0),C&&TR(b)}},[n,r,i,a]),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 v=l.current-b.changedTouches[0].clientY;c(b,v)},[c]),g=w.useCallback(function(b){if(b){var v=Q6?{passive:!1}:!1;b.addEventListener("wheel",d,v),b.addEventListener("touchstart",h,v),b.addEventListener("touchmove",f,v)}},[f,h,d]),p=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(){p(b)}}},[t,g,p]),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),Oa=0,Xi={capture:!1,passive:!1};function kR(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,i=w.useRef({}),a=w.useRef(null),o=w.useCallback(function(l){if(Gm){var u=document.body,c=u&&u.style;if(r&&Vm.forEach(function(g){var p=c&&c[g];i.current[g]=p}),r&&Oa<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 p=Lm[g];c&&(c[g]=p)}),c&&(c.paddingRight="".concat(f,"px"))}u&&zm()&&(u.addEventListener("touchmove",Hm,Xi),l&&(l.addEventListener("touchstart",Wm,Xi),l.addEventListener("touchmove",jm,Xi))),Oa+=1}},[r]),s=w.useCallback(function(l){if(Gm){var u=document.body,c=u&&u.style;Oa=Math.max(Oa-1,0),r&&Oa<1&&Vm.forEach(function(d){var h=i.current[d];c&&(c[d]=h)}),u&&zm()&&(u.removeEventListener("touchmove",Hm,Xi),l&&(l.removeEventListener("touchstart",Wm,Xi),l.removeEventListener("touchmove",jm,Xi)))}},[r]);return w.useEffect(function(){if(t){var l=a.current;return o(l),function(){s(l)}}},[t,o,s]),function(l){a.current=l}}function MR(){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 BR=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},OR=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:MR};function NR(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=r===void 0?!0:r,a=e.onBottomArrive,o=e.onBottomLeave,s=e.onTopArrive,l=e.onTopLeave,u=PR({isEnabled:i,onBottomArrive:a,onBottomLeave:o,onTopArrive:s,onTopLeave:l}),c=kR({isEnabled:n}),d=function(f){u(f),c(f)};return de(w.Fragment,null,n&&de("div",{onClick:BR,css:OR}),t(d))}function VR(){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 LR=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:VR},HR=function(t){var n=t.name,r=t.onFocus;return de("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:LR,value:"",onChange:function(){}})},jR=HR;function uh(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 WR(){return uh(/^iPhone/i)}function kv(){return uh(/^Mac/i)}function zR(){return uh(/^iPad/i)||kv()&&navigator.maxTouchPoints>1}function GR(){return WR()||zR()}function XR(){return kv()||GR()}var ZR=function(t){return t.label},YR=function(t){return t.label},UR=function(t){return t.value},JR=function(t){return!!t.isDisabled},KR={clearIndicator:F9,container:y9,control:N9,dropdownIndicator:R9,group:j9,groupHeading:z9,indicatorsContainer:D9,indicatorSeparator:P9,input:Y9,loadingIndicator:B9,loadingMessage:g9,menu:s9,menuList:d9,menuPortal:b9,multiValue:Q9,multiValueLabel:eR,multiValueRemove:tR,noOptionsMessage:h9,option:sR,placeholder:cR,singleValue:hR,valueContainer:C9},qR={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%)"},QR=4,Mv=4,eA=38,tA=Mv*2,nA={baseUnit:Mv,controlHeight:eA,menuGutter:tA},wc={borderRadius:QR,colors:qR,spacing:nA},rA={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:km(),captureMenuScroll:!km(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:RR(),formatGroupLabel:ZR,getOptionLabel:YR,getOptionValue:UR,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:JR,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!K6(),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 Xm(e,t,n,r){var i=Nv(e,t,n),a=Vv(e,t,n),o=Ov(e,t),s=Yl(e,t);return{type:"option",data:t,isDisabled:i,isSelected:a,label:o,value:s,index:r}}function pl(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(o,s){return Xm(e,o,t,s)}).filter(function(o){return Ym(e,o)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var a=Xm(e,n,t,r);return Ym(e,a)?a:void 0}).filter(e9)}function Bv(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,Jf(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function Zm(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,Jf(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 iA(e,t){return Bv(pl(e,t))}function Ym(e,t){var n=e.inputValue,r=n===void 0?"":n,i=t.data,a=t.isSelected,o=t.label,s=t.value;return(!Hv(e)||!a)&&Lv(e,{label:o,value:s,data:i},r)}function aA(e,t){var n=e.focusedValue,r=e.selectValue,i=r.indexOf(n);if(i>-1){var a=t.indexOf(n);if(a>-1)return n;if(i<t.length)return t[i]}return null}function oA(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var Dc=function(t,n){var r,i=(r=t.find(function(a){return a.data===n}))===null||r===void 0?void 0:r.id;return i||null},Ov=function(t,n){return t.getOptionLabel(n)},Yl=function(t,n){return t.getOptionValue(n)};function Nv(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function Vv(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=Yl(e,t);return n.some(function(i){return Yl(e,i)===r})}function Lv(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var Hv=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},sA=1,jv=function(e){D$(n,e);var t=I$(n);function n(r){var i;if(C$(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=XR(),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),p=i.isOptionDisabled(l,f);if(g){var b=i.getOptionValue(l);i.setValue(f.filter(function(v){return i.getOptionValue(v)!==b}),"deselect-option",l)}else if(!p)d?i.setValue([].concat(Jf(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=Ms(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(Ms(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=Ms(l,d,d[0]||null);i.onChange(h,{action:"pop-value",removedValue:c})},i.getFocusedOptionId=function(l){return Dc(i.state.focusableOptionsWithIds,l)},i.getFocusableOptionsWithIds=function(){return Zm(pl(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 X6.apply(void 0,[i.props.classNamePrefix].concat(u))},i.getOptionLabel=function(l){return Ov(i.props,l)},i.getOptionValue=function(l){return Yl(i.props,l)},i.getStyles=function(l,u){var c=i.props.unstyled,d=KR[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 pR(i.props)},i.buildCategorizedOptions=function(){return pl(i.props,i.state.selectValue)},i.getCategorizedOptions=function(){return i.props.menuIsOpen?i.buildCategorizedOptions():[]},i.buildFocusableOptions=function(){return Bv(i.buildCategorizedOptions())},i.getFocusableOptions=function(){return i.props.menuIsOpen?i.buildFocusableOptions():[]},i.ariaOnChange=function(l,u){i.setState({ariaSelection:fe({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&&Mu(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 Hv(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,p=u.isDisabled,b=u.menuIsOpen,v=u.onKeyDown,y=u.tabSelectsValue,x=u.openMenuOnFocus,S=i.state,D=S.focusedOption,$=S.focusedValue,F=S.selectValue;if(!p&&!(typeof v=="function"&&(v(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.removeValue($);else{if(!d)return;c?i.popValue():g&&i.clearValue()}break;case"Tab":if(i.isComposing||l.shiftKey||!b||!y||!D||x&&i.isOptionSelected(D,F))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||++sA),i.state.selectValue=Tm(r.value),r.menuIsOpen&&i.state.selectValue.length){var a=i.getFocusableOptionsWithIds(),o=i.buildFocusableOptions(),s=o.indexOf(i.state.selectValue[0]);i.state.focusableOptionsWithIds=a,i.state.focusedOption=o[s],i.state.focusedOptionId=Dc(a,o[s])}return i}return w$(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&&Pm(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isDisabled,s=a.menuIsOpen,l=this.state.isFocused;(l&&!o&&i.isDisabled||l&&s&&!i.menuIsOpen)&&this.focusInput(),l&&o&&!i.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!o&&i.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Pm(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,a){this.props.onInputChange(i,a)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(i){var a=this,o=this.state,s=o.selectValue,l=o.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 a.onMenuOpen()})}},{key:"focusValue",value:function(i){var a=this.state,o=a.selectValue,s=a.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var l=o.indexOf(s);s||(l=-1);var u=o.length-1,c=-1;if(o.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:o[c]})}}}},{key:"focusOption",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",a=this.props.pageSize,o=this.state.focusedOption,s=this.getFocusableOptions();if(s.length){var l=0,u=s.indexOf(o);o||(u=-1),i==="up"?l=u>0?u-1:s.length-1:i==="down"?l=(u+1)%s.length:i==="pageup"?(l=u-a,l<0&&(l=0)):i==="pagedown"?(l=u+a,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(wc):fe(fe({},wc),this.props.theme):wc}},{key:"getCommonProps",value:function(){var i=this.clearValue,a=this.cx,o=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,p=this.hasValue();return{clearValue:i,cx:a,getStyles:o,getClassNames:s,getValue:l,hasValue:p,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,a=i.isClearable,o=i.isMulti;return a===void 0?o:a}},{key:"isOptionDisabled",value:function(i,a){return Nv(this.props,i,a)}},{key:"isOptionSelected",value:function(i,a){return Vv(this.props,i,a)}},{key:"filterOption",value:function(i,a){return Lv(this.props,i,a)}},{key:"formatOptionLabel",value:function(i,a){if(typeof this.props.formatOptionLabel=="function"){var o=this.props.inputValue,s=this.state.selectValue;return this.props.formatOptionLabel(i,{context:a,inputValue:o,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,a=i.isDisabled,o=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,p=this.state,b=p.inputIsHidden,v=p.ariaSelection,y=this.commonProps,x=s||this.getElementId("input"),S=fe(fe(fe({"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")}),!o&&{"aria-readonly":!0}),this.hasValue()?(v==null?void 0:v.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return o?W.createElement(g,ge({},y,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:x,innerRef:this.getInputRef,isDisabled:a,isHidden:b,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:c,type:"text",value:l},S)):W.createElement(FR,ge({id:x,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Xl,onFocus:this.onInputFocus,disabled:a,tabIndex:u,inputMode:"none",form:c,value:""},S))}},{key:"renderPlaceholderOrValue",value:function(){var i=this,a=this.getComponents(),o=a.MultiValue,s=a.MultiValueContainer,l=a.MultiValueLabel,u=a.MultiValueRemove,c=a.SingleValue,d=a.Placeholder,h=this.commonProps,f=this.props,g=f.controlShouldRenderValue,p=f.isDisabled,b=f.isMulti,v=f.inputValue,y=f.placeholder,x=this.state,S=x.selectValue,D=x.focusedValue,$=x.isFocused;if(!this.hasValue()||!g)return v?null:W.createElement(d,ge({},h,{key:"placeholder",isDisabled:p,isFocused:$,innerProps:{id:this.getElementId("placeholder")}}),y);if(b)return S.map(function(m,C){var I=m===D,E="".concat(i.getOptionLabel(m),"-").concat(i.getOptionValue(m));return W.createElement(o,ge({},h,{components:{Container:s,Label:l,Remove:u},isFocused:I,isDisabled:p,key:E,index:C,removeProps:{onClick:function(){return i.removeValue(m)},onTouchEnd:function(){return i.removeValue(m)},onMouseDown:function(P){P.preventDefault()}},data:m}),i.formatOptionLabel(m,"value"))});if(v)return null;var F=S[0];return W.createElement(c,ge({},h,{data:F,isDisabled:p}),this.formatOptionLabel(F,"value"))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),a=i.ClearIndicator,o=this.commonProps,s=this.props,l=s.isDisabled,u=s.isLoading,c=this.state.isFocused;if(!this.isClearable()||!a||l||!this.hasValue()||u)return null;var d={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return W.createElement(a,ge({},o,{innerProps:d,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),a=i.LoadingIndicator,o=this.commonProps,s=this.props,l=s.isDisabled,u=s.isLoading,c=this.state.isFocused;if(!a||!u)return null;var d={"aria-hidden":"true"};return W.createElement(a,ge({},o,{innerProps:d,isDisabled:l,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),a=i.DropdownIndicator,o=i.IndicatorSeparator;if(!a||!o)return null;var s=this.commonProps,l=this.props.isDisabled,u=this.state.isFocused;return W.createElement(o,ge({},s,{isDisabled:l,isFocused:u}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),a=i.DropdownIndicator;if(!a)return null;var o=this.commonProps,s=this.props.isDisabled,l=this.state.isFocused,u={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return W.createElement(a,ge({},o,{innerProps:u,isDisabled:s,isFocused:l}))}},{key:"renderMenu",value:function(){var i=this,a=this.getComponents(),o=a.Group,s=a.GroupHeading,l=a.Menu,u=a.MenuList,c=a.MenuPortal,d=a.LoadingMessage,h=a.NoOptionsMessage,f=a.Option,g=this.commonProps,p=this.state.focusedOption,b=this.props,v=b.captureMenuScroll,y=b.inputValue,x=b.isLoading,S=b.loadingMessage,D=b.minMenuHeight,$=b.maxMenuHeight,F=b.menuIsOpen,m=b.menuPlacement,C=b.menuPosition,I=b.menuPortalTarget,E=b.menuShouldBlockScroll,R=b.menuShouldScrollIntoView,P=b.noOptionsMessage,A=b.onMenuScrollToTop,M=b.onMenuScrollToBottom;if(!F)return null;var k=function(Y,G){var H=Y.type,V=Y.data,X=Y.isDisabled,K=Y.isSelected,te=Y.label,ue=Y.value,ie=p===V,Z=X?void 0:function(){return i.onOptionHover(V)},me=X?void 0:function(){return i.selectOption(V)},he="".concat(i.getElementId("option"),"-").concat(G),ce={id:he,onClick:me,onMouseMove:Z,onMouseOver:Z,tabIndex:-1,role:"option","aria-selected":i.isAppleDevice?void 0:K};return W.createElement(f,ge({},g,{innerProps:ce,data:V,isDisabled:X,isSelected:K,key:he,label:te,type:H,value:ue,isFocused:ie,innerRef:ie?i.getFocusedOptionRef:void 0}),i.formatOptionLabel(Y.data,"menu"))},T;if(this.hasOptions())T=this.getCategorizedOptions().map(function(z){if(z.type==="group"){var Y=z.data,G=z.options,H=z.index,V="".concat(i.getElementId("group"),"-").concat(H),X="".concat(V,"-heading");return W.createElement(o,ge({},g,{key:V,data:Y,options:G,Heading:s,headingProps:{id:X,data:z.data},label:i.formatGroupLabel(z.data)}),z.options.map(function(K){return k(K,"".concat(H,"-").concat(K.index))}))}else if(z.type==="option")return k(z,"".concat(z.index))});else if(x){var B=S({inputValue:y});if(B===null)return null;T=W.createElement(d,g,B)}else{var O=P({inputValue:y});if(O===null)return null;T=W.createElement(h,g,O)}var L={minMenuHeight:D,maxMenuHeight:$,menuPlacement:m,menuPosition:C,menuShouldScrollIntoView:R},j=W.createElement(l9,ge({},g,L),function(z){var Y=z.ref,G=z.placerProps,H=G.placement,V=G.maxHeight;return W.createElement(l,ge({},g,L,{innerRef:Y,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove},isLoading:x,placement:H}),W.createElement(NR,{captureEnabled:v,onTopArrive:A,onBottomArrive:M,lockEnabled:E},function(X){return W.createElement(u,ge({},g,{innerRef:function(te){i.getMenuListRef(te),X(te)},innerProps:{role:"listbox","aria-multiselectable":g.isMulti,id:i.getElementId("listbox")},isLoading:x,maxHeight:V,focusedOption:p}),T)}))});return I||C==="fixed"?W.createElement(c,ge({},g,{appendTo:I,controlElement:this.controlRef,menuPlacement:m,menuPosition:C}),j):j}},{key:"renderFormField",value:function(){var i=this,a=this.props,o=a.delimiter,s=a.isDisabled,l=a.isMulti,u=a.name,c=a.required,d=this.state.selectValue;if(c&&!this.hasValue()&&!s)return W.createElement(jR,{name:u,onFocus:this.onValueInputFocus});if(!(!u||s))if(l)if(o){var h=d.map(function(p){return i.getOptionValue(p)}).join(o);return W.createElement("input",{name:u,type:"hidden",value:h})}else{var f=d.length>0?d.map(function(p,b){return W.createElement("input",{key:"i-".concat(b),name:u,type:"hidden",value:i.getOptionValue(p)})}):W.createElement("input",{name:u,type:"hidden",value:""});return W.createElement("div",null,f)}else{var g=d[0]?this.getOptionValue(d[0]):"";return W.createElement("input",{name:u,type:"hidden",value:g})}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,a=this.state,o=a.ariaSelection,s=a.focusedOption,l=a.focusedValue,u=a.isFocused,c=a.selectValue,d=this.getFocusableOptions();return W.createElement(ER,ge({},i,{id:this.getElementId("live-region"),ariaSelection:o,focusedOption:s,focusedValue:l,isFocused:u,selectValue:c,focusableOptions:d,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var i=this.getComponents(),a=i.Control,o=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,p=this.commonProps=this.getCommonProps();return W.createElement(s,ge({},p,{className:c,innerProps:{id:d,onKeyDown:this.onKeyDown},isDisabled:h,isFocused:g}),this.renderLiveRegion(),W.createElement(a,ge({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:h,isFocused:g,menuIsOpen:f}),W.createElement(l,ge({},p,{isDisabled:h}),this.renderPlaceholderOrValue(),this.renderInput()),W.createElement(o,ge({},p,{isDisabled:h}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(i,a){var o=a.prevProps,s=a.clearFocusValueOnUpdate,l=a.inputIsHiddenAfterUpdate,u=a.ariaSelection,c=a.isFocused,d=a.prevWasFocused,h=a.instancePrefix,f=i.options,g=i.value,p=i.menuIsOpen,b=i.inputValue,v=i.isMulti,y=Tm(g),x={};if(o&&(g!==o.value||f!==o.options||p!==o.menuIsOpen||b!==o.inputValue)){var S=p?iA(i,y):[],D=p?Zm(pl(i,y),"".concat(h,"-option")):[],$=s?aA(a,y):null,F=oA(a,S),m=Dc(D,F);x={selectValue:y,focusedOption:F,focusedOptionId:m,focusableOptionsWithIds:D,focusedValue:$,clearFocusValueOnUpdate:!1}}var C=l!=null&&i!==o?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},I=u,E=c&&d;return c&&!E&&(I={value:Ms(v,y,y[0]||null),options:y,action:"initial-input-focus"},E=!d),(u==null?void 0:u.action)==="initial-input-focus"&&(I=null),fe(fe(fe({},x),C),{},{prevProps:i,ariaSelection:I,prevWasFocused:E})}}]),n}(w.Component);jv.defaultProps=rA;var lA=w.forwardRef(function(e,t){var n=x$(e);return W.createElement(jv,ge({ref:t},n))}),uA=lA;const cA="_container_26hat_1",Sc={container:cA,"error-payhere":"_error-payhere_26hat_4","error-laba":"_error-laba_26hat_7"},dA={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"})},fA={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})},hA={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})},Wv=w.forwardRef((e,t)=>{const{width:n,children:r,components:i,classNameContainer:a="",classNameContainerShowSelect:o="",classNameContainerSelect:s="",classNameLabelError:l="",error:u,onChange:c,externalValue:d=!1,defaultValueButtonDropdown:h={},autoClose:f=!0,onMenuOpen:g=()=>{},autoCloseOutside:p=!0,styleInnerPopper:b={},onMenuClose:v=()=>{},zIndexPopper:y=0,id:x="select-dropdown-container",idPopover:S="select-dropdown-container-popover",useAutoPlacement:D,flipOptions:$,autoPlacementOptions:F,withSearch:m=!1,floatingOptions:C={},offsetPopover:I=5,selectProps:E={},errorLabel:R="payhere",controlType:P="payhere",actionValueChange:A=()=>{},...M}=e,k={error:{laba:Sc["error-laba"],payhere:Sc["error-payhere"]}},T=w.useRef(null),B=w.useRef(null),[O,L]=w.useState(""),[j,z]=w.useState(!1),[Y,G]=w.useState({}),[H,V]=w.useState(0),X=me=>{var he;(he=B.current)==null||he.setShow(me),z(me)},K=()=>{if(d)return e.isMulti?h:[h]},te=me=>{var he;(he=B.current)==null||he.handlerShow(me),V(T.current.offsetWidth),z(ce=>!ce)},ue=()=>{var me;p&&((me=B.current)==null||me.setShow(!1))},ie=(me,he)=>{var ce;f&&(z(!1),(ce=B.current)==null||ce.setShow(!1)),typeof c=="function"&&c(me,he),d||G(me)},Z=()=>{T.current&&V(T.current.offsetWidth)};return xa(()=>{d&&G(h),A(h)},[d,h]),w.useEffect(()=>{j?g():j||(v(),L(""))},[j]),w.useImperativeHandle(t,()=>({selectValue:Y,setSelectValue:G,handlerClose:ue,handlerShow:te,show:j,setShow:X}),[j,Uf(Y)]),w.useEffect(()=>(window.addEventListener("resize",Z),window.addEventListener("load",Z),()=>{window.removeEventListener("resize",Z),window.removeEventListener("load",Z)}),[T]),_.jsxs("div",{id:x,className:`${Sc.container} ${a} ${j?`${o} open-popover`:null}`,ref:T,children:[r({selectValue:Y,setSelectValue:G,handlerClose:ue,handlerShow:te,show:j,setShow:X}),_.jsx(Ir,{ref:B,offset:I,useAutoPlacement:D,flipOptions:$,autoPlacementOptions:F,zIndex:y,styleInnerPopover:b,id:S,width:typeof n=="function"?n(H,Y):n??H,className:s,floatingOptions:C,children:_.jsx(uA,{className:"1ru-w-full",defaultValue:K(),inputValue:O,onInputChange:(me,{action:he})=>{he==="input-change"&&L(me)},openMenuOnFocus:!0,autoFocus:!1,backspaceRemovesValue:!1,components:{IndicatorSeparator:null,...i},controlShouldRenderValue:!1,hideSelectedOptions:!1,isClearable:!1,menuIsOpen:!0,tabSelectsValue:!1,styles:m?P==="laba"?dA:fA:hA,noOptionsMessage:()=>"Tidak ada data.",onChange:ie,selectProps:{...E,setShowDropdown:X},...M})}),_.jsx("div",{className:`${k.error[R]} ${l}`,children:u})]})});Wv.displayName="SelectDropdownContainer";function ca(e,t){return e-t*Math.floor(e/t)}const zv=1721426;function yi(e,t,n,r){t=us(e,t);let i=t-1,a=-2;return n<=2?a=0:Vr(t)&&(a=-1),zv-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+a+r)}function Vr(e){return e%4===0&&(e%100!==0||e%400===0)}function us(e,t){return e==="BC"?1-t:t}function Bu(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const gA={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 fn{fromJulianDay(t){let n=t,r=n-zv,i=Math.floor(r/146097),a=ca(r,146097),o=Math.floor(a/36524),s=ca(a,36524),l=Math.floor(s/1461),u=ca(s,1461),c=Math.floor(u/365),d=i*400+o*100+l*4+c+(o!==4&&c!==4?1:0),[h,f]=Bu(d),g=n-yi(h,f,1,1),p=2;n<yi(h,f,3,1)?p=0:Vr(f)&&(p=1);let b=Math.floor(((g+p)*12+373)/367),v=n-yi(h,f,b,1)+1;return new ut(h,f,b,v)}toJulianDay(t){return yi(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return gA[Vr(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return Vr(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 mA={"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 gt(e,t){return t=yt(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function Ad(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 pA(e,t){return gt(e,ch(t))}function Ou(e,t){let n=e.calendar.toJulianDay(e),r=Math.ceil(n+1-CA(t))%7;return r<0&&(r+=7),r}function bA(e){return vr(Date.now(),e)}function ch(e){return cn(bA(e))}function Gv(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function Xv(e,t){return Um(e)-Um(t)}function Um(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let Ec=null;function Ri(){return Ec==null&&(Ec=new Intl.DateTimeFormat().resolvedOptions().timeZone),Ec}function cs(e){return e.subtract({days:e.day-1})}function Fd(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function vA(e){return cs(e.subtract({months:e.month-1}))}function Bo(e,t){let n=Ou(e,t);return e.subtract({days:n})}function yA(e,t){return Bo(e,t).add({days:6})}const Jm=new Map;function xA(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 CA(e){let t=xA(e);return t&&mA[t]||0}function Zv(e,t){let n=e.calendar.getDaysInMonth(e);return Math.ceil((Ou(cs(e),t)+n)/7)}function dh(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function fh(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function wa(e){e=yt(e,new fn);let t=us(e.era,e.year);return Yv(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function Yv(e,t,n,r,i,a,o){let s=new Date;return s.setUTCHours(r,i,a,o),s.setUTCFullYear(e,t-1,n),s.getTime()}function Td(e,t){if(t==="UTC")return 0;if(e>0&&t===Ri())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:a,minute:o,second:s}=Uv(e,t);return Yv(n,r,i,a,o,s,0)-Math.floor(e/1e3)*1e3}const Km=new Map;function Uv(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 a of r)a.type!=="literal"&&(i[a.type]=a.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 wA(e,t,n,r){return(n===r?[n]:[n,r]).filter(a=>DA(e,t,a))}function DA(e,t,n){let r=Uv(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 hr(e,t,n="compatible"){let r=Zr(e);if(t==="UTC")return wa(r);if(t===Ri()&&n==="compatible"){r=yt(r,new fn);let l=new Date,u=us(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=wa(r),a=Td(i-qm,t),o=Td(i+qm,t),s=wA(r,t,i-a,i-o);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-a,i-o);case"compatible":case"later":return Math.max(i-a,i-o);case"reject":throw new RangeError("No such absolute time found")}}function Jv(e,t,n="compatible"){return new Date(hr(e,t,n))}function vr(e,t){let n=Td(e,t),r=new Date(e+n),i=r.getUTCFullYear(),a=r.getUTCMonth()+1,o=r.getUTCDate(),s=r.getUTCHours(),l=r.getUTCMinutes(),u=r.getUTCSeconds(),c=r.getUTCMilliseconds();return new No(i,a,o,t,n,s,l,u,c)}function cn(e){return new ut(e.calendar,e.era,e.year,e.month,e.day)}function Zr(e,t){let n=0,r=0,i=0,a=0;if("timeZone"in e)({hour:n,minute:r,second:i,millisecond:a}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:i,millisecond:a}=t),new Ul(e.calendar,e.era,e.year,e.month,e.day,n,r,i,a)}function yt(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,Ai(r),r}function SA(e,t,n){if(e instanceof No)return e.timeZone===t?e:IA(e,t);let r=hr(e,t,n);return vr(r,t)}function EA(e){let t=wa(e)-e.offset;return new Date(t)}function IA(e,t){let n=wa(e)-e.offset;return yt(vr(n,t),e.calendar)}const Na=36e5;function Nu(e,t){let n=e.copy(),r="hour"in n?ey(n,t):0;Pd(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,kd(n),Kv(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,_A(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 a,o;let l=(a=(o=n.calendar).isInverseEra)===null||a===void 0?void 0:a.call(o,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 Pd(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function kd(e){for(;e.month<1;)Pd(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Pd(e,1)}function _A(e){for(;e.day<1;)e.month--,kd(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,kd(e)}function Kv(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 Ai(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),Kv(e)}function hh(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function qv(e,t){return Nu(e,hh(t))}function gh(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),Ai(n),n}function Oo(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),Qv(n),n}function $A(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=Bs(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=Bs(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=Bs(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=Bs(e.hour,24),t}function Qv(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 Bs(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,$A(e)}function ty(e,t){let n=e.copy();return ey(n,t),n}function RA(e,t){return ty(e,hh(t))}function mh(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=yr(l,n,0,s.length-1,r==null?void 0:r.round),i.era=s[l],Ai(i);break}case"year":var a,o;!((a=(o=i.calendar).isInverseEra)===null||a===void 0)&&a.call(o,i)&&(n=-n),i.year=yr(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=yr(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":i.day=yr(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),Ai(i),i}function ph(e,t,n,r){let i=e.copy();switch(t){case"hour":{let a=e.hour,o=0,s=23;if((r==null?void 0:r.hourCycle)===12){let l=a>=12;o=l?12:0,s=l?23:11}i.hour=yr(a,n,o,s,r==null?void 0:r.round);break}case"minute":i.minute=yr(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":i.second=yr(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":i.millisecond=yr(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return i}function yr(e,t,n,r,i=!1){if(i){e+=Math.sign(t),e<n&&(e=r);let a=Math.abs(t);t>0?e=Math.ceil(e/a)*a:e=Math.floor(e/a)*a,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function ny(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=Nu(Zr(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=hr(i,e.timeZone)}else n=wa(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=vr(n,e.timeZone);return yt(r,e.calendar)}function AA(e,t){return ny(e,hh(t))}function FA(e,t,n,r){switch(t){case"hour":{let i=0,a=23;if((r==null?void 0:r.hourCycle)===12){let g=e.hour>=12;i=g?12:0,a=g?23:11}let o=Zr(e),s=yt(Oo(o,{hour:i}),new fn),l=[hr(s,e.timeZone,"earlier"),hr(s,e.timeZone,"later")].filter(g=>vr(g,e.timeZone).day===s.day)[0],u=yt(Oo(o,{hour:a}),new fn),c=[hr(u,e.timeZone,"earlier"),hr(u,e.timeZone,"later")].filter(g=>vr(g,e.timeZone).day===u.day).pop(),d=wa(e)-e.offset,h=Math.floor(d/Na),f=d%Na;return d=yr(h,n,Math.floor(l/Na),Math.floor(c/Na),r==null?void 0:r.round)*Na+f,yt(vr(d,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return ph(e,t,n,r);case"era":case"year":case"month":case"day":{let i=mh(Zr(e),t,n,r),a=hr(i,e.timeZone);return yt(vr(a,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function TA(e,t,n){let r=Zr(e),i=Oo(gh(r,t),t);if(i.compare(r)===0)return e;let a=hr(i,e.timeZone,n);return yt(vr(a,e.timeZone),e.calendar)}const PA=/^(\d{4})-(\d{2})-(\d{2})$/;function bh(e){let t=e.match(PA);if(!t)throw new Error("Invalid ISO 8601 date string: "+e);let n=new ut(Ic(t[1],0,9999),Ic(t[2],1,12),1);return n.day=Ic(t[3],0,n.calendar.getDaysInMonth(n)),n}function Ic(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 ry(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 iy(e){let t=yt(e,new fn);return`${String(t.year).padStart(4,"0")}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function ay(e){return`${iy(e)}T${ry(e)}`}function kA(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 MA(e){return`${ay(e)}${kA(e.offset)}[${e.timeZone}]`}function BA(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function ds(e,t,n){BA(e,t),t.set(e,n)}function vh(e){let t=typeof e[0]=="object"?e.shift():new fn,n;if(typeof e[0]=="string")n=e.shift();else{let o=t.getEras();n=o[o.length-1]}let r=e.shift(),i=e.shift(),a=e.shift();return[t,n,r,i,a]}var OA=new WeakMap;class ut{copy(){return this.era?new ut(this.calendar,this.era,this.year,this.month,this.day):new ut(this.calendar,this.year,this.month,this.day)}add(t){return Nu(this,t)}subtract(t){return qv(this,t)}set(t){return gh(this,t)}cycle(t,n,r){return mh(this,t,n,r)}toDate(t){return Jv(this,t)}toString(){return iy(this)}compare(t){return Gv(this,t)}constructor(...t){ds(this,OA,{writable:!0,value:void 0});let[n,r,i,a,o]=vh(t);this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=o,Ai(this)}}var NA=new WeakMap;class yh{copy(){return new yh(this.hour,this.minute,this.second,this.millisecond)}add(t){return ty(this,t)}subtract(t){return RA(this,t)}set(t){return Oo(this,t)}cycle(t,n,r){return ph(this,t,n,r)}toString(){return ry(this)}compare(t){return Xv(this,t)}constructor(t=0,n=0,r=0,i=0){ds(this,NA,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=i,Qv(this)}}var VA=new WeakMap;class Ul{copy(){return this.era?new Ul(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new Ul(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return Nu(this,t)}subtract(t){return qv(this,t)}set(t){return gh(Oo(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return mh(this,t,n,r);default:return ph(this,t,n,r)}}toDate(t,n){return Jv(this,t,n)}toString(){return ay(this)}compare(t){let n=Gv(this,t);return n===0?Xv(this,Zr(t)):n}constructor(...t){ds(this,VA,{writable:!0,value:void 0});let[n,r,i,a,o]=vh(t);this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=o,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Ai(this)}}var LA=new WeakMap;class No{copy(){return this.era?new No(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new No(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return ny(this,t)}subtract(t){return AA(this,t)}set(t,n){return TA(this,t,n)}cycle(t,n,r){return FA(this,t,n,r)}toDate(){return EA(this)}toString(){return MA(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-SA(t,this.timeZone).toDate().getTime()}constructor(...t){ds(this,LA,{writable:!0,value:void 0});let[n,r,i,a,o]=vh(t),s=t.shift(),l=t.shift();this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=o,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,Ai(this)}}const da=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],HA=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],bl=[1867,1911,1925,1988,2018],Mr=["meiji","taisho","showa","heisei","reiwa"];function Qm(e){const t=da.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?da.length-1:t===0?0:t-1}function _c(e){let t=bl[Mr.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new ut(e.year+t,e.month,e.day)}class jA extends fn{fromJulianDay(t){let n=super.fromJulianDay(t),r=Qm(n);return new ut(this,Mr[r],n.year-bl[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(_c(t))}balanceDate(t){let n=_c(t),r=Qm(n);Mr[r]!==t.era&&(t.era=Mr[r],t.year=n.year-bl[r]),this.constrainDate(t)}constrainDate(t){let n=Mr.indexOf(t.era),r=HA[n];if(r!=null){let[i,a,o]=r,s=i-bl[n];t.year=Math.max(1,Math.min(s,t.year)),t.year===s&&(t.month=Math.min(a,t.month),t.month===a&&(t.day=Math.min(o,t.day)))}if(t.year===1&&n>=0){let[,i,a]=da[n];t.month=Math.max(i,t.month),t.month===i&&(t.day=Math.max(a,t.day))}}getEras(){return Mr}getYearsInEra(t){let n=Mr.indexOf(t.era),r=da[n],i=da[n+1];if(i==null)return 9999-r[0]+1;let a=i[0]-r[0];return(t.month<i[1]||t.month===i[1]&&t.day<i[2])&&a++,a}getDaysInMonth(t){return super.getDaysInMonth(_c(t))}getMinimumMonthInYear(t){let n=e0(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=e0(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function e0(e){if(e.year===1){let t=Mr.indexOf(e.era);return da[t]}}const oy=-543;class WA extends fn{fromJulianDay(t){let n=super.fromJulianDay(t),r=us(n.era,n.year);return new ut(this,r-oy,n.month,n.day)}toJulianDay(t){return super.toJulianDay(t0(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(t0(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function t0(e){let[t,n]=Bu(e.year+oy);return new ut(t,n,e.month,e.day)}const Jl=1911;function sy(e){return e.era==="minguo"?e.year+Jl:1-e.year+Jl}function n0(e){let t=e-Jl;return t>0?["minguo",t]:["before_minguo",1-t]}class zA extends fn{fromJulianDay(t){let n=super.fromJulianDay(t),r=us(n.era,n.year),[i,a]=n0(r);return new ut(this,i,a,n.month,n.day)}toJulianDay(t){return super.toJulianDay(r0(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=n0(sy(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(r0(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-Jl}constructor(...t){super(...t),this.identifier="roc"}}function r0(e){let[t,n]=Bu(sy(e));return new ut(t,n,e.month,e.day)}const i0=1948320,a0=[0,31,62,93,124,155,186,216,246,276,306,336];class GA{fromJulianDay(t){let n=t-i0,r=1+Math.floor((33*n+3)/12053),i=365*(r-1)+Math.floor((8*r+21)/33),a=n-i,o=a<216?Math.floor(a/31):Math.floor((a-6)/30),s=a-a0[o]+1;return new ut(this,r,o+1,s)}toJulianDay(t){let n=i0-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=a0[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||ca(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const $c=78,o0=80;class XA extends fn{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-$c,i=t-yi(n.era,n.year,1,1),a;i<o0?(r--,a=Vr(n.year-1)?31:30,i+=a+155+90+10):(a=Vr(n.year)?31:30,i-=o0);let o,s;if(i<a)o=1,s=i+1;else{let l=i-a;l<155?(o=Math.floor(l/31)+2,s=l%31+1):(l-=155,o=Math.floor(l/30)+7,s=l%30+1)}return new ut(this,r,o,s)}toJulianDay(t){let n=t.year+$c,[r,i]=Bu(n),a,o;return Vr(i)?(a=31,o=yi(r,i,3,21)):(a=30,o=yi(r,i,3,22)),t.month===1?o+t.day-1:(o+=a+Math.min(t.month-2,5)*31,t.month>=8&&(o+=(t.month-7)*30),o+=t.day-1,o)}getDaysInMonth(t){return t.month===1&&Vr(t.year+$c)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const Kl=1948440,s0=1948439,Cn=1300,Zi=1600,ZA=460322;function ql(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function ly(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+ql(t,r,1,1)))/29.5)+1),a=n-ql(t,r,i,1)+1;return new ut(e,r,i,a)}function l0(e){return(14+11*e)%30<11}class xh{fromJulianDay(t){return ly(this,Kl,t)}toJulianDay(t){return ql(Kl,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&l0(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return l0(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class YA extends xh{fromJulianDay(t){return ly(this,s0,t)}toJulianDay(t){return ql(s0,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const UA="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let Md,fa;function vl(e){return ZA+fa[e-Cn]}function Ua(e,t){let n=e-Cn,r=1<<11-(t-1);return Md[n]&r?30:29}function u0(e,t){let n=vl(e);for(let r=1;r<t;r++)n+=Ua(e,r);return n}function c0(e){return fa[e+1-Cn]-fa[e-Cn]}class JA extends xh{fromJulianDay(t){let n=t-Kl,r=vl(Cn),i=vl(Zi);if(n<r||n>i)return super.fromJulianDay(t);{let a=Cn-1,o=1,s=1;for(;s>0;){a++,s=n-vl(a)+1;let l=c0(a);if(s===l){o=12;break}else if(s<l){let u=Ua(a,o);for(o=1;s>u;)s-=u,o++,u=Ua(a,o);break}}return new ut(this,a,o,n-u0(a,o)+1)}}toJulianDay(t){return t.year<Cn||t.year>Zi?super.toJulianDay(t):Kl+u0(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<Cn||t.year>Zi?super.getDaysInMonth(t):Ua(t.year,t.month)}getDaysInYear(t){return t.year<Cn||t.year>Zi?super.getDaysInYear(t):c0(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",Md||(Md=new Uint16Array(Uint8Array.from(atob(UA),t=>t.charCodeAt(0)).buffer)),!fa){fa=new Uint32Array(Zi-Cn+1);let t=0;for(let n=Cn;n<=Zi;n++){fa[n-Cn]=t;for(let r=1;r<=12;r++)t+=Ua(n,r)}}}}const d0=347997,uy=1080,cy=24*uy,KA=29,qA=12*uy+793,QA=KA*cy+qA;function gi(e){return ca(e*7+1,19)<7}function yl(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return ca(3*(r+1),7)<3&&(r+=1),r}function eF(e){let t=yl(e-1),n=yl(e);return yl(e+1)-n===356?2:n-t===382?1:0}function lo(e){return yl(e)+eF(e)}function dy(e){return lo(e+1)-lo(e)}function tF(e){let t=dy(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function Os(e,t){if(t>=6&&!gi(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=tF(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?gi(e)?30:0:30}class nF{fromJulianDay(t){let n=t-d0,r=n*cy/QA,i=Math.floor((19*r+234)/235)+1,a=lo(i),o=Math.floor(n-a);for(;o<1;)i--,a=lo(i),o=Math.floor(n-a);let s=1,l=0;for(;l<o;)l+=Os(i,s),s++;s--,l-=Os(i,s);let u=o-l;return new ut(this,i,s,u)}toJulianDay(t){let n=lo(t.year);for(let r=1;r<t.month;r++)n+=Os(t.year,r);return n+t.day+d0}getDaysInMonth(t){return Os(t.year,t.month)}getMonthsInYear(t){return gi(t.year)?13:12}getDaysInYear(t){return dy(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&(gi(n.year)&&!gi(t.year)&&n.month>6?t.month--:!gi(n.year)&&gi(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const Bd=1723856,f0=1824665,Od=5500;function Ql(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function Ch(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-Ql(e,n,1,1))/30),i=t+1-Ql(e,n,r,1);return[n,r,i]}function fy(e){return Math.floor(e%4/3)}function hy(e,t){return t%13!==0?30:fy(e)+5}class wh{fromJulianDay(t){let[n,r,i]=Ch(Bd,t),a="AM";return n<=0&&(a="AA",n+=Od),new ut(this,a,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=Od),Ql(Bd,n,t.month,t.day)}getDaysInMonth(t){return hy(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+fy(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class rF extends wh{fromJulianDay(t){let[n,r,i]=Ch(Bd,t);return n+=Od,new ut(this,"AA",n,r,i)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class iF extends wh{fromJulianDay(t){let[n,r,i]=Ch(f0,t),a="CE";return n<=0&&(a="BCE",n=1-n),new ut(this,a,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),Ql(f0,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),hy(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 fs(e){switch(e){case"buddhist":return new WA;case"ethiopic":return new wh;case"ethioaa":return new rF;case"coptic":return new iF;case"hebrew":return new nF;case"indian":return new XA;case"islamic-civil":return new xh;case"islamic-tbla":return new YA;case"islamic-umalqura":return new JA;case"japanese":return new jA;case"persian":return new GA;case"roc":return new zA;case"gregory":default:return new fn}}let Rc=new Map;class Vo{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(a=>({...a,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(a=>({...a,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return sF()&&(this.resolvedHourCycle||(this.resolvedHourCycle=lF(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=gy(t,n),this.options=n}}const aF={true:{ja:"h11"},false:{}};function gy(e,t={}){if(typeof t.hour12=="boolean"&&oF()){t={...t};let i=aF[String(t.hour12)][e.split("-")[0]],a=t.hour12?"h12":"h23";t.hourCycle=i??a,delete t.hour12}let n=e+(t?Object.entries(t).sort((i,a)=>i[0]<a[0]?-1:1).join():"");if(Rc.has(n))return Rc.get(n);let r=new Intl.DateTimeFormat(e,t);return Rc.set(n,r),r}let Ac=null;function oF(){return Ac==null&&(Ac=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),Ac}let Fc=null;function sF(){return Fc==null&&(Fc=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),Fc}function lF(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=gy(e,{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(a=>a.type==="hour").value,10),i=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(a=>a.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 Bi=typeof document<"u"?w.useLayoutEffect:()=>{};function gr(e){const t=w.useRef(null);return Bi(()=>{t.current=e},[e]),w.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function uF(e){let[t,n]=w.useState(e),r=w.useRef(null),i=gr(()=>{if(!r.current)return;let o=r.current.next();if(o.done){r.current=null;return}t===o.value?i():n(o.value)});Bi(()=>{r.current&&i()});let a=gr(o=>{r.current=o(t),i()});return[t,a]}const eu={prefix:String(Math.round(Math.random()*1e10)),current:0},my=w.createContext(eu),cF=w.createContext(!1);let dF=!!(typeof window<"u"&&window.document&&window.document.createElement),Tc=new WeakMap;function fF(e=!1){let t=w.useContext(my),n=w.useRef(null);if(n.current===null&&!e){var r,i;let a=(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(a){let o=Tc.get(a);o==null?Tc.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==o.state&&(t.current=o.id,Tc.delete(a))}n.current=++t.current}return n.current}function hF(e){let t=w.useContext(my);t===eu&&!dF&&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=fF(!!e),r=t===eu&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function gF(e){let t=w.useId(),[n]=w.useState(py()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${eu.prefix}`;return e||`${r}-${t}`}const mF=typeof w.useId=="function"?gF:hF;function pF(){return!1}function bF(){return!0}function vF(e){return()=>{}}function py(){return typeof w.useSyncExternalStore=="function"?w.useSyncExternalStore(vF,pF,bF):w.useContext(cF)}let yF=!!(typeof window<"u"&&window.document&&window.document.createElement),tu=new Map;function Da(e){let[t,n]=w.useState(e),r=w.useRef(null),i=mF(t),a=w.useCallback(o=>{r.current=o},[]);return yF&&tu.set(i,a),Bi(()=>{let o=i;return()=>{tu.delete(o)}},[i]),w.useEffect(()=>{let o=r.current;o&&(r.current=null,n(o))}),i}function xF(e,t){if(e===t)return e;let n=tu.get(e);if(n)return n(t),t;let r=tu.get(t);return r?(r(e),e):t}function Nd(e=[]){let t=Da(),[n,r]=uF(t),i=w.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return Bi(i,[t,i,...e]),n}function by(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const At=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Fn=e=>e&&"window"in e&&e.window===e?e:At(e).defaultView||window;function qt(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let i in r){let a=t[i],o=r[i];typeof a=="function"&&typeof o=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=by(a,o):(i==="className"||i==="UNSAFE_className")&&typeof a=="string"&&typeof o=="string"?t[i]=pr(a,o):i==="id"&&a&&o?t.id=xF(a,o):t[i]=o!==void 0?o:a}}return t}const CF=new Set(["id"]),wF=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),DF=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),SF=/^(data-.*)$/;function Dh(e,t={}){let{labelable:n,isLink:r,propNames:i}=t,a={};for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(CF.has(o)||n&&wF.has(o)||r&&DF.has(o)||i!=null&&i.has(o)||SF.test(o))&&(a[o]=e[o]);return a}function Lr(e){if(EF())e.focus({preventScroll:!0});else{let t=IF(e);e.focus(),_F(t)}}let Ns=null;function EF(){if(Ns==null){Ns=!1;try{document.createElement("div").focus({get preventScroll(){return Ns=!0,!0}})}catch{}}return Ns}function IF(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 _F(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Vu(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 Sh(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 Lo(){return Sh(/^Mac/i)}function $F(){return Sh(/^iPhone/i)}function vy(){return Sh(/^iPad/i)||Lo()&&navigator.maxTouchPoints>1}function yy(){return $F()||vy()}function RF(){return Vu(/AppleWebKit/i)&&!AF()}function AF(){return Vu(/Chrome/i)}function xy(){return Vu(/Android/i)}function FF(){return Vu(/Firefox/i)}function Ho(e,t,n=!0){var r,i;let{metaKey:a,ctrlKey:o,altKey:s,shiftKey:l}=t;FF()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Lo()?a=!0:o=!0);let u=RF()&&Lo()&&!vy()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:a,ctrlKey:o,altKey:s,shiftKey:l}):new MouseEvent("click",{metaKey:a,ctrlKey:o,altKey:s,shiftKey:l,bubbles:!0,cancelable:!0});Ho.isOpening=n,Lr(e),e.dispatchEvent(u),Ho.isOpening=!1}Ho.isOpening=!1;let ta=new Map,Vd=new Set;function h0(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let i=ta.get(r.target);i||(i=new Set,ta.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=ta.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),ta.delete(r.target)),ta.size===0)){for(let a of Vd)a();Vd.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?h0():document.addEventListener("DOMContentLoaded",h0));function Cy(e){requestAnimationFrame(()=>{ta.size===0?e():Vd.add(e)})}function TF(){let e=w.useRef(new Map),t=w.useCallback((i,a,o,s)=>{let l=s!=null&&s.once?(...u)=>{e.current.delete(o),o(...u)}:o;e.current.set(o,{type:a,eventTarget:i,fn:l,options:s}),i.addEventListener(a,o,s)},[]),n=w.useCallback((i,a,o,s)=>{var l;let u=((l=e.current.get(o))===null||l===void 0?void 0:l.fn)||o;i.removeEventListener(a,u,s),e.current.delete(o)},[]),r=w.useCallback(()=>{e.current.forEach((i,a)=>{n(i.eventTarget,i.type,a,i.options)})},[n]);return w.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function Eh(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=Da(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 g0(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,a)=>!Object.is(i,r[a])))&&e(),r.current=t},t)}function wy(e,t){Bi(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function Ld(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 PF(e,t){let n=e;for(Ld(n,t)&&(n=n.parentElement);n&&!Ld(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function kF(e,t){const n=[];for(;e&&e!==document.documentElement;)Ld(e,t)&&n.push(e),e=e.parentElement;return n}let MF=0;const Pc=new Map;function Dy(e){let[t,n]=w.useState();return Bi(()=>{if(!e)return;let r=Pc.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${MF++}`;n(i);let a=document.createElement("div");a.id=i,a.style.display="none",a.textContent=e,document.body.appendChild(a),r={refCount:0,element:a},Pc.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),Pc.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function kc(e,t,n,r){let i=gr(n),a=n==null;w.useEffect(()=>{if(a||!e.current)return;let o=e.current;return o.addEventListener(t,i,r),()=>{o.removeEventListener(t,i,r)}},[e,t,r,a,i])}function BF(e,t){let n=m0(e,t,"left"),r=m0(e,t,"top"),i=t.offsetWidth,a=t.offsetHeight,o=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<=o?o=n-parseInt(u,10):n+i>h&&(o+=n+i-h),r<=d?s=r-parseInt(l,10):r+a>f&&(s+=r+a-f),e.scrollLeft=o,e.scrollTop=s}function m0(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 OF(e,t){if(document.contains(e)){let o=document.scrollingElement||document.documentElement;if(window.getComputedStyle(o).overflow==="hidden"){let l=kF(e);for(let u of l)BF(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,a;t==null||(i=t.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(a=e.scrollIntoView)===null||a===void 0||a.call(e,{block:"nearest"})}}}}function Hd(e){return e.mozInputSource===0&&e.isTrusted?!0:xy()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function NF(e){return!xy()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function Sy(e,t){let n=w.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function jo(e,t,n){let[r,i]=w.useState(e||t),a=w.useRef(e!==void 0),o=e!==void 0;w.useEffect(()=>{let u=a.current;u!==o&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}.`),a.current=o},[o]);let s=o?e:r,l=w.useCallback((u,...c)=>{let d=(h,...f)=>{n&&(Object.is(s,h)||n(h,...f)),o||(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 p=u(o?s:f,...g);return d(p,...c),o?f:p})):(o||i(u),d(u,...c))},[o,s,n]);return[s,l]}let ra="default",jd="",xl=new WeakMap;function p0(e){if(yy()){if(ra==="default"){const t=At(e);jd=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}ra="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(xl.set(e,e.style.userSelect),e.style.userSelect="none")}function Vs(e){if(yy()){if(ra!=="disabled")return;ra="restoring",setTimeout(()=>{Cy(()=>{if(ra==="restoring"){const t=At(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=jd||""),jd="",ra="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&xl.has(e)){let t=xl.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),xl.delete(e)}}const Ey=w.createContext({register:()=>{}});Ey.displayName="PressResponderContext";function VF(e,t){return t.get?t.get.call(e):t.value}function Iy(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function LF(e,t){var n=Iy(e,t,"get");return VF(e,n)}function HF(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 b0(e,t,n){var r=Iy(e,t,"set");return HF(e,r,n),n}function jF(e){let t=w.useContext(Ey);if(t){let{register:n,...r}=t;e=qt(r,e),n()}return wy(t,e.ref),e}var Ls=new WeakMap;class Hs{continuePropagation(){b0(this,Ls,!1)}get shouldStopPropagation(){return LF(this,Ls)}constructor(t,n,r){ds(this,Ls,{writable:!0,value:void 0}),b0(this,Ls,!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 v0=Symbol("linkClicked");function Ih(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:a,isDisabled:o,isPressed:s,preventFocusOnPress:l,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:c,ref:d,...h}=jF(e),[f,g]=w.useState(!1),p=w.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:b,removeAllGlobalListeners:v}=TF(),y=gr((m,C)=>{let I=p.current;if(o||I.didFirePressStart)return!1;let E=!0;if(I.isTriggeringEvent=!0,r){let R=new Hs("pressstart",C,m);r(R),E=R.shouldStopPropagation}return n&&n(!0),I.isTriggeringEvent=!1,I.didFirePressStart=!0,g(!0),E}),x=gr((m,C,I=!0)=>{let E=p.current;if(!E.didFirePressStart)return!1;E.ignoreClickAfterPress=!0,E.didFirePressStart=!1,E.isTriggeringEvent=!0;let R=!0;if(i){let P=new Hs("pressend",C,m);i(P),R=P.shouldStopPropagation}if(n&&n(!1),g(!1),t&&I&&!o){let P=new Hs("press",C,m);t(P),R&&(R=P.shouldStopPropagation)}return E.isTriggeringEvent=!1,R}),S=gr((m,C)=>{let I=p.current;if(o)return!1;if(a){I.isTriggeringEvent=!0;let E=new Hs("pressup",C,m);return a(E),I.isTriggeringEvent=!1,E.shouldStopPropagation}return!0}),D=gr(m=>{let C=p.current;C.isPressed&&C.target&&(C.isOverTarget&&C.pointerType!=null&&x(ar(C.target,m),C.pointerType,!1),C.isPressed=!1,C.isOverTarget=!1,C.activePointerId=null,C.pointerType=null,v(),c||Vs(C.target))}),$=gr(m=>{u&&D(m)}),F=w.useMemo(()=>{let m=p.current,C={onKeyDown(E){if(Mc(E.nativeEvent,E.currentTarget)&&E.currentTarget.contains(E.target)){var R;x0(E.target,E.key)&&E.preventDefault();let P=!0;if(!m.isPressed&&!E.repeat){m.target=E.currentTarget,m.isPressed=!0,P=y(E,"keyboard");let A=E.currentTarget,M=k=>{Mc(k,A)&&!k.repeat&&A.contains(k.target)&&m.target&&S(ar(m.target,k),"keyboard")};b(At(E.currentTarget),"keyup",by(M,I),!0)}P&&E.stopPropagation(),E.metaKey&&Lo()&&((R=m.metaKeyEvents)===null||R===void 0||R.set(E.key,E.nativeEvent))}else E.key==="Meta"&&(m.metaKeyEvents=new Map)},onClick(E){if(!(E&&!E.currentTarget.contains(E.target))&&E&&E.button===0&&!m.isTriggeringEvent&&!Ho.isOpening){let R=!0;if(o&&E.preventDefault(),!m.ignoreClickAfterPress&&!m.ignoreEmulatedMouseEvents&&!m.isPressed&&(m.pointerType==="virtual"||Hd(E.nativeEvent))){!o&&!l&&Lr(E.currentTarget);let P=y(E,"virtual"),A=S(E,"virtual"),M=x(E,"virtual");R=P&&A&&M}m.ignoreEmulatedMouseEvents=!1,m.ignoreClickAfterPress=!1,R&&E.stopPropagation()}}},I=E=>{var R;if(m.isPressed&&m.target&&Mc(E,m.target)){var P;x0(E.target,E.key)&&E.preventDefault();let M=E.target;x(ar(m.target,E),"keyboard",m.target.contains(M)),v(),E.key!=="Enter"&&_h(m.target)&&m.target.contains(M)&&!E[v0]&&(E[v0]=!0,Ho(m.target,E,!1)),m.isPressed=!1,(P=m.metaKeyEvents)===null||P===void 0||P.delete(E.key)}else if(E.key==="Meta"&&(!((R=m.metaKeyEvents)===null||R===void 0)&&R.size)){var A;let M=m.metaKeyEvents;m.metaKeyEvents=void 0;for(let k of M.values())(A=m.target)===null||A===void 0||A.dispatchEvent(new KeyboardEvent("keyup",k))}};if(typeof PointerEvent<"u"){C.onPointerDown=A=>{if(A.button!==0||!A.currentTarget.contains(A.target))return;if(NF(A.nativeEvent)){m.pointerType="virtual";return}Bc(A.currentTarget)&&A.preventDefault(),m.pointerType=A.pointerType;let M=!0;m.isPressed||(m.isPressed=!0,m.isOverTarget=!0,m.activePointerId=A.pointerId,m.target=A.currentTarget,!o&&!l&&Lr(A.currentTarget),c||p0(m.target),M=y(A,m.pointerType),b(At(A.currentTarget),"pointermove",E,!1),b(At(A.currentTarget),"pointerup",R,!1),b(At(A.currentTarget),"pointercancel",P,!1)),M&&A.stopPropagation()},C.onMouseDown=A=>{A.currentTarget.contains(A.target)&&A.button===0&&(Bc(A.currentTarget)&&A.preventDefault(),A.stopPropagation())},C.onPointerUp=A=>{!A.currentTarget.contains(A.target)||m.pointerType==="virtual"||A.button===0&&Yi(A,A.currentTarget)&&S(A,m.pointerType||A.pointerType)};let E=A=>{A.pointerId===m.activePointerId&&(m.target&&Yi(A,m.target)?!m.isOverTarget&&m.pointerType!=null&&(m.isOverTarget=!0,y(ar(m.target,A),m.pointerType)):m.target&&m.isOverTarget&&m.pointerType!=null&&(m.isOverTarget=!1,x(ar(m.target,A),m.pointerType,!1),$(A)))},R=A=>{A.pointerId===m.activePointerId&&m.isPressed&&A.button===0&&m.target&&(Yi(A,m.target)&&m.pointerType!=null?x(ar(m.target,A),m.pointerType):m.isOverTarget&&m.pointerType!=null&&x(ar(m.target,A),m.pointerType,!1),m.isPressed=!1,m.isOverTarget=!1,m.activePointerId=null,m.pointerType=null,v(),c||Vs(m.target))},P=A=>{D(A)};C.onDragStart=A=>{A.currentTarget.contains(A.target)&&D(A)}}else{C.onMouseDown=P=>{if(P.button!==0||!P.currentTarget.contains(P.target))return;if(Bc(P.currentTarget)&&P.preventDefault(),m.ignoreEmulatedMouseEvents){P.stopPropagation();return}m.isPressed=!0,m.isOverTarget=!0,m.target=P.currentTarget,m.pointerType=Hd(P.nativeEvent)?"virtual":"mouse",!o&&!l&&Lr(P.currentTarget),y(P,m.pointerType)&&P.stopPropagation(),b(At(P.currentTarget),"mouseup",E,!1)},C.onMouseEnter=P=>{if(!P.currentTarget.contains(P.target))return;let A=!0;m.isPressed&&!m.ignoreEmulatedMouseEvents&&m.pointerType!=null&&(m.isOverTarget=!0,A=y(P,m.pointerType)),A&&P.stopPropagation()},C.onMouseLeave=P=>{if(!P.currentTarget.contains(P.target))return;let A=!0;m.isPressed&&!m.ignoreEmulatedMouseEvents&&m.pointerType!=null&&(m.isOverTarget=!1,A=x(P,m.pointerType,!1),$(P)),A&&P.stopPropagation()},C.onMouseUp=P=>{P.currentTarget.contains(P.target)&&!m.ignoreEmulatedMouseEvents&&P.button===0&&S(P,m.pointerType||"mouse")};let E=P=>{if(P.button===0){if(m.isPressed=!1,v(),m.ignoreEmulatedMouseEvents){m.ignoreEmulatedMouseEvents=!1;return}m.target&&Yi(P,m.target)&&m.pointerType!=null?x(ar(m.target,P),m.pointerType):m.target&&m.isOverTarget&&m.pointerType!=null&&x(ar(m.target,P),m.pointerType,!1),m.isOverTarget=!1}};C.onTouchStart=P=>{if(!P.currentTarget.contains(P.target))return;let A=WF(P.nativeEvent);if(!A)return;m.activePointerId=A.identifier,m.ignoreEmulatedMouseEvents=!0,m.isOverTarget=!0,m.isPressed=!0,m.target=P.currentTarget,m.pointerType="touch",!o&&!l&&Lr(P.currentTarget),c||p0(m.target),y(P,m.pointerType)&&P.stopPropagation(),b(Fn(P.currentTarget),"scroll",R,!0)},C.onTouchMove=P=>{if(!P.currentTarget.contains(P.target))return;if(!m.isPressed){P.stopPropagation();return}let A=y0(P.nativeEvent,m.activePointerId),M=!0;A&&Yi(A,P.currentTarget)?!m.isOverTarget&&m.pointerType!=null&&(m.isOverTarget=!0,M=y(P,m.pointerType)):m.isOverTarget&&m.pointerType!=null&&(m.isOverTarget=!1,M=x(P,m.pointerType,!1),$(P)),M&&P.stopPropagation()},C.onTouchEnd=P=>{if(!P.currentTarget.contains(P.target))return;if(!m.isPressed){P.stopPropagation();return}let A=y0(P.nativeEvent,m.activePointerId),M=!0;A&&Yi(A,P.currentTarget)&&m.pointerType!=null?(S(P,m.pointerType),M=x(P,m.pointerType)):m.isOverTarget&&m.pointerType!=null&&(M=x(P,m.pointerType,!1)),M&&P.stopPropagation(),m.isPressed=!1,m.activePointerId=null,m.isOverTarget=!1,m.ignoreEmulatedMouseEvents=!0,m.target&&!c&&Vs(m.target),v()},C.onTouchCancel=P=>{P.currentTarget.contains(P.target)&&(P.stopPropagation(),m.isPressed&&D(P))};let R=P=>{m.isPressed&&P.target.contains(m.target)&&D({currentTarget:m.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};C.onDragStart=P=>{P.currentTarget.contains(P.target)&&D(P)}}return C},[b,o,l,v,c,D,$,x,y,S]);return w.useEffect(()=>()=>{var m;c||Vs((m=p.current.target)!==null&&m!==void 0?m:void 0)},[c]),{isPressed:s||f,pressProps:qt(h,F)}}function _h(e){return e.tagName==="A"&&e.hasAttribute("href")}function Mc(e,t){const{key:n,code:r}=e,i=t,a=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof Fn(i).HTMLInputElement&&!_y(i,n)||i instanceof Fn(i).HTMLTextAreaElement||i.isContentEditable)&&!((a==="link"||!a&&_h(i))&&n!=="Enter")}function WF(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function y0(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 ar(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function zF(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 GF(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Yi(e,t){let n=t.getBoundingClientRect(),r=zF(e);return GF(n,r)}function Bc(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function x0(e,t){return e instanceof HTMLInputElement?!_y(e,t):e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!_h(e)}const XF=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function _y(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":XF.has(e.type)}class ZF{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 $y(e){let t=w.useRef({isFocused:!1,observer:null});Bi(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=gr(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,a=o=>{t.current.isFocused=!1,i.disabled&&n(new ZF("blur",o)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var o;(o=t.current.observer)===null||o===void 0||o.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 Ry(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const a=w.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),i&&i(!1),!0},[r,i]),o=$y(a),s=w.useCallback(l=>{const u=At(l.target);l.target===l.currentTarget&&u.activeElement===l.target&&(n&&n(l),i&&i(!0),o(l))},[i,n,o]);return{focusProps:{onFocus:!t&&(n||i||r)?s:void 0,onBlur:!t&&(r||i)?a:void 0}}}let Ta=null,Wd=new Set,uo=new Map,Fi=!1,zd=!1;const YF={Tab:!0,Escape:!0};function $h(e,t){for(let n of Wd)n(e,t)}function UF(e){return!(e.metaKey||!Lo()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function nu(e){Fi=!0,UF(e)&&(Ta="keyboard",$h("keyboard",e))}function wn(e){Ta="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Fi=!0,$h("pointer",e))}function Ay(e){Hd(e)&&(Fi=!0,Ta="virtual")}function Fy(e){e.target===window||e.target===document||(!Fi&&!zd&&(Ta="virtual",$h("virtual",e)),Fi=!1,zd=!1)}function Ty(){Fi=!1,zd=!0}function Gd(e){if(typeof window>"u"||uo.get(Fn(e)))return;const t=Fn(e),n=At(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Fi=!0,r.apply(this,arguments)},n.addEventListener("keydown",nu,!0),n.addEventListener("keyup",nu,!0),n.addEventListener("click",Ay,!0),t.addEventListener("focus",Fy,!0),t.addEventListener("blur",Ty,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",wn,!0),n.addEventListener("pointermove",wn,!0),n.addEventListener("pointerup",wn,!0)):(n.addEventListener("mousedown",wn,!0),n.addEventListener("mousemove",wn,!0),n.addEventListener("mouseup",wn,!0)),t.addEventListener("beforeunload",()=>{Py(e)},{once:!0}),uo.set(t,{focus:r})}const Py=(e,t)=>{const n=Fn(e),r=At(e);t&&r.removeEventListener("DOMContentLoaded",t),uo.has(n)&&(n.HTMLElement.prototype.focus=uo.get(n).focus,r.removeEventListener("keydown",nu,!0),r.removeEventListener("keyup",nu,!0),r.removeEventListener("click",Ay,!0),n.removeEventListener("focus",Fy,!0),n.removeEventListener("blur",Ty,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",wn,!0),r.removeEventListener("pointermove",wn,!0),r.removeEventListener("pointerup",wn,!0)):(r.removeEventListener("mousedown",wn,!0),r.removeEventListener("mousemove",wn,!0),r.removeEventListener("mouseup",wn,!0)),uo.delete(n))};function JF(e){const t=At(e);let n;return t.readyState!=="loading"?Gd(e):(n=()=>{Gd(e)},t.addEventListener("DOMContentLoaded",n)),()=>Py(e,n)}typeof document<"u"&&JF();function ky(){return Ta!=="pointer"}function My(){return Ta}const KF=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function qF(e,t,n){var r;const i=typeof window<"u"?Fn(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,a=typeof window<"u"?Fn(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,o=typeof window<"u"?Fn(n==null?void 0:n.target).HTMLElement:HTMLElement,s=typeof window<"u"?Fn(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof i&&!KF.has(n==null||(r=n.target)===null||r===void 0?void 0:r.type)||(n==null?void 0:n.target)instanceof a||(n==null?void 0:n.target)instanceof o&&(n==null?void 0:n.target.isContentEditable),!(e&&t==="keyboard"&&n instanceof s&&!YF[n.key])}function QF(e,t,n){Gd(),w.useEffect(()=>{let r=(i,a)=>{qF(!!(n!=null&&n.isTextInput),i,a)&&e(ky())};return Wd.add(r),()=>{Wd.delete(r)}},t)}function By(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,a=w.useRef({isFocusWithin:!1}),o=w.useCallback(u=>{a.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(a.current.isFocusWithin=!1,n&&n(u),i&&i(!1))},[n,i,a]),s=$y(o),l=w.useCallback(u=>{!a.current.isFocusWithin&&document.activeElement===u.target&&(r&&r(u),i&&i(!0),a.current.isFocusWithin=!0,s(u))},[r,i,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:o}}}function C0(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 e7(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:C0(e.onKeyDown),onKeyUp:C0(e.onKeyUp)}}}function Oy(e){const t=At(e);if(My()==="virtual"){let n=t.activeElement;Cy(()=>{t.activeElement===n&&e.isConnected&&Lr(e)})}else Lr(e)}function t7(e){const t=Fn(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:a}=e.ownerDocument.defaultView;let{display:o,visibility:s}=a(e);i=o!=="none"&&s!=="hidden"&&s!=="collapse"}return i}function n7(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 Ny(e,t){return e.nodeName!=="#comment"&&t7(e)&&n7(e,t)&&(!e.parentElement||Ny(e.parentElement,e))}const Rh=["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]"],r7=Rh.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Rh.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const i7=Rh.join(':not([hidden]):not([tabindex="-1"]),');function Vy(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function Va(e,t=!1){if(e!=null&&!t)try{Oy(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function Ja(e,t,n){let r=t!=null&&t.tabbable?i7:r7,i=At(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(a){var o;return!(t==null||(o=t.from)===null||o===void 0)&&o.contains(a)?NodeFilter.FILTER_REJECT:a.matches(r)&&Ny(a)&&(!n||Vy(a,n))&&(!(t!=null&&t.accept)||t.accept(a))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(i.currentNode=t.from),i}function Ly(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:o=t.wrap,accept:s=t.accept}=n,l=i||At(r).activeElement,u=Ja(r,{tabbable:a,accept:s});r.contains(l)&&(u.currentNode=l);let c=u.nextNode();return!c&&o&&(u.currentNode=r,c=u.nextNode()),c&&Va(c,!0),c},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:o=t.wrap,accept:s=t.accept}=n,l=i||At(r).activeElement,u=Ja(r,{tabbable:a,accept:s});if(r.contains(l))u.currentNode=l;else{let d=Oc(u);return d&&Va(d,!0),d??null}let c=u.previousNode();if(!c&&o){u.currentNode=r;let d=Oc(u);if(!d)return null;c=d}return c&&Va(c,!0),c??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,s=Ja(r,{tabbable:i,accept:a}).nextNode();return s&&Va(s,!0),s},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,o=Ja(r,{tabbable:i,accept:a}),s=Oc(o);return s&&Va(s,!0),s??null}}}function Oc(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class Ah{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 a=new w0({scopeRef:t});i.addChild(a),a.parent=i,this.fastMap.set(t,a),r&&(a.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 a of this.traverse())a!==n&&n.nodeToRestore&&a.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&Vy(a.nodeToRestore,n.scopeRef.current)&&(a.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(a=>r&&r.addChild(a))),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 Ah;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 w0({scopeRef:null}),this.fastMap.set(null,this.root)}}class w0{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 Ah;function Hy(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=w.useRef({isFocused:!1,isFocusVisible:t||ky()}),[a,o]=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,o(f),u()},[u]);QF(f=>{i.current.isFocusVisible=f,u()},[],{isTextInput:n});let{focusProps:d}=Ry({isDisabled:r,onFocusChange:c}),{focusWithinProps:h}=By({isDisabled:!r,onFocusWithinChange:c});return{isFocused:a,isFocusVisible:s,focusProps:r?h:d}}let a7=w.createContext(null);function o7(e){let t=w.useContext(a7)||{};wy(t,e);let{ref:n,...r}=t;return r}function s7(e,t){let{focusProps:n}=Ry(e),{keyboardProps:r}=e7(e),i=qt(n,r),a=o7(t),o=e.isDisabled?{}:a,s=w.useRef(e.autoFocus);return w.useEffect(()=>{s.current&&t.current&&Oy(t.current),s.current=!1},[t]),{focusableProps:qt({...i,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},o)}}const l7=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),u7=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function jy(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 l7.has(n.script)}let t=e.split("-")[0];return u7.has(t)}const c7=Symbol.for("react-aria.i18n.locale");function Wy(){let e=typeof window<"u"&&window[c7]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:jy(e)?"rtl":"ltr"}}let Xd=Wy(),Ka=new Set;function D0(){Xd=Wy();for(let e of Ka)e(Xd)}function zy(){let e=py(),[t,n]=w.useState(Xd);return w.useEffect(()=>(Ka.size===0&&window.addEventListener("languagechange",D0),Ka.add(n),()=>{Ka.delete(n),Ka.size===0&&window.removeEventListener("languagechange",D0)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const Gy=w.createContext(null);function Fh(e){let{locale:t,children:n}=e,r=zy(),i=w.useMemo(()=>t?{locale:t,direction:jy(t)?"rtl":"ltr"}:r,[r,t]);return w.createElement(Gy.Provider,{value:i},n)}function Nn(){let e=zy();return w.useContext(Gy)||e}const d7=Symbol.for("react-aria.i18n.locale"),f7=Symbol.for("react-aria.i18n.strings");let Ui;class Oi{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=h7(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[d7];if(Ui===void 0){let i=window[f7];if(!i)return null;Ui={};for(let a in i)Ui[a]=new Oi({[n]:i[a]},n)}let r=Ui==null?void 0:Ui[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 h7(e,t,n="en-US"){if(t[e])return t[e];let r=g7(e);if(t[r])return t[r];for(let i in t)if(i.startsWith(r+"-"))return t[i];return t[n]}function g7(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const S0=new Map,E0=new Map;class Xy{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 a=this.locale+":"+r,o=S0.get(a);o||(o=new Intl.PluralRules(this.locale,{type:r}),S0.set(a,o));let s=o.select(t);return i=n[s]||n.other,typeof i=="function"?i():i}number(t){let n=E0.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),E0.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 I0=new WeakMap;function m7(e){let t=I0.get(e);return t||(t=new Oi(e),I0.set(e,t)),t}function p7(e,t){return t&&Oi.getGlobalDictionaryForPackage(t)||m7(e)}function hs(e,t){let{locale:n}=Nn(),r=p7(e,t);return w.useMemo(()=>new Xy(n,r),[n,r])}function Yr(e){e=Sy(e??{},b7);let{locale:t}=Nn();return w.useMemo(()=>new Vo(t,e),[t,e])}function b7(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 v7(e,t){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:a,onPressEnd:o,onPressUp:s,onPressChange:l,preventFocusOnPress:u,allowFocusWhenDisabled:c,onClick:d,href:h,target:f,rel:g,type:p="button"}=e,b;n==="button"?b={type:p,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"?p:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?g:void 0};let{pressProps:v,isPressed:y}=Ih({onPressStart:a,onPressEnd:o,onPressChange:l,onPress:i,onPressUp:s,isDisabled:r,preventFocusOnPress:u,ref:t}),{focusableProps:x}=s7(e,t);c&&(x.tabIndex=r?-1:x.tabIndex);let S=qt(x,v,Dh(e,{labelable:!0}));return{isPressed:y,buttonProps:qt(b,S,{"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 Zy={};Zy={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 Yy={};Yy={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 Uy={};Uy={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 Jy={};Jy={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 Ky={};Ky={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 qy={};qy={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 Qy={};Qy={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 tx={};tx={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 nx={};nx={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 rx={};rx={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 ix={};ix={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 ox={};ox={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 sx={};sx={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 lx={};lx={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 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 cx={};cx={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 dx={};dx={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 fx={};fx={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 hx={};hx={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 gx={};gx={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 mx={};mx={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 px={};px={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 bx={};bx={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 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=>`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 xx={};xx={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 Cx={};Cx={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 wx={};wx={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 Dx={};Dx={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 Sx={};Sx={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 Ex={};Ex={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 Ix={};Ix={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 gs={};gs={"ar-AE":Zy,"bg-BG":Yy,"cs-CZ":Uy,"da-DK":Jy,"de-DE":Ky,"el-GR":qy,"en-US":Qy,"es-ES":ex,"et-EE":tx,"fi-FI":nx,"fr-FR":rx,"he-IL":ix,"hr-HR":ax,"hu-HU":ox,"it-IT":sx,"ja-JP":lx,"ko-KR":ux,"lt-LT":cx,"lv-LV":dx,"nb-NO":fx,"nl-NL":hx,"pl-PL":gx,"pt-BR":mx,"pt-PT":px,"ro-RO":bx,"ru-RU":vx,"sk-SK":yx,"sl-SI":xx,"sr-SP":Cx,"sv-SE":wx,"tr-TR":Dx,"uk-UA":Sx,"zh-CN":Ex,"zh-TW":Ix};function _x(e){return e&&e.__esModule?e.default:e}const Th=new WeakMap;function Wo(e){return(e==null?void 0:e.calendar.identifier)==="gregory"&&e.era==="BC"?"short":void 0}function y7(e){let t=hs(_x(gs),"@react-aria/calendar"),n,r;"highlightedRange"in e?{start:n,end:r}=e.highlightedRange||{}:n=r=e.value;let i=Yr({weekday:"long",month:"long",year:"numeric",day:"numeric",era:Wo(n)||Wo(r),timeZone:e.timeZone}),a="anchorDate"in e?e.anchorDate:null;return w.useMemo(()=>{if(!a&&n&&r)if(gt(n,r)){let o=i.format(n.toDate(e.timeZone));return t.format("selectedDateDescription",{date:o})}else{let o=Yd(i,t,n,r,e.timeZone);return t.format("selectedRangeDescription",{dateRange:o})}return""},[n,r,a,e.timeZone,t,i])}function Zd(e,t,n,r){let i=hs(_x(gs),"@react-aria/calendar"),a=Wo(e)||Wo(t),o=Yr({month:"long",year:"numeric",era:a,calendar:e.calendar.identifier,timeZone:n}),s=Yr({month:"long",year:"numeric",day:"numeric",era:a,calendar:e.calendar.identifier,timeZone:n});return w.useMemo(()=>{if(gt(e,cs(e))){if(gt(t,Fd(e)))return o.format(e.toDate(n));if(gt(t,Fd(t)))return r?Yd(o,i,e,t,n):o.formatRange(e.toDate(n),t.toDate(n))}return r?Yd(s,i,e,t,n):s.formatRange(e.toDate(n),t.toDate(n))},[e,t,o,s,i,n,r])}function Yd(e,t,n,r,i){let a=e.formatRangeToParts(n.toDate(i),r.toDate(i)),o=-1;for(let u=0;u<a.length;u++){let c=a[u];if(c.source==="shared"&&c.type==="literal")o=u;else if(c.source==="endRange")break}let s="",l="";for(let u=0;u<a.length;u++)u<o?s+=a[u].value:u>o&&(l+=a[u].value);return t.format("dateRange",{startDate:s,endDate:l})}const $x=7e3;let Nc=null;function _0(e,t="assertive",n=$x){Nc||(Nc=new x7),Nc.announce(e,t,n)}class x7{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=$x){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 C7(e){return e&&e.__esModule?e.default:e}function Rx(e,t){let n=hs(C7(gs),"@react-aria/calendar"),r=Dh(e),i=Zd(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),a=Zd(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);g0(()=>{t.isFocused||_0(a)},[a]);let o=y7(t);g0(()=>{o&&_0(o,"polite",4e3)},[o]);let s=Nd([!!e.errorMessage,e.isInvalid,e.validationState]);Th.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:s,selectedDateDescription:o});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=Eh({id:e.id,"aria-label":[e["aria-label"],a].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:qt(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 Ax(e,t){return Rx(e,t)}function w7(e,t,n){let r=Rx(e,t),i=w.useRef(!1),a=w.useRef(typeof window<"u"?window:null);return kc(a,"pointerdown",s=>{i.current=s.width===0&&s.height===0}),kc(a,"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()},kc(n,"touchmove",s=>{t.isDragging&&s.preventDefault()},{passive:!1,capture:!0}),r}function Fx(e,t){let{startDate:n=t.visibleRange.start,endDate:r=t.visibleRange.end}=e,{direction:i}=Nn(),a=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}},o=Zd(n,r,t.timeZone,!0),{ariaLabel:s,ariaLabelledBy:l}=Th.get(t),u=Eh({"aria-label":[s,o].filter(Boolean).join(", "),"aria-labelledby":l}),c=Yr({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:d}=Nn(),h=w.useMemo(()=>{let f=Bo(ch(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:qt(u,{role:"grid","aria-readonly":t.isReadOnly||null,"aria-disabled":t.isDisabled||null,"aria-multiselectable":"highlightedRange"in t||void 0,onKeyDown:a,onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:h}}function D7(e){return e&&e.__esModule?e.default:e}function S7(e,t,n){let{date:r,isDisabled:i}=e,{errorMessageId:a,selectedDateDescription:o}=Th.get(t),s=hs(D7(gs),"@react-aria/calendar"),l=Yr({weekday:"long",day:"numeric",month:"long",year:"numeric",era:Wo(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&&gt(t.value,r));f&&(u=!0),r=Sy(r,Ad);let g=w.useMemo(()=>r.toDate(t.timeZone),[r,t.timeZone]),p=pA(r,t.timeZone),b=w.useMemo(()=>{let E="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(gt(r,t.value.start)||gt(r,t.value.end))&&(E=o+", "),E+=l.format(g),p?E=s.format(u?"todayDateSelected":"todayDate",{date:E}):u&&(E=s.format("dateSelected",{date:E})),t.minValue&&gt(r,t.minValue)?E+=", "+s.format("minimumDate"):t.maxValue&&gt(r,t.maxValue)&&(E+=", "+s.format("maximumDate")),E},[l,g,s,u,p,r,t,o]),v="";"anchorDate"in t&&c&&!t.isReadOnly&&h&&(t.anchorDate?v=s.format("finishRangeSelectionPrompt"):v=s.format("startRangeSelectionPrompt"));let y=Dy(v),x=w.useRef(!1),S=w.useRef(!1),D=w.useRef(null),{pressProps:$,isPressed:F}=Ih({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!h||t.isReadOnly,onPressStart(E){if(t.isReadOnly){t.setFocusedDate(r);return}if("highlightedRange"in t&&!t.anchorDate&&(E.pointerType==="mouse"||E.pointerType==="touch")){if(t.highlightedRange&&!f){if(gt(r,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(r),t.setDragging(!0),S.current=!0;return}else if(gt(r,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(r),t.setDragging(!0),S.current=!0;return}}let R=()=>{t.setDragging(!0),D.current=null,t.selectDate(r),t.setFocusedDate(r),x.current=!0};E.pointerType==="touch"?D.current=setTimeout(R,200):R()}},onPressEnd(){S.current=!1,x.current=!1,clearTimeout(D.current),D.current=null},onPress(){!("anchorDate"in t)&&!t.isReadOnly&&(t.selectDate(r),t.setFocusedDate(r))},onPressUp(E){if(!t.isReadOnly&&("anchorDate"in t&&D.current&&(t.selectDate(r),t.setFocusedDate(r)),"anchorDate"in t))if(S.current)t.setAnchorDate(r);else if(t.anchorDate&&!x.current)t.selectDate(r),t.setFocusedDate(r);else if(E.pointerType==="keyboard"&&!t.anchorDate){t.selectDate(r);let R=r.add({days:1});t.isInvalid(R)&&(R=r.subtract({days:1})),t.isInvalid(R)||t.setFocusedDate(R)}else E.pointerType==="virtual"&&(t.selectDate(r),t.setFocusedDate(r))}}),m=null;i||(m=gt(r,t.focusedDate)?0:-1),w.useEffect(()=>{c&&n.current&&(Lr(n.current),My()!=="pointer"&&document.activeElement===n.current&&OF(n.current,{containingElement:PF(n.current)}))},[c,n]);let C=Yr({day:"numeric",timeZone:t.timeZone,calendar:r.calendar.identifier}),I=w.useMemo(()=>C.formatToParts(g).find(E=>E.type==="day").value,[C,g]);return{cellProps:{role:"gridcell","aria-disabled":!h||null,"aria-selected":u||null,"aria-invalid":f||null},buttonProps:qt($,{onFocus(){i||t.setFocusedDate(r)},tabIndex:m,role:"button","aria-disabled":!h||null,"aria-label":b,"aria-invalid":f||null,"aria-describedby":[f?a:null,y["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(E){"highlightDate"in t&&(E.pointerType!=="touch"||t.isDragging)&&h&&t.highlightDate(r)},onPointerDown(E){"releasePointerCapture"in E.target&&E.target.releasePointerCapture(E.pointerId)},onContextMenu(E){E.preventDefault()}}),isPressed:F,isFocused:c,isSelected:u,isDisabled:i,isUnavailable:d,isOutsideVisibleRange:r.compare(t.visibleRange.start)<0||r.compare(t.visibleRange.end)>0,isInvalid:f,formattedDate:I}}const Lu={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},Tx={...Lu,customError:!0,valid:!1},mi={isInvalid:!1,validationDetails:Lu,validationErrors:[]},E7=w.createContext({}),ru="__formValidationState"+Date.now();function I7(e){if(e[ru]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}=e[ru];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}}return _7(e)}function _7(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:a,validate:o,validationBehavior:s="aria"}=e;n&&(t||(t=n==="invalid"));let l=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:Tx}:null,u=w.useMemo(()=>$0($7(o,i)),[o,i]);a!=null&&a.validationDetails.valid&&(a=null);let c=w.useContext(E7),d=w.useMemo(()=>r?Array.isArray(r)?r.flatMap(I=>Ud(c[I])):Ud(c[r]):[],[c,r]),[h,f]=w.useState(c),[g,p]=w.useState(!1);c!==h&&(f(c),p(!1));let b=w.useMemo(()=>$0(g?[]:d),[g,d]),v=w.useRef(mi),[y,x]=w.useState(mi),S=w.useRef(mi),D=()=>{if(!$)return;F(!1);let I=u||a||v.current;Vc(I,S.current)||(S.current=I,x(I))},[$,F]=w.useState(!1);return w.useEffect(D),{realtimeValidation:l||b||u||a||mi,displayValidation:s==="native"?l||b||y:l||b||u||a||y,updateValidation(I){s==="aria"&&!Vc(y,I)?x(I):v.current=I},resetValidation(){let I=mi;Vc(I,S.current)||(S.current=I,x(I)),s==="native"&&F(!1),p(!0)},commitValidation(){s==="native"&&F(!0),p(!0)}}}function Ud(e){return e?Array.isArray(e)?e:[e]:[]}function $7(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return Ud(n)}return[]}function $0(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:Tx}:null}function Vc(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 iu(...e){let t=new Set,n=!1,r={...Lu};for(let o of e){var i,a;for(let s of o.validationErrors)t.add(s);n||(n=o.isInvalid);for(let s in r)(i=r)[a=s]||(i[a]=o.validationDetails[s])}return r.valid=!n,{isInvalid:n,validationErrors:[...t],validationDetails:r}}function R7(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:a="label"}=e;t=Da(t);let o=Da(),s={};n?(r=r?`${o} ${r}`:o,s={id:o,htmlFor:a==="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=Eh({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:s,fieldProps:l}}function A7(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:a,fieldProps:o}=R7(e),s=Nd([!!t,!!n,r,i]),l=Nd([!!t,!!n,r,i]);return o=qt(o,{"aria-describedby":[s,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:a,fieldProps:o,descriptionProps:{id:s},errorMessageProps:{id:l}}}var Px={};Px={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 kx={};kx={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 Mx={};Mx={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 Bx={};Bx={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 Ox={};Ox={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 Nx={};Nx={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 Vx={};Vx={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 Lx={};Lx={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 Hx={};Hx={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 jx={};jx={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 Wx={};Wx={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 zx={};zx={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 Gx={};Gx={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 Xx={};Xx={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 Zx={};Zx={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 Yx={};Yx={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 Ux={};Ux={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 Jx={};Jx={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 Kx={};Kx={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 qx={};qx={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 Qx={};Qx={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 t4={};t4={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 n4={};n4={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 r4={};r4={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 i4={};i4={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 o4={};o4={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 s4={};s4={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 l4={};l4={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 u4={};u4={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 c4={};c4={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 d4={};d4={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 f4={};f4={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 h4={};h4={"ar-AE":Px,"bg-BG":kx,"cs-CZ":Mx,"da-DK":Bx,"de-DE":Ox,"el-GR":Nx,"en-US":Vx,"es-ES":Lx,"et-EE":Hx,"fi-FI":jx,"fr-FR":Wx,"he-IL":zx,"hr-HR":Gx,"hu-HU":Xx,"it-IT":Zx,"ja-JP":Yx,"ko-KR":Ux,"lt-LT":Jx,"lv-LV":Kx,"nb-NO":qx,"nl-NL":Qx,"pl-PL":e4,"pt-BR":t4,"pt-PT":n4,"ro-RO":r4,"ru-RU":i4,"sk-SK":a4,"sl-SI":o4,"sr-SP":s4,"sv-SE":l4,"tr-TR":u4,"uk-UA":c4,"zh-CN":d4,"zh-TW":f4};function F7(e,t,n){let{direction:r}=Nn(),i=w.useMemo(()=>Ly(t),[t]),a=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}},o=()=>{var l;let u=(l=window.event)===null||l===void 0?void 0:l.target,c=Ja(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}=Ih({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(l){l.pointerType==="mouse"&&o()},onPress(l){l.pointerType!=="mouse"&&o()}});return qt(s,{onKeyDown:a})}const T7="__role_"+Date.now(),P7="__focusManager_"+Date.now();function k7(e){return e&&e.__esModule?e.default:e}function M7(e,t,n){var r,i;let a=hs(k7(h4),"@react-aria/datepicker"),{isInvalid:o,validationErrors:s,validationDetails:l}=t.displayValidation,{labelProps:u,fieldProps:c,descriptionProps:d,errorMessageProps:h}=A7({...e,labelElementType:"span",isInvalid:o,errorMessage:e.errorMessage||s}),f=c["aria-labelledby"]||c.id,{locale:g}=Nn(),p=t.formatValue(g,{month:"long"}),b=p?a.format("selectedRangeDescription",{startDate:p.start,endDate:p.end}):"",v=Dy(b),y={"aria-label":a.format("startDate"),"aria-labelledby":f},x={"aria-label":a.format("endDate"),"aria-labelledby":f},S=Da(),D=Da(),$=F7(t,n),F=[v["aria-describedby"],c["aria-describedby"]].filter(Boolean).join(" ")||void 0,m=w.useMemo(()=>Ly(n,{accept:A=>A.id!==S}),[n,S]),C={[P7]:m,[T7]:"presentation","aria-describedby":F,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},I=Dh(e),{focusWithinProps:E}=By({...e,isDisabled:t.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),R=w.useRef(mi),P=w.useRef(mi);return{groupProps:qt(I,$,c,v,E,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":F,onKeyDown(A){t.isOpen||e.onKeyDown&&e.onKeyDown(A)},onKeyUp(A){t.isOpen||e.onKeyUp&&e.onKeyUp(A)}}),labelProps:{...u,onClick:()=>{m.focusFirst()}},buttonProps:{...v,id:S,"aria-haspopup":"dialog","aria-label":a.format("calendar"),"aria-labelledby":`${S} ${f}`,"aria-describedby":F,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:D,"aria-labelledby":`${S} ${f}`},startFieldProps:{...y,...C,value:(r=t.value)===null||r===void 0?void 0:r.start,onChange:A=>t.setDateTime("start",A),autoFocus:e.autoFocus,name:e.startName,[ru]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(A){R.current=A,t.updateValidation(iu(A,P.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...x,...C,value:(i=t.value)===null||i===void 0?void 0:i.end,onChange:A=>t.setDateTime("end",A),name:e.endName,[ru]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(A){P.current=A,t.updateValidation(iu(R.current,A))},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:o,validationErrors:s,validationDetails:l}}function ha(e,t,n){return t!=null&&e.compare(t)<0||n!=null&&e.compare(n)>0}function Jd(e,t,n,r,i){let a={};for(let s in t)a[s]=Math.floor(t[s]/2),a[s]>0&&t[s]%2===0&&a[s]--;let o=xi(e,t,n).subtract(a);return zo(e,o,t,n,r,i)}function xi(e,t,n,r,i){let a=e;return t.years?a=vA(e):t.months?a=cs(e):t.weeks&&(a=Bo(e,n)),zo(e,a,t,n,r,i)}function Kd(e,t,n,r,i){let a={...t};t.days?a.days--:t.weeks?a.weeks--:t.months?a.months--:t.years&&a.years--;let o=xi(e,t,n).subtract(a);return zo(e,o,t,n,r,i)}function zo(e,t,n,r,i,a){return i&&e.compare(i)>=0&&(t=fh(t,xi(cn(i),n,r))),a&&e.compare(a)<=0&&(t=dh(t,Kd(cn(a),n,r))),t}function Pr(e,t,n){return t&&(e=fh(e,cn(t))),n&&(e=dh(e,cn(n))),e}function g4(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 m4(e){let t=w.useMemo(()=>new Vo(e.locale),[e.locale]),n=w.useMemo(()=>t.resolvedOptions(),[t]),{locale:r,createCalendar:i,visibleDuration:a={months:1},minValue:o,maxValue:s,selectionAlignment:l,isDateUnavailable:u,pageBehavior:c="visible"}=e,d=w.useMemo(()=>i(n.calendar),[i,n.calendar]),[h,f]=jo(e.value,e.defaultValue,e.onChange),g=w.useMemo(()=>h?yt(cn(h),d):null,[h,d]),p=w.useMemo(()=>h&&"timeZone"in h?h.timeZone:n.timeZone,[h,n.timeZone]),b=w.useMemo(()=>e.focusedValue?Pr(yt(cn(e.focusedValue),d),o,s):void 0,[e.focusedValue,d,o,s]),v=w.useMemo(()=>Pr(e.defaultFocusedValue?yt(cn(e.defaultFocusedValue),d):g||yt(ch(p),d),o,s),[e.defaultFocusedValue,g,p,d,o,s]),[y,x]=jo(b,v,e.onFocusChange),[S,D]=w.useState(()=>{switch(l){case"start":return xi(y,a,r,o,s);case"end":return Kd(y,a,r,o,s);case"center":default:return Jd(y,a,r,o,s)}}),[$,F]=w.useState(e.autoFocus||!1),m=w.useMemo(()=>{let T={...a};return T.days?T.days--:T.days=-1,S.add(T)},[S,a]),[C,I]=w.useState(d.identifier);if(d.identifier!==C){let T=yt(y,d);D(Jd(T,a,r,o,s)),x(T),I(d.identifier)}ha(y,o,s)?x(Pr(y,o,s)):y.compare(S)<0?D(Kd(y,a,r,o,s)):y.compare(m)>0&&D(xi(y,a,r,o,s));function E(T){T=Pr(T,o,s),x(T)}function R(T){if(!e.isDisabled&&!e.isReadOnly){if(T===null){f(null);return}if(T=Pr(T,o,s),T=g4(T,S,u),!T)return;T=yt(T,(h==null?void 0:h.calendar)||new fn),h&&"hour"in h?f(h.set(T)):f(T)}}let P=w.useMemo(()=>g?u&&u(g)?!0:ha(g,o,s):!1,[g,u,o,s]),A=e.isInvalid||e.validationState==="invalid"||P,M=A?"invalid":null,k=w.useMemo(()=>c==="visible"?a:Lc(a),[c,a]);return{isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,value:g,setValue:R,visibleRange:{start:S,end:m},minValue:o,maxValue:s,focusedDate:y,timeZone:p,validationState:M,isValueInvalid:A,setFocusedDate(T){E(T),F(!0)},focusNextDay(){E(y.add({days:1}))},focusPreviousDay(){E(y.subtract({days:1}))},focusNextRow(){a.days?this.focusNextPage():(a.weeks||a.months||a.years)&&E(y.add({weeks:1}))},focusPreviousRow(){a.days?this.focusPreviousPage():(a.weeks||a.months||a.years)&&E(y.subtract({weeks:1}))},focusNextPage(){let T=S.add(k);x(Pr(y.add(k),o,s)),D(xi(zo(y,T,k,r,o,s),k,r))},focusPreviousPage(){let T=S.subtract(k);x(Pr(y.subtract(k),o,s)),D(xi(zo(y,T,k,r,o,s),k,r))},focusSectionStart(){a.days?E(S):a.weeks?E(Bo(y,r)):(a.months||a.years)&&E(cs(y))},focusSectionEnd(){a.days?E(m):a.weeks?E(yA(y,r)):(a.months||a.years)&&E(Fd(y))},focusNextSection(T){if(!T&&!a.days){E(y.add(Lc(a)));return}a.days?this.focusNextPage():a.weeks?E(y.add({months:1})):(a.months||a.years)&&E(y.add({years:1}))},focusPreviousSection(T){if(!T&&!a.days){E(y.subtract(Lc(a)));return}a.days?this.focusPreviousPage():a.weeks?E(y.subtract({months:1})):(a.months||a.years)&&E(y.subtract({years:1}))},selectFocusedDate(){R(y)},selectDate(T){R(T)},isFocused:$,setFocused:F,isInvalid(T){return ha(T,o,s)},isSelected(T){return g!=null&&gt(T,g)&&!this.isCellDisabled(T)&&!this.isCellUnavailable(T)},isCellFocused(T){return $&&y&&gt(T,y)},isCellDisabled(T){return e.isDisabled||T.compare(S)<0||T.compare(m)>0||this.isInvalid(T,o,s)},isCellUnavailable(T){return e.isDateUnavailable&&e.isDateUnavailable(T)},isPreviousVisibleRangeInvalid(){let T=S.subtract({days:1});return gt(T,S)||this.isInvalid(T,o,s)},isNextVisibleRangeInvalid(){let T=m.add({days:1});return gt(T,m)||this.isInvalid(T,o,s)},getDatesInWeek(T,B=S){let O=B.add({weeks:T}),L=[];O=Bo(O,r);let j=Ou(O,r);for(let z=0;z<j;z++)L.push(null);for(;L.length<7;){L.push(O);let z=O.add({days:1});if(gt(O,z))break;O=z}for(;L.length<7;)L.push(null);return L}}}function Lc(e){let t={...e};for(let n in e)t[n]=1;return t}function B7(e){let{value:t,defaultValue:n,onChange:r,createCalendar:i,locale:a,visibleDuration:o={months:1},minValue:s,maxValue:l,...u}=e,[c,d]=jo(t,n||null,r),[h,f]=w.useState(null),g="center";if(c&&c.start&&c.end){let B=Jd(cn(c.start),o,a,s,l).add(o).subtract({days:1});c.end.compare(B)>0&&(g="start")}let p=w.useRef(null),[b,v]=w.useState(null),y=w.useMemo(()=>fh(s,b==null?void 0:b.start),[s,b]),x=w.useMemo(()=>dh(l,b==null?void 0:b.end),[l,b]),S=m4({...u,value:c&&c.start,createCalendar:i,locale:a,visibleDuration:o,minValue:y,maxValue:x,selectionAlignment:g}),D=T=>{T&&e.isDateUnavailable&&!e.allowsNonContiguousRanges?(p.current={start:A0(T,S,-1),end:A0(T,S,1)},v(p.current)):(p.current=null,v(null))},[$,F]=w.useState(S.visibleRange);(!Ad(S.visibleRange.start,$.start)||!Ad(S.visibleRange.end,$.end))&&(D(h),F(S.visibleRange));let m=T=>{T?(f(T),D(T)):(f(null),D(null))},C=h?Hc(h,S.focusedDate):c&&Hc(c.start,c.end),I=T=>{if(!e.isReadOnly&&(T=Pr(T,y,x),T=g4(T,S.visibleRange.start,e.isDateUnavailable),!!T))if(!h)m(T);else{let B=Hc(h,T);d({start:R0(B.start,c==null?void 0:c.start),end:R0(B.end,c==null?void 0:c.end)}),m(null)}},[E,R]=w.useState(!1),{isDateUnavailable:P}=e,A=w.useMemo(()=>!c||h?!1:P&&(P(c.start)||P(c.end))?!0:ha(c.start,s,l)||ha(c.end,s,l),[P,c,h,s,l]),M=e.isInvalid||e.validationState==="invalid"||A;return{...S,value:c,setValue:d,anchorDate:h,setAnchorDate:m,highlightedRange:C,validationState:M?"invalid":null,isValueInvalid:M,selectFocusedDate(){I(S.focusedDate)},selectDate:I,highlightDate(T){h&&S.setFocusedDate(T)},isSelected(T){return C&&T.compare(C.start)>=0&&T.compare(C.end)<=0&&!S.isCellDisabled(T)&&!S.isCellUnavailable(T)},isInvalid(T){var B,O;return S.isInvalid(T)||ha(T,(B=p.current)===null||B===void 0?void 0:B.start,(O=p.current)===null||O===void 0?void 0:O.end)},isDragging:E,setDragging:R}}function Hc(e,t){return!e||!t?null:(t.compare(e)<0&&([e,t]=[t,e]),{start:cn(e),end:cn(t)})}function R0(e,t){return e=yt(e,(t==null?void 0:t.calendar)||new fn),t&&"hour"in t?t.set(e):e}function A0(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 O7(e){let[t,n]=jo(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=w.useCallback(()=>{n(!0)},[n]),i=w.useCallback(()=>{n(!1)},[n]),a=w.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:i,toggle:a}}var p4={};p4={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var b4={};b4={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var v4={};v4={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 y4={};y4={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 x4={};x4={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 C4={};C4={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var w4={};w4={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 D4={};D4={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 S4={};S4={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 E4={};E4={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 I4={};I4={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 _4={};_4={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var $4={};$4={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 R4={};R4={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 A4={};A4={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 F4={};F4={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var T4={};T4={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var P4={};P4={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 k4={};k4={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 M4={};M4={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 B4={};B4={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 O4={};O4={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 N4={};N4={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 V4={};V4={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 L4={};L4={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 H4={};H4={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var j4={};j4={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 W4={};W4={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 z4={};z4={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 G4={};G4={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 X4={};X4={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 Z4={};Z4={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var Y4={};Y4={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var U4={};U4={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var J4={};J4={"ar-AE":p4,"bg-BG":b4,"cs-CZ":v4,"da-DK":y4,"de-DE":x4,"el-GR":C4,"en-US":w4,"es-ES":D4,"et-EE":S4,"fi-FI":E4,"fr-FR":I4,"he-IL":_4,"hr-HR":$4,"hu-HU":R4,"it-IT":A4,"ja-JP":F4,"ko-KR":T4,"lt-LT":P4,"lv-LV":k4,"nb-NO":M4,"nl-NL":B4,"pl-PL":O4,"pt-BR":N4,"pt-PT":V4,"ro-RO":L4,"ru-RU":H4,"sk-SK":j4,"sl-SI":W4,"sr-SP":z4,"sv-SE":G4,"tr-TR":X4,"uk-UA":Z4,"zh-CN":Y4,"zh-TW":U4};function N7(e){return e&&e.__esModule?e.default:e}const K4=new Oi(N7(J4));function q4(){return typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US"}function F0(e,t,n,r,i){let a=e!=null&&n!=null&&e.compare(n)>0,o=e!=null&&t!=null&&e.compare(t)<0,s=e!=null&&(r==null?void 0:r(e))||!1,l=a||o||s,u=[];if(l){let c=q4(),d=Oi.getGlobalDictionaryForPackage("@react-stately/datepicker")||K4,h=new Xy(c,d),f=new Vo(c,qd({},i)),g=f.resolvedOptions().timeZone;o&&u.push(h.format("rangeUnderflow",{minValue:f.format(t.toDate(g))})),a&&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:a,rangeUnderflow:o,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!l}}}function V7(e,t,n,r,i){let a=F0(e==null?void 0:e.start,t,n,r,i),o=F0(e==null?void 0:e.end,t,n,r,i),s=iu(a,o);if(e.end!=null&&e.start!=null&&e.end.compare(e.start)<0){let l=Oi.getGlobalDictionaryForPackage("@react-stately/datepicker")||K4;s=iu(s,{isInvalid:!0,validationErrors:[l.getStringForLocale("rangeReversed",q4())],validationDetails:{...Lu,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})}return s}const L7={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},H7={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function qd(e,t){e={...t.shouldForceLeadingZeros?H7:L7,...e};let r=t.granularity||"minute",i=Object.keys(e);var a;let o=i.indexOf((a=t.maxGranularity)!==null&&a!==void 0?a:"year");o<0&&(o=0);let s=i.indexOf(r);if(s<0&&(s=2),o>s)throw new Error("maxGranularity must be greater than granularity");let l=i.slice(o,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&&o===0&&(l.era="short"),l}function js(e){return e&&"hour"in e?e:new yh}function j7(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,a]=w.useState([r,n]);e&&(i[0]!==r||i[1]!==n)&&a([r,n]),t||(t=e?r:i[0]);let o=e?n:i[1];return[t,o]}function W7(e){var t,n;let r=O7(e),[i,a]=jo(e.value,e.defaultValue||null,e.onChange),[o,s]=w.useState(()=>i||{start:null,end:null});i==null&&o.start&&o.end&&(o={start:null,end:null},s(o));let l=i||o,u=k=>{s(k||{start:null,end:null}),k!=null&&k.start&&k.end?a(k):a(null)},c=(l==null?void 0:l.start)||(l==null?void 0:l.end)||e.placeholderValue,[d,h]=j7(c,e.granularity),f=d==="hour"||d==="minute"||d==="second";var g;let p=(g=e.shouldCloseOnSelect)!==null&&g!==void 0?g:!0,[b,v]=w.useState(null),[y,x]=w.useState(null);l&&l.start&&l.end&&(b=l,"hour"in l.start&&(y=l));let S=(k,T)=>{u({start:"timeZone"in T.start?T.start.set(cn(k.start)):Zr(k.start,T.start),end:"timeZone"in T.end?T.end.set(cn(k.end)):Zr(k.end,T.end)}),v(null),x(null),P.commitValidation()},D=k=>{let T=typeof p=="function"?p():p;f?T||k.start&&k.end&&(y!=null&&y.start)&&(y!=null&&y.end)?S(k,{start:(y==null?void 0:y.start)||js(e.placeholderValue),end:(y==null?void 0:y.end)||js(e.placeholderValue)}):v(k):k.start&&k.end?(u(k),P.commitValidation()):v(k),T&&r.setOpen(!1)},$=k=>{b!=null&&b.start&&(b!=null&&b.end)&&k.start&&k.end?S(b,k):x(k)},F=(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",m=w.useMemo(()=>({granularity:d,timeZone:h,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:F}),[d,e.hourCycle,e.shouldForceLeadingZeros,h,e.hideTimeZone,F]),{minValue:C,maxValue:I,isDateUnavailable:E}=e,R=w.useMemo(()=>V7(l,C,I,E,m),[l,C,I,E,m]),P=I7({...e,value:i,name:w.useMemo(()=>[e.startName,e.endName],[e.startName,e.endName]),builtinValidation:R}),A=P.displayValidation.isInvalid,M=e.validationState||(A?"invalid":null);return{...P,value:l,setValue:u,dateRange:b,timeRange:y,granularity:d,hasTime:f,setDate(k,T){D({...b,[k]:T})},setTime(k,T){$({...y,[k]:T})},setDateTime(k,T){u({...l,[k]:T})},setDateRange:D,setTimeRange:$,...r,setOpen(k){!k&&!(l!=null&&l.start&&(l!=null&&l.end))&&(b!=null&&b.start)&&(b!=null&&b.end)&&f&&S(b,{start:(y==null?void 0:y.start)||js(e.placeholderValue),end:(y==null?void 0:y.end)||js(e.placeholderValue)}),r.setOpen(k)},validationState:M,isInvalid:A,formatValue(k,T){if(!l||!l.start||!l.end)return null;let B="timeZone"in l.start?l.start.timeZone:void 0,O=e.granularity||(l.start&&"minute"in l.start?"minute":"day"),L="timeZone"in l.end?l.end.timeZone:void 0,j=e.granularity||(l.end&&"minute"in l.end?"minute":"day"),z=qd(T,{granularity:O,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"}),Y=l.start.toDate(B||"UTC"),G=l.end.toDate(L||"UTC"),H=new Vo(k,z),V;if(B===L&&O===j&&l.start.compare(l.end)!==0){try{let X=H.formatRangeToParts(Y,G),K=-1;for(let ie=0;ie<X.length;ie++){let Z=X[ie];if(Z.source==="shared"&&Z.type==="literal")K=ie;else if(Z.source==="endRange")break}let te="",ue="";for(let ie=0;ie<X.length;ie++)ie<K?te+=X[ie].value:ie>K&&(ue+=X[ie].value);return{start:te,end:ue}}catch{}V=H}else{let X=qd(T,{granularity:j,timeZone:L,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle});V=new Vo(k,X)}return{start:H.format(Y),end:V.format(G)}}}}const Q4=e=>{const t=w.useRef(null),{locale:n}=Nn(),{state:r,date:i}=e,{cellProps:a,buttonProps:o,isSelected:s,isOutsideVisibleRange:l,isDisabled:u,formattedDate:c,isInvalid:d}=S7({date:i},r,t),{focusProps:h}=Hy(),f="highlightedRange"in r?r.highlightedRange?gt(i,r.highlightedRange.start):null:s,g="highlightedRange"in r?r.highlightedRange?gt(i,r.highlightedRange.end):null:s,p=Ou(i,n),b=s&&(f??p===0??i.day===1),v=s&&(g??p===6??i.day===i.calendar.getDaysInMonth(i));return _.jsx("td",{...a,children:_.jsx("div",{...qt(o,h),ref:t,className:`${be["cell-calendar"]} ${b?"1ru-rounded-l-full":""} ${v?"1ru-rounded-r-full":""} ${s?d?"1ru-bg-red-300":"1ru-bg-laba-blue-02":""} ${u?"1ru-disabled":""}`,children:l?_.jsx("div",{className:be["visible-cell-calendar"],children:c}):_.jsx("div",{className:`${be["active-cell-calendar"]} ${u&&!d?be.disabled:""} ${f||g?d?be.error:be.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})})})},Sa=e=>{const t=w.useRef(null),{buttonProps:n}=v7(e,t),{focusProps:r}=Hy();return _.jsx("button",{...qt(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:a})=>{const o=new Date().getFullYear(),s=n.focusedDate.calendar.getMonthsInYear(n.focusedDate),l=Yr({month:"short",timeZone:n.timeZone}),u=(d,h)=>{const f=n.focusedDate.set({month:d});h?(r("date"),n.setFocusedDate(f)):!h&&typeof i=="function"&&i(f)},c=d=>{const h=n.focusedDate.set({year:d});n.setFocusedDate(h)};return _.jsxs("div",{className:`1ru-w-[296px] ${be["container-calendar"]}`,children:[_.jsxs("div",{className:be["header-calendar"],children:[_.jsx(Sa,{isDisabled:n!=null&&n.minValue?n.focusedDate.year<=n.minValue.year:!1,onPress:()=>c(n.focusedDate.year-1),children:typeof e=="function"||w.isValidElement(e)?w.isValidElement(e)?e:e():_.jsx(Kn,{className:"1ru-rotate-90"})}),_.jsx("div",{className:`${be["header-button-calendar"]} ${a.includes("year")?"":be.disabled}`,onClick:()=>{a.includes("year")&&r("year")},children:n.focusedDate.year}),_.jsx(Sa,{isDisabled:n!=null&&n.maxValue?n.focusedDate.year>=n.maxValue.year:!1,onPress:()=>c(n.focusedDate.year+1),children:typeof t=="function"||w.isValidElement(t)?w.isValidElement(t)?t:t():_.jsx(Kn,{className:"-1ru-rotate-90"})})]}),_.jsx("div",{className:be["month-calendar"],children:[...Array(s).keys()].map(d=>{var y,x,S,D;const h=n.focusedDate.set({month:d+1}),f=l.format(h.toDate(n.timeZone)),g=((y=n.value)==null?void 0:y.year)||((S=(x=n.value)==null?void 0:x.start)==null?void 0:S.year)||o,p=n!=null&&n.minValue?h.month<((D=n==null?void 0:n.minValue)==null?void 0:D.month)&&h.year<=n.minValue.year:!1,b=n!=null&&n.maxValue?h.month>n.maxValue.month&&h.year>=n.maxValue.year:!1,v=p||b;return _.jsx("div",{onClick:()=>{v||u(h.month,a.includes("date"))},className:`${be["cell-month"]} ${n.focusedDate.month===h.month&&!v&&h.year===g?be.selected:""} ${n.focusedDate.month!==h.month&&!v?"hover:1ru-bg-laba-blue-01":""} ${v?"1ru-text-gray-400":"1ru-cursor-pointer"}`,children:f},d)})})]})},z7=e=>{const t=Zv(e.state.visibleRange.start,e.locale),{gridProps:n,headerProps:r,weekDays:i}=Fx({},e.state),{prevButtonProps:a,nextButtonProps:o,title:s}=Ax(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 _.jsxs("div",{children:[_.jsxs("div",{className:be["header-calendar"],children:[_.jsx(Sa,{...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():_.jsx(Kn,{className:"1ru-rotate-90"})}),_.jsx("div",{className:be["header-button-calendar"],onClick:()=>e.setActiveTypeCalendar("month"),children:s}),_.jsx(Sa,{...o,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():_.jsx(Kn,{className:"-1ru-rotate-90"})})]}),_.jsxs("table",{...n,children:[_.jsx("thead",{...r,children:_.jsx("tr",{children:i.map((u,c)=>_.jsx("th",{className:be["days-calendar"],children:l(c)},c))})}),_.jsx("tbody",{children:[...new Array(t).keys()].map(u=>_.jsx("tr",{children:e.state.getDatesInWeek(u).map((c,d)=>c?_.jsx(Q4,{state:e.state,date:c},d):_.jsx("td",{},d))},u))})]})]})},G7=({minDate:e,maxDate:t,value:n,time:r,handlerChangeTime:i})=>{const a=e?new Date(e):null,o=t?new Date(t):null,s=a==null?void 0:a.getHours(),l=o==null?void 0:o.getHours(),u=a==null?void 0:a.getMinutes(),c=o==null?void 0:o.getMinutes(),[d,h]=w.useState(!0),f=(v,y,x)=>Array.from({length:(y-v)/x+1},(S,D)=>v+D*x),g=(v,y)=>{typeof i=="function"&&i({hour:v,minut:y,second:r==null?void 0:r.second})},p=()=>{const v=document.getElementById(`calendar-hour-${r==null?void 0:r.hour}`),y=document.getElementById(`calendar-minut-${r==null?void 0:r.minut}`),x=document.getElementById("wrapper-calendar-hour"),S=document.getElementById("wrapper-calendar-minut");v&&x&&x.scrollTo({behavior:"instant",top:v.offsetTop-75}),y&&S&&S.scrollTo({behavior:"instant",top:y.offsetTop-75})},b=(v,y)=>{let x=!0;if(a&&n){const S=n.year===a.getFullYear(),D=n.month===a.getMonth()+1;n.day===a.getDate()&&D&&S?(y==="hour"&&v<(s??0)||y==="minut"&&((r==null?void 0:r.hour)??0)<=a.getHours()&&v<(u??0))&&(x=!1):n.toDate(Ri()).getTime()<a.getTime()&&(x=!1)}if(o&&n){const S=n.year===o.getFullYear(),D=n.month===o.getMonth()+1;n.day===o.getDate()&&D&&S?(y==="hour"&&v>(l??0)||y==="minut"&&((r==null?void 0:r.hour)??0)>=o.getHours()&&v>(c??0))&&(x=!1):n.toDate(Ri()).getTime()>o.getTime()&&(x=!1)}return x};return w.useEffect(()=>{d&&p(),r&&h(!1)},[JSON.stringify(n)]),_.jsxs("div",{className:be["custom-time-calendar"],children:[_.jsx("div",{className:be["header-time"],children:"Atur Waktu"}),_.jsxs("div",{className:be["type-time"],children:[_.jsx("div",{children:"Jam"}),_.jsx("div",{children:"Menit"})]}),_.jsxs("div",{className:"1ru-flex 1ru-justify-around",children:[_.jsx("div",{id:"wrapper-calendar-hour",className:be["container-cell-time"],children:f(0,23,1).map(v=>_.jsx("div",{id:`calendar-hour-${v}`,className:`${be["cell-time"]} ${(r==null?void 0:r.hour)===v?b(v,"hour")?be.selected:be.error:""} ${b(v,"hour")&&(r==null?void 0:r.hour)!=v?be.valid:be.invalid}`,onClick:()=>{b(v,"hour")&&g(v,r==null?void 0:r.minut)},children:v<10?`0${v}`:v},v))}),_.jsx("div",{id:"wrapper-calendar-minut",className:be["container-cell-time"],children:f(0,59,1).map(v=>_.jsx("div",{id:`calendar-minut-${v}`,className:`${be["cell-time"]} ${(r==null?void 0:r.minut)===v?b(v,"minut")?be.selected:be.error:""} ${b(v,"minut")&&(r==null?void 0:r.minut)!=v?be.valid:be.invalid}`,onClick:()=>{b(v,"minut")&&g(r==null?void 0:r.hour,v)},children:v<10?`0${v}`:v},v))})]})]})},Hu=e=>{const t=m4({...e,locale:e.locale,createCalendar:fs}),{title:n}=Ax(e,t),[r,i]=w.useState((e==null?void 0:e.activeType)??"date"),a=o=>{t.setValue(o)};return xa(()=>{e!=null&&e.activeType&&i(e.activeType)},[e==null?void 0:e.activeType]),_.jsxs("div",{className:"1ru-text-laba-base-sr",children:[r==="date"&&_.jsx(_.Fragment,{children:_.jsxs("div",{className:be["container-calendar"],children:[_.jsxs("div",{className:"1ru-flex 1ru-gap-2",children:[_.jsx(z7,{state:t,setActiveTypeCalendar:i,...e}),(e==null?void 0:e.isCustomTime)&&_.jsx(G7,{minDate:e.minDate,maxDate:e.maxDate,time:e.time,value:e.value,handlerChangeTime:e.handlerChangeTime})]}),((e==null?void 0:e.withConfirm)??(e==null?void 0:e.isCustomTime))&&_.jsxs("div",{className:`${be["footer-calendar"]}`,children:[typeof(e==null?void 0:e.buttonReset)=="function"?_.jsx("div",{onClick:()=>e.handlerReset(t),children:e.buttonReset()}):_.jsx(Mn,{variants:"nude-laba-blue-10",size:"small",onClick:()=>e.handlerReset(t),children:"Reset"}),typeof(e==null?void 0:e.buttonSubmit)=="function"?_.jsx("div",{onClick:e.handlerSubmit,children:e.buttonSubmit()}):_.jsx(Mn,{size:"small",onClick:e.handlerSubmit,children:"Terapkan"})]})]})}),r==="month"&&_.jsx(e3,{state:t,setActiveTypeCalendar:i,type:e.type,onChangeMonth:a}),r==="year"&&_.jsx(ev,{state:t,type:e.type,setActiveTypeCalendar:i,title:n,onChangeYear:a})]})},X7=e=>{const t=w.useRef(null),{locale:n}=Nn(),r=B7({...e,locale:n,createCalendar:fs}),i=p=>{let b="";switch(p){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:a,prevButtonProps:o,nextButtonProps:s,title:l}=w7(e,r,t),{gridProps:u,headerProps:c,weekDays:d}=Fx({},r),h=Zv(r.visibleRange.start,n),[f,g]=w.useState("date");return _.jsxs("div",{className:"1ru-text-laba-base-sr",children:[f==="date"&&_.jsx(_.Fragment,{children:_.jsx("div",{...a,ref:t,children:_.jsxs("div",{className:be["container-calendar"],children:[_.jsxs("div",{className:be["header-calendar"],children:[_.jsx(Sa,{...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():_.jsx(Kn,{className:"1ru-rotate-90"})}),_.jsx("div",{className:be["header-button-calendar"],onClick:()=>g("month"),children:l}),_.jsx(Sa,{...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():_.jsx(Kn,{className:"-1ru-rotate-90"})})]}),_.jsxs("table",{...u,cellPadding:"0",className:"flex-1",children:[_.jsx("thead",{...c,className:"text-gray-600",children:_.jsx("tr",{children:d.map((p,b)=>_.jsx("th",{className:be["days-calendar"],children:i(b)},b))})}),_.jsx("tbody",{children:[...new Array(h).keys()].map(p=>_.jsx("tr",{children:r.getDatesInWeek(p).map((b,v)=>b?_.jsx(Q4,{state:r,date:b},v):_.jsx("td",{},v))},p))})]}),e.withConfirm&&_.jsxs("div",{className:be["footer-calendar"],children:[typeof(e==null?void 0:e.buttonReset)=="function"?_.jsx("div",{onClick:()=>e.handlerReset(r),children:e.buttonReset()}):_.jsx(Mn,{variants:"nude-laba-blue-10",size:"small",onClick:()=>e.handlerReset(r),children:"Reset"}),typeof(e==null?void 0:e.buttonSubmit)=="function"?_.jsx("div",{onClick:e.handlerSubmit,children:e.buttonSubmit()}):_.jsx(Mn,{size:"small",onClick:e.handlerSubmit,children:"Terapkan"})]})]})})}),f==="month"&&_.jsx(e3,{state:r,setActiveTypeCalendar:g,type:["date","month","year"]}),f==="year"&&_.jsx(ev,{state:r,setActiveTypeCalendar:g,title:l,type:["date","month","year"]})]})},t3=e=>{const t=W7(e),n=w.useRef(null),{calendarProps:r}=M7(e,t,n);return _.jsx("div",{ref:n,children:_.jsx(X7,{handlerReset:e.handlerReset,handlerSubmit:e.handlerSubmit,withConfirm:e.withConfirm,prevIcon:e.prevIcon,nextIcon:e.nextIcon,buttonReset:e.buttonReset,buttonSubmit:e.buttonSubmit,...r})})},Ws=e=>{let t;const n=new Date(e??new Date);return e&&(t=bh(new Date(n.setHours(n.getHours()+7)).toISOString().slice(0,10))),t},Z7=e=>{const{minDate:t,maxDate:n,value:r,defaultValue:i,withConfirm:a=!1,isCustomTime:o=!1,className:s,classNameButton:l,buttonClick:u,buttonReset:c,buttonSubmit:d,prevIcon:h,nextIcon:f,onChange:g,id:p="date-picker",idPopover:b="date-picker-popover",floatingOptions:v={},offsetPopover:y=5,zIndexPopper:x=1}=e,S=Yr(),{locale:D}=Nn(),$=Ws(t),F=Ws(n),m=w.useRef(null),[C,I]=w.useState(),[E,R]=w.useState(),P=B=>{var Y;const O=new Date;let L=B.toDate(Ri());L.setHours(O.getHours(),O.getMinutes(),O.getSeconds());const j=t?new Date(t):null,z=n?new Date(n):null;if(o){if(L=new Date(new Date(L).setHours((E==null?void 0:E.hour)??0,E==null?void 0:E.minut,E==null?void 0:E.second)),j&&(j==null?void 0:j.toDateString())===new Date(L).toDateString()&&(j==null?void 0:j.toTimeString())>=(L==null?void 0:L.toTimeString())){if(j&&(j.getHours()>L.getHours()||j.getHours()===L.getHours()&&j.getMinutes()>L.getMinutes()))return;L=new Date(j.setSeconds(j.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 j&&S.format(L)===S.format(j)&&j.getTime()>=L.getTime()?L=new Date(j.setSeconds(j.getSeconds()+1)):z&&S.format(L)===S.format(z)&&z.getTime()<=L.getTime()&&(L=new Date(z.setSeconds(z.getSeconds()-1)));typeof g=="function"&&(g(L),(Y=m.current)==null||Y.setShow(!1))},A=(B,O)=>{I(B),(O??(!a&&!o))&&P(B)},M=B=>{R(B)},k=B=>{const O=new Date(r??new Date);R({hour:O.getHours(),minut:O.getMinutes(),second:O.getSeconds()}),I(Ws(r))},T=()=>{C&&A(C,!0)};return _.jsxs(_.Fragment,{children:[_.jsx("div",{id:p,onClick:B=>{var O;(O=m.current)==null||O.handlerShow(B),k()},className:l,children:typeof u=="function"?u(r):r?new Date(r).toDateString():"Pilih Tanggal"}),_.jsx(Ir,{zIndex:x,ref:m,offset:y,id:b,floatingOptions:{placement:"bottom-end",...v},children:_.jsx("div",{className:s??"",children:_.jsx(Fh,{locale:"id-ID",children:_.jsx(Hu,{minValue:$,maxValue:F,minDate:t,maxDate:n,time:E,locale:D,value:C,buttonReset:c,buttonSubmit:d,prevIcon:h,nextIcon:f,createCalendar:fs,defaultValue:Ws(r),onChange:A,handlerReset:()=>{var B;typeof g=="function"&&(g(i),(B=m.current)==null||B.setShow(!1))},handlerSubmit:T,handlerChangeTime:M,withConfirm:a,isCustomTime:o,type:["date","month","year"]})})})})]})},jc=e=>{let t;const n=new Date(e??new Date);return e&&(t=bh(new Date(n.setHours(n.getHours()+7)).toISOString().slice(0,10))),t},T0=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 ut(t.getFullYear(),t.getMonth()+1,t.getDate()),i=new ut(n.getFullYear(),n.getMonth()+1,n.getDate());return e?{start:r,end:i}:void 0},n3=e=>{const{minDate:t,maxDate:n,defaultValue:r,withConfirm:i,prevIcon:a,nextIcon:o,buttonReset:s,buttonSubmit:l,typePicker:u="RANGE",onChange:c,onReset:d}=e,{locale:h}=Nn(),f=jc(t),g=jc(n),[p,b]=w.useState(),v=D=>{typeof c=="function"&&c(D)},y=(D,$)=>{const F=D.start.toDate(Ri()),m=D.end.toDate(Ri());b(D),($??!i)&&v({startDate:F,endDate:new Date(m.setHours(23,59,59))})},x=D=>{if(typeof d=="function")d();else if(r&&D){const $=new Date(r.endDate??new Date),F=D.focusedDate.set({month:$.getMonth()+1,year:$.getFullYear()});D.setFocusedDate(F)}b(T0(r))},S=()=>{p&&y(p,!0)};return _.jsx("div",{className:"1ru-flex 1ru-flex-col",children:_.jsxs(Fh,{locale:"id-ID",children:[u==="RANGE"&&_.jsx(t3,{defaultValue:T0(r),value:p,minValue:f,maxValue:g,withConfirm:i,prevIcon:a,nextIcon:o,buttonReset:s,buttonSubmit:l,onChange:y,handlerReset:x,handlerSubmit:S}),u==="SINGLE"&&_.jsx(Hu,{defaultValue:jc(r==null?void 0:r.endDate),value:p==null?void 0:p.end,minValue:f,maxValue:g,minDate:t,maxDate:n,withConfirm:i,prevIcon:a,nextIcon:o,buttonReset:s,buttonSubmit:l,locale:h,createCalendar:fs,onChange:D=>y({start:D,end:D}),handlerReset:x,handlerSubmit:S,type:["date","month","year"]})]})})},Y7=({value:e,prevIcon:t,nextIcon:n,buttonReset:r,buttonSubmit:i,className:a,classNameButton:o,buttonClick:s,buttonList:l,typePicker:u="RANGE",onChange:c,idPopover:d="filter-date-popover",id:h="filter-date",floatingOptions:f={},offsetPopover:g=5,zIndexPopper:p=0,defaultValueLabel:b,mountedExecuteChange:v=!1,formatingDate:y})=>{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"}],S=w.useRef(null),[D,$]=w.useState(),[F,m]=w.useState(),[C,I]=w.useState(),E=(G,H)=>{const V=new Date(G??new Date);return H==="start"?new Date(V.setHours(0,0,0)):new Date(V.setHours(23,59,59))},R=()=>{const G=new Date;return{startDate:G,endDate:G}},P=()=>{const G=new Date;G.setDate(G.getDate()-G.getDay());const H=new Date;return H.setDate(H.getDate()+(6-H.getDay())),{startDate:G,endDate:H}},A=()=>{const G=new Date,H=new Date(G.getFullYear(),G.getMonth(),1),V=new Date(G.getFullYear(),G.getMonth()+1,0);return{startDate:H,endDate:V}},M=()=>{const G=new Date(new Date().getFullYear(),0,1),H=new Date(new Date().getFullYear(),11,31);return{startDate:G,endDate:H}},k=()=>{const G=new Date(new Date().setDate(new Date().getDate()-1));return{startDate:G,endDate:G}},T=()=>{const G=new Date;G.setDate(G.getDate()-(7+G.getDay()));const H=new Date;return H.setDate(H.getDate()-(H.getDay()+1)),{startDate:G,endDate:H}},B=()=>{const G=new Date,H=new Date(G.getFullYear(),G.getMonth()-1,1),V=new Date(G.getFullYear(),G.getMonth(),0);return{startDate:H,endDate:V}},O=()=>{const G=new Date(new Date().getFullYear()-1,0,1),H=new Date(new Date().getFullYear()-1,11,31);return{startDate:G,endDate:H}},L=(G,H)=>{var V;if(I(G),typeof c=="function"){let X=G;y==="string"&&G?X={startDate:na(G.startDate,y),endDate:na(G.endDate,y)}:typeof y=="boolean"&&G&&(X={startDate:na(G.startDate,"yyyy-MM-dd'T'HH:mm:ss.SSSxxx"),endDate:na(G.endDate,"yyyy-MM-dd'T'HH:mm:ss.SSSxxx")}),(V=S.current)==null||V.setShow(!1),c(X,H??"")}},j=G=>{$(G);let H;if((G==null?void 0:G.key)!=="custom"){switch(m(G),G==null?void 0:G.key){case"thisDay":H=R();break;case"thisWeek":H=P();break;case"thisMonth":H=A();break;case"thisYear":H=M();break;case"yesterday":H=k();break;case"lastWeek":H=T();break;case"lastMonth":H=B();break;case"lastYear":H=O();break}H&&L({startDate:E(H.startDate,"start"),endDate:E(H.endDate,"end")},G==null?void 0:G.value)}},z=(G,H)=>{const V=(l??x).find(X=>X.key===G);!G&&!V?(H||L(),j(void 0),m(void 0)):typeof G=="object"?(H||L({startDate:E(G.startDate,"start"),endDate:E(G.endDate,"end")},"Kustom"),j({key:"custom",value:"Kustom"}),m({key:"custom",value:"Kustom"})):(j(V),m(V))},Y=()=>{var G;if(e){I(e);const H=(G=l??x)==null?void 0:G.find(V=>V.key===e.label||V.value===e.label);Object.keys(H||{}).length>0&&$(H)}else $(void 0),m(void 0)};return w.useEffect(()=>{Y()},[JSON.stringify(e)]),w.useEffect(()=>{z(b??e,!v)},[]),_.jsxs(_.Fragment,{children:[_.jsxs("div",{onClick:G=>{var H;(H=S.current)==null||H.handlerShow(G),Y()},className:o,id:h,children:[w.isValidElement(s)&&s,typeof s=="function"?s(C,F):"Pilih Filter"]}),_.jsx(Ir,{zIndex:p,ref:S,offset:g,id:d,floatingOptions:{placement:"bottom-end",...f},children:_.jsxs("div",{className:`${be["container-filter-date"]} ${a}`,children:[_.jsx("div",{children:(l??x).map((G,H)=>_.jsx("div",{className:`${be["button-filter-date"]} hover:1ru-bg-laba-blue-01 ${(D==null?void 0:D.key)===G.key?"1ru-text-laba-blue-10":""}`,onClick:()=>j(G),children:G.value},H))}),(D==null?void 0:D.key)==="custom"&&_.jsx("div",{children:_.jsx(n3,{defaultValue:C,prevIcon:t,nextIcon:n,buttonReset:r,buttonSubmit:i,onChange:G=>{L(G,"Kustom"),m({key:"custom",value:"Kustom"})},onReset:()=>{z(b)},typePicker:u,withConfirm:!0})})]})})]})},U7="_active_z4wg4_31",J7="_disabled_z4wg4_34",It={"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:U7,disabled:J7,"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"},K7=({value:e,disabled:t,title:n="",description:r="",size:i="regular",kind:a="payhere",id:o,className:s,classNameTitle:l,classNameDesc:u,onChange:c})=>{const d={size:{large:It["switch-l"],regular:It["switch-r"],small:It["switch-s"]},kind:{laba:It["switch-laba"],payhere:It["switch-payhere"]},text:{title:{laba:It["title-switch-laba"],payhere:It["title-switch-payhere"]},desc:{laba:It["description-switch-laba"],payhere:It["description-switch-payhere"]}}},h=()=>{!t&&typeof c=="function"&&c(!e)};return _.jsxs("div",{id:o??"1ru-switch",className:`1ru-flex 1ru-gap-2 ${s??""}`,onClick:f=>f.stopPropagation(),children:[_.jsxs("label",{children:[_.jsx("input",{type:"checkbox",checked:e,onChange:h,className:"1ru-hidden"}),_.jsx("span",{className:`${d.size[i]} ${d.kind[a]} ${e?It.active:""} ${t?It.disabled:""} ${!e&&t?It["disabled-nonactive"]:""}`,children:_.jsx("span",{className:`${It["thumb-switch"]} ${e?It.active:""} ${t?It.disabled:""} ${!e&&t?It["disabled-nonactive"]:""}`})})]}),(n||r)&&_.jsxs("div",{children:[n&&_.jsx("div",{className:`${d.text.title[a]} ${l}`,children:n}),r&&_.jsx("div",{className:`${d.text.desc[a]} ${u}`,children:r})]})]})},q7="_loading_11t4k_10",_e={"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:q7,"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"},Q7=({className:e=""})=>_.jsx("svg",{className:`${_e["icon-loading"]} ${e??""}`,xmlns:"http://www.w3.org/2000/svg",width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",children:_.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
113
+ `]))),B9=function(t,n){var r=t.isFocused,i=t.size,a=t.theme,o=a.colors,s=a.spacing.baseUnit;return fe({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?o.neutral60:o.neutral20,padding:s*2})},vc=function(t){var n=t.delay,r=t.offset;return de("span",{css:sh({animation:"".concat(M9," 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 */")})},O9=function(t){var n=t.innerProps,r=t.isRtl,i=t.size,a=i===void 0?4:i,o=_r(t,I9);return de("div",ge({},st(fe(fe({},o),{},{innerProps:n,isRtl:r,size:a}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),de(vc,{delay:0,offset:r}),de(vc,{delay:160,offset:!0}),de(vc,{delay:320,offset:!r}))},N9=function(t,n){var r=t.isDisabled,i=t.isFocused,a=t.theme,o=a.colors,s=a.borderRadius,l=a.spacing;return fe({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?o.neutral5:o.neutral0,borderColor:r?o.neutral10:i?o.primary:o.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(o.primary):void 0,"&:hover":{borderColor:i?o.primary:o.neutral30}})},V9=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,a=t.innerRef,o=t.innerProps,s=t.menuIsOpen;return de("div",ge({ref:a},st(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":i,"control--menu-is-open":s}),o,{"aria-disabled":r||void 0}),n)},L9=V9,H9=["data"],j9=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},W9=function(t){var n=t.children,r=t.cx,i=t.getStyles,a=t.getClassNames,o=t.Heading,s=t.headingProps,l=t.innerProps,u=t.label,c=t.theme,d=t.selectProps;return de("div",ge({},st(t,"group",{group:!0}),l),de(o,ge({},s,{selectProps:d,theme:c,getStyles:i,getClassNames:a,cx:r}),u),de("div",null,n))},z9=function(t,n){var r=t.theme,i=r.colors,a=r.spacing;return fe({label:"group",cursor:"default",display:"block"},n?{}:{color:i.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:a.baseUnit*3,paddingRight:a.baseUnit*3,textTransform:"uppercase"})},G9=function(t){var n=xv(t);n.data;var r=_r(n,H9);return de("div",ge({},st(t,"groupHeading",{"group-heading":!0}),r))},X9=W9,Z9=["innerRef","isDisabled","isHidden","inputClassName"],Y9=function(t,n){var r=t.isDisabled,i=t.value,a=t.theme,o=a.spacing,s=a.colors;return fe(fe({visibility:r?"hidden":"visible",transform:i?"translateZ(0)":""},U9),n?{}:{margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,color:s.neutral80})},Rv={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},U9={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":fe({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Rv)},J9=function(t){return fe({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},Rv)},K9=function(t){var n=t.cx,r=t.value,i=xv(t),a=i.innerRef,o=i.isDisabled,s=i.isHidden,l=i.inputClassName,u=_r(i,Z9);return de("div",ge({},st(t,"input",{"input-container":!0}),{"data-value":r||""}),de("input",ge({className:n({input:!0},l),ref:a,style:J9(s),disabled:o},u)))},q9=K9,Q9=function(t,n){var r=t.theme,i=r.spacing,a=r.borderRadius,o=r.colors;return fe({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:o.neutral10,borderRadius:a/2,margin:i.baseUnit/2})},eR=function(t,n){var r=t.theme,i=r.borderRadius,a=r.colors,o=t.cropWithEllipsis;return fe({overflow:"hidden",textOverflow:o||o===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:i/2,color:a.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},tR=function(t,n){var r=t.theme,i=r.spacing,a=r.borderRadius,o=r.colors,s=t.isFocused;return fe({alignItems:"center",display:"flex"},n?{}:{borderRadius:a/2,backgroundColor:s?o.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}})},Av=function(t){var n=t.children,r=t.innerProps;return de("div",r,n)},nR=Av,rR=Av;function iR(e){var t=e.children,n=e.innerProps;return de("div",ge({role:"button"},n),t||de(lh,{size:14}))}var aR=function(t){var n=t.children,r=t.components,i=t.data,a=t.innerProps,o=t.isDisabled,s=t.removeProps,l=t.selectProps,u=r.Container,c=r.Label,d=r.Remove;return de(u,{data:i,innerProps:fe(fe({},st(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":o})),a),selectProps:l},de(c,{data:i,innerProps:fe({},st(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},n),de(d,{data:i,innerProps:fe(fe({},st(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},s),selectProps:l}))},oR=aR,sR=function(t,n){var r=t.isDisabled,i=t.isFocused,a=t.isSelected,o=t.theme,s=o.spacing,l=o.colors;return fe({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:a?l.primary:i?l.primary25:"transparent",color:r?l.neutral20:a?l.neutral0:"inherit",padding:"".concat(s.baseUnit*2,"px ").concat(s.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:a?l.primary:l.primary50}})},lR=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,a=t.isSelected,o=t.innerRef,s=t.innerProps;return de("div",ge({},st(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":i,"option--is-selected":a}),{ref:o,"aria-disabled":r},s),n)},uR=lR,cR=function(t,n){var r=t.theme,i=r.spacing,a=r.colors;return fe({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:a.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},dR=function(t){var n=t.children,r=t.innerProps;return de("div",ge({},st(t,"placeholder",{placeholder:!0}),r),n)},fR=dR,hR=function(t,n){var r=t.isDisabled,i=t.theme,a=i.spacing,o=i.colors;return fe({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?o.neutral40:o.neutral80,marginLeft:a.baseUnit/2,marginRight:a.baseUnit/2})},gR=function(t){var n=t.children,r=t.isDisabled,i=t.innerProps;return de("div",ge({},st(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),i),n)},mR=gR,Fv={ClearIndicator:T9,Control:L9,DropdownIndicator:A9,DownChevron:_v,CrossIcon:lh,Group:X9,GroupHeading:G9,IndicatorsContainer:S9,IndicatorSeparator:k9,Input:q9,LoadingIndicator:O9,Menu:c9,MenuList:f9,MenuPortal:v9,LoadingMessage:p9,NoOptionsMessage:m9,MultiValue:oR,MultiValueContainer:nR,MultiValueLabel:rR,MultiValueRemove:iR,Option:uR,Placeholder:fR,SelectContainer:x9,SingleValue:mR,ValueContainer:w9},pR=function(t){return fe(fe({},Fv),t.components)},Bm=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function bR(e,t){return!!(e===t||Bm(e)&&Bm(t))}function vR(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!bR(e[n],t[n]))return!1;return!0}function yR(e,t){t===void 0&&(t=vR);var n=null;function r(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];if(n&&n.lastThis===this&&t(i,n.lastArgs))return n.lastResult;var o=e.apply(this,i);return n={lastResult:o,lastArgs:i,lastThis:this},o}return r.clear=function(){n=null},r}function xR(){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 CR=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:xR},wR=function(t){return de("span",ge({css:CR},t))},Om=wR,DR={guidance:function(t){var n=t.isSearchable,r=t.isMulti,i=t.tabSelectsValue,a=t.context,o=t.isInitialFocus;switch(a){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 o?"".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,a=t.labels,o=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(a.length>1?"s":""," ").concat(a.join(","),", selected.");case"select-option":return o?"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,a=t.label,o=a===void 0?"":a,s=t.selectValue,l=t.isDisabled,u=t.isSelected,c=t.isAppleDevice,d=function(p,b){return p&&p.length?"".concat(p.indexOf(b)+1," of ").concat(p.length):""};if(n==="value"&&s)return"value ".concat(o," focused, ").concat(d(s,r),".");if(n==="menu"&&c){var h=l?" disabled":"",f="".concat(u?" selected":"").concat(h);return"".concat(o).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:"",".")}},SR=function(t){var n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,a=t.focusableOptions,o=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,p=l.isOptionDisabled,b=l.isSearchable,v=l.menuIsOpen,y=l.options,x=l.screenReaderStatus,S=l.tabSelectsValue,D=l.isLoading,$=l["aria-label"],F=l["aria-live"],m=w.useMemo(function(){return fe(fe({},DR),d||{})},[d]),C=w.useMemo(function(){var M="";if(n&&m.onChange){var k=n.option,T=n.options,B=n.removedValue,O=n.removedValues,L=n.value,j=function(K){return Array.isArray(K)?null:K},z=B||k||j(L),Y=z?h(z):"",G=T||O||void 0,H=G?G.map(h):[],V=fe({isDisabled:z&&p(z,s),label:Y,labels:H},n);M=m.onChange(V)}return M},[n,m,p,s,h]),I=w.useMemo(function(){var M="",k=r||i,T=!!(r&&s&&s.includes(r));if(k&&m.onFocus){var B={focused:k,label:h(k),isDisabled:p(k,s),isSelected:T,options:a,context:k===r?"menu":"value",selectValue:s,isAppleDevice:c};M=m.onFocus(B)}return M},[r,i,h,p,m,a,s,c]),E=w.useMemo(function(){var M="";if(v&&y.length&&!D&&m.onFilter){var k=x({count:a.length});M=m.onFilter({inputValue:f,resultsMessage:k})}return M},[a,f,v,m,y,x,D]),R=(n==null?void 0:n.action)==="initial-input-focus",P=w.useMemo(function(){var M="";if(m.guidance){var k=i?"value":v?"menu":"input";M=m.guidance({"aria-label":$,context:k,isDisabled:r&&p(r,s),isMulti:g,isSearchable:b,tabSelectsValue:S,isInitialFocus:R})}return M},[$,r,i,g,p,b,v,m,s,S,R]),A=de(w.Fragment,null,de("span",{id:"aria-selection"},C),de("span",{id:"aria-focused"},I),de("span",{id:"aria-results"},E),de("span",{id:"aria-guidance"},P));return de(w.Fragment,null,de(Om,{id:u},R&&A),de(Om,{"aria-live":F,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},o&&!R&&A))},ER=SR,Rd=[{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źẑżžẓẕƶȥɀⱬꝣ"}],IR=new RegExp("["+Rd.map(function(e){return e.letters}).join("")+"]","g"),Tv={};for(var yc=0;yc<Rd.length;yc++)for(var xc=Rd[yc],Cc=0;Cc<xc.letters.length;Cc++)Tv[xc.letters[Cc]]=xc.base;var Pv=function(t){return t.replace(IR,function(n){return Tv[n]})},_R=yR(Pv),Nm=function(t){return t.replace(/^\s+|\s+$/g,"")},$R=function(t){return"".concat(t.label," ").concat(t.value)},RR=function(t){return function(n,r){if(n.data.__isNew__)return!0;var i=fe({ignoreCase:!0,ignoreAccents:!0,stringify:$R,trim:!0,matchFrom:"any"},t),a=i.ignoreCase,o=i.ignoreAccents,s=i.stringify,l=i.trim,u=i.matchFrom,c=l?Nm(r):r,d=l?Nm(s(n)):s(n);return a&&(c=c.toLowerCase(),d=d.toLowerCase()),o&&(c=_R(c),d=Pv(d)),u==="start"?d.substr(0,c.length)===c:d.indexOf(c)>-1}},AR=["innerRef"];function FR(e){var t=e.innerRef,n=_r(e,AR),r=n9(n,"onExited","in","enter","exit","appear");return de("input",ge({ref:t},r,{css:sh({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 TR=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function PR(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,a=e.onTopLeave,o=w.useRef(!1),s=w.useRef(!1),l=w.useRef(0),u=w.useRef(null),c=w.useCallback(function(b,v){if(u.current!==null){var y=u.current,x=y.scrollTop,S=y.scrollHeight,D=y.clientHeight,$=u.current,F=v>0,m=S-D-x,C=!1;m>v&&o.current&&(r&&r(b),o.current=!1),F&&s.current&&(a&&a(b),s.current=!1),F&&v>m?(n&&!o.current&&n(b),$.scrollTop=S,C=!0,o.current=!0):!F&&-v>x&&(i&&!s.current&&i(b),$.scrollTop=0,C=!0,s.current=!0),C&&TR(b)}},[n,r,i,a]),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 v=l.current-b.changedTouches[0].clientY;c(b,v)},[c]),g=w.useCallback(function(b){if(b){var v=Q6?{passive:!1}:!1;b.addEventListener("wheel",d,v),b.addEventListener("touchstart",h,v),b.addEventListener("touchmove",f,v)}},[f,h,d]),p=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(){p(b)}}},[t,g,p]),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),Oa=0,Zi={capture:!1,passive:!1};function kR(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,i=w.useRef({}),a=w.useRef(null),o=w.useCallback(function(l){if(Gm){var u=document.body,c=u&&u.style;if(r&&Vm.forEach(function(g){var p=c&&c[g];i.current[g]=p}),r&&Oa<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 p=Lm[g];c&&(c[g]=p)}),c&&(c.paddingRight="".concat(f,"px"))}u&&zm()&&(u.addEventListener("touchmove",Hm,Zi),l&&(l.addEventListener("touchstart",Wm,Zi),l.addEventListener("touchmove",jm,Zi))),Oa+=1}},[r]),s=w.useCallback(function(l){if(Gm){var u=document.body,c=u&&u.style;Oa=Math.max(Oa-1,0),r&&Oa<1&&Vm.forEach(function(d){var h=i.current[d];c&&(c[d]=h)}),u&&zm()&&(u.removeEventListener("touchmove",Hm,Zi),l&&(l.removeEventListener("touchstart",Wm,Zi),l.removeEventListener("touchmove",jm,Zi)))}},[r]);return w.useEffect(function(){if(t){var l=a.current;return o(l),function(){s(l)}}},[t,o,s]),function(l){a.current=l}}function MR(){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 BR=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},OR=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:MR};function NR(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=r===void 0?!0:r,a=e.onBottomArrive,o=e.onBottomLeave,s=e.onTopArrive,l=e.onTopLeave,u=PR({isEnabled:i,onBottomArrive:a,onBottomLeave:o,onTopArrive:s,onTopLeave:l}),c=kR({isEnabled:n}),d=function(f){u(f),c(f)};return de(w.Fragment,null,n&&de("div",{onClick:BR,css:OR}),t(d))}function VR(){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 LR=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:VR},HR=function(t){var n=t.name,r=t.onFocus;return de("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:LR,value:"",onChange:function(){}})},jR=HR;function uh(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 WR(){return uh(/^iPhone/i)}function kv(){return uh(/^Mac/i)}function zR(){return uh(/^iPad/i)||kv()&&navigator.maxTouchPoints>1}function GR(){return WR()||zR()}function XR(){return kv()||GR()}var ZR=function(t){return t.label},YR=function(t){return t.label},UR=function(t){return t.value},JR=function(t){return!!t.isDisabled},KR={clearIndicator:F9,container:y9,control:N9,dropdownIndicator:R9,group:j9,groupHeading:z9,indicatorsContainer:D9,indicatorSeparator:P9,input:Y9,loadingIndicator:B9,loadingMessage:g9,menu:s9,menuList:d9,menuPortal:b9,multiValue:Q9,multiValueLabel:eR,multiValueRemove:tR,noOptionsMessage:h9,option:sR,placeholder:cR,singleValue:hR,valueContainer:C9},qR={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%)"},QR=4,Mv=4,eA=38,tA=Mv*2,nA={baseUnit:Mv,controlHeight:eA,menuGutter:tA},wc={borderRadius:QR,colors:qR,spacing:nA},rA={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:km(),captureMenuScroll:!km(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:RR(),formatGroupLabel:ZR,getOptionLabel:YR,getOptionValue:UR,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:JR,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!K6(),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 Xm(e,t,n,r){var i=Nv(e,t,n),a=Vv(e,t,n),o=Ov(e,t),s=Yl(e,t);return{type:"option",data:t,isDisabled:i,isSelected:a,label:o,value:s,index:r}}function pl(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(o,s){return Xm(e,o,t,s)}).filter(function(o){return Ym(e,o)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var a=Xm(e,n,t,r);return Ym(e,a)?a:void 0}).filter(e9)}function Bv(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,Jf(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function Zm(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,Jf(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 iA(e,t){return Bv(pl(e,t))}function Ym(e,t){var n=e.inputValue,r=n===void 0?"":n,i=t.data,a=t.isSelected,o=t.label,s=t.value;return(!Hv(e)||!a)&&Lv(e,{label:o,value:s,data:i},r)}function aA(e,t){var n=e.focusedValue,r=e.selectValue,i=r.indexOf(n);if(i>-1){var a=t.indexOf(n);if(a>-1)return n;if(i<t.length)return t[i]}return null}function oA(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var Dc=function(t,n){var r,i=(r=t.find(function(a){return a.data===n}))===null||r===void 0?void 0:r.id;return i||null},Ov=function(t,n){return t.getOptionLabel(n)},Yl=function(t,n){return t.getOptionValue(n)};function Nv(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function Vv(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=Yl(e,t);return n.some(function(i){return Yl(e,i)===r})}function Lv(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var Hv=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},sA=1,jv=function(e){D$(n,e);var t=I$(n);function n(r){var i;if(C$(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=XR(),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),p=i.isOptionDisabled(l,f);if(g){var b=i.getOptionValue(l);i.setValue(f.filter(function(v){return i.getOptionValue(v)!==b}),"deselect-option",l)}else if(!p)d?i.setValue([].concat(Jf(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=Ms(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(Ms(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=Ms(l,d,d[0]||null);i.onChange(h,{action:"pop-value",removedValue:c})},i.getFocusedOptionId=function(l){return Dc(i.state.focusableOptionsWithIds,l)},i.getFocusableOptionsWithIds=function(){return Zm(pl(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 X6.apply(void 0,[i.props.classNamePrefix].concat(u))},i.getOptionLabel=function(l){return Ov(i.props,l)},i.getOptionValue=function(l){return Yl(i.props,l)},i.getStyles=function(l,u){var c=i.props.unstyled,d=KR[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 pR(i.props)},i.buildCategorizedOptions=function(){return pl(i.props,i.state.selectValue)},i.getCategorizedOptions=function(){return i.props.menuIsOpen?i.buildCategorizedOptions():[]},i.buildFocusableOptions=function(){return Bv(i.buildCategorizedOptions())},i.getFocusableOptions=function(){return i.props.menuIsOpen?i.buildFocusableOptions():[]},i.ariaOnChange=function(l,u){i.setState({ariaSelection:fe({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&&Mu(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 Hv(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,p=u.isDisabled,b=u.menuIsOpen,v=u.onKeyDown,y=u.tabSelectsValue,x=u.openMenuOnFocus,S=i.state,D=S.focusedOption,$=S.focusedValue,F=S.selectValue;if(!p&&!(typeof v=="function"&&(v(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.removeValue($);else{if(!d)return;c?i.popValue():g&&i.clearValue()}break;case"Tab":if(i.isComposing||l.shiftKey||!b||!y||!D||x&&i.isOptionSelected(D,F))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||++sA),i.state.selectValue=Tm(r.value),r.menuIsOpen&&i.state.selectValue.length){var a=i.getFocusableOptionsWithIds(),o=i.buildFocusableOptions(),s=o.indexOf(i.state.selectValue[0]);i.state.focusableOptionsWithIds=a,i.state.focusedOption=o[s],i.state.focusedOptionId=Dc(a,o[s])}return i}return w$(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&&Pm(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isDisabled,s=a.menuIsOpen,l=this.state.isFocused;(l&&!o&&i.isDisabled||l&&s&&!i.menuIsOpen)&&this.focusInput(),l&&o&&!i.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!o&&i.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Pm(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,a){this.props.onInputChange(i,a)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(i){var a=this,o=this.state,s=o.selectValue,l=o.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 a.onMenuOpen()})}},{key:"focusValue",value:function(i){var a=this.state,o=a.selectValue,s=a.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var l=o.indexOf(s);s||(l=-1);var u=o.length-1,c=-1;if(o.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:o[c]})}}}},{key:"focusOption",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",a=this.props.pageSize,o=this.state.focusedOption,s=this.getFocusableOptions();if(s.length){var l=0,u=s.indexOf(o);o||(u=-1),i==="up"?l=u>0?u-1:s.length-1:i==="down"?l=(u+1)%s.length:i==="pageup"?(l=u-a,l<0&&(l=0)):i==="pagedown"?(l=u+a,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(wc):fe(fe({},wc),this.props.theme):wc}},{key:"getCommonProps",value:function(){var i=this.clearValue,a=this.cx,o=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,p=this.hasValue();return{clearValue:i,cx:a,getStyles:o,getClassNames:s,getValue:l,hasValue:p,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,a=i.isClearable,o=i.isMulti;return a===void 0?o:a}},{key:"isOptionDisabled",value:function(i,a){return Nv(this.props,i,a)}},{key:"isOptionSelected",value:function(i,a){return Vv(this.props,i,a)}},{key:"filterOption",value:function(i,a){return Lv(this.props,i,a)}},{key:"formatOptionLabel",value:function(i,a){if(typeof this.props.formatOptionLabel=="function"){var o=this.props.inputValue,s=this.state.selectValue;return this.props.formatOptionLabel(i,{context:a,inputValue:o,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,a=i.isDisabled,o=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,p=this.state,b=p.inputIsHidden,v=p.ariaSelection,y=this.commonProps,x=s||this.getElementId("input"),S=fe(fe(fe({"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")}),!o&&{"aria-readonly":!0}),this.hasValue()?(v==null?void 0:v.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return o?W.createElement(g,ge({},y,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:x,innerRef:this.getInputRef,isDisabled:a,isHidden:b,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:c,type:"text",value:l},S)):W.createElement(FR,ge({id:x,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Xl,onFocus:this.onInputFocus,disabled:a,tabIndex:u,inputMode:"none",form:c,value:""},S))}},{key:"renderPlaceholderOrValue",value:function(){var i=this,a=this.getComponents(),o=a.MultiValue,s=a.MultiValueContainer,l=a.MultiValueLabel,u=a.MultiValueRemove,c=a.SingleValue,d=a.Placeholder,h=this.commonProps,f=this.props,g=f.controlShouldRenderValue,p=f.isDisabled,b=f.isMulti,v=f.inputValue,y=f.placeholder,x=this.state,S=x.selectValue,D=x.focusedValue,$=x.isFocused;if(!this.hasValue()||!g)return v?null:W.createElement(d,ge({},h,{key:"placeholder",isDisabled:p,isFocused:$,innerProps:{id:this.getElementId("placeholder")}}),y);if(b)return S.map(function(m,C){var I=m===D,E="".concat(i.getOptionLabel(m),"-").concat(i.getOptionValue(m));return W.createElement(o,ge({},h,{components:{Container:s,Label:l,Remove:u},isFocused:I,isDisabled:p,key:E,index:C,removeProps:{onClick:function(){return i.removeValue(m)},onTouchEnd:function(){return i.removeValue(m)},onMouseDown:function(P){P.preventDefault()}},data:m}),i.formatOptionLabel(m,"value"))});if(v)return null;var F=S[0];return W.createElement(c,ge({},h,{data:F,isDisabled:p}),this.formatOptionLabel(F,"value"))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),a=i.ClearIndicator,o=this.commonProps,s=this.props,l=s.isDisabled,u=s.isLoading,c=this.state.isFocused;if(!this.isClearable()||!a||l||!this.hasValue()||u)return null;var d={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return W.createElement(a,ge({},o,{innerProps:d,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),a=i.LoadingIndicator,o=this.commonProps,s=this.props,l=s.isDisabled,u=s.isLoading,c=this.state.isFocused;if(!a||!u)return null;var d={"aria-hidden":"true"};return W.createElement(a,ge({},o,{innerProps:d,isDisabled:l,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),a=i.DropdownIndicator,o=i.IndicatorSeparator;if(!a||!o)return null;var s=this.commonProps,l=this.props.isDisabled,u=this.state.isFocused;return W.createElement(o,ge({},s,{isDisabled:l,isFocused:u}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),a=i.DropdownIndicator;if(!a)return null;var o=this.commonProps,s=this.props.isDisabled,l=this.state.isFocused,u={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return W.createElement(a,ge({},o,{innerProps:u,isDisabled:s,isFocused:l}))}},{key:"renderMenu",value:function(){var i=this,a=this.getComponents(),o=a.Group,s=a.GroupHeading,l=a.Menu,u=a.MenuList,c=a.MenuPortal,d=a.LoadingMessage,h=a.NoOptionsMessage,f=a.Option,g=this.commonProps,p=this.state.focusedOption,b=this.props,v=b.captureMenuScroll,y=b.inputValue,x=b.isLoading,S=b.loadingMessage,D=b.minMenuHeight,$=b.maxMenuHeight,F=b.menuIsOpen,m=b.menuPlacement,C=b.menuPosition,I=b.menuPortalTarget,E=b.menuShouldBlockScroll,R=b.menuShouldScrollIntoView,P=b.noOptionsMessage,A=b.onMenuScrollToTop,M=b.onMenuScrollToBottom;if(!F)return null;var k=function(Y,G){var H=Y.type,V=Y.data,X=Y.isDisabled,K=Y.isSelected,te=Y.label,ue=Y.value,ie=p===V,Z=X?void 0:function(){return i.onOptionHover(V)},me=X?void 0:function(){return i.selectOption(V)},he="".concat(i.getElementId("option"),"-").concat(G),ce={id:he,onClick:me,onMouseMove:Z,onMouseOver:Z,tabIndex:-1,role:"option","aria-selected":i.isAppleDevice?void 0:K};return W.createElement(f,ge({},g,{innerProps:ce,data:V,isDisabled:X,isSelected:K,key:he,label:te,type:H,value:ue,isFocused:ie,innerRef:ie?i.getFocusedOptionRef:void 0}),i.formatOptionLabel(Y.data,"menu"))},T;if(this.hasOptions())T=this.getCategorizedOptions().map(function(z){if(z.type==="group"){var Y=z.data,G=z.options,H=z.index,V="".concat(i.getElementId("group"),"-").concat(H),X="".concat(V,"-heading");return W.createElement(o,ge({},g,{key:V,data:Y,options:G,Heading:s,headingProps:{id:X,data:z.data},label:i.formatGroupLabel(z.data)}),z.options.map(function(K){return k(K,"".concat(H,"-").concat(K.index))}))}else if(z.type==="option")return k(z,"".concat(z.index))});else if(x){var B=S({inputValue:y});if(B===null)return null;T=W.createElement(d,g,B)}else{var O=P({inputValue:y});if(O===null)return null;T=W.createElement(h,g,O)}var L={minMenuHeight:D,maxMenuHeight:$,menuPlacement:m,menuPosition:C,menuShouldScrollIntoView:R},j=W.createElement(l9,ge({},g,L),function(z){var Y=z.ref,G=z.placerProps,H=G.placement,V=G.maxHeight;return W.createElement(l,ge({},g,L,{innerRef:Y,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove},isLoading:x,placement:H}),W.createElement(NR,{captureEnabled:v,onTopArrive:A,onBottomArrive:M,lockEnabled:E},function(X){return W.createElement(u,ge({},g,{innerRef:function(te){i.getMenuListRef(te),X(te)},innerProps:{role:"listbox","aria-multiselectable":g.isMulti,id:i.getElementId("listbox")},isLoading:x,maxHeight:V,focusedOption:p}),T)}))});return I||C==="fixed"?W.createElement(c,ge({},g,{appendTo:I,controlElement:this.controlRef,menuPlacement:m,menuPosition:C}),j):j}},{key:"renderFormField",value:function(){var i=this,a=this.props,o=a.delimiter,s=a.isDisabled,l=a.isMulti,u=a.name,c=a.required,d=this.state.selectValue;if(c&&!this.hasValue()&&!s)return W.createElement(jR,{name:u,onFocus:this.onValueInputFocus});if(!(!u||s))if(l)if(o){var h=d.map(function(p){return i.getOptionValue(p)}).join(o);return W.createElement("input",{name:u,type:"hidden",value:h})}else{var f=d.length>0?d.map(function(p,b){return W.createElement("input",{key:"i-".concat(b),name:u,type:"hidden",value:i.getOptionValue(p)})}):W.createElement("input",{name:u,type:"hidden",value:""});return W.createElement("div",null,f)}else{var g=d[0]?this.getOptionValue(d[0]):"";return W.createElement("input",{name:u,type:"hidden",value:g})}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,a=this.state,o=a.ariaSelection,s=a.focusedOption,l=a.focusedValue,u=a.isFocused,c=a.selectValue,d=this.getFocusableOptions();return W.createElement(ER,ge({},i,{id:this.getElementId("live-region"),ariaSelection:o,focusedOption:s,focusedValue:l,isFocused:u,selectValue:c,focusableOptions:d,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var i=this.getComponents(),a=i.Control,o=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,p=this.commonProps=this.getCommonProps();return W.createElement(s,ge({},p,{className:c,innerProps:{id:d,onKeyDown:this.onKeyDown},isDisabled:h,isFocused:g}),this.renderLiveRegion(),W.createElement(a,ge({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:h,isFocused:g,menuIsOpen:f}),W.createElement(l,ge({},p,{isDisabled:h}),this.renderPlaceholderOrValue(),this.renderInput()),W.createElement(o,ge({},p,{isDisabled:h}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(i,a){var o=a.prevProps,s=a.clearFocusValueOnUpdate,l=a.inputIsHiddenAfterUpdate,u=a.ariaSelection,c=a.isFocused,d=a.prevWasFocused,h=a.instancePrefix,f=i.options,g=i.value,p=i.menuIsOpen,b=i.inputValue,v=i.isMulti,y=Tm(g),x={};if(o&&(g!==o.value||f!==o.options||p!==o.menuIsOpen||b!==o.inputValue)){var S=p?iA(i,y):[],D=p?Zm(pl(i,y),"".concat(h,"-option")):[],$=s?aA(a,y):null,F=oA(a,S),m=Dc(D,F);x={selectValue:y,focusedOption:F,focusedOptionId:m,focusableOptionsWithIds:D,focusedValue:$,clearFocusValueOnUpdate:!1}}var C=l!=null&&i!==o?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},I=u,E=c&&d;return c&&!E&&(I={value:Ms(v,y,y[0]||null),options:y,action:"initial-input-focus"},E=!d),(u==null?void 0:u.action)==="initial-input-focus"&&(I=null),fe(fe(fe({},x),C),{},{prevProps:i,ariaSelection:I,prevWasFocused:E})}}]),n}(w.Component);jv.defaultProps=rA;var lA=w.forwardRef(function(e,t){var n=x$(e);return W.createElement(jv,ge({ref:t},n))}),uA=lA;const cA="_container_26hat_1",Sc={container:cA,"error-payhere":"_error-payhere_26hat_4","error-laba":"_error-laba_26hat_7"},dA={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"})},fA={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})},hA={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})},Wv=w.forwardRef((e,t)=>{const{width:n,children:r,components:i,classNameContainer:a="",classNameContainerShowSelect:o="",classNameContainerSelect:s="",classNameLabelError:l="",error:u,onChange:c,externalValue:d=!1,defaultValueButtonDropdown:h={},autoClose:f=!0,onMenuOpen:g=()=>{},autoCloseOutside:p=!0,styleInnerPopper:b={},onMenuClose:v=()=>{},zIndexPopper:y=0,id:x="select-dropdown-container",idPopover:S="select-dropdown-container-popover",useAutoPlacement:D,flipOptions:$,autoPlacementOptions:F,withSearch:m=!1,floatingOptions:C={},offsetPopover:I=5,selectProps:E={},errorLabel:R="payhere",controlType:P="payhere",actionValueChange:A=()=>{},...M}=e,k={error:{laba:Sc["error-laba"],payhere:Sc["error-payhere"]}},T=w.useRef(null),B=w.useRef(null),[O,L]=w.useState(""),[j,z]=w.useState(!1),[Y,G]=w.useState({}),[H,V]=w.useState(0),X=me=>{var he;(he=B.current)==null||he.setShow(me),z(me)},K=()=>{if(d)return e.isMulti?h:[h]},te=me=>{var he;(he=B.current)==null||he.handlerShow(me),V(T.current.offsetWidth),z(ce=>!ce)},ue=()=>{var me;p&&((me=B.current)==null||me.setShow(!1))},ie=(me,he)=>{var ce;f&&(z(!1),(ce=B.current)==null||ce.setShow(!1)),typeof c=="function"&&c(me,he),d||G(me)},Z=()=>{T.current&&V(T.current.offsetWidth)};return $i(()=>{d&&G(h),A(h)},[d,h]),w.useEffect(()=>{j?g():j||(v(),L(""))},[j]),w.useImperativeHandle(t,()=>({selectValue:Y,setSelectValue:G,handlerClose:ue,handlerShow:te,show:j,setShow:X}),[j,Uf(Y)]),w.useEffect(()=>(window.addEventListener("resize",Z),window.addEventListener("load",Z),()=>{window.removeEventListener("resize",Z),window.removeEventListener("load",Z)}),[T]),_.jsxs("div",{id:x,className:`${Sc.container} ${a} ${j?`${o} open-popover`:null}`,ref:T,children:[r({selectValue:Y,setSelectValue:G,handlerClose:ue,handlerShow:te,show:j,setShow:X}),_.jsx(Ir,{ref:B,offset:I,useAutoPlacement:D,flipOptions:$,autoPlacementOptions:F,zIndex:y,styleInnerPopover:b,id:S,width:typeof n=="function"?n(H,Y):n??H,className:s,floatingOptions:C,children:_.jsx(uA,{className:"1ru-w-full",defaultValue:K(),inputValue:O,onInputChange:(me,{action:he})=>{he==="input-change"&&L(me)},openMenuOnFocus:!0,autoFocus:!1,backspaceRemovesValue:!1,components:{IndicatorSeparator:null,...i},controlShouldRenderValue:!1,hideSelectedOptions:!1,isClearable:!1,menuIsOpen:!0,tabSelectsValue:!1,styles:m?P==="laba"?dA:fA:hA,noOptionsMessage:()=>"Tidak ada data.",onChange:ie,selectProps:{...E,setShowDropdown:X},...M})}),_.jsx("div",{className:`${k.error[R]} ${l}`,children:u})]})});Wv.displayName="SelectDropdownContainer";function da(e,t){return e-t*Math.floor(e/t)}const zv=1721426;function yi(e,t,n,r){t=us(e,t);let i=t-1,a=-2;return n<=2?a=0:Vr(t)&&(a=-1),zv-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+a+r)}function Vr(e){return e%4===0&&(e%100!==0||e%400===0)}function us(e,t){return e==="BC"?1-t:t}function Bu(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const gA={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 fn{fromJulianDay(t){let n=t,r=n-zv,i=Math.floor(r/146097),a=da(r,146097),o=Math.floor(a/36524),s=da(a,36524),l=Math.floor(s/1461),u=da(s,1461),c=Math.floor(u/365),d=i*400+o*100+l*4+c+(o!==4&&c!==4?1:0),[h,f]=Bu(d),g=n-yi(h,f,1,1),p=2;n<yi(h,f,3,1)?p=0:Vr(f)&&(p=1);let b=Math.floor(((g+p)*12+373)/367),v=n-yi(h,f,b,1)+1;return new ut(h,f,b,v)}toJulianDay(t){return yi(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return gA[Vr(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return Vr(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 mA={"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 gt(e,t){return t=yt(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function Ad(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 pA(e,t){return gt(e,ch(t))}function Ou(e,t){let n=e.calendar.toJulianDay(e),r=Math.ceil(n+1-CA(t))%7;return r<0&&(r+=7),r}function bA(e){return vr(Date.now(),e)}function ch(e){return cn(bA(e))}function Gv(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function Xv(e,t){return Um(e)-Um(t)}function Um(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let Ec=null;function Ai(){return Ec==null&&(Ec=new Intl.DateTimeFormat().resolvedOptions().timeZone),Ec}function cs(e){return e.subtract({days:e.day-1})}function Fd(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function vA(e){return cs(e.subtract({months:e.month-1}))}function Bo(e,t){let n=Ou(e,t);return e.subtract({days:n})}function yA(e,t){return Bo(e,t).add({days:6})}const Jm=new Map;function xA(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 CA(e){let t=xA(e);return t&&mA[t]||0}function Zv(e,t){let n=e.calendar.getDaysInMonth(e);return Math.ceil((Ou(cs(e),t)+n)/7)}function dh(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function fh(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function wa(e){e=yt(e,new fn);let t=us(e.era,e.year);return Yv(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function Yv(e,t,n,r,i,a,o){let s=new Date;return s.setUTCHours(r,i,a,o),s.setUTCFullYear(e,t-1,n),s.getTime()}function Td(e,t){if(t==="UTC")return 0;if(e>0&&t===Ai())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:a,minute:o,second:s}=Uv(e,t);return Yv(n,r,i,a,o,s,0)-Math.floor(e/1e3)*1e3}const Km=new Map;function Uv(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 a of r)a.type!=="literal"&&(i[a.type]=a.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 wA(e,t,n,r){return(n===r?[n]:[n,r]).filter(a=>DA(e,t,a))}function DA(e,t,n){let r=Uv(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 hr(e,t,n="compatible"){let r=Zr(e);if(t==="UTC")return wa(r);if(t===Ai()&&n==="compatible"){r=yt(r,new fn);let l=new Date,u=us(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=wa(r),a=Td(i-qm,t),o=Td(i+qm,t),s=wA(r,t,i-a,i-o);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-a,i-o);case"compatible":case"later":return Math.max(i-a,i-o);case"reject":throw new RangeError("No such absolute time found")}}function Jv(e,t,n="compatible"){return new Date(hr(e,t,n))}function vr(e,t){let n=Td(e,t),r=new Date(e+n),i=r.getUTCFullYear(),a=r.getUTCMonth()+1,o=r.getUTCDate(),s=r.getUTCHours(),l=r.getUTCMinutes(),u=r.getUTCSeconds(),c=r.getUTCMilliseconds();return new No(i,a,o,t,n,s,l,u,c)}function cn(e){return new ut(e.calendar,e.era,e.year,e.month,e.day)}function Zr(e,t){let n=0,r=0,i=0,a=0;if("timeZone"in e)({hour:n,minute:r,second:i,millisecond:a}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:i,millisecond:a}=t),new Ul(e.calendar,e.era,e.year,e.month,e.day,n,r,i,a)}function yt(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,Fi(r),r}function SA(e,t,n){if(e instanceof No)return e.timeZone===t?e:IA(e,t);let r=hr(e,t,n);return vr(r,t)}function EA(e){let t=wa(e)-e.offset;return new Date(t)}function IA(e,t){let n=wa(e)-e.offset;return yt(vr(n,t),e.calendar)}const Na=36e5;function Nu(e,t){let n=e.copy(),r="hour"in n?ey(n,t):0;Pd(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,kd(n),Kv(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,_A(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 a,o;let l=(a=(o=n.calendar).isInverseEra)===null||a===void 0?void 0:a.call(o,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 Pd(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function kd(e){for(;e.month<1;)Pd(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Pd(e,1)}function _A(e){for(;e.day<1;)e.month--,kd(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,kd(e)}function Kv(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 Fi(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),Kv(e)}function hh(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function qv(e,t){return Nu(e,hh(t))}function gh(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),Fi(n),n}function Oo(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),Qv(n),n}function $A(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=Bs(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=Bs(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=Bs(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=Bs(e.hour,24),t}function Qv(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 Bs(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,$A(e)}function ty(e,t){let n=e.copy();return ey(n,t),n}function RA(e,t){return ty(e,hh(t))}function mh(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=yr(l,n,0,s.length-1,r==null?void 0:r.round),i.era=s[l],Fi(i);break}case"year":var a,o;!((a=(o=i.calendar).isInverseEra)===null||a===void 0)&&a.call(o,i)&&(n=-n),i.year=yr(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=yr(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":i.day=yr(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),Fi(i),i}function ph(e,t,n,r){let i=e.copy();switch(t){case"hour":{let a=e.hour,o=0,s=23;if((r==null?void 0:r.hourCycle)===12){let l=a>=12;o=l?12:0,s=l?23:11}i.hour=yr(a,n,o,s,r==null?void 0:r.round);break}case"minute":i.minute=yr(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":i.second=yr(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":i.millisecond=yr(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return i}function yr(e,t,n,r,i=!1){if(i){e+=Math.sign(t),e<n&&(e=r);let a=Math.abs(t);t>0?e=Math.ceil(e/a)*a:e=Math.floor(e/a)*a,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function ny(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=Nu(Zr(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=hr(i,e.timeZone)}else n=wa(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=vr(n,e.timeZone);return yt(r,e.calendar)}function AA(e,t){return ny(e,hh(t))}function FA(e,t,n,r){switch(t){case"hour":{let i=0,a=23;if((r==null?void 0:r.hourCycle)===12){let g=e.hour>=12;i=g?12:0,a=g?23:11}let o=Zr(e),s=yt(Oo(o,{hour:i}),new fn),l=[hr(s,e.timeZone,"earlier"),hr(s,e.timeZone,"later")].filter(g=>vr(g,e.timeZone).day===s.day)[0],u=yt(Oo(o,{hour:a}),new fn),c=[hr(u,e.timeZone,"earlier"),hr(u,e.timeZone,"later")].filter(g=>vr(g,e.timeZone).day===u.day).pop(),d=wa(e)-e.offset,h=Math.floor(d/Na),f=d%Na;return d=yr(h,n,Math.floor(l/Na),Math.floor(c/Na),r==null?void 0:r.round)*Na+f,yt(vr(d,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return ph(e,t,n,r);case"era":case"year":case"month":case"day":{let i=mh(Zr(e),t,n,r),a=hr(i,e.timeZone);return yt(vr(a,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function TA(e,t,n){let r=Zr(e),i=Oo(gh(r,t),t);if(i.compare(r)===0)return e;let a=hr(i,e.timeZone,n);return yt(vr(a,e.timeZone),e.calendar)}const PA=/^(\d{4})-(\d{2})-(\d{2})$/;function bh(e){let t=e.match(PA);if(!t)throw new Error("Invalid ISO 8601 date string: "+e);let n=new ut(Ic(t[1],0,9999),Ic(t[2],1,12),1);return n.day=Ic(t[3],0,n.calendar.getDaysInMonth(n)),n}function Ic(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 ry(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 iy(e){let t=yt(e,new fn);return`${String(t.year).padStart(4,"0")}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function ay(e){return`${iy(e)}T${ry(e)}`}function kA(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 MA(e){return`${ay(e)}${kA(e.offset)}[${e.timeZone}]`}function BA(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function ds(e,t,n){BA(e,t),t.set(e,n)}function vh(e){let t=typeof e[0]=="object"?e.shift():new fn,n;if(typeof e[0]=="string")n=e.shift();else{let o=t.getEras();n=o[o.length-1]}let r=e.shift(),i=e.shift(),a=e.shift();return[t,n,r,i,a]}var OA=new WeakMap;class ut{copy(){return this.era?new ut(this.calendar,this.era,this.year,this.month,this.day):new ut(this.calendar,this.year,this.month,this.day)}add(t){return Nu(this,t)}subtract(t){return qv(this,t)}set(t){return gh(this,t)}cycle(t,n,r){return mh(this,t,n,r)}toDate(t){return Jv(this,t)}toString(){return iy(this)}compare(t){return Gv(this,t)}constructor(...t){ds(this,OA,{writable:!0,value:void 0});let[n,r,i,a,o]=vh(t);this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=o,Fi(this)}}var NA=new WeakMap;class yh{copy(){return new yh(this.hour,this.minute,this.second,this.millisecond)}add(t){return ty(this,t)}subtract(t){return RA(this,t)}set(t){return Oo(this,t)}cycle(t,n,r){return ph(this,t,n,r)}toString(){return ry(this)}compare(t){return Xv(this,t)}constructor(t=0,n=0,r=0,i=0){ds(this,NA,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=i,Qv(this)}}var VA=new WeakMap;class Ul{copy(){return this.era?new Ul(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new Ul(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return Nu(this,t)}subtract(t){return qv(this,t)}set(t){return gh(Oo(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return mh(this,t,n,r);default:return ph(this,t,n,r)}}toDate(t,n){return Jv(this,t,n)}toString(){return ay(this)}compare(t){let n=Gv(this,t);return n===0?Xv(this,Zr(t)):n}constructor(...t){ds(this,VA,{writable:!0,value:void 0});let[n,r,i,a,o]=vh(t);this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=o,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Fi(this)}}var LA=new WeakMap;class No{copy(){return this.era?new No(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new No(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return ny(this,t)}subtract(t){return AA(this,t)}set(t,n){return TA(this,t,n)}cycle(t,n,r){return FA(this,t,n,r)}toDate(){return EA(this)}toString(){return MA(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-SA(t,this.timeZone).toDate().getTime()}constructor(...t){ds(this,LA,{writable:!0,value:void 0});let[n,r,i,a,o]=vh(t),s=t.shift(),l=t.shift();this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=o,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,Fi(this)}}const fa=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],HA=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],bl=[1867,1911,1925,1988,2018],Mr=["meiji","taisho","showa","heisei","reiwa"];function Qm(e){const t=fa.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?fa.length-1:t===0?0:t-1}function _c(e){let t=bl[Mr.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new ut(e.year+t,e.month,e.day)}class jA extends fn{fromJulianDay(t){let n=super.fromJulianDay(t),r=Qm(n);return new ut(this,Mr[r],n.year-bl[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(_c(t))}balanceDate(t){let n=_c(t),r=Qm(n);Mr[r]!==t.era&&(t.era=Mr[r],t.year=n.year-bl[r]),this.constrainDate(t)}constrainDate(t){let n=Mr.indexOf(t.era),r=HA[n];if(r!=null){let[i,a,o]=r,s=i-bl[n];t.year=Math.max(1,Math.min(s,t.year)),t.year===s&&(t.month=Math.min(a,t.month),t.month===a&&(t.day=Math.min(o,t.day)))}if(t.year===1&&n>=0){let[,i,a]=fa[n];t.month=Math.max(i,t.month),t.month===i&&(t.day=Math.max(a,t.day))}}getEras(){return Mr}getYearsInEra(t){let n=Mr.indexOf(t.era),r=fa[n],i=fa[n+1];if(i==null)return 9999-r[0]+1;let a=i[0]-r[0];return(t.month<i[1]||t.month===i[1]&&t.day<i[2])&&a++,a}getDaysInMonth(t){return super.getDaysInMonth(_c(t))}getMinimumMonthInYear(t){let n=e0(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=e0(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function e0(e){if(e.year===1){let t=Mr.indexOf(e.era);return fa[t]}}const oy=-543;class WA extends fn{fromJulianDay(t){let n=super.fromJulianDay(t),r=us(n.era,n.year);return new ut(this,r-oy,n.month,n.day)}toJulianDay(t){return super.toJulianDay(t0(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(t0(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function t0(e){let[t,n]=Bu(e.year+oy);return new ut(t,n,e.month,e.day)}const Jl=1911;function sy(e){return e.era==="minguo"?e.year+Jl:1-e.year+Jl}function n0(e){let t=e-Jl;return t>0?["minguo",t]:["before_minguo",1-t]}class zA extends fn{fromJulianDay(t){let n=super.fromJulianDay(t),r=us(n.era,n.year),[i,a]=n0(r);return new ut(this,i,a,n.month,n.day)}toJulianDay(t){return super.toJulianDay(r0(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=n0(sy(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(r0(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-Jl}constructor(...t){super(...t),this.identifier="roc"}}function r0(e){let[t,n]=Bu(sy(e));return new ut(t,n,e.month,e.day)}const i0=1948320,a0=[0,31,62,93,124,155,186,216,246,276,306,336];class GA{fromJulianDay(t){let n=t-i0,r=1+Math.floor((33*n+3)/12053),i=365*(r-1)+Math.floor((8*r+21)/33),a=n-i,o=a<216?Math.floor(a/31):Math.floor((a-6)/30),s=a-a0[o]+1;return new ut(this,r,o+1,s)}toJulianDay(t){let n=i0-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=a0[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||da(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const $c=78,o0=80;class XA extends fn{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-$c,i=t-yi(n.era,n.year,1,1),a;i<o0?(r--,a=Vr(n.year-1)?31:30,i+=a+155+90+10):(a=Vr(n.year)?31:30,i-=o0);let o,s;if(i<a)o=1,s=i+1;else{let l=i-a;l<155?(o=Math.floor(l/31)+2,s=l%31+1):(l-=155,o=Math.floor(l/30)+7,s=l%30+1)}return new ut(this,r,o,s)}toJulianDay(t){let n=t.year+$c,[r,i]=Bu(n),a,o;return Vr(i)?(a=31,o=yi(r,i,3,21)):(a=30,o=yi(r,i,3,22)),t.month===1?o+t.day-1:(o+=a+Math.min(t.month-2,5)*31,t.month>=8&&(o+=(t.month-7)*30),o+=t.day-1,o)}getDaysInMonth(t){return t.month===1&&Vr(t.year+$c)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const Kl=1948440,s0=1948439,Cn=1300,Yi=1600,ZA=460322;function ql(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function ly(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+ql(t,r,1,1)))/29.5)+1),a=n-ql(t,r,i,1)+1;return new ut(e,r,i,a)}function l0(e){return(14+11*e)%30<11}class xh{fromJulianDay(t){return ly(this,Kl,t)}toJulianDay(t){return ql(Kl,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&l0(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return l0(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class YA extends xh{fromJulianDay(t){return ly(this,s0,t)}toJulianDay(t){return ql(s0,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const UA="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let Md,ha;function vl(e){return ZA+ha[e-Cn]}function Ua(e,t){let n=e-Cn,r=1<<11-(t-1);return Md[n]&r?30:29}function u0(e,t){let n=vl(e);for(let r=1;r<t;r++)n+=Ua(e,r);return n}function c0(e){return ha[e+1-Cn]-ha[e-Cn]}class JA extends xh{fromJulianDay(t){let n=t-Kl,r=vl(Cn),i=vl(Yi);if(n<r||n>i)return super.fromJulianDay(t);{let a=Cn-1,o=1,s=1;for(;s>0;){a++,s=n-vl(a)+1;let l=c0(a);if(s===l){o=12;break}else if(s<l){let u=Ua(a,o);for(o=1;s>u;)s-=u,o++,u=Ua(a,o);break}}return new ut(this,a,o,n-u0(a,o)+1)}}toJulianDay(t){return t.year<Cn||t.year>Yi?super.toJulianDay(t):Kl+u0(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<Cn||t.year>Yi?super.getDaysInMonth(t):Ua(t.year,t.month)}getDaysInYear(t){return t.year<Cn||t.year>Yi?super.getDaysInYear(t):c0(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",Md||(Md=new Uint16Array(Uint8Array.from(atob(UA),t=>t.charCodeAt(0)).buffer)),!ha){ha=new Uint32Array(Yi-Cn+1);let t=0;for(let n=Cn;n<=Yi;n++){ha[n-Cn]=t;for(let r=1;r<=12;r++)t+=Ua(n,r)}}}}const d0=347997,uy=1080,cy=24*uy,KA=29,qA=12*uy+793,QA=KA*cy+qA;function gi(e){return da(e*7+1,19)<7}function yl(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return da(3*(r+1),7)<3&&(r+=1),r}function eF(e){let t=yl(e-1),n=yl(e);return yl(e+1)-n===356?2:n-t===382?1:0}function lo(e){return yl(e)+eF(e)}function dy(e){return lo(e+1)-lo(e)}function tF(e){let t=dy(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function Os(e,t){if(t>=6&&!gi(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=tF(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?gi(e)?30:0:30}class nF{fromJulianDay(t){let n=t-d0,r=n*cy/QA,i=Math.floor((19*r+234)/235)+1,a=lo(i),o=Math.floor(n-a);for(;o<1;)i--,a=lo(i),o=Math.floor(n-a);let s=1,l=0;for(;l<o;)l+=Os(i,s),s++;s--,l-=Os(i,s);let u=o-l;return new ut(this,i,s,u)}toJulianDay(t){let n=lo(t.year);for(let r=1;r<t.month;r++)n+=Os(t.year,r);return n+t.day+d0}getDaysInMonth(t){return Os(t.year,t.month)}getMonthsInYear(t){return gi(t.year)?13:12}getDaysInYear(t){return dy(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&(gi(n.year)&&!gi(t.year)&&n.month>6?t.month--:!gi(n.year)&&gi(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const Bd=1723856,f0=1824665,Od=5500;function Ql(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function Ch(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-Ql(e,n,1,1))/30),i=t+1-Ql(e,n,r,1);return[n,r,i]}function fy(e){return Math.floor(e%4/3)}function hy(e,t){return t%13!==0?30:fy(e)+5}class wh{fromJulianDay(t){let[n,r,i]=Ch(Bd,t),a="AM";return n<=0&&(a="AA",n+=Od),new ut(this,a,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=Od),Ql(Bd,n,t.month,t.day)}getDaysInMonth(t){return hy(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+fy(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class rF extends wh{fromJulianDay(t){let[n,r,i]=Ch(Bd,t);return n+=Od,new ut(this,"AA",n,r,i)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class iF extends wh{fromJulianDay(t){let[n,r,i]=Ch(f0,t),a="CE";return n<=0&&(a="BCE",n=1-n),new ut(this,a,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),Ql(f0,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),hy(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 fs(e){switch(e){case"buddhist":return new WA;case"ethiopic":return new wh;case"ethioaa":return new rF;case"coptic":return new iF;case"hebrew":return new nF;case"indian":return new XA;case"islamic-civil":return new xh;case"islamic-tbla":return new YA;case"islamic-umalqura":return new JA;case"japanese":return new jA;case"persian":return new GA;case"roc":return new zA;case"gregory":default:return new fn}}let Rc=new Map;class Vo{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(a=>({...a,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(a=>({...a,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return sF()&&(this.resolvedHourCycle||(this.resolvedHourCycle=lF(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=gy(t,n),this.options=n}}const aF={true:{ja:"h11"},false:{}};function gy(e,t={}){if(typeof t.hour12=="boolean"&&oF()){t={...t};let i=aF[String(t.hour12)][e.split("-")[0]],a=t.hour12?"h12":"h23";t.hourCycle=i??a,delete t.hour12}let n=e+(t?Object.entries(t).sort((i,a)=>i[0]<a[0]?-1:1).join():"");if(Rc.has(n))return Rc.get(n);let r=new Intl.DateTimeFormat(e,t);return Rc.set(n,r),r}let Ac=null;function oF(){return Ac==null&&(Ac=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),Ac}let Fc=null;function sF(){return Fc==null&&(Fc=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),Fc}function lF(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=gy(e,{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(a=>a.type==="hour").value,10),i=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(a=>a.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 Oi=typeof document<"u"?w.useLayoutEffect:()=>{};function gr(e){const t=w.useRef(null);return Oi(()=>{t.current=e},[e]),w.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function uF(e){let[t,n]=w.useState(e),r=w.useRef(null),i=gr(()=>{if(!r.current)return;let o=r.current.next();if(o.done){r.current=null;return}t===o.value?i():n(o.value)});Oi(()=>{r.current&&i()});let a=gr(o=>{r.current=o(t),i()});return[t,a]}const eu={prefix:String(Math.round(Math.random()*1e10)),current:0},my=w.createContext(eu),cF=w.createContext(!1);let dF=!!(typeof window<"u"&&window.document&&window.document.createElement),Tc=new WeakMap;function fF(e=!1){let t=w.useContext(my),n=w.useRef(null);if(n.current===null&&!e){var r,i;let a=(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(a){let o=Tc.get(a);o==null?Tc.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==o.state&&(t.current=o.id,Tc.delete(a))}n.current=++t.current}return n.current}function hF(e){let t=w.useContext(my);t===eu&&!dF&&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=fF(!!e),r=t===eu&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function gF(e){let t=w.useId(),[n]=w.useState(py()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${eu.prefix}`;return e||`${r}-${t}`}const mF=typeof w.useId=="function"?gF:hF;function pF(){return!1}function bF(){return!0}function vF(e){return()=>{}}function py(){return typeof w.useSyncExternalStore=="function"?w.useSyncExternalStore(vF,pF,bF):w.useContext(cF)}let yF=!!(typeof window<"u"&&window.document&&window.document.createElement),tu=new Map;function Da(e){let[t,n]=w.useState(e),r=w.useRef(null),i=mF(t),a=w.useCallback(o=>{r.current=o},[]);return yF&&tu.set(i,a),Oi(()=>{let o=i;return()=>{tu.delete(o)}},[i]),w.useEffect(()=>{let o=r.current;o&&(r.current=null,n(o))}),i}function xF(e,t){if(e===t)return e;let n=tu.get(e);if(n)return n(t),t;let r=tu.get(t);return r?(r(e),e):t}function Nd(e=[]){let t=Da(),[n,r]=uF(t),i=w.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return Oi(i,[t,i,...e]),n}function by(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const At=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Fn=e=>e&&"window"in e&&e.window===e?e:At(e).defaultView||window;function qt(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let i in r){let a=t[i],o=r[i];typeof a=="function"&&typeof o=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=by(a,o):(i==="className"||i==="UNSAFE_className")&&typeof a=="string"&&typeof o=="string"?t[i]=pr(a,o):i==="id"&&a&&o?t.id=xF(a,o):t[i]=o!==void 0?o:a}}return t}const CF=new Set(["id"]),wF=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),DF=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),SF=/^(data-.*)$/;function Dh(e,t={}){let{labelable:n,isLink:r,propNames:i}=t,a={};for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(CF.has(o)||n&&wF.has(o)||r&&DF.has(o)||i!=null&&i.has(o)||SF.test(o))&&(a[o]=e[o]);return a}function Lr(e){if(EF())e.focus({preventScroll:!0});else{let t=IF(e);e.focus(),_F(t)}}let Ns=null;function EF(){if(Ns==null){Ns=!1;try{document.createElement("div").focus({get preventScroll(){return Ns=!0,!0}})}catch{}}return Ns}function IF(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 _F(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Vu(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 Sh(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 Lo(){return Sh(/^Mac/i)}function $F(){return Sh(/^iPhone/i)}function vy(){return Sh(/^iPad/i)||Lo()&&navigator.maxTouchPoints>1}function yy(){return $F()||vy()}function RF(){return Vu(/AppleWebKit/i)&&!AF()}function AF(){return Vu(/Chrome/i)}function xy(){return Vu(/Android/i)}function FF(){return Vu(/Firefox/i)}function Ho(e,t,n=!0){var r,i;let{metaKey:a,ctrlKey:o,altKey:s,shiftKey:l}=t;FF()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Lo()?a=!0:o=!0);let u=RF()&&Lo()&&!vy()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:a,ctrlKey:o,altKey:s,shiftKey:l}):new MouseEvent("click",{metaKey:a,ctrlKey:o,altKey:s,shiftKey:l,bubbles:!0,cancelable:!0});Ho.isOpening=n,Lr(e),e.dispatchEvent(u),Ho.isOpening=!1}Ho.isOpening=!1;let na=new Map,Vd=new Set;function h0(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let i=na.get(r.target);i||(i=new Set,na.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=na.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),na.delete(r.target)),na.size===0)){for(let a of Vd)a();Vd.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?h0():document.addEventListener("DOMContentLoaded",h0));function Cy(e){requestAnimationFrame(()=>{na.size===0?e():Vd.add(e)})}function TF(){let e=w.useRef(new Map),t=w.useCallback((i,a,o,s)=>{let l=s!=null&&s.once?(...u)=>{e.current.delete(o),o(...u)}:o;e.current.set(o,{type:a,eventTarget:i,fn:l,options:s}),i.addEventListener(a,o,s)},[]),n=w.useCallback((i,a,o,s)=>{var l;let u=((l=e.current.get(o))===null||l===void 0?void 0:l.fn)||o;i.removeEventListener(a,u,s),e.current.delete(o)},[]),r=w.useCallback(()=>{e.current.forEach((i,a)=>{n(i.eventTarget,i.type,a,i.options)})},[n]);return w.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function Eh(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=Da(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 g0(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,a)=>!Object.is(i,r[a])))&&e(),r.current=t},t)}function wy(e,t){Oi(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function Ld(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 PF(e,t){let n=e;for(Ld(n,t)&&(n=n.parentElement);n&&!Ld(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function kF(e,t){const n=[];for(;e&&e!==document.documentElement;)Ld(e,t)&&n.push(e),e=e.parentElement;return n}let MF=0;const Pc=new Map;function Dy(e){let[t,n]=w.useState();return Oi(()=>{if(!e)return;let r=Pc.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${MF++}`;n(i);let a=document.createElement("div");a.id=i,a.style.display="none",a.textContent=e,document.body.appendChild(a),r={refCount:0,element:a},Pc.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),Pc.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function kc(e,t,n,r){let i=gr(n),a=n==null;w.useEffect(()=>{if(a||!e.current)return;let o=e.current;return o.addEventListener(t,i,r),()=>{o.removeEventListener(t,i,r)}},[e,t,r,a,i])}function BF(e,t){let n=m0(e,t,"left"),r=m0(e,t,"top"),i=t.offsetWidth,a=t.offsetHeight,o=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<=o?o=n-parseInt(u,10):n+i>h&&(o+=n+i-h),r<=d?s=r-parseInt(l,10):r+a>f&&(s+=r+a-f),e.scrollLeft=o,e.scrollTop=s}function m0(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 OF(e,t){if(document.contains(e)){let o=document.scrollingElement||document.documentElement;if(window.getComputedStyle(o).overflow==="hidden"){let l=kF(e);for(let u of l)BF(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,a;t==null||(i=t.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(a=e.scrollIntoView)===null||a===void 0||a.call(e,{block:"nearest"})}}}}function Hd(e){return e.mozInputSource===0&&e.isTrusted?!0:xy()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function NF(e){return!xy()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function Sy(e,t){let n=w.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function jo(e,t,n){let[r,i]=w.useState(e||t),a=w.useRef(e!==void 0),o=e!==void 0;w.useEffect(()=>{let u=a.current;u!==o&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}.`),a.current=o},[o]);let s=o?e:r,l=w.useCallback((u,...c)=>{let d=(h,...f)=>{n&&(Object.is(s,h)||n(h,...f)),o||(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 p=u(o?s:f,...g);return d(p,...c),o?f:p})):(o||i(u),d(u,...c))},[o,s,n]);return[s,l]}let ia="default",jd="",xl=new WeakMap;function p0(e){if(yy()){if(ia==="default"){const t=At(e);jd=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}ia="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(xl.set(e,e.style.userSelect),e.style.userSelect="none")}function Vs(e){if(yy()){if(ia!=="disabled")return;ia="restoring",setTimeout(()=>{Cy(()=>{if(ia==="restoring"){const t=At(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=jd||""),jd="",ia="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&xl.has(e)){let t=xl.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),xl.delete(e)}}const Ey=w.createContext({register:()=>{}});Ey.displayName="PressResponderContext";function VF(e,t){return t.get?t.get.call(e):t.value}function Iy(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function LF(e,t){var n=Iy(e,t,"get");return VF(e,n)}function HF(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 b0(e,t,n){var r=Iy(e,t,"set");return HF(e,r,n),n}function jF(e){let t=w.useContext(Ey);if(t){let{register:n,...r}=t;e=qt(r,e),n()}return wy(t,e.ref),e}var Ls=new WeakMap;class Hs{continuePropagation(){b0(this,Ls,!1)}get shouldStopPropagation(){return LF(this,Ls)}constructor(t,n,r){ds(this,Ls,{writable:!0,value:void 0}),b0(this,Ls,!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 v0=Symbol("linkClicked");function Ih(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:a,isDisabled:o,isPressed:s,preventFocusOnPress:l,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:c,ref:d,...h}=jF(e),[f,g]=w.useState(!1),p=w.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:b,removeAllGlobalListeners:v}=TF(),y=gr((m,C)=>{let I=p.current;if(o||I.didFirePressStart)return!1;let E=!0;if(I.isTriggeringEvent=!0,r){let R=new Hs("pressstart",C,m);r(R),E=R.shouldStopPropagation}return n&&n(!0),I.isTriggeringEvent=!1,I.didFirePressStart=!0,g(!0),E}),x=gr((m,C,I=!0)=>{let E=p.current;if(!E.didFirePressStart)return!1;E.ignoreClickAfterPress=!0,E.didFirePressStart=!1,E.isTriggeringEvent=!0;let R=!0;if(i){let P=new Hs("pressend",C,m);i(P),R=P.shouldStopPropagation}if(n&&n(!1),g(!1),t&&I&&!o){let P=new Hs("press",C,m);t(P),R&&(R=P.shouldStopPropagation)}return E.isTriggeringEvent=!1,R}),S=gr((m,C)=>{let I=p.current;if(o)return!1;if(a){I.isTriggeringEvent=!0;let E=new Hs("pressup",C,m);return a(E),I.isTriggeringEvent=!1,E.shouldStopPropagation}return!0}),D=gr(m=>{let C=p.current;C.isPressed&&C.target&&(C.isOverTarget&&C.pointerType!=null&&x(ar(C.target,m),C.pointerType,!1),C.isPressed=!1,C.isOverTarget=!1,C.activePointerId=null,C.pointerType=null,v(),c||Vs(C.target))}),$=gr(m=>{u&&D(m)}),F=w.useMemo(()=>{let m=p.current,C={onKeyDown(E){if(Mc(E.nativeEvent,E.currentTarget)&&E.currentTarget.contains(E.target)){var R;x0(E.target,E.key)&&E.preventDefault();let P=!0;if(!m.isPressed&&!E.repeat){m.target=E.currentTarget,m.isPressed=!0,P=y(E,"keyboard");let A=E.currentTarget,M=k=>{Mc(k,A)&&!k.repeat&&A.contains(k.target)&&m.target&&S(ar(m.target,k),"keyboard")};b(At(E.currentTarget),"keyup",by(M,I),!0)}P&&E.stopPropagation(),E.metaKey&&Lo()&&((R=m.metaKeyEvents)===null||R===void 0||R.set(E.key,E.nativeEvent))}else E.key==="Meta"&&(m.metaKeyEvents=new Map)},onClick(E){if(!(E&&!E.currentTarget.contains(E.target))&&E&&E.button===0&&!m.isTriggeringEvent&&!Ho.isOpening){let R=!0;if(o&&E.preventDefault(),!m.ignoreClickAfterPress&&!m.ignoreEmulatedMouseEvents&&!m.isPressed&&(m.pointerType==="virtual"||Hd(E.nativeEvent))){!o&&!l&&Lr(E.currentTarget);let P=y(E,"virtual"),A=S(E,"virtual"),M=x(E,"virtual");R=P&&A&&M}m.ignoreEmulatedMouseEvents=!1,m.ignoreClickAfterPress=!1,R&&E.stopPropagation()}}},I=E=>{var R;if(m.isPressed&&m.target&&Mc(E,m.target)){var P;x0(E.target,E.key)&&E.preventDefault();let M=E.target;x(ar(m.target,E),"keyboard",m.target.contains(M)),v(),E.key!=="Enter"&&_h(m.target)&&m.target.contains(M)&&!E[v0]&&(E[v0]=!0,Ho(m.target,E,!1)),m.isPressed=!1,(P=m.metaKeyEvents)===null||P===void 0||P.delete(E.key)}else if(E.key==="Meta"&&(!((R=m.metaKeyEvents)===null||R===void 0)&&R.size)){var A;let M=m.metaKeyEvents;m.metaKeyEvents=void 0;for(let k of M.values())(A=m.target)===null||A===void 0||A.dispatchEvent(new KeyboardEvent("keyup",k))}};if(typeof PointerEvent<"u"){C.onPointerDown=A=>{if(A.button!==0||!A.currentTarget.contains(A.target))return;if(NF(A.nativeEvent)){m.pointerType="virtual";return}Bc(A.currentTarget)&&A.preventDefault(),m.pointerType=A.pointerType;let M=!0;m.isPressed||(m.isPressed=!0,m.isOverTarget=!0,m.activePointerId=A.pointerId,m.target=A.currentTarget,!o&&!l&&Lr(A.currentTarget),c||p0(m.target),M=y(A,m.pointerType),b(At(A.currentTarget),"pointermove",E,!1),b(At(A.currentTarget),"pointerup",R,!1),b(At(A.currentTarget),"pointercancel",P,!1)),M&&A.stopPropagation()},C.onMouseDown=A=>{A.currentTarget.contains(A.target)&&A.button===0&&(Bc(A.currentTarget)&&A.preventDefault(),A.stopPropagation())},C.onPointerUp=A=>{!A.currentTarget.contains(A.target)||m.pointerType==="virtual"||A.button===0&&Ui(A,A.currentTarget)&&S(A,m.pointerType||A.pointerType)};let E=A=>{A.pointerId===m.activePointerId&&(m.target&&Ui(A,m.target)?!m.isOverTarget&&m.pointerType!=null&&(m.isOverTarget=!0,y(ar(m.target,A),m.pointerType)):m.target&&m.isOverTarget&&m.pointerType!=null&&(m.isOverTarget=!1,x(ar(m.target,A),m.pointerType,!1),$(A)))},R=A=>{A.pointerId===m.activePointerId&&m.isPressed&&A.button===0&&m.target&&(Ui(A,m.target)&&m.pointerType!=null?x(ar(m.target,A),m.pointerType):m.isOverTarget&&m.pointerType!=null&&x(ar(m.target,A),m.pointerType,!1),m.isPressed=!1,m.isOverTarget=!1,m.activePointerId=null,m.pointerType=null,v(),c||Vs(m.target))},P=A=>{D(A)};C.onDragStart=A=>{A.currentTarget.contains(A.target)&&D(A)}}else{C.onMouseDown=P=>{if(P.button!==0||!P.currentTarget.contains(P.target))return;if(Bc(P.currentTarget)&&P.preventDefault(),m.ignoreEmulatedMouseEvents){P.stopPropagation();return}m.isPressed=!0,m.isOverTarget=!0,m.target=P.currentTarget,m.pointerType=Hd(P.nativeEvent)?"virtual":"mouse",!o&&!l&&Lr(P.currentTarget),y(P,m.pointerType)&&P.stopPropagation(),b(At(P.currentTarget),"mouseup",E,!1)},C.onMouseEnter=P=>{if(!P.currentTarget.contains(P.target))return;let A=!0;m.isPressed&&!m.ignoreEmulatedMouseEvents&&m.pointerType!=null&&(m.isOverTarget=!0,A=y(P,m.pointerType)),A&&P.stopPropagation()},C.onMouseLeave=P=>{if(!P.currentTarget.contains(P.target))return;let A=!0;m.isPressed&&!m.ignoreEmulatedMouseEvents&&m.pointerType!=null&&(m.isOverTarget=!1,A=x(P,m.pointerType,!1),$(P)),A&&P.stopPropagation()},C.onMouseUp=P=>{P.currentTarget.contains(P.target)&&!m.ignoreEmulatedMouseEvents&&P.button===0&&S(P,m.pointerType||"mouse")};let E=P=>{if(P.button===0){if(m.isPressed=!1,v(),m.ignoreEmulatedMouseEvents){m.ignoreEmulatedMouseEvents=!1;return}m.target&&Ui(P,m.target)&&m.pointerType!=null?x(ar(m.target,P),m.pointerType):m.target&&m.isOverTarget&&m.pointerType!=null&&x(ar(m.target,P),m.pointerType,!1),m.isOverTarget=!1}};C.onTouchStart=P=>{if(!P.currentTarget.contains(P.target))return;let A=WF(P.nativeEvent);if(!A)return;m.activePointerId=A.identifier,m.ignoreEmulatedMouseEvents=!0,m.isOverTarget=!0,m.isPressed=!0,m.target=P.currentTarget,m.pointerType="touch",!o&&!l&&Lr(P.currentTarget),c||p0(m.target),y(P,m.pointerType)&&P.stopPropagation(),b(Fn(P.currentTarget),"scroll",R,!0)},C.onTouchMove=P=>{if(!P.currentTarget.contains(P.target))return;if(!m.isPressed){P.stopPropagation();return}let A=y0(P.nativeEvent,m.activePointerId),M=!0;A&&Ui(A,P.currentTarget)?!m.isOverTarget&&m.pointerType!=null&&(m.isOverTarget=!0,M=y(P,m.pointerType)):m.isOverTarget&&m.pointerType!=null&&(m.isOverTarget=!1,M=x(P,m.pointerType,!1),$(P)),M&&P.stopPropagation()},C.onTouchEnd=P=>{if(!P.currentTarget.contains(P.target))return;if(!m.isPressed){P.stopPropagation();return}let A=y0(P.nativeEvent,m.activePointerId),M=!0;A&&Ui(A,P.currentTarget)&&m.pointerType!=null?(S(P,m.pointerType),M=x(P,m.pointerType)):m.isOverTarget&&m.pointerType!=null&&(M=x(P,m.pointerType,!1)),M&&P.stopPropagation(),m.isPressed=!1,m.activePointerId=null,m.isOverTarget=!1,m.ignoreEmulatedMouseEvents=!0,m.target&&!c&&Vs(m.target),v()},C.onTouchCancel=P=>{P.currentTarget.contains(P.target)&&(P.stopPropagation(),m.isPressed&&D(P))};let R=P=>{m.isPressed&&P.target.contains(m.target)&&D({currentTarget:m.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};C.onDragStart=P=>{P.currentTarget.contains(P.target)&&D(P)}}return C},[b,o,l,v,c,D,$,x,y,S]);return w.useEffect(()=>()=>{var m;c||Vs((m=p.current.target)!==null&&m!==void 0?m:void 0)},[c]),{isPressed:s||f,pressProps:qt(h,F)}}function _h(e){return e.tagName==="A"&&e.hasAttribute("href")}function Mc(e,t){const{key:n,code:r}=e,i=t,a=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof Fn(i).HTMLInputElement&&!_y(i,n)||i instanceof Fn(i).HTMLTextAreaElement||i.isContentEditable)&&!((a==="link"||!a&&_h(i))&&n!=="Enter")}function WF(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function y0(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 ar(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function zF(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 GF(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Ui(e,t){let n=t.getBoundingClientRect(),r=zF(e);return GF(n,r)}function Bc(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function x0(e,t){return e instanceof HTMLInputElement?!_y(e,t):e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!_h(e)}const XF=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function _y(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":XF.has(e.type)}class ZF{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 $y(e){let t=w.useRef({isFocused:!1,observer:null});Oi(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=gr(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,a=o=>{t.current.isFocused=!1,i.disabled&&n(new ZF("blur",o)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var o;(o=t.current.observer)===null||o===void 0||o.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 Ry(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const a=w.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),i&&i(!1),!0},[r,i]),o=$y(a),s=w.useCallback(l=>{const u=At(l.target);l.target===l.currentTarget&&u.activeElement===l.target&&(n&&n(l),i&&i(!0),o(l))},[i,n,o]);return{focusProps:{onFocus:!t&&(n||i||r)?s:void 0,onBlur:!t&&(r||i)?a:void 0}}}let Ta=null,Wd=new Set,uo=new Map,Ti=!1,zd=!1;const YF={Tab:!0,Escape:!0};function $h(e,t){for(let n of Wd)n(e,t)}function UF(e){return!(e.metaKey||!Lo()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function nu(e){Ti=!0,UF(e)&&(Ta="keyboard",$h("keyboard",e))}function wn(e){Ta="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Ti=!0,$h("pointer",e))}function Ay(e){Hd(e)&&(Ti=!0,Ta="virtual")}function Fy(e){e.target===window||e.target===document||(!Ti&&!zd&&(Ta="virtual",$h("virtual",e)),Ti=!1,zd=!1)}function Ty(){Ti=!1,zd=!0}function Gd(e){if(typeof window>"u"||uo.get(Fn(e)))return;const t=Fn(e),n=At(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Ti=!0,r.apply(this,arguments)},n.addEventListener("keydown",nu,!0),n.addEventListener("keyup",nu,!0),n.addEventListener("click",Ay,!0),t.addEventListener("focus",Fy,!0),t.addEventListener("blur",Ty,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",wn,!0),n.addEventListener("pointermove",wn,!0),n.addEventListener("pointerup",wn,!0)):(n.addEventListener("mousedown",wn,!0),n.addEventListener("mousemove",wn,!0),n.addEventListener("mouseup",wn,!0)),t.addEventListener("beforeunload",()=>{Py(e)},{once:!0}),uo.set(t,{focus:r})}const Py=(e,t)=>{const n=Fn(e),r=At(e);t&&r.removeEventListener("DOMContentLoaded",t),uo.has(n)&&(n.HTMLElement.prototype.focus=uo.get(n).focus,r.removeEventListener("keydown",nu,!0),r.removeEventListener("keyup",nu,!0),r.removeEventListener("click",Ay,!0),n.removeEventListener("focus",Fy,!0),n.removeEventListener("blur",Ty,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",wn,!0),r.removeEventListener("pointermove",wn,!0),r.removeEventListener("pointerup",wn,!0)):(r.removeEventListener("mousedown",wn,!0),r.removeEventListener("mousemove",wn,!0),r.removeEventListener("mouseup",wn,!0)),uo.delete(n))};function JF(e){const t=At(e);let n;return t.readyState!=="loading"?Gd(e):(n=()=>{Gd(e)},t.addEventListener("DOMContentLoaded",n)),()=>Py(e,n)}typeof document<"u"&&JF();function ky(){return Ta!=="pointer"}function My(){return Ta}const KF=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function qF(e,t,n){var r;const i=typeof window<"u"?Fn(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,a=typeof window<"u"?Fn(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,o=typeof window<"u"?Fn(n==null?void 0:n.target).HTMLElement:HTMLElement,s=typeof window<"u"?Fn(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof i&&!KF.has(n==null||(r=n.target)===null||r===void 0?void 0:r.type)||(n==null?void 0:n.target)instanceof a||(n==null?void 0:n.target)instanceof o&&(n==null?void 0:n.target.isContentEditable),!(e&&t==="keyboard"&&n instanceof s&&!YF[n.key])}function QF(e,t,n){Gd(),w.useEffect(()=>{let r=(i,a)=>{qF(!!(n!=null&&n.isTextInput),i,a)&&e(ky())};return Wd.add(r),()=>{Wd.delete(r)}},t)}function By(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,a=w.useRef({isFocusWithin:!1}),o=w.useCallback(u=>{a.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(a.current.isFocusWithin=!1,n&&n(u),i&&i(!1))},[n,i,a]),s=$y(o),l=w.useCallback(u=>{!a.current.isFocusWithin&&document.activeElement===u.target&&(r&&r(u),i&&i(!0),a.current.isFocusWithin=!0,s(u))},[r,i,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:o}}}function C0(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 e7(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:C0(e.onKeyDown),onKeyUp:C0(e.onKeyUp)}}}function Oy(e){const t=At(e);if(My()==="virtual"){let n=t.activeElement;Cy(()=>{t.activeElement===n&&e.isConnected&&Lr(e)})}else Lr(e)}function t7(e){const t=Fn(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:a}=e.ownerDocument.defaultView;let{display:o,visibility:s}=a(e);i=o!=="none"&&s!=="hidden"&&s!=="collapse"}return i}function n7(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 Ny(e,t){return e.nodeName!=="#comment"&&t7(e)&&n7(e,t)&&(!e.parentElement||Ny(e.parentElement,e))}const Rh=["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]"],r7=Rh.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Rh.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const i7=Rh.join(':not([hidden]):not([tabindex="-1"]),');function Vy(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function Va(e,t=!1){if(e!=null&&!t)try{Oy(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function Ja(e,t,n){let r=t!=null&&t.tabbable?i7:r7,i=At(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(a){var o;return!(t==null||(o=t.from)===null||o===void 0)&&o.contains(a)?NodeFilter.FILTER_REJECT:a.matches(r)&&Ny(a)&&(!n||Vy(a,n))&&(!(t!=null&&t.accept)||t.accept(a))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(i.currentNode=t.from),i}function Ly(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:o=t.wrap,accept:s=t.accept}=n,l=i||At(r).activeElement,u=Ja(r,{tabbable:a,accept:s});r.contains(l)&&(u.currentNode=l);let c=u.nextNode();return!c&&o&&(u.currentNode=r,c=u.nextNode()),c&&Va(c,!0),c},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:o=t.wrap,accept:s=t.accept}=n,l=i||At(r).activeElement,u=Ja(r,{tabbable:a,accept:s});if(r.contains(l))u.currentNode=l;else{let d=Oc(u);return d&&Va(d,!0),d??null}let c=u.previousNode();if(!c&&o){u.currentNode=r;let d=Oc(u);if(!d)return null;c=d}return c&&Va(c,!0),c??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,s=Ja(r,{tabbable:i,accept:a}).nextNode();return s&&Va(s,!0),s},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,o=Ja(r,{tabbable:i,accept:a}),s=Oc(o);return s&&Va(s,!0),s??null}}}function Oc(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class Ah{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 a=new w0({scopeRef:t});i.addChild(a),a.parent=i,this.fastMap.set(t,a),r&&(a.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 a of this.traverse())a!==n&&n.nodeToRestore&&a.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&Vy(a.nodeToRestore,n.scopeRef.current)&&(a.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(a=>r&&r.addChild(a))),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 Ah;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 w0({scopeRef:null}),this.fastMap.set(null,this.root)}}class w0{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 Ah;function Hy(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=w.useRef({isFocused:!1,isFocusVisible:t||ky()}),[a,o]=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,o(f),u()},[u]);QF(f=>{i.current.isFocusVisible=f,u()},[],{isTextInput:n});let{focusProps:d}=Ry({isDisabled:r,onFocusChange:c}),{focusWithinProps:h}=By({isDisabled:!r,onFocusWithinChange:c});return{isFocused:a,isFocusVisible:s,focusProps:r?h:d}}let a7=w.createContext(null);function o7(e){let t=w.useContext(a7)||{};wy(t,e);let{ref:n,...r}=t;return r}function s7(e,t){let{focusProps:n}=Ry(e),{keyboardProps:r}=e7(e),i=qt(n,r),a=o7(t),o=e.isDisabled?{}:a,s=w.useRef(e.autoFocus);return w.useEffect(()=>{s.current&&t.current&&Oy(t.current),s.current=!1},[t]),{focusableProps:qt({...i,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},o)}}const l7=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),u7=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function jy(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 l7.has(n.script)}let t=e.split("-")[0];return u7.has(t)}const c7=Symbol.for("react-aria.i18n.locale");function Wy(){let e=typeof window<"u"&&window[c7]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:jy(e)?"rtl":"ltr"}}let Xd=Wy(),Ka=new Set;function D0(){Xd=Wy();for(let e of Ka)e(Xd)}function zy(){let e=py(),[t,n]=w.useState(Xd);return w.useEffect(()=>(Ka.size===0&&window.addEventListener("languagechange",D0),Ka.add(n),()=>{Ka.delete(n),Ka.size===0&&window.removeEventListener("languagechange",D0)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const Gy=w.createContext(null);function Fh(e){let{locale:t,children:n}=e,r=zy(),i=w.useMemo(()=>t?{locale:t,direction:jy(t)?"rtl":"ltr"}:r,[r,t]);return w.createElement(Gy.Provider,{value:i},n)}function Nn(){let e=zy();return w.useContext(Gy)||e}const d7=Symbol.for("react-aria.i18n.locale"),f7=Symbol.for("react-aria.i18n.strings");let Ji;class Ni{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=h7(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[d7];if(Ji===void 0){let i=window[f7];if(!i)return null;Ji={};for(let a in i)Ji[a]=new Ni({[n]:i[a]},n)}let r=Ji==null?void 0:Ji[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 h7(e,t,n="en-US"){if(t[e])return t[e];let r=g7(e);if(t[r])return t[r];for(let i in t)if(i.startsWith(r+"-"))return t[i];return t[n]}function g7(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const S0=new Map,E0=new Map;class Xy{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 a=this.locale+":"+r,o=S0.get(a);o||(o=new Intl.PluralRules(this.locale,{type:r}),S0.set(a,o));let s=o.select(t);return i=n[s]||n.other,typeof i=="function"?i():i}number(t){let n=E0.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),E0.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 I0=new WeakMap;function m7(e){let t=I0.get(e);return t||(t=new Ni(e),I0.set(e,t)),t}function p7(e,t){return t&&Ni.getGlobalDictionaryForPackage(t)||m7(e)}function hs(e,t){let{locale:n}=Nn(),r=p7(e,t);return w.useMemo(()=>new Xy(n,r),[n,r])}function Yr(e){e=Sy(e??{},b7);let{locale:t}=Nn();return w.useMemo(()=>new Vo(t,e),[t,e])}function b7(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 v7(e,t){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:a,onPressEnd:o,onPressUp:s,onPressChange:l,preventFocusOnPress:u,allowFocusWhenDisabled:c,onClick:d,href:h,target:f,rel:g,type:p="button"}=e,b;n==="button"?b={type:p,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"?p:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?g:void 0};let{pressProps:v,isPressed:y}=Ih({onPressStart:a,onPressEnd:o,onPressChange:l,onPress:i,onPressUp:s,isDisabled:r,preventFocusOnPress:u,ref:t}),{focusableProps:x}=s7(e,t);c&&(x.tabIndex=r?-1:x.tabIndex);let S=qt(x,v,Dh(e,{labelable:!0}));return{isPressed:y,buttonProps:qt(b,S,{"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 Zy={};Zy={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 Yy={};Yy={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 Uy={};Uy={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 Jy={};Jy={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 Ky={};Ky={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 qy={};qy={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 Qy={};Qy={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 tx={};tx={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 nx={};nx={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 rx={};rx={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 ix={};ix={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 ox={};ox={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 sx={};sx={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 lx={};lx={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 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 cx={};cx={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 dx={};dx={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 fx={};fx={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 hx={};hx={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 gx={};gx={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 mx={};mx={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 px={};px={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 bx={};bx={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 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=>`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 xx={};xx={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 Cx={};Cx={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 wx={};wx={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 Dx={};Dx={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 Sx={};Sx={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 Ex={};Ex={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 Ix={};Ix={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 gs={};gs={"ar-AE":Zy,"bg-BG":Yy,"cs-CZ":Uy,"da-DK":Jy,"de-DE":Ky,"el-GR":qy,"en-US":Qy,"es-ES":ex,"et-EE":tx,"fi-FI":nx,"fr-FR":rx,"he-IL":ix,"hr-HR":ax,"hu-HU":ox,"it-IT":sx,"ja-JP":lx,"ko-KR":ux,"lt-LT":cx,"lv-LV":dx,"nb-NO":fx,"nl-NL":hx,"pl-PL":gx,"pt-BR":mx,"pt-PT":px,"ro-RO":bx,"ru-RU":vx,"sk-SK":yx,"sl-SI":xx,"sr-SP":Cx,"sv-SE":wx,"tr-TR":Dx,"uk-UA":Sx,"zh-CN":Ex,"zh-TW":Ix};function _x(e){return e&&e.__esModule?e.default:e}const Th=new WeakMap;function Wo(e){return(e==null?void 0:e.calendar.identifier)==="gregory"&&e.era==="BC"?"short":void 0}function y7(e){let t=hs(_x(gs),"@react-aria/calendar"),n,r;"highlightedRange"in e?{start:n,end:r}=e.highlightedRange||{}:n=r=e.value;let i=Yr({weekday:"long",month:"long",year:"numeric",day:"numeric",era:Wo(n)||Wo(r),timeZone:e.timeZone}),a="anchorDate"in e?e.anchorDate:null;return w.useMemo(()=>{if(!a&&n&&r)if(gt(n,r)){let o=i.format(n.toDate(e.timeZone));return t.format("selectedDateDescription",{date:o})}else{let o=Yd(i,t,n,r,e.timeZone);return t.format("selectedRangeDescription",{dateRange:o})}return""},[n,r,a,e.timeZone,t,i])}function Zd(e,t,n,r){let i=hs(_x(gs),"@react-aria/calendar"),a=Wo(e)||Wo(t),o=Yr({month:"long",year:"numeric",era:a,calendar:e.calendar.identifier,timeZone:n}),s=Yr({month:"long",year:"numeric",day:"numeric",era:a,calendar:e.calendar.identifier,timeZone:n});return w.useMemo(()=>{if(gt(e,cs(e))){if(gt(t,Fd(e)))return o.format(e.toDate(n));if(gt(t,Fd(t)))return r?Yd(o,i,e,t,n):o.formatRange(e.toDate(n),t.toDate(n))}return r?Yd(s,i,e,t,n):s.formatRange(e.toDate(n),t.toDate(n))},[e,t,o,s,i,n,r])}function Yd(e,t,n,r,i){let a=e.formatRangeToParts(n.toDate(i),r.toDate(i)),o=-1;for(let u=0;u<a.length;u++){let c=a[u];if(c.source==="shared"&&c.type==="literal")o=u;else if(c.source==="endRange")break}let s="",l="";for(let u=0;u<a.length;u++)u<o?s+=a[u].value:u>o&&(l+=a[u].value);return t.format("dateRange",{startDate:s,endDate:l})}const $x=7e3;let Nc=null;function _0(e,t="assertive",n=$x){Nc||(Nc=new x7),Nc.announce(e,t,n)}class x7{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=$x){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 C7(e){return e&&e.__esModule?e.default:e}function Rx(e,t){let n=hs(C7(gs),"@react-aria/calendar"),r=Dh(e),i=Zd(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),a=Zd(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);g0(()=>{t.isFocused||_0(a)},[a]);let o=y7(t);g0(()=>{o&&_0(o,"polite",4e3)},[o]);let s=Nd([!!e.errorMessage,e.isInvalid,e.validationState]);Th.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:s,selectedDateDescription:o});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=Eh({id:e.id,"aria-label":[e["aria-label"],a].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:qt(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 Ax(e,t){return Rx(e,t)}function w7(e,t,n){let r=Rx(e,t),i=w.useRef(!1),a=w.useRef(typeof window<"u"?window:null);return kc(a,"pointerdown",s=>{i.current=s.width===0&&s.height===0}),kc(a,"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()},kc(n,"touchmove",s=>{t.isDragging&&s.preventDefault()},{passive:!1,capture:!0}),r}function Fx(e,t){let{startDate:n=t.visibleRange.start,endDate:r=t.visibleRange.end}=e,{direction:i}=Nn(),a=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}},o=Zd(n,r,t.timeZone,!0),{ariaLabel:s,ariaLabelledBy:l}=Th.get(t),u=Eh({"aria-label":[s,o].filter(Boolean).join(", "),"aria-labelledby":l}),c=Yr({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:d}=Nn(),h=w.useMemo(()=>{let f=Bo(ch(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:qt(u,{role:"grid","aria-readonly":t.isReadOnly||null,"aria-disabled":t.isDisabled||null,"aria-multiselectable":"highlightedRange"in t||void 0,onKeyDown:a,onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:h}}function D7(e){return e&&e.__esModule?e.default:e}function S7(e,t,n){let{date:r,isDisabled:i}=e,{errorMessageId:a,selectedDateDescription:o}=Th.get(t),s=hs(D7(gs),"@react-aria/calendar"),l=Yr({weekday:"long",day:"numeric",month:"long",year:"numeric",era:Wo(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&&gt(t.value,r));f&&(u=!0),r=Sy(r,Ad);let g=w.useMemo(()=>r.toDate(t.timeZone),[r,t.timeZone]),p=pA(r,t.timeZone),b=w.useMemo(()=>{let E="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(gt(r,t.value.start)||gt(r,t.value.end))&&(E=o+", "),E+=l.format(g),p?E=s.format(u?"todayDateSelected":"todayDate",{date:E}):u&&(E=s.format("dateSelected",{date:E})),t.minValue&&gt(r,t.minValue)?E+=", "+s.format("minimumDate"):t.maxValue&&gt(r,t.maxValue)&&(E+=", "+s.format("maximumDate")),E},[l,g,s,u,p,r,t,o]),v="";"anchorDate"in t&&c&&!t.isReadOnly&&h&&(t.anchorDate?v=s.format("finishRangeSelectionPrompt"):v=s.format("startRangeSelectionPrompt"));let y=Dy(v),x=w.useRef(!1),S=w.useRef(!1),D=w.useRef(null),{pressProps:$,isPressed:F}=Ih({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!h||t.isReadOnly,onPressStart(E){if(t.isReadOnly){t.setFocusedDate(r);return}if("highlightedRange"in t&&!t.anchorDate&&(E.pointerType==="mouse"||E.pointerType==="touch")){if(t.highlightedRange&&!f){if(gt(r,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(r),t.setDragging(!0),S.current=!0;return}else if(gt(r,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(r),t.setDragging(!0),S.current=!0;return}}let R=()=>{t.setDragging(!0),D.current=null,t.selectDate(r),t.setFocusedDate(r),x.current=!0};E.pointerType==="touch"?D.current=setTimeout(R,200):R()}},onPressEnd(){S.current=!1,x.current=!1,clearTimeout(D.current),D.current=null},onPress(){!("anchorDate"in t)&&!t.isReadOnly&&(t.selectDate(r),t.setFocusedDate(r))},onPressUp(E){if(!t.isReadOnly&&("anchorDate"in t&&D.current&&(t.selectDate(r),t.setFocusedDate(r)),"anchorDate"in t))if(S.current)t.setAnchorDate(r);else if(t.anchorDate&&!x.current)t.selectDate(r),t.setFocusedDate(r);else if(E.pointerType==="keyboard"&&!t.anchorDate){t.selectDate(r);let R=r.add({days:1});t.isInvalid(R)&&(R=r.subtract({days:1})),t.isInvalid(R)||t.setFocusedDate(R)}else E.pointerType==="virtual"&&(t.selectDate(r),t.setFocusedDate(r))}}),m=null;i||(m=gt(r,t.focusedDate)?0:-1),w.useEffect(()=>{c&&n.current&&(Lr(n.current),My()!=="pointer"&&document.activeElement===n.current&&OF(n.current,{containingElement:PF(n.current)}))},[c,n]);let C=Yr({day:"numeric",timeZone:t.timeZone,calendar:r.calendar.identifier}),I=w.useMemo(()=>C.formatToParts(g).find(E=>E.type==="day").value,[C,g]);return{cellProps:{role:"gridcell","aria-disabled":!h||null,"aria-selected":u||null,"aria-invalid":f||null},buttonProps:qt($,{onFocus(){i||t.setFocusedDate(r)},tabIndex:m,role:"button","aria-disabled":!h||null,"aria-label":b,"aria-invalid":f||null,"aria-describedby":[f?a:null,y["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(E){"highlightDate"in t&&(E.pointerType!=="touch"||t.isDragging)&&h&&t.highlightDate(r)},onPointerDown(E){"releasePointerCapture"in E.target&&E.target.releasePointerCapture(E.pointerId)},onContextMenu(E){E.preventDefault()}}),isPressed:F,isFocused:c,isSelected:u,isDisabled:i,isUnavailable:d,isOutsideVisibleRange:r.compare(t.visibleRange.start)<0||r.compare(t.visibleRange.end)>0,isInvalid:f,formattedDate:I}}const Lu={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},Tx={...Lu,customError:!0,valid:!1},mi={isInvalid:!1,validationDetails:Lu,validationErrors:[]},E7=w.createContext({}),ru="__formValidationState"+Date.now();function I7(e){if(e[ru]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}=e[ru];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}}return _7(e)}function _7(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:a,validate:o,validationBehavior:s="aria"}=e;n&&(t||(t=n==="invalid"));let l=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:Tx}:null,u=w.useMemo(()=>$0($7(o,i)),[o,i]);a!=null&&a.validationDetails.valid&&(a=null);let c=w.useContext(E7),d=w.useMemo(()=>r?Array.isArray(r)?r.flatMap(I=>Ud(c[I])):Ud(c[r]):[],[c,r]),[h,f]=w.useState(c),[g,p]=w.useState(!1);c!==h&&(f(c),p(!1));let b=w.useMemo(()=>$0(g?[]:d),[g,d]),v=w.useRef(mi),[y,x]=w.useState(mi),S=w.useRef(mi),D=()=>{if(!$)return;F(!1);let I=u||a||v.current;Vc(I,S.current)||(S.current=I,x(I))},[$,F]=w.useState(!1);return w.useEffect(D),{realtimeValidation:l||b||u||a||mi,displayValidation:s==="native"?l||b||y:l||b||u||a||y,updateValidation(I){s==="aria"&&!Vc(y,I)?x(I):v.current=I},resetValidation(){let I=mi;Vc(I,S.current)||(S.current=I,x(I)),s==="native"&&F(!1),p(!0)},commitValidation(){s==="native"&&F(!0),p(!0)}}}function Ud(e){return e?Array.isArray(e)?e:[e]:[]}function $7(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return Ud(n)}return[]}function $0(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:Tx}:null}function Vc(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 iu(...e){let t=new Set,n=!1,r={...Lu};for(let o of e){var i,a;for(let s of o.validationErrors)t.add(s);n||(n=o.isInvalid);for(let s in r)(i=r)[a=s]||(i[a]=o.validationDetails[s])}return r.valid=!n,{isInvalid:n,validationErrors:[...t],validationDetails:r}}function R7(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:a="label"}=e;t=Da(t);let o=Da(),s={};n?(r=r?`${o} ${r}`:o,s={id:o,htmlFor:a==="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=Eh({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:s,fieldProps:l}}function A7(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:a,fieldProps:o}=R7(e),s=Nd([!!t,!!n,r,i]),l=Nd([!!t,!!n,r,i]);return o=qt(o,{"aria-describedby":[s,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:a,fieldProps:o,descriptionProps:{id:s},errorMessageProps:{id:l}}}var Px={};Px={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 kx={};kx={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 Mx={};Mx={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 Bx={};Bx={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 Ox={};Ox={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 Nx={};Nx={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 Vx={};Vx={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 Lx={};Lx={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 Hx={};Hx={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 jx={};jx={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 Wx={};Wx={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 zx={};zx={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 Gx={};Gx={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 Xx={};Xx={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 Zx={};Zx={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 Yx={};Yx={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 Ux={};Ux={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 Jx={};Jx={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 Kx={};Kx={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 qx={};qx={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 Qx={};Qx={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 t4={};t4={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 n4={};n4={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 r4={};r4={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 i4={};i4={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 o4={};o4={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 s4={};s4={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 l4={};l4={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 u4={};u4={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 c4={};c4={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 d4={};d4={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 f4={};f4={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 h4={};h4={"ar-AE":Px,"bg-BG":kx,"cs-CZ":Mx,"da-DK":Bx,"de-DE":Ox,"el-GR":Nx,"en-US":Vx,"es-ES":Lx,"et-EE":Hx,"fi-FI":jx,"fr-FR":Wx,"he-IL":zx,"hr-HR":Gx,"hu-HU":Xx,"it-IT":Zx,"ja-JP":Yx,"ko-KR":Ux,"lt-LT":Jx,"lv-LV":Kx,"nb-NO":qx,"nl-NL":Qx,"pl-PL":e4,"pt-BR":t4,"pt-PT":n4,"ro-RO":r4,"ru-RU":i4,"sk-SK":a4,"sl-SI":o4,"sr-SP":s4,"sv-SE":l4,"tr-TR":u4,"uk-UA":c4,"zh-CN":d4,"zh-TW":f4};function F7(e,t,n){let{direction:r}=Nn(),i=w.useMemo(()=>Ly(t),[t]),a=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}},o=()=>{var l;let u=(l=window.event)===null||l===void 0?void 0:l.target,c=Ja(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}=Ih({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(l){l.pointerType==="mouse"&&o()},onPress(l){l.pointerType!=="mouse"&&o()}});return qt(s,{onKeyDown:a})}const T7="__role_"+Date.now(),P7="__focusManager_"+Date.now();function k7(e){return e&&e.__esModule?e.default:e}function M7(e,t,n){var r,i;let a=hs(k7(h4),"@react-aria/datepicker"),{isInvalid:o,validationErrors:s,validationDetails:l}=t.displayValidation,{labelProps:u,fieldProps:c,descriptionProps:d,errorMessageProps:h}=A7({...e,labelElementType:"span",isInvalid:o,errorMessage:e.errorMessage||s}),f=c["aria-labelledby"]||c.id,{locale:g}=Nn(),p=t.formatValue(g,{month:"long"}),b=p?a.format("selectedRangeDescription",{startDate:p.start,endDate:p.end}):"",v=Dy(b),y={"aria-label":a.format("startDate"),"aria-labelledby":f},x={"aria-label":a.format("endDate"),"aria-labelledby":f},S=Da(),D=Da(),$=F7(t,n),F=[v["aria-describedby"],c["aria-describedby"]].filter(Boolean).join(" ")||void 0,m=w.useMemo(()=>Ly(n,{accept:A=>A.id!==S}),[n,S]),C={[P7]:m,[T7]:"presentation","aria-describedby":F,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},I=Dh(e),{focusWithinProps:E}=By({...e,isDisabled:t.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),R=w.useRef(mi),P=w.useRef(mi);return{groupProps:qt(I,$,c,v,E,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":F,onKeyDown(A){t.isOpen||e.onKeyDown&&e.onKeyDown(A)},onKeyUp(A){t.isOpen||e.onKeyUp&&e.onKeyUp(A)}}),labelProps:{...u,onClick:()=>{m.focusFirst()}},buttonProps:{...v,id:S,"aria-haspopup":"dialog","aria-label":a.format("calendar"),"aria-labelledby":`${S} ${f}`,"aria-describedby":F,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:D,"aria-labelledby":`${S} ${f}`},startFieldProps:{...y,...C,value:(r=t.value)===null||r===void 0?void 0:r.start,onChange:A=>t.setDateTime("start",A),autoFocus:e.autoFocus,name:e.startName,[ru]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(A){R.current=A,t.updateValidation(iu(A,P.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...x,...C,value:(i=t.value)===null||i===void 0?void 0:i.end,onChange:A=>t.setDateTime("end",A),name:e.endName,[ru]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(A){P.current=A,t.updateValidation(iu(R.current,A))},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:o,validationErrors:s,validationDetails:l}}function ga(e,t,n){return t!=null&&e.compare(t)<0||n!=null&&e.compare(n)>0}function Jd(e,t,n,r,i){let a={};for(let s in t)a[s]=Math.floor(t[s]/2),a[s]>0&&t[s]%2===0&&a[s]--;let o=xi(e,t,n).subtract(a);return zo(e,o,t,n,r,i)}function xi(e,t,n,r,i){let a=e;return t.years?a=vA(e):t.months?a=cs(e):t.weeks&&(a=Bo(e,n)),zo(e,a,t,n,r,i)}function Kd(e,t,n,r,i){let a={...t};t.days?a.days--:t.weeks?a.weeks--:t.months?a.months--:t.years&&a.years--;let o=xi(e,t,n).subtract(a);return zo(e,o,t,n,r,i)}function zo(e,t,n,r,i,a){return i&&e.compare(i)>=0&&(t=fh(t,xi(cn(i),n,r))),a&&e.compare(a)<=0&&(t=dh(t,Kd(cn(a),n,r))),t}function Pr(e,t,n){return t&&(e=fh(e,cn(t))),n&&(e=dh(e,cn(n))),e}function g4(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 m4(e){let t=w.useMemo(()=>new Vo(e.locale),[e.locale]),n=w.useMemo(()=>t.resolvedOptions(),[t]),{locale:r,createCalendar:i,visibleDuration:a={months:1},minValue:o,maxValue:s,selectionAlignment:l,isDateUnavailable:u,pageBehavior:c="visible"}=e,d=w.useMemo(()=>i(n.calendar),[i,n.calendar]),[h,f]=jo(e.value,e.defaultValue,e.onChange),g=w.useMemo(()=>h?yt(cn(h),d):null,[h,d]),p=w.useMemo(()=>h&&"timeZone"in h?h.timeZone:n.timeZone,[h,n.timeZone]),b=w.useMemo(()=>e.focusedValue?Pr(yt(cn(e.focusedValue),d),o,s):void 0,[e.focusedValue,d,o,s]),v=w.useMemo(()=>Pr(e.defaultFocusedValue?yt(cn(e.defaultFocusedValue),d):g||yt(ch(p),d),o,s),[e.defaultFocusedValue,g,p,d,o,s]),[y,x]=jo(b,v,e.onFocusChange),[S,D]=w.useState(()=>{switch(l){case"start":return xi(y,a,r,o,s);case"end":return Kd(y,a,r,o,s);case"center":default:return Jd(y,a,r,o,s)}}),[$,F]=w.useState(e.autoFocus||!1),m=w.useMemo(()=>{let T={...a};return T.days?T.days--:T.days=-1,S.add(T)},[S,a]),[C,I]=w.useState(d.identifier);if(d.identifier!==C){let T=yt(y,d);D(Jd(T,a,r,o,s)),x(T),I(d.identifier)}ga(y,o,s)?x(Pr(y,o,s)):y.compare(S)<0?D(Kd(y,a,r,o,s)):y.compare(m)>0&&D(xi(y,a,r,o,s));function E(T){T=Pr(T,o,s),x(T)}function R(T){if(!e.isDisabled&&!e.isReadOnly){if(T===null){f(null);return}if(T=Pr(T,o,s),T=g4(T,S,u),!T)return;T=yt(T,(h==null?void 0:h.calendar)||new fn),h&&"hour"in h?f(h.set(T)):f(T)}}let P=w.useMemo(()=>g?u&&u(g)?!0:ga(g,o,s):!1,[g,u,o,s]),A=e.isInvalid||e.validationState==="invalid"||P,M=A?"invalid":null,k=w.useMemo(()=>c==="visible"?a:Lc(a),[c,a]);return{isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,value:g,setValue:R,visibleRange:{start:S,end:m},minValue:o,maxValue:s,focusedDate:y,timeZone:p,validationState:M,isValueInvalid:A,setFocusedDate(T){E(T),F(!0)},focusNextDay(){E(y.add({days:1}))},focusPreviousDay(){E(y.subtract({days:1}))},focusNextRow(){a.days?this.focusNextPage():(a.weeks||a.months||a.years)&&E(y.add({weeks:1}))},focusPreviousRow(){a.days?this.focusPreviousPage():(a.weeks||a.months||a.years)&&E(y.subtract({weeks:1}))},focusNextPage(){let T=S.add(k);x(Pr(y.add(k),o,s)),D(xi(zo(y,T,k,r,o,s),k,r))},focusPreviousPage(){let T=S.subtract(k);x(Pr(y.subtract(k),o,s)),D(xi(zo(y,T,k,r,o,s),k,r))},focusSectionStart(){a.days?E(S):a.weeks?E(Bo(y,r)):(a.months||a.years)&&E(cs(y))},focusSectionEnd(){a.days?E(m):a.weeks?E(yA(y,r)):(a.months||a.years)&&E(Fd(y))},focusNextSection(T){if(!T&&!a.days){E(y.add(Lc(a)));return}a.days?this.focusNextPage():a.weeks?E(y.add({months:1})):(a.months||a.years)&&E(y.add({years:1}))},focusPreviousSection(T){if(!T&&!a.days){E(y.subtract(Lc(a)));return}a.days?this.focusPreviousPage():a.weeks?E(y.subtract({months:1})):(a.months||a.years)&&E(y.subtract({years:1}))},selectFocusedDate(){R(y)},selectDate(T){R(T)},isFocused:$,setFocused:F,isInvalid(T){return ga(T,o,s)},isSelected(T){return g!=null&&gt(T,g)&&!this.isCellDisabled(T)&&!this.isCellUnavailable(T)},isCellFocused(T){return $&&y&&gt(T,y)},isCellDisabled(T){return e.isDisabled||T.compare(S)<0||T.compare(m)>0||this.isInvalid(T,o,s)},isCellUnavailable(T){return e.isDateUnavailable&&e.isDateUnavailable(T)},isPreviousVisibleRangeInvalid(){let T=S.subtract({days:1});return gt(T,S)||this.isInvalid(T,o,s)},isNextVisibleRangeInvalid(){let T=m.add({days:1});return gt(T,m)||this.isInvalid(T,o,s)},getDatesInWeek(T,B=S){let O=B.add({weeks:T}),L=[];O=Bo(O,r);let j=Ou(O,r);for(let z=0;z<j;z++)L.push(null);for(;L.length<7;){L.push(O);let z=O.add({days:1});if(gt(O,z))break;O=z}for(;L.length<7;)L.push(null);return L}}}function Lc(e){let t={...e};for(let n in e)t[n]=1;return t}function B7(e){let{value:t,defaultValue:n,onChange:r,createCalendar:i,locale:a,visibleDuration:o={months:1},minValue:s,maxValue:l,...u}=e,[c,d]=jo(t,n||null,r),[h,f]=w.useState(null),g="center";if(c&&c.start&&c.end){let B=Jd(cn(c.start),o,a,s,l).add(o).subtract({days:1});c.end.compare(B)>0&&(g="start")}let p=w.useRef(null),[b,v]=w.useState(null),y=w.useMemo(()=>fh(s,b==null?void 0:b.start),[s,b]),x=w.useMemo(()=>dh(l,b==null?void 0:b.end),[l,b]),S=m4({...u,value:c&&c.start,createCalendar:i,locale:a,visibleDuration:o,minValue:y,maxValue:x,selectionAlignment:g}),D=T=>{T&&e.isDateUnavailable&&!e.allowsNonContiguousRanges?(p.current={start:A0(T,S,-1),end:A0(T,S,1)},v(p.current)):(p.current=null,v(null))},[$,F]=w.useState(S.visibleRange);(!Ad(S.visibleRange.start,$.start)||!Ad(S.visibleRange.end,$.end))&&(D(h),F(S.visibleRange));let m=T=>{T?(f(T),D(T)):(f(null),D(null))},C=h?Hc(h,S.focusedDate):c&&Hc(c.start,c.end),I=T=>{if(!e.isReadOnly&&(T=Pr(T,y,x),T=g4(T,S.visibleRange.start,e.isDateUnavailable),!!T))if(!h)m(T);else{let B=Hc(h,T);d({start:R0(B.start,c==null?void 0:c.start),end:R0(B.end,c==null?void 0:c.end)}),m(null)}},[E,R]=w.useState(!1),{isDateUnavailable:P}=e,A=w.useMemo(()=>!c||h?!1:P&&(P(c.start)||P(c.end))?!0:ga(c.start,s,l)||ga(c.end,s,l),[P,c,h,s,l]),M=e.isInvalid||e.validationState==="invalid"||A;return{...S,value:c,setValue:d,anchorDate:h,setAnchorDate:m,highlightedRange:C,validationState:M?"invalid":null,isValueInvalid:M,selectFocusedDate(){I(S.focusedDate)},selectDate:I,highlightDate(T){h&&S.setFocusedDate(T)},isSelected(T){return C&&T.compare(C.start)>=0&&T.compare(C.end)<=0&&!S.isCellDisabled(T)&&!S.isCellUnavailable(T)},isInvalid(T){var B,O;return S.isInvalid(T)||ga(T,(B=p.current)===null||B===void 0?void 0:B.start,(O=p.current)===null||O===void 0?void 0:O.end)},isDragging:E,setDragging:R}}function Hc(e,t){return!e||!t?null:(t.compare(e)<0&&([e,t]=[t,e]),{start:cn(e),end:cn(t)})}function R0(e,t){return e=yt(e,(t==null?void 0:t.calendar)||new fn),t&&"hour"in t?t.set(e):e}function A0(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 O7(e){let[t,n]=jo(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=w.useCallback(()=>{n(!0)},[n]),i=w.useCallback(()=>{n(!1)},[n]),a=w.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:i,toggle:a}}var p4={};p4={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var b4={};b4={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var v4={};v4={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 y4={};y4={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 x4={};x4={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 C4={};C4={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var w4={};w4={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 D4={};D4={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 S4={};S4={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 E4={};E4={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 I4={};I4={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 _4={};_4={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var $4={};$4={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 R4={};R4={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 A4={};A4={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 F4={};F4={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var T4={};T4={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var P4={};P4={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 k4={};k4={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 M4={};M4={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 B4={};B4={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 O4={};O4={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 N4={};N4={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 V4={};V4={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 L4={};L4={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 H4={};H4={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var j4={};j4={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 W4={};W4={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 z4={};z4={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 G4={};G4={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 X4={};X4={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 Z4={};Z4={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var Y4={};Y4={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var U4={};U4={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var J4={};J4={"ar-AE":p4,"bg-BG":b4,"cs-CZ":v4,"da-DK":y4,"de-DE":x4,"el-GR":C4,"en-US":w4,"es-ES":D4,"et-EE":S4,"fi-FI":E4,"fr-FR":I4,"he-IL":_4,"hr-HR":$4,"hu-HU":R4,"it-IT":A4,"ja-JP":F4,"ko-KR":T4,"lt-LT":P4,"lv-LV":k4,"nb-NO":M4,"nl-NL":B4,"pl-PL":O4,"pt-BR":N4,"pt-PT":V4,"ro-RO":L4,"ru-RU":H4,"sk-SK":j4,"sl-SI":W4,"sr-SP":z4,"sv-SE":G4,"tr-TR":X4,"uk-UA":Z4,"zh-CN":Y4,"zh-TW":U4};function N7(e){return e&&e.__esModule?e.default:e}const K4=new Ni(N7(J4));function q4(){return typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US"}function F0(e,t,n,r,i){let a=e!=null&&n!=null&&e.compare(n)>0,o=e!=null&&t!=null&&e.compare(t)<0,s=e!=null&&(r==null?void 0:r(e))||!1,l=a||o||s,u=[];if(l){let c=q4(),d=Ni.getGlobalDictionaryForPackage("@react-stately/datepicker")||K4,h=new Xy(c,d),f=new Vo(c,qd({},i)),g=f.resolvedOptions().timeZone;o&&u.push(h.format("rangeUnderflow",{minValue:f.format(t.toDate(g))})),a&&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:a,rangeUnderflow:o,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!l}}}function V7(e,t,n,r,i){let a=F0(e==null?void 0:e.start,t,n,r,i),o=F0(e==null?void 0:e.end,t,n,r,i),s=iu(a,o);if(e.end!=null&&e.start!=null&&e.end.compare(e.start)<0){let l=Ni.getGlobalDictionaryForPackage("@react-stately/datepicker")||K4;s=iu(s,{isInvalid:!0,validationErrors:[l.getStringForLocale("rangeReversed",q4())],validationDetails:{...Lu,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})}return s}const L7={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},H7={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function qd(e,t){e={...t.shouldForceLeadingZeros?H7:L7,...e};let r=t.granularity||"minute",i=Object.keys(e);var a;let o=i.indexOf((a=t.maxGranularity)!==null&&a!==void 0?a:"year");o<0&&(o=0);let s=i.indexOf(r);if(s<0&&(s=2),o>s)throw new Error("maxGranularity must be greater than granularity");let l=i.slice(o,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&&o===0&&(l.era="short"),l}function js(e){return e&&"hour"in e?e:new yh}function j7(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,a]=w.useState([r,n]);e&&(i[0]!==r||i[1]!==n)&&a([r,n]),t||(t=e?r:i[0]);let o=e?n:i[1];return[t,o]}function W7(e){var t,n;let r=O7(e),[i,a]=jo(e.value,e.defaultValue||null,e.onChange),[o,s]=w.useState(()=>i||{start:null,end:null});i==null&&o.start&&o.end&&(o={start:null,end:null},s(o));let l=i||o,u=k=>{s(k||{start:null,end:null}),k!=null&&k.start&&k.end?a(k):a(null)},c=(l==null?void 0:l.start)||(l==null?void 0:l.end)||e.placeholderValue,[d,h]=j7(c,e.granularity),f=d==="hour"||d==="minute"||d==="second";var g;let p=(g=e.shouldCloseOnSelect)!==null&&g!==void 0?g:!0,[b,v]=w.useState(null),[y,x]=w.useState(null);l&&l.start&&l.end&&(b=l,"hour"in l.start&&(y=l));let S=(k,T)=>{u({start:"timeZone"in T.start?T.start.set(cn(k.start)):Zr(k.start,T.start),end:"timeZone"in T.end?T.end.set(cn(k.end)):Zr(k.end,T.end)}),v(null),x(null),P.commitValidation()},D=k=>{let T=typeof p=="function"?p():p;f?T||k.start&&k.end&&(y!=null&&y.start)&&(y!=null&&y.end)?S(k,{start:(y==null?void 0:y.start)||js(e.placeholderValue),end:(y==null?void 0:y.end)||js(e.placeholderValue)}):v(k):k.start&&k.end?(u(k),P.commitValidation()):v(k),T&&r.setOpen(!1)},$=k=>{b!=null&&b.start&&(b!=null&&b.end)&&k.start&&k.end?S(b,k):x(k)},F=(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",m=w.useMemo(()=>({granularity:d,timeZone:h,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:F}),[d,e.hourCycle,e.shouldForceLeadingZeros,h,e.hideTimeZone,F]),{minValue:C,maxValue:I,isDateUnavailable:E}=e,R=w.useMemo(()=>V7(l,C,I,E,m),[l,C,I,E,m]),P=I7({...e,value:i,name:w.useMemo(()=>[e.startName,e.endName],[e.startName,e.endName]),builtinValidation:R}),A=P.displayValidation.isInvalid,M=e.validationState||(A?"invalid":null);return{...P,value:l,setValue:u,dateRange:b,timeRange:y,granularity:d,hasTime:f,setDate(k,T){D({...b,[k]:T})},setTime(k,T){$({...y,[k]:T})},setDateTime(k,T){u({...l,[k]:T})},setDateRange:D,setTimeRange:$,...r,setOpen(k){!k&&!(l!=null&&l.start&&(l!=null&&l.end))&&(b!=null&&b.start)&&(b!=null&&b.end)&&f&&S(b,{start:(y==null?void 0:y.start)||js(e.placeholderValue),end:(y==null?void 0:y.end)||js(e.placeholderValue)}),r.setOpen(k)},validationState:M,isInvalid:A,formatValue(k,T){if(!l||!l.start||!l.end)return null;let B="timeZone"in l.start?l.start.timeZone:void 0,O=e.granularity||(l.start&&"minute"in l.start?"minute":"day"),L="timeZone"in l.end?l.end.timeZone:void 0,j=e.granularity||(l.end&&"minute"in l.end?"minute":"day"),z=qd(T,{granularity:O,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"}),Y=l.start.toDate(B||"UTC"),G=l.end.toDate(L||"UTC"),H=new Vo(k,z),V;if(B===L&&O===j&&l.start.compare(l.end)!==0){try{let X=H.formatRangeToParts(Y,G),K=-1;for(let ie=0;ie<X.length;ie++){let Z=X[ie];if(Z.source==="shared"&&Z.type==="literal")K=ie;else if(Z.source==="endRange")break}let te="",ue="";for(let ie=0;ie<X.length;ie++)ie<K?te+=X[ie].value:ie>K&&(ue+=X[ie].value);return{start:te,end:ue}}catch{}V=H}else{let X=qd(T,{granularity:j,timeZone:L,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle});V=new Vo(k,X)}return{start:H.format(Y),end:V.format(G)}}}}const Q4=e=>{const t=w.useRef(null),{locale:n}=Nn(),{state:r,date:i}=e,{cellProps:a,buttonProps:o,isSelected:s,isOutsideVisibleRange:l,isDisabled:u,formattedDate:c,isInvalid:d}=S7({date:i},r,t),{focusProps:h}=Hy(),f="highlightedRange"in r?r.highlightedRange?gt(i,r.highlightedRange.start):null:s,g="highlightedRange"in r?r.highlightedRange?gt(i,r.highlightedRange.end):null:s,p=Ou(i,n),b=s&&(f??p===0??i.day===1),v=s&&(g??p===6??i.day===i.calendar.getDaysInMonth(i));return _.jsx("td",{...a,children:_.jsx("div",{...qt(o,h),ref:t,className:`${be["cell-calendar"]} ${b?"1ru-rounded-l-full":""} ${v?"1ru-rounded-r-full":""} ${s?d?"1ru-bg-red-300":"1ru-bg-laba-blue-02":""} ${u?"1ru-disabled":""}`,children:l?_.jsx("div",{className:be["visible-cell-calendar"],children:c}):_.jsx("div",{className:`${be["active-cell-calendar"]} ${u&&!d?be.disabled:""} ${f||g?d?be.error:be.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})})})},Sa=e=>{const t=w.useRef(null),{buttonProps:n}=v7(e,t),{focusProps:r}=Hy();return _.jsx("button",{...qt(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:a})=>{const o=new Date().getFullYear(),s=n.focusedDate.calendar.getMonthsInYear(n.focusedDate),l=Yr({month:"short",timeZone:n.timeZone}),u=(d,h)=>{const f=n.focusedDate.set({month:d});h?(r("date"),n.setFocusedDate(f)):!h&&typeof i=="function"&&i(f)},c=d=>{const h=n.focusedDate.set({year:d});n.setFocusedDate(h)};return _.jsxs("div",{className:`1ru-w-[296px] ${be["container-calendar"]}`,children:[_.jsxs("div",{className:be["header-calendar"],children:[_.jsx(Sa,{isDisabled:n!=null&&n.minValue?n.focusedDate.year<=n.minValue.year:!1,onPress:()=>c(n.focusedDate.year-1),children:typeof e=="function"||w.isValidElement(e)?w.isValidElement(e)?e:e():_.jsx(Kn,{className:"1ru-rotate-90"})}),_.jsx("div",{className:`${be["header-button-calendar"]} ${a.includes("year")?"":be.disabled}`,onClick:()=>{a.includes("year")&&r("year")},children:n.focusedDate.year}),_.jsx(Sa,{isDisabled:n!=null&&n.maxValue?n.focusedDate.year>=n.maxValue.year:!1,onPress:()=>c(n.focusedDate.year+1),children:typeof t=="function"||w.isValidElement(t)?w.isValidElement(t)?t:t():_.jsx(Kn,{className:"-1ru-rotate-90"})})]}),_.jsx("div",{className:be["month-calendar"],children:[...Array(s).keys()].map(d=>{var y,x,S,D;const h=n.focusedDate.set({month:d+1}),f=l.format(h.toDate(n.timeZone)),g=((y=n.value)==null?void 0:y.year)||((S=(x=n.value)==null?void 0:x.start)==null?void 0:S.year)||o,p=n!=null&&n.minValue?h.month<((D=n==null?void 0:n.minValue)==null?void 0:D.month)&&h.year<=n.minValue.year:!1,b=n!=null&&n.maxValue?h.month>n.maxValue.month&&h.year>=n.maxValue.year:!1,v=p||b;return _.jsx("div",{onClick:()=>{v||u(h.month,a.includes("date"))},className:`${be["cell-month"]} ${n.focusedDate.month===h.month&&!v&&h.year===g?be.selected:""} ${n.focusedDate.month!==h.month&&!v?"hover:1ru-bg-laba-blue-01":""} ${v?"1ru-text-gray-400":"1ru-cursor-pointer"}`,children:f},d)})})]})},z7=e=>{const t=Zv(e.state.visibleRange.start,e.locale),{gridProps:n,headerProps:r,weekDays:i}=Fx({},e.state),{prevButtonProps:a,nextButtonProps:o,title:s}=Ax(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 _.jsxs("div",{children:[_.jsxs("div",{className:be["header-calendar"],children:[_.jsx(Sa,{...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():_.jsx(Kn,{className:"1ru-rotate-90"})}),_.jsx("div",{className:be["header-button-calendar"],onClick:()=>e.setActiveTypeCalendar("month"),children:s}),_.jsx(Sa,{...o,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():_.jsx(Kn,{className:"-1ru-rotate-90"})})]}),_.jsxs("table",{...n,children:[_.jsx("thead",{...r,children:_.jsx("tr",{children:i.map((u,c)=>_.jsx("th",{className:be["days-calendar"],children:l(c)},c))})}),_.jsx("tbody",{children:[...new Array(t).keys()].map(u=>_.jsx("tr",{children:e.state.getDatesInWeek(u).map((c,d)=>c?_.jsx(Q4,{state:e.state,date:c},d):_.jsx("td",{},d))},u))})]})]})},G7=({minDate:e,maxDate:t,value:n,time:r,handlerChangeTime:i})=>{const a=e?new Date(e):null,o=t?new Date(t):null,s=a==null?void 0:a.getHours(),l=o==null?void 0:o.getHours(),u=a==null?void 0:a.getMinutes(),c=o==null?void 0:o.getMinutes(),[d,h]=w.useState(!0),f=(v,y,x)=>Array.from({length:(y-v)/x+1},(S,D)=>v+D*x),g=(v,y)=>{typeof i=="function"&&i({hour:v,minut:y,second:r==null?void 0:r.second})},p=()=>{const v=document.getElementById(`calendar-hour-${r==null?void 0:r.hour}`),y=document.getElementById(`calendar-minut-${r==null?void 0:r.minut}`),x=document.getElementById("wrapper-calendar-hour"),S=document.getElementById("wrapper-calendar-minut");v&&x&&x.scrollTo({behavior:"instant",top:v.offsetTop-75}),y&&S&&S.scrollTo({behavior:"instant",top:y.offsetTop-75})},b=(v,y)=>{let x=!0;if(a&&n){const S=n.year===a.getFullYear(),D=n.month===a.getMonth()+1;n.day===a.getDate()&&D&&S?(y==="hour"&&v<(s??0)||y==="minut"&&((r==null?void 0:r.hour)??0)<=a.getHours()&&v<(u??0))&&(x=!1):n.toDate(Ai()).getTime()<a.getTime()&&(x=!1)}if(o&&n){const S=n.year===o.getFullYear(),D=n.month===o.getMonth()+1;n.day===o.getDate()&&D&&S?(y==="hour"&&v>(l??0)||y==="minut"&&((r==null?void 0:r.hour)??0)>=o.getHours()&&v>(c??0))&&(x=!1):n.toDate(Ai()).getTime()>o.getTime()&&(x=!1)}return x};return w.useEffect(()=>{d&&p(),r&&h(!1)},[JSON.stringify(n)]),_.jsxs("div",{className:be["custom-time-calendar"],children:[_.jsx("div",{className:be["header-time"],children:"Atur Waktu"}),_.jsxs("div",{className:be["type-time"],children:[_.jsx("div",{children:"Jam"}),_.jsx("div",{children:"Menit"})]}),_.jsxs("div",{className:"1ru-flex 1ru-justify-around",children:[_.jsx("div",{id:"wrapper-calendar-hour",className:be["container-cell-time"],children:f(0,23,1).map(v=>_.jsx("div",{id:`calendar-hour-${v}`,className:`${be["cell-time"]} ${(r==null?void 0:r.hour)===v?b(v,"hour")?be.selected:be.error:""} ${b(v,"hour")&&(r==null?void 0:r.hour)!=v?be.valid:be.invalid}`,onClick:()=>{b(v,"hour")&&g(v,r==null?void 0:r.minut)},children:v<10?`0${v}`:v},v))}),_.jsx("div",{id:"wrapper-calendar-minut",className:be["container-cell-time"],children:f(0,59,1).map(v=>_.jsx("div",{id:`calendar-minut-${v}`,className:`${be["cell-time"]} ${(r==null?void 0:r.minut)===v?b(v,"minut")?be.selected:be.error:""} ${b(v,"minut")&&(r==null?void 0:r.minut)!=v?be.valid:be.invalid}`,onClick:()=>{b(v,"minut")&&g(r==null?void 0:r.hour,v)},children:v<10?`0${v}`:v},v))})]})]})},Hu=e=>{const t=m4({...e,locale:e.locale,createCalendar:fs}),{title:n}=Ax(e,t),[r,i]=w.useState((e==null?void 0:e.activeType)??"date"),a=o=>{t.setValue(o)};return $i(()=>{e!=null&&e.activeType&&i(e.activeType)},[e==null?void 0:e.activeType]),_.jsxs("div",{className:"1ru-text-laba-base-sr",children:[r==="date"&&_.jsx(_.Fragment,{children:_.jsxs("div",{className:be["container-calendar"],children:[_.jsxs("div",{className:"1ru-flex 1ru-gap-2",children:[_.jsx(z7,{state:t,setActiveTypeCalendar:i,...e}),(e==null?void 0:e.isCustomTime)&&_.jsx(G7,{minDate:e.minDate,maxDate:e.maxDate,time:e.time,value:e.value,handlerChangeTime:e.handlerChangeTime})]}),((e==null?void 0:e.withConfirm)??(e==null?void 0:e.isCustomTime))&&_.jsxs("div",{className:`${be["footer-calendar"]}`,children:[typeof(e==null?void 0:e.buttonReset)=="function"?_.jsx("div",{onClick:()=>e.handlerReset(t),children:e.buttonReset()}):_.jsx(Mn,{variants:"nude-laba-blue-10",size:"small",onClick:()=>e.handlerReset(t),children:"Reset"}),typeof(e==null?void 0:e.buttonSubmit)=="function"?_.jsx("div",{onClick:e.handlerSubmit,children:e.buttonSubmit()}):_.jsx(Mn,{size:"small",onClick:e.handlerSubmit,children:"Terapkan"})]})]})}),r==="month"&&_.jsx(e3,{state:t,setActiveTypeCalendar:i,type:e.type,onChangeMonth:a}),r==="year"&&_.jsx(ev,{state:t,type:e.type,setActiveTypeCalendar:i,title:n,onChangeYear:a})]})},X7=e=>{const t=w.useRef(null),{locale:n}=Nn(),r=B7({...e,locale:n,createCalendar:fs}),i=p=>{let b="";switch(p){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:a,prevButtonProps:o,nextButtonProps:s,title:l}=w7(e,r,t),{gridProps:u,headerProps:c,weekDays:d}=Fx({},r),h=Zv(r.visibleRange.start,n),[f,g]=w.useState("date");return _.jsxs("div",{className:"1ru-text-laba-base-sr",children:[f==="date"&&_.jsx(_.Fragment,{children:_.jsx("div",{...a,ref:t,children:_.jsxs("div",{className:be["container-calendar"],children:[_.jsxs("div",{className:be["header-calendar"],children:[_.jsx(Sa,{...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():_.jsx(Kn,{className:"1ru-rotate-90"})}),_.jsx("div",{className:be["header-button-calendar"],onClick:()=>g("month"),children:l}),_.jsx(Sa,{...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():_.jsx(Kn,{className:"-1ru-rotate-90"})})]}),_.jsxs("table",{...u,cellPadding:"0",className:"flex-1",children:[_.jsx("thead",{...c,className:"text-gray-600",children:_.jsx("tr",{children:d.map((p,b)=>_.jsx("th",{className:be["days-calendar"],children:i(b)},b))})}),_.jsx("tbody",{children:[...new Array(h).keys()].map(p=>_.jsx("tr",{children:r.getDatesInWeek(p).map((b,v)=>b?_.jsx(Q4,{state:r,date:b},v):_.jsx("td",{},v))},p))})]}),e.withConfirm&&_.jsxs("div",{className:be["footer-calendar"],children:[typeof(e==null?void 0:e.buttonReset)=="function"?_.jsx("div",{onClick:()=>e.handlerReset(r),children:e.buttonReset()}):_.jsx(Mn,{variants:"nude-laba-blue-10",size:"small",onClick:()=>e.handlerReset(r),children:"Reset"}),typeof(e==null?void 0:e.buttonSubmit)=="function"?_.jsx("div",{onClick:e.handlerSubmit,children:e.buttonSubmit()}):_.jsx(Mn,{size:"small",onClick:e.handlerSubmit,children:"Terapkan"})]})]})})}),f==="month"&&_.jsx(e3,{state:r,setActiveTypeCalendar:g,type:["date","month","year"]}),f==="year"&&_.jsx(ev,{state:r,setActiveTypeCalendar:g,title:l,type:["date","month","year"]})]})},t3=e=>{const t=W7(e),n=w.useRef(null),{calendarProps:r}=M7(e,t,n);return _.jsx("div",{ref:n,children:_.jsx(X7,{handlerReset:e.handlerReset,handlerSubmit:e.handlerSubmit,withConfirm:e.withConfirm,prevIcon:e.prevIcon,nextIcon:e.nextIcon,buttonReset:e.buttonReset,buttonSubmit:e.buttonSubmit,...r})})},Ws=e=>{let t;const n=new Date(e??new Date);return e&&(t=bh(new Date(n.setHours(n.getHours()+7)).toISOString().slice(0,10))),t},Z7=e=>{const{minDate:t,maxDate:n,value:r,defaultValue:i,withConfirm:a=!1,isCustomTime:o=!1,className:s,classNameButton:l,buttonClick:u,buttonReset:c,buttonSubmit:d,prevIcon:h,nextIcon:f,onChange:g,id:p="date-picker",idPopover:b="date-picker-popover",floatingOptions:v={},offsetPopover:y=5,zIndexPopper:x=1}=e,S=Yr(),{locale:D}=Nn(),$=Ws(t),F=Ws(n),m=w.useRef(null),[C,I]=w.useState(),[E,R]=w.useState(),P=B=>{var Y;const O=new Date;let L=B.toDate(Ai());L.setHours(O.getHours(),O.getMinutes(),O.getSeconds());const j=t?new Date(t):null,z=n?new Date(n):null;if(o){if(L=new Date(new Date(L).setHours((E==null?void 0:E.hour)??0,E==null?void 0:E.minut,E==null?void 0:E.second)),j&&(j==null?void 0:j.toDateString())===new Date(L).toDateString()&&(j==null?void 0:j.toTimeString())>=(L==null?void 0:L.toTimeString())){if(j&&(j.getHours()>L.getHours()||j.getHours()===L.getHours()&&j.getMinutes()>L.getMinutes()))return;L=new Date(j.setSeconds(j.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 j&&S.format(L)===S.format(j)&&j.getTime()>=L.getTime()?L=new Date(j.setSeconds(j.getSeconds()+1)):z&&S.format(L)===S.format(z)&&z.getTime()<=L.getTime()&&(L=new Date(z.setSeconds(z.getSeconds()-1)));typeof g=="function"&&(g(L),(Y=m.current)==null||Y.setShow(!1))},A=(B,O)=>{I(B),(O??(!a&&!o))&&P(B)},M=B=>{R(B)},k=B=>{const O=new Date(r??new Date);R({hour:O.getHours(),minut:O.getMinutes(),second:O.getSeconds()}),I(Ws(r))},T=()=>{C&&A(C,!0)};return _.jsxs(_.Fragment,{children:[_.jsx("div",{id:p,onClick:B=>{var O;(O=m.current)==null||O.handlerShow(B),k()},className:l,children:typeof u=="function"?u(r):r?new Date(r).toDateString():"Pilih Tanggal"}),_.jsx(Ir,{zIndex:x,ref:m,offset:y,id:b,floatingOptions:{placement:"bottom-end",...v},children:_.jsx("div",{className:s??"",children:_.jsx(Fh,{locale:"id-ID",children:_.jsx(Hu,{minValue:$,maxValue:F,minDate:t,maxDate:n,time:E,locale:D,value:C,buttonReset:c,buttonSubmit:d,prevIcon:h,nextIcon:f,createCalendar:fs,defaultValue:Ws(r),onChange:A,handlerReset:()=>{var B;typeof g=="function"&&(g(i),(B=m.current)==null||B.setShow(!1))},handlerSubmit:T,handlerChangeTime:M,withConfirm:a,isCustomTime:o,type:["date","month","year"]})})})})]})},jc=e=>{let t;const n=new Date(e??new Date);return e&&(t=bh(new Date(n.setHours(n.getHours()+7)).toISOString().slice(0,10))),t},T0=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 ut(t.getFullYear(),t.getMonth()+1,t.getDate()),i=new ut(n.getFullYear(),n.getMonth()+1,n.getDate());return e?{start:r,end:i}:void 0},n3=e=>{const{minDate:t,maxDate:n,defaultValue:r,withConfirm:i,prevIcon:a,nextIcon:o,buttonReset:s,buttonSubmit:l,typePicker:u="RANGE",onChange:c,onReset:d}=e,{locale:h}=Nn(),f=jc(t),g=jc(n),[p,b]=w.useState(),v=D=>{typeof c=="function"&&c(D)},y=(D,$)=>{const F=D.start.toDate(Ai()),m=D.end.toDate(Ai());b(D),($??!i)&&v({startDate:F,endDate:new Date(m.setHours(23,59,59))})},x=D=>{if(typeof d=="function")d();else if(r&&D){const $=new Date(r.endDate??new Date),F=D.focusedDate.set({month:$.getMonth()+1,year:$.getFullYear()});D.setFocusedDate(F)}b(T0(r))},S=()=>{p&&y(p,!0)};return _.jsx("div",{className:"1ru-flex 1ru-flex-col",children:_.jsxs(Fh,{locale:"id-ID",children:[u==="RANGE"&&_.jsx(t3,{defaultValue:T0(r),value:p,minValue:f,maxValue:g,withConfirm:i,prevIcon:a,nextIcon:o,buttonReset:s,buttonSubmit:l,onChange:y,handlerReset:x,handlerSubmit:S}),u==="SINGLE"&&_.jsx(Hu,{defaultValue:jc(r==null?void 0:r.endDate),value:p==null?void 0:p.end,minValue:f,maxValue:g,minDate:t,maxDate:n,withConfirm:i,prevIcon:a,nextIcon:o,buttonReset:s,buttonSubmit:l,locale:h,createCalendar:fs,onChange:D=>y({start:D,end:D}),handlerReset:x,handlerSubmit:S,type:["date","month","year"]})]})})},Y7=({value:e,prevIcon:t,nextIcon:n,buttonReset:r,buttonSubmit:i,className:a,classNameButton:o,buttonClick:s,buttonList:l,typePicker:u="RANGE",onChange:c,idPopover:d="filter-date-popover",id:h="filter-date",floatingOptions:f={},offsetPopover:g=5,zIndexPopper:p=0,defaultValueLabel:b,mountedExecuteChange:v=!1,formatingDate:y})=>{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"}],S=w.useRef(null),[D,$]=w.useState(),[F,m]=w.useState(),[C,I]=w.useState(),E=(G,H)=>{const V=new Date(G??new Date);return H==="start"?new Date(V.setHours(0,0,0)):new Date(V.setHours(23,59,59))},R=()=>{const G=new Date;return{startDate:G,endDate:G}},P=()=>{const G=new Date;G.setDate(G.getDate()-G.getDay());const H=new Date;return H.setDate(H.getDate()+(6-H.getDay())),{startDate:G,endDate:H}},A=()=>{const G=new Date,H=new Date(G.getFullYear(),G.getMonth(),1),V=new Date(G.getFullYear(),G.getMonth()+1,0);return{startDate:H,endDate:V}},M=()=>{const G=new Date(new Date().getFullYear(),0,1),H=new Date(new Date().getFullYear(),11,31);return{startDate:G,endDate:H}},k=()=>{const G=new Date(new Date().setDate(new Date().getDate()-1));return{startDate:G,endDate:G}},T=()=>{const G=new Date;G.setDate(G.getDate()-(7+G.getDay()));const H=new Date;return H.setDate(H.getDate()-(H.getDay()+1)),{startDate:G,endDate:H}},B=()=>{const G=new Date,H=new Date(G.getFullYear(),G.getMonth()-1,1),V=new Date(G.getFullYear(),G.getMonth(),0);return{startDate:H,endDate:V}},O=()=>{const G=new Date(new Date().getFullYear()-1,0,1),H=new Date(new Date().getFullYear()-1,11,31);return{startDate:G,endDate:H}},L=(G,H)=>{var V;if(I(G),typeof c=="function"){let X=G;y==="string"&&G?X={startDate:ra(G.startDate,y),endDate:ra(G.endDate,y)}:typeof y=="boolean"&&G&&(X={startDate:ra(G.startDate,"yyyy-MM-dd'T'HH:mm:ss.SSSxxx"),endDate:ra(G.endDate,"yyyy-MM-dd'T'HH:mm:ss.SSSxxx")}),(V=S.current)==null||V.setShow(!1),c(X,H??"")}},j=G=>{$(G);let H;if((G==null?void 0:G.key)!=="custom"){switch(m(G),G==null?void 0:G.key){case"thisDay":H=R();break;case"thisWeek":H=P();break;case"thisMonth":H=A();break;case"thisYear":H=M();break;case"yesterday":H=k();break;case"lastWeek":H=T();break;case"lastMonth":H=B();break;case"lastYear":H=O();break}H&&L({startDate:E(H.startDate,"start"),endDate:E(H.endDate,"end")},G==null?void 0:G.value)}},z=(G,H)=>{const V=(l??x).find(X=>X.key===G);!G&&!V?(H||L(),j(void 0),m(void 0)):typeof G=="object"?(H||L({startDate:E(G.startDate,"start"),endDate:E(G.endDate,"end")},"Kustom"),j({key:"custom",value:"Kustom"}),m({key:"custom",value:"Kustom"})):(j(V),m(V))},Y=()=>{var G;if(e){I(e);const H=(G=l??x)==null?void 0:G.find(V=>V.key===e.label||V.value===e.label);Object.keys(H||{}).length>0&&$(H)}else $(void 0),m(void 0)};return w.useEffect(()=>{Y()},[JSON.stringify(e)]),w.useEffect(()=>{z(b??e,!v)},[]),_.jsxs(_.Fragment,{children:[_.jsxs("div",{onClick:G=>{var H;(H=S.current)==null||H.handlerShow(G),Y()},className:o,id:h,children:[w.isValidElement(s)&&s,typeof s=="function"?s(C,F):"Pilih Filter"]}),_.jsx(Ir,{zIndex:p,ref:S,offset:g,id:d,floatingOptions:{placement:"bottom-end",...f},children:_.jsxs("div",{className:`${be["container-filter-date"]} ${a}`,children:[_.jsx("div",{children:(l??x).map((G,H)=>_.jsx("div",{className:`${be["button-filter-date"]} hover:1ru-bg-laba-blue-01 ${(D==null?void 0:D.key)===G.key?"1ru-text-laba-blue-10":""}`,onClick:()=>j(G),children:G.value},H))}),(D==null?void 0:D.key)==="custom"&&_.jsx("div",{children:_.jsx(n3,{defaultValue:C,prevIcon:t,nextIcon:n,buttonReset:r,buttonSubmit:i,onChange:G=>{L(G,"Kustom"),m({key:"custom",value:"Kustom"})},onReset:()=>{z(b)},typePicker:u,withConfirm:!0})})]})})]})},U7="_active_z4wg4_31",J7="_disabled_z4wg4_34",It={"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:U7,disabled:J7,"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"},K7=({value:e,disabled:t,title:n="",description:r="",size:i="regular",kind:a="payhere",id:o,className:s,classNameTitle:l,classNameDesc:u,onChange:c})=>{const d={size:{large:It["switch-l"],regular:It["switch-r"],small:It["switch-s"]},kind:{laba:It["switch-laba"],payhere:It["switch-payhere"]},text:{title:{laba:It["title-switch-laba"],payhere:It["title-switch-payhere"]},desc:{laba:It["description-switch-laba"],payhere:It["description-switch-payhere"]}}},h=()=>{!t&&typeof c=="function"&&c(!e)};return _.jsxs("div",{id:o??"1ru-switch",className:`1ru-flex 1ru-gap-2 ${s??""}`,onClick:f=>f.stopPropagation(),children:[_.jsxs("label",{children:[_.jsx("input",{type:"checkbox",checked:e,onChange:h,className:"1ru-hidden"}),_.jsx("span",{className:`${d.size[i]} ${d.kind[a]} ${e?It.active:""} ${t?It.disabled:""} ${!e&&t?It["disabled-nonactive"]:""}`,children:_.jsx("span",{className:`${It["thumb-switch"]} ${e?It.active:""} ${t?It.disabled:""} ${!e&&t?It["disabled-nonactive"]:""}`})})]}),(n||r)&&_.jsxs("div",{children:[n&&_.jsx("div",{className:`${d.text.title[a]} ${l}`,children:n}),r&&_.jsx("div",{className:`${d.text.desc[a]} ${u}`,children:r})]})]})},q7="_loading_11t4k_10",_e={"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:q7,"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"},Q7=({className:e=""})=>_.jsx("svg",{className:`${_e["icon-loading"]} ${e??""}`,xmlns:"http://www.w3.org/2000/svg",width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",children:_.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
114
114
  16.8106 0.800956C14.2782 -0.173807 11.4901 -0.261467 8.90143 0.552281C6.31275 1.36603 4.07629 \r
115
115
  3.03314 2.55704 5.28155C1.0378 7.52995 0.325454 10.2269 0.536268 12.9323C0.747083 15.6376 1.86861 \r
116
116
  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
@@ -129,12 +129,12 @@ You should wrap it with \`css\` like this:
129
129
  ${Dt.label} ${y.disabled?Dt.disabled:""} ${i??""}`,htmlFor:s??l,children:p})]})});ju.displayName="RadioCheckbox";const rT="_container_l9lii_1",iT="_disabled_l9lii_5",aT="_label_l9lii_9",oT="_desc_l9lii_12",ii={container:rT,"laba-blue-01":"_laba-blue-01_l9lii_1","blue-50":"_blue-50_l9lii_1",disabled:iT,label:aT,desc:oT,"same-background":"_same-background_l9lii_15"},sT=({radioCheckboxProps:e,name:t,id:n,type:r="checkbox",typographyLabel:i,typographyDesc:a,fonts:o,borderRadius:s="8px",className:l,disabled:u,variants:c,label:d,desc:h,backgroundWithHover:f=!1,...g})=>{const p={borderRadius:Au,typographyLabel:Go,typographyDesc:Go,fonts:{lato:"1ru-font-lato",inter:"1ru-font-Inter"},variants:{"laba-blue-01":ii["laba-blue-01"],"blue-50":ii["blue-50"]}},b=()=>o?p.fonts[o]:r==="checkbox"?p.fonts.lato:p.fonts.inter,v=()=>c?p.variants[c]:r==="checkbox"?p.variants["laba-blue-01"]:p.variants["blue-50"];return _.jsxs("label",{className:`${ii.container} ${f?ii["same-background"]:""}
130
130
  ${p.borderRadius[s]}
131
131
  ${b()} ${v()} ${u?ii.disabled:""} ${l??""}`,htmlFor:n??t,children:[_.jsx(ju,{id:n,name:t,type:r,disabled:u,...e,...g}),_.jsxs("div",{children:[_.jsx("p",{className:`${ii.label}
132
- ${i?`${p.typographyLabel[i]} custom-typography`:""}`,children:d}),_.jsx("p",{className:`${ii.desc} ${a?`${p.typographyDesc[a]} custom-typography`:""}`,children:h})]})]})},P0={"gap-0":"1ru-gap-0","gap-x-0":"1ru-gap-x-0","gap-y-0":"1ru-gap-y-0","gap-px":"1ru-gap-px","gap-x-px":"1ru-gap-x-px","gap-y-px":"1ru-gap-y-px","gap-0.5":"1ru-gap-0.5","gap-x-0.5":"1ru-gap-x-0.5","gap-y-0.5":"1ru-gap-y-0.5","gap-1":"1ru-gap-1","gap-x-1":"1ru-gap-x-1","gap-y-1":"1ru-gap-y-1","gap-1.5":"1ru-gap-1.5","gap-x-1.5":"1ru-gap-x-1.5","gap-y-1.5":"1ru-gap-y-1.5","gap-2":"1ru-gap-2","gap-x-2":"1ru-gap-x-2","gap-y-2":"1ru-gap-y-2","gap-2.5":"1ru-gap-2.5","gap-x-2.5":"1ru-gap-x-2.5","gap-y-2.5":"1ru-gap-y-2.5","gap-3":"1ru-gap-3","gap-x-3":"1ru-gap-x-3","gap-y-3":"1ru-gap-y-3","gap-3.5":"1ru-gap-3.5","gap-x-3.5":"1ru-gap-x-3.5","gap-y-3.5":"1ru-gap-y-3.5","gap-4":"1ru-gap-4","gap-x-4":"1ru-gap-x-4","gap-y-4":"1ru-gap-y-4","gap-5":"1ru-gap-5","gap-x-5":"1ru-gap-x-5","gap-y-5":"1ru-gap-y-5","gap-6":"1ru-gap-6","gap-x-6":"1ru-gap-x-6","gap-y-6":"1ru-gap-y-6","gap-7":"1ru-gap-7","gap-x-7":"1ru-gap-x-7","gap-y-7":"1ru-gap-y-7","gap-8":"1ru-gap-8","gap-x-8":"1ru-gap-x-8","gap-y-8":"1ru-gap-y-8","gap-9":"1ru-gap-9","gap-x-9":"1ru-gap-x-9","gap-y-9":"1ru-gap-y-9","gap-10":"1ru-gap-10","gap-x-10":"1ru-gap-x-10","gap-y-10":"1ru-gap-y-10"},lT="_action_fqogk_8",uT="_urls_fqogk_20",cT="_url_fqogk_20",dT="_active_fqogk_32",Ji={"laba-blue-10":"_laba-blue-10_fqogk_1","blue-700":"_blue-700_fqogk_1",action:lT,urls:uT,url:cT,active:dT},fT=({as:e,variants:t="laba-blue-10",fonts:n="lato",urls:r=[],textBreadcrumbs:i=[],onClickBreadcrumbs:a=[],gapAction:o,gapUrls:s,className:l,textAction:u="Kembali",iconAction:c,onClickAction:d,onClickUrls:h,separator:f=">",propsLink:g,...p})=>{const b=e??"div",v={fonts:{lato:"1ru-font-lato",inter:"1ru-font-Inter"},variants:{"laba-blue-10":Ji["laba-blue-10"],"blue-700":Ji["blue-700"]},gapAction:P0,gapUrls:P0},y=x=>!!(Array.isArray(r)&&r.length>0&&r.length-1===x);return _.jsxs("div",{className:`${v.fonts[n]} ${v.variants[t]}
133
- ${l??""}`,...p,children:[d&&_.jsxs("div",{onClick:d,className:`${Ji.action} ${o?v.gapAction[o]:""}`,children:[c,u]}),_.jsx("div",{className:`${Ji.urls} ${s?v.gapUrls[s]:""}`,children:r==null?void 0:r.map((x,S)=>_.jsxs(w.Fragment,{children:[_.jsx(b,{className:`${Ji.url} ${y(S)?Ji.active:""}`,onClick:()=>{(a==null?void 0:a[S])!==void 0&&typeof a[S]=="function"?a[S]():typeof h=="function"&&h(x)},...g?g(x,S,r):{},children:i[S]}),!y(S)&&_.jsx(_.Fragment,{children:f})]},S))})]})},hT="_sidebar_mnqdg_9",pn={"splace-screen":"_splace-screen_mnqdg_1","payhere-brand-base-white":"_payhere-brand-base-white_mnqdg_6",sidebar:hT,"button-collaps-sidebar":"_button-collaps-sidebar_mnqdg_19","menu-sidebar":"_menu-sidebar_mnqdg_30","sidebar-open":"_sidebar-open_mnqdg_49","container-icon-company-sidebar":"_container-icon-company-sidebar_mnqdg_60","icon-company-sidebar":"_icon-company-sidebar_mnqdg_63","sidebar-close":"_sidebar-close_mnqdg_67","content-sidebar":"_content-sidebar_mnqdg_84","payhere-brand-base-transparent":"_payhere-brand-base-transparent_mnqdg_138","laba-white":"_laba-white_mnqdg_270"},gT="_hidden_1j95c_62",et={"item-icon-subs":"_item-icon-subs_1j95c_1","item-sidebar-2":"_item-sidebar-2_1j95c_1","item-sidebar-1":"_item-sidebar-1_1j95c_1","item-icon":"_item-icon_1j95c_1","item-label":"_item-label_1j95c_13","item-sidebar-open":"_item-sidebar-open_1j95c_35","item-sidebar-close":"_item-sidebar-close_1j95c_45","item-sidebar-laba":"_item-sidebar-laba_1j95c_53","item-sidebar-payhere":"_item-sidebar-payhere_1j95c_53","item-subs-sidebar":"_item-subs-sidebar_1j95c_58",hidden:gT,"divider-item-sidebar":"_divider-item-sidebar_1j95c_67","hover-sidebar-payhere":"_hover-sidebar-payhere_1j95c_87","hover-sidebar-laba":"_hover-sidebar-laba_1j95c_96"},l3=({as:e,show:t,open:n,patch:r,iconSubs:i,variant:a="payhere-brand-base-white",setShow:o,onClickItems:s,propsLink:l,...u})=>{var x,S,D,$;const c={activeColor:{"payhere-brand-base-white":et["item-sidebar-payhere"],"payhere-brand-base-transparent":et["item-sidebar-payhere"],"laba-white":et["item-sidebar-laba"]},hoverColor:{"payhere-brand-base-white":et["hover-sidebar-payhere"],"payhere-brand-base-transparent":et["hover-sidebar-payhere"],"laba-white":et["hover-sidebar-laba"]}};let d=_.jsx(_.Fragment,{});const h=e??"div",[f,g]=w.useState(!1),p=r===u.slug,b=t.split("/"),v=b.includes(u.name),y=()=>{if(u.subs.length>0)if(v){const F=b.splice(0,b.indexOf(u.name));F.length>0?o(`${F.join("/")}/`):o("")}else o(`${t}${u.name}/`);else typeof s=="function"&&s(u)};return u.isShow?((u.parent===1||u.parent===3)&&(d=_.jsxs(_.Fragment,{children:[_.jsxs(h,{id:u.name,className:`${et["item-sidebar-1"]} ${(x=c.hoverColor)==null?void 0:x[a]}
132
+ ${i?`${p.typographyLabel[i]} custom-typography`:""}`,children:d}),_.jsx("p",{className:`${ii.desc} ${a?`${p.typographyDesc[a]} custom-typography`:""}`,children:h})]})]})},P0={"gap-0":"1ru-gap-0","gap-x-0":"1ru-gap-x-0","gap-y-0":"1ru-gap-y-0","gap-px":"1ru-gap-px","gap-x-px":"1ru-gap-x-px","gap-y-px":"1ru-gap-y-px","gap-0.5":"1ru-gap-0.5","gap-x-0.5":"1ru-gap-x-0.5","gap-y-0.5":"1ru-gap-y-0.5","gap-1":"1ru-gap-1","gap-x-1":"1ru-gap-x-1","gap-y-1":"1ru-gap-y-1","gap-1.5":"1ru-gap-1.5","gap-x-1.5":"1ru-gap-x-1.5","gap-y-1.5":"1ru-gap-y-1.5","gap-2":"1ru-gap-2","gap-x-2":"1ru-gap-x-2","gap-y-2":"1ru-gap-y-2","gap-2.5":"1ru-gap-2.5","gap-x-2.5":"1ru-gap-x-2.5","gap-y-2.5":"1ru-gap-y-2.5","gap-3":"1ru-gap-3","gap-x-3":"1ru-gap-x-3","gap-y-3":"1ru-gap-y-3","gap-3.5":"1ru-gap-3.5","gap-x-3.5":"1ru-gap-x-3.5","gap-y-3.5":"1ru-gap-y-3.5","gap-4":"1ru-gap-4","gap-x-4":"1ru-gap-x-4","gap-y-4":"1ru-gap-y-4","gap-5":"1ru-gap-5","gap-x-5":"1ru-gap-x-5","gap-y-5":"1ru-gap-y-5","gap-6":"1ru-gap-6","gap-x-6":"1ru-gap-x-6","gap-y-6":"1ru-gap-y-6","gap-7":"1ru-gap-7","gap-x-7":"1ru-gap-x-7","gap-y-7":"1ru-gap-y-7","gap-8":"1ru-gap-8","gap-x-8":"1ru-gap-x-8","gap-y-8":"1ru-gap-y-8","gap-9":"1ru-gap-9","gap-x-9":"1ru-gap-x-9","gap-y-9":"1ru-gap-y-9","gap-10":"1ru-gap-10","gap-x-10":"1ru-gap-x-10","gap-y-10":"1ru-gap-y-10"},lT="_action_fqogk_8",uT="_urls_fqogk_20",cT="_url_fqogk_20",dT="_active_fqogk_32",Ki={"laba-blue-10":"_laba-blue-10_fqogk_1","blue-700":"_blue-700_fqogk_1",action:lT,urls:uT,url:cT,active:dT},fT=({as:e,variants:t="laba-blue-10",fonts:n="lato",urls:r=[],textBreadcrumbs:i=[],onClickBreadcrumbs:a=[],gapAction:o,gapUrls:s,className:l,textAction:u="Kembali",iconAction:c,onClickAction:d,onClickUrls:h,separator:f=">",propsLink:g,...p})=>{const b=e??"div",v={fonts:{lato:"1ru-font-lato",inter:"1ru-font-Inter"},variants:{"laba-blue-10":Ki["laba-blue-10"],"blue-700":Ki["blue-700"]},gapAction:P0,gapUrls:P0},y=x=>!!(Array.isArray(r)&&r.length>0&&r.length-1===x);return _.jsxs("div",{className:`${v.fonts[n]} ${v.variants[t]}
133
+ ${l??""}`,...p,children:[d&&_.jsxs("div",{onClick:d,className:`${Ki.action} ${o?v.gapAction[o]:""}`,children:[c,u]}),_.jsx("div",{className:`${Ki.urls} ${s?v.gapUrls[s]:""}`,children:r==null?void 0:r.map((x,S)=>_.jsxs(w.Fragment,{children:[_.jsx(b,{className:`${Ki.url} ${y(S)?Ki.active:""}`,onClick:()=>{(a==null?void 0:a[S])!==void 0&&typeof a[S]=="function"?a[S]():typeof h=="function"&&h(x)},...g?g(x,S,r):{},children:i[S]}),!y(S)&&_.jsx(_.Fragment,{children:f})]},S))})]})},hT="_sidebar_mnqdg_9",pn={"splace-screen":"_splace-screen_mnqdg_1","payhere-brand-base-white":"_payhere-brand-base-white_mnqdg_6",sidebar:hT,"button-collaps-sidebar":"_button-collaps-sidebar_mnqdg_19","menu-sidebar":"_menu-sidebar_mnqdg_30","sidebar-open":"_sidebar-open_mnqdg_49","container-icon-company-sidebar":"_container-icon-company-sidebar_mnqdg_60","icon-company-sidebar":"_icon-company-sidebar_mnqdg_63","sidebar-close":"_sidebar-close_mnqdg_67","content-sidebar":"_content-sidebar_mnqdg_84","payhere-brand-base-transparent":"_payhere-brand-base-transparent_mnqdg_138","laba-white":"_laba-white_mnqdg_270"},gT="_hidden_1j95c_62",et={"item-icon-subs":"_item-icon-subs_1j95c_1","item-sidebar-2":"_item-sidebar-2_1j95c_1","item-sidebar-1":"_item-sidebar-1_1j95c_1","item-icon":"_item-icon_1j95c_1","item-label":"_item-label_1j95c_13","item-sidebar-open":"_item-sidebar-open_1j95c_35","item-sidebar-close":"_item-sidebar-close_1j95c_45","item-sidebar-laba":"_item-sidebar-laba_1j95c_53","item-sidebar-payhere":"_item-sidebar-payhere_1j95c_53","item-subs-sidebar":"_item-subs-sidebar_1j95c_58",hidden:gT,"divider-item-sidebar":"_divider-item-sidebar_1j95c_67","hover-sidebar-payhere":"_hover-sidebar-payhere_1j95c_87","hover-sidebar-laba":"_hover-sidebar-laba_1j95c_96"},l3=({as:e,show:t,open:n,patch:r,iconSubs:i,variant:a="payhere-brand-base-white",setShow:o,onClickItems:s,propsLink:l,...u})=>{var x,S,D,$;const c={activeColor:{"payhere-brand-base-white":et["item-sidebar-payhere"],"payhere-brand-base-transparent":et["item-sidebar-payhere"],"laba-white":et["item-sidebar-laba"]},hoverColor:{"payhere-brand-base-white":et["hover-sidebar-payhere"],"payhere-brand-base-transparent":et["hover-sidebar-payhere"],"laba-white":et["hover-sidebar-laba"]}};let d=_.jsx(_.Fragment,{});const h=e??"div",[f,g]=w.useState(!1),p=r===u.slug,b=t.split("/"),v=b.includes(u.name),y=()=>{if(u.subs.length>0)if(v){const F=b.splice(0,b.indexOf(u.name));F.length>0?o(`${F.join("/")}/`):o("")}else o(`${t}${u.name}/`);else typeof s=="function"&&s(u)};return u.isShow?((u.parent===1||u.parent===3)&&(d=_.jsxs(_.Fragment,{children:[_.jsxs(h,{id:u.name,className:`${et["item-sidebar-1"]} ${(x=c.hoverColor)==null?void 0:x[a]}
134
134
  ${p||u.subs.length>0&&v?(S=c.activeColor)==null?void 0:S[a]:""} ${typeof n=="boolean"&&n?et["item-sidebar-open"]:""} ${typeof n=="boolean"&&!n?et["item-sidebar-close"]:""}
135
135
  `,onClick:y,onMouseOver:()=>g(!0),onMouseOut:()=>g(!1),...l?l(u.slug):{},children:[_.jsxs("div",{className:"1ru-flex 1ru-items-center 1ru-gap-3 1ru-relative",children:[w.isValidElement(u.svgIcon)&&_.jsx("div",{className:et["item-icon"],children:p||u.subs.length>0&&v||f?u.svgIconActive:u.svgIcon}),_.jsx("div",{className:et["item-label"],children:u.label})]}),u.subs.length>0&&n&&_.jsxs("div",{className:et["item-icon-subs"],children:[w.isValidElement(i)&&i,typeof i=="function"&&i()]})]}),u.parent===3&&!u.subs.length&&_.jsx("div",{className:et["divider-item-sidebar"]})]})),(u.parent===2||u.parent===4)&&(d=_.jsxs(_.Fragment,{children:[_.jsxs(h,{id:u.name,className:`${et["item-sidebar-2"]} ${(D=c.hoverColor)==null?void 0:D[a]}
136
136
  ${p||u.subs.length>0&&v?($=c.activeColor)==null?void 0:$[a]:""} ${typeof n=="boolean"&&n?et["item-sidebar-open"]:""} ${typeof n=="boolean"&&!n?et["item-sidebar-close"]:""}
137
- `,onClick:y,onMouseOver:()=>g(!0),onMouseOut:()=>g(!1),...l?l(u.slug):{},children:[w.isValidElement(u.svgIcon)&&_.jsx("div",{className:et["item-icon"],children:p||u.subs.length>0&&v||f?u.svgIconActive:u.svgIcon}),_.jsx("div",{className:et["item-label"],children:u.label}),u.subs.length>0&&n&&_.jsxs("div",{className:et["item-icon-subs"],children:[w.isValidElement(i)&&i,typeof i=="function"&&i()]})]}),u.parent===4&&!u.subs.length&&_.jsx("div",{className:et["divider-item-sidebar"]})]})),u.subs.length>0?_.jsxs("div",{className:`${n??v?"":"-mt-2"}`,children:[d,_.jsx("div",{className:`${et["item-subs-sidebar"]} ${!n||!v?et.hidden:""}`,children:u.subs.map(F=>w.createElement(l3,{...F,as:F.manualRoute?"div":F.subs.length>0?e:u.linkComponent,key:F.name,patch:r,iconSubs:i,show:t,open:n,variant:a,setShow:o}))}),[3,4].includes(u.parent)&&_.jsx("div",{className:et["divider-item-sidebar"]})]}):d):_.jsx(_.Fragment,{})},u3=w.forwardRef((e,t)=>{var M;const{as:n,children:r,patch:i="/",iconCompany:a,iconSubs:o,iconCollapse:s,iconCollapseClose:l,modules:u,toleranceWidthIconCompany:c=25,onClickItems:d,variant:h="payhere-brand-base-white",footer:f,withInheritance:g,...p}=e,b=w.useRef(null),v={withCuctomWidthIconCompany:["payhere-brand-base-white","payhere-brand-base-transparent"],variants:{"payhere-brand-base-white":pn["payhere-brand-base-white"],"payhere-brand-base-transparent":pn["payhere-brand-base-transparent"],"laba-white":pn["laba-white"]}},[y,x]=w.useState(null),[S,D]=w.useState(null),[$,F]=w.useState(""),[m,C]=w.useState(),[I,E]=w.useState(0),R=()=>{var B;let k=0;const T=document.getElementById("icon-company-sidebar");(B=T==null?void 0:T.childNodes)==null||B.forEach(O=>{k+=O.getBoundingClientRect().width??0}),C(k+c+"px")},P=()=>{E(window.innerWidth)},A=()=>{x(!S),S?C("auto"):setTimeout(()=>{R()},100)};return w.useEffect(()=>{I>=768?(x(!0),setTimeout(()=>{R()},100)):(x(!1),C("auto"))},[I]),w.useEffect(()=>{typeof y=="boolean"&&D(y)},[y]),w.useImperativeHandle(t,()=>({openSidebar:y,setOpenSidebar:x,handlerClickCollapse:A}),[y,S]),w.useEffect(()=>(i&&i.split("/").length>1&&F(i+"/"),R(),P(),window.addEventListener("resize",P),()=>window.removeEventListener("resize",P)),[]),_.jsxs("div",{className:v.variants[h],...p,ref:b,children:[_.jsxs("div",{id:"1ru-sidebar",className:`${pn.sidebar} ${typeof S=="boolean"&&S?pn["sidebar-open"]:""} ${typeof S=="boolean"&&!S?pn["sidebar-close"]:""}`,children:[w.isValidElement(s)&&_.jsxs("div",{className:pn["button-collaps-sidebar"],onClick:A,children:[y&&s,y?"":w.isValidElement(l)?l:s]}),_.jsx("div",{className:pn["container-icon-company-sidebar"],children:_.jsxs("div",{id:"icon-company-sidebar",className:pn["icon-company-sidebar"],style:{width:m&&v.withCuctomWidthIconCompany.includes(h)?m:"100%"},children:[w.isValidElement(a)&&a,typeof a=="function"&&a({openSidebar:S,setOpenSidebar:x})]})}),_.jsx("div",{className:pn["menu-sidebar"],onMouseOver:()=>{y||D(!0)},onMouseOut:()=>{y||D(!1)},children:u.map(k=>w.createElement(l3,{...k,as:k.manualRoute||k.subs.length>0?"div":n,linkComponent:n,key:k.name,show:$,open:S,patch:i,iconSubs:o,variant:h,setShow:F,onClickItems:d}))}),f&&_.jsxs("div",{className:S?"1ru-opacity-[1]":"1ru-opacity-0",children:[w.isValidElement(f)&&_.jsx("div",{children:f}),typeof f=="function"&&_.jsx("div",{children:f()})]})]}),y&&_.jsx("div",{className:pn["splace-screen"],onClick:A}),_.jsxs("div",{className:pn["content-sidebar"],children:[g&&((M=w.Children)==null?void 0:M.map(r,k=>_.jsx(_.Fragment,{children:w.isValidElement(k)&&_.jsx(_.Fragment,{children:w.cloneElement(k,{openSidebar:y,handlerClickCollapse:A})})}))),!g&&_.jsx(_.Fragment,{children:r})]})]})});u3.displayName="Sidebar";const mT="_collapse_gto9s_1",pT={collapse:mT},bT=({children:e,id:t,open:n,className:r,classNameContainer:i,maxCollapsedHeight:a="0px",triggerCalCulateContainer:o,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)}},[o]),_.jsx("div",{className:`${pT.collapse} ${i??""}`,style:{maxHeight:n?l:a},children:_.jsx("div",{id:t,className:r??"",children:e})})},vT="_modal_9v1mi_1",Ar={modal:vT,"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"},yT=({as:e,children:t,id:n="modal",idModal:r="1ru-modal",withOverlay:i=!0,show:a,size:o="regular",className:s,classNameContainer:l,onClose:u,...c})=>{const d=e??"div",h={size:{small:Ar["modal-small"],medium:Ar["modal-medium"],regular:Ar["modal-regular"],large:Ar["modal-large"]}},f=()=>{typeof u=="function"&&u()};return _.jsx(_.Fragment,{children:a&&document.getElementById(r)&&ts.createPortal(_.jsx("div",{id:n,onClick:f,className:`${Ar.modal} ${i?Ar["with-overlay"]:""} ${a?Ar["modal-show"]:""} ${l??""}`,children:_.jsx(d,{onClick:g=>g.stopPropagation(),className:`${Ar["modal-content"]} ${h.size[o]} ${s??""}`,...c,children:t})}),document.getElementById(r))})},xT="_dot_10oqk_31",zn={"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:xT,"right-content":"_right-content_10oqk_34"},CT=({children:e,noTime:t=!1})=>_.jsx("div",{className:`${zn["timeline-container"]} ${t?zn["no-time"]:""}`,children:e}),wT=({children:e,time:t,clasName:n,noTime:r=!1})=>_.jsxs("div",{className:zn["timeline-content"],children:[_.jsx("div",{className:`${zn["left-content"]} ${r?zn["no-time"]:""}`,children:_.jsxs("div",{className:zn["time-content"],children:[!r&&_.jsx("time",{className:zn["text-time"],children:t??""}),_.jsx("div",{className:zn.dot})]})}),_.jsx("div",{className:`${zn["right-content"]} ${r?zn["no-time"]:""} ${n??""}`,children:e})]}),DT=Object.assign(CT,{TimelineContent:wT}),zs=(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},ST=({children:e,onChange:t,prefixNativeValue:n="",defaultNativeValue:r,defaultValue:i,mountedExecuteChange:a=!0,keepKeys:o=[],resetPagination:s=!0,keyPageNumber:l="pageNumber",triggerReset:u={},reset:c})=>{const d=s?{[l]:1}:{},[h,f]=w.useState(zs(i??{},o,"")),[g,p]=w.useState(mg(n,zs(r??{},o,n))),[b,v]=w.useState(!1),y=(F,m)=>F.map(C=>C[m]).join(","),x=(F,m)=>F.map(C=>C[m]),S=(F,m)=>{const C={};return Object.keys(m).forEach(I=>{C[`${F}${I}`]=m[I]}),C},D=(F,m,C,I)=>{let E=F;const R=S(n,{[m]:F});Array.isArray(F)&&(C==="array-of-object-to-array"?E=x(F,I):C==="array-of-object-to-string"?E=y(F,I):C==="array-to-string"&&(E=E.toString())),typeof t=="function"&&t({...h,[m]:E,...d},{...g,...R}),f(P=>({...P,[m]:E})),p(P=>({...P,...R}))},$=(F,m)=>{const I=S(n,{...m??F});typeof t=="function"&&t({...h,...F,...d},{...g,...I}),f(E=>({...E,...F})),p(E=>({...E,...I}))};return xa(()=>{!b&&typeof t=="function"&&a&&(t(h,g),v(!0))},[h,g,b,a]),xa(()=>{c&&(p(mg(n,zs(r??{},o,n))),f(zs(i??{},o,"")))},[c,u]),_.jsx(_.Fragment,{children:e({handlerOnChange:D,handlerOnChangeNative:$,value:h,nativeValue:g})})};function Ph(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 Xo;(function(e){e.event="event",e.props="prop"})(Xo||(Xo={}));function mr(){}function ET(e){var t,n=void 0;return function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return t&&r.length===t.length&&r.every(function(a,o){return a===t[o]})||(t=r,n=e.apply(void 0,r)),n}}function Ti(e){return!!(e||"").match(/\d/)}function Si(e){return e==null}function IT(e){return typeof e=="number"&&isNaN(e)}function c3(e){return Si(e)||IT(e)||typeof e=="number"&&!isFinite(e)}function d3(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function _T(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 $T(e,t,n){var r=_T(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 RT(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 kh(e,t){t===void 0&&(t=!0);var n=e[0]==="-",r=n&&t;e=e.replace("-","");var i=e.split("."),a=i[0],o=i[1]||"";return{beforeDecimal:a,afterDecimal:o,hasNegation:n,addNegation:r}}function AT(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 f3(e,t,n){for(var r="",i=n?"0":"",a=0;a<=t-1;a++)r+=e[a]||i;return r}function k0(e,t){return Array(t+1).join(e)}function h3(e){var t=e+"",n=t[0]==="-"?"-":"";n&&(t=t.substring(1));var r=t.split(/[eE]/g),i=r[0],a=r[1];if(a=Number(a),!a)return n+i;i=i.replace(".","");var o=1+a,s=i.length;return o<0?i="0."+k0("0",Math.abs(o))+i:o>=s?i=i+k0("0",o-s):i=(i.substring(0,o)||"0")+"."+i.substring(o),n+i}function M0(e,t,n){if(["","-"].indexOf(e)!==-1)return e;var r=(e.indexOf(".")!==-1||n)&&t,i=kh(e),a=i.beforeDecimal,o=i.afterDecimal,s=i.hasNegation,l=parseFloat("0."+(o||"0")),u=o.length<=t?"0."+o:l.toFixed(t),c=u.split("."),d=a;a&&Number(c[0])&&(d=a.split("").reverse().reduce(function(p,b,v){return p.length>v?(Number(p[0])+Number(b)).toString()+p.substring(1,p.length):b+p},c[0]));var h=f3(c[1]||"",t,n),f=s?"-":"",g=r?".":"";return""+f+d+g+h}function Or(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 g3=ET(function(e,t){for(var n=0,r=0,i=e.length,a=t.length;e[n]===t[n]&&n<i;)n++;for(;e[i-1-r]===t[a-1-r]&&a-r>n&&i-r>n;)r++;return{from:{start:n,end:i-r},to:{start:n,end:a-r}}}),FT=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 Wc(e){return Math.max(e.selectionStart,e.selectionEnd)}function PT(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function m3(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function p3(e,t){return e===void 0&&(e=" "),typeof e=="string"?e:e[t]||" "}function kT(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,i=e.formattedValueIndex;return t[r]===n[i]}function MT(e,t,n,r,i,a,o){o===void 0&&(o=kT);var s=i.findIndex(function(S){return S}),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,p=c;g<p;g++){var b=o({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:f,formattedValueIndex:g});if(b&&d[g]!==!0){h[f]=g,d[g]=!0;break}}}for(var v=r;v<u&&(h[v]===-1||!a(n[v]));)v++;var y=v===u||h[v]===-1?c:h[v];for(v=r-1;v>0&&h[v]===-1;)v--;var x=v===-1||h[v]===-1?0:h[v]+1;return x>y?y:r-x<y-r?x:y}function au(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 BT(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),n=0,r=t.length;n<r;n++)t[n]=!!(Ti(e[n])||Ti(e[n-1]));return t}function b3(e,t,n,r,i,a){a===void 0&&(a=mr);var o=RT(function(g,p){var b,v;return c3(g)?(v="",b=""):typeof g=="number"||p?(v=typeof g=="number"?h3(g):g,b=r(v)):(v=i(g,void 0),b=r(v)),{formattedValue:b,numAsString:v}}),s=w.useState(function(){return o(Si(e)?t:e,n)}),l=s[0],u=s[1],c=function(g,p){g.formattedValue!==l.formattedValue&&u({formattedValue:g.formattedValue,numAsString:g.value}),a(g,p)},d=e,h=n;Si(e)&&(d=l.numAsString,h=!0);var f=o(d,h);return w.useMemo(function(){u(f)},[f.formattedValue]),[l,c]}function OT(e){return e.replace(/[^0-9]/g,"")}function NT(e){return e}function v3(e){var t=e.type;t===void 0&&(t="text");var n=e.displayType;n===void 0&&(n="input");var r=e.customInput,i=e.renderText,a=e.getInputRef,o=e.format;o===void 0&&(o=NT);var s=e.removeFormatting;s===void 0&&(s=OT);var l=e.defaultValue,u=e.valueIsNumericString,c=e.onValueChange,d=e.isAllowed,h=e.onChange;h===void 0&&(h=mr);var f=e.onKeyDown;f===void 0&&(f=mr);var g=e.onMouseUp;g===void 0&&(g=mr);var p=e.onFocus;p===void 0&&(p=mr);var b=e.onBlur;b===void 0&&(b=mr);var v=e.value,y=e.getCaretBoundary;y===void 0&&(y=BT);var x=e.isValidInputCharacter;x===void 0&&(x=Ti);var S=e.isCharacterSame,D=Ph(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),$=b3(v,l,!!u,o,s,c),F=$[0],m=F.formattedValue,C=F.numAsString,I=$[1],E=w.useRef(),R=w.useRef({formattedValue:m,numAsString:C}),P=function(ee,re){R.current={formattedValue:ee.formattedValue,numAsString:ee.value},I(ee,re)},A=w.useState(!1),M=A[0],k=A[1],T=w.useRef(null),B=w.useRef({setCaretTimeout:null,focusTimeout:null});w.useEffect(function(){return k(!0),function(){clearTimeout(B.current.setCaretTimeout),clearTimeout(B.current.focusTimeout)}},[]);var O=o,L=function(ee,re){var pe=parseFloat(re);return{formattedValue:ee,value:re,floatValue:isNaN(pe)?void 0:pe}},j=function(ee,re,pe){ee.selectionStart===0&&ee.selectionEnd===ee.value.length||(Or(ee,re),B.current.setCaretTimeout=setTimeout(function(){ee.value===pe&&ee.selectionStart!==re&&Or(ee,re)},0))},z=function(ee,re,pe){return au(ee,re,y(ee),pe)},Y=function(ee,re,pe){var He=y(re),ct=MT(re,m,ee,pe,He,x,S);return ct=au(re,ct,He),ct},G=function(ee){var re=ee.formattedValue;re===void 0&&(re="");var pe=ee.input,He=ee.source,ct=ee.event,Ae=ee.numAsString,Ee;if(pe){var Ht=ee.inputValue||pe.value,jt=Wc(pe);pe.value=re,Ee=Y(Ht,re,jt),Ee!==void 0&&j(pe,Ee,re)}re!==m&&P(L(re,Ae),{event:ct,source:He})};w.useEffect(function(){var ee=R.current,re=ee.formattedValue,pe=ee.numAsString;(m!==re||C!==pe)&&P(L(m,C),{event:void 0,source:Xo.props})},[m,C]);var H=T.current?Wc(T.current):void 0,V=typeof window<"u"?w.useLayoutEffect:w.useEffect;V(function(){var ee=T.current;if(m!==R.current.formattedValue&&ee){var re=Y(R.current.formattedValue,m,H);ee.value=m,j(ee,re,m)}},[m]);var X=function(ee,re,pe){var He=re.target,ct=E.current?FT(E.current,He.selectionEnd):g3(m,ee),Ae=Object.assign(Object.assign({},ct),{lastValue:m}),Ee=s(ee,Ae),Ht=O(Ee);if(Ee=s(Ht,void 0),d&&!d(L(Ht,Ee))){var jt=re.target,Wt=Wc(jt),rr=Y(ee,m,Wt);return jt.value=m,j(jt,rr,m),!1}return G({formattedValue:Ht,numAsString:Ee,inputValue:ee,event:re,source:pe,input:re.target}),!0},K=function(ee,re){re===void 0&&(re=0);var pe=ee.selectionStart,He=ee.selectionEnd;E.current={selectionStart:pe,selectionEnd:He+re}},te=function(ee){var re=ee.target,pe=re.value,He=X(pe,ee,Xo.event);He&&h(ee),E.current=void 0},ue=function(ee){var re=ee.target,pe=ee.key,He=re.selectionStart,ct=re.selectionEnd,Ae=re.value;Ae===void 0&&(Ae="");var Ee;pe==="ArrowLeft"||pe==="Backspace"?Ee=Math.max(He-1,0):pe==="ArrowRight"?Ee=Math.min(He+1,Ae.length):pe==="Delete"&&(Ee=He);var Ht=0;pe==="Delete"&&He===ct&&(Ht=1);var jt=pe==="ArrowLeft"||pe==="ArrowRight";if(Ee===void 0||He!==ct&&!jt){f(ee),K(re,Ht);return}var Wt=Ee;if(jt){var rr=pe==="ArrowLeft"?"left":"right";Wt=z(Ae,Ee,rr),Wt!==Ee&&ee.preventDefault()}else pe==="Delete"&&!x(Ae[Ee])?Wt=z(Ae,Ee,"right"):pe==="Backspace"&&!x(Ae[Ee])&&(Wt=z(Ae,Ee,"left"));Wt!==Ee&&j(re,Wt,Ae),f(ee),K(re,Ht)},ie=function(ee){var re=ee.target,pe=function(){var He=re.selectionStart,ct=re.selectionEnd,Ae=re.value;if(Ae===void 0&&(Ae=""),He===ct){var Ee=z(Ae,He);Ee!==He&&j(re,Ee,Ae)}};pe(),requestAnimationFrame(function(){pe()}),g(ee),K(re)},Z=function(ee){ee.persist&&ee.persist();var re=ee.target,pe=ee.currentTarget;T.current=re,B.current.focusTimeout=setTimeout(function(){var He=re.selectionStart,ct=re.selectionEnd,Ae=re.value;Ae===void 0&&(Ae="");var Ee=z(Ae,He);Ee!==He&&!(He===0&&ct===Ae.length)&&j(re,Ee,Ae),p(Object.assign(Object.assign({},ee),{currentTarget:pe}))},0)},me=function(ee){T.current=null,clearTimeout(B.current.focusTimeout),clearTimeout(B.current.setCaretTimeout),b(ee)},he=M&&PT()?"numeric":void 0,ce=Object.assign({inputMode:he},D,{type:t,value:m,onChange:te,onKeyDown:ue,onMouseUp:ie,onFocus:Z,onBlur:me});if(n==="text")return i?w.createElement(w.Fragment,null,i(m,D)||null):w.createElement("span",Object.assign({},D,{ref:a}),m);if(r){var qe=r;return w.createElement(qe,Object.assign({},ce,{ref:a}))}return w.createElement("input",Object.assign({},ce,{ref:a}))}function B0(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,i=t.prefix;i===void 0&&(i="");var a=t.suffix;a===void 0&&(a="");var o=t.allowNegative,s=t.thousandsGroupStyle;if(s===void 0&&(s="thousand"),e===""||e==="-")return e;var l=Wu(t),u=l.thousandSeparator,c=l.decimalSeparator,d=n!==0&&e.indexOf(".")!==-1||n&&r,h=kh(e,o),f=h.beforeDecimal,g=h.afterDecimal,p=h.addNegation;return n!==void 0&&(g=f3(g,n,!!r)),u&&(f=$T(f,u,s)),i&&(f=i+f),a&&(g=g+a),p&&(f="-"+f),e=f+(d&&c||"")+g,e}function Wu(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 VT(e,t){e===void 0&&(e="");var n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),i=n.test(e),a=r.test(e);return e=e.replace(/-/g,""),i&&!a&&t&&(e="-"+e),e}function LT(e,t){return new RegExp("(^-)|[0-9]|"+d3(e),"g")}function HT(e,t,n){return e===""?!0:!(t!=null&&t.match(/\d/))&&!(n!=null&&n.match(/\d/))&&typeof e=="string"&&!isNaN(Number(e))}function jT(e,t,n){var r;t===void 0&&(t=m3(e));var i=n.allowNegative,a=n.prefix;a===void 0&&(a="");var o=n.suffix;o===void 0&&(o="");var s=n.decimalScale,l=t.from,u=t.to,c=u.start,d=u.end,h=Wu(n),f=h.allowedDecimalSeparators,g=h.decimalSeparator,p=e[d]===g;if(Ti(e)&&(e===a||e===o)&&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 v=function(T,B,O){var L=!1,j=!1;a.startsWith("-")?L=!1:T.startsWith("--")?(L=!1,j=!0):o.startsWith("-")&&T.length===o.length?L=!1:T[0]==="-"&&(L=!0);var z=L?1:0;return j&&(z=2),z&&(T=T.substring(z),B-=z,O-=z),{value:T,start:B,end:O,hasNegation:L}},y=v(e,c,d),x=y.hasNegation;r=y,e=r.value,c=r.start,d=r.end;var S=v(t.lastValue,l.start,l.end),D=S.start,$=S.end,F=S.value,m=e.substring(c,d);e.length&&F.length&&(D>F.length-o.length||$<a.length)&&!(m&&o.startsWith(m))&&(e=F);var C=0;e.startsWith(a)?C+=a.length:c<a.length&&(C=c),e=e.substring(C),d-=C;var I=e.length,E=e.length-o.length;e.endsWith(o)?I=E:(d>E||d>e.length-o.length)&&(I=d),e=e.substring(0,I),e=VT(x?"-"+e:e,i),e=(e.match(LT(g))||[]).join("");var R=e.indexOf(g);e=e.replace(new RegExp(d3(g),"g"),function(T,B){return B===R?".":""});var P=kh(e,i),A=P.beforeDecimal,M=P.afterDecimal,k=P.addNegation;return u.end-u.start<l.end-l.start&&A===""&&p&&!parseFloat(M)&&(e=k?"-":""),e}function WT(e,t){var n=t.prefix;n===void 0&&(n="");var r=t.suffix;r===void 0&&(r="");var i=Array.from({length:e.length+1}).map(function(){return!0}),a=e[0]==="-";i.fill(!1,0,n.length+(a?1:0));var o=e.length;return i.fill(!1,o-r.length+1,o+1),i}function zT(e){var t=Wu(e),n=t.thousandSeparator,r=t.decimalSeparator,i=e.prefix;i===void 0&&(i="");var a=e.allowNegative;if(a===void 0&&(a=!0),n===r)throw new Error(`
137
+ `,onClick:y,onMouseOver:()=>g(!0),onMouseOut:()=>g(!1),...l?l(u.slug):{},children:[w.isValidElement(u.svgIcon)&&_.jsx("div",{className:et["item-icon"],children:p||u.subs.length>0&&v||f?u.svgIconActive:u.svgIcon}),_.jsx("div",{className:et["item-label"],children:u.label}),u.subs.length>0&&n&&_.jsxs("div",{className:et["item-icon-subs"],children:[w.isValidElement(i)&&i,typeof i=="function"&&i()]})]}),u.parent===4&&!u.subs.length&&_.jsx("div",{className:et["divider-item-sidebar"]})]})),u.subs.length>0?_.jsxs("div",{className:`${n??v?"":"-mt-2"}`,children:[d,_.jsx("div",{className:`${et["item-subs-sidebar"]} ${!n||!v?et.hidden:""}`,children:u.subs.map(F=>w.createElement(l3,{...F,as:F.manualRoute?"div":F.subs.length>0?e:u.linkComponent,key:F.name,patch:r,iconSubs:i,show:t,open:n,variant:a,setShow:o}))}),[3,4].includes(u.parent)&&_.jsx("div",{className:et["divider-item-sidebar"]})]}):d):_.jsx(_.Fragment,{})},u3=w.forwardRef((e,t)=>{var M;const{as:n,children:r,patch:i="/",iconCompany:a,iconSubs:o,iconCollapse:s,iconCollapseClose:l,modules:u,toleranceWidthIconCompany:c=25,onClickItems:d,variant:h="payhere-brand-base-white",footer:f,withInheritance:g,...p}=e,b=w.useRef(null),v={withCuctomWidthIconCompany:["payhere-brand-base-white","payhere-brand-base-transparent"],variants:{"payhere-brand-base-white":pn["payhere-brand-base-white"],"payhere-brand-base-transparent":pn["payhere-brand-base-transparent"],"laba-white":pn["laba-white"]}},[y,x]=w.useState(null),[S,D]=w.useState(null),[$,F]=w.useState(""),[m,C]=w.useState(),[I,E]=w.useState(0),R=()=>{var B;let k=0;const T=document.getElementById("icon-company-sidebar");(B=T==null?void 0:T.childNodes)==null||B.forEach(O=>{k+=O.getBoundingClientRect().width??0}),C(k+c+"px")},P=()=>{E(window.innerWidth)},A=()=>{x(!S),S?C("auto"):setTimeout(()=>{R()},100)};return w.useEffect(()=>{I>=768?(x(!0),setTimeout(()=>{R()},100)):(x(!1),C("auto"))},[I]),w.useEffect(()=>{typeof y=="boolean"&&D(y)},[y]),w.useImperativeHandle(t,()=>({openSidebar:y,setOpenSidebar:x,handlerClickCollapse:A}),[y,S]),w.useEffect(()=>(i&&i.split("/").length>1&&F(i+"/"),R(),P(),window.addEventListener("resize",P),()=>window.removeEventListener("resize",P)),[]),_.jsxs("div",{className:v.variants[h],...p,ref:b,children:[_.jsxs("div",{id:"1ru-sidebar",className:`${pn.sidebar} ${typeof S=="boolean"&&S?pn["sidebar-open"]:""} ${typeof S=="boolean"&&!S?pn["sidebar-close"]:""}`,children:[w.isValidElement(s)&&_.jsxs("div",{className:pn["button-collaps-sidebar"],onClick:A,children:[y&&s,y?"":w.isValidElement(l)?l:s]}),_.jsx("div",{className:pn["container-icon-company-sidebar"],children:_.jsxs("div",{id:"icon-company-sidebar",className:pn["icon-company-sidebar"],style:{width:m&&v.withCuctomWidthIconCompany.includes(h)?m:"100%"},children:[w.isValidElement(a)&&a,typeof a=="function"&&a({openSidebar:S,setOpenSidebar:x})]})}),_.jsx("div",{className:pn["menu-sidebar"],onMouseOver:()=>{y||D(!0)},onMouseOut:()=>{y||D(!1)},children:u.map(k=>w.createElement(l3,{...k,as:k.manualRoute||k.subs.length>0?"div":n,linkComponent:n,key:k.name,show:$,open:S,patch:i,iconSubs:o,variant:h,setShow:F,onClickItems:d}))}),f&&_.jsxs("div",{className:S?"1ru-opacity-[1]":"1ru-opacity-0",children:[w.isValidElement(f)&&_.jsx("div",{children:f}),typeof f=="function"&&_.jsx("div",{children:f()})]})]}),y&&_.jsx("div",{className:pn["splace-screen"],onClick:A}),_.jsxs("div",{className:pn["content-sidebar"],children:[g&&((M=w.Children)==null?void 0:M.map(r,k=>_.jsx(_.Fragment,{children:w.isValidElement(k)&&_.jsx(_.Fragment,{children:w.cloneElement(k,{openSidebar:y,handlerClickCollapse:A})})}))),!g&&_.jsx(_.Fragment,{children:r})]})]})});u3.displayName="Sidebar";const mT="_collapse_gto9s_1",pT={collapse:mT},bT=({children:e,id:t,open:n,className:r,classNameContainer:i,maxCollapsedHeight:a="0px",triggerCalCulateContainer:o,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)}},[o]),_.jsx("div",{className:`${pT.collapse} ${i??""}`,style:{maxHeight:n?l:a},children:_.jsx("div",{id:t,className:r??"",children:e})})},vT="_modal_9v1mi_1",Ar={modal:vT,"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"},yT=({as:e,children:t,id:n="modal",idModal:r="1ru-modal",withOverlay:i=!0,show:a,size:o="regular",className:s,classNameContainer:l,onClose:u,...c})=>{const d=e??"div",h={size:{small:Ar["modal-small"],medium:Ar["modal-medium"],regular:Ar["modal-regular"],large:Ar["modal-large"]}},f=()=>{typeof u=="function"&&u()};return _.jsx(_.Fragment,{children:a&&document.getElementById(r)&&ts.createPortal(_.jsx("div",{id:n,onClick:f,className:`${Ar.modal} ${i?Ar["with-overlay"]:""} ${a?Ar["modal-show"]:""} ${l??""}`,children:_.jsx(d,{onClick:g=>g.stopPropagation(),className:`${Ar["modal-content"]} ${h.size[o]} ${s??""}`,...c,children:t})}),document.getElementById(r))})},xT="_dot_10oqk_31",zn={"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:xT,"right-content":"_right-content_10oqk_34"},CT=({children:e,noTime:t=!1})=>_.jsx("div",{className:`${zn["timeline-container"]} ${t?zn["no-time"]:""}`,children:e}),wT=({children:e,time:t,clasName:n,noTime:r=!1})=>_.jsxs("div",{className:zn["timeline-content"],children:[_.jsx("div",{className:`${zn["left-content"]} ${r?zn["no-time"]:""}`,children:_.jsxs("div",{className:zn["time-content"],children:[!r&&_.jsx("time",{className:zn["text-time"],children:t??""}),_.jsx("div",{className:zn.dot})]})}),_.jsx("div",{className:`${zn["right-content"]} ${r?zn["no-time"]:""} ${n??""}`,children:e})]}),DT=Object.assign(CT,{TimelineContent:wT}),zs=(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},ST=({children:e,onChange:t,prefixNativeValue:n="",defaultNativeValue:r,defaultValue:i,mountedExecuteChange:a=!0,keepKeys:o=[],resetPagination:s=!0,keyPageNumber:l="pageNumber",triggerReset:u={},reset:c})=>{const d=s?{[l]:1}:{},[h,f]=w.useState(zs(i??{},o,"")),[g,p]=w.useState(mg(n,zs(r??{},o,n))),[b,v]=w.useState(!1),y=(F,m)=>F.map(C=>C[m]).join(","),x=(F,m)=>F.map(C=>C[m]),S=(F,m)=>{const C={};return Object.keys(m).forEach(I=>{C[`${F}${I}`]=m[I]}),C},D=(F,m,C,I)=>{let E=F;const R=S(n,{[m]:F});Array.isArray(F)&&(C==="array-of-object-to-array"?E=x(F,I):C==="array-of-object-to-string"?E=y(F,I):C==="array-to-string"&&(E=E.toString())),typeof t=="function"&&t({...h,[m]:E,...d},{...g,...R}),f(P=>({...P,[m]:E})),p(P=>({...P,...R}))},$=(F,m)=>{const I=S(n,{...m??F});typeof t=="function"&&t({...h,...F,...d},{...g,...I}),f(E=>({...E,...F})),p(E=>({...E,...I}))};return $i(()=>{!b&&typeof t=="function"&&a&&(t(h,g),v(!0))},[h,g,b,a]),$i(()=>{c&&(p(mg(n,zs(r??{},o,n))),f(zs(i??{},o,"")))},[c,u]),_.jsx(_.Fragment,{children:e({handlerOnChange:D,handlerOnChangeNative:$,value:h,nativeValue:g})})};function Ph(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 Xo;(function(e){e.event="event",e.props="prop"})(Xo||(Xo={}));function mr(){}function ET(e){var t,n=void 0;return function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return t&&r.length===t.length&&r.every(function(a,o){return a===t[o]})||(t=r,n=e.apply(void 0,r)),n}}function Pi(e){return!!(e||"").match(/\d/)}function Si(e){return e==null}function IT(e){return typeof e=="number"&&isNaN(e)}function c3(e){return Si(e)||IT(e)||typeof e=="number"&&!isFinite(e)}function d3(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function _T(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 $T(e,t,n){var r=_T(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 RT(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 kh(e,t){t===void 0&&(t=!0);var n=e[0]==="-",r=n&&t;e=e.replace("-","");var i=e.split("."),a=i[0],o=i[1]||"";return{beforeDecimal:a,afterDecimal:o,hasNegation:n,addNegation:r}}function AT(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 f3(e,t,n){for(var r="",i=n?"0":"",a=0;a<=t-1;a++)r+=e[a]||i;return r}function k0(e,t){return Array(t+1).join(e)}function h3(e){var t=e+"",n=t[0]==="-"?"-":"";n&&(t=t.substring(1));var r=t.split(/[eE]/g),i=r[0],a=r[1];if(a=Number(a),!a)return n+i;i=i.replace(".","");var o=1+a,s=i.length;return o<0?i="0."+k0("0",Math.abs(o))+i:o>=s?i=i+k0("0",o-s):i=(i.substring(0,o)||"0")+"."+i.substring(o),n+i}function M0(e,t,n){if(["","-"].indexOf(e)!==-1)return e;var r=(e.indexOf(".")!==-1||n)&&t,i=kh(e),a=i.beforeDecimal,o=i.afterDecimal,s=i.hasNegation,l=parseFloat("0."+(o||"0")),u=o.length<=t?"0."+o:l.toFixed(t),c=u.split("."),d=a;a&&Number(c[0])&&(d=a.split("").reverse().reduce(function(p,b,v){return p.length>v?(Number(p[0])+Number(b)).toString()+p.substring(1,p.length):b+p},c[0]));var h=f3(c[1]||"",t,n),f=s?"-":"",g=r?".":"";return""+f+d+g+h}function Or(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 g3=ET(function(e,t){for(var n=0,r=0,i=e.length,a=t.length;e[n]===t[n]&&n<i;)n++;for(;e[i-1-r]===t[a-1-r]&&a-r>n&&i-r>n;)r++;return{from:{start:n,end:i-r},to:{start:n,end:a-r}}}),FT=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 Wc(e){return Math.max(e.selectionStart,e.selectionEnd)}function PT(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function m3(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function p3(e,t){return e===void 0&&(e=" "),typeof e=="string"?e:e[t]||" "}function kT(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,i=e.formattedValueIndex;return t[r]===n[i]}function MT(e,t,n,r,i,a,o){o===void 0&&(o=kT);var s=i.findIndex(function(S){return S}),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,p=c;g<p;g++){var b=o({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:f,formattedValueIndex:g});if(b&&d[g]!==!0){h[f]=g,d[g]=!0;break}}}for(var v=r;v<u&&(h[v]===-1||!a(n[v]));)v++;var y=v===u||h[v]===-1?c:h[v];for(v=r-1;v>0&&h[v]===-1;)v--;var x=v===-1||h[v]===-1?0:h[v]+1;return x>y?y:r-x<y-r?x:y}function au(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 BT(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),n=0,r=t.length;n<r;n++)t[n]=!!(Pi(e[n])||Pi(e[n-1]));return t}function b3(e,t,n,r,i,a){a===void 0&&(a=mr);var o=RT(function(g,p){var b,v;return c3(g)?(v="",b=""):typeof g=="number"||p?(v=typeof g=="number"?h3(g):g,b=r(v)):(v=i(g,void 0),b=r(v)),{formattedValue:b,numAsString:v}}),s=w.useState(function(){return o(Si(e)?t:e,n)}),l=s[0],u=s[1],c=function(g,p){g.formattedValue!==l.formattedValue&&u({formattedValue:g.formattedValue,numAsString:g.value}),a(g,p)},d=e,h=n;Si(e)&&(d=l.numAsString,h=!0);var f=o(d,h);return w.useMemo(function(){u(f)},[f.formattedValue]),[l,c]}function OT(e){return e.replace(/[^0-9]/g,"")}function NT(e){return e}function v3(e){var t=e.type;t===void 0&&(t="text");var n=e.displayType;n===void 0&&(n="input");var r=e.customInput,i=e.renderText,a=e.getInputRef,o=e.format;o===void 0&&(o=NT);var s=e.removeFormatting;s===void 0&&(s=OT);var l=e.defaultValue,u=e.valueIsNumericString,c=e.onValueChange,d=e.isAllowed,h=e.onChange;h===void 0&&(h=mr);var f=e.onKeyDown;f===void 0&&(f=mr);var g=e.onMouseUp;g===void 0&&(g=mr);var p=e.onFocus;p===void 0&&(p=mr);var b=e.onBlur;b===void 0&&(b=mr);var v=e.value,y=e.getCaretBoundary;y===void 0&&(y=BT);var x=e.isValidInputCharacter;x===void 0&&(x=Pi);var S=e.isCharacterSame,D=Ph(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),$=b3(v,l,!!u,o,s,c),F=$[0],m=F.formattedValue,C=F.numAsString,I=$[1],E=w.useRef(),R=w.useRef({formattedValue:m,numAsString:C}),P=function(ee,re){R.current={formattedValue:ee.formattedValue,numAsString:ee.value},I(ee,re)},A=w.useState(!1),M=A[0],k=A[1],T=w.useRef(null),B=w.useRef({setCaretTimeout:null,focusTimeout:null});w.useEffect(function(){return k(!0),function(){clearTimeout(B.current.setCaretTimeout),clearTimeout(B.current.focusTimeout)}},[]);var O=o,L=function(ee,re){var pe=parseFloat(re);return{formattedValue:ee,value:re,floatValue:isNaN(pe)?void 0:pe}},j=function(ee,re,pe){ee.selectionStart===0&&ee.selectionEnd===ee.value.length||(Or(ee,re),B.current.setCaretTimeout=setTimeout(function(){ee.value===pe&&ee.selectionStart!==re&&Or(ee,re)},0))},z=function(ee,re,pe){return au(ee,re,y(ee),pe)},Y=function(ee,re,pe){var He=y(re),ct=MT(re,m,ee,pe,He,x,S);return ct=au(re,ct,He),ct},G=function(ee){var re=ee.formattedValue;re===void 0&&(re="");var pe=ee.input,He=ee.source,ct=ee.event,Ae=ee.numAsString,Ee;if(pe){var Ht=ee.inputValue||pe.value,jt=Wc(pe);pe.value=re,Ee=Y(Ht,re,jt),Ee!==void 0&&j(pe,Ee,re)}re!==m&&P(L(re,Ae),{event:ct,source:He})};w.useEffect(function(){var ee=R.current,re=ee.formattedValue,pe=ee.numAsString;(m!==re||C!==pe)&&P(L(m,C),{event:void 0,source:Xo.props})},[m,C]);var H=T.current?Wc(T.current):void 0,V=typeof window<"u"?w.useLayoutEffect:w.useEffect;V(function(){var ee=T.current;if(m!==R.current.formattedValue&&ee){var re=Y(R.current.formattedValue,m,H);ee.value=m,j(ee,re,m)}},[m]);var X=function(ee,re,pe){var He=re.target,ct=E.current?FT(E.current,He.selectionEnd):g3(m,ee),Ae=Object.assign(Object.assign({},ct),{lastValue:m}),Ee=s(ee,Ae),Ht=O(Ee);if(Ee=s(Ht,void 0),d&&!d(L(Ht,Ee))){var jt=re.target,Wt=Wc(jt),rr=Y(ee,m,Wt);return jt.value=m,j(jt,rr,m),!1}return G({formattedValue:Ht,numAsString:Ee,inputValue:ee,event:re,source:pe,input:re.target}),!0},K=function(ee,re){re===void 0&&(re=0);var pe=ee.selectionStart,He=ee.selectionEnd;E.current={selectionStart:pe,selectionEnd:He+re}},te=function(ee){var re=ee.target,pe=re.value,He=X(pe,ee,Xo.event);He&&h(ee),E.current=void 0},ue=function(ee){var re=ee.target,pe=ee.key,He=re.selectionStart,ct=re.selectionEnd,Ae=re.value;Ae===void 0&&(Ae="");var Ee;pe==="ArrowLeft"||pe==="Backspace"?Ee=Math.max(He-1,0):pe==="ArrowRight"?Ee=Math.min(He+1,Ae.length):pe==="Delete"&&(Ee=He);var Ht=0;pe==="Delete"&&He===ct&&(Ht=1);var jt=pe==="ArrowLeft"||pe==="ArrowRight";if(Ee===void 0||He!==ct&&!jt){f(ee),K(re,Ht);return}var Wt=Ee;if(jt){var rr=pe==="ArrowLeft"?"left":"right";Wt=z(Ae,Ee,rr),Wt!==Ee&&ee.preventDefault()}else pe==="Delete"&&!x(Ae[Ee])?Wt=z(Ae,Ee,"right"):pe==="Backspace"&&!x(Ae[Ee])&&(Wt=z(Ae,Ee,"left"));Wt!==Ee&&j(re,Wt,Ae),f(ee),K(re,Ht)},ie=function(ee){var re=ee.target,pe=function(){var He=re.selectionStart,ct=re.selectionEnd,Ae=re.value;if(Ae===void 0&&(Ae=""),He===ct){var Ee=z(Ae,He);Ee!==He&&j(re,Ee,Ae)}};pe(),requestAnimationFrame(function(){pe()}),g(ee),K(re)},Z=function(ee){ee.persist&&ee.persist();var re=ee.target,pe=ee.currentTarget;T.current=re,B.current.focusTimeout=setTimeout(function(){var He=re.selectionStart,ct=re.selectionEnd,Ae=re.value;Ae===void 0&&(Ae="");var Ee=z(Ae,He);Ee!==He&&!(He===0&&ct===Ae.length)&&j(re,Ee,Ae),p(Object.assign(Object.assign({},ee),{currentTarget:pe}))},0)},me=function(ee){T.current=null,clearTimeout(B.current.focusTimeout),clearTimeout(B.current.setCaretTimeout),b(ee)},he=M&&PT()?"numeric":void 0,ce=Object.assign({inputMode:he},D,{type:t,value:m,onChange:te,onKeyDown:ue,onMouseUp:ie,onFocus:Z,onBlur:me});if(n==="text")return i?w.createElement(w.Fragment,null,i(m,D)||null):w.createElement("span",Object.assign({},D,{ref:a}),m);if(r){var qe=r;return w.createElement(qe,Object.assign({},ce,{ref:a}))}return w.createElement("input",Object.assign({},ce,{ref:a}))}function B0(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,i=t.prefix;i===void 0&&(i="");var a=t.suffix;a===void 0&&(a="");var o=t.allowNegative,s=t.thousandsGroupStyle;if(s===void 0&&(s="thousand"),e===""||e==="-")return e;var l=Wu(t),u=l.thousandSeparator,c=l.decimalSeparator,d=n!==0&&e.indexOf(".")!==-1||n&&r,h=kh(e,o),f=h.beforeDecimal,g=h.afterDecimal,p=h.addNegation;return n!==void 0&&(g=f3(g,n,!!r)),u&&(f=$T(f,u,s)),i&&(f=i+f),a&&(g=g+a),p&&(f="-"+f),e=f+(d&&c||"")+g,e}function Wu(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 VT(e,t){e===void 0&&(e="");var n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),i=n.test(e),a=r.test(e);return e=e.replace(/-/g,""),i&&!a&&t&&(e="-"+e),e}function LT(e,t){return new RegExp("(^-)|[0-9]|"+d3(e),"g")}function HT(e,t,n){return e===""?!0:!(t!=null&&t.match(/\d/))&&!(n!=null&&n.match(/\d/))&&typeof e=="string"&&!isNaN(Number(e))}function jT(e,t,n){var r;t===void 0&&(t=m3(e));var i=n.allowNegative,a=n.prefix;a===void 0&&(a="");var o=n.suffix;o===void 0&&(o="");var s=n.decimalScale,l=t.from,u=t.to,c=u.start,d=u.end,h=Wu(n),f=h.allowedDecimalSeparators,g=h.decimalSeparator,p=e[d]===g;if(Pi(e)&&(e===a||e===o)&&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 v=function(T,B,O){var L=!1,j=!1;a.startsWith("-")?L=!1:T.startsWith("--")?(L=!1,j=!0):o.startsWith("-")&&T.length===o.length?L=!1:T[0]==="-"&&(L=!0);var z=L?1:0;return j&&(z=2),z&&(T=T.substring(z),B-=z,O-=z),{value:T,start:B,end:O,hasNegation:L}},y=v(e,c,d),x=y.hasNegation;r=y,e=r.value,c=r.start,d=r.end;var S=v(t.lastValue,l.start,l.end),D=S.start,$=S.end,F=S.value,m=e.substring(c,d);e.length&&F.length&&(D>F.length-o.length||$<a.length)&&!(m&&o.startsWith(m))&&(e=F);var C=0;e.startsWith(a)?C+=a.length:c<a.length&&(C=c),e=e.substring(C),d-=C;var I=e.length,E=e.length-o.length;e.endsWith(o)?I=E:(d>E||d>e.length-o.length)&&(I=d),e=e.substring(0,I),e=VT(x?"-"+e:e,i),e=(e.match(LT(g))||[]).join("");var R=e.indexOf(g);e=e.replace(new RegExp(d3(g),"g"),function(T,B){return B===R?".":""});var P=kh(e,i),A=P.beforeDecimal,M=P.afterDecimal,k=P.addNegation;return u.end-u.start<l.end-l.start&&A===""&&p&&!parseFloat(M)&&(e=k?"-":""),e}function WT(e,t){var n=t.prefix;n===void 0&&(n="");var r=t.suffix;r===void 0&&(r="");var i=Array.from({length:e.length+1}).map(function(){return!0}),a=e[0]==="-";i.fill(!1,0,n.length+(a?1:0));var o=e.length;return i.fill(!1,o-r.length+1,o+1),i}function zT(e){var t=Wu(e),n=t.thousandSeparator,r=t.decimalSeparator,i=e.prefix;i===void 0&&(i="");var a=e.allowNegative;if(a===void 0&&(a=!0),n===r)throw new Error(`
138
138
  Decimal separator can't be same as thousand separator.
139
139
  thousandSeparator: `+n+` (thousandSeparator = {true} is same as thousandSeparator = ",")
140
140
  decimalSeparator: `+r+` (default value for decimalSeparator is .)
@@ -142,7 +142,7 @@ You should wrap it with \`css\` like this:
142
142
  Prefix can't start with '-' when allowNegative is true.
143
143
  prefix: `+i+`
144
144
  allowNegative: `+a+`
145
- `),a=!1),Object.assign(Object.assign({},e),{allowNegative:a})}function GT(e){e=zT(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,i=e.onKeyDown;i===void 0&&(i=mr);var a=e.onBlur;a===void 0&&(a=mr);var o=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=Ph(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),p=Wu(e),b=p.decimalSeparator,v=p.allowedDecimalSeparators,y=function(k){return B0(k,e)},x=function(k,T){return jT(k,T,e)},S=Si(d)?c:d,D=h??HT(S,u,t);Si(d)?Si(c)||(D=D||typeof c=="number"):D=D||typeof d=="number";var $=function(k){return c3(k)?k:(typeof k=="number"&&(k=h3(k)),D&&typeof s=="number"?M0(k,s,!!l):k)},F=b3($(d),$(c),!!D,y,x,f),m=F[0],C=m.numAsString,I=m.formattedValue,E=F[1],R=function(k){var T=k.target,B=k.key,O=T.selectionStart,L=T.selectionEnd,j=T.value;if(j===void 0&&(j=""),(B==="Backspace"||B==="Delete")&&L<u.length){k.preventDefault();return}if(O!==L){i(k);return}B==="Backspace"&&j[0]==="-"&&O===u.length+1&&n&&Or(T,1),s&&l&&(B==="Backspace"&&j[O-1]===b?(Or(T,O-1),k.preventDefault()):B==="Delete"&&j[O]===b&&k.preventDefault()),v!=null&&v.includes(B)&&j[O]===b&&Or(T,O+1);var z=o===!0?",":o;B==="Backspace"&&j[O-1]===z&&Or(T,O-1),B==="Delete"&&j[O]===z&&Or(T,O+1),i(k)},P=function(k){var T=C;if(T.match(/\d/g)||(T=""),r||(T=AT(T)),l&&s&&(T=M0(T,s,l)),T!==C){var B=B0(T,e);E({formattedValue:B,value:T,floatValue:parseFloat(T)},{event:k,source:Xo.event})}a(k)},A=function(k){return k===b?!0:Ti(k)},M=function(k){var T=k.currentValue,B=k.lastValue,O=k.formattedValue,L=k.currentValueIndex,j=k.formattedValueIndex,z=T[L],Y=O[j],G=g3(B,T),H=G.to;return L>=H.start&&L<H.end&&v&&v.includes(z)&&Y===b?!0:z===Y};return Object.assign(Object.assign({},g),{value:I,valueIsNumericString:!1,isValidInputCharacter:A,isCharacterSame:M,onValueChange:E,format:y,removeFormatting:x,getCaretBoundary:function(k){return WT(k,e)},onKeyDown:R,onBlur:P})}function XT(e){var t=GT(e);return w.createElement(v3,Object.assign({},t))}function ZT(e,t){var n=t.format,r=t.allowEmptyFormatting,i=t.mask,a=t.patternChar;if(a===void 0&&(a="#"),e===""&&!r)return"";for(var o=0,s=n.split(""),l=0,u=n.length;l<u;l++)n[l]===a&&(s[l]=e[o]||p3(i,o),o+=1);return s.join("")}function YT(e,t,n){t===void 0&&(t=m3(e));var r=n.format,i=n.patternChar;i===void 0&&(i="#");var a=t.from,o=t.to,s=t.lastValue;s===void 0&&(s="");var l=function(b){return r[b]===i},u=function(b,v){for(var y="",x=0;x<b.length;x++)l(v+x)&&Ti(b[x])&&(y+=b[x]);return y},c=function(b){return b.replace(/[^0-9]/g,"")};if(!r.match(/\d/))return c(e);if((s===""||a.end-a.start===s.length)&&e.length===r.length){for(var d="",h=0;h<e.length;h++)if(l(h))Ti(e[h])&&(d+=e[h]);else if(e[h]!==r[h])return c(e);return d}var f=s.substring(0,a.start),g=e.substring(o.start,o.end),p=s.substring(a.end);return""+u(f,0)+c(g)+u(p,a.end)}function UT(e,t){var n=t.format,r=t.mask,i=t.patternChar;i===void 0&&(i="#");var a=Array.from({length:e.length+1}).map(function(){return!0}),o=0,s=-1,l={};n.split("").forEach(function(h,f){var g=void 0;h===i&&(o++,g=p3(r,o-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=a.length;c<d;c++)a[c]=c===s||u(c)||u(c-1);return a[n.indexOf(i)]=!0,a}function JT(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 KT(e,t){return e===""?!0:!(t!=null&&t.match(/\d/))&&typeof e=="string"&&(!!e.match(/^\d+$/)||e==="")}function qT(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=mr);var i=e.patternChar;i===void 0&&(i="#");var a=e.value,o=e.defaultValue,s=e.valueIsNumericString,l=Ph(e,["mask","allowEmptyFormatting","format","inputMode","onKeyDown","patternChar","value","defaultValue","valueIsNumericString"]);JT(e);var u=function(g){return UT(g,e)},c=function(g){var p=g.key,b=g.target,v=b.selectionStart,y=b.selectionEnd,x=b.value;if(v!==y){r(g);return}var S=v;if(p==="Backspace"||p==="Delete"){var D="right";if(p==="Backspace"){for(;S>0&&t[S-1]!==i;)S--;D="left"}else{for(var $=t.length;S<$&&t[S]!==i;)S++;D="right"}S=au(x,S,u(x),D)}else t[S]!==i&&p!=="ArrowLeft"&&p!=="ArrowRight"&&(S=au(x,S+1,u(x),"right"));S!==v&&Or(b,S),r(g)},d=Si(a)?o:a,h=s??KT(d,t),f=Object.assign(Object.assign({},e),{valueIsNumericString:h});return Object.assign(Object.assign({},l),{value:a,defaultValue:o,valueIsNumericString:h,inputMode:n,format:function(g){return ZT(g,f)},removeFormatting:function(g,p){return YT(g,p,f)},getCaretBoundary:u,onKeyDown:c})}function QT(e){var t=qT(e);return w.createElement(v3,Object.assign({},t))}const eP=({max:e,min:t,selectedText:n="Rp0",onChange:r,onFocusInput:i,...a})=>_.jsx(XT,{isAllowed:o=>e!==void 0&&Qn(e)&&nt(o.value).isGreaterThan(e)?(typeof r=="function"&&r({target:{value:nt(e).toString()}}),!1):t!==void 0&&Qn(t)&&nt(o.value).isLessThan(t)?(typeof r=="function"&&r({target:{value:nt(t).toString()}}),!1):!0,onValueChange:(o,{source:s})=>{typeof r=="function"&&s.includes("event")&&r({target:{value:o.value}})},decimalSeparator:",",thousandSeparator:".",decimalScale:2,valueIsNumericString:!0,thousandsGroupStyle:"thousand",onFocus:o=>{var s;((s=o==null?void 0:o.target)==null?void 0:s.value)===n&&(typeof i=="function"?i(""):typeof r=="function"&&r({target:{value:""}}))},...a}),tP=({children:e,containerId:t="portal-root"})=>{const[n,r]=w.useState(null);return w.useEffect(()=>{let i=document.getElementById(t),a=!1;return i||(i=document.createElement("div"),i.id=t,document.body.appendChild(i),a=!0),r(i),()=>{a&&i&&document.body.removeChild(i)}},[t]),n?ts.createPortal(e,n):null},nP={"button-remove":"_button-remove_1o2yg_1"},rP=()=>_.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:_.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"})}),iP=()=>_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:_.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"})}),y3=e=>{const t=w.useRef(null),{fileName:n,onChange:r,maxFile:i,maxSize:a=2,validateFile:o,error:s,label:l,inputProps:u,priorityError:c="external",eventError:d}=e,h=o||["image/png","image/jpeg","image/jpg"],[f,g]=w.useState(""),p={internal:f||s,external:s||f},b=x=>{if(x!=null&&x.length){const S=x[0],D=S.size/1024/1024;let $="";if(h.some(F=>{var m;return(m=x[0].type)==null?void 0:m.includes(F)})?D>a?$=`${x.length>1?"Jumlah u":"U"}kuran berkas tidak boleh melebihi ${a}MB.`:r(S):$="Berkas tidak didukung, silahkan pilih file kembali.",g($),d==null||d($),!(t!=null&&t.current))return;t.current.value=""}},v=x=>{var S;x.preventDefault(),t!=null&&t.current&&((S=t.current)==null||S.click())},y=x=>{x.preventDefault(),t!=null&&t.current&&(r(null),t.current.value="")};return _.jsxs(_.Fragment,{children:[_.jsx("input",{accept:h==null?void 0:h.join(", "),ref:t,hidden:!0,type:"file",max:i,onChange:x=>{b(x.target.files)}}),_.jsx(Ef,{sizeInput:"medium",placeholder:"Pilih Berkas",label:l,value:n,readOnly:!0,onClick:x=>v(x),startIcon:_.jsx(iP,{}),endIcon:n&&_.jsx("div",{className:nP["button-remove"],onClick:x=>y(x),children:_.jsx(rP,{})}),error:p[c],...u})]})};y3.displayName="UploadFile";const aP=({children:e,initialVisibleCount:t,maxWidth:n,moreElement:r,style:i={},className:a,gap:o=0,gapStyle:s,watchChildren:l=!1,...u})=>{const[c,d]=w.useState(l?[]:e),[h,f]=w.useState(0),g=w.useRef(new Array(t).fill(null)),p=w.useRef(null),b=w.useCallback(()=>{var $;const x=(($=p.current)==null?void 0:$.offsetWidth)??0;let S=0,D=0;g.current.forEach((F,m)=>{F&&(S+=F.offsetWidth,m>0&&(S+=o),S<=x&&D++)}),d(w.Children.toArray(e).slice(0,D)),f(w.Children.count(e)-D)},[c,o]);w.useEffect(()=>(b(),window.addEventListener("resize",b),()=>{window.removeEventListener("resize",b)}),[b]);const v=w.useMemo(()=>w.Children.map(c,(x,S)=>w.cloneElement(x,{ref:D=>g.current[S]=D,key:`child-${S}`})),[c]);w.useEffect(()=>{l&&d(e)},[e]);const y={overflow:"hidden",display:"flex",flexWrap:"nowrap",gap:s??0,...i};return n&&(y.maxWidth=n),_.jsxs(_.Fragment,{children:[_.jsx("div",{ref:p,style:y,className:a??"",...u,children:v}),h>0&&_.jsx(_.Fragment,{children:r(h)})]})},oP="_container_1wopr_1",sP="_image_1wopr_5",sr={container:oP,"image-content":"_image-content_1wopr_5",image:sP,"text-desc":"_text-desc_1wopr_13","action-content":"_action-content_1wopr_20","button-content":"_button-content_1wopr_24","text-error":"_text-error_1wopr_31"},lP=({className: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:_.jsx("g",{id:"x",children:_.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
145
+ `),a=!1),Object.assign(Object.assign({},e),{allowNegative:a})}function GT(e){e=zT(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,i=e.onKeyDown;i===void 0&&(i=mr);var a=e.onBlur;a===void 0&&(a=mr);var o=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=Ph(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),p=Wu(e),b=p.decimalSeparator,v=p.allowedDecimalSeparators,y=function(k){return B0(k,e)},x=function(k,T){return jT(k,T,e)},S=Si(d)?c:d,D=h??HT(S,u,t);Si(d)?Si(c)||(D=D||typeof c=="number"):D=D||typeof d=="number";var $=function(k){return c3(k)?k:(typeof k=="number"&&(k=h3(k)),D&&typeof s=="number"?M0(k,s,!!l):k)},F=b3($(d),$(c),!!D,y,x,f),m=F[0],C=m.numAsString,I=m.formattedValue,E=F[1],R=function(k){var T=k.target,B=k.key,O=T.selectionStart,L=T.selectionEnd,j=T.value;if(j===void 0&&(j=""),(B==="Backspace"||B==="Delete")&&L<u.length){k.preventDefault();return}if(O!==L){i(k);return}B==="Backspace"&&j[0]==="-"&&O===u.length+1&&n&&Or(T,1),s&&l&&(B==="Backspace"&&j[O-1]===b?(Or(T,O-1),k.preventDefault()):B==="Delete"&&j[O]===b&&k.preventDefault()),v!=null&&v.includes(B)&&j[O]===b&&Or(T,O+1);var z=o===!0?",":o;B==="Backspace"&&j[O-1]===z&&Or(T,O-1),B==="Delete"&&j[O]===z&&Or(T,O+1),i(k)},P=function(k){var T=C;if(T.match(/\d/g)||(T=""),r||(T=AT(T)),l&&s&&(T=M0(T,s,l)),T!==C){var B=B0(T,e);E({formattedValue:B,value:T,floatValue:parseFloat(T)},{event:k,source:Xo.event})}a(k)},A=function(k){return k===b?!0:Pi(k)},M=function(k){var T=k.currentValue,B=k.lastValue,O=k.formattedValue,L=k.currentValueIndex,j=k.formattedValueIndex,z=T[L],Y=O[j],G=g3(B,T),H=G.to;return L>=H.start&&L<H.end&&v&&v.includes(z)&&Y===b?!0:z===Y};return Object.assign(Object.assign({},g),{value:I,valueIsNumericString:!1,isValidInputCharacter:A,isCharacterSame:M,onValueChange:E,format:y,removeFormatting:x,getCaretBoundary:function(k){return WT(k,e)},onKeyDown:R,onBlur:P})}function XT(e){var t=GT(e);return w.createElement(v3,Object.assign({},t))}function ZT(e,t){var n=t.format,r=t.allowEmptyFormatting,i=t.mask,a=t.patternChar;if(a===void 0&&(a="#"),e===""&&!r)return"";for(var o=0,s=n.split(""),l=0,u=n.length;l<u;l++)n[l]===a&&(s[l]=e[o]||p3(i,o),o+=1);return s.join("")}function YT(e,t,n){t===void 0&&(t=m3(e));var r=n.format,i=n.patternChar;i===void 0&&(i="#");var a=t.from,o=t.to,s=t.lastValue;s===void 0&&(s="");var l=function(b){return r[b]===i},u=function(b,v){for(var y="",x=0;x<b.length;x++)l(v+x)&&Pi(b[x])&&(y+=b[x]);return y},c=function(b){return b.replace(/[^0-9]/g,"")};if(!r.match(/\d/))return c(e);if((s===""||a.end-a.start===s.length)&&e.length===r.length){for(var d="",h=0;h<e.length;h++)if(l(h))Pi(e[h])&&(d+=e[h]);else if(e[h]!==r[h])return c(e);return d}var f=s.substring(0,a.start),g=e.substring(o.start,o.end),p=s.substring(a.end);return""+u(f,0)+c(g)+u(p,a.end)}function UT(e,t){var n=t.format,r=t.mask,i=t.patternChar;i===void 0&&(i="#");var a=Array.from({length:e.length+1}).map(function(){return!0}),o=0,s=-1,l={};n.split("").forEach(function(h,f){var g=void 0;h===i&&(o++,g=p3(r,o-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=a.length;c<d;c++)a[c]=c===s||u(c)||u(c-1);return a[n.indexOf(i)]=!0,a}function JT(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 KT(e,t){return e===""?!0:!(t!=null&&t.match(/\d/))&&typeof e=="string"&&(!!e.match(/^\d+$/)||e==="")}function qT(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=mr);var i=e.patternChar;i===void 0&&(i="#");var a=e.value,o=e.defaultValue,s=e.valueIsNumericString,l=Ph(e,["mask","allowEmptyFormatting","format","inputMode","onKeyDown","patternChar","value","defaultValue","valueIsNumericString"]);JT(e);var u=function(g){return UT(g,e)},c=function(g){var p=g.key,b=g.target,v=b.selectionStart,y=b.selectionEnd,x=b.value;if(v!==y){r(g);return}var S=v;if(p==="Backspace"||p==="Delete"){var D="right";if(p==="Backspace"){for(;S>0&&t[S-1]!==i;)S--;D="left"}else{for(var $=t.length;S<$&&t[S]!==i;)S++;D="right"}S=au(x,S,u(x),D)}else t[S]!==i&&p!=="ArrowLeft"&&p!=="ArrowRight"&&(S=au(x,S+1,u(x),"right"));S!==v&&Or(b,S),r(g)},d=Si(a)?o:a,h=s??KT(d,t),f=Object.assign(Object.assign({},e),{valueIsNumericString:h});return Object.assign(Object.assign({},l),{value:a,defaultValue:o,valueIsNumericString:h,inputMode:n,format:function(g){return ZT(g,f)},removeFormatting:function(g,p){return YT(g,p,f)},getCaretBoundary:u,onKeyDown:c})}function QT(e){var t=qT(e);return w.createElement(v3,Object.assign({},t))}const eP=({max:e,min:t,selectedText:n="Rp0",onChange:r,onFocusInput:i,...a})=>_.jsx(XT,{isAllowed:o=>e!==void 0&&Qn(e)&&nt(o.value).isGreaterThan(e)?(typeof r=="function"&&r({target:{value:nt(e).toString()}}),!1):t!==void 0&&Qn(t)&&nt(o.value).isLessThan(t)?(typeof r=="function"&&r({target:{value:nt(t).toString()}}),!1):!0,onValueChange:(o,{source:s})=>{typeof r=="function"&&s.includes("event")&&r({target:{value:o.value}})},decimalSeparator:",",thousandSeparator:".",decimalScale:2,valueIsNumericString:!0,thousandsGroupStyle:"thousand",onFocus:o=>{var s;((s=o==null?void 0:o.target)==null?void 0:s.value)===n&&(typeof i=="function"?i(""):typeof r=="function"&&r({target:{value:""}}))},...a}),tP=({children:e,containerId:t="portal-root"})=>{const[n,r]=w.useState(null);return w.useEffect(()=>{let i=document.getElementById(t),a=!1;return i||(i=document.createElement("div"),i.id=t,document.body.appendChild(i),a=!0),r(i),()=>{a&&i&&document.body.removeChild(i)}},[t]),n?ts.createPortal(e,n):null},nP={"button-remove":"_button-remove_1o2yg_1"},rP=()=>_.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:_.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"})}),iP=()=>_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:_.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"})}),y3=e=>{const t=w.useRef(null),{fileName:n,onChange:r,maxFile:i,maxSize:a=2,validateFile:o,error:s,label:l,inputProps:u,priorityError:c="external",eventError:d}=e,h=o||["image/png","image/jpeg","image/jpg"],[f,g]=w.useState(""),p={internal:f||s,external:s||f},b=x=>{if(x!=null&&x.length){const S=x[0],D=S.size/1024/1024;let $="";if(h.some(F=>{var m;return(m=x[0].type)==null?void 0:m.includes(F)})?D>a?$=`${x.length>1?"Jumlah u":"U"}kuran berkas tidak boleh melebihi ${a}MB.`:r(S):$="Berkas tidak didukung, silahkan pilih file kembali.",g($),d==null||d($),!(t!=null&&t.current))return;t.current.value=""}},v=x=>{var S;x.preventDefault(),t!=null&&t.current&&((S=t.current)==null||S.click())},y=x=>{x.preventDefault(),t!=null&&t.current&&(r(null),t.current.value="")};return _.jsxs(_.Fragment,{children:[_.jsx("input",{accept:h==null?void 0:h.join(", "),ref:t,hidden:!0,type:"file",max:i,onChange:x=>{b(x.target.files)}}),_.jsx(Ef,{sizeInput:"medium",placeholder:"Pilih Berkas",label:l,value:n,readOnly:!0,onClick:x=>v(x),startIcon:_.jsx(iP,{}),endIcon:n&&_.jsx("div",{className:nP["button-remove"],onClick:x=>y(x),children:_.jsx(rP,{})}),error:p[c],...u})]})};y3.displayName="UploadFile";const aP=({children:e,initialVisibleCount:t,maxWidth:n,moreElement:r,style:i={},className:a,gap:o=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)),p=w.useRef(null),b=w.useCallback(()=>{var $;const x=(($=p.current)==null?void 0:$.offsetWidth)??0;let S=0,D=0;g.current.forEach((F,m)=>{F&&(S+=F.offsetWidth,m>0&&(S+=o),S<=x&&D++)}),d(w.Children.toArray(e).slice(0,D)),f(w.Children.count(e)-D)},[e,o]);w.useEffect(()=>(b(),window.addEventListener("resize",b),()=>{window.removeEventListener("resize",b)}),[]);const v=w.useMemo(()=>w.Children.map(c,(x,S)=>w.cloneElement(x,{ref:D=>g.current[S]=D,key:`child-${S}`})),[c]);$i(()=>{l&&(d(e),setTimeout(()=>b(),100))},[l]);const y={overflow:"hidden",display:"flex",flexWrap:"nowrap",gap:s??0,...i};return n&&(y.maxWidth=n),_.jsxs(_.Fragment,{children:[_.jsx("div",{ref:p,style:y,className:a??"",...u,children:v}),h>0&&_.jsx(_.Fragment,{children:r(h)})]})},oP="_container_1wopr_1",sP="_image_1wopr_5",sr={container:oP,"image-content":"_image-content_1wopr_5",image:sP,"text-desc":"_text-desc_1wopr_13","action-content":"_action-content_1wopr_20","button-content":"_button-content_1wopr_24","text-error":"_text-error_1wopr_31"},lP=({className: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:_.jsx("g",{id:"x",children:_.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
146
146
  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
147
147
  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
148
148
  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
@@ -164,23 +164,23 @@ You should wrap it with \`css\` like this:
164
164
  * https://github.com/kurkle/color#readme
165
165
  * (c) 2023 Jukka Kurkela
166
166
  * Released under the MIT License
167
- */function ms(e){return e+.5|0}const Hr=(e,t,n)=>Math.max(Math.min(e,n),t);function qa(e){return Hr(ms(e*2.55),0,255)}function Wr(e){return Hr(ms(e*255),0,255)}function fr(e){return Hr(ms(e/2.55)/100,0,1)}function O0(e){return Hr(ms(e*100),0,100)}const bn={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},Qd=[..."0123456789ABCDEF"],pP=e=>Qd[e&15],bP=e=>Qd[(e&240)>>4]+Qd[e&15],Gs=e=>(e&240)>>4===(e&15),vP=e=>Gs(e.r)&&Gs(e.g)&&Gs(e.b)&&Gs(e.a);function yP(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&bn[e[1]]*17,g:255&bn[e[2]]*17,b:255&bn[e[3]]*17,a:t===5?bn[e[4]]*17:255}:(t===7||t===9)&&(n={r:bn[e[1]]<<4|bn[e[2]],g:bn[e[3]]<<4|bn[e[4]],b:bn[e[5]]<<4|bn[e[6]],a:t===9?bn[e[7]]<<4|bn[e[8]]:255})),n}const xP=(e,t)=>e<255?t(e):"";function CP(e){var t=vP(e)?pP:bP;return e?"#"+t(e.r)+t(e.g)+t(e.b)+xP(e.a,t):void 0}const wP=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function C3(e,t,n){const r=t*Math.min(n,1-n),i=(a,o=(a+e/30)%12)=>n-r*Math.max(Math.min(o-3,9-o,1),-1);return[i(0),i(8),i(4)]}function DP(e,t,n){const r=(i,a=(i+e/60)%6)=>n-n*t*Math.max(Math.min(a,4-a,1),0);return[r(5),r(3),r(1)]}function SP(e,t,n){const r=C3(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 EP(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 Mh(e){const n=e.r/255,r=e.g/255,i=e.b/255,a=Math.max(n,r,i),o=Math.min(n,r,i),s=(a+o)/2;let l,u,c;return a!==o&&(c=a-o,u=s>.5?c/(2-a-o):c/(a+o),l=EP(n,r,i,c,a),l=l*60+.5),[l|0,u||0,s]}function Bh(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(Wr)}function Oh(e,t,n){return Bh(C3,e,t,n)}function IP(e,t,n){return Bh(SP,e,t,n)}function _P(e,t,n){return Bh(DP,e,t,n)}function w3(e){return(e%360+360)%360}function $P(e){const t=wP.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?qa(+t[5]):Wr(+t[5]));const i=w3(+t[2]),a=+t[3]/100,o=+t[4]/100;return t[1]==="hwb"?r=IP(i,a,o):t[1]==="hsv"?r=_P(i,a,o):r=Oh(i,a,o),{r:r[0],g:r[1],b:r[2],a:n}}function RP(e,t){var n=Mh(e);n[0]=w3(n[0]+t),n=Oh(n),e.r=n[0],e.g=n[1],e.b=n[2]}function AP(e){if(!e)return;const t=Mh(e),n=t[0],r=O0(t[1]),i=O0(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${fr(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}const N0={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"},V0={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 FP(){const e={},t=Object.keys(V0),n=Object.keys(N0);let r,i,a,o,s;for(r=0;r<t.length;r++){for(o=s=t[r],i=0;i<n.length;i++)a=n[i],s=s.replace(a,N0[a]);a=parseInt(V0[o],16),e[s]=[a>>16&255,a>>8&255,a&255]}return e}let Xs;function TP(e){Xs||(Xs=FP(),Xs.transparent=[0,0,0,0]);const t=Xs[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const PP=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function kP(e){const t=PP.exec(e);let n=255,r,i,a;if(t){if(t[7]!==r){const o=+t[7];n=t[8]?qa(o):Hr(o*255,0,255)}return r=+t[1],i=+t[3],a=+t[5],r=255&(t[2]?qa(r):Hr(r,0,255)),i=255&(t[4]?qa(i):Hr(i,0,255)),a=255&(t[6]?qa(a):Hr(a,0,255)),{r,g:i,b:a,a:n}}}function MP(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${fr(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const zc=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,Ki=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function BP(e,t,n){const r=Ki(fr(e.r)),i=Ki(fr(e.g)),a=Ki(fr(e.b));return{r:Wr(zc(r+n*(Ki(fr(t.r))-r))),g:Wr(zc(i+n*(Ki(fr(t.g))-i))),b:Wr(zc(a+n*(Ki(fr(t.b))-a))),a:e.a+n*(t.a-e.a)}}function Zs(e,t,n){if(e){let r=Mh(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=Oh(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function D3(e,t){return e&&Object.assign(t||{},e)}function L0(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=Wr(e[3]))):(t=D3(e,{r:0,g:0,b:0,a:1}),t.a=Wr(t.a)),t}function OP(e){return e.charAt(0)==="r"?kP(e):$P(e)}class Zo{constructor(t){if(t instanceof Zo)return t;const n=typeof t;let r;n==="object"?r=L0(t):n==="string"&&(r=yP(t)||TP(t)||OP(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=D3(this._rgb);return t&&(t.a=fr(t.a)),t}set rgb(t){this._rgb=L0(t)}rgbString(){return this._valid?MP(this._rgb):void 0}hexString(){return this._valid?CP(this._rgb):void 0}hslString(){return this._valid?AP(this._rgb):void 0}mix(t,n){if(t){const r=this.rgb,i=t.rgb;let a;const o=n===a?.5:n,s=2*o-1,l=r.a-i.a,u=((s*l===-1?s:(s+l)/(1+s*l))+1)/2;a=1-u,r.r=255&u*r.r+a*i.r+.5,r.g=255&u*r.g+a*i.g+.5,r.b=255&u*r.b+a*i.b+.5,r.a=o*r.a+(1-o)*i.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=BP(this._rgb,t._rgb,n)),this}clone(){return new Zo(this.rgb)}alpha(t){return this._rgb.a=Wr(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=ms(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 Zs(this._rgb,2,t),this}darken(t){return Zs(this._rgb,2,-t),this}saturate(t){return Zs(this._rgb,1,t),this}desaturate(t){return Zs(this._rgb,1,-t),this}rotate(t){return RP(this._rgb,t),this}}/*!
167
+ */function ms(e){return e+.5|0}const Hr=(e,t,n)=>Math.max(Math.min(e,n),t);function qa(e){return Hr(ms(e*2.55),0,255)}function Wr(e){return Hr(ms(e*255),0,255)}function fr(e){return Hr(ms(e/2.55)/100,0,1)}function O0(e){return Hr(ms(e*100),0,100)}const bn={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},Qd=[..."0123456789ABCDEF"],pP=e=>Qd[e&15],bP=e=>Qd[(e&240)>>4]+Qd[e&15],Gs=e=>(e&240)>>4===(e&15),vP=e=>Gs(e.r)&&Gs(e.g)&&Gs(e.b)&&Gs(e.a);function yP(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&bn[e[1]]*17,g:255&bn[e[2]]*17,b:255&bn[e[3]]*17,a:t===5?bn[e[4]]*17:255}:(t===7||t===9)&&(n={r:bn[e[1]]<<4|bn[e[2]],g:bn[e[3]]<<4|bn[e[4]],b:bn[e[5]]<<4|bn[e[6]],a:t===9?bn[e[7]]<<4|bn[e[8]]:255})),n}const xP=(e,t)=>e<255?t(e):"";function CP(e){var t=vP(e)?pP:bP;return e?"#"+t(e.r)+t(e.g)+t(e.b)+xP(e.a,t):void 0}const wP=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function C3(e,t,n){const r=t*Math.min(n,1-n),i=(a,o=(a+e/30)%12)=>n-r*Math.max(Math.min(o-3,9-o,1),-1);return[i(0),i(8),i(4)]}function DP(e,t,n){const r=(i,a=(i+e/60)%6)=>n-n*t*Math.max(Math.min(a,4-a,1),0);return[r(5),r(3),r(1)]}function SP(e,t,n){const r=C3(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 EP(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 Mh(e){const n=e.r/255,r=e.g/255,i=e.b/255,a=Math.max(n,r,i),o=Math.min(n,r,i),s=(a+o)/2;let l,u,c;return a!==o&&(c=a-o,u=s>.5?c/(2-a-o):c/(a+o),l=EP(n,r,i,c,a),l=l*60+.5),[l|0,u||0,s]}function Bh(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(Wr)}function Oh(e,t,n){return Bh(C3,e,t,n)}function IP(e,t,n){return Bh(SP,e,t,n)}function _P(e,t,n){return Bh(DP,e,t,n)}function w3(e){return(e%360+360)%360}function $P(e){const t=wP.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?qa(+t[5]):Wr(+t[5]));const i=w3(+t[2]),a=+t[3]/100,o=+t[4]/100;return t[1]==="hwb"?r=IP(i,a,o):t[1]==="hsv"?r=_P(i,a,o):r=Oh(i,a,o),{r:r[0],g:r[1],b:r[2],a:n}}function RP(e,t){var n=Mh(e);n[0]=w3(n[0]+t),n=Oh(n),e.r=n[0],e.g=n[1],e.b=n[2]}function AP(e){if(!e)return;const t=Mh(e),n=t[0],r=O0(t[1]),i=O0(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${fr(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}const N0={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"},V0={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 FP(){const e={},t=Object.keys(V0),n=Object.keys(N0);let r,i,a,o,s;for(r=0;r<t.length;r++){for(o=s=t[r],i=0;i<n.length;i++)a=n[i],s=s.replace(a,N0[a]);a=parseInt(V0[o],16),e[s]=[a>>16&255,a>>8&255,a&255]}return e}let Xs;function TP(e){Xs||(Xs=FP(),Xs.transparent=[0,0,0,0]);const t=Xs[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const PP=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function kP(e){const t=PP.exec(e);let n=255,r,i,a;if(t){if(t[7]!==r){const o=+t[7];n=t[8]?qa(o):Hr(o*255,0,255)}return r=+t[1],i=+t[3],a=+t[5],r=255&(t[2]?qa(r):Hr(r,0,255)),i=255&(t[4]?qa(i):Hr(i,0,255)),a=255&(t[6]?qa(a):Hr(a,0,255)),{r,g:i,b:a,a:n}}}function MP(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${fr(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const zc=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,qi=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function BP(e,t,n){const r=qi(fr(e.r)),i=qi(fr(e.g)),a=qi(fr(e.b));return{r:Wr(zc(r+n*(qi(fr(t.r))-r))),g:Wr(zc(i+n*(qi(fr(t.g))-i))),b:Wr(zc(a+n*(qi(fr(t.b))-a))),a:e.a+n*(t.a-e.a)}}function Zs(e,t,n){if(e){let r=Mh(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=Oh(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function D3(e,t){return e&&Object.assign(t||{},e)}function L0(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=Wr(e[3]))):(t=D3(e,{r:0,g:0,b:0,a:1}),t.a=Wr(t.a)),t}function OP(e){return e.charAt(0)==="r"?kP(e):$P(e)}class Zo{constructor(t){if(t instanceof Zo)return t;const n=typeof t;let r;n==="object"?r=L0(t):n==="string"&&(r=yP(t)||TP(t)||OP(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=D3(this._rgb);return t&&(t.a=fr(t.a)),t}set rgb(t){this._rgb=L0(t)}rgbString(){return this._valid?MP(this._rgb):void 0}hexString(){return this._valid?CP(this._rgb):void 0}hslString(){return this._valid?AP(this._rgb):void 0}mix(t,n){if(t){const r=this.rgb,i=t.rgb;let a;const o=n===a?.5:n,s=2*o-1,l=r.a-i.a,u=((s*l===-1?s:(s+l)/(1+s*l))+1)/2;a=1-u,r.r=255&u*r.r+a*i.r+.5,r.g=255&u*r.g+a*i.g+.5,r.b=255&u*r.b+a*i.b+.5,r.a=o*r.a+(1-o)*i.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=BP(this._rgb,t._rgb,n)),this}clone(){return new Zo(this.rgb)}alpha(t){return this._rgb.a=Wr(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=ms(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 Zs(this._rgb,2,t),this}darken(t){return Zs(this._rgb,2,-t),this}saturate(t){return Zs(this._rgb,1,t),this}desaturate(t){return Zs(this._rgb,1,-t),this}rotate(t){return RP(this._rgb,t),this}}/*!
168
168
  * Chart.js v4.4.3
169
169
  * https://www.chartjs.org
170
170
  * (c) 2024 Chart.js Contributors
171
171
  * Released under the MIT License
172
- */function lr(){}const NP=(()=>{let e=0;return()=>e++})();function at(e){return e===null||typeof e>"u"}function Ct(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 ke(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function En(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function Hn(e,t){return En(e)?e:t}function Re(e,t){return typeof e>"u"?t:e}const VP=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,S3=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function Ue(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function Ge(e,t,n,r){let i,a,o;if(Ct(e))for(a=e.length,i=0;i<a;i++)t.call(n,e[i],i);else if(ke(e))for(o=Object.keys(e),a=o.length,i=0;i<a;i++)t.call(n,e[o[i]],o[i])}function ou(e,t){let n,r,i,a;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(i=e[n],a=t[n],i.datasetIndex!==a.datasetIndex||i.index!==a.index)return!1;return!0}function su(e){if(Ct(e))return e.map(su);if(ke(e)){const t=Object.create(null),n=Object.keys(e),r=n.length;let i=0;for(;i<r;++i)t[n[i]]=su(e[n[i]]);return t}return e}function E3(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function LP(e,t,n,r){if(!E3(e))return;const i=t[e],a=n[e];ke(i)&&ke(a)?Yo(i,a,r):t[e]=su(a)}function Yo(e,t,n){const r=Ct(t)?t:[t],i=r.length;if(!ke(e))return e;n=n||{};const a=n.merger||LP;let o;for(let s=0;s<i;++s){if(o=r[s],!ke(o))continue;const l=Object.keys(o);for(let u=0,c=l.length;u<c;++u)a(l[u],e,o,n)}return e}function co(e,t){return Yo(e,t,{merger:HP})}function HP(e,t,n){if(!E3(e))return;const r=t[e],i=n[e];ke(r)&&ke(i)?co(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=su(i))}const H0={"":e=>e,x:e=>e.x,y:e=>e.y};function jP(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 WP(e){const t=jP(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function Uo(e,t){return(H0[t]||(H0[t]=WP(t)))(e)}function Nh(e){return e.charAt(0).toUpperCase()+e.slice(1)}const lu=e=>typeof e<"u",Ur=e=>typeof e=="function",j0=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function zP(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const lt=Math.PI,ot=2*lt,GP=ot+lt,uu=Number.POSITIVE_INFINITY,XP=lt/180,bt=lt/2,ai=lt/4,W0=lt*2/3,I3=Math.log10,Ea=Math.sign;function fo(e,t,n){return Math.abs(e-t)<n}function z0(e){const t=Math.round(e);e=fo(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(I3(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function ZP(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,a)=>i-a).pop(),t}function Jo(e){return!isNaN(parseFloat(e))&&isFinite(e)}function YP(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function UP(e,t,n){let r,i,a;for(r=0,i=e.length;r<i;r++)a=e[r][n],isNaN(a)||(t.min=Math.min(t.min,a),t.max=Math.max(t.max,a))}function xr(e){return e*(lt/180)}function JP(e){return e*(180/lt)}function G0(e){if(!En(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function _3(e,t){const n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r);let a=Math.atan2(r,n);return a<-.5*lt&&(a+=ot),{angle:a,distance:i}}function ef(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function KP(e,t){return(e-t+GP)%ot-lt}function kr(e){return(e%ot+ot)%ot}function Ko(e,t,n,r){const i=kr(e),a=kr(t),o=kr(n),s=kr(a-i),l=kr(o-i),u=kr(i-a),c=kr(i-o);return i===a||i===o||r&&a===o||s>l&&u<c}function Vt(e,t,n){return Math.max(t,Math.min(n,e))}function qP(e){return Vt(e,-32768,32767)}function ia(e,t,n,r=1e-6){return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function Vh(e,t,n){n=n||(o=>e[o]<t);let r=e.length-1,i=0,a;for(;r-i>1;)a=i+r>>1,n(a)?i=a:r=a;return{lo:i,hi:r}}const Ci=(e,t,n,r)=>Vh(e,n,r?i=>{const a=e[i][t];return a<n||a===n&&e[i+1][t]===n}:i=>e[i][t]<n),QP=(e,t,n)=>Vh(e,n,r=>e[r][t]>=n);function ek(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 $3=["push","pop","shift","splice","unshift"];function tk(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),$3.forEach(n=>{const r="_onData"+Nh(n),i=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...a){const o=i.apply(this,a);return e._chartjs.listeners.forEach(s=>{typeof s[r]=="function"&&s[r](...a)}),o}})})}function X0(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)&&($3.forEach(a=>{delete e[a]}),delete e._chartjs)}function nk(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const R3=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function A3(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,R3.call(window,()=>{r=!1,e.apply(t,n)}))}}function rk(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const Lh=e=>e==="start"?"left":e==="end"?"right":"center",Rt=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,ik=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t;function ak(e,t,n){const r=t.length;let i=0,a=r;if(e._sorted){const{iScale:o,_parsed:s}=e,l=o.axis,{min:u,max:c,minDefined:d,maxDefined:h}=o.getUserBounds();d&&(i=Vt(Math.min(Ci(s,l,u).lo,n?r:Ci(t,l,o.getPixelForValue(u)).lo),0,r-1)),h?a=Vt(Math.max(Ci(s,o.axis,c,!0).hi+1,n?0:Ci(t,l,o.getPixelForValue(c),!0).hi+1),i,r)-i:a=r-i}return{start:i,count:a}}function ok(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 a=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),a}const Ys=e=>e===0||e===1,Z0=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*ot/n)),Y0=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*ot/n)+1,ho={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*bt)+1,easeOutSine:e=>Math.sin(e*bt),easeInOutSine:e=>-.5*(Math.cos(lt*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=>Ys(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=>Ys(e)?e:Z0(e,.075,.3),easeOutElastic:e=>Ys(e)?e:Y0(e,.075,.3),easeInOutElastic(e){return Ys(e)?e:e<.5?.5*Z0(e*2,.1125,.45):.5+.5*Y0(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-ho.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?ho.easeInBounce(e*2)*.5:ho.easeOutBounce(e*2-1)*.5+.5};function Hh(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function U0(e){return Hh(e)?e:new Zo(e)}function Gc(e){return Hh(e)?e:new Zo(e).saturate(.5).darken(.1).hexString()}const sk=["x","y","borderWidth","radius","tension"],lk=["color","borderColor","backgroundColor"];function uk(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:lk},numbers:{type:"number",properties:sk}}),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 ck(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const J0=new Map;function dk(e,t){t=t||{};const n=e+JSON.stringify(t);let r=J0.get(n);return r||(r=new Intl.NumberFormat(e,t),J0.set(n,r)),r}function jh(e,t,n){return dk(t,n).format(e)}const fk={values(e){return Ct(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const r=this.chart.options.locale;let i,a=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"),a=hk(e,n)}const o=I3(Math.abs(a)),s=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),l={notation:i,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),jh(e,r,l)}};function hk(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 F3={formatters:fk};function gk(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:F3.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 Pi=Object.create(null),tf=Object.create(null);function go(e,t){if(!t)return e;const n=t.split(".");for(let r=0,i=n.length;r<i;++r){const a=n[r];e=e[a]||(e[a]=Object.create(null))}return e}function Xc(e,t,n){return typeof t=="string"?Yo(go(e,t),n):Yo(go(e,""),t)}class mk{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)=>Gc(i.backgroundColor),this.hoverBorderColor=(r,i)=>Gc(i.borderColor),this.hoverColor=(r,i)=>Gc(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 Xc(this,t,n)}get(t){return go(this,t)}describe(t,n){return Xc(tf,t,n)}override(t,n){return Xc(Pi,t,n)}route(t,n,r,i){const a=go(this,t),o=go(this,r),s="_"+n;Object.defineProperties(a,{[s]:{value:a[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[s],u=o[i];return ke(l)?Object.assign({},u,l):Re(l,u)},set(l){this[s]=l}}})}apply(t){t.forEach(n=>n(this))}}var ft=new mk({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[uk,ck,gk]);function pk(e){return!e||at(e.size)||at(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function K0(e,t,n,r,i){let a=t[i];return a||(a=t[i]=e.measureText(i).width,n.push(i)),a>r&&(r=a),r}function oi(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 q0(e,t){!t&&!e||(t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function nf(e,t,n,r){T3(e,t,n,r,null)}function T3(e,t,n,r,i){let a,o,s,l,u,c,d,h;const f=t.pointStyle,g=t.rotation,p=t.radius;let b=(g||0)*XP;if(f&&typeof f=="object"&&(a=f.toString(),a==="[object HTMLImageElement]"||a==="[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(p)||p<=0)){switch(e.beginPath(),f){default:i?e.ellipse(n,r,i/2,p,0,0,ot):e.arc(n,r,p,0,ot),e.closePath();break;case"triangle":c=i?i/2:p,e.moveTo(n+Math.sin(b)*c,r-Math.cos(b)*p),b+=W0,e.lineTo(n+Math.sin(b)*c,r-Math.cos(b)*p),b+=W0,e.lineTo(n+Math.sin(b)*c,r-Math.cos(b)*p),e.closePath();break;case"rectRounded":u=p*.516,l=p-u,o=Math.cos(b+ai)*l,d=Math.cos(b+ai)*(i?i/2-u:l),s=Math.sin(b+ai)*l,h=Math.sin(b+ai)*(i?i/2-u:l),e.arc(n-d,r-s,u,b-lt,b-bt),e.arc(n+h,r-o,u,b-bt,b),e.arc(n+d,r+s,u,b,b+bt),e.arc(n-h,r+o,u,b+bt,b+lt),e.closePath();break;case"rect":if(!g){l=Math.SQRT1_2*p,c=i?i/2:l,e.rect(n-c,r-l,2*c,2*l);break}b+=ai;case"rectRot":d=Math.cos(b)*(i?i/2:p),o=Math.cos(b)*p,s=Math.sin(b)*p,h=Math.sin(b)*(i?i/2:p),e.moveTo(n-d,r-s),e.lineTo(n+h,r-o),e.lineTo(n+d,r+s),e.lineTo(n-h,r+o),e.closePath();break;case"crossRot":b+=ai;case"cross":d=Math.cos(b)*(i?i/2:p),o=Math.cos(b)*p,s=Math.sin(b)*p,h=Math.sin(b)*(i?i/2:p),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+h,r-o),e.lineTo(n-h,r+o);break;case"star":d=Math.cos(b)*(i?i/2:p),o=Math.cos(b)*p,s=Math.sin(b)*p,h=Math.sin(b)*(i?i/2:p),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+h,r-o),e.lineTo(n-h,r+o),b+=ai,d=Math.cos(b)*(i?i/2:p),o=Math.cos(b)*p,s=Math.sin(b)*p,h=Math.sin(b)*(i?i/2:p),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+h,r-o),e.lineTo(n-h,r+o);break;case"line":o=i?i/2:Math.cos(b)*p,s=Math.sin(b)*p,e.moveTo(n-o,r-s),e.lineTo(n+o,r+s);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(b)*(i?i/2:p),r+Math.sin(b)*p);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function qo(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 Wh(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function zh(e){e.restore()}function bk(e,t,n,r,i){if(!t)return e.lineTo(n.x,n.y);if(i==="middle"){const a=(t.x+n.x)/2;e.lineTo(a,t.y),e.lineTo(a,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 yk(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),at(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 xk(e,t,n,r,i){if(i.strikethrough||i.underline){const a=e.measureText(r),o=t-a.actualBoundingBoxLeft,s=t+a.actualBoundingBoxRight,l=n-a.actualBoundingBoxAscent,u=n+a.actualBoundingBoxDescent,c=i.strikethrough?(l+u)/2:u;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(o,c),e.lineTo(s,c),e.stroke()}}function Ck(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function Qo(e,t,n,r,i,a={}){const o=Ct(t)?t:[t],s=a.strokeWidth>0&&a.strokeColor!=="";let l,u;for(e.save(),e.font=i.string,yk(e,a),l=0;l<o.length;++l)u=o[l],a.backdrop&&Ck(e,a.backdrop),s&&(a.strokeColor&&(e.strokeStyle=a.strokeColor),at(a.strokeWidth)||(e.lineWidth=a.strokeWidth),e.strokeText(u,n,r,a.maxWidth)),e.fillText(u,n,r,a.maxWidth),xk(e,n,r,u,a),r+=Number(i.lineHeight);e.restore()}function rf(e,t){const{x:n,y:r,w:i,h:a,radius:o}=t;e.arc(n+o.topLeft,r+o.topLeft,o.topLeft,1.5*lt,lt,!0),e.lineTo(n,r+a-o.bottomLeft),e.arc(n+o.bottomLeft,r+a-o.bottomLeft,o.bottomLeft,lt,bt,!0),e.lineTo(n+i-o.bottomRight,r+a),e.arc(n+i-o.bottomRight,r+a-o.bottomRight,o.bottomRight,bt,0,!0),e.lineTo(n+i,r+o.topRight),e.arc(n+i-o.topRight,r+o.topRight,o.topRight,0,-bt,!0),e.lineTo(n+o.topLeft,r)}const wk=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,Dk=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function Sk(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 Ek=e=>+e||0;function Gh(e,t){const n={},r=ke(t),i=r?Object.keys(t):t,a=ke(e)?r?o=>Re(e[o],e[t[o]]):o=>e[o]:()=>e;for(const o of i)n[o]=Ek(a(o));return n}function Ik(e){return Gh(e,{top:"y",right:"x",bottom:"y",left:"x"})}function mo(e){return Gh(e,["topLeft","topRight","bottomLeft","bottomRight"])}function In(e){const t=Ik(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Pt(e,t){e=e||{},t=t||ft.font;let n=Re(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=Re(e.style,t.style);r&&!(""+r).match(Dk)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:Re(e.family,t.family),lineHeight:Sk(Re(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:Re(e.weight,t.weight),string:""};return i.string=pk(i),i}function Us(e,t,n,r){let i,a,o;for(i=0,a=e.length;i<a;++i)if(o=e[i],o!==void 0&&o!==void 0)return o}function _k(e,t,n){const{min:r,max:i}=e,a=S3(t,(i-r)/2),o=(s,l)=>n&&s===0?0:s+l;return{min:o(r,-Math.abs(a)),max:o(i,a)}}function Ni(e,t){return Object.assign(Object.create(e),t)}function Xh(e,t=[""],n,r,i=()=>e[0]){const a=n||e;typeof r>"u"&&(r=B3("_fallback",e));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:a,_fallback:r,_getTarget:i,override:s=>Xh([s,...e],t,a,r)};return new Proxy(o,{deleteProperty(s,l){return delete s[l],delete s._keys,delete e[0][l],!0},get(s,l){return k3(s,l,()=>Mk(l,t,e,s))},getOwnPropertyDescriptor(s,l){return Reflect.getOwnPropertyDescriptor(s._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(s,l){return ep(s).includes(l)},ownKeys(s){return ep(s)},set(s,l,u){const c=s._storage||(s._storage=i());return s[l]=c[l]=u,delete s._keys,!0}})}function Ia(e,t,n,r){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:P3(e,r),setContext:a=>Ia(e,a,n,r),override:a=>Ia(e.override(a),t,n,r)};return new Proxy(i,{deleteProperty(a,o){return delete a[o],delete e[o],!0},get(a,o,s){return k3(a,o,()=>Rk(a,o,s))},getOwnPropertyDescriptor(a,o){return a._descriptors.allKeys?Reflect.has(e,o)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,o)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(a,o){return Reflect.has(e,o)},ownKeys(){return Reflect.ownKeys(e)},set(a,o,s){return e[o]=s,delete a[o],!0}})}function P3(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:Ur(n)?n:()=>n,isIndexable:Ur(r)?r:()=>r}}const $k=(e,t)=>e?e+Nh(t):t,Zh=(e,t)=>ke(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function k3(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||t==="constructor")return e[t];const r=n();return e[t]=r,r}function Rk(e,t,n){const{_proxy:r,_context:i,_subProxy:a,_descriptors:o}=e;let s=r[t];return Ur(s)&&o.isScriptable(t)&&(s=Ak(t,s,e,n)),Ct(s)&&s.length&&(s=Fk(t,s,e,o.isIndexable)),Zh(t,s)&&(s=Ia(s,i,a&&a[t],o)),s}function Ak(e,t,n,r){const{_proxy:i,_context:a,_subProxy:o,_stack:s}=n;if(s.has(e))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e);let l=t(a,o||r);return s.delete(e),Zh(e,l)&&(l=Yh(i._scopes,i,e,l)),l}function Fk(e,t,n,r){const{_proxy:i,_context:a,_subProxy:o,_descriptors:s}=n;if(typeof a.index<"u"&&r(e))return t[a.index%t.length];if(ke(t[0])){const l=t,u=i._scopes.filter(c=>c!==l);t=[];for(const c of l){const d=Yh(u,i,e,c);t.push(Ia(d,a,o&&o[e],s))}}return t}function M3(e,t,n){return Ur(e)?e(t,n):e}const Tk=(e,t)=>e===!0?t:typeof e=="string"?Uo(t,e):void 0;function Pk(e,t,n,r,i){for(const a of t){const o=Tk(n,a);if(o){e.add(o);const s=M3(o._fallback,n,i);if(typeof s<"u"&&s!==n&&s!==r)return s}else if(o===!1&&typeof r<"u"&&n!==r)return null}return!1}function Yh(e,t,n,r){const i=t._rootScopes,a=M3(t._fallback,n,r),o=[...e,...i],s=new Set;s.add(r);let l=Q0(s,o,n,a||n,r);return l===null||typeof a<"u"&&a!==n&&(l=Q0(s,o,a,l,r),l===null)?!1:Xh(Array.from(s),[""],i,a,()=>kk(t,n,r))}function Q0(e,t,n,r,i){for(;n;)n=Pk(e,t,n,r,i);return n}function kk(e,t,n){const r=e._getTarget();t in r||(r[t]={});const i=r[t];return Ct(i)&&ke(n)?n:i||{}}function Mk(e,t,n,r){let i;for(const a of t)if(i=B3($k(a,e),n),typeof i<"u")return Zh(e,i)?Yh(n,r,e,i):i}function B3(e,t){for(const n of t){if(!n)continue;const r=n[e];if(typeof r<"u")return r}}function ep(e){let t=e._keys;return t||(t=e._keys=Bk(e._scopes)),t}function Bk(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 Ok=Number.EPSILON||1e-14,_a=(e,t)=>t<e.length&&!e[t].skip&&e[t],O3=e=>e==="x"?"y":"x";function Nk(e,t,n,r){const i=e.skip?t:e,a=t,o=n.skip?t:n,s=ef(a,i),l=ef(o,a);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:a.x-d*(o.x-i.x),y:a.y-d*(o.y-i.y)},next:{x:a.x+h*(o.x-i.x),y:a.y+h*(o.y-i.y)}}}function Vk(e,t,n){const r=e.length;let i,a,o,s,l,u=_a(e,0);for(let c=0;c<r-1;++c)if(l=u,u=_a(e,c+1),!(!l||!u)){if(fo(t[c],0,Ok)){n[c]=n[c+1]=0;continue}i=n[c]/t[c],a=n[c+1]/t[c],s=Math.pow(i,2)+Math.pow(a,2),!(s<=9)&&(o=3/Math.sqrt(s),n[c]=i*o*t[c],n[c+1]=a*o*t[c])}}function Lk(e,t,n="x"){const r=O3(n),i=e.length;let a,o,s,l=_a(e,0);for(let u=0;u<i;++u){if(o=s,s=l,l=_a(e,u+1),!s)continue;const c=s[n],d=s[r];o&&(a=(c-o[n])/3,s[`cp1${n}`]=c-a,s[`cp1${r}`]=d-a*t[u]),l&&(a=(l[n]-c)/3,s[`cp2${n}`]=c+a,s[`cp2${r}`]=d+a*t[u])}}function Hk(e,t="x"){const n=O3(t),r=e.length,i=Array(r).fill(0),a=Array(r);let o,s,l,u=_a(e,0);for(o=0;o<r;++o)if(s=l,l=u,u=_a(e,o+1),!!l){if(u){const c=u[t]-l[t];i[o]=c!==0?(u[n]-l[n])/c:0}a[o]=s?u?Ea(i[o-1])!==Ea(i[o])?0:(i[o-1]+i[o])/2:i[o-1]:i[o]}Vk(e,i,a),Lk(e,a,t)}function Js(e,t,n){return Math.max(Math.min(e,n),t)}function jk(e,t){let n,r,i,a,o,s=qo(e[0],t);for(n=0,r=e.length;n<r;++n)o=a,a=s,s=n<r-1&&qo(e[n+1],t),a&&(i=e[n],o&&(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 Wk(e,t,n,r,i){let a,o,s,l;if(t.spanGaps&&(e=e.filter(u=>!u.skip)),t.cubicInterpolationMode==="monotone")Hk(e,i);else{let u=r?e[e.length-1]:e[0];for(a=0,o=e.length;a<o;++a)s=e[a],l=Nk(u,s,e[Math.min(a+1,o-(r?0:1))%o],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&&jk(e,n)}function Uh(){return typeof window<"u"&&typeof document<"u"}function Jh(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function cu(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 zu=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function zk(e,t){return zu(e).getPropertyValue(t)}const Gk=["top","right","bottom","left"];function Ei(e,t,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const a=Gk[i];r[a]=parseFloat(e[t+"-"+a+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const Xk=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function Zk(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:a}=r;let o=!1,s,l;if(Xk(i,a,e.target))s=i,l=a;else{const u=t.getBoundingClientRect();s=r.clientX-u.left,l=r.clientY-u.top,o=!0}return{x:s,y:l,box:o}}function di(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,i=zu(n),a=i.boxSizing==="border-box",o=Ei(i,"padding"),s=Ei(i,"border","width"),{x:l,y:u,box:c}=Zk(e,n),d=o.left+(c&&s.left),h=o.top+(c&&s.top);let{width:f,height:g}=t;return a&&(f-=o.width+s.width,g-=o.height+s.height),{x:Math.round((l-d)/f*n.width/r),y:Math.round((u-h)/g*n.height/r)}}function Yk(e,t,n){let r,i;if(t===void 0||n===void 0){const a=e&&Jh(e);if(!a)t=e.clientWidth,n=e.clientHeight;else{const o=a.getBoundingClientRect(),s=zu(a),l=Ei(s,"border","width"),u=Ei(s,"padding");t=o.width-u.width-l.width,n=o.height-u.height-l.height,r=cu(s.maxWidth,a,"clientWidth"),i=cu(s.maxHeight,a,"clientHeight")}}return{width:t,height:n,maxWidth:r||uu,maxHeight:i||uu}}const Ks=e=>Math.round(e*10)/10;function Uk(e,t,n,r){const i=zu(e),a=Ei(i,"margin"),o=cu(i.maxWidth,e,"clientWidth")||uu,s=cu(i.maxHeight,e,"clientHeight")||uu,l=Yk(e,t,n);let{width:u,height:c}=l;if(i.boxSizing==="content-box"){const h=Ei(i,"border","width"),f=Ei(i,"padding");u-=f.width+h.width,c-=f.height+h.height}return u=Math.max(0,u-a.width),c=Math.max(0,r?u/r:c-a.height),u=Ks(Math.min(u,o,l.maxWidth)),c=Ks(Math.min(c,s,l.maxHeight)),u&&!c&&(c=Ks(u/2)),(t!==void 0||n!==void 0)&&r&&l.height&&c>l.height&&(c=l.height,u=Ks(Math.floor(c*r))),{width:u,height:c}}function tp(e,t,n){const r=t||1,i=Math.floor(e.height*r),a=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const o=e.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${e.height}px`,o.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||o.height!==i||o.width!==a?(e.currentDevicePixelRatio=r,o.height=i,o.width=a,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const Jk=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};Uh()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e}();function np(e,t){const n=zk(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function fi(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function Kk(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 qk(e,t,n,r){const i={x:e.cp2x,y:e.cp2y},a={x:t.cp1x,y:t.cp1y},o=fi(e,i,n),s=fi(i,a,n),l=fi(a,t,n),u=fi(o,s,n),c=fi(s,l,n);return fi(u,c,n)}const Qk=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}}},eM=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function ga(e,t,n){return e?Qk(t,n):eM()}function N3(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 V3(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function L3(e){return e==="angle"?{between:Ko,compare:KP,normalize:kr}:{between:ia,compare:(t,n)=>t-n,normalize:t=>t}}function rp({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 tM(e,t,n){const{property:r,start:i,end:a}=n,{between:o,normalize:s}=L3(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&&o(s(t[u%l][r]),i,a);++h)u--,c--;u%=l,c%=l}return c<u&&(c+=l),{start:u,end:c,loop:d,style:e.style}}function nM(e,t,n){if(!n)return[e];const{property:r,start:i,end:a}=n,o=t.length,{compare:s,between:l,normalize:u}=L3(r),{start:c,end:d,loop:h,style:f}=tM(e,t,n),g=[];let p=!1,b=null,v,y,x;const S=()=>l(i,x,v)&&s(i,x)!==0,D=()=>s(a,v)===0||l(a,x,v),$=()=>p||S(),F=()=>!p||D();for(let m=c,C=c;m<=d;++m)y=t[m%o],!y.skip&&(v=u(y[r]),v!==x&&(p=l(v,i,a),b===null&&$()&&(b=s(v,i)===0?m:C),b!==null&&F()&&(g.push(rp({start:b,end:m,loop:h,count:o,style:f})),b=null),C=m,x=v));return b!==null&&g.push(rp({start:b,end:d,loop:h,count:o,style:f})),g}function rM(e,t){const n=[],r=e.segments;for(let i=0;i<r.length;i++){const a=nM(r[i],e.points,t);a.length&&n.push(...a)}return n}function iM(e,t,n,r){let i=0,a=t-1;if(n&&!r)for(;i<t&&!e[i].skip;)i++;for(;i<t&&e[i].skip;)i++;for(i%=t,n&&(a+=i);a>i&&e[a%t].skip;)a--;return a%=t,{start:i,end:a}}function aM(e,t,n,r){const i=e.length,a=[];let o=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,a.push({start:t%i,end:(l-1)%i,loop:r}),t=o=u.stop?l:null):(o=l,s.skip&&(t=l)),s=u}return o!==null&&a.push({start:t%i,end:o%i,loop:r}),a}function oM(e,t){const n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];const a=!!e._loop,{start:o,end:s}=iM(n,i,a,r);if(r===!0)return ip(e,[{start:o,end:s,loop:a}],n,t);const l=s<o?s+i:s,u=!!e._fullLoop&&o===0&&s===i-1;return ip(e,aM(n,o,l,u),n,t)}function ip(e,t,n,r){return!r||!r.setContext||!n?t:sM(e,t,n,r)}function sM(e,t,n,r){const i=e._chart.getContext(),a=ap(e.options),{_datasetIndex:o,options:{spanGaps:s}}=e,l=n.length,u=[];let c=a,d=t[0].start,h=d;function f(g,p,b,v){const y=s?-1:1;if(g!==p){for(g+=l;n[g%l].skip;)g-=y;for(;n[p%l].skip;)p+=y;g%l!==p%l&&(u.push({start:g%l,end:p%l,loop:b,style:v}),c=v,d=p%l)}}for(const g of t){d=s?d:g.start;let p=n[d%l],b;for(h=d+1;h<=g.end;h++){const v=n[h%l];b=ap(r.setContext(Ni(i,{type:"segment",p0:p,p1:v,p0DataIndex:(h-1)%l,p1DataIndex:h%l,datasetIndex:o}))),lM(b,c)&&f(d,h-1,g.loop,c),p=v,c=b}d<h-1&&f(d,h-1,g.loop,c)}return u}function ap(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function lM(e,t){if(!t)return!1;const n=[],r=function(i,a){return Hh(a)?(n.includes(a)||n.push(a),n.indexOf(a)):a};return JSON.stringify(e,r)!==JSON.stringify(t,r)}/*!
172
+ */function lr(){}const NP=(()=>{let e=0;return()=>e++})();function at(e){return e===null||typeof e>"u"}function Ct(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 ke(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function En(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function Hn(e,t){return En(e)?e:t}function Re(e,t){return typeof e>"u"?t:e}const VP=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,S3=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function Ue(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function Ge(e,t,n,r){let i,a,o;if(Ct(e))for(a=e.length,i=0;i<a;i++)t.call(n,e[i],i);else if(ke(e))for(o=Object.keys(e),a=o.length,i=0;i<a;i++)t.call(n,e[o[i]],o[i])}function ou(e,t){let n,r,i,a;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(i=e[n],a=t[n],i.datasetIndex!==a.datasetIndex||i.index!==a.index)return!1;return!0}function su(e){if(Ct(e))return e.map(su);if(ke(e)){const t=Object.create(null),n=Object.keys(e),r=n.length;let i=0;for(;i<r;++i)t[n[i]]=su(e[n[i]]);return t}return e}function E3(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function LP(e,t,n,r){if(!E3(e))return;const i=t[e],a=n[e];ke(i)&&ke(a)?Yo(i,a,r):t[e]=su(a)}function Yo(e,t,n){const r=Ct(t)?t:[t],i=r.length;if(!ke(e))return e;n=n||{};const a=n.merger||LP;let o;for(let s=0;s<i;++s){if(o=r[s],!ke(o))continue;const l=Object.keys(o);for(let u=0,c=l.length;u<c;++u)a(l[u],e,o,n)}return e}function co(e,t){return Yo(e,t,{merger:HP})}function HP(e,t,n){if(!E3(e))return;const r=t[e],i=n[e];ke(r)&&ke(i)?co(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=su(i))}const H0={"":e=>e,x:e=>e.x,y:e=>e.y};function jP(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 WP(e){const t=jP(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function Uo(e,t){return(H0[t]||(H0[t]=WP(t)))(e)}function Nh(e){return e.charAt(0).toUpperCase()+e.slice(1)}const lu=e=>typeof e<"u",Ur=e=>typeof e=="function",j0=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function zP(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const lt=Math.PI,ot=2*lt,GP=ot+lt,uu=Number.POSITIVE_INFINITY,XP=lt/180,bt=lt/2,ai=lt/4,W0=lt*2/3,I3=Math.log10,Ea=Math.sign;function fo(e,t,n){return Math.abs(e-t)<n}function z0(e){const t=Math.round(e);e=fo(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(I3(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function ZP(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,a)=>i-a).pop(),t}function Jo(e){return!isNaN(parseFloat(e))&&isFinite(e)}function YP(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function UP(e,t,n){let r,i,a;for(r=0,i=e.length;r<i;r++)a=e[r][n],isNaN(a)||(t.min=Math.min(t.min,a),t.max=Math.max(t.max,a))}function xr(e){return e*(lt/180)}function JP(e){return e*(180/lt)}function G0(e){if(!En(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function _3(e,t){const n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r);let a=Math.atan2(r,n);return a<-.5*lt&&(a+=ot),{angle:a,distance:i}}function ef(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function KP(e,t){return(e-t+GP)%ot-lt}function kr(e){return(e%ot+ot)%ot}function Ko(e,t,n,r){const i=kr(e),a=kr(t),o=kr(n),s=kr(a-i),l=kr(o-i),u=kr(i-a),c=kr(i-o);return i===a||i===o||r&&a===o||s>l&&u<c}function Vt(e,t,n){return Math.max(t,Math.min(n,e))}function qP(e){return Vt(e,-32768,32767)}function aa(e,t,n,r=1e-6){return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function Vh(e,t,n){n=n||(o=>e[o]<t);let r=e.length-1,i=0,a;for(;r-i>1;)a=i+r>>1,n(a)?i=a:r=a;return{lo:i,hi:r}}const Ci=(e,t,n,r)=>Vh(e,n,r?i=>{const a=e[i][t];return a<n||a===n&&e[i+1][t]===n}:i=>e[i][t]<n),QP=(e,t,n)=>Vh(e,n,r=>e[r][t]>=n);function ek(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 $3=["push","pop","shift","splice","unshift"];function tk(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),$3.forEach(n=>{const r="_onData"+Nh(n),i=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...a){const o=i.apply(this,a);return e._chartjs.listeners.forEach(s=>{typeof s[r]=="function"&&s[r](...a)}),o}})})}function X0(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)&&($3.forEach(a=>{delete e[a]}),delete e._chartjs)}function nk(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const R3=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function A3(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,R3.call(window,()=>{r=!1,e.apply(t,n)}))}}function rk(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const Lh=e=>e==="start"?"left":e==="end"?"right":"center",Rt=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,ik=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t;function ak(e,t,n){const r=t.length;let i=0,a=r;if(e._sorted){const{iScale:o,_parsed:s}=e,l=o.axis,{min:u,max:c,minDefined:d,maxDefined:h}=o.getUserBounds();d&&(i=Vt(Math.min(Ci(s,l,u).lo,n?r:Ci(t,l,o.getPixelForValue(u)).lo),0,r-1)),h?a=Vt(Math.max(Ci(s,o.axis,c,!0).hi+1,n?0:Ci(t,l,o.getPixelForValue(c),!0).hi+1),i,r)-i:a=r-i}return{start:i,count:a}}function ok(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 a=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),a}const Ys=e=>e===0||e===1,Z0=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*ot/n)),Y0=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*ot/n)+1,ho={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*bt)+1,easeOutSine:e=>Math.sin(e*bt),easeInOutSine:e=>-.5*(Math.cos(lt*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=>Ys(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=>Ys(e)?e:Z0(e,.075,.3),easeOutElastic:e=>Ys(e)?e:Y0(e,.075,.3),easeInOutElastic(e){return Ys(e)?e:e<.5?.5*Z0(e*2,.1125,.45):.5+.5*Y0(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-ho.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?ho.easeInBounce(e*2)*.5:ho.easeOutBounce(e*2-1)*.5+.5};function Hh(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function U0(e){return Hh(e)?e:new Zo(e)}function Gc(e){return Hh(e)?e:new Zo(e).saturate(.5).darken(.1).hexString()}const sk=["x","y","borderWidth","radius","tension"],lk=["color","borderColor","backgroundColor"];function uk(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:lk},numbers:{type:"number",properties:sk}}),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 ck(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const J0=new Map;function dk(e,t){t=t||{};const n=e+JSON.stringify(t);let r=J0.get(n);return r||(r=new Intl.NumberFormat(e,t),J0.set(n,r)),r}function jh(e,t,n){return dk(t,n).format(e)}const fk={values(e){return Ct(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const r=this.chart.options.locale;let i,a=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"),a=hk(e,n)}const o=I3(Math.abs(a)),s=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),l={notation:i,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),jh(e,r,l)}};function hk(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 F3={formatters:fk};function gk(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:F3.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 ki=Object.create(null),tf=Object.create(null);function go(e,t){if(!t)return e;const n=t.split(".");for(let r=0,i=n.length;r<i;++r){const a=n[r];e=e[a]||(e[a]=Object.create(null))}return e}function Xc(e,t,n){return typeof t=="string"?Yo(go(e,t),n):Yo(go(e,""),t)}class mk{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)=>Gc(i.backgroundColor),this.hoverBorderColor=(r,i)=>Gc(i.borderColor),this.hoverColor=(r,i)=>Gc(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 Xc(this,t,n)}get(t){return go(this,t)}describe(t,n){return Xc(tf,t,n)}override(t,n){return Xc(ki,t,n)}route(t,n,r,i){const a=go(this,t),o=go(this,r),s="_"+n;Object.defineProperties(a,{[s]:{value:a[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[s],u=o[i];return ke(l)?Object.assign({},u,l):Re(l,u)},set(l){this[s]=l}}})}apply(t){t.forEach(n=>n(this))}}var ft=new mk({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[uk,ck,gk]);function pk(e){return!e||at(e.size)||at(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function K0(e,t,n,r,i){let a=t[i];return a||(a=t[i]=e.measureText(i).width,n.push(i)),a>r&&(r=a),r}function oi(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 q0(e,t){!t&&!e||(t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function nf(e,t,n,r){T3(e,t,n,r,null)}function T3(e,t,n,r,i){let a,o,s,l,u,c,d,h;const f=t.pointStyle,g=t.rotation,p=t.radius;let b=(g||0)*XP;if(f&&typeof f=="object"&&(a=f.toString(),a==="[object HTMLImageElement]"||a==="[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(p)||p<=0)){switch(e.beginPath(),f){default:i?e.ellipse(n,r,i/2,p,0,0,ot):e.arc(n,r,p,0,ot),e.closePath();break;case"triangle":c=i?i/2:p,e.moveTo(n+Math.sin(b)*c,r-Math.cos(b)*p),b+=W0,e.lineTo(n+Math.sin(b)*c,r-Math.cos(b)*p),b+=W0,e.lineTo(n+Math.sin(b)*c,r-Math.cos(b)*p),e.closePath();break;case"rectRounded":u=p*.516,l=p-u,o=Math.cos(b+ai)*l,d=Math.cos(b+ai)*(i?i/2-u:l),s=Math.sin(b+ai)*l,h=Math.sin(b+ai)*(i?i/2-u:l),e.arc(n-d,r-s,u,b-lt,b-bt),e.arc(n+h,r-o,u,b-bt,b),e.arc(n+d,r+s,u,b,b+bt),e.arc(n-h,r+o,u,b+bt,b+lt),e.closePath();break;case"rect":if(!g){l=Math.SQRT1_2*p,c=i?i/2:l,e.rect(n-c,r-l,2*c,2*l);break}b+=ai;case"rectRot":d=Math.cos(b)*(i?i/2:p),o=Math.cos(b)*p,s=Math.sin(b)*p,h=Math.sin(b)*(i?i/2:p),e.moveTo(n-d,r-s),e.lineTo(n+h,r-o),e.lineTo(n+d,r+s),e.lineTo(n-h,r+o),e.closePath();break;case"crossRot":b+=ai;case"cross":d=Math.cos(b)*(i?i/2:p),o=Math.cos(b)*p,s=Math.sin(b)*p,h=Math.sin(b)*(i?i/2:p),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+h,r-o),e.lineTo(n-h,r+o);break;case"star":d=Math.cos(b)*(i?i/2:p),o=Math.cos(b)*p,s=Math.sin(b)*p,h=Math.sin(b)*(i?i/2:p),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+h,r-o),e.lineTo(n-h,r+o),b+=ai,d=Math.cos(b)*(i?i/2:p),o=Math.cos(b)*p,s=Math.sin(b)*p,h=Math.sin(b)*(i?i/2:p),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+h,r-o),e.lineTo(n-h,r+o);break;case"line":o=i?i/2:Math.cos(b)*p,s=Math.sin(b)*p,e.moveTo(n-o,r-s),e.lineTo(n+o,r+s);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(b)*(i?i/2:p),r+Math.sin(b)*p);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function qo(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 Wh(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function zh(e){e.restore()}function bk(e,t,n,r,i){if(!t)return e.lineTo(n.x,n.y);if(i==="middle"){const a=(t.x+n.x)/2;e.lineTo(a,t.y),e.lineTo(a,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 yk(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),at(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 xk(e,t,n,r,i){if(i.strikethrough||i.underline){const a=e.measureText(r),o=t-a.actualBoundingBoxLeft,s=t+a.actualBoundingBoxRight,l=n-a.actualBoundingBoxAscent,u=n+a.actualBoundingBoxDescent,c=i.strikethrough?(l+u)/2:u;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(o,c),e.lineTo(s,c),e.stroke()}}function Ck(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function Qo(e,t,n,r,i,a={}){const o=Ct(t)?t:[t],s=a.strokeWidth>0&&a.strokeColor!=="";let l,u;for(e.save(),e.font=i.string,yk(e,a),l=0;l<o.length;++l)u=o[l],a.backdrop&&Ck(e,a.backdrop),s&&(a.strokeColor&&(e.strokeStyle=a.strokeColor),at(a.strokeWidth)||(e.lineWidth=a.strokeWidth),e.strokeText(u,n,r,a.maxWidth)),e.fillText(u,n,r,a.maxWidth),xk(e,n,r,u,a),r+=Number(i.lineHeight);e.restore()}function rf(e,t){const{x:n,y:r,w:i,h:a,radius:o}=t;e.arc(n+o.topLeft,r+o.topLeft,o.topLeft,1.5*lt,lt,!0),e.lineTo(n,r+a-o.bottomLeft),e.arc(n+o.bottomLeft,r+a-o.bottomLeft,o.bottomLeft,lt,bt,!0),e.lineTo(n+i-o.bottomRight,r+a),e.arc(n+i-o.bottomRight,r+a-o.bottomRight,o.bottomRight,bt,0,!0),e.lineTo(n+i,r+o.topRight),e.arc(n+i-o.topRight,r+o.topRight,o.topRight,0,-bt,!0),e.lineTo(n+o.topLeft,r)}const wk=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,Dk=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function Sk(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 Ek=e=>+e||0;function Gh(e,t){const n={},r=ke(t),i=r?Object.keys(t):t,a=ke(e)?r?o=>Re(e[o],e[t[o]]):o=>e[o]:()=>e;for(const o of i)n[o]=Ek(a(o));return n}function Ik(e){return Gh(e,{top:"y",right:"x",bottom:"y",left:"x"})}function mo(e){return Gh(e,["topLeft","topRight","bottomLeft","bottomRight"])}function In(e){const t=Ik(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Pt(e,t){e=e||{},t=t||ft.font;let n=Re(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=Re(e.style,t.style);r&&!(""+r).match(Dk)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:Re(e.family,t.family),lineHeight:Sk(Re(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:Re(e.weight,t.weight),string:""};return i.string=pk(i),i}function Us(e,t,n,r){let i,a,o;for(i=0,a=e.length;i<a;++i)if(o=e[i],o!==void 0&&o!==void 0)return o}function _k(e,t,n){const{min:r,max:i}=e,a=S3(t,(i-r)/2),o=(s,l)=>n&&s===0?0:s+l;return{min:o(r,-Math.abs(a)),max:o(i,a)}}function Vi(e,t){return Object.assign(Object.create(e),t)}function Xh(e,t=[""],n,r,i=()=>e[0]){const a=n||e;typeof r>"u"&&(r=B3("_fallback",e));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:a,_fallback:r,_getTarget:i,override:s=>Xh([s,...e],t,a,r)};return new Proxy(o,{deleteProperty(s,l){return delete s[l],delete s._keys,delete e[0][l],!0},get(s,l){return k3(s,l,()=>Mk(l,t,e,s))},getOwnPropertyDescriptor(s,l){return Reflect.getOwnPropertyDescriptor(s._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(s,l){return ep(s).includes(l)},ownKeys(s){return ep(s)},set(s,l,u){const c=s._storage||(s._storage=i());return s[l]=c[l]=u,delete s._keys,!0}})}function Ia(e,t,n,r){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:P3(e,r),setContext:a=>Ia(e,a,n,r),override:a=>Ia(e.override(a),t,n,r)};return new Proxy(i,{deleteProperty(a,o){return delete a[o],delete e[o],!0},get(a,o,s){return k3(a,o,()=>Rk(a,o,s))},getOwnPropertyDescriptor(a,o){return a._descriptors.allKeys?Reflect.has(e,o)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,o)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(a,o){return Reflect.has(e,o)},ownKeys(){return Reflect.ownKeys(e)},set(a,o,s){return e[o]=s,delete a[o],!0}})}function P3(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:Ur(n)?n:()=>n,isIndexable:Ur(r)?r:()=>r}}const $k=(e,t)=>e?e+Nh(t):t,Zh=(e,t)=>ke(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function k3(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||t==="constructor")return e[t];const r=n();return e[t]=r,r}function Rk(e,t,n){const{_proxy:r,_context:i,_subProxy:a,_descriptors:o}=e;let s=r[t];return Ur(s)&&o.isScriptable(t)&&(s=Ak(t,s,e,n)),Ct(s)&&s.length&&(s=Fk(t,s,e,o.isIndexable)),Zh(t,s)&&(s=Ia(s,i,a&&a[t],o)),s}function Ak(e,t,n,r){const{_proxy:i,_context:a,_subProxy:o,_stack:s}=n;if(s.has(e))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e);let l=t(a,o||r);return s.delete(e),Zh(e,l)&&(l=Yh(i._scopes,i,e,l)),l}function Fk(e,t,n,r){const{_proxy:i,_context:a,_subProxy:o,_descriptors:s}=n;if(typeof a.index<"u"&&r(e))return t[a.index%t.length];if(ke(t[0])){const l=t,u=i._scopes.filter(c=>c!==l);t=[];for(const c of l){const d=Yh(u,i,e,c);t.push(Ia(d,a,o&&o[e],s))}}return t}function M3(e,t,n){return Ur(e)?e(t,n):e}const Tk=(e,t)=>e===!0?t:typeof e=="string"?Uo(t,e):void 0;function Pk(e,t,n,r,i){for(const a of t){const o=Tk(n,a);if(o){e.add(o);const s=M3(o._fallback,n,i);if(typeof s<"u"&&s!==n&&s!==r)return s}else if(o===!1&&typeof r<"u"&&n!==r)return null}return!1}function Yh(e,t,n,r){const i=t._rootScopes,a=M3(t._fallback,n,r),o=[...e,...i],s=new Set;s.add(r);let l=Q0(s,o,n,a||n,r);return l===null||typeof a<"u"&&a!==n&&(l=Q0(s,o,a,l,r),l===null)?!1:Xh(Array.from(s),[""],i,a,()=>kk(t,n,r))}function Q0(e,t,n,r,i){for(;n;)n=Pk(e,t,n,r,i);return n}function kk(e,t,n){const r=e._getTarget();t in r||(r[t]={});const i=r[t];return Ct(i)&&ke(n)?n:i||{}}function Mk(e,t,n,r){let i;for(const a of t)if(i=B3($k(a,e),n),typeof i<"u")return Zh(e,i)?Yh(n,r,e,i):i}function B3(e,t){for(const n of t){if(!n)continue;const r=n[e];if(typeof r<"u")return r}}function ep(e){let t=e._keys;return t||(t=e._keys=Bk(e._scopes)),t}function Bk(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 Ok=Number.EPSILON||1e-14,_a=(e,t)=>t<e.length&&!e[t].skip&&e[t],O3=e=>e==="x"?"y":"x";function Nk(e,t,n,r){const i=e.skip?t:e,a=t,o=n.skip?t:n,s=ef(a,i),l=ef(o,a);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:a.x-d*(o.x-i.x),y:a.y-d*(o.y-i.y)},next:{x:a.x+h*(o.x-i.x),y:a.y+h*(o.y-i.y)}}}function Vk(e,t,n){const r=e.length;let i,a,o,s,l,u=_a(e,0);for(let c=0;c<r-1;++c)if(l=u,u=_a(e,c+1),!(!l||!u)){if(fo(t[c],0,Ok)){n[c]=n[c+1]=0;continue}i=n[c]/t[c],a=n[c+1]/t[c],s=Math.pow(i,2)+Math.pow(a,2),!(s<=9)&&(o=3/Math.sqrt(s),n[c]=i*o*t[c],n[c+1]=a*o*t[c])}}function Lk(e,t,n="x"){const r=O3(n),i=e.length;let a,o,s,l=_a(e,0);for(let u=0;u<i;++u){if(o=s,s=l,l=_a(e,u+1),!s)continue;const c=s[n],d=s[r];o&&(a=(c-o[n])/3,s[`cp1${n}`]=c-a,s[`cp1${r}`]=d-a*t[u]),l&&(a=(l[n]-c)/3,s[`cp2${n}`]=c+a,s[`cp2${r}`]=d+a*t[u])}}function Hk(e,t="x"){const n=O3(t),r=e.length,i=Array(r).fill(0),a=Array(r);let o,s,l,u=_a(e,0);for(o=0;o<r;++o)if(s=l,l=u,u=_a(e,o+1),!!l){if(u){const c=u[t]-l[t];i[o]=c!==0?(u[n]-l[n])/c:0}a[o]=s?u?Ea(i[o-1])!==Ea(i[o])?0:(i[o-1]+i[o])/2:i[o-1]:i[o]}Vk(e,i,a),Lk(e,a,t)}function Js(e,t,n){return Math.max(Math.min(e,n),t)}function jk(e,t){let n,r,i,a,o,s=qo(e[0],t);for(n=0,r=e.length;n<r;++n)o=a,a=s,s=n<r-1&&qo(e[n+1],t),a&&(i=e[n],o&&(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 Wk(e,t,n,r,i){let a,o,s,l;if(t.spanGaps&&(e=e.filter(u=>!u.skip)),t.cubicInterpolationMode==="monotone")Hk(e,i);else{let u=r?e[e.length-1]:e[0];for(a=0,o=e.length;a<o;++a)s=e[a],l=Nk(u,s,e[Math.min(a+1,o-(r?0:1))%o],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&&jk(e,n)}function Uh(){return typeof window<"u"&&typeof document<"u"}function Jh(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function cu(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 zu=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function zk(e,t){return zu(e).getPropertyValue(t)}const Gk=["top","right","bottom","left"];function Ei(e,t,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const a=Gk[i];r[a]=parseFloat(e[t+"-"+a+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const Xk=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function Zk(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:a}=r;let o=!1,s,l;if(Xk(i,a,e.target))s=i,l=a;else{const u=t.getBoundingClientRect();s=r.clientX-u.left,l=r.clientY-u.top,o=!0}return{x:s,y:l,box:o}}function di(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,i=zu(n),a=i.boxSizing==="border-box",o=Ei(i,"padding"),s=Ei(i,"border","width"),{x:l,y:u,box:c}=Zk(e,n),d=o.left+(c&&s.left),h=o.top+(c&&s.top);let{width:f,height:g}=t;return a&&(f-=o.width+s.width,g-=o.height+s.height),{x:Math.round((l-d)/f*n.width/r),y:Math.round((u-h)/g*n.height/r)}}function Yk(e,t,n){let r,i;if(t===void 0||n===void 0){const a=e&&Jh(e);if(!a)t=e.clientWidth,n=e.clientHeight;else{const o=a.getBoundingClientRect(),s=zu(a),l=Ei(s,"border","width"),u=Ei(s,"padding");t=o.width-u.width-l.width,n=o.height-u.height-l.height,r=cu(s.maxWidth,a,"clientWidth"),i=cu(s.maxHeight,a,"clientHeight")}}return{width:t,height:n,maxWidth:r||uu,maxHeight:i||uu}}const Ks=e=>Math.round(e*10)/10;function Uk(e,t,n,r){const i=zu(e),a=Ei(i,"margin"),o=cu(i.maxWidth,e,"clientWidth")||uu,s=cu(i.maxHeight,e,"clientHeight")||uu,l=Yk(e,t,n);let{width:u,height:c}=l;if(i.boxSizing==="content-box"){const h=Ei(i,"border","width"),f=Ei(i,"padding");u-=f.width+h.width,c-=f.height+h.height}return u=Math.max(0,u-a.width),c=Math.max(0,r?u/r:c-a.height),u=Ks(Math.min(u,o,l.maxWidth)),c=Ks(Math.min(c,s,l.maxHeight)),u&&!c&&(c=Ks(u/2)),(t!==void 0||n!==void 0)&&r&&l.height&&c>l.height&&(c=l.height,u=Ks(Math.floor(c*r))),{width:u,height:c}}function tp(e,t,n){const r=t||1,i=Math.floor(e.height*r),a=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const o=e.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${e.height}px`,o.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||o.height!==i||o.width!==a?(e.currentDevicePixelRatio=r,o.height=i,o.width=a,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const Jk=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};Uh()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e}();function np(e,t){const n=zk(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function fi(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function Kk(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 qk(e,t,n,r){const i={x:e.cp2x,y:e.cp2y},a={x:t.cp1x,y:t.cp1y},o=fi(e,i,n),s=fi(i,a,n),l=fi(a,t,n),u=fi(o,s,n),c=fi(s,l,n);return fi(u,c,n)}const Qk=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}}},eM=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function ma(e,t,n){return e?Qk(t,n):eM()}function N3(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 V3(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function L3(e){return e==="angle"?{between:Ko,compare:KP,normalize:kr}:{between:aa,compare:(t,n)=>t-n,normalize:t=>t}}function rp({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 tM(e,t,n){const{property:r,start:i,end:a}=n,{between:o,normalize:s}=L3(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&&o(s(t[u%l][r]),i,a);++h)u--,c--;u%=l,c%=l}return c<u&&(c+=l),{start:u,end:c,loop:d,style:e.style}}function nM(e,t,n){if(!n)return[e];const{property:r,start:i,end:a}=n,o=t.length,{compare:s,between:l,normalize:u}=L3(r),{start:c,end:d,loop:h,style:f}=tM(e,t,n),g=[];let p=!1,b=null,v,y,x;const S=()=>l(i,x,v)&&s(i,x)!==0,D=()=>s(a,v)===0||l(a,x,v),$=()=>p||S(),F=()=>!p||D();for(let m=c,C=c;m<=d;++m)y=t[m%o],!y.skip&&(v=u(y[r]),v!==x&&(p=l(v,i,a),b===null&&$()&&(b=s(v,i)===0?m:C),b!==null&&F()&&(g.push(rp({start:b,end:m,loop:h,count:o,style:f})),b=null),C=m,x=v));return b!==null&&g.push(rp({start:b,end:d,loop:h,count:o,style:f})),g}function rM(e,t){const n=[],r=e.segments;for(let i=0;i<r.length;i++){const a=nM(r[i],e.points,t);a.length&&n.push(...a)}return n}function iM(e,t,n,r){let i=0,a=t-1;if(n&&!r)for(;i<t&&!e[i].skip;)i++;for(;i<t&&e[i].skip;)i++;for(i%=t,n&&(a+=i);a>i&&e[a%t].skip;)a--;return a%=t,{start:i,end:a}}function aM(e,t,n,r){const i=e.length,a=[];let o=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,a.push({start:t%i,end:(l-1)%i,loop:r}),t=o=u.stop?l:null):(o=l,s.skip&&(t=l)),s=u}return o!==null&&a.push({start:t%i,end:o%i,loop:r}),a}function oM(e,t){const n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];const a=!!e._loop,{start:o,end:s}=iM(n,i,a,r);if(r===!0)return ip(e,[{start:o,end:s,loop:a}],n,t);const l=s<o?s+i:s,u=!!e._fullLoop&&o===0&&s===i-1;return ip(e,aM(n,o,l,u),n,t)}function ip(e,t,n,r){return!r||!r.setContext||!n?t:sM(e,t,n,r)}function sM(e,t,n,r){const i=e._chart.getContext(),a=ap(e.options),{_datasetIndex:o,options:{spanGaps:s}}=e,l=n.length,u=[];let c=a,d=t[0].start,h=d;function f(g,p,b,v){const y=s?-1:1;if(g!==p){for(g+=l;n[g%l].skip;)g-=y;for(;n[p%l].skip;)p+=y;g%l!==p%l&&(u.push({start:g%l,end:p%l,loop:b,style:v}),c=v,d=p%l)}}for(const g of t){d=s?d:g.start;let p=n[d%l],b;for(h=d+1;h<=g.end;h++){const v=n[h%l];b=ap(r.setContext(Vi(i,{type:"segment",p0:p,p1:v,p0DataIndex:(h-1)%l,p1DataIndex:h%l,datasetIndex:o}))),lM(b,c)&&f(d,h-1,g.loop,c),p=v,c=b}d<h-1&&f(d,h-1,g.loop,c)}return u}function ap(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function lM(e,t){if(!t)return!1;const n=[],r=function(i,a){return Hh(a)?(n.includes(a)||n.push(a),n.indexOf(a)):a};return JSON.stringify(e,r)!==JSON.stringify(t,r)}/*!
173
173
  * Chart.js v4.4.3
174
174
  * https://www.chartjs.org
175
175
  * (c) 2024 Chart.js Contributors
176
176
  * Released under the MIT License
177
- */class uM{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,r,i){const a=n.listeners[i],o=n.duration;a.forEach(s=>s({chart:t,initial:n.initial,numSteps:o,currentStep:Math.min(r-n.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=R3.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 a=r.items;let o=a.length-1,s=!1,l;for(;o>=0;--o)l=a[o],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(t),s=!0):(a[o]=a[a.length-1],a.pop());s&&(i.draw(),this._notify(i,r,t,"progress")),a.length||(r.running=!1,this._notify(i,r,t,"complete"),r.initial=!1),n+=a.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 cr=new uM;const op="transparent",cM={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=U0(e||op),i=r.valid&&U0(t||op);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class dM{constructor(t,n,r,i){const a=n[r];i=Us([t.to,i,a,t.from]);const o=Us([t.from,a,i]);this._active=!0,this._fn=t.fn||cM[t.type||typeof o],this._easing=ho[t.easing]||ho.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=o,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],a=r-this._start,o=this._duration-a;this._start=r,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=a,this._loop=!!t.loop,this._to=Us([t.to,n,i,t.from]),this._from=Us([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,a=this._from,o=this._loop,s=this._to;let l;if(this._active=a!==s&&(o||n<r),!this._active){this._target[i]=s,this._notify(!0);return}if(n<0){this._target[i]=a;return}l=n/r%2,l=o&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(a,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 H3{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!ke(t))return;const n=Object.keys(ft.animation),r=this._properties;Object.getOwnPropertyNames(t).forEach(i=>{const a=t[i];if(!ke(a))return;const o={};for(const s of n)o[s]=a[s];(Ct(a.properties)&&a.properties||[i]).forEach(s=>{(s===i||!r.has(s))&&r.set(s,o)})})}_animateOptions(t,n){const r=n.options,i=hM(t,r);if(!i)return[];const a=this._createAnimations(i,r);return r.$shared&&fM(t.options.$animations,r).then(()=>{t.options=r},()=>{}),a}_createAnimations(t,n){const r=this._properties,i=[],a=t.$animations||(t.$animations={}),o=Object.keys(n),s=Date.now();let l;for(l=o.length-1;l>=0;--l){const u=o[l];if(u.charAt(0)==="$")continue;if(u==="options"){i.push(...this._animateOptions(t,n));continue}const c=n[u];let d=a[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}a[u]=d=new dM(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 cr.add(this._chart,r),!0}}function fM(e,t){const n=[],r=Object.keys(t);for(let i=0;i<r.length;i++){const a=e[r[i]];a&&a.active()&&n.push(a.wait())}return Promise.all(n)}function hM(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 sp(e,t){const n=e&&e.options||{},r=n.reverse,i=n.min===void 0?t:0,a=n.max===void 0?t:0;return{start:r?a:i,end:r?i:a}}function gM(e,t,n){if(n===!1)return!1;const r=sp(e,n),i=sp(t,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}function mM(e){let t,n,r,i;return ke(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 j3(e,t){const n=[],r=e._getSortedDatasetMetas(t);let i,a;for(i=0,a=r.length;i<a;++i)n.push(r[i].index);return n}function lp(e,t,n,r={}){const i=e.keys,a=r.mode==="single";let o,s,l,u;if(t!==null){for(o=0,s=i.length;o<s;++o){if(l=+i[o],l===n){if(r.all)continue;break}u=e.values[l],En(u)&&(a||t===0||Ea(t)===Ea(u))&&(t+=u)}return t}}function pM(e,t){const{iScale:n,vScale:r}=t,i=n.axis==="x"?"x":"y",a=r.axis==="x"?"x":"y",o=Object.keys(e),s=new Array(o.length);let l,u,c;for(l=0,u=o.length;l<u;++l)c=o[l],s[l]={[i]:c,[a]:e[c]};return s}function up(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function bM(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function vM(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 yM(e,t,n){const r=e[t]||(e[t]={});return r[n]||(r[n]={})}function cp(e,t,n,r){for(const i of t.getMatchingVisibleMetas(r).reverse()){const a=e[i.index];if(n&&a>0||!n&&a<0)return i.index}return null}function dp(e,t){const{chart:n,_cachedMeta:r}=e,i=n._stacks||(n._stacks={}),{iScale:a,vScale:o,index:s}=r,l=a.axis,u=o.axis,c=bM(a,o,r),d=t.length;let h;for(let f=0;f<d;++f){const g=t[f],{[l]:p,[u]:b}=g,v=g._stacks||(g._stacks={});h=v[u]=yM(i,c,p),h[s]=b,h._top=cp(h,o,!0,r.type),h._bottom=cp(h,o,!1,r.type);const y=h._visualValues||(h._visualValues={});y[s]=b}}function Zc(e,t){const n=e.scales;return Object.keys(n).filter(r=>n[r].axis===t).shift()}function xM(e,t){return Ni(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function CM(e,t,n){return Ni(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function La(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 a=i._stacks;if(!a||a[r]===void 0||a[r][n]===void 0)return;delete a[r][n],a[r]._visualValues!==void 0&&a[r]._visualValues[n]!==void 0&&delete a[r]._visualValues[n]}}}const Yc=e=>e==="reset"||e==="none",fp=(e,t)=>t?e:Object.assign({},e),wM=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:j3(n,!0),values:null};class ma{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=up(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&&La(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,a=n.xAxisID=Re(r.xAxisID,Zc(t,"x")),o=n.yAxisID=Re(r.yAxisID,Zc(t,"y")),s=n.rAxisID=Re(r.rAxisID,Zc(t,"r")),l=n.indexAxis,u=n.iAxisID=i(l,a,o,s),c=n.vAxisID=i(l,o,a,s);n.xScale=this.getScaleForId(a),n.yScale=this.getScaleForId(o),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&&X0(this._data,this),t._stacked&&La(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(ke(n)){const i=this._cachedMeta;this._data=pM(n,i)}else if(r!==n){if(r){X0(r,this);const i=this._cachedMeta;La(i),i._parsed=[]}n&&Object.isExtensible(n)&&tk(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 a=n._stacked;n._stacked=up(n.vScale,n),n.stack!==r.stack&&(i=!0,La(n),n.stack=r.stack),this._resyncElements(t),(i||a!==n._stacked)&&dp(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:a,_stacked:o}=r,s=a.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{Ct(i[t])?h=this.parseArrayData(r,i,t,n):ke(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}o&&dp(this,h)}parsePrimitiveData(t,n,r,i){const{iScale:a,vScale:o}=t,s=a.axis,l=o.axis,u=a.getLabels(),c=a===o,d=new Array(i);let h,f,g;for(h=0,f=i;h<f;++h)g=h+r,d[h]={[s]:c||a.parse(u[g],g),[l]:o.parse(n[g],g)};return d}parseArrayData(t,n,r,i){const{xScale:a,yScale:o}=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:a.parse(d[0],c),y:o.parse(d[1],c)};return s}parseObjectData(t,n,r,i){const{xScale:a,yScale:o}=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:a.parse(Uo(f,s),h),y:o.parse(Uo(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,a=this._cachedMeta,o=n[t.axis],s={keys:j3(i,!0),values:n._stacks[t.axis]._visualValues};return lp(s,o,a.index,{mode:r})}updateRangeFromParsed(t,n,r,i){const a=r[n.axis];let o=a===null?NaN:a;const s=i&&r._stacks[n.axis];i&&s&&(i.values=s,o=lp(i,a,this._cachedMeta.index)),t.min=Math.min(t.min,o),t.max=Math.max(t.max,o)}getMinMax(t,n){const r=this._cachedMeta,i=r._parsed,a=r._sorted&&t===r.iScale,o=i.length,s=this._getOtherScale(t),l=wM(n,r,this.chart),u={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:d}=vM(s);let h,f;function g(){f=i[h];const p=f[s.axis];return!En(f[t.axis])||c>p||d<p}for(h=0;h<o&&!(!g()&&(this.updateRangeFromParsed(u,t,f,l),a));++h);if(a){for(h=o-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,a,o;for(i=0,a=n.length;i<a;++i)o=n[i][t.axis],En(o)&&r.push(o);return r}getMaxOverflow(){return!1}getLabelAndValue(t){const n=this._cachedMeta,r=n.iScale,i=n.vScale,a=this.getParsed(t);return{label:r?""+r.getLabelForValue(a[r.axis]):"",value:i?""+i.getLabelForValue(a[i.axis]):""}}_update(t){const n=this._cachedMeta;this.update(t||"default"),n._clip=mM(Re(this.options.clip,gM(n.xScale,n.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,n=this.chart,r=this._cachedMeta,i=r.data||[],a=n.chartArea,o=[],s=this._drawStart||0,l=this._drawCount||i.length-s,u=this.options.drawActiveElementsOnTop;let c;for(r.dataset&&r.dataset.draw(t,a,s,l),c=s;c<s+l;++c){const d=i[c];d.hidden||(d.active&&u?o.push(d):d.draw(t,a))}for(c=0;c<o.length;++c)o[c].draw(t,a)}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 a;if(t>=0&&t<this._cachedMeta.data.length){const o=this._cachedMeta.data[t];a=o.$context||(o.$context=CM(this.getContext(),t,o)),a.parsed=this.getParsed(t),a.raw=i.data[t],a.index=a.dataIndex=t}else a=this.$context||(this.$context=xM(this.chart.getContext(),this.index)),a.dataset=i,a.index=a.datasetIndex=this.index;return a.active=!!n,a.mode=r,a}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",a=this._cachedDataOpts,o=t+"-"+n,s=a[o],l=this.enableOptionSharing&&lu(r);if(s)return fp(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(ft.elements[t]),g=()=>this.getContext(r,i,n),p=u.resolveNamedOptions(h,f,g,d);return p.$shared&&(p.$shared=l,a[o]=Object.freeze(fp(p,l))),p}_resolveAnimations(t,n,r){const i=this.chart,a=this._cachedDataOpts,o=`animation-${n}`,s=a[o];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 H3(i,l&&l.animations);return l&&l._cacheable&&(a[o]=Object.freeze(u)),u}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||Yc(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),i=this._sharedOptions,a=this.getSharedOptions(r),o=this.includeOptions(n,a)||a!==i;return this.updateSharedOptions(a,n,r),{sharedOptions:a,includeOptions:o}}updateElement(t,n,r,i){Yc(i)?Object.assign(t,r):this._resolveAnimations(n,i).update(t,r)}updateSharedOptions(t,n,r){t&&!Yc(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,i){t.active=i;const a=this.getStyle(n,i);this._resolveAnimations(n,r,i).update(t,{options:!i&&this.getSharedOptions(a)||a})}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,a=n.length,o=Math.min(a,i);o&&this.parse(0,o),a>i?this._insertElements(i,a-i,t):a<i&&this._removeElements(a,i-a)}_insertElements(t,n,r=!0){const i=this._cachedMeta,a=i.data,o=t+n;let s;const l=u=>{for(u.length+=n,s=u.length-1;s>=o;s--)u[s]=u[s-n]};for(l(a),s=t;s<o;++s)a[s]=new this.dataElementType;this._parsing&&l(i._parsed),this.parse(t,n),r&&this.updateElements(a,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&&La(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])}}ae(ma,"defaults",{}),ae(ma,"datasetElementType",null),ae(ma,"dataElementType",null);function DM(e,t,n){let r=1,i=1,a=0,o=0;if(t<ot){const s=e,l=s+t,u=Math.cos(s),c=Math.sin(s),d=Math.cos(l),h=Math.sin(l),f=(x,S,D)=>Ko(x,s,l,!0)?1:Math.max(S,S*n,D,D*n),g=(x,S,D)=>Ko(x,s,l,!0)?-1:Math.min(S,S*n,D,D*n),p=f(0,u,d),b=f(bt,c,h),v=g(lt,u,d),y=g(lt+bt,c,h);r=(p-v)/2,i=(b-y)/2,a=-(p+v)/2,o=-(b+y)/2}return{ratioX:r,ratioY:i,offsetX:a,offsetY:o}}class Qa extends ma{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 a=l=>+r[l];if(ke(r[t])){const{key:l="value"}=this._parsing;a=u=>+Uo(r[u],l)}let o,s;for(o=t,s=t+n;o<s;++o)i._parsed[o]=a(o)}}_getRotation(){return xr(this.options.rotation-90)}_getCircumference(){return xr(this.options.circumference)}_getRotationExtents(){let t=ot,n=-ot;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,a=i._getRotation(),o=i._getCircumference();t=Math.min(t,a),n=Math.max(n,a+o)}return{rotation:t,circumference:n-t}}update(t){const n=this.chart,{chartArea:r}=n,i=this._cachedMeta,a=i.data,o=this.getMaxBorderWidth()+this.getMaxOffset(a)+this.options.spacing,s=Math.max((Math.min(r.width,r.height)-o)/2,0),l=Math.min(VP(this.options.cutout,s),1),u=this._getRingWeight(this.index),{circumference:c,rotation:d}=this._getRotationExtents(),{ratioX:h,ratioY:f,offsetX:g,offsetY:p}=DM(d,c,l),b=(r.width-o)/h,v=(r.height-o)/f,y=Math.max(Math.min(b,v)/2,0),x=S3(this.options.radius,y),S=Math.max(x*l,0),D=(x-S)/this._getVisibleDatasetWeightTotal();this.offsetX=g*x,this.offsetY=p*x,i.total=this.calculateTotal(),this.outerRadius=x-D*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-D*u,0),this.updateElements(a,0,a.length,t)}_circumference(t,n){const r=this.options,i=this._cachedMeta,a=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]*a/ot)}updateElements(t,n,r,i){const a=i==="reset",o=this.chart,s=o.chartArea,u=o.options.animation,c=(s.left+s.right)/2,d=(s.top+s.bottom)/2,h=a&&u.animateScale,f=h?0:this.innerRadius,g=h?0:this.outerRadius,{sharedOptions:p,includeOptions:b}=this._getSharedOptions(n,i);let v=this._getRotation(),y;for(y=0;y<n;++y)v+=this._circumference(y,a);for(y=n;y<n+r;++y){const x=this._circumference(y,a),S=t[y],D={x:c+this.offsetX,y:d+this.offsetY,startAngle:v,endAngle:v+x,circumference:x,outerRadius:g,innerRadius:f};b&&(D.options=p||this.resolveDataElementOptions(y,S.active?"active":i)),v+=x,this.updateElement(S,y,D,i)}}calculateTotal(){const t=this._cachedMeta,n=t.data;let r=0,i;for(i=0;i<n.length;i++){const a=t._parsed[i];a!==null&&!isNaN(a)&&this.chart.getDataVisibility(i)&&!n[i].hidden&&(r+=Math.abs(a))}return r}calculateCircumference(t){const n=this._cachedMeta.total;return n>0&&!isNaN(t)?ot*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],a=jh(n._parsed[t],r.options.locale);return{label:i[t]||"",value:a}}getMaxBorderWidth(t){let n=0;const r=this.chart;let i,a,o,s,l;if(!t){for(i=0,a=r.data.datasets.length;i<a;++i)if(r.isDatasetVisible(i)){o=r.getDatasetMeta(i),t=o.data,s=o.controller;break}}if(!t)return 0;for(i=0,a=t.length;i<a;++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 a=this.resolveDataElementOptions(r);n=Math.max(n,a.offset||0,a.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(Re(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}ae(Qa,"id","doughnut"),ae(Qa,"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"}),ae(Qa,"descriptors",{_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),ae(Qa,"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((a,o)=>{const l=t.getDatasetMeta(0).controller.getStyle(o);return{text:a,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:i,lineWidth:l.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(o),index:o}})}return[]}},onClick(t,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}}});class Cl extends ma{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:r,data:i=[],_dataset:a}=n,o=this.chart._animationsDisabled;let{start:s,count:l}=ak(n,i,o);this._drawStart=s,this._drawCount=l,ok(n)&&(s=0,l=i.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!a._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:!o,options:u},t),this.updateElements(i,s,l,t)}updateElements(t,n,r,i){const a=i==="reset",{iScale:o,vScale:s,_stacked:l,_dataset:u}=this._cachedMeta,{sharedOptions:c,includeOptions:d}=this._getSharedOptions(n,i),h=o.axis,f=s.axis,{spanGaps:g,segment:p}=this.options,b=Jo(g)?g:Number.POSITIVE_INFINITY,v=this.chart._animationsDisabled||a||i==="none",y=n+r,x=t.length;let S=n>0&&this.getParsed(n-1);for(let D=0;D<x;++D){const $=t[D],F=v?$:{};if(D<n||D>=y){F.skip=!0;continue}const m=this.getParsed(D),C=at(m[f]),I=F[h]=o.getPixelForValue(m[h],D),E=F[f]=a||C?s.getBasePixel():s.getPixelForValue(l?this.applyStack(s,m,l):m[f],D);F.skip=isNaN(I)||isNaN(E)||C,F.stop=D>0&&Math.abs(m[h]-S[h])>b,p&&(F.parsed=m,F.raw=u.data[D]),d&&(F.options=c||this.resolveDataElementOptions(D,$.active?"active":i)),v||this.updateElement($,D,F,i),S=m}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,r=n.options&&n.options.borderWidth||0,i=t.data||[];if(!i.length)return r;const a=i[0].size(this.resolveDataElementOptions(0)),o=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,a,o)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}ae(Cl,"id","line"),ae(Cl,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),ae(Cl,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});function si(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Kh{constructor(t){ae(this,"options");this.options=t||{}}static override(t){Object.assign(Kh.prototype,t)}init(){}formats(){return si()}parse(){return si()}format(){return si()}add(){return si()}diff(){return si()}startOf(){return si()}endOf(){return si()}}var SM={_date:Kh};function EM(e,t,n,r){const{controller:i,data:a,_sorted:o}=e,s=i._cachedMeta.iScale;if(s&&t===s.axis&&t!=="r"&&o&&a.length){const l=s._reversePixels?QP:Ci;if(r){if(i._sharedOptions){const u=a[0],c=typeof u.getRange=="function"&&u.getRange(t);if(c){const d=l(a,t,n-c),h=l(a,t,n+c);return{lo:d.lo,hi:h.hi}}}}else return l(a,t,n)}return{lo:0,hi:a.length-1}}function Gu(e,t,n,r,i){const a=e.getSortedVisibleDatasetMetas(),o=n[t];for(let s=0,l=a.length;s<l;++s){const{index:u,data:c}=a[s],{lo:d,hi:h}=EM(a[s],t,o,i);for(let f=d;f<=h;++f){const g=c[f];g.skip||r(g,u,f)}}}function IM(e){const t=e.indexOf("x")!==-1,n=e.indexOf("y")!==-1;return function(r,i){const a=t?Math.abs(r.x-i.x):0,o=n?Math.abs(r.y-i.y):0;return Math.sqrt(Math.pow(a,2)+Math.pow(o,2))}}function Uc(e,t,n,r,i){const a=[];return!i&&!e.isPointInArea(t)||Gu(e,n,t,function(s,l,u){!i&&!qo(s,e.chartArea,0)||s.inRange(t.x,t.y,r)&&a.push({element:s,datasetIndex:l,index:u})},!0),a}function _M(e,t,n,r){let i=[];function a(o,s,l){const{startAngle:u,endAngle:c}=o.getProps(["startAngle","endAngle"],r),{angle:d}=_3(o,{x:t.x,y:t.y});Ko(d,u,c)&&i.push({element:o,datasetIndex:s,index:l})}return Gu(e,n,t,a),i}function $M(e,t,n,r,i,a){let o=[];const s=IM(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(!(!!a||e.isPointInArea(g))&&!f)return;const b=s(t,g);b<l?(o=[{element:c,datasetIndex:d,index:h}],l=b):b===l&&o.push({element:c,datasetIndex:d,index:h})}return Gu(e,n,t,u),o}function Jc(e,t,n,r,i,a){return!a&&!e.isPointInArea(t)?[]:n==="r"&&!r?_M(e,t,n,i):$M(e,t,n,r,i,a)}function hp(e,t,n,r,i){const a=[],o=n==="x"?"inXRange":"inYRange";let s=!1;return Gu(e,n,t,(l,u,c)=>{l[o](t[n],i)&&(a.push({element:l,datasetIndex:u,index:c}),s=s||l.inRange(t.x,t.y,i))}),r&&!s?[]:a}var RM={modes:{index(e,t,n,r){const i=di(t,e),a=n.axis||"x",o=n.includeInvisible||!1,s=n.intersect?Uc(e,i,a,r,o):Jc(e,i,a,!1,r,o),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=di(t,e),a=n.axis||"xy",o=n.includeInvisible||!1;let s=n.intersect?Uc(e,i,a,r,o):Jc(e,i,a,!1,r,o);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=di(t,e),a=n.axis||"xy",o=n.includeInvisible||!1;return Uc(e,i,a,r,o)},nearest(e,t,n,r){const i=di(t,e),a=n.axis||"xy",o=n.includeInvisible||!1;return Jc(e,i,a,n.intersect,r,o)},x(e,t,n,r){const i=di(t,e);return hp(e,i,"x",n.intersect,r)},y(e,t,n,r){const i=di(t,e);return hp(e,i,"y",n.intersect,r)}}};const W3=["left","top","right","bottom"];function Ha(e,t){return e.filter(n=>n.pos===t)}function gp(e,t){return e.filter(n=>W3.indexOf(n.pos)===-1&&n.box.axis===t)}function ja(e,t){return e.sort((n,r)=>{const i=t?r:n,a=t?n:r;return i.weight===a.weight?i.index-a.index:i.weight-a.weight})}function AM(e){const t=[];let n,r,i,a,o,s;for(n=0,r=(e||[]).length;n<r;++n)i=e[n],{position:a,options:{stack:o,stackWeight:s=1}}=i,t.push({index:n,box:i,pos:a,horizontal:i.isHorizontal(),weight:i.weight,stack:o&&a+o,stackWeight:s});return t}function FM(e){const t={};for(const n of e){const{stack:r,pos:i,stackWeight:a}=n;if(!r||!W3.includes(i))continue;const o=t[r]||(t[r]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=a}return t}function TM(e,t){const n=FM(e),{vBoxMaxWidth:r,hBoxMaxHeight:i}=t;let a,o,s;for(a=0,o=e.length;a<o;++a){s=e[a];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 PM(e){const t=AM(e),n=ja(t.filter(u=>u.box.fullSize),!0),r=ja(Ha(t,"left"),!0),i=ja(Ha(t,"right")),a=ja(Ha(t,"top"),!0),o=ja(Ha(t,"bottom")),s=gp(t,"x"),l=gp(t,"y");return{fullSize:n,leftAndTop:r.concat(a),rightAndBottom:i.concat(l).concat(o).concat(s),chartArea:Ha(t,"chartArea"),vertical:r.concat(i).concat(l),horizontal:a.concat(o).concat(s)}}function mp(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function z3(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 kM(e,t,n,r){const{pos:i,box:a}=n,o=e.maxPadding;if(!ke(i)){n.size&&(e[i]-=n.size);const d=r[n.stack]||{size:0,count:1};d.size=Math.max(d.size,n.horizontal?a.height:a.width),n.size=d.size/d.count,e[i]+=n.size}a.getPadding&&z3(o,a.getPadding());const s=Math.max(0,t.outerWidth-mp(o,e,"left","right")),l=Math.max(0,t.outerHeight-mp(o,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 MM(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 BM(e,t){const n=t.maxPadding;function r(i){const a={left:0,top:0,right:0,bottom:0};return i.forEach(o=>{a[o]=Math.max(t[o],n[o])}),a}return r(e?["left","right"]:["top","bottom"])}function eo(e,t,n,r){const i=[];let a,o,s,l,u,c;for(a=0,o=e.length,u=0;a<o;++a){s=e[a],l=s.box,l.update(s.width||t.w,s.height||t.h,BM(s.horizontal,t));const{same:d,other:h}=kM(t,n,s,r);u|=d&&i.length,c=c||h,l.fullSize||i.push(s)}return u&&eo(i,t,n,r)||c}function qs(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 pp(e,t,n,r){const i=n.padding;let{x:a,y:o}=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;lu(u.start)&&(o=u.start),l.fullSize?qs(l,i.left,o,n.outerWidth-i.right-i.left,h):qs(l,t.left+u.placed,o,d,h),u.start=o,u.placed+=d,o=l.bottom}else{const d=t.h*c,h=u.size||l.width;lu(u.start)&&(a=u.start),l.fullSize?qs(l,a,i.top,h,n.outerHeight-i.bottom-i.top):qs(l,a,t.top+u.placed,h,d),u.start=a,u.placed+=d,a=l.right}}t.x=a,t.y=o}var Sn={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=In(e.options.layout.padding),a=Math.max(t-i.width,0),o=Math.max(n-i.height,0),s=PM(e.boxes),l=s.vertical,u=s.horizontal;Ge(e.boxes,p=>{typeof p.beforeLayout=="function"&&p.beforeLayout()});const c=l.reduce((p,b)=>b.box.options&&b.box.options.display===!1?p:p+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:a,availableHeight:o,vBoxMaxWidth:a/2/c,hBoxMaxHeight:o/2}),h=Object.assign({},i);z3(h,In(r));const f=Object.assign({maxPadding:h,w:a,h:o,x:i.left,y:i.top},i),g=TM(l.concat(u),d);eo(s.fullSize,f,d,g),eo(l,f,d,g),eo(u,f,d,g)&&eo(l,f,d,g),MM(f),pp(s.leftAndTop,f,d,g),f.x+=f.w,f.y+=f.h,pp(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},Ge(s.chartArea,p=>{const b=p.box;Object.assign(b,e.chartArea),b.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})})}};class G3{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 OM extends G3{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const wl="$chartjs",NM={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},bp=e=>e===null||e==="";function VM(e,t){const n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e[wl]={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",bp(i)){const a=np(e,"width");a!==void 0&&(e.width=a)}if(bp(r))if(e.style.height==="")e.height=e.width/(t||2);else{const a=np(e,"height");a!==void 0&&(e.height=a)}return e}const X3=Jk?{passive:!0}:!1;function LM(e,t,n){e&&e.addEventListener(t,n,X3)}function HM(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,X3)}function jM(e,t){const n=NM[e.type]||e.type,{x:r,y:i}=di(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:i!==void 0?i:null}}function du(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function WM(e,t,n){const r=e.canvas,i=new MutationObserver(a=>{let o=!1;for(const s of a)o=o||du(s.addedNodes,r),o=o&&!du(s.removedNodes,r);o&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function zM(e,t,n){const r=e.canvas,i=new MutationObserver(a=>{let o=!1;for(const s of a)o=o||du(s.removedNodes,r),o=o&&!du(s.addedNodes,r);o&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const es=new Map;let vp=0;function Z3(){const e=window.devicePixelRatio;e!==vp&&(vp=e,es.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function GM(e,t){es.size||window.addEventListener("resize",Z3),es.set(e,t)}function XM(e){es.delete(e),es.size||window.removeEventListener("resize",Z3)}function ZM(e,t,n){const r=e.canvas,i=r&&Jh(r);if(!i)return;const a=A3((s,l)=>{const u=i.clientWidth;n(s,l),u<i.clientWidth&&n()},window),o=new ResizeObserver(s=>{const l=s[0],u=l.contentRect.width,c=l.contentRect.height;u===0&&c===0||a(u,c)});return o.observe(i),GM(e,a),o}function Kc(e,t,n){n&&n.disconnect(),t==="resize"&&XM(e)}function YM(e,t,n){const r=e.canvas,i=A3(a=>{e.ctx!==null&&n(jM(a,e))},e);return LM(r,t,i),i}class UM extends G3{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(VM(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[wl])return!1;const r=n[wl].initial;["height","width"].forEach(a=>{const o=r[a];at(o)?n.removeAttribute(a):n.setAttribute(a,o)});const i=r.style||{};return Object.keys(i).forEach(a=>{n.style[a]=i[a]}),n.width=n.width,delete n[wl],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const i=t.$proxies||(t.$proxies={}),o={attach:WM,detach:zM,resize:ZM}[n]||YM;i[n]=o(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),i=r[n];if(!i)return;({attach:Kc,detach:Kc,resize:Kc}[n]||HM)(t,n,i),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,i){return Uk(t,n,r,i)}isAttached(t){const n=t&&Jh(t);return!!(n&&n.isConnected)}}function JM(e){return!Uh()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?OM:UM}var ol;let ei=(ol=class{constructor(){ae(this,"x");ae(this,"y");ae(this,"active",!1);ae(this,"options");ae(this,"$animations")}tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return Jo(this.x)&&Jo(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const i={};return t.forEach(a=>{i[a]=r[a]&&r[a].active()?r[a]._to:this[a]}),i}},ae(ol,"defaults",{}),ae(ol,"defaultRoutes"),ol);function KM(e,t){const n=e.options.ticks,r=qM(e),i=Math.min(n.maxTicksLimit||r,r),a=n.major.enabled?eB(t):[],o=a.length,s=a[0],l=a[o-1],u=[];if(o>i)return tB(t,u,a,o/i),u;const c=QM(a,t,i);if(o>0){let d,h;const f=o>1?Math.round((l-s)/(o-1)):null;for(Qs(t,u,c,at(f)?0:s-f,s),d=0,h=o-1;d<h;d++)Qs(t,u,c,a[d],a[d+1]);return Qs(t,u,c,l,at(f)?t.length:l+f),u}return Qs(t,u,c),u}function qM(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 QM(e,t,n){const r=nB(e),i=t.length/n;if(!r)return Math.max(i,1);const a=ZP(r);for(let o=0,s=a.length-1;o<s;o++){const l=a[o];if(l>i)return l}return Math.max(i,1)}function eB(e){const t=[];let n,r;for(n=0,r=e.length;n<r;n++)e[n].major&&t.push(n);return t}function tB(e,t,n,r){let i=0,a=n[0],o;for(r=Math.ceil(r),o=0;o<e.length;o++)o===a&&(t.push(e[o]),i++,a=n[i*r])}function Qs(e,t,n,r,i){const a=Re(r,0),o=Math.min(Re(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=a;c<0;)s++,c=Math.round(a+s*n);for(u=Math.max(a,0);u<o;u++)u===c&&(t.push(e[u]),s++,c=Math.round(a+s*n))}function nB(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 rB=e=>e==="left"?"right":e==="right"?"left":e,yp=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,xp=(e,t)=>Math.min(t||e,e);function Cp(e,t){const n=[],r=e.length/t,i=e.length;let a=0;for(;a<i;a+=r)n.push(e[Math.floor(a)]);return n}function iB(e,t,n){const r=e.ticks.length,i=Math.min(t,r-1),a=e._startPixel,o=e._endPixel,s=1e-6;let l=e.getPixelForTick(i),u;if(!(n&&(r===1?u=Math.max(l-a,o-l):t===0?u=(e.getPixelForTick(1)-l)/2:u=(l-e.getPixelForTick(i-1))/2,l+=i<t?u:-u,l<a-s||l>o+s)))return l}function aB(e,t){Ge(e,n=>{const r=n.gc,i=r.length/2;let a;if(i>t){for(a=0;a<i;++a)delete n.data[r[a]];r.splice(0,i)}})}function Wa(e){return e.drawTicks?e.tickLength:0}function wp(e,t){if(!e.display)return 0;const n=Pt(e.font,t),r=In(e.padding);return(Ct(e.text)?e.text.length:1)*n.lineHeight+r.height}function oB(e,t){return Ni(e,{scale:t,type:"scale"})}function sB(e,t,n){return Ni(e,{tick:n,index:t,type:"tick"})}function lB(e,t,n){let r=Lh(e);return(n&&t!=="right"||!n&&t==="right")&&(r=rB(r)),r}function uB(e,t,n,r){const{top:i,left:a,bottom:o,right:s,chart:l}=e,{chartArea:u,scales:c}=l;let d=0,h,f,g;const p=o-i,b=s-a;if(e.isHorizontal()){if(f=Rt(r,a,s),ke(n)){const v=Object.keys(n)[0],y=n[v];g=c[v].getPixelForValue(y)+p-t}else n==="center"?g=(u.bottom+u.top)/2+p-t:g=yp(e,n,t);h=s-a}else{if(ke(n)){const v=Object.keys(n)[0],y=n[v];f=c[v].getPixelForValue(y)-b+t}else n==="center"?f=(u.left+u.right)/2-b+t:f=yp(e,n,t);g=Rt(r,o,i),d=n==="left"?-bt:bt}return{titleX:f,titleY:g,maxWidth:h,rotation:d}}class Pa extends ei{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=Hn(t,Number.POSITIVE_INFINITY),n=Hn(n,Number.NEGATIVE_INFINITY),r=Hn(r,Number.POSITIVE_INFINITY),i=Hn(i,Number.NEGATIVE_INFINITY),{min:Hn(t,r),max:Hn(n,i),minDefined:En(t),maxDefined:En(n)}}getMinMax(t){let{min:n,max:r,minDefined:i,maxDefined:a}=this.getUserBounds(),o;if(i&&a)return{min:n,max:r};const s=this.getMatchingVisibleMetas();for(let l=0,u=s.length;l<u;++l)o=s[l].controller.getMinMax(this,t),i||(n=Math.min(n,o.min)),a||(r=Math.max(r,o.max));return n=a&&n>r?r:n,r=i&&n>r?n:r,{min:Hn(n,Hn(r,n)),max:Hn(r,Hn(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(){Ue(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:i,grace:a,ticks:o}=this.options,s=o.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=_k(this,a,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=s<this.ticks.length;this._convertTicksToLabels(l?Cp(this.ticks,s):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||o.source==="auto")&&(this.ticks=KM(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(){Ue(this.options.afterUpdate,[this])}beforeSetDimensions(){Ue(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(){Ue(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),Ue(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Ue(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const n=this.options.ticks;let r,i,a;for(r=0,i=t.length;r<i;r++)a=t[r],a.label=Ue(n.callback,[a.value,r,t],this)}afterTickToLabelConversion(){Ue(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Ue(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,n=t.ticks,r=xp(this.ticks.length,t.ticks.maxTicksLimit),i=n.minRotation||0,a=n.maxRotation;let o=i,s,l,u;if(!this._isVisible()||!n.display||i>=a||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const c=this._getLabelSizes(),d=c.widest.width,h=c.highest.height,f=Vt(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-Wa(t.grid)-n.padding-wp(t.title,this.chart.options.font),u=Math.sqrt(d*d+h*h),o=JP(Math.min(Math.asin(Vt((c.highest.height+6)/s,-1,1)),Math.asin(Vt(l/u,-1,1))-Math.asin(Vt(h/u,-1,1)))),o=Math.max(i,Math.min(a,o))),this.labelRotation=o}afterCalculateLabelRotation(){Ue(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Ue(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:a}}=this,o=this._isVisible(),s=this.isHorizontal();if(o){const l=wp(i,n.options.font);if(s?(t.width=this.maxWidth,t.height=Wa(a)+l):(t.height=this.maxHeight,t.width=Wa(a)+l),r.display&&this.ticks.length){const{first:u,last:c,widest:d,highest:h}=this._getLabelSizes(),f=r.padding*2,g=xr(this.labelRotation),p=Math.cos(g),b=Math.sin(g);if(s){const v=r.mirror?0:b*d.width+p*h.height;t.height=Math.min(this.maxHeight,t.height+v+f)}else{const v=r.mirror?0:p*d.width+b*h.height;t.width=Math.min(this.maxWidth,t.width+v+f)}this._calculatePadding(u,c,b,p)}}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:a,padding:o},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):a==="start"?f=n.width:a==="end"?h=t.width:a!=="inner"&&(h=t.width/2,f=n.width/2),this.paddingLeft=Math.max((h-c+o)*this.width/(this.width-c),0),this.paddingRight=Math.max((f-d+o)*this.width/(this.width-d),0)}else{let c=n.height/2,d=t.height/2;a==="start"?(c=0,d=t.height):a==="end"&&(c=n.height,d=0),this.paddingTop=c+o,this.paddingBottom=d+o}}_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(){Ue(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++)at(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=Cp(r,n)),this._labelSizes=t=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,n,r){const{ctx:i,_longestTextCache:a}=this,o=[],s=[],l=Math.floor(n/xp(n,r));let u=0,c=0,d,h,f,g,p,b,v,y,x,S,D;for(d=0;d<n;d+=l){if(g=t[d].label,p=this._resolveTickFontOptions(d),i.font=b=p.string,v=a[b]=a[b]||{data:{},gc:[]},y=p.lineHeight,x=S=0,!at(g)&&!Ct(g))x=K0(i,v.data,v.gc,x,g),S=y;else if(Ct(g))for(h=0,f=g.length;h<f;++h)D=g[h],!at(D)&&!Ct(D)&&(x=K0(i,v.data,v.gc,x,D),S+=y);o.push(x),s.push(S),u=Math.max(x,u),c=Math.max(S,c)}aB(a,n);const $=o.indexOf(u),F=s.indexOf(c),m=C=>({width:o[C]||0,height:s[C]||0});return{first:m(0),last:m(n-1),widest:m($),highest:m(F),widths:o,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 qP(this._alignToPixels?oi(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=sB(this.getContext(),t,r))}return this.$context||(this.$context=oB(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=xr(this.labelRotation),r=Math.abs(Math.cos(n)),i=Math.abs(Math.sin(n)),a=this._getLabelSizes(),o=t.autoSkipPadding||0,s=a?a.widest.width+o:0,l=a?a.highest.height+o: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:a,position:o,border:s}=i,l=a.offset,u=this.isHorizontal(),d=this.ticks.length+(l?1:0),h=Wa(a),f=[],g=s.setContext(this.getContext()),p=g.display?g.width:0,b=p/2,v=function(k){return oi(r,k,p)};let y,x,S,D,$,F,m,C,I,E,R,P;if(o==="top")y=v(this.bottom),F=this.bottom-h,C=y-b,E=v(t.top)+b,P=t.bottom;else if(o==="bottom")y=v(this.top),E=t.top,P=v(t.bottom)-b,F=y+b,C=this.top+h;else if(o==="left")y=v(this.right),$=this.right-h,m=y-b,I=v(t.left)+b,R=t.right;else if(o==="right")y=v(this.left),I=t.left,R=v(t.right)-b,$=y+b,m=this.left+h;else if(n==="x"){if(o==="center")y=v((t.top+t.bottom)/2+.5);else if(ke(o)){const k=Object.keys(o)[0],T=o[k];y=v(this.chart.scales[k].getPixelForValue(T))}E=t.top,P=t.bottom,F=y+b,C=F+h}else if(n==="y"){if(o==="center")y=v((t.left+t.right)/2);else if(ke(o)){const k=Object.keys(o)[0],T=o[k];y=v(this.chart.scales[k].getPixelForValue(T))}$=y-b,m=$-h,I=t.left,R=t.right}const A=Re(i.ticks.maxTicksLimit,d),M=Math.max(1,Math.ceil(d/A));for(x=0;x<d;x+=M){const k=this.getContext(x),T=a.setContext(k),B=s.setContext(k),O=T.lineWidth,L=T.color,j=B.dash||[],z=B.dashOffset,Y=T.tickWidth,G=T.tickColor,H=T.tickBorderDash||[],V=T.tickBorderDashOffset;S=iB(this,x,l),S!==void 0&&(D=oi(r,S,O),u?$=m=I=R=D:F=C=E=P=D,f.push({tx1:$,ty1:F,tx2:m,ty2:C,x1:I,y1:E,x2:R,y2:P,width:O,color:L,borderDash:j,borderDashOffset:z,tickWidth:Y,tickColor:G,tickBorderDash:H,tickBorderDashOffset:V}))}return this._ticksLength=d,this._borderValue=y,f}_computeLabelItems(t){const n=this.axis,r=this.options,{position:i,ticks:a}=r,o=this.isHorizontal(),s=this.ticks,{align:l,crossAlign:u,padding:c,mirror:d}=a,h=Wa(r.grid),f=h+c,g=d?-c:f,p=-xr(this.labelRotation),b=[];let v,y,x,S,D,$,F,m,C,I,E,R,P="middle";if(i==="top")$=this.bottom-g,F=this._getXAxisLabelAlignment();else if(i==="bottom")$=this.top+g,F=this._getXAxisLabelAlignment();else if(i==="left"){const M=this._getYAxisLabelAlignment(h);F=M.textAlign,D=M.x}else if(i==="right"){const M=this._getYAxisLabelAlignment(h);F=M.textAlign,D=M.x}else if(n==="x"){if(i==="center")$=(t.top+t.bottom)/2+f;else if(ke(i)){const M=Object.keys(i)[0],k=i[M];$=this.chart.scales[M].getPixelForValue(k)+f}F=this._getXAxisLabelAlignment()}else if(n==="y"){if(i==="center")D=(t.left+t.right)/2-f;else if(ke(i)){const M=Object.keys(i)[0],k=i[M];D=this.chart.scales[M].getPixelForValue(k)}F=this._getYAxisLabelAlignment(h).textAlign}n==="y"&&(l==="start"?P="top":l==="end"&&(P="bottom"));const A=this._getLabelSizes();for(v=0,y=s.length;v<y;++v){x=s[v],S=x.label;const M=a.setContext(this.getContext(v));m=this.getPixelForTick(v)+a.labelOffset,C=this._resolveTickFontOptions(v),I=C.lineHeight,E=Ct(S)?S.length:1;const k=E/2,T=M.color,B=M.textStrokeColor,O=M.textStrokeWidth;let L=F;o?(D=m,F==="inner"&&(v===y-1?L=this.options.reverse?"left":"right":v===0?L=this.options.reverse?"right":"left":L="center"),i==="top"?u==="near"||p!==0?R=-E*I+I/2:u==="center"?R=-A.highest.height/2-k*I+I:R=-A.highest.height+I/2:u==="near"||p!==0?R=I/2:u==="center"?R=A.highest.height/2-k*I:R=A.highest.height-E*I,d&&(R*=-1),p!==0&&!M.showLabelBackdrop&&(D+=I/2*Math.sin(p))):($=m,R=(1-E)*I/2);let j;if(M.showLabelBackdrop){const z=In(M.backdropPadding),Y=A.heights[v],G=A.widths[v];let H=R-z.top,V=0-z.left;switch(P){case"middle":H-=Y/2;break;case"bottom":H-=Y;break}switch(F){case"center":V-=G/2;break;case"right":V-=G;break;case"inner":v===y-1?V-=G:v>0&&(V-=G/2);break}j={left:V,top:H,width:G+z.width,height:Y+z.height,color:M.backdropColor}}b.push({label:S,font:C,textOffset:R,options:{rotation:p,color:T,strokeColor:B,strokeWidth:O,textAlign:L,textBaseline:P,translation:[D,$],backdrop:j}})}return b}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-xr(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:a}}=this.options,o=this._getLabelSizes(),s=t+a,l=o.widest.width;let u,c;return n==="left"?i?(c=this.right+a,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+a,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:a,height:o}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(r,i,a,o),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const i=this.ticks.findIndex(a=>a.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 a,o;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(a=0,o=i.length;a<o;++a){const l=i[a];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,a=r.setContext(this.getContext()),o=r.display?a.width:0;if(!o)return;const s=i.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let u,c,d,h;this.isHorizontal()?(u=oi(t,this.left,o)-o/2,c=oi(t,this.right,s)+s/2,d=h=l):(d=oi(t,this.top,o)-o/2,h=oi(t,this.bottom,s)+s/2,u=c=l),n.save(),n.lineWidth=a.width,n.strokeStyle=a.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&&Wh(r,i);const a=this.getLabelItems(t);for(const o of a){const s=o.options,l=o.font,u=o.label,c=o.textOffset;Qo(r,u,0,c,l,s)}i&&zh(r)}drawTitle(){const{ctx:t,options:{position:n,title:r,reverse:i}}=this;if(!r.display)return;const a=Pt(r.font),o=In(r.padding),s=r.align;let l=a.lineHeight/2;n==="bottom"||n==="center"||ke(n)?(l+=o.bottom,Ct(r.text)&&(l+=a.lineHeight*(r.text.length-1))):l+=o.top;const{titleX:u,titleY:c,maxWidth:d,rotation:h}=uB(this,l,n,s);Qo(t,r.text,0,0,a,{color:r.color,maxWidth:d,rotation:h,textAlign:lB(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=Re(t.grid&&t.grid.z,-1),i=Re(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==Pa.prototype.draw?[{z:n,draw:a=>{this.draw(a)}}]:[{z:r,draw:a=>{this.drawBackground(),this.drawGrid(a),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:a=>{this.drawLabels(a)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let a,o;for(a=0,o=n.length;a<o;++a){const s=n[a];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 Pt(n.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class el{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;fB(n)&&(r=this.register(n));const i=this.items,a=t.id,o=this.scope+"."+a;if(!a)throw new Error("class does not have id: "+t);return a in i||(i[a]=t,cB(t,o,r),this.override&&ft.override(t.id,t.overrides)),o}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 ft[i]&&(delete ft[i][r],this.override&&delete Pi[r])}}function cB(e,t,n){const r=Yo(Object.create(null),[n?ft.get(n):{},ft.get(t),e.defaults]);ft.set(t,r),e.defaultRoutes&&dB(t,e.defaultRoutes),e.descriptors&&ft.describe(t,e.descriptors)}function dB(e,t){Object.keys(t).forEach(n=>{const r=n.split("."),i=r.pop(),a=[e].concat(r).join("."),o=t[n].split("."),s=o.pop(),l=o.join(".");ft.route(a,i,l,s)})}function fB(e){return"id"in e&&"defaults"in e}class hB{constructor(){this.controllers=new el(ma,"datasets",!0),this.elements=new el(ei,"elements"),this.plugins=new el(Object,"plugins"),this.scales=new el(Pa,"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 a=r||this._getRegistryForType(i);r||a.isForType(i)||a===this.plugins&&i.id?this._exec(t,a,i):Ge(i,o=>{const s=r||this._getRegistryForType(o);this._exec(t,s,o)})})}_exec(t,n,r){const i=Nh(t);Ue(r["before"+i],[],r),n[t](r),Ue(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 Gn=new hB;class gB{constructor(){this._init=[]}notify(t,n,r,i){n==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const a=i?this._descriptors(t).filter(i):this._descriptors(t),o=this._notify(a,t,n,r);return n==="afterDestroy"&&(this._notify(a,t,"stop"),this._notify(this._init,t,"uninstall")),o}_notify(t,n,r,i){i=i||{};for(const a of t){const o=a.plugin,s=o[r],l=[n,i,a.options];if(Ue(s,l,o)===!1&&i.cancelable)return!1}return!0}invalidate(){at(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=Re(r.options&&r.options.plugins,{}),a=mB(r);return i===!1&&!n?[]:bB(t,a,i,n)}_notifyStateChanges(t){const n=this._oldCache||[],r=this._cache,i=(a,o)=>a.filter(s=>!o.some(l=>s.plugin.id===l.plugin.id));this._notify(i(n,r),t,"stop"),this._notify(i(r,n),t,"start")}}function mB(e){const t={},n=[],r=Object.keys(Gn.plugins.items);for(let a=0;a<r.length;a++)n.push(Gn.getPlugin(r[a]));const i=e.plugins||[];for(let a=0;a<i.length;a++){const o=i[a];n.indexOf(o)===-1&&(n.push(o),t[o.id]=!0)}return{plugins:n,localIds:t}}function pB(e,t){return!t&&e===!1?null:e===!0?{}:e}function bB(e,{plugins:t,localIds:n},r,i){const a=[],o=e.getContext();for(const s of t){const l=s.id,u=pB(r[l],i);u!==null&&a.push({plugin:s,options:vB(e.config,{plugin:s,local:n[l]},u,o)})}return a}function vB(e,{plugin:t,local:n},r,i){const a=e.pluginScopeKeys(t),o=e.getOptionScopes(r,a);return n&&t.defaults&&o.push(t.defaults),e.createResolver(o,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function af(e,t){const n=ft.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function yB(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function xB(e,t){return e===t?"_index_":"_value_"}function Dp(e){if(e==="x"||e==="y"||e==="r")return e}function CB(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function of(e,...t){if(Dp(e))return e;for(const n of t){const r=n.axis||CB(n.position)||e.length>1&&Dp(e[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function Sp(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function wB(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 Sp(e,"x",n[0])||Sp(e,"y",n[0])}return{}}function DB(e,t){const n=Pi[e.type]||{scales:{}},r=t.scales||{},i=af(e.type,t),a=Object.create(null);return Object.keys(r).forEach(o=>{const s=r[o];if(!ke(s))return console.error(`Invalid scale configuration for scale: ${o}`);if(s._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${o}`);const l=of(o,s,wB(o,e),ft.scales[s.type]),u=xB(l,i),c=n.scales||{};a[o]=co(Object.create(null),[{axis:l},s,c[l],c[u]])}),e.data.datasets.forEach(o=>{const s=o.type||e.type,l=o.indexAxis||af(s,t),c=(Pi[s]||{}).scales||{};Object.keys(c).forEach(d=>{const h=yB(d,l),f=o[h+"AxisID"]||h;a[f]=a[f]||Object.create(null),co(a[f],[{axis:h},r[f],c[d]])})}),Object.keys(a).forEach(o=>{const s=a[o];co(s,[ft.scales[s.type],ft.scale])}),a}function Y3(e){const t=e.options||(e.options={});t.plugins=Re(t.plugins,{}),t.scales=DB(e,t)}function U3(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function SB(e){return e=e||{},e.data=U3(e.data),Y3(e),e}const Ep=new Map,J3=new Set;function tl(e,t){let n=Ep.get(e);return n||(n=t(),Ep.set(e,n),J3.add(n)),n}const za=(e,t,n)=>{const r=Uo(t,n);r!==void 0&&e.add(r)};class EB{constructor(t){this._config=SB(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=U3(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(),Y3(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return tl(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return tl(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return tl(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return tl(`${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:a}=this,o=this._cachedScopes(t,r),s=o.get(n);if(s)return s;const l=new Set;n.forEach(c=>{t&&(l.add(t),c.forEach(d=>za(l,t,d))),c.forEach(d=>za(l,i,d)),c.forEach(d=>za(l,Pi[a]||{},d)),c.forEach(d=>za(l,ft,d)),c.forEach(d=>za(l,tf,d))});const u=Array.from(l);return u.length===0&&u.push(Object.create(null)),J3.has(n)&&o.set(n,u),u}chartOptionScopes(){const{options:t,type:n}=this;return[t,Pi[n]||{},ft.datasets[n]||{},{type:n},ft,tf]}resolveNamedOptions(t,n,r,i=[""]){const a={$shared:!0},{resolver:o,subPrefixes:s}=Ip(this._resolverCache,t,i);let l=o;if(_B(o,n)){a.$shared=!1,r=Ur(r)?r():r;const u=this.createResolver(t,r,s);l=Ia(o,r,u)}for(const u of n)a[u]=l[u];return a}createResolver(t,n,r=[""],i){const{resolver:a}=Ip(this._resolverCache,t,r);return ke(n)?Ia(a,n,void 0,i):a}}function Ip(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const i=n.join();let a=r.get(i);return a||(a={resolver:Xh(t,n),subPrefixes:n.filter(s=>!s.toLowerCase().includes("hover"))},r.set(i,a)),a}const IB=e=>ke(e)&&Object.getOwnPropertyNames(e).some(t=>Ur(e[t]));function _B(e,t){const{isScriptable:n,isIndexable:r}=P3(e);for(const i of t){const a=n(i),o=r(i),s=(o||a)&&e[i];if(a&&(Ur(s)||IB(s))||o&&Ct(s))return!0}return!1}var $B="4.4.3";const RB=["top","bottom","left","right","chartArea"];function _p(e,t){return e==="top"||e==="bottom"||RB.indexOf(e)===-1&&t==="x"}function $p(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function Rp(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),Ue(n&&n.onComplete,[e],t)}function AB(e){const t=e.chart,n=t.options.animation;Ue(n&&n.onProgress,[e],t)}function K3(e){return Uh()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const Dl={},Ap=e=>{const t=K3(e);return Object.values(Dl).filter(n=>n.canvas===t).pop()};function FB(e,t,n){const r=Object.keys(e);for(const i of r){const a=+i;if(a>=t){const o=e[i];delete e[i],(n>0||a>t)&&(e[a+n]=o)}}}function TB(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}function nl(e,t,n){return e.options.clip?e[n]:t[n]}function PB(e,t){const{xScale:n,yScale:r}=e;return n&&r?{left:nl(n,t,"left"),right:nl(n,t,"right"),top:nl(r,t,"top"),bottom:nl(r,t,"bottom")}:t}var Fr;let ps=(Fr=class{static register(...t){Gn.add(...t),Fp()}static unregister(...t){Gn.remove(...t),Fp()}constructor(t,n){const r=this.config=new EB(n),i=K3(t),a=Ap(i);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas with ID '"+a.canvas.id+"' can be reused.");const o=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||JM(i)),this.platform.updateConfig(r);const s=this.platform.acquireContext(i,o.aspectRatio),l=s&&s.canvas,u=l&&l.height,c=l&&l.width;if(this.id=NP(),this.ctx=s,this.canvas=l,this.width=c,this.height=u,this._options=o,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 gB,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=rk(d=>this.update(d),o.resizeDelay||0),this._dataChanges=[],Dl[this.id]=this,!s||!l){console.error("Failed to create chart: can't acquire context from the given item");return}cr.listen(this,"complete",Rp),cr.listen(this,"progress",AB),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:i,_aspectRatio:a}=this;return at(t)?n&&a?a: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 Gn}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():tp(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return q0(this.canvas,this.ctx),this}stop(){return cr.stop(this),this}resize(t,n){cr.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,i=this.canvas,a=r.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(i,t,n,a),s=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,tp(this,s,!0)&&(this.notifyPlugins("resize",{size:o}),Ue(r.onResize,[this,o],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};Ge(n,(r,i)=>{r.id=i})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,i=Object.keys(r).reduce((o,s)=>(o[s]=!1,o),{});let a=[];n&&(a=a.concat(Object.keys(n).map(o=>{const s=n[o],l=of(o,s),u=l==="r",c=l==="x";return{options:s,dposition:u?"chartArea":c?"bottom":"left",dtype:u?"radialLinear":c?"category":"linear"}}))),Ge(a,o=>{const s=o.options,l=s.id,u=of(l,s),c=Re(s.type,o.dtype);(s.position===void 0||_p(s.position,u)!==_p(o.dposition))&&(s.position=o.dposition),i[l]=!0;let d=null;if(l in r&&r[l].type===c)d=r[l];else{const h=Gn.getScale(c);d=new h({id:l,type:c,ctx:this.ctx,chart:this}),r[d.id]=d}d.init(s,t)}),Ge(i,(o,s)=>{o||delete r[s]}),Ge(r,o=>{Sn.configure(this,o,o.options),Sn.addBox(this,o)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((i,a)=>i.index-a.index),r>n){for(let i=n;i<r;++i)this._destroyDatasetMeta(i);t.splice(n,r-n)}this._sortedMetasets=t.slice(0).sort($p("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:n}}=this;t.length>n.length&&delete this._stacks,t.forEach((r,i)=>{n.filter(a=>a===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 a=n[r];let o=this.getDatasetMeta(r);const s=a.type||this.config.type;if(o.type&&o.type!==s&&(this._destroyDatasetMeta(r),o=this.getDatasetMeta(r)),o.type=s,o.indexAxis=a.indexAxis||af(s,this.options),o.order=a.order||0,o.index=r,o.label=""+a.label,o.visible=this.isDatasetVisible(r),o.controller)o.controller.updateIndex(r),o.controller.linkScales();else{const l=Gn.getController(s),{datasetElementType:u,dataElementType:c}=ft.datasets[s];Object.assign(l,{dataElementType:Gn.getElement(c),datasetElementType:u&&Gn.getElement(u)}),o.controller=new l(this,r),t.push(o.controller)}}return this._updateMetasets(),t}_resetElements(){Ge(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 a=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let u=0,c=this.data.datasets.length;u<c;u++){const{controller:d}=this.getDatasetMeta(u),h=!i&&a.indexOf(d)===-1;d.buildOrUpdateElements(h),o=Math.max(+d.getMaxOverflow(),o)}o=this._minPadding=r.layout.autoPadding?o:0,this._updateLayout(o),i||Ge(a,u=>{u.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort($p("z","_idx"));const{_active:s,_lastEvent:l}=this;l?this._eventHandler(l,!0):s.length&&this._updateHoverStyles(s,s,!0),this.render()}_updateScales(){Ge(this.scales,t=>{Sn.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!j0(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:a}of n){const o=r==="_removeElements"?-a:a;FB(t,i,o)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=a=>new Set(t.filter(o=>o[0]===a).map((o,s)=>s+","+o.splice(1).join(","))),i=r(0);for(let a=1;a<n;a++)if(!j0(i,r(a)))return;return Array.from(i).map(a=>a.split(",")).map(a=>({method:a[1],start:+a[2],count:+a[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Sn.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],Ge(this.boxes,i=>{r&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,a)=>{i._idx=a}),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,Ur(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&&(cr.has(this)?this.attached&&!cr.running(this)&&cr.start(this):(this.draw(),Rp({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,a;for(i=0,a=n.length;i<a;++i){const o=n[i];(!t||o.visible)&&r.push(o)}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,a=PB(t,this.chartArea),o={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",o)!==!1&&(i&&Wh(n,{left:r.left===!1?0:a.left-r.left,right:r.right===!1?this.width:a.right+r.right,top:r.top===!1?0:a.top-r.top,bottom:r.bottom===!1?this.height:a.bottom+r.bottom}),t.controller.draw(),i&&zh(n),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(t){return qo(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,i){const a=RM.modes[n];return typeof a=="function"?a(this,t,r,i):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let i=r.filter(a=>a&&a._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=Ni(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",a=this.getDatasetMeta(t),o=a.controller._resolveAnimations(void 0,i);lu(n)?(a.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),o.update(a,{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(),cr.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(),q0(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete Dl[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=(a,o)=>{n.addEventListener(this,a,o),t[a]=o},i=(a,o,s)=>{a.offsetX=o,a.offsetY=s,this._eventHandler(a)};Ge(this.options.events,a=>r(a,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])},a=(l,u)=>{this.canvas&&this.resize(l,u)};let o;const s=()=>{i("attach",s),this.attached=!0,this.resize(),r("resize",a),r("detach",o)};o=()=>{this.attached=!1,i("resize",a),this._stop(),this._resize(0,0),r("attach",s)},n.isAttached(this.canvas)?s():o()}unbindEvents(){Ge(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},Ge(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const i=r?"set":"remove";let a,o,s,l;for(n==="dataset"&&(a=this.getDatasetMeta(t[0].datasetIndex),a.controller["_"+i+"DatasetHoverStyle"]()),s=0,l=t.length;s<l;++s){o=t[s];const u=o&&this.getDatasetMeta(o.datasetIndex).controller;u&&u[i+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const n=this._active||[],r=t.map(({datasetIndex:a,index:o})=>{const s=this.getDatasetMeta(a);if(!s)throw new Error("No dataset found at index "+a);return{datasetIndex:a,element:s.data[o],index:o}});!ou(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,a=(l,u)=>l.filter(c=>!u.some(d=>c.datasetIndex===d.datasetIndex&&c.index===d.index)),o=a(n,t),s=r?t:a(t,n);o.length&&this.updateHoverStyle(o,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=o=>(o.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,i)===!1)return;const a=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(a||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:i=[],options:a}=this,o=n,s=this._getActiveElements(t,i,r,o),l=zP(t),u=TB(t,this._lastEvent,r,l);r&&(this._lastEvent=null,Ue(a.onHover,[t,s,this],this),l&&Ue(a.onClick,[t,s,this],this));const c=!ou(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 a=this.options.hover;return this.getElementsAtEventForMode(t,a.mode,a,i)}},ae(Fr,"defaults",ft),ae(Fr,"instances",Dl),ae(Fr,"overrides",Pi),ae(Fr,"registry",Gn),ae(Fr,"version",$B),ae(Fr,"getChart",Ap),Fr);function Fp(){return Ge(ps.instances,e=>e._plugins.invalidate())}function kB(e,t,n){const{startAngle:r,pixelMargin:i,x:a,y:o,outerRadius:s,innerRadius:l}=t;let u=i/s;e.beginPath(),e.arc(a,o,s,r-u,n+u),l>i?(u=i/l,e.arc(a,o,l,n+u,r-u,!0)):e.arc(a,o,i,n+bt,r-bt),e.closePath(),e.clip()}function MB(e){return Gh(e,["outerStart","outerEnd","innerStart","innerEnd"])}function BB(e,t,n,r){const i=MB(e.options.borderRadius),a=(n-t)/2,o=Math.min(a,r*t/2),s=l=>{const u=(n-Math.min(a,l))*r/2;return Vt(l,0,Math.min(a,u))};return{outerStart:s(i.outerStart),outerEnd:s(i.outerEnd),innerStart:Vt(i.innerStart,0,o),innerEnd:Vt(i.innerEnd,0,o)}}function qi(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function fu(e,t,n,r,i,a){const{x:o,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,k=d>0?d-r:0,T=(M+k)/2,B=T!==0?g*T/(T+r):g;f=(g-B)/2}const p=Math.max(.001,g*d-n/lt)/d,b=(g-p)/2,v=l+b+f,y=i-b-f,{outerStart:x,outerEnd:S,innerStart:D,innerEnd:$}=BB(t,h,d,y-v),F=d-x,m=d-S,C=v+x/F,I=y-S/m,E=h+D,R=h+$,P=v+D/E,A=y-$/R;if(e.beginPath(),a){const M=(C+I)/2;if(e.arc(o,s,d,C,M),e.arc(o,s,d,M,I),S>0){const O=qi(m,I,o,s);e.arc(O.x,O.y,S,I,y+bt)}const k=qi(R,y,o,s);if(e.lineTo(k.x,k.y),$>0){const O=qi(R,A,o,s);e.arc(O.x,O.y,$,y+bt,A+Math.PI)}const T=(y-$/h+(v+D/h))/2;if(e.arc(o,s,h,y-$/h,T,!0),e.arc(o,s,h,T,v+D/h,!0),D>0){const O=qi(E,P,o,s);e.arc(O.x,O.y,D,P+Math.PI,v-bt)}const B=qi(F,v,o,s);if(e.lineTo(B.x,B.y),x>0){const O=qi(F,C,o,s);e.arc(O.x,O.y,x,v-bt,C)}}else{e.moveTo(o,s);const M=Math.cos(C)*d+o,k=Math.sin(C)*d+s;e.lineTo(M,k);const T=Math.cos(I)*d+o,B=Math.sin(I)*d+s;e.lineTo(T,B)}e.closePath()}function OB(e,t,n,r,i){const{fullCircles:a,startAngle:o,circumference:s}=t;let l=t.endAngle;if(a){fu(e,t,n,r,l,i);for(let u=0;u<a;++u)e.fill();isNaN(s)||(l=o+(s%ot||ot))}return fu(e,t,n,r,l,i),e.fill(),l}function NB(e,t,n,r,i){const{fullCircles:a,startAngle:o,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(a){fu(e,t,n,r,g,i);for(let p=0;p<a;++p)e.stroke();isNaN(s)||(g=o+(s%ot||ot))}f&&kB(e,t,g),a||(fu(e,t,n,r,g,i),e.stroke())}class to extends ei{constructor(n){super();ae(this,"circumference");ae(this,"endAngle");ae(this,"fullCircles");ae(this,"innerRadius");ae(this,"outerRadius");ae(this,"pixelMargin");ae(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 a=this.getProps(["x","y"],i),{angle:o,distance:s}=_3(a,{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,p=Re(h,u-l)>=ot||Ko(o,l,u),b=ia(s,c+f,d+f);return p&&b}getCenterPoint(n){const{x:r,y:i,startAngle:a,endAngle:o,innerRadius:s,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:u,spacing:c}=this.options,d=(a+o)/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,a=(r.offset||0)/4,o=(r.spacing||0)/2,s=r.circular;if(this.pixelMargin=r.borderAlign==="inner"?.33:0,this.fullCircles=i>ot?Math.floor(i/ot):0,i===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const l=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(l)*a,Math.sin(l)*a);const u=1-Math.sin(Math.min(lt,i||0)),c=a*u;n.fillStyle=r.backgroundColor,n.strokeStyle=r.borderColor,OB(n,this,c,o,s),NB(n,this,c,o,s),n.restore()}}ae(to,"id","arc"),ae(to,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),ae(to,"defaultRoutes",{backgroundColor:"backgroundColor"}),ae(to,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function q3(e,t,n=t){e.lineCap=Re(n.borderCapStyle,t.borderCapStyle),e.setLineDash(Re(n.borderDash,t.borderDash)),e.lineDashOffset=Re(n.borderDashOffset,t.borderDashOffset),e.lineJoin=Re(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=Re(n.borderWidth,t.borderWidth),e.strokeStyle=Re(n.borderColor,t.borderColor)}function VB(e,t,n){e.lineTo(n.x,n.y)}function LB(e){return e.stepped?bk:e.tension||e.cubicInterpolationMode==="monotone"?vk:VB}function Q3(e,t,n={}){const r=e.length,{start:i=0,end:a=r-1}=n,{start:o,end:s}=t,l=Math.max(i,o),u=Math.min(a,s),c=i<o&&a<o||i>s&&a>s;return{count:r,start:l,loop:t.loop,ilen:u<l&&!c?r+u-l:u-l}}function HB(e,t,n,r){const{points:i,options:a}=t,{count:o,start:s,loop:l,ilen:u}=Q3(i,n,r),c=LB(a);let{move:d=!0,reverse:h}=r||{},f,g,p;for(f=0;f<=u;++f)g=i[(s+(h?u-f:f))%o],!g.skip&&(d?(e.moveTo(g.x,g.y),d=!1):c(e,p,g,h,a.stepped),p=g);return l&&(g=i[(s+(h?u:0))%o],c(e,p,g,h,a.stepped)),!!l}function jB(e,t,n,r){const i=t.points,{count:a,start:o,ilen:s}=Q3(i,n,r),{move:l=!0,reverse:u}=r||{};let c=0,d=0,h,f,g,p,b,v;const y=S=>(o+(u?s-S:S))%a,x=()=>{p!==b&&(e.lineTo(c,b),e.lineTo(c,p),e.lineTo(c,v))};for(l&&(f=i[y(0)],e.moveTo(f.x,f.y)),h=0;h<=s;++h){if(f=i[y(h)],f.skip)continue;const S=f.x,D=f.y,$=S|0;$===g?(D<p?p=D:D>b&&(b=D),c=(d*c+S)/++d):(x(),e.lineTo(S,D),g=$,d=0,p=b=D),v=D}x()}function sf(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?jB:HB}function WB(e){return e.stepped?Kk:e.tension||e.cubicInterpolationMode==="monotone"?qk:fi}function zB(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),q3(e,t.options),e.stroke(i)}function GB(e,t,n,r){const{segments:i,options:a}=t,o=sf(t);for(const s of i)q3(e,a,s.style),e.beginPath(),o(e,t,s,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}const XB=typeof Path2D=="function";function ZB(e,t,n,r){XB&&!t.options.segment?zB(e,t,n,r):GB(e,t,n,r)}class aa extends ei{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;Wk(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=oM(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],a=this.points,o=rM(this,{property:n,start:i,end:i});if(!o.length)return;const s=[],l=WB(r);let u,c;for(u=0,c=o.length;u<c;++u){const{start:d,end:h}=o[u],f=a[d],g=a[h];if(f===g){s.push(f);continue}const p=Math.abs((i-f[n])/(g[n]-f[n])),b=l(f,g,p,r.stepped);b[n]=t[n],s.push(b)}return s.length===1?s[0]:s}pathSegment(t,n,r){return sf(this)(t,this,n,r)}path(t,n,r){const i=this.segments,a=sf(this);let o=this._loop;n=n||0,r=r||this.points.length-n;for(const s of i)o&=a(t,this,s,{start:n,end:n+r-1});return!!o}draw(t,n,r,i){const a=this.options||{};(this.points||[]).length&&a.borderWidth&&(t.save(),ZB(t,this,r,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}ae(aa,"id","line"),ae(aa,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),ae(aa,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),ae(aa,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"});function Tp(e,t,n,r){const i=e.options,{[n]:a}=e.getProps([n],r);return Math.abs(t-a)<i.radius+i.hitRadius}class po extends ei{constructor(n){super();ae(this,"parsed");ae(this,"skip");ae(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 a=this.options,{x:o,y:s}=this.getProps(["x","y"],i);return Math.pow(n-o,2)+Math.pow(r-s,2)<Math.pow(a.hitRadius+a.radius,2)}inXRange(n,r){return Tp(this,n,"x",r)}inYRange(n,r){return Tp(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||!qo(this,r,this.size(i)/2)||(n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.fillStyle=i.backgroundColor,nf(n,i,this.x,this.y))}getRange(){const n=this.options||{};return n.radius+n.hitRadius}}ae(po,"id","point"),ae(po,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),ae(po,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});const Pp=(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)}},YB=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class kp extends ei{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=Ue(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=Pt(r.font),a=i.size,o=this._computeTitleHeight(),{boxWidth:s,itemHeight:l}=Pp(r,a);let u,c;n.font=i.string,this.isHorizontal()?(u=this.maxWidth,c=this._fitRows(o,a,s,l)+10):(c=this.maxHeight,u=this._fitCols(o,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:a,maxWidth:o,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],u=this.lineWidths=[0],c=i+s;let d=t;a.textAlign="left",a.textBaseline="middle";let h=-1,f=-c;return this.legendItems.forEach((g,p)=>{const b=r+n/2+a.measureText(g.text).width;(p===0||u[u.length-1]+b+2*s>o)&&(d+=c,u[u.length-(p>0?0:1)]=0,f+=c,h++),l[p]={left:0,top:f,row:h,width:b,height:i},u[u.length-1]+=b+s}),d}_fitCols(t,n,r,i){const{ctx:a,maxHeight:o,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],u=this.columnSizes=[],c=o-t;let d=s,h=0,f=0,g=0,p=0;return this.legendItems.forEach((b,v)=>{const{itemWidth:y,itemHeight:x}=UB(r,n,a,b,i);v>0&&f+x+2*s>c&&(d+=h+s,u.push({width:h,height:f}),g+=h+s,p++,h=f=0),l[v]={left:g,top:f,col:p,width:y,height:x},h=Math.max(h,y),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:a}}=this,o=ga(a,this.left,this.width);if(this.isHorizontal()){let s=0,l=Rt(r,this.left+i,this.right-this.lineWidths[s]);for(const u of n)s!==u.row&&(s=u.row,l=Rt(r,this.left+i,this.right-this.lineWidths[s])),u.top+=this.top+t+i,u.left=o.leftForLtr(o.x(l),u.width),l+=u.width+i}else{let s=0,l=Rt(r,this.top+t+i,this.bottom-this.columnSizes[s].height);for(const u of n)u.col!==s&&(s=u.col,l=Rt(r,this.top+t+i,this.bottom-this.columnSizes[s].height)),u.top=l,u.left+=this.left+i,u.left=o.leftForLtr(o.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;Wh(t,this),this._draw(),zh(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:i}=this,{align:a,labels:o}=t,s=ft.color,l=ga(t.rtl,this.left,this.width),u=Pt(o.font),{padding:c}=o,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:p,itemHeight:b}=Pp(o,d),v=function($,F,m){if(isNaN(g)||g<=0||isNaN(p)||p<0)return;i.save();const C=Re(m.lineWidth,1);if(i.fillStyle=Re(m.fillStyle,s),i.lineCap=Re(m.lineCap,"butt"),i.lineDashOffset=Re(m.lineDashOffset,0),i.lineJoin=Re(m.lineJoin,"miter"),i.lineWidth=C,i.strokeStyle=Re(m.strokeStyle,s),i.setLineDash(Re(m.lineDash,[])),o.usePointStyle){const I={radius:p*Math.SQRT2/2,pointStyle:m.pointStyle,rotation:m.rotation,borderWidth:C},E=l.xPlus($,g/2),R=F+h;T3(i,I,E,R,o.pointStyleWidth&&g)}else{const I=F+Math.max((d-p)/2,0),E=l.leftForLtr($,g),R=mo(m.borderRadius);i.beginPath(),Object.values(R).some(P=>P!==0)?rf(i,{x:E,y:I,w:g,h:p,radius:R}):i.rect(E,I,g,p),i.fill(),C!==0&&i.stroke()}i.restore()},y=function($,F,m){Qo(i,m.text,$,F+b/2,u,{strikethrough:m.hidden,textAlign:l.textAlign(m.textAlign)})},x=this.isHorizontal(),S=this._computeTitleHeight();x?f={x:Rt(a,this.left+c,this.right-r[0]),y:this.top+c+S,line:0}:f={x:this.left+c,y:Rt(a,this.top+S+c,this.bottom-n[0].height),line:0},N3(this.ctx,t.textDirection);const D=b+c;this.legendItems.forEach(($,F)=>{i.strokeStyle=$.fontColor,i.fillStyle=$.fontColor;const m=i.measureText($.text).width,C=l.textAlign($.textAlign||($.textAlign=o.textAlign)),I=g+h+m;let E=f.x,R=f.y;l.setWidth(this.width),x?F>0&&E+I+c>this.right&&(R=f.y+=D,f.line++,E=f.x=Rt(a,this.left+c,this.right-r[f.line])):F>0&&R+D>this.bottom&&(E=f.x=E+n[f.line].width+c,f.line++,R=f.y=Rt(a,this.top+S+c,this.bottom-n[f.line].height));const P=l.x(E);if(v(P,R,$),E=ik(C,E+g+h,x?E+I:this.right,t.rtl),y(l.x(E),R,$),x)f.x+=I+c;else if(typeof $.text!="string"){const A=u.lineHeight;f.y+=eC($,A)+c}else f.y+=D}),V3(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=Pt(n.font),i=In(n.padding);if(!n.display)return;const a=ga(t.rtl,this.left,this.width),o=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=Rt(t.align,d,this.right-h);else{const g=this.columnSizes.reduce((p,b)=>Math.max(p,b.height),0);c=u+Rt(t.align,this.top,this.bottom-g-t.labels.padding-this._computeTitleHeight())}const f=Rt(s,d,d+h);o.textAlign=a.textAlign(Lh(s)),o.textBaseline="middle",o.strokeStyle=n.color,o.fillStyle=n.color,o.font=r.string,Qo(o,n.text,f,c,r)}_computeTitleHeight(){const t=this.options.title,n=Pt(t.font),r=In(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,i,a;if(ia(t,this.left,this.right)&&ia(n,this.top,this.bottom)){for(a=this.legendHitBoxes,r=0;r<a.length;++r)if(i=a[r],ia(t,i.left,i.left+i.width)&&ia(n,i.top,i.top+i.height))return this.legendItems[r]}return null}handleEvent(t){const n=this.options;if(!qB(t.type,n))return;const r=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const i=this._hoveredItem,a=YB(i,r);i&&!a&&Ue(n.onLeave,[t,i,this],this),this._hoveredItem=r,r&&!a&&Ue(n.onHover,[t,r,this],this)}else r&&Ue(n.onClick,[t,r,this],this)}}function UB(e,t,n,r,i){const a=JB(r,e,t,n),o=KB(i,r,t.lineHeight);return{itemWidth:a,itemHeight:o}}function JB(e,t,n,r){let i=e.text;return i&&typeof i!="string"&&(i=i.reduce((a,o)=>a.length>o.length?a:o)),t+n.size/2+r.measureText(i).width}function KB(e,t,n){let r=e;return typeof t.text!="string"&&(r=eC(t,n)),r}function eC(e,t){const n=e.text?e.text.length:0;return t*n}function qB(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var tC={id:"legend",_element:kp,start(e,t,n){const r=e.legend=new kp({ctx:e.ctx,options:n,chart:e});Sn.configure(e,r,n),Sn.addBox(e,r)},stop(e){Sn.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;Sn.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:a,useBorderRadius:o,borderRadius:s}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const u=l.controller.getStyle(n?0:void 0),c=In(u.borderWidth);return{text:t[l.index].label,fillStyle:u.backgroundColor,fontColor:a,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:o&&(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 nC extends ei{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=Ct(r.text)?r.text.length:1;this._padding=In(r.padding);const a=i*Pt(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=a:this.width=a}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:r,bottom:i,right:a,options:o}=this,s=o.align;let l=0,u,c,d;return this.isHorizontal()?(c=Rt(s,r,a),d=n+t,u=a-r):(o.position==="left"?(c=r+t,d=Rt(s,i,n),l=lt*-.5):(c=a-t,d=Rt(s,n,i),l=lt*.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=Pt(n.font),a=r.lineHeight/2+this._padding.top,{titleX:o,titleY:s,maxWidth:l,rotation:u}=this._drawArgs(a);Qo(t,n.text,0,0,r,{color:n.color,maxWidth:l,rotation:u,textAlign:Lh(n.align),textBaseline:"middle",translation:[o,s]})}}function QB(e,t){const n=new nC({ctx:e.ctx,options:t,chart:e});Sn.configure(e,n,t),Sn.addBox(e,n),e.titleBlock=n}var rC={id:"title",_element:nC,start(e,t,n){QB(e,n)},stop(e){const t=e.titleBlock;Sn.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;Sn.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 no={average(e){if(!e.length)return!1;let t,n,r=new Set,i=0,a=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,++a}}return{x:[...r].reduce((s,l)=>s+l)/r.size,y:i/a}},nearest(e,t){if(!e.length)return!1;let n=t.x,r=t.y,i=Number.POSITIVE_INFINITY,a,o,s;for(a=0,o=e.length;a<o;++a){const l=e[a].element;if(l&&l.hasValue()){const u=l.getCenterPoint(),c=ef(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 Wn(e,t){return t&&(Ct(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function dr(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
177
+ */class uM{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,r,i){const a=n.listeners[i],o=n.duration;a.forEach(s=>s({chart:t,initial:n.initial,numSteps:o,currentStep:Math.min(r-n.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=R3.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 a=r.items;let o=a.length-1,s=!1,l;for(;o>=0;--o)l=a[o],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(t),s=!0):(a[o]=a[a.length-1],a.pop());s&&(i.draw(),this._notify(i,r,t,"progress")),a.length||(r.running=!1,this._notify(i,r,t,"complete"),r.initial=!1),n+=a.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 cr=new uM;const op="transparent",cM={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=U0(e||op),i=r.valid&&U0(t||op);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class dM{constructor(t,n,r,i){const a=n[r];i=Us([t.to,i,a,t.from]);const o=Us([t.from,a,i]);this._active=!0,this._fn=t.fn||cM[t.type||typeof o],this._easing=ho[t.easing]||ho.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=o,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],a=r-this._start,o=this._duration-a;this._start=r,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=a,this._loop=!!t.loop,this._to=Us([t.to,n,i,t.from]),this._from=Us([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,a=this._from,o=this._loop,s=this._to;let l;if(this._active=a!==s&&(o||n<r),!this._active){this._target[i]=s,this._notify(!0);return}if(n<0){this._target[i]=a;return}l=n/r%2,l=o&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(a,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 H3{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!ke(t))return;const n=Object.keys(ft.animation),r=this._properties;Object.getOwnPropertyNames(t).forEach(i=>{const a=t[i];if(!ke(a))return;const o={};for(const s of n)o[s]=a[s];(Ct(a.properties)&&a.properties||[i]).forEach(s=>{(s===i||!r.has(s))&&r.set(s,o)})})}_animateOptions(t,n){const r=n.options,i=hM(t,r);if(!i)return[];const a=this._createAnimations(i,r);return r.$shared&&fM(t.options.$animations,r).then(()=>{t.options=r},()=>{}),a}_createAnimations(t,n){const r=this._properties,i=[],a=t.$animations||(t.$animations={}),o=Object.keys(n),s=Date.now();let l;for(l=o.length-1;l>=0;--l){const u=o[l];if(u.charAt(0)==="$")continue;if(u==="options"){i.push(...this._animateOptions(t,n));continue}const c=n[u];let d=a[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}a[u]=d=new dM(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 cr.add(this._chart,r),!0}}function fM(e,t){const n=[],r=Object.keys(t);for(let i=0;i<r.length;i++){const a=e[r[i]];a&&a.active()&&n.push(a.wait())}return Promise.all(n)}function hM(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 sp(e,t){const n=e&&e.options||{},r=n.reverse,i=n.min===void 0?t:0,a=n.max===void 0?t:0;return{start:r?a:i,end:r?i:a}}function gM(e,t,n){if(n===!1)return!1;const r=sp(e,n),i=sp(t,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}function mM(e){let t,n,r,i;return ke(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 j3(e,t){const n=[],r=e._getSortedDatasetMetas(t);let i,a;for(i=0,a=r.length;i<a;++i)n.push(r[i].index);return n}function lp(e,t,n,r={}){const i=e.keys,a=r.mode==="single";let o,s,l,u;if(t!==null){for(o=0,s=i.length;o<s;++o){if(l=+i[o],l===n){if(r.all)continue;break}u=e.values[l],En(u)&&(a||t===0||Ea(t)===Ea(u))&&(t+=u)}return t}}function pM(e,t){const{iScale:n,vScale:r}=t,i=n.axis==="x"?"x":"y",a=r.axis==="x"?"x":"y",o=Object.keys(e),s=new Array(o.length);let l,u,c;for(l=0,u=o.length;l<u;++l)c=o[l],s[l]={[i]:c,[a]:e[c]};return s}function up(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function bM(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function vM(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 yM(e,t,n){const r=e[t]||(e[t]={});return r[n]||(r[n]={})}function cp(e,t,n,r){for(const i of t.getMatchingVisibleMetas(r).reverse()){const a=e[i.index];if(n&&a>0||!n&&a<0)return i.index}return null}function dp(e,t){const{chart:n,_cachedMeta:r}=e,i=n._stacks||(n._stacks={}),{iScale:a,vScale:o,index:s}=r,l=a.axis,u=o.axis,c=bM(a,o,r),d=t.length;let h;for(let f=0;f<d;++f){const g=t[f],{[l]:p,[u]:b}=g,v=g._stacks||(g._stacks={});h=v[u]=yM(i,c,p),h[s]=b,h._top=cp(h,o,!0,r.type),h._bottom=cp(h,o,!1,r.type);const y=h._visualValues||(h._visualValues={});y[s]=b}}function Zc(e,t){const n=e.scales;return Object.keys(n).filter(r=>n[r].axis===t).shift()}function xM(e,t){return Vi(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function CM(e,t,n){return Vi(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function La(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 a=i._stacks;if(!a||a[r]===void 0||a[r][n]===void 0)return;delete a[r][n],a[r]._visualValues!==void 0&&a[r]._visualValues[n]!==void 0&&delete a[r]._visualValues[n]}}}const Yc=e=>e==="reset"||e==="none",fp=(e,t)=>t?e:Object.assign({},e),wM=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:j3(n,!0),values:null};class pa{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=up(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&&La(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,a=n.xAxisID=Re(r.xAxisID,Zc(t,"x")),o=n.yAxisID=Re(r.yAxisID,Zc(t,"y")),s=n.rAxisID=Re(r.rAxisID,Zc(t,"r")),l=n.indexAxis,u=n.iAxisID=i(l,a,o,s),c=n.vAxisID=i(l,o,a,s);n.xScale=this.getScaleForId(a),n.yScale=this.getScaleForId(o),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&&X0(this._data,this),t._stacked&&La(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(ke(n)){const i=this._cachedMeta;this._data=pM(n,i)}else if(r!==n){if(r){X0(r,this);const i=this._cachedMeta;La(i),i._parsed=[]}n&&Object.isExtensible(n)&&tk(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 a=n._stacked;n._stacked=up(n.vScale,n),n.stack!==r.stack&&(i=!0,La(n),n.stack=r.stack),this._resyncElements(t),(i||a!==n._stacked)&&dp(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:a,_stacked:o}=r,s=a.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{Ct(i[t])?h=this.parseArrayData(r,i,t,n):ke(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}o&&dp(this,h)}parsePrimitiveData(t,n,r,i){const{iScale:a,vScale:o}=t,s=a.axis,l=o.axis,u=a.getLabels(),c=a===o,d=new Array(i);let h,f,g;for(h=0,f=i;h<f;++h)g=h+r,d[h]={[s]:c||a.parse(u[g],g),[l]:o.parse(n[g],g)};return d}parseArrayData(t,n,r,i){const{xScale:a,yScale:o}=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:a.parse(d[0],c),y:o.parse(d[1],c)};return s}parseObjectData(t,n,r,i){const{xScale:a,yScale:o}=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:a.parse(Uo(f,s),h),y:o.parse(Uo(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,a=this._cachedMeta,o=n[t.axis],s={keys:j3(i,!0),values:n._stacks[t.axis]._visualValues};return lp(s,o,a.index,{mode:r})}updateRangeFromParsed(t,n,r,i){const a=r[n.axis];let o=a===null?NaN:a;const s=i&&r._stacks[n.axis];i&&s&&(i.values=s,o=lp(i,a,this._cachedMeta.index)),t.min=Math.min(t.min,o),t.max=Math.max(t.max,o)}getMinMax(t,n){const r=this._cachedMeta,i=r._parsed,a=r._sorted&&t===r.iScale,o=i.length,s=this._getOtherScale(t),l=wM(n,r,this.chart),u={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:d}=vM(s);let h,f;function g(){f=i[h];const p=f[s.axis];return!En(f[t.axis])||c>p||d<p}for(h=0;h<o&&!(!g()&&(this.updateRangeFromParsed(u,t,f,l),a));++h);if(a){for(h=o-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,a,o;for(i=0,a=n.length;i<a;++i)o=n[i][t.axis],En(o)&&r.push(o);return r}getMaxOverflow(){return!1}getLabelAndValue(t){const n=this._cachedMeta,r=n.iScale,i=n.vScale,a=this.getParsed(t);return{label:r?""+r.getLabelForValue(a[r.axis]):"",value:i?""+i.getLabelForValue(a[i.axis]):""}}_update(t){const n=this._cachedMeta;this.update(t||"default"),n._clip=mM(Re(this.options.clip,gM(n.xScale,n.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,n=this.chart,r=this._cachedMeta,i=r.data||[],a=n.chartArea,o=[],s=this._drawStart||0,l=this._drawCount||i.length-s,u=this.options.drawActiveElementsOnTop;let c;for(r.dataset&&r.dataset.draw(t,a,s,l),c=s;c<s+l;++c){const d=i[c];d.hidden||(d.active&&u?o.push(d):d.draw(t,a))}for(c=0;c<o.length;++c)o[c].draw(t,a)}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 a;if(t>=0&&t<this._cachedMeta.data.length){const o=this._cachedMeta.data[t];a=o.$context||(o.$context=CM(this.getContext(),t,o)),a.parsed=this.getParsed(t),a.raw=i.data[t],a.index=a.dataIndex=t}else a=this.$context||(this.$context=xM(this.chart.getContext(),this.index)),a.dataset=i,a.index=a.datasetIndex=this.index;return a.active=!!n,a.mode=r,a}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",a=this._cachedDataOpts,o=t+"-"+n,s=a[o],l=this.enableOptionSharing&&lu(r);if(s)return fp(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(ft.elements[t]),g=()=>this.getContext(r,i,n),p=u.resolveNamedOptions(h,f,g,d);return p.$shared&&(p.$shared=l,a[o]=Object.freeze(fp(p,l))),p}_resolveAnimations(t,n,r){const i=this.chart,a=this._cachedDataOpts,o=`animation-${n}`,s=a[o];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 H3(i,l&&l.animations);return l&&l._cacheable&&(a[o]=Object.freeze(u)),u}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||Yc(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),i=this._sharedOptions,a=this.getSharedOptions(r),o=this.includeOptions(n,a)||a!==i;return this.updateSharedOptions(a,n,r),{sharedOptions:a,includeOptions:o}}updateElement(t,n,r,i){Yc(i)?Object.assign(t,r):this._resolveAnimations(n,i).update(t,r)}updateSharedOptions(t,n,r){t&&!Yc(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,i){t.active=i;const a=this.getStyle(n,i);this._resolveAnimations(n,r,i).update(t,{options:!i&&this.getSharedOptions(a)||a})}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,a=n.length,o=Math.min(a,i);o&&this.parse(0,o),a>i?this._insertElements(i,a-i,t):a<i&&this._removeElements(a,i-a)}_insertElements(t,n,r=!0){const i=this._cachedMeta,a=i.data,o=t+n;let s;const l=u=>{for(u.length+=n,s=u.length-1;s>=o;s--)u[s]=u[s-n]};for(l(a),s=t;s<o;++s)a[s]=new this.dataElementType;this._parsing&&l(i._parsed),this.parse(t,n),r&&this.updateElements(a,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&&La(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])}}ae(pa,"defaults",{}),ae(pa,"datasetElementType",null),ae(pa,"dataElementType",null);function DM(e,t,n){let r=1,i=1,a=0,o=0;if(t<ot){const s=e,l=s+t,u=Math.cos(s),c=Math.sin(s),d=Math.cos(l),h=Math.sin(l),f=(x,S,D)=>Ko(x,s,l,!0)?1:Math.max(S,S*n,D,D*n),g=(x,S,D)=>Ko(x,s,l,!0)?-1:Math.min(S,S*n,D,D*n),p=f(0,u,d),b=f(bt,c,h),v=g(lt,u,d),y=g(lt+bt,c,h);r=(p-v)/2,i=(b-y)/2,a=-(p+v)/2,o=-(b+y)/2}return{ratioX:r,ratioY:i,offsetX:a,offsetY:o}}class Qa extends pa{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 a=l=>+r[l];if(ke(r[t])){const{key:l="value"}=this._parsing;a=u=>+Uo(r[u],l)}let o,s;for(o=t,s=t+n;o<s;++o)i._parsed[o]=a(o)}}_getRotation(){return xr(this.options.rotation-90)}_getCircumference(){return xr(this.options.circumference)}_getRotationExtents(){let t=ot,n=-ot;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,a=i._getRotation(),o=i._getCircumference();t=Math.min(t,a),n=Math.max(n,a+o)}return{rotation:t,circumference:n-t}}update(t){const n=this.chart,{chartArea:r}=n,i=this._cachedMeta,a=i.data,o=this.getMaxBorderWidth()+this.getMaxOffset(a)+this.options.spacing,s=Math.max((Math.min(r.width,r.height)-o)/2,0),l=Math.min(VP(this.options.cutout,s),1),u=this._getRingWeight(this.index),{circumference:c,rotation:d}=this._getRotationExtents(),{ratioX:h,ratioY:f,offsetX:g,offsetY:p}=DM(d,c,l),b=(r.width-o)/h,v=(r.height-o)/f,y=Math.max(Math.min(b,v)/2,0),x=S3(this.options.radius,y),S=Math.max(x*l,0),D=(x-S)/this._getVisibleDatasetWeightTotal();this.offsetX=g*x,this.offsetY=p*x,i.total=this.calculateTotal(),this.outerRadius=x-D*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-D*u,0),this.updateElements(a,0,a.length,t)}_circumference(t,n){const r=this.options,i=this._cachedMeta,a=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]*a/ot)}updateElements(t,n,r,i){const a=i==="reset",o=this.chart,s=o.chartArea,u=o.options.animation,c=(s.left+s.right)/2,d=(s.top+s.bottom)/2,h=a&&u.animateScale,f=h?0:this.innerRadius,g=h?0:this.outerRadius,{sharedOptions:p,includeOptions:b}=this._getSharedOptions(n,i);let v=this._getRotation(),y;for(y=0;y<n;++y)v+=this._circumference(y,a);for(y=n;y<n+r;++y){const x=this._circumference(y,a),S=t[y],D={x:c+this.offsetX,y:d+this.offsetY,startAngle:v,endAngle:v+x,circumference:x,outerRadius:g,innerRadius:f};b&&(D.options=p||this.resolveDataElementOptions(y,S.active?"active":i)),v+=x,this.updateElement(S,y,D,i)}}calculateTotal(){const t=this._cachedMeta,n=t.data;let r=0,i;for(i=0;i<n.length;i++){const a=t._parsed[i];a!==null&&!isNaN(a)&&this.chart.getDataVisibility(i)&&!n[i].hidden&&(r+=Math.abs(a))}return r}calculateCircumference(t){const n=this._cachedMeta.total;return n>0&&!isNaN(t)?ot*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],a=jh(n._parsed[t],r.options.locale);return{label:i[t]||"",value:a}}getMaxBorderWidth(t){let n=0;const r=this.chart;let i,a,o,s,l;if(!t){for(i=0,a=r.data.datasets.length;i<a;++i)if(r.isDatasetVisible(i)){o=r.getDatasetMeta(i),t=o.data,s=o.controller;break}}if(!t)return 0;for(i=0,a=t.length;i<a;++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 a=this.resolveDataElementOptions(r);n=Math.max(n,a.offset||0,a.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(Re(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}ae(Qa,"id","doughnut"),ae(Qa,"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"}),ae(Qa,"descriptors",{_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),ae(Qa,"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((a,o)=>{const l=t.getDatasetMeta(0).controller.getStyle(o);return{text:a,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:i,lineWidth:l.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(o),index:o}})}return[]}},onClick(t,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}}});class Cl extends pa{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:r,data:i=[],_dataset:a}=n,o=this.chart._animationsDisabled;let{start:s,count:l}=ak(n,i,o);this._drawStart=s,this._drawCount=l,ok(n)&&(s=0,l=i.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!a._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:!o,options:u},t),this.updateElements(i,s,l,t)}updateElements(t,n,r,i){const a=i==="reset",{iScale:o,vScale:s,_stacked:l,_dataset:u}=this._cachedMeta,{sharedOptions:c,includeOptions:d}=this._getSharedOptions(n,i),h=o.axis,f=s.axis,{spanGaps:g,segment:p}=this.options,b=Jo(g)?g:Number.POSITIVE_INFINITY,v=this.chart._animationsDisabled||a||i==="none",y=n+r,x=t.length;let S=n>0&&this.getParsed(n-1);for(let D=0;D<x;++D){const $=t[D],F=v?$:{};if(D<n||D>=y){F.skip=!0;continue}const m=this.getParsed(D),C=at(m[f]),I=F[h]=o.getPixelForValue(m[h],D),E=F[f]=a||C?s.getBasePixel():s.getPixelForValue(l?this.applyStack(s,m,l):m[f],D);F.skip=isNaN(I)||isNaN(E)||C,F.stop=D>0&&Math.abs(m[h]-S[h])>b,p&&(F.parsed=m,F.raw=u.data[D]),d&&(F.options=c||this.resolveDataElementOptions(D,$.active?"active":i)),v||this.updateElement($,D,F,i),S=m}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,r=n.options&&n.options.borderWidth||0,i=t.data||[];if(!i.length)return r;const a=i[0].size(this.resolveDataElementOptions(0)),o=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,a,o)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}ae(Cl,"id","line"),ae(Cl,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),ae(Cl,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});function si(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Kh{constructor(t){ae(this,"options");this.options=t||{}}static override(t){Object.assign(Kh.prototype,t)}init(){}formats(){return si()}parse(){return si()}format(){return si()}add(){return si()}diff(){return si()}startOf(){return si()}endOf(){return si()}}var SM={_date:Kh};function EM(e,t,n,r){const{controller:i,data:a,_sorted:o}=e,s=i._cachedMeta.iScale;if(s&&t===s.axis&&t!=="r"&&o&&a.length){const l=s._reversePixels?QP:Ci;if(r){if(i._sharedOptions){const u=a[0],c=typeof u.getRange=="function"&&u.getRange(t);if(c){const d=l(a,t,n-c),h=l(a,t,n+c);return{lo:d.lo,hi:h.hi}}}}else return l(a,t,n)}return{lo:0,hi:a.length-1}}function Gu(e,t,n,r,i){const a=e.getSortedVisibleDatasetMetas(),o=n[t];for(let s=0,l=a.length;s<l;++s){const{index:u,data:c}=a[s],{lo:d,hi:h}=EM(a[s],t,o,i);for(let f=d;f<=h;++f){const g=c[f];g.skip||r(g,u,f)}}}function IM(e){const t=e.indexOf("x")!==-1,n=e.indexOf("y")!==-1;return function(r,i){const a=t?Math.abs(r.x-i.x):0,o=n?Math.abs(r.y-i.y):0;return Math.sqrt(Math.pow(a,2)+Math.pow(o,2))}}function Uc(e,t,n,r,i){const a=[];return!i&&!e.isPointInArea(t)||Gu(e,n,t,function(s,l,u){!i&&!qo(s,e.chartArea,0)||s.inRange(t.x,t.y,r)&&a.push({element:s,datasetIndex:l,index:u})},!0),a}function _M(e,t,n,r){let i=[];function a(o,s,l){const{startAngle:u,endAngle:c}=o.getProps(["startAngle","endAngle"],r),{angle:d}=_3(o,{x:t.x,y:t.y});Ko(d,u,c)&&i.push({element:o,datasetIndex:s,index:l})}return Gu(e,n,t,a),i}function $M(e,t,n,r,i,a){let o=[];const s=IM(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(!(!!a||e.isPointInArea(g))&&!f)return;const b=s(t,g);b<l?(o=[{element:c,datasetIndex:d,index:h}],l=b):b===l&&o.push({element:c,datasetIndex:d,index:h})}return Gu(e,n,t,u),o}function Jc(e,t,n,r,i,a){return!a&&!e.isPointInArea(t)?[]:n==="r"&&!r?_M(e,t,n,i):$M(e,t,n,r,i,a)}function hp(e,t,n,r,i){const a=[],o=n==="x"?"inXRange":"inYRange";let s=!1;return Gu(e,n,t,(l,u,c)=>{l[o](t[n],i)&&(a.push({element:l,datasetIndex:u,index:c}),s=s||l.inRange(t.x,t.y,i))}),r&&!s?[]:a}var RM={modes:{index(e,t,n,r){const i=di(t,e),a=n.axis||"x",o=n.includeInvisible||!1,s=n.intersect?Uc(e,i,a,r,o):Jc(e,i,a,!1,r,o),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=di(t,e),a=n.axis||"xy",o=n.includeInvisible||!1;let s=n.intersect?Uc(e,i,a,r,o):Jc(e,i,a,!1,r,o);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=di(t,e),a=n.axis||"xy",o=n.includeInvisible||!1;return Uc(e,i,a,r,o)},nearest(e,t,n,r){const i=di(t,e),a=n.axis||"xy",o=n.includeInvisible||!1;return Jc(e,i,a,n.intersect,r,o)},x(e,t,n,r){const i=di(t,e);return hp(e,i,"x",n.intersect,r)},y(e,t,n,r){const i=di(t,e);return hp(e,i,"y",n.intersect,r)}}};const W3=["left","top","right","bottom"];function Ha(e,t){return e.filter(n=>n.pos===t)}function gp(e,t){return e.filter(n=>W3.indexOf(n.pos)===-1&&n.box.axis===t)}function ja(e,t){return e.sort((n,r)=>{const i=t?r:n,a=t?n:r;return i.weight===a.weight?i.index-a.index:i.weight-a.weight})}function AM(e){const t=[];let n,r,i,a,o,s;for(n=0,r=(e||[]).length;n<r;++n)i=e[n],{position:a,options:{stack:o,stackWeight:s=1}}=i,t.push({index:n,box:i,pos:a,horizontal:i.isHorizontal(),weight:i.weight,stack:o&&a+o,stackWeight:s});return t}function FM(e){const t={};for(const n of e){const{stack:r,pos:i,stackWeight:a}=n;if(!r||!W3.includes(i))continue;const o=t[r]||(t[r]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=a}return t}function TM(e,t){const n=FM(e),{vBoxMaxWidth:r,hBoxMaxHeight:i}=t;let a,o,s;for(a=0,o=e.length;a<o;++a){s=e[a];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 PM(e){const t=AM(e),n=ja(t.filter(u=>u.box.fullSize),!0),r=ja(Ha(t,"left"),!0),i=ja(Ha(t,"right")),a=ja(Ha(t,"top"),!0),o=ja(Ha(t,"bottom")),s=gp(t,"x"),l=gp(t,"y");return{fullSize:n,leftAndTop:r.concat(a),rightAndBottom:i.concat(l).concat(o).concat(s),chartArea:Ha(t,"chartArea"),vertical:r.concat(i).concat(l),horizontal:a.concat(o).concat(s)}}function mp(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function z3(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 kM(e,t,n,r){const{pos:i,box:a}=n,o=e.maxPadding;if(!ke(i)){n.size&&(e[i]-=n.size);const d=r[n.stack]||{size:0,count:1};d.size=Math.max(d.size,n.horizontal?a.height:a.width),n.size=d.size/d.count,e[i]+=n.size}a.getPadding&&z3(o,a.getPadding());const s=Math.max(0,t.outerWidth-mp(o,e,"left","right")),l=Math.max(0,t.outerHeight-mp(o,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 MM(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 BM(e,t){const n=t.maxPadding;function r(i){const a={left:0,top:0,right:0,bottom:0};return i.forEach(o=>{a[o]=Math.max(t[o],n[o])}),a}return r(e?["left","right"]:["top","bottom"])}function eo(e,t,n,r){const i=[];let a,o,s,l,u,c;for(a=0,o=e.length,u=0;a<o;++a){s=e[a],l=s.box,l.update(s.width||t.w,s.height||t.h,BM(s.horizontal,t));const{same:d,other:h}=kM(t,n,s,r);u|=d&&i.length,c=c||h,l.fullSize||i.push(s)}return u&&eo(i,t,n,r)||c}function qs(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 pp(e,t,n,r){const i=n.padding;let{x:a,y:o}=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;lu(u.start)&&(o=u.start),l.fullSize?qs(l,i.left,o,n.outerWidth-i.right-i.left,h):qs(l,t.left+u.placed,o,d,h),u.start=o,u.placed+=d,o=l.bottom}else{const d=t.h*c,h=u.size||l.width;lu(u.start)&&(a=u.start),l.fullSize?qs(l,a,i.top,h,n.outerHeight-i.bottom-i.top):qs(l,a,t.top+u.placed,h,d),u.start=a,u.placed+=d,a=l.right}}t.x=a,t.y=o}var Sn={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=In(e.options.layout.padding),a=Math.max(t-i.width,0),o=Math.max(n-i.height,0),s=PM(e.boxes),l=s.vertical,u=s.horizontal;Ge(e.boxes,p=>{typeof p.beforeLayout=="function"&&p.beforeLayout()});const c=l.reduce((p,b)=>b.box.options&&b.box.options.display===!1?p:p+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:a,availableHeight:o,vBoxMaxWidth:a/2/c,hBoxMaxHeight:o/2}),h=Object.assign({},i);z3(h,In(r));const f=Object.assign({maxPadding:h,w:a,h:o,x:i.left,y:i.top},i),g=TM(l.concat(u),d);eo(s.fullSize,f,d,g),eo(l,f,d,g),eo(u,f,d,g)&&eo(l,f,d,g),MM(f),pp(s.leftAndTop,f,d,g),f.x+=f.w,f.y+=f.h,pp(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},Ge(s.chartArea,p=>{const b=p.box;Object.assign(b,e.chartArea),b.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})})}};class G3{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 OM extends G3{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const wl="$chartjs",NM={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},bp=e=>e===null||e==="";function VM(e,t){const n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e[wl]={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",bp(i)){const a=np(e,"width");a!==void 0&&(e.width=a)}if(bp(r))if(e.style.height==="")e.height=e.width/(t||2);else{const a=np(e,"height");a!==void 0&&(e.height=a)}return e}const X3=Jk?{passive:!0}:!1;function LM(e,t,n){e&&e.addEventListener(t,n,X3)}function HM(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,X3)}function jM(e,t){const n=NM[e.type]||e.type,{x:r,y:i}=di(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:i!==void 0?i:null}}function du(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function WM(e,t,n){const r=e.canvas,i=new MutationObserver(a=>{let o=!1;for(const s of a)o=o||du(s.addedNodes,r),o=o&&!du(s.removedNodes,r);o&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function zM(e,t,n){const r=e.canvas,i=new MutationObserver(a=>{let o=!1;for(const s of a)o=o||du(s.removedNodes,r),o=o&&!du(s.addedNodes,r);o&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const es=new Map;let vp=0;function Z3(){const e=window.devicePixelRatio;e!==vp&&(vp=e,es.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function GM(e,t){es.size||window.addEventListener("resize",Z3),es.set(e,t)}function XM(e){es.delete(e),es.size||window.removeEventListener("resize",Z3)}function ZM(e,t,n){const r=e.canvas,i=r&&Jh(r);if(!i)return;const a=A3((s,l)=>{const u=i.clientWidth;n(s,l),u<i.clientWidth&&n()},window),o=new ResizeObserver(s=>{const l=s[0],u=l.contentRect.width,c=l.contentRect.height;u===0&&c===0||a(u,c)});return o.observe(i),GM(e,a),o}function Kc(e,t,n){n&&n.disconnect(),t==="resize"&&XM(e)}function YM(e,t,n){const r=e.canvas,i=A3(a=>{e.ctx!==null&&n(jM(a,e))},e);return LM(r,t,i),i}class UM extends G3{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(VM(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[wl])return!1;const r=n[wl].initial;["height","width"].forEach(a=>{const o=r[a];at(o)?n.removeAttribute(a):n.setAttribute(a,o)});const i=r.style||{};return Object.keys(i).forEach(a=>{n.style[a]=i[a]}),n.width=n.width,delete n[wl],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const i=t.$proxies||(t.$proxies={}),o={attach:WM,detach:zM,resize:ZM}[n]||YM;i[n]=o(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),i=r[n];if(!i)return;({attach:Kc,detach:Kc,resize:Kc}[n]||HM)(t,n,i),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,i){return Uk(t,n,r,i)}isAttached(t){const n=t&&Jh(t);return!!(n&&n.isConnected)}}function JM(e){return!Uh()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?OM:UM}var ol;let ei=(ol=class{constructor(){ae(this,"x");ae(this,"y");ae(this,"active",!1);ae(this,"options");ae(this,"$animations")}tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return Jo(this.x)&&Jo(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const i={};return t.forEach(a=>{i[a]=r[a]&&r[a].active()?r[a]._to:this[a]}),i}},ae(ol,"defaults",{}),ae(ol,"defaultRoutes"),ol);function KM(e,t){const n=e.options.ticks,r=qM(e),i=Math.min(n.maxTicksLimit||r,r),a=n.major.enabled?eB(t):[],o=a.length,s=a[0],l=a[o-1],u=[];if(o>i)return tB(t,u,a,o/i),u;const c=QM(a,t,i);if(o>0){let d,h;const f=o>1?Math.round((l-s)/(o-1)):null;for(Qs(t,u,c,at(f)?0:s-f,s),d=0,h=o-1;d<h;d++)Qs(t,u,c,a[d],a[d+1]);return Qs(t,u,c,l,at(f)?t.length:l+f),u}return Qs(t,u,c),u}function qM(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 QM(e,t,n){const r=nB(e),i=t.length/n;if(!r)return Math.max(i,1);const a=ZP(r);for(let o=0,s=a.length-1;o<s;o++){const l=a[o];if(l>i)return l}return Math.max(i,1)}function eB(e){const t=[];let n,r;for(n=0,r=e.length;n<r;n++)e[n].major&&t.push(n);return t}function tB(e,t,n,r){let i=0,a=n[0],o;for(r=Math.ceil(r),o=0;o<e.length;o++)o===a&&(t.push(e[o]),i++,a=n[i*r])}function Qs(e,t,n,r,i){const a=Re(r,0),o=Math.min(Re(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=a;c<0;)s++,c=Math.round(a+s*n);for(u=Math.max(a,0);u<o;u++)u===c&&(t.push(e[u]),s++,c=Math.round(a+s*n))}function nB(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 rB=e=>e==="left"?"right":e==="right"?"left":e,yp=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,xp=(e,t)=>Math.min(t||e,e);function Cp(e,t){const n=[],r=e.length/t,i=e.length;let a=0;for(;a<i;a+=r)n.push(e[Math.floor(a)]);return n}function iB(e,t,n){const r=e.ticks.length,i=Math.min(t,r-1),a=e._startPixel,o=e._endPixel,s=1e-6;let l=e.getPixelForTick(i),u;if(!(n&&(r===1?u=Math.max(l-a,o-l):t===0?u=(e.getPixelForTick(1)-l)/2:u=(l-e.getPixelForTick(i-1))/2,l+=i<t?u:-u,l<a-s||l>o+s)))return l}function aB(e,t){Ge(e,n=>{const r=n.gc,i=r.length/2;let a;if(i>t){for(a=0;a<i;++a)delete n.data[r[a]];r.splice(0,i)}})}function Wa(e){return e.drawTicks?e.tickLength:0}function wp(e,t){if(!e.display)return 0;const n=Pt(e.font,t),r=In(e.padding);return(Ct(e.text)?e.text.length:1)*n.lineHeight+r.height}function oB(e,t){return Vi(e,{scale:t,type:"scale"})}function sB(e,t,n){return Vi(e,{tick:n,index:t,type:"tick"})}function lB(e,t,n){let r=Lh(e);return(n&&t!=="right"||!n&&t==="right")&&(r=rB(r)),r}function uB(e,t,n,r){const{top:i,left:a,bottom:o,right:s,chart:l}=e,{chartArea:u,scales:c}=l;let d=0,h,f,g;const p=o-i,b=s-a;if(e.isHorizontal()){if(f=Rt(r,a,s),ke(n)){const v=Object.keys(n)[0],y=n[v];g=c[v].getPixelForValue(y)+p-t}else n==="center"?g=(u.bottom+u.top)/2+p-t:g=yp(e,n,t);h=s-a}else{if(ke(n)){const v=Object.keys(n)[0],y=n[v];f=c[v].getPixelForValue(y)-b+t}else n==="center"?f=(u.left+u.right)/2-b+t:f=yp(e,n,t);g=Rt(r,o,i),d=n==="left"?-bt:bt}return{titleX:f,titleY:g,maxWidth:h,rotation:d}}class Pa extends ei{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=Hn(t,Number.POSITIVE_INFINITY),n=Hn(n,Number.NEGATIVE_INFINITY),r=Hn(r,Number.POSITIVE_INFINITY),i=Hn(i,Number.NEGATIVE_INFINITY),{min:Hn(t,r),max:Hn(n,i),minDefined:En(t),maxDefined:En(n)}}getMinMax(t){let{min:n,max:r,minDefined:i,maxDefined:a}=this.getUserBounds(),o;if(i&&a)return{min:n,max:r};const s=this.getMatchingVisibleMetas();for(let l=0,u=s.length;l<u;++l)o=s[l].controller.getMinMax(this,t),i||(n=Math.min(n,o.min)),a||(r=Math.max(r,o.max));return n=a&&n>r?r:n,r=i&&n>r?n:r,{min:Hn(n,Hn(r,n)),max:Hn(r,Hn(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(){Ue(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:i,grace:a,ticks:o}=this.options,s=o.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=_k(this,a,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=s<this.ticks.length;this._convertTicksToLabels(l?Cp(this.ticks,s):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||o.source==="auto")&&(this.ticks=KM(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(){Ue(this.options.afterUpdate,[this])}beforeSetDimensions(){Ue(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(){Ue(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),Ue(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Ue(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const n=this.options.ticks;let r,i,a;for(r=0,i=t.length;r<i;r++)a=t[r],a.label=Ue(n.callback,[a.value,r,t],this)}afterTickToLabelConversion(){Ue(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Ue(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,n=t.ticks,r=xp(this.ticks.length,t.ticks.maxTicksLimit),i=n.minRotation||0,a=n.maxRotation;let o=i,s,l,u;if(!this._isVisible()||!n.display||i>=a||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const c=this._getLabelSizes(),d=c.widest.width,h=c.highest.height,f=Vt(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-Wa(t.grid)-n.padding-wp(t.title,this.chart.options.font),u=Math.sqrt(d*d+h*h),o=JP(Math.min(Math.asin(Vt((c.highest.height+6)/s,-1,1)),Math.asin(Vt(l/u,-1,1))-Math.asin(Vt(h/u,-1,1)))),o=Math.max(i,Math.min(a,o))),this.labelRotation=o}afterCalculateLabelRotation(){Ue(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Ue(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:a}}=this,o=this._isVisible(),s=this.isHorizontal();if(o){const l=wp(i,n.options.font);if(s?(t.width=this.maxWidth,t.height=Wa(a)+l):(t.height=this.maxHeight,t.width=Wa(a)+l),r.display&&this.ticks.length){const{first:u,last:c,widest:d,highest:h}=this._getLabelSizes(),f=r.padding*2,g=xr(this.labelRotation),p=Math.cos(g),b=Math.sin(g);if(s){const v=r.mirror?0:b*d.width+p*h.height;t.height=Math.min(this.maxHeight,t.height+v+f)}else{const v=r.mirror?0:p*d.width+b*h.height;t.width=Math.min(this.maxWidth,t.width+v+f)}this._calculatePadding(u,c,b,p)}}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:a,padding:o},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):a==="start"?f=n.width:a==="end"?h=t.width:a!=="inner"&&(h=t.width/2,f=n.width/2),this.paddingLeft=Math.max((h-c+o)*this.width/(this.width-c),0),this.paddingRight=Math.max((f-d+o)*this.width/(this.width-d),0)}else{let c=n.height/2,d=t.height/2;a==="start"?(c=0,d=t.height):a==="end"&&(c=n.height,d=0),this.paddingTop=c+o,this.paddingBottom=d+o}}_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(){Ue(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++)at(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=Cp(r,n)),this._labelSizes=t=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,n,r){const{ctx:i,_longestTextCache:a}=this,o=[],s=[],l=Math.floor(n/xp(n,r));let u=0,c=0,d,h,f,g,p,b,v,y,x,S,D;for(d=0;d<n;d+=l){if(g=t[d].label,p=this._resolveTickFontOptions(d),i.font=b=p.string,v=a[b]=a[b]||{data:{},gc:[]},y=p.lineHeight,x=S=0,!at(g)&&!Ct(g))x=K0(i,v.data,v.gc,x,g),S=y;else if(Ct(g))for(h=0,f=g.length;h<f;++h)D=g[h],!at(D)&&!Ct(D)&&(x=K0(i,v.data,v.gc,x,D),S+=y);o.push(x),s.push(S),u=Math.max(x,u),c=Math.max(S,c)}aB(a,n);const $=o.indexOf(u),F=s.indexOf(c),m=C=>({width:o[C]||0,height:s[C]||0});return{first:m(0),last:m(n-1),widest:m($),highest:m(F),widths:o,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 qP(this._alignToPixels?oi(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=sB(this.getContext(),t,r))}return this.$context||(this.$context=oB(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=xr(this.labelRotation),r=Math.abs(Math.cos(n)),i=Math.abs(Math.sin(n)),a=this._getLabelSizes(),o=t.autoSkipPadding||0,s=a?a.widest.width+o:0,l=a?a.highest.height+o: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:a,position:o,border:s}=i,l=a.offset,u=this.isHorizontal(),d=this.ticks.length+(l?1:0),h=Wa(a),f=[],g=s.setContext(this.getContext()),p=g.display?g.width:0,b=p/2,v=function(k){return oi(r,k,p)};let y,x,S,D,$,F,m,C,I,E,R,P;if(o==="top")y=v(this.bottom),F=this.bottom-h,C=y-b,E=v(t.top)+b,P=t.bottom;else if(o==="bottom")y=v(this.top),E=t.top,P=v(t.bottom)-b,F=y+b,C=this.top+h;else if(o==="left")y=v(this.right),$=this.right-h,m=y-b,I=v(t.left)+b,R=t.right;else if(o==="right")y=v(this.left),I=t.left,R=v(t.right)-b,$=y+b,m=this.left+h;else if(n==="x"){if(o==="center")y=v((t.top+t.bottom)/2+.5);else if(ke(o)){const k=Object.keys(o)[0],T=o[k];y=v(this.chart.scales[k].getPixelForValue(T))}E=t.top,P=t.bottom,F=y+b,C=F+h}else if(n==="y"){if(o==="center")y=v((t.left+t.right)/2);else if(ke(o)){const k=Object.keys(o)[0],T=o[k];y=v(this.chart.scales[k].getPixelForValue(T))}$=y-b,m=$-h,I=t.left,R=t.right}const A=Re(i.ticks.maxTicksLimit,d),M=Math.max(1,Math.ceil(d/A));for(x=0;x<d;x+=M){const k=this.getContext(x),T=a.setContext(k),B=s.setContext(k),O=T.lineWidth,L=T.color,j=B.dash||[],z=B.dashOffset,Y=T.tickWidth,G=T.tickColor,H=T.tickBorderDash||[],V=T.tickBorderDashOffset;S=iB(this,x,l),S!==void 0&&(D=oi(r,S,O),u?$=m=I=R=D:F=C=E=P=D,f.push({tx1:$,ty1:F,tx2:m,ty2:C,x1:I,y1:E,x2:R,y2:P,width:O,color:L,borderDash:j,borderDashOffset:z,tickWidth:Y,tickColor:G,tickBorderDash:H,tickBorderDashOffset:V}))}return this._ticksLength=d,this._borderValue=y,f}_computeLabelItems(t){const n=this.axis,r=this.options,{position:i,ticks:a}=r,o=this.isHorizontal(),s=this.ticks,{align:l,crossAlign:u,padding:c,mirror:d}=a,h=Wa(r.grid),f=h+c,g=d?-c:f,p=-xr(this.labelRotation),b=[];let v,y,x,S,D,$,F,m,C,I,E,R,P="middle";if(i==="top")$=this.bottom-g,F=this._getXAxisLabelAlignment();else if(i==="bottom")$=this.top+g,F=this._getXAxisLabelAlignment();else if(i==="left"){const M=this._getYAxisLabelAlignment(h);F=M.textAlign,D=M.x}else if(i==="right"){const M=this._getYAxisLabelAlignment(h);F=M.textAlign,D=M.x}else if(n==="x"){if(i==="center")$=(t.top+t.bottom)/2+f;else if(ke(i)){const M=Object.keys(i)[0],k=i[M];$=this.chart.scales[M].getPixelForValue(k)+f}F=this._getXAxisLabelAlignment()}else if(n==="y"){if(i==="center")D=(t.left+t.right)/2-f;else if(ke(i)){const M=Object.keys(i)[0],k=i[M];D=this.chart.scales[M].getPixelForValue(k)}F=this._getYAxisLabelAlignment(h).textAlign}n==="y"&&(l==="start"?P="top":l==="end"&&(P="bottom"));const A=this._getLabelSizes();for(v=0,y=s.length;v<y;++v){x=s[v],S=x.label;const M=a.setContext(this.getContext(v));m=this.getPixelForTick(v)+a.labelOffset,C=this._resolveTickFontOptions(v),I=C.lineHeight,E=Ct(S)?S.length:1;const k=E/2,T=M.color,B=M.textStrokeColor,O=M.textStrokeWidth;let L=F;o?(D=m,F==="inner"&&(v===y-1?L=this.options.reverse?"left":"right":v===0?L=this.options.reverse?"right":"left":L="center"),i==="top"?u==="near"||p!==0?R=-E*I+I/2:u==="center"?R=-A.highest.height/2-k*I+I:R=-A.highest.height+I/2:u==="near"||p!==0?R=I/2:u==="center"?R=A.highest.height/2-k*I:R=A.highest.height-E*I,d&&(R*=-1),p!==0&&!M.showLabelBackdrop&&(D+=I/2*Math.sin(p))):($=m,R=(1-E)*I/2);let j;if(M.showLabelBackdrop){const z=In(M.backdropPadding),Y=A.heights[v],G=A.widths[v];let H=R-z.top,V=0-z.left;switch(P){case"middle":H-=Y/2;break;case"bottom":H-=Y;break}switch(F){case"center":V-=G/2;break;case"right":V-=G;break;case"inner":v===y-1?V-=G:v>0&&(V-=G/2);break}j={left:V,top:H,width:G+z.width,height:Y+z.height,color:M.backdropColor}}b.push({label:S,font:C,textOffset:R,options:{rotation:p,color:T,strokeColor:B,strokeWidth:O,textAlign:L,textBaseline:P,translation:[D,$],backdrop:j}})}return b}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-xr(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:a}}=this.options,o=this._getLabelSizes(),s=t+a,l=o.widest.width;let u,c;return n==="left"?i?(c=this.right+a,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+a,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:a,height:o}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(r,i,a,o),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const i=this.ticks.findIndex(a=>a.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 a,o;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(a=0,o=i.length;a<o;++a){const l=i[a];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,a=r.setContext(this.getContext()),o=r.display?a.width:0;if(!o)return;const s=i.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let u,c,d,h;this.isHorizontal()?(u=oi(t,this.left,o)-o/2,c=oi(t,this.right,s)+s/2,d=h=l):(d=oi(t,this.top,o)-o/2,h=oi(t,this.bottom,s)+s/2,u=c=l),n.save(),n.lineWidth=a.width,n.strokeStyle=a.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&&Wh(r,i);const a=this.getLabelItems(t);for(const o of a){const s=o.options,l=o.font,u=o.label,c=o.textOffset;Qo(r,u,0,c,l,s)}i&&zh(r)}drawTitle(){const{ctx:t,options:{position:n,title:r,reverse:i}}=this;if(!r.display)return;const a=Pt(r.font),o=In(r.padding),s=r.align;let l=a.lineHeight/2;n==="bottom"||n==="center"||ke(n)?(l+=o.bottom,Ct(r.text)&&(l+=a.lineHeight*(r.text.length-1))):l+=o.top;const{titleX:u,titleY:c,maxWidth:d,rotation:h}=uB(this,l,n,s);Qo(t,r.text,0,0,a,{color:r.color,maxWidth:d,rotation:h,textAlign:lB(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=Re(t.grid&&t.grid.z,-1),i=Re(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==Pa.prototype.draw?[{z:n,draw:a=>{this.draw(a)}}]:[{z:r,draw:a=>{this.drawBackground(),this.drawGrid(a),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:a=>{this.drawLabels(a)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let a,o;for(a=0,o=n.length;a<o;++a){const s=n[a];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 Pt(n.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class el{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;fB(n)&&(r=this.register(n));const i=this.items,a=t.id,o=this.scope+"."+a;if(!a)throw new Error("class does not have id: "+t);return a in i||(i[a]=t,cB(t,o,r),this.override&&ft.override(t.id,t.overrides)),o}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 ft[i]&&(delete ft[i][r],this.override&&delete ki[r])}}function cB(e,t,n){const r=Yo(Object.create(null),[n?ft.get(n):{},ft.get(t),e.defaults]);ft.set(t,r),e.defaultRoutes&&dB(t,e.defaultRoutes),e.descriptors&&ft.describe(t,e.descriptors)}function dB(e,t){Object.keys(t).forEach(n=>{const r=n.split("."),i=r.pop(),a=[e].concat(r).join("."),o=t[n].split("."),s=o.pop(),l=o.join(".");ft.route(a,i,l,s)})}function fB(e){return"id"in e&&"defaults"in e}class hB{constructor(){this.controllers=new el(pa,"datasets",!0),this.elements=new el(ei,"elements"),this.plugins=new el(Object,"plugins"),this.scales=new el(Pa,"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 a=r||this._getRegistryForType(i);r||a.isForType(i)||a===this.plugins&&i.id?this._exec(t,a,i):Ge(i,o=>{const s=r||this._getRegistryForType(o);this._exec(t,s,o)})})}_exec(t,n,r){const i=Nh(t);Ue(r["before"+i],[],r),n[t](r),Ue(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 Gn=new hB;class gB{constructor(){this._init=[]}notify(t,n,r,i){n==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const a=i?this._descriptors(t).filter(i):this._descriptors(t),o=this._notify(a,t,n,r);return n==="afterDestroy"&&(this._notify(a,t,"stop"),this._notify(this._init,t,"uninstall")),o}_notify(t,n,r,i){i=i||{};for(const a of t){const o=a.plugin,s=o[r],l=[n,i,a.options];if(Ue(s,l,o)===!1&&i.cancelable)return!1}return!0}invalidate(){at(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=Re(r.options&&r.options.plugins,{}),a=mB(r);return i===!1&&!n?[]:bB(t,a,i,n)}_notifyStateChanges(t){const n=this._oldCache||[],r=this._cache,i=(a,o)=>a.filter(s=>!o.some(l=>s.plugin.id===l.plugin.id));this._notify(i(n,r),t,"stop"),this._notify(i(r,n),t,"start")}}function mB(e){const t={},n=[],r=Object.keys(Gn.plugins.items);for(let a=0;a<r.length;a++)n.push(Gn.getPlugin(r[a]));const i=e.plugins||[];for(let a=0;a<i.length;a++){const o=i[a];n.indexOf(o)===-1&&(n.push(o),t[o.id]=!0)}return{plugins:n,localIds:t}}function pB(e,t){return!t&&e===!1?null:e===!0?{}:e}function bB(e,{plugins:t,localIds:n},r,i){const a=[],o=e.getContext();for(const s of t){const l=s.id,u=pB(r[l],i);u!==null&&a.push({plugin:s,options:vB(e.config,{plugin:s,local:n[l]},u,o)})}return a}function vB(e,{plugin:t,local:n},r,i){const a=e.pluginScopeKeys(t),o=e.getOptionScopes(r,a);return n&&t.defaults&&o.push(t.defaults),e.createResolver(o,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function af(e,t){const n=ft.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function yB(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function xB(e,t){return e===t?"_index_":"_value_"}function Dp(e){if(e==="x"||e==="y"||e==="r")return e}function CB(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function of(e,...t){if(Dp(e))return e;for(const n of t){const r=n.axis||CB(n.position)||e.length>1&&Dp(e[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function Sp(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function wB(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 Sp(e,"x",n[0])||Sp(e,"y",n[0])}return{}}function DB(e,t){const n=ki[e.type]||{scales:{}},r=t.scales||{},i=af(e.type,t),a=Object.create(null);return Object.keys(r).forEach(o=>{const s=r[o];if(!ke(s))return console.error(`Invalid scale configuration for scale: ${o}`);if(s._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${o}`);const l=of(o,s,wB(o,e),ft.scales[s.type]),u=xB(l,i),c=n.scales||{};a[o]=co(Object.create(null),[{axis:l},s,c[l],c[u]])}),e.data.datasets.forEach(o=>{const s=o.type||e.type,l=o.indexAxis||af(s,t),c=(ki[s]||{}).scales||{};Object.keys(c).forEach(d=>{const h=yB(d,l),f=o[h+"AxisID"]||h;a[f]=a[f]||Object.create(null),co(a[f],[{axis:h},r[f],c[d]])})}),Object.keys(a).forEach(o=>{const s=a[o];co(s,[ft.scales[s.type],ft.scale])}),a}function Y3(e){const t=e.options||(e.options={});t.plugins=Re(t.plugins,{}),t.scales=DB(e,t)}function U3(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function SB(e){return e=e||{},e.data=U3(e.data),Y3(e),e}const Ep=new Map,J3=new Set;function tl(e,t){let n=Ep.get(e);return n||(n=t(),Ep.set(e,n),J3.add(n)),n}const za=(e,t,n)=>{const r=Uo(t,n);r!==void 0&&e.add(r)};class EB{constructor(t){this._config=SB(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=U3(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(),Y3(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return tl(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return tl(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return tl(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return tl(`${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:a}=this,o=this._cachedScopes(t,r),s=o.get(n);if(s)return s;const l=new Set;n.forEach(c=>{t&&(l.add(t),c.forEach(d=>za(l,t,d))),c.forEach(d=>za(l,i,d)),c.forEach(d=>za(l,ki[a]||{},d)),c.forEach(d=>za(l,ft,d)),c.forEach(d=>za(l,tf,d))});const u=Array.from(l);return u.length===0&&u.push(Object.create(null)),J3.has(n)&&o.set(n,u),u}chartOptionScopes(){const{options:t,type:n}=this;return[t,ki[n]||{},ft.datasets[n]||{},{type:n},ft,tf]}resolveNamedOptions(t,n,r,i=[""]){const a={$shared:!0},{resolver:o,subPrefixes:s}=Ip(this._resolverCache,t,i);let l=o;if(_B(o,n)){a.$shared=!1,r=Ur(r)?r():r;const u=this.createResolver(t,r,s);l=Ia(o,r,u)}for(const u of n)a[u]=l[u];return a}createResolver(t,n,r=[""],i){const{resolver:a}=Ip(this._resolverCache,t,r);return ke(n)?Ia(a,n,void 0,i):a}}function Ip(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const i=n.join();let a=r.get(i);return a||(a={resolver:Xh(t,n),subPrefixes:n.filter(s=>!s.toLowerCase().includes("hover"))},r.set(i,a)),a}const IB=e=>ke(e)&&Object.getOwnPropertyNames(e).some(t=>Ur(e[t]));function _B(e,t){const{isScriptable:n,isIndexable:r}=P3(e);for(const i of t){const a=n(i),o=r(i),s=(o||a)&&e[i];if(a&&(Ur(s)||IB(s))||o&&Ct(s))return!0}return!1}var $B="4.4.3";const RB=["top","bottom","left","right","chartArea"];function _p(e,t){return e==="top"||e==="bottom"||RB.indexOf(e)===-1&&t==="x"}function $p(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function Rp(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),Ue(n&&n.onComplete,[e],t)}function AB(e){const t=e.chart,n=t.options.animation;Ue(n&&n.onProgress,[e],t)}function K3(e){return Uh()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const Dl={},Ap=e=>{const t=K3(e);return Object.values(Dl).filter(n=>n.canvas===t).pop()};function FB(e,t,n){const r=Object.keys(e);for(const i of r){const a=+i;if(a>=t){const o=e[i];delete e[i],(n>0||a>t)&&(e[a+n]=o)}}}function TB(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}function nl(e,t,n){return e.options.clip?e[n]:t[n]}function PB(e,t){const{xScale:n,yScale:r}=e;return n&&r?{left:nl(n,t,"left"),right:nl(n,t,"right"),top:nl(r,t,"top"),bottom:nl(r,t,"bottom")}:t}var Fr;let ps=(Fr=class{static register(...t){Gn.add(...t),Fp()}static unregister(...t){Gn.remove(...t),Fp()}constructor(t,n){const r=this.config=new EB(n),i=K3(t),a=Ap(i);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas with ID '"+a.canvas.id+"' can be reused.");const o=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||JM(i)),this.platform.updateConfig(r);const s=this.platform.acquireContext(i,o.aspectRatio),l=s&&s.canvas,u=l&&l.height,c=l&&l.width;if(this.id=NP(),this.ctx=s,this.canvas=l,this.width=c,this.height=u,this._options=o,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 gB,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=rk(d=>this.update(d),o.resizeDelay||0),this._dataChanges=[],Dl[this.id]=this,!s||!l){console.error("Failed to create chart: can't acquire context from the given item");return}cr.listen(this,"complete",Rp),cr.listen(this,"progress",AB),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:i,_aspectRatio:a}=this;return at(t)?n&&a?a: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 Gn}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():tp(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return q0(this.canvas,this.ctx),this}stop(){return cr.stop(this),this}resize(t,n){cr.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,i=this.canvas,a=r.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(i,t,n,a),s=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,tp(this,s,!0)&&(this.notifyPlugins("resize",{size:o}),Ue(r.onResize,[this,o],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};Ge(n,(r,i)=>{r.id=i})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,i=Object.keys(r).reduce((o,s)=>(o[s]=!1,o),{});let a=[];n&&(a=a.concat(Object.keys(n).map(o=>{const s=n[o],l=of(o,s),u=l==="r",c=l==="x";return{options:s,dposition:u?"chartArea":c?"bottom":"left",dtype:u?"radialLinear":c?"category":"linear"}}))),Ge(a,o=>{const s=o.options,l=s.id,u=of(l,s),c=Re(s.type,o.dtype);(s.position===void 0||_p(s.position,u)!==_p(o.dposition))&&(s.position=o.dposition),i[l]=!0;let d=null;if(l in r&&r[l].type===c)d=r[l];else{const h=Gn.getScale(c);d=new h({id:l,type:c,ctx:this.ctx,chart:this}),r[d.id]=d}d.init(s,t)}),Ge(i,(o,s)=>{o||delete r[s]}),Ge(r,o=>{Sn.configure(this,o,o.options),Sn.addBox(this,o)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((i,a)=>i.index-a.index),r>n){for(let i=n;i<r;++i)this._destroyDatasetMeta(i);t.splice(n,r-n)}this._sortedMetasets=t.slice(0).sort($p("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:n}}=this;t.length>n.length&&delete this._stacks,t.forEach((r,i)=>{n.filter(a=>a===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 a=n[r];let o=this.getDatasetMeta(r);const s=a.type||this.config.type;if(o.type&&o.type!==s&&(this._destroyDatasetMeta(r),o=this.getDatasetMeta(r)),o.type=s,o.indexAxis=a.indexAxis||af(s,this.options),o.order=a.order||0,o.index=r,o.label=""+a.label,o.visible=this.isDatasetVisible(r),o.controller)o.controller.updateIndex(r),o.controller.linkScales();else{const l=Gn.getController(s),{datasetElementType:u,dataElementType:c}=ft.datasets[s];Object.assign(l,{dataElementType:Gn.getElement(c),datasetElementType:u&&Gn.getElement(u)}),o.controller=new l(this,r),t.push(o.controller)}}return this._updateMetasets(),t}_resetElements(){Ge(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 a=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let u=0,c=this.data.datasets.length;u<c;u++){const{controller:d}=this.getDatasetMeta(u),h=!i&&a.indexOf(d)===-1;d.buildOrUpdateElements(h),o=Math.max(+d.getMaxOverflow(),o)}o=this._minPadding=r.layout.autoPadding?o:0,this._updateLayout(o),i||Ge(a,u=>{u.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort($p("z","_idx"));const{_active:s,_lastEvent:l}=this;l?this._eventHandler(l,!0):s.length&&this._updateHoverStyles(s,s,!0),this.render()}_updateScales(){Ge(this.scales,t=>{Sn.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!j0(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:a}of n){const o=r==="_removeElements"?-a:a;FB(t,i,o)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=a=>new Set(t.filter(o=>o[0]===a).map((o,s)=>s+","+o.splice(1).join(","))),i=r(0);for(let a=1;a<n;a++)if(!j0(i,r(a)))return;return Array.from(i).map(a=>a.split(",")).map(a=>({method:a[1],start:+a[2],count:+a[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Sn.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],Ge(this.boxes,i=>{r&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,a)=>{i._idx=a}),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,Ur(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&&(cr.has(this)?this.attached&&!cr.running(this)&&cr.start(this):(this.draw(),Rp({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,a;for(i=0,a=n.length;i<a;++i){const o=n[i];(!t||o.visible)&&r.push(o)}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,a=PB(t,this.chartArea),o={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",o)!==!1&&(i&&Wh(n,{left:r.left===!1?0:a.left-r.left,right:r.right===!1?this.width:a.right+r.right,top:r.top===!1?0:a.top-r.top,bottom:r.bottom===!1?this.height:a.bottom+r.bottom}),t.controller.draw(),i&&zh(n),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(t){return qo(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,i){const a=RM.modes[n];return typeof a=="function"?a(this,t,r,i):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let i=r.filter(a=>a&&a._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=Vi(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",a=this.getDatasetMeta(t),o=a.controller._resolveAnimations(void 0,i);lu(n)?(a.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),o.update(a,{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(),cr.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(),q0(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete Dl[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=(a,o)=>{n.addEventListener(this,a,o),t[a]=o},i=(a,o,s)=>{a.offsetX=o,a.offsetY=s,this._eventHandler(a)};Ge(this.options.events,a=>r(a,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])},a=(l,u)=>{this.canvas&&this.resize(l,u)};let o;const s=()=>{i("attach",s),this.attached=!0,this.resize(),r("resize",a),r("detach",o)};o=()=>{this.attached=!1,i("resize",a),this._stop(),this._resize(0,0),r("attach",s)},n.isAttached(this.canvas)?s():o()}unbindEvents(){Ge(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},Ge(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const i=r?"set":"remove";let a,o,s,l;for(n==="dataset"&&(a=this.getDatasetMeta(t[0].datasetIndex),a.controller["_"+i+"DatasetHoverStyle"]()),s=0,l=t.length;s<l;++s){o=t[s];const u=o&&this.getDatasetMeta(o.datasetIndex).controller;u&&u[i+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const n=this._active||[],r=t.map(({datasetIndex:a,index:o})=>{const s=this.getDatasetMeta(a);if(!s)throw new Error("No dataset found at index "+a);return{datasetIndex:a,element:s.data[o],index:o}});!ou(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,a=(l,u)=>l.filter(c=>!u.some(d=>c.datasetIndex===d.datasetIndex&&c.index===d.index)),o=a(n,t),s=r?t:a(t,n);o.length&&this.updateHoverStyle(o,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=o=>(o.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,i)===!1)return;const a=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(a||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:i=[],options:a}=this,o=n,s=this._getActiveElements(t,i,r,o),l=zP(t),u=TB(t,this._lastEvent,r,l);r&&(this._lastEvent=null,Ue(a.onHover,[t,s,this],this),l&&Ue(a.onClick,[t,s,this],this));const c=!ou(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 a=this.options.hover;return this.getElementsAtEventForMode(t,a.mode,a,i)}},ae(Fr,"defaults",ft),ae(Fr,"instances",Dl),ae(Fr,"overrides",ki),ae(Fr,"registry",Gn),ae(Fr,"version",$B),ae(Fr,"getChart",Ap),Fr);function Fp(){return Ge(ps.instances,e=>e._plugins.invalidate())}function kB(e,t,n){const{startAngle:r,pixelMargin:i,x:a,y:o,outerRadius:s,innerRadius:l}=t;let u=i/s;e.beginPath(),e.arc(a,o,s,r-u,n+u),l>i?(u=i/l,e.arc(a,o,l,n+u,r-u,!0)):e.arc(a,o,i,n+bt,r-bt),e.closePath(),e.clip()}function MB(e){return Gh(e,["outerStart","outerEnd","innerStart","innerEnd"])}function BB(e,t,n,r){const i=MB(e.options.borderRadius),a=(n-t)/2,o=Math.min(a,r*t/2),s=l=>{const u=(n-Math.min(a,l))*r/2;return Vt(l,0,Math.min(a,u))};return{outerStart:s(i.outerStart),outerEnd:s(i.outerEnd),innerStart:Vt(i.innerStart,0,o),innerEnd:Vt(i.innerEnd,0,o)}}function Qi(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function fu(e,t,n,r,i,a){const{x:o,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,k=d>0?d-r:0,T=(M+k)/2,B=T!==0?g*T/(T+r):g;f=(g-B)/2}const p=Math.max(.001,g*d-n/lt)/d,b=(g-p)/2,v=l+b+f,y=i-b-f,{outerStart:x,outerEnd:S,innerStart:D,innerEnd:$}=BB(t,h,d,y-v),F=d-x,m=d-S,C=v+x/F,I=y-S/m,E=h+D,R=h+$,P=v+D/E,A=y-$/R;if(e.beginPath(),a){const M=(C+I)/2;if(e.arc(o,s,d,C,M),e.arc(o,s,d,M,I),S>0){const O=Qi(m,I,o,s);e.arc(O.x,O.y,S,I,y+bt)}const k=Qi(R,y,o,s);if(e.lineTo(k.x,k.y),$>0){const O=Qi(R,A,o,s);e.arc(O.x,O.y,$,y+bt,A+Math.PI)}const T=(y-$/h+(v+D/h))/2;if(e.arc(o,s,h,y-$/h,T,!0),e.arc(o,s,h,T,v+D/h,!0),D>0){const O=Qi(E,P,o,s);e.arc(O.x,O.y,D,P+Math.PI,v-bt)}const B=Qi(F,v,o,s);if(e.lineTo(B.x,B.y),x>0){const O=Qi(F,C,o,s);e.arc(O.x,O.y,x,v-bt,C)}}else{e.moveTo(o,s);const M=Math.cos(C)*d+o,k=Math.sin(C)*d+s;e.lineTo(M,k);const T=Math.cos(I)*d+o,B=Math.sin(I)*d+s;e.lineTo(T,B)}e.closePath()}function OB(e,t,n,r,i){const{fullCircles:a,startAngle:o,circumference:s}=t;let l=t.endAngle;if(a){fu(e,t,n,r,l,i);for(let u=0;u<a;++u)e.fill();isNaN(s)||(l=o+(s%ot||ot))}return fu(e,t,n,r,l,i),e.fill(),l}function NB(e,t,n,r,i){const{fullCircles:a,startAngle:o,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(a){fu(e,t,n,r,g,i);for(let p=0;p<a;++p)e.stroke();isNaN(s)||(g=o+(s%ot||ot))}f&&kB(e,t,g),a||(fu(e,t,n,r,g,i),e.stroke())}class to extends ei{constructor(n){super();ae(this,"circumference");ae(this,"endAngle");ae(this,"fullCircles");ae(this,"innerRadius");ae(this,"outerRadius");ae(this,"pixelMargin");ae(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 a=this.getProps(["x","y"],i),{angle:o,distance:s}=_3(a,{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,p=Re(h,u-l)>=ot||Ko(o,l,u),b=aa(s,c+f,d+f);return p&&b}getCenterPoint(n){const{x:r,y:i,startAngle:a,endAngle:o,innerRadius:s,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:u,spacing:c}=this.options,d=(a+o)/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,a=(r.offset||0)/4,o=(r.spacing||0)/2,s=r.circular;if(this.pixelMargin=r.borderAlign==="inner"?.33:0,this.fullCircles=i>ot?Math.floor(i/ot):0,i===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const l=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(l)*a,Math.sin(l)*a);const u=1-Math.sin(Math.min(lt,i||0)),c=a*u;n.fillStyle=r.backgroundColor,n.strokeStyle=r.borderColor,OB(n,this,c,o,s),NB(n,this,c,o,s),n.restore()}}ae(to,"id","arc"),ae(to,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),ae(to,"defaultRoutes",{backgroundColor:"backgroundColor"}),ae(to,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function q3(e,t,n=t){e.lineCap=Re(n.borderCapStyle,t.borderCapStyle),e.setLineDash(Re(n.borderDash,t.borderDash)),e.lineDashOffset=Re(n.borderDashOffset,t.borderDashOffset),e.lineJoin=Re(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=Re(n.borderWidth,t.borderWidth),e.strokeStyle=Re(n.borderColor,t.borderColor)}function VB(e,t,n){e.lineTo(n.x,n.y)}function LB(e){return e.stepped?bk:e.tension||e.cubicInterpolationMode==="monotone"?vk:VB}function Q3(e,t,n={}){const r=e.length,{start:i=0,end:a=r-1}=n,{start:o,end:s}=t,l=Math.max(i,o),u=Math.min(a,s),c=i<o&&a<o||i>s&&a>s;return{count:r,start:l,loop:t.loop,ilen:u<l&&!c?r+u-l:u-l}}function HB(e,t,n,r){const{points:i,options:a}=t,{count:o,start:s,loop:l,ilen:u}=Q3(i,n,r),c=LB(a);let{move:d=!0,reverse:h}=r||{},f,g,p;for(f=0;f<=u;++f)g=i[(s+(h?u-f:f))%o],!g.skip&&(d?(e.moveTo(g.x,g.y),d=!1):c(e,p,g,h,a.stepped),p=g);return l&&(g=i[(s+(h?u:0))%o],c(e,p,g,h,a.stepped)),!!l}function jB(e,t,n,r){const i=t.points,{count:a,start:o,ilen:s}=Q3(i,n,r),{move:l=!0,reverse:u}=r||{};let c=0,d=0,h,f,g,p,b,v;const y=S=>(o+(u?s-S:S))%a,x=()=>{p!==b&&(e.lineTo(c,b),e.lineTo(c,p),e.lineTo(c,v))};for(l&&(f=i[y(0)],e.moveTo(f.x,f.y)),h=0;h<=s;++h){if(f=i[y(h)],f.skip)continue;const S=f.x,D=f.y,$=S|0;$===g?(D<p?p=D:D>b&&(b=D),c=(d*c+S)/++d):(x(),e.lineTo(S,D),g=$,d=0,p=b=D),v=D}x()}function sf(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?jB:HB}function WB(e){return e.stepped?Kk:e.tension||e.cubicInterpolationMode==="monotone"?qk:fi}function zB(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),q3(e,t.options),e.stroke(i)}function GB(e,t,n,r){const{segments:i,options:a}=t,o=sf(t);for(const s of i)q3(e,a,s.style),e.beginPath(),o(e,t,s,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}const XB=typeof Path2D=="function";function ZB(e,t,n,r){XB&&!t.options.segment?zB(e,t,n,r):GB(e,t,n,r)}class oa extends ei{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;Wk(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=oM(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],a=this.points,o=rM(this,{property:n,start:i,end:i});if(!o.length)return;const s=[],l=WB(r);let u,c;for(u=0,c=o.length;u<c;++u){const{start:d,end:h}=o[u],f=a[d],g=a[h];if(f===g){s.push(f);continue}const p=Math.abs((i-f[n])/(g[n]-f[n])),b=l(f,g,p,r.stepped);b[n]=t[n],s.push(b)}return s.length===1?s[0]:s}pathSegment(t,n,r){return sf(this)(t,this,n,r)}path(t,n,r){const i=this.segments,a=sf(this);let o=this._loop;n=n||0,r=r||this.points.length-n;for(const s of i)o&=a(t,this,s,{start:n,end:n+r-1});return!!o}draw(t,n,r,i){const a=this.options||{};(this.points||[]).length&&a.borderWidth&&(t.save(),ZB(t,this,r,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}ae(oa,"id","line"),ae(oa,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),ae(oa,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),ae(oa,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"});function Tp(e,t,n,r){const i=e.options,{[n]:a}=e.getProps([n],r);return Math.abs(t-a)<i.radius+i.hitRadius}class po extends ei{constructor(n){super();ae(this,"parsed");ae(this,"skip");ae(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 a=this.options,{x:o,y:s}=this.getProps(["x","y"],i);return Math.pow(n-o,2)+Math.pow(r-s,2)<Math.pow(a.hitRadius+a.radius,2)}inXRange(n,r){return Tp(this,n,"x",r)}inYRange(n,r){return Tp(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||!qo(this,r,this.size(i)/2)||(n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.fillStyle=i.backgroundColor,nf(n,i,this.x,this.y))}getRange(){const n=this.options||{};return n.radius+n.hitRadius}}ae(po,"id","point"),ae(po,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),ae(po,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});const Pp=(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)}},YB=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class kp extends ei{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=Ue(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=Pt(r.font),a=i.size,o=this._computeTitleHeight(),{boxWidth:s,itemHeight:l}=Pp(r,a);let u,c;n.font=i.string,this.isHorizontal()?(u=this.maxWidth,c=this._fitRows(o,a,s,l)+10):(c=this.maxHeight,u=this._fitCols(o,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:a,maxWidth:o,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],u=this.lineWidths=[0],c=i+s;let d=t;a.textAlign="left",a.textBaseline="middle";let h=-1,f=-c;return this.legendItems.forEach((g,p)=>{const b=r+n/2+a.measureText(g.text).width;(p===0||u[u.length-1]+b+2*s>o)&&(d+=c,u[u.length-(p>0?0:1)]=0,f+=c,h++),l[p]={left:0,top:f,row:h,width:b,height:i},u[u.length-1]+=b+s}),d}_fitCols(t,n,r,i){const{ctx:a,maxHeight:o,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],u=this.columnSizes=[],c=o-t;let d=s,h=0,f=0,g=0,p=0;return this.legendItems.forEach((b,v)=>{const{itemWidth:y,itemHeight:x}=UB(r,n,a,b,i);v>0&&f+x+2*s>c&&(d+=h+s,u.push({width:h,height:f}),g+=h+s,p++,h=f=0),l[v]={left:g,top:f,col:p,width:y,height:x},h=Math.max(h,y),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:a}}=this,o=ma(a,this.left,this.width);if(this.isHorizontal()){let s=0,l=Rt(r,this.left+i,this.right-this.lineWidths[s]);for(const u of n)s!==u.row&&(s=u.row,l=Rt(r,this.left+i,this.right-this.lineWidths[s])),u.top+=this.top+t+i,u.left=o.leftForLtr(o.x(l),u.width),l+=u.width+i}else{let s=0,l=Rt(r,this.top+t+i,this.bottom-this.columnSizes[s].height);for(const u of n)u.col!==s&&(s=u.col,l=Rt(r,this.top+t+i,this.bottom-this.columnSizes[s].height)),u.top=l,u.left+=this.left+i,u.left=o.leftForLtr(o.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;Wh(t,this),this._draw(),zh(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:i}=this,{align:a,labels:o}=t,s=ft.color,l=ma(t.rtl,this.left,this.width),u=Pt(o.font),{padding:c}=o,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:p,itemHeight:b}=Pp(o,d),v=function($,F,m){if(isNaN(g)||g<=0||isNaN(p)||p<0)return;i.save();const C=Re(m.lineWidth,1);if(i.fillStyle=Re(m.fillStyle,s),i.lineCap=Re(m.lineCap,"butt"),i.lineDashOffset=Re(m.lineDashOffset,0),i.lineJoin=Re(m.lineJoin,"miter"),i.lineWidth=C,i.strokeStyle=Re(m.strokeStyle,s),i.setLineDash(Re(m.lineDash,[])),o.usePointStyle){const I={radius:p*Math.SQRT2/2,pointStyle:m.pointStyle,rotation:m.rotation,borderWidth:C},E=l.xPlus($,g/2),R=F+h;T3(i,I,E,R,o.pointStyleWidth&&g)}else{const I=F+Math.max((d-p)/2,0),E=l.leftForLtr($,g),R=mo(m.borderRadius);i.beginPath(),Object.values(R).some(P=>P!==0)?rf(i,{x:E,y:I,w:g,h:p,radius:R}):i.rect(E,I,g,p),i.fill(),C!==0&&i.stroke()}i.restore()},y=function($,F,m){Qo(i,m.text,$,F+b/2,u,{strikethrough:m.hidden,textAlign:l.textAlign(m.textAlign)})},x=this.isHorizontal(),S=this._computeTitleHeight();x?f={x:Rt(a,this.left+c,this.right-r[0]),y:this.top+c+S,line:0}:f={x:this.left+c,y:Rt(a,this.top+S+c,this.bottom-n[0].height),line:0},N3(this.ctx,t.textDirection);const D=b+c;this.legendItems.forEach(($,F)=>{i.strokeStyle=$.fontColor,i.fillStyle=$.fontColor;const m=i.measureText($.text).width,C=l.textAlign($.textAlign||($.textAlign=o.textAlign)),I=g+h+m;let E=f.x,R=f.y;l.setWidth(this.width),x?F>0&&E+I+c>this.right&&(R=f.y+=D,f.line++,E=f.x=Rt(a,this.left+c,this.right-r[f.line])):F>0&&R+D>this.bottom&&(E=f.x=E+n[f.line].width+c,f.line++,R=f.y=Rt(a,this.top+S+c,this.bottom-n[f.line].height));const P=l.x(E);if(v(P,R,$),E=ik(C,E+g+h,x?E+I:this.right,t.rtl),y(l.x(E),R,$),x)f.x+=I+c;else if(typeof $.text!="string"){const A=u.lineHeight;f.y+=eC($,A)+c}else f.y+=D}),V3(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=Pt(n.font),i=In(n.padding);if(!n.display)return;const a=ma(t.rtl,this.left,this.width),o=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=Rt(t.align,d,this.right-h);else{const g=this.columnSizes.reduce((p,b)=>Math.max(p,b.height),0);c=u+Rt(t.align,this.top,this.bottom-g-t.labels.padding-this._computeTitleHeight())}const f=Rt(s,d,d+h);o.textAlign=a.textAlign(Lh(s)),o.textBaseline="middle",o.strokeStyle=n.color,o.fillStyle=n.color,o.font=r.string,Qo(o,n.text,f,c,r)}_computeTitleHeight(){const t=this.options.title,n=Pt(t.font),r=In(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,i,a;if(aa(t,this.left,this.right)&&aa(n,this.top,this.bottom)){for(a=this.legendHitBoxes,r=0;r<a.length;++r)if(i=a[r],aa(t,i.left,i.left+i.width)&&aa(n,i.top,i.top+i.height))return this.legendItems[r]}return null}handleEvent(t){const n=this.options;if(!qB(t.type,n))return;const r=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const i=this._hoveredItem,a=YB(i,r);i&&!a&&Ue(n.onLeave,[t,i,this],this),this._hoveredItem=r,r&&!a&&Ue(n.onHover,[t,r,this],this)}else r&&Ue(n.onClick,[t,r,this],this)}}function UB(e,t,n,r,i){const a=JB(r,e,t,n),o=KB(i,r,t.lineHeight);return{itemWidth:a,itemHeight:o}}function JB(e,t,n,r){let i=e.text;return i&&typeof i!="string"&&(i=i.reduce((a,o)=>a.length>o.length?a:o)),t+n.size/2+r.measureText(i).width}function KB(e,t,n){let r=e;return typeof t.text!="string"&&(r=eC(t,n)),r}function eC(e,t){const n=e.text?e.text.length:0;return t*n}function qB(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var tC={id:"legend",_element:kp,start(e,t,n){const r=e.legend=new kp({ctx:e.ctx,options:n,chart:e});Sn.configure(e,r,n),Sn.addBox(e,r)},stop(e){Sn.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;Sn.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:a,useBorderRadius:o,borderRadius:s}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const u=l.controller.getStyle(n?0:void 0),c=In(u.borderWidth);return{text:t[l.index].label,fillStyle:u.backgroundColor,fontColor:a,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:o&&(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 nC extends ei{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=Ct(r.text)?r.text.length:1;this._padding=In(r.padding);const a=i*Pt(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=a:this.width=a}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:r,bottom:i,right:a,options:o}=this,s=o.align;let l=0,u,c,d;return this.isHorizontal()?(c=Rt(s,r,a),d=n+t,u=a-r):(o.position==="left"?(c=r+t,d=Rt(s,i,n),l=lt*-.5):(c=a-t,d=Rt(s,n,i),l=lt*.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=Pt(n.font),a=r.lineHeight/2+this._padding.top,{titleX:o,titleY:s,maxWidth:l,rotation:u}=this._drawArgs(a);Qo(t,n.text,0,0,r,{color:n.color,maxWidth:l,rotation:u,textAlign:Lh(n.align),textBaseline:"middle",translation:[o,s]})}}function QB(e,t){const n=new nC({ctx:e.ctx,options:t,chart:e});Sn.configure(e,n,t),Sn.addBox(e,n),e.titleBlock=n}var rC={id:"title",_element:nC,start(e,t,n){QB(e,n)},stop(e){const t=e.titleBlock;Sn.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;Sn.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 no={average(e){if(!e.length)return!1;let t,n,r=new Set,i=0,a=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,++a}}return{x:[...r].reduce((s,l)=>s+l)/r.size,y:i/a}},nearest(e,t){if(!e.length)return!1;let n=t.x,r=t.y,i=Number.POSITIVE_INFINITY,a,o,s;for(a=0,o=e.length;a<o;++a){const l=e[a].element;if(l&&l.hasValue()){const u=l.getCenterPoint(),c=ef(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 Wn(e,t){return t&&(Ct(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function dr(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
178
178
  `)>-1?e.split(`
179
- `):e}function e8(e,t){const{element:n,datasetIndex:r,index:i}=t,a=e.getDatasetMeta(r).controller,{label:o,value:s}=a.getLabelAndValue(i);return{chart:e,label:o,parsed:a.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:s,dataset:a.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function Mp(e,t){const n=e.chart.ctx,{body:r,footer:i,title:a}=e,{boxWidth:o,boxHeight:s}=t,l=Pt(t.bodyFont),u=Pt(t.titleFont),c=Pt(t.footerFont),d=a.length,h=i.length,f=r.length,g=In(t.padding);let p=g.height,b=0,v=r.reduce((S,D)=>S+D.before.length+D.lines.length+D.after.length,0);if(v+=e.beforeBody.length+e.afterBody.length,d&&(p+=d*u.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),v){const S=t.displayColors?Math.max(s,l.lineHeight):l.lineHeight;p+=f*S+(v-f)*l.lineHeight+(v-1)*t.bodySpacing}h&&(p+=t.footerMarginTop+h*c.lineHeight+(h-1)*t.footerSpacing);let y=0;const x=function(S){b=Math.max(b,n.measureText(S).width+y)};return n.save(),n.font=u.string,Ge(e.title,x),n.font=l.string,Ge(e.beforeBody.concat(e.afterBody),x),y=t.displayColors?o+2+t.boxPadding:0,Ge(r,S=>{Ge(S.before,x),Ge(S.lines,x),Ge(S.after,x)}),y=0,n.font=c.string,Ge(e.footer,x),n.restore(),b+=g.width,{width:b,height:p}}function t8(e,t){const{y:n,height:r}=t;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}function n8(e,t,n,r){const{x:i,width:a}=r,o=n.caretSize+n.caretPadding;if(e==="left"&&i+a+o>t.width||e==="right"&&i-a-o<0)return!0}function r8(e,t,n,r){const{x:i,width:a}=n,{width:o,chartArea:{left:s,right:l}}=e;let u="center";return r==="center"?u=i<=(s+l)/2?"left":"right":i<=a/2?u="left":i>=o-a/2&&(u="right"),n8(u,e,t,n)&&(u="center"),u}function Bp(e,t,n){const r=n.yAlign||t.yAlign||t8(e,n);return{xAlign:n.xAlign||t.xAlign||r8(e,t,n,r),yAlign:r}}function i8(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function a8(e,t,n){let{y:r,height:i}=e;return t==="top"?r+=n:t==="bottom"?r-=i+n:r-=i/2,r}function Op(e,t,n,r){const{caretSize:i,caretPadding:a,cornerRadius:o}=e,{xAlign:s,yAlign:l}=n,u=i+a,{topLeft:c,topRight:d,bottomLeft:h,bottomRight:f}=mo(o);let g=i8(t,s);const p=a8(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:Vt(g,0,r.width-t.width),y:Vt(p,0,r.height-t.height)}}function rl(e,t,n){const r=In(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function Np(e){return Wn([],dr(e))}function o8(e,t,n){return Ni(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function Vp(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const iC={beforeTitle:lr,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:lr,beforeBody:lr,beforeLabel:lr,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 at(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:lr,afterBody:lr,beforeFooter:lr,footer:lr,afterFooter:lr};function Zt(e,t,n,r){const i=e[t].call(n,r);return typeof i>"u"?iC[t].call(n,r):i}var Qc;let Lp=(Qc=class extends ei{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,a=new H3(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(a)),a}getContext(){return this.$context||(this.$context=o8(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,i=Zt(r,"beforeTitle",this,t),a=Zt(r,"title",this,t),o=Zt(r,"afterTitle",this,t);let s=[];return s=Wn(s,dr(i)),s=Wn(s,dr(a)),s=Wn(s,dr(o)),s}getBeforeBody(t,n){return Np(Zt(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,i=[];return Ge(t,a=>{const o={before:[],lines:[],after:[]},s=Vp(r,a);Wn(o.before,dr(Zt(s,"beforeLabel",this,a))),Wn(o.lines,Zt(s,"label",this,a)),Wn(o.after,dr(Zt(s,"afterLabel",this,a))),i.push(o)}),i}getAfterBody(t,n){return Np(Zt(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,i=Zt(r,"beforeFooter",this,t),a=Zt(r,"footer",this,t),o=Zt(r,"afterFooter",this,t);let s=[];return s=Wn(s,dr(i)),s=Wn(s,dr(a)),s=Wn(s,dr(o)),s}_createItems(t){const n=this._active,r=this.chart.data,i=[],a=[],o=[];let s=[],l,u;for(l=0,u=n.length;l<u;++l)s.push(e8(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))),Ge(s,c=>{const d=Vp(t.callbacks,c);i.push(Zt(d,"labelColor",this,c)),a.push(Zt(d,"labelPointStyle",this,c)),o.push(Zt(d,"labelTextColor",this,c))}),this.labelColors=i,this.labelPointStyles=a,this.labelTextColors=o,this.dataPoints=s,s}update(t,n){const r=this.options.setContext(this.getContext()),i=this._active;let a,o=[];if(!i.length)this.opacity!==0&&(a={opacity:0});else{const s=no[r.position].call(this,i,this._eventPosition);o=this._createItems(r),this.title=this.getTitle(o,r),this.beforeBody=this.getBeforeBody(o,r),this.body=this.getBody(o,r),this.afterBody=this.getAfterBody(o,r),this.footer=this.getFooter(o,r);const l=this._size=Mp(this,r),u=Object.assign({},s,l),c=Bp(this.chart,r,u),d=Op(r,u,c,this.chart);this.xAlign=c.xAlign,this.yAlign=c.yAlign,a={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:s.x,caretY:s.y}}this._tooltipItems=o,this.$context=void 0,a&&this._resolveAnimations().update(this,a),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,i){const a=this.getCaretPosition(t,r,i);n.lineTo(a.x1,a.y1),n.lineTo(a.x2,a.y2),n.lineTo(a.x3,a.y3)}getCaretPosition(t,n,r){const{xAlign:i,yAlign:a}=this,{caretSize:o,cornerRadius:s}=r,{topLeft:l,topRight:u,bottomLeft:c,bottomRight:d}=mo(s),{x:h,y:f}=t,{width:g,height:p}=n;let b,v,y,x,S,D;return a==="center"?(S=f+p/2,i==="left"?(b=h,v=b-o,x=S+o,D=S-o):(b=h+g,v=b+o,x=S-o,D=S+o),y=b):(i==="left"?v=h+Math.max(l,c)+o:i==="right"?v=h+g-Math.max(u,d)-o:v=this.caretX,a==="top"?(x=f,S=x-o,b=v-o,y=v+o):(x=f+p,S=x+o,b=v+o,y=v-o),D=x),{x1:b,x2:v,x3:y,y1:x,y2:S,y3:D}}drawTitle(t,n,r){const i=this.title,a=i.length;let o,s,l;if(a){const u=ga(r.rtl,this.x,this.width);for(t.x=rl(this,r.titleAlign,r),n.textAlign=u.textAlign(r.titleAlign),n.textBaseline="middle",o=Pt(r.titleFont),s=r.titleSpacing,n.fillStyle=r.titleColor,n.font=o.string,l=0;l<a;++l)n.fillText(i[l],u.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+s,l+1===a&&(t.y+=r.titleMarginBottom-s)}}_drawColorBox(t,n,r,i,a){const o=this.labelColors[r],s=this.labelPointStyles[r],{boxHeight:l,boxWidth:u}=a,c=Pt(a.bodyFont),d=rl(this,"left",a),h=i.x(d),f=l<c.lineHeight?(c.lineHeight-l)/2:0,g=n.y+f;if(a.usePointStyle){const p={radius:Math.min(u,l)/2,pointStyle:s.pointStyle,rotation:s.rotation,borderWidth:1},b=i.leftForLtr(h,u)+u/2,v=g+l/2;t.strokeStyle=a.multiKeyBackground,t.fillStyle=a.multiKeyBackground,nf(t,p,b,v),t.strokeStyle=o.borderColor,t.fillStyle=o.backgroundColor,nf(t,p,b,v)}else{t.lineWidth=ke(o.borderWidth)?Math.max(...Object.values(o.borderWidth)):o.borderWidth||1,t.strokeStyle=o.borderColor,t.setLineDash(o.borderDash||[]),t.lineDashOffset=o.borderDashOffset||0;const p=i.leftForLtr(h,u),b=i.leftForLtr(i.xPlus(h,1),u-2),v=mo(o.borderRadius);Object.values(v).some(y=>y!==0)?(t.beginPath(),t.fillStyle=a.multiKeyBackground,rf(t,{x:p,y:g,w:u,h:l,radius:v}),t.fill(),t.stroke(),t.fillStyle=o.backgroundColor,t.beginPath(),rf(t,{x:b,y:g+1,w:u-2,h:l-2,radius:v}),t.fill()):(t.fillStyle=a.multiKeyBackground,t.fillRect(p,g,u,l),t.strokeRect(p,g,u,l),t.fillStyle=o.backgroundColor,t.fillRect(b,g+1,u-2,l-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:i}=this,{bodySpacing:a,bodyAlign:o,displayColors:s,boxHeight:l,boxWidth:u,boxPadding:c}=r,d=Pt(r.bodyFont);let h=d.lineHeight,f=0;const g=ga(r.rtl,this.x,this.width),p=function(m){n.fillText(m,g.x(t.x+f),t.y+h/2),t.y+=h+a},b=g.textAlign(o);let v,y,x,S,D,$,F;for(n.textAlign=o,n.textBaseline="middle",n.font=d.string,t.x=rl(this,b,r),n.fillStyle=r.bodyColor,Ge(this.beforeBody,p),f=s&&b!=="right"?o==="center"?u/2+c:u+2+c:0,S=0,$=i.length;S<$;++S){for(v=i[S],y=this.labelTextColors[S],n.fillStyle=y,Ge(v.before,p),x=v.lines,s&&x.length&&(this._drawColorBox(n,t,S,g,r),h=Math.max(d.lineHeight,l)),D=0,F=x.length;D<F;++D)p(x[D]),h=d.lineHeight;Ge(v.after,p)}f=0,h=d.lineHeight,Ge(this.afterBody,p),t.y-=a}drawFooter(t,n,r){const i=this.footer,a=i.length;let o,s;if(a){const l=ga(r.rtl,this.x,this.width);for(t.x=rl(this,r.footerAlign,r),t.y+=r.footerMarginTop,n.textAlign=l.textAlign(r.footerAlign),n.textBaseline="middle",o=Pt(r.footerFont),n.fillStyle=r.footerColor,n.font=o.string,s=0;s<a;++s)n.fillText(i[s],l.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+r.footerSpacing}}drawBackground(t,n,r,i){const{xAlign:a,yAlign:o}=this,{x:s,y:l}=t,{width:u,height:c}=r,{topLeft:d,topRight:h,bottomLeft:f,bottomRight:g}=mo(i.cornerRadius);n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.beginPath(),n.moveTo(s+d,l),o==="top"&&this.drawCaret(t,n,r,i),n.lineTo(s+u-h,l),n.quadraticCurveTo(s+u,l,s+u,l+h),o==="center"&&a==="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),o==="bottom"&&this.drawCaret(t,n,r,i),n.lineTo(s+f,l+c),n.quadraticCurveTo(s,l+c,s,l+c-f),o==="center"&&a==="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,a=r&&r.y;if(i||a){const o=no[t.position].call(this,this._active,this._eventPosition);if(!o)return;const s=this._size=Mp(this,t),l=Object.assign({},o,this._size),u=Bp(n,t,l),c=Op(t,l,u,n);(i._to!==c.x||a._to!==c.y)&&(this.xAlign=u.xAlign,this.yAlign=u.yAlign,this.width=s.width,this.height=s.height,this.caretX=o.x,this.caretY=o.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},a={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const o=In(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(a,t,i,n),N3(t,n.textDirection),a.y+=o.top,this.drawTitle(a,t,n),this.drawBody(a,t,n),this.drawFooter(a,t,n),V3(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}}),a=!ou(r,i),o=this._positionChanged(i,n);(a||o)&&(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,a=this._active||[],o=this._getActiveElements(t,a,n,r),s=this._positionChanged(o,t),l=n||!ou(o,a)||s;return l&&(this._active=o,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),l}_getActiveElements(t,n,r,i){const a=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 o=this.chart.getElementsAtEventForMode(t,a.mode,a,r);return a.reverse&&o.reverse(),o}_positionChanged(t,n){const{caretX:r,caretY:i,options:a}=this,o=no[a.position].call(this,t,n);return o!==!1&&(r!==o.x||i!==o.y)}},ae(Qc,"positioners",no),Qc);var aC={id:"tooltip",_element:Lp,positioners:no,afterInit(e,t,n){n&&(e.tooltip=new Lp({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:iC},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 s8=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function l8(e,t,n,r){const i=e.indexOf(t);if(i===-1)return s8(e,t,n,r);const a=e.lastIndexOf(t);return i!==a?n:i}const u8=(e,t)=>e===null?null:Vt(Math.round(e),0,t);function Hp(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class hu extends Pa{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:a}of n)r[i]===a&&r.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(at(t))return null;const r=this.getLabels();return n=isFinite(n)&&r[n]===t?n:l8(r,t,Re(n,t),this._addedLabels),u8(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 a=this.getLabels();a=t===0&&n===a.length-1?a:a.slice(t,n+1),this._valueRange=Math.max(a.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let o=t;o<=n;o++)i.push({value:o});return i}getLabelForValue(t){return Hp.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}}ae(hu,"id","category"),ae(hu,"defaults",{ticks:{callback:Hp}});function c8(e,t){const n=[],{bounds:i,step:a,min:o,max:s,precision:l,count:u,maxTicks:c,maxDigits:d,includeBounds:h}=e,f=a||1,g=c-1,{min:p,max:b}=t,v=!at(o),y=!at(s),x=!at(u),S=(b-p)/(d+1);let D=z0((b-p)/g/f)*f,$,F,m,C;if(D<1e-14&&!v&&!y)return[{value:p},{value:b}];C=Math.ceil(b/D)-Math.floor(p/D),C>g&&(D=z0(C*D/g/f)*f),at(l)||($=Math.pow(10,l),D=Math.ceil(D*$)/$),i==="ticks"?(F=Math.floor(p/D)*D,m=Math.ceil(b/D)*D):(F=p,m=b),v&&y&&a&&YP((s-o)/a,D/1e3)?(C=Math.round(Math.min((s-o)/D,c)),D=(s-o)/C,F=o,m=s):x?(F=v?o:F,m=y?s:m,C=u-1,D=(m-F)/C):(C=(m-F)/D,fo(C,Math.round(C),D/1e3)?C=Math.round(C):C=Math.ceil(C));const I=Math.max(G0(D),G0(F));$=Math.pow(10,at(l)?I:l),F=Math.round(F*$)/$,m=Math.round(m*$)/$;let E=0;for(v&&(h&&F!==o?(n.push({value:o}),F<o&&E++,fo(Math.round((F+E*D)*$)/$,o,jp(o,S,e))&&E++):F<o&&E++);E<C;++E){const R=Math.round((F+E*D)*$)/$;if(y&&R>s)break;n.push({value:R})}return y&&h&&m!==s?n.length&&fo(n[n.length-1].value,s,jp(s,S,e))?n[n.length-1].value=s:n.push({value:s}):(!y||m===s)&&n.push({value:m}),n}function jp(e,t,{horizontal:n,minRotation:r}){const i=xr(r),a=(n?Math.sin(i):Math.cos(i))||.001,o=.75*t*(""+e).length;return Math.min(t/a,o)}class d8 extends Pa{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 at(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:a}=this;const o=l=>i=n?i:l,s=l=>a=r?a:l;if(t){const l=Ea(i),u=Ea(a);l<0&&u<0?s(0):l>0&&u>0&&o(0)}if(i===a){let l=a===0?1:Math.abs(a*.05);s(a+l),t||o(i-l)}this.min=i,this.max=a}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},a=this._range||this,o=c8(i,a);return t.bounds==="ticks"&&UP(o,this,"value"),t.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}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 jh(t,this.chart.options.locale,this.options.ticks.format)}}class gu extends d8{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=En(t)?t:0,this.max=En(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=xr(this.options.ticks.minRotation),i=(t?Math.sin(r):Math.cos(r))||.001,a=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,a.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}}ae(gu,"id","linear"),ae(gu,"defaults",{ticks:{callback:F3.formatters.numeric}});const Xu={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}},Ut=Object.keys(Xu);function Wp(e,t){return e-t}function zp(e,t){if(at(t))return null;const n=e._adapter,{parser:r,round:i,isoWeekday:a}=e._parseOpts;let o=t;return typeof r=="function"&&(o=r(o)),En(o)||(o=typeof r=="string"?n.parse(o,r):n.parse(o)),o===null?null:(i&&(o=i==="week"&&(Jo(a)||a===!0)?n.startOf(o,"isoWeek",a):n.startOf(o,i)),+o)}function Gp(e,t,n,r){const i=Ut.length;for(let a=Ut.indexOf(e);a<i-1;++a){const o=Xu[Ut[a]],s=o.steps?o.steps:Number.MAX_SAFE_INTEGER;if(o.common&&Math.ceil((n-t)/(s*o.size))<=r)return Ut[a]}return Ut[i-1]}function f8(e,t,n,r,i){for(let a=Ut.length-1;a>=Ut.indexOf(n);a--){const o=Ut[a];if(Xu[o].common&&e._adapter.diff(i,r,o)>=t-1)return o}return Ut[n?Ut.indexOf(n):0]}function h8(e){for(let t=Ut.indexOf(e)+1,n=Ut.length;t<n;++t)if(Xu[Ut[t]].common)return Ut[t]}function Xp(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:r,hi:i}=Vh(n,t),a=n[r]>=t?n[r]:n[i];e[a]=!0}}function g8(e,t,n,r){const i=e._adapter,a=+i.startOf(t[0].value,r),o=t[t.length-1].value;let s,l;for(s=a;s<=o;s=+i.add(s,1,r))l=n[s],l>=0&&(t[l].major=!0);return t}function Zp(e,t,n){const r=[],i={},a=t.length;let o,s;for(o=0;o<a;++o)s=t[o],i[s]=o,r.push({value:s,major:!1});return a===0||!n?r:g8(e,r,i,n)}class mu extends Pa{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 SM._date(t.adapters.date);i.init(n),co(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:zp(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:a,minDefined:o,maxDefined:s}=this.getUserBounds();function l(u){!o&&!isNaN(u.min)&&(i=Math.min(i,u.min)),!s&&!isNaN(u.max)&&(a=Math.max(a,u.max))}(!o||!s)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),i=En(i)&&!isNaN(i)?i:+n.startOf(Date.now(),r),a=En(a)&&!isNaN(a)?a:+n.endOf(Date.now(),r)+1,this.min=Math.min(i,a-1),this.max=Math.max(i+1,a)}_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 a=this.min,o=this.max,s=ek(i,a,o);return this._unit=n.unit||(r.autoSkip?Gp(n.minUnit,this.min,this.max,this._getLabelCapacity(a)):f8(this,s.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:h8(this._unit),this.initOffsets(i),t.reverse&&s.reverse(),Zp(this,s,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,r=0,i,a;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?n=1-i:n=(this.getDecimalForValue(t[1])-i)/2,a=this.getDecimalForValue(t[t.length-1]),t.length===1?r=a:r=(a-this.getDecimalForValue(t[t.length-2]))/2);const o=t.length<3?.5:.25;n=Vt(n,0,o),r=Vt(r,0,o),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,a=i.time,o=a.unit||Gp(a.minUnit,n,r,this._getLabelCapacity(n)),s=Re(i.ticks.stepSize,1),l=o==="week"?a.isoWeekday:!1,u=Jo(l)||l===!0,c={};let d=n,h,f;if(u&&(d=+t.startOf(d,"isoWeek",l)),d=+t.startOf(d,u?"day":o),t.diff(r,n,o)>1e5*s)throw new Error(n+" and "+r+" are too far apart with stepSize of "+s+" "+o);const g=i.ticks.source==="data"&&this.getDataTimestamps();for(h=d,f=0;h<r;h=+t.add(h,s,o),f++)Xp(c,h,g);return(h===r||i.bounds==="ticks"||f===1)&&Xp(c,h,g),Object.keys(c).sort(Wp).map(p=>+p)}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,a=this._unit,o=n||i[a];return this._adapter.format(t,o)}_tickFormatFunction(t,n,r,i){const a=this.options,o=a.ticks.callback;if(o)return Ue(o,[t,n,r],this);const s=a.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=xr(this.isHorizontal()?n.maxRotation:n.minRotation),a=Math.cos(i),o=Math.sin(i),s=this._resolveTickFontOptions(0).size;return{w:r*a+s*o,h:r*o+s*a}}_getLabelCapacity(t){const n=this.options.time,r=n.displayFormats,i=r[n.unit]||r.millisecond,a=this._tickFormatFunction(t,0,Zp(this,[t],this._majorUnit),i),o=this._getLabelSize(a),s=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.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(zp(this,i[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return nk(t.sort(Wp))}}ae(mu,"id","time"),ae(mu,"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 il(e,t,n){let r=0,i=e.length-1,a,o,s,l;n?(t>=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=Ci(e,"pos",t)),{pos:a,time:s}=e[r],{pos:o,time:l}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=Ci(e,"time",t)),{time:a,pos:s}=e[r],{time:o,pos:l}=e[i]);const u=o-a;return u?s+(l-s)*(t-a)/u:s}class Yp extends mu{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=il(n,this.min),this._tableRange=il(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,i=[],a=[];let o,s,l,u,c;for(o=0,s=t.length;o<s;++o)u=t[o],u>=n&&u<=r&&i.push(u);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(o=0,s=i.length;o<s;++o)c=i[o+1],l=i[o-1],u=i[o],Math.round((c+l)/2)!==u&&a.push({time:u,pos:o/(s-1)});return a}_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,a)=>i-a)}_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(il(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return il(this._table,r*this._tableRange+this._minPos,!0)}}ae(Yp,"id","timeseries"),ae(Yp,"defaults",mu.defaults);const oC="label";function Up(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function m8(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function sC(e,t){e.labels=t}function lC(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:oC;const r=[];e.datasets=t.map(i=>{const a=e.datasets.find(o=>o[n]===i[n]);return!a||!i.data||r.includes(a)?{...i}:(r.push(a),Object.assign(a,i),a)})}function p8(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:oC;const n={labels:[],datasets:[]};return sC(n,e.labels),lC(n,e.datasets,t),n}function b8(e,t){const{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:a,type:o,data:s,options:l,plugins:u=[],fallbackContent:c,updateMode:d,...h}=e,f=w.useRef(null),g=w.useRef(),p=()=>{f.current&&(g.current=new ps(f.current,{type:o,data:p8(s,a),options:l&&{...l},plugins:u}),Up(t,g.current))},b=()=>{Up(t,null),g.current&&(g.current.destroy(),g.current=null)};return w.useEffect(()=>{!i&&g.current&&l&&m8(g.current,l)},[i,l]),w.useEffect(()=>{!i&&g.current&&sC(g.current.config.data,s.labels)},[i,s.labels]),w.useEffect(()=>{!i&&g.current&&s.datasets&&lC(g.current.config.data,s.datasets,a)},[i,s.datasets]),w.useEffect(()=>{g.current&&(i?(b(),setTimeout(p)):g.current.update(d))},[i,l,s.labels,s.datasets,d]),w.useEffect(()=>{g.current&&(b(),setTimeout(p))},[o]),w.useEffect(()=>(p(),()=>b()),[]),w.createElement("canvas",Object.assign({ref:f,role:"img",height:n,width:r},h),c)}const v8=w.forwardRef(b8);function uC(e,t){return ps.register(t),w.forwardRef((n,r)=>w.createElement(v8,Object.assign({},n,{ref:r,type:e})))}const y8=uC("line",Cl),Jp=uC("doughnut",Qa);ps.register(hu,gu,po,aa,to,rC,aC,tC);const Kp=(e,t)=>{var i,a,o,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 E;const S=[].concat(t),D=S.length,$=u.font;let F=0,m=0,C;for(C=0;C<D;++C)u.font=S[C].font,F=Math.max(u.measureText(S[C].text).width,F),m+=(E=S[C].font)==null?void 0:E.lineHeight;return u.font=$,{height:m,width:F}},d=(S,D)=>{let $=document.createElement("div");document.body.appendChild($),$.style.fontSize=`${D}px`,$.style.position="absolute",$.style.left="-10",$.style.top="-10",$.textContent=S;const F={width:$.clientWidth,height:$.clientHeight};return document.body.removeChild($),$=null,F},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 v;const y=t.length;let x=0;for(v=0;v<y;++v){let S=(i=t[v].font)==null?void 0:i.size,D=(a=t[v].font)==null?void 0:a.lineHeight;const $=typeof t[v].text=="number"?t[v].text.toString():t[v].text;for(;d($,S).width>f+(t[v].id==="value"?50:0);)S-=1,D=d($,S).height;$.length>22&&D<14&&(D=18);const F=b+D/2+x,m=typeof t[v].text=="number"?new Intl.NumberFormat("id-ID",{style:"currency",currency:"IDR"}).format(t[v].text):t[v].text;let C=t[v].urlIconDesc?" ":"";if(t[v].percentage!==void 0?C+=`${t[v].percentage}% ${t[v].text}`:C+=m,u.fillStyle=t[v].color,u.font=`${S<10?10:S}px sans-serif`,x+=D,t[v].percentage!==void 0&&t[v].urlIconDesc){const I=((s=(o=t[v])==null?void 0:o.percentage)==null?void 0:s.length)??0,E=new Image;E.src=t[v].urlIconDesc,u.drawImage(E,45-(I>6?I+2:I-2.5),F-8,16,14)}u.fillText(C,g,F)}u.restore(),u.save()}},x8=({labels:e,data:t,backgroundColor:n,options:r={},redraw:i,widthInnerDoughnut:a,innerLabels:o,open:s=!0,keyRemoveDataOpen:l="gap",keyLabel:u="title",keyValue:c="originalValue",keyBackground:d="backgroundColor",className:h})=>{const f={labels:e||t.map(p=>p[u]),datasets:[{data:t.map(p=>p[c]),backgroundColor:n||t.map(p=>p[d])}]},g={cutout:a,animation:{duration:i?400:0},plugins:{legend:{display:!1},tooltip:{external(p){let b=document.getElementById("chartjs-tooltip");b||(b=document.createElement("div"),b.id="chartjs-tooltip",b.innerHTML="<table></table>",document.body.appendChild(b));const v=p.tooltip;if(v.opacity===0){b.style.opacity="0";return}b.classList.remove("above","below","no-transform"),v.yAlign?b.classList.add(v.yAlign):b.classList.add("no-transform");const y=t.filter(F=>!F[u]),x=t.filter(F=>F[c]>0&&F[c]<1);if(y.length===1&&x.length===1)return;function S(F){return F.lines}if(v.body){const F=v.title||[];let m=v.body.map(S),C="<thead>";F.forEach(E=>{let R="";R+="display: flex",R+="; justify-content: center",R+="; font-weight: 600",R+="; font-size: 12px",R+="; padding: 0px 14px",C+=`<tr><span style="${R}">${E}</span></tr>`}),C+="</thead><tbody>",m.length>1&&m[0][0]===m[1][0]&&(m=[m[0]]),m.forEach(E=>{let R="";R+="display: flex",R+="; justify-content: center",R+="; color: #0163C8",R+="; padding: 0px 14px",R+="; font-size: 12px";const P=`<span style="${R}">${E}</span>`;C+=`<tr><td>${P}</td></tr>`}),C+="</tbody>";const I=b.querySelector("table");I&&(I.innerHTML=C)}const D=p.chart.canvas.getBoundingClientRect(),$=D.top+window.pageYOffset+v.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+v.caretX-80}px`,b.style.top=`${$>300&&!s?280:$}px`,b.style.pointerEvents="none"},displayColors:!0,enabled:!1,callbacks:{title(p){const b=t[p[0].dataIndex];return b==null?void 0:b[u]},label(p){const b=t==null?void 0:t[p.dataIndex];let v="Nilai: ";return b&&(v+=b.value),v}}}},elements:{arc:{borderWidth:0}}};return _.jsxs("div",{className:h??"",children:[!s&&_.jsx(Jp,{data:f,redraw:i,plugins:[{id:"draw",beforeDraw(p){Kp(p,o)}}],options:Object.keys(r).length>1?r:g}),s&&_.jsx(Jp,{data:f,redraw:i,plugins:[{id:"draw",beforeDraw(p){Kp(p,o.filter(b=>b.id!==l))}}],options:Object.keys(r).length>1?r:g})]})},al=e=>{let t;const n=new Date(e??new Date);return e&&(t=bh(new Date(n.setHours(n.getHours()+7)).toISOString().slice(0,10))),t},C8=({month:e,year:t,type:n=["month","year"],activeType:r="month",minDate:i,maxDate:a,className:o,classNameButton:s,onChange:l,buttonClick:u,id:c="date-picker",idPopover:d="date-picker-popover",floatingOptions:h={},offsetPopover:f=5,zIndexPopper:g=1})=>{const{locale:p}=Nn(),b=w.useRef(null),v=al(i),y=al(a),x=S=>{var D;typeof l=="function"&&(l({month:S.month,year:S.year}),(D=b.current)==null||D.setShow(!1))};return _.jsxs(_.Fragment,{children:[_.jsx("div",{id:c,onClick:S=>{var D;S.stopPropagation(),(D=b.current)==null||D.handlerShow(S)},className:s,children:typeof u=="function"?u({month:e,year:t}):"Pilih Tanggal"}),_.jsx("div",{className:o??"",children:_.jsx(Ir,{zIndex:g,ref:b,offset:f,id:d,floatingOptions:{placement:"bottom-end",...h},onClick:S=>S.stopPropagation(),children:_.jsx(Fh,{locale:"id-ID",children:_.jsx(Hu,{minValue:v,maxValue:y,minDate:i,maxDate:a,activeType:n.length===1?n[0]:r,locale:p,value:al(`${t}/${e}/1`),createCalendar:fs,defaultValue:al(`${t}/${e}/1`),onChange:x,handlerReset:()=>{},handlerSubmit:()=>{},withDateSelect:!1,type:n})})})})]})},w8=({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]),_.jsx("div",{className:`1ru-flex 1ru-items-center 1ru-h-full ${t??""}`,children:_.jsx(ju,{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:a=>{a.stopPropagation(),typeof r.onClick=="function"&&r.onClick(a)},type:"checkbox"})})},D8="_input_6rs0g_7",S8="_error_6rs0g_32",vn={"container-xs":"_container-xs_6rs0g_1","container-input":"_container-input_6rs0g_4",input:D8,error:S8,"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"},qh=w.forwardRef(({name:e,classNameContainer:t,id:n,type:r="text",startIcon:i,endIcon:a,error:o,sizeInput:s="xs",classNameLabelError:l,className:u,...c},d)=>{const h={size:{l:vn["container-l"],s:vn["container-s"],xs:vn["container-xs"]}},f=()=>typeof i=="function"||w.isValidElement(i),g=()=>typeof a=="function"||w.isValidElement(a);return _.jsxs("div",{className:`${h.size[s]} ${t}`,children:[_.jsxs("div",{className:`${vn["container-input"]}`,children:[_.jsxs("div",{className:vn["start-icon"],children:[typeof i=="function"&&i(),w.isValidElement(i)&&i]}),_.jsx("input",{id:n??e,className:`${vn.input} ${o?vn.error:""}
179
+ `):e}function e8(e,t){const{element:n,datasetIndex:r,index:i}=t,a=e.getDatasetMeta(r).controller,{label:o,value:s}=a.getLabelAndValue(i);return{chart:e,label:o,parsed:a.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:s,dataset:a.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function Mp(e,t){const n=e.chart.ctx,{body:r,footer:i,title:a}=e,{boxWidth:o,boxHeight:s}=t,l=Pt(t.bodyFont),u=Pt(t.titleFont),c=Pt(t.footerFont),d=a.length,h=i.length,f=r.length,g=In(t.padding);let p=g.height,b=0,v=r.reduce((S,D)=>S+D.before.length+D.lines.length+D.after.length,0);if(v+=e.beforeBody.length+e.afterBody.length,d&&(p+=d*u.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),v){const S=t.displayColors?Math.max(s,l.lineHeight):l.lineHeight;p+=f*S+(v-f)*l.lineHeight+(v-1)*t.bodySpacing}h&&(p+=t.footerMarginTop+h*c.lineHeight+(h-1)*t.footerSpacing);let y=0;const x=function(S){b=Math.max(b,n.measureText(S).width+y)};return n.save(),n.font=u.string,Ge(e.title,x),n.font=l.string,Ge(e.beforeBody.concat(e.afterBody),x),y=t.displayColors?o+2+t.boxPadding:0,Ge(r,S=>{Ge(S.before,x),Ge(S.lines,x),Ge(S.after,x)}),y=0,n.font=c.string,Ge(e.footer,x),n.restore(),b+=g.width,{width:b,height:p}}function t8(e,t){const{y:n,height:r}=t;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}function n8(e,t,n,r){const{x:i,width:a}=r,o=n.caretSize+n.caretPadding;if(e==="left"&&i+a+o>t.width||e==="right"&&i-a-o<0)return!0}function r8(e,t,n,r){const{x:i,width:a}=n,{width:o,chartArea:{left:s,right:l}}=e;let u="center";return r==="center"?u=i<=(s+l)/2?"left":"right":i<=a/2?u="left":i>=o-a/2&&(u="right"),n8(u,e,t,n)&&(u="center"),u}function Bp(e,t,n){const r=n.yAlign||t.yAlign||t8(e,n);return{xAlign:n.xAlign||t.xAlign||r8(e,t,n,r),yAlign:r}}function i8(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function a8(e,t,n){let{y:r,height:i}=e;return t==="top"?r+=n:t==="bottom"?r-=i+n:r-=i/2,r}function Op(e,t,n,r){const{caretSize:i,caretPadding:a,cornerRadius:o}=e,{xAlign:s,yAlign:l}=n,u=i+a,{topLeft:c,topRight:d,bottomLeft:h,bottomRight:f}=mo(o);let g=i8(t,s);const p=a8(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:Vt(g,0,r.width-t.width),y:Vt(p,0,r.height-t.height)}}function rl(e,t,n){const r=In(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function Np(e){return Wn([],dr(e))}function o8(e,t,n){return Vi(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function Vp(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const iC={beforeTitle:lr,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:lr,beforeBody:lr,beforeLabel:lr,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 at(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:lr,afterBody:lr,beforeFooter:lr,footer:lr,afterFooter:lr};function Zt(e,t,n,r){const i=e[t].call(n,r);return typeof i>"u"?iC[t].call(n,r):i}var Qc;let Lp=(Qc=class extends ei{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,a=new H3(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(a)),a}getContext(){return this.$context||(this.$context=o8(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,i=Zt(r,"beforeTitle",this,t),a=Zt(r,"title",this,t),o=Zt(r,"afterTitle",this,t);let s=[];return s=Wn(s,dr(i)),s=Wn(s,dr(a)),s=Wn(s,dr(o)),s}getBeforeBody(t,n){return Np(Zt(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,i=[];return Ge(t,a=>{const o={before:[],lines:[],after:[]},s=Vp(r,a);Wn(o.before,dr(Zt(s,"beforeLabel",this,a))),Wn(o.lines,Zt(s,"label",this,a)),Wn(o.after,dr(Zt(s,"afterLabel",this,a))),i.push(o)}),i}getAfterBody(t,n){return Np(Zt(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,i=Zt(r,"beforeFooter",this,t),a=Zt(r,"footer",this,t),o=Zt(r,"afterFooter",this,t);let s=[];return s=Wn(s,dr(i)),s=Wn(s,dr(a)),s=Wn(s,dr(o)),s}_createItems(t){const n=this._active,r=this.chart.data,i=[],a=[],o=[];let s=[],l,u;for(l=0,u=n.length;l<u;++l)s.push(e8(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))),Ge(s,c=>{const d=Vp(t.callbacks,c);i.push(Zt(d,"labelColor",this,c)),a.push(Zt(d,"labelPointStyle",this,c)),o.push(Zt(d,"labelTextColor",this,c))}),this.labelColors=i,this.labelPointStyles=a,this.labelTextColors=o,this.dataPoints=s,s}update(t,n){const r=this.options.setContext(this.getContext()),i=this._active;let a,o=[];if(!i.length)this.opacity!==0&&(a={opacity:0});else{const s=no[r.position].call(this,i,this._eventPosition);o=this._createItems(r),this.title=this.getTitle(o,r),this.beforeBody=this.getBeforeBody(o,r),this.body=this.getBody(o,r),this.afterBody=this.getAfterBody(o,r),this.footer=this.getFooter(o,r);const l=this._size=Mp(this,r),u=Object.assign({},s,l),c=Bp(this.chart,r,u),d=Op(r,u,c,this.chart);this.xAlign=c.xAlign,this.yAlign=c.yAlign,a={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:s.x,caretY:s.y}}this._tooltipItems=o,this.$context=void 0,a&&this._resolveAnimations().update(this,a),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,i){const a=this.getCaretPosition(t,r,i);n.lineTo(a.x1,a.y1),n.lineTo(a.x2,a.y2),n.lineTo(a.x3,a.y3)}getCaretPosition(t,n,r){const{xAlign:i,yAlign:a}=this,{caretSize:o,cornerRadius:s}=r,{topLeft:l,topRight:u,bottomLeft:c,bottomRight:d}=mo(s),{x:h,y:f}=t,{width:g,height:p}=n;let b,v,y,x,S,D;return a==="center"?(S=f+p/2,i==="left"?(b=h,v=b-o,x=S+o,D=S-o):(b=h+g,v=b+o,x=S-o,D=S+o),y=b):(i==="left"?v=h+Math.max(l,c)+o:i==="right"?v=h+g-Math.max(u,d)-o:v=this.caretX,a==="top"?(x=f,S=x-o,b=v-o,y=v+o):(x=f+p,S=x+o,b=v+o,y=v-o),D=x),{x1:b,x2:v,x3:y,y1:x,y2:S,y3:D}}drawTitle(t,n,r){const i=this.title,a=i.length;let o,s,l;if(a){const u=ma(r.rtl,this.x,this.width);for(t.x=rl(this,r.titleAlign,r),n.textAlign=u.textAlign(r.titleAlign),n.textBaseline="middle",o=Pt(r.titleFont),s=r.titleSpacing,n.fillStyle=r.titleColor,n.font=o.string,l=0;l<a;++l)n.fillText(i[l],u.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+s,l+1===a&&(t.y+=r.titleMarginBottom-s)}}_drawColorBox(t,n,r,i,a){const o=this.labelColors[r],s=this.labelPointStyles[r],{boxHeight:l,boxWidth:u}=a,c=Pt(a.bodyFont),d=rl(this,"left",a),h=i.x(d),f=l<c.lineHeight?(c.lineHeight-l)/2:0,g=n.y+f;if(a.usePointStyle){const p={radius:Math.min(u,l)/2,pointStyle:s.pointStyle,rotation:s.rotation,borderWidth:1},b=i.leftForLtr(h,u)+u/2,v=g+l/2;t.strokeStyle=a.multiKeyBackground,t.fillStyle=a.multiKeyBackground,nf(t,p,b,v),t.strokeStyle=o.borderColor,t.fillStyle=o.backgroundColor,nf(t,p,b,v)}else{t.lineWidth=ke(o.borderWidth)?Math.max(...Object.values(o.borderWidth)):o.borderWidth||1,t.strokeStyle=o.borderColor,t.setLineDash(o.borderDash||[]),t.lineDashOffset=o.borderDashOffset||0;const p=i.leftForLtr(h,u),b=i.leftForLtr(i.xPlus(h,1),u-2),v=mo(o.borderRadius);Object.values(v).some(y=>y!==0)?(t.beginPath(),t.fillStyle=a.multiKeyBackground,rf(t,{x:p,y:g,w:u,h:l,radius:v}),t.fill(),t.stroke(),t.fillStyle=o.backgroundColor,t.beginPath(),rf(t,{x:b,y:g+1,w:u-2,h:l-2,radius:v}),t.fill()):(t.fillStyle=a.multiKeyBackground,t.fillRect(p,g,u,l),t.strokeRect(p,g,u,l),t.fillStyle=o.backgroundColor,t.fillRect(b,g+1,u-2,l-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:i}=this,{bodySpacing:a,bodyAlign:o,displayColors:s,boxHeight:l,boxWidth:u,boxPadding:c}=r,d=Pt(r.bodyFont);let h=d.lineHeight,f=0;const g=ma(r.rtl,this.x,this.width),p=function(m){n.fillText(m,g.x(t.x+f),t.y+h/2),t.y+=h+a},b=g.textAlign(o);let v,y,x,S,D,$,F;for(n.textAlign=o,n.textBaseline="middle",n.font=d.string,t.x=rl(this,b,r),n.fillStyle=r.bodyColor,Ge(this.beforeBody,p),f=s&&b!=="right"?o==="center"?u/2+c:u+2+c:0,S=0,$=i.length;S<$;++S){for(v=i[S],y=this.labelTextColors[S],n.fillStyle=y,Ge(v.before,p),x=v.lines,s&&x.length&&(this._drawColorBox(n,t,S,g,r),h=Math.max(d.lineHeight,l)),D=0,F=x.length;D<F;++D)p(x[D]),h=d.lineHeight;Ge(v.after,p)}f=0,h=d.lineHeight,Ge(this.afterBody,p),t.y-=a}drawFooter(t,n,r){const i=this.footer,a=i.length;let o,s;if(a){const l=ma(r.rtl,this.x,this.width);for(t.x=rl(this,r.footerAlign,r),t.y+=r.footerMarginTop,n.textAlign=l.textAlign(r.footerAlign),n.textBaseline="middle",o=Pt(r.footerFont),n.fillStyle=r.footerColor,n.font=o.string,s=0;s<a;++s)n.fillText(i[s],l.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+r.footerSpacing}}drawBackground(t,n,r,i){const{xAlign:a,yAlign:o}=this,{x:s,y:l}=t,{width:u,height:c}=r,{topLeft:d,topRight:h,bottomLeft:f,bottomRight:g}=mo(i.cornerRadius);n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.beginPath(),n.moveTo(s+d,l),o==="top"&&this.drawCaret(t,n,r,i),n.lineTo(s+u-h,l),n.quadraticCurveTo(s+u,l,s+u,l+h),o==="center"&&a==="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),o==="bottom"&&this.drawCaret(t,n,r,i),n.lineTo(s+f,l+c),n.quadraticCurveTo(s,l+c,s,l+c-f),o==="center"&&a==="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,a=r&&r.y;if(i||a){const o=no[t.position].call(this,this._active,this._eventPosition);if(!o)return;const s=this._size=Mp(this,t),l=Object.assign({},o,this._size),u=Bp(n,t,l),c=Op(t,l,u,n);(i._to!==c.x||a._to!==c.y)&&(this.xAlign=u.xAlign,this.yAlign=u.yAlign,this.width=s.width,this.height=s.height,this.caretX=o.x,this.caretY=o.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},a={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const o=In(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(a,t,i,n),N3(t,n.textDirection),a.y+=o.top,this.drawTitle(a,t,n),this.drawBody(a,t,n),this.drawFooter(a,t,n),V3(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}}),a=!ou(r,i),o=this._positionChanged(i,n);(a||o)&&(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,a=this._active||[],o=this._getActiveElements(t,a,n,r),s=this._positionChanged(o,t),l=n||!ou(o,a)||s;return l&&(this._active=o,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),l}_getActiveElements(t,n,r,i){const a=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 o=this.chart.getElementsAtEventForMode(t,a.mode,a,r);return a.reverse&&o.reverse(),o}_positionChanged(t,n){const{caretX:r,caretY:i,options:a}=this,o=no[a.position].call(this,t,n);return o!==!1&&(r!==o.x||i!==o.y)}},ae(Qc,"positioners",no),Qc);var aC={id:"tooltip",_element:Lp,positioners:no,afterInit(e,t,n){n&&(e.tooltip=new Lp({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:iC},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 s8=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function l8(e,t,n,r){const i=e.indexOf(t);if(i===-1)return s8(e,t,n,r);const a=e.lastIndexOf(t);return i!==a?n:i}const u8=(e,t)=>e===null?null:Vt(Math.round(e),0,t);function Hp(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class hu extends Pa{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:a}of n)r[i]===a&&r.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(at(t))return null;const r=this.getLabels();return n=isFinite(n)&&r[n]===t?n:l8(r,t,Re(n,t),this._addedLabels),u8(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 a=this.getLabels();a=t===0&&n===a.length-1?a:a.slice(t,n+1),this._valueRange=Math.max(a.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let o=t;o<=n;o++)i.push({value:o});return i}getLabelForValue(t){return Hp.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}}ae(hu,"id","category"),ae(hu,"defaults",{ticks:{callback:Hp}});function c8(e,t){const n=[],{bounds:i,step:a,min:o,max:s,precision:l,count:u,maxTicks:c,maxDigits:d,includeBounds:h}=e,f=a||1,g=c-1,{min:p,max:b}=t,v=!at(o),y=!at(s),x=!at(u),S=(b-p)/(d+1);let D=z0((b-p)/g/f)*f,$,F,m,C;if(D<1e-14&&!v&&!y)return[{value:p},{value:b}];C=Math.ceil(b/D)-Math.floor(p/D),C>g&&(D=z0(C*D/g/f)*f),at(l)||($=Math.pow(10,l),D=Math.ceil(D*$)/$),i==="ticks"?(F=Math.floor(p/D)*D,m=Math.ceil(b/D)*D):(F=p,m=b),v&&y&&a&&YP((s-o)/a,D/1e3)?(C=Math.round(Math.min((s-o)/D,c)),D=(s-o)/C,F=o,m=s):x?(F=v?o:F,m=y?s:m,C=u-1,D=(m-F)/C):(C=(m-F)/D,fo(C,Math.round(C),D/1e3)?C=Math.round(C):C=Math.ceil(C));const I=Math.max(G0(D),G0(F));$=Math.pow(10,at(l)?I:l),F=Math.round(F*$)/$,m=Math.round(m*$)/$;let E=0;for(v&&(h&&F!==o?(n.push({value:o}),F<o&&E++,fo(Math.round((F+E*D)*$)/$,o,jp(o,S,e))&&E++):F<o&&E++);E<C;++E){const R=Math.round((F+E*D)*$)/$;if(y&&R>s)break;n.push({value:R})}return y&&h&&m!==s?n.length&&fo(n[n.length-1].value,s,jp(s,S,e))?n[n.length-1].value=s:n.push({value:s}):(!y||m===s)&&n.push({value:m}),n}function jp(e,t,{horizontal:n,minRotation:r}){const i=xr(r),a=(n?Math.sin(i):Math.cos(i))||.001,o=.75*t*(""+e).length;return Math.min(t/a,o)}class d8 extends Pa{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 at(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:a}=this;const o=l=>i=n?i:l,s=l=>a=r?a:l;if(t){const l=Ea(i),u=Ea(a);l<0&&u<0?s(0):l>0&&u>0&&o(0)}if(i===a){let l=a===0?1:Math.abs(a*.05);s(a+l),t||o(i-l)}this.min=i,this.max=a}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},a=this._range||this,o=c8(i,a);return t.bounds==="ticks"&&UP(o,this,"value"),t.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}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 jh(t,this.chart.options.locale,this.options.ticks.format)}}class gu extends d8{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=En(t)?t:0,this.max=En(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=xr(this.options.ticks.minRotation),i=(t?Math.sin(r):Math.cos(r))||.001,a=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,a.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}}ae(gu,"id","linear"),ae(gu,"defaults",{ticks:{callback:F3.formatters.numeric}});const Xu={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}},Ut=Object.keys(Xu);function Wp(e,t){return e-t}function zp(e,t){if(at(t))return null;const n=e._adapter,{parser:r,round:i,isoWeekday:a}=e._parseOpts;let o=t;return typeof r=="function"&&(o=r(o)),En(o)||(o=typeof r=="string"?n.parse(o,r):n.parse(o)),o===null?null:(i&&(o=i==="week"&&(Jo(a)||a===!0)?n.startOf(o,"isoWeek",a):n.startOf(o,i)),+o)}function Gp(e,t,n,r){const i=Ut.length;for(let a=Ut.indexOf(e);a<i-1;++a){const o=Xu[Ut[a]],s=o.steps?o.steps:Number.MAX_SAFE_INTEGER;if(o.common&&Math.ceil((n-t)/(s*o.size))<=r)return Ut[a]}return Ut[i-1]}function f8(e,t,n,r,i){for(let a=Ut.length-1;a>=Ut.indexOf(n);a--){const o=Ut[a];if(Xu[o].common&&e._adapter.diff(i,r,o)>=t-1)return o}return Ut[n?Ut.indexOf(n):0]}function h8(e){for(let t=Ut.indexOf(e)+1,n=Ut.length;t<n;++t)if(Xu[Ut[t]].common)return Ut[t]}function Xp(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:r,hi:i}=Vh(n,t),a=n[r]>=t?n[r]:n[i];e[a]=!0}}function g8(e,t,n,r){const i=e._adapter,a=+i.startOf(t[0].value,r),o=t[t.length-1].value;let s,l;for(s=a;s<=o;s=+i.add(s,1,r))l=n[s],l>=0&&(t[l].major=!0);return t}function Zp(e,t,n){const r=[],i={},a=t.length;let o,s;for(o=0;o<a;++o)s=t[o],i[s]=o,r.push({value:s,major:!1});return a===0||!n?r:g8(e,r,i,n)}class mu extends Pa{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 SM._date(t.adapters.date);i.init(n),co(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:zp(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:a,minDefined:o,maxDefined:s}=this.getUserBounds();function l(u){!o&&!isNaN(u.min)&&(i=Math.min(i,u.min)),!s&&!isNaN(u.max)&&(a=Math.max(a,u.max))}(!o||!s)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),i=En(i)&&!isNaN(i)?i:+n.startOf(Date.now(),r),a=En(a)&&!isNaN(a)?a:+n.endOf(Date.now(),r)+1,this.min=Math.min(i,a-1),this.max=Math.max(i+1,a)}_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 a=this.min,o=this.max,s=ek(i,a,o);return this._unit=n.unit||(r.autoSkip?Gp(n.minUnit,this.min,this.max,this._getLabelCapacity(a)):f8(this,s.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:h8(this._unit),this.initOffsets(i),t.reverse&&s.reverse(),Zp(this,s,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,r=0,i,a;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?n=1-i:n=(this.getDecimalForValue(t[1])-i)/2,a=this.getDecimalForValue(t[t.length-1]),t.length===1?r=a:r=(a-this.getDecimalForValue(t[t.length-2]))/2);const o=t.length<3?.5:.25;n=Vt(n,0,o),r=Vt(r,0,o),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,a=i.time,o=a.unit||Gp(a.minUnit,n,r,this._getLabelCapacity(n)),s=Re(i.ticks.stepSize,1),l=o==="week"?a.isoWeekday:!1,u=Jo(l)||l===!0,c={};let d=n,h,f;if(u&&(d=+t.startOf(d,"isoWeek",l)),d=+t.startOf(d,u?"day":o),t.diff(r,n,o)>1e5*s)throw new Error(n+" and "+r+" are too far apart with stepSize of "+s+" "+o);const g=i.ticks.source==="data"&&this.getDataTimestamps();for(h=d,f=0;h<r;h=+t.add(h,s,o),f++)Xp(c,h,g);return(h===r||i.bounds==="ticks"||f===1)&&Xp(c,h,g),Object.keys(c).sort(Wp).map(p=>+p)}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,a=this._unit,o=n||i[a];return this._adapter.format(t,o)}_tickFormatFunction(t,n,r,i){const a=this.options,o=a.ticks.callback;if(o)return Ue(o,[t,n,r],this);const s=a.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=xr(this.isHorizontal()?n.maxRotation:n.minRotation),a=Math.cos(i),o=Math.sin(i),s=this._resolveTickFontOptions(0).size;return{w:r*a+s*o,h:r*o+s*a}}_getLabelCapacity(t){const n=this.options.time,r=n.displayFormats,i=r[n.unit]||r.millisecond,a=this._tickFormatFunction(t,0,Zp(this,[t],this._majorUnit),i),o=this._getLabelSize(a),s=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.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(zp(this,i[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return nk(t.sort(Wp))}}ae(mu,"id","time"),ae(mu,"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 il(e,t,n){let r=0,i=e.length-1,a,o,s,l;n?(t>=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=Ci(e,"pos",t)),{pos:a,time:s}=e[r],{pos:o,time:l}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=Ci(e,"time",t)),{time:a,pos:s}=e[r],{time:o,pos:l}=e[i]);const u=o-a;return u?s+(l-s)*(t-a)/u:s}class Yp extends mu{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=il(n,this.min),this._tableRange=il(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,i=[],a=[];let o,s,l,u,c;for(o=0,s=t.length;o<s;++o)u=t[o],u>=n&&u<=r&&i.push(u);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(o=0,s=i.length;o<s;++o)c=i[o+1],l=i[o-1],u=i[o],Math.round((c+l)/2)!==u&&a.push({time:u,pos:o/(s-1)});return a}_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,a)=>i-a)}_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(il(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return il(this._table,r*this._tableRange+this._minPos,!0)}}ae(Yp,"id","timeseries"),ae(Yp,"defaults",mu.defaults);const oC="label";function Up(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function m8(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function sC(e,t){e.labels=t}function lC(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:oC;const r=[];e.datasets=t.map(i=>{const a=e.datasets.find(o=>o[n]===i[n]);return!a||!i.data||r.includes(a)?{...i}:(r.push(a),Object.assign(a,i),a)})}function p8(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:oC;const n={labels:[],datasets:[]};return sC(n,e.labels),lC(n,e.datasets,t),n}function b8(e,t){const{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:a,type:o,data:s,options:l,plugins:u=[],fallbackContent:c,updateMode:d,...h}=e,f=w.useRef(null),g=w.useRef(),p=()=>{f.current&&(g.current=new ps(f.current,{type:o,data:p8(s,a),options:l&&{...l},plugins:u}),Up(t,g.current))},b=()=>{Up(t,null),g.current&&(g.current.destroy(),g.current=null)};return w.useEffect(()=>{!i&&g.current&&l&&m8(g.current,l)},[i,l]),w.useEffect(()=>{!i&&g.current&&sC(g.current.config.data,s.labels)},[i,s.labels]),w.useEffect(()=>{!i&&g.current&&s.datasets&&lC(g.current.config.data,s.datasets,a)},[i,s.datasets]),w.useEffect(()=>{g.current&&(i?(b(),setTimeout(p)):g.current.update(d))},[i,l,s.labels,s.datasets,d]),w.useEffect(()=>{g.current&&(b(),setTimeout(p))},[o]),w.useEffect(()=>(p(),()=>b()),[]),w.createElement("canvas",Object.assign({ref:f,role:"img",height:n,width:r},h),c)}const v8=w.forwardRef(b8);function uC(e,t){return ps.register(t),w.forwardRef((n,r)=>w.createElement(v8,Object.assign({},n,{ref:r,type:e})))}const y8=uC("line",Cl),Jp=uC("doughnut",Qa);ps.register(hu,gu,po,oa,to,rC,aC,tC);const Kp=(e,t)=>{var i,a,o,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 E;const S=[].concat(t),D=S.length,$=u.font;let F=0,m=0,C;for(C=0;C<D;++C)u.font=S[C].font,F=Math.max(u.measureText(S[C].text).width,F),m+=(E=S[C].font)==null?void 0:E.lineHeight;return u.font=$,{height:m,width:F}},d=(S,D)=>{let $=document.createElement("div");document.body.appendChild($),$.style.fontSize=`${D}px`,$.style.position="absolute",$.style.left="-10",$.style.top="-10",$.textContent=S;const F={width:$.clientWidth,height:$.clientHeight};return document.body.removeChild($),$=null,F},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 v;const y=t.length;let x=0;for(v=0;v<y;++v){let S=(i=t[v].font)==null?void 0:i.size,D=(a=t[v].font)==null?void 0:a.lineHeight;const $=typeof t[v].text=="number"?t[v].text.toString():t[v].text;for(;d($,S).width>f+(t[v].id==="value"?50:0);)S-=1,D=d($,S).height;$.length>22&&D<14&&(D=18);const F=b+D/2+x,m=typeof t[v].text=="number"?new Intl.NumberFormat("id-ID",{style:"currency",currency:"IDR"}).format(t[v].text):t[v].text;let C=t[v].urlIconDesc?" ":"";if(t[v].percentage!==void 0?C+=`${t[v].percentage}% ${t[v].text}`:C+=m,u.fillStyle=t[v].color,u.font=`${S<10?10:S}px sans-serif`,x+=D,t[v].percentage!==void 0&&t[v].urlIconDesc){const I=((s=(o=t[v])==null?void 0:o.percentage)==null?void 0:s.length)??0,E=new Image;E.src=t[v].urlIconDesc,u.drawImage(E,45-(I>6?I+2:I-2.5),F-8,16,14)}u.fillText(C,g,F)}u.restore(),u.save()}},x8=({labels:e,data:t,backgroundColor:n,options:r={},redraw:i,widthInnerDoughnut:a,innerLabels:o,open:s=!0,keyRemoveDataOpen:l="gap",keyLabel:u="title",keyValue:c="originalValue",keyBackground:d="backgroundColor",className:h})=>{const f={labels:e||t.map(p=>p[u]),datasets:[{data:t.map(p=>p[c]),backgroundColor:n||t.map(p=>p[d])}]},g={cutout:a,animation:{duration:i?400:0},plugins:{legend:{display:!1},tooltip:{external(p){let b=document.getElementById("chartjs-tooltip");b||(b=document.createElement("div"),b.id="chartjs-tooltip",b.innerHTML="<table></table>",document.body.appendChild(b));const v=p.tooltip;if(v.opacity===0){b.style.opacity="0";return}b.classList.remove("above","below","no-transform"),v.yAlign?b.classList.add(v.yAlign):b.classList.add("no-transform");const y=t.filter(F=>!F[u]),x=t.filter(F=>F[c]>0&&F[c]<1);if(y.length===1&&x.length===1)return;function S(F){return F.lines}if(v.body){const F=v.title||[];let m=v.body.map(S),C="<thead>";F.forEach(E=>{let R="";R+="display: flex",R+="; justify-content: center",R+="; font-weight: 600",R+="; font-size: 12px",R+="; padding: 0px 14px",C+=`<tr><span style="${R}">${E}</span></tr>`}),C+="</thead><tbody>",m.length>1&&m[0][0]===m[1][0]&&(m=[m[0]]),m.forEach(E=>{let R="";R+="display: flex",R+="; justify-content: center",R+="; color: #0163C8",R+="; padding: 0px 14px",R+="; font-size: 12px";const P=`<span style="${R}">${E}</span>`;C+=`<tr><td>${P}</td></tr>`}),C+="</tbody>";const I=b.querySelector("table");I&&(I.innerHTML=C)}const D=p.chart.canvas.getBoundingClientRect(),$=D.top+window.pageYOffset+v.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+v.caretX-80}px`,b.style.top=`${$>300&&!s?280:$}px`,b.style.pointerEvents="none"},displayColors:!0,enabled:!1,callbacks:{title(p){const b=t[p[0].dataIndex];return b==null?void 0:b[u]},label(p){const b=t==null?void 0:t[p.dataIndex];let v="Nilai: ";return b&&(v+=b.value),v}}}},elements:{arc:{borderWidth:0}}};return _.jsxs("div",{className:h??"",children:[!s&&_.jsx(Jp,{data:f,redraw:i,plugins:[{id:"draw",beforeDraw(p){Kp(p,o)}}],options:Object.keys(r).length>1?r:g}),s&&_.jsx(Jp,{data:f,redraw:i,plugins:[{id:"draw",beforeDraw(p){Kp(p,o.filter(b=>b.id!==l))}}],options:Object.keys(r).length>1?r:g})]})},al=e=>{let t;const n=new Date(e??new Date);return e&&(t=bh(new Date(n.setHours(n.getHours()+7)).toISOString().slice(0,10))),t},C8=({month:e,year:t,type:n=["month","year"],activeType:r="month",minDate:i,maxDate:a,className:o,classNameButton:s,onChange:l,buttonClick:u,id:c="date-picker",idPopover:d="date-picker-popover",floatingOptions:h={},offsetPopover:f=5,zIndexPopper:g=1})=>{const{locale:p}=Nn(),b=w.useRef(null),v=al(i),y=al(a),x=S=>{var D;typeof l=="function"&&(l({month:S.month,year:S.year}),(D=b.current)==null||D.setShow(!1))};return _.jsxs(_.Fragment,{children:[_.jsx("div",{id:c,onClick:S=>{var D;S.stopPropagation(),(D=b.current)==null||D.handlerShow(S)},className:s,children:typeof u=="function"?u({month:e,year:t}):"Pilih Tanggal"}),_.jsx("div",{className:o??"",children:_.jsx(Ir,{zIndex:g,ref:b,offset:f,id:d,floatingOptions:{placement:"bottom-end",...h},onClick:S=>S.stopPropagation(),children:_.jsx(Fh,{locale:"id-ID",children:_.jsx(Hu,{minValue:v,maxValue:y,minDate:i,maxDate:a,activeType:n.length===1?n[0]:r,locale:p,value:al(`${t}/${e}/1`),createCalendar:fs,defaultValue:al(`${t}/${e}/1`),onChange:x,handlerReset:()=>{},handlerSubmit:()=>{},withDateSelect:!1,type:n})})})})]})},w8=({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]),_.jsx("div",{className:`1ru-flex 1ru-items-center 1ru-h-full ${t??""}`,children:_.jsx(ju,{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:a=>{a.stopPropagation(),typeof r.onClick=="function"&&r.onClick(a)},type:"checkbox"})})},D8="_input_6rs0g_7",S8="_error_6rs0g_32",vn={"container-xs":"_container-xs_6rs0g_1","container-input":"_container-input_6rs0g_4",input:D8,error:S8,"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"},qh=w.forwardRef(({name:e,classNameContainer:t,id:n,type:r="text",startIcon:i,endIcon:a,error:o,sizeInput:s="xs",classNameLabelError:l,className:u,...c},d)=>{const h={size:{l:vn["container-l"],s:vn["container-s"],xs:vn["container-xs"]}},f=()=>typeof i=="function"||w.isValidElement(i),g=()=>typeof a=="function"||w.isValidElement(a);return _.jsxs("div",{className:`${h.size[s]} ${t}`,children:[_.jsxs("div",{className:`${vn["container-input"]}`,children:[_.jsxs("div",{className:vn["start-icon"],children:[typeof i=="function"&&i(),w.isValidElement(i)&&i]}),_.jsx("input",{id:n??e,className:`${vn.input} ${o?vn.error:""}
180
180
  ${f()?vn["isset-left-icon"]:""}
181
181
  ${g()?vn["isset-right-icon"]:""}
182
182
  ${u??""}`,ref:d,type:r,...c}),_.jsxs("div",{className:vn["end-icon"],children:[typeof a=="function"&&a(),w.isValidElement(a)&&a]})]}),o&&_.jsx("label",{className:`${vn["label-error"]}
183
- ${c.disabled?vn.disabled:""} ${l??""}`,children:o})]})});qh.displayName="InputNative";const E8="_container_1szxn_1",I8="_files_1szxn_4",_8="_file_1szxn_4",Qi={container:E8,files:I8,file:_8,"file-name-wrapper":"_file-name-wrapper_1szxn_10","file-name":"_file-name_1szxn_10","file-extension":"_file-extension_1szxn_13"},$8=({value:e,validateFile:t,classNameContainer:n,classNameButton:r,textUpload:i="Unggah Lampiran",buttonProps:a={},maxFile:o=1,maxSize:s=1,error:l,removeElement:u,onChange:c,handlerDownload:d,priorityError:h="external",eventError:f})=>{const g={variants:"ghost-laba-blue-10",size:"small"},p=w.useRef(null),b=t||["image/png","image/jpeg","image/jpg"],[v,y]=w.useState(""),x={internal:v||l,external:l||v},S=F=>{if(F!=null&&F.length){const m=Array.from(F).slice(0,o),C=m==null?void 0:m.filter(R=>!b.includes(R.type)),I=(m==null?void 0:m.reduce((R,P)=>R+P.size,0))/1024/1024;let E="";if(C.length>0?E="Berkas tidak didukung, silahkan pilih file kembali.":I>s?E=`${F.length>1?"Jumlah u":"U"}kuran berkas tidak boleh melebihi ${s}MB.`:typeof c=="function"&&c(m),y(E),f==null||f(E),!(p!=null&&p.current))return;p.current.value=""}},D=F=>{var m;F.preventDefault(),p!=null&&p.current&&((m=p.current)==null||m.click())};function $(F){if(typeof F!="string")throw new Error("Input harus berupa string");const m=F.split(".");if(m.length===1)return{filename:F,extension:""};const C="."+m[m.length-1];return{filename:m.slice(0,-1).join("."),extension:C}}return _.jsxs("div",{className:`${Qi.container} ${n??""}`,children:[_.jsx(Mn,{...g,...a,className:r??"",onClick:F=>D(F),children:i}),_.jsx(qh,{accept:b==null?void 0:b.join(", "),ref:p,type:"file",onChange:F=>S(F.target.files),error:x[h],multiple:o>1,hidden:!0}),_.jsx("div",{className:Qi.files,children:e==null?void 0:e.map((F,m)=>_.jsxs("div",{className:Qi.file,onClick:C=>{C.stopPropagation(),typeof d=="function"&&d(F)},children:[_.jsxs("div",{className:Qi["file-name-wrapper"],children:[_.jsx("span",{className:Qi["file-name"],children:$((F==null?void 0:F.originalName)??(F==null?void 0:F.name)??(F==null?void 0:F.fileName)??"").filename}),_.jsx("span",{className:Qi["file-extension"],children:$((F==null?void 0:F.originalName)??(F==null?void 0:F.name)??(F==null?void 0:F.fileName)??"").extension})]}),typeof u=="function"&&_.jsx(_.Fragment,{children:u(F)})]},m))})]})},qp={"error-payhere":"_error-payhere_1hkqz_1","error-laba":"_error-laba_1hkqz_5"},R8=({className:e,variants:t="laba",error:n})=>{const r={variants:{laba:qp["error-laba"],payhere:qp["error-payhere"]}};return _.jsx(_.Fragment,{children:n?_.jsx("span",{className:`${r.variants[t]} ${e??""}`,children:n}):_.jsx(_.Fragment,{})})},A8="_container_5yc5a_1",F8="_textarea_5yc5a_7",T8="_label_5yc5a_36",P8="_error_5yc5a_44",ur={container:A8,"size-medium":"_size-medium_5yc5a_1","container-textarea":"_container-textarea_5yc5a_4",textarea:F8,"placeholder-shown":"_placeholder-shown_5yc5a_24",label:T8,error:P8,"label-error":"_label-error_5yc5a_60"},cC=w.forwardRef((e,t)=>{const{isRequired:n,classNameContainer:r,className:i,classNameLabel:a,classNameLabelError:o,name:s,id:l,label:u,error:c,height:d,minHeight:h=94,maxHeight:f=150,style:g,sizeInput:p="medium",translateLabel:b=20,autoTranslateLabel:v=!1,...y}=e,x=w.useRef(null),S=Yf(x,t),D=w.useRef(null),$={...g??{},maxHeight:f,height:d??h,minHeight:h},[F,m]=w.useState(!1),[C,I]=w.useState(!1),[E,R]=w.useState(b),P={size:{medium:ur["size-medium"]}},A=()=>{var B;["",void 0,null].includes(y.value)||["",void 0,null].includes((B=x.current)==null?void 0:B.value)?(I(!1),v&&setTimeout(()=>{var z,Y;const O=((z=x.current)==null?void 0:z.offsetHeight)??0,L=((Y=D.current)==null?void 0:Y.offsetHeight)??0,j=(O-L)/2;R(j)},100)):I(!0)},M=function(B){var O;m(!0),A(),(O=e.onFocus)==null||O.call(e,B)},k=function(B){var O;m(!1),(O=e.onBlur)==null||O.call(e,B)},T=function(B){A();const O=(B==null?void 0:B.target)??x.current;O.style.height="0px",O.style.height=O.scrollHeight+"px"};return Zf(()=>(F&&x.current?x.current.addEventListener("input",T):T(),()=>{var B;(B=x.current)==null||B.removeEventListener("input",T)}),[F]),_.jsxs("div",{className:`${ur.container}
183
+ ${c.disabled?vn.disabled:""} ${l??""}`,children:o})]})});qh.displayName="InputNative";const E8="_container_1szxn_1",I8="_files_1szxn_4",_8="_file_1szxn_4",ea={container:E8,files:I8,file:_8,"file-name-wrapper":"_file-name-wrapper_1szxn_10","file-name":"_file-name_1szxn_10","file-extension":"_file-extension_1szxn_13"},$8=({value:e,validateFile:t,classNameContainer:n,classNameButton:r,textUpload:i="Unggah Lampiran",buttonProps:a={},maxFile:o=1,maxSize:s=1,error:l,removeElement:u,onChange:c,handlerDownload:d,priorityError:h="external",eventError:f})=>{const g={variants:"ghost-laba-blue-10",size:"small"},p=w.useRef(null),b=t||["image/png","image/jpeg","image/jpg"],[v,y]=w.useState(""),x={internal:v||l,external:l||v},S=F=>{if(F!=null&&F.length){const m=Array.from(F).slice(0,o),C=m==null?void 0:m.filter(R=>!b.includes(R.type)),I=(m==null?void 0:m.reduce((R,P)=>R+P.size,0))/1024/1024;let E="";if(C.length>0?E="Berkas tidak didukung, silahkan pilih file kembali.":I>s?E=`${F.length>1?"Jumlah u":"U"}kuran berkas tidak boleh melebihi ${s}MB.`:typeof c=="function"&&c(m),y(E),f==null||f(E),!(p!=null&&p.current))return;p.current.value=""}},D=F=>{var m;F.preventDefault(),p!=null&&p.current&&((m=p.current)==null||m.click())};function $(F){if(typeof F!="string")throw new Error("Input harus berupa string");const m=F.split(".");if(m.length===1)return{filename:F,extension:""};const C="."+m[m.length-1];return{filename:m.slice(0,-1).join("."),extension:C}}return _.jsxs("div",{className:`${ea.container} ${n??""}`,children:[_.jsx(Mn,{...g,...a,className:r??"",onClick:F=>D(F),children:i}),_.jsx(qh,{accept:b==null?void 0:b.join(", "),ref:p,type:"file",onChange:F=>S(F.target.files),error:x[h],multiple:o>1,hidden:!0}),_.jsx("div",{className:ea.files,children:e==null?void 0:e.map((F,m)=>_.jsxs("div",{className:ea.file,onClick:C=>{C.stopPropagation(),typeof d=="function"&&d(F)},children:[_.jsxs("div",{className:ea["file-name-wrapper"],children:[_.jsx("span",{className:ea["file-name"],children:$((F==null?void 0:F.originalName)??(F==null?void 0:F.name)??(F==null?void 0:F.fileName)??"").filename}),_.jsx("span",{className:ea["file-extension"],children:$((F==null?void 0:F.originalName)??(F==null?void 0:F.name)??(F==null?void 0:F.fileName)??"").extension})]}),typeof u=="function"&&_.jsx(_.Fragment,{children:u(F)})]},m))})]})},qp={"error-payhere":"_error-payhere_1hkqz_1","error-laba":"_error-laba_1hkqz_5"},R8=({className:e,variants:t="laba",error:n})=>{const r={variants:{laba:qp["error-laba"],payhere:qp["error-payhere"]}};return _.jsx(_.Fragment,{children:n?_.jsx("span",{className:`${r.variants[t]} ${e??""}`,children:n}):_.jsx(_.Fragment,{})})},A8="_container_5yc5a_1",F8="_textarea_5yc5a_7",T8="_label_5yc5a_36",P8="_error_5yc5a_44",ur={container:A8,"size-medium":"_size-medium_5yc5a_1","container-textarea":"_container-textarea_5yc5a_4",textarea:F8,"placeholder-shown":"_placeholder-shown_5yc5a_24",label:T8,error:P8,"label-error":"_label-error_5yc5a_60"},cC=w.forwardRef((e,t)=>{const{isRequired:n,classNameContainer:r,className:i,classNameLabel:a,classNameLabelError:o,name:s,id:l,label:u,error:c,height:d,minHeight:h=94,maxHeight:f=150,style:g,sizeInput:p="medium",translateLabel:b=20,autoTranslateLabel:v=!1,...y}=e,x=w.useRef(null),S=Yf(x,t),D=w.useRef(null),$={...g??{},maxHeight:f,height:d??h,minHeight:h},[F,m]=w.useState(!1),[C,I]=w.useState(!1),[E,R]=w.useState(b),P={size:{medium:ur["size-medium"]}},A=()=>{var B;["",void 0,null].includes(y.value)||["",void 0,null].includes((B=x.current)==null?void 0:B.value)?(I(!1),v&&setTimeout(()=>{var z,Y;const O=((z=x.current)==null?void 0:z.offsetHeight)??0,L=((Y=D.current)==null?void 0:Y.offsetHeight)??0,j=(O-L)/2;R(j)},100)):I(!0)},M=function(B){var O;m(!0),A(),(O=e.onFocus)==null||O.call(e,B)},k=function(B){var O;m(!1),(O=e.onBlur)==null||O.call(e,B)},T=function(B){A();const O=(B==null?void 0:B.target)??x.current;O.style.height="0px",O.style.height=O.scrollHeight+"px"};return Zf(()=>(F&&x.current?x.current.addEventListener("input",T):T(),()=>{var B;(B=x.current)==null||B.removeEventListener("input",T)}),[F]),_.jsxs("div",{className:`${ur.container}
184
184
  ${P.size[p]}
185
185
  ${r??""}`,children:[_.jsxs("div",{className:`${ur["container-textarea"]}`,children:[_.jsx("textarea",{id:l??s,className:`${C?"":ur["placeholder-shown"]} ${c?ur.error:""}
186
186
  ${ur.textarea}
@@ -189,5 +189,5 @@ You should wrap it with \`css\` like this:
189
189
  ${(s.step??u)<e?jn.passed:""}
190
190
  ${(s.step??u)===e?jn.active:""}
191
191
  ${s.className??""}`,children:s.value?s.value:u}),_.jsx("div",{style:{width:n/2}})]}),s.desc&&_.jsx("div",{className:`${jn["content-description"]} ${a??""}
192
- ${(s.step??u)<=e?jn.active:""}`,style:{maxWidth:n-30},children:s.desc})]},l)})});ps.register(hu,gu,po,aa,rC,aC,tC);const N8=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}`:null},V8=(e,t,n)=>{const r=e,i=t||new Date().getMonth(),a=n||new Date().getFullYear();return new Date(`${i}/${r}/${a}`)},L8=({data:e,className:t,height:n=65})=>{const r=w.useRef(null),i=e.map(h=>vo(V8(1,h.label,h.year),"MMM yy",{locale:El}))||[],[a,o]=w.useState(""),[s,l]=w.useState(""),u=h=>{const f=[],g=[];let p=!h.find(b=>b.isCurrent);return h.forEach(b=>{p?(g.push(b.value),f.push(null)):(f.push(b.value),b.isCurrent?(p=!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:a,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:a,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 p(v){return v.lines}if(g.body){const v=g.title||[];let y=g.body.map(p),x="<thead>";v.forEach(D=>{let $="";$+="display: flex",$+="; justify-content: center",$+="; font-weight: 600",$+="; font-size: 12px",$+="; padding: 0px 14px",x+=`<tr><span style="${$}">${D}</span></tr>`}),x+="</thead><tbody>",y.length>1&&y[0][0]===y[1][0]&&(y=[y[0]]),y.forEach(D=>{let $="";$+="display: flex",$+="; justify-content: center",$+="; color: #0163C8",$+="; padding: 0px 14px",$+="; font-size: 12px";const F=`<span style="${$}">${D}</span>`;x+=`<tr><td>${F}</td></tr>`}),x+="</tbody>";const S=f.querySelector("table");S&&(S.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 vo(new Date(`1/${f.label}/${f.year}`),"MMMM yyyy",{locale:El})},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 N8(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),o(f)}},[]),_.jsxs("div",{className:t??"",children:[_.jsx(y8,{options:d,data:c,height:n}),_.jsx("div",{className:"1ru-h-5",children:_.jsx("canvas",{ref:r})})]})},H8="_container_1oiqk_1",Qp={container:H8,"container-popover":"_container-popover_1oiqk_5"},j8=({id:e="1ru-tooltip",children:t,text:n,zIndexPopover:r=1,onShow:i,onClose:a,placement:o="top",backgroundColor:s="black",popoverProps:l={},arrowProps:u={},className:c,isHover:d,delay:h=600})=>{let f;const g=w.useRef(null),p={backgroundColor:b1[s]||s},[b,v]=w.useState(!1),[y,x]=w.useState(!1),S=$=>{var F;(F=g.current)==null||F.handlerShow($),x(!0),typeof i=="function"&&i()},D=()=>{var $;x(!1),b||(clearInterval(f),($=g.current)==null||$.setShow(!1),typeof a=="function"&&a())};return _.jsxs(_.Fragment,{children:[_.jsx("div",{id:e,onMouseEnter:$=>{if(d&&!b){const F=$.currentTarget;f=setTimeout(()=>{S({...$,currentTarget:F})},h)}},onMouseLeave:()=>{d&&!b&&D()},onClick:$=>{v(!0),clearInterval(f),y||S($)},className:Qp.container,children:t}),_.jsx(Ir,{floatingOptions:{placement:o},ref:g,id:"1ru-popover-tooltip",offset:10,withArrow:!0,zIndex:r,onClose:()=>{b&&(v(!1),D())},styleInnerPopover:{backgroundColor:p.backgroundColor},propsArrow:{fill:p.backgroundColor,...u},className:`${Qp["container-popover"]} ${c??""}`,...l,children:n})]})},W8="_icon_i1q12_5",z8="_show_i1q12_8",qc={"container-popover":"_container-popover_i1q12_1",icon:W8,show:z8},dC=w.forwardRef((e,t)=>{const{children:n,id:r="1ru-button-popover",text:i="",startIcon:a,endIcon:o,startIconShow:s,endIconShow:l,classNameButton:u="",classNameButtonShow:c="",className:d="",placement:h="top-end",popoverProps:f,zIndexPopover:g=1,offset:p=5,idPopover:b="1ru-popover-button-popover",onClick:v,onClose:y,...x}=e,S=w.useRef(null),D=w.useRef(null),[$,F]=w.useState(!1),m=(R,P,A)=>{let M=_.jsx(_.Fragment,{});return R&&w.isValidElement(P)?M=P:w.isValidElement(A)&&(M=_.jsx("div",{className:`${qc.icon} ${R?qc.show:""}`,children:A})),M},C=R=>{var P;(P=S.current)==null||P.setShow(R),F(R)},I=R=>{var P;(P=S.current)==null||P.handlerShow(R),F(!0)},E=()=>{var R;F(!1),(R=S.current)==null||R.setShow(!1),typeof y=="function"&&y()};return w.useImperativeHandle(t,()=>({show:$,setShow:C,handlerClose:E,handlerShow:I}),[$]),_.jsxs(_.Fragment,{children:[_.jsx(Mn,{ref:D,id:r,className:`${u} ${$?c:""}`,onClick:R=>{$?E():typeof v=="function"?v(R):I(R)},startIcon:m($,s,a),endIcon:m($,l,o),...x,children:i}),_.jsx(Ir,{ref:S,id:b,offset:p,floatingOptions:{placement:h},zIndex:g,onClose:E,className:`${qc["container-popover"]} ${d}`,...f,children:n})]})});dC.displayName="ButtonPopover";exports.AlertContainer=uD;exports.Badges=i3;exports.BigNumber=nt;exports.Breadcrumbs=fT;exports.Button=Mn;exports.ButtonIcon=r3;exports.ButtonPopover=dC;exports.Calendar=Hu;exports.CalendarRange=t3;exports.CheckboxTable=w8;exports.Chips=a3;exports.Collapse=bT;exports.ConfigColors=b1;exports.ConfigTable=tn;exports.DatePicker=Z7;exports.DateRangePicker=n3;exports.DefaultCheckedChecboxIcon=o3;exports.DefaultRadioChecboxIcon=s3;exports.DoughnutChart=x8;exports.ErrorMessage=R8;exports.FilterContainer=ST;exports.FilterDate=Y7;exports.InputFloatingInner=X1;exports.InputNative=qh;exports.InputReguler=Ef;exports.LineChart=L8;exports.ListVirtualization=Qb;exports.ModalDialog=yT;exports.MonthYearPicker=C8;exports.NumberFormat=eP;exports.Pagination=h$;exports.PatternFormat=QT;exports.Popover=Ir;exports.PortalComponent=tP;exports.RadioCheckbox=ju;exports.RadioCheckboxLabel=sT;exports.SelectDropdownContainer=Wv;exports.SelectDropdownContainerComponents=Fv;exports.Sidebar=u3;exports.Step=O8;exports.Switch=K7;exports.TPublish=c5;exports.TabPanel=a$;exports.Table=Q_;exports.TableVirtualization=Xf;exports.Tabs=i$;exports.Textarea=x3;exports.TextareaFloatingInner=cC;exports.Timeline=DT;exports.Tooltip=j8;exports.TruncateComponent=aP;exports.TypeBigNumber=bu;exports.UploadFile=y3;exports.UploadImage=cP;exports.UploadMultipleFile=$8;exports.betweenBig=DD;exports.configScreens=u5;exports.configTypography=l5;exports.configTypographyLabaBisnis=y1;exports.configTypographyPayhere=v1;exports.convertBigNumbersToStrings=sd;exports.convertNumbersToBigNumbers=od;exports.convertTextToJsonBigNumbers=s5;exports.cookieStorage=Uw;exports.deepCompareEquals=ff;exports.defaultConfig=l1;exports.formatBigNumber=Xw;exports.formatDate=na;exports.formatDateRange=Nw;exports.formatNumber=Tr;exports.groupByKey=c1;exports.isAccurateBigNumber=Qn;exports.isAccurateNumber=u1;exports.lessThanBig=wD;exports.maxBig=xD;exports.minBig=yD;exports.moreThanBig=CD;exports.openAlert=cD;exports.parseBigDecimal=cf;exports.parseDecimal=df;exports.removeKeyObjectEmptyValue=Lw;exports.removeTrailingZeros=Zw;exports.transformBigNumber=zw;exports.transformDataHistory=Vw;exports.transformLatLong=Hw;exports.transformNumber=Ww;exports.transformSecondTime=jw;exports.transfromIsNan=Gw;exports.useAsyncDebounce=W_;exports.useCombinedResizeObserver=z_;exports.useCountdown=j_;exports.useDeepCompareEffect=xa;exports.useDeepCompareMemoize=Uf;exports.useElementOrWindowMediaQuery=H_;exports.useEventListener=Y_;exports.useMergeRefs=Yf;exports.useStateRef=G_;exports.utilTable=tI;
192
+ ${(s.step??u)<=e?jn.active:""}`,style:{maxWidth:n-30},children:s.desc})]},l)})});ps.register(hu,gu,po,oa,rC,aC,tC);const N8=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}`:null},V8=(e,t,n)=>{const r=e,i=t||new Date().getMonth(),a=n||new Date().getFullYear();return new Date(`${i}/${r}/${a}`)},L8=({data:e,className:t,height:n=65})=>{const r=w.useRef(null),i=e.map(h=>vo(V8(1,h.label,h.year),"MMM yy",{locale:El}))||[],[a,o]=w.useState(""),[s,l]=w.useState(""),u=h=>{const f=[],g=[];let p=!h.find(b=>b.isCurrent);return h.forEach(b=>{p?(g.push(b.value),f.push(null)):(f.push(b.value),b.isCurrent?(p=!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:a,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:a,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 p(v){return v.lines}if(g.body){const v=g.title||[];let y=g.body.map(p),x="<thead>";v.forEach(D=>{let $="";$+="display: flex",$+="; justify-content: center",$+="; font-weight: 600",$+="; font-size: 12px",$+="; padding: 0px 14px",x+=`<tr><span style="${$}">${D}</span></tr>`}),x+="</thead><tbody>",y.length>1&&y[0][0]===y[1][0]&&(y=[y[0]]),y.forEach(D=>{let $="";$+="display: flex",$+="; justify-content: center",$+="; color: #0163C8",$+="; padding: 0px 14px",$+="; font-size: 12px";const F=`<span style="${$}">${D}</span>`;x+=`<tr><td>${F}</td></tr>`}),x+="</tbody>";const S=f.querySelector("table");S&&(S.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 vo(new Date(`1/${f.label}/${f.year}`),"MMMM yyyy",{locale:El})},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 N8(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),o(f)}},[]),_.jsxs("div",{className:t??"",children:[_.jsx(y8,{options:d,data:c,height:n}),_.jsx("div",{className:"1ru-h-5",children:_.jsx("canvas",{ref:r})})]})},H8="_container_1oiqk_1",Qp={container:H8,"container-popover":"_container-popover_1oiqk_5"},j8=({id:e="1ru-tooltip",children:t,text:n,zIndexPopover:r=1,onShow:i,onClose:a,placement:o="top",backgroundColor:s="black",popoverProps:l={},arrowProps:u={},className:c,isHover:d,delay:h=600})=>{let f;const g=w.useRef(null),p={backgroundColor:b1[s]||s},[b,v]=w.useState(!1),[y,x]=w.useState(!1),S=$=>{var F;(F=g.current)==null||F.handlerShow($),x(!0),typeof i=="function"&&i()},D=()=>{var $;x(!1),b||(clearInterval(f),($=g.current)==null||$.setShow(!1),typeof a=="function"&&a())};return _.jsxs(_.Fragment,{children:[_.jsx("div",{id:e,onMouseEnter:$=>{if(d&&!b){const F=$.currentTarget;f=setTimeout(()=>{S({...$,currentTarget:F})},h)}},onMouseLeave:()=>{d&&!b&&D()},onClick:$=>{v(!0),clearInterval(f),y||S($)},className:Qp.container,children:t}),_.jsx(Ir,{floatingOptions:{placement:o},ref:g,id:"1ru-popover-tooltip",offset:10,withArrow:!0,zIndex:r,onClose:()=>{b&&(v(!1),D())},styleInnerPopover:{backgroundColor:p.backgroundColor},propsArrow:{fill:p.backgroundColor,...u},className:`${Qp["container-popover"]} ${c??""}`,...l,children:n})]})},W8="_icon_i1q12_5",z8="_show_i1q12_8",qc={"container-popover":"_container-popover_i1q12_1",icon:W8,show:z8},dC=w.forwardRef((e,t)=>{const{children:n,id:r="1ru-button-popover",text:i="",startIcon:a,endIcon:o,startIconShow:s,endIconShow:l,classNameButton:u="",classNameButtonShow:c="",className:d="",placement:h="top-end",popoverProps:f,zIndexPopover:g=1,offset:p=5,idPopover:b="1ru-popover-button-popover",onClick:v,onClose:y,...x}=e,S=w.useRef(null),D=w.useRef(null),[$,F]=w.useState(!1),m=(R,P,A)=>{let M=_.jsx(_.Fragment,{});return R&&w.isValidElement(P)?M=P:w.isValidElement(A)&&(M=_.jsx("div",{className:`${qc.icon} ${R?qc.show:""}`,children:A})),M},C=R=>{var P;(P=S.current)==null||P.setShow(R),F(R)},I=R=>{var P;(P=S.current)==null||P.handlerShow(R),F(!0)},E=()=>{var R;F(!1),(R=S.current)==null||R.setShow(!1),typeof y=="function"&&y()};return w.useImperativeHandle(t,()=>({show:$,setShow:C,handlerClose:E,handlerShow:I}),[$]),_.jsxs(_.Fragment,{children:[_.jsx(Mn,{ref:D,id:r,className:`${u} ${$?c:""}`,onClick:R=>{$?E():typeof v=="function"?v(R):I(R)},startIcon:m($,s,a),endIcon:m($,l,o),...x,children:i}),_.jsx(Ir,{ref:S,id:b,offset:p,floatingOptions:{placement:h},zIndex:g,onClose:E,className:`${qc["container-popover"]} ${d}`,...f,children:n})]})});dC.displayName="ButtonPopover";exports.AlertContainer=uD;exports.Badges=i3;exports.BigNumber=nt;exports.Breadcrumbs=fT;exports.Button=Mn;exports.ButtonIcon=r3;exports.ButtonPopover=dC;exports.Calendar=Hu;exports.CalendarRange=t3;exports.CheckboxTable=w8;exports.Chips=a3;exports.Collapse=bT;exports.ConfigColors=b1;exports.ConfigTable=tn;exports.DatePicker=Z7;exports.DateRangePicker=n3;exports.DefaultCheckedChecboxIcon=o3;exports.DefaultRadioChecboxIcon=s3;exports.DoughnutChart=x8;exports.ErrorMessage=R8;exports.FilterContainer=ST;exports.FilterDate=Y7;exports.InputFloatingInner=X1;exports.InputNative=qh;exports.InputReguler=Ef;exports.LineChart=L8;exports.ListVirtualization=Qb;exports.ModalDialog=yT;exports.MonthYearPicker=C8;exports.NumberFormat=eP;exports.Pagination=h$;exports.PatternFormat=QT;exports.Popover=Ir;exports.PortalComponent=tP;exports.RadioCheckbox=ju;exports.RadioCheckboxLabel=sT;exports.SelectDropdownContainer=Wv;exports.SelectDropdownContainerComponents=Fv;exports.Sidebar=u3;exports.Step=O8;exports.Switch=K7;exports.TPublish=c5;exports.TabPanel=a$;exports.Table=Q_;exports.TableVirtualization=Xf;exports.Tabs=i$;exports.Textarea=x3;exports.TextareaFloatingInner=cC;exports.Timeline=DT;exports.Tooltip=j8;exports.TruncateComponent=aP;exports.TypeBigNumber=bu;exports.UploadFile=y3;exports.UploadImage=cP;exports.UploadMultipleFile=$8;exports.betweenBig=DD;exports.configScreens=u5;exports.configTypography=l5;exports.configTypographyLabaBisnis=y1;exports.configTypographyPayhere=v1;exports.convertBigNumbersToStrings=sd;exports.convertNumbersToBigNumbers=od;exports.convertTextToJsonBigNumbers=s5;exports.cookieStorage=Uw;exports.deepCompareEquals=ff;exports.defaultConfig=l1;exports.formatBigNumber=Xw;exports.formatDate=ra;exports.formatDateRange=Nw;exports.formatNumber=Tr;exports.groupByKey=c1;exports.isAccurateBigNumber=Qn;exports.isAccurateNumber=u1;exports.lessThanBig=wD;exports.maxBig=xD;exports.minBig=yD;exports.moreThanBig=CD;exports.openAlert=cD;exports.parseBigDecimal=cf;exports.parseDecimal=df;exports.removeKeyObjectEmptyValue=Lw;exports.removeTrailingZeros=Zw;exports.transformBigNumber=zw;exports.transformDataHistory=Vw;exports.transformLatLong=Hw;exports.transformNumber=Ww;exports.transformSecondTime=jw;exports.transfromIsNan=Gw;exports.useAsyncDebounce=W_;exports.useCombinedResizeObserver=z_;exports.useCountdown=j_;exports.useDeepCompareEffect=$i;exports.useDeepCompareMemoize=Uf;exports.useElementOrWindowMediaQuery=H_;exports.useEventListener=Y_;exports.useMergeRefs=Yf;exports.useStateRef=G_;exports.utilTable=tI;
193
193
  //# sourceMappingURL=index.cjs.map