main.js 97.1 KB
(()=>{var e={511:()=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}!function(e){"use strict";var t="SUIAccordion",n={};function r(r,o){this.element=r,this.$element=e(this.element),this.settings=e.extend({},n,o),this._defaults=n,this._name=t,this.init()}e.extend(r.prototype,{init:function(){this.$element.on("click","div.sui-accordion-item-header, tr.sui-accordion-item",(function(t){var n=e(this).closest(".sui-accordion-item"),r=(n.nextUntil(".sui-accordion-item").filter(".sui-accordion-item-content"),n.closest(".sui-accordion"),n.find(".sui-chartjs-animated"),e(t.target)),o=e(this),i=o.parent(),a=i.find(".sui-chartjs-animated"),s=i.parent(),c=o.next(".sui-accordion-item-body").find(" .sui-box"),u=e(this),l=u.nextUntil(".sui-accordion-item").filter(".sui-accordion-item-content"),d=l.find(".sui-box"),f=e(this).find(".sui-accordion-open-indicator > .sui-screen-reader-text"),p=null==f?void 0:f.text(),h=null==f?void 0:f.data("content");if(r.closest(".sui-accordion-item-action").length)return!0;o.hasClass("sui-accordion-item-header")&&(i.hasClass("sui-accordion-item--disabled")||i.hasClass("sui-accordion-item--open")?i.removeClass("sui-accordion-item--open"):(i.addClass("sui-accordion-item--open"),c.attr("tabindex","0").trigger("focus")),s.hasClass("sui-accordion-block")&&0!==a.length&&(i.find(".sui-accordion-item-data").addClass("sui-onload"),a.removeClass("sui-chartjs-loaded"),i.hasClass("sui-accordion-item--open")&&setTimeout((function(){i.find(".sui-accordion-item-data").removeClass("sui-onload"),a.addClass("sui-chartjs-loaded")}),1200))),u.hasClass("sui-accordion-item")&&(u.hasClass("sui-accordion-item--disabled")?l.removeClass("sui-accordion-item--open"):u.hasClass("sui-accordion-item--open")?(u.removeClass("sui-accordion-item--open"),l.removeClass("sui-accordion-item--open")):(u.addClass("sui-accordion-item--open"),l.addClass("sui-accordion-item--open"),d.attr("tabindex","0").trigger("focus"))),h&&(f.html(h),f.data("content",p)),t.stopPropagation()}))}}),e.fn[t]=function(n){return this.each((function(){e.data(this,t)||e.data(this,t,new r(this,n))}))}}(jQuery,window,document),function(t){"use strict";"object"!==e(window.SUI)&&(window.SUI={}),SUI.suiAccordion=function(e){return t(e).SUIAccordion({}),this},0!==t(".sui-2-12-18 .sui-accordion").length&&t(".sui-2-12-18 .sui-accordion").each((function(){SUI.suiAccordion(this)}))}(jQuery)},679:(e,t,n)=>{"use strict";var r=n(864),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var u=Object.defineProperty,l=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var a=l(n);d&&(a=a.concat(d(n)));for(var s=c(t),m=c(n),g=0;g<a.length;++g){var b=a[g];if(!(i[b]||r&&r[b]||m&&m[b]||s&&s[b])){var y=f(n,b);try{u(t,b,y)}catch(e){}}}}return t}},921:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,b=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,v=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case l:case d:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case u:case f:case g:case m:case c:return e;default:return t}}case o:return t}}}function S(e){return E(e)===d}t.AsyncMode=l,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=c,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return S(e)||E(e)===l},t.isConcurrentMode=S,t.isContextConsumer=function(e){return E(e)===u},t.isContextProvider=function(e){return E(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===f},t.isFragment=function(e){return E(e)===i},t.isLazy=function(e){return E(e)===g},t.isMemo=function(e){return E(e)===m},t.isPortal=function(e){return E(e)===o},t.isProfiler=function(e){return E(e)===s},t.isStrictMode=function(e){return E(e)===a},t.isSuspense=function(e){return E(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===c||e.$$typeof===u||e.$$typeof===f||e.$$typeof===y||e.$$typeof===v||e.$$typeof===w||e.$$typeof===b)},t.typeOf=E},864:(e,t,n)=>{"use strict";e.exports=n(921)},774:e=>{e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),c=0;c<i.length;c++){var u=i[c];if(!s(u))return!1;var l=e[u],d=t[u];if(!1===(o=n?n.call(r,l,d,u):void 0)||void 0===o&&l!==d)return!1}return!0}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(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=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.nc=void 0,(()=>{"use strict";const e=window.wp.element,t=window.React;var r=n.n(t);const{__,sprintf:o}=wp.i18n;function i(t){return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"sui-box-banner",role:"banner","aria-hidden":"true"}),(0,e.createElement)("h2",{className:"box-title"},__("Local Link Checker is inactive","broken-link-checker")))}function a(){return a=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},a.apply(this,arguments)}function s(t){let n="",r=void 0!==t.id?t.id:"";return void 0!==t.classes&&(n=t.classes),(0,e.createElement)("div",a({},r?{id:r}:{},{className:`sui-grid ${n}`}),t.children)}function c(t){let n="";return void 0!==t.classes&&(n=t.classes),(0,e.createElement)("div",{className:`sui-row ${n}`},t.children)}function u(t){let n="";return void 0!==t.classes&&(n=t.classes),(0,e.createElement)("div",{className:`sui-col ${n}`},t.children)}function l(t){const n=new Array("text","contained");let r="contained"===(void 0!==t.variant&&-1!=n.indexOf(t.variant)?t.variant:"contained")?"sui-button":"sui-button-icon",o=void 0!==t.content?t.content:"",i=void 0!==t.ariaLabel?t.ariaLabel:o,s=void 0!==t.id?t.id:"",c=void 0!==t.classes?t.classes:"",u=(void 0!==t.disabled&&t.disabled,!(void 0===t.outlined||!t.outlined)),l=!(void 0===t.dashed||!t.dashed),d=!(void 0===t.large||!t.large),f=void 0!==t.color?t.color:"",p=(void 0!==t.onClick&&t.onClick,{}),h="";return""!==f&&(h=`sui-button-${f}`),u&&(c+=" sui-button-ghost"),l&&(c+=" sui-button-dashed"),d&&(c+=" sui-button-lg"),void 0!==t.tooltip&&t.tooltip.length>0&&(p={"data-tooltip":t.tooltip},c+=" sui-tooltip",void 0!==t.tooltip_constrained&&t.tooltip_constrained&&(c+=" sui-tooltip-constrained"),void 0!==t.tooltip_bottom&&t.tooltip_bottom&&(c+=" sui-tooltip-bottom")),t.isLoading&&(c+=" sui-button-onload",o=(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",{className:"sui-icon-loader sui-loading","aria-hidden":"true"}),(0,e.createElement)("span",{className:"sui-loading-text"},o))),(0,e.createElement)("button",a({},s?{id:s}:{},{"aria-label":i,className:`${r} ${h} ${c}`,onClick:t.onClick,disabled:t.disabled},p,{ref:t.mainReference}),t.buttonIcon&&(0,e.createElement)("span",{ref:t.iconReference,className:`sui-icon-${t.buttonIcon}`,"aria-hidden":"true"}),o,i&&(0,e.createElement)("span",{className:"sui-screen-reader-text"},i))}function d(t){let n=t.design?t.design:"general",r=t.type?t.type:"inline",o=t.visibility?t.visibility:"visible",i=t.content?t.content:"",a=t.classes?t.classes:"",s=t.id?t.id:"",c="sui-notice sui-active",u="visible"===o?{display:"block",textAlign:"left"}:"";switch(n){case"general":break;case"informative":c+=" sui-notice-blue";break;case"success":c+=" sui-notice-green";break;case"warning":c+=" sui-notice-yellow";break;case"error":c+=" sui-notice-red";break;case"upsell":c+=" sui-notice-purple"}let l="floating"===r?"sui-floating-notices":"";return a.length&&(c+=" "+a),(0,e.createElement)("div",{className:l},(0,e.createElement)("div",{role:"alert",id:s,className:c,"aria-live":"assertive",style:u},(0,e.createElement)("div",{className:"sui-notice-content"},(0,e.createElement)("div",{className:"sui-notice-message"},(0,e.createElement)("span",{className:"sui-notice-icon sui-icon-info sui-md","aria-hidden":"true"}),(0,e.createElement)("p",null,i)),t.dismissible&&(0,e.createElement)("div",{className:"sui-notice-actions"},(0,e.createElement)("div",{className:"sui-tooltip sui-tooltip-bottom","data-tooltip":"Dismiss"},(0,e.createElement)("button",{className:"sui-button-icon",onClick:e=>{return n=e,void t.dismissibleCallback(t.id,n);var n}},(0,e.createElement)("i",{className:"sui-icon-check","aria-hidden":"true"}),(0,e.createElement)("span",{className:"sui-screen-reader-text"},t.dismissLabel)))))))}n(511);var f=n(864),p=n(774),h=n.n(p);const m=function(e){function t(e,r,c,u,f){for(var p,h,m,g,w,S=0,x=0,k=0,C=0,O=0,j=0,I=m=p=0,B=0,D=0,F=0,M=0,U=c.length,$=U-1,z="",q="",H="",W="";B<U;){if(h=c.charCodeAt(B),B===$&&0!==x+C+k+S&&(0!==x&&(h=47===x?10:47),C=k=S=0,U++,$++),0===x+C+k+S){if(B===$&&(0<D&&(z=z.replace(d,"")),0<z.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:z+=c.charAt(B)}h=59}switch(h){case 123:for(p=(z=z.trim()).charCodeAt(0),m=1,M=++B;B<U;){switch(h=c.charCodeAt(B)){case 123:m++;break;case 125:m--;break;case 47:switch(h=c.charCodeAt(B+1)){case 42:case 47:e:{for(I=B+1;I<$;++I)switch(c.charCodeAt(I)){case 47:if(42===h&&42===c.charCodeAt(I-1)&&B+2!==I){B=I+1;break e}break;case 10:if(47===h){B=I+1;break e}}B=I}}break;case 91:h++;case 40:h++;case 34:case 39:for(;B++<$&&c.charCodeAt(B)!==h;);}if(0===m)break;B++}if(m=c.substring(M,B),0===p&&(p=(z=z.replace(l,"").trim()).charCodeAt(0)),64===p){switch(0<D&&(z=z.replace(d,"")),h=z.charCodeAt(1)){case 100:case 109:case 115:case 45:D=r;break;default:D=P}if(M=(m=t(r,D,m,h,f+1)).length,0<_&&(w=s(3,m,D=n(P,z,F),r,R,A,M,h,f,u),z=D.join(""),void 0!==w&&0===(M=(m=w.trim()).length)&&(h=0,m="")),0<M)switch(h){case 115:z=z.replace(E,a);case 100:case 109:case 45:m=z+"{"+m+"}";break;case 107:m=(z=z.replace(b,"$1 $2"))+"{"+m+"}",m=1===T||2===T&&i("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=z+m,112===u&&(q+=m,m="")}else m=""}else m=t(r,n(r,z,F),m,u,f+1);H+=m,m=F=D=I=p=0,z="",h=c.charCodeAt(++B);break;case 125:case 59:if(1<(M=(z=(0<D?z.replace(d,""):z).trim()).length))switch(0===I&&(p=z.charCodeAt(0),45===p||96<p&&123>p)&&(M=(z=z.replace(" ",":")).length),0<_&&void 0!==(w=s(1,z,r,e,R,A,q.length,u,f,u))&&0===(M=(z=w.trim()).length)&&(z="\0\0"),p=z.charCodeAt(0),h=z.charCodeAt(1),p){case 0:break;case 64:if(105===h||99===h){W+=z+c.charAt(B);break}default:58!==z.charCodeAt(M-1)&&(q+=o(z,p,h,z.charCodeAt(2)))}F=D=I=p=0,z="",h=c.charCodeAt(++B)}}switch(h){case 13:case 10:47===x?x=0:0===1+p&&107!==u&&0<z.length&&(D=1,z+="\0"),0<_*L&&s(0,z,r,e,R,A,q.length,u,f,u),A=1,R++;break;case 59:case 125:if(0===x+C+k+S){A++;break}default:switch(A++,g=c.charAt(B),h){case 9:case 32:if(0===C+S+x)switch(O){case 44:case 58:case 9:case 32:g="";break;default:32!==h&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===C+x+S&&(D=F=1,g="\f"+g);break;case 108:if(0===C+x+S+N&&0<I)switch(B-I){case 2:112===O&&58===c.charCodeAt(B-3)&&(N=O);case 8:111===j&&(N=j)}break;case 58:0===C+x+S&&(I=B);break;case 44:0===x+k+C+S&&(D=1,g+="\r");break;case 34:case 39:0===x&&(C=C===h?0:0===C?h:C);break;case 91:0===C+x+k&&S++;break;case 93:0===C+x+k&&S--;break;case 41:0===C+x+S&&k--;break;case 40:0===C+x+S&&(0===p&&(2*O+3*j==533||(p=1)),k++);break;case 64:0===x+k+C+S+I+m&&(m=1);break;case 42:case 47:if(!(0<C+S+k))switch(x){case 0:switch(2*h+3*c.charCodeAt(B+1)){case 235:x=47;break;case 220:M=B,x=42}break;case 42:47===h&&42===O&&M+2!==B&&(33===c.charCodeAt(M+2)&&(q+=c.substring(M,B+1)),g="",x=0)}}0===x&&(z+=g)}j=O,O=h,B++}if(0<(M=q.length)){if(D=r,0<_&&void 0!==(w=s(2,q,D,e,R,A,M,u,f,u))&&0===(q=w).length)return W+q+H;if(q=D.join(",")+"{"+q+"}",0!=T*N){switch(2!==T||i(q,2)||(N=0),N){case 111:q=q.replace(v,":-moz-$1")+q;break;case 112:q=q.replace(y,"::-webkit-input-$1")+q.replace(y,"::-moz-$1")+q.replace(y,":-ms-input-$1")+q}N=0}}return W+q+H}function n(e,t,n){var o=t.trim().split(m);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<i;++s)t[s]=r(e,t[s],n).trim();break;default:var c=s=0;for(t=[];s<i;++s)for(var u=0;u<a;++u)t[c++]=r(e[u]+" ",o[s],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,n,r){var a=e+";",s=2*t+3*n+4*r;if(944===s){e=a.indexOf(":",9)+1;var c=a.substring(e,a.length-1).trim();return c=a.substring(0,e).trim()+c+";",1===T||2===T&&i(c,1)?"-webkit-"+c+c:c}if(0===T||2===T&&!i(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(O,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(c=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+c+a;case 1005:return p.test(a)?a.replace(f,":-webkit-")+a.replace(f,":-moz-")+a:a;case 1e3:switch(t=(c=a.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(t)){case 226:c=a.replace(w,"tb");break;case 232:c=a.replace(w,"tb-rl");break;case 220:c=a.replace(w,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+c+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(c=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(111>c.charCodeAt(8))break;case 115:a=a.replace(c,"-webkit-"+c)+";"+a;break;case 207:case 102:a=a.replace(c,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(c,"-webkit-"+c)+";"+a.replace(c,"-ms-"+c+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return c=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+c+"-ms-flex-"+c+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(x,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(x,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===C.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):a.replace(c,"-webkit-"+c)+a.replace(c,"-moz-"+c.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+r&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+a}return a}function i(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),I(2!==t?r:r.replace(k,"$1"),n,t)}function a(e,t){var n=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(S," or ($1)").substring(4):"("+t+")"}function s(e,t,n,r,o,i,a,s,c,l){for(var d,f=0,p=t;f<_;++f)switch(d=j[f].call(u,e,p,n,r,o,i,a,s,c,l)){case void 0:case!1:case!0:case null:break;default:p=d}if(p!==t)return p}function c(e){return void 0!==(e=e.prefix)&&(I=null,e?"function"!=typeof e?T=1:(T=2,I=e):T=0),c}function u(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<_){var o=s(-1,n,r,r,R,A,0,0,0,0);void 0!==o&&"string"==typeof o&&(n=o)}var i=t(P,r,n,0,0);return 0<_&&void 0!==(o=s(-2,i,r,r,R,A,i.length,0,0,0))&&(i=o),N=0,A=R=1,i}var l=/^\0+/g,d=/[\0\r\f]/g,f=/: */g,p=/zoo|gra/,h=/([,: ])(transform)/g,m=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,b=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,v=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,E=/\(\s*(.*)\s*\)/g,S=/([\s\S]*?);/g,x=/-self|flex-/g,k=/[^]*?(:[rp][el]a[\w-]+)[^]*/,C=/stretch|:\s*\w+\-(?:conte|avail)/,O=/([^-])(image-set\()/,A=1,R=1,N=0,T=1,P=[],j=[],_=0,I=null,L=0;return u.use=function e(t){switch(t){case void 0:case null:_=j.length=0;break;default:if("function"==typeof t)j[_++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else L=0|!!t}return e},u.set=c,void 0!==e&&c(e),u},g={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function b(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var y=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,v=b((function(e){return y.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),w=n(679),E=n.n(w);function S(){return(S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var x=function(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n},k=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,f.typeOf)(e)},C=Object.freeze([]),O=Object.freeze({});function A(e){return"function"==typeof e}function R(e){return e.displayName||e.name||"Component"}function N(e){return e&&"string"==typeof e.styledComponentId}var T="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",P="undefined"!=typeof window&&"HTMLElement"in window,j=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&(void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY));function _(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var I=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&_(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=0,c=t.length;s<c;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),L=new Map,B=new Map,D=1,F=function(e){if(L.has(e))return L.get(e);for(;B.has(D);)D++;var t=D++;return L.set(e,t),B.set(t,e),t},M=function(e){return B.get(e)},U=function(e,t){t>=D&&(D=t+1),L.set(e,t),B.set(t,e)},$="style["+T+'][data-styled-version="5.3.11"]',z=new RegExp("^"+T+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),q=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},H=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],o=0,i=n.length;o<i;o++){var a=n[o].trim();if(a){var s=a.match(z);if(s){var c=0|parseInt(s[1],10),u=s[2];0!==c&&(U(u,c),q(e,u,s[3]),e.getTag().insertRules(c,r)),r.length=0}else r.push(a)}}},W=function(){return n.nc},G=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(T))return r}}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(T,"active"),r.setAttribute("data-styled-version","5.3.11");var a=W();return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},V=function(){function e(e){var t=this.element=G(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}_(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),J=function(){function e(e){var t=this.element=G(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),K=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Y=P,X={isServer:!P,useCSSOMInjection:!j},Q=function(){function e(e,t,n){void 0===e&&(e=O),void 0===t&&(t={}),this.options=S({},X,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&P&&Y&&(Y=!1,function(e){for(var t=document.querySelectorAll($),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(T)&&(H(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return F(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(S({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,o=t.target,e=n?new K(o):r?new V(o):new J(o),new I(e)));var e,t,n,r,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(F(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(F(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(F(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=0;o<n;o++){var i=M(o);if(void 0!==i){var a=e.names.get(i),s=t.getGroup(o);if(a&&s&&a.size){var c=T+".g"+o+'[id="'+i+'"]',u="";void 0!==a&&a.forEach((function(e){e.length>0&&(u+=e+",")})),r+=""+s+c+'{content:"'+u+'"}/*!sc*/\n'}}}return r}(this)},e}(),Z=/(a)(d)/gi,ee=function(e){return String.fromCharCode(e+(e>25?39:97))};function te(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=ee(t%52)+n;return(ee(t%52)+n).replace(Z,"$1-$2")}var ne=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},re=function(e){return ne(5381,e)};function oe(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(A(n)&&!N(n))return!1}return!0}var ie=re("5.3.11"),ae=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&oe(e),this.componentId=t,this.baseHash=ne(ie,t),this.baseStyle=n,Q.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))o.push(this.staticRulesId);else{var i=xe(this.rules,e,t,n).join(""),a=te(ne(this.baseHash,i)>>>0);if(!t.hasNameForId(r,a)){var s=n(i,"."+a,void 0,r);t.insertRules(r,a,s)}o.push(a),this.staticRulesId=a}else{for(var c=this.rules.length,u=ne(this.baseHash,n.hash),l="",d=0;d<c;d++){var f=this.rules[d];if("string"==typeof f)l+=f;else if(f){var p=xe(f,e,t,n),h=Array.isArray(p)?p.join(""):p;u=ne(u,h+d),l+=h}}if(l){var m=te(u>>>0);if(!t.hasNameForId(r,m)){var g=n(l,"."+m,void 0,r);t.insertRules(r,m,g)}o.push(m)}}return o.join(" ")},e}(),se=/^\s*\/\/.*$/gm,ce=[":","[",".","#"];function ue(e){var t,n,r,o,i=void 0===e?O:e,a=i.options,s=void 0===a?O:a,c=i.plugins,u=void 0===c?C:c,l=new m(s),d=[],f=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,i,a,s,c,u,l,d){switch(n){case 1:if(0===l&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===u)return r+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(o[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){d.push(e)})),p=function(e,r,i){return 0===r&&-1!==ce.indexOf(i[n.length])||i.match(o)?e:"."+t};function h(e,i,a,s){void 0===s&&(s="&");var c=e.replace(se,""),u=i&&a?a+" "+i+" { "+c+" }":c;return t=s,n=i,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),l(a||!i?"":i,u)}return l.use([].concat(u,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(r,p))},f,function(e){if(-2===e){var t=d;return d=[],t}}])),h.hash=u.length?u.reduce((function(e,t){return t.name||_(15),ne(e,t.name)}),5381).toString():"",h}var le=r().createContext(),de=(le.Consumer,r().createContext()),fe=(de.Consumer,new Q),pe=ue();function he(){return(0,t.useContext)(le)||fe}function me(e){var n=(0,t.useState)(e.stylisPlugins),o=n[0],i=n[1],a=he(),s=(0,t.useMemo)((function(){var t=a;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),c=(0,t.useMemo)((function(){return ue({options:{prefix:!e.disableVendorPrefixes},plugins:o})}),[e.disableVendorPrefixes,o]);return(0,t.useEffect)((function(){h()(o,e.stylisPlugins)||i(e.stylisPlugins)}),[e.stylisPlugins]),r().createElement(le.Provider,{value:s},r().createElement(de.Provider,{value:c},e.children))}var ge=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=pe);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return _(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=pe),this.name+e.hash},e}(),be=/([A-Z])/,ye=/([A-Z])/g,ve=/^ms-/,we=function(e){return"-"+e.toLowerCase()};function Ee(e){return be.test(e)?e.replace(ye,we).replace(ve,"-ms-"):e}var Se=function(e){return null==e||!1===e||""===e};function xe(e,t,n,r){if(Array.isArray(e)){for(var o,i=[],a=0,s=e.length;a<s;a+=1)""!==(o=xe(e[a],t,n,r))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}return Se(e)?"":N(e)?"."+e.styledComponentId:A(e)?"function"!=typeof(c=e)||c.prototype&&c.prototype.isReactComponent||!t?e:xe(e(t),t,n,r):e instanceof ge?n?(e.inject(n,r),e.getName(r)):e:k(e)?function e(t,n){var r,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!Se(t[a])&&(Array.isArray(t[a])&&t[a].isCss||A(t[a])?i.push(Ee(a)+":",t[a],";"):k(t[a])?i.push.apply(i,e(t[a],a)):i.push(Ee(a)+": "+(r=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in g||r.startsWith("--")?String(o).trim():o+"px")+";")));return n?[n+" {"].concat(i,["}"]):i}(e):e.toString();var c}var ke=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function Ce(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return A(e)||k(e)?ke(xe(x(C,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:ke(xe(x(e,n)))}new Set;var Oe=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ae=/(^-|-$)/g;function Re(e){return e.replace(Oe,"-").replace(Ae,"")}function Ne(e){return"string"==typeof e&&!0}var Te=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Pe=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function je(e,t,n){var r=e[n];Te(t)&&Te(r)?_e(r,t):e[n]=t}function _e(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var o=0,i=n;o<i.length;o++){var a=i[o];if(Te(a))for(var s in a)Pe(s)&&je(e,a[s],s)}return e}var Ie=r().createContext();Ie.Consumer;var Le={};function Be(e,n,o){var i=N(e),a=!Ne(e),s=n.attrs,c=void 0===s?C:s,u=n.componentId,l=void 0===u?function(e,t){var n="string"!=typeof e?"sc":Re(e);Le[n]=(Le[n]||0)+1;var r=n+"-"+function(e){return te(re(e)>>>0)}("5.3.11"+n+Le[n]);return t?t+"-"+r:r}(n.displayName,n.parentComponentId):u,d=n.displayName,f=void 0===d?function(e){return Ne(e)?"styled."+e:"Styled("+R(e)+")"}(e):d,p=n.displayName&&n.componentId?Re(n.displayName)+"-"+n.componentId:n.componentId||l,h=i&&e.attrs?Array.prototype.concat(e.attrs,c).filter(Boolean):c,m=n.shouldForwardProp;i&&e.shouldForwardProp&&(m=n.shouldForwardProp?function(t,r,o){return e.shouldForwardProp(t,r,o)&&n.shouldForwardProp(t,r,o)}:e.shouldForwardProp);var g,b=new ae(o,p,i?e.componentStyle:void 0),y=b.isStatic&&0===c.length,w=function(e,n){return function(e,n,r,o){var i=e.attrs,a=e.componentStyle,s=e.defaultProps,c=e.foldedComponentIds,u=e.shouldForwardProp,l=e.styledComponentId,d=e.target,f=function(e,t,n){void 0===e&&(e=O);var r=S({},t,{theme:e}),o={};return n.forEach((function(e){var t,n,i,a=e;for(t in A(a)&&(a=a(r)),a)r[t]=o[t]="className"===t?(n=o[t],i=a[t],n&&i?n+" "+i:n||i):a[t]})),[r,o]}(function(e,t,n){return void 0===n&&(n=O),e.theme!==n.theme&&e.theme||t||n.theme}(n,(0,t.useContext)(Ie),s)||O,n,i),p=f[0],h=f[1],m=function(e,n,r,o){var i=he(),a=(0,t.useContext)(de)||pe;return n?e.generateAndInjectStyles(O,i,a):e.generateAndInjectStyles(r,i,a)}(a,o,p),g=r,b=h.$as||n.$as||h.as||n.as||d,y=Ne(b),w=h!==n?S({},n,{},h):n,E={};for(var x in w)"$"!==x[0]&&"as"!==x&&("forwardedAs"===x?E.as=w[x]:(u?u(x,v,b):!y||v(x))&&(E[x]=w[x]));return n.style&&h.style!==n.style&&(E.style=S({},n.style,{},h.style)),E.className=Array.prototype.concat(c,l,m!==l?m:null,n.className,h.className).filter(Boolean).join(" "),E.ref=g,(0,t.createElement)(b,E)}(g,e,n,y)};return w.displayName=f,(g=r().forwardRef(w)).attrs=h,g.componentStyle=b,g.displayName=f,g.shouldForwardProp=m,g.foldedComponentIds=i?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):C,g.styledComponentId=p,g.target=i?e.target:e,g.withComponent=function(e){var t=n.componentId,r=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(n,["componentId"]),i=t&&t+"-"+(Ne(e)?e:Re(R(e)));return Be(e,S({},r,{attrs:h,componentId:i}),o)},Object.defineProperty(g,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=i?_e({},e.defaultProps,t):t}}),Object.defineProperty(g,"toString",{value:function(){return"."+g.styledComponentId}}),a&&E()(g,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),g}var De,Fe=function(e){return function e(t,n,r){if(void 0===r&&(r=O),!(0,f.isValidElementType)(n))return _(1,String(n));var o=function(){return t(n,r,Ce.apply(void 0,arguments))};return o.withConfig=function(o){return e(t,n,S({},r,{},o))},o.attrs=function(o){return e(t,n,S({},r,{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},o}(Be,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Fe[e]=Fe(e)})),(De=function(e,t){this.rules=e,this.componentId=t,this.isStatic=oe(e),Q.registerId(this.componentId+1)}.prototype).createStyles=function(e,t,n,r){var o=r(xe(this.rules,t,n,r).join(""),""),i=this.componentId+e;n.insertRules(i,i,o)},De.removeStyles=function(e,t){t.clearRules(this.componentId+e)},De.renderStyles=function(e,t,n,r){e>2&&Q.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},function(){var e=function(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=W();return"<style "+[n&&'nonce="'+n+'"',T+'="true"','data-styled-version="5.3.11"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?_(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return _(2);var n=((t={})[T]="",t["data-styled-version"]="5.3.11",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),o=W();return o&&(n.nonce=o),[r().createElement("style",S({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new Q({isServer:!0}),this.sealed=!1}.prototype;e.collectStyles=function(e){return this.sealed?_(2):r().createElement(me,{sheet:this.instance},e)},e.interleaveWithNodeStream=function(e){return _(3)}}();const Me=Fe;function Ue(){return Ue=Object.assign||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},Ue.apply(this,arguments)}function $e(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ze(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var qe,He,We,Ge=["children","className"],Ve=["icon","tagLabel","tagColor","tagSize","tagDesign","className","children"],Je=["title","titleIcon","tagLabel","tagColor","tagSize","tagDesign","className","children"],Ke=["title","description","className","children"],Ye=30,Xe=20,Qe={mobile:"(min-width: ".concat(480,"px)"),tablet:"(min-width: ".concat(783,"px)"),laptop:"(min-width: ".concat(1200,"px)"),desktop:"(min-width: ".concat(1500,"px)")},Ze=function(e){var t=e.children,n=e.className,o=$e(e,Ge);return r().createElement("div",Ue({className:void 0!==n&&""!==n?"sui-box ".concat(n):"sui-box"},o),t)},et=function(e){var t=e.icon,n=e.tagLabel,o=e.tagColor,i=e.tagSize,a=e.tagDesign,s=e.className,c=e.children,u=$e(e,Ve),l="sui-tag";switch(o){case"red":case"yellow":case"green":case"blue":case"purple":l+=" sui-tag-"+o}switch(i){case"sm":case"small":l+=" sui-tag-sm"}return"outlined"===a&&(l+=" sui-tag-ghost"),r().createElement("h3",Ue({className:void 0!==s&&""!==s?"sui-box-title ".concat(s):"sui-box-title"},u),t&&""!==t&&r().createElement("span",{className:"sui-icon-".concat(t," sui-md"),"aria-hidden":"true"}),c,n&&""!==n&&r().createElement("span",{className:l,style:{marginLeft:10}},n))},tt=Me.div.attrs((function(e){return{props:e}}))(qe||(qe=ze(["\n\t.sui-wrap && {\n\t\tdisplay: ",";\n\t\t","\n\t\t","\n\tmargin: 0;\n\t\tpadding-top: ","px;\n\t\tpadding-right: ","px;\n\t\tpadding-bottom: ","px;\n\t\tpadding-left: ","px;\n\t\tborder: 0 solid #e6e6e6;\n\t\tborder-bottom-width: ","px;\n\t\t","\n\n\t\t","\n\t","\n\n\t@media "," {\n\t\t\tpadding-top: ","px;\n\t\t\tpadding-right: ","px;\n\t\t\tpadding-bottom: ","px;\n\t\t\tpadding-left: ","px;\n\t\t}\n\t}\n"])),(function(e){return"block"!==e.display?"flex":"block"}),(function(e){return"block"!==e.display&&"flex-flow: row wrap;"}),(function(e){return"block"===e.display||"left"!==e.alignment&&"right"!==e.alignment&&"center"!==e.alignment?"justify-content: space-between;":"left"===e.alignment?"justify-content: flex-start;":"right"===e.alignment?"justify-content: flex-end;":"justify-content: center;"}),(function(e){return e.paddingTop||0===e.paddingTop?e.paddingTop>29?e.paddingTop-10:e.paddingTop:10}),(function(e){return e.paddingRight||0===e.paddingRight?e.paddingRight>29?e.paddingRight-10:e.paddingRight:Xe}),(function(e){return e.paddingBottom||0===e.paddingBottom?e.paddingBottom>29?e.paddingBottom-10:e.paddingBottom:10}),(function(e){return e.paddingLeft||0===e.paddingLeft?e.paddingLeft>29?e.paddingLeft-10:e.paddingLeft:Xe}),(function(e){return e.border||0===e.border?e.border:1}),(function(e){return"block"===e.display&&("right"===e.alignment||"center"===e.alignment)&&"text-align: "+e.alignment+";"}),(function(e){return"block"!==e.display&&"> * { max-width: 100%; flex: 0 0 auto; }"}),(function(e){return"block"!==e.display&&"> * + * { margin-left: 10px; }"}),Qe.tablet,(function(e){return e.paddingTop||0===e.paddingTop?e.paddingTop:15}),(function(e){return e.paddingRight||0===e.paddingRight?e.paddingRight:Ye}),(function(e){return e.paddingBottom||0===e.paddingBottom?e.paddingBottom:15}),(function(e){return e.paddingLeft||0===e.paddingLeft?e.paddingLeft:Ye})),nt=function(e){var t=e.title,n=e.titleIcon,o=e.tagLabel,i=e.tagColor,a=e.tagSize,s=e.tagDesign;e.className;var c=e.children,u=$e(e,Je);return r().createElement(tt,u,t&&""!==t&&r().createElement(et,{icon:n,tagLabel:o,tagColor:i,tagSize:a,tagDesign:s},t),c)},rt=(Me.div.attrs((function(e){return{props:e}}))(He||(He=ze(["\n\t.sui-wrap && {\n\t\tmargin: 0;\n\t\tpadding-top: ","px;\n\t\tpadding-right: ","px;\n\t\tpadding-bottom: ","px;\n\t\tpadding-left: ","px;\n\t\tborder: 0 solid #e6e6e6;\n\t\tborder-top-width: ","px;\n\t\tborder-bottom-width: ","px;\n\t\ttext-align: ",";\n\n\t\t@media "," {\n\t\t\tpadding-top: ","px;\n\t\t\tpadding-right: ","px;\n\t\t\tpadding-bottom: ","px;\n\t\t\tpadding-left: ","px;\n\t\t}\n\t}\n"])),(function(e){return e.paddingTop||0===e.paddingTop?e.paddingTop>29?e.paddingTop-10:e.paddingTop:Xe}),(function(e){return e.paddingRight||0===e.paddingRight?e.paddingRight>29?e.paddingRight-10:e.paddingRight:Xe}),(function(e){return e.paddingBottom||0===e.paddingBottom?e.paddingBottom>29?e.paddingBottom-10:e.paddingBottom:Xe}),(function(e){return e.paddingLeft||0===e.paddingLeft?e.paddingLeft>29?e.paddingLeft-10:e.paddingLeft:Xe}),(function(e){return e.borderTop||0===e.borderTop?e.borderTop:0}),(function(e){return e.borderBottom||0===e.borderBottom?e.borderBottom:0}),(function(e){return e.alignment||"left"}),Qe.tablet,(function(e){return e.paddingTop||0===e.paddingTop?e.paddingTop:Ye}),(function(e){return e.paddingRight||0===e.paddingRight?e.paddingRight:Ye}),(function(e){return e.paddingBottom||0===e.paddingBottom?e.paddingBottom:Ye}),(function(e){return e.paddingLeft||0===e.paddingLeft?e.paddingLeft:Ye})),Me.div.attrs((function(e){return{props:e}}))(We||(We=ze(["\n\t.sui-wrap && {\n\t\tdisplay: ",";\n\t\t","\n\t\t","\n\tmargin: 0;\n\t\tpadding-top: ","px;\n\t\tpadding-right: ","px;\n\t\tpadding-bottom: ","px;\n\t\tpadding-left: ","px;\n\t\tborder: 0 solid #e6e6e6;\n\t\tborder-top-width: ","px;\n\t\t","\n\n\t\t","\n\t","\n\n\t@media "," {\n\t\t\tpadding-top: ","px;\n\t\t\tpadding-right: ","px;\n\t\t\tpadding-bottom: ","px;\n\t\t\tpadding-left: ","px;\n\t\t}\n\t}\n"])),(function(e){return"block"!==e.display?"flex":"block"}),(function(e){return"block"!==e.display&&"flex-flow: row wrap;"}),(function(e){return"block"===e.display||"left"!==e.alignment&&"right"!==e.alignment&&"center"!==e.alignment?"justify-content: space-between;":"left"===e.alignment?"justify-content: flex-start;":"right"===e.alignment?"justify-content: flex-end;":"justify-content: center;"}),(function(e){return e.paddingTop||0===e.paddingTop?e.paddingTop>29?e.paddingTop-10:e.paddingTop:Xe}),(function(e){return e.paddingRight||0===e.paddingRight?e.paddingRight>29?e.paddingRight-10:e.paddingRight:Xe}),(function(e){return e.paddingBottom||0===e.paddingBottom?e.paddingBottom>29?e.paddingBottom-10:e.paddingBottom:Xe}),(function(e){return e.paddingLeft||0===e.paddingLeft?e.paddingLeft>29?e.paddingLeft-10:e.paddingLeft:Xe}),(function(e){return e.border||0===e.border||""===e.border?e.border:1}),(function(e){return"block"===e.display&&("right"===e.alignment||"center"===e.alignment)&&"text-align: "+e.alignment+";"}),(function(e){return"block"!==e.display&&"> * { max-width: 100%; flex: 0 0 auto; }"}),(function(e){return"block"!==e.display&&"> * + * { margin-left: 10px; }"}),Qe.tablet,(function(e){return e.paddingTop||0===e.paddingTop?e.paddingTop:Ye}),(function(e){return e.paddingRight||0===e.paddingRight?e.paddingRight:Ye}),(function(e){return e.paddingBottom||0===e.paddingBottom?e.paddingBottom:Ye}),(function(e){return e.paddingLeft||0===e.paddingLeft?e.paddingLeft:Ye})),function(e){var t=e.title,n=e.description,o=e.className,i=e.children,a=$e(e,Ke);return r().createElement("div",Ue({className:void 0!==o&&""!==o?"sui-box-settings-row ".concat(o):"sui-box-settings-row"},a),(t&&""!==t||n&&""!==n)&&r().createElement("div",{className:"sui-box-settings-col-1"},""!==t&&r().createElement("h4",{className:"sui-settings-label"},t),""!==n&&r().createElement("p",{className:"sui-description"},n)),r().createElement("div",{className:"sui-box-settings-col-2"},i))});const{__:ot}=wp.i18n;function it(n){const[r,o]=(0,t.useState)(!1);(0,t.useEffect)((()=>{void 0!==n.isActive&&o(n.isActive)}),[n.isActive]);let i=void 0!==n.closeButtonCallback?n.closeButtonCallback:()=>{o(!1)},a=void 0!==n.classes?n.classes:"",s=void 0!==n.headerTitleAlign?n.headerTitleAlign:"center",c="md";if(void 0!==n.modalSize)switch(n.modalSize){case"large":c="lg";break;case"medium":c="md";break;case"small":c="sm"}return(0,e.createElement)("div",{className:`sui-modal sui-modal-${c} ${r&&"sui-active"} ${a}`},(0,e.createElement)("div",{role:"dialog",id:n.modalID,className:`sui-modal-content ${n.classes}`,"aria-modal":"true","aria-labelledby":n.ariaLabelledbBy,"aria-describedby":n.ariaDescribedBy},(0,e.createElement)(Ze,null,(0,e.createElement)("div",{className:"header-wrap"},(0,e.createElement)(nt,null,(0,e.createElement)("div",{className:`sui-box-header sui-flatten sui-content-${s} modal-header`},n.closeButton&&(0,e.createElement)("button",{className:"sui-button-icon sui-button-float--right","data-modal-close":!0,onClick:i},(0,e.createElement)("i",{className:"sui-icon-close sui-md","aria-hidden":"true"}),(0,e.createElement)("span",{className:"sui-screen-reader-text"},ot("Close this modal","broken-link-checker"))),n.modalTitle&&(0,e.createElement)("h3",null,n.modalTitle),n.header))),(0,e.createElement)(Ze,{className:"sui-box-body sui-modal-content modal-content sui-box-center"},(0,e.createElement)(rt,null,n.content)),(0,e.createElement)(Ze,{className:"sui-box-footer sui-modal-content modal-content sui-box-center"},(0,e.createElement)(rt,null,n.footer)))))}function at(n){const[r,o]=(0,t.useState)(!1);(0,t.useEffect)((()=>{void 0!==n.active&&o(n.active)}),[n.active]);let i=!!n.active&&n.active,a=n.id?n.id:"",s=n.classes?n.classes:"",c=n.label?n.label:"",u=n.description?n.description:"",l=void 0!==n.onClick?n.onClick:"";return(0,e.createElement)("div",{className:`sui-form-field ${s}`},(0,e.createElement)("label",{htmlFor:a,className:"sui-toggle"},(0,e.createElement)("input",{type:"checkbox",id:a,defaultChecked:i,"aria-labelledby":`${a}-label`,"aria-describedby":`${a}-description`,onClick:l}),(0,e.createElement)("span",{className:"sui-toggle-slider","aria-hidden":"true"}),(0,e.createElement)("span",{id:`${a}-label`,className:"sui-toggle-label"},c),(0,e.createElement)("span",{id:`${a}-description`,className:"sui-description"},u)))}const st=(0,t.createContext)(),ct=n=>{const[r,o]=(0,t.useState)(!0),[i,a]=(0,t.useState)(!1);return(0,e.createElement)(st.Provider,{value:{visible:r,updateModalStatus:e=>{o(r,e)},getModalStatus:()=>r,updateToggleStatus:e=>{a(i,e)},getToggleStatus:()=>i,setChecked:a,setVisibility:o}},n.children)};function ut(n){const{getToggleStatus:r,setChecked:o}=(0,t.useContext)(st),i=r();let a=n.id?n.id:"",s=n.classes?n.classes:"",c=n.label?n.label:"",u=n.description?n.description:"";return(0,e.createElement)(at,{active:i,type:"checkbox",id:a,label:c,description:u,onClick:()=>o(!i),classes:s})}const{__:lt}=wp.i18n;function dt(n){const{getToggleStatus:r}=(0,t.useContext)(st);return(0,e.createElement)(d,{classes:r()&&"notificationVisible",content:lt("Cloud Link Checker will be automatically disabled when the Local engine is enabled","broken-link-checker")})}const{__:ft,sprintf:pt}=wp.i18n;function ht(t){return(0,e.createElement)(s,null,(0,e.createElement)(c,null,(0,e.createElement)(u,{className:"sui-padding-30"},(0,e.createElement)("p",{className:"horizontal-inset font-size-15"},ft("Local Link Checker is currently inactive as the Cloud engine is running. To optimize site performance and resource usage, we only allow activating one engine at a time. You can switch to the local version by enabling it below.","broken-link-checker")))),(0,e.createElement)(c,{classes:"sui-no-margin"},(0,e.createElement)(u,{classes:"sui-box-center sui-box-grey-light sui-padding-10"},(0,e.createElement)(ut,{active:!0,id:"wpmudev-blc-legacy-status",classes:"blc-legacy-status-toggle",label:ft("Enable the Local Broken Link Checker","broken-link-checker"),description:""}))),(0,e.createElement)(c,null,(0,e.createElement)(u,null,(0,e.createElement)("div",{className:"sui-padding-20"},(0,e.createElement)(dt,null)))))}function mt(e,t){return function(){return e.apply(t,arguments)}}const{toString:gt}=Object.prototype,{getPrototypeOf:bt}=Object,yt=(vt=Object.create(null),e=>{const t=gt.call(e);return vt[t]||(vt[t]=t.slice(8,-1).toLowerCase())});var vt;const wt=e=>(e=e.toLowerCase(),t=>yt(t)===e),Et=e=>t=>typeof t===e,{isArray:St}=Array,xt=Et("undefined"),kt=wt("ArrayBuffer"),Ct=Et("string"),Ot=Et("function"),At=Et("number"),Rt=e=>null!==e&&"object"==typeof e,Nt=e=>{if("object"!==yt(e))return!1;const t=bt(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},Tt=wt("Date"),Pt=wt("File"),jt=wt("Blob"),_t=wt("FileList"),It=wt("URLSearchParams");function Lt(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),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function Bt(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 Dt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Ft=e=>!xt(e)&&e!==Dt,Mt=(Ut="undefined"!=typeof Uint8Array&&bt(Uint8Array),e=>Ut&&e instanceof Ut);var Ut;const $t=wt("HTMLFormElement"),zt=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),qt=wt("RegExp"),Ht=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Lt(n,((n,o)=>{!1!==t(n,o,e)&&(r[o]=n)})),Object.defineProperties(e,r)},Wt="abcdefghijklmnopqrstuvwxyz",Gt="0123456789",Vt={DIGIT:Gt,ALPHA:Wt,ALPHA_DIGIT:Wt+Wt.toUpperCase()+Gt},Jt=wt("AsyncFunction"),Kt={isArray:St,isArrayBuffer:kt,isBuffer:function(e){return null!==e&&!xt(e)&&null!==e.constructor&&!xt(e.constructor)&&Ot(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||Ot(e.append)&&("formdata"===(t=yt(e))||"object"===t&&Ot(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&kt(e.buffer),t},isString:Ct,isNumber:At,isBoolean:e=>!0===e||!1===e,isObject:Rt,isPlainObject:Nt,isUndefined:xt,isDate:Tt,isFile:Pt,isBlob:jt,isRegExp:qt,isFunction:Ot,isStream:e=>Rt(e)&&Ot(e.pipe),isURLSearchParams:It,isTypedArray:Mt,isFileList:_t,forEach:Lt,merge:function e(){const{caseless:t}=Ft(this)&&this||{},n={},r=(r,o)=>{const i=t&&Bt(n,o)||o;Nt(n[i])&&Nt(r)?n[i]=e(n[i],r):Nt(r)?n[i]=e({},r):St(r)?n[i]=r.slice():n[i]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&Lt(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(Lt(t,((t,r)=>{n&&Ot(t)?e[r]=mt(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,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&bt(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:yt,kindOfTest:wt,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(!At(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:$t,hasOwnProperty:zt,hasOwnProp:zt,reduceDescriptors:Ht,freezeMethods:e=>{Ht(e,((t,n)=>{if(Ot(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];Ot(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:Bt,global:Dt,isContextDefined:Ft,ALPHABET:Vt,generateString:(e=16,t=Vt.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&Ot(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 Lt(e,((e,t)=>{const i=n(e,r+1);!xt(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:Jt,isThenable:e=>e&&(Rt(e)||Ot(e))&&Ot(e.then)&&Ot(e.catch)};function Yt(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)}Kt.inherits(Yt,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:Kt.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Xt=Yt.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(Yt,Qt),Object.defineProperty(Xt,"isAxiosError",{value:!0}),Yt.from=(e,t,n,r,o,i)=>{const a=Object.create(Xt);return Kt.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Yt.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const Zt=Yt;function en(e){return Kt.isPlainObject(e)||Kt.isArray(e)}function tn(e){return Kt.endsWith(e,"[]")?e.slice(0,-2):e}function nn(e,t,n){return e?e.concat(t).map((function(e,t){return e=tn(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const rn=Kt.toFlatObject(Kt,{},null,(function(e){return/^is[A-Z]/.test(e)})),on=function(e,t,n){if(!Kt.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Kt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Kt.isUndefined(t[e])}))).metaTokens,o=n.visitor||u,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Kt.isSpecCompliantForm(t);if(!Kt.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(Kt.isDate(e))return e.toISOString();if(!s&&Kt.isBlob(e))throw new Zt("Blob is not supported. Use a Buffer instead.");return Kt.isArrayBuffer(e)||Kt.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(Kt.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Kt.isArray(e)&&function(e){return Kt.isArray(e)&&!e.some(en)}(e)||(Kt.isFileList(e)||Kt.endsWith(n,"[]"))&&(s=Kt.toArray(e)))return n=tn(n),s.forEach((function(e,r){!Kt.isUndefined(e)&&null!==e&&t.append(!0===a?nn([n],r,i):null===a?n:n+"[]",c(e))})),!1;return!!en(e)||(t.append(nn(o,n,i),c(e)),!1)}const l=[],d=Object.assign(rn,{defaultVisitor:u,convertValue:c,isVisitable:en});if(!Kt.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!Kt.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+r.join("."));l.push(n),Kt.forEach(n,(function(n,i){!0===(!(Kt.isUndefined(n)||null===n)&&o.call(t,n,Kt.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])})),l.pop()}}(e),t};function an(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function sn(e,t){this._pairs=[],e&&on(e,this,t)}const cn=sn.prototype;cn.append=function(e,t){this._pairs.push([e,t])},cn.toString=function(e){const t=e?function(t){return e.call(this,t,an)}:an;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const un=sn;function ln(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function dn(e,t,n){if(!t)return e;const r=n&&n.encode||ln,o=n&&n.serialize;let i;if(i=o?o(t,n):Kt.isURLSearchParams(t)?t.toString():new un(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}const fn=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){Kt.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},pn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},hn={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:un,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},isStandardBrowserEnv:(()=>{let e;return("undefined"==typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&"undefined"!=typeof window&&"undefined"!=typeof document})(),isStandardBrowserWebWorkerEnv:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,protocols:["http","https","file","blob","url","data"]},mn=function(e){function t(e,n,r,o){let i=e[o++];const a=Number.isFinite(+i),s=o>=e.length;return i=!i&&Kt.isArray(r)?r.length:i,s?(Kt.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a):(r[i]&&Kt.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&&Kt.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a)}if(Kt.isFormData(e)&&Kt.isFunction(e.entries)){const n={};return Kt.forEachEntry(e,((e,r)=>{t(function(e){return Kt.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null},gn={"Content-Type":void 0},bn={transitional:pn,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=Kt.isObject(e);if(o&&Kt.isHTMLForm(e)&&(e=new FormData(e)),Kt.isFormData(e))return r&&r?JSON.stringify(mn(e)):e;if(Kt.isArrayBuffer(e)||Kt.isBuffer(e)||Kt.isStream(e)||Kt.isFile(e)||Kt.isBlob(e))return e;if(Kt.isArrayBufferView(e))return e.buffer;if(Kt.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return on(e,new hn.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return hn.isNode&&Kt.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=Kt.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return on(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(Kt.isString(e))try{return(0,JSON.parse)(e),Kt.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||bn.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&Kt.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 Zt.from(e,Zt.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:hn.classes.FormData,Blob:hn.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Kt.forEach(["delete","get","head"],(function(e){bn.headers[e]={}})),Kt.forEach(["post","put","patch"],(function(e){bn.headers[e]=Kt.merge(gn)}));const yn=bn,vn=Kt.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"]),wn=Symbol("internals");function En(e){return e&&String(e).trim().toLowerCase()}function Sn(e){return!1===e||null==e?e:Kt.isArray(e)?e.map(Sn):String(e)}function xn(e,t,n,r,o){return Kt.isFunction(r)?r.call(this,t,n):(o&&(t=n),Kt.isString(t)?Kt.isString(r)?-1!==t.indexOf(r):Kt.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=En(t);if(!o)throw new Error("header name must be a non-empty string");const i=Kt.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=Sn(e))}const i=(e,t)=>Kt.forEach(e,((e,n)=>o(e,n,t)));return Kt.isPlainObject(e)||e instanceof this.constructor?i(e,t):Kt.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?i((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]&&vn[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=En(e)){const n=Kt.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(Kt.isFunction(t))return t.call(this,e,n);if(Kt.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=En(e)){const n=Kt.findKey(this,e);return!(!n||void 0===this[n]||t&&!xn(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=En(e)){const o=Kt.findKey(n,e);!o||t&&!xn(0,n[o],o,t)||(delete n[o],r=!0)}}return Kt.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&&!xn(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return Kt.forEach(this,((r,o)=>{const i=Kt.findKey(n,o);if(i)return t[i]=Sn(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=Sn(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Kt.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Kt.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[wn]=this[wn]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=En(e);t[r]||(function(e,t){const n=Kt.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 Kt.isArray(e)?e.forEach(r):r(e),this}}kn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Kt.freezeMethods(kn.prototype),Kt.freezeMethods(kn);const Cn=kn;function On(e,t){const n=this||yn,r=t||n,o=Cn.from(r.headers);let i=r.data;return Kt.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function An(e){return!(!e||!e.__CANCEL__)}function Rn(e,t,n){Zt.call(this,null==e?"canceled":e,Zt.ERR_CANCELED,t,n),this.name="CanceledError"}Kt.inherits(Rn,Zt,{__CANCEL__:!0});const Nn=Rn,Tn=hn.isStandardBrowserEnv?{write:function(e,t,n,r,o,i){const a=[];a.push(e+"="+encodeURIComponent(t)),Kt.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Kt.isString(r)&&a.push("path="+r),Kt.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.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 Pn(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}const jn=hn.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=Kt.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};function In(e,t){let n=0;const r=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),u=r[a];o||(o=c),n[i]=s,r[i]=c;let l=a,d=0;for(;l!==i;)d+=n[l++],l%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;const f=u&&c-u;return f?Math.round(1e3*d/f):void 0}}(50,250);return o=>{const i=o.loaded,a=o.lengthComputable?o.total:void 0,s=i-n,c=r(s);n=i;const u={loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&i<=a?(a-i)/c:void 0,event:o};u[t?"download":"upload"]=!0,e(u)}}const Ln={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let r=e.data;const o=Cn.from(e.headers).normalize(),i=e.responseType;let a;function s(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}Kt.isFormData(r)&&(hn.isStandardBrowserEnv||hn.isStandardBrowserWebWorkerEnv?o.setContentType(!1):o.setContentType("multipart/form-data;",!1));let c=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=Pn(e.baseURL,e.url);function l(){if(!c)return;const r=Cn.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Zt("Request failed with status code "+n.status,[Zt.ERR_BAD_REQUEST,Zt.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:i&&"text"!==i&&"json"!==i?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:r,config:e,request:c}),c=null}if(c.open(e.method.toUpperCase(),dn(u,e.params,e.paramsSerializer),!0),c.timeout=e.timeout,"onloadend"in c?c.onloadend=l:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(l)},c.onabort=function(){c&&(n(new Zt("Request aborted",Zt.ECONNABORTED,e,c)),c=null)},c.onerror=function(){n(new Zt("Network Error",Zt.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||pn;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new Zt(t,r.clarifyTimeoutError?Zt.ETIMEDOUT:Zt.ECONNABORTED,e,c)),c=null},hn.isStandardBrowserEnv){const t=(e.withCredentials||jn(u))&&e.xsrfCookieName&&Tn.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===r&&o.setContentType(null),"setRequestHeader"in c&&Kt.forEach(o.toJSON(),(function(e,t){c.setRequestHeader(t,e)})),Kt.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),i&&"json"!==i&&(c.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&c.addEventListener("progress",In(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",In(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=t=>{c&&(n(!t||t.type?new Nn(null,e,c):t),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const d=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(u);d&&-1===hn.protocols.indexOf(d)?n(new Zt("Unsupported protocol "+d+":",Zt.ERR_BAD_REQUEST,e)):c.send(r||null)}))}};Kt.forEach(Ln,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));function Bn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Nn(null,e)}function Dn(e){return Bn(e),e.headers=Cn.from(e.headers),e.data=On.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),(e=>{e=Kt.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let o=0;o<t&&(n=e[o],!(r=Kt.isString(n)?Ln[n.toLowerCase()]:n));o++);if(!r){if(!1===r)throw new Zt(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT");throw new Error(Kt.hasOwnProp(Ln,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`)}if(!Kt.isFunction(r))throw new TypeError("adapter is not a function");return r})(e.adapter||yn.adapter)(e).then((function(t){return Bn(e),t.data=On.call(e,e.transformResponse,t),t.headers=Cn.from(t.headers),t}),(function(t){return An(t)||(Bn(e),t&&t.response&&(t.response.data=On.call(e,e.transformResponse,t.response),t.response.headers=Cn.from(t.response.headers))),Promise.reject(t)}))}const Fn=e=>e instanceof Cn?e.toJSON():e;function Mn(e,t){t=t||{};const n={};function r(e,t,n){return Kt.isPlainObject(e)&&Kt.isPlainObject(t)?Kt.merge.call({caseless:n},e,t):Kt.isPlainObject(t)?Kt.merge({},t):Kt.isArray(t)?t.slice():t}function o(e,t,n){return Kt.isUndefined(t)?Kt.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!Kt.isUndefined(t))return r(void 0,t)}function a(e,t){return Kt.isUndefined(t)?Kt.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>o(Fn(e),Fn(t),!0)};return Kt.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=c[r]||o,a=i(e[r],t[r],r);Kt.isUndefined(a)&&i!==s||(n[r]=a)})),n}const Un={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Un[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const $n={};Un.transitional=function(e,t,n){function r(e,t){return"[Axios v1.4.0] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new Zt(r(o," has been removed"+(t?" in "+t:"")),Zt.ERR_DEPRECATED);return t&&!$n[o]&&($n[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};const zn={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Zt("options must be an object",Zt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new Zt("option "+i+" must be "+n,Zt.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Zt("Unknown option "+i,Zt.ERR_BAD_OPTION)}},validators:Un},qn=zn.validators;class Hn{constructor(e){this.defaults=e,this.interceptors={request:new fn,response:new fn}}request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Mn(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;let i;void 0!==n&&zn.assertOptions(n,{silentJSONParsing:qn.transitional(qn.boolean),forcedJSONParsing:qn.transitional(qn.boolean),clarifyTimeoutError:qn.transitional(qn.boolean)},!1),null!=r&&(Kt.isFunction(r)?t.paramsSerializer={serialize:r}:zn.assertOptions(r,{encode:qn.function,serialize:qn.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase(),i=o&&Kt.merge(o.common,o[t.method]),i&&Kt.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Cn.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let l,d=0;if(!s){const e=[Dn.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,c),l=e.length,u=Promise.resolve(t);d<l;)u=u.then(e[d++],e[d++]);return u}l=a.length;let f=t;for(d=0;d<l;){const e=a[d++],t=a[d++];try{f=e(f)}catch(e){t.call(this,e);break}}try{u=Dn.call(this,f)}catch(e){return Promise.reject(e)}for(d=0,l=c.length;d<l;)u=u.then(c[d++],c[d++]);return u}getUri(e){return dn(Pn((e=Mn(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}Kt.forEach(["delete","get","head","options"],(function(e){Hn.prototype[e]=function(t,n){return this.request(Mn(n||{},{method:e,url:t,data:(n||{}).data}))}})),Kt.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Mn(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Hn.prototype[e]=t(),Hn.prototype[e+"Form"]=t(!0)}));const Wn=Hn;class Gn{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 Nn(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;return{token:new Gn((function(t){e=t})),cancel:e}}}const Vn=Gn,Jn={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(Jn).forEach((([e,t])=>{Jn[t]=e}));const Kn=Jn,Yn=function e(t){const n=new Wn(t),r=mt(Wn.prototype.request,n);return Kt.extend(r,Wn.prototype,n,{allOwnKeys:!0}),Kt.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Mn(t,n))},r}(yn);Yn.Axios=Wn,Yn.CanceledError=Nn,Yn.CancelToken=Vn,Yn.isCancel=An,Yn.VERSION="1.4.0",Yn.toFormData=on,Yn.AxiosError=Zt,Yn.Cancel=Yn.CanceledError,Yn.all=function(e){return Promise.all(e)},Yn.spread=function(e){return function(t){return e.apply(null,t)}},Yn.isAxiosError=function(e){return Kt.isObject(e)&&!0===e.isAxiosError},Yn.mergeConfig=Mn,Yn.AxiosHeaders=Cn,Yn.formToJSON=e=>mn(Kt.isHTMLForm(e)?new FormData(e):e),Yn.HttpStatusCode=Kn,Yn.default=Yn;const Xn=Yn,{__:Qn,sprintf:Zn}=wp.i18n;function er(n){const[r,o]=(0,t.useState)(!1),{getToggleStatus:i,setVisibility:a}=(0,t.useContext)(st);return(0,e.createElement)(l,{classes:"blc-route-button",color:"blue",content:Qn("Continue","broken-link-checker"),onClick:()=>{o(!0);const e=i();Xn.create({baseURL:window.blc_legacy_popup.data.rest_url,headers:{"content-type":"application/json","X-WP-Nonce":window.blc_legacy_popup.data.nonce}}).post(window.blc_legacy_popup.data.settings_endpoint,{action:"save-legacy-modal-option",use_legacy_blc_version:e}).then((function(e){o(!1),location.reload(),200===e.data.status_code?a(!1):console.log("Something went wrong")}))},isLoading:r,disabled:!i()})}const{__:tr,sprintf:nr}=wp.i18n;function rr(t){return(0,e.createElement)(l,{classes:"blc-route-button sui-button-ghost",outlined:!0,content:tr("Cancel","broken-link-checker"),onClick:()=>{location.href=window.blc_legacy_popup.data.blc_url}})}function or(t){return(0,e.createElement)(c,{classes:"sui-no-margin"},(0,e.createElement)(u,{classes:"horizontal-inset sui-box-right"},(0,e.createElement)(rr,null),(0,e.createElement)(er,null)))}var ir="data-focus-lock",ar="data-focus-lock-disabled";var sr={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},cr=function(e){var n=e.children;return t.createElement(t.Fragment,null,t.createElement("div",{key:"guard-first","data-focus-guard":!0,"data-focus-auto-guard":!0,style:sr}),n,n&&t.createElement("div",{key:"guard-last","data-focus-guard":!0,"data-focus-auto-guard":!0,style:sr}))};cr.propTypes={},cr.defaultProps={children:null};var ur=function(){return ur=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},ur.apply(this,arguments)};function lr(e){return e}function dr(e,t){void 0===t&&(t=lr);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}};return o}function fr(e,t){return void 0===t&&(t=lr),dr(e,t)}Object.create,Object.create;var pr=fr({},(function(e){return{target:e.target,currentTarget:e.currentTarget}})),hr=fr(),mr=fr(),gr=function(e){void 0===e&&(e={});var t=dr(null);return t.options=ur({async:!0,ssr:!1},e),t}({async:!0}),br=[],yr=t.forwardRef((function(e,n){var r,o=t.useState(),i=o[0],s=o[1],c=t.useRef(),u=t.useRef(!1),l=t.useRef(null),d=e.children,f=e.disabled,p=e.noFocusGuards,h=e.persistentFocus,m=e.crossFrame,g=e.autoFocus,b=(e.allowTextSelection,e.group),y=e.className,v=e.whiteList,w=e.hasPositiveIndices,E=e.shards,S=void 0===E?br:E,x=e.as,k=void 0===x?"div":x,C=e.lockProps,O=void 0===C?{}:C,A=e.sideCar,R=e.returnFocus,N=e.focusOptions,T=e.onActivation,P=e.onDeactivation,j=t.useState({})[0],_=t.useCallback((function(){l.current=l.current||document&&document.activeElement,c.current&&T&&T(c.current),u.current=!0}),[T]),I=t.useCallback((function(){u.current=!1,P&&P(c.current)}),[P]);(0,t.useEffect)((function(){f||(l.current=null)}),[]);var L,B,D,F,M,U=t.useCallback((function(e){var t=l.current;if(t&&t.focus){var n="function"==typeof R?R(t):R;if(n){var r="object"==typeof n?n:void 0;l.current=null,e?Promise.resolve().then((function(){return t.focus(r)})):t.focus(r)}}}),[R]),$=t.useCallback((function(e){u.current&&pr.useMedium(e)}),[]),z=hr.useMedium,q=t.useCallback((function(e){c.current!==e&&(c.current=e,s(e))}),[]),H=a(((r={})[ar]=f&&"disabled",r[ir]=b,r),O),W=!0!==p,G=W&&"tail"!==p,V=(L=[n,q],D=B||null,F=function(e){return L.forEach((function(t){return function(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}(t,e)}))},(M=(0,t.useState)((function(){return{value:D,callback:F,facade:{get current(){return M.value},set current(e){var t=M.value;t!==e&&(M.value=e,M.callback(e,t))}}}}))[0]).callback=F,M.facade);return t.createElement(t.Fragment,null,W&&[t.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:f?-1:0,style:sr}),w?t.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:f?-1:1,style:sr}):null],!f&&t.createElement(A,{id:j,sideCar:gr,observed:i,disabled:f,persistentFocus:h,crossFrame:m,autoFocus:g,whiteList:v,shards:S,onActivation:_,onDeactivation:I,returnFocus:U,focusOptions:N}),t.createElement(k,a({ref:V},H,{className:y,onBlur:z,onFocus:$}),d),G&&t.createElement("div",{"data-focus-guard":!0,tabIndex:f?-1:0,style:sr}))}));yr.propTypes={},yr.defaultProps={children:void 0,disabled:!1,returnFocus:!1,focusOptions:void 0,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,crossFrame:!0,hasPositiveIndices:void 0,allowTextSelection:void 0,group:void 0,className:void 0,whiteList:void 0,shards:void 0,as:"div",lockProps:{},onActivation:void 0,onDeactivation:void 0};const vr=yr;function wr(e,t){return wr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},wr(e,t)}function Er(e){return Er="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Er(e)}var Sr=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},xr=function(e){return Array.isArray(e)?e:[e]},kr=function(e){return Array.isArray(e)?e[0]:e},Cr=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},Or=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},Ar=function(e,t){var n=e.get(t);if(void 0!==n)return n;var r=function(e,t){return!e||Or(e)||!function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!(!t||!t.getPropertyValue||"none"!==t.getPropertyValue("display")&&"hidden"!==t.getPropertyValue("visibility"))}(e)&&t(Cr(e))}(t,Ar.bind(void 0,e));return e.set(t,r),r},Rr=function(e,t){var n=e.get(t);if(void 0!==n)return n;var r=function(e,t){return!(e&&!Or(e))||!!jr(e)&&t(Cr(e))}(t,Rr.bind(void 0,e));return e.set(t,r),r},Nr=function(e){return e.dataset},Tr=function(e){return"INPUT"===e.tagName},Pr=function(e){return Tr(e)&&"radio"===e.type},jr=function(e){var t=e.getAttribute("data-no-autofocus");return![!0,"true",""].includes(t)},_r=function(e){var t;return Boolean(e&&(null===(t=Nr(e))||void 0===t?void 0:t.focusGuard))},Ir=function(e){return!_r(e)},Lr=function(e){return Boolean(e)},Br=function(e,t){var n=e.tabIndex-t.tabIndex,r=e.index-t.index;if(n){if(!e.tabIndex)return 1;if(!t.tabIndex)return-1}return n||r},Dr=function(e,t,n){return Sr(e).map((function(e,t){return{node:e,index:t,tabIndex:n&&-1===e.tabIndex?(e.dataset||{}).focusGuard?0:-1:e.tabIndex}})).filter((function(e){return!t||e.tabIndex>=0})).sort(Br)},Fr=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"].join(","),Mr="".concat(Fr,", [data-focus-guard]"),Ur=function(e,t){return Sr((e.shadowRoot||e).children).reduce((function(e,n){return e.concat(n.matches(t?Mr:Fr)?[n]:[],Ur(n))}),[])},$r=function(e,t){return e.reduce((function(e,n){var r,o=Ur(n,t),i=(r=[]).concat.apply(r,o.map((function(e){return function(e,t){var n;return e instanceof HTMLIFrameElement&&(null===(n=e.contentDocument)||void 0===n?void 0:n.body)?$r([e.contentDocument.body],t):[e]}(e,t)})));return e.concat(i,n.parentNode?Sr(n.parentNode.querySelectorAll(Fr)).filter((function(e){return e===n})):[])}),[])},zr=function(e,t){return Sr(e).filter((function(e){return Ar(t,e)})).filter((function(e){return function(e){return!((Tr(e)||function(e){return"BUTTON"===e.tagName}(e))&&("hidden"===e.type||e.disabled))}(e)}))},qr=function(e,t){return void 0===t&&(t=new Map),Sr(e).filter((function(e){return Rr(t,e)}))},Hr=function(e,t,n){return Dr(zr($r(e,n),t),!0,n)},Wr=function(e,t){return Dr(zr($r(e),t),!1)},Gr=function(e,t){return e.shadowRoot?Gr(e.shadowRoot,t):!(void 0===Object.getPrototypeOf(e).contains||!Object.getPrototypeOf(e).contains.call(e,t))||Sr(e.children).some((function(e){var n;if(e instanceof HTMLIFrameElement){var r=null===(n=e.contentDocument)||void 0===n?void 0:n.body;return!!r&&Gr(r,t)}return Gr(e,t)}))},Vr=function(e){if(void 0===e&&(e=document),e&&e.activeElement){var t=e.activeElement;return t.shadowRoot?Vr(t.shadowRoot):t instanceof HTMLIFrameElement&&function(e){try{return t.contentWindow.document}catch(e){return}}()?Vr(t.contentWindow.document):t}},Jr=function(e){return e.parentNode?Jr(e.parentNode):e},Kr=function(e){return xr(e).filter(Boolean).reduce((function(e,t){var n=t.getAttribute(ir);return e.push.apply(e,n?function(e){for(var t=new Set,n=e.length,r=0;r<n;r+=1)for(var o=r+1;o<n;o+=1){var i=e[r].compareDocumentPosition(e[o]);(i&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(o),(i&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter((function(e,n){return!t.has(n)}))}(Sr(Jr(t).querySelectorAll("[".concat(ir,'="').concat(n,'"]:not([').concat(ar,'="disabled"])')))):[t]),e}),[])},Yr=function(e,t){return void 0===t&&(t=Vr(kr(e).ownerDocument)),!(!t||t.dataset&&t.dataset.focusGuard)&&Kr(e).some((function(e){return Gr(e,t)||function(e,t){return Boolean(Sr(e.querySelectorAll("iframe")).some((function(e){return function(e,t){return e===t}(e,t)})))}(e,t)}))},Xr=function(e,t){return Pr(e)&&e.name?function(e,t){return t.filter(Pr).filter((function(t){return t.name===e.name})).filter((function(e){return e.checked}))[0]||e}(e,t):e},Qr=function(e){return e[0]&&e.length>1?Xr(e[0],e):e[0]},Zr=function(e,t){return e.length>1?e.indexOf(Xr(e[t],e)):t},eo="NEW_FOCUS",to=function(e,t){return void 0===t&&(t=[]),t.push(e),e.parentNode&&to(e.parentNode.host||e.parentNode,t),t},no=function(e,t){for(var n=to(e),r=to(t),o=0;o<n.length;o+=1){var i=n[o];if(r.indexOf(i)>=0)return i}return!1},ro=function(e,t,n){var r=xr(e),o=xr(t),i=r[0],a=!1;return o.filter(Boolean).forEach((function(e){a=no(a||e,e)||a,n.filter(Boolean).forEach((function(e){var t=no(i,e);t&&(a=!a||Gr(t,a)?t:no(t,a))}))})),a},oo=function(e,t){var n,r,o,i,a,s,c=Vr(xr(e).length>0?document:kr(e).ownerDocument),u=Kr(e).filter(Ir),l=ro(c||e,e,u),d=new Map,f=Wr(u,d),p=Hr(u,d).filter((function(e){var t=e.node;return Ir(t)}));if(p[0]||(p=f)[0]){var h,m,g,b=Wr([l],d).map((function(e){return e.node})),y=(h=b,m=p,g=new Map,m.forEach((function(e){return g.set(e.node,e)})),h.map((function(e){return g.get(e)})).filter(Lr)),v=y.map((function(e){return e.node})),w=function(e,t,n,r){var o=e.length,i=e[0],a=e[o-1],s=_r(n);if(!(n&&e.indexOf(n)>=0)){var c,u,l=void 0!==n?t.indexOf(n):-1,d=r?t.indexOf(r):l,f=r?e.indexOf(r):-1,p=l-d,h=t.indexOf(i),m=t.indexOf(a),g=(c=t,u=new Set,c.forEach((function(e){return u.add(Xr(e,c))})),c.filter((function(e){return u.has(e)}))),b=(void 0!==n?g.indexOf(n):-1)-(r?g.indexOf(r):l),y=Zr(e,0),v=Zr(e,o-1);return-1===l||-1===f?eo:!p&&f>=0?f:l<=h&&s&&Math.abs(p)>1?v:l>=m&&s&&Math.abs(p)>1?y:p&&Math.abs(b)>1?f:l<=h?v:l>m?y:p?Math.abs(p)>1?f:(o+f+p)%o:void 0}}(v,b,c,t);if(w===eo){var E=(n=f,r=v,o=function(e,t){return e.reduce((function(e,n){return e.concat(function(e,t){return zr((n=e.querySelectorAll("[".concat("data-autofocus-inside","]")),Sr(n).map((function(e){return $r([e])})).reduce((function(e,t){return e.concat(t)}),[])),t);var n}(n,t))}),[])}(u,d),a=n.map((function(e){return e.node})),(s=qr(a.filter((i=o,function(e){var t,n=null===(t=Nr(e))||void 0===t?void 0:t.autofocus;return e.autofocus||void 0!==n&&"false"!==n||i.indexOf(e)>=0}))))&&s.length?Qr(s):Qr(qr(r)));return E?{node:E}:void console.warn("focus-lock: cannot find any node to move focus into")}return void 0===w?w:y[w]}},io=0,ao=!1;const so=function(e,t,n){void 0===n&&(n={});var r,o,i=oo(e,t);if(!ao&&i){if(io>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),ao=!0,void setTimeout((function(){ao=!1}),1);io++,r=i.node,o=n.focusOptions,"focus"in r&&r.focus(o),"contentWindow"in r&&r.contentWindow&&r.contentWindow.focus(),io--}};function co(e){var t=window.setImmediate;void 0!==t?t(e):setTimeout(e,1)}var uo=null,lo=null,fo=null,po=!1,ho=function(){return!0};function mo(e,t,n,r){var o=null,i=e;do{var a=r[i];if(a.guard)a.node.dataset.focusAutoGuard&&(o=a);else{if(!a.lockItem)break;if(i!==e)return;o=null}}while((i+=n)!==t);o&&(o.node.tabIndex=0)}var go=function(e){return e&&"current"in e?e.current:e},bo=function e(t,n,r){return n&&(n.host===t&&(!n.activeElement||r.contains(n.activeElement))||n.parentNode&&e(t,n.parentNode,r))},yo=function(){var e,t,n,r,o,i,a,s=!1;if(uo){var c=uo,u=c.observed,l=c.persistentFocus,d=c.autoFocus,f=c.shards,p=c.crossFrame,h=c.focusOptions,m=u||fo&&fo.portaledElement,g=document&&document.activeElement;if(m){var b=[m].concat(f.map(go).filter(Boolean));if(g&&!function(e){return(uo.whiteList||ho)(e)}(g)||(l||(p?Boolean(po):"meanwhile"===po)||!(document&&document.activeElement===document.body||function(e){void 0===e&&(e=document);var t=Vr(e);return!!t&&Sr(e.querySelectorAll("[".concat("data-no-focus-lock","]"))).some((function(e){return Gr(e,t)}))}())||!lo&&d)&&(m&&!(Yr(b)||g&&function(e,t){return t.some((function(t){return bo(e,t,t)}))}(g,b)||(e=g,fo&&fo.portaledElement===e))&&(document&&!lo&&g&&!d?(g.blur&&g.blur(),document.body.focus()):(s=so(b,lo,{focusOptions:h}),fo={})),po=!1,lo=document&&document.activeElement),document){var y=document&&document.activeElement,v=(n=Kr(t=b).filter(Ir),r=ro(t,t,n),o=new Map,i=Hr([r],o,!0),a=Hr(n,o).filter((function(e){var t=e.node;return Ir(t)})).map((function(e){return e.node})),i.map((function(e){var t=e.node;return{node:t,index:e.index,lockItem:a.indexOf(t)>=0,guard:_r(t)}}))),w=v.map((function(e){return e.node})).indexOf(y);w>-1&&(v.filter((function(e){var t=e.guard,n=e.node;return t&&n.dataset.focusAutoGuard})).forEach((function(e){return e.node.removeAttribute("tabIndex")})),mo(w,v.length,1,v),mo(w,-1,-1,v))}}}return s},vo=function(e){yo()&&e&&(e.stopPropagation(),e.preventDefault())},wo=function(){return co(yo)},Eo=function(){po="just",setTimeout((function(){po="meanwhile"}),0)};pr.assignSyncMedium((function(e){var t=e.target,n=e.currentTarget;n.contains(t)||(fo={observerNode:n,portaledElement:t})})),hr.assignMedium(wo),mr.assignMedium((function(e){return e({moveFocusInside:so,focusInside:Yr})}));const So=(xo=function(e){return e.filter((function(e){return!e.disabled}))},ko=function(e){var t=e.slice(-1)[0];t&&!uo&&(document.addEventListener("focusin",vo),document.addEventListener("focusout",wo),window.addEventListener("blur",Eo));var n=uo,r=n&&t&&t.id===n.id;uo=t,n&&!r&&(n.onDeactivation(),e.filter((function(e){return e.id===n.id})).length||n.returnFocus(!t)),t?(lo=null,r&&n.observed===t.observed||t.onActivation(),yo(),co(yo)):(document.removeEventListener("focusin",vo),document.removeEventListener("focusout",wo),window.removeEventListener("blur",Eo),lo=null)},function(e){var n,o=[];function i(){n=xo(o.map((function(e){return e.props}))),ko(n)}var a,s,c,u=function(t){var a,s;function c(){return t.apply(this,arguments)||this}s=t,(a=c).prototype=Object.create(s.prototype),a.prototype.constructor=a,wr(a,s),c.peek=function(){return n};var u=c.prototype;return u.componentDidMount=function(){o.push(this),i()},u.componentDidUpdate=function(){i()},u.componentWillUnmount=function(){var e=o.indexOf(this);o.splice(e,1),i()},u.render=function(){return r().createElement(e,this.props)},c}(t.PureComponent);return a=u,s="displayName",c="SideEffect("+function(e){return e.displayName||e.name||"Component"}(e)+")",(s=function(e){var t=function(e,t){if("object"!==Er(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Er(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Er(t)?t:String(t)}(s))in a?Object.defineProperty(a,s,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[s]=c,u})((function(){return null}));var xo,ko,Co=t.forwardRef((function(e,n){return t.createElement(vr,a({sideCar:So,ref:n},e))})),Oo=vr.propTypes||{};Oo.sideCar,function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n])}(Oo,["sideCar"]),Co.propTypes={};const Ao=Co;function Ro(n){const{visible:r}=(0,t.useContext)(st);return(0,e.createElement)(Ao,null,(0,e.createElement)(it,{isActive:r,closeButton:!1,modalID:"blc-plugin-activation-modal",classes:"blc-plugin-activation-modal",ariaLabelledBy:"blc-plugin-activation-modal-header",ariaDescribedBy:"blc-plugin-activation-modal-header",header:(0,e.createElement)(i,null),content:(0,e.createElement)(ht,null),footer:(0,e.createElement)(or,null)}))}const No=()=>(0,e.createElement)(ct,null,(0,e.createElement)(Ro,null)),To=document.getElementById(window.blc_legacy_popup.data.unique_id);e.createRoot?(0,e.createRoot)(To).render((0,e.createElement)(e.StrictMode,null,(0,e.createElement)(No,null))):(0,e.render)((0,e.createElement)(e.StrictMode,null,(0,e.createElement)(No,null)),To)})()})();