(()=>{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?O(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?O(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 O(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(C(n,a),C(e,a),a),s=!0,O(t,i))},y.minus=y.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?N(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)):O(new r(n),o)},y.naturalExponential=y.exp=function(){return w(this)},y.naturalLogarithm=y.ln=function(){return C(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):N(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(O(i,n+1,0),i.times(i).eq(c)){r=i;break}}else if("9999"!=t)break;a+=4}return s=!0,O(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?O(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),O(n,e+j(n)+1,t))},y.toExponential=function(e,t){var n,r=this,o=r.constructor;return void 0===e?n=P(r,!0):(v(e,0,i),void 0===t?t=o.rounding:v(t,0,8),n=P(r=O(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?P(o):(v(e,0,i),void 0===t?t=a.rounding:v(t,0,8),n=P((r=O(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 O(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 O(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&&M((i=i.times(u)).d,t),0!==(n=d(n/2));)M((u=u.times(u)).d,t);return s=!0,e.s<0?new f(o).div(i):O(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(C(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=P(o,(n=j(o))<=a.toExpNeg||n>=a.toExpPos):(v(e,1,i),void 0===t?t=a.rounding:v(t,0,8),r=P(o=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)),O(new n(this),e,t)},y.toString=y.valueOf=y.val=y.toJSON=function(){var e=this,t=j(e),n=e.constructor;return P(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,C,S,N,P=r.constructor,M=r.s==o.s?1:-1,E=r.d,A=o.d;if(!r.s)return new P(r);if(!o.s)throw Error(l+"Division by zero");for(c=r.e-o.e,S=A.length,k=E.length,y=(m=new P(M)).d=[],u=0;A[u]==(E[u]||0);)++u;if(A[u]>(E[u]||0)&&--c,(x=null==i?i=P.precision:a?i+(j(r)-j(o))+1:i)<0)return new P(0);if(x=x/7+2|0,u=0,1==S)for(d=0,A=A[0],x++;(u1&&(A=e(A,d),E=e(E,d),S=A.length,k=E.length),_=S,v=(g=E.slice(0,S)).length;v=p/2&&++C;do{d=0,(s=t(A,g,S,v))<0?(b=g[0],S!=v&&(b=b*p+(g[1]||0)),(d=b/C|0)>1?(d>=p&&(d=p-1),1==(s=t(f=e(A,d),g,h=f.length,v=g.length))&&(d--,n(f,S16)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=O(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=O(i.times(i),l);return h.precision=p,null==t?(s=!0,O(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 _(e,t,n){if(t>e.LN10.sd())throw s=!0,n&&(e.precision=n),Error(l+"LN10 precision limit exceeded");return O(new e(e.LN10),t)}function k(e){for(var t="";e--;)t+="0";return t}function C(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),_(g,f);if(f+=10,g.precision=f,r=(n=b(y)).charAt(0),a=j(m),!(Math.abs(a)<15e14))return d=_(g,f+2,v).times(a+""),m=C(new g(r+"."+n.slice(1)),f-10).plus(d),g.precision=v,null==t?(s=!0,O(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=O(m.times(m),f),i=3;;){if(c=O(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(_(g,f+2,v).times(a+""))),u=x(u,new g(p),f),g.precision=v,null==t?(s=!0,O(u,v)):u;u=d,i+=2}}function S(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 O(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 N(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?O(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)+k(r):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+k(-o-1)+i,n&&(r=n-a)>0&&(i+=k(r))):o>=a?(i+=k(o+1-a),n&&(r=n-o-1)>0&&(i=i+"."+k(r))):((r=o+1)0&&(o+1===a&&(i+="."),i+=k(r))),e.s<0?"-"+i:i}function M(e,t){if(e.length>t)return e.length=t,!0}function E(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])):S(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);S(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=E,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,_=(w=w==d?h:w)==h,k=x==w;if(k&&c(e)){if(!c(t))return!1;v=!0,j=!1}if(k&&!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 C=j&&p.call(e,"__wrapped__"),S=_&&p.call(t,"__wrapped__");if(C||S){var O=C?e.value():e,N=S?t.value():t;return g||(g=new r),y(O,N,n,m,g)}}return!!k&&(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:()=>Qa,CaptionLabel:()=>Za,Chevron:()=>Ja,Day:()=>es,DayButton:()=>ts,Dropdown:()=>ns,DropdownNav:()=>rs,Footer:()=>os,Month:()=>is,MonthCaption:()=>as,MonthGrid:()=>ss,Months:()=>ls,MonthsDropdown:()=>cs,Nav:()=>us,NextMonthButton:()=>ds,Option:()=>fs,PreviousMonthButton:()=>hs,Root:()=>ps,Select:()=>ms,Week:()=>ys,WeekNumber:()=>bs,WeekNumberHeader:()=>xs,Weekday:()=>gs,Weekdays:()=>vs,Weeks:()=>ws,YearsDropdown:()=>js});var t={};o.r(t),o.d(t,{formatCaption:()=>ks,formatDay:()=>Ss,formatMonthCaption:()=>Cs,formatMonthDropdown:()=>Os,formatWeekNumber:()=>Ps,formatWeekNumberHeader:()=>Ms,formatWeekdayName:()=>Ns,formatYearCaption:()=>As,formatYearDropdown:()=>Es});var n={};o.r(n),o.d(n,{labelCaption:()=>Is,labelDay:()=>Ds,labelDayButton:()=>Ts,labelGrid:()=>Rs,labelGridcell:()=>Ls,labelMonthDropdown:()=>Fs,labelNav:()=>zs,labelNext:()=>Ws,labelPrevious:()=>$s,labelWeekNumber:()=>Vs,labelWeekNumberHeader:()=>qs,labelWeekday:()=>Us,labelYearDropdown:()=>Hs});var r={};o.r(r),o.d(r,{scaleBand:()=>Oh,scaleDiverging:()=>Xv,scaleDivergingLog:()=>Qv,scaleDivergingPow:()=>Jv,scaleDivergingSqrt:()=>eb,scaleDivergingSymlog:()=>Zv,scaleIdentity:()=>Km,scaleImplicit:()=>Ch,scaleLinear:()=>Hm,scaleLog:()=>ny,scaleOrdinal:()=>Sh,scalePoint:()=>Ph,scalePow:()=>dy,scaleQuantile:()=>wy,scaleQuantize:()=>jy,scaleRadial:()=>py,scaleSequential:()=>Uv,scaleSequentialLog:()=>Vv,scaleSequentialPow:()=>Hv,scaleSequentialQuantile:()=>Yv,scaleSequentialSqrt:()=>Kv,scaleSequentialSymlog:()=>qv,scaleSqrt:()=>fy,scaleSymlog:()=>ay,scaleThreshold:()=>_y,scaleTime:()=>zv,scaleUtc:()=>Bv,tickFormat:()=>Vm});var i=o(5338);const a=window.wp.hooks,s=window.wp.i18n,l=window.React;var c=o.t(l,2),u=o.n(l);const d=(...e)=>e.filter((e,t,n)=>Boolean(e)&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim(),f=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),h=e=>{const t=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()))(e);return t.charAt(0).toUpperCase()+t.slice(1)};var p={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const m=e=>{for(const t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1},y=(0,l.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:a,...s},c)=>(0,l.createElement)("svg",{ref:c,...p,width:t,height:t,stroke:e,strokeWidth:r?24*Number(n)/Number(t):n,className:d("lucide",o),...!i&&!m(s)&&{"aria-hidden":"true"},...s},[...a.map(([e,t])=>(0,l.createElement)(e,t)),...Array.isArray(i)?i:[i]])),g=(e,t)=>{const n=(0,l.forwardRef)(({className:n,...r},o)=>(0,l.createElement)(y,{ref:o,iconNode:t,className:d(`lucide-${f(h(e))}`,`lucide-${e}`,n),...r}));return n.displayName=h(e),n},v=g("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]),b=window.ReactJSXRuntime;(0,a.addFilter)("suredonation.settings.navigation","suredonation/pdf-receipt",e=>{const t={name:(0,s.__)("PDF Receipt","suredonation"),slug:"pdf-receipt",icon:(0,b.jsx)(v,{className:"size-5"}),helpText:(0,s.__)("Install the PDF library to enable downloadable PDF receipts for donors.","suredonation")},n=e.findIndex(e=>"ai"===e.slug);return-1===n?[...e,t]:[...e.slice(0,n),t,...e.slice(n)]});const x=window.wp.element,w=e=>{const t=C(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),j(n,t)||k(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},j=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?j(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const i=e.join("-");return t.validators.find(({validator:e})=>e(i))?.classGroupId},_=/^\[(.+)\]$/,k=e=>{if(_.test(e)){const t=_.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},C=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return P(Object.entries(e.classGroups),n).forEach(([e,n])=>{S(n,r,e,t)}),r},S=(e,t,n,r)=>{e.forEach(e=>{if("string"!=typeof e)return"function"==typeof e?N(e)?void S(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n}):void Object.entries(e).forEach(([e,o])=>{S(o,O(t,e),n,r)});(""===e?t:O(t,e)).classGroupId=n})},O=(e,t)=>{let n=e;return t.split("-").forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},N=e=>e.isThemeGetter,P=(e,t)=>t?e.map(([e,n])=>{const r=n.map(e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,n])=>[t+e,n])):e);return[e,r]}):e,M=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(o,i)=>{n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}},E=e=>{const{separator:t,experimentalParseClassName:n}=e,r=1===t.length,o=t[0],i=t.length,a=e=>{const n=[];let a,s=0,l=0;for(let c=0;cl?a-l:void 0}};return n?e=>n({className:e,parseClassName:a}):a},A=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)}),t.push(...n.sort()),t},T=/\s+/;function D(){let e,t,n=0,r="";for(;n{if("string"==typeof e)return e;let t,n="";for(let r=0;rt(e),e());return n=(e=>({cache:M(e.cacheSize),parseClassName:E(e),...w(e)}))(l),r=n.cache.get,o=n.cache.set,i=a,a(s)};function a(e){const t=r(e);if(t)return t;const i=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],a=e.trim().split(T);let s="";for(let e=a.length-1;e>=0;e-=1){const t=a[e],{modifiers:l,hasImportantModifier:c,baseClassName:u,maybePostfixModifierPosition:d}=n(t);let f=Boolean(d),h=r(f?u.substring(0,d):u);if(!h){if(!f){s=t+(s.length>0?" "+s:s);continue}if(h=r(u),!h){s=t+(s.length>0?" "+s:s);continue}f=!1}const p=A(l).join(":"),m=c?p+"!":p,y=m+h;if(i.includes(y))continue;i.push(y);const g=o(h,f);for(let e=0;e0?" "+s:s)}return s})(e,n);return o(e,i),i}return function(){return i(D.apply(null,arguments))}}const L=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},F=/^\[(?:([a-z-]+):)?(.+)\]$/i,z=/^\d+\/\d+$/,B=new Set(["px","full","screen"]),W=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,$=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,U=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,V=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,q=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,H=e=>Y(e)||B.has(e)||z.test(e),K=e=>se(e,"length",le),Y=e=>Boolean(e)&&!Number.isNaN(Number(e)),G=e=>se(e,"number",Y),X=e=>Boolean(e)&&Number.isInteger(Number(e)),Q=e=>e.endsWith("%")&&Y(e.slice(0,-1)),Z=e=>F.test(e),J=e=>W.test(e),ee=new Set(["length","size","percentage"]),te=e=>se(e,ee,ce),ne=e=>se(e,"position",ce),re=new Set(["image","url"]),oe=e=>se(e,re,de),ie=e=>se(e,"",ue),ae=()=>!0,se=(e,t,n)=>{const r=F.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))},le=e=>$.test(e)&&!U.test(e),ce=()=>!1,ue=e=>V.test(e),de=e=>q.test(e),fe=(Symbol.toStringTag,()=>{const e=L("colors"),t=L("spacing"),n=L("blur"),r=L("brightness"),o=L("borderColor"),i=L("borderRadius"),a=L("borderSpacing"),s=L("borderWidth"),l=L("contrast"),c=L("grayscale"),u=L("hueRotate"),d=L("invert"),f=L("gap"),h=L("gradientColorStops"),p=L("gradientColorStopPositions"),m=L("inset"),y=L("margin"),g=L("opacity"),v=L("padding"),b=L("saturate"),x=L("scale"),w=L("sepia"),j=L("skew"),_=L("space"),k=L("translate"),C=()=>["auto",Z,t],S=()=>[Z,t],O=()=>["",H,K],N=()=>["auto",Y,Z],P=()=>["","0",Z],M=()=>[Y,Z];return{cacheSize:500,separator:":",theme:{colors:[ae],spacing:[H,K],blur:["none","",J,Z],brightness:M(),borderColor:[e],borderRadius:["none","","full",J,Z],borderSpacing:S(),borderWidth:O(),contrast:M(),grayscale:P(),hueRotate:M(),invert:P(),gap:S(),gradientColorStops:[e],gradientColorStopPositions:[Q,K],inset:C(),margin:C(),opacity:M(),padding:S(),saturate:M(),scale:M(),sepia:P(),skew:M(),space:S(),translate:S()},classGroups:{aspect:[{aspect:["auto","square","video",Z]}],container:["container"],columns:[{columns:[J]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",Z]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",X,Z]}],basis:[{basis:C()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Z]}],grow:[{grow:P()}],shrink:[{shrink:P()}],order:[{order:["first","last","none",X,Z]}],"grid-cols":[{"grid-cols":[ae]}],"col-start-end":[{col:["auto",{span:["full",X,Z]},Z]}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":[ae]}],"row-start-end":[{row:["auto",{span:[X,Z]},Z]}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Z]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Z]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[_]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[_]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Z,t]}],"min-w":[{"min-w":[Z,t,"min","max","fit"]}],"max-w":[{"max-w":[Z,t,"none","full","min","max","fit","prose",{screen:[J]},J]}],h:[{h:[Z,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Z,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Z,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Z,t,"auto","min","max","fit"]}],"font-size":[{text:["base",J,K]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",G]}],"font-family":[{font:[ae]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Z]}],"line-clamp":[{"line-clamp":["none",Y,G]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",H,Z]}],"list-image":[{"list-image":["none",Z]}],"list-style-type":[{list:["none","disc","decimal",Z]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",H,K]}],"underline-offset":[{"underline-offset":["auto",H,Z]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Z]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Z]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",ne]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",te]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},oe]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[p]}],"gradient-via-pos":[{via:[p]}],"gradient-to-pos":[{to:[p]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[H,Z]}],"outline-w":[{outline:[H,K]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:O()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[H,K]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",J,ie]}],"shadow-color":[{shadow:[ae]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",J,Z]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[b]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Z]}],duration:[{duration:M()}],ease:[{ease:["linear","in","out","in-out",Z]}],delay:[{delay:M()}],animate:[{animate:["none","spin","ping","pulse","bounce",Z]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[X,Z]}],"translate-x":[{"translate-x":[k]}],"translate-y":[{"translate-y":[k]}],"skew-x":[{"skew-x":[j]}],"skew-y":[{"skew-y":[j]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Z]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Z]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Z]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[H,K,G]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}),he=I(fe);function pe(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;the(me(...e)),ve=(...e)=>(...t)=>e.filter(Boolean).forEach(e=>e?.(...t)),be=e=>{const t={0:"gap-0",xxs:"gap-1",xs:"gap-2",sm:"gap-3",md:"gap-4",lg:"gap-5",xl:"gap-6","2xl":"gap-8"};return t[e]||t.md},xe={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7",8:"grid-cols-8",9:"grid-cols-9",10:"grid-cols-10",11:"grid-cols-11",12:"grid-cols-12"},we=e=>e<1024?`${e} bytes`:e<1048576?`${(e/1024).toFixed(2)} KB`:e<1073741824?`${(e/1048576).toFixed(2)} MB`:`${(e/1073741824).toFixed(2)} GB`,je=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),_e=(...e)=>e.filter((e,t,n)=>Boolean(e)&&n.indexOf(e)===t).join(" ");var ke={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Ce=(0,l.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:a,...s},c)=>(0,l.createElement)("svg",{ref:c,...ke,width:t,height:t,stroke:e,strokeWidth:r?24*Number(n)/Number(t):n,className:_e("lucide",o),...s},[...a.map(([e,t])=>(0,l.createElement)(e,t)),...Array.isArray(i)?i:[i]])),Se=(e,t)=>{const n=(0,l.forwardRef)(({className:n,...r},o)=>(0,l.createElement)(Ce,{ref:o,iconNode:t,className:_e(`lucide-${je(e)}`,n),...r}));return n.displayName=`${e}`,n},Oe=Se("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Ne=(0,l.forwardRef)(({label:e="",size:t="sm",className:n="",type:r="pill",variant:o="neutral",icon:i=null,disabled:a=!1,onClose:s=()=>{},closable:l=!1,onMouseDown:c=()=>{},disableHover:u=!1},d)=>{const f={neutral:"bg-badge-background-gray text-badge-color-gray border-badge-border-gray",red:"bg-badge-background-red text-badge-color-red border-badge-border-red",yellow:"bg-badge-background-yellow text-badge-color-yellow border-badge-border-yellow",green:"bg-badge-background-green text-badge-color-green border-badge-border-green",blue:"bg-badge-background-sky text-badge-color-sky border-badge-border-sky",inverse:"bg-background-inverse text-text-inverse border-background-inverse",disabled:"bg-badge-background-disabled text-badge-color-disabled border-badge-border-disabled disabled cursor-not-allowed"};let h="",p="group relative justify-center flex items-center cursor-pointer";const m={xxs:"[&>svg]:size-3",xs:"[&>svg]:size-3",sm:"[&>svg]:size-3",md:"[&>svg]:size-4",lg:"[&>svg]:size-5"};return a?(h=f.disabled,p+=" cursor-not-allowed disabled"):h=f[o],e?(0,b.jsxs)("span",{className:ge("font-medium border-badge-border-gray flex items-center justify-center border border-solid box-border max-w-full transition-colors duration-150 ease-in-out",{xxs:"py-0.5 px-0.5 text-xs h-4",xs:"py-0.5 px-1 text-xs h-5",sm:"py-1 px-1.5 text-xs h-6",md:"py-1 px-1.5 text-sm h-7",lg:"py-1 px-1.5 text-base h-8"}[t],{pill:"rounded-full",rounded:"rounded"}[r],"gap-0.5",h,!u&&{neutral:"hover:bg-badge-hover-gray",red:"hover:bg-badge-hover-red",yellow:"hover:bg-badge-hover-yellow",green:"hover:bg-badge-hover-green",blue:"hover:bg-badge-hover-sky",inverse:"hover:bg-badge-hover-inverse",disabled:"hover:bg-badge-hover-disabled"}[o],n),ref:d,children:[i?(0,b.jsx)("span",{className:ge("justify-center flex items-center",m[t]),children:i}):null,(0,b.jsx)("span",{className:"px-1 truncate inline-block",children:e}),l&&(0,b.jsxs)("span",{className:ge(p,m[t]),onMouseDown:c,role:"button",tabIndex:0,...!a&&{onClick:s},children:[(0,b.jsx)("span",{className:"sr-only",children:`Remove ${e}`}),(0,b.jsx)(Oe,{}),(0,b.jsx)("span",{className:"absolute -inset-1"})]})]}):null});Ne.displayName="Badge";const Pe=(0,l.forwardRef)((e,t)=>{const{variant:n="primary",size:r="md",type:o="button",tag:i="button",className:a,children:s,disabled:c=!1,destructive:u=!1,icon:d=null,iconPosition:f="left",loading:h=!1,...p}=e,m=u&&"focus:ring-focus-error",y=h?"opacity-50 disabled:cursor-not-allowed":"",g={primary:"text-text-on-color bg-button-primary hover:bg-button-primary-hover outline-button-primary hover:outline-button-primary-hover shadow-xs disabled:shadow-none focus:shadow-none disabled:bg-button-disabled disabled:outline-button-disabled",secondary:"text-text-on-color bg-button-secondary hover:bg-button-secondary-hover outline-button-secondary hover:outline-button-secondary-hover shadow-xs focus:shadow-none disabled:shadow-none disabled:bg-button-disabled disabled:outline-button-disabled",outline:"text-button-tertiary-color outline-border-subtle bg-button-tertiary shadow-sm focus:shadow-none hover:bg-button-tertiary-hover hover:outline-border-subtle disabled:bg-button-tertiary disabled:outline-border-disabled",ghost:"text-text-primary bg-transparent outline-transparent hover:bg-button-tertiary-hover",link:"outline-none text-link-primary bg-transparent hover:text-link-primary-hover hover:underline p-0 border-0 leading-none"}[n],v=u&&!c?{primary:"bg-button-danger hover:bg-button-danger-hover outline-button-danger hover:outline-button-danger-hover",secondary:"bg-button-danger hover:bg-button-danger-hover outline-button-danger hover:outline-button-danger-hover",outline:"text-button-danger outline outline-1 outline-button-danger hover:outline-button-danger bg-button-tertiary hover:bg-field-background-error",ghost:"text-button-danger hover:bg-field-background-error",link:"text-button-danger hover:text-button-danger-secondary"}[n]:"",x={xs:"p-1 rounded [&>svg]:size-4",sm:"p-2 rounded [&>svg]:size-4 gap-0.5",md:"p-2.5 rounded-md text-sm [&>svg]:size-5 gap-1",lg:"p-3 rounded-lg text-base [&>svg]:size-6 gap-1"}[r];let w,j=null,_="";return d&&(_="flex items-center justify-center","left"===f?w=d:j=d),(0,b.jsxs)(i,{ref:t,type:o,className:ge(_,"outline outline-1 border-none cursor-pointer transition-colors duration-300 ease-in-out text-xs font-semibold focus:ring-2 focus:ring-toggle-on focus:ring-offset-2 disabled:text-text-disabled",x,g,v,m,y,{"cursor-default":c},a),disabled:c,"aria-disabled":c,...p,children:[(0,b.jsx)(l.Fragment,{children:w},"left-icon"),s?(0,b.jsx)("span",{className:"px-1",children:s}):null,(0,b.jsx)(l.Fragment,{children:j},"right-icon")]})});Pe.displayName="Button";const Me=g("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]),Ee=g("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]),Ae=({count:e=1,className:t=""})=>(0,b.jsx)("div",{className:"space-y-2",children:Array.from({length:e}).map((e,n)=>(0,b.jsx)("div",{className:`animate-pulse bg-border-subtle ${t}`},n))}),Te=({loading:e,title:t,content:n,description:r,titleClassName:o="text-base"})=>(0,b.jsx)(b.Fragment,{children:(0,b.jsxs)("div",{children:[t&&(0,b.jsx)("div",{className:r?void 0:"mb-6",children:e?(0,b.jsx)(Ae,{count:1,className:"w-48 h-8 rounded-sm"}):(0,b.jsx)("h3",{className:`${o} font-semibold text-text-primary m-0`,children:t})}),r&&!e&&(0,b.jsx)("p",{className:"text-sm text-text-secondary mb-4",children:r}),(0,b.jsx)("div",{className:"space-y-6",children:e?(0,b.jsxs)("div",{children:[(0,b.jsx)(Ae,{count:3,className:"h-6 rounded-sm"}),(0,b.jsx)(Ae,{count:1,className:"h-6 rounded-sm"})]}):n})]})}),De=window.suredonation_admin||{},Re=({toast:e})=>{const[t,n]=(0,x.useState)(!!De.pdf_library_exists),[r,o]=(0,x.useState)(!1),[i,a]=(0,x.useState)(!1),l=!!De.php_version_compatible,c=async({action:t,setLoading:n,onSuccess:r,successMsg:o,errorMsg:i})=>{n(!0);try{const n=new FormData;n.append("action",t),n.append("nonce",De.pdf_nonce);const a=await fetch(De.ajax_url,{method:"POST",body:n});if(!a.ok)throw new Error(`HTTP ${a.status}`);const s=await a.json();s.success?(r(),e?.success(s.data?.message||o)):e?.error(s.data?.message||i)}catch{e?.error((0,s.__)("An error occurred. Please try again.","suredonation"))}finally{n(!1)}},u=(0,b.jsxs)("div",{className:"space-y-6",children:[(0,b.jsxs)("div",{className:"flex items-center justify-between p-4 border border-solid border-border-subtle rounded-lg",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("p",{className:"text-sm font-medium text-text-primary m-0",children:(0,s.__)("PDF Library","suredonation")}),(0,b.jsx)("p",{className:"text-xs text-text-secondary m-0 mt-0.5",children:t?(0,s.__)("mPDF library is installed and ready.","suredonation"):(0,s.__)("Required for generating downloadable PDF receipts.","suredonation")})]}),(0,b.jsx)(Ne,{label:t?(0,s.__)("Installed","suredonation"):(0,s.__)("Not Installed","suredonation"),type:"pill",variant:t?"green":"neutral",size:"sm"})]}),!l&&(0,b.jsx)("p",{className:"text-sm text-support-error m-0",children:(0,s.__)("PHP 8.0 or higher is required for the PDF library.","suredonation")}),(0,b.jsx)("div",{children:t?(0,b.jsx)(Pe,{variant:"outline",size:"sm",onClick:()=>c({action:"suredonation_delete_pdf_library",setLoading:a,onSuccess:()=>n(!1),successMsg:(0,s.__)("PDF library removed successfully.","suredonation"),errorMsg:(0,s.__)("Failed to remove PDF library.","suredonation")}),disabled:i,icon:(0,b.jsx)(Me,{className:"size-4"}),iconPosition:"left","aria-busy":i,children:i?(0,s.__)("Removing…","suredonation"):(0,s.__)("Remove PDF Library","suredonation")}):(0,b.jsx)(Pe,{variant:"primary",size:"sm",onClick:()=>c({action:"suredonation_download_pdf_library",setLoading:o,onSuccess:()=>n(!0),successMsg:(0,s.__)("PDF library installed successfully.","suredonation"),errorMsg:(0,s.__)("Failed to install PDF library.","suredonation")}),disabled:r||!l,icon:(0,b.jsx)(Ee,{className:"size-4"}),iconPosition:"left","aria-busy":r,children:r?(0,s.__)("Installing…","suredonation"):(0,s.__)("Install PDF Library","suredonation")})})]});return(0,b.jsx)(Te,{loading:!1,title:(0,s.__)("PDF Receipt","suredonation"),description:(0,s.__)("Install the PDF library to enable downloadable PDF receipts in the donor dashboard.","suredonation"),content:u})};(0,a.addFilter)("suredonation.settings.page.content","suredonation/pdf-receipt",(e,t,n,r,o)=>{if("pdf-receipt"===t){const t=(0,b.jsxs)("div",{children:[(0,b.jsx)("span",{className:"sr-only",children:(0,s.__)("PDF Receipt","suredonation")}),(0,b.jsx)("div",{className:"space-y-6",children:(0,b.jsx)(Re,{toast:o})})]},"pdf-receipt-page");return[...e,t]}return e});var Ie="popstate";function Le(e){return"object"==typeof e&&null!=e&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function Fe(e={}){return function(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s="POP",l=null,c=u();function u(){return(a.state||{idx:null}).idx}function d(){s="POP";let e=u(),t=null==e?null:e-c;c=e,l&&l({action:s,location:h.location,delta:t})}function f(e){return function(e,t=!1){let n="http://localhost";"undefined"!=typeof window&&(n="null"!==window.location.origin?window.location.origin:window.location.href),ze(n,"No window.location.(origin|href) available to create URL");let r="string"==typeof e?e:Ue(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}(e)}null==c&&(c=0,a.replaceState({...a.state,idx:c},""));let h={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(Ie,d),l=e,()=>{o.removeEventListener(Ie,d),l=null}},createHref:e=>t(o,e),createURL:f,encodeLocation(e){let t=f(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s="PUSH";let r=Le(e)?e:$e(h.location,e,t);n&&n(r,e),c=u()+1;let d=We(r,c),f=h.createHref(r.unstable_mask||r);try{a.pushState(d,"",f)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(f)}i&&l&&l({action:s,location:h.location,delta:1})},replace:function(e,t){s="REPLACE";let r=Le(e)?e:$e(h.location,e,t);n&&n(r,e),c=u();let o=We(r,c),d=h.createHref(r.unstable_mask||r);a.replaceState(o,"",d),i&&l&&l({action:s,location:h.location,delta:0})},go:e=>a.go(e)};return h}(function(e,t){let{pathname:n="/",search:r="",hash:o=""}=Ve(e.location.hash.substring(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),$e("",{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:Ue(t))},function(e,t){Be("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)},e)}function ze(e,t){if(!1===e||null==e)throw new Error(t)}function Be(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function We(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 $e(e,t,n=null,r,o){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?Ve(t):t,state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10),unstable_mask:o}}function Ue({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 Ve(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 qe(e,t,n="/"){return function(e,t,n,r){let o=it(("string"==typeof t?Ve(t):t).pathname||"/",n);if(null==o)return null;let i=He(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;ze(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=dt([r,l.relativePath]),u=n.concat(l);e.children&&e.children.length>0&&(ze(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),He(e.children,t,u,c,a)),(null!=e.path||e.index)&&t.push({path:c,score:tt(c,e.index),routesMeta:u})};return e.forEach((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of Ke(e.path))i(e,t,!0,n);else i(e,t)}),t}function Ke(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=Ke(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 Ye=/^:[\w-]+$/,Ge=3,Xe=2,Qe=1,Ze=10,Je=-2,et=e=>"*"===e;function tt(e,t){let n=e.split("/"),r=n.length;return n.some(et)&&(r+=Je),t&&(r+=Xe),n.filter(e=>!et(e)).reduce((e,t)=>e+(Ye.test(t)?Ge:""===t?Qe:Ze),r)}function nt(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 ot(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return Be(!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 it(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 at=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function st(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 lt(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 ct(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 ut(e,t,n,r=!1){let o;"string"==typeof e?o=Ve(e):(o={...e},ze(!o.pathname||!o.pathname.includes("?"),lt("?","pathname","search",o)),ze(!o.pathname||!o.pathname.includes("#"),lt("#","pathname","hash",o)),ze(!o.search||!o.search.includes("#"),lt("#","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?Ve(e):e;return r?(r=r.replace(/\/\/+/g,"/"),n=r.startsWith("/")?st(r.substring(1),"/"):st(r,t)):n=t,{pathname:n,search:ht(o),hash:pt(i)}}(o,i),c=s&&"/"!==s&&s.endsWith("/"),u=(a||"."===s)&&n.endsWith("/");return l.pathname.endsWith("/")||!c&&!u||(l.pathname+="/"),l}var dt=e=>e.join("/").replace(/\/\/+/g,"/"),ft=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ht=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",pt=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",mt=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 yt(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}function gt(e){return e.map(e=>e.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var vt="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function bt(e,t){let n=e;if("string"!=typeof n||!at.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,o=!1;if(vt)try{let e=new URL(window.location.href),r=n.startsWith("//")?new URL(e.protocol+n):new URL(n),i=it(r.pathname,t);r.origin===e.origin&&null!=i?n=i+r.search+r.hash:o=!0}catch(e){Be(!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 xt=["POST","PUT","PATCH","DELETE"],wt=(new Set(xt),["GET",...xt]);new Set(wt),Symbol("ResetLoaderData");var jt=l.createContext(null);jt.displayName="DataRouter";var _t=l.createContext(null);_t.displayName="DataRouterState";var kt=l.createContext(!1);var Ct=l.createContext({isTransitioning:!1});Ct.displayName="ViewTransition",l.createContext(new Map).displayName="Fetchers",l.createContext(null).displayName="Await";var St=l.createContext(null);St.displayName="Navigation";var Ot=l.createContext(null);Ot.displayName="Location";var Nt=l.createContext({outlet:null,matches:[],isDataRoute:!1});Nt.displayName="Route";var Pt=l.createContext(null);Pt.displayName="RouteError";var Mt="REACT_ROUTER_ERROR";function Et(){return null!=l.useContext(Ot)}function At(){return ze(Et(),"useLocation() may be used only in the context of a component."),l.useContext(Ot).location}var Tt="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Dt(e){l.useContext(St).static||l.useLayoutEffect(e)}function Rt(){let{isDataRoute:e}=l.useContext(Nt);return e?function(){let{router:e}=function(e){let t=l.useContext(jt);return ze(t,qt(e)),t}("useNavigate"),t=Ht("useNavigate"),n=l.useRef(!1);return Dt(()=>{n.current=!0}),l.useCallback(async(r,o={})=>{Be(n.current,Tt),n.current&&("number"==typeof r?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...o}))},[e,t])}():function(){ze(Et(),"useNavigate() may be used only in the context of a component.");let e=l.useContext(jt),{basename:t,navigator:n}=l.useContext(St),{matches:r}=l.useContext(Nt),{pathname:o}=At(),i=JSON.stringify(ct(r)),a=l.useRef(!1);return Dt(()=>{a.current=!0}),l.useCallback((r,s={})=>{if(Be(a.current,Tt),!a.current)return;if("number"==typeof r)return void n.go(r);let l=ut(r,JSON.parse(i),o,"path"===s.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:dt([t,l.pathname])),(s.replace?n.replace:n.push)(l,s.state,s)},[t,n,i,o,e])}()}function It(){let{matches:e}=l.useContext(Nt),t=e[e.length-1];return t?t.params:{}}function Lt(e,{relative:t}={}){let{matches:n}=l.useContext(Nt),{pathname:r}=At(),o=JSON.stringify(ct(n));return l.useMemo(()=>ut(e,JSON.parse(o),r,"path"===t),[e,o,r,t])}function Ft(e,t,n){ze(Et(),"useRoutes() may be used only in the context of a component.");let{navigator:r}=l.useContext(St),{matches:o}=l.useContext(Nt),i=o[o.length-1],a=i?i.params:{},s=i?i.pathname:"/",c=i?i.pathnameBase:"/",u=i&&i.route;{let e=u&&u.path||"";Yt(s,!u||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${s}" (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,f=At();if(t){let e="string"==typeof t?Ve(t):t;ze("/"===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=f;let h=d.pathname||"/",p=h;if("/"!==c){let e=c.replace(/^\//,"").split("/");p="/"+h.replace(/^\//,"").split("/").slice(e.length).join("/")}let m=qe(e,{pathname:p});Be(u||null!=m,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),Be(null==m||void 0!==m[m.length-1].route.element||void 0!==m[m.length-1].route.Component||void 0!==m[m.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 y=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]);ze(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 a=!1,s=-1;if(n&&r){a=r.renderFallback;for(let e=0;e=0?o.slice(0,s+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:gt(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||Bt,a&&(s<0&&0===c?(Yt("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),f=!0,p=null):s===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?l.createElement(n.route.Component,null):n.route.element?n.route.element:e,l.createElement(Vt,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===c)?l.createElement(Wt,{location:r.location,revalidation:r.revalidation,component:h,error:d,children:y(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:u}):y()},null)}(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},a,e.params),pathname:dt([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?c:dt([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])})),o,n);return t&&y?l.createElement(Ot.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...d},navigationType:"POP"}},y):y}function zt(){let e=function(){let e=l.useContext(Pt),t=function(e){let t=l.useContext(_t);return ze(t,qt(e)),t}("useRouteError"),n=Ht("useRouteError");return void 0!==e?e:t.errors?.[n]}(),t=yt(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},a=null;return console.error("Error handled by React Router default ErrorBoundary:",e),a=l.createElement(l.Fragment,null,l.createElement("p",null,"💿 Hey developer 👋"),l.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",l.createElement("code",{style:i},"ErrorBoundary")," or"," ",l.createElement("code",{style:i},"errorElement")," prop on your route.")),l.createElement(l.Fragment,null,l.createElement("h2",null,"Unexpected Application Error!"),l.createElement("h3",{style:{fontStyle:"italic"}},t),n?l.createElement("pre",{style:o},n):null,a)}l.createContext(null);var Bt=l.createElement(zt,null),Wt=class extends l.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(`${Mt}: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 mt(t.status,t.statusText,t.data)}catch{}}(e.digest);t&&(e=t)}let t=void 0!==e?l.createElement(Nt.Provider,{value:this.props.routeContext},l.createElement(Pt.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?l.createElement(Ut,{error:e},t):t}};Wt.contextType=kt;var $t=new WeakMap;function Ut({children:e,error:t}){let{basename:n}=l.useContext(St);if("object"==typeof t&&t&&"digest"in t&&"string"==typeof t.digest){let e=function(e){if(e.startsWith(`${Mt}: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=$t.get(t);if(r)throw r;let o=bt(e.location,n);if(vt&&!$t.get(t)){if(!o.isExternal&&!e.reloadDocument){const n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:e.replace}));throw $t.set(t,n),n}window.location.href=o.absoluteURL||o.to}return l.createElement("meta",{httpEquiv:"refresh",content:`0;url=${o.absoluteURL||o.to}`})}}return e}function Vt({routeContext:e,match:t,children:n}){let r=l.useContext(jt);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),l.createElement(Nt.Provider,{value:e},n)}function qt(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ht(e){let t=function(e){let t=l.useContext(Nt);return ze(t,qt(e)),t}(e),n=t.matches[t.matches.length-1];return ze(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}var Kt={};function Yt(e,t,n){t||Kt[e]||(Kt[e]=!0,Be(!1,n))}function Gt({to:e,replace:t,state:n,relative:r}){ze(Et()," may be used only in the context of a component.");let{static:o}=l.useContext(St);Be(!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}=l.useContext(Nt),{pathname:a}=At(),s=Rt(),c=ut(e,ct(i),a,"path"===r),u=JSON.stringify(c);return l.useEffect(()=>{s(JSON.parse(u),{replace:t,state:n,relative:r})},[s,u,r,t,n]),null}function Xt(e){ze(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function Qt({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:i=!1,unstable_useTransitions:a}){ze(!Et(),"You cannot render a inside another . You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),c=l.useMemo(()=>({basename:s,navigator:o,static:i,unstable_useTransitions:a,future:{}}),[s,o,i,a]);"string"==typeof n&&(n=Ve(n));let{pathname:u="/",search:d="",hash:f="",state:h=null,key:p="default",unstable_mask:m}=n,y=l.useMemo(()=>{let e=it(u,s);return null==e?null:{location:{pathname:e,search:d,hash:f,state:h,key:p,unstable_mask:m},navigationType:r}},[s,u,d,f,h,p,r,m]);return Be(null!=y,` is not able to match the URL "${u}${d}${f}" because it does not start with the basename, so the won't render anything.`),null==y?null:l.createElement(St.Provider,{value:c},l.createElement(Ot.Provider,{children:t,value:y}))}function Zt({children:e,location:t}){return function(e,t){return Ft(e,t)}(Jt(e),t)}function Jt(e,t=[]){let n=[];return l.Children.forEach(e,(e,r)=>{if(!l.isValidElement(e))return;let o=[...t,r];if(e.type===l.Fragment)return void n.push.apply(n,Jt(e.props.children,o));ze(e.type===Xt,`[${"string"==typeof e.type?e.type:e.type.name}] is not a component. All component children of must be a or `),ze(!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=Jt(e.props.children,o)),n.push(i)}),n}c.useOptimistic,l.memo(function({routes:e,future:t,state:n,isStatic:r,onError:o}){return Ft(e,void 0,{state:n,isStatic:r,onError:o,future:t})}),l.Component;var en="get",tn="application/x-www-form-urlencoded";function nn(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement}function rn(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 on=null,an=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function sn(e){return null==e||an.has(e)?e:(Be(!1,`"${e}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${tn}"`),null)}function ln(e,t){if(!1===e||null==e)throw new Error(t)}function cn(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 un(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 dn(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 fn(){let e=l.useContext(jt);return ln(e,"You must render this element inside a element"),e}function hn(){let e=l.useContext(_t);return ln(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 pn=l.createContext(void 0);function mn(){let e=l.useContext(pn);return ln(e,"You must render this element inside a element"),e}function yn(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function gn({page:e,...t}){let{router:n}=fn(),r=l.useMemo(()=>qe(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?l.createElement(bn,{page:e,matches:r,...t}):null}function vn(e){let{manifest:t,routeModules:n}=mn(),[r,o]=l.useState([]);return l.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(cn).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 bn({page:e,matches:t,...n}){let r=At(),{future:o,manifest:i,routeModules:a}=mn(),{basename:s}=fn(),{loaderData:c,matches:u}=hn(),d=l.useMemo(()=>un(e,t,u,i,r,"data"),[e,t,u,i,r]),f=l.useMemo(()=>un(e,t,u,i,r,"assets"),[e,t,u,i,r]),h=l.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,l=!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&&a[e.route.id]?.shouldRevalidate||t.hasClientLoader?l=!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&&"/"===it(o.pathname,t)?o.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${r}`,o}(e,s,o.unstable_trailingSlashAwareDataRequests,"data");return l&&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]},[s,o.unstable_trailingSlashAwareDataRequests,c,r,i,d,t,e,a]),p=l.useMemo(()=>dn(f,i),[f,i]),m=vn(f);return l.createElement(l.Fragment,null,h.map(e=>l.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n})),p.map(e=>l.createElement("link",{key:e,rel:"modulepreload",href:e,...n})),m.map(({key:e,link:t})=>l.createElement("link",{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}pn.displayName="FrameworkContext";function xn(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}l.Component;var wn="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{wn&&(window.__reactRouterVersion="7.13.1")}catch(CE){}function jn({basename:e,children:t,unstable_useTransitions:n,window:r}){let o=l.useRef();null==o.current&&(o.current=Fe({window:r,v5Compat:!0}));let i=o.current,[a,s]=l.useState({action:i.action,location:i.location}),c=l.useCallback(e=>{!1===n?s(e):l.startTransition(()=>s(e))},[n]);return l.useLayoutEffect(()=>i.listen(c),[i,c]),l.createElement(Qt,{basename:e,children:t,location:a.location,navigationType:a.action,navigator:i,unstable_useTransitions:n})}var kn=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Cn=l.forwardRef(function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:o,replace:i,unstable_mask:a,state:s,target:c,to:u,preventScrollReset:d,viewTransition:f,unstable_defaultShouldRevalidate:h,...p},m){let{basename:y,navigator:g,unstable_useTransitions:v}=l.useContext(St),b="string"==typeof u&&kn.test(u),x=bt(u,y),w=function(e,{relative:t}={}){ze(Et(),"useHref() may be used only in the context of a component.");let{basename:n,navigator:r}=l.useContext(St),{hash:o,pathname:i,search:a}=Lt(e,{relative:t}),s=i;return"/"!==n&&(s="/"===i?n:dt([n,i])),r.createHref({pathname:s,search:a,hash:o})}(u=x.to,{relative:r}),j=At(),_=null;if(a){let e=ut(a,[],j.unstable_mask?j.unstable_mask.pathname:"/",!0);"/"!==y&&(e.pathname="/"===e.pathname?y:dt([y,e.pathname])),_=g.createHref(e)}let[k,C,S]=function(e,t){let n=l.useContext(pn),[r,o]=l.useState(!1),[i,a]=l.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:u,onMouseLeave:d,onTouchStart:f}=t,h=l.useRef(null);l.useEffect(()=>{if("render"===e&&a(!0),"viewport"===e){let e=new IntersectionObserver(e=>{e.forEach(e=>{a(e.isIntersecting)})},{threshold:.5});return h.current&&e.observe(h.current),()=>{e.disconnect()}}},[e]),l.useEffect(()=>{if(r){let e=setTimeout(()=>{a(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{o(!0)},m=()=>{o(!1),a(!1)};return n?"intent"!==e?[i,h,{}]:[i,h,{onFocus:yn(s,p),onBlur:yn(c,m),onMouseEnter:yn(u,p),onMouseLeave:yn(d,m),onTouchStart:yn(f,p)}]:[!1,h,{}]}(n,p),O=function(e,{target:t,replace:n,unstable_mask:r,state:o,preventScrollReset:i,relative:a,viewTransition:s,unstable_defaultShouldRevalidate:c,unstable_useTransitions:u}={}){let d=Rt(),f=At(),h=Lt(e,{relative:a});return l.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:Ue(f)===Ue(h),m=()=>d(e,{replace:t,unstable_mask:r,state:o,preventScrollReset:i,relative:a,viewTransition:s,unstable_defaultShouldRevalidate:c});u?l.startTransition(()=>m()):m()}},[f,d,h,n,r,o,t,e,i,a,s,c,u])}(u,{replace:i,unstable_mask:a,state:s,target:c,preventScrollReset:d,relative:r,viewTransition:f,unstable_defaultShouldRevalidate:h,unstable_useTransitions:v}),N=!(x.isExternal||o),P=l.createElement("a",{...p,...S,href:(N?_:void 0)||x.absoluteURL||w,onClick:N?function(t){e&&e(t),t.defaultPrevented||O(t)}:e,ref:xn(m,C),target:c,"data-discover":b||"render"!==t?void 0:"true"});return k&&!b?l.createElement(l.Fragment,null,P,l.createElement(gn,{page:w})):P});Cn.displayName="Link",l.forwardRef(function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:r=!1,style:o,to:i,viewTransition:a,children:s,...c},u){let d=Lt(i,{relative:c.relative}),f=At(),h=l.useContext(_t),{navigator:p,basename:m}=l.useContext(St),y=null!=h&&function(e,{relative:t}={}){let n=l.useContext(Ct);ze(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=On("useViewTransitionState"),o=Lt(e,{relative:t});if(!n.isTransitioning)return!1;let i=it(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=it(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=rt(o.pathname,a)||null!=rt(o.pathname,i)}(d)&&!0===a,g=p.encodeLocation?p.encodeLocation(d).pathname:d.pathname,v=f.pathname,b=h&&h.navigation&&h.navigation.location?h.navigation.location.pathname:null;t||(v=v.toLowerCase(),b=b?b.toLowerCase():null,g=g.toLowerCase()),b&&m&&(b=it(b,m)||b);const x="/"!==g&&g.endsWith("/")?g.length-1:g.length;let w,j=v===g||!r&&v.startsWith(g)&&"/"===v.charAt(x),_=null!=b&&(b===g||!r&&b.startsWith(g)&&"/"===b.charAt(g.length)),k={isActive:j,isPending:_,isTransitioning:y},C=j?e:void 0;w="function"==typeof n?n(k):[n,j?"active":null,_?"pending":null,y?"transitioning":null].filter(Boolean).join(" ");let S="function"==typeof o?o(k):o;return l.createElement(Cn,{...c,"aria-current":C,className:w,ref:u,style:S,to:i,viewTransition:a},"function"==typeof s?s(k):s)}).displayName="NavLink";var Sn=l.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:i,method:a=en,action:s,onSubmit:c,relative:u,preventScrollReset:d,viewTransition:f,unstable_defaultShouldRevalidate:h,...p},m)=>{let{unstable_useTransitions:y}=l.useContext(St),g=function(){let{router:e}=On("useSubmit"),{basename:t}=l.useContext(St),n=Ht("useRouteId"),r=e.fetch,o=e.navigate;return l.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 nn(e)&&"form"===e.tagName.toLowerCase()}(e)){let a=e.getAttribute("action");r=a?it(a,t):null,n=e.getAttribute("method")||en,o=sn(e.getAttribute("enctype"))||tn,i=new FormData(e)}else if(function(e){return nn(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return nn(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