/home/smartbloks/.trash/extendify/public/build/extendify-onboarding.js
!function(){var e={184:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)){if(n.length){var i=o.apply(null,n);i&&e.push(i)}}else if("object"===a){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var s in n)r.call(n,s)&&n[s]&&e.push(s)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},874:function(e){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},818:function(e,t,n){var r=n(874),o=n(851),a=Object.hasOwnProperty,i=Object.create(null);for(var s in r)a.call(r,s)&&(i[r[s]]=s);var l=e.exports={to:{},get:{}};function u(e,t,n){return Math.min(Math.max(t,e),n)}function c(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}l.get=function(e){var t,n;switch(e.substring(0,3).toLowerCase()){case"hsl":t=l.get.hsl(e),n="hsl";break;case"hwb":t=l.get.hwb(e),n="hwb";break;default:t=l.get.rgb(e),n="rgb"}return t?{model:n,value:t}:null},l.get.rgb=function(e){if(!e)return null;var t,n,o,i=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(o=t[2],t=t[1],n=0;n<3;n++){var s=2*n;i[n]=parseInt(t.slice(s,s+2),16)}o&&(i[3]=parseInt(o,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(o=(t=t[1])[3],n=0;n<3;n++)i[n]=parseInt(t[n]+t[n],16);o&&(i[3]=parseInt(o+o,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(n=0;n<3;n++)i[n]=parseInt(t[n+1],0);t[4]&&(t[5]?i[3]=.01*parseFloat(t[4]):i[3]=parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(t=e.match(/^(\w+)$/))?"transparent"===t[1]?[0,0,0,0]:a.call(r,t[1])?((i=r[t[1]])[3]=1,i):null:null;for(n=0;n<3;n++)i[n]=Math.round(2.55*parseFloat(t[n+1]));t[4]&&(t[5]?i[3]=.01*parseFloat(t[4]):i[3]=parseFloat(t[4]))}for(n=0;n<3;n++)i[n]=u(i[n],0,255);return i[3]=u(i[3],0,1),i},l.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,u(parseFloat(t[2]),0,100),u(parseFloat(t[3]),0,100),u(isNaN(n)?1:n,0,1)]}return null},l.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,u(parseFloat(t[2]),0,100),u(parseFloat(t[3]),0,100),u(isNaN(n)?1:n,0,1)]}return null},l.to.hex=function(){var e=o(arguments);return"#"+c(e[0])+c(e[1])+c(e[2])+(e[3]<1?c(Math.round(255*e[3])):"")},l.to.rgb=function(){var e=o(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},l.to.rgb.percent=function(){var e=o(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+n+"%, "+r+"%)":"rgba("+t+"%, "+n+"%, "+r+"%, "+e[3]+")"},l.to.hsl=function(){var e=o(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},l.to.hwb=function(){var e=o(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},l.to.keyword=function(e){return i[e.slice(0,3)]}},767:function(e,t,n){const r=n(818),o=n(978),a=["keyword","gray","hex"],i={};for(const e of Object.keys(o))i[[...o[e].labels].sort().join("")]=e;const s={};function l(e,t){if(!(this instanceof l))return new l(e,t);if(t&&t in a&&(t=null),t&&!(t in o))throw new Error("Unknown model: "+t);let n,u;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof l)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if("string"==typeof e){const t=r.get(e);if(null===t)throw new Error("Unable to parse color from string: "+e);this.model=t.model,u=o[this.model].channels,this.color=t.value.slice(0,u),this.valpha="number"==typeof t.value[u]?t.value[u]:1}else if(e.length>0){this.model=t||"rgb",u=o[this.model].channels;const n=Array.prototype.slice.call(e,0,u);this.color=f(n,u),this.valpha="number"==typeof e[u]?e[u]:1}else if("number"==typeof e)this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;const t=Object.keys(e);"alpha"in e&&(t.splice(t.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);const r=t.sort().join("");if(!(r in i))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=i[r];const{labels:a}=o[this.model],s=[];for(n=0;n<a.length;n++)s.push(e[a[n]]);this.color=f(s)}if(s[this.model])for(u=o[this.model].channels,n=0;n<u;n++){const e=s[this.model][n];e&&(this.color[n]=e(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}l.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in r.to?this:this.rgb();t=t.round("number"==typeof e?e:1);const n=1===t.valpha?t.color:[...t.color,this.valpha];return r.to[t.model](n)},percentString(e){const t=this.rgb().round("number"==typeof e?e:1),n=1===t.valpha?t.color:[...t.color,this.valpha];return r.to.rgb.percent(n)},array(){return 1===this.valpha?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=o[this.model],{labels:n}=o[this.model];for(let r=0;r<t;r++)e[n[r]]=this.color[r];return 1!==this.valpha&&(e.alpha=this.valpha),e},unitArray(){const e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,1!==this.valpha&&e.push(this.valpha),e},unitObject(){const e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,1!==this.valpha&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new l([...this.color.map(u(e)),this.valpha],this.model)},alpha(e){return void 0!==e?new l([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:c("rgb",0,d(255)),green:c("rgb",1,d(255)),blue:c("rgb",2,d(255)),hue:c(["hsl","hsv","hsl","hwb","hcg"],0,(e=>(e%360+360)%360)),saturationl:c("hsl",1,d(100)),lightness:c("hsl",2,d(100)),saturationv:c("hsv",1,d(100)),value:c("hsv",2,d(100)),chroma:c("hcg",1,d(100)),gray:c("hcg",2,d(100)),white:c("hwb",1,d(100)),wblack:c("hwb",2,d(100)),cyan:c("cmyk",0,d(100)),magenta:c("cmyk",1,d(100)),yellow:c("cmyk",2,d(100)),black:c("cmyk",3,d(100)),x:c("xyz",0,d(95.047)),y:c("xyz",1,d(100)),z:c("xyz",2,d(108.833)),l:c("lab",0,d(100)),a:c("lab",1),b:c("lab",2),keyword(e){return void 0!==e?new l(e):o[this.model].keyword(this.color)},hex(e){return void 0!==e?new l(e):r.to.hex(this.rgb().round().color)},hexa(e){if(void 0!==e)return new l(e);const t=this.rgb().round().color;let n=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===n.length&&(n="0"+n),r.to.hex(t)+n},rgbNumber(){const e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity(){const e=this.rgb().color,t=[];for(const[n,r]of e.entries()){const e=r/255;t[n]=e<=.04045?e/12.92:((e+.055)/1.055)**2.4}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(2126*e[0]+7152*e[1]+722*e[2])/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return l.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const n=e.rgb(),r=this.rgb(),o=void 0===t?.5:t,a=2*o-1,i=n.alpha()-r.alpha(),s=((a*i==-1?a:(a+i)/(1+a*i))+1)/2,u=1-s;return l.rgb(s*n.red()+u*r.red(),s*n.green()+u*r.green(),s*n.blue()+u*r.blue(),n.alpha()*o+r.alpha()*(1-o))}};for(const e of Object.keys(o)){if(a.includes(e))continue;const{channels:t}=o[e];l.prototype[e]=function(...t){return this.model===e?new l(this):t.length>0?new l(t,e):new l([...(n=o[this.model][e].raw(this.color),Array.isArray(n)?n:[n]),this.valpha],e);var n},l[e]=function(...n){let r=n[0];return"number"==typeof r&&(r=f(n,t)),new l(r,e)}}function u(e){return function(t){return function(e,t){return Number(e.toFixed(t))}(t,e)}}function c(e,t,n){e=Array.isArray(e)?e:[e];for(const r of e)(s[r]||(s[r]=[]))[t]=n;return e=e[0],function(r){let o;return void 0!==r?(n&&(r=n(r)),o=this[e](),o.color[t]=r,o):(o=this[e]().color[t],n&&(o=n(o)),o)}}function d(e){return function(t){return Math.max(0,Math.min(e,t))}}function f(e,t){for(let n=0;n<t;n++)"number"!=typeof e[n]&&(e[n]=0);return e}e.exports=l},956:function(e,t,n){const r=n(900),o={};for(const e of Object.keys(r))o[r[e]]=e;const a={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};e.exports=a;for(const e of Object.keys(a)){if(!("channels"in a[e]))throw new Error("missing channels property: "+e);if(!("labels"in a[e]))throw new Error("missing channel labels property: "+e);if(a[e].labels.length!==a[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=a[e];delete a[e].channels,delete a[e].labels,Object.defineProperty(a[e],"channels",{value:t}),Object.defineProperty(a[e],"labels",{value:n})}a.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),a=Math.max(t,n,r),i=a-o;let s,l;a===o?s=0:t===a?s=(n-r)/i:n===a?s=2+(r-t)/i:r===a&&(s=4+(t-n)/i),s=Math.min(60*s,360),s<0&&(s+=360);const u=(o+a)/2;return l=a===o?0:u<=.5?i/(a+o):i/(2-a-o),[s,100*l,100*u]},a.rgb.hsv=function(e){let t,n,r,o,a;const i=e[0]/255,s=e[1]/255,l=e[2]/255,u=Math.max(i,s,l),c=u-Math.min(i,s,l),d=function(e){return(u-e)/6/c+.5};return 0===c?(o=0,a=0):(a=c/u,t=d(i),n=d(s),r=d(l),i===u?o=r-n:s===u?o=1/3+t-r:l===u&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*a,100*u]},a.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=a.rgb.hsl(e)[0],i=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,100*i,100*r]},a.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r);return[100*((1-t-o)/(1-o)||0),100*((1-n-o)/(1-o)||0),100*((1-r-o)/(1-o)||0),100*o]},a.rgb.keyword=function(e){const t=o[e];if(t)return t;let n,a=1/0;for(const t of Object.keys(r)){const o=(s=r[t],((i=e)[0]-s[0])**2+(i[1]-s[1])**2+(i[2]-s[2])**2);o<a&&(a=o,n=t)}var i,s;return n},a.keyword.rgb=function(e){return r[e]},a.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255;return t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,[100*(.4124*t+.3576*n+.1805*r),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},a.rgb.lab=function(e){const t=a.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];return n/=95.047,r/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116,[116*r-16,500*(n-r),200*(r-o)]},a.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,a,i;if(0===n)return i=255*r,[i,i,i];o=r<.5?r*(1+n):r+n-r*n;const s=2*r-o,l=[0,0,0];for(let e=0;e<3;e++)a=t+1/3*-(e-1),a<0&&a++,a>1&&a--,i=6*a<1?s+6*(o-s)*a:2*a<1?o:3*a<2?s+(o-s)*(2/3-a)*6:s,l[e]=255*i;return l},a.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const a=Math.max(r,.01);return r*=2,n*=r<=1?r:2-r,o*=a<=1?a:2-a,[t,100*(0===r?2*o/(a+o):2*n/(r+n)),(r+n)/2*100]},a.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,a=t-Math.floor(t),i=255*r*(1-n),s=255*r*(1-n*a),l=255*r*(1-n*(1-a));switch(r*=255,o){case 0:return[r,l,i];case 1:return[s,r,i];case 2:return[i,r,l];case 3:return[i,s,r];case 4:return[l,i,r];case 5:return[r,i,s]}},a.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let a,i;i=(2-n)*r;const s=(2-n)*o;return a=n*o,a/=s<=1?s:2-s,a=a||0,i/=2,[t,100*a,100*i]},a.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let a;o>1&&(n/=o,r/=o);const i=Math.floor(6*t),s=1-r;a=6*t-i,0!=(1&i)&&(a=1-a);const l=n+a*(s-n);let u,c,d;switch(i){default:case 6:case 0:u=s,c=l,d=n;break;case 1:u=l,c=s,d=n;break;case 2:u=n,c=s,d=l;break;case 3:u=n,c=l,d=s;break;case 4:u=l,c=n,d=s;break;case 5:u=s,c=n,d=l}return[255*u,255*c,255*d]},a.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o))]},a.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,a,i;return o=3.2406*t+-1.5372*n+-.4986*r,a=-.9689*t+1.8758*n+.0415*r,i=.0557*t+-.204*n+1.057*r,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,a=a>.0031308?1.055*a**(1/2.4)-.055:12.92*a,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),i=Math.min(Math.max(0,i),1),[255*o,255*a,255*i]},a.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];return t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,[116*n-16,500*(t-n),200*(n-r)]},a.lab.xyz=function(e){let t,n,r;n=(e[0]+16)/116,t=e[1]/500+n,r=n-e[2]/200;const o=n**3,a=t**3,i=r**3;return n=o>.008856?o:(n-16/116)/7.787,t=a>.008856?a:(t-16/116)/7.787,r=i>.008856?i:(r-16/116)/7.787,t*=95.047,n*=100,r*=108.883,[t,n,r]},a.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;return o=360*Math.atan2(r,n)/2/Math.PI,o<0&&(o+=360),[t,Math.sqrt(n*n+r*r),o]},a.lch.lab=function(e){const t=e[0],n=e[1],r=e[2]/360*2*Math.PI;return[t,n*Math.cos(r),n*Math.sin(r)]},a.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let i=null===t?a.rgb.hsv(e)[2]:t;if(i=Math.round(i/50),0===i)return 30;let s=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return 2===i&&(s+=60),s},a.hsv.ansi16=function(e){return a.rgb.ansi16(a.hsv.rgb(e),e[2])},a.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},a.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},a.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;return e-=16,[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},a.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},a.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];3===t[0].length&&(n=n.split("").map((e=>e+e)).join(""));const r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},a.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),i=o-a;let s,l;return s=i<1?a/(1-i):0,l=i<=0?0:o===t?(n-r)/i%6:o===n?2+(r-t)/i:4+(t-n)/i,l/=6,l%=1,[360*l,100*i,100*s]},a.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],100*r,100*o]},a.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},a.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];const o=[0,0,0],a=t%1*6,i=a%1,s=1-i;let l=0;switch(Math.floor(a)){case 0:o[0]=1,o[1]=i,o[2]=0;break;case 1:o[0]=s,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=i;break;case 3:o[0]=0,o[1]=s,o[2]=1;break;case 4:o[0]=i,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=s}return l=(1-n)*r,[255*(n*o[0]+l),255*(n*o[1]+l),255*(n*o[2]+l)]},a.hcg.hsv=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);let r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},a.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},a.hcg.hwb=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},a.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,r=n-t;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},a.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},a.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},a.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},a.gray.hsl=function(e){return[0,0,e[0]]},a.gray.hsv=a.gray.hsl,a.gray.hwb=function(e){return[0,100,e[0]]},a.gray.cmyk=function(e){return[0,0,0,e[0]]},a.gray.lab=function(e){return[e[0],0,0]},a.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},a.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},978:function(e,t,n){const r=n(956),o=n(774),a={};Object.keys(r).forEach((e=>{a[e]={},Object.defineProperty(a[e],"channels",{value:r[e].channels}),Object.defineProperty(a[e],"labels",{value:r[e].labels});const t=o(e);Object.keys(t).forEach((n=>{const r=t[n];a[e][n]=function(e){const t=function(...t){const n=t[0];if(null==n)return n;n.length>1&&(t=n);const r=e(t);if("object"==typeof r)for(let e=r.length,t=0;t<e;t++)r[t]=Math.round(r[t]);return r};return"conversion"in e&&(t.conversion=e.conversion),t}(r),a[e][n].raw=function(e){const t=function(...t){const n=t[0];return null==n?n:(n.length>1&&(t=n),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))})),e.exports=a},774:function(e,t,n){const r=n(956);function o(e,t){return function(n){return t(e(n))}}function a(e,t){const n=[t[e].parent,e];let a=r[t[e].parent][e],i=t[e].parent;for(;t[i].parent;)n.unshift(t[i].parent),a=o(r[t[i].parent][i],a),i=t[i].parent;return a.conversion=n,a}e.exports=function(e){const t=function(e){const t=function(){const e={},t=Object.keys(r);for(let n=t.length,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;){const e=n.pop(),o=Object.keys(r[e]);for(let r=o.length,a=0;a<r;a++){const r=o[a],i=t[r];-1===i.distance&&(i.distance=t[e].distance+1,i.parent=e,n.unshift(r))}}return t}(e),n={},o=Object.keys(t);for(let e=o.length,r=0;r<e;r++){const e=o[r];null!==t[e].parent&&(n[e]=a(e,t))}return n}},900:function(e){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},851:function(e,t,n){"use strict";var r=n(594),o=Array.prototype.concat,a=Array.prototype.slice,i=e.exports=function(e){for(var t=[],n=0,i=e.length;n<i;n++){var s=e[n];r(s)?t=o.call(t,a.call(s)):t.push(s)}return t};i.wrap=function(e){return function(){return e(i(arguments))}}},594:function(e){e.exports=function(e){return!(!e||"string"==typeof e)&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},250:function(e,t,n){"use strict";var r=n(196),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useState,i=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),o=r[0].inst,c=r[1];return s((function(){o.value=n,o.getSnapshot=t,u(o)&&c({inst:o})}),[e,n,t]),i((function(){return u(o)&&c({inst:o}),e((function(){u(o)&&c({inst:o})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},139:function(e,t,n){"use strict";var r=n(196),o=n(688),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=o.useSyncExternalStore,s=r.useRef,l=r.useEffect,u=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var d=s(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=u((function(){function e(e){if(!l){if(l=!0,i=e,e=r(e),void 0!==o&&f.hasValue){var t=f.value;if(o(t,e))return s=t}return s=e}if(t=s,a(i,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(i=e,s=n)}var i,s,l=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]}),[t,n,r,o]);var p=i(e,d[0],d[1]);return l((function(){f.hasValue=!0,f.value=p}),[p]),c(p),p}},688:function(e,t,n){"use strict";e.exports=n(250)},798:function(e,t,n){"use strict";e.exports=n(139)},196:function(e){"use strict";e.exports=window.React}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e=window.wp.element,t=window.wp.blockLibrary,r=window.wp.data,o=n(196),a=n(688);const i=new WeakMap,s={},l={},u=()=>{},c=u(),d=Object,f=e=>e===c,p=e=>"function"==typeof e,m=(e,t)=>({...e,...t}),h="undefined",g=typeof window!=h,v=typeof document!=h,y=(e,t)=>{const n=i.get(e);return[()=>!f(t)&&e.get(t)||s,r=>{if(!f(t)){const o=e.get(t);t in l||(l[t]=o),n[5](t,m(o,r),o||s)}},n[6],()=>!f(t)&&t in l?l[t]:!f(t)&&e.get(t)||s]},b=new WeakMap;let w=0;const x=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,a;if(d(e)!==e||r||n==RegExp)o=r?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(o=b.get(e),o)return o;if(o=++w+"~",b.set(e,o),n==Array){for(o="@",a=0;a<e.length;a++)o+=x(e[a])+",";b.set(e,o)}if(n==d){o="#";const t=d.keys(e).sort();for(;!f(a=t.pop());)f(e[a])||(o+=a+":"+x(e[a])+",");b.set(e,o)}}return o};let E=!0;const[C,S]=g&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[u,u],O={isOnline:()=>E,isVisible:()=>{const e=v&&document.visibilityState;return f(e)||"hidden"!==e}},T={initFocus:e=>(v&&document.addEventListener("visibilitychange",e),C("focus",e),()=>{v&&document.removeEventListener("visibilitychange",e),S("focus",e)}),initReconnect:e=>{const t=()=>{E=!0,e()},n=()=>{E=!1};return C("online",t),C("offline",n),()=>{S("online",t),S("offline",n)}}},L=!o.useId,P=!g||"Deno"in window,k=P?o.useEffect:o.useLayoutEffect,R="undefined"!=typeof navigator&&navigator.connection,M=!P&&R&&(["slow-2g","2g"].includes(R.effectiveType)||R.saveData),N=e=>{if(p(e))try{e=e()}catch(t){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?x(e):"",t]};let A=0;const V=()=>++A,I=2;var D=I;async function j(...e){const[t,n,r,o]=e,a=m({populateCache:!0,throwOnError:!0},"boolean"==typeof o?{revalidate:o}:o||{});let s=a.populateCache;const l=a.rollbackOnError;let u=a.optimisticData;const d=!1!==a.revalidate,h=e=>"function"==typeof l?l(e):!1!==l,g=a.throwOnError;if(p(n)){const e=n,r=[],o=t.keys();for(let n=o.next();!n.done;n=o.next()){const o=n.value;!/^\$(inf|sub)\$/.test(o)&&e(t.get(o)._k)&&r.push(o)}return Promise.all(r.map(v))}return v(n);async function v(n){const[o]=N(n);if(!o)return;const[a,l]=y(t,o),[m,v,b]=i.get(t),w=m[o],x=()=>d&&(delete b[o],w&&w[0])?w[0](I).then((()=>a().data)):a().data;if(e.length<3)return x();let E,C=r;const S=V();v[o]=[S,0];const O=!f(u),T=a(),L=T.data,P=T._c,k=f(P)?L:P;if(O&&(u=p(u)?u(k):u,l({data:u,_c:k})),p(C))try{C=C(k)}catch(e){E=e}if(C&&p(C.then)){if(C=await C.catch((e=>{E=e})),S!==v[o][0]){if(E)throw E;return C}E&&O&&h(E)&&(s=!0,C=k,l({data:C,_c:c}))}s&&(E||(p(s)&&(C=s(C,k)),l({data:C,_c:c}))),v[o][1]=V();const R=await x();if(l({_c:c}),!E)return s?R:C;if(g)throw E}}const _=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},F=(e,t)=>{if(!i.has(e)){const n=m(T,t),r={},o=j.bind(c,e);let a=u;const s={},l=(e,t)=>{const n=s[e]||[];return s[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},d=(t,n,r)=>{e.set(t,n);const o=s[t];if(o)for(const e of o)e(n,r)},f=()=>{if(!i.has(e)&&(i.set(e,[r,{},{},{},o,d,l]),!P)){const t=n.initFocus(setTimeout.bind(c,_.bind(c,r,0))),o=n.initReconnect(setTimeout.bind(c,_.bind(c,r,1)));a=()=>{t&&t(),o&&o(),i.delete(e)}}};return f(),[e,o,f,a]}return[e,i.get(e)[4]]},[H,B]=F(new Map),U=m({onLoadingSlow:u,onSuccess:u,onError:u,onErrorRetry:(e,__,t,n,r)=>{const o=t.errorRetryCount,a=r.retryCount,i=~~((Math.random()+.5)*(1<<(a<8?a:8)))*t.errorRetryInterval;!f(o)&&a>o||setTimeout(n,i,r)},onDiscarded:u,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:M?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:M?5e3:3e3,compare:(e,t)=>x(e)==x(t),isPaused:()=>!1,cache:H,mutate:B,fallback:{}},O),z=(e,t)=>{const n=m(e,t);if(t){const{use:r,fallback:o}=e,{use:a,fallback:i}=t;r&&a&&(n.use=r.concat(a)),o&&i&&(n.fallback=m(o,i))}return n},q=(0,o.createContext)({}),Z=g&&window.__SWR_DEVTOOLS_USE__,$=Z?window.__SWR_DEVTOOLS_USE__:[],W=()=>m(U,(0,o.useContext)(q)),X=$.concat((e=>(t,n,r)=>e(t,n&&((...e)=>{const[r]=N(t),[,,,o]=i.get(H),a=o[r];return a?(delete o[r],a):n(...e)}),r)));Z&&(window.__SWR_DEVTOOLS_REACT__=o);const Y={dedupe:!0},G=d.defineProperty((e=>{const{value:t}=e,n=(0,o.useContext)(q),r=p(t),a=(0,o.useMemo)((()=>r?t(n):t),[r,n,t]),i=(0,o.useMemo)((()=>r?a:z(n,a)),[r,n,a]),s=a&&a.provider,l=(0,o.useRef)(c);s&&!l.current&&(l.current=F(s(i.cache||H),a));const u=l.current;return u&&(i.cache=u[0],i.mutate=u[1]),k((()=>{if(u)return u[2]&&u[2](),u[3]}),[]),(0,o.createElement)(q.Provider,m(e,{value:i}))}),"defaultValue",{value:U}),J=(K=(e,t,n)=>{const{cache:r,compare:s,suspense:l,fallbackData:u,revalidateOnMount:d,revalidateIfStale:v,refreshInterval:b,refreshWhenHidden:w,refreshWhenOffline:x,keepPreviousData:E}=n,[C,S,O]=i.get(r),[T,R]=N(e),M=(0,o.useRef)(!1),A=(0,o.useRef)(!1),I=(0,o.useRef)(T),_=(0,o.useRef)(t),F=(0,o.useRef)(n),H=()=>F.current,B=()=>H().isVisible()&&H().isOnline(),[U,z,q,Z]=y(r,T),$=(0,o.useRef)({}).current,W=f(u)?n.fallback[T]:u,X=(e,t)=>{for(const n in $){const r=n;if("data"===r){if(!s(e[r],t[r])){if(!f(e[r]))return!1;if(!s(oe,t[r]))return!1}}else if(t[r]!==e[r])return!1}return!0},G=(0,o.useMemo)((()=>{const e=!!T&&!!t&&(f(d)?!H().isPaused()&&!l&&(!!f(v)||v):d),n=t=>{const n=m(t);return delete n._k,e?{isValidating:!0,isLoading:!0,...n}:n},r=U(),o=Z(),a=n(r),i=r===o?a:n(o);let s=a;return[()=>{const e=n(U());return X(e,s)?(s.data=e.data,s.isLoading=e.isLoading,s.isValidating=e.isValidating,s.error=e.error,s):(s=e,e)},()=>i]}),[r,T]),J=(0,a.useSyncExternalStore)((0,o.useCallback)((e=>q(T,((t,n)=>{X(n,t)||e()}))),[r,T]),G[0],G[1]),K=!M.current,Q=C[T]&&C[T].length>0,ee=J.data,te=f(ee)?W:ee,ne=J.error,re=(0,o.useRef)(te),oe=E?f(ee)?re.current:ee:te,ae=!(Q&&!f(ne))&&(K&&!f(d)?d:!H().isPaused()&&(l?!f(te)&&v:f(te)||v)),ie=!!(T&&t&&K&&ae),se=f(J.isValidating)?ie:J.isValidating,le=f(J.isLoading)?ie:J.isLoading,ue=(0,o.useCallback)((async e=>{const t=_.current;if(!T||!t||A.current||H().isPaused())return!1;let r,o,a=!0;const i=e||{},l=!O[T]||!i.dedupe,u=()=>L?!A.current&&T===I.current&&M.current:T===I.current,d={isValidating:!1,isLoading:!1},m=()=>{z(d)},h=()=>{const e=O[T];e&&e[1]===o&&delete O[T]},g={isValidating:!0};f(U().data)&&(g.isLoading=!0);try{if(l&&(z(g),n.loadingTimeout&&f(U().data)&&setTimeout((()=>{a&&u()&&H().onLoadingSlow(T,n)}),n.loadingTimeout),O[T]=[t(R),V()]),[r,o]=O[T],r=await r,l&&setTimeout(h,n.dedupingInterval),!O[T]||O[T][1]!==o)return l&&u()&&H().onDiscarded(T),!1;d.error=c;const e=S[T];if(!f(e)&&(o<=e[0]||o<=e[1]||0===e[1]))return m(),l&&u()&&H().onDiscarded(T),!1;const i=U().data;d.data=s(i,r)?i:r,l&&u()&&H().onSuccess(r,T,n)}catch(e){h();const t=H(),{shouldRetryOnError:n}=t;t.isPaused()||(d.error=e,l&&u()&&(t.onError(e,T,t),(!0===n||p(n)&&n(e))&&B()&&t.onErrorRetry(e,T,t,(e=>{const t=C[T];t&&t[0]&&t[0](3,e)}),{retryCount:(i.retryCount||0)+1,dedupe:!0})))}return a=!1,m(),!0}),[T,r]),ce=(0,o.useCallback)(((...e)=>j(r,I.current,...e)),[]);if(k((()=>{_.current=t,F.current=n,f(ee)||(re.current=ee)})),k((()=>{if(!T)return;const e=ue.bind(c,Y);let t=0;const n=((e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}})(T,C,((n,r={})=>{if(0==n){const n=Date.now();H().revalidateOnFocus&&n>t&&B()&&(t=n+H().focusThrottleInterval,e())}else if(1==n)H().revalidateOnReconnect&&B()&&e();else{if(n==D)return ue();if(3==n)return ue(r)}}));return A.current=!1,I.current=T,M.current=!0,z({_k:R}),ae&&(f(te)||P?e():(e=>{g&&typeof window.requestAnimationFrame!=h?window.requestAnimationFrame(e):setTimeout(e,1)})(e)),()=>{A.current=!0,n()}}),[T]),k((()=>{let e;function t(){const t=p(b)?b(U().data):b;t&&-1!==e&&(e=setTimeout(n,t))}function n(){U().error||!w&&!H().isVisible()||!x&&!H().isOnline()?t():ue(Y).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[b,w,x,T]),(0,o.useDebugValue)(oe),l&&f(te)&&T){if(!L&&P)throw new Error("Fallback data is required when using suspense in SSR.");throw _.current=t,F.current=n,A.current=!1,f(ne)?ue(Y):ne}return{mutate:ce,get data(){return $.data=!0,oe},get error(){return $.error=!0,ne},get isValidating(){return $.isValidating=!0,se},get isLoading(){return $.isLoading=!0,le}}},function(...e){const t=W(),[n,r,o]=(e=>p(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}])(e),a=z(t,o);let i=K;const{use:s}=a,l=(s||[]).concat(X);for(let e=l.length;e--;)i=l[e](i);return i(n,r||a.fetcher||null,a)});var K,Q=window.wp.components,ee=window.wp.i18n;const te=()=>(0,e.createElement)("div",{className:"extendify-onboarding w-full fixed bottom-4 px-4 flex justify-end z-max"},(0,e.createElement)("div",{className:"shadow-2xl"},(0,e.createElement)(Q.Snackbar,null,(0,ee.__)("Just a moment, this is taking longer than expected.","extendify"))));function ne(...e){return e.filter(Boolean).join(" ")}function re(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,re),r}var oe=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(oe||{}),ae=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(ae||{});function ie({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:a=!0,name:i}){let s=le(t,e);if(a)return se(s,n,r,i);let l=null!=o?o:0;if(2&l){let{static:e=!1,...t}=s;if(e)return se(t,n,r,i)}if(1&l){let{unmount:e=!0,...t}=s;return re(e?0:1,{0(){return null},1(){return se({...t,hidden:!0,style:{display:"none"}},n,r,i)}})}return se(s,n,r,i)}function se(e,t={},n,r){var a;let{as:i=n,children:s,refName:l="ref",...u}=de(e,["unmount","static"]),c=void 0!==e.ref?{[l]:e.ref}:{},d="function"==typeof s?s(t):s;u.className&&"function"==typeof u.className&&(u.className=u.className(t));let f={};if(t){let e=!1,n=[];for(let[r,o]of Object.entries(t))"boolean"==typeof o&&(e=!0),!0===o&&n.push(r);e&&(f["data-headlessui-state"]=n.join(" "))}if(i===o.Fragment&&Object.keys(ce(u)).length>0){if(!(0,o.isValidElement)(d)||Array.isArray(d)&&d.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(u).map((e=>`  - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>`  - ${e}`)).join("\n")].join("\n"));let e=ne(null==(a=d.props)?void 0:a.className,u.className),t=e?{className:e}:{};return(0,o.cloneElement)(d,Object.assign({},le(d.props,ce(de(u,["ref"]))),f,c,function(...e){return{ref:e.every((e=>null==e))?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}}(d.ref,c.ref),t))}return(0,o.createElement)(i,Object.assign({},de(u,["ref"]),i!==o.Fragment&&c,i!==o.Fragment&&f),d)}function le(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map((e=>[e,void 0]))));for(let e in n)Object.assign(t,{[e](t,...r){let o=n[e];for(let e of o){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;e(t,...r)}}});return t}function ue(e){var t;return Object.assign((0,o.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function ce(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function de(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}let fe=(0,o.createContext)(null);fe.displayName="OpenClosedContext";var pe=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(pe||{});function me(){return(0,o.useContext)(fe)}function he({value:e,children:t}){return o.createElement(fe.Provider,{value:e},t)}var ge=Object.defineProperty,ve=(e,t,n)=>(((e,t,n)=>{t in e?ge(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let ye=new class{constructor(){ve(this,"current",this.detect()),ve(this,"handoffState","pending"),ve(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}},be=(e,t)=>{ye.isServer?(0,o.useEffect)(e,t):(0,o.useLayoutEffect)(e,t)};function we(){let e=(0,o.useRef)(!1);return be((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function xe(e){let t=(0,o.useRef)(e);return be((()=>{t.current=e}),[e]),t}function Ee(){let[e,t]=(0,o.useState)(ye.isHandoffComplete);return e&&!1===ye.isHandoffComplete&&t(!1),(0,o.useEffect)((()=>{!0!==e&&t(!0)}),[e]),(0,o.useEffect)((()=>ye.handoff()),[]),e}let Ce=function(e){let t=xe(e);return o.useCallback(((...e)=>t.current(...e)),[t])},Se=Symbol();function Oe(...e){let t=(0,o.useRef)(e);(0,o.useEffect)((()=>{t.current=e}),[e]);let n=Ce((e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[Se])))?void 0:n}function Te(){let e=[],t=[],n={enqueue(e){t.push(e)},addEventListener(e,t,r,o){return e.addEventListener(t,r,o),n.add((()=>e.removeEventListener(t,r,o)))},requestAnimationFrame(...e){let t=requestAnimationFrame(...e);return n.add((()=>cancelAnimationFrame(t)))},nextFrame(...e){return n.requestAnimationFrame((()=>n.requestAnimationFrame(...e)))},setTimeout(...e){let t=setTimeout(...e);return n.add((()=>clearTimeout(t)))},microTask(...e){let t={current:!0};return function(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}((()=>{t.current&&e[0]()})),n.add((()=>{t.current=!1}))},add(t){return e.push(t),()=>{let n=e.indexOf(t);if(n>=0){let[t]=e.splice(n,1);t()}}},dispose(){for(let t of e.splice(0))t()},async workQueue(){for(let e of t.splice(0))await e()},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add((()=>{Object.assign(e.style,{[t]:r})}))}};return n}function Le(e,...t){e&&t.length>0&&e.classList.add(...t)}function Pe(e,...t){e&&t.length>0&&e.classList.remove(...t)}function ke(){let[e]=(0,o.useState)(Te);return(0,o.useEffect)((()=>()=>e.dispose()),[e]),e}function Re({container:e,direction:t,classes:n,onStart:r,onStop:o}){let a=we(),i=ke(),s=xe(t);be((()=>{let t=Te();i.add(t.dispose);let l=e.current;if(l&&"idle"!==s.current&&a.current)return t.dispose(),r.current(s.current),t.add(function(e,t,n,r){let o=n?"enter":"leave",a=Te(),i=void 0!==r?function(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}(r):()=>{};"enter"===o&&(e.removeAttribute("hidden"),e.style.display="");let s=re(o,{enter:()=>t.enter,leave:()=>t.leave}),l=re(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),u=re(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Pe(e,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Le(e,...s,...u),a.nextFrame((()=>{Pe(e,...u),Le(e,...l),function(e,t){let n=Te();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[a,i]=[r,o].map((e=>{let[t=0]=e.split(",").filter(Boolean).map((e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e))).sort(((e,t)=>t-e));return t}));if(a+i!==0){let r=n.addEventListener(e,"transitionend",(e=>{e.target===e.currentTarget&&(t(),r())}))}else t();n.add((()=>t())),n.dispose}(e,(()=>(Pe(e,...s),Le(e,...t.entered),i())))})),a.dispose}(l,n.current,"enter"===s.current,(()=>{t.dispose(),o.current(s.current)}))),t.dispose}),[t])}function Me(e=""){return e.split(" ").filter((e=>e.trim().length>1))}let Ne=(0,o.createContext)(null);Ne.displayName="TransitionContext";var Ae=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Ae||{});let Ve=(0,o.createContext)(null);function Ie(e){return"children"in e?Ie(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function De(e,t){let n=xe(e),r=(0,o.useRef)([]),a=we(),i=ke(),s=Ce(((e,t=ae.Hidden)=>{let o=r.current.findIndex((({el:t})=>t===e));-1!==o&&(re(t,{[ae.Unmount](){r.current.splice(o,1)},[ae.Hidden](){r.current[o].state="hidden"}}),i.microTask((()=>{var e;!Ie(r)&&a.current&&(null==(e=n.current)||e.call(n))})))})),l=Ce((e=>{let t=r.current.find((({el:t})=>t===e));return t?"visible"!==t.state&&(t.state="visible"):r.current.push({el:e,state:"visible"}),()=>s(e,ae.Unmount)})),u=(0,o.useRef)([]),c=(0,o.useRef)(Promise.resolve()),d=(0,o.useRef)({enter:[],leave:[],idle:[]}),f=Ce(((e,n,r)=>{u.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter((([t])=>t!==e))),null==t||t.chains.current[n].push([e,new Promise((e=>{u.current.push(e)}))]),null==t||t.chains.current[n].push([e,new Promise((e=>{Promise.all(d.current[n].map((([e,t])=>t))).then((()=>e()))}))]),"enter"===n?c.current=c.current.then((()=>null==t?void 0:t.wait.current)).then((()=>r(n))):r(n)})),p=Ce(((e,t,n)=>{Promise.all(d.current[t].splice(0).map((([e,t])=>t))).then((()=>{var e;null==(e=u.current.shift())||e()})).then((()=>n(t)))}));return(0,o.useMemo)((()=>({children:r,register:l,unregister:s,onStart:f,onStop:p,wait:c,chains:d})),[l,s,r,f,p,d,c])}function je(){}Ve.displayName="NestingContext";let _e=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Fe(e){var t;let n={};for(let r of _e)n[r]=null!=(t=e[r])?t:je;return n}let He=oe.RenderStrategy,Be=ue((function(e,t){let{beforeEnter:n,afterEnter:r,beforeLeave:a,afterLeave:i,enter:s,enterFrom:l,enterTo:u,entered:c,leave:d,leaveFrom:f,leaveTo:p,...m}=e,h=(0,o.useRef)(null),g=Oe(h,t),v=m.unmount?ae.Unmount:ae.Hidden,{show:y,appear:b,initial:w}=function(){let e=(0,o.useContext)(Ne);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[x,E]=(0,o.useState)(y?"visible":"hidden"),C=function(){let e=(0,o.useContext)(Ve);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:S,unregister:O}=C,T=(0,o.useRef)(null);(0,o.useEffect)((()=>S(h)),[S,h]),(0,o.useEffect)((()=>{if(v===ae.Hidden&&h.current)return y&&"visible"!==x?void E("visible"):re(x,{hidden:()=>O(h),visible:()=>S(h)})}),[x,h,S,O,y,v]);let L=xe({enter:Me(s),enterFrom:Me(l),enterTo:Me(u),entered:Me(c),leave:Me(d),leaveFrom:Me(f),leaveTo:Me(p)}),P=function(e){let t=(0,o.useRef)(Fe(e));return(0,o.useEffect)((()=>{t.current=Fe(e)}),[e]),t}({beforeEnter:n,afterEnter:r,beforeLeave:a,afterLeave:i}),k=Ee();(0,o.useEffect)((()=>{if(k&&"visible"===x&&null===h.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[h,x,k]);let R=w&&!b,M=!k||R||T.current===y?"idle":y?"enter":"leave",N=Ce((e=>re(e,{enter:()=>P.current.beforeEnter(),leave:()=>P.current.beforeLeave(),idle:()=>{}}))),A=Ce((e=>re(e,{enter:()=>P.current.afterEnter(),leave:()=>P.current.afterLeave(),idle:()=>{}}))),V=De((()=>{E("hidden"),O(h)}),C);Re({container:h,classes:L,direction:M,onStart:xe((e=>{V.onStart(h,e,N)})),onStop:xe((e=>{V.onStop(h,e,A),"leave"===e&&!Ie(V)&&(E("hidden"),O(h))}))}),(0,o.useEffect)((()=>{!R||(v===ae.Hidden?T.current=null:T.current=y)}),[y,R,x]);let I=m,D={ref:g};return b&&y&&ye.isServer&&(I={...I,className:ne(m.className,...L.current.enter,...L.current.enterFrom)}),o.createElement(Ve.Provider,{value:V},o.createElement(he,{value:re(x,{visible:pe.Open,hidden:pe.Closed})},ie({ourProps:D,theirProps:I,defaultTag:"div",features:He,visible:"visible"===x,name:"Transition.Child"})))})),Ue=ue((function(e,t){let{show:n,appear:r=!1,unmount:a,...i}=e,s=(0,o.useRef)(null),l=Oe(s,t);Ee();let u=me();if(void 0===n&&null!==u&&(n=re(u,{[pe.Open]:!0,[pe.Closed]:!1})),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,d]=(0,o.useState)(n?"visible":"hidden"),f=De((()=>{d("hidden")})),[p,m]=(0,o.useState)(!0),h=(0,o.useRef)([n]);be((()=>{!1!==p&&h.current[h.current.length-1]!==n&&(h.current.push(n),m(!1))}),[h,n]);let g=(0,o.useMemo)((()=>({show:n,appear:r,initial:p})),[n,r,p]);(0,o.useEffect)((()=>{if(n)d("visible");else if(Ie(f)){let e=s.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&d("hidden")}else d("hidden")}),[n,f]);let v={unmount:a};return o.createElement(Ve.Provider,{value:f},o.createElement(Ne.Provider,{value:g},ie({ourProps:{...v,as:o.Fragment,children:o.createElement(Be,{ref:l,...v,...i})},theirProps:{},defaultTag:o.Fragment,features:He,visible:"visible"===c,name:"Transition"})))})),ze=ue((function(e,t){let n=null!==(0,o.useContext)(Ne),r=null!==me();return o.createElement(o.Fragment,null,!n&&r?o.createElement(Ue,{ref:t,...e}):o.createElement(Be,{ref:t,...e}))})),qe=Object.assign(Ue,{Child:ze,Root:Ue});var Ze={grad:.9,turn:360,rad:360/(2*Math.PI)},$e=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},We=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},Xe=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},Ye=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},Ge=function(e){return{r:Xe(e.r,0,255),g:Xe(e.g,0,255),b:Xe(e.b,0,255),a:Xe(e.a)}},Je=function(e){return{r:We(e.r),g:We(e.g),b:We(e.b),a:We(e.a,3)}},Ke=/^#([0-9a-f]{3,8})$/i,Qe=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},et=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=Math.max(t,n,r),i=a-Math.min(t,n,r),s=i?a===t?(n-r)/i:a===n?2+(r-t)/i:4+(t-n)/i:0;return{h:60*(s<0?s+6:s),s:a?i/a*100:0,v:a/255*100,a:o}},tt=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var a=Math.floor(t),i=r*(1-n),s=r*(1-(t-a)*n),l=r*(1-(1-t+a)*n),u=a%6;return{r:255*[r,s,i,i,l,r][u],g:255*[l,r,r,s,i,i][u],b:255*[i,i,l,r,r,s][u],a:o}},nt=function(e){return{h:Ye(e.h),s:Xe(e.s,0,100),l:Xe(e.l,0,100),a:Xe(e.a)}},rt=function(e){return{h:We(e.h),s:We(e.s),l:We(e.l),a:We(e.a,3)}},ot=function(e){return tt((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r},at=function(e){return{h:(t=et(e)).h,s:(o=(200-(n=t.s))*(r=t.v)/100)>0&&o<200?n*r/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,n,r,o},it=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,st=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,lt=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ut=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ct={string:[[function(e){var t=Ke.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?We(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?We(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=lt.exec(e)||ut.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Ge({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=it.exec(e)||st.exec(e);if(!t)return null;var n,r,o=nt({h:(n=t[1],r=t[2],void 0===r&&(r="deg"),Number(n)*(Ze[r]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return ot(o)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=void 0===o?1:o;return $e(t)&&$e(n)&&$e(r)?Ge({r:Number(t),g:Number(n),b:Number(r),a:Number(a)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,o=e.a,a=void 0===o?1:o;if(!$e(t)||!$e(n)||!$e(r))return null;var i=nt({h:Number(t),s:Number(n),l:Number(r),a:Number(a)});return ot(i)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,o=e.a,a=void 0===o?1:o;if(!$e(t)||!$e(n)||!$e(r))return null;var i=function(e){return{h:Ye(e.h),s:Xe(e.s,0,100),v:Xe(e.v,0,100),a:Xe(e.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(a)});return tt(i)},"hsv"]]},dt=function(e,t){for(var n=0;n<t.length;n++){var r=t[n][0](e);if(r)return[r,t[n][1]]}return[null,void 0]},ft=function(e){return"string"==typeof e?dt(e.trim(),ct.string):"object"==typeof e&&null!==e?dt(e,ct.object):[null,void 0]},pt=function(e,t){var n=at(e);return{h:n.h,s:Xe(n.s+100*t,0,100),l:n.l,a:n.a}},mt=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},ht=function(e,t){var n=at(e);return{h:n.h,s:n.s,l:Xe(n.l+100*t,0,100),a:n.a}},gt=function(){function e(e){this.parsed=ft(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return We(mt(this.rgba),2)},e.prototype.isDark=function(){return mt(this.rgba)<.5},e.prototype.isLight=function(){return mt(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=Je(this.rgba)).r,n=e.g,r=e.b,a=(o=e.a)<1?Qe(We(255*o)):"","#"+Qe(t)+Qe(n)+Qe(r)+a;var e,t,n,r,o,a},e.prototype.toRgb=function(){return Je(this.rgba)},e.prototype.toRgbString=function(){return t=(e=Je(this.rgba)).r,n=e.g,r=e.b,(o=e.a)<1?"rgba("+t+", "+n+", "+r+", "+o+")":"rgb("+t+", "+n+", "+r+")";var e,t,n,r,o},e.prototype.toHsl=function(){return rt(at(this.rgba))},e.prototype.toHslString=function(){return t=(e=rt(at(this.rgba))).h,n=e.s,r=e.l,(o=e.a)<1?"hsla("+t+", "+n+"%, "+r+"%, "+o+")":"hsl("+t+", "+n+"%, "+r+"%)";var e,t,n,r,o},e.prototype.toHsv=function(){return e=et(this.rgba),{h:We(e.h),s:We(e.s),v:We(e.v),a:We(e.a,3)};var e},e.prototype.invert=function(){return vt({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),vt(pt(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),vt(pt(this.rgba,-e))},e.prototype.grayscale=function(){return vt(pt(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),vt(ht(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),vt(ht(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?vt({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):We(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=at(this.rgba);return"number"==typeof e?vt({h:e,s:t.s,l:t.l,a:t.a}):We(t.h)},e.prototype.isEqual=function(e){return this.toHex()===vt(e).toHex()},e}(),vt=function(e){return e instanceof gt?e:new gt(e)};function yt(e,t){return function(){return e.apply(t,arguments)}}const{toString:bt}=Object.prototype,{getPrototypeOf:wt}=Object,xt=(e=>t=>{const n=bt.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Et=e=>(e=e.toLowerCase(),t=>xt(t)===e),Ct=e=>t=>typeof t===e,{isArray:St}=Array,Ot=Ct("undefined"),Tt=Et("ArrayBuffer"),Lt=Ct("string"),Pt=Ct("function"),kt=Ct("number"),Rt=e=>null!==e&&"object"==typeof e,Mt=e=>{if("object"!==xt(e))return!1;const t=wt(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},Nt=Et("Date"),At=Et("File"),Vt=Et("Blob"),It=Et("FileList"),Dt=Et("URLSearchParams");function jt(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),St(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let i;for(r=0;r<a;r++)i=o[r],t.call(null,e[i],i,e)}}function _t(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const Ft="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Ht=e=>!Ot(e)&&e!==Ft,Bt=(Ut="undefined"!=typeof Uint8Array&&wt(Uint8Array),e=>Ut&&e instanceof Ut);var Ut;const zt=Et("HTMLFormElement"),qt=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Zt=Et("RegExp"),$t=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};jt(n,((n,o)=>{!1!==t(n,o,e)&&(r[o]=n)})),Object.defineProperties(e,r)},Wt="abcdefghijklmnopqrstuvwxyz",Xt="0123456789",Yt={DIGIT:Xt,ALPHA:Wt,ALPHA_DIGIT:Wt+Wt.toUpperCase()+Xt};var Gt={isArray:St,isArrayBuffer:Tt,isBuffer:function(e){return null!==e&&!Ot(e)&&null!==e.constructor&&!Ot(e.constructor)&&Pt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{const t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||bt.call(e)===t||Pt(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Tt(e.buffer),t},isString:Lt,isNumber:kt,isBoolean:e=>!0===e||!1===e,isObject:Rt,isPlainObject:Mt,isUndefined:Ot,isDate:Nt,isFile:At,isBlob:Vt,isRegExp:Zt,isFunction:Pt,isStream:e=>Rt(e)&&Pt(e.pipe),isURLSearchParams:Dt,isTypedArray:Bt,isFileList:It,forEach:jt,merge:function e(){const{caseless:t}=Ht(this)&&this||{},n={},r=(r,o)=>{const a=t&&_t(n,o)||o;Mt(n[a])&&Mt(r)?n[a]=e(n[a],r):Mt(r)?n[a]=e({},r):St(r)?n[a]=r.slice():n[a]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&jt(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(jt(t,((t,r)=>{n&&Pt(t)?e[r]=yt(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,a,i;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)i=o[a],r&&!r(i,e,t)||s[i]||(t[i]=e[i],s[i]=!0);e=!1!==n&&wt(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:xt,kindOfTest:Et,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(St(e))return e;let t=e.length;if(!kt(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:zt,hasOwnProperty:qt,hasOwnProp:qt,reduceDescriptors:$t,freezeMethods:e=>{$t(e,((t,n)=>{if(Pt(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];Pt(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return St(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:_t,global:Ft,isContextDefined:Ht,ALPHABET:Yt,generateString:(e=16,t=Yt.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&Pt(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(Rt(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=St(e)?[]:{};return jt(e,((e,t)=>{const a=n(e,r+1);!Ot(a)&&(o[t]=a)})),t[r]=void 0,o}}return e};return n(e,0)}};function Jt(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}Gt.inherits(Jt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Gt.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Kt=Jt.prototype,Qt={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{Qt[e]={value:e}})),Object.defineProperties(Jt,Qt),Object.defineProperty(Kt,"isAxiosError",{value:!0}),Jt.from=(e,t,n,r,o,a)=>{const i=Object.create(Kt);return Gt.toFlatObject(e,i,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Jt.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,a&&Object.assign(i,a),i};var en=Jt;function tn(e){return Gt.isPlainObject(e)||Gt.isArray(e)}function nn(e){return Gt.endsWith(e,"[]")?e.slice(0,-2):e}function rn(e,t,n){return e?e.concat(t).map((function(e,t){return e=nn(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const on=Gt.toFlatObject(Gt,{},null,(function(e){return/^is[A-Z]/.test(e)}));var an=function(e,t,n){if(!Gt.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Gt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Gt.isUndefined(t[e])}))).metaTokens,o=n.visitor||u,a=n.dots,i=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Gt.isSpecCompliantForm(t);if(!Gt.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(Gt.isDate(e))return e.toISOString();if(!s&&Gt.isBlob(e))throw new en("Blob is not supported. Use a Buffer instead.");return Gt.isArrayBuffer(e)||Gt.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(Gt.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Gt.isArray(e)&&function(e){return Gt.isArray(e)&&!e.some(tn)}(e)||(Gt.isFileList(e)||Gt.endsWith(n,"[]"))&&(s=Gt.toArray(e)))return n=nn(n),s.forEach((function(e,r){!Gt.isUndefined(e)&&null!==e&&t.append(!0===i?rn([n],r,a):null===i?n:n+"[]",l(e))})),!1;return!!tn(e)||(t.append(rn(o,n,a),l(e)),!1)}const c=[],d=Object.assign(on,{defaultVisitor:u,convertValue:l,isVisitable:tn});if(!Gt.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!Gt.isUndefined(n)){if(-1!==c.indexOf(n))throw Error("Circular reference detected in "+r.join("."));c.push(n),Gt.forEach(n,(function(n,a){!0===(!(Gt.isUndefined(n)||null===n)&&o.call(t,n,Gt.isString(a)?a.trim():a,r,d))&&e(n,r?r.concat(a):[a])})),c.pop()}}(e),t};function sn(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function ln(e,t){this._pairs=[],e&&an(e,this,t)}const un=ln.prototype;un.append=function(e,t){this._pairs.push([e,t])},un.toString=function(e){const t=e?function(t){return e.call(this,t,sn)}:sn;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var cn=ln;function dn(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function fn(e,t,n){if(!t)return e;const r=n&&n.encode||dn,o=n&&n.serialize;let a;if(a=o?o(t,n):Gt.isURLSearchParams(t)?t.toString():new cn(t,n).toString(r),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}var pn=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Gt.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},mn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},hn="undefined"!=typeof URLSearchParams?URLSearchParams:cn,gn=FormData;const vn=(()=>{let e;return("undefined"==typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&"undefined"!=typeof window&&"undefined"!=typeof document})(),yn="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts;var bn={isBrowser:!0,classes:{URLSearchParams:hn,FormData:gn,Blob:Blob},isStandardBrowserEnv:vn,isStandardBrowserWebWorkerEnv:yn,protocols:["http","https","file","blob","url","data"]},wn=function(e){function t(e,n,r,o){let a=e[o++];const i=Number.isFinite(+a),s=o>=e.length;return a=!a&&Gt.isArray(r)?r.length:a,s?(Gt.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!i):(r[a]&&Gt.isObject(r[a])||(r[a]=[]),t(e,n,r[a],o)&&Gt.isArray(r[a])&&(r[a]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let a;for(r=0;r<o;r++)a=n[r],t[a]=e[a];return t}(r[a])),!i)}if(Gt.isFormData(e)&&Gt.isFunction(e.entries)){const n={};return Gt.forEachEntry(e,((e,r)=>{t(function(e){return Gt.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null};const xn={"Content-Type":void 0},En={transitional:mn,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=Gt.isObject(e);if(o&&Gt.isHTMLForm(e)&&(e=new FormData(e)),Gt.isFormData(e))return r&&r?JSON.stringify(wn(e)):e;if(Gt.isArrayBuffer(e)||Gt.isBuffer(e)||Gt.isStream(e)||Gt.isFile(e)||Gt.isBlob(e))return e;if(Gt.isArrayBufferView(e))return e.buffer;if(Gt.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return an(e,new bn.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return bn.isNode&&Gt.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((a=Gt.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return an(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(Gt.isString(e))try{return(0,JSON.parse)(e),Gt.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||En.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&Gt.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw en.from(e,en.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:bn.classes.FormData,Blob:bn.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Gt.forEach(["delete","get","head"],(function(e){En.headers[e]={}})),Gt.forEach(["post","put","patch"],(function(e){En.headers[e]=Gt.merge(xn)}));var Cn=En;const Sn=Gt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),On=Symbol("internals");function Tn(e){return e&&String(e).trim().toLowerCase()}function Ln(e){return!1===e||null==e?e:Gt.isArray(e)?e.map(Ln):String(e)}function Pn(e,t,n,r){return Gt.isFunction(r)?r.call(this,t,n):Gt.isString(t)?Gt.isString(r)?-1!==t.indexOf(r):Gt.isRegExp(r)?r.test(t):void 0:void 0}class kn{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Tn(t);if(!o)throw new Error("header name must be a non-empty string");const a=Gt.findKey(r,o);(!a||void 0===r[a]||!0===n||void 0===n&&!1!==r[a])&&(r[a||t]=Ln(e))}const a=(e,t)=>Gt.forEach(e,((e,n)=>o(e,n,t)));return Gt.isPlainObject(e)||e instanceof this.constructor?a(e,t):Gt.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z]+$/.test(e.trim())?a((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&Sn[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t):null!=e&&o(t,e,n),this}get(e,t){if(e=Tn(e)){const n=Gt.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(Gt.isFunction(t))return t.call(this,e,n);if(Gt.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Tn(e)){const n=Gt.findKey(this,e);return!(!n||void 0===this[n]||t&&!Pn(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Tn(e)){const o=Gt.findKey(n,e);!o||t&&!Pn(0,n[o],o,t)||(delete n[o],r=!0)}}return Gt.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!Pn(0,this[o],o,e)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return Gt.forEach(this,((r,o)=>{const a=Gt.findKey(n,o);if(a)return t[a]=Ln(r),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();i!==o&&delete t[o],t[i]=Ln(r),n[i]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Gt.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Gt.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[On]=this[On]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Tn(e);t[r]||(function(e,t){const n=Gt.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return Gt.isArray(e)?e.forEach(r):r(e),this}}kn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Gt.freezeMethods(kn.prototype),Gt.freezeMethods(kn);var Rn=kn;function Mn(e,t){const n=this||Cn,r=t||n,o=Rn.from(r.headers);let a=r.data;return Gt.forEach(e,(function(e){a=e.call(n,a,o.normalize(),t?t.status:void 0)})),o.normalize(),a}function Nn(e){return!(!e||!e.__CANCEL__)}function An(e,t,n){en.call(this,null==e?"canceled":e,en.ERR_CANCELED,t,n),this.name="CanceledError"}Gt.inherits(An,en,{__CANCEL__:!0});var Vn=An,In=bn.isStandardBrowserEnv?{write:function(e,t,n,r,o,a){const i=[];i.push(e+"="+encodeURIComponent(t)),Gt.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),Gt.isString(r)&&i.push("path="+r),Gt.isString(o)&&i.push("domain="+o),!0===a&&i.push("secure"),document.cookie=i.join("; ")},read:function(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function Dn(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}var jn=bn.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=Gt.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0},Fn=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,a=0,i=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),u=r[i];o||(o=l),n[a]=s,r[a]=l;let c=i,d=0;for(;c!==a;)d+=n[c++],c%=e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),l-o<t)return;const f=u&&l-u;return f?Math.round(1e3*d/f):void 0}};function Hn(e,t){let n=0;const r=Fn(50,250);return o=>{const a=o.loaded,i=o.lengthComputable?o.total:void 0,s=a-n,l=r(s);n=a;const u={loaded:a,total:i,progress:i?a/i:void 0,bytes:s,rate:l||void 0,estimated:l&&i&&a<=i?(i-a)/l:void 0,event:o};u[t?"download":"upload"]=!0,e(u)}}const Bn={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let r=e.data;const o=Rn.from(e.headers).normalize(),a=e.responseType;let i;function s(){e.cancelToken&&e.cancelToken.unsubscribe(i),e.signal&&e.signal.removeEventListener("abort",i)}Gt.isFormData(r)&&(bn.isStandardBrowserEnv||bn.isStandardBrowserWebWorkerEnv)&&o.setContentType(!1);let l=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(t+":"+n))}const u=Dn(e.baseURL,e.url);function c(){if(!l)return;const r=Rn.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new en("Request failed with status code "+n.status,[en.ERR_BAD_REQUEST,en.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),s()}),(function(e){n(e),s()}),{data:a&&"text"!==a&&"json"!==a?l.response:l.responseText,status:l.status,statusText:l.statusText,headers:r,config:e,request:l}),l=null}if(l.open(e.method.toUpperCase(),fn(u,e.params,e.paramsSerializer),!0),l.timeout=e.timeout,"onloadend"in l?l.onloadend=c:l.onreadystatechange=function(){l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))&&setTimeout(c)},l.onabort=function(){l&&(n(new en("Request aborted",en.ECONNABORTED,e,l)),l=null)},l.onerror=function(){n(new en("Network Error",en.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||mn;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new en(t,r.clarifyTimeoutError?en.ETIMEDOUT:en.ECONNABORTED,e,l)),l=null},bn.isStandardBrowserEnv){const t=(e.withCredentials||jn(u))&&e.xsrfCookieName&&In.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===r&&o.setContentType(null),"setRequestHeader"in l&&Gt.forEach(o.toJSON(),(function(e,t){l.setRequestHeader(t,e)})),Gt.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),a&&"json"!==a&&(l.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&l.addEventListener("progress",Hn(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",Hn(e.onUploadProgress)),(e.cancelToken||e.signal)&&(i=t=>{l&&(n(!t||t.type?new Vn(null,e,l):t),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(i),e.signal&&(e.signal.aborted?i():e.signal.addEventListener("abort",i)));const d=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(u);d&&-1===bn.protocols.indexOf(d)?n(new en("Unsupported protocol "+d+":",en.ERR_BAD_REQUEST,e)):l.send(r||null)}))}};Gt.forEach(Bn,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));var Un={getAdapter:e=>{e=Gt.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let o=0;o<t&&(n=e[o],!(r=Gt.isString(n)?Bn[n.toLowerCase()]:n));o++);if(!r){if(!1===r)throw new en(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT");throw new Error(Gt.hasOwnProp(Bn,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`)}if(!Gt.isFunction(r))throw new TypeError("adapter is not a function");return r},adapters:Bn};function zn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Vn(null,e)}function qn(e){return zn(e),e.headers=Rn.from(e.headers),e.data=Mn.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Un.getAdapter(e.adapter||Cn.adapter)(e).then((function(t){return zn(e),t.data=Mn.call(e,e.transformResponse,t),t.headers=Rn.from(t.headers),t}),(function(t){return Nn(t)||(zn(e),t&&t.response&&(t.response.data=Mn.call(e,e.transformResponse,t.response),t.response.headers=Rn.from(t.response.headers))),Promise.reject(t)}))}const Zn=e=>e instanceof Rn?e.toJSON():e;function $n(e,t){t=t||{};const n={};function r(e,t,n){return Gt.isPlainObject(e)&&Gt.isPlainObject(t)?Gt.merge.call({caseless:n},e,t):Gt.isPlainObject(t)?Gt.merge({},t):Gt.isArray(t)?t.slice():t}function o(e,t,n){return Gt.isUndefined(t)?Gt.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function a(e,t){if(!Gt.isUndefined(t))return r(void 0,t)}function i(e,t){return Gt.isUndefined(t)?Gt.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,a){return a in t?r(n,o):a in e?r(void 0,n):void 0}const l={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(e,t)=>o(Zn(e),Zn(t),!0)};return Gt.forEach(Object.keys(e).concat(Object.keys(t)),(function(r){const a=l[r]||o,i=a(e[r],t[r],r);Gt.isUndefined(i)&&a!==s||(n[r]=i)})),n}const Wn="1.3.2",Xn={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Xn[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Yn={};Xn.transitional=function(e,t,n){function r(e,t){return"[Axios v"+Wn+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,a)=>{if(!1===e)throw new en(r(o," has been removed"+(t?" in "+t:"")),en.ERR_DEPRECATED);return t&&!Yn[o]&&(Yn[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,a)}};var Gn={assertOptions:function(e,t,n){if("object"!=typeof e)throw new en("options must be an object",en.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const a=r[o],i=t[a];if(i){const t=e[a],n=void 0===t||i(t,a,e);if(!0!==n)throw new en("option "+a+" must be "+n,en.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new en("Unknown option "+a,en.ERR_BAD_OPTION)}},validators:Xn};const Jn=Gn.validators;class Kn{constructor(e){this.defaults=e,this.interceptors={request:new pn,response:new pn}}request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=$n(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;let a;void 0!==n&&Gn.assertOptions(n,{silentJSONParsing:Jn.transitional(Jn.boolean),forcedJSONParsing:Jn.transitional(Jn.boolean),clarifyTimeoutError:Jn.transitional(Jn.boolean)},!1),void 0!==r&&Gn.assertOptions(r,{encode:Jn.function,serialize:Jn.function},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase(),a=o&&Gt.merge(o.common,o[t.method]),a&&Gt.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Rn.concat(a,o);const i=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));const l=[];let u;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let c,d=0;if(!s){const e=[qn.bind(this),void 0];for(e.unshift.apply(e,i),e.push.apply(e,l),c=e.length,u=Promise.resolve(t);d<c;)u=u.then(e[d++],e[d++]);return u}c=i.length;let f=t;for(d=0;d<c;){const e=i[d++],t=i[d++];try{f=e(f)}catch(e){t.call(this,e);break}}try{u=qn.call(this,f)}catch(e){return Promise.reject(e)}for(d=0,c=l.length;d<c;)u=u.then(l[d++],l[d++]);return u}getUri(e){return fn(Dn((e=$n(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}Gt.forEach(["delete","get","head","options"],(function(e){Kn.prototype[e]=function(t,n){return this.request($n(n||{},{method:e,url:t,data:(n||{}).data}))}})),Gt.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request($n(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Kn.prototype[e]=t(),Kn.prototype[e+"Form"]=t(!0)}));var Qn=Kn;class er{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new Vn(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;const t=new er((function(t){e=t}));return{token:t,cancel:e}}}var tr=er;const nr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(nr).forEach((([e,t])=>{nr[t]=e}));var rr=nr;const or=function e(t){const n=new Qn(t),r=yt(Qn.prototype.request,n);return Gt.extend(r,Qn.prototype,n,{allOwnKeys:!0}),Gt.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e($n(t,n))},r}(Cn);or.Axios=Qn,or.CanceledError=Vn,or.CancelToken=tr,or.isCancel=Nn,or.VERSION=Wn,or.toFormData=an,or.AxiosError=en,or.Cancel=or.CanceledError,or.all=function(e){return Promise.all(e)},or.spread=function(e){return function(t){return e.apply(null,t)}},or.isAxiosError=function(e){return Gt.isObject(e)&&!0===e.isAxiosError},or.mergeConfig=$n,or.AxiosHeaders=Rn,or.formToJSON=e=>wn(Gt.isHTMLForm(e)?new FormData(e):e),or.HttpStatusCode=rr,or.default=or;const ar=or.create({baseURL:window.extOnbData.root,headers:{"X-WP-Nonce":window.extOnbData.nonce,"X-Requested-With":"XMLHttpRequest","X-Extendify-Onboarding":!0,"X-Extendify":!0}});ar.interceptors.request.use((e=>lr(e)),(e=>e)),ar.interceptors.response.use((e=>ir(e)),(e=>sr(e)));const ir=e=>Object.prototype.hasOwnProperty.call(e,"data")?e.data:e,sr=e=>{if(e.response)return console.error(e.response),e.response.status>=400&&e.response.status<500?Promise.reject(e.response):Promise.reject(ir(e.response))},lr=e=>(e.headers["X-Extendify-Onboarding-Dev-Mode"]=window.location.search.indexOf("DEVMODE")>-1,e.headers["X-Extendify-Onboarding-Local-Mode"]=window.location.search.indexOf("LOCALMODE")>-1,e),ur=e=>ar.post("onboarding/parse-theme-json",{themeJson:e}),cr=(e,t)=>ar.post("onboarding/options",{option:e,value:t}),dr=async e=>{const{data:t}=await ar.get("onboarding/options",{params:{option:e}});return t},fr=e=>ar.get(`${window.extOnbData.wpRoot}wp/v2/pages/${e}`),pr=async e=>{if(e?.wordpressSlug){try{const t=await ar.post(`${window.extOnbData.wpRoot}wp/v2/plugins`,{slug:e.wordpressSlug,status:"active"});if(!t.ok)return t}catch(e){}try{return await mr(e)}catch(e){}}},mr=async e=>{const t=`${window.extOnbData.wpRoot}wp/v2/plugins`,n=(await ar.get(`${t}?search=${e.wordpressSlug}`))?.[0]?.plugin;if(!n)throw new Error("Plugin not found");return await ar.post(`${t}/${n}`,{status:"active"})},hr=(e,t)=>ar.post(`${window.extOnbData.wpRoot}wp/v2/template-parts/${e}`,{slug:`${e}`,theme:"extendable",type:"wp_template_part",status:"publish",description:(0,ee.sprintf)(
// translators: %s is the name of the product, Extendify Launch
(0,ee.__)("Added by %s","extendify"),"Extendify Launch"),content:t}),gr=async()=>{const e=await ar.get(window.extOnbData.wpRoot+"wp/v2/global-styles/themes/extendable/variations");if(!Array.isArray(e))throw new Error("Could not get theme variations");return{data:e}};var vr={};!function e(t,n,r,o){var a=!!(t.Worker&&t.Blob&&t.Promise&&t.OffscreenCanvas&&t.OffscreenCanvasRenderingContext2D&&t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype.transferControlToOffscreen&&t.URL&&t.URL.createObjectURL);function i(){}function s(e){var r=n.exports.Promise,o=void 0!==r?r:t.Promise;return"function"==typeof o?new o(e):(e(i,i),null)}var l,u,c,d,f,p,m,h,g,v=(c=Math.floor(1e3/60),d={},f=0,"function"==typeof requestAnimationFrame&&"function"==typeof cancelAnimationFrame?(l=function(e){var t=Math.random();return d[t]=requestAnimationFrame((function n(r){f===r||f+c-1<r?(f=r,delete d[t],e()):d[t]=requestAnimationFrame(n)})),t},u=function(e){d[e]&&cancelAnimationFrame(d[e])}):(l=function(e){return setTimeout(e,c)},u=function(e){return clearTimeout(e)}),{frame:l,cancel:u}),y=(h={},function(){if(p)return p;if(!r&&a){var t=["var CONFETTI, SIZE = {}, module = {};","("+e.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {","  if (msg.data.options) {","    CONFETTI(msg.data.options).then(function () {","      if (msg.data.callback) {","        postMessage({ callback: msg.data.callback });","      }","    });","  } else if (msg.data.reset) {","    CONFETTI && CONFETTI.reset();","  } else if (msg.data.resize) {","    SIZE.width = msg.data.resize.width;","    SIZE.height = msg.data.resize.height;","  } else if (msg.data.canvas) {","    SIZE.width = msg.data.canvas.width;","    SIZE.height = msg.data.canvas.height;","    CONFETTI = module.exports.create(msg.data.canvas);","  }","}"].join("\n");try{p=new Worker(URL.createObjectURL(new Blob([t])))}catch(e){return void 0!==typeof console&&"function"==typeof console.warn&&console.warn("🎊 Could not load worker",e),null}!function(e){function t(t,n){e.postMessage({options:t||{},callback:n})}e.init=function(t){var n=t.transferControlToOffscreen();e.postMessage({canvas:n},[n])},e.fire=function(n,r,o){if(m)return t(n,null),m;var a=Math.random().toString(36).slice(2);return m=s((function(r){function i(t){t.data.callback===a&&(delete h[a],e.removeEventListener("message",i),m=null,o(),r())}e.addEventListener("message",i),t(n,a),h[a]=i.bind(null,{data:{callback:a}})}))},e.reset=function(){for(var t in e.postMessage({reset:!0}),h)h[t](),delete h[t]}}(p)}return p}),b={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function w(e,t,n){return function(e,t){return t?t(e):e}(e&&null!=e[t]?e[t]:b[t],n)}function x(e){return e<0?0:Math.floor(e)}function E(e){return parseInt(e,16)}function C(e){return e.map(S)}function S(e){var t=String(e).replace(/[^0-9a-f]/gi,"");return t.length<6&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]),{r:E(t.substring(0,2)),g:E(t.substring(2,4)),b:E(t.substring(4,6))}}function O(e){e.width=document.documentElement.clientWidth,e.height=document.documentElement.clientHeight}function T(e){var t=e.getBoundingClientRect();e.width=t.width,e.height=t.height}function L(e,n){var i,l=!e,u=!!w(n||{},"resize"),c=w(n,"disableForReducedMotion",Boolean),d=a&&w(n||{},"useWorker")?y():null,f=l?O:T,p=!(!e||!d||!e.__confetti_initialized),m="function"==typeof matchMedia&&matchMedia("(prefers-reduced-motion)").matches;function h(t,n,a){for(var l,u,c,d,p=w(t,"particleCount",x),m=w(t,"angle",Number),h=w(t,"spread",Number),g=w(t,"startVelocity",Number),y=w(t,"decay",Number),b=w(t,"gravity",Number),E=w(t,"drift",Number),S=w(t,"colors",C),O=w(t,"ticks",Number),T=w(t,"shapes"),L=w(t,"scalar"),P=function(e){var t=w(e,"origin",Object);return t.x=w(t,"x",Number),t.y=w(t,"y",Number),t}(t),k=p,R=[],M=e.width*P.x,N=e.height*P.y;k--;)R.push((void 0,void 0,u=(l={x:M,y:N,angle:m,spread:h,startVelocity:g,color:S[k%S.length],shape:T[(0,d=T.length,Math.floor(Math.random()*(d-0))+0)],ticks:O,decay:y,gravity:b,drift:E,scalar:L}).angle*(Math.PI/180),c=l.spread*(Math.PI/180),{x:l.x,y:l.y,wobble:10*Math.random(),wobbleSpeed:Math.min(.11,.1*Math.random()+.05),velocity:.5*l.startVelocity+Math.random()*l.startVelocity,angle2D:-u+(.5*c-Math.random()*c),tiltAngle:(.5*Math.random()+.25)*Math.PI,color:l.color,shape:l.shape,tick:0,totalTicks:l.ticks,decay:l.decay,drift:l.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:3*l.gravity,ovalScalar:.6,scalar:l.scalar}));return i?i.addFettis(R):(i=function(e,t,n,a,i){var l,u,c=t.slice(),d=e.getContext("2d"),f=s((function(t){function s(){l=u=null,d.clearRect(0,0,a.width,a.height),i(),t()}l=v.frame((function t(){!r||a.width===o.width&&a.height===o.height||(a.width=e.width=o.width,a.height=e.height=o.height),a.width||a.height||(n(e),a.width=e.width,a.height=e.height),d.clearRect(0,0,a.width,a.height),c=c.filter((function(e){return function(e,t){t.x+=Math.cos(t.angle2D)*t.velocity+t.drift,t.y+=Math.sin(t.angle2D)*t.velocity+t.gravity,t.wobble+=t.wobbleSpeed,t.velocity*=t.decay,t.tiltAngle+=.1,t.tiltSin=Math.sin(t.tiltAngle),t.tiltCos=Math.cos(t.tiltAngle),t.random=Math.random()+2,t.wobbleX=t.x+10*t.scalar*Math.cos(t.wobble),t.wobbleY=t.y+10*t.scalar*Math.sin(t.wobble);var n=t.tick++/t.totalTicks,r=t.x+t.random*t.tiltCos,o=t.y+t.random*t.tiltSin,a=t.wobbleX+t.random*t.tiltCos,i=t.wobbleY+t.random*t.tiltSin;if(e.fillStyle="rgba("+t.color.r+", "+t.color.g+", "+t.color.b+", "+(1-n)+")",e.beginPath(),"circle"===t.shape)e.ellipse?e.ellipse(t.x,t.y,Math.abs(a-r)*t.ovalScalar,Math.abs(i-o)*t.ovalScalar,Math.PI/10*t.wobble,0,2*Math.PI):function(e,t,n,r,o,a,i,s,l){e.save(),e.translate(t,n),e.rotate(a),e.scale(r,o),e.arc(0,0,1,0,s,void 0),e.restore()}(e,t.x,t.y,Math.abs(a-r)*t.ovalScalar,Math.abs(i-o)*t.ovalScalar,Math.PI/10*t.wobble,0,2*Math.PI);else if("star"===t.shape)for(var s=Math.PI/2*3,l=4*t.scalar,u=8*t.scalar,c=t.x,d=t.y,f=5,p=Math.PI/f;f--;)c=t.x+Math.cos(s)*u,d=t.y+Math.sin(s)*u,e.lineTo(c,d),s+=p,c=t.x+Math.cos(s)*l,d=t.y+Math.sin(s)*l,e.lineTo(c,d),s+=p;else e.moveTo(Math.floor(t.x),Math.floor(t.y)),e.lineTo(Math.floor(t.wobbleX),Math.floor(o)),e.lineTo(Math.floor(a),Math.floor(i)),e.lineTo(Math.floor(r),Math.floor(t.wobbleY));return e.closePath(),e.fill(),t.tick<t.totalTicks}(d,e)})),c.length?l=v.frame(t):s()})),u=s}));return{addFettis:function(e){return c=c.concat(e),f},canvas:e,promise:f,reset:function(){l&&v.cancel(l),u&&u()}}}(e,R,f,n,a)).promise}function g(n){var r=c||w(n,"disableForReducedMotion",Boolean),o=w(n,"zIndex",Number);if(r&&m)return s((function(e){e()}));l&&i?e=i.canvas:l&&!e&&(e=function(e){var t=document.createElement("canvas");return t.style.position="fixed",t.style.top="0px",t.style.left="0px",t.style.pointerEvents="none",t.style.zIndex=e,t}(o),document.body.appendChild(e)),u&&!p&&f(e);var a={width:e.width,height:e.height};function g(){if(d){var t={getBoundingClientRect:function(){if(!l)return e.getBoundingClientRect()}};return f(t),void d.postMessage({resize:{width:t.width,height:t.height}})}a.width=a.height=null}function v(){i=null,u&&t.removeEventListener("resize",g),l&&e&&(document.body.removeChild(e),e=null,p=!1)}return d&&!p&&d.init(e),p=!0,d&&(e.__confetti_initialized=!0),u&&t.addEventListener("resize",g,!1),d?d.fire(n,a,v):h(n,a,v)}return g.reset=function(){d&&d.reset(),i&&i.reset()},g}function P(){return g||(g=L(null,{useWorker:!0,resize:!0})),g}n.exports=function(){return P().apply(this,arguments)},n.exports.reset=function(){P().reset()},n.exports.create=L}(function(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:this||{}}(),vr,!1);var yr=vr.exports;vr.exports.create;var br=window.wp.mediaUtils,wr=window.wp.url;const xr=async e=>{const t=await ar.get("onboarding/styles",{params:e}),{headers:n,footers:r}=await(async()=>{let e=await ar.get(window.extOnbData.wpRoot+"wp/v2/template-parts");e=e?.filter((e=>"extendable"===e.theme));const t=e?.filter((e=>e?.slug?.includes("header"))),n=e?.filter((e=>e?.slug?.includes("footer")));return{headers:t,footers:n}})();if(!t?.data?.length)throw new Error("Could not get styles");return{data:t.data.map((e=>{var t,o;const a=n?.find((t=>{var n;return t?.slug===(null!==(n=e?.headerSlug)&&void 0!==n?n:"header")})),i=r?.find((t=>{var n;return t?.slug===(null!==(n=e?.footerSlug)&&void 0!==n?n:"footer")}));return{...e,headerCode:null!==(t=a?.content?.raw?.trim())&&void 0!==t?t:"",footerCode:null!==(o=i?.content?.raw?.trim())&&void 0!==o?o:""}}))}},Er=e=>ar.get("onboarding/template",{params:e}),Cr=e=>[e?.template?.code,e?.template?.code2].filter(Boolean).join(""),Sr=e=>e.replace(/\w+:\/\/\S*(w=(\d*))&\w+\S*"/g,((e,t,n)=>e.replace(t,"w="+Math.floor(Number(n))+"&q=10"))),Or=async()=>{try{return await ar.get("onboarding/ping"),!0}catch(e){}return await new Promise((e=>setTimeout(e,1e3))),Or()},Tr=e=>{let t;const n=new Set,r=(e,r)=>{const o="function"==typeof e?e(t):e;if(!Object.is(o,t)){const e=t;t=(null!=r?r:"object"!=typeof o)?o:Object.assign({},t,o),n.forEach((n=>n(t,e)))}},o=()=>t,a={setState:r,getState:o,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return t=e(r,o,a),a};var Lr=n(798);const{useSyncExternalStoreWithSelector:Pr}=Lr,kr=e=>{"function"!=typeof e&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t="function"==typeof e?(e=>e?Tr(e):Tr)(e):e,n=(e,n)=>function(e,t=e.getState,n){const r=Pr(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return(0,o.useDebugValue)(r),r}(t,e,n);return Object.assign(n,t),n},Rr=e=>e?kr(e):kr,Mr=new Map,Nr=e=>{const t=Mr.get(e);return t?Object.fromEntries(Object.entries(t.stores).map((([e,t])=>[e,t.getState()]))):{}},Ar=(e,t={})=>(n,r,o)=>{const{enabled:a,anonymousActionType:i,store:s,...l}=t;let u;try{u=(null==a||a)&&window.__REDUX_DEVTOOLS_EXTENSION__}catch(e){}if(!u)return a&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,r,o);const{connection:c,...d}=((e,t,n)=>{if(void 0===e)return{type:"untracked",connection:t.connect(n)};const r=Mr.get(n.name);if(r)return{type:"tracked",store:e,...r};const o={connection:t.connect(n),stores:{}};return Mr.set(n.name,o),{type:"tracked",store:e,...o}})(s,u,l);let f=!0;o.setState=(e,t,a)=>{const u=n(e,t);if(!f)return u;const d=void 0===a?{type:i||"anonymous"}:"string"==typeof a?{type:a}:a;return void 0===s?(null==c||c.send(d,r()),u):(null==c||c.send({...d,type:`${s}/${d.type}`},{...Nr(l.name),[s]:o.getState()}),u)};const p=(...e)=>{const t=f;f=!1,n(...e),f=t},m=e(o.setState,r,o);if("untracked"===d.type?null==c||c.init(m):(d.stores[d.store]=o,null==c||c.init(Object.fromEntries(Object.entries(d.stores).map((([e,t])=>[e,e===d.store?m:t.getState()]))))),o.dispatchFromDevtools&&"function"==typeof o.dispatch){let e=!1;const t=o.dispatch;o.dispatch=(...n)=>{"__setState"!==n[0].type||e||(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),e=!0),t(...n)}}return c.subscribe((e=>{var t;switch(e.type){case"ACTION":return"string"!=typeof e.payload?void console.error("[zustand devtools middleware] Unsupported action format"):Vr(e.payload,(e=>{if("__setState"!==e.type)o.dispatchFromDevtools&&"function"==typeof o.dispatch&&o.dispatch(e);else{if(void 0===s)return void p(e.state);1!==Object.keys(e.state).length&&console.error('\n                    [zustand devtools middleware] Unsupported __setState action format. \n                    When using \'store\' option in devtools(), the \'state\' should have only one key, which is a value of \'store\' that was passed in devtools(),\n                    and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }\n                    ');const t=e.state[s];if(null==t)return;JSON.stringify(o.getState())!==JSON.stringify(t)&&p(t)}}));case"DISPATCH":switch(e.payload.type){case"RESET":return p(m),void 0===s?null==c?void 0:c.init(o.getState()):null==c?void 0:c.init(Nr(l.name));case"COMMIT":return void 0===s?void(null==c||c.init(o.getState())):null==c?void 0:c.init(Nr(l.name));case"ROLLBACK":return Vr(e.state,(e=>{if(void 0===s)return p(e),void(null==c||c.init(o.getState()));p(e[s]),null==c||c.init(Nr(l.name))}));case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return Vr(e.state,(e=>{void 0!==s?JSON.stringify(o.getState())!==JSON.stringify(e[s])&&p(e[s]):p(e)}));case"IMPORT_STATE":{const{nextLiftedState:n}=e.payload,r=null==(t=n.computedStates.slice(-1)[0])?void 0:t.state;if(!r)return;return p(void 0===s?r:r[s]),void(null==c||c.send(null,n))}case"PAUSE_RECORDING":return f=!f}return}})),m},Vr=(e,t)=>{let n;try{n=JSON.parse(e)}catch(e){console.error("[zustand devtools middleware] Could not parse the received json",e)}void 0!==n&&t(n)};function Ir(e){let t;try{t=e()}catch(e){return}const n={getItem:e=>{var n;const r=e=>null===e?null:JSON.parse(e),o=null!=(n=t.getItem(e))?n:null;return o instanceof Promise?o.then(r):r(o)},setItem:(e,n)=>t.setItem(e,JSON.stringify(n)),removeItem:e=>t.removeItem(e)};return n}const Dr=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(e){return Dr(e)(n)},catch(e){return this}}}catch(e){return{then(e){return this},catch(t){return Dr(t)(e)}}}},jr=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?(console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),((e,t)=>(n,r,o)=>{let a={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},i=!1;const s=new Set,l=new Set;let u;try{u=a.getStorage()}catch(e){}if(!u)return e(((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...e)}),r,o);const c=Dr(a.serialize),d=()=>{const e=a.partialize({...r()});let t;const n=c({state:e,version:a.version}).then((e=>u.setItem(a.name,e))).catch((e=>{t=e}));if(t)throw t;return n},f=o.setState;o.setState=(e,t)=>{f(e,t),d()};const p=e(((...e)=>{n(...e),d()}),r,o);let m;const h=()=>{var e;if(!u)return;i=!1,s.forEach((e=>e(r())));const t=(null==(e=a.onRehydrateStorage)?void 0:e.call(a,r()))||void 0;return Dr(u.getItem.bind(u))(a.name).then((e=>{if(e)return a.deserialize(e)})).then((e=>{if(e){if("number"!=typeof e.version||e.version===a.version)return e.state;if(a.migrate)return a.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}})).then((e=>{var t;return m=a.merge(e,null!=(t=r())?t:p),n(m,!0),d()})).then((()=>{null==t||t(m,void 0),i=!0,l.forEach((e=>e(m)))})).catch((e=>{null==t||t(void 0,e)}))};return o.persist={setOptions:e=>{a={...a,...e},e.getStorage&&(u=e.getStorage())},clearStorage:()=>{null==u||u.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>h(),hasHydrated:()=>i,onHydrate:e=>(s.add(e),()=>{s.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},h(),m||p})(e,t)):((e,t)=>(n,r,o)=>{let a={storage:Ir((()=>localStorage)),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},i=!1;const s=new Set,l=new Set;let u=a.storage;if(!u)return e(((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...e)}),r,o);const c=()=>{const e=a.partialize({...r()});return u.setItem(a.name,{state:e,version:a.version})},d=o.setState;o.setState=(e,t)=>{d(e,t),c()};const f=e(((...e)=>{n(...e),c()}),r,o);let p;const m=()=>{var e,t;if(!u)return;i=!1,s.forEach((e=>{var t;return e(null!=(t=r())?t:f)}));const o=(null==(t=a.onRehydrateStorage)?void 0:t.call(a,null!=(e=r())?e:f))||void 0;return Dr(u.getItem.bind(u))(a.name).then((e=>{if(e){if("number"!=typeof e.version||e.version===a.version)return e.state;if(a.migrate)return a.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}})).then((e=>{var t;return p=a.merge(e,null!=(t=r())?t:f),n(p,!0),c()})).then((()=>{null==o||o(p,void 0),p=r(),i=!0,l.forEach((e=>e(p)))})).catch((e=>{null==o||o(void 0,e)}))};return o.persist={setOptions:e=>{a={...a,...e},e.storage&&(u=e.storage)},clearStorage:()=>{null==u||u.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>m(),hasHydrated:()=>i,onHydrate:e=>(s.add(e),()=>{s.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},a.skipHydration||m(),p||f})(e,t),_r={siteType:{},siteInformation:{title:void 0},siteTypeSearch:[],style:null,pages:[],plugins:[],goals:[]},Fr=Rr(jr(Ar(((e,t)=>({..._r,setSiteType(t){e({siteType:t})},setSiteInformation(n,r){const o={...t().siteInformation,[n]:r};e({siteInformation:o})},has(e,n){return!!n?.id&&t()[e].some((e=>e.id===n.id))},add(n,r){t().has(n,r)||e({[n]:[...t()[n],r]})},remove(n,r){e({[n]:t()[n]?.filter((e=>e.id!==r.id))})},reset(t){e({[t]:[]})},toggle(e,n){t().has(e,n)?t().remove(e,n):t().add(e,n)},setStyle(t){e({style:t})},canLaunch(){var e,n;return Object.keys(null!==(e=t()?.siteType)&&void 0!==e?e:{})?.length>0&&Object.keys(null!==(n=t()?.style)&&void 0!==n?n:{})?.length>0&&t()?.pages?.length>0},resetState(){e(_r)}})),{name:"Extendify User Selection"}),{name:"extendify-site-selection"}));function Hr(){return Hr=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},Hr.apply(this,arguments)}var Br=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Hr({className:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{opacity:"0.3",d:"M3 13H7V19H3V13ZM10 9H14V19H10V9ZM17 5H21V19H17V5Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M14 8H10C9.448 8 9 8.448 9 9V19C9 19.552 9.448 20 10 20H14C14.552 20 15 19.552 15 19V9C15 8.448 14.552 8 14 8ZM13 18H11V10H13V18ZM21 4H17C16.448 4 16 4.448 16 5V19C16 19.552 16.448 20 17 20H21C21.552 20 22 19.552 22 19V5C22 4.448 21.552 4 21 4ZM20 18H18V6H20V18ZM7 12H3C2.448 12 2 12.448 2 13V19C2 19.552 2.448 20 3 20H7C7.552 20 8 19.552 8 19V13C8 12.448 7.552 12 7 12ZM6 18H4V14H6V18Z",fill:"currentColor"}))})),Ur=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Hr({className:n,viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{d:"M8.72912 13.7449L5.77536 10.7911L4.76953 11.7899L8.72912 15.7495L17.2291 7.24948L16.2304 6.25073L8.72912 13.7449Z",fill:"currentColor"}))})),zr=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Hr({className:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{opacity:"0.3",d:"M11.5003 15.5L15.5003 11.4998L20.0004 15.9998L16.0004 19.9999L11.5003 15.5Z",fill:"currentColor"}),(0,e.createElement)("path",{opacity:"0.3",d:"M3.93958 7.94043L7.93961 3.94026L12.4397 8.44021L8.43968 12.4404L3.93958 7.94043Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M8.575 11.747L4.828 8L8 4.828L11.747 8.575L13.161 7.161L8 2L2 8L7.161 13.161L8.575 11.747ZM16.769 10.769L15.355 12.183L19.172 16L16 19.172L12.183 15.355L10.769 16.769L16 22L22 16L16.769 10.769Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M21.707 4.879L19.121 2.293C18.926 2.098 18.67 2 18.414 2C18.158 2 17.902 2.098 17.707 2.293L3 17V21H7L21.707 6.293C22.098 5.902 22.098 5.269 21.707 4.879ZM6.172 19H5V17.828L15.707 7.121L16.879 8.293L6.172 19ZM18.293 6.879L17.121 5.707L18.414 4.414L19.586 5.586L18.293 6.879Z",fill:"currentColor"}))})),qr=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Hr({className:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{opacity:"0.3",d:"M20 6C20 9 19 13 19 13L13.3 17L12.6 16.4C11.8 15.6 11.8 14.2 12.6 13.4L14.8 11.2C14.8 8.7 12.1 7.2 9.89999 8.5C9.19999 9 8.59999 9.6 7.89999 10.3V13L5.89999 16C4.79999 16 3.89999 15.1 3.89999 14V10.4C3.89999 9.5 4.19999 8.6 4.79999 7.9L7.59999 4.4L14 2C14.9 4.4 16.8 5.8 20 6Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M13.2 18.2996L12 17.0996C10.7 15.7996 10.7 13.8996 12 12.5996L13.9 10.6996C13.8 10.0996 13.4 9.49961 12.8 9.19961C12.1 8.79961 11.3 8.79961 10.6 9.19961C10.1 9.49961 9.7 9.89961 9.3 10.3996C9.2 10.4996 9.2 10.4996 9.1 10.5996V12.9996H7V9.89961L7.3 9.59961C7.5 9.39961 7.6 9.29961 7.8 9.09961C8.3 8.59961 8.8 7.99961 9.5 7.59961C10.8 6.79961 12.4 6.79961 13.7 7.49961C15 8.29961 15.9 9.59961 15.9 11.1996V11.5996L13.4 14.0996C13.2 14.2996 13.1 14.5996 13.1 14.8996C13.1 15.1996 13.2 15.4996 13.4 15.6996L13.5 15.7996L18.2 12.4996C18.4 11.4996 19.1 8.39961 19.1 6.09961H21.1C21.1 9.19961 20.1 13.1996 20.1 13.2996L20 13.6996L13.2 18.2996Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M11 23.0005C9.7 23.0005 8.4 22.6005 7.3 21.7005C4.7 19.7005 4.3 15.9005 6.3 13.3005C8.1 11.0005 11.3 10.3005 13.9 11.8005L12.9 13.6005C11.2 12.7005 9.1 13.1005 7.9 14.6005C6.5 16.3005 6.8 18.8005 8.6 20.2005C10.3 21.6005 12.8 21.3005 14.2 19.5005C14.9 18.6005 15.2 17.4005 15 16.2005L17 15.8005C17.4 17.5005 16.9 19.3005 15.8 20.7005C14.5 22.2005 12.7 23.0005 11 23.0005Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M6 16.9996C4.3 16.9996 3 15.6996 3 13.9996V10.3996C3 9.29961 3.4 8.19961 4.1 7.29961L7.1 3.59961L13.7 1.09961L14.4 2.99961L8.3 5.29961L5.7 8.49961C5.2 9.09961 5 9.69961 5 10.3996V13.9996C5 14.5996 5.4 14.9996 6 14.9996V16.9996Z",fill:"currentColor"}))})),Zr=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Hr({className:`icon ${n}`,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{d:"M10 17.5L15 12L10 6.5",stroke:"currentColor",strokeWidth:"1.75"}))})),$r=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Hr({className:n,viewBox:"0 0 2524 492",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{d:"M609.404 378.5C585.07 378.5 563.404 373 544.404 362C525.737 350.667 511.07 335.333 500.404 316C489.737 296.333 484.404 273.833 484.404 248.5C484.404 222.833 489.57 200.167 499.904 180.5C510.237 160.833 524.737 145.5 543.404 134.5C562.07 123.167 583.404 117.5 607.404 117.5C632.404 117.5 653.904 122.833 671.904 133.5C689.904 143.833 703.737 158.333 713.404 177C723.404 195.667 728.404 218 728.404 244V262.5L516.404 263L517.404 224H667.904C667.904 207 662.404 193.333 651.404 183C640.737 172.667 626.237 167.5 607.904 167.5C593.57 167.5 581.404 170.5 571.404 176.5C561.737 182.5 554.404 191.5 549.404 203.5C544.404 215.5 541.904 230.167 541.904 247.5C541.904 274.167 547.57 294.333 558.904 308C570.57 321.667 587.737 328.5 610.404 328.5C627.07 328.5 640.737 325.333 651.404 319C662.404 312.667 669.57 303.667 672.904 292H729.404C724.07 319 710.737 340.167 689.404 355.5C668.404 370.833 641.737 378.5 609.404 378.5Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M797.529 372H728.029L813.029 251L728.029 125H799.029L853.529 209L906.029 125H974.529L890.529 250.5L972.029 372H902.029L849.029 290.5L797.529 372Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M994.142 125H1150.14V176H994.142V125ZM1102.64 372H1041.64V48H1102.64V372Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M1278.62 378.5C1254.29 378.5 1232.62 373 1213.62 362C1194.96 350.667 1180.29 335.333 1169.62 316C1158.96 296.333 1153.62 273.833 1153.62 248.5C1153.62 222.833 1158.79 200.167 1169.12 180.5C1179.46 160.833 1193.96 145.5 1212.62 134.5C1231.29 123.167 1252.62 117.5 1276.62 117.5C1301.62 117.5 1323.12 122.833 1341.12 133.5C1359.12 143.833 1372.96 158.333 1382.62 177C1392.62 195.667 1397.62 218 1397.62 244V262.5L1185.62 263L1186.62 224H1337.12C1337.12 207 1331.62 193.333 1320.62 183C1309.96 172.667 1295.46 167.5 1277.12 167.5C1262.79 167.5 1250.62 170.5 1240.62 176.5C1230.96 182.5 1223.62 191.5 1218.62 203.5C1213.62 215.5 1211.12 230.167 1211.12 247.5C1211.12 274.167 1216.79 294.333 1228.12 308C1239.79 321.667 1256.96 328.5 1279.62 328.5C1296.29 328.5 1309.96 325.333 1320.62 319C1331.62 312.667 1338.79 303.667 1342.12 292H1398.62C1393.29 319 1379.96 340.167 1358.62 355.5C1337.62 370.833 1310.96 378.5 1278.62 378.5Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M1484.44 372H1423.44V125H1479.94L1484.94 157C1492.61 144.667 1503.44 135 1517.44 128C1531.78 121 1547.28 117.5 1563.94 117.5C1594.94 117.5 1618.28 126.667 1633.94 145C1649.94 163.333 1657.94 188.333 1657.94 220V372H1596.94V234.5C1596.94 213.833 1592.28 198.5 1582.94 188.5C1573.61 178.167 1560.94 173 1544.94 173C1525.94 173 1511.11 179 1500.44 191C1489.78 203 1484.44 219 1484.44 239V372Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M1798.38 378.5C1774.38 378.5 1753.71 373.167 1736.38 362.5C1719.38 351.5 1706.04 336.333 1696.38 317C1687.04 297.667 1682.38 275.167 1682.38 249.5C1682.38 223.833 1687.04 201.167 1696.38 181.5C1706.04 161.5 1719.88 145.833 1737.88 134.5C1755.88 123.167 1777.21 117.5 1801.88 117.5C1819.21 117.5 1835.04 121 1849.38 128C1863.71 134.667 1874.71 144.167 1882.38 156.5V0H1942.88V372H1886.88L1882.88 333.5C1875.54 347.5 1864.21 358.5 1848.88 366.5C1833.88 374.5 1817.04 378.5 1798.38 378.5ZM1811.88 322.5C1826.21 322.5 1838.54 319.5 1848.88 313.5C1859.21 307.167 1867.21 298.333 1872.88 287C1878.88 275.333 1881.88 262.167 1881.88 247.5C1881.88 232.5 1878.88 219.5 1872.88 208.5C1867.21 197.167 1859.21 188.333 1848.88 182C1838.54 175.333 1826.21 172 1811.88 172C1797.88 172 1785.71 175.333 1775.38 182C1765.04 188.333 1757.04 197.167 1751.38 208.5C1746.04 219.833 1743.38 232.833 1743.38 247.5C1743.38 262.167 1746.04 275.167 1751.38 286.5C1757.04 297.833 1765.04 306.667 1775.38 313C1785.71 319.333 1797.88 322.5 1811.88 322.5Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M1996.45 372V125H2057.45V372H1996.45ZM2026.45 75.5C2016.11 75.5 2007.28 72 1999.95 65C1992.95 57.6667 1989.45 48.8333 1989.45 38.5C1989.45 28.1667 1992.95 19.5 1999.95 12.5C2007.28 5.50001 2016.11 2.00002 2026.45 2.00002C2036.78 2.00002 2045.45 5.50001 2052.45 12.5C2059.78 19.5 2063.45 28.1667 2063.45 38.5C2063.45 48.8333 2059.78 57.6667 2052.45 65C2045.45 72 2036.78 75.5 2026.45 75.5Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M2085.97 125H2240.97V176H2085.97V125ZM2241.47 2.5V54.5C2238.14 54.5 2234.64 54.5 2230.97 54.5C2227.64 54.5 2224.14 54.5 2220.47 54.5C2205.14 54.5 2194.8 58.1667 2189.47 65.5C2184.47 72.8333 2181.97 82.6667 2181.97 95V372H2121.47V95C2121.47 72.3333 2125.14 54.1667 2132.47 40.5C2139.8 26.5 2150.14 16.3333 2163.47 10C2176.8 3.33334 2192.3 0 2209.97 0C2214.97 0 2220.14 0.166671 2225.47 0.5C2231.14 0.833329 2236.47 1.49999 2241.47 2.5Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M2330.4 125L2410.9 353L2377.9 415.5L2265.9 125H2330.4ZM2272.4 486.5V436H2308.9C2316.9 436 2323.9 435 2329.9 433C2335.9 431.333 2341.24 428 2345.9 423C2350.9 418 2355.07 410.667 2358.4 401L2460.9 125H2523.9L2402.9 427C2393.9 449.667 2382.57 466.167 2368.9 476.5C2355.24 486.833 2338.24 492 2317.9 492C2309.24 492 2301.07 491.5 2293.4 490.5C2286.07 489.833 2279.07 488.5 2272.4 486.5Z",fill:"currentColor"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M226.926 25.1299H310.197C333.783 25.1299 342.32 27.5938 350.948 32.1932C359.576 36.8108 366.326 43.5822 370.941 52.1969C375.556 60.8298 378 69.3715 378 92.9707V176.289C378 199.888 375.537 208.43 370.941 217.063C366.326 225.696 359.558 232.449 350.948 237.066C347.091 239.131 343.244 240.83 338.064 242.047V308.355C338.064 344.802 334.261 357.994 327.162 371.327C320.034 384.66 309.583 395.09 296.285 402.221C282.96 409.353 269.775 413.13 233.349 413.13H104.744C68.3172 413.13 55.1327 409.325 41.8073 402.221C28.4819 395.09 18.0583 384.632 10.9308 371.327C3.80323 358.023 0 344.802 0 308.355V179.706C0 143.259 3.80323 130.067 10.9026 116.734C18.0301 103.401 28.4819 92.9431 41.8073 85.8116C55.1045 78.7082 68.3172 74.9028 104.744 74.9028H159.808C160.841 64.0747 162.996 58.1666 166.165 52.2151C170.78 43.5822 177.547 36.8108 186.175 32.1932C194.785 27.5938 203.34 25.1299 226.926 25.1299ZM184.128 78.1641C184.128 62.7001 196.658 50.1641 212.114 50.1641H324.991C340.448 50.1641 352.978 62.7001 352.978 78.1641V191.096C352.978 206.56 340.448 219.096 324.991 219.096H212.114C196.658 219.096 184.128 206.56 184.128 191.096V78.1641Z",fill:"currentColor"}))})),Wr=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Hr({className:n,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{d:"M0 0h24v24H0V0z",fill:"none"}),(0,e.createElement)("path",{d:"M12 4c-4.41 0-8 3.59-8 8s3.59 8 8 8 8-3.59 8-8-3.59-8-8-8zm1.23 13.33V19H10.9v-1.69c-1.5-.31-2.77-1.28-2.86-2.97h1.71c.09.92.72 1.64 2.32 1.64 1.71 0 2.1-.86 2.1-1.39 0-.73-.39-1.41-2.34-1.87-2.17-.53-3.66-1.42-3.66-3.21 0-1.51 1.22-2.48 2.72-2.81V5h2.34v1.71c1.63.39 2.44 1.63 2.49 2.97h-1.71c-.04-.97-.56-1.64-1.94-1.64-1.31 0-2.1.59-2.1 1.43 0 .73.57 1.22 2.34 1.67 1.77.46 3.66 1.22 3.66 3.42-.01 1.6-1.21 2.48-2.74 2.77z",opacity:".3"}),(0,e.createElement)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm.31-8.86c-1.77-.45-2.34-.94-2.34-1.67 0-.84.79-1.43 2.1-1.43 1.38 0 1.9.66 1.94 1.64h1.71c-.05-1.34-.87-2.57-2.49-2.97V5H10.9v1.69c-1.51.32-2.72 1.3-2.72 2.81 0 1.79 1.49 2.69 3.66 3.21 1.95.46 2.34 1.15 2.34 1.87 0 .53-.39 1.39-2.1 1.39-1.6 0-2.23-.72-2.32-1.64H8.04c.1 1.7 1.36 2.66 2.86 2.97V19h2.34v-1.67c1.52-.29 2.72-1.16 2.73-2.77-.01-2.2-1.9-2.96-3.66-3.42z"}))})),Xr=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Hr({className:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{opacity:"0.3",d:"M12 14L3 9V19H21V9L12 14Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M21.008 6.24719L12 0.992188L2.992 6.24719C2.38 6.60419 2 7.26619 2 7.97519V18.0002C2 19.1032 2.897 20.0002 4 20.0002H20C21.103 20.0002 22 19.1032 22 18.0002V7.97519C22 7.26619 21.62 6.60419 21.008 6.24719ZM19.892 7.91219L12 12.8222L4.108 7.91119L12 3.30819L19.892 7.91219ZM4 18.0002V10.2002L12 15.1782L20 10.2002L20.001 18.0002H4Z",fill:"currentColor"}))})),Yr=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Hr({className:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{opacity:"0.3",d:"M7.03432 14.8828L16.2343 5.68249L18.2298 7.67791L9.02981 16.8782L7.03432 14.8828Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M3.669 17L3 21L7 20.331L3.669 17ZM21.707 4.879L19.121 2.293C18.926 2.098 18.67 2 18.414 2C18.158 2 17.902 2.098 17.707 2.293L5 15C5 15 6.005 15.005 6.5 15.5C6.995 15.995 6.984 16.984 6.984 16.984C6.984 16.984 8.003 17.003 8.5 17.5C8.997 17.997 9 19 9 19L21.707 6.293C22.098 5.902 22.098 5.269 21.707 4.879ZM8.686 15.308C8.588 15.05 8.459 14.789 8.289 14.539L15.951 6.877L17.123 8.049L9.461 15.711C9.21 15.539 8.946 15.408 8.686 15.308ZM18.537 6.635L17.365 5.463L18.414 4.414L19.586 5.586L18.537 6.635Z",fill:"currentColor"}))})),Gr=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Hr({className:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{opacity:"0.3",d:"M4 5H20V9H4V5Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M12 13H17V18H12V13ZM6 2H8V5H6V2ZM16 2H18V5H16V2Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M19 22H5C3.9 22 3 21.1 3 20V6C3 4.9 3.9 4 5 4H19C20.1 4 21 4.9 21 6V20C21 21.1 20.1 22 19 22ZM5 6V20H19V6H5Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M4 8H20V10H4V8Z",fill:"currentColor"}))})),Jr=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Hr({className:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{opacity:"0.3",d:"M20 11.414L10.707 20.707C10.518 20.896 10.267 21 10 21C9.733 21 9.482 20.896 9.293 20.707L3.293 14.707C3.104 14.518 3 14.267 3 14C3 13.733 3.104 13.482 3.293 13.293L12.586 4H20V11.414Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M10 22C9.466 22 8.964 21.792 8.586 21.414L2.586 15.414C2.208 15.036 2 14.534 2 14C2 13.466 2.208 12.964 2.586 12.586L12.172 3H21V11.828L11.414 21.414C11.036 21.792 10.534 22 10 22ZM13 5L4 14L10 20L19 11V5H13Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M16 7C15.7348 7 15.4804 7.10536 15.2929 7.29289C15.1054 7.48043 15 7.73478 15 8C15 8.26522 15.1054 8.51957 15.2929 8.70711C15.4804 8.89464 15.7348 9 16 9C16.2652 9 16.5196 8.89464 16.7071 8.70711C16.8946 8.51957 17 8.26522 17 8C17 7.73478 16.8946 7.48043 16.7071 7.29289C16.5196 7.10536 16.2652 7 16 7Z",fill:"currentColor"}))})),Kr=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Hr({className:n,viewBox:"-4 -4 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{stroke:"currentColor",d:"M6.5 0.5h0s6 0 6 6v0s0 6 -6 6h0s-6 0 -6 -6v0s0 -6 6 -6"}))}));(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Hr({className:n,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{fill:"currentColor",d:"M17.65,6.35C16.2,4.9 14.21,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20C15.73,20 18.84,17.45 19.73,14H17.65C16.83,16.33 14.61,18 12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6C13.66,6 15.14,6.69 16.22,7.78L13,11H20V4L17.65,6.35Z"}))}));var Qr=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Hr({className:`icon ${n}`,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{d:"M15 17.5L10 12L15 6.5",stroke:"currentColor",strokeWidth:"1.75"}))})),eo=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Hr({className:n,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{d:"M0 0h24v24H0V0z",fill:"none"}),(0,e.createElement)("path",{d:"M7 12.27v3.72l5 2.73 5-2.73v-3.72L12 15zM5.18 9L12 12.72 18.82 9 12 5.28z",opacity:".3"}),(0,e.createElement)("path",{d:"M12 3L1 9l4 2.18v6L12 21l7-3.82v-6l2-1.09V17h2V9L12 3zm5 12.99l-5 2.73-5-2.73v-3.72L12 15l5-2.73v3.72zm-5-3.27L5.18 9 12 5.28 18.82 9 12 12.72z"}))})),to=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Hr({className:n,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{d:"M8 18.5504L12 14.8899",stroke:"#1E1E1E",strokeWidth:"1.5"}),(0,e.createElement)("path",{d:"M20.25 11.7523C20.25 14.547 18.092 16.7546 15.5 16.7546C12.908 16.7546 10.75 14.547 10.75 11.7523C10.75 8.95754 12.908 6.75 15.5 6.75C18.092 6.75 20.25 8.95754 20.25 11.7523Z",stroke:"#1E1E1E",strokeWidth:"1.5"}))})),no=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Hr({className:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{opacity:"0.3",d:"M19.27 8H4.73L3 13.2V14H21V13.2L19.27 8ZM5 4H19V8H5V4Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M13 21H3V13H13V21ZM5 19H11V15H5V19Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M22 15H2V13.038L4.009 7H19.991L22 13.038V15ZM4.121 13H19.88L18.549 9H5.451L4.121 13Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M19 14H21V21H19V14ZM20 9H4V3H20V9ZM6 7H18V5H6V7Z",fill:"currentColor"}))})),ro=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Hr({className:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{opacity:"0.3",d:"M21 11C21 6.6 17 3 12 3C7 3 3 6.6 3 11C3 15.4 7 19 12 19C12.7 19 13.4 18.9 14 18.8V21.3C16 20 20.5 16.5 21 11.9C21 11.6 21 11.3 21 11Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M13 23.1V20C7 20.6 2 16.3 2 11C2 6 6.5 2 12 2C17.5 2 22 6 22 11C22 11.3 22 11.6 21.9 12C21.3 17.5 15.6 21.4 14.5 22.2L13 23.1ZM15 17.6V19.3C16.9 17.8 19.6 15.1 20 11.7C20 11.5 20 11.2 20 11C20 7.1 16.4 4 12 4C7.6 4 4 7.1 4 11C4 15.4 8.6 18.9 13.8 17.8L15 17.6Z",fill:"currentColor"}))})),oo=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Hr({className:n,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("circle",{cx:"10",cy:"10",r:"10",fill:"black",fillOpacity:"0.4"}),(0,e.createElement)("ellipse",{cx:"15.5552",cy:"6.66656",rx:"2.22222",ry:"2.22222",fill:"white"}))}));(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Hr({className:n,width:"100",height:"100",viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{d:"M87.5 48.8281H75V51.1719H87.5V48.8281Z",fill:"black"}),(0,e.createElement)("path",{d:"M25 48.8281H12.5V51.1719H25V48.8281Z",fill:"black"}),(0,e.createElement)("path",{d:"M51.1719 75H48.8281V87.5H51.1719V75Z",fill:"black"}),(0,e.createElement)("path",{d:"M51.1719 12.5H48.8281V25H51.1719V12.5Z",fill:"black"}),(0,e.createElement)("path",{d:"M77.3433 75.6868L69.4082 67.7517L67.7511 69.4088L75.6862 77.344L77.3433 75.6868Z",fill:"black"}),(0,e.createElement)("path",{d:"M32.2457 30.5897L24.3105 22.6545L22.6534 24.3117L30.5885 32.2468L32.2457 30.5897Z",fill:"black"}),(0,e.createElement)("path",{d:"M77.3407 24.3131L75.6836 22.656L67.7485 30.5911L69.4056 32.2483L77.3407 24.3131Z",fill:"black"}),(0,e.createElement)("path",{d:"M32.2431 69.4074L30.5859 67.7502L22.6508 75.6854L24.3079 77.3425L32.2431 69.4074Z",fill:"black"}))}));var ao=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Hr({className:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{d:"M22 10V6C22 4.9 21.11 4 20 4H4C2.9 4 2 4.9 2 6V10C3.1 10 4 10.9 4 12C4 13.1 3.1 14 2 14V18C2 19.1 2.9 20 4 20H20C21.11 20 22 19.1 22 18V14C20.89 14 20 13.1 20 12C20 10.9 20.89 10 22 10ZM20 8.54C18.81 9.23 18 10.52 18 12C18 13.48 18.81 14.77 20 15.46V18H4V15.46C5.19 14.77 6 13.48 6 12C6 10.52 5.19 9.23 4 8.54V6H20V8.54Z",fill:"currentColor"}),(0,e.createElement)("path",{opacity:"0.3",d:"M18 12C18 13.48 18.81 14.77 20 15.46V18H4V15.46C5.19 14.77 6 13.48 6 12C6 10.52 5.19 9.23 4 8.54V6H20V8.54C18.81 9.23 18 10.52 18 12Z",fill:"currentColor"}))}));const io=()=>{var t;const[n]=(0,e.useState)(!0),[r,o]=(0,e.useState)(!1),[a,i]=(0,e.useState)(["#ffffff"]),[s,l]=(0,e.useState)(!0),u=Fr((e=>e.canLaunch())),{siteType:c,pages:d,style:f,plugins:p,goals:m}=Fr(),[h,g]=(0,e.useState)([]),[v,y]=(0,e.useState)([]),b=e=>g((t=>[e,...t])),w=e=>y((t=>[e,...t]));!function(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];(0,e.useEffect)((()=>{if(!t)return;const e=e=>(e.preventDefault(),e.returnValue=""),n={capture:!0};return window.addEventListener("beforeunload",e,n),()=>{window.removeEventListener("beforeunload",e,n)}}),[t])}(s);const x=(0,e.useCallback)((async()=>{if(!u)throw new Error((0,ee.__)("Site is not ready to launch.","extendify"));try{var e;if(document.body.classList.contains("folded")||window.jQuery("#collapse-button").trigger("click.collapse-menu"),b((0,ee.__)("Applying site styles","extendify")),w((0,ee.__)("A beautiful site in... 3, 2, 1","extendify")),await new Promise((e=>setTimeout(e,1e3))),await Or(),await(t=null!==(e=f?.variation)&&void 0!==e?e:{},((e,t)=>ar.post(`${window.extOnbData.wpRoot}wp/v2/global-styles/${e}`,{id:e,settings:t.settings,styles:t.styles}))(window.extOnbData.globalStylesPostID,t)),await Or(),await hr("extendable/header",f?.headerCode),await Or(),await hr("extendable/footer",f?.footerCode),p?.length){b((0,ee.__)("Installing suggested plugins","extendify"));for(const[e,t]of p.entries()){w((0,ee.__)(`${e+1}/${p.length}: ${t.name}`,"extendify")),await Or();try{await pr(t)}catch(e){await Or(),await pr(t)}}}let n,r;b((0,ee.__)("Generating page content","extendify")),w((0,ee.__)("Starting off with a full site...","extendify")),await new Promise((e=>setTimeout(e,1e3))),await Or();const a={slug:"blog",title:(0,ee.__)("Blog","extendify")},i=[...d,a];await Or(),n=await(async(e,t,n)=>{const r={};for(const a of e){const e=await Er({siteType:t.slug,layoutType:a.slug,baseLayout:"home"===a.slug?t.slug.startsWith("blog")?n?.blogBaseLayout:n?.homeBaseLayout:null,kit:"home"!==a.slug?n?.kit:null});let i="";e?.data&&(i=[e?.data?.code,e?.data?.code2].filter(Boolean).join("")),r[a.slug]=await(o={title:a.title,status:"publish",content:i,template:"no-title",meta:{made_with_extendify_launch:!0}},ar.post(`${window.extOnbData.wpRoot}wp/v2/pages`,o))}var o;return r?.home&&(await cr("show_on_front","page"),await cr("page_on_front",r.home.id)),r?.blog&&await cr("page_for_posts",r.blog.id),r})(i,c,f),await Or();const s=m.some((e=>"blog"===e.slug));r=[...d],r=s?[...r,a]:[...r];let{data:u}=await ar.get("onboarding/active-plugins");if(Array.isArray(u)||(u="object"==typeof u?Object.keys(u):void 0),u?.filter((e=>e.includes("woocommerce")))?.length){const e=await dr("woocommerce_shop_page_id"),t=await fr(e),n=await dr("woocommerce_cart_page_id"),o=await fr(n);if(e&&t&&n&&o){const a={id:e,slug:t.slug,title:t.title.rendered},i={id:n,slug:o.slug,title:o.title.rendered};r=[...r,a,i]}}if(u?.filter((e=>e.includes("the-events-calendar")))?.length){const e={slug:"events",title:(0,ee.__)("Events","extendify")};r=[...r,e]}await(async e=>{await dr("site_logo").then((async t=>{if(!parseInt(t)){var n;const t=null!==(n=(0,wr.getFilename)(e))&&void 0!==n?n:"default-logo.png",r=await(await fetch(e)).blob();await(0,br.uploadMedia)({filesList:[new File([r],t,{type:"image/x-png"})],onFileChange:async e=>{let[t]=e;t.id&&await cr("site_logo",t.id)},onError:console.error})}}))})("https://assets.extendify.com/demo-content/logos/extendify-demo-logo.png"),await Or();const h=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;r||(r=/(<!--\s*wp:navigation\b[^>]*>)([^]*?)(<!--\s*\/wp:navigation\s*-->)/gi);const o=e.filter((e=>Boolean(t[e.slug]?.id))).filter((e=>{let{slug:t}=e;return"home"!==t})).map((e=>{const{id:n,title:r,link:o,type:a}=t[e.slug];return`\x3c!-- wp:navigation-link { "label":"${r.rendered}", "type":"${a}", "id":"${n}", "url":"${o}", "kind":"post-type", "isTopLevelLink":true } /--\x3e`})).join("");return n.replace(r,`$1${o}$3`)}(r,n,f?.headerCode);return await Or(),await hr("extendable/header",h),b((0,ee.__)("Setting up your site assistant","extendify")),w((0,ee.__)("Helping your site to be successful...","extendify")),await new Promise((e=>setTimeout(e,1e3))),await Or(),await Or(),await cr("permalink_structure","/%postname%/"),b((0,ee.__)("Your site has been created!","extendify")),w((0,ee.__)("Redirecting in 3, 2, 1...","extendify")),o(!0),l(!1),await new Promise((e=>setTimeout(e,2500))),await Or(),await cr("extendify_onboarding_completed",(new Date).toISOString()),n}catch(e){if(console.error(e),e.status>=400&&e.status<500){l(!1);const e=(0,ee.__)("We encountered a server error we cannot recover from. Please reload the page and try again.","extendify");alert(e),location.href=window.extOnbData.adminUrl}return await new Promise((e=>setTimeout(e,2e3))),x()}var t}),[m,d,p,c,f,u]);return(0,e.useEffect)((()=>{x().then((()=>{window.location.replace(window.extOnbData.adminUrl+"admin.php?page=extendify-assist&extendify-launch-success")}))}),[x]),(0,e.useEffect)((()=>{const e=window.getComputedStyle(document.documentElement),t=e?.getPropertyValue("--ext-partner-theme-primary-bg"),n=e?.getPropertyValue("--ext-partner-theme-primary-text");t&&i([vt(t).darken(.3).toHex(),vt(n).alpha(.5).toHex(),vt(t).lighten(.2).toHex()])}),[]),function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,e.useEffect)((()=>{if(!r)return;const e=Date.now()+n,o=()=>{yr({...t,disableForReducedMotion:!0,zIndex:1e5}),Date.now()<e&&requestAnimationFrame((()=>{requestAnimationFrame(o)}))};o()}),[t,n,r])}({particleCount:3,angle:320,spread:220,origin:{x:0,y:0},colors:a},2500,r),(0,e.createElement)(qe,{show:n,appear:!0,enter:"transition-all ease-in-out duration-500",enterFrom:"md:w-40vw md:max-w-md",enterTo:"md:w-full md:max-w-full",className:"bg-partner-primary-bg text-partner-primary-text py-12 px-10 md:h-screen flex flex-col justify-between md:w-40vw md:max-w-md flex-shrink-0"},(0,e.createElement)("div",{className:"max-w-prose"},(0,e.createElement)("div",{className:"md:min-h-48"},window.extOnbData?.partnerLogo?(0,e.createElement)("div",{className:"mb-8"},(0,e.createElement)("img",{style:{maxWidth:"200px"},src:window.extOnbData.partnerLogo,alt:null!==(t=window.extOnbData?.partnerName)&&void 0!==t?t:""})):(0,e.createElement)($r,{className:"logo text-design-text w-32 sm:w-40 mb-8"}),(0,e.createElement)("div",null,h.map(((t,r)=>{if(!r)return(0,e.createElement)(qe,{appear:!0,show:n,enter:"transition-opacity duration-1000",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition-opacity duration-1000",leaveFrom:"opacity-100",leaveTo:"opacity-0",className:"text-4xl flex space-x-4 items-center",key:t},t)})),(0,e.createElement)("div",{className:"flex space-x-4 items-center mt-6"},(0,e.createElement)(oo,{className:"spin"}),v.map(((t,r)=>{if(!r)return(0,e.createElement)(qe,{appear:!0,show:n,enter:"transition-opacity duration-1000",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition-opacity duration-1000",leaveFrom:"opacity-100",leaveTo:"opacity-0",className:"text-lg",key:t},t)})))))))},so=Ar((()=>({generating:!1})),{name:"Extendify Launch Globals"}),lo=Rr(so);var uo=n(184),co=n.n(uo);const fo=t=>{let{label:n,slug:r,description:o,checked:a,onChange:i,Icon:s}=t;return(0,e.createElement)("label",{className:"w-full flex items-center justify-between text-gray-900 font-semibold p-4 h-full",htmlFor:r},(0,e.createElement)("div",{className:"flex items-center flex-auto"},(0,e.createElement)("span",{className:"w-5 h-5 relative inline-block mr-3 align-middle"},(0,e.createElement)("input",{id:r,className:"h-5 w-5 rounded-sm m-0",type:"checkbox",onChange:i,defaultChecked:a}),(0,e.createElement)("svg",{className:"absolute block h-5 inset-0 w-5 text-white",viewBox:"1 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation"},(0,e.createElement)("path",{d:"M8.72912 13.7449L5.77536 10.7911L4.76953 11.7899L8.72912 15.7495L17.2291 7.24948L16.2304 6.25073L8.72912 13.7449Z",fill:"currentColor"}))),(0,e.createElement)("span",null,(0,e.createElement)("span",{className:"text-base"},n),o?(0,e.createElement)("span",{className:"block pt-1 text-gray-700 pr-4 font-normal"},o):(0,e.createElement)("span",null))),s&&(0,e.createElement)(s,{className:"flex-none text-partner-primary-bg h-6 w-6"}))},po=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{data:r,error:o}=J(e,(async e=>{const n=await t(e);if(!n.data)throw console.error(n),new Error("No data returned");return n}),{dedupingInterval:6e4,refreshInterval:0,...n}),a=r?.data;return{data:a,loading:!a&&!o,error:o}},mo=t=>{let{disabled:n=!1}=t;const{setPage:r}=Qp(),o=Qp((e=>e.pages)),a=Qp((e=>e.currentPageIndex)),i=(0,e.useMemo)((()=>Array.from(o.values()).map(((e,t)=>({...e,pageIndex:t}))).filter((e=>e?.state.getState()?.showInSidebar))),[o]),s=(0,e.useMemo)((()=>i.reduce(((e,t)=>Math.min(e,t.pageIndex)),1/0)),[i]);return!i?.length||a<s?null:(0,e.createElement)("div",{className:"hidden md:block mt-20"},(0,e.createElement)("h3",{className:"text-sm text-partner-primary-text uppercase"},(0,ee.__)("Steps","extendify")),(0,e.createElement)("ul",{"data-test":"sidebar-step-list"},i.map((t=>(0,e.createElement)("li",{key:t?.state.getState()?.title,"data-test":t?.state.getState()?.title,className:co()("text-base",{hidden:t.pageIndex>a,"line-through opacity-60":t.pageIndex<a})},(0,e.createElement)("button",{className:co()("bg-transparent p-0 text-partner-primary-text flex items-center",{"cursor-pointer":t.pageIndex<a&&!n}),type:"button",disabled:n,onClick:()=>r(t?.pageIndex)},t.pageIndex<a?(0,e.createElement)(Ur,{className:"text-partner-primary-text h-6 w-6 mr-1"}):(0,e.createElement)(Kr,{className:"text-partner-primary-text h-6 w-6 mr-1"}),t?.state.getState()?.title))))))},ho=()=>{const{previousPage:t,currentPageIndex:n,pages:r,setPage:o,replaceHistory:a,pushHistory:i}=Qp(),s=0===n,l=Array.from(r.keys())[n];return(0,e.useEffect)((()=>{const e=()=>{null===history.state&&a(n)};window.addEventListener("load",e);const t=()=>{const e=n-1;-1===e&&history.go(-1),o(e),i(e)};return window.addEventListener("popstate",t),()=>{window.removeEventListener("load",e),window.removeEventListener("popstate",t)}}),[o,a,i,n]),(0,e.createElement)("div",{className:"flex items-center space-x-2"},(0,e.createElement)("div",{className:co()("flex flex-1",{"justify-end":"welcome"===l,"justify-between":"welcome"!==l})},s||(0,e.createElement)("button",{className:"flex items-center px-4 py-3 font-medium button-focus text-gray-900 bg-gray-100 hover:bg-gray-200 focus:bg-gray-200 bg-transparent",type:"button",onClick:t,"data-test":"back-button"},(0,e.createElement)(Qr,{className:"h-5 w-5"}),(0,ee.__)("Back","extendify")),s&&(0,e.createElement)("a",{className:"flex items-center px-4 py-3 font-medium button-focus text-gray-900 bg-gray-100 hover:bg-gray-200 focus:bg-gray-200 bg-transparent",href:`${window.extOnbData.adminUrl}admin.php?page=extendify-assist`},(0,e.createElement)(Qr,{className:"h-5 w-5"}),(0,ee.__)("Exit Launch","extendify")),(0,e.createElement)(go,null)))},go=()=>{const{nextPage:t,currentPageIndex:n,pages:r}=Qp(),o=Qp((e=>e.count())),a=Fr((e=>e.canLaunch())),i=n===o-1,s=Array.from(r.keys())[n],l=r.get(s).state,[u,c]=(0,e.useState)(!1);return(0,e.useEffect)((()=>(c(l?.getState()?.ready),l.subscribe((e=>{let{ready:t}=e;return c(t)})))),[l,n]),a&&i?(0,e.createElement)("button",{className:"flex items-center px-4 py-3 font-bold bg-partner-primary-bg text-partner-primary-text button-focus",onClick:()=>{lo.setState({generating:!0})},type:"button","data-test":"next-button"},(0,ee.__)("Launch site","extendify")):(0,e.createElement)("button",{className:co()("flex items-center px-4 py-3 font-bold bg-partner-primary-bg text-partner-primary-text button-focus",{"opacity-50 cursor-not-allowed":!u}),onClick:t,disabled:!u,type:"button","data-test":"next-button"},(0,ee.__)("Next","extendify"),(0,e.createElement)(Zr,{className:"h-5 w-5"}))},vo=t=>{var n;let{children:r,includeNav:o=!0}=t;return(0,e.createElement)("div",{className:"flex flex-col md:flex-row"},(0,e.createElement)("div",{className:"bg-partner-primary-bg text-partner-primary-text py-12 xl:py-16 px-8 xl:px-12 md:h-screen flex flex-col justify-between md:w-40vw md:max-w-md flex-shrink-0"},(0,e.createElement)("div",{className:"max-w-prose md:max-w-sm pr-8"},(0,e.createElement)("div",{className:"md:min-h-48"},window.extOnbData?.partnerLogo?(0,e.createElement)("div",{className:"mb-8"},(0,e.createElement)("img",{style:{maxWidth:"200px"},src:window.extOnbData.partnerLogo,alt:null!==(n=window.extOnbData?.partnerName)&&void 0!==n?n:""})):(0,e.createElement)($r,{className:"logo text-design-text w-32 sm:w-40 mb-8"}),r[0]),(0,e.createElement)(mo,{disabled:!o}))),(0,e.createElement)("div",{className:"flex-grow md:h-screen md:overflow-y-scroll"},o?(0,e.createElement)("div",{className:"pt-12 xl:pt-16 pb-4 sticky top-0 bg-white z-50 w-full px-8 xl:px-12 max-w-onboarding-content mx-auto"},(0,e.createElement)(ho,null)):null,(0,e.createElement)("div",{className:"mt-8 mb-8 xl:mb-12 flex justify-center max-w-onboarding-content mx-auto px-8 xl:px-12"},r[1])))},yo=(e,t)=>Rr(Ar(t,{name:`Extendify Launch ${e}`})),bo=()=>ar.get("onboarding/goals"),wo=()=>({key:"goals"}),xo=yo("Goals",(()=>({title:(0,ee.__)("Goals","extendify"),default:void 0,showInSidebar:!0,ready:!1,isDefault:()=>0===Fr.getState().goals?.length}))),Eo=async()=>({data:{title:await dr("blogname")}}),Co=()=>({key:"site-info"}),So=yo("Site Title",(()=>({title:(0,ee.__)("Site Title","extendify"),default:void 0,showInSidebar:!0,ready:!1,isDefault:()=>{}}))),Oo=t=>{let{defaultInfo:n}=t;const r=(0,e.useRef)(null),o=Qp((e=>e.nextPage)),{siteInformation:a,setSiteInformation:i}=Fr();return(0,e.useEffect)((()=>{var e;if(void 0===a.title)return void i("title",null!==(e=n?.title)&&void 0!==e?e:"");So.setState({ready:!1});const t=setTimeout((()=>{cr("blogname",a.title),So.setState({ready:!0})}),300);return()=>clearTimeout(t)}),[n.title,i,a.title]),(0,e.useEffect)((()=>{const e=requestAnimationFrame((()=>r.current.focus()));return()=>cancelAnimationFrame(e)}),[]),void 0===a?.title?(0,ee.__)("Loading...","extendify"):(0,e.createElement)("form",{onSubmit:e=>{e.preventDefault(),o()}},(0,e.createElement)("label",{htmlFor:"extendify-site-title-input",className:"block text-lg m-0 mb-4 font-semibold text-gray-900"},(0,ee.__)("What's the name of your site?","extendify")),(0,e.createElement)("div",{className:"mb-8"},(0,e.createElement)("input",{"data-test":"site-title-input",autoComplete:"off",ref:r,type:"text",name:"site-title-input",id:"extendify-site-title-input",className:"w-96 max-w-full border h-12 input-focus",value:a.title,onChange:e=>{i("title",e.target.value)},placeholder:(0,ee.__)("Enter your preferred site title...","extendify")})))};var To=function(e,t){return To=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])},To(e,t)};function Lo(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}To(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}var Po=function(){return Po=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},Po.apply(this,arguments)};function ko(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function Ro(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function Mo(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create;var No=("undefined"==typeof process||process.env,"production");const Ao=1/60*1e3,Vo="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),Io="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout((()=>e(Vo())),Ao);let Do=!0,jo=!1,_o=!1;const Fo={delta:0,timestamp:0},Ho=["read","update","preRender","render","postRender"],Bo=Ho.reduce(((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,o=!1,a=!1;const i=new WeakSet,s={schedule:(e,a=!1,s=!1)=>{const l=s&&o,u=l?t:n;return a&&i.add(e),-1===u.indexOf(e)&&(u.push(e),l&&o&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),i.delete(e)},process:l=>{if(o)a=!0;else{if(o=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;n<r;n++){const r=t[n];r(l),i.has(r)&&(s.schedule(r),e())}o=!1,a&&(a=!1,s.process(l))}}};return s}((()=>jo=!0)),e)),{}),Uo=Ho.reduce(((e,t)=>{const n=Bo[t];return e[t]=(e,t=!1,r=!1)=>(jo||Wo(),n.schedule(e,t,r)),e}),{}),zo=Ho.reduce(((e,t)=>(e[t]=Bo[t].cancel,e)),{}),qo=Ho.reduce(((e,t)=>(e[t]=()=>Bo[t].process(Fo),e)),{}),Zo=e=>Bo[e].process(Fo),$o=e=>{jo=!1,Fo.delta=Do?Ao:Math.max(Math.min(e-Fo.timestamp,40),1),Fo.timestamp=e,_o=!0,Ho.forEach(Zo),_o=!1,jo&&(Do=!1,Io($o))},Wo=()=>{jo=!0,Do=!0,_o||Io($o)},Xo=()=>Fo;var Yo=Uo,Go="undefined"!=typeof document,Jo=Go?o.useLayoutEffect:o.useEffect;function Ko(){var e=(0,o.useRef)(!1);return Jo((function(){return e.current=!0,function(){e.current=!1}}),[]),e}var Qo=(0,o.createContext)(null);function ea(e){var t=(0,o.useRef)(null);return null===t.current&&(t.current=e()),t.current}var ta=0,na=function(){return ta++},ra=function(){return ea(na)},oa=function(e){var t=e.children,n=e.initial,r=e.isPresent,a=e.onExitComplete,i=e.custom,s=e.presenceAffectsLayout,l=ea(aa),u=ra(),c=(0,o.useMemo)((function(){return{id:u,initial:n,isPresent:r,custom:i,onExitComplete:function(e){var t,n;l.set(e,!0);try{for(var r=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(l.values()),o=r.next();!o.done;o=r.next())if(!o.value)return}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}null==a||a()},register:function(e){return l.set(e,!1),function(){return l.delete(e)}}}}),s?void 0:[r]);return(0,o.useMemo)((function(){l.forEach((function(e,t){return l.set(t,!1)}))}),[r]),o.useEffect((function(){!r&&!l.size&&(null==a||a())}),[r]),o.createElement(Qo.Provider,{value:c},t)};function aa(){return new Map}var ia=(0,o.createContext)({});function sa(e){return(0,o.useEffect)((function(){return function(){return e()}}),[])}var la=function(e){return e.key||""},ua=function(e){var t=e.children,n=e.custom,r=e.initial,a=void 0===r||r,i=e.onExitComplete,s=e.exitBeforeEnter,l=e.presenceAffectsLayout,u=void 0===l||l,c=Ro(function(){var e=Ko(),t=Ro((0,o.useState)(0),2),n=t[0],r=t[1],a=(0,o.useCallback)((function(){e.current&&r(n+1)}),[n]);return[(0,o.useCallback)((function(){return Yo.postRender(a)}),[a]),n]}(),1),d=c[0],f=(0,o.useContext)(ia).forceRender;f&&(d=f);var p=Ko(),m=function(e){var t=[];return o.Children.forEach(e,(function(e){(0,o.isValidElement)(e)&&t.push(e)})),t}(t),h=m,g=new Set,v=(0,o.useRef)(h),y=(0,o.useRef)(new Map).current,b=(0,o.useRef)(!0);if(Jo((function(){b.current=!1,function(e,t){e.forEach((function(e){var n=la(e);t.set(n,e)}))}(m,y),v.current=h})),sa((function(){b.current=!0,y.clear(),g.clear()})),b.current)return o.createElement(o.Fragment,null,h.map((function(e){return o.createElement(oa,{key:la(e),isPresent:!0,initial:!!a&&void 0,presenceAffectsLayout:u},e)})));h=Mo([],Ro(h),!1);for(var w=v.current.map(la),x=m.map(la),E=w.length,C=0;C<E;C++){var S=w[C];-1===x.indexOf(S)&&g.add(S)}return s&&g.size&&(h=[]),g.forEach((function(e){if(-1===x.indexOf(e)){var t=y.get(e);if(t){var r=w.indexOf(e);h.splice(r,0,o.createElement(oa,{key:la(t),isPresent:!1,onExitComplete:function(){y.delete(e),g.delete(e);var t=v.current.findIndex((function(t){return t.key===e}));if(v.current.splice(t,1),!g.size){if(v.current=m,!1===p.current)return;d(),i&&i()}},custom:n,presenceAffectsLayout:u},t))}}})),h=h.map((function(e){var t=e.key;return g.has(t)?e:o.createElement(oa,{key:la(e),isPresent:!0,presenceAffectsLayout:u},e)})),"production"!==No&&s&&h.length>1&&console.warn("You're attempting to animate multiple children within AnimatePresence, but its exitBeforeEnter prop is set to true. This will lead to odd visual behaviour."),o.createElement(o.Fragment,null,g.size?h:h.map((function(e){return(0,o.cloneElement)(e)})))},ca=function(e){return{isEnabled:function(t){return e.some((function(e){return!!t[e]}))}}},da={measureLayout:ca(["layout","layoutId","drag"]),animation:ca(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:ca(["exit"]),drag:ca(["drag","dragControls"]),focus:ca(["whileFocus"]),hover:ca(["whileHover","onHoverStart","onHoverEnd"]),tap:ca(["whileTap","onTap","onTapStart","onTapCancel"]),pan:ca(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:ca(["whileInView","onViewportEnter","onViewportLeave"])},fa=function(){},pa=function(){},ma=(0,o.createContext)({strict:!1}),ha=Object.keys(da),ga=ha.length,va=(0,o.createContext)({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),ya=(0,o.createContext)({}),ba={current:null},wa=!1;function xa(e,t,n,r){var a,i,s=(0,o.useContext)(ma),l=(0,o.useContext)(ya).visualElement,u=(0,o.useContext)(Qo),c=(!wa&&function(){if(wa=!0,Go)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return ba.current=e.matches};e.addListener(t),t()}else ba.current=!1}(),a=Ro((0,o.useState)(ba.current),1)[0],"never"!==(i=(0,o.useContext)(va).reducedMotion)&&("always"===i||a)),d=(0,o.useRef)(void 0);r||(r=s.renderer),!d.current&&r&&(d.current=r(e,{visualState:t,parent:l,props:n,presenceId:null==u?void 0:u.id,blockInitialAnimation:!1===(null==u?void 0:u.initial),shouldReduceMotion:c}));var f=d.current;return Jo((function(){null==f||f.syncRender()})),(0,o.useEffect)((function(){var e;null===(e=null==f?void 0:f.animationState)||void 0===e||e.animateChanges()})),Jo((function(){return function(){return null==f?void 0:f.notifyUnmount()}}),[]),f}function Ea(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Ca(e){return Array.isArray(e)}function Sa(e){return"string"==typeof e||Ca(e)}function Oa(e,t,n,r,o){var a;return void 0===r&&(r={}),void 0===o&&(o={}),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,o)),"string"==typeof t&&(t=null===(a=e.variants)||void 0===a?void 0:a[t]),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,o)),t}function Ta(e,t,n){var r=e.getProps();return Oa(r,t,null!=n?n:r.custom,function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.get()})),t}(e),function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.getVelocity()})),t}(e))}function La(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||Sa(e.initial)||Sa(e.animate)||Sa(e.whileHover)||Sa(e.whileDrag)||Sa(e.whileTap)||Sa(e.whileFocus)||Sa(e.exit)}function Pa(e){return Boolean(La(e)||e.variants)}function ka(e){return Array.isArray(e)?e.join(" "):e}var Ra={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Ma=1,Na=(0,o.createContext)({}),Aa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Lo(t,e),t.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},t.prototype.componentDidUpdate=function(){},t.prototype.updateProps=function(){var e=this.props,t=e.visualElement,n=e.props;t&&t.setProps(n)},t.prototype.render=function(){return this.props.children},t}(o.Component);function Va(e){var t=e.preloadedFeatures,n=e.createVisualElement,r=e.projectionNodeConstructor,a=e.useRender,i=e.useVisualState,s=e.Component;return t&&function(e){for(var t in e)null!==e[t]&&("projectionNodeConstructor"===t?da.projectionNodeConstructor=e[t]:da[t].Component=e[t])}(t),(0,o.forwardRef)((function(e,l){var u=function(e){var t,n=e.layoutId,r=null===(t=(0,o.useContext)(ia))||void 0===t?void 0:t.id;return r&&void 0!==n?r+"-"+n:n}(e);e=Po(Po({},e),{layoutId:u});var c=(0,o.useContext)(va),d=null,f=function(e){var t=function(e,t){if(La(e)){var n=e.initial,r=e.animate;return{initial:!1===n||Sa(n)?n:void 0,animate:Sa(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,o.useContext)(ya)),n=t.initial,r=t.animate;return(0,o.useMemo)((function(){return{initial:n,animate:r}}),[ka(n),ka(r)])}(e),p=c.isStatic?void 0:ea((function(){if(Ra.hasEverUpdated)return Ma++})),m=i(e,c.isStatic);return!c.isStatic&&Go&&(f.visualElement=xa(s,m,Po(Po({},c),e),n),function(e,t,n,r){var a,i=t.layoutId,s=t.layout,l=t.drag,u=t.dragConstraints,c=t.layoutScroll,d=(0,o.useContext)(Na);r&&n&&!(null==n?void 0:n.projection)&&(n.projection=new r(e,n.getLatestValues(),null===(a=n.parent)||void 0===a?void 0:a.projection),n.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:Boolean(l)||u&&Ea(u),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:"string"==typeof s?s:"both",initialPromotionConfig:d,layoutScroll:c}))}(p,e,f.visualElement,r||da.projectionNodeConstructor),d=function(e,t,n){var r=[],a=(0,o.useContext)(ma);if(!t)return null;"production"!==No&&n&&a.strict&&pa(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(var i=0;i<ga;i++){var s=ha[i],l=da[s],u=l.isEnabled,c=l.Component;u(e)&&c&&r.push(o.createElement(c,Po({key:s},e,{visualElement:t})))}return r}(e,f.visualElement,t)),o.createElement(Aa,{visualElement:f.visualElement,props:Po(Po({},c),e)},d,o.createElement(ya.Provider,{value:f},a(s,e,p,function(e,t,n){return(0,o.useCallback)((function(r){var o;r&&(null===(o=e.mount)||void 0===o||o.call(e,r)),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):Ea(n)&&(n.current=r))}),[t])}(m,f.visualElement,l),m,c.isStatic,f.visualElement)))}))}function Ia(e){function t(t,n){return void 0===n&&(n={}),Va(e(t,n))}if("undefined"==typeof Proxy)return t;var n=new Map;return new Proxy(t,{get:function(e,r){return n.has(r)||n.set(r,t(r)),n.get(r)}})}var Da=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function ja(e){return"string"==typeof e&&!e.includes("-")&&!!(Da.indexOf(e)>-1||/[A-Z]/.test(e))}var _a={},Fa=["","X","Y","Z"],Ha=["transformPerspective","x","y","z"];function Ba(e,t){return Ha.indexOf(e)-Ha.indexOf(t)}["translate","scale","rotate","skew"].forEach((function(e){return Fa.forEach((function(t){return Ha.push(e+t)}))}));var Ua=new Set(Ha);function za(e){return Ua.has(e)}var qa=new Set(["originX","originY","originZ"]);function Za(e){return qa.has(e)}function $a(e,t){var n=t.layout,r=t.layoutId;return za(e)||Za(e)||(n||void 0!==r)&&(!!_a[e]||"opacity"===e)}var Wa=function(e){return Boolean(null!==e&&"object"==typeof e&&e.getVelocity)},Xa={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function Ya(e){return e.startsWith("--")}var Ga=function(e,t){return t&&"number"==typeof e?t.transform(e):e};const Ja=(e,t)=>n=>Math.max(Math.min(n,t),e),Ka=e=>e%1?Number(e.toFixed(5)):e,Qa=/(-)?([\d]*\.?[\d])+/g,ei=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,ti=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function ni(e){return"string"==typeof e}const ri=e=>({test:t=>ni(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),oi=ri("deg"),ai=ri("%"),ii=ri("px"),si=ri("vh"),li=ri("vw"),ui=Object.assign(Object.assign({},ai),{parse:e=>ai.parse(e)/100,transform:e=>ai.transform(100*e)}),ci={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},di=Object.assign(Object.assign({},ci),{transform:Ja(0,1)}),fi=Object.assign(Object.assign({},ci),{default:1});var pi=Po(Po({},ci),{transform:Math.round}),mi={borderWidth:ii,borderTopWidth:ii,borderRightWidth:ii,borderBottomWidth:ii,borderLeftWidth:ii,borderRadius:ii,radius:ii,borderTopLeftRadius:ii,borderTopRightRadius:ii,borderBottomRightRadius:ii,borderBottomLeftRadius:ii,width:ii,maxWidth:ii,height:ii,maxHeight:ii,size:ii,top:ii,right:ii,bottom:ii,left:ii,padding:ii,paddingTop:ii,paddingRight:ii,paddingBottom:ii,paddingLeft:ii,margin:ii,marginTop:ii,marginRight:ii,marginBottom:ii,marginLeft:ii,rotate:oi,rotateX:oi,rotateY:oi,rotateZ:oi,scale:fi,scaleX:fi,scaleY:fi,scaleZ:fi,skew:oi,skewX:oi,skewY:oi,distance:ii,translateX:ii,translateY:ii,translateZ:ii,x:ii,y:ii,z:ii,perspective:ii,transformPerspective:ii,opacity:di,originX:ui,originY:ui,originZ:ii,zIndex:pi,fillOpacity:di,strokeOpacity:di,numOctaves:pi};function hi(e,t,n,r){var o,a=e.style,i=e.vars,s=e.transform,l=e.transformKeys,u=e.transformOrigin;l.length=0;var c=!1,d=!1,f=!0;for(var p in t){var m=t[p];if(Ya(p))i[p]=m;else{var h=mi[p],g=Ga(m,h);if(za(p)){if(c=!0,s[p]=g,l.push(p),!f)continue;m!==(null!==(o=h.default)&&void 0!==o?o:0)&&(f=!1)}else Za(p)?(u[p]=g,d=!0):a[p]=g}}c?a.transform=function(e,t,n,r){var o=e.transform,a=e.transformKeys,i=t.enableHardwareAcceleration,s=void 0===i||i,l=t.allowTransformNone,u=void 0===l||l,c="";a.sort(Ba);for(var d=!1,f=a.length,p=0;p<f;p++){var m=a[p];c+="".concat(Xa[m]||m,"(").concat(o[m],") "),"z"===m&&(d=!0)}return!d&&s?c+="translateZ(0)":c=c.trim(),r?c=r(o,n?"":c):u&&n&&(c="none"),c}(e,n,f,r):r?a.transform=r({},""):!t.transform&&a.transform&&(a.transform="none"),d&&(a.transformOrigin=function(e){var t=e.originX,n=void 0===t?"50%":t,r=e.originY,o=void 0===r?"50%":r,a=e.originZ,i=void 0===a?0:a;return"".concat(n," ").concat(o," ").concat(i)}(u))}var gi=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function vi(e,t,n){for(var r in t)Wa(t[r])||$a(r,n)||(e[r]=t[r])}function yi(e,t,n){var r={},a=function(e,t,n){var r={};return vi(r,e.style||{},e),Object.assign(r,function(e,t,n){var r=e.transformTemplate;return(0,o.useMemo)((function(){var e=gi();hi(e,t,{enableHardwareAcceleration:!n},r);var o=e.vars,a=e.style;return Po(Po({},o),a)}),[t])}(e,t,n)),e.transformValues&&(r=e.transformValues(r)),r}(e,t,n);return Boolean(e.drag)&&!1!==e.dragListener&&(r.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),r.style=a,r}var bi=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function wi(e){return bi.has(e)}var xi,Ei=function(e){return!wi(e)};try{(xi=require("@emotion/is-prop-valid").default)&&(Ei=function(e){return e.startsWith("on")?!wi(e):xi(e)})}catch(e){}function Ci(e,t,n){return"string"==typeof e?e:ii.transform(t+n*e)}var Si={offset:"stroke-dashoffset",array:"stroke-dasharray"},Oi={offset:"strokeDashoffset",array:"strokeDasharray"};function Ti(e,t,n,r){var o=t.attrX,a=t.attrY,i=t.originX,s=t.originY,l=t.pathLength,u=t.pathSpacing,c=void 0===u?1:u,d=t.pathOffset,f=void 0===d?0:d;hi(e,ko(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),n,r),e.attrs=e.style,e.style={};var p=e.attrs,m=e.style,h=e.dimensions;p.transform&&(h&&(m.transform=p.transform),delete p.transform),h&&(void 0!==i||void 0!==s||m.transform)&&(m.transformOrigin=function(e,t,n){var r=Ci(t,e.x,e.width),o=Ci(n,e.y,e.height);return"".concat(r," ").concat(o)}(h,void 0!==i?i:.5,void 0!==s?s:.5)),void 0!==o&&(p.x=o),void 0!==a&&(p.y=a),void 0!==l&&function(e,t,n,r,o){void 0===n&&(n=1),void 0===r&&(r=0),void 0===o&&(o=!0),e.pathLength=1;var a=o?Si:Oi;e[a.offset]=ii.transform(-r);var i=ii.transform(t),s=ii.transform(n);e[a.array]="".concat(i," ").concat(s)}(p,l,c,f,!1)}var Li=function(){return Po(Po({},gi()),{attrs:{}})};function Pi(e,t){var n=(0,o.useMemo)((function(){var n=Li();return Ti(n,t,{enableHardwareAcceleration:!1},e.transformTemplate),Po(Po({},n.attrs),{style:Po({},n.style)})}),[t]);if(e.style){var r={};vi(r,e.style,e),n.style=Po(Po({},r),n.style)}return n}function ki(e){return void 0===e&&(e=!1),function(t,n,r,a,i,s){var l=i.latestValues,u=(ja(t)?Pi:yi)(n,l,s),c=function(e,t,n){var r={};for(var o in e)(Ei(o)||!0===n&&wi(o)||!t&&!wi(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),d=Po(Po(Po({},c),u),{ref:a});return r&&(d["data-projection-id"]=r),(0,o.createElement)(t,d)}}var Ri=/([a-z])([A-Z])/g,Mi=function(e){return e.replace(Ri,"$1-$2").toLowerCase()};function Ni(e,t,n,r){var o=t.style,a=t.vars;for(var i in Object.assign(e.style,o,r&&r.getProjectionStyles(n)),a)e.style.setProperty(i,a[i])}var Ai=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function Vi(e,t,n,r){for(var o in Ni(e,t,void 0,r),t.attrs)e.setAttribute(Ai.has(o)?o:Mi(o),t.attrs[o])}function Ii(e){var t=e.style,n={};for(var r in t)(Wa(t[r])||$a(r,e))&&(n[r]=t[r]);return n}function Di(e){var t=Ii(e);for(var n in e)Wa(e[n])&&(t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]);return t}function ji(e){return"object"==typeof e&&"function"==typeof e.start}var _i=function(e){return Array.isArray(e)},Fi=function(e){return Boolean(e&&"object"==typeof e&&e.mix&&e.toValue)},Hi=function(e){return _i(e)?e[e.length-1]||0:e};function Bi(e){var t=Wa(e)?e.get():e;return Fi(t)?t.toValue():t}function Ui(e,t,n,r){var o=e.scrapeMotionValuesFromProps,a=e.createRenderState,i=e.onMount,s={latestValues:qi(t,n,r,o),renderState:a()};return i&&(s.mount=function(e){return i(t,e,s)}),s}var zi=function(e){return function(t,n){var r=(0,o.useContext)(ya),a=(0,o.useContext)(Qo);return n?Ui(e,t,r,a):ea((function(){return Ui(e,t,r,a)}))}};function qi(e,t,n,r){var o={},a=!1===(null==n?void 0:n.initial),i=r(e);for(var s in i)o[s]=Bi(i[s]);var l=e.initial,u=e.animate,c=La(e),d=Pa(e);t&&d&&!c&&!1!==e.inherit&&(null!=l||(l=t.initial),null!=u||(u=t.animate));var f=a||!1===l,p=f?u:l;return p&&"boolean"!=typeof p&&!ji(p)&&(Array.isArray(p)?p:[p]).forEach((function(t){var n=Oa(e,t);if(n){var r=n.transitionEnd;n.transition;var a=ko(n,["transitionEnd","transition"]);for(var i in a){var s=a[i];Array.isArray(s)&&(s=s[f?s.length-1:0]),null!==s&&(o[i]=s)}for(var i in r)o[i]=r[i]}})),o}var Zi,$i={useVisualState:zi({scrapeMotionValuesFromProps:Di,createRenderState:Li,onMount:function(e,t,n){var r=n.renderState,o=n.latestValues;try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}Ti(r,o,{enableHardwareAcceleration:!1},e.transformTemplate),Vi(t,r)}})},Wi={useVisualState:zi({scrapeMotionValuesFromProps:Ii,createRenderState:gi})};function Xi(e,t,n,r){return void 0===r&&(r={passive:!0}),e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n)}}function Yi(e,t,n,r){(0,o.useEffect)((function(){var o=e.current;if(n&&o)return Xi(o,t,n,r)}),[e,t,n,r])}function Gi(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function Ji(e){return!!e.touches}!function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"}(Zi||(Zi={}));var Ki={pageX:0,pageY:0};function Qi(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||Ki;return{x:n[t+"X"],y:n[t+"Y"]}}function es(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function ts(e,t){return void 0===t&&(t="page"),{point:Ji(e)?Qi(e,t):es(e,t)}}var ns=function(e,t){void 0===t&&(t=!1);var n,r=function(t){return e(t,ts(t))};return t?(n=r,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):r},rs=function(){return Go&&null===window.onpointerdown},os=function(){return Go&&null===window.ontouchstart},as=function(){return Go&&null===window.onmousedown},is={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},ss={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function ls(e){return rs()?e:os()?ss[e]:as()?is[e]:e}function us(e,t,n,r){return Xi(e,ls(t),ns(n,"pointerdown"===t),r)}function cs(e,t,n,r){return Yi(e,ls(t),n&&ns(n,"pointerdown"===t),r)}function ds(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var fs=ds("dragHorizontal"),ps=ds("dragVertical");function ms(e){var t=!1;if("y"===e)t=ps();else if("x"===e)t=fs();else{var n=fs(),r=ps();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function hs(){var e=ms(!0);return!e||(e(),!1)}function gs(e,t,n){return function(r,o){var a;Gi(r)&&!hs()&&(null===(a=e.animationState)||void 0===a||a.setActive(Zi.Hover,t),null==n||n(r,o))}}var vs=function(e,t){return!!t&&(e===t||vs(e,t.parentElement))};const ys=(e,t)=>n=>t(e(n)),bs=(...e)=>e.reduce(ys);var ws=new Set,xs=new WeakMap,Es=new WeakMap,Cs=function(e){var t;null===(t=xs.get(e.target))||void 0===t||t(e)},Ss=function(e){e.forEach(Cs)};var Os={some:0,all:1};function Ts(e,t,n,r){var a=r.root,i=r.margin,s=r.amount,l=void 0===s?"some":s,u=r.once;(0,o.useEffect)((function(){if(e){var r={root:null==a?void 0:a.current,rootMargin:i,threshold:"number"==typeof l?l:Os[l]};return function(e,t,n){var r=function(e){var t=e.root,n=ko(e,["root"]),r=t||document;Es.has(r)||Es.set(r,{});var o=Es.get(r),a=JSON.stringify(n);return o[a]||(o[a]=new IntersectionObserver(Ss,Po({root:t},n))),o[a]}(t);return xs.set(e,n),r.observe(e),function(){xs.delete(e),r.unobserve(e)}}(n.getInstance(),r,(function(e){var r,o=e.isIntersecting;if(t.isInView!==o&&(t.isInView=o,!u||o||!t.hasEnteredView)){o&&(t.hasEnteredView=!0),null===(r=n.animationState)||void 0===r||r.setActive(Zi.InView,o);var a=n.getProps(),i=o?a.onViewportEnter:a.onViewportLeave;null==i||i(e)}}))}}),[e,a,i,l])}function Ls(e,t,n,r){var a=r.fallback,i=void 0===a||a;(0,o.useEffect)((function(){var r;e&&i&&("production"!==No&&(r="IntersectionObserver not available on this device. whileInView animations will trigger on mount.",ws.has(r)||(console.warn(r),ws.add(r))),requestAnimationFrame((function(){var e;t.hasEnteredView=!0;var r=n.getProps().onViewportEnter;null==r||r(null),null===(e=n.animationState)||void 0===e||e.setActive(Zi.InView,!0)})))}),[e])}var Ps=function(e){return function(t){return e(t),null}},ks={inView:Ps((function(e){var t=e.visualElement,n=e.whileInView,r=e.onViewportEnter,a=e.onViewportLeave,i=e.viewport,s=void 0===i?{}:i,l=(0,o.useRef)({hasEnteredView:!1,isInView:!1}),u=Boolean(n||r||a);s.once&&l.current.hasEnteredView&&(u=!1),("undefined"==typeof IntersectionObserver?Ls:Ts)(u,l.current,t,s)})),tap:Ps((function(e){var t=e.onTap,n=e.onTapStart,r=e.onTapCancel,a=e.whileTap,i=e.visualElement,s=t||n||r||a,l=(0,o.useRef)(!1),u=(0,o.useRef)(null),c={passive:!(n||t||r||h)};function d(){var e;null===(e=u.current)||void 0===e||e.call(u),u.current=null}function f(){var e;return d(),l.current=!1,null===(e=i.animationState)||void 0===e||e.setActive(Zi.Tap,!1),!hs()}function p(e,n){f()&&(vs(i.getInstance(),e.target)?null==t||t(e,n):null==r||r(e,n))}function m(e,t){f()&&(null==r||r(e,t))}function h(e,t){var r;d(),l.current||(l.current=!0,u.current=bs(us(window,"pointerup",p,c),us(window,"pointercancel",m,c)),null===(r=i.animationState)||void 0===r||r.setActive(Zi.Tap,!0),null==n||n(e,t))}cs(i,"pointerdown",s?h:void 0,c),sa(d)})),focus:Ps((function(e){var t=e.whileFocus,n=e.visualElement;Yi(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(Zi.Focus,!0)}:void 0),Yi(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(Zi.Focus,!1)}:void 0)})),hover:Ps((function(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,o=e.visualElement;cs(o,"pointerenter",t||r?gs(o,!0,t):void 0,{passive:!t}),cs(o,"pointerleave",n||r?gs(o,!1,n):void 0,{passive:!n})}))};function Rs(){var e=(0,o.useContext)(Qo);if(null===e)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,a=ra();return(0,o.useEffect)((function(){return r(a)}),[]),!t&&n?[!1,function(){return null==n?void 0:n(a)}]:[!0]}function Ms(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const Ns=(e,t,n)=>Math.min(Math.max(n,e),t),As=.001,Vs=.01,Is=10,Ds=.05,js=1;const _s=12;function Fs(e,t){return e*Math.sqrt(1-t*t)}const Hs=["duration","bounce"],Bs=["stiffness","damping","mass"];function Us(e,t){return t.some((t=>void 0!==e[t]))}function zs(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:o}=e,a=ko(e,["from","to","restSpeed","restDelta"]);const i={done:!1,value:t};let{stiffness:s,damping:l,mass:u,velocity:c,duration:d,isResolvedFromDuration:f}=function(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Us(e,Bs)&&Us(e,Hs)){const n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,a;fa(e<=1e3*Is,"Spring duration must be 10 seconds or less");let i=1-t;i=Ns(Ds,js,i),e=Ns(Vs,Is,e/1e3),i<1?(o=t=>{const r=t*i,o=r*e,a=r-n,s=Fs(t,i),l=Math.exp(-o);return As-a/s*l},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),u=Fs(Math.pow(t,2),i);return(-o(t)+As>0?-1:1)*((a-s)*l)/u}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-As,a=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let n=1;n<_s;n++)r-=e(r)/t(r);return r}(o,a,5/e);if(e*=1e3,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=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}(a),p=qs,m=qs;function h(){const e=c?-c/1e3:0,r=n-t,a=l/(2*Math.sqrt(s*u)),i=Math.sqrt(s/u)/1e3;if(void 0===o&&(o=Math.min(Math.abs(n-t)/100,.4)),a<1){const t=Fs(i,a);p=o=>{const s=Math.exp(-a*i*o);return n-s*((e+a*i*r)/t*Math.sin(t*o)+r*Math.cos(t*o))},m=n=>{const o=Math.exp(-a*i*n);return a*i*o*(Math.sin(t*n)*(e+a*i*r)/t+r*Math.cos(t*n))-o*(Math.cos(t*n)*(e+a*i*r)-t*r*Math.sin(t*n))}}else if(1===a)p=t=>n-Math.exp(-i*t)*(r+(e+i*r)*t);else{const t=i*Math.sqrt(a*a-1);p=o=>{const s=Math.exp(-a*i*o),l=Math.min(t*o,300);return n-s*((e+a*i*r)*Math.sinh(l)+t*r*Math.cosh(l))/t}}}return h(),{next:e=>{const t=p(e);if(f)i.done=e>=d;else{const a=1e3*m(e),s=Math.abs(a)<=r,l=Math.abs(n-t)<=o;i.done=s&&l}return i.value=i.done?n:t,i},flipTarget:()=>{c=-c,[t,n]=[n,t],h()}}}zs.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;const qs=e=>0,Zs=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},$s=(e,t,n)=>-n*e+n*t+e,Ws=(e,t)=>n=>Boolean(ni(n)&&ti.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Xs=(e,t,n)=>r=>{if(!ni(r))return r;const[o,a,i,s]=r.match(Qa);return{[e]:parseFloat(o),[t]:parseFloat(a),[n]:parseFloat(i),alpha:void 0!==s?parseFloat(s):1}},Ys=Ja(0,255),Gs=Object.assign(Object.assign({},ci),{transform:e=>Math.round(Ys(e))}),Js={test:Ws("rgb","red"),parse:Xs("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Gs.transform(e)+", "+Gs.transform(t)+", "+Gs.transform(n)+", "+Ka(di.transform(r))+")"},Ks={test:Ws("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),o=e.substr(4,1),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:Js.transform},Qs={test:Ws("hsl","hue"),parse:Xs("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ai.transform(Ka(t))+", "+ai.transform(Ka(n))+", "+Ka(di.transform(r))+")"};function el(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 tl({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=el(s,r,e+1/3),a=el(s,r,e),i=el(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}}const nl=(e,t,n)=>{const r=e*e,o=t*t;return Math.sqrt(Math.max(0,n*(o-r)+r))},rl=[Ks,Js,Qs],ol=e=>rl.find((t=>t.test(e))),al=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,il=(e,t)=>{let n=ol(e),r=ol(t);pa(!!n,al(e)),pa(!!r,al(t));let o=n.parse(e),a=r.parse(t);n===Qs&&(o=tl(o),n=Js),r===Qs&&(a=tl(a),r=Js);const i=Object.assign({},o);return e=>{for(const t in i)"alpha"!==t&&(i[t]=nl(o[t],a[t],e));return i.alpha=$s(o.alpha,a.alpha,e),n.transform(i)}},sl={test:e=>Js.test(e)||Ks.test(e)||Qs.test(e),parse:e=>Js.test(e)?Js.parse(e):Qs.test(e)?Qs.parse(e):Ks.parse(e),transform:e=>ni(e)?e:e.hasOwnProperty("red")?Js.transform(e):Qs.transform(e)},ll="${c}",ul="${n}";function cl(e){"number"==typeof e&&(e=`${e}`);const t=[];let n=0;const r=e.match(ei);r&&(n=r.length,e=e.replace(ei,ll),t.push(...r.map(sl.parse)));const o=e.match(Qa);return o&&(e=e.replace(Qa,ul),t.push(...o.map(ci.parse))),{values:t,numColors:n,tokenised:e}}function dl(e){return cl(e).values}function fl(e){const{values:t,numColors:n,tokenised:r}=cl(e),o=t.length;return e=>{let t=r;for(let r=0;r<o;r++)t=t.replace(r<n?ll:ul,r<n?sl.transform(e[r]):Ka(e[r]));return t}}const pl=e=>"number"==typeof e?0:e,ml={test:function(e){var t,n,r,o;return isNaN(e)&&ni(e)&&(null!==(n=null===(t=e.match(Qa))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(o=null===(r=e.match(ei))||void 0===r?void 0:r.length)&&void 0!==o?o:0)>0},parse:dl,createTransformer:fl,getAnimatableNone:function(e){const t=dl(e);return fl(e)(t.map(pl))}},hl=e=>"number"==typeof e;function gl(e,t){return hl(e)?n=>$s(e,t,n):sl.test(e)?il(e,t):wl(e,t)}const vl=(e,t)=>{const n=[...e],r=n.length,o=e.map(((e,n)=>gl(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}},yl=(e,t)=>{const n=Object.assign(Object.assign({},e),t),r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=gl(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}};function bl(e){const t=ml.parse(e),n=t.length;let r=0,o=0,a=0;for(let e=0;e<n;e++)r||"number"==typeof t[e]?r++:void 0!==t[e].hue?a++:o++;return{parsed:t,numNumbers:r,numRGB:o,numHSL:a}}const wl=(e,t)=>{const n=ml.createTransformer(t),r=bl(e),o=bl(t);return r.numHSL===o.numHSL&&r.numRGB===o.numRGB&&r.numNumbers>=o.numNumbers?bs(vl(r.parsed,o.parsed),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.`),n=>`${n>0?t:e}`)},xl=(e,t)=>n=>$s(e,t,n);function El(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const a=e.length;pa(a===t.length,"Both input and output ranges must be the same length"),pa(!r||!Array.isArray(r)||r.length===a-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[a-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const i=function(e,t,n){const r=[],o=n||function(e){return"number"==typeof e?xl:"string"==typeof e?sl.test(e)?il:wl:Array.isArray(e)?vl:"object"==typeof e?yl:void 0}(e[0]),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]:t;a=bs(e,a)}r.push(a)}return r}(t,r,o),s=2===a?function([e,t],[n]){return r=>n(Zs(e,t,r))}(e,i):function(e,t){const n=e.length,r=n-1;return o=>{let a=0,i=!1;if(o<=e[0]?i=!0:o>=e[r]&&(a=r-1,i=!0),!i){let t=1;for(;t<n&&!(e[t]>o||t===r);t++);a=t-1}const s=Zs(e[a],e[a+1],o);return t[a](s)}}(e,i);return n?t=>s(Ns(e[0],e[a-1],t)):s}const Cl=e=>t=>1-e(1-t),Sl=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ol=e=>t=>t*t*((e+1)*t-e),Tl=e=>e,Ll=(2,e=>Math.pow(e,2));const Pl=Cl(Ll),kl=Sl(Ll),Rl=e=>1-Math.sin(Math.acos(e)),Ml=Cl(Rl),Nl=Sl(Ml),Al=Ol(1.525),Vl=Cl(Al),Il=Sl(Al),Dl=(e=>{const t=Ol(1.525);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(),jl=e=>{if(1===e||0===e)return e;const t=e*e;return e<.36363636363636365?7.5625*t:e<.7272727272727273?9.075*t-9.9*e+3.4:e<.9?12.066481994459833*t-19.63545706371191*e+8.898060941828255:10.8*e*e-20.52*e+10.72},_l=Cl(jl);function Fl(e,t){return e.map((()=>t||kl)).splice(0,e.length-1)}function Hl({from:e=0,to:t=1,ease:n,offset:r,duration:o=300}){const a={done:!1,value:e},i=Array.isArray(t)?t:[e,t],s=function(e,t){return e.map((e=>e*t))}(r&&r.length===i.length?r:function(e){const t=e.length;return e.map(((e,n)=>0!==n?n/(t-1):0))}(i),o);function l(){return El(s,i,{ease:Array.isArray(n)?n:Fl(i,n)})}let u=l();return{next:e=>(a.value=u(e),a.done=e>=o,a),flipTarget:()=>{i.reverse(),u=l()}}}const Bl={keyframes:Hl,spring:zs,decay:function({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:o=.5,modifyTarget:a}){const i={done:!1,value:t};let s=n*e;const l=t+s,u=void 0===a?l:a(l);return u!==l&&(s=u-t),{next:e=>{const t=-s*Math.exp(-e/r);return i.done=!(t>o||t<-o),i.value=i.done?u:u+t,i},flipTarget:()=>{}}}};function Ul(e,t,n=0){return e-t-n}const zl=e=>{const t=({delta:t})=>e(t);return{start:()=>Yo.update(t,!0),stop:()=>zo.update(t)}};function ql(e){var t,n,{from:r,autoplay:o=!0,driver:a=zl,elapsed:i=0,repeat:s=0,repeatType:l="loop",repeatDelay:u=0,onPlay:c,onStop:d,onComplete:f,onRepeat:p,onUpdate:m}=e,h=ko(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let g,v,y,{to:b}=h,w=0,x=h.duration,E=!1,C=!0;const S=function(e){if(Array.isArray(e.to))return Hl;if(Bl[e.type])return Bl[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Hl:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?zs:Hl}(h);(null===(n=(t=S).needsInterpolation)||void 0===n?void 0:n.call(t,r,b))&&(y=El([0,100],[r,b],{clamp:!1}),r=0,b=100);const O=S(Object.assign(Object.assign({},h),{from:r,to:b}));return o&&(null==c||c(),g=a((function(e){if(C||(e=-e),i+=e,!E){const e=O.next(Math.max(0,i));v=e.value,y&&(v=y(v)),E=C?e.done:i<=0}null==m||m(v),E&&(0===w&&(null!=x||(x=i)),w<s?function(e,t,n,r){return r?e>=t+n:e<=-n}(i,x,u,C)&&(w++,"reverse"===l?(C=w%2==0,i=function(e,t,n=0,r=!0){return r?Ul(t+-e,t,n):t-(e-t)+n}(i,x,u,C)):(i=Ul(i,x,u),"mirror"===l&&O.flipTarget()),E=!1,p&&p()):(g.stop(),f&&f()))})),g.start()),{stop:()=>{null==d||d(),g.stop()}}}function Zl(e,t){return t?e*(1e3/t):0}var $l=function(e){return 1e3*e};const Wl=(e,t)=>1-3*t+3*e,Xl=(e,t)=>3*t-6*e,Yl=e=>3*e,Gl=(e,t,n)=>((Wl(t,n)*e+Xl(t,n))*e+Yl(t))*e,Jl=(e,t,n)=>3*Wl(t,n)*e*e+2*Xl(t,n)*e+Yl(t),Kl=1e-7,Ql=10,eu=8,tu=.001,nu=11,ru=1/(nu-1);function ou(e,t,n,r){if(e===t&&n===r)return Tl;const o=new Float32Array(nu);for(let t=0;t<nu;++t)o[t]=Gl(t*ru,e,n);return a=>0===a||1===a?a:Gl(function(t){let r=0,a=1;const i=nu-1;for(;a!==i&&o[a]<=t;++a)r+=ru;--a;const s=r+(t-o[a])/(o[a+1]-o[a])*ru,l=Jl(s,e,n);return l>=tu?function(e,t,n,r){for(let o=0;o<eu;++o){const o=Jl(t,n,r);if(0===o)return t;t-=(Gl(t,n,r)-e)/o}return t}(t,s,e,n):0===l?s:function(e,t,n,r,o){let a,i,s=0;do{i=t+(n-t)/2,a=Gl(i,r,o)-e,a>0?n=i:t=i}while(Math.abs(a)>Kl&&++s<Ql);return i}(t,r,r+ru,e,n)}(a),t,r)}var au={linear:Tl,easeIn:Ll,easeInOut:kl,easeOut:Pl,circIn:Rl,circInOut:Nl,circOut:Ml,backIn:Al,backInOut:Il,backOut:Vl,anticipate:Dl,bounceIn:_l,bounceInOut:e=>e<.5?.5*(1-jl(1-2*e)):.5*jl(2*e-1)+.5,bounceOut:jl},iu=function(e){if(Array.isArray(e)){pa(4===e.length,"Cubic bezier arrays must contain four numerical values.");var t=Ro(e,4);return ou(t[0],t[1],t[2],t[3])}return"string"==typeof e?(pa(void 0!==au[e],"Invalid easing type '".concat(e,"'")),au[e]):e},su=function(e){return Array.isArray(e)&&"number"!=typeof e[0]},lu=function(e,t){return!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!ml.test(t)||t.startsWith("url(")))},uu=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},cu=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}},du=function(){return{type:"keyframes",ease:"linear",duration:.3}},fu=function(e){return{type:"keyframes",duration:.8,values:e}},pu={x:uu,y:uu,z:uu,rotate:uu,rotateX:uu,rotateY:uu,rotateZ:uu,scaleX:cu,scaleY:cu,scale:cu,opacity:du,backgroundColor:du,color:du,default:cu},mu=function(e,t){var n;return n=_i(t)?fu:pu[e]||pu.default,Po({to:t},n(t))};const hu=new Set(["brightness","contrast","saturate","opacity"]);function gu(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(Qa)||[];if(!r)return e;const o=n.replace(r,"");let a=hu.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+o+")"}const vu=/([a-z-]*)\(.*?\)/g,yu=Object.assign(Object.assign({},ml),{getAnimatableNone:e=>{const t=e.match(vu);return t?t.map(gu).join(" "):e}});var bu=Po(Po({},mi),{color:sl,backgroundColor:sl,outlineColor:sl,fill:sl,stroke:sl,borderColor:sl,borderTopColor:sl,borderRightColor:sl,borderBottomColor:sl,borderLeftColor:sl,filter:yu,WebkitFilter:yu}),wu=function(e){return bu[e]};function xu(e,t){var n,r=wu(e);return r!==yu&&(r=ml),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}var Eu={current:!1},Cu=!1;function Su(e,t,n,r,o){var a,i=Lu(r,e),s=null!==(a=i.from)&&void 0!==a?a:t.get(),l=lu(e,n);"none"===s&&l&&"string"==typeof n?s=xu(e,n):Ou(s)&&"string"==typeof n?s=Tu(n):!Array.isArray(n)&&Ou(n)&&"string"==typeof s&&(n=Tu(s));var u=lu(e,s);return fa(u===l,"You are trying to animate ".concat(e,' from "').concat(s,'" to "').concat(n,'". ').concat(s," is not an animatable value - to enable this animation set ").concat(s," to a value animatable to ").concat(n," via the `style` property.")),u&&l&&!1!==i.type?function(){var r={from:s,to:n,velocity:t.getVelocity(),onComplete:o,onUpdate:function(e){return t.set(e)}};return"inertia"===i.type||"decay"===i.type?function({from:e=0,velocity:t=0,min:n,max:r,power:o=.8,timeConstant:a=750,bounceStiffness:i=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:u,driver:c,onUpdate:d,onComplete:f,onStop:p}){let m;function h(e){return void 0!==n&&e<n||void 0!==r&&e>r}function g(e){return void 0===n?r:void 0===r||Math.abs(n-e)<Math.abs(r-e)?n:r}function v(e){null==m||m.stop(),m=ql(Object.assign(Object.assign({},e),{driver:c,onUpdate:t=>{var n;null==d||d(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:f,onStop:p}))}function y(e){v(Object.assign({type:"spring",stiffness:i,damping:s,restDelta:l},e))}if(h(e))y({from:e,velocity:t,to:g(e)});else{let r=o*t+e;void 0!==u&&(r=u(r));const i=g(r),s=i===n?-1:1;let c,d;const f=e=>{c=d,d=e,t=Zl(e-c,Xo().delta),(1===s&&e>i||-1===s&&e<i)&&y({from:e,to:i,velocity:t})};v({type:"decay",from:e,velocity:t,timeConstant:a,power:o,restDelta:l,modifyTarget:u,onUpdate:h(r)?f:void 0})}return{stop:()=>null==m?void 0:m.stop()}}(Po(Po({},r),i)):ql(Po(Po({},function(e,t,n){var r;return Array.isArray(t.to)&&(null!==(r=e.duration)&&void 0!==r||(e.duration=.8)),function(e){Array.isArray(e.to)&&null===e.to[0]&&(e.to=Mo([],Ro(e.to),!1),e.to[0]=e.from)}(t),function(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=ko(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=Po(Po({},e),mu(n,t.to))),Po(Po({},t),function(e){var t=e.ease,n=e.times,r=e.yoyo,o=e.flip,a=e.loop,i=ko(e,["ease","times","yoyo","flip","loop"]),s=Po({},i);return n&&(s.offset=n),i.duration&&(s.duration=$l(i.duration)),i.repeatDelay&&(s.repeatDelay=$l(i.repeatDelay)),t&&(s.ease=su(t)?t.map(iu):iu(t)),"tween"===i.type&&(s.type="keyframes"),(r||a||o)&&(fa(!Cu,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),Cu=!0,r?s.repeatType="reverse":a?s.repeatType="loop":o&&(s.repeatType="mirror"),s.repeat=a||r||o||i.repeat),"spring"!==i.type&&(s.type="keyframes"),s}(e))}(i,r,e)),{onUpdate:function(e){var t;r.onUpdate(e),null===(t=i.onUpdate)||void 0===t||t.call(i,e)},onComplete:function(){var e;r.onComplete(),null===(e=i.onComplete)||void 0===e||e.call(i)}}))}:function(){var e,r,a=Hi(n);return t.set(a),o(),null===(e=null==i?void 0:i.onUpdate)||void 0===e||e.call(i,a),null===(r=null==i?void 0:i.onComplete)||void 0===r||r.call(i),{stop:function(){}}}}function Ou(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function Tu(e){return"number"==typeof e?0:xu("",e)}function Lu(e,t){return e[t]||e.default||e}function Pu(e,t,n,r){return void 0===r&&(r={}),Eu.current&&(r={type:!1}),t.start((function(o){var a,i,s=Su(e,t,n,r,o),l=function(e,t){var n,r;return null!==(r=null!==(n=(Lu(e,t)||{}).delay)&&void 0!==n?n:e.delay)&&void 0!==r?r:0}(r,e),u=function(){return i=s()};return l?a=window.setTimeout(u,$l(l)):u(),function(){clearTimeout(a),null==i||i.stop()}}))}var ku=function(e){return/^\-?\d*\.?\d+$/.test(e)},Ru=function(e){return/^0[^.\s]+$/.test(e)};function Mu(e,t){-1===e.indexOf(t)&&e.push(t)}function Nu(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Au=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return Mu(this.subscriptions,e),function(){return Nu(t.subscriptions,e)}},e.prototype.notify=function(e,t,n){var r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(var o=0;o<r;o++){var a=this.subscriptions[o];a&&a(e,t,n)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),Vu=function(e){return!isNaN(parseFloat(e))},Iu=function(){function e(e){var t=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Au,this.velocityUpdateSubscribers=new Au,this.renderSubscribers=new Au,this.canTrackVelocity=!1,this.updateAndNotify=function(e,n){void 0===n&&(n=!0),t.prev=t.current,t.current=e;var r=Xo(),o=r.delta,a=r.timestamp;t.lastUpdated!==a&&(t.timeDelta=o,t.lastUpdated=a,Yo.postRender(t.scheduleVelocityCheck)),t.prev!==t.current&&t.updateSubscribers.notify(t.current),t.velocityUpdateSubscribers.getSize()&&t.velocityUpdateSubscribers.notify(t.getVelocity()),n&&t.renderSubscribers.notify(t.current)},this.scheduleVelocityCheck=function(){return Yo.postRender(t.velocityCheck)},this.velocityCheck=function(e){e.timestamp!==t.lastUpdated&&(t.prev=t.current,t.velocityUpdateSubscribers.notify(t.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=Vu(this.current)}return e.prototype.onChange=function(e){return this.updateSubscribers.add(e)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(e){return e(this.get()),this.renderSubscribers.add(e)},e.prototype.attach=function(e){this.passiveEffect=e},e.prototype.set=function(e,t){void 0===t&&(t=!0),t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?Zl(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(e){var t=this;return this.stop(),new Promise((function(n){t.hasAnimated=!0,t.stopAnimation=e(n)})).then((function(){return t.clearAnimation()}))},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function Du(e){return new Iu(e)}var ju=function(e){return function(t){return t.test(e)}},_u=[ci,ii,ai,oi,li,si,{test:function(e){return"auto"===e},parse:function(e){return e}}],Fu=function(e){return _u.find(ju(e))},Hu=Mo(Mo([],Ro(_u),!1),[sl,ml],!1),Bu=function(e){return Hu.find(ju(e))};function Uu(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Du(n))}function zu(e,t){if(t)return(t[e]||t.default||t).from}function qu(e,t,n){var r;void 0===n&&(n={});var o=Ta(e,t,n.custom),a=(o||{}).transition,i=void 0===a?e.getDefaultTransition()||{}:a;n.transitionOverride&&(i=n.transitionOverride);var s=o?function(){return Zu(e,o,n)}:function(){return Promise.resolve()},l=(null===(r=e.variantChildren)||void 0===r?void 0:r.size)?function(r){void 0===r&&(r=0);var o=i.delayChildren,a=void 0===o?0:o,s=i.staggerChildren,l=i.staggerDirection;return function(e,t,n,r,o,a){void 0===n&&(n=0),void 0===r&&(r=0),void 0===o&&(o=1);var i=[],s=(e.variantChildren.size-1)*r,l=1===o?function(e){return void 0===e&&(e=0),e*r}:function(e){return void 0===e&&(e=0),s-e*r};return Array.from(e.variantChildren).sort($u).forEach((function(e,r){i.push(qu(e,t,Po(Po({},a),{delay:n+l(r)})).then((function(){return e.notifyAnimationComplete(t)})))})),Promise.all(i)}(e,t,a+r,s,l,n)}:function(){return Promise.resolve()},u=i.when;if(u){var c=Ro("beforeChildren"===u?[s,l]:[l,s],2),d=c[0],f=c[1];return d().then(f)}return Promise.all([s(),l(n.delay)])}function Zu(e,t,n){var r,o=void 0===n?{}:n,a=o.delay,i=void 0===a?0:a,s=o.transitionOverride,l=o.type,u=e.makeTargetAnimatable(t),c=u.transition,d=void 0===c?e.getDefaultTransition():c,f=u.transitionEnd,p=ko(u,["transition","transitionEnd"]);s&&(d=s);var m=[],h=l&&(null===(r=e.animationState)||void 0===r?void 0:r.getState()[l]);for(var g in p){var v=e.getValue(g),y=p[g];if(!(!v||void 0===y||h&&Wu(h,g))){var b=Po({delay:i},d);e.shouldReduceMotion&&za(g)&&(b=Po(Po({},b),{type:!1,delay:0}));var w=Pu(g,v,y,b);m.push(w)}}return Promise.all(m).then((function(){f&&function(e,t){var n=Ta(e,t),r=n?e.makeTargetAnimatable(n,!1):{},o=r.transitionEnd,a=void 0===o?{}:o;r.transition;var i=ko(r,["transitionEnd","transition"]);for(var s in i=Po(Po({},i),a))Uu(e,s,Hi(i[s]))}(e,f)}))}function $u(e,t){return e.sortNodePosition(t)}function Wu(e,t){var n=e.protectedKeys,r=e.needsAnimating,o=n.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,o}var Xu=[Zi.Animate,Zi.InView,Zi.Focus,Zi.Hover,Zi.Tap,Zi.Drag,Zi.Exit],Yu=Mo([],Ro(Xu),!1).reverse(),Gu=Xu.length;function Ju(e){var t,n=function(e){return function(t){return Promise.all(t.map((function(t){var n=t.animation,r=t.options;return function(e,t,n){var r;if(void 0===n&&(n={}),e.notifyAnimationStart(t),Array.isArray(t)){var o=t.map((function(t){return qu(e,t,n)}));r=Promise.all(o)}else if("string"==typeof t)r=qu(e,t,n);else{var a="function"==typeof t?Ta(e,t,n.custom):t;r=Zu(e,a,n)}return r.then((function(){return e.notifyAnimationComplete(t)}))}(e,n,r)})))}}(e),r=((t={})[Zi.Animate]=Ku(!0),t[Zi.InView]=Ku(),t[Zi.Hover]=Ku(),t[Zi.Tap]=Ku(),t[Zi.Drag]=Ku(),t[Zi.Focus]=Ku(),t[Zi.Exit]=Ku(),t),o={},a=!0,i=function(t,n){var r=Ta(e,n);if(r){r.transition;var o=r.transitionEnd,a=ko(r,["transition","transitionEnd"]);t=Po(Po(Po({},t),a),o)}return t};function s(t,s){for(var l,u=e.getProps(),c=e.getVariantContext(!0)||{},d=[],f=new Set,p={},m=1/0,h=function(n){var o=Yu[n],h=r[o],g=null!==(l=u[o])&&void 0!==l?l:c[o],v=Sa(g),y=o===s?h.isActive:null;!1===y&&(m=n);var b=g===c[o]&&g!==u[o]&&v;if(b&&a&&e.manuallyAnimateOnMount&&(b=!1),h.protectedKeys=Po({},p),!h.isActive&&null===y||!g&&!h.prevProp||ji(g)||"boolean"==typeof g)return"continue";var w=function(e,t){return"string"==typeof t?t!==e:!!Ca(t)&&!Ms(t,e)}(h.prevProp,g),x=w||o===s&&h.isActive&&!b&&v||n>m&&v,E=Array.isArray(g)?g:[g],C=E.reduce(i,{});!1===y&&(C={});var S=h.prevResolvedValues,O=void 0===S?{}:S,T=Po(Po({},O),C),L=function(e){x=!0,f.delete(e),h.needsAnimating[e]=!0};for(var P in T){var k=C[P],R=O[P];p.hasOwnProperty(P)||(k!==R?_i(k)&&_i(R)?!Ms(k,R)||w?L(P):h.protectedKeys[P]=!0:void 0!==k?L(P):f.add(P):void 0!==k&&f.has(P)?L(P):h.protectedKeys[P]=!0)}h.prevProp=g,h.prevResolvedValues=C,h.isActive&&(p=Po(Po({},p),C)),a&&e.blockInitialAnimation&&(x=!1),x&&!b&&d.push.apply(d,Mo([],Ro(E.map((function(e){return{animation:e,options:Po({type:o},t)}}))),!1))},g=0;g<Gu;g++)h(g);if(o=Po({},p),f.size){var v={};f.forEach((function(t){var n=e.getBaseTarget(t);void 0!==n&&(v[t]=n)})),d.push({animation:v})}var y=Boolean(d.length);return a&&!1===u.initial&&!e.manuallyAnimateOnMount&&(y=!1),a=!1,y?n(d):Promise.resolve()}return{isAnimated:function(e){return void 0!==o[e]},animateChanges:s,setActive:function(t,n,o){var a;if(r[t].isActive===n)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach((function(e){var r;return null===(r=e.animationState)||void 0===r?void 0:r.setActive(t,n)})),r[t].isActive=n;var i=s(o,t);for(var l in r)r[l].protectedKeys={};return i},setAnimateFunction:function(t){n=t(e)},getState:function(){return r}}}function Ku(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var Qu={animation:Ps((function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=Ju(t)),ji(n)&&(0,o.useEffect)((function(){return n.subscribe(t)}),[n])})),exit:Ps((function(e){var t=e.custom,n=e.visualElement,r=Ro(Rs(),2),a=r[0],i=r[1],s=(0,o.useContext)(Qo);(0,o.useEffect)((function(){var e,r;n.isPresent=a;var o=null===(e=n.animationState)||void 0===e?void 0:e.setActive(Zi.Exit,!a,{custom:null!==(r=null==s?void 0:s.custom)&&void 0!==r?r:t});!a&&(null==o||o.then(i))}),[a])}))};const ec=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),tc=e=>ec(e)&&e.hasOwnProperty("z"),nc=(e,t)=>Math.abs(e-t);function rc(e,t){if(hl(e)&&hl(t))return nc(e,t);if(ec(e)&&ec(t)){const n=nc(e.x,t.x),r=nc(e.y,t.y),o=tc(e)&&tc(t)?nc(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(o,2))}}var oc=function(){function e(e,t,n){var r=this,o=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(r.lastMoveEvent&&r.lastMoveEventInfo){var e=sc(r.lastMoveEventInfo,r.history),t=null!==r.startEvent,n=rc(e.offset,{x:0,y:0})>=3;if(t||n){var o=e.point,a=Xo().timestamp;r.history.push(Po(Po({},o),{timestamp:a}));var i=r.handlers,s=i.onStart,l=i.onMove;t||(s&&s(r.lastMoveEvent,e),r.startEvent=r.lastMoveEvent),l&&l(r.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){r.lastMoveEvent=e,r.lastMoveEventInfo=ac(t,r.transformPagePoint),Gi(e)&&0===e.buttons?r.handlePointerUp(e,t):Yo.update(r.updatePoint,!0)},this.handlePointerUp=function(e,t){r.end();var n=r.handlers,o=n.onEnd,a=n.onSessionEnd,i=sc(ac(t,r.transformPagePoint),r.history);r.startEvent&&o&&o(e,i),a&&a(e,i)},!(Ji(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=o;var a=ac(ts(e),this.transformPagePoint),i=a.point,s=Xo().timestamp;this.history=[Po(Po({},i),{timestamp:s})];var l=t.onSessionStart;l&&l(e,sc(a,this.history)),this.removeListeners=bs(us(window,"pointermove",this.handlePointerMove),us(window,"pointerup",this.handlePointerUp),us(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),zo.update(this.updatePoint)},e}();function ac(e,t){return t?{point:t(e.point)}:e}function ic(e,t){return{x:e.x-t.x,y:e.y-t.y}}function sc(e,t){var n=e.point;return{point:n,delta:ic(n,uc(t)),offset:ic(n,lc(t)),velocity:cc(t,.1)}}function lc(e){return e[0]}function uc(e){return e[e.length-1]}function cc(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,o=uc(e);n>=0&&(r=e[n],!(o.timestamp-r.timestamp>$l(t)));)n--;if(!r)return{x:0,y:0};var a=(o.timestamp-r.timestamp)/1e3;if(0===a)return{x:0,y:0};var 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 dc(e){return e.max-e.min}function fc(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),rc(e,t)<n}function pc(e,t,n,r){void 0===r&&(r=.5),e.origin=r,e.originPoint=$s(t.min,t.max,e.origin),e.scale=dc(n)/dc(t),(fc(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=$s(n.min,n.max,e.origin)-e.originPoint,(fc(e.translate)||isNaN(e.translate))&&(e.translate=0)}function mc(e,t,n,r){pc(e.x,t.x,n.x,null==r?void 0:r.originX),pc(e.y,t.y,n.y,null==r?void 0:r.originY)}function hc(e,t,n){e.min=n.min+t.min,e.max=e.min+dc(t)}function gc(e,t,n){e.min=t.min-n.min,e.max=e.min+dc(t)}function vc(e,t,n){gc(e.x,t.x,n.x),gc(e.y,t.y,n.y)}function yc(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 bc(e,t){var n,r=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&(r=(n=Ro([o,r],2))[0],o=n[1]),{min:r,max:o}}var wc=.35;function xc(e,t,n){return{min:Ec(e,t),max:Ec(e,n)}}function Ec(e,t){var n;return"number"==typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}var Cc=function(){return{x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}},Sc=function(){return{x:{min:0,max:0},y:{min:0,max:0}}};function Oc(e){return[e("x"),e("y")]}function Tc(e){var t=e.top;return{x:{min:e.left,max:e.right},y:{min:t,max:e.bottom}}}function Lc(e){return void 0===e||1===e}function Pc(e){var t=e.scale,n=e.scaleX,r=e.scaleY;return!Lc(t)||!Lc(n)||!Lc(r)}function kc(e){return Pc(e)||Rc(e.x)||Rc(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function Rc(e){return e&&"0%"!==e}function Mc(e,t,n){return n+t*(e-n)}function Nc(e,t,n,r,o){return void 0!==o&&(e=Mc(e,o,r)),Mc(e,n,r)+t}function Ac(e,t,n,r,o){void 0===t&&(t=0),void 0===n&&(n=1),e.min=Nc(e.min,t,n,r,o),e.max=Nc(e.max,t,n,r,o)}function Vc(e,t){var n=t.x,r=t.y;Ac(e.x,n.translate,n.scale,n.originPoint),Ac(e.y,r.translate,r.scale,r.originPoint)}function Ic(e,t){e.min=e.min+t,e.max=e.max+t}function Dc(e,t,n){var r=Ro(n,3),o=r[0],a=r[1],i=r[2],s=void 0!==t[i]?t[i]:.5,l=$s(e.min,e.max,s);Ac(e,t[o],t[a],l,t.scale)}var jc=["x","scaleX","originX"],_c=["y","scaleY","originY"];function Fc(e,t){Dc(e.x,t,jc),Dc(e.y,t,_c)}function Hc(e,t){return Tc(function(e,t){if(!t)return e;var 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))}var Bc=new WeakMap,Uc=function(){function e(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Sc(),this.visualElement=e}return e.prototype.start=function(e,t){var n=this,r=(void 0===t?{}:t).snapToCursor,o=void 0!==r&&r;!1!==this.visualElement.isPresent&&(this.panSession=new oc(e,{onSessionStart:function(e){n.stopAnimation(),o&&n.snapToCursor(ts(e,"page").point)},onStart:function(e,t){var r,o=n.getProps(),a=o.drag,i=o.dragPropagation,s=o.onDragStart;(!a||i||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=ms(a),n.openGlobalLock))&&(n.isDragging=!0,n.currentDirection=null,n.resolveConstraints(),n.visualElement.projection&&(n.visualElement.projection.isAnimationBlocked=!0,n.visualElement.projection.target=void 0),Oc((function(e){var t,r,o=n.getAxisMotionValue(e).get()||0;if(ai.test(o)){var a=null===(r=null===(t=n.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===r?void 0:r.actual[e];a&&(o=dc(a)*(parseFloat(o)/100))}n.originPoint[e]=o})),null==s||s(e,t),null===(r=n.visualElement.animationState)||void 0===r||r.setActive(Zi.Drag,!0))},onMove:function(e,t){var r=n.getProps(),o=r.dragPropagation,a=r.dragDirectionLock,i=r.onDirectionLock,s=r.onDrag;if(o||n.openGlobalLock){var l=t.offset;if(a&&null===n.currentDirection)return n.currentDirection=function(e,t){void 0===t&&(t=10);var n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(l),void(null!==n.currentDirection&&(null==i||i(n.currentDirection)));n.updateAxis("x",t.point,l),n.updateAxis("y",t.point,l),n.visualElement.syncRender(),null==s||s(e,t)}},onSessionEnd:function(e,t){return n.stop(e,t)}},{transformPagePoint:this.visualElement.getTransformPagePoint()}))},e.prototype.stop=function(e,t){var n=this.isDragging;if(this.cancel(),n){var r=t.velocity;this.startAnimation(r);var o=this.getProps().onDragEnd;null==o||o(e,t)}},e.prototype.cancel=function(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0,!this.getProps().dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(Zi.Drag,!1)},e.prototype.updateAxis=function(e,t,n){var r=this.getProps().drag;if(n&&zc(e,r,this.currentDirection)){var o,a,i,s,l,u=this.getAxisMotionValue(e),c=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=c,a=this.constraints[e],i=this.elastic[e],s=a.min,l=a.max,void 0!==s&&o<s?o=i?$s(s,o,i.min):Math.max(o,s):void 0!==l&&o>l&&(o=i?$s(l,o,i.max):Math.min(o,l)),c=o),u.set(c)}},e.prototype.resolveConstraints=function(){var e=this,t=this.getProps(),n=t.dragConstraints,r=t.dragElastic,o=(this.visualElement.projection||{}).layout,a=this.constraints;n&&Ea(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!o)&&function(e,t){var n=t.top,r=t.left,o=t.bottom,a=t.right;return{x:yc(e.x,r,a),y:yc(e.y,n,o)}}(o.actual,n),this.elastic=function(e){return void 0===e&&(e=wc),!1===e?e=0:!0===e&&(e=wc),{x:xc(e,"left","right"),y:xc(e,"top","bottom")}}(r),a!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Oc((function(t){e.getAxisMotionValue(t)&&(e.constraints[t]=function(e,t){var n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(o.actual[t],e.constraints[t]))}))},e.prototype.resolveRefConstraints=function(){var e=this.getProps(),t=e.dragConstraints,n=e.onMeasureDragConstraints;if(!t||!Ea(t))return!1;var r=t.current;pa(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");var o=this.visualElement.projection;if(!o||!o.layout)return!1;var a=function(e,t,n){var r=Hc(e,n),o=t.scroll;return o&&(Ic(r.x,o.x),Ic(r.y,o.y)),r}(r,o.root,this.visualElement.getTransformPagePoint()),i=function(e,t){return{x:bc(e.x,t.x),y:bc(e.y,t.y)}}(o.layout.actual,a);if(n){var s=n(function(e){var t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}(i));this.hasMutatedConstraints=!!s,s&&(i=Tc(s))}return i},e.prototype.startAnimation=function(e){var t=this,n=this.getProps(),r=n.drag,o=n.dragMomentum,a=n.dragElastic,i=n.dragTransition,s=n.dragSnapToOrigin,l=n.onDragTransitionEnd,u=this.constraints||{},c=Oc((function(n){var l;if(zc(n,r,t.currentDirection)){var c=null!==(l=null==u?void 0:u[n])&&void 0!==l?l:{};s&&(c={min:0,max:0});var d=a?200:1e6,f=a?40:1e7,p=Po(Po({type:"inertia",velocity:o?e[n]:0,bounceStiffness:d,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10},i),c);return t.startAxisValueAnimation(n,p)}}));return Promise.all(c).then(l)},e.prototype.startAxisValueAnimation=function(e,t){return Pu(e,this.getAxisMotionValue(e),0,t)},e.prototype.stopAnimation=function(){var e=this;Oc((function(t){return e.getAxisMotionValue(t).stop()}))},e.prototype.getAxisMotionValue=function(e){var t,n,r="_drag"+e.toUpperCase();return this.visualElement.getProps()[r]||this.visualElement.getValue(e,null!==(n=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==n?n:0)},e.prototype.snapToCursor=function(e){var t=this;Oc((function(n){if(zc(n,t.getProps().drag,t.currentDirection)){var r=t.visualElement.projection,o=t.getAxisMotionValue(n);if(r&&r.layout){var a=r.layout.actual[n],i=a.min,s=a.max;o.set(e[n]-$s(i,s,.5))}}}))},e.prototype.scalePositionWithinConstraints=function(){var e,t=this,n=this.getProps(),r=n.drag,o=n.dragConstraints,a=this.visualElement.projection;if(Ea(o)&&a&&this.constraints){this.stopAnimation();var i={x:0,y:0};Oc((function(e){var n,r,o,a,s,l=t.getAxisMotionValue(e);if(l){var u=l.get();i[e]=(n={min:u,max:u},r=t.constraints[e],o=.5,a=dc(n),(s=dc(r))>a?o=Zs(r.min,r.max-a,n.min):a>s&&(o=Zs(n.min,n.max-s,r.min)),Ns(0,1,o))}}));var s=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=s?s({},""):"none",null===(e=a.root)||void 0===e||e.updateScroll(),a.updateLayout(),this.resolveConstraints(),Oc((function(e){if(zc(e,r,null)){var n=t.getAxisMotionValue(e),o=t.constraints[e],a=o.min,s=o.max;n.set($s(a,s,i[e]))}}))}},e.prototype.addListeners=function(){var e,t=this;Bc.set(this.visualElement,this);var n=us(this.visualElement.getInstance(),"pointerdown",(function(e){var n=t.getProps(),r=n.drag,o=n.dragListener;r&&(void 0===o||o)&&t.start(e)})),r=function(){Ea(t.getProps().dragConstraints)&&(t.constraints=t.resolveRefConstraints())},o=this.visualElement.projection,a=o.addEventListener("measure",r);o&&!o.layout&&(null===(e=o.root)||void 0===e||e.updateScroll(),o.updateLayout()),r();var i=Xi(window,"resize",(function(){return t.scalePositionWithinConstraints()}));return o.addEventListener("didUpdate",(function(e){var n=e.delta,r=e.hasLayoutChanged;t.isDragging&&r&&(Oc((function(e){var r=t.getAxisMotionValue(e);r&&(t.originPoint[e]+=n[e].translate,r.set(r.get()+n[e].translate))})),t.visualElement.syncRender())})),function(){i(),n(),a()}},e.prototype.getProps=function(){var e=this.visualElement.getProps(),t=e.drag,n=void 0!==t&&t,r=e.dragDirectionLock,o=void 0!==r&&r,a=e.dragPropagation,i=void 0!==a&&a,s=e.dragConstraints,l=void 0!==s&&s,u=e.dragElastic,c=void 0===u?wc:u,d=e.dragMomentum,f=void 0===d||d;return Po(Po({},e),{drag:n,dragDirectionLock:o,dragPropagation:i,dragConstraints:l,dragElastic:c,dragMomentum:f})},e}();function zc(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}var qc={pan:Ps((function(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,a=e.onPanSessionStart,i=e.visualElement,s=t||n||r||a,l=(0,o.useRef)(null),u=(0,o.useContext)(va).transformPagePoint,c={onSessionStart:a,onStart:n,onMove:t,onEnd:function(e,t){l.current=null,r&&r(e,t)}};(0,o.useEffect)((function(){null!==l.current&&l.current.updateHandlers(c)})),cs(i,"pointerdown",s&&function(e){l.current=new oc(e,c,{transformPagePoint:u})}),sa((function(){return l.current&&l.current.end()}))})),drag:Ps((function(e){var t=e.dragControls,n=e.visualElement,r=ea((function(){return new Uc(n)}));(0,o.useEffect)((function(){return t&&t.subscribe(r)}),[r,t]),(0,o.useEffect)((function(){return r.addListeners()}),[r])}))},Zc=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"],$c=function(e){var t=e.treeType,n=void 0===t?"":t,r=e.build,o=e.getBaseTarget,a=e.makeTargetAnimatable,i=e.measureViewportBox,s=e.render,l=e.readValueFromInstance,u=e.removeValueFromRenderState,c=e.sortNodePosition,d=e.scrapeMotionValuesFromProps;return function(e,t){var f=e.parent,p=e.props,m=e.presenceId,h=e.blockInitialAnimation,g=e.visualState,v=e.shouldReduceMotion;void 0===t&&(t={});var y,b,w=!1,x=g.latestValues,E=g.renderState,C=function(){var e=Zc.map((function(){return new Au})),t={},n={clearAllListeners:function(){return e.forEach((function(e){return e.clear()}))},updatePropListeners:function(e){Zc.forEach((function(r){var o,a="on"+r,i=e[a];null===(o=t[r])||void 0===o||o.call(t),i&&(t[r]=n[a](i))}))}};return e.forEach((function(e,t){n["on"+Zc[t]]=function(t){return e.add(t)},n["notify"+Zc[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.notify.apply(e,Mo([],Ro(t),!1))}})),n}(),S=new Map,O=new Map,T={},L=Po({},x);function P(){y&&w&&(k(),s(y,E,p.style,j.projection))}function k(){r(j,E,x,t,p)}function R(){C.notifyUpdate(x)}function M(e,t){var n=t.onChange((function(t){x[e]=t,p.onUpdate&&Yo.update(R,!1,!0)})),r=t.onRenderRequest(j.scheduleRender);O.set(e,(function(){n(),r()}))}var N=d(p);for(var A in N){var V=N[A];void 0!==x[A]&&Wa(V)&&V.set(x[A],!1)}var I=La(p),D=Pa(p),j=Po(Po({treeType:n,current:null,depth:f?f.depth+1:0,parent:f,children:new Set,presenceId:m,shouldReduceMotion:v,variantChildren:D?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null==f?void 0:f.isMounted()),blockInitialAnimation:h,isMounted:function(){return Boolean(y)},mount:function(e){w=!0,y=j.current=e,j.projection&&j.projection.mount(e),D&&f&&!I&&(b=null==f?void 0:f.addVariantChild(j)),S.forEach((function(e,t){return M(t,e)})),null==f||f.children.add(j),j.setProps(p)},unmount:function(){var e;null===(e=j.projection)||void 0===e||e.unmount(),zo.update(R),zo.render(P),O.forEach((function(e){return e()})),null==b||b(),null==f||f.children.delete(j),C.clearAllListeners(),y=void 0,w=!1},addVariantChild:function(e){var t,n=j.getClosestVariantNode();if(n)return null===(t=n.variantChildren)||void 0===t||t.add(e),function(){return n.variantChildren.delete(e)}},sortNodePosition:function(e){return c&&n===e.treeType?c(j.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return D?j:null==f?void 0:f.getClosestVariantNode()},getLayoutId:function(){return p.layoutId},getInstance:function(){return y},getStaticValue:function(e){return x[e]},setStaticValue:function(e,t){return x[e]=t},getLatestValues:function(){return x},setVisibility:function(e){j.isVisible!==e&&(j.isVisible=e,j.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),a(j,e,p,t)},measureViewportBox:function(){return i(y,p)},addValue:function(e,t){j.hasValue(e)&&j.removeValue(e),S.set(e,t),x[e]=t.get(),M(e,t)},removeValue:function(e){var t;S.delete(e),null===(t=O.get(e))||void 0===t||t(),O.delete(e),delete x[e],u(e,E)},hasValue:function(e){return S.has(e)},getValue:function(e,t){var n=S.get(e);return void 0===n&&void 0!==t&&(n=Du(t),j.addValue(e,n)),n},forEachValue:function(e){return S.forEach(e)},readValue:function(e){var n;return null!==(n=x[e])&&void 0!==n?n:l(y,e,t)},setBaseTarget:function(e,t){L[e]=t},getBaseTarget:function(e){if(o){var t=o(p,e);if(void 0!==t&&!Wa(t))return t}return L[e]}},C),{build:function(){return k(),E},scheduleRender:function(){Yo.render(P,!1,!0)},syncRender:P,setProps:function(e){(e.transformTemplate||p.transformTemplate)&&j.scheduleRender(),p=e,C.updatePropListeners(e),T=function(e,t,n){var r;for(var o in t){var a=t[o],i=n[o];if(Wa(a))e.addValue(o,a);else if(Wa(i))e.addValue(o,Du(a));else if(i!==a)if(e.hasValue(o)){var s=e.getValue(o);!s.hasAnimated&&s.set(a)}else e.addValue(o,Du(null!==(r=e.getStaticValue(o))&&void 0!==r?r:a))}for(var o in n)void 0===t[o]&&e.removeValue(o);return t}(j,d(p),T)},getProps:function(){return p},getVariant:function(e){var t;return null===(t=p.variants)||void 0===t?void 0:t[e]},getDefaultTransition:function(){return p.transition},getTransformPagePoint:function(){return p.transformPagePoint},getVariantContext:function(e){if(void 0===e&&(e=!1),e)return null==f?void 0:f.getVariantContext();if(!I){var t=(null==f?void 0:f.getVariantContext())||{};return void 0!==p.initial&&(t.initial=p.initial),t}for(var n={},r=0;r<Xc;r++){var o=Wc[r],a=p[o];(Sa(a)||!1===a)&&(n[o]=a)}return n}});return j}},Wc=Mo(["initial"],Ro(Xu),!1),Xc=Wc.length;function Yc(e){return"string"==typeof e&&e.startsWith("var(--")}var Gc=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Jc=4;function Kc(e,t,n){void 0===n&&(n=1),pa(n<=Jc,'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.'));var r=Ro(function(e){var t=Gc.exec(e);if(!t)return[,];var n=Ro(t,3);return[n[1],n[2]]}(e),2),o=r[0],a=r[1];if(o){var i=window.getComputedStyle(t).getPropertyValue(o);return i?i.trim():Yc(a)?Kc(a,t,n+1):a}}var Qc,ed=new Set(["width","height","top","left","right","bottom","x","y"]),td=function(e){return ed.has(e)},nd=function(e,t){e.set(t,!1),e.set(t)},rd=function(e){return e===ci||e===ii};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(Qc||(Qc={}));var od=function(e,t){return parseFloat(e.split(", ")[t])},ad=function(e,t){return function(n,r){var o=r.transform;if("none"===o||!o)return 0;var a=o.match(/^matrix3d\((.+)\)$/);if(a)return od(a[1],t);var i=o.match(/^matrix\((.+)\)$/);return i?od(i[1],e):0}},id=new Set(["x","y","z"]),sd=Ha.filter((function(e){return!id.has(e)})),ld={width:function(e,t){var n=e.x,r=t.paddingLeft,o=void 0===r?"0":r,a=t.paddingRight,i=void 0===a?"0":a;return n.max-n.min-parseFloat(o)-parseFloat(i)},height:function(e,t){var n=e.y,r=t.paddingTop,o=void 0===r?"0":r,a=t.paddingBottom,i=void 0===a?"0":a;return n.max-n.min-parseFloat(o)-parseFloat(i)},top:function(e,t){var n=t.top;return parseFloat(n)},left:function(e,t){var n=t.left;return parseFloat(n)},bottom:function(e,t){var n=e.y,r=t.top;return parseFloat(r)+(n.max-n.min)},right:function(e,t){var n=e.x,r=t.left;return parseFloat(r)+(n.max-n.min)},x:ad(4,13),y:ad(5,14)},ud=function(e,t,n,r){var o=function(e,t,n){var r,o=ko(t,[]),a=e.getInstance();if(!(a instanceof Element))return{target:o,transitionEnd:n};for(var i in n&&(n=Po({},n)),e.forEachValue((function(e){var t=e.get();if(Yc(t)){var n=Kc(t,a);n&&e.set(n)}})),o){var s=o[i];if(Yc(s)){var l=Kc(s,a);l&&(o[i]=l,n&&(null!==(r=n[i])&&void 0!==r||(n[i]=s)))}}return{target:o,transitionEnd:n}}(e,t,r);return function(e,t,n,r){return function(e){return Object.keys(e).some(td)}(t)?function(e,t,n,r){void 0===n&&(n={}),void 0===r&&(r={}),t=Po({},t),r=Po({},r);var o=Object.keys(t).filter(td),a=[],i=!1,s=[];if(o.forEach((function(o){var l=e.getValue(o);if(e.hasValue(o)){var u,c=n[o],d=Fu(c),f=t[o];if(_i(f)){var p=f.length,m=null===f[0]?1:0;c=f[m],d=Fu(c);for(var h=m;h<p;h++)u?pa(Fu(f[h])===u,"All keyframes must be of the same type"):(u=Fu(f[h]),pa(u===d||rd(d)&&rd(u),"Keyframes must be of the same dimension as the current value"))}else u=Fu(f);if(d!==u)if(rd(d)&&rd(u)){var g=l.get();"string"==typeof g&&l.set(parseFloat(g)),"string"==typeof f?t[o]=parseFloat(f):Array.isArray(f)&&u===ii&&(t[o]=f.map(parseFloat))}else(null==d?void 0:d.transform)&&(null==u?void 0:u.transform)&&(0===c||0===f)?0===c?l.set(u.transform(c)):t[o]=d.transform(f):(i||(a=function(e){var t=[];return sd.forEach((function(n){var r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t.length&&e.syncRender(),t}(e),i=!0),s.push(o),r[o]=void 0!==r[o]?r[o]:t[o],nd(l,f))}})),s.length){var l=s.indexOf("height")>=0?window.pageYOffset:null,u=function(e,t,n){var r=t.measureViewportBox(),o=t.getInstance(),a=getComputedStyle(o),i=a.display,s={};"none"===i&&t.setStaticValue("display",e.display||"block"),n.forEach((function(e){s[e]=ld[e](r,a)})),t.syncRender();var l=t.measureViewportBox();return n.forEach((function(n){var r=t.getValue(n);nd(r,s[n]),e[n]=ld[n](l,a)})),e}(t,e,s);return a.length&&a.forEach((function(t){var n=Ro(t,2),r=n[0],o=n[1];e.getValue(r).set(o)})),e.syncRender(),null!==l&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}return{target:t,transitionEnd:r}}(e,t,n,r):{target:t,transitionEnd:r}}(e,t=o.target,n,r=o.transitionEnd)},cd={treeType:"dom",readValueFromInstance:function(e,t){if(za(t)){var n=wu(t);return n&&n.default||0}var r,o=(r=e,window.getComputedStyle(r));return(Ya(t)?o.getPropertyValue(t):o[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]},measureViewportBox:function(e,t){return Hc(e,t.transformPagePoint)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.vars,r=t.style;delete n[e],delete r[e]},makeTargetAnimatable:function(e,t,n,r){var o=n.transformValues;void 0===r&&(r=!0);var a=t.transition,i=t.transitionEnd,s=ko(t,["transition","transitionEnd"]),l=function(e,t,n){var r,o,a={};for(var i in e)a[i]=null!==(r=zu(i,t))&&void 0!==r?r:null===(o=n.getValue(i))||void 0===o?void 0:o.get();return a}(s,a||{},e);if(o&&(i&&(i=o(i)),s&&(s=o(s)),l&&(l=o(l))),r){!function(e,t,n){var r,o,a,i,s=Object.keys(t).filter((function(t){return!e.hasValue(t)})),l=s.length;if(l)for(var u=0;u<l;u++){var c=s[u],d=t[c],f=null;Array.isArray(d)&&(f=d[0]),null===f&&(f=null!==(o=null!==(r=n[c])&&void 0!==r?r:e.readValue(c))&&void 0!==o?o:t[c]),null!=f&&("string"==typeof f&&(ku(f)||Ru(f))?f=parseFloat(f):!Bu(f)&&ml.test(d)&&(f=xu(c,d)),e.addValue(c,Du(f)),null!==(a=(i=n)[c])&&void 0!==a||(i[c]=f),e.setBaseTarget(c,f))}}(e,s,l);var u=ud(e,s,l,i);i=u.transitionEnd,s=u.target}return Po({transition:a,transitionEnd:i},s)},scrapeMotionValuesFromProps:Ii,build:function(e,t,n,r,o){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden"),hi(t,n,r,o.transformTemplate)},render:Ni},dd=$c(cd),fd=$c(Po(Po({},cd),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return za(t)?(null===(n=wu(t))||void 0===n?void 0:n.default)||0:(t=Ai.has(t)?t:Mi(t),e.getAttribute(t))},scrapeMotionValuesFromProps:Di,build:function(e,t,n,r,o){Ti(t,n,r,o.transformTemplate)},render:Vi})),pd=function(e,t){return ja(e)?fd(t,{enableHardwareAcceleration:!1}):dd(t,{enableHardwareAcceleration:!0})};function md(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var hd={correct:function(e,t){if(!t.target)return e;if("string"==typeof e){if(!ii.test(e))return e;e=parseFloat(e)}var n=md(e,t.target.x),r=md(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},gd="_$css",vd={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,o=e,a=e.includes("var("),i=[];a&&(e=e.replace(Gc,(function(e){return i.push(e),gd})));var s=ml.parse(e);if(s.length>5)return o;var l=ml.createTransformer(e),u="number"!=typeof s[0]?1:0,c=r.x.scale*n.x,d=r.y.scale*n.y;s[0+u]/=c,s[1+u]/=d;var f=$s(c,d,.5);"number"==typeof s[2+u]&&(s[2+u]/=f),"number"==typeof s[3+u]&&(s[3+u]/=f);var p=l(s);if(a){var m=0;p=p.replace(gd,(function(){var e=i[m];return m++,e}))}return p}},yd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Lo(t,e),t.prototype.componentDidMount=function(){var e,t=this,n=this.props,r=n.visualElement,o=n.layoutGroup,a=n.switchLayoutGroup,i=n.layoutId,s=r.projection;e=bd,Object.assign(_a,e),s&&((null==o?void 0:o.group)&&o.group.add(s),(null==a?void 0:a.register)&&i&&a.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",(function(){t.safeToRemove()})),s.setOptions(Po(Po({},s.options),{onExitComplete:function(){return t.safeToRemove()}}))),Ra.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(e){var t=this,n=this.props,r=n.layoutDependency,o=n.visualElement,a=n.drag,i=n.isPresent,s=o.projection;return s?(s.isPresent=i,a||e.layoutDependency!==r||void 0===r?s.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?s.promote():s.relegate()||Yo.postRender((function(){var e;(null===(e=s.getStack())||void 0===e?void 0:e.members.length)||t.safeToRemove()}))),null):null},t.prototype.componentDidUpdate=function(){var e=this.props.visualElement.projection;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.visualElement,n=e.layoutGroup,r=e.switchLayoutGroup,o=t.projection;o&&(o.scheduleCheckAfterUnmount(),(null==n?void 0:n.group)&&n.group.remove(o),(null==r?void 0:r.deregister)&&r.deregister(o))},t.prototype.safeToRemove=function(){var e=this.props.safeToRemove;null==e||e()},t.prototype.render=function(){return null},t}(o.Component),bd={borderRadius:Po(Po({},hd),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:hd,borderTopRightRadius:hd,borderBottomLeftRadius:hd,borderBottomRightRadius:hd,boxShadow:vd},wd={measureLayout:function(e){var t=Ro(Rs(),2),n=t[0],r=t[1],a=(0,o.useContext)(ia);return o.createElement(yd,Po({},e,{layoutGroup:a,switchLayoutGroup:(0,o.useContext)(Na),isPresent:n,safeToRemove:r}))}},xd=["TopLeft","TopRight","BottomLeft","BottomRight"],Ed=xd.length,Cd=function(e){return"string"==typeof e?parseFloat(e):e},Sd=function(e){return"number"==typeof e||ii.test(e)};function Od(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}var Td=Pd(0,.5,Ml),Ld=Pd(.5,.95,Tl);function Pd(e,t,n){return function(r){return r<e?0:r>t?1:n(Zs(e,t,r))}}function kd(e,t){e.min=t.min,e.max=t.max}function Rd(e,t){kd(e.x,t.x),kd(e.y,t.y)}function Md(e,t,n,r,o){return e=Mc(e-=t,1/n,r),void 0!==o&&(e=Mc(e,1/o,r)),e}function Nd(e,t,n,r,o){var a=Ro(n,3),i=a[0],s=a[1],l=a[2];!function(e,t,n,r,o,a,i){if(void 0===t&&(t=0),void 0===n&&(n=1),void 0===r&&(r=.5),void 0===a&&(a=e),void 0===i&&(i=e),ai.test(t)&&(t=parseFloat(t),t=$s(i.min,i.max,t/100)-i.min),"number"==typeof t){var s=$s(a.min,a.max,r);e===a&&(s-=t),e.min=Md(e.min,t,n,s,o),e.max=Md(e.max,t,n,s,o)}}(e,t[i],t[s],t[l],t.scale,r,o)}var Ad=["x","scaleX","originX"],Vd=["y","scaleY","originY"];function Id(e,t,n,r){Nd(e.x,t,Ad,null==n?void 0:n.x,null==r?void 0:r.x),Nd(e.y,t,Vd,null==n?void 0:n.y,null==r?void 0:r.y)}function Dd(e){return 0===e.translate&&1===e.scale}function jd(e){return Dd(e.x)&&Dd(e.y)}function _d(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}var Fd=function(){function e(){this.members=[]}return e.prototype.add=function(e){Mu(this.members,e),e.scheduleRender()},e.prototype.remove=function(e){if(Nu(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){var t=this.members[this.members.length-1];t&&this.promote(t)}},e.prototype.relegate=function(e){var t,n=this.members.findIndex((function(t){return e===t}));if(0===n)return!1;for(var r=n;r>=0;r--){var o=this.members[r];if(!1!==o.isPresent){t=o;break}}return!!t&&(this.promote(t),!0)},e.prototype.promote=function(e,t){var n,r=this.lead;e!==r&&(this.prevLead=r,this.lead=e,e.show(),r&&(r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues,e.snapshot.isShared=!0),(null===(n=e.root)||void 0===n?void 0:n.isUpdating)&&(e.isLayoutDirty=!0),!1===e.options.crossfade&&r.hide()))},e.prototype.exitAnimationComplete=function(){this.members.forEach((function(e){var t,n,r,o,a;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(a=null===(r=e.resumingFrom)||void 0===r?void 0:(o=r.options).onExitComplete)||void 0===a||a.call(o)}))},e.prototype.scheduleRender=function(){this.members.forEach((function(e){e.instance&&e.scheduleRender(!1)}))},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}(),Hd="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function Bd(e,t,n){var r=e.x.translate/t.x,o=e.y.translate/t.y,a="translate3d(".concat(r,"px, ").concat(o,"px, 0) ");if(a+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),n){var i=n.rotate,s=n.rotateX,l=n.rotateY;i&&(a+="rotate(".concat(i,"deg) ")),s&&(a+="rotateX(".concat(s,"deg) ")),l&&(a+="rotateY(".concat(l,"deg) "))}var u=e.x.scale*t.x,c=e.y.scale*t.y;return(a+="scale(".concat(u,", ").concat(c,")"))===Hd?"none":a}var Ud=function(e,t){return e.depth-t.depth},zd=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){Mu(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){Nu(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(Ud),this.isDirty=!1,this.children.forEach(e)},e}(),qd=1e3;function Zd(e){var t=e.attachResizeListener,n=e.defaultParent,r=e.measureScroll,o=e.checkIsScrollRoot,a=e.resetTransform;return function(){function e(e,t,r){var o=this;void 0===t&&(t={}),void 0===r&&(r=null==n?void 0:n()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){o.isUpdating&&(o.isUpdating=!1,o.clearAllSnapshots())},this.updateProjection=function(){o.nodes.forEach(Kd),o.nodes.forEach(Qd)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=t,this.root=r?r.root||r:this,this.path=r?Mo(Mo([],Ro(r.path),!1),[r],!1):[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(var a=0;a<this.path.length;a++)this.path[a].shouldResetTransform=!0;this.root===this&&(this.nodes=new zd)}return e.prototype.addEventListener=function(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Au),this.eventHandlers.get(e).add(t)},e.prototype.notifyListeners=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.eventHandlers.get(e);null==r||r.notify.apply(r,Mo([],Ro(t),!1))},e.prototype.hasListeners=function(e){return this.eventHandlers.has(e)},e.prototype.registerPotentialNode=function(e,t){this.potentialNodes.set(e,t)},e.prototype.mount=function(e,n){var r,o=this;if(void 0===n&&(n=!1),!this.instance){this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;var a=this.options,i=a.layoutId,s=a.layout,l=a.visualElement;if(l&&!l.getInstance()&&l.mount(e),this.root.nodes.add(this),null===(r=this.parent)||void 0===r||r.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),n&&(s||i)&&(this.isLayoutDirty=!0),t){var u,c=function(){return o.root.updateBlockedByResize=!1};t(e,(function(){o.root.updateBlockedByResize=!0,clearTimeout(u),u=window.setTimeout(c,250),Ra.hasAnimatedSinceResize&&(Ra.hasAnimatedSinceResize=!1,o.nodes.forEach(Jd))}))}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&l&&(i||s)&&this.addEventListener("didUpdate",(function(e){var t,n,r,a,i,s=e.delta,u=e.hasLayoutChanged,c=e.hasRelativeTargetChanged,d=e.layout;if(o.isTreeAnimationBlocked())return o.target=void 0,void(o.relativeTarget=void 0);var f=null!==(n=null!==(t=o.options.transition)&&void 0!==t?t:l.getDefaultTransition())&&void 0!==n?n:af,p=l.getProps(),m=p.onLayoutAnimationStart,h=p.onLayoutAnimationComplete,g=!o.targetLayout||!_d(o.targetLayout,d)||c,v=!u&&c;if((null===(r=o.resumeFrom)||void 0===r?void 0:r.instance)||v||u&&(g||!o.currentAnimation)){o.resumeFrom&&(o.resumingFrom=o.resumeFrom,o.resumingFrom.resumingFrom=void 0),o.setAnimationOrigin(s,v);var y=Po(Po({},Lu(f,"layout")),{onPlay:m,onComplete:h});l.shouldReduceMotion&&(y.delay=0,y.type=!1),o.startAnimation(y)}else u||0!==o.animationProgress||o.finishAnimation(),o.isLead()&&(null===(i=(a=o.options).onExitComplete)||void 0===i||i.call(a));o.targetLayout=d}))}},e.prototype.unmount=function(){var e,t;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(e=this.getStack())||void 0===e||e.remove(this),null===(t=this.parent)||void 0===t||t.children.delete(this),this.instance=void 0,zo.preRender(this.updateProjection)},e.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},e.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},e.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},e.prototype.isTreeAnimationBlocked=function(){var e;return this.isAnimationBlocked||(null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimationBlocked())||!1},e.prototype.startUpdate=function(){var e;this.isUpdateBlocked()||(this.isUpdating=!0,null===(e=this.nodes)||void 0===e||e.forEach(ef))},e.prototype.willUpdate=function(e){var t,n,r;if(void 0===e&&(e=!0),this.root.isUpdateBlocked())null===(n=(t=this.options).onExitComplete)||void 0===n||n.call(t);else if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var o=0;o<this.path.length;o++){var a=this.path[o];a.shouldResetTransform=!0,a.updateScroll()}var i=this.options,s=i.layoutId,l=i.layout;if(void 0!==s||l){var u=null===(r=this.options.visualElement)||void 0===r?void 0:r.getProps().transformTemplate;this.prevTransformTemplateValue=null==u?void 0:u(this.latestValues,""),this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}}},e.prototype.didUpdate=function(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Yd);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(sf),this.potentialNodes.clear()),this.nodes.forEach(Gd),this.nodes.forEach($d),this.nodes.forEach(Wd),this.clearAllSnapshots(),qo.update(),qo.preRender(),qo.render())},e.prototype.clearAllSnapshots=function(){this.nodes.forEach(Xd),this.sharedNodes.forEach(tf)},e.prototype.scheduleUpdateProjection=function(){Yo.preRender(this.updateProjection,!1,!0)},e.prototype.scheduleCheckAfterUnmount=function(){var e=this;Yo.postRender((function(){e.isLayoutDirty?e.root.didUpdate():e.root.checkUpdateFailed()}))},e.prototype.updateSnapshot=function(){if(!this.snapshot&&this.instance){var e=this.measure(),t=this.removeTransform(this.removeElementScroll(e));uf(t),this.snapshot={measured:e,layout:t,latestValues:{}}}},e.prototype.updateLayout=function(){var e;if(this.instance&&(this.updateScroll(),this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty)){if(this.resumeFrom&&!this.resumeFrom.instance)for(var t=0;t<this.path.length;t++)this.path[t].updateScroll();var n=this.measure();uf(n);var r=this.layout;this.layout={measured:n,actual:this.removeElementScroll(n)},this.layoutCorrected=Sc(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),null===(e=this.options.visualElement)||void 0===e||e.notifyLayoutMeasure(this.layout.actual,null==r?void 0:r.actual)}},e.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=o(this.instance),this.scroll=r(this.instance))},e.prototype.resetTransform=function(){var e;if(a){var t=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!jd(this.projectionDelta),r=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate,o=null==r?void 0:r(this.latestValues,""),i=o!==this.prevTransformTemplateValue;t&&(n||kc(this.latestValues)||i)&&(a(this.instance,o),this.shouldResetTransform=!1,this.scheduleRender())}},e.prototype.measure=function(){var e=this.options.visualElement;if(!e)return Sc();var t=e.measureViewportBox(),n=this.root.scroll;return n&&(Ic(t.x,n.x),Ic(t.y,n.y)),t},e.prototype.removeElementScroll=function(e){var t=Sc();Rd(t,e);for(var n=0;n<this.path.length;n++){var r=this.path[n],o=r.scroll,a=r.options,i=r.isScrollRoot;if(r!==this.root&&o&&a.layoutScroll){if(i){Rd(t,e);var s=this.root.scroll;s&&(Ic(t.x,-s.x),Ic(t.y,-s.y))}Ic(t.x,o.x),Ic(t.y,o.y)}}return t},e.prototype.applyTransform=function(e,t){void 0===t&&(t=!1);var n=Sc();Rd(n,e);for(var r=0;r<this.path.length;r++){var o=this.path[r];!t&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Fc(n,{x:-o.scroll.x,y:-o.scroll.y}),kc(o.latestValues)&&Fc(n,o.latestValues)}return kc(this.latestValues)&&Fc(n,this.latestValues),n},e.prototype.removeTransform=function(e){var t,n=Sc();Rd(n,e);for(var r=0;r<this.path.length;r++){var o=this.path[r];if(o.instance&&kc(o.latestValues)){Pc(o.latestValues)&&o.updateSnapshot();var a=Sc();Rd(a,o.measure()),Id(n,o.latestValues,null===(t=o.snapshot)||void 0===t?void 0:t.layout,a)}}return kc(this.latestValues)&&Id(n,this.latestValues),n},e.prototype.setTargetDelta=function(e){this.targetDelta=e,this.root.scheduleUpdateProjection()},e.prototype.setOptions=function(e){var t;this.options=Po(Po(Po({},this.options),e),{crossfade:null===(t=e.crossfade)||void 0===t||t})},e.prototype.clearMeasurements=function(){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},e.prototype.resolveTargetDelta=function(){var e,t,n,r,o=this.options,a=o.layout,i=o.layoutId;this.layout&&(a||i)&&(this.targetDelta||this.relativeTarget||(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget=Sc(),this.relativeTargetOrigin=Sc(),vc(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),Rd(this.relativeTarget,this.relativeTargetOrigin))),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target=Sc(),this.targetWithTransforms=Sc()),this.relativeTarget&&this.relativeTargetOrigin&&(null===(e=this.relativeParent)||void 0===e?void 0:e.target)?(t=this.target,n=this.relativeTarget,r=this.relativeParent.target,hc(t.x,n.x,r.x),hc(t.y,n.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):Rd(this.target,this.layout.actual),Vc(this.target,this.targetDelta)):Rd(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&Boolean(this.relativeParent.resumingFrom)===Boolean(this.resumingFrom)&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget=Sc(),this.relativeTargetOrigin=Sc(),vc(this.relativeTargetOrigin,this.target,this.relativeParent.target),Rd(this.relativeTarget,this.relativeTargetOrigin)))))},e.prototype.getClosestProjectingParent=function(){if(this.parent&&!kc(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},e.prototype.calcProjection=function(){var e,t=this.options,n=t.layout,r=t.layoutId;if(this.isTreeAnimating=Boolean((null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),this.layout&&(n||r)){var o=this.getLead();Rd(this.layoutCorrected,this.layout.actual),function(e,t,n,r){var o,a;void 0===r&&(r=!1);var i=n.length;if(i){var s,l;t.x=t.y=1;for(var u=0;u<i;u++)l=(s=n[u]).projectionDelta,"contents"!==(null===(a=null===(o=s.instance)||void 0===o?void 0:o.style)||void 0===a?void 0:a.display)&&(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Fc(e,{x:-s.scroll.x,y:-s.scroll.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,Vc(e,l)),r&&kc(s.latestValues)&&Fc(e,s.latestValues))}}(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==o);var a=o.target;if(a){this.projectionDelta||(this.projectionDelta=Cc(),this.projectionDeltaWithTransform=Cc());var i=this.treeScale.x,s=this.treeScale.y,l=this.projectionTransform;mc(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.projectionTransform=Bd(this.projectionDelta,this.treeScale),this.projectionTransform===l&&this.treeScale.x===i&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a))}}},e.prototype.hide=function(){this.isVisible=!1},e.prototype.show=function(){this.isVisible=!0},e.prototype.scheduleRender=function(e){var t,n,r;void 0===e&&(e=!0),null===(n=(t=this.options).scheduleRender)||void 0===n||n.call(t),e&&(null===(r=this.getStack())||void 0===r||r.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},e.prototype.setAnimationOrigin=function(e,t){var n,r=this;void 0===t&&(t=!1);var o=this.snapshot,a=(null==o?void 0:o.latestValues)||{},i=Po({},this.latestValues),s=Cc();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!t;var l=Sc(),u=null==o?void 0:o.isShared,c=((null===(n=this.getStack())||void 0===n?void 0:n.members.length)||0)<=1,d=Boolean(u&&!c&&!0===this.options.crossfade&&!this.path.some(of));this.animationProgress=0,this.mixTargetDelta=function(t){var n,o=t/1e3;nf(s.x,e.x,o),nf(s.y,e.y,o),r.setTargetDelta(s),r.relativeTarget&&r.relativeTargetOrigin&&r.layout&&(null===(n=r.relativeParent)||void 0===n?void 0:n.layout)&&(vc(l,r.layout.actual,r.relativeParent.layout.actual),function(e,t,n,r){rf(e.x,t.x,n.x,r),rf(e.y,t.y,n.y,r)}(r.relativeTarget,r.relativeTargetOrigin,l,o)),u&&(r.animationValues=i,function(e,t,n,r,o,a){var i,s,l,u;o?(e.opacity=$s(0,null!==(i=n.opacity)&&void 0!==i?i:1,Td(r)),e.opacityExit=$s(null!==(s=t.opacity)&&void 0!==s?s:1,0,Ld(r))):a&&(e.opacity=$s(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(u=n.opacity)&&void 0!==u?u:1,r));for(var c=0;c<Ed;c++){var d="border".concat(xd[c],"Radius"),f=Od(t,d),p=Od(n,d);void 0===f&&void 0===p||(f||(f=0),p||(p=0),0===f||0===p||Sd(f)===Sd(p)?(e[d]=Math.max($s(Cd(f),Cd(p),r),0),(ai.test(p)||ai.test(f))&&(e[d]+="%")):e[d]=p)}(t.rotate||n.rotate)&&(e.rotate=$s(t.rotate||0,n.rotate||0,r))}(i,a,r.latestValues,o,d,c)),r.root.scheduleUpdateProjection(),r.scheduleRender(),r.animationProgress=o},this.mixTargetDelta(0)},e.prototype.startAnimation=function(e){var t,n,r=this;this.notifyListeners("animationStart"),null===(t=this.currentAnimation)||void 0===t||t.stop(),this.resumingFrom&&(null===(n=this.resumingFrom.currentAnimation)||void 0===n||n.stop()),this.pendingAnimation&&(zo.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Yo.update((function(){Ra.hasAnimatedSinceResize=!0,r.currentAnimation=function(e,t,n){void 0===n&&(n={});var r=Wa(0)?0:Du(0);return Pu("",r,t,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}(0,qd,Po(Po({},e),{onUpdate:function(t){var n;r.mixTargetDelta(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:function(){var t;null===(t=e.onComplete)||void 0===t||t.call(e),r.completeAnimation()}})),r.resumingFrom&&(r.resumingFrom.currentAnimation=r.currentAnimation),r.pendingAnimation=void 0}))},e.prototype.completeAnimation=function(){var e;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(e=this.getStack())||void 0===e||e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},e.prototype.finishAnimation=function(){var e;this.currentAnimation&&(null===(e=this.mixTargetDelta)||void 0===e||e.call(this,qd),this.currentAnimation.stop()),this.completeAnimation()},e.prototype.applyTransformsToTarget=function(){var e=this.getLead(),t=e.targetWithTransforms,n=e.target,r=e.layout,o=e.latestValues;t&&n&&r&&(Rd(t,n),Fc(t,o),mc(this.projectionDeltaWithTransform,this.layoutCorrected,t,o))},e.prototype.registerSharedNode=function(e,t){var n,r,o;this.sharedNodes.has(e)||this.sharedNodes.set(e,new Fd),this.sharedNodes.get(e).add(t),t.promote({transition:null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(o=null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.shouldPreserveFollowOpacity)||void 0===o?void 0:o.call(r,t)})},e.prototype.isLead=function(){var e=this.getStack();return!e||e.lead===this},e.prototype.getLead=function(){var e;return this.options.layoutId&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this},e.prototype.getPrevLead=function(){var e;return this.options.layoutId?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0},e.prototype.getStack=function(){var e=this.options.layoutId;if(e)return this.root.sharedNodes.get(e)},e.prototype.promote=function(e){var t=void 0===e?{}:e,n=t.needsReset,r=t.transition,o=t.preserveFollowOpacity,a=this.getStack();a&&a.promote(this,o),n&&(this.projectionDelta=void 0,this.needsReset=!0),r&&this.setOptions({transition:r})},e.prototype.relegate=function(){var e=this.getStack();return!!e&&e.relegate(this)},e.prototype.resetRotation=function(){var e=this.options.visualElement;if(e){for(var t=!1,n={},r=0;r<Fa.length;r++){var o="rotate"+Fa[r];e.getStaticValue(o)&&(t=!0,n[o]=e.getStaticValue(o),e.setStaticValue(o,0))}if(t){for(var o in null==e||e.syncRender(),n)e.setStaticValue(o,n[o]);e.scheduleRender()}}},e.prototype.getProjectionStyles=function(e){var t,n,r,o,a,i;void 0===e&&(e={});var s={};if(!this.instance||this.isSVG)return s;if(!this.isVisible)return{visibility:"hidden"};s.visibility="";var l=null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=Bi(e.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none",s;var u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){var c={};return this.options.layoutId&&(c.opacity=null!==(n=this.latestValues.opacity)&&void 0!==n?n:1,c.pointerEvents=Bi(e.pointerEvents)||""),this.hasProjected&&!kc(this.latestValues)&&(c.transform=l?l({},""):"none",this.hasProjected=!1),c}var d=u.animationValues||u.latestValues;this.applyTransformsToTarget(),s.transform=Bd(this.projectionDeltaWithTransform,this.treeScale,d),l&&(s.transform=l(d,s.transform));var f=this.projectionDelta,p=f.x,m=f.y;for(var h in s.transformOrigin="".concat(100*p.origin,"% ").concat(100*m.origin,"% 0"),u.animationValues?s.opacity=u===this?null!==(o=null!==(r=d.opacity)&&void 0!==r?r:this.latestValues.opacity)&&void 0!==o?o:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:s.opacity=u===this?null!==(a=d.opacity)&&void 0!==a?a:"":null!==(i=d.opacityExit)&&void 0!==i?i:0,_a)if(void 0!==d[h]){var g=_a[h],v=g.correct,y=g.applyTo,b=v(d[h],u);if(y)for(var w=y.length,x=0;x<w;x++)s[y[x]]=b;else s[h]=b}return this.options.layoutId&&(s.pointerEvents=u===this?Bi(e.pointerEvents)||"":"none"),s},e.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0},e.prototype.resetTree=function(){this.root.nodes.forEach((function(e){var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(Yd),this.root.sharedNodes.clear()},e}()}function $d(e){e.updateLayout()}function Wd(e){var t,n,r,o,a=null!==(n=null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)&&void 0!==n?n:e.snapshot;if(e.isLead()&&e.layout&&a&&e.hasListeners("didUpdate")){var i=e.layout,s=i.actual,l=i.measured;"size"===e.options.animationType?Oc((function(e){var t=a.isShared?a.measured[e]:a.layout[e],n=dc(t);t.min=s[e].min,t.max=t.min+n})):"position"===e.options.animationType&&Oc((function(e){var t=a.isShared?a.measured[e]:a.layout[e],n=dc(s[e]);t.max=t.min+n}));var u=Cc();mc(u,s,a.layout);var c=Cc();a.isShared?mc(c,e.applyTransform(l,!0),a.measured):mc(c,s,a.layout);var d=!jd(u),f=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var p=e.relativeParent,m=p.snapshot,h=p.layout;if(m&&h){var g=Sc();vc(g,a.layout,m.layout);var v=Sc();vc(v,s,h.actual),_d(g,v)||(f=!0)}}e.notifyListeners("didUpdate",{layout:s,snapshot:a,delta:c,layoutDelta:u,hasLayoutChanged:d,hasRelativeTargetChanged:f})}else e.isLead()&&(null===(o=(r=e.options).onExitComplete)||void 0===o||o.call(r));e.options.transition=void 0}function Xd(e){e.clearSnapshot()}function Yd(e){e.clearMeasurements()}function Gd(e){var t=e.options.visualElement;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function Jd(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function Kd(e){e.resolveTargetDelta()}function Qd(e){e.calcProjection()}function ef(e){e.resetRotation()}function tf(e){e.removeLeadSnapshot()}function nf(e,t,n){e.translate=$s(t.translate,0,n),e.scale=$s(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function rf(e,t,n,r){e.min=$s(t.min,n.min,r),e.max=$s(t.max,n.max,r)}function of(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}var af={duration:.45,ease:[.4,0,.1,1]};function sf(e,t){for(var n=e.root,r=e.path.length-1;r>=0;r--)if(Boolean(e.path[r].instance)){n=e.path[r];break}var o=(n&&n!==e.root?n.instance:document).querySelector('[data-projection-id="'.concat(t,'"]'));o&&e.mount(o,!0)}function lf(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function uf(e){lf(e.x),lf(e.y)}var cf=Zd({attachResizeListener:function(e,t){return Xi(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),df={current:void 0},ff=Zd({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!df.current){var e=new cf(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),df.current=e}return df.current},resetTransform:function(e,t){e.style.transform=null!=t?t:"none"},checkIsScrollRoot:function(e){return Boolean("fixed"===window.getComputedStyle(e).position)}}),pf=Po(Po(Po(Po({},Qu),ks),qc),wd),mf=Ia((function(e,t){return function(e,t,n,r,o){var a=t.forwardMotionProps,i=void 0!==a&&a,s=ja(e)?$i:Wi;return Po(Po({},s),{preloadedFeatures:n,useRender:ki(i),createVisualElement:r,projectionNodeConstructor:o,Component:e})}(e,t,pf,pd,ff)})),hf=window.wp.blockEditor,gf=window.wp.blocks;const vf=()=>{const t=(0,e.useRef)(!1);return(0,e.useEffect)((()=>(t.current=!0,()=>t.current=!1))),t},yf=async e=>{if(!e)return"{}";const t=await ur(JSON.stringify(e));if(!t?.styles)throw new Error("Invalid theme json");return{data:t.styles}},bf=t=>{var n;let{style:r,onSelect:o}=t;const{siteType:a}=Fr(),i=vf(),[s,l]=(0,e.useState)(""),[u,c]=(0,e.useState)(!1),[d,f]=(0,e.useState)(0),[p,m]=(0,e.useState)(null),[h,g]=(0,e.useState)(!1),v=(0,e.useRef)(null),y=(0,e.useRef)(null),b=(0,e.useRef)(null),w=r?.variation,{data:x}=po(h&&w?w:null,yf),E=w?.settings?.color?.palette?.theme,C=(0,e.useMemo)((()=>(0,gf.rawHandler)({HTML:Sr(s)})),[s]),S=(0,e.useMemo)((()=>x?(0,hf.transformStyles)([{css:x}],".editor-styles-wrapper"):null),[x]);return(0,e.useEffect)((()=>{if(p||!h)return;const e=setTimeout((()=>{const e=v.current?.querySelector("iframe[title]");if(!e)return f((e=>e+1));m(e)}),100);return()=>clearTimeout(e)}),[p,h,d]),(0,e.useEffect)((()=>{if(!x||!r?.code)return;const e=[r?.headerCode,r?.code,r?.footerCode].filter(Boolean).join("").replace(/<!-- wp:navigation[.\S\s]*?\/wp:navigation -->/g,'\x3c!-- wp:paragraph {"className":"tmp-nav"} --\x3e<p class="tmp-nav">Home | About | Contact</p >\x3c!-- /wp:paragraph --\x3e').replace(/<!-- wp:navigation.*\/-->/g,'\x3c!-- wp:paragraph {"className":"tmp-nav"} --\x3e<p class="tmp-nav">Home | About | Contact</p >\x3c!-- /wp:paragraph --\x3e').replace(/<!-- wp:site-logo.*\/-->/g,'\x3c!-- wp:paragraph {"className":"custom-logo"} --\x3e<img class="custom-logo" style="height: 40px;" src="https://assets.extendify.com/demo-content/logos/extendify-demo-logo.png">\x3c!-- /wp:paragraph --\x3e');l(e)}),[a?.slug,x,r]),(0,e.useEffect)((()=>{if(!C?.length||!p)return;let e,t;const n=()=>{const n=p.contentDocument;n?.querySelector("[href*=load-styles]")?.remove();const r=`<style id="ext-tj">${S}\n.wp-block-cover {\n    min-height: 100% !important;\n    height: calc(100vh - 0px);\n    max-height: 905px;\n}\n</style>`;n?.getElementById("ext-tj")||n?.head?.insertAdjacentHTML("beforeend",r),t=setTimeout((()=>i.current&&c(!0)),100),clearTimeout(e)};return p.addEventListener("load",n),e=setTimeout(n,2e3),()=>{p?.removeEventListener("load",n),[t].forEach((e=>clearTimeout(e)))}}),[C,S,i,h,p]),(0,e.useEffect)((()=>{if(!b.current)return b.current=new IntersectionObserver((e=>{e[0].isIntersecting&&g(!0)})),b.current.observe(y.current),()=>b.current.disconnect()}),[]),(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{"data-test":"layout-preview",className:"w-full h-full relative overflow-hidden",ref:y,role:o?"button":void 0,tabIndex:o?0:void 0,"aria-label":o?(0,ee.__)("Press to select","extendify"):void 0,onKeyDown:e=>{["Enter","Space"," "].includes(e.key)&&o&&o({...r,variation:w})},onClick:o?()=>o({...r,variation:w}):()=>{}},h?(0,e.createElement)(mf.div,{ref:v,className:"absolute inset-0 z-20",initial:{opacity:0},animate:{opacity:u?1:0}},(0,e.createElement)(hf.BlockPreview,{blocks:C,viewportWidth:1400})):null,(0,e.createElement)(ua,null,u||(0,e.createElement)(mf.div,{initial:{opacity:.7},animate:{opacity:1},exit:{opacity:0},transition:{duration:.5},className:"absolute inset-0 z-30",style:{backgroundColor:vt(null!==(n=E?.find((e=>{let{slug:t}=e;return"primary"===t}))?.color)&&void 0!==n?n:"#ccc").alpha(.25).toRgbString(),backgroundImage:"linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0) 100%)",backgroundSize:"600% 600%",animation:"extendify-loading-skeleton 10s ease-in-out infinite"}}))))},wf=t=>{let{children:n,includeNav:r=!0}=t;return(0,e.createElement)("div",{className:"md:h-screen md:overflow-y-scroll"},r?(0,e.createElement)("div",{className:"pt-12 xl:pt-16 pb-4 sticky top-0 bg-white z-50 w-full px-8 xl:px-12 max-w-screen-xl mx-auto"},(0,e.createElement)(ho,null)):null,(0,e.createElement)("div",{className:"mt-8 mb-8 xl:mb-12 flex justify-center max-w-screen-xl mx-auto px-8 xl:px-12"},n))},xf=e=>xr(e),Ef=e=>{var t,n,r;return{key:"site-layout",siteType:null!==(n=(e=null!==(t=e)&&void 0!==t?t:Fr?.getState().siteType)?.slug)&&void 0!==n?n:"default",styles:null!==(r=e?.styles)&&void 0!==r?r:[]}},Cf=yo("Layout",((e,t)=>({title:(0,ee.__)("Layout","extendify"),default:void 0,showInSidebar:!0,ready:!1,isDefault:()=>Fr.getState().style?.slug===t().default?.slug})));var Sf=n(767),Of=n.n(Sf);const Tf=o.createContext({}),Lf=!0;function Pf({baseColor:e,highlightColor:t,width:n,height:r,borderRadius:o,circle:a,direction:i,duration:s,enableAnimation:l=Lf}){const u={};return"rtl"===i&&(u["--animation-direction"]="reverse"),"number"==typeof s&&(u["--animation-duration"]=`${s}s`),l||(u["--pseudo-element-display"]="none"),"string"!=typeof n&&"number"!=typeof n||(u.width=n),"string"!=typeof r&&"number"!=typeof r||(u.height=r),"string"!=typeof o&&"number"!=typeof o||(u.borderRadius=o),a&&(u.borderRadius="50%"),void 0!==e&&(u["--base-color"]=e),void 0!==t&&(u["--highlight-color"]=t),u}function kf({count:e=1,wrapper:t,className:n,containerClassName:r,containerTestId:a,circle:i=!1,style:s,...l}){var u,c,d;const f=o.useContext(Tf),p={...l};for(const[e,t]of Object.entries(l))void 0===t&&delete p[e];const m={...f,...p,circle:i},h={...s,...Pf(m)};let g="react-loading-skeleton";n&&(g+=` ${n}`);const v=null!==(u=m.inline)&&void 0!==u&&u,y=[],b=Math.ceil(e);for(let t=0;t<b;t++){let n=h;if(b>e&&t===b-1){const t=null!==(c=n.width)&&void 0!==c?c:"100%",r=e%1,o="number"==typeof t?t*r:`calc(${t} * ${r})`;n={...n,width:o}}const r=o.createElement("span",{className:g,style:n,key:t},"‌");v?y.push(r):y.push(o.createElement(o.Fragment,{key:t},r,o.createElement("br",null)))}return o.createElement("span",{className:r,"data-testid":a,"aria-live":"polite","aria-busy":null!==(d=m.enableAnimation)&&void 0!==d?d:Lf},t?y.map(((e,n)=>o.createElement(t,{key:n},e))):y)}function Rf({children:e,...t}){return o.createElement(Tf.Provider,{value:t},e)}const Mf=t=>{var n,r;let{theme:o,context:a}=t;const[i,s]=(0,e.useState)(),l=null!==(n=o?.color)&&void 0!==n?n:"#000000",u=null!==(r=o?.bgColor)&&void 0!==r?r:"#cccccc";return(0,e.useEffect)((()=>{const e=requestAnimationFrame((()=>{if(!o?.color)return;const e=Of()(l).isLight()?Vf(Of()(l),.15).hexa():Af(Of()(l),.15).hexa();s(e)}));return()=>cancelAnimationFrame(e)}),[l,u,o?.color]),(0,e.createElement)("div",{className:co()({"group w-full overflow-hidden relative min-h-full button-focus button-card":"style"===a})},(0,e.createElement)(qe,{appear:!0,show:!i,leave:"transition-opacity duration-1000",leaveFrom:"opacity-100",leaveTo:"opacity-0",className:"absolute inset-0 z-10 bg-white"},(0,e.createElement)("div",{className:co()({"m-2 p-2 pt-1":"style"===a,"p-2":"style"!==a})},(0,e.createElement)(Nf,{highlightColor:"hsl(0deg 0% 75%)",color:"hsl(0deg 0% 80%)"}))),Boolean(i)&&(0,e.createElement)("div",{className:"overflow-hidden absolute inset-0 opacity-30",style:{zIndex:-1}},(0,e.createElement)("div",{className:co()({"m-2 p-2 pt-1":"style"===a,"p-2":"style"!==a}),style:{backgroundColor:u,textAlign:"initial"}},(0,e.createElement)(Nf,{highlightColor:i,color:l}))))},Nf=t=>{let{color:n,highlightColor:r}=t;return(0,e.createElement)(Rf,{duration:2.3,baseColor:n,highlightColor:r},(0,e.createElement)(kf,{className:"h-36 mb-5 rounded-none"}),(0,e.createElement)("div",{className:"flex flex-col items-center"},(0,e.createElement)("div",null,(0,e.createElement)(kf,{className:"w-28 h-4 mb-1 rounded-none"})),(0,e.createElement)("div",null,(0,e.createElement)(kf,{className:"w-44 h-4 mb-1 rounded-none"})),(0,e.createElement)("div",null,(0,e.createElement)(kf,{className:"w-12 h-6 mb-1 rounded-none"}))),(0,e.createElement)("div",{className:"px-4"},(0,e.createElement)(kf,{className:"h-24 my-5 rounded-none"}),(0,e.createElement)("div",{className:"flex justify-between gap-4"},(0,e.createElement)("div",null,(0,e.createElement)("div",null,(0,e.createElement)(kf,{className:"w-40 h-4 mb-1 rounded-none"})),(0,e.createElement)("div",null,(0,e.createElement)(kf,{className:"w-40 h-4 mb-1 rounded-none"})),(0,e.createElement)("div",null,(0,e.createElement)(kf,{className:"w-40 h-4 mb-1 rounded-none"}))),(0,e.createElement)("div",null,(0,e.createElement)("div",null,(0,e.createElement)(kf,{className:"w-24 h-4 mb-1 rounded-none"})),(0,e.createElement)("div",null,(0,e.createElement)(kf,{className:"w-24 h-4 mb-1 rounded-none"}))))))},Af=(e,t)=>{const n=e.lightness();return e.lightness(n+(100-n)*t)},Vf=(e,t)=>{const n=e.lightness();return e.lightness(n-n*t)},If=async e=>{if(!e)return"{}";const t=await ur(JSON.stringify(e));if(!t?.styles)throw new Error("Invalid theme json");return{data:t.styles}},Df=t=>{let{style:n,onSelect:r,blockHeight:o,context:a,active:i=!1,onHover:s=null}=t;const{siteType:l}=Fr(),u=vf(),[c,d]=(0,e.useState)(""),[f,p]=(0,e.useState)(!1),[m,h]=(0,e.useState)(0),[g,v]=(0,e.useState)(null),[y,b]=(0,e.useState)(!1),[w,x]=(0,e.useState)(null),E=(0,e.useRef)(null),C=(0,e.useRef)(null),S=(0,e.useRef)(null),O=(0,e.useRef)(null),T=(0,e.useRef)(!1),L=n?.variation,{data:P}=po(y&&L?L:null,If),k=L?.settings?.color?.palette?.theme,R=(0,e.useMemo)((()=>(0,gf.rawHandler)({HTML:Sr(c)})),[c]),M=(0,e.useMemo)((()=>P?(0,hf.transformStyles)([{css:P}],".editor-styles-wrapper"):null),[P]);return(0,e.useEffect)((()=>{if(g||!y)return;const e=setTimeout((()=>{const e=E.current?.querySelector("iframe[title]");if(!e)return h((e=>e+1));v(e)}),100);return()=>clearTimeout(e)}),[g,y,m]),(0,e.useLayoutEffect)((()=>{var e;if(!y||!a.measure)return;const t=`${a.type}-${a.detail}`;if(!f&&!T.current)return T.current=0,void(O.current=performance.now());let n;try{n=performance.measure(t,{start:O.current,detail:{context:a,extendify:!0}})}catch(e){console.error(e)}var r;T.current=null!==(e=n?.duration)&&void 0!==e?e:0,new URLSearchParams(window.location.search)?.has("performance")&&T.current&&console.info(`🚀 ${r=a.type,r.charAt(0).toUpperCase()+r.slice(1).toLowerCase()} (${a.detail}) in ${T.current.toFixed()}ms`)}),[f,a,y]),(0,e.useEffect)((()=>{if(!P||!n?.code)return;const e=[n?.headerCode,n?.code,n?.footerCode].filter(Boolean).join("").replace(/<!-- wp:navigation[.\S\s]*?\/wp:navigation -->/g,'\x3c!-- wp:paragraph {"className":"tmp-nav"} --\x3e<p class="tmp-nav">Home | About | Contact</p >\x3c!-- /wp:paragraph --\x3e').replace(/<!-- wp:navigation.*\/-->/g,'\x3c!-- wp:paragraph {"className":"tmp-nav"} --\x3e<p class="tmp-nav">Home | About | Contact</p >\x3c!-- /wp:paragraph --\x3e').replace(/<!-- wp:site-logo.*\/-->/g,'\x3c!-- wp:paragraph {"className":"custom-logo"} --\x3e<img class="custom-logo" style="height: 40px;" src="https://assets.extendify.com/demo-content/logos/extendify-demo-logo.png">\x3c!-- /wp:paragraph --\x3e');d(e)}),[l?.slug,P,n]),(0,e.useEffect)((()=>{if(!g||!f)return;let e,t;const n=E.current,r=n.offsetWidth/1400,a=g.contentDocument,{body:i}=a;i?.style&&(i.style.transitionProperty="all",i.style.top=0),a?.querySelector("[href*=load-styles]")?.remove();const s=()=>{var t;if(!i?.offsetHeight)return;const n=(null!==(t=C?.current?.offsetHeight)&&void 0!==t?t:o)-32,a=i.getBoundingClientRect().height-n/r;i.style.transitionDuration=Math.max(2*a,3e3)+"ms",e=window.requestAnimationFrame((()=>{i.style.top=-1*Math.max(0,a)+"px"}))},l=()=>{var e;if(!i?.offsetHeight)return;const n=(null!==(e=C?.current?.offsetHeight)&&void 0!==e?e:o)-32,a=i.offsetHeight-n/r;i.style.transitionDuration=a+"ms",t=window.requestAnimationFrame((()=>{i.style.top=0}))};return n.addEventListener("focus",s),n.addEventListener("mouseenter",s),n.addEventListener("blur",l),n.addEventListener("mouseleave",l),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(t),n.removeEventListener("focus",s),n.removeEventListener("mouseenter",s),n.removeEventListener("blur",l),n.removeEventListener("mouseleave",l)}}),[o,f,g]),(0,e.useEffect)((()=>{if(!R?.length||!g)return;let e,t;const n=()=>{const n=g.contentDocument,r=`<style id="ext-tj">${M}</style>`;n?.getElementById("ext-tj")||n?.head?.insertAdjacentHTML("beforeend",r),t=setTimeout((()=>u.current&&p(!0)),100),clearTimeout(e)};return g.addEventListener("load",n),e=setTimeout(n,2e3),()=>{g?.removeEventListener("load",n),[t].forEach((e=>clearTimeout(e)))}}),[R,M,u,y,g]),(0,e.useEffect)((()=>{if(!S.current)return S.current=new IntersectionObserver((e=>{e[0].isIntersecting&&b(!0)})),S.current.observe(C.current),()=>S.current.disconnect()}),[]),(0,e.createElement)(e.Fragment,null,f&&c?null:(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"absolute inset-0 z-20 flex items-center justify-center"},(0,e.createElement)(Mf,{context:"style",theme:{color:k?.find((e=>"foreground"===e.slug))?.color,bgColor:k?.find((e=>"background"===e.slug))?.color}}))),(0,e.createElement)("div",{"data-test":"layout-preview",ref:C,role:r?"button":void 0,tabIndex:r?0:void 0,"aria-label":r?(0,ee.__)("Press to select","extendify"):void 0,className:co()("group w-full overflow-hidden bg-transparent z-10",{"relative min-h-full":f,"absolute opacity-0":!f,"button-focus button-card p-2":r,"ring-partner-primary-bg ring-offset-2 ring-offset-white ring-wp":i}),onKeyDown:e=>{["Enter","Space"," "].includes(e.key)&&r&&r({...n,variation:L})},onMouseEnter:()=>{s&&x(s)},onMouseLeave:()=>{w&&(w(),x(null))},onClick:r?()=>r({...n,variation:L}):()=>{}},(0,e.createElement)("div",{ref:E,className:"relative rounded-lg"},y?(0,e.createElement)(hf.BlockPreview,{blocks:R,viewportWidth:1400,live:!1}):null)))},jf=e=>Er(e),_f=t=>{let{page:n,blockHeight:r,required:o=!1,displayOnly:a=!1,title:i=""}=t;const{siteType:s,style:l,toggle:u,has:c}=Fr(),d="home"===n?.slug,{data:f}=po({siteType:s.slug,layoutType:n.slug,baseLayout:d?s.slug.startsWith("blog")?l?.blogBaseLayout:l?.homeBaseLayout:null,kit:"home"!==n.slug?l?.kit:null},jf);return a?(0,e.createElement)("div",{className:"text-base p-2 bg-transparent overflow-hidden rounded-lg border border-gray-100",style:{height:r}},i&&(0,e.createElement)("div",{className:"p-3 pb-0 bg-white text-left"},i),(0,e.createElement)(Ff,{key:l?.recordId,page:n,measure:!1,blockHeight:r,style:{...l,code:Cr({template:f})}})):(0,e.createElement)("div",{"data-test":"page-preview",role:"button",tabIndex:0,"aria-label":(0,ee.__)("Press to select","extendify"),disabled:o,className:"text-base p-0 bg-transparent overflow-hidden rounded-lg border border-gray-100 button-focus",onClick:()=>o||u("pages",n),title:o&&i?(0,ee.sprintf)(
// translators: %s is the name of a page (e.g. Home, Blog, About)
(0,ee.__)("%s page is required","extendify"),i):(0,ee.sprintf)(
// translators: %s is the name of a page (e.g. Home, Blog, About)
(0,ee.__)("Toggle %s page","extendify"),i),onKeyDown:e=>{["Enter","Space"," "].includes(e.key)&&(o||u("pages",n))}},(0,e.createElement)("div",{className:"border-gray-100 border-b-0 min-w-sm z-30 relative bg-white pt-3 px-3 pb-1.5 flex justify-between items-center"},i&&(0,e.createElement)("div",{className:co()("flex items-center",{"text-gray-700":!c("pages",n)})},(0,e.createElement)("span",{className:"text-left"},i),o&&(0,e.createElement)("span",{className:"w-4 h-4 text-base leading-none pl-2 mr-6 dashicons dashicons-lock"})),c("pages",n)?(0,e.createElement)("div",{className:co()("w-5 h-5 rounded-sm",{"bg-gray-700":o,"bg-partner-primary-bg":!o})},(0,e.createElement)(Ur,{className:"text-white w-5"})):(0,e.createElement)("div",{className:co()("border w-5 h-5 rounded-sm",{"border-gray-700":o,"border-partner-primary-bg":!o})})),(0,e.createElement)("div",{className:"p-2 relative",style:{height:r-44}},(0,e.createElement)(Ff,{key:l?.recordId,page:n,blockHeight:r,style:{...l,code:Cr({template:f})}})))},Ff=t=>{let{page:n,style:r,measure:o=!0,blockHeight:a=!1}=t;const i=(0,e.useMemo)((()=>({type:"page",detail:n.slug,measure:o})),[n,o]);return(0,e.createElement)(Df,{style:r,context:i,blockHeight:a})},Hf=async()=>{var e;const t=null!==(e=(await ar.get("onboarding/layout-types"))?.data)&&void 0!==e?e:[];if(!t?.length)throw new Error("Error fetching pages");const n=t[0],r=t.slice(1)?.sort(((e,t)=>e.title>t.title?1:-1));return{data:[n,...null!=r?r:[]]}},Bf=()=>({key:"layout-types"}),Uf=yo("Pages",((e,t)=>({title:(0,ee.__)("Pages","extendify"),default:void 0,showInSidebar:!0,ready:!1,isDefault:()=>Fr.getState().pages?.length===t().default?.length}))),zf=t=>{let{label:n,slug:r,description:o,checked:a,onChange:i}=t;return(0,e.createElement)("label",{className:"flex items-baseline hover:text-partner-primary-bg focus-within:text-partner-primary-bg",htmlFor:r},(0,e.createElement)("span",{className:"w-5 h-5 relative inline-block mr-3 align-middle"},(0,e.createElement)("input",{id:r,className:"h-5 w-5 rounded-sm m-0",type:"checkbox",onChange:i,defaultChecked:a}),(0,e.createElement)("svg",{className:"absolute block h-5 inset-0 w-5 text-white",viewBox:"1 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation"},(0,e.createElement)("path",{d:"M8.72912 13.7449L5.77536 10.7911L4.76953 11.7899L8.72912 15.7495L17.2291 7.24948L16.2304 6.25073L8.72912 13.7449Z",fill:"currentColor"}))),(0,e.createElement)("span",null,(0,e.createElement)("span",{className:"text-base"},n),o?(0,e.createElement)("span",{className:"block pt-1"},o):(0,e.createElement)("span",null)))},qf=()=>ar.get("onboarding/suggested-plugins"),Zf=()=>({key:"plugins"}),$f=()=>{const{data:t}=po(Zf,qf),{goals:n,add:r,toggle:o,remove:a}=Fr(),i=(0,e.useMemo)((()=>!n?.length||!n?.find((e=>t?.some((t=>t?.goals?.includes(e?.slug)))))),[n,t]),s=(0,e.useCallback)((e=>{if(i)return!0;const t=n.map((e=>e.slug));return e?.goals.find((e=>t.includes(e)))}),[n,i]);return(0,e.useEffect)((()=>{t?.forEach((e=>a("plugins",e))),i||t?.filter(s)?.forEach((e=>r("plugins",e)))}),[t,r,i,s,a]),(0,e.createElement)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4"},t?.filter(s)?.map((t=>(0,e.createElement)("div",{key:t.id},(0,e.createElement)(zf,{label:t.name,slug:t.wordpressSlug,description:t.description,checked:!i,onChange:()=>o("plugins",t)})))))},Wf=yo("Site Summary",(()=>({title:(0,ee.__)("Summary","extendify"),default:void 0,showInSidebar:!0,ready:!1,isDefault:()=>!0})));function Xf(e,t){let[n,r]=(0,o.useState)(e),a=xe(e);return be((()=>r(a.current)),[a,r,...t]),n}var Yf;let Gf=null!=(Yf=o.useId)?Yf:function(){let e=Ee(),[t,n]=o.useState(e?()=>ye.nextId():null);return be((()=>{null===t&&n(ye.nextId())}),[t]),null!=t?""+t:void 0};function Jf(e){return ye.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let Kf=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var Qf=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Qf||{}),ep=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(ep||{}),tp=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(tp||{}),np=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(np||{});function rp(e,t,n){let r=xe(t);(0,o.useEffect)((()=>{function t(e){r.current(e)}return document.addEventListener(e,t,n),()=>document.removeEventListener(e,t,n)}),[e,n])}function op(e){var t;if(e.type)return e.type;let n=null!=(t=e.as)?t:"button";return"string"==typeof n&&"button"===n.toLowerCase()?"button":void 0}function ap(e,t){let[n,r]=(0,o.useState)((()=>op(e)));return be((()=>{r(op(e))}),[e.type,e.as]),be((()=>{n||!t.current||t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")}),[n,t]),n}["textarea","input"].join(",");var ip=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(ip||{});function sp(e={},t=null,n=[]){for(let[r,o]of Object.entries(e))up(n,lp(t,r),o);return n}function lp(e,t){return e?e+"["+t+"]":t}function up(e,t,n){if(Array.isArray(n))for(let[r,o]of n.entries())up(e,lp(t,r.toString()),o);else n instanceof Date?e.push([t,n.toISOString()]):"boolean"==typeof n?e.push([t,n?"1":"0"]):"string"==typeof n?e.push([t,n]):"number"==typeof n?e.push([t,`${n}`]):null==n?e.push([t,""]):sp(n,t,e)}var cp=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(cp||{});let dp=ue((function(e,t){let{features:n=1,...r}=e;return ie({ourProps:{ref:t,"aria-hidden":2==(2&n)||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...4==(4&n)&&2!=(2&n)&&{display:"none"}}},theirProps:r,slot:{},defaultTag:"div",name:"Hidden"})}));var fp=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(fp||{});function pp(e,t){let n=(0,o.useRef)([]),r=Ce(e);(0,o.useEffect)((()=>{let e=[...n.current];for(let[o,a]of t.entries())if(n.current[o]!==a){let o=r(t,e);return n.current=t,o}}),[r,...t])}function mp(e){return[e.screenX,e.screenY]}var hp=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(hp||{}),gp=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(gp||{}),vp=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(vp||{}),yp=(e=>(e[e.OpenCombobox=0]="OpenCombobox",e[e.CloseCombobox=1]="CloseCombobox",e[e.GoToOption=2]="GoToOption",e[e.RegisterOption=3]="RegisterOption",e[e.UnregisterOption=4]="UnregisterOption",e[e.RegisterLabel=5]="RegisterLabel",e))(yp||{});function bp(e,t=(e=>e)){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=function(e,t=(e=>e)){return e.slice().sort(((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let a=r.compareDocumentPosition(o);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}(t(e.options.slice()),(e=>e.dataRef.current.domRef.current)),o=n?r.indexOf(n):null;return-1===o&&(o=null),{options:r,activeOptionIndex:o}}let wp={1(e){return e.dataRef.current.disabled||1===e.comboboxState?e:{...e,activeOptionIndex:null,comboboxState:1}},0(e){if(e.dataRef.current.disabled||0===e.comboboxState)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,r=e.options.findIndex((e=>n(e.dataRef.current.value)));return-1!==r&&(t=r),{...e,comboboxState:0,activeOptionIndex:t}},2(e,t){var n;if(e.dataRef.current.disabled||e.dataRef.current.optionsRef.current&&!e.dataRef.current.optionsPropsRef.current.static&&1===e.comboboxState)return e;let r=bp(e);if(null===r.activeOptionIndex){let e=r.options.findIndex((e=>!e.dataRef.current.disabled));-1!==e&&(r.activeOptionIndex=e)}let o=function(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=null!=r?r:-1,a=(()=>{switch(e.focus){case 0:return n.findIndex((e=>!t.resolveDisabled(e)));case 1:{let e=n.slice().reverse().findIndex(((e,n,r)=>!(-1!==o&&r.length-n-1>=o||t.resolveDisabled(e))));return-1===e?e:n.length-1-e}case 2:return n.findIndex(((e,n)=>!(n<=o||t.resolveDisabled(e))));case 3:{let e=n.slice().reverse().findIndex((e=>!t.resolveDisabled(e)));return-1===e?e:n.length-1-e}case 4:return n.findIndex((n=>t.resolveId(n)===e.id));case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}})();return-1===a?r:a}(t,{resolveItems:()=>r.options,resolveActiveIndex:()=>r.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...r,activeOptionIndex:o,activationTrigger:null!=(n=t.trigger)?n:1}},3:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},r=bp(e,(e=>[...e,n]));null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(n));let o={...e,...r,activationTrigger:1};return e.dataRef.current.__demoMode&&void 0===e.dataRef.current.value&&(o.activeOptionIndex=0),o},4:(e,t)=>{let n=bp(e,(e=>{let n=e.findIndex((e=>e.id===t.id));return-1!==n&&e.splice(n,1),e}));return{...e,...n,activationTrigger:1}},5:(e,t)=>({...e,labelId:t.id})},xp=(0,o.createContext)(null);function Ep(e){let t=(0,o.useContext)(xp);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Ep),t}return t}xp.displayName="ComboboxActionsContext";let Cp=(0,o.createContext)(null);function Sp(e){let t=(0,o.useContext)(Cp);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Sp),t}return t}function Op(e,t){return re(t.type,wp,e,t)}Cp.displayName="ComboboxDataContext";let Tp=o.Fragment,Lp=ue((function(e,t){let{value:n,defaultValue:r,onChange:a,name:i,by:s=((e,t)=>e===t),disabled:l=!1,__demoMode:u=!1,nullable:c=!1,multiple:d=!1,...f}=e,[p=(d?[]:void 0),m]=function(e,t,n){let[r,a]=(0,o.useState)(n),i=void 0!==e,s=(0,o.useRef)(i),l=(0,o.useRef)(!1),u=(0,o.useRef)(!1);return!i||s.current||l.current?!i&&s.current&&!u.current&&(u.current=!0,s.current=i,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(l.current=!0,s.current=i,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[i?e:r,Ce((e=>(i||a(e),null==t?void 0:t(e))))]}(n,a,r),[h,g]=(0,o.useReducer)(Op,{dataRef:(0,o.createRef)(),comboboxState:u?0:1,options:[],activeOptionIndex:null,activationTrigger:1,labelId:null}),v=(0,o.useRef)(!1),y=(0,o.useRef)({static:!1,hold:!1}),b=(0,o.useRef)(null),w=(0,o.useRef)(null),x=(0,o.useRef)(null),E=(0,o.useRef)(null),C=Ce("string"==typeof s?(e,t)=>{let n=s;return(null==e?void 0:e[n])===(null==t?void 0:t[n])}:s),S=(0,o.useCallback)((e=>re(O.mode,{1:()=>p.some((t=>C(t,e))),0:()=>C(p,e)})),[p]),O=(0,o.useMemo)((()=>({...h,optionsPropsRef:y,labelRef:b,inputRef:w,buttonRef:x,optionsRef:E,value:p,defaultValue:r,disabled:l,mode:d?1:0,get activeOptionIndex(){if(v.current&&null===h.activeOptionIndex&&h.options.length>0){let e=h.options.findIndex((e=>!e.dataRef.current.disabled));if(-1!==e)return e}return h.activeOptionIndex},compare:C,isSelected:S,nullable:c,__demoMode:u})),[p,r,l,d,c,u,h]);be((()=>{h.dataRef.current=O}),[O]),function(e,t,n=!0){let r=(0,o.useRef)(!1);function a(n,o){if(!r.current||n.defaultPrevented)return;let a=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e),i=o(n);if(null!==i&&i.getRootNode().contains(i)){for(let e of a){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(i)||n.composed&&n.composedPath().includes(t))return}return!function(e,t=0){var n;return e!==(null==(n=Jf(e))?void 0:n.body)&&re(t,{0(){return e.matches(Kf)},1(){let t=e;for(;null!==t;){if(t.matches(Kf))return!0;t=t.parentElement}return!1}})}(i,np.Loose)&&-1!==i.tabIndex&&n.preventDefault(),t(n,i)}}(0,o.useEffect)((()=>{requestAnimationFrame((()=>{r.current=n}))}),[n]);let i=(0,o.useRef)(null);rp("mousedown",(e=>{var t,n;r.current&&(i.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)}),!0),rp("click",(e=>{!i.current||(a(e,(()=>i.current)),i.current=null)}),!0),rp("blur",(e=>a(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}([O.buttonRef,O.inputRef,O.optionsRef],(()=>I.closeCombobox()),0===O.comboboxState);let T=(0,o.useMemo)((()=>({open:0===O.comboboxState,disabled:l,activeIndex:O.activeOptionIndex,activeOption:null===O.activeOptionIndex?null:O.options[O.activeOptionIndex].dataRef.current.value,value:p})),[O,l,p]),L=Ce((e=>{let t=O.options.find((t=>t.id===e));!t||V(t.dataRef.current.value)})),P=Ce((()=>{if(null!==O.activeOptionIndex){let{dataRef:e,id:t}=O.options[O.activeOptionIndex];V(e.current.value),I.goToOption(ip.Specific,t)}})),k=Ce((()=>{g({type:0}),v.current=!0})),R=Ce((()=>{g({type:1}),v.current=!1})),M=Ce(((e,t,n)=>(v.current=!1,e===ip.Specific?g({type:2,focus:ip.Specific,id:t,trigger:n}):g({type:2,focus:e,trigger:n})))),N=Ce(((e,t)=>(g({type:3,id:e,dataRef:t}),()=>g({type:4,id:e})))),A=Ce((e=>(g({type:5,id:e}),()=>g({type:5,id:null})))),V=Ce((e=>re(O.mode,{0(){return null==m?void 0:m(e)},1(){let t=O.value.slice(),n=t.findIndex((t=>C(t,e)));return-1===n?t.push(e):t.splice(n,1),null==m?void 0:m(t)}}))),I=(0,o.useMemo)((()=>({onChange:V,registerOption:N,registerLabel:A,goToOption:M,closeCombobox:R,openCombobox:k,selectActiveOption:P,selectOption:L})),[]),D=null===t?{}:{ref:t},j=(0,o.useRef)(null),_=ke();return(0,o.useEffect)((()=>{!j.current||void 0!==r&&_.addEventListener(j.current,"reset",(()=>{V(r)}))}),[j,V]),o.createElement(xp.Provider,{value:I},o.createElement(Cp.Provider,{value:O},o.createElement(he,{value:re(O.comboboxState,{0:pe.Open,1:pe.Closed})},null!=i&&null!=p&&sp({[i]:p}).map((([e,t],n)=>o.createElement(dp,{features:cp.Hidden,ref:0===n?e=>{var t;j.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0,...ce({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,name:e,value:t})}))),ie({ourProps:D,theirProps:f,slot:T,defaultTag:Tp,name:"Combobox"}))))})),Pp=ue((function(e,t){var n,r,a,i;let s=Gf(),{id:l=`headlessui-combobox-input-${s}`,onChange:u,displayValue:c,type:d="text",...f}=e,p=Sp("Combobox.Input"),m=Ep("Combobox.Input"),h=Oe(p.inputRef,t),g=(0,o.useRef)(!1),v=ke();var y;pp((([e,t],[n,r])=>{g.current||!p.inputRef.current||(0===r&&1===t||e!==n)&&(p.inputRef.current.value=e)}),["function"==typeof c&&void 0!==p.value?null!=(y=c(p.value))?y:"":"string"==typeof p.value?p.value:"",p.comboboxState]),pp((([e],[t])=>{if(0===e&&1===t){let e=p.inputRef.current;if(!e)return;let t=e.value,{selectionStart:n,selectionEnd:r,selectionDirection:o}=e;e.value="",e.value=t,null!==o?e.setSelectionRange(n,r,o):e.setSelectionRange(n,r)}}),[p.comboboxState]);let b=(0,o.useRef)(!1),w=Ce((()=>{b.current=!0})),x=Ce((()=>{setTimeout((()=>{b.current=!1}))})),E=Ce((e=>{switch(g.current=!0,e.key){case fp.Backspace:case fp.Delete:if(0!==p.mode||!p.nullable)return;let t=e.currentTarget;v.requestAnimationFrame((()=>{""===t.value&&(m.onChange(null),p.optionsRef.current&&(p.optionsRef.current.scrollTop=0),m.goToOption(ip.Nothing))}));break;case fp.Enter:if(g.current=!1,0!==p.comboboxState||b.current)return;if(e.preventDefault(),e.stopPropagation(),null===p.activeOptionIndex)return void m.closeCombobox();m.selectActiveOption(),0===p.mode&&m.closeCombobox();break;case fp.ArrowDown:return g.current=!1,e.preventDefault(),e.stopPropagation(),re(p.comboboxState,{0:()=>{m.goToOption(ip.Next)},1:()=>{m.openCombobox()}});case fp.ArrowUp:return g.current=!1,e.preventDefault(),e.stopPropagation(),re(p.comboboxState,{0:()=>{m.goToOption(ip.Previous)},1:()=>{m.openCombobox(),v.nextFrame((()=>{p.value||m.goToOption(ip.Last)}))}});case fp.Home:if(e.shiftKey)break;return g.current=!1,e.preventDefault(),e.stopPropagation(),m.goToOption(ip.First);case fp.PageUp:return g.current=!1,e.preventDefault(),e.stopPropagation(),m.goToOption(ip.First);case fp.End:if(e.shiftKey)break;return g.current=!1,e.preventDefault(),e.stopPropagation(),m.goToOption(ip.Last);case fp.PageDown:return g.current=!1,e.preventDefault(),e.stopPropagation(),m.goToOption(ip.Last);case fp.Escape:return g.current=!1,0!==p.comboboxState?void 0:(e.preventDefault(),p.optionsRef.current&&!p.optionsPropsRef.current.static&&e.stopPropagation(),m.closeCombobox());case fp.Tab:if(g.current=!1,0!==p.comboboxState)return;0===p.mode&&m.selectActiveOption(),m.closeCombobox()}})),C=Ce((e=>{m.openCombobox(),null==u||u(e)})),S=Ce((()=>{g.current=!1})),O=Xf((()=>{if(p.labelId)return[p.labelId].join(" ")}),[p.labelId]),T=(0,o.useMemo)((()=>({open:0===p.comboboxState,disabled:p.disabled})),[p]);return ie({ourProps:{ref:h,id:l,role:"combobox",type:d,"aria-controls":null==(n=p.optionsRef.current)?void 0:n.id,"aria-expanded":p.disabled?void 0:0===p.comboboxState,"aria-activedescendant":null===p.activeOptionIndex||null==(r=p.options[p.activeOptionIndex])?void 0:r.id,"aria-multiselectable":1===p.mode||void 0,"aria-labelledby":O,"aria-autocomplete":"list",defaultValue:null!=(i=null!=(a=e.defaultValue)?a:void 0!==p.defaultValue?null==c?void 0:c(p.defaultValue):null)?i:p.defaultValue,disabled:p.disabled,onCompositionStart:w,onCompositionEnd:x,onKeyDown:E,onChange:C,onBlur:S},theirProps:f,slot:T,defaultTag:"input",name:"Combobox.Input"})})),kp=ue((function(e,t){var n;let r=Sp("Combobox.Button"),a=Ep("Combobox.Button"),i=Oe(r.buttonRef,t),s=Gf(),{id:l=`headlessui-combobox-button-${s}`,...u}=e,c=ke(),d=Ce((e=>{switch(e.key){case fp.ArrowDown:return e.preventDefault(),e.stopPropagation(),1===r.comboboxState&&a.openCombobox(),c.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}));case fp.ArrowUp:return e.preventDefault(),e.stopPropagation(),1===r.comboboxState&&(a.openCombobox(),c.nextFrame((()=>{r.value||a.goToOption(ip.Last)}))),c.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}));case fp.Escape:return 0!==r.comboboxState?void 0:(e.preventDefault(),r.optionsRef.current&&!r.optionsPropsRef.current.static&&e.stopPropagation(),a.closeCombobox(),c.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})})));default:return}})),f=Ce((e=>{if(function(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}(e.currentTarget))return e.preventDefault();0===r.comboboxState?a.closeCombobox():(e.preventDefault(),a.openCombobox()),c.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}))})),p=Xf((()=>{if(r.labelId)return[r.labelId,l].join(" ")}),[r.labelId,l]),m=(0,o.useMemo)((()=>({open:0===r.comboboxState,disabled:r.disabled,value:r.value})),[r]);return ie({ourProps:{ref:i,id:l,type:ap(e,r.buttonRef),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":null==(n=r.optionsRef.current)?void 0:n.id,"aria-expanded":r.disabled?void 0:0===r.comboboxState,"aria-labelledby":p,disabled:r.disabled,onClick:f,onKeyDown:d},theirProps:u,slot:m,defaultTag:"button",name:"Combobox.Button"})})),Rp=ue((function(e,t){let n=Gf(),{id:r=`headlessui-combobox-label-${n}`,...a}=e,i=Sp("Combobox.Label"),s=Ep("Combobox.Label"),l=Oe(i.labelRef,t);be((()=>s.registerLabel(r)),[r]);let u=Ce((()=>{var e;return null==(e=i.inputRef.current)?void 0:e.focus({preventScroll:!0})})),c=(0,o.useMemo)((()=>({open:0===i.comboboxState,disabled:i.disabled})),[i]);return ie({ourProps:{ref:l,id:r,onClick:u},theirProps:a,slot:c,defaultTag:"label",name:"Combobox.Label"})})),Mp=oe.RenderStrategy|oe.Static,Np=ue((function(e,t){let n=Gf(),{id:r=`headlessui-combobox-options-${n}`,hold:a=!1,...i}=e,s=Sp("Combobox.Options"),l=Oe(s.optionsRef,t),u=me(),c=null!==u?u===pe.Open:0===s.comboboxState;be((()=>{var t;s.optionsPropsRef.current.static=null!=(t=e.static)&&t}),[s.optionsPropsRef,e.static]),be((()=>{s.optionsPropsRef.current.hold=a}),[s.optionsPropsRef,a]),function({container:e,accept:t,walk:n,enabled:r=!0}){let a=(0,o.useRef)(t),i=(0,o.useRef)(n);(0,o.useEffect)((()=>{a.current=t,i.current=n}),[t,n]),be((()=>{if(!e||!r)return;let t=Jf(e);if(!t)return;let n=a.current,o=i.current,s=Object.assign((e=>n(e)),{acceptNode:n}),l=t.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,s,!1);for(;l.nextNode();)o(l.currentNode)}),[e,r,a,i])}({container:s.optionsRef.current,enabled:0===s.comboboxState,accept(e){return"option"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(e){e.setAttribute("role","none")}});let d=Xf((()=>{var e,t;return null!=(t=s.labelId)?t:null==(e=s.buttonRef.current)?void 0:e.id}),[s.labelId,s.buttonRef.current]);return ie({ourProps:{"aria-labelledby":d,role:"listbox",id:r,ref:l},theirProps:i,slot:(0,o.useMemo)((()=>({open:0===s.comboboxState})),[s]),defaultTag:"ul",features:Mp,visible:c,name:"Combobox.Options"})})),Ap=ue((function(e,t){var n,r;let a=Gf(),{id:i=`headlessui-combobox-option-${a}`,disabled:s=!1,value:l,...u}=e,c=Sp("Combobox.Option"),d=Ep("Combobox.Option"),f=null!==c.activeOptionIndex&&c.options[c.activeOptionIndex].id===i,p=c.isSelected(l),m=(0,o.useRef)(null),h=xe({disabled:s,value:l,domRef:m,textValue:null==(r=null==(n=m.current)?void 0:n.textContent)?void 0:r.toLowerCase()}),g=Oe(t,m),v=Ce((()=>d.selectOption(i)));be((()=>d.registerOption(i,h)),[h,i]);let y=(0,o.useRef)(!c.__demoMode);be((()=>{if(!c.__demoMode)return;let e=Te();return e.requestAnimationFrame((()=>{y.current=!0})),e.dispose}),[]),be((()=>{if(0!==c.comboboxState||!f||!y.current||0===c.activationTrigger)return;let e=Te();return e.requestAnimationFrame((()=>{var e,t;null==(t=null==(e=m.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[m,f,c.comboboxState,c.activationTrigger,c.activeOptionIndex]);let b=Ce((e=>{if(s)return e.preventDefault();v(),0===c.mode&&d.closeCombobox()})),w=Ce((()=>{if(s)return d.goToOption(ip.Nothing);d.goToOption(ip.Specific,i)})),x=function(){let e=(0,o.useRef)([-1,-1]);return{wasMoved(t){let n=mp(t);return(e.current[0]!==n[0]||e.current[1]!==n[1])&&(e.current=n,!0)},update(t){e.current=mp(t)}}}(),E=Ce((e=>x.update(e))),C=Ce((e=>{!x.wasMoved(e)||s||f||d.goToOption(ip.Specific,i,0)})),S=Ce((e=>{!x.wasMoved(e)||s||!f||c.optionsPropsRef.current.hold||d.goToOption(ip.Nothing)})),O=(0,o.useMemo)((()=>({active:f,selected:p,disabled:s})),[f,p,s]);return ie({ourProps:{id:i,ref:g,role:"option",tabIndex:!0===s?void 0:-1,"aria-disabled":!0===s||void 0,"aria-selected":p,disabled:void 0,onClick:b,onFocus:w,onPointerEnter:E,onMouseEnter:E,onPointerMove:C,onMouseMove:C,onPointerLeave:S,onMouseLeave:S},theirProps:u,slot:O,defaultTag:"li",name:"Combobox.Option"})})),Vp=Object.assign(Lp,{Input:Pp,Button:kp,Label:Rp,Options:Np,Option:Ap});const Ip=new Intl.Collator("en").compare,Dp=1/0,jp="[A-Za-z][0-9]|[0-9][A-Za-z]|[a-z][A-Z]",_p={interSplit:"[^A-Za-z0-9]+",intraSplit:jp,intraBound:jp,interLft:0,interRgt:0,interChars:".",interIns:Dp,intraChars:"[a-z\\d]",intraIns:0,intraMode:0,intraSub:0,intraTrn:0,intraDel:0,intraFilt:(e,t,n)=>!0,sort:(e,t,n)=>{let{idx:r,chars:o,terms:a,interLft2:i,interLft1:s,start:l,intraIns:u,interIns:c}=e;return r.map(((e,t)=>t)).sort(((e,n)=>o[n]-o[e]||u[e]-u[n]||a[n]+i[n]+.5*s[n]-(a[e]+i[e]+.5*s[e])||c[e]-c[n]||l[e]-l[n]||Ip(t[r[e]],t[r[n]])))}},Fp=(e,t)=>0==t?"":1==t?e+"??":t==Dp?e+"*?":e+`{0,${t}}?`,Hp="(?:\\b|_)";function Bp(e){e=Object.assign({},_p,e);const{interLft:t,interRgt:n,intraMode:r,intraIns:o,intraSub:a,intraTrn:i,intraDel:s,intraSplit:l,interSplit:u,intraBound:c,intraChars:d}=e;let f=!!l,p=new RegExp(l,"g"),m=new RegExp(u,"g"),h=new RegExp("^"+u+"|"+u+"$","g");const g=e=>(e=e.replace(h,""),f&&(e=e.replace(p,(e=>e[0]+" "+e[1]))),e.split(m)),v=(l,u=0)=>{let c,f=g(l);if(1==r)c=f.map((e=>{let t=e.length;if(t<=2)return o>0&&2==t?e[0]+Fp(d,1)+e[1]:e;let n=e[0],r=e.at(-1),l=e.slice(1,-1),u=l.length,c=[];if(a)for(let e=0;e<u;e++)c.push(n+l.slice(0,e)+d+l.slice(e+1)+r);if(i)for(let e=0;e<u-1;e++)l[e]!=l[e+1]&&c.push(n+l.slice(0,e)+l[e+1]+l[e]+l.slice(e+2)+r);if(s)for(let e=0;e<u;e++)c.push(n+l.slice(0,e+1)+"?"+l.slice(e+1)+r);if(o){let e=Fp(d,1);for(let t=0;t<u+1;t++)c.push(n+l.slice(0,t)+e+l.slice(t)+r)}return"(?:"+e+"|"+c.join("|")+")"}));else{let e=Fp(d,o);2==u&&o>0&&(e=")("+e+")("),c=f.map((t=>t.split("").join(e)))}let p=2==t?Hp:"",m=2==n?Hp:"",h=m+Fp(e.interChars,e.interIns)+p;return c=u>0?"("+c.join(")("+h+")(")+")":c.join(h),c=u>0?2==t?"("+p+")"+c+"("+m+")":"(.?)"+c+"(.?)":p+c+m,[new RegExp(c,"i"),f]};let y=!!c,b=new RegExp(u),w=new RegExp(c);return{split:g,filter:(e,t,n)=>{let r=[],[o]=v(t);if(null!=n)for(let t=0;t<n.length;t++){let a=n[t];o.test(e[a])&&r.push(a)}else for(let t=0;t<e.length;t++)o.test(e[t])&&r.push(t);return r},info:(r,a,i)=>{let[s,l]=v(i,1),[u]=v(i,2),c=r.length,d=Array(c).fill(0),f={idx:Array(c),start:d.slice(),chars:d.slice(),terms:d.slice(),interIns:d.slice(),intraIns:d.slice(),interLft2:d.slice(),interRgt2:d.slice(),interLft1:d.slice(),interRgt1:d.slice(),ranges:Array(c)},p=1==t||1==n,m=0;for(let i=0;i<r.length;i++){let c=a[r[i]],d=c.match(s),h=d.index+d[1].length,g=h,v=!1,x=0,E=0,C=0,S=0,O=0,T=0,L=0,P=0;for(let r=0,a=2;r<l.length;r++,a+=2){let i=d[a].toLowerCase(),s=i==l[r];if(!s&&o>0){let e=i.indexOf(l[r]);e>-1&&(s=!0,g+=e,d[a]=d[a].slice(e),0==r&&(h=g))}if(p||s){let e=g-1,o=g+d[a].length,i=!0,u=!0;if(-1==e||b.test(c[e]))s&&x++;else{if(2==t){v=!0;break}if(y&&w.test(c[e]+c[e+1]))s&&E++;else{if(1==t){v=!0;break}i=!1}}if(o==c.length||b.test(c[o]))s&&C++;else{if(2==n){v=!0;break}if(y&&w.test(c[o-1]+c[o]))s&&S++;else{if(1==n){v=!0;break}u=!1}}s&&(O+=l[r].length,i&&u&&T++)}else P+=i.length-l[r].length;if(r>0&&(L+=d[a-1].length),!e.intraFilt(l[r],i,g)){v=!0;break}r<l.length-1&&(g+=d[a].length+d[a+1].length)}if(!v){f.idx[m]=r[i],f.interLft2[m]=x,f.interLft1[m]=E,f.interRgt2[m]=C,f.interRgt1[m]=S,f.chars[m]=O,f.terms[m]=T,f.interIns[m]=L,f.intraIns[m]=P,f.start[m]=h;let e=c.match(u),t=f.ranges[m]=[],n=e.index+e[1].length,o=n,a=n;for(let r=2;r<e.length;r++){let i=e[r].length;n+=i,r%2==0?a=n:i>0&&(t.push(o,a),o=a=n)}a>o&&t.push(o,a),m++}}if(m<r.length)for(let e in f)f[e]=f[e].slice(0,m);return f},sort:e.sort}}const Up=(()=>{let e={A:"ÁÀÃÂÄĄ",a:"áàãâäą",E:"ÉÈÊËĖ",e:"éèêëę",I:"ÍÌÎÏĮ",i:"íìîïį",O:"ÓÒÔÕÖ",o:"óòôõö",U:"ÚÙÛÜŪŲ",u:"úùûüūų",C:"ÇČ",c:"çč",N:"Ñ",n:"ñ",S:"Š",s:"š"},t=new Map,n="";for(let r in e)e[r].split("").forEach((e=>{n+=e,t.set(e,r)}));let r=new RegExp(`[${n}]`,"g");return e=>{let n=Array(e.length);for(let o=0;o<e.length;o++)n[o]=e[o].replace(r,(e=>t.get(e)));return n}})(),zp=(e,t)=>t?`<mark>${e}</mark>`:e,qp=(e,t)=>e+t;Bp.latinize=Up,Bp.permute=e=>{let t=function(e){let t,n,r=e.length,o=[e.slice()],a=new Array(r).fill(0),i=1;for(;i<r;)a[i]<i?(t=i%2&&a[i],n=e[i],e[i]=e[t],e[t]=n,++a[i],i=1,o.push(e.slice())):(a[i]=0,++i);return o}([...Array(e.length).keys()]).sort(((e,t)=>{for(let n=0;n<e.length;n++)if(e[n]!=t[n])return e[n]-t[n];return 0}));return t.map((t=>t.map((t=>e[t]))))},Bp.highlight=function(e,t,n=zp,r="",o=qp){r=o(r,n(e.substring(0,t[0]),!1))??r;for(let a=0;a<t.length;a+=2){let i=t[a],s=t[a+1];r=o(r,n(e.substring(i,s),!0))??r,a<t.length-3&&(r=o(r,n(e.substring(t[a+1],t[a+2]),!1))??r)}return o(r,n(e.substring(t[t.length-1]),!1))??r};const Zp=()=>ar.get("onboarding/site-types"),$p=()=>({key:"site-types"}),Wp=yo("Site Industry",((e,t)=>({title:(0,ee.__)("Site Industry","extendify"),default:void 0,showInSidebar:!0,ready:!1,isDefault:()=>Fr.getState()?.siteType?.slug===t().default?.slug}))),Xp=new Bp({intraIns:2,intraMode:1,interSplit:"/\\s|\\p{L}/gu"}),Yp=t=>{let{type:n}=t;const r=(0,e.useRef)(0);return(0,e.createElement)(Vp.Option,{onMouseEnter:()=>{window.clearTimeout(r.current),r.current=window.setTimeout((()=>{const e=Ef(n);e&&B(e,(t=>t?.length?t:xf(e)))}),100)},onMouseLeave:()=>{window.clearTimeout(r.current)},className:"flex border-none items-center justify-between p-4 py-2.5 relative w-full text-base cursor-pointer m-0 text-gray-900",value:n},(t=>{var r;let{selected:o,active:a}=t;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",{className:co()("absolute inset-0 pointer-events-none",{"bg-partner-primary-bg":a}),"aria-hidden":"true",style:{opacity:"0.04"}}),(0,e.createElement)("span",{dangerouslySetInnerHTML:{__html:null!==(r=n?.titleMarked)&&void 0!==r?r:n.title},"data-test":"site-type-label"}),o?(0,e.createElement)(Ur,{className:"h-6 w-6"}):a?(0,e.createElement)(Zr,{className:"h-6 w-6"}):null)}))},Gp=[["site-type",{component:()=>{var t;const{nextPage:n}=Qp(),{siteType:r,setSiteType:o}=Fr(),[a,i]=(0,e.useState)(""),s=(0,e.useRef)(null),{data:l,loading:u}=po($p,Zp),c=l?.map((e=>(e.styles=e?.parent?l.find((t=>t.slug===e.parent)).styles:e.styles,e))),d=null!==(t=c?.map((e=>{let{title:t}=e;return t})))&&void 0!==t?t:[],f=Bp.latinize(d),p=Xp.filter(f,a),m=Xp.info(p,f,a),h=Xp.sort(m,f,a),g=a?c?.filter(((e,t)=>p.includes(t)))?.map(((e,t,n)=>{const r=n[h[t]];return{...r,titleMarked:Bp.highlight(r.title,m.ranges[h[t]],((e,t)=>t?'<b class="font-bold">'+e+"</b>":e))}})).filter((e=>"default"!==e.slug)):c?.filter((e=>"default"!==e.slug))?.sort((e=>e?.featured?-1:0))?.sort((e=>e.slug===r.slug?-1:0));return(0,e.useEffect)((()=>{Wp.setState({ready:!u})}),[u]),(0,e.useEffect)((()=>{const e=requestAnimationFrame((()=>s.current?.focus()));return()=>cancelAnimationFrame(e)}),[s]),(0,e.useEffect)((()=>{if(u)return;if(r?.slug)return;const e=c?.find((e=>"default"===e.slug));if(!e)return;const t={label:e.title,recordId:e.id,slug:e.slug};o(t),Wp.setState({default:t})}),[u,r?.slug,c,o]),(0,e.useEffect)((()=>{if(!a)return;const e=setTimeout((()=>{Fr.setState({siteTypeSearch:[...Fr.getState().siteTypeSearch,a]})}),500);return()=>clearTimeout(e)}),[a]),(0,e.createElement)(vo,null,(0,e.createElement)("div",null,(0,e.createElement)("h1",{className:"text-3xl text-partner-primary-text mb-4 mt-0","data-test":"launch-welcome-message"},(0,ee.__)("Welcome to your WordPress site","extendify")),(0,e.createElement)("p",{className:"text-base opacity-70 mb-0"},(0,ee.__)("Design and launch your site with this guided experience, or head right into the WordPress dashboard if you know your way around.","extendify"))),(0,e.createElement)("div",{className:"w-full relative max-w-onboarding-md mx-auto"},(0,e.createElement)("h2",{className:"text-lg m-0 mb-4 text-gray-900"},(0,ee.__)("What is your site about?","extendify")),(0,e.createElement)(Vp,{value:r,by:(e,t)=>e.slug===t.slug,onChange:async e=>{await cr("extendify_siteType",e),o({label:e.title,recordId:e.id,slug:e.slug,styles:e.styles}),n()}},(0,e.createElement)("div",{className:"relative border border-gray-200 rounded"},(0,e.createElement)("div",{className:"mx-auto search-panel flex items-center justify-center relative"},(0,e.createElement)(Vp.Input,{ref:s,className:"w-full h-14 px-4 m-0 input-focus ring-offset-0 focus:bg-white relative z-20 rounded",autoComplete:"off",displayValue:()=>"",placeholder:(0,ee.__)("Search for your business...","extendify"),onChange:e=>i(e.target.value),onBlur:()=>0===g?.length&&i(""),"data-test":"sitetype-search-input"}),(0,e.createElement)(Vp.Button,{className:"z-20 absolute inset-y-0 right-0 mx-2 bg-transparent flex items-center p-2"},(0,e.createElement)(to,null))),u?(0,e.createElement)("span",{className:"flex border-none items-center justify-between p-4 py-2.5 relative w-full text-base m-0 text-gray-700"},(0,ee.__)("Loading...","extendify")):(0,e.createElement)(Vp.Options,{static:!0,className:"m-0 py-2 border-t border-gray-200 overflow-auto max-h-half rounded-b","data-test":"site-type-options"},0===g?.length&&""!==a?(0,e.createElement)("div",{className:"flex border-none items-center justify-between p-4 py-2.5 relative w-full text-base m-0 text-gray-700"},(0,ee.__)("No Results","extendify")):g?.map((t=>(0,e.createElement)(Yp,{type:t,key:t.id}))))))))},fetcher:Zp,fetchData:$p,state:Wp}],["site-title",{component:()=>{const{data:t,loading:n}=po(Co,Eo);return(0,e.useEffect)((()=>{So.setState({ready:!n})}),[n]),(0,e.createElement)(vo,null,(0,e.createElement)("div",null,(0,e.createElement)("h1",{className:"text-3xl text-partner-primary-text mb-4 mt-0","data-test":"site-title-heading"},(0,ee.__)("What's the name of your new site?","extendify")),(0,e.createElement)("p",{className:"text-base opacity-70 mb-0"},(0,ee.__)("You can change this later.","extendify"))),(0,e.createElement)("div",{className:"w-full max-w-onboarding-sm mx-auto"},n?null:(0,e.createElement)(Oo,{defaultInfo:t})))},fetcher:Eo,fetchData:Co,state:So}],["goals",{component:()=>{const{data:t,loading:n}=po(wo,bo),{toggle:r,has:o}=Fr(),{goals:a}=Fr(),i=Qp((e=>e.nextPage)),s=(0,e.useRef)(),l=a.map((e=>e.slug)),u={BarChart:Br,Design:zr,Donate:qr,Monetization:Wr,OpenEnvelope:Xr,Pencil:Yr,Planner:Gr,PriceTag:Jr,School:eo,Shop:no,Speech:ro,Ticket:ao};return(0,e.useEffect)((()=>{n||xo.setState({ready:!0})}),[n]),(0,e.useEffect)((()=>{if(!s.current||n)return;const e=requestAnimationFrame((()=>s.current?.querySelector("input")?.focus()));return()=>cancelAnimationFrame(e)}),[s,n]),(0,e.createElement)(vo,null,(0,e.createElement)("div",null,(0,e.createElement)("h1",{className:"text-3xl text-partner-primary-text mb-4 mt-0","data-test":"goals-heading"},(0,ee.__)("What do you want to accomplish with this new site?","extendify")),(0,e.createElement)("p",{className:"text-base opacity-70 mb-0"},(0,ee.__)("You can change these later.","extendify"))),(0,e.createElement)("div",{className:"w-full"},(0,e.createElement)("h2",{className:"text-lg m-0 mb-4 text-gray-900"},(0,ee.__)("Select the goals relevant to your site:","extendify")),n?(0,e.createElement)("p",null,(0,ee.__)("Loading...","extendify")):(0,e.createElement)("form",{"data-test":"goals-form",onSubmit:e=>{e.preventDefault(),i()},className:"w-full grid xl:grid-cols-2 gap-4 goal-select"},(0,e.createElement)("input",{type:"submit",className:"hidden"}),t?.map(((t,n)=>{const a=l.includes(t.slug),i=u[t.icon];return(0,e.createElement)("div",{key:t.id,className:co()("relative border rounded-lg",{"border-gray-800":!a,"border-partner-primary-bg":a}),ref:0===n?s:void 0,"data-test":"goal-item"},(0,e.createElement)("div",{className:co()("absolute inset-0 pointer-events-none",{"bg-partner-primary-bg":a}),"aria-hidden":"true",style:{opacity:"0.04"}}),(0,e.createElement)("div",{className:"flex items-center gap-4 h-full"},(0,e.createElement)(fo,{label:t.title,slug:`goal-${t.slug}`,description:t.description,checked:o("goals",t),onChange:()=>{r("goals",t)},Icon:i})))})))))},fetcher:bo,fetchData:wo,state:xo}],["layout",{component:()=>{const{data:t,loading:n}=po(Ef,xf),r=(()=>{const t=(0,e.useRef)(!1);return(0,e.useLayoutEffect)((()=>(t.current=!0,()=>t.current=!1))),t})(),[o,a]=(0,e.useState)([]),{data:i}=po("variations",gr),{setStyle:s,style:l}=Fr(),u=(0,e.useCallback)((e=>s(e)),[s]),c=(0,e.useRef)(),d=(0,e.useRef)(!1);return(0,e.useEffect)((()=>{Cf.setState({ready:!n})}),[n]),(0,e.useEffect)((()=>{t&&i&&(o.length||(async()=>{for(const e of t){if(!r.current)return;const t=i.find((t=>{let{title:n}=t;return n===e.label}));a((n=>[...n,{...e,variation:t}]));const n=Math.floor(750*Math.random())+750;await new Promise((e=>setTimeout(e,n)))}})())}),[t,r,i,o]),(0,e.useEffect)((()=>{o&&!l&&(s(o[0]),Cf.setState({default:o[0]}))}),[o,l,s]),(0,e.useEffect)((()=>{if(!l||!o||d.current)return;const e=c.current?.querySelector(`#layout-style-${l.slug} [role="button"]`);e&&(d.current=!0,e.focus())}),[l,o]),(0,e.createElement)(wf,null,(0,e.createElement)("div",{className:"w-full"},(0,e.createElement)("div",{className:"flex flex-col gap-2 mb-16"},(0,e.createElement)("h1",{"data-test":"layout-heading",className:co()("text-2xl text-center m-0 text-gray-900 transition-opacity duration-1000",{"opacity-0":n})},(0,ee.__)("Now pick a design for your new site.","extendify")),(0,e.createElement)("p",{className:"text-center text-base m-0 p-0"},n?(0,ee.__)("Please wait a moment while we generate the homepage layout previews...","extendify"):(0,ee.__)("You can personalize this later.","extendify"))),(0,e.createElement)("div",{className:"gap-8 grid md:grid-cols-2 lg:grid-cols-3","data-test":"layout-preview-wrapper",ref:c},o?.map((t=>(0,e.createElement)("div",{id:`layout-style-${t.slug}`,className:"relative",key:t.slug},(0,e.createElement)(ua,null,(0,e.createElement)(mf.div,{initial:{opacity:0},animate:{opacity:1},duration:.7,className:co()("relative overflow-hidden border border-gray-200 rounded cursor-pointer hover:ring-4 hover:ring-gray-300 ring-offset-2 ring-offset-white hover:outline-none focus-within:ring-4 focus-within:ring-offset-2 focus-within:ring-offset-white focus-within:ring-design-main focus-within:outline-none",{"ring-4 ring-offset-2 ring-offset-white ring-design-main hover:ring-design-main":l?.slug===t.slug}),style:{aspectRatio:"1.55"}},(0,e.createElement)(bf,{style:t,onSelect:u}))),(0,e.createElement)("span",{"aria-hidden":"true"},l?.slug===t.slug?(0,e.createElement)(Ur,{className:"absolute top-0 right-0 m-2 text-design-text bg-design-main w-6 h-6 z-50 rounded-full transform translate-x-5 -translate-y-5"}):null)))),t?.slice(o?.length).map(((t,n)=>(0,e.createElement)(ua,{key:n},(0,e.createElement)(mf.div,{initial:{opacity:1},animate:{opacity:1},exit:{opacity:0},duration:.7,style:{aspectRatio:"1.55"},className:"relative bg-gray-100"})))))))},fetcher:xf,fetchData:Ef,state:Cf}],["pages",{component:()=>{const{data:t}=po(Bf,Hf),[n,r]=(0,e.useState)([]),{add:o,goals:a,reset:i,pages:s}=Fr(),l=function(){const t=(0,e.useRef)(!1);return(0,e.useEffect)((()=>(t.current=!0,()=>t.current=!1))),t}(),u=(0,e.useRef)(s);return(0,e.useEffect)((()=>{n?.length===t?.length&&Uf.setState({ready:!0})}),[t?.length,n?.length]),(0,e.useEffect)((()=>{if(!t?.length)return;const e=t.filter((e=>{var t;return!a?.length||!e?.goals?.length||null===(t=e?.goals?.some((e=>a.some((t=>e==t.id)))))||void 0===t||t}));(async()=>{for(const t of e){if(!l.current)return;r((e=>[...e,t])),await new Promise((e=>setTimeout(e,100)))}Uf.setState({ready:!0})})()}),[t,a,l]),(0,e.useEffect)((()=>{u.current?.length||(i("pages"),n?.map((e=>o("pages",e))),Uf.setState({default:n}))}),[n,o,i]),(0,e.createElement)(vo,null,(0,e.createElement)("div",null,(0,e.createElement)("h1",{className:"text-3xl text-partner-primary-text mb-4 mt-0","data-test":"pages-heading"},(0,ee.__)("What pages do you want on this site?","extendify")),(0,e.createElement)("p",{className:"text-base opacity-70 mb-0"},(0,ee.__)("You may add more later","extendify"))),(0,e.createElement)("div",{className:"w-full"},(0,e.createElement)("h2",{className:"text-lg m-0 mb-4 text-gray-900"},(0,ee.__)("Pick the pages you'd like to add to your site","extendify")),(0,e.createElement)("div",{className:"flex gap-6 flex-wrap justify-center","data-test":"page-preview-wrapper"},n?.map((t=>{if("home"!==t.slug)return(0,e.createElement)("div",{className:"relative",style:{height:541,width:352},key:t.id},(0,e.createElement)(_f,{required:"home"===t?.slug,page:t,title:t?.title,blockHeight:541}))})))))},fetcher:Hf,fetchData:Bf,state:Uf}],["confirmation",{component:()=>{const{siteType:t,style:n,pages:r,goals:o}=Fr(),a=Qp((e=>e.setPage));return(0,e.createElement)(vo,null,(0,e.createElement)("div",null,(0,e.createElement)("h1",{className:"text-3xl text-partner-primary-text mb-4 mt-0","data-test":"summary-heading"},(0,ee.__)("Let's launch your site!","extendify")),(0,e.createElement)("p",{className:"text-base mb-0"},(0,ee.__)("Review your site configuration.","extendify"))),(0,e.createElement)("div",{className:"w-full"},(0,e.createElement)("div",{className:"flex flex-col gap-y-12"},(0,e.createElement)("div",{className:"block"},(0,e.createElement)("h2",{className:"text-lg m-0 mb-4 text-gray-900"},(0,ee.__)("Design","extendify")),n?.label?(0,e.createElement)("div",{className:"overflow-hidden rounded-lg relative"},(0,e.createElement)("span",{"aria-hidden":"true",className:"absolute top-0 bottom-0 left-3/4 right-0 z-40 bg-gradient-to-l from-white pointer-events-none"}),r.length>0&&(0,e.createElement)("div",{className:"flex justify-center lg:justify-start w-full overflow-y-scroll lg:pr-52"},(0,e.createElement)("div",{className:"flex flex-col lg:flex-row lg:flex-no-wrap gap-4"},r?.map((t=>(0,e.createElement)("div",{className:"relative pointer-events-none",style:{height:360,width:255},key:t.id},(0,e.createElement)(_f,{displayOnly:!0,page:t,blockHeight:356}))))))):(0,e.createElement)("button",{onClick:()=>a("style"),className:"bg-transparent text-partner-primary underline text-base cursor-pointer"},(0,ee.__)("Press to change the style","extendify"))),(0,e.createElement)("div",{className:"block"},(0,e.createElement)("h2",{className:"text-lg m-0 mb-4"},(0,ee.__)("Industry","extendify")),t?.label?(0,e.createElement)("div",{className:"flex items-center"},(0,e.createElement)(Ur,{className:"text-extendify-main-dark",style:{width:24}}),(0,e.createElement)("span",{className:"text-base pl-2"},t.label)):(0,e.createElement)("button",{onClick:()=>a("site-type"),className:"bg-transparent text-partner-primary underline text-base cursor-pointer"},(0,ee.__)("Press to set a site type","extendify"))),o?.length>0?(0,e.createElement)("div",{className:"block"},(0,e.createElement)("h2",{className:"text-lg m-0 mb-4"},(0,ee.__)("Goals","extendify")),(0,e.createElement)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4"},o?.map((t=>(0,e.createElement)("div",{className:"flex items-center",key:t.id},(0,e.createElement)(Ur,{className:"text-extendify-main-dark",style:{width:24}}),(0,e.createElement)("span",{className:"text-base pl-2"},t.title)))))):null,(0,e.createElement)("div",{className:"block"},(0,e.createElement)("h2",{className:"text-lg m-0 mb-4"},(0,ee.__)("Pages","extendify")),r.length>0?(0,e.createElement)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4"},r?.map((t=>(0,e.createElement)("div",{className:"flex items-center",key:t.id},(0,e.createElement)(Ur,{className:"text-extendify-main-dark",style:{width:24}}),(0,e.createElement)("span",{className:"text-base pl-2"},t.title))))):(0,e.createElement)("button",{onClick:()=>a("pages"),className:"bg-transparent text-partner-primary underline text-base cursor-pointer"},(0,ee.__)("Press to set your pages","extendify"))),(0,e.createElement)("div",{className:"block"},(0,e.createElement)("h2",{className:"text-lg m-0 mb-4"},(0,ee.__)("Plugins","extendify")),(0,e.createElement)($f,null)))))},state:Wf}]],Jp=Gp?.filter((e=>!window.extOnbData?.partnerSkipSteps?.includes(e[0]))),Kp=jr(Ar(((e,t)=>({pages:new Map(Jp),currentPageIndex:0,count(){return t().pages.size},getPageOrder(){return Array.from(t().pages.keys())},getCurrentPageData(){return t().pages.get(t().getCurrentPageSlug())},getCurrentPageSlug(){return t().getPageOrder()[t().currentPageIndex]||(t().setPage(0),t().getPageOrder()[0])},getNextPageData(){const e=t().currentPageIndex+1;return e>t().count()-1?{}:t().pages.get(t().getPageOrder()[e])},setPage(n){"string"==typeof n&&(n=t().getPageOrder().indexOf(n)),n>t().count()-1||n<0||e({currentPageIndex:n})},pushHistory(e){history.pushState({currentPageIndex:e,currentPageKey:t().getPageOrder()[e],previousPageIndex:e-1},"")},replaceHistory(e){history.replaceState({currentPageIndex:e,currentPageKey:t().getPageOrder()[e],previousPageIndex:e-1},"")},nextPage(){const e=t().currentPageIndex+1;t().pushHistory(e),t().setPage(e)},previousPage(){const e=t().currentPageIndex-1;t().replaceHistory(e),t().setPage(e)}})),{name:"Extendify Launch Pages",serialize:!0}),{name:"extendify-pages",partialize:e=>{var t,n,r;return{currentPageIndex:null!==(t=e?.currentPageIndex)&&void 0!==t?t:0,currentPageSlug:null!==(n=e?.getCurrentPageSlug())&&void 0!==n?n:null,availablePages:null!==(r=e?.getPageOrder())&&void 0!==r?r:[]}}}),Qp=Rr(Kp),em=Rr(jr(Ar((e=>({designColors:{},queuedTour:null,setDesignColors(t){e({designColors:t})},queueTourForRedirect(t){e({queuedTour:t})},clearQueuedTour(){e({queuedTour:null})}})),{name:"Extendify Assist Globals Sync"}),{name:"extendify-assist-globals-sync"})),tm=e=>performance?.getEntriesByType("measure")?.filter((t=>t?.detail?.extendify&&t?.detail?.context?.type===e))?.map((e=>({[e.name]:e.duration}))),nm=()=>(0,e.createElement)(vo,{includeNav:!1},(0,e.createElement)("div",null,(0,e.createElement)("h1",{className:"text-3xl text-white mb-4 mt-0"},(0,ee.__)("Hey, one more thing before we start.","extendify"))),(0,e.createElement)("div",{className:"w-full"},(0,e.createElement)("p",{className:"mt-0 mb-8 text-base"},(0,ee.__)("Hey there, Launch is powered by Extendable and is required to proceed. You can install it from the link below and start over once activated.","extendify")),(0,e.createElement)("div",{className:"flex flex-col items-start space-y-4 text-base"},(0,e.createElement)("a",{href:`${window.extOnbData.site}/wp-admin/theme-install.php?theme=extendable`},(0,ee.__)("Take me there","extendify"))))),rm=document.getElementById("extendify-onboarding-page");rm&&(0,e.render)((0,e.createElement)((()=>{const{updateSettings:n}=(0,r.useDispatch)("core/block-editor"),[o,a]=(0,e.useState)(!1),{siteType:i}=Fr(),s=Qp((e=>e.getCurrentPageData()?.component)),{fetcher:l,fetchData:u}=Qp((e=>e.getNextPageData())),{setPage:c,currentPageIndex:d}=Qp(),{mutate:f}=W(),{generating:p}=lo(),[m,h]=(0,e.useState)(!1),[g,v]=(0,e.useState)(!1),y=(0,r.useSelect)((e=>e("core").getCurrentTheme()));return(()=>{const{goals:t,pages:n,plugins:r,siteType:o,style:a,siteTypeSearch:i}=Fr(),{generating:s}=lo(),{pages:l,currentPageIndex:u}=Qp(),[c,d]=(0,e.useState)(),[f,p]=(0,e.useState)([]),[m,h]=(0,e.useState)(new Set);(0,e.useEffect)((()=>{const e=[...l].map((e=>e[0]));p((t=>t?.at(-1)===e[u]?t:[...t,e[u]]))}),[u,l]),(0,e.useEffect)((()=>{s&&p((e=>[...e,"launched"]))}),[s]),(0,e.useEffect)((()=>{Object.keys(null!=a?a:{})?.length&&h((e=>{const t=new Set(e);return t.add(a),t}))}),[a]),(0,e.useEffect)((()=>{let e="onboarding";const t=window.location?.search;e=t?.indexOf("DEVMODE")>-1?"onboarding-dev":e,e=t?.indexOf("LOCALMODE")>-1?"onboarding-local":e,d(window?.extOnbData?.config?.api[e])}),[]),(0,e.useEffect)((()=>{if(!c)return;let e=0,s=0;return e=window.setTimeout((()=>{const e=new AbortController;s=window.setTimeout((()=>{e.abort()}),500),fetch(`${c}/progress`,{method:"POST",headers:{"Content-type":"application/json",Accept:"application/json"},signal:e.signal,body:JSON.stringify({selectedGoals:t?.map((e=>e.id)),selectedGoalsSlugs:t?.map((e=>e.slug)),selectedPages:n?.map((e=>e.id)),selectedPagesSlugs:n?.map((e=>e.slug)),selectedPlugins:r?.map((e=>e.name)),selectedSiteType:o?.recordId?[o.recordId]:[],selectedSiteTypeSlug:o?.slug,selectedStyle:a?.recordId?[a.recordId]:[],selectedStyleSlug:a?.slug,stepProgress:f,viewedStyles:[...m].map((e=>e.recordId)).slice(1),viewedStylesSlugs:[...m].map((e=>e.slug)).slice(1),siteTypeSearch:i,perfStyles:tm("style"),perfPages:tm("page"),insightsId:window.extOnbData?.insightsId,activeTests:JSON.stringify(window.extOnbData?.activeTests),partnerName:window.extOnbData?.partnerName,wpLanguage:window.extOnbData?.wpLanguage,siteCreatedAt:window.extOnbData?.siteCreatedAt})}).catch((()=>{}))}),1e3),()=>[e,s].forEach((e=>window.clearTimeout(e)))}),[c,t,n,r,o,a,l,f,m,i])})(),(()=>{const{designColors:t,setDesignColors:n}=em(),{data:r}=J("designColors",(()=>{const e=window.getComputedStyle(document.documentElement),n=e?.getPropertyValue("--ext-partner-theme-primary-bg");var r;if(n)return{mainColor:n,darkColor:vt(n).darken(.1).toHex(),textColor:null!==(r=e?.getPropertyValue("--ext-partner-theme-primary-text"))&&void 0!==r?r:"#fff"};const o=document?.querySelector("a.wp-has-current-submenu, li.current > a.current");if(!o)return t;const a=window.getComputedStyle(o)?.["background-color"];return{mainColor:a,darkColor:vt(a).darken(.1).toHex(),textColor:"#fff"}}));(0,e.useEffect)((()=>{r?.mainColor&&document.documentElement.style.setProperty("--ext-design-main",r.mainColor),r?.darkColor&&document.documentElement.style.setProperty("--ext-design-dark",r.darkColor),r?.textColor&&document.documentElement.style.setProperty("--ext-design-text",r.textColor),n(r)}),[r,n])})(),(0,e.useEffect)((()=>{n(window.extOnbData.editorStyles)}),[n]),(0,e.useEffect)((()=>{(0,t.registerCoreBlocks)()}),[]),(0,e.useEffect)((()=>{y?.textdomain&&"extendable"!==y?.textdomain&&v(!0)}),[y]),(0,e.useEffect)((()=>{h(!0),cr("extendify_launch_loaded",(new Date).toISOString())}),[]),(0,e.useEffect)((()=>{if(l){const e="function"==typeof u?u():u;f(e,(()=>l(e)))}}),[l,f,u]),m?(0,e.createElement)(G,{value:{errorRetryInterval:1e3,onErrorRetry:(e,t,n,r,i)=>{let{retryCount:s}=i;403!==e?.data?.status?o||(console.error(t,e),a(!0),setTimeout((()=>{a(!1),r({retryCount:s})}),5e3)):window.location.reload()}}},(0,e.createElement)("div",{style:{zIndex:1e5},className:"h-screen w-screen fixed inset-0 overflow-y-auto md:overflow-hidden bg-white"},g?(0,e.createElement)(nm,null):i?.slug||0===d?p?(0,e.createElement)(io,null):s?(0,e.createElement)(s,null):null:(c(0),null)),o&&(0,e.createElement)(te,null)):null}),null),rm)}()}();