(()=>{var e,t,n={8351(e,t,n){var r;!function(){"use strict";var o,i=1e9,a={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},s=!0,l="[DecimalError] ",c=l+"Invalid argument: ",u=l+"Exponent out of range: ",d=Math.floor,f=Math.pow,h=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,p=1e7,m=d(1286742750677284.5),y={};function g(e,t){var n,r,o,i,a,l,c,u,d=e.constructor,f=d.precision;if(!e.s||!t.s)return t.s||(t=new d(e)),s?_(t,f):t;if(c=e.d,u=t.d,a=e.e,o=t.e,c=c.slice(),i=a-o){for(i<0?(r=c,i=-i,l=u.length):(r=u,o=a,l=c.length),i>(l=(a=Math.ceil(f/7))>l?a+1:l+1)&&(i=l,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((l=c.length)-(i=u.length)<0&&(i=l,r=u,u=c,c=r),n=0;i;)n=(c[--i]=c[i]+u[i]+n)/p|0,c[i]%=p;for(n&&(c.unshift(n),++o),l=c.length;0==c[--l];)c.pop();return t.d=c,t.e=o,s?_(t,f):t}function v(e,t,n){if(e!==~~e||en)throw Error(c+e)}function b(e){var t,n,r,o=e.length-1,i="",a=e[0];if(o>0){for(i+=a,t=1;te.e^i.s<0?1:-1;for(t=0,n=(r=i.d.length)<(o=e.d.length)?r:o;te.d[t]^i.s<0?1:-1;return r===o?0:r>o^i.s<0?1:-1},y.decimalPlaces=y.dp=function(){var e=this,t=e.d.length-1,n=7*(t-e.e);if(t=e.d[t])for(;t%10==0;t/=10)n--;return n<0?0:n},y.dividedBy=y.div=function(e){return x(this,new this.constructor(e))},y.dividedToIntegerBy=y.idiv=function(e){var t=this.constructor;return _(x(this,new t(e),0,1),t.precision)},y.equals=y.eq=function(e){return!this.cmp(e)},y.exponent=function(){return j(this)},y.greaterThan=y.gt=function(e){return this.cmp(e)>0},y.greaterThanOrEqualTo=y.gte=function(e){return this.cmp(e)>=0},y.isInteger=y.isint=function(){return this.e>this.d.length-2},y.isNegative=y.isneg=function(){return this.s<0},y.isPositive=y.ispos=function(){return this.s>0},y.isZero=function(){return 0===this.s},y.lessThan=y.lt=function(e){return this.cmp(e)<0},y.lessThanOrEqualTo=y.lte=function(e){return this.cmp(e)<1},y.logarithm=y.log=function(e){var t,n=this,r=n.constructor,i=r.precision,a=i+5;if(void 0===e)e=new r(10);else if((e=new r(e)).s<1||e.eq(o))throw Error(l+"NaN");if(n.s<1)throw Error(l+(n.s?"NaN":"-Infinity"));return n.eq(o)?new r(0):(s=!1,t=x(S(n,a),S(e,a),a),s=!0,_(t,i))},y.minus=y.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?P(t,e):g(t,(e.s=-e.s,e))},y.modulo=y.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(!(e=new r(e)).s)throw Error(l+"NaN");return n.s?(s=!1,t=x(n,e,0,1).times(e),s=!0,n.minus(t)):_(new r(n),o)},y.naturalExponential=y.exp=function(){return w(this)},y.naturalLogarithm=y.ln=function(){return S(this)},y.negated=y.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},y.plus=y.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?g(t,e):P(t,(e.s=-e.s,e))},y.precision=y.sd=function(e){var t,n,r,o=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(c+e);if(t=j(o)+1,n=7*(r=o.d.length-1)+1,r=o.d[r]){for(;r%10==0;r/=10)n--;for(r=o.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},y.squareRoot=y.sqrt=function(){var e,t,n,r,o,i,a,c=this,u=c.constructor;if(c.s<1){if(!c.s)return new u(0);throw Error(l+"NaN")}for(e=j(c),s=!1,0==(o=Math.sqrt(+c))||o==1/0?(((t=b(c.d)).length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=d((e+1)/2)-(e<0||e%2),r=new u(t=o==1/0?"5e"+e:(t=o.toExponential()).slice(0,t.indexOf("e")+1)+e)):r=new u(o.toString()),o=a=(n=u.precision)+3;;)if(r=(i=r).plus(x(c,i,a+2)).times(.5),b(i.d).slice(0,a)===(t=b(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&"4999"==t){if(_(i,n+1,0),i.times(i).eq(c)){r=i;break}}else if("9999"!=t)break;a+=4}return s=!0,_(r,n)},y.times=y.mul=function(e){var t,n,r,o,i,a,l,c,u,d=this,f=d.constructor,h=d.d,m=(e=new f(e)).d;if(!d.s||!e.s)return new f(0);for(e.s*=d.s,n=d.e+e.e,(c=h.length)<(u=m.length)&&(i=h,h=m,m=i,a=c,c=u,u=a),i=[],r=a=c+u;r--;)i.push(0);for(r=u;--r>=0;){for(t=0,o=c+r;o>r;)l=i[o]+m[r]*h[o-r-1]+t,i[o--]=l%p|0,t=l/p|0;i[o]=(i[o]+t)%p|0}for(;!i[--a];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,s?_(e,f.precision):e},y.toDecimalPlaces=y.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(v(e,0,i),void 0===t?t=r.rounding:v(t,0,8),_(n,e+j(n)+1,t))},y.toExponential=function(e,t){var n,r=this,o=r.constructor;return void 0===e?n=N(r,!0):(v(e,0,i),void 0===t?t=o.rounding:v(t,0,8),n=N(r=_(new o(r),e+1,t),!0,e+1)),n},y.toFixed=function(e,t){var n,r,o=this,a=o.constructor;return void 0===e?N(o):(v(e,0,i),void 0===t?t=a.rounding:v(t,0,8),n=N((r=_(new a(o),e+j(o)+1,t)).abs(),!1,e+j(r)+1),o.isneg()&&!o.isZero()?"-"+n:n)},y.toInteger=y.toint=function(){var e=this,t=e.constructor;return _(new t(e),j(e)+1,t.rounding)},y.toNumber=function(){return+this},y.toPower=y.pow=function(e){var t,n,r,i,a,c,u=this,f=u.constructor,h=+(e=new f(e));if(!e.s)return new f(o);if(!(u=new f(u)).s){if(e.s<1)throw Error(l+"Infinity");return u}if(u.eq(o))return u;if(r=f.precision,e.eq(o))return _(u,r);if(c=(t=e.e)>=(n=e.d.length-1),a=u.s,c){if((n=h<0?-h:h)<=9007199254740991){for(i=new f(o),t=Math.ceil(r/7+4),s=!1;n%2&&E((i=i.times(u)).d,t),0!==(n=d(n/2));)E((u=u.times(u)).d,t);return s=!0,e.s<0?new f(o).div(i):_(i,r)}}else if(a<0)throw Error(l+"NaN");return a=a<0&&1&e.d[Math.max(t,n)]?-1:1,u.s=1,s=!1,i=e.times(S(u,r+12)),s=!0,(i=w(i)).s=a,i},y.toPrecision=function(e,t){var n,r,o=this,a=o.constructor;return void 0===e?r=N(o,(n=j(o))<=a.toExpNeg||n>=a.toExpPos):(v(e,1,i),void 0===t?t=a.rounding:v(t,0,8),r=N(o=_(new a(o),e,t),e<=(n=j(o))||n<=a.toExpNeg,e)),r},y.toSignificantDigits=y.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(v(e,1,i),void 0===t?t=n.rounding:v(t,0,8)),_(new n(this),e,t)},y.toString=y.valueOf=y.val=y.toJSON=function(){var e=this,t=j(e),n=e.constructor;return N(e,t<=n.toExpNeg||t>=n.toExpPos)};var x=function(){function e(e,t){var n,r=0,o=e.length;for(e=e.slice();o--;)n=e[o]*t+r,e[o]=n%p|0,r=n/p|0;return r&&e.unshift(r),e}function t(e,t,n,r){var o,i;if(n!=r)i=n>r?1:-1;else for(o=i=0;ot[o]?1:-1;break}return i}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=e[n]1;)e.shift()}return function(r,o,i,a){var s,c,u,d,f,h,m,y,g,v,b,x,w,k,O,S,C,P,N=r.constructor,E=r.s==o.s?1:-1,M=r.d,A=o.d;if(!r.s)return new N(r);if(!o.s)throw Error(l+"Division by zero");for(c=r.e-o.e,C=A.length,O=M.length,y=(m=new N(E)).d=[],u=0;A[u]==(M[u]||0);)++u;if(A[u]>(M[u]||0)&&--c,(x=null==i?i=N.precision:a?i+(j(r)-j(o))+1:i)<0)return new N(0);if(x=x/7+2|0,u=0,1==C)for(d=0,A=A[0],x++;(u1&&(A=e(A,d),M=e(M,d),C=A.length,O=M.length),k=C,v=(g=M.slice(0,C)).length;v=p/2&&++S;do{d=0,(s=t(A,g,C,v))<0?(b=g[0],C!=v&&(b=b*p+(g[1]||0)),(d=b/S|0)>1?(d>=p&&(d=p-1),1==(s=t(f=e(A,d),g,h=f.length,v=g.length))&&(d--,n(f,C16)throw Error(u+j(e));if(!e.s)return new h(o);for(null==t?(s=!1,l=p):l=t,a=new h(.03125);e.abs().gte(.1);)e=e.times(a),d+=5;for(l+=Math.log(f(2,d))/Math.LN10*2+5|0,n=r=i=new h(o),h.precision=l;;){if(r=_(r.times(e),l),n=n.times(++c),b((a=i.plus(x(r,n,l))).d).slice(0,l)===b(i.d).slice(0,l)){for(;d--;)i=_(i.times(i),l);return h.precision=p,null==t?(s=!0,_(i,p)):i}i=a}}function j(e){for(var t=7*e.e,n=e.d[0];n>=10;n/=10)t++;return t}function k(e,t,n){if(t>e.LN10.sd())throw s=!0,n&&(e.precision=n),Error(l+"LN10 precision limit exceeded");return _(new e(e.LN10),t)}function O(e){for(var t="";e--;)t+="0";return t}function S(e,t){var n,r,i,a,c,u,d,f,h,p=1,m=e,y=m.d,g=m.constructor,v=g.precision;if(m.s<1)throw Error(l+(m.s?"NaN":"-Infinity"));if(m.eq(o))return new g(0);if(null==t?(s=!1,f=v):f=t,m.eq(10))return null==t&&(s=!0),k(g,f);if(f+=10,g.precision=f,r=(n=b(y)).charAt(0),a=j(m),!(Math.abs(a)<15e14))return d=k(g,f+2,v).times(a+""),m=S(new g(r+"."+n.slice(1)),f-10).plus(d),g.precision=v,null==t?(s=!0,_(m,v)):m;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=b((m=m.times(e)).d)).charAt(0),p++;for(a=j(m),r>1?(m=new g("0."+n),a++):m=new g(r+"."+n.slice(1)),u=c=m=x(m.minus(o),m.plus(o),f),h=_(m.times(m),f),i=3;;){if(c=_(c.times(h),f),b((d=u.plus(x(c,new g(i),f))).d).slice(0,f)===b(u.d).slice(0,f))return u=u.times(2),0!==a&&(u=u.plus(k(g,f+2,v).times(a+""))),u=x(u,new g(p),f),g.precision=v,null==t?(s=!0,_(u,v)):u;u=d,i+=2}}function C(e,t){var n,r,o;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);)++r;for(o=t.length;48===t.charCodeAt(o-1);)--o;if(t=t.slice(r,o)){if(o-=r,n=n-r-1,e.e=d(n/7),e.d=[],r=(n+1)%7,n<0&&(r+=7),rm||e.e<-m))throw Error(u+n)}else e.s=0,e.e=0,e.d=[0];return e}function _(e,t,n){var r,o,i,a,l,c,h,y,g=e.d;for(a=1,i=g[0];i>=10;i/=10)a++;if((r=t-a)<0)r+=7,o=t,h=g[y=0];else{if((y=Math.ceil((r+1)/7))>=(i=g.length))return e;for(h=i=g[y],a=1;i>=10;i/=10)a++;o=(r%=7)-7+a}if(void 0!==n&&(l=h/(i=f(10,a-o-1))%10|0,c=t<0||void 0!==g[y+1]||h%i,c=n<4?(l||c)&&(0==n||n==(e.s<0?3:2)):l>5||5==l&&(4==n||c||6==n&&(r>0?o>0?h/f(10,a-o):0:g[y-1])%10&1||n==(e.s<0?8:7))),t<1||!g[0])return c?(i=j(e),g.length=1,t=t-i-1,g[0]=f(10,(7-t%7)%7),e.e=d(-t/7)||0):(g.length=1,g[0]=e.e=e.s=0),e;if(0==r?(g.length=y,i=1,y--):(g.length=y+1,i=f(10,7-r),g[y]=o>0?(h/f(10,a-o)%f(10,o)|0)*i:0),c)for(;;){if(0==y){(g[0]+=i)==p&&(g[0]=1,++e.e);break}if(g[y]+=i,g[y]!=p)break;g[y--]=0,i=1}for(r=g.length;0===g[--r];)g.pop();if(s&&(e.e>m||e.e<-m))throw Error(u+j(e));return e}function P(e,t){var n,r,o,i,a,l,c,u,d,f,h=e.constructor,m=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),s?_(t,m):t;if(c=e.d,f=t.d,r=t.e,u=e.e,c=c.slice(),a=u-r){for((d=a<0)?(n=c,a=-a,l=f.length):(n=f,r=u,l=c.length),a>(o=Math.max(Math.ceil(m/7),l)+2)&&(a=o,n.length=1),n.reverse(),o=a;o--;)n.push(0);n.reverse()}else{for((d=(o=c.length)<(l=f.length))&&(l=o),o=0;o0;--o)c[l++]=0;for(o=f.length;o>a;){if(c[--o]0?i=i.charAt(0)+"."+i.slice(1)+O(r):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+O(-o-1)+i,n&&(r=n-a)>0&&(i+=O(r))):o>=a?(i+=O(o+1-a),n&&(r=n-o-1)>0&&(i=i+"."+O(r))):((r=o+1)0&&(o+1===a&&(i+="."),i+=O(r))),e.s<0?"-"+i:i}function E(e,t){if(e.length>t)return e.length=t,!0}function M(e){if(!e||"object"!=typeof e)throw Error(l+"Object expected");var t,n,r,o=["precision",1,i,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t=o[t+1]&&r<=o[t+2]))throw Error(c+n+": "+r);this[n]=r}if(void 0!==(r=e[n="LN10"])){if(r!=Math.LN10)throw Error(c+n+": "+r);this[n]=new this(r)}return this}(a=function e(t){var n,r,o;function i(e){var t=this;if(!(t instanceof i))return new i(e);if(t.constructor=i,e instanceof i)return t.s=e.s,t.e=e.e,void(t.d=(e=e.d)?e.slice():e);if("number"==typeof e){if(0*e!=0)throw Error(c+e);if(e>0)t.s=1;else{if(!(e<0))return t.s=0,t.e=0,void(t.d=[0]);e=-e,t.s=-1}return e===~~e&&e<1e7?(t.e=0,void(t.d=[e])):C(t,e.toString())}if("string"!=typeof e)throw Error(c+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!h.test(e))throw Error(c+e);C(t,e)}if(i.prototype=y,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=e,i.config=i.set=M,void 0===t&&(t={}),t)for(o=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n-1}},9905(e){e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r0&&i(u)?n>1?e(u,n-1,i,a,s):r(s,u):a||(s[s.length]=u)}return s}},6649(e,t,n){var r=n(3221)();e.exports=r},641(e,t,n){var r=n(6649),o=n(5950);e.exports=function(e,t){return e&&r(e,t,o)}},7422(e,t,n){var r=n(1769),o=n(7797);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&nt}},8077(e){e.exports=function(e,t){return null!=e&&t in Object(e)}},6131(e,t,n){var r=n(2523),o=n(5463),i=n(6959);e.exports=function(e,t,n){return t==t?i(e,t,n):r(e,o,n)}},7534(e,t,n){var r=n(2552),o=n(346);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},270(e,t,n){var r=n(7068),o=n(346);e.exports=function e(t,n,i,a,s){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,a,e,s))}},7068(e,t,n){var r=n(7217),o=n(5911),i=n(1986),a=n(689),s=n(5861),l=n(6449),c=n(3656),u=n(7167),d="[object Arguments]",f="[object Array]",h="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,y,g){var v=l(e),b=l(t),x=v?f:s(e),w=b?f:s(t),j=(x=x==d?h:x)==h,k=(w=w==d?h:w)==h,O=x==w;if(O&&c(e)){if(!c(t))return!1;v=!0,j=!1}if(O&&!j)return g||(g=new r),v||u(e)?o(e,t,n,m,y,g):i(e,t,x,n,m,y,g);if(!(1&n)){var S=j&&p.call(e,"__wrapped__"),C=k&&p.call(t,"__wrapped__");if(S||C){var _=S?e.value():e,P=C?t.value():t;return g||(g=new r),y(_,P,n,m,g)}}return!!O&&(g||(g=new r),a(e,t,n,m,y,g))}},1799(e,t,n){var r=n(7217),o=n(270);e.exports=function(e,t,n,i){var a=n.length,s=a,l=!i;if(null==e)return!s;for(e=Object(e);a--;){var c=n[a];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++ao?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r=200){var m=t?null:s(e);if(m)return l(m);f=!1,u=a,p=new r}else p=t?[]:h;e:for(;++c=o?e:r(e,t,n)}},3730(e,t,n){var r=n(4394);e.exports=function(e,t){if(e!==t){var n=void 0!==e,o=null===e,i=e==e,a=r(e),s=void 0!==t,l=null===t,c=t==t,u=r(t);if(!l&&!u&&!a&&e>t||a&&s&&c&&!l&&!u||o&&s&&c||!n&&c||!i)return 1;if(!o&&!a&&!u&&e=l?c:c*("desc"==n[o]?-1:1)}return e.index-t.index}},5481(e,t,n){var r=n(9325)["__core-js_shared__"];e.exports=r},8329(e,t,n){var r=n(4894);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var i=n.length,a=t?i:-1,s=Object(n);(t?a--:++a-1?s[l?t[c]:c]:void 0}}},5508(e,t,n){var r=n(6151),o=n(6800),i=n(7400);e.exports=function(e){return function(t,n,a){return a&&"number"!=typeof a&&o(t,n,a)&&(n=a=void 0),t=i(t),void 0===n?(n=t,t=0):n=i(n),a=void 0===a?tu))return!1;var f=l.get(e),h=l.get(t);if(f&&h)return f==t&&h==e;var p=-1,m=!0,y=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++p-1&&e%1==0&&e-1}},1175(e,t,n){var r=n(6025);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},3040(e,t,n){var r=n(1549),o=n(79),i=n(8223);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},7670(e,t,n){var r=n(2651);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},289(e,t,n){var r=n(2651);e.exports=function(e){return r(this,e).get(e)}},4509(e,t,n){var r=n(2651);e.exports=function(e){return r(this,e).has(e)}},2949(e,t,n){var r=n(2651);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},317(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},7197(e){e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},2224(e,t,n){var r=n(104);e.exports=function(e){var t=r(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},1042(e,t,n){var r=n(6110)(Object,"create");e.exports=r},3650(e,t,n){var r=n(4335)(Object.keys,Object);e.exports=r},6009(e,t,n){e=n.nmd(e);var r=n(4840),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,s=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},9350(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},4335(e){e.exports=function(e,t){return function(n){return e(t(n))}}},6757(e,t,n){var r=n(1033),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),l=Array(s);++a0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},1420(e,t,n){var r=n(79);e.exports=function(){this.__data__=new r,this.size=0}},938(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},3605(e){e.exports=function(e){return this.__data__.get(e)}},9817(e){e.exports=function(e){return this.__data__.has(e)}},945(e,t,n){var r=n(79),o=n(8223),i=n(3661);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},6959(e){e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r=t||n<0||y&&e-p>=u}function x(){var e=o();if(b(e))return w(e);f=setTimeout(x,function(e){var n=t-(e-h);return y?s(n,u-(e-p)):n}(e))}function w(e){return f=void 0,g&&l?v(e):(l=c=void 0,d)}function j(){var e=o(),n=b(e);if(l=arguments,c=this,h=e,n){if(void 0===f)return function(e){return p=e,f=setTimeout(x,t),m?v(e):d}(h);if(y)return clearTimeout(f),f=setTimeout(x,t),v(h)}return void 0===f&&(f=setTimeout(x,t)),d}return t=i(t)||0,r(n)&&(m=!!n.leading,u=(y="maxWait"in n)?a(i(n.maxWait)||0,t):u,g="trailing"in n?!!n.trailing:g),j.cancel=function(){void 0!==f&&clearTimeout(f),p=0,l=h=c=f=void 0},j.flush=function(){return void 0===f?d:w(o())},j}},5288(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},9747(e,t,n){var r=n(7277),o=n(3777),i=n(5389),a=n(6449),s=n(6800);e.exports=function(e,t,n){var l=a(e)?r:o;return n&&s(e,t,n)&&(t=void 0),l(e,i(t,3))}},7309(e,t,n){var r=n(2006)(n(4713));e.exports=r},4713(e,t,n){var r=n(2523),o=n(5389),i=n(1489),a=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var l=null==n?0:i(n);return l<0&&(l=a(s+l,0)),r(e,o(t,3),l)}},7307(e,t,n){var r=n(3120),o=n(5378);e.exports=function(e,t){return r(o(e,t),1)}},8156(e,t,n){var r=n(7422);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},631(e,t,n){var r=n(8077),o=n(9326);e.exports=function(e,t){return null!=e&&o(e,t,r)}},3488(e){e.exports=function(e){return e}},2428(e,t,n){var r=n(7534),o=n(346),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},6449(e){var t=Array.isArray;e.exports=t},4894(e,t,n){var r=n(1882),o=n(294);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},3812(e,t,n){var r=n(2552),o=n(346);e.exports=function(e){return!0===e||!1===e||o(e)&&"[object Boolean]"==r(e)}},3656(e,t,n){e=n.nmd(e);var r=n(9325),o=n(9935),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;e.exports=l},2404(e,t,n){var r=n(270);e.exports=function(e,t){return r(e,t)}},1882(e,t,n){var r=n(2552),o=n(3805);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},294(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},1741(e,t,n){var r=n(8023);e.exports=function(e){return r(e)&&e!=+e}},9843(e){e.exports=function(e){return null==e}},8023(e,t,n){var r=n(2552),o=n(346);e.exports=function(e){return"number"==typeof e||o(e)&&"[object Number]"==r(e)}},3805(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},346(e){e.exports=function(e){return null!=e&&"object"==typeof e}},1331(e,t,n){var r=n(2552),o=n(8879),i=n(346),a=Function.prototype,s=Object.prototype,l=a.toString,c=s.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==u}},5015(e,t,n){var r=n(2552),o=n(6449),i=n(346);e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&"[object String]"==r(e)}},4394(e,t,n){var r=n(2552),o=n(346);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},7167(e,t,n){var r=n(4901),o=n(7301),i=n(6009),a=i&&i.isTypedArray,s=a?o(a):r;e.exports=s},5950(e,t,n){var r=n(695),o=n(8984),i=n(4894);e.exports=function(e){return i(e)?r(e):o(e)}},8090(e){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},5378(e,t,n){var r=n(4932),o=n(5389),i=n(5128),a=n(6449);e.exports=function(e,t){return(a(e)?r:i)(e,o(t,3))}},3916(e,t,n){var r=n(3360),o=n(641),i=n(5389);e.exports=function(e,t){var n={};return t=i(t,3),o(e,function(e,o,i){r(n,o,t(e,o,i))}),n}},4506(e,t,n){var r=n(3599),o=n(3335),i=n(3488);e.exports=function(e){return e&&e.length?r(e,i,o):void 0}},7551(e,t,n){var r=n(3599),o=n(3335),i=n(5389);e.exports=function(e,t){return e&&e.length?r(e,i(t,2),o):void 0}},104(e,t,n){var r=n(3661);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},1684(e,t,n){var r=n(3599),o=n(6176),i=n(3488);e.exports=function(e){return e&&e.length?r(e,i,o):void 0}},6533(e,t,n){var r=n(3599),o=n(5389),i=n(6176);e.exports=function(e,t){return e&&e.length?r(e,o(t,2),i):void 0}},3950(e){e.exports=function(){}},124(e,t,n){var r=n(9325);e.exports=function(){return r.Date.now()}},583(e,t,n){var r=n(7237),o=n(7255),i=n(8586),a=n(7797);e.exports=function(e){return i(e)?r(a(e)):o(e)}},3181(e,t,n){var r=n(5508)();e.exports=r},2426(e,t,n){var r=n(4248),o=n(5389),i=n(916),a=n(6449),s=n(6800);e.exports=function(e,t,n){var l=a(e)?r:i;return n&&s(e,t,n)&&(t=void 0),l(e,o(t,3))}},3031(e,t,n){var r=n(3120),o=n(6155),i=n(9302),a=n(6800),s=i(function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),o(e,r(t,1),[])});e.exports=s},3345(e){e.exports=function(){return[]}},9935(e){e.exports=function(){return!1}},7350(e,t,n){var r=n(8221),o=n(3805);e.exports=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:i,maxWait:t,trailing:a})}},7400(e,t,n){var r=n(9374),o=1/0;e.exports=function(e){return e?(e=r(e))===o||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},1489(e,t,n){var r=n(7400);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},9374(e,t,n){var r=n(4128),o=n(3805),i=n(4394),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):a.test(e)?NaN:+e}},3222(e,t,n){var r=n(7556);e.exports=function(e){return null==e?"":r(e)}},14(e,t,n){var r=n(5389),o=n(5765);e.exports=function(e,t){return e&&e.length?o(e,r(t,2)):[]}},5808(e,t,n){var r=n(2507)("toUpperCase");e.exports=r},2694(e,t,n){"use strict";var r=n(6925);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=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 s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},5556(e,t,n){e.exports=n(2694)()},6925(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},5338(e,t,n){"use strict";var r=n(5795);t.H=r.createRoot,r.hydrateRoot},2799(e,t){"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy");Symbol.for("react.offscreen");Symbol.for("react.module.reference"),t.isFragment=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case a:case i:case d:case f:return e;default:switch(e=e&&e.$$typeof){case c:case l:case u:case p:case h:case s:return e;default:return t}}case r:return t}}}(e)===o}},4363(e,t,n){"use strict";e.exports=n(2799)},5795(e){"use strict";e.exports=window.ReactDOM},6942(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;("object"==typeof s||"function"==typeof s)&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach(e=>a[e]=()=>n[e]);return a.default=()=>n,o.d(i,a),i},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{"use strict";var e={};o.r(e),o.d(e,{Button:()=>Ma,CaptionLabel:()=>Aa,Chevron:()=>Ta,Day:()=>Da,DayButton:()=>Ra,Dropdown:()=>Ia,DropdownNav:()=>La,Footer:()=>Fa,Month:()=>Ba,MonthCaption:()=>za,MonthGrid:()=>Wa,Months:()=>$a,MonthsDropdown:()=>Ua,Nav:()=>Va,NextMonthButton:()=>qa,Option:()=>Ha,PreviousMonthButton:()=>Ya,Root:()=>Ka,Select:()=>Ga,Week:()=>Xa,WeekNumber:()=>Ja,WeekNumberHeader:()=>es,Weekday:()=>Qa,Weekdays:()=>Za,Weeks:()=>ts,YearsDropdown:()=>ns});var t={};o.r(t),o.d(t,{formatCaption:()=>os,formatDay:()=>as,formatMonthCaption:()=>is,formatMonthDropdown:()=>ss,formatWeekNumber:()=>cs,formatWeekNumberHeader:()=>us,formatWeekdayName:()=>ls,formatYearCaption:()=>fs,formatYearDropdown:()=>ds});var n={};o.r(n),o.d(n,{labelCaption:()=>ys,labelDay:()=>ps,labelDayButton:()=>hs,labelGrid:()=>ms,labelGridcell:()=>gs,labelMonthDropdown:()=>vs,labelNav:()=>bs,labelNext:()=>ws,labelPrevious:()=>js,labelWeekNumber:()=>Os,labelWeekNumberHeader:()=>Ss,labelWeekday:()=>ks,labelYearDropdown:()=>Cs});var r={};o.r(r),o.d(r,{scaleBand:()=>sh,scaleDiverging:()=>Ev,scaleDivergingLog:()=>Mv,scaleDivergingPow:()=>Tv,scaleDivergingSqrt:()=>Dv,scaleDivergingSymlog:()=>Av,scaleIdentity:()=>_m,scaleImplicit:()=>ih,scaleLinear:()=>Cm,scaleLog:()=>Im,scaleOrdinal:()=>ah,scalePoint:()=>ch,scalePow:()=>qm,scaleQuantile:()=>ty,scaleQuantize:()=>ny,scaleRadial:()=>Km,scaleSequential:()=>kv,scaleSequentialLog:()=>Ov,scaleSequentialPow:()=>Cv,scaleSequentialQuantile:()=>Pv,scaleSequentialSqrt:()=>_v,scaleSequentialSymlog:()=>Sv,scaleSqrt:()=>Hm,scaleSymlog:()=>zm,scaleThreshold:()=>ry,scaleTime:()=>bv,scaleUtc:()=>xv,tickFormat:()=>Om});var i=o(5338);const a=window.React;var s=o.t(a,2),l=o.n(a),c="popstate";function u(e){return"object"==typeof e&&null!=e&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function d(e={}){return function(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s="POP",l=null,d=h();function h(){return(a.state||{idx:null}).idx}function g(){s="POP";let e=h(),t=null==e?null:e-d;d=e,l&&l({action:s,location:b.location,delta:t})}function v(e){return function(e,t=!1){let n="http://localhost";"undefined"!=typeof window&&(n="null"!==window.location.origin?window.location.origin:window.location.href),f(n,"No window.location.(origin|href) available to create URL");let r="string"==typeof e?e:y(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}(e)}null==d&&(d=0,a.replaceState({...a.state,idx:d},""));let b={get action(){return s},get location(){return e(o,a)},listen(e){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(c,g),l=e,()=>{o.removeEventListener(c,g),l=null}},createHref:e=>t(o,e),createURL:v,encodeLocation(e){let t=v(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s="PUSH";let r=u(e)?e:m(b.location,e,t);n&&n(r,e),d=h()+1;let c=p(r,d),f=b.createHref(r.unstable_mask||r);try{a.pushState(c,"",f)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(f)}i&&l&&l({action:s,location:b.location,delta:1})},replace:function(e,t){s="REPLACE";let r=u(e)?e:m(b.location,e,t);n&&n(r,e),d=h();let o=p(r,d),c=b.createHref(r.unstable_mask||r);a.replaceState(o,"",c),i&&l&&l({action:s,location:b.location,delta:0})},go:e=>a.go(e)};return b}(function(e,t){let{pathname:n="/",search:r="",hash:o=""}=g(e.location.hash.substring(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),m("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:y(t))},function(e,t){h("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)},e)}function f(e,t){if(!1===e||null==e)throw new Error(t)}function h(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function p(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function m(e,t,n=null,r,o){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?g(t):t,state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10),unstable_mask:o}}function y({pathname:e="/",search:t="",hash:n=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),n&&"#"!==n&&(e+="#"===n.charAt(0)?n:"#"+n),e}function g(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function v(e,t,n="/"){return function(e,t,n,r){let o=A(("string"==typeof t?g(t):t).pathname||"/",n);if(null==o)return null;let i=b(e);!function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n]);return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(i);let a=null;for(let e=0;null==a&&e{let l={relativePath:void 0===s?e.path||"":s,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};if(l.relativePath.startsWith("/")){if(!l.relativePath.startsWith(r)&&a)return;f(l.relativePath.startsWith(r),`Absolute route path "${l.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),l.relativePath=l.relativePath.slice(r.length)}let c=F([r,l.relativePath]),u=n.concat(l);e.children&&e.children.length>0&&(f(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),b(e.children,t,u,c,a)),(null!=e.path||e.index)&&t.push({path:c,score:P(c,e.index),routesMeta:u})};return e.forEach((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of x(e.path))i(e,t,!0,n);else i(e,t)}),t}function x(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===r.length)return o?[i,""]:[i];let a=x(r.join("/")),s=[];return s.push(...a.map(e=>""===e?i:[i,e].join("/"))),o&&s.push(...a),s.map(t=>e.startsWith("/")&&""===t?"/":t)}new WeakMap;var w=/^:[\w-]+$/,j=3,k=2,O=1,S=10,C=-2,_=e=>"*"===e;function P(e,t){let n=e.split("/"),r=n.length;return n.some(_)&&(r+=C),t&&(r+=k),n.filter(e=>!_(e)).reduce((e,t)=>e+(w.test(t)?j:""===t?O:S),r)}function N(e,t,n=!1){let{routesMeta:r}=e,o={},i="/",a=[];for(let e=0;e{if(r.push({paramName:t,isOptional:null!=n}),n){let t=i.charAt(o+e.length);return t&&"/"!==t?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),s=o.slice(1),l=r.reduce((e,{paramName:t,isOptional:n},r)=>{if("*"===t){let e=s[r]||"";a=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const o=s[r];return e[t]=n&&!o?void 0:(o||"").replace(/%2F/g,"/"),e},{});return{params:l,pathname:i,pathnameBase:a,pattern:e}}function M(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return h(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function A(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}var T=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function D(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"}function R(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function I(e){let t=function(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function L(e,t,n,r=!1){let o;"string"==typeof e?o=g(e):(o={...e},f(!o.pathname||!o.pathname.includes("?"),R("?","pathname","search",o)),f(!o.pathname||!o.pathname.includes("#"),R("#","pathname","hash",o)),f(!o.search||!o.search.includes("#"),R("#","search","hash",o)));let i,a=""===e||""===o.pathname,s=a?"/":o.pathname;if(null==s)i=n;else{let e=t.length-1;if(!r&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}i=e>=0?t[e]:"/"}let l=function(e,t="/"){let n,{pathname:r,search:o="",hash:i=""}="string"==typeof e?g(e):e;return r?(r=r.replace(/\/\/+/g,"/"),n=r.startsWith("/")?D(r.substring(1),"/"):D(r,t)):n=t,{pathname:n,search:z(o),hash:W(i)}}(o,i),c=s&&"/"!==s&&s.endsWith("/"),u=(a||"."===s)&&n.endsWith("/");return l.pathname.endsWith("/")||!c&&!u||(l.pathname+="/"),l}var F=e=>e.join("/").replace(/\/\/+/g,"/"),B=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),z=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",W=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",$=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function U(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}function V(e){return e.map(e=>e.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var q="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function H(e,t){let n=e;if("string"!=typeof n||!T.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,o=!1;if(q)try{let e=new URL(window.location.href),r=n.startsWith("//")?new URL(e.protocol+n):new URL(n),i=A(r.pathname,t);r.origin===e.origin&&null!=i?n=i+r.search+r.hash:o=!0}catch(e){h(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:o,to:n}}Symbol("Uninstrumented"),Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Y=["POST","PUT","PATCH","DELETE"],K=(new Set(Y),["GET",...Y]);new Set(K),Symbol("ResetLoaderData");var G=a.createContext(null);G.displayName="DataRouter";var X=a.createContext(null);X.displayName="DataRouterState";var Q=a.createContext(!1);var Z=a.createContext({isTransitioning:!1});Z.displayName="ViewTransition",a.createContext(new Map).displayName="Fetchers",a.createContext(null).displayName="Await";var J=a.createContext(null);J.displayName="Navigation";var ee=a.createContext(null);ee.displayName="Location";var te=a.createContext({outlet:null,matches:[],isDataRoute:!1});te.displayName="Route";var ne=a.createContext(null);ne.displayName="RouteError";var re="REACT_ROUTER_ERROR";function oe(){return null!=a.useContext(ee)}function ie(){return f(oe(),"useLocation() may be used only in the context of a component."),a.useContext(ee).location}var ae="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function se(e){a.useContext(J).static||a.useLayoutEffect(e)}function le(){let{isDataRoute:e}=a.useContext(te);return e?function(){let{router:e}=function(e){let t=a.useContext(G);return f(t,ve(e)),t}("useNavigate"),t=be("useNavigate"),n=a.useRef(!1);return se(()=>{n.current=!0}),a.useCallback(async(r,o={})=>{h(n.current,ae),n.current&&("number"==typeof r?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...o}))},[e,t])}():function(){f(oe(),"useNavigate() may be used only in the context of a component.");let e=a.useContext(G),{basename:t,navigator:n}=a.useContext(J),{matches:r}=a.useContext(te),{pathname:o}=ie(),i=JSON.stringify(I(r)),s=a.useRef(!1);return se(()=>{s.current=!0}),a.useCallback((r,a={})=>{if(h(s.current,ae),!s.current)return;if("number"==typeof r)return void n.go(r);let l=L(r,JSON.parse(i),o,"path"===a.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:F([t,l.pathname])),(a.replace?n.replace:n.push)(l,a.state,a)},[t,n,i,o,e])}()}function ce(){let{matches:e}=a.useContext(te),t=e[e.length-1];return t?t.params:{}}function ue(e,{relative:t}={}){let{matches:n}=a.useContext(te),{pathname:r}=ie(),o=JSON.stringify(I(n));return a.useMemo(()=>L(e,JSON.parse(o),r,"path"===t),[e,o,r,t])}function de(e,t,n){f(oe(),"useRoutes() may be used only in the context of a component.");let{navigator:r}=a.useContext(J),{matches:o}=a.useContext(te),i=o[o.length-1],s=i?i.params:{},l=i?i.pathname:"/",c=i?i.pathnameBase:"/",u=i&&i.route;{let e=u&&u.path||"";we(l,!u||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${l}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent to .`)}let d,p=ie();if(t){let e="string"==typeof t?g(t):t;f("/"===c||e.pathname?.startsWith(c),`When overriding the location using \`\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),d=e}else d=p;let m=d.pathname||"/",y=m;if("/"!==c){let e=c.replace(/^\//,"").split("/");y="/"+m.replace(/^\//,"").split("/").slice(e.length).join("/")}let b=v(e,{pathname:y});h(u||null!=b,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),h(null==b||void 0!==b[b.length-1].route.element||void 0!==b[b.length-1].route.Component||void 0!==b[b.length-1].route.lazy,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`);let x=function(e,t=[],n){let r=n?.state;if(null==e){if(!r)return null;if(r.errors)e=r.matches;else{if(0!==t.length||r.initialized||!(r.matches.length>0))return null;e=r.matches}}let o=e,i=r?.errors;if(null!=i){let e=o.findIndex(e=>e.route.id&&void 0!==i?.[e.route.id]);f(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),o=o.slice(0,Math.min(o.length,e+1))}let s=!1,l=-1;if(n&&r){s=r.renderFallback;for(let e=0;e=0?o.slice(0,l+1):[o[0]];break}}}}let c=n?.onError,u=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:V(r.matches),errorInfo:t})}:void 0;return o.reduceRight((e,n,c)=>{let d,f=!1,h=null,p=null;r&&(d=i&&n.route.id?i[n.route.id]:void 0,h=n.route.errorElement||he,s&&(l<0&&0===c?(we("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),f=!0,p=null):l===c&&(f=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(o.slice(0,c+1)),y=()=>{let t;return t=d?h:f?p:n.route.Component?a.createElement(n.route.Component,null):n.route.element?n.route.element:e,a.createElement(ge,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===c)?a.createElement(pe,{location:r.location,revalidation:r.revalidation,component:h,error:d,children:y(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:u}):y()},null)}(b&&b.map(e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:F([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?c:F([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])})),o,n);return t&&x?a.createElement(ee.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...d},navigationType:"POP"}},x):x}function fe(){let e=function(){let e=a.useContext(ne),t=function(e){let t=a.useContext(X);return f(t,ve(e)),t}("useRouteError"),n=be("useRouteError");return void 0!==e?e:t.errors?.[n]}(),t=U(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=a.createElement(a.Fragment,null,a.createElement("p",null,"💿 Hey developer 👋"),a.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",a.createElement("code",{style:i},"ErrorBoundary")," or"," ",a.createElement("code",{style:i},"errorElement")," prop on your route.")),a.createElement(a.Fragment,null,a.createElement("h2",null,"Unexpected Application Error!"),a.createElement("h3",{style:{fontStyle:"italic"}},t),n?a.createElement("pre",{style:o},n):null,s)}a.createContext(null);var he=a.createElement(fe,null),pe=class extends a.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&"object"==typeof e&&e&&"digest"in e&&"string"==typeof e.digest){const t=function(e){if(e.startsWith(`${re}:ROUTE_ERROR_RESPONSE:{`))try{let t=JSON.parse(e.slice(40));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText)return new $(t.status,t.statusText,t.data)}catch{}}(e.digest);t&&(e=t)}let t=void 0!==e?a.createElement(te.Provider,{value:this.props.routeContext},a.createElement(ne.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?a.createElement(ye,{error:e},t):t}};pe.contextType=Q;var me=new WeakMap;function ye({children:e,error:t}){let{basename:n}=a.useContext(J);if("object"==typeof t&&t&&"digest"in t&&"string"==typeof t.digest){let e=function(e){if(e.startsWith(`${re}:REDIRECT:{`))try{let t=JSON.parse(e.slice(28));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText&&"string"==typeof t.location&&"boolean"==typeof t.reloadDocument&&"boolean"==typeof t.replace)return t}catch{}}(t.digest);if(e){let r=me.get(t);if(r)throw r;let o=H(e.location,n);if(q&&!me.get(t)){if(!o.isExternal&&!e.reloadDocument){const n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:e.replace}));throw me.set(t,n),n}window.location.href=o.absoluteURL||o.to}return a.createElement("meta",{httpEquiv:"refresh",content:`0;url=${o.absoluteURL||o.to}`})}}return e}function ge({routeContext:e,match:t,children:n}){let r=a.useContext(G);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),a.createElement(te.Provider,{value:e},n)}function ve(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function be(e){let t=function(e){let t=a.useContext(te);return f(t,ve(e)),t}(e),n=t.matches[t.matches.length-1];return f(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}var xe={};function we(e,t,n){t||xe[e]||(xe[e]=!0,h(!1,n))}function je({to:e,replace:t,state:n,relative:r}){f(oe()," may be used only in the context of a component.");let{static:o}=a.useContext(J);h(!o," must not be used on the initial render in a . This is a no-op, but you should modify your code so the is only ever rendered in response to some user interaction or state change.");let{matches:i}=a.useContext(te),{pathname:s}=ie(),l=le(),c=L(e,I(i),s,"path"===r),u=JSON.stringify(c);return a.useEffect(()=>{l(JSON.parse(u),{replace:t,state:n,relative:r})},[l,u,r,t,n]),null}function ke(e){f(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function Oe({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:i=!1,unstable_useTransitions:s}){f(!oe(),"You cannot render a inside another . You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),c=a.useMemo(()=>({basename:l,navigator:o,static:i,unstable_useTransitions:s,future:{}}),[l,o,i,s]);"string"==typeof n&&(n=g(n));let{pathname:u="/",search:d="",hash:p="",state:m=null,key:y="default",unstable_mask:v}=n,b=a.useMemo(()=>{let e=A(u,l);return null==e?null:{location:{pathname:e,search:d,hash:p,state:m,key:y,unstable_mask:v},navigationType:r}},[l,u,d,p,m,y,r,v]);return h(null!=b,` is not able to match the URL "${u}${d}${p}" because it does not start with the basename, so the won't render anything.`),null==b?null:a.createElement(J.Provider,{value:c},a.createElement(ee.Provider,{children:t,value:b}))}function Se({children:e,location:t}){return function(e,t){return de(e,t)}(Ce(e),t)}function Ce(e,t=[]){let n=[];return a.Children.forEach(e,(e,r)=>{if(!a.isValidElement(e))return;let o=[...t,r];if(e.type===a.Fragment)return void n.push.apply(n,Ce(e.props.children,o));f(e.type===ke,`[${"string"==typeof e.type?e.type:e.type.name}] is not a component. All component children of must be a or `),f(!e.props.index||!e.props.children,"An index route cannot have child routes.");let i={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(i.children=Ce(e.props.children,o)),n.push(i)}),n}s.useOptimistic,a.memo(function({routes:e,future:t,state:n,isStatic:r,onError:o}){return de(e,void 0,{state:n,isStatic:r,onError:o,future:t})}),a.Component;var _e="get",Pe="application/x-www-form-urlencoded";function Ne(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement}function Ee(e=""){return new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}var Me=null,Ae=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Te(e){return null==e||Ae.has(e)?e:(h(!1,`"${e}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${Pe}"`),null)}function De(e,t){if(!1===e||null==e)throw new Error(t)}function Re(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}function Ie(e,t,n,r,o,i){let a=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith("*")&&n[t].params["*"]!==e.params["*"];return"assets"===i?t.filter((e,t)=>a(e,t)||s(e,t)):"data"===i?t.filter((t,i)=>{let l=r.routes[t.route.id];if(!l||!l.hasLoader)return!1;if(a(t,i)||s(t,i))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof r)return r}return!0}):[]}function Le(e,t,{includeHydrateFallback:n}={}){return r=e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let o=[r.module];return r.clientActionModule&&(o=o.concat(r.clientActionModule)),r.clientLoaderModule&&(o=o.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(o=o.concat(r.hydrateFallbackModule)),r.imports&&(o=o.concat(r.imports)),o}).flat(1),[...new Set(r)];var r}function Fe(){let e=a.useContext(G);return De(e,"You must render this element inside a element"),e}function Be(){let e=a.useContext(X);return De(e,"You must render this element inside a element"),e}Object.getOwnPropertyNames(Object.prototype).sort().join("\0"),"undefined"!=typeof window?window:"undefined"!=typeof globalThis&&globalThis,Symbol("SingleFetchRedirect");var ze=a.createContext(void 0);function We(){let e=a.useContext(ze);return De(e,"You must render this element inside a element"),e}function $e(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Ue({page:e,...t}){let{router:n}=Fe(),r=a.useMemo(()=>v(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?a.createElement(qe,{page:e,matches:r,...t}):null}function Ve(e){let{manifest:t,routeModules:n}=We(),[r,o]=a.useState([]);return a.useEffect(()=>{let r=!1;return async function(e,t,n){let r=await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await async function(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}(r,n);return e.links?e.links():[]}return[]}));return function(e,t){let n=new Set,r=new Set(t);return e.reduce((e,o)=>{if(t&&!function(e){return null!=e&&"string"==typeof e.page}(o)&&"script"===o.as&&o.href&&r.has(o.href))return e;let i=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}(o));return n.has(i)||(n.add(i),e.push({key:i,link:o})),e},[])}(r.flat(1).filter(Re).filter(e=>"stylesheet"===e.rel||"preload"===e.rel).map(e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"}))}(e,t,n).then(e=>{r||o(e)}),()=>{r=!0}},[e,t,n]),r}function qe({page:e,matches:t,...n}){let r=ie(),{future:o,manifest:i,routeModules:s}=We(),{basename:l}=Fe(),{loaderData:c,matches:u}=Be(),d=a.useMemo(()=>Ie(e,t,u,i,r,"data"),[e,t,u,i,r]),f=a.useMemo(()=>Ie(e,t,u,i,r,"assets"),[e,t,u,i,r]),h=a.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,a=!1;if(t.forEach(e=>{let t=i.routes[e.route.id];t&&t.hasLoader&&(!d.some(t=>t.route.id===e.route.id)&&e.route.id in c&&s[e.route.id]?.shouldRevalidate||t.hasClientLoader?a=!0:n.add(e.route.id))}),0===n.size)return[];let u=function(e,t,n,r){let o="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return n?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${r}`:o.pathname=`${o.pathname}.${r}`:"/"===o.pathname?o.pathname=`_root.${r}`:t&&"/"===A(o.pathname,t)?o.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${r}`,o}(e,l,o.unstable_trailingSlashAwareDataRequests,"data");return a&&n.size>0&&u.searchParams.set("_routes",t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(",")),[u.pathname+u.search]},[l,o.unstable_trailingSlashAwareDataRequests,c,r,i,d,t,e,s]),p=a.useMemo(()=>Le(f,i),[f,i]),m=Ve(f);return a.createElement(a.Fragment,null,h.map(e=>a.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n})),p.map(e=>a.createElement("link",{key:e,rel:"modulepreload",href:e,...n})),m.map(({key:e,link:t})=>a.createElement("link",{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}ze.displayName="FrameworkContext";function He(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}a.Component;var Ye="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{Ye&&(window.__reactRouterVersion="7.13.1")}catch(rM){}function Ke({basename:e,children:t,unstable_useTransitions:n,window:r}){let o=a.useRef();null==o.current&&(o.current=d({window:r,v5Compat:!0}));let i=o.current,[s,l]=a.useState({action:i.action,location:i.location}),c=a.useCallback(e=>{!1===n?l(e):a.startTransition(()=>l(e))},[n]);return a.useLayoutEffect(()=>i.listen(c),[i,c]),a.createElement(Oe,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:i,unstable_useTransitions:n})}var Ge=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Xe=a.forwardRef(function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:o,replace:i,unstable_mask:s,state:l,target:c,to:u,preventScrollReset:d,viewTransition:h,unstable_defaultShouldRevalidate:p,...m},g){let{basename:v,navigator:b,unstable_useTransitions:x}=a.useContext(J),w="string"==typeof u&&Ge.test(u),j=H(u,v),k=function(e,{relative:t}={}){f(oe(),"useHref() may be used only in the context of a component.");let{basename:n,navigator:r}=a.useContext(J),{hash:o,pathname:i,search:s}=ue(e,{relative:t}),l=i;return"/"!==n&&(l="/"===i?n:F([n,i])),r.createHref({pathname:l,search:s,hash:o})}(u=j.to,{relative:r}),O=ie(),S=null;if(s){let e=L(s,[],O.unstable_mask?O.unstable_mask.pathname:"/",!0);"/"!==v&&(e.pathname="/"===e.pathname?v:F([v,e.pathname])),S=b.createHref(e)}let[C,_,P]=function(e,t){let n=a.useContext(ze),[r,o]=a.useState(!1),[i,s]=a.useState(!1),{onFocus:l,onBlur:c,onMouseEnter:u,onMouseLeave:d,onTouchStart:f}=t,h=a.useRef(null);a.useEffect(()=>{if("render"===e&&s(!0),"viewport"===e){let e=new IntersectionObserver(e=>{e.forEach(e=>{s(e.isIntersecting)})},{threshold:.5});return h.current&&e.observe(h.current),()=>{e.disconnect()}}},[e]),a.useEffect(()=>{if(r){let e=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{o(!0)},m=()=>{o(!1),s(!1)};return n?"intent"!==e?[i,h,{}]:[i,h,{onFocus:$e(l,p),onBlur:$e(c,m),onMouseEnter:$e(u,p),onMouseLeave:$e(d,m),onTouchStart:$e(f,p)}]:[!1,h,{}]}(n,m),N=function(e,{target:t,replace:n,unstable_mask:r,state:o,preventScrollReset:i,relative:s,viewTransition:l,unstable_defaultShouldRevalidate:c,unstable_useTransitions:u}={}){let d=le(),f=ie(),h=ue(e,{relative:s});return a.useCallback(p=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(p,t)){p.preventDefault();let t=void 0!==n?n:y(f)===y(h),m=()=>d(e,{replace:t,unstable_mask:r,state:o,preventScrollReset:i,relative:s,viewTransition:l,unstable_defaultShouldRevalidate:c});u?a.startTransition(()=>m()):m()}},[f,d,h,n,r,o,t,e,i,s,l,c,u])}(u,{replace:i,unstable_mask:s,state:l,target:c,preventScrollReset:d,relative:r,viewTransition:h,unstable_defaultShouldRevalidate:p,unstable_useTransitions:x}),E=!(j.isExternal||o),M=a.createElement("a",{...m,...P,href:(E?S:void 0)||j.absoluteURL||k,onClick:E?function(t){e&&e(t),t.defaultPrevented||N(t)}:e,ref:He(g,_),target:c,"data-discover":w||"render"!==t?void 0:"true"});return C&&!w?a.createElement(a.Fragment,null,M,a.createElement(Ue,{page:k})):M});Xe.displayName="Link",a.forwardRef(function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:r=!1,style:o,to:i,viewTransition:s,children:l,...c},u){let d=ue(i,{relative:c.relative}),h=ie(),p=a.useContext(X),{navigator:m,basename:y}=a.useContext(J),g=null!=p&&function(e,{relative:t}={}){let n=a.useContext(Z);f(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Ze("useViewTransitionState"),o=ue(e,{relative:t});if(!n.isTransitioning)return!1;let i=A(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=A(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=E(o.pathname,s)||null!=E(o.pathname,i)}(d)&&!0===s,v=m.encodeLocation?m.encodeLocation(d).pathname:d.pathname,b=h.pathname,x=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;t||(b=b.toLowerCase(),x=x?x.toLowerCase():null,v=v.toLowerCase()),x&&y&&(x=A(x,y)||x);const w="/"!==v&&v.endsWith("/")?v.length-1:v.length;let j,k=b===v||!r&&b.startsWith(v)&&"/"===b.charAt(w),O=null!=x&&(x===v||!r&&x.startsWith(v)&&"/"===x.charAt(v.length)),S={isActive:k,isPending:O,isTransitioning:g},C=k?e:void 0;j="function"==typeof n?n(S):[n,k?"active":null,O?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let _="function"==typeof o?o(S):o;return a.createElement(Xe,{...c,"aria-current":C,className:j,ref:u,style:_,to:i,viewTransition:s},"function"==typeof l?l(S):l)}).displayName="NavLink";var Qe=a.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:i,method:s=_e,action:l,onSubmit:c,relative:u,preventScrollReset:d,viewTransition:h,unstable_defaultShouldRevalidate:p,...m},g)=>{let{unstable_useTransitions:v}=a.useContext(J),b=function(){let{router:e}=Ze("useSubmit"),{basename:t}=a.useContext(J),n=be("useRouteId"),r=e.fetch,o=e.navigate;return a.useCallback(async(e,i={})=>{let{action:a,method:s,encType:l,formData:c,body:u}=function(e,t){let n,r,o,i,a;if(function(e){return Ne(e)&&"form"===e.tagName.toLowerCase()}(e)){let a=e.getAttribute("action");r=a?A(a,t):null,n=e.getAttribute("method")||_e,o=Te(e.getAttribute("enctype"))||Pe,i=new FormData(e)}else if(function(e){return Ne(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return Ne(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let a=e.form;if(null==a)throw new Error('Cannot submit a