react-luminus-components 1.3.90 → 1.3.92
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/.vite/manifest.json +67 -67
- package/dist/{FullScreenContainer-DalqTwrK.js → FullScreenContainer-BnvbSoSr.js} +1 -1
- package/dist/{FullScreenContainer-BHOMIeza.cjs → FullScreenContainer-Dm4izup4.cjs} +1 -1
- package/dist/{Loading-BDj5dLz0.js → Loading-Bm3Iv3H3.js} +1 -1
- package/dist/{Loading-BgYSq3VS.cjs → Loading-CsYv-VDW.cjs} +1 -1
- package/dist/{ResponsiveContextDropdown-ZEwJJoab.cjs → ResponsiveContextDropdown-DLQMl2C6.cjs} +6 -6
- package/dist/{ResponsiveContextDropdown-D7dyws1-.js → ResponsiveContextDropdown-fovafsKV.js} +6 -6
- package/dist/{SimpleTooltip-sYuU_O38.cjs → SimpleTooltip-BBLTU6y3.cjs} +1 -1
- package/dist/{SimpleTooltip-BLerwS-Y.js → SimpleTooltip-p2WXJzAO.js} +1 -1
- package/dist/components/HookForm/CustomSelectInput/CustomSelectInput.d.ts +1 -1
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +3 -3
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +5 -5
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +78 -78
- package/dist/main.cjs.js +2 -2
- package/dist/main.es.js +739 -739
- package/dist/models/prop-types/InputProps/SelectInputProps.d.ts +1 -0
- package/dist/{searchUtils-GR6YgdCs.cjs → searchUtils-DA5h2G17.cjs} +1 -1
- package/dist/{searchUtils-DuVe5YHX.js → searchUtils-f0DKhMZR.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useClipboard-Cn05DXm8.js → useClipboard-CPlivHR2.js} +1 -1
- package/dist/{useClipboard-BdDtrG_v.cjs → useClipboard-EqP0zdYa.cjs} +1 -1
- package/dist/{useGetApiData-BhzRnuk9.js → useGetApiData-BXAI8fbw.js} +1 -1
- package/dist/{useGetApiData-DFCqg0Qo.cjs → useGetApiData-DII3t7Pb.cjs} +1 -1
- package/dist/{usePermissions-MVy72H28.cjs → usePermissions-BOLipHMq.cjs} +1 -1
- package/dist/{usePermissions-DpgiUP05.js → usePermissions-CXHI-KBK.js} +1 -1
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +4 -4
- package/package.json +1 -1
package/dist/{ResponsiveContextDropdown-ZEwJJoab.cjs → ResponsiveContextDropdown-DLQMl2C6.cjs}
RENAMED
|
@@ -31,26 +31,26 @@ React keys must be passed directly to JSX without using spread:
|
|
|
31
31
|
Copyright (c) 2018 Jed Watson.
|
|
32
32
|
Licensed under the MIT License (MIT), see
|
|
33
33
|
http://jedwatson.github.io/classnames
|
|
34
|
-
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",o=0;o<arguments.length;o++){var s=arguments[o];s&&(i=a(i,r(s)))}return i}function r(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return n.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var o="";for(var s in i)t.call(i,s)&&i[s]&&(o=a(o,s));return o}function a(i,o){return o?i?i+" "+o:i+o:i}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Zv);var Fw=Zv.exports;const oe=Mt(Fw);function yn(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 ur(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function Lw(e,t){const n=+yn(e);return ur(e,n+t)}const Uw=365.2425,Nf=6048e5,Ww=864e5,Ff=6e4,jc=36e5,Kv=3600,Bw=60,Lf=Kv*24,zw=Lf*7,Xv=Lf*Uw,Jv=Xv/12,Hw=Jv*3;function Vw(e,t){return Lw(e,t*jc)}let qw={};function Pc(){return qw}function qa(e,t){var s,c,u,l;const n=Pc(),r=(t==null?void 0:t.weekStartsOn)??((c=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((l=(u=n.locale)==null?void 0:u.options)==null?void 0:l.weekStartsOn)??0,a=yn(e),i=a.getDay(),o=(i<r?7:0)+i-r;return a.setDate(a.getDate()-o),a.setHours(0,0,0,0),a}function Us(e){return qa(e,{weekStartsOn:1})}function Qv(e){const t=yn(e),n=t.getFullYear(),r=ur(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const a=Us(r),i=ur(e,0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);const o=Us(i);return t.getTime()>=a.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function bd(e){const t=yn(e);return t.setHours(0,0,0,0),t}function xd(e){const t=yn(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 ey(e,t){const n=bd(e),r=bd(t),a=+n-xd(n),i=+r-xd(r);return Math.round((a-i)/Ww)}function Yw(e){const t=Qv(e),n=ur(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Us(n)}function Gw(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Zw(e){if(!Gw(e)&&typeof e!="number")return!1;const t=yn(e);return!isNaN(Number(t))}function Kw(e){const t=yn(e),n=ur(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const Xw={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"}},Jw=(e,t,n)=>{let r;const a=Xw[e];return typeof a=="string"?r=a:t===1?r=a.one:r=a.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function xl(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Qw={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},e4={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},t4={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},n4={date:xl({formats:Qw,defaultWidth:"full"}),time:xl({formats:e4,defaultWidth:"full"}),dateTime:xl({formats:t4,defaultWidth:"full"})},r4={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},a4=(e,t,n,r)=>r4[e];function $i(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let a;if(r==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):o;a=e.formattingValues[s]||e.formattingValues[o]}else{const o=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;a=e.values[s]||e.values[o]}const i=e.argumentCallback?e.argumentCallback(t):t;return a[i]}}const i4={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},o4={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},s4={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"]},c4={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"]},u4={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"}},l4={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"}},d4=(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"},f4={ordinalNumber:d4,era:$i({values:i4,defaultWidth:"wide"}),quarter:$i({values:o4,defaultWidth:"wide",argumentCallback:e=>e-1}),month:$i({values:s4,defaultWidth:"wide"}),day:$i({values:c4,defaultWidth:"wide"}),dayPeriod:$i({values:u4,defaultWidth:"wide",formattingValues:l4,defaultFormattingWidth:"wide"})};function Mi(e){return(t,n={})=>{const r=n.width,a=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(a);if(!i)return null;const o=i[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?p4(s,d=>d.test(o)):h4(s,d=>d.test(o));let u;u=e.valueCallback?e.valueCallback(c):c,u=n.valueCallback?n.valueCallback(u):u;const l=t.slice(o.length);return{value:u,rest:l}}}function h4(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function p4(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function m4(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const a=r[0],i=t.match(e.parsePattern);if(!i)return null;let o=e.valueCallback?e.valueCallback(i[0]):i[0];o=n.valueCallback?n.valueCallback(o):o;const s=t.slice(a.length);return{value:o,rest:s}}}const g4=/^(\d+)(th|st|nd|rd)?/i,v4=/\d+/i,y4={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},b4={any:[/^b/i,/^(a|c)/i]},x4={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},_4={any:[/1/i,/2/i,/3/i,/4/i]},w4={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},T4={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]},C4={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},k4={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]},S4={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},O4={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}},E4={ordinalNumber:m4({matchPattern:g4,parsePattern:v4,valueCallback:e=>parseInt(e,10)}),era:Mi({matchPatterns:y4,defaultMatchWidth:"wide",parsePatterns:b4,defaultParseWidth:"any"}),quarter:Mi({matchPatterns:x4,defaultMatchWidth:"wide",parsePatterns:_4,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Mi({matchPatterns:w4,defaultMatchWidth:"wide",parsePatterns:T4,defaultParseWidth:"any"}),day:Mi({matchPatterns:C4,defaultMatchWidth:"wide",parsePatterns:k4,defaultParseWidth:"any"}),dayPeriod:Mi({matchPatterns:S4,defaultMatchWidth:"any",parsePatterns:O4,defaultParseWidth:"any"})},$4={code:"en-US",formatDistance:Jw,formatLong:n4,formatRelative:a4,localize:f4,match:E4,options:{weekStartsOn:0,firstWeekContainsDate:1}};function M4(e){const t=yn(e);return ey(t,Kw(t))+1}function R4(e){const t=yn(e),n=+Us(t)-+Yw(t);return Math.round(n/Nf)+1}function ty(e,t){var l,d,f,h;const n=yn(e),r=n.getFullYear(),a=Pc(),i=(t==null?void 0:t.firstWeekContainsDate)??((d=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:d.firstWeekContainsDate)??a.firstWeekContainsDate??((h=(f=a.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??1,o=ur(e,0);o.setFullYear(r+1,0,i),o.setHours(0,0,0,0);const s=qa(o,t),c=ur(e,0);c.setFullYear(r,0,i),c.setHours(0,0,0,0);const u=qa(c,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function A4(e,t){var s,c,u,l;const n=Pc(),r=(t==null?void 0:t.firstWeekContainsDate)??((c=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:c.firstWeekContainsDate)??n.firstWeekContainsDate??((l=(u=n.locale)==null?void 0:u.options)==null?void 0:l.firstWeekContainsDate)??1,a=ty(e,t),i=ur(e,0);return i.setFullYear(a,0,r),i.setHours(0,0,0,0),qa(i,t)}function j4(e,t){const n=yn(e),r=+qa(n,t)-+A4(n,t);return Math.round(r/Nf)+1}function Ge(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const br={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Ge(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Ge(n+1,2)},d(e,t){return Ge(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 Ge(e.getHours()%12||12,t.length)},H(e,t){return Ge(e.getHours(),t.length)},m(e,t){return Ge(e.getMinutes(),t.length)},s(e,t){return Ge(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),a=Math.trunc(r*Math.pow(10,n-3));return Ge(a,t.length)}},$a={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},cm={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(),a=r>0?r:1-r;return n.ordinalNumber(a,{unit:"year"})}return br.y(e,t)},Y:function(e,t,n,r){const a=ty(e,r),i=a>0?a:1-a;if(t==="YY"){const o=i%100;return Ge(o,2)}return t==="Yo"?n.ordinalNumber(i,{unit:"year"}):Ge(i,t.length)},R:function(e,t){const n=Qv(e);return Ge(n,t.length)},u:function(e,t){const n=e.getFullYear();return Ge(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 Ge(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 Ge(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 br.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 Ge(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 a=j4(e,r);return t==="wo"?n.ordinalNumber(a,{unit:"week"}):Ge(a,t.length)},I:function(e,t,n){const r=R4(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Ge(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):br.d(e,t)},D:function(e,t,n){const r=M4(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Ge(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 a=e.getDay(),i=(a-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return Ge(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});case"eeee":default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const a=e.getDay(),i=(a-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return Ge(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});case"cccc":default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),a=r===0?7:r;switch(t){case"i":return String(a);case"ii":return Ge(a,t.length);case"io":return n.ordinalNumber(a,{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 a=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let a;switch(r===12?a=$a.noon:r===0?a=$a.midnight:a=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let a;switch(r>=17?a=$a.evening:r>=12?a=$a.afternoon:r>=4?a=$a.morning:a=$a.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(a,{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 br.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):br.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Ge(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Ge(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):br.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):br.s(e,t)},S:function(e,t){return br.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return lm(r);case"XXXX":case"XX":return qr(r);case"XXXXX":case"XXX":default:return qr(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return lm(r);case"xxxx":case"xx":return qr(r);case"xxxxx":case"xxx":default:return qr(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+um(r,":");case"OOOO":default:return"GMT"+qr(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+um(r,":");case"zzzz":default:return"GMT"+qr(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return Ge(r,t.length)},T:function(e,t,n){const r=e.getTime();return Ge(r,t.length)}};function um(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=Math.trunc(r/60),i=r%60;return i===0?n+String(a):n+String(a)+t+Ge(i,2)}function lm(e,t){return e%60===0?(e>0?"-":"+")+Ge(Math.abs(e)/60,2):qr(e,t)}function qr(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=Ge(Math.trunc(r/60),2),i=Ge(r%60,2);return n+a+t+i}const dm=(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"})}},ny=(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"})}},P4=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],a=n[2];if(!a)return dm(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",dm(r,t)).replace("{{time}}",ny(a,t))},D4={p:ny,P:P4},I4=/^D+$/,N4=/^Y+$/,F4=["D","DD","YY","YYYY"];function L4(e){return I4.test(e)}function U4(e){return N4.test(e)}function W4(e,t,n){const r=B4(e,t,n);if(console.warn(r),F4.includes(e))throw new RangeError(r)}function B4(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 z4=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,H4=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,V4=/^'([^]*?)'?$/,q4=/''/g,Y4=/[a-zA-Z]/;function Uf(e,t,n){var l,d,f,h,g,v,m,_;const r=Pc(),a=(n==null?void 0:n.locale)??r.locale??$4,i=(n==null?void 0:n.firstWeekContainsDate)??((d=(l=n==null?void 0:n.locale)==null?void 0:l.options)==null?void 0:d.firstWeekContainsDate)??r.firstWeekContainsDate??((h=(f=r.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??1,o=(n==null?void 0:n.weekStartsOn)??((v=(g=n==null?void 0:n.locale)==null?void 0:g.options)==null?void 0:v.weekStartsOn)??r.weekStartsOn??((_=(m=r.locale)==null?void 0:m.options)==null?void 0:_.weekStartsOn)??0,s=yn(e);if(!Zw(s))throw new RangeError("Invalid time value");let c=t.match(H4).map(w=>{const b=w[0];if(b==="p"||b==="P"){const T=D4[b];return T(w,a.formatLong)}return w}).join("").match(z4).map(w=>{if(w==="''")return{isToken:!1,value:"'"};const b=w[0];if(b==="'")return{isToken:!1,value:G4(w)};if(cm[b])return{isToken:!0,value:w};if(b.match(Y4))throw new RangeError("Format string contains an unescaped latin alphabet character `"+b+"`");return{isToken:!1,value:w}});a.localize.preprocessor&&(c=a.localize.preprocessor(s,c));const u={firstWeekContainsDate:i,weekStartsOn:o,locale:a};return c.map(w=>{if(!w.isToken)return w.value;const b=w.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&U4(b)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&L4(b))&&W4(b,t,String(e));const T=cm[b[0]];return T(s,b,a.localize,u)}).join("")}function G4(e){const t=e.match(V4);return t?t[1].replace(q4,"'"):e}function Dc(e,t){const r=J4(e);let a;if(r.date){const c=Q4(r.date,2);a=e3(c.restDateString,c.year)}if(!a||isNaN(a.getTime()))return new Date(NaN);const i=a.getTime();let o=0,s;if(r.time&&(o=t3(r.time),isNaN(o)))return new Date(NaN);if(r.timezone){if(s=n3(r.timezone),isNaN(s))return new Date(NaN)}else{const c=new Date(i+o),u=new Date(0);return u.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),u.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),u}return new Date(i+o+s)}const cs={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Z4=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,K4=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,X4=/^([+-])(\d{2})(?::?(\d{2}))?$/;function J4(e){const t={},n=e.split(cs.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],cs.timeZoneDelimiter.test(t.date)&&(t.date=e.split(cs.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const a=cs.timezone.exec(r);a?(t.time=r.replace(a[1],""),t.timezone=a[1]):t.time=r}return t}function Q4(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const a=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?a:i*100,restDateString:e.slice((r[1]||r[2]).length)}}function e3(e,t){if(t===null)return new Date(NaN);const n=e.match(Z4);if(!n)return new Date(NaN);const r=!!n[4],a=Ri(n[1]),i=Ri(n[2])-1,o=Ri(n[3]),s=Ri(n[4]),c=Ri(n[5])-1;if(r)return s3(t,s,c)?r3(t,s,c):new Date(NaN);{const u=new Date(0);return!i3(t,i,o)||!o3(t,a)?new Date(NaN):(u.setUTCFullYear(t,i,Math.max(a,o)),u)}}function Ri(e){return e?parseInt(e):1}function t3(e){const t=e.match(K4);if(!t)return NaN;const n=_l(t[1]),r=_l(t[2]),a=_l(t[3]);return c3(n,r,a)?n*jc+r*Ff+a*1e3:NaN}function _l(e){return e&&parseFloat(e.replace(",","."))||0}function n3(e){if(e==="Z")return 0;const t=e.match(X4);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),a=t[3]&&parseInt(t[3])||0;return u3(r,a)?n*(r*jc+a*Ff):NaN}function r3(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const a=r.getUTCDay()||7,i=(t-1)*7+n+1-a;return r.setUTCDate(r.getUTCDate()+i),r}const a3=[31,null,31,30,31,30,31,31,30,31,30,31];function ry(e){return e%400===0||e%4===0&&e%100!==0}function i3(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(a3[t]||(ry(e)?29:28))}function o3(e,t){return t>=1&&t<=(ry(e)?366:365)}function s3(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function c3(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function u3(e,t){return t>=0&&t<=59}function _d(){return _d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_d.apply(null,arguments)}function ay(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}var l3=function(e,t,n,r,a,i,o,s){if(process.env.NODE_ENV!=="production"&&t===void 0)throw new Error("invariant requires an error message argument");if(!e){var c;if(t===void 0)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,a,i,o,s],l=0;c=new Error(t.replace(/%s/g,function(){return u[l++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}},d3=l3;const fm=Mt(d3);function hm(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function f3(e){var t=h3(e,"string");return typeof t=="symbol"?t:String(t)}function h3(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function iy(e,t,n){var r=p.useRef(e!==void 0),a=p.useState(t),i=a[0],o=a[1],s=e!==void 0,c=r.current;return r.current=s,!s&&c&&i!==t&&o(t),[s?e:i,p.useCallback(function(u){for(var l=arguments.length,d=new Array(l>1?l-1:0),f=1;f<l;f++)d[f-1]=arguments[f];n&&n.apply(void 0,[u].concat(d)),o(u)},[n])]}function oy(e,t){return Object.keys(t).reduce(function(n,r){var a,i=n,o=i[hm(r)],s=i[r],c=ay(i,[hm(r),r].map(f3)),u=t[r],l=iy(s,o,e[u]),d=l[0],f=l[1];return _d({},c,(a={},a[r]=d,a[u]=f,a))},e)}function wd(e,t){return wd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},wd(e,t)}function p3(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,wd(e,t)}const m3=["xxl","xl","lg","md","sm","xs"],g3="xs",Ic=ie.createContext({prefixes:{},breakpoints:m3,minBreakpoint:g3});function Le(e,t){const{prefixes:n}=p.useContext(Ic);return e||n[t]||t}function v3(){const{breakpoints:e}=p.useContext(Ic);return e}function y3(){const{minBreakpoint:e}=p.useContext(Ic);return e}function Nc(){const{dir:e}=p.useContext(Ic);return e==="rtl"}function ui(e){return e&&e.ownerDocument||document}function b3(e){var t=ui(e);return t&&t.defaultView||window}function x3(e,t){return b3(e).getComputedStyle(e,t)}var _3=/([A-Z])/g;function w3(e){return e.replace(_3,"-$1").toLowerCase()}var T3=/^ms-/;function us(e){return w3(e).replace(T3,"-ms-")}var C3=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function k3(e){return!!(e&&C3.test(e))}function Mr(e,t){var n="",r="";if(typeof t=="string")return e.style.getPropertyValue(us(t))||x3(e).getPropertyValue(us(t));Object.keys(t).forEach(function(a){var i=t[a];!i&&i!==0?e.style.removeProperty(us(a)):k3(a)?r+=a+"("+i+") ":n+=us(a)+": "+i+";"}),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n}var Td={exports:{}},ls={exports:{}},He={};/** @license React v16.13.1
|
|
34
|
+
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",o=0;o<arguments.length;o++){var s=arguments[o];s&&(i=a(i,r(s)))}return i}function r(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return n.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var o="";for(var s in i)t.call(i,s)&&i[s]&&(o=a(o,s));return o}function a(i,o){return o?i?i+" "+o:i+o:i}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Zv);var Fw=Zv.exports;const oe=Mt(Fw);function yn(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 ur(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function Lw(e,t){const n=+yn(e);return ur(e,n+t)}const Uw=365.2425,Nf=6048e5,Ww=864e5,Ff=6e4,jc=36e5,Kv=3600,Bw=60,Lf=Kv*24,zw=Lf*7,Xv=Lf*Uw,Jv=Xv/12,Hw=Jv*3;function Vw(e,t){return Lw(e,t*jc)}let qw={};function Pc(){return qw}function qa(e,t){var s,c,u,l;const n=Pc(),r=(t==null?void 0:t.weekStartsOn)??((c=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((l=(u=n.locale)==null?void 0:u.options)==null?void 0:l.weekStartsOn)??0,a=yn(e),i=a.getDay(),o=(i<r?7:0)+i-r;return a.setDate(a.getDate()-o),a.setHours(0,0,0,0),a}function Us(e){return qa(e,{weekStartsOn:1})}function Qv(e){const t=yn(e),n=t.getFullYear(),r=ur(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const a=Us(r),i=ur(e,0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);const o=Us(i);return t.getTime()>=a.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function bd(e){const t=yn(e);return t.setHours(0,0,0,0),t}function xd(e){const t=yn(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 ey(e,t){const n=bd(e),r=bd(t),a=+n-xd(n),i=+r-xd(r);return Math.round((a-i)/Ww)}function Yw(e){const t=Qv(e),n=ur(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Us(n)}function Gw(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Zw(e){if(!Gw(e)&&typeof e!="number")return!1;const t=yn(e);return!isNaN(Number(t))}function Kw(e){const t=yn(e),n=ur(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const Xw={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"}},Jw=(e,t,n)=>{let r;const a=Xw[e];return typeof a=="string"?r=a:t===1?r=a.one:r=a.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function xl(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Qw={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},e4={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},t4={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},n4={date:xl({formats:Qw,defaultWidth:"full"}),time:xl({formats:e4,defaultWidth:"full"}),dateTime:xl({formats:t4,defaultWidth:"full"})},r4={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},a4=(e,t,n,r)=>r4[e];function $i(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let a;if(r==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):o;a=e.formattingValues[s]||e.formattingValues[o]}else{const o=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;a=e.values[s]||e.values[o]}const i=e.argumentCallback?e.argumentCallback(t):t;return a[i]}}const i4={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},o4={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},s4={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"]},c4={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"]},u4={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"}},l4={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"}},d4=(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"},f4={ordinalNumber:d4,era:$i({values:i4,defaultWidth:"wide"}),quarter:$i({values:o4,defaultWidth:"wide",argumentCallback:e=>e-1}),month:$i({values:s4,defaultWidth:"wide"}),day:$i({values:c4,defaultWidth:"wide"}),dayPeriod:$i({values:u4,defaultWidth:"wide",formattingValues:l4,defaultFormattingWidth:"wide"})};function Mi(e){return(t,n={})=>{const r=n.width,a=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(a);if(!i)return null;const o=i[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?p4(s,d=>d.test(o)):h4(s,d=>d.test(o));let u;u=e.valueCallback?e.valueCallback(c):c,u=n.valueCallback?n.valueCallback(u):u;const l=t.slice(o.length);return{value:u,rest:l}}}function h4(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function p4(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function m4(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const a=r[0],i=t.match(e.parsePattern);if(!i)return null;let o=e.valueCallback?e.valueCallback(i[0]):i[0];o=n.valueCallback?n.valueCallback(o):o;const s=t.slice(a.length);return{value:o,rest:s}}}const g4=/^(\d+)(th|st|nd|rd)?/i,v4=/\d+/i,y4={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},b4={any:[/^b/i,/^(a|c)/i]},x4={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},_4={any:[/1/i,/2/i,/3/i,/4/i]},w4={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},T4={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]},C4={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},k4={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]},S4={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},O4={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}},E4={ordinalNumber:m4({matchPattern:g4,parsePattern:v4,valueCallback:e=>parseInt(e,10)}),era:Mi({matchPatterns:y4,defaultMatchWidth:"wide",parsePatterns:b4,defaultParseWidth:"any"}),quarter:Mi({matchPatterns:x4,defaultMatchWidth:"wide",parsePatterns:_4,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Mi({matchPatterns:w4,defaultMatchWidth:"wide",parsePatterns:T4,defaultParseWidth:"any"}),day:Mi({matchPatterns:C4,defaultMatchWidth:"wide",parsePatterns:k4,defaultParseWidth:"any"}),dayPeriod:Mi({matchPatterns:S4,defaultMatchWidth:"any",parsePatterns:O4,defaultParseWidth:"any"})},$4={code:"en-US",formatDistance:Jw,formatLong:n4,formatRelative:a4,localize:f4,match:E4,options:{weekStartsOn:0,firstWeekContainsDate:1}};function M4(e){const t=yn(e);return ey(t,Kw(t))+1}function R4(e){const t=yn(e),n=+Us(t)-+Yw(t);return Math.round(n/Nf)+1}function ty(e,t){var l,d,f,h;const n=yn(e),r=n.getFullYear(),a=Pc(),i=(t==null?void 0:t.firstWeekContainsDate)??((d=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:d.firstWeekContainsDate)??a.firstWeekContainsDate??((h=(f=a.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??1,o=ur(e,0);o.setFullYear(r+1,0,i),o.setHours(0,0,0,0);const s=qa(o,t),c=ur(e,0);c.setFullYear(r,0,i),c.setHours(0,0,0,0);const u=qa(c,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function A4(e,t){var s,c,u,l;const n=Pc(),r=(t==null?void 0:t.firstWeekContainsDate)??((c=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:c.firstWeekContainsDate)??n.firstWeekContainsDate??((l=(u=n.locale)==null?void 0:u.options)==null?void 0:l.firstWeekContainsDate)??1,a=ty(e,t),i=ur(e,0);return i.setFullYear(a,0,r),i.setHours(0,0,0,0),qa(i,t)}function j4(e,t){const n=yn(e),r=+qa(n,t)-+A4(n,t);return Math.round(r/Nf)+1}function Ge(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const br={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Ge(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Ge(n+1,2)},d(e,t){return Ge(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 Ge(e.getHours()%12||12,t.length)},H(e,t){return Ge(e.getHours(),t.length)},m(e,t){return Ge(e.getMinutes(),t.length)},s(e,t){return Ge(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),a=Math.trunc(r*Math.pow(10,n-3));return Ge(a,t.length)}},$a={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},cm={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(),a=r>0?r:1-r;return n.ordinalNumber(a,{unit:"year"})}return br.y(e,t)},Y:function(e,t,n,r){const a=ty(e,r),i=a>0?a:1-a;if(t==="YY"){const o=i%100;return Ge(o,2)}return t==="Yo"?n.ordinalNumber(i,{unit:"year"}):Ge(i,t.length)},R:function(e,t){const n=Qv(e);return Ge(n,t.length)},u:function(e,t){const n=e.getFullYear();return Ge(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 Ge(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 Ge(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 br.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 Ge(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 a=j4(e,r);return t==="wo"?n.ordinalNumber(a,{unit:"week"}):Ge(a,t.length)},I:function(e,t,n){const r=R4(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Ge(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):br.d(e,t)},D:function(e,t,n){const r=M4(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Ge(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 a=e.getDay(),i=(a-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return Ge(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});case"eeee":default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const a=e.getDay(),i=(a-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return Ge(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});case"cccc":default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),a=r===0?7:r;switch(t){case"i":return String(a);case"ii":return Ge(a,t.length);case"io":return n.ordinalNumber(a,{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 a=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let a;switch(r===12?a=$a.noon:r===0?a=$a.midnight:a=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let a;switch(r>=17?a=$a.evening:r>=12?a=$a.afternoon:r>=4?a=$a.morning:a=$a.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(a,{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 br.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):br.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Ge(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Ge(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):br.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):br.s(e,t)},S:function(e,t){return br.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return lm(r);case"XXXX":case"XX":return qr(r);case"XXXXX":case"XXX":default:return qr(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return lm(r);case"xxxx":case"xx":return qr(r);case"xxxxx":case"xxx":default:return qr(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+um(r,":");case"OOOO":default:return"GMT"+qr(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+um(r,":");case"zzzz":default:return"GMT"+qr(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return Ge(r,t.length)},T:function(e,t,n){const r=e.getTime();return Ge(r,t.length)}};function um(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=Math.trunc(r/60),i=r%60;return i===0?n+String(a):n+String(a)+t+Ge(i,2)}function lm(e,t){return e%60===0?(e>0?"-":"+")+Ge(Math.abs(e)/60,2):qr(e,t)}function qr(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=Ge(Math.trunc(r/60),2),i=Ge(r%60,2);return n+a+t+i}const dm=(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"})}},ny=(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"})}},P4=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],a=n[2];if(!a)return dm(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",dm(r,t)).replace("{{time}}",ny(a,t))},D4={p:ny,P:P4},I4=/^D+$/,N4=/^Y+$/,F4=["D","DD","YY","YYYY"];function L4(e){return I4.test(e)}function U4(e){return N4.test(e)}function W4(e,t,n){const r=B4(e,t,n);if(console.warn(r),F4.includes(e))throw new RangeError(r)}function B4(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 z4=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,H4=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,V4=/^'([^]*?)'?$/,q4=/''/g,Y4=/[a-zA-Z]/;function Uf(e,t,n){var l,d,f,h,g,v,m,_;const r=Pc(),a=(n==null?void 0:n.locale)??r.locale??$4,i=(n==null?void 0:n.firstWeekContainsDate)??((d=(l=n==null?void 0:n.locale)==null?void 0:l.options)==null?void 0:d.firstWeekContainsDate)??r.firstWeekContainsDate??((h=(f=r.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??1,o=(n==null?void 0:n.weekStartsOn)??((v=(g=n==null?void 0:n.locale)==null?void 0:g.options)==null?void 0:v.weekStartsOn)??r.weekStartsOn??((_=(m=r.locale)==null?void 0:m.options)==null?void 0:_.weekStartsOn)??0,s=yn(e);if(!Zw(s))throw new RangeError("Invalid time value");let c=t.match(H4).map(w=>{const b=w[0];if(b==="p"||b==="P"){const T=D4[b];return T(w,a.formatLong)}return w}).join("").match(z4).map(w=>{if(w==="''")return{isToken:!1,value:"'"};const b=w[0];if(b==="'")return{isToken:!1,value:G4(w)};if(cm[b])return{isToken:!0,value:w};if(b.match(Y4))throw new RangeError("Format string contains an unescaped latin alphabet character `"+b+"`");return{isToken:!1,value:w}});a.localize.preprocessor&&(c=a.localize.preprocessor(s,c));const u={firstWeekContainsDate:i,weekStartsOn:o,locale:a};return c.map(w=>{if(!w.isToken)return w.value;const b=w.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&U4(b)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&L4(b))&&W4(b,t,String(e));const T=cm[b[0]];return T(s,b,a.localize,u)}).join("")}function G4(e){const t=e.match(V4);return t?t[1].replace(q4,"'"):e}function Dc(e,t){const r=J4(e);let a;if(r.date){const c=Q4(r.date,2);a=eT(c.restDateString,c.year)}if(!a||isNaN(a.getTime()))return new Date(NaN);const i=a.getTime();let o=0,s;if(r.time&&(o=tT(r.time),isNaN(o)))return new Date(NaN);if(r.timezone){if(s=nT(r.timezone),isNaN(s))return new Date(NaN)}else{const c=new Date(i+o),u=new Date(0);return u.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),u.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),u}return new Date(i+o+s)}const cs={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Z4=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,K4=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,X4=/^([+-])(\d{2})(?::?(\d{2}))?$/;function J4(e){const t={},n=e.split(cs.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],cs.timeZoneDelimiter.test(t.date)&&(t.date=e.split(cs.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const a=cs.timezone.exec(r);a?(t.time=r.replace(a[1],""),t.timezone=a[1]):t.time=r}return t}function Q4(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const a=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?a:i*100,restDateString:e.slice((r[1]||r[2]).length)}}function eT(e,t){if(t===null)return new Date(NaN);const n=e.match(Z4);if(!n)return new Date(NaN);const r=!!n[4],a=Ri(n[1]),i=Ri(n[2])-1,o=Ri(n[3]),s=Ri(n[4]),c=Ri(n[5])-1;if(r)return sT(t,s,c)?rT(t,s,c):new Date(NaN);{const u=new Date(0);return!iT(t,i,o)||!oT(t,a)?new Date(NaN):(u.setUTCFullYear(t,i,Math.max(a,o)),u)}}function Ri(e){return e?parseInt(e):1}function tT(e){const t=e.match(K4);if(!t)return NaN;const n=_l(t[1]),r=_l(t[2]),a=_l(t[3]);return cT(n,r,a)?n*jc+r*Ff+a*1e3:NaN}function _l(e){return e&&parseFloat(e.replace(",","."))||0}function nT(e){if(e==="Z")return 0;const t=e.match(X4);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),a=t[3]&&parseInt(t[3])||0;return uT(r,a)?n*(r*jc+a*Ff):NaN}function rT(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const a=r.getUTCDay()||7,i=(t-1)*7+n+1-a;return r.setUTCDate(r.getUTCDate()+i),r}const aT=[31,null,31,30,31,30,31,31,30,31,30,31];function ry(e){return e%400===0||e%4===0&&e%100!==0}function iT(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(aT[t]||(ry(e)?29:28))}function oT(e,t){return t>=1&&t<=(ry(e)?366:365)}function sT(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function cT(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function uT(e,t){return t>=0&&t<=59}function _d(){return _d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_d.apply(null,arguments)}function ay(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}var lT=function(e,t,n,r,a,i,o,s){if(process.env.NODE_ENV!=="production"&&t===void 0)throw new Error("invariant requires an error message argument");if(!e){var c;if(t===void 0)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,a,i,o,s],l=0;c=new Error(t.replace(/%s/g,function(){return u[l++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}},dT=lT;const fm=Mt(dT);function hm(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function fT(e){var t=hT(e,"string");return typeof t=="symbol"?t:String(t)}function hT(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function iy(e,t,n){var r=p.useRef(e!==void 0),a=p.useState(t),i=a[0],o=a[1],s=e!==void 0,c=r.current;return r.current=s,!s&&c&&i!==t&&o(t),[s?e:i,p.useCallback(function(u){for(var l=arguments.length,d=new Array(l>1?l-1:0),f=1;f<l;f++)d[f-1]=arguments[f];n&&n.apply(void 0,[u].concat(d)),o(u)},[n])]}function oy(e,t){return Object.keys(t).reduce(function(n,r){var a,i=n,o=i[hm(r)],s=i[r],c=ay(i,[hm(r),r].map(fT)),u=t[r],l=iy(s,o,e[u]),d=l[0],f=l[1];return _d({},c,(a={},a[r]=d,a[u]=f,a))},e)}function wd(e,t){return wd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},wd(e,t)}function pT(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,wd(e,t)}const mT=["xxl","xl","lg","md","sm","xs"],gT="xs",Ic=ie.createContext({prefixes:{},breakpoints:mT,minBreakpoint:gT});function Le(e,t){const{prefixes:n}=p.useContext(Ic);return e||n[t]||t}function vT(){const{breakpoints:e}=p.useContext(Ic);return e}function yT(){const{minBreakpoint:e}=p.useContext(Ic);return e}function Nc(){const{dir:e}=p.useContext(Ic);return e==="rtl"}function ui(e){return e&&e.ownerDocument||document}function bT(e){var t=ui(e);return t&&t.defaultView||window}function xT(e,t){return bT(e).getComputedStyle(e,t)}var _T=/([A-Z])/g;function wT(e){return e.replace(_T,"-$1").toLowerCase()}var TT=/^ms-/;function us(e){return wT(e).replace(TT,"-ms-")}var CT=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function kT(e){return!!(e&&CT.test(e))}function Mr(e,t){var n="",r="";if(typeof t=="string")return e.style.getPropertyValue(us(t))||xT(e).getPropertyValue(us(t));Object.keys(t).forEach(function(a){var i=t[a];!i&&i!==0?e.style.removeProperty(us(a)):kT(a)?r+=a+"("+i+") ":n+=us(a)+": "+i+";"}),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n}var Td={exports:{}},ls={exports:{}},He={};/** @license React v16.13.1
|
|
35
35
|
* react-is.production.min.js
|
|
36
36
|
*
|
|
37
37
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
38
38
|
*
|
|
39
39
|
* This source code is licensed under the MIT license found in the
|
|
40
40
|
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var pm;function
|
|
41
|
+
*/var pm;function ST(){if(pm)return He;pm=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,_=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function b(x){if(typeof x=="object"&&x!==null){var C=x.$$typeof;switch(C){case t:switch(x=x.type,x){case c:case u:case r:case i:case a:case d:return x;default:switch(x=x&&x.$$typeof,x){case s:case l:case g:case h:case o:return x;default:return C}}case n:return C}}}function T(x){return b(x)===u}return He.AsyncMode=c,He.ConcurrentMode=u,He.ContextConsumer=s,He.ContextProvider=o,He.Element=t,He.ForwardRef=l,He.Fragment=r,He.Lazy=g,He.Memo=h,He.Portal=n,He.Profiler=i,He.StrictMode=a,He.Suspense=d,He.isAsyncMode=function(x){return T(x)||b(x)===c},He.isConcurrentMode=T,He.isContextConsumer=function(x){return b(x)===s},He.isContextProvider=function(x){return b(x)===o},He.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===t},He.isForwardRef=function(x){return b(x)===l},He.isFragment=function(x){return b(x)===r},He.isLazy=function(x){return b(x)===g},He.isMemo=function(x){return b(x)===h},He.isPortal=function(x){return b(x)===n},He.isProfiler=function(x){return b(x)===i},He.isStrictMode=function(x){return b(x)===a},He.isSuspense=function(x){return b(x)===d},He.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===r||x===u||x===i||x===a||x===d||x===f||typeof x=="object"&&x!==null&&(x.$$typeof===g||x.$$typeof===h||x.$$typeof===o||x.$$typeof===s||x.$$typeof===l||x.$$typeof===m||x.$$typeof===_||x.$$typeof===w||x.$$typeof===v)},He.typeOf=b,He}var Ve={};/** @license React v16.13.1
|
|
42
42
|
* react-is.development.js
|
|
43
43
|
*
|
|
44
44
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
45
45
|
*
|
|
46
46
|
* This source code is licensed under the MIT license found in the
|
|
47
47
|
* LICENSE file in the root directory of this source tree.
|
|
48
|
-
*/var mm;function
|
|
48
|
+
*/var mm;function OT(){return mm||(mm=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,_=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function b(k){return typeof k=="string"||typeof k=="function"||k===r||k===u||k===i||k===a||k===d||k===f||typeof k=="object"&&k!==null&&(k.$$typeof===g||k.$$typeof===h||k.$$typeof===o||k.$$typeof===s||k.$$typeof===l||k.$$typeof===m||k.$$typeof===_||k.$$typeof===w||k.$$typeof===v)}function T(k){if(typeof k=="object"&&k!==null){var ge=k.$$typeof;switch(ge){case t:var pe=k.type;switch(pe){case c:case u:case r:case i:case a:case d:return pe;default:var de=pe&&pe.$$typeof;switch(de){case s:case l:case g:case h:case o:return de;default:return ge}}case n:return ge}}}var x=c,C=u,$=s,A=o,D=t,j=l,E=r,F=g,M=h,R=n,I=i,U=a,N=d,q=!1;function z(k){return q||(q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),P(k)||T(k)===c}function P(k){return T(k)===u}function B(k){return T(k)===s}function Z(k){return T(k)===o}function ne(k){return typeof k=="object"&&k!==null&&k.$$typeof===t}function Y(k){return T(k)===l}function Q(k){return T(k)===r}function G(k){return T(k)===g}function J(k){return T(k)===h}function re(k){return T(k)===n}function L(k){return T(k)===i}function V(k){return T(k)===a}function ae(k){return T(k)===d}Ve.AsyncMode=x,Ve.ConcurrentMode=C,Ve.ContextConsumer=$,Ve.ContextProvider=A,Ve.Element=D,Ve.ForwardRef=j,Ve.Fragment=E,Ve.Lazy=F,Ve.Memo=M,Ve.Portal=R,Ve.Profiler=I,Ve.StrictMode=U,Ve.Suspense=N,Ve.isAsyncMode=z,Ve.isConcurrentMode=P,Ve.isContextConsumer=B,Ve.isContextProvider=Z,Ve.isElement=ne,Ve.isForwardRef=Y,Ve.isFragment=Q,Ve.isLazy=G,Ve.isMemo=J,Ve.isPortal=re,Ve.isProfiler=L,Ve.isStrictMode=V,Ve.isSuspense=ae,Ve.isValidElementType=b,Ve.typeOf=T}()),Ve}var gm;function sy(){return gm||(gm=1,process.env.NODE_ENV==="production"?ls.exports=ST():ls.exports=OT()),ls.exports}/*
|
|
49
49
|
object-assign
|
|
50
50
|
(c) Sindre Sorhus
|
|
51
51
|
@license MIT
|
|
52
|
-
*/var wl,vm;function
|
|
53
|
-
Valid keys: `+JSON.stringify(Object.keys(P),null," "));var k=ae(J,V,Y,Q,G+"."+V,n);if(k)return k}return null}return m(B)}function R(P){switch(typeof P){case"number":case"string":case"undefined":return!0;case"boolean":return!P;case"object":if(Array.isArray(P))return P.every(R);if(P===null||s(P))return!0;var B=d(P);if(B){var Z=B.call(P),ne;if(B!==P.entries){for(;!(ne=Z.next()).done;)if(!R(ne.value))return!1}else for(;!(ne=Z.next()).done;){var Y=ne.value;if(Y&&!R(Y[1]))return!1}}else return!1;return!0;default:return!1}}function I(P,B){return P==="symbol"?!0:B?B["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&B instanceof Symbol:!1}function U(P){var B=typeof P;return Array.isArray(P)?"array":P instanceof RegExp?"object":I(B,P)?"symbol":B}function N(P){if(typeof P>"u"||P===null)return""+P;var B=U(P);if(B==="object"){if(P instanceof Date)return"date";if(P instanceof RegExp)return"regexp"}return B}function q(P){var B=N(P);switch(B){case"array":case"object":return"an "+B;case"boolean":case"date":case"regexp":return"a "+B;default:return B}}function z(P){return!P.constructor||!P.constructor.name?f:P.constructor.name}return h.checkPropTypes=a,h.resetWarningCache=a.resetWarningCache,h.PropTypes=h,h},Sl}var Ol,wm;function R3(){if(wm)return Ol;wm=1;var e=Wf();function t(){}function n(){}return n.resetWarningCache=t,Ol=function(){function r(o,s,c,u,l,d){if(d!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}r.isRequired=r;function a(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},Ol}if(process.env.NODE_ENV!=="production"){var A3=sy(),j3=!0;Td.exports=M3()(A3.isElement,j3)}else Td.exports=R3()();var P3=Td.exports;const O=Mt(P3),Tm={disabled:!1};var D3=process.env.NODE_ENV!=="production"?O.oneOfType([O.number,O.shape({enter:O.number,exit:O.number,appear:O.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&O.oneOfType([O.string,O.shape({enter:O.string,exit:O.string,active:O.string}),O.shape({enter:O.string,enterDone:O.string,enterActive:O.string,exit:O.string,exitDone:O.string,exitActive:O.string})]);const uy=p.createContext(null);var I3=function(t){return t.scrollTop},qi="unmounted",Tr="exited",ar="entering",Cr="entered",Ws="exiting",gr=function(e){p3(t,e);function t(r,a){var i;i=e.call(this,r,a)||this;var o=a,s=o&&!o.isMounting?r.enter:r.appear,c;return i.appearStatus=null,r.in?s?(c=Tr,i.appearStatus=ar):c=Cr:r.unmountOnExit||r.mountOnEnter?c=qi:c=Tr,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(a,i){var o=a.in;return o&&i.status===qi?{status:Tr}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(a){var i=null;if(a!==this.props){var o=this.state.status;this.props.in?o!==ar&&o!==Cr&&(i=ar):(o===ar||o===Cr)&&(i=Ws)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var a=this.props.timeout,i,o,s;return i=o=s=a,a!=null&&typeof a!="number"&&(i=a.exit,o=a.enter,s=a.appear!==void 0?a.appear:o),{exit:i,enter:o,appear:s}},n.updateStatus=function(a,i){if(a===void 0&&(a=!1),i!==null)if(this.cancelNextCallback(),i===ar){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:Or.findDOMNode(this);o&&I3(o)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Tr&&this.setState({status:qi})},n.performEnter=function(a){var i=this,o=this.props.enter,s=this.context?this.context.isMounting:a,c=this.props.nodeRef?[s]:[Or.findDOMNode(this),s],u=c[0],l=c[1],d=this.getTimeouts(),f=s?d.appear:d.enter;if(!a&&!o||Tm.disabled){this.safeSetState({status:Cr},function(){i.props.onEntered(u)});return}this.props.onEnter(u,l),this.safeSetState({status:ar},function(){i.props.onEntering(u,l),i.onTransitionEnd(f,function(){i.safeSetState({status:Cr},function(){i.props.onEntered(u,l)})})})},n.performExit=function(){var a=this,i=this.props.exit,o=this.getTimeouts(),s=this.props.nodeRef?void 0:Or.findDOMNode(this);if(!i||Tm.disabled){this.safeSetState({status:Tr},function(){a.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Ws},function(){a.props.onExiting(s),a.onTransitionEnd(o.exit,function(){a.safeSetState({status:Tr},function(){a.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(a,i){i=this.setNextCallback(i),this.setState(a,i)},n.setNextCallback=function(a){var i=this,o=!0;return this.nextCallback=function(s){o&&(o=!1,i.nextCallback=null,a(s))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},n.onTransitionEnd=function(a,i){this.setNextCallback(i);var o=this.props.nodeRef?this.props.nodeRef.current:Or.findDOMNode(this),s=a==null&&!this.props.addEndListener;if(!o||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],u=c[0],l=c[1];this.props.addEndListener(u,l)}a!=null&&setTimeout(this.nextCallback,a)},n.render=function(){var a=this.state.status;if(a===qi)return null;var i=this.props,o=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var s=ay(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return p.createElement(uy.Provider,{value:null},typeof o=="function"?o(a,s):p.cloneElement(p.Children.only(o),s))},t}(p.Component);gr.contextType=uy;gr.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:O.shape({current:typeof Element>"u"?O.any:function(e,t,n,r,a,i){var o=e[t];return O.instanceOf(o&&"ownerDocument"in o?o.ownerDocument.defaultView.Element:Element)(e,t,n,r,a,i)}}),children:O.oneOfType([O.func.isRequired,O.element.isRequired]).isRequired,in:O.bool,mountOnEnter:O.bool,unmountOnExit:O.bool,appear:O.bool,enter:O.bool,exit:O.bool,timeout:function(t){var n=D3;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];return n.apply(void 0,[t].concat(a))},addEndListener:O.func,onEnter:O.func,onEntering:O.func,onEntered:O.func,onExit:O.func,onExiting:O.func,onExited:O.func}:{};function Ma(){}gr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ma,onEntering:Ma,onEntered:Ma,onExit:Ma,onExiting:Ma,onExited:Ma};gr.UNMOUNTED=qi;gr.EXITED=Tr;gr.ENTERING=ar;gr.ENTERED=Cr;gr.EXITING=Ws;const li=!!(typeof window<"u"&&window.document&&window.document.createElement);var Cd=!1,kd=!1;try{var El={get passive(){return Cd=!0},get once(){return kd=Cd=!0}};li&&(window.addEventListener("test",El,El),window.removeEventListener("test",El,!0))}catch{}function Bf(e,t,n,r){if(r&&typeof r!="boolean"&&!kd){var a=r.once,i=r.capture,o=n;!kd&&a&&(o=n.__once||function s(c){this.removeEventListener(t,s,i),n.call(this,c)},n.__once=o),e.addEventListener(t,o,Cd?r:i)}e.addEventListener(t,n,r)}function Sd(e,t,n,r){var a=r&&typeof r!="boolean"?r.capture:r;e.removeEventListener(t,n,a),n.__once&&e.removeEventListener(t,n.__once,a)}function or(e,t,n,r){return Bf(e,t,n,r),function(){Sd(e,t,n,r)}}function N3(e,t,n,r){if(r===void 0&&(r=!0),e){var a=document.createEvent("HTMLEvents");a.initEvent(t,n,r),e.dispatchEvent(a)}}function F3(e){var t=Mr(e,"transitionDuration")||"",n=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*n}function L3(e,t,n){n===void 0&&(n=5);var r=!1,a=setTimeout(function(){r||N3(e,"transitionend",!0)},t+n),i=or(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(a),i()}}function ly(e,t,n,r){n==null&&(n=F3(e)||0);var a=L3(e,n,r),i=or(e,"transitionend",t);return function(){a(),i()}}function Cm(e,t){const n=Mr(e,t)||"",r=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*r}function dy(e,t){const n=Cm(e,"transitionDuration"),r=Cm(e,"transitionDelay"),a=ly(e,i=>{i.target===e&&(a(),t(i))},n+r)}function fy(e){e.offsetHeight}const km=e=>!e||typeof e=="function"?e:t=>{e.current=t};function U3(e,t){const n=km(e),r=km(t);return a=>{n&&n(a),r&&r(a)}}function $n(e,t){return p.useMemo(()=>U3(e,t),[e,t])}function Bs(e){return e&&"setState"in e?Or.findDOMNode(e):e??null}const hy=p.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:a,onExited:i,addEndListener:o,children:s,childRef:c,...u},l)=>{const d=p.useRef(null),f=$n(d,c),h=C=>{f(Bs(C))},g=C=>$=>{C&&d.current&&C(d.current,$)},v=p.useCallback(g(e),[e]),m=p.useCallback(g(t),[t]),_=p.useCallback(g(n),[n]),w=p.useCallback(g(r),[r]),b=p.useCallback(g(a),[a]),T=p.useCallback(g(i),[i]),x=p.useCallback(g(o),[o]);return y.jsx(gr,{ref:l,...u,onEnter:v,onEntered:_,onEntering:m,onExit:w,onExited:T,onExiting:b,addEndListener:x,nodeRef:d,children:typeof s=="function"?(C,$)=>s(C,{...$,ref:h}):p.cloneElement(s,{ref:h})})});function W3(e){const t=p.useRef(e);return p.useEffect(()=>{t.current=e},[e]),t}function bt(e){const t=W3(e);return p.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const py=e=>ie.forwardRef((t,n)=>y.jsx("div",{...t,ref:n,className:oe(t.className,e)}));function zs(){return p.useState(null)}function B3(e,t,n,r=!1){const a=bt(n);p.useEffect(()=>{const i=typeof e=="function"?e():e;return i.addEventListener(t,a,r),()=>i.removeEventListener(t,a,r)},[e])}function zf(){const e=p.useRef(!0),t=p.useRef(()=>e.current);return p.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function my(e){const t=p.useRef(null);return p.useEffect(()=>{t.current=e}),t.current}const z3=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",H3=typeof document<"u",ao=H3||z3?p.useLayoutEffect:p.useEffect,V3=["as","disabled"];function q3(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 Y3(e){return!e||e.trim()==="#"}function Hf({tagName:e,disabled:t,href:n,target:r,rel:a,role:i,onClick:o,tabIndex:s=0,type:c}){e||(n!=null||r!=null||a!=null?e="a":e="button");const u={tagName:e};if(e==="button")return[{type:c||"button",disabled:t},u];const l=f=>{if((t||e==="a"&&Y3(n))&&f.preventDefault(),t){f.stopPropagation();return}o==null||o(f)},d=f=>{f.key===" "&&(f.preventDefault(),l(f))};return e==="a"&&(n||(n="#"),t&&(n=void 0)),[{role:i??"button",disabled:void 0,tabIndex:t?void 0:s,href:n,target:e==="a"?r:void 0,"aria-disabled":t||void 0,rel:e==="a"?a:void 0,onClick:l,onKeyDown:d},u]}const Vf=ie.forwardRef((e,t)=>{let{as:n,disabled:r}=e,a=q3(e,V3);const[i,{tagName:o}]=Hf(Object.assign({tagName:n,disabled:r},a));return y.jsx(o,Object.assign({},a,i,{ref:t}))});Vf.displayName="Button";const G3=["onKeyDown"];function Z3(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 K3(e){return!e||e.trim()==="#"}const qf=ie.forwardRef((e,t)=>{let{onKeyDown:n}=e,r=Z3(e,G3);const[a]=Hf(Object.assign({tagName:"a"},r)),i=bt(o=>{a.onKeyDown(o),n==null||n(o)});return K3(r.href)||r.role==="button"?y.jsx("a",Object.assign({ref:t},r,a,{onKeyDown:i})):y.jsx("a",Object.assign({ref:t},r,{onKeyDown:n}))});qf.displayName="Anchor";const X3={[ar]:"show",[Cr]:"show"},Ya=ie.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:r,...a},i)=>{const o={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...a},s=p.useCallback((c,u)=>{fy(c),r==null||r(c,u)},[r]);return y.jsx(hy,{ref:i,addEndListener:dy,...o,onEnter:s,childRef:t.ref,children:(c,u)=>ie.cloneElement(t,{...u,className:oe("fade",e,t.props.className,X3[c],n[c])})})});Ya.displayName="Fade";const J3={"aria-label":O.string,onClick:O.func,variant:O.oneOf(["white"])},Fc=ie.forwardRef(({className:e,variant:t,"aria-label":n="Close",...r},a)=>y.jsx("button",{ref:a,type:"button",className:oe("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r}));Fc.displayName="CloseButton";Fc.propTypes=J3;const Yf=ie.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:r,active:a=!1,disabled:i=!1,className:o,...s},c)=>{const u=Le(t,"btn"),[l,{tagName:d}]=Hf({tagName:e,disabled:i,...s}),f=d;return y.jsx(f,{...l,...s,ref:c,disabled:i,className:oe(o,u,a&&"active",n&&`${u}-${n}`,r&&`${u}-${r}`,s.href&&i&&"disabled")})});Yf.displayName="Button";function Q3(e){const t=p.useRef(e);return t.current=e,t}function Gf(e){const t=Q3(e);p.useEffect(()=>()=>t.current(),[])}const Od=2**31-1;function gy(e,t,n){const r=n-Date.now();e.current=r<=Od?setTimeout(t,r):setTimeout(()=>gy(e,t,n),Od)}function eT(){const e=zf(),t=p.useRef();return Gf(()=>clearTimeout(t.current)),p.useMemo(()=>{const n=()=>clearTimeout(t.current);function r(a,i=0){e()&&(n(),i<=Od?t.current=setTimeout(a,i):gy(t,a,Date.now()+i))}return{set:r,clear:n,handleRef:t}},[])}function tT(e,t){return ie.Children.toArray(e).some(n=>ie.isValidElement(n)&&n.type===t)}function vy({as:e,bsPrefix:t,className:n,...r}){t=Le(t,"col");const a=v3(),i=y3(),o=[],s=[];return a.forEach(c=>{const u=r[c];delete r[c];let l,d,f;typeof u=="object"&&u!=null?{span:l,offset:d,order:f}=u:l=u;const h=c!==i?`-${c}`:"";l&&o.push(l===!0?`${t}${h}`:`${t}${h}-${l}`),f!=null&&s.push(`order${h}-${f}`),d!=null&&s.push(`offset${h}-${d}`)}),[{...r,className:oe(n,...o,...s)},{as:e,bsPrefix:t,spans:o}]}const yy=ie.forwardRef((e,t)=>{const[{className:n,...r},{as:a="div",bsPrefix:i,spans:o}]=vy(e);return y.jsx(a,{...r,ref:t,className:oe(n,!o.length&&i)})});yy.displayName="Col";var nT=Function.prototype.bind.call(Function.prototype.call,[].slice);function ir(e,t){return nT(e.querySelectorAll(t))}function rT(e,t,n){const r=p.useRef(e!==void 0),[a,i]=p.useState(t),o=e!==void 0,s=r.current;return r.current=o,!o&&s&&a!==t&&i(t),[o?e:a,p.useCallback((...c)=>{const[u,...l]=c;let d=n==null?void 0:n(u,...l);return i(u),d},[n])]}function by(){const[,e]=p.useReducer(t=>!t,!1);return e}const Lc=ie.createContext(null);var Sm=Object.prototype.hasOwnProperty;function Om(e,t,n){for(n of e.keys())if(Xi(n,t))return n}function Xi(e,t){var n,r,a;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&Xi(e[r],t[r]););return r===-1}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if(a=r,a&&typeof a=="object"&&(a=Om(t,a),!a)||!t.has(a))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if(a=r[0],a&&typeof a=="object"&&(a=Om(t,a),!a)||!Xi(r[1],t.get(a)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return r===-1}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(Sm.call(e,n)&&++r&&!Sm.call(t,n)||!(n in t)||!Xi(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function aT(e){const t=zf();return[e[0],p.useCallback(n=>{if(t())return e[1](n)},[t,e[1]])]}var an="top",On="bottom",En="right",on="left",Zf="auto",zo=[an,On,En,on],Ga="start",io="end",iT="clippingParents",xy="viewport",Ai="popper",oT="reference",Em=zo.reduce(function(e,t){return e.concat([t+"-"+Ga,t+"-"+io])},[]),_y=[].concat(zo,[Zf]).reduce(function(e,t){return e.concat([t,t+"-"+Ga,t+"-"+io])},[]),sT="beforeRead",cT="read",uT="afterRead",lT="beforeMain",dT="main",fT="afterMain",hT="beforeWrite",pT="write",mT="afterWrite",gT=[sT,cT,uT,lT,dT,fT,hT,pT,mT];function Hn(e){return e.split("-")[0]}function vn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ca(e){var t=vn(e).Element;return e instanceof t||e instanceof Element}function Vn(e){var t=vn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Kf(e){if(typeof ShadowRoot>"u")return!1;var t=vn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var ta=Math.max,Hs=Math.min,Za=Math.round;function Ed(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function wy(){return!/^((?!chrome|android).)*safari/i.test(Ed())}function Ka(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),a=1,i=1;t&&Vn(e)&&(a=e.offsetWidth>0&&Za(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Za(r.height)/e.offsetHeight||1);var o=ca(e)?vn(e):window,s=o.visualViewport,c=!wy()&&n,u=(r.left+(c&&s?s.offsetLeft:0))/a,l=(r.top+(c&&s?s.offsetTop:0))/i,d=r.width/a,f=r.height/i;return{width:d,height:f,top:l,right:u+d,bottom:l+f,left:u,x:u,y:l}}function Xf(e){var t=Ka(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Ty(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Kf(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ar(e){return e?(e.nodeName||"").toLowerCase():null}function lr(e){return vn(e).getComputedStyle(e)}function vT(e){return["table","td","th"].indexOf(Ar(e))>=0}function Ur(e){return((ca(e)?e.ownerDocument:e.document)||window.document).documentElement}function Uc(e){return Ar(e)==="html"?e:e.assignedSlot||e.parentNode||(Kf(e)?e.host:null)||Ur(e)}function $m(e){return!Vn(e)||lr(e).position==="fixed"?null:e.offsetParent}function yT(e){var t=/firefox/i.test(Ed()),n=/Trident/i.test(Ed());if(n&&Vn(e)){var r=lr(e);if(r.position==="fixed")return null}var a=Uc(e);for(Kf(a)&&(a=a.host);Vn(a)&&["html","body"].indexOf(Ar(a))<0;){var i=lr(a);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return a;a=a.parentNode}return null}function Ho(e){for(var t=vn(e),n=$m(e);n&&vT(n)&&lr(n).position==="static";)n=$m(n);return n&&(Ar(n)==="html"||Ar(n)==="body"&&lr(n).position==="static")?t:n||yT(e)||t}function Jf(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ji(e,t,n){return ta(e,Hs(t,n))}function bT(e,t,n){var r=Ji(e,t,n);return r>n?n:r}function Cy(){return{top:0,right:0,bottom:0,left:0}}function ky(e){return Object.assign({},Cy(),e)}function Sy(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var xT=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,ky(typeof t!="number"?t:Sy(t,zo))};function _T(e){var t,n=e.state,r=e.name,a=e.options,i=n.elements.arrow,o=n.modifiersData.popperOffsets,s=Hn(n.placement),c=Jf(s),u=[on,En].indexOf(s)>=0,l=u?"height":"width";if(!(!i||!o)){var d=xT(a.padding,n),f=Xf(i),h=c==="y"?an:on,g=c==="y"?On:En,v=n.rects.reference[l]+n.rects.reference[c]-o[c]-n.rects.popper[l],m=o[c]-n.rects.reference[c],_=Ho(i),w=_?c==="y"?_.clientHeight||0:_.clientWidth||0:0,b=v/2-m/2,T=d[h],x=w-f[l]-d[g],C=w/2-f[l]/2+b,$=Ji(T,C,x),A=c;n.modifiersData[r]=(t={},t[A]=$,t.centerOffset=$-C,t)}}function wT(e){var t=e.state,n=e.options,r=n.element,a=r===void 0?"[data-popper-arrow]":r;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||Ty(t.elements.popper,a)&&(t.elements.arrow=a))}const TT={name:"arrow",enabled:!0,phase:"main",fn:_T,effect:wT,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Xa(e){return e.split("-")[1]}var CT={top:"auto",right:"auto",bottom:"auto",left:"auto"};function kT(e,t){var n=e.x,r=e.y,a=t.devicePixelRatio||1;return{x:Za(n*a)/a||0,y:Za(r*a)/a||0}}function Mm(e){var t,n=e.popper,r=e.popperRect,a=e.placement,i=e.variation,o=e.offsets,s=e.position,c=e.gpuAcceleration,u=e.adaptive,l=e.roundOffsets,d=e.isFixed,f=o.x,h=f===void 0?0:f,g=o.y,v=g===void 0?0:g,m=typeof l=="function"?l({x:h,y:v}):{x:h,y:v};h=m.x,v=m.y;var _=o.hasOwnProperty("x"),w=o.hasOwnProperty("y"),b=on,T=an,x=window;if(u){var C=Ho(n),$="clientHeight",A="clientWidth";if(C===vn(n)&&(C=Ur(n),lr(C).position!=="static"&&s==="absolute"&&($="scrollHeight",A="scrollWidth")),C=C,a===an||(a===on||a===En)&&i===io){T=On;var D=d&&C===x&&x.visualViewport?x.visualViewport.height:C[$];v-=D-r.height,v*=c?1:-1}if(a===on||(a===an||a===On)&&i===io){b=En;var j=d&&C===x&&x.visualViewport?x.visualViewport.width:C[A];h-=j-r.width,h*=c?1:-1}}var E=Object.assign({position:s},u&&CT),F=l===!0?kT({x:h,y:v},vn(n)):{x:h,y:v};if(h=F.x,v=F.y,c){var M;return Object.assign({},E,(M={},M[T]=w?"0":"",M[b]=_?"0":"",M.transform=(x.devicePixelRatio||1)<=1?"translate("+h+"px, "+v+"px)":"translate3d("+h+"px, "+v+"px, 0)",M))}return Object.assign({},E,(t={},t[T]=w?v+"px":"",t[b]=_?h+"px":"",t.transform="",t))}function ST(e){var t=e.state,n=e.options,r=n.gpuAcceleration,a=r===void 0?!0:r,i=n.adaptive,o=i===void 0?!0:i,s=n.roundOffsets,c=s===void 0?!0:s,u={placement:Hn(t.placement),variation:Xa(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Mm(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Mm(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const OT={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ST,data:{}};var ds={passive:!0};function ET(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,i=a===void 0?!0:a,o=r.resize,s=o===void 0?!0:o,c=vn(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(l){l.addEventListener("scroll",n.update,ds)}),s&&c.addEventListener("resize",n.update,ds),function(){i&&u.forEach(function(l){l.removeEventListener("scroll",n.update,ds)}),s&&c.removeEventListener("resize",n.update,ds)}}const $T={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ET,data:{}};var MT={left:"right",right:"left",bottom:"top",top:"bottom"};function Es(e){return e.replace(/left|right|bottom|top/g,function(t){return MT[t]})}var RT={start:"end",end:"start"};function Rm(e){return e.replace(/start|end/g,function(t){return RT[t]})}function Qf(e){var t=vn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function eh(e){return Ka(Ur(e)).left+Qf(e).scrollLeft}function AT(e,t){var n=vn(e),r=Ur(e),a=n.visualViewport,i=r.clientWidth,o=r.clientHeight,s=0,c=0;if(a){i=a.width,o=a.height;var u=wy();(u||!u&&t==="fixed")&&(s=a.offsetLeft,c=a.offsetTop)}return{width:i,height:o,x:s+eh(e),y:c}}function jT(e){var t,n=Ur(e),r=Qf(e),a=(t=e.ownerDocument)==null?void 0:t.body,i=ta(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),o=ta(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),s=-r.scrollLeft+eh(e),c=-r.scrollTop;return lr(a||n).direction==="rtl"&&(s+=ta(n.clientWidth,a?a.clientWidth:0)-i),{width:i,height:o,x:s,y:c}}function th(e){var t=lr(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function Oy(e){return["html","body","#document"].indexOf(Ar(e))>=0?e.ownerDocument.body:Vn(e)&&th(e)?e:Oy(Uc(e))}function Qi(e,t){var n;t===void 0&&(t=[]);var r=Oy(e),a=r===((n=e.ownerDocument)==null?void 0:n.body),i=vn(r),o=a?[i].concat(i.visualViewport||[],th(r)?r:[]):r,s=t.concat(o);return a?s:s.concat(Qi(Uc(o)))}function $d(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function PT(e,t){var n=Ka(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Am(e,t,n){return t===xy?$d(AT(e,n)):ca(t)?PT(t,n):$d(jT(Ur(e)))}function DT(e){var t=Qi(Uc(e)),n=["absolute","fixed"].indexOf(lr(e).position)>=0,r=n&&Vn(e)?Ho(e):e;return ca(r)?t.filter(function(a){return ca(a)&&Ty(a,r)&&Ar(a)!=="body"}):[]}function IT(e,t,n,r){var a=t==="clippingParents"?DT(e):[].concat(t),i=[].concat(a,[n]),o=i[0],s=i.reduce(function(c,u){var l=Am(e,u,r);return c.top=ta(l.top,c.top),c.right=Hs(l.right,c.right),c.bottom=Hs(l.bottom,c.bottom),c.left=ta(l.left,c.left),c},Am(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Ey(e){var t=e.reference,n=e.element,r=e.placement,a=r?Hn(r):null,i=r?Xa(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(a){case an:c={x:o,y:t.y-n.height};break;case On:c={x:o,y:t.y+t.height};break;case En:c={x:t.x+t.width,y:s};break;case on:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var u=a?Jf(a):null;if(u!=null){var l=u==="y"?"height":"width";switch(i){case Ga:c[u]=c[u]-(t[l]/2-n[l]/2);break;case io:c[u]=c[u]+(t[l]/2-n[l]/2);break}}return c}function oo(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=r===void 0?e.placement:r,i=n.strategy,o=i===void 0?e.strategy:i,s=n.boundary,c=s===void 0?iT:s,u=n.rootBoundary,l=u===void 0?xy:u,d=n.elementContext,f=d===void 0?Ai:d,h=n.altBoundary,g=h===void 0?!1:h,v=n.padding,m=v===void 0?0:v,_=ky(typeof m!="number"?m:Sy(m,zo)),w=f===Ai?oT:Ai,b=e.rects.popper,T=e.elements[g?w:f],x=IT(ca(T)?T:T.contextElement||Ur(e.elements.popper),c,l,o),C=Ka(e.elements.reference),$=Ey({reference:C,element:b,strategy:"absolute",placement:a}),A=$d(Object.assign({},b,$)),D=f===Ai?A:C,j={top:x.top-D.top+_.top,bottom:D.bottom-x.bottom+_.bottom,left:x.left-D.left+_.left,right:D.right-x.right+_.right},E=e.modifiersData.offset;if(f===Ai&&E){var F=E[a];Object.keys(j).forEach(function(M){var R=[En,On].indexOf(M)>=0?1:-1,I=[an,On].indexOf(M)>=0?"y":"x";j[M]+=F[I]*R})}return j}function NT(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=n.boundary,i=n.rootBoundary,o=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?_y:c,l=Xa(r),d=l?s?Em:Em.filter(function(g){return Xa(g)===l}):zo,f=d.filter(function(g){return u.indexOf(g)>=0});f.length===0&&(f=d);var h=f.reduce(function(g,v){return g[v]=oo(e,{placement:v,boundary:a,rootBoundary:i,padding:o})[Hn(v)],g},{});return Object.keys(h).sort(function(g,v){return h[g]-h[v]})}function FT(e){if(Hn(e)===Zf)return[];var t=Es(e);return[Rm(e),t,Rm(t)]}function LT(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,i=a===void 0?!0:a,o=n.altAxis,s=o===void 0?!0:o,c=n.fallbackPlacements,u=n.padding,l=n.boundary,d=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,g=h===void 0?!0:h,v=n.allowedAutoPlacements,m=t.options.placement,_=Hn(m),w=_===m,b=c||(w||!g?[Es(m)]:FT(m)),T=[m].concat(b).reduce(function(Y,Q){return Y.concat(Hn(Q)===Zf?NT(t,{placement:Q,boundary:l,rootBoundary:d,padding:u,flipVariations:g,allowedAutoPlacements:v}):Q)},[]),x=t.rects.reference,C=t.rects.popper,$=new Map,A=!0,D=T[0],j=0;j<T.length;j++){var E=T[j],F=Hn(E),M=Xa(E)===Ga,R=[an,On].indexOf(F)>=0,I=R?"width":"height",U=oo(t,{placement:E,boundary:l,rootBoundary:d,altBoundary:f,padding:u}),N=R?M?En:on:M?On:an;x[I]>C[I]&&(N=Es(N));var q=Es(N),z=[];if(i&&z.push(U[F]<=0),s&&z.push(U[N]<=0,U[q]<=0),z.every(function(Y){return Y})){D=E,A=!1;break}$.set(E,z)}if(A)for(var P=g?3:1,B=function(Q){var G=T.find(function(J){var re=$.get(J);if(re)return re.slice(0,Q).every(function(L){return L})});if(G)return D=G,"break"},Z=P;Z>0;Z--){var ne=B(Z);if(ne==="break")break}t.placement!==D&&(t.modifiersData[r]._skip=!0,t.placement=D,t.reset=!0)}}const UT={name:"flip",enabled:!0,phase:"main",fn:LT,requiresIfExists:["offset"],data:{_skip:!1}};function jm(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Pm(e){return[an,En,On,on].some(function(t){return e[t]>=0})}function WT(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,i=t.modifiersData.preventOverflow,o=oo(t,{elementContext:"reference"}),s=oo(t,{altBoundary:!0}),c=jm(o,r),u=jm(s,a,i),l=Pm(c),d=Pm(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:l,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":d})}const BT={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:WT};function zT(e,t,n){var r=Hn(e),a=[on,an].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=i[0],s=i[1];return o=o||0,s=(s||0)*a,[on,En].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function HT(e){var t=e.state,n=e.options,r=e.name,a=n.offset,i=a===void 0?[0,0]:a,o=_y.reduce(function(l,d){return l[d]=zT(d,t.rects,i),l},{}),s=o[t.placement],c=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=o}const VT={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:HT};function qT(e){var t=e.state,n=e.name;t.modifiersData[n]=Ey({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const YT={name:"popperOffsets",enabled:!0,phase:"read",fn:qT,data:{}};function GT(e){return e==="x"?"y":"x"}function ZT(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,i=a===void 0?!0:a,o=n.altAxis,s=o===void 0?!1:o,c=n.boundary,u=n.rootBoundary,l=n.altBoundary,d=n.padding,f=n.tether,h=f===void 0?!0:f,g=n.tetherOffset,v=g===void 0?0:g,m=oo(t,{boundary:c,rootBoundary:u,padding:d,altBoundary:l}),_=Hn(t.placement),w=Xa(t.placement),b=!w,T=Jf(_),x=GT(T),C=t.modifiersData.popperOffsets,$=t.rects.reference,A=t.rects.popper,D=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,j=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,F={x:0,y:0};if(C){if(i){var M,R=T==="y"?an:on,I=T==="y"?On:En,U=T==="y"?"height":"width",N=C[T],q=N+m[R],z=N-m[I],P=h?-A[U]/2:0,B=w===Ga?$[U]:A[U],Z=w===Ga?-A[U]:-$[U],ne=t.elements.arrow,Y=h&&ne?Xf(ne):{width:0,height:0},Q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Cy(),G=Q[R],J=Q[I],re=Ji(0,$[U],Y[U]),L=b?$[U]/2-P-re-G-j.mainAxis:B-re-G-j.mainAxis,V=b?-$[U]/2+P+re+J+j.mainAxis:Z+re+J+j.mainAxis,ae=t.elements.arrow&&Ho(t.elements.arrow),k=ae?T==="y"?ae.clientTop||0:ae.clientLeft||0:0,ge=(M=E==null?void 0:E[T])!=null?M:0,pe=N+L-ge-k,de=N+V-ge,Ae=Ji(h?Hs(q,pe):q,N,h?ta(z,de):z);C[T]=Ae,F[T]=Ae-N}if(s){var Pe,ft=T==="x"?an:on,gt=T==="x"?On:En,Be=C[x],rt=x==="y"?"height":"width",Ze=Be+m[ft],xt=Be-m[gt],_t=[an,on].indexOf(_)!==-1,at=(Pe=E==null?void 0:E[x])!=null?Pe:0,xe=_t?Ze:Be-$[rt]-A[rt]-at+j.altAxis,Xe=_t?Be+$[rt]+A[rt]-at-j.altAxis:xt,Tt=h&&_t?bT(xe,Be,Xe):Ji(h?xe:Ze,Be,h?Xe:xt);C[x]=Tt,F[x]=Tt-Be}t.modifiersData[r]=F}}const KT={name:"preventOverflow",enabled:!0,phase:"main",fn:ZT,requiresIfExists:["offset"]};function XT(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function JT(e){return e===vn(e)||!Vn(e)?Qf(e):XT(e)}function QT(e){var t=e.getBoundingClientRect(),n=Za(t.width)/e.offsetWidth||1,r=Za(t.height)/e.offsetHeight||1;return n!==1||r!==1}function eC(e,t,n){n===void 0&&(n=!1);var r=Vn(t),a=Vn(t)&&QT(t),i=Ur(t),o=Ka(e,a,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Ar(t)!=="body"||th(i))&&(s=JT(t)),Vn(t)?(c=Ka(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=eh(i))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function tC(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function a(i){n.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(s){if(!n.has(s)){var c=t.get(s);c&&a(c)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||a(i)}),r}function nC(e){var t=tC(e);return gT.reduce(function(n,r){return n.concat(t.filter(function(a){return a.phase===r}))},[])}function rC(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function aC(e){var t=e.reduce(function(n,r){var a=n[r.name];return n[r.name]=a?Object.assign({},a,r,{options:Object.assign({},a.options,r.options),data:Object.assign({},a.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Dm={placement:"bottom",modifiers:[],strategy:"absolute"};function Im(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function iC(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,a=t.defaultOptions,i=a===void 0?Dm:a;return function(s,c,u){u===void 0&&(u=i);var l={placement:"bottom",orderedModifiers:[],options:Object.assign({},Dm,i),modifiersData:{},elements:{reference:s,popper:c},attributes:{},styles:{}},d=[],f=!1,h={state:l,setOptions:function(_){var w=typeof _=="function"?_(l.options):_;v(),l.options=Object.assign({},i,l.options,w),l.scrollParents={reference:ca(s)?Qi(s):s.contextElement?Qi(s.contextElement):[],popper:Qi(c)};var b=nC(aC([].concat(r,l.options.modifiers)));return l.orderedModifiers=b.filter(function(T){return T.enabled}),g(),h.update()},forceUpdate:function(){if(!f){var _=l.elements,w=_.reference,b=_.popper;if(Im(w,b)){l.rects={reference:eC(w,Ho(b),l.options.strategy==="fixed"),popper:Xf(b)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach(function(j){return l.modifiersData[j.name]=Object.assign({},j.data)});for(var T=0;T<l.orderedModifiers.length;T++){if(l.reset===!0){l.reset=!1,T=-1;continue}var x=l.orderedModifiers[T],C=x.fn,$=x.options,A=$===void 0?{}:$,D=x.name;typeof C=="function"&&(l=C({state:l,options:A,name:D,instance:h})||l)}}}},update:rC(function(){return new Promise(function(m){h.forceUpdate(),m(l)})}),destroy:function(){v(),f=!0}};if(!Im(s,c))return h;h.setOptions(u).then(function(m){!f&&u.onFirstUpdate&&u.onFirstUpdate(m)});function g(){l.orderedModifiers.forEach(function(m){var _=m.name,w=m.options,b=w===void 0?{}:w,T=m.effect;if(typeof T=="function"){var x=T({state:l,name:_,instance:h,options:b}),C=function(){};d.push(x||C)}})}function v(){d.forEach(function(m){return m()}),d=[]}return h}}const oC=iC({defaultModifiers:[BT,YT,OT,$T,VT,UT,KT,TT]}),sC=["enabled","placement","strategy","modifiers"];function cC(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}const uC={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},lC={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:n}=e.elements;if("removeAttribute"in t){const r=(t.getAttribute("aria-describedby")||"").split(",").filter(a=>a.trim()!==n.id);r.length?t.setAttribute("aria-describedby",r.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:n,reference:r}=e.elements,a=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();if(n.id&&a==="tooltip"&&"setAttribute"in r){const i=r.getAttribute("aria-describedby");if(i&&i.split(",").indexOf(n.id)!==-1)return;r.setAttribute("aria-describedby",i?`${i},${n.id}`:n.id)}}},dC=[];function $y(e,t,n={}){let{enabled:r=!0,placement:a="bottom",strategy:i="absolute",modifiers:o=dC}=n,s=cC(n,sC);const c=p.useRef(o),u=p.useRef(),l=p.useCallback(()=>{var m;(m=u.current)==null||m.update()},[]),d=p.useCallback(()=>{var m;(m=u.current)==null||m.forceUpdate()},[]),[f,h]=aT(p.useState({placement:a,update:l,forceUpdate:d,attributes:{},styles:{popper:{},arrow:{}}})),g=p.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:m})=>{const _={},w={};Object.keys(m.elements).forEach(b=>{_[b]=m.styles[b],w[b]=m.attributes[b]}),h({state:m,styles:_,attributes:w,update:l,forceUpdate:d,placement:m.placement})}}),[l,d,h]),v=p.useMemo(()=>(Xi(c.current,o)||(c.current=o),c.current),[o]);return p.useEffect(()=>{!u.current||!r||u.current.setOptions({placement:a,strategy:i,modifiers:[...v,g,uC]})},[i,a,g,r,v]),p.useEffect(()=>{if(!(!r||e==null||t==null))return u.current=oC(e,t,Object.assign({},s,{placement:a,strategy:i,modifiers:[...v,lC,g]})),()=>{u.current!=null&&(u.current.destroy(),u.current=void 0,h(m=>Object.assign({},m,{attributes:{},styles:{popper:{}}})))}},[r,e,t]),f}function so(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}var fC=process.env.NODE_ENV!=="production",My=function(){};if(fC){var hC=function(t,n){var r=arguments.length;n=new Array(r>1?r-1:0);for(var a=1;a<r;a++)n[a-1]=arguments[a];var i=0,o="Warning: "+t.replace(/%s/g,function(){return n[i++]});typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}};My=function(e,t,n){var r=arguments.length;n=new Array(r>2?r-2:0);for(var a=2;a<r;a++)n[a-2]=arguments[a];if(t===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");e||hC.apply(null,[t].concat(n))}}var pC=My;const di=Mt(pC),Nm=()=>{};function mC(e){return e.button===0}function gC(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const $s=e=>e&&("current"in e?e.current:e),Fm={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function Ry(e,t=Nm,{disabled:n,clickTrigger:r="click"}={}){const a=p.useRef(!1),i=p.useRef(!1),o=p.useCallback(u=>{const l=$s(e);di(!!l,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),a.current=!l||gC(u)||!mC(u)||!!so(l,u.target)||i.current,i.current=!1},[e]),s=bt(u=>{const l=$s(e);l&&so(l,u.target)&&(i.current=!0)}),c=bt(u=>{a.current||t(u)});p.useEffect(()=>{var u,l;if(n||e==null)return;const d=ui($s(e)),f=d.defaultView||window;let h=(u=f.event)!=null?u:(l=f.parent)==null?void 0:l.event,g=null;Fm[r]&&(g=or(d,Fm[r],s,!0));const v=or(d,r,o,!0),m=or(d,r,w=>{if(w===h){h=void 0;return}c(w)});let _=[];return"ontouchstart"in d.documentElement&&(_=[].slice.call(d.body.children).map(w=>or(w,"mousemove",Nm))),()=>{g==null||g(),v(),m(),_.forEach(w=>w())}},[e,n,r,o,s,c])}function vC(e){const t={};return Array.isArray(e)?(e==null||e.forEach(n=>{t[n.name]=n}),t):e||t}function yC(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function Ay({enabled:e,enableEvents:t,placement:n,flip:r,offset:a,fixed:i,containerPadding:o,arrowElement:s,popperConfig:c={}}){var u,l,d,f,h;const g=vC(c.modifiers);return Object.assign({},c,{placement:n,enabled:e,strategy:i?"fixed":c.strategy,modifiers:yC(Object.assign({},g,{eventListeners:{enabled:t,options:(u=g.eventListeners)==null?void 0:u.options},preventOverflow:Object.assign({},g.preventOverflow,{options:o?Object.assign({padding:o},(l=g.preventOverflow)==null?void 0:l.options):(d=g.preventOverflow)==null?void 0:d.options}),offset:{options:Object.assign({offset:a},(f=g.offset)==null?void 0:f.options)},arrow:Object.assign({},g.arrow,{enabled:!!s,options:Object.assign({},(h=g.arrow)==null?void 0:h.options,{element:s})}),flip:Object.assign({enabled:!!r},g.flip)}))})}const bC=["children","usePopper"];function xC(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}const _C=()=>{};function jy(e={}){const t=p.useContext(Lc),[n,r]=zs(),a=p.useRef(!1),{flip:i,offset:o,rootCloseEvent:s,fixed:c=!1,placement:u,popperConfig:l={},enableEventListeners:d=!0,usePopper:f=!!t}=e,h=(t==null?void 0:t.show)==null?!!e.show:t.show;h&&!a.current&&(a.current=!0);const g=C=>{t==null||t.toggle(!1,C)},{placement:v,setMenu:m,menuElement:_,toggleElement:w}=t||{},b=$y(w,_,Ay({placement:u||v||"bottom-start",enabled:f,enableEvents:d??h,offset:o,flip:i,fixed:c,arrowElement:n,popperConfig:l})),T=Object.assign({ref:m||_C,"aria-labelledby":w==null?void 0:w.id},b.attributes.popper,{style:b.styles.popper}),x={show:h,placement:v,hasShown:a.current,toggle:t==null?void 0:t.toggle,popper:f?b:null,arrowProps:f?Object.assign({ref:r},b.attributes.arrow,{style:b.styles.arrow}):{}};return Ry(_,g,{clickTrigger:s,disabled:!h}),[T,x]}function Py(e){let{children:t,usePopper:n=!0}=e,r=xC(e,bC);const[a,i]=jy(Object.assign({},r,{usePopper:n}));return y.jsx(y.Fragment,{children:t(a,i)})}Py.displayName="DropdownMenu";const Vs={prefix:String(Math.round(Math.random()*1e10)),current:0},Dy=p.createContext(Vs),wC=p.createContext(!1);let TC=!!(typeof window<"u"&&window.document&&window.document.createElement),$l=new WeakMap;function CC(e=!1){let t=p.useContext(Dy),n=p.useRef(null);if(n.current===null&&!e){var r,a;let i=(a=p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||a===void 0||(r=a.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(i){let o=$l.get(i);o==null?$l.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==o.state&&(t.current=o.id,$l.delete(i))}n.current=++t.current}return n.current}function kC(e){let t=p.useContext(Dy);t===Vs&&!TC&&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=CC(!!e),r=t===Vs&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function SC(e){let t=p.useId(),[n]=p.useState(RC()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Vs.prefix}`;return e||`${r}-${t}`}const OC=typeof p.useId=="function"?SC:kC;function EC(){return!1}function $C(){return!0}function MC(e){return()=>{}}function RC(){return typeof p.useSyncExternalStore=="function"?p.useSyncExternalStore(MC,EC,$C):p.useContext(wC)}const Iy=e=>{var t;return((t=e.getAttribute("role"))==null?void 0:t.toLowerCase())==="menu"},Lm=()=>{};function Ny(){const e=OC(),{show:t=!1,toggle:n=Lm,setToggle:r,menuElement:a}=p.useContext(Lc)||{},i=p.useCallback(s=>{n(!t,s)},[t,n]),o={id:e,ref:r||Lm,onClick:i,"aria-expanded":!!t};return a&&Iy(a)&&(o["aria-haspopup"]=!0),[o,{show:t,toggle:n}]}function Fy({children:e}){const[t,n]=Ny();return y.jsx(y.Fragment,{children:e(t,n)})}Fy.displayName="DropdownToggle";const qs=ie.createContext(null),Md=(e,t=null)=>e!=null?String(e):t||null,nh=ie.createContext(null);nh.displayName="NavContext";const AC="data-rr-ui-",jC="rrUi";function Wc(e){return`${AC}${e}`}function PC(e){return`${jC}${e}`}const DC=["eventKey","disabled","onClick","active","as"];function IC(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 Ly({key:e,href:t,active:n,disabled:r,onClick:a}){const i=p.useContext(qs),o=p.useContext(nh),{activeKey:s}=o||{},c=Md(e,t),u=n==null&&e!=null?Md(s)===c:n;return[{onClick:bt(d=>{r||(a==null||a(d),i&&!d.isPropagationStopped()&&i(c,d))}),"aria-disabled":r||void 0,"aria-selected":u,[Wc("dropdown-item")]:""},{isActive:u}]}const Uy=ie.forwardRef((e,t)=>{let{eventKey:n,disabled:r,onClick:a,active:i,as:o=Vf}=e,s=IC(e,DC);const[c]=Ly({key:n,href:s.href,disabled:r,onClick:a,active:i});return y.jsx(o,Object.assign({},s,{ref:t},c))});Uy.displayName="DropdownItem";const Wy=p.createContext(li?window:void 0);Wy.Provider;function Bc(){return p.useContext(Wy)}function Um(){const e=by(),t=p.useRef(null),n=p.useCallback(r=>{t.current=r,e()},[e]);return[t,n]}function Vo({defaultShow:e,show:t,onSelect:n,onToggle:r,itemSelector:a=`* [${Wc("dropdown-item")}]`,focusFirstItemOnShow:i,placement:o="bottom-start",children:s}){const c=Bc(),[u,l]=rT(t,e,r),[d,f]=Um(),h=d.current,[g,v]=Um(),m=g.current,_=my(u),w=p.useRef(null),b=p.useRef(!1),T=p.useContext(qs),x=p.useCallback((E,F,M=F==null?void 0:F.type)=>{l(E,{originalEvent:F,source:M})},[l]),C=bt((E,F)=>{n==null||n(E,F),x(!1,F,"select"),F.isPropagationStopped()||T==null||T(E,F)}),$=p.useMemo(()=>({toggle:x,placement:o,show:u,menuElement:h,toggleElement:m,setMenu:f,setToggle:v}),[x,o,u,h,m,f,v]);h&&_&&!u&&(b.current=h.contains(h.ownerDocument.activeElement));const A=bt(()=>{m&&m.focus&&m.focus()}),D=bt(()=>{const E=w.current;let F=i;if(F==null&&(F=d.current&&Iy(d.current)?"keyboard":!1),F===!1||F==="keyboard"&&!/^key.+$/.test(E))return;const M=ir(d.current,a)[0];M&&M.focus&&M.focus()});p.useEffect(()=>{u?D():b.current&&(b.current=!1,A())},[u,b,A,D]),p.useEffect(()=>{w.current=null});const j=(E,F)=>{if(!d.current)return null;const M=ir(d.current,a);let R=M.indexOf(E)+F;return R=Math.max(0,Math.min(R,M.length)),M[R]};return B3(p.useCallback(()=>c.document,[c]),"keydown",E=>{var F,M;const{key:R}=E,I=E.target,U=(F=d.current)==null?void 0:F.contains(I),N=(M=g.current)==null?void 0:M.contains(I);if(/input|textarea/i.test(I.tagName)&&(R===" "||R!=="Escape"&&U||R==="Escape"&&I.type==="search")||!U&&!N||R==="Tab"&&(!d.current||!u))return;w.current=E.type;const z={originalEvent:E,source:E.type};switch(R){case"ArrowUp":{const P=j(I,-1);P&&P.focus&&P.focus(),E.preventDefault();return}case"ArrowDown":if(E.preventDefault(),!u)l(!0,z);else{const P=j(I,1);P&&P.focus&&P.focus()}return;case"Tab":Bf(I.ownerDocument,"keyup",P=>{var B;(P.key==="Tab"&&!P.target||!((B=d.current)!=null&&B.contains(P.target)))&&l(!1,z)},{once:!0});break;case"Escape":R==="Escape"&&(E.preventDefault(),E.stopPropagation()),l(!1,z);break}}),y.jsx(qs.Provider,{value:C,children:y.jsx(Lc.Provider,{value:$,children:s})})}Vo.displayName="Dropdown";Vo.Menu=Py;Vo.Toggle=Fy;Vo.Item=Uy;const rh=ie.createContext({});rh.displayName="DropdownContext";const By=ie.forwardRef(({className:e,bsPrefix:t,as:n="hr",role:r="separator",...a},i)=>(t=Le(t,"dropdown-divider"),y.jsx(n,{ref:i,className:oe(e,t),role:r,...a})));By.displayName="DropdownDivider";const zy=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",role:r="heading",...a},i)=>(t=Le(t,"dropdown-header"),y.jsx(n,{ref:i,className:oe(e,t),role:r,...a})));zy.displayName="DropdownHeader";const Hy=ie.forwardRef(({bsPrefix:e,className:t,eventKey:n,disabled:r=!1,onClick:a,active:i,as:o=qf,...s},c)=>{const u=Le(e,"dropdown-item"),[l,d]=Ly({key:n,href:s.href,disabled:r,onClick:a,active:i});return y.jsx(o,{...s,...l,ref:c,className:oe(t,u,d.isActive&&"active",r&&"disabled")})});Hy.displayName="DropdownItem";const Vy=ie.forwardRef(({className:e,bsPrefix:t,as:n="span",...r},a)=>(t=Le(t,"dropdown-item-text"),y.jsx(n,{ref:a,className:oe(e,t),...r})));Vy.displayName="DropdownItemText";const zc=ie.createContext(null);zc.displayName="InputGroupContext";const ah=ie.createContext(null);ah.displayName="NavbarContext";function qy(e,t){if(process.env.NODE_ENV==="production")return e;const n=p.useCallback(r=>{r==null||!r.isReactComponent||(process.env.NODE_ENV!=="production"?fm(!1,`${t} injected a ref to a provided \`as\` component that resolved to a component instance instead of a DOM element. Use \`React.forwardRef\` to provide the injected ref to the class component as a prop in order to pass it directly to a DOM element`):fm(!1))},[t]);return $n(n,e)}function Yy(e,t,n){const r=n?"top-end":"top-start",a=n?"top-start":"top-end",i=n?"bottom-end":"bottom-start",o=n?"bottom-start":"bottom-end",s=n?"right-start":"left-start",c=n?"right-end":"left-end",u=n?"left-start":"right-start",l=n?"left-end":"right-end";let d=e?o:i;return t==="up"?d=e?a:r:t==="end"?d=e?l:u:t==="start"?d=e?c:s:t==="down-centered"?d="bottom":t==="up-centered"&&(d="top"),d}const Gy=ie.forwardRef(({bsPrefix:e,className:t,align:n,rootCloseEvent:r,flip:a=!0,show:i,renderOnMount:o,as:s="div",popperConfig:c,variant:u,...l},d)=>{let f=!1;const h=p.useContext(ah),g=Le(e,"dropdown-menu"),{align:v,drop:m,isRTL:_}=p.useContext(rh);n=n||v;const w=p.useContext(zc),b=[];if(n)if(typeof n=="object"){const E=Object.keys(n);if(process.env.NODE_ENV!=="production"&&di(E.length===1,"There should only be 1 breakpoint when passing an object to `align`"),E.length){const F=E[0],M=n[F];f=M==="start",b.push(`${g}-${F}-${M}`)}}else n==="end"&&(f=!0);const T=Yy(f,m,_),[x,{hasShown:C,popper:$,show:A,toggle:D}]=jy({flip:a,rootCloseEvent:r,show:i,usePopper:!h&&b.length===0,offset:[0,2],popperConfig:c,placement:T});if(x.ref=$n(qy(d,"DropdownMenu"),x.ref),ao(()=>{A&&($==null||$.update())},[A]),!C&&!o&&!w)return null;typeof s!="string"&&(x.show=A,x.close=()=>D==null?void 0:D(!1),x.align=n);let j=l.style;return $!=null&&$.placement&&(j={...l.style,...x.style},l["x-placement"]=$.placement),y.jsx(s,{...l,...x,style:j,...(b.length||h)&&{"data-bs-popper":"static"},className:oe(t,g,A&&"show",f&&`${g}-end`,u&&`${g}-${u}`,...b)})});Gy.displayName="DropdownMenu";const Zy=ie.forwardRef(({bsPrefix:e,split:t,className:n,childBsPrefix:r,as:a=Yf,...i},o)=>{const s=Le(e,"dropdown-toggle"),c=p.useContext(Lc);r!==void 0&&(i.bsPrefix=r);const[u]=Ny();return u.ref=$n(u.ref,qy(o,"DropdownToggle")),y.jsx(a,{className:oe(n,s,t&&`${s}-split`,(c==null?void 0:c.show)&&"show"),...u,...i})});Zy.displayName="DropdownToggle";const Ky=ie.forwardRef((e,t)=>{const{bsPrefix:n,drop:r="down",show:a,className:i,align:o="start",onSelect:s,onToggle:c,focusFirstItemOnShow:u,as:l="div",navbar:d,autoClose:f=!0,...h}=oy(e,{show:"onToggle"}),g=p.useContext(zc),v=Le(n,"dropdown"),m=Nc(),_=$=>f===!1?$==="click":f==="inside"?$!=="rootClose":f==="outside"?$!=="select":!0,w=bt(($,A)=>{var D;!((D=A.originalEvent)==null||(D=D.target)==null)&&D.classList.contains("dropdown-toggle")&&A.source==="mousedown"||(A.originalEvent.currentTarget===document&&(A.source!=="keydown"||A.originalEvent.key==="Escape")&&(A.source="rootClose"),_(A.source)&&(c==null||c($,A)))}),T=Yy(o==="end",r,m),x=p.useMemo(()=>({align:o,drop:r,isRTL:m}),[o,r,m]),C={down:v,"down-centered":`${v}-center`,up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return y.jsx(rh.Provider,{value:x,children:y.jsx(Vo,{placement:T,show:a,onSelect:s,onToggle:w,focusFirstItemOnShow:u,itemSelector:`.${v}-item:not(.disabled):not(:disabled)`,children:g?h.children:y.jsx(l,{...h,ref:t,className:oe(i,a&&"show",C[r])})})})});Ky.displayName="Dropdown";const co=Object.assign(Ky,{Toggle:Zy,Menu:Gy,Item:Hy,ItemText:Vy,Divider:By,Header:zy}),NC={type:O.string,tooltip:O.bool,as:O.elementType},Hc=ie.forwardRef(({as:e="div",className:t,type:n="valid",tooltip:r=!1,...a},i)=>y.jsx(e,{...a,ref:i,className:oe(t,`${n}-${r?"tooltip":"feedback"}`)}));Hc.displayName="Feedback";Hc.propTypes=NC;const dr=ie.createContext({}),Vc=ie.forwardRef(({id:e,bsPrefix:t,className:n,type:r="checkbox",isValid:a=!1,isInvalid:i=!1,as:o="input",...s},c)=>{const{controlId:u}=p.useContext(dr);return t=Le(t,"form-check-input"),y.jsx(o,{...s,ref:c,type:r,id:e||u,className:oe(n,t,a&&"is-valid",i&&"is-invalid")})});Vc.displayName="FormCheckInput";const Ys=ie.forwardRef(({bsPrefix:e,className:t,htmlFor:n,...r},a)=>{const{controlId:i}=p.useContext(dr);return e=Le(e,"form-check-label"),y.jsx("label",{...r,ref:a,htmlFor:n||i,className:oe(t,e)})});Ys.displayName="FormCheckLabel";const Xy=ie.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:n,inline:r=!1,reverse:a=!1,disabled:i=!1,isValid:o=!1,isInvalid:s=!1,feedbackTooltip:c=!1,feedback:u,feedbackType:l,className:d,style:f,title:h="",type:g="checkbox",label:v,children:m,as:_="input",...w},b)=>{t=Le(t,"form-check"),n=Le(n,"form-switch");const{controlId:T}=p.useContext(dr),x=p.useMemo(()=>({controlId:e||T}),[T,e]),C=!m&&v!=null&&v!==!1||tT(m,Ys),$=y.jsx(Vc,{...w,type:g==="switch"?"checkbox":g,ref:b,isValid:o,isInvalid:s,disabled:i,as:_});return y.jsx(dr.Provider,{value:x,children:y.jsx("div",{style:f,className:oe(d,C&&t,r&&`${t}-inline`,a&&`${t}-reverse`,g==="switch"&&n),children:m||y.jsxs(y.Fragment,{children:[$,C&&y.jsx(Ys,{title:h,children:v}),u&&y.jsx(Hc,{type:l,tooltip:c,children:u})]})})})});Xy.displayName="FormCheck";const Gs=Object.assign(Xy,{Input:Vc,Label:Ys}),Jy=ie.forwardRef(({bsPrefix:e,type:t,size:n,htmlSize:r,id:a,className:i,isValid:o=!1,isInvalid:s=!1,plaintext:c,readOnly:u,as:l="input",...d},f)=>{const{controlId:h}=p.useContext(dr);return e=Le(e,"form-control"),process.env.NODE_ENV!=="production"&&di(h==null||!a,"`controlId` is ignored on `<FormControl>` when `id` is specified."),y.jsx(l,{...d,type:t,size:r,ref:f,readOnly:u,id:a||h,className:oe(i,c?`${e}-plaintext`:e,n&&`${e}-${n}`,t==="color"&&`${e}-color`,o&&"is-valid",s&&"is-invalid")})});Jy.displayName="FormControl";const Qy=Object.assign(Jy,{Feedback:Hc}),eb=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},a)=>(t=Le(t,"form-floating"),y.jsx(n,{ref:a,className:oe(e,t),...r})));eb.displayName="FormFloating";const ih=ie.forwardRef(({controlId:e,as:t="div",...n},r)=>{const a=p.useMemo(()=>({controlId:e}),[e]);return y.jsx(dr.Provider,{value:a,children:y.jsx(t,{...n,ref:r})})});ih.displayName="FormGroup";const tb=ie.forwardRef(({as:e="label",bsPrefix:t,column:n=!1,visuallyHidden:r=!1,className:a,htmlFor:i,...o},s)=>{const{controlId:c}=p.useContext(dr);t=Le(t,"form-label");let u="col-form-label";typeof n=="string"&&(u=`${u} ${u}-${n}`);const l=oe(a,t,r&&"visually-hidden",n&&u);return process.env.NODE_ENV!=="production"&&di(c==null||!i,"`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified."),i=i||c,n?y.jsx(yy,{ref:s,as:"label",className:l,htmlFor:i,...o}):y.jsx(e,{ref:s,className:l,htmlFor:i,...o})});tb.displayName="FormLabel";const nb=ie.forwardRef(({bsPrefix:e,className:t,id:n,...r},a)=>{const{controlId:i}=p.useContext(dr);return e=Le(e,"form-range"),y.jsx("input",{...r,type:"range",ref:a,className:oe(t,e),id:n||i})});nb.displayName="FormRange";const oh=ie.forwardRef(({bsPrefix:e,size:t,htmlSize:n,className:r,isValid:a=!1,isInvalid:i=!1,id:o,...s},c)=>{const{controlId:u}=p.useContext(dr);return e=Le(e,"form-select"),y.jsx("select",{...s,size:n,ref:c,className:oe(r,e,t&&`${e}-${t}`,a&&"is-valid",i&&"is-invalid"),id:o||u})});oh.displayName="FormSelect";const rb=ie.forwardRef(({bsPrefix:e,className:t,as:n="small",muted:r,...a},i)=>(e=Le(e,"form-text"),y.jsx(n,{...a,ref:i,className:oe(t,e,r&&"text-muted")})));rb.displayName="FormText";const ab=ie.forwardRef((e,t)=>y.jsx(Gs,{...e,ref:t,type:"switch"}));ab.displayName="Switch";const FC=Object.assign(ab,{Input:Gs.Input,Label:Gs.Label}),sh=ie.forwardRef(({bsPrefix:e,className:t,children:n,controlId:r,label:a,...i},o)=>(e=Le(e,"form-floating"),y.jsxs(ih,{ref:o,className:oe(t,e),controlId:r,...i,children:[n,y.jsx("label",{htmlFor:r,children:a})]})));sh.displayName="FloatingLabel";const LC={_ref:O.any,validated:O.bool,as:O.elementType},ch=ie.forwardRef(({className:e,validated:t,as:n="form",...r},a)=>y.jsx(n,{...r,ref:a,className:oe(e,t&&"was-validated")}));ch.displayName="Form";ch.propTypes=LC;const ya=Object.assign(ch,{Group:ih,Control:Qy,Floating:eb,Check:Gs,Switch:FC,Label:tb,Text:rb,Range:nb,Select:oh,FloatingLabel:sh});var fs;function Wm(e){if((!fs&&fs!==0||e)&&li){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),fs=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return fs}function Ml(e){e===void 0&&(e=ui());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function UC(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const Bm=Wc("modal-open");class uh{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:r=!1}={}){this.handleContainerOverflow=n,this.isRTL=r,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return UC(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const n={overflow:"hidden"},r=this.isRTL?"paddingLeft":"paddingRight",a=this.getElement();t.style={overflow:a.style.overflow,[r]:a.style[r]},t.scrollBarWidth&&(n[r]=`${parseInt(Mr(a,r)||"0",10)+t.scrollBarWidth}px`),a.setAttribute(Bm,""),Mr(a,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(Bm),Object.assign(n.style,t.style)}add(t){let n=this.modals.indexOf(t);return n!==-1||(n=this.modals.length,this.modals.push(t),this.setModalAttributes(t),n!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),n}remove(t){const n=this.modals.indexOf(t);n!==-1&&(this.modals.splice(n,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const Rl=(e,t)=>li?e==null?(t||ui()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function Rd(e,t){const n=Bc(),[r,a]=p.useState(()=>Rl(e,n==null?void 0:n.document));if(!r){const i=Rl(e);i&&a(i)}return p.useEffect(()=>{},[t,r]),p.useEffect(()=>{const i=Rl(e);i!==r&&a(i)},[e,r]),r}function WC({children:e,in:t,onExited:n,mountOnEnter:r,unmountOnExit:a}){const i=p.useRef(null),o=p.useRef(t),s=bt(n);p.useEffect(()=>{t?o.current=!0:s(i.current)},[t,s]);const c=$n(i,e.ref),u=p.cloneElement(e,{ref:c});return t?u:a||!o.current&&r?null:u}function ib(e){return e.code==="Escape"||e.keyCode===27}function BC(){const e=ie.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}const zC=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function HC(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 VC(e){let{onEnter:t,onEntering:n,onEntered:r,onExit:a,onExiting:i,onExited:o,addEndListener:s,children:c}=e,u=HC(e,zC);const{major:l}=BC(),d=l>=19?c.props.ref:c.ref,f=p.useRef(null),h=$n(f,typeof c=="function"?null:d),g=C=>$=>{C&&f.current&&C(f.current,$)},v=p.useCallback(g(t),[t]),m=p.useCallback(g(n),[n]),_=p.useCallback(g(r),[r]),w=p.useCallback(g(a),[a]),b=p.useCallback(g(i),[i]),T=p.useCallback(g(o),[o]),x=p.useCallback(g(s),[s]);return Object.assign({},u,{nodeRef:f},t&&{onEnter:v},n&&{onEntering:m},r&&{onEntered:_},a&&{onExit:w},i&&{onExiting:b},o&&{onExited:T},s&&{addEndListener:x},{children:typeof c=="function"?(C,$)=>c(C,Object.assign({},$,{ref:h})):p.cloneElement(c,{ref:h})})}const qC=["component"];function YC(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}const GC=ie.forwardRef((e,t)=>{let{component:n}=e,r=YC(e,qC);const a=VC(r);return y.jsx(n,Object.assign({ref:t},a))});function ZC({in:e,onTransition:t}){const n=p.useRef(null),r=p.useRef(!0),a=bt(t);return ao(()=>{if(!n.current)return;let i=!1;return a({in:e,element:n.current,initial:r.current,isStale:()=>i}),()=>{i=!0}},[e,a]),ao(()=>(r.current=!1,()=>{r.current=!0}),[]),n}function KC({children:e,in:t,onExited:n,onEntered:r,transition:a}){const[i,o]=p.useState(!t);t&&i&&o(!1);const s=ZC({in:!!t,onTransition:u=>{const l=()=>{u.isStale()||(u.in?r==null||r(u.element,u.initial):(o(!0),n==null||n(u.element)))};Promise.resolve(a(u)).then(l,d=>{throw u.in||o(!0),d})}}),c=$n(s,e.ref);return i&&!t?null:p.cloneElement(e,{ref:c})}function Ad(e,t,n){return e?y.jsx(GC,Object.assign({},n,{component:e})):t?y.jsx(KC,Object.assign({},n,{transition:t})):y.jsx(WC,Object.assign({},n))}const XC=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function JC(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}let Al;function QC(e){return Al||(Al=new uh({ownerDocument:e==null?void 0:e.document})),Al}function ek(e){const t=Bc(),n=e||QC(t),r=p.useRef({dialog:null,backdrop:null});return Object.assign(r.current,{add:()=>n.add(r.current),remove:()=>n.remove(r.current),isTopModal:()=>n.isTopModal(r.current),setDialogRef:p.useCallback(a=>{r.current.dialog=a},[]),setBackdropRef:p.useCallback(a=>{r.current.backdrop=a},[])})}const ob=p.forwardRef((e,t)=>{let{show:n=!1,role:r="dialog",className:a,style:i,children:o,backdrop:s=!0,keyboard:c=!0,onBackdropClick:u,onEscapeKeyDown:l,transition:d,runTransition:f,backdropTransition:h,runBackdropTransition:g,autoFocus:v=!0,enforceFocus:m=!0,restoreFocus:_=!0,restoreFocusOptions:w,renderDialog:b,renderBackdrop:T=de=>y.jsx("div",Object.assign({},de)),manager:x,container:C,onShow:$,onHide:A=()=>{},onExit:D,onExited:j,onExiting:E,onEnter:F,onEntering:M,onEntered:R}=e,I=JC(e,XC);const U=Bc(),N=Rd(C),q=ek(x),z=zf(),P=my(n),[B,Z]=p.useState(!n),ne=p.useRef(null);p.useImperativeHandle(t,()=>q,[q]),li&&!P&&n&&(ne.current=Ml(U==null?void 0:U.document)),n&&B&&Z(!1);const Y=bt(()=>{if(q.add(),V.current=or(document,"keydown",re),L.current=or(document,"focus",()=>setTimeout(G),!0),$&&$(),v){var de,Ae;const Pe=Ml((de=(Ae=q.dialog)==null?void 0:Ae.ownerDocument)!=null?de:U==null?void 0:U.document);q.dialog&&Pe&&!so(q.dialog,Pe)&&(ne.current=Pe,q.dialog.focus())}}),Q=bt(()=>{if(q.remove(),V.current==null||V.current(),L.current==null||L.current(),_){var de;(de=ne.current)==null||de.focus==null||de.focus(w),ne.current=null}});p.useEffect(()=>{!n||!N||Y()},[n,N,Y]),p.useEffect(()=>{B&&Q()},[B,Q]),Gf(()=>{Q()});const G=bt(()=>{if(!m||!z()||!q.isTopModal())return;const de=Ml(U==null?void 0:U.document);q.dialog&&de&&!so(q.dialog,de)&&q.dialog.focus()}),J=bt(de=>{de.target===de.currentTarget&&(u==null||u(de),s===!0&&A())}),re=bt(de=>{c&&ib(de)&&q.isTopModal()&&(l==null||l(de),de.defaultPrevented||A())}),L=p.useRef(),V=p.useRef(),ae=(...de)=>{Z(!0),j==null||j(...de)};if(!N)return null;const k=Object.assign({role:r,ref:q.setDialogRef,"aria-modal":r==="dialog"?!0:void 0},I,{style:i,className:a,tabIndex:-1});let ge=b?b(k):y.jsx("div",Object.assign({},k,{children:ie.cloneElement(o,{role:"document"})}));ge=Ad(d,f,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:D,onExiting:E,onExited:ae,onEnter:F,onEntering:M,onEntered:R,children:ge});let pe=null;return s&&(pe=T({ref:q.setBackdropRef,onClick:J}),pe=Ad(h,g,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:pe})),y.jsx(y.Fragment,{children:Or.createPortal(y.jsxs(y.Fragment,{children:[pe,ge]}),N)})});ob.displayName="Modal";const sb=Object.assign(ob,{Manager:uh});function jd(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function tk(e,t){e.classList?e.classList.add(t):jd(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function zm(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function nk(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=zm(e.className,t):e.setAttribute("class",zm(e.className&&e.className.baseVal||"",t))}const Ra={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class cb extends uh{adjustAndStore(t,n,r){const a=n.style[t];n.dataset[t]=a,Mr(n,{[t]:`${parseFloat(Mr(n,t))+r}px`})}restore(t,n){const r=n.dataset[t];r!==void 0&&(delete n.dataset[t],Mr(n,{[t]:r}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(tk(n,"modal-open"),!t.scrollBarWidth)return;const r=this.isRTL?"paddingLeft":"paddingRight",a=this.isRTL?"marginLeft":"marginRight";ir(n,Ra.FIXED_CONTENT).forEach(i=>this.adjustAndStore(r,i,t.scrollBarWidth)),ir(n,Ra.STICKY_CONTENT).forEach(i=>this.adjustAndStore(a,i,-t.scrollBarWidth)),ir(n,Ra.NAVBAR_TOGGLER).forEach(i=>this.adjustAndStore(a,i,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();nk(n,"modal-open");const r=this.isRTL?"paddingLeft":"paddingRight",a=this.isRTL?"marginLeft":"marginRight";ir(n,Ra.FIXED_CONTENT).forEach(i=>this.restore(r,i)),ir(n,Ra.STICKY_CONTENT).forEach(i=>this.restore(a,i)),ir(n,Ra.NAVBAR_TOGGLER).forEach(i=>this.restore(a,i))}}let jl;function ub(e){return jl||(jl=new cb(e)),jl}const rk=cb,lb=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},a)=>(t=Le(t,"modal-body"),y.jsx(n,{ref:a,className:oe(e,t),...r})));lb.displayName="ModalBody";const lh=ie.createContext({onHide(){}}),dh=ie.forwardRef(({bsPrefix:e,className:t,contentClassName:n,centered:r,size:a,fullscreen:i,children:o,scrollable:s,...c},u)=>{e=Le(e,"modal");const l=`${e}-dialog`,d=typeof i=="string"?`${e}-fullscreen-${i}`:`${e}-fullscreen`;return y.jsx("div",{...c,ref:u,className:oe(l,t,a&&`${e}-${a}`,r&&`${l}-centered`,s&&`${l}-scrollable`,i&&d),children:y.jsx("div",{className:oe(`${e}-content`,n),children:o})})});dh.displayName="ModalDialog";const db=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},a)=>(t=Le(t,"modal-footer"),y.jsx(n,{ref:a,className:oe(e,t),...r})));db.displayName="ModalFooter";const fb=ie.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:r,children:a,...i},o)=>{const s=p.useContext(lh),c=bt(()=>{s==null||s.onHide(),r==null||r()});return y.jsxs("div",{ref:o,...i,children:[a,n&&y.jsx(Fc,{"aria-label":e,variant:t,onClick:c})]})}),hb=ie.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...a},i)=>(e=Le(e,"modal-header"),y.jsx(fb,{ref:i,...a,className:oe(t,e),closeLabel:n,closeButton:r})));hb.displayName="ModalHeader";const ak=py("h4"),pb=ie.forwardRef(({className:e,bsPrefix:t,as:n=ak,...r},a)=>(t=Le(t,"modal-title"),y.jsx(n,{ref:a,className:oe(e,t),...r})));pb.displayName="ModalTitle";function ik(e){return y.jsx(Ya,{...e,timeout:null})}function ok(e){return y.jsx(Ya,{...e,timeout:null})}const mb=ie.forwardRef(({bsPrefix:e,className:t,style:n,dialogClassName:r,contentClassName:a,children:i,dialogAs:o=dh,"data-bs-theme":s,"aria-labelledby":c,"aria-describedby":u,"aria-label":l,show:d=!1,animation:f=!0,backdrop:h=!0,keyboard:g=!0,onEscapeKeyDown:v,onShow:m,onHide:_,container:w,autoFocus:b=!0,enforceFocus:T=!0,restoreFocus:x=!0,restoreFocusOptions:C,onEntered:$,onExit:A,onExiting:D,onEnter:j,onEntering:E,onExited:F,backdropClassName:M,manager:R,...I},U)=>{const[N,q]=p.useState({}),[z,P]=p.useState(!1),B=p.useRef(!1),Z=p.useRef(!1),ne=p.useRef(null),[Y,Q]=zs(),G=$n(U,Q),J=bt(_),re=Nc();e=Le(e,"modal");const L=p.useMemo(()=>({onHide:J}),[J]);function V(){return R||ub({isRTL:re})}function ae(xe){if(!li)return;const Xe=V().getScrollbarWidth()>0,Tt=xe.scrollHeight>ui(xe).documentElement.clientHeight;q({paddingRight:Xe&&!Tt?Wm():void 0,paddingLeft:!Xe&&Tt?Wm():void 0})}const k=bt(()=>{Y&&ae(Y.dialog)});Gf(()=>{Sd(window,"resize",k),ne.current==null||ne.current()});const ge=()=>{B.current=!0},pe=xe=>{B.current&&Y&&xe.target===Y.dialog&&(Z.current=!0),B.current=!1},de=()=>{P(!0),ne.current=ly(Y.dialog,()=>{P(!1)})},Ae=xe=>{xe.target===xe.currentTarget&&de()},Pe=xe=>{if(h==="static"){Ae(xe);return}if(Z.current||xe.target!==xe.currentTarget){Z.current=!1;return}_==null||_()},ft=xe=>{g?v==null||v(xe):(xe.preventDefault(),h==="static"&&de())},gt=(xe,Xe)=>{xe&&ae(xe),j==null||j(xe,Xe)},Be=xe=>{ne.current==null||ne.current(),A==null||A(xe)},rt=(xe,Xe)=>{E==null||E(xe,Xe),Bf(window,"resize",k)},Ze=xe=>{xe&&(xe.style.display=""),F==null||F(xe),Sd(window,"resize",k)},xt=p.useCallback(xe=>y.jsx("div",{...xe,className:oe(`${e}-backdrop`,M,!f&&"show")}),[f,M,e]),_t={...n,...N};_t.display="block";const at=xe=>y.jsx("div",{role:"dialog",...xe,style:_t,className:oe(t,e,z&&`${e}-static`,!f&&"show"),onClick:h?Pe:void 0,onMouseUp:pe,"data-bs-theme":s,"aria-label":l,"aria-labelledby":c,"aria-describedby":u,children:y.jsx(o,{...I,onMouseDown:ge,className:r,contentClassName:a,children:i})});return y.jsx(lh.Provider,{value:L,children:y.jsx(sb,{show:d,ref:G,backdrop:h,container:w,keyboard:!0,autoFocus:b,enforceFocus:T,restoreFocus:x,restoreFocusOptions:C,onEscapeKeyDown:ft,onShow:m,onHide:_,onEnter:gt,onEntering:rt,onEntered:$,onExit:Be,onExiting:D,onExited:Ze,manager:V(),transition:f?ik:void 0,backdropTransition:f?ok:void 0,renderBackdrop:xt,renderDialog:at})})});mb.displayName="Modal";const rn=Object.assign(mb,{Body:lb,Header:hb,Title:pb,Footer:db,Dialog:dh,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),sk=()=>{};function ck(e,t,{disabled:n,clickTrigger:r}={}){const a=t||sk;Ry(e,a,{disabled:n,clickTrigger:r});const i=bt(o=>{ib(o)&&a(o)});p.useEffect(()=>{if(n||e==null)return;const o=ui($s(e));let s=(o.defaultView||window).event;const c=or(o,"keyup",u=>{if(u===s){s=void 0;return}i(u)});return()=>{c()}},[e,n,i])}const gb=ie.forwardRef((e,t)=>{const{flip:n,offset:r,placement:a,containerPadding:i,popperConfig:o={},transition:s,runTransition:c}=e,[u,l]=zs(),[d,f]=zs(),h=$n(l,t),g=Rd(e.container),v=Rd(e.target),[m,_]=p.useState(!e.show),w=$y(v,u,Ay({placement:a,enableEvents:!!e.show,containerPadding:i||5,flip:n,offset:r,arrowElement:d,popperConfig:o}));e.show&&m&&_(!1);const b=(...E)=>{_(!0),e.onExited&&e.onExited(...E)},T=e.show||!m;if(ck(u,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!T)return null;const{onExit:x,onExiting:C,onEnter:$,onEntering:A,onEntered:D}=e;let j=e.children(Object.assign({},w.attributes.popper,{style:w.styles.popper,ref:h}),{popper:w,placement:a,show:!!e.show,arrowProps:Object.assign({},w.attributes.arrow,{style:w.styles.arrow,ref:f})});return j=Ad(s,c,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:j,onExit:x,onExiting:C,onExited:b,onEnter:$,onEntering:A,onEntered:D}),g?Or.createPortal(j,g):null});gb.displayName="Overlay";const vb=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},a)=>(t=Le(t,"popover-header"),y.jsx(n,{ref:a,className:oe(e,t),...r})));vb.displayName="PopoverHeader";const fh=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},a)=>(t=Le(t,"popover-body"),y.jsx(n,{ref:a,className:oe(e,t),...r})));fh.displayName="PopoverBody";function yb(e,t){let n=e;return e==="left"?n=t?"end":"start":e==="right"&&(n=t?"start":"end"),n}function bb(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const uk=ie.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:a,body:i,arrowProps:o,hasDoneInitialMeasure:s,popper:c,show:u,...l},d)=>{const f=Le(e,"popover"),h=Nc(),[g]=(t==null?void 0:t.split("-"))||[],v=yb(g,h);let m=r;return u&&!s&&(m={...r,...bb(c==null?void 0:c.strategy)}),y.jsxs("div",{ref:d,role:"tooltip",style:m,"x-placement":g,className:oe(n,f,g&&`bs-popover-${v}`),...l,children:[y.jsx("div",{className:"popover-arrow",...o}),i?y.jsx(fh,{children:a}):a]})}),xb=Object.assign(uk,{Header:vb,Body:fh,POPPER_OFFSET:[0,8]}),_b=ie.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:a,arrowProps:i,hasDoneInitialMeasure:o,popper:s,show:c,...u},l)=>{e=Le(e,"tooltip");const d=Nc(),[f]=(t==null?void 0:t.split("-"))||[],h=yb(f,d);let g=r;return c&&!o&&(g={...r,...bb(s==null?void 0:s.strategy)}),y.jsxs("div",{ref:l,style:g,role:"tooltip","x-placement":f,className:oe(n,e,`bs-tooltip-${h}`),...u,children:[y.jsx("div",{className:"tooltip-arrow",...i}),y.jsx("div",{className:`${e}-inner`,children:a})]})});_b.displayName="Tooltip";const hh=Object.assign(_b,{TOOLTIP_OFFSET:[0,6]});function lk(e){const t=p.useRef(null),n=Le(void 0,"popover"),r=Le(void 0,"tooltip"),a=p.useMemo(()=>({name:"offset",options:{offset:()=>{if(e)return e;if(t.current){if(jd(t.current,n))return xb.POPPER_OFFSET;if(jd(t.current,r))return hh.TOOLTIP_OFFSET}return[0,0]}}}),[e,n,r]);return[t,[a]]}function dk(e,t){const{ref:n}=e,{ref:r}=t;e.ref=n.__wrapped||(n.__wrapped=a=>n(Bs(a))),t.ref=r.__wrapped||(r.__wrapped=a=>r(Bs(a)))}const wb=ie.forwardRef(({children:e,transition:t=Ya,popperConfig:n={},rootClose:r=!1,placement:a="top",show:i=!1,...o},s)=>{const c=p.useRef({}),[u,l]=p.useState(null),[d,f]=lk(o.offset),h=$n(s,d),g=t===!0?Ya:t||void 0,v=bt(m=>{l(m),n==null||n.onFirstUpdate==null||n.onFirstUpdate(m)});return ao(()=>{u&&o.target&&(c.current.scheduleUpdate==null||c.current.scheduleUpdate())},[u,o.target]),p.useEffect(()=>{i||l(null)},[i]),y.jsx(gb,{...o,ref:h,popperConfig:{...n,modifiers:f.concat(n.modifiers||[]),onFirstUpdate:v},transition:g,rootClose:r,placement:a,show:i,children:(m,{arrowProps:_,popper:w,show:b})=>{var T;dk(m,_);const x=w==null?void 0:w.placement,C=Object.assign(c.current,{state:w==null?void 0:w.state,scheduleUpdate:w==null?void 0:w.update,placement:x,outOfBoundaries:(w==null||(T=w.state)==null||(T=T.modifiersData.hide)==null?void 0:T.isReferenceHidden)||!1,strategy:n.strategy}),$=!!u;return typeof e=="function"?e({...m,placement:x,show:b,...!t&&b&&{className:"show"},popper:C,arrowProps:_,hasDoneInitialMeasure:$}):ie.cloneElement(e,{...m,placement:x,arrowProps:_,popper:C,hasDoneInitialMeasure:$,className:oe(e.props.className,!t&&b&&"show"),style:{...e.props.style,...m.style}})}})});wb.displayName="Overlay";function fk(e){return e&&typeof e=="object"?e:{show:e,hide:e}}function Hm(e,t,n){const[r]=t,a=r.currentTarget,i=r.relatedTarget||r.nativeEvent[n];(!i||i!==a)&&!so(a,i)&&e(...t)}O.oneOf(["click","hover","focus"]);const Tb=({trigger:e=["hover","focus"],overlay:t,children:n,popperConfig:r={},show:a,defaultShow:i=!1,onToggle:o,delay:s,placement:c,flip:u=c&&c.indexOf("auto")!==-1,...l})=>{const d=p.useRef(null),f=$n(d,n.ref),h=eT(),g=p.useRef(""),[v,m]=iy(a,i,o),_=fk(s),{onFocus:w,onBlur:b,onClick:T}=typeof n!="function"?ie.Children.only(n).props:{},x=I=>{f(Bs(I))},C=p.useCallback(()=>{if(h.clear(),g.current="show",!_.show){m(!0);return}h.set(()=>{g.current==="show"&&m(!0)},_.show)},[_.show,m,h]),$=p.useCallback(()=>{if(h.clear(),g.current="hide",!_.hide){m(!1);return}h.set(()=>{g.current==="hide"&&m(!1)},_.hide)},[_.hide,m,h]),A=p.useCallback((...I)=>{C(),w==null||w(...I)},[C,w]),D=p.useCallback((...I)=>{$(),b==null||b(...I)},[$,b]),j=p.useCallback((...I)=>{m(!v),T==null||T(...I)},[T,m,v]),E=p.useCallback((...I)=>{Hm(C,I,"fromElement")},[C]),F=p.useCallback((...I)=>{Hm($,I,"toElement")},[$]),M=e==null?[]:[].concat(e),R={ref:x};return M.indexOf("click")!==-1&&(R.onClick=j),M.indexOf("focus")!==-1&&(R.onFocus=A,R.onBlur=D),M.indexOf("hover")!==-1&&(process.env.NODE_ENV!=="production"&&di(M.length>1,'[react-bootstrap] Specifying only the `"hover"` trigger limits the visibility of the overlay to just mouse users. Consider also including the `"focus"` trigger so that touch and keyboard only users can see the overlay as well.'),R.onMouseOver=E,R.onMouseOut=F),y.jsxs(y.Fragment,{children:[typeof n=="function"?n(R):p.cloneElement(n,R),y.jsx(wb,{...l,show:v,onHide:$,flip:u,placement:c,popperConfig:r,target:d.current,children:t})]})};var Cb={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Vm=p.createContext&&p.createContext(Cb),hk=["attr","size","title"];function pk(e,t){if(e==null)return{};var n=mk(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function mk(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Zs(){return Zs=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},Zs.apply(this,arguments)}function qm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ks(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qm(Object(n),!0).forEach(function(r){gk(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gk(e,t,n){return t=vk(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vk(e){var t=yk(e,"string");return typeof t=="symbol"?t:t+""}function yk(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kb(e){return e&&e.map((t,n)=>p.createElement(t.tag,Ks({key:n},t.attr),kb(t.child)))}function Fe(e){return t=>p.createElement(bk,Zs({attr:Ks({},e.attr)},t),kb(e.child))}function bk(e){var t=n=>{var{attr:r,size:a,title:i}=e,o=pk(e,hk),s=a||n.size||"1em",c;return n.className&&(c=n.className),e.className&&(c=(c?c+" ":"")+e.className),p.createElement("svg",Zs({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,o,{className:c,style:Ks(Ks({color:e.color||n.color},n.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),i&&p.createElement("title",null,i),e.children)};return Vm!==void 0?p.createElement(Vm.Consumer,null,n=>t(n)):t(Cb)}function xk(e){return Fe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"},child:[]}]})(e)}function qc(e){return Fe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"},child:[]}]})(e)}function _k(e){return Fe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M21 12.4V7l-4-4H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7.4l8.6-8.6zM15 15c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3zM6 6h9v4H6V6zm13.99 10.25 1.77 1.77L16.77 23H15v-1.77l4.99-4.98zm3.26.26-.85.85-1.77-1.77.85-.85c.2-.2.51-.2.71 0l1.06 1.06c.2.2.2.52 0 .71z"},child:[]}]})(e)}function wk(e){return Fe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z"},child:[]}]})(e)}function Tk(e){return Fe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2z"},child:[]}]})(e)}function Ck(e){return Fe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m10 17 5-5-5-5v10z"},child:[]},{tag:"path",attr:{fill:"none",d:"M0 24V0h24v24H0z"},child:[]}]})(e)}function kk(e){return Fe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"},child:[]}]})(e)}function Sk(e){return Fe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M6 6v2h8.59L5 17.59 6.41 19 16 9.41V18h2V6z"},child:[]}]})(e)}function Ok(e){return Fe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M20 8h-2.81a5.985 5.985 0 0 0-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5s-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20V8zm-4 4v3c0 .22-.03.47-.07.7l-.1.65-.37.65c-.72 1.24-2.04 2-3.46 2s-2.74-.77-3.46-2l-.37-.64-.1-.65A4.27 4.27 0 0 1 8 15v-4c0-.23.03-.48.07-.7l.1-.65.37-.65c.3-.52.72-.97 1.21-1.31l.57-.39.74-.18a3.787 3.787 0 0 1 1.89 0l.68.16.61.42c.5.34.91.78 1.21 1.31l.38.65.1.65c.04.22.07.47.07.69v1zm-6 2h4v2h-4zm0-4h4v2h-4z"},child:[]}]})(e)}function Ek(e){return Fe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M16 9v10H8V9h8m-1.5-6h-5l-1 1H5v2h14V4h-3.5l-1-1zM18 7H6v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7z"},child:[]}]})(e)}function $k(e){return Fe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M4 20h16v2H4zM4 2h16v2H4zM9.41 13.59 8 15l4 4 4-4-1.41-1.41L13 15.17V8.83l1.59 1.58L16 9l-4-4-4 4 1.41 1.41L11 8.83v6.34z"},child:[]}]})(e)}function Mk(e){return Fe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11.07 12.85c.77-1.39 2.25-2.21 3.11-3.44.91-1.29.4-3.7-2.18-3.7-1.69 0-2.52 1.28-2.87 2.34L6.54 6.96C7.25 4.83 9.18 3 11.99 3c2.35 0 3.96 1.07 4.78 2.41.7 1.15 1.11 3.3.03 4.9-1.2 1.77-2.35 2.31-2.97 3.45-.25.46-.35.76-.35 2.24h-2.89c-.01-.78-.13-2.05.48-3.15zM14 20c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2z"},child:[]}]})(e)}function Rk(e){return Fe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16c1.1 0 2-.9 2-2V6a2 2 0 0 0-2-2zm0 14H4V8h16v10zm-2-1h-6v-2h6v2zM7.5 17l-1.41-1.41L8.67 13l-2.59-2.59L7.5 9l4 4-4 4z"},child:[]}]})(e)}function Ak(e){return Fe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"},child:[]}]})(e)}function jk(e){return Fe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"},child:[]}]})(e)}function Pk(e){return Fe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"},child:[]}]})(e)}function Dk(e){return Fe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5-5 5z"},child:[]}]})(e)}function Ik(e){return Fe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"},child:[]}]})(e)}function Nk(e){return Fe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"},child:[]}]})(e)}function Fk(e){return Fe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M20 4h-3.17L15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H4V6h4.05l1.83-2h4.24l1.83 2H20v12zM12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0 8c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3z"},child:[]}]})(e)}function Lk(e){return Fe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"m14.06 9.02.92.92L5.92 19H5v-.92l9.06-9.06M17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83a.996.996 0 0 0 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29zm-3.6 3.19L3 17.25V21h3.75L17.81 9.94l-3.75-3.75z"},child:[]}]})(e)}function Uk(e){return Fe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"},child:[]}]})(e)}function Wk(e){return Fe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6-6-6z"},child:[]}]})(e)}function Sb(e){return Fe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"},child:[]}]})(e)}function Bk(e){return Fe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"},child:[]}]})(e)}function zk(e){return Fe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{fill:"none"},child:[{tag:"path",attr:{d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M0 0h24v24H0V0z"},child:[]}]},{tag:"path",attr:{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27z"},child:[]}]})(e)}const bn=p.createContext({cookieDomain:"",axiosOptions:{},language:"",localizationContext:{},texts:{},ProjectIconComponent:{},chartColorPalette:void 0}),Ob=p.createContext({show:!1,text:"",showConfirm:e=>{},hideConfirm:()=>{}}),Eb=p.createContext({isShown:!1,text:"",hidePrompt:()=>{},showPrompt:()=>{},resolveRef:{current:()=>{}},options:{input:"textarea",type:"text"},setOptions:()=>{}}),$b=()=>{const{isShown:e,text:t,showPrompt:n,hidePrompt:r,resolveRef:a,setOptions:i}=p.useContext(Eb),o=p.useCallback(c=>{r(),a.current(c)},[r,a]),s=p.useCallback(async(c,u)=>(i(l=>({...l,...u})),n(c),new Promise(l=>{a.current=l})),[a,i,n]);return{isShown:e,text:t,prompt:s,onFinish:o}};let Hk={data:""},Vk=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Hk,qk=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Yk=/\/\*[^]*?\*\/| +/g,Ym=/\n+/g,kr=(e,t)=>{let n="",r="",a="";for(let i in e){let o=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+o+";":r+=i[1]=="f"?kr(o,i):i+"{"+kr(o,i[1]=="k"?"":t)+"}":typeof o=="object"?r+=kr(o,t?t.replace(/([^,])+/g,s=>i.replace(/(^:.*)|([^,])+/g,c=>/&/.test(c)?c.replace(/&/g,s):s?s+" "+c:c)):i):o!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),a+=kr.p?kr.p(i,o):i+":"+o+";")}return n+(t&&a?t+"{"+a+"}":a)+r},tr={},Mb=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+Mb(e[n]);return t}return e},Gk=(e,t,n,r,a)=>{let i=Mb(e),o=tr[i]||(tr[i]=(c=>{let u=0,l=11;for(;u<c.length;)l=101*l+c.charCodeAt(u++)>>>0;return"go"+l})(i));if(!tr[o]){let c=i!==e?e:(u=>{let l,d,f=[{}];for(;l=qk.exec(u.replace(Yk,""));)l[4]?f.shift():l[3]?(d=l[3].replace(Ym," ").trim(),f.unshift(f[0][d]=f[0][d]||{})):f[0][l[1]]=l[2].replace(Ym," ").trim();return f[0]})(e);tr[o]=kr(a?{["@keyframes "+o]:c}:c,n?"":"."+o)}let s=n&&tr.g?tr.g:null;return n&&(tr.g=tr[o]),((c,u,l,d)=>{d?u.data=u.data.replace(d,c):u.data.indexOf(c)===-1&&(u.data=l?c+u.data:u.data+c)})(tr[o],t,r,s),o},Zk=(e,t,n)=>e.reduce((r,a,i)=>{let o=t[i];if(o&&o.call){let s=o(n),c=s&&s.props&&s.props.className||/^go/.test(s)&&s;o=c?"."+c:s&&typeof s=="object"?s.props?"":kr(s,""):s===!1?"":s}return r+a+(o??"")},"");function Yc(e){let t=this||{},n=e.call?e(t.p):e;return Gk(n.unshift?n.raw?Zk(n,[].slice.call(arguments,1),t.p):n.reduce((r,a)=>Object.assign(r,a&&a.call?a(t.p):a),{}):n,Vk(t.target),t.g,t.o,t.k)}let Rb,Pd,Dd;Yc.bind({g:1});let fr=Yc.bind({k:1});function Kk(e,t,n,r){kr.p=t,Rb=e,Pd=n,Dd=r}function Wr(e,t){let n=this||{};return function(){let r=arguments;function a(i,o){let s=Object.assign({},i),c=s.className||a.className;n.p=Object.assign({theme:Pd&&Pd()},s),n.o=/ *go\d+/.test(c),s.className=Yc.apply(n,r)+(c?" "+c:"");let u=e;return e[0]&&(u=s.as||e,delete s.as),Dd&&u[0]&&Dd(s),Rb(u,s)}return a}}var Xk=e=>typeof e=="function",Xs=(e,t)=>Xk(e)?e(t):e,Jk=(()=>{let e=0;return()=>(++e).toString()})(),Ab=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),Qk=20,Ms=new Map,e5=1e3,Gm=e=>{if(Ms.has(e))return;let t=setTimeout(()=>{Ms.delete(e),ba({type:4,toastId:e})},e5);Ms.set(e,t)},t5=e=>{let t=Ms.get(e);t&&clearTimeout(t)},Id=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,Qk)};case 1:return t.toast.id&&t5(t.toast.id),{...e,toasts:e.toasts.map(i=>i.id===t.toast.id?{...i,...t.toast}:i)};case 2:let{toast:n}=t;return e.toasts.find(i=>i.id===n.id)?Id(e,{type:1,toast:n}):Id(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?Gm(r):e.toasts.forEach(i=>{Gm(i.id)}),{...e,toasts:e.toasts.map(i=>i.id===r||r===void 0?{...i,visible:!1}:i)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(i=>i.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let a=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(i=>({...i,pauseDuration:i.pauseDuration+a}))}}},Rs=[],As={toasts:[],pausedAt:void 0},ba=e=>{As=Id(As,e),Rs.forEach(t=>{t(As)})},n5={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},r5=(e={})=>{let[t,n]=p.useState(As);p.useEffect(()=>(Rs.push(n),()=>{let a=Rs.indexOf(n);a>-1&&Rs.splice(a,1)}),[t]);let r=t.toasts.map(a=>{var i,o;return{...e,...e[a.type],...a,duration:a.duration||((i=e[a.type])==null?void 0:i.duration)||(e==null?void 0:e.duration)||n5[a.type],style:{...e.style,...(o=e[a.type])==null?void 0:o.style,...a.style}}});return{...t,toasts:r}},a5=(e,t="blank",n)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(n==null?void 0:n.id)||Jk()}),qo=e=>(t,n)=>{let r=a5(t,e,n);return ba({type:2,toast:r}),r.id},pn=(e,t)=>qo("blank")(e,t);pn.error=qo("error");pn.success=qo("success");pn.loading=qo("loading");pn.custom=qo("custom");pn.dismiss=e=>{ba({type:3,toastId:e})};pn.remove=e=>ba({type:4,toastId:e});pn.promise=(e,t,n)=>{let r=pn.loading(t.loading,{...n,...n==null?void 0:n.loading});return e.then(a=>(pn.success(Xs(t.success,a),{id:r,...n,...n==null?void 0:n.success}),a)).catch(a=>{pn.error(Xs(t.error,a),{id:r,...n,...n==null?void 0:n.error})}),e};var i5=(e,t)=>{ba({type:1,toast:{id:e,height:t}})},o5=()=>{ba({type:5,time:Date.now()})},s5=e=>{let{toasts:t,pausedAt:n}=r5(e);p.useEffect(()=>{if(n)return;let i=Date.now(),o=t.map(s=>{if(s.duration===1/0)return;let c=(s.duration||0)+s.pauseDuration-(i-s.createdAt);if(c<0){s.visible&&pn.dismiss(s.id);return}return setTimeout(()=>pn.dismiss(s.id),c)});return()=>{o.forEach(s=>s&&clearTimeout(s))}},[t,n]);let r=p.useCallback(()=>{n&&ba({type:6,time:Date.now()})},[n]),a=p.useCallback((i,o)=>{let{reverseOrder:s=!1,gutter:c=8,defaultPosition:u}=o||{},l=t.filter(h=>(h.position||u)===(i.position||u)&&h.height),d=l.findIndex(h=>h.id===i.id),f=l.filter((h,g)=>g<d&&h.visible).length;return l.filter(h=>h.visible).slice(...s?[f+1]:[0,f]).reduce((h,g)=>h+(g.height||0)+c,0)},[t]);return{toasts:t,handlers:{updateHeight:i5,startPause:o5,endPause:r,calculateOffset:a}}},c5=fr`
|
|
52
|
+
*/var wl,vm;function ET(){if(vm)return wl;vm=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function a(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var c=Object.getOwnPropertyNames(o).map(function(l){return o[l]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(l){u[l]=l}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return wl=a()?Object.assign:function(i,o){for(var s,c=r(i),u,l=1;l<arguments.length;l++){s=Object(arguments[l]);for(var d in s)t.call(s,d)&&(c[d]=s[d]);if(e){u=e(s);for(var f=0;f<u.length;f++)n.call(s,u[f])&&(c[u[f]]=s[u[f]])}}return c},wl}var Tl,ym;function Wf(){if(ym)return Tl;ym=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Tl=e,Tl}var Cl,bm;function cy(){return bm||(bm=1,Cl=Function.call.bind(Object.prototype.hasOwnProperty)),Cl}var kl,xm;function $T(){if(xm)return kl;xm=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Wf(),n={},r=cy();e=function(i){var o="Warning: "+i;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function a(i,o,s,c,u){if(process.env.NODE_ENV!=="production"){for(var l in i)if(r(i,l)){var d;try{if(typeof i[l]!="function"){var f=Error((c||"React class")+": "+s+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}d=i[l](o,l,c,s,null,t)}catch(g){d=g}if(d&&!(d instanceof Error)&&e((c||"React class")+": type specification of "+s+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var h=u?u():"";e("Failed "+s+" type: "+d.message+(h??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},kl=a,kl}var Sl,_m;function MT(){if(_m)return Sl;_m=1;var e=sy(),t=ET(),n=Wf(),r=cy(),a=$T(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(s){var c="Warning: "+s;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function o(){return null}return Sl=function(s,c){var u=typeof Symbol=="function"&&Symbol.iterator,l="@@iterator";function d(P){var B=P&&(u&&P[u]||P[l]);if(typeof B=="function")return B}var f="<<anonymous>>",h={array:_("array"),bigint:_("bigint"),bool:_("boolean"),func:_("function"),number:_("number"),object:_("object"),string:_("string"),symbol:_("symbol"),any:w(),arrayOf:b,element:T(),elementType:x(),instanceOf:C,node:j(),objectOf:A,oneOf:$,oneOfType:D,shape:F,exact:M};function g(P,B){return P===B?P!==0||1/P===1/B:P!==P&&B!==B}function v(P,B){this.message=P,this.data=B&&typeof B=="object"?B:{},this.stack=""}v.prototype=Error.prototype;function m(P){if(process.env.NODE_ENV!=="production")var B={},Z=0;function ne(Q,G,J,re,L,V,ae){if(re=re||f,V=V||J,ae!==n){if(c){var k=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw k.name="Invariant Violation",k}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ge=re+":"+J;!B[ge]&&Z<3&&(i("You are manually calling a React.PropTypes validation function for the `"+V+"` prop on `"+re+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),B[ge]=!0,Z++)}}return G[J]==null?Q?G[J]===null?new v("The "+L+" `"+V+"` is marked as required "+("in `"+re+"`, but its value is `null`.")):new v("The "+L+" `"+V+"` is marked as required in "+("`"+re+"`, but its value is `undefined`.")):null:P(G,J,re,L,V)}var Y=ne.bind(null,!1);return Y.isRequired=ne.bind(null,!0),Y}function _(P){function B(Z,ne,Y,Q,G,J){var re=Z[ne],L=U(re);if(L!==P){var V=N(re);return new v("Invalid "+Q+" `"+G+"` of type "+("`"+V+"` supplied to `"+Y+"`, expected ")+("`"+P+"`."),{expectedType:P})}return null}return m(B)}function w(){return m(o)}function b(P){function B(Z,ne,Y,Q,G){if(typeof P!="function")return new v("Property `"+G+"` of component `"+Y+"` has invalid PropType notation inside arrayOf.");var J=Z[ne];if(!Array.isArray(J)){var re=U(J);return new v("Invalid "+Q+" `"+G+"` of type "+("`"+re+"` supplied to `"+Y+"`, expected an array."))}for(var L=0;L<J.length;L++){var V=P(J,L,Y,Q,G+"["+L+"]",n);if(V instanceof Error)return V}return null}return m(B)}function T(){function P(B,Z,ne,Y,Q){var G=B[Z];if(!s(G)){var J=U(G);return new v("Invalid "+Y+" `"+Q+"` of type "+("`"+J+"` supplied to `"+ne+"`, expected a single ReactElement."))}return null}return m(P)}function x(){function P(B,Z,ne,Y,Q){var G=B[Z];if(!e.isValidElementType(G)){var J=U(G);return new v("Invalid "+Y+" `"+Q+"` of type "+("`"+J+"` supplied to `"+ne+"`, expected a single ReactElement type."))}return null}return m(P)}function C(P){function B(Z,ne,Y,Q,G){if(!(Z[ne]instanceof P)){var J=P.name||f,re=z(Z[ne]);return new v("Invalid "+Q+" `"+G+"` of type "+("`"+re+"` supplied to `"+Y+"`, expected ")+("instance of `"+J+"`."))}return null}return m(B)}function $(P){if(!Array.isArray(P))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),o;function B(Z,ne,Y,Q,G){for(var J=Z[ne],re=0;re<P.length;re++)if(g(J,P[re]))return null;var L=JSON.stringify(P,function(ae,k){var ge=N(k);return ge==="symbol"?String(k):k});return new v("Invalid "+Q+" `"+G+"` of value `"+String(J)+"` "+("supplied to `"+Y+"`, expected one of "+L+"."))}return m(B)}function A(P){function B(Z,ne,Y,Q,G){if(typeof P!="function")return new v("Property `"+G+"` of component `"+Y+"` has invalid PropType notation inside objectOf.");var J=Z[ne],re=U(J);if(re!=="object")return new v("Invalid "+Q+" `"+G+"` of type "+("`"+re+"` supplied to `"+Y+"`, expected an object."));for(var L in J)if(r(J,L)){var V=P(J,L,Y,Q,G+"."+L,n);if(V instanceof Error)return V}return null}return m(B)}function D(P){if(!Array.isArray(P))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var B=0;B<P.length;B++){var Z=P[B];if(typeof Z!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+q(Z)+" at index "+B+"."),o}function ne(Y,Q,G,J,re){for(var L=[],V=0;V<P.length;V++){var ae=P[V],k=ae(Y,Q,G,J,re,n);if(k==null)return null;k.data&&r(k.data,"expectedType")&&L.push(k.data.expectedType)}var ge=L.length>0?", expected one of type ["+L.join(", ")+"]":"";return new v("Invalid "+J+" `"+re+"` supplied to "+("`"+G+"`"+ge+"."))}return m(ne)}function j(){function P(B,Z,ne,Y,Q){return R(B[Z])?null:new v("Invalid "+Y+" `"+Q+"` supplied to "+("`"+ne+"`, expected a ReactNode."))}return m(P)}function E(P,B,Z,ne,Y){return new v((P||"React class")+": "+B+" type `"+Z+"."+ne+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Y+"`.")}function F(P){function B(Z,ne,Y,Q,G){var J=Z[ne],re=U(J);if(re!=="object")return new v("Invalid "+Q+" `"+G+"` of type `"+re+"` "+("supplied to `"+Y+"`, expected `object`."));for(var L in P){var V=P[L];if(typeof V!="function")return E(Y,Q,G,L,N(V));var ae=V(J,L,Y,Q,G+"."+L,n);if(ae)return ae}return null}return m(B)}function M(P){function B(Z,ne,Y,Q,G){var J=Z[ne],re=U(J);if(re!=="object")return new v("Invalid "+Q+" `"+G+"` of type `"+re+"` "+("supplied to `"+Y+"`, expected `object`."));var L=t({},Z[ne],P);for(var V in L){var ae=P[V];if(r(P,V)&&typeof ae!="function")return E(Y,Q,G,V,N(ae));if(!ae)return new v("Invalid "+Q+" `"+G+"` key `"+V+"` supplied to `"+Y+"`.\nBad object: "+JSON.stringify(Z[ne],null," ")+`
|
|
53
|
+
Valid keys: `+JSON.stringify(Object.keys(P),null," "));var k=ae(J,V,Y,Q,G+"."+V,n);if(k)return k}return null}return m(B)}function R(P){switch(typeof P){case"number":case"string":case"undefined":return!0;case"boolean":return!P;case"object":if(Array.isArray(P))return P.every(R);if(P===null||s(P))return!0;var B=d(P);if(B){var Z=B.call(P),ne;if(B!==P.entries){for(;!(ne=Z.next()).done;)if(!R(ne.value))return!1}else for(;!(ne=Z.next()).done;){var Y=ne.value;if(Y&&!R(Y[1]))return!1}}else return!1;return!0;default:return!1}}function I(P,B){return P==="symbol"?!0:B?B["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&B instanceof Symbol:!1}function U(P){var B=typeof P;return Array.isArray(P)?"array":P instanceof RegExp?"object":I(B,P)?"symbol":B}function N(P){if(typeof P>"u"||P===null)return""+P;var B=U(P);if(B==="object"){if(P instanceof Date)return"date";if(P instanceof RegExp)return"regexp"}return B}function q(P){var B=N(P);switch(B){case"array":case"object":return"an "+B;case"boolean":case"date":case"regexp":return"a "+B;default:return B}}function z(P){return!P.constructor||!P.constructor.name?f:P.constructor.name}return h.checkPropTypes=a,h.resetWarningCache=a.resetWarningCache,h.PropTypes=h,h},Sl}var Ol,wm;function RT(){if(wm)return Ol;wm=1;var e=Wf();function t(){}function n(){}return n.resetWarningCache=t,Ol=function(){function r(o,s,c,u,l,d){if(d!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}r.isRequired=r;function a(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},Ol}if(process.env.NODE_ENV!=="production"){var AT=sy(),jT=!0;Td.exports=MT()(AT.isElement,jT)}else Td.exports=RT()();var PT=Td.exports;const O=Mt(PT),Tm={disabled:!1};var DT=process.env.NODE_ENV!=="production"?O.oneOfType([O.number,O.shape({enter:O.number,exit:O.number,appear:O.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&O.oneOfType([O.string,O.shape({enter:O.string,exit:O.string,active:O.string}),O.shape({enter:O.string,enterDone:O.string,enterActive:O.string,exit:O.string,exitDone:O.string,exitActive:O.string})]);const uy=p.createContext(null);var IT=function(t){return t.scrollTop},qi="unmounted",Tr="exited",ar="entering",Cr="entered",Ws="exiting",gr=function(e){pT(t,e);function t(r,a){var i;i=e.call(this,r,a)||this;var o=a,s=o&&!o.isMounting?r.enter:r.appear,c;return i.appearStatus=null,r.in?s?(c=Tr,i.appearStatus=ar):c=Cr:r.unmountOnExit||r.mountOnEnter?c=qi:c=Tr,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(a,i){var o=a.in;return o&&i.status===qi?{status:Tr}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(a){var i=null;if(a!==this.props){var o=this.state.status;this.props.in?o!==ar&&o!==Cr&&(i=ar):(o===ar||o===Cr)&&(i=Ws)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var a=this.props.timeout,i,o,s;return i=o=s=a,a!=null&&typeof a!="number"&&(i=a.exit,o=a.enter,s=a.appear!==void 0?a.appear:o),{exit:i,enter:o,appear:s}},n.updateStatus=function(a,i){if(a===void 0&&(a=!1),i!==null)if(this.cancelNextCallback(),i===ar){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:Or.findDOMNode(this);o&&IT(o)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Tr&&this.setState({status:qi})},n.performEnter=function(a){var i=this,o=this.props.enter,s=this.context?this.context.isMounting:a,c=this.props.nodeRef?[s]:[Or.findDOMNode(this),s],u=c[0],l=c[1],d=this.getTimeouts(),f=s?d.appear:d.enter;if(!a&&!o||Tm.disabled){this.safeSetState({status:Cr},function(){i.props.onEntered(u)});return}this.props.onEnter(u,l),this.safeSetState({status:ar},function(){i.props.onEntering(u,l),i.onTransitionEnd(f,function(){i.safeSetState({status:Cr},function(){i.props.onEntered(u,l)})})})},n.performExit=function(){var a=this,i=this.props.exit,o=this.getTimeouts(),s=this.props.nodeRef?void 0:Or.findDOMNode(this);if(!i||Tm.disabled){this.safeSetState({status:Tr},function(){a.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Ws},function(){a.props.onExiting(s),a.onTransitionEnd(o.exit,function(){a.safeSetState({status:Tr},function(){a.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(a,i){i=this.setNextCallback(i),this.setState(a,i)},n.setNextCallback=function(a){var i=this,o=!0;return this.nextCallback=function(s){o&&(o=!1,i.nextCallback=null,a(s))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},n.onTransitionEnd=function(a,i){this.setNextCallback(i);var o=this.props.nodeRef?this.props.nodeRef.current:Or.findDOMNode(this),s=a==null&&!this.props.addEndListener;if(!o||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],u=c[0],l=c[1];this.props.addEndListener(u,l)}a!=null&&setTimeout(this.nextCallback,a)},n.render=function(){var a=this.state.status;if(a===qi)return null;var i=this.props,o=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var s=ay(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return p.createElement(uy.Provider,{value:null},typeof o=="function"?o(a,s):p.cloneElement(p.Children.only(o),s))},t}(p.Component);gr.contextType=uy;gr.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:O.shape({current:typeof Element>"u"?O.any:function(e,t,n,r,a,i){var o=e[t];return O.instanceOf(o&&"ownerDocument"in o?o.ownerDocument.defaultView.Element:Element)(e,t,n,r,a,i)}}),children:O.oneOfType([O.func.isRequired,O.element.isRequired]).isRequired,in:O.bool,mountOnEnter:O.bool,unmountOnExit:O.bool,appear:O.bool,enter:O.bool,exit:O.bool,timeout:function(t){var n=DT;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];return n.apply(void 0,[t].concat(a))},addEndListener:O.func,onEnter:O.func,onEntering:O.func,onEntered:O.func,onExit:O.func,onExiting:O.func,onExited:O.func}:{};function Ma(){}gr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ma,onEntering:Ma,onEntered:Ma,onExit:Ma,onExiting:Ma,onExited:Ma};gr.UNMOUNTED=qi;gr.EXITED=Tr;gr.ENTERING=ar;gr.ENTERED=Cr;gr.EXITING=Ws;const li=!!(typeof window<"u"&&window.document&&window.document.createElement);var Cd=!1,kd=!1;try{var El={get passive(){return Cd=!0},get once(){return kd=Cd=!0}};li&&(window.addEventListener("test",El,El),window.removeEventListener("test",El,!0))}catch{}function Bf(e,t,n,r){if(r&&typeof r!="boolean"&&!kd){var a=r.once,i=r.capture,o=n;!kd&&a&&(o=n.__once||function s(c){this.removeEventListener(t,s,i),n.call(this,c)},n.__once=o),e.addEventListener(t,o,Cd?r:i)}e.addEventListener(t,n,r)}function Sd(e,t,n,r){var a=r&&typeof r!="boolean"?r.capture:r;e.removeEventListener(t,n,a),n.__once&&e.removeEventListener(t,n.__once,a)}function or(e,t,n,r){return Bf(e,t,n,r),function(){Sd(e,t,n,r)}}function NT(e,t,n,r){if(r===void 0&&(r=!0),e){var a=document.createEvent("HTMLEvents");a.initEvent(t,n,r),e.dispatchEvent(a)}}function FT(e){var t=Mr(e,"transitionDuration")||"",n=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*n}function LT(e,t,n){n===void 0&&(n=5);var r=!1,a=setTimeout(function(){r||NT(e,"transitionend",!0)},t+n),i=or(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(a),i()}}function ly(e,t,n,r){n==null&&(n=FT(e)||0);var a=LT(e,n,r),i=or(e,"transitionend",t);return function(){a(),i()}}function Cm(e,t){const n=Mr(e,t)||"",r=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*r}function dy(e,t){const n=Cm(e,"transitionDuration"),r=Cm(e,"transitionDelay"),a=ly(e,i=>{i.target===e&&(a(),t(i))},n+r)}function fy(e){e.offsetHeight}const km=e=>!e||typeof e=="function"?e:t=>{e.current=t};function UT(e,t){const n=km(e),r=km(t);return a=>{n&&n(a),r&&r(a)}}function $n(e,t){return p.useMemo(()=>UT(e,t),[e,t])}function Bs(e){return e&&"setState"in e?Or.findDOMNode(e):e??null}const hy=p.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:a,onExited:i,addEndListener:o,children:s,childRef:c,...u},l)=>{const d=p.useRef(null),f=$n(d,c),h=C=>{f(Bs(C))},g=C=>$=>{C&&d.current&&C(d.current,$)},v=p.useCallback(g(e),[e]),m=p.useCallback(g(t),[t]),_=p.useCallback(g(n),[n]),w=p.useCallback(g(r),[r]),b=p.useCallback(g(a),[a]),T=p.useCallback(g(i),[i]),x=p.useCallback(g(o),[o]);return y.jsx(gr,{ref:l,...u,onEnter:v,onEntered:_,onEntering:m,onExit:w,onExited:T,onExiting:b,addEndListener:x,nodeRef:d,children:typeof s=="function"?(C,$)=>s(C,{...$,ref:h}):p.cloneElement(s,{ref:h})})});function WT(e){const t=p.useRef(e);return p.useEffect(()=>{t.current=e},[e]),t}function bt(e){const t=WT(e);return p.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const py=e=>ie.forwardRef((t,n)=>y.jsx("div",{...t,ref:n,className:oe(t.className,e)}));function zs(){return p.useState(null)}function BT(e,t,n,r=!1){const a=bt(n);p.useEffect(()=>{const i=typeof e=="function"?e():e;return i.addEventListener(t,a,r),()=>i.removeEventListener(t,a,r)},[e])}function zf(){const e=p.useRef(!0),t=p.useRef(()=>e.current);return p.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function my(e){const t=p.useRef(null);return p.useEffect(()=>{t.current=e}),t.current}const zT=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",HT=typeof document<"u",ao=HT||zT?p.useLayoutEffect:p.useEffect,VT=["as","disabled"];function qT(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 YT(e){return!e||e.trim()==="#"}function Hf({tagName:e,disabled:t,href:n,target:r,rel:a,role:i,onClick:o,tabIndex:s=0,type:c}){e||(n!=null||r!=null||a!=null?e="a":e="button");const u={tagName:e};if(e==="button")return[{type:c||"button",disabled:t},u];const l=f=>{if((t||e==="a"&&YT(n))&&f.preventDefault(),t){f.stopPropagation();return}o==null||o(f)},d=f=>{f.key===" "&&(f.preventDefault(),l(f))};return e==="a"&&(n||(n="#"),t&&(n=void 0)),[{role:i??"button",disabled:void 0,tabIndex:t?void 0:s,href:n,target:e==="a"?r:void 0,"aria-disabled":t||void 0,rel:e==="a"?a:void 0,onClick:l,onKeyDown:d},u]}const Vf=ie.forwardRef((e,t)=>{let{as:n,disabled:r}=e,a=qT(e,VT);const[i,{tagName:o}]=Hf(Object.assign({tagName:n,disabled:r},a));return y.jsx(o,Object.assign({},a,i,{ref:t}))});Vf.displayName="Button";const GT=["onKeyDown"];function ZT(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 KT(e){return!e||e.trim()==="#"}const qf=ie.forwardRef((e,t)=>{let{onKeyDown:n}=e,r=ZT(e,GT);const[a]=Hf(Object.assign({tagName:"a"},r)),i=bt(o=>{a.onKeyDown(o),n==null||n(o)});return KT(r.href)||r.role==="button"?y.jsx("a",Object.assign({ref:t},r,a,{onKeyDown:i})):y.jsx("a",Object.assign({ref:t},r,{onKeyDown:n}))});qf.displayName="Anchor";const XT={[ar]:"show",[Cr]:"show"},Ya=ie.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:r,...a},i)=>{const o={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...a},s=p.useCallback((c,u)=>{fy(c),r==null||r(c,u)},[r]);return y.jsx(hy,{ref:i,addEndListener:dy,...o,onEnter:s,childRef:t.ref,children:(c,u)=>ie.cloneElement(t,{...u,className:oe("fade",e,t.props.className,XT[c],n[c])})})});Ya.displayName="Fade";const JT={"aria-label":O.string,onClick:O.func,variant:O.oneOf(["white"])},Fc=ie.forwardRef(({className:e,variant:t,"aria-label":n="Close",...r},a)=>y.jsx("button",{ref:a,type:"button",className:oe("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r}));Fc.displayName="CloseButton";Fc.propTypes=JT;const Yf=ie.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:r,active:a=!1,disabled:i=!1,className:o,...s},c)=>{const u=Le(t,"btn"),[l,{tagName:d}]=Hf({tagName:e,disabled:i,...s}),f=d;return y.jsx(f,{...l,...s,ref:c,disabled:i,className:oe(o,u,a&&"active",n&&`${u}-${n}`,r&&`${u}-${r}`,s.href&&i&&"disabled")})});Yf.displayName="Button";function QT(e){const t=p.useRef(e);return t.current=e,t}function Gf(e){const t=QT(e);p.useEffect(()=>()=>t.current(),[])}const Od=2**31-1;function gy(e,t,n){const r=n-Date.now();e.current=r<=Od?setTimeout(t,r):setTimeout(()=>gy(e,t,n),Od)}function e3(){const e=zf(),t=p.useRef();return Gf(()=>clearTimeout(t.current)),p.useMemo(()=>{const n=()=>clearTimeout(t.current);function r(a,i=0){e()&&(n(),i<=Od?t.current=setTimeout(a,i):gy(t,a,Date.now()+i))}return{set:r,clear:n,handleRef:t}},[])}function t3(e,t){return ie.Children.toArray(e).some(n=>ie.isValidElement(n)&&n.type===t)}function vy({as:e,bsPrefix:t,className:n,...r}){t=Le(t,"col");const a=vT(),i=yT(),o=[],s=[];return a.forEach(c=>{const u=r[c];delete r[c];let l,d,f;typeof u=="object"&&u!=null?{span:l,offset:d,order:f}=u:l=u;const h=c!==i?`-${c}`:"";l&&o.push(l===!0?`${t}${h}`:`${t}${h}-${l}`),f!=null&&s.push(`order${h}-${f}`),d!=null&&s.push(`offset${h}-${d}`)}),[{...r,className:oe(n,...o,...s)},{as:e,bsPrefix:t,spans:o}]}const yy=ie.forwardRef((e,t)=>{const[{className:n,...r},{as:a="div",bsPrefix:i,spans:o}]=vy(e);return y.jsx(a,{...r,ref:t,className:oe(n,!o.length&&i)})});yy.displayName="Col";var n3=Function.prototype.bind.call(Function.prototype.call,[].slice);function ir(e,t){return n3(e.querySelectorAll(t))}function r3(e,t,n){const r=p.useRef(e!==void 0),[a,i]=p.useState(t),o=e!==void 0,s=r.current;return r.current=o,!o&&s&&a!==t&&i(t),[o?e:a,p.useCallback((...c)=>{const[u,...l]=c;let d=n==null?void 0:n(u,...l);return i(u),d},[n])]}function by(){const[,e]=p.useReducer(t=>!t,!1);return e}const Lc=ie.createContext(null);var Sm=Object.prototype.hasOwnProperty;function Om(e,t,n){for(n of e.keys())if(Xi(n,t))return n}function Xi(e,t){var n,r,a;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&Xi(e[r],t[r]););return r===-1}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if(a=r,a&&typeof a=="object"&&(a=Om(t,a),!a)||!t.has(a))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if(a=r[0],a&&typeof a=="object"&&(a=Om(t,a),!a)||!Xi(r[1],t.get(a)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return r===-1}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(Sm.call(e,n)&&++r&&!Sm.call(t,n)||!(n in t)||!Xi(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function a3(e){const t=zf();return[e[0],p.useCallback(n=>{if(t())return e[1](n)},[t,e[1]])]}var an="top",On="bottom",En="right",on="left",Zf="auto",zo=[an,On,En,on],Ga="start",io="end",i3="clippingParents",xy="viewport",Ai="popper",o3="reference",Em=zo.reduce(function(e,t){return e.concat([t+"-"+Ga,t+"-"+io])},[]),_y=[].concat(zo,[Zf]).reduce(function(e,t){return e.concat([t,t+"-"+Ga,t+"-"+io])},[]),s3="beforeRead",c3="read",u3="afterRead",l3="beforeMain",d3="main",f3="afterMain",h3="beforeWrite",p3="write",m3="afterWrite",g3=[s3,c3,u3,l3,d3,f3,h3,p3,m3];function Hn(e){return e.split("-")[0]}function vn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ca(e){var t=vn(e).Element;return e instanceof t||e instanceof Element}function Vn(e){var t=vn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Kf(e){if(typeof ShadowRoot>"u")return!1;var t=vn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var ta=Math.max,Hs=Math.min,Za=Math.round;function Ed(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function wy(){return!/^((?!chrome|android).)*safari/i.test(Ed())}function Ka(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),a=1,i=1;t&&Vn(e)&&(a=e.offsetWidth>0&&Za(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Za(r.height)/e.offsetHeight||1);var o=ca(e)?vn(e):window,s=o.visualViewport,c=!wy()&&n,u=(r.left+(c&&s?s.offsetLeft:0))/a,l=(r.top+(c&&s?s.offsetTop:0))/i,d=r.width/a,f=r.height/i;return{width:d,height:f,top:l,right:u+d,bottom:l+f,left:u,x:u,y:l}}function Xf(e){var t=Ka(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Ty(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Kf(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ar(e){return e?(e.nodeName||"").toLowerCase():null}function lr(e){return vn(e).getComputedStyle(e)}function v3(e){return["table","td","th"].indexOf(Ar(e))>=0}function Ur(e){return((ca(e)?e.ownerDocument:e.document)||window.document).documentElement}function Uc(e){return Ar(e)==="html"?e:e.assignedSlot||e.parentNode||(Kf(e)?e.host:null)||Ur(e)}function $m(e){return!Vn(e)||lr(e).position==="fixed"?null:e.offsetParent}function y3(e){var t=/firefox/i.test(Ed()),n=/Trident/i.test(Ed());if(n&&Vn(e)){var r=lr(e);if(r.position==="fixed")return null}var a=Uc(e);for(Kf(a)&&(a=a.host);Vn(a)&&["html","body"].indexOf(Ar(a))<0;){var i=lr(a);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return a;a=a.parentNode}return null}function Ho(e){for(var t=vn(e),n=$m(e);n&&v3(n)&&lr(n).position==="static";)n=$m(n);return n&&(Ar(n)==="html"||Ar(n)==="body"&&lr(n).position==="static")?t:n||y3(e)||t}function Jf(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ji(e,t,n){return ta(e,Hs(t,n))}function b3(e,t,n){var r=Ji(e,t,n);return r>n?n:r}function Cy(){return{top:0,right:0,bottom:0,left:0}}function ky(e){return Object.assign({},Cy(),e)}function Sy(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var x3=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,ky(typeof t!="number"?t:Sy(t,zo))};function _3(e){var t,n=e.state,r=e.name,a=e.options,i=n.elements.arrow,o=n.modifiersData.popperOffsets,s=Hn(n.placement),c=Jf(s),u=[on,En].indexOf(s)>=0,l=u?"height":"width";if(!(!i||!o)){var d=x3(a.padding,n),f=Xf(i),h=c==="y"?an:on,g=c==="y"?On:En,v=n.rects.reference[l]+n.rects.reference[c]-o[c]-n.rects.popper[l],m=o[c]-n.rects.reference[c],_=Ho(i),w=_?c==="y"?_.clientHeight||0:_.clientWidth||0:0,b=v/2-m/2,T=d[h],x=w-f[l]-d[g],C=w/2-f[l]/2+b,$=Ji(T,C,x),A=c;n.modifiersData[r]=(t={},t[A]=$,t.centerOffset=$-C,t)}}function w3(e){var t=e.state,n=e.options,r=n.element,a=r===void 0?"[data-popper-arrow]":r;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||Ty(t.elements.popper,a)&&(t.elements.arrow=a))}const T3={name:"arrow",enabled:!0,phase:"main",fn:_3,effect:w3,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Xa(e){return e.split("-")[1]}var C3={top:"auto",right:"auto",bottom:"auto",left:"auto"};function k3(e,t){var n=e.x,r=e.y,a=t.devicePixelRatio||1;return{x:Za(n*a)/a||0,y:Za(r*a)/a||0}}function Mm(e){var t,n=e.popper,r=e.popperRect,a=e.placement,i=e.variation,o=e.offsets,s=e.position,c=e.gpuAcceleration,u=e.adaptive,l=e.roundOffsets,d=e.isFixed,f=o.x,h=f===void 0?0:f,g=o.y,v=g===void 0?0:g,m=typeof l=="function"?l({x:h,y:v}):{x:h,y:v};h=m.x,v=m.y;var _=o.hasOwnProperty("x"),w=o.hasOwnProperty("y"),b=on,T=an,x=window;if(u){var C=Ho(n),$="clientHeight",A="clientWidth";if(C===vn(n)&&(C=Ur(n),lr(C).position!=="static"&&s==="absolute"&&($="scrollHeight",A="scrollWidth")),C=C,a===an||(a===on||a===En)&&i===io){T=On;var D=d&&C===x&&x.visualViewport?x.visualViewport.height:C[$];v-=D-r.height,v*=c?1:-1}if(a===on||(a===an||a===On)&&i===io){b=En;var j=d&&C===x&&x.visualViewport?x.visualViewport.width:C[A];h-=j-r.width,h*=c?1:-1}}var E=Object.assign({position:s},u&&C3),F=l===!0?k3({x:h,y:v},vn(n)):{x:h,y:v};if(h=F.x,v=F.y,c){var M;return Object.assign({},E,(M={},M[T]=w?"0":"",M[b]=_?"0":"",M.transform=(x.devicePixelRatio||1)<=1?"translate("+h+"px, "+v+"px)":"translate3d("+h+"px, "+v+"px, 0)",M))}return Object.assign({},E,(t={},t[T]=w?v+"px":"",t[b]=_?h+"px":"",t.transform="",t))}function S3(e){var t=e.state,n=e.options,r=n.gpuAcceleration,a=r===void 0?!0:r,i=n.adaptive,o=i===void 0?!0:i,s=n.roundOffsets,c=s===void 0?!0:s,u={placement:Hn(t.placement),variation:Xa(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Mm(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Mm(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const O3={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:S3,data:{}};var ds={passive:!0};function E3(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,i=a===void 0?!0:a,o=r.resize,s=o===void 0?!0:o,c=vn(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(l){l.addEventListener("scroll",n.update,ds)}),s&&c.addEventListener("resize",n.update,ds),function(){i&&u.forEach(function(l){l.removeEventListener("scroll",n.update,ds)}),s&&c.removeEventListener("resize",n.update,ds)}}const $3={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:E3,data:{}};var M3={left:"right",right:"left",bottom:"top",top:"bottom"};function Es(e){return e.replace(/left|right|bottom|top/g,function(t){return M3[t]})}var R3={start:"end",end:"start"};function Rm(e){return e.replace(/start|end/g,function(t){return R3[t]})}function Qf(e){var t=vn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function eh(e){return Ka(Ur(e)).left+Qf(e).scrollLeft}function A3(e,t){var n=vn(e),r=Ur(e),a=n.visualViewport,i=r.clientWidth,o=r.clientHeight,s=0,c=0;if(a){i=a.width,o=a.height;var u=wy();(u||!u&&t==="fixed")&&(s=a.offsetLeft,c=a.offsetTop)}return{width:i,height:o,x:s+eh(e),y:c}}function j3(e){var t,n=Ur(e),r=Qf(e),a=(t=e.ownerDocument)==null?void 0:t.body,i=ta(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),o=ta(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),s=-r.scrollLeft+eh(e),c=-r.scrollTop;return lr(a||n).direction==="rtl"&&(s+=ta(n.clientWidth,a?a.clientWidth:0)-i),{width:i,height:o,x:s,y:c}}function th(e){var t=lr(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function Oy(e){return["html","body","#document"].indexOf(Ar(e))>=0?e.ownerDocument.body:Vn(e)&&th(e)?e:Oy(Uc(e))}function Qi(e,t){var n;t===void 0&&(t=[]);var r=Oy(e),a=r===((n=e.ownerDocument)==null?void 0:n.body),i=vn(r),o=a?[i].concat(i.visualViewport||[],th(r)?r:[]):r,s=t.concat(o);return a?s:s.concat(Qi(Uc(o)))}function $d(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function P3(e,t){var n=Ka(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Am(e,t,n){return t===xy?$d(A3(e,n)):ca(t)?P3(t,n):$d(j3(Ur(e)))}function D3(e){var t=Qi(Uc(e)),n=["absolute","fixed"].indexOf(lr(e).position)>=0,r=n&&Vn(e)?Ho(e):e;return ca(r)?t.filter(function(a){return ca(a)&&Ty(a,r)&&Ar(a)!=="body"}):[]}function I3(e,t,n,r){var a=t==="clippingParents"?D3(e):[].concat(t),i=[].concat(a,[n]),o=i[0],s=i.reduce(function(c,u){var l=Am(e,u,r);return c.top=ta(l.top,c.top),c.right=Hs(l.right,c.right),c.bottom=Hs(l.bottom,c.bottom),c.left=ta(l.left,c.left),c},Am(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Ey(e){var t=e.reference,n=e.element,r=e.placement,a=r?Hn(r):null,i=r?Xa(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(a){case an:c={x:o,y:t.y-n.height};break;case On:c={x:o,y:t.y+t.height};break;case En:c={x:t.x+t.width,y:s};break;case on:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var u=a?Jf(a):null;if(u!=null){var l=u==="y"?"height":"width";switch(i){case Ga:c[u]=c[u]-(t[l]/2-n[l]/2);break;case io:c[u]=c[u]+(t[l]/2-n[l]/2);break}}return c}function oo(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=r===void 0?e.placement:r,i=n.strategy,o=i===void 0?e.strategy:i,s=n.boundary,c=s===void 0?i3:s,u=n.rootBoundary,l=u===void 0?xy:u,d=n.elementContext,f=d===void 0?Ai:d,h=n.altBoundary,g=h===void 0?!1:h,v=n.padding,m=v===void 0?0:v,_=ky(typeof m!="number"?m:Sy(m,zo)),w=f===Ai?o3:Ai,b=e.rects.popper,T=e.elements[g?w:f],x=I3(ca(T)?T:T.contextElement||Ur(e.elements.popper),c,l,o),C=Ka(e.elements.reference),$=Ey({reference:C,element:b,strategy:"absolute",placement:a}),A=$d(Object.assign({},b,$)),D=f===Ai?A:C,j={top:x.top-D.top+_.top,bottom:D.bottom-x.bottom+_.bottom,left:x.left-D.left+_.left,right:D.right-x.right+_.right},E=e.modifiersData.offset;if(f===Ai&&E){var F=E[a];Object.keys(j).forEach(function(M){var R=[En,On].indexOf(M)>=0?1:-1,I=[an,On].indexOf(M)>=0?"y":"x";j[M]+=F[I]*R})}return j}function N3(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=n.boundary,i=n.rootBoundary,o=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?_y:c,l=Xa(r),d=l?s?Em:Em.filter(function(g){return Xa(g)===l}):zo,f=d.filter(function(g){return u.indexOf(g)>=0});f.length===0&&(f=d);var h=f.reduce(function(g,v){return g[v]=oo(e,{placement:v,boundary:a,rootBoundary:i,padding:o})[Hn(v)],g},{});return Object.keys(h).sort(function(g,v){return h[g]-h[v]})}function F3(e){if(Hn(e)===Zf)return[];var t=Es(e);return[Rm(e),t,Rm(t)]}function L3(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,i=a===void 0?!0:a,o=n.altAxis,s=o===void 0?!0:o,c=n.fallbackPlacements,u=n.padding,l=n.boundary,d=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,g=h===void 0?!0:h,v=n.allowedAutoPlacements,m=t.options.placement,_=Hn(m),w=_===m,b=c||(w||!g?[Es(m)]:F3(m)),T=[m].concat(b).reduce(function(Y,Q){return Y.concat(Hn(Q)===Zf?N3(t,{placement:Q,boundary:l,rootBoundary:d,padding:u,flipVariations:g,allowedAutoPlacements:v}):Q)},[]),x=t.rects.reference,C=t.rects.popper,$=new Map,A=!0,D=T[0],j=0;j<T.length;j++){var E=T[j],F=Hn(E),M=Xa(E)===Ga,R=[an,On].indexOf(F)>=0,I=R?"width":"height",U=oo(t,{placement:E,boundary:l,rootBoundary:d,altBoundary:f,padding:u}),N=R?M?En:on:M?On:an;x[I]>C[I]&&(N=Es(N));var q=Es(N),z=[];if(i&&z.push(U[F]<=0),s&&z.push(U[N]<=0,U[q]<=0),z.every(function(Y){return Y})){D=E,A=!1;break}$.set(E,z)}if(A)for(var P=g?3:1,B=function(Q){var G=T.find(function(J){var re=$.get(J);if(re)return re.slice(0,Q).every(function(L){return L})});if(G)return D=G,"break"},Z=P;Z>0;Z--){var ne=B(Z);if(ne==="break")break}t.placement!==D&&(t.modifiersData[r]._skip=!0,t.placement=D,t.reset=!0)}}const U3={name:"flip",enabled:!0,phase:"main",fn:L3,requiresIfExists:["offset"],data:{_skip:!1}};function jm(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Pm(e){return[an,En,On,on].some(function(t){return e[t]>=0})}function W3(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,i=t.modifiersData.preventOverflow,o=oo(t,{elementContext:"reference"}),s=oo(t,{altBoundary:!0}),c=jm(o,r),u=jm(s,a,i),l=Pm(c),d=Pm(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:l,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":d})}const B3={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:W3};function z3(e,t,n){var r=Hn(e),a=[on,an].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=i[0],s=i[1];return o=o||0,s=(s||0)*a,[on,En].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function H3(e){var t=e.state,n=e.options,r=e.name,a=n.offset,i=a===void 0?[0,0]:a,o=_y.reduce(function(l,d){return l[d]=z3(d,t.rects,i),l},{}),s=o[t.placement],c=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=o}const V3={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:H3};function q3(e){var t=e.state,n=e.name;t.modifiersData[n]=Ey({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Y3={name:"popperOffsets",enabled:!0,phase:"read",fn:q3,data:{}};function G3(e){return e==="x"?"y":"x"}function Z3(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,i=a===void 0?!0:a,o=n.altAxis,s=o===void 0?!1:o,c=n.boundary,u=n.rootBoundary,l=n.altBoundary,d=n.padding,f=n.tether,h=f===void 0?!0:f,g=n.tetherOffset,v=g===void 0?0:g,m=oo(t,{boundary:c,rootBoundary:u,padding:d,altBoundary:l}),_=Hn(t.placement),w=Xa(t.placement),b=!w,T=Jf(_),x=G3(T),C=t.modifiersData.popperOffsets,$=t.rects.reference,A=t.rects.popper,D=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,j=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,F={x:0,y:0};if(C){if(i){var M,R=T==="y"?an:on,I=T==="y"?On:En,U=T==="y"?"height":"width",N=C[T],q=N+m[R],z=N-m[I],P=h?-A[U]/2:0,B=w===Ga?$[U]:A[U],Z=w===Ga?-A[U]:-$[U],ne=t.elements.arrow,Y=h&&ne?Xf(ne):{width:0,height:0},Q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Cy(),G=Q[R],J=Q[I],re=Ji(0,$[U],Y[U]),L=b?$[U]/2-P-re-G-j.mainAxis:B-re-G-j.mainAxis,V=b?-$[U]/2+P+re+J+j.mainAxis:Z+re+J+j.mainAxis,ae=t.elements.arrow&&Ho(t.elements.arrow),k=ae?T==="y"?ae.clientTop||0:ae.clientLeft||0:0,ge=(M=E==null?void 0:E[T])!=null?M:0,pe=N+L-ge-k,de=N+V-ge,Ae=Ji(h?Hs(q,pe):q,N,h?ta(z,de):z);C[T]=Ae,F[T]=Ae-N}if(s){var Pe,ft=T==="x"?an:on,gt=T==="x"?On:En,Be=C[x],rt=x==="y"?"height":"width",Ze=Be+m[ft],xt=Be-m[gt],_t=[an,on].indexOf(_)!==-1,at=(Pe=E==null?void 0:E[x])!=null?Pe:0,xe=_t?Ze:Be-$[rt]-A[rt]-at+j.altAxis,Xe=_t?Be+$[rt]+A[rt]-at-j.altAxis:xt,Tt=h&&_t?b3(xe,Be,Xe):Ji(h?xe:Ze,Be,h?Xe:xt);C[x]=Tt,F[x]=Tt-Be}t.modifiersData[r]=F}}const K3={name:"preventOverflow",enabled:!0,phase:"main",fn:Z3,requiresIfExists:["offset"]};function X3(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function J3(e){return e===vn(e)||!Vn(e)?Qf(e):X3(e)}function Q3(e){var t=e.getBoundingClientRect(),n=Za(t.width)/e.offsetWidth||1,r=Za(t.height)/e.offsetHeight||1;return n!==1||r!==1}function eC(e,t,n){n===void 0&&(n=!1);var r=Vn(t),a=Vn(t)&&Q3(t),i=Ur(t),o=Ka(e,a,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Ar(t)!=="body"||th(i))&&(s=J3(t)),Vn(t)?(c=Ka(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=eh(i))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function tC(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function a(i){n.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(s){if(!n.has(s)){var c=t.get(s);c&&a(c)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||a(i)}),r}function nC(e){var t=tC(e);return g3.reduce(function(n,r){return n.concat(t.filter(function(a){return a.phase===r}))},[])}function rC(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function aC(e){var t=e.reduce(function(n,r){var a=n[r.name];return n[r.name]=a?Object.assign({},a,r,{options:Object.assign({},a.options,r.options),data:Object.assign({},a.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Dm={placement:"bottom",modifiers:[],strategy:"absolute"};function Im(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function iC(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,a=t.defaultOptions,i=a===void 0?Dm:a;return function(s,c,u){u===void 0&&(u=i);var l={placement:"bottom",orderedModifiers:[],options:Object.assign({},Dm,i),modifiersData:{},elements:{reference:s,popper:c},attributes:{},styles:{}},d=[],f=!1,h={state:l,setOptions:function(_){var w=typeof _=="function"?_(l.options):_;v(),l.options=Object.assign({},i,l.options,w),l.scrollParents={reference:ca(s)?Qi(s):s.contextElement?Qi(s.contextElement):[],popper:Qi(c)};var b=nC(aC([].concat(r,l.options.modifiers)));return l.orderedModifiers=b.filter(function(T){return T.enabled}),g(),h.update()},forceUpdate:function(){if(!f){var _=l.elements,w=_.reference,b=_.popper;if(Im(w,b)){l.rects={reference:eC(w,Ho(b),l.options.strategy==="fixed"),popper:Xf(b)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach(function(j){return l.modifiersData[j.name]=Object.assign({},j.data)});for(var T=0;T<l.orderedModifiers.length;T++){if(l.reset===!0){l.reset=!1,T=-1;continue}var x=l.orderedModifiers[T],C=x.fn,$=x.options,A=$===void 0?{}:$,D=x.name;typeof C=="function"&&(l=C({state:l,options:A,name:D,instance:h})||l)}}}},update:rC(function(){return new Promise(function(m){h.forceUpdate(),m(l)})}),destroy:function(){v(),f=!0}};if(!Im(s,c))return h;h.setOptions(u).then(function(m){!f&&u.onFirstUpdate&&u.onFirstUpdate(m)});function g(){l.orderedModifiers.forEach(function(m){var _=m.name,w=m.options,b=w===void 0?{}:w,T=m.effect;if(typeof T=="function"){var x=T({state:l,name:_,instance:h,options:b}),C=function(){};d.push(x||C)}})}function v(){d.forEach(function(m){return m()}),d=[]}return h}}const oC=iC({defaultModifiers:[B3,Y3,O3,$3,V3,U3,K3,T3]}),sC=["enabled","placement","strategy","modifiers"];function cC(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}const uC={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},lC={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:n}=e.elements;if("removeAttribute"in t){const r=(t.getAttribute("aria-describedby")||"").split(",").filter(a=>a.trim()!==n.id);r.length?t.setAttribute("aria-describedby",r.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:n,reference:r}=e.elements,a=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();if(n.id&&a==="tooltip"&&"setAttribute"in r){const i=r.getAttribute("aria-describedby");if(i&&i.split(",").indexOf(n.id)!==-1)return;r.setAttribute("aria-describedby",i?`${i},${n.id}`:n.id)}}},dC=[];function $y(e,t,n={}){let{enabled:r=!0,placement:a="bottom",strategy:i="absolute",modifiers:o=dC}=n,s=cC(n,sC);const c=p.useRef(o),u=p.useRef(),l=p.useCallback(()=>{var m;(m=u.current)==null||m.update()},[]),d=p.useCallback(()=>{var m;(m=u.current)==null||m.forceUpdate()},[]),[f,h]=a3(p.useState({placement:a,update:l,forceUpdate:d,attributes:{},styles:{popper:{},arrow:{}}})),g=p.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:m})=>{const _={},w={};Object.keys(m.elements).forEach(b=>{_[b]=m.styles[b],w[b]=m.attributes[b]}),h({state:m,styles:_,attributes:w,update:l,forceUpdate:d,placement:m.placement})}}),[l,d,h]),v=p.useMemo(()=>(Xi(c.current,o)||(c.current=o),c.current),[o]);return p.useEffect(()=>{!u.current||!r||u.current.setOptions({placement:a,strategy:i,modifiers:[...v,g,uC]})},[i,a,g,r,v]),p.useEffect(()=>{if(!(!r||e==null||t==null))return u.current=oC(e,t,Object.assign({},s,{placement:a,strategy:i,modifiers:[...v,lC,g]})),()=>{u.current!=null&&(u.current.destroy(),u.current=void 0,h(m=>Object.assign({},m,{attributes:{},styles:{popper:{}}})))}},[r,e,t]),f}function so(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}var fC=process.env.NODE_ENV!=="production",My=function(){};if(fC){var hC=function(t,n){var r=arguments.length;n=new Array(r>1?r-1:0);for(var a=1;a<r;a++)n[a-1]=arguments[a];var i=0,o="Warning: "+t.replace(/%s/g,function(){return n[i++]});typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}};My=function(e,t,n){var r=arguments.length;n=new Array(r>2?r-2:0);for(var a=2;a<r;a++)n[a-2]=arguments[a];if(t===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");e||hC.apply(null,[t].concat(n))}}var pC=My;const di=Mt(pC),Nm=()=>{};function mC(e){return e.button===0}function gC(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const $s=e=>e&&("current"in e?e.current:e),Fm={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function Ry(e,t=Nm,{disabled:n,clickTrigger:r="click"}={}){const a=p.useRef(!1),i=p.useRef(!1),o=p.useCallback(u=>{const l=$s(e);di(!!l,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),a.current=!l||gC(u)||!mC(u)||!!so(l,u.target)||i.current,i.current=!1},[e]),s=bt(u=>{const l=$s(e);l&&so(l,u.target)&&(i.current=!0)}),c=bt(u=>{a.current||t(u)});p.useEffect(()=>{var u,l;if(n||e==null)return;const d=ui($s(e)),f=d.defaultView||window;let h=(u=f.event)!=null?u:(l=f.parent)==null?void 0:l.event,g=null;Fm[r]&&(g=or(d,Fm[r],s,!0));const v=or(d,r,o,!0),m=or(d,r,w=>{if(w===h){h=void 0;return}c(w)});let _=[];return"ontouchstart"in d.documentElement&&(_=[].slice.call(d.body.children).map(w=>or(w,"mousemove",Nm))),()=>{g==null||g(),v(),m(),_.forEach(w=>w())}},[e,n,r,o,s,c])}function vC(e){const t={};return Array.isArray(e)?(e==null||e.forEach(n=>{t[n.name]=n}),t):e||t}function yC(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function Ay({enabled:e,enableEvents:t,placement:n,flip:r,offset:a,fixed:i,containerPadding:o,arrowElement:s,popperConfig:c={}}){var u,l,d,f,h;const g=vC(c.modifiers);return Object.assign({},c,{placement:n,enabled:e,strategy:i?"fixed":c.strategy,modifiers:yC(Object.assign({},g,{eventListeners:{enabled:t,options:(u=g.eventListeners)==null?void 0:u.options},preventOverflow:Object.assign({},g.preventOverflow,{options:o?Object.assign({padding:o},(l=g.preventOverflow)==null?void 0:l.options):(d=g.preventOverflow)==null?void 0:d.options}),offset:{options:Object.assign({offset:a},(f=g.offset)==null?void 0:f.options)},arrow:Object.assign({},g.arrow,{enabled:!!s,options:Object.assign({},(h=g.arrow)==null?void 0:h.options,{element:s})}),flip:Object.assign({enabled:!!r},g.flip)}))})}const bC=["children","usePopper"];function xC(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}const _C=()=>{};function jy(e={}){const t=p.useContext(Lc),[n,r]=zs(),a=p.useRef(!1),{flip:i,offset:o,rootCloseEvent:s,fixed:c=!1,placement:u,popperConfig:l={},enableEventListeners:d=!0,usePopper:f=!!t}=e,h=(t==null?void 0:t.show)==null?!!e.show:t.show;h&&!a.current&&(a.current=!0);const g=C=>{t==null||t.toggle(!1,C)},{placement:v,setMenu:m,menuElement:_,toggleElement:w}=t||{},b=$y(w,_,Ay({placement:u||v||"bottom-start",enabled:f,enableEvents:d??h,offset:o,flip:i,fixed:c,arrowElement:n,popperConfig:l})),T=Object.assign({ref:m||_C,"aria-labelledby":w==null?void 0:w.id},b.attributes.popper,{style:b.styles.popper}),x={show:h,placement:v,hasShown:a.current,toggle:t==null?void 0:t.toggle,popper:f?b:null,arrowProps:f?Object.assign({ref:r},b.attributes.arrow,{style:b.styles.arrow}):{}};return Ry(_,g,{clickTrigger:s,disabled:!h}),[T,x]}function Py(e){let{children:t,usePopper:n=!0}=e,r=xC(e,bC);const[a,i]=jy(Object.assign({},r,{usePopper:n}));return y.jsx(y.Fragment,{children:t(a,i)})}Py.displayName="DropdownMenu";const Vs={prefix:String(Math.round(Math.random()*1e10)),current:0},Dy=p.createContext(Vs),wC=p.createContext(!1);let TC=!!(typeof window<"u"&&window.document&&window.document.createElement),$l=new WeakMap;function CC(e=!1){let t=p.useContext(Dy),n=p.useRef(null);if(n.current===null&&!e){var r,a;let i=(a=p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||a===void 0||(r=a.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(i){let o=$l.get(i);o==null?$l.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==o.state&&(t.current=o.id,$l.delete(i))}n.current=++t.current}return n.current}function kC(e){let t=p.useContext(Dy);t===Vs&&!TC&&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=CC(!!e),r=t===Vs&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function SC(e){let t=p.useId(),[n]=p.useState(RC()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Vs.prefix}`;return e||`${r}-${t}`}const OC=typeof p.useId=="function"?SC:kC;function EC(){return!1}function $C(){return!0}function MC(e){return()=>{}}function RC(){return typeof p.useSyncExternalStore=="function"?p.useSyncExternalStore(MC,EC,$C):p.useContext(wC)}const Iy=e=>{var t;return((t=e.getAttribute("role"))==null?void 0:t.toLowerCase())==="menu"},Lm=()=>{};function Ny(){const e=OC(),{show:t=!1,toggle:n=Lm,setToggle:r,menuElement:a}=p.useContext(Lc)||{},i=p.useCallback(s=>{n(!t,s)},[t,n]),o={id:e,ref:r||Lm,onClick:i,"aria-expanded":!!t};return a&&Iy(a)&&(o["aria-haspopup"]=!0),[o,{show:t,toggle:n}]}function Fy({children:e}){const[t,n]=Ny();return y.jsx(y.Fragment,{children:e(t,n)})}Fy.displayName="DropdownToggle";const qs=ie.createContext(null),Md=(e,t=null)=>e!=null?String(e):t||null,nh=ie.createContext(null);nh.displayName="NavContext";const AC="data-rr-ui-",jC="rrUi";function Wc(e){return`${AC}${e}`}function PC(e){return`${jC}${e}`}const DC=["eventKey","disabled","onClick","active","as"];function IC(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 Ly({key:e,href:t,active:n,disabled:r,onClick:a}){const i=p.useContext(qs),o=p.useContext(nh),{activeKey:s}=o||{},c=Md(e,t),u=n==null&&e!=null?Md(s)===c:n;return[{onClick:bt(d=>{r||(a==null||a(d),i&&!d.isPropagationStopped()&&i(c,d))}),"aria-disabled":r||void 0,"aria-selected":u,[Wc("dropdown-item")]:""},{isActive:u}]}const Uy=ie.forwardRef((e,t)=>{let{eventKey:n,disabled:r,onClick:a,active:i,as:o=Vf}=e,s=IC(e,DC);const[c]=Ly({key:n,href:s.href,disabled:r,onClick:a,active:i});return y.jsx(o,Object.assign({},s,{ref:t},c))});Uy.displayName="DropdownItem";const Wy=p.createContext(li?window:void 0);Wy.Provider;function Bc(){return p.useContext(Wy)}function Um(){const e=by(),t=p.useRef(null),n=p.useCallback(r=>{t.current=r,e()},[e]);return[t,n]}function Vo({defaultShow:e,show:t,onSelect:n,onToggle:r,itemSelector:a=`* [${Wc("dropdown-item")}]`,focusFirstItemOnShow:i,placement:o="bottom-start",children:s}){const c=Bc(),[u,l]=r3(t,e,r),[d,f]=Um(),h=d.current,[g,v]=Um(),m=g.current,_=my(u),w=p.useRef(null),b=p.useRef(!1),T=p.useContext(qs),x=p.useCallback((E,F,M=F==null?void 0:F.type)=>{l(E,{originalEvent:F,source:M})},[l]),C=bt((E,F)=>{n==null||n(E,F),x(!1,F,"select"),F.isPropagationStopped()||T==null||T(E,F)}),$=p.useMemo(()=>({toggle:x,placement:o,show:u,menuElement:h,toggleElement:m,setMenu:f,setToggle:v}),[x,o,u,h,m,f,v]);h&&_&&!u&&(b.current=h.contains(h.ownerDocument.activeElement));const A=bt(()=>{m&&m.focus&&m.focus()}),D=bt(()=>{const E=w.current;let F=i;if(F==null&&(F=d.current&&Iy(d.current)?"keyboard":!1),F===!1||F==="keyboard"&&!/^key.+$/.test(E))return;const M=ir(d.current,a)[0];M&&M.focus&&M.focus()});p.useEffect(()=>{u?D():b.current&&(b.current=!1,A())},[u,b,A,D]),p.useEffect(()=>{w.current=null});const j=(E,F)=>{if(!d.current)return null;const M=ir(d.current,a);let R=M.indexOf(E)+F;return R=Math.max(0,Math.min(R,M.length)),M[R]};return BT(p.useCallback(()=>c.document,[c]),"keydown",E=>{var F,M;const{key:R}=E,I=E.target,U=(F=d.current)==null?void 0:F.contains(I),N=(M=g.current)==null?void 0:M.contains(I);if(/input|textarea/i.test(I.tagName)&&(R===" "||R!=="Escape"&&U||R==="Escape"&&I.type==="search")||!U&&!N||R==="Tab"&&(!d.current||!u))return;w.current=E.type;const z={originalEvent:E,source:E.type};switch(R){case"ArrowUp":{const P=j(I,-1);P&&P.focus&&P.focus(),E.preventDefault();return}case"ArrowDown":if(E.preventDefault(),!u)l(!0,z);else{const P=j(I,1);P&&P.focus&&P.focus()}return;case"Tab":Bf(I.ownerDocument,"keyup",P=>{var B;(P.key==="Tab"&&!P.target||!((B=d.current)!=null&&B.contains(P.target)))&&l(!1,z)},{once:!0});break;case"Escape":R==="Escape"&&(E.preventDefault(),E.stopPropagation()),l(!1,z);break}}),y.jsx(qs.Provider,{value:C,children:y.jsx(Lc.Provider,{value:$,children:s})})}Vo.displayName="Dropdown";Vo.Menu=Py;Vo.Toggle=Fy;Vo.Item=Uy;const rh=ie.createContext({});rh.displayName="DropdownContext";const By=ie.forwardRef(({className:e,bsPrefix:t,as:n="hr",role:r="separator",...a},i)=>(t=Le(t,"dropdown-divider"),y.jsx(n,{ref:i,className:oe(e,t),role:r,...a})));By.displayName="DropdownDivider";const zy=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",role:r="heading",...a},i)=>(t=Le(t,"dropdown-header"),y.jsx(n,{ref:i,className:oe(e,t),role:r,...a})));zy.displayName="DropdownHeader";const Hy=ie.forwardRef(({bsPrefix:e,className:t,eventKey:n,disabled:r=!1,onClick:a,active:i,as:o=qf,...s},c)=>{const u=Le(e,"dropdown-item"),[l,d]=Ly({key:n,href:s.href,disabled:r,onClick:a,active:i});return y.jsx(o,{...s,...l,ref:c,className:oe(t,u,d.isActive&&"active",r&&"disabled")})});Hy.displayName="DropdownItem";const Vy=ie.forwardRef(({className:e,bsPrefix:t,as:n="span",...r},a)=>(t=Le(t,"dropdown-item-text"),y.jsx(n,{ref:a,className:oe(e,t),...r})));Vy.displayName="DropdownItemText";const zc=ie.createContext(null);zc.displayName="InputGroupContext";const ah=ie.createContext(null);ah.displayName="NavbarContext";function qy(e,t){if(process.env.NODE_ENV==="production")return e;const n=p.useCallback(r=>{r==null||!r.isReactComponent||(process.env.NODE_ENV!=="production"?fm(!1,`${t} injected a ref to a provided \`as\` component that resolved to a component instance instead of a DOM element. Use \`React.forwardRef\` to provide the injected ref to the class component as a prop in order to pass it directly to a DOM element`):fm(!1))},[t]);return $n(n,e)}function Yy(e,t,n){const r=n?"top-end":"top-start",a=n?"top-start":"top-end",i=n?"bottom-end":"bottom-start",o=n?"bottom-start":"bottom-end",s=n?"right-start":"left-start",c=n?"right-end":"left-end",u=n?"left-start":"right-start",l=n?"left-end":"right-end";let d=e?o:i;return t==="up"?d=e?a:r:t==="end"?d=e?l:u:t==="start"?d=e?c:s:t==="down-centered"?d="bottom":t==="up-centered"&&(d="top"),d}const Gy=ie.forwardRef(({bsPrefix:e,className:t,align:n,rootCloseEvent:r,flip:a=!0,show:i,renderOnMount:o,as:s="div",popperConfig:c,variant:u,...l},d)=>{let f=!1;const h=p.useContext(ah),g=Le(e,"dropdown-menu"),{align:v,drop:m,isRTL:_}=p.useContext(rh);n=n||v;const w=p.useContext(zc),b=[];if(n)if(typeof n=="object"){const E=Object.keys(n);if(process.env.NODE_ENV!=="production"&&di(E.length===1,"There should only be 1 breakpoint when passing an object to `align`"),E.length){const F=E[0],M=n[F];f=M==="start",b.push(`${g}-${F}-${M}`)}}else n==="end"&&(f=!0);const T=Yy(f,m,_),[x,{hasShown:C,popper:$,show:A,toggle:D}]=jy({flip:a,rootCloseEvent:r,show:i,usePopper:!h&&b.length===0,offset:[0,2],popperConfig:c,placement:T});if(x.ref=$n(qy(d,"DropdownMenu"),x.ref),ao(()=>{A&&($==null||$.update())},[A]),!C&&!o&&!w)return null;typeof s!="string"&&(x.show=A,x.close=()=>D==null?void 0:D(!1),x.align=n);let j=l.style;return $!=null&&$.placement&&(j={...l.style,...x.style},l["x-placement"]=$.placement),y.jsx(s,{...l,...x,style:j,...(b.length||h)&&{"data-bs-popper":"static"},className:oe(t,g,A&&"show",f&&`${g}-end`,u&&`${g}-${u}`,...b)})});Gy.displayName="DropdownMenu";const Zy=ie.forwardRef(({bsPrefix:e,split:t,className:n,childBsPrefix:r,as:a=Yf,...i},o)=>{const s=Le(e,"dropdown-toggle"),c=p.useContext(Lc);r!==void 0&&(i.bsPrefix=r);const[u]=Ny();return u.ref=$n(u.ref,qy(o,"DropdownToggle")),y.jsx(a,{className:oe(n,s,t&&`${s}-split`,(c==null?void 0:c.show)&&"show"),...u,...i})});Zy.displayName="DropdownToggle";const Ky=ie.forwardRef((e,t)=>{const{bsPrefix:n,drop:r="down",show:a,className:i,align:o="start",onSelect:s,onToggle:c,focusFirstItemOnShow:u,as:l="div",navbar:d,autoClose:f=!0,...h}=oy(e,{show:"onToggle"}),g=p.useContext(zc),v=Le(n,"dropdown"),m=Nc(),_=$=>f===!1?$==="click":f==="inside"?$!=="rootClose":f==="outside"?$!=="select":!0,w=bt(($,A)=>{var D;!((D=A.originalEvent)==null||(D=D.target)==null)&&D.classList.contains("dropdown-toggle")&&A.source==="mousedown"||(A.originalEvent.currentTarget===document&&(A.source!=="keydown"||A.originalEvent.key==="Escape")&&(A.source="rootClose"),_(A.source)&&(c==null||c($,A)))}),T=Yy(o==="end",r,m),x=p.useMemo(()=>({align:o,drop:r,isRTL:m}),[o,r,m]),C={down:v,"down-centered":`${v}-center`,up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return y.jsx(rh.Provider,{value:x,children:y.jsx(Vo,{placement:T,show:a,onSelect:s,onToggle:w,focusFirstItemOnShow:u,itemSelector:`.${v}-item:not(.disabled):not(:disabled)`,children:g?h.children:y.jsx(l,{...h,ref:t,className:oe(i,a&&"show",C[r])})})})});Ky.displayName="Dropdown";const co=Object.assign(Ky,{Toggle:Zy,Menu:Gy,Item:Hy,ItemText:Vy,Divider:By,Header:zy}),NC={type:O.string,tooltip:O.bool,as:O.elementType},Hc=ie.forwardRef(({as:e="div",className:t,type:n="valid",tooltip:r=!1,...a},i)=>y.jsx(e,{...a,ref:i,className:oe(t,`${n}-${r?"tooltip":"feedback"}`)}));Hc.displayName="Feedback";Hc.propTypes=NC;const dr=ie.createContext({}),Vc=ie.forwardRef(({id:e,bsPrefix:t,className:n,type:r="checkbox",isValid:a=!1,isInvalid:i=!1,as:o="input",...s},c)=>{const{controlId:u}=p.useContext(dr);return t=Le(t,"form-check-input"),y.jsx(o,{...s,ref:c,type:r,id:e||u,className:oe(n,t,a&&"is-valid",i&&"is-invalid")})});Vc.displayName="FormCheckInput";const Ys=ie.forwardRef(({bsPrefix:e,className:t,htmlFor:n,...r},a)=>{const{controlId:i}=p.useContext(dr);return e=Le(e,"form-check-label"),y.jsx("label",{...r,ref:a,htmlFor:n||i,className:oe(t,e)})});Ys.displayName="FormCheckLabel";const Xy=ie.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:n,inline:r=!1,reverse:a=!1,disabled:i=!1,isValid:o=!1,isInvalid:s=!1,feedbackTooltip:c=!1,feedback:u,feedbackType:l,className:d,style:f,title:h="",type:g="checkbox",label:v,children:m,as:_="input",...w},b)=>{t=Le(t,"form-check"),n=Le(n,"form-switch");const{controlId:T}=p.useContext(dr),x=p.useMemo(()=>({controlId:e||T}),[T,e]),C=!m&&v!=null&&v!==!1||t3(m,Ys),$=y.jsx(Vc,{...w,type:g==="switch"?"checkbox":g,ref:b,isValid:o,isInvalid:s,disabled:i,as:_});return y.jsx(dr.Provider,{value:x,children:y.jsx("div",{style:f,className:oe(d,C&&t,r&&`${t}-inline`,a&&`${t}-reverse`,g==="switch"&&n),children:m||y.jsxs(y.Fragment,{children:[$,C&&y.jsx(Ys,{title:h,children:v}),u&&y.jsx(Hc,{type:l,tooltip:c,children:u})]})})})});Xy.displayName="FormCheck";const Gs=Object.assign(Xy,{Input:Vc,Label:Ys}),Jy=ie.forwardRef(({bsPrefix:e,type:t,size:n,htmlSize:r,id:a,className:i,isValid:o=!1,isInvalid:s=!1,plaintext:c,readOnly:u,as:l="input",...d},f)=>{const{controlId:h}=p.useContext(dr);return e=Le(e,"form-control"),process.env.NODE_ENV!=="production"&&di(h==null||!a,"`controlId` is ignored on `<FormControl>` when `id` is specified."),y.jsx(l,{...d,type:t,size:r,ref:f,readOnly:u,id:a||h,className:oe(i,c?`${e}-plaintext`:e,n&&`${e}-${n}`,t==="color"&&`${e}-color`,o&&"is-valid",s&&"is-invalid")})});Jy.displayName="FormControl";const Qy=Object.assign(Jy,{Feedback:Hc}),eb=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},a)=>(t=Le(t,"form-floating"),y.jsx(n,{ref:a,className:oe(e,t),...r})));eb.displayName="FormFloating";const ih=ie.forwardRef(({controlId:e,as:t="div",...n},r)=>{const a=p.useMemo(()=>({controlId:e}),[e]);return y.jsx(dr.Provider,{value:a,children:y.jsx(t,{...n,ref:r})})});ih.displayName="FormGroup";const tb=ie.forwardRef(({as:e="label",bsPrefix:t,column:n=!1,visuallyHidden:r=!1,className:a,htmlFor:i,...o},s)=>{const{controlId:c}=p.useContext(dr);t=Le(t,"form-label");let u="col-form-label";typeof n=="string"&&(u=`${u} ${u}-${n}`);const l=oe(a,t,r&&"visually-hidden",n&&u);return process.env.NODE_ENV!=="production"&&di(c==null||!i,"`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified."),i=i||c,n?y.jsx(yy,{ref:s,as:"label",className:l,htmlFor:i,...o}):y.jsx(e,{ref:s,className:l,htmlFor:i,...o})});tb.displayName="FormLabel";const nb=ie.forwardRef(({bsPrefix:e,className:t,id:n,...r},a)=>{const{controlId:i}=p.useContext(dr);return e=Le(e,"form-range"),y.jsx("input",{...r,type:"range",ref:a,className:oe(t,e),id:n||i})});nb.displayName="FormRange";const oh=ie.forwardRef(({bsPrefix:e,size:t,htmlSize:n,className:r,isValid:a=!1,isInvalid:i=!1,id:o,...s},c)=>{const{controlId:u}=p.useContext(dr);return e=Le(e,"form-select"),y.jsx("select",{...s,size:n,ref:c,className:oe(r,e,t&&`${e}-${t}`,a&&"is-valid",i&&"is-invalid"),id:o||u})});oh.displayName="FormSelect";const rb=ie.forwardRef(({bsPrefix:e,className:t,as:n="small",muted:r,...a},i)=>(e=Le(e,"form-text"),y.jsx(n,{...a,ref:i,className:oe(t,e,r&&"text-muted")})));rb.displayName="FormText";const ab=ie.forwardRef((e,t)=>y.jsx(Gs,{...e,ref:t,type:"switch"}));ab.displayName="Switch";const FC=Object.assign(ab,{Input:Gs.Input,Label:Gs.Label}),sh=ie.forwardRef(({bsPrefix:e,className:t,children:n,controlId:r,label:a,...i},o)=>(e=Le(e,"form-floating"),y.jsxs(ih,{ref:o,className:oe(t,e),controlId:r,...i,children:[n,y.jsx("label",{htmlFor:r,children:a})]})));sh.displayName="FloatingLabel";const LC={_ref:O.any,validated:O.bool,as:O.elementType},ch=ie.forwardRef(({className:e,validated:t,as:n="form",...r},a)=>y.jsx(n,{...r,ref:a,className:oe(e,t&&"was-validated")}));ch.displayName="Form";ch.propTypes=LC;const ya=Object.assign(ch,{Group:ih,Control:Qy,Floating:eb,Check:Gs,Switch:FC,Label:tb,Text:rb,Range:nb,Select:oh,FloatingLabel:sh});var fs;function Wm(e){if((!fs&&fs!==0||e)&&li){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),fs=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return fs}function Ml(e){e===void 0&&(e=ui());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function UC(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const Bm=Wc("modal-open");class uh{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:r=!1}={}){this.handleContainerOverflow=n,this.isRTL=r,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return UC(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const n={overflow:"hidden"},r=this.isRTL?"paddingLeft":"paddingRight",a=this.getElement();t.style={overflow:a.style.overflow,[r]:a.style[r]},t.scrollBarWidth&&(n[r]=`${parseInt(Mr(a,r)||"0",10)+t.scrollBarWidth}px`),a.setAttribute(Bm,""),Mr(a,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(Bm),Object.assign(n.style,t.style)}add(t){let n=this.modals.indexOf(t);return n!==-1||(n=this.modals.length,this.modals.push(t),this.setModalAttributes(t),n!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),n}remove(t){const n=this.modals.indexOf(t);n!==-1&&(this.modals.splice(n,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const Rl=(e,t)=>li?e==null?(t||ui()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function Rd(e,t){const n=Bc(),[r,a]=p.useState(()=>Rl(e,n==null?void 0:n.document));if(!r){const i=Rl(e);i&&a(i)}return p.useEffect(()=>{},[t,r]),p.useEffect(()=>{const i=Rl(e);i!==r&&a(i)},[e,r]),r}function WC({children:e,in:t,onExited:n,mountOnEnter:r,unmountOnExit:a}){const i=p.useRef(null),o=p.useRef(t),s=bt(n);p.useEffect(()=>{t?o.current=!0:s(i.current)},[t,s]);const c=$n(i,e.ref),u=p.cloneElement(e,{ref:c});return t?u:a||!o.current&&r?null:u}function ib(e){return e.code==="Escape"||e.keyCode===27}function BC(){const e=ie.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}const zC=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function HC(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 VC(e){let{onEnter:t,onEntering:n,onEntered:r,onExit:a,onExiting:i,onExited:o,addEndListener:s,children:c}=e,u=HC(e,zC);const{major:l}=BC(),d=l>=19?c.props.ref:c.ref,f=p.useRef(null),h=$n(f,typeof c=="function"?null:d),g=C=>$=>{C&&f.current&&C(f.current,$)},v=p.useCallback(g(t),[t]),m=p.useCallback(g(n),[n]),_=p.useCallback(g(r),[r]),w=p.useCallback(g(a),[a]),b=p.useCallback(g(i),[i]),T=p.useCallback(g(o),[o]),x=p.useCallback(g(s),[s]);return Object.assign({},u,{nodeRef:f},t&&{onEnter:v},n&&{onEntering:m},r&&{onEntered:_},a&&{onExit:w},i&&{onExiting:b},o&&{onExited:T},s&&{addEndListener:x},{children:typeof c=="function"?(C,$)=>c(C,Object.assign({},$,{ref:h})):p.cloneElement(c,{ref:h})})}const qC=["component"];function YC(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}const GC=ie.forwardRef((e,t)=>{let{component:n}=e,r=YC(e,qC);const a=VC(r);return y.jsx(n,Object.assign({ref:t},a))});function ZC({in:e,onTransition:t}){const n=p.useRef(null),r=p.useRef(!0),a=bt(t);return ao(()=>{if(!n.current)return;let i=!1;return a({in:e,element:n.current,initial:r.current,isStale:()=>i}),()=>{i=!0}},[e,a]),ao(()=>(r.current=!1,()=>{r.current=!0}),[]),n}function KC({children:e,in:t,onExited:n,onEntered:r,transition:a}){const[i,o]=p.useState(!t);t&&i&&o(!1);const s=ZC({in:!!t,onTransition:u=>{const l=()=>{u.isStale()||(u.in?r==null||r(u.element,u.initial):(o(!0),n==null||n(u.element)))};Promise.resolve(a(u)).then(l,d=>{throw u.in||o(!0),d})}}),c=$n(s,e.ref);return i&&!t?null:p.cloneElement(e,{ref:c})}function Ad(e,t,n){return e?y.jsx(GC,Object.assign({},n,{component:e})):t?y.jsx(KC,Object.assign({},n,{transition:t})):y.jsx(WC,Object.assign({},n))}const XC=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function JC(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}let Al;function QC(e){return Al||(Al=new uh({ownerDocument:e==null?void 0:e.document})),Al}function ek(e){const t=Bc(),n=e||QC(t),r=p.useRef({dialog:null,backdrop:null});return Object.assign(r.current,{add:()=>n.add(r.current),remove:()=>n.remove(r.current),isTopModal:()=>n.isTopModal(r.current),setDialogRef:p.useCallback(a=>{r.current.dialog=a},[]),setBackdropRef:p.useCallback(a=>{r.current.backdrop=a},[])})}const ob=p.forwardRef((e,t)=>{let{show:n=!1,role:r="dialog",className:a,style:i,children:o,backdrop:s=!0,keyboard:c=!0,onBackdropClick:u,onEscapeKeyDown:l,transition:d,runTransition:f,backdropTransition:h,runBackdropTransition:g,autoFocus:v=!0,enforceFocus:m=!0,restoreFocus:_=!0,restoreFocusOptions:w,renderDialog:b,renderBackdrop:T=de=>y.jsx("div",Object.assign({},de)),manager:x,container:C,onShow:$,onHide:A=()=>{},onExit:D,onExited:j,onExiting:E,onEnter:F,onEntering:M,onEntered:R}=e,I=JC(e,XC);const U=Bc(),N=Rd(C),q=ek(x),z=zf(),P=my(n),[B,Z]=p.useState(!n),ne=p.useRef(null);p.useImperativeHandle(t,()=>q,[q]),li&&!P&&n&&(ne.current=Ml(U==null?void 0:U.document)),n&&B&&Z(!1);const Y=bt(()=>{if(q.add(),V.current=or(document,"keydown",re),L.current=or(document,"focus",()=>setTimeout(G),!0),$&&$(),v){var de,Ae;const Pe=Ml((de=(Ae=q.dialog)==null?void 0:Ae.ownerDocument)!=null?de:U==null?void 0:U.document);q.dialog&&Pe&&!so(q.dialog,Pe)&&(ne.current=Pe,q.dialog.focus())}}),Q=bt(()=>{if(q.remove(),V.current==null||V.current(),L.current==null||L.current(),_){var de;(de=ne.current)==null||de.focus==null||de.focus(w),ne.current=null}});p.useEffect(()=>{!n||!N||Y()},[n,N,Y]),p.useEffect(()=>{B&&Q()},[B,Q]),Gf(()=>{Q()});const G=bt(()=>{if(!m||!z()||!q.isTopModal())return;const de=Ml(U==null?void 0:U.document);q.dialog&&de&&!so(q.dialog,de)&&q.dialog.focus()}),J=bt(de=>{de.target===de.currentTarget&&(u==null||u(de),s===!0&&A())}),re=bt(de=>{c&&ib(de)&&q.isTopModal()&&(l==null||l(de),de.defaultPrevented||A())}),L=p.useRef(),V=p.useRef(),ae=(...de)=>{Z(!0),j==null||j(...de)};if(!N)return null;const k=Object.assign({role:r,ref:q.setDialogRef,"aria-modal":r==="dialog"?!0:void 0},I,{style:i,className:a,tabIndex:-1});let ge=b?b(k):y.jsx("div",Object.assign({},k,{children:ie.cloneElement(o,{role:"document"})}));ge=Ad(d,f,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:D,onExiting:E,onExited:ae,onEnter:F,onEntering:M,onEntered:R,children:ge});let pe=null;return s&&(pe=T({ref:q.setBackdropRef,onClick:J}),pe=Ad(h,g,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:pe})),y.jsx(y.Fragment,{children:Or.createPortal(y.jsxs(y.Fragment,{children:[pe,ge]}),N)})});ob.displayName="Modal";const sb=Object.assign(ob,{Manager:uh});function jd(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function tk(e,t){e.classList?e.classList.add(t):jd(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function zm(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function nk(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=zm(e.className,t):e.setAttribute("class",zm(e.className&&e.className.baseVal||"",t))}const Ra={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class cb extends uh{adjustAndStore(t,n,r){const a=n.style[t];n.dataset[t]=a,Mr(n,{[t]:`${parseFloat(Mr(n,t))+r}px`})}restore(t,n){const r=n.dataset[t];r!==void 0&&(delete n.dataset[t],Mr(n,{[t]:r}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(tk(n,"modal-open"),!t.scrollBarWidth)return;const r=this.isRTL?"paddingLeft":"paddingRight",a=this.isRTL?"marginLeft":"marginRight";ir(n,Ra.FIXED_CONTENT).forEach(i=>this.adjustAndStore(r,i,t.scrollBarWidth)),ir(n,Ra.STICKY_CONTENT).forEach(i=>this.adjustAndStore(a,i,-t.scrollBarWidth)),ir(n,Ra.NAVBAR_TOGGLER).forEach(i=>this.adjustAndStore(a,i,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();nk(n,"modal-open");const r=this.isRTL?"paddingLeft":"paddingRight",a=this.isRTL?"marginLeft":"marginRight";ir(n,Ra.FIXED_CONTENT).forEach(i=>this.restore(r,i)),ir(n,Ra.STICKY_CONTENT).forEach(i=>this.restore(a,i)),ir(n,Ra.NAVBAR_TOGGLER).forEach(i=>this.restore(a,i))}}let jl;function ub(e){return jl||(jl=new cb(e)),jl}const rk=cb,lb=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},a)=>(t=Le(t,"modal-body"),y.jsx(n,{ref:a,className:oe(e,t),...r})));lb.displayName="ModalBody";const lh=ie.createContext({onHide(){}}),dh=ie.forwardRef(({bsPrefix:e,className:t,contentClassName:n,centered:r,size:a,fullscreen:i,children:o,scrollable:s,...c},u)=>{e=Le(e,"modal");const l=`${e}-dialog`,d=typeof i=="string"?`${e}-fullscreen-${i}`:`${e}-fullscreen`;return y.jsx("div",{...c,ref:u,className:oe(l,t,a&&`${e}-${a}`,r&&`${l}-centered`,s&&`${l}-scrollable`,i&&d),children:y.jsx("div",{className:oe(`${e}-content`,n),children:o})})});dh.displayName="ModalDialog";const db=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},a)=>(t=Le(t,"modal-footer"),y.jsx(n,{ref:a,className:oe(e,t),...r})));db.displayName="ModalFooter";const fb=ie.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:r,children:a,...i},o)=>{const s=p.useContext(lh),c=bt(()=>{s==null||s.onHide(),r==null||r()});return y.jsxs("div",{ref:o,...i,children:[a,n&&y.jsx(Fc,{"aria-label":e,variant:t,onClick:c})]})}),hb=ie.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...a},i)=>(e=Le(e,"modal-header"),y.jsx(fb,{ref:i,...a,className:oe(t,e),closeLabel:n,closeButton:r})));hb.displayName="ModalHeader";const ak=py("h4"),pb=ie.forwardRef(({className:e,bsPrefix:t,as:n=ak,...r},a)=>(t=Le(t,"modal-title"),y.jsx(n,{ref:a,className:oe(e,t),...r})));pb.displayName="ModalTitle";function ik(e){return y.jsx(Ya,{...e,timeout:null})}function ok(e){return y.jsx(Ya,{...e,timeout:null})}const mb=ie.forwardRef(({bsPrefix:e,className:t,style:n,dialogClassName:r,contentClassName:a,children:i,dialogAs:o=dh,"data-bs-theme":s,"aria-labelledby":c,"aria-describedby":u,"aria-label":l,show:d=!1,animation:f=!0,backdrop:h=!0,keyboard:g=!0,onEscapeKeyDown:v,onShow:m,onHide:_,container:w,autoFocus:b=!0,enforceFocus:T=!0,restoreFocus:x=!0,restoreFocusOptions:C,onEntered:$,onExit:A,onExiting:D,onEnter:j,onEntering:E,onExited:F,backdropClassName:M,manager:R,...I},U)=>{const[N,q]=p.useState({}),[z,P]=p.useState(!1),B=p.useRef(!1),Z=p.useRef(!1),ne=p.useRef(null),[Y,Q]=zs(),G=$n(U,Q),J=bt(_),re=Nc();e=Le(e,"modal");const L=p.useMemo(()=>({onHide:J}),[J]);function V(){return R||ub({isRTL:re})}function ae(xe){if(!li)return;const Xe=V().getScrollbarWidth()>0,Tt=xe.scrollHeight>ui(xe).documentElement.clientHeight;q({paddingRight:Xe&&!Tt?Wm():void 0,paddingLeft:!Xe&&Tt?Wm():void 0})}const k=bt(()=>{Y&&ae(Y.dialog)});Gf(()=>{Sd(window,"resize",k),ne.current==null||ne.current()});const ge=()=>{B.current=!0},pe=xe=>{B.current&&Y&&xe.target===Y.dialog&&(Z.current=!0),B.current=!1},de=()=>{P(!0),ne.current=ly(Y.dialog,()=>{P(!1)})},Ae=xe=>{xe.target===xe.currentTarget&&de()},Pe=xe=>{if(h==="static"){Ae(xe);return}if(Z.current||xe.target!==xe.currentTarget){Z.current=!1;return}_==null||_()},ft=xe=>{g?v==null||v(xe):(xe.preventDefault(),h==="static"&&de())},gt=(xe,Xe)=>{xe&&ae(xe),j==null||j(xe,Xe)},Be=xe=>{ne.current==null||ne.current(),A==null||A(xe)},rt=(xe,Xe)=>{E==null||E(xe,Xe),Bf(window,"resize",k)},Ze=xe=>{xe&&(xe.style.display=""),F==null||F(xe),Sd(window,"resize",k)},xt=p.useCallback(xe=>y.jsx("div",{...xe,className:oe(`${e}-backdrop`,M,!f&&"show")}),[f,M,e]),_t={...n,...N};_t.display="block";const at=xe=>y.jsx("div",{role:"dialog",...xe,style:_t,className:oe(t,e,z&&`${e}-static`,!f&&"show"),onClick:h?Pe:void 0,onMouseUp:pe,"data-bs-theme":s,"aria-label":l,"aria-labelledby":c,"aria-describedby":u,children:y.jsx(o,{...I,onMouseDown:ge,className:r,contentClassName:a,children:i})});return y.jsx(lh.Provider,{value:L,children:y.jsx(sb,{show:d,ref:G,backdrop:h,container:w,keyboard:!0,autoFocus:b,enforceFocus:T,restoreFocus:x,restoreFocusOptions:C,onEscapeKeyDown:ft,onShow:m,onHide:_,onEnter:gt,onEntering:rt,onEntered:$,onExit:Be,onExiting:D,onExited:Ze,manager:V(),transition:f?ik:void 0,backdropTransition:f?ok:void 0,renderBackdrop:xt,renderDialog:at})})});mb.displayName="Modal";const rn=Object.assign(mb,{Body:lb,Header:hb,Title:pb,Footer:db,Dialog:dh,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),sk=()=>{};function ck(e,t,{disabled:n,clickTrigger:r}={}){const a=t||sk;Ry(e,a,{disabled:n,clickTrigger:r});const i=bt(o=>{ib(o)&&a(o)});p.useEffect(()=>{if(n||e==null)return;const o=ui($s(e));let s=(o.defaultView||window).event;const c=or(o,"keyup",u=>{if(u===s){s=void 0;return}i(u)});return()=>{c()}},[e,n,i])}const gb=ie.forwardRef((e,t)=>{const{flip:n,offset:r,placement:a,containerPadding:i,popperConfig:o={},transition:s,runTransition:c}=e,[u,l]=zs(),[d,f]=zs(),h=$n(l,t),g=Rd(e.container),v=Rd(e.target),[m,_]=p.useState(!e.show),w=$y(v,u,Ay({placement:a,enableEvents:!!e.show,containerPadding:i||5,flip:n,offset:r,arrowElement:d,popperConfig:o}));e.show&&m&&_(!1);const b=(...E)=>{_(!0),e.onExited&&e.onExited(...E)},T=e.show||!m;if(ck(u,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!T)return null;const{onExit:x,onExiting:C,onEnter:$,onEntering:A,onEntered:D}=e;let j=e.children(Object.assign({},w.attributes.popper,{style:w.styles.popper,ref:h}),{popper:w,placement:a,show:!!e.show,arrowProps:Object.assign({},w.attributes.arrow,{style:w.styles.arrow,ref:f})});return j=Ad(s,c,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:j,onExit:x,onExiting:C,onExited:b,onEnter:$,onEntering:A,onEntered:D}),g?Or.createPortal(j,g):null});gb.displayName="Overlay";const vb=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},a)=>(t=Le(t,"popover-header"),y.jsx(n,{ref:a,className:oe(e,t),...r})));vb.displayName="PopoverHeader";const fh=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},a)=>(t=Le(t,"popover-body"),y.jsx(n,{ref:a,className:oe(e,t),...r})));fh.displayName="PopoverBody";function yb(e,t){let n=e;return e==="left"?n=t?"end":"start":e==="right"&&(n=t?"start":"end"),n}function bb(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const uk=ie.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:a,body:i,arrowProps:o,hasDoneInitialMeasure:s,popper:c,show:u,...l},d)=>{const f=Le(e,"popover"),h=Nc(),[g]=(t==null?void 0:t.split("-"))||[],v=yb(g,h);let m=r;return u&&!s&&(m={...r,...bb(c==null?void 0:c.strategy)}),y.jsxs("div",{ref:d,role:"tooltip",style:m,"x-placement":g,className:oe(n,f,g&&`bs-popover-${v}`),...l,children:[y.jsx("div",{className:"popover-arrow",...o}),i?y.jsx(fh,{children:a}):a]})}),xb=Object.assign(uk,{Header:vb,Body:fh,POPPER_OFFSET:[0,8]}),_b=ie.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:a,arrowProps:i,hasDoneInitialMeasure:o,popper:s,show:c,...u},l)=>{e=Le(e,"tooltip");const d=Nc(),[f]=(t==null?void 0:t.split("-"))||[],h=yb(f,d);let g=r;return c&&!o&&(g={...r,...bb(s==null?void 0:s.strategy)}),y.jsxs("div",{ref:l,style:g,role:"tooltip","x-placement":f,className:oe(n,e,`bs-tooltip-${h}`),...u,children:[y.jsx("div",{className:"tooltip-arrow",...i}),y.jsx("div",{className:`${e}-inner`,children:a})]})});_b.displayName="Tooltip";const hh=Object.assign(_b,{TOOLTIP_OFFSET:[0,6]});function lk(e){const t=p.useRef(null),n=Le(void 0,"popover"),r=Le(void 0,"tooltip"),a=p.useMemo(()=>({name:"offset",options:{offset:()=>{if(e)return e;if(t.current){if(jd(t.current,n))return xb.POPPER_OFFSET;if(jd(t.current,r))return hh.TOOLTIP_OFFSET}return[0,0]}}}),[e,n,r]);return[t,[a]]}function dk(e,t){const{ref:n}=e,{ref:r}=t;e.ref=n.__wrapped||(n.__wrapped=a=>n(Bs(a))),t.ref=r.__wrapped||(r.__wrapped=a=>r(Bs(a)))}const wb=ie.forwardRef(({children:e,transition:t=Ya,popperConfig:n={},rootClose:r=!1,placement:a="top",show:i=!1,...o},s)=>{const c=p.useRef({}),[u,l]=p.useState(null),[d,f]=lk(o.offset),h=$n(s,d),g=t===!0?Ya:t||void 0,v=bt(m=>{l(m),n==null||n.onFirstUpdate==null||n.onFirstUpdate(m)});return ao(()=>{u&&o.target&&(c.current.scheduleUpdate==null||c.current.scheduleUpdate())},[u,o.target]),p.useEffect(()=>{i||l(null)},[i]),y.jsx(gb,{...o,ref:h,popperConfig:{...n,modifiers:f.concat(n.modifiers||[]),onFirstUpdate:v},transition:g,rootClose:r,placement:a,show:i,children:(m,{arrowProps:_,popper:w,show:b})=>{var T;dk(m,_);const x=w==null?void 0:w.placement,C=Object.assign(c.current,{state:w==null?void 0:w.state,scheduleUpdate:w==null?void 0:w.update,placement:x,outOfBoundaries:(w==null||(T=w.state)==null||(T=T.modifiersData.hide)==null?void 0:T.isReferenceHidden)||!1,strategy:n.strategy}),$=!!u;return typeof e=="function"?e({...m,placement:x,show:b,...!t&&b&&{className:"show"},popper:C,arrowProps:_,hasDoneInitialMeasure:$}):ie.cloneElement(e,{...m,placement:x,arrowProps:_,popper:C,hasDoneInitialMeasure:$,className:oe(e.props.className,!t&&b&&"show"),style:{...e.props.style,...m.style}})}})});wb.displayName="Overlay";function fk(e){return e&&typeof e=="object"?e:{show:e,hide:e}}function Hm(e,t,n){const[r]=t,a=r.currentTarget,i=r.relatedTarget||r.nativeEvent[n];(!i||i!==a)&&!so(a,i)&&e(...t)}O.oneOf(["click","hover","focus"]);const Tb=({trigger:e=["hover","focus"],overlay:t,children:n,popperConfig:r={},show:a,defaultShow:i=!1,onToggle:o,delay:s,placement:c,flip:u=c&&c.indexOf("auto")!==-1,...l})=>{const d=p.useRef(null),f=$n(d,n.ref),h=e3(),g=p.useRef(""),[v,m]=iy(a,i,o),_=fk(s),{onFocus:w,onBlur:b,onClick:T}=typeof n!="function"?ie.Children.only(n).props:{},x=I=>{f(Bs(I))},C=p.useCallback(()=>{if(h.clear(),g.current="show",!_.show){m(!0);return}h.set(()=>{g.current==="show"&&m(!0)},_.show)},[_.show,m,h]),$=p.useCallback(()=>{if(h.clear(),g.current="hide",!_.hide){m(!1);return}h.set(()=>{g.current==="hide"&&m(!1)},_.hide)},[_.hide,m,h]),A=p.useCallback((...I)=>{C(),w==null||w(...I)},[C,w]),D=p.useCallback((...I)=>{$(),b==null||b(...I)},[$,b]),j=p.useCallback((...I)=>{m(!v),T==null||T(...I)},[T,m,v]),E=p.useCallback((...I)=>{Hm(C,I,"fromElement")},[C]),F=p.useCallback((...I)=>{Hm($,I,"toElement")},[$]),M=e==null?[]:[].concat(e),R={ref:x};return M.indexOf("click")!==-1&&(R.onClick=j),M.indexOf("focus")!==-1&&(R.onFocus=A,R.onBlur=D),M.indexOf("hover")!==-1&&(process.env.NODE_ENV!=="production"&&di(M.length>1,'[react-bootstrap] Specifying only the `"hover"` trigger limits the visibility of the overlay to just mouse users. Consider also including the `"focus"` trigger so that touch and keyboard only users can see the overlay as well.'),R.onMouseOver=E,R.onMouseOut=F),y.jsxs(y.Fragment,{children:[typeof n=="function"?n(R):p.cloneElement(n,R),y.jsx(wb,{...l,show:v,onHide:$,flip:u,placement:c,popperConfig:r,target:d.current,children:t})]})};var Cb={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Vm=p.createContext&&p.createContext(Cb),hk=["attr","size","title"];function pk(e,t){if(e==null)return{};var n=mk(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function mk(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Zs(){return Zs=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},Zs.apply(this,arguments)}function qm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ks(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qm(Object(n),!0).forEach(function(r){gk(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gk(e,t,n){return t=vk(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vk(e){var t=yk(e,"string");return typeof t=="symbol"?t:t+""}function yk(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kb(e){return e&&e.map((t,n)=>p.createElement(t.tag,Ks({key:n},t.attr),kb(t.child)))}function Fe(e){return t=>p.createElement(bk,Zs({attr:Ks({},e.attr)},t),kb(e.child))}function bk(e){var t=n=>{var{attr:r,size:a,title:i}=e,o=pk(e,hk),s=a||n.size||"1em",c;return n.className&&(c=n.className),e.className&&(c=(c?c+" ":"")+e.className),p.createElement("svg",Zs({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,o,{className:c,style:Ks(Ks({color:e.color||n.color},n.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),i&&p.createElement("title",null,i),e.children)};return Vm!==void 0?p.createElement(Vm.Consumer,null,n=>t(n)):t(Cb)}function xk(e){return Fe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"},child:[]}]})(e)}function qc(e){return Fe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"},child:[]}]})(e)}function _k(e){return Fe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M21 12.4V7l-4-4H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7.4l8.6-8.6zM15 15c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3zM6 6h9v4H6V6zm13.99 10.25 1.77 1.77L16.77 23H15v-1.77l4.99-4.98zm3.26.26-.85.85-1.77-1.77.85-.85c.2-.2.51-.2.71 0l1.06 1.06c.2.2.2.52 0 .71z"},child:[]}]})(e)}function wk(e){return Fe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z"},child:[]}]})(e)}function Tk(e){return Fe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2z"},child:[]}]})(e)}function Ck(e){return Fe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m10 17 5-5-5-5v10z"},child:[]},{tag:"path",attr:{fill:"none",d:"M0 24V0h24v24H0z"},child:[]}]})(e)}function kk(e){return Fe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"},child:[]}]})(e)}function Sk(e){return Fe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M6 6v2h8.59L5 17.59 6.41 19 16 9.41V18h2V6z"},child:[]}]})(e)}function Ok(e){return Fe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M20 8h-2.81a5.985 5.985 0 0 0-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5s-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20V8zm-4 4v3c0 .22-.03.47-.07.7l-.1.65-.37.65c-.72 1.24-2.04 2-3.46 2s-2.74-.77-3.46-2l-.37-.64-.1-.65A4.27 4.27 0 0 1 8 15v-4c0-.23.03-.48.07-.7l.1-.65.37-.65c.3-.52.72-.97 1.21-1.31l.57-.39.74-.18a3.787 3.787 0 0 1 1.89 0l.68.16.61.42c.5.34.91.78 1.21 1.31l.38.65.1.65c.04.22.07.47.07.69v1zm-6 2h4v2h-4zm0-4h4v2h-4z"},child:[]}]})(e)}function Ek(e){return Fe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M16 9v10H8V9h8m-1.5-6h-5l-1 1H5v2h14V4h-3.5l-1-1zM18 7H6v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7z"},child:[]}]})(e)}function $k(e){return Fe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M4 20h16v2H4zM4 2h16v2H4zM9.41 13.59 8 15l4 4 4-4-1.41-1.41L13 15.17V8.83l1.59 1.58L16 9l-4-4-4 4 1.41 1.41L11 8.83v6.34z"},child:[]}]})(e)}function Mk(e){return Fe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11.07 12.85c.77-1.39 2.25-2.21 3.11-3.44.91-1.29.4-3.7-2.18-3.7-1.69 0-2.52 1.28-2.87 2.34L6.54 6.96C7.25 4.83 9.18 3 11.99 3c2.35 0 3.96 1.07 4.78 2.41.7 1.15 1.11 3.3.03 4.9-1.2 1.77-2.35 2.31-2.97 3.45-.25.46-.35.76-.35 2.24h-2.89c-.01-.78-.13-2.05.48-3.15zM14 20c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2z"},child:[]}]})(e)}function Rk(e){return Fe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16c1.1 0 2-.9 2-2V6a2 2 0 0 0-2-2zm0 14H4V8h16v10zm-2-1h-6v-2h6v2zM7.5 17l-1.41-1.41L8.67 13l-2.59-2.59L7.5 9l4 4-4 4z"},child:[]}]})(e)}function Ak(e){return Fe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"},child:[]}]})(e)}function jk(e){return Fe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"},child:[]}]})(e)}function Pk(e){return Fe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"},child:[]}]})(e)}function Dk(e){return Fe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5-5 5z"},child:[]}]})(e)}function Ik(e){return Fe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"},child:[]}]})(e)}function Nk(e){return Fe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"},child:[]}]})(e)}function Fk(e){return Fe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M20 4h-3.17L15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H4V6h4.05l1.83-2h4.24l1.83 2H20v12zM12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0 8c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3z"},child:[]}]})(e)}function Lk(e){return Fe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"m14.06 9.02.92.92L5.92 19H5v-.92l9.06-9.06M17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83a.996.996 0 0 0 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29zm-3.6 3.19L3 17.25V21h3.75L17.81 9.94l-3.75-3.75z"},child:[]}]})(e)}function Uk(e){return Fe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"},child:[]}]})(e)}function Wk(e){return Fe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6-6-6z"},child:[]}]})(e)}function Sb(e){return Fe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"},child:[]}]})(e)}function Bk(e){return Fe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"},child:[]}]})(e)}function zk(e){return Fe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{fill:"none"},child:[{tag:"path",attr:{d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M0 0h24v24H0V0z"},child:[]}]},{tag:"path",attr:{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27z"},child:[]}]})(e)}const bn=p.createContext({cookieDomain:"",axiosOptions:{},language:"",localizationContext:{},texts:{},ProjectIconComponent:{},chartColorPalette:void 0}),Ob=p.createContext({show:!1,text:"",showConfirm:e=>{},hideConfirm:()=>{}}),Eb=p.createContext({isShown:!1,text:"",hidePrompt:()=>{},showPrompt:()=>{},resolveRef:{current:()=>{}},options:{input:"textarea",type:"text"},setOptions:()=>{}}),$b=()=>{const{isShown:e,text:t,showPrompt:n,hidePrompt:r,resolveRef:a,setOptions:i}=p.useContext(Eb),o=p.useCallback(c=>{r(),a.current(c)},[r,a]),s=p.useCallback(async(c,u)=>(i(l=>({...l,...u})),n(c),new Promise(l=>{a.current=l})),[a,i,n]);return{isShown:e,text:t,prompt:s,onFinish:o}};let Hk={data:""},Vk=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Hk,qk=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Yk=/\/\*[^]*?\*\/| +/g,Ym=/\n+/g,kr=(e,t)=>{let n="",r="",a="";for(let i in e){let o=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+o+";":r+=i[1]=="f"?kr(o,i):i+"{"+kr(o,i[1]=="k"?"":t)+"}":typeof o=="object"?r+=kr(o,t?t.replace(/([^,])+/g,s=>i.replace(/(^:.*)|([^,])+/g,c=>/&/.test(c)?c.replace(/&/g,s):s?s+" "+c:c)):i):o!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),a+=kr.p?kr.p(i,o):i+":"+o+";")}return n+(t&&a?t+"{"+a+"}":a)+r},tr={},Mb=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+Mb(e[n]);return t}return e},Gk=(e,t,n,r,a)=>{let i=Mb(e),o=tr[i]||(tr[i]=(c=>{let u=0,l=11;for(;u<c.length;)l=101*l+c.charCodeAt(u++)>>>0;return"go"+l})(i));if(!tr[o]){let c=i!==e?e:(u=>{let l,d,f=[{}];for(;l=qk.exec(u.replace(Yk,""));)l[4]?f.shift():l[3]?(d=l[3].replace(Ym," ").trim(),f.unshift(f[0][d]=f[0][d]||{})):f[0][l[1]]=l[2].replace(Ym," ").trim();return f[0]})(e);tr[o]=kr(a?{["@keyframes "+o]:c}:c,n?"":"."+o)}let s=n&&tr.g?tr.g:null;return n&&(tr.g=tr[o]),((c,u,l,d)=>{d?u.data=u.data.replace(d,c):u.data.indexOf(c)===-1&&(u.data=l?c+u.data:u.data+c)})(tr[o],t,r,s),o},Zk=(e,t,n)=>e.reduce((r,a,i)=>{let o=t[i];if(o&&o.call){let s=o(n),c=s&&s.props&&s.props.className||/^go/.test(s)&&s;o=c?"."+c:s&&typeof s=="object"?s.props?"":kr(s,""):s===!1?"":s}return r+a+(o??"")},"");function Yc(e){let t=this||{},n=e.call?e(t.p):e;return Gk(n.unshift?n.raw?Zk(n,[].slice.call(arguments,1),t.p):n.reduce((r,a)=>Object.assign(r,a&&a.call?a(t.p):a),{}):n,Vk(t.target),t.g,t.o,t.k)}let Rb,Pd,Dd;Yc.bind({g:1});let fr=Yc.bind({k:1});function Kk(e,t,n,r){kr.p=t,Rb=e,Pd=n,Dd=r}function Wr(e,t){let n=this||{};return function(){let r=arguments;function a(i,o){let s=Object.assign({},i),c=s.className||a.className;n.p=Object.assign({theme:Pd&&Pd()},s),n.o=/ *go\d+/.test(c),s.className=Yc.apply(n,r)+(c?" "+c:"");let u=e;return e[0]&&(u=s.as||e,delete s.as),Dd&&u[0]&&Dd(s),Rb(u,s)}return a}}var Xk=e=>typeof e=="function",Xs=(e,t)=>Xk(e)?e(t):e,Jk=(()=>{let e=0;return()=>(++e).toString()})(),Ab=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),Qk=20,Ms=new Map,e5=1e3,Gm=e=>{if(Ms.has(e))return;let t=setTimeout(()=>{Ms.delete(e),ba({type:4,toastId:e})},e5);Ms.set(e,t)},t5=e=>{let t=Ms.get(e);t&&clearTimeout(t)},Id=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,Qk)};case 1:return t.toast.id&&t5(t.toast.id),{...e,toasts:e.toasts.map(i=>i.id===t.toast.id?{...i,...t.toast}:i)};case 2:let{toast:n}=t;return e.toasts.find(i=>i.id===n.id)?Id(e,{type:1,toast:n}):Id(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?Gm(r):e.toasts.forEach(i=>{Gm(i.id)}),{...e,toasts:e.toasts.map(i=>i.id===r||r===void 0?{...i,visible:!1}:i)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(i=>i.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let a=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(i=>({...i,pauseDuration:i.pauseDuration+a}))}}},Rs=[],As={toasts:[],pausedAt:void 0},ba=e=>{As=Id(As,e),Rs.forEach(t=>{t(As)})},n5={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},r5=(e={})=>{let[t,n]=p.useState(As);p.useEffect(()=>(Rs.push(n),()=>{let a=Rs.indexOf(n);a>-1&&Rs.splice(a,1)}),[t]);let r=t.toasts.map(a=>{var i,o;return{...e,...e[a.type],...a,duration:a.duration||((i=e[a.type])==null?void 0:i.duration)||(e==null?void 0:e.duration)||n5[a.type],style:{...e.style,...(o=e[a.type])==null?void 0:o.style,...a.style}}});return{...t,toasts:r}},a5=(e,t="blank",n)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(n==null?void 0:n.id)||Jk()}),qo=e=>(t,n)=>{let r=a5(t,e,n);return ba({type:2,toast:r}),r.id},pn=(e,t)=>qo("blank")(e,t);pn.error=qo("error");pn.success=qo("success");pn.loading=qo("loading");pn.custom=qo("custom");pn.dismiss=e=>{ba({type:3,toastId:e})};pn.remove=e=>ba({type:4,toastId:e});pn.promise=(e,t,n)=>{let r=pn.loading(t.loading,{...n,...n==null?void 0:n.loading});return e.then(a=>(pn.success(Xs(t.success,a),{id:r,...n,...n==null?void 0:n.success}),a)).catch(a=>{pn.error(Xs(t.error,a),{id:r,...n,...n==null?void 0:n.error})}),e};var i5=(e,t)=>{ba({type:1,toast:{id:e,height:t}})},o5=()=>{ba({type:5,time:Date.now()})},s5=e=>{let{toasts:t,pausedAt:n}=r5(e);p.useEffect(()=>{if(n)return;let i=Date.now(),o=t.map(s=>{if(s.duration===1/0)return;let c=(s.duration||0)+s.pauseDuration-(i-s.createdAt);if(c<0){s.visible&&pn.dismiss(s.id);return}return setTimeout(()=>pn.dismiss(s.id),c)});return()=>{o.forEach(s=>s&&clearTimeout(s))}},[t,n]);let r=p.useCallback(()=>{n&&ba({type:6,time:Date.now()})},[n]),a=p.useCallback((i,o)=>{let{reverseOrder:s=!1,gutter:c=8,defaultPosition:u}=o||{},l=t.filter(h=>(h.position||u)===(i.position||u)&&h.height),d=l.findIndex(h=>h.id===i.id),f=l.filter((h,g)=>g<d&&h.visible).length;return l.filter(h=>h.visible).slice(...s?[f+1]:[0,f]).reduce((h,g)=>h+(g.height||0)+c,0)},[t]);return{toasts:t,handlers:{updateHeight:i5,startPause:o5,endPause:r,calculateOffset:a}}},c5=fr`
|
|
54
54
|
from {
|
|
55
55
|
transform: scale(0) rotate(45deg);
|
|
56
56
|
opacity: 0;
|
|
@@ -250,7 +250,7 @@ to {
|
|
|
250
250
|
*
|
|
251
251
|
* This source code is licensed under the MIT license found in the
|
|
252
252
|
* LICENSE file in the root directory of this source tree.
|
|
253
|
-
*/var dg;function WS(){return dg||(dg=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,_=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function b(k){return typeof k=="string"||typeof k=="function"||k===r||k===u||k===i||k===a||k===d||k===f||typeof k=="object"&&k!==null&&(k.$$typeof===g||k.$$typeof===h||k.$$typeof===o||k.$$typeof===s||k.$$typeof===l||k.$$typeof===m||k.$$typeof===_||k.$$typeof===w||k.$$typeof===v)}function T(k){if(typeof k=="object"&&k!==null){var ge=k.$$typeof;switch(ge){case t:var pe=k.type;switch(pe){case c:case u:case r:case i:case a:case d:return pe;default:var de=pe&&pe.$$typeof;switch(de){case s:case l:case g:case h:case o:return de;default:return ge}}case n:return ge}}}var x=c,C=u,$=s,A=o,D=t,j=l,E=r,F=g,M=h,R=n,I=i,U=a,N=d,q=!1;function z(k){return q||(q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),P(k)||T(k)===c}function P(k){return T(k)===u}function B(k){return T(k)===s}function Z(k){return T(k)===o}function ne(k){return typeof k=="object"&&k!==null&&k.$$typeof===t}function Y(k){return T(k)===l}function Q(k){return T(k)===r}function G(k){return T(k)===g}function J(k){return T(k)===h}function re(k){return T(k)===n}function L(k){return T(k)===i}function V(k){return T(k)===a}function ae(k){return T(k)===d}Ye.AsyncMode=x,Ye.ConcurrentMode=C,Ye.ContextConsumer=$,Ye.ContextProvider=A,Ye.Element=D,Ye.ForwardRef=j,Ye.Fragment=E,Ye.Lazy=F,Ye.Memo=M,Ye.Portal=R,Ye.Profiler=I,Ye.StrictMode=U,Ye.Suspense=N,Ye.isAsyncMode=z,Ye.isConcurrentMode=P,Ye.isContextConsumer=B,Ye.isContextProvider=Z,Ye.isElement=ne,Ye.isForwardRef=Y,Ye.isFragment=Q,Ye.isLazy=G,Ye.isMemo=J,Ye.isPortal=re,Ye.isProfiler=L,Ye.isStrictMode=V,Ye.isSuspense=ae,Ye.isValidElementType=b,Ye.typeOf=T}()),Ye}process.env.NODE_ENV==="production"?qd.exports=US():qd.exports=WS();var BS=qd.exports,p1=BS,zS={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},HS={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},m1={};m1[p1.ForwardRef]=zS;m1[p1.Memo]=HS;function VS(){return typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"}function wh(e,t){const n=p.useContext(LS);if(!n)throw new Error("Missing <CookiesProvider>");const a=Object.assign(Object.assign({},{doNotUpdate:!0}),t),[i,o]=p.useState(()=>n.getAll(a));VS()&&p.useLayoutEffect(()=>{function l(){const d=n.getAll(a);qS(e||null,d,i)&&o(d)}return n.addChangeListener(l),()=>{n.removeChangeListener(l)}},[n,i]);const s=p.useMemo(()=>n.set.bind(n),[n]),c=p.useMemo(()=>n.remove.bind(n),[n]),u=p.useMemo(()=>n.update.bind(n),[n]);return[i,s,c,u]}function qS(e,t,n){if(!e)return!0;for(let r of e)if(t[r]!==n[r])return!0;return!1}const YS=()=>{const{axiosOptions:e,cookieDomain:t}=p.useContext(bn),[,n,r]=wh(["Authorization"]),a=dt.create(e),i=p.useCallback(()=>localStorage.getItem("token")??null,[]),o=p.useCallback(()=>{const u=i();return u!==null&&u.length>0},[i]),s=p.useCallback(async(u,l)=>a.post("/user/login",{kid:u,password:l}).then(d=>(localStorage.setItem("token",d.data),n("Authorization",d.data,{path:"/",secure:!0,sameSite:"none",domain:t,expires:Vw(new Date(Date.now()),24)}),d.data)).catch(d=>(console.log(d),null)),[a,n,t]),c=p.useCallback(()=>{localStorage.removeItem("token"),localStorage.removeItem("user"),r("Authorization")},[r]);return{isAuthenticated:o,login:s,logout:c,getToken:i}},GS=()=>{const[,,e]=wh(["Authorization"]),{msalScopes:t}=p.useContext(kh),{instance:n,inProgress:r}=im.useMsal(),a=im.useIsAuthenticated(),i=p.useCallback(async()=>{var f;const l=n.getActiveAccount(),d=l??((f=n.getAllAccounts())==null?void 0:f.at(0))??void 0;return d?(l||n.setActiveAccount(d),n.acquireTokenSilent({scopes:t,account:d}).then(h=>h.accessToken).catch(h=>{if(console.error("Error acquiring token",h),h instanceof am.InteractionRequiredAuthError)return console.log("Silent token acquisition failed. Acquiring token using redirect"),n.acquireTokenRedirect({scopes:t}),null;throw h})):null},[n,t]),o=p.useCallback(()=>a,[a]),s=p.useCallback(()=>!o()&&r!==am.InteractionStatus.None,[o,r]),c=p.useCallback(async()=>n.loginRedirect({scopes:t}).then(()=>"").catch(()=>null),[n,t]),u=p.useCallback(()=>{n.logout(),localStorage.removeItem("user"),e("Authorization")},[e,n]);return{isAuthenticated:o,isAuthenticating:s,login:c,logout:u,getToken:i}},g1=()=>{const{useMsal:e}=p.useContext(kh),t=YS(),n=GS();return{isAuthenticated:e?n.isAuthenticated:t.isAuthenticated,isAuthenticating:e?n.isAuthenticating:()=>!1,getToken:e?n.getToken:t.getToken,login:e?n.login:t.login,logout:e?n.logout:t.logout}},ZS="_toast_1s57i_1",Pi={toast:ZS},KS=e=>{switch(e){case"success":return 5e3;case"info":return 5e3;case"danger":return 1e4;case"warning":return 1e4;case"prompt":return 1e4;default:return 5e3}},Th=()=>({addNotification:p.useCallback((t,n)=>{const r=s1(t),a=KS(n),i=y.jsxs(y.Fragment,{children:[r,y.jsx(Sb,{onClick:()=>Aa.dismiss(r),type:"button",style:{position:"absolute",fontSize:"12px",top:"calc(50% - 6px)",right:"8px"}})]});switch(n){case"success":{Aa(i,{id:r,duration:a,position:"top-center",icon:y.jsx(Uk,{size:12}),className:oe("luminus-toast-success rounded shadow bg-success",Pi.toast)});break}case"danger":{Aa(i,{id:r,duration:a,position:"top-center",icon:y.jsx(Ak,{size:12}),className:oe("luminus-toast-danger rounded shadow bg-danger",Pi.toast)});break}case"warning":{Aa(i,{id:r,duration:a,position:"top-center",icon:y.jsx(Ok,{size:12}),className:oe("luminus-toast-warning rounded shadow bg-warning",Pi.toast)});break}case"info":{Aa(i,{id:r,duration:a,position:"top-center",icon:y.jsx(Mk,{size:12}),className:oe("luminus-toast-info rounded shadow bg-info",Pi.toast)});break}case"prompt":{Aa(i,{id:r,duration:a,position:"top-center",icon:y.jsx(Rk,{size:12}),className:oe("luminus-toast-prompt rounded shadow bg-light",Pi.toast)});break}}},[])}),XS=dt.CancelToken,nu=e=>{const{authenticated:t=!0,differentBaseUrl:n,silent:r=!1,customToken:a,ignoreDelegation:i}={...e},{language:o,axiosOptions:s,texts:{axios:c}}=p.useContext(bn),{delegation:u}=p.useContext($1),l=p.useMemo(()=>(u==null?void 0:u.id)??null,[u==null?void 0:u.id]),{addNotification:d}=Th(),{getToken:f}=g1(),h=p.useMemo(()=>dt.create(s),[s]),g=p.useCallback(async m=>{var _,w,b;if(t&&!m.headers.Authorization){const T=a??await f();if(!T)return Promise.reject(new Error("No bearer token"));m.headers.Authorization=`Bearer ${T}`}return l!==null&&!i&&(m.headers.DelegationId=l.toString()),(_=m.url)!=null&&_.includes("culture=")?m.url=(w=m.url)==null?void 0:w.replace(/culture=[a-z]{2}/,`culture=${o}`):m.url=`${m.url}${(b=m.url)!=null&&b.includes("?")?"&":"?"}culture=${o}`,m},[t,f,o,a,l,i]),v=p.useCallback(m=>{var b;if(console.log(m),dt.isCancel(m))return Promise.reject(m);const _=bh(m);if(_.length>0){const T=_.find(x=>x.name.toLowerCase()==="others");return T?(!r&&d(T.errors,"danger"),Promise.reject(m)):(!r&&d(c.validationError,"warning"),Promise.reject(m))}const w=o1(m);return w!==null?(!r&&d(`${c.permissionError}: ${xh(", ",...w)}`,"danger"),Promise.reject(m)):((b=m.response)==null?void 0:b.status)===403?(!r&&d(c.forbiddenError,"danger"),Promise.reject(m)):m.message&&m.message==="Network Error"?(!r&&d(c.networkError,"danger"),Promise.reject(m)):(dt.isCancel(m)||!r&&d(c.unexpectedError,"danger"),Promise.reject(m))},[d,c.forbiddenError,c.networkError,c.permissionError,c.unexpectedError,c.validationError,r]);return p.useEffect(()=>{n&&(h.defaults.baseURL=n),h.interceptors.request.clear(),h.interceptors.response.clear();const m=h.interceptors.request.use(g,w=>Promise.reject(w)),_=h.interceptors.response.use(w=>w,v);return()=>{h.interceptors.request.eject(m),h.interceptors.response.eject(_)}},[h.defaults,h.interceptors.request,h.interceptors.response,n,g,v]),h};let Ll;const v1=()=>{const{show:e,text:t,showConfirm:n,hideConfirm:r}=p.useContext(Ob),a=()=>{r()};return{confirm:async c=>(n(c),new Promise(u=>{Ll=u})),onConfirm:()=>{a(),Ll(!0)},onCancel:()=>{a(),Ll(!1)},show:e,text:t}};var Ne;(function(e){e.assertEqual=a=>a;function t(a){}e.assertIs=t;function n(a){throw new Error}e.assertNever=n,e.arrayToEnum=a=>{const i={};for(const o of a)i[o]=o;return i},e.getValidEnumValues=a=>{const i=e.objectKeys(a).filter(s=>typeof a[a[s]]!="number"),o={};for(const s of i)o[s]=a[s];return e.objectValues(o)},e.objectValues=a=>e.objectKeys(a).map(function(i){return a[i]}),e.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const i=[];for(const o in a)Object.prototype.hasOwnProperty.call(a,o)&&i.push(o);return i},e.find=(a,i)=>{for(const o of a)if(i(o))return o},e.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&isFinite(a)&&Math.floor(a)===a;function r(a,i=" | "){return a.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}e.joinValues=r,e.jsonStringifyReplacer=(a,i)=>typeof i=="bigint"?i.toString():i})(Ne||(Ne={}));var Yd;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Yd||(Yd={}));const ue=Ne.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Sr=e=>{switch(typeof e){case"undefined":return ue.undefined;case"string":return ue.string;case"number":return isNaN(e)?ue.nan:ue.number;case"boolean":return ue.boolean;case"function":return ue.function;case"bigint":return ue.bigint;case"symbol":return ue.symbol;case"object":return Array.isArray(e)?ue.array:e===null?ue.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?ue.promise:typeof Map<"u"&&e instanceof Map?ue.map:typeof Set<"u"&&e instanceof Set?ue.set:typeof Date<"u"&&e instanceof Date?ue.date:ue.object;default:return ue.unknown}},te=Ne.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),JS=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class gn extends Error{constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const n=t||function(i){return i.message},r={_errors:[]},a=i=>{for(const o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(a);else if(o.code==="invalid_return_type")a(o.returnTypeError);else if(o.code==="invalid_arguments")a(o.argumentsError);else if(o.path.length===0)r._errors.push(n(o));else{let s=r,c=0;for(;c<o.path.length;){const u=o.path[c];c===o.path.length-1?(s[u]=s[u]||{_errors:[]},s[u]._errors.push(n(o))):s[u]=s[u]||{_errors:[]},s=s[u],c++}}};return a(this),r}static assert(t){if(!(t instanceof gn))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Ne.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const a of this.issues)a.path.length>0?(n[a.path[0]]=n[a.path[0]]||[],n[a.path[0]].push(t(a))):r.push(t(a));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}gn.create=e=>new gn(e);const Ja=(e,t)=>{let n;switch(e.code){case te.invalid_type:e.received===ue.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case te.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,Ne.jsonStringifyReplacer)}`;break;case te.unrecognized_keys:n=`Unrecognized key(s) in object: ${Ne.joinValues(e.keys,", ")}`;break;case te.invalid_union:n="Invalid input";break;case te.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Ne.joinValues(e.options)}`;break;case te.invalid_enum_value:n=`Invalid enum value. Expected ${Ne.joinValues(e.options)}, received '${e.received}'`;break;case te.invalid_arguments:n="Invalid function arguments";break;case te.invalid_return_type:n="Invalid function return type";break;case te.invalid_date:n="Invalid date";break;case te.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:Ne.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case te.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case te.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case te.custom:n="Invalid input";break;case te.invalid_intersection_types:n="Intersection results could not be merged";break;case te.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case te.not_finite:n="Number must be finite";break;default:n=t.defaultError,Ne.assertNever(e)}return{message:n}};let y1=Ja;function QS(e){y1=e}function nc(){return y1}const rc=e=>{const{data:t,path:n,errorMaps:r,issueData:a}=e,i=[...n,...a.path||[]],o={...a,path:i};if(a.message!==void 0)return{...a,path:i,message:a.message};let s="";const c=r.filter(u=>!!u).slice().reverse();for(const u of c)s=u(o,{data:t,defaultError:s}).message;return{...a,path:i,message:s}},eO=[];function ce(e,t){const n=nc(),r=rc({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Ja?void 0:Ja].filter(a=>!!a)});e.common.issues.push(r)}class Ht{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const a of n){if(a.status==="aborted")return we;a.status==="dirty"&&t.dirty(),r.push(a.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const a of n){const i=await a.key,o=await a.value;r.push({key:i,value:o})}return Ht.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const a of n){const{key:i,value:o}=a;if(i.status==="aborted"||o.status==="aborted")return we;i.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof o.value<"u"||a.alwaysSet)&&(r[i.value]=o.value)}return{status:t.value,value:r}}}const we=Object.freeze({status:"aborted"}),Fa=e=>({status:"dirty",value:e}),Kt=e=>({status:"valid",value:e}),Gd=e=>e.status==="aborted",Zd=e=>e.status==="dirty",lo=e=>e.status==="valid",fo=e=>typeof Promise<"u"&&e instanceof Promise;function ac(e,t,n,r){if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function b1(e,t,n,r,a){if(typeof t=="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}var me;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(me||(me={}));var Yi,Gi;class Gn{constructor(t,n,r,a){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=a}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const fg=(e,t)=>{if(lo(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new gn(e.common.issues);return this._error=n,this._error}}};function Ee(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:a}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:a}:{errorMap:(o,s)=>{var c,u;const{message:l}=e;return o.code==="invalid_enum_value"?{message:l??s.defaultError}:typeof s.data>"u"?{message:(c=l??r)!==null&&c!==void 0?c:s.defaultError}:o.code!=="invalid_type"?{message:s.defaultError}:{message:(u=l??n)!==null&&u!==void 0?u:s.defaultError}},description:a}}class Re{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return Sr(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Sr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Ht,ctx:{common:t.parent.common,data:t.data,parsedType:Sr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(fo(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;const a={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Sr(t)},i=this._parseSync({data:t,path:a.path,parent:a});return fg(a,i)}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Sr(t)},a=this._parse({data:t,path:r.path,parent:r}),i=await(fo(a)?a:Promise.resolve(a));return fg(r,i)}refine(t,n){const r=a=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(a):n;return this._refinement((a,i)=>{const o=t(a),s=()=>i.addIssue({code:te.custom,...r(a)});return typeof Promise<"u"&&o instanceof Promise?o.then(c=>c?!0:(s(),!1)):o?!0:(s(),!1)})}refinement(t,n){return this._refinement((r,a)=>t(r)?!0:(a.addIssue(typeof n=="function"?n(r,a):n),!1))}_refinement(t){return new Nn({schema:this,typeName:_e.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return qn.create(this,this._def)}nullable(){return Ir.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Dn.create(this,this._def)}promise(){return ei.create(this,this._def)}or(t){return go.create([this,t],this._def)}and(t){return vo.create(this,t,this._def)}transform(t){return new Nn({...Ee(this._def),schema:this,typeName:_e.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new wo({...Ee(this._def),innerType:this,defaultValue:n,typeName:_e.ZodDefault})}brand(){return new Ch({typeName:_e.ZodBranded,type:this,...Ee(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new To({...Ee(this._def),innerType:this,catchValue:n,typeName:_e.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Zo.create(this,t)}readonly(){return Co.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const tO=/^c[^\s-]{8,}$/i,nO=/^[0-9a-z]+$/,rO=/^[0-9A-HJKMNP-TV-Z]{26}$/,aO=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,iO=/^[a-z0-9_-]{21}$/i,oO=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,sO=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,cO="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Ul;const uO=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,lO=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,dO=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,x1="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",fO=new RegExp(`^${x1}$`);function _1(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function hO(e){return new RegExp(`^${_1(e)}$`)}function w1(e){let t=`${x1}T${_1(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function pO(e,t){return!!((t==="v4"||!t)&&uO.test(e)||(t==="v6"||!t)&&lO.test(e))}class An extends Re{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==ue.string){const i=this._getOrReturnCtx(t);return ce(i,{code:te.invalid_type,expected:ue.string,received:i.parsedType}),we}const r=new Ht;let a;for(const i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(a=this._getOrReturnCtx(t,a),ce(a,{code:te.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="max")t.data.length>i.value&&(a=this._getOrReturnCtx(t,a),ce(a,{code:te.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="length"){const o=t.data.length>i.value,s=t.data.length<i.value;(o||s)&&(a=this._getOrReturnCtx(t,a),o?ce(a,{code:te.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):s&&ce(a,{code:te.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),r.dirty())}else if(i.kind==="email")sO.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"email",code:te.invalid_string,message:i.message}),r.dirty());else if(i.kind==="emoji")Ul||(Ul=new RegExp(cO,"u")),Ul.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"emoji",code:te.invalid_string,message:i.message}),r.dirty());else if(i.kind==="uuid")aO.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"uuid",code:te.invalid_string,message:i.message}),r.dirty());else if(i.kind==="nanoid")iO.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"nanoid",code:te.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid")tO.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"cuid",code:te.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid2")nO.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"cuid2",code:te.invalid_string,message:i.message}),r.dirty());else if(i.kind==="ulid")rO.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"ulid",code:te.invalid_string,message:i.message}),r.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{a=this._getOrReturnCtx(t,a),ce(a,{validation:"url",code:te.invalid_string,message:i.message}),r.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"regex",code:te.invalid_string,message:i.message}),r.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(a=this._getOrReturnCtx(t,a),ce(a,{code:te.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),r.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(a=this._getOrReturnCtx(t,a),ce(a,{code:te.invalid_string,validation:{startsWith:i.value},message:i.message}),r.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(a=this._getOrReturnCtx(t,a),ce(a,{code:te.invalid_string,validation:{endsWith:i.value},message:i.message}),r.dirty()):i.kind==="datetime"?w1(i).test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{code:te.invalid_string,validation:"datetime",message:i.message}),r.dirty()):i.kind==="date"?fO.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{code:te.invalid_string,validation:"date",message:i.message}),r.dirty()):i.kind==="time"?hO(i).test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{code:te.invalid_string,validation:"time",message:i.message}),r.dirty()):i.kind==="duration"?oO.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"duration",code:te.invalid_string,message:i.message}),r.dirty()):i.kind==="ip"?pO(t.data,i.version)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"ip",code:te.invalid_string,message:i.message}),r.dirty()):i.kind==="base64"?dO.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"base64",code:te.invalid_string,message:i.message}),r.dirty()):Ne.assertNever(i);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(a=>t.test(a),{validation:n,code:te.invalid_string,...me.errToObj(r)})}_addCheck(t){return new An({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...me.errToObj(t)})}url(t){return this._addCheck({kind:"url",...me.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...me.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...me.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...me.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...me.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...me.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...me.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...me.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...me.errToObj(t)})}datetime(t){var n,r;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,local:(r=t==null?void 0:t.local)!==null&&r!==void 0?r:!1,...me.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...me.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...me.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...me.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...me.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...me.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...me.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...me.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...me.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...me.errToObj(n)})}nonempty(t){return this.min(1,me.errToObj(t))}trim(){return new An({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new An({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new An({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}An.create=e=>{var t;return new An({checks:[],typeName:_e.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Ee(e)})};function mO(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,a=n>r?n:r,i=parseInt(e.toFixed(a).replace(".","")),o=parseInt(t.toFixed(a).replace(".",""));return i%o/Math.pow(10,a)}class jr extends Re{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==ue.number){const i=this._getOrReturnCtx(t);return ce(i,{code:te.invalid_type,expected:ue.number,received:i.parsedType}),we}let r;const a=new Ht;for(const i of this._def.checks)i.kind==="int"?Ne.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),ce(r,{code:te.invalid_type,expected:"integer",received:"float",message:i.message}),a.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),ce(r,{code:te.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),a.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),ce(r,{code:te.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),a.dirty()):i.kind==="multipleOf"?mO(t.data,i.value)!==0&&(r=this._getOrReturnCtx(t,r),ce(r,{code:te.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),ce(r,{code:te.not_finite,message:i.message}),a.dirty()):Ne.assertNever(i);return{status:a.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,me.toString(n))}gt(t,n){return this.setLimit("min",t,!1,me.toString(n))}lte(t,n){return this.setLimit("max",t,!0,me.toString(n))}lt(t,n){return this.setLimit("max",t,!1,me.toString(n))}setLimit(t,n,r,a){return new jr({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:me.toString(a)}]})}_addCheck(t){return new jr({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:me.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:me.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:me.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:me.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:me.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:me.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:me.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:me.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:me.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&Ne.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}jr.create=e=>new jr({checks:[],typeName:_e.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Ee(e)});class Pr extends Re{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==ue.bigint){const i=this._getOrReturnCtx(t);return ce(i,{code:te.invalid_type,expected:ue.bigint,received:i.parsedType}),we}let r;const a=new Ht;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),ce(r,{code:te.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),a.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),ce(r,{code:te.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),a.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),ce(r,{code:te.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):Ne.assertNever(i);return{status:a.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,me.toString(n))}gt(t,n){return this.setLimit("min",t,!1,me.toString(n))}lte(t,n){return this.setLimit("max",t,!0,me.toString(n))}lt(t,n){return this.setLimit("max",t,!1,me.toString(n))}setLimit(t,n,r,a){return new Pr({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:me.toString(a)}]})}_addCheck(t){return new Pr({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:me.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:me.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:me.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:me.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:me.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Pr.create=e=>{var t;return new Pr({checks:[],typeName:_e.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Ee(e)})};class ho extends Re{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==ue.boolean){const r=this._getOrReturnCtx(t);return ce(r,{code:te.invalid_type,expected:ue.boolean,received:r.parsedType}),we}return Kt(t.data)}}ho.create=e=>new ho({typeName:_e.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Ee(e)});class la extends Re{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==ue.date){const i=this._getOrReturnCtx(t);return ce(i,{code:te.invalid_type,expected:ue.date,received:i.parsedType}),we}if(isNaN(t.data.getTime())){const i=this._getOrReturnCtx(t);return ce(i,{code:te.invalid_date}),we}const r=new Ht;let a;for(const i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(a=this._getOrReturnCtx(t,a),ce(a,{code:te.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),r.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(a=this._getOrReturnCtx(t,a),ce(a,{code:te.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),r.dirty()):Ne.assertNever(i);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new la({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:me.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:me.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}la.create=e=>new la({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:_e.ZodDate,...Ee(e)});class ic extends Re{_parse(t){if(this._getType(t)!==ue.symbol){const r=this._getOrReturnCtx(t);return ce(r,{code:te.invalid_type,expected:ue.symbol,received:r.parsedType}),we}return Kt(t.data)}}ic.create=e=>new ic({typeName:_e.ZodSymbol,...Ee(e)});class po extends Re{_parse(t){if(this._getType(t)!==ue.undefined){const r=this._getOrReturnCtx(t);return ce(r,{code:te.invalid_type,expected:ue.undefined,received:r.parsedType}),we}return Kt(t.data)}}po.create=e=>new po({typeName:_e.ZodUndefined,...Ee(e)});class mo extends Re{_parse(t){if(this._getType(t)!==ue.null){const r=this._getOrReturnCtx(t);return ce(r,{code:te.invalid_type,expected:ue.null,received:r.parsedType}),we}return Kt(t.data)}}mo.create=e=>new mo({typeName:_e.ZodNull,...Ee(e)});class Qa extends Re{constructor(){super(...arguments),this._any=!0}_parse(t){return Kt(t.data)}}Qa.create=e=>new Qa({typeName:_e.ZodAny,...Ee(e)});class ra extends Re{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Kt(t.data)}}ra.create=e=>new ra({typeName:_e.ZodUnknown,...Ee(e)});class hr extends Re{_parse(t){const n=this._getOrReturnCtx(t);return ce(n,{code:te.invalid_type,expected:ue.never,received:n.parsedType}),we}}hr.create=e=>new hr({typeName:_e.ZodNever,...Ee(e)});class oc extends Re{_parse(t){if(this._getType(t)!==ue.undefined){const r=this._getOrReturnCtx(t);return ce(r,{code:te.invalid_type,expected:ue.void,received:r.parsedType}),we}return Kt(t.data)}}oc.create=e=>new oc({typeName:_e.ZodVoid,...Ee(e)});class Dn extends Re{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),a=this._def;if(n.parsedType!==ue.array)return ce(n,{code:te.invalid_type,expected:ue.array,received:n.parsedType}),we;if(a.exactLength!==null){const o=n.data.length>a.exactLength.value,s=n.data.length<a.exactLength.value;(o||s)&&(ce(n,{code:o?te.too_big:te.too_small,minimum:s?a.exactLength.value:void 0,maximum:o?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),r.dirty())}if(a.minLength!==null&&n.data.length<a.minLength.value&&(ce(n,{code:te.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),r.dirty()),a.maxLength!==null&&n.data.length>a.maxLength.value&&(ce(n,{code:te.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((o,s)=>a.type._parseAsync(new Gn(n,o,n.path,s)))).then(o=>Ht.mergeArray(r,o));const i=[...n.data].map((o,s)=>a.type._parseSync(new Gn(n,o,n.path,s)));return Ht.mergeArray(r,i)}get element(){return this._def.type}min(t,n){return new Dn({...this._def,minLength:{value:t,message:me.toString(n)}})}max(t,n){return new Dn({...this._def,maxLength:{value:t,message:me.toString(n)}})}length(t,n){return new Dn({...this._def,exactLength:{value:t,message:me.toString(n)}})}nonempty(t){return this.min(1,t)}}Dn.create=(e,t)=>new Dn({type:e,minLength:null,maxLength:null,exactLength:null,typeName:_e.ZodArray,...Ee(t)});function Na(e){if(e instanceof mt){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=qn.create(Na(r))}return new mt({...e._def,shape:()=>t})}else return e instanceof Dn?new Dn({...e._def,type:Na(e.element)}):e instanceof qn?qn.create(Na(e.unwrap())):e instanceof Ir?Ir.create(Na(e.unwrap())):e instanceof Zn?Zn.create(e.items.map(t=>Na(t))):e}class mt extends Re{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=Ne.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==ue.object){const u=this._getOrReturnCtx(t);return ce(u,{code:te.invalid_type,expected:ue.object,received:u.parsedType}),we}const{status:r,ctx:a}=this._processInputParams(t),{shape:i,keys:o}=this._getCached(),s=[];if(!(this._def.catchall instanceof hr&&this._def.unknownKeys==="strip"))for(const u in a.data)o.includes(u)||s.push(u);const c=[];for(const u of o){const l=i[u],d=a.data[u];c.push({key:{status:"valid",value:u},value:l._parse(new Gn(a,d,a.path,u)),alwaysSet:u in a.data})}if(this._def.catchall instanceof hr){const u=this._def.unknownKeys;if(u==="passthrough")for(const l of s)c.push({key:{status:"valid",value:l},value:{status:"valid",value:a.data[l]}});else if(u==="strict")s.length>0&&(ce(a,{code:te.unrecognized_keys,keys:s}),r.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const l of s){const d=a.data[l];c.push({key:{status:"valid",value:l},value:u._parse(new Gn(a,d,a.path,l)),alwaysSet:l in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const u=[];for(const l of c){const d=await l.key,f=await l.value;u.push({key:d,value:f,alwaysSet:l.alwaysSet})}return u}).then(u=>Ht.mergeObjectSync(r,u)):Ht.mergeObjectSync(r,c)}get shape(){return this._def.shape()}strict(t){return me.errToObj,new mt({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var a,i,o,s;const c=(o=(i=(a=this._def).errorMap)===null||i===void 0?void 0:i.call(a,n,r).message)!==null&&o!==void 0?o:r.defaultError;return n.code==="unrecognized_keys"?{message:(s=me.errToObj(t).message)!==null&&s!==void 0?s:c}:{message:c}}}:{}})}strip(){return new mt({...this._def,unknownKeys:"strip"})}passthrough(){return new mt({...this._def,unknownKeys:"passthrough"})}extend(t){return new mt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new mt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:_e.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new mt({...this._def,catchall:t})}pick(t){const n={};return Ne.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new mt({...this._def,shape:()=>n})}omit(t){const n={};return Ne.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new mt({...this._def,shape:()=>n})}deepPartial(){return Na(this)}partial(t){const n={};return Ne.objectKeys(this.shape).forEach(r=>{const a=this.shape[r];t&&!t[r]?n[r]=a:n[r]=a.optional()}),new mt({...this._def,shape:()=>n})}required(t){const n={};return Ne.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let i=this.shape[r];for(;i instanceof qn;)i=i._def.innerType;n[r]=i}}),new mt({...this._def,shape:()=>n})}keyof(){return T1(Ne.objectKeys(this.shape))}}mt.create=(e,t)=>new mt({shape:()=>e,unknownKeys:"strip",catchall:hr.create(),typeName:_e.ZodObject,...Ee(t)});mt.strictCreate=(e,t)=>new mt({shape:()=>e,unknownKeys:"strict",catchall:hr.create(),typeName:_e.ZodObject,...Ee(t)});mt.lazycreate=(e,t)=>new mt({shape:e,unknownKeys:"strip",catchall:hr.create(),typeName:_e.ZodObject,...Ee(t)});class go extends Re{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function a(i){for(const s of i)if(s.result.status==="valid")return s.result;for(const s of i)if(s.result.status==="dirty")return n.common.issues.push(...s.ctx.common.issues),s.result;const o=i.map(s=>new gn(s.ctx.common.issues));return ce(n,{code:te.invalid_union,unionErrors:o}),we}if(n.common.async)return Promise.all(r.map(async i=>{const o={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:o}),ctx:o}})).then(a);{let i;const o=[];for(const c of r){const u={...n,common:{...n.common,issues:[]},parent:null},l=c._parseSync({data:n.data,path:n.path,parent:u});if(l.status==="valid")return l;l.status==="dirty"&&!i&&(i={result:l,ctx:u}),u.common.issues.length&&o.push(u.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;const s=o.map(c=>new gn(c));return ce(n,{code:te.invalid_union,unionErrors:s}),we}}get options(){return this._def.options}}go.create=(e,t)=>new go({options:e,typeName:_e.ZodUnion,...Ee(t)});const nr=e=>e instanceof bo?nr(e.schema):e instanceof Nn?nr(e.innerType()):e instanceof xo?[e.value]:e instanceof Dr?e.options:e instanceof _o?Ne.objectValues(e.enum):e instanceof wo?nr(e._def.innerType):e instanceof po?[void 0]:e instanceof mo?[null]:e instanceof qn?[void 0,...nr(e.unwrap())]:e instanceof Ir?[null,...nr(e.unwrap())]:e instanceof Ch||e instanceof Co?nr(e.unwrap()):e instanceof To?nr(e._def.innerType):[];class ru extends Re{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ue.object)return ce(n,{code:te.invalid_type,expected:ue.object,received:n.parsedType}),we;const r=this.discriminator,a=n.data[r],i=this.optionsMap.get(a);return i?n.common.async?i._parseAsync({data:n.data,path:n.path,parent:n}):i._parseSync({data:n.data,path:n.path,parent:n}):(ce(n,{code:te.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),we)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const a=new Map;for(const i of n){const o=nr(i.shape[t]);if(!o.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const s of o){if(a.has(s))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(s)}`);a.set(s,i)}}return new ru({typeName:_e.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:a,...Ee(r)})}}function Kd(e,t){const n=Sr(e),r=Sr(t);if(e===t)return{valid:!0,data:e};if(n===ue.object&&r===ue.object){const a=Ne.objectKeys(t),i=Ne.objectKeys(e).filter(s=>a.indexOf(s)!==-1),o={...e,...t};for(const s of i){const c=Kd(e[s],t[s]);if(!c.valid)return{valid:!1};o[s]=c.data}return{valid:!0,data:o}}else if(n===ue.array&&r===ue.array){if(e.length!==t.length)return{valid:!1};const a=[];for(let i=0;i<e.length;i++){const o=e[i],s=t[i],c=Kd(o,s);if(!c.valid)return{valid:!1};a.push(c.data)}return{valid:!0,data:a}}else return n===ue.date&&r===ue.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class vo extends Re{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),a=(i,o)=>{if(Gd(i)||Gd(o))return we;const s=Kd(i.value,o.value);return s.valid?((Zd(i)||Zd(o))&&n.dirty(),{status:n.value,value:s.data}):(ce(r,{code:te.invalid_intersection_types}),we)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([i,o])=>a(i,o)):a(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}vo.create=(e,t,n)=>new vo({left:e,right:t,typeName:_e.ZodIntersection,...Ee(n)});class Zn extends Re{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ue.array)return ce(r,{code:te.invalid_type,expected:ue.array,received:r.parsedType}),we;if(r.data.length<this._def.items.length)return ce(r,{code:te.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),we;!this._def.rest&&r.data.length>this._def.items.length&&(ce(r,{code:te.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const i=[...r.data].map((o,s)=>{const c=this._def.items[s]||this._def.rest;return c?c._parse(new Gn(r,o,r.path,s)):null}).filter(o=>!!o);return r.common.async?Promise.all(i).then(o=>Ht.mergeArray(n,o)):Ht.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new Zn({...this._def,rest:t})}}Zn.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Zn({items:e,typeName:_e.ZodTuple,rest:null,...Ee(t)})};class yo extends Re{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ue.object)return ce(r,{code:te.invalid_type,expected:ue.object,received:r.parsedType}),we;const a=[],i=this._def.keyType,o=this._def.valueType;for(const s in r.data)a.push({key:i._parse(new Gn(r,s,r.path,s)),value:o._parse(new Gn(r,r.data[s],r.path,s)),alwaysSet:s in r.data});return r.common.async?Ht.mergeObjectAsync(n,a):Ht.mergeObjectSync(n,a)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof Re?new yo({keyType:t,valueType:n,typeName:_e.ZodRecord,...Ee(r)}):new yo({keyType:An.create(),valueType:t,typeName:_e.ZodRecord,...Ee(n)})}}class sc extends Re{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ue.map)return ce(r,{code:te.invalid_type,expected:ue.map,received:r.parsedType}),we;const a=this._def.keyType,i=this._def.valueType,o=[...r.data.entries()].map(([s,c],u)=>({key:a._parse(new Gn(r,s,r.path,[u,"key"])),value:i._parse(new Gn(r,c,r.path,[u,"value"]))}));if(r.common.async){const s=new Map;return Promise.resolve().then(async()=>{for(const c of o){const u=await c.key,l=await c.value;if(u.status==="aborted"||l.status==="aborted")return we;(u.status==="dirty"||l.status==="dirty")&&n.dirty(),s.set(u.value,l.value)}return{status:n.value,value:s}})}else{const s=new Map;for(const c of o){const u=c.key,l=c.value;if(u.status==="aborted"||l.status==="aborted")return we;(u.status==="dirty"||l.status==="dirty")&&n.dirty(),s.set(u.value,l.value)}return{status:n.value,value:s}}}}sc.create=(e,t,n)=>new sc({valueType:t,keyType:e,typeName:_e.ZodMap,...Ee(n)});class da extends Re{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ue.set)return ce(r,{code:te.invalid_type,expected:ue.set,received:r.parsedType}),we;const a=this._def;a.minSize!==null&&r.data.size<a.minSize.value&&(ce(r,{code:te.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),n.dirty()),a.maxSize!==null&&r.data.size>a.maxSize.value&&(ce(r,{code:te.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),n.dirty());const i=this._def.valueType;function o(c){const u=new Set;for(const l of c){if(l.status==="aborted")return we;l.status==="dirty"&&n.dirty(),u.add(l.value)}return{status:n.value,value:u}}const s=[...r.data.values()].map((c,u)=>i._parse(new Gn(r,c,r.path,u)));return r.common.async?Promise.all(s).then(c=>o(c)):o(s)}min(t,n){return new da({...this._def,minSize:{value:t,message:me.toString(n)}})}max(t,n){return new da({...this._def,maxSize:{value:t,message:me.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}da.create=(e,t)=>new da({valueType:e,minSize:null,maxSize:null,typeName:_e.ZodSet,...Ee(t)});class Wa extends Re{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ue.function)return ce(n,{code:te.invalid_type,expected:ue.function,received:n.parsedType}),we;function r(s,c){return rc({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,nc(),Ja].filter(u=>!!u),issueData:{code:te.invalid_arguments,argumentsError:c}})}function a(s,c){return rc({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,nc(),Ja].filter(u=>!!u),issueData:{code:te.invalid_return_type,returnTypeError:c}})}const i={errorMap:n.common.contextualErrorMap},o=n.data;if(this._def.returns instanceof ei){const s=this;return Kt(async function(...c){const u=new gn([]),l=await s._def.args.parseAsync(c,i).catch(h=>{throw u.addIssue(r(c,h)),u}),d=await Reflect.apply(o,this,l);return await s._def.returns._def.type.parseAsync(d,i).catch(h=>{throw u.addIssue(a(d,h)),u})})}else{const s=this;return Kt(function(...c){const u=s._def.args.safeParse(c,i);if(!u.success)throw new gn([r(c,u.error)]);const l=Reflect.apply(o,this,u.data),d=s._def.returns.safeParse(l,i);if(!d.success)throw new gn([a(l,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new Wa({...this._def,args:Zn.create(t).rest(ra.create())})}returns(t){return new Wa({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new Wa({args:t||Zn.create([]).rest(ra.create()),returns:n||ra.create(),typeName:_e.ZodFunction,...Ee(r)})}}class bo extends Re{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}bo.create=(e,t)=>new bo({getter:e,typeName:_e.ZodLazy,...Ee(t)});class xo extends Re{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return ce(n,{received:n.data,code:te.invalid_literal,expected:this._def.value}),we}return{status:"valid",value:t.data}}get value(){return this._def.value}}xo.create=(e,t)=>new xo({value:e,typeName:_e.ZodLiteral,...Ee(t)});function T1(e,t){return new Dr({values:e,typeName:_e.ZodEnum,...Ee(t)})}class Dr extends Re{constructor(){super(...arguments),Yi.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return ce(n,{expected:Ne.joinValues(r),received:n.parsedType,code:te.invalid_type}),we}if(ac(this,Yi)||b1(this,Yi,new Set(this._def.values)),!ac(this,Yi).has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return ce(n,{received:n.data,code:te.invalid_enum_value,options:r}),we}return Kt(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Dr.create(t,{...this._def,...n})}exclude(t,n=this._def){return Dr.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}Yi=new WeakMap;Dr.create=T1;class _o extends Re{constructor(){super(...arguments),Gi.set(this,void 0)}_parse(t){const n=Ne.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==ue.string&&r.parsedType!==ue.number){const a=Ne.objectValues(n);return ce(r,{expected:Ne.joinValues(a),received:r.parsedType,code:te.invalid_type}),we}if(ac(this,Gi)||b1(this,Gi,new Set(Ne.getValidEnumValues(this._def.values))),!ac(this,Gi).has(t.data)){const a=Ne.objectValues(n);return ce(r,{received:r.data,code:te.invalid_enum_value,options:a}),we}return Kt(t.data)}get enum(){return this._def.values}}Gi=new WeakMap;_o.create=(e,t)=>new _o({values:e,typeName:_e.ZodNativeEnum,...Ee(t)});class ei extends Re{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ue.promise&&n.common.async===!1)return ce(n,{code:te.invalid_type,expected:ue.promise,received:n.parsedType}),we;const r=n.parsedType===ue.promise?n.data:Promise.resolve(n.data);return Kt(r.then(a=>this._def.type.parseAsync(a,{path:n.path,errorMap:n.common.contextualErrorMap})))}}ei.create=(e,t)=>new ei({type:e,typeName:_e.ZodPromise,...Ee(t)});class Nn extends Re{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===_e.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),a=this._def.effect||null,i={addIssue:o=>{ce(r,o),o.fatal?n.abort():n.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),a.type==="preprocess"){const o=a.transform(r.data,i);if(r.common.async)return Promise.resolve(o).then(async s=>{if(n.value==="aborted")return we;const c=await this._def.schema._parseAsync({data:s,path:r.path,parent:r});return c.status==="aborted"?we:c.status==="dirty"||n.value==="dirty"?Fa(c.value):c});{if(n.value==="aborted")return we;const s=this._def.schema._parseSync({data:o,path:r.path,parent:r});return s.status==="aborted"?we:s.status==="dirty"||n.value==="dirty"?Fa(s.value):s}}if(a.type==="refinement"){const o=s=>{const c=a.refinement(s,i);if(r.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return s};if(r.common.async===!1){const s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?we:(s.status==="dirty"&&n.dirty(),o(s.value),{status:n.value,value:s.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>s.status==="aborted"?we:(s.status==="dirty"&&n.dirty(),o(s.value).then(()=>({status:n.value,value:s.value}))))}if(a.type==="transform")if(r.common.async===!1){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!lo(o))return o;const s=a.transform(o.value,i);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:s}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(o=>lo(o)?Promise.resolve(a.transform(o.value,i)).then(s=>({status:n.value,value:s})):o);Ne.assertNever(a)}}Nn.create=(e,t,n)=>new Nn({schema:e,typeName:_e.ZodEffects,effect:t,...Ee(n)});Nn.createWithPreprocess=(e,t,n)=>new Nn({schema:t,effect:{type:"preprocess",transform:e},typeName:_e.ZodEffects,...Ee(n)});class qn extends Re{_parse(t){return this._getType(t)===ue.undefined?Kt(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}qn.create=(e,t)=>new qn({innerType:e,typeName:_e.ZodOptional,...Ee(t)});class Ir extends Re{_parse(t){return this._getType(t)===ue.null?Kt(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Ir.create=(e,t)=>new Ir({innerType:e,typeName:_e.ZodNullable,...Ee(t)});class wo extends Re{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===ue.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}wo.create=(e,t)=>new wo({innerType:e,typeName:_e.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Ee(t)});class To extends Re{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},a=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return fo(a)?a.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new gn(r.common.issues)},input:r.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new gn(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}To.create=(e,t)=>new To({innerType:e,typeName:_e.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Ee(t)});class cc extends Re{_parse(t){if(this._getType(t)!==ue.nan){const r=this._getOrReturnCtx(t);return ce(r,{code:te.invalid_type,expected:ue.nan,received:r.parsedType}),we}return{status:"valid",value:t.data}}}cc.create=e=>new cc({typeName:_e.ZodNaN,...Ee(e)});const gO=Symbol("zod_brand");class Ch extends Re{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class Zo extends Re{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?we:i.status==="dirty"?(n.dirty(),Fa(i.value)):this._def.out._parseAsync({data:i.value,path:r.path,parent:r})})();{const a=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?we:a.status==="dirty"?(n.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:r.path,parent:r})}}static create(t,n){return new Zo({in:t,out:n,typeName:_e.ZodPipeline})}}class Co extends Re{_parse(t){const n=this._def.innerType._parse(t),r=a=>(lo(a)&&(a.value=Object.freeze(a.value)),a);return fo(n)?n.then(a=>r(a)):r(n)}unwrap(){return this._def.innerType}}Co.create=(e,t)=>new Co({innerType:e,typeName:_e.ZodReadonly,...Ee(t)});function C1(e,t={},n){return e?Qa.create().superRefine((r,a)=>{var i,o;if(!e(r)){const s=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,c=(o=(i=s.fatal)!==null&&i!==void 0?i:n)!==null&&o!==void 0?o:!0,u=typeof s=="string"?{message:s}:s;a.addIssue({code:"custom",...u,fatal:c})}}):Qa.create()}const vO={object:mt.lazycreate};var _e;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(_e||(_e={}));const yO=(e,t={message:`Input not instance of ${e.name}`})=>C1(n=>n instanceof e,t),k1=An.create,S1=jr.create,bO=cc.create,xO=Pr.create,O1=ho.create,_O=la.create,wO=ic.create,TO=po.create,CO=mo.create,kO=Qa.create,SO=ra.create,OO=hr.create,EO=oc.create,$O=Dn.create,MO=mt.create,RO=mt.strictCreate,AO=go.create,jO=ru.create,PO=vo.create,DO=Zn.create,IO=yo.create,NO=sc.create,FO=da.create,LO=Wa.create,UO=bo.create,WO=xo.create,BO=Dr.create,zO=_o.create,HO=ei.create,hg=Nn.create,VO=qn.create,qO=Ir.create,YO=Nn.createWithPreprocess,GO=Zo.create,ZO=()=>k1().optional(),KO=()=>S1().optional(),XO=()=>O1().optional(),JO={string:e=>An.create({...e,coerce:!0}),number:e=>jr.create({...e,coerce:!0}),boolean:e=>ho.create({...e,coerce:!0}),bigint:e=>Pr.create({...e,coerce:!0}),date:e=>la.create({...e,coerce:!0})},QO=we;var Ft=Object.freeze({__proto__:null,defaultErrorMap:Ja,setErrorMap:QS,getErrorMap:nc,makeIssue:rc,EMPTY_PATH:eO,addIssueToContext:ce,ParseStatus:Ht,INVALID:we,DIRTY:Fa,OK:Kt,isAborted:Gd,isDirty:Zd,isValid:lo,isAsync:fo,get util(){return Ne},get objectUtil(){return Yd},ZodParsedType:ue,getParsedType:Sr,ZodType:Re,datetimeRegex:w1,ZodString:An,ZodNumber:jr,ZodBigInt:Pr,ZodBoolean:ho,ZodDate:la,ZodSymbol:ic,ZodUndefined:po,ZodNull:mo,ZodAny:Qa,ZodUnknown:ra,ZodNever:hr,ZodVoid:oc,ZodArray:Dn,ZodObject:mt,ZodUnion:go,ZodDiscriminatedUnion:ru,ZodIntersection:vo,ZodTuple:Zn,ZodRecord:yo,ZodMap:sc,ZodSet:da,ZodFunction:Wa,ZodLazy:bo,ZodLiteral:xo,ZodEnum:Dr,ZodNativeEnum:_o,ZodPromise:ei,ZodEffects:Nn,ZodTransformer:Nn,ZodOptional:qn,ZodNullable:Ir,ZodDefault:wo,ZodCatch:To,ZodNaN:cc,BRAND:gO,ZodBranded:Ch,ZodPipeline:Zo,ZodReadonly:Co,custom:C1,Schema:Re,ZodSchema:Re,late:vO,get ZodFirstPartyTypeKind(){return _e},coerce:JO,any:kO,array:$O,bigint:xO,boolean:O1,date:_O,discriminatedUnion:jO,effect:hg,enum:BO,function:LO,instanceof:yO,intersection:PO,lazy:UO,literal:WO,map:NO,nan:bO,nativeEnum:zO,never:OO,null:CO,nullable:qO,number:S1,object:MO,oboolean:XO,onumber:KO,optional:VO,ostring:ZO,pipeline:GO,preprocess:YO,promise:HO,record:IO,set:FO,strictObject:RO,string:k1,symbol:wO,transformer:hg,tuple:DO,undefined:TO,union:AO,unknown:SO,void:EO,NEVER:QO,ZodIssueCode:te,quotelessJson:JS,ZodError:gn});const au=()=>{const{texts:{formValidation:e}}=p.useContext(bn),t=p.useCallback(v=>(v!=null&&v.useCoerce?Ft.coerce:Ft).string({invalid_type_error:e.required,required_error:e.required}).transform(_=>_??null),[e.required]),n=p.useCallback(v=>t(v).nullable().optional().transform(m=>m??null),[t]),r=p.useCallback(v=>{const m=(v==null?void 0:v.min)??Number.MIN_SAFE_INTEGER,_=(v==null?void 0:v.max)??Number.MAX_SAFE_INTEGER,w=(v!=null&&v.useCoerce?Ft.coerce:Ft).number({invalid_type_error:e.required,required_error:e.required}).min(m,e.lessThanMin(m)).max(_,e.moreThanMax(_));return w.transform(b=>b??null),w},[e]),a=p.useCallback(v=>r(v).nullable().optional().transform(m=>m??null),[r]),i=p.useCallback(v=>(v!=null&&v.useCoerce?Ft.coerce:Ft).boolean({invalid_type_error:e.required,required_error:e.required}).transform(m=>m??null),[e.required]),o=p.useCallback(v=>(v!=null&&v.useCoerce?Ft.coerce:Ft).string({invalid_type_error:e.required,required_error:e.required}).refine(u1,{message:e.invalidDate}).transform(_=>_??null),[e.invalidDate,e.required]),s=p.useCallback(v=>o(v).nullable().transform(m=>m??null),[o]),c=p.useCallback((v,m)=>Ft.enum(v,{invalid_type_error:e.required,required_error:e.required}).transform(w=>w??null),[e.required]),u=p.useCallback((v,m)=>c(v,m).nullable().transform(_=>_??null),[c]),l=p.useCallback(v=>Ft.object({id:a({useCoerce:!0})}).nullable().transform(_=>_??null),[a]),d=p.useCallback(v=>Ft.object({id:r()}).transform(_=>_??null),[r]),f=p.useCallback(v=>Ft.object({id:n({useCoerce:!0})}).nullable().transform(_=>_??null),[n]),h=p.useCallback(v=>Ft.object({id:t()}).transform(_=>_??null),[t]),g=p.useCallback(({required:v,multiple:m,maxFileSize:_})=>Ft.any().transform(b=>Array.from(b??[])).refine(b=>!v||(b==null?void 0:b.length)>0,"File is required.").refine(b=>m||(b==null?void 0:b.length)<=1,"Multiple files not allowed.").refine(b=>b.every(T=>T.size<=_),`Maximum file size is ${eu(_)}.`).transform(b=>(m?b:b==null?void 0:b[0])??null),[]);return{zString:n,zStringRequired:t,zNumber:a,zNumberRequired:r,zBool:i,zDate:s,zDateRequired:o,zEnum:u,zEnumRequired:c,zObjectIdInt:l,zObjectIdIntRequired:d,zObjectIdStr:f,zObjectIdStrRequired:h,zFile:g}},E1=(e,t,n)=>p.useMemo(()=>n||e!=="date"&&e!=="datetime-local"||t?e:"text",[t,e,n]),kh=p.createContext({useMsal:!1,msalInstance:null,msalScopes:[]}),$1=p.createContext({delegation:null,setDelegation:()=>{},availableDelegations:null,setAvailableDelegations:()=>{},refreshAvailableDelegations:async()=>{}}),eE="_button_1wjon_1",tE="_filled_1wjon_7",nE="_sm_1wjon_13",rE="_md_1wjon_18",aE="_lg_1wjon_23",ja={button:eE,filled:tE,sm:nE,md:rE,lg:aE},fa=({variant:e="filled",color:t="primary",size:n="md",className:r,children:a,...i})=>i.as==="link"?y.jsx(Ac.Link,{to:i.href??"/",className:oe(`luminus-primary-button ${t} btn ${e==="outlined"?`btn-outline-${t}`:`btn-${t}`} ${r??""}`,ja.button,ja[e],ja[n]),...i,children:a}):i.as==="button"||i.as===void 0?y.jsx("button",{type:"button",className:oe(`luminus-primary-button ${t} btn ${e==="outlined"?`btn-outline-${t}`:`btn-${t}`} ${r??""}`,ja.button,ja[e],ja[n]),...i,children:a}):null,iE="_button_1r3i0_1",Xd={button:iE},iu=({color:e="primary",icon:t,className:n,children:r,...a})=>a.as==="link"?y.jsxs(Ac.Link,{to:a.href??"/",className:oe(`luminus-context-button btn text-${e} ${n??""}`,Xd.button),...a,children:[t,r]}):a.as==="button"||a.as===void 0?y.jsxs("button",{type:"button",className:oe(`luminus-context-button btn text-${e} ${n??""}`,Xd.button),...a,children:[t,r]}):null,oE="_icon-button_15e26_1",sE="_sm_15e26_14",cE="_md_15e26_23",uE="_lg_15e26_32",ms={"icon-button":"_icon-button_15e26_1",iconButton:oE,sm:sE,md:cE,lg:uE},ou=({type:e="button",color:t="primary",size:n="md",children:r,className:a,...i})=>i.as==="link"?y.jsx(Ac.Link,{to:i.href??"/",className:oe(`luminus-icon-button btn text-${t} ${a??""}`,ms.iconButton,ms[n]),...i,children:r}):i.as==="button"||i.as===void 0?y.jsx("button",{type:e,className:oe(`luminus-icon-button btn text-${t} ${a??""}`,ms.iconButton,ms[n]),...i,children:r}):null,lE="_h1_14r4v_1",dE="_h3_14r4v_8",fE="_h6_14r4v_15",hE="_subtitle_14r4v_22",pE="_body_14r4v_29",mE="_body2_14r4v_36",gE="_caption_14r4v_43",vE="_form-label_14r4v_50",_r={h1:lE,h3:dE,h6:fE,subtitle:hE,body:pE,body2:mE,caption:gE,"form-label":"_form-label_14r4v_50",formLabel:vE},yE=({variant:e,className:t,children:n})=>{switch(e){case"h1":return y.jsx("h1",{className:oe("luminus-text-primary luminus-h1",_r.h1,t),children:n});case"h3":return y.jsx("h3",{className:oe("luminus-text luminus-h3",_r.h3,t),children:n});case"h6":return y.jsx("h6",{className:oe("luminus-text luminus-h6",_r.h6,t),children:n});case"subtitle":return y.jsx("div",{className:oe("luminus-text luminus-subtitle",_r.subtitle,t),children:n});case"body":return y.jsx("div",{className:oe("luminus-text luminus-body",_r.body,t),children:n});case"body2":return y.jsx("div",{className:oe("luminus-text luminus-body2",_r.body2,t),children:n});case"caption":return y.jsx("div",{className:oe("luminus-text-muted luminus-caption",_r.caption,t),children:n});case"form-label":return y.jsx("div",{className:oe("luminus-text luminus-form-label",_r.formLabel,t),children:n});default:return y.jsx(y.Fragment,{children:n})}},M1=({variant:e,className:t,children:n})=>y.jsx(yE,{variant:e,className:t,children:n}),bE="_feedback_esh1j_1",xE="_feedback-spacer_esh1j_8",pg={feedback:bE,"feedback-spacer":"_feedback-spacer_esh1j_8",feedbackSpacer:xE},su=({message:e})=>y.jsxs(y.Fragment,{children:[y.jsx("div",{className:oe("invalid-feedback luminus-invalid-feedback",pg.feedback),children:e}),y.jsx("div",{className:oe("invalid-feedback-spacer",pg.feedbackSpacer),children:e})]});function _E(e){return Fe({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},child:[]}]})(e)}function wE(e){return Fe({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},child:[]}]})(e)}function TE(e){return Fe({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"},child:[]}]})(e)}function CE(e){return Fe({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48zm250.2-143.7c-12.2-12-47-8.7-64.4-6.5-17.2-10.5-28.7-25-36.8-46.3 3.9-16.1 10.1-40.6 5.4-56-4.2-26.2-37.8-23.6-42.6-5.9-4.4 16.1-.4 38.5 7 67.1-10 23.9-24.9 56-35.4 74.4-20 10.3-47 26.2-51 46.2-3.3 15.8 26 55.2 76.1-31.2 22.4-7.4 46.8-16.5 68.4-20.1 18.9 10.2 41 17 55.8 17 25.5 0 28-28.2 17.5-38.7zm-198.1 77.8c5.1-13.7 24.5-29.5 30.4-35-19 30.3-30.4 35.7-30.4 35zm81.6-190.6c7.4 0 6.7 32.1 1.8 40.8-4.4-13.9-4.3-40.8-1.8-40.8zm-24.4 136.6c9.7-16.9 18-37 24.7-54.7 8.3 15.1 18.9 27.2 30.1 35.5-20.8 4.3-38.9 13.1-54.8 19.2zm131.6-5s-5 6-37.3-7.8c35.1-2.6 40.9 5.4 37.3 7.8z"},child:[]}]})(e)}const kE="_item_1dy8x_1",R1={item:kE},Jd=({color:e="primary",icon:t,className:n,children:r,...a})=>y.jsxs(co.Item,{className:oe(`btn luminus-dropdown-item text-nowrap rounded text-${e} ${n??""}`,R1.item),...a,children:[t,r]}),SE="_button_qhwih_1",OE={button:SE},A1=p.forwardRef(({color:e="primary",icon:t=y.jsx(Bk,{size:21}),text:n,onClick:r,className:a,children:i,...o},s)=>y.jsxs("button",{type:"button",ref:s,onClick:c=>{c.preventDefault(),r(c)},"aria-label":"dropdown toggle",className:oe(`btn luminus-context-button text-${e} ${a??""}`,OE.button),...o,children:[t,n]})),EE="_avatar-icon_1axl6_1",$E={"avatar-icon":"_avatar-icon_1axl6_1",avatarIcon:EE},j1=({name:e,fontSize:t,size:n})=>{const r=a=>{let i=0,o;for(o=0;o<a.length;o+=1)i=a.charCodeAt(o)+((i<<5)-i);let s="#";for(o=0;o<3;o+=1){const c=i>>o*8&255;s+=`00${c.toString(16)}`.slice(-2)}return s};return y.jsx(Tb,{placement:"bottom",overlay:y.jsx(hh,{children:e}),children:y.jsx("div",{className:oe("luminus-avatar-icon",$E.avatarIcon),style:{backgroundColor:r(e),fontSize:t??void 0,minHeight:n??void 0,height:n??void 0,maxHeight:n??void 0,minWidth:n??void 0,width:n??void 0,maxWidth:n??void 0},children:y.jsx("div",{children:`${e.split(" ")[0][0]}${e.split(" ")[1][0]}`})})})},ME=p.forwardRef(({userName:e,onClick:t,children:n},r)=>y.jsxs("button",{type:"button",ref:r,onClick:a=>{a.preventDefault(),t(a)},"aria-label":"User avatar toggle",className:"m-0 p-0",style:{backgroundColor:"transparent",border:"none",cursor:"pointer"},children:[y.jsx(j1,{name:e}),n]})),P1=e=>y.jsx(co.Toggle,{...e}),RE="_dropdown_1lk66_1",AE={dropdown:RE},D1=({toggle:e,children:t,...n})=>y.jsxs(co,{...n,children:[e,y.jsx(co.Menu,{className:oe("luminus-dropdown rounded shadow",AE.dropdown),children:t})]}),jE="_floating-label_19xda_1",PE="_without-label_19xda_21",DE="_floating-label-check_19xda_184",Wl={"floating-label":"_floating-label_19xda_1",floatingLabel:jE,"without-label":"_without-label_19xda_21",withoutLabel:PE,"floating-label-check":"_floating-label-check_19xda_184",floatingLabelCheck:DE},I1=p.forwardRef(({hidden:e,children:t,className:n,isInvalid:r,isForRadioInput:a,inputContainerClassName:i,isForCheckInput:o,...s},c)=>o?y.jsx("div",{className:oe("luminus-floating-label-check",Wl.floatingLabelCheck),children:t}):y.jsx(sh,{ref:c,label:s.withoutLabel?"":s.label,hidden:e??!1,className:oe(`luminus-floating-label ${n??""}`,Wl.floatingLabel,{[i??""]:i},{[Wl.withoutLabel]:s.withoutLabel}),children:t}));I1.displayName="FloatingLabelInput";const IE="_row-label-input_13ci8_1",NE="_label_13ci8_4",FE="_input-container_13ci8_9",LE="_invalid-feedback_13ci8_101",UE="_keep-check-label_13ci8_129",WE="_is-invalid_13ci8_157",Di={"row-label-input":"_row-label-input_13ci8_1",rowLabelInput:IE,label:NE,"input-container":"_input-container_13ci8_9",inputContainer:FE,"invalid-feedback":"_invalid-feedback_13ci8_101",invalidFeedback:LE,"keep-check-label":"_keep-check-label_13ci8_129",keepCheckLabel:UE,"is-invalid":"_is-invalid_13ci8_157",isInvalid:WE},Ko=p.forwardRef(({hidden:e,children:t,className:n,isInvalid:r,isForRadioInput:a,isForTextAreaInput:i,inputContainerClassName:o,...s},c)=>y.jsxs("div",{ref:c,className:oe("luminus-row-label row gx-0 gy-0",{"is-invalid":r},{[Di.isInvalid]:r},{[n??""]:n},{"d-none":e},Di.rowLabelInput),children:[!s.withoutLabel&&y.jsx("label",{className:oe("label col-6",{"col-12":i},Di.label),children:y.jsx(M1,{variant:"form-label",className:r?"text-danger":"",children:s.label})}),y.jsx("div",{className:oe("input-container",Di.inputContainer,{"col-6":!s.withoutLabel&&!i},{"col-12":s.withoutLabel||i},{[Di.keepCheckLabel]:a},{[o??""]:o}),children:t})]}));Ko.displayName="RowLabelInput";const N1=p.forwardRef(({children:e,className:t,hidden:n},r)=>y.jsx("div",{ref:r,className:`${n?"d-none":""} ${t}`,children:e}));N1.displayName="NoInputContainer";const BE=p.forwardRef(({onClick:e,text:t},n)=>y.jsx("div",{ref:n,onClick:r=>{r.preventDefault(),e(r)},role:"button",className:"middle-div",children:y.jsxs("div",{className:"d-flex flex-column align-items-center",children:[y.jsx("div",{className:"mt-",children:"…"}),y.jsx("div",{className:"mt-1 middle-letter",children:t})]})}));var Sh=Jo(),Se=e=>Xo(e,Sh),Oh=Jo();Se.write=e=>Xo(e,Oh);var cu=Jo();Se.onStart=e=>Xo(e,cu);var Eh=Jo();Se.onFrame=e=>Xo(e,Eh);var $h=Jo();Se.onFinish=e=>Xo(e,$h);var Ba=[];Se.setTimeout=(e,t)=>{const n=Se.now()+t,r=()=>{const i=Ba.findIndex(o=>o.cancel==r);~i&&Ba.splice(i,1),$r-=~i?1:0},a={time:n,handler:e,cancel:r};return Ba.splice(F1(n),0,a),$r+=1,L1(),a};var F1=e=>~(~Ba.findIndex(t=>t.time>e)||~Ba.length);Se.cancel=e=>{cu.delete(e),Eh.delete(e),$h.delete(e),Sh.delete(e),Oh.delete(e)};Se.sync=e=>{Qd=!0,Se.batchedUpdates(e),Qd=!1};Se.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...a){t=a,Se.onStart(n)}return r.handler=e,r.cancel=()=>{cu.delete(n),t=null},r};var Mh=typeof window<"u"?window.requestAnimationFrame:()=>{};Se.use=e=>Mh=e;Se.now=typeof performance<"u"?()=>performance.now():Date.now;Se.batchedUpdates=e=>e();Se.catch=console.error;Se.frameLoop="always";Se.advance=()=>{Se.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):W1()};var Er=-1,$r=0,Qd=!1;function Xo(e,t){Qd?(t.delete(e),e(0)):(t.add(e),L1())}function L1(){Er<0&&(Er=0,Se.frameLoop!=="demand"&&Mh(U1))}function zE(){Er=-1}function U1(){~Er&&(Mh(U1),Se.batchedUpdates(W1))}function W1(){const e=Er;Er=Se.now();const t=F1(Er);if(t&&(B1(Ba.splice(0,t),n=>n.handler()),$r-=t),!$r){zE();return}cu.flush(),Sh.flush(e?Math.min(64,Er-e):16.667),Eh.flush(),Oh.flush(),$h.flush()}function Jo(){let e=new Set,t=e;return{add(n){$r+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return $r-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,$r-=t.size,B1(t,r=>r(n)&&e.add(r)),$r+=e.size,t=e)}}}function B1(e,t){e.forEach(n=>{try{t(n)}catch(r){Se.catch(r)}})}var HE=Object.defineProperty,VE=(e,t)=>{for(var n in t)HE(e,n,{get:t[n],enumerable:!0})},Fn={};VE(Fn,{assign:()=>YE,colors:()=>Rr,createStringInterpolator:()=>Ah,skipAnimation:()=>H1,to:()=>z1,willAdvance:()=>jh});function ef(){}var qE=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),ee={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function rr(e,t){if(ee.arr(e)){if(!ee.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var Ce=(e,t)=>e.forEach(t);function Kn(e,t,n){if(ee.arr(e)){for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);return}for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var Zt=e=>ee.und(e)?[]:ee.arr(e)?e:[e];function eo(e,t){if(e.size){const n=Array.from(e);e.clear(),Ce(n,t)}}var Zi=(e,...t)=>eo(e,n=>n(...t)),Rh=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Ah,z1,Rr=null,H1=!1,jh=ef,YE=e=>{e.to&&(z1=e.to),e.now&&(Se.now=e.now),e.colors!==void 0&&(Rr=e.colors),e.skipAnimation!=null&&(H1=e.skipAnimation),e.createStringInterpolator&&(Ah=e.createStringInterpolator),e.requestAnimationFrame&&Se.use(e.requestAnimationFrame),e.batchedUpdates&&(Se.batchedUpdates=e.batchedUpdates),e.willAdvance&&(jh=e.willAdvance),e.frameLoop&&(Se.frameLoop=e.frameLoop)},to=new Set,Tn=[],Bl=[],uc=0,uu={get idle(){return!to.size&&!Tn.length},start(e){uc>e.priority?(to.add(e),Se.onStart(GE)):(V1(e),Se(tf))},advance:tf,sort(e){if(uc)Se.onFrame(()=>uu.sort(e));else{const t=Tn.indexOf(e);~t&&(Tn.splice(t,1),q1(e))}},clear(){Tn=[],to.clear()}};function GE(){to.forEach(V1),to.clear(),Se(tf)}function V1(e){Tn.includes(e)||q1(e)}function q1(e){Tn.splice(ZE(Tn,t=>t.priority>e.priority),0,e)}function tf(e){const t=Bl;for(let n=0;n<Tn.length;n++){const r=Tn[n];uc=r.priority,r.idle||(jh(r),r.advance(e),r.idle||t.push(r))}return uc=0,Bl=Tn,Bl.length=0,Tn=t,Tn.length>0}function ZE(e,t){const n=e.findIndex(t);return n<0?e.length:n}var KE=(e,t,n)=>Math.min(Math.max(n,e),t),XE={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},jn="[-+]?\\d*\\.?\\d+",lc=jn+"%";function lu(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var JE=new RegExp("rgb"+lu(jn,jn,jn)),QE=new RegExp("rgba"+lu(jn,jn,jn,jn)),e$=new RegExp("hsl"+lu(jn,lc,lc)),t$=new RegExp("hsla"+lu(jn,lc,lc,jn)),n$=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,r$=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,a$=/^#([0-9a-fA-F]{6})$/,i$=/^#([0-9a-fA-F]{8})$/;function o$(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=a$.exec(e))?parseInt(t[1]+"ff",16)>>>0:Rr&&Rr[e]!==void 0?Rr[e]:(t=JE.exec(e))?(Pa(t[1])<<24|Pa(t[2])<<16|Pa(t[3])<<8|255)>>>0:(t=QE.exec(e))?(Pa(t[1])<<24|Pa(t[2])<<16|Pa(t[3])<<8|vg(t[4]))>>>0:(t=n$.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=i$.exec(e))?parseInt(t[1],16)>>>0:(t=r$.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=e$.exec(e))?(mg(gg(t[1]),gs(t[2]),gs(t[3]))|255)>>>0:(t=t$.exec(e))?(mg(gg(t[1]),gs(t[2]),gs(t[3]))|vg(t[4]))>>>0:null}function zl(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function mg(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,a=2*n-r,i=zl(a,r,e+1/3),o=zl(a,r,e),s=zl(a,r,e-1/3);return Math.round(i*255)<<24|Math.round(o*255)<<16|Math.round(s*255)<<8}function Pa(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function gg(e){return(parseFloat(e)%360+360)%360/360}function vg(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function gs(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function yg(e){let t=o$(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,a=(t&65280)>>>8,i=(t&255)/255;return`rgba(${n}, ${r}, ${a}, ${i})`}var ko=(e,t,n)=>{if(ee.fun(e))return e;if(ee.arr(e))return ko({range:e,output:t,extrapolate:n});if(ee.str(e.output[0]))return Ah(e);const r=e,a=r.output,i=r.range||[0,1],o=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",c=r.easing||(u=>u);return u=>{const l=c$(u,i);return s$(u,i[l],i[l+1],a[l],a[l+1],c,o,s,r.map)}};function s$(e,t,n,r,a,i,o,s,c){let u=c?c(e):e;if(u<t){if(o==="identity")return u;o==="clamp"&&(u=t)}if(u>n){if(s==="identity")return u;s==="clamp"&&(u=n)}return r===a?r:t===n?e<=t?r:a:(t===-1/0?u=-u:n===1/0?u=u-t:u=(u-t)/(n-t),u=i(u),r===-1/0?u=-u:a===1/0?u=u+r:u=u*(a-r)+r,u)}function c$(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var u$=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*e,a=t==="end"?Math.floor(r):Math.ceil(r);return KE(0,1,a/e)},dc=1.70158,vs=dc*1.525,bg=dc+1,xg=2*Math.PI/3,_g=2*Math.PI/4.5,ys=e=>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,l$={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>bg*e*e*e-dc*e*e,easeOutBack:e=>1+bg*Math.pow(e-1,3)+dc*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((vs+1)*2*e-vs)/2:(Math.pow(2*e-2,2)*((vs+1)*(e*2-2)+vs)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*xg),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*xg)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*_g))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*_g)/2+1,easeInBounce:e=>1-ys(1-e),easeOutBounce:ys,easeInOutBounce:e=>e<.5?(1-ys(1-2*e))/2:(1+ys(2*e-1))/2,steps:u$},So=Symbol.for("FluidValue.get"),ti=Symbol.for("FluidValue.observers"),wn=e=>!!(e&&e[So]),tn=e=>e&&e[So]?e[So]():e,wg=e=>e[ti]||null;function d$(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Oo(e,t){const n=e[ti];n&&n.forEach(r=>{d$(r,t)})}var Y1=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");f$(this,e)}},f$=(e,t)=>G1(e,So,t);function pi(e,t){if(e[So]){let n=e[ti];n||G1(e,ti,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Eo(e,t){const n=e[ti];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[ti]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var G1=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Ds=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,h$=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Tg=new RegExp(`(${Ds.source})(%|[a-z]+)`,"i"),p$=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,du=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Z1=e=>{const[t,n]=m$(e);if(!t||Rh())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const a=window.getComputedStyle(document.documentElement).getPropertyValue(n);return a||e}else{if(n&&du.test(n))return Z1(n);if(n)return n}return e},m$=e=>{const t=du.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Hl,g$=(e,t,n,r,a)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${a})`,K1=e=>{Hl||(Hl=Rr?new RegExp(`(${Object.keys(Rr).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(i=>tn(i).replace(du,Z1).replace(h$,yg).replace(Hl,yg)),n=t.map(i=>i.match(Ds).map(Number)),a=n[0].map((i,o)=>n.map(s=>{if(!(o in s))throw Error('The arity of each "output" value must be equal');return s[o]})).map(i=>ko({...e,output:i}));return i=>{var c;const o=!Tg.test(t[0])&&((c=t.find(u=>Tg.test(u)))==null?void 0:c.replace(Ds,""));let s=0;return t[0].replace(Ds,()=>`${a[s++](i)}${o||""}`).replace(p$,g$)}},Ph="react-spring: ",X1=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${Ph}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},v$=X1(console.warn);function y$(){v$(`${Ph}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var b$=X1(console.warn);function x$(){b$(`${Ph}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function fu(e){return ee.str(e)&&(e[0]=="#"||/\d/.test(e)||!Rh()&&du.test(e)||e in(Rr||{}))}var Kr=Rh()?p.useEffect:p.useLayoutEffect,_$=()=>{const e=p.useRef(!1);return Kr(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function Dh(){const e=p.useState()[1],t=_$();return()=>{t.current&&e(Math.random())}}function w$(e,t){const[n]=p.useState(()=>({inputs:t,result:e()})),r=p.useRef(),a=r.current;let i=a;return i?t&&i.inputs&&T$(t,i.inputs)||(i={inputs:t,result:e()}):i=n,p.useEffect(()=>{r.current=i,a==n&&(n.inputs=n.result=void 0)},[i]),i.result}function T$(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var Ih=e=>p.useEffect(e,C$),C$=[];function nf(e){const t=p.useRef();return p.useEffect(()=>{t.current=e}),t.current}var $o=Symbol.for("Animated:node"),k$=e=>!!e&&e[$o]===e,zn=e=>e&&e[$o],Nh=(e,t)=>qE(e,$o,t),hu=e=>e&&e[$o]&&e[$o].getPayload(),J1=class{constructor(){Nh(this,this)}getPayload(){return this.payload||[]}},Qo=class extends J1{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,ee.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Qo(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return ee.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,ee.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Mo=class extends Qo{constructor(e){super(0),this._string=null,this._toString=ko({output:[e,e]})}static create(e){return new Mo(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(ee.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=ko({output:[this.getValue(),e]})),this._value=0,super.reset()}},fc={dependencies:null},pu=class extends J1{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Kn(this.source,(n,r)=>{k$(n)?t[r]=n.getValue(e):wn(n)?t[r]=tn(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Ce(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return Kn(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){fc.dependencies&&wn(e)&&fc.dependencies.add(e);const t=hu(e);t&&Ce(t,n=>this.add(n))}},Q1=class extends pu{constructor(e){super(e)}static create(e){return new Q1(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((n,r)=>n.setValue(e[r])).some(Boolean):(super.setValue(e.map(S$)),!0)}};function S$(e){return(fu(e)?Mo:Qo).create(e)}function rf(e){const t=zn(e);return t?t.constructor:ee.arr(e)?Q1:fu(e)?Mo:Qo}var Cg=(e,t)=>{const n=!ee.fun(e)||e.prototype&&e.prototype.isReactComponent;return p.forwardRef((r,a)=>{const i=p.useRef(null),o=n&&p.useCallback(g=>{i.current=$$(a,g)},[a]),[s,c]=E$(r,t),u=Dh(),l=()=>{const g=i.current;if(n&&!g)return;(g?t.applyAnimatedValues(g,s.getValue(!0)):!1)===!1&&u()},d=new O$(l,c),f=p.useRef();Kr(()=>(f.current=d,Ce(c,g=>pi(g,d)),()=>{f.current&&(Ce(f.current.deps,g=>Eo(g,f.current)),Se.cancel(f.current.update))})),p.useEffect(l,[]),Ih(()=>()=>{const g=f.current;Ce(g.deps,v=>Eo(v,g))});const h=t.getComponentProps(s.getValue());return ie.createElement(e,{...h,ref:o})})},O$=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&Se.write(this.update)}};function E$(e,t){const n=new Set;return fc.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new pu(e),fc.dependencies=null,[e,n]}function $$(e,t){return e&&(ee.fun(e)?e(t):e.current=t),t}var kg=Symbol.for("AnimatedComponent"),M$=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=a=>new pu(a),getComponentProps:r=a=>a}={})=>{const a={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=o=>{const s=Sg(o)||"Anonymous";return ee.str(o)?o=i[o]||(i[o]=Cg(o,a)):o=o[kg]||(o[kg]=Cg(o,a)),o.displayName=`Animated(${s})`,o};return Kn(e,(o,s)=>{ee.arr(e)&&(s=Sg(o)),i[s]=i(o)}),{animated:i}},Sg=e=>ee.str(e)?e:e&&ee.str(e.displayName)?e.displayName:ee.fun(e)&&e.name||null;function nn(e,...t){return ee.fun(e)?e(...t):e}var no=(e,t)=>e===!0||!!(t&&e&&(ee.fun(e)?e(t):Zt(e).includes(t))),ex=(e,t)=>ee.obj(e)?t&&e[t]:e,tx=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,R$=e=>e,mu=(e,t=R$)=>{let n=A$;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const a of n){const i=t(e[a],a);ee.und(i)||(r[a]=i)}return r},A$=["config","onProps","onStart","onChange","onPause","onResume","onRest"],j$={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function P$(e){const t={};let n=0;if(Kn(e,(r,a)=>{j$[a]||(t[a]=r,n++)}),n)return t}function Fh(e){const t=P$(e);if(t){const n={to:t};return Kn(e,(r,a)=>a in t||(n[a]=r)),n}return{...e}}function Ro(e){return e=tn(e),ee.arr(e)?e.map(Ro):fu(e)?Fn.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function nx(e){for(const t in e)return!0;return!1}function af(e){return ee.fun(e)||ee.arr(e)&&ee.obj(e[0])}function of(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function rx(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var Lh={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},sf={...Lh.default,mass:1,damping:1,easing:l$.linear,clamp:!1},D$=class{constructor(){this.velocity=0,Object.assign(this,sf)}};function I$(e,t,n){n&&(n={...n},Og(n,t),t={...n,...t}),Og(e,t),Object.assign(e,t);for(const o in sf)e[o]==null&&(e[o]=sf[o]);let{frequency:r,damping:a}=e;const{mass:i}=e;return ee.und(r)||(r<.01&&(r=.01),a<0&&(a=0),e.tension=Math.pow(2*Math.PI/r,2)*i,e.friction=4*Math.PI*a*i/r),e}function Og(e,t){if(!ee.und(t.decay))e.duration=void 0;else{const n=!ee.und(t.tension)||!ee.und(t.friction);(n||!ee.und(t.frequency)||!ee.und(t.damping)||!ee.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var Eg=[],N$=class{constructor(){this.changed=!1,this.values=Eg,this.toValues=null,this.fromValues=Eg,this.config=new D$,this.immediate=!1}};function ax(e,{key:t,props:n,defaultProps:r,state:a,actions:i}){return new Promise((o,s)=>{let c,u,l=no(n.cancel??(r==null?void 0:r.cancel),t);if(l)h();else{ee.und(n.pause)||(a.paused=no(n.pause,t));let g=r==null?void 0:r.pause;g!==!0&&(g=a.paused||no(g,t)),c=nn(n.delay||0,t),g?(a.resumeQueue.add(f),i.pause()):(i.resume(),f())}function d(){a.resumeQueue.add(f),a.timeouts.delete(u),u.cancel(),c=u.time-Se.now()}function f(){c>0&&!Fn.skipAnimation?(a.delayed=!0,u=Se.setTimeout(h,c),a.pauseQueue.add(d),a.timeouts.add(u)):h()}function h(){a.delayed&&(a.delayed=!1),a.pauseQueue.delete(d),a.timeouts.delete(u),e<=(a.cancelId||0)&&(l=!0);try{i.start({...n,callId:e,cancel:l},o)}catch(g){s(g)}}})}var Uh=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?za(e.get()):t.every(n=>n.noop)?ix(e.get()):Mn(e.get(),t.every(n=>n.finished)),ix=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Mn=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),za=e=>({value:e,cancelled:!0,finished:!1});function ox(e,t,n,r){const{callId:a,parentId:i,onRest:o}=t,{asyncTo:s,promise:c}=n;return!i&&e===s&&!t.reset?c:n.promise=(async()=>{n.asyncId=a,n.asyncTo=e;const u=mu(t,(m,_)=>_==="onRest"?void 0:m);let l,d;const f=new Promise((m,_)=>(l=m,d=_)),h=m=>{const _=a<=(n.cancelId||0)&&za(r)||a!==n.asyncId&&Mn(r,!1);if(_)throw m.result=_,d(m),m},g=(m,_)=>{const w=new $g,b=new Mg;return(async()=>{if(Fn.skipAnimation)throw Ao(n),b.result=Mn(r,!1),d(b),b;h(w);const T=ee.obj(m)?{...m}:{..._,to:m};T.parentId=a,Kn(u,(C,$)=>{ee.und(T[$])&&(T[$]=C)});const x=await r.start(T);return h(w),n.paused&&await new Promise(C=>{n.resumeQueue.add(C)}),x})()};let v;if(Fn.skipAnimation)return Ao(n),Mn(r,!1);try{let m;ee.arr(e)?m=(async _=>{for(const w of _)await g(w)})(e):m=Promise.resolve(e(g,r.stop.bind(r))),await Promise.all([m.then(l),f]),v=Mn(r.get(),!0,!1)}catch(m){if(m instanceof $g)v=m.result;else if(m instanceof Mg)v=m.result;else throw m}finally{a==n.asyncId&&(n.asyncId=i,n.asyncTo=i?s:void 0,n.promise=i?c:void 0)}return ee.fun(o)&&Se.batchedUpdates(()=>{o(v,r,r.item)}),v})()}function Ao(e,t){eo(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var $g=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},Mg=class extends Error{constructor(){super("SkipAnimationSignal")}},cf=e=>e instanceof Wh,F$=1,Wh=class extends Y1{constructor(){super(...arguments),this.id=F$++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=zn(this);return e&&e.getValue()}to(...e){return Fn.to(this,e)}interpolate(...e){return y$(),Fn.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Oo(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||uu.sort(this),Oo(this,{type:"priority",parent:this,priority:e})}},ha=Symbol.for("SpringPhase"),sx=1,uf=2,lf=4,Vl=e=>(e[ha]&sx)>0,wr=e=>(e[ha]&uf)>0,Ii=e=>(e[ha]&lf)>0,Rg=(e,t)=>t?e[ha]|=uf|sx:e[ha]&=~uf,Ag=(e,t)=>t?e[ha]|=lf:e[ha]&=~lf,L$=class extends Wh{constructor(e,t){if(super(),this.animation=new N$,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!ee.und(e)||!ee.und(t)){const n=ee.obj(e)?{...e}:{...t,from:e};ee.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(wr(this)||this._state.asyncTo)||Ii(this)}get goal(){return tn(this.animation.to)}get velocity(){const e=zn(this);return e instanceof Qo?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return Vl(this)}get isAnimating(){return wr(this)}get isPaused(){return Ii(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:a}=r;const{config:i}=r,o=hu(r.to);!o&&wn(r.to)&&(a=Zt(tn(r.to))),r.values.forEach((u,l)=>{if(u.done)return;const d=u.constructor==Mo?1:o?o[l].lastPosition:a[l];let f=r.immediate,h=d;if(!f){if(h=u.lastPosition,i.tension<=0){u.done=!0;return}let g=u.elapsedTime+=e;const v=r.fromValues[l],m=u.v0!=null?u.v0:u.v0=ee.arr(i.velocity)?i.velocity[l]:i.velocity;let _;const w=i.precision||(v==d?.005:Math.min(1,Math.abs(d-v)*.001));if(ee.und(i.duration))if(i.decay){const b=i.decay===!0?.998:i.decay,T=Math.exp(-(1-b)*g);h=v+m/(1-b)*(1-T),f=Math.abs(u.lastPosition-h)<=w,_=m*T}else{_=u.lastVelocity==null?m:u.lastVelocity;const b=i.restVelocity||w/10,T=i.clamp?0:i.bounce,x=!ee.und(T),C=v==d?u.v0>0:v<d;let $,A=!1;const D=1,j=Math.ceil(e/D);for(let E=0;E<j&&($=Math.abs(_)>b,!(!$&&(f=Math.abs(d-h)<=w,f)));++E){x&&(A=h==d||h>d==C,A&&(_=-_*T,h=d));const F=-i.tension*1e-6*(h-d),M=-i.friction*.001*_,R=(F+M)/i.mass;_=_+R*D,h=h+_*D}}else{let b=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,u.durationProgress>0&&(u.elapsedTime=i.duration*u.durationProgress,g=u.elapsedTime+=e)),b=(i.progress||0)+g/this._memoizedDuration,b=b>1?1:b<0?0:b,u.durationProgress=b),h=v+i.easing(b)*(d-v),_=(h-u.lastPosition)/e,f=b==1}u.lastVelocity=_,Number.isNaN(h)&&(console.warn("Got NaN while animating:",this),f=!0)}o&&!o[l].done&&(f=!1),f?u.done=!0:t=!1,u.setValue(h,i.round)&&(n=!0)});const s=zn(this),c=s.getValue();if(t){const u=tn(r.to);(c!==u||n)&&!i.decay?(s.setValue(u),this._onChange(u)):n&&i.decay&&this._onChange(c),this._stop()}else n&&this._onChange(c)}set(e){return Se.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(wr(this)){const{to:e,config:t}=this.animation;Se.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return ee.und(e)?(n=this.queue||[],this.queue=[]):n=[ee.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>Uh(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Ao(this._state,e&&this._lastCallId),Se.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=ee.obj(n)?n[t]:n,(n==null||af(n))&&(n=void 0),r=ee.obj(r)?r[t]:r,r==null&&(r=void 0);const a={to:n,from:r};return Vl(this)||(e.reverse&&([n,r]=[r,n]),r=tn(r),ee.und(r)?zn(this)||this._set(n):this._set(r)),a}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,mu(e,(o,s)=>/^on/.test(s)?ex(o,n):o)),Pg(this,e,"onProps"),Fi(this,"onProps",e,this);const a=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const i=this._state;return ax(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{Ii(this)||(Ag(this,!0),Zi(i.pauseQueue),Fi(this,"onPause",Mn(this,Ni(this,this.animation.to)),this))},resume:()=>{Ii(this)&&(Ag(this,!1),wr(this)&&this._resume(),Zi(i.resumeQueue),Fi(this,"onResume",Mn(this,Ni(this,this.animation.to)),this))},start:this._merge.bind(this,a)}}).then(o=>{if(e.loop&&o.finished&&!(t&&o.noop)){const s=cx(e);if(s)return this._update(s,!0)}return o})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(za(this));const r=!ee.und(e.to),a=!ee.und(e.from);if(r||a)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(za(this));const{key:i,defaultProps:o,animation:s}=this,{to:c,from:u}=s;let{to:l=c,from:d=u}=e;a&&!r&&(!t.default||ee.und(l))&&(l=d),t.reverse&&([l,d]=[d,l]);const f=!rr(d,u);f&&(s.from=d),d=tn(d);const h=!rr(l,c);h&&this._focus(l);const g=af(t.to),{config:v}=s,{decay:m,velocity:_}=v;(r||a)&&(v.velocity=0),t.config&&!g&&I$(v,nn(t.config,i),t.config!==o.config?nn(o.config,i):void 0);let w=zn(this);if(!w||ee.und(l))return n(Mn(this,!0));const b=ee.und(t.reset)?a&&!t.default:!ee.und(d)&&no(t.reset,i),T=b?d:this.get(),x=Ro(l),C=ee.num(x)||ee.arr(x)||fu(x),$=!g&&(!C||no(o.immediate||t.immediate,i));if(h){const E=rf(l);if(E!==w.constructor)if($)w=this._set(x);else throw Error(`Cannot animate between ${w.constructor.name} and ${E.name}, as the "to" prop suggests`)}const A=w.constructor;let D=wn(l),j=!1;if(!D){const E=b||!Vl(this)&&f;(h||E)&&(j=rr(Ro(T),x),D=!j),(!rr(s.immediate,$)&&!$||!rr(v.decay,m)||!rr(v.velocity,_))&&(D=!0)}if(j&&wr(this)&&(s.changed&&!b?D=!0:D||this._stop(c)),!g&&((D||wn(c))&&(s.values=w.getPayload(),s.toValues=wn(l)?null:A==Mo?[1]:Zt(x)),s.immediate!=$&&(s.immediate=$,!$&&!b&&this._set(c)),D)){const{onRest:E}=s;Ce(W$,M=>Pg(this,t,M));const F=Mn(this,Ni(this,c));Zi(this._pendingCalls,F),this._pendingCalls.add(n),s.changed&&Se.batchedUpdates(()=>{var M;s.changed=!b,E==null||E(F,this),b?nn(o.onRest,F):(M=s.onStart)==null||M.call(s,F,this)})}b&&this._set(T),g?n(ox(t.to,t,this._state,this)):D?this._start():wr(this)&&!h?this._pendingCalls.add(n):n(ix(T))}_focus(e){const t=this.animation;e!==t.to&&(wg(this)&&this._detach(),t.to=e,wg(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;wn(t)&&(pi(t,this),cf(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;wn(e)&&Eo(e,this)}_set(e,t=!0){const n=tn(e);if(!ee.und(n)){const r=zn(this);if(!r||!rr(n,r.getValue())){const a=rf(n);!r||r.constructor!=a?Nh(this,a.create(n)):r.setValue(n),r&&Se.batchedUpdates(()=>{this._onChange(n,t)})}}return zn(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Fi(this,"onStart",Mn(this,Ni(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),nn(this.animation.onChange,e,this)),nn(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;zn(this).reset(tn(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),wr(this)||(Rg(this,!0),Ii(this)||this._resume())}_resume(){Fn.skipAnimation?this.finish():uu.start(this)}_stop(e,t){if(wr(this)){Rg(this,!1);const n=this.animation;Ce(n.values,a=>{a.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Oo(this,{type:"idle",parent:this});const r=t?za(this.get()):Mn(this.get(),Ni(this,e??n.to));Zi(this._pendingCalls,r),n.changed&&(n.changed=!1,Fi(this,"onRest",r,this))}}};function Ni(e,t){const n=Ro(t),r=Ro(e.get());return rr(r,n)}function cx(e,t=e.loop,n=e.to){const r=nn(t);if(r){const a=r!==!0&&Fh(r),i=(a||e).reverse,o=!a||a.reset;return jo({...e,loop:t,default:!1,pause:void 0,to:!i||af(n)?n:void 0,from:o?e.from:void 0,reset:o,...a})}}function jo(e){const{to:t,from:n}=e=Fh(e),r=new Set;return ee.obj(t)&&jg(t,r),ee.obj(n)&&jg(n,r),e.keys=r.size?Array.from(r):null,e}function U$(e){const t=jo(e);return ee.und(t.default)&&(t.default=mu(t)),t}function jg(e,t){Kn(e,(n,r)=>n!=null&&t.add(r))}var W$=["onStart","onRest","onChange","onPause","onResume"];function Pg(e,t,n){e.animation[n]=t[n]!==tx(t,n)?ex(t[n],e.key):void 0}function Fi(e,t,...n){var r,a,i,o;(a=(r=e.animation)[t])==null||a.call(r,...n),(o=(i=e.defaultProps)[t])==null||o.call(i,...n)}var B$=["onStart","onChange","onRest"],z$=1,ux=class{constructor(e,t){this.id=z$++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];ee.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(jo(e)),this}start(e){let{queue:t}=this;return e?t=Zt(e).map(jo):this.queue=[],this._flush?this._flush(this,t):(px(this,t),df(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Ce(Zt(t),r=>n[r].stop(!!e))}else Ao(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(ee.und(e))this.start({pause:!0});else{const t=this.springs;Ce(Zt(e),n=>t[n].pause())}return this}resume(e){if(ee.und(e))this.start({pause:!1});else{const t=this.springs;Ce(Zt(e),n=>t[n].resume())}return this}each(e){Kn(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,a=this._changed.size>0;(r&&!this._started||a&&!this._started)&&(this._started=!0,eo(e,([s,c])=>{c.value=this.get(),s(c,this,this._item)}));const i=!r&&this._started,o=a||i&&n.size?this.get():null;a&&t.size&&eo(t,([s,c])=>{c.value=o,s(c,this,this._item)}),i&&(this._started=!1,eo(n,([s,c])=>{c.value=o,s(c,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;Se.onFrame(this._onFrame)}};function df(e,t){return Promise.all(t.map(n=>lx(e,n))).then(n=>Uh(e,n))}async function lx(e,t,n){const{keys:r,to:a,from:i,loop:o,onRest:s,onResolve:c}=t,u=ee.obj(t.default)&&t.default;o&&(t.loop=!1),a===!1&&(t.to=null),i===!1&&(t.from=null);const l=ee.arr(a)||ee.fun(a)?a:void 0;l?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):Ce(B$,v=>{const m=t[v];if(ee.fun(m)){const _=e._events[v];t[v]=({finished:w,cancelled:b})=>{const T=_.get(m);T?(w||(T.finished=!1),b&&(T.cancelled=!0)):_.set(m,{value:null,finished:w||!1,cancelled:b||!1})},u&&(u[v]=t[v])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,Zi(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const f=(r||Object.keys(e.springs)).map(v=>e.springs[v].start(t)),h=t.cancel===!0||tx(t,"cancel")===!0;(l||h&&d.asyncId)&&f.push(ax(++e._lastAsyncId,{props:t,state:d,actions:{pause:ef,resume:ef,start(v,m){h?(Ao(d,e._lastAsyncId),m(za(e))):(v.onRest=s,m(ox(l,v,d,e)))}}})),d.paused&&await new Promise(v=>{d.resumeQueue.add(v)});const g=Uh(e,await Promise.all(f));if(o&&g.finished&&!(n&&g.noop)){const v=cx(t,o,a);if(v)return px(e,[v]),lx(e,v,!0)}return c&&Se.batchedUpdates(()=>c(g,e,e.item)),g}function ff(e,t){const n={...e.springs};return t&&Ce(Zt(t),r=>{ee.und(r.keys)&&(r=jo(r)),ee.obj(r.to)||(r={...r,to:void 0}),hx(n,r,a=>fx(a))}),dx(e,n),n}function dx(e,t){Kn(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,pi(n,e))})}function fx(e,t){const n=new L$;return n.key=e,t&&pi(n,t),n}function hx(e,t,n){t.keys&&Ce(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function px(e,t){Ce(t,n=>{hx(e.springs,n,r=>fx(r,e))})}var es=({children:e,...t})=>{const n=p.useContext(hc),r=t.pause||!!n.pause,a=t.immediate||!!n.immediate;t=w$(()=>({pause:r,immediate:a}),[r,a]);const{Provider:i}=hc;return ie.createElement(i,{value:t},e)},hc=H$(es,{});es.Provider=hc.Provider;es.Consumer=hc.Consumer;function H$(e,t){return Object.assign(e,ie.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var mx=()=>{const e=[],t=function(r){x$();const a=[];return Ce(e,(i,o)=>{if(ee.und(r))a.push(i.start());else{const s=n(r,i,o);s&&a.push(i.start(s))}}),a};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const a=e.indexOf(r);~a&&e.splice(a,1)},t.pause=function(){return Ce(e,r=>r.pause(...arguments)),this},t.resume=function(){return Ce(e,r=>r.resume(...arguments)),this},t.set=function(r){Ce(e,(a,i)=>{const o=ee.fun(r)?r(i,a):r;o&&a.set(o)})},t.start=function(r){const a=[];return Ce(e,(i,o)=>{if(ee.und(r))a.push(i.start());else{const s=this._getProps(r,i,o);s&&a.push(i.start(s))}}),a},t.stop=function(){return Ce(e,r=>r.stop(...arguments)),this},t.update=function(r){return Ce(e,(a,i)=>a.update(this._getProps(r,a,i))),this};const n=function(r,a,i){return ee.fun(r)?r(i,a):r};return t._getProps=n,t};function V$(e,t,n){const r=ee.fun(t)&&t;r&&!n&&(n=[]);const a=p.useMemo(()=>r||arguments.length==3?mx():void 0,[]),i=p.useRef(0),o=Dh(),s=p.useMemo(()=>({ctrls:[],queue:[],flush(_,w){const b=ff(_,w);return i.current>0&&!s.queue.length&&!Object.keys(b).some(x=>!_.springs[x])?df(_,w):new Promise(x=>{dx(_,b),s.queue.push(()=>{x(df(_,w))}),o()})}}),[]),c=p.useRef([...s.ctrls]),u=[],l=nf(e)||0;p.useMemo(()=>{Ce(c.current.slice(e,l),_=>{of(_,a),_.stop(!0)}),c.current.length=e,d(l,e)},[e]),p.useMemo(()=>{d(0,Math.min(l,e))},n);function d(_,w){for(let b=_;b<w;b++){const T=c.current[b]||(c.current[b]=new ux(null,s.flush)),x=r?r(b,T):t[b];x&&(u[b]=U$(x))}}const f=c.current.map((_,w)=>ff(_,u[w])),h=p.useContext(es),g=nf(h),v=h!==g&&nx(h);Kr(()=>{i.current++,s.ctrls=c.current;const{queue:_}=s;_.length&&(s.queue=[],Ce(_,w=>w())),Ce(c.current,(w,b)=>{a==null||a.add(w),v&&w.start({default:h});const T=u[b];T&&(rx(w,T.ref),w.ref?w.queue.push(T):w.start(T))})}),Ih(()=>()=>{Ce(s.ctrls,_=>_.stop(!0))});const m=f.map(_=>({..._}));return a?[m,a]:m}function vr(e,t){const n=ee.fun(e),[[r],a]=V$(1,n?e:[e],n?[]:t);return n||arguments.length==2?[r,a]:r}function xa(e,t,n){const r=ee.fun(t)&&t,{reset:a,sort:i,trail:o=0,expires:s=!0,exitBeforeEnter:c=!1,onDestroyed:u,ref:l,config:d}=r?r():t,f=p.useMemo(()=>r||arguments.length==3?mx():void 0,[]),h=Zt(e),g=[],v=p.useRef(null),m=a?null:v.current;Kr(()=>{v.current=g}),Ih(()=>(Ce(g,R=>{f==null||f.add(R.ctrl),R.ctrl.ref=f}),()=>{Ce(v.current,R=>{R.expired&&clearTimeout(R.expirationId),of(R.ctrl,f),R.ctrl.stop(!0)})}));const _=Y$(h,r?r():t,m),w=a&&v.current||[];Kr(()=>Ce(w,({ctrl:R,item:I,key:U})=>{of(R,f),nn(u,I,U)}));const b=[];if(m&&Ce(m,(R,I)=>{R.expired?(clearTimeout(R.expirationId),w.push(R)):(I=b[I]=_.indexOf(R.key),~I&&(g[I]=R))}),Ce(h,(R,I)=>{g[I]||(g[I]={key:_[I],item:R,phase:"mount",ctrl:new ux},g[I].ctrl.item=R)}),b.length){let R=-1;const{leave:I}=r?r():t;Ce(b,(U,N)=>{const q=m[N];~U?(R=g.indexOf(q),g[R]={...q,item:h[U]}):I&&g.splice(++R,0,q)})}ee.fun(i)&&g.sort((R,I)=>i(R.item,I.item));let T=-o;const x=Dh(),C=mu(t),$=new Map,A=p.useRef(new Map),D=p.useRef(!1);Ce(g,(R,I)=>{const U=R.key,N=R.phase,q=r?r():t;let z,P;const B=nn(q.delay||0,U);if(N=="mount")z=q.enter,P="enter";else{const Q=_.indexOf(U)<0;if(N!="leave")if(Q)z=q.leave,P="leave";else if(z=q.update)P="update";else return;else if(!Q)z=q.enter,P="enter";else return}if(z=nn(z,R.item,I),z=ee.obj(z)?Fh(z):{to:z},!z.config){const Q=d||C.config;z.config=nn(Q,R.item,I,P)}T+=o;const Z={...C,delay:B+T,ref:l,immediate:q.immediate,reset:!1,...z};if(P=="enter"&&ee.und(Z.from)){const Q=r?r():t,G=ee.und(Q.initial)||m?Q.from:Q.initial;Z.from=nn(G,R.item,I)}const{onResolve:ne}=Z;Z.onResolve=Q=>{nn(ne,Q);const G=v.current,J=G.find(re=>re.key===U);if(J&&!(Q.cancelled&&J.phase!="update")&&J.ctrl.idle){const re=G.every(L=>L.ctrl.idle);if(J.phase=="leave"){const L=nn(s,J.item);if(L!==!1){const V=L===!0?0:L;if(J.expired=!0,!re&&V>0){V<=2147483647&&(J.expirationId=setTimeout(x,V));return}}}re&&G.some(L=>L.expired)&&(A.current.delete(J),c&&(D.current=!0),x())}};const Y=ff(R.ctrl,Z);P==="leave"&&c?A.current.set(R,{phase:P,springs:Y,payload:Z}):$.set(R,{phase:P,springs:Y,payload:Z})});const j=p.useContext(es),E=nf(j),F=j!==E&&nx(j);Kr(()=>{F&&Ce(g,R=>{R.ctrl.start({default:j})})},[j]),Ce($,(R,I)=>{if(A.current.size){const U=g.findIndex(N=>N.key===I.key);g.splice(U,1)}}),Kr(()=>{Ce(A.current.size?A.current:$,({phase:R,payload:I},U)=>{const{ctrl:N}=U;U.phase=R,f==null||f.add(N),F&&R=="enter"&&N.start({default:j}),I&&(rx(N,I.ref),(N.ref||f)&&!D.current?N.update(I):(N.start(I),D.current&&(D.current=!1)))})},a?void 0:n);const M=R=>ie.createElement(ie.Fragment,null,g.map((I,U)=>{const{springs:N}=$.get(I)||I.ctrl,q=R({...N},I.item,I,U);return q&&q.type?ie.createElement(q.type,{...q.props,key:ee.str(I.key)||ee.num(I.key)?I.key:I.ctrl.id,ref:q.ref}):q}));return f?[M,f]:M}var q$=1;function Y$(e,{key:t,keys:n=t},r){if(n===null){const a=new Set;return e.map(i=>{const o=r&&r.find(s=>s.item===i&&s.phase!=="leave"&&!a.has(s));return o?(a.add(o),o.key):q$++})}return ee.und(n)?e:ee.fun(n)?e.map(n):Zt(n)}var gx=class extends Wh{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=ko(...t);const n=this._get(),r=rf(n);Nh(this,r.create(n))}advance(e){const t=this._get(),n=this.get();rr(t,n)||(zn(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Dg(this._active)&&ql(this)}_get(){const e=ee.arr(this.source)?this.source.map(tn):Zt(tn(this.source));return this.calc(...e)}_start(){this.idle&&!Dg(this._active)&&(this.idle=!1,Ce(hu(this),e=>{e.done=!1}),Fn.skipAnimation?(Se.batchedUpdates(()=>this.advance()),ql(this)):uu.start(this))}_attach(){let e=1;Ce(Zt(this.source),t=>{wn(t)&&pi(t,this),cf(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){Ce(Zt(this.source),e=>{wn(e)&&Eo(e,this)}),this._active.clear(),ql(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=Zt(this.source).reduce((t,n)=>Math.max(t,(cf(n)?n.priority:0)+1),0))}};function G$(e){return e.idle!==!1}function Dg(e){return!e.size||Array.from(e).every(G$)}function ql(e){e.idle||(e.idle=!0,Ce(hu(e),t=>{t.done=!0}),Oo(e,{type:"idle",parent:e}))}var Nr=(e,...t)=>new gx(e,t);Fn.assign({createStringInterpolator:K1,to:(e,t)=>new gx(e,t)});var vx=/^--/;function Z$(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!vx.test(e)&&!(ro.hasOwnProperty(e)&&ro[e])?t+"px":(""+t).trim()}var Ig={};function K$(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{style:r,children:a,scrollTop:i,scrollLeft:o,viewBox:s,...c}=t,u=Object.values(c),l=Object.keys(c).map(d=>n||e.hasAttribute(d)?d:Ig[d]||(Ig[d]=d.replace(/([A-Z])/g,f=>"-"+f.toLowerCase())));a!==void 0&&(e.textContent=a);for(const d in r)if(r.hasOwnProperty(d)){const f=Z$(d,r[d]);vx.test(d)?e.style.setProperty(d,f):e.style[d]=f}l.forEach((d,f)=>{e.setAttribute(d,u[f])}),i!==void 0&&(e.scrollTop=i),o!==void 0&&(e.scrollLeft=o),s!==void 0&&e.setAttribute("viewBox",s)}var ro={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},X$=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),J$=["Webkit","Ms","Moz","O"];ro=Object.keys(ro).reduce((e,t)=>(J$.forEach(n=>e[X$(n,t)]=e[t]),e),ro);var Q$=/^(matrix|translate|scale|rotate|skew)/,e8=/^(translate)/,t8=/^(rotate|skew)/,Yl=(e,t)=>ee.num(e)&&e!==0?e+t:e,Is=(e,t)=>ee.arr(e)?e.every(n=>Is(n,t)):ee.num(e)?e===t:parseFloat(e)===t,n8=class extends pu{constructor({x:e,y:t,z:n,...r}){const a=[],i=[];(e||t||n)&&(a.push([e||0,t||0,n||0]),i.push(o=>[`translate3d(${o.map(s=>Yl(s,"px")).join(",")})`,Is(o,0)])),Kn(r,(o,s)=>{if(s==="transform")a.push([o||""]),i.push(c=>[c,c===""]);else if(Q$.test(s)){if(delete r[s],ee.und(o))return;const c=e8.test(s)?"px":t8.test(s)?"deg":"";a.push(Zt(o)),i.push(s==="rotate3d"?([u,l,d,f])=>[`rotate3d(${u},${l},${d},${Yl(f,c)})`,Is(f,0)]:u=>[`${s}(${u.map(l=>Yl(l,c)).join(",")})`,Is(u,s.startsWith("scale")?1:0)])}}),a.length&&(r.transform=new r8(a,i)),super(r)}},r8=class extends Y1{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Ce(this.inputs,(n,r)=>{const a=tn(n[0]),[i,o]=this.transforms[r](ee.arr(a)?a:n.map(tn));e+=" "+i,t=t&&o}),t?"none":e}observerAdded(e){e==1&&Ce(this.inputs,t=>Ce(t,n=>wn(n)&&pi(n,this)))}observerRemoved(e){e==0&&Ce(this.inputs,t=>Ce(t,n=>wn(n)&&Eo(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),Oo(this,e)}},a8=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];Fn.assign({batchedUpdates:Or.unstable_batchedUpdates,createStringInterpolator:K1,colors:XE});var i8=M$(a8,{applyAnimatedValues:K$,createAnimatedStyle:e=>new n8(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Qe=i8.animated;function pa(){return pa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pa.apply(this,arguments)}var o8={pointerEvents:"none",position:"absolute",zIndex:10,top:0,left:0},Ng=function(e,t){return"translate("+e+"px, "+t+"px)"},yx=p.memo(function(e){var t,n=e.position,r=e.anchor,a=e.children,i=lt(),o=un(),s=o.animate,c=o.config,u=c_(),l=u[0],d=u[1],f=p.useRef(!1),h=void 0,g=!1,v=d.width>0&&d.height>0,m=Math.round(n[0]),_=Math.round(n[1]);v&&(r==="top"?(m-=d.width/2,_-=d.height+14):r==="right"?(m+=14,_-=d.height/2):r==="bottom"?(m-=d.width/2,_+=14):r==="left"?(m-=d.width+14,_-=d.height/2):r==="center"&&(m-=d.width/2,_-=d.height/2),h={transform:Ng(m,_)},f.current||(g=!0),f.current=[m,_]);var w=vr({to:h,config:c,immediate:!s||g}),b=pa({},o8,i.tooltip.wrapper,{transform:(t=w.transform)!=null?t:Ng(m,_),opacity:w.transform?1:0});return y.jsx(Qe.div,{ref:l,style:b,children:a})});yx.displayName="TooltipWrapper";var s8=p.memo(function(e){var t=e.size,n=t===void 0?12:t,r=e.color,a=e.style;return y.jsx("span",{style:pa({display:"block",width:n,height:n,background:r},a===void 0?{}:a)})}),bx=p.memo(function(e){var t,n=e.id,r=e.value,a=e.format,i=e.enableChip,o=i!==void 0&&i,s=e.color,c=e.renderContent,u=lt(),l=hl(a);if(typeof c=="function")t=c();else{var d=r;l!==void 0&&d!==void 0&&(d=l(d)),t=y.jsxs("div",{style:u.tooltip.basic,children:[o&&y.jsx(s8,{color:s,style:u.tooltip.chip}),d!==void 0?y.jsxs("span",{children:[n,": ",y.jsx("strong",{children:""+d})]}):n]})}return y.jsx("div",{style:u.tooltip.container,children:t})}),c8={width:"100%",borderCollapse:"collapse"},u8=p.memo(function(e){var t,n=e.title,r=e.rows,a=r===void 0?[]:r,i=e.renderContent,o=lt();return a.length?(t=typeof i=="function"?i():y.jsxs("div",{children:[n&&n,y.jsx("table",{style:pa({},c8,o.tooltip.table),children:y.jsx("tbody",{children:a.map(function(s,c){return y.jsx("tr",{children:s.map(function(u,l){return y.jsx("td",{style:o.tooltip.tableCell,children:u},l)})},c)})})})]}),y.jsx("div",{style:o.tooltip.container,children:t})):null});u8.displayName="TableTooltip";var hf=p.memo(function(e){var t=e.x0,n=e.x1,r=e.y0,a=e.y1,i=lt(),o=un(),s=o.animate,c=o.config,u=p.useMemo(function(){return pa({},i.crosshair.line,{pointerEvents:"none"})},[i.crosshair.line]),l=vr({x1:t,x2:n,y1:r,y2:a,config:c,immediate:!s});return y.jsx(Qe.line,pa({},l,{fill:"none",style:u}))});hf.displayName="CrosshairLine";var l8=p.memo(function(e){var t,n,r=e.width,a=e.height,i=e.type,o=e.x,s=e.y;return i==="cross"?(t={x0:o,x1:o,y0:0,y1:a},n={x0:0,x1:r,y0:s,y1:s}):i==="top-left"?(t={x0:o,x1:o,y0:0,y1:s},n={x0:0,x1:o,y0:s,y1:s}):i==="top"?t={x0:o,x1:o,y0:0,y1:s}:i==="top-right"?(t={x0:o,x1:o,y0:0,y1:s},n={x0:o,x1:r,y0:s,y1:s}):i==="right"?n={x0:o,x1:r,y0:s,y1:s}:i==="bottom-right"?(t={x0:o,x1:o,y0:s,y1:a},n={x0:o,x1:r,y0:s,y1:s}):i==="bottom"?t={x0:o,x1:o,y0:s,y1:a}:i==="bottom-left"?(t={x0:o,x1:o,y0:s,y1:a},n={x0:0,x1:o,y0:s,y1:s}):i==="left"?n={x0:0,x1:o,y0:s,y1:s}:i==="x"?t={x0:o,x1:o,y0:0,y1:a}:i==="y"&&(n={x0:0,x1:r,y0:s,y1:s}),y.jsxs(y.Fragment,{children:[t&&y.jsx(hf,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}),n&&y.jsx(hf,{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1})]})});l8.displayName="Crosshair";var xx=p.createContext({showTooltipAt:function(){},showTooltipFromEvent:function(){},hideTooltip:function(){}}),pf={isVisible:!1,position:[null,null],content:null,anchor:null},_x=p.createContext(pf),d8=function(e){var t=p.useState(pf),n=t[0],r=t[1],a=p.useCallback(function(s,c,u){var l=c[0],d=c[1];u===void 0&&(u="top"),r({isVisible:!0,position:[l,d],anchor:u,content:s})},[r]),i=p.useCallback(function(s,c,u){u===void 0&&(u="top");var l=e.current.getBoundingClientRect(),d=e.current.offsetWidth,f=d===l.width?1:d/l.width,h="touches"in c?c.touches[0]:c,g=h.clientX,v=h.clientY,m=(g-l.left)*f,_=(v-l.top)*f;u!=="left"&&u!=="right"||(u=m<l.width/2?"right":"left"),r({isVisible:!0,position:[m,_],anchor:u,content:s})},[e,r]),o=p.useCallback(function(){r(pf)},[r]);return{actions:p.useMemo(function(){return{showTooltipAt:a,showTooltipFromEvent:i,hideTooltip:o}},[a,i,o]),state:n}},Bh=function(){var e=p.useContext(xx);if(e===void 0)throw new Error("useTooltip must be used within a TooltipProvider");return e},f8=function(){var e=p.useContext(_x);if(e===void 0)throw new Error("useTooltipState must be used within a TooltipProvider");return e},h8=function(e){return e.isVisible},p8=function(){var e=f8();return h8(e)?y.jsx(yx,{position:e.position,anchor:e.anchor,children:e.content}):null},m8=function(e){var t=e.container,n=e.children,r=d8(t),a=r.actions,i=r.state;return y.jsx(xx.Provider,{value:a,children:y.jsx(_x.Provider,{value:i,children:n})})};function g8(){this.__data__=[],this.size=0}var v8=g8;function y8(e,t){return e===t||e!==e&&t!==t}var ts=y8,b8=ts;function x8(e,t){for(var n=e.length;n--;)if(b8(e[n][0],t))return n;return-1}var gu=x8,_8=gu,w8=Array.prototype,T8=w8.splice;function C8(e){var t=this.__data__,n=_8(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():T8.call(t,n,1),--this.size,!0}var k8=C8,S8=gu;function O8(e){var t=this.__data__,n=S8(t,e);return n<0?void 0:t[n][1]}var E8=O8,$8=gu;function M8(e){return $8(this.__data__,e)>-1}var R8=M8,A8=gu;function j8(e,t){var n=this.__data__,r=A8(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var P8=j8,D8=v8,I8=k8,N8=E8,F8=R8,L8=P8;function mi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}mi.prototype.clear=D8;mi.prototype.delete=I8;mi.prototype.get=N8;mi.prototype.has=F8;mi.prototype.set=L8;var vu=mi,U8=vu;function W8(){this.__data__=new U8,this.size=0}var B8=W8;function z8(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var H8=z8;function V8(e){return this.__data__.get(e)}var q8=V8;function Y8(e){return this.__data__.has(e)}var G8=Y8,Z8=typeof ss=="object"&&ss&&ss.Object===Object&&ss,wx=Z8,K8=wx,X8=typeof self=="object"&&self&&self.Object===Object&&self,J8=K8||X8||Function("return this")(),Qn=J8,Q8=Qn,eM=Q8.Symbol,gi=eM,Fg=gi,Tx=Object.prototype,tM=Tx.hasOwnProperty,nM=Tx.toString,Li=Fg?Fg.toStringTag:void 0;function rM(e){var t=tM.call(e,Li),n=e[Li];try{e[Li]=void 0;var r=!0}catch{}var a=nM.call(e);return r&&(t?e[Li]=n:delete e[Li]),a}var aM=rM,iM=Object.prototype,oM=iM.toString;function sM(e){return oM.call(e)}var cM=sM,Lg=gi,uM=aM,lM=cM,dM="[object Null]",fM="[object Undefined]",Ug=Lg?Lg.toStringTag:void 0;function hM(e){return e==null?e===void 0?fM:dM:Ug&&Ug in Object(e)?uM(e):lM(e)}var Br=hM;function pM(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var er=pM,mM=Br,gM=er,vM="[object AsyncFunction]",yM="[object Function]",bM="[object GeneratorFunction]",xM="[object Proxy]";function _M(e){if(!gM(e))return!1;var t=mM(e);return t==yM||t==bM||t==vM||t==xM}var yu=_M;const Cx=Mt(yu);var wM=Qn,TM=wM["__core-js_shared__"],CM=TM,Gl=CM,Wg=function(){var e=/[^.]+$/.exec(Gl&&Gl.keys&&Gl.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function kM(e){return!!Wg&&Wg in e}var SM=kM,OM=Function.prototype,EM=OM.toString;function $M(e){if(e!=null){try{return EM.call(e)}catch{}try{return e+""}catch{}}return""}var kx=$M,MM=yu,RM=SM,AM=er,jM=kx,PM=/[\\^$.*+?()[\]{}|]/g,DM=/^\[object .+?Constructor\]$/,IM=Function.prototype,NM=Object.prototype,FM=IM.toString,LM=NM.hasOwnProperty,UM=RegExp("^"+FM.call(LM).replace(PM,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function WM(e){if(!AM(e)||RM(e))return!1;var t=MM(e)?UM:DM;return t.test(jM(e))}var BM=WM;function zM(e,t){return e==null?void 0:e[t]}var HM=zM,VM=BM,qM=HM;function YM(e,t){var n=qM(e,t);return VM(n)?n:void 0}var _a=YM,GM=_a,ZM=Qn,KM=GM(ZM,"Map"),zh=KM,XM=_a,JM=XM(Object,"create"),bu=JM,Bg=bu;function QM(){this.__data__=Bg?Bg(null):{},this.size=0}var e7=QM;function t7(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var n7=t7,r7=bu,a7="__lodash_hash_undefined__",i7=Object.prototype,o7=i7.hasOwnProperty;function s7(e){var t=this.__data__;if(r7){var n=t[e];return n===a7?void 0:n}return o7.call(t,e)?t[e]:void 0}var c7=s7,u7=bu,l7=Object.prototype,d7=l7.hasOwnProperty;function f7(e){var t=this.__data__;return u7?t[e]!==void 0:d7.call(t,e)}var h7=f7,p7=bu,m7="__lodash_hash_undefined__";function g7(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=p7&&t===void 0?m7:t,this}var v7=g7,y7=e7,b7=n7,x7=c7,_7=h7,w7=v7;function vi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}vi.prototype.clear=y7;vi.prototype.delete=b7;vi.prototype.get=x7;vi.prototype.has=_7;vi.prototype.set=w7;var T7=vi,zg=T7,C7=vu,k7=zh;function S7(){this.size=0,this.__data__={hash:new zg,map:new(k7||C7),string:new zg}}var O7=S7;function E7(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var $7=E7,M7=$7;function R7(e,t){var n=e.__data__;return M7(t)?n[typeof t=="string"?"string":"hash"]:n.map}var xu=R7,A7=xu;function j7(e){var t=A7(this,e).delete(e);return this.size-=t?1:0,t}var P7=j7,D7=xu;function I7(e){return D7(this,e).get(e)}var N7=I7,F7=xu;function L7(e){return F7(this,e).has(e)}var U7=L7,W7=xu;function B7(e,t){var n=W7(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var z7=B7,H7=O7,V7=P7,q7=N7,Y7=U7,G7=z7;function yi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}yi.prototype.clear=H7;yi.prototype.delete=V7;yi.prototype.get=q7;yi.prototype.has=Y7;yi.prototype.set=G7;var Hh=yi,Z7=vu,K7=zh,X7=Hh,J7=200;function Q7(e,t){var n=this.__data__;if(n instanceof Z7){var r=n.__data__;if(!K7||r.length<J7-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new X7(r)}return n.set(e,t),this.size=n.size,this}var e9=Q7,t9=vu,n9=B8,r9=H8,a9=q8,i9=G8,o9=e9;function bi(e){var t=this.__data__=new t9(e);this.size=t.size}bi.prototype.clear=n9;bi.prototype.delete=r9;bi.prototype.get=a9;bi.prototype.has=i9;bi.prototype.set=o9;var _u=bi,s9=_a,c9=function(){try{var e=s9(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Sx=c9,Hg=Sx;function u9(e,t,n){t=="__proto__"&&Hg?Hg(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Vh=u9,l9=Vh,d9=ts;function f9(e,t,n){(n!==void 0&&!d9(e[t],n)||n===void 0&&!(t in e))&&l9(e,t,n)}var Ox=f9;function h9(e){return function(t,n,r){for(var a=-1,i=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++a];if(n(i[c],c,i)===!1)break}return t}}var p9=h9,m9=p9,g9=m9(),Ex=g9,pc={exports:{}};pc.exports;(function(e,t){var n=Qn,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===r,o=i?n.Buffer:void 0,s=o?o.allocUnsafe:void 0;function c(u,l){if(l)return u.slice();var d=u.length,f=s?s(d):new u.constructor(d);return u.copy(f),f}e.exports=c})(pc,pc.exports);var $x=pc.exports,v9=Qn,y9=v9.Uint8Array,Mx=y9,Vg=Mx;function b9(e){var t=new e.constructor(e.byteLength);return new Vg(t).set(new Vg(e)),t}var qh=b9,x9=qh;function _9(e,t){var n=t?x9(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var Rx=_9;function w9(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var Ax=w9,T9=er,qg=Object.create,C9=function(){function e(){}return function(t){if(!T9(t))return{};if(qg)return qg(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),k9=C9;function S9(e,t){return function(n){return e(t(n))}}var jx=S9,O9=jx,E9=O9(Object.getPrototypeOf,Object),Yh=E9,$9=Object.prototype;function M9(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||$9;return e===n}var Gh=M9,R9=k9,A9=Yh,j9=Gh;function P9(e){return typeof e.constructor=="function"&&!j9(e)?R9(A9(e)):{}}var Px=P9;function D9(e){return e!=null&&typeof e=="object"}var Un=D9,I9=Br,N9=Un,F9="[object Arguments]";function L9(e){return N9(e)&&I9(e)==F9}var U9=L9,Yg=U9,W9=Un,Dx=Object.prototype,B9=Dx.hasOwnProperty,z9=Dx.propertyIsEnumerable,H9=Yg(function(){return arguments}())?Yg:function(e){return W9(e)&&B9.call(e,"callee")&&!z9.call(e,"callee")},wu=H9,V9=Array.isArray,cn=V9,q9=9007199254740991;function Y9(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=q9}var Zh=Y9,G9=yu,Z9=Zh;function K9(e){return e!=null&&Z9(e.length)&&!G9(e)}var xi=K9,X9=xi,J9=Un;function Q9(e){return J9(e)&&X9(e)}var Ix=Q9,mc={exports:{}};function eR(){return!1}var tR=eR;mc.exports;(function(e,t){var n=Qn,r=tR,a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===a,s=o?n.Buffer:void 0,c=s?s.isBuffer:void 0,u=c||r;e.exports=u})(mc,mc.exports);var Tu=mc.exports,nR=Br,rR=Yh,aR=Un,iR="[object Object]",oR=Function.prototype,sR=Object.prototype,Nx=oR.toString,cR=sR.hasOwnProperty,uR=Nx.call(Object);function lR(e){if(!aR(e)||nR(e)!=iR)return!1;var t=rR(e);if(t===null)return!0;var n=cR.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Nx.call(n)==uR}var Kh=lR;const Xh=Mt(Kh);var dR=Br,fR=Zh,hR=Un,pR="[object Arguments]",mR="[object Array]",gR="[object Boolean]",vR="[object Date]",yR="[object Error]",bR="[object Function]",xR="[object Map]",_R="[object Number]",wR="[object Object]",TR="[object RegExp]",CR="[object Set]",kR="[object String]",SR="[object WeakMap]",OR="[object ArrayBuffer]",ER="[object DataView]",$R="[object Float32Array]",MR="[object Float64Array]",RR="[object Int8Array]",AR="[object Int16Array]",jR="[object Int32Array]",PR="[object Uint8Array]",DR="[object Uint8ClampedArray]",IR="[object Uint16Array]",NR="[object Uint32Array]",ct={};ct[$R]=ct[MR]=ct[RR]=ct[AR]=ct[jR]=ct[PR]=ct[DR]=ct[IR]=ct[NR]=!0;ct[pR]=ct[mR]=ct[OR]=ct[gR]=ct[ER]=ct[vR]=ct[yR]=ct[bR]=ct[xR]=ct[_R]=ct[wR]=ct[TR]=ct[CR]=ct[kR]=ct[SR]=!1;function FR(e){return hR(e)&&fR(e.length)&&!!ct[dR(e)]}var LR=FR;function UR(e){return function(t){return e(t)}}var ns=UR,gc={exports:{}};gc.exports;(function(e,t){var n=wx,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===r,o=i&&n.process,s=function(){try{var c=a&&a.require&&a.require("util").types;return c||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(gc,gc.exports);var Cu=gc.exports,WR=LR,BR=ns,Gg=Cu,Zg=Gg&&Gg.isTypedArray,zR=Zg?BR(Zg):WR,Jh=zR;function HR(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Fx=HR,VR=Vh,qR=ts,YR=Object.prototype,GR=YR.hasOwnProperty;function ZR(e,t,n){var r=e[t];(!(GR.call(e,t)&&qR(r,n))||n===void 0&&!(t in e))&&VR(e,t,n)}var Qh=ZR,KR=Qh,XR=Vh;function JR(e,t,n,r){var a=!n;n||(n={});for(var i=-1,o=t.length;++i<o;){var s=t[i],c=r?r(n[s],e[s],s,n,e):void 0;c===void 0&&(c=e[s]),a?XR(n,s,c):KR(n,s,c)}return n}var _i=JR;function QR(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var eA=QR,tA=9007199254740991,nA=/^(?:0|[1-9]\d*)$/;function rA(e,t){var n=typeof e;return t=t??tA,!!t&&(n=="number"||n!="symbol"&&nA.test(e))&&e>-1&&e%1==0&&e<t}var ku=rA,aA=eA,iA=wu,oA=cn,sA=Tu,cA=ku,uA=Jh,lA=Object.prototype,dA=lA.hasOwnProperty;function fA(e,t){var n=oA(e),r=!n&&iA(e),a=!n&&!r&&sA(e),i=!n&&!r&&!a&&uA(e),o=n||r||a||i,s=o?aA(e.length,String):[],c=s.length;for(var u in e)(t||dA.call(e,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||cA(u,c)))&&s.push(u);return s}var Lx=fA;function hA(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var pA=hA,mA=er,gA=Gh,vA=pA,yA=Object.prototype,bA=yA.hasOwnProperty;function xA(e){if(!mA(e))return vA(e);var t=gA(e),n=[];for(var r in e)r=="constructor"&&(t||!bA.call(e,r))||n.push(r);return n}var _A=xA,wA=Lx,TA=_A,CA=xi;function kA(e){return CA(e)?wA(e,!0):TA(e)}var rs=kA,SA=_i,OA=rs;function EA(e){return SA(e,OA(e))}var $A=EA,Kg=Ox,MA=$x,RA=Rx,AA=Ax,jA=Px,Xg=wu,Jg=cn,PA=Ix,DA=Tu,IA=yu,NA=er,FA=Kh,LA=Jh,Qg=Fx,UA=$A;function WA(e,t,n,r,a,i,o){var s=Qg(e,n),c=Qg(t,n),u=o.get(c);if(u){Kg(e,n,u);return}var l=i?i(s,c,n+"",e,t,o):void 0,d=l===void 0;if(d){var f=Jg(c),h=!f&&DA(c),g=!f&&!h&&LA(c);l=c,f||h||g?Jg(s)?l=s:PA(s)?l=AA(s):h?(d=!1,l=MA(c,!0)):g?(d=!1,l=RA(c,!0)):l=[]:FA(c)||Xg(c)?(l=s,Xg(s)?l=UA(s):(!NA(s)||IA(s))&&(l=jA(c))):d=!1}d&&(o.set(c,l),a(l,c,r,i,o),o.delete(c)),Kg(e,n,l)}var BA=WA,zA=_u,HA=Ox,VA=Ex,qA=BA,YA=er,GA=rs,ZA=Fx;function Ux(e,t,n,r,a){e!==t&&VA(t,function(i,o){if(a||(a=new zA),YA(i))qA(e,t,o,n,Ux,r,a);else{var s=r?r(ZA(e,o),i,o+"",e,t,a):void 0;s===void 0&&(s=i),HA(e,o,s)}},GA)}var KA=Ux;function XA(e){return e}var Su=XA;function JA(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var QA=JA,ej=QA,e0=Math.max;function tj(e,t,n){return t=e0(t===void 0?e.length-1:t,0),function(){for(var r=arguments,a=-1,i=e0(r.length-t,0),o=Array(i);++a<i;)o[a]=r[t+a];a=-1;for(var s=Array(t+1);++a<t;)s[a]=r[a];return s[t]=n(o),ej(e,this,s)}}var Wx=tj;function nj(e){return function(){return e}}var rj=nj,aj=rj,t0=Sx,ij=Su,oj=t0?function(e,t){return t0(e,"toString",{configurable:!0,enumerable:!1,value:aj(t),writable:!0})}:ij,sj=oj,cj=800,uj=16,lj=Date.now;function dj(e){var t=0,n=0;return function(){var r=lj(),a=uj-(r-n);if(n=r,a>0){if(++t>=cj)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var fj=dj,hj=sj,pj=fj,mj=pj(hj),Bx=mj,gj=Su,vj=Wx,yj=Bx;function bj(e,t){return yj(vj(e,t,gj),e+"")}var ep=bj,xj=ts,_j=xi,wj=ku,Tj=er;function Cj(e,t,n){if(!Tj(n))return!1;var r=typeof t;return(r=="number"?_j(n)&&wj(t,n.length):r=="string"&&t in n)?xj(n[t],e):!1}var zx=Cj,kj=ep,Sj=zx;function Oj(e){return kj(function(t,n){var r=-1,a=n.length,i=a>1?n[a-1]:void 0,o=a>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(a--,i):void 0,o&&Sj(n[0],n[1],o)&&(i=a<3?void 0:i,a=1),t=Object(t);++r<a;){var s=n[r];s&&e(t,s,r,i)}return t})}var Ej=Oj,$j=KA,Mj=Ej,Rj=Mj(function(e,t,n){$j(e,t,n)}),Aj=Rj;const jj=Mt(Aj);var Pj=Br,Dj=Un,Ij="[object Symbol]";function Nj(e){return typeof e=="symbol"||Dj(e)&&Pj(e)==Ij}var Ou=Nj,Fj=cn,Lj=Ou,Uj=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Wj=/^\w*$/;function Bj(e,t){if(Fj(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Lj(e)?!0:Wj.test(e)||!Uj.test(e)||t!=null&&e in Object(t)}var tp=Bj,Hx=Hh,zj="Expected a function";function np(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(zj);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var o=e.apply(this,r);return n.cache=i.set(a,o)||i,o};return n.cache=new(np.Cache||Hx),n}np.Cache=Hx;var Hj=np,Vj=Hj,qj=500;function Yj(e){var t=Vj(e,function(r){return n.size===qj&&n.clear(),r}),n=t.cache;return t}var Gj=Yj,Zj=Gj,Kj=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Xj=/\\(\\)?/g,Jj=Zj(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Kj,function(n,r,a,i){t.push(a?i.replace(Xj,"$1"):r||n)}),t}),Qj=Jj;function eP(e,t){for(var n=-1,r=e==null?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}var Eu=eP,n0=gi,tP=Eu,nP=cn,rP=Ou,aP=1/0,r0=n0?n0.prototype:void 0,a0=r0?r0.toString:void 0;function Vx(e){if(typeof e=="string")return e;if(nP(e))return tP(e,Vx)+"";if(rP(e))return a0?a0.call(e):"";var t=e+"";return t=="0"&&1/e==-aP?"-0":t}var iP=Vx,oP=iP;function sP(e){return e==null?"":oP(e)}var cP=sP,uP=cn,lP=tp,dP=Qj,fP=cP;function hP(e,t){return uP(e)?e:lP(e,t)?[e]:dP(fP(e))}var wi=hP,pP=Ou,mP=1/0;function gP(e){if(typeof e=="string"||pP(e))return e;var t=e+"";return t=="0"&&1/e==-mP?"-0":t}var Ti=gP,vP=wi,yP=Ti;function bP(e,t){t=vP(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[yP(t[n++])];return n&&n==r?e:void 0}var as=bP,xP=as;function _P(e,t,n){var r=e==null?void 0:xP(e,t);return r===void 0?n:r}var qx=_P;const pr=Mt(qx);var wP=Qh,TP=wi,CP=ku,i0=er,kP=Ti;function SP(e,t,n,r){if(!i0(e))return e;t=TP(t,e);for(var a=-1,i=t.length,o=i-1,s=e;s!=null&&++a<i;){var c=kP(t[a]),u=n;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(a!=o){var l=s[c];u=r?r(l,c,s):void 0,u===void 0&&(u=i0(l)?l:CP(t[a+1])?[]:{})}wP(s,c,u),s=s[c]}return e}var Yx=SP,OP=Yx;function EP(e,t,n){return e==null?e:OP(e,t,n)}var $P=EP;const Ki=Mt($P);function $u(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function rp(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Ci(){}var ma=.7,ni=1/ma,Ha="\\s*([+-]?\\d+)\\s*",Po="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Yn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",MP=/^#([0-9a-f]{3,8})$/,RP=new RegExp(`^rgb\\(${Ha},${Ha},${Ha}\\)$`),AP=new RegExp(`^rgb\\(${Yn},${Yn},${Yn}\\)$`),jP=new RegExp(`^rgba\\(${Ha},${Ha},${Ha},${Po}\\)$`),PP=new RegExp(`^rgba\\(${Yn},${Yn},${Yn},${Po}\\)$`),DP=new RegExp(`^hsl\\(${Po},${Yn},${Yn}\\)$`),IP=new RegExp(`^hsla\\(${Po},${Yn},${Yn},${Po}\\)$`),o0={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};$u(Ci,Do,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:s0,formatHex:s0,formatHex8:NP,formatHsl:FP,formatRgb:c0,toString:c0});function s0(){return this.rgb().formatHex()}function NP(){return this.rgb().formatHex8()}function FP(){return Zx(this).formatHsl()}function c0(){return this.rgb().formatRgb()}function Do(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=MP.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?u0(t):n===3?new zt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?bs(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?bs(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=RP.exec(e))?new zt(t[1],t[2],t[3],1):(t=AP.exec(e))?new zt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=jP.exec(e))?bs(t[1],t[2],t[3],t[4]):(t=PP.exec(e))?bs(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=DP.exec(e))?f0(t[1],t[2]/100,t[3]/100,1):(t=IP.exec(e))?f0(t[1],t[2]/100,t[3]/100,t[4]):o0.hasOwnProperty(e)?u0(o0[e]):e==="transparent"?new zt(NaN,NaN,NaN,0):null}function u0(e){return new zt(e>>16&255,e>>8&255,e&255,1)}function bs(e,t,n,r){return r<=0&&(e=t=n=NaN),new zt(e,t,n,r)}function Gx(e){return e instanceof Ci||(e=Do(e)),e?(e=e.rgb(),new zt(e.r,e.g,e.b,e.opacity)):new zt}function ri(e,t,n,r){return arguments.length===1?Gx(e):new zt(e,t,n,r??1)}function zt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}$u(zt,ri,rp(Ci,{brighter(e){return e=e==null?ni:Math.pow(ni,e),new zt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ma:Math.pow(ma,e),new zt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new zt(aa(this.r),aa(this.g),aa(this.b),vc(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:l0,formatHex:l0,formatHex8:LP,formatRgb:d0,toString:d0}));function l0(){return`#${Xr(this.r)}${Xr(this.g)}${Xr(this.b)}`}function LP(){return`#${Xr(this.r)}${Xr(this.g)}${Xr(this.b)}${Xr((isNaN(this.opacity)?1:this.opacity)*255)}`}function d0(){const e=vc(this.opacity);return`${e===1?"rgb(":"rgba("}${aa(this.r)}, ${aa(this.g)}, ${aa(this.b)}${e===1?")":`, ${e})`}`}function vc(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function aa(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Xr(e){return e=aa(e),(e<16?"0":"")+e.toString(16)}function f0(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Rn(e,t,n,r)}function Zx(e){if(e instanceof Rn)return new Rn(e.h,e.s,e.l,e.opacity);if(e instanceof Ci||(e=Do(e)),!e)return new Rn;if(e instanceof Rn)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),i=Math.max(t,n,r),o=NaN,s=i-a,c=(i+a)/2;return s?(t===i?o=(n-r)/s+(n<r)*6:n===i?o=(r-t)/s+2:o=(t-n)/s+4,s/=c<.5?i+a:2-i-a,o*=60):s=c>0&&c<1?0:o,new Rn(o,s,c,e.opacity)}function UP(e,t,n,r){return arguments.length===1?Zx(e):new Rn(e,t,n,r??1)}function Rn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}$u(Rn,UP,rp(Ci,{brighter(e){return e=e==null?ni:Math.pow(ni,e),new Rn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ma:Math.pow(ma,e),new Rn(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,a=2*n-r;return new zt(Zl(e>=240?e-240:e+120,a,r),Zl(e,a,r),Zl(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new Rn(h0(this.h),xs(this.s),xs(this.l),vc(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=vc(this.opacity);return`${e===1?"hsl(":"hsla("}${h0(this.h)}, ${xs(this.s)*100}%, ${xs(this.l)*100}%${e===1?")":`, ${e})`}`}}));function h0(e){return e=(e||0)%360,e<0?e+360:e}function xs(e){return Math.max(0,Math.min(1,e||0))}function Zl(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const WP=Math.PI/180,BP=180/Math.PI;var Kx=-.14861,ap=1.78277,ip=-.29227,Mu=-.90649,Io=1.97294,p0=Io*Mu,m0=Io*ap,g0=ap*ip-Mu*Kx;function zP(e){if(e instanceof ia)return new ia(e.h,e.s,e.l,e.opacity);e instanceof zt||(e=Gx(e));var t=e.r/255,n=e.g/255,r=e.b/255,a=(g0*r+p0*t-m0*n)/(g0+p0-m0),i=r-a,o=(Io*(n-a)-ip*i)/Mu,s=Math.sqrt(o*o+i*i)/(Io*a*(1-a)),c=s?Math.atan2(o,i)*BP-120:NaN;return new ia(c<0?c+360:c,s,a,e.opacity)}function Xn(e,t,n,r){return arguments.length===1?zP(e):new ia(e,t,n,r??1)}function ia(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}$u(ia,Xn,rp(Ci,{brighter(e){return e=e==null?ni:Math.pow(ni,e),new ia(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ma:Math.pow(ma,e),new ia(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*WP,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),a=Math.sin(e);return new zt(255*(t+n*(Kx*r+ap*a)),255*(t+n*(ip*r+Mu*a)),255*(t+n*(Io*r)),this.opacity)}}));function HP(e,t,n,r,a){var i=e*e,o=i*e;return((1-3*e+3*i-o)*t+(4-6*i+3*o)*n+(1+3*e+3*i-3*o)*r+o*a)/6}function VP(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),a=e[r],i=e[r+1],o=r>0?e[r-1]:2*a-i,s=r<t-1?e[r+2]:2*i-a;return HP((n-r/t)*t,o,a,i,s)}}const Ru=e=>()=>e;function Xx(e,t){return function(n){return e+n*t}}function qP(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function YP(e,t){var n=t-e;return n?Xx(e,n>180||n<-180?n-360*Math.round(n/360):n):Ru(isNaN(e)?t:e)}function GP(e){return(e=+e)==1?Va:function(t,n){return n-t?qP(t,n,e):Ru(isNaN(t)?n:t)}}function Va(e,t){var n=t-e;return n?Xx(e,n):Ru(isNaN(e)?t:e)}const v0=function e(t){var n=GP(t);function r(a,i){var o=n((a=ri(a)).r,(i=ri(i)).r),s=n(a.g,i.g),c=n(a.b,i.b),u=Va(a.opacity,i.opacity);return function(l){return a.r=o(l),a.g=s(l),a.b=c(l),a.opacity=u(l),a+""}}return r.gamma=e,r}(1);function ZP(e){return function(t){var n=t.length,r=new Array(n),a=new Array(n),i=new Array(n),o,s;for(o=0;o<n;++o)s=ri(t[o]),r[o]=s.r||0,a[o]=s.g||0,i[o]=s.b||0;return r=e(r),a=e(a),i=e(i),s.opacity=1,function(c){return s.r=r(c),s.g=a(c),s.b=i(c),s+""}}}var KP=ZP(VP);function XP(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),a;return function(i){for(a=0;a<n;++a)r[a]=e[a]*(1-i)+t[a]*i;return r}}function JP(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function QP(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,a=new Array(r),i=new Array(n),o;for(o=0;o<r;++o)a[o]=op(e[o],t[o]);for(;o<n;++o)i[o]=t[o];return function(s){for(o=0;o<r;++o)i[o]=a[o](s);return i}}function eD(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function yc(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function tD(e,t){var n={},r={},a;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(a in t)a in e?n[a]=op(e[a],t[a]):r[a]=t[a];return function(i){for(a in n)r[a]=n[a](i);return r}}var mf=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Kl=new RegExp(mf.source,"g");function nD(e){return function(){return e}}function rD(e){return function(t){return e(t)+""}}function Jx(e,t){var n=mf.lastIndex=Kl.lastIndex=0,r,a,i,o=-1,s=[],c=[];for(e=e+"",t=t+"";(r=mf.exec(e))&&(a=Kl.exec(t));)(i=a.index)>n&&(i=t.slice(n,i),s[o]?s[o]+=i:s[++o]=i),(r=r[0])===(a=a[0])?s[o]?s[o]+=a:s[++o]=a:(s[++o]=null,c.push({i:o,x:yc(r,a)})),n=Kl.lastIndex;return n<t.length&&(i=t.slice(n),s[o]?s[o]+=i:s[++o]=i),s.length<2?c[0]?rD(c[0].x):nD(t):(t=c.length,function(u){for(var l=0,d;l<t;++l)s[(d=c[l]).i]=d.x(u);return s.join("")})}function op(e,t){var n=typeof t,r;return t==null||n==="boolean"?Ru(t):(n==="number"?yc:n==="string"?(r=Do(t))?(t=r,v0):Jx:t instanceof Do?v0:t instanceof Date?eD:JP(t)?XP:Array.isArray(t)?QP:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?tD:yc)(e,t)}function aD(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Qx(e){return function t(n){n=+n;function r(a,i){var o=e((a=Xn(a)).h,(i=Xn(i)).h),s=Va(a.s,i.s),c=Va(a.l,i.l),u=Va(a.opacity,i.opacity);return function(l){return a.h=o(l),a.s=s(l),a.l=c(Math.pow(l,n)),a.opacity=u(l),a+""}}return r.gamma=t,r}(1)}Qx(YP);var sp=Qx(Va),iD=Br,oD=cn,sD=Un,cD="[object String]";function uD(e){return typeof e=="string"||!oD(e)&&sD(e)&&iD(e)==cD}var lD=uD;const dD=Mt(lD);function fD(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var e2=fD;const ye=Mt(e2);function Ns(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function hD(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function cp(e){let t,n,r;e.length!==2?(t=Ns,n=(s,c)=>Ns(e(s),c),r=(s,c)=>e(s)-c):(t=e===Ns||e===hD?e:pD,n=e,r=e);function a(s,c,u=0,l=s.length){if(u<l){if(t(c,c)!==0)return l;do{const d=u+l>>>1;n(s[d],c)<0?u=d+1:l=d}while(u<l)}return u}function i(s,c,u=0,l=s.length){if(u<l){if(t(c,c)!==0)return l;do{const d=u+l>>>1;n(s[d],c)<=0?u=d+1:l=d}while(u<l)}return u}function o(s,c,u=0,l=s.length){const d=a(s,c,u,l-1);return d>u&&r(s[d-1],c)>-r(s[d],c)?d-1:d}return{left:a,center:o,right:i}}function pD(){return 0}function mD(e){return e===null?NaN:+e}const gD=cp(Ns),vD=gD.right;cp(mD).center;class y0 extends Map{constructor(t,n=xD){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,a]of t)this.set(r,a)}get(t){return super.get(b0(this,t))}has(t){return super.has(b0(this,t))}set(t,n){return super.set(yD(this,t),n)}delete(t){return super.delete(bD(this,t))}}function b0({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function yD({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function bD({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function xD(e){return e!==null&&typeof e=="object"?e.valueOf():e}const _D=Math.sqrt(50),wD=Math.sqrt(10),TD=Math.sqrt(2);function bc(e,t,n){const r=(t-e)/Math.max(0,n),a=Math.floor(Math.log10(r)),i=r/Math.pow(10,a),o=i>=_D?10:i>=wD?5:i>=TD?2:1;let s,c,u;return a<0?(u=Math.pow(10,-a)/o,s=Math.round(e*u),c=Math.round(t*u),s/u<e&&++s,c/u>t&&--c,u=-u):(u=Math.pow(10,a)*o,s=Math.round(e/u),c=Math.round(t/u),s*u<e&&++s,c*u>t&&--c),c<s&&.5<=n&&n<2?bc(e,t,n*2):[s,c,u]}function gf(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[a,i,o]=r?bc(t,e,n):bc(e,t,n);if(!(i>=a))return[];const s=i-a+1,c=new Array(s);if(r)if(o<0)for(let u=0;u<s;++u)c[u]=(i-u)/-o;else for(let u=0;u<s;++u)c[u]=(i-u)*o;else if(o<0)for(let u=0;u<s;++u)c[u]=(a+u)/-o;else for(let u=0;u<s;++u)c[u]=(a+u)*o;return c}function vf(e,t,n){return t=+t,e=+e,n=+n,bc(e,t,n)[2]}function yf(e,t,n){t=+t,e=+e,n=+n;const r=t<e,a=r?vf(t,e,n):vf(e,t,n);return(r?-1:1)*(a<0?1/-a:a)}function CD(e,t,n){e=+e,t=+t,n=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+n;for(var r=-1,a=Math.max(0,Math.ceil((t-e)/n))|0,i=new Array(a);++r<a;)i[r]=e+r*n;return i}function wa(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}const x0=Symbol("implicit");function Jr(){var e=new y0,t=[],n=[],r=x0;function a(i){let o=e.get(i);if(o===void 0){if(r!==x0)return r;e.set(i,o=t.push(i)-1)}return n[o%n.length]}return a.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new y0;for(const o of i)e.has(o)||e.set(o,t.push(o)-1);return a},a.range=function(i){return arguments.length?(n=Array.from(i),a):n.slice()},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return Jr(t,n).unknown(r)},wa.apply(a,arguments),a}function up(){var e=Jr().unknown(void 0),t=e.domain,n=e.range,r=0,a=1,i,o,s=!1,c=0,u=0,l=.5;delete e.unknown;function d(){var f=t().length,h=a<r,g=h?a:r,v=h?r:a;i=(v-g)/Math.max(1,f-c+u*2),s&&(i=Math.floor(i)),g+=(v-g-i*(f-c))*l,o=i*(1-c),s&&(g=Math.round(g),o=Math.round(o));var m=CD(f).map(function(_){return g+i*_});return n(h?m.reverse():m)}return e.domain=function(f){return arguments.length?(t(f),d()):t()},e.range=function(f){return arguments.length?([r,a]=f,r=+r,a=+a,d()):[r,a]},e.rangeRound=function(f){return[r,a]=f,r=+r,a=+a,s=!0,d()},e.bandwidth=function(){return o},e.step=function(){return i},e.round=function(f){return arguments.length?(s=!!f,d()):s},e.padding=function(f){return arguments.length?(c=Math.min(1,u=+f),d()):c},e.paddingInner=function(f){return arguments.length?(c=Math.min(1,f),d()):c},e.paddingOuter=function(f){return arguments.length?(u=+f,d()):u},e.align=function(f){return arguments.length?(l=Math.max(0,Math.min(1,f)),d()):l},e.copy=function(){return up(t(),[r,a]).round(s).paddingInner(c).paddingOuter(u).align(l)},wa.apply(d(),arguments)}function t2(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return t2(t())},e}function kD(){return t2(up.apply(null,arguments).paddingInner(1))}function SD(e){return function(){return e}}function OD(e){return+e}var _0=[0,1];function La(e){return e}function bf(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:SD(isNaN(t)?NaN:.5)}function ED(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function $D(e,t,n){var r=e[0],a=e[1],i=t[0],o=t[1];return a<r?(r=bf(a,r),i=n(o,i)):(r=bf(r,a),i=n(i,o)),function(s){return i(r(s))}}function MD(e,t,n){var r=Math.min(e.length,t.length)-1,a=new Array(r),i=new Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)a[o]=bf(e[o],e[o+1]),i[o]=n(t[o],t[o+1]);return function(s){var c=vD(e,s,1,r)-1;return i[c](a[c](s))}}function Au(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function lp(){var e=_0,t=_0,n=op,r,a,i,o=La,s,c,u;function l(){var f=Math.min(e.length,t.length);return o!==La&&(o=ED(e[0],e[f-1])),s=f>2?MD:$D,c=u=null,d}function d(f){return f==null||isNaN(f=+f)?i:(c||(c=s(e.map(r),t,n)))(r(o(f)))}return d.invert=function(f){return o(a((u||(u=s(t,e.map(r),yc)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,OD),l()):e.slice()},d.range=function(f){return arguments.length?(t=Array.from(f),l()):t.slice()},d.rangeRound=function(f){return t=Array.from(f),n=aD,l()},d.clamp=function(f){return arguments.length?(o=f?!0:La,l()):o!==La},d.interpolate=function(f){return arguments.length?(n=f,l()):n},d.unknown=function(f){return arguments.length?(i=f,d):i},function(f,h){return r=f,a=h,l()}}function n2(){return lp()(La,La)}function RD(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function xc(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function ai(e){return e=xc(Math.abs(e)),e?e[1]:NaN}function AD(e,t){return function(n,r){for(var a=n.length,i=[],o=0,s=e[0],c=0;a>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),i.push(n.substring(a-=s,a+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return i.reverse().join(t)}}function jD(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var PD=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function No(e){if(!(t=PD.exec(e)))throw new Error("invalid format: "+e);var t;return new dp({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}No.prototype=dp.prototype;function dp(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}dp.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function DD(e){e:for(var t=e.length,n=1,r=-1,a;n<t;++n)switch(e[n]){case".":r=a=n;break;case"0":r===0&&(r=n),a=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(a+1):e}var r2;function ID(e,t){var n=xc(e,t);if(!n)return e+"";var r=n[0],a=n[1],i=a-(r2=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,o=r.length;return i===o?r:i>o?r+new Array(i-o+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+xc(e,Math.max(0,t+i-1))[0]}function w0(e,t){var n=xc(e,t);if(!n)return e+"";var r=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")}const T0={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:RD,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return w0(e*100,t)},r:w0,s:ID,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function C0(e){return e}var k0=Array.prototype.map,S0=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function ND(e){var t=e.grouping===void 0||e.thousands===void 0?C0:AD(k0.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?C0:jD(k0.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"-":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function u(d){d=No(d);var f=d.fill,h=d.align,g=d.sign,v=d.symbol,m=d.zero,_=d.width,w=d.comma,b=d.precision,T=d.trim,x=d.type;x==="n"?(w=!0,x="g"):T0[x]||(b===void 0&&(b=12),T=!0,x="g"),(m||f==="0"&&h==="=")&&(m=!0,f="0",h="=");var C=v==="$"?n:v==="#"&&/[boxX]/.test(x)?"0"+x.toLowerCase():"",$=v==="$"?r:/[%p]/.test(x)?o:"",A=T0[x],D=/[defgprs%]/.test(x);b=b===void 0?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b));function j(E){var F=C,M=$,R,I,U;if(x==="c")M=A(E)+M,E="";else{E=+E;var N=E<0||1/E<0;if(E=isNaN(E)?c:A(Math.abs(E),b),T&&(E=DD(E)),N&&+E==0&&g!=="+"&&(N=!1),F=(N?g==="("?g:s:g==="-"||g==="("?"":g)+F,M=(x==="s"?S0[8+r2/3]:"")+M+(N&&g==="("?")":""),D){for(R=-1,I=E.length;++R<I;)if(U=E.charCodeAt(R),48>U||U>57){M=(U===46?a+E.slice(R+1):E.slice(R))+M,E=E.slice(0,R);break}}}w&&!m&&(E=t(E,1/0));var q=F.length+E.length+M.length,z=q<_?new Array(_-q+1).join(f):"";switch(w&&m&&(E=t(z+E,z.length?_-M.length:1/0),z=""),h){case"<":E=F+E+M+z;break;case"=":E=F+z+E+M;break;case"^":E=z.slice(0,q=z.length>>1)+F+E+M+z.slice(q);break;default:E=z+F+E+M;break}return i(E)}return j.toString=function(){return d+""},j}function l(d,f){var h=u((d=No(d),d.type="f",d)),g=Math.max(-8,Math.min(8,Math.floor(ai(f)/3)))*3,v=Math.pow(10,-g),m=S0[8+g/3];return function(_){return h(v*_)+m}}return{format:u,formatPrefix:l}}var _s,is,a2;FD({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function FD(e){return _s=ND(e),is=_s.format,a2=_s.formatPrefix,_s}function LD(e){return Math.max(0,-ai(Math.abs(e)))}function UD(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ai(t)/3)))*3-ai(Math.abs(e)))}function WD(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ai(t)-ai(e))+1}function BD(e,t,n,r){var a=yf(e,t,n),i;switch(r=No(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=UD(a,o))&&(r.precision=i),a2(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=WD(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=LD(a))&&(r.precision=i-(r.type==="%")*2);break}}return is(r)}function i2(e){var t=e.domain;return e.ticks=function(n){var r=t();return gf(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return BD(a[0],a[a.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),a=0,i=r.length-1,o=r[a],s=r[i],c,u,l=10;for(s<o&&(u=o,o=s,s=u,u=a,a=i,i=u);l-- >0;){if(u=vf(o,s,n),u===c)return r[a]=o,r[i]=s,t(r);if(u>0)o=Math.floor(o/u)*u,s=Math.ceil(s/u)*u;else if(u<0)o=Math.ceil(o*u)/u,s=Math.floor(s*u)/u;else break;c=u}return e},e}function o2(){var e=n2();return e.copy=function(){return Au(e,o2())},wa.apply(e,arguments),i2(e)}function s2(e,t){e=e.slice();var n=0,r=e.length-1,a=e[n],i=e[r],o;return i<a&&(o=n,n=r,r=o,o=a,a=i,i=o),e[n]=t.floor(a),e[r]=t.ceil(i),e}function O0(e){return Math.log(e)}function E0(e){return Math.exp(e)}function zD(e){return-Math.log(-e)}function HD(e){return-Math.exp(-e)}function VD(e){return isFinite(e)?+("1e"+e):e<0?0:e}function qD(e){return e===10?VD:e===Math.E?Math.exp:t=>Math.pow(e,t)}function YD(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function $0(e){return(t,n)=>-e(-t,n)}function GD(e){const t=e(O0,E0),n=t.domain;let r=10,a,i;function o(){return a=YD(r),i=qD(r),n()[0]<0?(a=$0(a),i=$0(i),e(zD,HD)):e(O0,E0),t}return t.base=function(s){return arguments.length?(r=+s,o()):r},t.domain=function(s){return arguments.length?(n(s),o()):n()},t.ticks=s=>{const c=n();let u=c[0],l=c[c.length-1];const d=l<u;d&&([u,l]=[l,u]);let f=a(u),h=a(l),g,v;const m=s==null?10:+s;let _=[];if(!(r%1)&&h-f<m){if(f=Math.floor(f),h=Math.ceil(h),u>0){for(;f<=h;++f)for(g=1;g<r;++g)if(v=f<0?g/i(-f):g*i(f),!(v<u)){if(v>l)break;_.push(v)}}else for(;f<=h;++f)for(g=r-1;g>=1;--g)if(v=f>0?g/i(-f):g*i(f),!(v<u)){if(v>l)break;_.push(v)}_.length*2<m&&(_=gf(u,l,m))}else _=gf(f,h,Math.min(h-f,m)).map(i);return d?_.reverse():_},t.tickFormat=(s,c)=>{if(s==null&&(s=10),c==null&&(c=r===10?"s":","),typeof c!="function"&&(!(r%1)&&(c=No(c)).precision==null&&(c.trim=!0),c=is(c)),s===1/0)return c;const u=Math.max(1,r*s/t.ticks().length);return l=>{let d=l/i(Math.round(a(l)));return d*r<r-.5&&(d*=r),d<=u?c(l):""}},t.nice=()=>n(s2(n(),{floor:s=>i(Math.floor(a(s))),ceil:s=>i(Math.ceil(a(s)))})),t}function c2(){const e=GD(lp()).domain([1,10]);return e.copy=()=>Au(e,c2()).base(e.base()),wa.apply(e,arguments),e}function M0(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function R0(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function ZD(e){var t=1,n=e(M0(t),R0(t));return n.constant=function(r){return arguments.length?e(M0(t=+r),R0(t)):t},i2(n)}function u2(){var e=ZD(lp());return e.copy=function(){return Au(e,u2()).constant(e.constant())},wa.apply(e,arguments)}const Xl=new Date,Jl=new Date;function Rt(e,t,n,r){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=i=>(e(i=new Date(+i)),i),a.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),a.round=i=>{const o=a(i),s=a.ceil(i);return i-o<s-i?o:s},a.offset=(i,o)=>(t(i=new Date(+i),o==null?1:Math.floor(o)),i),a.range=(i,o,s)=>{const c=[];if(i=a.ceil(i),s=s==null?1:Math.floor(s),!(i<o)||!(s>0))return c;let u;do c.push(u=new Date(+i)),t(i,s),e(i);while(u<i&&i<o);return c},a.filter=i=>Rt(o=>{if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!i(o););else for(;--s>=0;)for(;t(o,1),!i(o););}),n&&(a.count=(i,o)=>(Xl.setTime(+i),Jl.setTime(+o),e(Xl),e(Jl),Math.floor(n(Xl,Jl))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?o=>r(o)%i===0:o=>a.count(0,o)%i===0):a)),a}const _c=Rt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);_c.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Rt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):_c);_c.range;const sr=1e3,Cn=sr*60,cr=Cn*60,mr=cr*24,fp=mr*7,A0=mr*30,Ql=mr*365,Qr=Rt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*sr)},(e,t)=>(t-e)/sr,e=>e.getUTCSeconds());Qr.range;const hp=Rt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*sr)},(e,t)=>{e.setTime(+e+t*Cn)},(e,t)=>(t-e)/Cn,e=>e.getMinutes());hp.range;const pp=Rt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Cn)},(e,t)=>(t-e)/Cn,e=>e.getUTCMinutes());pp.range;const mp=Rt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*sr-e.getMinutes()*Cn)},(e,t)=>{e.setTime(+e+t*cr)},(e,t)=>(t-e)/cr,e=>e.getHours());mp.range;const gp=Rt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*cr)},(e,t)=>(t-e)/cr,e=>e.getUTCHours());gp.range;const vp=Rt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Cn)/mr,e=>e.getDate()-1);vp.range;const l2=Rt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/mr,e=>e.getUTCDate()-1);l2.range;const d2=Rt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/mr,e=>Math.floor(e/mr));d2.range;function Ta(e){return Rt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Cn)/fp)}const yp=Ta(0),KD=Ta(1),XD=Ta(2),JD=Ta(3),QD=Ta(4),eI=Ta(5),tI=Ta(6);yp.range;KD.range;XD.range;JD.range;QD.range;eI.range;tI.range;function Ca(e){return Rt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/fp)}const bp=Ca(0),nI=Ca(1),rI=Ca(2),aI=Ca(3),iI=Ca(4),oI=Ca(5),sI=Ca(6);bp.range;nI.range;rI.range;aI.range;iI.range;oI.range;sI.range;const xp=Rt(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());xp.range;const _p=Rt(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());_p.range;const ju=Rt(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());ju.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Rt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});ju.range;const Pu=Rt(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Pu.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Rt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});Pu.range;function f2(e,t,n,r,a,i){const o=[[Qr,1,sr],[Qr,5,5*sr],[Qr,15,15*sr],[Qr,30,30*sr],[i,1,Cn],[i,5,5*Cn],[i,15,15*Cn],[i,30,30*Cn],[a,1,cr],[a,3,3*cr],[a,6,6*cr],[a,12,12*cr],[r,1,mr],[r,2,2*mr],[n,1,fp],[t,1,A0],[t,3,3*A0],[e,1,Ql]];function s(u,l,d){const f=l<u;f&&([u,l]=[l,u]);const h=d&&typeof d.range=="function"?d:c(u,l,d),g=h?h.range(u,+l+1):[];return f?g.reverse():g}function c(u,l,d){const f=Math.abs(l-u)/d,h=cp(([,,m])=>m).right(o,f);if(h===o.length)return e.every(yf(u/Ql,l/Ql,d));if(h===0)return _c.every(Math.max(yf(u,l,d),1));const[g,v]=o[f/o[h-1][2]<o[h][2]/f?h-1:h];return g.every(v)}return[s,c]}const[cI,uI]=f2(Pu,_p,bp,d2,gp,pp),[lI,dI]=f2(ju,xp,yp,vp,mp,hp);var ed=new Date,td=new Date;function yr(e,t,n,r){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=function(i){return e(i=new Date(+i)),i},a.ceil=function(i){return e(i=new Date(i-1)),t(i,1),e(i),i},a.round=function(i){var o=a(i),s=a.ceil(i);return i-o<s-i?o:s},a.offset=function(i,o){return t(i=new Date(+i),o==null?1:Math.floor(o)),i},a.range=function(i,o,s){var c=[],u;if(i=a.ceil(i),s=s==null?1:Math.floor(s),!(i<o)||!(s>0))return c;do c.push(u=new Date(+i)),t(i,s),e(i);while(u<i&&i<o);return c},a.filter=function(i){return yr(function(o){if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},function(o,s){if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!i(o););else for(;--s>=0;)for(;t(o,1),!i(o););})},n&&(a.count=function(i,o){return ed.setTime(+i),td.setTime(+o),e(ed),e(td),Math.floor(n(ed,td))},a.every=function(i){return i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?function(o){return r(o)%i===0}:function(o){return a.count(0,o)%i===0}):a}),a}const fI=1e3,wp=fI*60,hI=wp*60,Tp=hI*24,h2=Tp*7;var Cp=yr(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*wp)/Tp,e=>e.getDate()-1);Cp.range;function ka(e){return yr(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*wp)/h2})}var p2=ka(0),wc=ka(1),pI=ka(2),mI=ka(3),ii=ka(4),gI=ka(5),vI=ka(6);p2.range;wc.range;pI.range;mI.range;ii.range;gI.range;vI.range;var ga=yr(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});ga.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:yr(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})};ga.range;var kp=yr(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/Tp},function(e){return e.getUTCDate()-1});kp.range;function Sa(e){return yr(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/h2})}var m2=Sa(0),Tc=Sa(1),yI=Sa(2),bI=Sa(3),oi=Sa(4),xI=Sa(5),_I=Sa(6);m2.range;Tc.range;yI.range;bI.range;oi.range;xI.range;_I.range;var va=yr(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});va.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:yr(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})};va.range;function nd(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function rd(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Ui(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function wI(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,i=e.days,o=e.shortDays,s=e.months,c=e.shortMonths,u=Wi(a),l=Bi(a),d=Wi(i),f=Bi(i),h=Wi(o),g=Bi(o),v=Wi(s),m=Bi(s),_=Wi(c),w=Bi(c),b={a:N,A:q,b:z,B:P,c:null,d:F0,e:F0,f:VI,g:tN,G:rN,H:BI,I:zI,j:HI,L:g2,m:qI,M:YI,p:B,q:Z,Q:W0,s:B0,S:GI,u:ZI,U:KI,V:XI,w:JI,W:QI,x:null,X:null,y:eN,Y:nN,Z:aN,"%":U0},T={a:ne,A:Y,b:Q,B:G,c:null,d:L0,e:L0,f:cN,g:yN,G:xN,H:iN,I:oN,j:sN,L:y2,m:uN,M:lN,p:J,q:re,Q:W0,s:B0,S:dN,u:fN,U:hN,V:pN,w:mN,W:gN,x:null,X:null,y:vN,Y:bN,Z:_N,"%":U0},x={a:j,A:E,b:F,B:M,c:R,d:I0,e:I0,f:FI,g:D0,G:P0,H:N0,I:N0,j:PI,L:NI,m:jI,M:DI,p:D,q:AI,Q:UI,s:WI,S:II,u:OI,U:EI,V:$I,w:SI,W:MI,x:I,X:U,y:D0,Y:P0,Z:RI,"%":LI};b.x=C(n,b),b.X=C(r,b),b.c=C(t,b),T.x=C(n,T),T.X=C(r,T),T.c=C(t,T);function C(L,V){return function(ae){var k=[],ge=-1,pe=0,de=L.length,Ae,Pe,ft;for(ae instanceof Date||(ae=new Date(+ae));++ge<de;)L.charCodeAt(ge)===37&&(k.push(L.slice(pe,ge)),(Pe=j0[Ae=L.charAt(++ge)])!=null?Ae=L.charAt(++ge):Pe=Ae==="e"?" ":"0",(ft=V[Ae])&&(Ae=ft(ae,Pe)),k.push(Ae),pe=ge+1);return k.push(L.slice(pe,ge)),k.join("")}}function $(L,V){return function(ae){var k=Ui(1900,void 0,1),ge=A(k,L,ae+="",0),pe,de;if(ge!=ae.length)return null;if("Q"in k)return new Date(k.Q);if("s"in k)return new Date(k.s*1e3+("L"in k?k.L:0));if(V&&!("Z"in k)&&(k.Z=0),"p"in k&&(k.H=k.H%12+k.p*12),k.m===void 0&&(k.m="q"in k?k.q:0),"V"in k){if(k.V<1||k.V>53)return null;"w"in k||(k.w=1),"Z"in k?(pe=rd(Ui(k.y,0,1)),de=pe.getUTCDay(),pe=de>4||de===0?Tc.ceil(pe):Tc(pe),pe=kp.offset(pe,(k.V-1)*7),k.y=pe.getUTCFullYear(),k.m=pe.getUTCMonth(),k.d=pe.getUTCDate()+(k.w+6)%7):(pe=nd(Ui(k.y,0,1)),de=pe.getDay(),pe=de>4||de===0?wc.ceil(pe):wc(pe),pe=Cp.offset(pe,(k.V-1)*7),k.y=pe.getFullYear(),k.m=pe.getMonth(),k.d=pe.getDate()+(k.w+6)%7)}else("W"in k||"U"in k)&&("w"in k||(k.w="u"in k?k.u%7:"W"in k?1:0),de="Z"in k?rd(Ui(k.y,0,1)).getUTCDay():nd(Ui(k.y,0,1)).getDay(),k.m=0,k.d="W"in k?(k.w+6)%7+k.W*7-(de+5)%7:k.w+k.U*7-(de+6)%7);return"Z"in k?(k.H+=k.Z/100|0,k.M+=k.Z%100,rd(k)):nd(k)}}function A(L,V,ae,k){for(var ge=0,pe=V.length,de=ae.length,Ae,Pe;ge<pe;){if(k>=de)return-1;if(Ae=V.charCodeAt(ge++),Ae===37){if(Ae=V.charAt(ge++),Pe=x[Ae in j0?V.charAt(ge++):Ae],!Pe||(k=Pe(L,ae,k))<0)return-1}else if(Ae!=ae.charCodeAt(k++))return-1}return k}function D(L,V,ae){var k=u.exec(V.slice(ae));return k?(L.p=l.get(k[0].toLowerCase()),ae+k[0].length):-1}function j(L,V,ae){var k=h.exec(V.slice(ae));return k?(L.w=g.get(k[0].toLowerCase()),ae+k[0].length):-1}function E(L,V,ae){var k=d.exec(V.slice(ae));return k?(L.w=f.get(k[0].toLowerCase()),ae+k[0].length):-1}function F(L,V,ae){var k=_.exec(V.slice(ae));return k?(L.m=w.get(k[0].toLowerCase()),ae+k[0].length):-1}function M(L,V,ae){var k=v.exec(V.slice(ae));return k?(L.m=m.get(k[0].toLowerCase()),ae+k[0].length):-1}function R(L,V,ae){return A(L,t,V,ae)}function I(L,V,ae){return A(L,n,V,ae)}function U(L,V,ae){return A(L,r,V,ae)}function N(L){return o[L.getDay()]}function q(L){return i[L.getDay()]}function z(L){return c[L.getMonth()]}function P(L){return s[L.getMonth()]}function B(L){return a[+(L.getHours()>=12)]}function Z(L){return 1+~~(L.getMonth()/3)}function ne(L){return o[L.getUTCDay()]}function Y(L){return i[L.getUTCDay()]}function Q(L){return c[L.getUTCMonth()]}function G(L){return s[L.getUTCMonth()]}function J(L){return a[+(L.getUTCHours()>=12)]}function re(L){return 1+~~(L.getUTCMonth()/3)}return{format:function(L){var V=C(L+="",b);return V.toString=function(){return L},V},parse:function(L){var V=$(L+="",!1);return V.toString=function(){return L},V},utcFormat:function(L){var V=C(L+="",T);return V.toString=function(){return L},V},utcParse:function(L){var V=$(L+="",!0);return V.toString=function(){return L},V}}}var j0={"-":"",_:" ",0:"0"},Dt=/^\s*\d+/,TI=/^%/,CI=/[\\^$*+?|[\]().{}]/g;function We(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",i=a.length;return r+(i<n?new Array(n-i+1).join(t)+a:a)}function kI(e){return e.replace(CI,"\\$&")}function Wi(e){return new RegExp("^(?:"+e.map(kI).join("|")+")","i")}function Bi(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function SI(e,t,n){var r=Dt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function OI(e,t,n){var r=Dt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function EI(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function $I(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function MI(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function P0(e,t,n){var r=Dt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function D0(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function RI(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function AI(e,t,n){var r=Dt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function jI(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function I0(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function PI(e,t,n){var r=Dt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function N0(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function DI(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function II(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function NI(e,t,n){var r=Dt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function FI(e,t,n){var r=Dt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function LI(e,t,n){var r=TI.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function UI(e,t,n){var r=Dt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function WI(e,t,n){var r=Dt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function F0(e,t){return We(e.getDate(),t,2)}function BI(e,t){return We(e.getHours(),t,2)}function zI(e,t){return We(e.getHours()%12||12,t,2)}function HI(e,t){return We(1+Cp.count(ga(e),e),t,3)}function g2(e,t){return We(e.getMilliseconds(),t,3)}function VI(e,t){return g2(e,t)+"000"}function qI(e,t){return We(e.getMonth()+1,t,2)}function YI(e,t){return We(e.getMinutes(),t,2)}function GI(e,t){return We(e.getSeconds(),t,2)}function ZI(e){var t=e.getDay();return t===0?7:t}function KI(e,t){return We(p2.count(ga(e)-1,e),t,2)}function v2(e){var t=e.getDay();return t>=4||t===0?ii(e):ii.ceil(e)}function XI(e,t){return e=v2(e),We(ii.count(ga(e),e)+(ga(e).getDay()===4),t,2)}function JI(e){return e.getDay()}function QI(e,t){return We(wc.count(ga(e)-1,e),t,2)}function eN(e,t){return We(e.getFullYear()%100,t,2)}function tN(e,t){return e=v2(e),We(e.getFullYear()%100,t,2)}function nN(e,t){return We(e.getFullYear()%1e4,t,4)}function rN(e,t){var n=e.getDay();return e=n>=4||n===0?ii(e):ii.ceil(e),We(e.getFullYear()%1e4,t,4)}function aN(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+We(t/60|0,"0",2)+We(t%60,"0",2)}function L0(e,t){return We(e.getUTCDate(),t,2)}function iN(e,t){return We(e.getUTCHours(),t,2)}function oN(e,t){return We(e.getUTCHours()%12||12,t,2)}function sN(e,t){return We(1+kp.count(va(e),e),t,3)}function y2(e,t){return We(e.getUTCMilliseconds(),t,3)}function cN(e,t){return y2(e,t)+"000"}function uN(e,t){return We(e.getUTCMonth()+1,t,2)}function lN(e,t){return We(e.getUTCMinutes(),t,2)}function dN(e,t){return We(e.getUTCSeconds(),t,2)}function fN(e){var t=e.getUTCDay();return t===0?7:t}function hN(e,t){return We(m2.count(va(e)-1,e),t,2)}function b2(e){var t=e.getUTCDay();return t>=4||t===0?oi(e):oi.ceil(e)}function pN(e,t){return e=b2(e),We(oi.count(va(e),e)+(va(e).getUTCDay()===4),t,2)}function mN(e){return e.getUTCDay()}function gN(e,t){return We(Tc.count(va(e)-1,e),t,2)}function vN(e,t){return We(e.getUTCFullYear()%100,t,2)}function yN(e,t){return e=b2(e),We(e.getUTCFullYear()%100,t,2)}function bN(e,t){return We(e.getUTCFullYear()%1e4,t,4)}function xN(e,t){var n=e.getUTCDay();return e=n>=4||n===0?oi(e):oi.ceil(e),We(e.getUTCFullYear()%1e4,t,4)}function _N(){return"+0000"}function U0(){return"%"}function W0(e){return+e}function B0(e){return Math.floor(+e/1e3)}var Da,Du,x2,_2,w2;wN({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function wN(e){return Da=wI(e),Du=Da.format,x2=Da.parse,_2=Da.utcFormat,w2=Da.utcParse,Da}function TN(e){return new Date(e)}function CN(e){return e instanceof Date?+e:+new Date(+e)}function Sp(e,t,n,r,a,i,o,s,c,u){var l=n2(),d=l.invert,f=l.domain,h=u(".%L"),g=u(":%S"),v=u("%I:%M"),m=u("%I %p"),_=u("%a %d"),w=u("%b %d"),b=u("%B"),T=u("%Y");function x(C){return(c(C)<C?h:s(C)<C?g:o(C)<C?v:i(C)<C?m:r(C)<C?a(C)<C?_:w:n(C)<C?b:T)(C)}return l.invert=function(C){return new Date(d(C))},l.domain=function(C){return arguments.length?f(Array.from(C,CN)):f().map(TN)},l.ticks=function(C){var $=f();return e($[0],$[$.length-1],C??10)},l.tickFormat=function(C,$){return $==null?x:u($)},l.nice=function(C){var $=f();return(!C||typeof C.range!="function")&&(C=t($[0],$[$.length-1],C??10)),C?f(s2($,C)):l},l.copy=function(){return Au(l,Sp(e,t,n,r,a,i,o,s,c,u))},l}function kN(){return wa.apply(Sp(lI,dI,ju,xp,yp,vp,mp,hp,Qr,Du).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function SN(){return wa.apply(Sp(cI,uI,Pu,_p,bp,l2,gp,pp,Qr,_2).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function $e(e){for(var t=e.length/6|0,n=new Array(t),r=0;r<t;)n[r]="#"+e.slice(r*6,++r*6);return n}const T2=$e("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),C2=$e("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),k2=$e("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),S2=$e("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),O2=$e("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),E2=$e("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),$2=$e("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),M2=$e("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),Op=$e("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),ON=$e("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),nt=e=>KP(e[e.length-1]);var Iu=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map($e);const EN=nt(Iu);var Nu=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map($e);const $N=nt(Nu);var Fu=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map($e);const MN=nt(Fu);var Lu=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map($e);const RN=nt(Lu);var Uu=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map($e);const AN=nt(Uu);var Wu=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map($e);const jN=nt(Wu);var Bu=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map($e);const PN=nt(Bu);var zu=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map($e);const DN=nt(zu);var Hu=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map($e);const IN=nt(Hu);var Vu=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map($e);const NN=nt(Vu);var qu=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map($e);const FN=nt(qu);var Yu=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map($e);const LN=nt(Yu);var Gu=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map($e);const UN=nt(Gu);var Zu=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map($e);const WN=nt(Zu);var Ku=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map($e);const BN=nt(Ku);var Xu=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map($e);const zN=nt(Xu);var Ju=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map($e);const HN=nt(Ju);var Qu=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map($e);const VN=nt(Qu);var el=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map($e);const qN=nt(el);var tl=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map($e);const YN=nt(tl);var nl=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map($e);const GN=nt(nl);var rl=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map($e);const ZN=nt(rl);var al=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map($e);const KN=nt(al);var il=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map($e);const XN=nt(il);var ol=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map($e);const JN=nt(ol);var sl=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map($e);const QN=nt(sl);var cl=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map($e);const eF=nt(cl);function tF(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-e*(35.34-e*(2381.73-e*(6402.7-e*(7024.72-e*2710.57)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-e*67.37)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-e*2475.67)))))))+")"}const nF=sp(Xn(300,.5,0),Xn(-240,.5,1));var rF=sp(Xn(-100,.75,.35),Xn(80,1.5,.8)),aF=sp(Xn(260,.75,.35),Xn(80,1.5,.8)),ws=Xn();function iF(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return ws.h=360*e-100,ws.s=1.5-1.5*t,ws.l=.8-.9*t,ws+""}var Ts=ri(),oF=Math.PI/3,sF=Math.PI*2/3;function cF(e){var t;return e=(.5-e)*Math.PI,Ts.r=255*(t=Math.sin(e))*t,Ts.g=255*(t=Math.sin(e+oF))*t,Ts.b=255*(t=Math.sin(e+sF))*t,Ts+""}function uF(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-e*14825.05)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+e*707.56)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-e*6838.66)))))))+")"}function ul(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}const lF=ul($e("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var dF=ul($e("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),fF=ul($e("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),hF=ul($e("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),pF="__lodash_hash_undefined__";function mF(e){return this.__data__.set(e,pF),this}var gF=mF;function vF(e){return this.__data__.has(e)}var yF=vF,bF=Hh,xF=gF,_F=yF;function Cc(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new bF;++t<n;)this.add(e[t])}Cc.prototype.add=Cc.prototype.push=xF;Cc.prototype.has=_F;var Ep=Cc;function wF(e,t,n,r){for(var a=e.length,i=n+(r?1:-1);r?i--:++i<a;)if(t(e[i],i,e))return i;return-1}var TF=wF;function CF(e){return e!==e}var kF=CF;function SF(e,t,n){for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}var OF=SF,EF=TF,$F=kF,MF=OF;function RF(e,t,n){return t===t?MF(e,t,n):EF(e,$F,n)}var AF=RF,jF=AF;function PF(e,t){var n=e==null?0:e.length;return!!n&&jF(e,t,0)>-1}var R2=PF;function DF(e,t,n){for(var r=-1,a=e==null?0:e.length;++r<a;)if(n(t,e[r]))return!0;return!1}var A2=DF;function IF(e,t){return e.has(t)}var $p=IF,NF=Ep,FF=R2,LF=A2,UF=Eu,WF=ns,BF=$p,zF=200;function HF(e,t,n,r){var a=-1,i=FF,o=!0,s=e.length,c=[],u=t.length;if(!s)return c;n&&(t=UF(t,WF(n))),r?(i=LF,o=!1):t.length>=zF&&(i=BF,o=!1,t=new NF(t));e:for(;++a<s;){var l=e[a],d=n==null?l:n(l);if(l=r||l!==0?l:0,o&&d===d){for(var f=u;f--;)if(t[f]===d)continue e;c.push(l)}else i(t,d,r)||c.push(l)}return c}var VF=HF,qF=VF,YF=ep,GF=Ix,ZF=YF(function(e,t){return GF(e)?qF(e,t):[]}),KF=ZF;const j2=Mt(KF);function ut(e){return function(){return e}}const z0=Math.abs,Ut=Math.atan2,zr=Math.cos,XF=Math.max,ad=Math.min,Wn=Math.sin,Ua=Math.sqrt,Wt=1e-12,Fo=Math.PI,kc=Fo/2,Fs=2*Fo;function JF(e){return e>1?0:e<-1?Fo:Math.acos(e)}function H0(e){return e>=1?kc:e<=-1?-kc:Math.asin(e)}const xf=Math.PI,_f=2*xf,Yr=1e-6,QF=_f-Yr;function P2(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function eL(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return P2;const n=10**t;return function(r){this._+=r[0];for(let a=1,i=r.length;a<i;++a)this._+=Math.round(arguments[a]*n)/n+r[a]}}class tL{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?P2:eL(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,a){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+a}`}bezierCurveTo(t,n,r,a,i,o){this._append`C${+t},${+n},${+r},${+a},${this._x1=+i},${this._y1=+o}`}arcTo(t,n,r,a,i){if(t=+t,n=+n,r=+r,a=+a,i=+i,i<0)throw new Error(`negative radius: ${i}`);let o=this._x1,s=this._y1,c=r-t,u=a-n,l=o-t,d=s-n,f=l*l+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(f>Yr)if(!(Math.abs(d*c-u*l)>Yr)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let h=r-o,g=a-s,v=c*c+u*u,m=h*h+g*g,_=Math.sqrt(v),w=Math.sqrt(f),b=i*Math.tan((xf-Math.acos((v+f-m)/(2*_*w)))/2),T=b/w,x=b/_;Math.abs(T-1)>Yr&&this._append`L${t+T*l},${n+T*d}`,this._append`A${i},${i},0,0,${+(d*h>l*g)},${this._x1=t+x*c},${this._y1=n+x*u}`}}arc(t,n,r,a,i,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(a),c=r*Math.sin(a),u=t+s,l=n+c,d=1^o,f=o?a-i:i-a;this._x1===null?this._append`M${u},${l}`:(Math.abs(this._x1-u)>Yr||Math.abs(this._y1-l)>Yr)&&this._append`L${u},${l}`,r&&(f<0&&(f=f%_f+_f),f>QF?this._append`A${r},${r},0,1,${d},${t-s},${n-c}A${r},${r},0,1,${d},${this._x1=u},${this._y1=l}`:f>Yr&&this._append`A${r},${r},0,${+(f>=xf)},${d},${this._x1=t+r*Math.cos(i)},${this._y1=n+r*Math.sin(i)}`)}rect(t,n,r,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+a}h${-r}Z`}toString(){return this._}}function D2(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new tL(t)}function nL(e){return e.innerRadius}function rL(e){return e.outerRadius}function aL(e){return e.startAngle}function iL(e){return e.endAngle}function oL(e){return e&&e.padAngle}function sL(e,t,n,r,a,i,o,s){var c=n-e,u=r-t,l=o-a,d=s-i,f=d*c-l*u;if(!(f*f<Wt))return f=(l*(t-i)-d*(e-a))/f,[e+f*c,t+f*u]}function Cs(e,t,n,r,a,i,o){var s=e-n,c=t-r,u=(o?i:-i)/Ua(s*s+c*c),l=u*c,d=-u*s,f=e+l,h=t+d,g=n+l,v=r+d,m=(f+g)/2,_=(h+v)/2,w=g-f,b=v-h,T=w*w+b*b,x=a-i,C=f*v-g*h,$=(b<0?-1:1)*Ua(XF(0,x*x*T-C*C)),A=(C*b-w*$)/T,D=(-C*w-b*$)/T,j=(C*b+w*$)/T,E=(-C*w+b*$)/T,F=A-m,M=D-_,R=j-m,I=E-_;return F*F+M*M>R*R+I*I&&(A=j,D=E),{cx:A,cy:D,x01:-l,y01:-d,x11:A*(a/x-1),y11:D*(a/x-1)}}function cL(){var e=nL,t=rL,n=ut(0),r=null,a=aL,i=iL,o=oL,s=null,c=D2(u);function u(){var l,d,f=+e.apply(this,arguments),h=+t.apply(this,arguments),g=a.apply(this,arguments)-kc,v=i.apply(this,arguments)-kc,m=z0(v-g),_=v>g;if(s||(s=l=c()),h<f&&(d=h,h=f,f=d),!(h>Wt))s.moveTo(0,0);else if(m>Fs-Wt)s.moveTo(h*zr(g),h*Wn(g)),s.arc(0,0,h,g,v,!_),f>Wt&&(s.moveTo(f*zr(v),f*Wn(v)),s.arc(0,0,f,v,g,_));else{var w=g,b=v,T=g,x=v,C=m,$=m,A=o.apply(this,arguments)/2,D=A>Wt&&(r?+r.apply(this,arguments):Ua(f*f+h*h)),j=ad(z0(h-f)/2,+n.apply(this,arguments)),E=j,F=j,M,R;if(D>Wt){var I=H0(D/f*Wn(A)),U=H0(D/h*Wn(A));(C-=I*2)>Wt?(I*=_?1:-1,T+=I,x-=I):(C=0,T=x=(g+v)/2),($-=U*2)>Wt?(U*=_?1:-1,w+=U,b-=U):($=0,w=b=(g+v)/2)}var N=h*zr(w),q=h*Wn(w),z=f*zr(x),P=f*Wn(x);if(j>Wt){var B=h*zr(b),Z=h*Wn(b),ne=f*zr(T),Y=f*Wn(T),Q;if(m<Fo)if(Q=sL(N,q,ne,Y,B,Z,z,P)){var G=N-Q[0],J=q-Q[1],re=B-Q[0],L=Z-Q[1],V=1/Wn(JF((G*re+J*L)/(Ua(G*G+J*J)*Ua(re*re+L*L)))/2),ae=Ua(Q[0]*Q[0]+Q[1]*Q[1]);E=ad(j,(f-ae)/(V-1)),F=ad(j,(h-ae)/(V+1))}else E=F=0}$>Wt?F>Wt?(M=Cs(ne,Y,N,q,h,F,_),R=Cs(B,Z,z,P,h,F,_),s.moveTo(M.cx+M.x01,M.cy+M.y01),F<j?s.arc(M.cx,M.cy,F,Ut(M.y01,M.x01),Ut(R.y01,R.x01),!_):(s.arc(M.cx,M.cy,F,Ut(M.y01,M.x01),Ut(M.y11,M.x11),!_),s.arc(0,0,h,Ut(M.cy+M.y11,M.cx+M.x11),Ut(R.cy+R.y11,R.cx+R.x11),!_),s.arc(R.cx,R.cy,F,Ut(R.y11,R.x11),Ut(R.y01,R.x01),!_))):(s.moveTo(N,q),s.arc(0,0,h,w,b,!_)):s.moveTo(N,q),!(f>Wt)||!(C>Wt)?s.lineTo(z,P):E>Wt?(M=Cs(z,P,B,Z,f,-E,_),R=Cs(N,q,ne,Y,f,-E,_),s.lineTo(M.cx+M.x01,M.cy+M.y01),E<j?s.arc(M.cx,M.cy,E,Ut(M.y01,M.x01),Ut(R.y01,R.x01),!_):(s.arc(M.cx,M.cy,E,Ut(M.y01,M.x01),Ut(M.y11,M.x11),!_),s.arc(0,0,f,Ut(M.cy+M.y11,M.cx+M.x11),Ut(R.cy+R.y11,R.cx+R.x11),_),s.arc(R.cx,R.cy,E,Ut(R.y11,R.x11),Ut(R.y01,R.x01),!_))):s.arc(0,0,f,x,T,_)}if(s.closePath(),l)return s=null,l+""||null}return u.centroid=function(){var l=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,d=(+a.apply(this,arguments)+ +i.apply(this,arguments))/2-Fo/2;return[zr(d)*l,Wn(d)*l]},u.innerRadius=function(l){return arguments.length?(e=typeof l=="function"?l:ut(+l),u):e},u.outerRadius=function(l){return arguments.length?(t=typeof l=="function"?l:ut(+l),u):t},u.cornerRadius=function(l){return arguments.length?(n=typeof l=="function"?l:ut(+l),u):n},u.padRadius=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:ut(+l),u):r},u.startAngle=function(l){return arguments.length?(a=typeof l=="function"?l:ut(+l),u):a},u.endAngle=function(l){return arguments.length?(i=typeof l=="function"?l:ut(+l),u):i},u.padAngle=function(l){return arguments.length?(o=typeof l=="function"?l:ut(+l),u):o},u.context=function(l){return arguments.length?(s=l??null,u):s},u}function Mp(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function I2(e){this._context=e}I2.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function N2(e){return new I2(e)}function uL(e){return e[0]}function lL(e){return e[1]}function dL(e,t){var n=ut(!0),r=null,a=N2,i=null,o=D2(s);e=typeof e=="function"?e:e===void 0?uL:ut(e),t=typeof t=="function"?t:t===void 0?lL:ut(t);function s(c){var u,l=(c=Mp(c)).length,d,f=!1,h;for(r==null&&(i=a(h=o())),u=0;u<=l;++u)!(u<l&&n(d=c[u],u,c))===f&&((f=!f)?i.lineStart():i.lineEnd()),f&&i.point(+e(d,u,c),+t(d,u,c));if(h)return i=null,h+""||null}return s.x=function(c){return arguments.length?(e=typeof c=="function"?c:ut(+c),s):e},s.y=function(c){return arguments.length?(t=typeof c=="function"?c:ut(+c),s):t},s.defined=function(c){return arguments.length?(n=typeof c=="function"?c:ut(!!c),s):n},s.curve=function(c){return arguments.length?(a=c,r!=null&&(i=a(r)),s):a},s.context=function(c){return arguments.length?(c==null?r=i=null:i=a(r=c),s):r},s}function fL(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function hL(e){return e}function pL(){var e=hL,t=fL,n=null,r=ut(0),a=ut(Fs),i=ut(0);function o(s){var c,u=(s=Mp(s)).length,l,d,f=0,h=new Array(u),g=new Array(u),v=+r.apply(this,arguments),m=Math.min(Fs,Math.max(-Fs,a.apply(this,arguments)-v)),_,w=Math.min(Math.abs(m)/u,i.apply(this,arguments)),b=w*(m<0?-1:1),T;for(c=0;c<u;++c)(T=g[h[c]=c]=+e(s[c],c,s))>0&&(f+=T);for(t!=null?h.sort(function(x,C){return t(g[x],g[C])}):n!=null&&h.sort(function(x,C){return n(s[x],s[C])}),c=0,d=f?(m-u*b)/f:0;c<u;++c,v=_)l=h[c],T=g[l],_=v+(T>0?T*d:0)+b,g[l]={data:s[l],index:c,value:T,startAngle:v,endAngle:_,padAngle:w};return g}return o.value=function(s){return arguments.length?(e=typeof s=="function"?s:ut(+s),o):e},o.sortValues=function(s){return arguments.length?(t=s,n=null,o):t},o.sort=function(s){return arguments.length?(n=s,t=null,o):n},o.startAngle=function(s){return arguments.length?(r=typeof s=="function"?s:ut(+s),o):r},o.endAngle=function(s){return arguments.length?(a=typeof s=="function"?s:ut(+s),o):a},o.padAngle=function(s){return arguments.length?(i=typeof s=="function"?s:ut(+s),o):i},o}function Fr(){}function Sc(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function ll(e){this._context=e}ll.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Sc(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Sc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function mL(e){return new ll(e)}function F2(e){this._context=e}F2.prototype={areaStart:Fr,areaEnd:Fr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Sc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function gL(e){return new F2(e)}function L2(e){this._context=e}L2.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Sc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function vL(e){return new L2(e)}function U2(e,t){this._basis=new ll(e),this._beta=t}U2.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],a=t[0],i=e[n]-r,o=t[n]-a,s=-1,c;++s<=n;)c=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+c*i),this._beta*t[s]+(1-this._beta)*(a+c*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const yL=function e(t){function n(r){return t===1?new ll(r):new U2(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function Oc(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function Rp(e,t){this._context=e,this._k=(1-t)/6}Rp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Oc(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Oc(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const bL=function e(t){function n(r){return new Rp(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Ap(e,t){this._context=e,this._k=(1-t)/6}Ap.prototype={areaStart:Fr,areaEnd:Fr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Oc(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const xL=function e(t){function n(r){return new Ap(r,t)}return n.tension=function(r){return e(+r)},n}(0);function jp(e,t){this._context=e,this._k=(1-t)/6}jp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Oc(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const _L=function e(t){function n(r){return new jp(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Pp(e,t,n){var r=e._x1,a=e._y1,i=e._x2,o=e._y2;if(e._l01_a>Wt){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,a=(a*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>Wt){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,l=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*u+e._x1*e._l23_2a-t*e._l12_2a)/l,o=(o*u+e._y1*e._l23_2a-n*e._l12_2a)/l}e._context.bezierCurveTo(r,a,i,o,e._x2,e._y2)}function W2(e,t){this._context=e,this._alpha=t}W2.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:Pp(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const wL=function e(t){function n(r){return t?new W2(r,t):new Rp(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function B2(e,t){this._context=e,this._alpha=t}B2.prototype={areaStart:Fr,areaEnd:Fr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Pp(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const TL=function e(t){function n(r){return t?new B2(r,t):new Ap(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function z2(e,t){this._context=e,this._alpha=t}z2.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Pp(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const CL=function e(t){function n(r){return t?new z2(r,t):new jp(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function H2(e){this._context=e}H2.prototype={areaStart:Fr,areaEnd:Fr,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function kL(e){return new H2(e)}function V0(e){return e<0?-1:1}function q0(e,t,n){var r=e._x1-e._x0,a=t-e._x1,i=(e._y1-e._y0)/(r||a<0&&-0),o=(n-e._y1)/(a||r<0&&-0),s=(i*a+o*r)/(r+a);return(V0(i)+V0(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(s))||0}function Y0(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function id(e,t,n){var r=e._x0,a=e._y0,i=e._x1,o=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,a+s*t,i-s,o-s*n,i,o)}function Ec(e){this._context=e}Ec.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:id(this,this._t0,Y0(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,id(this,Y0(this,n=q0(this,e,t)),n);break;default:id(this,this._t0,n=q0(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function V2(e){this._context=new q2(e)}(V2.prototype=Object.create(Ec.prototype)).point=function(e,t){Ec.prototype.point.call(this,t,e)};function q2(e){this._context=e}q2.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,a,i){this._context.bezierCurveTo(t,e,r,n,i,a)}};function SL(e){return new Ec(e)}function OL(e){return new V2(e)}function Y2(e){this._context=e}Y2.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=G0(e),a=G0(t),i=0,o=1;o<n;++i,++o)this._context.bezierCurveTo(r[0][i],a[0][i],r[1][i],a[1][i],e[o],t[o]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function G0(e){var t,n=e.length-1,r,a=new Array(n),i=new Array(n),o=new Array(n);for(a[0]=0,i[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)a[t]=1,i[t]=4,o[t]=4*e[t]+2*e[t+1];for(a[n-1]=2,i[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=a[t]/i[t-1],i[t]-=r,o[t]-=r*o[t-1];for(a[n-1]=o[n-1]/i[n-1],t=n-2;t>=0;--t)a[t]=(o[t]-a[t+1])/i[t];for(i[n-1]=(e[n]+a[n-1])/2,t=0;t<n-1;++t)i[t]=2*e[t+1]-a[t+1];return[a,i]}function EL(e){return new Y2(e)}function dl(e,t){this._context=e,this._t=t}dl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function $L(e){return new dl(e,.5)}function ML(e){return new dl(e,0)}function RL(e){return new dl(e,1)}function Z0(e,t){if((o=e.length)>1)for(var n=1,r,a,i=e[t[0]],o,s=i.length;n<o;++n)for(a=i,i=e[t[n]],r=0;r<s;++r)i[r][1]+=i[r][0]=isNaN(a[r][1])?a[r][0]:a[r][1]}function K0(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function AL(e,t){return e[t]}function jL(e){const t=[];return t.key=e,t}function PL(){var e=ut([]),t=K0,n=Z0,r=AL;function a(i){var o=Array.from(e.apply(this,arguments),jL),s,c=o.length,u=-1,l;for(const d of i)for(s=0,++u;s<c;++s)(o[s][u]=[0,+r(d,o[s].key,u,i)]).data=d;for(s=0,l=Mp(t(o));s<c;++s)o[l[s]].index=s;return n(o,l),o}return a.keys=function(i){return arguments.length?(e=typeof i=="function"?i:ut(Array.from(i)),a):e},a.value=function(i){return arguments.length?(r=typeof i=="function"?i:ut(+i),a):r},a.order=function(i){return arguments.length?(t=i==null?K0:typeof i=="function"?i:ut(Array.from(i)),a):t},a.offset=function(i){return arguments.length?(n=i??Z0,a):n},a}function DL(e,t){if((c=e.length)>0)for(var n,r=0,a,i,o,s,c,u=e[t[0]].length;r<u;++r)for(o=s=0,n=0;n<c;++n)(i=(a=e[t[n]][r])[1]-a[0])>0?(a[0]=o,a[1]=o+=i):i<0?(a[1]=s,a[0]=s+=i):(a[0]=0,a[1]=i)}var IL=as,NL=Yx,FL=wi;function LL(e,t,n){for(var r=-1,a=t.length,i={};++r<a;){var o=t[r],s=IL(e,o);n(s,o)&&NL(i,FL(o,e),s)}return i}var UL=LL;function WL(e,t){return e!=null&&t in Object(e)}var BL=WL,zL=wi,HL=wu,VL=cn,qL=ku,YL=Zh,GL=Ti;function ZL(e,t,n){t=zL(t,e);for(var r=-1,a=t.length,i=!1;++r<a;){var o=GL(t[r]);if(!(i=e!=null&&n(e,o)))break;e=e[o]}return i||++r!=a?i:(a=e==null?0:e.length,!!a&&YL(a)&&qL(o,a)&&(VL(e)||HL(e)))}var KL=ZL,XL=BL,JL=KL;function QL(e,t){return e!=null&&JL(e,t,XL)}var G2=QL,eU=UL,tU=G2;function nU(e,t){return eU(e,t,function(n,r){return tU(e,r)})}var rU=nU;function aU(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}var Dp=aU,X0=gi,iU=wu,oU=cn,J0=X0?X0.isConcatSpreadable:void 0;function sU(e){return oU(e)||iU(e)||!!(J0&&e&&e[J0])}var cU=sU,uU=Dp,lU=cU;function Z2(e,t,n,r,a){var i=-1,o=e.length;for(n||(n=lU),a||(a=[]);++i<o;){var s=e[i];t>0&&n(s)?t>1?Z2(s,t-1,n,r,a):uU(a,s):r||(a[a.length]=s)}return a}var K2=Z2,dU=K2;function fU(e){var t=e==null?0:e.length;return t?dU(e,1):[]}var hU=fU,pU=hU,mU=Wx,gU=Bx;function vU(e){return gU(mU(e,void 0,pU),e+"")}var X2=vU,yU=rU,bU=X2,xU=bU(function(e,t){return e==null?{}:yU(e,t)}),_U=xU;const wU=Mt(_U);function TU(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var CU=TU,kU=Ep,SU=CU,OU=$p,EU=1,$U=2;function MU(e,t,n,r,a,i){var o=n&EU,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var u=i.get(e),l=i.get(t);if(u&&l)return u==t&&l==e;var d=-1,f=!0,h=n&$U?new kU:void 0;for(i.set(e,t),i.set(t,e);++d<s;){var g=e[d],v=t[d];if(r)var m=o?r(v,g,d,t,e,i):r(g,v,d,e,t,i);if(m!==void 0){if(m)continue;f=!1;break}if(h){if(!SU(t,function(_,w){if(!OU(h,w)&&(g===_||a(g,_,n,r,i)))return h.push(w)})){f=!1;break}}else if(!(g===v||a(g,v,n,r,i))){f=!1;break}}return i.delete(e),i.delete(t),f}var J2=MU;function RU(e){var t=-1,n=Array(e.size);return e.forEach(function(r,a){n[++t]=[a,r]}),n}var AU=RU;function jU(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Ip=jU,Q0=gi,ev=Mx,PU=ts,DU=J2,IU=AU,NU=Ip,FU=1,LU=2,UU="[object Boolean]",WU="[object Date]",BU="[object Error]",zU="[object Map]",HU="[object Number]",VU="[object RegExp]",qU="[object Set]",YU="[object String]",GU="[object Symbol]",ZU="[object ArrayBuffer]",KU="[object DataView]",tv=Q0?Q0.prototype:void 0,od=tv?tv.valueOf:void 0;function XU(e,t,n,r,a,i,o){switch(n){case KU:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ZU:return!(e.byteLength!=t.byteLength||!i(new ev(e),new ev(t)));case UU:case WU:case HU:return PU(+e,+t);case BU:return e.name==t.name&&e.message==t.message;case VU:case YU:return e==t+"";case zU:var s=IU;case qU:var c=r&FU;if(s||(s=NU),e.size!=t.size&&!c)return!1;var u=o.get(e);if(u)return u==t;r|=LU,o.set(e,t);var l=DU(s(e),s(t),r,a,i,o);return o.delete(e),l;case GU:if(od)return od.call(e)==od.call(t)}return!1}var JU=XU,QU=Dp,eW=cn;function tW(e,t,n){var r=t(e);return eW(e)?r:QU(r,n(e))}var Q2=tW;function nW(e,t){for(var n=-1,r=e==null?0:e.length,a=0,i=[];++n<r;){var o=e[n];t(o,n,e)&&(i[a++]=o)}return i}var e_=nW;function rW(){return[]}var t_=rW,aW=e_,iW=t_,oW=Object.prototype,sW=oW.propertyIsEnumerable,nv=Object.getOwnPropertySymbols,cW=nv?function(e){return e==null?[]:(e=Object(e),aW(nv(e),function(t){return sW.call(e,t)}))}:iW,Np=cW,uW=jx,lW=uW(Object.keys,Object),dW=lW,fW=Gh,hW=dW,pW=Object.prototype,mW=pW.hasOwnProperty;function gW(e){if(!fW(e))return hW(e);var t=[];for(var n in Object(e))mW.call(e,n)&&n!="constructor"&&t.push(n);return t}var vW=gW,yW=Lx,bW=vW,xW=xi;function _W(e){return xW(e)?yW(e):bW(e)}var os=_W,wW=Q2,TW=Np,CW=os;function kW(e){return wW(e,CW,TW)}var n_=kW,rv=n_,SW=1,OW=Object.prototype,EW=OW.hasOwnProperty;function $W(e,t,n,r,a,i){var o=n&SW,s=rv(e),c=s.length,u=rv(t),l=u.length;if(c!=l&&!o)return!1;for(var d=c;d--;){var f=s[d];if(!(o?f in t:EW.call(t,f)))return!1}var h=i.get(e),g=i.get(t);if(h&&g)return h==t&&g==e;var v=!0;i.set(e,t),i.set(t,e);for(var m=o;++d<c;){f=s[d];var _=e[f],w=t[f];if(r)var b=o?r(w,_,f,t,e,i):r(_,w,f,e,t,i);if(!(b===void 0?_===w||a(_,w,n,r,i):b)){v=!1;break}m||(m=f=="constructor")}if(v&&!m){var T=e.constructor,x=t.constructor;T!=x&&"constructor"in e&&"constructor"in t&&!(typeof T=="function"&&T instanceof T&&typeof x=="function"&&x instanceof x)&&(v=!1)}return i.delete(e),i.delete(t),v}var MW=$W,RW=_a,AW=Qn,jW=RW(AW,"DataView"),PW=jW,DW=_a,IW=Qn,NW=DW(IW,"Promise"),FW=NW,LW=_a,UW=Qn,WW=LW(UW,"Set"),r_=WW,BW=_a,zW=Qn,HW=BW(zW,"WeakMap"),VW=HW,wf=PW,Tf=zh,Cf=FW,kf=r_,Sf=VW,a_=Br,ki=kx,av="[object Map]",qW="[object Object]",iv="[object Promise]",ov="[object Set]",sv="[object WeakMap]",cv="[object DataView]",YW=ki(wf),GW=ki(Tf),ZW=ki(Cf),KW=ki(kf),XW=ki(Sf),Gr=a_;(wf&&Gr(new wf(new ArrayBuffer(1)))!=cv||Tf&&Gr(new Tf)!=av||Cf&&Gr(Cf.resolve())!=iv||kf&&Gr(new kf)!=ov||Sf&&Gr(new Sf)!=sv)&&(Gr=function(e){var t=a_(e),n=t==qW?e.constructor:void 0,r=n?ki(n):"";if(r)switch(r){case YW:return cv;case GW:return av;case ZW:return iv;case KW:return ov;case XW:return sv}return t});var fl=Gr,sd=_u,JW=J2,QW=JU,eB=MW,uv=fl,lv=cn,dv=Tu,tB=Jh,nB=1,fv="[object Arguments]",hv="[object Array]",ks="[object Object]",rB=Object.prototype,pv=rB.hasOwnProperty;function aB(e,t,n,r,a,i){var o=lv(e),s=lv(t),c=o?hv:uv(e),u=s?hv:uv(t);c=c==fv?ks:c,u=u==fv?ks:u;var l=c==ks,d=u==ks,f=c==u;if(f&&dv(e)){if(!dv(t))return!1;o=!0,l=!1}if(f&&!l)return i||(i=new sd),o||tB(e)?JW(e,t,n,r,a,i):QW(e,t,c,n,r,a,i);if(!(n&nB)){var h=l&&pv.call(e,"__wrapped__"),g=d&&pv.call(t,"__wrapped__");if(h||g){var v=h?e.value():e,m=g?t.value():t;return i||(i=new sd),a(v,m,n,r,i)}}return f?(i||(i=new sd),eB(e,t,n,r,a,i)):!1}var iB=aB,oB=iB,mv=Un;function i_(e,t,n,r,a){return e===t?!0:e==null||t==null||!mv(e)&&!mv(t)?e!==e&&t!==t:oB(e,t,n,r,i_,a)}var Fp=i_,sB=Fp;function cB(e,t){return sB(e,t)}var uB=cB;const lB=Mt(uB);var dB={background:"transparent",text:{fontFamily:"sans-serif",fontSize:11,fill:"#333333",outlineWidth:0,outlineColor:"transparent",outlineOpacity:1},axis:{domain:{line:{stroke:"transparent",strokeWidth:1}},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{}},legend:{text:{fontSize:12}}},grid:{line:{stroke:"#dddddd",strokeWidth:1}},legends:{hidden:{symbol:{fill:"#333333",opacity:.6},text:{fill:"#333333",opacity:.6}},text:{},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{fontSize:10}},title:{text:{}}},labels:{text:{}},markers:{lineColor:"#000000",lineStrokeWidth:1,text:{}},dots:{text:{}},tooltip:{container:{background:"white",color:"inherit",fontSize:"inherit",borderRadius:"2px",boxShadow:"0 1px 2px rgba(0, 0, 0, 0.25)",padding:"5px 9px"},basic:{whiteSpace:"pre",display:"flex",alignItems:"center"},chip:{marginRight:7},table:{},tableCell:{padding:"3px 5px"},tableCellValue:{fontWeight:"bold"}},crosshair:{line:{stroke:"#000000",strokeWidth:1,strokeOpacity:.75,strokeDasharray:"6 6"}},annotations:{text:{fontSize:13,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},link:{stroke:"#000000",strokeWidth:1,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},outline:{fill:"none",stroke:"#000000",strokeWidth:2,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},symbol:{fill:"#000000",outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1}}};function In(){return In=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},In.apply(this,arguments)}function Lp(e,t){if(e==null)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}var fB=["axis.ticks.text","axis.legend.text","legends.title.text","legends.text","legends.ticks.text","legends.title.text","labels.text","dots.text","markers.text","annotations.text"],hB=function(e,t){return In({},t,e)},pB=function(e,t){var n=jj({},e,t);return fB.forEach(function(r){Ki(n,r,hB(pr(n,r),n.text))}),n},o_=p.createContext(),s_=function(e){var t=e.children,n=e.animate,r=n===void 0||n,a=e.config,i=a===void 0?"default":a,o=p.useMemo(function(){var s=dD(i)?Lh[i]:i;return{animate:r,config:s}},[r,i]);return y.jsx(o_.Provider,{value:o,children:t})},gv={animate:O.bool,motionConfig:O.oneOfType([O.oneOf(Object.keys(Lh)),O.shape({mass:O.number,tension:O.number,friction:O.number,clamp:O.bool,precision:O.number,velocity:O.number,duration:O.number,easing:O.func})])};s_.propTypes={children:O.node.isRequired,animate:gv.animate,config:gv.motionConfig};var un=function(){return p.useContext(o_)},mB=function(e){var t=un(),n=t.animate,r=t.config,a=function(s){var c=p.useRef();return p.useEffect(function(){c.current=s},[s]),c.current}(e),i=p.useMemo(function(){return Jx(a,e)},[a,e]),o=vr({from:{value:0},to:{value:1},reset:!0,config:r,immediate:!n}).value;return Nr(o,i)},gB={nivo:["#d76445","#f47560","#e8c1a0","#97e3d5","#61cdbb","#00b0a7"],BrBG:ye(Iu),PRGn:ye(Nu),PiYG:ye(Fu),PuOr:ye(Lu),RdBu:ye(Uu),RdGy:ye(Wu),RdYlBu:ye(Bu),RdYlGn:ye(zu),spectral:ye(Hu),blues:ye(rl),greens:ye(al),greys:ye(il),oranges:ye(cl),purples:ye(ol),reds:ye(sl),BuGn:ye(Vu),BuPu:ye(qu),GnBu:ye(Yu),OrRd:ye(Gu),PuBuGn:ye(Zu),PuBu:ye(Ku),PuRd:ye(Xu),RdPu:ye(Ju),YlGnBu:ye(Qu),YlGn:ye(el),YlOrBr:ye(tl),YlOrRd:ye(nl)},vB=Object.keys(gB);ye(Iu),ye(Nu),ye(Fu),ye(Lu),ye(Uu),ye(Wu),ye(Bu),ye(zu),ye(Hu),ye(rl),ye(al),ye(il),ye(cl),ye(ol),ye(sl),ye(Vu),ye(qu),ye(Yu),ye(Gu),ye(Zu),ye(Ku),ye(Xu),ye(Ju),ye(Qu),ye(el),ye(tl),ye(nl);O.oneOfType([O.oneOf(vB),O.func,O.arrayOf(O.string)]);var yB={basis:mL,basisClosed:gL,basisOpen:vL,bundle:yL,cardinal:bL,cardinalClosed:xL,cardinalOpen:_L,catmullRom:wL,catmullRomClosed:TL,catmullRomOpen:CL,linear:N2,linearClosed:kL,monotoneX:SL,monotoneY:OL,natural:EL,step:$L,stepAfter:RL,stepBefore:ML},Up=Object.keys(yB);Up.filter(function(e){return e.endsWith("Closed")});j2(Up,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");j2(Up,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");O.shape({top:O.number,right:O.number,bottom:O.number,left:O.number}).isRequired;var bB=["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"];O.oneOf(bB);Jr(Op);var xB={top:0,right:0,bottom:0,left:0},Wp=function(e,t,n){return n===void 0&&(n={}),p.useMemo(function(){var r=In({},xB,n);return{margin:r,innerWidth:e-r.left-r.right,innerHeight:t-r.top-r.bottom,outerWidth:e,outerHeight:t}},[e,t,n.top,n.right,n.bottom,n.left])},c_=function(){var e=p.useRef(null),t=p.useState({left:0,top:0,width:0,height:0}),n=t[0],r=t[1],a=p.useState(function(){return typeof ResizeObserver>"u"?null:new ResizeObserver(function(i){var o=i[0];return r(o.contentRect)})})[0];return p.useEffect(function(){return e.current&&a!==null&&a.observe(e.current),function(){a!==null&&a.disconnect()}},[]),[e,n]},_B=function(e){return p.useMemo(function(){return pB(dB,e)},[e])},wB=function(e){return typeof e=="function"?e:typeof e=="string"?e.indexOf("time:")===0?Du(e.slice("5")):is(e):function(t){return""+t}},hl=function(e){return p.useMemo(function(){return wB(e)},[e])},u_=p.createContext(),TB={},l_=function(e){var t=e.theme,n=t===void 0?TB:t,r=e.children,a=_B(n);return y.jsx(u_.Provider,{value:a,children:r})};l_.propTypes={children:O.node.isRequired,theme:O.object};var lt=function(){return p.useContext(u_)},CB=["outlineWidth","outlineColor","outlineOpacity"],Bp=function(e){return e.outlineWidth,e.outlineColor,e.outlineOpacity,Lp(e,CB)},d_=function(e){var t=e.children,n=e.condition,r=e.wrapper;return n?p.cloneElement(r,{},t):t};d_.propTypes={children:O.node.isRequired,condition:O.bool.isRequired,wrapper:O.element.isRequired};var kB={position:"relative"},pl=function(e){var t=e.children,n=e.theme,r=e.renderWrapper,a=r===void 0||r,i=e.isInteractive,o=i===void 0||i,s=e.animate,c=e.motionConfig,u=p.useRef(null);return y.jsx(l_,{theme:n,children:y.jsx(s_,{animate:s,config:c,children:y.jsx(m8,{container:u,children:y.jsxs(d_,{condition:a,wrapper:y.jsx("div",{style:kB,ref:u}),children:[t,o&&y.jsx(p8,{})]})})})})};pl.propTypes={children:O.element.isRequired,isInteractive:O.bool,renderWrapper:O.bool,theme:O.object,animate:O.bool,motionConfig:O.string};O.func.isRequired,O.bool,O.bool,O.object.isRequired,O.bool.isRequired,O.string;var ml=function(e){var t=e.children,n=c_(),r=n[0],a=n[1],i=a.width>0&&a.height>0;return y.jsx("div",{ref:r,style:{width:"100%",height:"100%"},children:i&&t({width:a.width,height:a.height})})};ml.propTypes={children:O.func.isRequired};var SB=["id","colors"],f_=function(e){var t=e.id,n=e.colors,r=Lp(e,SB);return y.jsx("linearGradient",In({id:t,x1:0,x2:0,y1:0,y2:1},r,{children:n.map(function(a){var i=a.offset,o=a.color,s=a.opacity;return y.jsx("stop",{offset:i+"%",stopColor:o,stopOpacity:s!==void 0?s:1},i)})}))};f_.propTypes={id:O.string.isRequired,colors:O.arrayOf(O.shape({offset:O.number.isRequired,color:O.string.isRequired,opacity:O.number})).isRequired,gradientTransform:O.string};var h_={linearGradient:f_},zi={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1},Of=p.memo(function(e){var t=e.id,n=e.background,r=n===void 0?zi.background:n,a=e.color,i=a===void 0?zi.color:a,o=e.size,s=o===void 0?zi.size:o,c=e.padding,u=c===void 0?zi.padding:c,l=e.stagger,d=l===void 0?zi.stagger:l,f=s+u,h=s/2,g=u/2;return d===!0&&(f=2*s+2*u),y.jsxs("pattern",{id:t,width:f,height:f,patternUnits:"userSpaceOnUse",children:[y.jsx("rect",{width:f,height:f,fill:r}),y.jsx("circle",{cx:g+h,cy:g+h,r:h,fill:i}),d&&y.jsx("circle",{cx:1.5*u+s+h,cy:1.5*u+s+h,r:h,fill:i})]})});Of.displayName="PatternDots",Of.propTypes={id:O.string.isRequired,color:O.string.isRequired,background:O.string.isRequired,size:O.number.isRequired,padding:O.number.isRequired,stagger:O.bool.isRequired};var kn=function(e){return e*Math.PI/180},gl=function(e){return 180*e/Math.PI},OB=function(e){return e.startAngle+(e.endAngle-e.startAngle)/2},oa=function(e,t){return{x:Math.cos(e)*t,y:Math.sin(e)*t}},EB=function(e){var t=e%360;return t<0&&(t+=360),t},$B={svg:{align:{left:"start",center:"middle",right:"end",start:"start",middle:"middle",end:"end"},baseline:{top:"text-before-edge",center:"central",bottom:"alphabetic"}},canvas:{align:{left:"left",center:"center",right:"right",start:"left",middle:"center",end:"right"},baseline:{top:"top",center:"middle",bottom:"bottom"}}},Hi={spacing:5,rotation:0,background:"#000000",color:"#ffffff",lineWidth:2},Ef=p.memo(function(e){var t=e.id,n=e.spacing,r=n===void 0?Hi.spacing:n,a=e.rotation,i=a===void 0?Hi.rotation:a,o=e.background,s=o===void 0?Hi.background:o,c=e.color,u=c===void 0?Hi.color:c,l=e.lineWidth,d=l===void 0?Hi.lineWidth:l,f=Math.round(i)%360,h=Math.abs(r);f>180?f-=360:f>90?f-=180:f<-180?f+=360:f<-90&&(f+=180);var g,v=h,m=h;return f===0?g=`
|
|
253
|
+
*/var dg;function WS(){return dg||(dg=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,_=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function b(k){return typeof k=="string"||typeof k=="function"||k===r||k===u||k===i||k===a||k===d||k===f||typeof k=="object"&&k!==null&&(k.$$typeof===g||k.$$typeof===h||k.$$typeof===o||k.$$typeof===s||k.$$typeof===l||k.$$typeof===m||k.$$typeof===_||k.$$typeof===w||k.$$typeof===v)}function T(k){if(typeof k=="object"&&k!==null){var ge=k.$$typeof;switch(ge){case t:var pe=k.type;switch(pe){case c:case u:case r:case i:case a:case d:return pe;default:var de=pe&&pe.$$typeof;switch(de){case s:case l:case g:case h:case o:return de;default:return ge}}case n:return ge}}}var x=c,C=u,$=s,A=o,D=t,j=l,E=r,F=g,M=h,R=n,I=i,U=a,N=d,q=!1;function z(k){return q||(q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),P(k)||T(k)===c}function P(k){return T(k)===u}function B(k){return T(k)===s}function Z(k){return T(k)===o}function ne(k){return typeof k=="object"&&k!==null&&k.$$typeof===t}function Y(k){return T(k)===l}function Q(k){return T(k)===r}function G(k){return T(k)===g}function J(k){return T(k)===h}function re(k){return T(k)===n}function L(k){return T(k)===i}function V(k){return T(k)===a}function ae(k){return T(k)===d}Ye.AsyncMode=x,Ye.ConcurrentMode=C,Ye.ContextConsumer=$,Ye.ContextProvider=A,Ye.Element=D,Ye.ForwardRef=j,Ye.Fragment=E,Ye.Lazy=F,Ye.Memo=M,Ye.Portal=R,Ye.Profiler=I,Ye.StrictMode=U,Ye.Suspense=N,Ye.isAsyncMode=z,Ye.isConcurrentMode=P,Ye.isContextConsumer=B,Ye.isContextProvider=Z,Ye.isElement=ne,Ye.isForwardRef=Y,Ye.isFragment=Q,Ye.isLazy=G,Ye.isMemo=J,Ye.isPortal=re,Ye.isProfiler=L,Ye.isStrictMode=V,Ye.isSuspense=ae,Ye.isValidElementType=b,Ye.typeOf=T}()),Ye}process.env.NODE_ENV==="production"?qd.exports=US():qd.exports=WS();var BS=qd.exports,p1=BS,zS={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},HS={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},m1={};m1[p1.ForwardRef]=zS;m1[p1.Memo]=HS;function VS(){return typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"}function wh(e,t){const n=p.useContext(LS);if(!n)throw new Error("Missing <CookiesProvider>");const a=Object.assign(Object.assign({},{doNotUpdate:!0}),t),[i,o]=p.useState(()=>n.getAll(a));VS()&&p.useLayoutEffect(()=>{function l(){const d=n.getAll(a);qS(e||null,d,i)&&o(d)}return n.addChangeListener(l),()=>{n.removeChangeListener(l)}},[n,i]);const s=p.useMemo(()=>n.set.bind(n),[n]),c=p.useMemo(()=>n.remove.bind(n),[n]),u=p.useMemo(()=>n.update.bind(n),[n]);return[i,s,c,u]}function qS(e,t,n){if(!e)return!0;for(let r of e)if(t[r]!==n[r])return!0;return!1}const YS=()=>{const{axiosOptions:e,cookieDomain:t}=p.useContext(bn),[,n,r]=wh(["Authorization"]),a=dt.create(e),i=p.useCallback(()=>localStorage.getItem("token")??null,[]),o=p.useCallback(()=>{const u=i();return u!==null&&u.length>0},[i]),s=p.useCallback(async(u,l)=>a.post("/user/login",{kid:u,password:l}).then(d=>(localStorage.setItem("token",d.data),n("Authorization",d.data,{path:"/",secure:!0,sameSite:"none",domain:t,expires:Vw(new Date(Date.now()),24)}),d.data)).catch(d=>(console.log(d),null)),[a,n,t]),c=p.useCallback(()=>{localStorage.removeItem("token"),localStorage.removeItem("user"),r("Authorization")},[r]);return{isAuthenticated:o,login:s,logout:c,getToken:i}},GS=()=>{const[,,e]=wh(["Authorization"]),{msalScopes:t}=p.useContext(kh),{instance:n,inProgress:r}=im.useMsal(),a=im.useIsAuthenticated(),i=p.useCallback(async()=>{var f;const l=n.getActiveAccount(),d=l??((f=n.getAllAccounts())==null?void 0:f.at(0))??void 0;return d?(l||n.setActiveAccount(d),n.acquireTokenSilent({scopes:t,account:d}).then(h=>h.accessToken).catch(h=>{if(console.error("Error acquiring token",h),h instanceof am.InteractionRequiredAuthError)return console.log("Silent token acquisition failed. Acquiring token using redirect"),n.acquireTokenRedirect({scopes:t}),null;throw h})):null},[n,t]),o=p.useCallback(()=>a,[a]),s=p.useCallback(()=>!o()&&r!==am.InteractionStatus.None,[o,r]),c=p.useCallback(async()=>n.loginRedirect({scopes:t}).then(()=>"").catch(()=>null),[n,t]),u=p.useCallback(()=>{n.logout(),localStorage.removeItem("user"),e("Authorization")},[e,n]);return{isAuthenticated:o,isAuthenticating:s,login:c,logout:u,getToken:i}},g1=()=>{const{useMsal:e}=p.useContext(kh),t=YS(),n=GS();return{isAuthenticated:e?n.isAuthenticated:t.isAuthenticated,isAuthenticating:e?n.isAuthenticating:()=>!1,getToken:e?n.getToken:t.getToken,login:e?n.login:t.login,logout:e?n.logout:t.logout}},ZS="_toast_1s57i_1",Pi={toast:ZS},KS=e=>{switch(e){case"success":return 5e3;case"info":return 5e3;case"danger":return 1e4;case"warning":return 1e4;case"prompt":return 1e4;default:return 5e3}},Th=()=>({addNotification:p.useCallback((t,n)=>{const r=s1(t),a=KS(n),i=y.jsxs(y.Fragment,{children:[r,y.jsx(Sb,{onClick:()=>Aa.dismiss(r),type:"button",style:{position:"absolute",fontSize:"12px",top:"calc(50% - 6px)",right:"8px"}})]});switch(n){case"success":{Aa(i,{id:r,duration:a,position:"top-center",icon:y.jsx(Uk,{size:12}),className:oe("luminus-toast-success rounded shadow bg-success",Pi.toast)});break}case"danger":{Aa(i,{id:r,duration:a,position:"top-center",icon:y.jsx(Ak,{size:12}),className:oe("luminus-toast-danger rounded shadow bg-danger",Pi.toast)});break}case"warning":{Aa(i,{id:r,duration:a,position:"top-center",icon:y.jsx(Ok,{size:12}),className:oe("luminus-toast-warning rounded shadow bg-warning",Pi.toast)});break}case"info":{Aa(i,{id:r,duration:a,position:"top-center",icon:y.jsx(Mk,{size:12}),className:oe("luminus-toast-info rounded shadow bg-info",Pi.toast)});break}case"prompt":{Aa(i,{id:r,duration:a,position:"top-center",icon:y.jsx(Rk,{size:12}),className:oe("luminus-toast-prompt rounded shadow bg-light",Pi.toast)});break}}},[])}),XS=dt.CancelToken,nu=e=>{const{authenticated:t=!0,differentBaseUrl:n,silent:r=!1,customToken:a,ignoreDelegation:i}={...e},{language:o,axiosOptions:s,texts:{axios:c}}=p.useContext(bn),{delegation:u}=p.useContext($1),l=p.useMemo(()=>(u==null?void 0:u.id)??null,[u==null?void 0:u.id]),{addNotification:d}=Th(),{getToken:f}=g1(),h=p.useMemo(()=>dt.create(s),[s]),g=p.useCallback(async m=>{var _,w,b;if(t&&!m.headers.Authorization){const T=a??await f();if(!T)return Promise.reject(new Error("No bearer token"));m.headers.Authorization=`Bearer ${T}`}return l!==null&&!i&&(m.headers.DelegationId=l.toString()),(_=m.url)!=null&&_.includes("culture=")?m.url=(w=m.url)==null?void 0:w.replace(/culture=[a-z]{2}/,`culture=${o}`):m.url=`${m.url}${(b=m.url)!=null&&b.includes("?")?"&":"?"}culture=${o}`,m},[t,f,o,a,l,i]),v=p.useCallback(m=>{var b;if(console.log(m),dt.isCancel(m))return Promise.reject(m);const _=bh(m);if(_.length>0){const T=_.find(x=>x.name.toLowerCase()==="others");return T?(!r&&d(T.errors,"danger"),Promise.reject(m)):(!r&&d(c.validationError,"warning"),Promise.reject(m))}const w=o1(m);return w!==null?(!r&&d(`${c.permissionError}: ${xh(", ",...w)}`,"danger"),Promise.reject(m)):((b=m.response)==null?void 0:b.status)===403?(!r&&d(c.forbiddenError,"danger"),Promise.reject(m)):m.message&&m.message==="Network Error"?(!r&&d(c.networkError,"danger"),Promise.reject(m)):(dt.isCancel(m)||!r&&d(c.unexpectedError,"danger"),Promise.reject(m))},[d,c.forbiddenError,c.networkError,c.permissionError,c.unexpectedError,c.validationError,r]);return p.useEffect(()=>{n&&(h.defaults.baseURL=n),h.interceptors.request.clear(),h.interceptors.response.clear();const m=h.interceptors.request.use(g,w=>Promise.reject(w)),_=h.interceptors.response.use(w=>w,v);return()=>{h.interceptors.request.eject(m),h.interceptors.response.eject(_)}},[h.defaults,h.interceptors.request,h.interceptors.response,n,g,v]),h};let Ll;const v1=()=>{const{show:e,text:t,showConfirm:n,hideConfirm:r}=p.useContext(Ob),a=()=>{r()};return{confirm:async c=>(n(c),new Promise(u=>{Ll=u})),onConfirm:()=>{a(),Ll(!0)},onCancel:()=>{a(),Ll(!1)},show:e,text:t}};var Ne;(function(e){e.assertEqual=a=>a;function t(a){}e.assertIs=t;function n(a){throw new Error}e.assertNever=n,e.arrayToEnum=a=>{const i={};for(const o of a)i[o]=o;return i},e.getValidEnumValues=a=>{const i=e.objectKeys(a).filter(s=>typeof a[a[s]]!="number"),o={};for(const s of i)o[s]=a[s];return e.objectValues(o)},e.objectValues=a=>e.objectKeys(a).map(function(i){return a[i]}),e.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const i=[];for(const o in a)Object.prototype.hasOwnProperty.call(a,o)&&i.push(o);return i},e.find=(a,i)=>{for(const o of a)if(i(o))return o},e.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&isFinite(a)&&Math.floor(a)===a;function r(a,i=" | "){return a.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}e.joinValues=r,e.jsonStringifyReplacer=(a,i)=>typeof i=="bigint"?i.toString():i})(Ne||(Ne={}));var Yd;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Yd||(Yd={}));const ue=Ne.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Sr=e=>{switch(typeof e){case"undefined":return ue.undefined;case"string":return ue.string;case"number":return isNaN(e)?ue.nan:ue.number;case"boolean":return ue.boolean;case"function":return ue.function;case"bigint":return ue.bigint;case"symbol":return ue.symbol;case"object":return Array.isArray(e)?ue.array:e===null?ue.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?ue.promise:typeof Map<"u"&&e instanceof Map?ue.map:typeof Set<"u"&&e instanceof Set?ue.set:typeof Date<"u"&&e instanceof Date?ue.date:ue.object;default:return ue.unknown}},te=Ne.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),JS=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class gn extends Error{constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const n=t||function(i){return i.message},r={_errors:[]},a=i=>{for(const o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(a);else if(o.code==="invalid_return_type")a(o.returnTypeError);else if(o.code==="invalid_arguments")a(o.argumentsError);else if(o.path.length===0)r._errors.push(n(o));else{let s=r,c=0;for(;c<o.path.length;){const u=o.path[c];c===o.path.length-1?(s[u]=s[u]||{_errors:[]},s[u]._errors.push(n(o))):s[u]=s[u]||{_errors:[]},s=s[u],c++}}};return a(this),r}static assert(t){if(!(t instanceof gn))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Ne.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const a of this.issues)a.path.length>0?(n[a.path[0]]=n[a.path[0]]||[],n[a.path[0]].push(t(a))):r.push(t(a));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}gn.create=e=>new gn(e);const Ja=(e,t)=>{let n;switch(e.code){case te.invalid_type:e.received===ue.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case te.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,Ne.jsonStringifyReplacer)}`;break;case te.unrecognized_keys:n=`Unrecognized key(s) in object: ${Ne.joinValues(e.keys,", ")}`;break;case te.invalid_union:n="Invalid input";break;case te.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Ne.joinValues(e.options)}`;break;case te.invalid_enum_value:n=`Invalid enum value. Expected ${Ne.joinValues(e.options)}, received '${e.received}'`;break;case te.invalid_arguments:n="Invalid function arguments";break;case te.invalid_return_type:n="Invalid function return type";break;case te.invalid_date:n="Invalid date";break;case te.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:Ne.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case te.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case te.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case te.custom:n="Invalid input";break;case te.invalid_intersection_types:n="Intersection results could not be merged";break;case te.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case te.not_finite:n="Number must be finite";break;default:n=t.defaultError,Ne.assertNever(e)}return{message:n}};let y1=Ja;function QS(e){y1=e}function nc(){return y1}const rc=e=>{const{data:t,path:n,errorMaps:r,issueData:a}=e,i=[...n,...a.path||[]],o={...a,path:i};if(a.message!==void 0)return{...a,path:i,message:a.message};let s="";const c=r.filter(u=>!!u).slice().reverse();for(const u of c)s=u(o,{data:t,defaultError:s}).message;return{...a,path:i,message:s}},eO=[];function ce(e,t){const n=nc(),r=rc({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Ja?void 0:Ja].filter(a=>!!a)});e.common.issues.push(r)}class Ht{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const a of n){if(a.status==="aborted")return we;a.status==="dirty"&&t.dirty(),r.push(a.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const a of n){const i=await a.key,o=await a.value;r.push({key:i,value:o})}return Ht.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const a of n){const{key:i,value:o}=a;if(i.status==="aborted"||o.status==="aborted")return we;i.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof o.value<"u"||a.alwaysSet)&&(r[i.value]=o.value)}return{status:t.value,value:r}}}const we=Object.freeze({status:"aborted"}),Fa=e=>({status:"dirty",value:e}),Kt=e=>({status:"valid",value:e}),Gd=e=>e.status==="aborted",Zd=e=>e.status==="dirty",lo=e=>e.status==="valid",fo=e=>typeof Promise<"u"&&e instanceof Promise;function ac(e,t,n,r){if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function b1(e,t,n,r,a){if(typeof t=="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}var me;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(me||(me={}));var Yi,Gi;class Gn{constructor(t,n,r,a){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=a}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const fg=(e,t)=>{if(lo(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new gn(e.common.issues);return this._error=n,this._error}}};function Ee(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:a}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:a}:{errorMap:(o,s)=>{var c,u;const{message:l}=e;return o.code==="invalid_enum_value"?{message:l??s.defaultError}:typeof s.data>"u"?{message:(c=l??r)!==null&&c!==void 0?c:s.defaultError}:o.code!=="invalid_type"?{message:s.defaultError}:{message:(u=l??n)!==null&&u!==void 0?u:s.defaultError}},description:a}}class Re{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return Sr(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Sr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Ht,ctx:{common:t.parent.common,data:t.data,parsedType:Sr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(fo(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;const a={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Sr(t)},i=this._parseSync({data:t,path:a.path,parent:a});return fg(a,i)}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Sr(t)},a=this._parse({data:t,path:r.path,parent:r}),i=await(fo(a)?a:Promise.resolve(a));return fg(r,i)}refine(t,n){const r=a=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(a):n;return this._refinement((a,i)=>{const o=t(a),s=()=>i.addIssue({code:te.custom,...r(a)});return typeof Promise<"u"&&o instanceof Promise?o.then(c=>c?!0:(s(),!1)):o?!0:(s(),!1)})}refinement(t,n){return this._refinement((r,a)=>t(r)?!0:(a.addIssue(typeof n=="function"?n(r,a):n),!1))}_refinement(t){return new Nn({schema:this,typeName:_e.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return qn.create(this,this._def)}nullable(){return Ir.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Dn.create(this,this._def)}promise(){return ei.create(this,this._def)}or(t){return go.create([this,t],this._def)}and(t){return vo.create(this,t,this._def)}transform(t){return new Nn({...Ee(this._def),schema:this,typeName:_e.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new wo({...Ee(this._def),innerType:this,defaultValue:n,typeName:_e.ZodDefault})}brand(){return new Ch({typeName:_e.ZodBranded,type:this,...Ee(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new To({...Ee(this._def),innerType:this,catchValue:n,typeName:_e.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Zo.create(this,t)}readonly(){return Co.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const tO=/^c[^\s-]{8,}$/i,nO=/^[0-9a-z]+$/,rO=/^[0-9A-HJKMNP-TV-Z]{26}$/,aO=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,iO=/^[a-z0-9_-]{21}$/i,oO=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,sO=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,cO="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Ul;const uO=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,lO=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,dO=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,x1="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",fO=new RegExp(`^${x1}$`);function _1(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function hO(e){return new RegExp(`^${_1(e)}$`)}function w1(e){let t=`${x1}T${_1(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function pO(e,t){return!!((t==="v4"||!t)&&uO.test(e)||(t==="v6"||!t)&&lO.test(e))}class An extends Re{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==ue.string){const i=this._getOrReturnCtx(t);return ce(i,{code:te.invalid_type,expected:ue.string,received:i.parsedType}),we}const r=new Ht;let a;for(const i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(a=this._getOrReturnCtx(t,a),ce(a,{code:te.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="max")t.data.length>i.value&&(a=this._getOrReturnCtx(t,a),ce(a,{code:te.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="length"){const o=t.data.length>i.value,s=t.data.length<i.value;(o||s)&&(a=this._getOrReturnCtx(t,a),o?ce(a,{code:te.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):s&&ce(a,{code:te.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),r.dirty())}else if(i.kind==="email")sO.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"email",code:te.invalid_string,message:i.message}),r.dirty());else if(i.kind==="emoji")Ul||(Ul=new RegExp(cO,"u")),Ul.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"emoji",code:te.invalid_string,message:i.message}),r.dirty());else if(i.kind==="uuid")aO.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"uuid",code:te.invalid_string,message:i.message}),r.dirty());else if(i.kind==="nanoid")iO.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"nanoid",code:te.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid")tO.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"cuid",code:te.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid2")nO.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"cuid2",code:te.invalid_string,message:i.message}),r.dirty());else if(i.kind==="ulid")rO.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"ulid",code:te.invalid_string,message:i.message}),r.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{a=this._getOrReturnCtx(t,a),ce(a,{validation:"url",code:te.invalid_string,message:i.message}),r.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"regex",code:te.invalid_string,message:i.message}),r.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(a=this._getOrReturnCtx(t,a),ce(a,{code:te.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),r.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(a=this._getOrReturnCtx(t,a),ce(a,{code:te.invalid_string,validation:{startsWith:i.value},message:i.message}),r.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(a=this._getOrReturnCtx(t,a),ce(a,{code:te.invalid_string,validation:{endsWith:i.value},message:i.message}),r.dirty()):i.kind==="datetime"?w1(i).test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{code:te.invalid_string,validation:"datetime",message:i.message}),r.dirty()):i.kind==="date"?fO.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{code:te.invalid_string,validation:"date",message:i.message}),r.dirty()):i.kind==="time"?hO(i).test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{code:te.invalid_string,validation:"time",message:i.message}),r.dirty()):i.kind==="duration"?oO.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"duration",code:te.invalid_string,message:i.message}),r.dirty()):i.kind==="ip"?pO(t.data,i.version)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"ip",code:te.invalid_string,message:i.message}),r.dirty()):i.kind==="base64"?dO.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"base64",code:te.invalid_string,message:i.message}),r.dirty()):Ne.assertNever(i);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(a=>t.test(a),{validation:n,code:te.invalid_string,...me.errToObj(r)})}_addCheck(t){return new An({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...me.errToObj(t)})}url(t){return this._addCheck({kind:"url",...me.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...me.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...me.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...me.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...me.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...me.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...me.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...me.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...me.errToObj(t)})}datetime(t){var n,r;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,local:(r=t==null?void 0:t.local)!==null&&r!==void 0?r:!1,...me.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...me.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...me.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...me.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...me.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...me.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...me.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...me.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...me.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...me.errToObj(n)})}nonempty(t){return this.min(1,me.errToObj(t))}trim(){return new An({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new An({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new An({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}An.create=e=>{var t;return new An({checks:[],typeName:_e.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Ee(e)})};function mO(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,a=n>r?n:r,i=parseInt(e.toFixed(a).replace(".","")),o=parseInt(t.toFixed(a).replace(".",""));return i%o/Math.pow(10,a)}class jr extends Re{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==ue.number){const i=this._getOrReturnCtx(t);return ce(i,{code:te.invalid_type,expected:ue.number,received:i.parsedType}),we}let r;const a=new Ht;for(const i of this._def.checks)i.kind==="int"?Ne.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),ce(r,{code:te.invalid_type,expected:"integer",received:"float",message:i.message}),a.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),ce(r,{code:te.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),a.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),ce(r,{code:te.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),a.dirty()):i.kind==="multipleOf"?mO(t.data,i.value)!==0&&(r=this._getOrReturnCtx(t,r),ce(r,{code:te.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),ce(r,{code:te.not_finite,message:i.message}),a.dirty()):Ne.assertNever(i);return{status:a.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,me.toString(n))}gt(t,n){return this.setLimit("min",t,!1,me.toString(n))}lte(t,n){return this.setLimit("max",t,!0,me.toString(n))}lt(t,n){return this.setLimit("max",t,!1,me.toString(n))}setLimit(t,n,r,a){return new jr({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:me.toString(a)}]})}_addCheck(t){return new jr({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:me.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:me.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:me.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:me.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:me.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:me.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:me.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:me.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:me.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&Ne.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}jr.create=e=>new jr({checks:[],typeName:_e.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Ee(e)});class Pr extends Re{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==ue.bigint){const i=this._getOrReturnCtx(t);return ce(i,{code:te.invalid_type,expected:ue.bigint,received:i.parsedType}),we}let r;const a=new Ht;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),ce(r,{code:te.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),a.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),ce(r,{code:te.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),a.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),ce(r,{code:te.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):Ne.assertNever(i);return{status:a.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,me.toString(n))}gt(t,n){return this.setLimit("min",t,!1,me.toString(n))}lte(t,n){return this.setLimit("max",t,!0,me.toString(n))}lt(t,n){return this.setLimit("max",t,!1,me.toString(n))}setLimit(t,n,r,a){return new Pr({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:me.toString(a)}]})}_addCheck(t){return new Pr({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:me.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:me.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:me.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:me.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:me.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Pr.create=e=>{var t;return new Pr({checks:[],typeName:_e.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Ee(e)})};class ho extends Re{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==ue.boolean){const r=this._getOrReturnCtx(t);return ce(r,{code:te.invalid_type,expected:ue.boolean,received:r.parsedType}),we}return Kt(t.data)}}ho.create=e=>new ho({typeName:_e.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Ee(e)});class la extends Re{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==ue.date){const i=this._getOrReturnCtx(t);return ce(i,{code:te.invalid_type,expected:ue.date,received:i.parsedType}),we}if(isNaN(t.data.getTime())){const i=this._getOrReturnCtx(t);return ce(i,{code:te.invalid_date}),we}const r=new Ht;let a;for(const i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(a=this._getOrReturnCtx(t,a),ce(a,{code:te.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),r.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(a=this._getOrReturnCtx(t,a),ce(a,{code:te.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),r.dirty()):Ne.assertNever(i);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new la({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:me.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:me.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}la.create=e=>new la({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:_e.ZodDate,...Ee(e)});class ic extends Re{_parse(t){if(this._getType(t)!==ue.symbol){const r=this._getOrReturnCtx(t);return ce(r,{code:te.invalid_type,expected:ue.symbol,received:r.parsedType}),we}return Kt(t.data)}}ic.create=e=>new ic({typeName:_e.ZodSymbol,...Ee(e)});class po extends Re{_parse(t){if(this._getType(t)!==ue.undefined){const r=this._getOrReturnCtx(t);return ce(r,{code:te.invalid_type,expected:ue.undefined,received:r.parsedType}),we}return Kt(t.data)}}po.create=e=>new po({typeName:_e.ZodUndefined,...Ee(e)});class mo extends Re{_parse(t){if(this._getType(t)!==ue.null){const r=this._getOrReturnCtx(t);return ce(r,{code:te.invalid_type,expected:ue.null,received:r.parsedType}),we}return Kt(t.data)}}mo.create=e=>new mo({typeName:_e.ZodNull,...Ee(e)});class Qa extends Re{constructor(){super(...arguments),this._any=!0}_parse(t){return Kt(t.data)}}Qa.create=e=>new Qa({typeName:_e.ZodAny,...Ee(e)});class ra extends Re{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Kt(t.data)}}ra.create=e=>new ra({typeName:_e.ZodUnknown,...Ee(e)});class hr extends Re{_parse(t){const n=this._getOrReturnCtx(t);return ce(n,{code:te.invalid_type,expected:ue.never,received:n.parsedType}),we}}hr.create=e=>new hr({typeName:_e.ZodNever,...Ee(e)});class oc extends Re{_parse(t){if(this._getType(t)!==ue.undefined){const r=this._getOrReturnCtx(t);return ce(r,{code:te.invalid_type,expected:ue.void,received:r.parsedType}),we}return Kt(t.data)}}oc.create=e=>new oc({typeName:_e.ZodVoid,...Ee(e)});class Dn extends Re{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),a=this._def;if(n.parsedType!==ue.array)return ce(n,{code:te.invalid_type,expected:ue.array,received:n.parsedType}),we;if(a.exactLength!==null){const o=n.data.length>a.exactLength.value,s=n.data.length<a.exactLength.value;(o||s)&&(ce(n,{code:o?te.too_big:te.too_small,minimum:s?a.exactLength.value:void 0,maximum:o?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),r.dirty())}if(a.minLength!==null&&n.data.length<a.minLength.value&&(ce(n,{code:te.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),r.dirty()),a.maxLength!==null&&n.data.length>a.maxLength.value&&(ce(n,{code:te.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((o,s)=>a.type._parseAsync(new Gn(n,o,n.path,s)))).then(o=>Ht.mergeArray(r,o));const i=[...n.data].map((o,s)=>a.type._parseSync(new Gn(n,o,n.path,s)));return Ht.mergeArray(r,i)}get element(){return this._def.type}min(t,n){return new Dn({...this._def,minLength:{value:t,message:me.toString(n)}})}max(t,n){return new Dn({...this._def,maxLength:{value:t,message:me.toString(n)}})}length(t,n){return new Dn({...this._def,exactLength:{value:t,message:me.toString(n)}})}nonempty(t){return this.min(1,t)}}Dn.create=(e,t)=>new Dn({type:e,minLength:null,maxLength:null,exactLength:null,typeName:_e.ZodArray,...Ee(t)});function Na(e){if(e instanceof mt){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=qn.create(Na(r))}return new mt({...e._def,shape:()=>t})}else return e instanceof Dn?new Dn({...e._def,type:Na(e.element)}):e instanceof qn?qn.create(Na(e.unwrap())):e instanceof Ir?Ir.create(Na(e.unwrap())):e instanceof Zn?Zn.create(e.items.map(t=>Na(t))):e}class mt extends Re{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=Ne.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==ue.object){const u=this._getOrReturnCtx(t);return ce(u,{code:te.invalid_type,expected:ue.object,received:u.parsedType}),we}const{status:r,ctx:a}=this._processInputParams(t),{shape:i,keys:o}=this._getCached(),s=[];if(!(this._def.catchall instanceof hr&&this._def.unknownKeys==="strip"))for(const u in a.data)o.includes(u)||s.push(u);const c=[];for(const u of o){const l=i[u],d=a.data[u];c.push({key:{status:"valid",value:u},value:l._parse(new Gn(a,d,a.path,u)),alwaysSet:u in a.data})}if(this._def.catchall instanceof hr){const u=this._def.unknownKeys;if(u==="passthrough")for(const l of s)c.push({key:{status:"valid",value:l},value:{status:"valid",value:a.data[l]}});else if(u==="strict")s.length>0&&(ce(a,{code:te.unrecognized_keys,keys:s}),r.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const l of s){const d=a.data[l];c.push({key:{status:"valid",value:l},value:u._parse(new Gn(a,d,a.path,l)),alwaysSet:l in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const u=[];for(const l of c){const d=await l.key,f=await l.value;u.push({key:d,value:f,alwaysSet:l.alwaysSet})}return u}).then(u=>Ht.mergeObjectSync(r,u)):Ht.mergeObjectSync(r,c)}get shape(){return this._def.shape()}strict(t){return me.errToObj,new mt({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var a,i,o,s;const c=(o=(i=(a=this._def).errorMap)===null||i===void 0?void 0:i.call(a,n,r).message)!==null&&o!==void 0?o:r.defaultError;return n.code==="unrecognized_keys"?{message:(s=me.errToObj(t).message)!==null&&s!==void 0?s:c}:{message:c}}}:{}})}strip(){return new mt({...this._def,unknownKeys:"strip"})}passthrough(){return new mt({...this._def,unknownKeys:"passthrough"})}extend(t){return new mt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new mt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:_e.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new mt({...this._def,catchall:t})}pick(t){const n={};return Ne.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new mt({...this._def,shape:()=>n})}omit(t){const n={};return Ne.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new mt({...this._def,shape:()=>n})}deepPartial(){return Na(this)}partial(t){const n={};return Ne.objectKeys(this.shape).forEach(r=>{const a=this.shape[r];t&&!t[r]?n[r]=a:n[r]=a.optional()}),new mt({...this._def,shape:()=>n})}required(t){const n={};return Ne.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let i=this.shape[r];for(;i instanceof qn;)i=i._def.innerType;n[r]=i}}),new mt({...this._def,shape:()=>n})}keyof(){return T1(Ne.objectKeys(this.shape))}}mt.create=(e,t)=>new mt({shape:()=>e,unknownKeys:"strip",catchall:hr.create(),typeName:_e.ZodObject,...Ee(t)});mt.strictCreate=(e,t)=>new mt({shape:()=>e,unknownKeys:"strict",catchall:hr.create(),typeName:_e.ZodObject,...Ee(t)});mt.lazycreate=(e,t)=>new mt({shape:e,unknownKeys:"strip",catchall:hr.create(),typeName:_e.ZodObject,...Ee(t)});class go extends Re{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function a(i){for(const s of i)if(s.result.status==="valid")return s.result;for(const s of i)if(s.result.status==="dirty")return n.common.issues.push(...s.ctx.common.issues),s.result;const o=i.map(s=>new gn(s.ctx.common.issues));return ce(n,{code:te.invalid_union,unionErrors:o}),we}if(n.common.async)return Promise.all(r.map(async i=>{const o={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:o}),ctx:o}})).then(a);{let i;const o=[];for(const c of r){const u={...n,common:{...n.common,issues:[]},parent:null},l=c._parseSync({data:n.data,path:n.path,parent:u});if(l.status==="valid")return l;l.status==="dirty"&&!i&&(i={result:l,ctx:u}),u.common.issues.length&&o.push(u.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;const s=o.map(c=>new gn(c));return ce(n,{code:te.invalid_union,unionErrors:s}),we}}get options(){return this._def.options}}go.create=(e,t)=>new go({options:e,typeName:_e.ZodUnion,...Ee(t)});const nr=e=>e instanceof bo?nr(e.schema):e instanceof Nn?nr(e.innerType()):e instanceof xo?[e.value]:e instanceof Dr?e.options:e instanceof _o?Ne.objectValues(e.enum):e instanceof wo?nr(e._def.innerType):e instanceof po?[void 0]:e instanceof mo?[null]:e instanceof qn?[void 0,...nr(e.unwrap())]:e instanceof Ir?[null,...nr(e.unwrap())]:e instanceof Ch||e instanceof Co?nr(e.unwrap()):e instanceof To?nr(e._def.innerType):[];class ru extends Re{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ue.object)return ce(n,{code:te.invalid_type,expected:ue.object,received:n.parsedType}),we;const r=this.discriminator,a=n.data[r],i=this.optionsMap.get(a);return i?n.common.async?i._parseAsync({data:n.data,path:n.path,parent:n}):i._parseSync({data:n.data,path:n.path,parent:n}):(ce(n,{code:te.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),we)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const a=new Map;for(const i of n){const o=nr(i.shape[t]);if(!o.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const s of o){if(a.has(s))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(s)}`);a.set(s,i)}}return new ru({typeName:_e.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:a,...Ee(r)})}}function Kd(e,t){const n=Sr(e),r=Sr(t);if(e===t)return{valid:!0,data:e};if(n===ue.object&&r===ue.object){const a=Ne.objectKeys(t),i=Ne.objectKeys(e).filter(s=>a.indexOf(s)!==-1),o={...e,...t};for(const s of i){const c=Kd(e[s],t[s]);if(!c.valid)return{valid:!1};o[s]=c.data}return{valid:!0,data:o}}else if(n===ue.array&&r===ue.array){if(e.length!==t.length)return{valid:!1};const a=[];for(let i=0;i<e.length;i++){const o=e[i],s=t[i],c=Kd(o,s);if(!c.valid)return{valid:!1};a.push(c.data)}return{valid:!0,data:a}}else return n===ue.date&&r===ue.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class vo extends Re{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),a=(i,o)=>{if(Gd(i)||Gd(o))return we;const s=Kd(i.value,o.value);return s.valid?((Zd(i)||Zd(o))&&n.dirty(),{status:n.value,value:s.data}):(ce(r,{code:te.invalid_intersection_types}),we)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([i,o])=>a(i,o)):a(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}vo.create=(e,t,n)=>new vo({left:e,right:t,typeName:_e.ZodIntersection,...Ee(n)});class Zn extends Re{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ue.array)return ce(r,{code:te.invalid_type,expected:ue.array,received:r.parsedType}),we;if(r.data.length<this._def.items.length)return ce(r,{code:te.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),we;!this._def.rest&&r.data.length>this._def.items.length&&(ce(r,{code:te.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const i=[...r.data].map((o,s)=>{const c=this._def.items[s]||this._def.rest;return c?c._parse(new Gn(r,o,r.path,s)):null}).filter(o=>!!o);return r.common.async?Promise.all(i).then(o=>Ht.mergeArray(n,o)):Ht.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new Zn({...this._def,rest:t})}}Zn.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Zn({items:e,typeName:_e.ZodTuple,rest:null,...Ee(t)})};class yo extends Re{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ue.object)return ce(r,{code:te.invalid_type,expected:ue.object,received:r.parsedType}),we;const a=[],i=this._def.keyType,o=this._def.valueType;for(const s in r.data)a.push({key:i._parse(new Gn(r,s,r.path,s)),value:o._parse(new Gn(r,r.data[s],r.path,s)),alwaysSet:s in r.data});return r.common.async?Ht.mergeObjectAsync(n,a):Ht.mergeObjectSync(n,a)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof Re?new yo({keyType:t,valueType:n,typeName:_e.ZodRecord,...Ee(r)}):new yo({keyType:An.create(),valueType:t,typeName:_e.ZodRecord,...Ee(n)})}}class sc extends Re{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ue.map)return ce(r,{code:te.invalid_type,expected:ue.map,received:r.parsedType}),we;const a=this._def.keyType,i=this._def.valueType,o=[...r.data.entries()].map(([s,c],u)=>({key:a._parse(new Gn(r,s,r.path,[u,"key"])),value:i._parse(new Gn(r,c,r.path,[u,"value"]))}));if(r.common.async){const s=new Map;return Promise.resolve().then(async()=>{for(const c of o){const u=await c.key,l=await c.value;if(u.status==="aborted"||l.status==="aborted")return we;(u.status==="dirty"||l.status==="dirty")&&n.dirty(),s.set(u.value,l.value)}return{status:n.value,value:s}})}else{const s=new Map;for(const c of o){const u=c.key,l=c.value;if(u.status==="aborted"||l.status==="aborted")return we;(u.status==="dirty"||l.status==="dirty")&&n.dirty(),s.set(u.value,l.value)}return{status:n.value,value:s}}}}sc.create=(e,t,n)=>new sc({valueType:t,keyType:e,typeName:_e.ZodMap,...Ee(n)});class da extends Re{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ue.set)return ce(r,{code:te.invalid_type,expected:ue.set,received:r.parsedType}),we;const a=this._def;a.minSize!==null&&r.data.size<a.minSize.value&&(ce(r,{code:te.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),n.dirty()),a.maxSize!==null&&r.data.size>a.maxSize.value&&(ce(r,{code:te.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),n.dirty());const i=this._def.valueType;function o(c){const u=new Set;for(const l of c){if(l.status==="aborted")return we;l.status==="dirty"&&n.dirty(),u.add(l.value)}return{status:n.value,value:u}}const s=[...r.data.values()].map((c,u)=>i._parse(new Gn(r,c,r.path,u)));return r.common.async?Promise.all(s).then(c=>o(c)):o(s)}min(t,n){return new da({...this._def,minSize:{value:t,message:me.toString(n)}})}max(t,n){return new da({...this._def,maxSize:{value:t,message:me.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}da.create=(e,t)=>new da({valueType:e,minSize:null,maxSize:null,typeName:_e.ZodSet,...Ee(t)});class Wa extends Re{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ue.function)return ce(n,{code:te.invalid_type,expected:ue.function,received:n.parsedType}),we;function r(s,c){return rc({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,nc(),Ja].filter(u=>!!u),issueData:{code:te.invalid_arguments,argumentsError:c}})}function a(s,c){return rc({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,nc(),Ja].filter(u=>!!u),issueData:{code:te.invalid_return_type,returnTypeError:c}})}const i={errorMap:n.common.contextualErrorMap},o=n.data;if(this._def.returns instanceof ei){const s=this;return Kt(async function(...c){const u=new gn([]),l=await s._def.args.parseAsync(c,i).catch(h=>{throw u.addIssue(r(c,h)),u}),d=await Reflect.apply(o,this,l);return await s._def.returns._def.type.parseAsync(d,i).catch(h=>{throw u.addIssue(a(d,h)),u})})}else{const s=this;return Kt(function(...c){const u=s._def.args.safeParse(c,i);if(!u.success)throw new gn([r(c,u.error)]);const l=Reflect.apply(o,this,u.data),d=s._def.returns.safeParse(l,i);if(!d.success)throw new gn([a(l,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new Wa({...this._def,args:Zn.create(t).rest(ra.create())})}returns(t){return new Wa({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new Wa({args:t||Zn.create([]).rest(ra.create()),returns:n||ra.create(),typeName:_e.ZodFunction,...Ee(r)})}}class bo extends Re{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}bo.create=(e,t)=>new bo({getter:e,typeName:_e.ZodLazy,...Ee(t)});class xo extends Re{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return ce(n,{received:n.data,code:te.invalid_literal,expected:this._def.value}),we}return{status:"valid",value:t.data}}get value(){return this._def.value}}xo.create=(e,t)=>new xo({value:e,typeName:_e.ZodLiteral,...Ee(t)});function T1(e,t){return new Dr({values:e,typeName:_e.ZodEnum,...Ee(t)})}class Dr extends Re{constructor(){super(...arguments),Yi.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return ce(n,{expected:Ne.joinValues(r),received:n.parsedType,code:te.invalid_type}),we}if(ac(this,Yi)||b1(this,Yi,new Set(this._def.values)),!ac(this,Yi).has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return ce(n,{received:n.data,code:te.invalid_enum_value,options:r}),we}return Kt(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Dr.create(t,{...this._def,...n})}exclude(t,n=this._def){return Dr.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}Yi=new WeakMap;Dr.create=T1;class _o extends Re{constructor(){super(...arguments),Gi.set(this,void 0)}_parse(t){const n=Ne.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==ue.string&&r.parsedType!==ue.number){const a=Ne.objectValues(n);return ce(r,{expected:Ne.joinValues(a),received:r.parsedType,code:te.invalid_type}),we}if(ac(this,Gi)||b1(this,Gi,new Set(Ne.getValidEnumValues(this._def.values))),!ac(this,Gi).has(t.data)){const a=Ne.objectValues(n);return ce(r,{received:r.data,code:te.invalid_enum_value,options:a}),we}return Kt(t.data)}get enum(){return this._def.values}}Gi=new WeakMap;_o.create=(e,t)=>new _o({values:e,typeName:_e.ZodNativeEnum,...Ee(t)});class ei extends Re{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ue.promise&&n.common.async===!1)return ce(n,{code:te.invalid_type,expected:ue.promise,received:n.parsedType}),we;const r=n.parsedType===ue.promise?n.data:Promise.resolve(n.data);return Kt(r.then(a=>this._def.type.parseAsync(a,{path:n.path,errorMap:n.common.contextualErrorMap})))}}ei.create=(e,t)=>new ei({type:e,typeName:_e.ZodPromise,...Ee(t)});class Nn extends Re{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===_e.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),a=this._def.effect||null,i={addIssue:o=>{ce(r,o),o.fatal?n.abort():n.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),a.type==="preprocess"){const o=a.transform(r.data,i);if(r.common.async)return Promise.resolve(o).then(async s=>{if(n.value==="aborted")return we;const c=await this._def.schema._parseAsync({data:s,path:r.path,parent:r});return c.status==="aborted"?we:c.status==="dirty"||n.value==="dirty"?Fa(c.value):c});{if(n.value==="aborted")return we;const s=this._def.schema._parseSync({data:o,path:r.path,parent:r});return s.status==="aborted"?we:s.status==="dirty"||n.value==="dirty"?Fa(s.value):s}}if(a.type==="refinement"){const o=s=>{const c=a.refinement(s,i);if(r.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return s};if(r.common.async===!1){const s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?we:(s.status==="dirty"&&n.dirty(),o(s.value),{status:n.value,value:s.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>s.status==="aborted"?we:(s.status==="dirty"&&n.dirty(),o(s.value).then(()=>({status:n.value,value:s.value}))))}if(a.type==="transform")if(r.common.async===!1){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!lo(o))return o;const s=a.transform(o.value,i);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:s}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(o=>lo(o)?Promise.resolve(a.transform(o.value,i)).then(s=>({status:n.value,value:s})):o);Ne.assertNever(a)}}Nn.create=(e,t,n)=>new Nn({schema:e,typeName:_e.ZodEffects,effect:t,...Ee(n)});Nn.createWithPreprocess=(e,t,n)=>new Nn({schema:t,effect:{type:"preprocess",transform:e},typeName:_e.ZodEffects,...Ee(n)});class qn extends Re{_parse(t){return this._getType(t)===ue.undefined?Kt(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}qn.create=(e,t)=>new qn({innerType:e,typeName:_e.ZodOptional,...Ee(t)});class Ir extends Re{_parse(t){return this._getType(t)===ue.null?Kt(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Ir.create=(e,t)=>new Ir({innerType:e,typeName:_e.ZodNullable,...Ee(t)});class wo extends Re{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===ue.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}wo.create=(e,t)=>new wo({innerType:e,typeName:_e.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Ee(t)});class To extends Re{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},a=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return fo(a)?a.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new gn(r.common.issues)},input:r.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new gn(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}To.create=(e,t)=>new To({innerType:e,typeName:_e.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Ee(t)});class cc extends Re{_parse(t){if(this._getType(t)!==ue.nan){const r=this._getOrReturnCtx(t);return ce(r,{code:te.invalid_type,expected:ue.nan,received:r.parsedType}),we}return{status:"valid",value:t.data}}}cc.create=e=>new cc({typeName:_e.ZodNaN,...Ee(e)});const gO=Symbol("zod_brand");class Ch extends Re{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class Zo extends Re{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?we:i.status==="dirty"?(n.dirty(),Fa(i.value)):this._def.out._parseAsync({data:i.value,path:r.path,parent:r})})();{const a=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?we:a.status==="dirty"?(n.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:r.path,parent:r})}}static create(t,n){return new Zo({in:t,out:n,typeName:_e.ZodPipeline})}}class Co extends Re{_parse(t){const n=this._def.innerType._parse(t),r=a=>(lo(a)&&(a.value=Object.freeze(a.value)),a);return fo(n)?n.then(a=>r(a)):r(n)}unwrap(){return this._def.innerType}}Co.create=(e,t)=>new Co({innerType:e,typeName:_e.ZodReadonly,...Ee(t)});function C1(e,t={},n){return e?Qa.create().superRefine((r,a)=>{var i,o;if(!e(r)){const s=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,c=(o=(i=s.fatal)!==null&&i!==void 0?i:n)!==null&&o!==void 0?o:!0,u=typeof s=="string"?{message:s}:s;a.addIssue({code:"custom",...u,fatal:c})}}):Qa.create()}const vO={object:mt.lazycreate};var _e;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(_e||(_e={}));const yO=(e,t={message:`Input not instance of ${e.name}`})=>C1(n=>n instanceof e,t),k1=An.create,S1=jr.create,bO=cc.create,xO=Pr.create,O1=ho.create,_O=la.create,wO=ic.create,TO=po.create,CO=mo.create,kO=Qa.create,SO=ra.create,OO=hr.create,EO=oc.create,$O=Dn.create,MO=mt.create,RO=mt.strictCreate,AO=go.create,jO=ru.create,PO=vo.create,DO=Zn.create,IO=yo.create,NO=sc.create,FO=da.create,LO=Wa.create,UO=bo.create,WO=xo.create,BO=Dr.create,zO=_o.create,HO=ei.create,hg=Nn.create,VO=qn.create,qO=Ir.create,YO=Nn.createWithPreprocess,GO=Zo.create,ZO=()=>k1().optional(),KO=()=>S1().optional(),XO=()=>O1().optional(),JO={string:e=>An.create({...e,coerce:!0}),number:e=>jr.create({...e,coerce:!0}),boolean:e=>ho.create({...e,coerce:!0}),bigint:e=>Pr.create({...e,coerce:!0}),date:e=>la.create({...e,coerce:!0})},QO=we;var Ft=Object.freeze({__proto__:null,defaultErrorMap:Ja,setErrorMap:QS,getErrorMap:nc,makeIssue:rc,EMPTY_PATH:eO,addIssueToContext:ce,ParseStatus:Ht,INVALID:we,DIRTY:Fa,OK:Kt,isAborted:Gd,isDirty:Zd,isValid:lo,isAsync:fo,get util(){return Ne},get objectUtil(){return Yd},ZodParsedType:ue,getParsedType:Sr,ZodType:Re,datetimeRegex:w1,ZodString:An,ZodNumber:jr,ZodBigInt:Pr,ZodBoolean:ho,ZodDate:la,ZodSymbol:ic,ZodUndefined:po,ZodNull:mo,ZodAny:Qa,ZodUnknown:ra,ZodNever:hr,ZodVoid:oc,ZodArray:Dn,ZodObject:mt,ZodUnion:go,ZodDiscriminatedUnion:ru,ZodIntersection:vo,ZodTuple:Zn,ZodRecord:yo,ZodMap:sc,ZodSet:da,ZodFunction:Wa,ZodLazy:bo,ZodLiteral:xo,ZodEnum:Dr,ZodNativeEnum:_o,ZodPromise:ei,ZodEffects:Nn,ZodTransformer:Nn,ZodOptional:qn,ZodNullable:Ir,ZodDefault:wo,ZodCatch:To,ZodNaN:cc,BRAND:gO,ZodBranded:Ch,ZodPipeline:Zo,ZodReadonly:Co,custom:C1,Schema:Re,ZodSchema:Re,late:vO,get ZodFirstPartyTypeKind(){return _e},coerce:JO,any:kO,array:$O,bigint:xO,boolean:O1,date:_O,discriminatedUnion:jO,effect:hg,enum:BO,function:LO,instanceof:yO,intersection:PO,lazy:UO,literal:WO,map:NO,nan:bO,nativeEnum:zO,never:OO,null:CO,nullable:qO,number:S1,object:MO,oboolean:XO,onumber:KO,optional:VO,ostring:ZO,pipeline:GO,preprocess:YO,promise:HO,record:IO,set:FO,strictObject:RO,string:k1,symbol:wO,transformer:hg,tuple:DO,undefined:TO,union:AO,unknown:SO,void:EO,NEVER:QO,ZodIssueCode:te,quotelessJson:JS,ZodError:gn});const au=()=>{const{texts:{formValidation:e}}=p.useContext(bn),t=p.useCallback(v=>(v!=null&&v.useCoerce?Ft.coerce:Ft).string({invalid_type_error:e.required,required_error:e.required}).transform(_=>_??null),[e.required]),n=p.useCallback(v=>t(v).nullable().optional().transform(m=>m??null),[t]),r=p.useCallback(v=>{const m=(v==null?void 0:v.min)??Number.MIN_SAFE_INTEGER,_=(v==null?void 0:v.max)??Number.MAX_SAFE_INTEGER,w=(v!=null&&v.useCoerce?Ft.coerce:Ft).number({invalid_type_error:e.required,required_error:e.required}).min(m,e.lessThanMin(m)).max(_,e.moreThanMax(_));return w.transform(b=>b??null),w},[e]),a=p.useCallback(v=>r(v).nullable().optional().transform(m=>m??null),[r]),i=p.useCallback(v=>(v!=null&&v.useCoerce?Ft.coerce:Ft).boolean({invalid_type_error:e.required,required_error:e.required}).transform(m=>m??null),[e.required]),o=p.useCallback(v=>(v!=null&&v.useCoerce?Ft.coerce:Ft).string({invalid_type_error:e.required,required_error:e.required}).refine(u1,{message:e.invalidDate}).transform(_=>_??null),[e.invalidDate,e.required]),s=p.useCallback(v=>o(v).nullable().transform(m=>m??null),[o]),c=p.useCallback((v,m)=>Ft.enum(v,{invalid_type_error:e.required,required_error:e.required}).transform(w=>w??null),[e.required]),u=p.useCallback((v,m)=>c(v,m).nullable().transform(_=>_??null),[c]),l=p.useCallback(v=>Ft.object({id:a({useCoerce:!0})}).nullable().transform(_=>_??null),[a]),d=p.useCallback(v=>Ft.object({id:r()}).transform(_=>_??null),[r]),f=p.useCallback(v=>Ft.object({id:n({useCoerce:!0})}).nullable().transform(_=>_??null),[n]),h=p.useCallback(v=>Ft.object({id:t()}).transform(_=>_??null),[t]),g=p.useCallback(({required:v,multiple:m,maxFileSize:_})=>Ft.any().transform(b=>Array.from(b??[])).refine(b=>!v||(b==null?void 0:b.length)>0,"File is required.").refine(b=>m||(b==null?void 0:b.length)<=1,"Multiple files not allowed.").refine(b=>b.every(T=>T.size<=_),`Maximum file size is ${eu(_)}.`).transform(b=>(m?b:b==null?void 0:b[0])??null),[]);return{zString:n,zStringRequired:t,zNumber:a,zNumberRequired:r,zBool:i,zDate:s,zDateRequired:o,zEnum:u,zEnumRequired:c,zObjectIdInt:l,zObjectIdIntRequired:d,zObjectIdStr:f,zObjectIdStrRequired:h,zFile:g}},E1=(e,t,n)=>p.useMemo(()=>n||e!=="date"&&e!=="datetime-local"||t?e:"text",[t,e,n]),kh=p.createContext({useMsal:!1,msalInstance:null,msalScopes:[]}),$1=p.createContext({delegation:null,setDelegation:()=>{},availableDelegations:null,setAvailableDelegations:()=>{},refreshAvailableDelegations:async()=>{}}),eE="_button_1wjon_1",tE="_filled_1wjon_7",nE="_sm_1wjon_13",rE="_md_1wjon_18",aE="_lg_1wjon_23",ja={button:eE,filled:tE,sm:nE,md:rE,lg:aE},fa=({variant:e="filled",color:t="primary",size:n="md",className:r,children:a,...i})=>i.as==="link"?y.jsx(Ac.Link,{to:i.href??"/",className:oe(`luminus-primary-button ${t} btn ${e==="outlined"?`btn-outline-${t}`:`btn-${t}`} ${r??""}`,ja.button,ja[e],ja[n]),...i,children:a}):i.as==="button"||i.as===void 0?y.jsx("button",{type:"button",className:oe(`luminus-primary-button ${t} btn ${e==="outlined"?`btn-outline-${t}`:`btn-${t}`} ${r??""}`,ja.button,ja[e],ja[n]),...i,children:a}):null,iE="_button_1r3i0_1",Xd={button:iE},iu=({color:e="primary",icon:t,className:n,children:r,...a})=>a.as==="link"?y.jsxs(Ac.Link,{to:a.href??"/",className:oe(`luminus-context-button btn text-${e} ${n??""}`,Xd.button),...a,children:[t,r]}):a.as==="button"||a.as===void 0?y.jsxs("button",{type:"button",className:oe(`luminus-context-button btn text-${e} ${n??""}`,Xd.button),...a,children:[t,r]}):null,oE="_icon-button_15e26_1",sE="_sm_15e26_14",cE="_md_15e26_23",uE="_lg_15e26_32",ms={"icon-button":"_icon-button_15e26_1",iconButton:oE,sm:sE,md:cE,lg:uE},ou=({type:e="button",color:t="primary",size:n="md",children:r,className:a,...i})=>i.as==="link"?y.jsx(Ac.Link,{to:i.href??"/",className:oe(`luminus-icon-button btn text-${t} ${a??""}`,ms.iconButton,ms[n]),...i,children:r}):i.as==="button"||i.as===void 0?y.jsx("button",{type:e,className:oe(`luminus-icon-button btn text-${t} ${a??""}`,ms.iconButton,ms[n]),...i,children:r}):null,lE="_h1_14r4v_1",dE="_h3_14r4v_8",fE="_h6_14r4v_15",hE="_subtitle_14r4v_22",pE="_body_14r4v_29",mE="_body2_14r4v_36",gE="_caption_14r4v_43",vE="_form-label_14r4v_50",_r={h1:lE,h3:dE,h6:fE,subtitle:hE,body:pE,body2:mE,caption:gE,"form-label":"_form-label_14r4v_50",formLabel:vE},yE=({variant:e,className:t,children:n})=>{switch(e){case"h1":return y.jsx("h1",{className:oe("luminus-text-primary luminus-h1",_r.h1,t),children:n});case"h3":return y.jsx("h3",{className:oe("luminus-text luminus-h3",_r.h3,t),children:n});case"h6":return y.jsx("h6",{className:oe("luminus-text luminus-h6",_r.h6,t),children:n});case"subtitle":return y.jsx("div",{className:oe("luminus-text luminus-subtitle",_r.subtitle,t),children:n});case"body":return y.jsx("div",{className:oe("luminus-text luminus-body",_r.body,t),children:n});case"body2":return y.jsx("div",{className:oe("luminus-text luminus-body2",_r.body2,t),children:n});case"caption":return y.jsx("div",{className:oe("luminus-text-muted luminus-caption",_r.caption,t),children:n});case"form-label":return y.jsx("div",{className:oe("luminus-text luminus-form-label",_r.formLabel,t),children:n});default:return y.jsx(y.Fragment,{children:n})}},M1=({variant:e,className:t,children:n})=>y.jsx(yE,{variant:e,className:t,children:n}),bE="_feedback_esh1j_1",xE="_feedback-spacer_esh1j_8",pg={feedback:bE,"feedback-spacer":"_feedback-spacer_esh1j_8",feedbackSpacer:xE},su=({message:e})=>y.jsxs(y.Fragment,{children:[y.jsx("div",{className:oe("invalid-feedback luminus-invalid-feedback",pg.feedback),children:e}),y.jsx("div",{className:oe("invalid-feedback-spacer",pg.feedbackSpacer),children:e})]});function _E(e){return Fe({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},child:[]}]})(e)}function wE(e){return Fe({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},child:[]}]})(e)}function TE(e){return Fe({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"},child:[]}]})(e)}function CE(e){return Fe({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48zm250.2-143.7c-12.2-12-47-8.7-64.4-6.5-17.2-10.5-28.7-25-36.8-46.3 3.9-16.1 10.1-40.6 5.4-56-4.2-26.2-37.8-23.6-42.6-5.9-4.4 16.1-.4 38.5 7 67.1-10 23.9-24.9 56-35.4 74.4-20 10.3-47 26.2-51 46.2-3.3 15.8 26 55.2 76.1-31.2 22.4-7.4 46.8-16.5 68.4-20.1 18.9 10.2 41 17 55.8 17 25.5 0 28-28.2 17.5-38.7zm-198.1 77.8c5.1-13.7 24.5-29.5 30.4-35-19 30.3-30.4 35.7-30.4 35zm81.6-190.6c7.4 0 6.7 32.1 1.8 40.8-4.4-13.9-4.3-40.8-1.8-40.8zm-24.4 136.6c9.7-16.9 18-37 24.7-54.7 8.3 15.1 18.9 27.2 30.1 35.5-20.8 4.3-38.9 13.1-54.8 19.2zm131.6-5s-5 6-37.3-7.8c35.1-2.6 40.9 5.4 37.3 7.8z"},child:[]}]})(e)}const kE="_item_1dy8x_1",R1={item:kE},Jd=({color:e="primary",icon:t,className:n,children:r,...a})=>y.jsxs(co.Item,{className:oe(`btn luminus-dropdown-item text-nowrap rounded text-${e} ${n??""}`,R1.item),...a,children:[t,r]}),SE="_button_qhwih_1",OE={button:SE},A1=p.forwardRef(({color:e="primary",icon:t=y.jsx(Bk,{size:21}),text:n,onClick:r,className:a,children:i,...o},s)=>y.jsxs("button",{type:"button",ref:s,onClick:c=>{c.preventDefault(),r(c)},"aria-label":"dropdown toggle",className:oe(`btn luminus-context-button text-${e} ${a??""}`,OE.button),...o,children:[t,n]})),EE="_avatar-icon_1axl6_1",$E={"avatar-icon":"_avatar-icon_1axl6_1",avatarIcon:EE},j1=({name:e,fontSize:t,size:n})=>{const r=a=>{let i=0,o;for(o=0;o<a.length;o+=1)i=a.charCodeAt(o)+((i<<5)-i);let s="#";for(o=0;o<3;o+=1){const c=i>>o*8&255;s+=`00${c.toString(16)}`.slice(-2)}return s};return y.jsx(Tb,{placement:"bottom",overlay:y.jsx(hh,{children:e}),children:y.jsx("div",{className:oe("luminus-avatar-icon",$E.avatarIcon),style:{backgroundColor:r(e),fontSize:t??void 0,minHeight:n??void 0,height:n??void 0,maxHeight:n??void 0,minWidth:n??void 0,width:n??void 0,maxWidth:n??void 0},children:y.jsx("div",{children:`${e.split(" ")[0][0]}${e.split(" ")[1][0]}`})})})},ME=p.forwardRef(({userName:e,onClick:t,children:n},r)=>y.jsxs("button",{type:"button",ref:r,onClick:a=>{a.preventDefault(),t(a)},"aria-label":"User avatar toggle",className:"m-0 p-0",style:{backgroundColor:"transparent",border:"none",cursor:"pointer"},children:[y.jsx(j1,{name:e}),n]})),P1=e=>y.jsx(co.Toggle,{...e}),RE="_dropdown_1lk66_1",AE={dropdown:RE},D1=({toggle:e,children:t,...n})=>y.jsxs(co,{...n,children:[e,y.jsx(co.Menu,{className:oe("luminus-dropdown rounded shadow",AE.dropdown),children:t})]}),jE="_floating-label_19xda_1",PE="_without-label_19xda_21",DE="_floating-label-check_19xda_184",Wl={"floating-label":"_floating-label_19xda_1",floatingLabel:jE,"without-label":"_without-label_19xda_21",withoutLabel:PE,"floating-label-check":"_floating-label-check_19xda_184",floatingLabelCheck:DE},I1=p.forwardRef(({hidden:e,children:t,className:n,isInvalid:r,isForRadioInput:a,inputContainerClassName:i,isForCheckInput:o,...s},c)=>o?y.jsx("div",{className:oe("luminus-floating-label-check",Wl.floatingLabelCheck),children:t}):y.jsx(sh,{ref:c,label:s.withoutLabel?"":s.label,hidden:e??!1,className:oe(`luminus-floating-label ${n??""}`,Wl.floatingLabel,{[i??""]:i},{[Wl.withoutLabel]:s.withoutLabel}),children:t}));I1.displayName="FloatingLabelInput";const IE="_row-label-input_1wurk_1",NE="_label_1wurk_4",FE="_input-container_1wurk_9",LE="_invalid-feedback_1wurk_104",UE="_keep-check-label_1wurk_132",WE="_is-invalid_1wurk_160",Di={"row-label-input":"_row-label-input_1wurk_1",rowLabelInput:IE,label:NE,"input-container":"_input-container_1wurk_9",inputContainer:FE,"invalid-feedback":"_invalid-feedback_1wurk_104",invalidFeedback:LE,"keep-check-label":"_keep-check-label_1wurk_132",keepCheckLabel:UE,"is-invalid":"_is-invalid_1wurk_160",isInvalid:WE},Ko=p.forwardRef(({hidden:e,children:t,className:n,isInvalid:r,isForRadioInput:a,isForTextAreaInput:i,inputContainerClassName:o,...s},c)=>y.jsxs("div",{ref:c,className:oe("luminus-row-label row gx-0 gy-0",{"is-invalid":r},{[Di.isInvalid]:r},{[n??""]:n},{"d-none":e},Di.rowLabelInput),children:[!s.withoutLabel&&y.jsx("label",{className:oe("label col-6",{"col-12":i},Di.label),children:y.jsx(M1,{variant:"form-label",className:r?"text-danger":"",children:s.label})}),y.jsx("div",{className:oe("input-container",Di.inputContainer,{"col-6":!s.withoutLabel&&!i},{"col-12":s.withoutLabel||i},{[Di.keepCheckLabel]:a},{[o??""]:o}),children:t})]}));Ko.displayName="RowLabelInput";const N1=p.forwardRef(({children:e,className:t,hidden:n},r)=>y.jsx("div",{ref:r,className:`${n?"d-none":""} ${t}`,children:e}));N1.displayName="NoInputContainer";const BE=p.forwardRef(({onClick:e,text:t},n)=>y.jsx("div",{ref:n,onClick:r=>{r.preventDefault(),e(r)},role:"button",className:"middle-div",children:y.jsxs("div",{className:"d-flex flex-column align-items-center",children:[y.jsx("div",{className:"mt-",children:"…"}),y.jsx("div",{className:"mt-1 middle-letter",children:t})]})}));var Sh=Jo(),Se=e=>Xo(e,Sh),Oh=Jo();Se.write=e=>Xo(e,Oh);var cu=Jo();Se.onStart=e=>Xo(e,cu);var Eh=Jo();Se.onFrame=e=>Xo(e,Eh);var $h=Jo();Se.onFinish=e=>Xo(e,$h);var Ba=[];Se.setTimeout=(e,t)=>{const n=Se.now()+t,r=()=>{const i=Ba.findIndex(o=>o.cancel==r);~i&&Ba.splice(i,1),$r-=~i?1:0},a={time:n,handler:e,cancel:r};return Ba.splice(F1(n),0,a),$r+=1,L1(),a};var F1=e=>~(~Ba.findIndex(t=>t.time>e)||~Ba.length);Se.cancel=e=>{cu.delete(e),Eh.delete(e),$h.delete(e),Sh.delete(e),Oh.delete(e)};Se.sync=e=>{Qd=!0,Se.batchedUpdates(e),Qd=!1};Se.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...a){t=a,Se.onStart(n)}return r.handler=e,r.cancel=()=>{cu.delete(n),t=null},r};var Mh=typeof window<"u"?window.requestAnimationFrame:()=>{};Se.use=e=>Mh=e;Se.now=typeof performance<"u"?()=>performance.now():Date.now;Se.batchedUpdates=e=>e();Se.catch=console.error;Se.frameLoop="always";Se.advance=()=>{Se.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):W1()};var Er=-1,$r=0,Qd=!1;function Xo(e,t){Qd?(t.delete(e),e(0)):(t.add(e),L1())}function L1(){Er<0&&(Er=0,Se.frameLoop!=="demand"&&Mh(U1))}function zE(){Er=-1}function U1(){~Er&&(Mh(U1),Se.batchedUpdates(W1))}function W1(){const e=Er;Er=Se.now();const t=F1(Er);if(t&&(B1(Ba.splice(0,t),n=>n.handler()),$r-=t),!$r){zE();return}cu.flush(),Sh.flush(e?Math.min(64,Er-e):16.667),Eh.flush(),Oh.flush(),$h.flush()}function Jo(){let e=new Set,t=e;return{add(n){$r+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return $r-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,$r-=t.size,B1(t,r=>r(n)&&e.add(r)),$r+=e.size,t=e)}}}function B1(e,t){e.forEach(n=>{try{t(n)}catch(r){Se.catch(r)}})}var HE=Object.defineProperty,VE=(e,t)=>{for(var n in t)HE(e,n,{get:t[n],enumerable:!0})},Fn={};VE(Fn,{assign:()=>YE,colors:()=>Rr,createStringInterpolator:()=>Ah,skipAnimation:()=>H1,to:()=>z1,willAdvance:()=>jh});function ef(){}var qE=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),ee={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function rr(e,t){if(ee.arr(e)){if(!ee.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var Ce=(e,t)=>e.forEach(t);function Kn(e,t,n){if(ee.arr(e)){for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);return}for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var Zt=e=>ee.und(e)?[]:ee.arr(e)?e:[e];function eo(e,t){if(e.size){const n=Array.from(e);e.clear(),Ce(n,t)}}var Zi=(e,...t)=>eo(e,n=>n(...t)),Rh=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Ah,z1,Rr=null,H1=!1,jh=ef,YE=e=>{e.to&&(z1=e.to),e.now&&(Se.now=e.now),e.colors!==void 0&&(Rr=e.colors),e.skipAnimation!=null&&(H1=e.skipAnimation),e.createStringInterpolator&&(Ah=e.createStringInterpolator),e.requestAnimationFrame&&Se.use(e.requestAnimationFrame),e.batchedUpdates&&(Se.batchedUpdates=e.batchedUpdates),e.willAdvance&&(jh=e.willAdvance),e.frameLoop&&(Se.frameLoop=e.frameLoop)},to=new Set,Tn=[],Bl=[],uc=0,uu={get idle(){return!to.size&&!Tn.length},start(e){uc>e.priority?(to.add(e),Se.onStart(GE)):(V1(e),Se(tf))},advance:tf,sort(e){if(uc)Se.onFrame(()=>uu.sort(e));else{const t=Tn.indexOf(e);~t&&(Tn.splice(t,1),q1(e))}},clear(){Tn=[],to.clear()}};function GE(){to.forEach(V1),to.clear(),Se(tf)}function V1(e){Tn.includes(e)||q1(e)}function q1(e){Tn.splice(ZE(Tn,t=>t.priority>e.priority),0,e)}function tf(e){const t=Bl;for(let n=0;n<Tn.length;n++){const r=Tn[n];uc=r.priority,r.idle||(jh(r),r.advance(e),r.idle||t.push(r))}return uc=0,Bl=Tn,Bl.length=0,Tn=t,Tn.length>0}function ZE(e,t){const n=e.findIndex(t);return n<0?e.length:n}var KE=(e,t,n)=>Math.min(Math.max(n,e),t),XE={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},jn="[-+]?\\d*\\.?\\d+",lc=jn+"%";function lu(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var JE=new RegExp("rgb"+lu(jn,jn,jn)),QE=new RegExp("rgba"+lu(jn,jn,jn,jn)),e$=new RegExp("hsl"+lu(jn,lc,lc)),t$=new RegExp("hsla"+lu(jn,lc,lc,jn)),n$=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,r$=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,a$=/^#([0-9a-fA-F]{6})$/,i$=/^#([0-9a-fA-F]{8})$/;function o$(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=a$.exec(e))?parseInt(t[1]+"ff",16)>>>0:Rr&&Rr[e]!==void 0?Rr[e]:(t=JE.exec(e))?(Pa(t[1])<<24|Pa(t[2])<<16|Pa(t[3])<<8|255)>>>0:(t=QE.exec(e))?(Pa(t[1])<<24|Pa(t[2])<<16|Pa(t[3])<<8|vg(t[4]))>>>0:(t=n$.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=i$.exec(e))?parseInt(t[1],16)>>>0:(t=r$.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=e$.exec(e))?(mg(gg(t[1]),gs(t[2]),gs(t[3]))|255)>>>0:(t=t$.exec(e))?(mg(gg(t[1]),gs(t[2]),gs(t[3]))|vg(t[4]))>>>0:null}function zl(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function mg(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,a=2*n-r,i=zl(a,r,e+1/3),o=zl(a,r,e),s=zl(a,r,e-1/3);return Math.round(i*255)<<24|Math.round(o*255)<<16|Math.round(s*255)<<8}function Pa(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function gg(e){return(parseFloat(e)%360+360)%360/360}function vg(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function gs(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function yg(e){let t=o$(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,a=(t&65280)>>>8,i=(t&255)/255;return`rgba(${n}, ${r}, ${a}, ${i})`}var ko=(e,t,n)=>{if(ee.fun(e))return e;if(ee.arr(e))return ko({range:e,output:t,extrapolate:n});if(ee.str(e.output[0]))return Ah(e);const r=e,a=r.output,i=r.range||[0,1],o=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",c=r.easing||(u=>u);return u=>{const l=c$(u,i);return s$(u,i[l],i[l+1],a[l],a[l+1],c,o,s,r.map)}};function s$(e,t,n,r,a,i,o,s,c){let u=c?c(e):e;if(u<t){if(o==="identity")return u;o==="clamp"&&(u=t)}if(u>n){if(s==="identity")return u;s==="clamp"&&(u=n)}return r===a?r:t===n?e<=t?r:a:(t===-1/0?u=-u:n===1/0?u=u-t:u=(u-t)/(n-t),u=i(u),r===-1/0?u=-u:a===1/0?u=u+r:u=u*(a-r)+r,u)}function c$(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var u$=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*e,a=t==="end"?Math.floor(r):Math.ceil(r);return KE(0,1,a/e)},dc=1.70158,vs=dc*1.525,bg=dc+1,xg=2*Math.PI/3,_g=2*Math.PI/4.5,ys=e=>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,l$={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>bg*e*e*e-dc*e*e,easeOutBack:e=>1+bg*Math.pow(e-1,3)+dc*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((vs+1)*2*e-vs)/2:(Math.pow(2*e-2,2)*((vs+1)*(e*2-2)+vs)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*xg),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*xg)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*_g))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*_g)/2+1,easeInBounce:e=>1-ys(1-e),easeOutBounce:ys,easeInOutBounce:e=>e<.5?(1-ys(1-2*e))/2:(1+ys(2*e-1))/2,steps:u$},So=Symbol.for("FluidValue.get"),ti=Symbol.for("FluidValue.observers"),wn=e=>!!(e&&e[So]),tn=e=>e&&e[So]?e[So]():e,wg=e=>e[ti]||null;function d$(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Oo(e,t){const n=e[ti];n&&n.forEach(r=>{d$(r,t)})}var Y1=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");f$(this,e)}},f$=(e,t)=>G1(e,So,t);function pi(e,t){if(e[So]){let n=e[ti];n||G1(e,ti,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Eo(e,t){const n=e[ti];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[ti]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var G1=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Ds=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,h$=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Tg=new RegExp(`(${Ds.source})(%|[a-z]+)`,"i"),p$=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,du=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Z1=e=>{const[t,n]=m$(e);if(!t||Rh())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const a=window.getComputedStyle(document.documentElement).getPropertyValue(n);return a||e}else{if(n&&du.test(n))return Z1(n);if(n)return n}return e},m$=e=>{const t=du.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Hl,g$=(e,t,n,r,a)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${a})`,K1=e=>{Hl||(Hl=Rr?new RegExp(`(${Object.keys(Rr).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(i=>tn(i).replace(du,Z1).replace(h$,yg).replace(Hl,yg)),n=t.map(i=>i.match(Ds).map(Number)),a=n[0].map((i,o)=>n.map(s=>{if(!(o in s))throw Error('The arity of each "output" value must be equal');return s[o]})).map(i=>ko({...e,output:i}));return i=>{var c;const o=!Tg.test(t[0])&&((c=t.find(u=>Tg.test(u)))==null?void 0:c.replace(Ds,""));let s=0;return t[0].replace(Ds,()=>`${a[s++](i)}${o||""}`).replace(p$,g$)}},Ph="react-spring: ",X1=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${Ph}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},v$=X1(console.warn);function y$(){v$(`${Ph}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var b$=X1(console.warn);function x$(){b$(`${Ph}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function fu(e){return ee.str(e)&&(e[0]=="#"||/\d/.test(e)||!Rh()&&du.test(e)||e in(Rr||{}))}var Kr=Rh()?p.useEffect:p.useLayoutEffect,_$=()=>{const e=p.useRef(!1);return Kr(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function Dh(){const e=p.useState()[1],t=_$();return()=>{t.current&&e(Math.random())}}function w$(e,t){const[n]=p.useState(()=>({inputs:t,result:e()})),r=p.useRef(),a=r.current;let i=a;return i?t&&i.inputs&&T$(t,i.inputs)||(i={inputs:t,result:e()}):i=n,p.useEffect(()=>{r.current=i,a==n&&(n.inputs=n.result=void 0)},[i]),i.result}function T$(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var Ih=e=>p.useEffect(e,C$),C$=[];function nf(e){const t=p.useRef();return p.useEffect(()=>{t.current=e}),t.current}var $o=Symbol.for("Animated:node"),k$=e=>!!e&&e[$o]===e,zn=e=>e&&e[$o],Nh=(e,t)=>qE(e,$o,t),hu=e=>e&&e[$o]&&e[$o].getPayload(),J1=class{constructor(){Nh(this,this)}getPayload(){return this.payload||[]}},Qo=class extends J1{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,ee.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Qo(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return ee.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,ee.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Mo=class extends Qo{constructor(e){super(0),this._string=null,this._toString=ko({output:[e,e]})}static create(e){return new Mo(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(ee.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=ko({output:[this.getValue(),e]})),this._value=0,super.reset()}},fc={dependencies:null},pu=class extends J1{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Kn(this.source,(n,r)=>{k$(n)?t[r]=n.getValue(e):wn(n)?t[r]=tn(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Ce(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return Kn(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){fc.dependencies&&wn(e)&&fc.dependencies.add(e);const t=hu(e);t&&Ce(t,n=>this.add(n))}},Q1=class extends pu{constructor(e){super(e)}static create(e){return new Q1(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((n,r)=>n.setValue(e[r])).some(Boolean):(super.setValue(e.map(S$)),!0)}};function S$(e){return(fu(e)?Mo:Qo).create(e)}function rf(e){const t=zn(e);return t?t.constructor:ee.arr(e)?Q1:fu(e)?Mo:Qo}var Cg=(e,t)=>{const n=!ee.fun(e)||e.prototype&&e.prototype.isReactComponent;return p.forwardRef((r,a)=>{const i=p.useRef(null),o=n&&p.useCallback(g=>{i.current=$$(a,g)},[a]),[s,c]=E$(r,t),u=Dh(),l=()=>{const g=i.current;if(n&&!g)return;(g?t.applyAnimatedValues(g,s.getValue(!0)):!1)===!1&&u()},d=new O$(l,c),f=p.useRef();Kr(()=>(f.current=d,Ce(c,g=>pi(g,d)),()=>{f.current&&(Ce(f.current.deps,g=>Eo(g,f.current)),Se.cancel(f.current.update))})),p.useEffect(l,[]),Ih(()=>()=>{const g=f.current;Ce(g.deps,v=>Eo(v,g))});const h=t.getComponentProps(s.getValue());return ie.createElement(e,{...h,ref:o})})},O$=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&Se.write(this.update)}};function E$(e,t){const n=new Set;return fc.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new pu(e),fc.dependencies=null,[e,n]}function $$(e,t){return e&&(ee.fun(e)?e(t):e.current=t),t}var kg=Symbol.for("AnimatedComponent"),M$=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=a=>new pu(a),getComponentProps:r=a=>a}={})=>{const a={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=o=>{const s=Sg(o)||"Anonymous";return ee.str(o)?o=i[o]||(i[o]=Cg(o,a)):o=o[kg]||(o[kg]=Cg(o,a)),o.displayName=`Animated(${s})`,o};return Kn(e,(o,s)=>{ee.arr(e)&&(s=Sg(o)),i[s]=i(o)}),{animated:i}},Sg=e=>ee.str(e)?e:e&&ee.str(e.displayName)?e.displayName:ee.fun(e)&&e.name||null;function nn(e,...t){return ee.fun(e)?e(...t):e}var no=(e,t)=>e===!0||!!(t&&e&&(ee.fun(e)?e(t):Zt(e).includes(t))),ex=(e,t)=>ee.obj(e)?t&&e[t]:e,tx=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,R$=e=>e,mu=(e,t=R$)=>{let n=A$;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const a of n){const i=t(e[a],a);ee.und(i)||(r[a]=i)}return r},A$=["config","onProps","onStart","onChange","onPause","onResume","onRest"],j$={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function P$(e){const t={};let n=0;if(Kn(e,(r,a)=>{j$[a]||(t[a]=r,n++)}),n)return t}function Fh(e){const t=P$(e);if(t){const n={to:t};return Kn(e,(r,a)=>a in t||(n[a]=r)),n}return{...e}}function Ro(e){return e=tn(e),ee.arr(e)?e.map(Ro):fu(e)?Fn.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function nx(e){for(const t in e)return!0;return!1}function af(e){return ee.fun(e)||ee.arr(e)&&ee.obj(e[0])}function of(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function rx(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var Lh={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},sf={...Lh.default,mass:1,damping:1,easing:l$.linear,clamp:!1},D$=class{constructor(){this.velocity=0,Object.assign(this,sf)}};function I$(e,t,n){n&&(n={...n},Og(n,t),t={...n,...t}),Og(e,t),Object.assign(e,t);for(const o in sf)e[o]==null&&(e[o]=sf[o]);let{frequency:r,damping:a}=e;const{mass:i}=e;return ee.und(r)||(r<.01&&(r=.01),a<0&&(a=0),e.tension=Math.pow(2*Math.PI/r,2)*i,e.friction=4*Math.PI*a*i/r),e}function Og(e,t){if(!ee.und(t.decay))e.duration=void 0;else{const n=!ee.und(t.tension)||!ee.und(t.friction);(n||!ee.und(t.frequency)||!ee.und(t.damping)||!ee.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var Eg=[],N$=class{constructor(){this.changed=!1,this.values=Eg,this.toValues=null,this.fromValues=Eg,this.config=new D$,this.immediate=!1}};function ax(e,{key:t,props:n,defaultProps:r,state:a,actions:i}){return new Promise((o,s)=>{let c,u,l=no(n.cancel??(r==null?void 0:r.cancel),t);if(l)h();else{ee.und(n.pause)||(a.paused=no(n.pause,t));let g=r==null?void 0:r.pause;g!==!0&&(g=a.paused||no(g,t)),c=nn(n.delay||0,t),g?(a.resumeQueue.add(f),i.pause()):(i.resume(),f())}function d(){a.resumeQueue.add(f),a.timeouts.delete(u),u.cancel(),c=u.time-Se.now()}function f(){c>0&&!Fn.skipAnimation?(a.delayed=!0,u=Se.setTimeout(h,c),a.pauseQueue.add(d),a.timeouts.add(u)):h()}function h(){a.delayed&&(a.delayed=!1),a.pauseQueue.delete(d),a.timeouts.delete(u),e<=(a.cancelId||0)&&(l=!0);try{i.start({...n,callId:e,cancel:l},o)}catch(g){s(g)}}})}var Uh=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?za(e.get()):t.every(n=>n.noop)?ix(e.get()):Mn(e.get(),t.every(n=>n.finished)),ix=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Mn=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),za=e=>({value:e,cancelled:!0,finished:!1});function ox(e,t,n,r){const{callId:a,parentId:i,onRest:o}=t,{asyncTo:s,promise:c}=n;return!i&&e===s&&!t.reset?c:n.promise=(async()=>{n.asyncId=a,n.asyncTo=e;const u=mu(t,(m,_)=>_==="onRest"?void 0:m);let l,d;const f=new Promise((m,_)=>(l=m,d=_)),h=m=>{const _=a<=(n.cancelId||0)&&za(r)||a!==n.asyncId&&Mn(r,!1);if(_)throw m.result=_,d(m),m},g=(m,_)=>{const w=new $g,b=new Mg;return(async()=>{if(Fn.skipAnimation)throw Ao(n),b.result=Mn(r,!1),d(b),b;h(w);const T=ee.obj(m)?{...m}:{..._,to:m};T.parentId=a,Kn(u,(C,$)=>{ee.und(T[$])&&(T[$]=C)});const x=await r.start(T);return h(w),n.paused&&await new Promise(C=>{n.resumeQueue.add(C)}),x})()};let v;if(Fn.skipAnimation)return Ao(n),Mn(r,!1);try{let m;ee.arr(e)?m=(async _=>{for(const w of _)await g(w)})(e):m=Promise.resolve(e(g,r.stop.bind(r))),await Promise.all([m.then(l),f]),v=Mn(r.get(),!0,!1)}catch(m){if(m instanceof $g)v=m.result;else if(m instanceof Mg)v=m.result;else throw m}finally{a==n.asyncId&&(n.asyncId=i,n.asyncTo=i?s:void 0,n.promise=i?c:void 0)}return ee.fun(o)&&Se.batchedUpdates(()=>{o(v,r,r.item)}),v})()}function Ao(e,t){eo(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var $g=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},Mg=class extends Error{constructor(){super("SkipAnimationSignal")}},cf=e=>e instanceof Wh,F$=1,Wh=class extends Y1{constructor(){super(...arguments),this.id=F$++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=zn(this);return e&&e.getValue()}to(...e){return Fn.to(this,e)}interpolate(...e){return y$(),Fn.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Oo(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||uu.sort(this),Oo(this,{type:"priority",parent:this,priority:e})}},ha=Symbol.for("SpringPhase"),sx=1,uf=2,lf=4,Vl=e=>(e[ha]&sx)>0,wr=e=>(e[ha]&uf)>0,Ii=e=>(e[ha]&lf)>0,Rg=(e,t)=>t?e[ha]|=uf|sx:e[ha]&=~uf,Ag=(e,t)=>t?e[ha]|=lf:e[ha]&=~lf,L$=class extends Wh{constructor(e,t){if(super(),this.animation=new N$,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!ee.und(e)||!ee.und(t)){const n=ee.obj(e)?{...e}:{...t,from:e};ee.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(wr(this)||this._state.asyncTo)||Ii(this)}get goal(){return tn(this.animation.to)}get velocity(){const e=zn(this);return e instanceof Qo?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return Vl(this)}get isAnimating(){return wr(this)}get isPaused(){return Ii(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:a}=r;const{config:i}=r,o=hu(r.to);!o&&wn(r.to)&&(a=Zt(tn(r.to))),r.values.forEach((u,l)=>{if(u.done)return;const d=u.constructor==Mo?1:o?o[l].lastPosition:a[l];let f=r.immediate,h=d;if(!f){if(h=u.lastPosition,i.tension<=0){u.done=!0;return}let g=u.elapsedTime+=e;const v=r.fromValues[l],m=u.v0!=null?u.v0:u.v0=ee.arr(i.velocity)?i.velocity[l]:i.velocity;let _;const w=i.precision||(v==d?.005:Math.min(1,Math.abs(d-v)*.001));if(ee.und(i.duration))if(i.decay){const b=i.decay===!0?.998:i.decay,T=Math.exp(-(1-b)*g);h=v+m/(1-b)*(1-T),f=Math.abs(u.lastPosition-h)<=w,_=m*T}else{_=u.lastVelocity==null?m:u.lastVelocity;const b=i.restVelocity||w/10,T=i.clamp?0:i.bounce,x=!ee.und(T),C=v==d?u.v0>0:v<d;let $,A=!1;const D=1,j=Math.ceil(e/D);for(let E=0;E<j&&($=Math.abs(_)>b,!(!$&&(f=Math.abs(d-h)<=w,f)));++E){x&&(A=h==d||h>d==C,A&&(_=-_*T,h=d));const F=-i.tension*1e-6*(h-d),M=-i.friction*.001*_,R=(F+M)/i.mass;_=_+R*D,h=h+_*D}}else{let b=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,u.durationProgress>0&&(u.elapsedTime=i.duration*u.durationProgress,g=u.elapsedTime+=e)),b=(i.progress||0)+g/this._memoizedDuration,b=b>1?1:b<0?0:b,u.durationProgress=b),h=v+i.easing(b)*(d-v),_=(h-u.lastPosition)/e,f=b==1}u.lastVelocity=_,Number.isNaN(h)&&(console.warn("Got NaN while animating:",this),f=!0)}o&&!o[l].done&&(f=!1),f?u.done=!0:t=!1,u.setValue(h,i.round)&&(n=!0)});const s=zn(this),c=s.getValue();if(t){const u=tn(r.to);(c!==u||n)&&!i.decay?(s.setValue(u),this._onChange(u)):n&&i.decay&&this._onChange(c),this._stop()}else n&&this._onChange(c)}set(e){return Se.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(wr(this)){const{to:e,config:t}=this.animation;Se.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return ee.und(e)?(n=this.queue||[],this.queue=[]):n=[ee.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>Uh(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Ao(this._state,e&&this._lastCallId),Se.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=ee.obj(n)?n[t]:n,(n==null||af(n))&&(n=void 0),r=ee.obj(r)?r[t]:r,r==null&&(r=void 0);const a={to:n,from:r};return Vl(this)||(e.reverse&&([n,r]=[r,n]),r=tn(r),ee.und(r)?zn(this)||this._set(n):this._set(r)),a}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,mu(e,(o,s)=>/^on/.test(s)?ex(o,n):o)),Pg(this,e,"onProps"),Fi(this,"onProps",e,this);const a=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const i=this._state;return ax(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{Ii(this)||(Ag(this,!0),Zi(i.pauseQueue),Fi(this,"onPause",Mn(this,Ni(this,this.animation.to)),this))},resume:()=>{Ii(this)&&(Ag(this,!1),wr(this)&&this._resume(),Zi(i.resumeQueue),Fi(this,"onResume",Mn(this,Ni(this,this.animation.to)),this))},start:this._merge.bind(this,a)}}).then(o=>{if(e.loop&&o.finished&&!(t&&o.noop)){const s=cx(e);if(s)return this._update(s,!0)}return o})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(za(this));const r=!ee.und(e.to),a=!ee.und(e.from);if(r||a)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(za(this));const{key:i,defaultProps:o,animation:s}=this,{to:c,from:u}=s;let{to:l=c,from:d=u}=e;a&&!r&&(!t.default||ee.und(l))&&(l=d),t.reverse&&([l,d]=[d,l]);const f=!rr(d,u);f&&(s.from=d),d=tn(d);const h=!rr(l,c);h&&this._focus(l);const g=af(t.to),{config:v}=s,{decay:m,velocity:_}=v;(r||a)&&(v.velocity=0),t.config&&!g&&I$(v,nn(t.config,i),t.config!==o.config?nn(o.config,i):void 0);let w=zn(this);if(!w||ee.und(l))return n(Mn(this,!0));const b=ee.und(t.reset)?a&&!t.default:!ee.und(d)&&no(t.reset,i),T=b?d:this.get(),x=Ro(l),C=ee.num(x)||ee.arr(x)||fu(x),$=!g&&(!C||no(o.immediate||t.immediate,i));if(h){const E=rf(l);if(E!==w.constructor)if($)w=this._set(x);else throw Error(`Cannot animate between ${w.constructor.name} and ${E.name}, as the "to" prop suggests`)}const A=w.constructor;let D=wn(l),j=!1;if(!D){const E=b||!Vl(this)&&f;(h||E)&&(j=rr(Ro(T),x),D=!j),(!rr(s.immediate,$)&&!$||!rr(v.decay,m)||!rr(v.velocity,_))&&(D=!0)}if(j&&wr(this)&&(s.changed&&!b?D=!0:D||this._stop(c)),!g&&((D||wn(c))&&(s.values=w.getPayload(),s.toValues=wn(l)?null:A==Mo?[1]:Zt(x)),s.immediate!=$&&(s.immediate=$,!$&&!b&&this._set(c)),D)){const{onRest:E}=s;Ce(W$,M=>Pg(this,t,M));const F=Mn(this,Ni(this,c));Zi(this._pendingCalls,F),this._pendingCalls.add(n),s.changed&&Se.batchedUpdates(()=>{var M;s.changed=!b,E==null||E(F,this),b?nn(o.onRest,F):(M=s.onStart)==null||M.call(s,F,this)})}b&&this._set(T),g?n(ox(t.to,t,this._state,this)):D?this._start():wr(this)&&!h?this._pendingCalls.add(n):n(ix(T))}_focus(e){const t=this.animation;e!==t.to&&(wg(this)&&this._detach(),t.to=e,wg(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;wn(t)&&(pi(t,this),cf(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;wn(e)&&Eo(e,this)}_set(e,t=!0){const n=tn(e);if(!ee.und(n)){const r=zn(this);if(!r||!rr(n,r.getValue())){const a=rf(n);!r||r.constructor!=a?Nh(this,a.create(n)):r.setValue(n),r&&Se.batchedUpdates(()=>{this._onChange(n,t)})}}return zn(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Fi(this,"onStart",Mn(this,Ni(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),nn(this.animation.onChange,e,this)),nn(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;zn(this).reset(tn(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),wr(this)||(Rg(this,!0),Ii(this)||this._resume())}_resume(){Fn.skipAnimation?this.finish():uu.start(this)}_stop(e,t){if(wr(this)){Rg(this,!1);const n=this.animation;Ce(n.values,a=>{a.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Oo(this,{type:"idle",parent:this});const r=t?za(this.get()):Mn(this.get(),Ni(this,e??n.to));Zi(this._pendingCalls,r),n.changed&&(n.changed=!1,Fi(this,"onRest",r,this))}}};function Ni(e,t){const n=Ro(t),r=Ro(e.get());return rr(r,n)}function cx(e,t=e.loop,n=e.to){const r=nn(t);if(r){const a=r!==!0&&Fh(r),i=(a||e).reverse,o=!a||a.reset;return jo({...e,loop:t,default:!1,pause:void 0,to:!i||af(n)?n:void 0,from:o?e.from:void 0,reset:o,...a})}}function jo(e){const{to:t,from:n}=e=Fh(e),r=new Set;return ee.obj(t)&&jg(t,r),ee.obj(n)&&jg(n,r),e.keys=r.size?Array.from(r):null,e}function U$(e){const t=jo(e);return ee.und(t.default)&&(t.default=mu(t)),t}function jg(e,t){Kn(e,(n,r)=>n!=null&&t.add(r))}var W$=["onStart","onRest","onChange","onPause","onResume"];function Pg(e,t,n){e.animation[n]=t[n]!==tx(t,n)?ex(t[n],e.key):void 0}function Fi(e,t,...n){var r,a,i,o;(a=(r=e.animation)[t])==null||a.call(r,...n),(o=(i=e.defaultProps)[t])==null||o.call(i,...n)}var B$=["onStart","onChange","onRest"],z$=1,ux=class{constructor(e,t){this.id=z$++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];ee.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(jo(e)),this}start(e){let{queue:t}=this;return e?t=Zt(e).map(jo):this.queue=[],this._flush?this._flush(this,t):(px(this,t),df(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Ce(Zt(t),r=>n[r].stop(!!e))}else Ao(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(ee.und(e))this.start({pause:!0});else{const t=this.springs;Ce(Zt(e),n=>t[n].pause())}return this}resume(e){if(ee.und(e))this.start({pause:!1});else{const t=this.springs;Ce(Zt(e),n=>t[n].resume())}return this}each(e){Kn(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,a=this._changed.size>0;(r&&!this._started||a&&!this._started)&&(this._started=!0,eo(e,([s,c])=>{c.value=this.get(),s(c,this,this._item)}));const i=!r&&this._started,o=a||i&&n.size?this.get():null;a&&t.size&&eo(t,([s,c])=>{c.value=o,s(c,this,this._item)}),i&&(this._started=!1,eo(n,([s,c])=>{c.value=o,s(c,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;Se.onFrame(this._onFrame)}};function df(e,t){return Promise.all(t.map(n=>lx(e,n))).then(n=>Uh(e,n))}async function lx(e,t,n){const{keys:r,to:a,from:i,loop:o,onRest:s,onResolve:c}=t,u=ee.obj(t.default)&&t.default;o&&(t.loop=!1),a===!1&&(t.to=null),i===!1&&(t.from=null);const l=ee.arr(a)||ee.fun(a)?a:void 0;l?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):Ce(B$,v=>{const m=t[v];if(ee.fun(m)){const _=e._events[v];t[v]=({finished:w,cancelled:b})=>{const T=_.get(m);T?(w||(T.finished=!1),b&&(T.cancelled=!0)):_.set(m,{value:null,finished:w||!1,cancelled:b||!1})},u&&(u[v]=t[v])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,Zi(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const f=(r||Object.keys(e.springs)).map(v=>e.springs[v].start(t)),h=t.cancel===!0||tx(t,"cancel")===!0;(l||h&&d.asyncId)&&f.push(ax(++e._lastAsyncId,{props:t,state:d,actions:{pause:ef,resume:ef,start(v,m){h?(Ao(d,e._lastAsyncId),m(za(e))):(v.onRest=s,m(ox(l,v,d,e)))}}})),d.paused&&await new Promise(v=>{d.resumeQueue.add(v)});const g=Uh(e,await Promise.all(f));if(o&&g.finished&&!(n&&g.noop)){const v=cx(t,o,a);if(v)return px(e,[v]),lx(e,v,!0)}return c&&Se.batchedUpdates(()=>c(g,e,e.item)),g}function ff(e,t){const n={...e.springs};return t&&Ce(Zt(t),r=>{ee.und(r.keys)&&(r=jo(r)),ee.obj(r.to)||(r={...r,to:void 0}),hx(n,r,a=>fx(a))}),dx(e,n),n}function dx(e,t){Kn(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,pi(n,e))})}function fx(e,t){const n=new L$;return n.key=e,t&&pi(n,t),n}function hx(e,t,n){t.keys&&Ce(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function px(e,t){Ce(t,n=>{hx(e.springs,n,r=>fx(r,e))})}var es=({children:e,...t})=>{const n=p.useContext(hc),r=t.pause||!!n.pause,a=t.immediate||!!n.immediate;t=w$(()=>({pause:r,immediate:a}),[r,a]);const{Provider:i}=hc;return ie.createElement(i,{value:t},e)},hc=H$(es,{});es.Provider=hc.Provider;es.Consumer=hc.Consumer;function H$(e,t){return Object.assign(e,ie.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var mx=()=>{const e=[],t=function(r){x$();const a=[];return Ce(e,(i,o)=>{if(ee.und(r))a.push(i.start());else{const s=n(r,i,o);s&&a.push(i.start(s))}}),a};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const a=e.indexOf(r);~a&&e.splice(a,1)},t.pause=function(){return Ce(e,r=>r.pause(...arguments)),this},t.resume=function(){return Ce(e,r=>r.resume(...arguments)),this},t.set=function(r){Ce(e,(a,i)=>{const o=ee.fun(r)?r(i,a):r;o&&a.set(o)})},t.start=function(r){const a=[];return Ce(e,(i,o)=>{if(ee.und(r))a.push(i.start());else{const s=this._getProps(r,i,o);s&&a.push(i.start(s))}}),a},t.stop=function(){return Ce(e,r=>r.stop(...arguments)),this},t.update=function(r){return Ce(e,(a,i)=>a.update(this._getProps(r,a,i))),this};const n=function(r,a,i){return ee.fun(r)?r(i,a):r};return t._getProps=n,t};function V$(e,t,n){const r=ee.fun(t)&&t;r&&!n&&(n=[]);const a=p.useMemo(()=>r||arguments.length==3?mx():void 0,[]),i=p.useRef(0),o=Dh(),s=p.useMemo(()=>({ctrls:[],queue:[],flush(_,w){const b=ff(_,w);return i.current>0&&!s.queue.length&&!Object.keys(b).some(x=>!_.springs[x])?df(_,w):new Promise(x=>{dx(_,b),s.queue.push(()=>{x(df(_,w))}),o()})}}),[]),c=p.useRef([...s.ctrls]),u=[],l=nf(e)||0;p.useMemo(()=>{Ce(c.current.slice(e,l),_=>{of(_,a),_.stop(!0)}),c.current.length=e,d(l,e)},[e]),p.useMemo(()=>{d(0,Math.min(l,e))},n);function d(_,w){for(let b=_;b<w;b++){const T=c.current[b]||(c.current[b]=new ux(null,s.flush)),x=r?r(b,T):t[b];x&&(u[b]=U$(x))}}const f=c.current.map((_,w)=>ff(_,u[w])),h=p.useContext(es),g=nf(h),v=h!==g&&nx(h);Kr(()=>{i.current++,s.ctrls=c.current;const{queue:_}=s;_.length&&(s.queue=[],Ce(_,w=>w())),Ce(c.current,(w,b)=>{a==null||a.add(w),v&&w.start({default:h});const T=u[b];T&&(rx(w,T.ref),w.ref?w.queue.push(T):w.start(T))})}),Ih(()=>()=>{Ce(s.ctrls,_=>_.stop(!0))});const m=f.map(_=>({..._}));return a?[m,a]:m}function vr(e,t){const n=ee.fun(e),[[r],a]=V$(1,n?e:[e],n?[]:t);return n||arguments.length==2?[r,a]:r}function xa(e,t,n){const r=ee.fun(t)&&t,{reset:a,sort:i,trail:o=0,expires:s=!0,exitBeforeEnter:c=!1,onDestroyed:u,ref:l,config:d}=r?r():t,f=p.useMemo(()=>r||arguments.length==3?mx():void 0,[]),h=Zt(e),g=[],v=p.useRef(null),m=a?null:v.current;Kr(()=>{v.current=g}),Ih(()=>(Ce(g,R=>{f==null||f.add(R.ctrl),R.ctrl.ref=f}),()=>{Ce(v.current,R=>{R.expired&&clearTimeout(R.expirationId),of(R.ctrl,f),R.ctrl.stop(!0)})}));const _=Y$(h,r?r():t,m),w=a&&v.current||[];Kr(()=>Ce(w,({ctrl:R,item:I,key:U})=>{of(R,f),nn(u,I,U)}));const b=[];if(m&&Ce(m,(R,I)=>{R.expired?(clearTimeout(R.expirationId),w.push(R)):(I=b[I]=_.indexOf(R.key),~I&&(g[I]=R))}),Ce(h,(R,I)=>{g[I]||(g[I]={key:_[I],item:R,phase:"mount",ctrl:new ux},g[I].ctrl.item=R)}),b.length){let R=-1;const{leave:I}=r?r():t;Ce(b,(U,N)=>{const q=m[N];~U?(R=g.indexOf(q),g[R]={...q,item:h[U]}):I&&g.splice(++R,0,q)})}ee.fun(i)&&g.sort((R,I)=>i(R.item,I.item));let T=-o;const x=Dh(),C=mu(t),$=new Map,A=p.useRef(new Map),D=p.useRef(!1);Ce(g,(R,I)=>{const U=R.key,N=R.phase,q=r?r():t;let z,P;const B=nn(q.delay||0,U);if(N=="mount")z=q.enter,P="enter";else{const Q=_.indexOf(U)<0;if(N!="leave")if(Q)z=q.leave,P="leave";else if(z=q.update)P="update";else return;else if(!Q)z=q.enter,P="enter";else return}if(z=nn(z,R.item,I),z=ee.obj(z)?Fh(z):{to:z},!z.config){const Q=d||C.config;z.config=nn(Q,R.item,I,P)}T+=o;const Z={...C,delay:B+T,ref:l,immediate:q.immediate,reset:!1,...z};if(P=="enter"&&ee.und(Z.from)){const Q=r?r():t,G=ee.und(Q.initial)||m?Q.from:Q.initial;Z.from=nn(G,R.item,I)}const{onResolve:ne}=Z;Z.onResolve=Q=>{nn(ne,Q);const G=v.current,J=G.find(re=>re.key===U);if(J&&!(Q.cancelled&&J.phase!="update")&&J.ctrl.idle){const re=G.every(L=>L.ctrl.idle);if(J.phase=="leave"){const L=nn(s,J.item);if(L!==!1){const V=L===!0?0:L;if(J.expired=!0,!re&&V>0){V<=2147483647&&(J.expirationId=setTimeout(x,V));return}}}re&&G.some(L=>L.expired)&&(A.current.delete(J),c&&(D.current=!0),x())}};const Y=ff(R.ctrl,Z);P==="leave"&&c?A.current.set(R,{phase:P,springs:Y,payload:Z}):$.set(R,{phase:P,springs:Y,payload:Z})});const j=p.useContext(es),E=nf(j),F=j!==E&&nx(j);Kr(()=>{F&&Ce(g,R=>{R.ctrl.start({default:j})})},[j]),Ce($,(R,I)=>{if(A.current.size){const U=g.findIndex(N=>N.key===I.key);g.splice(U,1)}}),Kr(()=>{Ce(A.current.size?A.current:$,({phase:R,payload:I},U)=>{const{ctrl:N}=U;U.phase=R,f==null||f.add(N),F&&R=="enter"&&N.start({default:j}),I&&(rx(N,I.ref),(N.ref||f)&&!D.current?N.update(I):(N.start(I),D.current&&(D.current=!1)))})},a?void 0:n);const M=R=>ie.createElement(ie.Fragment,null,g.map((I,U)=>{const{springs:N}=$.get(I)||I.ctrl,q=R({...N},I.item,I,U);return q&&q.type?ie.createElement(q.type,{...q.props,key:ee.str(I.key)||ee.num(I.key)?I.key:I.ctrl.id,ref:q.ref}):q}));return f?[M,f]:M}var q$=1;function Y$(e,{key:t,keys:n=t},r){if(n===null){const a=new Set;return e.map(i=>{const o=r&&r.find(s=>s.item===i&&s.phase!=="leave"&&!a.has(s));return o?(a.add(o),o.key):q$++})}return ee.und(n)?e:ee.fun(n)?e.map(n):Zt(n)}var gx=class extends Wh{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=ko(...t);const n=this._get(),r=rf(n);Nh(this,r.create(n))}advance(e){const t=this._get(),n=this.get();rr(t,n)||(zn(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Dg(this._active)&&ql(this)}_get(){const e=ee.arr(this.source)?this.source.map(tn):Zt(tn(this.source));return this.calc(...e)}_start(){this.idle&&!Dg(this._active)&&(this.idle=!1,Ce(hu(this),e=>{e.done=!1}),Fn.skipAnimation?(Se.batchedUpdates(()=>this.advance()),ql(this)):uu.start(this))}_attach(){let e=1;Ce(Zt(this.source),t=>{wn(t)&&pi(t,this),cf(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){Ce(Zt(this.source),e=>{wn(e)&&Eo(e,this)}),this._active.clear(),ql(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=Zt(this.source).reduce((t,n)=>Math.max(t,(cf(n)?n.priority:0)+1),0))}};function G$(e){return e.idle!==!1}function Dg(e){return!e.size||Array.from(e).every(G$)}function ql(e){e.idle||(e.idle=!0,Ce(hu(e),t=>{t.done=!0}),Oo(e,{type:"idle",parent:e}))}var Nr=(e,...t)=>new gx(e,t);Fn.assign({createStringInterpolator:K1,to:(e,t)=>new gx(e,t)});var vx=/^--/;function Z$(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!vx.test(e)&&!(ro.hasOwnProperty(e)&&ro[e])?t+"px":(""+t).trim()}var Ig={};function K$(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{style:r,children:a,scrollTop:i,scrollLeft:o,viewBox:s,...c}=t,u=Object.values(c),l=Object.keys(c).map(d=>n||e.hasAttribute(d)?d:Ig[d]||(Ig[d]=d.replace(/([A-Z])/g,f=>"-"+f.toLowerCase())));a!==void 0&&(e.textContent=a);for(const d in r)if(r.hasOwnProperty(d)){const f=Z$(d,r[d]);vx.test(d)?e.style.setProperty(d,f):e.style[d]=f}l.forEach((d,f)=>{e.setAttribute(d,u[f])}),i!==void 0&&(e.scrollTop=i),o!==void 0&&(e.scrollLeft=o),s!==void 0&&e.setAttribute("viewBox",s)}var ro={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},X$=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),J$=["Webkit","Ms","Moz","O"];ro=Object.keys(ro).reduce((e,t)=>(J$.forEach(n=>e[X$(n,t)]=e[t]),e),ro);var Q$=/^(matrix|translate|scale|rotate|skew)/,e8=/^(translate)/,t8=/^(rotate|skew)/,Yl=(e,t)=>ee.num(e)&&e!==0?e+t:e,Is=(e,t)=>ee.arr(e)?e.every(n=>Is(n,t)):ee.num(e)?e===t:parseFloat(e)===t,n8=class extends pu{constructor({x:e,y:t,z:n,...r}){const a=[],i=[];(e||t||n)&&(a.push([e||0,t||0,n||0]),i.push(o=>[`translate3d(${o.map(s=>Yl(s,"px")).join(",")})`,Is(o,0)])),Kn(r,(o,s)=>{if(s==="transform")a.push([o||""]),i.push(c=>[c,c===""]);else if(Q$.test(s)){if(delete r[s],ee.und(o))return;const c=e8.test(s)?"px":t8.test(s)?"deg":"";a.push(Zt(o)),i.push(s==="rotate3d"?([u,l,d,f])=>[`rotate3d(${u},${l},${d},${Yl(f,c)})`,Is(f,0)]:u=>[`${s}(${u.map(l=>Yl(l,c)).join(",")})`,Is(u,s.startsWith("scale")?1:0)])}}),a.length&&(r.transform=new r8(a,i)),super(r)}},r8=class extends Y1{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Ce(this.inputs,(n,r)=>{const a=tn(n[0]),[i,o]=this.transforms[r](ee.arr(a)?a:n.map(tn));e+=" "+i,t=t&&o}),t?"none":e}observerAdded(e){e==1&&Ce(this.inputs,t=>Ce(t,n=>wn(n)&&pi(n,this)))}observerRemoved(e){e==0&&Ce(this.inputs,t=>Ce(t,n=>wn(n)&&Eo(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),Oo(this,e)}},a8=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];Fn.assign({batchedUpdates:Or.unstable_batchedUpdates,createStringInterpolator:K1,colors:XE});var i8=M$(a8,{applyAnimatedValues:K$,createAnimatedStyle:e=>new n8(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Qe=i8.animated;function pa(){return pa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pa.apply(this,arguments)}var o8={pointerEvents:"none",position:"absolute",zIndex:10,top:0,left:0},Ng=function(e,t){return"translate("+e+"px, "+t+"px)"},yx=p.memo(function(e){var t,n=e.position,r=e.anchor,a=e.children,i=lt(),o=un(),s=o.animate,c=o.config,u=c_(),l=u[0],d=u[1],f=p.useRef(!1),h=void 0,g=!1,v=d.width>0&&d.height>0,m=Math.round(n[0]),_=Math.round(n[1]);v&&(r==="top"?(m-=d.width/2,_-=d.height+14):r==="right"?(m+=14,_-=d.height/2):r==="bottom"?(m-=d.width/2,_+=14):r==="left"?(m-=d.width+14,_-=d.height/2):r==="center"&&(m-=d.width/2,_-=d.height/2),h={transform:Ng(m,_)},f.current||(g=!0),f.current=[m,_]);var w=vr({to:h,config:c,immediate:!s||g}),b=pa({},o8,i.tooltip.wrapper,{transform:(t=w.transform)!=null?t:Ng(m,_),opacity:w.transform?1:0});return y.jsx(Qe.div,{ref:l,style:b,children:a})});yx.displayName="TooltipWrapper";var s8=p.memo(function(e){var t=e.size,n=t===void 0?12:t,r=e.color,a=e.style;return y.jsx("span",{style:pa({display:"block",width:n,height:n,background:r},a===void 0?{}:a)})}),bx=p.memo(function(e){var t,n=e.id,r=e.value,a=e.format,i=e.enableChip,o=i!==void 0&&i,s=e.color,c=e.renderContent,u=lt(),l=hl(a);if(typeof c=="function")t=c();else{var d=r;l!==void 0&&d!==void 0&&(d=l(d)),t=y.jsxs("div",{style:u.tooltip.basic,children:[o&&y.jsx(s8,{color:s,style:u.tooltip.chip}),d!==void 0?y.jsxs("span",{children:[n,": ",y.jsx("strong",{children:""+d})]}):n]})}return y.jsx("div",{style:u.tooltip.container,children:t})}),c8={width:"100%",borderCollapse:"collapse"},u8=p.memo(function(e){var t,n=e.title,r=e.rows,a=r===void 0?[]:r,i=e.renderContent,o=lt();return a.length?(t=typeof i=="function"?i():y.jsxs("div",{children:[n&&n,y.jsx("table",{style:pa({},c8,o.tooltip.table),children:y.jsx("tbody",{children:a.map(function(s,c){return y.jsx("tr",{children:s.map(function(u,l){return y.jsx("td",{style:o.tooltip.tableCell,children:u},l)})},c)})})})]}),y.jsx("div",{style:o.tooltip.container,children:t})):null});u8.displayName="TableTooltip";var hf=p.memo(function(e){var t=e.x0,n=e.x1,r=e.y0,a=e.y1,i=lt(),o=un(),s=o.animate,c=o.config,u=p.useMemo(function(){return pa({},i.crosshair.line,{pointerEvents:"none"})},[i.crosshair.line]),l=vr({x1:t,x2:n,y1:r,y2:a,config:c,immediate:!s});return y.jsx(Qe.line,pa({},l,{fill:"none",style:u}))});hf.displayName="CrosshairLine";var l8=p.memo(function(e){var t,n,r=e.width,a=e.height,i=e.type,o=e.x,s=e.y;return i==="cross"?(t={x0:o,x1:o,y0:0,y1:a},n={x0:0,x1:r,y0:s,y1:s}):i==="top-left"?(t={x0:o,x1:o,y0:0,y1:s},n={x0:0,x1:o,y0:s,y1:s}):i==="top"?t={x0:o,x1:o,y0:0,y1:s}:i==="top-right"?(t={x0:o,x1:o,y0:0,y1:s},n={x0:o,x1:r,y0:s,y1:s}):i==="right"?n={x0:o,x1:r,y0:s,y1:s}:i==="bottom-right"?(t={x0:o,x1:o,y0:s,y1:a},n={x0:o,x1:r,y0:s,y1:s}):i==="bottom"?t={x0:o,x1:o,y0:s,y1:a}:i==="bottom-left"?(t={x0:o,x1:o,y0:s,y1:a},n={x0:0,x1:o,y0:s,y1:s}):i==="left"?n={x0:0,x1:o,y0:s,y1:s}:i==="x"?t={x0:o,x1:o,y0:0,y1:a}:i==="y"&&(n={x0:0,x1:r,y0:s,y1:s}),y.jsxs(y.Fragment,{children:[t&&y.jsx(hf,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}),n&&y.jsx(hf,{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1})]})});l8.displayName="Crosshair";var xx=p.createContext({showTooltipAt:function(){},showTooltipFromEvent:function(){},hideTooltip:function(){}}),pf={isVisible:!1,position:[null,null],content:null,anchor:null},_x=p.createContext(pf),d8=function(e){var t=p.useState(pf),n=t[0],r=t[1],a=p.useCallback(function(s,c,u){var l=c[0],d=c[1];u===void 0&&(u="top"),r({isVisible:!0,position:[l,d],anchor:u,content:s})},[r]),i=p.useCallback(function(s,c,u){u===void 0&&(u="top");var l=e.current.getBoundingClientRect(),d=e.current.offsetWidth,f=d===l.width?1:d/l.width,h="touches"in c?c.touches[0]:c,g=h.clientX,v=h.clientY,m=(g-l.left)*f,_=(v-l.top)*f;u!=="left"&&u!=="right"||(u=m<l.width/2?"right":"left"),r({isVisible:!0,position:[m,_],anchor:u,content:s})},[e,r]),o=p.useCallback(function(){r(pf)},[r]);return{actions:p.useMemo(function(){return{showTooltipAt:a,showTooltipFromEvent:i,hideTooltip:o}},[a,i,o]),state:n}},Bh=function(){var e=p.useContext(xx);if(e===void 0)throw new Error("useTooltip must be used within a TooltipProvider");return e},f8=function(){var e=p.useContext(_x);if(e===void 0)throw new Error("useTooltipState must be used within a TooltipProvider");return e},h8=function(e){return e.isVisible},p8=function(){var e=f8();return h8(e)?y.jsx(yx,{position:e.position,anchor:e.anchor,children:e.content}):null},m8=function(e){var t=e.container,n=e.children,r=d8(t),a=r.actions,i=r.state;return y.jsx(xx.Provider,{value:a,children:y.jsx(_x.Provider,{value:i,children:n})})};function g8(){this.__data__=[],this.size=0}var v8=g8;function y8(e,t){return e===t||e!==e&&t!==t}var ts=y8,b8=ts;function x8(e,t){for(var n=e.length;n--;)if(b8(e[n][0],t))return n;return-1}var gu=x8,_8=gu,w8=Array.prototype,T8=w8.splice;function C8(e){var t=this.__data__,n=_8(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():T8.call(t,n,1),--this.size,!0}var k8=C8,S8=gu;function O8(e){var t=this.__data__,n=S8(t,e);return n<0?void 0:t[n][1]}var E8=O8,$8=gu;function M8(e){return $8(this.__data__,e)>-1}var R8=M8,A8=gu;function j8(e,t){var n=this.__data__,r=A8(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var P8=j8,D8=v8,I8=k8,N8=E8,F8=R8,L8=P8;function mi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}mi.prototype.clear=D8;mi.prototype.delete=I8;mi.prototype.get=N8;mi.prototype.has=F8;mi.prototype.set=L8;var vu=mi,U8=vu;function W8(){this.__data__=new U8,this.size=0}var B8=W8;function z8(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var H8=z8;function V8(e){return this.__data__.get(e)}var q8=V8;function Y8(e){return this.__data__.has(e)}var G8=Y8,Z8=typeof ss=="object"&&ss&&ss.Object===Object&&ss,wx=Z8,K8=wx,X8=typeof self=="object"&&self&&self.Object===Object&&self,J8=K8||X8||Function("return this")(),Qn=J8,Q8=Qn,eM=Q8.Symbol,gi=eM,Fg=gi,Tx=Object.prototype,tM=Tx.hasOwnProperty,nM=Tx.toString,Li=Fg?Fg.toStringTag:void 0;function rM(e){var t=tM.call(e,Li),n=e[Li];try{e[Li]=void 0;var r=!0}catch{}var a=nM.call(e);return r&&(t?e[Li]=n:delete e[Li]),a}var aM=rM,iM=Object.prototype,oM=iM.toString;function sM(e){return oM.call(e)}var cM=sM,Lg=gi,uM=aM,lM=cM,dM="[object Null]",fM="[object Undefined]",Ug=Lg?Lg.toStringTag:void 0;function hM(e){return e==null?e===void 0?fM:dM:Ug&&Ug in Object(e)?uM(e):lM(e)}var Br=hM;function pM(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var er=pM,mM=Br,gM=er,vM="[object AsyncFunction]",yM="[object Function]",bM="[object GeneratorFunction]",xM="[object Proxy]";function _M(e){if(!gM(e))return!1;var t=mM(e);return t==yM||t==bM||t==vM||t==xM}var yu=_M;const Cx=Mt(yu);var wM=Qn,TM=wM["__core-js_shared__"],CM=TM,Gl=CM,Wg=function(){var e=/[^.]+$/.exec(Gl&&Gl.keys&&Gl.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function kM(e){return!!Wg&&Wg in e}var SM=kM,OM=Function.prototype,EM=OM.toString;function $M(e){if(e!=null){try{return EM.call(e)}catch{}try{return e+""}catch{}}return""}var kx=$M,MM=yu,RM=SM,AM=er,jM=kx,PM=/[\\^$.*+?()[\]{}|]/g,DM=/^\[object .+?Constructor\]$/,IM=Function.prototype,NM=Object.prototype,FM=IM.toString,LM=NM.hasOwnProperty,UM=RegExp("^"+FM.call(LM).replace(PM,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function WM(e){if(!AM(e)||RM(e))return!1;var t=MM(e)?UM:DM;return t.test(jM(e))}var BM=WM;function zM(e,t){return e==null?void 0:e[t]}var HM=zM,VM=BM,qM=HM;function YM(e,t){var n=qM(e,t);return VM(n)?n:void 0}var _a=YM,GM=_a,ZM=Qn,KM=GM(ZM,"Map"),zh=KM,XM=_a,JM=XM(Object,"create"),bu=JM,Bg=bu;function QM(){this.__data__=Bg?Bg(null):{},this.size=0}var e7=QM;function t7(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var n7=t7,r7=bu,a7="__lodash_hash_undefined__",i7=Object.prototype,o7=i7.hasOwnProperty;function s7(e){var t=this.__data__;if(r7){var n=t[e];return n===a7?void 0:n}return o7.call(t,e)?t[e]:void 0}var c7=s7,u7=bu,l7=Object.prototype,d7=l7.hasOwnProperty;function f7(e){var t=this.__data__;return u7?t[e]!==void 0:d7.call(t,e)}var h7=f7,p7=bu,m7="__lodash_hash_undefined__";function g7(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=p7&&t===void 0?m7:t,this}var v7=g7,y7=e7,b7=n7,x7=c7,_7=h7,w7=v7;function vi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}vi.prototype.clear=y7;vi.prototype.delete=b7;vi.prototype.get=x7;vi.prototype.has=_7;vi.prototype.set=w7;var T7=vi,zg=T7,C7=vu,k7=zh;function S7(){this.size=0,this.__data__={hash:new zg,map:new(k7||C7),string:new zg}}var O7=S7;function E7(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var $7=E7,M7=$7;function R7(e,t){var n=e.__data__;return M7(t)?n[typeof t=="string"?"string":"hash"]:n.map}var xu=R7,A7=xu;function j7(e){var t=A7(this,e).delete(e);return this.size-=t?1:0,t}var P7=j7,D7=xu;function I7(e){return D7(this,e).get(e)}var N7=I7,F7=xu;function L7(e){return F7(this,e).has(e)}var U7=L7,W7=xu;function B7(e,t){var n=W7(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var z7=B7,H7=O7,V7=P7,q7=N7,Y7=U7,G7=z7;function yi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}yi.prototype.clear=H7;yi.prototype.delete=V7;yi.prototype.get=q7;yi.prototype.has=Y7;yi.prototype.set=G7;var Hh=yi,Z7=vu,K7=zh,X7=Hh,J7=200;function Q7(e,t){var n=this.__data__;if(n instanceof Z7){var r=n.__data__;if(!K7||r.length<J7-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new X7(r)}return n.set(e,t),this.size=n.size,this}var eR=Q7,tR=vu,nR=B8,rR=H8,aR=q8,iR=G8,oR=eR;function bi(e){var t=this.__data__=new tR(e);this.size=t.size}bi.prototype.clear=nR;bi.prototype.delete=rR;bi.prototype.get=aR;bi.prototype.has=iR;bi.prototype.set=oR;var _u=bi,sR=_a,cR=function(){try{var e=sR(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Sx=cR,Hg=Sx;function uR(e,t,n){t=="__proto__"&&Hg?Hg(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Vh=uR,lR=Vh,dR=ts;function fR(e,t,n){(n!==void 0&&!dR(e[t],n)||n===void 0&&!(t in e))&&lR(e,t,n)}var Ox=fR;function hR(e){return function(t,n,r){for(var a=-1,i=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++a];if(n(i[c],c,i)===!1)break}return t}}var pR=hR,mR=pR,gR=mR(),Ex=gR,pc={exports:{}};pc.exports;(function(e,t){var n=Qn,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===r,o=i?n.Buffer:void 0,s=o?o.allocUnsafe:void 0;function c(u,l){if(l)return u.slice();var d=u.length,f=s?s(d):new u.constructor(d);return u.copy(f),f}e.exports=c})(pc,pc.exports);var $x=pc.exports,vR=Qn,yR=vR.Uint8Array,Mx=yR,Vg=Mx;function bR(e){var t=new e.constructor(e.byteLength);return new Vg(t).set(new Vg(e)),t}var qh=bR,xR=qh;function _R(e,t){var n=t?xR(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var Rx=_R;function wR(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var Ax=wR,TR=er,qg=Object.create,CR=function(){function e(){}return function(t){if(!TR(t))return{};if(qg)return qg(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),kR=CR;function SR(e,t){return function(n){return e(t(n))}}var jx=SR,OR=jx,ER=OR(Object.getPrototypeOf,Object),Yh=ER,$R=Object.prototype;function MR(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||$R;return e===n}var Gh=MR,RR=kR,AR=Yh,jR=Gh;function PR(e){return typeof e.constructor=="function"&&!jR(e)?RR(AR(e)):{}}var Px=PR;function DR(e){return e!=null&&typeof e=="object"}var Un=DR,IR=Br,NR=Un,FR="[object Arguments]";function LR(e){return NR(e)&&IR(e)==FR}var UR=LR,Yg=UR,WR=Un,Dx=Object.prototype,BR=Dx.hasOwnProperty,zR=Dx.propertyIsEnumerable,HR=Yg(function(){return arguments}())?Yg:function(e){return WR(e)&&BR.call(e,"callee")&&!zR.call(e,"callee")},wu=HR,VR=Array.isArray,cn=VR,qR=9007199254740991;function YR(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=qR}var Zh=YR,GR=yu,ZR=Zh;function KR(e){return e!=null&&ZR(e.length)&&!GR(e)}var xi=KR,XR=xi,JR=Un;function QR(e){return JR(e)&&XR(e)}var Ix=QR,mc={exports:{}};function e9(){return!1}var t9=e9;mc.exports;(function(e,t){var n=Qn,r=t9,a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===a,s=o?n.Buffer:void 0,c=s?s.isBuffer:void 0,u=c||r;e.exports=u})(mc,mc.exports);var Tu=mc.exports,n9=Br,r9=Yh,a9=Un,i9="[object Object]",o9=Function.prototype,s9=Object.prototype,Nx=o9.toString,c9=s9.hasOwnProperty,u9=Nx.call(Object);function l9(e){if(!a9(e)||n9(e)!=i9)return!1;var t=r9(e);if(t===null)return!0;var n=c9.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Nx.call(n)==u9}var Kh=l9;const Xh=Mt(Kh);var d9=Br,f9=Zh,h9=Un,p9="[object Arguments]",m9="[object Array]",g9="[object Boolean]",v9="[object Date]",y9="[object Error]",b9="[object Function]",x9="[object Map]",_9="[object Number]",w9="[object Object]",T9="[object RegExp]",C9="[object Set]",k9="[object String]",S9="[object WeakMap]",O9="[object ArrayBuffer]",E9="[object DataView]",$9="[object Float32Array]",M9="[object Float64Array]",R9="[object Int8Array]",A9="[object Int16Array]",j9="[object Int32Array]",P9="[object Uint8Array]",D9="[object Uint8ClampedArray]",I9="[object Uint16Array]",N9="[object Uint32Array]",ct={};ct[$9]=ct[M9]=ct[R9]=ct[A9]=ct[j9]=ct[P9]=ct[D9]=ct[I9]=ct[N9]=!0;ct[p9]=ct[m9]=ct[O9]=ct[g9]=ct[E9]=ct[v9]=ct[y9]=ct[b9]=ct[x9]=ct[_9]=ct[w9]=ct[T9]=ct[C9]=ct[k9]=ct[S9]=!1;function F9(e){return h9(e)&&f9(e.length)&&!!ct[d9(e)]}var L9=F9;function U9(e){return function(t){return e(t)}}var ns=U9,gc={exports:{}};gc.exports;(function(e,t){var n=wx,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===r,o=i&&n.process,s=function(){try{var c=a&&a.require&&a.require("util").types;return c||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(gc,gc.exports);var Cu=gc.exports,W9=L9,B9=ns,Gg=Cu,Zg=Gg&&Gg.isTypedArray,z9=Zg?B9(Zg):W9,Jh=z9;function H9(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Fx=H9,V9=Vh,q9=ts,Y9=Object.prototype,G9=Y9.hasOwnProperty;function Z9(e,t,n){var r=e[t];(!(G9.call(e,t)&&q9(r,n))||n===void 0&&!(t in e))&&V9(e,t,n)}var Qh=Z9,K9=Qh,X9=Vh;function J9(e,t,n,r){var a=!n;n||(n={});for(var i=-1,o=t.length;++i<o;){var s=t[i],c=r?r(n[s],e[s],s,n,e):void 0;c===void 0&&(c=e[s]),a?X9(n,s,c):K9(n,s,c)}return n}var _i=J9;function Q9(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var eA=Q9,tA=9007199254740991,nA=/^(?:0|[1-9]\d*)$/;function rA(e,t){var n=typeof e;return t=t??tA,!!t&&(n=="number"||n!="symbol"&&nA.test(e))&&e>-1&&e%1==0&&e<t}var ku=rA,aA=eA,iA=wu,oA=cn,sA=Tu,cA=ku,uA=Jh,lA=Object.prototype,dA=lA.hasOwnProperty;function fA(e,t){var n=oA(e),r=!n&&iA(e),a=!n&&!r&&sA(e),i=!n&&!r&&!a&&uA(e),o=n||r||a||i,s=o?aA(e.length,String):[],c=s.length;for(var u in e)(t||dA.call(e,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||cA(u,c)))&&s.push(u);return s}var Lx=fA;function hA(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var pA=hA,mA=er,gA=Gh,vA=pA,yA=Object.prototype,bA=yA.hasOwnProperty;function xA(e){if(!mA(e))return vA(e);var t=gA(e),n=[];for(var r in e)r=="constructor"&&(t||!bA.call(e,r))||n.push(r);return n}var _A=xA,wA=Lx,TA=_A,CA=xi;function kA(e){return CA(e)?wA(e,!0):TA(e)}var rs=kA,SA=_i,OA=rs;function EA(e){return SA(e,OA(e))}var $A=EA,Kg=Ox,MA=$x,RA=Rx,AA=Ax,jA=Px,Xg=wu,Jg=cn,PA=Ix,DA=Tu,IA=yu,NA=er,FA=Kh,LA=Jh,Qg=Fx,UA=$A;function WA(e,t,n,r,a,i,o){var s=Qg(e,n),c=Qg(t,n),u=o.get(c);if(u){Kg(e,n,u);return}var l=i?i(s,c,n+"",e,t,o):void 0,d=l===void 0;if(d){var f=Jg(c),h=!f&&DA(c),g=!f&&!h&&LA(c);l=c,f||h||g?Jg(s)?l=s:PA(s)?l=AA(s):h?(d=!1,l=MA(c,!0)):g?(d=!1,l=RA(c,!0)):l=[]:FA(c)||Xg(c)?(l=s,Xg(s)?l=UA(s):(!NA(s)||IA(s))&&(l=jA(c))):d=!1}d&&(o.set(c,l),a(l,c,r,i,o),o.delete(c)),Kg(e,n,l)}var BA=WA,zA=_u,HA=Ox,VA=Ex,qA=BA,YA=er,GA=rs,ZA=Fx;function Ux(e,t,n,r,a){e!==t&&VA(t,function(i,o){if(a||(a=new zA),YA(i))qA(e,t,o,n,Ux,r,a);else{var s=r?r(ZA(e,o),i,o+"",e,t,a):void 0;s===void 0&&(s=i),HA(e,o,s)}},GA)}var KA=Ux;function XA(e){return e}var Su=XA;function JA(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var QA=JA,ej=QA,e0=Math.max;function tj(e,t,n){return t=e0(t===void 0?e.length-1:t,0),function(){for(var r=arguments,a=-1,i=e0(r.length-t,0),o=Array(i);++a<i;)o[a]=r[t+a];a=-1;for(var s=Array(t+1);++a<t;)s[a]=r[a];return s[t]=n(o),ej(e,this,s)}}var Wx=tj;function nj(e){return function(){return e}}var rj=nj,aj=rj,t0=Sx,ij=Su,oj=t0?function(e,t){return t0(e,"toString",{configurable:!0,enumerable:!1,value:aj(t),writable:!0})}:ij,sj=oj,cj=800,uj=16,lj=Date.now;function dj(e){var t=0,n=0;return function(){var r=lj(),a=uj-(r-n);if(n=r,a>0){if(++t>=cj)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var fj=dj,hj=sj,pj=fj,mj=pj(hj),Bx=mj,gj=Su,vj=Wx,yj=Bx;function bj(e,t){return yj(vj(e,t,gj),e+"")}var ep=bj,xj=ts,_j=xi,wj=ku,Tj=er;function Cj(e,t,n){if(!Tj(n))return!1;var r=typeof t;return(r=="number"?_j(n)&&wj(t,n.length):r=="string"&&t in n)?xj(n[t],e):!1}var zx=Cj,kj=ep,Sj=zx;function Oj(e){return kj(function(t,n){var r=-1,a=n.length,i=a>1?n[a-1]:void 0,o=a>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(a--,i):void 0,o&&Sj(n[0],n[1],o)&&(i=a<3?void 0:i,a=1),t=Object(t);++r<a;){var s=n[r];s&&e(t,s,r,i)}return t})}var Ej=Oj,$j=KA,Mj=Ej,Rj=Mj(function(e,t,n){$j(e,t,n)}),Aj=Rj;const jj=Mt(Aj);var Pj=Br,Dj=Un,Ij="[object Symbol]";function Nj(e){return typeof e=="symbol"||Dj(e)&&Pj(e)==Ij}var Ou=Nj,Fj=cn,Lj=Ou,Uj=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Wj=/^\w*$/;function Bj(e,t){if(Fj(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Lj(e)?!0:Wj.test(e)||!Uj.test(e)||t!=null&&e in Object(t)}var tp=Bj,Hx=Hh,zj="Expected a function";function np(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(zj);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var o=e.apply(this,r);return n.cache=i.set(a,o)||i,o};return n.cache=new(np.Cache||Hx),n}np.Cache=Hx;var Hj=np,Vj=Hj,qj=500;function Yj(e){var t=Vj(e,function(r){return n.size===qj&&n.clear(),r}),n=t.cache;return t}var Gj=Yj,Zj=Gj,Kj=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Xj=/\\(\\)?/g,Jj=Zj(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Kj,function(n,r,a,i){t.push(a?i.replace(Xj,"$1"):r||n)}),t}),Qj=Jj;function eP(e,t){for(var n=-1,r=e==null?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}var Eu=eP,n0=gi,tP=Eu,nP=cn,rP=Ou,aP=1/0,r0=n0?n0.prototype:void 0,a0=r0?r0.toString:void 0;function Vx(e){if(typeof e=="string")return e;if(nP(e))return tP(e,Vx)+"";if(rP(e))return a0?a0.call(e):"";var t=e+"";return t=="0"&&1/e==-aP?"-0":t}var iP=Vx,oP=iP;function sP(e){return e==null?"":oP(e)}var cP=sP,uP=cn,lP=tp,dP=Qj,fP=cP;function hP(e,t){return uP(e)?e:lP(e,t)?[e]:dP(fP(e))}var wi=hP,pP=Ou,mP=1/0;function gP(e){if(typeof e=="string"||pP(e))return e;var t=e+"";return t=="0"&&1/e==-mP?"-0":t}var Ti=gP,vP=wi,yP=Ti;function bP(e,t){t=vP(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[yP(t[n++])];return n&&n==r?e:void 0}var as=bP,xP=as;function _P(e,t,n){var r=e==null?void 0:xP(e,t);return r===void 0?n:r}var qx=_P;const pr=Mt(qx);var wP=Qh,TP=wi,CP=ku,i0=er,kP=Ti;function SP(e,t,n,r){if(!i0(e))return e;t=TP(t,e);for(var a=-1,i=t.length,o=i-1,s=e;s!=null&&++a<i;){var c=kP(t[a]),u=n;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(a!=o){var l=s[c];u=r?r(l,c,s):void 0,u===void 0&&(u=i0(l)?l:CP(t[a+1])?[]:{})}wP(s,c,u),s=s[c]}return e}var Yx=SP,OP=Yx;function EP(e,t,n){return e==null?e:OP(e,t,n)}var $P=EP;const Ki=Mt($P);function $u(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function rp(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Ci(){}var ma=.7,ni=1/ma,Ha="\\s*([+-]?\\d+)\\s*",Po="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Yn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",MP=/^#([0-9a-f]{3,8})$/,RP=new RegExp(`^rgb\\(${Ha},${Ha},${Ha}\\)$`),AP=new RegExp(`^rgb\\(${Yn},${Yn},${Yn}\\)$`),jP=new RegExp(`^rgba\\(${Ha},${Ha},${Ha},${Po}\\)$`),PP=new RegExp(`^rgba\\(${Yn},${Yn},${Yn},${Po}\\)$`),DP=new RegExp(`^hsl\\(${Po},${Yn},${Yn}\\)$`),IP=new RegExp(`^hsla\\(${Po},${Yn},${Yn},${Po}\\)$`),o0={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};$u(Ci,Do,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:s0,formatHex:s0,formatHex8:NP,formatHsl:FP,formatRgb:c0,toString:c0});function s0(){return this.rgb().formatHex()}function NP(){return this.rgb().formatHex8()}function FP(){return Zx(this).formatHsl()}function c0(){return this.rgb().formatRgb()}function Do(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=MP.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?u0(t):n===3?new zt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?bs(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?bs(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=RP.exec(e))?new zt(t[1],t[2],t[3],1):(t=AP.exec(e))?new zt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=jP.exec(e))?bs(t[1],t[2],t[3],t[4]):(t=PP.exec(e))?bs(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=DP.exec(e))?f0(t[1],t[2]/100,t[3]/100,1):(t=IP.exec(e))?f0(t[1],t[2]/100,t[3]/100,t[4]):o0.hasOwnProperty(e)?u0(o0[e]):e==="transparent"?new zt(NaN,NaN,NaN,0):null}function u0(e){return new zt(e>>16&255,e>>8&255,e&255,1)}function bs(e,t,n,r){return r<=0&&(e=t=n=NaN),new zt(e,t,n,r)}function Gx(e){return e instanceof Ci||(e=Do(e)),e?(e=e.rgb(),new zt(e.r,e.g,e.b,e.opacity)):new zt}function ri(e,t,n,r){return arguments.length===1?Gx(e):new zt(e,t,n,r??1)}function zt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}$u(zt,ri,rp(Ci,{brighter(e){return e=e==null?ni:Math.pow(ni,e),new zt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ma:Math.pow(ma,e),new zt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new zt(aa(this.r),aa(this.g),aa(this.b),vc(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:l0,formatHex:l0,formatHex8:LP,formatRgb:d0,toString:d0}));function l0(){return`#${Xr(this.r)}${Xr(this.g)}${Xr(this.b)}`}function LP(){return`#${Xr(this.r)}${Xr(this.g)}${Xr(this.b)}${Xr((isNaN(this.opacity)?1:this.opacity)*255)}`}function d0(){const e=vc(this.opacity);return`${e===1?"rgb(":"rgba("}${aa(this.r)}, ${aa(this.g)}, ${aa(this.b)}${e===1?")":`, ${e})`}`}function vc(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function aa(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Xr(e){return e=aa(e),(e<16?"0":"")+e.toString(16)}function f0(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Rn(e,t,n,r)}function Zx(e){if(e instanceof Rn)return new Rn(e.h,e.s,e.l,e.opacity);if(e instanceof Ci||(e=Do(e)),!e)return new Rn;if(e instanceof Rn)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),i=Math.max(t,n,r),o=NaN,s=i-a,c=(i+a)/2;return s?(t===i?o=(n-r)/s+(n<r)*6:n===i?o=(r-t)/s+2:o=(t-n)/s+4,s/=c<.5?i+a:2-i-a,o*=60):s=c>0&&c<1?0:o,new Rn(o,s,c,e.opacity)}function UP(e,t,n,r){return arguments.length===1?Zx(e):new Rn(e,t,n,r??1)}function Rn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}$u(Rn,UP,rp(Ci,{brighter(e){return e=e==null?ni:Math.pow(ni,e),new Rn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ma:Math.pow(ma,e),new Rn(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,a=2*n-r;return new zt(Zl(e>=240?e-240:e+120,a,r),Zl(e,a,r),Zl(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new Rn(h0(this.h),xs(this.s),xs(this.l),vc(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=vc(this.opacity);return`${e===1?"hsl(":"hsla("}${h0(this.h)}, ${xs(this.s)*100}%, ${xs(this.l)*100}%${e===1?")":`, ${e})`}`}}));function h0(e){return e=(e||0)%360,e<0?e+360:e}function xs(e){return Math.max(0,Math.min(1,e||0))}function Zl(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const WP=Math.PI/180,BP=180/Math.PI;var Kx=-.14861,ap=1.78277,ip=-.29227,Mu=-.90649,Io=1.97294,p0=Io*Mu,m0=Io*ap,g0=ap*ip-Mu*Kx;function zP(e){if(e instanceof ia)return new ia(e.h,e.s,e.l,e.opacity);e instanceof zt||(e=Gx(e));var t=e.r/255,n=e.g/255,r=e.b/255,a=(g0*r+p0*t-m0*n)/(g0+p0-m0),i=r-a,o=(Io*(n-a)-ip*i)/Mu,s=Math.sqrt(o*o+i*i)/(Io*a*(1-a)),c=s?Math.atan2(o,i)*BP-120:NaN;return new ia(c<0?c+360:c,s,a,e.opacity)}function Xn(e,t,n,r){return arguments.length===1?zP(e):new ia(e,t,n,r??1)}function ia(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}$u(ia,Xn,rp(Ci,{brighter(e){return e=e==null?ni:Math.pow(ni,e),new ia(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ma:Math.pow(ma,e),new ia(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*WP,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),a=Math.sin(e);return new zt(255*(t+n*(Kx*r+ap*a)),255*(t+n*(ip*r+Mu*a)),255*(t+n*(Io*r)),this.opacity)}}));function HP(e,t,n,r,a){var i=e*e,o=i*e;return((1-3*e+3*i-o)*t+(4-6*i+3*o)*n+(1+3*e+3*i-3*o)*r+o*a)/6}function VP(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),a=e[r],i=e[r+1],o=r>0?e[r-1]:2*a-i,s=r<t-1?e[r+2]:2*i-a;return HP((n-r/t)*t,o,a,i,s)}}const Ru=e=>()=>e;function Xx(e,t){return function(n){return e+n*t}}function qP(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function YP(e,t){var n=t-e;return n?Xx(e,n>180||n<-180?n-360*Math.round(n/360):n):Ru(isNaN(e)?t:e)}function GP(e){return(e=+e)==1?Va:function(t,n){return n-t?qP(t,n,e):Ru(isNaN(t)?n:t)}}function Va(e,t){var n=t-e;return n?Xx(e,n):Ru(isNaN(e)?t:e)}const v0=function e(t){var n=GP(t);function r(a,i){var o=n((a=ri(a)).r,(i=ri(i)).r),s=n(a.g,i.g),c=n(a.b,i.b),u=Va(a.opacity,i.opacity);return function(l){return a.r=o(l),a.g=s(l),a.b=c(l),a.opacity=u(l),a+""}}return r.gamma=e,r}(1);function ZP(e){return function(t){var n=t.length,r=new Array(n),a=new Array(n),i=new Array(n),o,s;for(o=0;o<n;++o)s=ri(t[o]),r[o]=s.r||0,a[o]=s.g||0,i[o]=s.b||0;return r=e(r),a=e(a),i=e(i),s.opacity=1,function(c){return s.r=r(c),s.g=a(c),s.b=i(c),s+""}}}var KP=ZP(VP);function XP(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),a;return function(i){for(a=0;a<n;++a)r[a]=e[a]*(1-i)+t[a]*i;return r}}function JP(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function QP(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,a=new Array(r),i=new Array(n),o;for(o=0;o<r;++o)a[o]=op(e[o],t[o]);for(;o<n;++o)i[o]=t[o];return function(s){for(o=0;o<r;++o)i[o]=a[o](s);return i}}function eD(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function yc(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function tD(e,t){var n={},r={},a;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(a in t)a in e?n[a]=op(e[a],t[a]):r[a]=t[a];return function(i){for(a in n)r[a]=n[a](i);return r}}var mf=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Kl=new RegExp(mf.source,"g");function nD(e){return function(){return e}}function rD(e){return function(t){return e(t)+""}}function Jx(e,t){var n=mf.lastIndex=Kl.lastIndex=0,r,a,i,o=-1,s=[],c=[];for(e=e+"",t=t+"";(r=mf.exec(e))&&(a=Kl.exec(t));)(i=a.index)>n&&(i=t.slice(n,i),s[o]?s[o]+=i:s[++o]=i),(r=r[0])===(a=a[0])?s[o]?s[o]+=a:s[++o]=a:(s[++o]=null,c.push({i:o,x:yc(r,a)})),n=Kl.lastIndex;return n<t.length&&(i=t.slice(n),s[o]?s[o]+=i:s[++o]=i),s.length<2?c[0]?rD(c[0].x):nD(t):(t=c.length,function(u){for(var l=0,d;l<t;++l)s[(d=c[l]).i]=d.x(u);return s.join("")})}function op(e,t){var n=typeof t,r;return t==null||n==="boolean"?Ru(t):(n==="number"?yc:n==="string"?(r=Do(t))?(t=r,v0):Jx:t instanceof Do?v0:t instanceof Date?eD:JP(t)?XP:Array.isArray(t)?QP:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?tD:yc)(e,t)}function aD(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Qx(e){return function t(n){n=+n;function r(a,i){var o=e((a=Xn(a)).h,(i=Xn(i)).h),s=Va(a.s,i.s),c=Va(a.l,i.l),u=Va(a.opacity,i.opacity);return function(l){return a.h=o(l),a.s=s(l),a.l=c(Math.pow(l,n)),a.opacity=u(l),a+""}}return r.gamma=t,r}(1)}Qx(YP);var sp=Qx(Va),iD=Br,oD=cn,sD=Un,cD="[object String]";function uD(e){return typeof e=="string"||!oD(e)&&sD(e)&&iD(e)==cD}var lD=uD;const dD=Mt(lD);function fD(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var e2=fD;const ye=Mt(e2);function Ns(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function hD(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function cp(e){let t,n,r;e.length!==2?(t=Ns,n=(s,c)=>Ns(e(s),c),r=(s,c)=>e(s)-c):(t=e===Ns||e===hD?e:pD,n=e,r=e);function a(s,c,u=0,l=s.length){if(u<l){if(t(c,c)!==0)return l;do{const d=u+l>>>1;n(s[d],c)<0?u=d+1:l=d}while(u<l)}return u}function i(s,c,u=0,l=s.length){if(u<l){if(t(c,c)!==0)return l;do{const d=u+l>>>1;n(s[d],c)<=0?u=d+1:l=d}while(u<l)}return u}function o(s,c,u=0,l=s.length){const d=a(s,c,u,l-1);return d>u&&r(s[d-1],c)>-r(s[d],c)?d-1:d}return{left:a,center:o,right:i}}function pD(){return 0}function mD(e){return e===null?NaN:+e}const gD=cp(Ns),vD=gD.right;cp(mD).center;class y0 extends Map{constructor(t,n=xD){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,a]of t)this.set(r,a)}get(t){return super.get(b0(this,t))}has(t){return super.has(b0(this,t))}set(t,n){return super.set(yD(this,t),n)}delete(t){return super.delete(bD(this,t))}}function b0({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function yD({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function bD({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function xD(e){return e!==null&&typeof e=="object"?e.valueOf():e}const _D=Math.sqrt(50),wD=Math.sqrt(10),TD=Math.sqrt(2);function bc(e,t,n){const r=(t-e)/Math.max(0,n),a=Math.floor(Math.log10(r)),i=r/Math.pow(10,a),o=i>=_D?10:i>=wD?5:i>=TD?2:1;let s,c,u;return a<0?(u=Math.pow(10,-a)/o,s=Math.round(e*u),c=Math.round(t*u),s/u<e&&++s,c/u>t&&--c,u=-u):(u=Math.pow(10,a)*o,s=Math.round(e/u),c=Math.round(t/u),s*u<e&&++s,c*u>t&&--c),c<s&&.5<=n&&n<2?bc(e,t,n*2):[s,c,u]}function gf(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[a,i,o]=r?bc(t,e,n):bc(e,t,n);if(!(i>=a))return[];const s=i-a+1,c=new Array(s);if(r)if(o<0)for(let u=0;u<s;++u)c[u]=(i-u)/-o;else for(let u=0;u<s;++u)c[u]=(i-u)*o;else if(o<0)for(let u=0;u<s;++u)c[u]=(a+u)/-o;else for(let u=0;u<s;++u)c[u]=(a+u)*o;return c}function vf(e,t,n){return t=+t,e=+e,n=+n,bc(e,t,n)[2]}function yf(e,t,n){t=+t,e=+e,n=+n;const r=t<e,a=r?vf(t,e,n):vf(e,t,n);return(r?-1:1)*(a<0?1/-a:a)}function CD(e,t,n){e=+e,t=+t,n=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+n;for(var r=-1,a=Math.max(0,Math.ceil((t-e)/n))|0,i=new Array(a);++r<a;)i[r]=e+r*n;return i}function wa(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}const x0=Symbol("implicit");function Jr(){var e=new y0,t=[],n=[],r=x0;function a(i){let o=e.get(i);if(o===void 0){if(r!==x0)return r;e.set(i,o=t.push(i)-1)}return n[o%n.length]}return a.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new y0;for(const o of i)e.has(o)||e.set(o,t.push(o)-1);return a},a.range=function(i){return arguments.length?(n=Array.from(i),a):n.slice()},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return Jr(t,n).unknown(r)},wa.apply(a,arguments),a}function up(){var e=Jr().unknown(void 0),t=e.domain,n=e.range,r=0,a=1,i,o,s=!1,c=0,u=0,l=.5;delete e.unknown;function d(){var f=t().length,h=a<r,g=h?a:r,v=h?r:a;i=(v-g)/Math.max(1,f-c+u*2),s&&(i=Math.floor(i)),g+=(v-g-i*(f-c))*l,o=i*(1-c),s&&(g=Math.round(g),o=Math.round(o));var m=CD(f).map(function(_){return g+i*_});return n(h?m.reverse():m)}return e.domain=function(f){return arguments.length?(t(f),d()):t()},e.range=function(f){return arguments.length?([r,a]=f,r=+r,a=+a,d()):[r,a]},e.rangeRound=function(f){return[r,a]=f,r=+r,a=+a,s=!0,d()},e.bandwidth=function(){return o},e.step=function(){return i},e.round=function(f){return arguments.length?(s=!!f,d()):s},e.padding=function(f){return arguments.length?(c=Math.min(1,u=+f),d()):c},e.paddingInner=function(f){return arguments.length?(c=Math.min(1,f),d()):c},e.paddingOuter=function(f){return arguments.length?(u=+f,d()):u},e.align=function(f){return arguments.length?(l=Math.max(0,Math.min(1,f)),d()):l},e.copy=function(){return up(t(),[r,a]).round(s).paddingInner(c).paddingOuter(u).align(l)},wa.apply(d(),arguments)}function t2(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return t2(t())},e}function kD(){return t2(up.apply(null,arguments).paddingInner(1))}function SD(e){return function(){return e}}function OD(e){return+e}var _0=[0,1];function La(e){return e}function bf(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:SD(isNaN(t)?NaN:.5)}function ED(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function $D(e,t,n){var r=e[0],a=e[1],i=t[0],o=t[1];return a<r?(r=bf(a,r),i=n(o,i)):(r=bf(r,a),i=n(i,o)),function(s){return i(r(s))}}function MD(e,t,n){var r=Math.min(e.length,t.length)-1,a=new Array(r),i=new Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)a[o]=bf(e[o],e[o+1]),i[o]=n(t[o],t[o+1]);return function(s){var c=vD(e,s,1,r)-1;return i[c](a[c](s))}}function Au(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function lp(){var e=_0,t=_0,n=op,r,a,i,o=La,s,c,u;function l(){var f=Math.min(e.length,t.length);return o!==La&&(o=ED(e[0],e[f-1])),s=f>2?MD:$D,c=u=null,d}function d(f){return f==null||isNaN(f=+f)?i:(c||(c=s(e.map(r),t,n)))(r(o(f)))}return d.invert=function(f){return o(a((u||(u=s(t,e.map(r),yc)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,OD),l()):e.slice()},d.range=function(f){return arguments.length?(t=Array.from(f),l()):t.slice()},d.rangeRound=function(f){return t=Array.from(f),n=aD,l()},d.clamp=function(f){return arguments.length?(o=f?!0:La,l()):o!==La},d.interpolate=function(f){return arguments.length?(n=f,l()):n},d.unknown=function(f){return arguments.length?(i=f,d):i},function(f,h){return r=f,a=h,l()}}function n2(){return lp()(La,La)}function RD(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function xc(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function ai(e){return e=xc(Math.abs(e)),e?e[1]:NaN}function AD(e,t){return function(n,r){for(var a=n.length,i=[],o=0,s=e[0],c=0;a>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),i.push(n.substring(a-=s,a+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return i.reverse().join(t)}}function jD(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var PD=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function No(e){if(!(t=PD.exec(e)))throw new Error("invalid format: "+e);var t;return new dp({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}No.prototype=dp.prototype;function dp(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}dp.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function DD(e){e:for(var t=e.length,n=1,r=-1,a;n<t;++n)switch(e[n]){case".":r=a=n;break;case"0":r===0&&(r=n),a=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(a+1):e}var r2;function ID(e,t){var n=xc(e,t);if(!n)return e+"";var r=n[0],a=n[1],i=a-(r2=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,o=r.length;return i===o?r:i>o?r+new Array(i-o+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+xc(e,Math.max(0,t+i-1))[0]}function w0(e,t){var n=xc(e,t);if(!n)return e+"";var r=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")}const T0={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:RD,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return w0(e*100,t)},r:w0,s:ID,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function C0(e){return e}var k0=Array.prototype.map,S0=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function ND(e){var t=e.grouping===void 0||e.thousands===void 0?C0:AD(k0.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?C0:jD(k0.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"-":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function u(d){d=No(d);var f=d.fill,h=d.align,g=d.sign,v=d.symbol,m=d.zero,_=d.width,w=d.comma,b=d.precision,T=d.trim,x=d.type;x==="n"?(w=!0,x="g"):T0[x]||(b===void 0&&(b=12),T=!0,x="g"),(m||f==="0"&&h==="=")&&(m=!0,f="0",h="=");var C=v==="$"?n:v==="#"&&/[boxX]/.test(x)?"0"+x.toLowerCase():"",$=v==="$"?r:/[%p]/.test(x)?o:"",A=T0[x],D=/[defgprs%]/.test(x);b=b===void 0?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b));function j(E){var F=C,M=$,R,I,U;if(x==="c")M=A(E)+M,E="";else{E=+E;var N=E<0||1/E<0;if(E=isNaN(E)?c:A(Math.abs(E),b),T&&(E=DD(E)),N&&+E==0&&g!=="+"&&(N=!1),F=(N?g==="("?g:s:g==="-"||g==="("?"":g)+F,M=(x==="s"?S0[8+r2/3]:"")+M+(N&&g==="("?")":""),D){for(R=-1,I=E.length;++R<I;)if(U=E.charCodeAt(R),48>U||U>57){M=(U===46?a+E.slice(R+1):E.slice(R))+M,E=E.slice(0,R);break}}}w&&!m&&(E=t(E,1/0));var q=F.length+E.length+M.length,z=q<_?new Array(_-q+1).join(f):"";switch(w&&m&&(E=t(z+E,z.length?_-M.length:1/0),z=""),h){case"<":E=F+E+M+z;break;case"=":E=F+z+E+M;break;case"^":E=z.slice(0,q=z.length>>1)+F+E+M+z.slice(q);break;default:E=z+F+E+M;break}return i(E)}return j.toString=function(){return d+""},j}function l(d,f){var h=u((d=No(d),d.type="f",d)),g=Math.max(-8,Math.min(8,Math.floor(ai(f)/3)))*3,v=Math.pow(10,-g),m=S0[8+g/3];return function(_){return h(v*_)+m}}return{format:u,formatPrefix:l}}var _s,is,a2;FD({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function FD(e){return _s=ND(e),is=_s.format,a2=_s.formatPrefix,_s}function LD(e){return Math.max(0,-ai(Math.abs(e)))}function UD(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ai(t)/3)))*3-ai(Math.abs(e)))}function WD(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ai(t)-ai(e))+1}function BD(e,t,n,r){var a=yf(e,t,n),i;switch(r=No(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=UD(a,o))&&(r.precision=i),a2(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=WD(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=LD(a))&&(r.precision=i-(r.type==="%")*2);break}}return is(r)}function i2(e){var t=e.domain;return e.ticks=function(n){var r=t();return gf(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return BD(a[0],a[a.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),a=0,i=r.length-1,o=r[a],s=r[i],c,u,l=10;for(s<o&&(u=o,o=s,s=u,u=a,a=i,i=u);l-- >0;){if(u=vf(o,s,n),u===c)return r[a]=o,r[i]=s,t(r);if(u>0)o=Math.floor(o/u)*u,s=Math.ceil(s/u)*u;else if(u<0)o=Math.ceil(o*u)/u,s=Math.floor(s*u)/u;else break;c=u}return e},e}function o2(){var e=n2();return e.copy=function(){return Au(e,o2())},wa.apply(e,arguments),i2(e)}function s2(e,t){e=e.slice();var n=0,r=e.length-1,a=e[n],i=e[r],o;return i<a&&(o=n,n=r,r=o,o=a,a=i,i=o),e[n]=t.floor(a),e[r]=t.ceil(i),e}function O0(e){return Math.log(e)}function E0(e){return Math.exp(e)}function zD(e){return-Math.log(-e)}function HD(e){return-Math.exp(-e)}function VD(e){return isFinite(e)?+("1e"+e):e<0?0:e}function qD(e){return e===10?VD:e===Math.E?Math.exp:t=>Math.pow(e,t)}function YD(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function $0(e){return(t,n)=>-e(-t,n)}function GD(e){const t=e(O0,E0),n=t.domain;let r=10,a,i;function o(){return a=YD(r),i=qD(r),n()[0]<0?(a=$0(a),i=$0(i),e(zD,HD)):e(O0,E0),t}return t.base=function(s){return arguments.length?(r=+s,o()):r},t.domain=function(s){return arguments.length?(n(s),o()):n()},t.ticks=s=>{const c=n();let u=c[0],l=c[c.length-1];const d=l<u;d&&([u,l]=[l,u]);let f=a(u),h=a(l),g,v;const m=s==null?10:+s;let _=[];if(!(r%1)&&h-f<m){if(f=Math.floor(f),h=Math.ceil(h),u>0){for(;f<=h;++f)for(g=1;g<r;++g)if(v=f<0?g/i(-f):g*i(f),!(v<u)){if(v>l)break;_.push(v)}}else for(;f<=h;++f)for(g=r-1;g>=1;--g)if(v=f>0?g/i(-f):g*i(f),!(v<u)){if(v>l)break;_.push(v)}_.length*2<m&&(_=gf(u,l,m))}else _=gf(f,h,Math.min(h-f,m)).map(i);return d?_.reverse():_},t.tickFormat=(s,c)=>{if(s==null&&(s=10),c==null&&(c=r===10?"s":","),typeof c!="function"&&(!(r%1)&&(c=No(c)).precision==null&&(c.trim=!0),c=is(c)),s===1/0)return c;const u=Math.max(1,r*s/t.ticks().length);return l=>{let d=l/i(Math.round(a(l)));return d*r<r-.5&&(d*=r),d<=u?c(l):""}},t.nice=()=>n(s2(n(),{floor:s=>i(Math.floor(a(s))),ceil:s=>i(Math.ceil(a(s)))})),t}function c2(){const e=GD(lp()).domain([1,10]);return e.copy=()=>Au(e,c2()).base(e.base()),wa.apply(e,arguments),e}function M0(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function R0(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function ZD(e){var t=1,n=e(M0(t),R0(t));return n.constant=function(r){return arguments.length?e(M0(t=+r),R0(t)):t},i2(n)}function u2(){var e=ZD(lp());return e.copy=function(){return Au(e,u2()).constant(e.constant())},wa.apply(e,arguments)}const Xl=new Date,Jl=new Date;function Rt(e,t,n,r){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=i=>(e(i=new Date(+i)),i),a.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),a.round=i=>{const o=a(i),s=a.ceil(i);return i-o<s-i?o:s},a.offset=(i,o)=>(t(i=new Date(+i),o==null?1:Math.floor(o)),i),a.range=(i,o,s)=>{const c=[];if(i=a.ceil(i),s=s==null?1:Math.floor(s),!(i<o)||!(s>0))return c;let u;do c.push(u=new Date(+i)),t(i,s),e(i);while(u<i&&i<o);return c},a.filter=i=>Rt(o=>{if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!i(o););else for(;--s>=0;)for(;t(o,1),!i(o););}),n&&(a.count=(i,o)=>(Xl.setTime(+i),Jl.setTime(+o),e(Xl),e(Jl),Math.floor(n(Xl,Jl))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?o=>r(o)%i===0:o=>a.count(0,o)%i===0):a)),a}const _c=Rt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);_c.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Rt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):_c);_c.range;const sr=1e3,Cn=sr*60,cr=Cn*60,mr=cr*24,fp=mr*7,A0=mr*30,Ql=mr*365,Qr=Rt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*sr)},(e,t)=>(t-e)/sr,e=>e.getUTCSeconds());Qr.range;const hp=Rt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*sr)},(e,t)=>{e.setTime(+e+t*Cn)},(e,t)=>(t-e)/Cn,e=>e.getMinutes());hp.range;const pp=Rt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Cn)},(e,t)=>(t-e)/Cn,e=>e.getUTCMinutes());pp.range;const mp=Rt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*sr-e.getMinutes()*Cn)},(e,t)=>{e.setTime(+e+t*cr)},(e,t)=>(t-e)/cr,e=>e.getHours());mp.range;const gp=Rt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*cr)},(e,t)=>(t-e)/cr,e=>e.getUTCHours());gp.range;const vp=Rt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Cn)/mr,e=>e.getDate()-1);vp.range;const l2=Rt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/mr,e=>e.getUTCDate()-1);l2.range;const d2=Rt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/mr,e=>Math.floor(e/mr));d2.range;function Ta(e){return Rt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Cn)/fp)}const yp=Ta(0),KD=Ta(1),XD=Ta(2),JD=Ta(3),QD=Ta(4),eI=Ta(5),tI=Ta(6);yp.range;KD.range;XD.range;JD.range;QD.range;eI.range;tI.range;function Ca(e){return Rt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/fp)}const bp=Ca(0),nI=Ca(1),rI=Ca(2),aI=Ca(3),iI=Ca(4),oI=Ca(5),sI=Ca(6);bp.range;nI.range;rI.range;aI.range;iI.range;oI.range;sI.range;const xp=Rt(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());xp.range;const _p=Rt(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());_p.range;const ju=Rt(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());ju.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Rt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});ju.range;const Pu=Rt(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Pu.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Rt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});Pu.range;function f2(e,t,n,r,a,i){const o=[[Qr,1,sr],[Qr,5,5*sr],[Qr,15,15*sr],[Qr,30,30*sr],[i,1,Cn],[i,5,5*Cn],[i,15,15*Cn],[i,30,30*Cn],[a,1,cr],[a,3,3*cr],[a,6,6*cr],[a,12,12*cr],[r,1,mr],[r,2,2*mr],[n,1,fp],[t,1,A0],[t,3,3*A0],[e,1,Ql]];function s(u,l,d){const f=l<u;f&&([u,l]=[l,u]);const h=d&&typeof d.range=="function"?d:c(u,l,d),g=h?h.range(u,+l+1):[];return f?g.reverse():g}function c(u,l,d){const f=Math.abs(l-u)/d,h=cp(([,,m])=>m).right(o,f);if(h===o.length)return e.every(yf(u/Ql,l/Ql,d));if(h===0)return _c.every(Math.max(yf(u,l,d),1));const[g,v]=o[f/o[h-1][2]<o[h][2]/f?h-1:h];return g.every(v)}return[s,c]}const[cI,uI]=f2(Pu,_p,bp,d2,gp,pp),[lI,dI]=f2(ju,xp,yp,vp,mp,hp);var ed=new Date,td=new Date;function yr(e,t,n,r){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=function(i){return e(i=new Date(+i)),i},a.ceil=function(i){return e(i=new Date(i-1)),t(i,1),e(i),i},a.round=function(i){var o=a(i),s=a.ceil(i);return i-o<s-i?o:s},a.offset=function(i,o){return t(i=new Date(+i),o==null?1:Math.floor(o)),i},a.range=function(i,o,s){var c=[],u;if(i=a.ceil(i),s=s==null?1:Math.floor(s),!(i<o)||!(s>0))return c;do c.push(u=new Date(+i)),t(i,s),e(i);while(u<i&&i<o);return c},a.filter=function(i){return yr(function(o){if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},function(o,s){if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!i(o););else for(;--s>=0;)for(;t(o,1),!i(o););})},n&&(a.count=function(i,o){return ed.setTime(+i),td.setTime(+o),e(ed),e(td),Math.floor(n(ed,td))},a.every=function(i){return i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?function(o){return r(o)%i===0}:function(o){return a.count(0,o)%i===0}):a}),a}const fI=1e3,wp=fI*60,hI=wp*60,Tp=hI*24,h2=Tp*7;var Cp=yr(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*wp)/Tp,e=>e.getDate()-1);Cp.range;function ka(e){return yr(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*wp)/h2})}var p2=ka(0),wc=ka(1),pI=ka(2),mI=ka(3),ii=ka(4),gI=ka(5),vI=ka(6);p2.range;wc.range;pI.range;mI.range;ii.range;gI.range;vI.range;var ga=yr(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});ga.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:yr(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})};ga.range;var kp=yr(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/Tp},function(e){return e.getUTCDate()-1});kp.range;function Sa(e){return yr(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/h2})}var m2=Sa(0),Tc=Sa(1),yI=Sa(2),bI=Sa(3),oi=Sa(4),xI=Sa(5),_I=Sa(6);m2.range;Tc.range;yI.range;bI.range;oi.range;xI.range;_I.range;var va=yr(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});va.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:yr(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})};va.range;function nd(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function rd(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Ui(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function wI(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,i=e.days,o=e.shortDays,s=e.months,c=e.shortMonths,u=Wi(a),l=Bi(a),d=Wi(i),f=Bi(i),h=Wi(o),g=Bi(o),v=Wi(s),m=Bi(s),_=Wi(c),w=Bi(c),b={a:N,A:q,b:z,B:P,c:null,d:F0,e:F0,f:VI,g:tN,G:rN,H:BI,I:zI,j:HI,L:g2,m:qI,M:YI,p:B,q:Z,Q:W0,s:B0,S:GI,u:ZI,U:KI,V:XI,w:JI,W:QI,x:null,X:null,y:eN,Y:nN,Z:aN,"%":U0},T={a:ne,A:Y,b:Q,B:G,c:null,d:L0,e:L0,f:cN,g:yN,G:xN,H:iN,I:oN,j:sN,L:y2,m:uN,M:lN,p:J,q:re,Q:W0,s:B0,S:dN,u:fN,U:hN,V:pN,w:mN,W:gN,x:null,X:null,y:vN,Y:bN,Z:_N,"%":U0},x={a:j,A:E,b:F,B:M,c:R,d:I0,e:I0,f:FI,g:D0,G:P0,H:N0,I:N0,j:PI,L:NI,m:jI,M:DI,p:D,q:AI,Q:UI,s:WI,S:II,u:OI,U:EI,V:$I,w:SI,W:MI,x:I,X:U,y:D0,Y:P0,Z:RI,"%":LI};b.x=C(n,b),b.X=C(r,b),b.c=C(t,b),T.x=C(n,T),T.X=C(r,T),T.c=C(t,T);function C(L,V){return function(ae){var k=[],ge=-1,pe=0,de=L.length,Ae,Pe,ft;for(ae instanceof Date||(ae=new Date(+ae));++ge<de;)L.charCodeAt(ge)===37&&(k.push(L.slice(pe,ge)),(Pe=j0[Ae=L.charAt(++ge)])!=null?Ae=L.charAt(++ge):Pe=Ae==="e"?" ":"0",(ft=V[Ae])&&(Ae=ft(ae,Pe)),k.push(Ae),pe=ge+1);return k.push(L.slice(pe,ge)),k.join("")}}function $(L,V){return function(ae){var k=Ui(1900,void 0,1),ge=A(k,L,ae+="",0),pe,de;if(ge!=ae.length)return null;if("Q"in k)return new Date(k.Q);if("s"in k)return new Date(k.s*1e3+("L"in k?k.L:0));if(V&&!("Z"in k)&&(k.Z=0),"p"in k&&(k.H=k.H%12+k.p*12),k.m===void 0&&(k.m="q"in k?k.q:0),"V"in k){if(k.V<1||k.V>53)return null;"w"in k||(k.w=1),"Z"in k?(pe=rd(Ui(k.y,0,1)),de=pe.getUTCDay(),pe=de>4||de===0?Tc.ceil(pe):Tc(pe),pe=kp.offset(pe,(k.V-1)*7),k.y=pe.getUTCFullYear(),k.m=pe.getUTCMonth(),k.d=pe.getUTCDate()+(k.w+6)%7):(pe=nd(Ui(k.y,0,1)),de=pe.getDay(),pe=de>4||de===0?wc.ceil(pe):wc(pe),pe=Cp.offset(pe,(k.V-1)*7),k.y=pe.getFullYear(),k.m=pe.getMonth(),k.d=pe.getDate()+(k.w+6)%7)}else("W"in k||"U"in k)&&("w"in k||(k.w="u"in k?k.u%7:"W"in k?1:0),de="Z"in k?rd(Ui(k.y,0,1)).getUTCDay():nd(Ui(k.y,0,1)).getDay(),k.m=0,k.d="W"in k?(k.w+6)%7+k.W*7-(de+5)%7:k.w+k.U*7-(de+6)%7);return"Z"in k?(k.H+=k.Z/100|0,k.M+=k.Z%100,rd(k)):nd(k)}}function A(L,V,ae,k){for(var ge=0,pe=V.length,de=ae.length,Ae,Pe;ge<pe;){if(k>=de)return-1;if(Ae=V.charCodeAt(ge++),Ae===37){if(Ae=V.charAt(ge++),Pe=x[Ae in j0?V.charAt(ge++):Ae],!Pe||(k=Pe(L,ae,k))<0)return-1}else if(Ae!=ae.charCodeAt(k++))return-1}return k}function D(L,V,ae){var k=u.exec(V.slice(ae));return k?(L.p=l.get(k[0].toLowerCase()),ae+k[0].length):-1}function j(L,V,ae){var k=h.exec(V.slice(ae));return k?(L.w=g.get(k[0].toLowerCase()),ae+k[0].length):-1}function E(L,V,ae){var k=d.exec(V.slice(ae));return k?(L.w=f.get(k[0].toLowerCase()),ae+k[0].length):-1}function F(L,V,ae){var k=_.exec(V.slice(ae));return k?(L.m=w.get(k[0].toLowerCase()),ae+k[0].length):-1}function M(L,V,ae){var k=v.exec(V.slice(ae));return k?(L.m=m.get(k[0].toLowerCase()),ae+k[0].length):-1}function R(L,V,ae){return A(L,t,V,ae)}function I(L,V,ae){return A(L,n,V,ae)}function U(L,V,ae){return A(L,r,V,ae)}function N(L){return o[L.getDay()]}function q(L){return i[L.getDay()]}function z(L){return c[L.getMonth()]}function P(L){return s[L.getMonth()]}function B(L){return a[+(L.getHours()>=12)]}function Z(L){return 1+~~(L.getMonth()/3)}function ne(L){return o[L.getUTCDay()]}function Y(L){return i[L.getUTCDay()]}function Q(L){return c[L.getUTCMonth()]}function G(L){return s[L.getUTCMonth()]}function J(L){return a[+(L.getUTCHours()>=12)]}function re(L){return 1+~~(L.getUTCMonth()/3)}return{format:function(L){var V=C(L+="",b);return V.toString=function(){return L},V},parse:function(L){var V=$(L+="",!1);return V.toString=function(){return L},V},utcFormat:function(L){var V=C(L+="",T);return V.toString=function(){return L},V},utcParse:function(L){var V=$(L+="",!0);return V.toString=function(){return L},V}}}var j0={"-":"",_:" ",0:"0"},Dt=/^\s*\d+/,TI=/^%/,CI=/[\\^$*+?|[\]().{}]/g;function We(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",i=a.length;return r+(i<n?new Array(n-i+1).join(t)+a:a)}function kI(e){return e.replace(CI,"\\$&")}function Wi(e){return new RegExp("^(?:"+e.map(kI).join("|")+")","i")}function Bi(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function SI(e,t,n){var r=Dt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function OI(e,t,n){var r=Dt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function EI(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function $I(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function MI(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function P0(e,t,n){var r=Dt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function D0(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function RI(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function AI(e,t,n){var r=Dt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function jI(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function I0(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function PI(e,t,n){var r=Dt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function N0(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function DI(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function II(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function NI(e,t,n){var r=Dt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function FI(e,t,n){var r=Dt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function LI(e,t,n){var r=TI.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function UI(e,t,n){var r=Dt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function WI(e,t,n){var r=Dt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function F0(e,t){return We(e.getDate(),t,2)}function BI(e,t){return We(e.getHours(),t,2)}function zI(e,t){return We(e.getHours()%12||12,t,2)}function HI(e,t){return We(1+Cp.count(ga(e),e),t,3)}function g2(e,t){return We(e.getMilliseconds(),t,3)}function VI(e,t){return g2(e,t)+"000"}function qI(e,t){return We(e.getMonth()+1,t,2)}function YI(e,t){return We(e.getMinutes(),t,2)}function GI(e,t){return We(e.getSeconds(),t,2)}function ZI(e){var t=e.getDay();return t===0?7:t}function KI(e,t){return We(p2.count(ga(e)-1,e),t,2)}function v2(e){var t=e.getDay();return t>=4||t===0?ii(e):ii.ceil(e)}function XI(e,t){return e=v2(e),We(ii.count(ga(e),e)+(ga(e).getDay()===4),t,2)}function JI(e){return e.getDay()}function QI(e,t){return We(wc.count(ga(e)-1,e),t,2)}function eN(e,t){return We(e.getFullYear()%100,t,2)}function tN(e,t){return e=v2(e),We(e.getFullYear()%100,t,2)}function nN(e,t){return We(e.getFullYear()%1e4,t,4)}function rN(e,t){var n=e.getDay();return e=n>=4||n===0?ii(e):ii.ceil(e),We(e.getFullYear()%1e4,t,4)}function aN(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+We(t/60|0,"0",2)+We(t%60,"0",2)}function L0(e,t){return We(e.getUTCDate(),t,2)}function iN(e,t){return We(e.getUTCHours(),t,2)}function oN(e,t){return We(e.getUTCHours()%12||12,t,2)}function sN(e,t){return We(1+kp.count(va(e),e),t,3)}function y2(e,t){return We(e.getUTCMilliseconds(),t,3)}function cN(e,t){return y2(e,t)+"000"}function uN(e,t){return We(e.getUTCMonth()+1,t,2)}function lN(e,t){return We(e.getUTCMinutes(),t,2)}function dN(e,t){return We(e.getUTCSeconds(),t,2)}function fN(e){var t=e.getUTCDay();return t===0?7:t}function hN(e,t){return We(m2.count(va(e)-1,e),t,2)}function b2(e){var t=e.getUTCDay();return t>=4||t===0?oi(e):oi.ceil(e)}function pN(e,t){return e=b2(e),We(oi.count(va(e),e)+(va(e).getUTCDay()===4),t,2)}function mN(e){return e.getUTCDay()}function gN(e,t){return We(Tc.count(va(e)-1,e),t,2)}function vN(e,t){return We(e.getUTCFullYear()%100,t,2)}function yN(e,t){return e=b2(e),We(e.getUTCFullYear()%100,t,2)}function bN(e,t){return We(e.getUTCFullYear()%1e4,t,4)}function xN(e,t){var n=e.getUTCDay();return e=n>=4||n===0?oi(e):oi.ceil(e),We(e.getUTCFullYear()%1e4,t,4)}function _N(){return"+0000"}function U0(){return"%"}function W0(e){return+e}function B0(e){return Math.floor(+e/1e3)}var Da,Du,x2,_2,w2;wN({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function wN(e){return Da=wI(e),Du=Da.format,x2=Da.parse,_2=Da.utcFormat,w2=Da.utcParse,Da}function TN(e){return new Date(e)}function CN(e){return e instanceof Date?+e:+new Date(+e)}function Sp(e,t,n,r,a,i,o,s,c,u){var l=n2(),d=l.invert,f=l.domain,h=u(".%L"),g=u(":%S"),v=u("%I:%M"),m=u("%I %p"),_=u("%a %d"),w=u("%b %d"),b=u("%B"),T=u("%Y");function x(C){return(c(C)<C?h:s(C)<C?g:o(C)<C?v:i(C)<C?m:r(C)<C?a(C)<C?_:w:n(C)<C?b:T)(C)}return l.invert=function(C){return new Date(d(C))},l.domain=function(C){return arguments.length?f(Array.from(C,CN)):f().map(TN)},l.ticks=function(C){var $=f();return e($[0],$[$.length-1],C??10)},l.tickFormat=function(C,$){return $==null?x:u($)},l.nice=function(C){var $=f();return(!C||typeof C.range!="function")&&(C=t($[0],$[$.length-1],C??10)),C?f(s2($,C)):l},l.copy=function(){return Au(l,Sp(e,t,n,r,a,i,o,s,c,u))},l}function kN(){return wa.apply(Sp(lI,dI,ju,xp,yp,vp,mp,hp,Qr,Du).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function SN(){return wa.apply(Sp(cI,uI,Pu,_p,bp,l2,gp,pp,Qr,_2).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function $e(e){for(var t=e.length/6|0,n=new Array(t),r=0;r<t;)n[r]="#"+e.slice(r*6,++r*6);return n}const T2=$e("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),C2=$e("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),k2=$e("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),S2=$e("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),O2=$e("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),E2=$e("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),$2=$e("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),M2=$e("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),Op=$e("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),ON=$e("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),nt=e=>KP(e[e.length-1]);var Iu=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map($e);const EN=nt(Iu);var Nu=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map($e);const $N=nt(Nu);var Fu=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map($e);const MN=nt(Fu);var Lu=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map($e);const RN=nt(Lu);var Uu=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map($e);const AN=nt(Uu);var Wu=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map($e);const jN=nt(Wu);var Bu=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map($e);const PN=nt(Bu);var zu=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map($e);const DN=nt(zu);var Hu=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map($e);const IN=nt(Hu);var Vu=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map($e);const NN=nt(Vu);var qu=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map($e);const FN=nt(qu);var Yu=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map($e);const LN=nt(Yu);var Gu=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map($e);const UN=nt(Gu);var Zu=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map($e);const WN=nt(Zu);var Ku=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map($e);const BN=nt(Ku);var Xu=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map($e);const zN=nt(Xu);var Ju=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map($e);const HN=nt(Ju);var Qu=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map($e);const VN=nt(Qu);var el=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map($e);const qN=nt(el);var tl=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map($e);const YN=nt(tl);var nl=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map($e);const GN=nt(nl);var rl=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map($e);const ZN=nt(rl);var al=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map($e);const KN=nt(al);var il=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map($e);const XN=nt(il);var ol=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map($e);const JN=nt(ol);var sl=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map($e);const QN=nt(sl);var cl=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map($e);const eF=nt(cl);function tF(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-e*(35.34-e*(2381.73-e*(6402.7-e*(7024.72-e*2710.57)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-e*67.37)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-e*2475.67)))))))+")"}const nF=sp(Xn(300,.5,0),Xn(-240,.5,1));var rF=sp(Xn(-100,.75,.35),Xn(80,1.5,.8)),aF=sp(Xn(260,.75,.35),Xn(80,1.5,.8)),ws=Xn();function iF(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return ws.h=360*e-100,ws.s=1.5-1.5*t,ws.l=.8-.9*t,ws+""}var Ts=ri(),oF=Math.PI/3,sF=Math.PI*2/3;function cF(e){var t;return e=(.5-e)*Math.PI,Ts.r=255*(t=Math.sin(e))*t,Ts.g=255*(t=Math.sin(e+oF))*t,Ts.b=255*(t=Math.sin(e+sF))*t,Ts+""}function uF(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-e*14825.05)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+e*707.56)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-e*6838.66)))))))+")"}function ul(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}const lF=ul($e("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var dF=ul($e("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),fF=ul($e("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),hF=ul($e("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),pF="__lodash_hash_undefined__";function mF(e){return this.__data__.set(e,pF),this}var gF=mF;function vF(e){return this.__data__.has(e)}var yF=vF,bF=Hh,xF=gF,_F=yF;function Cc(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new bF;++t<n;)this.add(e[t])}Cc.prototype.add=Cc.prototype.push=xF;Cc.prototype.has=_F;var Ep=Cc;function wF(e,t,n,r){for(var a=e.length,i=n+(r?1:-1);r?i--:++i<a;)if(t(e[i],i,e))return i;return-1}var TF=wF;function CF(e){return e!==e}var kF=CF;function SF(e,t,n){for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}var OF=SF,EF=TF,$F=kF,MF=OF;function RF(e,t,n){return t===t?MF(e,t,n):EF(e,$F,n)}var AF=RF,jF=AF;function PF(e,t){var n=e==null?0:e.length;return!!n&&jF(e,t,0)>-1}var R2=PF;function DF(e,t,n){for(var r=-1,a=e==null?0:e.length;++r<a;)if(n(t,e[r]))return!0;return!1}var A2=DF;function IF(e,t){return e.has(t)}var $p=IF,NF=Ep,FF=R2,LF=A2,UF=Eu,WF=ns,BF=$p,zF=200;function HF(e,t,n,r){var a=-1,i=FF,o=!0,s=e.length,c=[],u=t.length;if(!s)return c;n&&(t=UF(t,WF(n))),r?(i=LF,o=!1):t.length>=zF&&(i=BF,o=!1,t=new NF(t));e:for(;++a<s;){var l=e[a],d=n==null?l:n(l);if(l=r||l!==0?l:0,o&&d===d){for(var f=u;f--;)if(t[f]===d)continue e;c.push(l)}else i(t,d,r)||c.push(l)}return c}var VF=HF,qF=VF,YF=ep,GF=Ix,ZF=YF(function(e,t){return GF(e)?qF(e,t):[]}),KF=ZF;const j2=Mt(KF);function ut(e){return function(){return e}}const z0=Math.abs,Ut=Math.atan2,zr=Math.cos,XF=Math.max,ad=Math.min,Wn=Math.sin,Ua=Math.sqrt,Wt=1e-12,Fo=Math.PI,kc=Fo/2,Fs=2*Fo;function JF(e){return e>1?0:e<-1?Fo:Math.acos(e)}function H0(e){return e>=1?kc:e<=-1?-kc:Math.asin(e)}const xf=Math.PI,_f=2*xf,Yr=1e-6,QF=_f-Yr;function P2(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function eL(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return P2;const n=10**t;return function(r){this._+=r[0];for(let a=1,i=r.length;a<i;++a)this._+=Math.round(arguments[a]*n)/n+r[a]}}class tL{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?P2:eL(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,a){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+a}`}bezierCurveTo(t,n,r,a,i,o){this._append`C${+t},${+n},${+r},${+a},${this._x1=+i},${this._y1=+o}`}arcTo(t,n,r,a,i){if(t=+t,n=+n,r=+r,a=+a,i=+i,i<0)throw new Error(`negative radius: ${i}`);let o=this._x1,s=this._y1,c=r-t,u=a-n,l=o-t,d=s-n,f=l*l+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(f>Yr)if(!(Math.abs(d*c-u*l)>Yr)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let h=r-o,g=a-s,v=c*c+u*u,m=h*h+g*g,_=Math.sqrt(v),w=Math.sqrt(f),b=i*Math.tan((xf-Math.acos((v+f-m)/(2*_*w)))/2),T=b/w,x=b/_;Math.abs(T-1)>Yr&&this._append`L${t+T*l},${n+T*d}`,this._append`A${i},${i},0,0,${+(d*h>l*g)},${this._x1=t+x*c},${this._y1=n+x*u}`}}arc(t,n,r,a,i,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(a),c=r*Math.sin(a),u=t+s,l=n+c,d=1^o,f=o?a-i:i-a;this._x1===null?this._append`M${u},${l}`:(Math.abs(this._x1-u)>Yr||Math.abs(this._y1-l)>Yr)&&this._append`L${u},${l}`,r&&(f<0&&(f=f%_f+_f),f>QF?this._append`A${r},${r},0,1,${d},${t-s},${n-c}A${r},${r},0,1,${d},${this._x1=u},${this._y1=l}`:f>Yr&&this._append`A${r},${r},0,${+(f>=xf)},${d},${this._x1=t+r*Math.cos(i)},${this._y1=n+r*Math.sin(i)}`)}rect(t,n,r,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+a}h${-r}Z`}toString(){return this._}}function D2(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new tL(t)}function nL(e){return e.innerRadius}function rL(e){return e.outerRadius}function aL(e){return e.startAngle}function iL(e){return e.endAngle}function oL(e){return e&&e.padAngle}function sL(e,t,n,r,a,i,o,s){var c=n-e,u=r-t,l=o-a,d=s-i,f=d*c-l*u;if(!(f*f<Wt))return f=(l*(t-i)-d*(e-a))/f,[e+f*c,t+f*u]}function Cs(e,t,n,r,a,i,o){var s=e-n,c=t-r,u=(o?i:-i)/Ua(s*s+c*c),l=u*c,d=-u*s,f=e+l,h=t+d,g=n+l,v=r+d,m=(f+g)/2,_=(h+v)/2,w=g-f,b=v-h,T=w*w+b*b,x=a-i,C=f*v-g*h,$=(b<0?-1:1)*Ua(XF(0,x*x*T-C*C)),A=(C*b-w*$)/T,D=(-C*w-b*$)/T,j=(C*b+w*$)/T,E=(-C*w+b*$)/T,F=A-m,M=D-_,R=j-m,I=E-_;return F*F+M*M>R*R+I*I&&(A=j,D=E),{cx:A,cy:D,x01:-l,y01:-d,x11:A*(a/x-1),y11:D*(a/x-1)}}function cL(){var e=nL,t=rL,n=ut(0),r=null,a=aL,i=iL,o=oL,s=null,c=D2(u);function u(){var l,d,f=+e.apply(this,arguments),h=+t.apply(this,arguments),g=a.apply(this,arguments)-kc,v=i.apply(this,arguments)-kc,m=z0(v-g),_=v>g;if(s||(s=l=c()),h<f&&(d=h,h=f,f=d),!(h>Wt))s.moveTo(0,0);else if(m>Fs-Wt)s.moveTo(h*zr(g),h*Wn(g)),s.arc(0,0,h,g,v,!_),f>Wt&&(s.moveTo(f*zr(v),f*Wn(v)),s.arc(0,0,f,v,g,_));else{var w=g,b=v,T=g,x=v,C=m,$=m,A=o.apply(this,arguments)/2,D=A>Wt&&(r?+r.apply(this,arguments):Ua(f*f+h*h)),j=ad(z0(h-f)/2,+n.apply(this,arguments)),E=j,F=j,M,R;if(D>Wt){var I=H0(D/f*Wn(A)),U=H0(D/h*Wn(A));(C-=I*2)>Wt?(I*=_?1:-1,T+=I,x-=I):(C=0,T=x=(g+v)/2),($-=U*2)>Wt?(U*=_?1:-1,w+=U,b-=U):($=0,w=b=(g+v)/2)}var N=h*zr(w),q=h*Wn(w),z=f*zr(x),P=f*Wn(x);if(j>Wt){var B=h*zr(b),Z=h*Wn(b),ne=f*zr(T),Y=f*Wn(T),Q;if(m<Fo)if(Q=sL(N,q,ne,Y,B,Z,z,P)){var G=N-Q[0],J=q-Q[1],re=B-Q[0],L=Z-Q[1],V=1/Wn(JF((G*re+J*L)/(Ua(G*G+J*J)*Ua(re*re+L*L)))/2),ae=Ua(Q[0]*Q[0]+Q[1]*Q[1]);E=ad(j,(f-ae)/(V-1)),F=ad(j,(h-ae)/(V+1))}else E=F=0}$>Wt?F>Wt?(M=Cs(ne,Y,N,q,h,F,_),R=Cs(B,Z,z,P,h,F,_),s.moveTo(M.cx+M.x01,M.cy+M.y01),F<j?s.arc(M.cx,M.cy,F,Ut(M.y01,M.x01),Ut(R.y01,R.x01),!_):(s.arc(M.cx,M.cy,F,Ut(M.y01,M.x01),Ut(M.y11,M.x11),!_),s.arc(0,0,h,Ut(M.cy+M.y11,M.cx+M.x11),Ut(R.cy+R.y11,R.cx+R.x11),!_),s.arc(R.cx,R.cy,F,Ut(R.y11,R.x11),Ut(R.y01,R.x01),!_))):(s.moveTo(N,q),s.arc(0,0,h,w,b,!_)):s.moveTo(N,q),!(f>Wt)||!(C>Wt)?s.lineTo(z,P):E>Wt?(M=Cs(z,P,B,Z,f,-E,_),R=Cs(N,q,ne,Y,f,-E,_),s.lineTo(M.cx+M.x01,M.cy+M.y01),E<j?s.arc(M.cx,M.cy,E,Ut(M.y01,M.x01),Ut(R.y01,R.x01),!_):(s.arc(M.cx,M.cy,E,Ut(M.y01,M.x01),Ut(M.y11,M.x11),!_),s.arc(0,0,f,Ut(M.cy+M.y11,M.cx+M.x11),Ut(R.cy+R.y11,R.cx+R.x11),_),s.arc(R.cx,R.cy,E,Ut(R.y11,R.x11),Ut(R.y01,R.x01),!_))):s.arc(0,0,f,x,T,_)}if(s.closePath(),l)return s=null,l+""||null}return u.centroid=function(){var l=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,d=(+a.apply(this,arguments)+ +i.apply(this,arguments))/2-Fo/2;return[zr(d)*l,Wn(d)*l]},u.innerRadius=function(l){return arguments.length?(e=typeof l=="function"?l:ut(+l),u):e},u.outerRadius=function(l){return arguments.length?(t=typeof l=="function"?l:ut(+l),u):t},u.cornerRadius=function(l){return arguments.length?(n=typeof l=="function"?l:ut(+l),u):n},u.padRadius=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:ut(+l),u):r},u.startAngle=function(l){return arguments.length?(a=typeof l=="function"?l:ut(+l),u):a},u.endAngle=function(l){return arguments.length?(i=typeof l=="function"?l:ut(+l),u):i},u.padAngle=function(l){return arguments.length?(o=typeof l=="function"?l:ut(+l),u):o},u.context=function(l){return arguments.length?(s=l??null,u):s},u}function Mp(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function I2(e){this._context=e}I2.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function N2(e){return new I2(e)}function uL(e){return e[0]}function lL(e){return e[1]}function dL(e,t){var n=ut(!0),r=null,a=N2,i=null,o=D2(s);e=typeof e=="function"?e:e===void 0?uL:ut(e),t=typeof t=="function"?t:t===void 0?lL:ut(t);function s(c){var u,l=(c=Mp(c)).length,d,f=!1,h;for(r==null&&(i=a(h=o())),u=0;u<=l;++u)!(u<l&&n(d=c[u],u,c))===f&&((f=!f)?i.lineStart():i.lineEnd()),f&&i.point(+e(d,u,c),+t(d,u,c));if(h)return i=null,h+""||null}return s.x=function(c){return arguments.length?(e=typeof c=="function"?c:ut(+c),s):e},s.y=function(c){return arguments.length?(t=typeof c=="function"?c:ut(+c),s):t},s.defined=function(c){return arguments.length?(n=typeof c=="function"?c:ut(!!c),s):n},s.curve=function(c){return arguments.length?(a=c,r!=null&&(i=a(r)),s):a},s.context=function(c){return arguments.length?(c==null?r=i=null:i=a(r=c),s):r},s}function fL(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function hL(e){return e}function pL(){var e=hL,t=fL,n=null,r=ut(0),a=ut(Fs),i=ut(0);function o(s){var c,u=(s=Mp(s)).length,l,d,f=0,h=new Array(u),g=new Array(u),v=+r.apply(this,arguments),m=Math.min(Fs,Math.max(-Fs,a.apply(this,arguments)-v)),_,w=Math.min(Math.abs(m)/u,i.apply(this,arguments)),b=w*(m<0?-1:1),T;for(c=0;c<u;++c)(T=g[h[c]=c]=+e(s[c],c,s))>0&&(f+=T);for(t!=null?h.sort(function(x,C){return t(g[x],g[C])}):n!=null&&h.sort(function(x,C){return n(s[x],s[C])}),c=0,d=f?(m-u*b)/f:0;c<u;++c,v=_)l=h[c],T=g[l],_=v+(T>0?T*d:0)+b,g[l]={data:s[l],index:c,value:T,startAngle:v,endAngle:_,padAngle:w};return g}return o.value=function(s){return arguments.length?(e=typeof s=="function"?s:ut(+s),o):e},o.sortValues=function(s){return arguments.length?(t=s,n=null,o):t},o.sort=function(s){return arguments.length?(n=s,t=null,o):n},o.startAngle=function(s){return arguments.length?(r=typeof s=="function"?s:ut(+s),o):r},o.endAngle=function(s){return arguments.length?(a=typeof s=="function"?s:ut(+s),o):a},o.padAngle=function(s){return arguments.length?(i=typeof s=="function"?s:ut(+s),o):i},o}function Fr(){}function Sc(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function ll(e){this._context=e}ll.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Sc(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Sc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function mL(e){return new ll(e)}function F2(e){this._context=e}F2.prototype={areaStart:Fr,areaEnd:Fr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Sc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function gL(e){return new F2(e)}function L2(e){this._context=e}L2.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Sc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function vL(e){return new L2(e)}function U2(e,t){this._basis=new ll(e),this._beta=t}U2.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],a=t[0],i=e[n]-r,o=t[n]-a,s=-1,c;++s<=n;)c=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+c*i),this._beta*t[s]+(1-this._beta)*(a+c*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const yL=function e(t){function n(r){return t===1?new ll(r):new U2(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function Oc(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function Rp(e,t){this._context=e,this._k=(1-t)/6}Rp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Oc(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Oc(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const bL=function e(t){function n(r){return new Rp(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Ap(e,t){this._context=e,this._k=(1-t)/6}Ap.prototype={areaStart:Fr,areaEnd:Fr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Oc(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const xL=function e(t){function n(r){return new Ap(r,t)}return n.tension=function(r){return e(+r)},n}(0);function jp(e,t){this._context=e,this._k=(1-t)/6}jp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Oc(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const _L=function e(t){function n(r){return new jp(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Pp(e,t,n){var r=e._x1,a=e._y1,i=e._x2,o=e._y2;if(e._l01_a>Wt){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,a=(a*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>Wt){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,l=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*u+e._x1*e._l23_2a-t*e._l12_2a)/l,o=(o*u+e._y1*e._l23_2a-n*e._l12_2a)/l}e._context.bezierCurveTo(r,a,i,o,e._x2,e._y2)}function W2(e,t){this._context=e,this._alpha=t}W2.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:Pp(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const wL=function e(t){function n(r){return t?new W2(r,t):new Rp(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function B2(e,t){this._context=e,this._alpha=t}B2.prototype={areaStart:Fr,areaEnd:Fr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Pp(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const TL=function e(t){function n(r){return t?new B2(r,t):new Ap(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function z2(e,t){this._context=e,this._alpha=t}z2.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Pp(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const CL=function e(t){function n(r){return t?new z2(r,t):new jp(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function H2(e){this._context=e}H2.prototype={areaStart:Fr,areaEnd:Fr,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function kL(e){return new H2(e)}function V0(e){return e<0?-1:1}function q0(e,t,n){var r=e._x1-e._x0,a=t-e._x1,i=(e._y1-e._y0)/(r||a<0&&-0),o=(n-e._y1)/(a||r<0&&-0),s=(i*a+o*r)/(r+a);return(V0(i)+V0(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(s))||0}function Y0(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function id(e,t,n){var r=e._x0,a=e._y0,i=e._x1,o=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,a+s*t,i-s,o-s*n,i,o)}function Ec(e){this._context=e}Ec.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:id(this,this._t0,Y0(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,id(this,Y0(this,n=q0(this,e,t)),n);break;default:id(this,this._t0,n=q0(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function V2(e){this._context=new q2(e)}(V2.prototype=Object.create(Ec.prototype)).point=function(e,t){Ec.prototype.point.call(this,t,e)};function q2(e){this._context=e}q2.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,a,i){this._context.bezierCurveTo(t,e,r,n,i,a)}};function SL(e){return new Ec(e)}function OL(e){return new V2(e)}function Y2(e){this._context=e}Y2.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=G0(e),a=G0(t),i=0,o=1;o<n;++i,++o)this._context.bezierCurveTo(r[0][i],a[0][i],r[1][i],a[1][i],e[o],t[o]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function G0(e){var t,n=e.length-1,r,a=new Array(n),i=new Array(n),o=new Array(n);for(a[0]=0,i[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)a[t]=1,i[t]=4,o[t]=4*e[t]+2*e[t+1];for(a[n-1]=2,i[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=a[t]/i[t-1],i[t]-=r,o[t]-=r*o[t-1];for(a[n-1]=o[n-1]/i[n-1],t=n-2;t>=0;--t)a[t]=(o[t]-a[t+1])/i[t];for(i[n-1]=(e[n]+a[n-1])/2,t=0;t<n-1;++t)i[t]=2*e[t+1]-a[t+1];return[a,i]}function EL(e){return new Y2(e)}function dl(e,t){this._context=e,this._t=t}dl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function $L(e){return new dl(e,.5)}function ML(e){return new dl(e,0)}function RL(e){return new dl(e,1)}function Z0(e,t){if((o=e.length)>1)for(var n=1,r,a,i=e[t[0]],o,s=i.length;n<o;++n)for(a=i,i=e[t[n]],r=0;r<s;++r)i[r][1]+=i[r][0]=isNaN(a[r][1])?a[r][0]:a[r][1]}function K0(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function AL(e,t){return e[t]}function jL(e){const t=[];return t.key=e,t}function PL(){var e=ut([]),t=K0,n=Z0,r=AL;function a(i){var o=Array.from(e.apply(this,arguments),jL),s,c=o.length,u=-1,l;for(const d of i)for(s=0,++u;s<c;++s)(o[s][u]=[0,+r(d,o[s].key,u,i)]).data=d;for(s=0,l=Mp(t(o));s<c;++s)o[l[s]].index=s;return n(o,l),o}return a.keys=function(i){return arguments.length?(e=typeof i=="function"?i:ut(Array.from(i)),a):e},a.value=function(i){return arguments.length?(r=typeof i=="function"?i:ut(+i),a):r},a.order=function(i){return arguments.length?(t=i==null?K0:typeof i=="function"?i:ut(Array.from(i)),a):t},a.offset=function(i){return arguments.length?(n=i??Z0,a):n},a}function DL(e,t){if((c=e.length)>0)for(var n,r=0,a,i,o,s,c,u=e[t[0]].length;r<u;++r)for(o=s=0,n=0;n<c;++n)(i=(a=e[t[n]][r])[1]-a[0])>0?(a[0]=o,a[1]=o+=i):i<0?(a[1]=s,a[0]=s+=i):(a[0]=0,a[1]=i)}var IL=as,NL=Yx,FL=wi;function LL(e,t,n){for(var r=-1,a=t.length,i={};++r<a;){var o=t[r],s=IL(e,o);n(s,o)&&NL(i,FL(o,e),s)}return i}var UL=LL;function WL(e,t){return e!=null&&t in Object(e)}var BL=WL,zL=wi,HL=wu,VL=cn,qL=ku,YL=Zh,GL=Ti;function ZL(e,t,n){t=zL(t,e);for(var r=-1,a=t.length,i=!1;++r<a;){var o=GL(t[r]);if(!(i=e!=null&&n(e,o)))break;e=e[o]}return i||++r!=a?i:(a=e==null?0:e.length,!!a&&YL(a)&&qL(o,a)&&(VL(e)||HL(e)))}var KL=ZL,XL=BL,JL=KL;function QL(e,t){return e!=null&&JL(e,t,XL)}var G2=QL,eU=UL,tU=G2;function nU(e,t){return eU(e,t,function(n,r){return tU(e,r)})}var rU=nU;function aU(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}var Dp=aU,X0=gi,iU=wu,oU=cn,J0=X0?X0.isConcatSpreadable:void 0;function sU(e){return oU(e)||iU(e)||!!(J0&&e&&e[J0])}var cU=sU,uU=Dp,lU=cU;function Z2(e,t,n,r,a){var i=-1,o=e.length;for(n||(n=lU),a||(a=[]);++i<o;){var s=e[i];t>0&&n(s)?t>1?Z2(s,t-1,n,r,a):uU(a,s):r||(a[a.length]=s)}return a}var K2=Z2,dU=K2;function fU(e){var t=e==null?0:e.length;return t?dU(e,1):[]}var hU=fU,pU=hU,mU=Wx,gU=Bx;function vU(e){return gU(mU(e,void 0,pU),e+"")}var X2=vU,yU=rU,bU=X2,xU=bU(function(e,t){return e==null?{}:yU(e,t)}),_U=xU;const wU=Mt(_U);function TU(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var CU=TU,kU=Ep,SU=CU,OU=$p,EU=1,$U=2;function MU(e,t,n,r,a,i){var o=n&EU,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var u=i.get(e),l=i.get(t);if(u&&l)return u==t&&l==e;var d=-1,f=!0,h=n&$U?new kU:void 0;for(i.set(e,t),i.set(t,e);++d<s;){var g=e[d],v=t[d];if(r)var m=o?r(v,g,d,t,e,i):r(g,v,d,e,t,i);if(m!==void 0){if(m)continue;f=!1;break}if(h){if(!SU(t,function(_,w){if(!OU(h,w)&&(g===_||a(g,_,n,r,i)))return h.push(w)})){f=!1;break}}else if(!(g===v||a(g,v,n,r,i))){f=!1;break}}return i.delete(e),i.delete(t),f}var J2=MU;function RU(e){var t=-1,n=Array(e.size);return e.forEach(function(r,a){n[++t]=[a,r]}),n}var AU=RU;function jU(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Ip=jU,Q0=gi,ev=Mx,PU=ts,DU=J2,IU=AU,NU=Ip,FU=1,LU=2,UU="[object Boolean]",WU="[object Date]",BU="[object Error]",zU="[object Map]",HU="[object Number]",VU="[object RegExp]",qU="[object Set]",YU="[object String]",GU="[object Symbol]",ZU="[object ArrayBuffer]",KU="[object DataView]",tv=Q0?Q0.prototype:void 0,od=tv?tv.valueOf:void 0;function XU(e,t,n,r,a,i,o){switch(n){case KU:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ZU:return!(e.byteLength!=t.byteLength||!i(new ev(e),new ev(t)));case UU:case WU:case HU:return PU(+e,+t);case BU:return e.name==t.name&&e.message==t.message;case VU:case YU:return e==t+"";case zU:var s=IU;case qU:var c=r&FU;if(s||(s=NU),e.size!=t.size&&!c)return!1;var u=o.get(e);if(u)return u==t;r|=LU,o.set(e,t);var l=DU(s(e),s(t),r,a,i,o);return o.delete(e),l;case GU:if(od)return od.call(e)==od.call(t)}return!1}var JU=XU,QU=Dp,eW=cn;function tW(e,t,n){var r=t(e);return eW(e)?r:QU(r,n(e))}var Q2=tW;function nW(e,t){for(var n=-1,r=e==null?0:e.length,a=0,i=[];++n<r;){var o=e[n];t(o,n,e)&&(i[a++]=o)}return i}var e_=nW;function rW(){return[]}var t_=rW,aW=e_,iW=t_,oW=Object.prototype,sW=oW.propertyIsEnumerable,nv=Object.getOwnPropertySymbols,cW=nv?function(e){return e==null?[]:(e=Object(e),aW(nv(e),function(t){return sW.call(e,t)}))}:iW,Np=cW,uW=jx,lW=uW(Object.keys,Object),dW=lW,fW=Gh,hW=dW,pW=Object.prototype,mW=pW.hasOwnProperty;function gW(e){if(!fW(e))return hW(e);var t=[];for(var n in Object(e))mW.call(e,n)&&n!="constructor"&&t.push(n);return t}var vW=gW,yW=Lx,bW=vW,xW=xi;function _W(e){return xW(e)?yW(e):bW(e)}var os=_W,wW=Q2,TW=Np,CW=os;function kW(e){return wW(e,CW,TW)}var n_=kW,rv=n_,SW=1,OW=Object.prototype,EW=OW.hasOwnProperty;function $W(e,t,n,r,a,i){var o=n&SW,s=rv(e),c=s.length,u=rv(t),l=u.length;if(c!=l&&!o)return!1;for(var d=c;d--;){var f=s[d];if(!(o?f in t:EW.call(t,f)))return!1}var h=i.get(e),g=i.get(t);if(h&&g)return h==t&&g==e;var v=!0;i.set(e,t),i.set(t,e);for(var m=o;++d<c;){f=s[d];var _=e[f],w=t[f];if(r)var b=o?r(w,_,f,t,e,i):r(_,w,f,e,t,i);if(!(b===void 0?_===w||a(_,w,n,r,i):b)){v=!1;break}m||(m=f=="constructor")}if(v&&!m){var T=e.constructor,x=t.constructor;T!=x&&"constructor"in e&&"constructor"in t&&!(typeof T=="function"&&T instanceof T&&typeof x=="function"&&x instanceof x)&&(v=!1)}return i.delete(e),i.delete(t),v}var MW=$W,RW=_a,AW=Qn,jW=RW(AW,"DataView"),PW=jW,DW=_a,IW=Qn,NW=DW(IW,"Promise"),FW=NW,LW=_a,UW=Qn,WW=LW(UW,"Set"),r_=WW,BW=_a,zW=Qn,HW=BW(zW,"WeakMap"),VW=HW,wf=PW,Tf=zh,Cf=FW,kf=r_,Sf=VW,a_=Br,ki=kx,av="[object Map]",qW="[object Object]",iv="[object Promise]",ov="[object Set]",sv="[object WeakMap]",cv="[object DataView]",YW=ki(wf),GW=ki(Tf),ZW=ki(Cf),KW=ki(kf),XW=ki(Sf),Gr=a_;(wf&&Gr(new wf(new ArrayBuffer(1)))!=cv||Tf&&Gr(new Tf)!=av||Cf&&Gr(Cf.resolve())!=iv||kf&&Gr(new kf)!=ov||Sf&&Gr(new Sf)!=sv)&&(Gr=function(e){var t=a_(e),n=t==qW?e.constructor:void 0,r=n?ki(n):"";if(r)switch(r){case YW:return cv;case GW:return av;case ZW:return iv;case KW:return ov;case XW:return sv}return t});var fl=Gr,sd=_u,JW=J2,QW=JU,eB=MW,uv=fl,lv=cn,dv=Tu,tB=Jh,nB=1,fv="[object Arguments]",hv="[object Array]",ks="[object Object]",rB=Object.prototype,pv=rB.hasOwnProperty;function aB(e,t,n,r,a,i){var o=lv(e),s=lv(t),c=o?hv:uv(e),u=s?hv:uv(t);c=c==fv?ks:c,u=u==fv?ks:u;var l=c==ks,d=u==ks,f=c==u;if(f&&dv(e)){if(!dv(t))return!1;o=!0,l=!1}if(f&&!l)return i||(i=new sd),o||tB(e)?JW(e,t,n,r,a,i):QW(e,t,c,n,r,a,i);if(!(n&nB)){var h=l&&pv.call(e,"__wrapped__"),g=d&&pv.call(t,"__wrapped__");if(h||g){var v=h?e.value():e,m=g?t.value():t;return i||(i=new sd),a(v,m,n,r,i)}}return f?(i||(i=new sd),eB(e,t,n,r,a,i)):!1}var iB=aB,oB=iB,mv=Un;function i_(e,t,n,r,a){return e===t?!0:e==null||t==null||!mv(e)&&!mv(t)?e!==e&&t!==t:oB(e,t,n,r,i_,a)}var Fp=i_,sB=Fp;function cB(e,t){return sB(e,t)}var uB=cB;const lB=Mt(uB);var dB={background:"transparent",text:{fontFamily:"sans-serif",fontSize:11,fill:"#333333",outlineWidth:0,outlineColor:"transparent",outlineOpacity:1},axis:{domain:{line:{stroke:"transparent",strokeWidth:1}},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{}},legend:{text:{fontSize:12}}},grid:{line:{stroke:"#dddddd",strokeWidth:1}},legends:{hidden:{symbol:{fill:"#333333",opacity:.6},text:{fill:"#333333",opacity:.6}},text:{},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{fontSize:10}},title:{text:{}}},labels:{text:{}},markers:{lineColor:"#000000",lineStrokeWidth:1,text:{}},dots:{text:{}},tooltip:{container:{background:"white",color:"inherit",fontSize:"inherit",borderRadius:"2px",boxShadow:"0 1px 2px rgba(0, 0, 0, 0.25)",padding:"5px 9px"},basic:{whiteSpace:"pre",display:"flex",alignItems:"center"},chip:{marginRight:7},table:{},tableCell:{padding:"3px 5px"},tableCellValue:{fontWeight:"bold"}},crosshair:{line:{stroke:"#000000",strokeWidth:1,strokeOpacity:.75,strokeDasharray:"6 6"}},annotations:{text:{fontSize:13,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},link:{stroke:"#000000",strokeWidth:1,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},outline:{fill:"none",stroke:"#000000",strokeWidth:2,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},symbol:{fill:"#000000",outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1}}};function In(){return In=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},In.apply(this,arguments)}function Lp(e,t){if(e==null)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}var fB=["axis.ticks.text","axis.legend.text","legends.title.text","legends.text","legends.ticks.text","legends.title.text","labels.text","dots.text","markers.text","annotations.text"],hB=function(e,t){return In({},t,e)},pB=function(e,t){var n=jj({},e,t);return fB.forEach(function(r){Ki(n,r,hB(pr(n,r),n.text))}),n},o_=p.createContext(),s_=function(e){var t=e.children,n=e.animate,r=n===void 0||n,a=e.config,i=a===void 0?"default":a,o=p.useMemo(function(){var s=dD(i)?Lh[i]:i;return{animate:r,config:s}},[r,i]);return y.jsx(o_.Provider,{value:o,children:t})},gv={animate:O.bool,motionConfig:O.oneOfType([O.oneOf(Object.keys(Lh)),O.shape({mass:O.number,tension:O.number,friction:O.number,clamp:O.bool,precision:O.number,velocity:O.number,duration:O.number,easing:O.func})])};s_.propTypes={children:O.node.isRequired,animate:gv.animate,config:gv.motionConfig};var un=function(){return p.useContext(o_)},mB=function(e){var t=un(),n=t.animate,r=t.config,a=function(s){var c=p.useRef();return p.useEffect(function(){c.current=s},[s]),c.current}(e),i=p.useMemo(function(){return Jx(a,e)},[a,e]),o=vr({from:{value:0},to:{value:1},reset:!0,config:r,immediate:!n}).value;return Nr(o,i)},gB={nivo:["#d76445","#f47560","#e8c1a0","#97e3d5","#61cdbb","#00b0a7"],BrBG:ye(Iu),PRGn:ye(Nu),PiYG:ye(Fu),PuOr:ye(Lu),RdBu:ye(Uu),RdGy:ye(Wu),RdYlBu:ye(Bu),RdYlGn:ye(zu),spectral:ye(Hu),blues:ye(rl),greens:ye(al),greys:ye(il),oranges:ye(cl),purples:ye(ol),reds:ye(sl),BuGn:ye(Vu),BuPu:ye(qu),GnBu:ye(Yu),OrRd:ye(Gu),PuBuGn:ye(Zu),PuBu:ye(Ku),PuRd:ye(Xu),RdPu:ye(Ju),YlGnBu:ye(Qu),YlGn:ye(el),YlOrBr:ye(tl),YlOrRd:ye(nl)},vB=Object.keys(gB);ye(Iu),ye(Nu),ye(Fu),ye(Lu),ye(Uu),ye(Wu),ye(Bu),ye(zu),ye(Hu),ye(rl),ye(al),ye(il),ye(cl),ye(ol),ye(sl),ye(Vu),ye(qu),ye(Yu),ye(Gu),ye(Zu),ye(Ku),ye(Xu),ye(Ju),ye(Qu),ye(el),ye(tl),ye(nl);O.oneOfType([O.oneOf(vB),O.func,O.arrayOf(O.string)]);var yB={basis:mL,basisClosed:gL,basisOpen:vL,bundle:yL,cardinal:bL,cardinalClosed:xL,cardinalOpen:_L,catmullRom:wL,catmullRomClosed:TL,catmullRomOpen:CL,linear:N2,linearClosed:kL,monotoneX:SL,monotoneY:OL,natural:EL,step:$L,stepAfter:RL,stepBefore:ML},Up=Object.keys(yB);Up.filter(function(e){return e.endsWith("Closed")});j2(Up,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");j2(Up,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");O.shape({top:O.number,right:O.number,bottom:O.number,left:O.number}).isRequired;var bB=["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"];O.oneOf(bB);Jr(Op);var xB={top:0,right:0,bottom:0,left:0},Wp=function(e,t,n){return n===void 0&&(n={}),p.useMemo(function(){var r=In({},xB,n);return{margin:r,innerWidth:e-r.left-r.right,innerHeight:t-r.top-r.bottom,outerWidth:e,outerHeight:t}},[e,t,n.top,n.right,n.bottom,n.left])},c_=function(){var e=p.useRef(null),t=p.useState({left:0,top:0,width:0,height:0}),n=t[0],r=t[1],a=p.useState(function(){return typeof ResizeObserver>"u"?null:new ResizeObserver(function(i){var o=i[0];return r(o.contentRect)})})[0];return p.useEffect(function(){return e.current&&a!==null&&a.observe(e.current),function(){a!==null&&a.disconnect()}},[]),[e,n]},_B=function(e){return p.useMemo(function(){return pB(dB,e)},[e])},wB=function(e){return typeof e=="function"?e:typeof e=="string"?e.indexOf("time:")===0?Du(e.slice("5")):is(e):function(t){return""+t}},hl=function(e){return p.useMemo(function(){return wB(e)},[e])},u_=p.createContext(),TB={},l_=function(e){var t=e.theme,n=t===void 0?TB:t,r=e.children,a=_B(n);return y.jsx(u_.Provider,{value:a,children:r})};l_.propTypes={children:O.node.isRequired,theme:O.object};var lt=function(){return p.useContext(u_)},CB=["outlineWidth","outlineColor","outlineOpacity"],Bp=function(e){return e.outlineWidth,e.outlineColor,e.outlineOpacity,Lp(e,CB)},d_=function(e){var t=e.children,n=e.condition,r=e.wrapper;return n?p.cloneElement(r,{},t):t};d_.propTypes={children:O.node.isRequired,condition:O.bool.isRequired,wrapper:O.element.isRequired};var kB={position:"relative"},pl=function(e){var t=e.children,n=e.theme,r=e.renderWrapper,a=r===void 0||r,i=e.isInteractive,o=i===void 0||i,s=e.animate,c=e.motionConfig,u=p.useRef(null);return y.jsx(l_,{theme:n,children:y.jsx(s_,{animate:s,config:c,children:y.jsx(m8,{container:u,children:y.jsxs(d_,{condition:a,wrapper:y.jsx("div",{style:kB,ref:u}),children:[t,o&&y.jsx(p8,{})]})})})})};pl.propTypes={children:O.element.isRequired,isInteractive:O.bool,renderWrapper:O.bool,theme:O.object,animate:O.bool,motionConfig:O.string};O.func.isRequired,O.bool,O.bool,O.object.isRequired,O.bool.isRequired,O.string;var ml=function(e){var t=e.children,n=c_(),r=n[0],a=n[1],i=a.width>0&&a.height>0;return y.jsx("div",{ref:r,style:{width:"100%",height:"100%"},children:i&&t({width:a.width,height:a.height})})};ml.propTypes={children:O.func.isRequired};var SB=["id","colors"],f_=function(e){var t=e.id,n=e.colors,r=Lp(e,SB);return y.jsx("linearGradient",In({id:t,x1:0,x2:0,y1:0,y2:1},r,{children:n.map(function(a){var i=a.offset,o=a.color,s=a.opacity;return y.jsx("stop",{offset:i+"%",stopColor:o,stopOpacity:s!==void 0?s:1},i)})}))};f_.propTypes={id:O.string.isRequired,colors:O.arrayOf(O.shape({offset:O.number.isRequired,color:O.string.isRequired,opacity:O.number})).isRequired,gradientTransform:O.string};var h_={linearGradient:f_},zi={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1},Of=p.memo(function(e){var t=e.id,n=e.background,r=n===void 0?zi.background:n,a=e.color,i=a===void 0?zi.color:a,o=e.size,s=o===void 0?zi.size:o,c=e.padding,u=c===void 0?zi.padding:c,l=e.stagger,d=l===void 0?zi.stagger:l,f=s+u,h=s/2,g=u/2;return d===!0&&(f=2*s+2*u),y.jsxs("pattern",{id:t,width:f,height:f,patternUnits:"userSpaceOnUse",children:[y.jsx("rect",{width:f,height:f,fill:r}),y.jsx("circle",{cx:g+h,cy:g+h,r:h,fill:i}),d&&y.jsx("circle",{cx:1.5*u+s+h,cy:1.5*u+s+h,r:h,fill:i})]})});Of.displayName="PatternDots",Of.propTypes={id:O.string.isRequired,color:O.string.isRequired,background:O.string.isRequired,size:O.number.isRequired,padding:O.number.isRequired,stagger:O.bool.isRequired};var kn=function(e){return e*Math.PI/180},gl=function(e){return 180*e/Math.PI},OB=function(e){return e.startAngle+(e.endAngle-e.startAngle)/2},oa=function(e,t){return{x:Math.cos(e)*t,y:Math.sin(e)*t}},EB=function(e){var t=e%360;return t<0&&(t+=360),t},$B={svg:{align:{left:"start",center:"middle",right:"end",start:"start",middle:"middle",end:"end"},baseline:{top:"text-before-edge",center:"central",bottom:"alphabetic"}},canvas:{align:{left:"left",center:"center",right:"right",start:"left",middle:"center",end:"right"},baseline:{top:"top",center:"middle",bottom:"bottom"}}},Hi={spacing:5,rotation:0,background:"#000000",color:"#ffffff",lineWidth:2},Ef=p.memo(function(e){var t=e.id,n=e.spacing,r=n===void 0?Hi.spacing:n,a=e.rotation,i=a===void 0?Hi.rotation:a,o=e.background,s=o===void 0?Hi.background:o,c=e.color,u=c===void 0?Hi.color:c,l=e.lineWidth,d=l===void 0?Hi.lineWidth:l,f=Math.round(i)%360,h=Math.abs(r);f>180?f-=360:f>90?f-=180:f<-180?f+=360:f<-90&&(f+=180);var g,v=h,m=h;return f===0?g=`
|
|
254
254
|
M 0 0 L `+v+` 0
|
|
255
255
|
M 0 `+m+" L "+v+" "+m+`
|
|
256
256
|
`:f===90?g=`
|