"use strict";(globalThis.webpackChunkburst_statistics=globalThis.webpackChunkburst_statistics||[]).push([[764],{1821:(e,t,n)=>{n.d(t,{c:()=>r});const r=n(180).default},6611:(e,t,n)=>{n.d(t,{w:()=>o});var r={};function o(){return r}},8092:(e,t,n)=>{n.d(t,{c:()=>i});var r=function(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"});default:return t.date({width:"full"})}},o=function(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"});default:return t.time({width:"full"})}};const i={p:o,P:function(e,t){var n,i=e.match(/(P+)(p+)?/)||[],a=i[1],s=i[2];if(!s)return r(e,t);switch(a){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",r(a,t)).replace("{{time}}",o(s,t))}}},7e3:(e,t,n)=>{function r(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}n.d(t,{c:()=>r})},868:(e,t,n)=>{n.d(t,{c:()=>u});var r=n(1548),o=n(9136),i=n(1408),a=n(8936),s=6048e5;function u(e){(0,a.c)(1,arguments);var t=(0,r.c)(e),n=(0,o.c)(t).getTime()-function(e){(0,a.c)(1,arguments);var t=(0,i.c)(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),(0,o.c)(n)}(t).getTime();return Math.round(n/s)+1}},1408:(e,t,n)=>{n.d(t,{c:()=>a});var r=n(1548),o=n(8936),i=n(9136);function a(e){(0,o.c)(1,arguments);var t=(0,r.c)(e),n=t.getUTCFullYear(),a=new Date(0);a.setUTCFullYear(n+1,0,4),a.setUTCHours(0,0,0,0);var s=(0,i.c)(a),u=new Date(0);u.setUTCFullYear(n,0,4),u.setUTCHours(0,0,0,0);var l=(0,i.c)(u);return t.getTime()>=s.getTime()?n+1:t.getTime()>=l.getTime()?n:n-1}},6568:(e,t,n)=>{n.d(t,{c:()=>c});var r=n(1548),o=n(5820),i=n(7744),a=n(8936),s=n(9472),u=n(6611),l=6048e5;function c(e,t){(0,a.c)(1,arguments);var n=(0,r.c)(e),c=(0,o.c)(n,t).getTime()-function(e,t){var n,r,l,c,d,f,h,m;(0,a.c)(1,arguments);var p=(0,u.w)(),g=(0,s.c)(null!==(n=null!==(r=null!==(l=null!==(c=null==t?void 0:t.firstWeekContainsDate)&&void 0!==c?c:null==t||null===(d=t.locale)||void 0===d||null===(f=d.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==l?l:p.firstWeekContainsDate)&&void 0!==r?r:null===(h=p.locale)||void 0===h||null===(m=h.options)||void 0===m?void 0:m.firstWeekContainsDate)&&void 0!==n?n:1),v=(0,i.c)(e,t),y=new Date(0);return y.setUTCFullYear(v,0,g),y.setUTCHours(0,0,0,0),(0,o.c)(y,t)}(n,t).getTime();return Math.round(c/l)+1}},7744:(e,t,n)=>{n.d(t,{c:()=>u});var r=n(1548),o=n(8936),i=n(5820),a=n(9472),s=n(6611);function u(e,t){var n,u,l,c,d,f,h,m;(0,o.c)(1,arguments);var p=(0,r.c)(e),g=p.getUTCFullYear(),v=(0,s.w)(),y=(0,a.c)(null!==(n=null!==(u=null!==(l=null!==(c=null==t?void 0:t.firstWeekContainsDate)&&void 0!==c?c:null==t||null===(d=t.locale)||void 0===d||null===(f=d.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==l?l:v.firstWeekContainsDate)&&void 0!==u?u:null===(h=v.locale)||void 0===h||null===(m=h.options)||void 0===m?void 0:m.firstWeekContainsDate)&&void 0!==n?n:1);if(!(y>=1&&y<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var w=new Date(0);w.setUTCFullYear(g+1,0,y),w.setUTCHours(0,0,0,0);var b=(0,i.c)(w,t),x=new Date(0);x.setUTCFullYear(g,0,y),x.setUTCHours(0,0,0,0);var T=(0,i.c)(x,t);return p.getTime()>=b.getTime()?g+1:p.getTime()>=T.getTime()?g:g-1}},500:(e,t,n)=>{n.d(t,{Yv:()=>s,oF:()=>i,q0:()=>a});var r=["D","DD"],o=["YY","YYYY"];function i(e){return-1!==r.indexOf(e)}function a(e){return-1!==o.indexOf(e)}function s(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}},8936:(e,t,n)=>{function r(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}n.d(t,{c:()=>r})},9136:(e,t,n)=>{n.d(t,{c:()=>i});var r=n(1548),o=n(8936);function i(e){(0,o.c)(1,arguments);var t=(0,r.c)(e),n=t.getUTCDay(),i=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-i),t.setUTCHours(0,0,0,0),t}},5820:(e,t,n)=>{n.d(t,{c:()=>s});var r=n(1548),o=n(8936),i=n(9472),a=n(6611);function s(e,t){var n,s,u,l,c,d,f,h;(0,o.c)(1,arguments);var m=(0,a.w)(),p=(0,i.c)(null!==(n=null!==(s=null!==(u=null!==(l=null==t?void 0:t.weekStartsOn)&&void 0!==l?l:null==t||null===(c=t.locale)||void 0===c||null===(d=c.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==u?u:m.weekStartsOn)&&void 0!==s?s:null===(f=m.locale)||void 0===f||null===(h=f.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==n?n:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=(0,r.c)(e),v=g.getUTCDay(),y=(v<p?7:0)+v-p;return g.setUTCDate(g.getUTCDate()-y),g.setUTCHours(0,0,0,0),g}},9472:(e,t,n)=>{function r(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}n.d(t,{c:()=>r})},4484:(e,t,n)=>{n.r(t),n.d(t,{default:()=>a});var r=n(9472),o=n(1548),i=n(8936);function a(e,t){(0,i.c)(2,arguments);var n=(0,o.c)(e),a=(0,r.c)(t);return isNaN(a)?new Date(NaN):a?(n.setDate(n.getDate()+a),n):n}},7172:(e,t,n)=>{n.r(t),n.d(t,{default:()=>a});var r=n(9472),o=n(1548),i=n(8936);function a(e,t){(0,i.c)(2,arguments);var n=(0,o.c)(e),a=(0,r.c)(t);if(isNaN(a))return new Date(NaN);if(!a)return n;var s=n.getDate(),u=new Date(n.getTime());return u.setMonth(n.getMonth()+a+1,0),s>=u.getDate()?u:(n.setFullYear(u.getFullYear(),u.getMonth(),s),n)}},5344:(e,t,n)=>{n.r(t),n.d(t,{default:()=>a});var r=n(9472),o=n(7172),i=n(8936);function a(e,t){(0,i.c)(2,arguments);var n=(0,r.c)(t);return(0,o.default)(e,12*n)}},1928:(e,t,n)=>{n.r(t),n.d(t,{default:()=>i});var r=n(1548),o=n(8936);function i(e){(0,o.c)(1,arguments);var t=(0,r.c)(e);return t.setHours(23,59,59,999),t}},1768:(e,t,n)=>{n.r(t),n.d(t,{default:()=>i});var r=n(1548),o=n(8936);function i(e){(0,o.c)(1,arguments);var t=(0,r.c)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}},9296:(e,t,n)=>{n.d(t,{c:()=>i});var r=n(1548),o=n(8936);function i(e){(0,o.c)(1,arguments);var t=(0,r.c)(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t}},5506:(e,t,n)=>{n.r(t),n.d(t,{default:()=>U});var r=n(16),o=n(3536),i=n(1548),a=n(8936),s=n(868),u=n(1408),l=n(6568),c=n(7744);function d(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}const f=function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return d("yy"===t?r%100:r,t.length)},h=function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):d(n+1,2)},m=function(e,t){return d(e.getUTCDate(),t.length)},p=function(e,t){return d(e.getUTCHours()%12||12,t.length)},g=function(e,t){return d(e.getUTCHours(),t.length)},v=function(e,t){return d(e.getUTCMinutes(),t.length)},y=function(e,t){return d(e.getUTCSeconds(),t.length)},w=function(e,t){var n=t.length,r=e.getUTCMilliseconds();return d(Math.floor(r*Math.pow(10,n-3)),t.length)};function b(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(0===i)return n+String(o);var a=t||"";return n+String(o)+a+d(i,2)}function x(e,t){return e%60==0?(e>0?"-":"+")+d(Math.abs(e)/60,2):T(e,t)}function T(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+d(Math.floor(o/60),2)+n+d(o%60,2)}const E={G:function(e,t,n){var r=e.getUTCFullYear()>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"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return f(e,t)},Y:function(e,t,n,r){var o=(0,c.c)(e,r),i=o>0?o:1-o;return"YY"===t?d(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):d(i,t.length)},R:function(e,t){return d((0,u.c)(e),t.length)},u:function(e,t){return d(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return d(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"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return d(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"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return h(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"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return d(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"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var o=(0,l.c)(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):d(o,t.length)},I:function(e,t,n){var r=(0,s.c)(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):d(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):m(e,t)},D:function(e,t,n){var r=function(e){(0,a.c)(1,arguments);var t=(0,i.c)(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=n-t.getTime();return Math.floor(r/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):d(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();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"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return d(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return d(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return d(o,t.length);case"io":return n.ordinalNumber(o,{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"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,o=e.getUTCHours();switch(r=12===o?"noon":0===o?"midnight":o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,o=e.getUTCHours();switch(r=o>=17?"evening":o>=12?"afternoon":o>=4?"morning":"night",t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return p(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):g(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):d(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):d(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):v(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):y(e,t)},S:function(e,t){return w(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return x(o);case"XXXX":case"XX":return T(o);default:return T(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return x(o);case"xxxx":case"xx":return T(o);default:return T(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+b(o,":");default:return"GMT"+T(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+b(o,":");default:return"GMT"+T(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e;return d(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,r){return d((r._originalDate||e).getTime(),t.length)}};var C=n(8092),R=n(7e3),S=n(500),P=n(9472),k=n(6611),D=n(1821),O=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,M=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,L=/^'([^]*?)'?$/,A=/''/g,N=/[a-zA-Z]/;function U(e,t,n){var s,u,l,c,d,f,h,m,p,g,v,y,w,b,x,T,U,W;(0,a.c)(2,arguments);var Y=String(t),F=(0,k.w)(),I=null!==(s=null!==(u=null==n?void 0:n.locale)&&void 0!==u?u:F.locale)&&void 0!==s?s:D.c,Q=(0,P.c)(null!==(l=null!==(c=null!==(d=null!==(f=null==n?void 0:n.firstWeekContainsDate)&&void 0!==f?f:null==n||null===(h=n.locale)||void 0===h||null===(m=h.options)||void 0===m?void 0:m.firstWeekContainsDate)&&void 0!==d?d:F.firstWeekContainsDate)&&void 0!==c?c:null===(p=F.locale)||void 0===p||null===(g=p.options)||void 0===g?void 0:g.firstWeekContainsDate)&&void 0!==l?l:1);if(!(Q>=1&&Q<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var H=(0,P.c)(null!==(v=null!==(y=null!==(w=null!==(b=null==n?void 0:n.weekStartsOn)&&void 0!==b?b:null==n||null===(x=n.locale)||void 0===x||null===(T=x.options)||void 0===T?void 0:T.weekStartsOn)&&void 0!==w?w:F.weekStartsOn)&&void 0!==y?y:null===(U=F.locale)||void 0===U||null===(W=U.options)||void 0===W?void 0:W.weekStartsOn)&&void 0!==v?v:0);if(!(H>=0&&H<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!I.localize)throw new RangeError("locale must contain localize property");if(!I.formatLong)throw new RangeError("locale must contain formatLong property");var _=(0,i.c)(e);if(!(0,r.default)(_))throw new RangeError("Invalid time value");var q=(0,R.c)(_),B=(0,o.c)(_,q),z={firstWeekContainsDate:Q,weekStartsOn:H,locale:I,_originalDate:_};return Y.match(M).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,C.c[t])(e,I.formatLong):e})).join("").match(O).map((function(r){if("''"===r)return"'";var o,i,a=r[0];if("'"===a)return(i=(o=r).match(L))?i[1].replace(A,"'"):o;var s=E[a];if(s)return null!=n&&n.useAdditionalWeekYearTokens||!(0,S.q0)(r)||(0,S.Yv)(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!(0,S.oF)(r)||(0,S.Yv)(r,t,String(e)),s(B,r,I.localize,z);if(a.match(N))throw new RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");return r})).join("")}},928:(e,t,n)=>{n.r(t),n.d(t,{default:()=>i});var r=n(3612),o=n(8936);function i(e,t){(0,o.c)(2,arguments);var n=(0,r.default)(e),i=(0,r.default)(t);return n.getTime()===i.getTime()}},16:(e,t,n)=>{n.r(t),n.d(t,{default:()=>a});var r=n(1568),o=n(8936),i=n(1548);function a(e){if((0,o.c)(1,arguments),!function(e){return(0,o.c)(1,arguments),e instanceof Date||"object"===(0,r.c)(e)&&"[object Date]"===Object.prototype.toString.call(e)}(e)&&"number"!=typeof e)return!1;var t=(0,i.c)(e);return!isNaN(Number(t))}},180:(e,t,n)=>{n.r(t),n.d(t,{default:()=>c});var r={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"}};function o(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var i,a={date:o({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:o({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:o({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},s={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function u(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=null!=n&&n.width?String(n.width):o;r=e.formattingValues[i]||e.formattingValues[o]}else{var a=e.defaultWidth,s=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function l(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a,s=i[0],u=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(u)?function(e,t){for(var n=0;n<e.length;n++)if(e[n].test(s))return n}(u):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&e[n].test(s))return n}(u);return a=e.valueCallback?e.valueCallback(l):l,{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(s.length)}}}const c={code:"en-US",formatDistance:function(e,t,n){var o,i=r[e];return o="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+o:o+" ago":o},formatLong:a,formatRelative:function(e,t,n,r){return s[e]},localize:{ordinalNumber:function(e,t){var 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"},era:u({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:u({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:u({values:{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"]},defaultWidth:"wide"}),day:u({values:{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"]},defaultWidth:"wide"}),dayPeriod:u({values:{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"}},defaultWidth:"wide",formattingValues:{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"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(i={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(i.matchPattern);if(!n)return null;var r=n[0],o=e.match(i.parsePattern);if(!o)return null;var a=i.valueCallback?i.valueCallback(o[0]):o[0];return{value:a=t.valueCallback?t.valueCallback(a):a,rest:e.slice(r.length)}}),era:l({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:l({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:l({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{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]},defaultParseWidth:"any"}),day:l({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{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]},defaultParseWidth:"any"}),dayPeriod:l({matchPatterns:{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},defaultMatchWidth:"any",parsePatterns:{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}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},3612:(e,t,n)=>{n.r(t),n.d(t,{default:()=>i});var r=n(1548),o=n(8936);function i(e){(0,o.c)(1,arguments);var t=(0,r.c)(e);return t.setHours(0,0,0,0),t}},9068:(e,t,n)=>{n.r(t),n.d(t,{default:()=>i});var r=n(1548),o=n(8936);function i(e){(0,o.c)(1,arguments);var t=(0,r.c)(e);return t.setDate(1),t.setHours(0,0,0,0),t}},3304:(e,t,n)=>{n.d(t,{c:()=>i});var r=n(1548),o=n(8936);function i(e){(0,o.c)(1,arguments);var t=(0,r.c)(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}},3536:(e,t,n)=>{n.d(t,{c:()=>a});var r=n(9472),o=n(1548),i=n(8936);function a(e,t){return(0,i.c)(2,arguments),function(e,t){(0,i.c)(2,arguments);var n=(0,o.c)(e).getTime(),a=(0,r.c)(t);return new Date(n+a)}(e,-(0,r.c)(t))}},1548:(e,t,n)=>{n.d(t,{c:()=>i});var r=n(1568),o=n(8936);function i(e){(0,o.c)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===(0,r.c)(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}},5072:(e,t,n)=>{function r(){return r=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},r.apply(this,arguments)}n.d(t,{c:()=>r})},1568:(e,t,n)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{c:()=>r})},1488:(e,t,n)=>{n.d(t,{CA:()=>h,E3:()=>f,EB:()=>u,EJ:()=>m,Ml:()=>i,WS:()=>d,eC:()=>p,eo:()=>s});var r=n(4712);function o(e,t,n){let{reference:o,floating:i}=e;const a=(0,r.oR)(t),s=(0,r.Al)(t),u=(0,r.ig)(s),l=(0,r.QL)(t),c="y"===a,d=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,h=o[u]/2-i[u]/2;let m;switch(l){case"top":m={x:d,y:o.y-i.height};break;case"bottom":m={x:d,y:o.y+o.height};break;case"right":m={x:o.x+o.width,y:f};break;case"left":m={x:o.x-i.width,y:f};break;default:m={x:o.x,y:o.y}}switch((0,r.W6)(t)){case"start":m[s]-=h*(n&&c?-1:1);break;case"end":m[s]+=h*(n&&c?-1:1)}return m}const i=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:s}=n,u=a.filter(Boolean),l=await(null==s.isRTL?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:f}=o(c,r,l),h=r,m={},p=0;for(let n=0;n<u.length;n++){const{name:a,fn:g}=u[n],{x:v,y,data:w,reset:b}=await g({x:d,y:f,initialPlacement:r,placement:h,strategy:i,middlewareData:m,rects:c,platform:s,elements:{reference:e,floating:t}});d=null!=v?v:d,f=null!=y?y:f,m={...m,[a]:{...m[a],...w}},b&&p<=50&&(p++,"object"==typeof b&&(b.placement&&(h=b.placement),b.rects&&(c=!0===b.rects?await s.getElementRects({reference:e,floating:t,strategy:i}):b.rects),({x:d,y:f}=o(c,h,l))),n=-1)}return{x:d,y:f,placement:h,strategy:i,middlewareData:m}};async function a(e,t){var n;void 0===t&&(t={});const{x:o,y:i,platform:a,rects:s,elements:u,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:h=!1,padding:m=0}=(0,r.NV)(t,e),p=(0,r.cZ)(m),g=u[h?"floating"===f?"reference":"floating":f],v=(0,r.Ab)(await a.getClippingRect({element:null==(n=await(null==a.isElement?void 0:a.isElement(g)))||n?g:g.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(u.floating)),boundary:c,rootBoundary:d,strategy:l})),y="floating"===f?{...s.floating,x:o,y:i}:s.reference,w=await(null==a.getOffsetParent?void 0:a.getOffsetParent(u.floating)),b=await(null==a.isElement?void 0:a.isElement(w))&&await(null==a.getScale?void 0:a.getScale(w))||{x:1,y:1},x=(0,r.Ab)(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:y,offsetParent:w,strategy:l}):y);return{top:(v.top-x.top+p.top)/b.y,bottom:(x.bottom-v.bottom+p.bottom)/b.y,left:(v.left-x.left+p.left)/b.x,right:(x.right-v.right+p.right)/b.x}}const s=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:i,rects:a,platform:s,elements:u,middlewareData:l}=t,{element:c,padding:d=0}=(0,r.NV)(e,t)||{};if(null==c)return{};const f=(0,r.cZ)(d),h={x:n,y:o},m=(0,r.Al)(i),p=(0,r.ig)(m),g=await s.getDimensions(c),v="y"===m,y=v?"top":"left",w=v?"bottom":"right",b=v?"clientHeight":"clientWidth",x=a.reference[p]+a.reference[m]-h[m]-a.floating[p],T=h[m]-a.reference[m],E=await(null==s.getOffsetParent?void 0:s.getOffsetParent(c));let C=E?E[b]:0;C&&await(null==s.isElement?void 0:s.isElement(E))||(C=u.floating[b]||a.floating[p]);const R=x/2-T/2,S=C/2-g[p]/2-1,P=(0,r.SY)(f[y],S),k=(0,r.SY)(f[w],S),D=P,O=C-g[p]-k,M=C/2-g[p]/2+R,L=(0,r.qk)(D,M,O),A=!l.arrow&&null!=(0,r.W6)(i)&&M!==L&&a.reference[p]/2-(M<D?P:k)-g[p]/2<0,N=A?M<D?M-D:M-O:0;return{[m]:h[m]+N,data:{[m]:L,centerOffset:M-L-N,...A&&{alignmentOffset:N}},reset:A}}}),u=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:i,middlewareData:s,rects:u,initialPlacement:l,platform:c,elements:d}=t,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:m,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:v=!0,...y}=(0,r.NV)(e,t);if(null!=(n=s.arrow)&&n.alignmentOffset)return{};const w=(0,r.QL)(i),b=(0,r.QL)(l)===l,x=await(null==c.isRTL?void 0:c.isRTL(d.floating)),T=m||(b||!v?[(0,r.uC)(l)]:(0,r.W_)(l));m||"none"===g||T.push(...(0,r.c7)(l,v,g,x));const E=[l,...T],C=await a(t,y),R=[];let S=(null==(o=s.flip)?void 0:o.overflows)||[];if(f&&R.push(C[w]),h){const e=(0,r.YN)(i,u,x);R.push(C[e[0]],C[e[1]])}if(S=[...S,{placement:i,overflows:R}],!R.every((e=>e<=0))){var P,k;const e=((null==(P=s.flip)?void 0:P.index)||0)+1,t=E[e];if(t)return{data:{index:e,overflows:S},reset:{placement:t}};let n=null==(k=S.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:k.placement;if(!n)switch(p){case"bestFit":{var D;const e=null==(D=S.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:D[0];e&&(n=e);break}case"initialPlacement":n=l}if(i!==n)return{reset:{placement:n}}}return{}}}};function l(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function c(e){return r.E5.some((t=>e[t]>=0))}const d=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...i}=(0,r.NV)(e,t);switch(o){case"referenceHidden":{const e=l(await a(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:c(e)}}}case"escaped":{const e=l(await a(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:c(e)}}}default:return{}}}}},f=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:i,y:a,placement:s,middlewareData:u}=t,l=await async function(e,t){const{placement:n,platform:o,elements:i}=e,a=await(null==o.isRTL?void 0:o.isRTL(i.floating)),s=(0,r.QL)(n),u=(0,r.W6)(n),l="y"===(0,r.oR)(n),c=["left","top"].includes(s)?-1:1,d=a&&l?-1:1,f=(0,r.NV)(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:p}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return u&&"number"==typeof p&&(m="end"===u?-1*p:p),l?{x:m*d,y:h*c}:{x:h*c,y:m*d}}(t,e);return s===(null==(n=u.offset)?void 0:n.placement)&&null!=(o=u.arrow)&&o.alignmentOffset?{}:{x:i+l.x,y:a+l.y,data:{...l,placement:s}}}}},h=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:i}=t,{mainAxis:s=!0,crossAxis:u=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=(0,r.NV)(e,t),d={x:n,y:o},f=await a(t,c),h=(0,r.oR)((0,r.QL)(i)),m=(0,r.I7)(h);let p=d[m],g=d[h];if(s){const e="y"===m?"bottom":"right",t=p+f["y"===m?"top":"left"],n=p-f[e];p=(0,r.qk)(t,p,n)}if(u){const e="y"===h?"bottom":"right",t=g+f["y"===h?"top":"left"],n=g-f[e];g=(0,r.qk)(t,g,n)}const v=l.fn({...t,[m]:p,[h]:g});return{...v,data:{x:v.x-n,y:v.y-o}}}}},m=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:i,rects:a,middlewareData:s}=t,{offset:u=0,mainAxis:l=!0,crossAxis:c=!0}=(0,r.NV)(e,t),d={x:n,y:o},f=(0,r.oR)(i),h=(0,r.I7)(f);let m=d[h],p=d[f];const g=(0,r.NV)(u,t),v="number"==typeof g?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const e="y"===h?"height":"width",t=a.reference[h]-a.floating[e]+v.mainAxis,n=a.reference[h]+a.reference[e]-v.mainAxis;m<t?m=t:m>n&&(m=n)}if(c){var y,w;const e="y"===h?"width":"height",t=["top","left"].includes((0,r.QL)(i)),n=a.reference[f]-a.floating[e]+(t&&(null==(y=s.offset)?void 0:y[f])||0)+(t?0:v.crossAxis),o=a.reference[f]+a.reference[e]+(t?0:(null==(w=s.offset)?void 0:w[f])||0)-(t?v.crossAxis:0);p<n?p=n:p>o&&(p=o)}return{[h]:m,[f]:p}}}},p=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:i,elements:s}=t,{apply:u=(()=>{}),...l}=(0,r.NV)(e,t),c=await a(t,l),d=(0,r.QL)(n),f=(0,r.W6)(n),h="y"===(0,r.oR)(n),{width:m,height:p}=o.floating;let g,v;"top"===d||"bottom"===d?(g=d,v=f===(await(null==i.isRTL?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(v=d,g="end"===f?"top":"bottom");const y=p-c[g],w=m-c[v],b=!t.middlewareData.shift;let x=y,T=w;if(h){const e=m-c.left-c.right;T=f||b?(0,r.SY)(w,e):e}else{const e=p-c.top-c.bottom;x=f||b?(0,r.SY)(y,e):e}if(b&&!f){const e=(0,r.kv)(c.left,0),t=(0,r.kv)(c.right,0),n=(0,r.kv)(c.top,0),o=(0,r.kv)(c.bottom,0);h?T=m-2*(0!==e||0!==t?e+t:(0,r.kv)(c.left,c.right)):x=p-2*(0!==n||0!==o?n+o:(0,r.kv)(c.top,c.bottom))}await u({...t,availableWidth:T,availableHeight:x});const E=await i.getDimensions(s.floating);return m!==E.width||p!==E.height?{reset:{rects:!0}}:{}}}}},5284:(e,t,n)=>{n.d(t,{eo:()=>q,kN:()=>F,Ml:()=>z,EB:()=>Q,WS:()=>_,EJ:()=>B,CA:()=>I,eC:()=>H});var r=n(4712),o=n(1488);function i(e){return u(e)?(e.nodeName||"").toLowerCase():"#document"}function a(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function s(e){var t;return null==(t=(u(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function u(e){return e instanceof Node||e instanceof a(e).Node}function l(e){return e instanceof Element||e instanceof a(e).Element}function c(e){return e instanceof HTMLElement||e instanceof a(e).HTMLElement}function d(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof a(e).ShadowRoot)}function f(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=y(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function h(e){return["table","td","th"].includes(i(e))}function m(e){const t=g(),n=y(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function p(e){let t=b(e);for(;c(t)&&!v(t);){if(m(t))return t;t=b(t)}return null}function g(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function v(e){return["html","body","#document"].includes(i(e))}function y(e){return a(e).getComputedStyle(e)}function w(e){return l(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function b(e){if("html"===i(e))return e;const t=e.assignedSlot||e.parentNode||d(e)&&e.host||s(e);return d(t)?t.host:t}function x(e){const t=b(e);return v(t)?e.ownerDocument?e.ownerDocument.body:e.body:c(t)&&f(t)?t:x(t)}function T(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=x(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),s=a(o);return i?t.concat(s,s.visualViewport||[],f(o)?o:[],s.frameElement&&n?T(s.frameElement):[]):t.concat(o,T(o,[],n))}function E(e){const t=y(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const i=c(e),a=i?e.offsetWidth:n,s=i?e.offsetHeight:o,u=(0,r.kL)(n)!==a||(0,r.kL)(o)!==s;return u&&(n=a,o=s),{width:n,height:o,$:u}}function C(e){return l(e)?e:e.contextElement}function R(e){const t=C(e);if(!c(t))return(0,r.Cg)(1);const n=t.getBoundingClientRect(),{width:o,height:i,$:a}=E(t);let s=(a?(0,r.kL)(n.width):n.width)/o,u=(a?(0,r.kL)(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),u&&Number.isFinite(u)||(u=1),{x:s,y:u}}const S=(0,r.Cg)(0);function P(e){const t=a(e);return g()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:S}function k(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const i=e.getBoundingClientRect(),s=C(e);let u=(0,r.Cg)(1);t&&(o?l(o)&&(u=R(o)):u=R(e));const c=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==a(e))&&t}(s,n,o)?P(s):(0,r.Cg)(0);let d=(i.left+c.x)/u.x,f=(i.top+c.y)/u.y,h=i.width/u.x,m=i.height/u.y;if(s){const e=a(s),t=o&&l(o)?a(o):o;let n=e.frameElement;for(;n&&o&&t!==e;){const e=R(n),t=n.getBoundingClientRect(),r=y(n),o=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;d*=e.x,f*=e.y,h*=e.x,m*=e.y,d+=o,f+=i,n=a(n).frameElement}}return(0,r.Ab)({width:h,height:m,x:d,y:f})}const D=[":popover-open",":modal"];function O(e){let t=!1,n=0,r=0;if(D.forEach((n=>{!function(n){try{t=t||e.matches(n)}catch(e){}}(n)})),t){const t=p(e);if(t){const e=t.getBoundingClientRect();n=e.x,r=e.y}}return[t,n,r]}function M(e){return k(s(e)).left+w(e).scrollLeft}function L(e,t,n){let o;if("viewport"===t)o=function(e,t){const n=a(e),r=s(e),o=n.visualViewport;let i=r.clientWidth,u=r.clientHeight,l=0,c=0;if(o){i=o.width,u=o.height;const e=g();(!e||e&&"fixed"===t)&&(l=o.offsetLeft,c=o.offsetTop)}return{width:i,height:u,x:l,y:c}}(e,n);else if("document"===t)o=function(e){const t=s(e),n=w(e),o=e.ownerDocument.body,i=(0,r.kv)(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),a=(0,r.kv)(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let u=-n.scrollLeft+M(e);const l=-n.scrollTop;return"rtl"===y(o).direction&&(u+=(0,r.kv)(t.clientWidth,o.clientWidth)-i),{width:i,height:a,x:u,y:l}}(s(e));else if(l(t))o=function(e,t){const n=k(e,!0,"fixed"===t),o=n.top+e.clientTop,i=n.left+e.clientLeft,a=c(e)?R(e):(0,r.Cg)(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:o*a.y}}(t,n);else{const n=P(e);o={...t,x:t.x-n.x,y:t.y-n.y}}return(0,r.Ab)(o)}function A(e,t){const n=b(e);return!(n===t||!l(n)||v(n))&&("fixed"===y(n).position||A(n,t))}function N(e,t,n,o){const a=c(t),u=s(t),l="fixed"===n,d=k(e,!0,l,t);let h={scrollLeft:0,scrollTop:0};const m=(0,r.Cg)(0);if(a||!a&&!l)if(("body"!==i(t)||f(u))&&(h=w(t)),a){const e=k(t,!0,l,t);m.x=e.x+t.clientLeft,m.y=e.y+t.clientTop}else u&&(m.x=M(u));let p=d.left+h.scrollLeft-m.x,g=d.top+h.scrollTop-m.y;const[v,y,b]=O(o);return v&&(p+=y,g+=b,a&&(p+=t.clientLeft,g+=t.clientTop)),{x:p,y:g,width:d.width,height:d.height}}function U(e,t){return c(e)&&"fixed"!==y(e).position?t?t(e):e.offsetParent:null}function W(e,t){const n=a(e);if(!c(e))return n;let r=U(e,t);for(;r&&h(r)&&"static"===y(r).position;)r=U(r,t);return r&&("html"===i(r)||"body"===i(r)&&"static"===y(r).position&&!m(r))?n:r||p(e)||n}const Y={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:o,strategy:a}=e;const u=s(o),[l]=t?O(t.floating):[!1];if(o===u||l)return n;let d={scrollLeft:0,scrollTop:0},h=(0,r.Cg)(1);const m=(0,r.Cg)(0),p=c(o);if((p||!p&&"fixed"!==a)&&(("body"!==i(o)||f(u))&&(d=w(o)),c(o))){const e=k(o);h=R(o),m.x=e.x+o.clientLeft,m.y=e.y+o.clientTop}return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-d.scrollLeft*h.x+m.x,y:n.y*h.y-d.scrollTop*h.y+m.y}},getDocumentElement:s,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:a}=e;const s=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=T(e,[],!1).filter((e=>l(e)&&"body"!==i(e))),o=null;const a="fixed"===y(e).position;let s=a?b(e):e;for(;l(s)&&!v(s);){const t=y(s),n=m(s);n||"fixed"!==t.position||(o=null),(a?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||f(s)&&!n&&A(e,s))?r=r.filter((e=>e!==s)):o=t,s=b(s)}return t.set(e,r),r}(t,this._c):[].concat(n),o],u=s[0],c=s.reduce(((e,n)=>{const o=L(t,n,a);return e.top=(0,r.kv)(o.top,e.top),e.right=(0,r.SY)(o.right,e.right),e.bottom=(0,r.SY)(o.bottom,e.bottom),e.left=(0,r.kv)(o.left,e.left),e}),L(t,u,a));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:W,getElementRects:async function(e){const t=this.getOffsetParent||W,n=this.getDimensions;return{reference:N(e.reference,await t(e.floating),e.strategy,e.floating),floating:{x:0,y:0,...await n(e.floating)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=E(e);return{width:t,height:n}},getScale:R,isElement:l,isRTL:function(e){return"rtl"===y(e).direction}};function F(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:u="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:c=!1}=o,d=C(e),f=i||a?[...d?T(d):[],...T(t)]:[];f.forEach((e=>{i&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)}));const h=d&&l?function(e,t){let n,o=null;const i=s(e);function a(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return function s(u,l){void 0===u&&(u=!1),void 0===l&&(l=1),a();const{left:c,top:d,width:f,height:h}=e.getBoundingClientRect();if(u||t(),!f||!h)return;const m={rootMargin:-(0,r.wx)(d)+"px "+-(0,r.wx)(i.clientWidth-(c+f))+"px "+-(0,r.wx)(i.clientHeight-(d+h))+"px "+-(0,r.wx)(c)+"px",threshold:(0,r.kv)(0,(0,r.SY)(1,l))||1};let p=!0;function g(e){const t=e[0].intersectionRatio;if(t!==l){if(!p)return s();t?s(!1,t):n=setTimeout((()=>{s(!1,1e-7)}),100)}p=!1}try{o=new IntersectionObserver(g,{...m,root:i.ownerDocument})}catch(e){o=new IntersectionObserver(g,m)}o.observe(e)}(!0),a}(d,n):null;let m,p=-1,g=null;u&&(g=new ResizeObserver((e=>{let[r]=e;r&&r.target===d&&g&&(g.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=g)||e.observe(t)}))),n()})),d&&!c&&g.observe(d),g.observe(t));let v=c?k(e):null;return c&&function t(){const r=k(e);!v||r.x===v.x&&r.y===v.y&&r.width===v.width&&r.height===v.height||n(),v=r,m=requestAnimationFrame(t)}(),n(),()=>{var e;f.forEach((e=>{i&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)})),null==h||h(),null==(e=g)||e.disconnect(),g=null,c&&cancelAnimationFrame(m)}}const I=o.CA,Q=o.EB,H=o.eC,_=o.WS,q=o.eo,B=o.EJ,z=(e,t,n)=>{const r=new Map,i={platform:Y,...n},a={...i.platform,_c:r};return(0,o.Ml)(e,t,{...i,platform:a})}},6456:(e,t,n)=>{n.d(t,{eo:()=>a,gR:()=>f});var r=n(5284),o=n(1280),i=n(1034);const a=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:o}="function"==typeof e?e(t):e;return n&&(i=n,{}.hasOwnProperty.call(i,"current"))?null!=n.current?(0,r.eo)({element:n.current,padding:o}).fn(t):{}:n?(0,r.eo)({element:n,padding:o}).fn(t):{};var i}});var s="undefined"!=typeof document?o.useLayoutEffect:o.useEffect;function u(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!u(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(!("_owner"===n&&e.$$typeof||u(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function l(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function c(e,t){const n=l(e);return Math.round(t*n)/n}function d(e){const t=o.useRef(e);return s((()=>{t.current=e})),t}function f(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:a=[],platform:f,elements:{reference:h,floating:m}={},transform:p=!0,whileElementsMounted:g,open:v}=e,[y,w]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[b,x]=o.useState(a);u(b,a)||x(a);const[T,E]=o.useState(null),[C,R]=o.useState(null),S=o.useCallback((e=>{e!==O.current&&(O.current=e,E(e))}),[]),P=o.useCallback((e=>{e!==M.current&&(M.current=e,R(e))}),[]),k=h||T,D=m||C,O=o.useRef(null),M=o.useRef(null),L=o.useRef(y),A=null!=g,N=d(g),U=d(f),W=o.useCallback((()=>{if(!O.current||!M.current)return;const e={placement:t,strategy:n,middleware:b};U.current&&(e.platform=U.current),(0,r.Ml)(O.current,M.current,e).then((e=>{const t={...e,isPositioned:!0};Y.current&&!u(L.current,t)&&(L.current=t,i.flushSync((()=>{w(t)})))}))}),[b,t,n,U]);s((()=>{!1===v&&L.current.isPositioned&&(L.current.isPositioned=!1,w((e=>({...e,isPositioned:!1}))))}),[v]);const Y=o.useRef(!1);s((()=>(Y.current=!0,()=>{Y.current=!1})),[]),s((()=>{if(k&&(O.current=k),D&&(M.current=D),k&&D){if(N.current)return N.current(k,D,W);W()}}),[k,D,W,N,A]);const F=o.useMemo((()=>({reference:O,floating:M,setReference:S,setFloating:P})),[S,P]),I=o.useMemo((()=>({reference:k,floating:D})),[k,D]),Q=o.useMemo((()=>{const e={position:n,left:0,top:0};if(!I.floating)return e;const t=c(I.floating,y.x),r=c(I.floating,y.y);return p?{...e,transform:"translate("+t+"px, "+r+"px)",...l(I.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,p,I.floating,y.x,y.y]);return o.useMemo((()=>({...y,update:W,refs:F,elements:I,floatingStyles:Q})),[y,W,F,I,Q])}},4712:(e,t,n)=>{n.d(t,{Ab:()=>R,Al:()=>y,Cg:()=>u,E5:()=>r,I7:()=>p,NV:()=>f,QL:()=>h,SY:()=>o,W6:()=>m,W_:()=>b,YN:()=>w,c7:()=>T,cZ:()=>C,ig:()=>g,kL:()=>a,kv:()=>i,oR:()=>v,qk:()=>d,uC:()=>E,wx:()=>s});const r=["top","right","bottom","left"],o=Math.min,i=Math.max,a=Math.round,s=Math.floor,u=e=>({x:e,y:e}),l={left:"right",right:"left",bottom:"top",top:"bottom"},c={start:"end",end:"start"};function d(e,t,n){return i(e,o(t,n))}function f(e,t){return"function"==typeof e?e(t):e}function h(e){return e.split("-")[0]}function m(e){return e.split("-")[1]}function p(e){return"x"===e?"y":"x"}function g(e){return"y"===e?"height":"width"}function v(e){return["top","bottom"].includes(h(e))?"y":"x"}function y(e){return p(v(e))}function w(e,t,n){void 0===n&&(n=!1);const r=m(e),o=y(e),i=g(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=E(a)),[a,E(a)]}function b(e){const t=E(e);return[x(e),t,x(t)]}function x(e){return e.replace(/start|end/g,(e=>c[e]))}function T(e,t,n,r){const o=m(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}(h(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(x)))),i}function E(e){return e.replace(/left|right|bottom|top/g,(e=>l[e]))}function C(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function R(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}},3608:(e,t,n)=>{function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}n.d(t,{K:()=>r})},5936:(e,t,n)=>{n.d(t,{S:()=>a});var r=n(5072),o=n(1280),i=n(1480);const a=(0,o.forwardRef)(((e,t)=>{const{children:n,width:a=10,height:s=5,...u}=e;return(0,o.createElement)(i.K0.svg,(0,r.c)({},u,{ref:t,width:a,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,o.createElement)("polygon",{points:"0,0 30,0 15,10"}))}))},304:(e,t,n)=>{n.d(t,{c:()=>o,q:()=>i});var r=n(1280);function o(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function i(...e){return(0,r.useCallback)(o(...e),e)}},9016:(e,t,n)=>{n.d(t,{G:()=>o,_:()=>i});var r=n(1280);function o(e,t){const n=(0,r.createContext)(t);function o(e){const{children:t,...o}=e,i=(0,r.useMemo)((()=>o),Object.values(o));return(0,r.createElement)(n.Provider,{value:i},t)}return o.displayName=e+"Provider",[o,function(o){const i=(0,r.useContext)(n);if(i)return i;if(void 0!==t)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}]}function i(e,t=[]){let n=[];const o=()=>{const t=n.map((e=>(0,r.createContext)(e)));return function(n){const o=(null==n?void 0:n[e])||t;return(0,r.useMemo)((()=>({[`__scope${e}`]:{...n,[e]:o}})),[n,o])}};return o.scopeName=e,[function(t,o){const i=(0,r.createContext)(o),a=n.length;function s(t){const{scope:n,children:o,...s}=t,u=(null==n?void 0:n[e][a])||i,l=(0,r.useMemo)((()=>s),Object.values(s));return(0,r.createElement)(u.Provider,{value:l},o)}return n=[...n,o],s.displayName=t+"Provider",[s,function(n,s){const u=(null==s?void 0:s[e][a])||i,l=(0,r.useContext)(u);if(l)return l;if(void 0!==o)return o;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},a(o,...t)]}function a(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const o=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return(0,r.useMemo)((()=>({[`__scope${t.scopeName}`]:o})),[o])}};return n.scopeName=t.scopeName,n}},2200:(e,t,n)=>{n.d(t,{cb:()=>h});var r=n(5072),o=n(1280),i=n(3608),a=n(1480),s=n(304),u=n(2600),l=n(1720);const c="dismissableLayer.update";let d;const f=(0,o.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),h=(0,o.forwardRef)(((e,t)=>{var n;const{disableOutsidePointerEvents:h=!1,onEscapeKeyDown:g,onPointerDownOutside:v,onFocusOutside:y,onInteractOutside:w,onDismiss:b,...x}=e,T=(0,o.useContext)(f),[E,C]=(0,o.useState)(null),R=null!==(n=null==E?void 0:E.ownerDocument)&&void 0!==n?n:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,S]=(0,o.useState)({}),P=(0,s.q)(t,(e=>C(e))),k=Array.from(T.layers),[D]=[...T.layersWithOutsidePointerEventsDisabled].slice(-1),O=k.indexOf(D),M=E?k.indexOf(E):-1,L=T.layersWithOutsidePointerEventsDisabled.size>0,A=M>=O,N=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=(0,u.Y)(e),r=(0,o.useRef)(!1),i=(0,o.useRef)((()=>{}));return(0,o.useEffect)((()=>{const e=e=>{if(e.target&&!r.current){const o={originalEvent:e};function a(){p("dismissableLayer.pointerDownOutside",n,o,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=a,t.addEventListener("click",i.current,{once:!0})):a()}else t.removeEventListener("click",i.current);r.current=!1},o=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...T.branches].some((e=>e.contains(t)));A&&!n&&(null==v||v(e),null==w||w(e),e.defaultPrevented||null==b||b())}),R),U=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=(0,u.Y)(e),r=(0,o.useRef)(!1);return(0,o.useEffect)((()=>{const e=e=>{e.target&&!r.current&&p("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{const t=e.target;[...T.branches].some((e=>e.contains(t)))||(null==y||y(e),null==w||w(e),e.defaultPrevented||null==b||b())}),R);return(0,l.O)((e=>{M===T.layers.size-1&&(null==g||g(e),!e.defaultPrevented&&b&&(e.preventDefault(),b()))}),R),(0,o.useEffect)((()=>{if(E)return h&&(0===T.layersWithOutsidePointerEventsDisabled.size&&(d=R.body.style.pointerEvents,R.body.style.pointerEvents="none"),T.layersWithOutsidePointerEventsDisabled.add(E)),T.layers.add(E),m(),()=>{h&&1===T.layersWithOutsidePointerEventsDisabled.size&&(R.body.style.pointerEvents=d)}}),[E,R,h,T]),(0,o.useEffect)((()=>()=>{E&&(T.layers.delete(E),T.layersWithOutsidePointerEventsDisabled.delete(E),m())}),[E,T]),(0,o.useEffect)((()=>{const e=()=>S({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)}),[]),(0,o.createElement)(a.K0.div,(0,r.c)({},x,{ref:P,style:{pointerEvents:L?A?"auto":"none":void 0,...e.style},onFocusCapture:(0,i.K)(e.onFocusCapture,U.onFocusCapture),onBlurCapture:(0,i.K)(e.onBlurCapture,U.onBlurCapture),onPointerDownCapture:(0,i.K)(e.onPointerDownCapture,N.onPointerDownCapture)}))}));function m(){const e=new CustomEvent(c);document.dispatchEvent(e)}function p(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?(0,a.G2)(o,i):o.dispatchEvent(i)}},1340:(e,t,n)=>{var r;n.d(t,{I:()=>u});var o=n(1280),i=n(4904);const a=(r||(r=n.t(o,2)))["useId".toString()]||(()=>{});let s=0;function u(e){const[t,n]=o.useState(a());return(0,i.w)((()=>{e||n((e=>null!=e?e:String(s++)))}),[e]),e||(t?`radix-${t}`:"")}},1520:(e,t,n)=>{n.d(t,{Ss:()=>D,ao:()=>v,iq:()=>O,kP:()=>M,uM:()=>L});var r=n(5072),o=n(1280),i=n(6456),a=n(5284),s=n(1488),u=n(5936),l=n(304),c=n(9016),d=n(1480),f=n(2600),h=n(4904),m=n(5920);const p="Popper",[g,v]=(0,c._)(p),[y,w]=g(p),b=(0,o.forwardRef)(((e,t)=>{const{__scopePopper:n,virtualRef:i,...a}=e,s=w("PopperAnchor",n),u=(0,o.useRef)(null),c=(0,l.q)(t,u);return(0,o.useEffect)((()=>{s.onAnchorChange((null==i?void 0:i.current)||u.current)})),i?null:(0,o.createElement)(d.K0.div,(0,r.c)({},a,{ref:c}))})),x="PopperContent",[T,E]=g(x),C=(0,o.forwardRef)(((e,t)=>{var n,u,c,p,g,v,y,b;const{__scopePopper:E,side:C="bottom",sideOffset:R=0,align:D="center",alignOffset:O=0,arrowPadding:M=0,avoidCollisions:L=!0,collisionBoundary:A=[],collisionPadding:N=0,sticky:U="partial",hideWhenDetached:W=!1,updatePositionStrategy:Y="optimized",onPlaced:F,...I}=e,Q=w(x,E),[H,_]=(0,o.useState)(null),q=(0,l.q)(t,(e=>_(e))),[B,z]=(0,o.useState)(null),j=(0,m.k)(B),K=null!==(n=null==j?void 0:j.width)&&void 0!==n?n:0,V=null!==(u=null==j?void 0:j.height)&&void 0!==u?u:0,$=C+("center"!==D?"-"+D:""),X="number"==typeof N?N:{top:0,right:0,bottom:0,left:0,...N},G=Array.isArray(A)?A:[A],J=G.length>0,Z={padding:X,boundary:G.filter(S),altBoundary:J},{refs:ee,floatingStyles:te,placement:ne,isPositioned:re,middlewareData:oe}=(0,i.gR)({strategy:"fixed",placement:$,whileElementsMounted:(...e)=>(0,a.kN)(...e,{animationFrame:"always"===Y}),elements:{reference:Q.anchor},middleware:[(0,s.E3)({mainAxis:R+V,alignmentAxis:O}),L&&(0,a.CA)({mainAxis:!0,crossAxis:!1,limiter:"partial"===U?(0,a.EJ)():void 0,...Z}),L&&(0,a.EB)({...Z}),(0,a.eC)({...Z,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),B&&(0,i.eo)({element:B,padding:M}),P({arrowWidth:K,arrowHeight:V}),W&&(0,a.WS)({strategy:"referenceHidden",...Z})]}),[ie,ae]=k(ne),se=(0,f.Y)(F);(0,h.w)((()=>{re&&(null==se||se())}),[re,se]);const ue=null===(c=oe.arrow)||void 0===c?void 0:c.x,le=null===(p=oe.arrow)||void 0===p?void 0:p.y,ce=0!==(null===(g=oe.arrow)||void 0===g?void 0:g.centerOffset),[de,fe]=(0,o.useState)();return(0,h.w)((()=>{H&&fe(window.getComputedStyle(H).zIndex)}),[H]),(0,o.createElement)("div",{ref:ee.setFloating,"data-radix-popper-content-wrapper":"",style:{...te,transform:re?te.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:de,"--radix-popper-transform-origin":[null===(v=oe.transformOrigin)||void 0===v?void 0:v.x,null===(y=oe.transformOrigin)||void 0===y?void 0:y.y].join(" ")},dir:e.dir},(0,o.createElement)(T,{scope:E,placedSide:ie,onArrowChange:z,arrowX:ue,arrowY:le,shouldHideArrow:ce},(0,o.createElement)(d.K0.div,(0,r.c)({"data-side":ie,"data-align":ae},I,{ref:q,style:{...I.style,animation:re?void 0:"none",opacity:null!==(b=oe.hide)&&void 0!==b&&b.referenceHidden?0:void 0}}))))})),R={top:"bottom",right:"left",bottom:"top",left:"right"};function S(e){return null!==e}const P=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:s,rects:u,middlewareData:l}=t,c=0!==(null===(n=l.arrow)||void 0===n?void 0:n.centerOffset),d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[h,m]=k(s),p={start:"0%",center:"50%",end:"100%"}[m],g=(null!==(r=null===(o=l.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,v=(null!==(i=null===(a=l.arrow)||void 0===a?void 0:a.y)&&void 0!==i?i:0)+f/2;let y="",w="";return"bottom"===h?(y=c?p:`${g}px`,w=-f+"px"):"top"===h?(y=c?p:`${g}px`,w=`${u.floating.height+f}px`):"right"===h?(y=-f+"px",w=c?p:`${v}px`):"left"===h&&(y=`${u.floating.width+f}px`,w=c?p:`${v}px`),{data:{x:y,y:w}}}});function k(e){const[t,n="center"]=e.split("-");return[t,n]}const D=e=>{const{__scopePopper:t,children:n}=e,[r,i]=(0,o.useState)(null);return(0,o.createElement)(y,{scope:t,anchor:r,onAnchorChange:i},n)},O=b,M=C,L=(0,o.forwardRef)((function(e,t){const{__scopePopper:n,...i}=e,a=E("PopperArrow",n),s=R[a.placedSide];return(0,o.createElement)("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0}},(0,o.createElement)(u.S,(0,r.c)({},i,{ref:t,style:{...i.style,display:"block"}})))}))},8148:(e,t,n)=>{n.d(t,{a:()=>s});var r=n(5072),o=n(1280),i=n(1034),a=n(1480);const s=(0,o.forwardRef)(((e,t)=>{var n;const{container:s=(null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body),...u}=e;return s?i.createPortal((0,o.createElement)(a.K0.div,(0,r.c)({},u,{ref:t})),s):null}))},6860:(e,t,n)=>{n.d(t,{s:()=>s});var r=n(1280),o=n(1034),i=n(304),a=n(4904);const s=e=>{const{present:t,children:n}=e,s=function(e){const[t,n]=(0,r.useState)(),i=(0,r.useRef)({}),s=(0,r.useRef)(e),l=(0,r.useRef)("none"),c=e?"mounted":"unmounted",[d,f]=function(e,t){return(0,r.useReducer)(((e,n)=>{const r=t[e][n];return null!=r?r:e}),e)}(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return(0,r.useEffect)((()=>{const e=u(i.current);l.current="mounted"===d?e:"none"}),[d]),(0,a.w)((()=>{const t=i.current,n=s.current;if(n!==e){const r=l.current,o=u(t);e?f("MOUNT"):"none"===o||"none"===(null==t?void 0:t.display)?f("UNMOUNT"):f(n&&r!==o?"ANIMATION_OUT":"UNMOUNT"),s.current=e}}),[e,f]),(0,a.w)((()=>{if(t){const e=e=>{const n=u(i.current).includes(e.animationName);e.target===t&&n&&(0,o.flushSync)((()=>f("ANIMATION_END")))},n=e=>{e.target===t&&(l.current=u(i.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}f("ANIMATION_END")}),[t,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:(0,r.useCallback)((e=>{e&&(i.current=getComputedStyle(e)),n(e)}),[])}}(t),l="function"==typeof n?n({present:s.isPresent}):r.Children.only(n),c=(0,i.q)(s.ref,l.ref);return"function"==typeof n||s.isPresent?(0,r.cloneElement)(l,{ref:c}):null};function u(e){return(null==e?void 0:e.animationName)||"none"}s.displayName="Presence"},1480:(e,t,n)=>{n.d(t,{G2:()=>u,K0:()=>s});var r=n(5072),o=n(1280),i=n(1034),a=n(2896);const s=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=(0,o.forwardRef)(((e,n)=>{const{asChild:i,...s}=e,u=i?a.k$:t;return(0,o.useEffect)((()=>{window[Symbol.for("radix-ui")]=!0}),[]),(0,o.createElement)(u,(0,r.c)({},s,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function u(e,t){e&&(0,i.flushSync)((()=>e.dispatchEvent(t)))}},2896:(e,t,n)=>{n.d(t,{Sq:()=>u,k$:()=>a});var r=n(5072),o=n(1280),i=n(304);const a=(0,o.forwardRef)(((e,t)=>{const{children:n,...i}=e,a=o.Children.toArray(n),u=a.find(l);if(u){const e=u.props.children,n=a.map((t=>t===u?o.Children.count(e)>1?o.Children.only(null):(0,o.isValidElement)(e)?e.props.children:null:t));return(0,o.createElement)(s,(0,r.c)({},i,{ref:t}),(0,o.isValidElement)(e)?(0,o.cloneElement)(e,void 0,n):null)}return(0,o.createElement)(s,(0,r.c)({},i,{ref:t}),n)}));a.displayName="Slot";const s=(0,o.forwardRef)(((e,t)=>{const{children:n,...r}=e;return(0,o.isValidElement)(n)?(0,o.cloneElement)(n,{...c(r,n.props),ref:t?(0,i.c)(t,n.ref):n.ref}):o.Children.count(n)>1?o.Children.only(null):null}));s.displayName="SlotClone";const u=({children:e})=>(0,o.createElement)(o.Fragment,null,e);function l(e){return(0,o.isValidElement)(e)&&e.type===u}function c(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}},4160:(e,t,n)=>{n.d(t,{C_:()=>F,Ss:()=>I,a8:()=>H,kP:()=>_,mf:()=>Q,uM:()=>q});var r=n(5072),o=n(1280),i=n(3608),a=n(304),s=n(9016),u=n(2200),l=n(1340),c=n(1520),d=n(8148),f=n(6860),h=n(1480),m=n(2896),p=n(4664),g=n(2248);const[v,y]=(0,s._)("Tooltip",[c.ao]),w=(0,c.ao)(),b=700,x="tooltip.open",[T,E]=v("TooltipProvider"),C="Tooltip",[R,S]=v(C),P="TooltipTrigger",k=(0,o.forwardRef)(((e,t)=>{const{__scopeTooltip:n,...s}=e,u=S(P,n),l=E(P,n),d=w(n),f=(0,o.useRef)(null),m=(0,a.q)(t,f,u.onTriggerChange),p=(0,o.useRef)(!1),g=(0,o.useRef)(!1),v=(0,o.useCallback)((()=>p.current=!1),[]);return(0,o.useEffect)((()=>()=>document.removeEventListener("pointerup",v)),[v]),(0,o.createElement)(c.iq,(0,r.c)({asChild:!0},d),(0,o.createElement)(h.K0.button,(0,r.c)({"aria-describedby":u.open?u.contentId:void 0,"data-state":u.stateAttribute},s,{ref:m,onPointerMove:(0,i.K)(e.onPointerMove,(e=>{"touch"!==e.pointerType&&(g.current||l.isPointerInTransitRef.current||(u.onTriggerEnter(),g.current=!0))})),onPointerLeave:(0,i.K)(e.onPointerLeave,(()=>{u.onTriggerLeave(),g.current=!1})),onPointerDown:(0,i.K)(e.onPointerDown,(()=>{p.current=!0,document.addEventListener("pointerup",v,{once:!0})})),onFocus:(0,i.K)(e.onFocus,(()=>{p.current||u.onOpen()})),onBlur:(0,i.K)(e.onBlur,u.onClose),onClick:(0,i.K)(e.onClick,u.onClose)})))})),D="TooltipPortal",[O,M]=v(D,{forceMount:void 0}),L="TooltipContent",A=(0,o.forwardRef)(((e,t)=>{const n=M(L,e.__scopeTooltip),{forceMount:i=n.forceMount,side:a="top",...s}=e,u=S(L,e.__scopeTooltip);return(0,o.createElement)(f.s,{present:i||u.open},u.disableHoverableContent?(0,o.createElement)(Y,(0,r.c)({side:a},s,{ref:t})):(0,o.createElement)(N,(0,r.c)({side:a},s,{ref:t})))})),N=(0,o.forwardRef)(((e,t)=>{const n=S(L,e.__scopeTooltip),i=E(L,e.__scopeTooltip),s=(0,o.useRef)(null),u=(0,a.q)(t,s),[l,c]=(0,o.useState)(null),{trigger:d,onClose:f}=n,h=s.current,{onPointerInTransitChange:m}=i,p=(0,o.useCallback)((()=>{c(null),m(!1)}),[m]),g=(0,o.useCallback)(((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,function(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}(r,n.getBoundingClientRect())),i=function(e){const t=e.slice();return t.sort(((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0)),function(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const r=e[n];for(;t.length>=2;){const e=t[t.length-1],n=t[t.length-2];if(!((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x)))break;t.pop()}t.push(r)}t.pop();const n=[];for(let t=e.length-1;t>=0;t--){const r=e[t];for(;n.length>=2;){const e=n[n.length-1],t=n[n.length-2];if(!((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x)))break;n.pop()}n.push(r)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...o,...function(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())]);c(i),m(!0)}),[m]);return(0,o.useEffect)((()=>()=>p()),[p]),(0,o.useEffect)((()=>{if(d&&h){const e=e=>g(e,h),t=e=>g(e,d);return d.addEventListener("pointerleave",e),h.addEventListener("pointerleave",t),()=>{d.removeEventListener("pointerleave",e),h.removeEventListener("pointerleave",t)}}}),[d,h,g,p]),(0,o.useEffect)((()=>{if(l){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=(null==d?void 0:d.contains(t))||(null==h?void 0:h.contains(t)),o=!function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const a=t[e].x,s=t[e].y,u=t[i].x,l=t[i].y;s>r!=l>r&&n<(u-a)*(r-s)/(l-s)+a&&(o=!o)}return o}(n,l);r?p():o&&(p(),f())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[d,h,l,f,p]),(0,o.createElement)(Y,(0,r.c)({},e,{ref:u}))})),[U,W]=v(C,{isInside:!1}),Y=(0,o.forwardRef)(((e,t)=>{const{__scopeTooltip:n,children:i,"aria-label":a,onEscapeKeyDown:s,onPointerDownOutside:l,...d}=e,f=S(L,n),h=w(n),{onClose:p}=f;return(0,o.useEffect)((()=>(document.addEventListener(x,p),()=>document.removeEventListener(x,p))),[p]),(0,o.useEffect)((()=>{if(f.trigger){const e=e=>{const t=e.target;null!=t&&t.contains(f.trigger)&&p()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[f.trigger,p]),(0,o.createElement)(u.cb,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:e=>e.preventDefault(),onDismiss:p},(0,o.createElement)(c.kP,(0,r.c)({"data-state":f.stateAttribute},h,d,{ref:t,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),(0,o.createElement)(m.Sq,null,i),(0,o.createElement)(U,{scope:n,isInside:!0},(0,o.createElement)(g.S,{id:f.contentId,role:"tooltip"},a||i))))})),F=e=>{const{__scopeTooltip:t,delayDuration:n=b,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,[s,u]=(0,o.useState)(!0),l=(0,o.useRef)(!1),c=(0,o.useRef)(0);return(0,o.useEffect)((()=>{const e=c.current;return()=>window.clearTimeout(e)}),[]),(0,o.createElement)(T,{scope:t,isOpenDelayed:s,delayDuration:n,onOpen:(0,o.useCallback)((()=>{window.clearTimeout(c.current),u(!1)}),[]),onClose:(0,o.useCallback)((()=>{window.clearTimeout(c.current),c.current=window.setTimeout((()=>u(!0)),r)}),[r]),isPointerInTransitRef:l,onPointerInTransitChange:(0,o.useCallback)((e=>{l.current=e}),[]),disableHoverableContent:i},a)},I=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:i=!1,onOpenChange:a,disableHoverableContent:s,delayDuration:u}=e,d=E(C,e.__scopeTooltip),f=w(t),[h,m]=(0,o.useState)(null),g=(0,l.I)(),v=(0,o.useRef)(0),y=null!=s?s:d.disableHoverableContent,b=null!=u?u:d.delayDuration,T=(0,o.useRef)(!1),[S=!1,P]=(0,p.W)({prop:r,defaultProp:i,onChange:e=>{e?(d.onOpen(),document.dispatchEvent(new CustomEvent(x))):d.onClose(),null==a||a(e)}}),k=(0,o.useMemo)((()=>S?T.current?"delayed-open":"instant-open":"closed"),[S]),D=(0,o.useCallback)((()=>{window.clearTimeout(v.current),T.current=!1,P(!0)}),[P]),O=(0,o.useCallback)((()=>{window.clearTimeout(v.current),P(!1)}),[P]),M=(0,o.useCallback)((()=>{window.clearTimeout(v.current),v.current=window.setTimeout((()=>{T.current=!0,P(!0)}),b)}),[b,P]);return(0,o.useEffect)((()=>()=>window.clearTimeout(v.current)),[]),(0,o.createElement)(c.Ss,f,(0,o.createElement)(R,{scope:t,contentId:g,open:S,stateAttribute:k,trigger:h,onTriggerChange:m,onTriggerEnter:(0,o.useCallback)((()=>{d.isOpenDelayed?M():D()}),[d.isOpenDelayed,M,D]),onTriggerLeave:(0,o.useCallback)((()=>{y?O():window.clearTimeout(v.current)}),[O,y]),onOpen:D,onClose:O,disableHoverableContent:y},n))},Q=k,H=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=S(D,t);return(0,o.createElement)(O,{scope:t,forceMount:n},(0,o.createElement)(f.s,{present:n||a.open},(0,o.createElement)(d.a,{asChild:!0,container:i},r)))},_=A,q=(0,o.forwardRef)(((e,t)=>{const{__scopeTooltip:n,...i}=e,a=w(n);return W("TooltipArrow",n).isInside?null:(0,o.createElement)(c.uM,(0,r.c)({},a,i,{ref:t}))}))},2600:(e,t,n)=>{n.d(t,{Y:()=>o});var r=n(1280);function o(e){const t=(0,r.useRef)(e);return(0,r.useEffect)((()=>{t.current=e})),(0,r.useMemo)((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}},4664:(e,t,n)=>{n.d(t,{W:()=>i});var r=n(1280),o=n(2600);function i({prop:e,defaultProp:t,onChange:n=(()=>{})}){const[i,a]=function({defaultProp:e,onChange:t}){const n=(0,r.useState)(e),[i]=n,a=(0,r.useRef)(i),s=(0,o.Y)(t);return(0,r.useEffect)((()=>{a.current!==i&&(s(i),a.current=i)}),[i,a,s]),n}({defaultProp:t,onChange:n}),s=void 0!==e,u=s?e:i,l=(0,o.Y)(n);return[u,(0,r.useCallback)((t=>{if(s){const n="function"==typeof t?t(e):t;n!==e&&l(n)}else a(t)}),[s,e,a,l])]}},1720:(e,t,n)=>{n.d(t,{O:()=>i});var r=n(1280),o=n(2600);function i(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=(0,o.Y)(e);(0,r.useEffect)((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)}),[n,t])}},4904:(e,t,n)=>{n.d(t,{w:()=>o});var r=n(1280);const o=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?r.useLayoutEffect:()=>{}},5920:(e,t,n)=>{n.d(t,{k:()=>i});var r=n(1280),o=n(4904);function i(e){const[t,n]=(0,r.useState)(void 0);return(0,o.w)((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}},2248:(e,t,n)=>{n.d(t,{K:()=>a,S:()=>s});var r=n(5072),o=n(1280),i=n(1480);const a=(0,o.forwardRef)(((e,t)=>(0,o.createElement)(i.K0.span,(0,r.c)({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})))),s=a},48:(e,t,n)=>{n.d(t,{E:()=>u});var r=n(1040),o=n(2552),i=n(8200),a=n(7860),s=n(4244);class u extends a.Q{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),l(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return c(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return c(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){const n=this.options,o=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),(0,r.wL)(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const i=this.hasListeners();i&&d(this.currentQuery,o,this.options,n)&&this.executeFetch(),this.updateResult(t),!i||this.currentQuery===o&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();const a=this.computeRefetchInterval();!i||this.currentQuery===o&&this.options.enabled===n.enabled&&a===this.currentRefetchInterval||this.updateRefetchInterval(a)}getOptimisticResult(e){const t=this.client.getQueryCache().build(this.client,e),n=this.createResult(t,e);return function(e,t,n){return!n.keepPreviousData&&(void 0!==n.placeholderData?t.isPlaceholderData:!(0,r.wL)(e.getCurrentResult(),t))}(this,n,e)&&(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(e){const t={};return Object.keys(e).forEach((n=>{Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),e[n])})})),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){const t=this.client.defaultQueryOptions(e),n=this.client.getQueryCache().build(this.client,t);return n.isFetchingOptimistic=!0,n.fetch().then((()=>this.createResult(n,t)))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:null==(t=e.cancelRefetch)||t}).then((()=>(this.updateResult(),this.currentResult)))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return null!=e&&e.throwOnError||(t=t.catch(r.Kw)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),r.oj||this.currentResult.isStale||!(0,r.AT)(this.options.staleTime))return;const e=(0,r.ob)(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout((()=>{this.currentResult.isStale||this.updateResult()}),e)}computeRefetchInterval(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!r.oj&&!1!==this.options.enabled&&(0,r.AT)(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((()=>{(this.options.refetchIntervalInBackground||i.m.isFocused())&&this.executeFetch()}),this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){const n=this.currentQuery,o=this.options,i=this.currentResult,a=this.currentResultState,u=this.currentResultOptions,c=e!==n,h=c?e.state:this.currentQueryInitialState,m=c?this.currentResult:this.previousQueryResult,{state:p}=e;let g,{dataUpdatedAt:v,error:y,errorUpdatedAt:w,fetchStatus:b,status:x}=p,T=!1,E=!1;if(t._optimisticResults){const r=this.hasListeners(),i=!r&&l(e,t),a=r&&d(e,n,t,o);(i||a)&&(b=(0,s.ot)(e.options.networkMode)?"fetching":"paused",v||(x="loading")),"isRestoring"===t._optimisticResults&&(b="idle")}if(t.keepPreviousData&&!p.dataUpdatedAt&&null!=m&&m.isSuccess&&"error"!==x)g=m.data,v=m.dataUpdatedAt,x=m.status,T=!0;else if(t.select&&void 0!==p.data)if(i&&p.data===(null==a?void 0:a.data)&&t.select===this.selectFn)g=this.selectResult;else try{this.selectFn=t.select,g=t.select(p.data),g=(0,r.Cs)(null==i?void 0:i.data,g,t),this.selectResult=g,this.selectError=null}catch(e){this.selectError=e}else g=p.data;if(void 0!==t.placeholderData&&void 0===g&&"loading"===x){let e;if(null!=i&&i.isPlaceholderData&&t.placeholderData===(null==u?void 0:u.placeholderData))e=i.data;else if(e="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.selectError=null}catch(e){this.selectError=e}void 0!==e&&(x="success",g=(0,r.Cs)(null==i?void 0:i.data,e,t),E=!0)}this.selectError&&(y=this.selectError,g=this.selectResult,w=Date.now(),x="error");const C="fetching"===b,R="loading"===x,S="error"===x;return{status:x,fetchStatus:b,isLoading:R,isSuccess:"success"===x,isError:S,isInitialLoading:R&&C,data:g,dataUpdatedAt:v,error:y,errorUpdatedAt:w,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>h.dataUpdateCount||p.errorUpdateCount>h.errorUpdateCount,isFetching:C,isRefetching:C&&!R,isLoadingError:S&&0===p.dataUpdatedAt,isPaused:"paused"===b,isPlaceholderData:E,isPreviousData:T,isRefetchError:S&&0!==p.dataUpdatedAt,isStale:f(e,t),refetch:this.refetch,remove:this.remove}}updateResult(e){const t=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,(0,r.wL)(n,t))return;this.currentResult=n;const o={cache:!0};!1!==(null==e?void 0:e.listeners)&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&&!this.trackedProps.size)return!0;const r=new Set(null!=n?n:this.trackedProps);return this.options.useErrorBoundary&&r.add("error"),Object.keys(this.currentResult).some((e=>{const n=e;return this.currentResult[n]!==t[n]&&r.has(n)}))})()&&(o.listeners=!0),this.notify({...o,...e})}updateQuery(){const e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;const t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){const t={};"success"===e.type?t.onSuccess=!e.manual:"error"!==e.type||(0,s.qu)(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){o.y.batch((()=>{var t,n,r,o;if(e.onSuccess)null==(t=(n=this.options).onSuccess)||t.call(n,this.currentResult.data),null==(r=(o=this.options).onSettled)||r.call(o,this.currentResult.data,null);else if(e.onError){var i,a,s,u;null==(i=(a=this.options).onError)||i.call(a,this.currentResult.error),null==(s=(u=this.options).onSettled)||s.call(u,void 0,this.currentResult.error)}e.listeners&&this.listeners.forEach((({listener:e})=>{e(this.currentResult)})),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})}))}}function l(e,t){return function(e,t){return!(!1===t.enabled||e.state.dataUpdatedAt||"error"===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&c(e,t,t.refetchOnMount)}function c(e,t,n){if(!1!==t.enabled){const r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&f(e,t)}return!1}function d(e,t,n,r){return!1!==n.enabled&&(e!==t||!1===r.enabled)&&(!n.suspense||"error"!==e.state.status)&&f(e,n)}function f(e,t){return e.isStaleByTime(t.staleTime)}},3900:(e,t,n)=>{n.d(t,{q:()=>i});var r=n(1280);const o=r.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}()),i=()=>r.useContext(o)},6964:(e,t,n)=>{n.d(t,{U9:()=>o,YP:()=>a,Wo:()=>i});var r=n(1280);const o=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},i=e=>{r.useEffect((()=>{e.clearReset()}),[e])},a=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>{return e.isError&&!t.isReset()&&!e.isFetching&&(o=n,i=[e.error,r],"function"==typeof o?o(...i):!!o);var o,i}},7771:(e,t,n)=>{n.d(t,{q:()=>i});var r=n(1280);const o=r.createContext(!1),i=()=>r.useContext(o);o.Provider},5648:(e,t,n)=>{n.d(t,{Ef:()=>i,O0:()=>a,k5:()=>o,uY:()=>r});const r=e=>{e.suspense&&"number"!=typeof e.staleTime&&(e.staleTime=1e3)},o=(e,t)=>e.isLoading&&e.isFetching&&!t,i=(e,t,n)=>(null==e?void 0:e.suspense)&&o(t,n),a=(e,t,n)=>t.fetchOptimistic(e).then((({data:t})=>{null==e.onSuccess||e.onSuccess(t),null==e.onSettled||e.onSettled(t,null)})).catch((t=>{n.clearReset(),null==e.onError||e.onError(t),null==e.onSettled||e.onSettled(void 0,t)}))},9888:(e,t,n)=>{n.d(t,{o:()=>r});const r=n(4).useSyncExternalStore}}]);