(()=>{var e,t={217:(e,t,s)=>{"use strict";const r=window.React,a=window.wp.element;function n(e,t){void 0!==a.createRoot?(0,a.createRoot)(t).render(e):(0,a.render)(e,t)}const o=window.wp.i18n,i=window.wp.components,l=window.wp.apiFetch;var c=s.n(l),m=s(162),d=s.n(m);function p(e,t=null){return"generatepress"===e?(0,r.createElement)("svg",{width:"20",height:"20",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 600 600",preserveAspectRatio:"none"},(0,r.createElement)("path",{d:"M485.2 427.8l-99.1-46.2 15.8-34c5.6-11.9 8.8-24.3 10-36.7 3.3-33.7-9-67.3-33.2-91.1-8.9-8.7-19.3-16.1-31.3-21.7-11.9-5.6-24.3-8.8-36.7-10-33.7-3.3-67.4 9-91.1 33.2-8.7 8.9-16.1 19.3-21.7 31.3l-15.8 34-30.4 65.2c-.7 1.5-.1 3.3 1.5 4l65.2 30.4 34 15.8 34 15.8 68 31.7 74.7 34.8c-65 45.4-152.1 55.2-228.7 17.4C90.2 447.4 44.1 313.3 97.3 202.6c53.3-110.8 186-158.5 297.8-106.3 88.1 41.1 137.1 131.9 129.1 223.4-.1 1.3.6 2.4 1.7 3l65.6 30.6c1.8.8 3.9-.3 4.2-2.2 22.6-130.7-44-265.4-170.5-323.5-150.3-69-327-4.1-396.9 145.8-70 150.1-5.1 328.5 145.1 398.5 114.1 53.2 244.5 28.4 331.3-52.3 17.9-16.6 33.9-35.6 47.5-56.8 1-1.5.4-3.6-1.3-4.3l-65.7-30.7zm-235-109.6l15.8-34c8.8-18.8 31.1-26.9 49.8-18.1s26.9 31 18.1 49.8l-15.8 34-34-15.8-33.9-15.9z"})):"dynamic"===e?(0,r.createElement)("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 256 256"},(0,r.createElement)("path",{d:"M128 26c-52.71 0-94 23.72-94 54v96c0 30.28 41.29 54 94 54s94-23.72 94-54V80c0-30.28-41.29-54-94-54zm0 12c44.449 0 82 19.233 82 42s-37.551 42-82 42-82-19.233-82-42 37.551-42 82-42zm82 138c0 22.767-37.551 42-82 42s-82-19.233-82-42v-21.21C61.97 171.163 92.374 182 128 182s66.03-10.837 82-27.21zm0-48c0 22.767-37.551 42-82 42s-82-19.233-82-42v-21.21C61.97 123.163 92.374 134 128 134s66.03-10.837 82-27.21z",fill:"currentColor"})):"tools"===e?(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},(0,r.createElement)("path",{d:"M14.7 6.3a1 1 0 000 1.4l1.6 1.6a1 1 0 001.4 0l3.77-3.77a6 6 0 01-7.94 7.94l-6.91 6.91a2.12 2.12 0 01-3-3l6.91-6.91a6 6 0 017.94-7.94l-3.76 3.76z"})):"sliders"===e?(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",viewBox:"0 0 24 24"},(0,r.createElement)("path",{d:"M4 21v-7M4 10V3M12 21v-9M12 8V3M20 21v-5M20 12V3M1 14h6M9 8h6M17 16h6"})):"plus-circle"===e?(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",clipRule:"evenodd",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",viewBox:"0 0 24 24",style:t},(0,r.createElement)("path",{d:"m12.002 2c5.518 0 9.998 4.48 9.998 9.998 0 5.517-4.48 9.997-9.998 9.997-5.517 0-9.997-4.48-9.997-9.997 0-5.518 4.48-9.998 9.997-9.998zm0 1.5c-4.69 0-8.497 3.808-8.497 8.498s3.807 8.497 8.497 8.497 8.498-3.807 8.498-8.497-3.808-8.498-8.498-8.498zm-.747 7.75h-3.5c-.414 0-.75.336-.75.75s.336.75.75.75h3.5v3.5c0 .414.336.75.75.75s.75-.336.75-.75v-3.5h3.5c.414 0 .75-.336.75-.75s-.336-.75-.75-.75h-3.5v-3.5c0-.414-.336-.75-.75-.75s-.75.336-.75.75z",fillRule:"nonzero"})):"minus-circle"===e?(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",clipRule:"evenodd",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",viewBox:"0 0 24 24",style:t},(0,r.createElement)("path",{d:"m12.002 2.005c5.518 0 9.998 4.48 9.998 9.997 0 5.518-4.48 9.998-9.998 9.998-5.517 0-9.997-4.48-9.997-9.998 0-5.517 4.48-9.997 9.997-9.997zm0 1.5c-4.69 0-8.497 3.807-8.497 8.497s3.807 8.498 8.497 8.498 8.498-3.808 8.498-8.498-3.808-8.497-8.498-8.497zm4.253 7.75h-8.5c-.414 0-.75.336-.75.75s.336.75.75.75h8.5c.414 0 .75-.336.75-.75s-.336-.75-.75-.75z",fillRule:"nonzero"})):"trash"===e?(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",style:{fill:"none"},stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",viewBox:"0 0 24 24"},(0,r.createElement)("path",{d:"M3 6h18M19 6v14a2 2 0 01-2 2H7a2 2 0 01-2-2V6m3 0V4a2 2 0 012-2h4a2 2 0 012 2v2M10 11v6M14 11v6"})):void 0}const u=()=>{const[e,t]=(0,a.useState)(!1),[s,n]=(0,a.useState)(""),[l,m]=(0,a.useState)(""),[u,g]=(0,a.useState)(!1),[_,h]=(0,a.useState)(!1),[v,b]=(0,a.useState)(generateProDashboard.modules);if((0,a.useEffect)((()=>{e||t(!0)})),!e)return(0,r.createElement)(i.Placeholder,{className:"generatepress-dashboard__placeholder"},(0,r.createElement)(i.Spinner,null));const E=(e,t,s)=>{n(t);const r=e.target.previousElementSibling.previousElementSibling;c()({path:"/generatepress-pro/v1/modules",method:"POST",data:{key:v[t].key,action:s}}).then((e=>{if(n(""),r.classList.add("generatepress-dashboard__section-item-message__show"),r.textContent=e.response,e.success&&e.response){b((e=>({...e,[t]:{...e[t],isActive:"activate"===s}})));const e={"Font Library":{id:"gp-font-library-tab",url:generateProDashboard.fontLibraryUrl},"Site Library":{id:"gp-site-library-tab",url:generateProDashboard.siteLibraryUrl},Elements:{id:"gp-elements-tab",url:generateProDashboard.elementsUrl}};let a=null;if(t in e&&(a=document.querySelector(`a#${e[t].id}`),!a)){a=document.createElement("a"),a.id=e[t].id,a.href=e[t].url,a.textContent=t,a.style.display="none";const s=document.querySelector(".generatepress-dashboard-header__navigation");if(s){const e=s.children[0].nextSibling;s.insertBefore(a,e)}}a&&("activate"===s?a.style.display="flex":"deactivate"===s&&(a.style.display="none")),setTimeout((function(){r.classList.remove("generatepress-dashboard__section-item-message__show")}),3e3)}else r.classList.add("generatepress-dashboard__section-item-message__error")}))};return(0,r.createElement)(r.Fragment,null,!!v&&(0,r.createElement)("div",{className:"generatepress-dashboard__section"},(0,r.createElement)("div",{className:"generatepress-dashboard__section-title"},(0,r.createElement)("h2",null,(0,o.__)("Modules","gp-premium"))),Object.keys(v).filter((e=>!(!v[e].isActive&&v[e].deprecated))).map((e=>(0,r.createElement)("div",{className:"generatepress-dashboard__section-item",key:e,style:{boxShadow:v[e].isActive?"-5px 0 0 var(--wp-admin-theme-color)":"-5px 0 0 #ddd",pointerEvents:"WooCommerce"!==e||generateProDashboard.hasWooCommerce?null:"none",opacity:"WooCommerce"!==e||generateProDashboard.hasWooCommerce?null:"0.5"}},(0,r.createElement)("div",{className:"generatepress-dashboard__section-item-content"},(0,r.createElement)(r.Fragment,null,!!v[e].title&&(0,r.createElement)("div",{className:"generatepress-dashboard__section-item-title"},v[e].title,!!v[e].isActive&&"Site Library"===e&&(0,r.createElement)("a",{className:"generatepress-module-action",href:generateProDashboard.siteLibraryUrl},(0,o.__)("Open Site Library","gp-premium")," →"),!!v[e].isActive&&"Elements"===e&&(0,r.createElement)("a",{className:"generatepress-module-action",href:generateProDashboard.elementsUrl},(0,o.__)("Open Elements","gp-premium")," →"),!!v[e].isActive&&"Font Library"===e&&(0,r.createElement)("a",{className:"generatepress-module-action",href:generateProDashboard.fontLibraryUrl},(0,o.__)("Open Font Library","gp-premium")," →")),!!v[e].description&&(0,r.createElement)("div",{className:"generatepress-dashboard__section-item-description"},v[e].description))),(0,r.createElement)("div",{className:"generatepress-dashboard__section-item-action"},(0,r.createElement)("span",{className:"generatepress-dashboard__section-item-message"}),(0,r.createElement)("div",{className:"generatepress-dashboard__section-item-settings"},!!v[e].settings&&!!v[e].isActive&&(0,r.createElement)(r.Fragment,null,e!==l&&(0,r.createElement)(i.Tooltip,{text:(0,o.__)("Open tools for this module.","gp-premium")},(0,r.createElement)(i.Button,{isTertiary:!0,icon:p("sliders"),onClick:()=>m(e)})),e===l&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(i.Button,{disabled:!!_,className:"generatepress-dashboard__reset-button",isPrimary:!0,onClick:t=>{const s={[e]:v[e]};window.confirm((0,o.__)("This will delete all settings for this module. It cannot be undone.","gp-premium"))&&((e,t)=>{h(!0);const s=e.target.parentNode.previousElementSibling;c()({path:"/generatepress-pro/v1/reset",method:"POST",data:{items:t}}).then((e=>{h(!1),s.classList.add("generatepress-dashboard__section-item-message__show"),"object"==typeof e.response?s.textContent=(0,o.__)("Settings reset.","gp-premium"):s.textContent=e.response,e.success&&e.response?setTimeout((function(){s.classList.remove("generatepress-dashboard__section-item-message__show")}),3e3):s.classList.add("generatepress-dashboard__section-item-message__error")}))})(t,s)}},!!_&&(0,r.createElement)(i.Spinner,null),!_&&(0,o.__)("Reset","gp-premium")),(0,r.createElement)(i.Button,{isTertiary:!0,onClick:t=>{((e,t,s,r)=>{g(!0);const a=e.target.parentNode.previousElementSibling;c()({path:"/generatepress-pro/v1/export",method:"POST",data:{items:t,type:"all"}}).then((e=>{if(g(!1),a.classList.add("generatepress-dashboard__section-item-message__show"),"object"==typeof e.response?a.textContent=(0,o.__)("Options exported","gp-premium"):a.textContent=e.response,e.success&&e.response){const t=(new Date).toISOString().slice(0,10),s="generatepress-settings-"+r+"-"+t+".json",n=new Blob([JSON.stringify(e.response)],{type:"application/json",name:s});d()(n,s),setTimeout((function(){a.classList.remove("generatepress-dashboard__section-item-message__show")}),3e3)}else a.classList.add("generatepress-dashboard__section-item-message__error")}))})(t,{[e]:v[e]},0,e)}},!!u&&(0,r.createElement)(i.Spinner,null),!u&&(0,o.__)("Export","gp-premium"))))),(0,r.createElement)(i.Button,{disabled:e===s||"WooCommerce"===e&&!generateProDashboard.hasWooCommerce,isPrimary:!v[e].isActive||null,isSecondary:!!v[e].isActive||null,onClick:t=>{if(v[e].isActive){if(v[e].deprecated&&!window.confirm((0,o.__)("This module has been deprecated. Deactivating it will remove it from this list.","gp-premium")))return;E(t,e,"deactivate")}else E(t,e,"activate")}},e===s&&(0,r.createElement)(i.Spinner,null),e!==s&&!v[e].isActive&&(0,o.__)("Activate","gp-premium"),e!==s&&!!v[e].isActive&&(0,o.__)("Deactivate","gp-premium"))))))))};window.addEventListener("DOMContentLoaded",(()=>{n((0,r.createElement)(u,null),document.getElementById("generatepress-module-list"))}));const g=()=>{const[e,t]=(0,a.useState)(!1),[s,n]=(0,a.useState)(!1),[l,m]=(0,a.useState)(generateProDashboard.licenseKey),[d,p]=(0,a.useState)(generateProDashboard.licenseKeyStatus),[u,g]=(0,a.useState)(generateProDashboard.betaTester),[_,h]=(0,a.useState)(!1);if((0,a.useEffect)((()=>{h(!!l)}),[]),(0,a.useEffect)((()=>{e||t(!0)})),!e)return(0,r.createElement)(i.Placeholder,{className:"generatepress-dashboard__placeholder"},(0,r.createElement)(i.Spinner,null));const v=(e=l)=>{n(!0),h(!!e);const t=document.querySelector(".generatepress-dashboard__section-item-message");t.classList.remove("generatepress-dashboard__section-item-message__show"),c()({path:"/generatepress-pro/v1/license",method:"POST",data:{key:e,status:d}}).then((e=>{n(!1),t.classList.add("generatepress-dashboard__section-item-message__show"),e.success&&e.response?(t.classList.remove("generatepress-dashboard__section-item-message__error"),"valid"===e.response.license?t.textContent=(0,o.__)("License key activated.","gp-premium"):"deactivated"===e.response.license?t.textContent=(0,o.__)("License key deactivated.","gp-premium"):t.textContent=e.response,p(e.response.license),setTimeout((function(){t.classList.remove("generatepress-dashboard__section-item-message__show")}),3e3)):(t.classList.add("generatepress-dashboard__section-item-message__error"),t.textContent=e.response)}))};return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:"generatepress-dashboard__section generatepress-license-key-area"},(0,r.createElement)("div",{className:"generatepress-dashboard__section-title"},(0,r.createElement)("h2",null,(0,o.__)("License Key","gp-premium")),(0,r.createElement)("span",{className:"generatepress-dashboard__section-item-message"})),(0,r.createElement)("div",{className:"generatepress-dashboard__section-item"},(0,r.createElement)(i.Notice,{className:"generatepress-dashboard__section-license-notice",isDismissible:!1,status:"valid"===d?"success":"warning"},"valid"===d?(0,r.createElement)("span",null,(0,o.__)("Receiving premium updates.","gp-premium")):(0,r.createElement)("span",null,(0,o.__)("Not receiving premium updates.","gp-premium"))),(0,r.createElement)("div",{className:"generatepress-dashboard__section-license-key"},_?(0,r.createElement)(i.TextControl,{type:"text",autoComplete:"off",value:l,disabled:!0}):(0,r.createElement)(r.Fragment,null,(0,r.createElement)(i.TextControl,{placeholder:(0,o.__)("Enter your license key to activate updates.","gp-premium"),type:"text",autoComplete:"off",onChange:e=>m(e)}),!!l&&(0,r.createElement)(i.Button,{variant:"primary",disabled:!!s,onClick:()=>v()},s&&(0,r.createElement)(i.Spinner,null),!s&&(0,o.__)("Save key"))),!!_&&!!l&&(0,r.createElement)(i.Button,{variant:"primary",onClick:()=>{m(""),v("")}},(0,o.__)("Clear key","generateblocks"))),""!==l&&(0,r.createElement)("div",{className:"generatepress-dashboard__section-beta-tester"},(0,r.createElement)(i.ToggleControl,{label:(0,o.__)("Receive development version updates"),help:(0,o.__)("Get alpha, beta, and release candidate updates directly to your Dashboard.","gp-premium"),checked:!!u,onChange:e=>{g(e),(e=>{const t=document.querySelector(".generatepress-dashboard__section-item-message");t.classList.remove("generatepress-dashboard__section-item-message__show"),c()({path:"/generatepress-pro/v1/beta",method:"POST",data:{beta:e}}).then((e=>{n(!1),t.classList.add("generatepress-dashboard__section-item-message__show"),e.success&&e.response?(t.classList.remove("generatepress-dashboard__section-item-message__error"),t.textContent=e.response,setTimeout((function(){t.classList.remove("generatepress-dashboard__section-item-message__show")}),3e3)):(t.classList.add("generatepress-dashboard__section-item-message__error"),t.textContent=e.response)}))})(e)}})))))};window.addEventListener("DOMContentLoaded",(()=>{n((0,r.createElement)(g,null),document.getElementById("generatepress-license-key"))}));const _=()=>{const[e,t]=(0,a.useState)(!1),[s,n]=(0,a.useState)(!1),[l,m]=(0,a.useState)(!1),[p,u]=(0,a.useState)(!1),[g,_]=(0,a.useState)("all");return(0,a.useEffect)((()=>{e||t(!0)})),e?(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:"generatepress-dashboard__section"},(0,r.createElement)("div",{className:"generatepress-dashboard__section-title"},(0,r.createElement)("h2",null,(0,o.__)("Import / Export","gp-premium"))),(0,r.createElement)("div",{className:"generatepress-dashboard__section-item"},(0,r.createElement)("div",{className:"generatepress-dashboard__section-item-content"},(0,r.createElement)("div",{className:"generatepress-dashboard__section-item-title"},(0,o.__)("Export","gp-premium")),(0,r.createElement)("div",{className:"generatepress-dashboard__section-item-description"},(0,o.__)("Export your customizer settings.","gp-premium"))),(0,r.createElement)("div",{className:"generatepress-dashboard__section-item-action"},(0,r.createElement)("span",{className:"generatepress-dashboard__section-item-message"}),(0,r.createElement)(i.ButtonGroup,{className:"generatepress-dashboard__section-item-export-type"},(0,r.createElement)(i.Button,{isPrimary:"all"===g,onClick:()=>_("all")},(0,o.__)("All","gp-premium")),(0,r.createElement)(i.Button,{isPrimary:"global-colors"===g,onClick:()=>_("global-colors")},(0,o.__)("Global Colors","gp-premium")),(0,r.createElement)(i.Button,{isPrimary:"typography"===g,onClick:()=>_("typography")},(0,o.__)("Typography","gp-premium"))),(0,r.createElement)(i.Button,{disabled:!!s,isPrimary:!0,onClick:e=>(e=>{n(!0);const t=e.target.previousElementSibling.previousElementSibling;c()({path:"/generatepress-pro/v1/export",method:"POST",data:{items:!1,type:g}}).then((e=>{if(n(!1),t.classList.add("generatepress-dashboard__section-item-message__show"),"object"==typeof e.response?t.textContent=(0,o.__)("Options exported","gp-premium"):t.textContent=e.response,e.success&&e.response){const s=(new Date).toISOString().slice(0,10),r="generatepress-settings-"+g+"-"+s+".json",a=new Blob([JSON.stringify(e.response)],{type:"application/json",name:r});d()(a,r),setTimeout((function(){t.classList.remove("generatepress-dashboard__section-item-message__show")}),3e3)}else t.classList.add("generatepress-dashboard__section-item-message__error")}))})(e)},!!s&&(0,r.createElement)(i.Spinner,null),!s&&(0,o.__)("Export","gp-premium")))),(0,r.createElement)("div",{className:"generatepress-dashboard__section-item"},(0,r.createElement)("div",{className:"generatepress-dashboard__section-item-content"},(0,r.createElement)("div",{className:"generatepress-dashboard__section-item-title"},(0,o.__)("Import","gp-premium")),(0,r.createElement)("div",{className:"generatepress-dashboard__section-item-description"},(0,o.__)("Import your customizer settings.","gp-premium"))),(0,r.createElement)("div",{className:"generatepress-dashboard__section-item-action"},(0,r.createElement)("span",{className:"generatepress-dashboard__section-item-message"}),(0,r.createElement)("input",{type:"file",accept:".json",onChange:e=>{const t=new FileReader;t.onloadend=()=>{let e=t.result;e=JSON.parse(e),e&&u(e)},t.readAsText(e.target.files[0])}}),(0,r.createElement)(i.Button,{disabled:!!l||!p,isPrimary:!0,onClick:e=>{window.confirm((0,o.__)("This can overwrite existing settings and cannot be undone.","gp-premium"))&&(e=>{m(!0);const t=e.target.previousElementSibling.previousElementSibling,s=e.target.previousElementSibling;s.style.display="none",c()({path:"/generatepress-pro/v1/import",method:"POST",data:{import:p}}).then((e=>{m(!1),t.classList.add("generatepress-dashboard__section-item-message__show"),"object"==typeof e.response?t.textContent=(0,o.__)("Options imported.","gp-premium"):t.textContent=e.response,e.success&&e.response?setTimeout((function(){t.classList.remove("generatepress-dashboard__section-item-message__show"),s.style.display="block",s.value=""}),3e3):t.classList.add("generatepress-dashboard__section-item-message__error")}))})(e)}},!!l&&(0,r.createElement)(i.Spinner,null),!l&&(0,o.__)("Import","gp-premium")))))):(0,r.createElement)(i.Placeholder,{className:"generatepress-dashboard__placeholder"},(0,r.createElement)(i.Spinner,null))};window.addEventListener("DOMContentLoaded",(()=>{n((0,r.createElement)(_,null),document.getElementById("generatepress-import-export-pro"))}));const h=()=>{const[e,t]=(0,a.useState)(!1),[s,n]=(0,a.useState)(!1);return(0,a.useEffect)((()=>{e||t(!0)})),e?(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:"generatepress-dashboard__section"},(0,r.createElement)("div",{className:"generatepress-dashboard__section-title",style:{marginBottom:0}},(0,r.createElement)("h2",null,(0,o.__)("Reset","gp-premium"))),(0,r.createElement)("div",{className:"generatepress-dashboard__section-item-description",style:{marginTop:0}},(0,o.__)("Reset your customizer settings.","gp-premium")),(0,r.createElement)(i.Button,{className:"generatepress-dashboard__reset-button",style:{marginTop:"10px"},disabled:!!s,isPrimary:!0,onClick:e=>{window.confirm((0,o.__)("This will delete all of your customizer settings. It cannot be undone.","gp-premium"))&&(e=>{n(!0);const t=e.target.nextElementSibling;c()({path:"/generatepress-pro/v1/reset",method:"POST",data:{items:!1}}).then((e=>{n(!1),t.classList.add("generatepress-dashboard__section-item-message__show"),"object"==typeof e.response?t.textContent=(0,o.__)("Settings reset.","gp-premium"):t.textContent=e.response,e.success&&e.response?setTimeout((function(){t.classList.remove("generatepress-dashboard__section-item-message__show")}),3e3):t.classList.add("generatepress-dashboard__section-item-message__error")}))})(e)}},!!s&&(0,r.createElement)(i.Spinner,null),!s&&(0,o.__)("Reset","gp-premium")),(0,r.createElement)("span",{className:"generatepress-dashboard__section-item-message",style:{marginLeft:"10px"}}))):(0,r.createElement)(i.Placeholder,{className:"generatepress-dashboard__placeholder"},(0,r.createElement)(i.Spinner,null))};window.addEventListener("DOMContentLoaded",(()=>{n((0,r.createElement)(h,null),document.getElementById("generatepress-reset-pro"))}))},162:function(e,t,s){var r,a;void 0===(a="function"==typeof(r=function(){"use strict";function t(e,t,s){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){i(r.response,t,s)},r.onerror=function(){console.error("could not download file")},r.send()}function r(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function a(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(s){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var n="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof s.g&&s.g.global===s.g?s.g:void 0,o=n.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),i=n.saveAs||("object"!=typeof window||window!==n?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(e,s,o){var i=n.URL||n.webkitURL,l=document.createElement("a");s=s||e.name||"download",l.download=s,l.rel="noopener","string"==typeof e?(l.href=e,l.origin===location.origin?a(l):r(l.href)?t(e,s,o):a(l,l.target="_blank")):(l.href=i.createObjectURL(e),setTimeout((function(){i.revokeObjectURL(l.href)}),4e4),setTimeout((function(){a(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,s,n){if(s=s||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}(e,n),s);else if(r(e))t(e,s,n);else{var o=document.createElement("a");o.href=e,o.target="_blank",setTimeout((function(){a(o)}))}}:function(e,s,r,a){if((a=a||open("","_blank"))&&(a.document.title=a.document.body.innerText="downloading..."),"string"==typeof e)return t(e,s,r);var i="application/octet-stream"===e.type,l=/constructor/i.test(n.HTMLElement)||n.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||i&&l||o)&&"undefined"!=typeof FileReader){var m=new FileReader;m.onloadend=function(){var e=m.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=e:location=e,a=null},m.readAsDataURL(e)}else{var d=n.URL||n.webkitURL,p=d.createObjectURL(e);a?a.location=p:location.href=p,a=null,setTimeout((function(){d.revokeObjectURL(p)}),4e4)}});n.saveAs=i.saveAs=i,e.exports=i})?r.apply(t,[]):r)||(e.exports=a)}},s={};function r(e){var a=s[e];if(void 0!==a)return a.exports;var n=s[e]={exports:{}};return t[e].call(n.exports,n,n.exports,r),n.exports}r.m=t,e=[],r.O=(t,s,a,n)=>{if(!s){var o=1/0;for(m=0;m=n)&&Object.keys(r.O).every((e=>r.O[e](s[l])))?s.splice(l--,1):(i=!1,n0&&e[m-1][2]>n;m--)e[m]=e[m-1];e[m]=[s,a,n]},r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var s in t)r.o(t,s)&&!r.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={966:0,100:0};r.O.j=t=>0===e[t];var t=(t,s)=>{var a,n,[o,i,l]=s,c=0;if(o.some((t=>0!==e[t]))){for(a in i)r.o(i,a)&&(r.m[a]=i[a]);if(l)var m=l(r)}for(t&&t(s);cr(217)));a=r.O(a)})();