Uname:Linux webm009.cluster131.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64

403WebShell
403Webshell
Server IP : 146.59.209.152  /  Your IP : 216.73.216.152
Web Server : Apache
System : Linux webm009.cluster131.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User : monpetu ( 144298)
PHP Version : 7.4.33
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/monpetu/www/ipprint/wp-content/plugins/woo-cart-abandonment-recovery/admin/build/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/monpetu/www/ipprint/wp-content/plugins/woo-cart-abandonment-recovery/admin/build/settings.js
(()=>{var e,t,n={8351(e,t,n){var r;!function(){"use strict";var o,a=1e9,i={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,m=Math.pow,p=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,f=1e7,h=d(1286742750677284.5),g={};function y(e,t){var n,r,o,a,i,l,c,u,d=e.constructor,m=d.precision;if(!e.s||!t.s)return t.s||(t=new d(e)),s?T(t,m):t;if(c=e.d,u=t.d,i=e.e,o=t.e,c=c.slice(),a=i-o){for(a<0?(r=c,a=-a,l=u.length):(r=u,o=i,l=c.length),a>(l=(i=Math.ceil(m/7))>l?i+1:l+1)&&(a=l,r.length=1),r.reverse();a--;)r.push(0);r.reverse()}for((l=c.length)-(a=u.length)<0&&(a=l,r=u,u=c,c=r),n=0;a;)n=(c[--a]=c[a]+u[a]+n)/f|0,c[a]%=f;for(n&&(c.unshift(n),++o),l=c.length;0==c[--l];)c.pop();return t.d=c,t.e=o,s?T(t,m):t}function v(e,t,n){if(e!==~~e||e<t||e>n)throw Error(c+e)}function b(e){var t,n,r,o=e.length-1,a="",i=e[0];if(o>0){for(a+=i,t=1;t<o;t++)(n=7-(r=e[t]+"").length)&&(a+=j(n)),a+=r;(n=7-(r=(i=e[t])+"").length)&&(a+=j(n))}else if(0===i)return"0";for(;i%10==0;)i/=10;return a+i}g.absoluteValue=g.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},g.comparedTo=g.cmp=function(e){var t,n,r,o,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(t=0,n=(r=a.d.length)<(o=e.d.length)?r:o;t<n;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return r===o?0:r>o^a.s<0?1:-1},g.decimalPlaces=g.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},g.dividedBy=g.div=function(e){return M(this,new this.constructor(e))},g.dividedToIntegerBy=g.idiv=function(e){var t=this.constructor;return T(M(this,new t(e),0,1),t.precision)},g.equals=g.eq=function(e){return!this.cmp(e)},g.exponent=function(){return w(this)},g.greaterThan=g.gt=function(e){return this.cmp(e)>0},g.greaterThanOrEqualTo=g.gte=function(e){return this.cmp(e)>=0},g.isInteger=g.isint=function(){return this.e>this.d.length-2},g.isNegative=g.isneg=function(){return this.s<0},g.isPositive=g.ispos=function(){return this.s>0},g.isZero=function(){return 0===this.s},g.lessThan=g.lt=function(e){return this.cmp(e)<0},g.lessThanOrEqualTo=g.lte=function(e){return this.cmp(e)<1},g.logarithm=g.log=function(e){var t,n=this,r=n.constructor,a=r.precision,i=a+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=M(D(n,i),D(e,i),i),s=!0,T(t,a))},g.minus=g.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?O(t,e):y(t,(e.s=-e.s,e))},g.modulo=g.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=M(n,e,0,1).times(e),s=!0,n.minus(t)):T(new r(n),o)},g.naturalExponential=g.exp=function(){return x(this)},g.naturalLogarithm=g.ln=function(){return D(this)},g.negated=g.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},g.plus=g.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?y(t,e):O(t,(e.s=-e.s,e))},g.precision=g.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=w(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},g.squareRoot=g.sqrt=function(){var e,t,n,r,o,a,i,c=this,u=c.constructor;if(c.s<1){if(!c.s)return new u(0);throw Error(l+"NaN")}for(e=w(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=i=(n=u.precision)+3;;)if(r=(a=r).plus(M(c,a,i+2)).times(.5),b(a.d).slice(0,i)===(t=b(r.d)).slice(0,i)){if(t=t.slice(i-3,i+1),o==i&&"4999"==t){if(T(a,n+1,0),a.times(a).eq(c)){r=a;break}}else if("9999"!=t)break;i+=4}return s=!0,T(r,n)},g.times=g.mul=function(e){var t,n,r,o,a,i,l,c,u,d=this,m=d.constructor,p=d.d,h=(e=new m(e)).d;if(!d.s||!e.s)return new m(0);for(e.s*=d.s,n=d.e+e.e,(c=p.length)<(u=h.length)&&(a=p,p=h,h=a,i=c,c=u,u=i),a=[],r=i=c+u;r--;)a.push(0);for(r=u;--r>=0;){for(t=0,o=c+r;o>r;)l=a[o]+h[r]*p[o-r-1]+t,a[o--]=l%f|0,t=l/f|0;a[o]=(a[o]+t)%f|0}for(;!a[--i];)a.pop();return t?++n:a.shift(),e.d=a,e.e=n,s?T(e,m.precision):e},g.toDecimalPlaces=g.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(v(e,0,a),void 0===t?t=r.rounding:v(t,0,8),T(n,e+w(n)+1,t))},g.toExponential=function(e,t){var n,r=this,o=r.constructor;return void 0===e?n=I(r,!0):(v(e,0,a),void 0===t?t=o.rounding:v(t,0,8),n=I(r=T(new o(r),e+1,t),!0,e+1)),n},g.toFixed=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?I(o):(v(e,0,a),void 0===t?t=i.rounding:v(t,0,8),n=I((r=T(new i(o),e+w(o)+1,t)).abs(),!1,e+w(r)+1),o.isneg()&&!o.isZero()?"-"+n:n)},g.toInteger=g.toint=function(){var e=this,t=e.constructor;return T(new t(e),w(e)+1,t.rounding)},g.toNumber=function(){return+this},g.toPower=g.pow=function(e){var t,n,r,a,i,c,u=this,m=u.constructor,p=+(e=new m(e));if(!e.s)return new m(o);if(!(u=new m(u)).s){if(e.s<1)throw Error(l+"Infinity");return u}if(u.eq(o))return u;if(r=m.precision,e.eq(o))return T(u,r);if(c=(t=e.e)>=(n=e.d.length-1),i=u.s,c){if((n=p<0?-p:p)<=9007199254740991){for(a=new m(o),t=Math.ceil(r/7+4),s=!1;n%2&&A((a=a.times(u)).d,t),0!==(n=d(n/2));)A((u=u.times(u)).d,t);return s=!0,e.s<0?new m(o).div(a):T(a,r)}}else if(i<0)throw Error(l+"NaN");return i=i<0&&1&e.d[Math.max(t,n)]?-1:1,u.s=1,s=!1,a=e.times(D(u,r+12)),s=!0,(a=x(a)).s=i,a},g.toPrecision=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?r=I(o,(n=w(o))<=i.toExpNeg||n>=i.toExpPos):(v(e,1,a),void 0===t?t=i.rounding:v(t,0,8),r=I(o=T(new i(o),e,t),e<=(n=w(o))||n<=i.toExpNeg,e)),r},g.toSignificantDigits=g.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(v(e,1,a),void 0===t?t=n.rounding:v(t,0,8)),T(new n(this),e,t)},g.toString=g.valueOf=g.val=g.toJSON=function(){var e=this,t=w(e),n=e.constructor;return I(e,t<=n.toExpNeg||t>=n.toExpPos)};var M=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%f|0,r=n/f|0;return r&&e.unshift(r),e}function t(e,t,n,r){var o,a;if(n!=r)a=n>r?1:-1;else for(o=a=0;o<n;o++)if(e[o]!=t[o]){a=e[o]>t[o]?1:-1;break}return a}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=e[n]<t[n]?1:0,e[n]=r*f+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,o,a,i){var s,c,u,d,m,p,h,g,y,v,b,M,x,N,j,D,E,O,I=r.constructor,A=r.s==o.s?1:-1,k=r.d,S=o.d;if(!r.s)return new I(r);if(!o.s)throw Error(l+"Division by zero");for(c=r.e-o.e,E=S.length,j=k.length,g=(h=new I(A)).d=[],u=0;S[u]==(k[u]||0);)++u;if(S[u]>(k[u]||0)&&--c,(M=null==a?a=I.precision:i?a+(w(r)-w(o))+1:a)<0)return new I(0);if(M=M/7+2|0,u=0,1==E)for(d=0,S=S[0],M++;(u<j||d)&&M--;u++)x=d*f+(k[u]||0),g[u]=x/S|0,d=x%S|0;else{for((d=f/(S[0]+1)|0)>1&&(S=e(S,d),k=e(k,d),E=S.length,j=k.length),N=E,v=(y=k.slice(0,E)).length;v<E;)y[v++]=0;(O=S.slice()).unshift(0),D=S[0],S[1]>=f/2&&++D;do{d=0,(s=t(S,y,E,v))<0?(b=y[0],E!=v&&(b=b*f+(y[1]||0)),(d=b/D|0)>1?(d>=f&&(d=f-1),1==(s=t(m=e(S,d),y,p=m.length,v=y.length))&&(d--,n(m,E<p?O:S,p))):(0==d&&(s=d=1),m=S.slice()),(p=m.length)<v&&m.unshift(0),n(y,m,v),-1==s&&(s=t(S,y,E,v=y.length))<1&&(d++,n(y,E<v?O:S,v)),v=y.length):0===s&&(d++,y=[0]),g[u++]=d,s&&y[0]?y[v++]=k[N]||0:(y=[k[N]],v=1)}while((N++<j||void 0!==y[0])&&M--)}return g[0]||g.shift(),h.e=c,T(h,i?a+w(h)+1:a)}}();function x(e,t){var n,r,a,i,l,c=0,d=0,p=e.constructor,f=p.precision;if(w(e)>16)throw Error(u+w(e));if(!e.s)return new p(o);for(null==t?(s=!1,l=f):l=t,i=new p(.03125);e.abs().gte(.1);)e=e.times(i),d+=5;for(l+=Math.log(m(2,d))/Math.LN10*2+5|0,n=r=a=new p(o),p.precision=l;;){if(r=T(r.times(e),l),n=n.times(++c),b((i=a.plus(M(r,n,l))).d).slice(0,l)===b(a.d).slice(0,l)){for(;d--;)a=T(a.times(a),l);return p.precision=f,null==t?(s=!0,T(a,f)):a}a=i}}function w(e){for(var t=7*e.e,n=e.d[0];n>=10;n/=10)t++;return t}function N(e,t,n){if(t>e.LN10.sd())throw s=!0,n&&(e.precision=n),Error(l+"LN10 precision limit exceeded");return T(new e(e.LN10),t)}function j(e){for(var t="";e--;)t+="0";return t}function D(e,t){var n,r,a,i,c,u,d,m,p,f=1,h=e,g=h.d,y=h.constructor,v=y.precision;if(h.s<1)throw Error(l+(h.s?"NaN":"-Infinity"));if(h.eq(o))return new y(0);if(null==t?(s=!1,m=v):m=t,h.eq(10))return null==t&&(s=!0),N(y,m);if(m+=10,y.precision=m,r=(n=b(g)).charAt(0),i=w(h),!(Math.abs(i)<15e14))return d=N(y,m+2,v).times(i+""),h=D(new y(r+"."+n.slice(1)),m-10).plus(d),y.precision=v,null==t?(s=!0,T(h,v)):h;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=b((h=h.times(e)).d)).charAt(0),f++;for(i=w(h),r>1?(h=new y("0."+n),i++):h=new y(r+"."+n.slice(1)),u=c=h=M(h.minus(o),h.plus(o),m),p=T(h.times(h),m),a=3;;){if(c=T(c.times(p),m),b((d=u.plus(M(c,new y(a),m))).d).slice(0,m)===b(u.d).slice(0,m))return u=u.times(2),0!==i&&(u=u.plus(N(y,m+2,v).times(i+""))),u=M(u,new y(f),m),y.precision=v,null==t?(s=!0,T(u,v)):u;u=d,a+=2}}function E(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),r<o){for(r&&e.d.push(+t.slice(0,r)),o-=7;r<o;)e.d.push(+t.slice(r,r+=7));r=7-(t=t.slice(r)).length}else r-=o;for(;r--;)t+="0";if(e.d.push(+t),s&&(e.e>h||e.e<-h))throw Error(u+n)}else e.s=0,e.e=0,e.d=[0];return e}function T(e,t,n){var r,o,a,i,l,c,p,g,y=e.d;for(i=1,a=y[0];a>=10;a/=10)i++;if((r=t-i)<0)r+=7,o=t,p=y[g=0];else{if((g=Math.ceil((r+1)/7))>=(a=y.length))return e;for(p=a=y[g],i=1;a>=10;a/=10)i++;o=(r%=7)-7+i}if(void 0!==n&&(l=p/(a=m(10,i-o-1))%10|0,c=t<0||void 0!==y[g+1]||p%a,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?p/m(10,i-o):0:y[g-1])%10&1||n==(e.s<0?8:7))),t<1||!y[0])return c?(a=w(e),y.length=1,t=t-a-1,y[0]=m(10,(7-t%7)%7),e.e=d(-t/7)||0):(y.length=1,y[0]=e.e=e.s=0),e;if(0==r?(y.length=g,a=1,g--):(y.length=g+1,a=m(10,7-r),y[g]=o>0?(p/m(10,i-o)%m(10,o)|0)*a:0),c)for(;;){if(0==g){(y[0]+=a)==f&&(y[0]=1,++e.e);break}if(y[g]+=a,y[g]!=f)break;y[g--]=0,a=1}for(r=y.length;0===y[--r];)y.pop();if(s&&(e.e>h||e.e<-h))throw Error(u+w(e));return e}function O(e,t){var n,r,o,a,i,l,c,u,d,m,p=e.constructor,h=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),s?T(t,h):t;if(c=e.d,m=t.d,r=t.e,u=e.e,c=c.slice(),i=u-r){for((d=i<0)?(n=c,i=-i,l=m.length):(n=m,r=u,l=c.length),i>(o=Math.max(Math.ceil(h/7),l)+2)&&(i=o,n.length=1),n.reverse(),o=i;o--;)n.push(0);n.reverse()}else{for((d=(o=c.length)<(l=m.length))&&(l=o),o=0;o<l;o++)if(c[o]!=m[o]){d=c[o]<m[o];break}i=0}for(d&&(n=c,c=m,m=n,t.s=-t.s),l=c.length,o=m.length-l;o>0;--o)c[l++]=0;for(o=m.length;o>i;){if(c[--o]<m[o]){for(a=o;a&&0===c[--a];)c[a]=f-1;--c[a],c[o]+=f}c[o]-=m[o]}for(;0===c[--l];)c.pop();for(;0===c[0];c.shift())--r;return c[0]?(t.d=c,t.e=r,s?T(t,h):t):new p(0)}function I(e,t,n){var r,o=w(e),a=b(e.d),i=a.length;return t?(n&&(r=n-i)>0?a=a.charAt(0)+"."+a.slice(1)+j(r):i>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(o<0?"e":"e+")+o):o<0?(a="0."+j(-o-1)+a,n&&(r=n-i)>0&&(a+=j(r))):o>=i?(a+=j(o+1-i),n&&(r=n-o-1)>0&&(a=a+"."+j(r))):((r=o+1)<i&&(a=a.slice(0,r)+"."+a.slice(r)),n&&(r=n-i)>0&&(o+1===i&&(a+="."),a+=j(r))),e.s<0?"-"+a:a}function A(e,t){if(e.length>t)return e.length=t,!0}function k(e){if(!e||"object"!=typeof e)throw Error(l+"Object expected");var t,n,r,o=["precision",1,a,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<o.length;t+=3)if(void 0!==(r=e[n=o[t]])){if(!(d(r)===r&&r>=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}(i=function e(t){var n,r,o;function a(e){var t=this;if(!(t instanceof a))return new a(e);if(t.constructor=a,e instanceof a)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])):E(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,!p.test(e))throw Error(c+e);E(t,e)}if(a.prototype=g,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.clone=e,a.config=a.set=k,void 0===t&&(t={}),t)for(o=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n<o.length;)t.hasOwnProperty(r=o[n++])||(t[r]=this[r]);return a.config(t),a}(i)).default=i.Decimal=i,o=new i(1),void 0===(r=function(){return i}.call(t,n,t,e))||(e.exports=r)}()},5413(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},1141(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var a=n(5413),i=n(6957);o(n(6957),t);var s={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},l=function(){function e(e,t,n){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=s),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:s,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?a.ElementType.Tag:void 0,r=new i.Element(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===a.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new i.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===a.ElementType.Comment)this.lastNode.data+=e;else{var t=new i.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new i.Text(""),t=new i.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new i.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=l,t.default=l},6957(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.CDATA=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var i=n(5413),s=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),w(this,e)},e}();t.Node=s;var l=function(e){function t(t){var n=e.call(this)||this;return n.data=t,n}return o(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(s);t.DataNode=l;var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=i.ElementType.Text,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(l);t.Text=c;var u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=i.ElementType.Comment,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(l);t.Comment=u;var d=function(e){function t(t,n){var r=e.call(this,n)||this;return r.name=t,r.type=i.ElementType.Directive,r}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(l);t.ProcessingInstruction=d;var m=function(e){function t(t){var n=e.call(this)||this;return n.children=t,n}return o(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(s);t.NodeWithChildren=m;var p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=i.ElementType.CDATA,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(m);t.CDATA=p;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=i.ElementType.Root,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(m);t.Document=f;var h=function(e){function t(t,n,r,o){void 0===r&&(r=[]),void 0===o&&(o="script"===t?i.ElementType.Script:"style"===t?i.ElementType.Style:i.ElementType.Tag);var a=e.call(this,r)||this;return a.name=t,a.attribs=n,a.type=o,a}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map(function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}})},enumerable:!1,configurable:!0}),t}(m);function g(e){return(0,i.isTag)(e)}function y(e){return e.type===i.ElementType.CDATA}function v(e){return e.type===i.ElementType.Text}function b(e){return e.type===i.ElementType.Comment}function M(e){return e.type===i.ElementType.Directive}function x(e){return e.type===i.ElementType.Root}function w(e,t){var n;if(void 0===t&&(t=!1),v(e))n=new c(e.data);else if(b(e))n=new u(e.data);else if(g(e)){var r=t?N(e.children):[],o=new h(e.name,a({},e.attribs),r);r.forEach(function(e){return e.parent=o}),null!=e.namespace&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]=a({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]=a({},e["x-attribsPrefix"])),n=o}else if(y(e)){r=t?N(e.children):[];var i=new p(r);r.forEach(function(e){return e.parent=i}),n=i}else if(x(e)){r=t?N(e.children):[];var s=new f(r);r.forEach(function(e){return e.parent=s}),e["x-mode"]&&(s["x-mode"]=e["x-mode"]),n=s}else{if(!M(e))throw new Error("Not implemented yet: ".concat(e.type));var l=new d(e.name,e.data);null!=e["x-name"]&&(l["x-name"]=e["x-name"],l["x-publicId"]=e["x-publicId"],l["x-systemId"]=e["x-systemId"]),n=l}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function N(e){for(var t=e.map(function(e){return w(e,!0)}),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}t.Element=h,t.isTag=g,t.isCDATA=y,t.isText=v,t.isComment=b,t.isDirective=M,t.isDocument=x,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=w},5270(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CARRIAGE_RETURN_PLACEHOLDER_REGEX=t.CARRIAGE_RETURN_PLACEHOLDER=t.CARRIAGE_RETURN_REGEX=t.CARRIAGE_RETURN=t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES=void 0,t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES.reduce(function(e,t){return e[t.toLowerCase()]=t,e},{}),t.CARRIAGE_RETURN="\r",t.CARRIAGE_RETURN_REGEX=new RegExp(t.CARRIAGE_RETURN,"g"),t.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now().toString(),"__"),t.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(t.CARRIAGE_RETURN_PLACEHOLDER,"g")},5496(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n,u,d,m,f;e=(0,r.escapeSpecialCharacters)(e);var g=s.exec(e),y=null===(t=null==g?void 0:g[1])||void 0===t?void 0:t.toLowerCase();switch(y){case o:var v=c(e);return(0,r.hasOpenTag)(e,a)||null===(n=null==(M=v.querySelector(a))?void 0:M.parentNode)||void 0===n||n.removeChild(M),(0,r.hasOpenTag)(e,i)||null===(u=null==(M=v.querySelector(i))?void 0:M.parentNode)||void 0===u||u.removeChild(M),v.querySelectorAll(o);case a:case i:var b=l(e).querySelectorAll(y);return(0,r.hasOpenTag)(e,i)&&(0,r.hasOpenTag)(e,a)?null!==(m=null===(d=b[0].parentNode)||void 0===d?void 0:d.childNodes)&&void 0!==m?m:h():b;default:return p?p(e):null!==(f=null==(M=l(e,i).querySelector(i))?void 0:M.childNodes)&&void 0!==f?f:h();var M}};var r=n(7731),o="html",a="head",i="body",s=/<([a-zA-Z]+[0-9]?)/,l=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},c=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},u="object"==typeof window&&window.DOMParser;if("function"==typeof u){var d=new u;l=c=function(e,t){return t&&(e="<".concat(t,">").concat(e,"</").concat(t,">")),d.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var m=document.implementation.createHTMLDocument();l=function(e,t){if(t){var n=m.documentElement.querySelector(t);return n&&(n.innerHTML=e),m}return m.documentElement.innerHTML=e,m}}var p,f="object"==typeof document&&document.createElement("template");f&&f.content&&(p=function(e){return f.innerHTML=e,f.content.childNodes});var h=function(){return document.createDocumentFragment().childNodes}},2471(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];var t=i.exec(e),n=t?t[1]:void 0;return(0,a.formatDOM)((0,o.default)(e),null,n)};var o=r(n(5496)),a=n(7731),i=/<(![a-zA-Z\s]+)>/},7731(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatAttributes=a,t.hasOpenTag=function(e,t){var n="<"+t,r=e.toLowerCase().indexOf(n);if(-1===r)return!1;var o=e[r+n.length];return">"===o||" "===o||"\t"===o||"\n"===o||"\r"===o||"/"===o},t.escapeSpecialCharacters=function(e){return e.replace(o.CARRIAGE_RETURN_REGEX,o.CARRIAGE_RETURN_PLACEHOLDER)},t.revertEscapedCharacters=s,t.formatDOM=function e(t,n,o){var l,c,u,d;void 0===n&&(n=null);for(var m,p=[],f=0,h=t.length;f<h;f++){var g=t[f];switch(g.nodeType){case 1:var y=i(g.nodeName);(m=new r.Element(y,a(g.attributes))).children=e("template"===y?g.content.childNodes:g.childNodes,m);break;case 3:m=new r.Text(s(null!==(l=g.nodeValue)&&void 0!==l?l:""));break;case 8:m=new r.Comment(null!==(c=g.nodeValue)&&void 0!==c?c:"");break;default:continue}var v=null!==(u=p[f-1])&&void 0!==u?u:null;v&&(v.next=m),m.parent=n,m.prev=v,m.next=null,p.push(m)}return o&&((m=new r.ProcessingInstruction(o.substring(0,o.indexOf(" ")).toLowerCase(),o)).next=null!==(d=p[0])&&void 0!==d?d:null,m.parent=n,p.unshift(m),p[1]&&(p[1].prev=p[0])),p};var r=n(1141),o=n(5270);function a(e){for(var t={},n=0,r=e.length;n<r;n++){var o=e[n];t[o.name]=o.value}return t}function i(e){return function(e){return o.CASE_SENSITIVE_TAG_NAMES_MAP[e]}(e=e.toLowerCase())||e}function s(e){return e.replace(o.CARRIAGE_RETURN_PLACEHOLDER_REGEX,o.CARRIAGE_RETURN)}},840(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){void 0===e&&(e={});var n={},c=Boolean(e.type&&s[e.type]);for(var u in e){var d=e[u];if((0,r.isCustomAttribute)(u))n[u]=d;else{var m=u.toLowerCase(),p=l(m);if(p){var f=(0,r.getPropertyInfo)(p);switch(a.includes(p)&&i.includes(t)&&!c&&(p=l("default"+m)),n[p]=d,null==f?void 0:f.type){case r.BOOLEAN:n[p]=!0;break;case r.OVERLOADED_BOOLEAN:""===d&&(n[p]=!0)}}else o.PRESERVE_CUSTOM_ATTRIBUTES&&(n[u]=d)}}return(0,o.setStyleProp)(e.style,n),n};var r=n(4210),o=n(4958),a=["checked","value"],i=["input","select","textarea"],s={reset:!0,submit:!0};function l(e){return r.possibleStandardNames[e]}},308(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n){var r,o,c,u,d;void 0===n&&(n={});for(var m=[],p="function"==typeof n.replace,f=null!==(r=n.transform)&&void 0!==r?r:i.returnFirstArg,h=null!==(o=n.library)&&void 0!==o?o:s,g=h.cloneElement,y=h.createElement,v=h.isValidElement,b=t.length,M=0;M<b;M++){var x=t[M];if(p){var w=null===(c=n.replace)||void 0===c?void 0:c.call(n,x,M);if(v(w)){b>1&&(w=g(w,{key:null!==(u=w.key)&&void 0!==u?u:M})),m.push(f(w,x,M));continue}}if("text"!==x.type){var N=x,j={};l(N)?((0,i.setStyleProp)(N.attribs.style,N.attribs),j=N.attribs):N.attribs&&(j=(0,a.default)(N.attribs,N.name));var D=void 0;switch(x.type){case"script":case"style":x.children[0]&&(j.dangerouslySetInnerHTML={__html:x.children[0].data});break;case"tag":"textarea"===x.name&&x.children[0]?j.defaultValue=x.children[0].data:(null===(d=x.children)||void 0===d?void 0:d.length)&&(D=e(x.children,n));break;default:continue}b>1&&(j.key=M),m.push(f(y(x.name,j,D),x,M))}else{var E=!x.data.trim().length;if(E&&x.parent&&!(0,i.canTextBeChildOfNode)(x.parent))continue;if(n.trim&&E)continue;m.push(f(x.data,x,M))}}return 1===m.length?m[0]:m};var o=n(1609),a=r(n(840)),i=n(4958),s={cloneElement:o.cloneElement,createElement:o.createElement,isValidElement:o.isValidElement};function l(e){return i.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&(0,i.isCustomComponent)(e.name,e.attribs)}},442(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.htmlToDOM=t.domToReact=t.attributesToProps=t.Text=t.ProcessingInstruction=t.Element=t.Comment=void 0,t.default=function(e,t){var n;if("string"!=typeof e)throw new TypeError("First argument must be a string");return e?(0,i.default)((0,o.default)(e,null!==(n=null==t?void 0:t.htmlparser2)&&void 0!==n?n:l),t):[]};var o=r(n(2471));t.htmlToDOM=o.default;var a=r(n(840));t.attributesToProps=a.default;var i=r(n(308));t.domToReact=i.default;var s=n(1141);Object.defineProperty(t,"Comment",{enumerable:!0,get:function(){return s.Comment}}),Object.defineProperty(t,"Element",{enumerable:!0,get:function(){return s.Element}}),Object.defineProperty(t,"ProcessingInstruction",{enumerable:!0,get:function(){return s.ProcessingInstruction}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return s.Text}});var l={lowerCaseAttributeNames:!1}},4958(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.returnFirstArg=t.canTextBeChildOfNode=t.ELEMENTS_WITH_NO_TEXT_CHILDREN=t.PRESERVE_CUSTOM_ATTRIBUTES=void 0,t.isCustomComponent=function(e,t){return e.includes("-")?!i.has(e):Boolean(t&&"string"==typeof t.is)},t.setStyleProp=function(e,t){if("string"==typeof e)if(e.trim())try{t.style=(0,a.default)(e,s)}catch(e){t.style={}}else t.style={}};var o=n(1609),a=r(n(5229)),i=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]),s={reactCompat:!0};t.PRESERVE_CUSTOM_ATTRIBUTES=Number(o.version.split(".")[0])>=16,t.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]),t.canTextBeChildOfNode=function(e){return!t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name)},t.returnFirstArg=function(e){return e}},5077(e){"use strict";var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,l=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(l,c):c}e.exports=function(e,l){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var d=1,m=1;function p(e){var t=e.match(n);t&&(d+=t.length);var r=e.lastIndexOf("\n");m=~r?e.length-r:m+e.length}function f(){var e={line:d,column:m};return function(t){return t.position=new h(e),v(),t}}function h(e){this.start=e,this.end={line:d,column:m},this.source=l.source}function g(t){var n=new Error(l.source+":"+d+":"+m+": "+t);if(n.reason=t,n.filename=l.source,n.line=d,n.column=m,n.source=e,!l.silent)throw n}function y(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function v(){y(r)}function b(e){var t;for(e=e||[];t=M();)!1!==t&&e.push(t);return e}function M(){var t=f();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return g("End of comment missing");var r=e.slice(2,n-2);return m+=2,p(r),e=e.slice(n),m+=2,t({type:"comment",comment:r})}}function x(){var e=f(),n=y(o);if(n){if(M(),!y(a))return g("property missing ':'");var r=y(i),l=e({type:"declaration",property:u(n[0].replace(t,c)),value:r?u(r[0].replace(t,c)):c});return y(s),l}}return h.prototype.content=e,v(),function(){var e,t=[];for(b(t);e=x();)!1!==e&&(t.push(e),b(t));return t}()}},181(e){var t=/^\s+|\s+$/g,n=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,o=/^0o[0-7]+$/i,a=parseInt,i="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis,s="object"==typeof self&&self&&self.Object===Object&&self,l=i||s||Function("return this")(),c=Object.prototype.toString,u=Math.max,d=Math.min,m=function(){return l.Date.now()};function p(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function f(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==c.call(e)}(e))return NaN;if(p(e)){var i="function"==typeof e.valueOf?e.valueOf():e;e=p(i)?i+"":i}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(t,"");var s=r.test(e);return s||o.test(e)?a(e.slice(2),s?2:8):n.test(e)?NaN:+e}e.exports=function(e,t,n){var r,o,a,i,s,l,c=0,h=!1,g=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=r,a=o;return r=o=void 0,c=t,i=e.apply(a,n)}function b(e){var n=e-l;return void 0===l||n>=t||n<0||g&&e-c>=a}function M(){var e=m();if(b(e))return x(e);s=setTimeout(M,function(e){var n=t-(e-l);return g?d(n,a-(e-c)):n}(e))}function x(e){return s=void 0,y&&r?v(e):(r=o=void 0,i)}function w(){var e=m(),n=b(e);if(r=arguments,o=this,l=e,n){if(void 0===s)return function(e){return c=e,s=setTimeout(M,t),h?v(e):i}(l);if(g)return s=setTimeout(M,t),v(l)}return void 0===s&&(s=setTimeout(M,t)),i}return t=f(t)||0,p(n)&&(h=!!n.leading,a=(g="maxWait"in n)?u(f(n.maxWait)||0,t):a,y="trailing"in n?!!n.trailing:y),w.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=o=s=void 0},w.flush=function(){return void 0===s?i:x(m())},w}},5580(e,t,n){var r=n(6110)(n(9325),"DataView");e.exports=r},1549(e,t,n){var r=n(2032),o=n(3862),a=n(6721),i=n(2749),s=n(5749);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=a,l.prototype.has=i,l.prototype.set=s,e.exports=l},79(e,t,n){var r=n(3702),o=n(80),a=n(4739),i=n(8655),s=n(1175);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=a,l.prototype.has=i,l.prototype.set=s,e.exports=l},8223(e,t,n){var r=n(6110)(n(9325),"Map");e.exports=r},3661(e,t,n){var r=n(3040),o=n(7670),a=n(289),i=n(4509),s=n(2949);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=a,l.prototype.has=i,l.prototype.set=s,e.exports=l},2804(e,t,n){var r=n(6110)(n(9325),"Promise");e.exports=r},6545(e,t,n){var r=n(6110)(n(9325),"Set");e.exports=r},8859(e,t,n){var r=n(3661),o=n(1380),a=n(1459);function i(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}i.prototype.add=i.prototype.push=o,i.prototype.has=a,e.exports=i},7217(e,t,n){var r=n(79),o=n(1420),a=n(938),i=n(3605),s=n(9817),l=n(945);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=a,c.prototype.get=i,c.prototype.has=s,c.prototype.set=l,e.exports=c},1873(e,t,n){var r=n(9325).Symbol;e.exports=r},7828(e,t,n){var r=n(9325).Uint8Array;e.exports=r},8303(e,t,n){var r=n(6110)(n(9325),"WeakMap");e.exports=r},1033(e){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},7277(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}},9770(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,a=[];++n<r;){var i=e[n];t(i,n,e)&&(a[o++]=i)}return a}},5325(e,t,n){var r=n(6131);e.exports=function(e,t){return!(null==e||!e.length)&&r(e,t,0)>-1}},9905(e){e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}},695(e,t,n){var r=n(8096),o=n(2428),a=n(6449),i=n(3656),s=n(361),l=n(7167),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=a(e),u=!n&&o(e),d=!n&&!u&&i(e),m=!n&&!u&&!d&&l(e),p=n||u||d||m,f=p?r(e.length,String):[],h=f.length;for(var g in e)!t&&!c.call(e,g)||p&&("length"==g||d&&("offset"==g||"parent"==g)||m&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,h))||f.push(g);return f}},4932(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},4528(e){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},4248(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},1074(e){e.exports=function(e){return e.split("")}},6025(e,t,n){var r=n(5288);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},3360(e,t,n){var r=n(3243);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},909(e,t,n){var r=n(641),o=n(8329)(r);e.exports=o},3777(e,t,n){var r=n(909);e.exports=function(e,t){var n=!0;return r(e,function(e,r,o){return n=!!t(e,r,o)}),n}},3599(e,t,n){var r=n(4394);e.exports=function(e,t,n){for(var o=-1,a=e.length;++o<a;){var i=e[o],s=t(i);if(null!=s&&(void 0===l?s==s&&!r(s):n(s,l)))var l=s,c=i}return c}},2523(e){e.exports=function(e,t,n,r){for(var o=e.length,a=n+(r?1:-1);r?a--:++a<o;)if(t(e[a],a,e))return a;return-1}},3120(e,t,n){var r=n(4528),o=n(5891);e.exports=function e(t,n,a,i,s){var l=-1,c=t.length;for(a||(a=o),s||(s=[]);++l<c;){var u=t[l];n>0&&a(u)?n>1?e(u,n-1,a,i,s):r(s,u):i||(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,a=(t=r(t,e)).length;null!=e&&n<a;)e=e[o(t[n++])];return n&&n==a?e:void 0}},2199(e,t,n){var r=n(4528),o=n(6449);e.exports=function(e,t,n){var a=t(e);return o(e)?a:r(a,n(e))}},2552(e,t,n){var r=n(1873),o=n(659),a=n(9350),i=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?o(e):a(e)}},3335(e){e.exports=function(e,t){return e>t}},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),a=n(6959);e.exports=function(e,t,n){return t==t?a(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,a,i,s){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,a,i,e,s))}},7068(e,t,n){var r=n(7217),o=n(5911),a=n(1986),i=n(689),s=n(5861),l=n(6449),c=n(3656),u=n(7167),d="[object Arguments]",m="[object Array]",p="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,h,g,y){var v=l(e),b=l(t),M=v?m:s(e),x=b?m:s(t),w=(M=M==d?p:M)==p,N=(x=x==d?p:x)==p,j=M==x;if(j&&c(e)){if(!c(t))return!1;v=!0,w=!1}if(j&&!w)return y||(y=new r),v||u(e)?o(e,t,n,h,g,y):a(e,t,M,n,h,g,y);if(!(1&n)){var D=w&&f.call(e,"__wrapped__"),E=N&&f.call(t,"__wrapped__");if(D||E){var T=D?e.value():e,O=E?t.value():t;return y||(y=new r),g(T,O,n,h,y)}}return!!j&&(y||(y=new r),i(e,t,n,h,g,y))}},1799(e,t,n){var r=n(7217),o=n(270);e.exports=function(e,t,n,a){var i=n.length,s=i,l=!a;if(null==e)return!s;for(e=Object(e);i--;){var c=n[i];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++i<s;){var u=(c=n[i])[0],d=e[u],m=c[1];if(l&&c[2]){if(void 0===d&&!(u in e))return!1}else{var p=new r;if(a)var f=a(d,m,u,e,t,p);if(!(void 0===f?o(m,d,3,a,p):f))return!1}}return!0}},5463(e){e.exports=function(e){return e!=e}},5083(e,t,n){var r=n(1882),o=n(7296),a=n(3805),i=n(7473),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,m=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||o(e))&&(r(e)?m:s).test(i(e))}},4901(e,t,n){var r=n(2552),o=n(294),a=n(346),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&o(e.length)&&!!i[r(e)]}},5389(e,t,n){var r=n(3663),o=n(7978),a=n(3488),i=n(6449),s=n(583);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?i(e)?o(e[0],e[1]):r(e):s(e)}},8984(e,t,n){var r=n(5527),o=n(3650),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t}},6176(e){e.exports=function(e,t){return e<t}},5128(e,t,n){var r=n(909),o=n(4894);e.exports=function(e,t){var n=-1,a=o(e)?Array(e.length):[];return r(e,function(e,r,o){a[++n]=t(e,r,o)}),a}},3663(e,t,n){var r=n(1799),o=n(776),a=n(7197);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},7978(e,t,n){var r=n(270),o=n(8156),a=n(631),i=n(8586),s=n(756),l=n(7197),c=n(7797);e.exports=function(e,t){return i(e)&&s(t)?l(c(e),t):function(n){var i=o(n,e);return void 0===i&&i===t?a(n,e):r(t,i,3)}}},6155(e,t,n){var r=n(4932),o=n(7422),a=n(5389),i=n(5128),s=n(3937),l=n(7301),c=n(3714),u=n(3488),d=n(6449);e.exports=function(e,t,n){t=t.length?r(t,function(e){return d(e)?function(t){return o(t,1===e.length?e[0]:e)}:e}):[u];var m=-1;t=r(t,l(a));var p=i(e,function(e,n,o){return{criteria:r(t,function(t){return t(e)}),index:++m,value:e}});return s(p,function(e,t){return c(e,t,n)})}},7237(e){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},7255(e,t,n){var r=n(7422);e.exports=function(e){return function(t){return r(t,e)}}},6151(e){var t=Math.ceil,n=Math.max;e.exports=function(e,r,o,a){for(var i=-1,s=n(t((r-e)/(o||1)),0),l=Array(s);s--;)l[a?s:++i]=e,e+=o;return l}},9302(e,t,n){var r=n(3488),o=n(6757),a=n(2865);e.exports=function(e,t){return a(o(e,t,r),e+"")}},9570(e,t,n){var r=n(7334),o=n(3243),a=n(3488),i=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:a;e.exports=i},5160(e){e.exports=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(o);++r<o;)a[r]=e[r+t];return a}},916(e,t,n){var r=n(909);e.exports=function(e,t){var n;return r(e,function(e,r,o){return!(n=t(e,r,o))}),!!n}},3937(e){e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},8096(e){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},7556(e,t,n){var r=n(1873),o=n(4932),a=n(6449),i=n(4394),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(a(t))return o(t,e)+"";if(i(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},4128(e,t,n){var r=n(1800),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},7301(e){e.exports=function(e){return function(t){return e(t)}}},5765(e,t,n){var r=n(8859),o=n(5325),a=n(9905),i=n(9219),s=n(4517),l=n(4247);e.exports=function(e,t,n){var c=-1,u=o,d=e.length,m=!0,p=[],f=p;if(n)m=!1,u=a;else if(d>=200){var h=t?null:s(e);if(h)return l(h);m=!1,u=i,f=new r}else f=t?[]:p;e:for(;++c<d;){var g=e[c],y=t?t(g):g;if(g=n||0!==g?g:0,m&&y==y){for(var v=f.length;v--;)if(f[v]===y)continue e;t&&f.push(y),p.push(g)}else u(f,y,n)||(f!==p&&f.push(y),p.push(g))}return p}},9219(e){e.exports=function(e,t){return e.has(t)}},1769(e,t,n){var r=n(6449),o=n(8586),a=n(1802),i=n(3222);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:a(i(e))}},8754(e,t,n){var r=n(5160);e.exports=function(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=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,a=e==e,i=r(e),s=void 0!==t,l=null===t,c=t==t,u=r(t);if(!l&&!u&&!i&&e>t||i&&s&&c&&!l&&!u||o&&s&&c||!n&&c||!a)return 1;if(!o&&!i&&!u&&e<t||u&&n&&a&&!o&&!i||l&&n&&a||!s&&a||!c)return-1}return 0}},3714(e,t,n){var r=n(3730);e.exports=function(e,t,n){for(var o=-1,a=e.criteria,i=t.criteria,s=a.length,l=n.length;++o<s;){var c=r(a[o],i[o]);if(c)return o>=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 a=n.length,i=t?a:-1,s=Object(n);(t?i--:++i<a)&&!1!==o(s[i],i,s););return n}}},3221(e){e.exports=function(e){return function(t,n,r){for(var o=-1,a=Object(t),i=r(t),s=i.length;s--;){var l=i[e?s:++o];if(!1===n(a[l],l,a))break}return t}}},2507(e,t,n){var r=n(8754),o=n(9698),a=n(3912),i=n(3222);e.exports=function(e){return function(t){t=i(t);var n=o(t)?a(t):void 0,s=n?n[0]:t.charAt(0),l=n?r(n,1).join(""):t.slice(1);return s[e]()+l}}},2006(e,t,n){var r=n(5389),o=n(4894),a=n(5950);e.exports=function(e){return function(t,n,i){var s=Object(t);if(!o(t)){var l=r(n,3);t=a(t),n=function(e){return l(s[e],e,s)}}var c=e(t,n,i);return c>-1?s[l?t[c]:c]:void 0}}},5508(e,t,n){var r=n(6151),o=n(6800),a=n(7400);e.exports=function(e){return function(t,n,i){return i&&"number"!=typeof i&&o(t,n,i)&&(n=i=void 0),t=a(t),void 0===n?(n=t,t=0):n=a(n),i=void 0===i?t<n?1:-1:a(i),r(t,n,i,e)}}},4517(e,t,n){var r=n(6545),o=n(3950),a=n(4247),i=r&&1/a(new r([,-0]))[1]==1/0?function(e){return new r(e)}:o;e.exports=i},3243(e,t,n){var r=n(6110),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},5911(e,t,n){var r=n(8859),o=n(4248),a=n(9219);e.exports=function(e,t,n,i,s,l){var c=1&n,u=e.length,d=t.length;if(u!=d&&!(c&&d>u))return!1;var m=l.get(e),p=l.get(t);if(m&&p)return m==t&&p==e;var f=-1,h=!0,g=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++f<u;){var y=e[f],v=t[f];if(i)var b=c?i(v,y,f,t,e,l):i(y,v,f,e,t,l);if(void 0!==b){if(b)continue;h=!1;break}if(g){if(!o(t,function(e,t){if(!a(g,t)&&(y===e||s(y,e,n,i,l)))return g.push(t)})){h=!1;break}}else if(y!==v&&!s(y,v,n,i,l)){h=!1;break}}return l.delete(e),l.delete(t),h}},1986(e,t,n){var r=n(1873),o=n(7828),a=n(5288),i=n(5911),s=n(317),l=n(4247),c=r?r.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,d,m){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return a(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=s;case"[object Set]":var f=1&r;if(p||(p=l),e.size!=t.size&&!f)return!1;var h=m.get(e);if(h)return h==t;r|=2,m.set(e,t);var g=i(p(e),p(t),r,c,d,m);return m.delete(e),g;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},689(e,t,n){var r=n(2),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,i,s){var l=1&n,c=r(e),u=c.length;if(u!=r(t).length&&!l)return!1;for(var d=u;d--;){var m=c[d];if(!(l?m in t:o.call(t,m)))return!1}var p=s.get(e),f=s.get(t);if(p&&f)return p==t&&f==e;var h=!0;s.set(e,t),s.set(t,e);for(var g=l;++d<u;){var y=e[m=c[d]],v=t[m];if(a)var b=l?a(v,y,m,t,e,s):a(y,v,m,e,t,s);if(!(void 0===b?y===v||i(y,v,n,a,s):b)){h=!1;break}g||(g="constructor"==m)}if(h&&!g){var M=e.constructor,x=t.constructor;M==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof M&&M instanceof M&&"function"==typeof x&&x instanceof x||(h=!1)}return s.delete(e),s.delete(t),h}},4840(e){var t="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis;e.exports=t},2(e,t,n){var r=n(2199),o=n(4664),a=n(5950);e.exports=function(e){return r(e,a,o)}},2651(e,t,n){var r=n(4218);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},776(e,t,n){var r=n(756),o=n(5950);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var a=t[n],i=e[a];t[n]=[a,i,r(i)]}return t}},6110(e,t,n){var r=n(5083),o=n(392);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},8879(e,t,n){var r=n(4335)(Object.getPrototypeOf,Object);e.exports=r},659(e,t,n){var r=n(1873),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=a.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=i.call(e);return r&&(t?e[s]=n:delete e[s]),o}},4664(e,t,n){var r=n(9770),o=n(3345),a=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(e){return null==e?[]:(e=Object(e),r(i(e),function(t){return a.call(e,t)}))}:o;e.exports=s},5861(e,t,n){var r=n(5580),o=n(8223),a=n(2804),i=n(6545),s=n(8303),l=n(2552),c=n(7473),u="[object Map]",d="[object Promise]",m="[object Set]",p="[object WeakMap]",f="[object DataView]",h=c(r),g=c(o),y=c(a),v=c(i),b=c(s),M=l;(r&&M(new r(new ArrayBuffer(1)))!=f||o&&M(new o)!=u||a&&M(a.resolve())!=d||i&&M(new i)!=m||s&&M(new s)!=p)&&(M=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case h:return f;case g:return u;case y:return d;case v:return m;case b:return p}return t}),e.exports=M},392(e){e.exports=function(e,t){return null==e?void 0:e[t]}},9326(e,t,n){var r=n(1769),o=n(2428),a=n(6449),i=n(361),s=n(294),l=n(7797);e.exports=function(e,t,n){for(var c=-1,u=(t=r(t,e)).length,d=!1;++c<u;){var m=l(t[c]);if(!(d=null!=e&&n(e,m)))break;e=e[m]}return d||++c!=u?d:!!(u=null==e?0:e.length)&&s(u)&&i(m,u)&&(a(e)||o(e))}},9698(e){var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},2032(e,t,n){var r=n(1042);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},3862(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},6721(e,t,n){var r=n(1042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},2749(e,t,n){var r=n(1042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},5749(e,t,n){var r=n(1042);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},5891(e,t,n){var r=n(1873),o=n(2428),a=n(6449),i=r?r.isConcatSpreadable:void 0;e.exports=function(e){return a(e)||o(e)||!!(i&&e&&e[i])}},361(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},6800(e,t,n){var r=n(5288),o=n(4894),a=n(361),i=n(3805);e.exports=function(e,t,n){if(!i(n))return!1;var s=typeof t;return!!("number"==s?o(n)&&a(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},8586(e,t,n){var r=n(6449),o=n(4394),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||i.test(e)||!a.test(e)||null!=t&&e in Object(t)}},4218(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},7296(e,t,n){var r,o=n(5481),a=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!a&&a in e}},5527(e){var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},756(e,t,n){var r=n(3805);e.exports=function(e){return e==e&&!r(e)}},3702(e){e.exports=function(){this.__data__=[],this.size=0}},80(e,t,n){var r=n(6025),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():o.call(t,n,1),--this.size,0))}},4739(e,t,n){var r=n(6025);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},8655(e,t,n){var r=n(6025);e.exports=function(e){return r(this.__data__,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),a=n(8223);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||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,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o&&r.process,s=function(){try{return a&&a.require&&a.require("util").types||i&&i.binding&&i.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 a=arguments,i=-1,s=o(a.length-t,0),l=Array(s);++i<s;)l[i]=a[t+i];i=-1;for(var c=Array(t+1);++i<t;)c[i]=a[i];return c[t]=n(l),r(e,this,c)}}},9325(e,t,n){var r=n(4840),o="object"==typeof self&&self&&self.Object===Object&&self,a=r||o||Function("return this")();e.exports=a},1380(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},1459(e){e.exports=function(e){return this.__data__.has(e)}},4247(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},2865(e,t,n){var r=n(9570),o=n(1811)(r);e.exports=o},1811(e){var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var o=t(),a=16-(o-r);if(r=o,a>0){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),a=n(3661);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var i=n.__data__;if(!o||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(i)}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<o;)if(e[r]===t)return r;return-1}},3912(e,t,n){var r=n(1074),o=n(9698),a=n(2054);e.exports=function(e){return o(e)?a(e):r(e)}},1802(e,t,n){var r=n(2224),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,i=r(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,function(e,n,r,o){t.push(r?o.replace(a,"$1"):n||e)}),t});e.exports=i},7797(e,t,n){var r=n(4394);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},7473(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},1800(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},2054(e){var t="\\ud800-\\udfff",n="["+t+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",a="[^"+t+"]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+r+"|"+o+")?",c="[\\ufe0e\\ufe0f]?",u=c+l+"(?:\\u200d(?:"+[a,i,s].join("|")+")"+c+l+")*",d="(?:"+[a+r+"?",r,i,s,n].join("|")+")",m=RegExp(o+"(?="+o+")|"+d+u,"g");e.exports=function(e){return e.match(m)||[]}},7334(e){e.exports=function(e){return function(){return e}}},8221(e,t,n){var r=n(3805),o=n(124),a=n(9374),i=Math.max,s=Math.min;e.exports=function(e,t,n){var l,c,u,d,m,p,f=0,h=!1,g=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=l,r=c;return l=c=void 0,f=t,d=e.apply(r,n)}function b(e){var n=e-p;return void 0===p||n>=t||n<0||g&&e-f>=u}function M(){var e=o();if(b(e))return x(e);m=setTimeout(M,function(e){var n=t-(e-p);return g?s(n,u-(e-f)):n}(e))}function x(e){return m=void 0,y&&l?v(e):(l=c=void 0,d)}function w(){var e=o(),n=b(e);if(l=arguments,c=this,p=e,n){if(void 0===m)return function(e){return f=e,m=setTimeout(M,t),h?v(e):d}(p);if(g)return clearTimeout(m),m=setTimeout(M,t),v(p)}return void 0===m&&(m=setTimeout(M,t)),d}return t=a(t)||0,r(n)&&(h=!!n.leading,u=(g="maxWait"in n)?i(a(n.maxWait)||0,t):u,y="trailing"in n?!!n.trailing:y),w.cancel=function(){void 0!==m&&clearTimeout(m),f=0,l=p=c=m=void 0},w.flush=function(){return void 0===m?d:x(o())},w}},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),a=n(5389),i=n(6449),s=n(6800);e.exports=function(e,t,n){var l=i(e)?r:o;return n&&s(e,t,n)&&(t=void 0),l(e,a(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),a=n(1489),i=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var l=null==n?0:a(n);return l<0&&(l=i(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),a=Object.prototype,i=a.hasOwnProperty,s=a.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return o(e)&&i.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),a=t&&!t.nodeType&&t,i=a&&e&&!e.nodeType&&e,s=i&&i.exports===a?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),a=n(346),i=Function.prototype,s=Object.prototype,l=i.toString,c=s.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!a(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),a=n(346);e.exports=function(e){return"string"==typeof e||!o(e)&&a(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),a=n(6009),i=a&&a.isTypedArray,s=i?o(i):r;e.exports=s},5950(e,t,n){var r=n(695),o=n(8984),a=n(4894);e.exports=function(e){return a(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),a=n(5128),i=n(6449);e.exports=function(e,t){return(i(e)?r:a)(e,o(t,3))}},3916(e,t,n){var r=n(3360),o=n(641),a=n(5389);e.exports=function(e,t){var n={};return t=a(t,3),o(e,function(e,o,a){r(n,o,t(e,o,a))}),n}},4506(e,t,n){var r=n(3599),o=n(3335),a=n(3488);e.exports=function(e){return e&&e.length?r(e,a,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],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};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),a=n(3488);e.exports=function(e){return e&&e.length?r(e,a,o):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),a=n(8586),i=n(7797);e.exports=function(e){return a(e)?r(i(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),a=n(916),i=n(6449),s=n(6800);e.exports=function(e,t,n){var l=i(e)?r:a;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),a=n(9302),i=n(6800),s=a(function(e,t){if(null==e)return[];var n=t.length;return n>1&&i(e,t[0],t[1])?t=[]:n>2&&i(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 a=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(n)&&(a="leading"in n?!!n.leading:a,i="trailing"in n?!!n.trailing:i),r(e,t,{leading:a,maxWait:t,trailing:i})}},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),a=n(4394),i=/^[-+]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(a(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):i.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 a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==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:a,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"),a=Symbol.for("react.strict_mode"),i=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"),m=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=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 i:case a:case d:case m:return e;default:switch(e=e&&e.$$typeof){case c:case l:case u:case f:case p:case s:return e;default:return t}}case r:return t}}}(e)===o}},4363(e,t,n){"use strict";e.exports=n(2799)},4210(e,t,n){"use strict";function r(e,t,n,r,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}const o={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(e=>{o[e]=new r(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([e,t])=>{o[e]=new r(e,1,!1,t,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(e=>{o[e]=new r(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(e=>{o[e]=new r(e,2,!1,e,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(e=>{o[e]=new r(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(e=>{o[e]=new r(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(e=>{o[e]=new r(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(e=>{o[e]=new r(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(e=>{o[e]=new r(e,5,!1,e.toLowerCase(),null,!1,!1)});const a=/[\-\:]([a-z])/g,i=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(e=>{const t=e.replace(a,i);o[t]=new r(t,1,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(e=>{const t=e.replace(a,i);o[t]=new r(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(e=>{const t=e.replace(a,i);o[t]=new r(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(e=>{o[e]=new r(e,1,!1,e.toLowerCase(),null,!1,!1)}),o.xlinkHref=new r("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(e=>{o[e]=new r(e,1,!1,e.toLowerCase(),null,!0,!0)});const{CAMELCASE:s,SAME:l,possibleStandardNames:c}=n(6811),u=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),d=Object.keys(c).reduce((e,t)=>{const n=c[t];return n===l?e[t]=t:n===s?e[t.toLowerCase()]=t:e[t]=n,e},{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return o.hasOwnProperty(e)?o[e]:null},t.isCustomAttribute=u,t.possibleStandardNames=d},6811(e,t){t.SAME=0,t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},1020(e,t,n){"use strict";var r=n(1609),o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,a={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,r)&&!l.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:a,_owner:s.current}}t.Fragment=a,t.jsx=c,t.jsxs=c},4848(e,t,n){"use strict";e.exports=n(1020)},1747(e){"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(e,t,r,a,i){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new o(r,a||e,i),l=n?n+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function i(e,t){0===--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,a=r.length,i=new Array(a);o<a;o++)i[o]=r[o].fn;return i},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,o,a,i){var s=n?n+e:e;if(!this._events[s])return!1;var l,c,u=this._events[s],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,r),!0;case 4:return u.fn.call(u.context,t,r,o),!0;case 5:return u.fn.call(u.context,t,r,o,a),!0;case 6:return u.fn.call(u.context,t,r,o,a,i),!0}for(c=1,l=new Array(d-1);c<d;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var m,p=u.length;for(c=0;c<p;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),d){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,r);break;case 4:u[c].fn.call(u[c].context,t,r,o);break;default:if(!l)for(m=1,l=new Array(d-1);m<d;m++)l[m-1]=arguments[m];u[c].fn.apply(u[c].context,l)}}return!0},s.prototype.on=function(e,t,n){return a(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return a(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,o){var a=n?n+e:e;if(!this._events[a])return this;if(!t)return i(this,a),this;var s=this._events[a];if(s.fn)s.fn!==t||o&&!s.once||r&&s.context!==r||i(this,a);else{for(var l=0,c=[],u=s.length;l<u;l++)(s[l].fn!==t||o&&!s[l].once||r&&s[l].context!==r)&&c.push(s[l]);c.length?this._events[a]=1===c.length?c[0]:c:i(this,a)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&i(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s},5229(e,t,n){"use strict";var r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(1133)),o=n(8917);function a(e,t){var n={};return e&&"string"==typeof e?((0,r.default)(e,function(e,r){e&&r&&(n[(0,o.camelCase)(e,t)]=r)}),n):n}a.default=a,e.exports=a},8917(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,o=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,s=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||o.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(i,l):e.replace(a,l)).replace(r,s))}},1133(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let n=null;if(!e||"string"!=typeof e)return n;const r=(0,o.default)(e),a="function"==typeof t;return r.forEach(e=>{if("declaration"!==e.type)return;const{property:r,value:o}=e;a?t(r,o,e):o&&(n=n||{},n[r]=o)}),n};const o=r(n(5077))},1609(e){"use strict";e.exports=window.React},5795(e){"use strict";e.exports=window.ReactDOM}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var a=r[e]={id:e,loaded:!1,exports:{}};return n[e].call(a.exports,a,a.exports,o),a.loaded=!0,a.exports}o.n=e=>{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 a=Object.create(null);o.r(a);var i={};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=>i[e]=()=>n[e]);return i.default=()=>n,o.d(a,i),a},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,{scaleBand:()=>ax,scaleDiverging:()=>IE,scaleDivergingLog:()=>AE,scaleDivergingPow:()=>SE,scaleDivergingSqrt:()=>_E,scaleDivergingSymlog:()=>kE,scaleIdentity:()=>EN,scaleImplicit:()=>rx,scaleLinear:()=>DN,scaleLog:()=>zN,scaleOrdinal:()=>ox,scalePoint:()=>sx,scalePow:()=>WN,scaleQuantile:()=>ej,scaleQuantize:()=>tj,scaleRadial:()=>HN,scaleSequential:()=>wE,scaleSequentialLog:()=>NE,scaleSequentialPow:()=>DE,scaleSequentialQuantile:()=>TE,scaleSequentialSqrt:()=>EE,scaleSequentialSymlog:()=>jE,scaleSqrt:()=>VN,scaleSymlog:()=>RN,scaleThreshold:()=>nj,scaleTime:()=>vE,scaleUtc:()=>bE,tickFormat:()=>NN});var t={};o.r(t),o.d(t,{Button:()=>ML,CaptionLabel:()=>xL,Chevron:()=>wL,Day:()=>NL,DayButton:()=>jL,Dropdown:()=>DL,DropdownNav:()=>EL,Footer:()=>TL,Month:()=>OL,MonthCaption:()=>IL,MonthGrid:()=>AL,Months:()=>kL,MonthsDropdown:()=>SL,Nav:()=>_L,NextMonthButton:()=>CL,Option:()=>zL,PreviousMonthButton:()=>LL,Root:()=>PL,Select:()=>UL,Week:()=>RL,WeekNumber:()=>BL,WeekNumberHeader:()=>FL,Weekday:()=>QL,Weekdays:()=>YL,Weeks:()=>WL,YearsDropdown:()=>VL});var n={};o.r(n),o.d(n,{formatCaption:()=>HL,formatDay:()=>ZL,formatMonthCaption:()=>GL,formatMonthDropdown:()=>qL,formatWeekNumber:()=>XL,formatWeekNumberHeader:()=>JL,formatWeekdayName:()=>KL,formatYearCaption:()=>tP,formatYearDropdown:()=>eP});var r={};o.r(r),o.d(r,{labelCaption:()=>aP,labelDay:()=>rP,labelDayButton:()=>nP,labelGrid:()=>oP,labelGridcell:()=>iP,labelMonthDropdown:()=>sP,labelNav:()=>lP,labelNext:()=>uP,labelPrevious:()=>dP,labelWeekNumber:()=>pP,labelWeekNumberHeader:()=>fP,labelWeekday:()=>mP,labelYearDropdown:()=>hP});var a=o(1609),i=o.t(a,2),s=o.n(a),l=o(5338),c="popstate";function u(e={}){return function(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:a=!1}=r,i=o.history,s="POP",l=null,u=m();function m(){return(i.state||{idx:null}).idx}function g(){s="POP";let e=m(),t=null==e?null:e-u;u=e,l&&l({action:s,location:v.location,delta:t})}function y(e){return function(e,t=!1){let n="http://localhost";"undefined"!=typeof window&&(n="null"!==window.location.origin?window.location.origin:window.location.href),d(n,"No window.location.(origin|href) available to create URL");let r="string"==typeof e?e:h(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}(e)}null==u&&(u=0,i.replaceState({...i.state,idx:u},""));let v={get action(){return s},get location(){return e(o,i)},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:y,encodeLocation(e){let t=y(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s="PUSH";let r=f(v.location,e,t);n&&n(r,e),u=m()+1;let c=p(r,u),d=v.createHref(r);try{i.pushState(c,"",d)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(d)}a&&l&&l({action:s,location:v.location,delta:1})},replace:function(e,t){s="REPLACE";let r=f(v.location,e,t);n&&n(r,e),u=m();let o=p(r,u),c=v.createHref(r);i.replaceState(o,"",c),a&&l&&l({action:s,location:v.location,delta:0})},go:e=>i.go(e)};return v}(function(e,t){let{pathname:n,search:r,hash:o}=e.location;return f("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){return"string"==typeof t?t:h(t)},null,e)}function d(e,t){if(!1===e||null==e)throw new Error(t)}function m(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}}function f(e,t,n=null,r){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)}}function h({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 y(e,t,n="/"){return function(e,t,n,r){let o=k(("string"==typeof t?g(t):t).pathname||"/",n);if(null==o)return null;let a=v(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)))}(a);let i=null;for(let e=0;null==i&&e<a.length;++e){let t=A(o);i=O(a[e],t,r)}return i}(e,t,n,!1)}function v(e,t=[],n=[],r="",o=!1){let a=(e,a,i=o,s)=>{let l={relativePath:void 0===s?e.path||"":s,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};if(l.relativePath.startsWith("/")){if(!l.relativePath.startsWith(r)&&i)return;d(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=P([r,l.relativePath]),u=n.concat(l);e.children&&e.children.length>0&&(d(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),v(e.children,t,u,c,i)),(null!=e.path||e.index)&&t.push({path:c,score:T(c,e.index),routesMeta:u})};return e.forEach((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of b(e.path))a(e,t,!0,n);else a(e,t)}),t}function b(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(0===r.length)return o?[a,""]:[a];let i=b(r.join("/")),s=[];return s.push(...i.map(e=>""===e?a:[a,e].join("/"))),o&&s.push(...i),s.map(t=>e.startsWith("/")&&""===t?"/":t)}new WeakMap;var M=/^:[\w-]+$/,x=3,w=2,N=1,j=10,D=-2,E=e=>"*"===e;function T(e,t){let n=e.split("/"),r=n.length;return n.some(E)&&(r+=D),t&&(r+=w),n.filter(e=>!E(e)).reduce((e,t)=>e+(M.test(t)?x:""===t?N:j),r)}function O(e,t,n=!1){let{routesMeta:r}=e,o={},a="/",i=[];for(let e=0;e<r.length;++e){let s=r[e],l=e===r.length-1,c="/"===a?t:t.slice(a.length)||"/",u=I({path:s.relativePath,caseSensitive:s.caseSensitive,end:l},c),d=s.route;if(!u&&l&&n&&!r[r.length-1].route.index&&(u=I({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},c)),!u)return null;Object.assign(o,u.params),i.push({params:o,pathname:P([a,u.pathname]),pathnameBase:U(P([a,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(a=P([a,u.pathnameBase]))}return i}function I(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t=!1,n=!0){m("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")).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 a=o[0],i=a.replace(/(.)\/+$/,"$1"),s=o.slice(1),l=r.reduce((e,{paramName:t,isOptional:n},r)=>{if("*"===t){let e=s[r]||"";i=a.slice(0,a.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:a,pathnameBase:i,pattern:e}}function A(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return m(!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 k(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 S=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function _(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 C(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 <Link to="..."> and the router will parse it for you.`}function z(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},d(!o.pathname||!o.pathname.includes("?"),C("?","pathname","search",o)),d(!o.pathname||!o.pathname.includes("#"),C("#","pathname","hash",o)),d(!o.search||!o.search.includes("#"),C("#","search","hash",o)));let a,i=""===e||""===o.pathname,s=i?"/":o.pathname;if(null==s)a=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("/")}a=e>=0?t[e]:"/"}let l=function(e,t="/"){let n,{pathname:r,search:o="",hash:a=""}="string"==typeof e?g(e):e;return r?(r=r.replace(/\/\/+/g,"/"),n=r.startsWith("/")?_(r.substring(1),"/"):_(r,t)):n=t,{pathname:n,search:R(o),hash:Q(a)}}(o,a),c=s&&"/"!==s&&s.endsWith("/"),u=(i||"."===s)&&n.endsWith("/");return l.pathname.endsWith("/")||!c&&!u||(l.pathname+="/"),l}var P=e=>e.join("/").replace(/\/\/+/g,"/"),U=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),R=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",Q=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",Y=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 B(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}function F(e){return e.map(e=>e.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var W="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function V(e,t){let n=e;if("string"!=typeof n||!S.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,o=!1;if(W)try{let e=new URL(window.location.href),r=n.startsWith("//")?new URL(e.protocol+n):new URL(n),a=k(r.pathname,t);r.origin===e.origin&&null!=a?n=a+r.search+r.hash:o=!0}catch(e){m(!1,`<Link to="${n}"> 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 $=["POST","PUT","PATCH","DELETE"],H=(new Set($),["GET",...$]);new Set(H),Symbol("ResetLoaderData");var G=a.createContext(null);G.displayName="DataRouter";var Z=a.createContext(null);Z.displayName="DataRouterState";var q=a.createContext(!1);var K=a.createContext({isTransitioning:!1});K.displayName="ViewTransition",a.createContext(new Map).displayName="Fetchers",a.createContext(null).displayName="Await";var X=a.createContext(null);X.displayName="Navigation";var J=a.createContext(null);J.displayName="Location";var ee=a.createContext({outlet:null,matches:[],isDataRoute:!1});ee.displayName="Route";var te=a.createContext(null);te.displayName="RouteError";var ne="REACT_ROUTER_ERROR";function re(){return null!=a.useContext(J)}function oe(){return d(re(),"useLocation() may be used only in the context of a <Router> component."),a.useContext(J).location}var ae="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function ie(e){a.useContext(X).static||a.useLayoutEffect(e)}function se(){let{isDataRoute:e}=a.useContext(ee);return e?function(){let{router:e}=function(e){let t=a.useContext(G);return d(t,ge(e)),t}("useNavigate"),t=ye("useNavigate"),n=a.useRef(!1);return ie(()=>{n.current=!0}),a.useCallback(async(r,o={})=>{m(n.current,ae),n.current&&("number"==typeof r?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...o}))},[e,t])}():function(){d(re(),"useNavigate() may be used only in the context of a <Router> component.");let e=a.useContext(G),{basename:t,navigator:n}=a.useContext(X),{matches:r}=a.useContext(ee),{pathname:o}=oe(),i=JSON.stringify(z(r)),s=a.useRef(!1);return ie(()=>{s.current=!0}),a.useCallback((r,a={})=>{if(m(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:P([t,l.pathname])),(a.replace?n.replace:n.push)(l,a.state,a)},[t,n,i,o,e])}()}function le(e,{relative:t}={}){let{matches:n}=a.useContext(ee),{pathname:r}=oe(),o=JSON.stringify(z(n));return a.useMemo(()=>L(e,JSON.parse(o),r,"path"===t),[e,o,r,t])}function ce(e,t,n,r,o){d(re(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=a.useContext(X),{matches:s}=a.useContext(ee),l=s[s.length-1],c=l?l.params:{},u=l?l.pathname:"/",p=l?l.pathnameBase:"/",f=l&&l.route;{let e=f&&f.path||"";be(u,!f||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${e}">) 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 <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let h,v=oe();if(t){let e="string"==typeof t?g(t):t;d("/"===p||e.pathname?.startsWith(p),`When overriding the location using \`<Routes location>\` 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 "${p}" but pathname "${e.pathname}" was given in the \`location\` prop.`),h=e}else h=v;let b=h.pathname||"/",M=b;if("/"!==p){let e=p.replace(/^\//,"").split("/");M="/"+b.replace(/^\//,"").split("/").slice(e.length).join("/")}let x=y(e,{pathname:M});m(f||null!=x,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),m(null==x||void 0!==x[x.length-1].route.element||void 0!==x[x.length-1].route.Component||void 0!==x[x.length-1].route.lazy,`Matched leaf route at location "${h.pathname}${h.search}${h.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let w=function(e,t=[],n=null,r=null){if(null==e){if(!n)return null;if(n.errors)e=n.matches;else{if(0!==t.length||n.initialized||!(n.matches.length>0))return null;e=n.matches}}let o=e,i=n?.errors;if(null!=i){let e=o.findIndex(e=>e.route.id&&void 0!==i?.[e.route.id]);d(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)for(let e=0;e<o.length;e++){let t=o[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(l=e),t.route.id){let{loaderData:e,errors:r}=n,a=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!r||void 0===r[t.route.id]);if(t.route.lazy||a){s=!0,o=l>=0?o.slice(0,l+1):[o[0]];break}}}let c=n&&r?(e,t)=>{r(e,{location:n.location,params:n.matches?.[0]?.params??{},unstable_pattern:F(n.matches),errorInfo:t})}:void 0;return o.reduceRight((e,r,u)=>{let d,m=!1,p=null,f=null;n&&(d=i&&r.route.id?i[r.route.id]:void 0,p=r.route.errorElement||de,s&&(l<0&&0===u?(be("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),m=!0,f=null):l===u&&(m=!0,f=r.route.hydrateFallbackElement||null)));let h=t.concat(o.slice(0,u+1)),g=()=>{let t;return t=d?p:m?f:r.route.Component?a.createElement(r.route.Component,null):r.route.element?r.route.element:e,a.createElement(he,{match:r,routeContext:{outlet:e,matches:h,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===u)?a.createElement(me,{location:n.location,revalidation:n.revalidation,component:p,error:d,children:g(),routeContext:{outlet:null,matches:h,isDataRoute:!0},onError:c}):g()},null)}(x&&x.map(e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:P([p,i.encodeLocation?i.encodeLocation(e.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?p:P([p,i.encodeLocation?i.encodeLocation(e.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])})),s,n,r,o);return t&&w?a.createElement(J.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...h},navigationType:"POP"}},w):w}function ue(){let e=function(){let e=a.useContext(te),t=function(e){let t=a.useContext(Z);return d(t,ge(e)),t}("useRouteError"),n=ye("useRouteError");return void 0!==e?e:t.errors?.[n]}(),t=B(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 de=a.createElement(ue,null),me=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(`${ne}: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 Y(t.status,t.statusText,t.data)}catch{}}(e.digest);t&&(e=t)}let t=void 0!==e?a.createElement(ee.Provider,{value:this.props.routeContext},a.createElement(te.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?a.createElement(fe,{error:e},t):t}};me.contextType=q;var pe=new WeakMap;function fe({children:e,error:t}){let{basename:n}=a.useContext(X);if("object"==typeof t&&t&&"digest"in t&&"string"==typeof t.digest){let e=function(e){if(e.startsWith(`${ne}: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=pe.get(t);if(r)throw r;let o=V(e.location,n);if(W&&!pe.get(t)){if(!o.isExternal&&!e.reloadDocument){const n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:e.replace}));throw pe.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 he({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(ee.Provider,{value:e},n)}function ge(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function ye(e){let t=function(e){let t=a.useContext(ee);return d(t,ge(e)),t}(e),n=t.matches[t.matches.length-1];return d(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}var ve={};function be(e,t,n){t||ve[e]||(ve[e]=!0,m(!1,n))}function Me({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:i=!1,unstable_useTransitions:s}){d(!re(),"You cannot render a <Router> inside another <Router>. 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:p="",hash:f="",state:h=null,key:y="default"}=n,v=a.useMemo(()=>{let e=k(u,l);return null==e?null:{location:{pathname:e,search:p,hash:f,state:h,key:y},navigationType:r}},[l,u,p,f,h,y,r]);return m(null!=v,`<Router basename="${l}"> is not able to match the URL "${u}${p}${f}" because it does not start with the basename, so the <Router> won't render anything.`),null==v?null:a.createElement(X.Provider,{value:c},a.createElement(J.Provider,{children:t,value:v}))}i.useOptimistic,a.memo(function({routes:e,future:t,state:n,onError:r}){return ce(e,void 0,n,r,t)}),a.Component;var xe="get",we="application/x-www-form-urlencoded";function Ne(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement}var je=null,De=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ee(e){return null==e||De.has(e)?e:(m(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${we}"`),null)}function Te(e,t){if(!1===e||null==e)throw new Error(t)}function Oe(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,a){let i=(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"===a?t.filter((e,t)=>i(e,t)||s(e,t)):"data"===a?t.filter((t,a)=>{let l=r.routes[t.route.id];if(!l||!l.hasLoader)return!1;if(i(t,a)||s(t,a))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 Ae(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 ke(){let e=a.useContext(G);return Te(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Se(){let e=a.useContext(Z);return Te(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}Object.getOwnPropertyNames(Object.prototype).sort().join("\0"),"undefined"!=typeof window?window:"undefined"!=typeof globalThis&&globalThis,Symbol("SingleFetchRedirect");var _e=a.createContext(void 0);function Ce(){let e=a.useContext(_e);return Te(e,"You must render this element inside a <HydratedRouter> element"),e}function ze(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Le({page:e,...t}){let{router:n}=ke(),r=a.useMemo(()=>y(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?a.createElement(Ue,{page:e,matches:r,...t}):null}function Pe(e){let{manifest:t,routeModules:n}=Ce(),[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 a=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(a)||(n.add(a),e.push({key:a,link:o})),e},[])}(r.flat(1).filter(Oe).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 Ue({page:e,matches:t,...n}){let r=oe(),{future:o,manifest:i,routeModules:s}=Ce(),{basename:l}=ke(),{loaderData:c,matches:u}=Se(),d=a.useMemo(()=>Ie(e,t,u,i,r,"data"),[e,t,u,i,r]),m=a.useMemo(()=>Ie(e,t,u,i,r,"assets"),[e,t,u,i,r]),p=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&&"/"===k(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]),f=a.useMemo(()=>Ae(m,i),[m,i]),h=Pe(m);return a.createElement(a.Fragment,null,p.map(e=>a.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n})),f.map(e=>a.createElement("link",{key:e,rel:"modulepreload",href:e,...n})),h.map(({key:e,link:t})=>a.createElement("link",{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}_e.displayName="FrameworkContext";function Re(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}a.Component;var Qe="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{Qe&&(window.__reactRouterVersion="7.13.0")}catch(iu){}function Ye({basename:e,children:t,unstable_useTransitions:n,window:r}){let o=a.useRef();null==o.current&&(o.current=u({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(Me,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:i,unstable_useTransitions:n})}var Be=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Fe=a.forwardRef(function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:o,replace:i,state:s,target:l,to:c,preventScrollReset:u,viewTransition:m,unstable_defaultShouldRevalidate:p,...f},g){let{basename:y,unstable_useTransitions:v}=a.useContext(X),b="string"==typeof c&&Be.test(c),M=V(c,y),x=function(e,{relative:t}={}){d(re(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=a.useContext(X),{hash:o,pathname:i,search:s}=le(e,{relative:t}),l=i;return"/"!==n&&(l="/"===i?n:P([n,i])),r.createHref({pathname:l,search:s,hash:o})}(c=M.to,{relative:r}),[w,N,j]=function(e,t){let n=a.useContext(_e),[r,o]=a.useState(!1),[i,s]=a.useState(!1),{onFocus:l,onBlur:c,onMouseEnter:u,onMouseLeave:d,onTouchStart:m}=t,p=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 p.current&&e.observe(p.current),()=>{e.disconnect()}}},[e]),a.useEffect(()=>{if(r){let e=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(e)}}},[r]);let f=()=>{o(!0)},h=()=>{o(!1),s(!1)};return n?"intent"!==e?[i,p,{}]:[i,p,{onFocus:ze(l,f),onBlur:ze(c,h),onMouseEnter:ze(u,f),onMouseLeave:ze(d,h),onTouchStart:ze(m,f)}]:[!1,p,{}]}(n,f),D=function(e,{target:t,replace:n,state:r,preventScrollReset:o,relative:i,viewTransition:s,unstable_defaultShouldRevalidate:l,unstable_useTransitions:c}={}){let u=se(),d=oe(),m=le(e,{relative:i});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:h(d)===h(m),f=()=>u(e,{replace:t,state:r,preventScrollReset:o,relative:i,viewTransition:s,unstable_defaultShouldRevalidate:l});c?a.startTransition(()=>f()):f()}},[d,u,m,n,r,t,e,o,i,s,l,c])}(c,{replace:i,state:s,target:l,preventScrollReset:u,relative:r,viewTransition:m,unstable_defaultShouldRevalidate:p,unstable_useTransitions:v}),E=a.createElement("a",{...f,...j,href:M.absoluteURL||x,onClick:M.isExternal||o?e:function(t){e&&e(t),t.defaultPrevented||D(t)},ref:Re(g,N),target:l,"data-discover":b||"render"!==t?void 0:"true"});return w&&!b?a.createElement(a.Fragment,null,E,a.createElement(Le,{page:x})):E});Fe.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 m=le(i,{relative:c.relative}),p=oe(),f=a.useContext(Z),{navigator:h,basename:g}=a.useContext(X),y=null!=f&&function(e,{relative:t}={}){let n=a.useContext(K);d(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Ve("useViewTransitionState"),o=le(e,{relative:t});if(!n.isTransitioning)return!1;let i=k(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=k(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=I(o.pathname,s)||null!=I(o.pathname,i)}(m)&&!0===s,v=h.encodeLocation?h.encodeLocation(m).pathname:m.pathname,b=p.pathname,M=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(b=b.toLowerCase(),M=M?M.toLowerCase():null,v=v.toLowerCase()),M&&g&&(M=k(M,g)||M);const x="/"!==v&&v.endsWith("/")?v.length-1:v.length;let w,N=b===v||!r&&b.startsWith(v)&&"/"===b.charAt(x),j=null!=M&&(M===v||!r&&M.startsWith(v)&&"/"===M.charAt(v.length)),D={isActive:N,isPending:j,isTransitioning:y},E=N?e:void 0;w="function"==typeof n?n(D):[n,N?"active":null,j?"pending":null,y?"transitioning":null].filter(Boolean).join(" ");let T="function"==typeof o?o(D):o;return a.createElement(Fe,{...c,"aria-current":E,className:w,ref:u,style:T,to:i,viewTransition:s},"function"==typeof l?l(D):l)}).displayName="NavLink";var We=a.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:i,method:s=xe,action:l,onSubmit:c,relative:u,preventScrollReset:m,viewTransition:p,unstable_defaultShouldRevalidate:f,...g},y)=>{let{unstable_useTransitions:v}=a.useContext(X),b=function(){let{router:e}=Ve("useSubmit"),{basename:t}=a.useContext(X),n=ye("useRouteId"),r=e.fetch,o=e.navigate;return a.useCallback(async(e,a={})=>{let{action:i,method:s,encType:l,formData:c,body:u}=function(e,t){let n,r,o,a,i;if(function(e){return Ne(e)&&"form"===e.tagName.toLowerCase()}(e)){let i=e.getAttribute("action");r=i?k(i,t):null,n=e.getAttribute("method")||xe,o=Ee(e.getAttribute("enctype"))||we,a=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 i=e.form;if(null==i)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||i.getAttribute("action");if(r=s?k(s,t):null,n=e.getAttribute("formmethod")||i.getAttribute("method")||xe,o=Ee(e.getAttribute("formenctype"))||Ee(i.getAttribute("enctype"))||we,a=new FormData(i,e),!function(){if(null===je)try{new FormData(document.createElement("form"),0),je=!1}catch(e){je=!0}return je}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?`${t}.`:"";a.append(`${e}x`,"0"),a.append(`${e}y`,"0")}else t&&a.append(t,r)}}else{if(Ne(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=xe,r=null,o=we,i=e}return a&&"text/plain"===o&&(i=a,a=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:a,body:i}}(e,t);if(!1===a.navigate){let e=a.fetcherKey||He();await r(e,n,a.action||i,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:c,body:u,formMethod:a.method||s,formEncType:a.encType||l,flushSync:a.flushSync})}else await o(a.action||i,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:c,body:u,formMethod:a.method||s,formEncType:a.encType||l,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,o,t,n])}(),M=function(e,{relative:t}={}){let{basename:n}=a.useContext(X),r=a.useContext(ee);d(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),i={...le(e||".",{relative:t})},s=oe();if(null==e){i.search=s.search;let e=new URLSearchParams(i.search),t=e.getAll("index");if(t.some(e=>""===e)){e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let n=e.toString();i.search=n?`?${n}`:""}}return e&&"."!==e||!o.route.index||(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),"/"!==n&&(i.pathname="/"===i.pathname?n:P([n,i.pathname])),h(i)}(l,{relative:u}),x="get"===s.toLowerCase()?"get":"post",w="string"==typeof l&&Be.test(l);return a.createElement("form",{ref:y,method:x,action:M,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,l=r?.getAttribute("formmethod")||s,d=()=>b(r||e.currentTarget,{fetcherKey:t,method:l,navigate:n,replace:o,state:i,relative:u,preventScrollReset:m,viewTransition:p,unstable_defaultShouldRevalidate:f});v&&!1!==n?a.startTransition(()=>d()):d()},...g,"data-discover":w||"render"!==e?void 0:"true"})});function Ve(e){let t=a.useContext(G);return d(t,function(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}(e)),t}We.displayName="Form";var $e=0,He=()=>`__${String(++$e)}__`;var Ge=o(4848);const Ze=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),qe=(...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 Xe=(0,a.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:s,...l},c)=>(0,a.createElement)("svg",{ref:c,...Ke,width:t,height:t,stroke:e,strokeWidth:r?24*Number(n)/Number(t):n,className:qe("lucide",o),...l},[...s.map(([e,t])=>(0,a.createElement)(e,t)),...Array.isArray(i)?i:[i]])),Je=(e,t)=>{const n=(0,a.forwardRef)(({className:n,...r},o)=>(0,a.createElement)(Xe,{ref:o,iconNode:t,className:qe(`lucide-${Ze(e)}`,n),...r}));return n.displayName=`${e}`,n},et=Je("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);let tt=1;const nt=new class{#e;#t;constructor(){this.#e=[],this.#t=[]}subscribe(e){return this.#t.push(e),()=>{this.#t=this.#t.filter(t=>t!==e)}}publish(e){this.#t.forEach(t=>t(e))}add(e){this.#e.push(e),this.publish(e)}remove(e){return this.#e=this.#e.filter(t=>t.id!==e),e}create(e){const{id:t,message:n="",jsx:r,...o}=e;if(!n&&"function"!=typeof r)return;const a="number"==typeof t?t:tt++;return this.#e.find(e=>e.id===a)&&(this.#e=this.#e.map(e=>e.id===a?(this.publish({...e,title:n,jsx:r,...o}),{...e,title:n,jsx:r,...o}):e)),this.add({id:a,title:n,jsx:r,...o}),a}update(e,t){const{render:n}=t;let r=t;switch(typeof n){case"function":r={jsx:n,...t};break;case"string":r={title:n,...t}}this.#e=this.#e.map(t=>t.id===e?(this.publish({...t,...r}),{...t,...r}):t)}dismiss(e){return e||this.#e.forEach(e=>this.#t.forEach(t=>t({id:e.id,dismiss:!0}))),this.#t.forEach(t=>t({id:e,dismiss:!0})),e}history(){return this.#e}default(e="",t={}){return this.create({message:e,type:"neutral",...t})}success(e="",t={}){return this.create({message:e,type:"success",...t})}error(e="",t={}){return this.create({message:e,type:"error",...t})}warning(e="",t={}){return this.create({message:e,type:"warning",...t})}info(e="",t={}){return this.create({message:e,type:"info",...t})}custom(e,t={}){return this.create({jsx:e,type:"custom",...t})}},rt=Object.seal(Object.assign((e,t)=>nt.default(e,t),{success:nt.success.bind(nt),error:nt.error.bind(nt),warning:nt.warning.bind(nt),info:nt.info.bind(nt),custom:nt.custom.bind(nt),dismiss:nt.dismiss.bind(nt),update:nt.update.bind(nt)},{getHistory:nt.history.bind(nt)})),ot=e=>{const t=lt(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),at(n,t)||st(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},at=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?at(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const a=e.join("-");return t.validators.find(({validator:e})=>e(a))?.classGroupId},it=/^\[(.+)\]$/,st=e=>{if(it.test(e)){const t=it.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},lt=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return mt(Object.entries(e.classGroups),n).forEach(([e,n])=>{ct(n,r,e,t)}),r},ct=(e,t,n,r)=>{e.forEach(e=>{if("string"!=typeof e)return"function"==typeof e?dt(e)?void ct(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n}):void Object.entries(e).forEach(([e,o])=>{ct(o,ut(t,e),n,r)});(""===e?t:ut(t,e)).classGroupId=n})},ut=(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},dt=e=>e.isThemeGetter,mt=(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,pt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(o,a)=>{n.set(o,a),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)}}},ft=e=>{const{separator:t,experimentalParseClassName:n}=e,r=1===t.length,o=t[0],a=t.length,i=e=>{const n=[];let i,s=0,l=0;for(let c=0;c<e.length;c++){let u=e[c];if(0===s){if(u===o&&(r||e.slice(c,c+a)===t)){n.push(e.slice(l,c)),l=c+a;continue}if("/"===u){i=c;continue}}"["===u?s++:"]"===u&&s--}const c=0===n.length?e:e.substring(l),u=c.startsWith("!");return{modifiers:n,hasImportantModifier:u,baseClassName:u?c.substring(1):c,maybePostfixModifierPosition:i&&i>l?i-l:void 0}};return n?e=>n({className:e,parseClassName:i}):i},ht=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},gt=/\s+/;function yt(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=vt(e))&&(r&&(r+=" "),r+=t);return r}const vt=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=vt(e[r]))&&(n&&(n+=" "),n+=t);return n};function bt(e,...t){let n,r,o,a=function(s){const l=t.reduce((e,t)=>t(e),e());return n=(e=>({cache:pt(e.cacheSize),parseClassName:ft(e),...ot(e)}))(l),r=n.cache.get,o=n.cache.set,a=i,i(s)};function i(e){const t=r(e);if(t)return t;const a=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,a=[],i=e.trim().split(gt);let s="";for(let e=i.length-1;e>=0;e-=1){const t=i[e],{modifiers:l,hasImportantModifier:c,baseClassName:u,maybePostfixModifierPosition:d}=n(t);let m=Boolean(d),p=r(m?u.substring(0,d):u);if(!p){if(!m){s=t+(s.length>0?" "+s:s);continue}if(p=r(u),!p){s=t+(s.length>0?" "+s:s);continue}m=!1}const f=ht(l).join(":"),h=c?f+"!":f,g=h+p;if(a.includes(g))continue;a.push(g);const y=o(p,m);for(let e=0;e<y.length;++e){const t=y[e];a.push(h+t)}s=t+(s.length>0?" "+s:s)}return s})(e,n);return o(e,a),a}return function(){return a(yt.apply(null,arguments))}}const Mt=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},xt=/^\[(?:([a-z-]+):)?(.+)\]$/i,wt=/^\d+\/\d+$/,Nt=new Set(["px","full","screen"]),jt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Dt=/\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$/,Et=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Tt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ot=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,It=e=>kt(e)||Nt.has(e)||wt.test(e),At=e=>Wt(e,"length",Vt),kt=e=>Boolean(e)&&!Number.isNaN(Number(e)),St=e=>Wt(e,"number",kt),_t=e=>Boolean(e)&&Number.isInteger(Number(e)),Ct=e=>e.endsWith("%")&&kt(e.slice(0,-1)),zt=e=>xt.test(e),Lt=e=>jt.test(e),Pt=new Set(["length","size","percentage"]),Ut=e=>Wt(e,Pt,$t),Rt=e=>Wt(e,"position",$t),Qt=new Set(["image","url"]),Yt=e=>Wt(e,Qt,Gt),Bt=e=>Wt(e,"",Ht),Ft=()=>!0,Wt=(e,t,n)=>{const r=xt.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))},Vt=e=>Dt.test(e)&&!Et.test(e),$t=()=>!1,Ht=e=>Tt.test(e),Gt=e=>Ot.test(e),Zt=(Symbol.toStringTag,()=>{const e=Mt("colors"),t=Mt("spacing"),n=Mt("blur"),r=Mt("brightness"),o=Mt("borderColor"),a=Mt("borderRadius"),i=Mt("borderSpacing"),s=Mt("borderWidth"),l=Mt("contrast"),c=Mt("grayscale"),u=Mt("hueRotate"),d=Mt("invert"),m=Mt("gap"),p=Mt("gradientColorStops"),f=Mt("gradientColorStopPositions"),h=Mt("inset"),g=Mt("margin"),y=Mt("opacity"),v=Mt("padding"),b=Mt("saturate"),M=Mt("scale"),x=Mt("sepia"),w=Mt("skew"),N=Mt("space"),j=Mt("translate"),D=()=>["auto",zt,t],E=()=>[zt,t],T=()=>["",It,At],O=()=>["auto",kt,zt],I=()=>["","0",zt],A=()=>[kt,zt];return{cacheSize:500,separator:":",theme:{colors:[Ft],spacing:[It,At],blur:["none","",Lt,zt],brightness:A(),borderColor:[e],borderRadius:["none","","full",Lt,zt],borderSpacing:E(),borderWidth:T(),contrast:A(),grayscale:I(),hueRotate:A(),invert:I(),gap:E(),gradientColorStops:[e],gradientColorStopPositions:[Ct,At],inset:D(),margin:D(),opacity:A(),padding:E(),saturate:A(),scale:A(),sepia:I(),skew:A(),space:E(),translate:E()},classGroups:{aspect:[{aspect:["auto","square","video",zt]}],container:["container"],columns:[{columns:[Lt]}],"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",zt]}],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:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",_t,zt]}],basis:[{basis:D()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",zt]}],grow:[{grow:I()}],shrink:[{shrink:I()}],order:[{order:["first","last","none",_t,zt]}],"grid-cols":[{"grid-cols":[Ft]}],"col-start-end":[{col:["auto",{span:["full",_t,zt]},zt]}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":[Ft]}],"row-start-end":[{row:["auto",{span:[_t,zt]},zt]}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",zt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",zt]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"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:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[N]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[N]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",zt,t]}],"min-w":[{"min-w":[zt,t,"min","max","fit"]}],"max-w":[{"max-w":[zt,t,"none","full","min","max","fit","prose",{screen:[Lt]},Lt]}],h:[{h:[zt,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[zt,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[zt,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[zt,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Lt,At]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",St]}],"font-family":[{font:[Ft]}],"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",zt]}],"line-clamp":[{"line-clamp":["none",kt,St]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",It,zt]}],"list-image":[{"list-image":["none",zt]}],"list-style-type":[{list:["none","disc","decimal",zt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"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",It,At]}],"underline-offset":[{"underline-offset":["auto",It,zt]}],"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:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",zt]}],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",zt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",Rt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ut]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Yt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[f]}],"gradient-via-pos":[{via:[f]}],"gradient-to-pos":[{to:[f]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"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":[y]}],"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":[y]}],"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":[It,zt]}],"outline-w":[{outline:[It,At]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:T()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[It,At]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Lt,Bt]}],"shadow-color":[{shadow:[Ft]}],opacity:[{opacity:[y]}],"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",Lt,zt]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[b]}],sepia:[{sepia:[x]}],"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":[y]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",zt]}],duration:[{duration:A()}],ease:[{ease:["linear","in","out","in-out",zt]}],delay:[{delay:A()}],animate:[{animate:["none","spin","ping","pulse","bounce",zt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[M]}],"scale-x":[{"scale-x":[M]}],"scale-y":[{"scale-y":[M]}],rotate:[{rotate:[_t,zt]}],"translate-x":[{"translate-x":[j]}],"translate-y":[{"translate-y":[j]}],"skew-x":[{"skew-x":[w]}],"skew-y":[{"skew-y":[w]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",zt]}],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",zt]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"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",zt]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[It,At,St]}],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"]}}}),qt=bt(Zt);function Kt(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;t<o;t++)e[t]&&(n=Kt(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Xt(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Kt(e))&&(r&&(r+=" "),r+=t);return r}const Jt=Xt,en=(...e)=>qt(Xt(...e)),tn=(...e)=>(...t)=>e.filter(Boolean).forEach(e=>e?.(...t)),nn=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},rn=()=>{const e=window.navigator?.userAgentData?.platform||window.navigator.platform;let t="null";return["macOS","Macintosh","MacIntel","MacPPC","Mac68K"].includes(e)?t="Mac OS":["Win32","Win64","Windows","WinCE"].includes(e)&&(t="Windows"),t},on=(e,t)=>{if(!(typeof window>"u"))try{localStorage.setItem(e,JSON.stringify(t))}catch(e){console.error(e)}},an=e=>{if(typeof window>"u")return null;try{const t=localStorage.getItem(e);return t?JSON.parse(t):null}catch(e){return console.error(e),null}},sn=Je("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),ln=Je("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),cn=Je("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),un=Je("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]),dn=(0,a.forwardRef)((e,t)=>{const{variant:n="primary",size:r="md",type:o="button",tag:i="button",className:s,children:l,disabled:c=!1,destructive:u=!1,icon:d=null,iconPosition:m="left",loading:p=!1,...f}=e,h=u&&"focus:ring-focus-error",g=p?"opacity-50 disabled:cursor-not-allowed":"",y={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]:"",b={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 M,x=null,w="";return d&&(w="flex items-center justify-center","left"===m?M=d:x=d),(0,Ge.jsxs)(i,{ref:t,type:o,className:en(w,"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",b,y,v,h,g,{"cursor-default":c},s),disabled:c,"aria-disabled":c,...f,children:[(0,Ge.jsx)(a.Fragment,{children:M},"left-icon"),l?(0,Ge.jsx)("span",{className:"px-1",children:l}):null,(0,Ge.jsx)(a.Fragment,{children:x},"right-icon")]})});dn.displayName="Button";const mn="light",pn="neutral",fn=({icon:e,theme:t=mn,variant:n=pn})=>{const r="[&>svg]:h-5 [&>svg]:w-5",o=(({theme:e=mn,variant:t=pn})=>{let n="light"===e?"text-icon-secondary":"text-icon-inverse";return n={info:"light"===e?"text-support-info":"text-support-info-inverse",success:"light"===e?"text-support-success":"text-support-success-inverse",warning:"light"===e?"text-support-warning":"text-support-warning-inverse",error:"light"===e?"text-support-error":"text-support-error-inverse"}[t]||n,n})({theme:t,variant:n});if(e&&(0,a.isValidElement)(e))return(0,a.cloneElement)(e,{className:en(r,o,e?.props?.className??"")});const i={neutral:(0,Ge.jsx)(sn,{className:en(r,o)}),info:(0,Ge.jsx)(sn,{className:en(r,o)}),success:(0,Ge.jsx)(ln,{className:en(r,o)}),warning:(0,Ge.jsx)(cn,{className:en(r,o)}),error:(0,Ge.jsx)(un,{className:en(r,o)})};return i[n]||i.neutral},hn=({actionType:e="button",onAction:t=()=>{},actionLabel:n="",theme:r=mn})=>{const o="focus:ring-0 focus:ring-offset-0 ring-offset-0 focus:outline-none";let a="text-button-primary border-button-primary hover:border-button-primary hover:text-button-primary-hover";switch("dark"===r&&(a="text-text-inverse border-text-inverse hover:border-text-inverse hover:text-text-inverse"),e){case"button":return(0,Ge.jsx)(dn,{variant:"outline",size:"xs",onClick:t,className:en("rounded",o,a,"dark"===r?"bg-transparent hover:bg-transparent":"bg-white hover:bg-white"),children:n});case"link":return(0,Ge.jsx)(dn,{variant:"link",size:"xs",onClick:t,className:en(o,a),children:n});default:return null}},gn=({theme:e=mn,title:t="",inline:n=!1})=>t?(0,Ge.jsx)("span",{className:en("block",{light:"text-text-primary",dark:"text-text-inverse"}[e],"text-sm leading-5 font-semibold",n?"inline":"block"),children:t}):null,yn=({theme:e=mn,content:t="",inline:n=!1})=>t?(0,Ge.jsx)("span",{className:en({light:"text-text-primary",dark:"text-text-inverse"}[e],"block text-sm [&_*]:text-sm leading-5 [&_*]:leading-5 font-normal [word-break:break-word]",n?"inline":"block"),children:t}):null,vn=(...e)=>t=>{e.forEach(e=>{"function"==typeof e?e(t):e&&(e.current=t)})},bn={"top-left":"top-0 bottom-0 left-0 justify-start items-start","top-right":"top-0 bottom-0 right-0 justify-start items-end","bottom-left":"top-0 bottom-0 left-0 justify-end items-start","bottom-right":"top-0 bottom-0 right-0 justify-end items-end"},Mn={neutral:"border-alert-border-neutral bg-alert-background-neutral",custom:"border-alert-border-neutral bg-alert-background-neutral",info:"border-alert-border-info bg-alert-background-info",success:"border-alert-border-green bg-alert-background-green",warning:"border-alert-border-warning bg-alert-background-warning",error:"border-alert-border-danger bg-alert-background-danger"},xn="bg-background-inverse border-background-inverse",wn={light:"text-icon-secondary",dark:"text-icon-inverse"};var Nn=o(5795);const jn=(0,a.createContext)({});function Dn(e){const t=(0,a.useRef)(null);return null===t.current&&(t.current=e()),t.current}const En=(0,a.createContext)(null),Tn=(0,a.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class On extends a.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function In({children:e,isPresent:t}){const n=(0,a.useId)(),r=(0,a.useRef)(null),o=(0,a.useRef)({width:0,height:0,top:0,left:0}),{nonce:i}=(0,a.useContext)(Tn);return(0,a.useInsertionEffect)(()=>{const{width:e,height:a,top:s,left:l}=o.current;if(t||!r.current||!e||!a)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return i&&(c.nonce=i),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`\n          [data-motion-pop-id="${n}"] {\n            position: absolute !important;\n            width: ${e}px !important;\n            height: ${a}px !important;\n            top: ${s}px !important;\n            left: ${l}px !important;\n          }\n        `),()=>{document.head.removeChild(c)}},[t]),(0,Ge.jsx)(On,{isPresent:t,childRef:r,sizeRef:o,children:a.cloneElement(e,{ref:r})})}const An=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s})=>{const l=Dn(kn),c=(0,a.useId)(),u=(0,a.useCallback)(e=>{l.set(e,!0);for(const e of l.values())if(!e)return;r&&r()},[l,r]),d=(0,a.useMemo)(()=>({id:c,initial:t,isPresent:n,custom:o,onExitComplete:u,register:e=>(l.set(e,!1),()=>l.delete(e))}),i?[Math.random(),u]:[n,u]);return(0,a.useMemo)(()=>{l.forEach((e,t)=>l.set(t,!1))},[n]),a.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),"popLayout"===s&&(e=(0,Ge.jsx)(In,{isPresent:n,children:e})),(0,Ge.jsx)(En.Provider,{value:d,children:e})};function kn(){return new Map}function Sn(e=!0){const t=(0,a.useContext)(En);if(null===t)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,i=(0,a.useId)();(0,a.useEffect)(()=>{e&&o(i)},[e]);const s=(0,a.useCallback)(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,s]:[!0]}const Cn=e=>e.key||"";function zn(e){const t=[];return a.Children.forEach(e,e=>{(0,a.isValidElement)(e)&&t.push(e)}),t}const Ln="undefined"!=typeof window,Pn=Ln?a.useLayoutEffect:a.useEffect,Un=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:i="sync",propagate:s=!1})=>{const[l,c]=Sn(s),u=(0,a.useMemo)(()=>zn(e),[e]),d=s&&!l?[]:u.map(Cn),m=(0,a.useRef)(!0),p=(0,a.useRef)(u),f=Dn(()=>new Map),[h,g]=(0,a.useState)(u),[y,v]=(0,a.useState)(u);Pn(()=>{m.current=!1,p.current=u;for(let e=0;e<y.length;e++){const t=Cn(y[e]);d.includes(t)?f.delete(t):!0!==f.get(t)&&f.set(t,!1)}},[y,d.length,d.join("-")]);const b=[];if(u!==h){let e=[...u];for(let t=0;t<y.length;t++){const n=y[t],r=Cn(n);d.includes(r)||(e.splice(t,0,n),b.push(n))}return"wait"===i&&b.length&&(e=b),v(zn(e)),void g(u)}const{forceRender:M}=(0,a.useContext)(jn);return(0,Ge.jsx)(Ge.Fragment,{children:y.map(e=>{const a=Cn(e),h=!(s&&!l)&&(u===y||d.includes(a));return(0,Ge.jsx)(An,{isPresent:h,initial:!(m.current&&!n)&&void 0,custom:h?void 0:t,presenceAffectsLayout:o,mode:i,onExitComplete:h?void 0:()=>{if(!f.has(a))return;f.set(a,!0);let e=!0;f.forEach(t=>{t||(e=!1)}),e&&(null==M||M(),v(p.current),s&&(null==c||c()),r&&r())},children:e},a)})})};function Rn(e){if("undefined"==typeof Proxy)return e;const t=new Map;return new Proxy((...t)=>e(...t),{get:(n,r)=>"create"===r?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}function Qn(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}const Yn=e=>Array.isArray(e);function Bn(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Fn(e){return"string"==typeof e||Array.isArray(e)}function Wn(e){const t=[{},{}];return null==e||e.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Vn(e,t,n,r){if("function"==typeof t){const[o,a]=Wn(r);t=t(void 0!==n?n:e.custom,o,a)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){const[o,a]=Wn(r);t=t(void 0!==n?n:e.custom,o,a)}return t}function $n(e,t,n){const r=e.getProps();return Vn(r,t,void 0!==n?n:r.custom,e)}const Hn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Gn=["initial",...Hn];function Zn(e){let t;return()=>(void 0===t&&(t=e()),t)}const qn=Zn(()=>void 0!==window.ScrollTimeline);class Kn{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e,t){const n=this.animations.map(n=>qn()&&n.attachTimeline?n.attachTimeline(e):"function"==typeof t?t(n):void 0);return()=>{n.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach(t=>t[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class Xn extends Kn{then(e,t){return Promise.all(this.animations).then(e).catch(t)}}function Jn(e,t){return e?e[t]||e.default||e:void 0}const er=2e4;function tr(e){let t=0,n=e.next(t);for(;!n.done&&t<er;)t+=50,n=e.next(t);return t>=er?1/0:t}function nr(e){return"function"==typeof e}function rr(e,t){e.timeline=t,e.onfinish=null}const or=e=>Array.isArray(e)&&"number"==typeof e[0],ar={linearEasing:void 0};function ir(e,t){const n=Zn(e);return()=>{var e;return null!==(e=ar[t])&&void 0!==e?e:n()}}const sr=ir(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),lr=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},cr=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let t=0;t<o;t++)r+=e(lr(0,o-1,t))+", ";return`linear(${r.substring(0,r.length-2)})`};function ur(e){return Boolean("function"==typeof e&&sr()||!e||"string"==typeof e&&(e in mr||sr())||or(e)||Array.isArray(e)&&e.every(ur))}const dr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,mr={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:dr([0,.65,.55,1]),circOut:dr([.55,0,1,.45]),backIn:dr([.31,.01,.66,-.59]),backOut:dr([.33,1.53,.69,.99])};function pr(e,t){return e?"function"==typeof e&&sr()?cr(e,t):or(e)?dr(e):Array.isArray(e)?e.map(e=>pr(e,t)||mr.easeOut):mr[e]:void 0}const fr={x:!1,y:!1};function hr(){return fr.x||fr.y}function gr(e,t){const n=function(e){if(e instanceof Element)return[e];if("string"==typeof e){let t=document;const n=t.querySelectorAll(e);return n?Array.from(n):[]}return Array.from(e)}(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function yr(e){return t=>{"touch"===t.pointerType||hr()||e(t)}}const vr=(e,t)=>!!t&&(e===t||vr(e,t.parentElement)),br=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary,Mr=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),xr=new WeakSet;function wr(e){return t=>{"Enter"===t.key&&e(t)}}function Nr(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function jr(e){return br(e)&&!hr()}const Dr=e=>1e3*e,Er=e=>e/1e3,Tr=e=>e,Or=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ir=new Set(Or),Ar=new Set(["width","height","top","left","right","bottom",...Or]),kr=e=>Yn(e)?e[e.length-1]||0:e,Sr=["read","resolveKeyframes","update","preRender","render","postRender"];function _r(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,i=Sr.reduce((e,t)=>(e[t]=function(e){let t=new Set,n=new Set,r=!1,o=!1;const a=new WeakSet;let i={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(l.schedule(t),e()),t(i)}const l={schedule:(e,o=!1,i=!1)=>{const s=i&&r?t:n;return o&&a.add(e),s.has(e)||s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{i=e,r?o=!0:(r=!0,[t,n]=[n,t],t.forEach(s),t.clear(),r=!1,o&&(o=!1,l.process(e)))}};return l}(a),e),{}),{read:s,resolveKeyframes:l,update:c,preRender:u,render:d,postRender:m}=i,p=()=>{const a=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(a-o.timestamp,40),1),o.timestamp=a,o.isProcessing=!0,s.process(o),l.process(o),c.process(o),u.process(o),d.process(o),m.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(p))};return{schedule:Sr.reduce((t,a)=>{const s=i[a];return t[a]=(t,a=!1,i=!1)=>(n||(n=!0,r=!0,o.isProcessing||e(p)),s.schedule(t,a,i)),t},{}),cancel:e=>{for(let t=0;t<Sr.length;t++)i[Sr[t]].cancel(e)},state:o,steps:i}}const{schedule:Cr,cancel:zr,state:Lr,steps:Pr}=_r("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:Tr,!0);let Ur;function Rr(){Ur=void 0}const Qr={now:()=>(void 0===Ur&&Qr.set(Lr.isProcessing?Lr.timestamp:performance.now()),Ur),set:e=>{Ur=e,queueMicrotask(Rr)}};function Yr(e,t){-1===e.indexOf(t)&&e.push(t)}function Br(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Fr{constructor(){this.subscriptions=[]}add(e){return Yr(this.subscriptions,e),()=>Br(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let o=0;o<r;o++){const r=this.subscriptions[o];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function Wr(e,t){return t?e*(1e3/t):0}const Vr={current:void 0};class $r{constructor(e,t={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{const n=Qr.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=Qr.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=(e=>!isNaN(parseFloat(e)))(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new Fr);const n=this.events[e].add(t);return"change"===e?()=>{n(),Cr.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return Vr.current&&Vr.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=Qr.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return Wr(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Hr(e,t){return new $r(e,t)}function Gr(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Hr(n))}const Zr=e=>Boolean(e&&e.getVelocity);function qr(e,t){const n=e.getValue("willChange");if(function(e){return Boolean(Zr(e)&&e.add)}(n))return n.add(t)}const Kr=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Xr="data-"+Kr("framerAppearId");function Jr(e){return e.props[Xr]}const eo=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function to(e,t,n,r){if(e===t&&n===r)return Tr;return o=>0===o||1===o?o:eo(function(e,t,n,r,o){let a,i,s=0;do{i=t+(n-t)/2,a=eo(i,r,o)-e,a>0?n=i:t=i}while(Math.abs(a)>1e-7&&++s<12);return i}(o,0,1,e,n),t,r)}const no=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ro=e=>t=>1-e(1-t),oo=to(.33,1.53,.69,.99),ao=ro(oo),io=no(ao),so=e=>(e*=2)<1?.5*ao(e):.5*(2-Math.pow(2,-10*(e-1))),lo=e=>1-Math.sin(Math.acos(e)),co=ro(lo),uo=no(lo),mo=e=>/^0[^.\s]+$/u.test(e);function po(e){return"number"==typeof e?0===e:null===e||"none"===e||"0"===e||mo(e)}const fo=(e,t,n)=>n>t?t:n<e?e:n,ho={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},go={...ho,transform:e=>fo(0,1,e)},yo={...ho,default:1},vo=e=>Math.round(1e5*e)/1e5,bo=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,Mo=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,xo=(e,t)=>n=>Boolean("string"==typeof n&&Mo.test(n)&&n.startsWith(e)||t&&!function(e){return null==e}(n)&&Object.prototype.hasOwnProperty.call(n,t)),wo=(e,t,n)=>r=>{if("string"!=typeof r)return r;const[o,a,i,s]=r.match(bo);return{[e]:parseFloat(o),[t]:parseFloat(a),[n]:parseFloat(i),alpha:void 0!==s?parseFloat(s):1}},No={...ho,transform:e=>Math.round((e=>fo(0,255,e))(e))},jo={test:xo("rgb","red"),parse:wo("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+No.transform(e)+", "+No.transform(t)+", "+No.transform(n)+", "+vo(go.transform(r))+")"},Do={test:xo("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:jo.transform},Eo=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),To=Eo("deg"),Oo=Eo("%"),Io=Eo("px"),Ao=Eo("vh"),ko=Eo("vw"),So={...Oo,parse:e=>Oo.parse(e)/100,transform:e=>Oo.transform(100*e)},_o={test:xo("hsl","hue"),parse:wo("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Oo.transform(vo(t))+", "+Oo.transform(vo(n))+", "+vo(go.transform(r))+")"},Co={test:e=>jo.test(e)||Do.test(e)||_o.test(e),parse:e=>jo.test(e)?jo.parse(e):_o.test(e)?_o.parse(e):Do.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?jo.transform(e):_o.transform(e)},zo=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Lo="number",Po="color",Uo=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ro(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let a=0;const i=t.replace(Uo,e=>(Co.test(e)?(r.color.push(a),o.push(Po),n.push(Co.parse(e))):e.startsWith("var(")?(r.var.push(a),o.push("var"),n.push(e)):(r.number.push(a),o.push(Lo),n.push(parseFloat(e))),++a,"${}")).split("${}");return{values:n,split:i,indexes:r,types:o}}function Qo(e){return Ro(e).values}function Yo(e){const{split:t,types:n}=Ro(e),r=t.length;return e=>{let o="";for(let a=0;a<r;a++)if(o+=t[a],void 0!==e[a]){const t=n[a];o+=t===Lo?vo(e[a]):t===Po?Co.transform(e[a]):e[a]}return o}}const Bo=e=>"number"==typeof e?0:e,Fo={test:function(e){var t,n;return isNaN(e)&&"string"==typeof e&&((null===(t=e.match(bo))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(zo))||void 0===n?void 0:n.length)||0)>0},parse:Qo,createTransformer:Yo,getAnimatableNone:function(e){const t=Qo(e);return Yo(e)(t.map(Bo))}},Wo=new Set(["brightness","contrast","saturate","opacity"]);function Vo(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(bo)||[];if(!r)return e;const o=n.replace(r,"");let a=Wo.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+o+")"}const $o=/\b([a-z-]*)\(.*?\)/gu,Ho={...Fo,getAnimatableNone:e=>{const t=e.match($o);return t?t.map(Vo).join(" "):e}},Go={borderWidth:Io,borderTopWidth:Io,borderRightWidth:Io,borderBottomWidth:Io,borderLeftWidth:Io,borderRadius:Io,radius:Io,borderTopLeftRadius:Io,borderTopRightRadius:Io,borderBottomRightRadius:Io,borderBottomLeftRadius:Io,width:Io,maxWidth:Io,height:Io,maxHeight:Io,top:Io,right:Io,bottom:Io,left:Io,padding:Io,paddingTop:Io,paddingRight:Io,paddingBottom:Io,paddingLeft:Io,margin:Io,marginTop:Io,marginRight:Io,marginBottom:Io,marginLeft:Io,backgroundPositionX:Io,backgroundPositionY:Io},Zo={rotate:To,rotateX:To,rotateY:To,rotateZ:To,scale:yo,scaleX:yo,scaleY:yo,scaleZ:yo,skew:To,skewX:To,skewY:To,distance:Io,translateX:Io,translateY:Io,translateZ:Io,x:Io,y:Io,z:Io,perspective:Io,transformPerspective:Io,opacity:go,originX:So,originY:So,originZ:Io},qo={...ho,transform:Math.round},Ko={...Go,...Zo,zIndex:qo,size:Io,fillOpacity:go,strokeOpacity:go,numOctaves:qo},Xo={...Ko,color:Co,backgroundColor:Co,outlineColor:Co,fill:Co,stroke:Co,borderColor:Co,borderTopColor:Co,borderRightColor:Co,borderBottomColor:Co,borderLeftColor:Co,filter:Ho,WebkitFilter:Ho},Jo=e=>Xo[e];function ea(e,t){let n=Jo(e);return n!==Ho&&(n=Fo),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const ta=new Set(["auto","none","0"]),na=e=>e===ho||e===Io,ra=(e,t)=>parseFloat(e.split(", ")[t]),oa=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return ra(o[1],t);{const t=r.match(/^matrix\((.+)\)$/u);return t?ra(t[1],e):0}},aa=new Set(["x","y","z"]),ia=Or.filter(e=>!aa.has(e)),sa={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:oa(4,13),y:oa(5,14)};sa.translateX=sa.x,sa.translateY=sa.y;const la=new Set;let ca=!1,ua=!1;function da(){if(ua){const e=Array.from(la).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{const t=function(e){const t=[];return ia.forEach(n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();const t=n.get(e);t&&t.forEach(([t,n])=>{var r;null===(r=e.getValue(t))||void 0===r||r.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}ua=!1,ca=!1,la.forEach(e=>e.complete()),la.clear()}function ma(){la.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ua=!0)})}class pa{constructor(e,t,n,r,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(la.add(this),ca||(ca=!0,Cr.read(ma),Cr.resolveKeyframes(da))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;for(let o=0;o<e.length;o++)if(null===e[o])if(0===o){const o=null==r?void 0:r.get(),a=e[e.length-1];if(void 0!==o)e[0]=o;else if(n&&t){const r=n.readValue(t,a);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=a),r&&void 0===o&&r.set(e[0])}else e[o]=e[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),la.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,la.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let fa=Tr,ha=Tr;const ga=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),ya=e=>t=>"string"==typeof t&&t.startsWith(e),va=ya("--"),ba=ya("var(--"),Ma=e=>!!ba(e)&&xa.test(e.split("/*")[0].trim()),xa=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,wa=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Na(e,t,n=1){ha(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=function(e){const t=wa.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${null!=n?n:r}`,o]}(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const e=a.trim();return ga(e)?parseFloat(e):e}return Ma(o)?Na(o,t,n+1):o}const ja=e=>t=>t.test(e),Da=[ho,Io,Oo,To,ko,Ao,{test:e=>"auto"===e,parse:e=>e}],Ea=e=>Da.find(ja(e));class Ta extends pa{constructor(e,t,n,r,o){super(e,t,n,r,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if("string"==typeof r&&(r=r.trim(),Ma(r))){const o=Na(r,t.current);void 0!==o&&(e[n]=o),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Ar.has(n)||2!==e.length)return;const[r,o]=e,a=Ea(r),i=Ea(o);if(a!==i)if(na(a)&&na(i))for(let t=0;t<e.length;t++){const n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)po(e[t])&&n.push(t);n.length&&function(e,t,n){let r,o=0;for(;o<e.length&&!r;){const t=e[o];"string"==typeof t&&!ta.has(t)&&Ro(t).values.length&&(r=e[o]),o++}if(r&&n)for(const o of t)e[o]=ea(n,r)}(e,n,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=sa[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){var e;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const a=r.length-1,i=r[a];r[a]=sa[n](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==i&&void 0===this.finalKeyframe&&(this.finalKeyframe=i),(null===(e=this.removedTransforms)||void 0===e?void 0:e.length)&&this.removedTransforms.forEach(([e,n])=>{t.getValue(e).set(n)}),this.resolveNoneKeyframes()}}const Oa=(e,t)=>!("zIndex"===t||"number"!=typeof e&&!Array.isArray(e)&&("string"!=typeof e||!Fo.test(e)&&"0"!==e||e.startsWith("url(")));function Ia(e,t,n,r){const o=e[0];if(null===o)return!1;if("display"===t||"visibility"===t)return!0;const a=e[e.length-1],i=Oa(o,t),s=Oa(a,t);return fa(i===s,`You are trying to animate ${t} from "${o}" to "${a}". ${o} is not an animatable value - to enable this animation set ${o} to a value animatable to ${a} via the \`style\` property.`),!(!i||!s)&&(function(e){const t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||nr(n))&&r)}const Aa=e=>null!==e;function ka(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(Aa),a=t&&"loop"!==n&&t%2==1?0:o.length-1;return a&&void 0!==r?r:o[a]}class Sa{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:a="loop",...i}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Qr.now(),this.options={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:o,repeatType:a,...i},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(ma(),da()),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=Qr.now(),this.hasAttemptedResolve=!0;const{name:n,type:r,velocity:o,delay:a,onComplete:i,onUpdate:s,isGenerator:l}=this.options;if(!l&&!Ia(e,n,r,o)){if(!a)return s&&s(ka(e,this.options,t)),i&&i(),void this.resolveFinishedPromise();this.options.duration=0}const c=this.initPlayback(e,t);!1!==c&&(this._resolved={keyframes:e,finalKeyframe:t,...c},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}const _a=(e,t,n)=>e+(t-e)*n;function Ca(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function za(e,t){return n=>n>0?t:e}const La=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},Pa=[Do,jo,_o];function Ua(e){const t=(n=e,Pa.find(e=>e.test(n)));var n;if(fa(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`),!Boolean(t))return!1;let r=t.parse(e);return t===_o&&(r=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,a=0,i=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;o=Ca(s,r,e+1/3),a=Ca(s,r,e),i=Ca(s,r,e-1/3)}else o=a=i=n;return{red:Math.round(255*o),green:Math.round(255*a),blue:Math.round(255*i),alpha:r}}(r)),r}const Ra=(e,t)=>{const n=Ua(e),r=Ua(t);if(!n||!r)return za(e,t);const o={...n};return e=>(o.red=La(n.red,r.red,e),o.green=La(n.green,r.green,e),o.blue=La(n.blue,r.blue,e),o.alpha=_a(n.alpha,r.alpha,e),jo.transform(o))},Qa=(e,t)=>n=>t(e(n)),Ya=(...e)=>e.reduce(Qa),Ba=new Set(["none","hidden"]);function Fa(e,t){return n=>_a(e,t,n)}function Wa(e){return"number"==typeof e?Fa:"string"==typeof e?Ma(e)?za:Co.test(e)?Ra:Ha:Array.isArray(e)?Va:"object"==typeof e?Co.test(e)?Ra:$a:za}function Va(e,t){const n=[...e],r=n.length,o=e.map((e,n)=>Wa(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}}function $a(e,t){const n={...e,...t},r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=Wa(e[o])(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}}const Ha=(e,t)=>{const n=Fo.createTransformer(t),r=Ro(e),o=Ro(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?Ba.has(e)&&!o.values.length||Ba.has(t)&&!r.values.length?function(e,t){return Ba.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):Ya(Va(function(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const i=t.types[a],s=e.indexes[i][o[i]],l=null!==(n=e.values[s])&&void 0!==n?n:0;r[a]=l,o[i]++}return r}(r,o),o.values),n):(fa(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),za(e,t))};function Ga(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?_a(e,t,n):Wa(e)(e,t)}function Za(e,t,n){const r=Math.max(t-5,0);return Wr(n-e(r),t-r)}const qa=.01,Ka=2,Xa=.005,Ja=.5;const ei=12;function ti(e,t){return e*Math.sqrt(1-t*t)}const ni=["duration","bounce"],ri=["stiffness","damping","mass"];function oi(e,t){return t.some(t=>void 0!==e[t])}function ai(e=.3,t=.3){const n="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const a=n.keyframes[0],i=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:l,damping:c,mass:u,duration:d,velocity:m,isResolvedFromDuration:p}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!oi(e,ri)&&oi(e,ni))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(1.2*n),o=r*r,a=2*fo(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:1,stiffness:o,damping:a}}else{const n=function({duration:e=800,bounce:t=.3,velocity:n=0,mass:r=1}){let o,a;fa(e<=Dr(10),"Spring duration must be 10 seconds or less");let i=1-t;i=fo(.05,1,i),e=fo(.01,10,Er(e)),i<1?(o=t=>{const r=t*i,o=r*e;return.001-(r-n)/ti(t,i)*Math.exp(-o)},a=t=>{const r=t*i*e,a=r*n+n,s=Math.pow(i,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=ti(Math.pow(t,2),i);return(.001-o(t)>0?-1:1)*((a-s)*l)/c}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,a=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let n=1;n<ei;n++)r-=e(r)/t(r);return r}(o,a,5/e);if(e=Dr(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*r;return{stiffness:t,damping:2*i*Math.sqrt(r*t),duration:e}}}(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}({...n,velocity:-Er(n.velocity||0)}),f=m||0,h=c/(2*Math.sqrt(l*u)),g=i-a,y=Er(Math.sqrt(l/u)),v=Math.abs(g)<5;let b;if(r||(r=v?qa:Ka),o||(o=v?Xa:Ja),h<1){const e=ti(y,h);b=t=>{const n=Math.exp(-h*y*t);return i-n*((f+h*y*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}}else if(1===h)b=e=>i-Math.exp(-y*e)*(g+(f+y*g)*e);else{const e=y*Math.sqrt(h*h-1);b=t=>{const n=Math.exp(-h*y*t),r=Math.min(e*t,300);return i-n*((f+h*y*g)*Math.sinh(r)+e*g*Math.cosh(r))/e}}const M={calculatedDuration:p&&d||null,next:e=>{const t=b(e);if(p)s.done=e>=d;else{let n=0;h<1&&(n=0===e?Dr(f):Za(b,e,t));const a=Math.abs(n)<=r,l=Math.abs(i-t)<=o;s.done=a&&l}return s.value=s.done?i:t,s},toString:()=>{const e=Math.min(tr(M),er),t=cr(t=>M.next(e*t).value,e,30);return e+"ms "+t}};return M}function ii({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:a=500,modifyTarget:i,min:s,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],m={done:!1,value:d},p=e=>void 0===s?l:void 0===l||Math.abs(s-e)<Math.abs(l-e)?s:l;let f=n*t;const h=d+f,g=void 0===i?h:i(h);g!==h&&(f=g-d);const y=e=>-f*Math.exp(-e/r),v=e=>g+y(e),b=e=>{const t=y(e),n=v(e);m.done=Math.abs(t)<=c,m.value=m.done?g:n};let M,x;const w=e=>{var t;t=m.value,(void 0!==s&&t<s||void 0!==l&&t>l)&&(M=e,x=ai({keyframes:[m.value,p(m.value)],velocity:Za(v,e,m.value),damping:o,stiffness:a,restDelta:c,restSpeed:u}))};return w(0),{calculatedDuration:null,next:e=>{let t=!1;return x||void 0!==M||(t=!0,b(e),w(e)),void 0!==M&&e>=M?x.next(e-M):(!t&&b(e),m)}}}const si=to(.42,0,1,1),li=to(0,0,.58,1),ci=to(.42,0,.58,1),ui={linear:Tr,easeIn:si,easeInOut:ci,easeOut:li,circIn:lo,circInOut:uo,circOut:co,backIn:ao,backInOut:io,backOut:oo,anticipate:so},di=e=>{if(or(e)){ha(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return to(t,n,r,o)}return"string"==typeof e?(ha(void 0!==ui[e],`Invalid easing type '${e}'`),ui[e]):e};function mi({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=(e=>Array.isArray(e)&&"number"!=typeof e[0])(r)?r.map(di):di(r),a={done:!1,value:t[0]},i=function(e,t){return e.map(e=>e*t)}(n&&n.length===t.length?n:function(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=lr(0,t,r);e.push(_a(n,1,o))}}(t,e.length-1),t}(t),e),s=function(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const a=e.length;if(ha(a===t.length,"Both input and output ranges must be the same length"),1===a)return()=>t[0];if(2===a&&t[0]===t[1])return()=>t[1];const i=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=function(e,t,n){const r=[],o=n||Ga,a=e.length-1;for(let n=0;n<a;n++){let a=o(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]||Tr:t;a=Ya(e,a)}r.push(a)}return r}(t,r,o),l=s.length,c=n=>{if(i&&n<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(n<e[r+1]);r++);const o=lr(e[r],e[r+1],n);return s[r](o)};return n?t=>c(fo(e[0],e[a-1],t)):c}(i,t,{ease:Array.isArray(o)?o:(l=t,c=o,l.map(()=>c||ci).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(a.value=s(t),a.done=t>=e,a)}}const pi=e=>{const t=({timestamp:t})=>e(t);return{start:()=>Cr.update(t,!0),stop:()=>zr(t),now:()=>Lr.isProcessing?Lr.timestamp:Qr.now()}},fi={decay:ii,inertia:ii,tween:mi,keyframes:mi,spring:ai},hi=e=>e/100;class gi extends Sa{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();const{onStop:e}=this.options;e&&e()};const{name:t,motionValue:n,element:r,keyframes:o}=this.options,a=(null==r?void 0:r.KeyframeResolver)||pa;this.resolver=new a(o,(e,t)=>this.onKeyframesResolved(e,t),t,n,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:t="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:o,velocity:a=0}=this.options,i=nr(t)?t:fi[t]||mi;let s,l;i!==mi&&"number"!=typeof e[0]&&(s=Ya(hi,Ga(e[0],e[1])),e=[0,100]);const c=i({...this.options,keyframes:e});"mirror"===o&&(l=i({...this.options,keyframes:[...e].reverse(),velocity:-a})),null===c.calculatedDuration&&(c.calculatedDuration=tr(c));const{calculatedDuration:u}=c,d=u+r;return{generator:c,mirroredGenerator:l,mapPercentToKeyframes:s,calculatedDuration:u,resolvedDuration:d,totalDuration:d*(n+1)-r}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,t=!1){const{resolved:n}=this;if(!n){const{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}const{finalKeyframe:r,generator:o,mirroredGenerator:a,mapPercentToKeyframes:i,keyframes:s,calculatedDuration:l,totalDuration:c,resolvedDuration:u}=n;if(null===this.startTime)return o.next(0);const{delay:d,repeat:m,repeatType:p,repeatDelay:f,onUpdate:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-c/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const g=this.currentTime-d*(this.speed>=0?1:-1),y=this.speed>=0?g<0:g>c;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=c);let v=this.currentTime,b=o;if(m){const e=Math.min(this.currentTime,c)/u;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,m+1),Boolean(t%2)&&("reverse"===p?(n=1-n,f&&(n-=f/u)):"mirror"===p&&(b=a)),v=fo(0,1,n)*u}const M=y?{done:!1,value:s[0]}:b.next(v);i&&(M.value=i(M.value));let{done:x}=M;y||null===l||(x=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const w=null===this.holdTime&&("finished"===this.state||"running"===this.state&&x);return w&&void 0!==r&&(M.value=ka(s,this.options,r)),h&&h(M.value),w&&this.finish(),M}get duration(){const{resolved:e}=this;return e?Er(e.calculatedDuration):0}get time(){return Er(this.currentTime)}set time(e){e=Dr(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=Er(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:e=pi,onPlay:t,startTime:n}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),t&&t();const r=this.driver.now();null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=r):this.startTime=null!=n?n:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;this._resolved?(this.state="paused",this.holdTime=null!==(e=this.currentTime)&&void 0!==e?e:0):this.pendingPlayState="paused"}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const yi=new Set(["opacity","clipPath","filter","transform"]),vi=Zn(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),bi={anticipate:so,backInOut:io,circInOut:uo};class Mi extends Sa{constructor(e){super(e);const{name:t,motionValue:n,element:r,keyframes:o}=this.options;this.resolver=new Ta(o,(e,t)=>this.onKeyframesResolved(e,t),t,n,r),this.resolver.scheduleResolve()}initPlayback(e,t){let{duration:n=300,times:r,ease:o,type:a,motionValue:i,name:s,startTime:l}=this.options;if(!i.owner||!i.owner.current)return!1;var c;if("string"==typeof o&&sr()&&o in bi&&(o=bi[o]),nr((c=this.options).type)||"spring"===c.type||!ur(c.ease)){const{onComplete:t,onUpdate:i,motionValue:s,element:l,...c}=this.options,u=function(e,t){const n=new gi({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let a=0;for(;!r.done&&a<2e4;)r=n.sample(a),o.push(r.value),a+=10;return{times:void 0,keyframes:o,duration:a-10,ease:"linear"}}(e,c);1===(e=u.keyframes).length&&(e[1]=e[0]),n=u.duration,r=u.times,o=u.ease,a="keyframes"}const u=function(e,t,n,{delay:r=0,duration:o=300,repeat:a=0,repeatType:i="loop",ease:s="easeInOut",times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=pr(s,o);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:a+1,direction:"reverse"===i?"alternate":"normal"})}(i.owner.current,s,e,{...this.options,duration:n,times:r,ease:o});return u.startTime=null!=l?l:this.calcStartTime(),this.pendingTimeline?(rr(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:n}=this.options;i.set(ka(e,this.options,t)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:n,times:r,type:a,ease:o,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:t}=e;return Er(t)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:t}=e;return Er(t.currentTime||0)}set time(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.currentTime=Dr(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:t}=e;return t.playbackRate}set speed(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:t}=e;return t.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:t}=e;return t.startTime}attachTimeline(e){if(this._resolved){const{resolved:t}=this;if(!t)return Tr;const{animation:n}=t;rr(n,e)}else this.pendingTimeline=e;return Tr}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:t,keyframes:n,duration:r,type:o,ease:a,times:i}=e;if("idle"===t.playState||"finished"===t.playState)return;if(this.time){const{motionValue:e,onUpdate:t,onComplete:s,element:l,...c}=this.options,u=new gi({...c,keyframes:n,duration:r,type:o,ease:a,times:i,isGenerator:!0}),d=Dr(this.time);e.setWithVelocity(u.sample(d-10).value,u.sample(d).value,10)}const{onStop:s}=this.options;s&&s(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:a,type:i}=e;if(!(t&&t.owner&&t.owner.current instanceof HTMLElement))return!1;const{onUpdate:s,transformTemplate:l}=t.owner.getProps();return vi()&&n&&yi.has(n)&&!s&&!l&&!r&&"mirror"!==o&&0!==a&&"inertia"!==i}}const xi={type:"spring",stiffness:500,damping:25,restSpeed:10},wi={type:"keyframes",duration:.8},Ni={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ji=(e,{keyframes:t})=>t.length>2?wi:Ir.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:xi:Ni,Di=(e,t,n,r={},o,a)=>i=>{const s=Jn(r,e)||{},l=s.delay||r.delay||0;let{elapsed:c=0}=r;c-=Dr(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-c,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{i(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:o};(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:a,repeatType:i,repeatDelay:s,from:l,elapsed:c,...u}){return!!Object.keys(u).length})(s)||(u={...u,...ji(e,u)}),u.duration&&(u.duration=Dr(u.duration)),u.repeatDelay&&(u.repeatDelay=Dr(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from);let d=!1;if((!1===u.type||0===u.duration&&!u.repeatDelay)&&(u.duration=0,0===u.delay&&(d=!0)),d&&!a&&void 0!==t.get()){const e=ka(u.keyframes,s);if(void 0!==e)return Cr.update(()=>{u.onUpdate(e),u.onComplete()}),new Xn([])}return!a&&Mi.supports(u)?new Mi(u):new gi(u)};function Ei({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function Ti(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var a;let{transition:i=e.getDefaultTransition(),transitionEnd:s,...l}=t;r&&(i=r);const c=[],u=o&&e.animationState&&e.animationState.getState()[o];for(const t in l){const r=e.getValue(t,null!==(a=e.latestValues[t])&&void 0!==a?a:null),o=l[t];if(void 0===o||u&&Ei(u,t))continue;const s={delay:n,...Jn(i||{},t)};let d=!1;if(window.MotionHandoffAnimation){const n=Jr(e);if(n){const e=window.MotionHandoffAnimation(n,t,Cr);null!==e&&(s.startTime=e,d=!0)}}qr(e,t),r.start(Di(t,r,o,e.shouldReduceMotion&&Ar.has(t)?{type:!1}:s,e,d));const m=r.animation;m&&c.push(m)}return s&&Promise.all(c).then(()=>{Cr.update(()=>{s&&function(e,t){const n=$n(e,t);let{transitionEnd:r={},transition:o={},...a}=n||{};a={...a,...r};for(const t in a)Gr(e,t,kr(a[t]))}(e,s)})}),c}function Oi(e,t,n={}){var r;const o=$n(e,t,"exit"===n.type?null===(r=e.presenceContext)||void 0===r?void 0:r.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(a=n.transitionOverride);const i=o?()=>Promise.all(Ti(e,o,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:o=0,staggerChildren:i,staggerDirection:s}=a;return function(e,t,n=0,r=0,o=1,a){const i=[],s=(e.variantChildren.size-1)*r,l=1===o?(e=0)=>e*r:(e=0)=>s-e*r;return Array.from(e.variantChildren).sort(Ii).forEach((e,r)=>{e.notify("AnimationStart",t),i.push(Oi(e,t,{...a,delay:n+l(r)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(i)}(e,t,o+r,i,s,n)}:()=>Promise.resolve(),{when:l}=a;if(l){const[e,t]="beforeChildren"===l?[i,s]:[s,i];return e().then(()=>t())}return Promise.all([i(),s(n.delay)])}function Ii(e,t){return e.sortNodePosition(t)}const Ai=Gn.length;function ki(e){if(!e)return;if(!e.isControllingVariants){const t=e.parent&&ki(e.parent)||{};return void 0!==e.props.initial&&(t.initial=e.props.initial),t}const t={};for(let n=0;n<Ai;n++){const r=Gn[n],o=e.props[r];(Fn(o)||!1===o)&&(t[r]=o)}return t}const Si=[...Hn].reverse(),_i=Hn.length;function Ci(e){let t=function(e){return t=>Promise.all(t.map(({animation:t,options:n})=>function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){const o=t.map(t=>Oi(e,t,n));r=Promise.all(o)}else if("string"==typeof t)r=Oi(e,t,n);else{const o="function"==typeof t?$n(e,t,n.custom):t;r=Promise.all(Ti(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}(e,t,n)))}(e),n=Pi(),r=!0;const o=t=>(n,r)=>{var o;const a=$n(e,r,"exit"===t?null===(o=e.presenceContext)||void 0===o?void 0:o.custom:void 0);if(a){const{transition:e,transitionEnd:t,...r}=a;n={...n,...r,...t}}return n};function a(a){const{props:i}=e,s=ki(e.parent)||{},l=[],c=new Set;let u={},d=1/0;for(let t=0;t<_i;t++){const m=Si[t],p=n[m],f=void 0!==i[m]?i[m]:s[m],h=Fn(f),g=m===a?p.isActive:null;!1===g&&(d=t);let y=f===s[m]&&f!==i[m]&&h;if(y&&r&&e.manuallyAnimateOnMount&&(y=!1),p.protectedKeys={...u},!p.isActive&&null===g||!f&&!p.prevProp||Qn(f)||"boolean"==typeof f)continue;const v=zi(p.prevProp,f);let b=v||m===a&&p.isActive&&!y&&h||t>d&&h,M=!1;const x=Array.isArray(f)?f:[f];let w=x.reduce(o(m),{});!1===g&&(w={});const{prevResolvedValues:N={}}=p,j={...N,...w},D=t=>{b=!0,c.has(t)&&(M=!0,c.delete(t)),p.needsAnimating[t]=!0;const n=e.getValue(t);n&&(n.liveStyle=!1)};for(const e in j){const t=w[e],n=N[e];if(u.hasOwnProperty(e))continue;let r=!1;r=Yn(t)&&Yn(n)?!Bn(t,n):t!==n,r?null!=t?D(e):c.add(e):void 0!==t&&c.has(e)?D(e):p.protectedKeys[e]=!0}p.prevProp=f,p.prevResolvedValues=w,p.isActive&&(u={...u,...w}),r&&e.blockInitialAnimation&&(b=!1),b&&(!y||!v||M)&&l.push(...x.map(e=>({animation:e,options:{type:m}})))}if(c.size){const t={};c.forEach(n=>{const r=e.getBaseTarget(n),o=e.getValue(n);o&&(o.liveStyle=!0),t[n]=null!=r?r:null}),l.push({animation:t})}let m=Boolean(l.length);return!r||!1!==i.initial&&i.initial!==i.animate||e.manuallyAnimateOnMount||(m=!1),r=!1,m?t(l):Promise.resolve()}return{animateChanges:a,setActive:function(t,r){var o;if(n[t].isActive===r)return Promise.resolve();null===(o=e.variantChildren)||void 0===o||o.forEach(e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)}),n[t].isActive=r;const i=a(t);for(const e in n)n[e].protectedKeys={};return i},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=Pi(),r=!0}}}function zi(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!Bn(t,e)}function Li(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Pi(){return{animate:Li(!0),whileInView:Li(),whileHover:Li(),whileTap:Li(),whileDrag:Li(),whileFocus:Li(),exit:Li()}}class Ui{constructor(e){this.isMounted=!1,this.node=e}update(){}}let Ri=0;const Qi={animation:{Feature:class extends Ui{constructor(e){super(e),e.animationState||(e.animationState=Ci(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Qn(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null===(e=this.unmountControls)||void 0===e||e.call(this)}}},exit:{Feature:class extends Ui{constructor(){super(...arguments),this.id=Ri++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>t(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}};function Yi(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Bi(e){return{point:{x:e.pageX,y:e.pageY}}}function Fi(e,t,n,r){return Yi(e,t,(e=>t=>br(t)&&e(t,Bi(t)))(n),r)}const Wi=(e,t)=>Math.abs(e-t);class Vi{constructor(e,t,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=Gi(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=Wi(e.x,t.x),r=Wi(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const{point:r}=e,{timestamp:o}=Lr;this.history.push({...r,timestamp:o});const{onStart:a,onMove:i}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),i&&i(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=$i(t,this.transformPagePoint),Cr.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:n,onSessionEnd:r,resumeAnimation:o}=this.handlers;if(this.dragSnapToOrigin&&o&&o(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const a=Gi("pointercancel"===e.type?this.lastMoveEventInfo:$i(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!br(e))return;this.dragSnapToOrigin=o,this.handlers=t,this.transformPagePoint=n,this.contextWindow=r||window;const a=$i(Bi(e),this.transformPagePoint),{point:i}=a,{timestamp:s}=Lr;this.history=[{...i,timestamp:s}];const{onSessionStart:l}=t;l&&l(e,Gi(a,this.history)),this.removeListeners=Ya(Fi(this.contextWindow,"pointermove",this.handlePointerMove),Fi(this.contextWindow,"pointerup",this.handlePointerUp),Fi(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),zr(this.updatePoint)}}function $i(e,t){return t?{point:t(e.point)}:e}function Hi(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Gi({point:e},t){return{point:e,delta:Hi(e,qi(t)),offset:Hi(e,Zi(t)),velocity:Ki(t,.1)}}function Zi(e){return e[0]}function qi(e){return e[e.length-1]}function Ki(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=qi(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Dr(t)));)n--;if(!r)return{x:0,y:0};const a=Er(o.timestamp-r.timestamp);if(0===a)return{x:0,y:0};const i={x:(o.x-r.x)/a,y:(o.y-r.y)/a};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function Xi(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Ji(e){return e.max-e.min}function es(e,t,n,r=.5){e.origin=r,e.originPoint=_a(t.min,t.max,e.origin),e.scale=Ji(n)/Ji(t),e.translate=_a(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function ts(e,t,n,r){es(e.x,t.x,n.x,r?r.originX:void 0),es(e.y,t.y,n.y,r?r.originY:void 0)}function ns(e,t,n){e.min=n.min+t.min,e.max=e.min+Ji(t)}function rs(e,t,n){e.min=t.min-n.min,e.max=e.min+Ji(t)}function os(e,t,n){rs(e.x,t.x,n.x),rs(e.y,t.y,n.y)}function as(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function is(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}const ss=.35;function ls(e,t,n){return{min:cs(e,t),max:cs(e,n)}}function cs(e,t){return"number"==typeof e?e:e[t]||0}const us=()=>({x:{min:0,max:0},y:{min:0,max:0}});function ds(e){return[e("x"),e("y")]}function ms({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function ps(e){return void 0===e||1===e}function fs({scale:e,scaleX:t,scaleY:n}){return!ps(e)||!ps(t)||!ps(n)}function hs(e){return fs(e)||gs(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function gs(e){return ys(e.x)||ys(e.y)}function ys(e){return e&&"0%"!==e}function vs(e,t,n){return n+t*(e-n)}function bs(e,t,n,r,o){return void 0!==o&&(e=vs(e,o,r)),vs(e,n,r)+t}function Ms(e,t=0,n=1,r,o){e.min=bs(e.min,t,n,r,o),e.max=bs(e.max,t,n,r,o)}function xs(e,{x:t,y:n}){Ms(e.x,t.translate,t.scale,t.originPoint),Ms(e.y,n.translate,n.scale,n.originPoint)}const ws=.999999999999,Ns=1.0000000000001;function js(e,t){e.min=e.min+t,e.max=e.max+t}function Ds(e,t,n,r,o=.5){Ms(e,t,n,_a(e.min,e.max,o),r)}function Es(e,t){Ds(e.x,t.x,t.scaleX,t.scale,t.originX),Ds(e.y,t.y,t.scaleY,t.scale,t.originY)}function Ts(e,t){return ms(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}const Os=({current:e})=>e?e.ownerDocument.defaultView:null,Is=new WeakMap;class As{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:r}=this.getProps();this.panSession=new Vi(e,{onSessionStart:e=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(Bi(e).point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===(a=n)||"y"===a?fr[a]?null:(fr[a]=!0,()=>{fr[a]=!1}):fr.x||fr.y?null:(fr.x=fr.y=!0,()=>{fr.x=fr.y=!1}),!this.openDragLock))return;var a;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ds(e=>{let t=this.getAxisMotionValue(e).get()||0;if(Oo.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];r&&(t=Ji(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),o&&Cr.postRender(()=>o(e,t)),qr(this.visualElement,"transform");const{animationState:i}=this.visualElement;i&&i.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;const{offset:i}=t;if(r&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(i),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,i),this.updateAxis("y",t.point,i),this.visualElement.render(),a&&a(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>ds(e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,contextWindow:Os(this.visualElement)})}stop(e,t){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:r}=t;this.startAnimation(r);const{onDragEnd:o}=this.getProps();o&&Cr.postRender(()=>o(e,t))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!ks(e,r,this.currentDirection))return;const o=this.getAxisMotionValue(e);let a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?_a(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?_a(n,e,r.max):Math.min(e,n)),e}(a,this.constraints[e],this.elastic[e])),o.set(a)}resolveConstraints(){var e;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,o=this.constraints;t&&Xi(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!r)&&function(e,{top:t,left:n,bottom:r,right:o}){return{x:as(e.x,n,o),y:as(e.y,t,r)}}(r.layoutBox,t),this.elastic=function(e=ss){return!1===e?e=0:!0===e&&(e=ss),{x:ls(e,"left","right"),y:ls(e,"top","bottom")}}(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&ds(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(r.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Xi(e))return!1;const n=e.current;ha(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=function(e,t,n){const r=Ts(e,n),{scroll:o}=t;return o&&(js(r.x,o.offset.x),js(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let a=function(e,t){return{x:is(e.x,t.x),y:is(e.y,t.y)}}(r.layout.layoutBox,o);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=ms(e))}return a}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:i}=this.getProps(),s=this.constraints||{},l=ds(i=>{if(!ks(i,t,this.currentDirection))return;let l=s&&s[i]||{};a&&(l={min:0,max:0});const c=r?200:1e6,u=r?40:1e7,d={type:"inertia",velocity:n?e[i]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(i,d)});return Promise.all(l).then(i)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return qr(this.visualElement,e),n.start(Di(e,n,0,t,this.visualElement,!1))}stopAnimation(){ds(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){ds(e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()})}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){const t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){ds(t=>{const{drag:n}=this.getProps();if(!ks(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:a}=r.layout.layoutBox[t];o.set(e[t]-_a(n,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Xi(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};ds(e=>{const t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){const n=t.get();r[e]=function(e,t){let n=.5;const r=Ji(e),o=Ji(t);return o>r?n=lr(t.min,t.max-r,e.min):r>o&&(n=lr(e.min,e.max-o,t.min)),fo(0,1,n)}({min:n,max:n},this.constraints[e])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),ds(t=>{if(!ks(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:a}=this.constraints[t];n.set(_a(o,a,r[t]))})}addListeners(){if(!this.visualElement.current)return;Is.set(this.visualElement,this);const e=Fi(this.visualElement.current,"pointerdown",e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),t=()=>{const{dragConstraints:e}=this.getProps();Xi(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),Cr.read(t);const o=Yi(window,"resize",()=>this.scalePositionWithinConstraints()),a=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(ds(t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{o(),e(),r(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:a=ss,dragMomentum:i=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:a,dragMomentum:i}}}function ks(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const Ss=e=>(t,n)=>{e&&Cr.postRender(()=>e(t,n))},_s=(0,a.createContext)({}),Cs={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function zs(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ls={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!Io.test(e))return e;e=parseFloat(e)}return`${zs(e,t.target.x)}% ${zs(e,t.target.y)}%`}},Ps={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Fo.parse(e);if(o.length>5)return r;const a=Fo.createTransformer(e),i="number"!=typeof o[0]?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;o[0+i]/=s,o[1+i]/=l;const c=_a(s,l,.5);return"number"==typeof o[2+i]&&(o[2+i]/=c),"number"==typeof o[3+i]&&(o[3+i]/=c),a(o)}},Us={},{schedule:Rs,cancel:Qs}=_r(queueMicrotask,!1);class Ys extends a.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;var a;a=Fs,Object.assign(Us,a),o&&(t.group&&t.group.add(o),n&&n.register&&r&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Cs.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:o}=this.props,a=n.projection;return a?(a.isPresent=o,r||e.layoutDependency!==t||void 0===t?a.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?a.promote():a.relegate()||Cr.postRender(()=>{const e=a.getStack();e&&e.members.length||this.safeToRemove()})),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Rs.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Bs(e){const[t,n]=Sn(),r=(0,a.useContext)(jn);return(0,Ge.jsx)(Ys,{...e,layoutGroup:r,switchLayoutGroup:(0,a.useContext)(_s),isPresent:t,safeToRemove:n})}const Fs={borderRadius:{...Ls,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ls,borderTopRightRadius:Ls,borderBottomLeftRadius:Ls,borderBottomRightRadius:Ls,boxShadow:Ps},Ws=(e,t)=>e.depth-t.depth;class Vs{constructor(){this.children=[],this.isDirty=!1}add(e){Yr(this.children,e),this.isDirty=!0}remove(e){Br(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Ws),this.isDirty=!1,this.children.forEach(e)}}function $s(e){const t=Zr(e)?e.get():e;return n=t,Boolean(n&&"object"==typeof n&&n.mix&&n.toValue)?t.toValue():t;var n}const Hs=["TopLeft","TopRight","BottomLeft","BottomRight"],Gs=Hs.length,Zs=e=>"string"==typeof e?parseFloat(e):e,qs=e=>"number"==typeof e||Io.test(e);function Ks(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const Xs=el(0,.5,co),Js=el(.5,.95,Tr);function el(e,t,n){return r=>r<e?0:r>t?1:n(lr(e,t,r))}function tl(e,t){e.min=t.min,e.max=t.max}function nl(e,t){tl(e.x,t.x),tl(e.y,t.y)}function rl(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function ol(e,t,n,r,o){return e=vs(e-=t,1/n,r),void 0!==o&&(e=vs(e,1/o,r)),e}function al(e,t,[n,r,o],a,i){!function(e,t=0,n=1,r=.5,o,a=e,i=e){if(Oo.test(t)&&(t=parseFloat(t),t=_a(i.min,i.max,t/100)-i.min),"number"!=typeof t)return;let s=_a(a.min,a.max,r);e===a&&(s-=t),e.min=ol(e.min,t,n,s,o),e.max=ol(e.max,t,n,s,o)}(e,t[n],t[r],t[o],t.scale,a,i)}const il=["x","scaleX","originX"],sl=["y","scaleY","originY"];function ll(e,t,n,r){al(e.x,t,il,n?n.x:void 0,r?r.x:void 0),al(e.y,t,sl,n?n.y:void 0,r?r.y:void 0)}function cl(e){return 0===e.translate&&1===e.scale}function ul(e){return cl(e.x)&&cl(e.y)}function dl(e,t){return e.min===t.min&&e.max===t.max}function ml(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function pl(e,t){return ml(e.x,t.x)&&ml(e.y,t.y)}function fl(e){return Ji(e.x)/Ji(e.y)}function hl(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class gl{constructor(){this.members=[]}add(e){Yr(this.members,e),e.scheduleRender()}remove(e){if(Br(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex(t=>e===t);if(0===t)return!1;let n;for(let e=t;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const yl={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},vl="undefined"!=typeof window&&void 0!==window.MotionDebug,bl=["","X","Y","Z"],Ml={visibility:"hidden"};let xl=0;function wl(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Nl(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Jr(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Cr,!(t||r))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Nl(r)}function jl({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=xl++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,vl&&(yl.totalNodes=yl.resolvedTargetDeltas=yl.recalculatedProjection=0),this.nodes.forEach(Tl),this.nodes.forEach(Cl),this.nodes.forEach(zl),this.nodes.forEach(Ol),vl&&window.MotionDebug.record(yl)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Vs)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Fr),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,n=this.root.hasTreeAnimated){if(this.instance)return;var r;this.isSVG=(r=t)instanceof SVGElement&&"svg"!==r.tagName,this.instance=t;const{layoutId:o,layout:a,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(a||o)&&(this.isLayoutDirty=!0),e){let n;const r=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){const n=Qr.now(),r=({timestamp:o})=>{const a=o-n;a>=t&&(zr(r),e(a-t))};return Cr.read(r,!0),()=>zr(r)}(r,250),Cs.hasAnimatedSinceResize&&(Cs.hasAnimatedSinceResize=!1,this.nodes.forEach(_l))})}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&i&&(o||a)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||i.getDefaultTransition()||Yl,{onLayoutAnimationStart:a,onLayoutAnimationComplete:s}=i.getProps(),l=!this.targetLayout||!pl(this.targetLayout,r)||n,c=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);const t={...Jn(o,"layout"),onPlay:a,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||_l(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,zr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Ll),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Nl(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){const t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Al);this.isUpdating||this.nodes.forEach(kl),this.isUpdating=!1,this.nodes.forEach(Sl),this.nodes.forEach(Dl),this.nodes.forEach(El),this.clearAllSnapshots();const e=Qr.now();Lr.delta=fo(0,1e3/60,e-Lr.timestamp),Lr.timestamp=e,Lr.isProcessing=!0,Pr.update.process(Lr),Pr.preRender.process(Lr),Pr.render.process(Lr),Lr.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Rs.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Il),this.sharedNodes.forEach(Pl)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Cr.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Cr.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t){const t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!o)return;const e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!ul(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,a=r!==this.prevTransformTemplateValue;e&&(t||hs(this.latestValues)||a)&&(o(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);var r;return e&&(n=this.removeTransform(n)),Wl((r=n).x),Wl(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var e;const{visualElement:t}=this.options;if(!t)return{x:{min:0,max:0},y:{min:0,max:0}};const n=t.measureViewportBox();if(!(null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)&&!this.path.some($l)){const{scroll:e}=this.root;e&&(js(n.x,e.offset.x),js(n.y,e.offset.y))}return n}removeElementScroll(e){var t;const n={x:{min:0,max:0},y:{min:0,max:0}};if(nl(n,e),null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)return n;for(let t=0;t<this.path.length;t++){const r=this.path[t],{scroll:o,options:a}=r;r!==this.root&&o&&a.layoutScroll&&(o.wasRoot&&nl(n,e),js(n.x,o.offset.x),js(n.y,o.offset.y))}return n}applyTransform(e,t=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};nl(n,e);for(let e=0;e<this.path.length;e++){const r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&Es(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),hs(r.latestValues)&&Es(n,r.latestValues)}return hs(this.latestValues)&&Es(n,this.latestValues),n}removeTransform(e){const t={x:{min:0,max:0},y:{min:0,max:0}};nl(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance)continue;if(!hs(n.latestValues))continue;fs(n.latestValues)&&n.updateSnapshot();const r=us();nl(r,n.measurePageBox()),ll(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return hs(this.latestValues)&&ll(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Lr.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const r=Boolean(this.resumingFrom)||this!==n;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:o,layoutId:a}=this.options;if(this.layout&&(o||a)){if(this.resolvedRelativeTargetAt=Lr.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},os(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),nl(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var i,s,l;if(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),i=this.target,s=this.relativeTarget,l=this.relativeParent.target,ns(i.x,s.x,l.x),ns(i.y,s.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):nl(this.target,this.layout.layoutBox),xs(this.target,this.targetDelta)):nl(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},os(this.relativeTargetOrigin,this.target,e.target),nl(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}vl&&yl.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!fs(this.parent.latestValues)&&!gs(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),n=Boolean(this.resumingFrom)||this!==t;let r=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===Lr.timestamp&&(r=!1),r)return;const{layout:o,layoutId:a}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!o&&!a)return;nl(this.layoutCorrected,this.layout.layoutBox);const i=this.treeScale.x,s=this.treeScale.y;!function(e,t,n,r=!1){const o=n.length;if(!o)return;let a,i;t.x=t.y=1;for(let s=0;s<o;s++){a=n[s],i=a.projectionDelta;const{visualElement:o}=a.options;o&&o.props.style&&"contents"===o.props.style.display||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Es(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),i&&(t.x*=i.x.scale,t.y*=i.y.scale,xs(e,i)),r&&hs(a.latestValues)&&Es(e,a.latestValues))}t.x<Ns&&t.x>ws&&(t.x=1),t.y<Ns&&t.y>ws&&(t.y=1)}(this.layoutCorrected,this.treeScale,this.path,n),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox,t.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}});const{target:l}=t;l?(this.projectionDelta&&this.prevProjectionDelta?(rl(this.prevProjectionDelta.x,this.projectionDelta.x),rl(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),ts(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===i&&this.treeScale.y===s&&hl(this.projectionDelta.x,this.prevProjectionDelta.x)&&hl(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),vl&&yl.recalculatedProjection++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t;if(null===(t=this.options.visualElement)||void 0===t||t.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}}setAnimationOrigin(e,t=!1){const n=this.snapshot,r=n?n.latestValues:{},o={...this.latestValues},a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const i={x:{min:0,max:0},y:{min:0,max:0}},s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,u=Boolean(s&&!c&&!0===this.options.crossfade&&!this.path.some(Ql));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;Ul(a.x,e.x,n),Ul(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(os(i,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,n,r){Rl(e.x,t.x,n.x,r),Rl(e.y,t.y,n.y,r)}(this.relativeTarget,this.relativeTargetOrigin,i,n),d&&function(e,t){return dl(e.x,t.x)&&dl(e.y,t.y)}(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d={x:{min:0,max:0},y:{min:0,max:0}}),nl(d,this.relativeTarget)),s&&(this.animationValues=o,function(e,t,n,r,o,a){o?(e.opacity=_a(0,void 0!==n.opacity?n.opacity:1,Xs(r)),e.opacityExit=_a(void 0!==t.opacity?t.opacity:1,0,Js(r))):a&&(e.opacity=_a(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let o=0;o<Gs;o++){const a=`border${Hs[o]}Radius`;let i=Ks(t,a),s=Ks(n,a);void 0===i&&void 0===s||(i||(i=0),s||(s=0),0===i||0===s||qs(i)===qs(s)?(e[a]=Math.max(_a(Zs(i),Zs(s),r),0),(Oo.test(s)||Oo.test(i))&&(e[a]+="%")):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=_a(t.rotate||0,n.rotate||0,r))}(o,r,this.latestValues,n,u,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(zr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Cr.update(()=>{Cs.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=Zr(0)?0:Hr(0);return r.start(Di("",r,1e3,n)),r.animation}(0,0,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:r,latestValues:o}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&Vl(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const t=Ji(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=Ji(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}nl(t,n),Es(t,o),ts(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new gl),this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;const r={};n.z&&wl("z",e,r,this.animationValues);for(let t=0;t<bl.length;t++)wl(`rotate${bl[t]}`,e,r,this.animationValues),wl(`skew${bl[t]}`,e,r,this.animationValues);e.render();for(const t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}getProjectionStyles(e){var t,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Ml;const r={visibility:""},o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=$s(null==e?void 0:e.pointerEvents)||"",r.transform=o?o(this.latestValues,""):"none",r;const a=this.getLead();if(!this.projectionDelta||!this.layout||!a.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=$s(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!hs(this.latestValues)&&(t.transform=o?o({},""):"none",this.hasProjected=!1),t}const i=a.animationValues||a.latestValues;this.applyTransformsToTarget(),r.transform=function(e,t,n){let r="";const o=e.x.translate/t.x,a=e.y.translate/t.y,i=(null==n?void 0:n.z)||0;if((o||a||i)&&(r=`translate3d(${o}px, ${a}px, ${i}px) `),1===t.x&&1===t.y||(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:e,rotate:t,rotateX:o,rotateY:a,skewX:i,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),o&&(r+=`rotateX(${o}deg) `),a&&(r+=`rotateY(${a}deg) `),i&&(r+=`skewX(${i}deg) `),s&&(r+=`skewY(${s}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return 1===s&&1===l||(r+=`scale(${s}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,i),o&&(r.transform=o(i,r.transform));const{x:s,y:l}=this.projectionDelta;r.transformOrigin=`${100*s.origin}% ${100*l.origin}% 0`,a.animationValues?r.opacity=a===this?null!==(n=null!==(t=i.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:r.opacity=a===this?void 0!==i.opacity?i.opacity:"":void 0!==i.opacityExit?i.opacityExit:0;for(const e in Us){if(void 0===i[e])continue;const{correct:t,applyTo:n}=Us[e],o="none"===r.transform?i[e]:t(i[e],a);if(n){const e=n.length;for(let t=0;t<e;t++)r[n[t]]=o}else r[e]=o}return this.options.layoutId&&(r.pointerEvents=a===this?$s(null==e?void 0:e.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(Al),this.root.sharedNodes.clear()}}}function Dl(e){e.updateLayout()}function El(e){var t;const n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:r}=e.layout,{animationType:o}=e.options,a=n.source!==e.layout.source;"size"===o?ds(e=>{const r=a?n.measuredBox[e]:n.layoutBox[e],o=Ji(r);r.min=t[e].min,r.max=r.min+o}):Vl(o,n.layoutBox,t)&&ds(r=>{const o=a?n.measuredBox[r]:n.layoutBox[r],i=Ji(t[r]);o.max=o.min+i,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+i)});const i={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};ts(i,t,n.layoutBox);const s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};a?ts(s,e.applyTransform(r,!0),n.measuredBox):ts(s,t,n.layoutBox);const l=!ul(i);let c=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:o,layout:a}=r;if(o&&a){const i={x:{min:0,max:0},y:{min:0,max:0}};os(i,n.layoutBox,o.layoutBox);const s={x:{min:0,max:0},y:{min:0,max:0}};os(s,t,a.layoutBox),pl(i,s)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=i,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:s,layoutDelta:i,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Tl(e){vl&&yl.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Ol(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Il(e){e.clearSnapshot()}function Al(e){e.clearMeasurements()}function kl(e){e.isLayoutDirty=!1}function Sl(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function _l(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Cl(e){e.resolveTargetDelta()}function zl(e){e.calcProjection()}function Ll(e){e.resetSkewAndRotation()}function Pl(e){e.removeLeadSnapshot()}function Ul(e,t,n){e.translate=_a(t.translate,0,n),e.scale=_a(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Rl(e,t,n,r){e.min=_a(t.min,n.min,r),e.max=_a(t.max,n.max,r)}function Ql(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const Yl={duration:.45,ease:[.4,0,.1,1]},Bl=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Fl=Bl("applewebkit/")&&!Bl("chrome/")?Math.round:Tr;function Wl(e){e.min=Fl(e.min),e.max=Fl(e.max)}function Vl(e,t,n){return"position"===e||"preserve-aspect"===e&&!function(e,t){return Math.abs(e-t)<=.2}(fl(t),fl(n))}function $l(e){var t;return e!==e.root&&(null===(t=e.scroll)||void 0===t?void 0:t.wasRoot)}const Hl=jl({attachResizeListener:(e,t)=>Yi(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Gl={current:void 0},Zl=jl({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Gl.current){const e=new Hl({});e.mount(window),e.setOptions({layoutScroll:!0}),Gl.current=e}return Gl.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),ql={pan:{Feature:class extends Ui{constructor(){super(...arguments),this.removePointerDownListener=Tr}onPointerDown(e){this.session=new Vi(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Os(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Ss(e),onStart:Ss(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&Cr.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=Fi(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Ui{constructor(e){super(e),this.removeGroupControls=Tr,this.removeListeners=Tr,this.controls=new As(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Tr}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:Zl,MeasureLayout:Bs}};function Kl(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);const o=r["onHover"+n];o&&Cr.postRender(()=>o(t,Bi(t)))}function Xl(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);const o=r["onTap"+("End"===n?"":n)];o&&Cr.postRender(()=>o(t,Bi(t)))}const Jl=new WeakMap,ec=new WeakMap,tc=e=>{const t=Jl.get(e.target);t&&t(e)},nc=e=>{e.forEach(tc)};const rc={some:0,all:1},oc={inView:{Feature:class extends Ui{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:o}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:rc[r]};return function(e,t,n){const r=function({root:e,...t}){const n=e||document;ec.has(n)||ec.set(n,{});const r=ec.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(nc,{root:e,...t})),r[o]}(t);return Jl.set(e,n),r.observe(e),()=>{Jl.delete(e),r.unobserve(e)}}(this.node.current,a,e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,o&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Ui{mount(){const{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){const[r,o,a]=gr(e,n),i=e=>{const r=e.currentTarget;if(!jr(e)||xr.has(r))return;xr.add(r);const a=t(e),i=(e,t)=>{window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",l),jr(e)&&xr.has(r)&&(xr.delete(r),"function"==typeof a&&a(e,{success:t}))},s=e=>{i(e,n.useGlobalTarget||vr(r,e.target))},l=e=>{i(e,!1)};window.addEventListener("pointerup",s,o),window.addEventListener("pointercancel",l,o)};return r.forEach(e=>{(function(e){return Mr.has(e.tagName)||-1!==e.tabIndex})(e)||null!==e.getAttribute("tabindex")||(e.tabIndex=0),(n.useGlobalTarget?window:e).addEventListener("pointerdown",i,o),e.addEventListener("focus",e=>((e,t)=>{const n=e.currentTarget;if(!n)return;const r=wr(()=>{if(xr.has(n))return;Nr(n,"down");const e=wr(()=>{Nr(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>Nr(n,"cancel"),t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)})(e,o),o)}),a}(e,e=>(Xl(this.node,e,"Start"),(e,{success:t})=>Xl(this.node,e,t?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends Ui{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ya(Yi(this.node.current,"focus",()=>this.onFocus()),Yi(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends Ui{mount(){const{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){const[r,o,a]=gr(e,n),i=yr(e=>{const{target:n}=e,r=t(e);if("function"!=typeof r||!n)return;const a=yr(e=>{r(e),n.removeEventListener("pointerleave",a)});n.addEventListener("pointerleave",a,o)});return r.forEach(e=>{e.addEventListener("pointerenter",i,o)}),a}(e,e=>(Kl(this.node,e,"Start"),e=>Kl(this.node,e,"End"))))}unmount(){}}}},ac={layout:{ProjectionNode:Zl,MeasureLayout:Bs}},ic=(0,a.createContext)({strict:!1}),sc=(0,a.createContext)({});function lc(e){return Qn(e.animate)||Gn.some(t=>Fn(e[t]))}function cc(e){return Boolean(lc(e)||e.variants)}function uc(e){return Array.isArray(e)?e.join(" "):e}const dc={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},mc={};for(const e in dc)mc[e]={isEnabled:t=>dc[e].some(e=>!!t[e])};const pc=Symbol.for("motionComponentSymbol");function fc(e,t,n){return(0,a.useCallback)(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):Xi(n)&&(n.current=r))},[t])}function hc(e,t,n,r,o){var i,s;const{visualElement:l}=(0,a.useContext)(sc),c=(0,a.useContext)(ic),u=(0,a.useContext)(En),d=(0,a.useContext)(Tn).reducedMotion,m=(0,a.useRef)(null);r=r||c.renderer,!m.current&&r&&(m.current=r(e,{visualState:t,parent:l,props:n,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:d}));const p=m.current,f=(0,a.useContext)(_s);!p||p.projection||!o||"html"!==p.type&&"svg"!==p.type||function(e,t,n,r){const{layoutId:o,layout:a,drag:i,dragConstraints:s,layoutScroll:l,layoutRoot:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:gc(e.parent)),e.projection.setOptions({layoutId:o,layout:a,alwaysMeasureLayout:Boolean(i)||s&&Xi(s),visualElement:e,animationType:"string"==typeof a?a:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:c})}(m.current,n,o,f);const h=(0,a.useRef)(!1);(0,a.useInsertionEffect)(()=>{p&&h.current&&p.update(n,u)});const g=n[Xr],y=(0,a.useRef)(Boolean(g)&&!(null===(i=window.MotionHandoffIsComplete)||void 0===i?void 0:i.call(window,g))&&(null===(s=window.MotionHasOptimisedAnimation)||void 0===s?void 0:s.call(window,g)));return Pn(()=>{p&&(h.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),Rs.render(p.render),y.current&&p.animationState&&p.animationState.animateChanges())}),(0,a.useEffect)(()=>{p&&(!y.current&&p.animationState&&p.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var e;null===(e=window.MotionHandoffMarkAsComplete)||void 0===e||e.call(window,g)}),y.current=!1))}),p}function gc(e){if(e)return!1!==e.options.allowProjection?e.projection:gc(e.parent)}function yc({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){var i,s;function l(e,i){let s;const l={...(0,a.useContext)(Tn),...e,layoutId:vc(e)},{isStatic:c}=l,u=function(e){const{initial:t,animate:n}=function(e,t){if(lc(e)){const{initial:t,animate:n}=e;return{initial:!1===t||Fn(t)?t:void 0,animate:Fn(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,a.useContext)(sc));return(0,a.useMemo)(()=>({initial:t,animate:n}),[uc(t),uc(n)])}(e),d=r(e,c);if(!c&&Ln){(0,a.useContext)(ic).strict;const e=function(e){const{drag:t,layout:n}=mc;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==n?void 0:n.isEnabled(e))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(l);s=e.MeasureLayout,u.visualElement=hc(o,d,l,t,e.ProjectionNode)}return(0,Ge.jsxs)(sc.Provider,{value:u,children:[s&&u.visualElement?(0,Ge.jsx)(s,{visualElement:u.visualElement,...l}):null,n(o,e,fc(d,u.visualElement,i),d,c,u.visualElement)]})}e&&function(e){for(const t in e)mc[t]={...mc[t],...e[t]}}(e),l.displayName=`motion.${"string"==typeof o?o:`create(${null!==(s=null!==(i=o.displayName)&&void 0!==i?i:o.name)&&void 0!==s?s:""})`}`;const c=(0,a.forwardRef)(l);return c[pc]=o,c}function vc({layoutId:e}){const t=(0,a.useContext)(jn).id;return t&&void 0!==e?t+"-"+e:e}const bc=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Mc(e){return"string"==typeof e&&!e.includes("-")&&!!(bc.indexOf(e)>-1||/[A-Z]/u.test(e))}const xc=e=>(t,n)=>{const r=(0,a.useContext)(sc),o=(0,a.useContext)(En),i=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,o,a){const i={latestValues:wc(r,o,a,e),renderState:t()};return n&&(i.onMount=e=>n({props:r,current:e,...i}),i.onUpdate=e=>n(e)),i}(e,t,r,o);return n?i():Dn(i)};function wc(e,t,n,r){const o={},a=r(e,{});for(const e in a)o[e]=$s(a[e]);let{initial:i,animate:s}=e;const l=lc(e),c=cc(e);t&&c&&!l&&!1!==e.inherit&&(void 0===i&&(i=t.initial),void 0===s&&(s=t.animate));let u=!!n&&!1===n.initial;u=u||!1===i;const d=u?s:i;if(d&&"boolean"!=typeof d&&!Qn(d)){const t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){const r=Vn(e,t[n]);if(r){const{transitionEnd:e,transition:t,...n}=r;for(const e in n){let t=n[e];Array.isArray(t)&&(t=t[u?t.length-1:0]),null!==t&&(o[e]=t)}for(const t in e)o[t]=e[t]}}}return o}const Nc=(e,t)=>t&&"number"==typeof e?t.transform(e):e,jc={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Dc=Or.length;function Ec(e,t,n){const{style:r,vars:o,transformOrigin:a}=e;let i=!1,s=!1;for(const e in t){const n=t[e];if(Ir.has(e))i=!0;else if(va(e))o[e]=n;else{const t=Nc(n,Ko[e]);e.startsWith("origin")?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(i||n?r.transform=function(e,t,n){let r="",o=!0;for(let a=0;a<Dc;a++){const i=Or[a],s=e[i];if(void 0===s)continue;let l=!0;if(l="number"==typeof s?s===(i.startsWith("scale")?1:0):0===parseFloat(s),!l||n){const e=Nc(s,Ko[i]);l||(o=!1,r+=`${jc[i]||i}(${e}) `),n&&(t[i]=e)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),s){const{originX:e="50%",originY:t="50%",originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}const Tc={offset:"stroke-dashoffset",array:"stroke-dasharray"},Oc={offset:"strokeDashoffset",array:"strokeDasharray"};function Ic(e,t,n){return"string"==typeof e?e:Io.transform(t+n*e)}function Ac(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:a,pathLength:i,pathSpacing:s=1,pathOffset:l=0,...c},u,d){if(Ec(e,c,d),u)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:m,style:p,dimensions:f}=e;m.transform&&(f&&(p.transform=m.transform),delete m.transform),f&&(void 0!==o||void 0!==a||p.transform)&&(p.transformOrigin=function(e,t,n){return`${Ic(t,e.x,e.width)} ${Ic(n,e.y,e.height)}`}(f,void 0!==o?o:.5,void 0!==a?a:.5)),void 0!==t&&(m.x=t),void 0!==n&&(m.y=n),void 0!==r&&(m.scale=r),void 0!==i&&function(e,t,n=1,r=0,o=!0){e.pathLength=1;const a=o?Tc:Oc;e[a.offset]=Io.transform(-r);const i=Io.transform(t),s=Io.transform(n);e[a.array]=`${i} ${s}`}(m,i,s,l,!1)}const kc=e=>"string"==typeof e&&"svg"===e.toLowerCase();function Sc(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const t in n)e.style.setProperty(t,n[t])}const _c=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Cc(e,t,n,r){Sc(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(_c.has(n)?n:Kr(n),t.attrs[n])}function zc(e,{layout:t,layoutId:n}){return Ir.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!Us[e]||"opacity"===e)}function Lc(e,t,n){var r;const{style:o}=e,a={};for(const i in o)(Zr(o[i])||t.style&&Zr(t.style[i])||zc(i,e)||void 0!==(null===(r=null==n?void 0:n.getValue(i))||void 0===r?void 0:r.liveStyle))&&(a[i]=o[i]);return a}function Pc(e,t,n){const r=Lc(e,t,n);for(const n in e)(Zr(e[n])||Zr(t[n]))&&(r[-1!==Or.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return r}const Uc=["x","y","width","height","cx","cy","r"],Rc={useVisualState:xc({scrapeMotionValuesFromProps:Pc,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:o})=>{if(!n)return;let a=!!e.drag;if(!a)for(const e in o)if(Ir.has(e)){a=!0;break}if(!a)return;let i=!t;if(t)for(let n=0;n<Uc.length;n++){const r=Uc[n];e[r]!==t[r]&&(i=!0)}i&&Cr.read(()=>{!function(e,t){try{t.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(e){t.dimensions={x:0,y:0,width:0,height:0}}}(n,r),Cr.render(()=>{Ac(r,o,kc(n.tagName),e.transformTemplate),Cc(n,r)})})}})},Qc={useVisualState:xc({scrapeMotionValuesFromProps:Lc,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{}})})};function Yc(e,t,n){for(const r in t)Zr(t[r])||zc(r,n)||(e[r]=t[r])}function Bc(e,t){const n={},r=function(e,t){const n={};return Yc(n,e.style||{},e),Object.assign(n,function({transformTemplate:e},t){return(0,a.useMemo)(()=>{const n={style:{},transform:{},transformOrigin:{},vars:{}};return Ec(n,t,e),Object.assign({},n.vars,n.style)},[t])}(e,t)),n}(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const Fc=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Wc(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Fc.has(e)}let Vc=e=>!Wc(e);try{($c=require("@emotion/is-prop-valid").default)&&(Vc=e=>e.startsWith("on")?!Wc(e):$c(e))}catch(e){}var $c;function Hc(e,t,n,r){const o=(0,a.useMemo)(()=>{const n={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return Ac(n,t,kc(r),e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){const t={};Yc(t,e.style,e),o.style={...t,...o.style}}return o}function Gc(e=!1){return(t,n,r,{latestValues:o},i)=>{const s=(Mc(t)?Hc:Bc)(n,o,i,t),l=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"==typeof e.values||(Vc(o)||!0===n&&Wc(o)||!t&&!Wc(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),c=t!==a.Fragment?{...l,...s,ref:r}:{},{children:u}=n,d=(0,a.useMemo)(()=>Zr(u)?u.get():u,[u]);return(0,a.createElement)(t,{...c,children:d})}}function Zc(e,t){return function(n,{forwardMotionProps:r}={forwardMotionProps:!1}){return yc({...Mc(n)?Rc:Qc,preloadedFeatures:e,useRender:Gc(r),createVisualElement:t,Component:n})}}const qc={current:null},Kc={current:!1},Xc=[...Da,Co,Fo],Jc=new WeakMap,eu=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class tu{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:o,visualState:a},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=pa,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const e=Qr.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,Cr.render(this.render,!1,!0))};const{latestValues:s,renderState:l,onUpdate:c}=a;this.onUpdate=c,this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=i,this.blockInitialAnimation=Boolean(o),this.isControllingVariants=lc(t),this.isVariantNode=cc(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in d){const t=d[e];void 0!==s[e]&&Zr(t)&&t.set(s[e],!1)}}mount(e){this.current=e,Jc.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),Kc.current||function(){if(Kc.current=!0,Ln)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>qc.current=e.matches;e.addListener(t),t()}else qc.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||qc.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Jc.delete(this.current),this.projection&&this.projection.unmount(),zr(this.notifyUpdate),zr(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const n=Ir.has(e),r=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&Cr.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),o=t.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),o(),a&&a(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in mc){const t=mc[e];if(!t)continue;const{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<eu.length;t++){const n=eu[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){for(const r in t){const o=t[r],a=n[r];if(Zr(o))e.addValue(r,o);else if(Zr(a))e.addValue(r,Hr(o,{owner:e}));else if(a!==o)if(e.hasValue(r)){const t=e.getValue(r);!0===t.liveStyle?t.jump(o):t.hasAnimated||t.set(o)}else{const t=e.getStaticValue(r);e.addValue(r,Hr(void 0!==t?t:o,{owner:e}))}}for(const r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=Hr(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let r=void 0===this.latestValues[e]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,e))&&void 0!==n?n:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=r&&("string"==typeof r&&(ga(r)||mo(r))?r=parseFloat(r):(o=r,!Xc.find(ja(o))&&Fo.test(t)&&(r=ea(e,t))),this.setBaseTarget(e,Zr(r)?r.get():r)),Zr(r)?r.get():r;var o}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props;let r;if("string"==typeof n||"object"==typeof n){const o=Vn(this.props,n,null===(t=this.presenceContext)||void 0===t?void 0:t.custom);o&&(r=o[e])}if(n&&void 0!==r)return r;const o=this.getBaseTargetFromProps(this.props,e);return void 0===o||Zr(o)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:o}on(e,t){return this.events[e]||(this.events[e]=new Fr),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class nu extends tu{constructor(){super(...arguments),this.KeyframeResolver=Ta}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Zr(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}class ru extends nu{constructor(){super(...arguments),this.type="html",this.renderInstance=Sc}readValueFromInstance(e,t){if(Ir.has(t)){const e=Jo(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),o=(va(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return Ts(e,t)}build(e,t,n){Ec(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Lc(e,t,n)}}class ou extends nu{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=us}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Ir.has(t)){const e=Jo(t);return e&&e.default||0}return t=_c.has(t)?t:Kr(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Pc(e,t,n)}build(e,t,n){Ac(e,t,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,n,r){Cc(e,t,0,r)}mount(e){this.isSVGTag=kc(e.tagName),super.mount(e)}}const au=Rn(Zc({...Qi,...oc,...ql,...ac},(e,t)=>Mc(e)?new ou(t):new ru(t,{allowProjection:e!==a.Fragment})));let iu=!1;const su=({toastItem:e,title:t="",content:n="",autoDismiss:r=!0,dismissAfter:o=5e3,theme:i="light",design:s="stack",icon:l,variant:c="neutral",removeToast:u})=>{const d=(0,a.useRef)(0),m=(0,a.useRef)(0),p=(0,a.useRef)(),f=(e,t=o)=>{if(r&&!(o<0))return d.current=(new Date).getTime(),setTimeout(()=>{"function"==typeof u&&u(e.id)},t)};(0,a.useEffect)(()=>{const t=o;return p.current=f(e,t),()=>{clearTimeout(p.current)}},[]),(0,a.useEffect)(()=>{!e?.dismiss||"function"!=typeof u||u(e.id)},[e]);const h=()=>{"function"==typeof u&&e?.action?.onClick?.(()=>u(e.id))};let g=null;return"stack"===s&&(g=(0,Ge.jsx)("div",{className:en("flex items-center justify-start p-4 gap-2 relative border border-solid rounded-md shadow-lg","dark"===i?xn:Mn?.[c],"w-[22.5rem]"),onMouseEnter:()=>{clearTimeout(p.current),m.current=(new Date).getTime()},onMouseLeave:()=>{p.current=f(e,o-(m.current-d.current))},children:"custom"!==e.type?(0,Ge.jsxs)(Ge.Fragment,{children:[(0,Ge.jsx)("div",{className:"self-start flex items-center justify-center [&_svg]:size-5 shrink-0",children:fn({variant:c,icon:l,theme:i})}),(0,Ge.jsxs)("div",{className:"flex flex-col items-start justify-start gap-0.5 mr-6",children:[gn({title:t,theme:i}),yn({content:n,theme:i}),e?.action?.label&&"function"==typeof e?.action?.onClick&&(0,Ge.jsx)("div",{className:"mt-2.5",children:hn({actionLabel:e?.action?.label,actionType:e?.action?.type??"button",onAction:h,theme:i})})]}),(0,Ge.jsx)("div",{className:"absolute right-4 top-4 [&_svg]:size-5",children:(0,Ge.jsx)("button",{className:en("bg-transparent m-0 p-0 border-none focus:outline-none active:outline-none cursor-pointer",wn[i]??wn.light),onClick:t=>{t.preventDefault(),t.stopPropagation(),"function"==typeof u&&u(e.id)},children:(0,Ge.jsx)(et,{})})})]}):e?.jsx?.({close:()=>u(e.id),action:e?.action?{...e?.action,onClick:h}:null})})),"inline"===s&&(g=(0,Ge.jsxs)("div",{className:en("flex items-center justify-start p-3 gap-2 relative border border-solid rounded-md shadow-lg","dark"===i?xn:Mn?.[c],"lg:w-[47.5rem] w-full"),children:[(0,Ge.jsx)("div",{className:"self-start flex items-center justify-center [&_svg]:size-5 shrink-0",children:fn({variant:c,icon:l,theme:i})}),(0,Ge.jsxs)("div",{className:"flex items-start justify-start gap-1 mr-10 [&>span:first-child]:shrink-0",children:[gn({title:t,theme:i}),yn({content:n,theme:i})]}),(0,Ge.jsx)("div",{className:"absolute right-3 top-3 [&_svg]:size-5",children:(0,Ge.jsx)("button",{className:en("bg-transparent m-0 p-0 border-none focus:outline-none active:outline-none cursor-pointer",wn[i]??wn.light),onClick:()=>u(e.id),children:(0,Ge.jsx)(et,{})})})]})),g},lu=(e=>(0,a.memo)(t=>{const n=t.singleTon;return iu&&n?null:(iu=!0,(0,Ge.jsx)(e,{...t}))}))(({position:e="top-right",design:t="stack",theme:n="light",className:r="",autoDismiss:o=!0,dismissAfter:i=5e3})=>{const[s,l]=(0,a.useState)([]);(0,a.useEffect)(()=>{nt.subscribe(e=>{e?.dismiss?l(t=>t.map(t=>t.id===e.id?{...t,dismiss:!0}:t)):setTimeout(()=>{(0,Nn.flushSync)(()=>l(t=>-1!==t.findIndex(t=>t.id===e.id)?t.map(t=>t.id===e.id?{...t,...e}:t):[...t,e]))})})},[]);const c=e=>{l(t=>t.filter(t=>t.id!==e))};return(0,Ge.jsx)("ul",{className:en("fui-toast-container fixed flex flex-col list-none z-20 p-10 pointer-events-none [&>li]:pointer-events-auto gap-3",bn[e]??bn["top-right"],r),children:(0,Ge.jsx)(Un,{initial:!1,children:s.map(e=>(0,Ge.jsx)(au.li,{initial:{opacity:0,y:50,scale:.7},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,scale:.6,transition:{duration:.15}},layoutId:`toast-${e.id}`,children:(0,Ge.jsx)(su,{toastItem:e,title:e.title,content:e?.description,icon:e?.icon??void 0,design:e?.design??t,autoDismiss:e?.autoDismiss??o,dismissAfter:e?.dismissAfter??i,removeToast:c,variant:e.type,theme:e?.theme??n})},e.id))})})}),cu=({children:e,gap:t="lg",className:n,...r})=>(0,Ge.jsx)("div",{className:en("w-full box-border flex items-center justify-between bg-background-primary p-5 min-h-16",nn(t),n),...r,children:e});cu.displayName="Topbar";const uu=({gap:e="sm",children:t,className:n})=>(0,Ge.jsx)("div",{className:en("flex items-center",nn(e),n),children:t});uu.displayName="Topbar.Left";const du=({gap:e="md",children:t,align:n="center",className:r})=>{const o={left:"justify-start",center:"justify-center",right:"justify-end"}[n];return(0,Ge.jsx)("div",{className:en("flex items-center grow",nn(e),o,r),children:t})};du.displayName="Topbar.Middle";const mu=({gap:e="sm",children:t,className:n})=>(0,Ge.jsx)("div",{className:en("flex items-center",nn(e),n),children:t});mu.displayName="Topbar.Right";const pu=({children:e,className:t})=>(0,Ge.jsx)("div",{className:en("flex items-center [&>svg]:block h-full",t),children:e});function fu(){return"undefined"!=typeof window}function hu(e){return vu(e)?(e.nodeName||"").toLowerCase():"#document"}function gu(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function yu(e){var t;return null==(t=(vu(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function vu(e){return!!fu()&&(e instanceof Node||e instanceof gu(e).Node)}function bu(e){return!!fu()&&(e instanceof Element||e instanceof gu(e).Element)}function Mu(e){return!!fu()&&(e instanceof HTMLElement||e instanceof gu(e).HTMLElement)}function xu(e){return!(!fu()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof gu(e).ShadowRoot)}pu.displayName="Topbar.Item",cu.Left=uu,cu.Middle=du,cu.Right=mu,cu.Item=pu;const wu=new Set(["inline","contents"]);function Nu(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=zu(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!wu.has(o)}const ju=new Set(["table","td","th"]);function Du(e){return ju.has(hu(e))}const Eu=[":popover-open",":modal"];function Tu(e){return Eu.some(t=>{try{return e.matches(t)}catch(e){return!1}})}const Ou=["transform","translate","scale","rotate","perspective"],Iu=["transform","translate","scale","rotate","perspective","filter"],Au=["paint","layout","strict","content"];function ku(e){const t=Su(),n=bu(e)?zu(e):e;return Ou.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||Iu.some(e=>(n.willChange||"").includes(e))||Au.some(e=>(n.contain||"").includes(e))}function Su(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const _u=new Set(["html","body","#document"]);function Cu(e){return _u.has(hu(e))}function zu(e){return gu(e).getComputedStyle(e)}function Lu(e){return bu(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Pu(e){if("html"===hu(e))return e;const t=e.assignedSlot||e.parentNode||xu(e)&&e.host||yu(e);return xu(t)?t.host:t}function Uu(e){const t=Pu(e);return Cu(t)?e.ownerDocument?e.ownerDocument.body:e.body:Mu(t)&&Nu(t)?t:Uu(t)}function Ru(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Uu(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),i=gu(o);if(a){const e=Qu(i);return t.concat(i,i.visualViewport||[],Nu(o)?o:[],e&&n?Ru(e):[])}return t.concat(o,Ru(o,[],n))}function Qu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Yu(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement}return t}function Bu(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&xu(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Fu(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function Wu(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}function Vu(e){return!(0!==e.mozInputSource||!e.isTrusted)||(Gu()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function $u(e){return!Wu().includes("jsdom/")&&(!Gu()&&0===e.width&&0===e.height||Gu()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function Hu(){return/apple/i.test(navigator.vendor)}function Gu(){const e=/android/i;return e.test(Fu())||e.test(Wu())}function Zu(){return Fu().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function qu(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function Ku(e){return(null==e?void 0:e.ownerDocument)||document}function Xu(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function Ju(e){return"composedPath"in e?e.composedPath()[0]:e.target}function ed(e){return Mu(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function td(e){e.preventDefault(),e.stopPropagation()}function nd(e){return!!e&&"combobox"===e.getAttribute("role")&&ed(e)}const rd=Math.min,od=Math.max,ad=Math.round,id=Math.floor,sd=e=>({x:e,y:e}),ld={left:"right",right:"left",bottom:"top",top:"bottom"},cd={start:"end",end:"start"};function ud(e,t,n){return od(e,rd(t,n))}function dd(e,t){return"function"==typeof e?e(t):e}function md(e){return e.split("-")[0]}function pd(e){return e.split("-")[1]}function fd(e){return"x"===e?"y":"x"}function hd(e){return"y"===e?"height":"width"}const gd=new Set(["top","bottom"]);function yd(e){return gd.has(md(e))?"y":"x"}function vd(e){return fd(yd(e))}function bd(e){return e.replace(/start|end/g,e=>cd[e])}const Md=["left","right"],xd=["right","left"],wd=["top","bottom"],Nd=["bottom","top"];function jd(e){return e.replace(/left|right|bottom|top/g,e=>ld[e])}function Dd(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Ed(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}var Td=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"].join(","),Od="undefined"==typeof Element,Id=Od?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ad=!Od&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},kd=function(e,t){var n;void 0===t&&(t=!0);var r=null==e||null===(n=e.getAttribute)||void 0===n?void 0:n.call(e,"inert");return""===r||"true"===r||t&&e&&("function"==typeof e.closest?e.closest("[inert]"):kd(e.parentNode))},Sd=function(e,t,n){for(var r=[],o=Array.from(e);o.length;){var a=o.shift();if(!kd(a,!1))if("SLOT"===a.tagName){var i=a.assignedElements(),s=i.length?i:a.children,l=Sd(s,!0,n);n.flatten?r.push.apply(r,l):r.push({scopeParent:a,candidates:l})}else{Id.call(a,Td)&&n.filter(a)&&(t||!e.includes(a))&&r.push(a);var c=a.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(a),u=!kd(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(c&&u){var d=Sd(!0===c?a.children:c.children,!0,n);n.flatten?r.push.apply(r,d):r.push({scopeParent:a,candidates:d})}else o.unshift.apply(o,a.children)}}return r},_d=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Cd=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!_d(e)?0:e.tabIndex},zd=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Ld=function(e){return"INPUT"===e.tagName},Pd=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},Ud=function(e,t){return!(t.disabled||function(e){return Ld(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("full-native"===n&&"checkVisibility"in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if("hidden"===getComputedStyle(e).visibility)return!0;var o=Id.call(e,"details>summary:first-of-type")?e.parentElement:e;if(Id.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return Pd(e)}else{if("function"==typeof r){for(var a=e;e;){var i=e.parentElement,s=Ad(e);if(i&&!i.shadowRoot&&!0===r(i))return Pd(e);e=e.assignedSlot?e.assignedSlot:i||s===e.ownerDocument?i:s.host}e=a}if(function(e){var t,n,r,o,a=e&&Ad(e),i=null===(t=a)||void 0===t?void 0:t.host,s=!1;if(a&&a!==e)for(s=!!(null!==(n=i)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(i)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!s&&i;){var l,c,u;s=!(null===(c=i=null===(l=a=Ad(i))||void 0===l?void 0:l.host)||void 0===c||null===(u=c.ownerDocument)||void 0===u||!u.contains(i))}return s}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(e){return"SUMMARY"===e.tagName})}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!Id.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},Rd=function(e,t){return!(function(e){return function(e){return Ld(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||Ad(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!o||o===e}(e)}(t)||Cd(t)<0||!Ud(e,t))},Qd=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},Yd=function(e){var t=[],n=[];return e.forEach(function(e,r){var o=!!e.scopeParent,a=o?e.scopeParent:e,i=function(e,t){var n=Cd(e);return n<0&&t&&!_d(e)?0:n}(a,o),s=o?Yd(e.candidates):a;0===i?o?t.push.apply(t,s):t.push(a):n.push({documentOrder:r,tabIndex:i,item:e,isScope:o,content:s})}),n.sort(zd).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},Bd=function(e,t){var n;return n=(t=t||{}).getShadowRoot?Sd([e],t.includeContainer,{filter:Rd.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Qd}):function(e,t,n){if(kd(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(Td));return t&&Id.call(e,Td)&&r.unshift(e),r.filter(n)}(e,t.includeContainer,Rd.bind(null,t)),Yd(n)};function Fd(e,t,n){let{reference:r,floating:o}=e;const a=yd(t),i=vd(t),s=hd(i),l=md(t),c="y"===a,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,m=r[s]/2-o[s]/2;let p;switch(l){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(pd(t)){case"start":p[i]-=m*(n&&c?-1:1);break;case"end":p[i]+=m*(n&&c?-1:1)}return p}async function Wd(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:a,rects:i,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:m=!1,padding:p=0}=dd(t,e),f=Dd(p),h=s[m?"floating"===d?"reference":"floating":d],g=Ed(await a.getClippingRect({element:null==(n=await(null==a.isElement?void 0:a.isElement(h)))||n?h:h.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),y="floating"===d?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,v=await(null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),b=await(null==a.isElement?void 0:a.isElement(v))&&await(null==a.getScale?void 0:a.getScale(v))||{x:1,y:1},M=Ed(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:v,strategy:l}):y);return{top:(g.top-M.top+f.top)/b.y,bottom:(M.bottom-g.bottom+f.bottom)/b.y,left:(g.left-M.left+f.left)/b.x,right:(M.right-g.right+f.right)/b.x}}const Vd=new Set(["left","top"]);function $d(e){const t=zu(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Mu(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=ad(n)!==a||ad(r)!==i;return s&&(n=a,r=i),{width:n,height:r,$:s}}function Hd(e){return bu(e)?e:e.contextElement}function Gd(e){const t=Hd(e);if(!Mu(t))return sd(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=$d(t);let i=(a?ad(n.width):n.width)/r,s=(a?ad(n.height):n.height)/o;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const Zd=sd(0);function qd(e){const t=gu(e);return Su()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Zd}function Kd(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),a=Hd(e);let i=sd(1);t&&(r?bu(r)&&(i=Gd(r)):i=Gd(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==gu(e))&&t}(a,n,r)?qd(a):sd(0);let l=(o.left+s.x)/i.x,c=(o.top+s.y)/i.y,u=o.width/i.x,d=o.height/i.y;if(a){const e=gu(a),t=r&&bu(r)?gu(r):r;let n=e,o=Qu(n);for(;o&&r&&t!==n;){const e=Gd(o),t=o.getBoundingClientRect(),r=zu(o),a=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=a,c+=i,n=gu(o),o=Qu(n)}}return Ed({width:u,height:d,x:l,y:c})}function Xd(e,t){const n=Lu(e).scrollLeft;return t?t.left+n:Kd(yu(e)).left+n}function Jd(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Xd(e,n),y:n.top+t.scrollTop}}const em=new Set(["absolute","fixed"]);function tm(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=gu(e),r=yu(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;const e=Su();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}const c=Xd(r);if(c<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(r.clientWidth-t.clientWidth-o);i<=25&&(a-=i)}else c<=25&&(a+=c);return{width:a,height:i,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=yu(e),n=Lu(e),r=e.ownerDocument.body,o=od(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=od(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Xd(e);const s=-n.scrollTop;return"rtl"===zu(r).direction&&(i+=od(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:s}}(yu(e));else if(bu(t))r=function(e,t){const n=Kd(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=Mu(e)?Gd(e):sd(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:o*a.x,y:r*a.y}}(t,n);else{const n=qd(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Ed(r)}function nm(e,t){const n=Pu(e);return!(n===t||!bu(n)||Cu(n))&&("fixed"===zu(n).position||nm(n,t))}function rm(e,t,n){const r=Mu(t),o=yu(t),a="fixed"===n,i=Kd(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=sd(0);function c(){l.x=Xd(o)}if(r||!r&&!a)if(("body"!==hu(t)||Nu(o))&&(s=Lu(t)),r){const e=Kd(t,!0,a,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&c();a&&!r&&o&&c();const u=!o||r||a?sd(0):Jd(o,s);return{x:i.left+s.scrollLeft-l.x-u.x,y:i.top+s.scrollTop-l.y-u.y,width:i.width,height:i.height}}function om(e){return"static"===zu(e).position}function am(e,t){if(!Mu(e)||"fixed"===zu(e).position)return null;if(t)return t(e);let n=e.offsetParent;return yu(e)===n&&(n=n.ownerDocument.body),n}function im(e,t){const n=gu(e);if(Tu(e))return n;if(!Mu(e)){let t=Pu(e);for(;t&&!Cu(t);){if(bu(t)&&!om(t))return t;t=Pu(t)}return n}let r=am(e,t);for(;r&&Du(r)&&om(r);)r=am(r,t);return r&&Cu(r)&&om(r)&&!ku(r)?n:r||function(e){let t=Pu(e);for(;Mu(t)&&!Cu(t);){if(ku(t))return t;if(Tu(t))return null;t=Pu(t)}return null}(e)||n}const sm={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a="fixed"===o,i=yu(r),s=!!t&&Tu(t.floating);if(r===i||s&&a)return n;let l={scrollLeft:0,scrollTop:0},c=sd(1);const u=sd(0),d=Mu(r);if((d||!d&&!a)&&(("body"!==hu(r)||Nu(i))&&(l=Lu(r)),Mu(r))){const e=Kd(r);c=Gd(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const m=!i||d||a?sd(0):Jd(i,l);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+m.x,y:n.y*c.y-l.scrollTop*c.y+u.y+m.y}},getDocumentElement:yu,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[..."clippingAncestors"===n?Tu(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Ru(e,[],!1).filter(e=>bu(e)&&"body"!==hu(e)),o=null;const a="fixed"===zu(e).position;let i=a?Pu(e):e;for(;bu(i)&&!Cu(i);){const t=zu(i),n=ku(i);n||"fixed"!==t.position||(o=null),(a?!n&&!o:!n&&"static"===t.position&&o&&em.has(o.position)||Nu(i)&&!n&&nm(e,i))?r=r.filter(e=>e!==i):o=t,i=Pu(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=a[0],s=a.reduce((e,n)=>{const r=tm(t,n,o);return e.top=od(r.top,e.top),e.right=rd(r.right,e.right),e.bottom=rd(r.bottom,e.bottom),e.left=od(r.left,e.left),e},tm(t,i,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:im,getElementRects:async function(e){const t=this.getOffsetParent||im,n=this.getDimensions,r=await n(e.floating);return{reference:rm(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=$d(e);return{width:t,height:n}},getScale:Gd,isElement:bu,isRTL:function(e){return"rtl"===zu(e).direction}};function lm(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function cm(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=Hd(e),u=o||a?[...c?Ru(c):[],...Ru(t)]:[];u.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});const d=c&&s?function(e,t){let n,r=null;const o=yu(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),a();const c=e.getBoundingClientRect(),{left:u,top:d,width:m,height:p}=c;if(s||t(),!m||!p)return;const f={rootMargin:-id(d)+"px "+-id(o.clientWidth-(u+m))+"px "+-id(o.clientHeight-(d+p))+"px "+-id(u)+"px",threshold:od(0,rd(1,l))||1};let h=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!h)return i();r?i(!1,r):n=setTimeout(()=>{i(!1,1e-7)},1e3)}1!==r||lm(c,e.getBoundingClientRect())||i(),h=!1}try{r=new IntersectionObserver(g,{...f,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,f)}r.observe(e)}(!0),a}(c,n):null;let m,p=-1,f=null;i&&(f=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=f)||e.observe(t)})),n()}),c&&!l&&f.observe(c),f.observe(t));let h=l?Kd(e):null;return l&&function t(){const r=Kd(e);h&&!lm(h,r)&&n(),h=r,m=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach(e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(m)}}const um=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,a=await(null==r.isRTL?void 0:r.isRTL(o.floating)),i=md(n),s=pd(n),l="y"===yd(n),c=Vd.has(i)?-1:1,u=a&&l?-1:1,d=dd(t,e);let{mainAxis:m,crossAxis:p,alignmentAxis:f}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof f&&(p="end"===s?-1*f:f),l?{x:p*u,y:m*c}:{x:m*c,y:p*u}}(t,e);return i===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:i}}}}},dm=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:a}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=dd(e,t),u={x:n,y:r},d=await a.detectOverflow(t,c),m=yd(md(o)),p=fd(m);let f=u[p],h=u[m];if(i){const e="y"===p?"bottom":"right";f=ud(f+d["y"===p?"top":"left"],f,f-d[e])}if(s){const e="y"===m?"bottom":"right";h=ud(h+d["y"===m?"top":"left"],h,h-d[e])}const g=l.fn({...t,[p]:f,[m]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:i,[m]:s}}}}}},mm=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:h=!0,...g}=dd(e,t);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};const y=md(o),v=yd(s),b=md(s)===s,M=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=m||(b||!h?[jd(s)]:function(e){const t=jd(e);return[bd(e),t,bd(t)]}(s)),w="none"!==f;!m&&w&&x.push(...function(e,t,n,r){const o=pd(e);let a=function(e,t,n){switch(e){case"top":case"bottom":return n?t?xd:Md:t?Md:xd;case"left":case"right":return t?wd:Nd;default:return[]}}(md(e),"start"===n,r);return o&&(a=a.map(e=>e+"-"+o),t&&(a=a.concat(a.map(bd)))),a}(s,h,f,M));const N=[s,...x],j=await l.detectOverflow(t,g),D=[];let E=(null==(r=a.flip)?void 0:r.overflows)||[];if(u&&D.push(j[y]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=pd(e),o=vd(e),a=hd(o);let i="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=jd(i)),[i,jd(i)]}(o,i,M);D.push(j[e[0]],j[e[1]])}if(E=[...E,{placement:o,overflows:D}],!D.every(e=>e<=0)){var T,O;const e=((null==(T=a.flip)?void 0:T.index)||0)+1,t=N[e];if(t&&("alignment"!==d||v===yd(t)||E.every(e=>yd(e.placement)!==v||e.overflows[0]>0)))return{data:{index:e,overflows:E},reset:{placement:t}};let n=null==(O=E.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:O.placement;if(!n)switch(p){case"bestFit":{var I;const e=null==(I=E.filter(e=>{if(w){const t=yd(e.placement);return t===v||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:I[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},pm=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:i,elements:s}=t,{apply:l=()=>{},...c}=dd(e,t),u=await i.detectOverflow(t,c),d=md(o),m=pd(o),p="y"===yd(o),{width:f,height:h}=a.floating;let g,y;"top"===d||"bottom"===d?(g=d,y=m===(await(null==i.isRTL?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(y=d,g="end"===m?"top":"bottom");const v=h-u.top-u.bottom,b=f-u.left-u.right,M=rd(h-u[g],v),x=rd(f-u[y],b),w=!t.middlewareData.shift;let N=M,j=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(j=b),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(N=v),w&&!m){const e=od(u.left,0),t=od(u.right,0),n=od(u.top,0),r=od(u.bottom,0);p?j=f-2*(0!==e||0!==t?e+t:od(u.left,u.right)):N=h-2*(0!==n||0!==r?n+r:od(u.top,u.bottom))}await l({...t,availableWidth:j,availableHeight:N});const D=await i.getDimensions(s.floating);return f!==D.width||h!==D.height?{reset:{rects:!0}}:{}}}},fm=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=dd(e,t)||{};if(null==c)return{};const d=Dd(u),m={x:n,y:r},p=vd(o),f=hd(p),h=await i.getDimensions(c),g="y"===p,y=g?"top":"left",v=g?"bottom":"right",b=g?"clientHeight":"clientWidth",M=a.reference[f]+a.reference[p]-m[p]-a.floating[f],x=m[p]-a.reference[p],w=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c));let N=w?w[b]:0;N&&await(null==i.isElement?void 0:i.isElement(w))||(N=s.floating[b]||a.floating[f]);const j=M/2-x/2,D=N/2-h[f]/2-1,E=rd(d[y],D),T=rd(d[v],D),O=E,I=N-h[f]-T,A=N/2-h[f]/2+j,k=ud(O,A,I),S=!l.arrow&&null!=pd(o)&&A!==k&&a.reference[f]/2-(A<O?E:T)-h[f]/2<0,_=S?A<O?A-O:A-I:0;return{[p]:m[p]+_,data:{[p]:k,centerOffset:A-k-_,...S&&{alignmentOffset:_}},reset:S}}}),hm=(e,t,n)=>{const r=new Map,o={platform:sm,...n},a={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,s=a.filter(Boolean),l=await(null==i.isRTL?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Fd(c,r,l),m=r,p={},f=0;for(let n=0;n<s.length;n++){var h;const{name:a,fn:g}=s[n],{x:y,y:v,data:b,reset:M}=await g({x:u,y:d,initialPlacement:r,placement:m,strategy:o,middlewareData:p,rects:c,platform:{...i,detectOverflow:null!=(h=i.detectOverflow)?h:Wd},elements:{reference:e,floating:t}});u=null!=y?y:u,d=null!=v?v:d,p={...p,[a]:{...p[a],...b}},M&&f<=50&&(f++,"object"==typeof M&&(M.placement&&(m=M.placement),M.rects&&(c=!0===M.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):M.rects),({x:u,y:d}=Fd(c,m,l))),n=-1)}return{x:u,y:d,placement:m,strategy:o,middlewareData:p}})(e,t,{...o,platform:a})};var gm="undefined"!=typeof document?a.useLayoutEffect:function(){};function ym(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!ym(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(!("_owner"===n&&e.$$typeof||ym(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function vm(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function bm(e,t){const n=vm(e);return Math.round(t*n)/n}function Mm(e){const t=a.useRef(e);return gm(()=>{t.current=e}),t}const xm=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&function(e){return{}.hasOwnProperty.call(e,"current")}(n)?null!=n.current?fm({element:n.current,padding:r}).fn(t):{}:n?fm({element:n,padding:r}).fn(t):{}}}),wm=(e,t)=>({...um(e),options:[e,t]}),Nm=(e,t)=>({...dm(e),options:[e,t]}),jm=(e,t)=>({...mm(e),options:[e,t]}),Dm=(e,t)=>({...pm(e),options:[e,t]}),Em={...i},Tm=Em.useInsertionEffect||(e=>e());function Om(e){const t=a.useRef(()=>{});return Tm(()=>{t.current=e}),a.useCallback(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}const Im="ArrowUp",Am="ArrowDown",km="ArrowLeft",Sm="ArrowRight";function _m(e,t,n){return Math.floor(e/t)!==n}function Cm(e,t){return t<0||t>=e.current.length}function zm(e,t){return Pm(e,{disabledIndices:t})}function Lm(e,t){return Pm(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Pm(e,t){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:o,amount:a=1}=void 0===t?{}:t;const i=e.current;let s=n;do{s+=r?-a:a}while(s>=0&&s<=i.length-1&&Qm(i,s,o));return s}function Um(e,t,n,r,o){if(-1===e)return-1;const a=n.indexOf(e),i=t[e];switch(o){case"tl":return a;case"tr":return i?a+i.width-1:a;case"bl":return i?a+(i.height-1)*r:a;case"br":return n.lastIndexOf(e)}}function Rm(e,t){return t.flatMap((t,n)=>e.includes(t)?[n]:[])}function Qm(e,t,n){if(n)return n.includes(t);const r=e[t];return null==r||r.hasAttribute("disabled")||"true"===r.getAttribute("aria-disabled")}var Ym="undefined"!=typeof document?a.useLayoutEffect:a.useEffect;function Bm(e,t){const n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}const Fm=a.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function Wm(e){const{children:t,elementsRef:n,labelsRef:r}=e,[o,i]=a.useState(()=>new Map),s=a.useCallback(e=>{i(t=>new Map(t).set(e,null))},[]),l=a.useCallback(e=>{i(t=>{const n=new Map(t);return n.delete(e),n})},[]);return Ym(()=>{const e=new Map(o);Array.from(e.keys()).sort(Bm).forEach((t,n)=>{e.set(t,n)}),function(e,t){if(e.size!==t.size)return!1;for(const[n,r]of e.entries())if(r!==t.get(n))return!1;return!0}(o,e)||i(e)},[o]),a.createElement(Fm.Provider,{value:a.useMemo(()=>({register:s,unregister:l,map:o,elementsRef:n,labelsRef:r}),[s,l,o,n,r])},t)}function Vm(){return Vm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vm.apply(this,arguments)}let $m=!1,Hm=0;const Gm=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Hm++,Zm=Em.useId||function(){const[e,t]=a.useState(()=>$m?Gm():void 0);return Ym(()=>{null==e&&t(Gm())},[]),a.useEffect(()=>{$m=!0},[]),e},qm=a.forwardRef(function(e,t){const{context:{placement:n,elements:{floating:r},middlewareData:{arrow:o,shift:i}},width:s=14,height:l=7,tipRadius:c=0,strokeWidth:u=0,staticOffset:d,stroke:m,d:p,style:{transform:f,...h}={},...g}=e,y=Zm(),[v,b]=a.useState(!1);if(Ym(()=>{r&&"rtl"===zu(r).direction&&b(!0)},[r]),!r)return null;const[M,x]=n.split("-"),w="top"===M||"bottom"===M;let N=d;(w&&null!=i&&i.x||!w&&null!=i&&i.y)&&(N=null);const j=2*u,D=j/2,E=s/2*(c/-8+1),T=l/2*c/4,O=!!p,I=N&&"end"===x?"bottom":"top";let A=N&&"end"===x?"right":"left";N&&v&&(A="end"===x?"left":"right");const k=null!=(null==o?void 0:o.x)?N||o.x:"",S=null!=(null==o?void 0:o.y)?N||o.y:"",_=p||"M0,0 H"+s+" L"+(s-E)+","+(l-T)+" Q"+s/2+","+l+" "+E+","+(l-T)+" Z",C={top:O?"rotate(180deg)":"",left:O?"rotate(90deg)":"rotate(-90deg)",bottom:O?"":"rotate(180deg)",right:O?"rotate(-90deg)":"rotate(90deg)"}[M];return a.createElement("svg",Vm({},g,{"aria-hidden":!0,ref:t,width:O?s:s+j,height:s,viewBox:"0 0 "+s+" "+(l>s?l:s),style:{position:"absolute",pointerEvents:"none",[A]:k,[I]:S,[M]:w||O?"100%":"calc(100% - "+j/2+"px)",transform:[C,f].filter(e=>!!e).join(" "),...h}}),j>0&&a.createElement("path",{clipPath:"url(#"+y+")",fill:"none",stroke:m,strokeWidth:j+(p?0:1),d:_}),a.createElement("path",{stroke:j&&!p?g.fill:"none",d:_}),a.createElement("clipPath",{id:y},a.createElement("rect",{x:-D,y:D*(O?-1:1),width:s+j,height:s})))});const Km=a.createContext(null),Xm=a.createContext(null),Jm=()=>{var e;return(null==(e=a.useContext(Km))?void 0:e.id)||null},ep=()=>a.useContext(Xm);function tp(e){return"data-floating-ui-"+e}function np(e){const t=(0,a.useRef)(e);return Ym(()=>{t.current=e}),t}const rp=tp("safe-polygon");function op(e,t,n){return n&&!qu(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}let ap=0;function ip(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(ap);const a=()=>null==e?void 0:e.focus({preventScroll:n});o?a():ap=requestAnimationFrame(a)}function sp(e,t){let n=e.filter(e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)}),r=n;for(;r.length;)r=e.filter(e=>{var t;return null==(t=r)?void 0:t.some(t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)})}),n=n.concat(r);return n}let lp=new WeakMap,cp=new WeakSet,up={},dp=0;const mp=e=>e&&(e.host||mp(e.parentNode));function pp(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=Ku(e[0]).body;return function(e,t,n,r){const o="data-floating-ui-inert",a=r?"inert":n?"aria-hidden":null,i=(s=t,e.map(e=>{if(s.contains(e))return e;const t=mp(e);return s.contains(t)?t:null}).filter(e=>null!=e));var s;const l=new Set,c=new Set(i),u=[];up[o]||(up[o]=new WeakMap);const d=up[o];return i.forEach(function e(t){t&&!l.has(t)&&(l.add(t),t.parentNode&&e(t.parentNode))}),function e(t){t&&!c.has(t)&&[].forEach.call(t.children,t=>{if("script"!==hu(t))if(l.has(t))e(t);else{const e=a?t.getAttribute(a):null,n=null!==e&&"false"!==e,r=(lp.get(t)||0)+1,i=(d.get(t)||0)+1;lp.set(t,r),d.set(t,i),u.push(t),1===r&&n&&cp.add(t),1===i&&t.setAttribute(o,""),!n&&a&&t.setAttribute(a,"true")}})}(t),l.clear(),dp++,()=>{u.forEach(e=>{const t=(lp.get(e)||0)-1,n=(d.get(e)||0)-1;lp.set(e,t),d.set(e,n),t||(!cp.has(e)&&a&&e.removeAttribute(a),cp.delete(e)),n||e.removeAttribute(o)}),dp--,dp||(lp=new WeakMap,lp=new WeakMap,cp=new WeakSet,up={})}}(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const fp=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function hp(e,t){const n=Bd(e,fp());"prev"===t&&n.reverse();const r=n.indexOf(Yu(Ku(e)));return n.slice(r+1)[0]}function gp(){return hp(document.body,"next")}function yp(){return hp(document.body,"prev")}function vp(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!Bu(n,r)}function bp(e){Bd(e,fp()).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})}function Mp(e){e.querySelectorAll("[data-tabindex]").forEach(e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}const xp={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function Np(e){"Tab"===e.key&&(e.target,clearTimeout(void 0))}const jp=a.forwardRef(function(e,t){const[n,r]=a.useState();Ym(()=>(Hu()&&r("button"),document.addEventListener("keydown",Np),()=>{document.removeEventListener("keydown",Np)}),[]);const o={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[tp("focus-guard")]:"",style:xp};return a.createElement("span",Vm({},e,o))}),Dp=a.createContext(null),Ep=tp("portal");function Tp(e){const{children:t,id:n,root:r,preserveTabOrder:o=!0}=e,i=function(e){void 0===e&&(e={});const{id:t,root:n}=e,r=Zm(),o=Op(),[i,s]=a.useState(null),l=a.useRef(null);return Ym(()=>()=>{null==i||i.remove(),queueMicrotask(()=>{l.current=null})},[i]),Ym(()=>{if(!r)return;if(l.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=r,n.setAttribute(Ep,""),e.appendChild(n),l.current=n,s(n)},[t,r]),Ym(()=>{if(null===n)return;if(!r)return;if(l.current)return;let e=n||(null==o?void 0:o.portalNode);e&&!bu(e)&&(e=e.current),e=e||document.body;let a=null;t&&(a=document.createElement("div"),a.id=t,e.appendChild(a));const i=document.createElement("div");i.id=r,i.setAttribute(Ep,""),e=a||e,e.appendChild(i),l.current=i,s(i)},[t,n,r,o]),i}({id:n,root:r}),[s,l]=a.useState(null),c=a.useRef(null),u=a.useRef(null),d=a.useRef(null),m=a.useRef(null),p=null==s?void 0:s.modal,f=null==s?void 0:s.open,h=!!s&&!s.modal&&s.open&&o&&!(!r&&!i);return a.useEffect(()=>{if(i&&o&&!p)return i.addEventListener("focusin",e,!0),i.addEventListener("focusout",e,!0),()=>{i.removeEventListener("focusin",e,!0),i.removeEventListener("focusout",e,!0)};function e(e){i&&vp(e)&&("focusin"===e.type?Mp:bp)(i)}},[i,o,p]),a.useEffect(()=>{i&&(f||Mp(i))},[f,i]),a.createElement(Dp.Provider,{value:a.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:c,afterOutsideRef:u,beforeInsideRef:d,afterInsideRef:m,portalNode:i,setFocusManagerState:l}),[o,i])},h&&i&&a.createElement(jp,{"data-type":"outside",ref:c,onFocus:e=>{if(vp(e,i)){var t;null==(t=d.current)||t.focus()}else{const e=yp()||(null==s?void 0:s.refs.domReference.current);null==e||e.focus()}}}),h&&i&&a.createElement("span",{"aria-owns":i.id,style:xp}),i&&Nn.createPortal(t,i),h&&i&&a.createElement(jp,{"data-type":"outside",ref:u,onFocus:e=>{if(vp(e,i)){var t;null==(t=m.current)||t.focus()}else{const t=gp()||(null==s?void 0:s.refs.domReference.current);null==t||t.focus(),(null==s?void 0:s.closeOnFocusOut)&&(null==s||s.onOpenChange(!1,e.nativeEvent,"focus-out"))}}}))}const Op=()=>a.useContext(Dp),Ip="data-floating-ui-focusable";function Ap(e){return e?e.hasAttribute(Ip)?e:e.querySelector("["+Ip+"]")||e:null}let kp=[];function Sp(e){kp=kp.filter(e=>e.isConnected);let t=e;if(t&&"body"!==hu(t)){if(!function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==Id.call(e,Td)&&Rd(t,e)}(t,fp())){const e=Bd(t,fp())[0];e&&(t=e)}kp.push(t),kp.length>20&&(kp=kp.slice(-20))}}function _p(){return kp.slice().reverse().find(e=>e.isConnected)}const Cp=a.forwardRef(function(e,t){return a.createElement("button",Vm({},e,{type:"button",ref:t,tabIndex:-1,style:xp}))});function zp(e){const{context:t,children:n,disabled:r=!1,order:o=["content"],guards:i=!0,initialFocus:s=0,returnFocus:l=!0,restoreFocus:c=!1,modal:u=!0,visuallyHiddenDismiss:d=!1,closeOnFocusOut:m=!0}=e,{open:p,refs:f,nodeId:h,onOpenChange:g,events:y,dataRef:v,floatingId:b,elements:{domReference:M,floating:x}}=t,w="number"==typeof s&&s<0,N=nd(M)&&w,j="undefined"==typeof HTMLElement||!("inert"in HTMLElement.prototype)||i,D=np(o),E=np(s),T=np(l),O=ep(),I=Op(),A=a.useRef(null),k=a.useRef(null),S=a.useRef(!1),_=a.useRef(!1),C=a.useRef(-1),z=null!=I,L=Ap(x),P=Om(function(e){return void 0===e&&(e=L),e?Bd(e,fp()):[]}),U=Om(e=>{const t=P(e);return D.current.map(e=>M&&"reference"===e?M:L&&"floating"===e?L:t).filter(Boolean).flat()});function R(e){return!r&&d&&u?a.createElement(Cp,{ref:"start"===e?A:k,onClick:e=>g(!1,e.nativeEvent)},"string"==typeof d?d:"Dismiss"):null}a.useEffect(()=>{if(r)return;if(!u)return;function e(e){if("Tab"===e.key){Bu(L,Yu(Ku(L)))&&0===P().length&&!N&&td(e);const t=U(),n=Ju(e);"reference"===D.current[0]&&n===M&&(td(e),e.shiftKey?ip(t[t.length-1]):ip(t[1])),"floating"===D.current[1]&&n===L&&e.shiftKey&&(td(e),ip(t[0]))}}const t=Ku(L);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}},[r,M,L,u,D,N,P,U]),a.useEffect(()=>{if(!r&&x)return x.addEventListener("focusin",e),()=>{x.removeEventListener("focusin",e)};function e(e){const t=Ju(e),n=P().indexOf(t);-1!==n&&(C.current=n)}},[r,x,P]),a.useEffect(()=>{if(!r&&m)return x&&Mu(M)?(M.addEventListener("focusout",t),M.addEventListener("pointerdown",e),x.addEventListener("focusout",t),()=>{M.removeEventListener("focusout",t),M.removeEventListener("pointerdown",e),x.removeEventListener("focusout",t)}):void 0;function e(){_.current=!0,setTimeout(()=>{_.current=!1})}function t(e){const t=e.relatedTarget;queueMicrotask(()=>{const n=!(Bu(M,t)||Bu(x,t)||Bu(t,x)||Bu(null==I?void 0:I.portalNode,t)||null!=t&&t.hasAttribute(tp("focus-guard"))||O&&(sp(O.nodesRef.current,h).find(e=>{var n,r;return Bu(null==(n=e.context)?void 0:n.elements.floating,t)||Bu(null==(r=e.context)?void 0:r.elements.domReference,t)})||function(e,t){var n;let r=[],o=null==(n=e.find(e=>e.id===t))?void 0:n.parentId;for(;o;){const t=e.find(e=>e.id===o);o=null==t?void 0:t.parentId,t&&(r=r.concat(t))}return r}(O.nodesRef.current,h).find(e=>{var n,r;return(null==(n=e.context)?void 0:n.elements.floating)===t||(null==(r=e.context)?void 0:r.elements.domReference)===t})));if(c&&n&&Yu(Ku(L))===Ku(L).body){Mu(L)&&L.focus();const e=C.current,t=P(),n=t[e]||t[t.length-1]||L;Mu(n)&&n.focus()}!N&&u||!t||!n||_.current||t===_p()||(S.current=!0,g(!1,e,"focus-out"))})}},[r,M,x,L,u,h,O,I,g,m,c,P,N]),a.useEffect(()=>{var e;if(r)return;const t=Array.from((null==I||null==(e=I.portalNode)?void 0:e.querySelectorAll("["+tp("portal")+"]"))||[]);if(x){const e=[x,...t,A.current,k.current,D.current.includes("reference")||N?M:null].filter(e=>null!=e),n=u||N?pp(e,j,!j):pp(e);return()=>{n()}}},[r,M,x,u,D,I,N,j]),Ym(()=>{if(r||!Mu(L))return;const e=Yu(Ku(L));queueMicrotask(()=>{const t=U(L),n=E.current,r=("number"==typeof n?t[n]:n.current)||L,o=Bu(L,e);w||o||!p||ip(r,{preventScroll:r===L})})},[r,p,L,w,U,E]),Ym(()=>{if(r||!L)return;let e=!1;const t=Ku(L),n=Yu(t);let o=v.current.openEvent;function a(t){let{open:n,reason:r,event:a,nested:i}=t;n&&(o=a),"escape-key"===r&&f.domReference.current&&Sp(f.domReference.current),"hover"===r&&"mouseleave"===a.type&&(S.current=!0),"outside-press"===r&&(i?(S.current=!1,e=!0):S.current=!(Vu(a)||$u(a)))}Sp(n),y.on("openchange",a);const i=t.createElement("span");return i.setAttribute("tabindex","-1"),i.setAttribute("aria-hidden","true"),Object.assign(i.style,xp),z&&M&&M.insertAdjacentElement("afterend",i),()=>{y.off("openchange",a);const n=Yu(t),r=Bu(x,n)||O&&sp(O.nodesRef.current,h).some(e=>{var t;return Bu(null==(t=e.context)?void 0:t.elements.floating,n)});(r||o&&["click","mousedown"].includes(o.type))&&f.domReference.current&&Sp(f.domReference.current);const s="boolean"==typeof T.current?_p()||i:T.current.current||i;queueMicrotask(()=>{T.current&&!S.current&&Mu(s)&&(s===n||n===t.body||r)&&s.focus({preventScroll:e}),i.remove()})}},[r,x,L,T,v,f,y,O,h,z,M]),a.useEffect(()=>{queueMicrotask(()=>{S.current=!1})},[r]),Ym(()=>{if(!r&&I)return I.setFocusManagerState({modal:u,closeOnFocusOut:m,open:p,onOpenChange:g,refs:f}),()=>{I.setFocusManagerState(null)}},[r,I,u,p,g,f,m]),Ym(()=>{if(r)return;if(!L)return;if("function"!=typeof MutationObserver)return;if(w)return;const e=()=>{const e=L.getAttribute("tabindex"),t=P(),n=Yu(Ku(x)),r=t.indexOf(n);-1!==r&&(C.current=r),D.current.includes("floating")||n!==f.domReference.current&&0===t.length?"0"!==e&&L.setAttribute("tabindex","0"):"-1"!==e&&L.setAttribute("tabindex","-1")};e();const t=new MutationObserver(e);return t.observe(L,{childList:!0,subtree:!0,attributes:!0}),()=>{t.disconnect()}},[r,x,L,f,D,P,w]);const Q=!r&&j&&(!u||!N)&&(z||u);return a.createElement(a.Fragment,null,Q&&a.createElement(jp,{"data-type":"inside",ref:null==I?void 0:I.beforeInsideRef,onFocus:e=>{if(u){const e=U();ip("reference"===o[0]?e[0]:e[e.length-1])}else if(null!=I&&I.preserveTabOrder&&I.portalNode)if(S.current=!1,vp(e,I.portalNode)){const e=gp()||M;null==e||e.focus()}else{var t;null==(t=I.beforeOutsideRef.current)||t.focus()}}}),!N&&R("start"),n,R("end"),Q&&a.createElement(jp,{"data-type":"inside",ref:null==I?void 0:I.afterInsideRef,onFocus:e=>{if(u)ip(U()[0]);else if(null!=I&&I.preserveTabOrder&&I.portalNode)if(m&&(S.current=!0),vp(e,I.portalNode)){const e=yp()||M;null==e||e.focus()}else{var t;null==(t=I.afterOutsideRef.current)||t.focus()}}}))}let Lp=0,Pp=()=>{};const Up=a.forwardRef(function(e,t){const{lockScroll:n=!1,...r}=e;return Ym(()=>{if(n)return Lp++,1===Lp&&(Pp=function(){const e=/iP(hone|ad|od)|iOS/.test(Fu()),t=document.body.style,n=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",r=window.innerWidth-document.documentElement.clientWidth,o=t.left?parseFloat(t.left):window.scrollX,a=t.top?parseFloat(t.top):window.scrollY;if(t.overflow="hidden",r&&(t[n]=r+"px"),e){var i,s;const e=(null==(i=window.visualViewport)?void 0:i.offsetLeft)||0,n=(null==(s=window.visualViewport)?void 0:s.offsetTop)||0;Object.assign(t,{position:"fixed",top:-(a-Math.floor(n))+"px",left:-(o-Math.floor(e))+"px",right:"0"})}return()=>{Object.assign(t,{overflow:"",[n]:""}),e&&(Object.assign(t,{position:"",top:"",left:"",right:""}),window.scrollTo(o,a))}}()),()=>{Lp--,0===Lp&&Pp()}},[n]),a.createElement("div",Vm({ref:t},r,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...r.style}}))});function Rp(e){return Mu(e.target)&&"BUTTON"===e.target.tagName}function Qp(e){return ed(e)}function Yp(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,elements:{domReference:i}}=e,{enabled:s=!0,event:l="click",toggle:c=!0,ignoreMouse:u=!1,keyboardHandlers:d=!0,stickIfOpen:m=!0}=t,p=a.useRef(),f=a.useRef(!1),h=a.useMemo(()=>({onPointerDown(e){p.current=e.pointerType},onMouseDown(e){const t=p.current;0===e.button&&"click"!==l&&(qu(t,!0)&&u||(!n||!c||o.current.openEvent&&m&&"mousedown"!==o.current.openEvent.type?(e.preventDefault(),r(!0,e.nativeEvent,"click")):r(!1,e.nativeEvent,"click")))},onClick(e){const t=p.current;"mousedown"===l&&p.current?p.current=void 0:qu(t,!0)&&u||(!n||!c||o.current.openEvent&&m&&"click"!==o.current.openEvent.type?r(!0,e.nativeEvent,"click"):r(!1,e.nativeEvent,"click"))},onKeyDown(e){p.current=void 0,e.defaultPrevented||!d||Rp(e)||(" "!==e.key||Qp(i)||(e.preventDefault(),f.current=!0),"Enter"===e.key&&r(!n||!c,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!d||Rp(e)||Qp(i)||" "===e.key&&f.current&&(f.current=!1,r(!n||!c,e.nativeEvent,"click"))}}),[o,i,l,u,d,r,n,m,c]);return a.useMemo(()=>s?{reference:h}:{},[s,h])}const Bp={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Fp={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Wp=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function Vp(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:i}=e,{enabled:s=!0,escapeKey:l=!0,outsidePress:c=!0,outsidePressEvent:u="pointerdown",referencePress:d=!1,referencePressEvent:m="pointerdown",ancestorScroll:p=!1,bubbles:f,capture:h}=t,g=ep(),y=Om("function"==typeof c?c:()=>!1),v="function"==typeof c?y:c,b=a.useRef(!1),M=a.useRef(!1),{escapeKey:x,outsidePress:w}=Wp(f),{escapeKey:N,outsidePress:j}=Wp(h),D=a.useRef(!1),E=Om(e=>{var t;if(!n||!s||!l||"Escape"!==e.key)return;if(D.current)return;const o=null==(t=i.current.floatingContext)?void 0:t.nodeId,a=g?sp(g.nodesRef.current,o):[];if(!x&&(e.stopPropagation(),a.length>0)){let e=!0;if(a.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)}),!e)return}r(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")}),T=Om(e=>{var t;const n=()=>{var t;E(e),null==(t=Ju(e))||t.removeEventListener("keydown",n)};null==(t=Ju(e))||t.addEventListener("keydown",n)}),O=Om(e=>{var t;const n=b.current;b.current=!1;const a=M.current;if(M.current=!1,"click"===u&&a)return;if(n)return;if("function"==typeof v&&!v(e))return;const s=Ju(e),l="["+tp("inert")+"]",c=Ku(o.floating).querySelectorAll(l);let d=bu(s)?s:null;for(;d&&!Cu(d);){const e=Pu(d);if(Cu(e)||!bu(e))break;d=e}if(c.length&&bu(s)&&!s.matches("html,body")&&!Bu(s,o.floating)&&Array.from(c).every(e=>!Bu(d,e)))return;if(Mu(s)&&k){const t=s.clientWidth>0&&s.scrollWidth>s.clientWidth,n=s.clientHeight>0&&s.scrollHeight>s.clientHeight;let r=n&&e.offsetX>s.clientWidth;if(n&&"rtl"===zu(s).direction&&(r=e.offsetX<=s.offsetWidth-s.clientWidth),r||t&&e.offsetY>s.clientHeight)return}const m=null==(t=i.current.floatingContext)?void 0:t.nodeId,p=g&&sp(g.nodesRef.current,m).some(t=>{var n;return Xu(e,null==(n=t.context)?void 0:n.elements.floating)});if(Xu(e,o.floating)||Xu(e,o.domReference)||p)return;const f=g?sp(g.nodesRef.current,m):[];if(f.length>0){let e=!0;if(f.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)}),!e)return}r(!1,e,"outside-press")}),I=Om(e=>{var t;const n=()=>{var t;O(e),null==(t=Ju(e))||t.removeEventListener(u,n)};null==(t=Ju(e))||t.addEventListener(u,n)});a.useEffect(()=>{if(!n||!s)return;i.current.__escapeKeyBubbles=x,i.current.__outsidePressBubbles=w;let e=-1;function t(e){r(!1,e,"ancestor-scroll")}function a(){window.clearTimeout(e),D.current=!0}function c(){e=window.setTimeout(()=>{D.current=!1},Su()?5:0)}const d=Ku(o.floating);l&&(d.addEventListener("keydown",N?T:E,N),d.addEventListener("compositionstart",a),d.addEventListener("compositionend",c)),v&&d.addEventListener(u,j?I:O,j);let m=[];return p&&(bu(o.domReference)&&(m=Ru(o.domReference)),bu(o.floating)&&(m=m.concat(Ru(o.floating))),!bu(o.reference)&&o.reference&&o.reference.contextElement&&(m=m.concat(Ru(o.reference.contextElement)))),m=m.filter(e=>{var t;return e!==(null==(t=d.defaultView)?void 0:t.visualViewport)}),m.forEach(e=>{e.addEventListener("scroll",t,{passive:!0})}),()=>{l&&(d.removeEventListener("keydown",N?T:E,N),d.removeEventListener("compositionstart",a),d.removeEventListener("compositionend",c)),v&&d.removeEventListener(u,j?I:O,j),m.forEach(e=>{e.removeEventListener("scroll",t)}),window.clearTimeout(e)}},[i,o,l,v,u,n,r,p,s,x,w,E,N,T,O,j,I]),a.useEffect(()=>{b.current=!1},[v,u]);const A=a.useMemo(()=>({onKeyDown:E,[Bp[m]]:e=>{d&&r(!1,e.nativeEvent,"reference-press")}}),[E,r,d,m]),k=a.useMemo(()=>({onKeyDown:E,onMouseDown(){M.current=!0},onMouseUp(){M.current=!0},[Fp[u]]:()=>{b.current=!0}}),[E,u]);return a.useMemo(()=>s?{reference:A,floating:k}:{},[s,A,k])}function $p(e){void 0===e&&(e={});const{nodeId:t}=e,n=function(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=Zm(),i=a.useRef({}),[s]=a.useState(()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter(e=>e!==n))||[])}}}()),l=null!=Jm(),[c,u]=a.useState(r.reference),d=Om((e,t,r)=>{i.current.openEvent=e?t:void 0,s.emit("openchange",{open:e,event:t,reason:r,nested:l}),null==n||n(e,t,r)}),m=a.useMemo(()=>({setPositionReference:u}),[]),p=a.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return a.useMemo(()=>({dataRef:i,open:t,onOpenChange:d,elements:p,events:s,floatingId:o,refs:m}),[t,d,p,s,o,m])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,s]=a.useState(null),[l,c]=a.useState(null),u=(null==o?void 0:o.domReference)||i,d=a.useRef(null),m=ep();Ym(()=>{u&&(d.current=u)},[u]);const p=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[d,m]=a.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,f]=a.useState(r);ym(p,r)||f(r);const[h,g]=a.useState(null),[y,v]=a.useState(null),b=a.useCallback(e=>{e!==N.current&&(N.current=e,g(e))},[]),M=a.useCallback(e=>{e!==j.current&&(j.current=e,v(e))},[]),x=i||h,w=s||y,N=a.useRef(null),j=a.useRef(null),D=a.useRef(d),E=null!=c,T=Mm(c),O=Mm(o),I=Mm(u),A=a.useCallback(()=>{if(!N.current||!j.current)return;const e={placement:t,strategy:n,middleware:p};O.current&&(e.platform=O.current),hm(N.current,j.current,e).then(e=>{const t={...e,isPositioned:!1!==I.current};k.current&&!ym(D.current,t)&&(D.current=t,Nn.flushSync(()=>{m(t)}))})},[p,t,n,O,I]);gm(()=>{!1===u&&D.current.isPositioned&&(D.current.isPositioned=!1,m(e=>({...e,isPositioned:!1})))},[u]);const k=a.useRef(!1);gm(()=>(k.current=!0,()=>{k.current=!1}),[]),gm(()=>{if(x&&(N.current=x),w&&(j.current=w),x&&w){if(T.current)return T.current(x,w,A);A()}},[x,w,A,T,E]);const S=a.useMemo(()=>({reference:N,floating:j,setReference:b,setFloating:M}),[b,M]),_=a.useMemo(()=>({reference:x,floating:w}),[x,w]),C=a.useMemo(()=>{const e={position:n,left:0,top:0};if(!_.floating)return e;const t=bm(_.floating,d.x),r=bm(_.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...vm(_.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,l,_.floating,d.x,d.y]);return a.useMemo(()=>({...d,update:A,refs:S,elements:_,floatingStyles:C}),[d,A,S,_,C])}({...e,elements:{...o,...l&&{reference:l}}}),f=a.useCallback(e=>{const t=bu(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;c(t),p.refs.setReference(t)},[p.refs]),h=a.useCallback(e=>{(bu(e)||null===e)&&(d.current=e,s(e)),(bu(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!bu(e))&&p.refs.setReference(e)},[p.refs]),g=a.useMemo(()=>({...p.refs,setReference:h,setPositionReference:f,domReference:d}),[p.refs,h,f]),y=a.useMemo(()=>({...p.elements,domReference:u}),[p.elements,u]),v=a.useMemo(()=>({...p,...r,refs:g,elements:y,nodeId:t}),[p,g,y,t,r]);return Ym(()=>{r.dataRef.current.floatingContext=v;const e=null==m?void 0:m.nodesRef.current.find(e=>e.id===t);e&&(e.context=v)}),a.useMemo(()=>({...p,context:v,refs:g,elements:y}),[p,g,y,v])}const Hp="active",Gp="selected";function Zp(e,t,n){const r=new Map,o="item"===n;let a=e;if(o&&e){const{[Hp]:t,[Gp]:__,...n}=e;a=n}return{..."floating"===n&&{tabIndex:-1,[Ip]:""},...a,...t.map(t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r}).concat(e).reduce((e,t)=>t?(Object.entries(t).forEach(t=>{let[n,a]=t;var i;o&&[Hp,Gp].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof a&&(null==(i=r.get(n))||i.push(a),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),a=0;a<t;a++)o[a]=arguments[a];return null==(e=r.get(n))?void 0:e.map(e=>e(...o)).find(e=>void 0!==e)})):e[n]=a)}),e):e,{})}}function qp(e){void 0===e&&(e=[]);const t=e.map(e=>null==e?void 0:e.reference),n=e.map(e=>null==e?void 0:e.floating),r=e.map(e=>null==e?void 0:e.item),o=a.useCallback(t=>Zp(t,e,"reference"),t),i=a.useCallback(t=>Zp(t,e,"floating"),n),s=a.useCallback(t=>Zp(t,e,"item"),r);return a.useMemo(()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:s}),[o,i,s])}let Kp=!1;function Xp(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function Jp(e,t){return Xp(t,e===Im||e===Am,e===km||e===Sm)}function ef(e,t,n){return Xp(t,e===Am,n?e===km:e===Sm)||"Enter"===e||" "===e||""===e}function tf(e,t,n){return Xp(t,n?e===Sm:e===km,e===Im)}function nf(e,t){const{open:n,onOpenChange:r,elements:o}=e,{listRef:i,activeIndex:s,onNavigate:l=()=>{},enabled:c=!0,selectedIndex:u=null,allowEscape:d=!1,loop:m=!1,nested:p=!1,rtl:f=!1,virtual:h=!1,focusItemOnOpen:g="auto",focusItemOnHover:y=!0,openOnArrowKeyDown:v=!0,disabledIndices:b,orientation:M="vertical",cols:x=1,scrollItemIntoView:w=!0,virtualItemRef:N,itemSizes:j,dense:D=!1}=t,E=np(Ap(o.floating)),T=Jm(),O=ep(),I=Om(l),A=nd(o.domReference),k=a.useRef(g),S=a.useRef(null!=u?u:-1),_=a.useRef(null),C=a.useRef(!0),z=a.useRef(I),L=a.useRef(!!o.floating),P=a.useRef(n),U=a.useRef(!1),R=a.useRef(!1),Q=np(b),Y=np(n),B=np(w),F=np(u),[W,V]=a.useState(),[$,H]=a.useState(),G=Om(function(e,t,n){function r(e){h?(V(e.id),null==O||O.events.emit("virtualfocus",e),N&&(N.current=e)):ip(e,{preventScroll:!0,sync:!(!Zu()||!Hu())&&(Kp||U.current)})}void 0===n&&(n=!1);const o=e.current[t.current];o&&r(o),requestAnimationFrame(()=>{const a=e.current[t.current]||o;if(!a)return;o||r(a);const i=B.current;i&&q&&(n||!C.current)&&(null==a.scrollIntoView||a.scrollIntoView("boolean"==typeof i?{block:"nearest",inline:"nearest"}:i))})});Ym(()=>{document.createElement("div").focus({get preventScroll(){return Kp=!0,!1}})},[]),Ym(()=>{c&&(n&&o.floating?k.current&&null!=u&&(R.current=!0,S.current=u,I(u)):L.current&&(S.current=-1,z.current(null)))},[c,n,o.floating,u,I]),Ym(()=>{if(c&&n&&o.floating)if(null==s){if(U.current=!1,null!=F.current)return;if(L.current&&(S.current=-1,G(i,S)),(!P.current||!L.current)&&k.current&&(null!=_.current||!0===k.current&&null==_.current)){let e=0;const t=()=>{null==i.current[0]?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e++):(S.current=null==_.current||ef(_.current,M,f)||p?zm(i,Q.current):Lm(i,Q.current),_.current=null,I(S.current))};t()}}else Cm(i,s)||(S.current=s,G(i,S,R.current),R.current=!1)},[c,n,o.floating,s,F,p,i,M,f,I,G,Q]),Ym(()=>{var e;if(!c||o.floating||!O||h||!L.current)return;const t=O.nodesRef.current,n=null==(e=t.find(e=>e.id===T))||null==(e=e.context)?void 0:e.elements.floating,r=Yu(Ku(o.floating)),a=t.some(e=>e.context&&Bu(e.context.elements.floating,r));n&&!a&&C.current&&n.focus({preventScroll:!0})},[c,o.floating,O,T,h]),Ym(()=>{if(c&&O&&h&&!T)return O.events.on("virtualfocus",e),()=>{O.events.off("virtualfocus",e)};function e(e){H(e.id),N&&(N.current=e)}},[c,O,h,T,N]),Ym(()=>{z.current=I,L.current=!!o.floating}),Ym(()=>{n||(_.current=null)},[n]),Ym(()=>{P.current=n},[n]);const Z=null!=s,q=a.useMemo(()=>{function e(e){if(!n)return;const t=i.current.indexOf(e);-1!==t&&I(t)}return{onFocus(t){let{currentTarget:n}=t;e(n)},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})},...y&&{onMouseMove(t){let{currentTarget:n}=t;e(n)},onPointerLeave(e){let{pointerType:t}=e;C.current&&"touch"!==t&&(S.current=-1,G(i,S),I(null),h||ip(E.current,{preventScroll:!0}))}}}},[n,E,G,y,i,I,h]),K=Om(e=>{if(C.current=!1,U.current=!0,229===e.which)return;if(!Y.current&&e.currentTarget===E.current)return;if(p&&tf(e.key,M,f))return td(e),r(!1,e.nativeEvent,"list-navigation"),void(Mu(o.domReference)&&(h?null==O||O.events.emit("virtualfocus",o.domReference):o.domReference.focus()));const t=S.current,a=zm(i,b),s=Lm(i,b);if(A||("Home"===e.key&&(td(e),S.current=a,I(S.current)),"End"===e.key&&(td(e),S.current=s,I(S.current))),x>1){const t=j||Array.from({length:i.current.length},()=>({width:1,height:1})),n=function(e,t,n){const r=[];let o=0;return e.forEach((e,a)=>{let{width:i,height:s}=e,l=!1;for(n&&(o=0);!l;){const e=[];for(let n=0;n<i;n++)for(let r=0;r<s;r++)e.push(o+n+r*t);o%t+i<=t&&e.every(e=>null==r[e])?(e.forEach(e=>{r[e]=a}),l=!0):o++}}),[...r]}(t,x,D),r=n.findIndex(e=>null!=e&&!Qm(i.current,e,b)),o=n.reduce((e,t,n)=>null==t||Qm(i.current,t,b)?e:n,-1),l=n[function(e,t){let{event:n,orientation:r,loop:o,rtl:a,cols:i,disabledIndices:s,minIndex:l,maxIndex:c,prevIndex:u,stopEvent:d=!1}=t,m=u;if(n.key===Im){if(d&&td(n),-1===u)m=c;else if(m=Pm(e,{startingIndex:m,amount:i,decrement:!0,disabledIndices:s}),o&&(u-i<l||m<0)){const e=u%i,t=c%i,n=c-(t-e);m=t===e?c:t>e?n:n-i}Cm(e,m)&&(m=u)}if(n.key===Am&&(d&&td(n),-1===u?m=l:(m=Pm(e,{startingIndex:u,amount:i,disabledIndices:s}),o&&u+i>c&&(m=Pm(e,{startingIndex:u%i-i,amount:i,disabledIndices:s}))),Cm(e,m)&&(m=u)),"both"===r){const t=id(u/i);n.key===(a?km:Sm)&&(d&&td(n),u%i!==i-1?(m=Pm(e,{startingIndex:u,disabledIndices:s}),o&&_m(m,i,t)&&(m=Pm(e,{startingIndex:u-u%i-1,disabledIndices:s}))):o&&(m=Pm(e,{startingIndex:u-u%i-1,disabledIndices:s})),_m(m,i,t)&&(m=u)),n.key===(a?Sm:km)&&(d&&td(n),u%i!==0?(m=Pm(e,{startingIndex:u,decrement:!0,disabledIndices:s}),o&&_m(m,i,t)&&(m=Pm(e,{startingIndex:u+(i-u%i),decrement:!0,disabledIndices:s}))):o&&(m=Pm(e,{startingIndex:u+(i-u%i),decrement:!0,disabledIndices:s})),_m(m,i,t)&&(m=u));const r=id(c/i)===t;Cm(e,m)&&(m=o&&r?n.key===(a?Sm:km)?c:Pm(e,{startingIndex:u-u%i-1,disabledIndices:s}):u)}return m}({current:n.map(e=>null!=e?i.current[e]:null)},{event:e,orientation:M,loop:m,rtl:f,cols:x,disabledIndices:Rm([...b||i.current.map((e,t)=>Qm(i.current,t)?t:void 0),void 0],n),minIndex:r,maxIndex:o,prevIndex:Um(S.current>s?a:S.current,t,n,x,e.key===Am?"bl":e.key===(f?km:Sm)?"tr":"tl"),stopEvent:!0})];if(null!=l&&(S.current=l,I(S.current)),"both"===M)return}if(Jp(e.key,M)){if(td(e),n&&!h&&Yu(e.currentTarget.ownerDocument)===e.currentTarget)return S.current=ef(e.key,M,f)?a:s,void I(S.current);ef(e.key,M,f)?S.current=m?t>=s?d&&t!==i.current.length?-1:a:Pm(i,{startingIndex:t,disabledIndices:b}):Math.min(s,Pm(i,{startingIndex:t,disabledIndices:b})):S.current=m?t<=a?d&&-1!==t?i.current.length:s:Pm(i,{startingIndex:t,decrement:!0,disabledIndices:b}):Math.max(a,Pm(i,{startingIndex:t,decrement:!0,disabledIndices:b})),Cm(i,S.current)?I(null):I(S.current)}}),X=a.useMemo(()=>h&&n&&Z&&{"aria-activedescendant":$||W},[h,n,Z,$,W]),J=a.useMemo(()=>({"aria-orientation":"both"===M?void 0:M,...!nd(o.domReference)&&X,onKeyDown:K,onPointerMove(){C.current=!0}}),[X,K,o.domReference,M]),ee=a.useMemo(()=>{function e(e){"auto"===g&&Vu(e.nativeEvent)&&(k.current=!0)}return{...X,onKeyDown(e){C.current=!1;const t=e.key.startsWith("Arrow"),o=["Home","End"].includes(e.key),a=t||o,s=function(e,t,n){return Xp(t,n?e===km:e===Sm,e===Am)}(e.key,M,f),l=tf(e.key,M,f),c=Jp(e.key,M),d=(p?s:c)||"Enter"===e.key||""===e.key.trim();if(h&&n){const t=null==O?void 0:O.nodesRef.current.find(e=>null==e.parentId),n=O&&t?function(e,t){let n,r=-1;return function t(o,a){a>r&&(n=o,r=a),sp(e,o).forEach(e=>{t(e.id,a+1)})}(t,0),e.find(e=>e.id===n)}(O.nodesRef.current,t.id):null;if(a&&n&&N){const t=new KeyboardEvent("keydown",{key:e.key,bubbles:!0});if(s||l){var m,g;const r=(null==(m=n.context)?void 0:m.elements.domReference)===e.currentTarget,o=l&&!r?null==(g=n.context)?void 0:g.elements.domReference:s?i.current.find(e=>(null==e?void 0:e.id)===W):null;o&&(td(e),o.dispatchEvent(t),H(void 0))}var y;if((c||o)&&n.context&&n.context.open&&n.parentId&&e.currentTarget!==n.context.elements.domReference)return td(e),void(null==(y=n.context.elements.domReference)||y.dispatchEvent(t))}return K(e)}(n||v||!t)&&(d&&(_.current=p&&c?null:e.key),p?s&&(td(e),n?(S.current=zm(i,Q.current),I(S.current)):r(!0,e.nativeEvent,"list-navigation")):c&&(null!=u&&(S.current=u),td(e),!n&&v?r(!0,e.nativeEvent,"list-navigation"):K(e),n&&I(S.current)))},onFocus(){n&&!h&&I(null)},onPointerDown:function(e){k.current=g,"auto"===g&&$u(e.nativeEvent)&&(k.current=!0)},onMouseDown:e,onClick:e}},[W,X,K,Q,g,i,p,I,r,n,v,M,f,u,O,h,N]);return a.useMemo(()=>c?{reference:ee,floating:J,item:q}:{},[c,ee,J,q])}const rf=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function of(e,t){var n;void 0===t&&(t={});const{open:r,floatingId:o}=e,{enabled:i=!0,role:s="dialog"}=t,l=null!=(n=rf.get(s))?n:s,c=Zm(),u=null!=Jm(),d=a.useMemo(()=>"tooltip"===l||"label"===s?{["aria-"+("label"===s?"labelledby":"describedby")]:r?o:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":"alertdialog"===l?"dialog":l,"aria-controls":r?o:void 0,..."listbox"===l&&{role:"combobox"},..."menu"===l&&{id:c},..."menu"===l&&u&&{role:"menuitem"},..."select"===s&&{"aria-autocomplete":"none"},..."combobox"===s&&{"aria-autocomplete":"list"}},[l,o,u,r,c,s]),m=a.useMemo(()=>{const e={id:o,...l&&{role:l}};return"tooltip"===l||"label"===s?e:{...e,..."menu"===l&&{"aria-labelledby":c}}},[l,o,c,s]),p=a.useCallback(e=>{let{active:t,selected:n}=e;const r={role:"option",...t&&{id:o+"-option"}};switch(s){case"select":return{...r,"aria-selected":t&&n};case"combobox":return{...r,...t&&{"aria-selected":!0}}}return{}},[o,s]);return a.useMemo(()=>i?{reference:d,floating:m,item:p}:{},[i,d,m,p])}const af=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(e,t)=>(t?"-":"")+e.toLowerCase());function sf(e,t){return"function"==typeof e?e(t):e}function lf(e,t){void 0===t&&(t={});const{initial:n={opacity:0},open:r,close:o,common:i,duration:s=250}=t,l=e.placement,c=l.split("-")[0],u=a.useMemo(()=>({side:c,placement:l}),[c,l]),d="number"==typeof s,m=(d?s:s.open)||0,p=(d?s:s.close)||0,[f,h]=a.useState(()=>({...sf(i,u),...sf(n,u)})),{isMounted:g,status:y}=function(e,t){void 0===t&&(t={});const{open:n,elements:{floating:r}}=e,{duration:o=250}=t,i=("number"==typeof o?o:o.close)||0,[s,l]=a.useState("unmounted"),c=function(e,t){const[n,r]=a.useState(e);return e&&!n&&r(!0),a.useEffect(()=>{if(!e&&n){const e=setTimeout(()=>r(!1),t);return()=>clearTimeout(e)}},[e,n,t]),n}(n,i);return c||"close"!==s||l("unmounted"),Ym(()=>{if(r){if(n){l("initial");const e=requestAnimationFrame(()=>{l("open")});return()=>{cancelAnimationFrame(e)}}l("close")}},[n,r]),{isMounted:c,status:s}}(e,{duration:s}),v=np(n),b=np(r),M=np(o),x=np(i);return Ym(()=>{const e=sf(v.current,u),t=sf(M.current,u),n=sf(x.current,u),r=sf(b.current,u)||Object.keys(e).reduce((e,t)=>(e[t]="",e),{});if("initial"===y&&h(t=>({transitionProperty:t.transitionProperty,...n,...e})),"open"===y&&h({transitionProperty:Object.keys(r).map(af).join(","),transitionDuration:m+"ms",...n,...r}),"close"===y){const r=t||e;h({transitionProperty:Object.keys(r).map(af).join(","),transitionDuration:p+"ms",...n,...r})}},[p,M,v,b,x,m,y,u]),{isMounted:g,styles:f}}function cf(e,t){const[n,r]=e;let o=!1;const a=t.length;for(let e=0,i=a-1;e<a;i=e++){const[a,s]=t[e]||[0,0],[l,c]=t[i]||[0,0];s>=r!=c>=r&&n<=(l-a)*(r-s)/(c-s)+a&&(o=!o)}return o}function uf(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let o,a=!1,i=null,s=null,l=performance.now();const c=e=>{let{x:n,y:c,placement:u,elements:d,onClose:m,nodeId:p,tree:f}=e;return function(e){function h(){clearTimeout(o),m()}if(clearTimeout(o),!d.domReference||!d.floating||null==u||null==n||null==c)return;const{clientX:g,clientY:y}=e,v=[g,y],b=Ju(e),M="mouseleave"===e.type,x=Bu(d.floating,b),w=Bu(d.domReference,b),N=d.domReference.getBoundingClientRect(),j=d.floating.getBoundingClientRect(),D=u.split("-")[0],E=n>j.right-j.width/2,T=c>j.bottom-j.height/2,O=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(v,N),I=j.width>N.width,A=j.height>N.height,k=(I?N:j).left,S=(I?N:j).right,_=(A?N:j).top,C=(A?N:j).bottom;if(x&&(a=!0,!M))return;if(w&&(a=!1),w&&!M)return void(a=!0);if(M&&bu(e.relatedTarget)&&Bu(d.floating,e.relatedTarget))return;if(f&&sp(f.nodesRef.current,p).some(e=>{let{context:t}=e;return null==t?void 0:t.open}))return;if("top"===D&&c>=N.bottom-1||"bottom"===D&&c<=N.top+1||"left"===D&&n>=N.right-1||"right"===D&&n<=N.left+1)return h();let z=[];switch(D){case"top":z=[[k,N.top+1],[k,j.bottom-1],[S,j.bottom-1],[S,N.top+1]];break;case"bottom":z=[[k,j.top+1],[k,N.bottom-1],[S,N.bottom-1],[S,j.top+1]];break;case"left":z=[[j.right-1,C],[j.right-1,_],[N.left+1,_],[N.left+1,C]];break;case"right":z=[[N.right-1,C],[N.right-1,_],[j.left+1,_],[j.left+1,C]]}if(!cf([g,y],z)){if(a&&!O)return h();if(!M&&r){const t=function(e,t){const n=performance.now(),r=n-l;if(null===i||null===s||0===r)return i=e,s=t,l=n,null;const o=e-i,a=t-s,c=Math.sqrt(o*o+a*a);return i=e,s=t,l=n,c/r}(e.clientX,e.clientY);if(null!==t&&t<.1)return h()}cf([g,y],function(e){let[n,r]=e;switch(D){case"top":return[[I?n+t/2:E?n+4*t:n-4*t,r+t+1],[I?n-t/2:E?n+4*t:n-4*t,r+t+1],[j.left,E||I?j.bottom-t:j.top],[j.right,E?I?j.bottom-t:j.top:j.bottom-t]];case"bottom":return[[I?n+t/2:E?n+4*t:n-4*t,r-t],[I?n-t/2:E?n+4*t:n-4*t,r-t],[j.left,E||I?j.top+t:j.bottom],[j.right,E?I?j.top+t:j.bottom:j.top+t]];case"left":{const e=[n+t+1,A?r+t/2:T?r+4*t:r-4*t],o=[n+t+1,A?r-t/2:T?r+4*t:r-4*t];return[[T||A?j.right-t:j.left,j.top],[T?A?j.right-t:j.left:j.right-t,j.bottom],e,o]}case"right":return[[n-t,A?r+t/2:T?r+4*t:r-4*t],[n-t,A?r-t/2:T?r+4*t:r-4*t],[T||A?j.left+t:j.right,j.top],[T?A?j.left+t:j.right:j.left+t,j.bottom]]}}([n,c]))?!a&&r&&(o=window.setTimeout(h,40)):h()}}};return c.__options={blockPointerEvents:n},c}const df=Je("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),mf=(0,a.createContext)({}),pf=()=>(0,a.useContext)(mf),ff=({size:e="md",children:t,className:n})=>(0,Ge.jsx)(mf.Provider,{value:{size:e},children:(0,Ge.jsx)("div",{className:en("flex flex-col bg-background-primary p-2",n),children:t})});ff.displayName="Menu";const hf=({heading:e,arrow:t=!1,showArrowOnHover:n=!1,open:r=!0,onClick:o,children:i,className:s})=>{const[l,c]=(0,a.useState)(r),[u,d]=(0,a.useState)(!1),{size:m}=pf(),p={sm:"text-xs",md:"text-sm"}[m??"md"],f={sm:"size-4",md:"size-5"}[m??"md"],h=()=>{c(!l),o&&o(!l)};return(0,Ge.jsxs)("div",{children:[!!e&&(0,Ge.jsxs)("div",{role:"button",tabIndex:0,onClick:h,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&h()},onMouseEnter:()=>n&&d(!0),onMouseLeave:()=>n&&d(!1),className:en("text-text-primary bg-transparent cursor-pointer flex justify-between items-center gap-1",p,e?"p-1":"p-0",s),"aria-expanded":l,children:[(0,Ge.jsx)("span",{className:"text-text-tertiary",children:e}),t&&(0,Ge.jsx)(au.span,{className:"flex items-center text-border-strong",initial:"hidden",animate:n?l||u?"visible":"hidden":"visible",exit:"hidden",variants:{visible:{opacity:1},hidden:{opacity:0}},transition:{duration:.15},children:(0,Ge.jsx)(au.span,{className:"inline-flex p-1",variants:{open:{rotate:180},closed:{rotate:0}},animate:l?"open":"closed",transition:{duration:.15},children:(0,Ge.jsx)(df,{className:en("shrink-0",f)})})})]}),(0,Ge.jsx)(Un,{initial:!1,children:l&&(0,Ge.jsx)(au.ul,{role:"menu",variants:{open:{height:"auto",opacity:1},closed:{height:0,opacity:0}},initial:"closed",animate:"open",exit:"closed",transition:{duration:.3,ease:"easeInOut"},className:"overflow flex gap-0.5 flex-col m-0 bg-white rounded p-0",children:i})})]})};hf.displayName="Menu.List";const gf=({disabled:e=!1,active:t,onClick:n,children:r,className:o,...a})=>{const{size:i}=pf(),s={sm:"[&>svg]:size-4 [&>svg]:m-1 [&>*:not(svg)]:mx-1 [&>*:not(svg)]:my-0.5 text-sm",md:"[&>svg]:size-5 [&>svg]:m-1.5 [&>*:not(svg)]:m-1 text-base"}[i??"md"];return(0,Ge.jsx)("li",{role:"menuitem",tabIndex:e?-1:0,onClick:e?void 0:n,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&n?.()},className:en("flex p-1 gap-1 items-center bg-transparent border-none rounded text-text-secondary cursor-pointer m-0",s,"hover:bg-background-secondary hover:text-text-primary",e?"text-text-disabled hover:text-text-disabled cursor-not-allowed hover:bg-transparent":"",t?"text-icon-primary [&>svg]:text-icon-interactive bg-background-secondary":"","transition-colors duration-300 ease-in-out",o),"aria-disabled":e,...a,children:r})};gf.displayName="Menu.Item";const yf=({variant:e="solid",className:t})=>{const n={solid:"border-solid",dashed:"border-dashed",dotted:"border-dotted",double:"border-double",hidden:"border-hidden",none:"border-none"}[e];return(0,Ge.jsx)("li",{className:"m-0 p-0 list-none",role:"separator","aria-hidden":"true",children:(0,Ge.jsx)("hr",{className:en("w-full border-0 border-t border-border-subtle",n,t)})})};yf.displayName="Menu.Separator",ff.List=hf,ff.Item=gf,ff.Separator=yf;const vf=(0,a.createContext)({}),bf=()=>(0,a.useContext)(vf),Mf=({placement:e="bottom",offset:t=10,boundary:n="clippingAncestors",children:r,className:o})=>{const[i,s]=(0,a.useState)(!1),{refs:l,floatingStyles:c,context:u}=$p({open:i,onOpenChange:s,placement:e,strategy:"fixed",middleware:[wm(t),jm({boundary:n}),Nm({boundary:n})],whileElementsMounted:cm}),d=Yp(u),m=Vp(u),p=of(u,{role:"menu"}),{getReferenceProps:f,getFloatingProps:h}=qp([d,m,p]),{isMounted:g,styles:y}=lf(u,{duration:150,initial:{opacity:0,scale:.95},open:{opacity:1,scale:1},close:{opacity:0,scale:.95}}),v=()=>s(e=>!e);return(0,Ge.jsx)(vf.Provider,{value:{refs:l,handleClose:()=>s(!1),isMounted:g,styles:y,floatingStyles:c,getFloatingProps:h},children:(0,Ge.jsxs)("div",{className:en("relative inline-block",o),children:[a.Children.map(r,e=>a.isValidElement(e)&&"DropdownMenu.Trigger"===e?.type?.displayName?(0,a.cloneElement)(e,{ref:l.setReference,onClick:v,...f()}):null),a.Children.toArray(r).filter(e=>a.isValidElement(e)&&["DropdownMenu.Portal","DropdownMenu.ContentWrapper"].includes(e.type.displayName||"")).map(e=>e)]})})};Mf.displayName="DropdownMenu";const xf=({children:e,className:t})=>{const{refs:n,floatingStyles:r,getFloatingProps:o,isMounted:i,styles:s}=bf();return i&&(0,Ge.jsx)("div",{ref:n.setFloating,className:t,style:{...r,...s},...o(),children:a.Children.map(e,e=>"DropdownMenu.Content"===e?.type?.displayName?e:null)})};xf.displayName="DropdownMenu.ContentWrapper";const wf=({children:e,root:t,id:n})=>(0,Ge.jsx)(Tp,{id:n,root:t,children:e});wf.displayName="DropdownMenu.Portal";const Nf=a.forwardRef(({children:e,className:t,...n},r)=>(0,a.isValidElement)(e)?a.cloneElement(e,{className:en(t,e.props.className),ref:r,...n}):(0,Ge.jsx)("div",{ref:r,className:en("cursor-pointer",t),role:"button",tabIndex:0,...n,children:e}));Nf.displayName="DropdownMenu.Trigger";const jf=({children:e,className:t,...n})=>(0,Ge.jsx)("div",{className:en("border border-solid border-border-subtle rounded-md shadow-lg overflow-hidden",t),children:(0,Ge.jsx)(ff,{...n,children:e})});jf.displayName="DropdownMenu.Content";const Df=e=>(0,Ge.jsx)(ff.List,{...e});Df.displayName="DropdownMenu.List";const Ef=({children:e,as:t=ff.Item,...n})=>{const{handleClose:r}=bf();return e?t===a.Fragment&&(0,a.isValidElement)(e)?(0,a.cloneElement)(e,{onClick:tn(e.props?.onClick,r)}):(0,Ge.jsx)(t,{...n,className:en("px-2",n.className),onClick:tn(n.onClick,r),children:e}):null};Ef.displayName="DropdownMenu.Item";const Tf=e=>(0,Ge.jsx)(ff.Separator,{...e});Tf.displayName="DropdownMenu.Separator",Mf.Trigger=Nf,Mf.Content=jf,Mf.List=Df,Mf.Item=Ef,Mf.Separator=Tf,Mf.Portal=wf,Mf.ContentWrapper=xf;const Of=(0,a.forwardRef)(({label:e="",size:t="sm",className:n="",type:r="pill",variant:o="neutral",icon:a=null,disabled:i=!1,onClose:s=()=>{},closable:l=!1,onMouseDown:c=()=>{},disableHover:u=!1},d)=>{const m={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 p="",f="group relative justify-center flex items-center cursor-pointer";const h={xxs:"[&>svg]:size-3",xs:"[&>svg]:size-3",sm:"[&>svg]:size-3",md:"[&>svg]:size-4",lg:"[&>svg]:size-5"};return i?(p=m.disabled,f+=" cursor-not-allowed disabled"):p=m[o],e?(0,Ge.jsxs)("span",{className:en("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",p,!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:[a?(0,Ge.jsx)("span",{className:en("justify-center flex items-center",h[t]),children:a}):null,(0,Ge.jsx)("span",{className:"px-1 truncate inline-block",children:e}),l&&(0,Ge.jsxs)("span",{className:en(f,h[t]),onMouseDown:c,role:"button",tabIndex:0,...!i&&{onClick:s},children:[(0,Ge.jsx)("span",{className:"sr-only",children:`Remove ${e}`}),(0,Ge.jsx)(et,{}),(0,Ge.jsx)("span",{className:"absolute -inset-1"})]})]}):null});Of.displayName="Badge";const If=(0,a.createContext)({}),Af=If.Provider,kf=()=>(0,a.useContext)(If),Sf=(e,t,n)=>{if(!e||!t)return{open:()=>({}),closed:()=>({})};const r=e?.getBoundingClientRect(),o=t?.getBoundingClientRect(),a=n?r?.x-o?.x+r?.width/2:o?.width-(o?.right-r?.x)+r?.width/2,i=r?.y-o?.y+r?.height/2;return{open:(e=1e3)=>({clipPath:`circle(${2*e+200}px at ${a}px ${i}px)`,background:"rgb(255, 255, 255, 1)",transition:{type:"spring",stiffness:20,restDelta:2,background:{duration:0}}}),closed:{clipPath:`circle(${r?.width/2}px at ${a}px ${i}px)`,background:"rgb(255, 255, 255, 0)",transition:{delay:.5,type:"spring",stiffness:400,damping:40,background:{duration:0,delay:1e3}}}}},_f=e=>(0,Ge.jsx)(au.path,{className:"stroke-icon-primary",fill:"transparent",strokeWidth:"3",strokeLinecap:"round",...e}),Cf=({className:e})=>{const{toggleOpen:t,setTriggerRef:n}=kf();return(0,Ge.jsx)(dn,{ref:n,className:en("relative z-[1] rounded-full hover:shadow-sm focus:[box-shadow:none] pointer-events-auto bg-background-primary",e),variant:"ghost",size:"xs",onClick:t,"aria-label":"Toggle menu",icon:(0,Ge.jsxs)(au.svg,{className:"shrink-0 stroke-icon-primary",width:"23",height:"23",variants:{open:{viewBox:"0 0 20 20"},closed:{viewBox:"0 0 23 18"}},children:[(0,Ge.jsx)(_f,{variants:{closed:{d:"M 2 2.5 L 20 2.5"},open:{d:"M 3 16.5 L 17 2.5"}}}),(0,Ge.jsx)(_f,{d:"M 2 9.423 L 20 9.423",variants:{closed:{opacity:1},open:{opacity:0}},transition:{duration:.1}}),(0,Ge.jsx)(_f,{variants:{closed:{d:"M 2 16.346 L 20 16.346"},open:{d:"M 3 2.5 L 17 16.346"}}})]})})},zf={open:{transition:{staggerChildren:.07,delayChildren:.2}},closed:{transition:{staggerChildren:.05,staggerDirection:-1}}},Lf=({tag:e="a",active:t,icon:n,iconPosition:r="left",className:o,children:i,...s})=>{let l=null,c=null;const u=n&&(0,a.isValidElement)(n)?(0,a.cloneElement)(n,{key:"left-icon",className:en("size-5",t?"text-brand-800":"text-icon-secondary",n.props?.className??"")}):null;switch(r){case"left":l=u;break;case"right":c=u;break;default:l=null,c=null}return(0,Ge.jsx)(Uf,{children:(0,Ge.jsxs)(e,{className:en("w-full no-underline hover:no-underline text-text-primary text-lg font-medium flex items-center gap-2 px-2.5 py-1.5 rounded-md hover:bg-background-secondary hover:text-text-primary focus:outline-none focus:shadow-none transition ease-in-out duration-150",t?"text-text-primary bg-background-secondary":"text-text-secondary",o),...s,children:[!!l&&l,(0,Ge.jsx)("span",{className:"contents",children:i}),!!c&&c]})})},Pf={open:{y:0,opacity:1,transition:{y:{stiffness:1e3,velocity:-100}}},closed:{y:50,opacity:0,transition:{y:{stiffness:1e3}}}},Uf=({children:e})=>(0,Ge.jsx)(au.li,{className:"m-0 p-0 flex items-center justify-start w-full",variants:Pf,whileHover:{scale:1.05},whileTap:{scale:.95},children:e}),Rf=({children:e,className:t})=>{const{triggerRef:n,triggerOnRight:r,triggerOnLeft:o}=kf(),[i,s]=(0,a.useState)(null);return n?(0,Ge.jsxs)(au.div,{ref:s,className:en("absolute top-0 bottom-0 w-80 h-screen",r?"right-0":"left-0",t),children:[i&&(0,Ge.jsx)(au.div,{className:en("bg-background-primary shadow-lg absolute top-0 bottom-0 w-80 border-y-0 border-l-0 border-r border-solid border-border-subtle",r?"right-0":"left-0"),variants:Sf(n,i,o??!1)}),(0,Ge.jsx)(au.ul,{variants:zf,className:en("relative mt-14 mb-0 w-full px-5 pb-5 pt-2 flex flex-col items-start justify-start gap-0.5",t),children:e})]}):null},Qf=({className:e,children:t})=>{const[n,r]=function(...e){const t=(0,a.useRef)(0),[n,r]=(0,a.useState)(e[t.current]),o=(0,a.useCallback)(n=>{t.current="number"!=typeof n?((e,t,n)=>{const r=t-0;return((n-0)%r+r)%r+0})(0,e.length,t.current+1):n,r(e[t.current])},[e.length,...e]);return[n,o]}(!1,!0),[o,i]=(0,a.useState)(null),s=(0,a.useRef)(null),{height:l}=(e=>{const t=(0,a.useRef)({width:0,height:0});return(0,a.useEffect)(()=>{e.current&&(t.current.width=e.current.offsetWidth,t.current.height=e.current.offsetHeight)},[]),t.current})(s),{isRight:c=!1,isLeft:u=!0}=(e=>{if(!e)return{error:"Element not found."};const t=e.getBoundingClientRect(),n=window.innerWidth,r=n/2,o=t.right<r,a=t.left>r;return{isLeft:o,isRight:a,isCenter:!o&&!a,elementRect:{left:t.left,right:t.right,width:t.width},viewport:{width:n,center:r}}})(o);return(0,Ge.jsx)(Af,{value:{isOpen:n,toggleOpen:r,setTriggerRef:e=>{(0,a.startTransition)(()=>{i(e)})},triggerRef:o,triggerOnRight:c,triggerOnLeft:u},children:(0,Ge.jsx)("div",{className:en("size-6 z-[1]",e),children:(0,Ge.jsx)(au.nav,{className:"h-full",initial:!1,animate:n?"open":"closed",custom:l,variants:{open:{pointerEvents:"auto"},closed:{pointerEvents:"none"}},ref:s,children:t})})})};Qf.displayName="HamburgerMenu",Cf.displayName="HamburgerMenu.Toggle",Rf.displayName="HamburgerMenu.Options",Lf.displayName="HamburgerMenu.Option",Qf.Options=Rf,Qf.Option=Lf,Qf.Toggle=Cf;const Yf=window.wp.i18n;function Bf({title:e,titleId:t,...n},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"}))}const Ff=a.forwardRef(Bf),Wf="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiByeD0iMiIgZmlsbD0iI0YwNjQzNCIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTE2Ljk3OTUgNS43NjQ2OUMxNy4wNDI4IDUuNTQ4NDggMTcuMjQxMSA1LjM5OTkgMTcuNDY2NCA1LjM5OTlIMTkuMjkyNkMxOS41NzI4IDUuMzk5OSAxOS43OTk5IDUuNjI3MDIgMTkuNzk5OSA1LjkwNzE5QzE5Ljc5OTkgNi4xODczNiAxOS41NzI4IDYuNDE0NDggMTkuMjkyNiA2LjQxNDQ4SDE3Ljg0NjVMMTUuNjc5NSAxMy44MTgzQzE1Ljg3NDMgMTMuODg0NiAxNi4wNTQ3IDEzLjk4NzggMTYuMjA5IDE0LjEzNzVDMTYuNTI4MyAxNC40NDczIDE2LjY1NDcgMTQuODc3NCAxNi42NTQ3IDE1LjM0MjhDMTYuNjU0NyAxNS44MDcyIDE2LjUyOTQgMTYuMjQ2NyAxNi4yMzE3IDE2LjU3NTNDMTUuOTUyNyAxNi44ODMyIDE1LjU3MDYgMTcuMDQwNSAxNS4xNDY2IDE3LjA2NDRDMTUuMjAzNCAxNy4yMjM5IDE1LjIzNDMgMTcuMzk1OCAxNS4yMzQzIDE3LjU3NDhDMTUuMjM0MyAxOC40MTU0IDE0LjU1MjkgMTkuMDk2NyAxMy43MTI0IDE5LjA5NjdDMTIuODcxOSAxOS4wOTY3IDEyLjE5MDYgMTguNDE1NCAxMi4xOTA2IDE3LjU3NDhDMTIuMTkwNiAxNy4zOTcgMTIuMjIxMSAxNy4yMjYyIDEyLjI3NzIgMTcuMDY3NkgxMC40ODA2QzEwLjUzNjcgMTcuMjI2MiAxMC41NjcyIDE3LjM5NyAxMC41NjcyIDE3LjU3NDhDMTAuNTY3MiAxOC40MTU0IDkuODg1ODcgMTkuMDk2NyA5LjA0NTM3IDE5LjA5NjdDOC4yMDQ4NiAxOS4wOTY3IDcuNTIzNSAxOC40MTU0IDcuNTIzNSAxNy41NzQ4QzcuNTIzNSAxNi43MzQzIDguMjA0ODYgMTYuMDUzIDkuMDQ1MzcgMTYuMDUzSDE1LjAzMTRDMTUuMjcxOCAxNi4wNTMgMTUuNDAzMyAxNS45Nzg1IDE1LjQ3OTggMTUuODk0MUMxNS41NjI1IDE1LjgwMjggMTUuNjQwMSAxNS42MzM1IDE1LjY0MDEgMTUuMzQyOEMxNS42NDAxIDE1LjA1MyAxNS41NjM3IDE0LjkyNTEgMTUuNTAyNCAxNC44NjU2QzE1LjQzODQgMTQuODAzNSAxNS4zMDY0IDE0LjczNCAxNS4wMzE0IDE0LjczNEg3LjkyNjQ1QzcuNTIzNyAxNC43MzQgNy4xNjg1MSAxNC40NzAyIDcuMDUyMjIgMTQuMDg0Nkw1LjQ0ODE4IDguNzY1ODhDNS4yMzIxMiA4LjA0OTQ5IDUuNzY4NDEgNy4zMjc2IDYuNTE2NjggNy4zMjc2SDE2LjUyMjFMMTYuOTc5NSA1Ljc2NDY5Wk0xNi4yMjUxIDguMzQyMThIMTQuNDc3NUwxNC4zMTQyIDkuNDU4MjJIMTUuODk4NUwxNi4yMjUxIDguMzQyMThaTTE1LjYwMTUgMTAuNDcyOEgxNC4xNjU3TDE0LjAwMjQgMTEuNTg4OEgxNS4yNzQ5TDE1LjYwMTUgMTAuNDcyOFpNMTQuOTc3OSAxMi42MDM0SDEzLjg1MzlMMTMuNjkwNiAxMy43MTk0SDE0LjY1MTNMMTQuOTc3OSAxMi42MDM0Wk0xMi42NjUyIDEzLjcxOTRMMTIuODI4NSAxMi42MDM0SDExLjY4MzNWMTMuNzE5NEgxMi42NjUyWk0xMC42Njg3IDEzLjcxOTRWMTIuNjAzNEg5LjU4NjE2TDkuODUxODkgMTMuNzE5NEgxMC42Njg3Wk04LjgwODk1IDEzLjcxOTRMOC41NDMyMiAxMi42MDM0SDcuNjY1MjRMOC4wMDE4MiAxMy43MTk0SDguODA4OTVaTTcuMzU5MjYgMTEuNTg4OEg4LjMwMTY2TDguMDM1OTMgMTAuNDcyOEg3LjAyMjY3TDcuMzU5MjYgMTEuNTg4OFpNNi43MTY2OSA5LjQ1ODIySDcuNzk0MzdMNy41Mjg2NCA4LjM0MjE4SDYuNTE2NjhDNi40NDg2NSA4LjM0MjE4IDYuMzk5OSA4LjQwNzgxIDYuNDE5NTQgOC40NzI5M0w2LjcxNjY5IDkuNDU4MjJaTTguNTcxNTggOC4zNDIxOEw4LjgzNzMxIDkuNDU4MjJIMTAuNjY4N1Y4LjM0MjE4SDguNTcxNThaTTExLjY4MzMgOC4zNDIxOFY5LjQ1ODIySDEzLjI4ODhMMTMuNDUyMSA4LjM0MjE4SDExLjY4MzNaTTEzLjE0MDMgMTAuNDcyOEgxMS42ODMzVjExLjU4ODhIMTIuOTc3TDEzLjE0MDMgMTAuNDcyOFpNMTAuNjY4NyAxMS41ODg4VjEwLjQ3MjhIOS4wNzg4N0w5LjM0NDYgMTEuNTg4OEgxMC42Njg3Wk05LjA0NTM3IDE3LjA2NzZDOC43NjUyIDE3LjA2NzYgOC41MzgwOCAxNy4yOTQ3IDguNTM4MDggMTcuNTc0OEM4LjUzODA4IDE3Ljg1NSA4Ljc2NTIgMTguMDgyMSA5LjA0NTM3IDE4LjA4MjFDOS4zMjU1NCAxOC4wODIxIDkuNTUyNjYgMTcuODU1IDkuNTUyNjYgMTcuNTc0OEM5LjU1MjY2IDE3LjI5NDcgOS4zMjU1NCAxNy4wNjc2IDkuMDQ1MzcgMTcuMDY3NlpNMTMuNzEyNCAxNy4wNjc2QzEzLjQzMjMgMTcuMDY3NiAxMy4yMDUxIDE3LjI5NDcgMTMuMjA1MSAxNy41NzQ4QzEzLjIwNTEgMTcuODU1IDEzLjQzMjMgMTguMDgyMSAxMy43MTI0IDE4LjA4MjFDMTMuOTkyNiAxOC4wODIxIDE0LjIxOTcgMTcuODU1IDE0LjIxOTcgMTcuNTc0OEMxNC4yMTk3IDE3LjI5NDcgMTMuOTkyNiAxNy4wNjc2IDEzLjcxMjQgMTcuMDY3NloiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo=";var Vf=function(e,t,n,r){return new(n||(n=Promise))(function(o,a){function i(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){e.done?o(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(i,s)}l((r=r.apply(e,t||[])).next())})};const $f={rssFeedURL:"",selector:"",uniqueKey:"",loaderIcon:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid">\n\t<circle cx="50" cy="50" fill="none" stroke="#9f9f9f" stroke-width="10" r="35" stroke-dasharray="164.93361431346415 56.97787143782138">\n\t\t<animateTransform attributeName="transform" type="rotate" repeatCount="indefinite" dur="1s" values="0 50 50;360 50 50" keyTimes="0;1"></animateTransform>\n\t</circle>\n\t</svg>',viewAll:{link:"",label:"View All"},triggerButton:{label:"",icon:'<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8.61703 13.1998C8.04294 13.1503 7.46192 13.125 6.875 13.125H6.25C4.17893 13.125 2.5 11.4461 2.5 9.375C2.5 7.30393 4.17893 5.625 6.25 5.625H6.875C7.46192 5.625 8.04294 5.59972 8.61703 5.55018M8.61703 13.1998C8.82774 14.0012 9.1031 14.7764 9.43719 15.5195C9.64341 15.9782 9.48685 16.5273 9.05134 16.7787L8.50441 17.0945C8.04492 17.3598 7.45466 17.1921 7.23201 16.7106C6.70983 15.5811 6.30451 14.3866 6.03155 13.1425M8.61703 13.1998C8.29598 11.9787 8.125 10.6968 8.125 9.375C8.125 8.05316 8.29598 6.77125 8.61703 5.55018M8.61703 13.1998C11.25 13.427 13.737 14.1643 15.9789 15.3124M8.61703 5.55018C11.25 5.323 13.737 4.58569 15.9789 3.43757M15.9789 3.43757C15.8808 3.12162 15.7751 2.80903 15.662 2.5M15.9789 3.43757C16.4247 4.87356 16.7131 6.37885 16.8238 7.93326M15.9789 15.3124C15.8808 15.6284 15.7751 15.941 15.662 16.25M15.9789 15.3124C16.4247 13.8764 16.7131 12.3711 16.8238 10.8167M16.8238 7.93326C17.237 8.2772 17.5 8.79539 17.5 9.375C17.5 9.95461 17.237 10.4728 16.8238 10.8167M16.8238 7.93326C16.8578 8.40942 16.875 8.8902 16.875 9.375C16.875 9.8598 16.8578 10.3406 16.8238 10.8167" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',beforeBtn:"",afterBtn:"",className:"",onClick:()=>{}},notification:{setLastPostUnixTime:null,getLastPostUnixTime:null},flyout:{title:"What's New?",innerContent:{titleLink:!0,additionalClasses:[]},excerpt:{wordLimit:500,moreSymbol:"&hellip;",readMore:{label:"Read More",className:""}},className:"",closeOnEsc:!0,closeOnOverlayClick:!0,closeBtnIcon:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 18L18 6M6 6L18 18" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',formatDate:null,onOpen:()=>{},onClose:()=>{},onReady:()=>{}}};class Hf{constructor(e){this.rssFeedURLs=[],this.lastPostUnixTime=0,this.multiLastPostUnixTime={},this.notificationsCount=0,this.multiNotificationCount={},this.hasNewFeeds=!1,this.multiHasNewFeeds={},this.validateArgs(e),this.parseDefaults(e),this.setElement(),this.getElement()?(this.setID(),this.setRSSFeedURLs(),Gf.setInstanceID(this.getID()),this.RSS_Fetch_Instance=new Zf(this),this.RSS_View_Instance=new qf(this),this.setNotificationsCount(),this.setTriggers()):console.warn("WNR: Cannot find element with",this.getArgs().selector)}validateArgs(e){["rssFeedURL","selector","uniqueKey"].forEach(t=>{if(!e[t])throw new Error(`${t} is a required argument. It cannot be empty or undefined.`);if("rssFeedURL"===t){const n=e[t];Array.isArray(n)&&n.forEach(e=>{if(!(null==e?void 0:e.key))throw new Error(`The parameter "key" is required for "${t}" parameter in multi-feed mode.`);if(e.key.includes(" "))throw new Error(`The parameter "key" cannot have spaces for "${t}" parameter in multi-feed mode. Ref Key: "${e.key}"`)})}})}parseDefaults(e){var t,n;this.args=Object.assign(Object.assign(Object.assign({},$f),e),{viewAll:Object.assign(Object.assign({},$f.viewAll),null==e?void 0:e.viewAll),triggerButton:Object.assign(Object.assign({},$f.triggerButton),null==e?void 0:e.triggerButton),flyout:Object.assign(Object.assign(Object.assign({},$f.flyout),null==e?void 0:e.flyout),{innerContent:Object.assign(Object.assign({},$f.flyout.innerContent),null===(t=null==e?void 0:e.flyout)||void 0===t?void 0:t.innerContent),excerpt:Object.assign(Object.assign({},$f.flyout.excerpt),null===(n=null==e?void 0:e.flyout)||void 0===n?void 0:n.excerpt)})})}getArgs(){return this.args}setElement(){this.element=document.querySelector(this.args.selector)}getElement(){return this.element}setID(){const e=[this.getArgs().selector,this.getArgs().uniqueKey],t=this.getArgs().rssFeedURL;Array.isArray(t)?t.forEach(t=>{e.push(t.key)}):e.push(t),this.ID=btoa(e.join("-")).slice(-12).replace(/=/g,"")+"-"+this.getArgs().uniqueKey}isMultiFeedRSS(){return"string"!=typeof this.getArgs().rssFeedURL}setRSSFeedURLs(){const e=this.getArgs().rssFeedURL;this.isMultiFeedRSS()?Array.isArray(e)&&e.forEach(e=>{this.rssFeedURLs.push(e)}):this.rssFeedURLs.push({key:null,label:"",url:e.toString()})}getRSSFeedURLs(){return this.rssFeedURLs}getID(){return this.ID}setNotificationsCount(){return Vf(this,void 0,void 0,function*(){yield Promise.all(this.getRSSFeedURLs().map(e=>Vf(this,[e],void 0,function*({key:e}){let t=0;t="function"==typeof this.getArgs().notification.getLastPostUnixTime?yield this.getArgs().notification.getLastPostUnixTime(e,this):Gf.getLastPostUnixTime(e),this.isMultiFeedRSS()?this.multiLastPostUnixTime[e]=+t:this.lastPostUnixTime=+t}))),yield this.RSS_Fetch_Instance.fetchData().then(e=>{Object.keys(e).forEach(t=>{const n=e[t];if(!n.length)return;this.multiNotificationCount[t]=0;const r=+n[0].date,o=this.isMultiFeedRSS()?this.multiLastPostUnixTime[t]:this.lastPostUnixTime;r>o&&(n.forEach(e=>{e.date>o&&(this.isMultiFeedRSS()&&(this.multiNotificationCount[t]++,this.multiHasNewFeeds[t]=!0),this.notificationsCount++,this.hasNewFeeds=!0)}),this.RSS_View_Instance.setNotification(this.notificationsCount))})}).catch(console.error)})}getNotificationsCount(){return this.notificationsCount}setTriggers(){const e=document.getElementById(this.RSS_View_Instance.getTriggerButtonID()),t=document.getElementById(this.RSS_View_Instance.getFlyoutID()),n=t.querySelector(".whats-new-rss-flyout-inner-content"),r=document.getElementById(this.RSS_View_Instance.getFlyoutCloseBtnID()),o=document.getElementById(this.RSS_View_Instance.getFlyoutMultiFeedNavID()),a=e=>{this.RSS_Fetch_Instance.fetchData().then(r=>{n.innerHTML="";const o=r[e];if(!o.length)return;const a=+o[0].date,i=this.isMultiFeedRSS()?this.multiLastPostUnixTime[e]:this.lastPostUnixTime;o.forEach(t=>{const r=!!i&&t.date>i,o=this.getArgs().flyout.innerContent.titleLink?`<a href="${t.postLink}" target="_blank">\n\t\t\t\t\t\t\t\t<h2>${t.title}</h2>\n\t\t\t\t\t\t\t</a>`:`<h2>${t.title}</h2>`,a=`\n\t\t\t\t\t\t\t\t<div class="rss-content-header">\n\t\t\t\t\t\t\t\t\t<p>${this.RSS_View_Instance.formatDate(new Date(t.date))}</p>\n\t\t\t\t\t\t\t\t\t${o}\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t${this.RSS_View_Instance.createExcerpt(t.description,t.postLink,this.getArgs().flyout.excerpt)}\n\t\t\t\t\t\t\t\t${this.RSS_View_Instance.listChildrenPosts(t.children)}\n\t\t\t\t\t\t\t`,s=this.getArgs().flyout.innerContent.additionalClasses;e&&s.push("`inner-content-item-feed-key-${key}`"),n.innerHTML+=this.RSS_View_Instance.innerContentWrapper(a,r,s.join(" "))}),this.getArgs().viewAll.link&&(n.innerHTML+=this.RSS_View_Instance.innerContentWrapper(`\n\t\t\t\t\t\t\t<a href="${this.getArgs().viewAll.link}" class="button view-all">${this.getArgs().viewAll.label}</a>\n\t\t\t\t\t\t\t`)),this.RSS_View_Instance.setIsLoading(!1),t.classList.add("ready"),this.getArgs().flyout.onReady(this),t.focus(),this.isMultiFeedRSS()||(this.lastPostUnixTime=a,this.hasNewFeeds&&("function"==typeof this.getArgs().notification.setLastPostUnixTime?this.getArgs().notification.setLastPostUnixTime(a,e):Gf.setLastPostUnixTime(a,e)))}).catch(console.error)};e.addEventListener("click",e=>{e.preventDefault();const n=window.innerWidth-document.documentElement.clientWidth;if(this.getArgs().triggerButton.onClick(this),this.RSS_View_Instance.setIsLoading(!0),t.removeAttribute("style"),t.classList.remove("closed"),t.classList.add("open"),document.body.classList.add("whats-new-rss-is-active"),n){const e=document.getElementById("whats-new-rss-styles");(null==e?void 0:e.sheet)&&e.sheet.insertRule(`.whats-new-rss-is-active { background-color: yellow; padding-right: ${n}px; }`,e.sheet.cssRules.length)}if(this.getArgs().flyout.onOpen(this),!this.isMultiFeedRSS())return void a(null);const r=o.querySelectorAll("button");r.forEach(e=>{this.RSS_View_Instance.setMultiFeedTabNotificationCount(e.dataset.feedKey,this.multiNotificationCount[e.dataset.feedKey]),e.addEventListener("click",t=>{t.preventDefault();const n=e.dataset.feedKey;this.multiNotificationCount[n]=0,this.RSS_Fetch_Instance.fetchData().then(e=>{const t=e[n][0].date;this.multiLastPostUnixTime[n]=t,!0===this.multiHasNewFeeds[n]&&("function"==typeof this.getArgs().notification.setLastPostUnixTime?this.getArgs().notification.setLastPostUnixTime(t,n):Gf.setLastPostUnixTime(t,n)),this.multiHasNewFeeds[n]=!1}).catch(console.error),r.forEach(e=>{e.classList.remove("selected");const t=e.dataset.feedKey,r=`.inner-content-item-feed-key-${t}`;document.querySelectorAll(r).forEach(e=>{n!==t?e.classList.add("hidden"):e.classList.remove("hidden")})}),e.classList.add("selected"),a(n)})}),r[0].click()});const i=()=>{t.classList.add("closed"),t.classList.remove("open"),t.classList.remove("ready"),document.body.classList.remove("whats-new-rss-is-active"),this.isMultiFeedRSS()?this.RSS_View_Instance.setNotification(Object.values(this.multiNotificationCount).filter(Boolean).length):(this.hasNewFeeds=!1,this.RSS_View_Instance.setNotification(!1)),n.innerHTML="",this.getArgs().flyout.onClose(this),e.focus()};this.getArgs().flyout.closeOnEsc&&document.addEventListener("keydown",function(e){"Escape"===e.key&&t.classList.contains("open")&&i()}),this.getArgs().flyout.closeOnOverlayClick&&t.querySelector(".whats-new-rss-flyout-overlay").addEventListener("click",i),r.addEventListener("click",i)}}class Gf{static setInstanceID(e){this.instanceID||(this.instanceID=e)}static prefixer(e,t=""){if(!this.instanceID)throw new Error("Instance ID not set.");return t?`${this.keys[e]}-${this.instanceID}-${t}`:`${this.keys[e]}-${this.instanceID}`}static _setDataExpiry(e=""){const t=(new Date).getTime()+864e5;sessionStorage.setItem(this.prefixer("SESSION_DATA_EXPIRY",e),JSON.stringify(t))}static _isDataExpired(e=""){const t=this.prefixer("SESSION_DATA_EXPIRY",e),n=window.sessionStorage.getItem(t);if(!n)return!0;const r=JSON.parse(n);return(new Date).getTime()>r&&(window.sessionStorage.removeItem(t),!0)}static setSessionData(e,t=""){return this._setDataExpiry(t),window.sessionStorage.setItem(this.prefixer("SESSION",t),e)}static getSessionData(e=""){return this._isDataExpired(e)?"{}":window.sessionStorage.getItem(this.prefixer("SESSION",e))}static setLastPostUnixTime(e,t=""){return window.localStorage.setItem(this.prefixer("LAST_LATEST_POST",t),e.toString())}static getLastPostUnixTime(e=""){return+window.localStorage.getItem(this.prefixer("LAST_LATEST_POST",e))}}Gf.keys={SESSION_DATA_EXPIRY:"whats-new-cache-expiry",LAST_LATEST_POST:"whats-new-last-unixtime",SESSION:"whats-new-cache"};class Zf{constructor(e){this.data={},this.RSS=e,this.RSS.getRSSFeedURLs().forEach(e=>{const t=JSON.parse(Gf.getSessionData(e.key));t&&t.length&&(this.data[e.key]=t)})}fetchData(){return Vf(this,void 0,void 0,function*(){if(Object.keys(this.data).length)return this.data;const e=this.RSS.getRSSFeedURLs().map(e=>Vf(this,void 0,void 0,function*(){this.data[e.key]=[];const t=yield fetch(e.url);let n=yield t.text();n=n.replace(/&raquo;/g,"&amp;raquo;"),(new DOMParser).parseFromString(n,"text/xml").querySelectorAll("item").forEach(t=>{var n;const r=t.querySelector("title").textContent,o=t.querySelector("link").textContent,a=t.querySelector("content\\:encoded, encoded"),i=a?a.textContent:"",s=t.querySelector("pubDate").innerHTML;this.data[e.key].push({title:r,date:s?+new Date(s):null,postLink:o,description:i.replace(/<a\b((?:(?!target=)[^>])*)>/g,'<a$1 target="_blank">').replace(/<p>\s*<\/p>/g,""),children:JSON.parse((null===(n=t.querySelector("children"))||void 0===n?void 0:n.innerHTML)||"{}")})}),Gf.setSessionData(JSON.stringify(this.data[e.key]),e.key)}));return yield Promise.all(e),this.data})}}class qf{constructor(e){this.RSS=e,this.createTriggerButton(),this.createFlyOut()}getTriggerButtonID(){return`whats-new-rss-btn-${this.RSS.getID()}`}getFlyoutID(){return`whats-new-rss-flyout-${this.RSS.getID()}`}getFlyoutCloseBtnID(){return`whats-new-rss-flyout-close-${this.RSS.getID()}`}getFlyoutMultiFeedNavID(){return`whats-new-rss-flyout-multi-feed-nav-${this.RSS.getID()}`}setIsLoading(e=!1){const t=document.getElementById(this.getFlyoutID());e?t.classList.add("is-loading"):t.classList.remove("is-loading")}setNotification(e){const t=document.querySelector(`#${this.getTriggerButtonID()} .whats-new-rss-notification-badge`);e?(this.RSS.isMultiFeedRSS()?(t.innerHTML="",t.classList.add("is-multi-feed")):t.innerHTML=e>9?"9+":e.toString(),t.classList.remove("hide")):t.classList.add("hide")}createTriggerButton(){let e="";const t=this.RSS.getArgs().triggerButton.label;e=t?`\n\t\t\t${this.RSS.getArgs().triggerButton.beforeBtn}\n\t\t\t<a class="whats-new-rss-trigger-button has-label" id="${this.getTriggerButtonID()}">\n\t\t\t\t<div class="icon-badge">\n\t\t\t\t\t${this.RSS.getArgs().triggerButton.icon}\n\t\t\t\t\t<div class="whats-new-rss-notification-badge hide">0</div>\n\t\t\t\t</div>\n\t\t\t\t${t}\n\t\t\t</a>\n\t\t\t${this.RSS.getArgs().triggerButton.afterBtn}\n\t\t\t`:`\n\t\t\t${this.RSS.getArgs().triggerButton.beforeBtn}\n\t\t\t<a class="whats-new-rss-trigger-button" id="${this.getTriggerButtonID()}">\n\t\t\t\t${this.RSS.getArgs().triggerButton.icon}\n\t\t\t\t<div class="whats-new-rss-notification-badge hide">0</div>\n\t\t\t</a>\n\t\t\t${this.RSS.getArgs().triggerButton.afterBtn}\n\t\t\t`,this.RSS.getElement().innerHTML+=e}createFlyOut(){const e=["whats-new-rss-flyout","closed"];this.RSS.getArgs().flyout.className&&e.push(this.RSS.getArgs().flyout.className);let t=[];this.RSS.isMultiFeedRSS()&&(t.push(`<nav id="${this.getFlyoutMultiFeedNavID()}" class="whats-new-rss-multi-feed-nav">`),this.RSS.getRSSFeedURLs().forEach(e=>{t.push(`<button type="button" data-feed-key="${e.key}">\n\t\t\t\t\t\t${e.label}\n\t\t\t\t\t\t<div class="new-notification-count"></div>\n\t\t\t\t\t</button>\n\t\t\t\t\t`)}),t.push("</nav>"));const n=document.createElement("div");n.setAttribute("id",this.getFlyoutID()),n.setAttribute("class",e.join(" ")),n.setAttribute("role","dialog"),n.setAttribute("style","visibility:hidden"),n.innerHTML=`\n\t\t<div class="whats-new-rss-flyout-contents">\n\n\t\t\t<div class="whats-new-rss-flyout-inner-header">\n\n\t\t\t\t<div class="whats-new-rss-flyout-inner-header__title-icon-wrapper">\n\t\t\t\t\t<h3>${this.RSS.getArgs().flyout.title}</h3>\n\n\t\t\t\t\t<span class="whats-new-rss-flyout-inner-header__loading-icon">\n\t\t\t\t\t${this.RSS.getArgs().loaderIcon}\n\t\t\t\t\t</span>\n\t\t\t\t</div>\n\n\t\t\t\t<button type="button" id="${this.getFlyoutCloseBtnID()}">${this.RSS.getArgs().flyout.closeBtnIcon}</button>\n\t\t\t</div>\n\n\t\t\t${t.join("")}\n\n\t\t\t<div class="whats-new-rss-flyout-inner-content">\n\t\t\t\t<div class="skeleton-container">\n\t\t\t\t\t<div class="skeleton-row whats-new-rss-flyout-inner-content-item"></div>\n\t\t\t\t\t<div class="skeleton-row whats-new-rss-flyout-inner-content-item"></div>\n\t\t\t\t\t<div class="skeleton-row whats-new-rss-flyout-inner-content-item"></div>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t</div>\n\n\t\t<div class="whats-new-rss-flyout-overlay"></div>\n\t\t`,document.body.appendChild(n)}setMultiFeedTabNotificationCount(e,t=0){const n=document.querySelector(`#${this.getFlyoutMultiFeedNavID()} button[data-feed-key="${e}"]`);if(!n)return;const r=n.querySelector(".new-notification-count");if(t){const e=t>9?"9+":t;r.innerHTML=e.toString()}else r.innerHTML=""}innerContentWrapper(e,t=!1,n=""){const r=["whats-new-rss-flyout-inner-content-item"];return t&&r.push("rss-new-post"),n&&r.push(n),`\n\t\t<div class="${r.join(" ")}">\n\t\t\t${t?'<small class="new-post-badge">New ✨</small>':""}\n\t\t\t${e}\n\t\t</div>\n\t\t`}createExcerpt(e,t,n){const{wordLimit:r,moreSymbol:o,readMore:a}=n;if(!r)return e;const i=e.replace(/<[^>]*>/g,"").split(/\s+/);let s=i.slice(0,r).join(" ");return o&&(s+=o),r>i.length?e:t&&(null==a?void 0:a.label)?`<p>${s} <a href="${t}" target="_blank" class="${a.className}">${a.label}</a></p>`:`<p>${s}</p>`}listChildrenPosts(e){const t=Object.values(e);if(!t.length)return"";const n=document.createElement("details"),r=document.createElement("summary"),o=document.createElement("div");return t.forEach(e=>{const t=(new DOMParser).parseFromString(e.post_content,"text/html"),n=document.createElement("div");n.classList.add("sub-version-item"),n.innerHTML=`\n\t\t\t\t<div class="sub-version-header">\n\t\t\t\t\t<h4 class="sub-version-title">${e.post_title}</h4>\n\t\t\t\t\t<span class="sub-version-date">${this.formatDate(new Date(e.post_date))}</span>\n\t\t\t\t</div>\n\t\t\t\t<div class="sub-version-content">${t.documentElement.textContent}</div>\n\t\t\t`,o.appendChild(n)}),r.innerHTML='<p class="text-see-more">See More</p><p class="text-see-less">See Less</p>',n.appendChild(r),n.appendChild(o),o.classList.add("sub-version-items-wrapper"),n.classList.add("whats-new-rss-sub-version-details"),n.outerHTML}formatDate(e){if("function"==typeof this.RSS.getArgs().flyout.formatDate)return this.RSS.getArgs().flyout.formatDate(e);const t=new Date,n=e.getTime(),r=t.getTime()-n,o=36e5,a=24*o,i=7*a,s=30*a;if(r<6e4)return"Just now";if(r<o){const e=Math.floor(r/6e4);return`${e} minute${e>1?"s":""} ago`}if(r<a){const e=Math.floor(r/o);return`${e} hour${e>1?"s":""} ago`}if(r<i){const e=Math.floor(r/a);return`${e} day${e>1?"s":""} ago`}if(r<s){const e=Math.floor(r/i);return`${e} week${e>1?"s":""} ago`}{const e=Math.floor(r/s);return`${e} month${e>1?"s":""} ago`}}}const Kf=({variant:e="dark",placement:t="bottom",title:n="",content:r,arrow:o=!1,open:i,setOpen:s,children:l,className:c,tooltipPortalRoot:u,tooltipPortalId:d,boundary:m="clippingAncestors",strategy:p="fixed",offset:f=8,triggers:h=["hover","focus"],interactive:g=!1})=>{const y=(0,a.useMemo)(()=>"boolean"==typeof i&&"function"==typeof s,[i,s]),[v,b]=(0,a.useState)(!1),M=(0,a.useRef)(null),{refs:x,floatingStyles:w,context:N}=$p({open:y?i:v,onOpenChange:y?s:b,placement:t,strategy:p,middleware:[wm(f),jm({boundary:m}),Nm({boundary:m}),(z={element:M},{...xm(z),options:[z,void 0]})],whileElementsMounted:cm}),j=Yp(N,{enabled:!y&&h.includes("click")}),D=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:i,elements:s}=e,{enabled:l=!0,delay:c=0,handleClose:u=null,mouseOnly:d=!1,restMs:m=0,move:p=!0}=t,f=ep(),h=Jm(),g=np(u),y=np(c),v=np(n),b=a.useRef(),M=a.useRef(-1),x=a.useRef(),w=a.useRef(-1),N=a.useRef(!0),j=a.useRef(!1),D=a.useRef(()=>{}),E=a.useRef(!1),T=a.useCallback(()=>{var e;const t=null==(e=o.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t},[o]);a.useEffect(()=>{if(l)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(M.current),clearTimeout(w.current),N.current=!0,E.current=!1)}},[l,i]),a.useEffect(()=>{if(!l)return;if(!g.current)return;if(!n)return;function e(e){T()&&r(!1,e,"hover")}const t=Ku(s.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[s.floating,n,r,l,g,T]);const O=a.useCallback(function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=op(y.current,"close",b.current);o&&!x.current?(clearTimeout(M.current),M.current=window.setTimeout(()=>r(!1,e,n),o)):t&&(clearTimeout(M.current),r(!1,e,n))},[y,r]),I=Om(()=>{D.current(),x.current=void 0}),A=Om(()=>{if(j.current){const e=Ku(s.floating).body;e.style.pointerEvents="",e.removeAttribute(rp),j.current=!1}}),k=Om(()=>!!o.current.openEvent&&["click","mousedown"].includes(o.current.openEvent.type));a.useEffect(()=>{if(l&&bu(s.domReference)){var e;const r=s.domReference;return n&&r.addEventListener("mouseleave",i),null==(e=s.floating)||e.addEventListener("mouseleave",i),p&&r.addEventListener("mousemove",t,{once:!0}),r.addEventListener("mouseenter",t),r.addEventListener("mouseleave",a),()=>{var e;n&&r.removeEventListener("mouseleave",i),null==(e=s.floating)||e.removeEventListener("mouseleave",i),p&&r.removeEventListener("mousemove",t),r.removeEventListener("mouseenter",t),r.removeEventListener("mouseleave",a)}}function t(e){if(clearTimeout(M.current),N.current=!1,d&&!qu(b.current)||m>0&&!op(y.current,"open"))return;const t=op(y.current,"open",b.current);t?M.current=window.setTimeout(()=>{v.current||r(!0,e,"hover")},t):n||r(!0,e,"hover")}function a(e){if(k())return;D.current();const t=Ku(s.floating);if(clearTimeout(w.current),E.current=!1,g.current&&o.current.floatingContext){n||clearTimeout(M.current),x.current=g.current({...o.current.floatingContext,tree:f,x:e.clientX,y:e.clientY,onClose(){A(),I(),k()||O(e,!0,"safe-polygon")}});const r=x.current;return t.addEventListener("mousemove",r),void(D.current=()=>{t.removeEventListener("mousemove",r)})}("touch"!==b.current||!Bu(s.floating,e.relatedTarget))&&O(e)}function i(e){k()||o.current.floatingContext&&(null==g.current||g.current({...o.current.floatingContext,tree:f,x:e.clientX,y:e.clientY,onClose(){A(),I(),k()||O(e)}})(e))}},[s,l,e,d,m,p,O,I,A,r,n,v,f,y,g,o,k]),Ym(()=>{var e;if(l&&n&&null!=(e=g.current)&&e.__options.blockPointerEvents&&T()){j.current=!0;const e=s.floating;if(bu(s.domReference)&&e){var t;const n=Ku(s.floating).body;n.setAttribute(rp,"");const r=s.domReference,o=null==f||null==(t=f.nodesRef.current.find(e=>e.id===h))||null==(t=t.context)?void 0:t.elements.floating;return o&&(o.style.pointerEvents=""),n.style.pointerEvents="none",r.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents="",e.style.pointerEvents=""}}}},[l,n,h,s,f,g,T]),Ym(()=>{n||(b.current=void 0,E.current=!1,I(),A())},[n,I,A]),a.useEffect(()=>()=>{I(),clearTimeout(M.current),clearTimeout(w.current),A()},[l,s.domReference,I,A]);const S=a.useMemo(()=>{function e(e){b.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function o(){N.current||v.current||r(!0,t,"hover")}d&&!qu(b.current)||n||0===m||E.current&&e.movementX**2+e.movementY**2<2||(clearTimeout(w.current),"touch"===b.current?o():(E.current=!0,w.current=window.setTimeout(o,m)))}}},[d,r,n,v,m]),_=a.useMemo(()=>({onMouseEnter(){clearTimeout(M.current)},onMouseLeave(e){k()||O(e.nativeEvent,!1)}}),[O,k]);return a.useMemo(()=>l?{reference:S,floating:_}:{},[l,S,_])}(N,{move:!1,enabled:!y&&h.includes("hover"),...g&&{handleClose:uf()}}),E=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,events:o,dataRef:i,elements:s}=e,{enabled:l=!0,visibleOnly:c=!0}=t,u=a.useRef(!1),d=a.useRef(),m=a.useRef(!0);a.useEffect(()=>{if(!l)return;const e=gu(s.domReference);function t(){!n&&Mu(s.domReference)&&s.domReference===Yu(Ku(s.domReference))&&(u.current=!0)}function r(){m.current=!0}return e.addEventListener("blur",t),e.addEventListener("keydown",r,!0),()=>{e.removeEventListener("blur",t),e.removeEventListener("keydown",r,!0)}},[s.domReference,n,l]),a.useEffect(()=>{if(l)return o.on("openchange",e),()=>{o.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(u.current=!0)}},[o,l]),a.useEffect(()=>()=>{clearTimeout(d.current)},[]);const p=a.useMemo(()=>({onPointerDown(e){$u(e.nativeEvent)||(m.current=!1)},onMouseLeave(){u.current=!1},onFocus(e){if(u.current)return;const t=Ju(e.nativeEvent);if(c&&bu(t))try{if(Hu()&&Zu())throw Error();if(!t.matches(":focus-visible"))return}catch(e){if(!m.current&&!ed(t))return}r(!0,e.nativeEvent,"focus")},onBlur(e){u.current=!1;const t=e.relatedTarget,n=e.nativeEvent,o=bu(t)&&t.hasAttribute(tp("focus-guard"))&&"outside"===t.getAttribute("data-type");d.current=window.setTimeout(()=>{var e;const a=Yu(s.domReference?s.domReference.ownerDocument:document);(t||a!==s.domReference)&&(Bu(null==(e=i.current.floatingContext)?void 0:e.refs.floating.current,a)||Bu(s.domReference,a)||o||r(!1,n,"focus"))})}}),[i,s.domReference,r,c]);return a.useMemo(()=>l?{reference:p}:{},[l,p])}(N,{enabled:!y&&h.includes("focus")}),T=Vp(N),O=of(N,{role:"tooltip"}),{getReferenceProps:I,getFloatingProps:A}=qp([j,D,E,T,O]),{isMounted:k,styles:S}=lf(N,{duration:150,initial:{opacity:0},open:{opacity:1},close:{opacity:0}}),_={light:"bg-tooltip-background-light text-text-primary",dark:"bg-tooltip-background-dark text-text-on-color"}[e],C="dark"===e?"text-tooltip-background-dark":"text-tooltip-background-light";var z;return(0,Ge.jsxs)(a.Fragment,{children:[(0,a.isValidElement)(l)&&(0,Ge.jsx)(a.Fragment,{children:(0,a.cloneElement)(l,{ref:vn(l.ref,x.setReference),className:en(l.props.className),...I()})},"tooltip-reference"),(0,Ge.jsx)(Tp,{id:d,root:u,children:k&&(0,Ge.jsxs)("div",{className:en("absolute z-20 py-2 px-3 rounded-md text-xs leading-4 shadow-soft-shadow-lg",_,"max-w-80 w-fit",c),ref:x.setFloating,style:{...w,...S},...A(),children:[(0,Ge.jsxs)("div",{children:[!!n&&(0,Ge.jsx)("span",{className:"font-semibold",children:n},"tooltip-title"),!!r&&(0,Ge.jsx)("div",{className:"font-normal",children:r},"tooltip-content")]}),o&&(0,Ge.jsx)(qm,{ref:M,context:N,className:en("fill-current",C)})]})})]})};Kf.displayName="Tooltip";var Xf=o(5556),Jf=o.n(Xf);const eh=({content:e,position:t="top",children:n,className:r=""})=>(0,a.createElement)(Kf,{arrow:!0,content:e,placement:t,variant:"dark",className:r,tooltipPortalId:"wcar-admin-app"},n);eh.propTypes={content:Jf().node.isRequired,position:Jf().oneOf(["top","bottom","left","right"]),children:Jf().node.isRequired,className:Jf().string};const th=eh,nh=function(){const e=cart_abandonment_admin?.whats_new_rss_feed;return function({selector:e,...t}){const n=(0,a.useRef)(null);(0,a.useEffect)(()=>{var r;return async function(){const e="whats-new-rss-styles";if(!document.getElementById(e)){const t=document.createElement("style");t.id=e,t.innerHTML=await async function(){return'@import url(https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap);.whats-new-rss-is-active{overflow:hidden}.whats-new-rss-trigger-button{display:flex;align-items:center;position:relative;width:auto;padding:0!important;cursor:pointer}.whats-new-rss-trigger-button.has-label{align-items:end;gap:10px}.whats-new-rss-trigger-button.has-label .icon-badge{position:relative;line-height:1}.whats-new-rss-trigger-button.has-label .icon-badge .whats-new-rss-notification-badge{top:-12px;right:-10px}.whats-new-rss-trigger-button .whats-new-rss-notification-badge{position:absolute;top:-8px;right:-9px;width:18px;height:18px;font-size:10px;line-height:20px;text-align:center;border-radius:10px;color:#fff;background:#ff580e;display:flex;align-items:center;justify-content:center;transition:transform .2s ease-in-out}.whats-new-rss-trigger-button .whats-new-rss-notification-badge.is-multi-feed{top:-2px;right:-2px;font-size:0;width:10px;height:10px}.whats-new-rss-trigger-button .whats-new-rss-notification-badge.hide{display:none!important}.whats-new-rss-trigger-button:hover .whats-new-rss-notification-badge{transform:unset}.whats-new-rss-flyout{position:fixed;top:0;right:0;bottom:0;width:100%;z-index:99999;transition:visibility .3s ease-in-out;font-family:Figtree,sans-serif;height:100vh;font-size:15px;font-weight:400;line-height:20px;color:#374151;margin-bottom:5px}.whats-new-rss-flyout *,.whats-new-rss-flyout ::after,.whats-new-rss-flyout ::before{box-sizing:border-box}.whats-new-rss-flyout .lightbox-trigger,.whats-new-rss-flyout.hidden{display:none}.whats-new-rss-flyout.is-loading .whats-new-rss-flyout-inner-header__loading-icon{display:block;margin:auto}.whats-new-rss-flyout.is-loading .whats-new-rss-flyout-inner-header__loading-icon svg{display:block;background:0 0;width:25px;height:25px}.whats-new-rss-flyout p{font-size:14px;font-weight:400;line-height:20px;color:#374151;margin-bottom:15px}.whats-new-rss-flyout p a{color:#1170ff}.whats-new-rss-flyout .wp-block-uagb-buttons{background:#ff6c0a;padding:10px 18px;width:fit-content;color:#fff;border-radius:6px;box-shadow:0 1px 2px rgba(0,0,0,.05);margin-bottom:15px}.whats-new-rss-flyout .wp-block-uagb-buttons .uagb-button__link{color:#fff;font-size:1rem;font-weight:600;line-height:1.5rem}.whats-new-rss-flyout .ast-oembed-container{position:relative;padding-top:56.25%;height:0;overflow:hidden;max-width:100%;height:auto}.whats-new-rss-flyout .wp-has-aspect-ratio iframe{bottom:0;height:100%;left:0;position:absolute;right:0;top:0;width:100%}.whats-new-rss-flyout .whats-new-rss-flyout-contents{position:fixed;display:flex;right:0;width:30%;height:100%;flex-direction:column;background-color:#fff;transition:transform .3s ease-in-out;z-index:9999}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-header{display:flex;justify-content:space-between;align-items:center;padding:16px!important;border-bottom:1px solid #e5e7eb}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-header [id^=whats-new-rss-flyout-close-]{width:24px;height:24px;display:flex;align-items:center;justify-content:center}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-header button{border:none;background:0 0;font-size:30px;cursor:pointer;color:#111827;padding:0;margin:0;box-shadow:none}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-header .whats-new-rss-flyout-inner-header__title-icon-wrapper{display:flex;gap:10px;padding:0 4px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-header .whats-new-rss-flyout-inner-header__title-icon-wrapper h3{margin:0;padding:0;color:#111827;font-weight:600;font-size:16px;line-height:24px;margin-bottom:0!important}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav{display:flex;padding:0 30px;border-bottom:1px solid #e5e7eb;gap:2em;overflow:auto;white-space:nowrap}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav button{position:relative;background:0 0;color:inherit;padding:15px 0;border-bottom:2px solid transparent}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav button:focus,.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav button:hover{border-color:inherit}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav button.selected{border-color:#5d5d5d}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav button .new-notification-count{position:absolute;top:0;right:-10px;width:20px;font-size:10px;line-height:20px;text-align:center;border-radius:10px;color:#fff;background:red}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content{flex:1;overflow-y:auto}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .skeleton-container{margin:30px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item{border-bottom:1px solid #d8dfe9;padding:20px;color:#374151;font-weight:400;font-size:14px;line-height:20px;display:flex;flex-direction:column}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item>:nth-child(n+1){margin:8px 0 8px 0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item>:first-child{margin-top:0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item>:nth-child(n+1):is(ul){margin-top:0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item>:nth-child(n+1):is(div):has(figure){margin-bottom:12px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item figure,.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item img{margin:0!important}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item .wp-smiley{display:inline-block;margin:0;min-height:1em;margin-bottom:4px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item>*{margin:0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item h2{font-size:22px;font-weight:600;line-height:1.5em;margin-bottom:15px;padding-top:12px;padding-bottom:4px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item h3{font-size:20px;font-weight:600;line-height:1.5em;padding-top:12px;padding-bottom:4px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item h4{font-size:18px;font-weight:600;line-height:1.5em;padding-top:12px;padding-bottom:4px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item h5{font-size:16px;font-weight:600;line-height:1.5em;margin-bottom:15px;padding-top:12px;padding-bottom:4px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item h6{font-size:13px;font-weight:600;line-height:1.5em;margin-bottom:15px;padding-top:12px;padding-bottom:4px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item.skeleton-row{height:25vh;margin:40px 0;background:linear-gradient(90deg,#eee 25%,#ddd 50%,#eee 75%);background-size:200% 100%;animation:shimmer 1.5s infinite}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item.rss-new-post{position:relative}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item.rss-new-post .new-post-badge{background:#ff6c0a;border-radius:4px;top:22px;right:24px;padding:0 4px;color:#fff;position:absolute}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item .rss-content-header{display:flex;flex-direction:column;gap:4px;padding:0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item .rss-content-header p{color:#6b7280;margin:0;padding:0;font-weight:500;line-height:16px;font-size:12px;margin-bottom:0!important}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item .rss-content-header h2{margin:0;color:#111827;font-weight:600;line-height:30px;font-size:20px;padding:0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item p{padding:0;font-size:14px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item a{color:#1170ff;text-decoration:none}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item figure{margin:10px 0;margin-bottom:0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item figure.wp-block-embed.is-type-video{position:relative;width:100%;height:0;padding-bottom:56.25%}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item figure iframe{position:absolute;top:0;left:0;width:100%;height:100%;border:0;max-width:100%}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item img{box-sizing:border-box;height:auto;max-width:100%;vertical-align:bottom;margin-bottom:15px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item video{vertical-align:middle;width:100%}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item strong{font-weight:600}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ol,.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ul{padding-inline-start:20px;margin-left:10px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ol li,.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ul li{font-size:14px;font-weight:400;line-height:20px;color:#374151;margin:0 0 4px 0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ol li:last-child,.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ul li:last-child{margin-bottom:0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ul{list-style-type:disc}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ol{list-style-type:decimal}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details{line-height:20px;font-size:.9em;margin:10px 0;background:#f9fafb}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details summary{display:flex;justify-content:space-between;cursor:pointer;padding:20px 15px;height:1em;line-height:20px;font-weight:800}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details summary::after{content:"⌃";font-size:20px;transform:rotateX(180deg);font-weight:800}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details summary .text-see-more{display:block}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details summary .text-see-less{display:none}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details[open] summary{border-bottom:1px solid #e2e8f0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details[open] summary::after{transform:rotateX(45deg)}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details[open] summary .text-see-more{display:none}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details[open] summary .text-see-less{display:block}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details .sub-version-item{position:relative;padding:1em;border-bottom:1px solid #e2e8f0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details .sub-version-item .sub-version-header{display:flex;justify-content:space-between}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details .sub-version-item .sub-version-content{margin-top:1em}.whats-new-rss-flyout .whats-new-rss-flyout-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:rgba(0,0,0,.5);transition:all .3s ease-in-out}.whats-new-rss-flyout.closed{visibility:hidden}.whats-new-rss-flyout.closed .whats-new-rss-flyout-overlay{opacity:0;visibility:hidden}.whats-new-rss-flyout.closed .whats-new-rss-flyout-contents{transform:translateX(100%)}.whats-new-rss-flyout .whats-new-rss-flyout-inner-header__loading-icon{display:none}@keyframes shimmer{0%{background-position:-200% 0}100%{background-position:200% 0}}@media screen and (max-width:1024px){.whats-new-rss-flyout .whats-new-rss-flyout-contents{width:40%}}@media screen and (max-width:768px){.whats-new-rss-flyout .whats-new-rss-flyout-contents{width:85%}}'}(),document.head.appendChild(t)}}(),n.current||(n.current=(r={selector:e,...t},new Hf(r))),()=>{n.current&&"function"==typeof n.current.destroy&&n.current.destroy()}},[e,...Object.values(t)]),n.current}({uniqueKey:"cart-abandonment-recovery",rssFeedURL:e?.url||e?.[0]?.url,selector:"#wcar-whats-new-content",triggerButton:{icon:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6 stroke-1 text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-offset-2 cursor-pointer" role="button" tabIndex="0"><path stroke-linecap="round" stroke-linejoin="round" d="M10.34 15.84c-.688-.06-1.386-.09-2.09-.09H7.5a4.5 4.5 0 1 1 0-9h.75c.704 0 1.402-.03 2.09-.09m0 9.18c.253.962.584 1.892.985 2.783.247.55.06 1.21-.463 1.511l-.657.38c-.551.318-1.26.117-1.527-.461a20.845 20.845 0 0 1-1.44-4.282m3.102.069a18.03 18.03 0 0 1-.59-4.59c0-1.586.205-3.124.59-4.59m0 9.18a23.848 23.848 0 0 1 8.835 2.535M10.34 6.66a23.847 23.847 0 0 0 8.835-2.535m0 0A23.74 23.74 0 0 0 18.795 3m.38 1.125a23.91 23.91 0 0 1 1.014 5.395m-1.014 8.855c-.118.38-.245.754-.38 1.125m.38-1.125a23.91 23.91 0 0 0 1.014-5.395m0-3.46c.495.413.811 1.035.811 1.73 0 .695-.316 1.317-.811 1.73m0-3.46a24.347 24.347 0 0 1 0 3.46" /></svg>'},flyout:{title:(0,Yf.__)("What's New?","woo-cart-abandonment-recovery"),formatDate:e=>`${e.toLocaleDateString("en-US",{weekday:"long"})} ${e.toLocaleDateString("en-US",{month:"long"})} ${e.getDate()}, ${e.getFullYear()}`}}),(0,a.createElement)(th,{content:(0,Yf.__)("What's New?","woo-cart-abandonment-recovery"),position:"bottom",className:"z-50"},(0,a.createElement)("div",{id:"wcar-whats-new-content"}))},rh=(0,a.createContext)({}),oh=()=>(0,a.useContext)(rh),ah={open:{opacity:1},exit:{opacity:0}},ih={duration:.2},sh=({open:e,setOpen:t,children:n,trigger:r=null,className:o,exitOnClickOutside:i=!1,exitOnEsc:s=!0,design:l="simple",scrollLock:c=!0})=>{const u=void 0!==e&&void 0!==t,[d,m]=(0,a.useState)(!1),p=(0,a.useRef)(null),f=(0,a.useRef)(null),h=(0,a.useMemo)(()=>u?e:d,[e,d]),g=(0,a.useMemo)(()=>u?t:m,[m,t]),{refs:y,context:v}=$p({open:h,onOpenChange:g}),b=Yp(v),M=Vp(v,{enabled:i||s,escapeKey:s,outsidePress:e=>!!i&&!e?.target?.closest("ul.fui-toast-container")}),x=of(v,{role:"dialog"}),{getFloatingProps:w}=qp([b,M,x]),N=()=>{h||g(!0)},j=(0,a.useCallback)(()=>(0,a.isValidElement)(r)?(0,a.cloneElement)(r,{onClick:tn(N,r?.props?.onClick),ref:y.setReference,"aria-haspopup":"dialog","aria-expanded":h}):"function"==typeof r?r({onClick:N}):null,[r,N,y.setReference,h]);return(0,Ge.jsxs)(Ge.Fragment,{children:[j(),(0,Ge.jsx)(rh.Provider,{value:{open:h,setOpen:g,handleClose:()=>{h&&g(!1)},design:l,context:v,getFloatingProps:w,refs:y,dialogContainerRef:f,dialogRef:p,scrollLock:c,className:o},children:n})]})};sh.displayName="Dialog";const lh=({children:e,className:t})=>{const{open:n,handleClose:r,context:o,getFloatingProps:a,dialogRef:i,scrollLock:s,dialogContainerRef:l,className:c,refs:u}=oh();return(0,Ge.jsx)(Un,{children:n&&(0,Ge.jsx)(Up,{ref:l,lockScroll:s,className:en("z-999999",c),"aria-modal":"true",children:(0,Ge.jsx)(zp,{context:o,...u?.reference&&{returnFocus:u.reference},children:(0,Ge.jsx)(au.div,{className:"fixed inset-0 overflow-y-auto",initial:"exit",animate:"open",exit:"exit",variants:ah,role:"dialog","aria-modal":"true",transition:ih,children:(0,Ge.jsx)("div",{className:"flex items-center justify-center min-h-full",children:(0,Ge.jsx)("div",{ref:e=>{e&&(i.current=e,o&&o.refs.setFloating(e))},...a?.(),className:en("flex flex-col gap-5 w-120 h-fit bg-background-primary border border-solid border-border-subtle rounded-xl shadow-soft-shadow-2xl my-5 overflow-hidden",t),children:"function"==typeof e?e({close:r}):e})})})})})})};lh.displayName="Dialog.Panel";const ch=({children:e,...t})=>(0,Ge.jsx)(Tp,{...t,children:e});ch.displayName="Dialog.Portal";const uh=({className:e,...t})=>{const{open:n,dialogContainerRef:r}=oh();return r?.current?(0,Ge.jsx)(Ge.Fragment,{children:(0,Nn.createPortal)((0,Ge.jsx)(Un,{children:n&&(0,Ge.jsx)(au.div,{className:en("fixed inset-0 -z-10 bg-background-inverse/90",e),...t,initial:"exit",animate:"open",exit:"exit",variants:ah,transition:ih})}),r.current)}):null};uh.displayName="Dialog.Backdrop";const dh=({children:e,className:t,...n})=>(0,Ge.jsx)("div",{className:en("space-y-2 px-5 pt-5 pb-1",t),...n,children:e});dh.displayName="Dialog.Header";const mh=({children:e,as:t="h3",className:n,...r})=>(0,Ge.jsx)(t,{className:en("text-base font-semibold text-text-primary m-0 p-0",n),...r,children:e});mh.displayName="Dialog.Title";const ph=({children:e,as:t="p",className:n,...r})=>(0,Ge.jsx)(t,{className:en("text-sm font-normal text-text-secondary my-0 ml-0 mr-1 p-0",n),...r,children:e});ph.displayName="Dialog.Description";const fh=({className:e,...t})=>(0,Ge.jsx)("button",{className:en("bg-transparent inline-flex justify-center items-center border-0 p-1 m-0 cursor-pointer focus:outline-none outline-none shadow-none",e),"aria-label":"Close dialog",...t,children:(0,Ge.jsx)(et,{className:"size-4 text-text-primary shrink-0"})}),hh=({children:e,as:t=a.Fragment,...n})=>{const{handleClose:r}=oh();return e?t===a.Fragment?"function"==typeof e?e({close:r}):(0,a.cloneElement)(e,{onClick:r}):(0,Ge.jsx)(t,{...n,onClick:r,"aria-label":"Close dialog",children:e}):(0,Ge.jsx)(fh,{onClick:r,...n})};hh.displayName="Dialog.CloseButton";const gh=({children:e,className:t,...n})=>(0,Ge.jsx)("div",{className:en("px-5",t),...n,children:e});gh.displayName="Dialog.Body";const yh=({children:e,className:t})=>{const{design:n,handleClose:r}=oh();return(0,Ge.jsx)("div",{className:en("p-4 flex justify-end gap-3",{"bg-background-secondary":"footer-divided"===n},t),children:e?"function"==typeof e?e({close:r}):e:null})};yh.displayName="Dialog.Footer",sh.Panel=lh,sh.Portal=ch,sh.Title=mh,sh.Description=ph,sh.CloseButton=hh,sh.Header=dh,sh.Body=gh,sh.Footer=yh,sh.Backdrop=uh;const vh={sm:{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"},md:{1:"md:grid-cols-1",2:"md:grid-cols-2",3:"md:grid-cols-3",4:"md:grid-cols-4",5:"md:grid-cols-5",6:"md:grid-cols-6",7:"md:grid-cols-7",8:"md:grid-cols-8",9:"md:grid-cols-9",10:"md:grid-cols-10",11:"md:grid-cols-11",12:"md:grid-cols-12"},lg:{1:"lg:grid-cols-1",2:"lg:grid-cols-2",3:"lg:grid-cols-3",4:"lg:grid-cols-4",5:"lg:grid-cols-5",6:"lg:grid-cols-6",7:"lg:grid-cols-7",8:"lg:grid-cols-8",9:"lg:grid-cols-9",10:"lg:grid-cols-10",11:"lg:grid-cols-11",12:"lg:grid-cols-12"}},bh={sm:{xs:"gap-2",sm:"gap-4",md:"gap-5",lg:"gap-6",xl:"gap-6","2xl":"gap-8"},md:{xs:"md:gap-2",sm:"md:gap-4",md:"md:gap-5",lg:"md:gap-6",xl:"md:gap-6","2xl":"md:gap-8"},lg:{xs:"lg:gap-2",sm:"lg:gap-4",md:"lg:gap-5",lg:"lg:gap-6",xl:"lg:gap-6","2xl":"lg:gap-8"}},Mh={sm:{xs:"gap-x-2",sm:"gap-x-4",md:"gap-x-5",lg:"gap-x-6",xl:"gap-x-6","2xl":"gap-x-8"},md:{xs:"md:gap-x-2",sm:"md:gap-x-4",md:"md:gap-x-5",lg:"md:gap-x-6",xl:"md:gap-x-6","2xl":"md:gap-x-8"},lg:{xs:"lg:gap-x-2",sm:"lg:gap-x-4",md:"lg:gap-x-5",lg:"lg:gap-x-6",xl:"lg:gap-x-6","2xl":"lg:gap-x-8"}},xh={sm:{xs:"gap-y-2",sm:"gap-y-4",md:"gap-y-5",lg:"gap-y-6",xl:"gap-y-6","2xl":"gap-y-8"},md:{xs:"md:gap-y-2",sm:"md:gap-y-4",md:"md:gap-y-5",lg:"md:gap-y-6",xl:"md:gap-y-6","2xl":"md:gap-y-8"},lg:{xs:"lg:gap-y-2",sm:"lg:gap-y-4",md:"lg:gap-y-5",lg:"lg:gap-y-6",xl:"lg:gap-y-6","2xl":"lg:gap-y-8"}},wh={sm:{1:"col-span-1",2:"col-span-2",3:"col-span-3",4:"col-span-4",5:"col-span-5",6:"col-span-6",7:"col-span-7",8:"col-span-8",9:"col-span-9",10:"col-span-10",11:"col-span-11",12:"col-span-12"},md:{1:"md:col-span-1",2:"md:col-span-2",3:"md:col-span-3",4:"md:col-span-4",5:"md:col-span-5",6:"md:col-span-6",7:"md:col-span-7",8:"md:col-span-8",9:"md:col-span-9",10:"md:col-span-10",11:"md:col-span-11",12:"md:col-span-12"},lg:{1:"lg:col-span-1",2:"lg:col-span-2",3:"lg:col-span-3",4:"lg:col-span-4",5:"lg:col-span-5",6:"lg:col-span-6",7:"lg:col-span-7",8:"lg:col-span-8",9:"lg:col-span-9",10:"lg:col-span-10",11:"lg:col-span-11",12:"lg:col-span-12"}},Nh={sm:{1:"col-start-1",2:"col-start-2",3:"col-start-3",4:"col-start-4",5:"col-start-5",6:"col-start-6",7:"col-start-7",8:"col-start-8",9:"col-start-9",10:"col-start-10",11:"col-start-11",12:"col-start-12"},md:{1:"md:col-start-1",2:"md:col-start-2",3:"md:col-start-3",4:"md:col-start-4",5:"md:col-start-5",6:"md:col-start-6",7:"md:col-start-7",8:"md:col-start-8",9:"md:col-start-9",10:"md:col-start-10",11:"md:col-start-11",12:"md:col-start-12"},lg:{1:"lg:col-start-1",2:"lg:col-start-2",3:"lg:col-start-3",4:"lg:col-start-4",5:"lg:col-start-5",6:"lg:col-start-6",7:"lg:col-start-7",8:"lg:col-start-8",9:"lg:col-start-9",10:"lg:col-start-10",11:"lg:col-start-11",12:"lg:col-start-12"}},jh={sm:{row:"grid-flow-row",column:"grid-flow-col","row-dense":"grid-flow-row-dense","column-dense":"grid-flow-col-dense"},md:{row:"md:grid-flow-row",column:"md:grid-flow-col","row-dense":"md:grid-flow-row-dense","column-dense":"md:grid-flow-col-dense"},lg:{row:"lg:grid-flow-row",column:"lg:grid-flow-col","row-dense":"lg:grid-flow-row-dense","column-dense":"lg:grid-flow-col-dense"}},Dh={sm:{normal:"justify-normal",start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between",around:"justify-around",evenly:"justify-evenly",stretch:"justify-stretch"},md:{normal:"md:justify-normal",start:"md:justify-start",end:"md:justify-end",center:"md:justify-center",between:"md:justify-between",around:"md:justify-around",evenly:"md:justify-evenly",stretch:"md:justify-stretch"},lg:{normal:"lg:justify-normal",start:"lg:justify-start",end:"lg:justify-end",center:"lg:justify-center",between:"lg:justify-between",around:"lg:justify-around",evenly:"lg:justify-evenly",stretch:"lg:justify-stretch"}},Eh={sm:{start:"items-start",end:"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"},md:{start:"md:items-start",end:"md:items-end",center:"md:items-center",baseline:"md:items-baseline",stretch:"md:items-stretch"},lg:{start:"lg:items-start",end:"lg:items-end",center:"lg:items-center",baseline:"lg:items-baseline",stretch:"lg:items-stretch"}},Th={sm:{start:"self-start",end:"self-end",center:"self-center",baseline:"self-baseline",stretch:"self-stretch"},md:{start:"md:self-start",end:"md:self-end",center:"md:self-center",baseline:"md:self-baseline",stretch:"md:self-stretch"},lg:{start:"lg:self-start",end:"lg:self-end",center:"lg:self-center",baseline:"lg:self-baseline",stretch:"lg:self-stretch"}},Oh={sm:{auto:"justify-self-auto",start:"justify-self-start",end:"justify-self-end",center:"justify-self-center",baseline:"justify-self-baseline",stretch:"justify-self-stretch"},md:{auto:"md:justify-self-auto",start:"md:justify-self-start",end:"md:justify-self-end",center:"md:justify-self-center",baseline:"md:justify-self-baseline",stretch:"md:justify-self-stretch"},lg:{auto:"lg:justify-self-auto",start:"lg:justify-self-start",end:"lg:justify-self-end",center:"lg:justify-self-center",baseline:"lg:justify-self-baseline",stretch:"lg:justify-self-stretch"}},Ih={sm:{row:"flex-row","row-reverse":"flex-row-reverse",column:"flex-col","column-reverse":"flex-col-reverse"},md:{row:"md:flex-row","row-reverse":"md:flex-row-reverse",column:"md:flex-col","column-reverse":"md:flex-col-reverse"},lg:{row:"lg:flex-row","row-reverse":"lg:flex-row-reverse",column:"lg:flex-col","column-reverse":"lg:flex-col-reverse"}},Ah={sm:{wrap:"flex-wrap","wrap-reverse":"flex-wrap-reverse",nowrap:"flex-nowrap"},md:{wrap:"md:flex-wrap","wrap-reverse":"md:flex-wrap-reverse",nowrap:"md:flex-nowrap"},lg:{wrap:"lg:flex-wrap","wrap-reverse":"lg:flex-wrap-reverse",nowrap:"lg:flex-nowrap"}},kh={sm:{1:"w-full",2:"w-1/2",3:"w-1/3",4:"w-1/4",5:"w-1/5",6:"w-1/6",7:"w-1/7",8:"w-1/8",9:"w-1/9",10:"w-1/10",11:"w-1/11",12:"w-1/12"},md:{1:"md:w-full",2:"md:w-1/2",3:"md:w-1/3",4:"md:w-1/4",5:"md:w-1/5",6:"md:w-1/6",7:"md:w-1/7",8:"md:w-1/8",9:"md:w-1/9",10:"md:w-1/10",11:"md:w-1/11",12:"md:w-1/12"},lg:{1:"lg:w-full",2:"lg:w-1/2",3:"lg:w-1/3",4:"lg:w-1/4",5:"lg:w-1/5",6:"lg:w-1/6",7:"lg:w-1/7",8:"lg:w-1/8",9:"lg:w-1/9",10:"lg:w-1/10",11:"lg:w-1/11",12:"lg:w-1/12"}},Sh={sm:{1:"order-1",2:"order-2",3:"order-3",4:"order-4",5:"order-5",6:"order-6",7:"order-7",8:"order-8",9:"order-9",10:"order-10",11:"order-11",12:"order-12",first:"order-first",last:"order-last",none:"order-none"},md:{1:"md:order-1",2:"md:order-2",3:"md:order-3",4:"md:order-4",5:"md:order-5",6:"md:order-6",7:"md:order-7",8:"md:order-8",9:"md:order-9",10:"md:order-10",11:"md:order-11",12:"md:order-12",first:"md:order-first",last:"md:order-last",none:"md:order-none"},lg:{1:"lg:order-1",2:"lg:order-2",3:"lg:order-3",4:"lg:order-4",5:"lg:order-5",6:"lg:order-6",7:"lg:order-7",8:"lg:order-8",9:"lg:order-9",10:"lg:order-10",11:"lg:order-11",12:"lg:order-12",first:"lg:order-first",last:"lg:order-last",none:"lg:order-none"}},_h={sm:{0:"grow-0",1:"grow"},md:{0:"md:grow-0",1:"md:grow"},lg:{0:"lg:grow-0",1:"lg:grow"}},Ch={sm:{0:"shrink-0",1:"shrink"},md:{0:"md:shrink-0",1:"md:shrink"},lg:{0:"lg:shrink-0",1:"lg:shrink"}},zh=(e,t,n,r="sm")=>{const o=[];switch(typeof e){case"object":for(const[r,a]of Object.entries(e))t[r]&&o.push(t?.[r]?.[a]??t?.[r]?.[n?.[r]]??"");break;case"string":case"number":const a=r;o.push(t?.[a]?.[e]??t?.[a]?.[n?.[a]]??"");break;default:if(void 0===e)break;o.push(t?.[r]?.[n]??"")}return o.join(" ")},Lh=({className:e,cols:t,gap:n,gapX:r,gapY:o,align:a,justify:i,gridFlow:s,colsSubGrid:l=!1,rowsSubGrid:c=!1,autoRows:u=!1,autoCols:d=!1,children:m,...p})=>{const f=zh(t,vh,1),h=zh(n,bh,"sm"),g=zh(r,Mh,""),y=zh(o,xh,""),v=zh(a,Eh,""),b=zh(i,Dh,""),M=zh(s,jh,"");return(0,Ge.jsx)("div",{className:en("grid",{"grid-cols-subgrid":l,"grid-rows-subgrid":c,"auto-cols-auto":d,"auto-rows-auto":u},f,h,g,y,v,b,M,e),...p,children:m})};Lh.Item=({className:e,children:t,colSpan:n,colStart:r,alignSelf:o,justifySelf:a,...i})=>{const s=zh(n,wh,0),l=zh(r,Nh,0),c=zh(o,Th,""),u=zh(a,Oh,"");return(0,Ge.jsx)("div",{className:en(s,l,c,u,e),...i,children:t})};const Ph=(0,a.createContext)({}),Uh=({containerType:e="flex",gap:t="sm",gapX:n,gapY:r,direction:o,justify:a,align:i,wrap:s,cols:l,className:c,children:u,...d})=>{if("grid"===e)return(0,Ge.jsx)(Ph.Provider,{value:{containerType:e},children:(0,Ge.jsx)(Lh,{className:c,gap:t,gapX:n,gapY:r,cols:l,children:u,align:i,justify:a,...d})});const m=zh(s,Ah,""),p=zh(t,bh,"sm"),f=zh(n,Mh,""),h=zh(r,xh,""),g=zh(o,Ih,""),y=zh(a,Dh,""),v=zh(i,Eh,""),b=en("flex",m,p,f,h,g,y,v,c);return(0,Ge.jsx)(Ph.Provider,{value:{containerType:e,cols:l},children:"flex"===e?(0,Ge.jsx)("div",{className:b,children:u}):(0,Ge.jsx)(Lh,{className:c,gap:t,gapX:n,gapY:r,cols:l,children:u,align:i,justify:a,...d})})},Rh=({grow:e,shrink:t,order:n,alignSelf:r,justifySelf:o,className:i,children:s,...l})=>{const{containerType:c,cols:u}=(0,a.useContext)(Ph);if("grid"===c)return(0,Ge.jsx)(Lh.Item,{className:i,alignSelf:r,justifySelf:o,children:s,...l});const d=zh(r,Th,""),m=zh(o,Oh,""),p=zh(e,_h,0),f=zh(t,Ch,0),h=zh(n,Sh,0),g=zh(u,kh,1);return(0,Ge.jsx)("div",{className:en("box-border",p,f,h,d,m,g,i),children:s})};Uh.Item=Rh,Uh.displayName="Container",Rh.displayName="Container.Item";const Qh=({title:e="",description:t="",icon:n=null,iconPosition:r="right",tag:o="h2",size:a="sm",className:i=""})=>{const s={xs:"gap-1 [&>svg]:size-3.5",sm:"gap-1 [&>svg]:size-4",md:"gap-1.5 [&>svg]:size-5",lg:"gap-1.5 [&>svg]:size-5"};if(!e)return null;const l=()=>(0,Ge.jsx)(o,{className:en("font-semibold p-0 m-0",{xs:"text-base [&>*]:text-base gap-1",sm:"text-lg [&>*]:text-lg gap-1",md:"text-xl [&>*]:text-xl gap-1.5",lg:"text-2xl [&>*]:text-2xl gap-1.5"}[a]),children:e});return t?(0,Ge.jsxs)("div",{className:i,children:[(0,Ge.jsxs)("div",{children:[n&&"left"===r&&(0,Ge.jsxs)("div",{className:en("flex items-center",s[a]),children:[n,l()]}),n&&"right"===r&&(0,Ge.jsxs)("div",{className:en("flex items-center",s[a]),children:[l(),n]}),!n&&l()]}),(0,Ge.jsx)("p",{className:en("text-text-secondary font-normal my-0",{xs:"text-sm",sm:"text-sm",md:"text-base",lg:"text-base"}[a]),children:t})]}):(0,Ge.jsxs)("div",{className:i,children:[n&&"left"===r&&(0,Ge.jsxs)("div",{className:en("flex items-center",s[a]),children:[n,l()]}),n&&"right"===r&&(0,Ge.jsxs)("div",{className:en("flex items-center",s[a]),children:[l(),n]}),!n&&l()]})};function Yh({title:e,titleId:t,...n},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"}))}const Bh=a.forwardRef(Yh);function Fh({title:e,titleId:t,...n},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"}))}const Wh=a.forwardRef(Fh);function Vh({title:e,titleId:t,...n},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6.042A8.967 8.967 0 0 0 6 3.75c-1.052 0-2.062.18-3 .512v14.25A8.987 8.987 0 0 1 6 18c2.305 0 4.408.867 6 2.292m0-14.25a8.966 8.966 0 0 1 6-2.292c1.052 0 2.062.18 3 .512v14.25A8.987 8.987 0 0 0 18 18a8.967 8.967 0 0 0-6 2.292m0-14.25v14.25"}))}const $h=a.forwardRef(Vh);function Hh({title:e,titleId:t,...n},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}),a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.91 11.672a.375.375 0 0 1 0 .656l-5.603 3.113a.375.375 0 0 1-.557-.328V8.887c0-.286.307-.466.557-.327l5.603 3.112Z"}))}const Gh=a.forwardRef(Hh),Zh=()=>{const e=cart_abandonment_admin.knowledge_base;return(0,a.createElement)(sh,{design:"simple",exitOnEsc:!0,scrollLock:!0,trigger:(0,a.createElement)("div",{role:"button","aria-label":(0,Yf.__)("Knowledge Base","woo-cart-abandonment-recovery"),tabIndex:"0",className:"flex justify-center items-center cursor-pointer focus-visible:outline-auto"},(0,a.createElement)(th,{content:(0,Yf.__)("Knowledge Base","woo-cart-abandonment-recovery"),position:"bottom",className:"z-50"},(0,a.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"h-5 w-5 cursor text-gray-500","aria-hidden":"true",focusable:"false",role:"button",tabIndex:0},(0,a.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z"}))))},(0,a.createElement)(sh.Backdrop,null),(0,a.createElement)(sh.Panel,{className:"gap-0 m-5 sm:m-0 sm:w-3/5"},(0,a.createElement)(sh.Header,{className:"p-5 border-0 border-b border-solid border-gray-200"},(0,a.createElement)("div",{className:"flex items-center justify-between"},(0,a.createElement)(sh.Title,{className:"text-2xl font-semibold"},(0,Yf.__)("Knowledge Base","woo-cart-abandonment-recovery")),(0,a.createElement)(sh.CloseButton,{className:"[&>svg]:size-5",type:"button"}))),(0,a.createElement)(sh.Body,{className:"px-0 flex flex-col lg:flex-row"},(0,a.createElement)("div",{className:"p-5 flex flex-col flex-1 border-0 border-r border-solid border-gray-200 max-h-[550px] overflow-y-auto"},e?.map((e,t)=>(0,a.createElement)("a",{key:t,href:e.url,className:"flex items-center justify-between no-underline text-gray-800 rounded-md p-2 hover:bg-gray-50 cursor-pointer group",target:"_blank",rel:"noreferrer"},(0,a.createElement)("div",{className:"flex items-center"},(0,a.createElement)(Bh,{className:"size-3"}),(0,a.createElement)("span",{className:"text-base ml-2"},e.title)),(0,a.createElement)("div",{className:"invisible group-hover:visible"},(0,a.createElement)(Wh,{className:"size-5"}))))),(0,a.createElement)(Uh,{align:"center",containerType:"flex",direction:"column",gap:"md",justify:"start",className:"p-5 lg:w-1/3"},(0,a.createElement)(Uh.Item,{className:"w-full p-4 border border-solid border-gray-200 rounded-md"},(0,a.createElement)(Qh,{title:(0,Yf.__)("Need Help?","woo-cart-abandonment-recovery"),description:(0,Yf.__)("We aim to answer all priority support requests within 2-3 hours.","woo-cart-abandonment-recovery"),icon:(0,a.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.7,stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},(0,a.createElement)("path",{d:"M3 11h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-5Zm0 0a9 9 0 1 1 18 0m0 0v5a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3Z"}),(0,a.createElement)("path",{d:"M21 16v2a4 4 0 0 1-4 4h-5"})),iconPosition:"left",size:"xs",tag:"h2",className:"[&_svg]:size-5 [&_svg]:text-text-secondary text-gray-900 font-medium"}),(0,a.createElement)("a",{href:"https://cartflows.com/support",className:"no-underline mt-2 inline-flex gap-1.5 items-center text-sm font-medium text-flamingo-400 hover:text-primary-600",target:"_blank",rel:"noreferrer"},(0,Yf.__)("Request Support","woo-cart-abandonment-recovery"),(0,a.createElement)(Wh,{class:"h-4 w-4"}))),(0,a.createElement)(Uh.Item,{className:"w-full p-4 border border-solid border-gray-200 rounded-md"},(0,a.createElement)(Qh,{title:(0,Yf.__)("All Documentation","woo-cart-abandonment-recovery"),description:(0,Yf.__)("Browse documentation, reference material, and tutorials for Cart Abandonment.","woo-cart-abandonment-recovery"),icon:(0,a.createElement)($h,null),iconPosition:"left",size:"xs",tag:"h2",className:"[&_svg]:size-5 [&_svg]:text-text-secondary text-gray-900 font-medium"}),(0,a.createElement)("a",{href:"https://cartflows.com/docs-category/cart-abandonment/",className:"no-underline mt-2 inline-flex gap-1.5 items-center text-sm font-medium text-flamingo-400 hover:text-primary-600",target:"_blank",rel:"noreferrer"},(0,Yf.__)("View documentation","woo-cart-abandonment-recovery"),(0,a.createElement)(Wh,{class:"h-4 w-4"}))),(0,a.createElement)(Uh.Item,{className:"w-full p-4 border border-solid border-gray-200 rounded-md"},(0,a.createElement)(Qh,{title:(0,Yf.__)("Videos","woo-cart-abandonment-recovery"),description:(0,Yf.__)("Browse tutorial videos on our YouTube channel.","woo-cart-abandonment-recovery"),icon:(0,a.createElement)(Gh,null),iconPosition:"left",size:"xs",tag:"h2",className:"[&_svg]:size-5 [&_svg]:text-text-secondary text-gray-900 font-medium"}),(0,a.createElement)("a",{href:"https://www.youtube.com/c/CartFlows",className:"no-underline mt-2 inline-flex gap-1.5 items-center text-sm font-medium text-flamingo-400 hover:text-primary-600",target:"_blank",rel:"noreferrer"},(0,Yf.__)("Youtube Channel","woo-cart-abandonment-recovery"),(0,a.createElement)(Wh,{class:"h-4 w-4"})))))))},qh=(0,a.createContext)(),Kh=({reducer:e,initialState:t,children:n})=>(0,a.createElement)(qh.Provider,{value:(0,a.useReducer)(e,t)},n),Xh=()=>(0,a.useContext)(qh),Jh="UPDATE_SETTINGS_DATA",eg="UPDATE_LICENSE_STATUS",tg={data:"",loading:!1,error:"",settingsData:{values:cart_abandonment_admin?.settings||{},fields:cart_abandonment_admin?.settings_fields||{}},licenseStatus:cart_abandonment_admin?.license_status||"",dashboardData:"",isDashboardLoading:!1,dashboardError:"",followUpData:"",productData:""},ng=(e=tg,t)=>{switch(t.type){case"SET_DATA":return{...e,data:t.payload,loading:!1,error:null};case"UPDATE_DATA":return{...e,data:{...e.data,...t.payload}};case"SET_SETTINGS_DATA":return{...e,settingsData:{...e.settingsData,values:t?.payload?.data||{}}};case Jh:return{...e,settingsData:{...e.settingsData,values:{...e.settingsData.values,[t.payload.option]:t.payload.value}}};case"RESET_DATA":return tg;case"FETCH_DASHBOARD_DATA_REQUEST":return{...e,isDashboardLoading:!0,dashboardError:null};case"FETCH_DASHBOARD_DATA_SUCCESS":return{...e,dashboardData:t.dashboardData,isDashboardLoading:t.isDashboardLoading,dashboardError:null};case"FETCH_DASHBOARD_DATA_FAILURE":return{...e,isDashboardLoading:!1,dashboardError:t.payload};case"FETCH_FOLLOWUP_DATA_SUCCESS":return{...e,followUpData:t.followUpData};case"FETCH_PRODUCT_DATA_SUCCESS":return{...e,productData:t.productData};case eg:return{...e,licenseStatus:t.payload};default:return e}},rg=window.wp.apiFetch;var og=o.n(rg);async function ag(e,t={},n="POST",r=()=>{},o=()=>{},a=!1,i=!1){try{const o={method:n};return a?(o.url=e,o.body=t):(o.path=e,!t||"POST"!==n&&"PUT"!==n||(o.data=t)),await og()(o).then(e=>{r&&r(e),i&&rt.success("Success!",{description:"Setting is saved successfully"})})}catch(e){throw console.error("API Error:",e),i&&rt.error("Error!",{description:"Something wrong! "+e}),o&&o(e),e}}const ig=()=>{const[e]=Xh(),t=new URLSearchParams(oe().search).get("path")||"dashboard",n="1"===e?.licenseStatus,r=[{name:(0,Yf.__)("Dashboard","woo-cart-abandonment-recovery"),path:"dashboard"},{name:(0,Yf.__)("Follow Up Templates","woo-cart-abandonment-recovery"),path:"follow-up-templates"},{name:(0,Yf.__)("Reports","woo-cart-abandonment-recovery"),path:"reports"},{name:(0,Yf.__)("Integrations","woo-cart-abandonment-recovery"),path:"integrations"},{name:(0,Yf.__)("Settings","woo-cart-abandonment-recovery"),path:"settings"}];return(0,a.createElement)("div",{className:"z-30 relative"},(0,a.createElement)(cu,{className:"py-0 h-16 min-h-[unset] border-0 border-b border-solid border-border-subtle"},(0,a.createElement)(cu.Left,null,(0,a.createElement)(cu.Item,null,(0,a.createElement)("img",{src:Wf,alt:"WooCommerce Cart Abandonment Logo","aria-label":"WooCommerce Cart Abandonment Logo",className:"h-8 w-8"}))),(0,a.createElement)(cu.Middle,{align:"left",className:"h-full hidden md:block"},(0,a.createElement)(cu.Item,{className:"h-full gap-2"},r.map(e=>"reports"!==e.path?(0,a.createElement)(Fe,{key:e.path,to:cart_abandonment_admin.admin_url+`&path=${e.path}`,className:`px-4 py-2 text-sm inline-flex items-center border-b-2 ${t===e.path?"text-gray-900 border-flamingo-400":"text-gray-600 hover:text-gray-900 border-transparent"} font-medium box-border no-underline h-full border-solid border-0 transition-colors duration-200`},e.name):(0,a.createElement)(Mf,{key:e.path,className:"h-full"},(0,a.createElement)(Mf.Trigger,{className:`px-4 py-2 text-sm inline-flex gap-1 items-center border-0 border-b-2 cursor-pointer ${["follow-up","product","detailed-report"].includes(t)?"text-gray-900 border-flamingo-400":"text-gray-600 hover:text-gray-900 border-transparent"} font-medium box-border h-full border-solid transition-colors duration-200 focus-visible:outline focus-visible:outline-2`},(0,Yf.__)("Reports","woo-cart-abandonment-recovery"),(0,a.createElement)(Ff,{className:"h-4 w-4 "+(["follow-up","product","detailed-report"].includes(t)?"text-gray-900":"text-gray-600")})),(0,a.createElement)(Mf.ContentWrapper,{className:"z-999999"},(0,a.createElement)(Mf.Content,null,(0,a.createElement)(Mf.List,null,(0,a.createElement)(Mf.Item,{className:"p-0 [&>*:not(svg)]:m-0"},(0,a.createElement)(Fe,{to:cart_abandonment_admin.admin_url+"&path=follow-up",className:"p-2 w-full text-sm inline-flex items-center text-gray-600 hover:text-gray-900 font-medium box-border no-underline transition-colors duration-200"},(0,Yf.__)("Follow Up","woo-cart-abandonment-recovery"))),(0,a.createElement)(Mf.Item,{className:"p-0 [&>*:not(svg)]:m-0"},(0,a.createElement)(Fe,{to:cart_abandonment_admin.admin_url+"&path=product",className:"p-2 text-sm w-full inline-flex items-center text-gray-600 hover:text-gray-900 font-medium box-border no-underline transition-colors duration-200"},(0,Yf.__)("Product","woo-cart-abandonment-recovery")))))))))),(0,a.createElement)(cu.Right,null,cart_abandonment_admin?.is_pro_active&&(0,a.createElement)(cu.Item,null,(0,a.createElement)(Of,{label:n?"Valid License":"Activate License",size:"xs",variant:n?"green":"red"})),(0,a.createElement)(cu.Item,null,(0,a.createElement)(Of,{label:cart_abandonment_admin?.is_pro_active&&n?"Pro":"Core",size:"xs",variant:"neutral"})),cart_abandonment_admin?.knowledge_base&&(0,a.createElement)(cu.Item,null,(0,a.createElement)(Zh,null)),cart_abandonment_admin?.whats_new_rss_feed&&(0,a.createElement)(cu.Item,null,(0,a.createElement)(nh,null)),(0,a.createElement)(cu.Item,{className:"md:hidden"},(0,a.createElement)(Qf,null,(0,a.createElement)(Qf.Toggle,{className:"size-6"}),(0,a.createElement)(Qf.Options,null,r.map(e=>"reports"!==e.path?(0,a.createElement)(Qf.Option,{key:e.path,tag:"div"},(0,a.createElement)(Fe,{to:cart_abandonment_admin.admin_url+`&path=${e.path}`,className:(t===e.path?"text-gray-900":"text-gray-600 hover:text-gray-900")+" w-full font-medium box-border no-underline transition-colors duration-200"},e.name)):(0,a.createElement)(s().Fragment,{key:e.path},(0,a.createElement)(Qf.Option,{tag:"div"},(0,a.createElement)(Fe,{to:cart_abandonment_admin.admin_url+"&path=follow-up",className:(["follow-up","product","detailed-report"].includes(t)?"text-gray-900":"text-gray-600 hover:text-gray-900")+" w-full font-medium box-border no-underline transition-colors duration-200"},(0,Yf.__)("Follow Up Reports","woo-cart-abandonment-recovery"))),(0,a.createElement)(Qf.Option,{tag:"div"},(0,a.createElement)(Fe,{to:cart_abandonment_admin.admin_url+"&path=product",className:(["follow-up","product","detailed-report"].includes(t)?"text-gray-900":"text-gray-600 hover:text-gray-900")+" w-full font-medium box-border no-underline transition-colors duration-200"},(0,Yf.__)("Product Reports","woo-cart-abandonment-recovery")))))))))))};var sg=o(442);const lg=sg.default||sg;var cg=o(7350),ug=o.n(cg),dg=o(5015),mg=o.n(dg),pg=o(1741),fg=o.n(pg),hg=o(8156),gg=o.n(hg),yg=o(8023),vg=o.n(yg),bg=o(9843),Mg=o.n(bg),xg=function(e){return 0===e?0:e>0?1:-1},wg=function(e){return mg()(e)&&e.indexOf("%")===e.length-1},Ng=function(e){return vg()(e)&&!fg()(e)},jg=function(e){return Ng(e)||mg()(e)},Dg=0,Eg=function(e){var t=++Dg;return"".concat(e||"").concat(t)},Tg=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!Ng(e)&&!mg()(e))return r;if(wg(e)){var a=e.indexOf("%");n=t*parseFloat(e.slice(0,a))/100}else n=+e;return fg()(n)&&(n=r),o&&n>t&&(n=t),n},Og=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},Ig=function(e,t){return Ng(e)&&Ng(t)?function(n){return e+n*(t-e)}:function(){return t}};function Ag(e,t,n){return e&&e.length?e.find(function(e){return e&&("function"==typeof t?t(e):gg()(e,t))===n}):null}var kg=function(e,t){return Ng(e)&&Ng(t)?e-t:mg()(e)&&mg()(t)?e.localeCompare(t):e instanceof Date&&t instanceof Date?e.getTime()-t.getTime():String(e).localeCompare(String(t))},Sg=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o]},_g=o(1882),Cg=o.n(_g),zg=o(3805),Lg=o.n(zg),Pg=o(4363);function Ug(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function Rg(e){return Rg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rg(e)}var Qg=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],Yg=["points","pathLength"],Bg={svg:["viewBox","children"],polygon:Yg,polyline:Yg},Fg=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],Wg=function(e,t){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var n=e;if((0,a.isValidElement)(e)&&(n=e.props),!Lg()(n))return null;var r={};return Object.keys(n).forEach(function(e){Fg.includes(e)&&(r[e]=t||function(t){return n[e](n,t)})}),r},Vg=function(e,t,n){if(!Lg()(e)||"object"!==Rg(e))return null;var r=null;return Object.keys(e).forEach(function(o){var a=e[o];Fg.includes(o)&&"function"==typeof a&&(r||(r={}),r[o]=function(e,t,n){return function(r){return e(t,n,r),null}}(a,t,n))}),r},$g=["children"],Hg=["children"];function Gg(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Zg(e){return Zg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zg(e)}var qg={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},Kg=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":""},Xg=null,Jg=null,ey=function e(t){if(t===Xg&&Array.isArray(Jg))return Jg;var n=[];return a.Children.forEach(t,function(t){Mg()(t)||((0,Pg.isFragment)(t)?n=n.concat(e(t.props.children)):n.push(t))}),Jg=n,Xg=t,n};function ty(e,t){var n=[],r=[];return r=Array.isArray(t)?t.map(function(e){return Kg(e)}):[Kg(t)],ey(e).forEach(function(e){var t=gg()(e,"type.displayName")||gg()(e,"type.name");-1!==r.indexOf(t)&&n.push(e)}),n}function ny(e,t){var n=ty(e,t);return n&&n[0]}var ry=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!(!Ng(n)||n<=0||!Ng(r)||r<=0)},oy=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],ay=function(e,t,n){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var r=e;if((0,a.isValidElement)(e)&&(r=e.props),!Lg()(r))return null;var o={};return Object.keys(r).forEach(function(e){var a;(function(e,t,n,r){var o,a=null!==(o=null==Bg?void 0:Bg[r])&&void 0!==o?o:[];return t.startsWith("data-")||!Cg()(e)&&(r&&a.includes(t)||Qg.includes(t))||n&&Fg.includes(t)})(null===(a=r)||void 0===a?void 0:a[e],e,t,n)&&(o[e]=r[e])}),o},iy=function e(t,n){if(t===n)return!0;var r=a.Children.count(t);if(r!==a.Children.count(n))return!1;if(0===r)return!0;if(1===r)return sy(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var o=0;o<r;o++){var i=t[o],s=n[o];if(Array.isArray(i)||Array.isArray(s)){if(!e(i,s))return!1}else if(!sy(i,s))return!1}return!0},sy=function(e,t){if(Mg()(e)&&Mg()(t))return!0;if(!Mg()(e)&&!Mg()(t)){var n=e.props||{},r=n.children,o=Gg(n,$g),a=t.props||{},i=a.children,s=Gg(a,Hg);return r&&i?Ug(o,s)&&iy(r,i):!r&&!i&&Ug(o,s)}return!1},ly=function(e,t){var n=[],r={};return ey(e).forEach(function(e,o){if(function(e){return e&&e.type&&mg()(e.type)&&oy.indexOf(e.type)>=0}(e))n.push(e);else if(e){var a=Kg(e.type),i=t[a]||{},s=i.handler,l=i.once;if(s&&(!l||!r[a])){var c=s(e,a,o);n.push(c),r[a]=!0}}}),n};function cy(e){return cy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cy(e)}function uy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function dy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uy(Object(n),!0).forEach(function(t){my(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uy(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function my(e,t,n){return t=function(e){var t=function(e){if("object"!=cy(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=cy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==cy(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function py(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var fy=(0,a.forwardRef)(function(e,t){var n=e.aspect,r=e.initialDimension,o=void 0===r?{width:-1,height:-1}:r,i=e.width,l=void 0===i?"100%":i,c=e.height,u=void 0===c?"100%":c,d=e.minWidth,m=void 0===d?0:d,p=e.minHeight,f=e.maxHeight,h=e.children,g=e.debounce,y=void 0===g?0:g,v=e.id,b=e.className,M=e.onResize,x=e.style,w=void 0===x?{}:x,N=(0,a.useRef)(null),j=(0,a.useRef)();j.current=M,(0,a.useImperativeHandle)(t,function(){return Object.defineProperty(N.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),N.current},configurable:!0})});var D=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return py(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?py(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,a.useState)({containerWidth:o.width,containerHeight:o.height}),2),E=D[0],T=D[1],O=(0,a.useCallback)(function(e,t){T(function(n){var r=Math.round(e),o=Math.round(t);return n.containerWidth===r&&n.containerHeight===o?n:{containerWidth:r,containerHeight:o}})},[]);(0,a.useEffect)(function(){var e=function(e){var t,n=e[0].contentRect,r=n.width,o=n.height;O(r,o),null===(t=j.current)||void 0===t||t.call(j,r,o)};y>0&&(e=ug()(e,y,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),n=N.current.getBoundingClientRect(),r=n.width,o=n.height;return O(r,o),t.observe(N.current),function(){t.disconnect()}},[O,y]);var I=(0,a.useMemo)(function(){var e=E.containerWidth,t=E.containerHeight;if(e<0||t<0)return null;Sg(wg(l)||wg(u),"The width(%s) and height(%s) are both fixed numbers,\n       maybe you don't need to use a ResponsiveContainer.",l,u),Sg(!n||n>0,"The aspect(%s) must be greater than zero.",n);var r=wg(l)?e:l,o=wg(u)?t:u;n&&n>0&&(r?o=r/n:o&&(r=o*n),f&&o>f&&(o=f)),Sg(r>0||o>0,"The width(%s) and height(%s) of chart should be greater than 0,\n       please check the style of container, or the props width(%s) and height(%s),\n       or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n       height and width.",r,o,l,u,m,p,n);var i=!Array.isArray(h)&&Kg(h.type).endsWith("Chart");return s().Children.map(h,function(e){return s().isValidElement(e)?(0,a.cloneElement)(e,dy({width:r,height:o},i?{style:dy({height:"100%",width:"100%",maxHeight:o,maxWidth:r},e.props.style)}:{})):e})},[n,h,u,f,p,m,E,l]);return s().createElement("div",{id:v?"".concat(v):void 0,className:Jt("recharts-responsive-container",b),style:dy(dy({},w),{},{width:l,height:u,minWidth:m,minHeight:p,maxHeight:f}),ref:N},I)}),hy=o(3181),gy=o.n(hy),yy=o(3031),vy=o.n(yy);function by(e,t){if(!e)throw new Error("Invariant failed")}var My=["children","width","height","viewBox","className","style","title","desc"];function xy(){return xy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xy.apply(this,arguments)}function wy(e){var t=e.children,n=e.width,r=e.height,o=e.viewBox,a=e.className,i=e.style,l=e.title,c=e.desc,u=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,My),d=o||{width:n,height:r,x:0,y:0},m=Jt("recharts-surface",a);return s().createElement("svg",xy({},ay(u,!0,"svg"),{className:m,width:n,height:r,style:i,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height)}),s().createElement("title",null,l),s().createElement("desc",null,c),t)}var Ny=["children","className"];function jy(){return jy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jy.apply(this,arguments)}var Dy=s().forwardRef(function(e,t){var n=e.children,r=e.className,o=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Ny),a=Jt("recharts-layer",r);return s().createElement("g",jy({className:a},ay(o,!0),{ref:t}),n)});function Ey(e){return Ey="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ey(e)}function Ty(){return Ty=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ty.apply(this,arguments)}function Oy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Iy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ay(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Iy(Object(n),!0).forEach(function(t){ky(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Iy(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ky(e,t,n){return t=function(e){var t=function(e){if("object"!=Ey(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ey(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ey(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sy(e){return Array.isArray(e)&&jg(e[0])&&jg(e[1])?e.join(" ~ "):e}var _y=function(e){var t=e.separator,n=void 0===t?" : ":t,r=e.contentStyle,o=void 0===r?{}:r,a=e.itemStyle,i=void 0===a?{}:a,l=e.labelStyle,c=void 0===l?{}:l,u=e.payload,d=e.formatter,m=e.itemSorter,p=e.wrapperClassName,f=e.labelClassName,h=e.label,g=e.labelFormatter,y=e.accessibilityLayer,v=void 0!==y&&y,b=Ay({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},o),M=Ay({margin:0},c),x=!Mg()(h),w=x?h:"",N=Jt("recharts-default-tooltip",p),j=Jt("recharts-tooltip-label",f);x&&g&&null!=u&&(w=g(h,u));var D=v?{role:"status","aria-live":"assertive"}:{};return s().createElement("div",Ty({className:N,style:b},D),s().createElement("p",{className:j,style:M},s().isValidElement(w)?w:"".concat(w)),function(){if(u&&u.length){var e=(m?vy()(u,m):u).map(function(e,t){if("none"===e.type)return null;var r=Ay({display:"block",paddingTop:4,paddingBottom:4,color:e.color||"#000"},i),o=e.formatter||d||Sy,a=e.value,l=e.name,c=a,m=l;if(o&&null!=c&&null!=m){var p=o(a,l,e,t,u);if(Array.isArray(p)){var f=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Oy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Oy(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(p,2);c=f[0],m=f[1]}else c=p}return s().createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(t),style:r},jg(m)?s().createElement("span",{className:"recharts-tooltip-item-name"},m):null,jg(m)?s().createElement("span",{className:"recharts-tooltip-item-separator"},n):null,s().createElement("span",{className:"recharts-tooltip-item-value"},c),s().createElement("span",{className:"recharts-tooltip-item-unit"},e.unit||""))});return s().createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},e)}return null}())};function Cy(e){return Cy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cy(e)}function zy(e,t,n){return t=function(e){var t=function(e){if("object"!=Cy(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Cy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Cy(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ly="recharts-tooltip-wrapper",Py={visibility:"hidden"};function Uy(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return Jt(Ly,zy(zy(zy(zy({},"".concat(Ly,"-right"),Ng(n)&&t&&Ng(t.x)&&n>=t.x),"".concat(Ly,"-left"),Ng(n)&&t&&Ng(t.x)&&n<t.x),"".concat(Ly,"-bottom"),Ng(r)&&t&&Ng(t.y)&&r>=t.y),"".concat(Ly,"-top"),Ng(r)&&t&&Ng(t.y)&&r<t.y))}function Ry(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,o=e.offsetTopLeft,a=e.position,i=e.reverseDirection,s=e.tooltipDimension,l=e.viewBox,c=e.viewBoxDimension;if(a&&Ng(a[r]))return a[r];var u=n[r]-s-o,d=n[r]+o;return t[r]?i[r]?u:d:i[r]?u<l[r]?Math.max(d,l[r]):Math.max(u,l[r]):d+s>l[r]+c?Math.max(u,l[r]):Math.max(d,l[r])}function Qy(e){return Qy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qy(e)}function Yy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function By(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yy(Object(n),!0).forEach(function(t){Hy(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yy(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Fy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Gy(r.key),r)}}function Wy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Wy=function(){return!!e})()}function Vy(e){return Vy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Vy(e)}function $y(e,t){return $y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$y(e,t)}function Hy(e,t,n){return(t=Gy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gy(e){var t=function(e){if("object"!=Qy(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Qy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Qy(t)?t:t+""}var Zy=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Hy(e=function(e,t,n){return t=Vy(t),function(e,t){if(t&&("object"===Qy(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Wy()?Reflect.construct(t,n||[],Vy(e).constructor):t.apply(e,n))}(this,t,[].concat(r)),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Hy(e,"handleKeyDown",function(t){var n,r,o,a;"Escape"===t.key&&e.setState({dismissed:!0,dismissedAtCoordinate:{x:null!==(n=null===(r=e.props.coordinate)||void 0===r?void 0:r.x)&&void 0!==n?n:0,y:null!==(o=null===(a=e.props.coordinate)||void 0===a?void 0:a.y)&&void 0!==o?o:0}})}),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$y(e,t)}(t,e),n=t,(r=[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var e=this.wrapperNode.getBoundingClientRect();(Math.abs(e.width-this.state.lastBoundingBox.width)>1||Math.abs(e.height-this.state.lastBoundingBox.height)>1)&&this.setState({lastBoundingBox:{width:e.width,height:e.height}})}else-1===this.state.lastBoundingBox.width&&-1===this.state.lastBoundingBox.height||this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var e,t;this.props.active&&this.updateBBox(),this.state.dismissed&&((null===(e=this.props.coordinate)||void 0===e?void 0:e.x)===this.state.dismissedAtCoordinate.x&&(null===(t=this.props.coordinate)||void 0===t?void 0:t.y)===this.state.dismissedAtCoordinate.y||(this.state.dismissed=!1))}},{key:"render",value:function(){var e=this,t=this.props,n=t.active,r=t.allowEscapeViewBox,o=t.animationDuration,a=t.animationEasing,i=t.children,l=t.coordinate,c=t.hasPayload,u=t.isAnimationActive,d=t.offset,m=t.position,p=t.reverseDirection,f=t.useTranslate3d,h=t.viewBox,g=t.wrapperStyle,y=function(e){var t,n,r=e.allowEscapeViewBox,o=e.coordinate,a=e.offsetTopLeft,i=e.position,s=e.reverseDirection,l=e.tooltipBox,c=e.useTranslate3d,u=e.viewBox;return{cssProperties:l.height>0&&l.width>0&&o?function(e){var t=e.translateX,n=e.translateY;return{transform:e.useTranslate3d?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}({translateX:t=Ry({allowEscapeViewBox:r,coordinate:o,key:"x",offsetTopLeft:a,position:i,reverseDirection:s,tooltipDimension:l.width,viewBox:u,viewBoxDimension:u.width}),translateY:n=Ry({allowEscapeViewBox:r,coordinate:o,key:"y",offsetTopLeft:a,position:i,reverseDirection:s,tooltipDimension:l.height,viewBox:u,viewBoxDimension:u.height}),useTranslate3d:c}):Py,cssClasses:Uy({translateX:t,translateY:n,coordinate:o})}}({allowEscapeViewBox:r,coordinate:l,offsetTopLeft:d,position:m,reverseDirection:p,tooltipBox:this.state.lastBoundingBox,useTranslate3d:f,viewBox:h}),v=y.cssClasses,b=y.cssProperties,M=By(By({transition:u&&n?"transform ".concat(o,"ms ").concat(a):void 0},b),{},{pointerEvents:"none",visibility:!this.state.dismissed&&n&&c?"visible":"hidden",position:"absolute",top:0,left:0},g);return s().createElement("div",{tabIndex:-1,className:v,style:M,ref:function(t){e.wrapperNode=t}},i)}}])&&Fy(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(a.PureComponent),qy={isSsr:!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(e){return qy[e]},set:function(e,t){if("string"==typeof e)qy[e]=t;else{var n=Object.keys(e);n&&n.length&&n.forEach(function(t){qy[t]=e[t]})}}},Ky=o(14),Xy=o.n(Ky);function Jy(e,t,n){return!0===t?Xy()(e,n):Cg()(t)?Xy()(e,t):e}function ev(e){return ev="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ev(e)}function tv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tv(Object(n),!0).forEach(function(t){sv(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,lv(r.key),r)}}function ov(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ov=function(){return!!e})()}function av(e){return av=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},av(e)}function iv(e,t){return iv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},iv(e,t)}function sv(e,t,n){return(t=lv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lv(e){var t=function(e){if("object"!=ev(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ev(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ev(t)?t:t+""}function cv(e){return e.dataKey}var uv=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=av(t),function(e,t){if(t&&("object"===ev(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ov()?Reflect.construct(t,n||[],av(e).constructor):t.apply(e,n))}(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&iv(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){var e=this,t=this.props,n=t.active,r=t.allowEscapeViewBox,o=t.animationDuration,a=t.animationEasing,i=t.content,l=t.coordinate,c=t.filterNull,u=t.isAnimationActive,d=t.offset,m=t.payload,p=t.payloadUniqBy,f=t.position,h=t.reverseDirection,g=t.useTranslate3d,y=t.viewBox,v=t.wrapperStyle,b=null!=m?m:[];c&&b.length&&(b=Jy(m.filter(function(t){return null!=t.value&&(!0!==t.hide||e.props.includeHidden)}),p,cv));var M=b.length>0;return s().createElement(Zy,{allowEscapeViewBox:r,animationDuration:o,animationEasing:a,isAnimationActive:u,active:n,coordinate:l,hasPayload:M,offset:d,position:f,reverseDirection:h,useTranslate3d:g,viewBox:y,wrapperStyle:v},function(e,t){return s().isValidElement(e)?s().cloneElement(e,t):"function"==typeof e?s().createElement(e,t):s().createElement(_y,t)}(i,nv(nv({},this.props),{},{payload:b})))}}])&&rv(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(a.PureComponent);sv(uv,"displayName","Tooltip"),sv(uv,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!qy.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var dv=o(5808),mv=o.n(dv);Math.abs,Math.atan2;const pv=Math.cos,fv=(Math.max,Math.min,Math.sin),hv=Math.sqrt,gv=Math.PI,yv=2*gv,vv={draw(e,t){const n=hv(t/gv);e.moveTo(n,0),e.arc(0,0,n,0,yv)}},bv={draw(e,t){const n=hv(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},Mv=hv(1/3),xv=2*Mv,wv={draw(e,t){const n=hv(t/xv),r=n*Mv;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},Nv={draw(e,t){const n=hv(t),r=-n/2;e.rect(r,r,n,n)}},jv=fv(gv/10)/fv(7*gv/10),Dv=fv(yv/10)*jv,Ev=-pv(yv/10)*jv,Tv={draw(e,t){const n=hv(.8908130915292852*t),r=Dv*n,o=Ev*n;e.moveTo(0,-n),e.lineTo(r,o);for(let t=1;t<5;++t){const a=yv*t/5,i=pv(a),s=fv(a);e.lineTo(s*n,-i*n),e.lineTo(i*r-s*o,s*r+i*o)}e.closePath()}},Ov=hv(3),Iv={draw(e,t){const n=-hv(t/(3*Ov));e.moveTo(0,2*n),e.lineTo(-Ov*n,-n),e.lineTo(Ov*n,-n),e.closePath()}},Av=-.5,kv=hv(3)/2,Sv=1/hv(12),_v=3*(Sv/2+1),Cv={draw(e,t){const n=hv(t/_v),r=n/2,o=n*Sv,a=r,i=n*Sv+n,s=-a,l=i;e.moveTo(r,o),e.lineTo(a,i),e.lineTo(s,l),e.lineTo(Av*r-kv*o,kv*r+Av*o),e.lineTo(Av*a-kv*i,kv*a+Av*i),e.lineTo(Av*s-kv*l,kv*s+Av*l),e.lineTo(Av*r+kv*o,Av*o-kv*r),e.lineTo(Av*a+kv*i,Av*i-kv*a),e.lineTo(Av*s+kv*l,Av*l-kv*s),e.closePath()}};function zv(e){return function(){return e}}const Lv=Math.PI,Pv=2*Lv,Uv=1e-6,Rv=Pv-Uv;function Qv(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}class Yv{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?Qv:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Qv;const n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,o,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+o},${this._y1=+a}`}arcTo(e,t,n,r,o){if(e=+e,t=+t,n=+n,r=+r,(o=+o)<0)throw new Error(`negative radius: ${o}`);let a=this._x1,i=this._y1,s=n-e,l=r-t,c=a-e,u=i-t,d=c*c+u*u;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(d>Uv)if(Math.abs(u*s-l*c)>Uv&&o){let m=n-a,p=r-i,f=s*s+l*l,h=m*m+p*p,g=Math.sqrt(f),y=Math.sqrt(d),v=o*Math.tan((Lv-Math.acos((f+d-h)/(2*g*y)))/2),b=v/y,M=v/g;Math.abs(b-1)>Uv&&this._append`L${e+b*c},${t+b*u}`,this._append`A${o},${o},0,0,${+(u*m>c*p)},${this._x1=e+M*s},${this._y1=t+M*l}`}else this._append`L${this._x1=e},${this._y1=t}`}arc(e,t,n,r,o,a){if(e=+e,t=+t,a=!!a,(n=+n)<0)throw new Error(`negative radius: ${n}`);let i=n*Math.cos(r),s=n*Math.sin(r),l=e+i,c=t+s,u=1^a,d=a?r-o:o-r;null===this._x1?this._append`M${l},${c}`:(Math.abs(this._x1-l)>Uv||Math.abs(this._y1-c)>Uv)&&this._append`L${l},${c}`,n&&(d<0&&(d=d%Pv+Pv),d>Rv?this._append`A${n},${n},0,1,${u},${e-i},${t-s}A${n},${n},0,1,${u},${this._x1=l},${this._y1=c}`:d>Uv&&this._append`A${n},${n},0,${+(d>=Lv)},${u},${this._x1=e+n*Math.cos(o)},${this._y1=t+n*Math.sin(o)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function Bv(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(null==n)t=null;else{const e=Math.floor(n);if(!(e>=0))throw new RangeError(`invalid digits: ${n}`);t=e}return e},()=>new Yv(t)}function Fv(e){return Fv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fv(e)}hv(3),hv(3);var Wv=["type","size","sizeType"];function Vv(){return Vv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vv.apply(this,arguments)}function $v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Hv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$v(Object(n),!0).forEach(function(t){Gv(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$v(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Gv(e,t,n){return t=function(e){var t=function(e){if("object"!=Fv(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Fv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Fv(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Zv={symbolCircle:vv,symbolCross:bv,symbolDiamond:wv,symbolSquare:Nv,symbolStar:Tv,symbolTriangle:Iv,symbolWye:Cv},qv=Math.PI/180,Kv=function(e){var t,n,r=e.type,o=void 0===r?"circle":r,a=e.size,i=void 0===a?64:a,l=e.sizeType,c=void 0===l?"area":l,u=Hv(Hv({},function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Wv)),{},{type:o,size:i,sizeType:c}),d=u.className,m=u.cx,p=u.cy,f=ay(u,!0);return m===+m&&p===+p&&i===+i?s().createElement("path",Vv({},f,{className:Jt("recharts-symbols",d),transform:"translate(".concat(m,", ").concat(p,")"),d:(t=function(e){var t="symbol".concat(mv()(e));return Zv[t]||vv}(o),n=function(e,t){let n=null,r=Bv(o);function o(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return e="function"==typeof e?e:zv(e||vv),t="function"==typeof t?t:zv(void 0===t?64:+t),o.type=function(t){return arguments.length?(e="function"==typeof t?t:zv(t),o):e},o.size=function(e){return arguments.length?(t="function"==typeof e?e:zv(+e),o):t},o.context=function(e){return arguments.length?(n=null==e?null:e,o):n},o}().type(t).size(function(e,t,n){if("area"===t)return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return.5*e*e/Math.sqrt(3);case"square":return e*e;case"star":var r=18*qv;return 1.25*e*e*(Math.tan(r)-Math.tan(2*r)*Math.pow(Math.tan(r),2));case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}}(i,c,o)),n())})):null};function Xv(e){return Xv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xv(e)}function Jv(){return Jv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jv.apply(this,arguments)}function eb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function tb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ib(r.key),r)}}function nb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(nb=function(){return!!e})()}function rb(e){return rb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},rb(e)}function ob(e,t){return ob=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ob(e,t)}function ab(e,t,n){return(t=ib(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ib(e){var t=function(e){if("object"!=Xv(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Xv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Xv(t)?t:t+""}Kv.registerSymbol=function(e,t){Zv["symbol".concat(mv()(e))]=t};var sb=32,lb=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=rb(t),function(e,t){if(t&&("object"===Xv(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,nb()?Reflect.construct(t,n||[],rb(e).constructor):t.apply(e,n))}(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ob(e,t)}(t,e),n=t,r=[{key:"renderIcon",value:function(e){var t=this.props.inactiveColor,n=16,r=sb/6,o=sb/3,a=e.inactive?t:e.color;if("plainline"===e.type)return s().createElement("line",{strokeWidth:4,fill:"none",stroke:a,strokeDasharray:e.payload.strokeDasharray,x1:0,y1:n,x2:sb,y2:n,className:"recharts-legend-icon"});if("line"===e.type)return s().createElement("path",{strokeWidth:4,fill:"none",stroke:a,d:"M0,".concat(n,"h").concat(o,"\n            A").concat(r,",").concat(r,",0,1,1,").concat(2*o,",").concat(n,"\n            H").concat(sb,"M").concat(2*o,",").concat(n,"\n            A").concat(r,",").concat(r,",0,1,1,").concat(o,",").concat(n),className:"recharts-legend-icon"});if("rect"===e.type)return s().createElement("path",{stroke:"none",fill:a,d:"M0,".concat(4,"h").concat(sb,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(s().isValidElement(e.legendIcon)){var i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eb(Object(n),!0).forEach(function(t){ab(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eb(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e);return delete i.legendIcon,s().cloneElement(e.legendIcon,i)}return s().createElement(Kv,{fill:a,cx:n,cy:n,size:sb,sizeType:"diameter",type:e.type})}},{key:"renderItems",value:function(){var e=this,t=this.props,n=t.payload,r=t.iconSize,o=t.layout,a=t.formatter,i=t.inactiveColor,l={x:0,y:0,width:sb,height:sb},c={display:"horizontal"===o?"inline-block":"block",marginRight:10},u={display:"inline-block",verticalAlign:"middle",marginRight:4};return n.map(function(t,n){var o=t.formatter||a,d=Jt(ab(ab({"recharts-legend-item":!0},"legend-item-".concat(n),!0),"inactive",t.inactive));if("none"===t.type)return null;var m=Cg()(t.value)?null:t.value;Sg(!Cg()(t.value),'The name property is also required when using a function for the dataKey of a chart\'s cartesian components. Ex: <Bar name="Name of my Data"/>');var p=t.inactive?i:t.color;return s().createElement("li",Jv({className:d,style:c,key:"legend-item-".concat(n)},Vg(e.props,t,n)),s().createElement(wy,{width:r,height:r,viewBox:l,style:u},e.renderIcon(t)),s().createElement("span",{className:"recharts-legend-item-text",style:{color:p}},o?o(m,t,n):m))})}},{key:"render",value:function(){var e=this.props,t=e.payload,n=e.layout,r=e.align;if(!t||!t.length)return null;var o={padding:0,margin:0,textAlign:"horizontal"===n?r:"left"};return s().createElement("ul",{className:"recharts-default-legend",style:o},this.renderItems())}}],r&&tb(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(a.PureComponent);function cb(e){return cb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cb(e)}ab(lb,"displayName","Legend"),ab(lb,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var ub=["ref"];function db(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function mb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?db(Object(n),!0).forEach(function(t){yb(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):db(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function pb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,vb(r.key),r)}}function fb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(fb=function(){return!!e})()}function hb(e){return hb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},hb(e)}function gb(e,t){return gb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},gb(e,t)}function yb(e,t,n){return(t=vb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vb(e){var t=function(e){if("object"!=cb(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=cb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==cb(t)?t:t+""}function bb(e){return e.value}var Mb=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return yb(e=function(e,t,n){return t=hb(t),function(e,t){if(t&&("object"===cb(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,fb()?Reflect.construct(t,n||[],hb(e).constructor):t.apply(e,n))}(this,t,[].concat(r)),"lastBoundingBox",{width:-1,height:-1}),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gb(e,t)}(t,e),n=t,r=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var e=this.wrapperNode.getBoundingClientRect();return e.height=this.wrapperNode.offsetHeight,e.width=this.wrapperNode.offsetWidth,e}return null}},{key:"updateBBox",value:function(){var e=this.props.onBBoxUpdate,t=this.getBBox();t?(Math.abs(t.width-this.lastBoundingBox.width)>1||Math.abs(t.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=t.width,this.lastBoundingBox.height=t.height,e&&e(t)):-1===this.lastBoundingBox.width&&-1===this.lastBoundingBox.height||(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,e&&e(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?mb({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(e){var t,n,r=this.props,o=r.layout,a=r.align,i=r.verticalAlign,s=r.margin,l=r.chartWidth,c=r.chartHeight;return e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(t="center"===a&&"vertical"===o?{left:((l||0)-this.getBBoxSnapshot().width)/2}:"right"===a?{right:s&&s.right||0}:{left:s&&s.left||0}),e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(n="middle"===i?{top:((c||0)-this.getBBoxSnapshot().height)/2}:"bottom"===i?{bottom:s&&s.bottom||0}:{top:s&&s.top||0}),mb(mb({},t),n)}},{key:"render",value:function(){var e=this,t=this.props,n=t.content,r=t.width,o=t.height,a=t.wrapperStyle,i=t.payloadUniqBy,l=t.payload,c=mb(mb({position:"absolute",width:r||"auto",height:o||"auto"},this.getDefaultPosition(a)),a);return s().createElement("div",{className:"recharts-legend-wrapper",style:c,ref:function(t){e.wrapperNode=t}},function(e,t){if(s().isValidElement(e))return s().cloneElement(e,t);if("function"==typeof e)return s().createElement(e,t);t.ref;var n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,ub);return s().createElement(lb,n)}(n,mb(mb({},this.props),{},{payload:Jy(l,i,bb)})))}}],o=[{key:"getWithHeight",value:function(e,t){var n=mb(mb({},this.defaultProps),e.props).layout;return"vertical"===n&&Ng(e.props.height)?{height:e.props.height}:"horizontal"===n?{width:e.props.width||t}:null}}],r&&pb(n.prototype,r),o&&pb(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(a.PureComponent);function xb(){return xb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xb.apply(this,arguments)}yb(Mb,"displayName","Legend"),yb(Mb,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var wb=function(e){var t=e.cx,n=e.cy,r=e.r,o=e.className,i=Jt("recharts-dot",o);return t===+t&&n===+n&&r===+r?a.createElement("circle",xb({},ay(e,!1),Wg(e),{className:i,cx:t,cy:n,r})):null};const{getOwnPropertyNames:Nb,getOwnPropertySymbols:jb}=Object,{hasOwnProperty:Db}=Object.prototype;function Eb(e,t){return function(n,r,o){return e(n,r,o)&&t(n,r,o)}}function Tb(e){return function(t,n,r){if(!t||!n||"object"!=typeof t||"object"!=typeof n)return e(t,n,r);const{cache:o}=r,a=o.get(t),i=o.get(n);if(a&&i)return a===n&&i===t;o.set(t,n),o.set(n,t);const s=e(t,n,r);return o.delete(t),o.delete(n),s}}function Ob(e){return Nb(e).concat(jb(e))}const Ib=Object.hasOwn||((e,t)=>Db.call(e,t));function Ab(e,t){return e===t||!e&&!t&&e!=e&&t!=t}const{getOwnPropertyDescriptor:kb,keys:Sb}=Object;function _b(e,t){return e.byteLength===t.byteLength&&$b(new Uint8Array(e),new Uint8Array(t))}function Cb(e,t,n){let r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function zb(e,t){return e.byteLength===t.byteLength&&$b(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function Lb(e,t){return Ab(e.getTime(),t.getTime())}function Pb(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function Ub(e,t){return e===t}function Rb(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const o=new Array(r),a=e.entries();let i,s,l=0;for(;(i=a.next())&&!i.done;){const r=t.entries();let a=!1,c=0;for(;(s=r.next())&&!s.done;){if(o[c]){c++;continue}const r=i.value,u=s.value;if(n.equals(r[0],u[0],l,c,e,t,n)&&n.equals(r[1],u[1],r[0],u[0],e,t,n)){a=o[c]=!0;break}c++}if(!a)return!1;l++}return!0}const Qb=Ab;function Yb(e,t,n){const r=Sb(e);let o=r.length;if(Sb(t).length!==o)return!1;for(;o-- >0;)if(!Gb(e,t,n,r[o]))return!1;return!0}function Bb(e,t,n){const r=Ob(e);let o,a,i,s=r.length;if(Ob(t).length!==s)return!1;for(;s-- >0;){if(o=r[s],!Gb(e,t,n,o))return!1;if(a=kb(e,o),i=kb(t,o),(a||i)&&(!a||!i||a.configurable!==i.configurable||a.enumerable!==i.enumerable||a.writable!==i.writable))return!1}return!0}function Fb(e,t){return Ab(e.valueOf(),t.valueOf())}function Wb(e,t){return e.source===t.source&&e.flags===t.flags}function Vb(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const o=new Array(r),a=e.values();let i,s;for(;(i=a.next())&&!i.done;){const r=t.values();let a=!1,l=0;for(;(s=r.next())&&!s.done;){if(!o[l]&&n.equals(i.value,s.value,i.value,s.value,e,t,n)){a=o[l]=!0;break}l++}if(!a)return!1}return!0}function $b(e,t){let n=e.byteLength;if(t.byteLength!==n||e.byteOffset!==t.byteOffset)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function Hb(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function Gb(e,t,n,r){return!("_owner"!==r&&"__o"!==r&&"__v"!==r||!e.$$typeof&&!t.$$typeof)||Ib(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}const Zb={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},qb=Object.prototype.toString;const Kb=Xb();function Xb(e={}){const{circular:t=!1,createInternalComparator:n,createState:r,strict:o=!1}=e,a=function({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:_b,areArraysEqual:n?Bb:Cb,areDataViewsEqual:zb,areDatesEqual:Lb,areErrorsEqual:Pb,areFunctionsEqual:Ub,areMapsEqual:n?Eb(Rb,Bb):Rb,areNumbersEqual:Qb,areObjectsEqual:n?Bb:Yb,arePrimitiveWrappersEqual:Fb,areRegExpsEqual:Wb,areSetsEqual:n?Eb(Vb,Bb):Vb,areTypedArraysEqual:n?Eb($b,Bb):$b,areUrlsEqual:Hb,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){const e=Tb(r.areArraysEqual),t=Tb(r.areMapsEqual),n=Tb(r.areObjectsEqual),o=Tb(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:e,areMapsEqual:t,areObjectsEqual:n,areSetsEqual:o})}return r}(e),i=function({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:o,areFunctionsEqual:a,areMapsEqual:i,areNumbersEqual:s,areObjectsEqual:l,arePrimitiveWrappersEqual:c,areRegExpsEqual:u,areSetsEqual:d,areTypedArraysEqual:m,areUrlsEqual:p,unknownTagComparators:f}){return function(h,g,y){if(h===g)return!0;if(null==h||null==g)return!1;const v=typeof h;if(v!==typeof g)return!1;if("object"!==v)return"number"===v?s(h,g,y):"function"===v&&a(h,g,y);const b=h.constructor;if(b!==g.constructor)return!1;if(b===Object)return l(h,g,y);if(Array.isArray(h))return t(h,g,y);if(b===Date)return r(h,g,y);if(b===RegExp)return u(h,g,y);if(b===Map)return i(h,g,y);if(b===Set)return d(h,g,y);const M=qb.call(h);if("[object Date]"===M)return r(h,g,y);if("[object RegExp]"===M)return u(h,g,y);if("[object Map]"===M)return i(h,g,y);if("[object Set]"===M)return d(h,g,y);if("[object Object]"===M)return"function"!=typeof h.then&&"function"!=typeof g.then&&l(h,g,y);if("[object URL]"===M)return p(h,g,y);if("[object Error]"===M)return o(h,g,y);if("[object Arguments]"===M)return l(h,g,y);if(Zb[M])return m(h,g,y);if("[object ArrayBuffer]"===M)return e(h,g,y);if("[object DataView]"===M)return n(h,g,y);if("[object Boolean]"===M||"[object Number]"===M||"[object String]"===M)return c(h,g,y);if(f){let e=f[M];if(!e){const t=function(e){return null!=e?e[Symbol.toStringTag]:void 0}(h);t&&(e=f[t])}if(e)return e(h,g,y)}return!1}}(a),s=n?n(i):(l=i,function(e,t,n,r,o,a,i){return l(e,t,i)});var l;return function({circular:e,comparator:t,createState:n,equals:r,strict:o}){if(n)return function(a,i){const{cache:s=(e?new WeakMap:void 0),meta:l}=n();return t(a,i,{cache:s,equals:r,meta:l,strict:o})};if(e)return function(e,n){return t(e,n,{cache:new WeakMap,equals:r,meta:void 0,strict:o})};const a={cache:void 0,equals:r,meta:void 0,strict:o};return function(e,n){return t(e,n,a)}}({circular:t,comparator:i,createState:r,equals:s,strict:o})}function Jb(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1;requestAnimationFrame(function r(o){n<0&&(n=o),o-n>t?(e(o),n=-1):function(e){"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(e)}(r)})}function eM(e){return eM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},eM(e)}function tM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function nM(){var e=function(){return null},t=!1,n=function n(r){if(!t){if(Array.isArray(r)){if(!r.length)return;var o=function(e){if(Array.isArray(e))return e}(s=r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(s)||function(e,t){if(e){if("string"==typeof e)return tM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?tM(e,t):void 0}}(s)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=o[0],i=o.slice(1);return"number"==typeof a?void Jb(n.bind(null,i),a):(n(a),void Jb(n.bind(null,i)))}"object"===eM(r)&&e(r),"function"==typeof r&&r()}var s};return{stop:function(){t=!0},start:function(e){t=!1,n(e)},subscribe:function(t){return e=t,function(){e=function(){return null}}}}}function rM(e){return rM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rM(e)}function oM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function aM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oM(Object(n),!0).forEach(function(t){iM(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oM(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function iM(e,t,n){return(t=function(e){var t=function(e){if("object"!==rM(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==rM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===rM(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Xb({strict:!0}),Xb({circular:!0}),Xb({circular:!0,strict:!0}),Xb({createInternalComparator:()=>Ab}),Xb({strict:!0,createInternalComparator:()=>Ab}),Xb({circular:!0,createInternalComparator:()=>Ab}),Xb({circular:!0,createInternalComparator:()=>Ab,strict:!0});var sM=function(e){return e},lM=function(e,t){return Object.keys(t).reduce(function(n,r){return aM(aM({},n),{},iM({},r,e(r,t[r])))},{})},cM=function(e,t,n){return e.map(function(e){return"".concat((r=e,r.replace(/([A-Z])/g,function(e){return"-".concat(e.toLowerCase())}))," ").concat(t,"ms ").concat(n);var r}).join(",")};function uM(e,t){if(e){if("string"==typeof e)return dM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dM(e,t):void 0}}function dM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var mM=1e-4,pM=function(e,t){return[0,3*e,3*t-6*e,3*e-3*t+1]},fM=function(e,t){return e.map(function(e,n){return e*Math.pow(t,n)}).reduce(function(e,t){return e+t})},hM=function(e,t){return function(n){var r=pM(e,t);return fM(r,n)}},gM=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],a=t[2],i=t[3];if(1===t.length)switch(t[0]){case"linear":r=0,o=0,a=1,i=1;break;case"ease":r=.25,o=.1,a=.25,i=1;break;case"ease-in":r=.42,o=0,a=1,i=1;break;case"ease-out":r=.42,o=0,a=.58,i=1;break;case"ease-in-out":r=0,o=0,a=.58,i=1;break;default:var s=t[0].split("(");if("cubic-bezier"===s[0]&&4===s[1].split(")")[0].split(",").length){var l=s[1].split(")")[0].split(",").map(function(e){return parseFloat(e)}),c=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||uM(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(l,4);r=c[0],o=c[1],a=c[2],i=c[3]}}[r,a,o,i].every(function(e){return"number"==typeof e&&e>=0&&e<=1});var u,d,m=hM(r,a),p=hM(o,i),f=(u=r,d=a,function(e){var t,n=pM(u,d),r=[].concat((t=n.map(function(e,t){return e*t}).slice(1),function(e){if(Array.isArray(e))return dM(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||uM(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),[0]);return fM(r,e)}),h=function(e){return e>1?1:e<0?0:e},g=function(e){for(var t=e>1?1:e,n=t,r=0;r<8;++r){var o=m(n)-t,a=f(n);if(Math.abs(o-t)<mM||a<mM)return p(n);n=h(n-o/a)}return p(n)};return g.isStepper=!1,g};function yM(e){return yM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yM(e)}function vM(e){return function(e){if(Array.isArray(e))return NM(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||wM(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function MM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bM(Object(n),!0).forEach(function(t){xM(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bM(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xM(e,t,n){return(t=function(e){var t=function(e){if("object"!==yM(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==yM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===yM(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wM(e,t){if(e){if("string"==typeof e)return NM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?NM(e,t):void 0}}function NM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var jM=function(e,t,n){return e+(t-e)*n},DM=function(e){return e.from!==e.to},EM=function e(t,n,r){var o=lM(function(e,n){if(DM(n)){var r=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||wM(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t(n.from,n.to,n.velocity),2),o=r[0],a=r[1];return MM(MM({},n),{},{from:o,velocity:a})}return n},n);return r<1?lM(function(e,t){return DM(t)?MM(MM({},t),{},{velocity:jM(t.velocity,o[e].velocity,r),from:jM(t.from,o[e].from,r)}):t},n):e(t,o,r-1)};function TM(e){return TM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},TM(e)}var OM=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function IM(e){return function(e){if(Array.isArray(e))return AM(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return AM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?AM(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function AM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function kM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function SM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kM(Object(n),!0).forEach(function(t){_M(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kM(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _M(e,t,n){return(t=zM(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,zM(r.key),r)}}function zM(e){var t=function(e){if("object"!==TM(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==TM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===TM(t)?t:String(t)}function LM(e,t){return LM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},LM(e,t)}function PM(e,t){if(t&&("object"===TM(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return UM(e)}function UM(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function RM(e){return RM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},RM(e)}var QM=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&LM(e,t)}(l,e);var t,n,r,o,i=(r=l,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=RM(r);if(o){var n=RM(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return PM(this,e)});function l(e,t){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);var r=(n=i.call(this,e,t)).props,o=r.isActive,a=r.attributeName,s=r.from,c=r.to,u=r.steps,d=r.children,m=r.duration;if(n.handleStyleChange=n.handleStyleChange.bind(UM(n)),n.changeStyle=n.changeStyle.bind(UM(n)),!o||m<=0)return n.state={style:{}},"function"==typeof d&&(n.state={style:c}),PM(n);if(u&&u.length)n.state={style:u[0].style};else if(s){if("function"==typeof d)return n.state={style:s},PM(n);n.state={style:a?_M({},a,s):s}}else n.state={style:{}};return n}return t=l,n=[{key:"componentDidMount",value:function(){var e=this.props,t=e.isActive,n=e.canBegin;this.mounted=!0,t&&n&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isActive,r=t.canBegin,o=t.attributeName,a=t.shouldReAnimate,i=t.to,s=t.from,l=this.state.style;if(r)if(n){if(!(Kb(e.to,i)&&e.canBegin&&e.isActive)){var c=!e.canBegin||!e.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var u=c||a?s:e.to;if(this.state&&l){var d={style:o?_M({},o,u):u};(o&&l[o]!==u||!o&&l!==u)&&this.setState(d)}this.runAnimation(SM(SM({},this.props),{},{from:u,begin:0}))}}else{var m={style:o?_M({},o,i):i};this.state&&l&&(o&&l[o]!==i||!o&&l!==i)&&this.setState(m)}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var e=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),e&&e()}},{key:"handleStyleChange",value:function(e){this.changeStyle(e)}},{key:"changeStyle",value:function(e){this.mounted&&this.setState({style:e})}},{key:"runJSAnimation",value:function(e){var t=this,n=e.from,r=e.to,o=e.duration,a=e.easing,i=e.begin,s=e.onAnimationEnd,l=e.onAnimationStart,c=function(e,t,n,r,o){var a,i,s,l,c=(a=e,i=t,[Object.keys(a),Object.keys(i)].reduce(function(e,t){return e.filter(function(e){return t.includes(e)})})),u=c.reduce(function(n,r){return MM(MM({},n),{},xM({},r,[e[r],t[r]]))},{}),d=c.reduce(function(n,r){return MM(MM({},n),{},xM({},r,{from:e[r],velocity:0,to:t[r]}))},{}),m=-1,p=function(){return null};return p=n.isStepper?function(r){s||(s=r);var a=(r-s)/n.dt;d=EM(n,d,a),o(MM(MM(MM({},e),t),lM(function(e,t){return t.from},d))),s=r,Object.values(d).filter(DM).length&&(m=requestAnimationFrame(p))}:function(a){l||(l=a);var i=(a-l)/r,s=lM(function(e,t){return jM.apply(void 0,vM(t).concat([n(i)]))},u);if(o(MM(MM(MM({},e),t),s)),i<1)m=requestAnimationFrame(p);else{var c=lM(function(e,t){return jM.apply(void 0,vM(t).concat([n(1)]))},u);o(MM(MM(MM({},e),t),c))}},function(){return requestAnimationFrame(p),function(){cancelAnimationFrame(m)}}}(n,r,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0];if("string"==typeof r)switch(r){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return gM(r);case"spring":return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiff,n=void 0===t?100:t,r=e.damping,o=void 0===r?8:r,a=e.dt,i=void 0===a?17:a,s=function(e,t,r){var a=r+(-(e-t)*n-r*o)*i/1e3,s=r*i/1e3+e;return Math.abs(s-t)<mM&&Math.abs(a)<mM?[t,0]:[s,a]};return s.isStepper=!0,s.dt=i,s}();default:if("cubic-bezier"===r.split("(")[0])return gM(r)}return"function"==typeof r?r:null}(a),o,this.changeStyle);this.manager.start([l,i,function(){t.stopJSAnimation=c()},o,s])}},{key:"runStepAnimation",value:function(e){var t=this,n=e.steps,r=e.begin,o=e.onAnimationStart,a=n[0],i=a.style,s=a.duration,l=void 0===s?0:s;return this.manager.start([o].concat(IM(n.reduce(function(e,r,o){if(0===o)return e;var a=r.duration,i=r.easing,s=void 0===i?"ease":i,l=r.style,c=r.properties,u=r.onAnimationEnd,d=o>0?n[o-1]:r,m=c||Object.keys(l);if("function"==typeof s||"spring"===s)return[].concat(IM(e),[t.runJSAnimation.bind(t,{from:d.style,to:l,duration:a,easing:s}),a]);var p=cM(m,a,s),f=SM(SM(SM({},d.style),l),{},{transition:p});return[].concat(IM(e),[f,a,u]).filter(sM)},[i,Math.max(l,r)])),[e.onAnimationEnd]))}},{key:"runAnimation",value:function(e){this.manager||(this.manager=nM());var t=e.begin,n=e.duration,r=e.attributeName,o=e.to,a=e.easing,i=e.onAnimationStart,s=e.onAnimationEnd,l=e.steps,c=e.children,u=this.manager;if(this.unSubscribe=u.subscribe(this.handleStyleChange),"function"!=typeof a&&"function"!=typeof c&&"spring"!==a)if(l.length>1)this.runStepAnimation(e);else{var d=r?_M({},r,o):o,m=cM(Object.keys(d),n,a);u.start([i,t,SM(SM({},d),{},{transition:m}),n,s])}else this.runJSAnimation(e)}},{key:"render",value:function(){var e=this.props,t=e.children,n=(e.begin,e.duration),r=(e.attributeName,e.easing,e.isActive),o=(e.steps,e.from,e.to,e.canBegin,e.onAnimationEnd,e.shouldReAnimate,e.onAnimationReStart,function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,OM)),i=a.Children.count(t),l=this.state.style;if("function"==typeof t)return t(l);if(!r||0===i||n<=0)return t;var c=function(e){var t=e.props,n=t.style,r=void 0===n?{}:n,i=t.className;return(0,a.cloneElement)(e,SM(SM({},o),{},{style:SM(SM({},r),l),className:i}))};return 1===i?c(a.Children.only(t)):s().createElement("div",null,a.Children.map(t,function(e){return c(e)}))}}],n&&CM(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(a.PureComponent);QM.displayName="Animate",QM.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},QM.propTypes={from:Jf().oneOfType([Jf().object,Jf().string]),to:Jf().oneOfType([Jf().object,Jf().string]),attributeName:Jf().string,duration:Jf().number,begin:Jf().number,easing:Jf().oneOfType([Jf().string,Jf().func]),steps:Jf().arrayOf(Jf().shape({duration:Jf().number.isRequired,style:Jf().object.isRequired,easing:Jf().oneOfType([Jf().oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Jf().func]),properties:Jf().arrayOf("string"),onAnimationEnd:Jf().func})),children:Jf().oneOfType([Jf().node,Jf().func]),isActive:Jf().bool,canBegin:Jf().bool,onAnimationEnd:Jf().func,shouldReAnimate:Jf().bool,onAnimationStart:Jf().func,onAnimationReStart:Jf().func};const YM=QM;function BM(e){return BM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},BM(e)}function FM(){return FM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},FM.apply(this,arguments)}function WM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function VM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?VM(Object(n),!0).forEach(function(t){HM(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VM(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function HM(e,t,n){return t=function(e){var t=function(e){if("object"!=BM(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=BM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==BM(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var GM=function(e,t,n,r,o){var a,i=Math.min(Math.abs(n)/2,Math.abs(r)/2),s=r>=0?1:-1,l=n>=0?1:-1,c=r>=0&&n>=0||r<0&&n<0?1:0;if(i>0&&o instanceof Array){for(var u=[0,0,0,0],d=0;d<4;d++)u[d]=o[d]>i?i:o[d];a="M".concat(e,",").concat(t+s*u[0]),u[0]>0&&(a+="A ".concat(u[0],",").concat(u[0],",0,0,").concat(c,",").concat(e+l*u[0],",").concat(t)),a+="L ".concat(e+n-l*u[1],",").concat(t),u[1]>0&&(a+="A ".concat(u[1],",").concat(u[1],",0,0,").concat(c,",\n        ").concat(e+n,",").concat(t+s*u[1])),a+="L ".concat(e+n,",").concat(t+r-s*u[2]),u[2]>0&&(a+="A ".concat(u[2],",").concat(u[2],",0,0,").concat(c,",\n        ").concat(e+n-l*u[2],",").concat(t+r)),a+="L ".concat(e+l*u[3],",").concat(t+r),u[3]>0&&(a+="A ".concat(u[3],",").concat(u[3],",0,0,").concat(c,",\n        ").concat(e,",").concat(t+r-s*u[3])),a+="Z"}else if(i>0&&o===+o&&o>0){var m=Math.min(i,o);a="M ".concat(e,",").concat(t+s*m,"\n            A ").concat(m,",").concat(m,",0,0,").concat(c,",").concat(e+l*m,",").concat(t,"\n            L ").concat(e+n-l*m,",").concat(t,"\n            A ").concat(m,",").concat(m,",0,0,").concat(c,",").concat(e+n,",").concat(t+s*m,"\n            L ").concat(e+n,",").concat(t+r-s*m,"\n            A ").concat(m,",").concat(m,",0,0,").concat(c,",").concat(e+n-l*m,",").concat(t+r,"\n            L ").concat(e+l*m,",").concat(t+r,"\n            A ").concat(m,",").concat(m,",0,0,").concat(c,",").concat(e,",").concat(t+r-s*m," Z")}else a="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return a},ZM=function(e,t){if(!e||!t)return!1;var n=e.x,r=e.y,o=t.x,a=t.y,i=t.width,s=t.height;if(Math.abs(i)>0&&Math.abs(s)>0){var l=Math.min(o,o+i),c=Math.max(o,o+i),u=Math.min(a,a+s),d=Math.max(a,a+s);return n>=l&&n<=c&&r>=u&&r<=d}return!1},qM={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},KM=function(e){var t=$M($M({},qM),e),n=(0,a.useRef)(),r=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return WM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?WM(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,a.useState)(-1),2),o=r[0],i=r[1];(0,a.useEffect)(function(){if(n.current&&n.current.getTotalLength)try{var e=n.current.getTotalLength();e&&i(e)}catch(e){}},[]);var l=t.x,c=t.y,u=t.width,d=t.height,m=t.radius,p=t.className,f=t.animationEasing,h=t.animationDuration,g=t.animationBegin,y=t.isAnimationActive,v=t.isUpdateAnimationActive;if(l!==+l||c!==+c||u!==+u||d!==+d||0===u||0===d)return null;var b=Jt("recharts-rectangle",p);return v?s().createElement(YM,{canBegin:o>0,from:{width:u,height:d,x:l,y:c},to:{width:u,height:d,x:l,y:c},duration:h,animationEasing:f,isActive:v},function(e){var r=e.width,a=e.height,i=e.x,l=e.y;return s().createElement(YM,{canBegin:o>0,from:"0px ".concat(-1===o?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:h,isActive:y,easing:f},s().createElement("path",FM({},ay(t,!0),{className:b,d:GM(i,l,r,a,m),ref:n})))}):s().createElement("path",FM({},ay(t,!0),{className:b,d:GM(l,c,u,d,m)}))};function XM(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function JM(e,t){switch(arguments.length){case 0:break;case 1:"function"==typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"==typeof t?this.interpolator(t):this.range(t)}return this}class ex extends Map{constructor(e,t=nx){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(tx(this,e))}has(e){return super.has(tx(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}(this,e))}}function tx({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function nx(e){return null!==e&&"object"==typeof e?e.valueOf():e}Set;const rx=Symbol("implicit");function ox(){var e=new ex,t=[],n=[],r=rx;function o(o){let a=e.get(o);if(void 0===a){if(r!==rx)return r;e.set(o,a=t.push(o)-1)}return n[a%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new ex;for(const r of n)e.has(r)||e.set(r,t.push(r)-1);return o},o.range=function(e){return arguments.length?(n=Array.from(e),o):n.slice()},o.unknown=function(e){return arguments.length?(r=e,o):r},o.copy=function(){return ox(t,n).unknown(r)},XM.apply(o,arguments),o}function ax(){var e,t,n=ox().unknown(void 0),r=n.domain,o=n.range,a=0,i=1,s=!1,l=0,c=0,u=.5;function d(){var n=r().length,d=i<a,m=d?i:a,p=d?a:i;e=(p-m)/Math.max(1,n-l+2*c),s&&(e=Math.floor(e)),m+=(p-m-e*(n-l))*u,t=e*(1-l),s&&(m=Math.round(m),t=Math.round(t));var f=function(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),a=new Array(o);++r<o;)a[r]=e+r*n;return a}(n).map(function(t){return m+e*t});return o(d?f.reverse():f)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),d()):r()},n.range=function(e){return arguments.length?([a,i]=e,a=+a,i=+i,d()):[a,i]},n.rangeRound=function(e){return[a,i]=e,a=+a,i=+i,s=!0,d()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(s=!!e,d()):s},n.padding=function(e){return arguments.length?(l=Math.min(1,c=+e),d()):l},n.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),d()):l},n.paddingOuter=function(e){return arguments.length?(c=+e,d()):c},n.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),d()):u},n.copy=function(){return ax(r(),[a,i]).round(s).paddingInner(l).paddingOuter(c).align(u)},XM.apply(d(),arguments)}function ix(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return ix(t())},e}function sx(){return ix(ax.apply(null,arguments).paddingInner(1))}function lx(e){return lx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lx(e)}function cx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ux(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cx(Object(n),!0).forEach(function(t){dx(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cx(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function dx(e,t,n){return t=function(e){var t=function(e){if("object"!=lx(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=lx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==lx(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var mx={widthCache:{},cacheCount:0},px={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},fx="recharts_measurement_span",hx=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||qy.isSsr)return{width:0,height:0};var n,r=(n=ux({},t),Object.keys(n).forEach(function(e){n[e]||delete n[e]}),n),o=JSON.stringify({text:e,copyStyle:r});if(mx.widthCache[o])return mx.widthCache[o];try{var a=document.getElementById(fx);a||((a=document.createElement("span")).setAttribute("id",fx),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var i=ux(ux({},px),r);Object.assign(a.style,i),a.textContent="".concat(e);var s=a.getBoundingClientRect(),l={width:s.width,height:s.height};return mx.widthCache[o]=l,++mx.cacheCount>2e3&&(mx.cacheCount=0,mx.widthCache={}),l}catch(e){return{width:0,height:0}}};function gx(e){return gx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gx(e)}function yx(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return vx(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vx(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vx(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function bx(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Mx(r.key),r)}}function Mx(e){var t=function(e){if("object"!=gx(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=gx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==gx(t)?t:t+""}var xx=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,wx=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Nx=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,jx=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Dx={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},Ex=Object.keys(Dx),Tx="NaN",Ox=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),""===n||Nx.test(n)||(this.num=NaN,this.unit=""),Ex.includes(n)&&(this.num=function(e,t){return e*Dx[t]}(t,n),this.unit="px")}return t=e,r=[{key:"parse",value:function(t){var n,r=yx(null!==(n=jx.exec(t))&&void 0!==n?n:[],3),o=r[1],a=r[2];return new e(parseFloat(o),null!=a?a:"")}}],(n=[{key:"add",value:function(t){return this.unit!==t.unit?new e(NaN,""):new e(this.num+t.num,this.unit)}},{key:"subtract",value:function(t){return this.unit!==t.unit?new e(NaN,""):new e(this.num-t.num,this.unit)}},{key:"multiply",value:function(t){return""!==this.unit&&""!==t.unit&&this.unit!==t.unit?new e(NaN,""):new e(this.num*t.num,this.unit||t.unit)}},{key:"divide",value:function(t){return""!==this.unit&&""!==t.unit&&this.unit!==t.unit?new e(NaN,""):new e(this.num/t.num,this.unit||t.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}])&&bx(t.prototype,n),r&&bx(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Ix(e){if(e.includes(Tx))return Tx;for(var t=e;t.includes("*")||t.includes("/");){var n,r=yx(null!==(n=xx.exec(t))&&void 0!==n?n:[],4),o=r[1],a=r[2],i=r[3],s=Ox.parse(null!=o?o:""),l=Ox.parse(null!=i?i:""),c="*"===a?s.multiply(l):s.divide(l);if(c.isNaN())return Tx;t=t.replace(xx,c.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var u,d=yx(null!==(u=wx.exec(t))&&void 0!==u?u:[],4),m=d[1],p=d[2],f=d[3],h=Ox.parse(null!=m?m:""),g=Ox.parse(null!=f?f:""),y="+"===p?h.add(g):h.subtract(g);if(y.isNaN())return Tx;t=t.replace(wx,y.toString())}return t}var Ax=/\(([^()]*)\)/;function kx(e){var t=function(e){try{return function(e){var t=e.replace(/\s+/g,"");return t=function(e){for(var t=e;t.includes("(");){var n=yx(Ax.exec(t),2)[1];t=t.replace(Ax,Ix(n))}return t}(t),Ix(t)}(e)}catch(e){return Tx}}(e.slice(5,-1));return t===Tx?"":t}var Sx=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],Cx=["dx","dy","angle","className","breakAll"];function zx(){return zx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zx.apply(this,arguments)}function Lx(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Px(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ux(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ux(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ux(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Rx=/[ \f\n\r\t\v\u2028\u2029]+/,Qx=function(e){var t=e.children,n=e.breakAll,r=e.style;try{var o=[];return Mg()(t)||(o=n?t.toString().split(""):t.toString().split(Rx)),{wordsWithComputedWidth:o.map(function(e){return{word:e,width:hx(e,r).width}}),spaceWidth:n?0:hx(" ",r).width}}catch(e){return null}},Yx=function(e){return[{words:Mg()(e)?[]:e.toString().split(Rx)}]},Bx="#808080",Fx=function(e){var t=e.x,n=void 0===t?0:t,r=e.y,o=void 0===r?0:r,i=e.lineHeight,l=void 0===i?"1em":i,c=e.capHeight,u=void 0===c?"0.71em":c,d=e.scaleToFit,m=void 0!==d&&d,p=e.textAnchor,f=void 0===p?"start":p,h=e.verticalAnchor,g=void 0===h?"end":h,y=e.fill,v=void 0===y?Bx:y,b=Lx(e,Sx),M=(0,a.useMemo)(function(){return function(e){var t=e.width,n=e.scaleToFit,r=e.children,o=e.style,a=e.breakAll,i=e.maxLines;if((t||n)&&!qy.isSsr){var s=Qx({breakAll:a,children:r,style:o});return s?function(e,t,n,r,o){var a=e.maxLines,i=e.children,s=e.style,l=e.breakAll,c=Ng(a),u=i,d=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce(function(e,t){var a=t.word,i=t.width,s=e[e.length-1];if(s&&(null==r||o||s.width+i+n<Number(r)))s.words.push(a),s.width+=i+n;else{var l={words:[a],width:i};e.push(l)}return e},[])},m=d(t);if(!c)return m;for(var p,f=function(e){var t=u.slice(0,e),n=Qx({breakAll:l,style:s,children:t+"…"}).wordsWithComputedWidth,o=d(n),i=o.length>a||function(e){return e.reduce(function(e,t){return e.width>t.width?e:t})}(o).width>Number(r);return[i,o]},h=0,g=u.length-1,y=0;h<=g&&y<=u.length-1;){var v=Math.floor((h+g)/2),b=Px(f(v-1),2),M=b[0],x=b[1],w=Px(f(v),1)[0];if(M||w||(h=v+1),M&&w&&(g=v-1),!M&&w){p=x;break}y++}return p||m}({breakAll:a,children:r,maxLines:i,style:o},s.wordsWithComputedWidth,s.spaceWidth,t,n):Yx(r)}return Yx(r)}({breakAll:b.breakAll,children:b.children,maxLines:b.maxLines,scaleToFit:m,style:b.style,width:b.width})},[b.breakAll,b.children,b.maxLines,m,b.style,b.width]),x=b.dx,w=b.dy,N=b.angle,j=b.className,D=b.breakAll,E=Lx(b,Cx);if(!jg(n)||!jg(o))return null;var T,O=n+(Ng(x)?x:0),I=o+(Ng(w)?w:0);switch(g){case"start":T=kx("calc(".concat(u,")"));break;case"middle":T=kx("calc(".concat((M.length-1)/2," * -").concat(l," + (").concat(u," / 2))"));break;default:T=kx("calc(".concat(M.length-1," * -").concat(l,")"))}var A=[];if(m){var k=M[0].width,S=b.width;A.push("scale(".concat((Ng(S)?S/k:1)/k,")"))}return N&&A.push("rotate(".concat(N,", ").concat(O,", ").concat(I,")")),A.length&&(E.transform=A.join(" ")),s().createElement("text",zx({},ay(E,!0),{x:O,y:I,className:Jt("recharts-text",j),textAnchor:f,fill:v.includes("url")?Bx:v}),M.map(function(e,t){var n=e.words.join(D?"":" ");return s().createElement("tspan",{x:O,dy:0===t?T:l,key:"".concat(n,"-").concat(t)},n)}))};const Wx=Math.sqrt(50),Vx=Math.sqrt(10),$x=Math.sqrt(2);function Hx(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),a=r/Math.pow(10,o),i=a>=Wx?10:a>=Vx?5:a>=$x?2:1;let s,l,c;return o<0?(c=Math.pow(10,-o)/i,s=Math.round(e*c),l=Math.round(t*c),s/c<e&&++s,l/c>t&&--l,c=-c):(c=Math.pow(10,o)*i,s=Math.round(e/c),l=Math.round(t/c),s*c<e&&++s,l*c>t&&--l),l<s&&.5<=n&&n<2?Hx(e,t,2*n):[s,l,c]}function Gx(e,t,n){if(!((n=+n)>0))return[];if((e=+e)===(t=+t))return[e];const r=t<e,[o,a,i]=r?Hx(t,e,n):Hx(e,t,n);if(!(a>=o))return[];const s=a-o+1,l=new Array(s);if(r)if(i<0)for(let e=0;e<s;++e)l[e]=(a-e)/-i;else for(let e=0;e<s;++e)l[e]=(a-e)*i;else if(i<0)for(let e=0;e<s;++e)l[e]=(o+e)/-i;else for(let e=0;e<s;++e)l[e]=(o+e)*i;return l}function Zx(e,t,n){return Hx(e=+e,t=+t,n=+n)[2]}function qx(e,t,n){n=+n;const r=(t=+t)<(e=+e),o=r?Zx(t,e,n):Zx(e,t,n);return(r?-1:1)*(o<0?1/-o:o)}function Kx(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Xx(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Jx(e){let t,n,r;function o(e,r,o=0,a=e.length){if(o<a){if(0!==t(r,r))return a;do{const t=o+a>>>1;n(e[t],r)<0?o=t+1:a=t}while(o<a)}return o}return 2!==e.length?(t=Kx,n=(t,n)=>Kx(e(t),n),r=(t,n)=>e(t)-n):(t=e===Kx||e===Xx?e:ew,n=e,r=e),{left:o,center:function(e,t,n=0,a=e.length){const i=o(e,t,n,a-1);return i>n&&r(e[i-1],t)>-r(e[i],t)?i-1:i},right:function(e,r,o=0,a=e.length){if(o<a){if(0!==t(r,r))return a;do{const t=o+a>>>1;n(e[t],r)<=0?o=t+1:a=t}while(o<a)}return o}}}function ew(){return 0}function tw(e){return null===e?NaN:+e}const nw=Jx(Kx),rw=nw.right,ow=(nw.left,Jx(tw).center,rw);function aw(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function iw(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function sw(){}var lw=.7,cw=1/lw,uw="\\s*([+-]?\\d+)\\s*",dw="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",mw="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",pw=/^#([0-9a-f]{3,8})$/,fw=new RegExp(`^rgb\\(${uw},${uw},${uw}\\)$`),hw=new RegExp(`^rgb\\(${mw},${mw},${mw}\\)$`),gw=new RegExp(`^rgba\\(${uw},${uw},${uw},${dw}\\)$`),yw=new RegExp(`^rgba\\(${mw},${mw},${mw},${dw}\\)$`),vw=new RegExp(`^hsl\\(${dw},${mw},${mw}\\)$`),bw=new RegExp(`^hsla\\(${dw},${mw},${mw},${dw}\\)$`),Mw={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function xw(){return this.rgb().formatHex()}function ww(){return this.rgb().formatRgb()}function Nw(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=pw.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?jw(t):3===n?new Tw(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Dw(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Dw(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=fw.exec(e))?new Tw(t[1],t[2],t[3],1):(t=hw.exec(e))?new Tw(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=gw.exec(e))?Dw(t[1],t[2],t[3],t[4]):(t=yw.exec(e))?Dw(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=vw.exec(e))?_w(t[1],t[2]/100,t[3]/100,1):(t=bw.exec(e))?_w(t[1],t[2]/100,t[3]/100,t[4]):Mw.hasOwnProperty(e)?jw(Mw[e]):"transparent"===e?new Tw(NaN,NaN,NaN,0):null}function jw(e){return new Tw(e>>16&255,e>>8&255,255&e,1)}function Dw(e,t,n,r){return r<=0&&(e=t=n=NaN),new Tw(e,t,n,r)}function Ew(e,t,n,r){return 1===arguments.length?function(e){return e instanceof sw||(e=Nw(e)),e?new Tw((e=e.rgb()).r,e.g,e.b,e.opacity):new Tw}(e):new Tw(e,t,n,null==r?1:r)}function Tw(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Ow(){return`#${Sw(this.r)}${Sw(this.g)}${Sw(this.b)}`}function Iw(){const e=Aw(this.opacity);return`${1===e?"rgb(":"rgba("}${kw(this.r)}, ${kw(this.g)}, ${kw(this.b)}${1===e?")":`, ${e})`}`}function Aw(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function kw(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Sw(e){return((e=kw(e))<16?"0":"")+e.toString(16)}function _w(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new zw(e,t,n,r)}function Cw(e){if(e instanceof zw)return new zw(e.h,e.s,e.l,e.opacity);if(e instanceof sw||(e=Nw(e)),!e)return new zw;if(e instanceof zw)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),a=Math.max(t,n,r),i=NaN,s=a-o,l=(a+o)/2;return s?(i=t===a?(n-r)/s+6*(n<r):n===a?(r-t)/s+2:(t-n)/s+4,s/=l<.5?a+o:2-a-o,i*=60):s=l>0&&l<1?0:i,new zw(i,s,l,e.opacity)}function zw(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Lw(e){return(e=(e||0)%360)<0?e+360:e}function Pw(e){return Math.max(0,Math.min(1,e||0))}function Uw(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function Rw(e,t,n,r,o){var a=e*e,i=a*e;return((1-3*e+3*a-i)*t+(4-6*a+3*i)*n+(1+3*e+3*a-3*i)*r+i*o)/6}aw(sw,Nw,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:xw,formatHex:xw,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Cw(this).formatHsl()},formatRgb:ww,toString:ww}),aw(Tw,Ew,iw(sw,{brighter(e){return e=null==e?cw:Math.pow(cw,e),new Tw(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?lw:Math.pow(lw,e),new Tw(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Tw(kw(this.r),kw(this.g),kw(this.b),Aw(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Ow,formatHex:Ow,formatHex8:function(){return`#${Sw(this.r)}${Sw(this.g)}${Sw(this.b)}${Sw(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Iw,toString:Iw})),aw(zw,function(e,t,n,r){return 1===arguments.length?Cw(e):new zw(e,t,n,null==r?1:r)},iw(sw,{brighter(e){return e=null==e?cw:Math.pow(cw,e),new zw(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?lw:Math.pow(lw,e),new zw(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Tw(Uw(e>=240?e-240:e+120,o,r),Uw(e,o,r),Uw(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new zw(Lw(this.h),Pw(this.s),Pw(this.l),Aw(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Aw(this.opacity);return`${1===e?"hsl(":"hsla("}${Lw(this.h)}, ${100*Pw(this.s)}%, ${100*Pw(this.l)}%${1===e?")":`, ${e})`}`}}));const Qw=e=>()=>e;function Yw(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Qw(isNaN(e)?t:e)}const Bw=function e(t){var n=function(e){return 1===(e=+e)?Yw:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Qw(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=Ew(e)).r,(t=Ew(t)).r),o=n(e.g,t.g),a=n(e.b,t.b),i=Yw(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=a(t),e.opacity=i(t),e+""}}return r.gamma=e,r}(1);function Fw(e){return function(t){var n,r,o=t.length,a=new Array(o),i=new Array(o),s=new Array(o);for(n=0;n<o;++n)r=Ew(t[n]),a[n]=r.r||0,i[n]=r.g||0,s[n]=r.b||0;return a=e(a),i=e(i),s=e(s),r.opacity=1,function(e){return r.r=a(e),r.g=i(e),r.b=s(e),r+""}}}function Ww(e,t){var n,r=t?t.length:0,o=e?Math.min(r,e.length):0,a=new Array(o),i=new Array(r);for(n=0;n<o;++n)a[n]=Xw(e[n],t[n]);for(;n<r;++n)i[n]=t[n];return function(e){for(n=0;n<o;++n)i[n]=a[n](e);return i}}function Vw(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function $w(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Hw(e,t){var n,r={},o={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=Xw(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}}Fw(function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),o=e[r],a=e[r+1],i=r>0?e[r-1]:2*o-a,s=r<t-1?e[r+2]:2*a-o;return Rw((n-r/t)*t,i,o,a,s)}}),Fw(function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),o=e[(r+t-1)%t],a=e[r%t],i=e[(r+1)%t],s=e[(r+2)%t];return Rw((n-r/t)*t,o,a,i,s)}});var Gw=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Zw=new RegExp(Gw.source,"g");function qw(e,t){var n,r,o,a=Gw.lastIndex=Zw.lastIndex=0,i=-1,s=[],l=[];for(e+="",t+="";(n=Gw.exec(e))&&(r=Zw.exec(t));)(o=r.index)>a&&(o=t.slice(a,o),s[i]?s[i]+=o:s[++i]=o),(n=n[0])===(r=r[0])?s[i]?s[i]+=r:s[++i]=r:(s[++i]=null,l.push({i,x:$w(n,r)})),a=Zw.lastIndex;return a<t.length&&(o=t.slice(a),s[i]?s[i]+=o:s[++i]=o),s.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,r=0;r<t;++r)s[(n=l[r]).i]=n.x(e);return s.join("")})}function Kw(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,o=t.slice();return function(a){for(n=0;n<r;++n)o[n]=e[n]*(1-a)+t[n]*a;return o}}function Xw(e,t){var n,r=typeof t;return null==t||"boolean"===r?Qw(t):("number"===r?$w:"string"===r?(n=Nw(t))?(t=n,Bw):qw:t instanceof Nw?Bw:t instanceof Date?Vw:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?Kw:Array.isArray(t)?Ww:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?Hw:$w)(e,t)}function Jw(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function eN(e){return+e}var tN=[0,1];function nN(e){return e}function rN(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function oN(e,t,n){var r=e[0],o=e[1],a=t[0],i=t[1];return o<r?(r=rN(o,r),a=n(i,a)):(r=rN(r,o),a=n(a,i)),function(e){return a(r(e))}}function aN(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),a=new Array(r),i=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++i<r;)o[i]=rN(e[i],e[i+1]),a[i]=n(t[i],t[i+1]);return function(t){var n=ow(e,t,1,r)-1;return a[n](o[n](t))}}function iN(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function sN(){var e,t,n,r,o,a,i=tN,s=tN,l=Xw,c=nN;function u(){var e=Math.min(i.length,s.length);return c!==nN&&(c=function(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(i[0],i[e-1])),r=e>2?aN:oN,o=a=null,d}function d(t){return null==t||isNaN(t=+t)?n:(o||(o=r(i.map(e),s,l)))(e(c(t)))}return d.invert=function(n){return c(t((a||(a=r(s,i.map(e),$w)))(n)))},d.domain=function(e){return arguments.length?(i=Array.from(e,eN),u()):i.slice()},d.range=function(e){return arguments.length?(s=Array.from(e),u()):s.slice()},d.rangeRound=function(e){return s=Array.from(e),l=Jw,u()},d.clamp=function(e){return arguments.length?(c=!!e||nN,u()):c!==nN},d.interpolate=function(e){return arguments.length?(l=e,u()):l},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,u()}}function lN(){return sN()(nN,nN)}var cN,uN=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function dN(e){if(!(t=uN.exec(e)))throw new Error("invalid format: "+e);var t;return new mN({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function mN(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function pN(e,t){if(!isFinite(e)||0===e)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function fN(e){return(e=pN(Math.abs(e)))?e[1]:NaN}function hN(e,t){var n=pN(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}dN.prototype=mN.prototype,mN.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const gN={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>hN(100*e,t),r:hN,s:function(e,t){var n=pN(e,t);if(!n)return cN=void 0,e.toPrecision(t);var r=n[0],o=n[1],a=o-(cN=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,i=r.length;return a===i?r:a>i?r+new Array(a-i+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+pN(e,Math.max(0,t+a-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function yN(e){return e}var vN,bN,MN,xN=Array.prototype.map,wN=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function NN(e,t,n,r){var o,a=qx(e,t,n);switch((r=dN(null==r?",f":r)).type){case"s":var i=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(fN(t)/3)))-fN(Math.abs(e)))}(a,i))||(r.precision=o),MN(r,i);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,fN(t)-fN(e))+1}(a,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(e){return Math.max(0,-fN(Math.abs(e)))}(a))||(r.precision=o-2*("%"===r.type))}return bN(r)}function jN(e){var t=e.domain;return e.ticks=function(e){var n=t();return Gx(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return NN(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,o,a=t(),i=0,s=a.length-1,l=a[i],c=a[s],u=10;for(c<l&&(o=l,l=c,c=o,o=i,i=s,s=o);u-- >0;){if((o=Zx(l,c,n))===r)return a[i]=l,a[s]=c,t(a);if(o>0)l=Math.floor(l/o)*o,c=Math.ceil(c/o)*o;else{if(!(o<0))break;l=Math.ceil(l*o)/o,c=Math.floor(c*o)/o}r=o}return e},e}function DN(){var e=lN();return e.copy=function(){return iN(e,DN())},XM.apply(e,arguments),jN(e)}function EN(e){var t;function n(e){return null==e||isNaN(e=+e)?t:e}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=Array.from(t,eN),n):e.slice()},n.unknown=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return EN(e).unknown(t)},e=arguments.length?Array.from(e,eN):[0,1],jN(n)}function TN(e,t){var n,r=0,o=(e=e.slice()).length-1,a=e[r],i=e[o];return i<a&&(n=r,r=o,o=n,n=a,a=i,i=n),e[r]=t.floor(a),e[o]=t.ceil(i),e}function ON(e){return Math.log(e)}function IN(e){return Math.exp(e)}function AN(e){return-Math.log(-e)}function kN(e){return-Math.exp(-e)}function SN(e){return isFinite(e)?+("1e"+e):e<0?0:e}function _N(e){return(t,n)=>-e(-t,n)}function CN(e){const t=e(ON,IN),n=t.domain;let r,o,a=10;function i(){return r=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}(a),o=function(e){return 10===e?SN:e===Math.E?Math.exp:t=>Math.pow(e,t)}(a),n()[0]<0?(r=_N(r),o=_N(o),e(AN,kN)):e(ON,IN),t}return t.base=function(e){return arguments.length?(a=+e,i()):a},t.domain=function(e){return arguments.length?(n(e),i()):n()},t.ticks=e=>{const t=n();let i=t[0],s=t[t.length-1];const l=s<i;l&&([i,s]=[s,i]);let c,u,d=r(i),m=r(s);const p=null==e?10:+e;let f=[];if(!(a%1)&&m-d<p){if(d=Math.floor(d),m=Math.ceil(m),i>0){for(;d<=m;++d)for(c=1;c<a;++c)if(u=d<0?c/o(-d):c*o(d),!(u<i)){if(u>s)break;f.push(u)}}else for(;d<=m;++d)for(c=a-1;c>=1;--c)if(u=d>0?c/o(-d):c*o(d),!(u<i)){if(u>s)break;f.push(u)}2*f.length<p&&(f=Gx(i,s,p))}else f=Gx(d,m,Math.min(m-d,p)).map(o);return l?f.reverse():f},t.tickFormat=(e,n)=>{if(null==e&&(e=10),null==n&&(n=10===a?"s":","),"function"!=typeof n&&(a%1||null!=(n=dN(n)).precision||(n.trim=!0),n=bN(n)),e===1/0)return n;const i=Math.max(1,a*e/t.ticks().length);return e=>{let t=e/o(Math.round(r(e)));return t*a<a-.5&&(t*=a),t<=i?n(e):""}},t.nice=()=>n(TN(n(),{floor:e=>o(Math.floor(r(e))),ceil:e=>o(Math.ceil(r(e)))})),t}function zN(){const e=CN(sN()).domain([1,10]);return e.copy=()=>iN(e,zN()).base(e.base()),XM.apply(e,arguments),e}function LN(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function PN(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function UN(e){var t=1,n=e(LN(t),PN(t));return n.constant=function(n){return arguments.length?e(LN(t=+n),PN(t)):t},jN(n)}function RN(){var e=UN(sN());return e.copy=function(){return iN(e,RN()).constant(e.constant())},XM.apply(e,arguments)}function QN(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function YN(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function BN(e){return e<0?-e*e:e*e}function FN(e){var t=e(nN,nN),n=1;return t.exponent=function(t){return arguments.length?1===(n=+t)?e(nN,nN):.5===n?e(YN,BN):e(QN(n),QN(1/n)):n},jN(t)}function WN(){var e=FN(sN());return e.copy=function(){return iN(e,WN()).exponent(e.exponent())},XM.apply(e,arguments),e}function VN(){return WN.apply(null,arguments).exponent(.5)}function $N(e){return Math.sign(e)*e*e}function HN(){var e,t=lN(),n=[0,1],r=!1;function o(n){var o=function(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}(t(n));return isNaN(o)?e:r?Math.round(o):o}return o.invert=function(e){return t.invert($N(e))},o.domain=function(e){return arguments.length?(t.domain(e),o):t.domain()},o.range=function(e){return arguments.length?(t.range((n=Array.from(e,eN)).map($N)),o):n.slice()},o.rangeRound=function(e){return o.range(e).round(!0)},o.round=function(e){return arguments.length?(r=!!e,o):r},o.clamp=function(e){return arguments.length?(t.clamp(e),o):t.clamp()},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return HN(t.domain(),n).round(r).clamp(t.clamp()).unknown(e)},XM.apply(o,arguments),jN(o)}function GN(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n<t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n<o||void 0===n&&o>=o)&&(n=o)}return n}function ZN(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n>o||void 0===n&&o>=o)&&(n=o)}return n}function qN(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(e<t?-1:e>t?1:0)}function KN(e,t,n=0,r=1/0,o){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(o=void 0===o?qN:function(e=Kx){if(e===Kx)return qN;if("function"!=typeof e)throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||0===r?r:(0===e(n,n))-(0===e(t,t))}}(o);r>n;){if(r-n>600){const a=r-n+1,i=t-n+1,s=Math.log(a),l=.5*Math.exp(2*s/3),c=.5*Math.sqrt(s*l*(a-l)/a)*(i-a/2<0?-1:1);KN(e,t,Math.max(n,Math.floor(t-i*l/a+c)),Math.min(r,Math.floor(t+(a-i)*l/a+c)),o)}const a=e[t];let i=n,s=r;for(XN(e,n,t),o(e[r],a)>0&&XN(e,n,r);i<s;){for(XN(e,i,s),++i,--s;o(e[i],a)<0;)++i;for(;o(e[s],a)>0;)--s}0===o(e[n],a)?XN(e,n,s):(++s,XN(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function XN(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function JN(e,t,n=tw){if((r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,a=Math.floor(o),i=+n(e[a],a,e);return i+(+n(e[a+1],a+1,e)-i)*(o-a)}}function ej(){var e,t=[],n=[],r=[];function o(){var e=0,o=Math.max(1,n.length);for(r=new Array(o-1);++e<o;)r[e-1]=JN(t,e/o);return a}function a(t){return null==t||isNaN(t=+t)?e:n[ow(r,t)]}return a.invertExtent=function(e){var o=n.indexOf(e);return o<0?[NaN,NaN]:[o>0?r[o-1]:t[0],o<r.length?r[o]:t[t.length-1]]},a.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let n of e)null==n||isNaN(n=+n)||t.push(n);return t.sort(Kx),o()},a.range=function(e){return arguments.length?(n=Array.from(e),o()):n.slice()},a.unknown=function(t){return arguments.length?(e=t,a):e},a.quantiles=function(){return r.slice()},a.copy=function(){return ej().domain(t).range(n).unknown(e)},XM.apply(a,arguments)}function tj(){var e,t=0,n=1,r=1,o=[.5],a=[0,1];function i(t){return null!=t&&t<=t?a[ow(o,t,0,r)]:e}function s(){var e=-1;for(o=new Array(r);++e<r;)o[e]=((e+1)*n-(e-r)*t)/(r+1);return i}return i.domain=function(e){return arguments.length?([t,n]=e,t=+t,n=+n,s()):[t,n]},i.range=function(e){return arguments.length?(r=(a=Array.from(e)).length-1,s()):a.slice()},i.invertExtent=function(e){var i=a.indexOf(e);return i<0?[NaN,NaN]:i<1?[t,o[0]]:i>=r?[o[r-1],n]:[o[i-1],o[i]]},i.unknown=function(t){return arguments.length?(e=t,i):i},i.thresholds=function(){return o.slice()},i.copy=function(){return tj().domain([t,n]).range(a).unknown(e)},XM.apply(jN(i),arguments)}function nj(){var e,t=[.5],n=[0,1],r=1;function o(o){return null!=o&&o<=o?n[ow(t,o,0,r)]:e}return o.domain=function(e){return arguments.length?(t=Array.from(e),r=Math.min(t.length,n.length-1),o):t.slice()},o.range=function(e){return arguments.length?(n=Array.from(e),r=Math.min(t.length,n.length-1),o):n.slice()},o.invertExtent=function(e){var r=n.indexOf(e);return[t[r-1],t[r]]},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return nj().domain(t).range(n).unknown(e)},XM.apply(o,arguments)}vN=function(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?yN:(t=xN.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,a=[],i=0,s=t[0],l=0;o>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),a.push(e.substring(o-=s,o+s)),!((l+=s+1)>r));)s=t[i=(i+1)%t.length];return a.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",a=void 0===e.currency?"":e.currency[1]+"",i=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?yN:function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}(xN.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"−":e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function d(e,t){var n=(e=dN(e)).fill,d=e.align,m=e.sign,p=e.symbol,f=e.zero,h=e.width,g=e.comma,y=e.precision,v=e.trim,b=e.type;"n"===b?(g=!0,b="g"):gN[b]||(void 0===y&&(y=12),v=!0,b="g"),(f||"0"===n&&"="===d)&&(f=!0,n="0",d="=");var M=(t&&void 0!==t.prefix?t.prefix:"")+("$"===p?o:"#"===p&&/[boxX]/.test(b)?"0"+b.toLowerCase():""),x=("$"===p?a:/[%p]/.test(b)?l:"")+(t&&void 0!==t.suffix?t.suffix:""),w=gN[b],N=/[defgprs%]/.test(b);function j(e){var t,o,a,l=M,p=x;if("c"===b)p=w(e)+p,e="";else{var j=(e=+e)<0||1/e<0;if(e=isNaN(e)?u:w(Math.abs(e),y),v&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r<n;++r)switch(e[r]){case".":o=t=r;break;case"0":0===o&&(o=r),t=r;break;default:if(!+e[r])break e;o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),j&&0===+e&&"+"!==m&&(j=!1),l=(j?"("===m?m:c:"-"===m||"("===m?"":m)+l,p=("s"!==b||isNaN(e)||void 0===cN?"":wN[8+cN/3])+p+(j&&"("===m?")":""),N)for(t=-1,o=e.length;++t<o;)if(48>(a=e.charCodeAt(t))||a>57){p=(46===a?i+e.slice(t+1):e.slice(t))+p,e=e.slice(0,t);break}}g&&!f&&(e=r(e,1/0));var D=l.length+e.length+p.length,E=D<h?new Array(h-D+1).join(n):"";switch(g&&f&&(e=r(E+e,E.length?h-p.length:1/0),E=""),d){case"<":e=l+e+p+E;break;case"=":e=l+E+e+p;break;case"^":e=E.slice(0,D=E.length>>1)+l+e+p+E.slice(D);break;default:e=E+l+e+p}return s(e)}return y=void 0===y?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),j.toString=function(){return e+""},j}return{format:d,formatPrefix:function(e,t){var n=3*Math.max(-8,Math.min(8,Math.floor(fN(t)/3))),r=Math.pow(10,-n),o=d(((e=dN(e)).type="f",e),{suffix:wN[8+n/3]});return function(e){return o(r*e)}}}}({thousands:",",grouping:[3],currency:["$",""]}),bN=vN.format,MN=vN.formatPrefix;const rj=1e3,oj=6e4,aj=36e5,ij=864e5,sj=6048e5,lj=31536e6,cj=new Date,uj=new Date;function dj(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=t=>(e(t=new Date(+t)),t),o.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),o.round=e=>{const t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),o.range=(n,r,a)=>{const i=[];if(n=o.ceil(n),a=null==a?1:Math.floor(a),!(n<r&&a>0))return i;let s;do{i.push(s=new Date(+n)),t(n,a),e(n)}while(s<n&&n<r);return i},o.filter=n=>dj(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}),n&&(o.count=(t,r)=>(cj.setTime(+t),uj.setTime(+r),e(cj),e(uj),Math.floor(n(cj,uj))),o.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?t=>r(t)%e===0:t=>o.count(0,t)%e===0):o:null)),o}const mj=dj(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);mj.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?dj(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):mj:null),mj.range;const pj=dj(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*rj)},(e,t)=>(t-e)/rj,e=>e.getUTCSeconds()),fj=(pj.range,dj(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*rj)},(e,t)=>{e.setTime(+e+t*oj)},(e,t)=>(t-e)/oj,e=>e.getMinutes())),hj=(fj.range,dj(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*oj)},(e,t)=>(t-e)/oj,e=>e.getUTCMinutes())),gj=(hj.range,dj(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*rj-e.getMinutes()*oj)},(e,t)=>{e.setTime(+e+t*aj)},(e,t)=>(t-e)/aj,e=>e.getHours())),yj=(gj.range,dj(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*aj)},(e,t)=>(t-e)/aj,e=>e.getUTCHours())),vj=(yj.range,dj(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*oj)/ij,e=>e.getDate()-1)),bj=(vj.range,dj(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ij,e=>e.getUTCDate()-1)),Mj=(bj.range,dj(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ij,e=>Math.floor(e/ij)));function xj(e){return dj(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+7*t)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*oj)/sj)}Mj.range;const wj=xj(0),Nj=xj(1),jj=xj(2),Dj=xj(3),Ej=xj(4),Tj=xj(5),Oj=xj(6);function Ij(e){return dj(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)},(e,t)=>(t-e)/sj)}wj.range,Nj.range,jj.range,Dj.range,Ej.range,Tj.range,Oj.range;const Aj=Ij(0),kj=Ij(1),Sj=Ij(2),_j=Ij(3),Cj=Ij(4),zj=Ij(5),Lj=Ij(6),Pj=(Aj.range,kj.range,Sj.range,_j.range,Cj.range,zj.range,Lj.range,dj(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear()),e=>e.getMonth())),Uj=(Pj.range,dj(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear()),e=>e.getUTCMonth())),Rj=(Uj.range,dj(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear()));Rj.every=e=>isFinite(e=Math.floor(e))&&e>0?dj(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}):null,Rj.range;const Qj=dj(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());function Yj(e,t,n,r,o,a){const i=[[pj,1,rj],[pj,5,5e3],[pj,15,15e3],[pj,30,3e4],[a,1,oj],[a,5,3e5],[a,15,9e5],[a,30,18e5],[o,1,aj],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,ij],[r,2,1728e5],[n,1,sj],[t,1,2592e6],[t,3,7776e6],[e,1,lj]];function s(t,n,r){const o=Math.abs(n-t)/r,a=Jx(([,,e])=>e).right(i,o);if(a===i.length)return e.every(qx(t/lj,n/lj,r));if(0===a)return mj.every(Math.max(qx(t,n,r),1));const[s,l]=i[o/i[a-1][2]<i[a][2]/o?a-1:a];return s.every(l)}return[function(e,t,n){const r=t<e;r&&([e,t]=[t,e]);const o=n&&"function"==typeof n.range?n:s(e,t,n),a=o?o.range(e,+t+1):[];return r?a.reverse():a},s]}Qj.every=e=>isFinite(e=Math.floor(e))&&e>0?dj(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null,Qj.range;const[Bj,Fj]=Yj(Qj,Uj,Aj,Mj,yj,hj),[Wj,Vj]=Yj(Rj,Pj,wj,vj,gj,fj);function $j(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Hj(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Gj(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var Zj,qj,Kj,Xj={"-":"",_:" ",0:"0"},Jj=/^\s*\d+/,eD=/^%/,tD=/[\\^$*+?|[\]().{}]/g;function nD(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",a=o.length;return r+(a<n?new Array(n-a+1).join(t)+o:o)}function rD(e){return e.replace(tD,"\\$&")}function oD(e){return new RegExp("^(?:"+e.map(rD).join("|")+")","i")}function aD(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function iD(e,t,n){var r=Jj.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function sD(e,t,n){var r=Jj.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function lD(e,t,n){var r=Jj.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function cD(e,t,n){var r=Jj.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function uD(e,t,n){var r=Jj.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function dD(e,t,n){var r=Jj.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function mD(e,t,n){var r=Jj.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function pD(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function fD(e,t,n){var r=Jj.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function hD(e,t,n){var r=Jj.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function gD(e,t,n){var r=Jj.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function yD(e,t,n){var r=Jj.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function vD(e,t,n){var r=Jj.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function bD(e,t,n){var r=Jj.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function MD(e,t,n){var r=Jj.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function xD(e,t,n){var r=Jj.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function wD(e,t,n){var r=Jj.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function ND(e,t,n){var r=eD.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function jD(e,t,n){var r=Jj.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function DD(e,t,n){var r=Jj.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function ED(e,t){return nD(e.getDate(),t,2)}function TD(e,t){return nD(e.getHours(),t,2)}function OD(e,t){return nD(e.getHours()%12||12,t,2)}function ID(e,t){return nD(1+vj.count(Rj(e),e),t,3)}function AD(e,t){return nD(e.getMilliseconds(),t,3)}function kD(e,t){return AD(e,t)+"000"}function SD(e,t){return nD(e.getMonth()+1,t,2)}function _D(e,t){return nD(e.getMinutes(),t,2)}function CD(e,t){return nD(e.getSeconds(),t,2)}function zD(e){var t=e.getDay();return 0===t?7:t}function LD(e,t){return nD(wj.count(Rj(e)-1,e),t,2)}function PD(e){var t=e.getDay();return t>=4||0===t?Ej(e):Ej.ceil(e)}function UD(e,t){return e=PD(e),nD(Ej.count(Rj(e),e)+(4===Rj(e).getDay()),t,2)}function RD(e){return e.getDay()}function QD(e,t){return nD(Nj.count(Rj(e)-1,e),t,2)}function YD(e,t){return nD(e.getFullYear()%100,t,2)}function BD(e,t){return nD((e=PD(e)).getFullYear()%100,t,2)}function FD(e,t){return nD(e.getFullYear()%1e4,t,4)}function WD(e,t){var n=e.getDay();return nD((e=n>=4||0===n?Ej(e):Ej.ceil(e)).getFullYear()%1e4,t,4)}function VD(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+nD(t/60|0,"0",2)+nD(t%60,"0",2)}function $D(e,t){return nD(e.getUTCDate(),t,2)}function HD(e,t){return nD(e.getUTCHours(),t,2)}function GD(e,t){return nD(e.getUTCHours()%12||12,t,2)}function ZD(e,t){return nD(1+bj.count(Qj(e),e),t,3)}function qD(e,t){return nD(e.getUTCMilliseconds(),t,3)}function KD(e,t){return qD(e,t)+"000"}function XD(e,t){return nD(e.getUTCMonth()+1,t,2)}function JD(e,t){return nD(e.getUTCMinutes(),t,2)}function eE(e,t){return nD(e.getUTCSeconds(),t,2)}function tE(e){var t=e.getUTCDay();return 0===t?7:t}function nE(e,t){return nD(Aj.count(Qj(e)-1,e),t,2)}function rE(e){var t=e.getUTCDay();return t>=4||0===t?Cj(e):Cj.ceil(e)}function oE(e,t){return e=rE(e),nD(Cj.count(Qj(e),e)+(4===Qj(e).getUTCDay()),t,2)}function aE(e){return e.getUTCDay()}function iE(e,t){return nD(kj.count(Qj(e)-1,e),t,2)}function sE(e,t){return nD(e.getUTCFullYear()%100,t,2)}function lE(e,t){return nD((e=rE(e)).getUTCFullYear()%100,t,2)}function cE(e,t){return nD(e.getUTCFullYear()%1e4,t,4)}function uE(e,t){var n=e.getUTCDay();return nD((e=n>=4||0===n?Cj(e):Cj.ceil(e)).getUTCFullYear()%1e4,t,4)}function dE(){return"+0000"}function mE(){return"%"}function pE(e){return+e}function fE(e){return Math.floor(+e/1e3)}function hE(e){return new Date(e)}function gE(e){return e instanceof Date?+e:+new Date(+e)}function yE(e,t,n,r,o,a,i,s,l,c){var u=lN(),d=u.invert,m=u.domain,p=c(".%L"),f=c(":%S"),h=c("%I:%M"),g=c("%I %p"),y=c("%a %d"),v=c("%b %d"),b=c("%B"),M=c("%Y");function x(e){return(l(e)<e?p:s(e)<e?f:i(e)<e?h:a(e)<e?g:r(e)<e?o(e)<e?y:v:n(e)<e?b:M)(e)}return u.invert=function(e){return new Date(d(e))},u.domain=function(e){return arguments.length?m(Array.from(e,gE)):m().map(hE)},u.ticks=function(t){var n=m();return e(n[0],n[n.length-1],null==t?10:t)},u.tickFormat=function(e,t){return null==t?x:c(t)},u.nice=function(e){var n=m();return e&&"function"==typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?m(TN(n,e)):u},u.copy=function(){return iN(u,yE(e,t,n,r,o,a,i,s,l,c))},u}function vE(){return XM.apply(yE(Wj,Vj,Rj,Pj,wj,vj,gj,fj,pj,qj).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function bE(){return XM.apply(yE(Bj,Fj,Qj,Uj,Aj,bj,yj,hj,pj,Kj).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function ME(){var e,t,n,r,o,a=0,i=1,s=nN,l=!1;function c(t){return null==t||isNaN(t=+t)?o:s(0===n?.5:(t=(r(t)-e)*n,l?Math.max(0,Math.min(1,t)):t))}function u(e){return function(t){var n,r;return arguments.length?([n,r]=t,s=e(n,r),c):[s(0),s(1)]}}return c.domain=function(o){return arguments.length?([a,i]=o,e=r(a=+a),t=r(i=+i),n=e===t?0:1/(t-e),c):[a,i]},c.clamp=function(e){return arguments.length?(l=!!e,c):l},c.interpolator=function(e){return arguments.length?(s=e,c):s},c.range=u(Xw),c.rangeRound=u(Jw),c.unknown=function(e){return arguments.length?(o=e,c):o},function(o){return r=o,e=o(a),t=o(i),n=e===t?0:1/(t-e),c}}function xE(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function wE(){var e=jN(ME()(nN));return e.copy=function(){return xE(e,wE())},JM.apply(e,arguments)}function NE(){var e=CN(ME()).domain([1,10]);return e.copy=function(){return xE(e,NE()).base(e.base())},JM.apply(e,arguments)}function jE(){var e=UN(ME());return e.copy=function(){return xE(e,jE()).constant(e.constant())},JM.apply(e,arguments)}function DE(){var e=FN(ME());return e.copy=function(){return xE(e,DE()).exponent(e.exponent())},JM.apply(e,arguments)}function EE(){return DE.apply(null,arguments).exponent(.5)}function TE(){var e=[],t=nN;function n(n){if(null!=n&&!isNaN(n=+n))return t((ow(e,n,1)-1)/(e.length-1))}return n.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)null==n||isNaN(n=+n)||e.push(n);return e.sort(Kx),n},n.interpolator=function(e){return arguments.length?(t=e,n):t},n.range=function(){return e.map((n,r)=>t(r/(e.length-1)))},n.quantiles=function(t){return Array.from({length:t+1},(n,r)=>function(e,t,n){if(e=Float64Array.from(function*(e,t){if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}(e,n)),(r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return ZN(e);if(t>=1)return GN(e);var r,o=(r-1)*t,a=Math.floor(o),i=GN(KN(e,a).subarray(0,a+1));return i+(ZN(e.subarray(a+1))-i)*(o-a)}}(e,r/t))},n.copy=function(){return TE(t).domain(e)},JM.apply(n,arguments)}function OE(){var e,t,n,r,o,a,i,s=0,l=.5,c=1,u=1,d=nN,m=!1;function p(e){return isNaN(e=+e)?i:(e=.5+((e=+a(e))-t)*(u*e<u*t?r:o),d(m?Math.max(0,Math.min(1,e)):e))}function f(e){return function(t){var n,r,o;return arguments.length?([n,r,o]=t,d=function(e,t){void 0===t&&(t=e,e=Xw);for(var n=0,r=t.length-1,o=t[0],a=new Array(r<0?0:r);n<r;)a[n]=e(o,o=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return a[t](e-t)}}(e,[n,r,o]),p):[d(0),d(.5),d(1)]}}return p.domain=function(i){return arguments.length?([s,l,c]=i,e=a(s=+s),t=a(l=+l),n=a(c=+c),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),u=t<e?-1:1,p):[s,l,c]},p.clamp=function(e){return arguments.length?(m=!!e,p):m},p.interpolator=function(e){return arguments.length?(d=e,p):d},p.range=f(Xw),p.rangeRound=f(Jw),p.unknown=function(e){return arguments.length?(i=e,p):i},function(i){return a=i,e=i(s),t=i(l),n=i(c),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),u=t<e?-1:1,p}}function IE(){var e=jN(OE()(nN));return e.copy=function(){return xE(e,IE())},JM.apply(e,arguments)}function AE(){var e=CN(OE()).domain([.1,1,10]);return e.copy=function(){return xE(e,AE()).base(e.base())},JM.apply(e,arguments)}function kE(){var e=UN(OE());return e.copy=function(){return xE(e,kE()).constant(e.constant())},JM.apply(e,arguments)}function SE(){var e=FN(OE());return e.copy=function(){return xE(e,SE()).exponent(e.exponent())},JM.apply(e,arguments)}function _E(){return SE.apply(null,arguments).exponent(.5)}function CE(e,t){if((o=e.length)>1)for(var n,r,o,a=1,i=e[t[0]],s=i.length;a<o;++a)for(r=i,i=e[t[a]],n=0;n<s;++n)i[n][1]+=i[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function zE(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function LE(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function PE(e,t){return e[t]}function UE(e){const t=[];return t.key=e,t}Zj=function(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,a=e.days,i=e.shortDays,s=e.months,l=e.shortMonths,c=oD(o),u=aD(o),d=oD(a),m=aD(a),p=oD(i),f=aD(i),h=oD(s),g=aD(s),y=oD(l),v=aD(l),b={a:function(e){return i[e.getDay()]},A:function(e){return a[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:ED,e:ED,f:kD,g:BD,G:WD,H:TD,I:OD,j:ID,L:AD,m:SD,M:_D,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:pE,s:fE,S:CD,u:zD,U:LD,V:UD,w:RD,W:QD,x:null,X:null,y:YD,Y:FD,Z:VD,"%":mE},M={a:function(e){return i[e.getUTCDay()]},A:function(e){return a[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:$D,e:$D,f:KD,g:lE,G:uE,H:HD,I:GD,j:ZD,L:qD,m:XD,M:JD,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:pE,s:fE,S:eE,u:tE,U:nE,V:oE,w:aE,W:iE,x:null,X:null,y:sE,Y:cE,Z:dE,"%":mE},x={a:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=m.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=h.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return j(e,t,n,r)},d:gD,e:gD,f:wD,g:mD,G:dD,H:vD,I:vD,j:yD,L:xD,m:hD,M:bD,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1},q:fD,Q:jD,s:DD,S:MD,u:sD,U:lD,V:cD,w:iD,W:uD,x:function(e,t,r){return j(e,n,t,r)},X:function(e,t,n){return j(e,r,t,n)},y:mD,Y:dD,Z:pD,"%":ND};function w(e,t){return function(n){var r,o,a,i=[],s=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===e.charCodeAt(s)&&(i.push(e.slice(l,s)),null!=(o=Xj[r=e.charAt(++s)])?r=e.charAt(++s):o="e"===r?" ":"0",(a=t[r])&&(r=a(n,o)),i.push(r),l=s+1);return i.push(e.slice(l,s)),i.join("")}}function N(e,t){return function(n){var r,o,a=Gj(1900,void 0,1);if(j(a,e,n+="",0)!=n.length)return null;if("Q"in a)return new Date(a.Q);if("s"in a)return new Date(1e3*a.s+("L"in a?a.L:0));if(t&&!("Z"in a)&&(a.Z=0),"p"in a&&(a.H=a.H%12+12*a.p),void 0===a.m&&(a.m="q"in a?a.q:0),"V"in a){if(a.V<1||a.V>53)return null;"w"in a||(a.w=1),"Z"in a?(o=(r=Hj(Gj(a.y,0,1))).getUTCDay(),r=o>4||0===o?kj.ceil(r):kj(r),r=bj.offset(r,7*(a.V-1)),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(o=(r=$j(Gj(a.y,0,1))).getDay(),r=o>4||0===o?Nj.ceil(r):Nj(r),r=vj.offset(r,7*(a.V-1)),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),o="Z"in a?Hj(Gj(a.y,0,1)).getUTCDay():$j(Gj(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(o+5)%7:a.w+7*a.U-(o+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,Hj(a)):$j(a)}}function j(e,t,n,r){for(var o,a,i=0,s=t.length,l=n.length;i<s;){if(r>=l)return-1;if(37===(o=t.charCodeAt(i++))){if(o=t.charAt(i++),!(a=x[o in Xj?t.charAt(i++):o])||(r=a(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=w(n,b),b.X=w(r,b),b.c=w(t,b),M.x=w(n,M),M.X=w(r,M),M.c=w(t,M),{format:function(e){var t=w(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=N(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=w(e+="",M);return t.toString=function(){return e},t},utcParse:function(e){var t=N(e+="",!0);return t.toString=function(){return e},t}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),qj=Zj.format,Zj.parse,Kj=Zj.utcFormat,Zj.utcParse,Array.prototype.slice;var RE=o(4506),QE=o.n(RE),YE=o(1684),BE=o.n(YE),FE=o(7307),WE=o.n(FE),VE=o(2404),$E=o.n(VE),HE=o(8351),GE=o.n(HE);function ZE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var qE=function(e){return e},KE={"@@functional/placeholder":!0},XE=function(e){return e===KE},JE=function(e){return function t(){return 0===arguments.length||1===arguments.length&&XE(arguments.length<=0?void 0:arguments[0])?t:e.apply(void 0,arguments)}},eT=function e(t,n){return 1===t?n:JE(function(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];var i=o.filter(function(e){return e!==KE}).length;return i>=t?n.apply(void 0,o):e(t-i,JE(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var a,i=o.map(function(e){return XE(e)?t.shift():e});return n.apply(void 0,(a=i,function(e){if(Array.isArray(e))return ZE(e)}(a)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(a)||function(e,t){if(e){if("string"==typeof e)return ZE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ZE(e,t):void 0}}(a)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat(t))}))})},tT=function(e){return eT(e.length,e)},nT=function(e,t){for(var n=[],r=e;r<t;++r)n[r-e]=r;return n},rT=tT(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(e){return t[e]}).map(e)}),oT=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)return qE;var r=t.reverse(),o=r[0],a=r.slice(1);return function(){return a.reduce(function(e,t){return t(e)},o.apply(void 0,arguments))}},aT=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")},iT=function(e){var t=null,n=null;return function(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return t&&o.every(function(e,n){return e===t[n]})?n:(t=o,n=e.apply(void 0,o))}};tT(function(e,t,n){var r=+e;return r+n*(+t-r)}),tT(function(e,t,n){var r=t-+e;return(n-e)/(r||1/0)}),tT(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const sT=function(e,t,n){for(var r=new(GE())(e),o=0,a=[];r.lt(t)&&o<1e5;)a.push(r.toNumber()),r=r.add(n),o++;return a},lT=function(e){return 0===e?1:Math.floor(new(GE())(e).abs().log(10).toNumber())+1};function cT(e){return function(e){if(Array.isArray(e))return mT(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||dT(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function uT(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],_n=!0,r=!1,o=void 0;try{for(var a,i=e[Symbol.iterator]();!(_n=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,o=e}finally{try{_n||null==i.return||i.return()}finally{if(r)throw o}}return n}}(e,t)||dT(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function dT(e,t){if(e){if("string"==typeof e)return mT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mT(e,t):void 0}}function mT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pT(e){var t=uT(e,2),n=t[0],r=t[1],o=n,a=r;return n>r&&(o=r,a=n),[o,a]}function fT(e,t,n){if(e.lte(0))return new(GE())(0);var r=lT(e.toNumber()),o=new(GE())(10).pow(r),a=e.div(o),i=1!==r?.05:.1,s=new(GE())(Math.ceil(a.div(i).toNumber())).add(n).mul(i).mul(o);return t?s:new(GE())(Math.ceil(s))}function hT(e,t,n){var r=1,o=new(GE())(e);if(!o.isint()&&n){var a=Math.abs(e);a<1?(r=new(GE())(10).pow(lT(e)-1),o=new(GE())(Math.floor(o.div(r).toNumber())).mul(r)):a>1&&(o=new(GE())(Math.floor(e)))}else 0===e?o=new(GE())(Math.floor((t-1)/2)):n||(o=new(GE())(Math.floor(e)));var i=Math.floor((t-1)/2),s=oT(rT(function(e){return o.add(new(GE())(e-i).mul(r)).toNumber()}),nT);return s(0,t)}function gT(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new(GE())(0),tickMin:new(GE())(0),tickMax:new(GE())(0)};var a,i=fT(new(GE())(t).sub(e).div(n-1),r,o);a=e<=0&&t>=0?new(GE())(0):(a=new(GE())(e).add(t).div(2)).sub(new(GE())(a).mod(i));var s=Math.ceil(a.sub(e).div(i).toNumber()),l=Math.ceil(new(GE())(t).sub(a).div(i).toNumber()),c=s+l+1;return c>n?gT(e,t,n,r,o+1):(c<n&&(l=t>0?l+(n-c):l,s=t>0?s:s+(n-c)),{step:i,tickMin:a.sub(new(GE())(s).mul(i)),tickMax:a.add(new(GE())(l).mul(i))})}var yT=iT(function(e){var t=uT(e,2),n=t[0],r=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=Math.max(o,2),s=uT(pT([n,r]),2),l=s[0],c=s[1];if(l===-1/0||c===1/0){var u=c===1/0?[l].concat(cT(nT(0,o-1).map(function(){return 1/0}))):[].concat(cT(nT(0,o-1).map(function(){return-1/0})),[c]);return n>r?aT(u):u}if(l===c)return hT(l,o,a);var d=gT(l,c,i,a),m=d.step,p=d.tickMin,f=d.tickMax,h=sT(p,f.add(new(GE())(.1).mul(m)),m);return n>r?aT(h):h}),vT=(iT(function(e){var t=uT(e,2),n=t[0],r=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=Math.max(o,2),s=uT(pT([n,r]),2),l=s[0],c=s[1];if(l===-1/0||c===1/0)return[n,r];if(l===c)return hT(l,o,a);var u=fT(new(GE())(c).sub(l).div(i-1),a,0),d=oT(rT(function(e){return new(GE())(l).add(new(GE())(e).mul(u)).toNumber()}),nT),m=d(0,i).filter(function(e){return e>=l&&e<=c});return n>r?aT(m):m}),iT(function(e,t){var n=uT(e,2),r=n[0],o=n[1],a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=uT(pT([r,o]),2),s=i[0],l=i[1];if(s===-1/0||l===1/0)return[r,o];if(s===l)return[s];var c=Math.max(t,2),u=fT(new(GE())(l).sub(s).div(c-1),a,0),d=[].concat(cT(sT(new(GE())(s),new(GE())(l).sub(new(GE())(.99).mul(u)),u)),[l]);return r>o?aT(d):d})),bT=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function MT(e){return MT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},MT(e)}function xT(){return xT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xT.apply(this,arguments)}function wT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function NT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,OT(r.key),r)}}function jT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(jT=function(){return!!e})()}function DT(e){return DT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},DT(e)}function ET(e,t){return ET=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ET(e,t)}function TT(e,t,n){return(t=OT(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OT(e){var t=function(e){if("object"!=MT(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=MT(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==MT(t)?t:t+""}var IT=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=DT(t),function(e,t){if(t&&("object"===MT(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,jT()?Reflect.construct(t,n||[],DT(e).constructor):t.apply(e,n))}(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ET(e,t)}(t,e),n=t,r=[{key:"render",value:function(){var e=this.props,t=e.offset,n=e.layout,r=e.width,o=e.dataKey,a=e.data,i=e.dataPointFormatter,l=e.xAxis,c=e.yAxis,u=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,bT),d=ay(u,!1);"x"===this.props.direction&&"number"!==l.type&&by(!1);var m=a.map(function(e){var a=i(e,o),u=a.x,m=a.y,p=a.value,f=a.errorVal;if(!f)return null;var h,g,y=[];if(Array.isArray(f)){var v=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return wT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wT(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(f,2);h=v[0],g=v[1]}else h=g=f;if("vertical"===n){var b=l.scale,M=m+t,x=M+r,w=M-r,N=b(p-h),j=b(p+g);y.push({x1:j,y1:x,x2:j,y2:w}),y.push({x1:N,y1:M,x2:j,y2:M}),y.push({x1:N,y1:x,x2:N,y2:w})}else if("horizontal"===n){var D=c.scale,E=u+t,T=E-r,O=E+r,I=D(p-h),A=D(p+g);y.push({x1:T,y1:A,x2:O,y2:A}),y.push({x1:E,y1:I,x2:E,y2:A}),y.push({x1:T,y1:I,x2:O,y2:I})}return s().createElement(Dy,xT({className:"recharts-errorBar",key:"bar-".concat(y.map(function(e){return"".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)}))},d),y.map(function(e){return s().createElement("line",xT({},e,{key:"line-".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)}))}))});return s().createElement(Dy,{className:"recharts-errorBars"},m)}}],r&&NT(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(s().Component);function AT(e){return AT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},AT(e)}function kT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ST(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kT(Object(n),!0).forEach(function(t){_T(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kT(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _T(e,t,n){return t=function(e){var t=function(e){if("object"!=AT(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=AT(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==AT(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}TT(IT,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"}),TT(IT,"displayName","ErrorBar");var CT=function(e){var t=e.children,n=e.formattedGraphicalItems,r=e.legendWidth,o=e.legendContent,a=ny(t,Mb);if(!a)return null;var i,s=Mb.defaultProps,l=void 0!==s?ST(ST({},s),a.props):{};return i=a.props&&a.props.payload?a.props&&a.props.payload:"children"===o?(n||[]).reduce(function(e,t){var n=t.item,r=t.props,o=r.sectors||r.data||[];return e.concat(o.map(function(e){return{type:a.props.iconType||n.props.legendType,value:e.name,color:e.fill,payload:e}}))},[]):(n||[]).map(function(e){var t=e.item,n=t.type.defaultProps,r=void 0!==n?ST(ST({},n),t.props):{},o=r.dataKey,a=r.name,i=r.legendType;return{inactive:r.hide,dataKey:o,type:l.iconType||i||"square",color:FT(t),value:a||o,payload:r}}),ST(ST(ST({},l),Mb.getWithHeight(a,r)),{},{payload:i,item:a})};function zT(e){return zT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zT(e)}function LT(e){return function(e){if(Array.isArray(e))return PT(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return PT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?PT(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function PT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function UT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function RT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?UT(Object(n),!0).forEach(function(t){QT(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UT(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function QT(e,t,n){return t=function(e){var t=function(e){if("object"!=zT(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=zT(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==zT(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YT(e,t,n){return Mg()(e)||Mg()(t)?n:jg(t)?gg()(e,t,n):Cg()(t)?t(e):n}function BT(e,t,n,r){var o=WE()(e,function(e){return YT(e,t)});if("number"===n){var a=o.filter(function(e){return Ng(e)||parseFloat(e)});return a.length?[BE()(a),QE()(a)]:[1/0,-1/0]}return(r?o.filter(function(e){return!Mg()(e)}):o).map(function(e){return jg(e)||e instanceof Date?e:""})}var FT=function(e){var t,n,r=e.type.displayName,o=null!==(t=e.type)&&void 0!==t&&t.defaultProps?RT(RT({},e.type.defaultProps),e.props):e.props,a=o.stroke,i=o.fill;switch(r){case"Line":n=a;break;case"Area":case"Radar":n=a&&"none"!==a?a:i;break;default:n=i}return n},WT=function(e,t,n,r,o){var a=ty(t.props.children,IT).filter(function(e){return function(e,t,n){return!!Mg()(t)||("horizontal"===e?"yAxis"===t:"vertical"===e||"x"===n?"xAxis"===t:"y"!==n||"yAxis"===t)}(r,o,e.props.direction)});if(a&&a.length){var i=a.map(function(e){return e.props.dataKey});return e.reduce(function(e,t){var r=YT(t,n);if(Mg()(r))return e;var o=Array.isArray(r)?[BE()(r),QE()(r)]:[r,r],a=i.reduce(function(e,n){var r=YT(t,n,0),a=o[0]-Math.abs(Array.isArray(r)?r[0]:r),i=o[1]+Math.abs(Array.isArray(r)?r[1]:r);return[Math.min(a,e[0]),Math.max(i,e[1])]},[1/0,-1/0]);return[Math.min(a[0],e[0]),Math.max(a[1],e[1])]},[1/0,-1/0])}return null},VT=function(e,t,n,r,o){var a=t.map(function(t){var a=t.props.dataKey;return"number"===n&&a&&WT(e,t,a,r)||BT(e,a,n,o)});if("number"===n)return a.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]},[1/0,-1/0]);var i={};return a.reduce(function(e,t){for(var n=0,r=t.length;n<r;n++)i[t[n]]||(i[t[n]]=!0,e.push(t[n]));return e},[])},$T=function(e,t){return"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t},HT=function(e,t,n,r){if(r)return e.map(function(e){return e.coordinate});var o,a,i=e.map(function(e){return e.coordinate===t&&(o=!0),e.coordinate===n&&(a=!0),e.coordinate});return o||i.push(t),a||i.push(n),i},GT=function(e,t,n){if(!e)return null;var r=e.scale,o=e.duplicateDomain,a=e.type,i=e.range,s="scaleBand"===e.realScaleType?r.bandwidth()/2:2,l=(t||n)&&"category"===a&&r.bandwidth?r.bandwidth()/s:0;return l="angleAxis"===e.axisType&&(null==i?void 0:i.length)>=2?2*xg(i[0]-i[1])*l:l,t&&(e.ticks||e.niceTicks)?(e.ticks||e.niceTicks).map(function(e){var t=o?o.indexOf(e):e;return{coordinate:r(t)+l,value:e,offset:l}}).filter(function(e){return!fg()(e.coordinate)}):e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map(function(e,t){return{coordinate:r(e)+l,value:e,index:t,offset:l}}):r.ticks&&!n?r.ticks(e.tickCount).map(function(e){return{coordinate:r(e)+l,value:e,offset:l}}):r.domain().map(function(e,t){return{coordinate:r(e)+l,value:o?o[e]:e,index:t,offset:l}})},ZT=new WeakMap,qT=function(e,t){if("function"!=typeof t)return e;ZT.has(e)||ZT.set(e,new WeakMap);var n=ZT.get(e);if(n.has(t))return n.get(t);var r=function(){e.apply(void 0,arguments),t.apply(void 0,arguments)};return n.set(t,r),r},KT=1e-4,XT={sign:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var o=0,a=0,i=0;i<t;++i){var s=fg()(e[i][n][1])?e[i][n][0]:e[i][n][1];s>=0?(e[i][n][0]=o,e[i][n][1]=o+s,o=e[i][n][1]):(e[i][n][0]=a,e[i][n][1]=a+s,a=e[i][n][1])}},expand:function(e,t){if((r=e.length)>0){for(var n,r,o,a=0,i=e[0].length;a<i;++a){for(o=n=0;n<r;++n)o+=e[n][a][1]||0;if(o)for(n=0;n<r;++n)e[n][a][1]/=o}CE(e,t)}},none:CE,silhouette:function(e,t){if((n=e.length)>0){for(var n,r=0,o=e[t[0]],a=o.length;r<a;++r){for(var i=0,s=0;i<n;++i)s+=e[i][r][1]||0;o[r][1]+=o[r][0]=-s/2}CE(e,t)}},wiggle:function(e,t){if((o=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,o,a=0,i=1;i<r;++i){for(var s=0,l=0,c=0;s<o;++s){for(var u=e[t[s]],d=u[i][1]||0,m=(d-(u[i-1][1]||0))/2,p=0;p<s;++p){var f=e[t[p]];m+=(f[i][1]||0)-(f[i-1][1]||0)}l+=d,c+=m*d}n[i-1][1]+=n[i-1][0]=a,l&&(a-=c/l)}n[i-1][1]+=n[i-1][0]=a,CE(e,t)}},positive:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var o=0,a=0;a<t;++a){var i=fg()(e[a][n][1])?e[a][n][0]:e[a][n][1];i>=0?(e[a][n][0]=o,e[a][n][1]=o+i,o=e[a][n][1]):(e[a][n][0]=0,e[a][n][1]=0)}}},JT=function(e,t,n){var r=t.map(function(e){return e.props.dataKey}),o=XT[n],a=function(){var e=zv([]),t=LE,n=CE,r=PE;function o(o){var a,i,s=Array.from(e.apply(this,arguments),UE),l=s.length,c=-1;for(const e of o)for(a=0,++c;a<l;++a)(s[a][c]=[0,+r(e,s[a].key,c,o)]).data=e;for(a=0,i=zE(t(s));a<l;++a)s[i[a]].index=a;return n(s,i),s}return o.keys=function(t){return arguments.length?(e="function"==typeof t?t:zv(Array.from(t)),o):e},o.value=function(e){return arguments.length?(r="function"==typeof e?e:zv(+e),o):r},o.order=function(e){return arguments.length?(t=null==e?LE:"function"==typeof e?e:zv(Array.from(e)),o):t},o.offset=function(e){return arguments.length?(n=null==e?CE:e,o):n},o}().keys(r).value(function(e,t){return+YT(e,t,0)}).order(LE).offset(o);return a(e)};function eO(e){var t=e.axis,n=e.ticks,r=e.bandSize,o=e.entry,a=e.index,i=e.dataKey;if("category"===t.type){if(!t.allowDuplicatedCategory&&t.dataKey&&!Mg()(o[t.dataKey])){var s=Ag(n,"value",o[t.dataKey]);if(s)return s.coordinate+r/2}return n[a]?n[a].coordinate+r/2:null}var l=YT(o,Mg()(i)?t.dataKey:i);return Mg()(l)?null:t.scale(l)}var tO=function(e){var t=e.axis,n=e.ticks,r=e.offset,o=e.bandSize,a=e.entry,i=e.index;if("category"===t.type)return n[i]?n[i].coordinate+r:null;var s=YT(a,t.dataKey,t.domain[i]);return Mg()(s)?null:t.scale(s)-o/2+r},nO=function(e,t,n){return Object.keys(e).reduce(function(r,o){var a=e[o].stackedData.reduce(function(e,r){var o=r.slice(t,n+1).reduce(function(e,t){return[BE()(t.concat([e[0]]).filter(Ng)),QE()(t.concat([e[1]]).filter(Ng))]},[1/0,-1/0]);return[Math.min(e[0],o[0]),Math.max(e[1],o[1])]},[1/0,-1/0]);return[Math.min(a[0],r[0]),Math.max(a[1],r[1])]},[1/0,-1/0]).map(function(e){return e===1/0||e===-1/0?0:e})},rO=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,oO=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,aO=function(e,t,n){if(Cg()(e))return e(t,n);if(!Array.isArray(e))return t;var r=[];if(Ng(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(rO.test(e[0])){var o=+rO.exec(e[0])[1];r[0]=t[0]-o}else Cg()(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if(Ng(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(oO.test(e[1])){var a=+oO.exec(e[1])[1];r[1]=t[1]+a}else Cg()(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},iO=function(e,t,n){if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var o=vy()(t,function(e){return e.coordinate}),a=1/0,i=1,s=o.length;i<s;i++){var l=o[i],c=o[i-1];a=Math.min((l.coordinate||0)-(c.coordinate||0),a)}return a===1/0?0:a}return n?void 0:0},sO=function(e,t,n){return e&&e.length?$E()(e,gg()(n,"type.defaultProps.domain"))?t:e:t},lO=function(e,t){var n=e.type.defaultProps?RT(RT({},e.type.defaultProps),e.props):e.props,r=n.dataKey,o=n.name,a=n.unit,i=n.formatter,s=n.tooltipType,l=n.chartType,c=n.hide;return RT(RT({},ay(e,!1)),{},{dataKey:r,unit:a,formatter:i,name:o||r,color:FT(e),value:YT(t,r),type:s,payload:t,chartType:l,hide:c})};function cO(e){return cO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cO(e)}function uO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function dO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uO(Object(n),!0).forEach(function(t){mO(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uO(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function mO(e,t,n){return t=function(e){var t=function(e){if("object"!=cO(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=cO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==cO(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pO=["Webkit","Moz","O","ms"];function fO(e){return fO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fO(e)}function hO(){return hO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hO.apply(this,arguments)}function gO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function yO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gO(Object(n),!0).forEach(function(t){wO(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gO(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function vO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,NO(r.key),r)}}function bO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(bO=function(){return!!e})()}function MO(e){return MO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},MO(e)}function xO(e,t){return xO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xO(e,t)}function wO(e,t,n){return(t=NO(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NO(e){var t=function(e){if("object"!=fO(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=fO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==fO(t)?t:t+""}var jO=function(e){return e.changedTouches&&!!e.changedTouches.length},DO=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),wO(n=function(e,t,n){return t=MO(t),function(e,t){if(t&&("object"===fO(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,bO()?Reflect.construct(t,n||[],MO(e).constructor):t.apply(e,n))}(this,t,[e]),"handleDrag",function(e){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(e):n.state.isSlideMoving&&n.handleSlideDrag(e)}),wO(n,"handleTouchMove",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleDrag(e.changedTouches[0])}),wO(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var e=n.props,t=e.endIndex,r=e.onDragEnd,o=e.startIndex;null==r||r({endIndex:t,startIndex:o})}),n.detachDragEndListener()}),wO(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),wO(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),wO(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),wO(n,"handleSlideDragStart",function(e){var t=jO(e)?e.changedTouches[0]:e;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:t.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xO(e,t)}(t,e),n=t,r=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(e){var n=e.startX,r=e.endX,o=this.state.scaleValues,a=this.props,i=a.gap,s=a.data.length-1,l=Math.min(n,r),c=Math.max(n,r),u=t.getIndexInRange(o,l),d=t.getIndexInRange(o,c);return{startIndex:u-u%i,endIndex:d===s?s:d-d%i}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,o=t.dataKey,a=YT(n[e],o,e);return Cg()(r)?r(a,e):a}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,o=t.endX,a=this.props,i=a.x,s=a.width,l=a.travellerWidth,c=a.startIndex,u=a.endIndex,d=a.onChange,m=e.pageX-n;m>0?m=Math.min(m,i+s-l-o,i+s-l-r):m<0&&(m=Math.max(m,i-r,i-o));var p=this.getIndex({startX:r+m,endX:o+m});p.startIndex===c&&p.endIndex===u||!d||d(p),this.setState({startX:r+m,endX:o+m,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=jO(t)?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:n.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(e){var t=this.state,n=t.brushMoveStartX,r=t.movingTravellerId,o=t.endX,a=t.startX,i=this.state[r],s=this.props,l=s.x,c=s.width,u=s.travellerWidth,d=s.onChange,m=s.gap,p=s.data,f={startX:this.state.startX,endX:this.state.endX},h=e.pageX-n;h>0?h=Math.min(h,l+c-u-i):h<0&&(h=Math.max(h,l-i)),f[r]=i+h;var g=this.getIndex(f),y=g.startIndex,v=g.endIndex;this.setState(wO(wO({},r,i+h),"brushMoveStartX",e.pageX),function(){var e;d&&(e=p.length-1,("startX"===r&&(o>a?y%m===0:v%m===0)||o<a&&v===e||"endX"===r&&(o>a?v%m===0:y%m===0)||o>a&&v===e)&&d(g))})}},{key:"handleTravellerMoveKeyboard",value:function(e,t){var n=this,r=this.state,o=r.scaleValues,a=r.startX,i=r.endX,s=this.state[t],l=o.indexOf(s);if(-1!==l){var c=l+e;if(!(-1===c||c>=o.length)){var u=o[c];"startX"===t&&u>=i||"endX"===t&&u<=a||this.setState(wO({},t,u),function(){n.props.onChange(n.getIndex({startX:n.state.startX,endX:n.state.endX}))})}}}},{key:"renderBackground",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,a=e.fill,i=e.stroke;return s().createElement("rect",{stroke:i,fill:a,x:t,y:n,width:r,height:o})}},{key:"renderPanorama",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,i=e.data,l=e.children,c=e.padding,u=a.Children.only(l);return u?s().cloneElement(u,{x:t,y:n,width:r,height:o,margin:c,compact:!0,data:i}):null}},{key:"renderTravellerLayer",value:function(e,n){var r,o,a=this,i=this.props,l=i.y,c=i.travellerWidth,u=i.height,d=i.traveller,m=i.ariaLabel,p=i.data,f=i.startIndex,h=i.endIndex,g=Math.max(e,this.props.x),y=yO(yO({},ay(this.props,!1)),{},{x:g,y:l,width:c,height:u}),v=m||"Min value: ".concat(null===(r=p[f])||void 0===r?void 0:r.name,", Max value: ").concat(null===(o=p[h])||void 0===o?void 0:o.name);return s().createElement(Dy,{tabIndex:0,role:"slider","aria-label":v,"aria-valuenow":e,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[n],onTouchStart:this.travellerDragStartHandlers[n],onKeyDown:function(e){["ArrowLeft","ArrowRight"].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),a.handleTravellerMoveKeyboard("ArrowRight"===e.key?1:-1,n))},onFocus:function(){a.setState({isTravellerFocused:!0})},onBlur:function(){a.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(d,y))}},{key:"renderSlide",value:function(e,t){var n=this.props,r=n.y,o=n.height,a=n.stroke,i=n.travellerWidth,l=Math.min(e,t)+i,c=Math.max(Math.abs(t-e)-i,0);return s().createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:l,y:r,width:c,height:o})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,n=e.endIndex,r=e.y,o=e.height,a=e.travellerWidth,i=e.stroke,l=this.state,c=l.startX,u=l.endX,d={pointerEvents:"none",fill:i};return s().createElement(Dy,{className:"recharts-brush-texts"},s().createElement(Fx,hO({textAnchor:"end",verticalAnchor:"middle",x:Math.min(c,u)-5,y:r+o/2},d),this.getTextOfTick(t)),s().createElement(Fx,hO({textAnchor:"start",verticalAnchor:"middle",x:Math.max(c,u)+a+5,y:r+o/2},d),this.getTextOfTick(n)))}},{key:"render",value:function(){var e=this.props,t=e.data,n=e.className,r=e.children,o=e.x,a=e.y,i=e.width,l=e.height,c=e.alwaysShowText,u=this.state,d=u.startX,m=u.endX,p=u.isTextActive,f=u.isSlideMoving,h=u.isTravellerMoving,g=u.isTravellerFocused;if(!t||!t.length||!Ng(o)||!Ng(a)||!Ng(i)||!Ng(l)||i<=0||l<=0)return null;var y=Jt("recharts-brush",n),v=1===s().Children.count(r),b=function(e,t){var n=e.replace(/(\w)/,function(e){return e.toUpperCase()}),r=pO.reduce(function(e,r){return dO(dO({},e),{},mO({},r+n,t))},{});return r[e]=t,r}("userSelect","none");return s().createElement(Dy,{className:y,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:b},this.renderBackground(),v&&this.renderPanorama(),this.renderSlide(d,m),this.renderTravellerLayer(d,"startX"),this.renderTravellerLayer(m,"endX"),(p||f||h||g||c)&&this.renderText())}}],o=[{key:"renderDefaultTraveller",value:function(e){var t=e.x,n=e.y,r=e.width,o=e.height,a=e.stroke,i=Math.floor(n+o/2)-1;return s().createElement(s().Fragment,null,s().createElement("rect",{x:t,y:n,width:r,height:o,fill:a,stroke:"none"}),s().createElement("line",{x1:t+1,y1:i,x2:t+r-1,y2:i,fill:"none",stroke:"#fff"}),s().createElement("line",{x1:t+1,y1:i+2,x2:t+r-1,y2:i+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(e,n){return s().isValidElement(e)?s().cloneElement(e,n):Cg()(e)?e(n):t.renderDefaultTraveller(n)}},{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data,r=e.width,o=e.x,a=e.travellerWidth,i=e.updateId,s=e.startIndex,l=e.endIndex;if(n!==t.prevData||i!==t.prevUpdateId)return yO({prevData:n,prevTravellerWidth:a,prevUpdateId:i,prevX:o,prevWidth:r},n&&n.length?function(e){var t=e.data,n=e.startIndex,r=e.endIndex,o=e.x,a=e.width,i=e.travellerWidth;if(!t||!t.length)return{};var s=t.length,l=sx().domain(gy()(0,s)).range([o,o+a-i]),c=l.domain().map(function(e){return l(e)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:l(n),endX:l(r),scale:l,scaleValues:c}}({data:n,width:r,x:o,travellerWidth:a,startIndex:s,endIndex:l}):{scale:null,scaleValues:null});if(t.scale&&(r!==t.prevWidth||o!==t.prevX||a!==t.prevTravellerWidth)){t.scale.range([o,o+r-a]);var c=t.scale.domain().map(function(e){return t.scale(e)});return{prevData:n,prevTravellerWidth:a,prevUpdateId:i,prevX:o,prevWidth:r,startX:t.scale(e.startIndex),endX:t.scale(e.endIndex),scaleValues:c}}return null}},{key:"getIndexInRange",value:function(e,t){for(var n=0,r=e.length-1;r-n>1;){var o=Math.floor((n+r)/2);e[o]>t?r=o:n=o}return t>=e[r]?r:n}}],r&&vO(n.prototype,r),o&&vO(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(a.PureComponent);function EO(e){return EO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},EO(e)}function TO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function OO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?TO(Object(n),!0).forEach(function(t){IO(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TO(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function IO(e,t,n){return t=function(e){var t=function(e){if("object"!=EO(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=EO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==EO(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}wO(DO,"displayName","Brush"),wO(DO,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var AO=Math.PI/180,kO=function(e){return 180*e/Math.PI},SO=function(e,t,n,r){return{x:e+Math.cos(-AO*r)*n,y:t+Math.sin(-AO*r)*n}},_O=function(e,t){var n=t.startAngle,r=t.endAngle,o=Math.floor(n/360),a=Math.floor(r/360);return e+360*Math.min(o,a)},CO=function(e,t){var n=function(e,t){var n=e.x,r=e.y,o=t.cx,a=t.cy,i=function(e,t){var n=e.x,r=e.y,o=t.x,a=t.y;return Math.sqrt(Math.pow(n-o,2)+Math.pow(r-a,2))}({x:n,y:r},{x:o,y:a});if(i<=0)return{radius:i};var s=(n-o)/i,l=Math.acos(s);return r>a&&(l=2*Math.PI-l),{radius:i,angle:kO(l),angleInRadian:l}}({x:e.x,y:e.y},t),r=n.radius,o=n.angle,a=t.innerRadius,i=t.outerRadius;if(r<a||r>i)return!1;if(0===r)return!0;var s,l=function(e){var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),o=Math.floor(n/360),a=Math.min(r,o);return{startAngle:t-360*a,endAngle:n-360*a}}(t),c=l.startAngle,u=l.endAngle,d=o;if(c<=u){for(;d>u;)d-=360;for(;d<c;)d+=360;s=d>=c&&d<=u}else{for(;d>c;)d-=360;for(;d<u;)d+=360;s=d>=u&&d<=c}return s?OO(OO({},t),{},{radius:r,angle:_O(d,t)}):null};function zO(e){return zO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zO(e)}var LO=["offset"];function PO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function UO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function RO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?UO(Object(n),!0).forEach(function(t){QO(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UO(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function QO(e,t,n){return t=function(e){var t=function(e){if("object"!=zO(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=zO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==zO(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YO(){return YO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},YO.apply(this,arguments)}function BO(e){var t,n=e.offset,r=RO({offset:void 0===n?5:n},function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,LO)),o=r.viewBox,i=r.position,l=r.value,c=r.children,u=r.content,d=r.className,m=void 0===d?"":d,p=r.textBreakAll;if(!o||Mg()(l)&&Mg()(c)&&!(0,a.isValidElement)(u)&&!Cg()(u))return null;if((0,a.isValidElement)(u))return(0,a.cloneElement)(u,r);if(Cg()(u)){if(t=(0,a.createElement)(u,r),(0,a.isValidElement)(t))return t}else t=function(e){var t=e.value,n=e.formatter,r=Mg()(e.children)?t:e.children;return Cg()(n)?n(r):r}(r);var f=function(e){return"cx"in e&&Ng(e.cx)}(o),h=ay(r,!0);if(f&&("insideStart"===i||"insideEnd"===i||"end"===i))return function(e,t,n){var r,o,a=e.position,i=e.viewBox,l=e.offset,c=e.className,u=i,d=u.cx,m=u.cy,p=u.innerRadius,f=u.outerRadius,h=u.startAngle,g=u.endAngle,y=u.clockWise,v=(p+f)/2,b=function(e,t){return xg(t-e)*Math.min(Math.abs(t-e),360)}(h,g),M=b>=0?1:-1;"insideStart"===a?(r=h+M*l,o=y):"insideEnd"===a?(r=g-M*l,o=!y):"end"===a&&(r=g+M*l,o=y),o=b<=0?o:!o;var x=SO(d,m,v,r),w=SO(d,m,v,r+359*(o?1:-1)),N="M".concat(x.x,",").concat(x.y,"\n    A").concat(v,",").concat(v,",0,1,").concat(o?0:1,",\n    ").concat(w.x,",").concat(w.y),j=Mg()(e.id)?Eg("recharts-radial-line-"):e.id;return s().createElement("text",YO({},n,{dominantBaseline:"central",className:Jt("recharts-radial-bar-label",c)}),s().createElement("defs",null,s().createElement("path",{id:j,d:N})),s().createElement("textPath",{xlinkHref:"#".concat(j)},t))}(r,t,h);var g=f?function(e){var t=e.viewBox,n=e.offset,r=e.position,o=t,a=o.cx,i=o.cy,s=o.innerRadius,l=o.outerRadius,c=(o.startAngle+o.endAngle)/2;if("outside"===r){var u=SO(a,i,l+n,c),_x=u.x;return{x:_x,y:u.y,textAnchor:_x>=a?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:a,y:i,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:a,y:i,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:a,y:i,textAnchor:"middle",verticalAnchor:"end"};var d=SO(a,i,(s+l)/2,c);return{x:d.x,y:d.y,textAnchor:"middle",verticalAnchor:"middle"}}(r):function(e){var t=e.viewBox,n=e.parentViewBox,r=e.offset,o=e.position,a=t,i=a.x,s=a.y,l=a.width,c=a.height,u=c>=0?1:-1,d=u*r,m=u>0?"end":"start",p=u>0?"start":"end",f=l>=0?1:-1,h=f*r,g=f>0?"end":"start",y=f>0?"start":"end";if("top"===o)return RO(RO({},{x:i+l/2,y:s-u*r,textAnchor:"middle",verticalAnchor:m}),n?{height:Math.max(s-n.y,0),width:l}:{});if("bottom"===o)return RO(RO({},{x:i+l/2,y:s+c+d,textAnchor:"middle",verticalAnchor:p}),n?{height:Math.max(n.y+n.height-(s+c),0),width:l}:{});if("left"===o){var v={x:i-h,y:s+c/2,textAnchor:g,verticalAnchor:"middle"};return RO(RO({},v),n?{width:Math.max(v.x-n.x,0),height:c}:{})}if("right"===o){var b={x:i+l+h,y:s+c/2,textAnchor:y,verticalAnchor:"middle"};return RO(RO({},b),n?{width:Math.max(n.x+n.width-b.x,0),height:c}:{})}var M=n?{width:l,height:c}:{};return"insideLeft"===o?RO({x:i+h,y:s+c/2,textAnchor:y,verticalAnchor:"middle"},M):"insideRight"===o?RO({x:i+l-h,y:s+c/2,textAnchor:g,verticalAnchor:"middle"},M):"insideTop"===o?RO({x:i+l/2,y:s+d,textAnchor:"middle",verticalAnchor:p},M):"insideBottom"===o?RO({x:i+l/2,y:s+c-d,textAnchor:"middle",verticalAnchor:m},M):"insideTopLeft"===o?RO({x:i+h,y:s+d,textAnchor:y,verticalAnchor:p},M):"insideTopRight"===o?RO({x:i+l-h,y:s+d,textAnchor:g,verticalAnchor:p},M):"insideBottomLeft"===o?RO({x:i+h,y:s+c-d,textAnchor:y,verticalAnchor:m},M):"insideBottomRight"===o?RO({x:i+l-h,y:s+c-d,textAnchor:g,verticalAnchor:m},M):Lg()(o)&&(Ng(o.x)||wg(o.x))&&(Ng(o.y)||wg(o.y))?RO({x:i+Tg(o.x,l),y:s+Tg(o.y,c),textAnchor:"end",verticalAnchor:"end"},M):RO({x:i+l/2,y:s+c/2,textAnchor:"middle",verticalAnchor:"middle"},M)}(r);return s().createElement(Fx,YO({className:Jt("recharts-label",m)},h,g,{breakAll:p}),t)}BO.displayName="Label";var FO=function(e){var t=e.cx,n=e.cy,r=e.angle,o=e.startAngle,a=e.endAngle,i=e.r,s=e.radius,l=e.innerRadius,c=e.outerRadius,u=e.x,d=e.y,m=e.top,p=e.left,f=e.width,h=e.height,g=e.clockWise,y=e.labelViewBox;if(y)return y;if(Ng(f)&&Ng(h)){if(Ng(u)&&Ng(d))return{x:u,y:d,width:f,height:h};if(Ng(m)&&Ng(p))return{x:m,y:p,width:f,height:h}}return Ng(u)&&Ng(d)?{x:u,y:d,width:0,height:0}:Ng(t)&&Ng(n)?{cx:t,cy:n,startAngle:o||r||0,endAngle:a||r||0,innerRadius:l||0,outerRadius:c||s||i||0,clockWise:g}:e.viewBox?e.viewBox:{}};BO.parseViewBox=FO,BO.renderCallByParent=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var r=e.children,o=FO(e),i=ty(r,BO).map(function(e,n){return(0,a.cloneElement)(e,{viewBox:t||o,key:"label-".concat(n)})});if(!n)return i;var l,c=function(e,t){return e?!0===e?s().createElement(BO,{key:"label-implicit",viewBox:t}):jg(e)?s().createElement(BO,{key:"label-implicit",viewBox:t,value:e}):(0,a.isValidElement)(e)?e.type===BO?(0,a.cloneElement)(e,{key:"label-implicit",viewBox:t}):s().createElement(BO,{key:"label-implicit",content:e,viewBox:t}):Cg()(e)?s().createElement(BO,{key:"label-implicit",content:e,viewBox:t}):Lg()(e)?s().createElement(BO,YO({viewBox:t},e,{key:"label-implicit"})):null:null}(e.label,t||o);return[c].concat(function(e){if(Array.isArray(e))return PO(e)}(l=i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(l)||function(e,t){if(e){if("string"==typeof e)return PO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?PO(e,t):void 0}}(l)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())};var WO=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t},VO=o(3916),$O=o.n(VO),HO=o(9747),GO=o.n(HO),ZO=function(e){return null};ZO.displayName="Cell";var qO=o(8090),KO=o.n(qO);function XO(e){return XO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},XO(e)}var JO=["valueAccessor"],eI=["data","dataKey","clockWise","id","textBreakAll"];function tI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function nI(){return nI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nI.apply(this,arguments)}function rI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function oI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rI(Object(n),!0).forEach(function(t){aI(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function aI(e,t,n){return t=function(e){var t=function(e){if("object"!=XO(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=XO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==XO(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iI(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var sI=function(e){return Array.isArray(e.value)?KO()(e.value):e.value};function lI(e){var t=e.valueAccessor,n=void 0===t?sI:t,r=iI(e,JO),o=r.data,a=r.dataKey,i=r.clockWise,l=r.id,c=r.textBreakAll,u=iI(r,eI);return o&&o.length?s().createElement(Dy,{className:"recharts-label-list"},o.map(function(e,t){var r=Mg()(a)?n(e,t):YT(e&&e.payload,a),o=Mg()(l)?{}:{id:"".concat(l,"-").concat(t)};return s().createElement(BO,nI({},ay(e,!0),u,o,{parentViewBox:e.parentViewBox,value:r,textBreakAll:c,viewBox:BO.parseViewBox(Mg()(i)?e:oI(oI({},e),{},{clockWise:i})),key:"label-".concat(t),index:t}))})):null}lI.displayName="LabelList",lI.renderCallByParent=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var r=ty(e.children,lI).map(function(e,n){return(0,a.cloneElement)(e,{data:t,key:"labelList-".concat(n)})});if(!n)return r;var o,i=function(e,t){return e?!0===e?s().createElement(lI,{key:"labelList-implicit",data:t}):s().isValidElement(e)||Cg()(e)?s().createElement(lI,{key:"labelList-implicit",data:t,content:e}):Lg()(e)?s().createElement(lI,nI({data:t},e,{key:"labelList-implicit"})):null:null}(e.label,t);return[i].concat(function(e){if(Array.isArray(e))return tI(e)}(o=r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||function(e,t){if(e){if("string"==typeof e)return tI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?tI(e,t):void 0}}(o)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())};var cI=o(1331),uI=o.n(cI),dI=o(3812),mI=o.n(dI);function pI(e){return pI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pI(e)}function fI(){return fI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fI.apply(this,arguments)}function hI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function gI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function yI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gI(Object(n),!0).forEach(function(t){vI(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function vI(e,t,n){return t=function(e){var t=function(e){if("object"!=pI(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=pI(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==pI(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bI=function(e,t,n,r,o){var a,i=n-r;return a="M ".concat(e,",").concat(t),a+="L ".concat(e+n,",").concat(t),a+="L ".concat(e+n-i/2,",").concat(t+o),(a+="L ".concat(e+n-i/2-r,",").concat(t+o))+"L ".concat(e,",").concat(t," Z")},MI={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},xI=function(e){var t=yI(yI({},MI),e),n=(0,a.useRef)(),r=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return hI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hI(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,a.useState)(-1),2),o=r[0],i=r[1];(0,a.useEffect)(function(){if(n.current&&n.current.getTotalLength)try{var e=n.current.getTotalLength();e&&i(e)}catch(e){}},[]);var l=t.x,c=t.y,u=t.upperWidth,d=t.lowerWidth,m=t.height,p=t.className,f=t.animationEasing,h=t.animationDuration,g=t.animationBegin,y=t.isUpdateAnimationActive;if(l!==+l||c!==+c||u!==+u||d!==+d||m!==+m||0===u&&0===d||0===m)return null;var v=Jt("recharts-trapezoid",p);return y?s().createElement(YM,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:m,x:l,y:c},to:{upperWidth:u,lowerWidth:d,height:m,x:l,y:c},duration:h,animationEasing:f,isActive:y},function(e){var r=e.upperWidth,a=e.lowerWidth,i=e.height,l=e.x,c=e.y;return s().createElement(YM,{canBegin:o>0,from:"0px ".concat(-1===o?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:h,easing:f},s().createElement("path",fI({},ay(t,!0),{className:v,d:bI(l,c,r,a,i),ref:n})))}):s().createElement("g",null,s().createElement("path",fI({},ay(t,!0),{className:v,d:bI(l,c,u,d,m)})))};function wI(e){return wI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wI(e)}function NI(){return NI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},NI.apply(this,arguments)}function jI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function DI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jI(Object(n),!0).forEach(function(t){EI(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function EI(e,t,n){return t=function(e){var t=function(e){if("object"!=wI(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=wI(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==wI(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var TI=function(e){var t=e.cx,n=e.cy,r=e.radius,o=e.angle,a=e.sign,i=e.isExternal,s=e.cornerRadius,l=e.cornerIsExternal,c=s*(i?1:-1)+r,u=Math.asin(s/c)/AO,d=l?o:o+a*u,m=l?o-a*u:o;return{center:SO(t,n,c,d),circleTangency:SO(t,n,r,d),lineTangency:SO(t,n,c*Math.cos(u*AO),m),theta:u}},OI=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,a=e.startAngle,i=function(e,t){return xg(t-e)*Math.min(Math.abs(t-e),359.999)}(a,e.endAngle),s=a+i,l=SO(t,n,o,a),c=SO(t,n,o,s),u="M ".concat(l.x,",").concat(l.y,"\n    A ").concat(o,",").concat(o,",0,\n    ").concat(+(Math.abs(i)>180),",").concat(+(a>s),",\n    ").concat(c.x,",").concat(c.y,"\n  ");if(r>0){var d=SO(t,n,r,a),m=SO(t,n,r,s);u+="L ".concat(m.x,",").concat(m.y,"\n            A ").concat(r,",").concat(r,",0,\n            ").concat(+(Math.abs(i)>180),",").concat(+(a<=s),",\n            ").concat(d.x,",").concat(d.y," Z")}else u+="L ".concat(t,",").concat(n," Z");return u},II={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},AI=function(e){var t=DI(DI({},II),e),n=t.cx,r=t.cy,o=t.innerRadius,a=t.outerRadius,i=t.cornerRadius,l=t.forceCornerRadius,c=t.cornerIsExternal,u=t.startAngle,d=t.endAngle,m=t.className;if(a<o||u===d)return null;var p,f=Jt("recharts-sector",m),h=a-o,g=Tg(i,h,0,!0);return p=g>0&&Math.abs(u-d)<360?function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,a=e.cornerRadius,i=e.forceCornerRadius,s=e.cornerIsExternal,l=e.startAngle,c=e.endAngle,u=xg(c-l),d=TI({cx:t,cy:n,radius:o,angle:l,sign:u,cornerRadius:a,cornerIsExternal:s}),m=d.circleTangency,p=d.lineTangency,f=d.theta,h=TI({cx:t,cy:n,radius:o,angle:c,sign:-u,cornerRadius:a,cornerIsExternal:s}),g=h.circleTangency,y=h.lineTangency,v=h.theta,b=s?Math.abs(l-c):Math.abs(l-c)-f-v;if(b<0)return i?"M ".concat(p.x,",").concat(p.y,"\n        a").concat(a,",").concat(a,",0,0,1,").concat(2*a,",0\n        a").concat(a,",").concat(a,",0,0,1,").concat(2*-a,",0\n      "):OI({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:l,endAngle:c});var M="M ".concat(p.x,",").concat(p.y,"\n    A").concat(a,",").concat(a,",0,0,").concat(+(u<0),",").concat(m.x,",").concat(m.y,"\n    A").concat(o,",").concat(o,",0,").concat(+(b>180),",").concat(+(u<0),",").concat(g.x,",").concat(g.y,"\n    A").concat(a,",").concat(a,",0,0,").concat(+(u<0),",").concat(y.x,",").concat(y.y,"\n  ");if(r>0){var x=TI({cx:t,cy:n,radius:r,angle:l,sign:u,isExternal:!0,cornerRadius:a,cornerIsExternal:s}),w=x.circleTangency,N=x.lineTangency,j=x.theta,D=TI({cx:t,cy:n,radius:r,angle:c,sign:-u,isExternal:!0,cornerRadius:a,cornerIsExternal:s}),E=D.circleTangency,T=D.lineTangency,O=D.theta,I=s?Math.abs(l-c):Math.abs(l-c)-j-O;if(I<0&&0===a)return"".concat(M,"L").concat(t,",").concat(n,"Z");M+="L".concat(T.x,",").concat(T.y,"\n      A").concat(a,",").concat(a,",0,0,").concat(+(u<0),",").concat(E.x,",").concat(E.y,"\n      A").concat(r,",").concat(r,",0,").concat(+(I>180),",").concat(+(u>0),",").concat(w.x,",").concat(w.y,"\n      A").concat(a,",").concat(a,",0,0,").concat(+(u<0),",").concat(N.x,",").concat(N.y,"Z")}else M+="L".concat(t,",").concat(n,"Z");return M}({cx:n,cy:r,innerRadius:o,outerRadius:a,cornerRadius:Math.min(g,h/2),forceCornerRadius:l,cornerIsExternal:c,startAngle:u,endAngle:d}):OI({cx:n,cy:r,innerRadius:o,outerRadius:a,startAngle:u,endAngle:d}),s().createElement("path",NI({},ay(t,!0),{className:f,d:p,role:"img"}))},kI=["option","shapeType","propTransformer","activeClassName","isActive"];function SI(e){return SI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},SI(e)}function _I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function CI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_I(Object(n),!0).forEach(function(t){zI(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_I(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function zI(e,t,n){return t=function(e){var t=function(e){if("object"!=SI(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=SI(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==SI(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LI(e,t){return CI(CI({},t),e)}function PI(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return s().createElement(KM,n);case"trapezoid":return s().createElement(xI,n);case"sector":return s().createElement(AI,n);case"symbols":if(function(e){return"symbols"===e}(t))return s().createElement(Kv,n);break;default:return null}}function UI(e){var t,n=e.option,r=e.shapeType,o=e.propTransformer,i=void 0===o?LI:o,l=e.activeClassName,c=void 0===l?"recharts-active-shape":l,u=e.isActive,d=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,kI);if((0,a.isValidElement)(n))t=(0,a.cloneElement)(n,CI(CI({},d),function(e){return(0,a.isValidElement)(e)?e.props:e}(n)));else if(Cg()(n))t=n(d);else if(uI()(n)&&!mI()(n)){var m=i(n,d);t=s().createElement(PI,{shapeType:r,elementProps:m})}else{var p=d;t=s().createElement(PI,{shapeType:r,elementProps:p})}return u?s().createElement(Dy,{className:c},t):t}function RI(e,t){return null!=t&&"trapezoids"in e.props}function QI(e,t){return null!=t&&"sectors"in e.props}function YI(e,t){return null!=t&&"points"in e.props}function BI(e,t){var n,r,o=e.x===(null==t||null===(n=t.labelViewBox)||void 0===n?void 0:n.x)||e.x===t.x,a=e.y===(null==t||null===(r=t.labelViewBox)||void 0===r?void 0:r.y)||e.y===t.y;return o&&a}function FI(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function WI(e,t){var n=e.x===t.x,r=e.y===t.y,o=e.z===t.z;return n&&r&&o}function VI(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,o=function(e,t){var n;return RI(e,t)?n="trapezoids":QI(e,t)?n="sectors":YI(e,t)&&(n="points"),n}(n,t),a=function(e,t){var n,r;return RI(e,t)?null===(n=t.tooltipPayload)||void 0===n||null===(n=n[0])||void 0===n||null===(n=n.payload)||void 0===n?void 0:n.payload:QI(e,t)?null===(r=t.tooltipPayload)||void 0===r||null===(r=r[0])||void 0===r||null===(r=r.payload)||void 0===r?void 0:r.payload:YI(e,t)?t.payload:{}}(n,t),i=r.filter(function(e,r){var i=$E()(a,e),s=n.props[o].filter(function(e){var r=function(e,t){var n;return RI(e,t)?n=BI:QI(e,t)?n=FI:YI(e,t)&&(n=WI),n}(n,t);return r(e,t)}),l=n.props[o].indexOf(s[s.length-1]);return i&&r===l});return r.indexOf(i[i.length-1])}var $I=["x","y"];function HI(e){return HI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},HI(e)}function GI(){return GI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},GI.apply(this,arguments)}function ZI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function qI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ZI(Object(n),!0).forEach(function(t){KI(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function KI(e,t,n){return t=function(e){var t=function(e){if("object"!=HI(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=HI(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==HI(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XI(e,t){var n=e.x,r=e.y,o=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,$I),a="".concat(n),i=parseInt(a,10),s="".concat(r),l=parseInt(s,10),c="".concat(t.height||o.height),u=parseInt(c,10),d="".concat(t.width||o.width),m=parseInt(d,10);return qI(qI(qI(qI(qI({},t),o),i?{x:i}:{}),l?{y:l}:{}),{},{height:u,width:m,name:t.name,radius:t.radius})}function JI(e){return s().createElement(UI,GI({shapeType:"rectangle",propTransformer:XI,activeClassName:"recharts-active-bar"},e))}var eA,tA=["value","background"];function nA(e){return nA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nA(e)}function rA(){return rA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rA.apply(this,arguments)}function oA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function aA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oA(Object(n),!0).forEach(function(t){uA(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oA(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function iA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,dA(r.key),r)}}function sA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(sA=function(){return!!e})()}function lA(e){return lA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},lA(e)}function cA(e,t){return cA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},cA(e,t)}function uA(e,t,n){return(t=dA(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dA(e){var t=function(e){if("object"!=nA(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=nA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==nA(t)?t:t+""}var mA=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return uA(e=function(e,t,n){return t=lA(t),function(e,t){if(t&&("object"===nA(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,sA()?Reflect.construct(t,n||[],lA(e).constructor):t.apply(e,n))}(this,t,[].concat(r)),"state",{isAnimationFinished:!1}),uA(e,"id",Eg("recharts-bar-")),uA(e,"handleAnimationEnd",function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),t&&t()}),uA(e,"handleAnimationStart",function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),t&&t()}),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cA(e,t)}(t,e),n=t,r=[{key:"renderRectanglesStatically",value:function(e){var t=this,n=this.props,r=n.shape,o=n.dataKey,a=n.activeIndex,i=n.activeBar,l=ay(this.props,!1);return e&&e.map(function(e,n){var c=n===a,u=c?i:r,d=aA(aA(aA({},l),e),{},{isActive:c,option:u,index:n,dataKey:o,onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd});return s().createElement(Dy,rA({className:"recharts-bar-rectangle"},Vg(t.props,e,n),{key:"rectangle-".concat(null==e?void 0:e.x,"-").concat(null==e?void 0:e.y,"-").concat(null==e?void 0:e.value,"-").concat(n)}),s().createElement(JI,d))})}},{key:"renderRectanglesWithAnimation",value:function(){var e=this,t=this.props,n=t.data,r=t.layout,o=t.isAnimationActive,a=t.animationBegin,i=t.animationDuration,l=t.animationEasing,c=t.animationId,u=this.state.prevData;return s().createElement(YM,{begin:a,duration:i,isActive:o,easing:l,from:{t:0},to:{t:1},key:"bar-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(t){var o=t.t,a=n.map(function(e,t){var n=u&&u[t];if(n){var a=Ig(n.x,e.x),i=Ig(n.y,e.y),s=Ig(n.width,e.width),l=Ig(n.height,e.height);return aA(aA({},e),{},{x:a(o),y:i(o),width:s(o),height:l(o)})}if("horizontal"===r){var c=Ig(0,e.height)(o);return aA(aA({},e),{},{y:e.y+e.height-c,height:c})}var d=Ig(0,e.width)(o);return aA(aA({},e),{},{width:d})});return s().createElement(Dy,null,e.renderRectanglesStatically(a))})}},{key:"renderRectangles",value:function(){var e=this.props,t=e.data,n=e.isAnimationActive,r=this.state.prevData;return!(n&&t&&t.length)||r&&$E()(r,t)?this.renderRectanglesStatically(t):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var e=this,t=this.props,n=t.data,r=t.dataKey,o=t.activeIndex,a=ay(this.props.background,!1);return n.map(function(t,n){t.value;var i=t.background,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,tA);if(!i)return null;var c=aA(aA(aA(aA(aA({},l),{},{fill:"#eee"},i),a),Vg(e.props,t,n)),{},{onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd,dataKey:r,index:n,className:"recharts-bar-background-rectangle"});return s().createElement(JI,rA({key:"background-bar-".concat(n),option:e.props.background,isActive:n===o},c))})}},{key:"renderErrorBar",value:function(e,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.data,o=n.xAxis,a=n.yAxis,i=n.layout,l=ty(n.children,IT);if(!l)return null;var c="vertical"===i?r[0].height/2:r[0].width/2,u=function(e,t){var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:YT(e,t)}},d={clipPath:e?"url(#clipPath-".concat(t,")"):null};return s().createElement(Dy,d,l.map(function(e){return s().cloneElement(e,{key:"error-bar-".concat(t,"-").concat(e.props.dataKey),data:r,xAxis:o,yAxis:a,layout:i,offset:c,dataPointFormatter:u})}))}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.data,r=e.className,o=e.xAxis,a=e.yAxis,i=e.left,l=e.top,c=e.width,u=e.height,d=e.isAnimationActive,m=e.background,p=e.id;if(t||!n||!n.length)return null;var f=this.state.isAnimationFinished,h=Jt("recharts-bar",r),g=o&&o.allowDataOverflow,y=a&&a.allowDataOverflow,v=g||y,b=Mg()(p)?this.id:p;return s().createElement(Dy,{className:h},g||y?s().createElement("defs",null,s().createElement("clipPath",{id:"clipPath-".concat(b)},s().createElement("rect",{x:g?i:i-c/2,y:y?l:l-u/2,width:g?c:2*c,height:y?u:2*u}))):null,s().createElement(Dy,{className:"recharts-bar-rectangles",clipPath:v?"url(#clipPath-".concat(b,")"):null},m?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(v,b),(!d||f)&&lI.renderCallByParent(this.props,n))}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curData:e.data,prevData:t.curData}:e.data!==t.curData?{curData:e.data}:null}}],r&&iA(n.prototype,r),o&&iA(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(a.PureComponent);function pA(e){return pA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pA(e)}function fA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,vA(r.key),r)}}function hA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function gA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hA(Object(n),!0).forEach(function(t){yA(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hA(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function yA(e,t,n){return(t=vA(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vA(e){var t=function(e){if("object"!=pA(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=pA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==pA(t)?t:t+""}eA=mA,uA(mA,"displayName","Bar"),uA(mA,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!qy.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),uA(mA,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,o=e.bandSize,a=e.xAxis,i=e.yAxis,s=e.xAxisTicks,l=e.yAxisTicks,c=e.stackedData,u=e.dataStartIndex,d=e.displayedData,m=e.offset,p=function(e,t){if(!e)return null;for(var n=0,r=e.length;n<r;n++)if(e[n].item===t)return e[n].position;return null}(r,n);if(!p)return null;var f=t.layout,h=n.type.defaultProps,g=void 0!==h?aA(aA({},h),n.props):n.props,y=g.dataKey,v=g.children,b=g.minPointSize,M="horizontal"===f?i:a,x=c?M.scale.domain():null,w=function(e){var t=e.numericAxis,n=t.scale.domain();if("number"===t.type){var r=Math.min(n[0],n[1]),o=Math.max(n[0],n[1]);return r<=0&&o>=0?0:o<0?o:r}return n[0]}({numericAxis:M}),N=ty(v,ZO),j=d.map(function(e,t){var r,d,m,h,g,v;c?r=function(e,t){if(!t||2!==t.length||!Ng(t[0])||!Ng(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),o=[e[0],e[1]];return(!Ng(e[0])||e[0]<n)&&(o[0]=n),(!Ng(e[1])||e[1]>r)&&(o[1]=r),o[0]>r&&(o[0]=r),o[1]<n&&(o[1]=n),o}(c[u+t],x):(r=YT(e,y),Array.isArray(r)||(r=[w,r]));var M=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(n,r){if("number"==typeof e)return e;var o=Ng(n)||function(e){return Mg()(e)}(n);return o?e(n,r):(o||by(!1),t)}}(b,eA.defaultProps.minPointSize)(r[1],t);if("horizontal"===f){var j,D=[i.scale(r[0]),i.scale(r[1])],E=D[0],T=D[1];d=tO({axis:a,ticks:s,bandSize:o,offset:p.offset,entry:e,index:t}),m=null!==(j=null!=T?T:E)&&void 0!==j?j:void 0,h=p.size;var O=E-T;if(g=Number.isNaN(O)?0:O,v={x:d,y:i.y,width:h,height:i.height},Math.abs(M)>0&&Math.abs(g)<Math.abs(M)){var I=xg(g||M)*(Math.abs(M)-Math.abs(g));m-=I,g+=I}}else{var A=[a.scale(r[0]),a.scale(r[1])],k=A[0],S=A[1];d=k,m=tO({axis:i,ticks:l,bandSize:o,offset:p.offset,entry:e,index:t}),h=S-k,g=p.size,v={x:a.x,y:m,width:a.width,height:g},Math.abs(M)>0&&Math.abs(h)<Math.abs(M)&&(h+=xg(h||M)*(Math.abs(M)-Math.abs(h)))}return aA(aA(aA({},e),{},{x:d,y:m,width:h,height:g,value:c?r:r[1],payload:e,background:v},N&&N[t]&&N[t].props),{},{tooltipPayload:[lO(n,e)],tooltipPosition:{x:d+h/2,y:m+g/2}})});return aA({data:j,layout:f},m)});var bA=function(e,t){var n=e.x,r=e.y,o=t.x,a=t.y;return{x:Math.min(n,o),y:Math.min(r,a),width:Math.abs(o-n),height:Math.abs(a-r)}},MA=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scale=t}return t=e,n=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware,r=t.position;if(void 0!==e){if(r)switch(r){case"start":default:return this.scale(e);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+o;case"end":var a=this.bandwidth?this.bandwidth():0;return this.scale(e)+a}if(n){var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+i}return this.scale(e)}}},{key:"isInRange",value:function(e){var t=this.range(),n=t[0],r=t[t.length-1];return n<=r?e>=n&&e<=r:e>=r&&e<=n}}],r=[{key:"create",value:function(t){return new e(t)}}],n&&fA(t.prototype,n),r&&fA(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();yA(MA,"EPS",1e-4);var xA=function(e){var t=Object.keys(e).reduce(function(t,n){return gA(gA({},t),{},yA({},n,MA.create(e[n])))},{});return gA(gA({},t),{},{apply:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,o=n.position;return $O()(e,function(e,n){return t[n].apply(e,{bandAware:r,position:o})})},isInRange:function(e){return GO()(e,function(e,n){return t[n].isInRange(e)})}})};function wA(){return wA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wA.apply(this,arguments)}function NA(e){return NA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},NA(e)}function jA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function DA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jA(Object(n),!0).forEach(function(t){AA(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jA(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function EA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,kA(r.key),r)}}function TA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(TA=function(){return!!e})()}function OA(e){return OA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},OA(e)}function IA(e,t){return IA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},IA(e,t)}function AA(e,t,n){return(t=kA(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kA(e){var t=function(e){if("object"!=NA(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=NA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==NA(t)?t:t+""}var SA=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=OA(t),function(e,t){if(t&&("object"===NA(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,TA()?Reflect.construct(t,n||[],OA(e).constructor):t.apply(e,n))}(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&IA(e,t)}(t,e),n=t,r=[{key:"render",value:function(){var e=this.props,n=e.x,r=e.y,o=e.r,a=e.alwaysShow,i=e.clipPathId,l=jg(n),c=jg(r);if(Sg(void 0===a,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!l||!c)return null;var u=function(e){var t=e.x,n=e.y,r=e.xAxis,o=e.yAxis,a=xA({x:r.scale,y:o.scale}),i=a.apply({x:t,y:n},{bandAware:!0});return WO(e,"discard")&&!a.isInRange(i)?null:i}(this.props);if(!u)return null;var d=u.x,m=u.y,p=this.props,f=p.shape,h=p.className,g=DA(DA({clipPath:WO(this.props,"hidden")?"url(#".concat(i,")"):void 0},ay(this.props,!0)),{},{cx:d,cy:m});return s().createElement(Dy,{className:Jt("recharts-reference-dot",h)},t.renderDot(f,g),BO.renderCallByParent(this.props,{x:d-o,y:m-o,width:2*o,height:2*o}))}}],r&&EA(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(s().Component);AA(SA,"displayName","ReferenceDot"),AA(SA,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1}),AA(SA,"renderDot",function(e,t){return s().isValidElement(e)?s().cloneElement(e,t):Cg()(e)?e(t):s().createElement(wb,wA({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"}))});var _A=o(2426),CA=o.n(_A),zA=o(7309),LA=o.n(zA),PA=o(104),UA=o.n(PA)()(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),RA=(0,a.createContext)(void 0),QA=(0,a.createContext)(void 0),YA=(0,a.createContext)(void 0),BA=(0,a.createContext)({}),FA=(0,a.createContext)(void 0),WA=(0,a.createContext)(0),VA=(0,a.createContext)(0),$A=function(e){var t=e.state,n=t.xAxisMap,r=t.yAxisMap,o=t.offset,a=e.clipPathId,i=e.children,l=e.width,c=e.height,u=UA(o);return s().createElement(RA.Provider,{value:n},s().createElement(QA.Provider,{value:r},s().createElement(BA.Provider,{value:o},s().createElement(YA.Provider,{value:u},s().createElement(FA.Provider,{value:a},s().createElement(WA.Provider,{value:c},s().createElement(VA.Provider,{value:l},i)))))))},HA=function(e){var t=(0,a.useContext)(RA);null==t&&by(!1);var n=t[e];return null==n&&by(!1),n},GA=function(e){var t=(0,a.useContext)(QA);null==t&&by(!1);var n=t[e];return null==n&&by(!1),n},ZA=function(){return(0,a.useContext)(VA)},qA=function(){return(0,a.useContext)(WA)};function KA(e){return KA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},KA(e)}function XA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ak(r.key),r)}}function JA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(JA=function(){return!!e})()}function ek(e){return ek=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ek(e)}function tk(e,t){return tk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tk(e,t)}function nk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function rk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nk(Object(n),!0).forEach(function(t){ok(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nk(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ok(e,t,n){return(t=ak(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ak(e){var t=function(e){if("object"!=KA(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=KA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==KA(t)?t:t+""}function ik(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function sk(){return sk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sk.apply(this,arguments)}function lk(e){var t=e.x,n=e.y,r=e.segment,o=e.xAxisId,i=e.yAxisId,l=e.shape,c=e.className,u=e.alwaysShow,d=(0,a.useContext)(FA),m=HA(o),p=GA(i),f=(0,a.useContext)(YA);if(!d||!f)return null;Sg(void 0===u,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=function(e,t,n,r,o,a,i,s,l){var c=o.x,u=o.y,d=o.width,m=o.height;if(n){var p=l.y,f=e.y.apply(p,{position:a});if(WO(l,"discard")&&!e.y.isInRange(f))return null;var h=[{x:c+d,y:f},{x:c,y:f}];return"left"===s?h.reverse():h}if(t){var g=l.x,y=e.x.apply(g,{position:a});if(WO(l,"discard")&&!e.x.isInRange(y))return null;var v=[{x:y,y:u+m},{x:y,y:u}];return"top"===i?v.reverse():v}if(r){var b=l.segment.map(function(t){return e.apply(t,{position:a})});return WO(l,"discard")&&CA()(b,function(t){return!e.isInRange(t)})?null:b}return null}(xA({x:m.scale,y:p.scale}),jg(t),jg(n),r&&2===r.length,f,e.position,m.orientation,p.orientation,e);if(!h)return null;var g,y=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ik(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ik(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(h,2),v=y[0],b=v.x,M=v.y,x=y[1],w=x.x,N=x.y,j=rk(rk({clipPath:WO(e,"hidden")?"url(#".concat(d,")"):void 0},ay(e,!0)),{},{x1:b,y1:M,x2:w,y2:N});return s().createElement(Dy,{className:Jt("recharts-reference-line",c)},function(e,t){return s().isValidElement(e)?s().cloneElement(e,t):Cg()(e)?e(t):s().createElement("line",sk({},t,{className:"recharts-reference-line-line"}))}(l,j),BO.renderCallByParent(e,bA({x:(g={x1:b,y1:M,x2:w,y2:N}).x1,y:g.y1},{x:g.x2,y:g.y2})))}var ck=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=ek(t),function(e,t){if(t&&("object"===KA(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,JA()?Reflect.construct(t,n||[],ek(e).constructor):t.apply(e,n))}(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tk(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){return s().createElement(lk,this.props)}}])&&XA(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(s().Component);function uk(){return uk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uk.apply(this,arguments)}function dk(e){return dk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dk(e)}function mk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function pk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mk(Object(n),!0).forEach(function(t){vk(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mk(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,bk(r.key),r)}}function hk(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(hk=function(){return!!e})()}function gk(e){return gk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},gk(e)}function yk(e,t){return yk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},yk(e,t)}function vk(e,t,n){return(t=bk(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bk(e){var t=function(e){if("object"!=dk(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=dk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==dk(t)?t:t+""}ok(ck,"displayName","ReferenceLine"),ok(ck,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});var Mk=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=gk(t),function(e,t){if(t&&("object"===dk(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,hk()?Reflect.construct(t,n||[],gk(e).constructor):t.apply(e,n))}(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yk(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){var e=this.props,n=e.x1,r=e.x2,o=e.y1,a=e.y2,i=e.className,l=e.alwaysShow,c=e.clipPathId;Sg(void 0===l,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var u=jg(n),d=jg(r),m=jg(o),p=jg(a),f=this.props.shape;if(!(u||d||m||p||f))return null;var h=function(e,t,n,r,o){var a=o.x1,i=o.x2,s=o.y1,l=o.y2,c=o.xAxis,u=o.yAxis;if(!c||!u)return null;var d=xA({x:c.scale,y:u.scale}),m={x:e?d.x.apply(a,{position:"start"}):d.x.rangeMin,y:n?d.y.apply(s,{position:"start"}):d.y.rangeMin},p={x:t?d.x.apply(i,{position:"end"}):d.x.rangeMax,y:r?d.y.apply(l,{position:"end"}):d.y.rangeMax};return!WO(o,"discard")||d.isInRange(m)&&d.isInRange(p)?bA(m,p):null}(u,d,m,p,this.props);if(!h&&!f)return null;var g=WO(this.props,"hidden")?"url(#".concat(c,")"):void 0;return s().createElement(Dy,{className:Jt("recharts-reference-area",i)},t.renderRect(f,pk(pk({clipPath:g},ay(this.props,!0)),h)),BO.renderCallByParent(this.props,h))}}])&&fk(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(s().Component);function xk(e){return function(e){if(Array.isArray(e))return wk(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return wk(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wk(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wk(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}vk(Mk,"displayName","ReferenceArea"),vk(Mk,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1}),vk(Mk,"renderRect",function(e,t){return s().isValidElement(e)?s().cloneElement(e,t):Cg()(e)?e(t):s().createElement(KM,uk({},t,{className:"recharts-reference-area-rect"}))});var Nk=function(e,t,n,r,o){var a=ty(e,ck),i=ty(e,SA),s=[].concat(xk(a),xk(i)),l=ty(e,Mk),c="".concat(r,"Id"),u=r[0],d=t;if(s.length&&(d=s.reduce(function(e,t){if(t.props[c]===n&&WO(t.props,"extendDomain")&&Ng(t.props[u])){var r=t.props[u];return[Math.min(e[0],r),Math.max(e[1],r)]}return e},d)),l.length){var m="".concat(u,"1"),p="".concat(u,"2");d=l.reduce(function(e,t){if(t.props[c]===n&&WO(t.props,"extendDomain")&&Ng(t.props[m])&&Ng(t.props[p])){var r=t.props[m],o=t.props[p];return[Math.min(e[0],r,o),Math.max(e[1],r,o)]}return e},d)}return o&&o.length&&(d=o.reduce(function(e,t){return Ng(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e},d)),d},jk=o(1747),Dk=new(o.n(jk)()),Ek="recharts.syncMouseEvents";function Tk(e){return Tk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tk(e)}function Ok(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ak(r.key),r)}}function Ik(e,t,n){return(t=Ak(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ak(e){var t=function(e){if("object"!=Tk(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Tk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Tk(t)?t:t+""}var kk=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Ik(this,"activeIndex",0),Ik(this,"coordinateList",[]),Ik(this,"layout","horizontal")},t=[{key:"setDetails",value:function(e){var t,n=e.coordinateList,r=void 0===n?null:n,o=e.container,a=void 0===o?null:o,i=e.layout,s=void 0===i?null:i,l=e.offset,c=void 0===l?null:l,u=e.mouseHandlerCallback,d=void 0===u?null:u;this.coordinateList=null!==(t=null!=r?r:this.coordinateList)&&void 0!==t?t:[],this.container=null!=a?a:this.container,this.layout=null!=s?s:this.layout,this.offset=null!=c?c:this.offset,this.mouseHandlerCallback=null!=d?d:this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(e){if(0!==this.coordinateList.length)switch(e.key){case"ArrowRight":if("horizontal"!==this.layout)return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break;case"ArrowLeft":if("horizontal"!==this.layout)return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse()}}},{key:"setIndex",value:function(e){this.activeIndex=e}},{key:"spoofMouse",value:function(){var e,t;if("horizontal"===this.layout&&0!==this.coordinateList.length){var n=this.container.getBoundingClientRect(),r=n.x,o=n.y,a=n.height,i=this.coordinateList[this.activeIndex].coordinate,s=(null===(e=window)||void 0===e?void 0:e.scrollX)||0,l=(null===(t=window)||void 0===t?void 0:t.scrollY)||0,c=r+i+s,u=o+this.offset.top+a/2+l;this.mouseHandlerCallback({pageX:c,pageY:u})}}}],t&&Ok(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function Sk(){}function _k(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Ck(e){this._context=e}function zk(e){this._context=e}function Lk(e){this._context=e}Ck.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:_k(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:_k(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},zk.prototype={areaStart:Sk,areaEnd:Sk,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:_k(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Lk.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:_k(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};class Pk{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}function Uk(e){this._context=e}function Rk(e){this._context=e}function Qk(e){return new Rk(e)}function Yk(e){return e<0?-1:1}function Bk(e,t,n){var r=e._x1-e._x0,o=t-e._x1,a=(e._y1-e._y0)/(r||o<0&&-0),i=(n-e._y1)/(o||r<0&&-0),s=(a*o+i*r)/(r+o);return(Yk(a)+Yk(i))*Math.min(Math.abs(a),Math.abs(i),.5*Math.abs(s))||0}function Fk(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Wk(e,t,n){var r=e._x0,o=e._y0,a=e._x1,i=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,o+s*t,a-s,i-s*n,a,i)}function Vk(e){this._context=e}function $k(e){this._context=new Hk(e)}function Hk(e){this._context=e}function Gk(e){this._context=e}function Zk(e){var t,n,r=e.length-1,o=new Array(r),a=new Array(r),i=new Array(r);for(o[0]=0,a[0]=2,i[0]=e[0]+2*e[1],t=1;t<r-1;++t)o[t]=1,a[t]=4,i[t]=4*e[t]+2*e[t+1];for(o[r-1]=2,a[r-1]=7,i[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=o[t]/a[t-1],a[t]-=n,i[t]-=n*i[t-1];for(o[r-1]=i[r-1]/a[r-1],t=r-2;t>=0;--t)o[t]=(i[t]-o[t+1])/a[t];for(a[r-1]=(e[r]+o[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-o[t+1];return[o,a]}function qk(e,t){this._context=e,this._t=t}function Kk(e){return e[0]}function Xk(e){return e[1]}function Jk(e,t){var n=zv(!0),r=null,o=Qk,a=null,i=Bv(s);function s(s){var l,c,u,d=(s=zE(s)).length,m=!1;for(null==r&&(a=o(u=i())),l=0;l<=d;++l)!(l<d&&n(c=s[l],l,s))===m&&((m=!m)?a.lineStart():a.lineEnd()),m&&a.point(+e(c,l,s),+t(c,l,s));if(u)return a=null,u+""||null}return e="function"==typeof e?e:void 0===e?Kk:zv(e),t="function"==typeof t?t:void 0===t?Xk:zv(t),s.x=function(t){return arguments.length?(e="function"==typeof t?t:zv(+t),s):e},s.y=function(e){return arguments.length?(t="function"==typeof e?e:zv(+e),s):t},s.defined=function(e){return arguments.length?(n="function"==typeof e?e:zv(!!e),s):n},s.curve=function(e){return arguments.length?(o=e,null!=r&&(a=o(r)),s):o},s.context=function(e){return arguments.length?(null==e?r=a=null:a=o(r=e),s):r},s}function eS(e,t,n){var r=null,o=zv(!0),a=null,i=Qk,s=null,l=Bv(c);function c(c){var u,d,m,p,f,h=(c=zE(c)).length,g=!1,y=new Array(h),v=new Array(h);for(null==a&&(s=i(f=l())),u=0;u<=h;++u){if(!(u<h&&o(p=c[u],u,c))===g)if(g=!g)d=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),m=u-1;m>=d;--m)s.point(y[m],v[m]);s.lineEnd(),s.areaEnd()}g&&(y[u]=+e(p,u,c),v[u]=+t(p,u,c),s.point(r?+r(p,u,c):y[u],n?+n(p,u,c):v[u]))}if(f)return s=null,f+""||null}function u(){return Jk().defined(o).curve(i).context(a)}return e="function"==typeof e?e:void 0===e?Kk:zv(+e),t="function"==typeof t?t:zv(void 0===t?0:+t),n="function"==typeof n?n:void 0===n?Xk:zv(+n),c.x=function(t){return arguments.length?(e="function"==typeof t?t:zv(+t),r=null,c):e},c.x0=function(t){return arguments.length?(e="function"==typeof t?t:zv(+t),c):e},c.x1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:zv(+e),c):r},c.y=function(e){return arguments.length?(t="function"==typeof e?e:zv(+e),n=null,c):t},c.y0=function(e){return arguments.length?(t="function"==typeof e?e:zv(+e),c):t},c.y1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:zv(+e),c):n},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(n)},c.lineX1=function(){return u().x(r).y(t)},c.defined=function(e){return arguments.length?(o="function"==typeof e?e:zv(!!e),c):o},c.curve=function(e){return arguments.length?(i=e,null!=a&&(s=i(a)),c):i},c.context=function(e){return arguments.length?(null==e?a=s=null:s=i(a=e),c):a},c}function tS(e){return tS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tS(e)}function nS(){return nS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nS.apply(this,arguments)}function rS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function oS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rS(Object(n),!0).forEach(function(t){aS(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rS(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function aS(e,t,n){return t=function(e){var t=function(e){if("object"!=tS(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=tS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==tS(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Uk.prototype={areaStart:Sk,areaEnd:Sk,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},Rk.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}},Vk.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Wk(this,this._t0,Fk(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Wk(this,Fk(this,n=Bk(this,e,t)),n);break;default:Wk(this,this._t0,n=Bk(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},($k.prototype=Object.create(Vk.prototype)).point=function(e,t){Vk.prototype.point.call(this,t,e)},Hk.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,o,a){this._context.bezierCurveTo(t,e,r,n,a,o)}},Gk.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=Zk(e),o=Zk(t),a=0,i=1;i<n;++a,++i)this._context.bezierCurveTo(r[0][a],o[0][a],r[1][a],o[1][a],e[i],t[i]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},qk.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var iS={curveBasisClosed:function(e){return new zk(e)},curveBasisOpen:function(e){return new Lk(e)},curveBasis:function(e){return new Ck(e)},curveBumpX:function(e){return new Pk(e,!0)},curveBumpY:function(e){return new Pk(e,!1)},curveLinearClosed:function(e){return new Uk(e)},curveLinear:Qk,curveMonotoneX:function(e){return new Vk(e)},curveMonotoneY:function(e){return new $k(e)},curveNatural:function(e){return new Gk(e)},curveStep:function(e){return new qk(e,.5)},curveStepAfter:function(e){return new qk(e,1)},curveStepBefore:function(e){return new qk(e,0)}},sS=function(e){return e.x===+e.x&&e.y===+e.y},lS=function(e){return e.x},cS=function(e){return e.y},uS=function(e){var t=e.className,n=e.points,r=e.path,o=e.pathRef;if(!(n&&n.length||r))return null;var i=n&&n.length?function(e){var t,n=e.type,r=void 0===n?"linear":n,o=e.points,a=void 0===o?[]:o,i=e.baseLine,s=e.layout,l=e.connectNulls,c=void 0!==l&&l,u=function(e,t){if(Cg()(e))return e;var n="curve".concat(mv()(e));return"curveMonotone"!==n&&"curveBump"!==n||!t?iS[n]||Qk:iS["".concat(n).concat("vertical"===t?"Y":"X")]}(r,s),d=c?a.filter(function(e){return sS(e)}):a;if(Array.isArray(i)){var m=c?i.filter(function(e){return sS(e)}):i,p=d.map(function(e,t){return oS(oS({},e),{},{base:m[t]})});return(t="vertical"===s?eS().y(cS).x1(lS).x0(function(e){return e.base.x}):eS().x(lS).y1(cS).y0(function(e){return e.base.y})).defined(sS).curve(u),t(p)}return(t="vertical"===s&&Ng(i)?eS().y(cS).x1(lS).x0(i):Ng(i)?eS().x(lS).y1(cS).y0(i):Jk().x(lS).y(cS)).defined(sS).curve(u),t(d)}(e):r;return a.createElement("path",nS({},ay(e,!1),Wg(e),{className:Jt("recharts-curve",t),d:i,ref:o}))};function dS(e){return dS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dS(e)}var mS=["x","y","top","left","width","height","className"];function pS(){return pS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pS.apply(this,arguments)}function fS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function hS(e,t,n){return t=function(e){var t=function(e){if("object"!=dS(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=dS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==dS(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gS=function(e,t,n,r,o,a){return"M".concat(e,",").concat(o,"v").concat(r,"M").concat(a,",").concat(t,"h").concat(n)},yS=function(e){var t=e.x,n=void 0===t?0:t,r=e.y,o=void 0===r?0:r,a=e.top,i=void 0===a?0:a,l=e.left,c=void 0===l?0:l,u=e.width,d=void 0===u?0:u,m=e.height,p=void 0===m?0:m,f=e.className,h=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fS(Object(n),!0).forEach(function(t){hS(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fS(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({x:n,y:o,top:i,left:c,width:d,height:p},function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,mS));return Ng(n)&&Ng(o)&&Ng(d)&&Ng(p)&&Ng(i)&&Ng(c)?s().createElement("path",pS({},ay(h,!0),{className:Jt("recharts-cross",f),d:gS(n,o,d,p,i,c)})):null};function vS(e){var t=e.cx,n=e.cy,r=e.radius,o=e.startAngle,a=e.endAngle;return{points:[SO(t,n,r,o),SO(t,n,r,a)],cx:t,cy:n,radius:r,startAngle:o,endAngle:a}}function bS(e,t,n){var r,o,a,i;if("horizontal"===e)a=r=t.x,o=n.top,i=n.top+n.height;else if("vertical"===e)i=o=t.y,r=n.left,a=n.left+n.width;else if(null!=t.cx&&null!=t.cy){if("centric"!==e)return vS(t);var s=t.cx,l=t.cy,c=t.innerRadius,u=t.outerRadius,d=t.angle,m=SO(s,l,c,d),p=SO(s,l,u,d);r=m.x,o=m.y,a=p.x,i=p.y}return[{x:r,y:o},{x:a,y:i}]}function MS(e){return MS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},MS(e)}function xS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xS(Object(n),!0).forEach(function(t){NS(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xS(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function NS(e,t,n){return t=function(e){var t=function(e){if("object"!=MS(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=MS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==MS(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jS(e){var t,n,r,o=e.element,i=e.tooltipEventType,s=e.isActive,l=e.activeCoordinate,c=e.activePayload,u=e.offset,d=e.activeTooltipIndex,m=e.tooltipAxisBandSize,p=e.layout,f=e.chartName,h=null!==(t=o.props.cursor)&&void 0!==t?t:null===(n=o.type.defaultProps)||void 0===n?void 0:n.cursor;if(!o||!h||!s||!l||"ScatterChart"!==f&&"axis"!==i)return null;var g=uS;if("ScatterChart"===f)r=l,g=yS;else if("BarChart"===f)r=function(e,t,n,r){var o=r/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?t.x-o:n.left+.5,y:"horizontal"===e?n.top+.5:t.y-o,width:"horizontal"===e?r:n.width-1,height:"horizontal"===e?n.height-1:r}}(p,l,u,m),g=KM;else if("radial"===p){var y=vS(l),v=y.cx,b=y.cy,M=y.radius;r={cx:v,cy:b,startAngle:y.startAngle,endAngle:y.endAngle,innerRadius:M,outerRadius:M},g=AI}else r={points:bS(p,l,u)},g=uS;var x=wS(wS(wS(wS({stroke:"#ccc",pointerEvents:"none"},u),r),ay(h,!1)),{},{payload:c,payloadIndex:d,className:Jt("recharts-tooltip-cursor",h.className)});return(0,a.isValidElement)(h)?(0,a.cloneElement)(h,x):(0,a.createElement)(g,x)}var DS=["item"],ES=["children","className","width","height","style","compact","title","desc"];function TS(e){return TS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},TS(e)}function OS(){return OS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},OS.apply(this,arguments)}function IS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||LS(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function AS(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function kS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,YS(r.key),r)}}function SS(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(SS=function(){return!!e})()}function _S(e){return _S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_S(e)}function CS(e,t){return CS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},CS(e,t)}function zS(e){return function(e){if(Array.isArray(e))return PS(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||LS(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function LS(e,t){if(e){if("string"==typeof e)return PS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?PS(e,t):void 0}}function PS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function US(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function RS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?US(Object(n),!0).forEach(function(t){QS(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):US(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function QS(e,t,n){return(t=YS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YS(e){var t=function(e){if("object"!=TS(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=TS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==TS(t)?t:t+""}var BS={xAxis:["bottom","top"],yAxis:["left","right"]},FS={width:"100%",height:"100%"},WS={x:0,y:0};function VS(e){return e}var $S=function(e,t){var n=t.graphicalItems,r=t.dataStartIndex,o=t.dataEndIndex,a=(null!=n?n:[]).reduce(function(e,t){var n=t.props.data;return n&&n.length?[].concat(zS(e),zS(n)):e},[]);return a.length>0?a:e&&e.length&&Ng(r)&&Ng(o)?e.slice(r,o+1):[]};function HS(e){return"number"===e?[0,"auto"]:void 0}var GS=function(e,t,n,r){var o=e.graphicalItems,a=e.tooltipAxis,i=$S(t,e);return n<0||!o||!o.length||n>=i.length?null:o.reduce(function(o,s){var l,c,u=null!==(l=s.props.data)&&void 0!==l?l:t;return u&&e.dataStartIndex+e.dataEndIndex!==0&&e.dataEndIndex-e.dataStartIndex>=n&&(u=u.slice(e.dataStartIndex,e.dataEndIndex+1)),(c=a.dataKey&&!a.allowDuplicatedCategory?Ag(void 0===u?i:u,a.dataKey,r):u&&u[n]||i[n])?[].concat(zS(o),[lO(s,c)]):o},[])},ZS=function(e,t,n,r){var o=r||{x:e.chartX,y:e.chartY},a=function(e,t){return"horizontal"===t?e.x:"vertical"===t?e.y:"centric"===t?e.angle:e.radius}(o,n),i=e.orderedTooltipTicks,s=e.tooltipAxis,l=e.tooltipTicks,c=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,a=-1,i=null!==(t=null==n?void 0:n.length)&&void 0!==t?t:0;if(i<=1)return 0;if(o&&"angleAxis"===o.axisType&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var s=o.range,l=0;l<i;l++){var c=l>0?r[l-1].coordinate:r[i-1].coordinate,u=r[l].coordinate,d=l>=i-1?r[0].coordinate:r[l+1].coordinate,m=void 0;if(xg(u-c)!==xg(d-u)){var p=[];if(xg(d-u)===xg(s[1]-s[0])){m=d;var f=u+s[1]-s[0];p[0]=Math.min(f,(f+c)/2),p[1]=Math.max(f,(f+c)/2)}else{m=c;var h=d+s[1]-s[0];p[0]=Math.min(u,(h+u)/2),p[1]=Math.max(u,(h+u)/2)}var g=[Math.min(u,(m+u)/2),Math.max(u,(m+u)/2)];if(e>g[0]&&e<=g[1]||e>=p[0]&&e<=p[1]){a=r[l].index;break}}else{var y=Math.min(c,d),v=Math.max(c,d);if(e>(y+u)/2&&e<=(v+u)/2){a=r[l].index;break}}}else for(var b=0;b<i;b++)if(0===b&&e<=(n[b].coordinate+n[b+1].coordinate)/2||b>0&&b<i-1&&e>(n[b].coordinate+n[b-1].coordinate)/2&&e<=(n[b].coordinate+n[b+1].coordinate)/2||b===i-1&&e>(n[b].coordinate+n[b-1].coordinate)/2){a=n[b].index;break}return a}(a,i,l,s);if(c>=0&&l){var u=l[c]&&l[c].value,d=GS(e,t,c,u),m=function(e,t,n,r){var o=t.find(function(e){return e&&e.index===n});if(o){if("horizontal"===e)return{x:o.coordinate,y:r.y};if("vertical"===e)return{x:r.x,y:o.coordinate};if("centric"===e){var a=o.coordinate,i=r.radius;return RS(RS(RS({},r),SO(r.cx,r.cy,i,a)),{},{angle:a,radius:i})}var s=o.coordinate,l=r.angle;return RS(RS(RS({},r),SO(r.cx,r.cy,s,l)),{},{angle:l,radius:s})}return WS}(n,i,c,o);return{activeTooltipIndex:c,activeLabel:u,activePayload:d,activeCoordinate:m}}return null},qS=function(e,t){var n=t.axisType,r=void 0===n?"xAxis":n,o=t.AxisComp,a=t.graphicalItems,i=t.stackGroups,s=t.dataStartIndex,l=t.dataEndIndex,c=e.children,u="".concat(r,"Id"),d=ty(c,o),m={};return d&&d.length?m=function(e,t){var n=t.axes,r=t.graphicalItems,o=t.axisType,a=t.axisIdKey,i=t.stackGroups,s=t.dataStartIndex,l=t.dataEndIndex,c=e.layout,u=e.children,d=e.stackOffset,m=$T(c,o);return n.reduce(function(t,n){var p,f=void 0!==n.type.defaultProps?RS(RS({},n.type.defaultProps),n.props):n.props,h=f.type,g=f.dataKey,y=f.allowDataOverflow,v=f.allowDuplicatedCategory,b=f.scale,M=f.ticks,x=f.includeHidden,w=f[a];if(t[w])return t;var N,j,D,E=$S(e.data,{graphicalItems:r.filter(function(e){var t;return(a in e.props?e.props[a]:null===(t=e.type.defaultProps)||void 0===t?void 0:t[a])===w}),dataStartIndex:s,dataEndIndex:l}),T=E.length;(function(e,t,n){if("number"===n&&!0===t&&Array.isArray(e)){var r=null==e?void 0:e[0],o=null==e?void 0:e[1];if(r&&o&&Ng(r)&&Ng(o))return!0}return!1})(f.domain,y,h)&&(N=aO(f.domain,null,y),!m||"number"!==h&&"auto"===b||(D=BT(E,g,"category")));var O=HS(h);if(!N||0===N.length){var I,A=null!==(I=f.domain)&&void 0!==I?I:O;if(g){if(N=BT(E,g,h),"category"===h&&m){var k=function(e){if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++){if(n[e[r]])return!0;n[e[r]]=!0}return!1}(N);v&&k?(j=N,N=gy()(0,T)):v||(N=sO(A,N,n).reduce(function(e,t){return e.indexOf(t)>=0?e:[].concat(zS(e),[t])},[]))}else if("category"===h)N=v?N.filter(function(e){return""!==e&&!Mg()(e)}):sO(A,N,n).reduce(function(e,t){return e.indexOf(t)>=0||""===t||Mg()(t)?e:[].concat(zS(e),[t])},[]);else if("number"===h){var S=function(e,t,n,r,o){var a=t.map(function(t){return WT(e,t,n,o,r)}).filter(function(e){return!Mg()(e)});return a&&a.length?a.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]},[1/0,-1/0]):null}(E,r.filter(function(e){var t,n,r=a in e.props?e.props[a]:null===(t=e.type.defaultProps)||void 0===t?void 0:t[a],o="hide"in e.props?e.props.hide:null===(n=e.type.defaultProps)||void 0===n?void 0:n.hide;return r===w&&(x||!o)}),g,o,c);S&&(N=S)}!m||"number"!==h&&"auto"===b||(D=BT(E,g,"category"))}else N=m?gy()(0,T):i&&i[w]&&i[w].hasStack&&"number"===h?"expand"===d?[0,1]:nO(i[w].stackGroups,s,l):VT(E,r.filter(function(e){var t=a in e.props?e.props[a]:e.type.defaultProps[a],n="hide"in e.props?e.props.hide:e.type.defaultProps.hide;return t===w&&(x||!n)}),h,c,!0);if("number"===h)N=Nk(u,N,w,o,M),A&&(N=aO(A,N,y));else if("category"===h&&A){var _=A;N.every(function(e){return _.indexOf(e)>=0})&&(N=_)}}return RS(RS({},t),{},QS({},w,RS(RS({},f),{},{axisType:o,domain:N,categoricalDomain:D,duplicateDomain:j,originalDomain:null!==(p=f.domain)&&void 0!==p?p:O,isCategorical:m,layout:c})))},{})}(e,{axes:d,graphicalItems:a,axisType:r,axisIdKey:u,stackGroups:i,dataStartIndex:s,dataEndIndex:l}):a&&a.length&&(m=function(e,t){var n=t.graphicalItems,r=t.Axis,o=t.axisType,a=t.axisIdKey,i=t.stackGroups,s=t.dataStartIndex,l=t.dataEndIndex,c=e.layout,u=e.children,d=$S(e.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:l}),m=d.length,p=$T(c,o),f=-1;return n.reduce(function(e,t){var h,g=(void 0!==t.type.defaultProps?RS(RS({},t.type.defaultProps),t.props):t.props)[a],y=HS("number");return e[g]?e:(f++,p?h=gy()(0,m):i&&i[g]&&i[g].hasStack?(h=nO(i[g].stackGroups,s,l),h=Nk(u,h,g,o)):(h=aO(y,VT(d,n.filter(function(e){var t,n,r=a in e.props?e.props[a]:null===(t=e.type.defaultProps)||void 0===t?void 0:t[a],o="hide"in e.props?e.props.hide:null===(n=e.type.defaultProps)||void 0===n?void 0:n.hide;return r===g&&!o}),"number",c),r.defaultProps.allowDataOverflow),h=Nk(u,h,g,o)),RS(RS({},e),{},QS({},g,RS(RS({axisType:o},r.defaultProps),{},{hide:!0,orientation:gg()(BS,"".concat(o,".").concat(f%2),null),domain:h,originalDomain:y,isCategorical:p,layout:c}))))},{})}(e,{Axis:o,graphicalItems:a,axisType:r,axisIdKey:u,stackGroups:i,dataStartIndex:s,dataEndIndex:l})),m},KS=function(e){var t=e.children,n=e.defaultShowTooltip,r=ny(t,DO),o=0,a=0;return e.data&&0!==e.data.length&&(a=e.data.length-1),r&&r.props&&(r.props.startIndex>=0&&(o=r.props.startIndex),r.props.endIndex>=0&&(a=r.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:a,activeTooltipIndex:-1,isTooltipActive:Boolean(n)}},XS=function(e){return"horizontal"===e?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===e?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===e?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},JS=function(e,t){return"xAxis"===t?e[t].width:"yAxis"===t?e[t].height:void 0},e_=["type","layout","connectNulls","ref"],t_=["key"];function n_(e){return n_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n_(e)}function r_(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function o_(){return o_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o_.apply(this,arguments)}function a_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a_(Object(n),!0).forEach(function(t){p_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function s_(e){return function(e){if(Array.isArray(e))return l_(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l_(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,f_(r.key),r)}}function u_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(u_=function(){return!!e})()}function d_(e){return d_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d_(e)}function m_(e,t){return m_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m_(e,t)}function p_(e,t,n){return(t=f_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f_(e){var t=function(e){if("object"!=n_(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=n_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n_(t)?t:t+""}var h_=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return p_(e=function(e,t,n){return t=d_(t),function(e,t){if(t&&("object"===n_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,u_()?Reflect.construct(t,n||[],d_(e).constructor):t.apply(e,n))}(this,t,[].concat(r)),"state",{isAnimationFinished:!0,totalLength:0}),p_(e,"generateSimpleStrokeDasharray",function(e,t){return"".concat(t,"px ").concat(e-t,"px")}),p_(e,"getStrokeDasharray",function(n,r,o){var a=o.reduce(function(e,t){return e+t});if(!a)return e.generateSimpleStrokeDasharray(r,n);for(var i=Math.floor(n/a),s=n%a,l=r-n,c=[],u=0,d=0;u<o.length;d+=o[u],++u)if(d+o[u]>s){c=[].concat(s_(o.slice(0,u)),[s-d]);break}var m=c.length%2==0?[0,l]:[l];return[].concat(s_(t.repeat(o,i)),s_(c),m).map(function(e){return"".concat(e,"px")}).join(", ")}),p_(e,"id",Eg("recharts-line-")),p_(e,"pathRef",function(t){e.mainCurve=t}),p_(e,"handleAnimationEnd",function(){e.setState({isAnimationFinished:!0}),e.props.onAnimationEnd&&e.props.onAnimationEnd()}),p_(e,"handleAnimationStart",function(){e.setState({isAnimationFinished:!1}),e.props.onAnimationStart&&e.props.onAnimationStart()}),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m_(e,t)}(t,e),n=t,r=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var e=this.getTotalLength();this.setState({totalLength:e})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var e=this.getTotalLength();e!==this.state.totalLength&&this.setState({totalLength:e})}}},{key:"getTotalLength",value:function(){var e=this.mainCurve;try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch(e){return 0}}},{key:"renderErrorBar",value:function(e,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.points,o=n.xAxis,a=n.yAxis,i=n.layout,l=ty(n.children,IT);if(!l)return null;var c=function(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:YT(e.payload,t)}},u={clipPath:e?"url(#clipPath-".concat(t,")"):null};return s().createElement(Dy,u,l.map(function(e){return s().cloneElement(e,{key:"bar-".concat(e.props.dataKey),data:r,xAxis:o,yAxis:a,layout:i,dataPointFormatter:c})}))}},{key:"renderDots",value:function(e,n,r){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,a=o.dot,i=o.points,l=o.dataKey,c=ay(this.props,!1),u=ay(a,!0),d=i.map(function(e,n){var r=i_(i_(i_({key:"dot-".concat(n),r:3},c),u),{},{index:n,cx:e.x,cy:e.y,value:e.value,dataKey:l,payload:e.payload,points:i});return t.renderDotItem(a,r)}),m={clipPath:e?"url(#clipPath-".concat(n?"":"dots-").concat(r,")"):null};return s().createElement(Dy,o_({className:"recharts-line-dots",key:"dots"},m),d)}},{key:"renderCurveStatically",value:function(e,t,n,r){var o=this.props,a=o.type,i=o.layout,l=o.connectNulls,c=(o.ref,r_(o,e_)),u=i_(i_(i_({},ay(c,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:t?"url(#clipPath-".concat(n,")"):null,points:e},r),{},{type:a,layout:i,connectNulls:l});return s().createElement(uS,o_({},u,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(e,t){var n=this,r=this.props,o=r.points,a=r.strokeDasharray,i=r.isAnimationActive,l=r.animationBegin,c=r.animationDuration,u=r.animationEasing,d=r.animationId,m=r.animateNewValues,p=r.width,f=r.height,h=this.state,g=h.prevPoints,y=h.totalLength;return s().createElement(YM,{begin:l,duration:c,isActive:i,easing:u,from:{t:0},to:{t:1},key:"line-".concat(d),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(r){var i=r.t;if(g){var s=g.length/o.length,l=o.map(function(e,t){var n=Math.floor(t*s);if(g[n]){var r=g[n],o=Ig(r.x,e.x),a=Ig(r.y,e.y);return i_(i_({},e),{},{x:o(i),y:a(i)})}if(m){var l=Ig(2*p,e.x),c=Ig(f/2,e.y);return i_(i_({},e),{},{x:l(i),y:c(i)})}return i_(i_({},e),{},{x:e.x,y:e.y})});return n.renderCurveStatically(l,e,t)}var c,u=Ig(0,y)(i);if(a){var d="".concat(a).split(/[,\s]+/gim).map(function(e){return parseFloat(e)});c=n.getStrokeDasharray(u,y,d)}else c=n.generateSimpleStrokeDasharray(y,u);return n.renderCurveStatically(o,e,t,{strokeDasharray:c})})}},{key:"renderCurve",value:function(e,t){var n=this.props,r=n.points,o=n.isAnimationActive,a=this.state,i=a.prevPoints,s=a.totalLength;return o&&r&&r.length&&(!i&&s>0||!$E()(i,r))?this.renderCurveWithAnimation(e,t):this.renderCurveStatically(r,e,t)}},{key:"render",value:function(){var e,t=this.props,n=t.hide,r=t.dot,o=t.points,a=t.className,i=t.xAxis,l=t.yAxis,c=t.top,u=t.left,d=t.width,m=t.height,p=t.isAnimationActive,f=t.id;if(n||!o||!o.length)return null;var h=this.state.isAnimationFinished,g=1===o.length,y=Jt("recharts-line",a),v=i&&i.allowDataOverflow,b=l&&l.allowDataOverflow,M=v||b,x=Mg()(f)?this.id:f,w=null!==(e=ay(r,!1))&&void 0!==e?e:{r:3,strokeWidth:2},N=w.r,j=void 0===N?3:N,D=w.strokeWidth,E=void 0===D?2:D,T=(function(e){return e&&"object"===Zg(e)&&"clipDot"in e}(r)?r:{}).clipDot,O=void 0===T||T,I=2*j+E;return s().createElement(Dy,{className:y},v||b?s().createElement("defs",null,s().createElement("clipPath",{id:"clipPath-".concat(x)},s().createElement("rect",{x:v?u:u-d/2,y:b?c:c-m/2,width:v?d:2*d,height:b?m:2*m})),!O&&s().createElement("clipPath",{id:"clipPath-dots-".concat(x)},s().createElement("rect",{x:u-I/2,y:c-I/2,width:d+I,height:m+I}))):null,!g&&this.renderCurve(M,x),this.renderErrorBar(M,x),(g||r)&&this.renderDots(M,O,x),(!p||h)&&lI.renderCallByParent(this.props,o))}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,prevPoints:t.curPoints}:e.points!==t.curPoints?{curPoints:e.points}:null}},{key:"repeat",value:function(e,t){for(var n=e.length%2!=0?[].concat(s_(e),[0]):e,r=[],o=0;o<t;++o)r=[].concat(s_(r),s_(n));return r}},{key:"renderDotItem",value:function(e,t){var n;if(s().isValidElement(e))n=s().cloneElement(e,t);else if(Cg()(e))n=e(t);else{var r=t.key,o=r_(t,t_),a=Jt("recharts-line-dot","boolean"!=typeof e?e.className:"");n=s().createElement(wb,o_({key:r},o,{className:a}))}return n}}],r&&c_(n.prototype,r),o&&c_(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(a.PureComponent);function g_(e,t,n){if(t<1)return[];if(1===t&&void 0===n)return e;for(var r=[],o=0;o<e.length;o+=t){if(void 0!==n&&!0!==n(e[o]))return;r.push(e[o])}return r}function y_(e,t,n,r,o){if(e*t<e*r||e*t>e*o)return!1;var a=n();return e*(t-e*a/2-r)>=0&&e*(t+e*a/2-o)<=0}function v_(e){return v_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v_(e)}function b_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function M_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b_(Object(n),!0).forEach(function(t){x_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function x_(e,t,n){return t=function(e){var t=function(e){if("object"!=v_(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=v_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==v_(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w_(e,t,n){var r=e.tick,o=e.ticks,a=e.viewBox,i=e.minTickGap,s=e.orientation,l=e.interval,c=e.tickFormatter,u=e.unit,d=e.angle;if(!o||!o.length||!r)return[];if(Ng(l)||qy.isSsr)return function(e,t){return g_(e,t+1)}(o,"number"==typeof l&&Ng(l)?l:0);var m=[],p="top"===s||"bottom"===s?"width":"height",f=u&&"width"===p?hx(u,{fontSize:t,letterSpacing:n}):{width:0,height:0},h=function(e,r){var o=Cg()(c)?c(e.value,r):e.value;return"width"===p?function(e,t,n){return function(e){var t=e.width,n=e.height,r=function(e){return(e%180+180)%180}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),o=r*Math.PI/180,a=Math.atan(n/t),i=o>a&&o<Math.PI-a?n/Math.sin(o):t/Math.cos(o);return Math.abs(i)}({width:e.width+t.width,height:e.height+t.height},n)}(hx(o,{fontSize:t,letterSpacing:n}),f,d):hx(o,{fontSize:t,letterSpacing:n})[p]},g=o.length>=2?xg(o[1].coordinate-o[0].coordinate):1,y=function(e,t,n){var r="width"===n,o=e.x,a=e.y,i=e.width,s=e.height;return 1===t?{start:r?o:a,end:r?o+i:a+s}:{start:r?o+i:a+s,end:r?o:a}}(a,g,p);return"equidistantPreserveStart"===l?function(e,t,n,r,o){for(var a,i=(r||[]).slice(),s=t.start,l=t.end,c=0,u=1,d=s,m=function(){var t=null==r?void 0:r[c];if(void 0===t)return{v:g_(r,u)};var a,i=c,m=function(){return void 0===a&&(a=n(t,i)),a},p=t.coordinate,f=0===c||y_(e,p,m,d,l);f||(c=0,d=s,u+=1),f&&(d=p+e*(m()/2+o),c+=u)};u<=i.length;)if(a=m())return a.v;return[]}(g,y,h,o,i):(m="preserveStart"===l||"preserveStartEnd"===l?function(e,t,n,r,o,a){var i=(r||[]).slice(),s=i.length,l=t.start,c=t.end;if(a){var u=r[s-1],d=n(u,s-1),m=e*(u.coordinate+e*d/2-c);i[s-1]=u=M_(M_({},u),{},{tickCoord:m>0?u.coordinate-m*e:u.coordinate}),y_(e,u.tickCoord,function(){return d},l,c)&&(c=u.tickCoord-e*(d/2+o),i[s-1]=M_(M_({},u),{},{isShow:!0}))}for(var p=a?s-1:s,f=function(t){var r,a=i[t],s=function(){return void 0===r&&(r=n(a,t)),r};if(0===t){var u=e*(a.coordinate-e*s()/2-l);i[t]=a=M_(M_({},a),{},{tickCoord:u<0?a.coordinate-u*e:a.coordinate})}else i[t]=a=M_(M_({},a),{},{tickCoord:a.coordinate});y_(e,a.tickCoord,s,l,c)&&(l=a.tickCoord+e*(s()/2+o),i[t]=M_(M_({},a),{},{isShow:!0}))},h=0;h<p;h++)f(h);return i}(g,y,h,o,i,"preserveStartEnd"===l):function(e,t,n,r,o){for(var a=(r||[]).slice(),i=a.length,s=t.start,l=t.end,c=function(t){var r,c=a[t],u=function(){return void 0===r&&(r=n(c,t)),r};if(t===i-1){var d=e*(c.coordinate+e*u()/2-l);a[t]=c=M_(M_({},c),{},{tickCoord:d>0?c.coordinate-d*e:c.coordinate})}else a[t]=c=M_(M_({},c),{},{tickCoord:c.coordinate});y_(e,c.tickCoord,u,s,l)&&(l=c.tickCoord-e*(u()/2+o),a[t]=M_(M_({},c),{},{isShow:!0}))},u=i-1;u>=0;u--)c(u);return a}(g,y,h,o,i),m.filter(function(e){return e.isShow}))}p_(h_,"displayName","Line"),p_(h_,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!qy.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),p_(h_,"getComposedData",function(e){var t=e.props,n=e.xAxis,r=e.yAxis,o=e.xAxisTicks,a=e.yAxisTicks,i=e.dataKey,s=e.bandSize,l=e.displayedData,c=e.offset,u=t.layout,d=l.map(function(e,t){var l=YT(e,i);return"horizontal"===u?{x:eO({axis:n,ticks:o,bandSize:s,entry:e,index:t}),y:Mg()(l)?null:r.scale(l),value:l,payload:e}:{x:Mg()(l)?null:n.scale(l),y:eO({axis:r,ticks:a,bandSize:s,entry:e,index:t}),value:l,payload:e}});return i_({points:d,layout:u},c)});var N_=["viewBox"],j_=["viewBox"],D_=["ticks"];function E_(e){return E_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E_(e)}function T_(){return T_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T_.apply(this,arguments)}function O_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function I_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O_(Object(n),!0).forEach(function(t){L_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function A_(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function k_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,P_(r.key),r)}}function S_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(S_=function(){return!!e})()}function C_(e){return C_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},C_(e)}function z_(e,t){return z_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},z_(e,t)}function L_(e,t,n){return(t=P_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function P_(e){var t=function(e){if("object"!=E_(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=E_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==E_(t)?t:t+""}var U_=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=C_(t),function(e,t){if(t&&("object"===E_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,S_()?Reflect.construct(t,n||[],C_(e).constructor):t.apply(e,n))}(this,t,[e])).state={fontSize:"",letterSpacing:""},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&z_(e,t)}(t,e),n=t,r=[{key:"shouldComponentUpdate",value:function(e,t){var n=e.viewBox,r=A_(e,N_),o=this.props,a=o.viewBox,i=A_(o,j_);return!Ug(n,a)||!Ug(r,i)||!Ug(t,this.state)}},{key:"componentDidMount",value:function(){var e=this.layerReference;if(e){var t=e.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];t&&this.setState({fontSize:window.getComputedStyle(t).fontSize,letterSpacing:window.getComputedStyle(t).letterSpacing})}}},{key:"getTickLineCoord",value:function(e){var t,n,r,o,a,i,s=this.props,l=s.x,c=s.y,u=s.width,d=s.height,m=s.orientation,p=s.tickSize,f=s.mirror,h=s.tickMargin,g=f?-1:1,y=e.tickSize||p,v=Ng(e.tickCoord)?e.tickCoord:e.coordinate;switch(m){case"top":t=n=e.coordinate,i=(r=(o=c+ +!f*d)-g*y)-g*h,a=v;break;case"left":r=o=e.coordinate,a=(t=(n=l+ +!f*u)-g*y)-g*h,i=v;break;case"right":r=o=e.coordinate,a=(t=(n=l+ +f*u)+g*y)+g*h,i=v;break;default:t=n=e.coordinate,i=(r=(o=c+ +f*d)+g*y)+g*h,a=v}return{line:{x1:t,y1:r,x2:n,y2:o},tick:{x:a,y:i}}}},{key:"getTickTextAnchor",value:function(){var e,t=this.props,n=t.orientation,r=t.mirror;switch(n){case"left":e=r?"start":"end";break;case"right":e=r?"end":"start";break;default:e="middle"}return e}},{key:"getTickVerticalAnchor",value:function(){var e=this.props,t=e.orientation,n=e.mirror,r="end";switch(t){case"left":case"right":r="middle";break;case"top":r=n?"start":"end";break;default:r=n?"end":"start"}return r}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,a=e.orientation,i=e.mirror,l=e.axisLine,c=I_(I_(I_({},ay(this.props,!1)),ay(l,!1)),{},{fill:"none"});if("top"===a||"bottom"===a){var u=+("top"===a&&!i||"bottom"===a&&i);c=I_(I_({},c),{},{x1:t,y1:n+u*o,x2:t+r,y2:n+u*o})}else{var d=+("left"===a&&!i||"right"===a&&i);c=I_(I_({},c),{},{x1:t+d*r,y1:n,x2:t+d*r,y2:n+o})}return s().createElement("line",T_({},c,{className:Jt("recharts-cartesian-axis-line",gg()(l,"className"))}))}},{key:"renderTicks",value:function(e,n,r){var o=this,a=this.props,i=a.tickLine,l=a.stroke,c=a.tick,u=a.tickFormatter,d=a.unit,m=w_(I_(I_({},this.props),{},{ticks:e}),n,r),p=this.getTickTextAnchor(),f=this.getTickVerticalAnchor(),h=ay(this.props,!1),g=ay(c,!1),y=I_(I_({},h),{},{fill:"none"},ay(i,!1)),v=m.map(function(e,n){var r=o.getTickLineCoord(e),a=r.line,v=r.tick,b=I_(I_(I_(I_({textAnchor:p,verticalAnchor:f},h),{},{stroke:"none",fill:l},g),v),{},{index:n,payload:e,visibleTicksCount:m.length,tickFormatter:u});return s().createElement(Dy,T_({className:"recharts-cartesian-axis-tick",key:"tick-".concat(e.value,"-").concat(e.coordinate,"-").concat(e.tickCoord)},Vg(o.props,e,n)),i&&s().createElement("line",T_({},y,a,{className:Jt("recharts-cartesian-axis-tick-line",gg()(i,"className"))})),c&&t.renderTickItem(c,b,"".concat(Cg()(u)?u(e.value,n):e.value).concat(d||"")))});return s().createElement("g",{className:"recharts-cartesian-axis-ticks"},v)}},{key:"render",value:function(){var e=this,t=this.props,n=t.axisLine,r=t.width,o=t.height,a=t.ticksGenerator,i=t.className;if(t.hide)return null;var l=this.props,c=l.ticks,u=A_(l,D_),d=c;return Cg()(a)&&(d=c&&c.length>0?a(this.props):a(u)),r<=0||o<=0||!d||!d.length?null:s().createElement(Dy,{className:Jt("recharts-cartesian-axis",i),ref:function(t){e.layerReference=t}},n&&this.renderAxisLine(),this.renderTicks(d,this.state.fontSize,this.state.letterSpacing),BO.renderCallByParent(this.props))}}],o=[{key:"renderTickItem",value:function(e,t,n){var r=Jt(t.className,"recharts-cartesian-axis-tick-value");return s().isValidElement(e)?s().cloneElement(e,I_(I_({},t),{},{className:r})):Cg()(e)?e(I_(I_({},t),{},{className:r})):s().createElement(Fx,T_({},t,{className:"recharts-cartesian-axis-tick-value"}),n)}}],r&&k_(n.prototype,r),o&&k_(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(a.Component);function R_(e){return R_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},R_(e)}function Q_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,V_(r.key),r)}}function Y_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Y_=function(){return!!e})()}function B_(e){return B_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},B_(e)}function F_(e,t){return F_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},F_(e,t)}function W_(e,t,n){return(t=V_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function V_(e){var t=function(e){if("object"!=R_(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=R_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==R_(t)?t:t+""}function $_(){return $_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$_.apply(this,arguments)}function H_(e){var t=e.xAxisId,n=ZA(),r=qA(),o=HA(t);return null==o?null:a.createElement(U_,$_({},o,{className:Jt("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(e){return GT(e,!0)}}))}L_(U_,"displayName","CartesianAxis"),L_(U_,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var G_=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=B_(t),function(e,t){if(t&&("object"===R_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Y_()?Reflect.construct(t,n||[],B_(e).constructor):t.apply(e,n))}(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&F_(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){return a.createElement(H_,this.props)}}])&&Q_(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(a.Component);function Z_(e){return Z_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Z_(e)}function q_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,tC(r.key),r)}}function K_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(K_=function(){return!!e})()}function X_(e){return X_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},X_(e)}function J_(e,t){return J_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},J_(e,t)}function eC(e,t,n){return(t=tC(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tC(e){var t=function(e){if("object"!=Z_(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Z_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Z_(t)?t:t+""}function nC(){return nC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nC.apply(this,arguments)}W_(G_,"displayName","XAxis"),W_(G_,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});var rC=function(e){var t=e.yAxisId,n=ZA(),r=qA(),o=GA(t);return null==o?null:a.createElement(U_,nC({},o,{className:Jt("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(e){return GT(e,!0)}}))},oC=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=X_(t),function(e,t){if(t&&("object"===Z_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,K_()?Reflect.construct(t,n||[],X_(e).constructor):t.apply(e,n))}(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&J_(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){return a.createElement(rC,this.props)}}])&&q_(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(a.Component);eC(oC,"displayName","YAxis"),eC(oC,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});var aC=function(e){var t=e.chartName,n=e.GraphicalChild,r=e.defaultTooltipEventType,o=void 0===r?"axis":r,i=e.validateTooltipEventTypes,l=void 0===i?["axis"]:i,c=e.axisComponents,u=e.legendContent,d=e.formatAxisMap,m=e.defaultProps,p=function(e,r){var o=e.props,a=e.dataStartIndex,i=e.dataEndIndex,s=e.updateId;if(!ry({props:o}))return null;var l=o.children,u=o.layout,m=o.stackOffset,p=o.data,f=o.reverseStackOrder,h=XS(u),g=h.numericAxisName,y=h.cateAxisName,v=ty(l,n),b=function(e,t,n,r,o,a){if(!e)return null;var i=(a?t.reverse():t).reduce(function(e,t){var o,a=null!==(o=t.type)&&void 0!==o&&o.defaultProps?RT(RT({},t.type.defaultProps),t.props):t.props,i=a.stackId;if(a.hide)return e;var s=a[n],l=e[s]||{hasStack:!1,stackGroups:{}};if(jg(i)){var c=l.stackGroups[i]||{numericAxisId:n,cateAxisId:r,items:[]};c.items.push(t),l.hasStack=!0,l.stackGroups[i]=c}else l.stackGroups[Eg("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return RT(RT({},e),{},QT({},s,l))},{});return Object.keys(i).reduce(function(t,a){var s=i[a];return s.hasStack&&(s.stackGroups=Object.keys(s.stackGroups).reduce(function(t,a){var i=s.stackGroups[a];return RT(RT({},t),{},QT({},a,{numericAxisId:n,cateAxisId:r,items:i.items,stackedData:JT(e,i.items,o)}))},{})),RT(RT({},t),{},QT({},a,s))},{})}(p,v,"".concat(g,"Id"),"".concat(y,"Id"),m,f),M=c.reduce(function(e,t){var n="".concat(t.axisType,"Map");return RS(RS({},e),{},QS({},n,qS(o,RS(RS({},t),{},{graphicalItems:v,stackGroups:t.axisType===g&&b,dataStartIndex:a,dataEndIndex:i}))))},{}),x=function(e,t){var n=e.props,r=(e.graphicalItems,e.xAxisMap),o=void 0===r?{}:r,a=e.yAxisMap,i=void 0===a?{}:a,s=n.width,l=n.height,c=n.children,u=n.margin||{},d=ny(c,DO),m=ny(c,Mb),p=Object.keys(i).reduce(function(e,t){var n=i[t],r=n.orientation;return n.mirror||n.hide?e:RS(RS({},e),{},QS({},r,e[r]+n.width))},{left:u.left||0,right:u.right||0}),f=Object.keys(o).reduce(function(e,t){var n=o[t],r=n.orientation;return n.mirror||n.hide?e:RS(RS({},e),{},QS({},r,gg()(e,"".concat(r))+n.height))},{top:u.top||0,bottom:u.bottom||0}),h=RS(RS({},f),p),g=h.bottom;d&&(h.bottom+=d.props.height||DO.defaultProps.height),m&&t&&(h=function(e,t,n,r){var o=n.children,a=n.width,i=n.margin,s=a-(i.left||0)-(i.right||0),l=CT({children:o,legendWidth:s});if(l){var c=r||{},u=c.width,d=c.height,m=l.align,p=l.verticalAlign,f=l.layout;if(("vertical"===f||"horizontal"===f&&"middle"===p)&&"center"!==m&&Ng(e[m]))return RT(RT({},e),{},QT({},m,e[m]+(u||0)));if(("horizontal"===f||"vertical"===f&&"center"===m)&&"middle"!==p&&Ng(e[p]))return RT(RT({},e),{},QT({},p,e[p]+(d||0)))}return e}(h,0,n,t));var y=s-h.left-h.right,v=l-h.top-h.bottom;return RS(RS({brushBottom:g},h),{},{width:Math.max(y,0),height:Math.max(v,0)})}(RS(RS({},M),{},{props:o,graphicalItems:v}),null==r?void 0:r.legendBBox);Object.keys(M).forEach(function(e){M[e]=d(o,M[e],x,e.replace("Map",""),t)});var w,N,j=M["".concat(y,"Map")],D=(w=Og(j),{tooltipTicks:N=GT(w,!1,!0),orderedTooltipTicks:vy()(N,function(e){return e.coordinate}),tooltipAxis:w,tooltipAxisBandSize:iO(w,N)}),E=function(e,t){var n=t.graphicalItems,r=t.stackGroups,o=t.offset,a=t.updateId,i=t.dataStartIndex,s=t.dataEndIndex,l=e.barSize,u=e.layout,d=e.barGap,m=e.barCategoryGap,p=e.maxBarSize,f=XS(u),h=f.numericAxisName,g=f.cateAxisName,y=function(e){return!(!e||!e.length)&&e.some(function(e){var t=Kg(e&&e.type);return t&&t.indexOf("Bar")>=0})}(n),v=[];return n.forEach(function(n,f){var b=$S(e.data,{graphicalItems:[n],dataStartIndex:i,dataEndIndex:s}),M=void 0!==n.type.defaultProps?RS(RS({},n.type.defaultProps),n.props):n.props,x=M.dataKey,w=M.maxBarSize,N=M["".concat(h,"Id")],j=M["".concat(g,"Id")],D=c.reduce(function(e,n){var r=t["".concat(n.axisType,"Map")],o=M["".concat(n.axisType,"Id")];r&&r[o]||"zAxis"===n.axisType||by(!1);var a=r[o];return RS(RS({},e),{},QS(QS({},n.axisType,a),"".concat(n.axisType,"Ticks"),GT(a)))},{}),E=D[g],T=D["".concat(g,"Ticks")],O=r&&r[N]&&r[N].hasStack&&function(e,t){var n,r=(null!==(n=e.type)&&void 0!==n&&n.defaultProps?RT(RT({},e.type.defaultProps),e.props):e.props).stackId;if(jg(r)){var o=t[r];if(o){var a=o.items.indexOf(e);return a>=0?o.stackedData[a]:null}}return null}(n,r[N].stackGroups),I=Kg(n.type).indexOf("Bar")>=0,A=iO(E,T),k=[],S=y&&function(e){var t=e.barSize,n=e.totalSize,r=e.stackGroups,o=void 0===r?{}:r;if(!o)return{};for(var a={},i=Object.keys(o),s=0,l=i.length;s<l;s++)for(var c=o[i[s]].stackGroups,u=Object.keys(c),d=0,m=u.length;d<m;d++){var p=c[u[d]],f=p.items,h=p.cateAxisId,g=f.filter(function(e){return Kg(e.type).indexOf("Bar")>=0});if(g&&g.length){var y=g[0].type.defaultProps,v=void 0!==y?RT(RT({},y),g[0].props):g[0].props,b=v.barSize,M=v[h];a[M]||(a[M]=[]);var x=Mg()(b)?t:b;a[M].push({item:g[0],stackList:g.slice(1),barSize:Mg()(x)?void 0:Tg(x,n,0)})}}return a}({barSize:l,stackGroups:r,totalSize:JS(D,g)});if(I){var _,C,z=Mg()(w)?p:w,L=null!==(_=null!==(C=iO(E,T,!0))&&void 0!==C?C:z)&&void 0!==_?_:0;k=function(e){var t=e.barGap,n=e.barCategoryGap,r=e.bandSize,o=e.sizeList,a=void 0===o?[]:o,i=e.maxBarSize,s=a.length;if(s<1)return null;var l,c=Tg(t,r,0,!0),u=[];if(a[0].barSize===+a[0].barSize){var d=!1,m=r/s,p=a.reduce(function(e,t){return e+t.barSize||0},0);(p+=(s-1)*c)>=r&&(p-=(s-1)*c,c=0),p>=r&&m>0&&(d=!0,p=s*(m*=.9));var f={offset:((r-p)/2|0)-c,size:0};l=a.reduce(function(e,t){var n={item:t.item,position:{offset:f.offset+f.size+c,size:d?m:t.barSize}},r=[].concat(LT(e),[n]);return f=r[r.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach(function(e){r.push({item:e,position:f})}),r},u)}else{var h=Tg(n,r,0,!0);r-2*h-(s-1)*c<=0&&(c=0);var g=(r-2*h-(s-1)*c)/s;g>1&&(g>>=0);var y=i===+i?Math.min(g,i):g;l=a.reduce(function(e,t,n){var r=[].concat(LT(e),[{item:t.item,position:{offset:h+(g+c)*n+(g-y)/2,size:y}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach(function(e){r.push({item:e,position:r[r.length-1].position})}),r},u)}return l}({barGap:d,barCategoryGap:m,bandSize:L!==A?L:A,sizeList:S[j],maxBarSize:z}),L!==A&&(k=k.map(function(e){return RS(RS({},e),{},{position:RS(RS({},e.position),{},{offset:e.position.offset-L/2})})}))}var P,U,R=n&&n.type&&n.type.getComposedData;R&&v.push({props:RS(RS({},R(RS(RS({},D),{},{displayedData:b,props:e,dataKey:x,item:n,bandSize:A,barPosition:k,offset:o,stackedData:O,layout:u,dataStartIndex:i,dataEndIndex:s}))),{},QS(QS(QS({key:n.key||"item-".concat(f)},h,D[h]),g,D[g]),"animationId",a)),childIndex:(P=n,U=e.children,ey(U).indexOf(P)),item:n})}),v}(o,RS(RS({},M),{},{dataStartIndex:a,dataEndIndex:i,updateId:s,graphicalItems:v,stackGroups:b,offset:x}));return RS(RS({formattedGraphicalItems:E,graphicalItems:v,offset:x,stackGroups:b},D),M)},f=function(e){function n(e){var r,o,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),QS(i=function(e,t,n){return t=_S(t),function(e,t){if(t&&("object"===TS(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,SS()?Reflect.construct(t,n||[],_S(e).constructor):t.apply(e,n))}(this,n,[e]),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),QS(i,"accessibilityManager",new kk),QS(i,"handleLegendBBoxUpdate",function(e){if(e){var t=i.state,n=t.dataStartIndex,r=t.dataEndIndex,o=t.updateId;i.setState(RS({legendBBox:e},p({props:i.props,dataStartIndex:n,dataEndIndex:r,updateId:o},RS(RS({},i.state),{},{legendBBox:e}))))}}),QS(i,"handleReceiveSyncEvent",function(e,t,n){if(i.props.syncId===e){if(n===i.eventEmitterSymbol&&"function"!=typeof i.props.syncMethod)return;i.applySyncEvent(t)}}),QS(i,"handleBrushChange",function(e){var t=e.startIndex,n=e.endIndex;if(t!==i.state.dataStartIndex||n!==i.state.dataEndIndex){var r=i.state.updateId;i.setState(function(){return RS({dataStartIndex:t,dataEndIndex:n},p({props:i.props,dataStartIndex:t,dataEndIndex:n,updateId:r},i.state))}),i.triggerSyncEvent({dataStartIndex:t,dataEndIndex:n})}}),QS(i,"handleMouseEnter",function(e){var t=i.getMouseInfo(e);if(t){var n=RS(RS({},t),{},{isTooltipActive:!0});i.setState(n),i.triggerSyncEvent(n);var r=i.props.onMouseEnter;Cg()(r)&&r(n,e)}}),QS(i,"triggeredAfterMouseMove",function(e){var t=i.getMouseInfo(e),n=t?RS(RS({},t),{},{isTooltipActive:!0}):{isTooltipActive:!1};i.setState(n),i.triggerSyncEvent(n);var r=i.props.onMouseMove;Cg()(r)&&r(n,e)}),QS(i,"handleItemMouseEnter",function(e){i.setState(function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}})}),QS(i,"handleItemMouseLeave",function(){i.setState(function(){return{isTooltipActive:!1}})}),QS(i,"handleMouseMove",function(e){e.persist(),i.throttleTriggeredAfterMouseMove(e)}),QS(i,"handleMouseLeave",function(e){i.throttleTriggeredAfterMouseMove.cancel();var t={isTooltipActive:!1};i.setState(t),i.triggerSyncEvent(t);var n=i.props.onMouseLeave;Cg()(n)&&n(t,e)}),QS(i,"handleOuterEvent",function(e){var t,n=function(e){var t=e&&e.type;return t&&qg[t]?qg[t]:null}(e),r=gg()(i.props,"".concat(n));n&&Cg()(r)&&r(null!==(t=/.*touch.*/i.test(n)?i.getMouseInfo(e.changedTouches[0]):i.getMouseInfo(e))&&void 0!==t?t:{},e)}),QS(i,"handleClick",function(e){var t=i.getMouseInfo(e);if(t){var n=RS(RS({},t),{},{isTooltipActive:!0});i.setState(n),i.triggerSyncEvent(n);var r=i.props.onClick;Cg()(r)&&r(n,e)}}),QS(i,"handleMouseDown",function(e){var t=i.props.onMouseDown;Cg()(t)&&t(i.getMouseInfo(e),e)}),QS(i,"handleMouseUp",function(e){var t=i.props.onMouseUp;Cg()(t)&&t(i.getMouseInfo(e),e)}),QS(i,"handleTouchMove",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&i.throttleTriggeredAfterMouseMove(e.changedTouches[0])}),QS(i,"handleTouchStart",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&i.handleMouseDown(e.changedTouches[0])}),QS(i,"handleTouchEnd",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&i.handleMouseUp(e.changedTouches[0])}),QS(i,"handleDoubleClick",function(e){var t=i.props.onDoubleClick;Cg()(t)&&t(i.getMouseInfo(e),e)}),QS(i,"handleContextMenu",function(e){var t=i.props.onContextMenu;Cg()(t)&&t(i.getMouseInfo(e),e)}),QS(i,"triggerSyncEvent",function(e){void 0!==i.props.syncId&&Dk.emit(Ek,i.props.syncId,e,i.eventEmitterSymbol)}),QS(i,"applySyncEvent",function(e){var t=i.props,n=t.layout,r=t.syncMethod,o=i.state.updateId,a=e.dataStartIndex,s=e.dataEndIndex;if(void 0!==e.dataStartIndex||void 0!==e.dataEndIndex)i.setState(RS({dataStartIndex:a,dataEndIndex:s},p({props:i.props,dataStartIndex:a,dataEndIndex:s,updateId:o},i.state)));else if(void 0!==e.activeTooltipIndex){var l=e.chartX,c=e.chartY,u=e.activeTooltipIndex,d=i.state,m=d.offset,f=d.tooltipTicks;if(!m)return;if("function"==typeof r)u=r(f,e);else if("value"===r){u=-1;for(var h=0;h<f.length;h++)if(f[h].value===e.activeLabel){u=h;break}}var g=RS(RS({},m),{},{x:m.left,y:m.top}),y=Math.min(l,g.x+g.width),v=Math.min(c,g.y+g.height),b=f[u]&&f[u].value,M=GS(i.state,i.props.data,u),x=f[u]?{x:"horizontal"===n?f[u].coordinate:y,y:"horizontal"===n?v:f[u].coordinate}:WS;i.setState(RS(RS({},e),{},{activeLabel:b,activeCoordinate:x,activePayload:M,activeTooltipIndex:u}))}else i.setState(e)}),QS(i,"renderCursor",function(e){var n,r=i.state,o=r.isTooltipActive,a=r.activeCoordinate,l=r.activePayload,c=r.offset,u=r.activeTooltipIndex,d=r.tooltipAxisBandSize,m=i.getTooltipEventType(),p=null!==(n=e.props.active)&&void 0!==n?n:o,f=i.props.layout,h=e.key||"_recharts-cursor";return s().createElement(jS,{key:h,activeCoordinate:a,activePayload:l,activeTooltipIndex:u,chartName:t,element:e,isActive:p,layout:f,offset:c,tooltipAxisBandSize:d,tooltipEventType:m})}),QS(i,"renderPolarAxis",function(e,t,n){var r=gg()(e,"type.axisType"),o=gg()(i.state,"".concat(r,"Map")),s=e.type.defaultProps,l=void 0!==s?RS(RS({},s),e.props):e.props,c=o&&o[l["".concat(r,"Id")]];return(0,a.cloneElement)(e,RS(RS({},c),{},{className:Jt(r,c.className),key:e.key||"".concat(t,"-").concat(n),ticks:GT(c,!0)}))}),QS(i,"renderPolarGrid",function(e){var t=e.props,n=t.radialLines,r=t.polarAngles,o=t.polarRadius,s=i.state,l=s.radiusAxisMap,c=s.angleAxisMap,u=Og(l),d=Og(c),m=d.cx,p=d.cy,f=d.innerRadius,h=d.outerRadius;return(0,a.cloneElement)(e,{polarAngles:Array.isArray(r)?r:GT(d,!0).map(function(e){return e.coordinate}),polarRadius:Array.isArray(o)?o:GT(u,!0).map(function(e){return e.coordinate}),cx:m,cy:p,innerRadius:f,outerRadius:h,key:e.key||"polar-grid",radialLines:n})}),QS(i,"renderLegend",function(){var e=i.state.formattedGraphicalItems,t=i.props,n=t.children,r=t.width,o=t.height,s=i.props.margin||{},l=r-(s.left||0)-(s.right||0),c=CT({children:n,formattedGraphicalItems:e,legendWidth:l,legendContent:u});if(!c)return null;var d=c.item,m=AS(c,DS);return(0,a.cloneElement)(d,RS(RS({},m),{},{chartWidth:r,chartHeight:o,margin:s,onBBoxUpdate:i.handleLegendBBoxUpdate}))}),QS(i,"renderTooltip",function(){var e,t=i.props,n=t.children,r=t.accessibilityLayer,o=ny(n,uv);if(!o)return null;var s=i.state,l=s.isTooltipActive,c=s.activeCoordinate,u=s.activePayload,d=s.activeLabel,m=s.offset,p=null!==(e=o.props.active)&&void 0!==e?e:l;return(0,a.cloneElement)(o,{viewBox:RS(RS({},m),{},{x:m.left,y:m.top}),active:p,label:d,payload:p?u:[],coordinate:c,accessibilityLayer:r})}),QS(i,"renderBrush",function(e){var t=i.props,n=t.margin,r=t.data,o=i.state,s=o.offset,l=o.dataStartIndex,c=o.dataEndIndex,u=o.updateId;return(0,a.cloneElement)(e,{key:e.key||"_recharts-brush",onChange:qT(i.handleBrushChange,e.props.onChange),data:r,x:Ng(e.props.x)?e.props.x:s.left,y:Ng(e.props.y)?e.props.y:s.top+s.height+s.brushBottom-(n.bottom||0),width:Ng(e.props.width)?e.props.width:s.width,startIndex:l,endIndex:c,updateId:"brush-".concat(u)})}),QS(i,"renderReferenceElement",function(e,t,n){if(!e)return null;var r=i.clipPathId,o=i.state,s=o.xAxisMap,l=o.yAxisMap,c=o.offset,u=e.type.defaultProps||{},d=e.props,m=d.xAxisId,p=void 0===m?u.xAxisId:m,f=d.yAxisId,h=void 0===f?u.yAxisId:f;return(0,a.cloneElement)(e,{key:e.key||"".concat(t,"-").concat(n),xAxis:s[p],yAxis:l[h],viewBox:{x:c.left,y:c.top,width:c.width,height:c.height},clipPathId:r})}),QS(i,"renderActivePoints",function(e){var t=e.item,r=e.activePoint,o=e.basePoint,a=e.childIndex,i=e.isRange,s=[],l=t.props.key,c=void 0!==t.item.type.defaultProps?RS(RS({},t.item.type.defaultProps),t.item.props):t.item.props,u=c.activeDot,d=RS(RS({index:a,dataKey:c.dataKey,cx:r.x,cy:r.y,r:4,fill:FT(t.item),strokeWidth:2,stroke:"#fff",payload:r.payload,value:r.value},ay(u,!1)),Wg(u));return s.push(n.renderActiveDot(u,d,"".concat(l,"-activePoint-").concat(a))),o?s.push(n.renderActiveDot(u,RS(RS({},d),{},{cx:o.x,cy:o.y}),"".concat(l,"-basePoint-").concat(a))):i&&s.push(null),s}),QS(i,"renderGraphicChild",function(e,t,n){var r=i.filterFormatItem(e,t,n);if(!r)return null;var o=i.getTooltipEventType(),s=i.state,l=s.isTooltipActive,c=s.tooltipAxis,u=s.activeTooltipIndex,d=s.activeLabel,m=ny(i.props.children,uv),p=r.props,f=p.points,h=p.isRange,g=p.baseLine,y=void 0!==r.item.type.defaultProps?RS(RS({},r.item.type.defaultProps),r.item.props):r.item.props,v=y.activeDot,b=y.hide,M=y.activeBar,x=y.activeShape,w=Boolean(!b&&l&&m&&(v||M||x)),N={};"axis"!==o&&m&&"click"===m.props.trigger?N={onClick:qT(i.handleItemMouseEnter,e.props.onClick)}:"axis"!==o&&(N={onMouseLeave:qT(i.handleItemMouseLeave,e.props.onMouseLeave),onMouseEnter:qT(i.handleItemMouseEnter,e.props.onMouseEnter)});var j=(0,a.cloneElement)(e,RS(RS({},r.props),N));if(w){if(!(u>=0)){var D,E=(null!==(D=i.getItemByXY(i.state.activeCoordinate))&&void 0!==D?D:{graphicalItem:j}).graphicalItem,T=E.item,O=void 0===T?e:T,I=E.childIndex,A=RS(RS(RS({},r.props),N),{},{activeIndex:I});return[(0,a.cloneElement)(O,A),null,null]}var k,S;if(c.dataKey&&!c.allowDuplicatedCategory){var _="function"==typeof c.dataKey?function(e){return"function"==typeof c.dataKey?c.dataKey(e.payload):null}:"payload.".concat(c.dataKey.toString());k=Ag(f,_,d),S=h&&g&&Ag(g,_,d)}else k=null==f?void 0:f[u],S=h&&g&&g[u];if(x||M){var C=void 0!==e.props.activeIndex?e.props.activeIndex:u;return[(0,a.cloneElement)(e,RS(RS(RS({},r.props),N),{},{activeIndex:C})),null,null]}if(!Mg()(k))return[j].concat(zS(i.renderActivePoints({item:r,activePoint:k,basePoint:S,childIndex:u,isRange:h})))}return h?[j,null,null]:[j,null]}),QS(i,"renderCustomized",function(e,t,n){return(0,a.cloneElement)(e,RS(RS({key:"recharts-customized-".concat(n)},i.props),i.state))}),QS(i,"renderMap",{CartesianGrid:{handler:VS,once:!0},ReferenceArea:{handler:i.renderReferenceElement},ReferenceLine:{handler:VS},ReferenceDot:{handler:i.renderReferenceElement},XAxis:{handler:VS},YAxis:{handler:VS},Brush:{handler:i.renderBrush,once:!0},Bar:{handler:i.renderGraphicChild},Line:{handler:i.renderGraphicChild},Area:{handler:i.renderGraphicChild},Radar:{handler:i.renderGraphicChild},RadialBar:{handler:i.renderGraphicChild},Scatter:{handler:i.renderGraphicChild},Pie:{handler:i.renderGraphicChild},Funnel:{handler:i.renderGraphicChild},Tooltip:{handler:i.renderCursor,once:!0},PolarGrid:{handler:i.renderPolarGrid,once:!0},PolarAngleAxis:{handler:i.renderPolarAxis},PolarRadiusAxis:{handler:i.renderPolarAxis},Customized:{handler:i.renderCustomized}}),i.clipPathId="".concat(null!==(r=e.id)&&void 0!==r?r:Eg("recharts"),"-clip"),i.throttleTriggeredAfterMouseMove=ug()(i.triggeredAfterMouseMove,null!==(o=e.throttleDelay)&&void 0!==o?o:1e3/60),i.state={},i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&CS(e,t)}(n,e),r=n,i=[{key:"componentDidMount",value:function(){var e,t;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(e=this.props.margin.left)&&void 0!==e?e:0,top:null!==(t=this.props.margin.top)&&void 0!==t?t:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var e=this.props,t=e.children,n=e.data,r=e.height,o=e.layout,a=ny(t,uv);if(a){var i=a.props.defaultIndex;if(!("number"!=typeof i||i<0||i>this.state.tooltipTicks.length-1)){var s=this.state.tooltipTicks[i]&&this.state.tooltipTicks[i].value,l=GS(this.state,n,i,s),c=this.state.tooltipTicks[i].coordinate,u=(this.state.offset.top+r)/2,d="horizontal"===o?{x:c,y:u}:{y:c,x:u},m=this.state.formattedGraphicalItems.find(function(e){return"Scatter"===e.item.type.name});m&&(d=RS(RS({},d),m.props.points[i].tooltipPosition),l=m.props.points[i].tooltipPayload);var p={activeTooltipIndex:i,isTooltipActive:!0,activeLabel:s,activePayload:l,activeCoordinate:d};this.setState(p),this.renderCursor(a),this.accessibilityManager.setIndex(i)}}}},{key:"getSnapshotBeforeUpdate",value:function(e,t){return this.props.accessibilityLayer?(this.state.tooltipTicks!==t.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==e.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==e.margin&&this.accessibilityManager.setDetails({offset:{left:null!==(n=this.props.margin.left)&&void 0!==n?n:0,top:null!==(r=this.props.margin.top)&&void 0!==r?r:0}}),null):null;var n,r}},{key:"componentDidUpdate",value:function(e){iy([ny(e.children,uv)],[ny(this.props.children,uv)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var e=ny(this.props.children,uv);if(e&&"boolean"==typeof e.props.shared){var t=e.props.shared?"axis":"item";return l.indexOf(t)>=0?t:o}return o}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t,n=this.container,r=n.getBoundingClientRect(),o=(t=r).top+window.scrollY-document.documentElement.clientTop,a=t.left+window.scrollX-document.documentElement.clientLeft,i={chartX:Math.round(e.pageX-a),chartY:Math.round(e.pageY-o)},s=r.width/n.offsetWidth||1,l=this.inRange(i.chartX,i.chartY,s);if(!l)return null;var c=this.state,u=c.xAxisMap,d=c.yAxisMap,m=this.getTooltipEventType(),p=ZS(this.state,this.props.data,this.props.layout,l);if("axis"!==m&&u&&d){var f=Og(u).scale,h=Og(d).scale,g=f&&f.invert?f.invert(i.chartX):null,y=h&&h.invert?h.invert(i.chartY):null;return RS(RS({},i),{},{xValue:g,yValue:y},p)}return p?RS(RS({},i),p):null}},{key:"inRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=this.props.layout,o=e/n,a=t/n;if("horizontal"===r||"vertical"===r){var i=this.state.offset;return o>=i.left&&o<=i.left+i.width&&a>=i.top&&a<=i.top+i.height?{x:o,y:a}:null}var s=this.state,l=s.angleAxisMap,c=s.radiusAxisMap;if(l&&c){var u=Og(l);return CO({x:o,y:a},u)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=ny(e,uv),r={};return n&&"axis"===t&&(r="click"===n.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu}),RS(RS({},Wg(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){Dk.on(Ek,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Dk.removeListener(Ek,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(e,t,n){for(var r=this.state.formattedGraphicalItems,o=0,a=r.length;o<a;o++){var i=r[o];if(i.item===e||i.props.key===e.key||t===Kg(i.item.type)&&n===i.childIndex)return i}return null}},{key:"renderClipPath",value:function(){var e=this.clipPathId,t=this.state.offset,n=t.left,r=t.top,o=t.height,a=t.width;return s().createElement("defs",null,s().createElement("clipPath",{id:e},s().createElement("rect",{x:n,y:r,height:o,width:a})))}},{key:"getXScales",value:function(){var e=this.state.xAxisMap;return e?Object.entries(e).reduce(function(e,t){var n=IS(t,2),r=n[0],o=n[1];return RS(RS({},e),{},QS({},r,o.scale))},{}):null}},{key:"getYScales",value:function(){var e=this.state.yAxisMap;return e?Object.entries(e).reduce(function(e,t){var n=IS(t,2),r=n[0],o=n[1];return RS(RS({},e),{},QS({},r,o.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(e){var t;return null===(t=this.state.xAxisMap)||void 0===t||null===(t=t[e])||void 0===t?void 0:t.scale}},{key:"getYScaleByAxisId",value:function(e){var t;return null===(t=this.state.yAxisMap)||void 0===t||null===(t=t[e])||void 0===t?void 0:t.scale}},{key:"getItemByXY",value:function(e){var t=this.state,n=t.formattedGraphicalItems,r=t.activeItem;if(n&&n.length)for(var o=0,a=n.length;o<a;o++){var i=n[o],s=i.props,l=i.item,c=void 0!==l.type.defaultProps?RS(RS({},l.type.defaultProps),l.props):l.props,u=Kg(l.type);if("Bar"===u){var d=(s.data||[]).find(function(t){return ZM(e,t)});if(d)return{graphicalItem:i,payload:d}}else if("RadialBar"===u){var m=(s.data||[]).find(function(t){return CO(e,t)});if(m)return{graphicalItem:i,payload:m}}else if(RI(i,r)||QI(i,r)||YI(i,r)){var p=VI({graphicalItem:i,activeTooltipItem:r,itemData:c.data}),f=void 0===c.activeIndex?p:c.activeIndex;return{graphicalItem:RS(RS({},i),{},{childIndex:f}),payload:YI(i,r)?c.data[p]:i.props.data[p]}}}return null}},{key:"render",value:function(){var e=this;if(!ry(this))return null;var t,n,r=this.props,o=r.children,a=r.className,i=r.width,l=r.height,c=r.style,u=r.compact,d=r.title,m=r.desc,p=AS(r,ES),f=ay(p,!1);if(u)return s().createElement($A,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},s().createElement(wy,OS({},f,{width:i,height:l,title:d,desc:m}),this.renderClipPath(),ly(o,this.renderMap)));this.props.accessibilityLayer&&(f.tabIndex=null!==(t=this.props.tabIndex)&&void 0!==t?t:0,f.role=null!==(n=this.props.role)&&void 0!==n?n:"application",f.onKeyDown=function(t){e.accessibilityManager.keyboardEvent(t)},f.onFocus=function(){e.accessibilityManager.focus()});var h=this.parseEventsOfWrapper();return s().createElement($A,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},s().createElement("div",OS({className:Jt("recharts-wrapper",a),style:RS({position:"relative",cursor:"default",width:i,height:l},c)},h,{ref:function(t){e.container=t}}),s().createElement(wy,OS({},f,{width:i,height:l,title:d,desc:m,style:FS}),this.renderClipPath(),ly(o,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}],i&&kS(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(a.Component);QS(f,"displayName",t),QS(f,"defaultProps",RS({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},m)),QS(f,"getDerivedStateFromProps",function(e,t){var n=e.dataKey,r=e.data,o=e.children,a=e.width,i=e.height,s=e.layout,l=e.stackOffset,c=e.margin,u=t.dataStartIndex,d=t.dataEndIndex;if(void 0===t.updateId){var m=KS(e);return RS(RS(RS({},m),{},{updateId:0},p(RS(RS({props:e},m),{},{updateId:0}),t)),{},{prevDataKey:n,prevData:r,prevWidth:a,prevHeight:i,prevLayout:s,prevStackOffset:l,prevMargin:c,prevChildren:o})}if(n!==t.prevDataKey||r!==t.prevData||a!==t.prevWidth||i!==t.prevHeight||s!==t.prevLayout||l!==t.prevStackOffset||!Ug(c,t.prevMargin)){var f=KS(e),h={chartX:t.chartX,chartY:t.chartY,isTooltipActive:t.isTooltipActive},g=RS(RS({},ZS(t,r,s)),{},{updateId:t.updateId+1}),y=RS(RS(RS({},f),h),g);return RS(RS(RS({},y),p(RS({props:e},y),t)),{},{prevDataKey:n,prevData:r,prevWidth:a,prevHeight:i,prevLayout:s,prevStackOffset:l,prevMargin:c,prevChildren:o})}if(!iy(o,t.prevChildren)){var v,b,M,x,w=ny(o,DO),N=w&&null!==(v=null===(b=w.props)||void 0===b?void 0:b.startIndex)&&void 0!==v?v:u,j=w&&null!==(M=null===(x=w.props)||void 0===x?void 0:x.endIndex)&&void 0!==M?M:d,D=N!==u||j!==d,E=Mg()(r)||D?t.updateId+1:t.updateId;return RS(RS({updateId:E},p(RS(RS({props:e},t),{},{updateId:E,dataStartIndex:N,dataEndIndex:j}),t)),{},{prevChildren:o,dataStartIndex:N,dataEndIndex:j})}return null}),QS(f,"renderActiveDot",function(e,t,n){var r;return r=(0,a.isValidElement)(e)?(0,a.cloneElement)(e,t):Cg()(e)?e(t):s().createElement(wb,t),s().createElement(Dy,{className:"recharts-active-dot",key:n},r)});var h=(0,a.forwardRef)(function(e,t){return s().createElement(f,OS({},e,{ref:t}))});return h.displayName=f.displayName,h}({chartName:"LineChart",GraphicalChild:h_,axisComponents:[{axisType:"xAxis",AxisComp:G_},{axisType:"yAxis",AxisComp:oC}],formatAxisMap:function(t,n,r,o,a){var i=t.width,s=t.height,l=t.layout,c=t.children,u=Object.keys(n),d={left:r.left,leftMirror:r.left,right:i-r.right,rightMirror:i-r.right,top:r.top,topMirror:r.top,bottom:s-r.bottom,bottomMirror:s-r.bottom},m=!!ny(c,mA);return u.reduce(function(i,s){var c,u,p,f,h,g=n[s],y=g.orientation,v=g.domain,b=g.padding,M=void 0===b?{}:b,x=g.mirror,w=g.reversed,N="".concat(y).concat(x?"Mirror":"");if("number"===g.type&&("gap"===g.padding||"no-gap"===g.padding)){var j=v[1]-v[0],D=1/0,E=g.categoricalDomain.sort(kg);if(E.forEach(function(e,t){t>0&&(D=Math.min((e||0)-(E[t-1]||0),D))}),Number.isFinite(D)){var T=D/j,O="vertical"===g.layout?r.height:r.width;if("gap"===g.padding&&(c=T*O/2),"no-gap"===g.padding){var I=Tg(t.barCategoryGap,T*O),A=T*O/2;c=A-I-(A-I)/O*I}}}u="xAxis"===o?[r.left+(M.left||0)+(c||0),r.left+r.width-(M.right||0)-(c||0)]:"yAxis"===o?"horizontal"===l?[r.top+r.height-(M.bottom||0),r.top+(M.top||0)]:[r.top+(M.top||0)+(c||0),r.top+r.height-(M.bottom||0)-(c||0)]:g.range,w&&(u=[u[1],u[0]]);var k=function(t,n,r){var o=t.scale,a=t.type,i=t.layout,s=t.axisType;if("auto"===o)return"radial"===i&&"radiusAxis"===s?{scale:ax(),realScaleType:"band"}:"radial"===i&&"angleAxis"===s?{scale:DN(),realScaleType:"linear"}:"category"===a&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:sx(),realScaleType:"point"}:"category"===a?{scale:ax(),realScaleType:"band"}:{scale:DN(),realScaleType:"linear"};if(mg()(o)){var l="scale".concat(mv()(o));return{scale:(e[l]||sx)(),realScaleType:e[l]?l:"point"}}return Cg()(o)?{scale:o}:{scale:sx(),realScaleType:"point"}}(g,a,m),S=k.scale,_=k.realScaleType;S.domain(v).range(u),function(e){var t=e.domain();if(t&&!(t.length<=2)){var n=t.length,r=e.range(),o=Math.min(r[0],r[1])-KT,a=Math.max(r[0],r[1])+KT,i=e(t[0]),s=e(t[n-1]);(i<o||i>a||s<o||s>a)&&e.domain([t[0],t[n-1]])}}(S);var C=function(e,t){var n=t.realScaleType,r=t.type,o=t.tickCount,a=t.originalDomain,i=t.allowDecimals,s=n||t.scale;if("auto"!==s&&"linear"!==s)return null;if(o&&"number"===r&&a&&("auto"===a[0]||"auto"===a[1])){var l=e.domain();if(!l.length)return null;var c=yT(l,o,i);return e.domain([BE()(c),QE()(c)]),{niceTicks:c}}if(o&&"number"===r){var u=e.domain();return{niceTicks:vT(u,o,i)}}return null}(S,gA(gA({},g),{},{realScaleType:_}));"xAxis"===o?(h="top"===y&&!x||"bottom"===y&&x,p=r.left,f=d[N]-h*g.height):"yAxis"===o&&(h="left"===y&&!x||"right"===y&&x,p=d[N]-h*g.width,f=r.top);var z=gA(gA(gA({},g),C),{},{realScaleType:_,x:p,y:f,scale:S,width:"xAxis"===o?r.width:g.width,height:"yAxis"===o?r.height:g.height});return z.bandSize=iO(z,C),g.hide||"xAxis"!==o?g.hide||(d[N]+=(h?-1:1)*z.width):d[N]+=(h?-1:1)*z.height,gA(gA({},i),{},yA({},s,z))},{})}}),iC=["x1","y1","x2","y2","key"],sC=["offset"];function lC(e){return lC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lC(e)}function cC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function uC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cC(Object(n),!0).forEach(function(t){dC(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cC(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function dC(e,t,n){return t=function(e){var t=function(e){if("object"!=lC(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=lC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==lC(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mC(){return mC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mC.apply(this,arguments)}function pC(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var fC=function(e){var t=e.fill;if(!t||"none"===t)return null;var n=e.fillOpacity,r=e.x,o=e.y,a=e.width,i=e.height,l=e.ry;return s().createElement("rect",{x:r,y:o,ry:l,width:a,height:i,stroke:"none",fill:t,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function hC(e,t){var n;if(s().isValidElement(e))n=s().cloneElement(e,t);else if(Cg()(e))n=e(t);else{var r=t.x1,o=t.y1,a=t.x2,i=t.y2,l=t.key,c=pC(t,iC),u=ay(c,!1),d=(u.offset,pC(u,sC));n=s().createElement("line",mC({},d,{x1:r,y1:o,x2:a,y2:i,fill:"none",key:l}))}return n}function gC(e){var t=e.x,n=e.width,r=e.horizontal,o=void 0===r||r,a=e.horizontalPoints;if(!o||!a||!a.length)return null;var i=a.map(function(r,a){var i=uC(uC({},e),{},{x1:t,y1:r,x2:t+n,y2:r,key:"line-".concat(a),index:a});return hC(o,i)});return s().createElement("g",{className:"recharts-cartesian-grid-horizontal"},i)}function yC(e){var t=e.y,n=e.height,r=e.vertical,o=void 0===r||r,a=e.verticalPoints;if(!o||!a||!a.length)return null;var i=a.map(function(r,a){var i=uC(uC({},e),{},{x1:r,y1:t,x2:r,y2:t+n,key:"line-".concat(a),index:a});return hC(o,i)});return s().createElement("g",{className:"recharts-cartesian-grid-vertical"},i)}function vC(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,o=e.y,a=e.width,i=e.height,l=e.horizontalPoints,c=e.horizontal;if(void 0!==c&&!c||!t||!t.length)return null;var u=l.map(function(e){return Math.round(e+o-o)}).sort(function(e,t){return e-t});o!==u[0]&&u.unshift(0);var d=u.map(function(e,l){var c=u[l+1]?u[l+1]-e:o+i-e;if(c<=0)return null;var d=l%t.length;return s().createElement("rect",{key:"react-".concat(l),y:e,x:r,height:c,width:a,stroke:"none",fill:t[d],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return s().createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},d)}function bC(e){var t=e.vertical,n=void 0===t||t,r=e.verticalFill,o=e.fillOpacity,a=e.x,i=e.y,l=e.width,c=e.height,u=e.verticalPoints;if(!n||!r||!r.length)return null;var d=u.map(function(e){return Math.round(e+a-a)}).sort(function(e,t){return e-t});a!==d[0]&&d.unshift(0);var m=d.map(function(e,t){var n=d[t+1]?d[t+1]-e:a+l-e;if(n<=0)return null;var u=t%r.length;return s().createElement("rect",{key:"react-".concat(t),x:e,y:i,width:n,height:c,stroke:"none",fill:r[u],fillOpacity:o,className:"recharts-cartesian-grid-bg"})});return s().createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},m)}var MC=function(e,t){var n=e.xAxis,r=e.width,o=e.height,a=e.offset;return HT(w_(uC(uC(uC({},U_.defaultProps),n),{},{ticks:GT(n,!0),viewBox:{x:0,y:0,width:r,height:o}})),a.left,a.left+a.width,t)},xC=function(e,t){var n=e.yAxis,r=e.width,o=e.height,a=e.offset;return HT(w_(uC(uC(uC({},U_.defaultProps),n),{},{ticks:GT(n,!0),viewBox:{x:0,y:0,width:r,height:o}})),a.top,a.top+a.height,t)},wC={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function NC(e){var t,n,r,o,i,l,c,u,d=ZA(),m=qA(),p=(0,a.useContext)(BA),f=uC(uC({},e),{},{stroke:null!==(t=e.stroke)&&void 0!==t?t:wC.stroke,fill:null!==(n=e.fill)&&void 0!==n?n:wC.fill,horizontal:null!==(r=e.horizontal)&&void 0!==r?r:wC.horizontal,horizontalFill:null!==(o=e.horizontalFill)&&void 0!==o?o:wC.horizontalFill,vertical:null!==(i=e.vertical)&&void 0!==i?i:wC.vertical,verticalFill:null!==(l=e.verticalFill)&&void 0!==l?l:wC.verticalFill,x:Ng(e.x)?e.x:p.left,y:Ng(e.y)?e.y:p.top,width:Ng(e.width)?e.width:p.width,height:Ng(e.height)?e.height:p.height}),h=f.x,g=f.y,y=f.width,v=f.height,b=f.syncWithTicks,M=f.horizontalValues,x=f.verticalValues,w=(c=(0,a.useContext)(RA),Og(c)),N=(u=(0,a.useContext)(QA),LA()(u,function(e){return GO()(e.domain,Number.isFinite)})||Og(u));if(!Ng(y)||y<=0||!Ng(v)||v<=0||!Ng(h)||h!==+h||!Ng(g)||g!==+g)return null;var j=f.verticalCoordinatesGenerator||MC,D=f.horizontalCoordinatesGenerator||xC,E=f.horizontalPoints,T=f.verticalPoints;if((!E||!E.length)&&Cg()(D)){var O=M&&M.length,I=D({yAxis:N?uC(uC({},N),{},{ticks:O?M:N.ticks}):void 0,width:d,height:m,offset:p},!!O||b);Sg(Array.isArray(I),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(lC(I),"]")),Array.isArray(I)&&(E=I)}if((!T||!T.length)&&Cg()(j)){var A=x&&x.length,k=j({xAxis:w?uC(uC({},w),{},{ticks:A?x:w.ticks}):void 0,width:d,height:m,offset:p},!!A||b);Sg(Array.isArray(k),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(lC(k),"]")),Array.isArray(k)&&(T=k)}return s().createElement("g",{className:"recharts-cartesian-grid"},s().createElement(fC,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),s().createElement(gC,mC({},f,{offset:p,horizontalPoints:E,xAxis:w,yAxis:N})),s().createElement(yC,mC({},f,{offset:p,verticalPoints:T,xAxis:w,yAxis:N})),s().createElement(vC,mC({},f,{horizontalPoints:E})),s().createElement(bC,mC({},f,{verticalPoints:T})))}NC.displayName="CartesianGrid";const jC=a.forwardRef(({active:e,payload:t,className:n,indicator:r="dot",hideLabel:o=!1,hideIndicator:a=!1,label:i,labelFormatter:s,labelClassName:l,formatter:c,color:u,nameKey:d="name",labelKey:m},p)=>{if(!e||!t?.length)return null;const f=1===t.length&&"dot"!==r;return(0,Ge.jsxs)("div",{ref:p,className:en("grid min-w-[8rem] items-start gap-1.5 rounded-lg border bg-tooltip-background-light px-3 py-2 text-xs shadow-xl",n),children:[f?null:(()=>{if(o||!t?.length)return null;const[e]=t,n=s?s(i||""):e[m]||i;return n?(0,Ge.jsx)("div",{className:en("font-medium",l),children:n}):null})(),(0,Ge.jsx)("div",{className:"grid gap-1.5",children:t.map((e,t)=>{const n=u||e.color||"#000";return(0,Ge.jsxs)("div",{className:en("flex w-full items-stretch gap-2","dot"===r&&"items-center"),children:[!a&&(0,Ge.jsx)("div",{className:en({"size-2.5 ":"dot"===r,"w-1 h-full":"line"===r,"w-0 border-[0.5px] border-dashed":"dashed"===r}),style:{backgroundColor:"dot"===r||"line"===r?n:"",borderColor:"dashed"===r?n:""}}),(0,Ge.jsxs)("div",{className:"flex-1 flex justify-between items-center gap-2",children:[(0,Ge.jsx)("span",{children:e[d]||e.dataKey}),(0,Ge.jsx)("span",{className:"font-mono font-medium",children:c?c(e.value??""):e.value??""})]})]},e.dataKey||t)})})]})});jC.displayName="ChartTooltipContent";const DC=(0,a.forwardRef)(({children:e=null,tag:t="label",size:n="sm",className:r="",variant:o="neutral",required:a=!1,...i},s)=>{if(!e)return null;let l="";return a&&(l="after:content-['*'] after:text-field-required after:ml-0.5"),(0,Ge.jsx)(t,{ref:s,className:en("font-medium text-field-label flex items-center gap-0.5",{xs:"text-xs [&>*]:text-xs [&>svg]:h-3 [&>svg]:w-3",sm:"text-sm [&>*]:text-sm [&>svg]:h-4 [&>svg]:w-4",md:"text-base [&>*]:text-base [&>svg]:h-5 [&>svg]:w-5"}[n],{neutral:"text-field-label [&>*]:text-field-label",help:"text-field-helper [&>*]:text-field-helper",error:"text-support-error [&>*]:text-support-error",disabled:"text-field-color-disabled disabled cursor-not-allowed [&>*]:text-field-color-disabled"}[o],l,{neutral:"",help:"font-normal",error:"font-normal",disabled:""}?.[o],r),...i,children:e})});DC.displayName="Label";const EC="#6B7280",TC=[{stroke:"#2563EB"},{stroke:"#38BDF8"}],OC=({data:e,dataKeys:t=[],colors:n=[],showXAxis:r=!1,showYAxis:o=!1,showTooltip:a=!0,tooltipIndicator:i="dot",tooltipLabelKey:s,showCartesianGrid:l=!0,xAxisTickFormatter:c,yAxisTickFormatter:u,tickFormatter:d,xAxisDataKey:m,yAxisDataKey:p,xAxisFontSize:f="sm",xAxisFontColor:h=EC,yAxisFontColor:g=EC,chartWidth:y=350,chartHeight:v=200,withDots:b=!1,lineChartWrapperProps:M,strokeDasharray:x="3 3",gridColor:w="#E5E7EB",biaxial:N=!1,noDataComponent:j})=>{const D=n.length>0?n:TC,E={sm:"12px",md:"14px",lg:"16px"},T=E[f]||E.sm,O=(e=0)=>Array.isArray(g)?g[e]||g[0]||EC:g;return e&&0!==e.length?(0,Ge.jsx)(fy,{width:y,height:v,children:(0,Ge.jsxs)(aC,{...M,data:e,children:[l&&(0,Ge.jsx)(NC,{strokeDasharray:x,horizontal:!1,stroke:w}),(0,Ge.jsx)(G_,{dataKey:m,tickLine:!1,axisLine:!1,tickMargin:8,tickFormatter:c||d,tick:{fontSize:T,fill:h},hide:!r,interval:"equidistantPreserveStart"}),(0,Ge.jsx)(oC,{yAxisId:"left",dataKey:N?t[0]:p,tickLine:!1,axisLine:!1,tickMargin:8,tickFormatter:u,tick:{fontSize:T,fill:O(0)},hide:!o,orientation:"left"}),N&&t.length>1&&(0,Ge.jsx)(oC,{yAxisId:"right",dataKey:t[1],tickLine:!1,axisLine:!1,tickMargin:8,tickFormatter:u,tick:{fontSize:T,fill:O(1)},orientation:"right",hide:!o}),a&&(0,Ge.jsx)(uv,{content:(0,Ge.jsx)(jC,{indicator:i,labelKey:s})}),t.map((e,t)=>{let n="left";return N&&t>0&&(n="right"),(0,Ge.jsx)(h_,{type:"monotone",dataKey:e,stroke:D[t].stroke,fill:D[t].stroke,strokeWidth:2,dot:b,yAxisId:n},e)})]})}):j||(0,Ge.jsx)(DC,{size:"sm",variant:"help",children:"No data available"})};function IC({title:e,titleId:t,...n},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 18 9 11.25l4.306 4.306a11.95 11.95 0 0 1 5.814-5.518l2.74-1.22m0 0-5.94-2.281m5.94 2.28-2.28 5.941"}))}const AC=a.forwardRef(IC);function kC({title:e,titleId:t,...n},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 6 9 12.75l4.286-4.286a11.948 11.948 0 0 1 4.306 6.43l.776 2.898m0 0 3.182-5.511m-3.182 5.51-5.511-3.181"}))}const SC=a.forwardRef(kC);function _C({title:e,titleId:t,...n},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"}))}const CC=a.forwardRef(_C);function zC({title:e,titleId:t,...n},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"}))}const LC=a.forwardRef(zC),PC=({className:e="",children:t})=>(0,a.createElement)("div",{className:`p-4 rounded-xl border border-solid border-gray-200 bg-white shadow-sm ${e}`},t);PC.propTypes={className:Jf().string,children:Jf().node.isRequired};const UC=PC,RC=({height:e,width:t,className:n})=>(0,a.createElement)("div",{className:`animate-pulse bg-gray-200 rounded-md ${n}`,style:{height:e||"1rem",width:t||"100%"}});RC.propTypes={height:Jf().string,width:Jf().string,className:Jf().string};const QC=RC,YC=Je("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),BC=Je("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),FC=(0,a.createContext)(void 0);function WC(){const e=(0,a.useContext)(FC);if(void 0===e)throw new Error("useDayPicker() must be used within a custom component.");return e}const VC={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function $C(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const HC={date:$C({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:$C({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:$C({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},GC={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function ZC(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=n?.width?String(n.width):t;r=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=n?.width?String(n.width):e.defaultWidth;r=e.values[o]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}const qC={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:ZC({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:ZC({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:ZC({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:ZC({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:ZC({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function KC(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const i=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}(s,e=>e.test(i)):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}(s,e=>e.test(i));let c;return c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c,{value:c,rest:t.slice(i.length)}}}const XC={ordinalNumber:(JC={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const n=e.match(JC.matchPattern);if(!n)return null;const r=n[0],o=e.match(JC.parsePattern);if(!o)return null;let a=JC.valueCallback?JC.valueCallback(o[0]):o[0];return a=t.valueCallback?t.valueCallback(a):a,{value:a,rest:e.slice(r.length)}}),era:KC({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:KC({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:KC({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:KC({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:KC({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};var JC;const ez={code:"en-US",formatDistance:(e,t,n)=>{let r;const o=VC[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:HC,formatRelative:(e,t,n,r)=>GC[e],localize:qC,match:XC,options:{weekStartsOn:0,firstWeekContainsDate:1}};let tz={};function nz(){return tz}Math.pow(10,8);const rz=6048e5,oz=Symbol.for("constructDateFrom");function az(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&oz in e?e[oz](t):e instanceof Date?new e.constructor(t):new Date(t)}function iz(e,t){return az(t||e,e)}function sz(e){const t=iz(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function lz(e,...t){const n=az.bind(null,e||t.find(e=>"object"==typeof e));return t.map(n)}function cz(e,t){const n=iz(e,t?.in);return n.setHours(0,0,0,0),n}function uz(e,t,n){const[r,o]=lz(n?.in,e,t),a=cz(r),i=cz(o),s=+a-sz(a),l=+i-sz(i);return Math.round((s-l)/864e5)}function dz(e,t){const n=iz(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function mz(e,t){const n=nz(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=iz(e,t?.in),a=o.getDay(),i=(a<r?7:0)+a-r;return o.setDate(o.getDate()-i),o.setHours(0,0,0,0),o}function pz(e,t){return mz(e,{...t,weekStartsOn:1})}function fz(e,t){const n=iz(e,t?.in),r=n.getFullYear(),o=az(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const a=pz(o),i=az(n,0);i.setFullYear(r,0,4),i.setHours(0,0,0,0);const s=pz(i);return n.getTime()>=a.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function hz(e,t){const n=iz(e,t?.in),r=+pz(n)-+function(e,t){const n=fz(e,t),r=az(t?.in||e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),pz(r)}(n);return Math.round(r/rz)+1}function gz(e,t){const n=iz(e,t?.in),r=n.getFullYear(),o=nz(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,i=az(t?.in||e,0);i.setFullYear(r+1,0,a),i.setHours(0,0,0,0);const s=mz(i,t),l=az(t?.in||e,0);l.setFullYear(r,0,a),l.setHours(0,0,0,0);const c=mz(l,t);return+n>=+s?r+1:+n>=+c?r:r-1}function yz(e,t){const n=iz(e,t?.in),r=+mz(n,t)-+function(e,t){const n=nz(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=gz(e,t),a=az(t?.in||e,0);return a.setFullYear(o,0,r),a.setHours(0,0,0,0),mz(a,t)}(n,t);return Math.round(r/rz)+1}function vz(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const bz={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return vz("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):vz(n+1,2)},d:(e,t)=>vz(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>vz(e.getHours()%12||12,t.length),H:(e,t)=>vz(e.getHours(),t.length),m:(e,t)=>vz(e.getMinutes(),t.length),s:(e,t)=>vz(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return vz(Math.trunc(r*Math.pow(10,n-3)),t.length)}},Mz={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return bz.y(e,t)},Y:function(e,t,n,r){const o=gz(e,r),a=o>0?o:1-o;return"YY"===t?vz(a%100,2):"Yo"===t?n.ordinalNumber(a,{unit:"year"}):vz(a,t.length)},R:function(e,t){return vz(fz(e),t.length)},u:function(e,t){return vz(e.getFullYear(),t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return vz(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return vz(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return bz.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return vz(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=yz(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):vz(o,t.length)},I:function(e,t,n){const r=hz(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):vz(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):bz.d(e,t)},D:function(e,t,n){const r=function(e,t){const n=iz(e,t?.in);return uz(n,dz(n))+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):vz(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return vz(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return vz(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return vz(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(o=12===r?"noon":0===r?"midnight":r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(o=r>=17?"evening":r>=12?"afternoon":r>=4?"morning":"night",t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return bz.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):bz.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):vz(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):vz(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):bz.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):bz.s(e,t)},S:function(e,t){return bz.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return wz(r);case"XXXX":case"XX":return Nz(r);default:return Nz(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return wz(r);case"xxxx":case"xx":return Nz(r);default:return Nz(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+xz(r,":");default:return"GMT"+Nz(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+xz(r,":");default:return"GMT"+Nz(r,":")}},t:function(e,t,n){return vz(Math.trunc(+e/1e3),t.length)},T:function(e,t,n){return vz(+e,t.length)}};function xz(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),a=r%60;return 0===a?n+String(o):n+String(o)+t+vz(a,2)}function wz(e,t){return e%60==0?(e>0?"-":"+")+vz(Math.abs(e)/60,2):Nz(e,t)}function Nz(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+vz(Math.trunc(r/60),2)+t+vz(r%60,2)}const jz=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},Dz=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},Ez={p:Dz,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return jz(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;default:a=t.dateTime({width:"full"})}return a.replace("{{date}}",jz(r,t)).replace("{{time}}",Dz(o,t))}},Tz=/^D+$/,Oz=/^Y+$/,Iz=["D","DD","YY","YYYY"];function Az(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}const kz=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Sz=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,_z=/^'([^]*?)'?$/,Cz=/''/g,zz=/[a-zA-Z]/;function Lz(e,t,n){const r=nz(),o=n?.locale??r.locale??ez,a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,i=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=iz(e,n?.in);if(!function(e){return!(!Az(e)&&"number"!=typeof e||isNaN(+iz(e)))}(s))throw new RangeError("Invalid time value");let l=t.match(Sz).map(e=>{const t=e[0];return"p"===t||"P"===t?(0,Ez[t])(e,o.formatLong):e}).join("").match(kz).map(e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:Pz(e)};if(Mz[t])return{isToken:!0,value:e};if(t.match(zz))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});o.localize.preprocessor&&(l=o.localize.preprocessor(s,l));const c={firstWeekContainsDate:a,weekStartsOn:i,locale:o};return l.map(r=>{if(!r.isToken)return r.value;const a=r.value;return(!n?.useAdditionalWeekYearTokens&&function(e){return Oz.test(e)}(a)||!n?.useAdditionalDayOfYearTokens&&function(e){return Tz.test(e)}(a))&&function(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(r),Iz.includes(e))throw new RangeError(r)}(a,t,String(e)),(0,Mz[a[0]])(s,a,o.localize,c)}).join("")}function Pz(e){const t=e.match(_z);return t?t[1].replace(Cz,"'"):e}const Uz={...ez,labels:{labelDayButton:(e,t,n,r)=>{let o;o=r&&"function"==typeof r.format?r.format.bind(r):(e,t)=>Lz(e,t,{locale:ez,...n});let a=o(e,"PPPP");return t.today&&(a=`Today, ${a}`),t.selected&&(a=`${a}, selected`),a},labelMonthDropdown:"Choose the Month",labelNext:"Go to the Next Month",labelPrevious:"Go to the Previous Month",labelWeekNumber:e=>`Week ${e}`,labelYearDropdown:"Choose the Year",labelGrid:(e,t,n)=>{let r;return r=n&&"function"==typeof n.format?n.format.bind(n):(e,n)=>Lz(e,n,{locale:ez,...t}),r(e,"LLLL yyyy")},labelGridcell:(e,t,n,r)=>{let o;o=r&&"function"==typeof r.format?r.format.bind(r):(e,t)=>Lz(e,t,{locale:ez,...n});let a=o(e,"PPPP");return t?.today&&(a=`Today, ${a}`),a},labelNav:"Navigation bar",labelWeekNumberHeader:"Week Number",labelWeekday:(e,t,n)=>{let r;return r=n&&"function"==typeof n.format?n.format.bind(n):(e,n)=>Lz(e,n,{locale:ez,...t}),r(e,"cccc")}}};Symbol.for("constructDateFrom");const Rz={},Qz={};function Yz(e,t){try{const n=(Rz[e]||=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format)(t).split("GMT")[1];return n in Qz?Qz[n]:Fz(n,n.split(":"))}catch{if(e in Qz)return Qz[e];const t=e?.match(Bz);return t?Fz(e,t.slice(1)):NaN}}const Bz=/([+-]\d\d):?(\d\d)?/;function Fz(e,t){const n=+(t[0]||0),r=+(t[1]||0),o=+(t[2]||0)/60;return Qz[e]=60*n+r>0?60*n+r+o:60*n-r-o}class Wz extends Date{constructor(...e){super(),e.length>1&&"string"==typeof e[e.length-1]&&(this.timeZone=e.pop()),this.internal=new Date,isNaN(Yz(this.timeZone,this))?this.setTime(NaN):e.length?"number"==typeof e[0]&&(1===e.length||2===e.length&&"number"!=typeof e[1])?this.setTime(e[0]):"string"==typeof e[0]?this.setTime(+new Date(e[0])):e[0]instanceof Date?this.setTime(+e[0]):(this.setTime(+new Date(...e)),Hz(this),$z(this)):this.setTime(Date.now())}static tz(e,...t){return t.length?new Wz(...t,e):new Wz(Date.now(),e)}withTimeZone(e){return new Wz(+this,e)}getTimezoneOffset(){const e=-Yz(this.timeZone,this);return e>0?Math.floor(e):Math.ceil(e)}setTime(e){return Date.prototype.setTime.apply(this,arguments),$z(this),+this}[Symbol.for("constructDateFrom")](e){return new Wz(+new Date(e),this.timeZone)}}const Vz=/^(get|set)(?!UTC)/;function $z(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(60*-Yz(e.timeZone,e)))}function Hz(e){const t=Yz(e.timeZone,e),n=t>0?Math.floor(t):Math.ceil(t),r=new Date(+e);r.setUTCHours(r.getUTCHours()-1);const o=-new Date(+e).getTimezoneOffset(),a=o- -new Date(+r).getTimezoneOffset(),i=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();a&&i&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+a);const s=o-n;s&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+s);const l=new Date(+e);l.setUTCSeconds(0);const c=o>0?l.getSeconds():(l.getSeconds()-60)%60,u=Math.round(-60*Yz(e.timeZone,e))%60;(u||c)&&(e.internal.setUTCSeconds(e.internal.getUTCSeconds()+u),Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+u+c));const d=Yz(e.timeZone,e),m=d>0?Math.floor(d):Math.ceil(d),p=-new Date(+e).getTimezoneOffset()-m-s;if(m!==n&&p){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+p);const t=Yz(e.timeZone,e),n=m-(t>0?Math.floor(t):Math.ceil(t));n&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+n),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+n))}}Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!Vz.test(e))return;const t=e.replace(Vz,"$1UTC");Wz.prototype[t]&&(e.startsWith("get")?Wz.prototype[e]=function(){return this.internal[t]()}:(Wz.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),function(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),Hz(e)}(this),+this},Wz.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),$z(this),+this}))});class Gz extends Wz{static tz(e,...t){return t.length?new Gz(...t,e):new Gz(Date.now(),e)}toISOString(){const[e,t,n]=this.tzComponents(),r=`${e}${t}:${n}`;return this.internal.toISOString().slice(0,-1)+r}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[e,t,n,r]=this.internal.toUTCString().split(" ");return`${e?.slice(0,-1)} ${n} ${t} ${r}`}toTimeString(){const e=this.internal.toUTCString().split(" ")[4],[t,n,r]=this.tzComponents();return`${e} GMT${t}${n}${r} (${function(e,t,n="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:n}).format(t).split(/\s/g).slice(2).join(" ")}(this.timeZone,this)})`}toLocaleString(e,t){return Date.prototype.toLocaleString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleDateString(e,t){return Date.prototype.toLocaleDateString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleTimeString(e,t){return Date.prototype.toLocaleTimeString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}tzComponents(){const e=this.getTimezoneOffset();return[e>0?"-":"+",String(Math.floor(Math.abs(e)/60)).padStart(2,"0"),String(Math.abs(e)%60).padStart(2,"0")]}withTimeZone(e){return new Gz(+this,e)}[Symbol.for("constructDateFrom")](e){return new Gz(+new Date(e),this.timeZone)}}function Zz(e,t,n){const r=iz(e,n?.in);return isNaN(t)?az(n?.in||e,NaN):t?(r.setDate(r.getDate()+t),r):r}function qz(e,t,n){const r=iz(e,n?.in);if(isNaN(t))return az(n?.in||e,NaN);if(!t)return r;const o=r.getDate(),a=az(n?.in||e,r.getTime());return a.setMonth(r.getMonth()+t+1,0),o>=a.getDate()?a:(r.setFullYear(a.getFullYear(),a.getMonth(),o),r)}function Kz(e,t,n){const[r,o]=lz(n?.in,e,t);return 12*(r.getFullYear()-o.getFullYear())+(r.getMonth()-o.getMonth())}function Xz(e,t){const[n,r]=lz(e,t.start,t.end);return{start:n,end:r}}function Jz(e,t){const n=nz(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=iz(e,t?.in),a=o.getDay(),i=6+(a<r?-7:0)-(a-r);return o.setDate(o.getDate()+i),o.setHours(23,59,59,999),o}function eL(e,t){const n=iz(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function tL(e,t){return+iz(e)>+iz(t)}function nL(e,t){return+iz(e)<+iz(t)}function rL(e,t,n){const r=iz(e,n?.in),o=r.getFullYear(),a=r.getDate(),i=az(n?.in||e,0);i.setFullYear(o,t,15),i.setHours(0,0,0,0);const s=function(e,t){const n=iz(e,t?.in),r=n.getFullYear(),o=n.getMonth(),a=az(n,0);return a.setFullYear(r,o+1,0),a.setHours(0,0,0,0),a.getDate()}(i);return r.setMonth(t,Math.min(a,s)),r}function oL(e,t){const n=iz(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function aL(e,t){const n=t.startOfMonth(e),r=n.getDay();return 1===r?n:0===r?t.addDays(n,-6):t.addDays(n,-1*(r-1))}class iL{constructor(e,t){this.Date=Date,this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?Gz.tz(this.options.timeZone):new this.Date,this.newDate=(e,t,n)=>this.overrides?.newDate?this.overrides.newDate(e,t,n):this.options.timeZone?new Gz(e,t,n,this.options.timeZone):new Date(e,t,n),this.addDays=(e,t)=>this.overrides?.addDays?this.overrides.addDays(e,t):Zz(e,t),this.addMonths=(e,t)=>this.overrides?.addMonths?this.overrides.addMonths(e,t):qz(e,t),this.addWeeks=(e,t)=>this.overrides?.addWeeks?this.overrides.addWeeks(e,t):function(e,t,n){return Zz(e,7*t,n)}(e,t),this.addYears=(e,t)=>this.overrides?.addYears?this.overrides.addYears(e,t):function(e,t,n){return qz(e,12*t,n)}(e,t),this.differenceInCalendarDays=(e,t)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(e,t):uz(e,t),this.differenceInCalendarMonths=(e,t)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(e,t):Kz(e,t),this.eachMonthOfInterval=e=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(e):function(e,t){const{start:n,end:r}=Xz(t?.in,e);let o=+n>+r;const a=o?+n:+r,i=o?r:n;i.setHours(0,0,0,0),i.setDate(1);let s=t?.step??1;if(!s)return[];s<0&&(s=-s,o=!o);const l=[];for(;+i<=a;)l.push(az(n,i)),i.setMonth(i.getMonth()+s);return o?l.reverse():l}(e),this.eachYearOfInterval=e=>{const t=this.overrides?.eachYearOfInterval?this.overrides.eachYearOfInterval(e):function(e,t){const{start:n,end:r}=Xz(t?.in,e);let o=+n>+r;const a=o?+n:+r,i=o?r:n;i.setHours(0,0,0,0),i.setMonth(0,1);let s=t?.step??1;if(!s)return[];s<0&&(s=-s,o=!o);const l=[];for(;+i<=a;)l.push(az(n,i)),i.setFullYear(i.getFullYear()+s);return o?l.reverse():l}(e),n=new Set(t.map(e=>this.getYear(e)));if(n.size===t.length)return t;const r=[];return n.forEach(e=>{r.push(new Date(e,0,1))}),r},this.endOfBroadcastWeek=e=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(e):function(e,t){const n=aL(e,t),r=function(e,t){const n=t.startOfMonth(e),r=n.getDay()>0?n.getDay():7,o=t.addDays(e,1-r),a=t.addDays(o,34);return t.getMonth(e)===t.getMonth(a)?5:4}(e,t);return t.addDays(n,7*r-1)}(e,this),this.endOfISOWeek=e=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(e):function(e,t){return Jz(e,{...t,weekStartsOn:1})}(e),this.endOfMonth=e=>this.overrides?.endOfMonth?this.overrides.endOfMonth(e):eL(e),this.endOfWeek=(e,t)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(e,t):Jz(e,this.options),this.endOfYear=e=>this.overrides?.endOfYear?this.overrides.endOfYear(e):function(e,t){const n=iz(e,t?.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}(e),this.format=(e,t,n)=>{const r=this.overrides?.format?this.overrides.format(e,t,this.options):Lz(e,t,this.options);return this.options.numerals&&"latn"!==this.options.numerals?this.replaceDigits(r):r},this.getISOWeek=e=>this.overrides?.getISOWeek?this.overrides.getISOWeek(e):hz(e),this.getMonth=(e,t)=>this.overrides?.getMonth?this.overrides.getMonth(e,this.options):function(e,t){return iz(e,t?.in).getMonth()}(e,this.options),this.getYear=(e,t)=>this.overrides?.getYear?this.overrides.getYear(e,this.options):function(e,t){return iz(e,t?.in).getFullYear()}(e,this.options),this.getWeek=(e,t)=>this.overrides?.getWeek?this.overrides.getWeek(e,this.options):yz(e,this.options),this.isAfter=(e,t)=>this.overrides?.isAfter?this.overrides.isAfter(e,t):tL(e,t),this.isBefore=(e,t)=>this.overrides?.isBefore?this.overrides.isBefore(e,t):nL(e,t),this.isDate=e=>this.overrides?.isDate?this.overrides.isDate(e):Az(e),this.isSameDay=(e,t)=>this.overrides?.isSameDay?this.overrides.isSameDay(e,t):function(e,t,n){const[r,o]=lz(n?.in,e,t);return+cz(r)===+cz(o)}(e,t),this.isSameMonth=(e,t)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(e,t):function(e,t,n){const[r,o]=lz(n?.in,e,t);return r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()}(e,t),this.isSameYear=(e,t)=>this.overrides?.isSameYear?this.overrides.isSameYear(e,t):function(e,t,n){const[r,o]=lz(n?.in,e,t);return r.getFullYear()===o.getFullYear()}(e,t),this.max=e=>this.overrides?.max?this.overrides.max(e):function(e,t){let n,r=t?.in;return e.forEach(e=>{r||"object"!=typeof e||(r=az.bind(null,e));const t=iz(e,r);(!n||n<t||isNaN(+t))&&(n=t)}),az(r,n||NaN)}(e),this.min=e=>this.overrides?.min?this.overrides.min(e):function(e,t){let n,r=t?.in;return e.forEach(e=>{r||"object"!=typeof e||(r=az.bind(null,e));const t=iz(e,r);(!n||n>t||isNaN(+t))&&(n=t)}),az(r,n||NaN)}(e),this.setMonth=(e,t)=>this.overrides?.setMonth?this.overrides.setMonth(e,t):rL(e,t),this.setYear=(e,t)=>this.overrides?.setYear?this.overrides.setYear(e,t):function(e,t,n){const r=iz(e,n?.in);return isNaN(+r)?az(n?.in||e,NaN):(r.setFullYear(t),r)}(e,t),this.startOfBroadcastWeek=(e,t)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(e,this):aL(e,this),this.startOfDay=e=>this.overrides?.startOfDay?this.overrides.startOfDay(e):cz(e),this.startOfISOWeek=e=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(e):pz(e),this.startOfMonth=e=>this.overrides?.startOfMonth?this.overrides.startOfMonth(e):oL(e),this.startOfWeek=(e,t)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(e,this.options):mz(e,this.options),this.startOfYear=e=>this.overrides?.startOfYear?this.overrides.startOfYear(e):dz(e),this.options={locale:Uz,...e},this.overrides=t}getDigitMap(){const{numerals:e="latn"}=this.options,t=new Intl.NumberFormat("en-US",{numberingSystem:e}),n={};for(let e=0;e<10;e++)n[e.toString()]=t.format(e);return n}replaceDigits(e){const t=this.getDigitMap();return e.replace(/\d/g,e=>t[e]||e)}formatNumber(e){return this.replaceDigits(e.toString())}getMonthYearOrder(){const e=this.options.locale?.code;return e&&iL.yearFirstLocales.has(e)?"year-first":"month-first"}formatMonthYear(e){const{locale:t,timeZone:n,numerals:r}=this.options,o=t?.code;if(o&&iL.yearFirstLocales.has(o))try{return new Intl.DateTimeFormat(o,{month:"long",year:"numeric",timeZone:n,numberingSystem:r}).format(e)}catch{}const a="year-first"===this.getMonthYearOrder()?"y LLLL":"LLLL y";return this.format(e,a)}}iL.yearFirstLocales=new Set(["eu","hu","ja","ja-Hira","ja-JP","ko","ko-KR","lt","lt-LT","lv","lv-LV","mn","mn-MN","zh","zh-CN","zh-HK","zh-TW"]);const sL=new iL;var lL,cL,uL,dL;function mL(e,t,n=!1,r=sL){let{from:o,to:a}=e;const{differenceInCalendarDays:i,isSameDay:s}=r;return o&&a?(i(a,o)<0&&([o,a]=[a,o]),i(t,o)>=(n?1:0)&&i(a,t)>=(n?1:0)):!n&&a?s(a,t):!(n||!o)&&s(o,t)}function pL(e){return Boolean(e&&"object"==typeof e&&"before"in e&&"after"in e)}function fL(e){return Boolean(e&&"object"==typeof e&&"from"in e)}function hL(e){return Boolean(e&&"object"==typeof e&&"after"in e)}function gL(e){return Boolean(e&&"object"==typeof e&&"before"in e)}function yL(e){return Boolean(e&&"object"==typeof e&&"dayOfWeek"in e)}function vL(e,t){return Array.isArray(e)&&e.every(t.isDate)}function bL(e,t,n=sL){const r=Array.isArray(t)?t:[t],{isSameDay:o,differenceInCalendarDays:a,isAfter:i}=n;return r.some(t=>{if("boolean"==typeof t)return t;if(n.isDate(t))return o(e,t);if(vL(t,n))return t.some(t=>o(e,t));if(fL(t))return mL(t,e,!1,n);if(yL(t))return Array.isArray(t.dayOfWeek)?t.dayOfWeek.includes(e.getDay()):t.dayOfWeek===e.getDay();if(pL(t)){const n=a(t.before,e)>0,r=a(t.after,e)<0;return i(t.before,t.after)?r&&n:n||r}return hL(t)?a(e,t.after)>0:gL(t)?a(t.before,e)>0:"function"==typeof t&&t(e)})}function ML(e){return a.createElement("button",{...e})}function xL(e){return a.createElement("span",{...e})}function wL(e){const{size:t=24,orientation:n="left",className:r}=e;return a.createElement("svg",{className:r,width:t,height:t,viewBox:"0 0 24 24"},"up"===n&&a.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),"down"===n&&a.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),"left"===n&&a.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),"right"===n&&a.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}function NL(e){const{day:t,modifiers:n,...r}=e;return a.createElement("td",{...r})}function jL(e){const{day:t,modifiers:n,...r}=e,o=a.useRef(null);return a.useEffect(()=>{n.focused&&o.current?.focus()},[n.focused]),a.createElement("button",{ref:o,...r})}function DL(e){const{options:t,className:n,components:r,classNames:o,...i}=e,s=[o[lL.Dropdown],n].join(" "),l=t?.find(({value:e})=>e===i.value);return a.createElement("span",{"data-disabled":i.disabled,className:o[lL.DropdownRoot]},a.createElement(r.Select,{className:s,...i},t?.map(({value:e,label:t,disabled:n})=>a.createElement(r.Option,{key:e,value:e,disabled:n},t))),a.createElement("span",{className:o[lL.CaptionLabel],"aria-hidden":!0},l?.label,a.createElement(r.Chevron,{orientation:"down",size:18,className:o[lL.Chevron]})))}function EL(e){return a.createElement("div",{...e})}function TL(e){return a.createElement("div",{...e})}function OL(e){const{calendarMonth:t,displayIndex:n,...r}=e;return a.createElement("div",{...r},e.children)}function IL(e){const{calendarMonth:t,displayIndex:n,...r}=e;return a.createElement("div",{...r})}function AL(e){return a.createElement("table",{...e})}function kL(e){return a.createElement("div",{...e})}function SL(e){const{components:t}=WC();return a.createElement(t.Dropdown,{...e})}function _L(e){const{onPreviousClick:t,onNextClick:n,previousMonth:r,nextMonth:o,...i}=e,{components:s,classNames:l,labels:{labelPrevious:c,labelNext:u}}=WC(),d=(0,a.useCallback)(e=>{o&&n?.(e)},[o,n]),m=(0,a.useCallback)(e=>{r&&t?.(e)},[r,t]);return a.createElement("nav",{...i},a.createElement(s.PreviousMonthButton,{type:"button",className:l[lL.PreviousMonthButton],tabIndex:r?void 0:-1,"aria-disabled":!r||void 0,"aria-label":c(r),onClick:m},a.createElement(s.Chevron,{disabled:!r||void 0,className:l[lL.Chevron],orientation:"left"})),a.createElement(s.NextMonthButton,{type:"button",className:l[lL.NextMonthButton],tabIndex:o?void 0:-1,"aria-disabled":!o||void 0,"aria-label":u(o),onClick:d},a.createElement(s.Chevron,{disabled:!o||void 0,orientation:"right",className:l[lL.Chevron]})))}function CL(e){const{components:t}=WC();return a.createElement(t.Button,{...e})}function zL(e){return a.createElement("option",{...e})}function LL(e){const{components:t}=WC();return a.createElement(t.Button,{...e})}function PL(e){const{rootRef:t,...n}=e;return a.createElement("div",{...n,ref:t})}function UL(e){return a.createElement("select",{...e})}function RL(e){const{week:t,...n}=e;return a.createElement("tr",{...n})}function QL(e){return a.createElement("th",{...e})}function YL(e){return a.createElement("thead",{"aria-hidden":!0},a.createElement("tr",{...e}))}function BL(e){const{week:t,...n}=e;return a.createElement("th",{...n})}function FL(e){return a.createElement("th",{...e})}function WL(e){return a.createElement("tbody",{...e})}function VL(e){const{components:t}=WC();return a.createElement(t.Dropdown,{...e})}function $L(){const e={};for(const t in lL)e[lL[t]]=`rdp-${lL[t]}`;for(const t in cL)e[cL[t]]=`rdp-${cL[t]}`;for(const t in uL)e[uL[t]]=`rdp-${uL[t]}`;for(const t in dL)e[dL[t]]=`rdp-${dL[t]}`;return e}function HL(e,t,n){return(n??new iL(t)).formatMonthYear(e)}!function(e){e.Root="root",e.Chevron="chevron",e.Day="day",e.DayButton="day_button",e.CaptionLabel="caption_label",e.Dropdowns="dropdowns",e.Dropdown="dropdown",e.DropdownRoot="dropdown_root",e.Footer="footer",e.MonthGrid="month_grid",e.MonthCaption="month_caption",e.MonthsDropdown="months_dropdown",e.Month="month",e.Months="months",e.Nav="nav",e.NextMonthButton="button_next",e.PreviousMonthButton="button_previous",e.Week="week",e.Weeks="weeks",e.Weekday="weekday",e.Weekdays="weekdays",e.WeekNumber="week_number",e.WeekNumberHeader="week_number_header",e.YearsDropdown="years_dropdown"}(lL||(lL={})),function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"}(cL||(cL={})),function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"}(uL||(uL={})),function(e){e.weeks_before_enter="weeks_before_enter",e.weeks_before_exit="weeks_before_exit",e.weeks_after_enter="weeks_after_enter",e.weeks_after_exit="weeks_after_exit",e.caption_after_enter="caption_after_enter",e.caption_after_exit="caption_after_exit",e.caption_before_enter="caption_before_enter",e.caption_before_exit="caption_before_exit"}(dL||(dL={}));const GL=HL;function ZL(e,t,n){return(n??new iL(t)).format(e,"d")}function qL(e,t=sL){return t.format(e,"LLLL")}function KL(e,t,n){return(n??new iL(t)).format(e,"cccccc")}function XL(e,t=sL){return e<10?t.formatNumber(`0${e.toLocaleString()}`):t.formatNumber(`${e.toLocaleString()}`)}function JL(){return""}function eP(e,t=sL){return t.format(e,"yyyy")}const tP=eP;function nP(e,t,n,r){let o=(r??new iL(n)).format(e,"PPPP");return t.today&&(o=`Today, ${o}`),t.selected&&(o=`${o}, selected`),o}const rP=nP;function oP(e,t,n){return(n??new iL(t)).formatMonthYear(e)}const aP=oP;function iP(e,t,n,r){let o=(r??new iL(n)).format(e,"PPPP");return t?.today&&(o=`Today, ${o}`),o}function sP(e){return"Choose the Month"}function lP(){return""}const cP="Go to the Next Month";function uP(e,t){return cP}function dP(e){return"Go to the Previous Month"}function mP(e,t,n){return(n??new iL(t)).format(e,"cccc")}function pP(e,t){return`Week ${e}`}function fP(e){return"Week Number"}function hP(e){return"Choose the Year"}const gP=(e,t,n)=>t||(n?"function"==typeof n?n:(...e)=>n:e);function yP(e,t){const n=t.locale?.labels??{};return{...r,...e??{},labelDayButton:gP(nP,e?.labelDayButton,n.labelDayButton),labelMonthDropdown:gP(sP,e?.labelMonthDropdown,n.labelMonthDropdown),labelNext:gP(uP,e?.labelNext,n.labelNext),labelPrevious:gP(dP,e?.labelPrevious,n.labelPrevious),labelWeekNumber:gP(pP,e?.labelWeekNumber,n.labelWeekNumber),labelYearDropdown:gP(hP,e?.labelYearDropdown,n.labelYearDropdown),labelGrid:gP(oP,e?.labelGrid,n.labelGrid),labelGridcell:gP(iP,e?.labelGridcell,n.labelGridcell),labelNav:gP(lP,e?.labelNav,n.labelNav),labelWeekNumberHeader:gP(fP,e?.labelWeekNumberHeader,n.labelWeekNumberHeader),labelWeekday:gP(mP,e?.labelWeekday,n.labelWeekday)}}function vP(e,t,n,r,o){const{startOfMonth:a,startOfYear:i,endOfYear:s,eachMonthOfInterval:l,getMonth:c}=o;return l({start:i(e),end:s(e)}).map(e=>{const i=r.formatMonthDropdown(e,o);return{value:c(e),label:i,disabled:t&&e<a(t)||n&&e>a(n)||!1}})}function bP(e,t,n,r,o=!1){if(!e)return;if(!t)return;const{startOfYear:a,endOfYear:i,eachYearOfInterval:s,getYear:l}=r,c=s({start:a(e),end:i(t)});return o&&c.reverse(),c.map(e=>{const t=n.formatYearDropdown(e,r);return{value:l(e),label:t,disabled:!1}})}const MP=e=>e instanceof HTMLElement?e:null,xP=e=>[...e.querySelectorAll("[data-animated-month]")??[]],wP=e=>MP(e.querySelector("[data-animated-caption]")),NP=e=>MP(e.querySelector("[data-animated-weeks]"));function jP(e,t,n,r){const{month:o,defaultMonth:a,today:i=r.today(),numberOfMonths:s=1}=e;let l=o||a||i;const{differenceInCalendarMonths:c,addMonths:u,startOfMonth:d}=r;return n&&c(n,l)<s-1&&(l=u(n,-1*(s-1))),t&&c(l,t)<0&&(l=t),d(l)}class DP{constructor(e,t,n=sL){this.date=e,this.displayMonth=t,this.outside=Boolean(t&&!n.isSameMonth(e,t)),this.dateLib=n,this.isoDate=n.format(e,"yyyy-MM-dd"),this.displayMonthId=n.format(t,"yyyy-MM"),this.dateMonthId=n.format(e,"yyyy-MM")}isEqualTo(e){return this.dateLib.isSameDay(e.date,this.date)&&this.dateLib.isSameMonth(e.displayMonth,this.displayMonth)}}class EP{constructor(e,t){this.days=t,this.weekNumber=e}}class TP{constructor(e,t){this.date=e,this.weeks=t}}function OP(e,t){const[n,r]=(0,a.useState)(e);return[void 0===t?n:t,r]}var IP;function AP(e){return!e[cL.disabled]&&!e[cL.hidden]&&!e[cL.outside]}function kP(e,t,n,r,o,a,i,s=0){if(s>365)return;const l=function(e,t,n,r,o,a,i){const{ISOWeek:s,broadcastCalendar:l}=a,{addDays:c,addMonths:u,addWeeks:d,addYears:m,endOfBroadcastWeek:p,endOfISOWeek:f,endOfWeek:h,max:g,min:y,startOfBroadcastWeek:v,startOfISOWeek:b,startOfWeek:M}=i,x={day:c,week:d,month:u,year:m,startOfWeek:e=>l?v(e,i):s?b(e):M(e),endOfWeek:e=>l?p(e):s?f(e):h(e)};let w=x[e](n,"after"===t?1:-1);return"before"===t&&r?w=g([r,w]):"after"===t&&o&&(w=y([o,w])),w}(e,t,n.date,r,o,a,i),c=Boolean(a.disabled&&bL(l,a.disabled,i)),u=Boolean(a.hidden&&bL(l,a.hidden,i)),d=new DP(l,l,i);return c||u?kP(e,t,d,r,o,a,i,s+1):d}function SP(e,t,n,r,o){const{autoFocus:i}=e,[s,l]=(0,a.useState)(),c=function(e,t,n,r){let o,a=-1;for(const i of e){const e=t(i);AP(e)&&(e[cL.focused]&&a<IP.FocusedModifier?(o=i,a=IP.FocusedModifier):r?.isEqualTo(i)&&a<IP.LastFocused?(o=i,a=IP.LastFocused):n(i.date)&&a<IP.Selected?(o=i,a=IP.Selected):e[cL.today]&&a<IP.Today&&(o=i,a=IP.Today))}return o||(o=e.find(e=>AP(t(e)))),o}(t.days,n,r||(()=>!1),s),[u,d]=(0,a.useState)(i?c:void 0);return{isFocusTarget:e=>Boolean(c?.isEqualTo(e)),setFocused:d,focused:u,blur:()=>{l(u),d(void 0)},moveFocus:(n,r)=>{if(!u)return;const a=kP(n,r,u,t.navStart,t.navEnd,e,o);if(a){if(e.disableNavigation&&!t.days.some(e=>e.isEqualTo(a)))return;t.goToDay(a),d(a)}}}}function _P(e,t,n=sL){return mL(e,t.from,!1,n)||mL(e,t.to,!1,n)||mL(t,e.from,!1,n)||mL(t,e.to,!1,n)}function CP(e,t){const{disabled:n,excludeDisabled:r,selected:o,required:a,onSelect:i}=e,[s,l]=OP(o,i?o:void 0),c=i?o:s;return{selected:c,select:(o,s,u)=>{const{min:d,max:m}=e,p=o?function(e,t,n=0,r=0,o=!1,a=sL){const{from:i,to:s}=t||{},{isSameDay:l,isAfter:c,isBefore:u}=a;let d;if(i||s){if(i&&!s)d=l(i,e)?0===n?{from:i,to:e}:o?{from:i,to:void 0}:void 0:u(e,i)?{from:e,to:i}:{from:i,to:e};else if(i&&s)if(l(i,e)&&l(s,e))d=o?{from:i,to:s}:void 0;else if(l(i,e))d={from:i,to:n>0?void 0:e};else if(l(s,e))d={from:e,to:n>0?void 0:e};else if(u(e,i))d={from:e,to:s};else if(c(e,i))d={from:i,to:e};else{if(!c(e,s))throw new Error("Invalid range");d={from:i,to:e}}}else d={from:e,to:n>0?void 0:e};if(d?.from&&d?.to){const t=a.differenceInCalendarDays(d.to,d.from);(r>0&&t>r||n>1&&t<n)&&(d={from:e,to:void 0})}return d}(o,c,d,m,a,t):void 0;return r&&n&&p?.from&&p.to&&function(e,t,n=sL){const r=Array.isArray(t)?t:[t],o=r.filter(e=>"function"!=typeof e).some(t=>"boolean"==typeof t?t:n.isDate(t)?mL(e,t,!1,n):vL(t,n)?t.some(t=>mL(e,t,!1,n)):fL(t)?!(!t.from||!t.to)&&_P(e,{from:t.from,to:t.to},n):yL(t)?function(e,t,n=sL){const r=Array.isArray(t)?t:[t];let o=e.from;const a=n.differenceInCalendarDays(e.to,e.from),i=Math.min(a,6);for(let e=0;e<=i;e++){if(r.includes(o.getDay()))return!0;o=n.addDays(o,1)}return!1}(e,t.dayOfWeek,n):pL(t)?n.isAfter(t.before,t.after)?_P(e,{from:n.addDays(t.after,1),to:n.addDays(t.before,-1)},n):bL(e.from,t,n)||bL(e.to,t,n):!(!hL(t)&&!gL(t))&&(bL(e.from,t,n)||bL(e.to,t,n)));if(o)return!0;const a=r.filter(e=>"function"==typeof e);if(a.length){let t=e.from;const r=n.differenceInCalendarDays(e.to,e.from);for(let e=0;e<=r;e++){if(a.some(e=>e(t)))return!0;t=n.addDays(t,1)}}return!1}({from:p.from,to:p.to},n,t)&&(p.from=o,p.to=void 0),i||l(p),i?.(p,o,s,u),p},isSelected:e=>c&&mL(c,e,!1,t)}}function zP(e,t){return e instanceof Gz&&e.timeZone===t?e:new Gz(e,t)}function LP(e,t,n){if(!n)return zP(e,t);const r=zP(e,t),o=new Gz(r.getFullYear(),r.getMonth(),r.getDate(),12,0,0,t);return new Date(o.getTime())}function PP(e,t,n){return"boolean"==typeof e||"function"==typeof e?e:e instanceof Date?LP(e,t,n):Array.isArray(e)?e.map(e=>e instanceof Date?LP(e,t,n):e):fL(e)?{...e,from:e.from?zP(e.from,t):e.from,to:e.to?zP(e.to,t):e.to}:pL(e)?{before:LP(e.before,t,n),after:LP(e.after,t,n)}:hL(e)?{after:LP(e.after,t,n)}:gL(e)?{before:LP(e.before,t,n)}:e}function UP(e,t,n){return e?Array.isArray(e)?e.map(e=>PP(e,t,n)):PP(e,t,n):e}function RP(e){let r=e;const o=r.timeZone;if(o&&(r={...e,timeZone:o},r.today&&(r.today=zP(r.today,o)),r.month&&(r.month=zP(r.month,o)),r.defaultMonth&&(r.defaultMonth=zP(r.defaultMonth,o)),r.startMonth&&(r.startMonth=zP(r.startMonth,o)),r.endMonth&&(r.endMonth=zP(r.endMonth,o)),"single"===r.mode&&r.selected?r.selected=zP(r.selected,o):"multiple"===r.mode&&r.selected?r.selected=r.selected?.map(e=>zP(e,o)):"range"===r.mode&&r.selected&&(r.selected={from:r.selected.from?zP(r.selected.from,o):r.selected.from,to:r.selected.to?zP(r.selected.to,o):r.selected.to}),void 0!==r.disabled&&(r.disabled=UP(r.disabled,o)),void 0!==r.hidden&&(r.hidden=UP(r.hidden,o)),r.modifiers)){const e={};Object.keys(r.modifiers).forEach(t=>{e[t]=UP(r.modifiers?.[t],o)}),r.modifiers=e}const{components:i,formatters:s,labels:l,dateLib:c,locale:u,classNames:d}=(0,a.useMemo)(()=>{const e={...Uz,...r.locale},o=r.broadcastCalendar?1:r.weekStartsOn,a=r.noonSafe&&r.timeZone?function(e,t={}){const{weekStartsOn:n,locale:r}=t,o=n??r?.options?.weekStartsOn??0,a=t=>{const n="number"==typeof t||"string"==typeof t?new Date(t):t;return new Gz(n.getFullYear(),n.getMonth(),n.getDate(),12,0,0,e)},i=e=>{const t=a(e);return new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0)};return{today:()=>a(Gz.tz(e)),newDate:(t,n,r)=>new Gz(t,n,r,12,0,0,e),startOfDay:e=>a(e),startOfWeek:(e,t)=>{const n=a(e),r=t?.weekStartsOn??o,i=(n.getDay()-r+7)%7;return n.setDate(n.getDate()-i),n},startOfISOWeek:e=>{const t=a(e),n=(t.getDay()-1+7)%7;return t.setDate(t.getDate()-n),t},startOfMonth:e=>{const t=a(e);return t.setDate(1),t},startOfYear:e=>{const t=a(e);return t.setMonth(0,1),t},endOfWeek:(e,t)=>{const n=a(e),r=(((t?.weekStartsOn??o)+6)%7-n.getDay()+7)%7;return n.setDate(n.getDate()+r),n},endOfISOWeek:e=>{const t=a(e),n=(7-t.getDay())%7;return t.setDate(t.getDate()+n),t},endOfMonth:e=>{const t=a(e);return t.setMonth(t.getMonth()+1,0),t},endOfYear:e=>{const t=a(e);return t.setMonth(11,31),t},eachMonthOfInterval:t=>{const n=a(t.start),r=a(t.end),o=[],i=new Gz(n.getFullYear(),n.getMonth(),1,12,0,0,e),s=12*r.getFullYear()+r.getMonth();for(;12*i.getFullYear()+i.getMonth()<=s;)o.push(new Gz(i,e)),i.setMonth(i.getMonth()+1,1);return o},addDays:(e,t)=>{const n=a(e);return n.setDate(n.getDate()+t),n},addWeeks:(e,t)=>{const n=a(e);return n.setDate(n.getDate()+7*t),n},addMonths:(e,t)=>{const n=a(e);return n.setMonth(n.getMonth()+t),n},addYears:(e,t)=>{const n=a(e);return n.setFullYear(n.getFullYear()+t),n},eachYearOfInterval:t=>{const n=a(t.start),r=a(t.end),o=[],i=new Gz(n.getFullYear(),0,1,12,0,0,e);for(;i.getFullYear()<=r.getFullYear();)o.push(new Gz(i,e)),i.setFullYear(i.getFullYear()+1,0,1);return o},getWeek:(e,t)=>yz(i(e),{weekStartsOn:t?.weekStartsOn??o,firstWeekContainsDate:t?.firstWeekContainsDate??r?.options?.firstWeekContainsDate??1}),getISOWeek:e=>hz(i(e)),differenceInCalendarDays:(e,t)=>uz(i(e),i(t)),differenceInCalendarMonths:(e,t)=>Kz(i(e),i(t))}}(r.timeZone,{weekStartsOn:o,locale:e}):void 0,i=r.dateLib&&a?{...a,...r.dateLib}:r.dateLib??a,s=new iL({locale:e,weekStartsOn:o,firstWeekContainsDate:r.firstWeekContainsDate,useAdditionalWeekYearTokens:r.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:r.useAdditionalDayOfYearTokens,timeZone:r.timeZone,numerals:r.numerals},i);return{dateLib:s,components:(c=r.components,{...t,...c}),formatters:(l=r.formatters,l?.formatMonthCaption&&!l.formatCaption&&(l.formatCaption=l.formatMonthCaption),l?.formatYearCaption&&!l.formatYearDropdown&&(l.formatYearDropdown=l.formatYearCaption),{...n,...l}),labels:yP(r.labels,s.options),locale:e,classNames:{...$L(),...r.classNames}};var l,c},[r.locale,r.broadcastCalendar,r.weekStartsOn,r.firstWeekContainsDate,r.useAdditionalWeekYearTokens,r.useAdditionalDayOfYearTokens,r.timeZone,r.numerals,r.dateLib,r.noonSafe,r.components,r.formatters,r.labels,r.classNames]);r.today||(r={...r,today:c.today()});const{captionLayout:m,mode:p,navLayout:f,numberOfMonths:h=1,onDayBlur:g,onDayClick:y,onDayFocus:v,onDayKeyDown:b,onDayMouseEnter:M,onDayMouseLeave:x,onNextClick:w,onPrevClick:N,showWeekNumber:j,styles:D}=r,{formatCaption:E,formatDay:T,formatMonthDropdown:O,formatWeekNumber:I,formatWeekNumberHeader:A,formatWeekdayName:k,formatYearDropdown:S}=s,_=function(e,t){const[n,r]=function(e,t){let{startMonth:n,endMonth:r}=e;const{startOfYear:o,startOfDay:a,startOfMonth:i,endOfMonth:s,addYears:l,endOfYear:c,newDate:u,today:d}=t,{fromYear:m,toYear:p,fromMonth:f,toMonth:h}=e;!n&&f&&(n=f),!n&&m&&(n=t.newDate(m,0,1)),!r&&h&&(r=h),!r&&p&&(r=u(p,11,31));const g="dropdown"===e.captionLayout||"dropdown-years"===e.captionLayout;return n?n=i(n):m?n=u(m,0,1):!n&&g&&(n=o(l(e.today??d(),-100))),r?r=s(r):p?r=u(p,11,31):!r&&g&&(r=c(e.today??d())),[n?a(n):n,r?a(r):r]}(e,t),{startOfMonth:o,endOfMonth:i}=t,s=jP(e,n,r,t),[l,c]=OP(s,e.month?s:void 0);(0,a.useEffect)(()=>{const o=jP(e,n,r,t);c(o)},[e.timeZone]);const{months:u,weeks:d,days:m,previousMonth:p,nextMonth:f}=(0,a.useMemo)(()=>{const o=function(e,t,n,r){const{numberOfMonths:o=1}=n,a=[];for(let n=0;n<o;n++){const o=r.addMonths(e,n);if(t&&o>t)break;a.push(o)}return a}(l,r,{numberOfMonths:e.numberOfMonths},t),a=function(e,t,n,r){const o=e[0],a=e[e.length-1],{ISOWeek:i,fixedWeeks:s,broadcastCalendar:l}=n??{},{addDays:c,differenceInCalendarDays:u,differenceInCalendarMonths:d,endOfBroadcastWeek:m,endOfISOWeek:p,endOfMonth:f,endOfWeek:h,isAfter:g,startOfBroadcastWeek:y,startOfISOWeek:v,startOfWeek:b}=r,M=l?y(o,r):i?v(o):b(o),x=l?m(a):i?p(f(a)):h(f(a)),w=t&&(l?m(t):i?p(t):h(t)),N=u(w&&g(x,w)?w:x,M),j=d(a,o)+1,D=[];for(let e=0;e<=N;e++){const t=c(M,e);D.push(t)}const E=(l?35:42)*j;if(s&&D.length<E){const e=E-D.length;for(let t=0;t<e;t++){const e=c(D[D.length-1],1);D.push(e)}}return D}(o,e.endMonth?i(e.endMonth):void 0,{ISOWeek:e.ISOWeek,fixedWeeks:e.fixedWeeks,broadcastCalendar:e.broadcastCalendar},t),s=function(e,t,n,r){const{addDays:o,endOfBroadcastWeek:a,endOfISOWeek:i,endOfMonth:s,endOfWeek:l,getISOWeek:c,getWeek:u,startOfBroadcastWeek:d,startOfISOWeek:m,startOfWeek:p}=r,f=e.reduce((e,f)=>{const h=n.broadcastCalendar?d(f,r):n.ISOWeek?m(f):p(f),g=n.broadcastCalendar?a(f):n.ISOWeek?i(s(f)):l(s(f)),y=t.filter(e=>e>=h&&e<=g),v=n.broadcastCalendar?35:42;if(n.fixedWeeks&&y.length<v){const e=t.filter(e=>{const t=v-y.length;return e>g&&e<=o(g,t)});y.push(...e)}const b=y.reduce((e,t)=>{const o=n.ISOWeek?c(t):u(t),a=e.find(e=>e.weekNumber===o),i=new DP(t,f,r);return a?a.days.push(i):e.push(new EP(o,[i])),e},[]),M=new TP(f,b);return e.push(M),e},[]);return n.reverseMonths?f.reverse():f}(o,a,{broadcastCalendar:e.broadcastCalendar,fixedWeeks:e.fixedWeeks,ISOWeek:e.ISOWeek,reverseMonths:e.reverseMonths},t),c=function(e){return e.reduce((e,t)=>e.concat(t.weeks.slice()),[].slice())}(s),u=function(e){const t=[];return e.reduce((e,n)=>{const r=n.weeks.reduce((e,t)=>e.concat(t.days.slice()),t.slice());return e.concat(r.slice())},t.slice())}(s),d=function(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:a}=n,{startOfMonth:i,addMonths:s,differenceInCalendarMonths:l}=r,c=o?a??1:1,u=i(e);return t&&l(u,t)<=0?void 0:s(u,-c)}(l,n,e,t),m=function(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:a=1}=n,{startOfMonth:i,addMonths:s,differenceInCalendarMonths:l}=r,c=o?a:1,u=i(e);return t&&l(t,e)<a?void 0:s(u,c)}(l,r,e,t);return{months:s,weeks:c,days:u,previousMonth:d,nextMonth:m}},[t,l.getTime(),r?.getTime(),n?.getTime(),e.disableNavigation,e.broadcastCalendar,e.endMonth?.getTime(),e.fixedWeeks,e.ISOWeek,e.numberOfMonths,e.pagedNavigation,e.reverseMonths]),{disableNavigation:h,onMonthChange:g}=e,y=e=>{if(h)return;let t=o(e);n&&t<o(n)&&(t=o(n)),r&&t>o(r)&&(t=o(r)),c(t),g?.(t)};return{months:u,weeks:d,days:m,navStart:n,navEnd:r,previousMonth:p,nextMonth:f,goToMonth:y,goToDay:e=>{(e=>d.some(t=>t.days.some(t=>t.isEqualTo(e))))(e)||y(e.date)}}}(r,c),{days:C,months:z,navStart:L,navEnd:P,previousMonth:U,nextMonth:R,goToMonth:Q}=_,Y=function(e,t,n,r,o){const{disabled:a,hidden:i,modifiers:s,showOutsideDays:l,broadcastCalendar:c,today:u=o.today()}=t,{isSameDay:d,isSameMonth:m,startOfMonth:p,isBefore:f,endOfMonth:h,isAfter:g}=o,y=n&&p(n),v=r&&h(r),b={[cL.focused]:[],[cL.outside]:[],[cL.disabled]:[],[cL.hidden]:[],[cL.today]:[]},M={};for(const t of e){const{date:e,displayMonth:n}=t,r=Boolean(n&&!m(e,n)),p=Boolean(y&&f(e,y)),h=Boolean(v&&g(e,v)),x=Boolean(a&&bL(e,a,o)),w=Boolean(i&&bL(e,i,o))||p||h||!c&&!l&&r||c&&!1===l&&r,N=d(e,u);r&&b.outside.push(t),x&&b.disabled.push(t),w&&b.hidden.push(t),N&&b.today.push(t),s&&Object.keys(s).forEach(n=>{const r=s?.[n];r&&bL(e,r,o)&&(M[n]?M[n].push(t):M[n]=[t])})}return e=>{const t={[cL.focused]:!1,[cL.disabled]:!1,[cL.hidden]:!1,[cL.outside]:!1,[cL.today]:!1},n={};for(const n in b){const r=b[n];t[n]=r.some(t=>t===e)}for(const t in M)n[t]=M[t].some(t=>t===e);return{...t,...n}}}(C,r,L,P,c),{isSelected:B,select:F,selected:W}=function(e,t){const n=function(e,t){const{selected:n,required:r,onSelect:o}=e,[a,i]=OP(n,o?n:void 0),s=o?n:a,{isSameDay:l}=t;return{selected:s,select:(e,t,n)=>{let a=e;return!r&&s&&s&&l(e,s)&&(a=void 0),o||i(a),o?.(a,e,t,n),a},isSelected:e=>!!s&&l(s,e)}}(e,t),r=function(e,t){const{selected:n,required:r,onSelect:o}=e,[a,i]=OP(n,o?n:void 0),s=o?n:a,{isSameDay:l}=t,c=e=>s?.some(t=>l(t,e))??!1,{min:u,max:d}=e;return{selected:s,select:(e,t,n)=>{let a=[...s??[]];if(c(e)){if(s?.length===u)return;if(r&&1===s?.length)return;a=s?.filter(t=>!l(t,e))}else a=s?.length===d?[e]:[...a,e];return o||i(a),o?.(a,e,t,n),a},isSelected:c}}(e,t),o=CP(e,t);switch(e.mode){case"single":return n;case"multiple":return r;case"range":return o;default:return}}(r,c)??{},{blur:V,focused:$,isFocusTarget:H,moveFocus:G,setFocused:Z}=SP(r,_,Y,B??(()=>!1),c),{labelDayButton:q,labelGridcell:K,labelGrid:X,labelMonthDropdown:J,labelNav:ee,labelPrevious:te,labelNext:ne,labelWeekday:re,labelWeekNumber:oe,labelWeekNumberHeader:ae,labelYearDropdown:ie}=l,se=(0,a.useMemo)(()=>function(e,t,n,r){const o=r??e.today(),a=n?e.startOfBroadcastWeek(o,e):t?e.startOfISOWeek(o):e.startOfWeek(o),i=[];for(let t=0;t<7;t++){const n=e.addDays(a,t);i.push(n)}return i}(c,r.ISOWeek,r.broadcastCalendar,r.today),[c,r.ISOWeek,r.broadcastCalendar,r.today]),le=void 0!==p||void 0!==y,ce=(0,a.useCallback)(()=>{U&&(Q(U),N?.(U))},[U,Q,N]),ue=(0,a.useCallback)(()=>{R&&(Q(R),w?.(R))},[Q,R,w]),de=(0,a.useCallback)((e,t)=>n=>{n.preventDefault(),n.stopPropagation(),Z(e),t.disabled||(F?.(e.date,t,n),y?.(e.date,t,n))},[F,y,Z]),me=(0,a.useCallback)((e,t)=>n=>{Z(e),v?.(e.date,t,n)},[v,Z]),pe=(0,a.useCallback)((e,t)=>n=>{V(),g?.(e.date,t,n)},[V,g]),fe=(0,a.useCallback)((e,t)=>n=>{const o={ArrowLeft:[n.shiftKey?"month":"day","rtl"===r.dir?"after":"before"],ArrowRight:[n.shiftKey?"month":"day","rtl"===r.dir?"before":"after"],ArrowDown:[n.shiftKey?"year":"week","after"],ArrowUp:[n.shiftKey?"year":"week","before"],PageUp:[n.shiftKey?"year":"month","before"],PageDown:[n.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(o[n.key]){n.preventDefault(),n.stopPropagation();const[e,t]=o[n.key];G(e,t)}b?.(e.date,t,n)},[G,b,r.dir]),he=(0,a.useCallback)((e,t)=>n=>{M?.(e.date,t,n)},[M]),ge=(0,a.useCallback)((e,t)=>n=>{x?.(e.date,t,n)},[x]),ye=(0,a.useCallback)(e=>t=>{const n=Number(t.target.value),r=c.setMonth(c.startOfMonth(e),n);Q(r)},[c,Q]),ve=(0,a.useCallback)(e=>t=>{const n=Number(t.target.value),r=c.setYear(c.startOfMonth(e),n);Q(r)},[c,Q]),{className:be,style:Me}=(0,a.useMemo)(()=>({className:[d[lL.Root],r.className].filter(Boolean).join(" "),style:{...D?.[lL.Root],...r.style}}),[d,r.className,r.style,D]),xe=function(e){const t={"data-mode":e.mode??void 0,"data-required":"required"in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0,"data-nav-layout":e.navLayout||void 0};return Object.entries(e).forEach(([e,n])=>{e.startsWith("data-")&&(t[e]=n)}),t}(r),we=(0,a.useRef)(null);!function(e,t,{classNames:n,months:r,focused:o,dateLib:i}){const s=(0,a.useRef)(null),l=(0,a.useRef)(r),c=(0,a.useRef)(!1);(0,a.useLayoutEffect)(()=>{const a=l.current;if(l.current=r,!(t&&e.current&&e.current instanceof HTMLElement&&0!==r.length&&0!==a.length&&r.length===a.length))return;const u=i.isSameMonth(r[0].date,a[0].date),d=i.isAfter(r[0].date,a[0].date),m=d?n[dL.caption_after_enter]:n[dL.caption_before_enter],p=d?n[dL.weeks_after_enter]:n[dL.weeks_before_enter],f=s.current,h=e.current.cloneNode(!0);if(h instanceof HTMLElement?(xP(h).forEach(e=>{if(!(e instanceof HTMLElement))return;const t=MP(e.querySelector("[data-animated-month]"));t&&e.contains(t)&&e.removeChild(t);const n=wP(e);n&&n.classList.remove(m);const r=NP(e);r&&r.classList.remove(p)}),s.current=h):s.current=null,c.current||u||o)return;const g=f instanceof HTMLElement?xP(f):[],y=xP(e.current);if(y?.every(e=>e instanceof HTMLElement)&&g&&g.every(e=>e instanceof HTMLElement)){c.current=!0;const t=[];e.current.style.isolation="isolate";const r=(v=e.current,MP(v.querySelector("[data-animated-nav]")));r&&(r.style.zIndex="1"),y.forEach((o,a)=>{const i=g[a];if(!i)return;o.style.position="relative",o.style.overflow="hidden";const s=wP(o);s&&s.classList.add(m);const l=NP(o);l&&l.classList.add(p);const u=()=>{c.current=!1,e.current&&(e.current.style.isolation=""),r&&(r.style.zIndex=""),s&&s.classList.remove(m),l&&l.classList.remove(p),o.style.position="",o.style.overflow="",o.contains(i)&&o.removeChild(i)};t.push(u),i.style.pointerEvents="none",i.style.position="absolute",i.style.overflow="hidden",i.setAttribute("aria-hidden","true");const f=(e=>MP(e.querySelector("[data-animated-weekdays]")))(i);f&&(f.style.opacity="0");const h=wP(i);h&&(h.classList.add(d?n[dL.caption_before_exit]:n[dL.caption_after_exit]),h.addEventListener("animationend",u));const y=NP(i);y&&y.classList.add(d?n[dL.weeks_before_exit]:n[dL.weeks_after_exit]),o.insertBefore(i,o.firstChild)})}var v})}(we,Boolean(r.animate),{classNames:d,months:z,focused:$,dateLib:c});const Ne={dayPickerProps:r,selected:W,select:F,isSelected:B,months:z,nextMonth:R,previousMonth:U,goToMonth:Q,getModifiers:Y,components:i,classNames:d,styles:D,labels:l,formatters:s};return a.createElement(FC.Provider,{value:Ne},a.createElement(i.Root,{rootRef:r.animate?we:void 0,className:be,style:Me,dir:r.dir,id:r.id,lang:r.lang,nonce:r.nonce,title:r.title,role:r.role,"aria-label":r["aria-label"],"aria-labelledby":r["aria-labelledby"],...xe},a.createElement(i.Months,{className:d[lL.Months],style:D?.[lL.Months]},!r.hideNavigation&&!f&&a.createElement(i.Nav,{"data-animated-nav":r.animate?"true":void 0,className:d[lL.Nav],style:D?.[lL.Nav],"aria-label":ee(),onPreviousClick:ce,onNextClick:ue,previousMonth:U,nextMonth:R}),z.map((e,t)=>a.createElement(i.Month,{"data-animated-month":r.animate?"true":void 0,className:d[lL.Month],style:D?.[lL.Month],key:t,displayIndex:t,calendarMonth:e},"around"===f&&!r.hideNavigation&&0===t&&a.createElement(i.PreviousMonthButton,{type:"button",className:d[lL.PreviousMonthButton],tabIndex:U?void 0:-1,"aria-disabled":!U||void 0,"aria-label":te(U),onClick:ce,"data-animated-button":r.animate?"true":void 0},a.createElement(i.Chevron,{disabled:!U||void 0,className:d[lL.Chevron],orientation:"rtl"===r.dir?"right":"left"})),a.createElement(i.MonthCaption,{"data-animated-caption":r.animate?"true":void 0,className:d[lL.MonthCaption],style:D?.[lL.MonthCaption],calendarMonth:e,displayIndex:t},m?.startsWith("dropdown")?a.createElement(i.DropdownNav,{className:d[lL.Dropdowns],style:D?.[lL.Dropdowns]},(()=>{const t="dropdown"===m||"dropdown-months"===m?a.createElement(i.MonthsDropdown,{key:"month",className:d[lL.MonthsDropdown],"aria-label":J(),classNames:d,components:i,disabled:Boolean(r.disableNavigation),onChange:ye(e.date),options:vP(e.date,L,P,s,c),style:D?.[lL.Dropdown],value:c.getMonth(e.date)}):a.createElement("span",{key:"month"},O(e.date,c)),n="dropdown"===m||"dropdown-years"===m?a.createElement(i.YearsDropdown,{key:"year",className:d[lL.YearsDropdown],"aria-label":ie(c.options),classNames:d,components:i,disabled:Boolean(r.disableNavigation),onChange:ve(e.date),options:bP(L,P,s,c,Boolean(r.reverseYears)),style:D?.[lL.Dropdown],value:c.getYear(e.date)}):a.createElement("span",{key:"year"},S(e.date,c));return"year-first"===c.getMonthYearOrder()?[n,t]:[t,n]})(),a.createElement("span",{role:"status","aria-live":"polite",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},E(e.date,c.options,c))):a.createElement(i.CaptionLabel,{className:d[lL.CaptionLabel],role:"status","aria-live":"polite"},E(e.date,c.options,c))),"around"===f&&!r.hideNavigation&&t===h-1&&a.createElement(i.NextMonthButton,{type:"button",className:d[lL.NextMonthButton],tabIndex:R?void 0:-1,"aria-disabled":!R||void 0,"aria-label":ne(R),onClick:ue,"data-animated-button":r.animate?"true":void 0},a.createElement(i.Chevron,{disabled:!R||void 0,className:d[lL.Chevron],orientation:"rtl"===r.dir?"left":"right"})),t===h-1&&"after"===f&&!r.hideNavigation&&a.createElement(i.Nav,{"data-animated-nav":r.animate?"true":void 0,className:d[lL.Nav],style:D?.[lL.Nav],"aria-label":ee(),onPreviousClick:ce,onNextClick:ue,previousMonth:U,nextMonth:R}),a.createElement(i.MonthGrid,{role:"grid","aria-multiselectable":"multiple"===p||"range"===p,"aria-label":X(e.date,c.options,c)||void 0,className:d[lL.MonthGrid],style:D?.[lL.MonthGrid]},!r.hideWeekdays&&a.createElement(i.Weekdays,{"data-animated-weekdays":r.animate?"true":void 0,className:d[lL.Weekdays],style:D?.[lL.Weekdays]},j&&a.createElement(i.WeekNumberHeader,{"aria-label":ae(c.options),className:d[lL.WeekNumberHeader],style:D?.[lL.WeekNumberHeader],scope:"col"},A()),se.map(e=>a.createElement(i.Weekday,{"aria-label":re(e,c.options,c),className:d[lL.Weekday],key:String(e),style:D?.[lL.Weekday],scope:"col"},k(e,c.options,c)))),a.createElement(i.Weeks,{"data-animated-weeks":r.animate?"true":void 0,className:d[lL.Weeks],style:D?.[lL.Weeks]},e.weeks.map(e=>a.createElement(i.Week,{className:d[lL.Week],key:e.weekNumber,style:D?.[lL.Week],week:e},j&&a.createElement(i.WeekNumber,{week:e,style:D?.[lL.WeekNumber],"aria-label":oe(e.weekNumber,{locale:u}),className:d[lL.WeekNumber],scope:"row",role:"rowheader"},I(e.weekNumber,c)),e.days.map(e=>{const{date:t}=e,n=Y(e);if(n[cL.focused]=!n.hidden&&Boolean($?.isEqualTo(e)),n[uL.selected]=B?.(t)||n.selected,fL(W)){const{from:e,to:r}=W;n[uL.range_start]=Boolean(e&&r&&c.isSameDay(t,e)),n[uL.range_end]=Boolean(e&&r&&c.isSameDay(t,r)),n[uL.range_middle]=mL(W,t,!0,c)}const o=function(e,t={},n={}){let r={...t?.[lL.Day]};return Object.entries(e).filter(([,e])=>!0===e).forEach(([e])=>{r={...r,...n?.[e]}}),r}(n,D,r.modifiersStyles),s=function(e,t,n={}){return Object.entries(e).filter(([,e])=>!0===e).reduce((e,[r])=>(n[r]?e.push(n[r]):t[cL[r]]?e.push(t[cL[r]]):t[uL[r]]&&e.push(t[uL[r]]),e),[t[lL.Day]])}(n,d,r.modifiersClassNames),l=le||n.hidden?void 0:K(t,n,c.options,c);return a.createElement(i.Day,{key:`${e.isoDate}_${e.displayMonthId}`,day:e,modifiers:n,className:s.join(" "),style:o,role:"gridcell","aria-selected":n.selected||void 0,"aria-label":l,"data-day":e.isoDate,"data-month":e.outside?e.dateMonthId:void 0,"data-selected":n.selected||void 0,"data-disabled":n.disabled||void 0,"data-hidden":n.hidden||void 0,"data-outside":e.outside||void 0,"data-focused":n.focused||void 0,"data-today":n.today||void 0},!n.hidden&&le?a.createElement(i.DayButton,{className:d[lL.DayButton],style:D?.[lL.DayButton],type:"button",day:e,modifiers:n,disabled:!n.focused&&n.disabled||void 0,"aria-disabled":n.focused&&n.disabled||void 0,tabIndex:H(e)?0:-1,"aria-label":q(t,n,c.options,c),onClick:de(e,n),onBlur:pe(e,n),onFocus:me(e,n),onKeyDown:fe(e,n),onMouseEnter:he(e,n),onMouseLeave:ge(e,n)},T(t,c.options,c)):!n.hidden&&T(e.date,c.options,c))})))))))),r.footer&&a.createElement(i.Footer,{className:d[lL.Footer],style:D?.[lL.Footer],role:"status","aria-live":"polite"},r.footer)))}function QP(e,t){return+iz(e)===+iz(t)}!function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"}(IP||(IP={}));const YP=()=>(0,Ge.jsx)("span",{className:"bg-icon-interactive h-1 w-1 absolute rounded-full inline-block bottom-0 left-1/2 right-1/2"}),BP=e=>Lz(e,"E").slice(0,1),FP=(e,t=24)=>Array.from({length:t},(t,n)=>e+n),WP=e=>"multiple"===e?[]:"range"===e?{from:void 0,to:void 0}:void 0,VP=({width:e,className:t,classNames:n,selectedDates:r,setSelectedDates:o,showOutsideDays:i=!0,mode:s="single",variant:l="normal",alignment:c="horizontal",numberOfMonths:u,disabled:d,...m})=>{const p=a.isValidElement(m.footer)||"function"==typeof m.footer,[f,h]=(0,a.useState)(!1),[g,y]=(0,a.useState)(!1),[v,b]=(0,a.useState)((new Date).getFullYear()),[M,x]=(0,a.useState)(v-v%24);void 0===r&&(r="multiple"===s?[]:"range"===s?{from:void 0,to:void 0}:void 0);const w=({weekdays:e})=>(0,Ge.jsx)("div",{className:"flex justify-between",children:e.map((e,t)=>(0,Ge.jsx)("button",{className:"h-10 w-10 px-1.5 py-2 text-center text-text-secondary text-sm font-normal content-center bg-transparent border-none shrink-0",children:e},t))}),N=e=>(0,Ge.jsx)("div",{className:"flex flex-col bsf-force-ui-month-weeks",children:e.children[1].props.children.map((e,t)=>(0,Ge.jsx)("div",{className:"flex flex-row justify-between",children:e},t))}),j=en("relative bg-background-primary shadow-datepicker-wrapper",e,"vertical"===c?"flex flex-col":"flex flex-row  gap-3","normal"===l?"rounded-tr-md rounded-tl-md border border-solid border-border-subtle":"","presets"===l?"rounded-tr-md border border-solid border-border-subtle":"","dualdate"===l?"rounded-tr-md rounded-tl-md border border-solid border-border-subtle":"",p?"rounded-b-none":"rounded-bl-md rounded-br-md");return(0,Ge.jsx)(Ge.Fragment,{children:(0,Ge.jsx)(RP,{mode:s,selected:r,onSelect:(e,t)=>{if("range"===s){const n=r;if(!n?.from&&!n?.to||n?.from&&n?.to)return n.from&&QP(t,n?.from)||n.to&&QP(t,n?.to)?void o({from:void 0,to:void 0}):void o({from:t,to:void 0});if(n?.from&&!n?.to)return t<n.from?void o({from:t,to:n.from}):void o({from:n.from,to:t});o(e)}else"multiple"===s?r.some(e=>Lz(e,"yyyy-MM-dd")===Lz(t,"yyyy-MM-dd"))?o(r.filter(e=>Lz(e,"yyyy-MM-dd")!==Lz(t,"yyyy-MM-dd"))):o([...r,t]):"single"===s&&o(e)},hideNavigation:!0,captionLayout:"label",className:en(t),formatters:{formatWeekdayName:BP},classNames:{months:j,month:"flex flex-col p-2 gap-1 text-center w-full",caption:"relative flex justify-center items-center",table:"w-full border-separate border-spacing-0",head_row:"flex mb-1",head_cell:"text-muted-foreground rounded-md w-10 font-normal text-sm",row:"flex w-full mt-2",cell:"h-10 w-10 text-center text-sm p-0 relative",...n},numberOfMonths:u,showOutsideDays:!0,components:{MonthCaption:function(e){const{goToMonth:t,nextMonth:n,previousMonth:r}=WC(),o=Lz(e.calendarMonth.date,"yyyy"),a=Lz(e.calendarMonth.date,"MMMM"),i=new Date(e.calendarMonth.date);i.setDate(i.getDate()-i.getDay());const s=Array.from({length:7},(e,t)=>{const n=new Date(i);return n.setDate(i.getDate()+t),BP(n)});let l;return l=g?`${M} - ${M+23}`:f?o:`${a} ${o}`,(0,Ge.jsxs)(Ge.Fragment,{children:[(0,Ge.jsxs)("div",{className:"flex justify-between",children:[(0,Ge.jsx)(dn,{variant:"ghost",onClick:()=>{if(g)x(M-24);else if(f){const n=new Date(v-1,e.calendarMonth.date.getMonth());b(n.getFullYear()),t(n)}else t(r)},className:"bg-background-primary border-none cursor-pointer","aria-label":"Previous Button",icon:(0,Ge.jsx)(YC,{className:"h-4 w-4 text-button-tertiary-color"})}),(0,Ge.jsx)(dn,{variant:"ghost",onClick:()=>{u>1||(f?(y(!0),h(!1)):g?y(!1):h(!f))},children:l}),(0,Ge.jsx)(dn,{variant:"ghost",onClick:()=>{if(g)x(M+24);else if(f){const n=new Date(v+1,e.calendarMonth.date.getMonth());b(n.getFullYear()),t(n)}else t(n)},className:"bg-background-primary border-none cursor-pointer","aria-label":"Next Button",icon:(0,Ge.jsx)(BC,{className:"h-4 w-4 text-button-tertiary-color"})})]}),g&&(0,Ge.jsx)("div",{className:"grid grid-cols-4 w-full",children:FP(M).map(n=>(0,Ge.jsxs)(dn,{variant:"ghost",onClick:()=>(n=>{b(n),y(!1),h(!0),t(new Date(n,e.calendarMonth.date.getMonth()))})(n),className:en("h-10 w-full text-center font-normal relative",n===v&&n!==(new Date).getFullYear()&&"bg-background-brand text-text-on-color hover:bg-background-brand hover:text-black",n===(new Date).getFullYear()&&"font-semibold"),children:[n,n===(new Date).getFullYear()&&YP()]},n))}),f&&!g&&(0,Ge.jsx)("div",{className:"grid grid-cols-4 gap-2 my-12",children:Array.from({length:12},(n,r)=>(0,Ge.jsxs)(dn,{variant:"ghost",onClick:()=>{h(!1),t(new Date(v,r))},className:en("px-1.5 py-2 h-10 w-[4.375rem] text-center font-normal relative",r===e.calendarMonth.date.getMonth()&&r!==(new Date).getMonth()&&v===e.calendarMonth.date.getFullYear()&&e.calendarMonth.date.getFullYear()!==(new Date).getFullYear()&&"bg-background-brand text-text-on-color hover:bg-background-brand hover:text-black",r===(new Date).getMonth()&&(new Date).getFullYear()===v&&"font-semibold"),children:[Lz(new Date(0,r),"MMM"),(new Date).getMonth()===r&&(new Date).getFullYear()===v&&YP()]},r))}),!f&&!g&&(0,Ge.jsx)(w,{weekdays:s})]})},DayButton:({day:e,modifiers:t,...n})=>{const{selected:o,today:a,disabled:s,outside:l,range_middle:c,range_start:u,range_end:d}=t,m=u||d||c,p=new Date,f=r?.to,h=Lz(e.displayMonth,"yyyy-MM")===Lz(p,"yyyy-MM"),g=f&&Lz(f,"yyyy-MM")===Lz(e.date,"yyyy-MM"),y=function(e,t,n){return qz(e,-t,n)}(p,1),v=Lz(e.date,"yyyy-MM")===Lz(y,"yyyy-MM"),b=h||g||m,M=!i&&l,x=en("h-10 w-10 flex items-center justify-center transition text-text-secondary relative text-sm","border-none rounded",!o&&!m||l?"bg-transparent hover:bg-button-tertiary-hover":"bg-background-brand text-text-on-color",c&&b&&!l?"bg-brand-background-50 text-text-secondary rounded-none":"",s?"opacity-50 cursor-not-allowed text-text-disabled":"cursor-pointer",l&&!m||!b&&l||l&&!v||l?"bg-transparent opacity-50 text-text-disabled cursor-auto":"");return(0,Ge.jsxs)("button",{className:en(x,a&&"font-semibold",M&&"opacity-0",u&&"fui-range-start",d&&"fui-range-end",c&&"fui-range-middle",{"[&:is([data-hover=true])]:bg-brand-background-50 [&:is([data-hover=true])]:rounded-none":!m&&!o}),disabled:s||l,onClick:e=>{"function"==typeof n.onClick&&n.onClick(e)},onMouseEnter:e=>{"function"==typeof n.onMouseEnter&&n.onMouseEnter(e),e.currentTarget.setAttribute("data-hover","true")},onMouseLeave:e=>{"function"==typeof n.onMouseLeave&&n.onMouseLeave(e),e.currentTarget.setAttribute("data-hover","false")},"aria-label":Lz(e.date,"EEEE, MMMM do, yyyy"),"data-selected":o,"data-day":Lz(e.date,"yyyy-MM-dd"),children:[n.children,a&&b&&(0,Ge.jsx)("span",{className:"absolute h-1 w-1 bg-background-brand rounded-full bottom-1"})]})},Day:e=>{const t=Object.entries(e).reduce((e,[t,n])=>(t.startsWith("data-")&&(e[t]=n),e),{});return(0,Ge.jsx)("div",{...t,className:en(e.className,"inline-flex"),children:e.children})},Weekdays:()=>(0,Ge.jsx)(Ge.Fragment,{}),Week:e=>(0,Ge.jsx)("div",{className:en("bsf-force-ui-month-week flex flex-row",e.className),children:e.children}),Months:e=>(0,Ge.jsx)(Ge.Fragment,{children:(0,Ge.jsx)("div",{className:en("bsf-force-ui-date-picker-month",j),children:e?.children?.map((e,t)=>e?(0,Ge.jsx)(a.Fragment,{children:e.map((e,t)=>(0,Ge.jsxs)(a.Fragment,{children:[t>0&&(0,Ge.jsx)("div",{className:"border border-solid border-border-subtle border-l-0"}),e]},t))},t):null)})}),MonthGrid:e=>f||g?(0,Ge.jsx)(Ge.Fragment,{}):(0,Ge.jsx)(N,{...e})},..."range"===s?{required:!1}:{},...m,onDayMouseEnter:(e,t,n)=>{if("range"!==s)return;const o=r;if(o?.from&&o?.to||!o?.from&&!o?.to)return void Array.from(document.querySelectorAll("[data-hover]")).forEach(e=>{e.setAttribute("data-hover","false")});const a=n.target,i=new Date(a.dataset.day),c=nL(i,o.from),u=tL(i,o.to);let d;switch(l){case"dualdate":case"presets":d=a.closest(".bsf-force-ui-date-picker-month");break;default:d=a.closest(".bsf-force-ui-month-weeks")}const m=Array.from(d.querySelectorAll("button"));u&&m.sort((e,t)=>tL(new Date(e.dataset.day),new Date(t.dataset.day))?-1:1),c&&m.sort((e,t)=>nL(new Date(e.dataset.day),new Date(t.dataset.day))?1:-1);const p=m.indexOf(a),f=m.findIndex(e=>"true"===e.getAttribute("data-selected")),h=[],g=Math.min(p,f),y=Math.max(p,f);for(let e=g;e<=y;e++)m[e]?.disabled||h.push(m[e]);m.forEach(e=>{e.setAttribute("data-hover",h.includes(e)?"true":"false")})},disabled:d})})};function $P(e){return cz(Date.now(),e)}function HP(e){return az(e,Date.now())}function GP(e){const t=HP(e?.in),n=t.getFullYear(),r=t.getMonth(),o=t.getDate(),a=HP(e?.in);return a.setFullYear(n,r,o-1),a.setHours(0,0,0,0),a}function ZP(e,t,n){return Zz(e,-t,n)}const qP=({selectionType:e="single",variant:t="normal",presets:n=[],onCancel:r,onApply:o,onDateSelect:i,applyButtonText:s="Apply",cancelButtonText:l="Cancel",showOutsideDays:c=!0,isFooter:u=!0,selected:d,disabled:m,...p})=>{const[f,h]=(0,a.useState)(()=>{if(!d)return WP(e);const t="multiple"===e&&Array.isArray(d),n="single"===e&&d instanceof Date;return t||"range"===e&&"from"in d&&"to"in d||n?d:WP(e)}),g=e=>{h(e),i&&i(e)},y=[{label:"Today",range:{from:$P(),to:$P()}},{label:"Yesterday",range:{from:GP(),to:GP()}},{label:"This Week",range:{from:mz(new Date,{weekStartsOn:1}),to:Jz(new Date,{weekStartsOn:1})}},{label:"Last 7 Days",range:{from:cz(ZP(new Date,6)),to:cz(new Date)}},{label:"This Month",range:{from:oL(new Date),to:eL(new Date)}},{label:"Last 30 Days",range:{from:cz(ZP(new Date,29)),to:cz(new Date)}}],v=n.length>0?n:y,b=()=>{h("multiple"===e?[]:{from:void 0,to:void 0}),r&&r()},M=()=>{o&&o(f)};return"normal"===t?(0,Ge.jsx)(VP,{...p,mode:e,variant:t,width:"w-[18.5rem]",selectedDates:f,showOutsideDays:c,setSelectedDates:g,footer:u&&(0,Ge.jsxs)("div",{className:"flex bg-background-primary justify-end p-2 gap-3 border border-solid border-border-subtle border-t-0 rounded-md rounded-tl-none rounded-tr-none",children:[(0,Ge.jsx)(dn,{variant:"outline",onClick:b,children:l}),(0,Ge.jsx)(dn,{onClick:M,children:s})]}),disabled:m}):"dualdate"===t?(0,Ge.jsx)(VP,{mode:e,numberOfMonths:2,alignment:"horizontal",selectedDates:f,setSelectedDates:g,showOutsideDays:c,variant:t,width:"w-auto",footer:(0,Ge.jsxs)("div",{className:"flex bg-background-primary justify-end p-2 gap-3 border border-solid border-border-subtle border-t-0 rounded-md rounded-tl-none rounded-tr-none",children:[(0,Ge.jsx)(dn,{variant:"outline",onClick:b,children:l}),(0,Ge.jsx)(dn,{onClick:M,children:s})]}),disabled:m,...p}):"presets"===t?(0,Ge.jsxs)("div",{className:"flex flex-row shadow-datepicker-wrapper",children:[(0,Ge.jsx)("div",{className:"flex flex-col gap-1 p-3 items-start border border-solid border-border-subtle border-r-0 rounded-tl-md rounded-bl-md bg-background-primary",children:v.map((e,t)=>{const n=f&&"from"in f&&"to"in f&&f.from?.getTime()===e.range.from.getTime()&&f.to?.getTime()===e.range.to.getTime();return(0,Ge.jsx)(dn,{onClick:()=>(e=>{h(e)})(e.range),variant:"ghost",className:en("text-left font-medium text-sm text-nowrap w-full",n&&"bg-brand-background-50"),children:e.label},t)})}),(0,Ge.jsx)(VP,{...p,mode:e,selectedDates:f,setSelectedDates:g,variant:t,showOutsideDays:c,width:"w-auto",numberOfMonths:2,footer:(0,Ge.jsxs)("div",{className:"flex justify-end p-2 gap-3 border-l border-r border-t-0 border-b border-solid border-border-subtle bg-background-primary rounded-br-md",children:[(0,Ge.jsx)(dn,{variant:"outline",onClick:b,children:l}),(0,Ge.jsx)(dn,{onClick:M,children:s})]}),disabled:m})]}):void 0};function KP({title:e,titleId:t,...n},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 7.5v11.25m-18 0A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75m-18 0v-7.5A2.25 2.25 0 0 1 5.25 9h13.5A2.25 2.25 0 0 1 21 11.25v7.5"}))}const XP=a.forwardRef(KP),JP=({selectedRange:e,setSelectedRange:t,className:n,disabled:r})=>{const[o,i]=(0,a.useState)(!1),[s,l]=(0,a.useState)(e),c=(0,a.useRef)(null),u=(0,a.useRef)(null);(0,a.useEffect)(()=>{l(e)},[e]),(0,a.useEffect)(()=>{const e=e=>{u.current&&!u.current.contains(e.target)&&c.current&&!c.current.contains(e.target)&&i(!1)};return o&&document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[o]);const d=e=>e.toLocaleDateString("en-US",{month:"2-digit",day:"2-digit",year:"numeric"});return(0,a.createElement)("div",{className:"flex items-center gap-2"},(0,a.createElement)(dn,{className:`whitespace-nowrap text-gray-500 ${n}`,ref:c,icon:(0,a.createElement)(XP,{className:"h-6 w-6 text-gray-500","aria-label":"icon",role:"img"}),iconPosition:"right",size:"sm",tag:"button",type:"button",variant:"outline",disabled:r,onClick:()=>i(e=>!e)},s?.from&&s?.to?`${d(s.from)} - ${d(s.to)}`:"mm/dd/yyyy - mm/dd/yyyy"),o&&(0,a.createElement)("div",{ref:u,className:"absolute z-10 rounded-lg shadow-lg top-10 right-0 w-full lg:w-auto overflow-x-auto"},(0,a.createElement)(qP,{key:"range",applyButtonText:"Apply",cancelButtonText:"Cancel",onApply:e=>{t(e),i(!1)},onCancel:()=>{i(!1)},presets:(()=>{const e=new Date,t=new Date(e),n=new Date(e);n.setDate(n.getDate()-1);const r=new Date(e),o=r.getDay(),a=0===o?6:o-1;r.setDate(e.getDate()-a);const i=new Date(r);i.setDate(r.getDate()+6),i.setHours(23,59,59,999);const s=new Date(r);s.setDate(s.getDate()-7);const l=new Date(s);l.setDate(s.getDate()+6),l.setHours(23,59,59,999);const c=new Date(e.getFullYear(),e.getMonth(),1),u=new Date(e);u.setHours(23,59,59,999);const d=new Date(e.getFullYear(),e.getMonth()-1,1),m=new Date(e.getFullYear(),e.getMonth(),0);return m.setHours(23,59,59,999),[{label:"Today",range:{from:t,to:t}},{label:"Yesterday",range:{from:n,to:n}},{label:"This Week",range:{from:r,to:i}},{label:"Last Week",range:{from:s,to:l}},{label:"This Month",range:{from:c,to:u}},{label:"Last Month",range:{from:d,to:m}}]})(),selected:s,selectionType:"range",showOutsideDays:!0,variant:"presets"})))},eU=e=>{if(!e)return"";const t=new Date(e);return isNaN(t.getTime())?e:t.toLocaleDateString("en-US",{month:"short",day:"2-digit"})},tU=e=>null==e?"":Math.abs(e)>=1e9?(e/1e9).toFixed(1).replace(/\.0$/,"")+"B":Math.abs(e)>=1e6?(e/1e6).toFixed(1).replace(/\.0$/,"")+"M":Math.abs(e)>=1e3?(e/1e3).toFixed(1).replace(/\.0$/,"")+"K":e.toString(),nU=({dashboardData:e,isDashboardLoading:t,selectedRange:n,handleDateRangeChange:r})=>{console.log(e);const o=(0,a.createElement)(AC,{className:"h-4 w-4 stroke-[3px] text-green-700"}),i=(0,a.createElement)(SC,{className:"h-4 w-4 stroke-[3px] text-red-600"}),s=e=>{const t=parseFloat(e?.replace(/[^\d.-]/g,"").trim());return isNaN(t)?0:t},l=s(e?.recovery_rate),c=s(e?.previous_period?.recovery_rate),u=(m=l,0===(d=c)&&0===m?0:0===d&&0!==m?100:0!==d&&0===m?-100:(m-d)/d*100);var d,m;const p=[{label:(0,Yf.__)("Recovered Revenue","woo-cart-abandonment-recovery"),value:e?.recovered_revenue?lg(e?.recovered_revenue):"0.00",tooltip:(0,Yf.__)("The revenue that has been recovered.","woo-cart-abandonment-recovery"),color:e?.recovered_revenue_amount>0?"text-green-700":""},{label:(0,Yf.__)("Recovered Orders","woo-cart-abandonment-recovery"),value:e?.recovered_orders||"0",tooltip:(0,Yf.__)("The number of orders that have been recovered.","woo-cart-abandonment-recovery"),color:e?.recovered_orders>0?"text-green-700":""},{label:(0,Yf.__)("Recoverable Revenue","woo-cart-abandonment-recovery"),value:e?.recoverable_revenue?lg(e?.recoverable_revenue):"0.00",tooltip:(0,Yf.__)("The revenue that can be recovered.","woo-cart-abandonment-recovery")},{label:(0,Yf.__)("Recoverable Orders","woo-cart-abandonment-recovery"),value:e?.recoverable_orders||"0",tooltip:(0,Yf.__)("The number of orders that can be recovered.","woo-cart-abandonment-recovery")},{label:(0,Yf.__)("Lost Orders","woo-cart-abandonment-recovery"),value:e?.lost_orders||"0",tooltip:(0,Yf.__)("The number of orders that have been lost.","woo-cart-abandonment-recovery")},{label:(0,Yf.__)("Recovery Rate","woo-cart-abandonment-recovery"),value:e?.recovery_rate||"0.00%",tooltip:(0,Yf.__)("The percentage of orders that have been recovered.","woo-cart-abandonment-recovery"),color:l>c?"text-green-700":l<c&&"text-red-600",icon:(0,a.createElement)(th,{content:(0,Yf.sprintf)(/* translators: 1: recovery rate change percentage, 2: 'increase' or 'decrease'. */ /* translators: 1: recovery rate change percentage, 2: 'increase' or 'decrease'. */
(0,Yf.__)("%1$s%% %2$s from previous period","woo-cart-abandonment-recovery"),Math.abs(u).toFixed(2),u>0?(0,Yf.__)("increase","woo-cart-abandonment-recovery"):(0,Yf.__)("decrease","woo-cart-abandonment-recovery")),position:"top"},l>c?o:l<c&&i)}],f=e?.revenue_chart_data||[],h=n?.from&&n?.to;return(0,a.createElement)(UC,{className:"flex flex-col gap-2"},(0,a.createElement)("div",{className:"p-1 flex gap-2 justify-between flex-wrap relative"},(0,a.createElement)(Qh,{description:"",icon:null,iconPosition:"right",size:"lg",tag:"h1",title:(0,Yf.__)("Overview","woo-cart-abandonment-recovery"),className:"[&>*]:text-gray-900"}),(0,a.createElement)("div",{className:"flex items-center gap-2"},h&&(0,a.createElement)(dn,{variant:"link",size:"xs",icon:(0,a.createElement)(CC,{className:"h-4 w-4"}),onClick:()=>{r({from:null,to:null})},className:"text-red-500 no-underline whitespace-nowrap focus:ring-0 [box-shadow:none] focus:[box-shadow:none] hover:no-underline hover:text-red-500","aria-label":(0,Yf.__)("Clear Filter","woo-cart-abandonment-recovery")},(0,Yf.__)("Clear Filter","woo-cart-abandonment-recovery")),(0,a.createElement)(JP,{selectedRange:n,setSelectedRange:r,disabled:t}))),(0,a.createElement)("div",{className:"p-1 rounded-lg flex flex-col gap-2 bg-light-background"},(0,a.createElement)("div",{className:"grid grid-cols-1 sm:grid-cols-3 xl:grid-cols-6 gap-2"},p.map((e,n)=>(0,a.createElement)("div",{key:n,className:"p-3 rounded-md shadow-sm bg-white flex-1 flex flex-col gap-2"},(0,a.createElement)("div",{className:"text-sm font-medium text-gray-500 inline-flex items-center"},e.label," ",(0,a.createElement)(th,{content:e.tooltip,position:"top"},(0,a.createElement)(LC,{className:"h-3 w-3 ml-1 text-gray-500"}))),t?(0,a.createElement)(QC,{height:"2rem",className:"mt-1"}):(0,a.createElement)("div",{className:`flex gap-1 justify-between text-3xl font-semibold text-gray-900 ${e.color}`},e.value,e.icon&&(0,a.createElement)("span",null,e.icon))))),(0,a.createElement)("div",{className:"p-3 flex flex-col gap-6 rounded-md shadow-sm bg-white"},t?(0,a.createElement)(QC,{height:"300px"}):(0,a.createElement)(a.Fragment,null,(0,a.createElement)("div",{className:"flex gap-2"},(0,a.createElement)("div",{className:"p-1 flex gap-2 items-center"},(0,a.createElement)("div",{className:"h-3 w-3 bg-flamingo-400"}),(0,a.createElement)("span",{className:"text-gray-500 text-sm font-medium"},(0,Yf.__)("Recoverable Revenue","woo-cart-abandonment-recovery"))),(0,a.createElement)("div",{className:"p-1 flex gap-2 items-center"},(0,a.createElement)("div",{className:"h-3 w-3 bg-amber-400"}),(0,a.createElement)("span",{className:"text-gray-500 text-sm font-medium"},(0,Yf.__)("Recovered Revenue","woo-cart-abandonment-recovery")))),(0,a.createElement)(OC,{data:f,dataKeys:[(0,Yf.__)("recoverable","woo-cart-abandonment-recovery"),(0,Yf.__)("recovered","woo-cart-abandonment-recovery")],colors:[{stroke:"#F06434"},{stroke:"#FBBF24"}],showXAxis:!0,showYAxis:!0,showTooltip:!0,showCartesianGrid:!0,xAxisDataKey:"day",xAxisTickFormatter:eU,yAxisTickFormatter:tU,chartWidth:"100%",chartHeight:300,lineChartWrapperProps:{margin:{left:-12,right:0,top:0,bottom:0}},xAxisFontSize:"sm",strokeDasharray:"0 0"})))))};let rU=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&n[e]];return t};const oU=Je("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]),aU=(0,a.forwardRef)(({id:e,label:t,defaultChecked:n=!1,checked:r,onChange:o,indeterminate:i,disabled:s,size:l="md",className:c,...u},d)=>{const m=(0,a.useMemo)(()=>e||`checkbox-${rU()}`,[e]),p=(0,a.useMemo)(()=>typeof r<"u",[r]),[f,h]=(0,a.useState)(n||!1),g="primary",y={sm:{checkbox:"size-4 rounded gap-1",icon:"size-3",text:"text-sm",description:"text-sm",gap:"gap-0.5"},md:{checkbox:"size-5 rounded gap-1",icon:"size-4",text:"text-base",description:"text-sm",gap:"gap-1"}},v={primary:{checkbox:"border-border-strong hover:border-border-interactive checked:border-border-interactive bg-white checked:bg-toggle-on checked:hover:bg-toggle-on-hover checked:hover:border-toggle-on-hover focus:ring-2 focus:ring-offset-2 focus:ring-focus",icon:"text-white"}},b=(0,a.useCallback)(()=>p?r:f,[p,r,f]),M=(0,a.useCallback)(()=>(0,a.isValidElement)(t)?t:t?.heading||t?.description?(0,Ge.jsxs)("div",{className:y[l].gap,children:[t?.heading&&(0,Ge.jsx)(DC,{className:en("text-text-primary font-medium leading-4 m-0",y[l].text,y[l].gap,s&&"text-text-disabled"),htmlFor:m,children:t?.heading}),t?.description&&(0,Ge.jsx)(DC,{tag:"p",className:en("font-normal leading-5 m-0",y[l].description,s&&"text-text-disabled"),variant:"help",children:t?.description})]}):null,[t,l,s]);return(0,Ge.jsxs)("div",{className:en("inline-flex items-center justify-center gap-2",!!t&&"items-start",s&&"cursor-not-allowed"),children:[(0,Ge.jsxs)("label",{className:en("relative flex items-center justify-center rounded-full p-0.5",!s&&"cursor-pointer"),htmlFor:m,children:[(0,Ge.jsx)("input",{ref:d,id:m,type:"checkbox",className:en("peer relative cursor-pointer appearance-none transition-all m-0 before:content-[''] checked:before:content-[''] checked:before:hidden before:hidden !border-1.5 border-solid",v[g].checkbox,y[l].checkbox,s&&"cursor-not-allowed disabled:bg-white checked:disabled:bg-white disabled:border-border-disabled checked:disabled:border-border-disabled",c),checked:b(),onChange:e=>{if(s)return;const t=e.target.checked;p||h(t),"function"==typeof o&&o(t)},disabled:s,...u}),(0,Ge.jsx)("span",{className:en("pointer-events-none inline-flex items-center absolute top-2/4 not-rtl:left-2/4 rtl:right-2/4 -translate-y-2/4 -translate-x-2/4 text-white opacity-0 transition-opacity peer-checked:opacity-100",v[g].icon,s&&"cursor-not-allowed peer-disabled:text-border-disabled"),children:i?(0,Ge.jsx)(oU,{className:en(y[l]?.icon)}):(0,Ge.jsx)(ln,{className:en(y[l]?.icon)})})]}),!!t&&M()]})});aU.displayName="Checkbox";const iU=(0,a.createContext)(void 0),sU=()=>{const e=(0,a.useContext)(iU);if(!e)throw new Error("Table components must be used within Table component");return e},lU=({children:e,className:t,checkboxSelection:n=!1,...r})=>{const o={checkboxSelection:n},i=a.Children.toArray(e).find(e=>a.isValidElement(e)&&e.type===fU),s=a.Children.toArray(e).filter(e=>a.isValidElement(e)&&e.type!==fU);return(0,Ge.jsx)(iU.Provider,{value:o,children:(0,Ge.jsxs)("div",{className:"flow-root border-0.5 border-solid border-border-subtle rounded-md divide-y-0.5 divide-x-0 divide-solid divide-border-subtle overflow-hidden",children:[(0,Ge.jsx)("div",{className:"overflow-x-auto w-full",children:(0,Ge.jsx)("div",{className:"relative",children:(0,Ge.jsx)("table",{className:en("table-fixed min-w-full border-collapse border-spacing-0",t),...r,children:s})})}),i]})})},cU=({children:e,className:t,selected:n,onChangeSelection:r,indeterminate:o,disabled:a,...i})=>{const{checkboxSelection:s}=sU();return(0,Ge.jsx)("thead",{className:en("bg-background-secondary border-x-0 border-t-0 border-b-0.5 border-solid border-border-subtle",t),...i,children:(0,Ge.jsxs)("tr",{children:[s&&(0,Ge.jsx)("th",{scope:"col",className:"relative px-5.5 w-11 overflow-hidden",children:(0,Ge.jsx)("div",{className:"absolute inset-0 grid grid-cols-1 place-content-center",children:(0,Ge.jsx)(aU,{size:"sm",checked:n,indeterminate:o,disabled:a,onChange:e=>{"function"==typeof r&&r(e)},"aria-label":n?"Deselect all":"Select all"})})}),e]})})},uU=({children:e,className:t,...n})=>(0,Ge.jsx)("th",{scope:"col",className:en("p-3 text-left text-sm font-medium leading-5 text-text-primary",t),...n,children:e}),dU=({children:e,className:t,...n})=>(0,Ge.jsx)("tbody",{className:en("bg-background-primary divide-y-0.5 divide-x-0 divide-solid divide-border-subtle",t),...n,children:e}),mU=({children:e,selected:t,value:n,className:r,onChangeSelection:o,...a})=>{const{checkboxSelection:i}=sU();return(0,Ge.jsxs)("tr",{className:en("hover:bg-background-secondary",t&&"bg-background-secondary",r),...a,children:[i&&(0,Ge.jsx)("td",{className:"relative px-5.5 w-11 overflow-hidden",children:(0,Ge.jsx)("div",{className:"absolute inset-0 grid grid-cols-1 place-content-center",children:(0,Ge.jsx)(aU,{size:"sm",checked:t,onChange:e=>{"function"==typeof o&&o(e,n)},"aria-label":"Select row"})})}),e]})},pU=({children:e,className:t,...n})=>(0,Ge.jsx)("td",{className:en("px-3 py-3.5 text-sm font-normal leading-5 text-text-secondary",t),...n,children:e}),fU=({children:e,className:t,...n})=>{const{checkboxSelection:r}=sU();return(0,Ge.jsx)("div",{className:en("px-3 py-3",r&&"px-4",t),...n,children:e})};function hU({title:e,titleId:t,...n},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 19.5 15-15m0 0H8.25m11.25 0v11.25"}))}lU.displayName="Table",cU.displayName="Table.Head",uU.displayName="Table.HeadCell",dU.displayName="Table.Body",mU.displayName="Table.Row",pU.displayName="Table.Cell",fU.displayName="Table.Footer",lU.Head=cU,lU.HeadCell=uU,lU.Body=dU,lU.Row=mU,lU.Cell=pU,lU.Footer=fU;const gU=a.forwardRef(hU);function yU({title:e,titleId:t,...n},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"}))}const vU=a.forwardRef(yU),bU=({icon:e=(0,a.createElement)(vU,{className:"h-12 w-12 text-yellow-500"}),title:t,description:n,className:r="",height:o="200px"})=>(0,a.createElement)(Uh,{className:`flex-1 h-[${o}] flex items-center justify-center bg-white rounded-md ${r}`,containerType:"flex",direction:"column",align:"center"},(0,a.createElement)(Uh.Item,null,e),(0,a.createElement)(Uh.Item,{className:"mb-3"},(0,a.createElement)(DC,{className:"text-gray-600 font-medium text-base text-center"},t)),n&&(0,a.createElement)(Uh.Item,{className:"mb-3"},(0,a.createElement)(DC,{className:"text-gray-500 text-sm text-center"},n)));bU.propTypes={icon:Jf().node,title:Jf().string.isRequired,description:Jf().string,className:Jf().string,height:Jf().oneOfType([Jf().string,Jf().number])};const MU=bU,xU="/wp-admin/admin.php?page=woo-cart-abandonment-recovery",wU=({status:e})=>(0,a.createElement)(Of,{label:e,size:"sm",type:"pill",variant:{Abandoned:"yellow",Failed:"red",Successful:"green",Blacklisted:"inverse"}[e],className:"w-fit"}),NU=({dashboardData:e,isDashboardLoading:t})=>{const n=e?.recent_follow_up_reports||[],r=n.length>0;return(0,a.createElement)(UC,{className:"lg:w-1/2 flex flex-col gap-2 min-h-64"},(0,a.createElement)("div",{className:"flex justify-between items-center"},(0,a.createElement)(Qh,{description:"",icon:null,iconPosition:"right",size:"xs",tag:"h2",title:(0,Yf.__)("Recent Follow Up Reports","woo-cart-abandonment-recovery"),className:"[&>*]:text-gray-900"}),(0,a.createElement)(Fe,{to:xU+"&path=follow-up",className:"text-gray-900 text-xs font-semibold inline-flex items-center no-underline gap-1"},(0,Yf.__)("View All","woo-cart-abandonment-recovery"),(0,a.createElement)(gU,{className:"h-3 w-3 text-gray-900 font-semibold"}))),t?(0,a.createElement)(QC,{height:"200px"}):(0,a.createElement)(a.Fragment,null,r?(0,a.createElement)(lU,{className:"whitespace-nowrap sm:whitespace-normal"},(0,a.createElement)(lU.Head,null,(0,a.createElement)(lU.HeadCell,null,(0,Yf.__)("User Name","woo-cart-abandonment-recovery")),(0,a.createElement)(lU.HeadCell,null,(0,Yf.__)("Email","woo-cart-abandonment-recovery")),(0,a.createElement)(lU.HeadCell,null,(0,Yf.__)("Cart Total","woo-cart-abandonment-recovery")),(0,a.createElement)(lU.HeadCell,null,(0,Yf.__)("Order Status","woo-cart-abandonment-recovery")),(0,a.createElement)(lU.HeadCell,null,(0,Yf.__)("Date & Time","woo-cart-abandonment-recovery"))),(0,a.createElement)(lU.Body,null,n.map((e,t)=>(0,a.createElement)(lU.Row,{key:t},(0,a.createElement)(lU.Cell,null,e?.userName||(0,Yf.__)("Not Available","woo-cart-abandonment-recovery")),(0,a.createElement)(lU.Cell,null,e?.email||"-"),(0,a.createElement)(lU.Cell,null,lg(e?.cartTotal||"-")),(0,a.createElement)(lU.Cell,null,(0,a.createElement)(wU,{status:e?.orderStatus||"-"})),(0,a.createElement)(lU.Cell,null,e?.dateTime||"-"))))):(0,a.createElement)(MU,{icon:(0,a.createElement)(vU,{className:"h-12 w-12 text-yellow-500"}),title:(0,Yf.__)("No Follow-Up Reports Yet","woo-cart-abandonment-recovery"),description:(0,Yf.__)("Reports will show up here once customers start abandoning their carts.","woo-cart-abandonment-recovery")})))},jU={400:"font-normal",500:"font-medium",600:"font-semibold",700:"font-bold"},DU={36:"text-4xl",30:"text-3xl",24:"text-2xl",20:"text-xl",18:"text-lg",16:"text-base",14:"text-sm",12:"text-xs"},EU={44:"leading-11",38:"leading-9.5",32:"leading-8",30:"leading-7.5",28:"leading-7",24:"leading-6",20:"leading-5",16:"leading-4"},TU={2:"tracking-2"},OU={brand600:"text-brand-primary-600",link:"text-link-primary",primary:"text-text-primary",secondary:"text-text-secondary",tertiary:"text-text-tertiary",disabled:"text-text-disabled",help:"text-field-helper",label:"text-field-label",info:"text-support-info",success:"text-support-success",warning:"text-support-warning",error:"text-support-error",inverse:"text-text-on-color"},IU=(0,a.forwardRef)(function({as:e,children:t,weight:n,size:r,lineHeight:o,letterSpacing:a,color:i="primary",className:s,...l},c){return(0,Ge.jsx)(e||"p",{ref:c,className:en("m-0 p-0",n?jU[n]:"",r?DU[r]:"",o?EU[o]:"",a?TU[a]:"",i?OU[i]:"",s),...l,children:t})}),AU=()=>{const e=se(),[t]=Xh(),n="undefined"!=typeof cart_abandonment_admin?cart_abandonment_admin:{},r=n.is_pro,o="1"===t?.licenseStatus,a=()=>r&&o,i=(e="",t="")=>{let r=t||n?.upgrade_to_pro_url||"";const o=r.includes("?");return""!==e&&(r+=o?`&${e}`:`?${e}`),r};return{isPro:r,hasLicense:o,canAccessProFeatures:a,shouldBlockProFeatures:()=>!a(),getUpgradeMessage:(e="")=>r?o?(0,Yf.__)("Upgrade to Pro for advanced features","woo-cart-abandonment-recovery"):(0,Yf.__)("Activate your license to unlock pro features","woo-cart-abandonment-recovery"):e,getProStatusMessage:()=>r?o?"":(0,Yf.__)("Pro plugin installed but license not activated","woo-cart-abandonment-recovery"):(0,Yf.__)("Pro plugin not installed","woo-cart-abandonment-recovery"),getActionButtonText:()=>"not-installed"===cart_abandonment_admin?.wcar_pro_status?(0,Yf.__)("Go Pro","woo-cart-abandonment-recovery"):"inactive"===cart_abandonment_admin?.wcar_pro_status?(0,Yf.__)("Activate","woo-cart-abandonment-recovery"):o?(0,Yf.__)("Upgrade Now","woo-cart-abandonment-recovery"):(0,Yf.__)("Activate License","woo-cart-abandonment-recovery"),getRecommendedAction:()=>"upgrade",getStatusSeverity:()=>"info",getUpgradeToProUrl:i,upgradeActionButton:(t="",n="")=>{if("not-installed"===cart_abandonment_admin?.wcar_pro_status){const e=i(t,n);window.open(e,"_blank")}else if("inactive"===cart_abandonment_admin?.wcar_pro_status){const e=new window.FormData;e.append("action","cart_abandonment_activate_plugin"),e.append("init","woo-cart-abandonment-recovery-pro/woo-cart-abandonment-recovery-pro.php"),e.append("security",cart_abandonment_admin.plugin_activation_nonce),ag(cart_abandonment_admin.ajax_url,e,"POST",e=>{e.success?window.location.reload():rt.error((0,Yf.__)("Failed to activate plugin","woo-cart-abandonment-recovery"),{description:e.data?.message||""})},e=>{rt.error((0,Yf.__)("Failed to activate plugin","woo-cart-abandonment-recovery"),{description:e.data?.message||""})},!0)}else o||e({search:"?page=woo-cart-abandonment-recovery&path=settings&tab=license-settings"})},UPGRADE_ACTIONS:{PURCHASE:"purchase",ACTIVATE:"activate",UPGRADE:"upgrade"}}};function kU({title:e,titleId:t,...n},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m3.75 13.5 10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75Z"}))}const SU=a.forwardRef(kU);function _U({title:e,titleId:t,...n},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 12.75 6 6 9-13.5"}))}const CU=a.forwardRef(_U),zU=({props:e})=>{const{getUpgradeMessage:t,getActionButtonText:n,upgradeActionButton:r}=AU(),{highlightText:o,mainTitle:i,description:s,subTitle:l,uspTitle:c,usps:u,actionBtnText:d,actionbtnUrl:m,actionBtnUrlArgs:p,footerMessage:f,backgroundBlur:h}=e;return(0,a.createElement)("div",{className:"absolute inset-0 z-10 flex items-center justify-center"},h&&(0,a.createElement)("div",{className:"absolute inset-0 bg-white/20 backdrop-blur-[2px]"}),(0,a.createElement)("div",{className:"relative z-20 bg-white rounded-lg shadow-2xl w-full max-w-xl mx-4 p-6 border border-gray-200"},(0,a.createElement)("div",{className:"wcar-cta-content--wrapper flex flex-col gap-2.5 p-6 rounded-xl border border-solid border-gray-200"},(0,a.createElement)("div",{className:"wcar-cta-content--banner text-center mb-4"},(0,a.createElement)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTkxIiBoZWlnaHQ9IjE2MiIgdmlld0JveD0iMCAwIDE5MSAxNjIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF84ODBfMTY2OTUpIj4KPG1hc2sgaWQ9Im1hc2swXzg4MF8xNjY5NSIgc3R5bGU9Im1hc2stdHlwZTpsdW1pbmFuY2UiIG1hc2tVbml0cz0idXNlclNwYWNlT25Vc2UiIHg9IjAiIHk9IjAiIHdpZHRoPSIxOTEiIGhlaWdodD0iMTYyIj4KPHBhdGggZD0iTTE5MSAwSDBWMTYySDE5MVYwWiIgZmlsbD0id2hpdGUiLz4KPC9tYXNrPgo8ZyBtYXNrPSJ1cmwoI21hc2swXzg4MF8xNjY5NSkiPgo8cGF0aCBkPSJNMTUzLjE2MyA3NS43ODIyQzE3NC4wNjEgNzUuNzgyMiAxOTEuMDAxIDU4LjgxNzcgMTkxLjAwMSAzNy44OTFDMTkxLjAwMSAxNi45NjQ1IDE3NC4wNjEgMCAxNTMuMTYzIDBDMTMyLjI2NSAwIDExNS4zMjIgMTYuOTY0NSAxMTUuMzIyIDM3Ljg5MUMxMTUuMzIyIDU4LjgxNzcgMTMyLjI2NSA3NS43ODIyIDE1My4xNjMgNzUuNzgyMloiIGZpbGw9IiNGOUMxQUUiLz4KPHBhdGggZD0iTTE1Ni41MjggMjguMjQxMkgxOC43MDlWMTI3LjM3N0gxNTYuNTI4VjI4LjI0MTJaIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBkPSJNMTU2LjUyOCAxMjhIMTguNzA5MkMxOC4zNjcgMTI4IDE4LjA4NzkgMTI3LjcxOSAxOC4wODc5IDEyNy4zNzdWMjguMjQwNkMxOC4wODc5IDI3Ljg5ODQgMTguMzY3IDI3LjYxODIgMTguNzA5MiAyNy42MTgySDE1Ni41MjhDMTU2Ljg3IDI3LjYxODIgMTU3LjE0OSAyNy44OTg0IDE1Ny4xNDkgMjguMjQwNlYxMjcuMzc3QzE1Ny4xNDkgMTI3LjcxOSAxNTYuODcgMTI4IDE1Ni41MjggMTI4Wk0xOS4zMzA1IDEyNi43NTRIMTU1LjkwNlYyOC44NjMzSDE5LjMzMDVWMTI2Ljc1NFoiIGZpbGw9IiMxQTMxNDIiLz4KPHBhdGggZD0iTTI5Ljg2NjggMzguOTA5NUMyNy44ODQgMzguOTA5NSAyNi4yNzczIDM3LjI5ODUgMjYuMjc3MyAzNS4zMTQxQzI2LjI3NzMgMzMuMzI5OCAyNy44ODQgMzEuNzE4OCAyOS44NjY4IDMxLjcxODhDMzEuODQ5NiAzMS43MTg4IDMzLjQ1NjIgMzMuMzI5OCAzMy40NTYyIDM1LjMxNDFDMzMuNDU2MiAzNy4yOTg1IDMxLjg0OTYgMzguOTA5NSAyOS44NjY4IDM4LjkwOTVaTTI5Ljg2NjggMzIuOTcxN0MyOC41NzU3IDMyLjk3MTcgMjcuNTI3MiAzNC4wMjIzIDI3LjUyNzIgMzUuMzIxOUMyNy41MjcyIDM2LjYyMTYgMjguNTc1NyAzNy42NzIxIDI5Ljg2NjggMzcuNjcyMUMzMS4xNTc5IDM3LjY3MjEgMzIuMjA2MyAzNi42MjE2IDMyLjIwNjMgMzUuMzIxOUMzMi4yMDYzIDM0LjAyMjMgMzEuMTU3OSAzMi45NzE3IDI5Ljg2NjggMzIuOTcxN1oiIGZpbGw9IiMxQTMxNDIiLz4KPHBhdGggZD0iTTQwLjM5NzggMzguMjk1MkM0Mi4wMzg0IDM4LjI5NTIgNDMuMzY2IDM2Ljk2NDIgNDMuMzY2IDM1LjMyMjVDNDMuMzY2IDMzLjY4MDYgNDIuMDM4NCAzMi4zNDk2IDQwLjM5NzggMzIuMzQ5NkMzOC43NTk2IDMyLjM0OTYgMzcuNDI5NyAzMy42ODA2IDM3LjQyOTcgMzUuMzIyNUMzNy40Mjk3IDM2Ljk2NDIgMzguNzU5NiAzOC4yOTUyIDQwLjM5NzggMzguMjk1MloiIGZpbGw9IiMxQTMxNDIiLz4KPHBhdGggZD0iTTQ3Ljk2NjggMzUuMzIyNUM0Ny45NjY4IDM2Ljk2NDQgNDkuMjk0MyAzOC4yOTUyIDUwLjkzNDkgMzguMjk1MkM1Mi41NzU1IDM4LjI5NTIgNTMuOTAzMSAzNi45NjQ0IDUzLjkwMzEgMzUuMzIyNUM1My45MDMxIDMzLjY4MDQgNTIuNTc1NSAzMi4zNDk2IDUwLjkzNDkgMzIuMzQ5NkM0OS4yOTQzIDMyLjM0OTYgNDcuOTY2OCAzMy42ODA0IDQ3Ljk2NjggMzUuMzIyNVoiIGZpbGw9IiNGOUMxQUUiLz4KPHBhdGggZD0iTTEzNi4xMzggNDQuMTQ4NUgyNC4yNjU4QzIzLjkyMzYgNDQuMTQ4NSAyMy42NDQ1IDQzLjg2ODMgMjMuNjQ0NSA0My41MjU4QzIzLjY0NDUgNDMuMTgzNSAyMy45MjM2IDQyLjkwMzMgMjQuMjY1OCA0Mi45MDMzSDEzNi4xMzhDMTM2LjQ3OCA0Mi45MDMzIDEzNi43NTkgNDMuMTgzNSAxMzYuNzU5IDQzLjUyNThDMTM2Ljc1OSA0My44NjgzIDEzNi40NzggNDQuMTQ4NSAxMzYuMTM4IDQ0LjE0ODVaIiBmaWxsPSIjMUEzMTQyIi8+CjxwYXRoIGQ9Ik00MC4zNzg5IDQ3LjAzNjFMMjkuNTY0NSA2OC4zNTkxTDEzMy4yNTEgMTIxLjA3OEwxNDQuMDYzIDk5Ljc1NTVMNDAuMzc4OSA0Ny4wMzYxWiIgZmlsbD0iI0ZGN0M0OCIvPgo8cGF0aCBkPSJNNTIuNjczNSA2Ni43MDExQzUwLjk0MDcgNzAuMTE3NSA0Ni43NzYxIDcxLjQ3OTEgNDMuMzYzOCA2OS43NDM4QzM5Ljk1MTUgNjguMDA4MyAzOC41OTI0IDYzLjgzNzIgNDAuMzI1MyA2MC40MjA4QzQyLjA1ODEgNTcuMDA0NSA0Ni4yMjUxIDU1LjY0MjUgNDkuNjM1IDU3LjM3ODFDNTMuMDQ3MyA1OS4xMTM0IDU0LjQwNjQgNjMuMjg0OCA1Mi42NzM1IDY2LjcwMTFaIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBkPSJNMTI5LjAzIDEwNi4xNDdDMTI4LjkzNiAxMDYuMTQ3IDEyOC44MzYgMTA2LjEyNCAxMjguNzQ5IDEwNi4wNzdMNDYuMjE1OSA2NC4xMTYxQzQ1LjkxMjYgNjMuOTYwNCA0NS43ODg4IDYzLjU4NjggNDUuOTQ0MSA2My4yNzU0QzQ2LjA5OTQgNjIuOTY0MyA0Ni40NzMyIDYyLjg0NzYgNDYuNzgzOCA2My4wMDMyTDEyOS4zMTcgMTA0Ljk2NEMxMjkuNjIgMTA1LjEyIDEyOS43NDQgMTA1LjQ5MyAxMjkuNTg4IDEwNS44MDVDMTI5LjQ3OSAxMDYuMDIyIDEyOS4yNjMgMTA2LjE0NyAxMjkuMDM4IDEwNi4xNDdIMTI5LjAzWiIgZmlsbD0id2hpdGUiLz4KPHBhdGggZD0iTTYzLjU1ODYgODcuODgxOUM2Mi44NDk5IDgwLjU5NzcgNjIuNTI0NyA3Ni44MjMzIDU5Ljg4MTggNzYuOTMyM0M1Ny44NTI4IDc3LjAxNzkgNTcuNzE0NSA4MC44MzEyIDU3Ljc5OTUgODIuOTc5MUM1Ny44MjM3IDgzLjU3MDQgNTcuMTcwOSA4My45NTE4IDU2LjY3MzQgODMuNjI0OUM1MS42MDU5IDczLjgxMTcgNTEuMDIzNCA3Mi4xNTQzIDQ4LjY2NjkgNzMuMDY0N0M0Ny4xMzc5IDczLjY1NjEgNDYuNjU0OSA3NS4wNDEzIDQ3LjcxMDcgNzguMTIzQzQ3LjcxMDcgNzguMTIzIDQ3LjE5MTMgNzcuMjc0OCA0Ni45NDEzIDc2Ljg2MjJDNDUuMjk1OSA3NC4xNzc2IDQxLjg1MiA3Ni4zNTY1IDQzLjM1MTkgNzguODcwMkM0NS4xMzA4IDgxLjg0MjkgNDkuNDk5MyA4Ny41NzgzIDQ5LjQ5OTMgODcuNTc4M0w0Ni4yMjc4IDk1LjE4OTJMNTkuNjgwMyA5OS4xNTA0QzU5LjY4MDMgOTkuMTUwNCA2My42ODk2IDg5LjIyMDIgNjMuNTU4NiA4Ny44ODE5WiIgZmlsbD0id2hpdGUiLz4KPHBhdGggZD0iTTU5LjY4MiA5OS43NzQxQzU5LjYyNjIgOTkuNzc0MSA1OS41NjU1IDk5Ljc2NjMgNTkuNTAyNCA5OS43NTA3TDQ2LjA0OTkgOTUuNzg5NUM0NS44OCA5NS43NDI4IDQ1LjczOTIgOTUuNjE4NSA0NS42NjE1IDk1LjQ1NTFDNDUuNTgzOSA5NS4yOTE2IDQ1LjU4MzkgOTUuMTA0OCA0NS42NTQzIDk0Ljk0MTNMNDguNzc3NyA4Ny42NjUyQzQ3Ljg2MDMgODYuNDUxMiA0NC4zODAxIDgxLjgxMyA0Mi44MDk5IDc5LjE5MDRDNDEuODUzNyA3Ny41OTUyIDQyLjQ5MiA3Ni4wNzc2IDQzLjYxMDggNzUuMzkyNkM0NC40NDA4IDc0Ljg4NjkgNDUuNTY5MyA3NC44NDAyIDQ2LjUwODUgNzUuNTAxNkM0Ni40NzcgNzQuMjMzMyA0Ni45MjExIDczLjA2NiA0OC40MjgzIDcyLjQ4MjJDNTEuMTEgNzEuNDQ3MiA1MS45NDk3IDczLjA5NzEgNTYuMDA1MiA4MS4wMDM1TDU3LjA2MzMgODMuMDU4MkM1Ny4xMDk0IDgzLjAzNDggNTcuMTYyOCA4My4wMDM3IDU3LjE2MjggODMuMDAzN0M1Ny4wMDAyIDc4LjcwMDIgNTcuOTI0OCA3Ni4zODg5IDU5Ljg0NDYgNzYuMzExMUM2My4wNjI3IDc2LjE3ODggNjMuNDI2NyA4MC4yMDIgNjQuMTM1NCA4Ny41MDk1TDY0LjE2NDUgODcuODIwNkM2NC4yOTggODkuMjA1OSA2MS4xOTY0IDk3LjAxOTEgNjAuMjQwMSA5OS4zODQ5QzYwLjE0NzkgOTkuNjI2MiA1OS45MTQ5IDk5Ljc3NDEgNTkuNjY1IDk5Ljc3NDFINTkuNjgyWk00Ny4wNzY0IDk0Ljc5MzRMNTkuMzE1NSA5OC4zOTY2QzYxLjE3NDUgOTMuNzUwNiA2Mi45OTk2IDg4LjY5MjQgNjIuOTQ2MiA4Ny45Mzc0TDYyLjkxNDYgODcuNjI2M0M2Mi4yMzc1IDgwLjY2OSA2MS44NTY1IDc3LjU0ODUgNTkuOTg1MyA3Ny41NDg1QzU5Ljk2MTEgNzcuNTQ4NSA1OS45MzY4IDc3LjU0ODUgNTkuOTE0OSA3Ny41NDg1QzU4LjY2MjYgNzcuNjAyOSA1OC4zMjA0IDgwLjM3MzIgNTguNDIyNCA4Mi45NDkyQzU4LjQ0NjYgODMuNDU0OSA1OC4xODIxIDgzLjkyOTcgNTcuNzM4IDg0LjE3ODhDNTcuMjk2MyA4NC40Mjc2IDU2Ljc1OTkgODQuNDE5OCA1Ni4zMzI4IDg0LjEzOTlDNTYuMjM4MSA4NC4wNzc2IDU2LjE2NzcgODMuOTk5OCA1Ni4xMTQ0IDgzLjkwNjRMNTQuOTEwNiA4MS41NzE3QzUwLjk0NSA3My44NTk3IDUwLjQ1NzIgNzMuMDM0OCA0OC44ODcgNzMuNjQxN0M0OC4yNDg3IDczLjg5MDggNDcuMDY5MiA3NC4zNDIgNDguMjg3NSA3Ny45MTQxQzQ4LjM4OTQgNzguMjE3NiA0OC4yNDg3IDc4LjU0NDYgNDcuOTYyMyA3OC42NzY5QzQ3LjY3MzUgNzguODA5IDQ3LjMzMTMgNzguNzA4IDQ3LjE2ODcgNzguNDM1Nkw0Ni4zOTkzIDc3LjE3NDhDNDUuNzcwOCA3Ni4xNTU0IDQ0Ljg2NzkgNzYuMDc3NiA0NC4yNTM5IDc2LjQ1MTJDNDMuNjU2OSA3Ni44MTY4IDQzLjMwNzQgNzcuNjAzIDQzLjg3MjkgNzguNTQ0NkM0NS42MjI3IDgxLjQ1NSA0OS45NDI3IDg3LjEzNTkgNDkuOTgxNSA4Ny4xOTA0QzUwLjEyMjMgODcuMzY5NCA1MC4xNDY1IDg3LjYxMDcgNTAuMDU5MiA4Ny44MTI4TDQ3LjA2OTIgOTQuNzc3OUw0Ny4wNzY0IDk0Ljc5MzRaIiBmaWxsPSIjMUEzMTQyIi8+CjxwYXRoIGQ9Ik01MC42MjY2IDg2LjU5OTVDNTAuMzc5MSA4Ni41OTk1IDUwLjEzNjQgODYuNDQzOCA1MC4wNDQyIDg2LjE5NDdMNDcuMTI5NSA3OC4zNDI2QzQ3LjAxMyA3OC4wMjM3IDQ3LjE3NTUgNzcuNjY1NyA0Ny40OTU5IDc3LjU0MTFDNDcuODIxMSA3Ny40MjQ0IDQ4LjE3MDYgNzcuNTg3OCA0OC4yOTY4IDc3LjkwNjlMNTEuMjA5MSA4NS43NTkxQzUxLjMyNTYgODYuMDc4IDUxLjE2MyA4Ni40MzYgNTAuODQ1MSA4Ni41NjA2QzUwLjc3NDcgODYuNTgzOSA1MC42OTcgODYuNTk5NSA1MC42MjY2IDg2LjU5OTVaIiBmaWxsPSIjMUEzMTQyIi8+CjxwYXRoIGQ9Ik00Mi45OTU0IDkyLjk1N0MzNy43NjI5IDEwMy44ODMgMzMuNzg1MiAxMTEuOTkyIDMzLjc4NTIgMTExLjk5Mkw0Mi41MjcgMTQxLjY4MUM0OC41MzYxIDEzOS4zNzcgNTEuMDE0IDEzNi4yMSA2My4zOTM4IDk5LjA5NzJMNDIuOTk1NCA5Mi45NTdaIiBmaWxsPSIjRjlDMUFFIi8+CjxwYXRoIGQ9Ik00Mi41MjUyIDE0Mi4zMDNDNDIuNDMzIDE0Mi4zMDMgNDIuMzQwNyAxNDIuMjggNDIuMjUzNCAxNDIuMjQxQzQyLjA5ODEgMTQyLjE2MyA0MS45ODE2IDE0Mi4wMjMgNDEuOTM1NSAxNDEuODZMMzMuMTkzNiAxMTIuMTcxQzMzLjE0NTEgMTEyLjAyMyAzMy4xNjIxIDExMS44NiAzMy4yMzI1IDExMS43MkMzMy4yNzEzIDExMS42NDIgMzcuMjY2IDEwMy40NzggNDIuNDQwMyA5Mi42ODQ3QzQyLjU3MzcgOTIuNDA0NSA0Mi44OTE3IDkyLjI3MjIgNDMuMTc4MSA5Mi4zNTc4TDYzLjU3ODkgOTguNDk3OEM2My43NDE1IDk4LjU0NDUgNjMuODc1IDk4LjY2MTIgNjMuOTUyNiA5OC44MDkxQzY0LjAzMDMgOTguOTU3IDY0LjA0NDkgOTkuMTM2IDYzLjk5MTUgOTkuMjkxN0M1MS44MTMxIDEzNS43NzQgNDkuMjY0OCAxMzkuNzUxIDQyLjc1MDkgMTQyLjI1N0M0Mi42ODA1IDE0Mi4yODggNDIuNjAyOSAxNDIuMjk1IDQyLjUyNTIgMTQyLjI5NVYxNDIuMzAzWk0zNC40NTA4IDExMi4wNTRMNDIuOTMwNSAxNDAuODU2QzQ4LjA1ODYgMTM4LjczMSA1MC43MDg4IDEzNS4wODkgNjIuNjAwOCA5OS41MTcyTDQzLjMxODggOTMuNzEyQzM4LjcyNyAxMDMuMjk5IDM1LjEwMzYgMTEwLjcxNiAzNC40NDM1IDExMi4wNTRIMzQuNDUwOFoiIGZpbGw9IiMxQTMxNDIiLz4KPHBhdGggZD0iTTgyLjc4NTEgMTExLjgxMkM4Mi43MjIgMTEyLjQ0MiA4My4xODA3IDExMy4wMDMgODMuODA5MyAxMTMuMDY1Qzg0LjQ0MDMgMTEzLjEyNyA4NC45OTg1IDExMi42NjggODUuMDYxNiAxMTIuMDM4Qzg1LjEyNDcgMTExLjQwNyA4NC42NjYgMTEwLjg0NyA4NC4wMzUgMTEwLjc4NUM4My40MDY0IDExMC43MjMgODIuODQ1OCAxMTEuMTgyIDgyLjc4NTEgMTExLjgxMloiIGZpbGw9IiNGQ0ZGRkYiLz4KPHBhdGggZD0iTTI2LjM5MjggOTkuMjgzOEMyNS4xNTAyIDk5LjI4MzggMjMuOTQ2NCA5OS4wODkyIDIzLjg3NiA5OS4wODE0QzIzLjUzMzggOTkuMDI3IDIzLjMwODEgOTguNzA4MSAyMy4zNjM5IDk4LjM2NTZDMjMuNDE3MyA5OC4wMjMxIDIzLjczNTIgOTcuNzk3NCAyNC4wNzc0IDk3Ljg1MTlDMjQuMTAxNyA5Ny44NTE5IDI2LjA0MzMgOTguMTYzMiAyNy4zNzMyIDk3Ljk4NDJDMjcuNzA4MiA5Ny45Mzc1IDI4LjAyNjEgOTguMTc4OCAyOC4wNzIyIDk4LjUxMzVDMjguMTE4MyA5OC44NTYgMjcuODc4IDk5LjE2NzEgMjcuNTQzMSA5OS4yMTM4QzI3LjE3OTEgOTkuMjYwNSAyNi43OTA4IDk5LjI4MzggMjYuNDAyNSA5OS4yODM4SDI2LjM5MjhaIiBmaWxsPSIjMUEzMTQyIi8+CjxwYXRoIGQ9Ik03My43Njc0IDE5LjQ1NDdDNzEuNDA2IDE5LjQ1NDcgNjkuNDg2MyAxNy41MzI2IDY5LjQ4NjMgMTUuMTc0NkM2OS40ODYzIDEyLjgxNjYgNzEuNDA2IDEwLjg4NjcgNzMuNzY3NCAxMC44ODY3Qzc2LjEzMTMgMTAuODg2NyA3OC4wNTEgMTIuODA4OCA3OC4wNTEgMTUuMTc0NkM3OC4wNTEgMTcuNTQwNCA3Ni4xMzEzIDE5LjQ1NDcgNzMuNzY3NCAxOS40NTQ3Wk03My43Njc0IDEyLjEzMTlDNzIuMDk3NyAxMi4xMzE5IDcwLjcyODkgMTMuNDkzNiA3MC43Mjg5IDE1LjE3NDZDNzAuNzI4OSAxNi44NTU3IDcyLjA5MDQgMTguMjA5NiA3My43Njc0IDE4LjIwOTZDNzUuNDQ2OSAxOC4yMDk2IDc2Ljc5ODcgMTYuODQ3OSA3Ni43OTg3IDE1LjE3NDZDNzYuNzk4NyAxMy41MDEzIDc1LjQzOTYgMTIuMTMxOSA3My43Njc0IDEyLjEzMTlaIiBmaWxsPSIjMUEzMTQyIi8+CjxwYXRoIGQ9Ik0xMDguMjQzIDE0OC45OThDMTA0LjQxOCAxNDguOTk4IDEwMi41MjkgMTQ2LjQ3NiAxMDAuNzEyIDE0NC4wNEM5OS4wMDA3IDE0MS43NTIgOTcuMzc3MSAxMzkuNTgxIDk0LjE3NiAxMzkuNTgxQzkzLjgzMzggMTM5LjU4MSA5My41NTQ3IDEzOS4zMDEgOTMuNTU0NyAxMzguOTU4QzkzLjU1NDcgMTM4LjYxNiA5My44MzM4IDEzOC4zMzYgOTQuMTc2IDEzOC4zMzZDOTguMDA4MSAxMzguMzM2IDk5Ljg4NjYgMTQwLjg1NyAxMDEuNzA3IDE0My4yOTNDMTAzLjQxNSAxNDUuNTgxIDEwNS4wMzkgMTQ3Ljc1MiAxMDguMjQzIDE0Ny43NTJDMTExLjQ0NCAxNDcuNzUyIDExMy4wNjcgMTQ1LjU4OSAxMTQuNzc4IDE0My4yOTNDMTE2LjU5NiAxNDAuODU3IDExOC40ODQgMTM4LjMzNiAxMjIuMzA5IDEzOC4zMzZDMTI2LjEzMSAxMzguMzM2IDEyOC4wMiAxNDAuODU3IDEyOS44NCAxNDMuMjkzQzEzMS41MSAxNDUuNTI3IDEzMy4wODcgMTQ3LjY0MyAxMzYuMTMzIDE0Ny43NDVDMTM2LjQ3NSAxNDcuNzUyIDEzNi43NDcgMTQ4LjA0OCAxMzYuNzMyIDE0OC4zOUMxMzYuNzI1IDE0OC43MzMgMTM2LjQ0NCAxNDguOTk3IDEzNi4wODcgMTQ4Ljk4OUMxMzIuNDQyIDE0OC44NjUgMTMwLjYxNiAxNDYuNDE0IDEyOC44MzggMTQ0LjA0QzEyNy4xMjcgMTQxLjc1MiAxMjUuNTAzIDEzOS41ODEgMTIyLjMwMiAxMzkuNTgxQzExOS4wOTggMTM5LjU4MSAxMTcuNDc1IDE0MS43NDUgMTE1Ljc2NCAxNDQuMDRDMTEzLjk0NiAxNDYuNDc2IDExMi4wNTggMTQ4Ljk5OCAxMDguMjM1IDE0OC45OThIMTA4LjI0M1oiIGZpbGw9IiNGRjdDNDgiLz4KPHBhdGggZD0iTTk2Ljk0MzkgOTQuMDA2OUM5Ni4wNzI2IDkyLjIwMTMgOTMuNTc3NyA5My4wMTA4IDkzLjAzNDEgOTMuMTExOEM5My4wMzQxIDkzLjExMTggOTYuNDIyMSA5MS4zMjIgOTQuOTk5OSA4OS4zMTQzQzk0LjA3NTMgODguMDA2OCA5MS42NDM1IDg4Ljc5MjcgODkuMzUgODkuOTYwMUM5MS4zNDAxIDg4LjQ5NzIgOTIuMjk2MyA4Ni4zNDEzIDkwLjkyNzUgODUuMjIwN0M4OS41NTM5IDg0LjA5MjMgODcuMTk3MyA4My44ODI0IDc3LjU3NjkgOTAuOTU2MkM3NS45ODQ5IDkyLjEzMTMgNzIuNjExNCA5MC4xNzAyIDcyLjYxMTQgOTAuMTcwMkw2Ny4xNzAyIDg3LjMxNDNDNjcuMTcwMiA4Ny4zMTQzIDY2LjY4OTcgOTIuMjAxMyA2OS4xNjAzIDk3LjAxODVMNjYuNzI4NSAxMDYuOTY0TDgxLjE1MTggMTEyLjM2NUw4My40MTM3IDEwMy45OTlDODQuOTc0MiAxMDMuMjUyIDk0LjY4MiAxMDAuMzU3IDk1LjM3MzcgOTkuMDM0Qzk1LjY5ODkgOTguNDExNiA5NS41OTk0IDk3LjY0ODcgOTUuMjQyNiA5Ny4wMjYzQzk3LjIzMDMgOTUuNjI1NCA5Ny4zMjQ5IDk0Ljc2OTUgOTYuOTUxMiA5My45OTEzTDk2Ljk0MzkgOTQuMDA2OVoiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik04MS4xNDQgMTEzLjAwNUM4MS4wNzM2IDExMy4wMDUgODAuOTk1OSAxMTIuOTkgODAuOTI1NSAxMTIuOTY2TDY2LjUwMjMgMTA3LjU2NUM2Ni4yMDYyIDEwNy40NTYgNjYuMDQzNiAxMDcuMTM3IDY2LjExNCAxMDYuODM0TDY4LjQ5MjMgOTcuMTA2MkM2Ni4wODI0IDkyLjI1MDEgNjYuNTI2NSA4Ny40NjQxIDY2LjU0ODQgODcuMjYxOUM2Ni41NzI2IDg3LjA1OTUgNjYuNjg5MiA4Ni44NzI3IDY2Ljg3NiA4Ni43NzkzQzY3LjA2MjkgODYuNjc4MSA2Ny4yNzg5IDg2LjY3ODEgNjcuNDU4NSA4Ni43NzkzTDcyLjg5OTcgODkuNjM1MkM3My43MDc4IDkwLjEwMjMgNzYuMTg1OCA5MS4yMzA3IDc3LjIxMjMgOTAuNDc1OUM4Ni40OTc4IDgzLjY0MzIgODkuNDE5OSA4My4yMDczIDkxLjMyNSA4NC43NjM4QzkxLjkxNDcgODUuMjQ2MiA5Mi4yMTA4IDg1LjkgOTIuMTk2MyA4Ni42NzA0QzkyLjE3OTMgODcuMjA3NCA5MS45OTk3IDg3Ljc3NTQgOTEuNjgxOCA4OC4zNDM2QzkzLjUzMTEgODcuNzkxIDk0LjgyMjIgODguMDAxMSA5NS41MDY2IDg4Ljk3MzlDOTUuOTI2NSA4OS41NjU0IDk2LjA2NDggOTAuMjI2OCA5NS45MDIyIDkwLjg4ODJDOTUuNzc4NCA5MS40MDE5IDk1LjQ4OTYgOTEuODY4NyA5NS4xNDc0IDkyLjI1NzlDOTYuMDUwMiA5Mi4zMjc5IDk2Ljk4MjIgOTIuNjg2IDk3LjQ5NDMgOTMuNzU5OUM5OC4wNjIyIDk0Ljk1MDYgOTcuNjIwNSA5Ni4wMTY3IDk1Ljk5NDQgOTcuMjYxOUM5Ni4yNTE3IDk3Ljk3NzggOTYuMjI3NCA5OC43MzI1IDk1LjkwMjIgOTkuMzU1MkM5NS4zOTc0IDEwMC4zMjggOTIuNTYwMyAxMDEuNDQ5IDg2Ljc3OTMgMTAzLjQ1NkM4NS41NTg2IDEwMy44NzcgODQuNDg1OSAxMDQuMjUgODMuOTE4IDEwNC40ODRMODEuNzMzNyAxMTIuNTYxQzgxLjY4NzYgMTEyLjczMyA4MS41NzExIDExMi44NzMgODEuNDE1OCAxMTIuOTUxQzgxLjMzMDggMTEyLjk5NyA4MS4yMjg5IDExMy4wMjEgODEuMTI5NCAxMTMuMDIxTDgxLjE0NCAxMTMuMDA1Wk02Ny40NTg1IDEwNi41OTJMODAuNzI0MSAxMTEuNTY1TDgyLjgwNjQgMTAzLjg2MUM4Mi44NTUgMTAzLjY4MiA4Mi45Nzg3IDEwMy41NDIgODMuMTQxMyAxMDMuNDY0QzgzLjY0NjEgMTAzLjIyMyA4NC44NTk2IDEwMi44MDMgODYuMzg4NiAxMDIuMjczQzg4Ljk2MTEgMTAxLjM3OSA5NC4zMTc0IDk5LjUyNjUgOTQuODIyMiA5OC43NzE1Qzk1LjAxNjMgOTguMzkwMyA5NC45NzAyIDk3Ljg1MzIgOTQuNjk4NCA5Ny4zNzA5Qzk0LjUzMzQgOTcuMDkwNyA5NC42MTExIDk2Ljc0MDQgOTQuODc1NiA5Ni41NTM2Qzk2LjgxMjMgOTUuMTg0MSA5Ni41NDA0IDk0LjYwODEgOTYuMzgyNyA5NC4yOTY4Qzk1Ljg4NzYgOTMuMjU0IDk0LjUxODkgOTMuNDI1MiA5My4zOTI4IDkzLjY5NzdMOTMuMTU5NyA5My43NTIxQzkyLjg0OTEgOTMuODE0NCA5Mi41NjAzIDkzLjYzNTQgOTIuNDUxMSA5My4zNDc0QzkyLjM1MTYgOTMuMDU5NCA5Mi40NzU0IDkyLjczMjcgOTIuNzQ3MiA5Mi41OTI2QzkzLjIyMDQgOTIuMzQzNSA5NC40ODczIDkxLjQ5NTMgOTQuNzA1NyA5MC42MDA0Qzk0Ljc3NjEgOTAuMjg5MSA5NC43MTMgOTAuMDAxMSA5NC41MDQzIDg5LjY5NzVDOTMuOTU4MiA4OC45MzQ5IDkyLjE5NjMgODkuMjM4NSA4OS42NDU1IDkwLjUzODJDODkuMzU5MiA5MC42ODYxIDg5IDkwLjU4NDkgODguODMwMSA5MC4zMTI0Qzg4LjY2MDIgOTAuMDQgODguNzI4MiA4OS42NzQyIDg4Ljk5MjcgODkuNDg3NkM5MC4xNjc0IDg4LjYyMzYgOTAuOTM2NyA4Ny41MTA4IDkwLjk1ODUgODYuNjM5MkM5MC45NjgyIDg2LjI2NTYgOTAuODM0NyA4NS45NzAxIDkwLjU0ODQgODUuNzI4OEM4OS40Mjk1IDg0LjgxODMgODcuMDU4NCA4NC43ODcyIDc3Ljk1NzQgOTEuNDc5OEM3Ni4wODM4IDkyLjg1NzMgNzIuNjg4NSA5MC45NTA1IDcyLjMwNzUgOTAuNzI1TDY3Ljc2MTggODguMzQzNkM2Ny43NjE4IDg5Ljk2MjIgNjcuOTg3NSA5My4zOTQxIDY5LjcxMzEgOTYuNzU1OUM2OS43ODExIDk2Ljg4ODMgNjkuNzk4IDk3LjA0MzkgNjkuNzY2NSA5Ny4xOTE4TDY3LjQ2NTggMTA2LjZMNjcuNDU4NSAxMDYuNTkyWiIgZmlsbD0iIzFBMzE0MiIvPgo8cGF0aCBkPSJNODYuNDA1NCA5Ny41NzkzQzg2LjE4NyA5Ny41NzkzIDg1Ljk4NTUgOTcuNDcwMyA4NS44NjkgOTcuMjY4MkM4NS42OTY3IDk2Ljk3MjQgODUuNzk4NiA5Ni41OTEgODYuMDk0NyA5Ni40MTk4TDkyLjcyMjcgOTIuNTgzM0M5My4wMTg4IDkyLjQxMjEgOTMuMzk5OCA5Mi41MTMzIDkzLjU2OTcgOTIuODA5MUM5My43NDIgOTMuMTA0NiA5My42NDAxIDkzLjQ4NiA5My4zNDQgOTMuNjU3Mkw4Ni43MTYgOTcuNDkzN0M4Ni42MTQxIDk3LjU0ODIgODYuNTE0NiA5Ny41NzkzIDg2LjQwNTQgOTcuNTc5M1oiIGZpbGw9IiMxQTMxNDIiLz4KPHBhdGggZD0iTTgzLjQ5OCA5NC4wNjNDODMuMjg5MyA5NC4wNjMgODMuMDc4MSA5My45NTQgODIuOTYxNiA5My43NTk0QzgyLjc5MTcgOTMuNDYzNiA4Mi44ODQgOTMuMDgyNSA4My4xODAxIDkyLjkwMzRMODkuMjQyNSA4OS4zMjM2Qzg5LjUzNjIgODkuMTUyNCA4OS45MTcyIDg5LjI0NTggOTAuMDk2OCA4OS41NDE2QzkwLjI2NjcgODkuODM3NCA5MC4xNzQ1IDkwLjIxODUgODkuODc4NCA5MC4zOTc1TDgzLjgxNTkgOTMuOTY5NkM4My43MTY0IDk0LjAzMTggODMuNjA3MiA5NC4wNTUyIDgzLjQ5OCA5NC4wNTUyVjk0LjA2M1oiIGZpbGw9IiMxQTMxNDIiLz4KPHBhdGggZD0iTTg4LjA3NTIgMTAwLjQxM0M4Ny44Mjc2IDEwMC40MTMgODcuNTk0NyAxMDAuMjU4IDg3LjQ5MjcgMTAwLjAxNkM4Ny4zNjkgOTkuNjk3MiA4Ny41MzE2IDk5LjMzMTMgODcuODQ5NSA5OS4yMTQ4TDk1LjAwODkgOTYuNDY3NkM5NS4zMjY5IDk2LjM0MzEgOTUuNjgzNiA5Ni41MDY1IDk1LjgwNzQgOTYuODI1N0M5NS45MzM2IDk3LjE0NDYgOTUuNzY4NiA5Ny41MTA0IDk1LjQ1MDcgOTcuNjI3Mkw4OC4yOTM2IDEwMC4zNzRDODguMjIzMiAxMDAuNDA1IDg4LjE0NTYgMTAwLjQxMyA4OC4wNjc5IDEwMC40MTNIODguMDc1MloiIGZpbGw9IiMxQTMxNDIiLz4KPHBhdGggZD0iTTMyLjI5ODUgODIuMzExQzMyLjQ1MzggOTAuNjUzNSAyNy4wNjEyIDk5Ljg5ODcgMTkuMTEwNiAxMDAuMDQ3QzExLjE1MjYgMTAwLjE5NCA0LjU3ODA1IDkzLjU1NjEgNC40MjI3MiA4NS4yMTM5QzQuMjY3NCA3Ni44NzEzIDEwLjU5MiA2OS45OTE5IDE4LjU0OTkgNjkuODQ0QzI2LjUwNzkgNjkuNjk2MiAzMi4xNDMyIDczLjk2ODcgMzIuMjk4NSA4Mi4zMTFaIiBmaWxsPSIjMUEzMTQyIi8+CjxwYXRoIGQ9Ik0xMy41NTU1IDEwNS44ODNMMTMuNTMxMiA5OS4wODE2QzEzLjUzMTIgOTkuMDgxNiAyMC44MzYzIDk4LjcxNiAyMi40NzY5IDg5LjExMjhDMjIuNDc2OSA4OS4xMTI4IDI0LjQwMzkgODcuODA1MyAyMy4wODEyIDgwLjU1MjVDMjIuOTg5IDgwLjA1NDQgMjMuMzU1NSA3OS41ODc2IDIzLjg2MDMgNzkuNTQ4N0MyNS45MDM4IDc5LjQwODYgMzAuNDg4MyA3OC44NzE1IDMwLjQ0OTQgNzYuODYzOEwzMi41MDk5IDgzLjg2NzdMMzUuNTcwMyA4NC4zNjU5QzM1Ljg1OTEgODQuNDEyMyAzNi4wNjA1IDg0LjY2OTIgMzYuMDM4NyA4NC45NjVMMzUuNjk2NSA4OS4yNjg0QzM2LjM1NjYgOTIuNjkyNiAzNy4zMDMxIDk3LjUwOTggMjcuNDQyNCA5OC41OTkzTDI3Ljk0NzMgMTA2LjE3OUwxMy41NDU4IDEwNS44ODNIMTMuNTU1NVoiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik0yNy45NTQgMTA2LjgwM0MyNy42Mjg4IDEwNi44MDMgMjcuMzU2OSAxMDYuNTU0IDI3LjMzMjcgMTA2LjIxOUwyNi44Mjc5IDk4LjYzOTFDMjYuODAzNiA5OC4zMDQ3IDI3LjA0MzkgOTguMDE2NyAyNy4zNzg4IDk3Ljk3NzhDMzEuMDYyOSA5Ny41NzMgMzMuNTAxOSA5Ni41ODQ3IDM0LjYzMDQgOTUuMDUxOEMzNS44NTg1IDkzLjM4NjMgMzUuNDQ1OSA5MS4yNjk2IDM1LjA4OTEgODkuNDAyQzM1LjA3OTQgODkuMzQ3NSAzNS4wNzIyIDg5LjI2MTkgMzUuMDcyMiA4OS4yMDc0TDM1LjQxNDQgODQuOTAzOUwzMi40MDc0IDg0LjQ3NThDMzIuMTc0NCA4NC40MzY5IDMxLjk4MDIgODQuMjY1NiAzMS45MDk5IDg0LjAzOTlMMjkuODQ5NCA3Ny4wMzYyQzI5Ljc0OTkgNzYuNzA5MyAyOS45NDQgNzYuMzU5IDMwLjI2OTIgNzYuMjY1NkMzMC41OTY5IDc2LjE2NDQgMzAuOTQ2NCA3Ni4zNTkgMzEuMDM4NiA3Ni42ODU5TDMyLjk4OTkgODMuMzE2M0wzNS42NjQzIDgzLjc1MjJDMzYuMjYxMyA4My44NTMxIDM2LjY5ODIgODQuNDA1NyAzNi42NDk3IDg1LjAxMjZMMzYuMzE3MiA4OS4yMzA3QzM2LjcwNTUgOTEuMjU0IDM3LjE1NDUgOTMuNzIxIDM1LjYyNTUgOTUuNzk4OEMzNC4zMjcxIDk3LjU1NzQgMzEuODYzNyA5OC42NTQ3IDI4LjA5NDcgOTkuMTUyOUwyOC41NjA3IDEwNi4xNDFDMjguNTgyNSAxMDYuNDgzIDI4LjMyNzcgMTA2Ljc3OSAyNy45ODU1IDEwNi44MDNDMjcuOTY4NSAxMDYuODAzIDI3Ljk1MzkgMTA2LjgwMyAyNy45Mzk0IDEwNi44MDNIMjcuOTU0WiIgZmlsbD0iIzFBMzE0MiIvPgo8cGF0aCBkPSJNMTMuNTUzOCAxMDYuNTA1QzEzLjIxMTYgMTA2LjUwNSAxMi45MzAxIDEwNi4yMjUgMTIuOTMwMSAxMDUuODgyTDEyLjkwODIgOTguMjI0NUMxMi45MDgyIDk3Ljg4MjMgMTMuMTg3MyA5Ny42MDIxIDEzLjUyOTUgOTcuNjAyMUMxMy45MTc4IDk3LjYwOTggMTQuMTUwOCA5Ny44NzQ1IDE0LjE1MDggOTguMjI0NUwxNC4xNzUxIDEwNS44ODJDMTQuMTc1MSAxMDYuMjI1IDEzLjg5MzUgMTA2LjUwNSAxMy41NTM4IDEwNi41MDVaIiBmaWxsPSIjMUEzMTQyIi8+CjxwYXRoIGQ9Ik0yNy42NzU4IDgyLjcwMTVDMjcuNTkwOCA4Mi43MDE1IDI3LjQ5NjEgODIuNjc4MSAyNy40MTEyIDgyLjYzOTJDMjcuMTAwNiA4Mi40OTEzIDI2Ljk2NzEgODIuMTI1NSAyNy4xMTUxIDgxLjgxNDFDMjcuMTM5NCA4MS43Njc0IDI3LjY2ODUgODAuNjYyMyAyOC45MTExIDgwLjI3MzRDMjkuODYgNzkuOTc3NiAzMC45MjMgODAuMTcyMiAzMi4wODA3IDgwLjg0MTRDMzIuMzc2NyA4MS4wMTI2IDMyLjQ3ODcgODEuMzk0IDMyLjMwNjQgODEuNjg5OEMzMi4xMjkyIDgxLjk4NTMgMzEuNzQ4MiA4Mi4wODY1IDMxLjQ1OTQgODEuOTE1M0MzMC42MTk2IDgxLjQyNTIgMjkuODg5MSA4MS4yNjk1IDI5LjI5MjEgODEuNDU2M0MyOC41Njg5IDgxLjY3NDIgMjguMjMzOSA4Mi4zNDM0IDI4LjIzMzkgODIuMzQzNEMyOC4xMjQ3IDgyLjU2MTQgMjcuOTA4OCA4Mi42OTM3IDI3LjY3NTggODIuNjkzN1Y4Mi43MDE1WiIgZmlsbD0iIzFBMzE0MiIvPgo8cGF0aCBkPSJNMjkuMzM2OSA4NC4zMzQ0QzI5LjI5MDggODQuMTMyIDI5LjI1OTIgODMuOTIxOSAyOS4yNTIgODMuNzI3M0MyOS4yNTIgODMuNjM0MSAyOS4yNTE5IDgzLjU0MDcgMjkuMjkwOCA4My40NTUxQzI5LjQyMTggODMuMTkwNCAyOS44ODA1IDgzLjE1MTUgMzAuMDA0MyA4My40MDg0QzMwLjA4MiA4My41NzE5IDMwLjEzMDUgODMuNzUwNiAzMC4xNTIzIDgzLjkyMTlDMzAuMTk4NCA4NC4xOTQzIDMwLjMxNDkgODQuNDUxMiAzMC4xNTk2IDg0LjcyMzZDMzAuMTA2MiA4NC44MTcgMzAuMDE0IDg0LjkwMjQgMjkuODg3OCA4NC45MjU3QzI5LjYwODcgODQuOTgwMiAyOS40NTM0IDg0LjczOTIgMjkuMzkwMyA4NC41NDQ2QzI5LjM2ODQgODQuNDc0NSAyOS4zNDQyIDg0LjM5NjcgMjkuMzI5NiA4NC4zMjY2TDI5LjMzNjkgODQuMzM0NFoiIGZpbGw9IiMxQTMxNDIiLz4KPHBhdGggZD0iTTI1Ljk4ODggODguOTAyQzI1LjA3ODcgOTAuNTUxNiAyMi44NDg0IDkxLjA3MzIgMjEuMDEzNiA5MC4wNTM3QzE5LjE4MTMgODkuMDM0MyAxOC40MjY1IDg2Ljg3MDkgMTkuMzQzOSA4NS4yMjFDMjAuMjU0IDgzLjU3MTMgMjIuNDg0MyA4My4wNDk4IDI0LjMxNjcgODQuMDY5MkMyNi4xNTE0IDg1LjA4ODYgMjYuOTA2MiA4Ny4yNTIxIDI1Ljk4ODggODguOTAyWiIgZmlsbD0id2hpdGUiLz4KPHBhdGggZD0iTTIyLjk1NzUgODkuMTk4MkMyMi43NDg4IDg5LjE5ODIgMjIuNTM3NyA4OS4wODkyIDIyLjQyMTIgODguODk0NkMyMi4yNDQgODguNTk4OCAyMi4zNDM1IDg4LjIxNzQgMjIuNjM5NiA4OC4wMzg3TDIzLjMyNCA4Ny42MzM5TDIxLjYxMyA4Ni4wMTUxQzIxLjM2NTUgODUuNzgxOSAyMS4zNDg1IDg1LjM4NDkgMjEuNTkxMiA4NS4xMzU4QzIxLjgyNDIgODQuODg2NyAyMi4yMTk3IDg0Ljg3MTEgMjIuNDY3MyA4NS4xMTI0TDI0Ljc4NSA4Ny4yOTkyQzI0LjkyMzQgODcuNDMxNSAyNS4wMDEgODcuNjI2MSAyNC45NzkyIDg3LjgyMDdDMjQuOTU0OSA4OC4wMTUzIDI0Ljg0NTcgODguMTg2NSAyNC42NzU4IDg4LjI4NzVMMjMuMjg1MiA4OS4xMTI2QzIzLjE4MzIgODkuMTc0OSAyMy4wNzQgODkuMTk4MiAyMi45NjQ4IDg5LjE5ODJIMjIuOTU3NVoiIGZpbGw9IiMxQTMxNDIiLz4KPHBhdGggZD0iTTM1Ljk2MTUgOTEuMjk5OEgzMy4wNjg2QzMyLjcyNjQgOTEuMjk5OCAzMi40NDczIDkxLjAxOTYgMzIuNDQ3MyA5MC42NzcxQzMyLjQ0NzMgOTAuMzM0NyAzMi43MjY0IDkwLjA1NDcgMzMuMDY4NiA5MC4wNTQ3SDM1Ljk2MTVDMzYuMzAxMyA5MC4wNTQ3IDM2LjU4MjggOTAuMzM0NyAzNi41ODI4IDkwLjY3NzFDMzYuNTgyOCA5MS4wMTk2IDM2LjMwMTMgOTEuMjk5OCAzNS45NjE1IDkxLjI5OThaIiBmaWxsPSIjMUEzMTQyIi8+CjxwYXRoIGQ9Ik0xNDkuNTk2IDE5LjI1OTdDMTQ5LjU5NiAxOS4yNTk3IDEyMi43MDUgMTcuNTMyMiAxMTMuNzUyIDE4LjAxNDhDMTA3Ljg0OCAxOC4zMjU5IDk4LjI3MzQgMjAuMjE3MSA5MS45NjEgMjcuMjM2NEM4NS42NjA2IDM0LjI1NTkgNzkuNDU3NCA0MS40MDc3IDg2LjAxMDEgNDYuMjA5MUM4Ny4zMzc2IDQ3LjE4MjEgODguNjUwNiA0Ny41MTY1IDg5Ljk0MTcgNDcuNDIzMUM5MC4xODIgNDguODc4NSA5MS4wMjE3IDUwLjIzMjYgOTIuNjYyMyA1MS40MzExQzk5LjIxMjcgNTYuMjMyNyAxMDUuNTE1IDQ1LjUwODggMTA4LjgxOCA0NC41MjgzQzEwOS42MTIgNDQuMjk0OCAxMTAuNjk5IDQ0LjAzNzkgMTExLjkwMyA0My43ODEzQzExMi4yNDUgNDYuMDc3IDExMy44NjkgNDguNDgxNSAxMTguMyA1MC4xNzgxQzExOC4zIDUwLjE3ODEgMTA5Ljk2MiA1NS41NjMzIDEwNy4yODcgNTguOTQ4NUMxMDQuNjE1IDYyLjM0MTUgMTAyLjg5NyA2OS45MjEyIDEwOC4wMDMgNzIuMjk0OEMxMTMuMTA5IDc0LjY2ODMgMTI0LjQzMSA2NS4zNjA5IDEyNi45MTEgNjQuMzU3QzEyOS4zODIgNjMuMzUzMSAxNDkuNzc1IDYzLjIwNTIgMTU2LjUzNCA1NS4yOTg2TDE0OS42MDMgMTkuMjU5N0gxNDkuNTk2WiIgZmlsbD0id2hpdGUiLz4KPHBhdGggZD0iTTEwOS45NDUgNzMuMzA2NEMxMDkuMTQ0IDczLjMwNjQgMTA4LjM5OSA3My4xNjYzIDEwNy43MzkgNzIuODYzQzEwNS45NzQgNzIuMDQ1NyAxMDQuNzkyIDcwLjU1OTQgMTA0LjMxOSA2OC41ODI5QzEwMy41MDEgNjUuMTQzMSAxMDQuOTg2IDYwLjg1NSAxMDYuNzkgNTguNTU5M0MxMDguOTc0IDU1Ljc4OSAxMTQuNjcgNTEuODQzMyAxMTYuOTc4IDUwLjI5NDlDMTEzLjg3NiA0OC44Nzg0IDExMi4wMTIgNDYuOTQwOCAxMTEuNDEzIDQ0LjUxMjdDMTEwLjQwMyA0NC43Mzg0IDEwOS41ODggNDQuOTQwOCAxMDguOTk2IDQ1LjExOTZDMTA4LjEyNyA0NS4zNzY1IDEwNi44MjggNDYuNTkwNSAxMDUuNDYgNDcuODgyNEMxMDIuMDAxIDUxLjEyNzUgOTcuMjYxNCA1NS41NjMzIDkyLjI5NTkgNTEuOTI5QzkwLjc4ODggNTAuODIzOSA4OS44MjUzIDQ5LjUyNDMgODkuNDQ0MyA0OC4wNTM2Qzg4LjExNDMgNDguMDMwMyA4Ni44NDAyIDQ3LjU3ODggODUuNjQzNyA0Ni43MDczQzgzLjgzMzIgNDUuMzc2NSA4Mi44MTM5IDQzLjc3MzUgODIuNjI3IDQxLjkzNjhDODIuMTM5MiAzNy4yNDQxIDg3LjExMiAzMS43MDMzIDkxLjUwMjMgMjYuODE2M0M5OC41MjEgMTkuMDAzMSAxMDkuMzc3IDE3LjYxNzggMTEzLjcyMSAxNy4zODQzQzEyMi42MTMgMTYuOTA5NSAxNDkuMzcgMTguNjEzOSAxNDkuNjQyIDE4LjYyOTRDMTQ5LjkyMSAxOC42NDUgMTUwLjE2MSAxOC44NTUyIDE1MC4yMTcgMTkuMTM1NEwxNTcuMTQ5IDU1LjE3NDFDMTU3LjE4NyA1NS4zNjA5IDE1Ny4xMzQgNTUuNTU1NSAxNTcuMDEgNTUuNjk1NkMxNTEuNzE3IDYxLjg4MjUgMTM4LjUyOSA2My40MzEgMTMxLjQ0IDY0LjI3MTRDMTI5LjQxNCA2NC41MTI3IDEyNy42NjQgNjQuNzE1IDEyNy4xNDQgNjQuOTI1MkMxMjYuNTg0IDY1LjE1MDkgMTI1LjM5NSA2NS45MjkxIDEyNC4wMTggNjYuODM5NUMxMTkuOTYzIDY5LjUwMTEgMTE0LjE2NSA3My4yOTg2IDEwOS45NTIgNzMuMjk4NkwxMDkuOTQ1IDczLjMwNjRaTTExMS45MDMgNDMuMTUwOEMxMTIuMDI3IDQzLjE1MDggMTEyLjE1MyA0My4xODk3IDExMi4yNiA0My4yNTk4QzExMi40MDEgNDMuMzYxIDExMi40OTMgNDMuNTA4OSAxMTIuNTE3IDQzLjY4MDFDMTEyLjg5MSA0Ni4yMTY5IDExNC45MSA0OC4yMDkzIDExOC41MTcgNDkuNTg2NUMxMTguNzM1IDQ5LjY3MjIgMTE4Ljg5IDQ5Ljg2NjcgMTE4LjkxMiA1MC4xMDAzQzExOC45MzYgNTAuMzMzOCAxMTguODI3IDUwLjU1OTUgMTE4LjYzMyA1MC42OTE2QzExOC41NDggNTAuNzQ2MSAxMTAuMzUgNTYuMDUzNiAxMDcuNzY4IDU5LjMyOTlDMTA2LjE0NCA2MS4zOTIxIDEwNC44IDY1LjIzNjYgMTA1LjUzIDY4LjI4NzFDMTA1LjkxMSA2OS45MDU2IDEwNi44MzYgNzEuMDU3NCAxMDguMjU4IDcxLjcyNjhDMTExLjc5NCA3My4zNjg3IDExOS4wMTQgNjguNjI5NiAxMjMuMzM0IDY1Ljc5NjdDMTI0Ljg4MiA2NC43NzczIDEyNi4wMDkgNjQuMDQ1OSAxMjYuNjc2IDYzLjc3MzVDMTI3LjM1MyA2My41MDEgMTI4LjkyMyA2My4zMTQyIDEzMS4yOTIgNjMuMDM0QzEzOC4xMTcgNjIuMjMyNSAxNTAuNzU0IDYwLjc0NjMgMTU1Ljg2NyA1NS4xMTJMMTQ5LjA4MSAxOS44NDM1QzE0NS40MjIgMTkuNjE3NyAxMjEuOTQzIDE4LjE5MzYgMTEzLjc5MSAxOC42MjE3QzEwOS42MDIgMTguODQ3NCA5OS4xNDIzIDIwLjE3MDQgOTIuNDI3IDI3LjY0MTFDODguMjE2MiAzMi4zMzM4IDgzLjQzNTIgMzcuNjU2NyA4My44NjQ4IDQxLjc5NjdDODQuMDIwMSA0My4yOTA5IDg0Ljg0MjggNDQuNTY3MiA4Ni4zODE1IDQ1LjY4NzhDODcuNTA3NiA0Ni41MTI3IDg4LjY2NzcgNDYuODcwNyA4OS45MDMgNDYuNzg1MUM5MC4yMjA5IDQ2Ljc2MTcgOTAuNTA3MyA0Ni45ODc1IDkwLjU2MzEgNDcuMzA2NEM5MC43ODg4IDQ4LjY3NjEgOTEuNTk3IDQ5Ljg1OSA5My4wNDEgNTAuOTA5NUM5Ny4xNzY1IDUzLjkzNjkgMTAxLjMwMiA1MC4wNjkxIDEwNC42MjIgNDYuOTY0MUMxMDYuMTY4IDQ1LjUwODggMTA3LjUwNiA0NC4yNTU5IDEwOC42NTYgNDMuOTEzNEMxMDkuNDAxIDQzLjY5NTcgMTEwLjQ0OSA0My40Mzg4IDExMS43ODcgNDMuMTUwOEMxMTEuODMzIDQzLjE0MyAxMTEuODcyIDQzLjEzNTIgMTExLjkxOCA0My4xMzUyTDExMS45MDMgNDMuMTUwOFoiIGZpbGw9IiMxQTMxNDIiLz4KPHBhdGggZD0iTTg5Ljk0MTUgNDguMDQ1N0M4OS43MDg1IDQ4LjA0NTcgODkuNDgyOCA0Ny45MTM0IDg5LjM4MDkgNDcuNjk1N0M4OS4yMzI5IDQ3LjM4NDQgODkuMzY2MyA0Ny4wMTA3IDg5LjY2OTcgNDYuODYyOUM4OS42OTg4IDQ2Ljg0NzMgOTMuMTM1MyA0NS4xNjY1IDk2Ljc0OTEgNDEuMDg4NUMxMDAuNjY2IDM2LjY3NjEgMTEwLjk5MyAzNy4yODMyIDExMS40MyAzNy4zMTQzQzExMS43NjIgMzcuMzM3NyAxMTIuMDEyIDM3LjYxMDEgMTEyLjAxMiAzNy45NDQ2QzExMi4wMTIgMzcuOTgzNSAxMTEuOTY2IDQxLjg5MDIgMTEyLjQ5MyA0My41OTQ0QzExMi41OTUgNDMuOTIxMyAxMTIuNDA4IDQ0LjI3MTYgMTEyLjA4MiA0NC4zNzI4QzExMS43NTUgNDQuNDczNyAxMTEuNDA1IDQ0LjI4NzIgMTExLjMwMyA0My45NjAyQzExMC44NDcgNDIuNDgxNiAxMTAuNzc3IDM5Ljc1MDIgMTEwLjc2OSAzOC41Mjg0QzEwOC41NDYgMzguNDY2MSAxMDAuNjk1IDM4LjUxMjggOTcuNjgxIDQxLjkxMzZDOTMuODgwNCA0Ni4xOTM3IDkwLjM1MTcgNDcuOTEzNCA5MC4yMDYxIDQ3Ljk4MzVDOTAuMTE4NyA0OC4wMjI0IDkwLjAyNjUgNDguMDQ1NyA4OS45NDE1IDQ4LjA0NTdaIiBmaWxsPSIjMUEzMTQyIi8+CjxwYXRoIGQ9Ik0xMTguMjk3IDUwLjgwMTVDMTE4LjE0MiA1MC44MDE1IDExNy45ODYgNTAuNzM5MiAxMTcuODYzIDUwLjYyMjRDMTE3LjYxNSA1MC4zODE0IDExNy42MTUgNDkuOTkyMiAxMTcuODQ4IDQ5Ljc0MzFDMTE3Ljg5NCA0OS42OTY0IDEyMi40MDggNDQuOTgwNCAxMjAuNTA2IDQxLjcwNDJDMTE4LjU0NyAzOC4zNDIzIDExMS40ODIgMzguNTUyNSAxMTEuNDEyIDM4LjU1MjVDMTExLjA2MiAzOC41NjggMTEwLjc4MyAzOC4yOTU2IDExMC43NjYgMzcuOTUzNEMxMTAuNzUyIDM3LjYxMDkgMTExLjAyMyAzNy4zMjI5IDExMS4zNjYgMzcuMzA3M0MxMTEuNjc2IDM3LjI5OTUgMTE5LjI0NiAzNy4wNzM4IDEyMS41NzggNDEuMDczOUMxMjMuOTU3IDQ1LjE1OTQgMTE4Ljk1IDUwLjM4MTQgMTE4LjczNCA1MC42MDY5QzExOC42MDggNTAuNzMxNCAxMTguNDQ1IDUwLjc5MzcgMTE4LjI5IDUwLjc5MzdMMTE4LjI5NyA1MC44MDE1WiIgZmlsbD0iIzFBMzE0MiIvPgo8cGF0aCBkPSJNMTE2LjAzMSA0NC45ODg5QzExNS43ODkgNDQuOTg4OSAxMTUuNTU2IDQ0Ljg0MTMgMTE1LjQ1NiA0NC42QzExNS4zMjMgNDQuMjgwOCAxMTUuNDc4IDQzLjkxNSAxMTUuNzk4IDQzLjc5MDdMMTIxLjE1MiA0MS41ODgxQzEyMS40NyA0MS40NTYxIDEyMS44MzcgNDEuNjExNSAxMjEuOTYgNDEuOTMwNkMxMjIuMDkxIDQyLjI0OTggMTIxLjkzNiA0Mi42MTU2IDEyMS42MTggNDIuNzM5OUwxMTYuMjY0IDQ0Ljk0MjVDMTE2LjE4NyA0NC45NzM0IDExNi4xMDkgNDQuOTg4OSAxMTYuMDMxIDQ0Ljk4ODlaIiBmaWxsPSIjMUEzMTQyIi8+CjxwYXRoIGQ9Ik05OS4zNTIzIDM5Ljc4NTJMODIuMzUxNiA1NC4wMzU2TDk2LjU4MDcgNzEuMDYxMUwxMTMuNTg0IDU2LjgxMDVMOTkuMzUyMyAzOS43ODUyWiIgZmlsbD0iIzFBMzE0MiIvPgo8cGF0aCBkPSJNMTAxLjYyNCA1OS44MDQ2Qzk5LjIwNjQgNjEuODI3OSA5NS42MDczIDYxLjUwODcgOTMuNTg4IDU5LjA4ODdDOTEuNTY2NCA1Ni42Njg0IDkxLjg4NDMgNTMuMDY1MyA5NC4zMDE2IDUxLjA0MkM5Ni43MTg4IDQ5LjAxODQgMTAwLjMxOCA0OS4zMzc2IDEwMi4zMzcgNTEuNzU3OUMxMDQuMzU5IDU0LjE3ODEgMTA0LjAzOCA1Ny43ODEzIDEwMS42MjQgNTkuODA0NloiIGZpbGw9IiNGRjdDNDgiLz4KPHBhdGggZD0iTTE2MC40ODkgMTMuMzM5OEwxNDYuODgxIDE2LjE2MTVMMTU2LjAxMSA2MC4zMDY3TDE2OS42MTYgNTcuNDg0OEwxNjAuNDg5IDEzLjMzOThaIiBmaWxsPSIjMUEzMTQyIi8+CjxwYXRoIGQ9Ik0xMS4yNzE1IDEwNS40MDlMMTEuMjk1NyAxMDAuNTI5TDI4Ljc4OTEgMTAwLjA0N0wzNS42MjgyIDEwNi4yMjZMMTEuMjcxNSAxMDUuNDA5WiIgZmlsbD0id2hpdGUiLz4KPHBhdGggZD0iTTM1LjYyNjYgMTA2Ljg0OEwxMS4yNDggMTA2LjAzOUMxMC45MTMxIDEwNi4wMzEgMTAuNjQxMyAxMDUuNzUxIDEwLjY0ODYgMTA1LjQxNkwxMC42ODAxIDEwMC41MzdDMTAuNjgwMSAxMDAuMjAyIDEwLjk1MTkgOTkuOTI5OCAxMS4yODY5IDk5LjkxNDJMMjguNzgwMiA5OS40MzE2QzI4LjkyMSA5OS40MzE2IDI5LjA5MDkgOTkuNDg2MSAyOS4yMTQ3IDk5LjU5NTFMMzYuMDUzOCAxMDUuNzc0QzM2LjI0NzkgMTA1Ljk0NSAzNi4zMTEgMTA2LjIyNSAzNi4yMTY0IDEwNi40NjdDMzYuMTI0MSAxMDYuNyAzNS44OTEyIDEwNi44NTYgMzUuNjQxMiAxMDYuODU2TDM1LjYyNjYgMTA2Ljg0OFpNMTEuODkzNiAxMDQuODA5TDMzLjkzOTkgMTA1LjU0MUwyOC41NTQ1IDEwMC42NjlMMTEuOTE1NCAxMDEuMTI4TDExLjg5MzYgMTA0LjgwMVYxMDQuODA5WiIgZmlsbD0iIzFBMzE0MiIvPgo8cGF0aCBkPSJNNjUuOTk4OCAxMDIuNDgzQzYxLjYyMyAxMTMuNzc1IDU4LjI5MDggMTIyLjE4IDU4LjI5MDggMTIyLjE4QzQ1LjA2MTYgMTA2Ljk2NSA0Mi4wNzg5IDEwNC43NzEgMjguNTMxNyAxMDMuMzI0QzI4LjE2MDQgMTAzLjI4NSAxOS4xMDU1IDEwMy4yMyAxMy4zNjMzIDEwMy42NjZDMi42NDU5OSAxMDQuNDc1IC0zLjMwMDAxIDExNi45MTEgMy41ODUyMSAxNDguOTVWMTYxLjM4Nkg0OS43MDE5QzQ5LjcwMTkgMTYxLjM4NiA0OS4yMjg2IDE0OC4yODkgNDkuMTg5OCAxNDcuNjU4QzU1LjY2OTcgMTUzLjU0OSA2NC44OCAxNTMuMjA3IDY5LjMwMTggMTUxLjEwNkM3NS4xMDcxIDE0OC4zNDMgNzcuMzM3NCAxNDQuOTk3IDg2LjgxOTUgMTA3LjAzNUw2NS45OTg4IDEwMi40OTFWMTAyLjQ4M1oiIGZpbGw9IiNGOUMxQUUiLz4KPHBhdGggZD0iTTQ5LjcwMjEgMTYyLjAwMUM0OS4zNjcyIDE2Mi4wMDEgNDkuMDk1MyAxNjEuNzM2IDQ5LjA4MDggMTYxLjQwMUM0OS4wODA4IDE2MS4yNjkgNDguNTk3OCAxNDguMzA0IDQ4LjU2NjMgMTQ3LjY4MkM0OC41NTE3IDE0Ny40MzMgNDguNjkyNSAxNDcuMTk5IDQ4LjkyNTQgMTQ3LjA5QzQ5LjE1MTEgMTQ2Ljk4MSA0OS40MjMgMTQ3LjAyIDQ5LjYwOTkgMTQ3LjE5MUM1NS44ODExIDE1Mi44ODggNjQuNzQ2NyAxNTIuNTc2IDY5LjAzNzUgMTUwLjUzOEM3NC40MjI5IDE0Ny45NzcgNzYuNTkyNSAxNDUuMzQ3IDg2LjA2NDkgMTA3LjUwMkw2Ni4zOTQ2IDEwMy4yMDdDNjIuMTU5NiAxMTQuMTI1IDU4LjkxMjMgMTIyLjMyNyA1OC44ODA3IDEyMi40MDVDNTguODAzMSAxMjIuNjA4IDU4LjYyMzUgMTIyLjc1NiA1OC40MDUxIDEyMi43ODdDNTguMTk2NCAxMjIuODI2IDU3Ljk3NzkgMTIyLjc0OCA1Ny44Mjk5IDEyMi41ODRDNDQuODI4OCAxMDcuNjM1IDQyLjA2MjEgMTA1LjM4NiAyOC40Nzg1IDEwMy45MzhDMjguMDU4NiAxMDMuOTA3IDE5LjIxNDkgMTAzLjgzNyAxMy40MjQyIDEwNC4yODFDMTAuMDExOSAxMDQuNTM4IDcuMjY5NDcgMTA2LjAyNCA1LjI3MjEgMTA4LjcwMUMwLjM0NTQyIDExNS4yOTIgLTAuMDI4MzA5OSAxMjkuMTYgNC4xOTk0MiAxNDguODFDNC4yMDY3IDE0OC44NTcgNC4yMTYzOSAxNDguODk1IDQuMjE2MzkgMTQ4Ljk0MlYxNjEuMzc4QzQuMjE2MzkgMTYxLjcyIDMuOTM0ODggMTYyLjAwMSAzLjU5MjY4IDE2Mi4wMDFDMy4yNTI5MSAxNjIuMDAxIDIuOTcxMzcgMTYxLjcyIDIuOTcxMzcgMTYxLjM3OFYxNDkuMDA0Qy0xLjM3Mjg1IDEyOC43NCAtMC45MzYwMDUgMTE0LjkzNSA0LjI2OTc4IDEwNy45NDZDNi40OTI4NSAxMDQuOTczIDkuNTM4NjcgMTAzLjMxNiAxMy4zMjQ3IDEwMy4wMzZDMTguOTk2NSAxMDIuNjA4IDI4LjEyOSAxMDIuNjQ3IDI4LjYwMjMgMTAyLjcwMUM0Mi4zMTIgMTA0LjE2NCA0NS41NjY2IDEwNi42MzEgNTguMDk0NCAxMjAuOTk3QzU5LjA4OTUgMTE4LjQ5MSA2MS45NDExIDExMS4yNTQgNjUuNDIzOCAxMDIuMjU3QzY1LjUzMyAxMDEuOTY5IDY1LjgzNjQgMTAxLjgwNiA2Ni4xMzk3IDEwMS44NzZMODYuOTU4IDEwNi40MjFDODcuMTIzIDEwNi40NiA4Ny4yNjE0IDEwNi41NjEgODcuMzU2IDEwNi43MDFDODcuNDQxIDEwNi44NDEgODcuNDcyNSAxMDcuMDIgODcuNDMzNyAxMDcuMTg0Qzc4LjEwNyAxNDQuNDk5IDc1Ljg3NjYgMTQ4LjY2MiA2OS41NzM5IDE1MS42NjZDNjUuMjIyNCAxNTMuNzM2IDU2LjQ3ODEgMTU0LjE2NCA0OS44NzIgMTQ5LjAzNkM1MC4wMDU0IDE1Mi40NzUgNTAuMzE2MSAxNjAuOTI3IDUwLjMzMDYgMTYxLjM2MkM1MC4zNDc2IDE2MS43MDUgNTAuMDc1OCAxNjEuOTkzIDQ5LjczMzYgMTYyLjAwOEg0OS43MDk0TDQ5LjcwMjEgMTYyLjAwMVoiIGZpbGw9IiMxQTMxNDIiLz4KPHBhdGggZD0iTTU0Ljk1NTUgMTMxLjE3NkM1NC44Nzc5IDEzMS4xNzYgNTQuODAwMiAxMzEuMTYgNTQuNzIyNSAxMzEuMTI5QzU0LjQwMjIgMTMxLjAwNSA1NC4yNDY5IDEzMC42MzkgNTQuMzcwNiAxMzAuMzJMNTcuNzEyNSAxMjEuOTQ2QzU3LjgzODcgMTIxLjYyNyA1OC4yMDI4IDEyMS40NzIgNTguNTIwNyAxMjEuNTk2QzU4Ljg0MSAxMjEuNzIxIDU4Ljk5NjQgMTIyLjA4NyA1OC44NzAyIDEyMi40MDVMNTUuNTMwNyAxMzAuNzc5QzU1LjQyODggMTMxLjAyIDU1LjIwMzEgMTMxLjE2OCA1NC45NTU1IDEzMS4xNjhWMTMxLjE3NloiIGZpbGw9IiMxQTMxNDIiLz4KPHBhdGggZD0iTTQ5LjE4NzkgMTQ4LjI3MkM0OS4wNTY4IDE0OC4yNzIgNDguOTI1OCAxNDguMjMzIDQ4LjgwOTMgMTQ4LjE0TDMzLjQwNTUgMTM2LjIxOEMzMy4xMzM3IDEzNi4wMDcgMzMuMDg3NiAxMzUuNjE4IDMzLjI5NjMgMTM1LjM0NkMzMy41MDUgMTM1LjA3NCAzMy44OTU4IDEzNS4wMjcgMzQuMTY3NiAxMzUuMjM3TDQ5LjU2ODkgMTQ3LjE1OUM0OS44NDA3IDE0Ny4zNjkgNDkuODg5MyAxNDcuNzU5IDQ5LjY3ODEgMTQ4LjAzMUM0OS41NTQ0IDE0OC4xODYgNDkuMzc0OCAxNDguMjcyIDQ5LjE4NzkgMTQ4LjI3MloiIGZpbGw9IiMxQTMxNDIiLz4KPHBhdGggZD0iTTI2LjI1NCA5OS4yOTk1QzI1LjM0MzkgOTkuMjk5NSAyNC42NjkyIDk5LjE4MyAyNC42MzA0IDk5LjE3NTNDMjQuMjk1NCA5OS4xMTMgMjQuMDYyNSA5OC43OTM4IDI0LjEyNTYgOTguNDU5MUMyNC4xNzkgOTguMTI0NCAyNC40OTY5IDk3Ljg5MTIgMjQuODM5MSA5Ny45NTM0QzI0Ljg0NjQgOTcuOTUzNCAyNi4wNzQ0IDk4LjE2MzQgMjcuMzcyOCA5Ny45ODQ2QzI3LjcwNzcgOTcuOTM3OSAyOC4wMjU3IDk4LjE3ODkgMjguMDcxOCA5OC41MTM2QzI4LjEyMDMgOTguODU2MSAyNy44Nzc2IDk5LjE2NzUgMjcuNTQ1MSA5OS4yMTQyQzI3LjA5MzcgOTkuMjc2MiAyNi42NDk2IDk5LjI5OTUgMjYuMjU0IDk5LjI5OTVaIiBmaWxsPSIjMUEzMTQyIi8+CjxwYXRoIGQ9Ik04NS45NDczIDQwLjkyNjZDODUuNjk3MyA0MC45MjY2IDg1LjQ2NDMgNDAuNzcwOSA4NS4zNjQ4IDQwLjUyMjFDODUuMjM4NiA0MC4yMDI5IDg1LjQwMzYgMzkuODQ0OSA4NS43MjE2IDM5LjcyMDNDODUuNzUzMSAzOS43MTI2IDg4LjY4MjQgMzguNTQ1MiA5MC43NDI5IDM0LjU1MzFDOTEuNzA2NCAzMi42Nzc3IDg5LjQ4MzMgMjkuOTIyNyA4OS40NTkxIDI5Ljg5OTRDODkuMjQzMSAyOS42MzQ3IDg5LjI4MTkgMjkuMjM4IDg5LjU0NCAyOS4wMjAxQzg5LjgwODUgMjguODAyMSA5MC4yMDY2IDI4Ljg0MSA5MC40MTUzIDI5LjEwNTdDOTAuNTMxOCAyOS4yNDU4IDkzLjE4OTMgMzIuNTIyIDkxLjg0NDggMzUuMTI4OUM4OS41NTM3IDM5LjU2NDkgODYuMjk2OCA0MC44MzMyIDg2LjE2NTcgNDAuODg3N0M4Ni4wOTUzIDQwLjkxMSA4Ni4wMTc3IDQwLjkyNjYgODUuOTQ3MyA0MC45MjY2WiIgZmlsbD0iIzFBMzE0MiIvPgo8cGF0aCBkPSJNMTE4LjcxIDcwLjA2MjZDMTE4LjM3NyA3MC4wNjI2IDExOC4xMDYgNjkuODA1OCAxMTguMDg5IDY5LjQ3MTNDMTE4LjAxOCA2Ny44NzU5IDExNi4xODYgNjUuMTk4OCAxMTQuMTU3IDY1LjAzNTNDMTEyLjQxNyA2NC44OTU0IDEwOS4zMzcgNjcuMjMwMSAxMDguMzA2IDY4LjE0MDVDMTA4LjA0OCA2OC4zNjYgMTA3LjY1MyA2OC4zNDI5IDEwNy40MjcgNjguMDg2MUMxMDcuMjAxIDY3LjgyOTIgMTA3LjIyMyA2Ny40MzIyIDEwNy40OCA2Ny4yMDY3QzEwNy45IDY2LjgzMzEgMTExLjY5NCA2My41OTU4IDExNC4yNTYgNjMuNzk4MkMxMTcuMDYyIDY0LjAyMzYgMTE5LjIzOSA2Ny4zMDc3IDExOS4zMzEgNjkuNDE2OEMxMTkuMzQ4IDY5Ljc1OTEgMTE5LjA4NCA3MC4wNTQ5IDExOC43NDEgNzAuMDcwNEgxMTguNzFWNzAuMDYyNloiIGZpbGw9IiMxQTMxNDIiLz4KPC9nPgo8L2c+CjxkZWZzPgo8Y2xpcFBhdGggaWQ9ImNsaXAwXzg4MF8xNjY5NSI+CjxyZWN0IHdpZHRoPSIxOTEiIGhlaWdodD0iMTYyIiBmaWxsPSJ3aGl0ZSIvPgo8L2NsaXBQYXRoPgo8L2RlZnM+Cjwvc3ZnPgo=",alt:"Call to Action","aria-label":"Call to Action"})),(0,a.createElement)("div",{className:"wcar-cta-content-title"},(0,a.createElement)(IU,{as:"span",color:"primary",size:14,className:"text-primary-600 flex items-center gap-1 mt-0 mb-2"},(0,a.createElement)(SU,{className:"w-5 h-5 inline-block"}),o),(0,a.createElement)(Qh,{size:"md",tag:"h2",title:i}),l&&(0,a.createElement)("p",{className:"text-lg text-gray-600"},t(l)),s&&(0,a.createElement)("p",{className:"text-sm text-gray-500 mt-2.5 mb-0"},s)),(0,a.createElement)("div",{className:"wcar-cta-content--usps"},c&&(0,a.createElement)("h3",{className:"text-lg font-semibold text-gray-900 m-0"},c),u&&(0,a.createElement)("ol",{className:"grid grid-cols-2 text-gray-700 m-0"},u.map((e,t)=>(0,a.createElement)("li",{key:t,className:"flex gap-1 items-center mt-1"},(0,a.createElement)(CU,{className:"w-3.5 h-3.5 text-primary-600"}),(0,a.createElement)("span",{className:"text-sm leading-relaxed"},e))))),(0,a.createElement)(dn,{variant:"primary",size:"md",className:"px-8 py-3 w-full mt-2.5",onClick:()=>{r(p,m)}},d||n()),f&&(0,a.createElement)("div",{className:"text-center text-sm text-gray-500"},(0,a.createElement)("p",null,f)))))},LU=({props:e})=>{const{getActionButtonText:t,upgradeActionButton:n}=AU(),{mainTitle:r,subTitle:o,description:i,actionBtnUrlArgs:s,actionbtnUrl:l}=e;return(0,a.createElement)("div",{className:"absolute inset-0 z-10 flex items-center justify-center"},(0,a.createElement)("div",{className:"absolute inset-0 bg-white/20 backdrop-blur-[2px]"}),(0,a.createElement)("div",{className:"relative z-20 bg-white rounded-lg shadow-2xl w-full max-w-lg p-4 border border-gray-200"},(0,a.createElement)("div",{className:"text-center"},r&&(0,a.createElement)(Qh,{size:"lg",tag:"h2",title:r,className:"mb-2"}),o&&(0,a.createElement)("p",{className:"text-lg text-gray-600"},o),i&&(0,a.createElement)("p",{className:"text-sm text-gray-500 m-0"},i),(0,a.createElement)("span",{className:"text-flamingo-400 font-semibold underline cursor-pointer",onKeyDown:e=>{"Enter"===e.key&&n(s,l)},onClick:()=>n(s,l),role:"button",tabIndex:"0"},t()))))},PU=({isVisible:e=!1,highlightText:t=(0,Yf.__)("Upgrade to Pro","woo-cart-abandonment-recovery"),mainTitle:n=(0,Yf.__)("Unlock Pro Features","woo-cart-abandonment-recovery"),subTitle:r="",description:o="",uspTitle:i="",usps:s=[],actionBtnText:l="",actionbtnUrl:c="",actionBtnUrlArgs:u="",footerMessage:d="",variation:m="modal",backgroundBlur:p=!1})=>{if(!e)return null;const f={highlightText:t,mainTitle:n,description:o,subTitle:r,uspTitle:i,usps:s,actionBtnText:l,actionbtnUrl:c,actionBtnUrlArgs:u,footerMessage:d,backgroundBlur:p};return(0,a.createElement)("div",{className:"absolute inset-0 z-10 flex items-center justify-center"},p&&(0,a.createElement)("div",{className:"absolute inset-0 bg-white/20 backdrop-blur-[2px]"}),"modal"===m?(0,a.createElement)(zU,{props:f}):(0,a.createElement)(LU,{props:f}))},UU=({minified:e=!1})=>{const[t,n]=(0,a.useState)([{id:1,productName:"T-Shirt with Logo",abandoned:"45 ($2,250.00)",recovered:"12 ($600.00)"},{id:2,productName:"Beanie with Logo",abandoned:"38 ($3,800.00)",recovered:"15 ($1,500.00)"},{id:3,productName:"Logo Collection",abandoned:"62 ($9,300.00)",recovered:"18 ($2,700.00)"},{id:4,productName:"Hoodie",abandoned:"29 ($1,450.00)",recovered:"8 ($400.00)"},{id:5,productName:"Hoodie with Logo",abandoned:"23 ($11,500.00)",recovered:"6 ($3,000.00)"},{id:6,productName:"T-Shirt",abandoned:"41 ($4,100.00)",recovered:"14 ($1,400.00)"},{id:7,productName:"Belt",abandoned:"17 ($3,400.00)",recovered:"5 ($1,000.00)"},{id:8,productName:"Cap",abandoned:"89 ($2,670.00)",recovered:"34 ($1,020.00)"},{id:9,productName:"Sunglasses",abandoned:"56 ($2,800.00)",recovered:"21 ($1,050.00)"},{id:10,productName:"Hoodie with Pocket",abandoned:"73 ($2,190.00)",recovered:"28 ($840.00)"},{id:11,productName:"Hoodie with Zipper",abandoned:"73 ($2,190.00)",recovered:"28 ($840.00)"},{id:12,productName:"Long Sleeve Tee",abandoned:"73 ($2,190.00)",recovered:"28 ($840.00)"},{id:13,productName:"Polo",abandoned:"73 ($2,190.00)",recovered:"28 ($840.00)"}]);return(0,a.useEffect)(()=>{e&&n(t.slice(0,5))},[]),(0,a.createElement)("div",{className:"relative"},(0,a.createElement)("div",{className:"overflow-x-auto cursor-pointer"},(0,a.createElement)(lU,null,(0,a.createElement)(lU.Head,null,(0,a.createElement)(lU.HeadCell,null,(0,Yf.__)("Product Name","woo-cart-abandonment-recovery")),(0,a.createElement)(lU.HeadCell,null,(0,Yf.__)("No. of time Abandoned","woo-cart-abandonment-recovery")),(0,a.createElement)(lU.HeadCell,null,(0,Yf.__)("No. of time Recovered","woo-cart-abandonment-recovery"))),(0,a.createElement)(lU.Body,null,t.map((t,n)=>(0,a.createElement)(lU.Row,{key:n,className:e?"h-[52px]":""},(0,a.createElement)(lU.Cell,null,t.productName),(0,a.createElement)(lU.Cell,null,t.abandoned),(0,a.createElement)(lU.Cell,null,t.recovered)))))))},RU=({dashboardData:e,isDashboardLoading:t})=>{const{shouldBlockProFeatures:n}=AU(),r=e?.product_report&&e.product_report.length>0,o=`(${s(e?.duration?.start)} to ${s(e?.duration?.end)})`,i=n();function s(e){if(!t){const t=new Date(e);return`${String(t.getMonth()+1).padStart(2,"0")}-${String(t.getDate()).padStart(2,"0")}-${t.getFullYear()}`}return e}return(0,a.createElement)(UC,{className:"lg:w-1/2 flex flex-col gap-2 min-h-64"},(0,a.createElement)("div",{className:"flex justify-between items-center"},(0,a.createElement)("div",{className:"flex items-center gap-2"},(0,a.createElement)(Qh,{iconPosition:"right",size:"xs",tag:"h2",title:(0,Yf.__)("Product Reports","woo-cart-abandonment-recovery"),description:!i&&!t&&o,className:"[&>*]:text-gray-900 flex items-center gap-2"})),(0,a.createElement)(Fe,{to:xU+"&path=product",className:"text-gray-900 text-xs font-semibold inline-flex items-center no-underline gap-1"},(0,Yf.__)("View All","woo-cart-abandonment-recovery"),(0,a.createElement)(gU,{className:"h-3 w-3 text-gray-900 font-semibold"}))),t?(0,a.createElement)(QC,{height:"200px"}):(0,a.createElement)(a.Fragment,null,i?(0,a.createElement)("div",{className:"relative"},(0,a.createElement)(PU,{isVisible:!0,mainTitle:"",subTitle:"",variation:"message",description:/* translators: %%1$s: Link HTML Start and %2$sof: Link HTML End. */ /* translators: %%1$s: Link HTML Start and %2$sof: Link HTML End. */
(0,Yf.__)("Product Report shows you which items bring the most recoveries and sales.","woo-cart-abandonment-recovery")}),(0,a.createElement)(UU,{minified:!0})):r?(0,a.createElement)(lU,null,(0,a.createElement)(lU.Head,null,(0,a.createElement)(lU.HeadCell,null,(0,Yf.__)("Product Name","woo-cart-abandonment-recovery")),(0,a.createElement)(lU.HeadCell,null,(0,Yf.__)("No. of time Abandoned","woo-cart-abandonment-recovery")),(0,a.createElement)(lU.HeadCell,null,(0,Yf.__)("No. of time Recovered","woo-cart-abandonment-recovery"))),(0,a.createElement)(lU.Body,null,e.product_report.map((e,t)=>(0,a.createElement)(lU.Row,{key:t},(0,a.createElement)(lU.Cell,null,e.productName),(0,a.createElement)(lU.Cell,null,lg(e.abandoned)),(0,a.createElement)(lU.Cell,null,lg(e.recovered)))))):(0,a.createElement)(MU,{icon:(0,a.createElement)(vU,{className:"h-12 w-12 text-yellow-500"}),title:(0,Yf.__)("No Product Data Yet","woo-cart-abandonment-recovery"),description:(0,Yf.__)("You'll see product abandonment stats here once customers start adding items to their carts.","woo-cart-abandonment-recovery")})))},QU=({feature:e="NEW",size:t="sm"})=>(0,a.createElement)(Of,{label:e,size:t,type:"pill",variant:"neutral",className:"w-fit bg-primary-25 text-primary-600 border-flamingo-400 hover:bg-flamingo-50"}),YU=()=>{const e=cart_abandonment_admin.extend_plugins,t=e=>{const t=new window.FormData;t.append("action","cart_abandonment_activate_plugin"),t.append("init",e),t.append("security",cart_abandonment_admin.plugin_activation_nonce),ag(cart_abandonment_admin.ajax_url,t,"POST",e=>{e.success?window.location.reload():rt.error((0,Yf.__)("Failed to activate plugin","woo-cart-abandonment-recovery"),{description:e.data?.message||""})},e=>{rt.error((0,Yf.__)("Failed to activate plugin","woo-cart-abandonment-recovery"),{description:e.data?.message||""})},!0)};return(0,a.createElement)(UC,{className:"lg:w-1/2 flex flex-col gap-2"},(0,a.createElement)("div",{className:"flex justify-between items-center"},(0,a.createElement)(Qh,{description:"",icon:null,iconPosition:"right",size:"xs",tag:"h2",title:(0,Yf.__)("Extend Your Website","woo-cart-abandonment-recovery"),className:"[&>*]:text-gray-900"})),(0,a.createElement)(Uh,null,(0,a.createElement)(Uh.Item,{className:"md:w-full lg:w-full bg-field-primary-background rounded-lg"},(0,a.createElement)(Uh,{className:"grid grid-cols-1 sm:grid-cols-2 p-1 gap-1"},e.map((e,n)=>(0,a.createElement)(Uh.Item,{className:"md:w-full lg:w-full flex",key:n},(0,a.createElement)(Uh,{className:"flex-1 gap-1 shadow-soft-shadow-inner p-4 rounded-md bg-background-primary",containerType:"flex",direction:"column"},(0,a.createElement)(Uh.Item,{className:"flex justify-between"},(0,a.createElement)(Uh,{align:"start",className:"gap-1.5"},(0,a.createElement)(Uh.Item,{className:"[&>svg]:size-5"},(0,a.createElement)("img",{src:e.logo,className:"size-5",alt:""})),(0,a.createElement)(Uh.Item,null,(0,a.createElement)(DC,{className:"text-sm font-semibold"},e.title))),e?.feature&&(0,a.createElement)(QU,{feature:e?.feature,size:"xs"})),(0,a.createElement)(Uh.Item,{className:"gap-0.5 p-1"},(0,a.createElement)(DC,{className:"text-sm",variant:"help"},e.desc)),(0,a.createElement)(Uh.Item,null,(0,a.createElement)(dn,{className:"shadow-sm",size:"xs",variant:"outline",disabled:"active"===e.status,onClick:()=>function(e){if("not-installed"===e.status){const n=new window.FormData;n.append("action","cart_abandonment_install_plugin"),n.append("slug",e.slug),n.append("_ajax_nonce",cart_abandonment_admin.plugin_installer_nonce),ag(cart_abandonment_admin.ajax_url,n,"POST",n=>{n.success?t(e.path):rt.error((0,Yf.__)("Failed to install plugin","woo-cart-abandonment-recovery"),{description:n.data?.message||""})},e=>{rt.error((0,Yf.__)("Failed to install plugin","woo-cart-abandonment-recovery"),{description:e.data?.message||""})},!0)}else"inactive"===e.status&&t(e.path)}(e)},function(e){let t="";switch(e){case"active":t=(0,Yf.__)("Installed","woo-cart-abandonment-recovery");break;case"inactive":t=(0,Yf.__)("Activate","woo-cart-abandonment-recovery");break;default:t=(0,Yf.__)("Install & Activate","woo-cart-abandonment-recovery")}return t}(e.status))))))))))};function BU({title:e,titleId:t,...n},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z"}))}const FU=a.forwardRef(BU);function WU({title:e,titleId:t,...n},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M20.25 8.511c.884.284 1.5 1.128 1.5 2.097v4.286c0 1.136-.847 2.1-1.98 2.193-.34.027-.68.052-1.02.072v3.091l-3-3c-1.354 0-2.694-.055-4.02-.163a2.115 2.115 0 0 1-.825-.242m9.345-8.334a2.126 2.126 0 0 0-.476-.095 48.64 48.64 0 0 0-8.048 0c-1.131.094-1.976 1.057-1.976 2.192v4.286c0 .837.46 1.58 1.155 1.951m9.345-8.334V6.637c0-1.621-1.152-3.026-2.76-3.235A48.455 48.455 0 0 0 11.25 3c-2.115 0-4.198.137-6.24.402-1.608.209-2.76 1.614-2.76 3.235v6.226c0 1.621 1.152 3.026 2.76 3.235.577.075 1.157.14 1.74.194V21l4.155-4.155"}))}const VU=a.forwardRef(WU);function $U({title:e,titleId:t,...n},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.48 3.499a.562.562 0 0 1 1.04 0l2.125 5.111a.563.563 0 0 0 .475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 0 0-.182.557l1.285 5.385a.562.562 0 0 1-.84.61l-4.725-2.885a.562.562 0 0 0-.586 0L6.982 20.54a.562.562 0 0 1-.84-.61l1.285-5.386a.562.562 0 0 0-.182-.557l-4.204-3.602a.562.562 0 0 1 .321-.988l5.518-.442a.563.563 0 0 0 .475-.345L11.48 3.5Z"}))}const HU=a.forwardRef($U);function GU({title:e,titleId:t,...n},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 6v.75m0 3v.75m0 3v.75m0 3V18m-9-5.25h5.25M7.5 15h3M3.375 5.25c-.621 0-1.125.504-1.125 1.125v3.026a2.999 2.999 0 0 1 0 5.198v3.026c0 .621.504 1.125 1.125 1.125h17.25c.621 0 1.125-.504 1.125-1.125v-3.026a2.999 2.999 0 0 1 0-5.198V6.375c0-.621-.504-1.125-1.125-1.125H3.375Z"}))}const ZU=a.forwardRef(GU),qU=()=>(0,a.createElement)(UC,{className:"lg:w-1/2 flex flex-col gap-2"},(0,a.createElement)(Uh,{containerType:"flex",direction:"column",gap:"xs"},(0,a.createElement)(Uh.Item,{className:"md:w-full lg:w-full p-1"},(0,a.createElement)(Qh,{description:"",icon:null,iconPosition:"right",size:"xs",tag:"h2",title:(0,Yf.__)("Quick Access","woo-cart-abandonment-recovery"),className:"[&>*]:text-gray-900"})),(0,a.createElement)(Uh.Item,{className:"flex flex-col md:w-full lg:w-full bg-field-primary-background gap-1 p-1 rounded-lg"},(0,a.createElement)("a",{href:"https://cartflows.com/docs-category/cart-abandonment",target:"_blank",className:"p-2 gap-1 items-center bg-background-primary rounded-md shadow-soft-shadow-inner no-underline hover:bg-background-secondary",rel:"noreferrer"},(0,a.createElement)("div",{className:"flex gap-1 p-1 items-center"},(0,a.createElement)(FU,{className:"size-4 m-1 text-gray-900"}),(0,a.createElement)(DC,{className:"py-0 px-1 font-normal cursor-pointer"},(0,Yf.__)("Help Center","woo-cart-abandonment-recovery")))),(0,a.createElement)("a",{href:"https://www.facebook.com/groups/cartflows",target:"_blank",className:"p-2 gap-1 items-center bg-background-primary rounded-md shadow-soft-shadow-inner no-underline hover:bg-background-secondary",rel:"noreferrer"},(0,a.createElement)("div",{className:"flex gap-1 p-1 items-center"},(0,a.createElement)(VU,{className:"size-4 m-1 text-gray-900"}),(0,a.createElement)(DC,{className:"py-0 px-1 font-normal cursor-pointer"},(0,Yf.__)("Join the Community","woo-cart-abandonment-recovery")))),(0,a.createElement)("a",{href:"https://wordpress.org/support/plugin/woo-cart-abandonment-recovery/reviews/#new-post",target:"_blank",className:"p-2 gap-1 items-center bg-background-primary rounded-md shadow-soft-shadow-inner no-underline hover:bg-background-secondary",rel:"noreferrer"},(0,a.createElement)("div",{className:"flex gap-1 p-1 items-center"},(0,a.createElement)(HU,{className:"size-4 m-1 text-gray-900"}),(0,a.createElement)(DC,{className:"py-0 px-1 font-normal cursor-pointer"},(0,Yf.__)("Rate Us","woo-cart-abandonment-recovery")))),(0,a.createElement)("a",{href:"https://cartflows.com/support",target:"_blank",className:"p-2 gap-1 items-center bg-background-primary rounded-md shadow-soft-shadow-inner no-underline hover:bg-background-secondary",rel:"noreferrer"},(0,a.createElement)("div",{className:"flex gap-1 p-1 items-center"},(0,a.createElement)(ZU,{className:"size-4 m-1 text-gray-900"}),(0,a.createElement)(DC,{className:"py-0 px-1 font-normal cursor-pointer"},(0,Yf.__)("Open Support Ticket","woo-cart-abandonment-recovery"))))))),KU=()=>{const[e,t]=Xh(),n=e?.dashboardData||null,[r,o]=(0,a.useState)(!1),i=()=>{const e=new Date,t=new Date;return t.setDate(e.getDate()-6),{from:t,to:e}},[s,l]=(0,a.useState)(i);return(0,a.useEffect)(()=>{(async()=>{o(!0);let e=s.from,n=s.to;if(!e||!n){const t=i();e=t.from,n=t.to}await ag("/wcar/api/admin/dashboard",{date_range:{from:new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())).toISOString().slice(0,10),to:new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate())).toISOString().slice(0,10)}},"POST",e=>{t({type:"FETCH_DASHBOARD_DATA_SUCCESS",dashboardData:e}),o(!1)},()=>{o(!1)})})()},[s]),(0,a.createElement)("div",{className:"p-4 md:p-8 flex flex-col gap-3 md:gap-6"},(0,a.createElement)(nU,{dashboardData:n,isDashboardLoading:r,selectedRange:s,handleDateRangeChange:l}),(0,a.createElement)("div",{className:"flex flex-col lg:flex-row gap-3 md:gap-6"},(0,a.createElement)(NU,{dashboardData:n,isDashboardLoading:r}),(0,a.createElement)(RU,{dashboardData:n,isDashboardLoading:r})),(0,a.createElement)("div",{className:"flex flex-col lg:flex-row gap-3 md:gap-6"},(0,a.createElement)(YU,null),(0,a.createElement)(qU,null)))},XU=Je("PanelLeftOpen",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]]),JU=Je("PanelLeftClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]]),eR=(0,a.createContext)({isCollapsed:!1,setIsCollapsed:()=>{},collapsible:!0}),tR=({children:e,className:t,onCollapseChange:n,collapsible:r=!0,borderOn:o=!0,collapsed:i=!1,...s})=>{const l=(0,a.useRef)(null),[c,u]=(0,a.useState)(()=>!r&&i?i:an("sidebar-collapsed")||window.innerWidth<1280);return(0,a.useEffect)(()=>{"function"==typeof n&&n(c)},[c,n]),(0,a.useEffect)(()=>{if(!r&&i)return;const e=()=>{const e=window.innerWidth<1280;if(r)if(e)u(!0),on("sidebar-collapsed",!0);else{const e=an("sidebar-collapsed");u(e||!1)}else u(!1),(e=>{if(!(typeof window>"u"))try{localStorage.removeItem(e)}catch(e){console.error(e)}})("sidebar-collapsed")};return window.addEventListener("resize",e),e(),()=>{window.removeEventListener("resize",e)}},[r]),(0,Ge.jsx)(eR.Provider,{value:{isCollapsed:c,setIsCollapsed:u,collapsible:r},children:(0,Ge.jsx)("div",{ref:l,className:en("h-full overflow-auto w-72 px-4 py-4 gap-4 flex flex-col bg-background-primary",o&&"border-0 border-r border-solid border-border-subtle","transition-all duration-200",c&&"w-16 px-2",t),...s,children:e})})};tR.displayName="Sidebar";const nR=({children:e})=>(0,Ge.jsx)("div",{className:"space-y-2",children:e});nR.displayName="Sidebar.Header";const rR=({children:e})=>(0,Ge.jsx)("div",{className:en("space-y-4 grow items-start"),children:e});rR.displayName="Sidebar.Body";const oR=({children:e})=>{const{isCollapsed:t,setIsCollapsed:n,collapsible:r}=(0,a.useContext)(eR);return(0,Ge.jsxs)("div",{className:"space-y-4",children:[e,r&&(0,Ge.jsx)("button",{className:en("bg-transparent w-full border-0 p-0 m-0 flex items-center gap-2 text-base cursor-pointer",t&&"justify-center"),onClick:()=>{n(!t),on("sidebar-collapsed",!t)},"aria-label":t?"Expand sidebar":"Collapse sidebar",children:t?(0,Ge.jsx)(Ge.Fragment,{children:(0,Ge.jsx)(Kf,{title:"Expand",children:(0,Ge.jsx)(XU,{className:"size-5"})})}):(0,Ge.jsxs)(Ge.Fragment,{children:[(0,Ge.jsx)(JU,{className:"size-5"})," Collapse"]})})]})};oR.displayName="Sidebar.Footer";const aR=({children:e,className:t})=>(0,Ge.jsx)("div",{className:en("w-full",t),children:e});aR.displayName="Sidebar.Item";const iR=Object.assign(tR,{Header:nR,Body:rR,Footer:oR,Item:aR});function sR({title:e,titleId:t,...n},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 5.25a3 3 0 0 1 3 3m3 0a6 6 0 0 1-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1 1 21.75 8.25Z"}))}const lR=a.forwardRef(sR);function cR({title:e,titleId:t,...n},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28Z"}),a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))}const uR=a.forwardRef(cR);function dR({title:e,titleId:t,...n},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244"}))}const mR=a.forwardRef(dR);function pR({title:e,titleId:t,...n},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.568 3H5.25A2.25 2.25 0 0 0 3 5.25v4.318c0 .597.237 1.17.659 1.591l9.581 9.581c.699.699 1.78.872 2.607.33a18.095 18.095 0 0 0 5.223-5.223c.542-.827.369-1.908-.33-2.607L11.16 3.66A2.25 2.25 0 0 0 9.568 3Z"}),a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 6h.008v.008H6V6Z"}))}const fR=a.forwardRef(pR);function hR({title:e,titleId:t,...n},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.75 6.75v10.5a2.25 2.25 0 0 1-2.25 2.25h-15a2.25 2.25 0 0 1-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0 0 19.5 4.5h-15a2.25 2.25 0 0 0-2.25 2.25m19.5 0v.243a2.25 2.25 0 0 1-1.07 1.916l-7.5 4.615a2.25 2.25 0 0 1-2.36 0L3.32 8.91a2.25 2.25 0 0 1-1.07-1.916V6.75"}))}const gR=a.forwardRef(hR);function yR({title:e,titleId:t,...n},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M20.25 6.375c0 2.278-3.694 4.125-8.25 4.125S3.75 8.653 3.75 6.375m16.5 0c0-2.278-3.694-4.125-8.25-4.125S3.75 4.097 3.75 6.375m16.5 0v11.25c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125V6.375m16.5 0v3.75m-16.5-3.75v3.75m16.5 0v3.75C20.25 16.153 16.556 18 12 18s-8.25-1.847-8.25-4.125v-3.75m16.5 0c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125"}))}const vR=a.forwardRef(yR);function bR({title:e,titleId:t,...n},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 18.75a60.07 60.07 0 0 1 15.797 2.101c.727.198 1.453-.342 1.453-1.096V18.75M3.75 4.5v.75A.75.75 0 0 1 3 6h-.75m0 0v-.375c0-.621.504-1.125 1.125-1.125H20.25M2.25 6v9m18-10.5v.75c0 .414.336.75.75.75h.75m-1.5-1.5h.375c.621 0 1.125.504 1.125 1.125v9.75c0 .621-.504 1.125-1.125 1.125h-.375m1.5-1.5H21a.75.75 0 0 0-.75.75v.75m0 0H3.75m0 0h-.375a1.125 1.125 0 0 1-1.125-1.125V15m1.5 1.5v-.75A.75.75 0 0 0 3 15h-.75M15 10.5a3 3 0 1 1-6 0 3 3 0 0 1 6 0Zm3 0h.008v.008H18V10.5Zm-12 0h.008v.008H6V10.5Z"}))}const MR=a.forwardRef(bR);function xR({title:e,titleId:t,...n},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.76c0 1.6 1.123 2.994 2.707 3.227 1.068.157 2.148.279 3.238.364.466.037.893.281 1.153.671L12 21l2.652-3.978c.26-.39.687-.634 1.153-.67 1.09-.086 2.17-.208 3.238-.365 1.584-.233 2.707-1.626 2.707-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0 0 12 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018Z"}))}const wR=a.forwardRef(xR);function NR({title:e,titleId:t,...n},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 13.5V3.75m0 9.75a1.5 1.5 0 0 1 0 3m0-3a1.5 1.5 0 0 0 0 3m0 3.75V16.5m12-3V3.75m0 9.75a1.5 1.5 0 0 1 0 3m0-3a1.5 1.5 0 0 0 0 3m0 3.75V16.5m-6-9V3.75m0 3.75a1.5 1.5 0 0 1 0 3m0-3a1.5 1.5 0 0 0 0 3m0 9.75V10.5"}))}const jR=a.forwardRef(NR);function DR({title:e,titleId:t,...n},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M18.364 18.364A9 9 0 0 0 5.636 5.636m12.728 12.728A9 9 0 0 1 5.636 5.636m12.728 12.728L5.636 5.636"}))}const ER=a.forwardRef(DR),TR=({title:e,children:t})=>(0,a.createElement)("div",null,(0,a.createElement)(Qh,{size:"md",tag:"h2",title:e,className:"mb-6 [&_h2]:text-gray-900 text-xl"}),(0,a.createElement)("div",{className:"h-auto px-6 bg-background-primary rounded-xl shadow-sm"},t)),OR=({label:e,switchId:t,disabled:n=!1,children:r,size:o})=>{const i={xs:"text-xs leading-4 font-medium",sm:"text-sm leading-5 font-medium",md:"text-base leading-6 font-medium"},s={xs:"text-xs leading-4 font-normal",sm:"text-sm leading-5 font-normal",md:"text-sm leading-5 font-normal"},l={xs:"space-y-0.5",sm:"space-y-0.5",md:"space-y-1"};if((0,a.isValidElement)(e))return(0,Ge.jsxs)("div",{className:en("inline-flex items-center gap-3","items-start"),children:[r,e]});const c=!e?.heading&&!e?.description,u=e?.heading&&e?.description?"items-start":"items-center";return c?r:(0,Ge.jsxs)("div",{className:en("inline-flex",u,"gap-3"),children:[r,(()=>{const{heading:r="",description:a=""}=e||{};return(0,Ge.jsxs)("div",{className:en("space-y-0.5",l[o]),children:[r&&(0,Ge.jsx)(DC,{htmlFor:t,className:en("m-0",i[o]),...n&&{variant:"disabled"},children:r}),a&&(0,Ge.jsx)(DC,{tag:"p",variant:"help",className:en("text-sm font-normal leading-5 m-0",s[o]),...n&&{variant:"disabled"},children:a})]})})()]})},IR=(0,a.forwardRef)(({id:e,onChange:t,value:n,defaultValue:r=!1,size:o="sm",disabled:i=!1,label:s={heading:"",description:""},name:l,className:c,...u},d)=>{const m="lg"===o?"md":o,p=(0,a.useMemo)(()=>typeof n<"u",[n]),f=(0,a.useMemo)(()=>e||`switch-${rU()}`,[]),[h,g]=(0,a.useState)(r),y="primary",v=(0,a.useCallback)(()=>p?n:h,[p,n,h]),b={primary:{input:"bg-toggle-off checked:bg-toggle-on focus:ring focus:ring-toggle-on focus:ring-offset-2 border border-solid border-toggle-off-border checked:border-toggle-on-border shadow-toggleContainer focus:outline-none checked:focus:border-toggle-on-border focus:border-toggle-off-border",toggleDial:"bg-toggle-dial-background shadow-toggleDial"}},M={md:{container:"w-11 h-6",toggleDial:"size-4 peer-checked:translate-x-5"},sm:{container:"w-10 h-5",toggleDial:"size-3 peer-checked:translate-x-5"},xs:{container:"w-8 h-4",toggleDial:"size-2.5 peer-checked:translate-x-3.75"}};return(0,Ge.jsx)(OR,{label:s,switchId:f,disabled:i,size:m,children:(0,Ge.jsxs)("div",{className:en("relative group/switch inline-block cursor-pointer rounded-full shrink-0",M[m].container,c),children:[(0,Ge.jsx)("input",{ref:d,id:f,type:"checkbox",className:en("peer appearance-none absolute rounded-full cursor-pointer transition-colors duration-300 h-full w-full  before:content-[''] checked:before:content-[''] m-0 checked:[background-image:none]",b[y].input,i&&"bg-toggle-off-disabled disabled:border-transparent disabled:cursor-not-allowed checked:disabled:bg-toggle-on-disabled disabled:shadow-toggle-disabled",!i&&{primary:{input:"group-hover/switch:bg-toggle-off-hover checked:group-hover/switch:bg-toggle-on-hover checked:group-hover/switch:border-toggle-on-border"}}[y].input),checked:v(),onChange:e=>{if(i)return;const n=e.target.checked;p||g(n),"function"==typeof t&&t(n)},disabled:i,name:l,...u}),(0,Ge.jsx)("label",{htmlFor:f,className:en("peer/toggle-dial bg-white border rounded-full absolute cursor-pointer shadow-md before:content[''] before:transition-opacity before:opacity-0 hover:before:opacity-10 before:hidden border-none transition-all duration-300 top-2/4 not-rtl:left-1 rtl:right-1 -translate-y-2/4 before:w-10 before:h-10 before:rounded-full before:absolute before:top-2/4 not-rtl:before:left-2/4 rtl:before:right-2/4 before:-translate-y-2/4 before:-translate-x-2/4",M[m].toggleDial,b[y].toggleDial,i&&"peer-disabled:cursor-not-allowed",!i&&{md:"group-hover/switch:size-5 group-focus-within/switch:size-5 not-rtl:group-focus-within/switch:left-0.5 rtl:group-focus-within/switch:right-0.5 not-rtl:group-hover/switch:left-0.5 rtl:group-hover/switch:right-0.5",sm:"group-hover/switch:size-4 group-focus-within/switch:size-4 not-rtl:group-focus-within/switch:left-0.5 rtl:group-focus-within/switch:right-0.5 not-rtl:group-hover/switch:left-0.5 rtl:group-hover/switch:right-0.5",xs:"group-hover/switch:size-3.25 group-focus-within/switch:size-3.25 not-rtl:group-focus-within/switch:left-0.5 rtl:group-focus-within/switch:right-0.5 not-rtl:group-hover/switch:left-0.5 rtl:group-hover/switch:right-0.5"}[m])})]})})});IR.displayName="Switch";var AR=o(181),kR=o.n(AR);const SR=(e,t,n,r=400,o=!1)=>{const i=(0,a.useRef)(kR()(r=>{e({type:Jh,payload:{option:t,value:r}});const a=new window.FormData;a.append("option_name",t),Array.isArray(r)?r.forEach(e=>a.append("value[]",e)):a.append("value",r),a.append("action","wcar_save_setting"),a.append("security",cart_abandonment_admin?.save_setting_nonce),ag(cart_abandonment_admin?.ajax_url||window.ajaxurl,a,"POST",()=>{n&&n()},void 0,!0,o)},r));return(0,a.useCallback)(e=>i.current(e),[i])},_R=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),CR=(...e)=>e.filter((e,t,n)=>Boolean(e)&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim();var zR={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 LR=(0,a.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:s,...l},c)=>(0,a.createElement)("svg",{ref:c,...zR,width:t,height:t,stroke:e,strokeWidth:r?24*Number(n)/Number(t):n,className:CR("lucide",o),...l},[...s.map(([e,t])=>(0,a.createElement)(e,t)),...Array.isArray(i)?i:[i]])),PR=(e,t)=>{const n=(0,a.forwardRef)(({className:n,...r},o)=>(0,a.createElement)(LR,{ref:o,iconNode:t,className:CR(`lucide-${_R(e)}`,n),...r}));return n.displayName=`${e}`,n},UR=PR("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),RR=PR("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]),QR=({title:e,content:t,type:n="info",placement:r="bottom",arrow:o=!0,interactive:i=!1,portalId:s="wcar-admin-app",triggers:l=["hover","focus"],children:c,...u})=>{switch(n){case"help":c=(0,a.createElement)(UR,{className:"cursor-pointer !w-4 !h-5 !text-gray-600 hover:!text-gray-700 mt-px ml-1"});break;case"info":c=(0,a.createElement)(RR,{className:"cursor-pointer !w-4 !h-5 !text-gray-600 hover:!text-gray-700 mt-px ml-1"})}return c?(0,a.createElement)(Kf,{title:e,content:t,placement:r,arrow:o,interactive:i,tooltipPortalId:s,triggers:l,...u},c):null},YR=({description:e,buttonText:t,buttonAction:n})=>(0,a.createElement)("div",{className:"p-2 flex justify-between items-center text-text-primary bg-flamingo-50 border border-solid border-flamingo-200 rounded-md"},(0,a.createElement)("div",null,lg(e)),(0,a.createElement)("span",{className:"flex items-center gap-1 text-flamingo-400 font-semibold cursor-pointer whitespace-nowrap",onKeyDown:e=>{"Enter"===e.key&&n()},onClick:()=>n(),role:"button",tabIndex:"0"},t,(0,a.createElement)(gU,{className:"h-3 w-3",strokeWidth:2}))),BR=({title:e,name:t="",description:n,type:r="inline",tooltip:o="",size:i="normal",disableStyle:s=!1,isPro:l=!1,proUpgradeMessage:c="",children:u})=>{const{getActionButtonText:d,upgradeActionButton:m,shouldBlockProFeatures:p}=AU(),f=`field-${Math.random().toString(36).substr(2,9)}`,[h,g]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{g(p()&&c.length>0)}),(0,a.createElement)("div",{className:"flex flex-col gap-2 pb-4 last:pb-6 "+(s?"!p-0":"border-0 border-b border-solid border-gray-200 last:border-b-0")},(0,a.createElement)("div",{id:t?`wcar-${t}`:void 0,className:`flex ${"block"===r?"flex-col":"flex-col sm:flex-row"} ${s?"":"pt-4 first:pt-6"} justify-between gap-2 lg:gap-5`,"aria-labelledby":e?`${f}-title`:void 0},(e||n)&&(0,a.createElement)("div",{className:"block"===r?"w-full":"w-full sm:w-[70%]"},e&&(0,a.createElement)("div",{className:"flex gap-2 items-center mb-1"},(0,a.createElement)(DC,{className:"normal"===i?"font-semibold":"font-medium",htmlFor:f,size:"normal"===i?"md":"sm",id:`${f}-title`,as:"h3"},e.replace(/\b\w/g,e=>e.toLocaleUpperCase()),o&&o?.content&&(0,a.createElement)(QR,{content:o?.content,title:o?.title})),l&&(0,a.createElement)(QU,{feature:"PRO"})),n&&(0,a.createElement)("p",{className:"font-normal text-sm text-gray-500 m-0",id:`${f}-description`,"aria-hidden":"true"},lg(n))),u),h&&(0,a.createElement)(YR,{isVisible:!0,description:c,buttonText:d(),buttonAction:m}))},FR=e=>"on"===e||"1"===e||""!==e&&"off"!==e&&"false"!==e&&"0"!==e&&null!=e&&e,WR=({title:e,description:t,name:n,value:r,tooltip:o,manageState:i,handleChange:s,autoSave:l=!0,disabled:c,isPro:u=!1,proUpgradeMessage:d=""})=>{var m;const[p,f]=Xh(),{shouldBlockProFeatures:h}=AU(),g=h(),y=(p.settingsData||{}).values||{},v=FR(s&&!l?r:null!==(m=y[n])&&void 0!==m?m:r),[b,M]=(0,a.useState)(v),x=SR(f,n,void 0,400,!0);function w(e){const t=!e;if(M(t),s&&!l)return void s(n,t);const r=(e=>e?"on":"")(t);f({type:"UPDATE_SETTINGS_DATA",payload:{option:n,value:r}}),"function"==typeof i&&i(t),l&&x(r)}(0,a.useEffect)(()=>{var e;const t=FR(s&&!l?r:null!==(e=y[n])&&void 0!==e?e:r);M(t)},[y[n],r,s,l]);const N=`toggle-${n.replace(/[\[\]]/g,"-")}`;return(0,a.createElement)(BR,{title:e,description:t,tooltip:o,isPro:u,proUpgradeMessage:d},(0,a.createElement)("div",null,(0,a.createElement)(IR,{id:N,"aria-label":`${e} - ${b?"Enabled":"Disabled"}`,"aria-checked":b,value:b,name:n,onChange:()=>{w(b)},onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),w(b))},size:"md",className:"border-none moderncart-toggle-field",role:"switch",disabled:u&&g||c})))},VR=Je("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]),$R=(0,a.forwardRef)(({id:e,type:t="text",defaultValue:n="",value:r,size:o="sm",className:i="",disabled:s=!1,onChange:l=()=>{},error:c=!1,onError:u=()=>{},prefix:d=null,suffix:m=null,label:p="",...f},h)=>{const g=(0,a.useRef)(null),y=(0,a.useMemo)(()=>e||`input-${t}-${rU()}`,[e]),v=(0,a.useMemo)(()=>typeof r<"u",[r]),[b,M]=(0,a.useState)(n),[x,w]=(0,a.useState)(null),N=(0,a.useCallback)(()=>v?r:b,[v,r,b]),j=e=>{if(s)return;let n;"file"===t?(n=e.target.files,n&&n.length>0?w(n[0].name):w(null)):n=e.target.value,!v&&"file"!==t&&M(n),"function"==typeof l&&l(n)},D=()=>{w(null),g.current&&(g.current.value=""),l(null)},E="bg-field-secondary-background font-normal placeholder-text-tertiary text-text-primary w-full outline outline-1 outline-border-subtle border-none transition-[color,box-shadow,outline] duration-200",T={xs:"px-2 py-1 rounded",sm:"p-3 py-2 rounded",md:"p-3.5 py-2.5 rounded-md",lg:"p-4 py-3 rounded-lg"},O={xs:"text-xs font-medium",sm:"text-sm font-medium",md:"text-sm font-medium",lg:"text-base font-medium"},I={xs:"text-xs",sm:"text-xs",md:"text-sm",lg:"text-base"},A={sm:d?"pl-8":"",md:d?"pl-9":"",lg:d?"pl-10":""},k={sm:m?"pr-8":"",md:m?"pr-9":"",lg:m?"pr-10":""},S=s?"hover:outline-border-disabled":"hover:outline-border-strong",_="focus:outline-focus-border focus:ring-2 focus:ring-toggle-on focus:ring-offset-2",C=c?"focus:outline-focus-error-border focus:ring-field-color-error outline-focus-error-border":"",z=c?"focus:outline-focus-error-border focus:ring-field-color-error outline-focus-error-border":"",L=s?"outline-border-disabled bg-field-background-disabled cursor-not-allowed text-text-disabled":"",P=s?"outline-border-disabled cursor-not-allowed text-text-disabled file:text-text-tertiary":"",U="font-normal placeholder-text-tertiary text-text-primary pointer-events-none absolute inset-y-0 flex flex-1 items-center [&>svg]:h-4 [&>svg]:w-4",R=s?"font-normal placeholder-text-tertiary text-icon-disabled pointer-events-none absolute inset-y-0 flex flex-1 items-center":"font-normal placeholder-text-tertiary text-field-placeholder pointer-events-none absolute inset-y-0 flex flex-1 items-center",Q={xs:"[&>svg]:size-4",sm:"[&>svg]:size-4",md:"[&>svg]:size-5",lg:"[&>svg]:size-6"},Y=(0,a.useMemo)(()=>p?(0,Ge.jsx)(DC,{className:en(O[o]),htmlFor:y,...f?.required&&{required:!0},children:p}):null,[p,o,y]),B=x?"file:border-0 file:bg-transparent pr-10":"text-text-tertiary file:border-0 file:bg-transparent pr-10";return"file"===t?(0,Ge.jsxs)("div",{className:"flex flex-col items-start gap-1.5 [&_*]:box-border box-border",children:[Y,(0,Ge.jsxs)("div",{className:en("w-full relative flex focus-within:z-10",i),children:[(0,Ge.jsx)("input",{ref:vn(g,h),id:y,type:"file",className:en(E,P,T[o],I[o],_,S,z,B),disabled:s,onChange:j,onInvalid:u,...f}),(0,Ge.jsx)("div",{className:en(R,"right-0 pr-3",Q[o]),children:(0,Ge.jsx)(VR,{})})]})]}):(0,Ge.jsxs)("div",{className:"flex flex-col items-start gap-1.5 [&_*]:box-border box-border",children:[Y,(0,Ge.jsxs)("div",{className:en("w-full relative flex focus-within:z-10",i),children:[d?(0,Ge.jsx)("div",{className:en(U,"left-0 pl-3",I[o]),children:d}):null,(0,Ge.jsx)("input",{ref:vn(g,h),id:y,type:t,className:en(E,L,T[o],I[o],A[o],k[o],_,S,C),disabled:s,onChange:j,onInvalid:u,value:N(),...f}),"file"===t?x?(0,Ge.jsx)("div",{className:en(R,"right-0 pr-3 cursor-pointer z-20 pointer-events-auto",Q[o]),onClick:D,role:"button",tabIndex:0,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&D()},children:(0,Ge.jsx)(et,{})}):(0,Ge.jsx)("div",{className:en(R,"right-0 pr-3",Q[o]),children:(0,Ge.jsx)(VR,{})}):m?(0,Ge.jsx)("div",{className:en(U,"right-0 pr-3",I[o]),children:m}):null]})]})});$R.displayName="Input";const HR=({title:e,description:t,name:n,value:r,badge:o,handleChange:i,autoSave:s=!0,error:l,isPro:c=!1,proUpgradeMessage:u=""})=>{var d,m;const[p,f]=Xh(),{shouldBlockProFeatures:h}=AU(),g=h(),y=(p.settingsData||{}).values||{},v=i&&!s?null!=r?r:"":null!==(d=null!==(m=y[n])&&void 0!==m?m:r)&&void 0!==d?d:"",[b,M]=(0,a.useState)(v),x=SR(f,n,void 0,400,!0);return(0,a.useEffect)(()=>{var e,t;const o=i&&!s?null!=r?r:"":null!==(e=null!==(t=y[n])&&void 0!==t?t:r)&&void 0!==e?e:"";M(o)},[y[n],r,i,s]),(0,a.createElement)(BR,{title:e,description:t,type:"block",isPro:c,proUpgradeMessage:u},(0,a.createElement)("div",null,(0,a.createElement)($R,{className:`${o?"w-24 ":"w-full"} focus:[&>input]:ring-focus ${l?"border-red-500":""}`,type:"text",size:"md",name:n,value:b,onChange:function(e){M(e),!i||s?s&&x(String(e)):i(n,String(e))},disabled:c&&g}),l&&(0,a.createElement)("p",{className:"text-red-500 text-sm mt-1"},l)))},GR=(0,a.forwardRef)(({id:e,defaultValue:t="",value:n,size:r="sm",className:o="",disabled:i=!1,onChange:s=()=>{},error:l=!1,onError:c=()=>{},...u},d)=>{const m=(0,a.useMemo)(()=>e||`input-textarea-${rU()}`,[e]),p=(0,a.useMemo)(()=>typeof n<"u",[n]),[f,h]=(0,a.useState)(t),g=(0,a.useCallback)(()=>p?n:f,[p,n,f]),y=i?"hover:border-border-disabled":"hover:border-border-strong",v=l?"focus:border-focus-error-border focus:ring-field-color-error border-focus-error-border":"";return(0,Ge.jsx)("textarea",{ref:d,id:m,className:en("py-2 rounded border border-solid border-border-subtle bg-field-secondary-background font-normal placeholder-text-tertiary text-text-primary focus:outline-none transition ease-in-out duration-200",i?"border-border-disabled bg-field-background-disabled cursor-not-allowed text-text-disabled":"",{sm:"px-3 rounded text-xs",md:"px-3 rounded-md text-sm",lg:"px-4 rounded-lg text-base"}[r],"focus:border-focus-border focus:ring-2 focus:ring-toggle-on focus:ring-offset-2",y,v,o),disabled:i,onChange:e=>{if(i)return;const t=e.target.value;p||h(t),"function"==typeof s&&s(t)},onInvalid:c,value:g(),...u})});GR.displayName="TextArea";const ZR=({title:e,description:t,name:n,value:r,onSaved:o,placeholder:i="",isPro:s=!1,proUpgradeMessage:l=""})=>{var c;const[u,d]=Xh(),{shouldBlockProFeatures:m}=AU(),p=m(),f=null!==(c=((u.settingsData||{}).values||{})[n])&&void 0!==c?c:r,[h,g]=(0,a.useState)(f),y=SR(d,n,o,400,!0);return(0,a.useEffect)(()=>{g(f)},[f]),(0,a.createElement)(BR,{title:e,description:t,type:"block",isPro:s,proUpgradeMessage:l},(0,a.createElement)(GR,{className:"w-full focus:[&>input]:ring-focus",type:"text",size:"md",name:n,value:h,placeholder:i,onChange:function(e){g(e),y(String(e))},disabled:s&&p}))},qR=({title:e,description:t,name:n,value:r,badge:o,min:i,after:s="",suffix:l="",handleChange:c,autoSave:u=!0,disableStyle:d,className:m="",isPro:p=!1,proUpgradeMessage:f=""})=>{var h,g;const[y,v]=Xh(),{shouldBlockProFeatures:b}=AU(),M=b(),x=(y.settingsData||{}).values||{},w=c&&!u?null!=r?r:"":null!==(h=null!==(g=x[n])&&void 0!==g?g:r)&&void 0!==h?h:"",[N,j]=(0,a.useState)(w),D=SR(v,n,void 0,400,!0);return(0,a.useEffect)(()=>{var e,t;const o=c&&!u?null!=r?r:"":null!==(e=null!==(t=x[n])&&void 0!==t?t:r)&&void 0!==e?e:"";j(o)},[x[n],r,c,u]),(0,a.createElement)(BR,{title:e,description:t,type:"inline",disableStyle:d,isPro:p,proUpgradeMessage:f},(0,a.createElement)("div",{className:"flex sm:justify-end items-center gap-2"},(0,a.createElement)($R,{className:`${m||(o?"w-24":"w-20 rounded-r-md")} focus:[&>input]:ring-focus`,suffix:l&&(0,a.createElement)("span",{className:"text-badge-color-gray p-0.5 text-center text-xs font-medium"},l),type:"number",size:"md",name:n,value:N,onChange:function(e){j(e),!c||u?u&&parseInt(e)>=parseInt(i||0)&&D(String(e)):c(n,String(e))},min:i||0,disabled:p&&M}),s&&(0,a.createElement)("span",{className:"text-badge-color-gray p-0.5 text-center text-xs font-medium"},s)))},KR=Je("ChevronsUpDown",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]),XR=Je("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),JR={sm:{icon:"[&>svg]:size-4",searchIcon:"[&>svg]:size-4",selectButton:"px-2.5 py-2 rounded text-xs font-medium leading-4 min-h-[2rem]",multiSelect:"pl-2 pr-2 py-1.5",displaySelected:"text-xs font-normal",dropdown:"rounded-md",dropdownItemsWrapper:"p-1.5",searchbarWrapper:"p-3 flex items-center gap-0.5",searchbar:"font-medium text-sm",searchbarIcon:"size-4",label:"text-sm font-medium"},md:{icon:"[&>svg]:size-5",searchIcon:"[&>svg]:size-5",selectButton:"px-3.5 py-2.5 rounded-md text-sm font-medium leading-4 min-h-[2.5rem]",multiSelect:"pl-2 pr-2.5 py-2",displaySelected:"text-sm font-normal",dropdown:"rounded-lg",dropdownItemsWrapper:"p-2",searchbarWrapper:"p-2.5 flex items-center gap-1",searchbar:"font-medium text-sm",searchbarIcon:"size-5",label:"text-sm font-medium"},lg:{icon:"[&>svg]:size-6",searchIcon:"[&>svg]:size-5",selectButton:"px-4 py-3 rounded-lg text-sm font-medium leading-5 min-h-[3rem]",multiSelect:"pl-2.5 pr-3 py-2.5",displaySelected:"text-base font-normal",dropdown:"rounded-lg",dropdownItemsWrapper:"p-2",searchbarWrapper:"p-2.5 flex items-center gap-1",searchbar:"font-medium text-sm",searchbarIcon:"size-5",label:"text-base font-medium"}},eQ="group-disabled:text-field-color-disabled",tQ={sm:"w-[calc(100%+0.75rem)] translate-x-[-0.375rem]",md:"w-[calc(100%+1rem)] translate-x-[-0.5rem]",lg:"w-[calc(100%+1rem)] translate-x-[-0.5rem]"},nQ={sm:"py-1.5 px-2 text-xs font-normal",md:"p-2 text-sm font-normal",lg:"p-2 text-base font-normal"},rQ=e=>null===e||"boolean"==typeof e?"":"string"==typeof e||"number"==typeof e?e.toString():Array.isArray(e)?e.map(rQ).join(" ").trim():(0,a.isValidElement)(e)?e.props&&e.props.children?rQ(e.props.children):"":"object"==typeof e&&"textContent"in e?e.textContent?.toString().toLowerCase()||"":"object"==typeof e&&"children"in e?rQ(e.children):"",oQ=Je("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),aQ=({variant:e="primary",size:t="md",icon:n=null,className:r=""})=>{const o={primary:"text-brand-primary-600",secondary:"text-background-primary"}[e],a={sm:"[&>svg]:size-4",md:"[&>svg]:size-5",lg:"[&>svg]:size-6",xl:"[&>svg]:size-8"}[t];return(0,Ge.jsx)("span",{className:en("flex",a,o,r),children:n||(0,Ge.jsx)(oQ,{className:"animate-spin shrink-0"})})},iQ=(0,a.createContext)({}),sQ=()=>(0,a.useContext)(iQ),lQ=(0,a.forwardRef)(({children:e,icon:t=null,placeholder:n="Select an option",optionIcon:r=null,render:o,label:i,className:s,...l},c)=>{const{sizeValue:u,getReferenceProps:d,getValues:m,selectId:p,refs:f,isOpen:h,multiple:g,combobox:y,setSelected:v,onChange:b,isControlled:M,disabled:x,by:w}=sQ(),N={sm:"xs",md:"sm",lg:"md"}[u],j=(0,a.useCallback)(()=>{if(t)return t;const e="text-field-placeholder group-disabled:text-icon-disabled";return y?(0,Ge.jsx)(KR,{className:e}):(0,Ge.jsx)(df,{className:e})},[t]),D=(0,a.useCallback)(()=>{const t=m();if(!t)return null;if(g)return t.map((e,t)=>(0,Ge.jsx)(Of,{className:"cursor-default",icon:r,type:"rounded",size:N,onMouseDown:E(e),label:"function"==typeof o?o(e):e.toString(),closable:!0,disabled:x},t));let n="string"==typeof t?t:"";if("function"==typeof o&&(n=o(t)),"function"==typeof e&&"function"!=typeof o){const r={value:t,...g?{onClose:E(t)}:{}};n=e(r)}return((0,a.isValidElement)(e)||"string"==typeof e)&&"function"!=typeof o&&(n=e),(0,Ge.jsx)("span",{className:en("truncate",JR[u].displaySelected,eQ),children:n})},[m,x]),E=e=>t=>{t?.preventDefault(),t?.stopPropagation();const n=[...m()??[]],r=n.findIndex(t=>null!==t&&null!==e&&"object"==typeof t?t[w]===e[w]:t===e);-1!==r&&(n.splice(r,1),M||v(n),"function"==typeof b&&b(n))};return(0,Ge.jsxs)("div",{className:"w-full flex flex-col items-start gap-1.5 [&_*]:box-border box-border",children:[!!i&&(0,Ge.jsx)("label",{className:en(JR[u]?.label,"text-field-label"),htmlFor:p,children:i}),(0,Ge.jsxs)("button",{id:p,ref:vn(f.setReference,c),className:en("flex items-center justify-between w-full box-border transition-[outline,background-color,color,box-shadow] duration-200 bg-white","outline outline-1 outline-field-border border-none cursor-pointer",!h&&"focus:ring-2 focus:ring-offset-2 focus:outline-focus-border focus:ring-focus [&:hover:not(:focus):not(:disabled)]:outline-border-strong",JR[u].selectButton,g&&JR[u].multiSelect,"group disabled:outline-field-border-disabled [&:hover:has(:disabled)]:outline-field-border-disabled disabled:cursor-default",s),tabIndex:0,disabled:x,...l,...d(),children:[(0,Ge.jsxs)("div",{className:en("flex-1 grid items-center justify-start gap-1.5 overflow-hidden",m()&&"flex flex-wrap"),children:[D(),(g?!m()?.length:!m())&&(0,Ge.jsx)("div",{className:en("[grid-area:1/1/2/3] text-field-input px-1",JR[u].displaySelected,eQ),children:n})]}),(0,Ge.jsx)("div",{className:en("flex items-center [&>svg]:shrink-0",JR[u].icon),children:j()})]})]})});function cQ({label:e,children:t,className:n,...r}){const{index:o,totalGroups:i}=r,{sizeValue:s}=sQ();return(0,Ge.jsxs)(a.Fragment,{children:[(0,Ge.jsxs)("div",{className:"flex flex-col",role:"group","aria-label":e,children:[(0,Ge.jsx)("div",{className:en("p-2 font-normal text-text-tertiary",{sm:"text-xs",md:"text-xs",lg:"text-sm"}[s],n),id:`group-${e?.toLowerCase().replace(/\s+/g,"-")}`,children:e}),(0,Ge.jsx)("div",{className:"flex flex-col",role:"presentation","aria-labelledby":`group-${e?.toLowerCase().replace(/\s+/g,"-")}`,children:t})]}),o<i&&!!(t&&a.Children.count(t)>0)&&(0,Ge.jsx)("hr",{className:en("h-px my-2 w-full border-border-subtle border-b border-t-0 border-solid",tQ[s])})]})}function uQ({children:e,className:t}){const{isOpen:n,context:r,refs:o,combobox:i,floatingStyles:s,getFloatingProps:l,sizeValue:c,setSearchKeyword:u,setActiveIndex:d,setSelectedIndex:m,value:p,selected:f,getValues:h,searchKeyword:g,listContentRef:y,by:v,searchPlaceholder:b,activeIndex:M,searchFn:x,debounceDelay:w}=sQ(),N=(0,a.useMemo)(()=>{const t=h();let n=-1;if(t){let r=a.Children.toArray(e);r.length>0&&(0,a.isValidElement)(r[0])&&r[0].type===cQ&&(r=a.Children.toArray(e).map(e=>(0,a.isValidElement)(e)?a.Children.toArray(e.props.children):[]).flat()),n=r.findIndex(e=>{if(!(0,a.isValidElement)(e))return!1;const n=e.props.value;return"object"==typeof n&&"object"==typeof t?n[v]===t[v]:n===t})}return n},[p,f,e,v]);(0,a.useLayoutEffect)(()=>{n||(d(N),m(N))},[N,n]),(0,a.useLayoutEffect)(()=>{n&&(i&&[-1,null].includes(M)||d(-1))},[g,n]);const j=(0,a.useMemo)(()=>{let t=0,n=0;a.Children.forEach(e,e=>{if((0,a.isValidElement)(e)&&e.type===cQ){let n=!1;if(g&&!x){const t=g.toLowerCase(),r=(e.props.label?.toLowerCase()||"").includes(t),o=a.Children.toArray(e.props.children).some(e=>!!(0,a.isValidElement)(e)&&(rQ(e.props.children)?.toLowerCase()).includes(t));n=r||o}else n=!0;n&&t++}}),n=Math.max(0,t-1);let r=0,o=0;return a.Children.map(e,e=>{if(!(0,a.isValidElement)(e))return null;if(e.type===cQ){let t=!1;if(g&&!x){const n=g.toLowerCase();t=(e.props.label?.toLowerCase()||"").includes(n)}const i=a.Children.map(e.props.children,e=>{if(!(0,a.isValidElement)(e))return null;if(t){const t={...e.props,index:r++};return(0,a.cloneElement)(e,t)}if(g&&!x){const t=rQ(e.props.children)?.toLowerCase(),n=g.toLowerCase();if(!t?.includes(n))return null}const n={...e.props,index:r++};return(0,a.cloneElement)(e,n)});if(!i?.some(e=>null!==e))return null;const s={...e.props,children:i,index:o,totalGroups:n};return o++,(0,a.cloneElement)(e,s)}if(g&&!x){const t=rQ(e.props?.children)?.toLowerCase(),n=g.toLowerCase();if(!t?.includes(n))return null}return(0,a.cloneElement)(e,{...e.props,index:r++})})},[g,p,f,e,x]),D=a.Children.count(j);(0,a.useEffect)(()=>{y.current=[];let t=a.Children.toArray(e);t&&(0,a.isValidElement)(t[0])&&t[0].type===cQ&&(t=a.Children.toArray(t).map(e=>(0,a.isValidElement)(e)?e.props.children:null).filter(Boolean)),a.Children.forEach(t,e=>{if(!(0,a.isValidElement)(e))return;const t=rQ(e.props?.children)?.toLowerCase();if(g&&!x){const e=g.toLowerCase();if(!t?.includes(e))return}y.current.push(t)})},[g,x]);const[E,T]=(0,a.useState)(!1),O=(0,a.useCallback)(async()=>{if(x&&"function"==typeof x&&!E){T(!0);try{await x(g)}catch(e){console.error(e)}finally{T(!1)}}},[g]),I=((e,t=500)=>{const n=(0,a.useRef)(null);return(0,a.useCallback)((...r)=>{n.current&&clearTimeout(n.current),n.current=setTimeout(()=>e(...r),t)},[e,t])})(O,w);return(0,a.useEffect)(()=>{"function"==typeof x&&I()},[I]),(0,Ge.jsx)(Ge.Fragment,{children:n&&(0,Ge.jsx)(Ge.Fragment,{children:(0,Ge.jsx)(zp,{context:r,modal:!1,visuallyHiddenDismiss:!0,children:(0,Ge.jsxs)("div",{ref:o.setFloating,className:en("box-border [&_*]:box-border w-full bg-white outline-none shadow-lg outline outline-1 outline-border-subtle",i&&"grid grid-cols-1 grid-rows-[auto_1fr] divide-y divide-x-0 divide-solid divide-border-subtle",JR[c].dropdown,!i&&"h-auto",i?"overflow-hidden":"overflow-y-auto overflow-x-hidden",t),style:{...s,zIndex:1},...l(),children:[i&&(0,Ge.jsxs)("div",{className:en(JR[c].searchbarWrapper),children:[E?(0,Ge.jsx)(aQ,{className:JR[c].searchbarIcon}):(0,Ge.jsx)(XR,{className:en("text-icon-secondary shrink-0",JR[c].searchbarIcon)}),(0,Ge.jsx)("input",{className:en("px-1 w-full placeholder:text-field-placeholder border-0 focus:outline-none focus:shadow-none",JR[c].searchbar),type:"search",name:"keyword",placeholder:b,onChange:e=>u(e.target.value),value:g,autoComplete:"off"})]}),(0,Ge.jsxs)("div",{className:en("overflow-y-auto overflow-x-hidden",!i&&"w-full h-full",JR[c].dropdownItemsWrapper),children:[!!D&&j,!D&&(0,Ge.jsx)("div",{className:en("p-2 text-center font-medium text-field-placeholder",nQ[c]),children:"No items found"})]})]})})})})}function dQ({children:e,root:t,id:n}){return(0,Ge.jsx)(Tp,{id:n,root:t,children:e})}function mQ({value:e,selected:t,children:n,className:r,...o}){const{sizeValue:i,getItemProps:s,onKeyDownItem:l,onClickItem:c,activeIndex:u,selectedIndex:d,updateListRef:m,getValues:p,by:f,multiple:h}=sQ(),{index:g}=o,y=(0,a.useRef)(g),v=(0,a.useMemo)(()=>{if(!h)return!1;const t=p();return!!t&&t.some(t=>null!==t&&null!==e&&"object"==typeof t?t[f]===e[f]:t===e)},[e,p]),b=(0,a.useMemo)(()=>"boolean"==typeof t?t:h?v:g===d,[v,d,t]);return(0,Ge.jsxs)("div",{className:en("w-full flex items-center justify-between text-text-primary hover:bg-button-tertiary-hover rounded-md transition-all duration-150 cursor-pointer focus:outline-none focus-within:outline-none outline-none",nQ[i],g===u&&"bg-button-tertiary-hover",r),ref:e=>{m(g,e)},role:"option",tabIndex:g===u?0:-1,"aria-selected":b&&g===u,...s({onClick(){c(y.current,e)},onKeyDown(t){l(t,y.current,e)}}),children:[(0,Ge.jsx)("span",{className:"w-full truncate",children:n}),b&&(0,Ge.jsx)(ln,{className:en("text-icon-on-color-disabled",{sm:"size-4",md:"size-4",lg:"size-5"}[i])})]})}const pQ=({id:e,size:t="md",value:n,defaultValue:r,onChange:o,by:i="id",children:s,multiple:l=!1,combobox:c=!1,disabled:u=!1,searchPlaceholder:d="Search...",searchFn:m,debounceDelay:p=500})=>{const f=(0,a.useMemo)(()=>e||`select-${rU()}`,[e]),h=(0,a.useMemo)(()=>typeof n<"u",[n]),[g,y]=(0,a.useState)(r),[v,b]=(0,a.useState)(""),M=(0,a.useCallback)(()=>h?n:g,[h,n,g]),[x,w]=(0,a.useState)(!1),[N,j]=(0,a.useState)(null),[D,E]=(0,a.useState)(null),T={sm:c?256:172,md:c?256:216,lg:c?256:216},{refs:O,floatingStyles:I,context:A}=$p({strategy:"fixed",placement:"bottom-start",open:x,onOpenChange:w,whileElementsMounted:cm,middleware:[wm(5),jm({padding:10}),Dm({apply({rects:e,elements:n,availableHeight:r}){Object.assign(n.floating.style,{maxHeight:`min(${r}px, ${T[t]}px)`,maxWidth:`${e.reference.width}px`})},padding:10})]}),k=(0,a.useRef)([]),S=(0,a.useRef)([]),_=(0,a.useRef)(!1),C=Yp(A,{event:"mousedown"}),z=Vp(A),L=of(A,{role:"listbox"}),P=nf(A,{listRef:k,activeIndex:N,selectedIndex:D,onNavigate:j,loop:!0}),U=function(e,t){var n;const{open:r,dataRef:o}=e,{listRef:i,activeIndex:s,onMatch:l,onTypingChange:c,enabled:u=!0,findMatch:d=null,resetMs:m=750,ignoreKeys:p=[],selectedIndex:f=null}=t,h=a.useRef(),g=a.useRef(""),y=a.useRef(null!=(n=null!=f?f:s)?n:-1),v=a.useRef(null),b=Om(l),M=Om(c),x=np(d),w=np(p);Ym(()=>{r&&(clearTimeout(h.current),v.current=null,g.current="")},[r]),Ym(()=>{var e;r&&""===g.current&&(y.current=null!=(e=null!=f?f:s)?e:-1)},[r,f,s]);const N=Om(e=>{e?o.current.typing||(o.current.typing=e,M(e)):o.current.typing&&(o.current.typing=e,M(e))}),j=Om(e=>{function t(e,t,n){const r=x.current?x.current(t,n):t.find(e=>0===(null==e?void 0:e.toLocaleLowerCase().indexOf(n.toLocaleLowerCase())));return r?e.indexOf(r):-1}const n=i.current;if(g.current.length>0&&" "!==g.current[0]&&(-1===t(n,n,g.current)?N(!1):" "===e.key&&td(e)),null==n||w.current.includes(e.key)||1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey)return;r&&" "!==e.key&&(td(e),N(!0)),n.every(e=>{var t,n;return!e||(null==(t=e[0])?void 0:t.toLocaleLowerCase())!==(null==(n=e[1])?void 0:n.toLocaleLowerCase())})&&g.current===e.key&&(g.current="",y.current=v.current),g.current+=e.key,clearTimeout(h.current),h.current=setTimeout(()=>{g.current="",y.current=v.current,N(!1)},m);const o=y.current,a=t(n,[...n.slice((o||0)+1),...n.slice(0,(o||0)+1)],g.current);-1!==a?(b(a),v.current=a):" "!==e.key&&(g.current="",N(!1))}),D=a.useMemo(()=>({onKeyDown:j}),[j]),E=a.useMemo(()=>({onKeyDown:j,onKeyUp(e){" "===e.key&&N(!1)}}),[j,N]);return a.useMemo(()=>u?{reference:D,floating:E}:{},[u,D,E])}(A,{listRef:S,activeIndex:N,selectedIndex:D,onMatch:x?j:E,onTypingChange(e){_.current=e}}),{getReferenceProps:R,getFloatingProps:Q,getItemProps:Y}=qp([z,L,P,C,...c?[]:[U]]),B=(e,t)=>{if(l)return((e,t)=>{const n=[...M()??[]];-1===n.findIndex(e=>null!==e&&null!==t&&"object"==typeof e?e[i]===t[i]:e===t)&&(n.push(t),h||y(n),E(e),O.reference.current.focus(),w(!1),b(""),"function"==typeof o&&o(n))})(e,t);E(e),h||y(t),O.reference.current.focus(),w(!1),b(""),"function"==typeof o&&o(t)},F=(0,a.useCallback)((e,t)=>{k.current[e]=t},[]);return(0,Ge.jsx)(iQ.Provider,{value:{selectedIndex:D,setSelectedIndex:E,activeIndex:N,setActiveIndex:j,selected:g,setSelected:y,handleSelect:B,combobox:c,sizeValue:t,multiple:l,onChange:o,isTypingRef:_,getItemProps:Y,onClickItem:(e,t)=>{B(e,t)},onKeyDownItem:(e,t,n)=>{"Enter"===e.key&&(e.preventDefault(),B(t,n))," "===e.key&&!_.current&&(e.preventDefault(),B(t,n))},getValues:M,selectId:f,getReferenceProps:R,isOpen:x,value:n,updateListRef:F,refs:O,listContentRef:S,by:i,getFloatingProps:Q,floatingStyles:I,context:A,searchKeyword:v,setSearchKeyword:b,disabled:u,isControlled:h,searchPlaceholder:d,searchFn:m,debounceDelay:p},children:s})};pQ.displayName="Select";const fQ=Object.assign(pQ,{Portal:dQ,Button:lQ,Options:uQ,Option:mQ,OptionGroup:cQ});dQ.displayName="Select.Portal",lQ.displayName="Select.Button",uQ.displayName="Select.Options",mQ.displayName="Select.Option",cQ.displayName="Select.OptionGroup";const hQ=({title:e,description:t,name:n,placeholder:r="",value:o,optionsArray:i,handleChange:s,autoSave:l=!0,disableStyle:c,isPro:u=!1,proUpgradeMessage:d=""})=>{var m;const[p,f]=Xh(),{shouldBlockProFeatures:h}=AU(),g=h(),y=(p.settingsData||{}).values||{},v=s&&!l?o:null!==(m=y[n])&&void 0!==m?m:o,[b,M]=(0,a.useState)(i.find(e=>e.id===v)||i[0]),x=SR(f,n,void 0,400,!0);return(0,a.useEffect)(()=>{var e;const t=s&&!l?o:null!==(e=y[n])&&void 0!==e?e:o;M(i.find(e=>e.id===t)||i[0])},[y[n],o,s,l,i]),(0,a.createElement)(BR,{title:e,description:t,type:"inline",disableStyle:c,isPro:u,proUpgradeMessage:d},(0,a.createElement)("div",null,(0,a.createElement)(fQ,{onChange:function(e){M(e),!s||l?(f({type:"UPDATE_SETTINGS_DATA",payload:{option:n,value:e.id}}),l&&x(e.id)):s(n,e.id)},size:"md",name:n,value:b?.name,disabled:u&&g},(0,a.createElement)(fQ.Button,{placeholder:null!=r?r:(0,Yf.__)("Select an option","woo-cart-abandonment-recovery")}),(0,a.createElement)(fQ.Options,null,i.map(e=>(0,a.createElement)(fQ.Option,{key:e.id,value:e},e.name))))))},gQ=({title:e,description:t,name:n,value:r,optionsArray:o,placeholder:i,handleChange:s,autoSave:l=!0,disableStyle:c,isPro:u=!1,proUpgradeMessage:d=""})=>{var m;const[p,f]=Xh(),{shouldBlockProFeatures:h}=AU(),g=h(),y=(p.settingsData||{}).values||{},v=(null!==(m=y[n])&&void 0!==m?m:r)||[],[b,M]=(0,a.useState)(o.filter(e=>v.includes(e.id))),x=SR(f,n,void 0,400,!0);return(0,a.useEffect)(()=>{var e;const t=(null!==(e=y[n])&&void 0!==e?e:r)||[];M(o.filter(e=>t.includes(e.id)))},[y[n],r]),(0,a.createElement)(BR,{title:e,description:t,disableStyle:c,type:"block",isPro:u,proUpgradeMessage:d},(0,a.createElement)(fQ,{multiple:!0,onChange:function(e){M(e);const t=e.map(e=>e.id);!s||l?(f({type:"UPDATE_SETTINGS_DATA",payload:{option:n,value:t}}),x(t)):s(n,t)},size:"md",name:n,value:b,disabled:u&&g},(0,a.createElement)(fQ.Button,{placeholder:i,render:e=>e.name}),(0,a.createElement)(fQ.Options,null,o.map(e=>(0,a.createElement)(fQ.Option,{key:e.id,value:e},e.name)))))},yQ=({title:e,description:t})=>{const[n,r]=(0,a.useState)(!1);return(0,a.createElement)(BR,{title:e,description:t,type:"inline"},(0,a.createElement)("div",{className:"my-auto"},(0,a.createElement)(dn,{className:"py-2 px-4 bg-red-50 text-red-600 outline-red-600 hover:bg-red-50 hover:outline-red-600",size:"md",tag:"button",type:"button",variant:"outline",onClick:()=>{r(!0);const e=cart_abandonment_admin?.ajax_url,t=wcf_ca_localized_vars._delete_coupon_nonce,n=new window.FormData;n.append("action","wcf_ca_delete_garbage_coupons"),n.append("security",t),ag(e,n,"POST",e=>{e.success?rt.success((0,Yf.__)("Coupons deleted","woo-cart-abandonment-recovery"),{description:e.data||""}):rt.error((0,Yf.__)("Delete failed","woo-cart-abandonment-recovery"),{description:e.data||""}),r(!1)},e=>{rt.error((0,Yf.__)("Delete failed","woo-cart-abandonment-recovery"),{description:e.data||""}),r(!1)},!0,!1)},disabled:n,icon:n&&(0,a.createElement)(aQ,{className:"text-primary-600",size:"md",variant:"primary"}),iconPosition:"left"},"Delete")))},vQ=({title:e,description:t,name:n,value:r,onSaved:o})=>{var i;const[s,l]=Xh(),c=null!==(i=((s.settingsData||{}).values||{})[n])&&void 0!==i?i:r,[u,d]=(0,a.useState)(c||""),[m,p]=(0,a.useState)(!1),f=SR(l,n,o,400,!0);return(0,a.useEffect)(()=>{d(c||"")},[c]),(0,a.createElement)(BR,{title:e,description:t,type:"block"},(0,a.createElement)("div",{className:"flex gap-2 items-center"},(0,a.createElement)("div",{className:"flex-1"},(0,a.createElement)($R,{className:"focus:[&>input]:ring-focus",type:"text",size:"md",name:n,value:u,onChange:function(e){d(e),f(String(e))},placeholder:"Enter the Webhook URL"})),(0,a.createElement)(dn,{className:"px-4 bg-primary-25 text-primary-600 outline-primary-300 hover:bg-primary-25 hover:outline-primary-300",size:"md",tag:"button",type:"button",variant:"outline",onClick:function(){if(""===u)return void rt.error((0,Yf.__)("Enter Webhook URL","woo-cart-abandonment-recovery"));p(!0);const e={first_name:wcf_ca_details.name,last_name:wcf_ca_details.surname,email:wcf_ca_details.email,phone:wcf_ca_details.phone,order_status:"abandoned",checkout_url:window.location.origin+"/checkout/?wcf_ac_token=something",coupon_code:"abcgefgh",product_names:"Product1, Product2 & Product3",cart_total:wcf_ca_details.woo_currency_symbol+"20",product_table:'<table align="left" cellpadding="10" cellspacing="0" style="float: none; border: 1px solid #e5e5e5;">\n\t\t\t<tr align="center">\n\t\t\t\t<th style="color: #636363; border: 1px solid #e5e5e5;">Item</th>\n\t\t\t\t<th style="color: #636363; border: 1px solid #e5e5e5;">Name</th>\n\t\t\t\t<th style="color: #636363; border: 1px solid #e5e5e5;">Quantity</th>\n\t\t\t\t<th style="color: #636363; border: 1px solid #e5e5e5;">Price</th>\n\t\t\t\t<th style="color: #636363; border: 1px solid #e5e5e5;">Line Subtotal</th>\n\t\t\t</tr>\n\t\t\t<tr style="color: #636363; border: 1px solid #e5e5e5;" align="center">\n\t\t\t\t<td style="color: #636363; border: 1px solid #e5e5e5;"><img class="demo_img" style="height: 42px; width: 42px;" src="#"></td>\n\t\t\t\t<td style="color: #636363; border: 1px solid #e5e5e5;">Product1</td>\n\t\t\t\t<td style="color: #636363; border: 1px solid #e5e5e5;">1</td>\n\t\t\t\t<td style="color: #636363; border: 1px solid #e5e5e5;">&pound;85.00</td>\n\t\t\t\t<td style="color: #636363; border: 1px solid #e5e5e5;">&pound;85.00</td>\n\t\t\t</tr>\n\t\t</table>'},t=new FormData;for(const n in e)t.append(n,e[n]);fetch(u,{method:"POST",body:t}).then(e=>{e.ok?rt.success((0,Yf.__)("Webhook trigger successful","woo-cart-abandonment-recovery")):(0,Yf.__)("Webhook trigger failed","woo-cart-abandonment-recovery")}).catch(()=>{rt.error((0,Yf.__)("Webhook trigger failed","woo-cart-abandonment-recovery"))}).finally(()=>{p(!1)})},disabled:m,icon:m&&(0,a.createElement)(aQ,{className:"text-primary-600",size:"md",variant:"primary"}),iconPosition:"left"},"Trigger Sample")))},bQ=({title:e,description:t,name:n,value:r="",unitOptions:o=[{id:"minutes",name:"Minute(s)"},{id:"hours",name:"Hour(s)"}],fields:i=null,handleChange:s,autoSave:l=!0,onSaved:c,isPro:u=!1,proUpgradeMessage:d=""})=>{var m,p;const[f,h]=Xh(),{shouldBlockProFeatures:g}=AU(),y=g(),v=(f.settingsData||{}).values||{},b=null!==(m=v[n]?.value)&&void 0!==m?m:r,M=null!==(p=v[n]?.unit)&&void 0!==p?p:"",[x,w]=(0,a.useState)(b),[N,j]=(0,a.useState)(o.find(e=>e.id===M)||o[0]),D=SR(h,n,c,400,l);return(0,a.useEffect)(()=>{w(b),j(o.find(e=>e.id===M)||o[0])},[b,M]),i&&"object"==typeof i?(0,a.createElement)(BR,{title:e,description:t,type:"inline",isPro:u,proUpgradeMessage:d},(0,a.createElement)("div",{className:"flex gap-2 items-center"},Object.entries(i).map(([e,t])=>{const n=t.name||e,o=r&&"object"==typeof r&&(r[n]||t.default_unit)||"",i={...t};"number"===t.type&&(i.className="w-20");const l=t?.autoSave||!1;return(0,a.createElement)(jY,{key:e,data:{...i,label:i.label||"",desc:i.desc||""},value:o,isActive:!0,handleChange:s,autoSave:l,disableStyle:!0})}))):(0,a.createElement)(BR,{title:e,description:t,type:"inline",isPro:u,proUpgradeMessage:d},(0,a.createElement)("div",{className:"flex gap-2 items-center"},(0,a.createElement)($R,{type:"number",size:"md",min:1,className:"w-20 focus:[&>input]:ring-focus",name:n,value:x,onChange:function(e){w(e);const t=JSON.stringify({value:String(e),unit:N.id});D(t)},disabled:u&&y}),(0,a.createElement)(fQ,{name:`${n}-unit`,value:N.name,onChange:function(e){j(e);const t=JSON.stringify({value:String(x),unit:e.id});D(t)},size:"md",disabled:u&&y},(0,a.createElement)(fQ.Button,null),(0,a.createElement)(fQ.Options,null,o.map(e=>(0,a.createElement)(fQ.Option,{key:e.id,value:e},e.name))))))},MQ=window.lodash,xQ={sm:"text-xs [&>svg]:size-4 rounded",md:"text-sm [&>svg]:size-5 rounded-md",lg:"text-base [&>svg]:size-6 rounded-md"},wQ={input:{sm:"py-1.5 px-2 rounded",md:"p-2.5 rounded-md",lg:"p-3 rounded-md"},content:{sm:"p-1.5",md:"p-1.5",lg:"p-2"},title:{sm:"p-2 text-xs",md:"p-2 text-sm",lg:"p-2 text-sm"},item:{sm:"text-sm text-text-secondary rounded",md:"text-base text-text-secondary rounded-md",lg:"text-base text-text-secondary rounded-md"},icon:{sm:"p-1 text-sm [&>svg]:size-4 text-icon-secondary",md:"p-2 text-base [&>svg]:size-5 text-icon-secondary",lg:"p-2 text-base [&>svg]:size-5 text-icon-secondary"},dialog:{sm:"mt-1 rounded-md",md:"mt-1.5 rounded-lg",lg:"mt-1.5 rounded-lg"},slashIcon:{sm:"px-2 py-0.5",md:"px-3 py-1",lg:"px-3.5 py-1"}},NQ={primary:"bg-field-primary-background outline outline-1 outline-field-border hover:outline-border-strong focus-within:outline-focus-border focus-within:hover:outline-focus-border",secondary:"bg-field-secondary-background outline outline-1 outline-field-border hover:outline-border-strong focus-within:outline-focus-border focus-within:hover:outline-focus-border",ghost:"bg-field-secondary-background outline outline-1 outline-transparent focus-within:outline-focus-border"},jQ={ghost:"cursor-not-allowed text-text-disabled placeholder:text-text-disabled",primary:"outline-border-disabled hover:outline-border-disabled bg-field-background-disabled cursor-not-allowed text-text-disabled placeholder:text-text-disabled",secondary:"outline-border-disabled hover:outline-border-disabled cursor-not-allowed text-text-disabled placeholder:text-text-disabled"},DQ=(0,a.createContext)({}),EQ=()=>(0,a.useContext)(DQ),TQ=(0,a.forwardRef)(({className:e,size:t="sm",open:n=!1,setOpen:r,onOpenChange:o,loading:i=!1,clearAfterSelect:s=!0,closeAfterSelect:l=!0,variant:c="primary",filter:u=!0,...d},m)=>{const[p,f]=(0,a.useState)(""),[h,g]=(0,a.useState)(i??!1),[y,v]=(0,a.useState)(null),b=a.useRef([]),M=(0,a.useMemo)(()=>"function"==typeof r?r:o,[r,o]),{refs:x,floatingStyles:w,context:N}=$p({open:n,onOpenChange:M,placement:"bottom-start",whileElementsMounted:cm,middleware:[wm(2),jm({padding:10}),Dm({apply({rects:e,elements:t,availableHeight:n}){t.floating.style.maxHeight=`${n}px`,t.floating.style.width=`${e.reference.width}px`,t.floating.style.fontFamily=window.getComputedStyle(t.reference).fontFamily}})]}),j=nf(N,{listRef:b,activeIndex:y,onNavigate:v,loop:!0,openOnArrowKeyDown:!1}),D=Vp(N),{getReferenceProps:E,getFloatingProps:T,getItemProps:O}=qp([D,j]);return(0,a.useEffect)(()=>{const e=rn(),t=t=>{const n="Mac OS"===e?t.metaKey:t.ctrlKey;if("/"===t.key&&n&&(t.preventDefault(),x.reference&&x.reference.current)){const e=x.reference.current instanceof HTMLElement?x.reference.current.querySelector("input"):null;e&&e.focus()}};return window.addEventListener("keydown",t),()=>{window.removeEventListener("keydown",t)}},[x.reference]),(0,a.useEffect)(()=>{n||v(null)},[n]),(0,Ge.jsx)(DQ.Provider,{value:{size:t,open:n,onOpenChange:M,refs:x,floatingStyles:w,context:N,getReferenceProps:E,getFloatingProps:T,getItemProps:O,activeIndex:y,setActiveIndex:v,listRef:b,searchTerm:p,setSearchTerm:f,isLoading:h,setIsLoading:g,clearAfterSelect:s,closeAfterSelect:l,variant:c,filter:u},children:(0,Ge.jsx)("div",{className:en("searchbox-wrapper box-border relative w-full",e),...d,ref:m})})});TQ.displayName="SearchBox";const OQ=(0,a.forwardRef)(({className:e,type:t="text",placeholder:n="Search...",disabled:r=!1,onChange:o=()=>{},...a},i)=>{const{size:s,refs:l,getReferenceProps:c,searchTerm:u,setSearchTerm:d,open:m,setActiveIndex:p,listRef:f,onOpenChange:h,variant:g}=EQ(),y="lg"===s?"sm":"xs";return(0,Ge.jsxs)("div",{ref:l.setReference,className:en("w-full group relative flex justify-center items-center gap-1.5 focus-within:z-10 transition-all ease-in-out duration-200",NQ[g],wQ.input[s],r?jQ[g]:"focus-within:ring-2 focus-within:ring-focus focus-within:ring-offset-2 focus-within:border-focus-border focus-within:hover:border-focus-border",e),...c(),children:[(0,Ge.jsx)("span",{className:en(xQ[s],r?"text-icon-disabled":"text-icon-secondary group-hover:text-icon-primary group-focus-within:text-icon-primary","flex justify-center items-center"),children:(0,Ge.jsx)(XR,{})}),(0,Ge.jsx)("input",{type:t,ref:i,className:en(xQ[s],"flex-grow font-medium bg-transparent border-none outline-none border-transparent focus:ring-0 p-0 min-h-fit",r&&"text-field-placeholder focus-within:text-field-input group-hover:text-field-input placeholder:text-field-placeholder"),disabled:r,value:u,onChange:e=>{const t=e.target.value;d(t),o(t),"function"==typeof h&&(t.trim()?h(!0):h(!1))},onFocus:()=>{r||"function"!=typeof h||u?.trim()&&h(!0)},onKeyDown:e=>{if(!r){if("ArrowDown"===e.key||"ArrowUp"===e.key)return void(m&&(e.preventDefault(),"ArrowDown"===e.key?p(e=>null===e?0:e):"ArrowUp"===e.key&&p(e=>{const t=f?.current?.length||0;return null===e&&t>0?t-1:e})));"Escape"===e.key&&h(!1)}},placeholder:n,...(0,MQ.omit)(a,["size","open","onOpenChange","loading"])}),(0,Ge.jsx)(Of,{label:"Mac OS"===rn()?"⌘/":"Ctrl /",size:y,type:"rounded",variant:"neutral",className:"bg-background-primary"})]})});OQ.displayName="SearchBox.Input";const IQ=({className:e,children:t,...n})=>{const{size:r,open:o,refs:a,floatingStyles:i,getFloatingProps:s,context:l}=EQ();return o?(0,Ge.jsx)(zp,{context:l,initialFocus:-1,returnFocus:!0,children:(0,Ge.jsx)("div",{ref:a.setFloating,style:{...i},className:en("bg-background-primary rounded-md border border-solid border-border-subtle shadow-soft-shadow-lg overflow-y-auto text-wrap focus:outline-none",wQ.dialog[r],e),...s(),...n,children:t})}):null};IQ.displayName="SearchBox.Content";const AQ=({children:e,id:t,root:n})=>(0,Ge.jsx)(Tp,{id:t,root:n,children:e});AQ.displayName="SearchBox.Portal";const kQ=({children:e,className:t})=>{const{searchTerm:n,isLoading:r,listRef:o,filter:i=!0}=EQ();if(!i)return(0,Ge.jsx)(Wm,{elementsRef:o,children:(0,Ge.jsx)("div",{className:t,children:e})});const s=a.Children.toArray(e).map(e=>{if(a.isValidElement(e)&&e.type===_Q){const t=a.Children.toArray(e.props.children).filter(e=>a.isValidElement(e)&&"string"==typeof e.props.children&&e.props.children.toLowerCase().includes(n.toLowerCase()));return t.length>0?(0,a.cloneElement)(e,{children:t}):null}return e}).filter(Boolean);return r?(0,Ge.jsx)(zQ,{}):(0,Ge.jsx)(Wm,{elementsRef:o,children:(0,Ge.jsx)("div",{className:t,children:s.some(e=>a.isValidElement(e)&&e.type!==LQ)?s:(0,Ge.jsx)(SQ,{})})})};kQ.displayName="SearchBox.List";const SQ=({children:e="No results found.",className:t})=>{const{size:n}=EQ();return(0,Ge.jsx)("div",{className:en("flex justify-center items-center",wQ.item[n],"text-text-tertiary p-4",t),children:e})};SQ.displayName="SearchBox.Empty";const _Q=({heading:e,children:t})=>{const{size:n}=EQ();return(0,Ge.jsxs)("div",{className:en(wQ.content[n],wQ.item[n]),children:[e&&(0,Ge.jsx)("div",{className:en(wQ.title[n],"text-text-tertiary"),children:e}),t]})};_Q.displayName="SearchBox.Group";const CQ=(0,a.forwardRef)(({className:e,icon:t,children:n,onClick:r,...o},i)=>{const{size:s,setSearchTerm:l,clearAfterSelect:c,getItemProps:u,activeIndex:d,onOpenChange:m,closeAfterSelect:p}=EQ(),{ref:f,index:h}=function(e){void 0===e&&(e={});const{label:t}=e,{register:n,unregister:r,map:o,elementsRef:i,labelsRef:s}=a.useContext(Fm),[l,c]=a.useState(null),u=a.useRef(null),d=a.useCallback(e=>{if(u.current=e,null!==l&&(i.current[l]=e,s)){var n;const r=void 0!==t;s.current[l]=r?t:null!=(n=null==e?void 0:e.textContent)?n:null}},[l,i,s,t]);return Ym(()=>{const e=u.current;if(e)return n(e),()=>{r(e)}},[n,r]),Ym(()=>{const e=u.current?o.get(u.current):null;null!=e&&c(e)},[o]),a.useMemo(()=>({ref:d,index:null==l?-1:l}),[l,d])}(),g=d===h;return(0,Ge.jsxs)("button",{type:"button",ref:e=>{"function"==typeof i?i(e):i&&(i.current=e),f(e)},className:en("flex w-full items-center justify-start gap-1 p-1 cursor-pointer border-none bg-transparent text-left focus:outline-none",g&&"bg-background-secondary",!g&&"hover:bg-background-secondary focus:bg-background-secondary",wQ.item[s],e),...u?.({role:"option","aria-selected":g,onClick:()=>{"function"==typeof r&&r(),c&&l(""),p&&m(!1)},...o}),children:[t&&(0,Ge.jsx)("span",{className:en(wQ.icon[s],"flex items-center justify-center"),children:t}),(0,Ge.jsx)("span",{className:en("flex-grow py-0.5 px-1 font-normal",wQ.item[s]),children:n})]})});CQ.displayName="SearchBox.Item";const zQ=({loadingIcon:e=(0,Ge.jsx)(aQ,{})})=>{const{size:t}=EQ(),n=a.isValidElement(e)?(0,a.cloneElement)(e,{size:t}):e;return(0,Ge.jsx)("div",{className:en("flex justify-center p-4",xQ[t],wQ.item[t]),children:n})};zQ.displayName="SearchBox.Loading";const LQ=(0,a.forwardRef)(({className:e,...t},n)=>(0,Ge.jsx)("hr",{ref:n,className:en("border-0 border-t border-border-subtle border-solid m-0",e),...t}));LQ.displayName="SearchBox.Separator",TQ.Input=OQ,TQ.Loading=zQ,TQ.Separator=LQ,TQ.Content=IQ,TQ.List=kQ,TQ.Empty=SQ,TQ.Group=_Q,TQ.Item=CQ,TQ.Portal=AQ;const PQ=({title:e,description:t,name:n,value:r,handleChange:o,disableStyle:i=!1,isPro:s=!1,proUpgradeMessage:l=""})=>{const{shouldBlockProFeatures:c}=AU(),u=c(),[d,m]=(0,a.useState)([]),[p,f]=(0,a.useState)([]),[h,g]=(0,a.useState)(""),[y,v]=(0,a.useState)([]),[b,M]=(0,a.useState)(!1),[x,w]=(0,a.useState)(!1);(0,a.useEffect)(()=>{let e=[];r&&"string"==typeof r&&(e=r.split(",")),m(e),j(e)},[r]),(0,a.useEffect)(()=>{h.length>2&&N(h)},[h]);const N=async e=>{M(!0);try{const t=new FormData;t.append("action","wcar_search_products"),t.append("term",e),t.append("security",cart_abandonment_admin?.search_products_nonce||"");const n=await fetch(cart_abandonment_admin?.ajax_url,{method:"POST",body:t}),r=await n.json();if(r.success){const e=r.data.map(e=>({id:e.value,name:e.label,image:e.image||null}));v(e)}}catch(e){console.error("Error searching products:",e)}M(!1)},j=async e=>{if(e&&0!==e.length)try{const t=new FormData;t.append("action","wcar_search_products"),t.append("product_ids",e.join(",")),t.append("security",cart_abandonment_admin?.search_products_nonce||"");const n=await fetch(cart_abandonment_admin?.ajax_url,{method:"POST",body:t}),r=await n.json();if(r.success){const e=r.data.map(e=>({id:e.value,name:e.label,image:e.image||null}));f(e)}}catch(e){console.error("Error loading products:",e)}},D=e=>{const t=e.map(e=>e.id).join(",");o(n,t)};return(0,a.createElement)(BR,{type:"block",title:e,description:t,name:n,disableStyle:i,isPro:s,proUpgradeMessage:l},!(s&&u)&&(0,a.createElement)(TQ,{variant:"secondary",closeAfterSelect:!1,loading:b,setOpen:w,open:x,size:"md"},(0,a.createElement)(TQ.Input,{className:"w-full box-border [&_span]:hidden",onChange:e=>g(e&&e.target?e.target.value:e),value:h}),(0,a.createElement)(TQ.Portal,{id:`wcar-${n}`},(0,a.createElement)(TQ.Content,{className:"z-10"},(0,a.createElement)(TQ.List,null,y?y.map(e=>{const t=d.includes(String(e.id));return(0,a.createElement)(TQ.Item,{className:t&&"opacity-50 cursor-not-allowed",key:e.id,onClick:()=>{t||(e=>{if(!p.find(t=>t.id===e.id)){const t=[...p,e];f(t);const n=[...d,String(e.id)];m(n),D(t)}})(e)},icon:e.image&&(0,a.createElement)("img",{src:e.image,alt:e.name,className:"w-10 h-10 object-cover rounded"})},e.name)}):(0,a.createElement)(TQ.Empty,null,h.length<3?"Type at least 3 letters to search":"No products found"))))),p.length>0&&(0,a.createElement)("div",{className:"space-y-2 -mt-5"},(0,a.createElement)("div",{className:"flex flex-wrap gap-2"},p.map(e=>(0,a.createElement)(Of,{closable:!0,onClose:()=>(e=>{const t=p.filter(t=>t.id!==e);f(t);const n=d.filter(t=>t!==String(e));m(n),D(t)})(e.id),key:e.id,label:e.name,size:"sm",type:"pill",variant:"neutral"})))))},UQ=(0,a.createContext)(null);const RQ=e=>!e.isLayoutDirty&&e.willUpdate(!1);function QQ(){const e=new Set,t=new WeakMap,n=()=>e.forEach(RQ);return{add:r=>{e.add(r),t.set(r,r.addEventListener("willUpdate",n))},remove:r=>{e.delete(r);const o=t.get(r);o&&(o(),t.delete(r)),n()},dirty:n}}const YQ=e=>!0===e,BQ=({children:e,id:t,inherit:n=!0})=>{const r=(0,a.useContext)(jn),o=(0,a.useContext)(UQ),[i,s]=function(){const e=function(){const e=(0,a.useRef)(!1);return Pn(()=>(e.current=!0,()=>{e.current=!1}),[]),e}(),[t,n]=(0,a.useState)(0),r=(0,a.useCallback)(()=>{e.current&&n(t+1)},[t]);return[(0,a.useCallback)(()=>Cr.postRender(r),[r]),t]}(),l=(0,a.useRef)(null),c=r.id||o;null===l.current&&((e=>YQ(!0===e)||"id"===e)(n)&&c&&(t=t?c+"-"+t:c),l.current={id:t,group:YQ(n)&&r.group||QQ()});const u=(0,a.useMemo)(()=>({...l.current,forceRender:i}),[s]);return(0,Ge.jsx)(jn.Provider,{value:u,children:e})},FQ=(0,a.createContext)({}),WQ=()=>(0,a.useContext)(FQ),VQ=(0,a.createContext)(null),$Q=({children:e,activeItem:t=null,onChange:n,className:r,size:o="sm",orientation:i="horizontal",variant:s="pill",iconPosition:l="left",width:c="full"})=>{const u=rU(),d=WQ()?.activeItem||t,m=(0,a.useCallback)((e,t)=>{n&&n({event:e,value:t})},[n]);let p,f="rounded-full",h="p-1",g="ring-1 ring-tab-border";"vertical"===i?p="gap-0.5":("rounded"===s||"pill"===s)&&("xs"===o||"sm"===o?p="gap-0.5":("md"===o||"lg"===o)&&(p="gap-1")),"rounded"===s||"vertical"===i?f="rounded-md":"underline"===s&&(f="rounded-none",h="p-0",g="border-t-0 border-r-0 border-l-0 border-b border-solid border-tab-border","xs"===o?p="gap-0":"sm"===o?p="gap-2.5":("md"===o||"lg"===o)&&(p="gap-3"));const y=en(`box-border [&>*]:box-border flex items-center ${"full"===c?"w-full":""} ${"vertical"===i?"flex-col":""}`,f,h,p,g,"underline"!==s?"bg-tab-background":"",r);return(0,Ge.jsx)("div",{className:y,children:(0,Ge.jsx)(VQ.Provider,{value:{activeItem:d,onChange:m,size:o,variant:s,orientation:i,iconPosition:l,width:c},children:(0,Ge.jsx)(BQ,{id:u,children:a.Children.map(e,e=>(0,a.isValidElement)(e)?a.cloneElement(e):null)})})})};$Q.displayName="Tabs.Group";const HQ=(0,a.forwardRef)(({slug:e,text:t,icon:n,className:r,disabled:o=!1,badge:i=null,...s},l)=>{const c=(0,a.useContext)(VQ);if(!c)throw new Error("Tab should be used inside Tabs Group");const{activeItem:u,onChange:d,size:m,variant:p,orientation:f,iconPosition:h,width:g}=c,y={xs:"px-1.5 py-0.5 text-xs [&_svg]:size-3",sm:"underline"===p?"py-1.5 text-sm [&_svg]:size-4":"px-3 py-1.5 text-sm [&_svg]:size-4",md:"underline"===p?"py-2 text-base [&_svg]:size-5":"px-3.5 py-1.5 text-base [&_svg]:size-5",lg:"underline"===p?"p-2.5 text-lg [&_svg]:size-6":"px-3.5 py-1.5 text-lg [&_svg]:size-6"}[m],v=en("relative border-none bg-transparent text-text-secondary cursor-pointer flex items-center justify-center transition-[box-shadow,color,background-color] duration-200","full"===g?"flex-1":"","vertical"===f?"w-full justify-between":"");let b="rounded-full";"rounded"===p?b="rounded-md":"underline"===p&&(b="rounded-none");const M=en(v,"border-none",b,"hover:text-text-primary","focus:outline-none",y,u===e?"bg-background-primary text-text-primary shadow-sm":"",o?"text-text-disabled cursor-not-allowed hover:text-text-disabled":"",r),x=en("flex items-center gap-1");return(0,Ge.jsxs)(au.button,{ref:l,className:M,disabled:o,onClick:n=>{d(n,{slug:e,text:t})},...s,layoutRoot:!0,children:[u===e&&"underline"===p&&(0,Ge.jsx)(au.span,{layoutId:"underline",layoutDependency:u,className:"absolute right-0 left-0 -bottom-px h-px bg-border-interactive"}),(0,Ge.jsxs)("span",{className:x,children:["left"===h&&n&&(0,Ge.jsx)("span",{className:"mr-1 contents center-center transition duration-150",children:n}),t,"right"===h&&n&&(0,Ge.jsx)("span",{className:"ml-1 contents center-center transition duration-150",children:n})]}),i&&(0,a.isValidElement)(i)&&i]})});HQ.displayName="Tabs.Tab";const GQ=({activeItem:e,children:t})=>(0,Ge.jsx)(FQ.Provider,{value:{activeItem:e},children:t}),ZQ=({slug:e,children:t})=>{const n=WQ();if(!n)throw new Error("TabPanel should be used inside Tabs");return e===n.activeItem?(0,Ge.jsx)(Ge.Fragment,{children:t}):null};function qQ({title:e,titleId:t,...n},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5m-13.5-9L12 3m0 0 4.5 4.5M12 3v13.5"}))}ZQ.displayName="Tabs.Panel",GQ.Group=$Q,GQ.Tab=HQ,GQ.Panel=ZQ;const KQ=a.forwardRef(qQ),XQ=({title:e,name:t,id:n,value:r,handleChange:o,size:i="normal"})=>{const[s,l]=(0,a.useState)("visual");(0,a.useEffect)(()=>{let e=!0;return e&&(jQuery(document).on("tinymce-editor-setup",function(e,n){n.settings.toolbar1="formatselect,wcar_fields,bold,italic,underline,blockquote,strikethrough,bullist,numlist,alignleft,aligncenter,alignright,undo,redo,link,unlink,spellchecker,fullscreen",n.on("change",function(){o(t,n.getContent())}),n.on("keyup",function(){o(t,n.getContent())}),n.settings.forced_root_block=!1,"email_body"===t&&n.addButton("wcar_fields",{type:"menubutton",text:"WCAR Fields",icon:"",classes:"listbox",menu:[{text:"Abandoned Product Details Table",value:"{{cart.product.table}}",onclick(){n.insertContent(this.value())}},{text:"Abandoned Product Names",value:"{{cart.product.names}}",onclick(){n.insertContent(this.value())}},{text:"Admin Firstname",value:"{{admin.firstname}}",onclick(){n.insertContent(this.value())}},{text:"Admin Company",value:"{{admin.company}}",onclick(){n.insertContent(this.value())}},{text:"Cart Checkout URL",value:"{{cart.checkout_url}}",onclick(){n.insertContent(this.value())}},{text:"Coupon Code",value:"{{cart.coupon_code}}",onclick(){n.insertContent(this.value())}},{text:"Customer First Name",value:"{{customer.firstname}}",onclick(){n.insertContent(this.value())}},{text:"Customer Last Name",value:"{{customer.lastname}}",onclick(){n.insertContent(this.value())}},{text:"Customer Full Name",value:"{{customer.fullname}}",onclick(){n.insertContent(this.value())}},{text:"Cart Abandonment Date",value:"{{cart.abandoned_date}}",onclick(){n.insertContent(this.value())}},{text:"Site URL",value:"{{site.url}}",onclick(){n.insertContent(this.value())}},{text:"Unsubscribe Link",value:"{{cart.unsubscribe}}",onclick(){n.insertContent(this.value())}}].sort(function(e,t){return e.text.localeCompare(t.text)})})}),wp.editor.initialize(n,{tinymce:!0,quicktags:!0,mediaButtons:!1})),()=>{e=!1,tinymce.activeEditor&&tinymce.activeEditor.destroy()}},[]),(0,a.useEffect)(()=>{const e=tinymce.get(n);e&&e.getContent()!==r&&e.setContent(r||"")},[r,n]);const c=`field-${Math.random().toString(36).substr(2,9)}`;return(0,a.createElement)("section",{className:"flex flex-col py-5 justify-between gap-2 lg:gap-5 border-0 border-b border-solid border-gray-200 last:border-b-0","aria-labelledby":e?`${c}-title`:void 0},(0,a.createElement)("div",{className:"flex justify-between items-center"},(0,a.createElement)(DC,{className:"font-semibold mb-1",htmlFor:c,size:"normal"===i?"md":"sm",id:`${c}-title`,as:"h3"},e.replace(/\b\w/g,e=>e.toLocaleUpperCase())),(0,a.createElement)("div",{className:"flex items-center gap-2 w-fit"},(0,a.createElement)(GQ.Group,{variant:"rounded",size:"sm",className:"p-0 bg-white",onChange:({value:e})=>{(e=>{l(e);const t=tinymce.get(n);if(t){const r=t.getContainer().closest(`#wp-${n}-wrap`);if(r){const t="visual"===e?"switch-tmce":"switch-html",n=r.querySelector(`.${t}`);n&&n.click()}}})(e.slug)}},(0,a.createElement)(GQ.Tab,{className:"text-sm font-medium hover:text-primary-600 "+("visual"===s?"text-primary-600 bg-primary-25 outline outline-1 outline-primary-300 focus:outline-1":""),key:"visual",text:(0,Yf.__)("Visual","sureforms-pro"),slug:"visual"}),(0,a.createElement)(GQ.Tab,{className:"text-sm font-medium hover:text-primary-600 "+("html"===s?"text-primary-600 bg-primary-25 outline outline-1 outline-primary-300 focus:outline-1":""),key:"html",text:(0,Yf.__)("HTML","sureforms-pro"),slug:"html"})),(0,a.createElement)(dn,{className:"px-4 bg-primary-25 text-primary-600 outline-primary-300 hover:bg-primary-25 hover:outline-primary-300 whitespace-nowrap",size:"sm",tag:"button",icon:(0,a.createElement)(KQ,{className:"h-4 w-4"}),iconPosition:"left",variant:"outline",onClick:()=>{if("undefined"!=typeof wp&&wp.media){const e=wp.media({title:"Select Media",button:{text:"Insert Media"},multiple:!1});e.on("select",()=>{const t=e.state().get("selection").first().toJSON(),r=tinymce.get(n);if(r)if("image"===t.type||"gif"===t.subtype)r.insertContent(`<img src="${t.url}" alt="${t.alt||t.title||""}" />`);else if("video"===t.type)r.insertContent(`<video controls><source src="${t.url}" type="${t.mime}">Your browser does not support the video tag.</video>`);else{const e=t.title||t.filename||"Click to view file";r.insertContent(`<a href="${t.url}" target="_blank">${e}</a>`)}}),e.open()}else console.warn("wp.media is not available.")}},"Add Media"))),(0,a.createElement)("textarea",{name:t,id:n,value:r,rows:"17",onChange:function(e){o(t,e.target.value)},className:"w-full focus:border-flamingo-400 focus:shadow-sm focus:shadow-flamingo-400 focus:outline-0"}))},JQ=({title:e,description:t,value:n})=>{const[r,o]=(0,a.useState)(""),[i,s]=(0,a.useState)(!1);return(0,a.createElement)(BR,{title:e,description:t,type:"block",size:"normal"},(0,a.createElement)("div",{className:"flex gap-2 items-center"},(0,a.createElement)("div",{className:"flex-1"},(0,a.createElement)($R,{className:"w-full focus:[&>input]:ring-focus",type:"email",size:"md",value:r,onChange:o,placeholder:"Enter Email"})),(0,a.createElement)(dn,{className:"w-fit bg-primary-25 text-primary-600 outline-primary-300 hover:bg-primary-25 hover:outline-primary-300",size:"md",tag:"button",variant:"outline",icon:i&&(0,a.createElement)(aQ,{className:"text-primary-600",size:"md",variant:"primary"}),iconPosition:"left",onClick:()=>{if(!(r?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(r)?n.email_subject?n.email_body||(rt.error("Please enter a email body"),0):(rt.error("Please enter a email subject"),0):(rt.error("Please enter a valid email address"),0):(rt.error("Please enter an email address"),0)))return;const e=cart_abandonment_admin?.ajax_url,t=cart_abandonment_admin?.send_preview_email_nonce,o=new FormData;o.append("action","wcar_send_preview_email"),n.id&&o.append("email_template_id",n.id),o.append("email_send_to",r),o.append("email_subject",n.email_subject),o.append("email_body",n.email_body),o.append("security",t),s(!0),ag(e,o,"POST",e=>{e.success?rt.success("Test email sent successfully!"):rt.error((0,Yf.__)("Failed to send test email","woo-cart-abandonment-recovery"),{description:e.data?.message||""}),s(!1)},e=>{rt.error((0,Yf.__)("Failed to send test email","woo-cart-abandonment-recovery"),{description:e.data?.message||""}),s(!1)},!0)},disabled:i},"Send a Test Email")))};function eY({title:e,titleId:t,...n},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6.75a.75.75 0 1 1 0-1.5.75.75 0 0 1 0 1.5ZM12 12.75a.75.75 0 1 1 0-1.5.75.75 0 0 1 0 1.5ZM12 18.75a.75.75 0 1 1 0-1.5.75.75 0 0 1 0 1.5Z"}))}const tY=a.forwardRef(eY),nY=({title:e,description:t,name:n,value:r,badge:o,handleChange:i,options:s=[],autoSave:l=!0,error:c,isPro:u=!1,proUpgradeMessage:d})=>{var m,p;const[f,h]=Xh(),{shouldBlockProFeatures:g}=AU(),y=g(),v=(f.settingsData||{}).values||{},b=i&&!l?null!=r?r:"":null!==(m=null!==(p=v[n])&&void 0!==p?p:r)&&void 0!==m?m:"",[M,x]=(0,a.useState)(b),w=SR(h,n,void 0,400,!0),N=(0,a.useRef)(null);return(0,a.useEffect)(()=>{var e,t;const o=i&&!l?null!=r?r:"":null!==(e=null!==(t=v[n])&&void 0!==t?t:r)&&void 0!==e?e:"";x(o)},[v[n],r,i,l]),(0,a.createElement)(BR,{title:e,description:t,type:"block",isPro:u,proUpgradeMessage:d},(0,a.createElement)("div",{className:"flex gap-2"},(0,a.createElement)("div",{className:"grow"},(0,a.createElement)($R,{className:(o?"w-24 ":"w-full")+" focus:[&>input]:ring-focus",type:"text",size:"md",name:n,ref:N,value:M,onChange:function(e){x(e),!i||l?l&&w(String(e)):i(n,String(e))},disabled:u&&y}),c&&(0,a.createElement)("p",{className:"text-red-500 text-sm mt-1"},c)),s.length>0&&(0,a.createElement)(Mf,{placement:"bottom-end"},(0,a.createElement)(Mf.Trigger,null,(0,a.createElement)("span",{className:"sr-only"},"Open Dropdown"),(0,a.createElement)(dn,{size:"md",type:"button",variant:"outline",icon:(0,a.createElement)(tY,{className:"h-6 w-6 text-gray-500"}),iconPosition:"left"})),(0,a.createElement)(Mf.ContentWrapper,{className:"z-50"},(0,a.createElement)(Mf.Content,null,(0,a.createElement)(Mf.List,null,s.map((e,t)=>(0,a.createElement)(Mf.Item,{key:t,onClick:()=>(e=>{const t=N.current;if(!t)return;const o=t.selectionStart,a=t.selectionEnd,s=r.substring(0,o)+e+r.substring(a);x(s),!i||l?l&&w(s):i(n,s)})(e.value)},e.text))))))))};function rY({title:e,titleId:t,...n},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897l8.932-8.931Zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10"}))}const oY=a.forwardRef(rY);function aY({title:e,titleId:t,...n},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"}))}const iY=a.forwardRef(aY);function sY({title:e,titleId:t,...n},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"}))}const lY=a.forwardRef(sY),cY=e=>{let t=e;if("string"==typeof t)try{t=JSON.parse(t),"string"==typeof t&&(t=JSON.parse(t))}catch(e){return[]}return Array.isArray(t)?t:[]},uY=({value:e=[],onChange:t,isPro:n=!1})=>{const{shouldBlockProFeatures:r}=AU(),o=r(),i=()=>[{group_id:"g-"+Math.random().toString(36).substring(2,5),rules:[{rule_id:"r-"+Math.random().toString(36).substring(2,5),condition:"cart_total",operator:"",value:""}]}],s=e=>{const t=cY(e);return t.length>0?t:i()},[l,c]=(0,a.useState)(s(e)),u=window.cart_abandonment_admin?.rule_engine||{},d=u.conditions||[],m=u.field_data||{};(0,a.useEffect)(()=>{const t=s(e);c(t)},[e]);const p=e=>{const t=m[e];return t&&t.operators?Object.keys(t.operators).map(e=>({id:e,name:t.operators[e]})):[]},f=e=>{const t=m[e];return t&&t.options?Object.keys(t.options).map(e=>({id:e,name:t.options[e]})):[]},h=(e,n,r,o)=>{const a=[...l];a[e].rules[n][r]=o,"condition"===r&&(a[e].rules[n].operator="",a[e].rules[n].value=""),c(a),t(a)};return(0,a.createElement)(Uh,{className:"py-4",direction:"column"},l.map((e,r)=>(0,a.createElement)(Uh.Item,{key:e.group_id},(0,a.createElement)(Uh,{className:"p-4 rounded-lg border border-gray-200 border-solid",direction:"column"},e.rules.map((s,u)=>(0,a.createElement)(Uh.Item,{key:s.rule_id},u>0&&(0,a.createElement)(Uh.Item,{className:"mb-5 text-center text-gray-500 text-sm font-medium"},(0,Yf.__)("AND","woo-cart-abandonment-recovery")),(0,a.createElement)(Uh,{className:"flex gap-3 mb-3"},(0,a.createElement)(Uh.Item,{className:"flex-1"},(0,a.createElement)(Uh,{className:"gap-3 flex-col sm:flex-row"},(0,a.createElement)(Uh.Item,{className:"flex-1 min-w-0"},(0,a.createElement)(fQ,{value:d.find(e=>e.id===s.condition)?.name||"",onChange:e=>h(r,u,"condition",e.id),size:"md",disabled:n&&o},(0,a.createElement)(fQ.Button,{placeholder:(0,Yf.__)("Select condition","woo-cart-abandonment-recovery")}),(0,a.createElement)(fQ.Options,null,d.map(e=>(0,a.createElement)(fQ.Option,{key:e.id,value:e},e.name))))),(0,a.createElement)(Uh.Item,{className:"flex-1 min-w-0"},(0,a.createElement)(fQ,{value:p(s.condition).find(e=>e.id===s.operator)?.name||"",onChange:e=>h(r,u,"operator",e.id),size:"md",disabled:!s.condition||n&&o},(0,a.createElement)(fQ.Button,{placeholder:(0,Yf.__)("Select operator","woo-cart-abandonment-recovery")}),(0,a.createElement)(fQ.Options,null,p(s.condition).map(e=>(0,a.createElement)(fQ.Option,{key:e.id,value:e},e.name))))),(0,a.createElement)(Uh.Item,{className:"flex-1 min-w-0"},((e,t,r)=>{if(!(p(e.condition).length>0)||["is_empty","is_not_empty"].includes(e.operator))return null;switch((e=>{const t=m[e];return t?.type||"text"})(e.condition)){case"select":{const i=f(e.condition),s=i.find(t=>t.id===e.value);return(0,a.createElement)(fQ,{value:s?.name||"",onChange:e=>h(t,r,"value",e.id),size:"md",disabled:n&&o},(0,a.createElement)(fQ.Button,{placeholder:(0,Yf.__)("Select value","woo-cart-abandonment-recovery")}),(0,a.createElement)(fQ.Options,null,i.map(e=>(0,a.createElement)(fQ.Option,{key:e.id,value:e},e.name))))}case"multiselect":return(0,a.createElement)(gQ,{name:`rule_value_${t}_${r}`,value:e.value||[],optionsArray:f(e.condition),handleChange:(e,n)=>h(t,r,"value",n),autoSave:!1,disableStyle:!0,isPro:n});case"product_search":return(0,a.createElement)(PQ,{id:`rule_value_${t}_${r}`,name:`rule_value_${t}_${r}`,value:e.value||[],placeholder:(0,Yf.__)("Search products…","woo-cart-abandonment-recovery"),handleChange:(e,n)=>h(t,r,"value",n),autoSave:!1,disableStyle:!0,isPro:n});case"number":return(0,a.createElement)($R,{className:"w-full focus:[&>input]:ring-focus leading-normal",type:"number",size:"md",value:e.value||"",onChange:e=>{var n;const o=null!==(n=e?.target?.value)&&void 0!==n?n:e;h(t,r,"value",o)},placeholder:(0,Yf.__)("Enter value","woo-cart-abandonment-recovery"),min:0,disabled:n&&o});default:return(0,a.createElement)($R,{className:"w-full focus:[&>input]:ring-focus leading-normal",type:"text",size:"md",value:e.value||"",onChange:e=>{var n;const o=null!==(n=e?.target?.value)&&void 0!==n?n:e;h(t,r,"value",o)},placeholder:(0,Yf.__)("Enter value","woo-cart-abandonment-recovery"),disabled:n&&o})}})(s,r,u)))),(e.rules.length>1||l.length>1)&&(0,a.createElement)(Uh.Item,{className:"flex-shrink-0"},(0,a.createElement)(dn,{size:"sm",variant:"ghost",className:"text-red-600",onClick:()=>((e,n)=>{let r=[...l];const o={...r[e]},a=[...o.rules];a.length>1?(a.splice(n,1),o.rules=a,r[e]=o):r.splice(e,1),r=r.length>0?r:i(),c(r),t(r)})(r,u)},(0,a.createElement)(iY,{className:"h-4 w-4"})))))),(0,a.createElement)(Uh.Item,null,(0,a.createElement)(dn,{icon:(0,a.createElement)(lY,{"aria-label":"icon",role:"img"}),size:"sm",variant:"ghost",onClick:()=>(e=>{const n=[...l];n[e].rules.push({rule_id:"r-"+Math.random().toString(36).substring(2,5),condition:"",operator:"",value:""}),c(n),t(n)})(r),disabled:n&&o},(0,Yf.__)("Add Condition","woo-cart-abandonment-recovery")))),r<l.length-1&&(0,a.createElement)(Uh.Item,{className:"mt-4 text-center text-gray-500 text-sm font-medium"},(0,Yf.__)("OR","woo-cart-abandonment-recovery")))),(0,a.createElement)(Uh.Item,null,(0,a.createElement)(dn,{icon:(0,a.createElement)(lY,{"aria-label":"icon",role:"img"}),className:"text-button-primary",size:"md",variant:"ghost",onClick:()=>{const e=[...l,{group_id:"g-"+Math.random().toString(36).substring(2,5),rules:[{rule_id:"r-"+Math.random().toString(36).substring(2,5),condition:"",operator:"",value:""}]}];c(e),t(e)},disabled:n&&o},(0,Yf.__)("Add Rule","woo-cart-abandonment-recovery"))))},dY=({open:e,onOpenChange:t,value:n,onChange:r,isPro:o=!1,title:i})=>{const s=i||(0,Yf.__)("Dynamic Conditions","woo-cart-abandonment-recovery");return(0,a.createElement)(sh,{open:e,setOpen:t,design:"simple",exitOnEsc:!0,scrollLock:!0,className:"z-[100001]"},(0,a.createElement)(sh.Backdrop,null),(0,a.createElement)(sh.Panel,{className:"gap-0 m-5 sm:m-0 sm:w-3/5 max-w-3xl"},(0,a.createElement)(sh.Header,{className:"p-5 border-0 border-b border-solid border-gray-200"},(0,a.createElement)("div",{className:"flex items-center justify-between"},(0,a.createElement)(sh.Title,{className:"text-lg font-semibold"},s),(0,a.createElement)(sh.CloseButton,{className:"[&>svg]:size-5",type:"button"}))),(0,a.createElement)(sh.Body,{className:"px-5 max-h-[60vh] overflow-y-auto"},(0,a.createElement)(uY,{value:n,onChange:r,isPro:o})),(0,a.createElement)(sh.Footer,{className:"p-5 border-0 border-t border-solid border-gray-200"},(0,a.createElement)(dn,{variant:"primary",size:"sm",onClick:()=>t(!1)},(0,Yf.__)("Done","woo-cart-abandonment-recovery")))))},mY=e=>null!=e&&(Array.isArray(e)?e.length>0:""!==String(e).trim()),pY=({data:e,value:t,handleChange:n,isPro:r=!1,proUpgradeMessage:o=""})=>{const[i,s]=(0,a.useState)(!1),{shouldBlockProFeatures:l}=AU(),c=l(),u=cY(t),{groupsWithRules:d,totalRules:m}=(e=>{let t=0,n=0;return e.forEach(e=>{const r=(e?.rules||[]).filter(e=>mY(e.condition)&&mY(e.operator)&&mY(e.value));r.length>0&&(t+=1,n+=r.length)}),{groupsWithRules:t,totalRules:n}})(u);let p=(0,Yf.__)("No conditions configured.","woo-cart-abandonment-recovery");if(m>0){const e=(0,Yf.sprintf)(/* translators: %d: number of conditions */ /* translators: %d: number of conditions */
(0,Yf._n)("%d condition","%d conditions",m,"woo-cart-abandonment-recovery"),m),t=(0,Yf.sprintf)(/* translators: %d: number of groups */ /* translators: %d: number of groups */
(0,Yf._n)("%d group","%d groups",d,"woo-cart-abandonment-recovery"),d);p=(0,Yf.sprintf)(/* translators: 1: conditions count phrase, 2: groups count phrase */ /* translators: 1: conditions count phrase, 2: groups count phrase */
(0,Yf.__)("%1$s across %2$s","woo-cart-abandonment-recovery"),e,t)}const f=e?.label||(0,Yf.__)("Conditions","woo-cart-abandonment-recovery"),h=!!e?.is_pro||r,g=e?.pro_upgrade_message||o;return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(BR,{title:f,description:p,name:e?.name,isPro:h,proUpgradeMessage:g},(0,a.createElement)(dn,{variant:"outline",size:"sm",icon:(0,a.createElement)(oY,{"aria-hidden":"true"}),iconPosition:"left",onClick:()=>s(!0),disabled:h&&c,type:"button",className:"whitespace-nowrap h-fit"},(0,Yf.__)("Edit Conditions","woo-cart-abandonment-recovery"))),(0,a.createElement)(dY,{open:i,onOpenChange:s,value:t,onChange:t=>n&&n(e.name,t),isPro:h,title:(0,Yf.__)("Dynamic Conditions","woo-cart-abandonment-recovery")}))},fY=({title:e,description:t,name:n,value:r,badge:o,handleChange:i,autoSave:s=!0,error:l})=>{var c,u;const[d,m]=Xh(),p=(d.settingsData||{}).values||{},f=i&&!s?null!=r?r:"":null!==(c=null!==(u=p[n])&&void 0!==u?u:r)&&void 0!==c?c:"",[h,g]=(0,a.useState)(f),y=SR(m,n,void 0,400,!0);return(0,a.useEffect)(()=>{var e,t;const o=i&&!s?null!=r?r:"":null!==(e=null!==(t=p[n])&&void 0!==t?t:r)&&void 0!==e?e:"";g(o)},[p[n],r,i,s]),(0,a.createElement)(BR,{title:e,description:t,type:"block"},(0,a.createElement)("div",null,(0,a.createElement)($R,{className:`${o?"w-24 ":"w-full"} focus:[&>input]:ring-focus ${l?"border-red-500":""}`,type:"email",size:"md",name:n,value:h,onChange:e=>{g(e)},onBlur:()=>{if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(h))return rt.error("Please enter a valid email address"),!1;if(h!==f){if(i&&!s)return void i(n,h);s&&y(h)}}}),l&&(0,a.createElement)("p",{className:"text-red-500 text-sm mt-1"},l)))},hY=({title:e,description:t,value:n,action:r,actionNonce:o,messageType:i})=>{const[s,l]=(0,a.useState)(""),[c,u]=(0,a.useState)(""),[d,m]=(0,a.useState)(!1),p=[{text:"AD (+376)",value:"+376"},{text:"AE (+971)",value:"+971"},{text:"AF (+93)",value:"+93"},{text:"AG (+1-268)",value:"+1268"},{text:"AI (+1-264)",value:"+1264"},{text:"AL (+355)",value:"+355"},{text:"AM (+374)",value:"+374"},{text:"AO (+244)",value:"+244"},{text:"AQ (+672)",value:"+672"},{text:"AR (+54)",value:"+54"},{text:"AS (+1-684)",value:"+1684"},{text:"AT (+43)",value:"+43"},{text:"AU (+61)",value:"+61"},{text:"AW (+297)",value:"+297"},{text:"AX (+358)",value:"+358"},{text:"AZ (+994)",value:"+994"},{text:"BA (+387)",value:"+387"},{text:"BB (+1-246)",value:"+1246"},{text:"BD (+880)",value:"+880"},{text:"BE (+32)",value:"+32"},{text:"BF (+226)",value:"+226"},{text:"BG (+359)",value:"+359"},{text:"BH (+973)",value:"+973"},{text:"BI (+257)",value:"+257"},{text:"BJ (+229)",value:"+229"},{text:"BL (+590)",value:"+590"},{text:"BM (+1-441)",value:"+1441"},{text:"BN (+673)",value:"+673"},{text:"BO (+591)",value:"+591"},{text:"BQ (+599)",value:"+599"},{text:"BR (+55)",value:"+55"},{text:"BS (+1-242)",value:"+1242"},{text:"BT (+975)",value:"+975"},{text:"BV (+47)",value:"+47"},{text:"BW (+267)",value:"+267"},{text:"BY (+375)",value:"+375"},{text:"BZ (+501)",value:"+501"},{text:"CA (+1)",value:"+1"},{text:"CC (+61)",value:"+61"},{text:"CD (+243)",value:"+243"},{text:"CF (+236)",value:"+236"},{text:"CG (+242)",value:"+242"},{text:"CH (+41)",value:"+41"},{text:"CI (+225)",value:"+225"},{text:"CK (+682)",value:"+682"},{text:"CL (+56)",value:"+56"},{text:"CM (+237)",value:"+237"},{text:"CN (+86)",value:"+86"},{text:"CO (+57)",value:"+57"},{text:"CR (+506)",value:"+506"},{text:"CU (+53)",value:"+53"},{text:"CV (+238)",value:"+238"},{text:"CW (+599)",value:"+599"},{text:"CX (+61)",value:"+61"},{text:"CY (+357)",value:"+357"},{text:"CZ (+420)",value:"+420"},{text:"DE (+49)",value:"+49"},{text:"DJ (+253)",value:"+253"},{text:"DK (+45)",value:"+45"},{text:"DM (+1-767)",value:"+1767"},{text:"DO (+1-809)",value:"+1809"},{text:"DZ (+213)",value:"+213"},{text:"EC (+593)",value:"+593"},{text:"EE (+372)",value:"+372"},{text:"EG (+20)",value:"+20"},{text:"EH (+212)",value:"+212"},{text:"ER (+291)",value:"+291"},{text:"ES (+34)",value:"+34"},{text:"ET (+251)",value:"+251"},{text:"FI (+358)",value:"+358"},{text:"FJ (+679)",value:"+679"},{text:"FK (+500)",value:"+500"},{text:"FM (+691)",value:"+691"},{text:"FO (+298)",value:"+298"},{text:"FR (+33)",value:"+33"},{text:"GA (+241)",value:"+241"},{text:"GB (+44)",value:"+44"},{text:"GD (+1-473)",value:"+1473"},{text:"GE (+995)",value:"+995"},{text:"GF (+594)",value:"+594"},{text:"GG (+44)",value:"+44"},{text:"GH (+233)",value:"+233"},{text:"GI (+350)",value:"+350"},{text:"GL (+299)",value:"+299"},{text:"GM (+220)",value:"+220"},{text:"GN (+224)",value:"+224"},{text:"GP (+590)",value:"+590"},{text:"GQ (+240)",value:"+240"},{text:"GR (+30)",value:"+30"},{text:"GT (+502)",value:"+502"},{text:"GU (+1-671)",value:"+1671"},{text:"GW (+245)",value:"+245"},{text:"GY (+592)",value:"+592"},{text:"HK (+852)",value:"+852"},{text:"HM (+672)",value:"+672"},{text:"HN (+504)",value:"+504"},{text:"HR (+385)",value:"+385"},{text:"HT (+509)",value:"+509"},{text:"HU (+36)",value:"+36"},{text:"ID (+62)",value:"+62"},{text:"IE (+353)",value:"+353"},{text:"IL (+972)",value:"+972"},{text:"IM (+44)",value:"+44"},{text:"IN (+91)",value:"+91"},{text:"IO (+246)",value:"+246"},{text:"IQ (+964)",value:"+964"},{text:"IR (+98)",value:"+98"},{text:"IS (+354)",value:"+354"},{text:"IT (+39)",value:"+39"},{text:"JE (+44)",value:"+44"},{text:"JM (+1-876)",value:"+1876"},{text:"JO (+962)",value:"+962"},{text:"JP (+81)",value:"+81"},{text:"KE (+254)",value:"+254"},{text:"KG (+996)",value:"+996"},{text:"KH (+855)",value:"+855"},{text:"KI (+686)",value:"+686"},{text:"KM (+269)",value:"+269"},{text:"KN (+1-869)",value:"+1869"},{text:"KP (+850)",value:"+850"},{text:"KR (+82)",value:"+82"},{text:"KW (+965)",value:"+965"},{text:"KY (+1-345)",value:"+1345"},{text:"KZ (+7)",value:"+7"},{text:"LA (+856)",value:"+856"},{text:"LB (+961)",value:"+961"},{text:"LC (+1-758)",value:"+1758"},{text:"LI (+423)",value:"+423"},{text:"LK (+94)",value:"+94"},{text:"LR (+231)",value:"+231"},{text:"LS (+266)",value:"+266"},{text:"LT (+370)",value:"+370"},{text:"LU (+352)",value:"+352"},{text:"LV (+371)",value:"+371"},{text:"LY (+218)",value:"+218"},{text:"MA (+212)",value:"+212"},{text:"MC (+377)",value:"+377"},{text:"MD (+373)",value:"+373"},{text:"ME (+382)",value:"+382"},{text:"MF (+590)",value:"+590"},{text:"MG (+261)",value:"+261"},{text:"MH (+692)",value:"+692"},{text:"MK (+389)",value:"+389"},{text:"ML (+223)",value:"+223"},{text:"MM (+95)",value:"+95"},{text:"MN (+976)",value:"+976"},{text:"MO (+853)",value:"+853"},{text:"MP (+1-670)",value:"+1670"},{text:"MQ (+596)",value:"+596"},{text:"MR (+222)",value:"+222"},{text:"MS (+1-664)",value:"+1664"},{text:"MT (+356)",value:"+356"},{text:"MU (+230)",value:"+230"},{text:"MV (+960)",value:"+960"},{text:"MW (+265)",value:"+265"},{text:"MX (+52)",value:"+52"},{text:"MY (+60)",value:"+60"},{text:"MZ (+258)",value:"+258"},{text:"NA (+264)",value:"+264"},{text:"NC (+687)",value:"+687"},{text:"NE (+227)",value:"+227"},{text:"NF (+672)",value:"+672"},{text:"NG (+234)",value:"+234"},{text:"NI (+505)",value:"+505"},{text:"NL (+31)",value:"+31"},{text:"NO (+47)",value:"+47"},{text:"NP (+977)",value:"+977"},{text:"NR (+674)",value:"+674"},{text:"NU (+683)",value:"+683"},{text:"NZ (+64)",value:"+64"},{text:"OM (+968)",value:"+968"},{text:"PA (+507)",value:"+507"},{text:"PE (+51)",value:"+51"},{text:"PF (+689)",value:"+689"},{text:"PG (+675)",value:"+675"},{text:"PH (+63)",value:"+63"},{text:"PK (+92)",value:"+92"},{text:"PL (+48)",value:"+48"},{text:"PM (+508)",value:"+508"},{text:"PN (+870)",value:"+870"},{text:"PR (+1-787)",value:"+1787"},{text:"PS (+970)",value:"+970"},{text:"PT (+351)",value:"+351"},{text:"PW (+680)",value:"+680"},{text:"PY (+595)",value:"+595"},{text:"QA (+974)",value:"+974"},{text:"RE (+262)",value:"+262"},{text:"RO (+40)",value:"+40"},{text:"RS (+381)",value:"+381"},{text:"RU (+7)",value:"+7"},{text:"RW (+250)",value:"+250"},{text:"SA (+966)",value:"+966"},{text:"SB (+677)",value:"+677"},{text:"SC (+248)",value:"+248"},{text:"SD (+249)",value:"+249"},{text:"SE (+46)",value:"+46"},{text:"SG (+65)",value:"+65"},{text:"SH (+290)",value:"+290"},{text:"SI (+386)",value:"+386"},{text:"SJ (+47)",value:"+47"},{text:"SK (+421)",value:"+421"},{text:"SL (+232)",value:"+232"},{text:"SM (+378)",value:"+378"},{text:"SN (+221)",value:"+221"},{text:"SO (+252)",value:"+252"},{text:"SR (+597)",value:"+597"},{text:"SS (+211)",value:"+211"},{text:"ST (+239)",value:"+239"},{text:"SV (+503)",value:"+503"},{text:"SX (+1-721)",value:"+1721"},{text:"SY (+963)",value:"+963"},{text:"SZ (+268)",value:"+268"},{text:"TC (+1-649)",value:"+1649"},{text:"TD (+235)",value:"+235"},{text:"TF (+262)",value:"+262"},{text:"TG (+228)",value:"+228"},{text:"TH (+66)",value:"+66"},{text:"TJ (+992)",value:"+992"},{text:"TK (+690)",value:"+690"},{text:"TL (+670)",value:"+670"},{text:"TM (+993)",value:"+993"},{text:"TN (+216)",value:"+216"},{text:"TO (+676)",value:"+676"},{text:"TR (+90)",value:"+90"},{text:"TT (+1-868)",value:"+1868"},{text:"TV (+688)",value:"+688"},{text:"TZ (+255)",value:"+255"},{text:"UA (+380)",value:"+380"},{text:"UG (+256)",value:"+256"},{text:"UM (+1)",value:"+1"},{text:"US (+1)",value:"+1"},{text:"UY (+598)",value:"+598"},{text:"UZ (+998)",value:"+998"},{text:"VA (+379)",value:"+379"},{text:"VC (+1-784)",value:"+1784"},{text:"VE (+58)",value:"+58"},{text:"VG (+1-284)",value:"+1284"},{text:"VI (+1-340)",value:"+1340"},{text:"VN (+84)",value:"+84"},{text:"VU (+678)",value:"+678"},{text:"WF (+681)",value:"+681"},{text:"WS (+685)",value:"+685"},{text:"YE (+967)",value:"+967"},{text:"YT (+262)",value:"+262"},{text:"ZA (+27)",value:"+27"},{text:"ZM (+260)",value:"+260"},{text:"ZW (+263)",value:"+263"}];return(0,a.useEffect)(()=>{const e=p.find(e=>"+1"===e.value);u(e)},[]),(0,a.createElement)(BR,{title:e,description:t,type:"block"},(0,a.createElement)("div",{className:"flex gap-2 items-center"},(0,a.createElement)("div",{className:"min-w-32"},(0,a.createElement)(fQ,{onChange:e=>u(e),value:c?.text,size:"md",combobox:!0,searchPlaceholder:"Search..."},(0,a.createElement)(fQ.Button,{placeholder:(0,Yf.__)("Country Code","woo-cart-abandonment-recovery")}),(0,a.createElement)(fQ.Options,null,p.map(e=>(0,a.createElement)(fQ.Option,{key:e.text,value:e},e.text))))),(0,a.createElement)("div",{className:"flex-1"},(0,a.createElement)($R,{className:"w-full focus:[&>input]:ring-focus",type:"text",size:"md",value:s,onChange:l,placeholder:(0,Yf.__)("Enter Phone no.","woo-cart-abandonment-recovery")})),(0,a.createElement)(dn,{className:"w-fit bg-primary-25 text-primary-600 outline-primary-300 hover:bg-primary-25 hover:outline-primary-300",size:"md",tag:"button",variant:"outline",icon:d&&(0,a.createElement)(aQ,{className:"text-primary-600",size:"md",variant:"primary"}),iconPosition:"left",onClick:()=>{if(!(c?s?/^\+[1-9]\d{1,14}$/.test(c?.value+s)?"sms"===i&&n&&""===n.sms_body?(rt.error((0,Yf.__)("Please enter SMS body","woo-cart-abandonment-recovery")),0):"whatsapp"!==i||!n||""!==n?.whatsapp_template||(rt.error((0,Yf.__)("Please select a WhatsApp template","woo-cart-abandonment-recovery")),0):(rt.error((0,Yf.__)("Please enter a valid phone number","woo-cart-abandonment-recovery")),0):(rt.error((0,Yf.__)("Please enter a phone number","woo-cart-abandonment-recovery")),0):(rt.error((0,Yf.__)("Please select a country code","woo-cart-abandonment-recovery")),0)))return;const e=cart_abandonment_admin?.ajax_url,t=cart_abandonment_admin?.[o],a=c?.value+s,l=new FormData;l.append("action",r),l.append("phone_number",a),l.append("security",t),"sms"===i&&n?l.append("sms_body",n.sms_body):"sms"!==i||n||l.append("sms_body","Test SMS! Hi {{customer.firstname}}! You left {{cart.product.names}} in your cart."),"whatsapp"===i&&n&&(l.append("whatsapp_template",n?.whatsapp_template),l.append("whatsapp_template_header_variables",n?.whatsapp_template_header_variables),l.append("wcf_whatsapp_template_body_variables",n?.whatsapp_template_body_variables)),m(!0),ag(e,l,"POST",e=>{e.success?rt.success((0,Yf.__)("Success","woo-cart-abandonment-recovery"),{description:e.data?.message||""}):rt.error((0,Yf.__)("Error","woo-cart-abandonment-recovery"),{description:e.data?.message||""}),m(!1)},e=>{rt.error((0,Yf.__)("Error","woo-cart-abandonment-recovery"),{description:e.data?.message||""}),m(!1)},!0)},disabled:d},(0,Yf.__)("Send Message","woo-cart-abandonment-recovery"))))},gY=({title:e,description:t,name:n,value:r,handleChange:o,countLimit:i=null,options:s=[],search:l=!1,autoSave:c=!0,error:u})=>{var d,m;const[p,f]=Xh(),h=(p.settingsData||{}).values||{},g=o&&!c?null!=r?r:"":null!==(d=null!==(m=h[n])&&void 0!==m?m:r)&&void 0!==d?d:"",[y,v]=(0,a.useState)(g),[b,M]=(0,a.useState)(""),x=SR(f,n,void 0,1e3,!0),w=(0,a.useRef)(null);(0,a.useEffect)(()=>{var e,t;const a=o&&!c?null!=r?r:"":null!==(e=null!==(t=h[n])&&void 0!==t?t:r)&&void 0!==e?e:"";v(a)},[h[n],r,o,c]);const N=b?s.filter(e=>e.value?.toLowerCase().includes(b.toLowerCase())):s;return(0,a.createElement)(BR,{title:e,description:t,type:"block"},(0,a.createElement)("div",{className:"flex gap-2"},(0,a.createElement)("div",{className:"grow"},(0,a.createElement)(GR,{className:`w-full h-40 focus:[&>input]:ring-focus ${null!==i&&y.length>i&&"border-red-500 focus:border-red-500 hover:border-red-500"}`,type:"text",size:"md",name:n,ref:w,value:y,onChange:function(e){v(e),!o||c?c&&x(String(e)):o(n,String(e))}}),null!==i&&(0,a.createElement)("div",{className:`flex ${y.length>i?"justify-between":"justify-end"} mt-1`},y.length>i&&(0,a.createElement)("span",{className:"text-red-500 text-sm"},(0,Yf.__)("Character limit exceeded","woo-cart-abandonment-recovery")),(0,a.createElement)("span",{className:"text-sm "+(y.length>i?"text-red-500":y.length>.9*i?"text-yellow-500":"text-gray-500")},y.length," / ",i)),u&&(0,a.createElement)("p",{className:"text-red-500 text-sm mt-1"},u)),s.length>0&&(0,a.createElement)(Mf,{placement:"bottom-end"},(0,a.createElement)(Mf.Trigger,null,(0,a.createElement)("span",{className:"sr-only"},(0,Yf.__)("Open Dropdown","woo-cart-abandonment-recovery")),(0,a.createElement)(dn,{size:"md",type:"button",variant:"outline",icon:(0,a.createElement)(tY,{className:"h-6 w-6 text-gray-500"}),iconPosition:"left"})),(0,a.createElement)(Mf.ContentWrapper,{className:"z-50 max-h-72 overflow-y-auto"},(0,a.createElement)(Mf.Content,{className:"w-72"},l&&(0,a.createElement)(TQ,{size:"sm"},(0,a.createElement)(TQ.Input,{ref:{current:"[Circular]"},className:"mb-2 box-border",onChange:e=>{M(e)}})),(0,a.createElement)(Mf.List,null,N.length>0?N.map((e,t)=>(0,a.createElement)(Mf.Item,{key:t,onClick:()=>(e=>{const t=w.current;if(!t)return;const r=t.selectionStart,a=t.selectionEnd,i=y.substring(0,r)+e+y.substring(a);v(i),!o||c?c&&x(i):o(n,i)})(e.value)},e.text)):(0,a.createElement)("div",{className:"text-center"},"No options available")))))))},yY=({title:e,description:t,name:n,value:r,badge:o,handleChange:i,autoSave:s=!0,error:l,isPro:c=!1,proUpgradeMessage:u=""})=>{var d,m;const[p,f]=Xh(),{shouldBlockProFeatures:h}=AU(),g=h(),y=(p.settingsData||{}).values||{},v=i&&!s?null!=r?r:"":null!==(d=null!==(m=y[n])&&void 0!==m?m:r)&&void 0!==d?d:"",[b,M]=(0,a.useState)(v),x=SR(f,n,void 0,400,!0);return(0,a.useEffect)(()=>{var e,t;const o=i&&!s?null!=r?r:"":null!==(e=null!==(t=y[n])&&void 0!==t?t:r)&&void 0!==e?e:"";M(o)},[y[n],r,i,s]),(0,a.createElement)(BR,{title:e,description:t,type:"block",isPro:c,proUpgradeMessage:u},(0,a.createElement)("div",null,(0,a.createElement)($R,{className:`${o?"w-24 ":"w-full"} focus:[&>input]:ring-focus ${l?"border-red-500":""}`,type:"password",size:"md",name:n,value:b,onChange:function(e){M(e),!i||s?s&&x(String(e)):i(n,String(e))},disabled:c&&g}),l&&(0,a.createElement)("p",{className:"text-red-500 text-sm mt-1"},l)))};function vY({title:e,titleId:t,...n},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"}))}const bY=a.forwardRef(vY),MY=({title:e,description:t,name:n,placeholder:r="",value:o,action:i,actionNonce:s,handleChange:l,autoSave:c=!0,disableStyle:u,isPro:d=!1,proUpgradeMessage:m=""})=>{var p;const[f,h]=Xh(),{shouldBlockProFeatures:g}=AU(),[y,v]=(0,a.useState)([]),[b,M]=(0,a.useState)(!1),x=g(),w=(f.settingsData||{}).values||{},N=l&&!c?o:null!==(p=w[n])&&void 0!==p?p:o,[j,D]=(0,a.useState)(y.find(e=>e.id===N)||y[0]),E=SR(h,n,void 0,400,!0);(0,a.useEffect)(()=>{T()},[]),(0,a.useEffect)(()=>{var e;const t=l&&!c?o:null!==(e=w[n])&&void 0!==e?e:o;D(y.find(e=>e.id===t)||y[0])},[w[n],o,l,c,y]);const T=()=>{const e=cart_abandonment_admin?.ajax_url,t=new FormData;t.append("action",i),t.append("security",cart_abandonment_admin?.[s]),M(!0),ag(e,t,"POST",e=>{e.success?v(e.data?.options):rt.error((0,Yf.__)("Error","woo-cart-abandonment-recovery"),{description:e.data?.message||""}),M(!1)},e=>{rt.error((0,Yf.__)("Error","woo-cart-abandonment-recovery"),{description:e.data?.message||""}),M(!1)},!0)};return(0,a.createElement)(BR,{title:e,description:t,type:"block",disableStyle:u,isPro:d,proUpgradeMessage:m},(0,a.createElement)("div",{className:"flex gap-2 items-center"},(0,a.createElement)("div",{className:"flex-1"},(0,a.createElement)(fQ,{onChange:function(e){D(e),!l||c?(h({type:"UPDATE_SETTINGS_DATA",payload:{option:n,value:e.id}}),c&&E(e.id)):l(n,e.id)},size:"md",name:n,value:j?.name,disabled:d&&x},(0,a.createElement)(fQ.Button,{className:"whitespace-nowrap",placeholder:null!=r?r:(0,Yf.__)("Select an option","woo-cart-abandonment-recovery")}),(0,a.createElement)(fQ.Options,null,y.map(e=>(0,a.createElement)(fQ.Option,{key:e.id,value:e},e.name))))),(0,a.createElement)(th,{content:"Refresh Options",arrow:!0,placement:"top"},(0,a.createElement)("span",{className:(b?"text-gray-400 cursor-not-allowed opacity-60 pointer-events-none":"cursor-pointer")+" ",onClick:T,onKeyDown:e=>"Enter"===e.key&&T(),"aria-label":(0,Yf.__)("Refresh Options","modern-cart-woo"),role:"button",tabIndex:"0"},(0,a.createElement)(bY,{className:`h-5 w-5 stroke-2 transform ${b?"rotate-180":""} transition-transform duration-500`,"aria-hidden":"true"})))))},xY=({title:e,description:t,name:n,placeholder:r="",value:o,action:i,actionNonce:s,handleChange:l,autoSave:c=!0,disableStyle:u,isPro:d=!1,proUpgradeMessage:m=""})=>{var p;const[f,h]=Xh(),{shouldBlockProFeatures:g}=AU(),[y,v]=(0,a.useState)([]),b=g(),M=(f.settingsData||{}).values||{},x=l&&!c?o:null!==(p=M[n])&&void 0!==p?p:o,[w,N]=(0,a.useState)(y.find(e=>e.id===x)||{}),j=SR(h,n,void 0,400,!0);return(0,a.useEffect)(()=>{var e;const t=l&&!c?o:null!==(e=M[n])&&void 0!==e?e:o;N(y.find(e=>e.id===t)||{})},[M[n],o,l,c,y]),(0,a.createElement)(BR,{title:e,description:t,type:"inline",disableStyle:u,isPro:d,proUpgradeMessage:m},(0,a.createElement)("div",{className:"flex gap-2 items-center"},(0,a.createElement)("div",null,(0,a.createElement)(fQ,{onChange:function(e){N(e),!l||c?(h({type:"UPDATE_SETTINGS_DATA",payload:{option:n,value:e.id}}),c&&j(e.id)):l(n,e.id)},size:"md",name:n,value:w?.name,disabled:d&&b,combobox:!0,searchPlaceholder:"Search...",searchFn:()=>{const e=cart_abandonment_admin?.ajax_url,t=new FormData;t.append("action",i),t.append("security",cart_abandonment_admin?.[s]),ag(e,t,"POST",e=>{e.success?v(e.data?.options):rt.error((0,Yf.__)("Error","woo-cart-abandonment-recovery"),{description:e.data?.message||""})},e=>{rt.error((0,Yf.__)("Error","woo-cart-abandonment-recovery"),{description:e.data?.message||""})},!0)}},(0,a.createElement)(fQ.Button,{className:"whitespace-nowrap",placeholder:null!=r?r:(0,Yf.__)("Select an option","woo-cart-abandonment-recovery")}),(0,a.createElement)(fQ.Options,null,y.map(e=>(0,a.createElement)(fQ.Option,{key:e.id,value:e},e.name)))))))},wY=({isOpen:e,onClose:t,onConfirm:n,title:r=(0,Yf.__)("Confirm Delete","woo-cart-abandonment-recovery"),message:o=(0,Yf.__)("Are you sure you want to delete this item? This action cannot be undone.","woo-cart-abandonment-recovery"),confirmText:i=(0,Yf.__)("Delete","woo-cart-abandonment-recovery"),cancelText:s=(0,Yf.__)("Cancel","woo-cart-abandonment-recovery"),isLoading:l=!1})=>(0,a.createElement)(sh,{open:e,setOpen:t,size:"sm",className:"max-w-md"},(0,a.createElement)(sh.Backdrop,null),(0,a.createElement)(sh.Panel,null,(0,a.createElement)("div",{className:"p-6"},(0,a.createElement)("div",{className:"flex items-center gap-4 mb-4"},(0,a.createElement)("div",{className:"flex-shrink-0"},(0,a.createElement)(vU,{className:"h-8 w-8 text-red-500"})),(0,a.createElement)(Qh,{size:"sm",tag:"h3",title:r,className:"[&_h2]:text-gray-900"})),(0,a.createElement)("div",{className:"mb-6"},(0,a.createElement)("p",{className:"text-gray-600 text-sm font-normal"},o)),(0,a.createElement)("div",{className:"flex gap-3 justify-end"},(0,a.createElement)(dn,{variant:"primary",onClick:()=>{n()},disabled:l},i),(0,a.createElement)(dn,{variant:"outline",className:"bg-primary-25 text-primary-600 outline-primary-300 hover:bg-primary-25 hover:outline-primary-300",onClick:t,disabled:l},s))))),NY=({title:e,description:t,name:n,options:r=[],disableStyle:o})=>{const[i,s]=(0,a.useState)(r[0]),[l,c]=(0,a.useState)(!1),[u,d]=(0,a.useState)("");return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(BR,{title:e,description:t,type:"inline",disableStyle:o},(0,a.createElement)("div",{className:"flex gap-8 items-center"},(0,a.createElement)(fQ,{onChange:e=>{s(e)},size:"md",name:n,value:i.name},(0,a.createElement)(fQ.Button,{placeholder:(0,Yf.__)("Select an option","woo-cart-abandonment-recovery")}),(0,a.createElement)(fQ.Options,null,r.map(e=>(0,a.createElement)(fQ.Option,{key:e.id,value:e},e.name)))),(0,a.createElement)(dn,{className:"",iconPosition:"left",size:"sm",tag:"button",type:"button",variant:"primary",disabled:l,loading:l,onClick:()=>{d("Cart Abandonment Recovery"),c(!0)}},(0,Yf.__)("Rollback","woo-cart-abandonment-recovery")))),(0,a.createElement)(wY,{isOpen:l,onClose:()=>c(!1),onConfirm:()=>{const e=cart_abandonment_admin.rollback_url.replace("VERSION",i.name);c(!1),window.location.href=e},title:(0,Yf.__)("Rollback to Previous Version","woo-cart-abandonment-recovery"),message:(0,Yf.sprintf)(
// translators: %1$s is the selected product of CartFlows, %2$s is the selected version of CartFlows.
// translators: %1$s is the selected product of CartFlows, %2$s is the selected version of CartFlows.
(0,Yf.__)("Are you sure you want to rollback to %1$s v%2$s?","woo-cart-abandonment-recovery"),u,i.name),confirmText:(0,Yf.__)("Confirm","woo-cart-abandonment-recovery")}))},jY=({data:e,value:t,isActive:n=!0,handleChange:r,errors:o,autoSave:i=!0,disableStyle:s=!1})=>{if(!n)return null;switch(e.type){case"toggle":return(0,a.createElement)(WR,{title:e.label,description:e.desc,name:e.name,value:t,disabled:e?.disabled,isPro:e?.is_pro,proUpgradeMessage:e?.pro_upgrade_message,...r&&{handleChange:r},...void 0!==i&&{autoSave:i},...void 0!==s&&{disableStyle:s}});case"text":return(0,a.createElement)(HR,{title:e.label,description:e.desc,name:e.name,value:t,options:e?.options||[],isPro:e?.is_pro,proUpgradeMessage:e?.pro_upgrade_message,...r&&{handleChange:r},...o&&o[e.name]&&{error:o[e.name]},...void 0!==i&&{autoSave:i},...void 0!==s&&{disableStyle:s}});case"subject_field":return(0,a.createElement)(nY,{title:e.label,description:e.desc,name:e.name,value:t,options:e?.options||[],isPro:e?.is_pro,proUpgradeMessage:e?.pro_upgrade_message,...r&&{handleChange:r},...o&&o[e.name]&&{error:o[e.name]},...void 0!==i&&{autoSave:i},...void 0!==s&&{disableStyle:s}});case"textarea":return(0,a.createElement)(ZR,{title:e.label,description:e.desc,name:e.name,value:t,placeholder:e?.placeholder||"",isPro:e?.is_pro,proUpgradeMessage:e?.pro_upgrade_message,...r&&{handleChange:r},...void 0!==i&&{autoSave:i},...void 0!==s&&{disableStyle:s}});case"richtext":return(0,a.createElement)(XQ,{id:e?.id||e?.name,title:e.label,name:e.name,value:t,...r&&{handleChange:r},...o&&o[e.name]&&{error:o[e.name]},...void 0!==s&&{disableStyle:s}});case"number":return(0,a.createElement)(qR,{title:e.label,description:e.desc,name:e.name,value:t,min:e.min,after:e.after,isPro:e?.is_pro,proUpgradeMessage:e?.pro_upgrade_message,...r&&{handleChange:r},...void 0!==i&&{autoSave:i},...void 0!==s&&{disableStyle:s},...e.className&&{className:e.className}});case"select":return(0,a.createElement)(hQ,{title:e.label,description:e.desc,name:e.name,value:t,optionsArray:e.options,isPro:e?.is_pro,proUpgradeMessage:e?.pro_upgrade_message,...r&&{handleChange:r},...void 0!==i&&{autoSave:i},...void 0!==s&&{disableStyle:s}});case"dynamic-select":return(0,a.createElement)(MY,{title:e.label,description:e.desc,name:e.name,value:t,placeholder:e.placeholder,action:e.action,actionNonce:e.action_nonce,isPro:e?.is_pro,proUpgradeMessage:e?.pro_upgrade_message,...r&&{handleChange:r},...void 0!==i&&{autoSave:i},...void 0!==s&&{disableStyle:s}});case"select-search":return(0,a.createElement)(xY,{title:e.label,description:e.desc,name:e.name,value:t,placeholder:e.placeholder,action:e.action,actionNonce:e.action_nonce,isPro:e?.is_pro,proUpgradeMessage:e?.pro_upgrade_message,...r&&{handleChange:r},...void 0!==i&&{autoSave:i},...void 0!==s&&{disableStyle:s}});case"multi-select":return(0,a.createElement)(gQ,{title:e.label,description:e.desc,name:e.name,value:t,optionsArray:e.options,placeholder:e.placeholder,proUpgradeMessage:e?.pro_upgrade_message,isPro:e?.is_pro,...r&&{handleChange:r},...void 0!==i&&{autoSave:i},...void 0!==s&&{disableStyle:s}});case"webhook-url":return(0,a.createElement)(vQ,{title:e.label,description:e.desc,name:e.name,value:t,...r&&{handleChange:r},...void 0!==i&&{autoSave:i},...void 0!==s&&{disableStyle:s}});case"time":return(0,a.createElement)(bQ,{title:e.label,description:e.desc,name:e.name,value:t,unitOptions:e.unit_options,fields:e.fields,min:e.min,isPro:e?.is_pro,proUpgradeMessage:e?.pro_upgrade_message,...r&&{handleChange:r},...void 0!==i&&{autoSave:i},...void 0!==s&&{disableStyle:s}});case"button":return(0,a.createElement)(yQ,{title:e.label,description:e.desc});case"product-search":return(0,a.createElement)(PQ,{id:e.id,title:e.label,description:e.desc||e.description,name:e.name,value:t,placeholder:e.placeholder,isPro:e?.is_pro,proUpgradeMessage:e?.pro_upgrade_message,...r&&{handleChange:r},...void 0!==i&&{autoSave:i},...void 0!==s&&{disableStyle:s}});case"rule_engine":return(0,a.createElement)(pY,{data:e,value:t,handleChange:r,isPro:e?.is_pro,proUpgradeMessage:e?.pro_upgrade_message});case"test_email":return(0,a.createElement)(JQ,{title:e.label,description:e.desc,name:e.name,value:t,...r&&{handleChange:r},...void 0!==i&&{autoSave:i},...void 0!==s&&{disableStyle:s}});case"email":return(0,a.createElement)(fY,{title:e.label,description:e.desc,name:e.name,value:t,options:e?.options||[],...r&&{handleChange:r},...o&&o[e.name]&&{error:o[e.name]},...void 0!==i&&{autoSave:i},...void 0!==s&&{disableStyle:s}});case"test_message":return(0,a.createElement)(hY,{title:e.label,description:e.desc,name:e.name,value:t,action:e.action,actionNonce:e.action_nonce,messageType:e.message_type});case"textarea_dropdown":return(0,a.createElement)(gY,{title:e.label,description:e.desc,name:e.name,value:t,options:e?.options||[],search:e?.search||!1,countLimit:e?.count_limit||null,...r&&{handleChange:r},...o&&o[e.name]&&{error:o[e.name]},...void 0!==i&&{autoSave:i},...void 0!==s&&{disableStyle:s}});case"password":return(0,a.createElement)(yY,{title:e.label,description:e.desc,name:e.name,value:t,isPro:e?.is_pro,proUpgradeMessage:e?.pro_upgrade_message,...r&&{handleChange:r},...o&&o[e.name]&&{error:o[e.name]},...void 0!==i&&{autoSave:i},...void 0!==s&&{disableStyle:s}});case"rollback":return(0,a.createElement)(NY,{title:e.label,description:e.desc,name:e.name,value:t,options:e?.options||[]});default:return null}},DY=function(){const e=this;this.compare=function(e,t,n){switch(n){case"==":return e==t;case"!=":return e!=t;case"!==":return e!==t;case"in":return-1!==t.indexOf(e);case"!in":return-1===t.indexOf(e);case"contains":return-1!==e.indexOf(t);case"!contains":return-1===e.indexOf(t);case"<":return e<t;case"<=":return e<=t;case">":return e>t;case">=":return e>=t;default:return e===t}},this.check=function(t,n){const r="or"===t.relation;let o=!r;return t.fields.forEach(function(t){let a;return a=t.fields?e.check(t,n):e.compare(n[t.name],t.value,t.operator),r?(a&&(o=!0),!a):a?"":(o=!1,!1)}),o},this.isActiveControl=function(t,n){const r=!!t?.conditions&&t.conditions;return!(r&&!e.check(r,n))}},EY=function(){const[e,t]=Xh(),n="1"===e?.licenseStatus,r=(0,Yf.__)("Activate License","woo-cart-abandonment-recovery"),o=(0,Yf.__)("Deactivate License","woo-cart-abandonment-recovery"),[i,s]=(0,a.useState)({licenseButtonText:n?o:r,licenseActivationProcess:!1}),{licenseButtonText:l,licenseActivationProcess:c}=i,[u,d]=(0,a.useState)(n?"**************************":""),[m,p]=(0,a.useState)(!1),[f,h]=(0,a.useState)(n),g=(0,a.useRef)(null),y="disabled:pointer-events-none disabled:bg-gray-200 disabled:text-while disabled:border-none disabled:text-gray-400";(0,a.useEffect)(()=>{g.current&&g.current.focus()},[]);const v=function(e){if(e.preventDefault(),p(!1),""===u&&!n)return void p((0,Yf.__)("Please enter a valid license key!","woo-cart-abandonment-recovery"));e.target.disabled=!0;const a=e.currentTarget.dataset.nonce;let i=e.currentTarget.dataset.action;s({licenseButtonText:(0,Yf.__)("Processing","woo-cart-abandonment-recovery"),licenseActivationProcess:!0}),i="activate_license"===i?"wcar_activate_license":"wcar_deactivate_license";const l=new window.FormData;l.append("action",i),l.append("license_key",u),l.append("security",a),og()({url:cart_abandonment_admin.ajax_url,method:"POST",body:l}).then(n=>{if(n.success)e.target.blur(),"wcar_activate_license"===i?(t({type:eg,payload:"1"}),h(!0),s({licenseButtonText:o,licenseActivationProcess:!1}),d("**************************"),g.current.classList.add("disabled"),g.current.readOnly=!0,e.target.disabled=!1):(t({type:eg,payload:""}),h(!1),s({licenseButtonText:r,licenseActivationProcess:!1}),g.current.classList.remove("disabled"),g.current.readOnly=!1,d(""),e.target.disabled=!1),window.location.reload();else{const t=n.data?.error||n.data||"";p(t||(0,Yf.__)("Unknown error occurred while activating the license.","woo-cart-abandonment-recovery")),e.target.blur(),s({licenseButtonText:r,licenseActivationProcess:!1})}})};return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(Qh,{description:"",icon:null,size:"md",tag:"h2",title:(0,Yf.__)("My Account","woo-cart-abandonment-recovery"),className:"mb-6 [&_h2]:text-gray-900 text-xl"}),(0,a.createElement)("div",{className:"h-auto bg-white rounded-xl shadow-sm"},(0,a.createElement)(Uh,{containerType:"flex",direction:"column",className:"p-6"},(0,a.createElement)(Uh.Item,null,(0,a.createElement)(DC,{className:"font-semibold mb-1",htmlFor:"license-key",size:"md"},(0,Yf.__)("License Key","woo-cart-abandonment-recovery")),(0,a.createElement)("p",{className:"font-normal text-sm text-gray-600 m-0 mb-4"},(0,Yf.__)("Enter your valid license key below to activate Cart Abandonment Recovery Pro. If you don't have a license key yet, you can get it from your account.","woo-cart-abandonment-recovery"))),(0,a.createElement)(Uh.Item,{className:"w-full relative flex gap-4 flex-col sm:flex-row"},(0,a.createElement)("div",{className:"flex-grow relative"},(0,a.createElement)($R,{type:"text",size:"md",prefix:(0,a.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"h-4 w-6 text-gray-400"},(0,a.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 5.25a3 3 0 0 1 3 3m3 0a6 6 0 0 1-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1 1 21.75 8.25Z"})),className:"h-full w-full wcar-license-key disabled:!bg-gray-100 focus:[&>input]:ring-focus "+(m?"!border-red-300 focus:border-red-500 !shadow-none !outline-0 !outline-none":""),name:"wcar_license_key",value:u,onChange:e=>d(e),disabled:!!n,ref:g}),n&&(0,a.createElement)(Uh,{align:"center",containerType:"flex",direction:"row",className:"pointer-events-none absolute top-[0.3rem] h-9 right-0 pr-3"},(0,a.createElement)(Uh.Item,null,(0,a.createElement)("svg",{className:"h-5 w-5 text-green-500",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},(0,a.createElement)("path",{fillRule:"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm13.36-1.814a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z",clipRule:"evenodd"})))),m&&(0,a.createElement)(Uh,{align:"center",containerType:"flex",direction:"row",className:"pointer-events-none absolute top-[0.3rem] h-9 right-0 pr-3"},(0,a.createElement)(Uh.Item,null,(0,a.createElement)("svg",{className:"h-5 w-5 text-red-500",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},(0,a.createElement)("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"}))))),(0,a.createElement)("div",null,f?(0,a.createElement)(dn,{variant:"primary",className:`${y} w-full outline-0 hover:outline-0 focus:ring-0`,onClick:v,icon:c&&(0,a.createElement)(aQ,{className:"bg-transparent text-white",icon:null,size:"sm",variant:"primary"}),iconPosition:"right","data-action":"deactivate_license","data-nonce":cart_abandonment_admin?.pro_nonces?.deactivate_license_nonce},l):(0,a.createElement)(dn,{variant:"primary",className:`${y} w-full outline-0 hover:outline-0 focus:ring-0`,onClick:v,icon:c&&(0,a.createElement)(aQ,{className:"bg-transparent text-white",icon:null,size:"sm",variant:"primary"}),iconPosition:"right","data-action":"activate_license","data-nonce":cart_abandonment_admin?.pro_nonces?.activate_license_nonce},l))),m&&(0,a.createElement)(Uh.Item,null,(0,a.createElement)("div",{className:"license-errors text-red-600 mt-2"},lg(m))))))},TY={"license-settings":(0,a.createElement)(lR,{className:"h-6 w-6 text-gray-500"}),"general-settings":(0,a.createElement)(uR,{className:"h-6 w-6 text-gray-500"}),"webhook-settings":(0,a.createElement)(mR,{className:"h-6 w-6 text-gray-500"}),"coupon-settings":(0,a.createElement)(fR,{className:"h-6 w-6 text-gray-500"}),"email-settings":(0,a.createElement)(gR,{className:"h-6 w-6 text-gray-500"}),"recovery-report-settings":(0,a.createElement)(vR,{className:"h-6 w-6 text-gray-500"}),"banner-settings":(0,a.createElement)(MR,{className:"h-6 w-6 text-gray-500"}),"gdpr-settings":(0,a.createElement)(wR,{className:"h-6 w-6 text-gray-500"}),"advanced-settings":(0,a.createElement)(jR,{className:"h-6 w-6 text-gray-500"}),"blacklist-settings":(0,a.createElement)(ER,{className:"h-6 w-6 text-gray-500"})},OY=()=>{const[e,t]=(0,a.useState)(""),n=se(),r=new URLSearchParams(oe().search),[o]=Xh(),i=o?.settingsData||{},s=i?.fields?.settings||{},l=i?.values||{},c="active"===cart_abandonment_admin?.wcar_pro_status?{title:(0,Yf.__)("My Account","woo-cart-abandonment-recovery"),slug:"license-settings",priority:-1,component:(0,a.createElement)(EY,null)}:null,u=[...c?[c]:[],...Object.values(s)].sort((e,t)=>e.priority-t.priority),d=u.map(e=>e.slug),m=d.includes(r.get("tab"))?r.get("tab"):e||d[0],p=new DY,f=u.map(e=>"license-settings"===e.slug?{name:e.title,slug:e.slug,icon:TY[e.slug]||(0,a.createElement)(lR,{className:"h-6 w-6 text-gray-500"}),component:e.component}:{name:e.title,slug:e.slug,icon:TY[e.slug]||(0,a.createElement)(uR,{className:"h-6 w-6 text-gray-500"}),component:(0,a.createElement)(TR,{title:e.title},e.fields&&Object.keys(e.fields).map(t=>{var n,r;const o=e.fields[t],i=null!==(n=null!==(r=l[o.name])&&void 0!==r?r:o.value)&&void 0!==n?n:"",s=p.isActiveControl(o,l);return(0,a.createElement)(jY,{key:o.name||t,data:o,value:i,isActive:s})}))});return(0,a.createElement)("div",{className:"flex gap-4 bg-primary-background max-h-[calc(100%_-_6rem)]"},(0,a.createElement)("div",{className:"h-full min-h-screen flex flex-col w-auto sticky top-0 lg:top-4 sidebar"},(0,a.createElement)(iR,{borderOn:!0,className:"!h-full md:pl-3 lg:p-4 lg:w-64 border-none box-border flex-grow"},(0,a.createElement)(iR.Body,null,(0,a.createElement)(iR.Item,null,(0,a.createElement)(ff,{size:"md",className:"p-0"},(0,a.createElement)(ff.List,{open:!0},f.map(e=>(0,a.createElement)(ff.Item,{key:e.slug,active:m===e.slug,onClick:()=>{return r=e.slug,t(r),void n({search:`?page=woo-cart-abandonment-recovery&path=settings&tab=${r}`});var r},className:`lg:justify-start justify-center rounded-md ${m===e.slug?"bg-flamingo-50":""} hover:bg-flamingo-50`},e.icon,(0,a.createElement)("span",{className:"lg:block hidden text-gray-900"},e.name))))),(0,a.createElement)(Uh,{containerType:"flex",direction:"column",gap:"xs",className:"lg:p-4 mt-7 lg:border lg:border-solid lg:border-flamingo-400 rounded-md"},(0,a.createElement)(Uh.Item,{className:"lg:flex gap-2 items-center hidden"},(0,a.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",className:"h-5 w-5 text-flamingo-400",strokeLinecap:"round",strokeLinejoin:"round"},(0,a.createElement)("path",{d:"M3 11h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-5Zm0 0a9 9 0 1 1 18 0m0 0v5a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3Z"}),(0,a.createElement)("path",{d:"M21 16v2a4 4 0 0 1-4 4h-5"})),(0,a.createElement)(DC,{size:"md",className:"font-semibold"},(0,Yf.__)("Need Support?","woo-cart-abandonment-recovery"))),(0,a.createElement)(Uh.Item,{className:"lg:block hidden"},(0,a.createElement)("p",{className:"font-normal text-sm text-text-secondary m-0 pb-2"},(0,Yf.__)("We're happy to help!","woo-cart-abandonment-recovery"))),(0,a.createElement)(Uh.Item,null,(0,a.createElement)("a",{href:"https://cartflows.com/support",target:"_blank",rel:"noreferrer",className:"flex justify-center p-2.5 no-underline text-white hover:text-white bg-primary-600 hover:bg-primary-600 rounded-md box-content outline-0 hover:outline-0 focus:ring-0 focus-visible:ring-1 ring-black"},(0,a.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.7,stroke:"currentColor",className:"h-5 w-5 block lg:hidden",strokeLinecap:"round",strokeLinejoin:"round"},(0,a.createElement)("path",{d:"M3 11h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-5Zm0 0a9 9 0 1 1 18 0m0 0v5a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3Z"}),(0,a.createElement)("path",{d:"M21 16v2a4 4 0 0 1-4 4h-5"})),(0,a.createElement)("span",{className:"text-center w-full text-sm font-semibold lg:block hidden p-0"},(0,Yf.__)("Request Support","woo-cart-abandonment-recovery"))))))))),(0,a.createElement)(Uh,{className:"w-full max-w-[43.5rem] mx-auto mt-8 pr-4 pb-5 gap-0",direction:"column"},f.find(e=>e.slug===m)?.component))},IY={xs:{general:"text-xs min-w-6 h-6",ellipse:"text-xs min-w-6",icon:"size-4"},sm:{general:"text-xs min-w-8 h-8",ellipse:"text-xs min-w-8",icon:"size-4"},md:{general:"text-sm min-w-10 h-10",ellipse:"text-sm min-w-10",icon:"size-5"},lg:{general:"text-base min-w-12 h-12",ellipse:"text-base min-w-12",icon:"size-6"}},AY="group disabled:border-field-border-disabled opacity-50",kY=(0,a.createContext)({size:"sm",disabled:!1}),SY=()=>(0,a.useContext)(kY),_Y=({size:e="sm",disabled:t=!1,children:n,className:r,...o})=>(0,Ge.jsx)(kY.Provider,{value:{size:e,disabled:t},children:(0,Ge.jsx)("nav",{role:"navigation",className:en("flex w-full justify-center box-border m-0",r),...o,children:n})});_Y.displayName="Pagination";const CY=(0,a.forwardRef)(({className:e,...t},n)=>(0,Ge.jsx)("ul",{ref:n,className:en("m-0 p-0 w-full flex justify-center flex-row items-center gap-1","list-none",e),...t}));CY.displayName="Pagination.Content";const zY=(0,a.forwardRef)(({isActive:e=!1,className:t,children:n,...r},o)=>{const{disabled:a}=SY();return(0,Ge.jsx)("li",{ref:o,className:en("flex",a&&AY),children:(0,Ge.jsx)(LY,{isActive:e,disabled:a,className:t,...r,children:n})})});zY.displayName="Pagination.Item";const LY=({isActive:e=!1,tag:t="a",children:n,className:r,...o})=>{const{size:a,disabled:i}=SY(),s=e=>e.preventDefault();return(0,Ge.jsx)(dn,{tag:t,size:a,variant:"ghost",className:en("no-underline bg-transparent p-0 m-0 border-none","flex justify-center items-center rounded text-button-secondary","focus:outline focus:outline-1 focus:outline-border-subtle focus:bg-button-tertiary-hover",IY[a].general,!i&&e&&"text-button-primary active:text-button-primary bg-brand-background-50",i&&[AY,"group-disabled:text-field-color-disabled","focus:ring-transparent cursor-not-allowed"],r),disabled:i,...o,"aria-current":e?"page":void 0,onClick:e=>tn(o.onClick||(()=>{}),i?s:()=>{})(e),children:(0,Ge.jsx)("span",{className:"px-1 flex",children:n})})},PY=e=>{const{size:t,disabled:n}=SY();return(0,Ge.jsx)("li",{className:en("flex",n&&AY),"aria-label":"Go to previous page",children:(0,Ge.jsx)(LY,{className:en("[&>span]:flex [&>span]:items-center"),...e,children:(0,Ge.jsx)(YC,{className:en(IY[t].icon)})})})};PY.displayName="Pagination.Previous";const UY=e=>{const{size:t,disabled:n}=SY();return(0,Ge.jsx)("li",{className:en("flex",n&&AY),"aria-label":"Go to next page",children:(0,Ge.jsx)(LY,{className:en("[&>span]:flex [&>span]:items-center"),...e,children:(0,Ge.jsx)(BC,{className:en(IY[t].icon)})})})};UY.displayName="Pagination.Next";const RY=e=>{const{size:t,disabled:n}=SY();return(0,Ge.jsx)("li",{className:en("flex",n&&AY),children:(0,Ge.jsx)("span",{className:en("flex justify-center",IY[t].ellipse,n&&AY),"aria-hidden":"true",...e,children:"•••"})})};function QY({title:e,titleId:t,...n},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))}RY.displayName="Pagination.Ellipsis",_Y.Content=CY,_Y.Item=zY,_Y.Previous=PY,_Y.Next=UY,_Y.Ellipsis=RY;const YY=a.forwardRef(QY);function BY({title:e,titleId:t,...n},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"}),a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))}const FY=a.forwardRef(BY);function WY({title:e,titleId:t,...n},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M22 10.5h-6m-2.25-4.125a3.375 3.375 0 1 1-6.75 0 3.375 3.375 0 0 1 6.75 0ZM4 19.235v-.11a6.375 6.375 0 0 1 12.75 0v.109A12.318 12.318 0 0 1 10.374 21c-2.331 0-4.512-.645-6.374-1.766Z"}))}const VY=a.forwardRef(WY);function $Y({title:e,titleId:t,...n},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m3 3 1.664 1.664M21 21l-1.5-1.5m-5.485-1.242L12 17.25 4.5 21V8.742m.164-4.078a2.15 2.15 0 0 1 1.743-1.342 48.507 48.507 0 0 1 11.186 0c1.1.128 1.907 1.077 1.907 2.185V19.5M4.664 4.664 19.5 19.5"}))}const HY=a.forwardRef($Y);function GY({title:e,titleId:t,...n},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75 11.25 15 15 9.75m-3-7.036A11.959 11.959 0 0 1 3.598 6 11.99 11.99 0 0 0 3 9.749c0 5.592 3.824 10.29 9 11.623 5.176-1.332 9-6.03 9-11.622 0-1.31-.21-2.571-.598-3.751h-.152c-3.196 0-6.1-1.248-8.25-3.285Z"}))}const ZY=a.forwardRef(GY);function qY({title:e,titleId:t,...n},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9.75v6.75m0 0-3-3m3 3 3-3m-8.25 6a4.5 4.5 0 0 1-1.41-8.775 5.25 5.25 0 0 1 10.233-2.33 3 3 0 0 1 3.758 3.848A3.752 3.752 0 0 1 18 19.5H6.75Z"}))}const KY=a.forwardRef(qY),XY=({data:e,filename:t="export",className:n="",disabled:r=!1})=>{const o=new Date,i=`${String(o.getDate()).padStart(2,"0")}-${String(o.getMonth()+1).padStart(2,"0")}-${o.getFullYear()}`;return(0,a.createElement)(dn,{className:n,iconPosition:"left",size:"sm",tag:"button",type:"button",variant:"primary",onClick:()=>{if(!e||!e.length)return;const n=(e=>{if(!e||!e.length)return"";const t=Object.keys(e[0]);let n=t.join(",")+"\r\n";return e.forEach(e=>{const r=t.map(t=>{let n=null===e[t]||void 0===e[t]?"":e[t];return n=String(n),(n.includes(",")||n.includes('"')||n.includes("\n"))&&(n='"'+n.replace(/"/g,'""')+'"'),n});n+=r.join(",")+"\r\n"}),n})(e),r=new Blob([n],{type:"text/csv;charset=utf-8;"}),o=document.createElement("a"),a=URL.createObjectURL(r);o.setAttribute("href",a),o.setAttribute("download",`${t}_${i}.csv`),o.style.visibility="hidden",document.body.appendChild(o),o.click(),document.body.removeChild(o)},disabled:r||!e||0===e.length,icon:(0,a.createElement)(KY,{"aria-label":"icon"})},(0,Yf.__)("Export","woo-cart-abandonment-recovery"))},JY=()=>{const[e,t]=(0,a.useState)([]),[n,r]=(0,a.useState)(1),[o,i]=(0,a.useState)(20),[s,l]=(0,a.useState)(""),[c,u]=(0,a.useState)({id:"all",title:(0,Yf.__)("All","woo-cart-abandonment-recovery")}),[d,m]=(0,a.useState)({from:null,to:null}),[p,f]=(0,a.useState)(!1),[h,g]=(0,a.useState)([]),[y,v]=Xh(),b=y?.followUpData||null,M=se(),[x,w]=(0,a.useState)({isOpen:!1,type:null,id:null}),[N,j]=(0,a.useState)(!1),{shouldBlockProFeatures:D}=AU(),E=D(),T=(0,Yf.__)("Not Available","woo-cart-abandonment-recovery");(0,a.useEffect)(()=>{b?(g(b),f(!1)):(async()=>{f(!0),await ag("/wcar/api/admin/follow-up/",{},"POST",e=>{g(e.items||[]),v({type:"FETCH_FOLLOWUP_DATA_SUCCESS",followUpData:e.items||[]}),f(!1)},()=>{f(!1)})})()},[]);const O=(n,r)=>{t(n?[...e,r.id]:e.filter(e=>e!==r.id))},I=[{id:"all",title:(0,Yf.__)("All","woo-cart-abandonment-recovery")},{id:"abandoned_orders",title:(0,Yf.__)("Abandoned Orders","woo-cart-abandonment-recovery")},{id:"recovered_orders",title:(0,Yf.__)("Recovered Orders","woo-cart-abandonment-recovery")},{id:"lost_orders",title:(0,Yf.__)("Lost Orders","woo-cart-abandonment-recovery")},{id:"blacklisted",title:(0,Yf.__)("Blacklisted","woo-cart-abandonment-recovery")}],A=h.filter(e=>{const t=""===s||e.userName.toLowerCase().includes(s.toLowerCase())||e.email.toLowerCase().includes(s.toLowerCase());let n=!0;if("all"!==c?.id)switch(c.id){case"abandoned_orders":n="Abandoned"===e.orderStatus;break;case"recovered_orders":n="Successful"===e.orderStatus;break;case"lost_orders":n="Failed"===e.orderStatus;break;case"blacklisted":n="Blacklisted"===e.orderStatus;break;default:n=!0}let r=!0;if(d.from||d.to){const t=new Date(e.dateTime);if(d.from){const e=new Date(d.from);e.setHours(0,0,0,0),r=r&&t>=e}if(d.to){const e=new Date(d.to);e.setHours(23,59,59,999),r=r&&t<=e}}return t&&n&&r}),k=n*o,S=k-o,_=A.slice(S,k),C=Math.ceil(A.length/o),z=""!==s||"all"!==c?.id||d.from||d.to,L=e=>{r(e)},P=e=>{M({search:`?page=woo-cart-abandonment-recovery&path=detailed-report&id=${e}`})};return(0,a.createElement)("div",{className:"p-4 md:p-8"},(0,a.createElement)(UC,{className:"flex flex-col gap-4"},(0,a.createElement)("div",{className:"flex flex-col xl:flex-row justify-between relative"},(0,a.createElement)("div",{className:"flex gap-4 items-center"},(0,a.createElement)(Qh,{size:"sm",tag:"h1",title:(0,Yf.__)("Follow Up Reports","woo-cart-abandonment-recovery"),className:"[&_h2]:text-gray-900"}),!p&&e.length>0&&(0,a.createElement)("div",{className:"flex gap-4 items-center border-0 border-l border-solid border-gray-200"},(0,a.createElement)(dn,{variant:"ghost",icon:(0,a.createElement)(CC,{className:"h-6 w-6 text-gray-500"}),size:"xs",className:"text-icon-secondary hover:text-icon-primary",onClick:()=>{t([])}}),(0,a.createElement)("span",{className:"text-sm font-normal text-gray-500"},(0,Yf.sprintf)((0,Yf.__)("%d Selected","woo-cart-abandonment-recovery"),e.length)),(0,a.createElement)(dn,{className:"py-2 px-4 bg-red-50 text-red-600 outline-red-600 hover:bg-red-50 hover:outline-red-600",size:"sm",tag:"button",type:"button",variant:"outline",icon:(0,a.createElement)(iY,{className:"h-4 w-4"}),iconPosition:"left",onClick:()=>{0!==e.length&&w({isOpen:!0,type:"bulk",id:null})}},"Delete"))),(0,a.createElement)("div",{className:"flex flex-col lg:flex-row gap-4"},z&&(0,a.createElement)(dn,{variant:"link",size:"xs",icon:(0,a.createElement)(CC,{className:"h-4 w-4"}),onClick:()=>{u({id:"all",title:(0,Yf.__)("All","woo-cart-abandonment-recovery")}),l(""),m({from:void 0,to:void 0}),r(1)},className:"text-red-500 no-underline whitespace-nowrap focus:ring-0 [box-shadow:none] focus:[box-shadow:none] hover:no-underline hover:text-red-500","aria-label":(0,Yf.__)("Clear Filters","woo-cart-abandonment-recovery")},(0,Yf.__)("Clear Filters","woo-cart-abandonment-recovery")),(0,a.createElement)($R,{placeholder:"Search...",prefix:(0,a.createElement)(YY,{className:"h-6 w-6 text-gray-500"}),size:"sm",type:"text","aria-label":(0,Yf.__)("Search","woo-cart-abandonment-recovery"),value:s,onChange:e=>{l(e),r(1)},className:"w-full lg:w-52",disabled:p}),(0,a.createElement)(fQ,{onChange:e=>{u(e),r(1)},size:"sm",value:c.title,disabled:p},(0,a.createElement)(fQ.Button,{className:"w-full lg:w-52 text-gray-500"}),(0,a.createElement)(fQ.Options,null,I.map(e=>(0,a.createElement)(fQ.Option,{key:e.id,value:e},e.title)))),(0,a.createElement)(JP,{selectedRange:d,setSelectedRange:e=>{m(e),r(1)},disabled:p}),(0,a.createElement)(XY,{data:h,filename:"followUpReport"}))),p?(0,a.createElement)("div",{className:"flex flex-col gap-4"},(0,a.createElement)(QC,{height:"40px"}),[...Array(5)].map((e,t)=>(0,a.createElement)(QC,{key:t,height:"50px"}))):0===h.length?(0,a.createElement)(MU,{className:"my-2",icon:(0,a.createElement)(vU,{className:"h-12 w-12 text-yellow-500"}),title:(0,Yf.__)("No Follow-Up Reports Yet","woo-cart-abandonment-recovery"),description:(0,Yf.__)("Reports will show up here once customers start abandoning their carts.","woo-cart-abandonment-recovery")}):(0,a.createElement)(lU,{checkboxSelection:!0,className:"whitespace-nowrap sm:whitespace-normal"},(0,a.createElement)(lU.Head,{selected:e.length>0,onChangeSelection:e=>{t(e?A.map(e=>e.id):[])},indeterminate:e.length>0&&e.length<A.length},(0,a.createElement)(lU.HeadCell,null,(0,Yf.__)("User Name","woo-cart-abandonment-recovery")),(0,a.createElement)(lU.HeadCell,null,(0,Yf.__)("Email To","woo-cart-abandonment-recovery")),(0,a.createElement)(lU.HeadCell,null,(0,Yf.__)("Cart Total","woo-cart-abandonment-recovery")),(0,a.createElement)(lU.HeadCell,null,(0,Yf.__)("Order Status","woo-cart-abandonment-recovery")),(0,a.createElement)(lU.HeadCell,null,(0,Yf.__)("Date & Time","woo-cart-abandonment-recovery")),(0,a.createElement)(lU.HeadCell,{className:"text-right"},(0,Yf.__)("Actions","woo-cart-abandonment-recovery"))),_.length>0?(0,a.createElement)(lU.Body,null,_.map((t,n)=>(0,a.createElement)(lU.Row,{key:n,value:t,selected:e.includes(t.id),onChangeSelection:O},(0,a.createElement)(lU.Cell,null,(0,a.createElement)("span",{className:"cursor-pointer hover:text-flamingo-400 focus-visible:text-flamingo-400",onClick:()=>P(t.id),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||P(t.id)},role:"button",tabIndex:0},t.userName)),(0,a.createElement)(lU.Cell,null,t?.email||T),(0,a.createElement)(lU.Cell,null,t?.cartTotal||T),(0,a.createElement)(lU.Cell,null,(0,a.createElement)(wU,{status:t?.orderStatus||T})),(0,a.createElement)(lU.Cell,null,t?.dateTime||T),(0,a.createElement)(lU.Cell,null,(0,a.createElement)("div",{className:"flex items-center justify-end gap-2"},(0,a.createElement)(th,{content:"View",position:"top"},(0,a.createElement)(dn,{variant:"ghost",icon:(0,a.createElement)(FY,{className:"h-6 w-6"}),size:"xs",className:"text-gray-500 hover:text-flamingo-400","aria-label":"View",onClick:()=>P(t.id)})),0===t.unsubscribed?(0,a.createElement)(th,{content:(0,Yf.__)("Unsubscribe","woo-cart-abandonment-recovery"),position:"top"},(0,a.createElement)(dn,{variant:"ghost",icon:(0,a.createElement)(VY,{className:"h-6 w-6"}),size:"xs",className:"text-gray-500 hover:text-flamingo-400","aria-label":(0,Yf.__)("Unsubscribe","woo-cart-abandonment-recovery"),onClick:()=>(e=>{const t=cart_abandonment_admin?.ajax_url,n=cart_abandonment_admin?.unsubscribe_follow_up_reports_nonce,r=new window.FormData;r.append("action","wcar_unsubscribe_follow_up_reports"),r.append("ids[]",e),r.append("security",n),ag(t,r,"POST",t=>{if(t.success){const t=h.map(t=>(t.id===e&&(t.unsubscribed=1),t));g(t),v({type:"FETCH_FOLLOWUP_DATA_SUCCESS",followUpData:t}),rt.success((0,Yf.__)("Unsubscribed Successfully","woo-cart-abandonment-recovery"))}else rt.error((0,Yf.__)("Unsubscribe failed","woo-cart-abandonment-recovery"),{description:t.data?.message||""})},e=>{rt.error((0,Yf.__)("Unsubscribe failed","woo-cart-abandonment-recovery"),{description:e.data?.message||""})},!0,!1)})(t.id)})):(0,a.createElement)(th,{content:(0,Yf.__)("Unsubscribed","woo-cart-abandonment-recovery"),position:"top"},(0,a.createElement)(dn,{variant:"ghost",icon:(0,a.createElement)(HY,{className:"h-6 w-6","aria-label":(0,Yf.__)("Unsubscribed","woo-cart-abandonment-recovery"),disabled:!0}),size:"xs",className:"text-gray-500 cursor-not-allowed opacity-50","aria-label":(0,Yf.__)("Unsubscribed","woo-cart-abandonment-recovery")})),!E&&(0,a.createElement)(th,{content:(0,Yf.__)("Blacklisted"===t?.orderStatus?"Whitelist":"Blacklist","woo-cart-abandonment-recovery"),position:"top"},(0,a.createElement)(dn,{variant:"ghost",icon:"Blacklisted"===t?.orderStatus?(0,a.createElement)(ZY,{className:"h-6 w-6"}):(0,a.createElement)(ER,{className:"h-6 w-6"}),size:"xs",className:"text-gray-500 hover:text-flamingo-400","aria-label":(0,Yf.__)("Blacklisted"===t?.orderStatus?"Whitelist":"Blacklist","woo-cart-abandonment-recovery"),onClick:()=>((e,t)=>{const n=cart_abandonment_admin?.ajax_url,r="blacklist"===t?cart_abandonment_admin?.blacklist_cart_nonce:cart_abandonment_admin?.whitelist_cart_nonce,o=new window.FormData;o.append("action","wcar_pro_"+t+"_cart"),o.append("id",e),o.append("security",r),ag(n,o,"POST",n=>{if(n.success){const r="blacklist"===t?"Blacklisted":"Abandoned",o=h.map(t=>t.id===e?{...t,orderStatus:r}:t);g(o),v({type:"FETCH_FOLLOWUP_DATA_SUCCESS",followUpData:o}),void 0!==n.data?.blacklist_list&&v({type:Jh,payload:{option:"wcf_ca_email_blacklist_list",value:n.data.blacklist_list}}),rt.success("blacklist"===t?(0,Yf.__)("Cart blacklisted successfully","woo-cart-abandonment-recovery"):(0,Yf.__)("Cart whitelisted successfully","woo-cart-abandonment-recovery"))}else rt.error("blacklist"===t?(0,Yf.__)("Blacklist failed","woo-cart-abandonment-recovery"):(0,Yf.__)("Whitelist failed","woo-cart-abandonment-recovery"),{description:n.data?.message||""})},e=>{rt.error("blacklist"===t?(0,Yf.__)("Blacklist failed","woo-cart-abandonment-recovery"):(0,Yf.__)("Whitelist failed","woo-cart-abandonment-recovery"),{description:e.data?.message||""})},!0,!1)})(t.id,"Blacklisted"===t?.orderStatus?"whitelist":"blacklist")})),(0,a.createElement)(th,{content:"Delete",position:"top"},(0,a.createElement)(dn,{variant:"ghost",icon:(0,a.createElement)(iY,{className:"h-6 w-6"}),size:"xs",className:"text-gray-500 hover:text-red-600","aria-label":"Delete",onClick:()=>w({isOpen:!0,type:"single",id:t.id})}))))))):(0,a.createElement)("tr",null,(0,a.createElement)("td",{colSpan:"7",className:"p-4 w-full text-center"},(0,Yf.__)("No matching data available","woo-cart-abandonment-recovery"))),(0,a.createElement)(lU.Footer,null,(0,a.createElement)("div",{className:"flex items-center justify-between w-full"},(0,a.createElement)("div",{className:"flex items-center gap-2"},(0,a.createElement)("span",{className:"text-sm font-normal leading-5 text-text-secondary whitespace-nowrap"},(0,Yf.__)("Items per page:","woo-cart-abandonment-recovery")),(0,a.createElement)(fQ,{onChange:e=>{i(Number(e)),r(1)},size:"md",value:o.toString()},(0,a.createElement)(fQ.Button,null),(0,a.createElement)(fQ.Options,null,(0,a.createElement)(fQ.Option,{value:"5"},"5"),(0,a.createElement)(fQ.Option,{value:"10"},"10"),(0,a.createElement)(fQ.Option,{value:"20"},"20"),(0,a.createElement)(fQ.Option,{value:"50"},"50")))),(0,a.createElement)(_Y,{className:"w-fit"},(0,a.createElement)(_Y.Content,null,(0,a.createElement)(_Y.Previous,{onClick:()=>{n>1&&L(n-1)},disabled:1===n}),((e,t)=>{const n=[];if(e<=7)for(let t=1;t<=e;t++)n.push(t);else{for(let e=1;e<=3;e++)n.push(e);t>5&&n.push("ellipsis"),t>3&&t<e-2&&n.push(t),t<e-4&&n.push("ellipsis-end");for(let t=e-2;t<=e;t++)t>3&&n.push(t)}return n})(C,n).map((e,t)=>"ellipsis"===e||"ellipsis-end"===e?(0,a.createElement)(_Y.Ellipsis,{key:`ellipsis-${t}`}):(0,a.createElement)(_Y.Item,{key:e,isActive:n===e,onClick:()=>L(e),className:n===e?"bg-flamingo-50 text-flamingo-400":""},e)),(0,a.createElement)(_Y.Next,{onClick:()=>{n<C&&L(n+1)},disabled:n===C})))))),(0,a.createElement)(wY,{isOpen:x.isOpen,onClose:()=>w({isOpen:!1,type:null,id:null}),onConfirm:()=>{"bulk"===x.type?(()=>{j(!0);const n=cart_abandonment_admin?.ajax_url,r=cart_abandonment_admin?.delete_follow_up_reports_nonce,o=new window.FormData;o.append("action","wcar_delete_follow_up_reports"),e.forEach(e=>o.append("ids[]",e)),o.append("security",r),ag(n,o,"POST",n=>{if(n.success){const n=h.filter(t=>!e.includes(t.id));g(n),v({type:"FETCH_FOLLOWUP_DATA_SUCCESS",followUpData:n}),t([]),rt.success((0,Yf.__)("Record(s) deleted","woo-cart-abandonment-recovery"))}else rt.error((0,Yf.__)("Delete failed","woo-cart-abandonment-recovery"),{description:n.data?.message||""});j(!1),w({isOpen:!1,type:null,id:null})},e=>{rt.error((0,Yf.__)("Delete failed","woo-cart-abandonment-recovery"),{description:e.data?.message||""}),j(!1),w({isOpen:!1,type:null,id:null})},!0,!1)})():(()=>{j(!0);const e=cart_abandonment_admin?.ajax_url,t=cart_abandonment_admin?.delete_follow_up_reports_nonce,n=new window.FormData;n.append("action","wcar_delete_follow_up_reports"),n.append("ids[]",x.id),n.append("security",t),ag(e,n,"POST",e=>{if(e.success){const e=h.filter(e=>e.id!==x.id);g(e),v({type:"FETCH_FOLLOWUP_DATA_SUCCESS",followUpData:e}),rt.success((0,Yf.__)("Record deleted","woo-cart-abandonment-recovery"))}else rt.error((0,Yf.__)("Delete failed","woo-cart-abandonment-recovery"),{description:e.data?.message||""});j(!1),w({isOpen:!1,type:null,id:null})},e=>{rt.error((0,Yf.__)("Delete failed","woo-cart-abandonment-recovery"),{description:e.data?.message||""}),j(!1),w({isOpen:!1,type:null,id:null})},!0,!1)})()},title:"bulk"===x.type?(0,Yf.__)("Delete Selected Records","woo-cart-abandonment-recovery"):(0,Yf.__)("Delete Record","woo-cart-abandonment-recovery"),message:"bulk"===x.type?(0,Yf.sprintf)(/* translators: %s: number of selected records */ /* translators: %s: number of selected records */
(0,Yf.__)("Are you sure you want to delete %s selected record(s)? This action cannot be undone.","woo-cart-abandonment-recovery"),e.length):(0,Yf.__)("Are you sure you want to delete this record? This action cannot be undone.","woo-cart-abandonment-recovery"),isLoading:N})))},eB=()=>{const[e,t]=(0,a.useState)([]),[n,r]=(0,a.useState)(1),[o,i]=(0,a.useState)(20),[s,l]=(0,a.useState)(""),[c,u]=(0,a.useState)(!1),[d,m]=(0,a.useState)([]),{canAccessProFeatures:p,shouldBlockProFeatures:f}=AU(),[h,g]=(0,a.useState)({isOpen:!1,type:null,id:null}),[y,v]=(0,a.useState)(!1),[b,M]=(0,a.useState)(()=>{const e=new Date,t=new Date;return t.setDate(e.getDate()-6),{from:t,to:e}}),x=p(),w=f();(0,a.useEffect)(()=>{x&&(async()=>{u(!0),await ag("/wcar-pro/api/admin/product-report",{date_range:{from:b.from&&new Date(Date.UTC(b.from.getFullYear(),b.from.getMonth(),b.from.getDate())).toISOString().slice(0,10),to:b.to&&new Date(Date.UTC(b.to.getFullYear(),b.to.getMonth(),b.to.getDate())).toISOString().slice(0,10)}},"POST",e=>{m(e.items||[]),u(!1)},()=>{u(!1)})})()},[x,b]);const N=(n,r)=>{t(n?[...e,r.id]:e.filter(e=>e!==r.id))},j=e=>{r(e)},D=d.filter(e=>e.productName.toLowerCase().includes(s.toLowerCase())),E=n*o,T=E-o,O=D.slice(T,E),I=Math.ceil(D.length/o),A=""!==s||b.from||b.to;return(0,a.createElement)("div",{className:"p-4 md:p-8"},(0,a.createElement)(UC,{className:"flex flex-col gap-4"},(0,a.createElement)("div",{className:"flex flex-col md:flex-row gap-4 md:gap-0 justify-between relative"},(0,a.createElement)("div",{className:"flex flex-row flex-wrap gap-4 items-center"},(0,a.createElement)("div",{className:"flex items-center gap-2"},(0,a.createElement)(Qh,{size:"sm",tag:"h1",title:"Product Reports",className:"[&_h2]:text-gray-900"})),!c&&e.length>0&&(0,a.createElement)("div",{className:"flex gap-4 items-center border-0 border-l border-solid border-gray-200"},(0,a.createElement)(dn,{variant:"ghost",icon:(0,a.createElement)(CC,{className:"h-6 w-6 text-gray-500"}),size:"xs",className:"text-icon-secondary hover:text-icon-primary",onClick:()=>{t([])}}),(0,a.createElement)("span",{className:"text-sm font-normal text-gray-500"},e.length," Selected"),(0,a.createElement)(dn,{className:"py-2 px-4 bg-red-50 text-red-600 outline-red-600 hover:bg-red-50 hover:outline-red-600",size:"sm",tag:"button",type:"button",variant:"outline",icon:(0,a.createElement)(iY,{className:"h-4 w-4"}),iconPosition:"left",onClick:()=>{0!==e.length&&g({isOpen:!0,type:"bulk",id:null})}},"Delete"))),(0,a.createElement)("div",{className:"flex flex-col lg:flex-row gap-4"},A&&(0,a.createElement)(dn,{variant:"link",size:"xs",icon:(0,a.createElement)(CC,{className:"h-4 w-4"}),onClick:()=>{l(""),M({from:void 0,to:void 0}),r(1)},className:"text-red-500 no-underline whitespace-nowrap focus:ring-0 [box-shadow:none] focus:[box-shadow:none] hover:no-underline hover:text-red-500","aria-label":(0,Yf.__)("Clear Filters","woo-cart-abandonment-recovery")},(0,Yf.__)("Clear Filters","woo-cart-abandonment-recovery")),(0,a.createElement)($R,{placeholder:"Search...",prefix:(0,a.createElement)(YY,{className:"h-6 w-6 text-gray-500"}),size:"sm",type:"text","aria-label":"Search",value:s,onChange:e=>{l(e),r(1)},className:"w-full lg:w-52",disabled:c}),(0,a.createElement)(JP,{selectedRange:b,setSelectedRange:e=>{M(e),r(1)},disabled:c}),(0,a.createElement)(XY,{data:d,filename:"productReport"}))),c?(0,a.createElement)("div",{className:"flex flex-col gap-4"},(0,a.createElement)(QC,{height:"40px"}),[...Array(5)].map((e,t)=>(0,a.createElement)(QC,{key:t,height:"50px"}))):w?(0,a.createElement)("div",{className:"relative"},(0,a.createElement)(UU,null),(0,a.createElement)(PU,{isVisible:!0,highlightText:(0,Yf.__)("Unlock Pro Features","woo-cart-abandonment-recovery"),mainTitle:(0,Yf.__)("Cart Abandonment Recovery Pro is Here 🔥","woo-cart-abandonment-recovery"),description:(0,Yf.__)("You've seen how emails bring shoppers back. With Pro, you'll unlock advanced tools that recover more carts, boost profits, and grow your store faster.","woo-cart-abandonment-recovery"),usps:[(0,Yf.__)("Product Reports","woo-cart-abandonment-recovery"),(0,Yf.__)("SMS + WhatsApp Followups","woo-cart-abandonment-recovery"),(0,Yf.__)("Smart Rules","woo-cart-abandonment-recovery"),(0,Yf.__)("Advanced Automations","woo-cart-abandonment-recovery"),(0,Yf.__)("And More…","woo-cart-abandonment-recovery")],footerMessage:"",backgroundBlur:!0})):0===d.length?(0,a.createElement)(MU,{className:"my-2",icon:(0,a.createElement)(vU,{className:"h-12 w-12 text-yellow-500"}),title:(0,Yf.__)("No Product Data Yet","woo-cart-abandonment-recovery"),description:(0,Yf.__)("You'll see product abandonment stats here once customers start adding items to their carts.","woo-cart-abandonment-recovery")}):(0,a.createElement)(lU,{checkboxSelection:!0},(0,a.createElement)(lU.Head,{selected:e.length>0,onChangeSelection:e=>{t(e?D.map(e=>e.id):[])},indeterminate:e.length>0&&e.length<D.length},(0,a.createElement)(lU.HeadCell,null,(0,Yf.__)("Product Name","woo-cart-abandonment-recovery")),(0,a.createElement)(lU.HeadCell,null,(0,a.createElement)("div",{className:"flex items-center"},(0,Yf.__)("Times Abandoned","woo-cart-abandonment-recovery"),(0,a.createElement)(th,{content:"Total times the product was abandoned and the associated abandoned amount",position:"top"},(0,a.createElement)(LC,{className:"h-3 w-3 ml-1 text-gray-500"})))),(0,a.createElement)(lU.HeadCell,null,(0,a.createElement)("div",{className:"flex items-center"},(0,Yf.__)("Times Recovered","woo-cart-abandonment-recovery"),(0,a.createElement)(th,{content:"Total times the product was recovered and the associated recovered amount",position:"top"},(0,a.createElement)(LC,{className:"h-3 w-3 ml-1 text-gray-500"})))),(0,a.createElement)(lU.HeadCell,{className:"text-right"},(0,a.createElement)("span",{className:""},(0,Yf.__)("Actions","woo-cart-abandonment-recovery")))),O.length>0?(0,a.createElement)(lU.Body,null,O.map((t,n)=>(0,a.createElement)(lU.Row,{key:n,value:t,selected:e.includes(t.id),onChangeSelection:N},(0,a.createElement)(lU.Cell,null,(0,a.createElement)("a",{href:t?.productLink,className:"w-fit flex gap-2 items-center cursor-pointer no-underline text-inherit hover:text-flamingo-400 focus-visible:text-flamingo-400",target:"_blank",rel:"noreferrer"},(0,a.createElement)("img",{src:t?.imageUrl,alt:"",className:"w-12 h-12 object-cover rounded-md border border-solid border-gray-200"}),(0,a.createElement)("span",null,t.productName," (#",t.id,")"))),(0,a.createElement)(lU.Cell,null,t.abandoned),(0,a.createElement)(lU.Cell,null,t.recovered),(0,a.createElement)(lU.Cell,null,(0,a.createElement)("div",{className:"flex items-center justify-end gap-2"},(0,a.createElement)(th,{content:(0,Yf.__)("View","woo-cart-abandonment-recovery"),position:"top"},(0,a.createElement)(dn,{variant:"ghost",icon:(0,a.createElement)(FY,{className:"h-6 w-6"}),size:"xs",className:"text-gray-500 hover:text-flamingo-400","aria-label":(0,Yf.__)("View","woo-cart-abandonment-recovery"),onClick:()=>{return e=t?.productLink,void window.open(e,"_blank");var e}})),(0,a.createElement)(th,{content:(0,Yf.__)("Delete","woo-cart-abandonment-recovery"),position:"top"},(0,a.createElement)(dn,{variant:"ghost",icon:(0,a.createElement)(iY,{className:"h-6 w-6"}),size:"xs",className:"text-gray-500 hover:text-red-600","aria-label":(0,Yf.__)("Delete","woo-cart-abandonment-recovery"),onClick:()=>g({isOpen:!0,type:"single",id:t.id})}))))))):(0,a.createElement)("tr",null,(0,a.createElement)("td",{colSpan:"5",className:"p-4 w-full text-center"},(0,Yf.__)("No matching data available","woo-cart-abandonment-recovery"))),(0,a.createElement)(lU.Footer,null,(0,a.createElement)("div",{className:"flex items-center justify-between w-full"},(0,a.createElement)("div",{className:"flex items-center gap-2"},(0,a.createElement)("span",{className:"text-sm font-normal leading-5 text-text-secondary whitespace-nowrap"},(0,Yf.__)("Items per page:","woo-cart-abandonment-recovery")),(0,a.createElement)(fQ,{onChange:e=>{i(Number(e)),r(1)},size:"md",value:o.toString()},(0,a.createElement)(fQ.Button,null),(0,a.createElement)(fQ.Options,null,(0,a.createElement)(fQ.Option,{value:"5"},"5"),(0,a.createElement)(fQ.Option,{value:"10"},"10"),(0,a.createElement)(fQ.Option,{value:"20"},"20"),(0,a.createElement)(fQ.Option,{value:"50"},"50")))),(0,a.createElement)(_Y,{className:"w-fit"},(0,a.createElement)(_Y.Content,null,(0,a.createElement)(_Y.Previous,{onClick:()=>{n>1&&j(n-1)},disabled:1===n}),Array.from({length:I},(e,t)=>t+1).map(e=>(0,a.createElement)(_Y.Item,{key:e,isActive:n===e,onClick:()=>j(e),className:n===e?"bg-flamingo-50 text-flamingo-400":""},e)),(0,a.createElement)(_Y.Next,{onClick:()=>{n<I&&j(n+1)},disabled:n===I})))))),(0,a.createElement)(wY,{isOpen:h.isOpen,onClose:()=>g({isOpen:!1,type:null,id:null}),onConfirm:()=>{"bulk"===h.type?(()=>{v(!0);const n=cart_abandonment_admin?.ajax_url,r=cart_abandonment_admin?.delete_product_reports_nonce,o=new window.FormData;o.append("action","wcar_pro_delete_product_reports"),e.forEach(e=>o.append("ids[]",e)),o.append("security",r),ag(n,o,"POST",n=>{if(n.success){const n=d.filter(t=>!e.includes(t.id));m(n),t([]),rt.success((0,Yf.__)("Record(s) deleted","woo-cart-abandonment-recovery"))}else rt.error((0,Yf.__)("Delete failed","woo-cart-abandonment-recovery"),{description:n.data?.message||""});v(!1),g({isOpen:!1,type:null,id:null})},e=>{rt.error((0,Yf.__)("Delete failed","woo-cart-abandonment-recovery"),{description:e.data?.message||""}),v(!1),g({isOpen:!1,type:null,id:null})},!0)})():(()=>{v(!0);const e=cart_abandonment_admin?.ajax_url,t=cart_abandonment_admin?.delete_product_reports_nonce,n=new window.FormData;n.append("action","wcar_pro_delete_product_reports"),n.append("ids[]",h.id),n.append("security",t),ag(e,n,"POST",e=>{if(e.success){const e=d.filter(e=>e.id!==h.id);m(e),rt.success((0,Yf.__)("Record deleted","woo-cart-abandonment-recovery"))}else rt.error((0,Yf.__)("Delete failed","woo-cart-abandonment-recovery"),{description:e.data?.message||""});v(!1),g({isOpen:!1,type:null,id:null})},e=>{rt.error((0,Yf.__)("Delete failed","woo-cart-abandonment-recovery"),{description:e.data?.message||""}),v(!1),g({isOpen:!1,type:null,id:null})},!0)})()},title:"bulk"===h.type?(0,Yf.__)("Delete Selected Products","woo-cart-abandonment-recovery"):(0,Yf.__)("Delete Product","woo-cart-abandonment-recovery"),message:"bulk"===h.type?(0,Yf.sprintf)(/* translators: %s: number of selected products */ /* translators: %s: number of selected products */
(0,Yf.__)("Are you sure you want to delete %s selected product(s)? This action cannot be undone.","woo-cart-abandonment-recovery"),e.length):(0,Yf.__)("Are you sure you want to delete this product? This action cannot be undone.","woo-cart-abandonment-recovery"),isLoading:y})))};function tB({title:e,titleId:t,...n},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 19.5 8.25 12l7.5-7.5"}))}const nB=a.forwardRef(tB);function rB({title:e,titleId:t,...n},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z"}))}const oB=a.forwardRef(rB),aB=({scheduledEmails:e,isLoading:t,handleRescheduleEmails:n,buttonLoading:r,disabled:o})=>(0,a.createElement)(UC,{className:"flex flex-col gap-4"},(0,a.createElement)("div",{className:"flex items-center justify-between"},(0,a.createElement)(Qh,{size:"sm",tag:"h2",title:(0,Yf.__)("Email Details","woo-cart-abandonment-recovery"),className:"[&_h2]:text-gray-900"}),(0,a.createElement)(dn,{className:"bg-primary-25 text-primary-600 outline-primary-300 hover:bg-primary-25 hover:outline-primary-300",size:"sm",tag:"button",type:"button",variant:"outline",onClick:n,disabled:t||r||o,icon:r&&(0,a.createElement)(aQ,{className:"text-flamingo-400 p-0",icon:null,size:"sm",variant:"primary"}),iconPosition:"left"},(0,Yf.__)("Reschedule Emails","woo-cart-abandonment-recovery"))),t?(0,a.createElement)("div",{className:"flex flex-col gap-4"},(0,a.createElement)(QC,{height:"40px"}),[...Array(3)].map((e,t)=>(0,a.createElement)(QC,{key:t,height:"50px"}))):e.length>0?(0,a.createElement)(lU,null,(0,a.createElement)(lU.Head,null,(0,a.createElement)(lU.HeadCell,null,(0,Yf.__)("Scheduled Templates","woo-cart-abandonment-recovery")),(0,a.createElement)(lU.HeadCell,null,(0,Yf.__)("Email Subject","woo-cart-abandonment-recovery")),(0,a.createElement)(lU.HeadCell,null,(0,Yf.__)("Coupon","woo-cart-abandonment-recovery")),(0,a.createElement)(lU.HeadCell,null,(0,Yf.__)("Status","woo-cart-abandonment-recovery")),(0,a.createElement)(lU.HeadCell,null,(0,Yf.__)("Scheduled At","woo-cart-abandonment-recovery"))),(0,a.createElement)(lU.Body,null,e.map((e,t)=>(0,a.createElement)(lU.Row,{key:t},(0,a.createElement)(lU.Cell,null,e.template_name),(0,a.createElement)(lU.Cell,null,e.email_subject),(0,a.createElement)(lU.Cell,null,e.coupon_code?e.coupon_code:"-"),(0,a.createElement)(lU.Cell,null,(e=>{const t={"-1":{label:(0,Yf.__)("Not Sent","woo-cart-abandonment-recovery"),variant:"red"},"-2":{label:(0,Yf.__)("Not Sent","woo-cart-abandonment-recovery"),variant:"red"},0:{label:(0,Yf.__)("Scheduled","woo-cart-abandonment-recovery"),variant:"yellow"},1:{label:(0,Yf.__)("Sent","woo-cart-abandonment-recovery"),variant:"green"}};return"-2"===String(e)?(0,a.createElement)(th,{content:(0,Yf.__)("Rule Condition Failed","woo-cart-abandonment-recovery"),position:"top"},(0,a.createElement)(Of,{icon:(0,a.createElement)(oB,{className:""}),label:t[e].label,size:"sm",type:"pill",variant:t[e].variant,className:"w-fit cursor-pointer"})):(0,a.createElement)(Of,{label:t[e].label,size:"sm",type:"pill",variant:t[e].variant,className:"w-fit cursor-default"})})(e.email_sent)),(0,a.createElement)(lU.Cell,null,e.scheduled_time))))):(0,a.createElement)(MU,{icon:(0,a.createElement)(vU,{className:"h-12 w-12 text-yellow-500"}),title:(0,Yf.__)("No data available","woo-cart-abandonment-recovery"),description:(0,Yf.__)("","woo-cart-abandonment-recovery")})),iB=({orderDetails:e,isLoading:t})=>(0,a.createElement)(UC,{className:"flex flex-col gap-4"},(0,a.createElement)(Qh,{size:"sm",tag:"h2",title:"User Order Details",className:"[&_h2]:text-gray-900"}),t?(0,a.createElement)("div",{className:"flex flex-col gap-4"},(0,a.createElement)(QC,{height:"40px"}),[...Array(3)].map((e,t)=>(0,a.createElement)("div",{key:t,className:"flex gap-4"},(0,a.createElement)(QC,{width:"60px",height:"60px",borderRadius:"8px"}),(0,a.createElement)("div",{className:"flex-1 flex flex-col gap-2"},(0,a.createElement)(QC,{height:"20px",width:"70%"}),(0,a.createElement)(QC,{height:"16px",width:"40%"})))),(0,a.createElement)("div",{className:"mt-2"},(0,a.createElement)(QC,{height:"80px"}))):(0,a.createElement)(lU,null,(0,a.createElement)(lU.Head,null,(0,a.createElement)(lU.HeadCell,null,"Items"),(0,a.createElement)(lU.HeadCell,null,"Quantity"),(0,a.createElement)(lU.HeadCell,null,"Price"),(0,a.createElement)(lU.HeadCell,null,"Subtotal")),(0,a.createElement)(lU.Body,null,e.items.map((e,t)=>(0,a.createElement)(lU.Row,{key:t},(0,a.createElement)(lU.Cell,null,(0,a.createElement)("div",{className:"flex items-center gap-4 text-gray-900"},(0,a.createElement)("img",{src:e.imageUrl,alt:"",className:"w-12 h-12 object-cover rounded-md border border-solid border-gray-200"}),lg(e.name))),(0,a.createElement)(lU.Cell,{className:"font-medium"},e.quantity),(0,a.createElement)(lU.Cell,{className:"font-medium"},e.price),(0,a.createElement)(lU.Cell,{className:"font-medium"},e.subtotal))),(0,a.createElement)(lU.Row,{className:"bg-background-secondary"},(0,a.createElement)(lU.Cell,null),(0,a.createElement)(lU.Cell,null),(0,a.createElement)(lU.Cell,null,(0,a.createElement)("div",{className:"flex flex-col gap-3"},(0,a.createElement)("span",{className:"text-gray-900 font-medium"},"Discount:"),(0,a.createElement)("span",{className:"text-gray-900 font-medium"},"Others:"),(0,a.createElement)("span",{className:"text-gray-900 font-medium"},"Shipping:"),(0,a.createElement)("span",{className:"text-gray-900 font-medium"},"Cart Total:"))),(0,a.createElement)(lU.Cell,null,(0,a.createElement)("div",{className:"flex flex-col gap-3"},(0,a.createElement)("span",{className:"font-medium"},e.summary.discount),(0,a.createElement)("span",{className:"font-medium"},e.summary.others),(0,a.createElement)("span",{className:"font-medium"},e.summary.shipping),(0,a.createElement)("span",{className:"font-medium"},e.summary.cartTotal))))))),sB=({userDetails:e,email:t,orderStatus:n,checkoutLink:r,unsubscribed:o,isLoading:i})=>(0,a.createElement)(UC,{className:"flex flex-col gap-4"},(0,a.createElement)("div",{className:"flex items-center justify-between"},(0,a.createElement)(Qh,{size:"sm",tag:"h2",title:(0,Yf.__)("User Address Details","woo-cart-abandonment-recovery"),className:"[&_h2]:text-gray-900"}),!i&&(0,a.createElement)("div",{className:"flex gap-2"},(0,a.createElement)(wU,{status:n}),"1"===o&&(0,a.createElement)(Of,{label:"Unsubscribed",size:"sm",type:"pill",variant:"red",className:"w-fit"}))),i?(0,a.createElement)("div",{className:"flex flex-col md:flex-row gap-8"},(0,a.createElement)("div",{className:"flex-1 flex flex-col gap-3"},(0,a.createElement)(QC,{height:"24px",width:"150px"}),[...Array(8)].map((e,t)=>(0,a.createElement)(QC,{key:t,height:"20px",width:70+30*Math.random()+"%"}))),(0,a.createElement)("div",{className:"flex-1 flex flex-col gap-3"},(0,a.createElement)(QC,{height:"24px",width:"150px"}),[...Array(5)].map((e,t)=>(0,a.createElement)(QC,{key:t,height:"20px",width:70+30*Math.random()+"%"})),(0,a.createElement)("div",{className:"mt-2"},(0,a.createElement)(QC,{height:"24px",width:"200px"})))):(0,a.createElement)("div",{className:"flex flex-col md:flex-row gap-8"},(0,a.createElement)("div",{className:"flex-1 flex flex-col gap-3"},(0,a.createElement)(Qh,{size:"xs",tag:"h3",title:(0,Yf.__)("Billing Address:","woo-cart-abandonment-recovery"),className:"[&_h2]:text-gray-900"}),(0,a.createElement)("div",{className:"flex flex-col gap-2"},(0,a.createElement)("p",{className:"m-0 text-gray-500"},(0,a.createElement)("span",{className:"text-gray-900"},(0,Yf.__)("Full Name:","woo-cart-abandonment-recovery"))," ",`${e.wcf_first_name} ${e.wcf_last_name}`),(0,a.createElement)("p",{className:"m-0 text-gray-500"},(0,a.createElement)("span",{className:"text-gray-900"},(0,Yf.__)("Contact Email:","woo-cart-abandonment-recovery"))," ",t),(0,a.createElement)("p",{className:"m-0 text-gray-500"},(0,a.createElement)("span",{className:"text-gray-900"},(0,Yf.__)("Contact Number:","woo-cart-abandonment-recovery"))," ",e.wcf_phone_number),(0,a.createElement)("p",{className:"m-0 text-gray-500"},(0,a.createElement)("span",{className:"text-gray-900"},(0,Yf.__)("Street Address 1:","woo-cart-abandonment-recovery"))," ",e.wcf_billing_address_1),(0,a.createElement)("p",{className:"m-0 text-gray-500"},(0,a.createElement)("span",{className:"text-gray-900"},(0,Yf.__)("Street Address 2:","woo-cart-abandonment-recovery"))," ",e.wcf_billing_address_2),(0,a.createElement)("p",{className:"m-0 text-gray-500"},(0,a.createElement)("span",{className:"text-gray-900"},(0,Yf.__)("Country, City:","woo-cart-abandonment-recovery"))," ",e.wcf_location),(0,a.createElement)("p",{className:"m-0 text-gray-500"},(0,a.createElement)("span",{className:"text-gray-900"},(0,Yf.__)("State:","woo-cart-abandonment-recovery"))," ",e.wcf_billing_state),(0,a.createElement)("p",{className:"m-0 text-gray-500"},(0,a.createElement)("span",{className:"text-gray-900"},(0,Yf.__)("Zip Code:","woo-cart-abandonment-recovery"))," ",e.wcf_billing_postcode))),(0,a.createElement)("div",{className:"flex-1 flex flex-col gap-3"},(0,a.createElement)(Qh,{size:"xs",tag:"h3",title:(0,Yf.__)("Shipping Address:","woo-cart-abandonment-recovery"),className:"[&_h2]:text-gray-900"}),(0,a.createElement)("div",{className:"flex flex-col gap-2"},(0,a.createElement)("p",{className:"m-0 text-gray-500"},(0,a.createElement)("span",{className:"text-gray-900"},(0,Yf.__)("Street Address 1:","woo-cart-abandonment-recovery"))," ",e.wcf_shipping_address_1),(0,a.createElement)("p",{className:"m-0 text-gray-500"},(0,a.createElement)("span",{className:"text-gray-900"},(0,Yf.__)("Street Address 2:","woo-cart-abandonment-recovery"))," ",e.wcf_shipping_address_2),(0,a.createElement)("p",{className:"m-0 text-gray-500"},(0,a.createElement)("span",{className:"text-gray-900"},(0,Yf.__)("Country, City:","woo-cart-abandonment-recovery"))," ",e.wcf_shipping_city+", "+e.wcf_shipping_country),(0,a.createElement)("p",{className:"m-0 text-gray-500"},(0,a.createElement)("span",{className:"text-gray-900"},(0,Yf.__)("State:","woo-cart-abandonment-recovery"))," ",e.wcf_shipping_state),(0,a.createElement)("p",{className:"m-0 text-gray-500"},(0,a.createElement)("span",{className:"text-gray-900"},(0,Yf.__)("Zip Code:","woo-cart-abandonment-recovery"))," ",e.wcf_shipping_postcode)),(0,a.createElement)("div",{className:"flex gap-4 items-center"},(0,a.createElement)("span",{className:"text-base text-gray-900 font-medium"},(0,Yf.__)("Checkout Page:","woo-cart-abandonment-recovery")),(0,a.createElement)("a",{href:r,className:"text-xs font-semibold text-flamingo-400 no-underline border-0"},(0,Yf.__)("Link to Checkout Page","woo-cart-abandonment-recovery")))))),lB=({scheduledSms:e,isLoading:t,handleRescheduleSms:n,buttonLoading:r,disabled:o})=>{const{shouldBlockProFeatures:i}=AU(),s=i();return!t&&s?(0,a.createElement)(UC,{className:"flex flex-col gap-4"},(0,a.createElement)("div",{className:"flex items-center justify-between"},(0,a.createElement)(Qh,{size:"sm",tag:"h2",title:(0,Yf.__)("SMS Details","woo-cart-abandonment-recovery"),className:"[&_h2]:text-gray-900"}),(0,a.createElement)(dn,{className:"bg-primary-25 text-primary-600 outline-primary-300 hover:bg-primary-25 hover:outline-primary-300",size:"sm",tag:"button",type:"button",variant:"outline",disabled:!0,iconPosition:"left"},(0,Yf.__)("Reschedule SMS","woo-cart-abandonment-recovery"))),(0,a.createElement)("div",{className:"relative h-24"},(0,a.createElement)(PU,{isVisible:!0,mainTitle:"",subTitle:"",variation:"message",description:/* translators: %%1$s: Link HTML Start and %2$sof: Link HTML End. */ /* translators: %%1$s: Link HTML Start and %2$sof: Link HTML End. */
(0,Yf.__)("View all scheduled SMS follow-ups in SMS details.","woo-cart-abandonment-recovery")}))):(0,a.createElement)(UC,{className:"flex flex-col gap-4"},(0,a.createElement)("div",{className:"flex items-center justify-between"},(0,a.createElement)(Qh,{size:"sm",tag:"h2",title:(0,Yf.__)("SMS Details","woo-cart-abandonment-recovery"),className:"[&_h2]:text-gray-900"}),(0,a.createElement)(dn,{className:"bg-primary-25 text-primary-600 outline-primary-300 hover:bg-primary-25 hover:outline-primary-300",size:"sm",tag:"button",type:"button",variant:"outline",onClick:n,disabled:t||r||s||o,icon:r&&(0,a.createElement)(aQ,{className:"text-flamingo-400 p-0",icon:null,size:"sm",variant:"primary"}),iconPosition:"left"},(0,Yf.__)("Reschedule SMS","woo-cart-abandonment-recovery"))),t?(0,a.createElement)("div",{className:"flex flex-col gap-4"},(0,a.createElement)(QC,{height:"40px"}),[...Array(3)].map((e,t)=>(0,a.createElement)(QC,{key:t,height:"50px"}))):e.length>0?(0,a.createElement)(lU,null,(0,a.createElement)(lU.Head,null,(0,a.createElement)(lU.HeadCell,null,(0,Yf.__)("Scheduled Templates","woo-cart-abandonment-recovery")),(0,a.createElement)(lU.HeadCell,null,(0,Yf.__)("SMS Body","woo-cart-abandonment-recovery")),(0,a.createElement)(lU.HeadCell,null,(0,Yf.__)("Coupon","woo-cart-abandonment-recovery")),(0,a.createElement)(lU.HeadCell,null,(0,Yf.__)("Status","woo-cart-abandonment-recovery")),(0,a.createElement)(lU.HeadCell,null,(0,Yf.__)("Scheduled At","woo-cart-abandonment-recovery"))),(0,a.createElement)(lU.Body,null,e.map((e,t)=>(0,a.createElement)(lU.Row,{key:t},(0,a.createElement)(lU.Cell,null,e.template_name),(0,a.createElement)(lU.Cell,{className:"max-w-48"},(0,a.createElement)("div",{className:"truncate"},e.sms_body)),(0,a.createElement)(lU.Cell,null,e.coupon_code?e.coupon_code:"-"),(0,a.createElement)(lU.Cell,null,(e=>{const t={"-1":{label:(0,Yf.__)("Not Sent","woo-cart-abandonment-recovery"),variant:"red"},"-2":{label:(0,Yf.__)("Not Sent","woo-cart-abandonment-recovery"),variant:"red"},0:{label:(0,Yf.__)("Scheduled","woo-cart-abandonment-recovery"),variant:"yellow"},1:{label:(0,Yf.__)("Sent","woo-cart-abandonment-recovery"),variant:"green"}};return"-2"===String(e)?(0,a.createElement)(th,{content:(0,Yf.__)("Rule Condition Failed","woo-cart-abandonment-recovery"),position:"top"},(0,a.createElement)(Of,{icon:(0,a.createElement)(oB,{className:""}),label:t[e].label,size:"sm",type:"pill",variant:t[e].variant,className:"w-fit cursor-pointer"})):(0,a.createElement)(Of,{label:t[e].label,size:"sm",type:"pill",variant:t[e].variant,className:"w-fit cursor-default"})})(e.sms_sent)),(0,a.createElement)(lU.Cell,null,e.scheduled_time))))):(0,a.createElement)(MU,{icon:(0,a.createElement)(vU,{className:"h-12 w-12 text-yellow-500"}),title:(0,Yf.__)("No data available","woo-cart-abandonment-recovery"),description:(0,Yf.__)("","woo-cart-abandonment-recovery")}))},cB=({scheduledMessages:e,isLoading:t,handleRescheduleMessage:n,buttonLoading:r,disabled:o})=>{const{shouldBlockProFeatures:i}=AU(),s=i();return!t&&s?(0,a.createElement)(UC,{className:"flex flex-col gap-4"},(0,a.createElement)("div",{className:"flex items-center justify-between"},(0,a.createElement)(Qh,{size:"sm",tag:"h2",title:(0,Yf.__)("WhatsApp Details","woo-cart-abandonment-recovery"),className:"[&_h2]:text-gray-900"}),(0,a.createElement)(dn,{className:"bg-primary-25 text-primary-600 outline-primary-300 hover:bg-primary-25 hover:outline-primary-300",size:"sm",tag:"button",type:"button",variant:"outline",disabled:!0,iconPosition:"left"},(0,Yf.__)("Reschedule Messages","woo-cart-abandonment-recovery"))),(0,a.createElement)("div",{className:"relative h-24"},(0,a.createElement)(PU,{isVisible:!0,mainTitle:"",subTitle:"",variation:"message",description:/* translators: %%1$s: Link HTML Start and %2$sof: Link HTML End. */ /* translators: %%1$s: Link HTML Start and %2$sof: Link HTML End. */
(0,Yf.__)("View all scheduled WhatsApp follow-ups in WhatsApp details.","woo-cart-abandonment-recovery")}))):(0,a.createElement)(UC,{className:"flex flex-col gap-4"},(0,a.createElement)("div",{className:"flex items-center justify-between"},(0,a.createElement)(Qh,{size:"sm",tag:"h2",title:(0,Yf.__)("WhatsApp Details","woo-cart-abandonment-recovery"),className:"[&_h2]:text-gray-900"}),(0,a.createElement)(dn,{className:"bg-primary-25 text-primary-600 outline-primary-300 hover:bg-primary-25 hover:outline-primary-300",size:"sm",tag:"button",type:"button",variant:"outline",onClick:n,disabled:t||r||s||o,icon:r&&(0,a.createElement)(aQ,{className:"text-flamingo-400 p-0",icon:null,size:"sm",variant:"primary"}),iconPosition:"left"},(0,Yf.__)("Reschedule Messages","woo-cart-abandonment-recovery"))),t?(0,a.createElement)("div",{className:"flex flex-col gap-4"},(0,a.createElement)(QC,{height:"40px"}),[...Array(3)].map((e,t)=>(0,a.createElement)(QC,{key:t,height:"50px"}))):e.length>0?(0,a.createElement)(lU,null,(0,a.createElement)(lU.Head,null,(0,a.createElement)(lU.HeadCell,null,(0,Yf.__)("Scheduled Templates","woo-cart-abandonment-recovery")),(0,a.createElement)(lU.HeadCell,null,(0,Yf.__)("WhatsApp Template","woo-cart-abandonment-recovery")),(0,a.createElement)(lU.HeadCell,null,(0,Yf.__)("Coupon","woo-cart-abandonment-recovery")),(0,a.createElement)(lU.HeadCell,null,(0,Yf.__)("Status","woo-cart-abandonment-recovery")),(0,a.createElement)(lU.HeadCell,null,(0,Yf.__)("Scheduled At","woo-cart-abandonment-recovery"))),(0,a.createElement)(lU.Body,null,e.map((e,t)=>(0,a.createElement)(lU.Row,{key:t},(0,a.createElement)(lU.Cell,null,e.template_name),(0,a.createElement)(lU.Cell,{className:"max-w-48"},(0,a.createElement)("div",{className:"truncate"},e.whatsapp_template)),(0,a.createElement)(lU.Cell,null,e.coupon_code?e.coupon_code:"-"),(0,a.createElement)(lU.Cell,null,(e=>{const t={"-1":{label:(0,Yf.__)("Not Sent","woo-cart-abandonment-recovery"),variant:"red"},"-2":{label:(0,Yf.__)("Not Sent","woo-cart-abandonment-recovery"),variant:"red"},0:{label:(0,Yf.__)("Scheduled","woo-cart-abandonment-recovery"),variant:"yellow"},1:{label:(0,Yf.__)("Sent","woo-cart-abandonment-recovery"),variant:"green"}};return"-2"===String(e)?(0,a.createElement)(th,{content:(0,Yf.__)("Rule Condition Failed","woo-cart-abandonment-recovery"),position:"top"},(0,a.createElement)(Of,{icon:(0,a.createElement)(oB,{className:""}),label:t[e].label,size:"sm",type:"pill",variant:t[e].variant,className:"w-fit cursor-pointer"})):(0,a.createElement)(Of,{label:t[e].label,size:"sm",type:"pill",variant:t[e].variant,className:"w-fit cursor-default"})})(e.message_sent)),(0,a.createElement)(lU.Cell,null,e.scheduled_time))))):(0,a.createElement)(MU,{icon:(0,a.createElement)(vU,{className:"h-12 w-12 text-yellow-500"}),title:(0,Yf.__)("No data available","woo-cart-abandonment-recovery"),description:(0,Yf.__)("","woo-cart-abandonment-recovery")}))},uB=()=>{const[e,t]=(0,a.useState)(!0),[n,r]=(0,a.useState)([]),[o,i]=(0,a.useState)([]),[s,l]=(0,a.useState)([]),[c,u]=(0,a.useState)({}),[d,m]=(0,a.useState)({}),[p,f]=(0,a.useState)(""),[h,g]=(0,a.useState)(""),[y,v]=(0,a.useState)(""),[b,M]=(0,a.useState)(""),[x,w]=(0,a.useState)(""),[N,j]=(0,a.useState)(!1),[D,E]=(0,a.useState)(!1),[T,O]=(0,a.useState)(!1),I=se(),A=new URLSearchParams(oe().search).get("id");return(0,a.useEffect)(()=>{A&&(async()=>{t(!0),await ag("/wcar/api/admin/detailed-report/",{id:A},"POST",e=>{r(e.scheduled_emails||[]),l(e.scheduled_sms||[]),i(e.scheduled_whatsapp_messages||[]),u(e.user_details||{}),m(e.order_details||{}),f(e.details?.order_status||""),g(e.details?.email||""),v(e.checkout_link||""),M(e.details?.session_id||""),w(e.details?.unsubscribed||""),t(!1)},()=>{t(!1)})})()},[A]),(0,a.createElement)("div",{className:"p-4 md:p-8"},(0,a.createElement)(UC,{className:"p-4 flex flex-col gap-5"},(0,a.createElement)(dn,{className:"w-fit bg-primary-25 text-primary-600 outline-primary-300 hover:bg-primary-25 hover:outline-primary-300",size:"sm",tag:"button",type:"button",variant:"outline",icon:(0,a.createElement)(nB,{className:"h-5 w-5"}),iconPosition:"left",onClick:()=>{I({search:"?page=woo-cart-abandonment-recovery&path=follow-up"})}},"Back to Reports"),(0,a.createElement)("div",{className:"p-1 rounded-lg flex flex-col gap-1 bg-light-background"},(0,a.createElement)(aB,{scheduledEmails:n,handleRescheduleEmails:()=>{if(!b)return;j(!0);const e=cart_abandonment_admin?.ajax_url,t=cart_abandonment_admin?.reschedule_emails_nonce,n=new window.FormData;n.append("action","wcar_reschedule_emails"),n.append("session_id",b),n.append("security",t),ag(e,n,"POST",e=>{e.success?(rt.success((0,Yf.__)("Email Scheduled Successfully","woo-cart-abandonment-recovery")),r(e.data?.scheduled_emails||[])):rt.error((0,Yf.__)("Email Scheduling failed","woo-cart-abandonment-recovery"),{description:e.data?.message||""}),j(!1)},e=>{rt.error((0,Yf.__)("Email Scheduling failed","woo-cart-abandonment-recovery"),{description:e.data?.message||""}),j(!1)},!0,!1)},isLoading:e,buttonLoading:N,disabled:"Blacklisted"===p}),(0,a.createElement)(lB,{scheduledSms:s,handleRescheduleSms:()=>{if(!b)return;E(!0);const e=cart_abandonment_admin?.ajax_url,t=cart_abandonment_admin?.reschedule_sms_nonce,n=new window.FormData;n.append("action","wcar_pro_reschedule_sms"),n.append("session_id",b),n.append("security",t),ag(e,n,"POST",e=>{e.success?(rt.success((0,Yf.__)("SMS Scheduled Successfully","woo-cart-abandonment-recovery")),l(e.data?.scheduled_sms||[])):rt.error((0,Yf.__)("SMS Scheduling failed","woo-cart-abandonment-recovery"),{description:e.data?.message||""}),E(!1)},e=>{rt.error((0,Yf.__)("SMS Scheduling failed","woo-cart-abandonment-recovery"),{description:e.data?.message||""}),E(!1)},!0,!1)},isLoading:e,buttonLoading:D,disabled:"Blacklisted"===p}),(0,a.createElement)(cB,{scheduledMessages:o,handleRescheduleMessage:()=>{if(!b)return;O(!0);const e=cart_abandonment_admin?.ajax_url,t=cart_abandonment_admin?.reschedule_whatsapp_messages_nonce,n=new window.FormData;n.append("action","wcar_pro_reschedule_whatsapp_messages"),n.append("session_id",b),n.append("security",t),ag(e,n,"POST",e=>{e.success?(rt.success((0,Yf.__)("Messages Scheduled Successfully","woo-cart-abandonment-recovery")),i(e.data?.scheduled_messages||[])):rt.error((0,Yf.__)("Message Scheduling failed","woo-cart-abandonment-recovery"),{description:e.data?.message||""}),O(!1)},e=>{rt.error((0,Yf.__)("Message Scheduling failed","woo-cart-abandonment-recovery"),{description:e.data?.message||""}),O(!1)},!0,!1)},isLoading:e,buttonLoading:T,disabled:"Blacklisted"===p}),(0,a.createElement)(sB,{userDetails:c,email:h,orderStatus:p,checkoutLink:y,unsubscribed:x,isLoading:e}),(0,a.createElement)(iB,{orderDetails:d,isLoading:e}))))};function dB({title:e,titleId:t,...n},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L6.832 19.82a4.5 4.5 0 0 1-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 0 1 1.13-1.897L16.863 4.487Zm0 0L19.5 7.125"}))}const mB=a.forwardRef(dB);function pB({title:e,titleId:t,...n},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 17.25v3.375c0 .621-.504 1.125-1.125 1.125h-9.75a1.125 1.125 0 0 1-1.125-1.125V7.875c0-.621.504-1.125 1.125-1.125H6.75a9.06 9.06 0 0 1 1.5.124m7.5 10.376h3.375c.621 0 1.125-.504 1.125-1.125V11.25c0-4.46-3.243-8.161-7.5-8.876a9.06 9.06 0 0 0-1.5-.124H9.375c-.621 0-1.125.504-1.125 1.125v3.5m7.5 10.375H9.375a1.125 1.125 0 0 1-1.125-1.125v-9.25m12 6.625v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H9.75"}))}const fB=a.forwardRef(pB),hB={left:{open:{x:0},exit:{x:"-100%"}},right:{open:{x:0},exit:{x:"100%"}}},gB=({children:e,className:t})=>{const{open:n,position:r,handleClose:o,transitionDuration:a,getFloatingProps:i,drawerContainerRef:s,scrollLock:l,context:c,className:u,refs:d}=TB();return c&&i?(0,Ge.jsx)(Un,{children:n&&(0,Ge.jsx)(Up,{ref:s,lockScroll:l,className:en("z-50",u),children:(0,Ge.jsx)(zp,{context:c,modal:!0,...d?.reference&&{returnFocus:d.reference},children:(0,Ge.jsx)("div",{className:"fixed inset-0 overflow-hidden",children:(0,Ge.jsx)("div",{className:"relative inset-0 h-full flex items-center",children:(0,Ge.jsx)("div",{className:en("flex items-center justify-center h-full w-full",{"justify-start":"left"===r,"justify-end":"right"===r}),children:(0,Ge.jsx)(au.div,{className:en("flex flex-col w-120 h-full bg-background-primary shadow-2xl overflow-hidden z-20",t),initial:"exit",animate:"open",exit:"exit",variants:hB[r],transition:a,ref:e=>{setTimeout(()=>{d?.setFloating(e)},1e3*((a?.duration||.3)+.1))},"aria-label":"drawer",role:"dialog","aria-modal":"true",...i?.(),children:"function"==typeof e?e({close:o}):e})})})})})})}):null};gB.displayName="Drawer.Panel";const yB=({children:e,className:t,...n})=>(0,Ge.jsx)("div",{className:en("space-y-2 px-5 pt-5 pb-4",t),...n,children:e});yB.displayName="Drawer.Header";const vB=({children:e,as:t="h3",className:n,...r})=>(0,Ge.jsx)(t,{className:en("text-base font-semibold text-text-primary m-0 p-0",n),...r,children:e});vB.displayName="Drawer.Title";const bB=({children:e,as:t="p",className:n,...r})=>(0,Ge.jsx)(t,{className:en("text-sm font-normal text-text-secondary my-0 ml-0 mr-1 p-0",n),...r,children:e});bB.displayName="Drawer.Description";const MB=({children:e,className:t,...n})=>(0,Ge.jsx)("div",{className:en("px-5 pb-4 pt-2 flex flex-col flex-1 overflow-y-auto overflow-x-hidden",t),...n,children:e});MB.displayName="Drawer.Body";const xB=({children:e,className:t})=>{const{design:n,handleClose:r}=TB();return(0,Ge.jsx)("div",{className:en("px-5 py-4 flex justify-end gap-3 mt-auto",{"bg-background-secondary":"footer-divided"===n,"border-t border-b-0 border-x-0 border-solid border-border-subtle":"footer-bordered"===n},t),children:e?"function"==typeof e?e({close:r}):e:null})};xB.displayName="Drawer.Footer";const wB=({className:e,...t})=>(0,Ge.jsx)("button",{className:en("bg-transparent inline-flex justify-center items-center border-0 p-1 m-0 cursor-pointer focus:outline-none outline-none shadow-none",e),"aria-label":"Close drawer",...t,children:(0,Ge.jsx)(et,{className:"size-4 text-text-primary shrink-0"})}),NB=({children:e,as:t=a.Fragment,...n})=>{const{handleClose:r}=TB();return e?t===a.Fragment?"function"==typeof e?e({close:r}):(0,a.isValidElement)(e)?(0,a.cloneElement)(e,{onClick:r}):(0,Ge.jsx)(wB,{onClick:r,...n}):(0,Ge.jsx)(t,{...n,onClick:r,children:e}):(0,Ge.jsx)(wB,{onClick:r,...n})};NB.displayName="Drawer.CloseButton";const jB={open:{opacity:1},exit:{opacity:0}},DB=({className:e,...t})=>{const{open:n,drawerContainerRef:r,transitionDuration:o}=TB(),[i,s]=(0,a.useState)(null);(0,a.useEffect)(()=>{r?.current&&s(r.current)},[n,r]);const l=(0,Ge.jsx)(Un,{mode:"wait",children:n&&(0,a.createElement)(au.div,{className:en("fixed inset-0 -z-10 bg-background-inverse/90",e),...t,initial:"exit",animate:"open",exit:"exit",variants:jB,transition:o,key:"backdrop"})});return i?(0,Nn.createPortal)(l,i):l};DB.displayName="Drawer.Backdrop";const EB=(0,a.createContext)({}),TB=()=>(0,a.useContext)(EB),OB=({open:e,setOpen:t,children:n,trigger:r,className:o,exitOnClickOutside:i=!1,exitOnEsc:s=!0,design:l="simple",position:c="right",transitionDuration:u=.2,scrollLock:d=!0})=>{const m=void 0!==e&&void 0!==t,[p,f]=(0,a.useState)(!1),h=(0,a.useRef)(null),g=(0,a.useMemo)(()=>m?e:p,[e,p,m]),y=(0,a.useMemo)(()=>m?t:f,[t,f,m]),v=()=>{g||y(!0)},{refs:b,context:M}=$p({open:g,onOpenChange:y,transform:!1}),x=Vp(M,{enabled:s||i,escapeKey:s,outsidePress:e=>!!i&&!e?.target?.closest("ul.fui-toast-container")}),w=of(M,{role:"dialog"}),N=Yp(M),{getFloatingProps:j}=qp([x,w,N]),D=(0,a.useCallback)(()=>(0,a.isValidElement)(r)?(0,a.cloneElement)(r,{onClick:tn(v,r.props.onClick),ref:b.setReference,"aria-haspopup":"dialog","aria-expanded":g}):"function"==typeof r?r({onClick:v}):null,[r,v,b.setReference]);return(0,Ge.jsxs)(Ge.Fragment,{children:[D(),(0,Ge.jsx)(EB.Provider,{value:{open:g,setOpen:y,handleClose:()=>{g&&y(!1)},design:l,position:c,drawerContainerRef:h,transitionDuration:{duration:u},getFloatingProps:j,scrollLock:d,context:M,className:o,refs:b},children:n})]})};OB.displayName="Drawer",OB.Panel=gB,OB.Header=yB,OB.Title=vB,OB.Description=bB,OB.Body=MB,OB.CloseButton=NB,OB.Footer=xB,OB.Backdrop=DB,OB.Portal=({children:e,...t})=>(0,Ge.jsx)(Tp,{...t,children:e});const IB=({formState:e,handleChange:t,errors:n})=>{const r=cart_abandonment_admin?.settings_fields?.email_fields,o=new DY;return(0,a.createElement)("div",{className:"p-1 flex flex-col gap-1 bg-light-background rounded-lg"},r&&Object.entries(r)?.sort((e,t)=>e[1]?.priority-t[1]?.priority)?.map(([r,i])=>o.isActiveControl(i,e)?(0,a.createElement)("div",{key:r,className:"px-4 rounded-md bg-white shadow-sm"},(0,a.createElement)(jY,{data:i,value:["time","test_email"].includes(i?.type)?e:e[r]||"",isActive:!0,handleChange:t,errors:n,autoSave:!1})):null))},AB=({open:e,setOpen:t,template:n,onSave:r})=>{const{canAccessProFeatures:o}=AU(),[i,s]=(0,a.useState)({template_name:"",email_subject:"",email_body:'<p>Hi {{customer.firstname}}!</p>\n\t\t\t<p>We\'re having trouble processing your recent purchase. Would you mind completing it?</p>\n\t\t\t<p>Here\'s a link to continue where you left off: </p>\n\t\t\t<p><a href="{{cart.checkout_url}}" target="_blank" rel="noopener"> Continue Your Purchase Now </a></p>\n\t\t\t<p>Kindly,<br>\n\t\t\t{{admin.firstname}}<br>\n\t\t\t{{admin.company}}<br>\n\t\t\t{{cart.unsubscribe}}</p>',email_frequency:1,email_frequency_unit:"MINUTE",is_activated:!1,override_global_coupon:!1,discount_type:"percent",coupon_amount:"",coupon_expiry_date:10,coupon_expiry_unit:"days",use_woo_email_style:!1,auto_coupon:!1,free_shipping_coupon:!1,individual_use_only:!1,modify_product_table:!1,product_image_size:"medium",show_prices_with_tax:!1,visible_columns:["image","name","quantity","price","subtotal"],admin_email_copy_status:!1,admin_email_copy_type:"bcc",admin_email_copy_address:"",enable_email_rule_engine:!1,email_rule_engine:[],exclude_product_ids:[]}),[l,c]=(0,a.useState)(!1),[u,d]=(0,a.useState)(!0),[m,p]=(0,a.useState)({});(0,a.useEffect)(()=>{if(d(!0),n){const e=["image","name","quantity","price","subtotal"];let t=e;if(Array.isArray(n.visible_columns))t=n.visible_columns.length?n.visible_columns:e;else if("string"==typeof n.visible_columns){const r=n.visible_columns.split(",").filter(Boolean);t=r.length?r:e}s({...n,visible_columns:t})}else s({template_name:"",email_subject:"",email_body:'<p>Hi {{customer.firstname}}!</p>\n\t\t\t\t\t<p>We\'re having trouble processing your recent purchase. Would you mind completing it?</p>\n\t\t\t\t\t<p>Here\'s a link to continue where you left off: </p>\n\t\t\t\t\t<p><a href="{{cart.checkout_url}}" target="_blank" rel="noopener"> Continue Your Purchase Now </a></p>\n\t\t\t\t\t<p>Kindly,<br>\n\t\t\t\t\t{{admin.firstname}}<br>\n\t\t\t\t\t{{admin.company}}<br>\n\t\t\t\t\t{{cart.unsubscribe}}</p>',email_frequency:10,email_frequency_unit:"MINUTE",is_activated:!1,override_global_coupon:!1,discount_type:"percent",coupon_amount:"",coupon_expiry_date:1,coupon_expiry_unit:"days",use_woo_email_style:!1,auto_coupon:!1,free_shipping_coupon:!1,individual_use_only:!1,modify_product_table:!1,product_image_size:"medium",show_prices_with_tax:!1,visible_columns:["image","name","quantity","price","subtotal"],admin_email_copy_status:!1,admin_email_copy_type:"bcc",admin_email_copy_address:"",enable_email_rule_engine:!1,email_rule_engine:[],exclude_product_ids:[]});p({}),d(!1)},[n,e]);const f=e=>"string"==typeof e&&""===e.trim()||Array.isArray(e)&&0===e.length,h=()=>{if(!(()=>{const e={};if(i.template_name.trim()||(e.template_name=(0,Yf.__)("Template name is required","woo-cart-abandonment-recovery")),i.email_subject.trim()||(e.email_subject=(0,Yf.__)("Email subject is required","woo-cart-abandonment-recovery")),i.email_body.trim()||(e.email_body=(0,Yf.__)("Email body is required","woo-cart-abandonment-recovery")),i.email_frequency<1&&(e.email_frequency=(0,Yf.__)("Time should be minimum 1 min.","woo-cart-abandonment-recovery")),o()&&!["","0",!1].includes(i?.enable_email_rule_engine)){let t=i.email_rule_engine||[];if("string"==typeof t)try{t=JSON.parse(t)}catch(t){return e.email_rule_engine=(0,Yf.__)("Invalid JSON in rule engine","woo-cart-abandonment-recovery"),!1}(0===t.length||t.some(e=>e.rules&&e.rules.some(e=>f(e.condition)||f(e.value)||f(e.operator))))&&(e.email_rule_engine=(0,Yf.__)("Missing fields in rule: condition, operator, or value.","woo-cart-abandonment-recovery"))}return p(e),0===Object.keys(e).length||(rt.error("Error!",{description:lg(Object.values(e).join("<br>"))}),!1)})())return;c(!0);const e=new window.FormData;e.append("wcf_template_name",i.template_name),e.append("wcf_email_subject",i.email_subject),e.append("wcf_email_body",i.email_body),e.append("wcf_email_frequency",i.email_frequency),e.append("wcf_email_frequency_unit",i.email_frequency_unit),e.append("wcf_activate_email_template",i.is_activated?"1":""),e.append("wcf_override_global_coupon",i.override_global_coupon?"1":""),e.append("wcf_discount_type",i.discount_type),e.append("wcf_coupon_amount",i.coupon_amount),e.append("wcf_coupon_expiry_date",i.coupon_expiry_date),e.append("wcf_coupon_expiry_unit",i.coupon_expiry_unit),e.append("wcf_exclude_product_ids",i.exclude_product_ids),e.append("wcf_use_woo_email_style",i.use_woo_email_style?"1":""),e.append("wcf_auto_coupon",i.auto_coupon?"1":""),e.append("wcf_free_shipping_coupon",i.free_shipping_coupon?"1":""),e.append("wcf_individual_use_only",i.individual_use_only?"1":""),e.append("wcf_modify_product_table",i.modify_product_table?"1":""),e.append("wcf_product_image_size",i.product_image_size||"medium"),e.append("wcf_show_prices_with_tax",i.show_prices_with_tax?"1":""),e.append("wcf_visible_columns",Array.isArray(i.visible_columns)?i.visible_columns.join(","):i.visible_columns||""),e.append("wcf_admin_email_copy_status",i.admin_email_copy_status?"1":""),e.append("wcf_admin_email_copy_type",i.admin_email_copy_type||"bcc"),e.append("wcf_admin_email_copy_address",i.admin_email_copy_address||""),o()&&(e.append("wcf_enable_email_rule_engine",i?.enable_email_rule_engine?"1":""),e.append("wcf_email_rule_engine",JSON.stringify(i?.email_rule_engine||[]))),n?.id?(e.append("id",n.id),e.append("action","wcar_update_email_template"),e.append("security",cart_abandonment_admin?.update_email_template_nonce)):(e.append("action","wcar_save_email_template"),e.append("security",cart_abandonment_admin?.save_email_template_nonce)),ag(cart_abandonment_admin?.ajax_url||window.ajaxurl,e,"POST",e=>{e.success?(r(e.data.template),rt.success("Success!",{description:(0,Yf.__)("Template saved successfully","woo-cart-abandonment-recovery")})):rt.success("Error!",{description:e.data.message||(0,Yf.__)("Failed to save template","woo-cart-abandonment-recovery")})},e=>{rt.error("Error!",{description:e.message||(0,Yf.__)("Failed to save template","woo-cart-abandonment-recovery")})},!0).finally(()=>{c(!1)})};return(0,a.createElement)(OB,{open:e,design:"simple",exitOnEsc:!0,position:"right",scrollLock:!0,setOpen:()=>t(e=>!e),transitionDuration:.2,className:"z-[100000]"},(0,a.createElement)(OB.Panel,{className:"w-full md:w-4/5 lg:w-2/5"},(0,a.createElement)(OB.Header,{className:"flex flex-col gpa-2 z-10 bg-white"},(0,a.createElement)("div",{className:"flex items-center justify-between"},u?(0,a.createElement)(a.Fragment,null,(0,a.createElement)(QC,{height:"1rem",width:"30%"}),(0,a.createElement)("div",{className:"flex items-center gap-3"},(0,a.createElement)(QC,{height:"2rem",width:"5rem"}),(0,a.createElement)(OB.CloseButton,{as:"span"}))):(0,a.createElement)(a.Fragment,null,(0,a.createElement)(OB.Title,{className:"text-lg text-gray-900 z-10"},((e,t=60)=>e.length>t?e.slice(0,t)+"...":e)(i?.template_name?i.template_name:"New Email Template")),(0,a.createElement)("div",{className:"flex items-center gap-3"},(0,a.createElement)(dn,{className:"whitespace-nowrap hidden xs:flex",icon:(0,a.createElement)(CU,{className:"h-4 w-4","aria-label":"icon",role:"img"}),iconPosition:"left",size:"sm",tag:"button",type:"button",variant:"primary",onClick:h,disabled:l},l?"Saving...":"Save Changes"),(0,a.createElement)(OB.CloseButton,{as:"span"})))),(0,a.createElement)(dn,{className:"xs:hidden",icon:(0,a.createElement)(CU,{className:"h-4 w-4","aria-label":"icon",role:"img"}),iconPosition:"left",size:"sm",tag:"button",type:"button",variant:"primary",onClick:h,disabled:l},l?"Saving...":"Save Changes")),(0,a.createElement)(OB.Body,{className:"overflow-x-hidden"},u?(0,a.createElement)("div",{className:"space-y-4"},(0,a.createElement)(QC,{height:"2rem",className:"mb-6"}),(0,a.createElement)(QC,{height:"1.5rem",width:"50%"}),(0,a.createElement)(QC,{height:"3rem"}),(0,a.createElement)(QC,{height:"1.5rem",width:"70%"}),(0,a.createElement)(QC,{height:"8rem"}),(0,a.createElement)(QC,{height:"1.5rem",width:"60%"}),(0,a.createElement)(QC,{height:"3rem"}),(0,a.createElement)(QC,{height:"1.5rem",width:"40%"}),(0,a.createElement)(QC,{height:"3rem"})):(0,a.createElement)(a.Fragment,null,m.submit&&(0,a.createElement)("div",{className:"mb-4 rounded-md bg-red-50 p-4"},(0,a.createElement)("div",{className:"flex"},(0,a.createElement)("div",{className:"ml-3"},(0,a.createElement)("h3",{className:"text-sm font-medium text-red-800"},m.submit)))),(0,a.createElement)(IB,{formState:i,handleChange:(e,t)=>{s(n=>({...n,[e]:t})),m[e]&&p({...m,[e]:null})},errors:m,isLoading:l})))),(0,a.createElement)(OB.Backdrop,null))},kB=({currentTab:e})=>{const t=se();return(0,a.createElement)(GQ,{activeItem:e},(0,a.createElement)(GQ.Group,{onChange:({value:e})=>{t({search:"?page=woo-cart-abandonment-recovery&path=follow-up-templates&tab="+e.slug})},size:"md",variant:"rounded",width:"auto",className:"p-0 w-fit bg-white"},[{slug:"email",text:"Email"},{slug:"sms",text:"SMS"},{slug:"whatsapp",text:"WhatsApp"}].map((t,n)=>(0,a.createElement)(GQ.Tab,{key:n,slug:t.slug,text:t.text,className:`${e===t.slug&&"text-primary-600 bg-primary-25 outline outline-1 outline-primary-300 focus:outline-1"} hover:text-primary-600`}))))},SB=()=>{const[e,t]=(0,a.useState)([]),[n,r]=(0,a.useState)(""),[o,i]=(0,a.useState)(!0),[s,l]=(0,a.useState)(!1),[c,u]=(0,a.useState)(null),[d,m]=(0,a.useState)([]),[p,f]=(0,a.useState)({isOpen:!1,type:null,id:null}),[h,g]=(0,a.useState)(!1),[y,v]=(0,a.useState)({}),{shouldBlockProFeatures:b}=AU(),M=b();(0,a.useEffect)(()=>{x()},[]),(0,a.useEffect)(()=>{M&&v(e=>{const t={...e};let n=!1;return d.forEach(e=>{const r=String(e.id);t[r]||(t[r]={sent:Math.floor(100*Math.random()),open:Math.floor(100*Math.random()),click:Math.floor(100*Math.random()),conversion:Math.floor(100*Math.random()),unsub:Math.floor(100*Math.random())},n=!0)}),n?t:e})},[M,d]);const x=async()=>{try{await ag("/wcar/api/admin/followup-emails",{},"POST",e=>{m(e),i(!1)},e=>{console.error("Error fetching email templates:",e),i(!1)})}catch(e){console.error("Error in fetchEmailTemplates:",e),i(!1)}},w=(n,r)=>{t(n?[...e,r.id]:e.filter(e=>e!==r.id))},N=d.filter(e=>e.template_name.toLowerCase().includes(n.toLowerCase())),j=e=>{u(e),l(!0)},D=(e,t=60)=>e.length>t?e.slice(0,t)+"...":e;return(0,a.createElement)(a.Fragment,null,(0,a.createElement)("div",{className:"flex flex-col md:flex-row gap-4 md:gap-0 justify-between relative"},(0,a.createElement)("div",{className:"flex flex-row flex-wrap gap-4 items-center"},(0,a.createElement)(kB,{currentTab:"email"}),!o&&e.length>0&&(0,a.createElement)("div",{className:"flex gap-4 items-center border-0 border-l border-solid border-gray-200"},(0,a.createElement)(dn,{variant:"ghost",icon:(0,a.createElement)(CC,{className:"h-6 w-6 text-gray-500"}),size:"xs",className:"text-icon-secondary hover:text-icon-primary",onClick:()=>{t([])}}),(0,a.createElement)("span",{className:"text-sm font-normal text-gray-500"},e.length," ",(0,Yf.__)("Selected","woo-cart-abandonment-recovery")),(0,a.createElement)(dn,{className:"py-2 px-4 bg-red-50 text-red-600 outline-red-600 hover:bg-red-50 hover:outline-red-600",size:"sm",tag:"button",type:"button",variant:"outline",icon:(0,a.createElement)(iY,{className:"h-4 w-4"}),iconPosition:"left",onClick:()=>{e.length&&f({isOpen:!0,type:"bulk",id:null})}},(0,Yf.__)("Delete","woo-cart-abandonment-recovery")))),(0,a.createElement)("div",{className:"flex flex-col md:flex-row gap-4"},(0,a.createElement)($R,{placeholder:(0,Yf.__)("Search…","woo-cart-abandonment-recovery"),prefix:(0,a.createElement)(YY,{className:"h-6 w-6 text-gray-500"}),size:"md",type:"text","aria-label":(0,Yf.__)("Search","woo-cart-abandonment-recovery"),value:n,onChange:e=>{r(e)},className:"w-full lg:w-52",disabled:o}),(0,a.createElement)(dn,{iconPosition:"left",size:"sm",tag:"button",type:"button",variant:"outline",disabled:o,onClick:()=>{const e=new window.FormData;e.append("action","wcar_restore_email_templates"),e.append("security",cart_abandonment_admin?.restore_email_templates_nonce),ag(cart_abandonment_admin?.ajax_url||window.ajaxurl,e,"POST",e=>{e.success?(m(e.data.templates),rt.success((0,Yf.__)("Default templates restored","woo-cart-abandonment-recovery"))):rt.error((0,Yf.__)("Restore failed","woo-cart-abandonment-recovery"),{description:e.data?.message||""})},e=>{rt.error((0,Yf.__)("Restore failed","woo-cart-abandonment-recovery"),{description:e?.message||""})},!0)}},(0,Yf.__)("Restore Default Templates","woo-cart-abandonment-recovery")),(0,a.createElement)(dn,{className:"",icon:(0,a.createElement)(lY,{"aria-label":"icon",role:"img"}),iconPosition:"left",size:"sm",tag:"button",type:"button",variant:"primary",disabled:o,onClick:()=>{u(null),l(!0)}},(0,Yf.__)("Create New Template","woo-cart-abandonment-recovery")))),o?(0,a.createElement)("div",{className:"flex flex-col gap-4"},(0,a.createElement)(QC,{height:"40px"}),[...Array(5)].map((e,t)=>(0,a.createElement)(QC,{key:t,height:"50px"}))):0===d.length?(0,a.createElement)(MU,{className:"my-2",icon:(0,a.createElement)(vU,{className:"h-12 w-12 text-yellow-500"}),title:(0,Yf.__)("No Templates available","woo-cart-abandonment-recovery"),description:(0,Yf.__)("Follow Up Email Templates data will appear here after templates are created","woo-cart-abandonment-recovery")}):(0,a.createElement)(lU,{checkboxSelection:!0,className:"whitespace-nowrap sm:whitespace-normal"},(0,a.createElement)(lU.Head,{selected:e.length>0,onChangeSelection:e=>{t(e?N.map(e=>e.id):[])},indeterminate:e.length>0&&e.length<N.length},(0,a.createElement)(lU.HeadCell,null,(0,Yf.__)("Template Name","woo-cart-abandonment-recovery")),(0,a.createElement)(lU.HeadCell,{className:"hidden"},(0,Yf.__)("Email Subject","woo-cart-abandonment-recovery")),(0,a.createElement)(lU.HeadCell,null,(0,Yf.__)("Trigger After","woo-cart-abandonment-recovery")),(0,a.createElement)(lU.HeadCell,null,(0,a.createElement)("div",{className:"flex items-center justify-center gap-1.5"},(0,Yf.__)("Sent","woo-cart-abandonment-recovery"),M&&(0,a.createElement)(QU,{feature:(0,Yf.__)("PRO","woo-cart-abandonment-recovery")}))),(0,a.createElement)(lU.HeadCell,null,(0,a.createElement)("div",{className:"flex items-center justify-center gap-1.5"},(0,Yf.__)("Open Rate","woo-cart-abandonment-recovery"),M&&(0,a.createElement)(QU,{feature:(0,Yf.__)("PRO","woo-cart-abandonment-recovery")}))),(0,a.createElement)(lU.HeadCell,null,(0,a.createElement)("div",{className:"flex items-center justify-center gap-1.5"},(0,Yf.__)("Click Rate","woo-cart-abandonment-recovery"),M&&(0,a.createElement)(QU,{feature:(0,Yf.__)("PRO","woo-cart-abandonment-recovery")}))),(0,a.createElement)(lU.HeadCell,null,(0,a.createElement)("div",{className:"flex items-center justify-center gap-1.5"},(0,Yf.__)("Conversion Rate","woo-cart-abandonment-recovery"),M&&(0,a.createElement)(QU,{feature:(0,Yf.__)("PRO","woo-cart-abandonment-recovery")}))),(0,a.createElement)(lU.HeadCell,null,(0,a.createElement)("div",{className:"flex items-center justify-center gap-1.5"},(0,Yf.__)("Unsubscribed","woo-cart-abandonment-recovery"),M&&(0,a.createElement)(QU,{feature:(0,Yf.__)("PRO","woo-cart-abandonment-recovery")}))),(0,a.createElement)(lU.HeadCell,null,(0,Yf.__)("Status","woo-cart-abandonment-recovery")),(0,a.createElement)(lU.HeadCell,{className:"text-right"},(0,Yf.__)("Actions","woo-cart-abandonment-recovery"))),(0,a.createElement)(lU.Body,null,N.length>0?N.map(t=>(0,a.createElement)(lU.Row,{key:t.id,value:t,selected:e.includes(t.id),onChangeSelection:w},(0,a.createElement)(lU.Cell,null,(0,a.createElement)(th,{content:t.template_name,arrow:!0,placement:"top"},(0,a.createElement)("span",{className:"cursor-pointer hover:text-flamingo-400 focus-visible:text-flamingo-400",onClick:()=>j(t),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||j(t)},role:"button",tabIndex:0},D(t.template_name,30)))),(0,a.createElement)(lU.Cell,{className:"hidden"},(0,a.createElement)(th,{content:t.email_subject,arrow:!0,placement:"top"},(0,a.createElement)("span",null,D(t.email_subject)))),(0,a.createElement)(lU.Cell,null,((e,t)=>(t={MINUTE:"Minutes",HOUR:"Hours",DAY:"Days"}[t],`${e} ${1===parseInt(e)?t.slice(0,-1):t}`))(t.email_frequency,t.email_frequency_unit)),(0,a.createElement)(lU.Cell,{className:(M?"blur-sm select-none":"")+" text-center"},M?y[t.id]?.sent:t?.sent||"-"),(0,a.createElement)(lU.Cell,{className:(M?"blur-sm select-none":"")+" text-center"},M?`${y[t.id]?.open}%`:t?.open_rate?`${t.open_rate}%`:"-"),(0,a.createElement)(lU.Cell,{className:(M?"blur-sm select-none":"")+" text-center"},M?`${y[t.id]?.click}%`:t?.click_rate?`${t.click_rate}%`:"-"),(0,a.createElement)(lU.Cell,{className:(M?"blur-sm select-none":"")+" text-center"},M?`${y[t.id]?.conversion}%`:t?.conversion_rate?`${t.conversion_rate}%`:"-"),(0,a.createElement)(lU.Cell,{className:(M?"blur-sm select-none":"")+" text-center"},M?`${y[t.id]?.unsub}%`:t?.unsubscribe_rate?`${t.unsubscribe_rate}%`:"-"),(0,a.createElement)(lU.Cell,null,(0,a.createElement)(IR,{"aria-label":`${t.template_name} - ${"on"===t?.is_activated?"Enabled":"Disabled"}`,"aria-checked":"on"===t?.is_activated,value:"on"===t?.is_activated,name:"wcf_activate_email_template",onChange:e=>((e,t)=>{m(n=>n.map(n=>n.id===e?{...n,is_activated:!0===t?"on":""}:n));const n=new window.FormData;n.append("action","wcar_update_email_template_status"),n.append("security",cart_abandonment_admin?.update_email_template_status_nonce),n.append("id",e),n.append("state",!0===t?1:0),ag(cart_abandonment_admin?.ajax_url||window.ajaxurl,n,"POST",t=>{t.success?(m(n=>n.map(n=>n.id===e?{...n,is_activated:"1"===t.data.is_active||1===t.data.is_active?"on":""}:n)),rt.success("Success!",{description:(0,Yf.__)("Template status updated successfully","woo-cart-abandonment-recovery")})):rt.error("Error!",{description:t.data?.message||(0,Yf.__)("Failed to update status","woo-cart-abandonment-recovery")})},e=>{rt.error("Error!",{description:e?.message||(0,Yf.__)("Failed to update status","woo-cart-abandonment-recovery")})},!0)})(t.id,e),size:"md",className:"border-none moderncart-toggle-field",role:"switch"})),(0,a.createElement)(lU.Cell,null,(0,a.createElement)("div",{className:"flex items-center justify-end gap-2"},(0,a.createElement)(th,{content:(0,Yf.__)("Edit","woo-cart-abandonment-recovery"),arrow:!0,placement:"top"},(0,a.createElement)(dn,{variant:"ghost",icon:(0,a.createElement)(mB,{className:"h-6 w-6"}),size:"xs",className:"text-gray-500 hover:text-flamingo-400","aria-label":(0,Yf.__)("Edit","woo-cart-abandonment-recovery"),onClick:()=>j(t)})),(0,a.createElement)(th,{content:(0,Yf.__)("Duplicate","woo-cart-abandonment-recovery"),arrow:!0,placement:"top"},(0,a.createElement)(dn,{variant:"ghost",icon:(0,a.createElement)(fB,{className:"h-6 w-6"}),size:"xs",className:"text-gray-500 hover:text-flamingo-400","aria-label":(0,Yf.__)("Duplicate","woo-cart-abandonment-recovery"),onClick:()=>(e=>{const t=new window.FormData;t.append("action","wcar_clone_email_template"),t.append("security",cart_abandonment_admin?.clone_email_template_nonce),t.append("id",e.id),ag(cart_abandonment_admin?.ajax_url||window.ajaxurl,t,"POST",e=>{e.success?(m(t=>[...t,e.data.template]),rt.success((0,Yf.__)("Template cloned successfully","woo-cart-abandonment-recovery"))):rt.error((0,Yf.__)("Clone failed","woo-cart-abandonment-recovery"),{description:e.data?.message||""})},e=>{rt.error((0,Yf.__)("Clone failed","woo-cart-abandonment-recovery"),{description:e?.message||""})},!0)})(t)})),(0,a.createElement)(th,{content:(0,Yf.__)("Delete","woo-cart-abandonment-recovery"),arrow:!0,placement:"top"},(0,a.createElement)(dn,{variant:"ghost",icon:(0,a.createElement)(iY,{className:"h-6 w-6"}),size:"xs",className:"text-gray-500 hover:text-red-600","aria-label":(0,Yf.__)("Delete","woo-cart-abandonment-recovery"),onClick:()=>f({isOpen:!0,type:"single",id:t.id})})))))):(0,a.createElement)("tr",null,(0,a.createElement)("td",{colSpan:"9",className:"p-4 w-full text-center"},(0,Yf.__)("No matching data available","woo-cart-abandonment-recovery"))))),(0,a.createElement)(AB,{open:s,setOpen:l,template:c,onSave:e=>{const t=!d.some(t=>t.id===e.id);m(n=>t?[...n,e]:n.map(t=>t.id===e.id?e:t)),t&&(l(!1),u(null))}}),(0,a.createElement)(wY,{isOpen:p.isOpen,onClose:()=>f({isOpen:!1,type:null,id:null}),onConfirm:()=>{"bulk"===p.type?(()=>{g(!0);const n=cart_abandonment_admin?.ajax_url||window.ajaxurl,r=cart_abandonment_admin?.delete_email_template_nonce,o=new window.FormData;o.append("action","wcar_delete_email_template"),e.forEach(e=>o.append("ids[]",e)),o.append("security",r),ag(n,o,"POST",n=>{if(n.success){const t=(n.data?.ids||e).map(Number);m(e=>e.filter(e=>!t.includes(Number(e.id)))),rt.success((0,Yf.__)("Template(s) deleted","woo-cart-abandonment-recovery"))}else rt.error((0,Yf.__)("Delete failed","woo-cart-abandonment-recovery"),{description:n.data?.message||""});t([]),g(!1),f({isOpen:!1,type:null,id:null})},e=>{rt.error((0,Yf.__)("Delete failed","woo-cart-abandonment-recovery"),{description:e?.message||""}),t([]),g(!1),f({isOpen:!1,type:null,id:null})},!0)})():(()=>{g(!0);const e=cart_abandonment_admin?.ajax_url||window.ajaxurl,t=cart_abandonment_admin?.delete_email_template_nonce,n=new window.FormData;n.append("action","wcar_delete_email_template"),n.append("ids[]",p.id),n.append("security",t),ag(e,n,"POST",e=>{e.success?(m(e=>e.filter(e=>Number(e.id)!==Number(p.id))),rt.success((0,Yf.__)("Template deleted","woo-cart-abandonment-recovery"))):rt.error((0,Yf.__)("Delete failed","woo-cart-abandonment-recovery"),{description:e.data?.message||""}),g(!1),f({isOpen:!1,type:null,id:null})},e=>{rt.error((0,Yf.__)("Delete failed","woo-cart-abandonment-recovery"),{description:e?.message||""}),g(!1),f({isOpen:!1,type:null,id:null})},!0)})()},title:"bulk"===p.type?(0,Yf.__)("Delete Selected Templates","woo-cart-abandonment-recovery"):(0,Yf.__)("Delete Template","woo-cart-abandonment-recovery"),message:"bulk"===p.type?(0,Yf.sprintf)(/* translators: %s: number of selected templates */ /* translators: %s: number of selected templates */
(0,Yf.__)("Are you sure you want to delete %s selected template(s)? This action cannot be undone.","woo-cart-abandonment-recovery"),e.length):(0,Yf.__)("Are you sure you want to delete this template? This action cannot be undone.","woo-cart-abandonment-recovery"),isLoading:h}))},_B=({formState:e,handleChange:t,errors:n})=>{const r=cart_abandonment_admin?.settings_fields?.sms_fields,o=new DY;return(0,a.createElement)("div",{className:"p-1 flex flex-col gap-1 bg-light-background rounded-lg"},r&&Object.entries(r)?.sort((e,t)=>e[1]?.priority-t[1]?.priority)?.map(([r,i])=>o.isActiveControl(i,e)?(0,a.createElement)("div",{key:r,className:"px-4 rounded-md bg-white shadow-sm"},(0,a.createElement)(jY,{data:i,value:["time","test_email","test_message"].includes(i?.type)?e:e[r]||"",isActive:!0,handleChange:t,errors:n,autoSave:!1})):null))},CB=({open:e,setOpen:t,template:n,onSave:r})=>{const[o,i]=(0,a.useState)({template_name:"",sms_body:"Hi {{customer.firstname}}! You left {{cart.product.names}} in your cart. Complete your order before it’s gone: {{cart.checkout_url}}",sms_frequency:10,sms_frequency_unit:"MINUTE",is_activated:!1,override_global_coupon:!1,discount_type:"percent",coupon_amount:"",coupon_expiry_date:1,coupon_expiry_unit:"days",auto_coupon:!1,free_shipping_coupon:!1,individual_use_only:!1,exclude_product_ids:"",enable_sms_rule_engine:!1,sms_rule_engine:[]}),[s,l]=(0,a.useState)(!1),[c,u]=(0,a.useState)(!0),[d,m]=(0,a.useState)({});(0,a.useEffect)(()=>{u(!0),i(n?{...n}:{template_name:"",sms_body:"Hi {{customer.firstname}}! You left {{cart.product.names}} in your cart. Complete your order before it’s gone: {{cart.checkout_url}}",sms_frequency:10,sms_frequency_unit:"MINUTE",is_activated:!1,override_global_coupon:!1,discount_type:"percent",coupon_amount:"",coupon_expiry_date:1,coupon_expiry_unit:"days",auto_coupon:!1,free_shipping_coupon:!1,individual_use_only:!1,exclude_product_ids:"",enable_sms_rule_engine:!1,sms_rule_engine:[]}),m({}),u(!1)},[n,e]);const p=e=>"string"==typeof e&&""===e.trim()||Array.isArray(e)&&0===e.length,f=()=>{if(!(()=>{const e={};if(o.template_name.trim()||(e.template_name=(0,Yf.__)("Template name is required","woo-cart-abandonment-recovery")),o.sms_body.trim()||(e.email_body=(0,Yf.__)("SMS body is required","woo-cart-abandonment-recovery")),o.email_frequency<1&&(e.email_frequency=(0,Yf.__)("Time should be minimum 1 min.","woo-cart-abandonment-recovery")),o.sms_body.length>160&&(e.sms=(0,Yf.__)("SMS body should be less than 160 characters.","woo-cart-abandonment-recovery")),!["","0",!1].includes(o?.enable_sms_rule_engine)){let t=o.sms_rule_engine||[];if("string"==typeof t)try{t=JSON.parse(t)}catch(t){return e.sms_rule_engine=(0,Yf.__)("Invalid JSON in rule engine","woo-cart-abandonment-recovery"),!1}(0===t.length||t.some(e=>e.rules&&e.rules.some(e=>p(e.condition)||p(e.value)||p(e.operator))))&&(e.sms_rule_engine=(0,Yf.__)("Missing fields in rule: condition, operator, or value.","woo-cart-abandonment-recovery"))}return m(e),0===Object.keys(e).length||(rt.error("Error!",{description:lg(Object.values(e).join("<br>"))}),!1)})())return;l(!0);const e=new window.FormData;e.append("wcf_template_name",o.template_name),e.append("wcf_sms_body",o.sms_body),e.append("wcf_sms_frequency",o.sms_frequency),e.append("wcf_sms_frequency_unit",o.sms_frequency_unit),e.append("wcf_activate_sms_template",o.is_activated?"1":""),e.append("wcf_override_global_coupon",o.override_global_coupon?"1":""),e.append("wcf_discount_type",o.discount_type),e.append("wcf_coupon_amount",o.coupon_amount),e.append("wcf_coupon_expiry_date",o.coupon_expiry_date),e.append("wcf_coupon_expiry_unit",o.coupon_expiry_unit),e.append("wcf_exclude_product_ids",o.exclude_product_ids),e.append("wcf_auto_coupon",o.auto_coupon?"1":""),e.append("wcf_free_shipping_coupon",o.free_shipping_coupon?"1":""),e.append("wcf_individual_use_only",o.individual_use_only?"1":""),e.append("wcf_enable_sms_rule_engine",o?.enable_sms_rule_engine?"1":""),e.append("wcf_sms_rule_engine",JSON.stringify(o?.sms_rule_engine||[])),n?.id?(e.append("id",n.id),e.append("action","wcar_pro_update_sms_template"),e.append("security",cart_abandonment_admin?.update_sms_template_nonce)):(e.append("action","wcar_pro_save_sms_template"),e.append("security",cart_abandonment_admin?.save_sms_template_nonce)),ag(cart_abandonment_admin?.ajax_url||window.ajaxurl,e,"POST",e=>{e.success?(r(e.data.template),rt.success("Success!",{description:(0,Yf.__)("Template saved successfully","woo-cart-abandonment-recovery")})):rt.success("Error!",{description:e.data.message||(0,Yf.__)("Failed to save template","woo-cart-abandonment-recovery")})},e=>{rt.error("Error!",{description:e.message||(0,Yf.__)("Failed to save template","woo-cart-abandonment-recovery")})},!0).finally(()=>{l(!1)})};return(0,a.createElement)(OB,{open:e,design:"simple",exitOnEsc:!0,position:"right",scrollLock:!0,setOpen:()=>t(e=>!e),transitionDuration:.2,className:"z-[100000]"},(0,a.createElement)(OB.Panel,{className:"w-full md:w-4/5 lg:w-2/5"},(0,a.createElement)(OB.Header,{className:"flex flex-col gpa-2 z-10 bg-white"},(0,a.createElement)("div",{className:"flex items-center justify-between"},c?(0,a.createElement)(a.Fragment,null,(0,a.createElement)(QC,{height:"1rem",width:"30%"}),(0,a.createElement)("div",{className:"flex items-center gap-3"},(0,a.createElement)(QC,{height:"2rem",width:"5rem"}),(0,a.createElement)(OB.CloseButton,{as:"span"}))):(0,a.createElement)(a.Fragment,null,(0,a.createElement)(OB.Title,{className:"text-lg text-gray-900 z-10"},((e,t=60)=>e.length>t?e.slice(0,t)+"...":e)(o?.template_name?o.template_name:"New SMS Template")),(0,a.createElement)("div",{className:"flex items-center gap-3"},(0,a.createElement)(dn,{className:"whitespace-nowrap hidden xs:flex",icon:(0,a.createElement)(CU,{className:"h-4 w-4","aria-label":"icon",role:"img"}),iconPosition:"left",size:"sm",tag:"button",type:"button",variant:"primary",onClick:f,disabled:s},s?"Saving...":"Save Changes"),(0,a.createElement)(OB.CloseButton,{as:"span"})))),(0,a.createElement)(dn,{className:"xs:hidden",icon:(0,a.createElement)(CU,{className:"h-4 w-4","aria-label":"icon",role:"img"}),iconPosition:"left",size:"sm",tag:"button",type:"button",variant:"primary",onClick:f,disabled:s},s?"Saving...":"Save Changes")),(0,a.createElement)(OB.Body,{className:"overflow-x-hidden"},c?(0,a.createElement)("div",{className:"space-y-4"},(0,a.createElement)(QC,{height:"2rem",className:"mb-6"}),(0,a.createElement)(QC,{height:"1.5rem",width:"50%"}),(0,a.createElement)(QC,{height:"3rem"}),(0,a.createElement)(QC,{height:"1.5rem",width:"70%"}),(0,a.createElement)(QC,{height:"8rem"}),(0,a.createElement)(QC,{height:"1.5rem",width:"60%"}),(0,a.createElement)(QC,{height:"3rem"}),(0,a.createElement)(QC,{height:"1.5rem",width:"40%"}),(0,a.createElement)(QC,{height:"3rem"})):(0,a.createElement)(a.Fragment,null,d.submit&&(0,a.createElement)("div",{className:"mb-4 rounded-md bg-red-50 p-4"},(0,a.createElement)("div",{className:"flex"},(0,a.createElement)("div",{className:"ml-3"},(0,a.createElement)("h3",{className:"text-sm font-medium text-red-800"},d.submit)))),(0,a.createElement)(_B,{formState:o,handleChange:(e,t)=>{i(n=>({...n,[e]:t})),d[e]&&m({...d,[e]:null})},errors:d,isLoading:s})))),(0,a.createElement)(OB.Backdrop,null))},zB=()=>(0,a.createElement)("div",{className:"flex flex-col gap-4"},(0,a.createElement)("div",{className:"flex flex-col md:flex-row gap-4 md:gap-0 justify-between relative"},(0,a.createElement)(kB,{currentTab:"sms"}),(0,a.createElement)("div",{className:"flex flex-col md:flex-row gap-4"},(0,a.createElement)($R,{placeholder:(0,Yf.__)("Search…","woo-cart-abandonment-recovery"),prefix:(0,a.createElement)(YY,{className:"h-6 w-6 text-gray-500"}),size:"md",type:"text","aria-label":(0,Yf.__)("Search","woo-cart-abandonment-recovery"),className:"w-full lg:w-52",disabled:!0}),(0,a.createElement)(dn,{iconPosition:"left",size:"sm",tag:"button",type:"button",variant:"outline",disabled:!0},(0,Yf.__)("Restore Default Templates","woo-cart-abandonment-recovery")),(0,a.createElement)(dn,{className:"",icon:(0,a.createElement)(lY,{"aria-label":"icon",role:"img"}),iconPosition:"left",size:"sm",tag:"button",type:"button",variant:"primary",disabled:!0},(0,Yf.__)("Create New Template","woo-cart-abandonment-recovery")))),(0,a.createElement)("div",{className:"relative"},(0,a.createElement)(lU,{checkboxSelection:!0,className:"whitespace-nowrap sm:whitespace-normal"},(0,a.createElement)(lU.Head,null,(0,a.createElement)(lU.HeadCell,null,(0,Yf.__)("Template Name","woo-cart-abandonment-recovery")),(0,a.createElement)(lU.HeadCell,null,(0,Yf.__)("Trigger After","woo-cart-abandonment-recovery")),(0,a.createElement)(lU.HeadCell,null,(0,a.createElement)("div",{className:"flex items-center justify-center gap-1.5"},(0,Yf.__)("Sent","woo-cart-abandonment-recovery"))),(0,a.createElement)(lU.HeadCell,null,(0,a.createElement)("div",{className:"flex items-center justify-center gap-1.5"},(0,Yf.__)("Click Rate","woo-cart-abandonment-recovery"))),(0,a.createElement)(lU.HeadCell,null,(0,a.createElement)("div",{className:"flex items-center justify-center gap-1.5"},(0,Yf.__)("Conversion Rate","woo-cart-abandonment-recovery"))),(0,a.createElement)(lU.HeadCell,null,(0,a.createElement)("div",{className:"flex items-center justify-center gap-1.5"},(0,Yf.__)("Unsubscribed","woo-cart-abandonment-recovery"))),(0,a.createElement)(lU.HeadCell,null,(0,Yf.__)("Status","woo-cart-abandonment-recovery")),(0,a.createElement)(lU.HeadCell,{className:"text-right"},(0,Yf.__)("Actions","woo-cart-abandonment-recovery"))),(0,a.createElement)(lU.Body,null,[{id:"sms-1",template_name:"Welcome Back Reminder",sms_frequency:15,sms_frequency_unit:"MINUTE",sent:12e3,click_rate:18.5,conversion_rate:6.2,unsubscribe_rate:.8},{id:"sms-2",template_name:"First Follow-up",sms_frequency:2,sms_frequency_unit:"HOUR",sent:9800,click_rate:15.1,conversion_rate:5.4,unsubscribe_rate:.6},{id:"sms-3",template_name:"24h Nudge",sms_frequency:1,sms_frequency_unit:"DAY",sent:8700,click_rate:12.3,conversion_rate:4.1,unsubscribe_rate:.5},{id:"sms-4",template_name:"Last Chance Offer",sms_frequency:3,sms_frequency_unit:"DAY",sent:7600,click_rate:20.7,conversion_rate:8.9,unsubscribe_rate:1.2},{id:"sms-5",template_name:"Cart Value Upsell",sms_frequency:6,sms_frequency_unit:"HOUR",sent:6400,click_rate:17.9,conversion_rate:7.3,unsubscribe_rate:.9},{id:"sms-6",template_name:"Free Shipping Push",sms_frequency:12,sms_frequency_unit:"HOUR",sent:7100,click_rate:22.4,conversion_rate:10.1,unsubscribe_rate:1},{id:"sms-7",template_name:"Weekend Deal Teaser",sms_frequency:2,sms_frequency_unit:"DAY",sent:5800,click_rate:14.6,conversion_rate:5,unsubscribe_rate:.7},{id:"sms-8",template_name:"VIP Customer Ping",sms_frequency:30,sms_frequency_unit:"MINUTE",sent:3200,click_rate:28.9,conversion_rate:14.8,unsubscribe_rate:.3},{id:"sms-9",template_name:"Low Stock Alert",sms_frequency:45,sms_frequency_unit:"MINUTE",sent:4100,click_rate:31.2,conversion_rate:16.5,unsubscribe_rate:.4},{id:"sms-10",template_name:"Bundle Reminder",sms_frequency:4,sms_frequency_unit:"HOUR",sent:5300,click_rate:19.8,conversion_rate:9.2,unsubscribe_rate:.8},{id:"sms-11",template_name:"Seasonal Promo",sms_frequency:1,sms_frequency_unit:"DAY",sent:8900,click_rate:16.4,conversion_rate:6.7,unsubscribe_rate:1.1},{id:"sms-12",template_name:"Review Request",sms_frequency:2,sms_frequency_unit:"DAY",sent:6700,click_rate:9.5,conversion_rate:3.2,unsubscribe_rate:.6},{id:"sms-13",template_name:"Win-Back Offer",sms_frequency:5,sms_frequency_unit:"DAY",sent:4500,click_rate:13.7,conversion_rate:4.9,unsubscribe_rate:1.4}].map(e=>(0,a.createElement)(lU.Row,{key:e.id,value:e},(0,a.createElement)(lU.Cell,null,(0,a.createElement)("span",{className:"cursor-pointer hover:text-flamingo-400 focus-visible:text-flamingo-400"},e.template_name)),(0,a.createElement)(lU.Cell,null,((e,t)=>(t={MINUTE:"Minutes",HOUR:"Hours",DAY:"Days"}[t],`${e} ${1===parseInt(e)?t.slice(0,-1):t}`))(e.sms_frequency,e.sms_frequency_unit)),(0,a.createElement)(lU.Cell,{className:"text-center"},e?.sent||"-"),(0,a.createElement)(lU.Cell,{className:"text-center"},e?.click_rate?`${e.click_rate}%`:"-"),(0,a.createElement)(lU.Cell,{className:"text-center"},e?.conversion_rate?`${e.conversion_rate}%`:"-"),(0,a.createElement)(lU.Cell,{className:"text-center"},e?.unsubscribe_rate?`${e.unsubscribe_rate}%`:"-"),(0,a.createElement)(lU.Cell,null,(0,a.createElement)(IR,{value:!0,size:"md",className:"border-none moderncart-toggle-field",role:"switch"})),(0,a.createElement)(lU.Cell,null,(0,a.createElement)("div",{className:"flex items-center justify-end gap-2"},(0,a.createElement)(dn,{variant:"ghost",icon:(0,a.createElement)(mB,{className:"h-6 w-6"}),size:"xs",className:"text-gray-500 hover:text-flamingo-400","aria-label":(0,Yf.__)("Edit","woo-cart-abandonment-recovery")}),(0,a.createElement)(dn,{variant:"ghost",icon:(0,a.createElement)(fB,{className:"h-6 w-6"}),size:"xs",className:"text-gray-500 hover:text-flamingo-400","aria-label":(0,Yf.__)("Duplicate","woo-cart-abandonment-recovery")}),(0,a.createElement)(dn,{variant:"ghost",icon:(0,a.createElement)(iY,{className:"h-6 w-6"}),size:"xs",className:"text-gray-500 hover:text-red-600"}))))))),(0,a.createElement)(PU,{isVisible:!0,highlightText:(0,Yf.__)("Unlock Pro Features","woo-cart-abandonment-recovery"),mainTitle:(0,Yf.__)("Cart Abandonment Recovery Pro is Here 🔥","woo-cart-abandonment-recovery"),description:(0,Yf.__)("You've seen how emails bring shoppers back. With Pro, you'll unlock advanced tools that recover more carts, boost profits, and grow your store faster.","woo-cart-abandonment-recovery"),usps:[(0,Yf.__)("Product Reports","woo-cart-abandonment-recovery"),(0,Yf.__)("SMS + WhatsApp Followups","woo-cart-abandonment-recovery"),(0,Yf.__)("Smart Rules","woo-cart-abandonment-recovery"),(0,Yf.__)("Advanced Automations","woo-cart-abandonment-recovery"),(0,Yf.__)("And More…","woo-cart-abandonment-recovery")],footerMessage:"",backgroundBlur:!0}))),LB=()=>{const[e,t]=(0,a.useState)([]),[n,r]=(0,a.useState)(""),[o,i]=(0,a.useState)(!0),[s,l]=(0,a.useState)(!1),[c,u]=(0,a.useState)(null),[d,m]=(0,a.useState)([]),[p,f]=(0,a.useState)({isOpen:!1,type:null,id:null}),[h,g]=(0,a.useState)(!1),{shouldBlockProFeatures:y}=AU(),v=y();(0,a.useEffect)(()=>{v?i(!1):b()},[]);const b=async()=>{try{await ag("/wcar-pro/api/admin/sms-template",{},"GET",e=>{m(e),i(!1)},e=>{console.error("Error fetching sms templates:",e),i(!1)})}catch(e){console.error("Error in fetching templates:",e),i(!1)}},M=(n,r)=>{t(n?[...e,r.id]:e.filter(e=>e!==r.id))},x=d.filter(e=>e.template_name.toLowerCase().includes(n.toLowerCase())),w=e=>{u(e),l(!0)};return v?(0,a.createElement)(zB,null):(0,a.createElement)(a.Fragment,null,(0,a.createElement)("div",{className:"flex flex-col md:flex-row gap-4 md:gap-0 justify-between relative"},(0,a.createElement)("div",{className:"flex flex-row flex-wrap gap-4 items-center"},(0,a.createElement)(kB,{currentTab:"sms"}),!o&&e.length>0&&(0,a.createElement)("div",{className:"flex gap-4 items-center border-0 border-l border-solid border-gray-200"},(0,a.createElement)(dn,{variant:"ghost",icon:(0,a.createElement)(CC,{className:"h-6 w-6 text-gray-500"}),size:"xs",className:"text-icon-secondary hover:text-icon-primary",onClick:()=>{t([])}}),(0,a.createElement)("span",{className:"text-sm font-normal text-gray-500"},e.length," ",(0,Yf.__)("Selected","woo-cart-abandonment-recovery")),(0,a.createElement)(dn,{className:"py-2 px-4 bg-red-50 text-red-600 outline-red-600 hover:bg-red-50 hover:outline-red-600",size:"sm",tag:"button",type:"button",variant:"outline",icon:(0,a.createElement)(iY,{className:"h-4 w-4"}),iconPosition:"left",onClick:()=>{e.length&&f({isOpen:!0,type:"bulk",id:null})}},(0,Yf.__)("Delete","woo-cart-abandonment-recovery")))),(0,a.createElement)("div",{className:"flex flex-col md:flex-row gap-4"},(0,a.createElement)($R,{placeholder:(0,Yf.__)("Search…","woo-cart-abandonment-recovery"),prefix:(0,a.createElement)(YY,{className:"h-6 w-6 text-gray-500"}),size:"md",type:"text","aria-label":(0,Yf.__)("Search","woo-cart-abandonment-recovery"),value:n,onChange:e=>{r(e)},className:"w-full lg:w-52",disabled:o}),(0,a.createElement)(dn,{iconPosition:"left",size:"sm",tag:"button",type:"button",variant:"outline",disabled:o,onClick:()=>{const e=new window.FormData;e.append("action","wcar_pro_restore_sms_templates"),e.append("security",cart_abandonment_admin?.restore_sms_templates_nonce),ag(cart_abandonment_admin?.ajax_url||window.ajaxurl,e,"POST",e=>{e.success?(m(e.data.templates),rt.success((0,Yf.__)("Default templates restored","woo-cart-abandonment-recovery"))):rt.error((0,Yf.__)("Restore failed","woo-cart-abandonment-recovery"),{description:e.data?.message||""})},e=>{rt.error((0,Yf.__)("Restore failed","woo-cart-abandonment-recovery"),{description:e?.message||""})},!0)}},(0,Yf.__)("Restore Default Templates","woo-cart-abandonment-recovery")),(0,a.createElement)(dn,{className:"",icon:(0,a.createElement)(lY,{"aria-label":"icon",role:"img"}),iconPosition:"left",size:"sm",tag:"button",type:"button",variant:"primary",disabled:o||v,onClick:()=>{u(null),l(!0)}},(0,Yf.__)("Create New Template","woo-cart-abandonment-recovery")))),o?(0,a.createElement)("div",{className:"flex flex-col gap-4"},(0,a.createElement)(QC,{height:"40px"}),[...Array(5)].map((e,t)=>(0,a.createElement)(QC,{key:t,height:"50px"}))):0===d.length?(0,a.createElement)(MU,{className:"my-2",icon:(0,a.createElement)(vU,{className:"h-12 w-12 text-yellow-500"}),title:(0,Yf.__)("No Templates available","woo-cart-abandonment-recovery"),description:(0,Yf.__)("Follow Up SMS Templates data will appear here after templates are created","woo-cart-abandonment-recovery")}):(0,a.createElement)(lU,{checkboxSelection:!0,className:"whitespace-nowrap sm:whitespace-normal"},(0,a.createElement)(lU.Head,{selected:e.length>0,onChangeSelection:e=>{t(e?x.map(e=>e.id):[])},indeterminate:e.length>0&&e.length<x.length},(0,a.createElement)(lU.HeadCell,null,(0,Yf.__)("Template Name","woo-cart-abandonment-recovery")),(0,a.createElement)(lU.HeadCell,null,(0,Yf.__)("Trigger After","woo-cart-abandonment-recovery")),(0,a.createElement)(lU.HeadCell,null,(0,a.createElement)("div",{className:"flex items-center justify-center gap-1.5"},(0,Yf.__)("Sent","woo-cart-abandonment-recovery"))),(0,a.createElement)(lU.HeadCell,null,(0,a.createElement)("div",{className:"flex items-center justify-center gap-1.5"},(0,Yf.__)("Click Rate","woo-cart-abandonment-recovery"))),(0,a.createElement)(lU.HeadCell,null,(0,a.createElement)("div",{className:"flex items-center justify-center gap-1.5"},(0,Yf.__)("Conversion Rate","woo-cart-abandonment-recovery"))),(0,a.createElement)(lU.HeadCell,null,(0,a.createElement)("div",{className:"flex items-center justify-center gap-1.5"},(0,Yf.__)("Unsubscribed","woo-cart-abandonment-recovery"))),(0,a.createElement)(lU.HeadCell,null,(0,Yf.__)("Status","woo-cart-abandonment-recovery")),(0,a.createElement)(lU.HeadCell,{className:"text-right"},(0,Yf.__)("Actions","woo-cart-abandonment-recovery"))),(0,a.createElement)(lU.Body,null,x.length>0?x.map(t=>(0,a.createElement)(lU.Row,{key:t.id,value:t,selected:e.includes(t.id),onChangeSelection:M},(0,a.createElement)(lU.Cell,null,(0,a.createElement)(th,{content:t.template_name,arrow:!0,placement:"top"},(0,a.createElement)("span",{className:"cursor-pointer hover:text-flamingo-400 focus-visible:text-flamingo-400",onClick:()=>w(t),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||w(t)},role:"button",tabIndex:0},((e,t=60)=>e.length>t?e.slice(0,t)+"...":e)(t.template_name,30)))),(0,a.createElement)(lU.Cell,null,((e,t)=>(t={MINUTE:"Minutes",HOUR:"Hours",DAY:"Days"}[t],`${e} ${1===parseInt(e)?t.slice(0,-1):t}`))(t.sms_frequency,t.sms_frequency_unit)),(0,a.createElement)(lU.Cell,{className:"text-center"},t?.sent||"-"),(0,a.createElement)(lU.Cell,{className:"text-center"},t?.click_rate?`${t.click_rate}%`:"-"),(0,a.createElement)(lU.Cell,{className:"text-center"},t?.conversion_rate?`${t.conversion_rate}%`:"-"),(0,a.createElement)(lU.Cell,{className:"text-center"},t?.unsubscribe_rate?`${t.unsubscribe_rate}%`:"-"),(0,a.createElement)(lU.Cell,null,(0,a.createElement)(IR,{"aria-label":`${t.template_name} - ${"on"===t?.is_activated?"Enabled":"Disabled"}`,"aria-checked":"on"===t?.is_activated,value:"on"===t?.is_activated,name:"wcf_activate_sms_template",onChange:e=>((e,t)=>{m(n=>n.map(n=>n.id===e?{...n,is_activated:!0===t?"on":""}:n));const n=new window.FormData;n.append("action","wcar_pro_update_sms_template_status"),n.append("security",cart_abandonment_admin?.update_sms_template_status_nonce),n.append("id",e),n.append("state",!0===t?1:0),ag(cart_abandonment_admin?.ajax_url||window.ajaxurl,n,"POST",t=>{t.success?(m(n=>n.map(n=>n.id===e?{...n,is_activated:"1"===t.data.is_active||1===t.data.is_active?"on":""}:n)),rt.success("Success!",{description:(0,Yf.__)("Template status updated successfully","woo-cart-abandonment-recovery")})):rt.error("Error!",{description:t.data?.message||(0,Yf.__)("Failed to update status","woo-cart-abandonment-recovery")})},e=>{rt.error("Error!",{description:e?.message||(0,Yf.__)("Failed to update status","woo-cart-abandonment-recovery")})},!0)})(t.id,e),size:"md",className:"border-none moderncart-toggle-field",role:"switch"})),(0,a.createElement)(lU.Cell,null,(0,a.createElement)("div",{className:"flex items-center justify-end gap-2"},(0,a.createElement)(th,{content:(0,Yf.__)("Edit","woo-cart-abandonment-recovery"),arrow:!0,placement:"top"},(0,a.createElement)(dn,{variant:"ghost",icon:(0,a.createElement)(mB,{className:"h-6 w-6"}),size:"xs",className:"text-gray-500 hover:text-flamingo-400","aria-label":(0,Yf.__)("Edit","woo-cart-abandonment-recovery"),onClick:()=>w(t)})),(0,a.createElement)(th,{content:(0,Yf.__)("Duplicate","woo-cart-abandonment-recovery"),arrow:!0,placement:"top"},(0,a.createElement)(dn,{variant:"ghost",icon:(0,a.createElement)(fB,{className:"h-6 w-6"}),size:"xs",className:"text-gray-500 hover:text-flamingo-400","aria-label":(0,Yf.__)("Duplicate","woo-cart-abandonment-recovery"),onClick:()=>(e=>{const t=new window.FormData;t.append("action","wcar_pro_clone_sms_template"),t.append("security",cart_abandonment_admin?.clone_sms_template_nonce),t.append("id",e.id),ag(cart_abandonment_admin?.ajax_url||window.ajaxurl,t,"POST",e=>{e.success?(m(t=>[...t,e.data.template]),rt.success((0,Yf.__)("Template cloned successfully","woo-cart-abandonment-recovery"))):rt.error((0,Yf.__)("Clone failed","woo-cart-abandonment-recovery"),{description:e.data?.message||""})},e=>{rt.error((0,Yf.__)("Clone failed","woo-cart-abandonment-recovery"),{description:e?.message||""})},!0)})(t)})),(0,a.createElement)(th,{content:(0,Yf.__)("Delete","woo-cart-abandonment-recovery"),arrow:!0,placement:"top"},(0,a.createElement)(dn,{variant:"ghost",icon:(0,a.createElement)(iY,{className:"h-6 w-6"}),size:"xs",className:"text-gray-500 hover:text-red-600","aria-label":(0,Yf.__)("Delete","woo-cart-abandonment-recovery"),onClick:()=>f({isOpen:!0,type:"single",id:t.id})})))))):(0,a.createElement)("tr",null,(0,a.createElement)("td",{colSpan:"9",className:"p-4 w-full text-center"},(0,Yf.__)("No matching data available","woo-cart-abandonment-recovery"))))),(0,a.createElement)(CB,{open:s,setOpen:l,template:c,onSave:e=>{const t=!d.some(t=>t.id===e.id);m(n=>t?[...n,e]:n.map(t=>t.id===e.id?e:t)),t&&(l(!1),u(null))}}),(0,a.createElement)(wY,{isOpen:p.isOpen,onClose:()=>f({isOpen:!1,type:null,id:null}),onConfirm:()=>{"bulk"===p.type?(()=>{g(!0);const n=cart_abandonment_admin?.ajax_url||window.ajaxurl,r=cart_abandonment_admin?.delete_sms_template_nonce,o=new window.FormData;o.append("action","wcar_pro_delete_sms_template"),e.forEach(e=>o.append("ids[]",e)),o.append("security",r),ag(n,o,"POST",n=>{if(n.success){const t=(n.data?.ids||e).map(Number);m(e=>e.filter(e=>!t.includes(Number(e.id)))),rt.success((0,Yf.__)("Template(s) deleted","woo-cart-abandonment-recovery"))}else rt.error((0,Yf.__)("Delete failed","woo-cart-abandonment-recovery"),{description:n.data?.message||""});t([]),g(!1),f({isOpen:!1,type:null,id:null})},e=>{rt.error((0,Yf.__)("Delete failed","woo-cart-abandonment-recovery"),{description:e?.message||""}),t([]),g(!1),f({isOpen:!1,type:null,id:null})},!0)})():(()=>{g(!0);const e=cart_abandonment_admin?.ajax_url||window.ajaxurl,t=cart_abandonment_admin?.delete_sms_template_nonce,n=new window.FormData;n.append("action","wcar_pro_delete_sms_template"),n.append("ids[]",p.id),n.append("security",t),ag(e,n,"POST",e=>{e.success?(m(e=>e.filter(e=>Number(e.id)!==Number(p.id))),rt.success((0,Yf.__)("Template deleted","woo-cart-abandonment-recovery"))):rt.error((0,Yf.__)("Delete failed","woo-cart-abandonment-recovery"),{description:e.data?.message||""}),g(!1),f({isOpen:!1,type:null,id:null})},e=>{rt.error((0,Yf.__)("Delete failed","woo-cart-abandonment-recovery"),{description:e?.message||""}),g(!1),f({isOpen:!1,type:null,id:null})},!0)})()},title:"bulk"===p.type?(0,Yf.__)("Delete Selected Templates","woo-cart-abandonment-recovery"):(0,Yf.__)("Delete Template","woo-cart-abandonment-recovery"),message:"bulk"===p.type?(0,Yf.sprintf)(/* translators: %s: number of selected templates */ /* translators: %s: number of selected templates */
(0,Yf.__)("Are you sure you want to delete %s selected template(s)? This action cannot be undone.","woo-cart-abandonment-recovery"),e.length):(0,Yf.__)("Are you sure you want to delete this template? This action cannot be undone.","woo-cart-abandonment-recovery"),isLoading:h}))},PB=({formState:e,handleChange:t,errors:n})=>{const r=cart_abandonment_admin?.settings_fields?.whatsapp_fields,o=new DY;return(0,a.createElement)("div",{className:"p-1 flex flex-col gap-1 bg-light-background rounded-lg"},r&&Object.entries(r)?.sort((e,t)=>e[1]?.priority-t[1]?.priority)?.map(([r,i])=>o.isActiveControl(i,e)?(0,a.createElement)("div",{key:r,className:"px-4 rounded-md bg-white shadow-sm"},(0,a.createElement)(jY,{data:i,value:["time","test_email","test_message"].includes(i?.type)?e:e[r]||"",isActive:!0,handleChange:t,errors:n,autoSave:!1})):null))},UB=({open:e,setOpen:t,template:n,onSave:r})=>{const[o,i]=(0,a.useState)({template_name:"",whatsapp_template:"",whatsapp_template_header_variables:"",whatsapp_template_body_variables:"",whatsapp_frequency:10,whatsapp_frequency_unit:"MINUTE",is_activated:!1,override_global_coupon:!1,discount_type:"percent",coupon_amount:"",coupon_expiry_date:1,coupon_expiry_unit:"days",auto_coupon:!1,free_shipping_coupon:!1,individual_use_only:!1,exclude_product_ids:"",enable_whatsapp_rule_engine:!1,whatsapp_rule_engine:[]}),[s,l]=(0,a.useState)(!1),[c,u]=(0,a.useState)(!0),[d,m]=(0,a.useState)({});(0,a.useEffect)(()=>{u(!0),i(n?{...n}:{template_name:"",whatsapp_template:"",whatsapp_template_header_variables:"",whatsapp_template_body_variables:"",whatsapp_frequency:10,whatsapp_frequency_unit:"MINUTE",is_activated:!1,override_global_coupon:!1,discount_type:"percent",coupon_amount:"",coupon_expiry_date:1,coupon_expiry_unit:"days",auto_coupon:!1,free_shipping_coupon:!1,individual_use_only:!1,exclude_product_ids:"",enable_whatsapp_rule_engine:!1,whatsapp_rule_engine:[]}),m({}),u(!1)},[n,e]);const p=e=>"string"==typeof e&&""===e.trim()||Array.isArray(e)&&0===e.length,f=()=>{if(!(()=>{const e={};if(o.template_name.trim()||(e.template_name=(0,Yf.__)("Template name is required","woo-cart-abandonment-recovery")),o.whatsapp_template.trim()||(e.email_body=(0,Yf.__)("WhatsApp template is required","woo-cart-abandonment-recovery")),o.whatsapp_frequency<1&&(e.whatsapp_frequency=(0,Yf.__)("Time should be minimum 1 min.","woo-cart-abandonment-recovery")),!["","0",!1].includes(o?.enable_whatsapp_rule_engine)){let t=o.whatsapp_rule_engine||[];if("string"==typeof t)try{t=JSON.parse(t)}catch(t){return e.whatsapp_rule_engine=(0,Yf.__)("Invalid JSON in rule engine","woo-cart-abandonment-recovery"),!1}(0===t.length||t.some(e=>e.rules&&e.rules.some(e=>p(e.condition)||p(e.value)||p(e.operator))))&&(e.whatsapp_rule_engine=(0,Yf.__)("Missing fields in rule: condition, operator, or value.","woo-cart-abandonment-recovery"))}return m(e),0===Object.keys(e).length||(rt.error("Error!",{description:lg(Object.values(e).join("<br>"))}),!1)})())return;l(!0);const e=new window.FormData;e.append("wcf_template_name",o.template_name),e.append("wcf_whatsapp_template",o.whatsapp_template),e.append("wcf_whatsapp_template_header_variables",o.whatsapp_template_header_variables),e.append("wcf_whatsapp_template_body_variables",o.whatsapp_template_body_variables),e.append("wcf_whatsapp_frequency",o.whatsapp_frequency),e.append("wcf_whatsapp_frequency_unit",o.whatsapp_frequency_unit),e.append("wcf_activate_whatsapp_template",o.is_activated?"1":""),e.append("wcf_override_global_coupon",o.override_global_coupon?"1":""),e.append("wcf_discount_type",o.discount_type),e.append("wcf_coupon_amount",o.coupon_amount),e.append("wcf_coupon_expiry_date",o.coupon_expiry_date),e.append("wcf_coupon_expiry_unit",o.coupon_expiry_unit),e.append("wcf_exclude_product_ids",o.exclude_product_ids),e.append("wcf_auto_coupon",o.auto_coupon?"1":""),e.append("wcf_free_shipping_coupon",o.free_shipping_coupon?"1":""),e.append("wcf_individual_use_only",o.individual_use_only?"1":""),e.append("wcf_enable_whatsapp_rule_engine",o?.enable_whatsapp_rule_engine?"1":""),e.append("wcf_whatsapp_rule_engine",JSON.stringify(o?.whatsapp_rule_engine||[])),n?.id?(e.append("id",n.id),e.append("action","wcar_pro_update_whatsapp_template"),e.append("security",cart_abandonment_admin?.update_whatsapp_template_nonce)):(e.append("action","wcar_pro_save_whatsapp_template"),e.append("security",cart_abandonment_admin?.save_whatsapp_template_nonce)),ag(cart_abandonment_admin?.ajax_url||window.ajaxurl,e,"POST",e=>{e.success?(r(e.data.template),rt.success("Success!",{description:(0,Yf.__)("Template saved successfully","woo-cart-abandonment-recovery")})):rt.success("Error!",{description:e.data.message||(0,Yf.__)("Failed to save template","woo-cart-abandonment-recovery")})},e=>{rt.error("Error!",{description:e.message||(0,Yf.__)("Failed to save template","woo-cart-abandonment-recovery")})},!0).finally(()=>{l(!1)})};return(0,a.createElement)(OB,{open:e,design:"simple",exitOnEsc:!0,position:"right",scrollLock:!0,setOpen:()=>t(e=>!e),transitionDuration:.2,className:"z-[100000]"},(0,a.createElement)(OB.Panel,{className:"w-full md:w-4/5 lg:w-2/5"},(0,a.createElement)(OB.Header,{className:"flex flex-col gpa-2 z-10 bg-white"},(0,a.createElement)("div",{className:"flex items-center justify-between"},c?(0,a.createElement)(a.Fragment,null,(0,a.createElement)(QC,{height:"1rem",width:"30%"}),(0,a.createElement)("div",{className:"flex items-center gap-3"},(0,a.createElement)(QC,{height:"2rem",width:"5rem"}),(0,a.createElement)(OB.CloseButton,{as:"span"}))):(0,a.createElement)(a.Fragment,null,(0,a.createElement)(OB.Title,{className:"text-lg text-gray-900 z-10"},((e,t=60)=>e.length>t?e.slice(0,t)+"...":e)(o?.template_name?o.template_name:"New WhatsApp Template")),(0,a.createElement)("div",{className:"flex items-center gap-3"},(0,a.createElement)(dn,{className:"whitespace-nowrap hidden xs:flex",icon:(0,a.createElement)(CU,{className:"h-4 w-4","aria-label":"icon",role:"img"}),iconPosition:"left",size:"sm",tag:"button",type:"button",variant:"primary",onClick:f,disabled:s},s?"Saving...":"Save Changes"),(0,a.createElement)(OB.CloseButton,{as:"span"})))),(0,a.createElement)(dn,{className:"xs:hidden",icon:(0,a.createElement)(CU,{className:"h-4 w-4","aria-label":"icon",role:"img"}),iconPosition:"left",size:"sm",tag:"button",type:"button",variant:"primary",onClick:f,disabled:s},s?"Saving...":"Save Changes")),(0,a.createElement)(OB.Body,{className:"overflow-x-hidden"},c?(0,a.createElement)("div",{className:"space-y-4"},(0,a.createElement)(QC,{height:"2rem",className:"mb-6"}),(0,a.createElement)(QC,{height:"1.5rem",width:"50%"}),(0,a.createElement)(QC,{height:"3rem"}),(0,a.createElement)(QC,{height:"1.5rem",width:"70%"}),(0,a.createElement)(QC,{height:"8rem"}),(0,a.createElement)(QC,{height:"1.5rem",width:"60%"}),(0,a.createElement)(QC,{height:"3rem"}),(0,a.createElement)(QC,{height:"1.5rem",width:"40%"}),(0,a.createElement)(QC,{height:"3rem"})):(0,a.createElement)(a.Fragment,null,d.submit&&(0,a.createElement)("div",{className:"mb-4 rounded-md bg-red-50 p-4"},(0,a.createElement)("div",{className:"flex"},(0,a.createElement)("div",{className:"ml-3"},(0,a.createElement)("h3",{className:"text-sm font-medium text-red-800"},d.submit)))),(0,a.createElement)(PB,{formState:o,handleChange:(e,t)=>{i(n=>({...n,[e]:t})),d[e]&&m({...d,[e]:null})},errors:d,isLoading:s})))),(0,a.createElement)(OB.Backdrop,null))},RB=()=>(0,a.createElement)("div",{className:"flex flex-col gap-4"},(0,a.createElement)("div",{className:"flex flex-col md:flex-row gap-4 md:gap-0 justify-between relative"},(0,a.createElement)(kB,{currentTab:"whatsapp"}),(0,a.createElement)("div",{className:"flex flex-col md:flex-row gap-4"},(0,a.createElement)($R,{placeholder:(0,Yf.__)("Search…","woo-cart-abandonment-recovery"),prefix:(0,a.createElement)(YY,{className:"h-6 w-6 text-gray-500"}),size:"md",type:"text","aria-label":(0,Yf.__)("Search","woo-cart-abandonment-recovery"),className:"w-full lg:w-52",disabled:!0}),(0,a.createElement)(dn,{className:"",icon:(0,a.createElement)(lY,{"aria-label":"icon",role:"img"}),iconPosition:"left",size:"sm",tag:"button",type:"button",variant:"primary",disabled:!0},(0,Yf.__)("Create New Template","woo-cart-abandonment-recovery")))),(0,a.createElement)("div",{className:"relative"},(0,a.createElement)(lU,{checkboxSelection:!0,className:"whitespace-nowrap sm:whitespace-normal"},(0,a.createElement)(lU.Head,null,(0,a.createElement)(lU.HeadCell,null,(0,Yf.__)("Template Name","woo-cart-abandonment-recovery")),(0,a.createElement)(lU.HeadCell,null,(0,Yf.__)("Trigger After","woo-cart-abandonment-recovery")),(0,a.createElement)(lU.HeadCell,null,(0,Yf.__)("Status","woo-cart-abandonment-recovery")),(0,a.createElement)(lU.HeadCell,{className:"text-right"},(0,Yf.__)("Actions","woo-cart-abandonment-recovery"))),(0,a.createElement)(lU.Body,null,[{id:"message-1",template_name:"Welcome Reminder",whatsapp_frequency:10,whatsapp_frequency_unit:"MINUTE"},{id:"message-2",template_name:"First Follow-up",whatsapp_frequency:1,whatsapp_frequency_unit:"HOUR"},{id:"message-3",template_name:"24h Cart Nudge",whatsapp_frequency:24,whatsapp_frequency_unit:"HOUR"},{id:"message-4",template_name:"Final Offer Alert",whatsapp_frequency:2,whatsapp_frequency_unit:"DAY"},{id:"message-5",template_name:"Upsell Suggestion",whatsapp_frequency:12,whatsapp_frequency_unit:"HOUR"},{id:"message-6",template_name:"Free Shipping Reminder",whatsapp_frequency:8,whatsapp_frequency_unit:"HOUR"},{id:"message-7",template_name:"Weekend Special Teaser",whatsapp_frequency:3,whatsapp_frequency_unit:"DAY"},{id:"message-8",template_name:"VIP Notification",whatsapp_frequency:20,whatsapp_frequency_unit:"MINUTE"},{id:"message-9",template_name:"Low Stock Alert",whatsapp_frequency:30,whatsapp_frequency_unit:"MINUTE"},{id:"message-10",template_name:"Bundle Promotion",whatsapp_frequency:6,whatsapp_frequency_unit:"HOUR"},{id:"message-11",template_name:"Seasonal Campaign",whatsapp_frequency:2,whatsapp_frequency_unit:"DAY"},{id:"message-12",template_name:"Review Request",whatsapp_frequency:3,whatsapp_frequency_unit:"DAY"},{id:"message-13",template_name:"Win-Back Campaign",whatsapp_frequency:7,whatsapp_frequency_unit:"DAY"}].map(e=>(0,a.createElement)(lU.Row,{key:e.id,value:e},(0,a.createElement)(lU.Cell,null,(0,a.createElement)("span",{className:"cursor-pointer hover:text-flamingo-400 focus-visible:text-flamingo-400"},e.template_name)),(0,a.createElement)(lU.Cell,null,((e,t)=>(t={MINUTE:"Minutes",HOUR:"Hours",DAY:"Days"}[t],`${e} ${1===parseInt(e)?t.slice(0,-1):t}`))(e.whatsapp_frequency,e.whatsapp_frequency_unit)),(0,a.createElement)(lU.Cell,null,(0,a.createElement)(IR,{value:!0,size:"md",className:"border-none moderncart-toggle-field",role:"switch"})),(0,a.createElement)(lU.Cell,null,(0,a.createElement)("div",{className:"flex items-center justify-end gap-2"},(0,a.createElement)(dn,{variant:"ghost",icon:(0,a.createElement)(mB,{className:"h-6 w-6"}),size:"xs",className:"text-gray-500 hover:text-flamingo-400","aria-label":(0,Yf.__)("Edit","woo-cart-abandonment-recovery")}),(0,a.createElement)(dn,{variant:"ghost",icon:(0,a.createElement)(fB,{className:"h-6 w-6"}),size:"xs",className:"text-gray-500 hover:text-flamingo-400","aria-label":(0,Yf.__)("Duplicate","woo-cart-abandonment-recovery")}),(0,a.createElement)(dn,{variant:"ghost",icon:(0,a.createElement)(iY,{className:"h-6 w-6"}),size:"xs",className:"text-gray-500 hover:text-red-600"}))))))),(0,a.createElement)(PU,{isVisible:!0,highlightText:(0,Yf.__)("Unlock Pro Features","woo-cart-abandonment-recovery"),mainTitle:(0,Yf.__)("Cart Abandonment Recovery Pro is Here 🔥","woo-cart-abandonment-recovery"),description:(0,Yf.__)("You've seen how emails bring shoppers back. With Pro, you'll unlock advanced tools that recover more carts, boost profits, and grow your store faster.","woo-cart-abandonment-recovery"),usps:[(0,Yf.__)("Product Reports","woo-cart-abandonment-recovery"),(0,Yf.__)("SMS + WhatsApp Followups","woo-cart-abandonment-recovery"),(0,Yf.__)("Smart Rules","woo-cart-abandonment-recovery"),(0,Yf.__)("Advanced Automations","woo-cart-abandonment-recovery"),(0,Yf.__)("And More…","woo-cart-abandonment-recovery")],footerMessage:"",backgroundBlur:!0}))),QB=()=>{const[e,t]=(0,a.useState)([]),[n,r]=(0,a.useState)(""),[o,i]=(0,a.useState)(!0),[s,l]=(0,a.useState)(!1),[c,u]=(0,a.useState)(null),[d,m]=(0,a.useState)([]),[p,f]=(0,a.useState)({isOpen:!1,type:null,id:null}),[h,g]=(0,a.useState)(!1),{shouldBlockProFeatures:y}=AU(),v=y();(0,a.useEffect)(()=>{v?i(!1):b()},[]);const b=async()=>{try{await ag("/wcar-pro/api/admin/whatsapp-template",{},"GET",e=>{m(e),i(!1)},e=>{console.error("Error fetching whatsapp templates:",e),i(!1)})}catch(e){console.error("Error in fetching templates:",e),i(!1)}},M=(n,r)=>{t(n?[...e,r.id]:e.filter(e=>e!==r.id))},x=d.filter(e=>e.template_name.toLowerCase().includes(n.toLowerCase())),w=e=>{u(e),l(!0)};return v?(0,a.createElement)(RB,null):(0,a.createElement)(a.Fragment,null,(0,a.createElement)("div",{className:"flex flex-col md:flex-row gap-4 md:gap-0 justify-between relative"},(0,a.createElement)("div",{className:"flex flex-row flex-wrap gap-4 items-center"},(0,a.createElement)(kB,{currentTab:"whatsapp"}),!o&&e.length>0&&(0,a.createElement)("div",{className:"flex gap-4 items-center border-0 border-l border-solid border-gray-200"},(0,a.createElement)(dn,{variant:"ghost",icon:(0,a.createElement)(CC,{className:"h-6 w-6 text-gray-500"}),size:"xs",className:"text-icon-secondary hover:text-icon-primary",onClick:()=>{t([])}}),(0,a.createElement)("span",{className:"text-sm font-normal text-gray-500"},e.length," ",(0,Yf.__)("Selected","woo-cart-abandonment-recovery")),(0,a.createElement)(dn,{className:"py-2 px-4 bg-red-50 text-red-600 outline-red-600 hover:bg-red-50 hover:outline-red-600",size:"sm",tag:"button",type:"button",variant:"outline",icon:(0,a.createElement)(iY,{className:"h-4 w-4"}),iconPosition:"left",onClick:()=>{e.length&&f({isOpen:!0,type:"bulk",id:null})}},(0,Yf.__)("Delete","woo-cart-abandonment-recovery")))),(0,a.createElement)("div",{className:"flex flex-col md:flex-row gap-4"},(0,a.createElement)($R,{placeholder:(0,Yf.__)("Search…","woo-cart-abandonment-recovery"),prefix:(0,a.createElement)(YY,{className:"h-6 w-6 text-gray-500"}),size:"md",type:"text","aria-label":(0,Yf.__)("Search","woo-cart-abandonment-recovery"),value:n,onChange:e=>{r(e)},className:"w-full lg:w-52",disabled:o}),(0,a.createElement)(dn,{className:"",icon:(0,a.createElement)(lY,{"aria-label":"icon",role:"img"}),iconPosition:"left",size:"sm",tag:"button",type:"button",variant:"primary",disabled:o||v,onClick:()=>{u(null),l(!0)}},(0,Yf.__)("Create New Template","woo-cart-abandonment-recovery")))),o?(0,a.createElement)("div",{className:"flex flex-col gap-4"},(0,a.createElement)(QC,{height:"40px"}),[...Array(5)].map((e,t)=>(0,a.createElement)(QC,{key:t,height:"50px"}))):0===d.length?(0,a.createElement)(MU,{className:"my-2",icon:(0,a.createElement)(vU,{className:"h-12 w-12 text-yellow-500"}),title:(0,Yf.__)("No Templates available","woo-cart-abandonment-recovery"),description:(0,Yf.__)("Follow Up WhatsApp Templates data will appear here after templates are created","woo-cart-abandonment-recovery")}):(0,a.createElement)(lU,{checkboxSelection:!0,className:"whitespace-nowrap sm:whitespace-normal"},(0,a.createElement)(lU.Head,{selected:e.length>0,onChangeSelection:e=>{t(e?x.map(e=>e.id):[])},indeterminate:e.length>0&&e.length<x.length},(0,a.createElement)(lU.HeadCell,null,(0,Yf.__)("Template Name","woo-cart-abandonment-recovery")),(0,a.createElement)(lU.HeadCell,null,(0,Yf.__)("Trigger After","woo-cart-abandonment-recovery")),(0,a.createElement)(lU.HeadCell,null,(0,a.createElement)("div",{className:"flex items-center justify-center gap-1.5"},(0,Yf.__)("Sent","woo-cart-abandonment-recovery"))),(0,a.createElement)(lU.HeadCell,null,(0,a.createElement)("div",{className:"flex items-center justify-center gap-1.5"},(0,Yf.__)("Click Rate","woo-cart-abandonment-recovery"))),(0,a.createElement)(lU.HeadCell,null,(0,a.createElement)("div",{className:"flex items-center justify-center gap-1.5"},(0,Yf.__)("Conversion Rate","woo-cart-abandonment-recovery"))),(0,a.createElement)(lU.HeadCell,null,(0,Yf.__)("Status","woo-cart-abandonment-recovery")),(0,a.createElement)(lU.HeadCell,{className:"text-right"},(0,Yf.__)("Actions","woo-cart-abandonment-recovery"))),(0,a.createElement)(lU.Body,null,x.length>0?x.map(t=>(0,a.createElement)(lU.Row,{key:t.id,value:t,selected:e.includes(t.id),onChangeSelection:M},(0,a.createElement)(lU.Cell,null,(0,a.createElement)(th,{content:t.template_name,arrow:!0,placement:"top"},(0,a.createElement)("span",{className:"cursor-pointer hover:text-flamingo-400 focus-visible:text-flamingo-400",onClick:()=>w(t),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||w(t)},role:"button",tabIndex:0},((e,t=60)=>e.length>t?e.slice(0,t)+"...":e)(t.template_name,30)))),(0,a.createElement)(lU.Cell,null,((e,t)=>(t={MINUTE:"Minutes",HOUR:"Hours",DAY:"Days"}[t],`${e} ${1===parseInt(e)?t.slice(0,-1):t}`))(t.whatsapp_frequency,t.whatsapp_frequency_unit)),(0,a.createElement)(lU.Cell,{className:"text-center"},t?.sent||"-"),(0,a.createElement)(lU.Cell,{className:"text-center"},t?.click_rate?`${t.click_rate}%`:"-"),(0,a.createElement)(lU.Cell,{className:"text-center"},t?.conversion_rate?`${t.conversion_rate}%`:"-"),(0,a.createElement)(lU.Cell,null,(0,a.createElement)(IR,{"aria-label":`${t.template_name} - ${"on"===t?.is_activated?"Enabled":"Disabled"}`,"aria-checked":"on"===t?.is_activated,value:"on"===t?.is_activated,name:"wcf_activate_whatsapp_template",onChange:e=>((e,t)=>{m(n=>n.map(n=>n.id===e?{...n,is_activated:!0===t?"on":""}:n));const n=new window.FormData;n.append("action","wcar_pro_update_whatsapp_template_status"),n.append("security",cart_abandonment_admin?.update_whatsapp_template_status_nonce),n.append("id",e),n.append("state",!0===t?1:0),ag(cart_abandonment_admin?.ajax_url||window.ajaxurl,n,"POST",t=>{t.success?(m(n=>n.map(n=>n.id===e?{...n,is_activated:"1"===t.data.is_active||1===t.data.is_active?"on":""}:n)),rt.success("Success!",{description:(0,Yf.__)("Template status updated successfully","woo-cart-abandonment-recovery")})):rt.error("Error!",{description:t.data?.message||(0,Yf.__)("Failed to update status","woo-cart-abandonment-recovery")})},e=>{rt.error("Error!",{description:e?.message||(0,Yf.__)("Failed to update status","woo-cart-abandonment-recovery")})},!0)})(t.id,e),size:"md",className:"border-none moderncart-toggle-field",role:"switch"})),(0,a.createElement)(lU.Cell,null,(0,a.createElement)("div",{className:"flex items-center justify-end gap-2"},(0,a.createElement)(th,{content:(0,Yf.__)("Edit","woo-cart-abandonment-recovery"),arrow:!0,placement:"top"},(0,a.createElement)(dn,{variant:"ghost",icon:(0,a.createElement)(mB,{className:"h-6 w-6"}),size:"xs",className:"text-gray-500 hover:text-flamingo-400","aria-label":(0,Yf.__)("Edit","woo-cart-abandonment-recovery"),onClick:()=>w(t)})),(0,a.createElement)(th,{content:(0,Yf.__)("Duplicate","woo-cart-abandonment-recovery"),arrow:!0,placement:"top"},(0,a.createElement)(dn,{variant:"ghost",icon:(0,a.createElement)(fB,{className:"h-6 w-6"}),size:"xs",className:"text-gray-500 hover:text-flamingo-400","aria-label":(0,Yf.__)("Duplicate","woo-cart-abandonment-recovery"),onClick:()=>(e=>{const t=new window.FormData;t.append("action","wcar_pro_clone_whatsapp_template"),t.append("security",cart_abandonment_admin?.clone_whatsapp_template_nonce),t.append("id",e.id),ag(cart_abandonment_admin?.ajax_url||window.ajaxurl,t,"POST",e=>{e.success?(m(t=>[...t,e.data.template]),rt.success((0,Yf.__)("Template cloned successfully","woo-cart-abandonment-recovery"))):rt.error((0,Yf.__)("Clone failed","woo-cart-abandonment-recovery"),{description:e.data?.message||""})},e=>{rt.error((0,Yf.__)("Clone failed","woo-cart-abandonment-recovery"),{description:e?.message||""})},!0)})(t)})),(0,a.createElement)(th,{content:(0,Yf.__)("Delete","woo-cart-abandonment-recovery"),arrow:!0,placement:"top"},(0,a.createElement)(dn,{variant:"ghost",icon:(0,a.createElement)(iY,{className:"h-6 w-6"}),size:"xs",className:"text-gray-500 hover:text-red-600","aria-label":(0,Yf.__)("Delete","woo-cart-abandonment-recovery"),onClick:()=>f({isOpen:!0,type:"single",id:t.id})})))))):(0,a.createElement)("tr",null,(0,a.createElement)("td",{colSpan:"9",className:"p-4 w-full text-center"},(0,Yf.__)("No matching data available","woo-cart-abandonment-recovery"))))),(0,a.createElement)(UB,{open:s,setOpen:l,template:c,onSave:e=>{const t=!d.some(t=>t.id===e.id);m(n=>t?[...n,e]:n.map(t=>t.id===e.id?e:t)),t&&(l(!1),u(null))}}),(0,a.createElement)(wY,{isOpen:p.isOpen,onClose:()=>f({isOpen:!1,type:null,id:null}),onConfirm:()=>{"bulk"===p.type?(()=>{g(!0);const n=cart_abandonment_admin?.ajax_url||window.ajaxurl,r=cart_abandonment_admin?.delete_whatsapp_template_nonce,o=new window.FormData;o.append("action","wcar_pro_delete_whatsapp_template"),e.forEach(e=>o.append("ids[]",e)),o.append("security",r),ag(n,o,"POST",n=>{if(n.success){const t=(n.data?.ids||e).map(Number);m(e=>e.filter(e=>!t.includes(Number(e.id)))),rt.success((0,Yf.__)("Template(s) deleted","woo-cart-abandonment-recovery"))}else rt.error((0,Yf.__)("Delete failed","woo-cart-abandonment-recovery"),{description:n.data?.message||""});t([]),g(!1),f({isOpen:!1,type:null,id:null})},e=>{rt.error((0,Yf.__)("Delete failed","woo-cart-abandonment-recovery"),{description:e?.message||""}),t([]),g(!1),f({isOpen:!1,type:null,id:null})},!0)})():(()=>{g(!0);const e=cart_abandonment_admin?.ajax_url||window.ajaxurl,t=cart_abandonment_admin?.delete_whatsapp_template_nonce,n=new window.FormData;n.append("action","wcar_pro_delete_whatsapp_template"),n.append("ids[]",p.id),n.append("security",t),ag(e,n,"POST",e=>{e.success?(m(e=>e.filter(e=>Number(e.id)!==Number(p.id))),rt.success((0,Yf.__)("Template deleted","woo-cart-abandonment-recovery"))):rt.error((0,Yf.__)("Delete failed","woo-cart-abandonment-recovery"),{description:e.data?.message||""}),g(!1),f({isOpen:!1,type:null,id:null})},e=>{rt.error((0,Yf.__)("Delete failed","woo-cart-abandonment-recovery"),{description:e?.message||""}),g(!1),f({isOpen:!1,type:null,id:null})},!0)})()},title:"bulk"===p.type?(0,Yf.__)("Delete Selected Templates","woo-cart-abandonment-recovery"):(0,Yf.__)("Delete Template","woo-cart-abandonment-recovery"),message:"bulk"===p.type?(0,Yf.sprintf)(/* translators: %s: number of selected templates */ /* translators: %s: number of selected templates */
(0,Yf.__)("Are you sure you want to delete %s selected template(s)? This action cannot be undone.","woo-cart-abandonment-recovery"),e.length):(0,Yf.__)("Are you sure you want to delete this template? This action cannot be undone.","woo-cart-abandonment-recovery"),isLoading:h}))},YB=()=>{const e=new URLSearchParams(oe().search).get("tab")||"email";return(0,a.createElement)(a.Fragment,null,(0,a.createElement)("div",{className:"p-4 md:p-8"},(0,a.createElement)(UC,null,(0,a.createElement)("div",{className:"flex flex-col gap-4"},(0,a.createElement)(Qh,{size:"sm",tag:"h1",title:(0,Yf.__)("Follow Up Templates","woo-cart-abandonment-recovery"),className:"[&_h2]:text-gray-900"}),(0,a.createElement)(GQ,{activeItem:e},(0,a.createElement)(GQ.Panel,{slug:"email"},(0,a.createElement)(SB,null)),(0,a.createElement)(GQ.Panel,{slug:"sms"},(0,a.createElement)(LB,null)),(0,a.createElement)(GQ.Panel,{slug:"whatsapp"},(0,a.createElement)(QB,null)))))))};function BB({title:e,titleId:t,...n},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.625 9.75a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H8.25m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H12m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0h-.375m-13.5 3.01c0 1.6 1.123 2.994 2.707 3.227 1.087.16 2.185.283 3.293.369V21l4.184-4.183a1.14 1.14 0 0 1 .778-.332 48.294 48.294 0 0 0 5.83-.498c1.585-.233 2.708-1.626 2.708-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0 0 12 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018Z"}))}const FB=a.forwardRef(BB),WB=PR("Unplug",[["path",{d:"m19 5 3-3",key:"yk6iyv"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m12 6 6 6 2.3-2.3a2.4 2.4 0 0 0 0-3.4l-2.6-2.6a2.4 2.4 0 0 0-3.4 0Z",key:"1snsnr"}]]),VB=()=>{const[e,t]=(0,a.useState)(cart_abandonment_admin.extend_plugins.find(e=>"suretriggers"===e.slug).status),[n,r]=(0,a.useState)(!1);(0,a.useEffect)(()=>{if("active"!==cart_abandonment_admin?.ottokit?.status)return;cart_abandonment_admin?.ottokit?.is_ottokit_connected||(window.location.href=cart_abandonment_admin?.ottokit?.ottokit_redirect_url);const e=cart_abandonment_admin?.ottokit?.config;window.SureTriggers&&document.getElementById("wcar-iframe-wrapper")&&window.SureTriggers.init(e)},[]);const o=e=>{t("activating"),r(!0);const n=new window.FormData;n.append("action","cart_abandonment_activate_plugin"),n.append("init",e),n.append("security",cart_abandonment_admin.plugin_activation_nonce),og()({url:cart_abandonment_admin.ajax_url,method:"POST",body:n}).then(e=>{r(!1),e&&e.success?(t("reload"),setTimeout(()=>{window.location.reload()},2e3)):t("fail")})};return(0,a.createElement)("div",{className:"p-8"},(0,a.createElement)(UC,null,"active"===e?(0,a.createElement)("div",{className:"h-[75vh] w-full",id:"wcar-iframe-wrapper"}):(0,a.createElement)("div",{className:"p-6 flex justify-between items-center bg-white gap-6"},(0,a.createElement)("div",null,(0,a.createElement)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgwIiBoZWlnaHQ9IjI4MCIgdmlld0JveD0iMCAwIDI4MCAyODAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0yMTEuNjggNzIuNDYzOVYxNTguNjQ4QzIxMS42OCAxNjAuODMyIDIwOS44ODggMTYyLjU2OCAyMDcuNzYgMTYyLjU2OEg3MC45NTIyQzY4Ljc2ODIgMTYyLjU2OCA2Ny4wMzIyIDE2MC44MzIgNjcuMDMyMiAxNTguNjQ4VjcyLjQ2MzlDNjcuMDMyMiA3MC4yNzk5IDY4Ljc2ODIgNjguNTQzOSA3MC45NTIyIDY4LjU0MzlIMjA3LjcwNEMyMDkuODg4IDY4LjU0MzkgMjExLjYyNCA3MC4yNzk5IDIxMS42OCA3Mi40NjM5WiIgZmlsbD0id2hpdGUiLz4KPHBhdGggZD0iTTIwNy43MDQgMTYyLjg0OEg3MC45NTJDNjguNiAxNjIuODQ4IDY2Ljc1MiAxNjAuOTQ0IDY2Ljc1MiAxNTguNjQ4VjcyLjQ2MzdDNjYuNzUyIDcwLjExMTcgNjguNjU2IDY4LjI2MzcgNzAuOTUyIDY4LjI2MzdIMjA3LjcwNEMyMTAuMDU2IDY4LjI2MzcgMjExLjkwNCA3MC4xNjc3IDIxMS45MDQgNzIuNDYzN1YxNTguNjQ4QzIxMS45NiAxNjAuOTQ0IDIxMC4wNTYgMTYyLjg0OCAyMDcuNzA0IDE2Mi44NDhaTTcwLjk1MiA2OC44MjM3QzY4LjkzNiA2OC44MjM3IDY3LjMxMiA3MC40NDc3IDY3LjMxMiA3Mi40NjM3VjE1OC42NDhDNjcuMzEyIDE2MC42NjQgNjguOTM2IDE2Mi4yODggNzAuOTUyIDE2Mi4yODhIMjA3LjcwNEMyMDkuNzIgMTYyLjI4OCAyMTEuMzQ0IDE2MC42NjQgMjExLjM0NCAxNTguNjQ4VjcyLjQ2MzdDMjExLjM0NCA3MC40NDc3IDIwOS43MiA2OC44MjM3IDIwNy43MDQgNjguODIzN0g3MC45NTJaIiBmaWxsPSIjMTExODI3Ii8+CjxwYXRoIGQ9Ik0yMDUuNjg4IDc0LjQyMzhINzIuOTEyMVYxNTYuNjg4SDIwNS42ODhWNzQuNDIzOFoiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik0yMDUuNzQ0IDE1Ni45NjhINzIuOTExOEM3Mi43NDM4IDE1Ni45NjggNzIuNjMxOCAxNTYuODU2IDcyLjYzMTggMTU2LjY4OFY3NC40MjM2QzcyLjYzMTggNzQuMjU1NiA3Mi43NDM4IDc0LjE0MzYgNzIuOTExOCA3NC4xNDM2SDIwNS43NDRDMjA1LjkxMiA3NC4xNDM2IDIwNi4wMjQgNzQuMjU1NiAyMDYuMDI0IDc0LjQyMzZWMTU2LjY4OEMyMDYuMDI0IDE1Ni44NTYgMjA1LjkxMiAxNTYuOTY4IDIwNS43NDQgMTU2Ljk2OFpNNzMuMjQ3OCAxNTYuNDA4SDIwNS40NjRWNzQuNzAzNkg3My4yNDc4VjE1Ni40MDhaIiBmaWxsPSIjMTExODI3Ii8+CjxwYXRoIGQ9Ik03MC4wMDAzIDEyMS40MDhDNjkuMjcyMyAxMjEuNDA4IDY4LjY1NjIgMTIwLjc5MiA2OC42NTYyIDEyMC4wNjRDNjguNjU2MiAxMTkuMzM2IDY5LjI3MjMgMTE4LjcyIDcwLjAwMDMgMTE4LjcyQzcwLjcyODMgMTE4LjcyIDcxLjM0NDMgMTE5LjMzNiA3MS4zNDQzIDEyMC4wNjRDNzEuMzQ0MyAxMjAuNzkyIDcwLjcyODMgMTIxLjQwOCA3MC4wMDAzIDEyMS40MDhaTTcwLjAwMDMgMTE5LjMzNkM2OS42MDgzIDExOS4zMzYgNjkuMjcyMiAxMTkuNjcyIDY5LjI3MjIgMTIwLjA2NEM2OS4yNzIyIDEyMC40NTYgNjkuNjA4MyAxMjAuNzkyIDcwLjAwMDMgMTIwLjc5MkM3MC4zOTIzIDEyMC43OTIgNzAuNzI4MyAxMjAuNDU2IDcwLjcyODMgMTIwLjA2NEM3MC43ODQzIDExOS42NzIgNzAuNDQ4MyAxMTkuMzM2IDcwLjAwMDMgMTE5LjMzNloiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik03MC4wMDAzIDExOC4yMTZDNjkuMjcyMyAxMTguMjE2IDY4LjY1NjIgMTE3LjYgNjguNjU2MiAxMTYuODcyVjExMS4wNDhDNjguNjU2MiAxMTAuMzIgNjkuMjcyMyAxMDkuNzA0IDcwLjAwMDMgMTA5LjcwNEM3MC43MjgzIDEwOS43MDQgNzEuMzQ0MyAxMTAuMzIgNzEuMzQ0MyAxMTEuMDQ4VjExNi44NzJDNzEuMzQ0MyAxMTcuNiA3MC43ODQzIDExOC4yMTYgNzAuMDAwMyAxMTguMjE2Wk03MC4wMDAzIDExMC4zMkM2OS42MDgzIDExMC4zMiA2OS4yNzIyIDExMC42NTYgNjkuMjcyMiAxMTEuMDQ4VjExNi44NzJDNjkuMjcyMiAxMTcuMjY0IDY5LjYwODMgMTE3LjYgNzAuMDAwMyAxMTcuNkM3MC4zOTIzIDExNy42IDcwLjcyODMgMTE3LjI2NCA3MC43MjgzIDExNi44NzJWMTExLjA0OEM3MC43ODQzIDExMC42IDcwLjQ0ODMgMTEwLjI2NCA3MC4wMDAzIDExMC4zMloiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik03MC4wMDAzIDEyMS40MDhDNjkuMjcyMyAxMjEuNDA4IDY4LjY1NjIgMTIwLjc5MiA2OC42NTYyIDEyMC4wNjRDNjguNjU2MiAxMTkuMzM2IDY5LjI3MjMgMTE4LjcyIDcwLjAwMDMgMTE4LjcyQzcwLjcyODMgMTE4LjcyIDcxLjM0NDMgMTE5LjMzNiA3MS4zNDQzIDEyMC4wNjRDNzEuMzQ0MyAxMjAuNzkyIDcwLjcyODMgMTIxLjQwOCA3MC4wMDAzIDEyMS40MDhaTTcwLjAwMDMgMTE5LjMzNkM2OS42MDgzIDExOS4zMzYgNjkuMjcyMiAxMTkuNjcyIDY5LjI3MjIgMTIwLjA2NEM2OS4yNzIyIDEyMC40NTYgNjkuNjA4MyAxMjAuNzkyIDcwLjAwMDMgMTIwLjc5MkM3MC4zOTIzIDEyMC43OTIgNzAuNzI4MyAxMjAuNDU2IDcwLjcyODMgMTIwLjA2NEM3MC43ODQzIDExOS42NzIgNzAuNDQ4MyAxMTkuMzM2IDcwLjAwMDMgMTE5LjMzNloiIGZpbGw9IiMxMTE4MjciLz4KPHBhdGggZD0iTTcwLjAwMDMgMTE4LjIxNkM2OS4yNzIzIDExOC4yMTYgNjguNjU2MiAxMTcuNiA2OC42NTYyIDExNi44NzJWMTExLjA0OEM2OC42NTYyIDExMC4zMiA2OS4yNzIzIDEwOS43MDQgNzAuMDAwMyAxMDkuNzA0QzcwLjcyODMgMTA5LjcwNCA3MS4zNDQzIDExMC4zMiA3MS4zNDQzIDExMS4wNDhWMTE2Ljg3MkM3MS4zNDQzIDExNy42IDcwLjc4NDMgMTE4LjIxNiA3MC4wMDAzIDExOC4yMTZaTTcwLjAwMDMgMTEwLjMyQzY5LjYwODMgMTEwLjMyIDY5LjI3MjIgMTEwLjY1NiA2OS4yNzIyIDExMS4wNDhWMTE2Ljg3MkM2OS4yNzIyIDExNy4yNjQgNjkuNjA4MyAxMTcuNiA3MC4wMDAzIDExNy42QzcwLjM5MjMgMTE3LjYgNzAuNzI4MyAxMTcuMjY0IDcwLjcyODMgMTE2Ljg3MlYxMTEuMDQ4QzcwLjc4NDMgMTEwLjYgNzAuNDQ4MyAxMTAuMjY0IDcwLjAwMDMgMTEwLjMyWiIgZmlsbD0iIzExMTgyNyIvPgo8cGF0aCBkPSJNNzAuMDAwMyAxMjEuNDA4QzY5LjI3MjMgMTIxLjQwOCA2OC42NTYyIDEyMC43OTIgNjguNjU2MiAxMjAuMDY0QzY4LjY1NjIgMTE5LjMzNiA2OS4yNzIzIDExOC43MiA3MC4wMDAzIDExOC43MkM3MC43MjgzIDExOC43MiA3MS4zNDQzIDExOS4zMzYgNzEuMzQ0MyAxMjAuMDY0QzcxLjM0NDMgMTIwLjc5MiA3MC43MjgzIDEyMS40MDggNzAuMDAwMyAxMjEuNDA4Wk03MC4wMDAzIDExOS4zMzZDNjkuNjA4MyAxMTkuMzM2IDY5LjI3MjIgMTE5LjY3MiA2OS4yNzIyIDEyMC4wNjRDNjkuMjcyMiAxMjAuNDU2IDY5LjYwODMgMTIwLjc5MiA3MC4wMDAzIDEyMC43OTJDNzAuMzkyMyAxMjAuNzkyIDcwLjcyODMgMTIwLjQ1NiA3MC43MjgzIDEyMC4wNjRDNzAuNzg0MyAxMTkuNjcyIDcwLjQ0ODMgMTE5LjMzNiA3MC4wMDAzIDExOS4zMzZaIiBzdHJva2U9IiMxMTE4MjciIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8cGF0aCBkPSJNNzAuMDAwMyAxMTguMjE2QzY5LjI3MjMgMTE4LjIxNiA2OC42NTYyIDExNy42IDY4LjY1NjIgMTE2Ljg3MlYxMTEuMDQ4QzY4LjY1NjIgMTEwLjMyIDY5LjI3MjMgMTA5LjcwNCA3MC4wMDAzIDEwOS43MDRDNzAuNzI4MyAxMDkuNzA0IDcxLjM0NDMgMTEwLjMyIDcxLjM0NDMgMTExLjA0OFYxMTYuODcyQzcxLjM0NDMgMTE3LjYgNzAuNzg0MyAxMTguMjE2IDcwLjAwMDMgMTE4LjIxNlpNNzAuMDAwMyAxMTAuMzJDNjkuNjA4MyAxMTAuMzIgNjkuMjcyMiAxMTAuNjU2IDY5LjI3MjIgMTExLjA0OFYxMTYuODcyQzY5LjI3MjIgMTE3LjI2NCA2OS42MDgzIDExNy42IDcwLjAwMDMgMTE3LjZDNzAuMzkyMyAxMTcuNiA3MC43MjgzIDExNy4yNjQgNzAuNzI4MyAxMTYuODcyVjExMS4wNDhDNzAuNzg0MyAxMTAuNiA3MC40NDgzIDExMC4yNjQgNzAuMDAwMyAxMTAuMzJaIiBzdHJva2U9IiMxMTE4MjciIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8cGF0aCBkPSJNMjMwLjk0NCAxODguMjE2QzIzNS4zMTIgMTg4LjMyOCAyMzguMDU2IDE5MC4zNDQgMjQxLjg2NCAxOTguODU2QzI0NS42NzIgMjA3LjM2OCAyNTIuMzkyIDIyNCAyNTIuMzkyIDIyNEMyNTIuMzkyIDIyNCAyMDYuMDI0IDIzNS4wMzIgMjA1Ljc0NCAyMzQuNTI4QzIwNS40NjQgMjMzLjk2OCAyMDIuMzg0IDE5OS4wMjQgMjAyLjM4NCAxOTkuMDI0QzIwMi4wNDggMTk2LjU2IDIwMy40NDggMTk0LjIwOCAyMDUuOCAxOTMuMzEyQzIwOS44MzIgMTkxLjY4OCAyMjEuMDMyIDE4Ny43NjggMjMwLjk0NCAxODguMjE2WiIgZmlsbD0iI0YwNjQzNCIvPgo8cGF0aCBkPSJNMjMwLjk0NCAxODguMjE2QzIzMC45NDQgMTg4LjIxNiAyMTYuMDQ4IDE4OC41NTIgMjA1LjggMTkzLjMxMkwyMDEuNzY4IDE3My4xNTJDMjAxLjc2OCAxNzMuMTUyIDE5Ni42NzIgMTY3LjA0OCAxOTQuODI0IDE2Mi41NjhIMjA3Ljc2QzIwOC42NTYgMTYyLjU2OCAyMDkuNTUyIDE2Mi4yMzIgMjEwLjI4IDE2MS42NzJDMjAxLjU0NCAxNDkuNzQ0IDE5Ny40NTYgMTM0Ljg0OCAyMDAuMDg4IDEzMy40NDhDMjAyLjMyOCAxMzIuMjE2IDIwNy4yNTYgMTM1LjU3NiAyMTEuNjggMTQwLjA1NlYxMjAuMTc2QzIxNyAxMjQuNzY4IDIyNi4wNzIgMTQzLjU4NCAyMjYuMDcyIDE0OS44QzIyNi4wNzIgMTU2LjQ2NCAyMjMuNjA4IDE2Mi43MzYgMjI0Ljk1MiAxNjkuNzM2QzIyNi4yNCAxNzYuNzM2IDIzMC45NDQgMTg4LjIxNiAyMzAuOTQ0IDE4OC4yMTZaIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBkPSJNMjA1Ljc0NCAxOTMuNTkyQzIwNS42ODggMTkzLjU5MiAyMDUuNjMyIDE5My41OTIgMjA1LjYzMiAxOTMuNTM2QzIwNS41NzYgMTkzLjQ4IDIwNS41MiAxOTMuNDI0IDIwNS40NjQgMTkzLjM2OEwyMDEuNDMyIDE3My4yNjRDMjAwLjg3MiAxNzIuNTkyIDE5Ni4yOCAxNjYuOTkyIDE5NC40ODggMTYyLjYyNEMxOTQuNDMyIDE2Mi41MTIgMTk0LjQ4OCAxNjIuNDU2IDE5NC41NDQgMTYyLjM0NEMxOTQuNiAxNjIuMjg4IDE5NC43MTIgMTYyLjIzMiAxOTQuNzY4IDE2Mi4yMzJIMjA3LjcwNEMyMDguNDg4IDE2Mi4yMzIgMjA5LjIxNiAxNjIuMDA4IDIwOS44MzIgMTYxLjU2QzIwNi4zMDQgMTU2LjY4OCAyMDMuNDQ4IDE1MS4zMTIgMjAxLjMyIDE0NS43MTJDMTk5LjQ3MiAxNDAuNzI4IDE5OC42MzIgMTM2LjUyOCAxOTkuMDggMTM0LjQ1NkMxOTkuMTM2IDEzMy45NTIgMTk5LjQxNiAxMzMuNDQ4IDE5OS44NjQgMTMzLjE2OEMyMDIuMzg0IDEzMS44MjQgMjA3LjMxMiAxMzUuNDA4IDIxMS4zNDQgMTM5LjMyOFYxMjAuMTJDMjExLjM0NCAxMjAuMDA4IDIxMS40IDExOS44OTYgMjExLjUxMiAxMTkuODRDMjExLjYyNCAxMTkuNzg0IDIxMS43MzYgMTE5Ljc4NCAyMTEuNzkyIDExOS44OTZDMjE3LjA1NiAxMjQuNDMyIDIyNi4yNCAxNDMuNDE2IDIyNi4yNCAxNDkuNzQ0QzIyNi4xODQgMTUyLjMyIDIyNS45MDQgMTU0Ljk1MiAyMjUuNDU2IDE1Ny41MjhDMjI0Ljg5NiAxNjEuMzkyIDIyNC4yOCAxNjUuNDI0IDIyNS4xMiAxNjkuNjI0QzIyNi40NjQgMTc2LjUxMiAyMzEuMTEyIDE4Ny45MzYgMjMxLjExMiAxODguMDQ4QzIzMS4xNjggMTg4LjEwNCAyMzEuMTY4IDE4OC4yMTYgMjMxLjExMiAxODguMzI4QzIzMS4wNTYgMTg4LjM4NCAyMzAuOTQ0IDE4OC40NCAyMzAuODg4IDE4OC40NEMyMzAuNzIgMTg4LjQ0IDIxNS45MzYgMTg4LjgzMiAyMDUuODU2IDE5My41MzZDMjA1Ljg1NiAxOTMuNTkyIDIwNS44IDE5My41OTIgMjA1Ljc0NCAxOTMuNTkyWk0xOTUuMjE2IDE2Mi44NDhDMTk3LjEyIDE2Ny4yNzIgMjAxLjg4IDE3Mi45MjggMjAxLjkzNiAxNzIuOTg0QzIwMS45OTIgMTczLjA0IDIwMS45OTIgMTczLjA0IDIwMS45OTIgMTczLjA5NkwyMDUuOTY4IDE5Mi44NjRDMjE1LjIwOCAxODguNjY0IDIyOC4wMzIgMTg3Ljk5MiAyMzAuNDk2IDE4Ny44OEMyMjkuNjU2IDE4NS44MDggMjI1Ljc5MiAxNzUuOTUyIDIyNC42MTYgMTY5LjczNkMyMjMuNzc2IDE2NS40MjQgMjI0LjM5MiAxNjEuMzkyIDIyNC45NTIgMTU3LjQxNkMyMjUuNCAxNTQuODk2IDIyNS42MjQgMTUyLjMyIDIyNS42OCAxNDkuNzQ0QzIyNS42OCAxNDMuNjk2IDIxNy4xNjggMTI1Ljk0NCAyMTEuOTA0IDEyMC43OTJWMTQwQzIxMS45MDQgMTQwLjExMiAyMTEuODQ4IDE0MC4yMjQgMjExLjczNiAxNDAuMjhDMjExLjYyNCAxNDAuMzM2IDIxMS41MTIgMTQwLjI4IDIxMS40IDE0MC4yMjRDMjA2LjUyOCAxMzUuMjk2IDIwMS45OTIgMTMyLjYwOCAyMDAuMTQ0IDEzMy42NzJDMTk5Ljg2NCAxMzMuODk2IDE5OS42NCAxMzQuMjMyIDE5OS42NCAxMzQuNTY4QzE5OC44IDEzOC4yNjQgMjAyLjY2NCAxNTAuODY0IDIxMC40NDggMTYxLjQ0OEMyMTAuNTYgMTYxLjU2IDIxMC41MDQgMTYxLjcyOCAyMTAuMzkyIDE2MS44NEMyMDkuNjY0IDE2Mi40NTYgMjA4LjcxMiAxNjIuNzkyIDIwNy43MDQgMTYyLjc5MkwxOTUuMjE2IDE2Mi44NDhaIiBmaWxsPSIjMTExODI3Ii8+CjxwYXRoIGQ9Ik0yMTcuMjggMTQ1Ljk5MkMyMTcuMjI0IDE0NS45OTIgMjE3LjExMiAxNDUuOTM2IDIxNy4wNTYgMTQ1Ljg4QzIxNC4wODggMTQyLjY4OCAyMTEuNDU2IDE0MC4yOCAyMTEuNDU2IDE0MC4yOEMyMTEuMzQ0IDE0MC4xNjggMjExLjM0NCAxNDAgMjExLjQ1NiAxMzkuODg4QzIxMS41NjggMTM5Ljc3NiAyMTEuNzM2IDEzOS43NzYgMjExLjg0OCAxMzkuODg4QzIxMS44NDggMTM5Ljg4OCAyMTQuNDggMTQyLjM1MiAyMTcuNTA0IDE0NS41NDRDMjE3LjYxNiAxNDUuNjU2IDIxNy42MTYgMTQ1LjgyNCAyMTcuNTA0IDE0NS45MzZDMjE3LjQ0OCAxNDUuOTM2IDIxNy4zMzYgMTQ1Ljk5MiAyMTcuMjggMTQ1Ljk5MloiIGZpbGw9IiMxMTE4MjciLz4KPHBhdGggZD0iTTIxMi4yOTcgMTY0Ljk3NkMyMTIuMTg1IDE2NC45NzYgMjEyLjEyOSAxNjQuOTIgMjEyLjA3MyAxNjQuODY0TDIxMC4wMDEgMTYxLjg0QzIwOS44ODkgMTYxLjcyOCAyMDkuOTQ1IDE2MS41MDQgMjEwLjA1NyAxNjEuNDQ4QzIxMC4xNjkgMTYxLjMzNiAyMTAuMzkyIDE2MS4zOTIgMjEwLjQ0OCAxNjEuNTA0TDIxMi41MjEgMTY0LjU4NEMyMTIuNjMzIDE2NC42OTYgMjEyLjU3NiAxNjQuODY0IDIxMi40NjQgMTY0Ljk3NkMyMTIuNDA4IDE2NC45NzYgMjEyLjM1MyAxNjQuOTc2IDIxMi4yOTcgMTY0Ljk3NloiIGZpbGw9IiMxMTE4MjciLz4KPHBhdGggZD0iTTQ3LjcxMiAxODguMjE2QzQzLjM0NCAxODguMzI4IDQwLjYgMTkwLjM0NCAzNi43OTIgMTk4Ljg1NkMzMi45ODQgMjA3LjM2OCAyNi4yMDggMjI0IDI2LjIwOCAyMjRDMjYuMjA4IDIyNCA3Mi41NzYgMjM1LjAzMiA3Mi44NTYgMjM0LjUyOEM3My4xMzYgMjMzLjk2OCA3Ni4yNzIgMTk5LjAyNCA3Ni4yNzIgMTk5LjAyNEM3Ni42MDggMTk2LjU2IDc1LjIwOCAxOTQuMjA4IDcyLjg1NiAxOTMuMzEyQzY4LjgyNCAxOTEuNjg4IDU3LjYyNCAxODcuNzY4IDQ3LjcxMiAxODguMjE2WiIgZmlsbD0iI0YwNjQzNCIvPgo8cGF0aCBkPSJNNDcuNzExOSAxODguMjE2QzQ3LjcxMTkgMTg4LjIxNiA2Mi42MDc5IDE4OC41NTIgNzIuODU1OSAxOTMuMzEyTDc2Ljg4NzkgMTczLjE1MkM3Ni44ODc5IDE3My4xNTIgODEuOTgzOSAxNjcuMTA0IDgzLjgzMTkgMTYyLjU2OEg3MC44OTU5QzY5Ljk5OTkgMTYyLjU2OCA2OS4xMDM5IDE2Mi4yMzIgNjguMzc1OSAxNjEuNjcyQzc3LjExMTkgMTQ5Ljc0NCA4MS4xOTk5IDEzNC44NDggNzguNTY3OSAxMzMuNDQ4Qzc2LjMyNzkgMTMyLjIxNiA3MS4zOTk5IDEzNS41NzYgNjYuOTc1OSAxNDAuMDU2VjEyMC4xNzZDNjEuNjU1OSAxMjQuNzY4IDUyLjU4MzkgMTQzLjU4NCA1Mi41ODM5IDE0OS44QzUyLjU4MzkgMTU2LjQ2NCA1NS4wNDc5IDE2Mi43MzYgNTMuNzAzOSAxNjkuNzM2QzUyLjM1OTkgMTc2LjczNiA0Ny43MTE5IDE4OC4yMTYgNDcuNzExOSAxODguMjE2WiIgZmlsbD0id2hpdGUiLz4KPHBhdGggZD0iTTcyLjg1NiAxOTMuNTkyQzcyLjggMTkzLjU5MiA3Mi44IDE5My41OTIgNzIuNzQ0IDE5My41MzZDNjIuNjA4IDE4OC44MzIgNDcuODI0IDE4OC40NCA0Ny42NTYgMTg4LjQ0QzQ3LjU0NCAxODguNDQgNDcuNDg4IDE4OC4zODQgNDcuNDMyIDE4OC4zMjhDNDcuMzc2IDE4OC4yNzIgNDcuMzc2IDE4OC4xNiA0Ny4zNzYgMTg4LjA0OEM0Ny40MzIgMTg3LjkzNiA1Mi4wOCAxNzYuNTY4IDUzLjQyNCAxNjkuNjI0QzU0LjIwOCAxNjUuNDI0IDUzLjY0OCAxNjEuMzkyIDUzLjA4OCAxNTcuNTI4QzUyLjY0IDE1NC45NTIgNTIuNDE2IDE1Mi4zNzYgNTIuMzA0IDE0OS43NDRDNTIuMzA0IDE0My40MTYgNjEuNDg4IDEyNC40MzIgNjYuNzUyIDExOS44OTZDNjYuODY0IDExOS44NCA2Ni45NzYgMTE5Ljc4NCA2Ny4wODggMTE5Ljg0QzY3LjIgMTE5Ljg5NiA2Ny4yNTYgMTIwLjAwOCA2Ny4yNTYgMTIwLjEyVjEzOS4zMjhDNzEuMjMyIDEzNS4zNTIgNzYuMjE2IDEzMS44MjQgNzguNzM2IDEzMy4xNjhDNzkuMTg0IDEzMy40NDggNzkuNDY0IDEzMy45NTIgNzkuNTIgMTM0LjQ1NkM3OS45NjggMTM2LjUyOCA3OS4xODQgMTQwLjcyOCA3Ny4yOCAxNDUuNzEyQzc1LjE1MiAxNTEuMzY4IDcyLjI5NiAxNTYuNjg4IDY4Ljc2OCAxNjEuNTZDNjkuMzg0IDE2Mi4wMDggNzAuMTEyIDE2Mi4yMzIgNzAuODk2IDE2Mi4yMzJIODMuODMyQzgzLjk0NCAxNjIuMjMyIDg0IDE2Mi4yODggODQuMDU2IDE2Mi4zNDRDODQuMTEyIDE2Mi40IDg0LjExMiAxNjIuNTEyIDg0LjExMiAxNjIuNjI0QzgyLjMyIDE2Ni45OTIgNzcuNzI4IDE3Mi41OTIgNzcuMTY4IDE3My4yNjRMNzMuMTM2IDE5My4zNjhDNzMuMTM2IDE5My40OCA3My4wOCAxOTMuNTM2IDcyLjk2OCAxOTMuNTM2QzcyLjk2OCAxOTMuNTkyIDcyLjkxMiAxOTMuNTkyIDcyLjg1NiAxOTMuNTkyWk00OC4xMDQgMTg3LjkzNkM1MC41NjggMTg4LjA0OCA2My4zOTIgMTg4LjcyIDcyLjYzMiAxOTIuOTJMNzYuNjA4IDE3My4xNTJDNzYuNjA4IDE3My4wOTYgNzYuNjY0IDE3My4wNCA3Ni42NjQgMTczLjA0Qzc2LjcyIDE3Mi45ODQgODEuNDggMTY3LjI3MiA4My4zODQgMTYyLjkwNEg3MC44NEM2OS44MzIgMTYyLjkwNCA2OC44OCAxNjIuNTY4IDY4LjE1MiAxNjEuOTUyQzY4LjA0IDE2MS44NCA2OC4wNCAxNjEuNjcyIDY4LjA5NiAxNjEuNTZDNzUuODI0IDE1MC45NzYgNzkuNzQ0IDEzOC4zMiA3OC45MDQgMTM0LjY4Qzc4Ljg0OCAxMzQuMzQ0IDc4LjY4IDEzNC4wMDggNzguNCAxMzMuNzg0Qzc2LjQ5NiAxMzIuNzc2IDcxLjk2IDEzNS40MDggNjcuMTQ0IDE0MC4zMzZDNjcuMDMyIDE0MC40NDggNjYuODY0IDE0MC40NDggNjYuNzUyIDE0MC4zMzZDNjYuNjk2IDE0MC4yOCA2Ni42NCAxNDAuMjI0IDY2LjY0IDE0MC4xMTJWMTIwLjkwNEM2MS4zNzYgMTI2LjA1NiA1Mi44NjQgMTQzLjgwOCA1Mi44NjQgMTQ5Ljg1NkM1Mi45MiAxNTIuNDMyIDUzLjIgMTU1LjAwOCA1My41OTIgMTU3LjUyOEM1NC4xNTIgMTYxLjQ0OCA1NC43NjggMTY1LjUzNiA1My45MjggMTY5Ljg0OEM1Mi44MDggMTc2LjAwOCA0OC45NDQgMTg1Ljg2NCA0OC4xMDQgMTg3LjkzNloiIGZpbGw9IiMxMTE4MjciLz4KPHBhdGggZD0iTTYxLjM3NTcgMTQ1Ljk5MkM2MS4yMDc3IDE0NS45OTIgNjEuMDk1NyAxNDUuODggNjEuMDk1NyAxNDUuNzEyQzYxLjA5NTcgMTQ1LjY1NiA2MS4wOTU3IDE0NS41NDQgNjEuMjA3NyAxNDUuNDg4QzY0LjE3NTcgMTQyLjI5NiA2Ni44MDc3IDEzOS44ODggNjYuODYzNyAxMzkuODMyQzY2Ljk3NTcgMTM5LjcyIDY3LjE0MzcgMTM5LjcyIDY3LjI1NTcgMTM5LjgzMkM2Ny4zNjc3IDEzOS45NDQgNjcuMzY3NyAxNDAuMTEyIDY3LjI1NTcgMTQwLjIyNEM2Ny4xOTk3IDE0MC4yMjQgNjQuNjIzNyAxNDIuNjMyIDYxLjY1NTcgMTQ1LjgyNEM2MS40ODc3IDE0NS45MzYgNjEuNDMxNyAxNDUuOTkyIDYxLjM3NTcgMTQ1Ljk5MloiIGZpbGw9IiMxMTE4MjciLz4KPHBhdGggZD0iTTY2LjMwMzYgMTY0Ljk3NkM2Ni4yNDc2IDE2NC45NzYgNjYuMTkxNiAxNjQuOTc2IDY2LjEzNTYgMTY0LjkyQzY2LjAyMzYgMTY0LjgwOCA2NS45Njc2IDE2NC42NCA2Ni4wNzk2IDE2NC41MjhMNjguMTUxNiAxNjEuNDQ4QzY4LjI2MzYgMTYxLjMzNiA2OC40MzE2IDE2MS4yOCA2OC41NDM2IDE2MS4zOTJDNjguNjU1NiAxNjEuNTA0IDY4LjcxMTYgMTYxLjY3MiA2OC41OTk2IDE2MS43ODRMNjYuNDcxNiAxNjQuODY0QzY2LjQ3MTYgMTY0Ljk3NiA2Ni4zNTk2IDE2NC45NzYgNjYuMzAzNiAxNjQuOTc2WiIgZmlsbD0iIzExMTgyNyIvPgo8cGF0aCBkPSJNMTA1LjA1NiAxNTYuOTY4QzEwNC44ODggMTU2Ljk2OCAxMDQuNzc2IDE1Ni44NTYgMTA0Ljc3NiAxNTYuNjg4Vjc0LjQyMzZDMTA0Ljc3NiA3NC4yNTU2IDEwNC44ODggNzQuMTQzNiAxMDUuMDU2IDc0LjE0MzZDMTA1LjIyNCA3NC4xNDM2IDEwNS4zMzYgNzQuMjU1NiAxMDUuMzM2IDc0LjQyMzZWMTU2LjY4OEMxMDUuMzkyIDE1Ni44NTYgMTA1LjIyNCAxNTYuOTY4IDEwNS4wNTYgMTU2Ljk2OFoiIGZpbGw9IiMxMTE4MjciLz4KPHBhdGggZD0iTTk5LjQwMDMgNzkuMzUxNkg3OC43MzYzVjg1LjQ1NTZIOTkuNDAwM1Y3OS4zNTE2WiIgZmlsbD0iI0YwNjQzNCIvPgo8cGF0aCBkPSJNOTkuMzQ0NCA4NS42Nzk2SDc4LjY4MDRDNzguNTEyNCA4NS42Nzk2IDc4LjQwMDQgODUuNTY3NiA3OC40MDA0IDg1LjM5OTZWNzkuMjk1NkM3OC40MDA0IDc5LjEyNzYgNzguNTEyNCA3OS4wMTU2IDc4LjY4MDQgNzkuMDE1Nkg5OS4zNDQ0Qzk5LjUxMjQgNzkuMDE1NiA5OS42MjQ0IDc5LjEyNzYgOTkuNjI0NCA3OS4yOTU2Vjg1LjM5OTZDOTkuNjI0NCA4NS41Njc2IDk5LjUxMjQgODUuNjc5NiA5OS4zNDQ0IDg1LjY3OTZaTTc5LjAxNjQgODUuMTE5Nkg5OS4wNjQ0Vjc5LjYzMTZINzkuMDE2NFY4NS4xMTk2WiIgZmlsbD0iIzExMTgyNyIvPgo8cGF0aCBkPSJNODAuNzUyIDgzLjEwMzNMODMuMTYgODAuNjk1M0M4My4zMjggODAuNTI3MyA4My42NjQgODAuNTI3MyA4My44MzIgODAuNjk1M0M4NCA4MC44NjMzIDg0IDgxLjE5OTMgODMuODMyIDgxLjM2NzNMODEuNDI0IDgzLjc3NTNMODAuNzUyIDgzLjEwMzNaIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBkPSJNODEuNDI0NyA4NC4wNTU3QzgxLjM2ODcgODQuMDU1NyA4MS4yNTY3IDg0LjA1NTcgODEuMjAwNyA4My45OTk3TDgwLjUyODcgODMuMzI3N0M4MC40NzI3IDgzLjI3MTcgODAuNDcyNyA4My4yMTU3IDgwLjQ3MjcgODMuMTAzN0M4MC40NzI3IDgzLjA0NzcgODAuNTI4NyA4Mi45MzU3IDgwLjUyODcgODIuODc5N0w4Mi45MzY3IDgwLjQ3MTdDODMuMjE2NyA4MC4xOTE3IDgzLjcyMDcgODAuMTkxNyA4NC4wNTY3IDgwLjQ3MTdDODQuMzkyNyA4MC43NTE3IDg0LjMzNjcgODEuMjU1NyA4NC4wNTY3IDgxLjU5MTdMODEuNjQ4NyA4My45OTk3QzgxLjU5MjcgODMuOTk5NyA4MS40ODA3IDg0LjA1NTcgODEuNDI0NyA4NC4wNTU3Wk04MS4xNDQ3IDgzLjEwMzdMODEuNDI0NyA4My4zODM3TDgzLjYwODcgODEuMTk5N0M4My42NjQ3IDgxLjE0MzcgODMuNjY0NyA4MC45NzU3IDgzLjYwODcgODAuOTE5N0M4My41NTI3IDgwLjg2MzcgODMuMzg0NyA4MC44NjM3IDgzLjMyODcgODAuOTE5N0w4MS4xNDQ3IDgzLjEwMzdaIiBmaWxsPSIjMTExODI3Ii8+CjxwYXRoIGQ9Ik04MS40MjQzIDgzLjc3NTVMODAuNzUyMyA4My4xMDM1TDgwLjM2MDQgODQuMTExNUw4MS40MjQzIDgzLjc3NTVaIiBmaWxsPSIjMTExODI3Ii8+CjxwYXRoIGQ9Ik04MC4zNjA4IDg0LjQ0NzJDODAuMzA0OCA4NC40NDcyIDgwLjE5MjggODQuMzkxMiA4MC4xMzY4IDg0LjMzNTJDODAuMDgwOCA4NC4yNzkyIDgwLjAyNDggODQuMTY3MiA4MC4wODA4IDg0LjA1NTJMODAuNDcyOCA4Mi45OTEyQzgwLjUyODggODIuODc5MiA4MC41ODQ4IDgyLjgyMzIgODAuNjk2OCA4Mi44MjMyQzgwLjgwODggODIuODIzMiA4MC44NjQ4IDgyLjgyMzIgODAuOTc2OCA4Mi44NzkyTDgxLjY0ODggODMuNTUxMkM4MS43NjA4IDgzLjY2MzIgODEuNzYwOCA4My44MzEyIDgxLjY0ODggODMuOTQzMkM4MS41OTI4IDgzLjk5OTIgODEuNTkyOCA4My45OTkyIDgxLjUzNjggODMuOTk5Mkw4MC40NzI4IDg0LjM5MTJDODAuNDE2OCA4NC40NDcyIDgwLjQxNjggODQuNDQ3MiA4MC4zNjA4IDg0LjQ0NzJaTTgwLjg2NDggODMuNjA3MlY4My42NjMySDgwLjkyMDhMODAuODY0OCA4My42MDcyWiIgZmlsbD0iIzExMTgyNyIvPgo8cGF0aCBkPSJNOTkuMzQ0NCA5Ni43MTE0SDc4LjY4MDRDNzguNTEyNCA5Ni43MTE0IDc4LjQwMDQgOTYuNTk5NCA3OC40MDA0IDk2LjQzMTRWOTEuMjIzNEM3OC40MDA0IDkxLjA1NTQgNzguNTEyNCA5MC45NDM0IDc4LjY4MDQgOTAuOTQzNEg5OS4zNDQ0Qzk5LjUxMjQgOTAuOTQzNCA5OS42MjQ0IDkxLjA1NTQgOTkuNjI0NCA5MS4yMjM0Vjk2LjQzMTRDOTkuNjgwNCA5Ni41NDM0IDk5LjUxMjQgOTYuNzExNCA5OS4zNDQ0IDk2LjcxMTRaTTc5LjAxNjQgOTYuMTUxNEg5OS4wNjQ0VjkxLjUwMzRINzkuMDE2NFY5Ni4xNTE0WiIgZmlsbD0iIzExMTgyNyIvPgo8cGF0aCBkPSJNOTkuMzQ0NCAxMDUuMTEySDc4LjY4MDRDNzguNTEyNCAxMDUuMTEyIDc4LjQwMDQgMTA1IDc4LjQwMDQgMTA0LjgzMlY5OS42MjM4Qzc4LjQwMDQgOTkuNDU1NyA3OC41MTI0IDk5LjM0MzggNzguNjgwNCA5OS4zNDM4SDk5LjM0NDRDOTkuNTEyNCA5OS4zNDM4IDk5LjYyNDQgOTkuNDU1NyA5OS42MjQ0IDk5LjYyMzhWMTA0LjgzMkM5OS42ODA0IDEwNSA5OS41MTI0IDEwNS4xMTIgOTkuMzQ0NCAxMDUuMTEyWk03OS4wMTY0IDEwNC41NTJIOTkuMDY0NFY5OS45MDM4SDc5LjAxNjRWMTA0LjU1MloiIGZpbGw9IiMxMTE4MjciLz4KPHBhdGggZD0iTTk5LjM0NDQgMTEzLjUxMUg3OC42ODA0Qzc4LjUxMjQgMTEzLjUxMSA3OC40MDA0IDExMy4zOTkgNzguNDAwNCAxMTMuMjMxVjEwOC4wMjNDNzguNDAwNCAxMDcuODU1IDc4LjUxMjQgMTA3Ljc0MyA3OC42ODA0IDEwNy43NDNIOTkuMzQ0NEM5OS41MTI0IDEwNy43NDMgOTkuNjI0NCAxMDcuODU1IDk5LjYyNDQgMTA4LjAyM1YxMTMuMjMxQzk5LjY4MDQgMTEzLjM5OSA5OS41MTI0IDExMy41MTEgOTkuMzQ0NCAxMTMuNTExWk03OS4wMTY0IDExMi45NTFIOTkuMDY0NFYxMDguMzAzSDc5LjAxNjRWMTEyLjk1MVoiIGZpbGw9IiMxMTE4MjciLz4KPHBhdGggZD0iTTk5LjM0NDQgMTIxLjkxMkg3OC42ODA0Qzc4LjUxMjQgMTIxLjkxMiA3OC40MDA0IDEyMS44IDc4LjQwMDQgMTIxLjYzMlYxMTYuNDI0Qzc4LjQwMDQgMTE2LjI1NiA3OC41MTI0IDExNi4xNDQgNzguNjgwNCAxMTYuMTQ0SDk5LjM0NDRDOTkuNTEyNCAxMTYuMTQ0IDk5LjYyNDQgMTE2LjI1NiA5OS42MjQ0IDExNi40MjRWMTIxLjYzMkM5OS42MjQ0IDEyMS44IDk5LjUxMjQgMTIxLjkxMiA5OS4zNDQ0IDEyMS45MTJaTTc5LjAxNjQgMTIxLjM1Mkg5OS4wNjQ0VjExNi43MDRINzkuMDE2NFYxMjEuMzUyWiIgZmlsbD0iIzExMTgyNyIvPgo8cGF0aCBkPSJNMTM0LjE3NyA5MS41MDM0SDExOC40OTdDMTE4LjMyOSA5MS41MDM0IDExOC4yMTcgOTEuMzkxNCAxMTguMjE3IDkxLjIyMzRDMTE4LjIxNyA5MS4wNTU0IDExOC4zMjkgOTAuOTQzNCAxMTguNDk3IDkwLjk0MzRIMTM0LjE3N0MxMzQuMzQ1IDkwLjk0MzQgMTM0LjQ1NyA5MS4wNTU0IDEzNC40NTcgOTEuMjIzNEMxMzQuNTEzIDkxLjMzNTQgMTM0LjM0NSA5MS41MDM0IDEzNC4xNzcgOTEuNTAzNFoiIGZpbGw9IiMxMTE4MjciLz4KPHBhdGggZD0iTTE5Mi45MiA5MS41MDM0SDE0MC4zOTJDMTQwLjIyNCA5MS41MDM0IDE0MC4xMTIgOTEuMzkxNCAxNDAuMTEyIDkxLjIyMzRDMTQwLjExMiA5MS4wNTU0IDE0MC4yMjQgOTAuOTQzNCAxNDAuMzkyIDkwLjk0MzRIMTkyLjkyQzE5My4wODggOTAuOTQzNCAxOTMuMiA5MS4wNTU0IDE5My4yIDkxLjIyMzRDMTkzLjIgOTEuMzkxNCAxOTMuMDg4IDkxLjUwMzQgMTkyLjkyIDkxLjUwMzRaIiBmaWxsPSIjMTExODI3Ii8+CjxwYXRoIGQ9Ik0xOTIuOTIgOTQuOTE5NEgxNDAuMzkyQzE0MC4yMjQgOTQuOTE5NCAxNDAuMTEyIDk0LjgwNzQgMTQwLjExMiA5NC42Mzk0QzE0MC4xMTIgOTQuNDcxNCAxNDAuMjI0IDk0LjM1OTQgMTQwLjM5MiA5NC4zNTk0SDE5Mi45MkMxOTMuMDg4IDk0LjM1OTQgMTkzLjIgOTQuNDcxNCAxOTMuMiA5NC42Mzk0QzE5My4yIDk0LjgwNzQgMTkzLjA4OCA5NC45MTk0IDE5Mi45MiA5NC45MTk0WiIgZmlsbD0iIzExMTgyNyIvPgo8cGF0aCBkPSJNMTM0LjE3NyAxMDAuNzk5SDExOC40OTdDMTE4LjMyOSAxMDAuNzk5IDExOC4yMTcgMTAwLjY4NyAxMTguMjE3IDEwMC41MTlDMTE4LjIxNyAxMDAuMzUxIDExOC4zMjkgMTAwLjIzOSAxMTguNDk3IDEwMC4yMzlIMTM0LjE3N0MxMzQuMzQ1IDEwMC4yMzkgMTM0LjQ1NyAxMDAuMzUxIDEzNC40NTcgMTAwLjUxOUMxMzQuNDU3IDEwMC42ODcgMTM0LjM0NSAxMDAuNzk5IDEzNC4xNzcgMTAwLjc5OVoiIGZpbGw9IiMxMTE4MjciLz4KPHBhdGggZD0iTTE5Mi45MiAxMDAuNzk5SDE0MC4zOTJDMTQwLjIyNCAxMDAuNzk5IDE0MC4xMTIgMTAwLjY4NyAxNDAuMTEyIDEwMC41MTlDMTQwLjExMiAxMDAuMzUxIDE0MC4yMjQgMTAwLjIzOSAxNDAuMzkyIDEwMC4yMzlIMTkyLjkyQzE5My4wODggMTAwLjIzOSAxOTMuMiAxMDAuMzUxIDE5My4yIDEwMC41MTlDMTkzLjIgMTAwLjYzMSAxOTMuMDg4IDEwMC43OTkgMTkyLjkyIDEwMC43OTlaIiBmaWxsPSIjMTExODI3Ii8+CjxwYXRoIGQ9Ik0xOTIuOTIgMTA0LjIxNUgxNDAuMzkyQzE0MC4yMjQgMTA0LjIxNSAxNDAuMTEyIDEwNC4xMDMgMTQwLjExMiAxMDMuOTM1QzE0MC4xMTIgMTAzLjc2NyAxNDAuMjI0IDEwMy42NTUgMTQwLjM5MiAxMDMuNjU1SDE5Mi45MkMxOTMuMDg4IDEwMy42NTUgMTkzLjIgMTAzLjc2NyAxOTMuMiAxMDMuOTM1QzE5My4yIDEwNC4xMDMgMTkzLjA4OCAxMDQuMjE1IDE5Mi45MiAxMDQuMjE1WiIgZmlsbD0iIzExMTgyNyIvPgo8cGF0aCBkPSJNMTM0LjE3NyAxMTAuMDk1SDExOC40OTdDMTE4LjMyOSAxMTAuMDk1IDExOC4yMTcgMTA5Ljk4MyAxMTguMjE3IDEwOS44MTVDMTE4LjIxNyAxMDkuNjQ3IDExOC4zMjkgMTA5LjUzNSAxMTguNDk3IDEwOS41MzVIMTM0LjE3N0MxMzQuMzQ1IDEwOS41MzUgMTM0LjQ1NyAxMDkuNjQ3IDEzNC40NTcgMTA5LjgxNUMxMzQuNDU3IDEwOS45ODMgMTM0LjM0NSAxMTAuMDk1IDEzNC4xNzcgMTEwLjA5NVoiIGZpbGw9IiMxMTE4MjciLz4KPHBhdGggZD0iTTE5Mi45MiAxMTAuMDk1SDE0MC4zOTJDMTQwLjIyNCAxMTAuMDk1IDE0MC4xMTIgMTA5Ljk4MyAxNDAuMTEyIDEwOS44MTVDMTQwLjExMiAxMDkuNjQ3IDE0MC4yMjQgMTA5LjUzNSAxNDAuMzkyIDEwOS41MzVIMTkyLjkyQzE5My4wODggMTA5LjUzNSAxOTMuMiAxMDkuNjQ3IDE5My4yIDEwOS44MTVDMTkzLjIgMTA5LjkyNyAxOTMuMDg4IDExMC4wOTUgMTkyLjkyIDExMC4wOTVaIiBmaWxsPSIjMTExODI3Ii8+CjxwYXRoIGQ9Ik0xOTIuOTIgMTEzLjUxMUgxNDAuMzkyQzE0MC4yMjQgMTEzLjUxMSAxNDAuMTEyIDExMy4zOTkgMTQwLjExMiAxMTMuMjMxQzE0MC4xMTIgMTEzLjA2MyAxNDAuMjI0IDExMi45NTEgMTQwLjM5MiAxMTIuOTUxSDE5Mi45MkMxOTMuMDg4IDExMi45NTEgMTkzLjIgMTEzLjA2MyAxOTMuMiAxMTMuMjMxQzE5My4yIDExMy4zOTkgMTkzLjA4OCAxMTMuNTExIDE5Mi45MiAxMTMuNTExWiIgZmlsbD0iIzExMTgyNyIvPgo8cGF0aCBkPSJNMTM0LjE3NyAxMTkuMzM1SDExOC40OTdDMTE4LjMyOSAxMTkuMzM1IDExOC4yMTcgMTE5LjIyMyAxMTguMjE3IDExOS4wNTVDMTE4LjIxNyAxMTguODg3IDExOC4zMjkgMTE4Ljc3NSAxMTguNDk3IDExOC43NzVIMTM0LjE3N0MxMzQuMzQ1IDExOC43NzUgMTM0LjQ1NyAxMTguODg3IDEzNC40NTcgMTE5LjA1NUMxMzQuNTEzIDExOS4yMjMgMTM0LjM0NSAxMTkuMzM1IDEzNC4xNzcgMTE5LjMzNVoiIGZpbGw9IiMxMTE4MjciLz4KPHBhdGggZD0iTTE5Mi45MiAxMTkuMzM1SDE0MC4zOTJDMTQwLjIyNCAxMTkuMzM1IDE0MC4xMTIgMTE5LjIyMyAxNDAuMTEyIDExOS4wNTVDMTQwLjExMiAxMTguODg3IDE0MC4yMjQgMTE4Ljc3NSAxNDAuMzkyIDExOC43NzVIMTkyLjkyQzE5My4wODggMTE4Ljc3NSAxOTMuMiAxMTguODg3IDE5My4yIDExOS4wNTVDMTkzLjIgMTE5LjIyMyAxOTMuMDg4IDExOS4zMzUgMTkyLjkyIDExOS4zMzVaIiBmaWxsPSIjMTExODI3Ii8+CjxwYXRoIGQ9Ik0xOTIuOTIgMTIyLjgwOEgxNDAuMzkyQzE0MC4yMjQgMTIyLjgwOCAxNDAuMTEyIDEyMi42OTYgMTQwLjExMiAxMjIuNTI4QzE0MC4xMTIgMTIyLjM2IDE0MC4yMjQgMTIyLjI0OCAxNDAuMzkyIDEyMi4yNDhIMTkyLjkyQzE5My4wODggMTIyLjI0OCAxOTMuMiAxMjIuMzYgMTkzLjIgMTIyLjUyOEMxOTMuMiAxMjIuNjk2IDE5My4wODggMTIyLjgwOCAxOTIuOTIgMTIyLjgwOFoiIGZpbGw9IiMxMTE4MjciLz4KPHBhdGggZD0iTTEzNC4xNzcgMTI4LjYzMUgxMTguNDk3QzExOC4zMjkgMTI4LjYzMSAxMTguMjE3IDEyOC41MTkgMTE4LjIxNyAxMjguMzUxQzExOC4yMTcgMTI4LjE4MyAxMTguMzI5IDEyOC4wNzEgMTE4LjQ5NyAxMjguMDcxSDEzNC4xNzdDMTM0LjM0NSAxMjguMDcxIDEzNC40NTcgMTI4LjE4MyAxMzQuNDU3IDEyOC4zNTFDMTM0LjUxMyAxMjguNTE5IDEzNC4zNDUgMTI4LjYzMSAxMzQuMTc3IDEyOC42MzFaIiBmaWxsPSIjMTExODI3Ii8+CjxwYXRoIGQ9Ik0xOTIuOTIgMTI4LjYzMUgxNDAuMzkyQzE0MC4yMjQgMTI4LjYzMSAxNDAuMTEyIDEyOC41MTkgMTQwLjExMiAxMjguMzUxQzE0MC4xMTIgMTI4LjE4MyAxNDAuMjI0IDEyOC4wNzEgMTQwLjM5MiAxMjguMDcxSDE5Mi45MkMxOTMuMDg4IDEyOC4wNzEgMTkzLjIgMTI4LjE4MyAxOTMuMiAxMjguMzUxQzE5My4yIDEyOC41MTkgMTkzLjA4OCAxMjguNjMxIDE5Mi45MiAxMjguNjMxWiIgZmlsbD0iIzExMTgyNyIvPgo8cGF0aCBkPSJNMTkyLjkyIDEzMi4xMDRIMTQwLjM5MkMxNDAuMjI0IDEzMi4xMDQgMTQwLjExMiAxMzEuOTkyIDE0MC4xMTIgMTMxLjgyNEMxNDAuMTEyIDEzMS42NTYgMTQwLjIyNCAxMzEuNTQ0IDE0MC4zOTIgMTMxLjU0NEgxOTIuOTJDMTkzLjA4OCAxMzEuNTQ0IDE5My4yIDEzMS42NTYgMTkzLjIgMTMxLjgyNEMxOTMuMiAxMzEuOTkyIDE5My4wODggMTMyLjEwNCAxOTIuOTIgMTMyLjEwNFoiIGZpbGw9IiMxMTE4MjciLz4KPHBhdGggZD0iTTEzNC4xNzYgODUuNjc5NkgxMTkuMjhDMTE5LjExMiA4NS42Nzk2IDExOSA4NS41Njc2IDExOSA4NS4zOTk2Vjc5LjI5NTZDMTE5IDc5LjEyNzYgMTE5LjExMiA3OS4wMTU2IDExOS4yOCA3OS4wMTU2SDEzNC4yMzJDMTM0LjQgNzkuMDE1NiAxMzQuNTEyIDc5LjEyNzYgMTM0LjUxMiA3OS4yOTU2Vjg1LjM5OTZDMTM0LjQ1NiA4NS41Njc2IDEzNC4zNDQgODUuNjc5NiAxMzQuMTc2IDg1LjY3OTZaTTExOS41MDQgODUuMTE5NkgxMzMuODk2Vjc5LjYzMTZIMTE5LjUwNFY4NS4xMTk2WiIgZmlsbD0iIzExMTgyNyIvPgo8cGF0aCBkPSJNMTkyLjkyIDg1LjY3OTZIMTQwLjM5MkMxNDAuMjI0IDg1LjY3OTYgMTQwLjExMiA4NS41Njc2IDE0MC4xMTIgODUuMzk5NlY3OS4yOTU2QzE0MC4xMTIgNzkuMTI3NiAxNDAuMjI0IDc5LjAxNTYgMTQwLjM5MiA3OS4wMTU2SDE5Mi45MkMxOTMuMDg4IDc5LjAxNTYgMTkzLjIgNzkuMTI3NiAxOTMuMiA3OS4yOTU2Vjg1LjM5OTZDMTkzLjIgODUuNTY3NiAxOTMuMDg4IDg1LjY3OTYgMTkyLjkyIDg1LjY3OTZaTTE0MC42NzIgODUuMTE5NkgxOTIuNjRWNzkuNjMxNkgxNDAuNjcyVjg1LjExOTZaIiBmaWxsPSIjMTExODI3Ii8+CjxwYXRoIGQ9Ik0yMzIuNTEzIDQzLjQwMDRIMTc3Ljk2OVY4OC4yNTY0SDIzMi41MTNWNDMuNDAwNFoiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik0yMzIuNDU2IDg4LjUzNjFIMTc3Ljk2OEMxNzcuOCA4OC41MzYxIDE3Ny42ODggODguNDI0MSAxNzcuNjg4IDg4LjI1NjFWNDMuNDAwMUMxNzcuNjg4IDQzLjIzMjEgMTc3LjggNDMuMTIwMSAxNzcuOTY4IDQzLjEyMDFIMjMyLjQ1NkMyMzIuNjI0IDQzLjEyMDEgMjMyLjczNiA0My4yMzIxIDIzMi43MzYgNDMuNDAwMVY4OC4yNTYxQzIzMi43MzYgODguNDI0MSAyMzIuNjI0IDg4LjUzNjEgMjMyLjQ1NiA4OC41MzYxWk0xNzguMTkyIDg3Ljk3NjFIMjMyLjEyVjQzLjY4MDFIMTc4LjE5MlY4Ny45NzYxWiIgZmlsbD0iIzExMTgyNyIvPgo8cGF0aCBkPSJNMjIxLjU5MyA2MS4zNzZIMTg4LjA0OVY4My42NjRIMjIxLjU5M1Y2MS4zNzZaIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBkPSJNMjIxLjU5MyA4My45NDM3SDE4OC4wNDlDMTg3Ljg4MSA4My45NDM3IDE4Ny43NjkgODMuODMxNyAxODcuNzY5IDgzLjY2MzdWNjEuMzc1N0MxODcuNzY5IDYxLjIwNzcgMTg3Ljg4MSA2MS4wOTU3IDE4OC4wNDkgNjEuMDk1N0gyMjEuNTkzQzIyMS43NjEgNjEuMDk1NyAyMjEuODczIDYxLjIwNzcgMjIxLjg3MyA2MS4zNzU3VjgzLjY2MzdDMjIxLjg3MyA4My43NzU3IDIyMS43NjEgODMuOTQzNyAyMjEuNTkzIDgzLjk0MzdaTTE4OC4zMjkgODMuMzI3N0gyMjEuMzEzVjYxLjU5OTdIMTg4LjMyOVY4My4zMjc3WiIgZmlsbD0iIzExMTgyNyIvPgo8cGF0aCBkPSJNMjIxLjU5MyA2MS4zNzU3TDIxNy4zOTMgNjQuMTc1N0wyMDQuNzkzIDcyLjUxOTdMMTkyLjI0OSA2NC4xNzU3TDE4OC4wNDkgNjEuMzc1N0wxOTIuMjQ5IDU3Ljc5MTdMMjAyLjYwOSA0OC45OTk3TDIwNC43OTMgNDcuMDk1N0wyMDcuMDMzIDQ4Ljk5OTdMMjE3LjM5MyA1Ny43OTE3TDIyMS41OTMgNjEuMzc1N1oiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik0yMDQuNzkzIDcyLjc5OTdDMjA0LjczNyA3Mi43OTk3IDIwNC42ODEgNzIuNzk5NyAyMDQuNjI1IDcyLjc0MzdMMTg3Ljg4MSA2MS41OTk3QzE4Ny44MjUgNjEuNTQzNyAxODcuNzY5IDYxLjQ4NzcgMTg3Ljc2OSA2MS4zNzU3QzE4Ny43NjkgNjEuMjYzNyAxODcuODI1IDYxLjIwNzcgMTg3Ljg4MSA2MS4xNTE3TDIwNC42MjUgNDYuOTI3OEMyMDQuNzM3IDQ2LjgxNTggMjA0LjkwNSA0Ni44MTU4IDIwNS4wMTcgNDYuOTI3OEwyMjEuNzYxIDYxLjE1MTdDMjIxLjgxNyA2MS4yMDc3IDIyMS44NzMgNjEuMzE5NyAyMjEuODczIDYxLjM3NTdDMjIxLjg3MyA2MS40ODc3IDIyMS44MTcgNjEuNTQzNyAyMjEuNzYxIDYxLjU5OTdMMjA0Ljk2MSA3Mi43NDM3QzIwNC45MDUgNzIuNzk5NyAyMDQuODQ5IDcyLjc5OTcgMjA0Ljc5MyA3Mi43OTk3Wk0xODguNDk3IDYxLjMxOTdMMjA0Ljc5MyA3Mi4xMjc4TDIyMS4wODkgNjEuMzE5N0wyMDQuNzkzIDQ3LjQ4NzdMMTg4LjQ5NyA2MS4zMTk3WiIgZmlsbD0iIzExMTgyNyIvPgo8cGF0aCBkPSJNMTg4LjA0OSA4My45NDQ0QzE4Ny45OTMgODMuOTQ0NCAxODcuOTM3IDgzLjk0NDQgMTg3Ljg4MSA4My44ODg0QzE4Ny43NjkgODMuNzc2NCAxODcuNzEzIDgzLjYwODQgMTg3LjgyNSA4My40OTY0TDE5OS40MTcgNjguOTM2NEMxOTkuNTI5IDY4LjgyNDQgMTk5LjY5NyA2OC43Njg0IDE5OS44MDkgNjguODgwNEMxOTkuOTIxIDY4Ljk5MjQgMTk5Ljk3NyA2OS4xNjA0IDE5OS44NjUgNjkuMjcyNEwxODguMjczIDgzLjgzMjRDMTg4LjIxNyA4My44ODg0IDE4OC4xNjEgODMuOTQ0NCAxODguMDQ5IDgzLjk0NDRaIiBmaWxsPSIjMTExODI3Ii8+CjxwYXRoIGQ9Ik0yMjEuNTkyIDgzLjk0MzlDMjIxLjQ4IDgzLjk0MzkgMjIxLjQyNCA4My44ODc5IDIyMS4zNjggODMuODMxOUwyMDkuNzc2IDY5LjI3MTlDMjA5LjY2NCA2OS4xNTk5IDIwOS42NjQgNjguOTkxOSAyMDkuNzc2IDY4Ljg3OTlDMjA5Ljg4OCA2OC43Njc5IDIxMC4wNTYgNjguNzY3OSAyMTAuMTY4IDY4Ljg3OTlMMjEwLjIyNCA2OC45MzU5TDIyMS44MTYgODMuNDk1OUMyMjEuOTI4IDgzLjYwNzkgMjIxLjg3MiA4My43NzU5IDIyMS43NiA4My44ODc5QzIyMS43MDQgODMuODg3OSAyMjEuNjQ4IDgzLjk0MzkgMjIxLjU5MiA4My45NDM5WiIgZmlsbD0iIzExMTgyNyIvPgo8cGF0aCBkPSJNMjE3LjM5MiA0OVY2NC4xNzZMMjA0Ljc5MiA3Mi41MkwxOTIuMjQ4IDY0LjE3NlY0OUgyMTcuMzkyWiIgZmlsbD0iI0YwNjQzNCIvPgo8cGF0aCBkPSJNMjA0Ljc5MyA3Mi43OTk3QzIwNC43MzcgNzIuNzk5NyAyMDQuNjgxIDcyLjc5OTcgMjA0LjYyNSA3Mi43NDM3TDE5Mi4wODEgNjQuMzk5N0MxOTIuMDI1IDY0LjM0MzcgMTkxLjk2OSA2NC4yMzE3IDE5MS45NjkgNjQuMTc1N1Y0OC45OTk3QzE5MS45NjkgNDguODMxNyAxOTIuMDgxIDQ4LjcxOTcgMTkyLjI0OSA0OC43MTk3SDIxNy4zMzdDMjE3LjUwNSA0OC43MTk3IDIxNy42MTcgNDguODMxNyAyMTcuNjE3IDQ4Ljk5OTdWNjQuMTc1N0MyMTcuNjE3IDY0LjI4NzcgMjE3LjU2MSA2NC4zNDM3IDIxNy41MDUgNjQuMzk5N0wyMDQuOTYxIDcyLjc0MzdDMjA0LjkwNSA3Mi43OTk3IDIwNC44NDkgNzIuNzk5NyAyMDQuNzkzIDcyLjc5OTdaTTE5Mi41MjkgNjQuMDA3N0wyMDQuNzkzIDcyLjEyNzdMMjE3LjA1NyA2NC4wMDc3VjQ5LjI3OTdIMTkyLjUyOVY2NC4wMDc3WiIgZmlsbD0iIzExMTgyNyIvPgo8cGF0aCBkPSJNMjAyLjQ0MSA1My42NDc5SDE5NS4yMTdDMTk1LjA0OSA1My42NDc5IDE5NC45MzcgNTMuNTM1OSAxOTQuOTM3IDUzLjM2NzlDMTk0LjkzNyA1My4xOTk5IDE5NS4wNDkgNTMuMDg3OSAxOTUuMjE3IDUzLjA4NzlIMjAyLjQ0MUMyMDIuNjA5IDUzLjA4NzkgMjAyLjcyMSA1My4xOTk5IDIwMi43MjEgNTMuMzY3OUMyMDIuNzIxIDUzLjUzNTkgMjAyLjYwOSA1My42NDc5IDIwMi40NDEgNTMuNjQ3OVoiIGZpbGw9IiMxMTE4MjciLz4KPHBhdGggZD0iTTIxMy4zMDUgNTYuMjc5N0gxOTUuMjE3QzE5NS4wNDkgNTYuMjc5NyAxOTQuOTM3IDU2LjE2NzcgMTk0LjkzNyA1NS45OTk3QzE5NC45MzcgNTUuODMxNyAxOTUuMDQ5IDU1LjcxOTcgMTk1LjIxNyA1NS43MTk3SDIxMy4zMDVDMjEzLjQ3MyA1NS43MTk3IDIxMy41ODUgNTUuODMxNyAyMTMuNTg1IDU1Ljk5OTdDMjEzLjU4NSA1Ni4xMTE3IDIxMy40MTcgNTYuMjc5NyAyMTMuMzA1IDU2LjI3OTdaIiBmaWxsPSIjMTExODI3Ii8+CjxwYXRoIGQ9Ik0yMTMuMzA1IDU4Ljg1NTlIMTk1LjIxN0MxOTUuMDQ5IDU4Ljg1NTkgMTk0LjkzNyA1OC43NDM5IDE5NC45MzcgNTguNTc1OUMxOTQuOTM3IDU4LjQwNzkgMTk1LjA0OSA1OC4yOTU5IDE5NS4yMTcgNTguMjk1OUgyMTMuMzA1QzIxMy40NzMgNTguMjk1OSAyMTMuNTg1IDU4LjQwNzkgMjEzLjU4NSA1OC41NzU5QzIxMy41ODUgNTguNzQzOSAyMTMuNDE3IDU4Ljg1NTkgMjEzLjMwNSA1OC44NTU5WiIgZmlsbD0iIzExMTgyNyIvPgo8cGF0aCBkPSJNMjEzLjMwNSA2MS40ODc3SDE5NS4yMTdDMTk1LjA0OSA2MS40ODc3IDE5NC45MzcgNjEuMzc1NyAxOTQuOTM3IDYxLjIwNzdDMTk0LjkzNyA2MS4wMzk3IDE5NS4wNDkgNjAuOTI3NyAxOTUuMjE3IDYwLjkyNzdIMjEzLjMwNUMyMTMuNDczIDYwLjkyNzcgMjEzLjU4NSA2MS4wMzk3IDIxMy41ODUgNjEuMjA3N0MyMTMuNTg1IDYxLjM3NTcgMjEzLjQxNyA2MS40ODc3IDIxMy4zMDUgNjEuNDg3N1oiIGZpbGw9IiMxMTE4MjciLz4KPHBhdGggZD0iTTIxMy4zMDUgNjQuMTIwNUgxOTUuMjE3QzE5NS4wNDkgNjQuMTIwNSAxOTQuOTM3IDY0LjAwODUgMTk0LjkzNyA2My44NDA1QzE5NC45MzcgNjMuNjcyNSAxOTUuMDQ5IDYzLjU2MDUgMTk1LjIxNyA2My41NjA1SDIxMy4zMDVDMjEzLjQ3MyA2My41NjA1IDIxMy41ODUgNjMuNjcyNSAyMTMuNTg1IDYzLjg0MDVDMjEzLjU4NSA2My45NTI1IDIxMy40MTcgNjQuMTIwNSAyMTMuMzA1IDY0LjEyMDVaIiBmaWxsPSIjMTExODI3Ii8+CjxwYXRoIGQ9Ik0xNzcuOTY5IDQ4LjYwODRDMTgwLjg0NSA0OC42MDg0IDE4My4xNzcgNDYuMjc2NyAxODMuMTc3IDQzLjQwMDRDMTgzLjE3NyA0MC41MjQxIDE4MC44NDUgMzguMTkyNCAxNzcuOTY5IDM4LjE5MjRDMTc1LjA5MiAzOC4xOTI0IDE3Mi43NjEgNDAuNTI0MSAxNzIuNzYxIDQzLjQwMDRDMTcyLjc2MSA0Ni4yNzY3IDE3NS4wOTIgNDguNjA4NCAxNzcuOTY5IDQ4LjYwODRaIiBmaWxsPSIjRjA2NDM0Ii8+CjxwYXRoIGQ9Ik0xNzcuOTY4IDQ4Ljg4ODFDMTc0Ljk0NCA0OC44ODgxIDE3Mi40OCA0Ni40MjQxIDE3Mi40OCA0My40MDAxQzE3Mi40OCA0MC4zNzYxIDE3NC45NDQgMzcuOTEyMSAxNzcuOTY4IDM3LjkxMjFDMTgwLjk5MiAzNy45MTIxIDE4My40NTYgNDAuMzc2MSAxODMuNDU2IDQzLjQwMDFDMTgzLjQgNDYuNDI0MSAxODAuOTkyIDQ4Ljg4ODEgMTc3Ljk2OCA0OC44ODgxWk0xNzcuOTY4IDM4LjQ3MjFDMTc1LjI4IDM4LjQ3MjEgMTczLjA0IDQwLjY1NjEgMTczLjA0IDQzLjQwMDFDMTczLjA0IDQ2LjA4ODEgMTc1LjIyNCA0OC4zMjgxIDE3Ny45NjggNDguMzI4MUMxODAuNjU2IDQ4LjMyODEgMTgyLjg5NiA0Ni4xNDQxIDE4Mi44OTYgNDMuNDAwMUMxODIuODQgNDAuNjU2MSAxODAuNjU2IDM4LjQ3MjEgMTc3Ljk2OCAzOC40NzIxWiIgZmlsbD0iIzExMTgyNyIvPgo8cGF0aCBkPSJNMTc3Ljk2OCA0Ni41OTJDMTc3LjggNDYuNTkyIDE3Ny42ODggNDYuNDggMTc3LjY4OCA0Ni4zMTJWNDAuNDg4QzE3Ny42ODggNDAuMzIgMTc3LjggNDAuMjA4IDE3Ny45NjggNDAuMjA4QzE3OC4xMzYgNDAuMjA4IDE3OC4yNDggNDAuMzIgMTc4LjI0OCA0MC40ODhWNDYuMzEyQzE3OC4yNDggNDYuNDI0IDE3OC4wOCA0Ni41OTIgMTc3Ljk2OCA0Ni41OTJaIiBmaWxsPSIjMTExODI3Ii8+CjxwYXRoIGQ9Ik0xODAuODI1IDQzLjY4MDFIMTc1LjAwMUMxNzQuODMzIDQzLjY4MDEgMTc0LjcyMSA0My41NjgxIDE3NC43MjEgNDMuNDAwMUMxNzQuNzIxIDQzLjIzMjEgMTc0LjgzMyA0My4xMjAxIDE3NS4wMDEgNDMuMTIwMUgxODAuODI1QzE4MC45OTMgNDMuMTIwMSAxODEuMTA1IDQzLjIzMjEgMTgxLjEwNSA0My40MDAxQzE4MS4xNjEgNDMuNTY4MSAxODAuOTkzIDQzLjY4MDEgMTgwLjgyNSA0My42ODAxWiIgZmlsbD0iIzExMTgyNyIvPgo8cGF0aCBkPSJNMTc1Ljg5NyA0NS42OTY1QzE3NS44NDEgNDUuNjk2NSAxNzUuNzI5IDQ1LjY0MDUgMTc1LjY3MyA0NS41ODQ1QzE3NS41NjEgNDUuNDcyNSAxNzUuNTYxIDQ1LjMwNDUgMTc1LjY3MyA0NS4xOTI1TDE3OS43NjEgNDEuMTA0NUMxNzkuODczIDQwLjk5MjUgMTgwLjA0MSA0MC45OTI1IDE4MC4xNTMgNDEuMTA0NUMxODAuMjY1IDQxLjIxNjUgMTgwLjI2NSA0MS4zODQ1IDE4MC4xNTMgNDEuNDk2NUwxNzYuMDY1IDQ1LjU4NDVDMTc2LjA2NSA0NS42OTY1IDE3NS45NTMgNDUuNjk2NSAxNzUuODk3IDQ1LjY5NjVaIiBmaWxsPSIjMTExODI3Ii8+CjxwYXRoIGQ9Ik0xNzkuOTg1IDQ1LjY5NjVDMTc5LjkyOSA0NS42OTY1IDE3OS44MTcgNDUuNjQwNSAxNzkuNzYxIDQ1LjU4NDVMMTc1LjY3MyA0MS40OTY1QzE3NS41NjEgNDEuMzg0NSAxNzUuNTYxIDQxLjIxNjUgMTc1LjY3MyA0MS4xMDQ1QzE3NS43ODUgNDAuOTkyNSAxNzUuOTUzIDQwLjk5MjUgMTc2LjA2NSA0MS4xMDQ1TDE4MC4xNTMgNDUuMTkyNUMxODAuMjY1IDQ1LjMwNDUgMTgwLjI2NSA0NS40NzI1IDE4MC4xNTMgNDUuNTg0NUMxODAuMTUzIDQ1LjY5NjUgMTgwLjA5NyA0NS42OTY1IDE3OS45ODUgNDUuNjk2NVoiIGZpbGw9IiMxMTE4MjciLz4KPHBhdGggZD0iTTIyMS41OTMgNzYuOTQzN0MyMjQuMDM2IDc2Ljk0MzcgMjI2LjAxNyA3NC45NjMgMjI2LjAxNyA3Mi41MTk3QzIyNi4wMTcgNzAuMDc2NCAyMjQuMDM2IDY4LjA5NTcgMjIxLjU5MyA2OC4wOTU3QzIxOS4xNSA2OC4wOTU3IDIxNy4xNjkgNzAuMDc2NCAyMTcuMTY5IDcyLjUxOTdDMjE3LjE2OSA3NC45NjMgMjE5LjE1IDc2Ljk0MzcgMjIxLjU5MyA3Ni45NDM3WiIgZmlsbD0iI0YwNjQzNCIvPgo8cGF0aCBkPSJNMjIxLjU5MyA3Ny4yMjQ0QzIxOC45NjEgNzcuMjI0NCAyMTYuODg5IDc1LjA5NjQgMjE2Ljg4OSA3Mi41MjA0QzIxNi44ODkgNjkuODg4NCAyMTkuMDE3IDY3LjgxNjQgMjIxLjU5MyA2Ny44MTY0QzIyNC4yMjUgNjcuODE2NCAyMjYuMjk3IDY5Ljk0NDQgMjI2LjI5NyA3Mi41MjA0QzIyNi4yOTcgNzUuMDk2NCAyMjQuMTY5IDc3LjIyNDQgMjIxLjU5MyA3Ny4yMjQ0Wk0yMjEuNTkzIDY4LjM3NjRDMjE5LjI5NyA2OC4zNzY0IDIxNy40NDkgNzAuMjI0NCAyMTcuNDQ5IDcyLjUyMDRDMjE3LjQ0OSA3NC44MTY0IDIxOS4yOTcgNzYuNjY0NCAyMjEuNTkzIDc2LjY2NDRDMjIzLjg4OSA3Ni42NjQ0IDIyNS43MzcgNzQuODE2NCAyMjUuNzM3IDcyLjUyMDRDMjI1LjczNyA3MC4yMjQ0IDIyMy44ODkgNjguMzc2NCAyMjEuNTkzIDY4LjM3NjRaIiBmaWxsPSIjMTExODI3Ii8+CjxwYXRoIGQ9Ik0yMjEuNDI0IDcwLjg5NTlMMjIwLjY5NiA3MS4yODc5TDIyMC41ODQgNzAuODM5OUwyMjEuNTM2IDcwLjMzNTlIMjIyLjA0Vjc0LjY0NzlIMjIxLjQ4TDIyMS40MjQgNzAuODk1OVoiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo=",className:"h-80 w-80 object-contain",alt:""})),(0,a.createElement)("div",{className:"flex flex-col gap-2"},(0,a.createElement)(Qh,{size:"sm",tag:"h4",title:"Automate Cart Recovery with OttoKit",className:"[&_h4]:text-gray-900"}),(0,a.createElement)("p",{className:"m-0 text-base font-normal text-gray-500"},"Supercharge your recovery process by connecting WooCommerce Cart Abandonment Recovery with OttoKit. Get real-time alerts, automate actions, and keep your team in the loop instantly."),(0,a.createElement)("div",{className:"flex flex-col gap-[1px]"},(0,a.createElement)("div",{className:"flex items-center gap-1.5"},(0,a.createElement)(CU,{className:"h-4 w-4 text-gray-500"}),(0,a.createElement)("span",{className:"text-gray-500 text-base font-normal"},"Connect with tools you already use like Slack, Telegram, WhatsApp, Google Sheets, and more.")),(0,a.createElement)("div",{className:"flex items-center gap-1.5"},(0,a.createElement)(CU,{className:"h-4 w-4 text-gray-500"}),(0,a.createElement)("span",{className:"text-gray-500 text-base font-normal"},"Engage customers on channels they use like SMS, WhatsApp, or Facebook Messenger.")),(0,a.createElement)("div",{className:"flex items-center gap-1.5"},(0,a.createElement)(CU,{className:"h-4 w-4 text-gray-500"}),(0,a.createElement)("span",{className:"text-gray-500 text-base font-normal"},"Automatically resend failed emails or trigger alerts to your team."))),(0,a.createElement)("div",{className:"mt-4"},(0,a.createElement)(dn,{icon:n?(0,a.createElement)(aQ,{className:"text-white",size:"md",variant:"primary"}):"reload"!==e&&(0,a.createElement)(lY,{"aria-label":"icon",role:"img"}),iconPosition:"left",size:"md",tag:"button",type:"button",variant:"primary",onClick:function(n){if(n.preventDefault(),"not-installed"===e){t("installing"),r(!0);const e=new window.FormData;e.append("action","cart_abandonment_install_plugin"),e.append("slug","suretriggers"),e.append("_ajax_nonce",cart_abandonment_admin.plugin_installer_nonce),og()({url:cart_abandonment_admin.ajax_url,method:"POST",body:e}).then(e=>{e.success?o("suretriggers/suretriggers.php"):(r(!1),t("fail"))})}else"inactive"===e&&o("suretriggers/suretriggers.php")}},function(e){let t="";switch(e){case"inactive":t=(0,Yf.__)("Activate","woo-cart-abandonment-recovery");break;case"installing":t=(0,Yf.__)("Installing…","woo-cart-abandonment-recovery");break;case"activating":t=(0,Yf.__)("Activating…","woo-cart-abandonment-recovery");break;case"fail":t=(0,Yf.__)("Failed","woo-cart-abandonment-recovery");break;case"reload":t=(0,Yf.__)("Reloading","woo-cart-abandonment-recovery");break;default:t=(0,Yf.__)("Install & Activate","woo-cart-abandonment-recovery")}return t}(e)))))))},$B={"webhook-integration":(0,a.createElement)(mR,{className:"h-6 w-6 text-gray-500"}),"sms-integration":(0,a.createElement)(FB,{className:"h-6 w-6 text-gray-500"}),"whatsapp-integration":(0,a.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)("path",{d:"M10 1.875C8.57754 1.87537 7.1801 2.24905 5.94733 2.9587C4.71456 3.66834 3.68965 4.68909 2.97503 5.91893C2.26042 7.14878 1.88113 8.54462 1.87507 9.96697C1.86902 11.3893 2.23641 12.7883 2.94054 14.0242L2.20893 16.5848C2.16117 16.7519 2.15899 16.9289 2.20261 17.0971C2.24623 17.2654 2.33406 17.419 2.45701 17.542C2.57996 17.6649 2.73355 17.7527 2.90187 17.7963C3.07018 17.8399 3.24709 17.8377 3.41427 17.79L5.975 17.0584C7.05611 17.6748 8.26435 18.0345 9.50653 18.11C10.7487 18.1855 11.9916 17.9747 13.1394 17.4938C14.2872 17.013 15.3092 16.2749 16.1266 15.3365C16.944 14.3982 17.5349 13.2847 17.8537 12.0818C18.1726 10.879 18.2109 9.61897 17.9657 8.39898C17.7205 7.179 17.1983 6.03163 16.4394 5.04538C15.6805 4.05914 14.7052 3.26037 13.5888 2.71068C12.4723 2.161 11.2445 1.87508 10 1.875ZM10 17.4739C8.65749 17.4749 7.33958 17.1137 6.1851 16.4286C6.14704 16.4059 6.10475 16.3913 6.06082 16.3856C6.0169 16.3799 5.97227 16.3832 5.92969 16.3954L3.23566 17.1651C3.17993 17.181 3.12096 17.1817 3.06486 17.1672C3.00875 17.1526 2.95756 17.1234 2.91658 17.0824C2.8756 17.0414 2.84633 16.9902 2.8318 16.9341C2.81727 16.878 2.818 16.819 2.83393 16.7633L3.60359 14.0695C3.61575 14.0269 3.61908 13.9823 3.61338 13.9384C3.60767 13.8945 3.59306 13.8522 3.57042 13.8141C2.72848 12.3958 2.37931 10.7388 2.5773 9.10129C2.7753 7.4638 3.50934 5.93777 4.66509 4.76092C5.82084 3.58406 7.33338 2.82247 8.96711 2.59478C10.6008 2.36708 12.264 2.68607 13.6975 3.50206C15.1311 4.31804 16.2545 5.5852 16.8927 7.10614C17.531 8.62707 17.6482 10.3164 17.2262 11.9109C16.8043 13.5054 15.8667 14.9156 14.5597 15.9218C13.2527 16.928 11.6495 17.4737 10 17.4739ZM14.104 11.506L12.4417 10.5561C12.2913 10.4703 12.1208 10.426 11.9476 10.4278C11.7744 10.4297 11.6049 10.4776 11.4564 10.5666L10.3346 11.2396C9.65547 10.8956 9.1038 10.3439 8.75975 9.66487L9.4328 8.54316C9.52181 8.39463 9.56969 8.2251 9.57153 8.05195C9.57337 7.87881 9.5291 7.70829 9.44327 7.55791L8.49339 5.89565C8.41583 5.76032 8.30395 5.64784 8.16903 5.56956C8.03412 5.49127 7.88095 5.44995 7.72496 5.44976C7.03713 5.44993 6.37737 5.72256 5.89009 6.20799C5.40281 6.69343 5.1277 7.35212 5.12496 8.0399C5.1237 8.93692 5.2993 9.82538 5.64172 10.6545C5.98413 11.4836 6.48665 12.237 7.12053 12.8718C7.7544 13.5065 8.5072 14.0101 9.33587 14.3537C10.1645 14.6972 11.0528 14.8741 11.9499 14.8741H11.9596C12.6475 14.8714 13.3062 14.5963 13.7917 14.109C14.2771 13.6218 14.5498 12.9621 14.55 12.2743C14.5498 12.1183 14.5085 11.9652 14.4302 11.8303C14.3519 11.6954 14.2394 11.5835 14.104 11.506ZM11.9587 14.2242H11.9499C11.1383 14.2242 10.3346 14.0642 9.58484 13.7533C8.83509 13.4425 8.15398 12.9869 7.58047 12.4126C7.00696 11.8383 6.5523 11.1566 6.24249 10.4064C5.93268 9.6563 5.77381 8.85244 5.77496 8.04086C5.77721 7.52521 5.98365 7.03146 6.34911 6.66766C6.71457 6.30386 7.20928 6.09964 7.72496 6.09971C7.76638 6.09977 7.80706 6.11074 7.84289 6.13152C7.87872 6.1523 7.90843 6.18216 7.92904 6.21809L8.87893 7.88043C8.90753 7.93056 8.92228 7.98739 8.92166 8.0451C8.92105 8.10281 8.90509 8.15931 8.87543 8.20882L8.11256 9.48017C8.08559 9.52511 8.06989 9.5759 8.0668 9.62822C8.06371 9.68054 8.07333 9.73283 8.09483 9.78063C8.51901 10.7247 9.27474 11.4803 10.2188 11.9045C10.2666 11.926 10.3189 11.9356 10.3713 11.9325C10.4236 11.9294 10.4744 11.9137 10.5194 11.8867L11.7907 11.1239C11.8402 11.0943 11.8968 11.0783 11.9545 11.0777C12.0122 11.077 12.0691 11.0918 12.1192 11.1204L13.7816 12.0703C13.8175 12.0909 13.8474 12.1206 13.8682 12.1564C13.889 12.1922 13.8999 12.2329 13.9 12.2743C13.9 12.7899 13.6958 13.2846 13.332 13.65C12.9682 14.0155 12.4744 14.2219 11.9587 14.2242Z",fill:"#6B7280",stroke:"#6B7280",strokeWidth:"0.6"})),"ottokit-integration":(0,a.createElement)(WB,{className:"h-6 w-6 text-gray-500"})},HB=()=>{const[e,t]=(0,a.useState)(""),n=se(),r=new URLSearchParams(oe().search),[o]=Xh(),i=o?.settingsData||{},s=i?.fields?.integrations||{},l=i?.values||{},c=Object.values(s).sort((e,t)=>e.priority-t.priority),u=c.map(e=>e.slug),d=u.includes(r.get("tab"))?r.get("tab"):e||u[0],m=new DY,p=c.map(e=>"ottokit-integration"===e.slug?{name:e.title,slug:e.slug,icon:$B[e.slug]||(0,a.createElement)(WB,{className:"h-6 w-6 text-gray-500"}),component:(0,a.createElement)(VB,null)}:{name:e.title,slug:e.slug,icon:$B[e.slug]||(0,a.createElement)(mR,{className:"h-6 w-6 text-gray-500"}),component:(0,a.createElement)(TR,{title:e.title},e.fields&&Object.keys(e.fields).map(t=>{var n,r;const o=e.fields[t],i=null!==(n=null!==(r=l[o.name])&&void 0!==r?r:o.value)&&void 0!==n?n:"",s=m.isActiveControl(o,l);return(0,a.createElement)(jY,{key:o.name||t,data:o,value:i,isActive:s})}))});return(0,a.createElement)("div",{className:"flex gap-4 bg-primary-background max-h-[calc(100%_-_6rem)]"},(0,a.createElement)("div",{className:"h-full min-h-screen flex flex-col w-auto sticky top-0 lg:top-4 sidebar"},(0,a.createElement)(iR,{borderOn:!0,className:"!h-full md:pl-3 lg:p-4 lg:w-64 border-none box-border flex-grow"},(0,a.createElement)(iR.Body,null,(0,a.createElement)(iR.Item,null,(0,a.createElement)(ff,{size:"md",className:"p-0"},(0,a.createElement)(ff.List,{open:!0},p.map(e=>(0,a.createElement)(ff.Item,{key:e.slug,active:d===e.slug,onClick:()=>{return r=e.slug,t(r),void n({search:`?page=woo-cart-abandonment-recovery&path=integrations&tab=${r}`});var r},className:`lg:justify-start justify-center rounded-md ${d===e.slug?"bg-flamingo-50":""} hover:bg-flamingo-50`},e.icon,(0,a.createElement)("span",{className:"lg:block hidden text-gray-900"},e.name))))),(0,a.createElement)(Uh,{containerType:"flex",direction:"column",gap:"xs",className:"lg:p-4 mt-7 lg:border lg:border-solid lg:border-flamingo-400 rounded-md"},(0,a.createElement)(Uh.Item,{className:"lg:flex gap-2 items-center hidden"},(0,a.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",className:"h-5 w-5 text-flamingo-400",strokeLinecap:"round",strokeLinejoin:"round"},(0,a.createElement)("path",{d:"M3 11h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-5Zm0 0a9 9 0 1 1 18 0m0 0v5a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3Z"}),(0,a.createElement)("path",{d:"M21 16v2a4 4 0 0 1-4 4h-5"})),(0,a.createElement)(DC,{size:"md",className:"font-semibold"},(0,Yf.__)("Need Support?","woo-cart-abandonment-recovery"))),(0,a.createElement)(Uh.Item,{className:"lg:block hidden"},(0,a.createElement)("p",{className:"font-normal text-sm text-text-secondary m-0 pb-2"},(0,Yf.__)("We're happy to help!","woo-cart-abandonment-recovery"))),(0,a.createElement)(Uh.Item,null,(0,a.createElement)("a",{href:"https://cartflows.com/support",target:"_blank",rel:"noreferrer",className:"flex justify-center p-2.5 no-underline text-white hover:text-white bg-primary-600 hover:bg-primary-600 rounded-md box-content outline-0 hover:outline-0 focus:ring-0 focus-visible:ring-1 ring-black"},(0,a.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.7,stroke:"currentColor",className:"h-5 w-5 block lg:hidden",strokeLinecap:"round",strokeLinejoin:"round"},(0,a.createElement)("path",{d:"M3 11h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-5Zm0 0a9 9 0 1 1 18 0m0 0v5a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3Z"}),(0,a.createElement)("path",{d:"M21 16v2a4 4 0 0 1-4 4h-5"})),(0,a.createElement)("span",{className:"text-center w-full text-sm font-semibold lg:block hidden p-0"},(0,Yf.__)("Request Support","woo-cart-abandonment-recovery"))))))))),(0,a.createElement)(Uh,{className:`w-full ${"ottokit-integration"!==d?"max-w-[43.5rem]":""} mx-auto mt-8 pr-4 pb-5 gap-0 relative`,direction:"column"},p.find(e=>e.slug===d)?.component))},GB=Je("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),ZB=(e,t)=>en("rounded-full text-brand-primary-600 transition-colors duration-300",e[t].dot,e[t].ring),qB={sm:{dot:"size-2.5",ring:"size-5",numberIcon:"size-5 text-tiny",icon:"size-5",label:"text-xs"},md:{dot:"size-3",ring:"size-6",numberIcon:"size-6 text-sm",icon:"size-6",label:"text-sm"},lg:{dot:"size-3.5",ring:"size-7",numberIcon:"size-7 text-md",icon:"size-7",label:"text-sm"}},KB=({variant:e="dot",size:t="sm",type:n="inline",currentStep:r=1,children:o,className:i,lineClassName:s="min-w-10",completedVariant:l="icon",completedIcon:c=(0,Ge.jsx)(ln,{}),...u})=>{const d=a.Children.count(o);-1===r&&(r=d+1);const m=a.Children.map(o,(o,i)=>{const u={isCompleted:i+1<r,isCurrent:i+1===r,sizeClasses:qB,size:t,variant:e,type:n,isLast:i+1===d,index:i,lineClassName:s,completedVariant:l,completedIcon:c};return(0,Ge.jsx)(a.Fragment,{children:a.isValidElement(o)?a.cloneElement(o,u):o},i)});return(0,Ge.jsx)("div",{className:en("flex w-full",i,"inline"===n?"items-center justify-between":""),...u,children:m})},XB=({labelText:e="",icon:t=(0,Ge.jsx)(GB,{}),isCurrent:n,isCompleted:r,className:o,type:a,variant:i,sizeClasses:s,size:l,isLast:c,index:u,lineClassName:d,completedVariant:m="icon",completedIcon:p=(0,Ge.jsx)(ln,{}),...f})=>{const h=JB(i,r,n,s,l,t,u,m,p),g={lg:"left-[calc(50%+14px)] right-[calc(-50%+14px)]",md:"left-[calc(50%+12px)] right-[calc(-50%+12px)]",sm:"left-[calc(50%+10px)] right-[calc(-50%+10px)]"},y={lg:"top-3.5",md:"top-3",sm:"top-2.5"},v=()=>{if(e){const t=en(s[l].label,"text-text-tertiary",n?"text-brand-primary-600":"","break-word","stack"===a?"mt-2 transform max-w-xs":"mx-2 max-w-32");return(0,Ge.jsx)("span",{className:t,children:e})}return null},b=()=>{if(!c){const t=en("block",r?"border-brand-primary-600":"border-border-subtle",d);return"stack"===a?(0,Ge.jsx)("div",{className:en("relative","flex","border-solid","border-y","absolute",r?"border-brand-primary-600":"border-border-subtle",y[l],g[l]),children:(0,Ge.jsx)("span",{className:"block"})}):(0,Ge.jsx)("div",{className:"flex-1",children:(0,Ge.jsx)("span",{className:en("mr-2 border-y border-solid",!e&&"ml-2",t)})})}return null};return"stack"===a?(0,Ge.jsxs)("div",{className:"relative flex-1 justify-center",children:[(0,Ge.jsxs)("div",{className:en("flex items-center flex-col",o),...f,children:[h,v()]}),b()]}):(0,Ge.jsxs)(Ge.Fragment,{children:[(0,Ge.jsxs)("div",{className:en("flex items-center",o),...f,children:[h,v()]}),b()]})};XB.displayName="ProgressSteps.Step";const JB=(e,t,n,r,o,a,i,s="icon",l=(0,Ge.jsx)(ln,{}))=>{if(t)return"number"===s?(0,Ge.jsx)("span",{className:en(ZB(r,o),"flex items-center justify-center bg-brand-primary-600 text-text-on-color rounded-full"),children:i+1}):(0,Ge.jsx)("span",{className:ZB(r,o),children:l});const c=((e,t,n)=>en("relative flex items-center rounded-full justify-center transition-colors z-10 duration-500 ring-1",e?"ring-brand-primary-600":"ring-border-subtle",t[n].ring))(!!n,r,o),u=((e,t,n,r)=>{const o=`absolute rounded-full transition-colors duration-500 ${n[r].dot}`;return"dot"===e?en(o,n[r].dot,t?"bg-brand-primary-600":"bg-text-tertiary"):"number"===e?en(o,n[r].dot,t?"text-brand-primary-600":"text-text-tertiary","flex items-center justify-center"):"icon"===e?en(o,t?"text-brand-primary-600":"text-text-tertiary","flex items-center justify-center"):""})(e,n,r,o);let d=null;return"number"===e?d=i+1:"icon"===e&&a&&(d=a),(0,Ge.jsx)("span",{className:c,children:(0,Ge.jsx)("span",{className:u,children:d})})};KB.Step=XB;const eF=window.wp.element,tF=(0,eF.createContext)(),nF={userDetails:cart_abandonment_admin.onboarding.defaults["user-details"],plugins:cart_abandonment_admin.onboarding.defaults.plugins},rF=(e=nF,t)=>{switch(t.type){case"UPDATE_USER_DATA":return{...e,userDetails:{...e.userDetails,[t.payload.option]:t.payload.value}};case"UPDATE_PLUGIN_DATA":return{...e,plugins:{...e.plugins,[t.payload.option]:t.payload.value}};default:return e}},oF=({children:e})=>{const[t,n]=(0,eF.useReducer)(rF,nF),r={state:t,dispatch:n};return(0,a.createElement)(tF.Provider,{value:r},e)},aF=()=>{const e=(0,eF.useContext)(tF);if(!e)throw new Error("useOnboardingContext must be used within OnboardingProvider");return e},iF=({title:e,description:t})=>(0,a.createElement)("div",{className:"space-y-1.5"},(0,a.createElement)(IU,{as:"h2",size:24,weight:600},e),(0,a.createElement)(IU,{size:14,weight:400,color:"secondary"},t)),sF=()=>{const[e,t]=(0,a.useState)(!1),{getCurrentStepNumber:n,navigateToNextRoute:r,navigateToPreviousRoute:o}=fF(),{state:i}=aF(),s=n();return(0,a.createElement)("div",{className:"flex justify-between"},(0,a.createElement)(dn,{icon:(0,a.createElement)(nB,{className:"h-6 w-6"}),onClick:o,disabled:1===n(),variant:"outline"},(0,Yf.__)("Back","woo-cart-abandonment-recovery")),s<5?(0,a.createElement)(dn,{icon:(0,a.createElement)(Bh,{className:"h-6 w-6"}),iconPosition:"right",onClick:r,variant:"primary"},(0,Yf.__)("Next","woo-cart-abandonment-recovery")):(0,a.createElement)(dn,{iconPosition:"right",onClick:()=>{t(!0),og()({url:cart_abandonment_admin.onboarding.ajaxUrl,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)}).then(()=>{t(!1),r()}).catch(()=>{t(!1)})},variant:"primary",disabled:e,icon:e?(0,a.createElement)(aQ,{className:"text-flamingo-400 p-0",icon:null,size:"sm",variant:"primary"}):(0,a.createElement)(Bh,{className:"h-6 w-6"})},(0,Yf.__)("Finish Setup","woo-cart-abandonment-recovery")))},lF=({plugin:e})=>{const t="active"===e?.status;return(0,a.createElement)("div",{className:"p-2 gap-1 items-center bg-background-primary rounded-md shadow-soft-shadow-inner"},(0,a.createElement)(Uh,{align:"start",className:"gap-1 p-1",containerType:"flex",justify:"between"},(0,a.createElement)(Uh.Item,{className:"flex items-start gap-[12px]"},(0,a.createElement)("img",{width:24,src:e?.logo,alt:e?.title}),(0,a.createElement)("div",{className:"flex flex-col gap-[2px]"},(0,a.createElement)(DC,{className:"text-sm font-semibold"},e?.title),(0,a.createElement)(DC,{className:"text-sm",variant:"help"},e?.desc))),(0,a.createElement)(Uh.Item,{className:"flex items-center"},t?(0,a.createElement)(Of,{label:(0,Yf.__)("Installed","woo-cart-abandonment-recovery"),size:"xs",type:"rounded",variant:"green",disableHover:!0}):(0,a.createElement)(aU,{size:"sm",checked:e?.checked,onChange:e?.onChange}))))},cF=({title:e,value:t,onChange:n})=>(0,a.createElement)("div",{className:"w-full"},(0,a.createElement)(DC,{tag:"p",className:"mt-2"},e),(0,a.createElement)($R,{size:"md",value:t,onChange:n})),uF=PR("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),dF=[(0,Yf.__)("Recover lost revenue automatically and effortlessly","woo-cart-abandonment-recovery"),(0,Yf.__)("Quick and easy setup, no technical skills needed","woo-cart-abandonment-recovery"),(0,Yf.__)("Track, log, and resend emails with ease","woo-cart-abandonment-recovery"),(0,Yf.__)("Fully customizable to your store","woo-cart-abandonment-recovery"),(0,Yf.__)("Dynamic coupon generation with expiry control","woo-cart-abandonment-recovery")],mF=()=>{const{navigateToNextRoute:e}=fF();return(0,a.createElement)("div",{className:"space-y-6"},(0,a.createElement)("div",{className:"space-y-1.5"},(0,a.createElement)(IU,{as:"h2",size:30,weight:600},(0,Yf.__)("Welcome to Cart Abandonment Recovery","woo-cart-abandonment-recovery")),(0,a.createElement)(IU,{size:16,weight:500,color:"secondary"},(0,Yf.__)("Track abandoned carts in real time & recover lost revenue automatically.","woo-cart-abandonment-recovery"))),(0,a.createElement)("iframe",{className:"w-full aspect-video rounded-lg",src:"https://www.youtube.com/embed/EXz2joiA6Uc?autoplay=1&mute=1",title:"YouTube video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}),(0,a.createElement)("ul",null,dF.map((e,t)=>(0,a.createElement)("li",{key:t,className:"flex items-center gap-1"},(0,a.createElement)(uF,{className:"size-3 text-gray-600",strokeWidth:1.5}),(0,a.createElement)(IU,{size:16,weight:500,color:"secondary"},e)))),(0,a.createElement)(dn,{className:"mb-4",onClick:e},(0,Yf.__)("Get Started with Onboarding","woo-cart-abandonment-recovery")))},pF=[{url:"welcome",index:!0,component:(0,a.createElement)(mF,null)},{url:"recovery-settings",component:(0,a.createElement)(()=>{const[e]=Xh(),t=e?.settingsData||{},n=t?.fields?.onboarding["recovery-settings"]||{},r=t?.values||{},o=new DY;return(0,a.createElement)("div",{className:"flex flex-col gap-2"},(0,a.createElement)(iF,{title:(0,Yf.__)("Configure Recovery Settings","woo-cart-abandonment-recovery"),description:(0,Yf.__)("Personalize the look and feel of your cart to create a seamless shopping experience.","woo-cart-abandonment-recovery")}),(0,a.createElement)("div",null,n.fields&&Object.keys(n.fields).map(e=>{var t,i;const s=n.fields[e],l=null!==(t=null!==(i=r[s?.name])&&void 0!==i?i:s.value)&&void 0!==t?t:"",c=o.isActiveControl(s,r);return(0,a.createElement)(jY,{key:s?.name||e,data:s,value:l,isActive:c})})),(0,a.createElement)(sF,null))},null)},{url:"follow-up-channels",component:(0,a.createElement)(()=>{const[e]=Xh(),t=e?.settingsData||{},n=t?.fields?.onboarding["follow-up-channels"]||{},r=t?.values||{},o=new DY;return(0,a.createElement)("div",{className:"flex flex-col gap-2"},(0,a.createElement)(iF,{title:(0,Yf.__)("Select Your Follow Up Sequence Channels","woo-cart-abandonment-recovery"),description:(0,Yf.__)("Set up cart settings to match your store’s needs in just a few clicks.","woo-cart-abandonment-recovery")}),(0,a.createElement)("div",null,n.fields&&Object.keys(n.fields).map(e=>{var t,i;const s=n.fields[e],l=null!==(t=null!==(i=r[s?.name])&&void 0!==i?i:s.value)&&void 0!==t?t:"",c=o.isActiveControl(s,r);return(0,a.createElement)(jY,{key:s?.name||e,data:s,value:l,isActive:c})})),(0,a.createElement)(sF,null))},null)},{url:"report-email",component:(0,a.createElement)(()=>{const{state:e,dispatch:t}=aF(),n=e.userDetails,r=(e,n)=>{t({type:"UPDATE_USER_DATA",payload:{option:e,value:n}})};return(0,a.createElement)("div",{className:"flex flex-col gap-2"},(0,a.createElement)(iF,{title:(0,Yf.__)("Setup Recovery Report Emails","woo-cart-abandonment-recovery"),description:(0,Yf.__)("Enable sending recovery report emails.","woo-cart-abandonment-recovery")}),(0,a.createElement)("div",{className:"flex justify-between gap-4"},(0,a.createElement)(cF,{title:(0,Yf.__)("First Name","woo-cart-abandonment-recovery"),value:n?.user_detail_firstname,onChange:e=>r("user_detail_firstname",e)}),(0,a.createElement)(cF,{title:(0,Yf.__)("Last Name","woo-cart-abandonment-recovery"),value:n?.user_detail_lastname,onChange:e=>r("user_detail_lastname",e)})),(0,a.createElement)(cF,{title:(0,Yf.__)("Your Email","woo-cart-abandonment-recovery"),value:n?.user_detail_email,onChange:e=>r("user_detail_email",e)}),(0,a.createElement)("div",{className:"mt-6 mb-4"},(0,a.createElement)(aU,{size:"sm",checked:!!n?.wcar_usage_optin,onChange:e=>r("wcar_usage_optin",e),label:{heading:(0,a.createElement)("span",{className:"!text-gray-500"},(0,Yf.__)("Allow Cart Abandonment Recovery and our other products to track non-sensitive usage tracking data. ","woo-cart-abandonment-recovery"),(0,a.createElement)("a",{className:"text-flamingo-500 no-underline",target:"_blank",href:"https://my.cartflows.com/usage-tracking/?utm_source=dashboard&utm_medium=woo-cart-abandonment-recovery&utm_campaign=docs",rel:"noreferrer"},(0,Yf.__)("Learn More","woo-cart-abandonment-recovery")))}})),(0,a.createElement)(sF,null))},null)},{url:"addons",component:(0,a.createElement)(()=>{const e=cart_abandonment_admin.extend_plugins,{state:t,dispatch:n}=aF(),r=t.plugins;return(0,a.createElement)("div",{className:"flex flex-col gap-2"},(0,a.createElement)(iF,{title:(0,Yf.__)("Add More Power to Your Website","woo-cart-abandonment-recovery"),description:(0,Yf.__)("These tools can help you build your website faster and easier. Try them out and see how they can help your website grow.","woo-cart-abandonment-recovery")}),(0,a.createElement)(Uh,{className:"mb-4"},(0,a.createElement)(Uh.Item,{className:"p-1 md:w-full lg:w-full bg-field-primary-background rounded-lg"},(0,a.createElement)(Uh,{className:"grid grid-cols-1 gap-1"},e.map((e,t)=>(0,a.createElement)(lF,{key:t,plugin:{...e,checked:r[e.slug],onChange:t=>n({type:"UPDATE_PLUGIN_DATA",payload:{option:e.slug,value:t}})}}))))),(0,a.createElement)(sF,null))},null)},{url:"finish",component:(0,a.createElement)(()=>{const e=se();return(0,a.createElement)("div",{className:"flex flex-col gap-2"},(0,a.createElement)(iF,{title:(0,Yf.__)("You're Good to Go! 🚀","woo-cart-abandonment-recovery"),description:(0,Yf.__)("Great job! 🎉 With Cart Abandonment Recovery active, your store is ready to start recovering the lost revenue automatically.","woo-cart-abandonment-recovery")}),(0,a.createElement)("div",{className:"flex flex-col gap-3 py-3"},(0,a.createElement)("p",{className:"text-gray-900 font-semibold m-0"},(0,Yf.__)("Here’s What Cart Abandonment Recovery Will Do for You Now:","woo-cart-abandonment-recovery")),(0,a.createElement)("ul",{className:"list-none pl-0 m-0 flex flex-col gap-3"},(0,a.createElement)("li",{className:"flex items-start gap-1.5 m-0 text-gray-500 font-medium"},(0,a.createElement)(CU,{className:"h-4 w-4 text-flamingo-500 mt-[3px]"}),(0,a.createElement)("p",{className:"m-0 text-sm"},(0,a.createElement)("strong",null,(0,Yf.__)("Recover lost sales automatically","woo-cart-abandonment-recovery"))," ",(0,a.createElement)("span",null,(0,Yf.__)("by reminding shoppers to complete their purchase.","woo-cart-abandonment-recovery")))),(0,a.createElement)("li",{className:"flex items-start gap-1.5 m-0 text-gray-500 font-medium"},(0,a.createElement)(CU,{className:"h-4 w-4 text-flamingo-500 mt-[3px]"}),(0,a.createElement)("p",{className:"m-0 text-sm"},(0,a.createElement)("strong",null,(0,Yf.__)("Increase conversions","woo-cart-abandonment-recovery"))," ",(0,a.createElement)("span",null,(0,Yf.__)("with timely follow-ups via Emails.","woo-cart-abandonment-recovery")))),(0,a.createElement)("li",{className:"flex items-start gap-1.5 m-0 text-gray-500 font-medium"},(0,a.createElement)(CU,{className:"h-4 w-4 text-flamingo-500 mt-[3px]"}),(0,a.createElement)("p",{className:"m-0 text-sm"},(0,a.createElement)("strong",null,(0,Yf.__)("Turn abandoned carts into revenue","woo-cart-abandonment-recovery"))," ",(0,a.createElement)("span",null,(0,Yf.__)("without any manual effort.","woo-cart-abandonment-recovery")))))),(0,a.createElement)("div",{className:"flex flex-col gap-3"},(0,a.createElement)(dn,{onClick:()=>{e("?page=woo-cart-abandonment-recovery")},variant:"primary"},(0,Yf.__)("Go To Dashboard","woo-cart-abandonment-recovery")),(0,a.createElement)(dn,{onClick:()=>window.open("https://cartflows.com/docs-category/cart-abandonment/","_blank"),variant:"ghost",iconPosition:"right",icon:(0,a.createElement)(Wh,{className:"h-5 w-5 text-gray-500"})},(0,Yf.__)("Documentation","woo-cart-abandonment-recovery"))))},null)}],fF=()=>{const e=se(),t=new URLSearchParams(oe().search).get("step")||"welcome",n="?page=woo-cart-abandonment-recovery&path=onboarding&step=",r=e=>{const t=pF.findIndex(t=>t.url===e);return pF[t+1].url},o=e=>{const t=pF.findIndex(t=>t.url===e);return pF[t-1].url};return{getNextRoute:r,getPreviousRoute:o,navigateToNextRoute:()=>{const o=r(t);e({search:n+o})},navigateToPreviousRoute:()=>{const r=o(t);e({search:n+r})},getCurrentStepNumber:()=>pF.findIndex(e=>e.url===t)+1,getCurrentStep:()=>pF.find(e=>e.url===t),navigateToStep:t=>{const r=t-1;if(r<0||r>=pF.length)return;const o=pF[r];for(let e=0;e<=r;e++)pF[e];e({search:n+o.url})}}},hF=()=>{const{getCurrentStepNumber:e,navigateToStep:t}=fF(),n=se();return(0,a.createElement)(cu,{className:"p-5 bg-primary-background"},(0,a.createElement)(cu.Left,null,(0,a.createElement)(cu.Item,null,(0,a.createElement)("img",{src:Wf,alt:"Cart Abandonment Recovery Logo","aria-label":"Cart Abandonment Recovery Logo",className:"h-8 w-8"}))),(0,a.createElement)(cu.Middle,{align:"center"},(0,a.createElement)(cu.Item,{className:"md:block hidden"},(0,a.createElement)(KB,{completedVariant:"number",currentStep:e(),size:"md",type:"inline",variant:"number"},Array.from({length:5},(e,n)=>(0,a.createElement)(KB.Step,{key:n,size:"md",onClick:()=>t(n+1),className:"cursor-pointer hover:bg-background-secondary transition-colors duration-200"}))))),(0,a.createElement)(cu.Right,null,(0,a.createElement)(cu.Item,null,(0,a.createElement)(dn,{icon:(0,a.createElement)(CC,{className:"h-4 w-4"}),size:"xs",variant:"ghost",iconPosition:"right",onClick:()=>{og()({url:cart_abandonment_admin.onboarding.ajaxUrl,method:"POST",headers:{"Content-Type":"application/json"}}),n({search:"?page=woo-cart-abandonment-recovery"})}},(0,Yf.__)("Exit Guided Setup","woo-cart-abandonment-recovery")))))},gF=()=>{const{getCurrentStep:e}=fF(),t=e();return(0,a.createElement)("div",{className:"h-full space-y-7 pb-10"},(0,a.createElement)(hF,null),(0,a.createElement)("div",{className:"p-7"},(0,a.createElement)("div",{className:"w-full h-full border-0.5 border-solid border-gray-200 bg-white shadow-sm rounded-xl mx-auto p-7 box-border max-w-xl"},t?.component||(0,a.createElement)(mF,null))))},yF=()=>(0,a.createElement)(oF,null,(0,a.createElement)(gF,null)),vF=()=>{const[e,t]=(0,a.useState)(!1),[n,r]=(0,a.useState)(!1),{canAccessProFeatures:o,upgradeActionButton:i,getActionButtonText:s}=AU(),l="wcarUpgradeHeaderBannerDismissedAt";(0,a.useEffect)(()=>{const e=localStorage.getItem(l);e&&Date.now()-parseInt(e,10)<6048e5?t(!1):t(!0)},[]);const c=()=>{i()};return e?!o()&&(0,a.createElement)("div",{className:"overflow-hidden transition-all duration-300 "+(n?"max-h-0":"max-h-10")},(0,a.createElement)("div",{className:"p-2 bg-[#FDE6D7] flex gap-2 items-center z-10 relative"},(0,a.createElement)("p",{className:"m-0 text-[13px] flex-1 text-center"},(0,a.createElement)("span",{className:"font-semibold"},"Recover More Sales Effortlessly!")," ","Unlock advanced tools that boost conversions and bring back more customers."," ",(0,a.createElement)("span",{className:"text-flamingo-400 font-semibold underline cursor-pointer",onKeyDown:e=>{"Enter"===e.key&&c()},onClick:c,role:"button",tabIndex:"0"},s())),(0,a.createElement)(dn,{className:"",icon:(0,a.createElement)(CC,{class:"h-6 w-6 text-text-primary"}),iconPosition:"left",size:"xs",tag:"button",type:"button",variant:"ghost",onClick:()=>{r(!0),setTimeout(()=>{t(!1)},300),localStorage.setItem(l,Date.now().toString())}}))):null},bF=()=>{const e=new URLSearchParams(oe().search).get("path")||"dashboard";(0,a.useEffect)(()=>{window.scrollTo({top:0,behavior:"smooth"})},[e]);const t=[{path:"dashboard",component:(0,a.createElement)(KU,null)},{path:"settings",component:(0,a.createElement)(OY,null)},{path:"follow-up",component:(0,a.createElement)(JY,null)},{path:"product",component:(0,a.createElement)(eB,null)},{path:"detailed-report",component:(0,a.createElement)(uB,null)},{path:"follow-up-templates",component:(0,a.createElement)(YB,null)},{path:"integrations",component:(0,a.createElement)(HB,null)},{path:"onboarding",component:(0,a.createElement)(yF,null)}],n=t.find(t=>t.path===e)?.component||(0,a.createElement)(KU,null);return(0,a.createElement)("div",{className:`ca-page-content--wrapper ${e} bg-primary-background`},"onboarding"!==e&&(0,a.createElement)(a.Fragment,null,(0,a.createElement)(vF,null),(0,a.createElement)(ig,null)),n,(0,a.createElement)(lu,{position:"top-right",design:"stack",theme:"light",autoDismiss:!0,dismissAfter:3e3,className:"z-999999"}))},MF=()=>(0,a.createElement)(Ye,null,(0,a.createElement)(bF,null)),xF=document.getElementById("wcar-admin-app");xF&&(0,l.H)(xF).render((0,a.createElement)(Kh,{reducer:ng,initialState:tg},(0,a.createElement)(MF,null)))})()})();

Youez - 2016 - github.com/yon3zu
LinuXploit